BetaOptional Beta__internal_Optional BetaadvancedAdvanced version control provides features such as inline content diffs in Studio to make resolving conflicts across document versions easier.
Optional Betaenabled?: boolean | ComposableOption<boolean, ConfigContext>Control whether advanced version control functionality is enabled.
Advanced version control provides features such as inline content diffs in Studio to make resolving conflicts across document versions easier.
Optional BetaapiAPI hostname used for requests. Generally used for custom CNAMEs, allowing businesses to use
their own domain for API requests. Must include protocol:
eg https://sanityapi.mycompany.com
Note that (currently) the project ID will be prepended to the passed URL, so the above
example would end up as: https://<projectId>.sanityapi.mycompany.com
Optional BetaappsOptional BetaauthAuthentication options for this source.
BetabaseBetadatasetDataset name for this source
Optional BetadocumentOptional BetaformOptionalhiddenHides this workspace from the studio UI. Client-side only - enforce access control server-side via Sanity's RBAC system.
Callbacks are evaluated after auth state resolves and re-evaluated when it changes. Before auth resolves, callback-hidden workspaces are treated as visible for navigation purposes - users will see a loading screen until auth resolves.
When currentUser is null (user not yet authenticated in this workspace),
returning true will prevent them from seeing and authenticating against the
workspace. Start callbacks with if (currentUser === null) return false unless
you intentionally want to hide the workspace from unauthenticated users.
Optional Betai18nOptional BetaiconOptional BetalogoThe workspace logo
BetanameOptional BetaonConfiguration for error handling.
Optional BetapluginsBetaprojectProject ID for this source
Optional BetascheduledConfiguration for Scheduled drafts
Optional BetascheduledOptional BetaschemaOptional BetasearchOptionalenableLegacySearch?: booleanEnables the legacy Query API search strategy.
Optionalstrategy?: "groqLegacy" | "groq2024"Control the strategy used for searching documents. This should generally only be used if you wish to try experimental search strategies.
This option takes precedence over the deprecated search.enableLegacySearch option.
Can be one of:
"groqLegacy" (default): Use client-side tokenization and schema introspection to search
using the GROQ Query API."groq2024": (experimental) Perform full text searching using the GROQ Query API and its
new text::matchQuery function.Optionalunstable_partialIndexing?: { enabled: boolean }Optional BetastudioOptional Betacomponents?: StudioComponentsPluginOptionsComponents for the studio.
Optional BetasubtitleOptional BetathemeOptional BetatitleOptional BetatoolsOptional Betaunstable_Optional Betaunstable_Optional Betaunstable_
Hidden