Given small categories $\mathcal{C}$ and $\mathcal{D}$, we have that $[\mathcal{C}^\text{op},\textbf{Set}]\simeq[\mathcal{D}^\text{op},\textbf{Set}]$ if and only if the Cauchy-completions of $\mathcal{C}$ and $\mathcal{D}$ are equivalent. If we replace $\textbf{Set}$ with an arbitrary topos $\mathscr{S}$, is there an equivalent condition (dependent on $\mathscr{S}$) for their functor categories into $\mathscr{S}$ to be equivalent?
The Cauchy completeness of $\mathcal{C}$ can be defined (for example in ncatlab) as the full subcategory of the category of presheaves on $\mathcal{C}$ on the retracts of representable functors. "Representable functors" only exist from $\mathcal{C}^\text{op}$ to $\textbf{Set}$ because $\mathcal{C}$ is enriched over $\textbf{Set}$, so does there need to be a similar condition on $\mathscr{S}$?
(This is a duplicate of my question incorrectly posted on stack exchange).