@sanity/sdk 3.0.0-rc.2 → 3.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (30) hide show
  1. package/dist/_exports/_internal.d.ts +1 -1
  2. package/dist/_exports/_internal.js +2 -2
  3. package/dist/_exports/comlink.d.ts +1 -1
  4. package/dist/{authStore-DKFX8fn7.d.ts → authStore-C0o1NOxW.d.ts} +29 -43
  5. package/dist/authStore-C0o1NOxW.d.ts.map +1 -0
  6. package/dist/index.d.ts +2 -2
  7. package/dist/index.js +131 -135
  8. package/dist/index.js.map +1 -1
  9. package/dist/{queryStore-DPf9sN3V.js → queryStore-C7yMHPUI.js} +2 -2
  10. package/dist/queryStore-C7yMHPUI.js.map +1 -0
  11. package/dist/{telemetryManager-Dq_qCkeI.js → telemetryManager-UIEiMtC0.js} +2 -2
  12. package/dist/{telemetryManager-Dq_qCkeI.js.map → telemetryManager-UIEiMtC0.js.map} +1 -1
  13. package/dist/{version-BChjsi4u.js → version-D8RP_Q59.js} +2 -2
  14. package/dist/{version-BChjsi4u.js.map → version-D8RP_Q59.js.map} +1 -1
  15. package/package.json +3 -3
  16. package/src/_exports/index.ts +7 -4
  17. package/src/datasets/datasets.test.ts +44 -9
  18. package/src/datasets/datasets.ts +24 -23
  19. package/src/document/documentConstants.ts +9 -0
  20. package/src/document/documentStore.test.ts +69 -0
  21. package/src/document/reducers.test.ts +224 -0
  22. package/src/document/reducers.ts +108 -25
  23. package/src/favorites/favorites.test.ts +64 -24
  24. package/src/favorites/favorites.ts +73 -22
  25. package/src/store/fetcherStore.test.ts +23 -1
  26. package/src/store/fetcherStore.ts +3 -3
  27. package/dist/authStore-DKFX8fn7.d.ts.map +0 -1
  28. package/dist/queryStore-DPf9sN3V.js.map +0 -1
  29. package/src/utils/createFetcherStore.test.ts +0 -171
  30. package/src/utils/createFetcherStore.ts +0 -284
@@ -1,5 +1,5 @@
1
1
  import { m as SanityConfig, s as DocumentResource, t as SanityInstance } from "../createSanityInstance-DUI1bGIg.js";
2
- import { B as getQueryKey, Ci as defineMutation, H as parseQueryKey, Si as defineFetcher, _i as Fetcher, _r as getCommentsOptionsKey, bi as MutationDefinition, gi as CacheWriter, hi as CacheTag, nt as PreviewQueryResult, rt as PreviewValue, vi as FetcherDefinition, xi as MutationResult, xt as GetUsersOptions, yi as FetcherSnapshot, yr as parseCommentsOptionsKey } from "../authStore-DKFX8fn7.js";
2
+ import { B as parseQueryKey, R as getQueryKey, Si as defineMutation, _i as FetcherDefinition, bi as MutationResult, et as PreviewQueryResult, gi as Fetcher, gr as getCommentsOptionsKey, hi as CacheWriter, mi as CacheTag, tt as PreviewValue, vi as FetcherSnapshot, vr as parseCommentsOptionsKey, xi as defineFetcher, yi as MutationDefinition, yt as GetUsersOptions } from "../authStore-C0o1NOxW.js";
3
3
  import { ClientError, SanityClient } from "@sanity/client";
4
4
  import { Observable } from "rxjs";
5
5
  import { CurrentUser } from "@sanity/types";
@@ -1,4 +1,4 @@
1
- import { C as parseCommentsOptionsKey, U as defineFetcher, W as defineMutation, f as parseUsersKey, r as parseQueryKey, t as getQueryKey, u as getUsersKey, x as getCommentsOptionsKey } from "../queryStore-DPf9sN3V.js";
1
+ import { C as parseCommentsOptionsKey, U as defineFetcher, W as defineMutation, f as parseUsersKey, r as parseQueryKey, t as getQueryKey, u as getUsersKey, x as getCommentsOptionsKey } from "../queryStore-C7yMHPUI.js";
2
2
  import { n as createLogger } from "../logger-DAtJb5RQ.js";
3
3
  import { g as getClientErrorApiType, h as getClientErrorApiDescription, m as getClientErrorApiBody, x as isStudioConfig, y as isProjectUserNotFoundClientError } from "../authStore-CtE9bLHW.js";
4
4
  import { i as pickProperties, n as isObject, t as isDeepEqual } from "../object-CxXlSVg7.js";
