@tearleads/client-sdk 0.1.14 → 0.1.15

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 (200) hide show
  1. package/client/containerContents.js +2 -1
  2. package/client/containerContents.js.map +1 -1
  3. package/data/documents/blob/shared/types.d.ts +4 -0
  4. package/data/documents/blob/shared/types.js.map +1 -1
  5. package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js +2 -0
  6. package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js.map +1 -1
  7. package/data/keyingProjectionVerification/checkpointContext.d.ts +2 -1
  8. package/data/keyingProjectionVerification/checkpointContext.js +22 -0
  9. package/data/keyingProjectionVerification/checkpointContext.js.map +1 -1
  10. package/data/keyingProjectionVerification/containerDestinationVerification.js +11 -1
  11. package/data/keyingProjectionVerification/containerDestinationVerification.js.map +1 -1
  12. package/data/keyingProjectionVerification/containerManifestVerification.js.map +1 -1
  13. package/data/keyingProjectionVerification/containerPathVerification.js.map +1 -1
  14. package/data/keyingProjectionVerification/containerProjectionVerification.d.ts +3 -2
  15. package/data/keyingProjectionVerification/containerProjectionVerification.js +10 -11
  16. package/data/keyingProjectionVerification/containerProjectionVerification.js.map +1 -1
  17. package/data/keyingProjectionVerification/documentManifestPolicies.js.map +1 -1
  18. package/data/keyingProjectionVerification/documentManifestVerification.js.map +1 -1
  19. package/data/keyingProjectionVerification/documentProjectionVerification.d.ts +2 -3
  20. package/data/keyingProjectionVerification/documentProjectionVerification.js +4 -0
  21. package/data/keyingProjectionVerification/documentProjectionVerification.js.map +1 -1
  22. package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js +14 -12
  23. package/data/keyingProjectionVerification/mergeProjectionPolicyEvidence.js.map +1 -1
  24. package/data/keyingProjectionVerification/organizationFounderBinding.js.map +1 -1
  25. package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js +33 -6
  26. package/data/keyingProjectionVerification/projectionAuthorizationEvidence.js.map +1 -1
  27. package/data/keyingProjectionVerification/projectionLifetimes.js +13 -0
  28. package/data/keyingProjectionVerification/projectionLifetimes.js.map +1 -0
  29. package/data/keyingProjectionVerification/projectionPolicyEvidence.js +19 -66
  30. package/data/keyingProjectionVerification/projectionPolicyEvidence.js.map +1 -1
  31. package/data/keyingProjectionVerification/types.d.ts +13 -2
  32. package/data/keyingProjectionVerification/types.js +15 -0
  33. package/data/keyingProjectionVerification/types.js.map +1 -1
  34. package/data/persistence/keyingCheckpointAdvancePersistence.js +4 -1
  35. package/data/persistence/keyingCheckpointAdvancePersistence.js.map +1 -1
  36. package/data/persistence/organizationFounderPersistence.js +2 -2
  37. package/data/persistence/organizationFounderPersistence.js.map +1 -1
  38. package/data/persistence/principalAuthorizationCheckpoints.js +29 -0
  39. package/data/persistence/principalAuthorizationCheckpoints.js.map +1 -0
  40. package/data/persistence/principalHistoryEvidencePersistence.d.ts +30 -0
  41. package/data/persistence/principalHistoryPrefixPersistence.d.ts +24 -0
  42. package/data/persistence/principalHistoryPrefixPersistence.js +6 -2
  43. package/data/persistence/principalHistoryPrefixPersistence.js.map +1 -1
  44. package/data/persistence/principalHistoryStagePersistence.d.ts +21 -0
  45. package/data/principals/principalHistoryRuntime.js +12 -0
  46. package/data/principals/principalHistoryRuntime.js.map +1 -0
  47. package/data/principals/principalHistoryStageProtection.js +2 -12
  48. package/data/principals/principalHistoryStageProtection.js.map +1 -1
  49. package/data/principals/principalPolicyEvidence.d.ts +2 -2
  50. package/data/principals/principalPolicyEvidence.js.map +1 -1
  51. package/data/sqlite/principalHistoryEvidenceSchema.d.ts +308 -0
  52. package/data/sqlite/principalHistoryStageSchema.d.ts +119 -0
  53. package/index.d.ts +2 -2
  54. package/index.js +1 -1
  55. package/index.js.map +1 -1
  56. package/internal/api-client/ApiCache.d.ts +54 -0
  57. package/internal/api-client/ApiClient.d.ts +255 -309
  58. package/internal/api-client/ApiClient.js +15 -6
  59. package/internal/api-client/ApiClient.js.map +1 -1
  60. package/internal/api-client/index.d.ts +1 -0
  61. package/internal/api-client/index.js.map +1 -1
  62. package/internal/api-client/principalHistoryDeadline.js +20 -0
  63. package/internal/api-client/principalHistoryDeadline.js.map +1 -0
  64. package/internal/api-client/principalHistoryRequest.js +59 -22
  65. package/internal/api-client/principalHistoryRequest.js.map +1 -1
  66. package/internal/api-client/principalHistoryRequestContext.js +18 -5
  67. package/internal/api-client/principalHistoryRequestContext.js.map +1 -1
  68. package/internal/api-client/principalPolicyRequests.d.ts +799 -0
  69. package/internal/api-client/principalPolicyRequests.js +9 -4
  70. package/internal/api-client/principalPolicyRequests.js.map +1 -1
  71. package/internal/api-client/projectionPolicyHistoryPages.d.ts +9 -0
  72. package/internal/api-client/projectionPolicyHistoryPages.js +88 -0
  73. package/internal/api-client/projectionPolicyHistoryPages.js.map +1 -0
  74. package/internal/api-client/writerProjectionRequests.js +26 -0
  75. package/internal/api-client/writerProjectionRequests.js.map +1 -0
  76. package/internal/crypto/keying/principalPolicyHistory.js +4 -0
  77. package/internal/crypto/keying/principalPolicyHistory.js.map +1 -1
  78. package/internal/crypto/keying/principalPolicyHistoryTypes.d.ts +2 -0
  79. package/internal/crypto/keying/principalPolicyHistoryTypes.js.map +1 -1
  80. package/internal/crypto/projectionHistorySlots.js +0 -4
  81. package/internal/crypto/projectionHistorySlots.js.map +1 -1
  82. package/internal/validators/operation/index.d.ts +1 -0
  83. package/internal/validators/operation/index.js +1 -0
  84. package/internal/validators/operation/index.js.map +1 -1
  85. package/internal/validators/operation/principals.d.ts +38 -16
  86. package/internal/validators/operation/principals.js +11 -5
  87. package/internal/validators/operation/principals.js.map +1 -1
  88. package/internal/validators/operation/projectionPolicyHistory.d.ts +512 -0
  89. package/internal/validators/operation/projectionPolicyHistory.js +37 -0
  90. package/internal/validators/operation/projectionPolicyHistory.js.map +1 -0
  91. package/internal/validators/operation/registry.d.ts +2 -0
  92. package/internal/validators/operation/registry.js +2 -0
  93. package/internal/validators/operation/registry.js.map +1 -1
  94. package/internal/validators/operation/writerProjections.d.ts +178 -1224
  95. package/internal/validators/operation/writerProjections.js +9 -2
  96. package/internal/validators/operation/writerProjections.js.map +1 -1
  97. package/internal/validators/response/container.d.ts +84 -612
  98. package/internal/validators/response/documentMutation.d.ts +84 -612
  99. package/internal/validators/response/index.d.ts +1 -0
  100. package/internal/validators/response/index.js +1 -0
  101. package/internal/validators/response/index.js.map +1 -1
  102. package/internal/validators/response/organizationBilling.d.ts +1 -0
  103. package/internal/validators/response/organizationBilling.js +1 -1
  104. package/internal/validators/response/organizationBilling.js.map +1 -1
  105. package/internal/validators/response/principalHistoryPreparation.js +28 -1
  106. package/internal/validators/response/principalHistoryPreparation.js.map +1 -1
  107. package/internal/validators/response/principalPolicySnapshotPage.d.ts +388 -0
  108. package/internal/validators/response/principalPolicySnapshotPage.js +24 -0
  109. package/internal/validators/response/principalPolicySnapshotPage.js.map +1 -0
  110. package/internal/validators/response/projectionPolicyEvidence.d.ts +85 -613
  111. package/internal/validators/response/projectionPolicyEvidence.js +10 -5
  112. package/internal/validators/response/projectionPolicyEvidence.js.map +1 -1
  113. package/package.json +1 -1
  114. package/stores/documents/documentStore/attachmentHydration.js +3 -0
  115. package/stores/documents/documentStore/attachmentHydration.js.map +1 -1
  116. package/stores/documents/documentStore/syncDetachedAttachments.js +3 -0
  117. package/stores/documents/documentStore/syncDetachedAttachments.js.map +1 -1
  118. package/workflows/blobs/decrypt.d.ts +1 -1
  119. package/workflows/blobs/decrypt.js +3 -1
  120. package/workflows/blobs/decrypt.js.map +1 -1
  121. package/workflows/blobs/detach.js +6 -1
  122. package/workflows/blobs/detach.js.map +1 -1
  123. package/workflows/blobs/hydrate.d.ts +3 -1
  124. package/workflows/blobs/hydrate.js +2 -0
  125. package/workflows/blobs/hydrate.js.map +1 -1
  126. package/workflows/blobs/retainedAttachmentVerification.js +2 -0
  127. package/workflows/blobs/retainedAttachmentVerification.js.map +1 -1
  128. package/workflows/container-contents/container-state/createAdoption.js +2 -0
  129. package/workflows/container-contents/container-state/createAdoption.js.map +1 -1
  130. package/workflows/container-contents/container-state/createWithMetadata.js +7 -39
  131. package/workflows/container-contents/container-state/createWithMetadata.js.map +1 -1
  132. package/workflows/container-contents/container-state/createWithMetadataPlan.js +68 -0
  133. package/workflows/container-contents/container-state/createWithMetadataPlan.js.map +1 -0
  134. package/workflows/container-contents/remoteContainerState.js +3 -1
  135. package/workflows/container-contents/remoteContainerState.js.map +1 -1
  136. package/workflows/container-contents/remoteHydration/verifiedDestination.js +3 -0
  137. package/workflows/container-contents/remoteHydration/verifiedDestination.js.map +1 -1
  138. package/workflows/container-contents/runtime.d.ts +3 -0
  139. package/workflows/container-contents/runtime.js +7 -6
  140. package/workflows/container-contents/runtime.js.map +1 -1
  141. package/workflows/documents/create.d.ts +2 -15
  142. package/workflows/documents/create.js +9 -64
  143. package/workflows/documents/create.js.map +1 -1
  144. package/workflows/documents/createProjection.d.ts +14 -0
  145. package/workflows/documents/createProjection.js +26 -0
  146. package/workflows/documents/createProjection.js.map +1 -0
  147. package/workflows/documents/createResponse.js +49 -0
  148. package/workflows/documents/createResponse.js.map +1 -0
  149. package/workflows/documents/linkSetBlobRewraps.js +2 -0
  150. package/workflows/documents/linkSetBlobRewraps.js.map +1 -1
  151. package/workflows/documents/runtime.d.ts +3 -0
  152. package/workflows/documents/runtime.js +3 -2
  153. package/workflows/documents/runtime.js.map +1 -1
  154. package/workflows/documents/syncFailureClassification.js +3 -1
  155. package/workflows/documents/syncFailureClassification.js.map +1 -1
  156. package/workflows/principals/index.d.ts +2 -0
  157. package/workflows/principals/index.js +1 -0
  158. package/workflows/principals/index.js.map +1 -1
  159. package/workflows/principals/policyVerification.js.map +1 -1
  160. package/workflows/principals/principalHistoryRecoveryAuthority.js +20 -0
  161. package/workflows/principals/principalHistoryRecoveryAuthority.js.map +1 -0
  162. package/workflows/principals/principalHistoryRecoveryStage.js +1 -1
  163. package/workflows/principals/principalHistoryRecoveryStage.js.map +1 -1
  164. package/workflows/principals/principalHistoryRecoveryTypes.d.ts +3 -3
  165. package/workflows/principals/principalHistoryRecoveryTypes.js.map +1 -1
  166. package/workflows/principals/principalHistoryRecoveryVerification.js +6 -1
  167. package/workflows/principals/principalHistoryRecoveryVerification.js.map +1 -1
  168. package/workflows/principals/principalRecoveryOutage.js +1 -1
  169. package/workflows/principals/principalRecoveryOutage.js.map +1 -1
  170. package/workflows/principals/publicPrincipalHistoryAuthority.js +60 -0
  171. package/workflows/principals/publicPrincipalHistoryAuthority.js.map +1 -0
  172. package/workflows/principals/publicPrincipalHistoryPage.js +87 -0
  173. package/workflows/principals/publicPrincipalHistoryPage.js.map +1 -0
  174. package/workflows/principals/publicPrincipalHistoryProgress.js +178 -0
  175. package/workflows/principals/publicPrincipalHistoryProgress.js.map +1 -0
  176. package/workflows/principals/publicPrincipalHistoryTypes.d.ts +39 -0
  177. package/workflows/principals/publicPrincipalHistoryTypes.js +2 -0
  178. package/workflows/principals/publicPrincipalHistoryTypes.js.map +1 -0
  179. package/workflows/principals/publicProjectionDirectory.js +40 -0
  180. package/workflows/principals/publicProjectionDirectory.js.map +1 -0
  181. package/workflows/principals/publicProjectionPrincipal.js +53 -0
  182. package/workflows/principals/publicProjectionPrincipal.js.map +1 -0
  183. package/workflows/principals/recoverPrincipalPolicyHistory.js +4 -1
  184. package/workflows/principals/recoverPrincipalPolicyHistory.js.map +1 -1
  185. package/workflows/principals/recoverProjectionPolicyHistory.d.ts +9 -0
  186. package/workflows/principals/recoverProjectionPolicyHistory.js +98 -0
  187. package/workflows/principals/recoverProjectionPolicyHistory.js.map +1 -0
  188. package/workflows/principals/recoverPublicPrincipalHistory.js +176 -0
  189. package/workflows/principals/recoverPublicPrincipalHistory.js.map +1 -0
  190. package/workflows/principals/recoverScopedPrincipalPolicyHistory.js +2 -5
  191. package/workflows/principals/recoverScopedPrincipalPolicyHistory.js.map +1 -1
  192. package/workflows/principals/runtimePolicyRecovery.js +2 -1
  193. package/workflows/principals/runtimePolicyRecovery.js.map +1 -1
  194. package/workflows/principals/runtimePolicyWarmer.js +2 -0
  195. package/workflows/principals/runtimePolicyWarmer.js.map +1 -1
  196. package/workflows/principals/runtimeProjectionPolicyRecovery.js +56 -0
  197. package/workflows/principals/runtimeProjectionPolicyRecovery.js.map +1 -0
  198. package/workflows/principals/selectPublicPrincipalHistory.js +90 -0
  199. package/workflows/principals/selectPublicPrincipalHistory.js.map +1 -0
  200. package/workflows/registration/provisioningBootstrapBuilders.d.ts +21 -153
