sanity 6.6.0-next.41 → 6.6.0-next.45

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.
@@ -14741,6 +14741,12 @@ interface DocumentPairPermissionsOptions {
14741
14741
  type: string;
14742
14742
  version?: string;
14743
14743
  permission: DocumentPermission;
14744
+ /**
14745
+ * Identity of the current user. Included in the memoization key so that an
14746
+ * in-place user switch (same project, no reload) does not replay a previous
14747
+ * user's grants from the module-level memo cache.
14748
+ */
14749
+ userId?: string;
14744
14750
  /**
14745
14751
  * @deprecated Does nothing. Preserved to avoid breaking changes.
14746
14752
  * Will be removed in the next major version.
@@ -14748,23 +14754,7 @@ interface DocumentPairPermissionsOptions {
14748
14754
  serverActionsEnabled?: Observable<boolean>;
14749
14755
  pairListenerOptions?: DocumentStoreExtraOptions;
14750
14756
  }
14751
- /**
14752
- * The observable version of `useDocumentPairPermissions`
14753
- *
14754
- * @see useDocumentPairPermissions
14755
- *
14756
- * @internal
14757
- */
14758
- declare function getDocumentPairPermissions({
14759
- client,
14760
- grantsStore,
14761
- schema,
14762
- id,
14763
- permission,
14764
- type,
14765
- version: v,
14766
- pairListenerOptions
14767
- }: DocumentPairPermissionsOptions): Observable<PermissionCheckResult>;
14757
+ declare const getDocumentPairPermissions: (options: DocumentPairPermissionsOptions) => Observable<PermissionCheckResult>;
14768
14758
  /**
14769
14759
  * Gets document pair permissions based on a document ID and a type.
14770
14760
  *