The current user or null if not authenticated.
The name of the dataset.
AlphadocumentThis can be replaced by a different API in the future. It is provided as-is to support common structure patterns found in V2 in V3.
A function that returns a Sanity client with the specified options.
Alphai18nThe stacked array of perspective ids ordered chronologically to represent the state of documents at the given point in time. It can be used as the perspective param in the client to get the correct view of the documents. ["published"] | ["drafts"] | ["releaseId2", "releaseId1", "drafts"] See PerspectiveStack
The ID of the project.
The schema for this source.
OptionalselectedThe selected editing variant as a bare variant id, or undefined when no variant is selected.
It can be used as the variant param in the client, alongside perspectiveStack, to get the
view of the documents as seen through that variant.
Always provided by the Studio. Declared optional so that structure resolvers written before variants existed keep type checking when they construct this context themselves.
Structure tool context. Extends from ConfigContext.
Hidden