@@ -30,6 +30,7 @@ export { isOrganizationReadModelResponse, type OrganizationReadModelDeltaRespons
30
30
  export { ORGANIZATION_READ_MODEL_ERROR_CODES, type OrganizationReadModelErrorCode, OrganizationReadModelErrorCodeSchema, type OrganizationReadModelFailureResponse, OrganizationReadModelFailureResponseSchema, } from "./organizationReadModelError.js";
31
31
  export { CommitOrganizationGroupPolicyConflictResponseSchema, type CommitOrganizationGroupPolicyResponse, CommitOrganizationGroupPolicyResponseSchema, type CurrentPrincipalMemberEnvelopesResponse, CurrentPrincipalMemberEnvelopesResponseSchema, isCommitOrganizationGroupPolicyResponse, isCurrentPrincipalMemberEnvelopesResponse, isPrincipalPolicyBundleResponse, isPrincipalPolicyMutationResponse, isPrincipalPolicyStaleErrorResponse, isPrincipalPolicyStateChainEntryResponse, isPrincipalStatePayloadResponse, isPrincipalStateResponse, type PrincipalContainerGrantResponse, PrincipalContainerGrantResponseSchema, type PrincipalMemberEnvelopeResponse, PrincipalMemberEnvelopeResponseSchema, type PrincipalPolicyBundleResponse, PrincipalPolicyBundleResponseSchema, type PrincipalPolicyErrorResponse, PrincipalPolicyErrorResponseSchema, type PrincipalPolicyMutationResponse, PrincipalPolicyMutationResponseSchema, type PrincipalPolicySnapshotResponse, PrincipalPolicySnapshotResponseSchema, type PrincipalPolicyStaleErrorResponse, PrincipalPolicyStaleErrorResponseSchema, type PrincipalPolicyStateChainEntryResponse, PrincipalPolicyStateChainEntryResponseSchema, type PrincipalProjectionMemberResponse, PrincipalProjectionMemberResponseSchema, type PrincipalStateExternalAuthorityResponse, PrincipalStateExternalAuthorityResponseSchema, type PrincipalStatePayloadResponse, PrincipalStatePayloadResponseSchema, type PrincipalStateResponse, PrincipalStateResponseSchema, } from "./principal.js";
32
32
  export { isPrincipalPolicyPageResponse, type PrincipalPolicyPageResponse, PrincipalPolicyPageResponseSchema, } from "./principalPolicyPage.js";
33
+ export { isPrincipalPolicySnapshotPageResponse, type PrincipalPolicyHistorySourceResponse, PrincipalPolicyHistorySourceResponseSchema, type PrincipalPolicySnapshotPageResponse, PrincipalPolicySnapshotPageResponseSchema, } from "./principalPolicySnapshotPage.js";
33
34
  export { isReferencedPrincipalStateResponse, type ReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
34
35
  export { type ProjectionPolicyEvidenceResponse, ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
35
36
  export { isRegistrationResponse, type RegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
@@ -30,6 +30,7 @@ export { isOrganizationReadModelResponse, OrganizationReadModelResponseSchema, }
30
30
  export { ORGANIZATION_READ_MODEL_ERROR_CODES, OrganizationReadModelErrorCodeSchema, OrganizationReadModelFailureResponseSchema, } from "./organizationReadModelError.js";
31
31
  export { CommitOrganizationGroupPolicyConflictResponseSchema, CommitOrganizationGroupPolicyResponseSchema, CurrentPrincipalMemberEnvelopesResponseSchema, isCommitOrganizationGroupPolicyResponse, isCurrentPrincipalMemberEnvelopesResponse, isPrincipalPolicyBundleResponse, isPrincipalPolicyMutationResponse, isPrincipalPolicyStaleErrorResponse, isPrincipalPolicyStateChainEntryResponse, isPrincipalStatePayloadResponse, isPrincipalStateResponse, PrincipalContainerGrantResponseSchema, PrincipalMemberEnvelopeResponseSchema, PrincipalPolicyBundleResponseSchema, PrincipalPolicyErrorResponseSchema, PrincipalPolicyMutationResponseSchema, PrincipalPolicySnapshotResponseSchema, PrincipalPolicyStaleErrorResponseSchema, PrincipalPolicyStateChainEntryResponseSchema, PrincipalProjectionMemberResponseSchema, PrincipalStateExternalAuthorityResponseSchema, PrincipalStatePayloadResponseSchema, PrincipalStateResponseSchema, } from "./principal.js";
32
32
  export { isPrincipalPolicyPageResponse, PrincipalPolicyPageResponseSchema, } from "./principalPolicyPage.js";
33
+ export { isPrincipalPolicySnapshotPageResponse, PrincipalPolicyHistorySourceResponseSchema, PrincipalPolicySnapshotPageResponseSchema, } from "./principalPolicySnapshotPage.js";
33
34
  export { isReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "./principalReference.js";
34
35
  export { ProjectionPolicyEvidenceResponseSchema, } from "./projectionPolicyEvidence.js";
35
36
  export { isRegistrationResponse, RegistrationResponseSchema, } from "./registration.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EAEvB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EAEzB,0BAA0B,EAC1B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,EAE5B,0BAA0B,EAE1B,yBAAyB,EAEzB,2BAA2B,EAG3B,2BAA2B,EAE3B,6BAA6B,GAC9B,MAAM,QAAQ,CAAC;AAChB,OAAO,EACL,2BAA2B,EAC3B,uBAAuB,EAEvB,+BAA+B,EAE/B,2BAA2B,GAC5B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAEL,gCAAgC,EAEhC,kCAAkC,EAElC,2BAA2B,EAE3B,kCAAkC,EAElC,0CAA0C,EAE1C,4BAA4B,EAE5B,wCAAwC,EAExC,wCAAwC,EACxC,4BAA4B,EAC5B,8BAA8B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,EAErC,qCAAqC,EAErC,mCAAmC,EAEnC,kCAAkC,EAElC,qCAAqC,EAErC,qCAAqC,EAErC,uCAAuC,EAEvC,4CAA4C,EAE5C,uCAAuC,EAEvC,6CAA6C,EAE7C,mCAAmC,EAEnC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,6BAA6B,EAE7B,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,kCAAkC,EAElC,sCAAsC,GACvC,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAEL,sCAAsC,GACvC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,wBAAwB,EACxB,4BAA4B,EAC5B,mCAAmC,EAEnC,4BAA4B,EAE5B,gCAAgC,EAEhC,6CAA6C,EAE7C,sCAAsC,EAEtC,uCAAuC,EAEvC,iCAAiC,EAEjC,iCAAiC,GAClC,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,iCAAiC,EAEjC,oCAAoC,EAEpC,wCAAwC,EAExC,sCAAsC,EAEtC,qCAAqC,EAErC,+BAA+B,GAChC,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,sBAAsB,EACtB,8BAA8B,EAC9B,+BAA+B,EAC/B,+BAA+B,EAC/B,sBAAsB,EAEtB,0BAA0B,EAE1B,kCAAkC,EAElC,mCAAmC,EAEnC,mCAAmC,EAEnC,0BAA0B,EAE1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,eAAe,EAEf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type CompleteMultipartBlobStageResponse,\n CompleteMultipartBlobStageResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isCompleteMultipartBlobStageResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListContainerDocumentsResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n} from \"./root\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,kCAAkC,GACnC,MAAM,SAAS,CAAC;AACjB,OAAO,EAEL,0BAA0B,EAC1B,sBAAsB,GACvB,MAAM,eAAe,CAAC;AACvB,OAAO,EAEL,4BAA4B,EAE5B,uBAAuB,EAEvB,4BAA4B,EAC5B,wBAAwB,EACxB,mBAAmB,EACnB,wBAAwB,EACxB,sBAAsB,EACtB,+BAA+B,EAC/B,sBAAsB,EACtB,qBAAqB,EACrB,gBAAgB,EAChB,yBAAyB,EAEzB,0BAA0B,EAC1B,mBAAmB,EAEnB,sBAAsB,EAEtB,4BAA4B,EAE5B,0BAA0B,EAE1B,yBAAyB,EAEzB,2BAA2B,EAG3B,2BAA2B,EAE3B,6BAA6B,GA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,0BAA0B,EAE1B,kCAAkC,EAElC,mCAAmC,EAEnC,mCAAmC,EAEnC,0BAA0B,EAE1B,8BAA8B,GAC/B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,eAAe,EAEf,mBAAmB,GACpB,MAAM,iBAAiB,CAAC","sourcesContent":["export {\n type AccessManifestBundleWireResponse,\n isAccessManifestBundleWireResponse,\n} from \"../util\";\nexport {\n type EffectiveAccessLevel,\n EffectiveAccessLevelSchema,\n isEffectiveAccessLevel,\n} from \"./accessLevel\";\nexport {\n type ChallengeErrorResponse,\n ChallengeErrorResponseSchema,\n type ChallengeResponse,\n ChallengeResponseSchema,\n type DestroySessionResponse,\n DestroySessionResponseSchema,\n isChallengeErrorResponse,\n isChallengeResponse,\n isDestroySessionResponse,\n isListSessionsResponse,\n isSessionRefreshRequiredFailure,\n isUserIdentityResponse,\n isUserSessionResponse,\n isVerifyResponse,\n isWebSocketTicketResponse,\n type ListSessionsResponse,\n ListSessionsResponseSchema,\n SESSION_ERROR_CODES,\n type SessionErrorCode,\n SessionErrorCodeSchema,\n type SessionFailureResponse,\n SessionFailureResponseSchema,\n type UserIdentityResponse,\n UserIdentityResponseSchema,\n type UserSessionResponse,\n UserSessionResponseSchema,\n type VerifyFailureResponse,\n VerifyFailureResponseSchema,\n type VerifyResponse,\n type VerifySuccessResponse,\n VerifySuccessResponseSchema,\n type WebSocketTicketResponse,\n WebSocketTicketResponseSchema,\n} from \"./auth\";\nexport {\n isRevenueCatWebhookResponse,\n isStripeWebhookResponse,\n type RevenueCatWebhookResponse,\n RevenueCatWebhookResponseSchema,\n type StripeWebhookResponse,\n StripeWebhookResponseSchema,\n} from \"./billingWebhooks\";\nexport {\n type BlobAttachmentBindResponse,\n BlobAttachmentBindResponseSchema,\n type BlobAttachmentDetachResponse,\n BlobAttachmentDetachResponseSchema,\n type BlobAttachmentSummary,\n BlobAttachmentSummarySchema,\n type BlobContentKeyBundleResponse,\n BlobContentKeyBundleResponseSchema,\n type BlobContentKeyTargetEnvelopeResponse,\n BlobContentKeyTargetEnvelopeResponseSchema,\n type BlobKekTargetsResponse,\n BlobKekTargetsResponseSchema,\n type CompleteMultipartBlobStageResponse,\n CompleteMultipartBlobStageResponseSchema,\n type InitiateMultipartBlobStageResponse,\n InitiateMultipartBlobStageResponseSchema,\n isBlobAttachmentBindResponse,\n isBlobAttachmentDetachResponse,\n isCompleteMultipartBlobStageResponse,\n isInitiateMultipartBlobStageResponse,\n isListDocumentAttachmentsResponse,\n isMultipartBlobStageStatusResponse,\n isUploadMultipartBlobPartResponse,\n type ListDocumentAttachmentsResponse,\n ListDocumentAttachmentsResponseSchema,\n type MultipartBlobStagePart,\n MultipartBlobStagePartSchema,\n type MultipartBlobStageStatusResponse,\n MultipartBlobStageStatusResponseSchema,\n type UploadMultipartBlobPartResponse,\n UploadMultipartBlobPartResponseSchema,\n} from \"./blob\";\nexport {\n BLOB_MUTATION_ERROR_CODES,\n type BlobMutationErrorCode,\n type BlobMutationFailureResponse,\n BlobMutationFailureResponseSchema,\n} from \"./blobMutationError\";\nexport {\n CONTAINER_PROJECTION_STATE_INVALID_ERROR_CODE,\n type ContainerDeleteResponse,\n ContainerDeleteResponseSchema,\n type ContainerKekKeyringWireResponse,\n type ContainerKekLogEpochResponse,\n ContainerKekLogEpochResponseSchema,\n type ContainerKekLogResponse,\n ContainerKekLogResponseSchema,\n type ContainerKekResponse,\n type ContainerKeyingPathResponse,\n ContainerKeyingPathResponseSchema,\n type ContainerMutationResponse,\n ContainerMutationResponseSchema,\n type ContainerReciteResponse,\n ContainerReciteResponseSchema,\n type ContainerRotationResponse,\n ContainerRotationResponseSchema,\n type ContainerSummary,\n ContainerSummaryResponseSchema,\n type ContainerSyncTombstone,\n ContainerSyncTombstoneResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n type ContainerWriterProjectionResponse,\n ContainerWriterProjectionResponseSchema,\n isContainerDeleteResponse,\n isContainerKekLogResponse,\n isContainerMutationResponse,\n isContainerReciteResponse,\n isContainerRotationResponse,\n isContainerWriterProjectionResponse,\n isListContainersResponse,\n type ListContainersResponse,\n ListContainersResponseSchema,\n} from \"./container\";\nexport {\n type ContainerCreateWithMetadataDocumentResponse,\n ContainerCreateWithMetadataDocumentResponseSchema,\n isContainerCreateWithMetadataDocumentResponse,\n} from \"./containerMetadata\";\nexport {\n CONTAINER_MUTATION_ERROR_CODES,\n ContainerMutationBehaviorErrorCodeSchema,\n type ContainerMutationErrorCode,\n ContainerMutationErrorCodeSchema,\n type ContainerMutationFailureResponse,\n ContainerMutationFailureResponseSchema,\n} from \"./containerMutationError\";\nexport {\n CONTAINER_NOT_FOUND_ERROR_CODE,\n type ContainerNotFoundErrorResponse,\n ContainerNotFoundErrorResponseSchema,\n} from \"./containerNotFoundError\";\nexport {\n isListContainerParentLanesResponse,\n type ListContainerParentLanesResponse,\n ListContainerParentLanesResponseSchema,\n} from \"./containerParentLanes\";\nexport {\n CONTAINER_UNAVAILABLE_ERROR_CODE,\n type ContainerUnavailableErrorCode,\n} from \"./containerUnavailableError\";\nexport {\n type ContainerDocumentSummary,\n ContainerDocumentSummaryResponseSchema,\n type ContainerDocumentSyncTombstone,\n ContainerDocumentSyncTombstoneResponseSchema,\n type DocumentEditAttributionRangeResponse,\n DocumentEditAttributionRangeResponseSchema,\n type DocumentEditAttributionResponse,\n DocumentEditAttributionResponseSchema,\n type DocumentEditAttributionSegmentResponse,\n DocumentEditAttributionSegmentResponseSchema,\n isDocumentEditAttributionResponse,\n isListContainerDocumentsResponse,\n isListDocumentEditAttributionRangesResponse,\n type ListContainerDocumentsResponse,\n ListContainerDocumentsResponseSchema,\n type ListDocumentEditAttributionRangesResponse,\n ListDocumentEditAttributionRangesResponseSchema,\n} from \"./document\";\nexport {\n type DocumentContentKeyBundleResponse,\n DocumentContentKeyBundleResponseSchema,\n type DocumentContentKeyTargetEnvelopeResponse,\n DocumentContentKeyTargetEnvelopeResponseSchema,\n type DocumentCreateResponse,\n DocumentCreateResponseSchema,\n type DocumentKekTargetsResponse,\n DocumentKekTargetsResponseSchema,\n type DocumentLinkSetMutationResponse,\n DocumentLinkSetMutationResponseSchema,\n type DocumentPurgeProofResponse,\n DocumentPurgeProofResponseSchema,\n type DocumentPurgeResponse,\n DocumentPurgeResponseSchema,\n type DocumentSyncPullPageResponse,\n DocumentSyncPullPageResponseSchema,\n type DocumentSyncResponse,\n DocumentSyncResponseSchema,\n type DocumentSyncUpdateResponse,\n DocumentSyncUpdateResponseSchema,\n type DocumentWriterProjectionResponse,\n DocumentWriterProjectionResponseSchema,\n documentKekTargetsFromContentKeyBundle,\n isDocumentContentKeyBundleResponse,\n isDocumentCreateResponse,\n isDocumentKekTargetsResponse,\n isDocumentLinkSetMutationResponse,\n isDocumentPurgeProofResponse,\n isDocumentPurgeResponse,\n isDocumentSyncResponse,\n isDocumentWriterProjectionResponse,\n} from \"./documentMutation\";\nexport {\n DOCUMENT_MUTATION_ERROR_CODES,\n DocumentMutationBehaviorErrorCodeSchema,\n type DocumentMutationErrorCode,\n DocumentMutationErrorCodeSchema,\n type DocumentMutationFailureResponse,\n DocumentMutationFailureResponseSchema,\n} from \"./documentMutationError\";\nexport {\n DOCUMENT_NOT_FOUND_ERROR_CODE,\n DOCUMENT_PROJECTION_ERROR_CODES,\n DOCUMENT_SYNC_ERROR_CODES,\n type DocumentNotFoundErrorCode,\n type DocumentNotFoundErrorResponse,\n DocumentNotFoundErrorResponseSchema,\n type DocumentProjectionErrorCode,\n DocumentProjectionErrorCodeSchema,\n type DocumentSyncErrorCode,\n DocumentSyncErrorCodeSchema,\n type DocumentSyncErrorResponse,\n DocumentSyncErrorResponseSchema,\n type DocumentSyncStateStaleErrorResponse,\n DocumentSyncStateStaleErrorResponseSchema,\n type DocumentWriterProjectionErrorResponse,\n DocumentWriterProjectionErrorResponseSchema,\n isDocumentSyncErrorCode,\n isDocumentSyncErrorResponse,\n isDocumentSyncStateStaleErrorResponse,\n} from \"./documentSyncError\";\nexport {\n type ErrorResponse,\n ErrorResponseSchema,\n isErrorResponse,\n} from \"./error\";\nexport {\n type HealthResponse,\n HealthResponseSchema,\n isHealthResponse,\n} from \"./health\";\nexport {\n MULTIPART_BLOB_STAGE_ERROR_CODES,\n type MultipartBlobStageConflictErrorResponse,\n MultipartBlobStageConflictErrorResponseSchema,\n type MultipartBlobStageErrorCode,\n type MultipartBlobStageExpiredErrorResponse,\n MultipartBlobStageExpiredErrorResponseSchema,\n type MultipartBlobStageNotFoundErrorResponse,\n MultipartBlobStageNotFoundErrorResponseSchema,\n} from \"./multipartBlobStageError\";\nexport {\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isCreateOrganizationGroupResponse,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"./organization\";\nexport {\n type BillingErrorResponse,\n BillingErrorResponseSchema,\n isOrganizationBillingProvider,\n isOrganizationBillingResponse,\n isOrganizationBillingStatus,\n isPaymentRequiredErrorResponse,\n type OrganizationBillingProvider,\n OrganizationBillingProviderSchema,\n type OrganizationBillingResponse,\n OrganizationBillingResponseSchema,\n type OrganizationBillingStatus,\n OrganizationBillingStatusSchema,\n type OrganizationBillingSubscriptionSource,\n OrganizationBillingSubscriptionSourceSchema,\n type PaymentRequiredErrorResponse,\n PaymentRequiredErrorResponseSchema,\n} from \"./organizationBilling\";\nexport {\n isOrganizationBillingHistoryResponse,\n type OrganizationBillingHistoryCategory,\n OrganizationBillingHistoryCategorySchema,\n type OrganizationBillingHistoryEntry,\n OrganizationBillingHistoryEntrySchema,\n type OrganizationBillingHistoryEnvironment,\n OrganizationBillingHistoryEnvironmentSchema,\n type OrganizationBillingHistoryOutcome,\n OrganizationBillingHistoryOutcomeSchema,\n type OrganizationBillingHistoryProvider,\n OrganizationBillingHistoryProviderSchema,\n type OrganizationBillingHistoryResponse,\n OrganizationBillingHistoryResponseSchema,\n} from \"./organizationBillingHistory\";\nexport {\n isOrganizationBillingManagementUrlResponse,\n type OrganizationBillingManagementUrlResponse,\n OrganizationBillingManagementUrlResponseSchema,\n} from \"./organizationBillingManagementUrl\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"./organizationDataUsage\";\nexport {\n isOrganizationNativePurchaseEligibilityResponse,\n type OrganizationNativePurchaseEligibilityResponse,\n OrganizationNativePurchaseEligibilityResponseSchema,\n type OrganizationNativePurchaseIneligibilityReason,\n OrganizationNativePurchaseIneligibilityReasonSchema,\n} from \"./organizationNativePurchaseEligibility\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n} from \"./organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"./organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"./organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"./organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"./organizationReadModelError\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"./principal\";\nexport {\n isPrincipalPolicyPageResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n} from \"./principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"./principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"./principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n} from \"./projectionPolicyEvidence\";\nexport {\n isRegistrationResponse,\n type RegistrationResponse,\n RegistrationResponseSchema,\n} from \"./registration\";\nexport {\n isRootIdentitiesResponse,\n isRootIdentityDetailResponse,\n isRootIdentityOrganizationsResponse,\n type RootIdentitiesResponse,\n RootIdentitiesResponseSchema,\n type RootIdentityDetailResponse,\n RootIdentityDetailResponseSchema,\n type RootIdentityOrganizationBillingResponse,\n RootIdentityOrganizationBillingResponseSchema,\n type RootIdentityOrganizationResponse,\n RootIdentityOrganizationResponseSchema,\n type RootIdentityOrganizationsResponse,\n RootIdentityOrganizationsResponseSchema,\n type RootIdentitySessionResponse,\n RootIdentitySessionResponseSchema,\n type RootIdentitySummaryResponse,\n RootIdentitySummaryResponseSchema,\n} from \"./root\";\nexport {\n type RootDataUsageReportResponse,\n RootDataUsageReportResponseSchema,\n type RootOrganizationDetailResponse,\n RootOrganizationDetailResponseSchema,\n type RootOrganizationIdentitiesResponse,\n RootOrganizationIdentitiesResponseSchema,\n type RootOrganizationIdentityResponse,\n RootOrganizationIdentityResponseSchema,\n type RootOrganizationSummaryResponse,\n RootOrganizationSummaryResponseSchema,\n type RootOrganizationsResponse,\n RootOrganizationsResponseSchema,\n} from \"./rootOrganizations\";\nexport {\n isStripeCancelResponse,\n isStripeCheckoutIntentResponse,\n isStripeCheckoutOptionsResponse,\n isStripeCheckoutSessionResponse,\n isStripePortalResponse,\n type StripeCancelResponse,\n StripeCancelResponseSchema,\n type StripeCheckoutIntentResponse,\n StripeCheckoutIntentResponseSchema,\n type StripeCheckoutOptionsResponse,\n StripeCheckoutOptionsResponseSchema,\n type StripeCheckoutSessionResponse,\n StripeCheckoutSessionResponseSchema,\n type StripePortalResponse,\n StripePortalResponseSchema,\n type StripeSyncOptionResponse,\n StripeSyncOptionResponseSchema,\n} from \"./stripeCheckout\";\nexport {\n isSyncWatermark,\n type SyncWatermark,\n SyncWatermarkSchema,\n} from \"./syncWatermark\";\n"]}
@@ -96,6 +96,7 @@ export type OrganizationBillingResponse = z.infer<typeof OrganizationBillingResp
96
96
  export declare function isOrganizationBillingStatus(value: unknown): value is OrganizationBillingStatus;
97
97
  export declare function isOrganizationBillingProvider(value: unknown): value is OrganizationBillingProvider;
98
98
  export declare function isOrganizationBillingResponse(value: unknown): value is OrganizationBillingResponse;
99
+ export declare const BillingErrorCodeSchema: z.ZodLiteral<"billing_checkout_no_active_members" | "billing_roster_over_capacity">;
99
100
  export declare const BillingErrorResponseSchema: z.ZodType<{
100
101
  error: string;
101
102
  code?: "billing_checkout_no_active_members" | "billing_roster_over_capacity" | undefined;
@@ -78,7 +78,7 @@ export function isOrganizationBillingResponse(value) {
78
78
  // would preserve a wire format that has never been released.
79
79
  return OrganizationBillingResponseSchema.safeParse(value).success;
80
80
  }
81
- const BillingErrorCodeSchema = z.literal([
81
+ export const BillingErrorCodeSchema = z.literal([
82
82
  BILLING_ERROR_CODES.checkoutNoActiveMembers,
83
83
  BILLING_ERROR_CODES.rosterOverCapacity,
84
84
  ]);
@@ -1 +1 @@
1
- {"version":3,"file":"organizationBilling.js","sourceRoot":"","sources":["organizationBilling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,0CAA0C,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,OAAO,CAAC;IACvD,OAAO;IACP,UAAU;IACV,QAAQ;IACR,UAAU;IACV,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAMH,MAAM,CAA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IACxE,OAAO,kCAAkC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACrE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { BILLING_ERROR_CODES } from \"../billing\";\nimport { registerJsonSchemaRuntimeRefinements } from \"../jsonSchema\";\nimport { organizationBillingAssignedSeatsRefinement } from \"../organizationBillingRefinements\";\nimport {\n arraySchema,\n boundedPositiveIntegerSchema,\n loosePlainObject,\n nonEmptyStringSchema,\n safeNonNegativeIntegerSchema,\n} from \"../schema\";\n\nexport const OrganizationBillingStatusSchema = z.literal([\n \"local\",\n \"trialing\",\n \"active\",\n \"disabled\",\n \"deleting\",\n \"purged\",\n]);\n\nexport type OrganizationBillingStatus = z.infer<\n typeof OrganizationBillingStatusSchema\n>;\n\nexport const OrganizationBillingProviderSchema = z.literal([\"revenuecat\"]);\n\nexport type OrganizationBillingProvider = z.infer<\n typeof OrganizationBillingProviderSchema\n>;\n\n/**\n * Purchase system that owns an organization's subscription: `stripe` for a\n * direct-checkout subscription our API can cancel, `native` for an App Store,\n * Play, or RevenueCat Test Store receipt managed through the store.\n */\nexport const OrganizationBillingSubscriptionSourceSchema = z.literal([\n \"native\",\n \"stripe\",\n]);\n\nexport type OrganizationBillingSubscriptionSource = z.infer<\n typeof OrganizationBillingSubscriptionSourceSchema\n>;\n\n/**\n * Per-organization sync-billing snapshot returned to the client. Sync is the one\n * paid feature; `status` decides whether the organization may sync at all. A\n * `local` organization is free and on-device only. `trialEndsAt` is set while\n * trialing, `currentPeriodStartsAt`/`currentPeriodEndsAt` while a paid\n * subscription is active, and `seatCount` tracks licensed seats in that paid\n * period. `activeMemberCount` is the server-authoritative signed Members-group\n * count used by the plan switcher; assigned seat fields expose the stable\n * per-user subset that may sync within the licensed capacity.\n * `subscriptionSource` names the store of record for the current or lapsed\n * subscription, so the client can decide from this one read whether to offer\n * native plan changes, the direct card checkout, or neither.\n */\nexport const OrganizationBillingResponseSchema =\n registerJsonSchemaRuntimeRefinements(\n loosePlainObject({\n organizationId: z.string(),\n activeMemberCount: safeNonNegativeIntegerSchema,\n assignedSeatCount: safeNonNegativeIntegerSchema,\n assignedUserIds: arraySchema(nonEmptyStringSchema),\n currentUserHasSyncSeat: z.boolean(),\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n provider: OrganizationBillingProviderSchema.nullable(),\n /** A retained Stripe subscription can be cancelled even during native ownership. */\n canCancelDirectly: z.boolean(),\n /**\n * Store of record while a subscription can still bill or be repaired;\n * null when nothing a new purchase would conflict with is bound.\n */\n subscriptionSource:\n OrganizationBillingSubscriptionSourceSchema.nullable(),\n currentPeriodStartsAt: z.string().nullable(),\n currentPeriodEndsAt: z.string().nullable(),\n seatCount: safeNonNegativeIntegerSchema,\n /** Destination native tier while the store has scheduled but not effected a change. */\n pendingSeatCount: boundedPositiveIntegerSchema(\n Number.MAX_SAFE_INTEGER,\n ).nullable(),\n disabledAt: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n }).superRefine((value, context) => {\n if (value.assignedSeatCount !== value.assignedUserIds.length) {\n context.addIssue({\n code: \"custom\",\n message: \"assignedSeatCount must match assignedUserIds length\",\n path: [\"assignedSeatCount\"],\n });\n }\n }),\n [organizationBillingAssignedSeatsRefinement],\n );\n\nexport type OrganizationBillingResponse = z.infer<\n typeof OrganizationBillingResponseSchema\n>;\n\nexport function isOrganizationBillingStatus(\n value: unknown,\n): value is OrganizationBillingStatus {\n return OrganizationBillingStatusSchema.safeParse(value).success;\n}\n\nexport function isOrganizationBillingProvider(\n value: unknown,\n): value is OrganizationBillingProvider {\n return OrganizationBillingProviderSchema.safeParse(value).success;\n}\n\nexport function isOrganizationBillingResponse(\n value: unknown,\n): value is OrganizationBillingResponse {\n // This greenfield contract is deliberately flag-day strict: the server and\n // clients ship the assigned-seat fields together. Missing-field fallbacks\n // would preserve a wire format that has never been released.\n return OrganizationBillingResponseSchema.safeParse(value).success;\n}\n\nconst BillingErrorCodeSchema = z.literal([\n BILLING_ERROR_CODES.checkoutNoActiveMembers,\n BILLING_ERROR_CODES.rosterOverCapacity,\n]);\n\nexport const BillingErrorResponseSchema = loosePlainObject({\n code: BillingErrorCodeSchema.optional(),\n error: z.string(),\n});\n\nexport type BillingErrorResponse = z.infer<typeof BillingErrorResponseSchema>;\n\n/**\n * The HTTP 402 body a sync write returns when its target organization cannot\n * sync. Carries the target organization and whether billing or the caller's\n * seat assignment blocked the write.\n */\nexport const PaymentRequiredErrorResponseSchema = loosePlainObject({\n error: z.string(),\n organizationId: nonEmptyStringSchema,\n reason: z.literal([\"billing_inactive\", \"sync_seat_unassigned\"]),\n});\n\nexport type PaymentRequiredErrorResponse = z.infer<\n typeof PaymentRequiredErrorResponseSchema\n>;\n\nexport function isPaymentRequiredErrorResponse(\n value: unknown,\n): value is PaymentRequiredErrorResponse {\n // Keep the reason mandatory for the same flag-day contract: a caller must be\n // able to distinguish an inactive organization from an unassigned user.\n return PaymentRequiredErrorResponseSchema.safeParse(value).success;\n}\n"]}
1
+ {"version":3,"file":"organizationBilling.js","sourceRoot":"","sources":["organizationBilling.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AACjD,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,0CAA0C,EAAE,MAAM,mCAAmC,CAAC;AAC/F,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,gBAAgB,EAChB,oBAAoB,EACpB,4BAA4B,GAC7B,MAAM,WAAW,CAAC;AAEnB,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,OAAO,CAAC;IACvD,OAAO;IACP,UAAU;IACV,QAAQ;IACR,UAAU;IACV,UAAU;IACV,QAAQ;CACT,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,iCAAiC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,YAAY,CAAC,CAAC,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AAO,CAAC;AACrE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { BILLING_ERROR_CODES } from \"../billing\";\nimport { registerJsonSchemaRuntimeRefinements } from \"../jsonSchema\";\nimport { organizationBillingAssignedSeatsRefinement } from \"../organizationBillingRefinements\";\nimport {\n arraySchema,\n boundedPositiveIntegerSchema,\n loosePlainObject,\n nonEmptyStringSchema,\n safeNonNegativeIntegerSchema,\n} from \"../schema\";\n\nexport const OrganizationBillingStatusSchema = z.literal([\n \"local\",\n \"trialing\",\n \"active\",\n \"disabled\",\n \"deleting\",\n \"purged\",\n]);\n\nexport type OrganizationBillingStatus = z.infer<\n typeof OrganizationBillingStatusSchema\n>;\n\nexport const OrganizationBillingProviderSchema = z.literal([\"revenuecat\"]);\n\nexport type OrganizationBillingProvider = z.infer<\n typeof OrganizationBillingProviderSchema\n>;\n\n/**\n * Purchase system that owns an organization's subscription: `stripe` for a\n * direct-checkout subscription our API can cancel, `native` for an App Store,\n * Play, or RevenueCat Test Store receipt managed through the store.\n */\nexport const OrganizationBillingSubscriptionSourceSchema = z.literal([\n \"native\",\n \"stripe\",\n]);\n\nexport type OrganizationBillingSubscriptionSource = z.infer<\n typeof OrganizationBillingSubscriptionSourceSchema\n>;\n\n/**\n * Per-organization sync-billing snapshot returned to the client. Sync is the one\n * paid feature; `status` decides whether the organization may sync at all. A\n * `local` organization is free and on-device only. `trialEndsAt` is set while\n * trialing, `currentPeriodStartsAt`/`currentPeriodEndsAt` while a paid\n * subscription is active, and `seatCount` tracks licensed seats in that paid\n * period. `activeMemberCount` is the server-authoritative signed Members-group\n * count used by the plan switcher; assigned seat fields expose the stable\n * per-user subset that may sync within the licensed capacity.\n * `subscriptionSource` names the store of record for the current or lapsed\n * subscription, so the client can decide from this one read whether to offer\n * native plan changes, the direct card checkout, or neither.\n */\nexport const OrganizationBillingResponseSchema =\n registerJsonSchemaRuntimeRefinements(\n loosePlainObject({\n organizationId: z.string(),\n activeMemberCount: safeNonNegativeIntegerSchema,\n assignedSeatCount: safeNonNegativeIntegerSchema,\n assignedUserIds: arraySchema(nonEmptyStringSchema),\n currentUserHasSyncSeat: z.boolean(),\n status: OrganizationBillingStatusSchema,\n trialEndsAt: z.string().nullable(),\n provider: OrganizationBillingProviderSchema.nullable(),\n /** A retained Stripe subscription can be cancelled even during native ownership. */\n canCancelDirectly: z.boolean(),\n /**\n * Store of record while a subscription can still bill or be repaired;\n * null when nothing a new purchase would conflict with is bound.\n */\n subscriptionSource:\n OrganizationBillingSubscriptionSourceSchema.nullable(),\n currentPeriodStartsAt: z.string().nullable(),\n currentPeriodEndsAt: z.string().nullable(),\n seatCount: safeNonNegativeIntegerSchema,\n /** Destination native tier while the store has scheduled but not effected a change. */\n pendingSeatCount: boundedPositiveIntegerSchema(\n Number.MAX_SAFE_INTEGER,\n ).nullable(),\n disabledAt: z.string().nullable(),\n purgeAfter: z.string().nullable(),\n }).superRefine((value, context) => {\n if (value.assignedSeatCount !== value.assignedUserIds.length) {\n context.addIssue({\n code: \"custom\",\n message: \"assignedSeatCount must match assignedUserIds length\",\n path: [\"assignedSeatCount\"],\n });\n }\n }),\n [organizationBillingAssignedSeatsRefinement],\n );\n\nexport type OrganizationBillingResponse = z.infer<\n typeof OrganizationBillingResponseSchema\n>;\n\nexport function isOrganizationBillingStatus(\n value: unknown,\n): value is OrganizationBillingStatus {\n return OrganizationBillingStatusSchema.safeParse(value).success;\n}\n\nexport function isOrganizationBillingProvider(\n value: unknown,\n): value is OrganizationBillingProvider {\n return OrganizationBillingProviderSchema.safeParse(value).success;\n}\n\nexport function isOrganizationBillingResponse(\n value: unknown,\n): value is OrganizationBillingResponse {\n // This greenfield contract is deliberately flag-day strict: the server and\n // clients ship the assigned-seat fields together. Missing-field fallbacks\n // would preserve a wire format that has never been released.\n return OrganizationBillingResponseSchema.safeParse(value).success;\n}\n\nexport const BillingErrorCodeSchema = z.literal([\n BILLING_ERROR_CODES.checkoutNoActiveMembers,\n BILLING_ERROR_CODES.rosterOverCapacity,\n]);\n\nexport const BillingErrorResponseSchema = loosePlainObject({\n code: BillingErrorCodeSchema.optional(),\n error: z.string(),\n});\n\nexport type BillingErrorResponse = z.infer<typeof BillingErrorResponseSchema>;\n\n/**\n * The HTTP 402 body a sync write returns when its target organization cannot\n * sync. Carries the target organization and whether billing or the caller's\n * seat assignment blocked the write.\n */\nexport const PaymentRequiredErrorResponseSchema = loosePlainObject({\n error: z.string(),\n organizationId: nonEmptyStringSchema,\n reason: z.literal([\"billing_inactive\", \"sync_seat_unassigned\"]),\n});\n\nexport type PaymentRequiredErrorResponse = z.infer<\n typeof PaymentRequiredErrorResponseSchema\n>;\n\nexport function isPaymentRequiredErrorResponse(\n value: unknown,\n): value is PaymentRequiredErrorResponse {\n // Keep the reason mandatory for the same flag-day contract: a caller must be\n // able to distinguish an inactive organization from an unassigned user.\n return PaymentRequiredErrorResponseSchema.safeParse(value).success;\n}\n"]}
@@ -1,9 +1,36 @@
1
1
  import { z } from "zod";
2
- import { sha256HexStringSchema } from "../schema.js";
2
+ import { registerJsonSchemaRuntimeRefinements } from "../jsonSchema.js";
3
+ import { loosePlainObject, sha256HexStringSchema } from "../schema.js";
4
+ import { BillingErrorCodeSchema } from "./organizationBilling.js";
3
5
  /** Sent only after the attempted operation has rolled back completely. */
4
6
  export const PrincipalHistoryPreparationResponseSchema = z.strictObject({
5
7
  code: z.literal("principal_history_preparation_pending"),
6
8
  committed: z.literal(false),
7
9
  progressToken: sha256HexStringSchema,
8
10
  });
11
+ export const principalHistoryRollbackRefinement = {
12
+ id: "response.principal-history-preparation-rollback",
13
+ description: "A 503 with code principal_history_preparation_unavailable requires committed:false; other 503 responses do not guarantee rollback.",
14
+ };
15
+ // Preserve the ordinary error envelope; only the exact code plus false marker
16
+ // proves rollback. Neither a generic 503 nor the marker alone is sufficient.
17
+ export const PrincipalHistoryPreparationFailureResponseSchema = registerJsonSchemaRuntimeRefinements(loosePlainObject({
18
+ error: z.string(),
19
+ code: z
20
+ .literal([
21
+ ...BillingErrorCodeSchema.values,
22
+ "principal_history_preparation_unavailable",
23
+ ])
24
+ .optional(),
25
+ committed: z.boolean().optional(),
26
+ }).superRefine((value, context) => {
27
+ if (value.code === "principal_history_preparation_unavailable" &&
28
+ value.committed !== false) {
29
+ context.addIssue({
30
+ code: "custom",
31
+ message: "Preparation refusal must prove the operation rolled back",
32
+ path: ["committed"],
33
+ });
34
+ }
35
+ }), [principalHistoryRollbackRefinement]);
9
36
  //# sourceMappingURL=principalHistoryPreparation.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"principalHistoryPreparation.js","sourceRoot":"","sources":["principalHistoryPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AAElD,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,YAAY,CAAC;IACtE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;IACxD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3B,aAAa,EAAE,qBAAqB;CACrC,CAAC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { sha256HexStringSchema } from \"../schema\";\n\n/** Sent only after the attempted operation has rolled back completely. */\nexport const PrincipalHistoryPreparationResponseSchema = z.strictObject({\n code: z.literal(\"principal_history_preparation_pending\"),\n committed: z.literal(false),\n progressToken: sha256HexStringSchema,\n});\n"]}
1
+ {"version":3,"file":"principalHistoryPreparation.js","sourceRoot":"","sources":["principalHistoryPreparation.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,WAAW,CAAC;AACpE,OAAO,EAAE,sBAAsB,EAAE,MAAM,uBAAuB,CAAC;AAE/D,0EAA0E;AAC1E,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,YAAY,CAAC;IACtE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,uCAAuC,CAAC;IACxD,SAAS,EAAE,CAAC,CAAC,OAAO,CAAC,KAAK,CAAC;IAC3B,aAAa,EAAE,qBAAqB;CACrC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,kCAAkC,GAAG;IAChD,EAAE,EAAE,iDAAiD;IACrD,WAAW,EACT,oIAAoI;CAC9H,CAAC;AAEX,8EAA8E;AAC9E,6EAA6E;AAC7E,MAAM,CAAC,MAAM,gDAAgD,GAC3D,oCAAoC,CAClC,gBAAgB,CAAC;IACf,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;IACjB,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC;QACP,GAAG,sBAAsB,CAAC,MAAM;QAChC,2CAA2C;KAC5C,CAAC;SACD,QAAQ,EAAE;IACb,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAChC,IACE,KAAK,CAAC,IAAI,KAAK,2CAA2C;QAC1D,KAAK,CAAC,SAAS,KAAK,KAAK,EACzB,CAAC;QACD,OAAO,CAAC,QAAQ,CAAC;YACf,IAAI,EAAE,QAAQ;YACd,OAAO,EAAE,0DAA0D;YACnE,IAAI,EAAE,CAAC,WAAW,CAAC;SACpB,CAAC,CAAC;IACL,CAAC;AACH,CAAC,CAAC,EACF,CAAC,kCAAkC,CAAC,CACrC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { registerJsonSchemaRuntimeRefinements } from \"../jsonSchema\";\nimport { loosePlainObject, sha256HexStringSchema } from \"../schema\";\nimport { BillingErrorCodeSchema } from \"./organizationBilling\";\n\n/** Sent only after the attempted operation has rolled back completely. */\nexport const PrincipalHistoryPreparationResponseSchema = z.strictObject({\n code: z.literal(\"principal_history_preparation_pending\"),\n committed: z.literal(false),\n progressToken: sha256HexStringSchema,\n});\n\nexport const principalHistoryRollbackRefinement = {\n id: \"response.principal-history-preparation-rollback\",\n description:\n \"A 503 with code principal_history_preparation_unavailable requires committed:false; other 503 responses do not guarantee rollback.\",\n} as const;\n\n// Preserve the ordinary error envelope; only the exact code plus false marker\n// proves rollback. Neither a generic 503 nor the marker alone is sufficient.\nexport const PrincipalHistoryPreparationFailureResponseSchema =\n registerJsonSchemaRuntimeRefinements(\n loosePlainObject({\n error: z.string(),\n code: z\n .literal([\n ...BillingErrorCodeSchema.values,\n \"principal_history_preparation_unavailable\",\n ])\n .optional(),\n committed: z.boolean().optional(),\n }).superRefine((value, context) => {\n if (\n value.code === \"principal_history_preparation_unavailable\" &&\n value.committed !== false\n ) {\n context.addIssue({\n code: \"custom\",\n message: \"Preparation refusal must prove the operation rolled back\",\n path: [\"committed\"],\n });\n }\n }),\n [principalHistoryRollbackRefinement],\n );\n"]}
@@ -0,0 +1,388 @@
1
+ import type { z } from "zod";
2
+ /** A server read scope and transport pin, never client verification evidence. */
3
+ export declare const PrincipalPolicyHistorySourceResponseSchema: z.ZodType<{
4
+ head: {
5
+ keyEpoch: number;
6
+ keyFingerprint: string;
7
+ principalId: string;
8
+ principalType: "group" | "organization";
9
+ stateHash: string;
10
+ version: number;
11
+ };
12
+ grant: string;
13
+ }, {
14
+ head: {
15
+ keyEpoch: number;
16
+ keyFingerprint: string;
17
+ principalId: string;
18
+ principalType: "group" | "organization";
19
+ stateHash: string;
20
+ version: number;
21
+ };
22
+ grant: string;
23
+ }, z.core.$ZodTypeInternals<{
24
+ head: {
25
+ keyEpoch: number;
26
+ keyFingerprint: string;
27
+ principalId: string;
28
+ principalType: "group" | "organization";
29
+ stateHash: string;
30
+ version: number;
31
+ };
32
+ grant: string;
33
+ }, {
34
+ head: {
35
+ keyEpoch: number;
36
+ keyFingerprint: string;
37
+ principalId: string;
38
+ principalType: "group" | "organization";
39
+ stateHash: string;
40
+ version: number;
41
+ };
42
+ grant: string;
43
+ }>>;
44
+ export type PrincipalPolicyHistorySourceResponse = z.infer<typeof PrincipalPolicyHistorySourceResponseSchema>;
45
+ /** Public signed authorization only; contains no payloads or key envelopes. */
46
+ export declare const PrincipalPolicySnapshotPageResponseSchema: z.ZodType<{
47
+ currentGrants: {
48
+ accessLevel: "admin" | "read" | "write";
49
+ containerId: string;
50
+ }[];
51
+ currentProjection: {
52
+ role: "member" | "admin";
53
+ userId: string;
54
+ }[];
55
+ currentState: {
56
+ createdAt: string;
57
+ encapsulationPublicKey: string;
58
+ externalAuthority: {
59
+ keyEpoch: number;
60
+ keyFingerprint: string;
61
+ principalId: string;
62
+ principalType: "group";
63
+ stateHash: string;
64
+ version: number;
65
+ } | null;
66
+ grantCount: number;
67
+ grantRoot: string;
68
+ keyEpoch: number;
69
+ keyFingerprint: string;
70
+ memberCount: number;
71
+ memberEnvelopesRoot: string;
72
+ membershipMode: "projection";
73
+ membershipRoot: string;
74
+ payloadCiphertextHash: string;
75
+ prevStateHash: string | null;
76
+ principalId: string;
77
+ principalType: "group" | "organization";
78
+ projectionRoot: string;
79
+ signature: string;
80
+ signedAt: string;
81
+ signerUserId: string;
82
+ signerUserKeyFingerprint: string;
83
+ stateHash: string;
84
+ version: number;
85
+ };
86
+ previousStates: {
87
+ grants: {
88
+ accessLevel: "admin" | "read" | "write";
89
+ containerId: string;
90
+ }[];
91
+ projection: {
92
+ role: "member" | "admin";
93
+ userId: string;
94
+ }[];
95
+ state: {
96
+ createdAt: string;
97
+ encapsulationPublicKey: string;
98
+ externalAuthority: {
99
+ keyEpoch: number;
100
+ keyFingerprint: string;
101
+ principalId: string;
102
+ principalType: "group";
103
+ stateHash: string;
104
+ version: number;
105
+ } | null;
106
+ grantCount: number;
107
+ grantRoot: string;
108
+ keyEpoch: number;
109
+ keyFingerprint: string;
110
+ memberCount: number;
111
+ memberEnvelopesRoot: string;
112
+ membershipMode: "projection";
113
+ membershipRoot: string;
114
+ payloadCiphertextHash: string;
115
+ prevStateHash: string | null;
116
+ principalId: string;
117
+ principalType: "group" | "organization";
118
+ projectionRoot: string;
119
+ signature: string;
120
+ signedAt: string;
121
+ signerUserId: string;
122
+ signerUserKeyFingerprint: string;
123
+ stateHash: string;
124
+ version: number;
125
+ };
126
+ }[];
127
+ historyPage: {
128
+ afterVersion: number;
129
+ nextAfterVersion: number | null;
130
+ };
131
+ }, {
132
+ currentGrants: {
133
+ accessLevel: "admin" | "read" | "write";
134
+ containerId: string;
135
+ }[];
136
+ currentProjection: {
137
+ role: "member" | "admin";
138
+ userId: string;
139
+ }[];
140
+ currentState: {
141
+ createdAt: string;
142
+ encapsulationPublicKey: string;
143
+ externalAuthority: {
144
+ keyEpoch: number;
145
+ keyFingerprint: string;
146
+ principalId: string;
147
+ principalType: "group";
148
+ stateHash: string;
149
+ version: number;
150
+ } | null;
151
+ grantCount: number;
152
+ grantRoot: string;
153
+ keyEpoch: number;
154
+ keyFingerprint: string;
155
+ memberCount: number;
156
+ memberEnvelopesRoot: string;
157
+ membershipMode: "projection";
158
+ membershipRoot: string;
159
+ payloadCiphertextHash: string;
160
+ prevStateHash: string | null;
161
+ principalId: string;
162
+ principalType: "group" | "organization";
163
+ projectionRoot: string;
164
+ signature: string;
165
+ signedAt: string;
166
+ signerUserId: string;
167
+ signerUserKeyFingerprint: string;
168
+ stateHash: string;
169
+ version: number;
170
+ };
171
+ previousStates: {
172
+ grants: {
173
+ accessLevel: "admin" | "read" | "write";
174
+ containerId: string;
175
+ }[];
176
+ projection: {
177
+ role: "member" | "admin";
178
+ userId: string;
179
+ }[];
180
+ state: {
181
+ createdAt: string;
182
+ encapsulationPublicKey: string;
183
+ externalAuthority: {
184
+ keyEpoch: number;
185
+ keyFingerprint: string;
186
+ principalId: string;
187
+ principalType: "group";
188
+ stateHash: string;
189
+ version: number;
190
+ } | null;
191
+ grantCount: number;
192
+ grantRoot: string;
193
+ keyEpoch: number;
194
+ keyFingerprint: string;
195
+ memberCount: number;
196
+ memberEnvelopesRoot: string;
197
+ membershipMode: "projection";
198
+ membershipRoot: string;
199
+ payloadCiphertextHash: string;
200
+ prevStateHash: string | null;
201
+ principalId: string;
202
+ principalType: "group" | "organization";
203
+ projectionRoot: string;
204
+ signature: string;
205
+ signedAt: string;
206
+ signerUserId: string;
207
+ signerUserKeyFingerprint: string;
208
+ stateHash: string;
209
+ version: number;
210
+ };
211
+ }[];
212
+ historyPage: {
213
+ afterVersion: number;
214
+ nextAfterVersion: number | null;
215
+ };
216
+ }, z.core.$ZodTypeInternals<{
217
+ currentGrants: {
218
+ accessLevel: "admin" | "read" | "write";
219
+ containerId: string;
220
+ }[];
221
+ currentProjection: {
222
+ role: "member" | "admin";
223
+ userId: string;
224
+ }[];
225
+ currentState: {
226
+ createdAt: string;
227
+ encapsulationPublicKey: string;
228
+ externalAuthority: {
229
+ keyEpoch: number;
230
+ keyFingerprint: string;
231
+ principalId: string;
232
+ principalType: "group";
233
+ stateHash: string;
234
+ version: number;
235
+ } | null;
236
+ grantCount: number;
237
+ grantRoot: string;
238
+ keyEpoch: number;
239
+ keyFingerprint: string;
240
+ memberCount: number;
241
+ memberEnvelopesRoot: string;
242
+ membershipMode: "projection";
243
+ membershipRoot: string;
244
+ payloadCiphertextHash: string;
245
+ prevStateHash: string | null;
246
+ principalId: string;
247
+ principalType: "group" | "organization";
248
+ projectionRoot: string;
249
+ signature: string;
250
+ signedAt: string;
251
+ signerUserId: string;
252
+ signerUserKeyFingerprint: string;
253
+ stateHash: string;
254
+ version: number;
255
+ };
256
+ previousStates: {
257
+ grants: {
258
+ accessLevel: "admin" | "read" | "write";
259
+ containerId: string;
260
+ }[];
261
+ projection: {
262
+ role: "member" | "admin";
263
+ userId: string;
264
+ }[];
265
+ state: {
266
+ createdAt: string;
267
+ encapsulationPublicKey: string;
268
+ externalAuthority: {
269
+ keyEpoch: number;
270
+ keyFingerprint: string;
271
+ principalId: string;
272
+ principalType: "group";
273
+ stateHash: string;
274
+ version: number;
275
+ } | null;
276
+ grantCount: number;
277
+ grantRoot: string;
278
+ keyEpoch: number;
279
+ keyFingerprint: string;
280
+ memberCount: number;
281
+ memberEnvelopesRoot: string;
282
+ membershipMode: "projection";
283
+ membershipRoot: string;
284
+ payloadCiphertextHash: string;
285
+ prevStateHash: string | null;
286
+ principalId: string;
287
+ principalType: "group" | "organization";
288
+ projectionRoot: string;
289
+ signature: string;
290
+ signedAt: string;
291
+ signerUserId: string;
292
+ signerUserKeyFingerprint: string;
293
+ stateHash: string;
294
+ version: number;
295
+ };
296
+ }[];
297
+ historyPage: {
298
+ afterVersion: number;
299
+ nextAfterVersion: number | null;
300
+ };
301
+ }, {
302
+ currentGrants: {
303
+ accessLevel: "admin" | "read" | "write";
304
+ containerId: string;
305
+ }[];
306
+ currentProjection: {
307
+ role: "member" | "admin";
308
+ userId: string;
309
+ }[];
310
+ currentState: {
311
+ createdAt: string;
312
+ encapsulationPublicKey: string;
313
+ externalAuthority: {
314
+ keyEpoch: number;
315
+ keyFingerprint: string;
316
+ principalId: string;
317
+ principalType: "group";
318
+ stateHash: string;
319
+ version: number;
320
+ } | null;
321
+ grantCount: number;
322
+ grantRoot: string;
323
+ keyEpoch: number;
324
+ keyFingerprint: string;
325
+ memberCount: number;
326
+ memberEnvelopesRoot: string;
327
+ membershipMode: "projection";
328
+ membershipRoot: string;
329
+ payloadCiphertextHash: string;
330
+ prevStateHash: string | null;
331
+ principalId: string;
332
+ principalType: "group" | "organization";
333
+ projectionRoot: string;
334
+ signature: string;
335
+ signedAt: string;
336
+ signerUserId: string;
337
+ signerUserKeyFingerprint: string;
338
+ stateHash: string;
339
+ version: number;
340
+ };
341
+ previousStates: {
342
+ grants: {
343
+ accessLevel: "admin" | "read" | "write";
344
+ containerId: string;
345
+ }[];
346
+ projection: {
347
+ role: "member" | "admin";
348
+ userId: string;
349
+ }[];
350
+ state: {
351
+ createdAt: string;
352
+ encapsulationPublicKey: string;
353
+ externalAuthority: {
354
+ keyEpoch: number;
355
+ keyFingerprint: string;
356
+ principalId: string;
357
+ principalType: "group";
358
+ stateHash: string;
359
+ version: number;
360
+ } | null;
361
+ grantCount: number;
362
+ grantRoot: string;
363
+ keyEpoch: number;
364
+ keyFingerprint: string;
365
+ memberCount: number;
366
+ memberEnvelopesRoot: string;
367
+ membershipMode: "projection";
368
+ membershipRoot: string;
369
+ payloadCiphertextHash: string;
370
+ prevStateHash: string | null;
371
+ principalId: string;
372
+ principalType: "group" | "organization";
373
+ projectionRoot: string;
374
+ signature: string;
375
+ signedAt: string;
376
+ signerUserId: string;
377
+ signerUserKeyFingerprint: string;
378
+ stateHash: string;
379
+ version: number;
380
+ };
381
+ }[];
382
+ historyPage: {
383
+ afterVersion: number;
384
+ nextAfterVersion: number | null;
385
+ };
386
+ }>>;
387
+ export type PrincipalPolicySnapshotPageResponse = z.infer<typeof PrincipalPolicySnapshotPageResponseSchema>;
388
+ export declare function isPrincipalPolicySnapshotPageResponse(value: unknown): value is PrincipalPolicySnapshotPageResponse;