@@ -190,7 +190,7 @@ function initTelemetry(instance, projectId) {
190
190
  projectId,
191
191
  environment
192
192
  }), Promise.all([
193
- import("../telemetryManager-Dq_qCkeI.js").then((n) => n.t),
193
+ import("../telemetryManager-UIEiMtC0.js").then((n) => n.t),
194
194
  import("../clientStore-BtE2-q2i.js").then((n) => n.t),
195
195
  import("../authStore-CtE9bLHW.js").then((n) => n.n)
196
196
  ]).then(async ([{ createTelemetryManager }, { getClient }, { getTokenState }]) => {
@@ -1,4 +1,4 @@
1
- import { Ei as BoundStoreAction, Ti as StateSource } from "../authStore-DKFX8fn7.js";
1
+ import { Ti as BoundStoreAction, wi as StateSource } from "../authStore-C0o1NOxW.js";
2
2
  import { ChannelInput, ChannelInstance, Controller, Message, Node, NodeInput, Status } from "@sanity/comlink";
3
3
  /**
4
4
  * Message sent from a containing app to an iframe
@@ -1,5 +1,5 @@
1
1
  import { b as AuthConfig, c as DocumentTypeHandle, d as ProjectHandle, f as ReleaseHandle, i as DatasetHandle, o as DocumentHandle, s as DocumentResource, t as SanityInstance, u as PerspectiveHandle, x as AuthProvider } from "./createSanityInstance-DUI1bGIg.js";
2
- import { ClientConfig, ClientPerspective, ListenEvent, MultipleMutationResult, ReleaseDocument, ReleaseDocument as ReleaseDocument$1, ResponseQueryOptions, SanityClient, SanityDocument, SanityProject } from "@sanity/client";
2
+ import { ClientConfig, ClientPerspective, DatasetsResponse, ListenEvent, MultipleMutationResult, ReleaseDocument, ReleaseDocument as ReleaseDocument$1, ResponseQueryOptions, SanityClient, SanityDocument, SanityProject } from "@sanity/client";
3
3
  import { Observable, Subject } from "rxjs";
4
4
  import { CurrentUser, CurrentUser as CurrentUser$1, Mutation, PatchOperations, Path, PortableTextBlock, Role, SanityDocument as SanityDocument$1, SanityDocument as SanityDocument$3, SanityDocumentLike } from "@sanity/types";
5
5
  import "zustand/middleware";
@@ -1364,10 +1364,13 @@ interface Logger {
1364
1364
  * @public
1365
1365
  */
1366
1366
  declare function configureLogging(config: LoggerConfig): void;
1367
- /** @public */
1368
- declare const getDatasetsState: BoundStoreAction<FetcherStoreState<[options?: ProjectHandle<string> | undefined], import("@sanity/client").DatasetsResponse>, [options?: ProjectHandle<string> | undefined], StateSource<import("@sanity/client").DatasetsResponse | undefined>>;
1369
- /** @public */
1370
- declare const resolveDatasets: BoundStoreAction<FetcherStoreState<[options?: ProjectHandle<string> | undefined], import("@sanity/client").DatasetsResponse>, [options?: ProjectHandle<string> | undefined], Promise<import("@sanity/client").DatasetsResponse>>;
1367
+ /**
1368
+ * Fetcher for a project's datasets (`GET /datasets`), on the shared fetcher
1369
+ * cache.
1370
+ *
1371
+ * @internal
1372
+ */
1373
+ declare const datasets: Fetcher<[options?: ProjectHandle<string> | undefined], DatasetsResponse>;
1371
1374
  /**
1372
1375
  * Represents an action to create a new document.
1373
1376
  * Specifies the document type and optionally a document ID (which will be treated as the published ID).
@@ -2107,21 +2110,29 @@ interface FavoriteDocumentContext extends DocumentHandle {
2107
2110
  schemaName?: string;
2108
2111
  }
2109
2112
  /**
2110
- * Gets a StateSource for the favorite status of a document.
2111
- * @param instance - The Sanity instance.
2112
- * @param context - The document context including ID, type, and resource information.
2113
- * @returns A StateSource emitting `{ isFavorited: boolean }`.
2114
- * @public
2113
+ * Fetcher for a document's favorite status, read from the dashboard over
2114
+ * comlink, on the shared fetcher cache.
2115
+ *
2116
+ * @internal
2115
2117
  */
2116
- declare const getFavoritesState: BoundStoreAction<FetcherStoreState<[FavoriteDocumentContext], FavoriteStatusResponse>, [FavoriteDocumentContext], StateSource<FavoriteStatusResponse | undefined>>;
2118
+ declare const favorites: Fetcher<[context: FavoriteDocumentContext], FavoriteStatusResponse>;
2117
2119
  /**
2118
- * Resolves the favorite status for a document.
2119
- * @param instance - The Sanity instance.
2120
- * @param context - The document context including ID, type, and resource information.
2121
- * @returns A Promise resolving to `{ isFavorited: boolean }`.
2120
+ * Input for {@link setFavorite}: the document context plus the desired state.
2121
+ *
2122
2122
  * @public
2123
2123
  */
2124
- declare const resolveFavoritesState: BoundStoreAction<FetcherStoreState<[FavoriteDocumentContext], FavoriteStatusResponse>, [FavoriteDocumentContext], Promise<FavoriteStatusResponse>>;
2124
+ type SetFavoriteInput = FavoriteDocumentContext & {
2125
+ /** The favorite state to move to: `true` to favorite, `false` to unfavorite. */
2126
+ isFavorited: boolean;
2127
+ };
2128
+ /**
2129
+ * Sets a document's favorite state over comlink, then invalidates the cached
2130
+ * {@link favorites} status for that document so active readers reconverge on
2131
+ * server truth. The write-side counterpart to {@link favorites}.
2132
+ *
2133
+ * @internal
2134
+ */
2135
+ declare const setFavorite: (instance: SanityInstance, input: SetFavoriteInput) => Promise<MutationResult<FavoriteStatusResponse>>;
2125
2136
  /**
2126
2137
  * Related data the Installations API can embed in a response. Each token adds
2127
2138
  * a top-level field to the {@link Installation} item.
@@ -3006,31 +3017,6 @@ declare const getUserState: BoundStoreAction<UsersStoreState, [GetUserOptions],
3006
3017
  * @beta
3007
3018
  */
3008
3019
  declare const resolveUser: BoundStoreAction<UsersStoreState, [ResolveUserOptions], Promise<SanityUser>>;
3009
- interface StoreEntry<TParams extends unknown[], TData> {
3010
- params: TParams;
3011
- instance: SanityInstance;
3012
- key: string;
3013
- data?: TData;
3014
- error?: unknown;
3015
- subscriptions: string[];
3016
- lastFetchInitiatedAt?: string;
3017
- }
3018
- /**
3019
- * Internal helper type
3020
- * @public
3021
- */
3022
- interface FetcherStoreState<TParams extends unknown[], TData> {
3023
- stateByParams: { [TSerializedKey in string]?: StoreEntry<TParams, TData>; };
3024
- error?: unknown;
3025
- }
3026
- /**
3027
- * Internal helper type
3028
- * @public
3029
- */
3030
- interface FetcherStore<TParams extends unknown[], TData> {
3031
- getState: BoundStoreAction<FetcherStoreState<TParams, TData>, TParams, StateSource<TData | undefined>>;
3032
- resolveState: BoundStoreAction<FetcherStoreState<TParams, TData>, TParams, Promise<TData>>;
3033
- }
3034
3020
  /**
3035
3021
  * @public
3036
3022
  * Extracts the project ID from a CorsOriginError message.
@@ -3175,5 +3161,5 @@ declare const getIsInDashboardState: BoundStoreAction<AuthStoreState, [], StateS
3175
3161
  * @internal
3176
3162
  */
3177
3163
  declare const setAuthToken: BoundStoreAction<AuthStoreState, [token: string | null], void>;
3178
- export { ProjectOptions as $, unpublishDocument as $n, ApplicationInclude as $r, ApplyDocumentActionsOptions as $t, getUserState as A, DocumentAction as An, setCommentStatus as Ar, Organizations as At, getQueryKey as B, UnscheduleReleaseAction as Bn, ClientOptions as Br, InstallationActiveConfig as Bt, slicePath$1 as C, defineMutation as Ci, Action as Cn, RemoveCommentOptions as Cr, ResolveUserOptions as Ct, getCorsErrorProjectId as D, DeleteDocumentAction as Dn, createComment as Dr, UserProfile as Dt, isImportError as E, BoundStoreAction as Ei, CreateReleaseAction as En, UpdateCommentOptions as Er, SanityUserResponse as Et, getPerspectiveState as F, PublishReleaseAction as Fn, CommentReaction as Fr, OrganizationMember as Ft, projects as G, deleteRelease as Gn, handleAuthCallback as Gr, InstallationsResponse as Gt, parseQueryKey as H, createDocument as Hn, getClient as Hr, InstallationInclude as Ht, ReleaseState as I, ReleaseAction as In, CommentStatus as Ir, OrganizationOptions as It, Project as J, editRelease as Jn, AuthStateType as Jr, FavoriteStatusResponse as Jt, resolveProjection as K, discardDocument as Kn, observeOrganizationVerificationState as Kr, installation as Kt, getActiveReleasesState as L, ScheduleReleaseAction as Ln, CommentTextSelection as Lr, organization as Lt, loadMoreUsers as M, EditDocumentOptions as Mn, Comment as Mr, organizations as Mt, resolveUser as N, EditReleaseAction as Nn, CommentLocalState as Nr, Organization as Nt, FetcherStore as O, DeleteReleaseAction as On, removeComment as Or, UsersGroupState as Ot, resolveUsers as P, PublishDocumentAction as Pn, CommentMessage as Pr, OrganizationBase as Pt, ProjectMetadata as Q, unarchiveRelease as Qn, ApplicationDeployment as Qr, ActionsResult as Qt, getAllReleasesState as R, UnarchiveReleaseAction as Rn, CommentTextSelectionItem as Rr, Installation as Rt, jsonMatch$1 as S, defineFetcher as Si, JsonMatch as Sn, CreateCommentOptions as Sr, Membership as St, CORE_SDK_VERSION as T, StateSource as Ti, CreateDocumentAction as Tn, SetCommentStatusOptions as Tr, SanityUser as Tt, resolveQuery as U, createRelease as Un, getClientState as Ur, InstallationInterface as Ut, getQueryState as V, archiveRelease as Vn, ClientStoreState as Vr, InstallationBase as Vt, ProjectsOptions as W, deleteDocument as Wn, logout as Wr, InstallationsOptions as Wt, ProjectMember as X, publishRelease as Xn, ApplicationAccess as Xr, resolveFavoritesState as Xt, ProjectBase as Y, publishDocument as Yn, Application as Yr, getFavoritesState as Yt, ProjectMemberRole as Z, scheduleRelease as Zn, ApplicationBase as Zr, getReleaseDocumentId as Zt, SanityDocument$3 as _, Fetcher as _i, resolveDocument as _n, getCommentsOptionsKey as _r, StateEvent as _t, LoggedOutAuthState as a, ApplicationsResponse as ai, DocumentEditedEvent as an, LogContext as ar, getDocumentPresence as at, getPathDepth as b, MutationDefinition as bi, DocumentPermissionsResult as bn, resolveCommentThreads as br, GetUserOptions as bt, getCurrentUserState as c, UpdateApplicationInput as ci, DocumentRemotePatchesEvent as cn, Logger as cr, DisconnectEvent as ct, getLoginUrlState as d, deleteApplication as di, TransactionAcceptedEvent as dn, createDocumentHandle as dr, PresenceLocation as dt, ApplicationInterface as ei, applyDocumentActions as en, unscheduleRelease as er, project as et, getTokenState as f, updateApplication as fi, TransactionRevertedEvent as fn, createDocumentTypeHandle as fr, PresencePerspectiveOptions as ft, Role as g, CacheWriter as gi, getPermissionsState as gn, getCommentThreadsState as gr, RollCallEvent as gt, ReleaseDocument$1 as h, CacheTag as hi, getDocumentSyncStatus as hn, ResolveCommentsOptions as hr, ReportPresenceOptions as ht, LoggedInAuthState as i, ApplicationsOptions as ii, DocumentDiscardedEvent as in, InstanceContext as ir, ProjectionValuePending as it, getUsersState as j, EditDocumentAction as jn, updateComment as jr, OrganizationsOptions as jt, FetcherStoreState as k, DiscardDocumentAction as kn, replyToComment as kr, UsersStoreState as kt, getDashboardOrganizationId as l, application as li, DocumentTransactionSubmissionResult as ln, LoggerConfig as lr, DocumentPresence as lt, CurrentUser$1 as m, checkPermissions as mi, getDocumentState as mn, CommentsOptions as mr, PresenceSelectionPoint as mt, AuthStoreState as n, ApplicationVisibility as ni, DocumentCreatedEvent as nn, resolveDatasets as nr, PreviewQueryResult as nt, LoggingInAuthState as o, DeleteApplicationInput as oi, DocumentEvent as on, LogLevel as or, getPresence as ot, setAuthToken as p, AccessResourceType as pi, DocumentOptions as pn, createProjectHandle as pr, PresenceSelection as pt, getProjectionState as q, editDocument as qn, OrgVerificationResult as qr, installations as qt, ErrorAuthState as r, ApplicationWorkspace as ri, DocumentDeletedEvent as rn, configureLogging as rr, PreviewValue as rt, getAuthState as s, DeletedResult as si, DocumentPublishedEvent as sn, LogNamespace as sr, reportPresence as st, AuthState as t, ApplicationStudioConfig as ti, ActionErrorEvent as tn, getDatasetsState as tr, PreviewMedia as tt, getIsInDashboardState as u, applications as ui, DocumentUnpublishedEvent as un, createDatasetHandle as ur, DocumentPresenceOptions as ut, SanityProject$1 as v, FetcherDefinition as vi, resolvePermissions as vn, getCommentsState as vr, TransportEvent as vt, stringifyPath$1 as w, Selector as wi, ArchiveReleaseAction as wn, ReplyToCommentOptions as wr, ResolveUsersOptions as wt, joinPaths as x, MutationResult as xi, PermissionDeniedReason as xn, resolveComments as xr, GetUsersOptions as xt, getIndexForKey$1 as y, FetcherSnapshot as yi, subscribeDocumentEvents as yn, parseCommentsOptionsKey as yr, UserPresence as yt, QueryOptions as z, UnpublishDocumentAction as zn, CommentThread as zr, InstallationAccess as zt };
3179
- //# sourceMappingURL=authStore-DKFX8fn7.d.ts.map
3164
+ export { PreviewMedia as $, unpublishDocument as $n, ApplicationInterface as $r, ApplyDocumentActionsOptions as $t, loadMoreUsers as A, DocumentAction as An, updateComment as Ar, organizations as At, parseQueryKey as B, UnscheduleReleaseAction as Bn, ClientStoreState as Br, InstallationInclude as Bt, slicePath$1 as C, Selector as Ci, Action as Cn, ReplyToCommentOptions as Cr, SanityUser as Ct, getCorsErrorProjectId as D, DeleteDocumentAction as Dn, removeComment as Dr, UsersStoreState as Dt, isImportError as E, CreateReleaseAction as En, createComment as Er, UsersGroupState as Et, getActiveReleasesState as F, PublishReleaseAction as Fn, CommentStatus as Fr, organization as Ft, getProjectionState as G, deleteRelease as Gn, observeOrganizationVerificationState as Gr, installations as Gt, ProjectsOptions as H, createDocument as Hn, getClientState as Hr, InstallationsOptions as Ht, getAllReleasesState as I, ReleaseAction as In, CommentTextSelection as Ir, Installation as It, ProjectMember as J, editRelease as Jn, Application as Jr, SetFavoriteInput as Jt, Project as K, discardDocument as Kn, OrgVerificationResult as Kr, FavoriteDocumentContext as Kt, QueryOptions as L, ScheduleReleaseAction as Ln, CommentTextSelectionItem as Lr, InstallationAccess as Lt, resolveUsers as M, EditDocumentOptions as Mn, CommentLocalState as Mr, OrganizationBase as Mt, getPerspectiveState as N, EditReleaseAction as Nn, CommentMessage as Nr, OrganizationMember as Nt, getUserState as O, DeleteReleaseAction as On, replyToComment as Or, Organizations as Ot, ReleaseState as P, PublishDocumentAction as Pn, CommentReaction as Pr, OrganizationOptions as Pt, project as Q, unarchiveRelease as Qn, ApplicationInclude as Qr, ActionsResult as Qt, getQueryKey as R, UnarchiveReleaseAction as Rn, CommentThread as Rr, InstallationActiveConfig as Rt, jsonMatch$1 as S, defineMutation as Si, JsonMatch as Sn, RemoveCommentOptions as Sr, ResolveUsersOptions as St, CORE_SDK_VERSION as T, BoundStoreAction as Ti, CreateDocumentAction as Tn, UpdateCommentOptions as Tr, UserProfile as Tt, projects as U, createRelease as Un, logout as Ur, InstallationsResponse as Ut, resolveQuery as V, archiveRelease as Vn, getClient as Vr, InstallationInterface as Vt, resolveProjection as W, deleteDocument as Wn, handleAuthCallback as Wr, installation as Wt, ProjectMetadata as X, publishRelease as Xn, ApplicationBase as Xr, setFavorite as Xt, ProjectMemberRole as Y, publishDocument as Yn, ApplicationAccess as Yr, favorites as Yt, ProjectOptions as Z, scheduleRelease as Zn, ApplicationDeployment as Zr, getReleaseDocumentId as Zt, SanityDocument$3 as _, FetcherDefinition as _i, resolveDocument as _n, getCommentsState as _r, UserPresence as _t, LoggedOutAuthState as a, DeleteApplicationInput as ai, DocumentEditedEvent as an, LogLevel as ar, reportPresence as at, getPathDepth as b, MutationResult as bi, DocumentPermissionsResult as bn, resolveComments as br, Membership as bt, getCurrentUserState as c, application as ci, DocumentRemotePatchesEvent as cn, LoggerConfig as cr, DocumentPresenceOptions as ct, getLoginUrlState as d, updateApplication as di, TransactionAcceptedEvent as dn, createDocumentTypeHandle as dr, PresenceSelection as dt, ApplicationStudioConfig as ei, applyDocumentActions as en, unscheduleRelease as er, PreviewQueryResult as et, getTokenState as f, AccessResourceType as fi, TransactionRevertedEvent as fn, createProjectHandle as fr, PresenceSelectionPoint as ft, Role as g, Fetcher as gi, getPermissionsState as gn, getCommentsOptionsKey as gr, TransportEvent as gt, ReleaseDocument$1 as h, CacheWriter as hi, getDocumentSyncStatus as hn, getCommentThreadsState as hr, StateEvent as ht, LoggedInAuthState as i, ApplicationsResponse as ii, DocumentDiscardedEvent as in, LogContext as ir, getPresence as it, resolveUser as j, EditDocumentAction as jn, Comment as jr, Organization as jt, getUsersState as k, DiscardDocumentAction as kn, setCommentStatus as kr, OrganizationsOptions as kt, getDashboardOrganizationId as l, applications as li, DocumentTransactionSubmissionResult as ln, createDatasetHandle as lr, PresenceLocation as lt, CurrentUser$1 as m, CacheTag as mi, getDocumentState as mn, ResolveCommentsOptions as mr, RollCallEvent as mt, AuthStoreState as n, ApplicationWorkspace as ni, DocumentCreatedEvent as nn, configureLogging as nr, ProjectionValuePending as nt, LoggingInAuthState as o, DeletedResult as oi, DocumentEvent as on, LogNamespace as or, DisconnectEvent as ot, setAuthToken as p, checkPermissions as pi, DocumentOptions as pn, CommentsOptions as pr, ReportPresenceOptions as pt, ProjectBase as q, editDocument as qn, AuthStateType as qr, FavoriteStatusResponse as qt, ErrorAuthState as r, ApplicationsOptions as ri, DocumentDeletedEvent as rn, InstanceContext as rr, getDocumentPresence as rt, getAuthState as s, UpdateApplicationInput as si, DocumentPublishedEvent as sn, Logger as sr, DocumentPresence as st, AuthState as t, ApplicationVisibility as ti, ActionErrorEvent as tn, datasets as tr, PreviewValue as tt, getIsInDashboardState as u, deleteApplication as ui, DocumentUnpublishedEvent as un, createDocumentHandle as ur, PresencePerspectiveOptions as ut, SanityProject$1 as v, FetcherSnapshot as vi, resolvePermissions as vn, parseCommentsOptionsKey as vr, GetUserOptions as vt, stringifyPath$1 as w, StateSource as wi, ArchiveReleaseAction as wn, SetCommentStatusOptions as wr, SanityUserResponse as wt, joinPaths as x, defineFetcher as xi, PermissionDeniedReason as xn, CreateCommentOptions as xr, ResolveUserOptions as xt, getIndexForKey$1 as y, MutationDefinition as yi, subscribeDocumentEvents as yn, resolveCommentThreads as yr, GetUsersOptions as yt, getQueryState as z, UnpublishDocumentAction as zn, ClientOptions as zr, InstallationBase as zt };
3165
+ //# sourceMappingURL=authStore-C0o1NOxW.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"authStore-C0o1NOxW.d.ts","names":[],"sources":["../src/store/createStoreState.ts","../src/store/defineStore.ts","../src/store/createActionBinder.ts","../src/store/createStateSourceAction.ts","../src/store/fetcherStore.ts","../src/access/checkPermissions.ts","../src/utils/includeShape.ts","../src/applications/applications.ts","../src/auth/authStateType.ts","../src/project/organizationVerification.ts","../src/auth/getOrganizationVerificationState.ts","../src/auth/handleAuthCallback.ts","../src/auth/logout.ts","../src/client/clientStore.ts","../src/comments/types.ts","../src/comments/commentActions.ts","../src/comments/commentsStore.ts","../src/config/handles.ts","../src/utils/logger.ts","../src/config/loggingConfig.ts","../src/datasets/datasets.ts","../src/document/actions.ts","../src/document/patchOperations.ts","../src/document/processMutations.ts","../src/document/permissions.ts","../src/document/sharedListener.ts","../src/document/documentStore.ts","../src/document/reducers.ts","../src/document/events.ts","../src/document/applyDocumentActions.ts","../src/document/processActions/releaseUtil.ts","../src/favorites/favorites.ts","../src/installations/installations.ts","../src/organization/organization.ts","../src/organizations/organizations.ts","../src/users/types.ts","../src/presence/types.ts","../src/presence/presenceStore.ts","../src/projection/types.ts","../src/preview/types.ts","../src/project/project.ts","../src/projection/getProjectionState.ts","../src/projection/resolveProjection.ts","../src/projects/projects.ts","../src/query/queryStore.ts","../src/releases/releasesStore.ts","../src/releases/getPerspectiveState.ts","../src/users/usersStore.ts","../src/utils/getCorsErrorProjectId.ts","../src/utils/isImportError.ts","../src/version.ts","../src/_exports/index.ts","../src/auth/authStore.ts"],"mappings":";;;;;;;;;;;;;UAOiB,WAAW;;;;;;;EAO1B,WAAW;;;;;;;;;;EAWX,MAAM,cAAc,cAAc,QAAQ,YAAY,GAAG,WAAW,QAAQ;;;;;;;;;EAU5E,YAAY,WAAW;;;;;UC7BR,aAAa,QAAQ;;;;;;;EAOpC,UAAU;;;;;;;EAQV,OAAO,WAAW;;;;EAKlB,KAAK;;;;;KCAK,YAAY,QAAQ,2BAA2B,SAAS,mBAClE,SAAS,aAAa,QAAQ,UAC3B,QAAQ,YACR;;;;KAKO,iBAAiB,SAAS,2BAA2B,YAC/D,UAAU,mBACP,QAAQ,YACR;;;;;;;;;;;;UCpBY,YAAY;;;;;;EAM3B,YAAY;;;;;;;;EASZ,kBAAkB;;;;;;;;;;EAWlB,YAAY,WAAW;;;;;;;;;;;;;;;;;;;;;;;UAwBR,gBAAgB;;;;EAI/B,OAAO;;;;EAKP,UAAU;;;;;;KAOA,SAAS,QAAQ,2BAA2B,YACtD,SAAS,gBAAgB,YACtB,QAAQ,YACR;;;;;;;;;;;;;;UCzDY;EACf;;EAEA;;;;;;;;;;;;;;KAeU,gBAAgB;;EAGtB;EACA;EACA;EACA;EACA;;;EAIA;EACA,MAAM;;EAEN;EACA;;EAEA;;;EAIA;EACA;EACA;EACA;EACA;;;;;;;;;;;;;;;;UAiBW,kBAAkB,2BAA2B;;EAE5D;;;;;EAKA,QAAQ,UAAU,uBAAuB,QAAQ,YAAY,WAAW;;EAExE,SAAS,UAAU,mBAAmB,QAAQ;;;;;;EAM9C,OAAO,eAAe,MAAM,UAAU,QAAQ,YAAY;;;;;;EAM1D;;;;;;;EAOA;;;;;EAKA;;;;;;;;;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;IACE;IACA,gBAAgB,QAAQ,iBAAiB;IACzC,iBAAiB;IACjB;IACA,aAAa;IACb;IACA;IACA;IACA;IACA,YAAY;;EAEd,mBAAmB;;;;;cAuIR,qBAAmB,iBAAA,oBAAA,YAAA;;;;cAUnB,eAAa,iBAAA,oBAAA;;;;cAkBb,kBAAgB,iBAAA,oBAAA;;;;cAQhB,cAAY,iBAAA,oBAAA,YAAA;;;;cAQZ,4BAA0B,iBAAA,oBAAA;;;;;cAS1B,uBAAqB,iBAAA,oBAAA;;;;;;cAcrB,cAAY,iBAAA,iBAAA"}
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  import { _ as isCanvasResource, a as DatasetResource, b as AuthConfig, c as DocumentTypeHandle, d as ProjectHandle, f as ReleaseHandle, g as TokenSource, h as StudioConfig, i as DatasetHandle, l as MediaLibraryResource, m as SanityConfig, n as createSanityInstance, o as DocumentHandle, p as ReleasePerspective, r as CanvasResource, s as DocumentResource, t as SanityInstance, u as PerspectiveHandle, v as isDatasetResource, x as AuthProvider, y as isMediaLibraryResource } from "./createSanityInstance-DUI1bGIg.js";
2
- import { $ as ProjectOptions, $n as unpublishDocument, $r as ApplicationInclude, $t as ApplyDocumentActionsOptions, A as getUserState, An as DocumentAction, Ar as setCommentStatus, At as Organizations, Bn as UnscheduleReleaseAction, Br as ClientOptions, Bt as InstallationActiveConfig, C as slicePath, Cn as Action, Cr as RemoveCommentOptions, Ct as ResolveUserOptions, D as getCorsErrorProjectId, Dn as DeleteDocumentAction, Dr as createComment, Dt as UserProfile, E as isImportError, En as CreateReleaseAction, Er as UpdateCommentOptions, Et as SanityUserResponse, F as getPerspectiveState, Fn as PublishReleaseAction, Fr as CommentReaction, Ft as OrganizationMember, G as projects, Gn as deleteRelease, Gr as handleAuthCallback, Gt as InstallationsResponse, Hn as createDocument, Hr as getClient, Ht as InstallationInclude, I as ReleaseState, In as ReleaseAction, Ir as CommentStatus, It as OrganizationOptions, J as Project, Jn as editRelease, Jr as AuthStateType, Jt as FavoriteStatusResponse, K as resolveProjection, Kn as discardDocument, Kr as observeOrganizationVerificationState, Kt as installation, L as getActiveReleasesState, Ln as ScheduleReleaseAction, Lr as CommentTextSelection, Lt as organization, M as loadMoreUsers, Mn as EditDocumentOptions, Mr as Comment, Mt as organizations, N as resolveUser, Nn as EditReleaseAction, Nr as CommentLocalState, Nt as Organization, O as FetcherStore, On as DeleteReleaseAction, Or as removeComment, Ot as UsersGroupState, P as resolveUsers, Pn as PublishDocumentAction, Pr as CommentMessage, Pt as OrganizationBase, Q as ProjectMetadata, Qn as unarchiveRelease, Qr as ApplicationDeployment, Qt as ActionsResult, R as getAllReleasesState, Rn as UnarchiveReleaseAction, Rr as CommentTextSelectionItem, Rt as Installation, S as jsonMatch, Sn as JsonMatch, Sr as CreateCommentOptions, St as Membership, T as CORE_SDK_VERSION, Ti as StateSource, Tn as CreateDocumentAction, Tr as SetCommentStatusOptions, Tt as SanityUser, U as resolveQuery, Un as createRelease, Ur as getClientState, Ut as InstallationInterface, V as getQueryState, Vn as archiveRelease, Vr as ClientStoreState, Vt as InstallationBase, W as ProjectsOptions, Wn as deleteDocument, Wr as logout, Wt as InstallationsOptions, X as ProjectMember, Xn as publishRelease, Xr as ApplicationAccess, Xt as resolveFavoritesState, Y as ProjectBase, Yn as publishDocument, Yr as Application, Yt as getFavoritesState, Z as ProjectMemberRole, Zn as scheduleRelease, Zr as ApplicationBase, Zt as getReleaseDocumentId, _ as SanityDocument, _n as resolveDocument, _t as StateEvent, a as LoggedOutAuthState, ai as ApplicationsResponse, an as DocumentEditedEvent, ar as LogContext, at as getDocumentPresence, b as getPathDepth, bn as DocumentPermissionsResult, br as resolveCommentThreads, bt as GetUserOptions, c as getCurrentUserState, ci as UpdateApplicationInput, cn as DocumentRemotePatchesEvent, cr as Logger, ct as DisconnectEvent, d as getLoginUrlState, di as deleteApplication, dn as TransactionAcceptedEvent, dr as createDocumentHandle, dt as PresenceLocation, ei as ApplicationInterface, en as applyDocumentActions, er as unscheduleRelease, et as project, f as getTokenState, fi as updateApplication, fn as TransactionRevertedEvent, fr as createDocumentTypeHandle, ft as PresencePerspectiveOptions, g as Role, gn as getPermissionsState, gr as getCommentThreadsState, gt as RollCallEvent, h as ReleaseDocument, hn as getDocumentSyncStatus, hr as ResolveCommentsOptions, ht as ReportPresenceOptions, i as LoggedInAuthState, ii as ApplicationsOptions, in as DocumentDiscardedEvent, ir as InstanceContext, it as ProjectionValuePending, j as getUsersState, jn as EditDocumentAction, jr as updateComment, jt as OrganizationsOptions, k as FetcherStoreState, kn as DiscardDocumentAction, kr as replyToComment, kt as UsersStoreState, l as getDashboardOrganizationId, li as application, ln as DocumentTransactionSubmissionResult, lr as LoggerConfig, lt as DocumentPresence, m as CurrentUser, mi as checkPermissions, mn as getDocumentState, mr as CommentsOptions, mt as PresenceSelectionPoint, n as AuthStoreState, ni as ApplicationVisibility, nn as DocumentCreatedEvent, nr as resolveDatasets, nt as PreviewQueryResult, o as LoggingInAuthState, oi as DeleteApplicationInput, on as DocumentEvent, or as LogLevel, ot as getPresence, p as setAuthToken, pi as AccessResourceType, pn as DocumentOptions, pr as createProjectHandle, pt as PresenceSelection, q as getProjectionState, qn as editDocument, qr as OrgVerificationResult, qt as installations, r as ErrorAuthState, ri as ApplicationWorkspace, rn as DocumentDeletedEvent, rr as configureLogging, rt as PreviewValue, s as getAuthState, si as DeletedResult, sn as DocumentPublishedEvent, sr as LogNamespace, st as reportPresence, t as AuthState, ti as ApplicationStudioConfig, tn as ActionErrorEvent, tr as getDatasetsState, tt as PreviewMedia, u as getIsInDashboardState, ui as applications, un as DocumentUnpublishedEvent, ur as createDatasetHandle, ut as DocumentPresenceOptions, v as SanityProject, vn as resolvePermissions, vr as getCommentsState, vt as TransportEvent, w as stringifyPath, wi as Selector, wn as ArchiveReleaseAction, wr as ReplyToCommentOptions, wt as ResolveUsersOptions, x as joinPaths, xn as PermissionDeniedReason, xr as resolveComments, xt as GetUsersOptions, y as getIndexForKey, yn as subscribeDocumentEvents, yt as UserPresence, z as QueryOptions, zn as UnpublishDocumentAction, zr as CommentThread, zt as InstallationAccess } from "./authStore-DKFX8fn7.js";
3
- export { type AccessResourceType, type Action, type ActionErrorEvent, type ActionsResult, type Application, type ApplicationAccess, type ApplicationBase, type ApplicationDeployment, type ApplicationInclude, type ApplicationInterface, type ApplicationStudioConfig, type ApplicationVisibility, type ApplicationWorkspace, type ApplicationsOptions, type ApplicationsResponse, type ApplyDocumentActionsOptions, type ArchiveReleaseAction, type AuthConfig, type AuthProvider, type AuthState, AuthStateType, type AuthStoreState, CORE_SDK_VERSION, type CanvasResource, type ClientOptions, type ClientStoreState as ClientState, type Comment, type CommentLocalState, type CommentMessage, type CommentReaction, type CommentStatus, type CommentTextSelection, type CommentTextSelectionItem, type CommentThread, type CommentsOptions, type CreateCommentOptions, type CreateDocumentAction, type CreateReleaseAction, type CurrentUser, type DatasetHandle, type DatasetResource, type DeleteApplicationInput, type DeleteDocumentAction, type DeleteReleaseAction, type DeletedResult, type DiscardDocumentAction, type DisconnectEvent, type DocumentAction, type DocumentCreatedEvent, type DocumentDeletedEvent, type DocumentDiscardedEvent, type DocumentEditedEvent, type DocumentEvent, type DocumentHandle, type DocumentOptions, type DocumentPermissionsResult, type DocumentPresence, type DocumentPresenceOptions, type DocumentPublishedEvent, type DocumentRemotePatchesEvent, type DocumentResource, type DocumentTransactionSubmissionResult, type DocumentTypeHandle, type DocumentUnpublishedEvent, type EditDocumentAction, type EditDocumentOptions, type EditReleaseAction, type ErrorAuthState, type FavoriteStatusResponse, type FetcherStore, type FetcherStoreState, type GetUserOptions, type GetUsersOptions, type Installation, type InstallationAccess, type InstallationActiveConfig, type InstallationBase, type InstallationInclude, type InstallationInterface, type InstallationsOptions, type InstallationsResponse, type InstanceContext, type JsonMatch, type LogContext, type LogLevel, type LogNamespace, type LoggedInAuthState, type LoggedOutAuthState, type Logger, type LoggerConfig, type LoggingInAuthState, type MediaLibraryResource, type Membership, type OrgVerificationResult, type Organization, type OrganizationBase, type OrganizationMember, type OrganizationOptions, type Organizations, type OrganizationsOptions, type PermissionDeniedReason, type PerspectiveHandle, type PresenceLocation, type PresencePerspectiveOptions, type PresenceSelection, type PresenceSelectionPoint, type PreviewMedia, type PreviewQueryResult, type PreviewValue, type Project, type ProjectBase, type ProjectHandle, type ProjectMember, type ProjectMemberRole, type ProjectMetadata, type ProjectOptions, type ProjectionValuePending, type ProjectsOptions, type PublishDocumentAction, type PublishReleaseAction, type QueryOptions, type ReleaseAction, type ReleaseDocument, type ReleaseHandle, type ReleasePerspective, type ReleaseState, type RemoveCommentOptions, type ReplyToCommentOptions, type ReportPresenceOptions, type ResolveCommentsOptions, type ResolveUserOptions, type ResolveUsersOptions, type Role, type RollCallEvent, type SanityConfig, type SanityDocument, type SanityInstance, SanityProject, type SanityUser, type SanityUserResponse, type ScheduleReleaseAction, type Selector, type SetCommentStatusOptions, type StateEvent, type StateSource, type StudioConfig, type TokenSource, type TransactionAcceptedEvent, type TransactionRevertedEvent, type TransportEvent, type UnarchiveReleaseAction, type UnpublishDocumentAction, type UnscheduleReleaseAction, type UpdateApplicationInput, type UpdateCommentOptions, type UserPresence, type UserProfile, type UsersGroupState, type UsersStoreState, application, applications, applyDocumentActions, archiveRelease, checkPermissions, configureLogging, createComment, createDatasetHandle, createDocument, createDocumentHandle, createDocumentTypeHandle, createProjectHandle, createRelease, createSanityInstance, deleteApplication, deleteDocument, deleteRelease, discardDocument, editDocument, editRelease, getActiveReleasesState, getAllReleasesState, getAuthState, getClient, getClientState, getCommentThreadsState, getCommentsState, getCorsErrorProjectId, getCurrentUserState, getDashboardOrganizationId, getDatasetsState, getDocumentPresence, getDocumentState, getDocumentSyncStatus, getFavoritesState, getIndexForKey, getIsInDashboardState, getLoginUrlState, getPathDepth, getPermissionsState, getPerspectiveState, getPresence, getProjectionState, getQueryState, getReleaseDocumentId, getTokenState, getUserState, getUsersState, handleAuthCallback, installation, installations, isCanvasResource, isDatasetResource, isImportError, isMediaLibraryResource, joinPaths, jsonMatch, loadMoreUsers, logout, observeOrganizationVerificationState, organization, organizations, project, projects, publishDocument, publishRelease, removeComment, replyToComment, reportPresence, resolveCommentThreads, resolveComments, resolveDatasets, resolveDocument, resolveFavoritesState, resolvePermissions, resolveProjection, resolveQuery, resolveUser, resolveUsers, scheduleRelease, setAuthToken, setCommentStatus, slicePath, stringifyPath, subscribeDocumentEvents, unarchiveRelease, unpublishDocument, unscheduleRelease, updateApplication, updateComment };
2
+ import { $ as PreviewMedia, $n as unpublishDocument, $r as ApplicationInterface, $t as ApplyDocumentActionsOptions, A as loadMoreUsers, An as DocumentAction, Ar as updateComment, At as organizations, Bn as UnscheduleReleaseAction, Br as ClientStoreState, Bt as InstallationInclude, C as slicePath, Ci as Selector, Cn as Action, Cr as ReplyToCommentOptions, Ct as SanityUser, D as getCorsErrorProjectId, Dn as DeleteDocumentAction, Dr as removeComment, Dt as UsersStoreState, E as isImportError, En as CreateReleaseAction, Er as createComment, Et as UsersGroupState, F as getActiveReleasesState, Fn as PublishReleaseAction, Fr as CommentStatus, Ft as organization, G as getProjectionState, Gn as deleteRelease, Gr as observeOrganizationVerificationState, Gt as installations, H as ProjectsOptions, Hn as createDocument, Hr as getClientState, Ht as InstallationsOptions, I as getAllReleasesState, In as ReleaseAction, Ir as CommentTextSelection, It as Installation, J as ProjectMember, Jn as editRelease, Jr as Application, Jt as SetFavoriteInput, K as Project, Kn as discardDocument, Kr as OrgVerificationResult, Kt as FavoriteDocumentContext, L as QueryOptions, Ln as ScheduleReleaseAction, Lr as CommentTextSelectionItem, Lt as InstallationAccess, M as resolveUsers, Mn as EditDocumentOptions, Mr as CommentLocalState, Mt as OrganizationBase, N as getPerspectiveState, Nn as EditReleaseAction, Nr as CommentMessage, Nt as OrganizationMember, O as getUserState, On as DeleteReleaseAction, Or as replyToComment, Ot as Organizations, P as ReleaseState, Pn as PublishDocumentAction, Pr as CommentReaction, Pt as OrganizationOptions, Q as project, Qn as unarchiveRelease, Qr as ApplicationInclude, Qt as ActionsResult, Rn as UnarchiveReleaseAction, Rr as CommentThread, Rt as InstallationActiveConfig, S as jsonMatch, Sn as JsonMatch, Sr as RemoveCommentOptions, St as ResolveUsersOptions, T as CORE_SDK_VERSION, Tn as CreateDocumentAction, Tr as UpdateCommentOptions, Tt as UserProfile, U as projects, Un as createRelease, Ur as logout, Ut as InstallationsResponse, V as resolveQuery, Vn as archiveRelease, Vr as getClient, Vt as InstallationInterface, W as resolveProjection, Wn as deleteDocument, Wr as handleAuthCallback, Wt as installation, X as ProjectMetadata, Xn as publishRelease, Xr as ApplicationBase, Xt as setFavorite, Y as ProjectMemberRole, Yn as publishDocument, Yr as ApplicationAccess, Yt as favorites, Z as ProjectOptions, Zn as scheduleRelease, Zr as ApplicationDeployment, Zt as getReleaseDocumentId, _ as SanityDocument, _n as resolveDocument, _r as getCommentsState, _t as UserPresence, a as LoggedOutAuthState, ai as DeleteApplicationInput, an as DocumentEditedEvent, ar as LogLevel, at as reportPresence, b as getPathDepth, bn as DocumentPermissionsResult, br as resolveComments, bt as Membership, c as getCurrentUserState, ci as application, cn as DocumentRemotePatchesEvent, cr as LoggerConfig, ct as DocumentPresenceOptions, d as getLoginUrlState, di as updateApplication, dn as TransactionAcceptedEvent, dr as createDocumentTypeHandle, dt as PresenceSelection, ei as ApplicationStudioConfig, en as applyDocumentActions, er as unscheduleRelease, et as PreviewQueryResult, f as getTokenState, fi as AccessResourceType, fn as TransactionRevertedEvent, fr as createProjectHandle, ft as PresenceSelectionPoint, g as Role, gn as getPermissionsState, gt as TransportEvent, h as ReleaseDocument, hn as getDocumentSyncStatus, hr as getCommentThreadsState, ht as StateEvent, i as LoggedInAuthState, ii as ApplicationsResponse, in as DocumentDiscardedEvent, ir as LogContext, it as getPresence, j as resolveUser, jn as EditDocumentAction, jr as Comment, jt as Organization, k as getUsersState, kn as DiscardDocumentAction, kr as setCommentStatus, kt as OrganizationsOptions, l as getDashboardOrganizationId, li as applications, ln as DocumentTransactionSubmissionResult, lr as createDatasetHandle, lt as PresenceLocation, m as CurrentUser, mn as getDocumentState, mr as ResolveCommentsOptions, mt as RollCallEvent, n as AuthStoreState, ni as ApplicationWorkspace, nn as DocumentCreatedEvent, nr as configureLogging, nt as ProjectionValuePending, o as LoggingInAuthState, oi as DeletedResult, on as DocumentEvent, or as LogNamespace, ot as DisconnectEvent, p as setAuthToken, pi as checkPermissions, pn as DocumentOptions, pr as CommentsOptions, pt as ReportPresenceOptions, q as ProjectBase, qn as editDocument, qr as AuthStateType, qt as FavoriteStatusResponse, r as ErrorAuthState, ri as ApplicationsOptions, rn as DocumentDeletedEvent, rr as InstanceContext, rt as getDocumentPresence, s as getAuthState, si as UpdateApplicationInput, sn as DocumentPublishedEvent, sr as Logger, st as DocumentPresence, t as AuthState, ti as ApplicationVisibility, tn as ActionErrorEvent, tr as datasets, tt as PreviewValue, u as getIsInDashboardState, ui as deleteApplication, un as DocumentUnpublishedEvent, ur as createDocumentHandle, ut as PresencePerspectiveOptions, v as SanityProject, vn as resolvePermissions, vt as GetUserOptions, w as stringifyPath, wi as StateSource, wn as ArchiveReleaseAction, wr as SetCommentStatusOptions, wt as SanityUserResponse, x as joinPaths, xn as PermissionDeniedReason, xr as CreateCommentOptions, xt as ResolveUserOptions, y as getIndexForKey, yn as subscribeDocumentEvents, yr as resolveCommentThreads, yt as GetUsersOptions, z as getQueryState, zn as UnpublishDocumentAction, zr as ClientOptions, zt as InstallationBase } from "./authStore-C0o1NOxW.js";
3
+ export { type AccessResourceType, type Action, type ActionErrorEvent, type ActionsResult, type Application, type ApplicationAccess, type ApplicationBase, type ApplicationDeployment, type ApplicationInclude, type ApplicationInterface, type ApplicationStudioConfig, type ApplicationVisibility, type ApplicationWorkspace, type ApplicationsOptions, type ApplicationsResponse, type ApplyDocumentActionsOptions, type ArchiveReleaseAction, type AuthConfig, type AuthProvider, type AuthState, AuthStateType, type AuthStoreState, CORE_SDK_VERSION, type CanvasResource, type ClientOptions, type ClientStoreState as ClientState, type Comment, type CommentLocalState, type CommentMessage, type CommentReaction, type CommentStatus, type CommentTextSelection, type CommentTextSelectionItem, type CommentThread, type CommentsOptions, type CreateCommentOptions, type CreateDocumentAction, type CreateReleaseAction, type CurrentUser, type DatasetHandle, type DatasetResource, type DeleteApplicationInput, type DeleteDocumentAction, type DeleteReleaseAction, type DeletedResult, type DiscardDocumentAction, type DisconnectEvent, type DocumentAction, type DocumentCreatedEvent, type DocumentDeletedEvent, type DocumentDiscardedEvent, type DocumentEditedEvent, type DocumentEvent, type DocumentHandle, type DocumentOptions, type DocumentPermissionsResult, type DocumentPresence, type DocumentPresenceOptions, type DocumentPublishedEvent, type DocumentRemotePatchesEvent, type DocumentResource, type DocumentTransactionSubmissionResult, type DocumentTypeHandle, type DocumentUnpublishedEvent, type EditDocumentAction, type EditDocumentOptions, type EditReleaseAction, type ErrorAuthState, type FavoriteDocumentContext, type FavoriteStatusResponse, type GetUserOptions, type GetUsersOptions, type Installation, type InstallationAccess, type InstallationActiveConfig, type InstallationBase, type InstallationInclude, type InstallationInterface, type InstallationsOptions, type InstallationsResponse, type InstanceContext, type JsonMatch, type LogContext, type LogLevel, type LogNamespace, type LoggedInAuthState, type LoggedOutAuthState, type Logger, type LoggerConfig, type LoggingInAuthState, type MediaLibraryResource, type Membership, type OrgVerificationResult, type Organization, type OrganizationBase, type OrganizationMember, type OrganizationOptions, type Organizations, type OrganizationsOptions, type PermissionDeniedReason, type PerspectiveHandle, type PresenceLocation, type PresencePerspectiveOptions, type PresenceSelection, type PresenceSelectionPoint, type PreviewMedia, type PreviewQueryResult, type PreviewValue, type Project, type ProjectBase, type ProjectHandle, type ProjectMember, type ProjectMemberRole, type ProjectMetadata, type ProjectOptions, type ProjectionValuePending, type ProjectsOptions, type PublishDocumentAction, type PublishReleaseAction, type QueryOptions, type ReleaseAction, type ReleaseDocument, type ReleaseHandle, type ReleasePerspective, type ReleaseState, type RemoveCommentOptions, type ReplyToCommentOptions, type ReportPresenceOptions, type ResolveCommentsOptions, type ResolveUserOptions, type ResolveUsersOptions, type Role, type RollCallEvent, type SanityConfig, type SanityDocument, type SanityInstance, SanityProject, type SanityUser, type SanityUserResponse, type ScheduleReleaseAction, type Selector, type SetCommentStatusOptions, type SetFavoriteInput, type StateEvent, type StateSource, type StudioConfig, type TokenSource, type TransactionAcceptedEvent, type TransactionRevertedEvent, type TransportEvent, type UnarchiveReleaseAction, type UnpublishDocumentAction, type UnscheduleReleaseAction, type UpdateApplicationInput, type UpdateCommentOptions, type UserPresence, type UserProfile, type UsersGroupState, type UsersStoreState, application, applications, applyDocumentActions, archiveRelease, checkPermissions, configureLogging, createComment, createDatasetHandle, createDocument, createDocumentHandle, createDocumentTypeHandle, createProjectHandle, createRelease, createSanityInstance, datasets, deleteApplication, deleteDocument, deleteRelease, discardDocument, editDocument, editRelease, favorites, getActiveReleasesState, getAllReleasesState, getAuthState, getClient, getClientState, getCommentThreadsState, getCommentsState, getCorsErrorProjectId, getCurrentUserState, getDashboardOrganizationId, getDocumentPresence, getDocumentState, getDocumentSyncStatus, getIndexForKey, getIsInDashboardState, getLoginUrlState, getPathDepth, getPermissionsState, getPerspectiveState, getPresence, getProjectionState, getQueryState, getReleaseDocumentId, getTokenState, getUserState, getUsersState, handleAuthCallback, installation, installations, isCanvasResource, isDatasetResource, isImportError, isMediaLibraryResource, joinPaths, jsonMatch, loadMoreUsers, logout, observeOrganizationVerificationState, organization, organizations, project, projects, publishDocument, publishRelease, removeComment, replyToComment, reportPresence, resolveCommentThreads, resolveComments, resolveDocument, resolvePermissions, resolveProjection, resolveQuery, resolveUser, resolveUsers, scheduleRelease, setAuthToken, setCommentStatus, setFavorite, slicePath, stringifyPath, subscribeDocumentEvents, unarchiveRelease, unpublishDocument, unscheduleRelease, updateApplication, updateComment };