@tearleads/client-sdk 0.1.247 → 0.1.249

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 (151) hide show
  1. package/Tearleads.js +4 -2
  2. package/Tearleads.js.map +1 -1
  3. package/client/organizations/index.js +5 -3
  4. package/client/organizations/index.js.map +1 -1
  5. package/client/organizations/organizationGroupPresentation.d.ts +1 -1
  6. package/client/organizations/organizationGroupPresentation.js.map +1 -1
  7. package/client/organizations/organizationLeaveRequestVerifier.js +21 -0
  8. package/client/organizations/organizationLeaveRequestVerifier.js.map +1 -0
  9. package/client/organizations/{organizationReadModels.d.ts → organizationReadModelCoordinator.d.ts} +18 -16
  10. package/client/organizations/organizationReadModelCoordinator.js +2 -0
  11. package/client/organizations/organizationReadModelCoordinator.js.map +1 -0
  12. package/client/organizations/organizationReadModelPresentation.js +51 -0
  13. package/client/organizations/organizationReadModelPresentation.js.map +1 -0
  14. package/client/organizations/organizationReadModelScopes.js +37 -0
  15. package/client/organizations/organizationReadModelScopes.js.map +1 -0
  16. package/client/organizations/organizationReadModels.js +131 -88
  17. package/client/organizations/organizationReadModels.js.map +1 -1
  18. package/client/organizations/organizationsTypes.d.ts +13 -5
  19. package/client/organizations/organizationsTypes.js.map +1 -1
  20. package/client/organizations/principalMutations.d.ts +18 -2
  21. package/client/organizations/principalMutations.js +29 -15
  22. package/client/organizations/principalMutations.js.map +1 -1
  23. package/client/runtime/principalMutationApi.d.ts +2 -0
  24. package/client/runtime/principalMutationApi.js +2 -0
  25. package/client/runtime/principalMutationApi.js.map +1 -1
  26. package/client/runtime/principalMutationDispatch.js +47 -10
  27. package/client/runtime/principalMutationDispatch.js.map +1 -1
  28. package/client/runtime/workflowRuntime.js +5 -4
  29. package/client/runtime/workflowRuntime.js.map +1 -1
  30. package/data/containers/shared/mutationRequestOptions.d.ts +2 -0
  31. package/data/containers/shared/mutationRequestOptions.js.map +1 -1
  32. package/data/containers/shared/types.d.ts +12 -2
  33. package/data/containers/shared/types.js.map +1 -1
  34. package/data/persistence/organizations/organizationReadModelRepository.js +20 -2
  35. package/data/persistence/organizations/organizationReadModelRepository.js.map +1 -1
  36. package/data/persistence/principalPolicy/heldOrganizationDirectories.js +53 -0
  37. package/data/persistence/principalPolicy/heldOrganizationDirectories.js.map +1 -0
  38. package/data/persistence/verifiedManifestBundlePersistence.d.ts +8 -3
  39. package/data/persistence/verifiedManifestBundlePersistence.js +34 -15
  40. package/data/persistence/verifiedManifestBundlePersistence.js.map +1 -1
  41. package/internal/api-client/ApiClient.d.ts +4 -1
  42. package/internal/api-client/client/containerMutations.d.ts +2 -2
  43. package/internal/api-client/client/containerMutations.js +2 -1
  44. package/internal/api-client/client/containerMutations.js.map +1 -1
  45. package/internal/api-client/client/principalPolicies.d.ts +3 -0
  46. package/internal/api-client/heldDirectoryCitations.d.ts +19 -0
  47. package/internal/api-client/heldDirectoryCitations.js +37 -0
  48. package/internal/api-client/heldDirectoryCitations.js.map +1 -0
  49. package/internal/api-client/index.d.ts +1 -1
  50. package/internal/api-client/index.js.map +1 -1
  51. package/internal/api-client/principalPolicyRequests.d.ts +2 -0
  52. package/internal/api-client/principalPolicyRequests.js +6 -4
  53. package/internal/api-client/principalPolicyRequests.js.map +1 -1
  54. package/internal/api-client/routes/containers/mutations.js +3 -3
  55. package/internal/api-client/routes/containers/mutations.js.map +1 -1
  56. package/internal/api-client/routes/organizations/createGroup.js +3 -5
  57. package/internal/api-client/routes/organizations/createGroup.js.map +1 -1
  58. package/internal/api-client/routes/principals/policy.js +2 -5
  59. package/internal/api-client/routes/principals/policy.js.map +1 -1
  60. package/internal/api-client/types.d.ts +6 -0
  61. package/internal/api-client/types.js.map +1 -1
  62. package/internal/api-client/verifiedManifestCitations.d.ts +16 -6
  63. package/internal/api-client/verifiedManifestCitations.js +32 -13
  64. package/internal/api-client/verifiedManifestCitations.js.map +1 -1
  65. package/internal/api-client/writerProjectionRequests.js +5 -3
  66. package/internal/api-client/writerProjectionRequests.js.map +1 -1
  67. package/internal/validators/knownManifestsRefinements.js +1 -1
  68. package/internal/validators/knownManifestsRefinements.js.map +1 -1
  69. package/internal/validators/operation/containerMutations.d.ts +20 -3
  70. package/internal/validators/operation/containerMutations.js +18 -20
  71. package/internal/validators/operation/containerMutations.js.map +1 -1
  72. package/internal/validators/operation/index.d.ts +1 -1
  73. package/internal/validators/operation/index.js +1 -1
  74. package/internal/validators/operation/index.js.map +1 -1
  75. package/internal/validators/operation/organizations.d.ts +17 -1
  76. package/internal/validators/operation/organizations.js +4 -2
  77. package/internal/validators/operation/organizations.js.map +1 -1
  78. package/internal/validators/operation/principals.d.ts +17 -1
  79. package/internal/validators/operation/principals.js +5 -2
  80. package/internal/validators/operation/principals.js.map +1 -1
  81. package/internal/validators/operation/writerProjections.d.ts +11 -11
  82. package/internal/validators/operation/writerProjections.js +1 -1
  83. package/internal/validators/operation/writerProjections.js.map +1 -1
  84. package/internal/validators/request/index.d.ts +1 -1
  85. package/internal/validators/request/index.js +1 -1
  86. package/internal/validators/request/index.js.map +1 -1
  87. package/internal/validators/request/organization.d.ts +15 -0
  88. package/internal/validators/request/organization.js +8 -0
  89. package/internal/validators/request/organization.js.map +1 -1
  90. package/internal/validators/response/areas/organizations.d.ts +3 -2
  91. package/internal/validators/response/areas/organizations.js +3 -2
  92. package/internal/validators/response/areas/organizations.js.map +1 -1
  93. package/internal/validators/response/areas/principals.d.ts +3 -2
  94. package/internal/validators/response/areas/principals.js +2 -2
  95. package/internal/validators/response/areas/principals.js.map +1 -1
  96. package/internal/validators/response/committedReadModel.d.ts +697 -0
  97. package/internal/validators/response/committedReadModel.js +52 -0
  98. package/internal/validators/response/committedReadModel.js.map +1 -0
  99. package/internal/validators/response/container.d.ts +56 -4
  100. package/internal/validators/response/container.js +5 -5
  101. package/internal/validators/response/container.js.map +1 -1
  102. package/internal/validators/response/documentMutation.d.ts +4 -4
  103. package/internal/validators/response/documentMutation.js +2 -2
  104. package/internal/validators/response/documentMutation.js.map +1 -1
  105. package/internal/validators/response/organization.d.ts +0 -191
  106. package/internal/validators/response/organization.js +0 -7
  107. package/internal/validators/response/organization.js.map +1 -1
  108. package/internal/validators/response/organizationReadModel.d.ts +167 -0
  109. package/internal/validators/response/organizationReadModel.js +5 -0
  110. package/internal/validators/response/organizationReadModel.js.map +1 -1
  111. package/internal/validators/response/policyEvidenceWire.d.ts +17 -0
  112. package/internal/validators/response/policyEvidenceWire.js +36 -0
  113. package/internal/validators/response/policyEvidenceWire.js.map +1 -0
  114. package/internal/validators/response/principal.d.ts +0 -403
  115. package/internal/validators/response/principal.js +0 -8
  116. package/internal/validators/response/principal.js.map +1 -1
  117. package/internal/validators/response/projectionPolicyEvidence.d.ts +175 -0
  118. package/internal/validators/response/projectionPolicyEvidence.js +13 -0
  119. package/internal/validators/response/projectionPolicyEvidence.js.map +1 -1
  120. package/internal/validators/response/writerProjectionWire.d.ts +11 -7
  121. package/internal/validators/response/writerProjectionWire.js +19 -10
  122. package/internal/validators/response/writerProjectionWire.js.map +1 -1
  123. package/internal/validators/util/index.d.ts +1 -1
  124. package/internal/validators/util/index.js +1 -1
  125. package/internal/validators/util/index.js.map +1 -1
  126. package/internal/validators/util/knownManifestWire.d.ts +9 -3
  127. package/internal/validators/util/knownManifestWire.js +24 -8
  128. package/internal/validators/util/knownManifestWire.js.map +1 -1
  129. package/package.json +1 -1
  130. package/workflows/container-contents/container-state/organizationHost.d.ts +9 -0
  131. package/workflows/container-contents/container-state/organizationHost.js.map +1 -1
  132. package/workflows/container-contents/container-state/remote.js +6 -0
  133. package/workflows/container-contents/container-state/remote.js.map +1 -1
  134. package/workflows/containers/child/share/index.d.ts +4 -2
  135. package/workflows/containers/child/share/index.js +37 -20
  136. package/workflows/containers/child/share/index.js.map +1 -1
  137. package/workflows/organizations/containerContentsHost.js +20 -1
  138. package/workflows/organizations/containerContentsHost.js.map +1 -1
  139. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js +5 -1
  140. package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js.map +1 -1
  141. package/workflows/organizations/groups/createCurrentOrganizationGroup.js +8 -1
  142. package/workflows/organizations/groups/createCurrentOrganizationGroup.js.map +1 -1
  143. package/workflows/organizations/index.d.ts +1 -0
  144. package/workflows/organizations/index.js +1 -0
  145. package/workflows/organizations/index.js.map +1 -1
  146. package/workflows/organizations/readModel/committedReadModel.d.ts +66 -0
  147. package/workflows/organizations/readModel/committedReadModel.js +150 -0
  148. package/workflows/organizations/readModel/committedReadModel.js.map +1 -0
  149. package/workflows/organizations/readModel/readModelProjection.d.ts +15 -2
  150. package/workflows/organizations/readModel/readModelProjection.js +26 -4
  151. package/workflows/organizations/readModel/readModelProjection.js.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,kDAAkD,EAClD,iDAAiD,EACjD,kDAAkD,GACnD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,8CAA8C,EAC9C,+BAA+B,EAC/B,oCAAoC,EACpC,0CAA0C,EAC1C,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,sCAAsC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ACT,GAAG,EAAE,uCAAuC;KAC7C;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,yCAAyC,GACpD,0CAA0C,CAAC;AAC7C,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,oCAAoC,GAAG,2BAA2B,CAAC;AAChF,MAAM,CAAC,MAAM,qCAAqC,GAChD,4BAA4B,CAAC;AAC/B,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,2CAA2C,GACtD,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,4CAA4C,GACvD,6BAA6B,CAAC;AAChC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,mCAAmC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { documentSyncRequestRuntimeRefinements } from \"../documentSyncRefinements\";\nimport { organizationDataUsageResponseRuntimeRefinements } from \"../organizationDataUsageRefinements\";\nimport {\n organizationProvisioningContainerKeyringRefinement,\n organizationProvisioningRequestRuntimeRefinements,\n organizationProvisioningResponseRuntimeRefinements,\n} from \"../organizationProvisioningRefinements\";\nimport { organizationReadModelResponseRuntimeRefinements } from \"../organizationReadModelRefinements\";\nimport {\n CreateOrganizationGroupWithPolicyRequestSchema,\n CreateOrganizationRequestSchema,\n DeleteOrganizationGroupRequestSchema,\n isCreateOrganizationGroupWithPolicyRequest,\n isCreateOrganizationRequest,\n isUpdateOrganizationProfileRequest,\n isUpdateOrganizationRosterEntryRequest,\n OrganizationReadModelQuerySchema,\n UpdateOrganizationProfileRequestSchema,\n UpdateOrganizationRosterEntryRequestSchema,\n} from \"../request\";\nimport {\n CreateOrganizationGroupResponseSchema,\n CreateOrganizationResponseSchema,\n DeleteOrganizationGroupResponseSchema,\n ErrorResponseSchema,\n isCreateOrganizationGroupResponse,\n isCreateOrganizationResponse,\n isDeleteOrganizationGroupResponse,\n isOrganizationDataUsageResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationProfileResponse,\n isOrganizationReadModelResponse,\n OrganizationDataUsageResponseSchema,\n OrganizationDirectoryUserResponseSchema,\n OrganizationGroupMembersResponseSchema,\n OrganizationPresentationFailureResponseSchema,\n OrganizationProfileResponseSchema,\n OrganizationReadModelFailureResponseSchema,\n OrganizationReadModelResponseSchema,\n PaymentRequiredErrorResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport {\n PrincipalHistoryPreparationFailureResponseSchema,\n PrincipalHistoryPreparationResponseSchema,\n principalHistoryRollbackRefinement,\n} from \"../response/principalHistoryPreparation\";\nimport { uuidV4StringSchema } from \"../schema\";\nimport { defineJsonOperation } from \"./definition\";\n\nconst CreateOrganizationPathParamsSchema = z.strictObject({});\nexport const OrganizationPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n});\nexport const OrganizationGroupPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n groupId: uuidV4StringSchema,\n});\nexport const OrganizationRosterPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n userId: uuidV4StringSchema,\n});\n\nexport type OrganizationPathParams = z.infer<\n typeof OrganizationPathParamsSchema\n>;\nexport type OrganizationGroupPathParams = z.infer<\n typeof OrganizationGroupPathParamsSchema\n>;\nexport type OrganizationRosterPathParams = z.infer<\n typeof OrganizationRosterPathParamsSchema\n>;\n\nexport const createOrganizationOperation = defineJsonOperation({\n auth: \"session\",\n body: CreateOrganizationRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 410: z.strictObject({\n code: z.literal(\"organization_creation_purged\"),\n error: z.string(),\n }),\n 500: ErrorResponseSchema,\n 503: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 410, 500, 503],\n id: \"organizations.create\",\n summary: \"Create an organization\",\n description:\n \"Provisions an additional organization for the signed-in user, who becomes its founding administrator: reserved `Admins` and `Members` groups, root container, signed policies, and metadata documents in one transaction. It also creates the replacement for the caller's purged personal organization, which must use a fresh organization id. An exact ordinary-create replay returns HTTP 410 with organization_creation_purged only after current signer and user/request binding validation proves that its previously committed organization was purged. Reversible unavailability and other failures do not certify abandonment.\",\n method: \"POST\",\n params: CreateOrganizationPathParamsSchema,\n path: \"/organizations\",\n responses: {\n 200: CreateOrganizationResponseSchema,\n },\n runtimeRefinements: [\n ...documentSyncRequestRuntimeRefinements,\n ...organizationProvisioningRequestRuntimeRefinements,\n ...organizationProvisioningResponseRuntimeRefinements,\n ],\n});\n\nexport const getOrganizationDataUsageOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: OrganizationPresentationFailureResponseSchema,\n 404: OrganizationPresentationFailureResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.dataUsage.get\",\n summary: \"Get organization data usage\",\n description:\n \"Returns how many bytes of documents and blobs an organization stores, broken down by document category. Any organization member may call it.\",\n method: \"GET\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/data-usage\",\n responses: {\n 200: OrganizationDataUsageResponseSchema,\n },\n runtimeRefinements: organizationDataUsageResponseRuntimeRefinements,\n});\n\nexport const getOrganizationReadModelOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: OrganizationReadModelFailureResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: OrganizationPresentationFailureResponseSchema,\n 404: OrganizationPresentationFailureResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.readModel.get\",\n summary: \"Reconcile the organization read model\",\n description:\n \"Returns the organization read model: display and navigation data for the directory, groups, group memberships, grants, and organization policy. Without a cursor it returns an atomic snapshot; with one, only lanes changed since. Any organization member may call it; the read model is not authority, so clients still verify signed policies and manifests.\",\n method: \"GET\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/read-model\",\n query: OrganizationReadModelQuerySchema,\n responses: {\n 200: OrganizationReadModelResponseSchema,\n },\n runtimeRefinements: organizationReadModelResponseRuntimeRefinements,\n});\n\nexport const createOrganizationGroupOperation = defineJsonOperation({\n auth: \"session\",\n body: CreateOrganizationGroupWithPolicyRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.create\",\n summary: \"Create an organization group and advance its signed directory\",\n description:\n \"Creates a group with its initial signed principal policy and, in the same transaction, the organization policy successor that adds it to the signed group directory. Only organization administrators may call it. A 202 asks for the identical request to be retried after preparation; a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"POST\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/groups\",\n responseDescriptions: {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n },\n responses: {\n 202: PrincipalHistoryPreparationResponseSchema,\n 200: CreateOrganizationGroupResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const deleteOrganizationGroupOperation = defineJsonOperation({\n auth: \"session\",\n body: DeleteOrganizationGroupRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.delete\",\n summary: \"Delete an organization group\",\n description:\n \"Deletes a group through a signed organization policy successor that drops it from the directory, leaving a tombstone so its id can never be reused. Only organization administrators may call it. A 202 asks for the identical request to be retried after preparation; a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"DELETE\",\n params: OrganizationGroupPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}\",\n responseDescriptions: {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n },\n responses: {\n 202: PrincipalHistoryPreparationResponseSchema,\n 200: DeleteOrganizationGroupResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const listOrganizationGroupMembersOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.groups.members.list\",\n summary: \"List organization group members\",\n description:\n \"Lists the members of an organization group from its current signed policy. Any organization member may call it.\",\n method: \"GET\",\n params: OrganizationGroupPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}/members\",\n responses: {\n 200: OrganizationGroupMembersResponseSchema,\n },\n});\n\nexport const updateOrganizationProfileOperation = defineJsonOperation({\n auth: \"session\",\n body: UpdateOrganizationProfileRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 500],\n id: \"organizations.profile.update\",\n summary: \"Update the organization profile\",\n description:\n \"Binds, or clears, the organization's encrypted profile document, which holds profile fields such as its name that the server cannot read. Only organization administrators may call it.\",\n method: \"PUT\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/profile\",\n responses: {\n 200: OrganizationProfileResponseSchema,\n },\n});\n\nexport const updateOrganizationRosterEntryOperation = defineJsonOperation({\n auth: \"session\",\n body: UpdateOrganizationRosterEntryRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 500],\n id: \"organizations.roster.update\",\n summary: \"Bind an encrypted roster profile document\",\n description:\n \"Binds a member's encrypted roster profile document to their organization roster entry. Members may bind their own profile; binding another member's requires organization administrator access.\",\n method: \"PUT\",\n params: OrganizationRosterPathParamsSchema,\n path: \"/organizations/{organizationId}/roster/{userId}\",\n responses: {\n 200: OrganizationDirectoryUserResponseSchema,\n },\n});\n\nexport const isCreateOrganizationGroupOperationRequest =\n isCreateOrganizationGroupWithPolicyRequest;\nexport const isCreateOrganizationGroupOperationResponse =\n isCreateOrganizationGroupResponse;\nexport const isCreateOrganizationOperationRequest = isCreateOrganizationRequest;\nexport const isCreateOrganizationOperationResponse =\n isCreateOrganizationResponse;\nexport const isDeleteOrganizationGroupOperationResponse =\n isDeleteOrganizationGroupResponse;\nexport const isGetOrganizationDataUsageOperationResponse =\n isOrganizationDataUsageResponse;\nexport const isGetOrganizationReadModelOperationResponse =\n isOrganizationReadModelResponse;\nexport const isListOrganizationGroupMembersOperationResponse =\n isOrganizationGroupMembersResponse;\nexport const isUpdateOrganizationProfileOperationRequest =\n isUpdateOrganizationProfileRequest;\nexport const isUpdateOrganizationProfileOperationResponse =\n isOrganizationProfileResponse;\nexport const isUpdateOrganizationRosterEntryOperationRequest =\n isUpdateOrganizationRosterEntryRequest;\nexport const isUpdateOrganizationRosterEntryOperationResponse =\n isOrganizationDirectoryUserResponse;\n"]}
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,kDAAkD,EAClD,iDAAiD,EACjD,kDAAkD,GACnD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,8CAA8C,EAC9C,+BAA+B,EAC/B,oCAAoC,EACpC,0CAA0C,EAC1C,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,0CAA0C,EAC1C,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,sCAAsC,EACtC,6CAA6C,EAC7C,iCAAiC,EACjC,0CAA0C,EAC1C,mCAAmC,EACnC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gDAAgD,EAChD,yCAAyC,EACzC,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AAC/C,OAAO,EAAE,mBAAmB,EAAE,M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CAAqC,GAChD,4BAA4B,CAAC;AAC/B,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,2CAA2C,GACtD,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,4CAA4C,GACvD,6BAA6B,CAAC;AAChC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,mCAAmC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { documentSyncRequestRuntimeRefinements } from \"../documentSyncRefinements\";\nimport { organizationDataUsageResponseRuntimeRefinements } from \"../organizationDataUsageRefinements\";\nimport {\n organizationProvisioningContainerKeyringRefinement,\n organizationProvisioningRequestRuntimeRefinements,\n organizationProvisioningResponseRuntimeRefinements,\n} from \"../organizationProvisioningRefinements\";\nimport { organizationReadModelResponseRuntimeRefinements } from \"../organizationReadModelRefinements\";\nimport {\n CreateOrganizationGroupWithPolicyRequestSchema,\n CreateOrganizationRequestSchema,\n DeleteOrganizationGroupRequestSchema,\n isCreateOrganizationGroupWithPolicyRequest,\n isCreateOrganizationRequest,\n isUpdateOrganizationProfileRequest,\n isUpdateOrganizationRosterEntryRequest,\n OrganizationReadModelHeldCursorQuerySchema,\n OrganizationReadModelQuerySchema,\n UpdateOrganizationProfileRequestSchema,\n UpdateOrganizationRosterEntryRequestSchema,\n} from \"../request\";\nimport {\n CreateOrganizationGroupResponseSchema,\n CreateOrganizationResponseSchema,\n DeleteOrganizationGroupResponseSchema,\n ErrorResponseSchema,\n isCreateOrganizationGroupResponse,\n isCreateOrganizationResponse,\n isDeleteOrganizationGroupResponse,\n isOrganizationDataUsageResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationProfileResponse,\n isOrganizationReadModelResponse,\n OrganizationDataUsageResponseSchema,\n OrganizationDirectoryUserResponseSchema,\n OrganizationGroupMembersResponseSchema,\n OrganizationPresentationFailureResponseSchema,\n OrganizationProfileResponseSchema,\n OrganizationReadModelFailureResponseSchema,\n OrganizationReadModelResponseSchema,\n PaymentRequiredErrorResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport {\n PrincipalHistoryPreparationFailureResponseSchema,\n PrincipalHistoryPreparationResponseSchema,\n principalHistoryRollbackRefinement,\n} from \"../response/principalHistoryPreparation\";\nimport { uuidV4StringSchema } from \"../schema\";\nimport { defineJsonOperation } from \"./definition\";\n\nconst CreateOrganizationPathParamsSchema = z.strictObject({});\nexport const OrganizationPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n});\nexport const OrganizationGroupPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n groupId: uuidV4StringSchema,\n});\nexport const OrganizationRosterPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n userId: uuidV4StringSchema,\n});\n\nexport type OrganizationPathParams = z.infer<\n typeof OrganizationPathParamsSchema\n>;\nexport type OrganizationGroupPathParams = z.infer<\n typeof OrganizationGroupPathParamsSchema\n>;\nexport type OrganizationRosterPathParams = z.infer<\n typeof OrganizationRosterPathParamsSchema\n>;\n\nexport const createOrganizationOperation = defineJsonOperation({\n auth: \"session\",\n body: CreateOrganizationRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 410: z.strictObject({\n code: z.literal(\"organization_creation_purged\"),\n error: z.string(),\n }),\n 500: ErrorResponseSchema,\n 503: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 410, 500, 503],\n id: \"organizations.create\",\n summary: \"Create an organization\",\n description:\n \"Provisions an additional organization for the signed-in user, who becomes its founding administrator: reserved `Admins` and `Members` groups, root container, signed policies, and metadata documents in one transaction. It also creates the replacement for the caller's purged personal organization, which must use a fresh organization id. An exact ordinary-create replay returns HTTP 410 with organization_creation_purged only after current signer and user/request binding validation proves that its previously committed organization was purged. Reversible unavailability and other failures do not certify abandonment.\",\n method: \"POST\",\n params: CreateOrganizationPathParamsSchema,\n path: \"/organizations\",\n responses: {\n 200: CreateOrganizationResponseSchema,\n },\n runtimeRefinements: [\n ...documentSyncRequestRuntimeRefinements,\n ...organizationProvisioningRequestRuntimeRefinements,\n ...organizationProvisioningResponseRuntimeRefinements,\n ],\n});\n\nexport const getOrganizationDataUsageOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: OrganizationPresentationFailureResponseSchema,\n 404: OrganizationPresentationFailureResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.dataUsage.get\",\n summary: \"Get organization data usage\",\n description:\n \"Returns how many bytes of documents and blobs an organization stores, broken down by document category. Any organization member may call it.\",\n method: \"GET\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/data-usage\",\n responses: {\n 200: OrganizationDataUsageResponseSchema,\n },\n runtimeRefinements: organizationDataUsageResponseRuntimeRefinements,\n});\n\nexport const getOrganizationReadModelOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: OrganizationReadModelFailureResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: OrganizationPresentationFailureResponseSchema,\n 404: OrganizationPresentationFailureResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.readModel.get\",\n summary: \"Reconcile the organization read model\",\n description:\n \"Returns the organization read model: display and navigation data for the directory, groups, group memberships, grants, and organization policy. Without a cursor it returns an atomic snapshot; with one, only lanes changed since. Any organization member may call it; the read model is not authority, so clients still verify signed policies and manifests.\",\n method: \"GET\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/read-model\",\n query: OrganizationReadModelQuerySchema,\n responses: {\n 200: OrganizationReadModelResponseSchema,\n },\n runtimeRefinements: organizationReadModelResponseRuntimeRefinements,\n});\n\nexport const createOrganizationGroupOperation = defineJsonOperation({\n auth: \"session\",\n body: CreateOrganizationGroupWithPolicyRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.create\",\n summary: \"Create an organization group and advance its signed directory\",\n description:\n \"Creates a group with its initial signed principal policy and, in the same transaction, the organization policy successor that adds it to the signed group directory. Only organization administrators may call it. When `readModelCursor` names the read-model head the commit advanced from, the response carries the read-model delta a feed read from that cursor returns. A 202 asks for the identical request to be retried after preparation; a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"POST\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/groups\",\n query: OrganizationReadModelHeldCursorQuerySchema,\n responseDescriptions: {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n },\n responses: {\n 202: PrincipalHistoryPreparationResponseSchema,\n 200: CreateOrganizationGroupResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ...organizationReadModelResponseRuntimeRefinements,\n ],\n});\n\nexport const deleteOrganizationGroupOperation = defineJsonOperation({\n auth: \"session\",\n body: DeleteOrganizationGroupRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.delete\",\n summary: \"Delete an organization group\",\n description:\n \"Deletes a group through a signed organization policy successor that drops it from the directory, leaving a tombstone so its id can never be reused. Only organization administrators may call it. A 202 asks for the identical request to be retried after preparation; a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"DELETE\",\n params: OrganizationGroupPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}\",\n responseDescriptions: {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n },\n responses: {\n 202: PrincipalHistoryPreparationResponseSchema,\n 200: DeleteOrganizationGroupResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const listOrganizationGroupMembersOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 500],\n id: \"organizations.groups.members.list\",\n summary: \"List organization group members\",\n description:\n \"Lists the members of an organization group from its current signed policy. Any organization member may call it.\",\n method: \"GET\",\n params: OrganizationGroupPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}/members\",\n responses: {\n 200: OrganizationGroupMembersResponseSchema,\n },\n});\n\nexport const updateOrganizationProfileOperation = defineJsonOperation({\n auth: \"session\",\n body: UpdateOrganizationProfileRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 500],\n id: \"organizations.profile.update\",\n summary: \"Update the organization profile\",\n description:\n \"Binds, or clears, the organization's encrypted profile document, which holds profile fields such as its name that the server cannot read. Only organization administrators may call it.\",\n method: \"PUT\",\n params: OrganizationPathParamsSchema,\n path: \"/organizations/{organizationId}/profile\",\n responses: {\n 200: OrganizationProfileResponseSchema,\n },\n});\n\nexport const updateOrganizationRosterEntryOperation = defineJsonOperation({\n auth: \"session\",\n body: UpdateOrganizationRosterEntryRequestSchema,\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 500],\n id: \"organizations.roster.update\",\n summary: \"Bind an encrypted roster profile document\",\n description:\n \"Binds a member's encrypted roster profile document to their organization roster entry. Members may bind their own profile; binding another member's requires organization administrator access.\",\n method: \"PUT\",\n params: OrganizationRosterPathParamsSchema,\n path: \"/organizations/{organizationId}/roster/{userId}\",\n responses: {\n 200: OrganizationDirectoryUserResponseSchema,\n },\n});\n\nexport const isCreateOrganizationGroupOperationRequest =\n isCreateOrganizationGroupWithPolicyRequest;\nexport const isCreateOrganizationGroupOperationResponse =\n isCreateOrganizationGroupResponse;\nexport const isCreateOrganizationOperationRequest = isCreateOrganizationRequest;\nexport const isCreateOrganizationOperationResponse =\n isCreateOrganizationResponse;\nexport const isDeleteOrganizationGroupOperationResponse =\n isDeleteOrganizationGroupResponse;\nexport const isGetOrganizationDataUsageOperationResponse =\n isOrganizationDataUsageResponse;\nexport const isGetOrganizationReadModelOperationResponse =\n isOrganizationReadModelResponse;\nexport const isListOrganizationGroupMembersOperationResponse =\n isOrganizationGroupMembersResponse;\nexport const isUpdateOrganizationProfileOperationRequest =\n isUpdateOrganizationProfileRequest;\nexport const isUpdateOrganizationProfileOperationResponse =\n isOrganizationProfileResponse;\nexport const isUpdateOrganizationRosterEntryOperationRequest =\n isUpdateOrganizationRosterEntryRequest;\nexport const isUpdateOrganizationRosterEntryOperationResponse =\n isOrganizationDirectoryUserResponse;\n"]}
@@ -2809,13 +2809,22 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2809
2809
  readonly failureStatuses: readonly [400, 401, 402, 403, 404, 409, 500, 503];
2810
2810
  readonly id: "organizations.groups.policy.commit";
2811
2811
  readonly summary: "Advance a group policy and its signed directory head";
2812
- readonly description: "Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.";
2812
+ readonly description: "Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. When `readModelCursor` names the read-model head the commit advanced from, the response carries the read-model delta a feed read from that cursor returns. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.";
2813
2813
  readonly method: "PUT";
2814
2814
  readonly params: z.ZodObject<{
2815
2815
  organizationId: z.ZodCustom<string, string>;
2816
2816
  groupId: z.ZodCustom<string, string>;
2817
2817
  }, z.core.$strict>;
2818
2818
  readonly path: "/organizations/{organizationId}/groups/{groupId}/policy-commit";
2819
+ readonly query: z.ZodType<{
2820
+ readModelCursor?: string | undefined;
2821
+ }, {
2822
+ readModelCursor?: string | undefined;
2823
+ }, z.core.$ZodTypeInternals<{
2824
+ readModelCursor?: string | undefined;
2825
+ }, {
2826
+ readModelCursor?: string | undefined;
2827
+ }>>;
2819
2828
  readonly responseDescriptions: {
2820
2829
  readonly 202: "The attempted operation rolled back. Retry the identical request to continue verification preparation.";
2821
2830
  };
@@ -2920,6 +2929,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2920
2929
  version: number;
2921
2930
  };
2922
2931
  } | undefined;
2932
+ readModel?: unknown;
2923
2933
  }, {
2924
2934
  groupPolicy: {
2925
2935
  containerMutations: {
@@ -3020,6 +3030,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3020
3030
  version: number;
3021
3031
  };
3022
3032
  } | undefined;
3033
+ readModel?: unknown;
3023
3034
  }, z.core.$ZodTypeInternals<{
3024
3035
  groupPolicy: {
3025
3036
  containerMutations: {
@@ -3120,6 +3131,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3120
3131
  version: number;
3121
3132
  };
3122
3133
  } | undefined;
3134
+ readModel?: unknown;
3123
3135
  }, {
3124
3136
  groupPolicy: {
3125
3137
  containerMutations: {
@@ -3220,6 +3232,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3220
3232
  version: number;
3221
3233
  };
3222
3234
  } | undefined;
3235
+ readModel?: unknown;
3223
3236
  }>>;
3224
3237
  readonly 202: z.ZodObject<{
3225
3238
  code: z.ZodLiteral<"principal_history_preparation_pending">;
@@ -3233,6 +3246,9 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
3233
3246
  }, {
3234
3247
  readonly id: "response.principal-history-preparation-rollback";
3235
3248
  readonly description: "A 503 with code principal_history_preparation_unavailable requires committed:false; other 503 responses do not guarantee rollback.";
3249
+ }, {
3250
+ readonly description: "read-model lanes match the response organization; grants and memberships are unambiguous; snapshot lanes are complete and contain no deletions";
3251
+ readonly id: "response.organization-read-model-consistency";
3236
3252
  }];
3237
3253
  }, "failureResponses" | "failureStatuses"> & {
3238
3254
  readonly failureResponses: {
@@ -1,6 +1,7 @@
1
1
  import { z } from "zod";
2
2
  import { organizationProvisioningContainerKeyringRefinement } from "../organizationProvisioningRefinements.js";
3
- import { CommitOrganizationGroupPolicyRequestSchema, isCommitOrganizationGroupPolicyRequest, isOrganizationPrincipalPolicyRequest, OrganizationPrincipalPolicyRequestSchema, } from "../request/index.js";
3
+ import { organizationReadModelResponseRuntimeRefinements } from "../organizationReadModelRefinements.js";
4
+ import { CommitOrganizationGroupPolicyRequestSchema, isCommitOrganizationGroupPolicyRequest, isOrganizationPrincipalPolicyRequest, OrganizationPrincipalPolicyRequestSchema, OrganizationReadModelHeldCursorQuerySchema, } from "../request/index.js";
4
5
  import { CommitOrganizationGroupPolicyConflictResponseSchema, CommitOrganizationGroupPolicyResponseSchema, CurrentPrincipalMemberEnvelopesResponseSchema, ErrorResponseSchema, isCommitOrganizationGroupPolicyResponse, isCurrentPrincipalMemberEnvelopesResponse, isPrincipalPolicyMutationResponse, PaymentRequiredErrorResponseSchema, PrincipalPolicyErrorResponseSchema, PrincipalPolicyMutationResponseSchema, PrincipalPolicyReadResponseSchema, SessionFailureResponseSchema, } from "../response/index.js";
5
6
  import { PrincipalHistoryPreparationFailureResponseSchema, PrincipalHistoryPreparationResponseSchema, principalHistoryRollbackRefinement, } from "../response/principalHistoryPreparation.js";
6
7
  import { sha256HexStringSchema, uuidV4StringSchema } from "../schema.js";
@@ -113,10 +114,11 @@ export const commitOrganizationGroupPolicyOperation = defineJsonOperation({
113
114
  failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],
114
115
  id: "organizations.groups.policy.commit",
115
116
  summary: "Advance a group policy and its signed directory head",
116
- description: "Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.",
117
+ description: "Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. When `readModelCursor` names the read-model head the commit advanced from, the response carries the read-model delta a feed read from that cursor returns. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.",
117
118
  method: "PUT",
118
119
  params: OrganizationGroupPolicyPathParamsSchema,
119
120
  path: "/organizations/{organizationId}/groups/{groupId}/policy-commit",
121
+ query: OrganizationReadModelHeldCursorQuerySchema,
120
122
  responseDescriptions: preparationResponseDescriptions,
121
123
  responses: {
122
124
  200: CommitOrganizationGroupPolicyResponseSchema,
@@ -125,6 +127,7 @@ export const commitOrganizationGroupPolicyOperation = defineJsonOperation({
125
127
  runtimeRefinements: [
126
128
  organizationProvisioningContainerKeyringRefinement,
127
129
  principalHistoryRollbackRefinement,
130
+ ...organizationReadModelResponseRuntimeRefinements,
128
131
  ],
129
132
  });
130
133
  export const isCommitOrganizationGroupPolicyOperationRequest = isCommitOrganizationGroupPolicyRequest;
@@ -1 +1 @@
1
- {"version":3,"file":"principals.js","sourceRoot":"","sources":["principals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kDAAkD,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,oCAAoC,EACpC,wCAAwC,GACzC,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,mDAAmD,EACnD,2CAA2C,EAE3C,6CAA6C,EAC7C,mBAAmB,EACnB,uCAAuC,EACvC,yCAAyC,EACzC,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,qCAAqC,EAErC,iCAAiC,EACjC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gDAAgD,EAChD,yCAAyC,EACzC,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,qBAAqB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACtE,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AACnD,OAAO,EAAE,8BAA8B,EAAE,MAAM,4BAA4B,CAAC;AAE5E,MAAM,CAAC,MAAM,+BAA+B,GAAG,CAAC,CAAC,YAAY,CAAC;IAC5D,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,cAAc,CAAC,CAAC;IACnD,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAC;A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SAAS;IACf,IAAI,EAAE,0CAA0C;IAChD,gBAAgB,EAAE;QAChB,GAAG,EAAE,kCAAkC;QACvC,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,kCAAkC;QACvC,GAAG,EAAE,kCAAkC;QACvC,GAAG,EAAE,kCAAkC;QACvC,GAAG,EAAE,mDAAmD;QACxD,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,gDAAgD;KACtD;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IACzD,EAAE,EAAE,oCAAoC;IACxC,OAAO,EAAE,sDAAsD;IAC/D,WAAW,EACT,scAAsc;IACxc,MAAM,EAAE,KAAK;IACb,MAAM,EAAE,uCAAuC;IAC/C,IAAI,EAAE,gEAAgE;IACtE,oBAAoB,EAAE,+BAA+B;IACrD,SAAS,EAAE;QACT,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,kDAAkD;QAClD,kCAAkC;KACnC;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,uCAAuC,CAAC;AAE1C,MAAM,UAAU,qCAAqC,CACnD,KAAc;IAEd,OAAO,iCAAiC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,8CAA8C,CAC5D,KAAc;IAEd,OAAO,yCAAyC,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AACD,MAAM,CAAC,MAAM,oCAAoC,GAC/C,oCAAoC,CAAC;AACvC,MAAM,CAAC,MAAM,qCAAqC,GAChD,iCAAiC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { organizationProvisioningContainerKeyringRefinement } from \"../organizationProvisioningRefinements\";\nimport {\n CommitOrganizationGroupPolicyRequestSchema,\n isCommitOrganizationGroupPolicyRequest,\n isOrganizationPrincipalPolicyRequest,\n OrganizationPrincipalPolicyRequestSchema,\n} from \"../request\";\nimport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n ErrorResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyMutationResponse,\n PaymentRequiredErrorResponseSchema,\n PrincipalPolicyErrorResponseSchema,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicyReadResponse,\n PrincipalPolicyReadResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport {\n PrincipalHistoryPreparationFailureResponseSchema,\n PrincipalHistoryPreparationResponseSchema,\n principalHistoryRollbackRefinement,\n} from \"../response/principalHistoryPreparation\";\nimport { sha256HexStringSchema, uuidV4StringSchema } from \"../schema\";\nimport { defineJsonOperation } from \"./definition\";\nimport { PrincipalPolicyPageQuerySchema } from \"./principalPolicyPageQuery\";\n\nexport const PrincipalPolicyPathParamsSchema = z.strictObject({\n principalType: z.literal([\"group\", \"organization\"]),\n principalId: uuidV4StringSchema,\n});\n\nexport type PrincipalPolicyPathParams = z.infer<\n typeof PrincipalPolicyPathParamsSchema\n>;\n\nexport const OrganizationGroupPolicyPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n groupId: uuidV4StringSchema,\n});\n\nexport type OrganizationGroupPolicyPathParams = z.infer<\n typeof OrganizationGroupPolicyPathParamsSchema\n>;\n\nconst preparationResponseDescriptions = {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n} as const;\n\nexport const getPrincipalPolicyOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 409, 500],\n id: \"principals.policy.get\",\n summary: \"Get a principal policy bundle\",\n description:\n \"Returns a page of a group or organization's signed principal policy chain with its current member envelopes, so the client can verify the chain and a member can unwrap the principal's key; a conditional read that names the still-current head gets a short unchanged reply instead. It is served only to callers who depend on it: active roster members, members of the principal, or holders of a grant whose path cites it. A 202 asks the client to retry the identical request after policy history is prepared.\",\n method: \"GET\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy\",\n query: PrincipalPolicyPageQuerySchema,\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: PrincipalPolicyReadResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n});\n\nexport const PrincipalMemberEnvelopesQuerySchema = z.strictObject({\n stateHash: sha256HexStringSchema,\n});\n\nexport type PrincipalMemberEnvelopesQuery = z.infer<\n typeof PrincipalMemberEnvelopesQuerySchema\n>;\n\nexport const getPrincipalMemberEnvelopesOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"principals.policy.memberEnvelopes.get\",\n summary: \"Get the member envelopes of one principal state\",\n description:\n \"Returns every member envelope of one named, immutable state of a group or organization, so a client can check a historical member's committed key fingerprint against that state's `memberEnvelopesRoot`. It is served to the same callers as the policy read, authorized against the principal's live policy, which must verify against its signed state (409 otherwise), before the named state is looked up; a state the principal never had returns 404. A 202 asks the client to retry the identical request after policy history is prepared.\",\n method: \"GET\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy/member-envelopes\",\n query: PrincipalMemberEnvelopesQuerySchema,\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: CurrentPrincipalMemberEnvelopesResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n});\n\nexport const putPrincipalPolicyOperation = defineJsonOperation({\n auth: \"session\",\n body: OrganizationPrincipalPolicyRequestSchema,\n failureResponses: {\n 400: PrincipalPolicyErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: PrincipalPolicyErrorResponseSchema,\n 404: PrincipalPolicyErrorResponseSchema,\n 409: PrincipalPolicyErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"principals.policy.update\",\n summary: \"Update a principal policy\",\n description:\n \"Commits the organization's next signed principal policy and its member envelopes atomically; group policies change through the group policy commit route instead. It requires organization administrator authority, and a stale head returns 409. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"PUT\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy\",\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: PrincipalPolicyMutationResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const commitOrganizationGroupPolicyOperation = defineJsonOperation({\n auth: \"session\",\n body: CommitOrganizationGroupPolicyRequestSchema,\n failureResponses: {\n 400: PrincipalPolicyErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: PrincipalPolicyErrorResponseSchema,\n 404: PrincipalPolicyErrorResponseSchema,\n 409: CommitOrganizationGroupPolicyConflictResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.policy.commit\",\n summary: \"Advance a group policy and its signed directory head\",\n description:\n \"Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"PUT\",\n params: OrganizationGroupPolicyPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}/policy-commit\",\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: CommitOrganizationGroupPolicyResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const isCommitOrganizationGroupPolicyOperationRequest =\n isCommitOrganizationGroupPolicyRequest;\nexport const isCommitOrganizationGroupPolicyOperationResponse =\n isCommitOrganizationGroupPolicyResponse;\n\nexport function isGetPrincipalPolicyOperationResponse(\n value: unknown,\n): value is PrincipalPolicyReadResponse {\n return PrincipalPolicyReadResponseSchema.safeParse(value).success;\n}\n\nexport function isGetPrincipalMemberEnvelopesOperationResponse(\n value: unknown,\n): value is CurrentPrincipalMemberEnvelopesResponse {\n return isCurrentPrincipalMemberEnvelopesResponse(value);\n}\nexport const isPutPrincipalPolicyOperationRequest =\n isOrganizationPrincipalPolicyRequest;\nexport const isPutPrincipalPolicyOperationResponse =\n isPrincipalPolicyMutationResponse;\n"]}
1
+ {"version":3,"file":"principals.js","sourceRoot":"","sources":["principals.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,kDAAkD,EAAE,MAAM,wCAAwC,CAAC;AAC5G,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,0CAA0C,EAC1C,sCAAsC,EACtC,oCAAoC,EACpC,wCAAwC,EACxC,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACp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,EAAE,+BAA+B;IACrD,SAAS,EAAE;QACT,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,kDAAkD;QAClD,kCAAkC;QAClC,GAAG,+CAA+C;KACnD;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,uCAAuC,CAAC;AAE1C,MAAM,UAAU,qCAAqC,CACnD,KAAc;IAEd,OAAO,iCAAiC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACpE,CAAC;AAED,MAAM,UAAU,8CAA8C,CAC5D,KAAc;IAEd,OAAO,yCAAyC,CAAC,KAAK,CAAC,CAAC;AAC1D,CAAC;AACD,MAAM,CAAC,MAAM,oCAAoC,GAC/C,oCAAoC,CAAC;AACvC,MAAM,CAAC,MAAM,qCAAqC,GAChD,iCAAiC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { organizationProvisioningContainerKeyringRefinement } from \"../organizationProvisioningRefinements\";\nimport { organizationReadModelResponseRuntimeRefinements } from \"../organizationReadModelRefinements\";\nimport {\n CommitOrganizationGroupPolicyRequestSchema,\n isCommitOrganizationGroupPolicyRequest,\n isOrganizationPrincipalPolicyRequest,\n OrganizationPrincipalPolicyRequestSchema,\n OrganizationReadModelHeldCursorQuerySchema,\n} from \"../request\";\nimport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n CommitOrganizationGroupPolicyResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n ErrorResponseSchema,\n isCommitOrganizationGroupPolicyResponse,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyMutationResponse,\n PaymentRequiredErrorResponseSchema,\n PrincipalPolicyErrorResponseSchema,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicyReadResponse,\n PrincipalPolicyReadResponseSchema,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport {\n PrincipalHistoryPreparationFailureResponseSchema,\n PrincipalHistoryPreparationResponseSchema,\n principalHistoryRollbackRefinement,\n} from \"../response/principalHistoryPreparation\";\nimport { sha256HexStringSchema, uuidV4StringSchema } from \"../schema\";\nimport { defineJsonOperation } from \"./definition\";\nimport { PrincipalPolicyPageQuerySchema } from \"./principalPolicyPageQuery\";\n\nexport const PrincipalPolicyPathParamsSchema = z.strictObject({\n principalType: z.literal([\"group\", \"organization\"]),\n principalId: uuidV4StringSchema,\n});\n\nexport type PrincipalPolicyPathParams = z.infer<\n typeof PrincipalPolicyPathParamsSchema\n>;\n\nexport const OrganizationGroupPolicyPathParamsSchema = z.strictObject({\n organizationId: uuidV4StringSchema,\n groupId: uuidV4StringSchema,\n});\n\nexport type OrganizationGroupPolicyPathParams = z.infer<\n typeof OrganizationGroupPolicyPathParamsSchema\n>;\n\nconst preparationResponseDescriptions = {\n 202: \"The attempted operation rolled back. Retry the identical request to continue verification preparation.\",\n} as const;\n\nexport const getPrincipalPolicyOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 409, 500],\n id: \"principals.policy.get\",\n summary: \"Get a principal policy bundle\",\n description:\n \"Returns a page of a group or organization's signed principal policy chain with its current member envelopes, so the client can verify the chain and a member can unwrap the principal's key; a conditional read that names the still-current head gets a short unchanged reply instead. It is served only to callers who depend on it: active roster members, members of the principal, or holders of a grant whose path cites it. A 202 asks the client to retry the identical request after policy history is prepared.\",\n method: \"GET\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy\",\n query: PrincipalPolicyPageQuerySchema,\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: PrincipalPolicyReadResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n});\n\nexport const PrincipalMemberEnvelopesQuerySchema = z.strictObject({\n stateHash: sha256HexStringSchema,\n});\n\nexport type PrincipalMemberEnvelopesQuery = z.infer<\n typeof PrincipalMemberEnvelopesQuerySchema\n>;\n\nexport const getPrincipalMemberEnvelopesOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ErrorResponseSchema,\n 409: ErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"principals.policy.memberEnvelopes.get\",\n summary: \"Get the member envelopes of one principal state\",\n description:\n \"Returns every member envelope of one named, immutable state of a group or organization, so a client can check a historical member's committed key fingerprint against that state's `memberEnvelopesRoot`. It is served to the same callers as the policy read, authorized against the principal's live policy, which must verify against its signed state (409 otherwise), before the named state is looked up; a state the principal never had returns 404. A 202 asks the client to retry the identical request after policy history is prepared.\",\n method: \"GET\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy/member-envelopes\",\n query: PrincipalMemberEnvelopesQuerySchema,\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: CurrentPrincipalMemberEnvelopesResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n});\n\nexport const putPrincipalPolicyOperation = defineJsonOperation({\n auth: \"session\",\n body: OrganizationPrincipalPolicyRequestSchema,\n failureResponses: {\n 400: PrincipalPolicyErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: PrincipalPolicyErrorResponseSchema,\n 404: PrincipalPolicyErrorResponseSchema,\n 409: PrincipalPolicyErrorResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"principals.policy.update\",\n summary: \"Update a principal policy\",\n description:\n \"Commits the organization's next signed principal policy and its member envelopes atomically; group policies change through the group policy commit route instead. It requires organization administrator authority, and a stale head returns 409. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"PUT\",\n params: PrincipalPolicyPathParamsSchema,\n path: \"/principals/{principalType}/{principalId}/policy\",\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: PrincipalPolicyMutationResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ],\n});\n\nexport const commitOrganizationGroupPolicyOperation = defineJsonOperation({\n auth: \"session\",\n body: CommitOrganizationGroupPolicyRequestSchema,\n failureResponses: {\n 400: PrincipalPolicyErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 402: PaymentRequiredErrorResponseSchema,\n 403: PrincipalPolicyErrorResponseSchema,\n 404: PrincipalPolicyErrorResponseSchema,\n 409: CommitOrganizationGroupPolicyConflictResponseSchema,\n 500: ErrorResponseSchema,\n 503: PrincipalHistoryPreparationFailureResponseSchema,\n },\n failureStatuses: [400, 401, 402, 403, 404, 409, 500, 503],\n id: \"organizations.groups.policy.commit\",\n summary: \"Advance a group policy and its signed directory head\",\n description:\n \"Commits a group's next signed principal policy, its member envelopes, the matching organization policy successor, and the container grant updates the change requires, all in one transaction. Only organization administrators may call it; a stale head returns 409. When `readModelCursor` names the read-model head the commit advanced from, the response carries the read-model delta a feed read from that cursor returns. A 202 asks for the identical request to be retried after preparation, and only a 503 with `committed: false` and code `principal_history_preparation_unavailable` proves nothing was written.\",\n method: \"PUT\",\n params: OrganizationGroupPolicyPathParamsSchema,\n path: \"/organizations/{organizationId}/groups/{groupId}/policy-commit\",\n query: OrganizationReadModelHeldCursorQuerySchema,\n responseDescriptions: preparationResponseDescriptions,\n responses: {\n 200: CommitOrganizationGroupPolicyResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n organizationProvisioningContainerKeyringRefinement,\n principalHistoryRollbackRefinement,\n ...organizationReadModelResponseRuntimeRefinements,\n ],\n});\n\nexport const isCommitOrganizationGroupPolicyOperationRequest =\n isCommitOrganizationGroupPolicyRequest;\nexport const isCommitOrganizationGroupPolicyOperationResponse =\n isCommitOrganizationGroupPolicyResponse;\n\nexport function isGetPrincipalPolicyOperationResponse(\n value: unknown,\n): value is PrincipalPolicyReadResponse {\n return PrincipalPolicyReadResponseSchema.safeParse(value).success;\n}\n\nexport function isGetPrincipalMemberEnvelopesOperationResponse(\n value: unknown,\n): value is CurrentPrincipalMemberEnvelopesResponse {\n return isCurrentPrincipalMemberEnvelopesResponse(value);\n}\nexport const isPutPrincipalPolicyOperationRequest =\n isOrganizationPrincipalPolicyRequest;\nexport const isPutPrincipalPolicyOperationResponse =\n isPrincipalPolicyMutationResponse;\n"]}
@@ -72,7 +72,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
72
72
  readonly failureStatuses: readonly [400, 401, 403, 404, 409, 500];
73
73
  readonly id: "containers.writerProjection.get";
74
74
  readonly summary: "Get a container writer projection";
75
- readonly description: "Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests it already holds.";
75
+ readonly description: "Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests, KEK levels and directory payloads it already holds.";
76
76
  readonly method: "GET";
77
77
  readonly headers: z.ZodObject<{
78
78
  "x-known-manifests": z.ZodOptional<z.ZodString>;
@@ -112,7 +112,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
112
112
  principalId: string;
113
113
  principalType: "group" | "organization";
114
114
  stateHash: string;
115
- };
115
+ } | null;
116
116
  }[];
117
117
  groups: {
118
118
  head: {
@@ -194,7 +194,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
194
194
  principalId: string;
195
195
  principalType: "group" | "organization";
196
196
  stateHash: string;
197
- };
197
+ } | null;
198
198
  }[];
199
199
  groups: {
200
200
  head: {
@@ -276,7 +276,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
276
276
  principalId: string;
277
277
  principalType: "group" | "organization";
278
278
  stateHash: string;
279
- };
279
+ } | null;
280
280
  }[];
281
281
  groups: {
282
282
  head: {
@@ -358,7 +358,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
358
358
  principalId: string;
359
359
  principalType: "group" | "organization";
360
360
  stateHash: string;
361
- };
361
+ } | null;
362
362
  }[];
363
363
  groups: {
364
364
  head: {
@@ -428,7 +428,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
428
428
  readonly id: "response.writer-projection-manifest-bundles";
429
429
  }, {
430
430
  readonly id: "request.known-manifest-hints";
431
- readonly description: "x-known-manifests must list at most 48 unique typed digests, each m: or k: followed by a lowercase SHA-256 hex digest";
431
+ readonly description: "x-known-manifests must list unique typed digests, at most 48 m: or k: and at most 8 d:, each followed by a lowercase SHA-256 hex digest";
432
432
  }];
433
433
  }, "failureResponses" | "failureStatuses"> & {
434
434
  readonly failureResponses: {
@@ -600,7 +600,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
600
600
  principalId: string;
601
601
  principalType: "group" | "organization";
602
602
  stateHash: string;
603
- };
603
+ } | null;
604
604
  }[];
605
605
  groups: {
606
606
  head: {
@@ -712,7 +712,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
712
712
  principalId: string;
713
713
  principalType: "group" | "organization";
714
714
  stateHash: string;
715
- };
715
+ } | null;
716
716
  }[];
717
717
  groups: {
718
718
  head: {
@@ -824,7 +824,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
824
824
  principalId: string;
825
825
  principalType: "group" | "organization";
826
826
  stateHash: string;
827
- };
827
+ } | null;
828
828
  }[];
829
829
  groups: {
830
830
  head: {
@@ -936,7 +936,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
936
936
  principalId: string;
937
937
  principalType: "group" | "organization";
938
938
  stateHash: string;
939
- };
939
+ } | null;
940
940
  }[];
941
941
  groups: {
942
942
  head: {
@@ -1025,7 +1025,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
1025
1025
  readonly id: "response.writer-projection-manifest-bundles";
1026
1026
  }, {
1027
1027
  readonly id: "request.known-manifest-hints";
1028
- readonly description: "x-known-manifests must list at most 48 unique typed digests, each m: or k: followed by a lowercase SHA-256 hex digest";
1028
+ readonly description: "x-known-manifests must list unique typed digests, at most 48 m: or k: and at most 8 d:, each followed by a lowercase SHA-256 hex digest";
1029
1029
  }];
1030
1030
  }, "failureResponses" | "failureStatuses"> & {
1031
1031
  readonly failureResponses: {
@@ -24,7 +24,7 @@ export const getContainerWriterProjectionOperation = defineJsonOperation({
24
24
  failureStatuses: [400, 401, 403, 404, 409, 500],
25
25
  id: "containers.writerProjection.get",
26
26
  summary: "Get a container writer projection",
27
- description: "Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests it already holds.",
27
+ description: "Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests, KEK levels and directory payloads it already holds.",
28
28
  method: "GET",
29
29
  headers: KnownManifestsHeadersSchema,
30
30
  params: ContainerWriterProjectionPathParamsSchema,
@@ -1 +1 @@
1
- {"version":3,"file":"writerProjections.js","sourceRoot":"","sources":["writerProjections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,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EAAE,6CAA6C;IACnD,SAAS,EAAE;QACT,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,GAAG,0CAA0C;QAC7C,8BAA8B;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG,mBAAmB,CAAC;IACtE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,mCAAmC;QACxC,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,gCAAgC;IACpC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EACT,kYAAkY;IACpY,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,wCAAwC;IAChD,IAAI,EAAE,2CAA2C;IACjD,SAAS,EAAE;QACT,GAAG,EAAE,0CAA0C;QAC/C,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,GAAG,0CAA0C;QAC7C,8BAA8B;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+CAA+C,GAC1D,uCAAuC,CAAC;AAC1C,MAAM,CAAC,MAAM,8CAA8C,GACzD,sCAAsC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { knownManifestsHeaderRefinement } from \"../knownManifestsRefinements\";\nimport {\n ContainerNotFoundErrorResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n ContainerWriterProjectionWireResponseSchema,\n DocumentNotFoundErrorResponseSchema,\n DocumentWriterProjectionErrorResponseSchema,\n DocumentWriterProjectionWireResponseSchema,\n ErrorResponseSchema,\n isContainerWriterProjectionWireResponse,\n isDocumentWriterProjectionWireResponse,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { PrincipalHistoryPreparationResponseSchema } from \"../response/principalHistoryPreparation\";\nimport { KnownManifestsHeadersSchema } from \"../util/knownManifestWire\";\nimport { writerProjectionResponseRuntimeRefinements } from \"../writerProjectionRefinements\";\nimport { defineJsonOperation } from \"./definition\";\n\nexport const ContainerWriterProjectionPathParamsSchema = z.strictObject({\n containerId: z.string(),\n});\n\nexport const DocumentWriterProjectionPathParamsSchema = z.strictObject({\n documentId: z.string(),\n});\n\nexport type ContainerWriterProjectionPathParams = z.infer<\n typeof ContainerWriterProjectionPathParamsSchema\n>;\nexport type DocumentWriterProjectionPathParams = z.infer<\n typeof DocumentWriterProjectionPathParamsSchema\n>;\n\nexport const getContainerWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ContainerNotFoundErrorResponseSchema,\n 409: ContainerWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"containers.writerProjection.get\",\n summary: \"Get a container writer projection\",\n description:\n \"Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests it already holds.\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: ContainerWriterProjectionPathParamsSchema,\n path: \"/containers/{containerId}/writer-projection\",\n responses: {\n 200: ContainerWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const getDocumentWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: DocumentNotFoundErrorResponseSchema,\n 409: DocumentWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"documents.writerProjection.get\",\n summary: \"Get a document writer projection\",\n description:\n \"Returns everything a client needs to read and write a document: its document link-set manifest history, the authorizing container paths with their KEK wraps and keyrings, and the key targets. Requires current read access; write authority is checked again when a write commits. A vanished container is reported as 409, never 404, because 404 here means the document itself was deleted.\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: DocumentWriterProjectionPathParamsSchema,\n path: \"/documents/{documentId}/writer-projection\",\n responses: {\n 200: DocumentWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const isGetContainerWriterProjectionOperationResponse =\n isContainerWriterProjectionWireResponse;\nexport const isGetDocumentWriterProjectionOperationResponse =\n isDocumentWriterProjectionWireResponse;\n"]}
1
+ {"version":3,"file":"writerProjections.js","sourceRoot":"","sources":["writerProjections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,oCAAoC,EACpC,4CAA4C,EAC5C,2CAA2C,EAC3C,mCAAmC,EACnC,2CAA2C,EAC3C,0CAA0C,EAC1C,mBAAmB,EACnB,uCAAuC,EACvC,sCAAsC,EACtC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,mB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ACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,gCAAgC;IACpC,OAAO,EAAE,kCAAkC;IAC3C,WAAW,EACT,kYAAkY;IACpY,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,wCAAwC;IAChD,IAAI,EAAE,2CAA2C;IACjD,SAAS,EAAE;QACT,GAAG,EAAE,0CAA0C;QAC/C,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,GAAG,0CAA0C;QAC7C,8BAA8B;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+CAA+C,GAC1D,uCAAuC,CAAC;AAC1C,MAAM,CAAC,MAAM,8CAA8C,GACzD,sCAAsC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { knownManifestsHeaderRefinement } from \"../knownManifestsRefinements\";\nimport {\n ContainerNotFoundErrorResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n ContainerWriterProjectionWireResponseSchema,\n DocumentNotFoundErrorResponseSchema,\n DocumentWriterProjectionErrorResponseSchema,\n DocumentWriterProjectionWireResponseSchema,\n ErrorResponseSchema,\n isContainerWriterProjectionWireResponse,\n isDocumentWriterProjectionWireResponse,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { PrincipalHistoryPreparationResponseSchema } from \"../response/principalHistoryPreparation\";\nimport { KnownManifestsHeadersSchema } from \"../util/knownManifestWire\";\nimport { writerProjectionResponseRuntimeRefinements } from \"../writerProjectionRefinements\";\nimport { defineJsonOperation } from \"./definition\";\n\nexport const ContainerWriterProjectionPathParamsSchema = z.strictObject({\n containerId: z.string(),\n});\n\nexport const DocumentWriterProjectionPathParamsSchema = z.strictObject({\n documentId: z.string(),\n});\n\nexport type ContainerWriterProjectionPathParams = z.infer<\n typeof ContainerWriterProjectionPathParamsSchema\n>;\nexport type DocumentWriterProjectionPathParams = z.infer<\n typeof DocumentWriterProjectionPathParamsSchema\n>;\n\nexport const getContainerWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ContainerNotFoundErrorResponseSchema,\n 409: ContainerWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"containers.writerProjection.get\",\n summary: \"Get a container writer projection\",\n description:\n \"Returns everything a client needs to read and write under a container: the signed manifests on its authorizing container path, each path level's container KEK wraps and keyring, and the key targets. Requires current read access; write authority is checked again when a write commits. A 202 asks the client to retry the identical request after the server prepares policy history, and the `x-known-manifests` header lets a client skip manifests, KEK levels and directory payloads it already holds.\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: ContainerWriterProjectionPathParamsSchema,\n path: \"/containers/{containerId}/writer-projection\",\n responses: {\n 200: ContainerWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const getDocumentWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: DocumentNotFoundErrorResponseSchema,\n 409: DocumentWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"documents.writerProjection.get\",\n summary: \"Get a document writer projection\",\n description:\n \"Returns everything a client needs to read and write a document: its document link-set manifest history, the authorizing container paths with their KEK wraps and keyrings, and the key targets. Requires current read access; write authority is checked again when a write commits. A vanished container is reported as 409, never 404, because 404 here means the document itself was deleted.\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: DocumentWriterProjectionPathParamsSchema,\n path: \"/documents/{documentId}/writer-projection\",\n responses: {\n 200: DocumentWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const isGetContainerWriterProjectionOperationResponse =\n isContainerWriterProjectionWireResponse;\nexport const isGetDocumentWriterProjectionOperationResponse =\n isDocumentWriterProjectionWireResponse;\n"]}
@@ -7,7 +7,7 @@ export type { ContainerKekParentRef } from "./containerManifestRef.js";
7
7
  export { type ContainerCreateWithMetadataDocumentRequest, ContainerCreateWithMetadataDocumentRequestSchema, isContainerCreateWithMetadataDocumentRequest, } from "./containerMetadata.js";
8
8
  export { isListContainerParentLanesRequest, type ListContainerParentLanesRequest, ListContainerParentLanesRequestSchema, } from "./containerParentLanes.js";
9
9
  export { type ContainerManifestRef, ContainerManifestRefArrayArraySchema, ContainerManifestRefSchema, type DocumentContentKeyBundleRequest, DocumentContentKeyBundleRequestSchema, type DocumentContentKeyTargetEnvelope, DocumentContentKeyTargetEnvelopeSchema, type DocumentCreateRequest, DocumentCreateRequestSchema, type DocumentLinkSetMutationRequest, DocumentLinkSetMutationRequestSchema, type DocumentOutgoingUpdate, DocumentOutgoingUpdateSchema, type DocumentPurgeRequest, DocumentPurgeRequestSchema, type DocumentSyncRequest, DocumentSyncRequestSchema, isContainerManifestRefArrayArray, isDocumentContentKeyBundleRequest, isDocumentCreateRequest, isDocumentLinkSetMutationRequest, isDocumentPurgeRequest, isDocumentSyncRequest, } from "./document.js";
10
- export { type CreateOrganizationGroupRequest, CreateOrganizationGroupRequestSchema, type CreateOrganizationGroupWithPolicyRequest, CreateOrganizationGroupWithPolicyRequestSchema, type DeleteOrganizationGroupRequest, DeleteOrganizationGroupRequestSchema, isCreateOrganizationGroupRequest, isCreateOrganizationGroupWithPolicyRequest, isDeleteOrganizationGroupRequest, isUpdateOrganizationMembershipRequest, isUpdateOrganizationProfileRequest, isUpdateOrganizationRosterEntryRequest, type OrganizationReadModelQuery, OrganizationReadModelQuerySchema, type UpdateOrganizationMembershipRequest, UpdateOrganizationMembershipRequestSchema, type UpdateOrganizationProfileRequest, UpdateOrganizationProfileRequestSchema, type UpdateOrganizationRosterEntryRequest, UpdateOrganizationRosterEntryRequestSchema, } from "./organization.js";
10
+ export { type CreateOrganizationGroupRequest, CreateOrganizationGroupRequestSchema, type CreateOrganizationGroupWithPolicyRequest, CreateOrganizationGroupWithPolicyRequestSchema, type DeleteOrganizationGroupRequest, DeleteOrganizationGroupRequestSchema, isCreateOrganizationGroupRequest, isCreateOrganizationGroupWithPolicyRequest, isDeleteOrganizationGroupRequest, isUpdateOrganizationMembershipRequest, isUpdateOrganizationProfileRequest, isUpdateOrganizationRosterEntryRequest, type OrganizationReadModelHeldCursorQuery, OrganizationReadModelHeldCursorQuerySchema, type OrganizationReadModelQuery, OrganizationReadModelQuerySchema, type UpdateOrganizationMembershipRequest, UpdateOrganizationMembershipRequestSchema, type UpdateOrganizationProfileRequest, UpdateOrganizationProfileRequestSchema, type UpdateOrganizationRosterEntryRequest, UpdateOrganizationRosterEntryRequestSchema, } from "./organization.js";
11
11
  export { type CreateOrganizationRequest, CreateOrganizationRequestSchema, isCreateOrganizationRequest, isOrganizationProvisioningRequest, isProvisionedDocumentRequest, isProvisionedSystemContainerRequest, type OrganizationProvisioningRequest, OrganizationProvisioningRequestSchema, type ProvisionedDocumentRequest, ProvisionedDocumentRequestSchema, type ProvisionedSystemContainerRequest, ProvisionedSystemContainerRequestSchema, } from "./organizationProvisioning.js";
12
12
  export { type CommitOrganizationGroupPolicyRequest, CommitOrganizationGroupPolicyRequestSchema, isCommitOrganizationGroupPolicyRequest, isOrganizationPrincipalPolicyRequest, isPutPrincipalPolicyRequest, type OrganizationPrincipalPolicyRequest, OrganizationPrincipalPolicyRequestSchema, type PrincipalContainerGrantRequest, PrincipalContainerGrantRequestSchema, type PrincipalMemberEnvelopeRequest, type PrincipalProjectionMemberRequest, type PrincipalStateEncryptedPayloadRequest, type PrincipalStateRequest, type PutPrincipalPolicyRequest, PutPrincipalPolicyRequestSchema, } from "./principal.js";
13
13
  export { type PrincipalPolicyRef, PrincipalPolicyRefListSchema, PrincipalPolicyRefSchema, } from "./principalPolicyRef.js";
@@ -5,7 +5,7 @@ export { DEFAULT_CONTAINER_DOCUMENT_LANE_PAGE_LIMIT, isListContainerDocumentLane
5
5
  export { ContainerCreateWithMetadataDocumentRequestSchema, isContainerCreateWithMetadataDocumentRequest, } from "./containerMetadata.js";
6
6
  export { isListContainerParentLanesRequest, ListContainerParentLanesRequestSchema, } from "./containerParentLanes.js";
7
7
  export { ContainerManifestRefArrayArraySchema, ContainerManifestRefSchema, DocumentContentKeyBundleRequestSchema, DocumentContentKeyTargetEnvelopeSchema, DocumentCreateRequestSchema, DocumentLinkSetMutationRequestSchema, DocumentOutgoingUpdateSchema, DocumentPurgeRequestSchema, DocumentSyncRequestSchema, isContainerManifestRefArrayArray, isDocumentContentKeyBundleRequest, isDocumentCreateRequest, isDocumentLinkSetMutationRequest, isDocumentPurgeRequest, isDocumentSyncRequest, } from "./document.js";
8
- export { CreateOrganizationGroupRequestSchema, CreateOrganizationGroupWithPolicyRequestSchema, DeleteOrganizationGroupRequestSchema, isCreateOrganizationGroupRequest, isCreateOrganizationGroupWithPolicyRequest, isDeleteOrganizationGroupRequest, isUpdateOrganizationMembershipRequest, isUpdateOrganizationProfileRequest, isUpdateOrganizationRosterEntryRequest, OrganizationReadModelQuerySchema, UpdateOrganizationMembershipRequestSchema, UpdateOrganizationProfileRequestSchema, UpdateOrganizationRosterEntryRequestSchema, } from "./organization.js";
8
+ export { CreateOrganizationGroupRequestSchema, CreateOrganizationGroupWithPolicyRequestSchema, DeleteOrganizationGroupRequestSchema, isCreateOrganizationGroupRequest, isCreateOrganizationGroupWithPolicyRequest, isDeleteOrganizationGroupRequest, isUpdateOrganizationMembershipRequest, isUpdateOrganizationProfileRequest, isUpdateOrganizationRosterEntryRequest, OrganizationReadModelHeldCursorQuerySchema, OrganizationReadModelQuerySchema, UpdateOrganizationMembershipRequestSchema, UpdateOrganizationProfileRequestSchema, UpdateOrganizationRosterEntryRequestSchema, } from "./organization.js";
9
9
  export { CreateOrganizationRequestSchema, isCreateOrganizationRequest, isOrganizationProvisioningRequest, isProvisionedDocumentRequest, isProvisionedSystemContainerRequest, OrganizationProvisioningRequestSchema, ProvisionedDocumentRequestSchema, ProvisionedSystemContainerRequestSchema, } from "./organizationProvisioning.js";
10
10
  export { CommitOrganizationGroupPolicyRequestSchema, isCommitOrganizationGroupPolicyRequest, isOrganizationPrincipalPolicyRequest, isPutPrincipalPolicyRequest, OrganizationPrincipalPolicyRequestSchema, PrincipalContainerGrantRequestSchema, PutPrincipalPolicyRequestSchema, } from "./principal.js";
11
11
  export { PrincipalPolicyRefListSchema, PrincipalPolicyRefSchema, } from "./principalPolicyRef.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EAEf,mBAAmB,GACpB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,+BAA+B,EAE/B,iCAAiC,EAEjC,iCAAiC,EAEjC,yCAAyC,EAEzC,2BAA2B,EAE3B,uCAAuC,EACvC,2BAA2B,EAC3B,6BAA6B,EAC7B,mCAAmC,GACpC,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,8BAA8B,EAE9B,4BAA4B,EAE5B,8BAA8B,EAC9B,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,0CAA0C,EAC1C,mCAAmC,EAEnC,uCAAuC,EACvC,sCAAsC,EACtC,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,gDAAgD,EAChD,4CAA4C,GAC7C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iCAAiC,EAEjC,qCA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,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC","sourcesContent":["export type { AccessManifestBundleWire } from \"../util/accessManifestBundle\";\nexport {\n type ChallengeRequest,\n ChallengeRequestSchema,\n isChallengeRequest,\n isVerifyRequest,\n type VerifyRequest,\n VerifyRequestSchema,\n} from \"./auth\";\nexport {\n type BlobAttachmentBindRequest,\n BlobAttachmentBindRequestSchema,\n type BlobAttachmentDetachRequest,\n BlobAttachmentDetachRequestSchema,\n type BlobContentKeyBundleRequest,\n BlobContentKeyBundleRequestSchema,\n type BlobContentKeyTargetEnvelopeRequest,\n BlobContentKeyTargetEnvelopeRequestSchema,\n type BlobStagedBlobRequest,\n BlobStagedBlobRequestSchema,\n type InitiateMultipartBlobStageRequest,\n InitiateMultipartBlobStageRequestSchema,\n isBlobAttachmentBindRequest,\n isBlobAttachmentDetachRequest,\n isInitiateMultipartBlobStageRequest,\n} from \"./blob\";\nexport {\n type ContainerMutationRequest,\n ContainerMutationRequestSchema,\n type ContainerReciteRequest,\n ContainerReciteRequestSchema,\n type ContainerRotationRequest,\n ContainerRotationRequestSchema,\n isContainerMutationRequest,\n isContainerReciteRequest,\n isContainerRotationRequest,\n} from \"./container\";\nexport {\n DEFAULT_CONTAINER_DOCUMENT_LANE_PAGE_LIMIT,\n isListContainerDocumentLanesRequest,\n type ListContainerDocumentLanesRequest,\n ListContainerDocumentLanesRequestSchema,\n MAX_CONTAINER_DOCUMENT_LANE_PAGE_TOTAL,\n MAX_CONTAINER_DOCUMENT_LANES,\n} from \"./containerDocumentLanes\";\nexport type { ContainerKekParentRef } from \"./containerManifestRef\";\nexport {\n type ContainerCreateWithMetadataDocumentRequest,\n ContainerCreateWithMetadataDocumentRequestSchema,\n isContainerCreateWithMetadataDocumentRequest,\n} from \"./containerMetadata\";\nexport {\n isListContainerParentLanesRequest,\n type ListContainerParentLanesRequest,\n ListContainerParentLanesRequestSchema,\n} from \"./containerParentLanes\";\nexport {\n type ContainerManifestRef,\n ContainerManifestRefArrayArraySchema,\n ContainerManifestRefSchema,\n type DocumentContentKeyBundleRequest,\n DocumentContentKeyBundleRequestSchema,\n type DocumentContentKeyTargetEnvelope,\n DocumentContentKeyTargetEnvelopeSchema,\n type DocumentCreateRequest,\n DocumentCreateRequestSchema,\n type DocumentLinkSetMutationRequest,\n DocumentLinkSetMutationRequestSchema,\n type DocumentOutgoingUpdate,\n DocumentOutgoingUpdateSchema,\n type DocumentPurgeRequest,\n DocumentPurgeRequestSchema,\n type DocumentSyncRequest,\n DocumentSyncRequestSchema,\n isContainerManifestRefArrayArray,\n isDocumentContentKeyBundleRequest,\n isDocumentCreateRequest,\n isDocumentLinkSetMutationRequest,\n isDocumentPurgeRequest,\n isDocumentSyncRequest,\n} from \"./document\";\nexport {\n type CreateOrganizationGroupRequest,\n CreateOrganizationGroupRequestSchema,\n type CreateOrganizationGroupWithPolicyRequest,\n CreateOrganizationGroupWithPolicyRequestSchema,\n type DeleteOrganizationGroupRequest,\n DeleteOrganizationGroupRequestSchema,\n isCreateOrganizationGroupRequest,\n isCreateOrganizationGroupWithPolicyRequest,\n isDeleteOrganizationGroupRequest,\n isUpdateOrganizationMembershipRequest,\n isUpdateOrganizationProfileRequest,\n isUpdateOrganizationRosterEntryRequest,\n type OrganizationReadModelQuery,\n OrganizationReadModelQuerySchema,\n type UpdateOrganizationMembershipRequest,\n UpdateOrganizationMembershipRequestSchema,\n type UpdateOrganizationProfileRequest,\n UpdateOrganizationProfileRequestSchema,\n type UpdateOrganizationRosterEntryRequest,\n UpdateOrganizationRosterEntryRequestSchema,\n} from \"./organization\";\nexport {\n type CreateOrganizationRequest,\n CreateOrganizationRequestSchema,\n isCreateOrganizationRequest,\n isOrganizationProvisioningRequest,\n isProvisionedDocumentRequest,\n isProvisionedSystemContainerRequest,\n type OrganizationProvisioningRequest,\n OrganizationProvisioningRequestSchema,\n type ProvisionedDocumentRequest,\n ProvisionedDocumentRequestSchema,\n type ProvisionedSystemContainerRequest,\n ProvisionedSystemContainerRequestSchema,\n} from \"./organizationProvisioning\";\nexport {\n type CommitOrganizationGroupPolicyRequest,\n CommitOrganizationGroupPolicyRequestSchema,\n isCommitOrganizationGroupPolicyRequest,\n isOrganizationPrincipalPolicyRequest,\n isPutPrincipalPolicyRequest,\n type OrganizationPrincipalPolicyRequest,\n OrganizationPrincipalPolicyRequestSchema,\n type PrincipalContainerGrantRequest,\n PrincipalContainerGrantRequestSchema,\n type PrincipalMemberEnvelopeRequest,\n type PrincipalProjectionMemberRequest,\n type PrincipalStateEncryptedPayloadRequest,\n type PrincipalStateRequest,\n type PutPrincipalPolicyRequest,\n PutPrincipalPolicyRequestSchema,\n} from \"./principal\";\nexport {\n type PrincipalPolicyRef,\n PrincipalPolicyRefListSchema,\n PrincipalPolicyRefSchema,\n} from \"./principalPolicyRef\";\nexport {\n isRegistrationRequest,\n type RegistrationRequest,\n RegistrationRequestSchema,\n} from \"./registration\";\nexport {\n isRevenueCatTransferWebhookEvent,\n isRevenueCatWebhookRequest,\n type RevenueCatIncomingWebhookEvent,\n RevenueCatIncomingWebhookEventSchema,\n type RevenueCatSubscriberAttribute,\n RevenueCatSubscriberAttributeSchema,\n type RevenueCatTransferWebhookEvent,\n RevenueCatTransferWebhookEventSchema,\n type RevenueCatWebhookEvent,\n RevenueCatWebhookEventSchema,\n type RevenueCatWebhookRequest,\n RevenueCatWebhookRequestSchema,\n} from \"./revenuecatWebhook\";\nexport {\n isStripeCheckoutRequest,\n isStripeCheckoutSessionRequest,\n isStripePlanChangeRequest,\n isStripeReturnUrlRequest,\n type StripeCheckoutRequest,\n StripeCheckoutRequestSchema,\n type StripeCheckoutSessionRequest,\n StripeCheckoutSessionRequestSchema,\n type StripePlanChangeRequest,\n StripePlanChangeRequestSchema,\n type StripeReturnUrlRequest,\n StripeReturnUrlRequestSchema,\n} from \"./stripeCheckout\";\nexport {\n isStripeWebhookRequest,\n type StripeWebhookRequest,\n StripeWebhookRequestSchema,\n} from \"./stripeWebhook\";\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AACA,OAAO,EAEL,sBAAsB,EACtB,kBAAkB,EAClB,eAAe,EAEf,mBAAmB,GACpB,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,+BAA+B,EAE/B,iCAAiC,EAEjC,iCAAiC,EAEjC,yCAAyC,EAEzC,2BAA2B,EAE3B,uCAAuC,EACvC,2BAA2B,EAC3B,6BAA6B,EAC7B,mCAAmC,GACpC,MAAM,QAAQ,CAAC;AAChB,OAAO,EAEL,8BAA8B,EAE9B,4BAA4B,EAE5B,8BAA8B,EAC9B,0BAA0B,EAC1B,wBAAwB,EACxB,0BAA0B,GAC3B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,0CAA0C,EAC1C,mCAAmC,EAEnC,uCAAuC,EACvC,sCAAsC,EACtC,4BAA4B,GAC7B,MAAM,0BAA0B,CAAC;AAElC,OAAO,EAEL,gDAAgD,EAChD,4CAA4C,GAC7C,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,iCAAiC,EAEjC,qCAAqC,GACtC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAEL,oCAAoC,EACpC,0BAA0B,EAE1B,qCAAqC,EAErC,sCAAsC,EAEtC,2BAA2B,EAE3B,oCAAoC,EAEpC,4BAA4B,EAE5B,0BAA0B,EAE1B,yBAAyB,EACzB,gCAAgC,EAChC,iCAAiC,EACjC,uBAAuB,EACvB,gCAAgC,EAChC,sBAAsB,EACtB,qBAAqB,GACtB,MAAM,YAAY,CAAC;AACpB,OAAO,EAEL,oCAAoC,EAEpC,8CAA8C,EAE9C,oCAAoC,EACpC,gCAAgC,EAChC,0CAA0C,EAC1C,gCAAgC,EAChC,qCAAqC,EACrC,kCAAkC,EAClC,sCAAsC,EAEtC,0CAA0C,EAE1C,gCAAgC,EAEhC,yCAAyC,EAEzC,sCAAsC,EAEtC,0CAA0C,GAC3C,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAEL,+BAA+B,EAC/B,2BAA2B,EAC3B,iCAAiC,EACjC,4BAA4B,EAC5B,mCAAmC,EAEnC,qCAAqC,EAErC,gCAAgC,EAEhC,uCAAuC,GACxC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAEL,0CAA0C,EAC1C,sCAAsC,EACtC,oCAAoC,EACpC,2BAA2B,EAE3B,wCAAwC,EAExC,oCAAoC,EAMpC,+BAA+B,GAChC,MAAM,aAAa,CAAC;AACrB,OAAO,EAEL,4BAA4B,EAC5B,wBAAwB,GACzB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EACL,qBAAqB,EAErB,yBAAyB,GAC1B,MAAM,gBAAgB,CAAC;AACxB,OAAO,EACL,gCAAgC,EAChC,0BAA0B,EAE1B,oCAAoC,EAEpC,mCAAmC,EAEnC,oCAAoC,EAEpC,4BAA4B,EAE5B,8BAA8B,GAC/B,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,uBAAuB,EACvB,8BAA8B,EAC9B,yBAAyB,EACzB,wBAAwB,EAExB,2BAA2B,EAE3B,kCAAkC,EAElC,6BAA6B,EAE7B,4BAA4B,GAC7B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,sBAAsB,EAEtB,0BAA0B,GAC3B,MAAM,iBAAiB,CAAC","sourcesContent":["export type { AccessManifestBundleWire } from \"../util/accessManifestBundle\";\nexport {\n type ChallengeRequest,\n ChallengeRequestSchema,\n isChallengeRequest,\n isVerifyRequest,\n type VerifyRequest,\n VerifyRequestSchema,\n} from \"./auth\";\nexport {\n type BlobAttachmentBindRequest,\n BlobAttachmentBindRequestSchema,\n type BlobAttachmentDetachRequest,\n BlobAttachmentDetachRequestSchema,\n type BlobContentKeyBundleRequest,\n BlobContentKeyBundleRequestSchema,\n type BlobContentKeyTargetEnvelopeRequest,\n BlobContentKeyTargetEnvelopeRequestSchema,\n type BlobStagedBlobRequest,\n BlobStagedBlobRequestSchema,\n type InitiateMultipartBlobStageRequest,\n InitiateMultipartBlobStageRequestSchema,\n isBlobAttachmentBindRequest,\n isBlobAttachmentDetachRequest,\n isInitiateMultipartBlobStageRequest,\n} from \"./blob\";\nexport {\n type ContainerMutationRequest,\n ContainerMutationRequestSchema,\n type ContainerReciteRequest,\n ContainerReciteRequestSchema,\n type ContainerRotationRequest,\n ContainerRotationRequestSchema,\n isContainerMutationRequest,\n isContainerReciteRequest,\n isContainerRotationRequest,\n} from \"./container\";\nexport {\n DEFAULT_CONTAINER_DOCUMENT_LANE_PAGE_LIMIT,\n isListContainerDocumentLanesRequest,\n type ListContainerDocumentLanesRequest,\n ListContainerDocumentLanesRequestSchema,\n MAX_CONTAINER_DOCUMENT_LANE_PAGE_TOTAL,\n MAX_CONTAINER_DOCUMENT_LANES,\n} from \"./containerDocumentLanes\";\nexport type { ContainerKekParentRef } from \"./containerManifestRef\";\nexport {\n type ContainerCreateWithMetadataDocumentRequest,\n ContainerCreateWithMetadataDocumentRequestSchema,\n isContainerCreateWithMetadataDocumentRequest,\n} from \"./containerMetadata\";\nexport {\n isListContainerParentLanesRequest,\n type ListContainerParentLanesRequest,\n ListContainerParentLanesRequestSchema,\n} from \"./containerParentLanes\";\nexport {\n type ContainerManifestRef,\n ContainerManifestRefArrayArraySchema,\n ContainerManifestRefSchema,\n type DocumentContentKeyBundleRequest,\n DocumentContentKeyBundleRequestSchema,\n type DocumentContentKeyTargetEnvelope,\n DocumentContentKeyTargetEnvelopeSchema,\n type DocumentCreateRequest,\n DocumentCreateRequestSchema,\n type DocumentLinkSetMutationRequest,\n DocumentLinkSetMutationRequestSchema,\n type DocumentOutgoingUpdate,\n DocumentOutgoingUpdateSchema,\n type DocumentPurgeRequest,\n DocumentPurgeRequestSchema,\n type DocumentSyncRequest,\n DocumentSyncRequestSchema,\n isContainerManifestRefArrayArray,\n isDocumentContentKeyBundleRequest,\n isDocumentCreateRequest,\n isDocumentLinkSetMutationRequest,\n isDocumentPurgeRequest,\n isDocumentSyncRequest,\n} from \"./document\";\nexport {\n type CreateOrganizationGroupRequest,\n CreateOrganizationGroupRequestSchema,\n type CreateOrganizationGroupWithPolicyRequest,\n CreateOrganizationGroupWithPolicyRequestSchema,\n type DeleteOrganizationGroupRequest,\n DeleteOrganizationGroupRequestSchema,\n isCreateOrganizationGroupRequest,\n isCreateOrganizationGroupWithPolicyRequest,\n isDeleteOrganizationGroupRequest,\n isUpdateOrganizationMembershipRequest,\n isUpdateOrganizationProfileRequest,\n isUpdateOrganizationRosterEntryRequest,\n type OrganizationReadModelHeldCursorQuery,\n OrganizationReadModelHeldCursorQuerySchema,\n type OrganizationReadModelQuery,\n OrganizationReadModelQuerySchema,\n type UpdateOrganizationMembershipRequest,\n UpdateOrganizationMembershipRequestSchema,\n type UpdateOrganizationProfileRequest,\n UpdateOrganizationProfileRequestSchema,\n type UpdateOrganizationRosterEntryRequest,\n UpdateOrganizationRosterEntryRequestSchema,\n} from \"./organization\";\nexport {\n type CreateOrganizationRequest,\n CreateOrganizationRequestSchema,\n isCreateOrganizationRequest,\n isOrganizationProvisioningRequest,\n isProvisionedDocumentRequest,\n isProvisionedSystemContainerRequest,\n type OrganizationProvisioningRequest,\n OrganizationProvisioningRequestSchema,\n type ProvisionedDocumentRequest,\n ProvisionedDocumentRequestSchema,\n type ProvisionedSystemContainerRequest,\n ProvisionedSystemContainerRequestSchema,\n} from \"./organizationProvisioning\";\nexport {\n type CommitOrganizationGroupPolicyRequest,\n CommitOrganizationGroupPolicyRequestSchema,\n isCommitOrganizationGroupPolicyRequest,\n isOrganizationPrincipalPolicyRequest,\n isPutPrincipalPolicyRequest,\n type OrganizationPrincipalPolicyRequest,\n OrganizationPrincipalPolicyRequestSchema,\n type PrincipalContainerGrantRequest,\n PrincipalContainerGrantRequestSchema,\n type PrincipalMemberEnvelopeRequest,\n type PrincipalProjectionMemberRequest,\n type PrincipalStateEncryptedPayloadRequest,\n type PrincipalStateRequest,\n type PutPrincipalPolicyRequest,\n PutPrincipalPolicyRequestSchema,\n} from \"./principal\";\nexport {\n type PrincipalPolicyRef,\n PrincipalPolicyRefListSchema,\n PrincipalPolicyRefSchema,\n} from \"./principalPolicyRef\";\nexport {\n isRegistrationRequest,\n type RegistrationRequest,\n RegistrationRequestSchema,\n} from \"./registration\";\nexport {\n isRevenueCatTransferWebhookEvent,\n isRevenueCatWebhookRequest,\n type RevenueCatIncomingWebhookEvent,\n RevenueCatIncomingWebhookEventSchema,\n type RevenueCatSubscriberAttribute,\n RevenueCatSubscriberAttributeSchema,\n type RevenueCatTransferWebhookEvent,\n RevenueCatTransferWebhookEventSchema,\n type RevenueCatWebhookEvent,\n RevenueCatWebhookEventSchema,\n type RevenueCatWebhookRequest,\n RevenueCatWebhookRequestSchema,\n} from \"./revenuecatWebhook\";\nexport {\n isStripeCheckoutRequest,\n isStripeCheckoutSessionRequest,\n isStripePlanChangeRequest,\n isStripeReturnUrlRequest,\n type StripeCheckoutRequest,\n StripeCheckoutRequestSchema,\n type StripeCheckoutSessionRequest,\n StripeCheckoutSessionRequestSchema,\n type StripePlanChangeRequest,\n StripePlanChangeRequestSchema,\n type StripeReturnUrlRequest,\n StripeReturnUrlRequestSchema,\n} from \"./stripeCheckout\";\nexport {\n isStripeWebhookRequest,\n type StripeWebhookRequest,\n StripeWebhookRequestSchema,\n} from \"./stripeWebhook\";\n"]}
@@ -1486,6 +1486,21 @@ export declare const OrganizationReadModelQuerySchema: z.ZodType<{
1486
1486
  cursor?: string | undefined;
1487
1487
  }>>;
1488
1488
  export type OrganizationReadModelQuery = z.infer<typeof OrganizationReadModelQuerySchema>;
1489
+ /**
1490
+ * The organization read-model cursor a mutation's caller holds, as the query
1491
+ * of a mutation that may stamp the read model. It stays out of the body, which
1492
+ * a stored receipt binds, so a retry carrying a newer cursor still replays.
1493
+ */
1494
+ export declare const OrganizationReadModelHeldCursorQuerySchema: z.ZodType<{
1495
+ readModelCursor?: string | undefined;
1496
+ }, {
1497
+ readModelCursor?: string | undefined;
1498
+ }, z.core.$ZodTypeInternals<{
1499
+ readModelCursor?: string | undefined;
1500
+ }, {
1501
+ readModelCursor?: string | undefined;
1502
+ }>>;
1503
+ export type OrganizationReadModelHeldCursorQuery = z.infer<typeof OrganizationReadModelHeldCursorQuerySchema>;
1489
1504
  export declare const UpdateOrganizationRosterEntryRequestSchema: z.ZodType<{
1490
1505
  profileDocumentId: string | null;
1491
1506
  }, {
@@ -16,6 +16,14 @@ export const DeleteOrganizationGroupRequestSchema = loosePlainObject({
16
16
  export const OrganizationReadModelQuerySchema = loosePlainObject({
17
17
  cursor: z.string().optional(),
18
18
  });
19
+ /**
20
+ * The organization read-model cursor a mutation's caller holds, as the query
21
+ * of a mutation that may stamp the read model. It stays out of the body, which
22
+ * a stored receipt binds, so a retry carrying a newer cursor still replays.
23
+ */
24
+ export const OrganizationReadModelHeldCursorQuerySchema = loosePlainObject({
25
+ readModelCursor: z.string().optional(),
26
+ });
19
27
  export const UpdateOrganizationRosterEntryRequestSchema = loosePlainObject({
20
28
  profileDocumentId: uuidV4StringSchema.nullable(),
21
29
  });
@@ -1 +1 @@
1
- {"version":3,"file":"organization.js","sourceRoot":"","sources":["organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EACL,wCAAwC,EACxC,+BAA+B,GAChC,MAAM,aAAa,CAAC;AAErB,MAAM,mCAAmC,GAAG;IAC1C,OAAO,EAAE,kBAAkB;IAC3B,kBAAkB,EAAE,+BAA+B;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAChE,mCAAmC,CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3E,GAAG,mCAAmC;IACtC,kBAAkB,EAAE,wCAAwC;CAC7D,CAAC,CAAC;AA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D,KAAc;IAEd,OAAO,sCAAsC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACzE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, uuidV4StringSchema } from \"../schema\";\nimport {\n OrganizationPrincipalPolicyRequestSchema,\n PutPrincipalPolicyRequestSchema,\n} from \"./principal\";\n\nconst CreateOrganizationGroupRequestShape = {\n groupId: uuidV4StringSchema,\n initialGroupPolicy: PutPrincipalPolicyRequestSchema,\n};\n\nexport const CreateOrganizationGroupRequestSchema = z.strictObject(\n CreateOrganizationGroupRequestShape,\n);\n\nexport const CreateOrganizationGroupWithPolicyRequestSchema = z.strictObject({\n ...CreateOrganizationGroupRequestShape,\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type CreateOrganizationGroupRequest = z.infer<\n typeof CreateOrganizationGroupRequestSchema\n>;\n\nexport type CreateOrganizationGroupWithPolicyRequest = z.infer<\n typeof CreateOrganizationGroupWithPolicyRequestSchema\n>;\n\nexport const DeleteOrganizationGroupRequestSchema = loosePlainObject({\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type DeleteOrganizationGroupRequest = z.infer<\n typeof DeleteOrganizationGroupRequestSchema\n>;\n\nexport const OrganizationReadModelQuerySchema = loosePlainObject({\n cursor: z.string().optional(),\n});\n\nexport type OrganizationReadModelQuery = z.infer<\n typeof OrganizationReadModelQuerySchema\n>;\n\nexport const UpdateOrganizationRosterEntryRequestSchema = loosePlainObject({\n profileDocumentId: uuidV4StringSchema.nullable(),\n});\n\nexport type UpdateOrganizationRosterEntryRequest = z.infer<\n typeof UpdateOrganizationRosterEntryRequestSchema\n>;\n\n/** The session user's own choice for one organization they belong to. */\nexport const UpdateOrganizationMembershipRequestSchema = z.strictObject({\n syncPaused: z.boolean(),\n});\n\nexport type UpdateOrganizationMembershipRequest = z.infer<\n typeof UpdateOrganizationMembershipRequestSchema\n>;\n\nexport const UpdateOrganizationProfileRequestSchema = loosePlainObject({\n profileDocumentId: uuidV4StringSchema.nullable(),\n});\n\nexport type UpdateOrganizationProfileRequest = z.infer<\n typeof UpdateOrganizationProfileRequestSchema\n>;\n\nexport function isCreateOrganizationGroupRequest(\n value: unknown,\n): value is CreateOrganizationGroupRequest {\n return CreateOrganizationGroupRequestSchema.safeParse(value).success;\n}\n\nexport function isCreateOrganizationGroupWithPolicyRequest(\n value: unknown,\n): value is CreateOrganizationGroupWithPolicyRequest {\n return CreateOrganizationGroupWithPolicyRequestSchema.safeParse(value)\n .success;\n}\n\nexport function isDeleteOrganizationGroupRequest(\n value: unknown,\n): value is DeleteOrganizationGroupRequest {\n return DeleteOrganizationGroupRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationRosterEntryRequest(\n value: unknown,\n): value is UpdateOrganizationRosterEntryRequest {\n return UpdateOrganizationRosterEntryRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationMembershipRequest(\n value: unknown,\n): value is UpdateOrganizationMembershipRequest {\n return UpdateOrganizationMembershipRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationProfileRequest(\n value: unknown,\n): value is UpdateOrganizationProfileRequest {\n return UpdateOrganizationProfileRequestSchema.safeParse(value).success;\n}\n"]}
1
+ {"version":3,"file":"organization.js","sourceRoot":"","sources":["organization.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAAC;AACjE,OAAO,EACL,wCAAwC,EACxC,+BAA+B,GAChC,MAAM,aAAa,CAAC;AAErB,MAAM,mCAAmC,GAAG;IAC1C,OAAO,EAAE,kBAAkB;IAC3B,kBAAkB,EAAE,+BAA+B;CACpD,CAAC;AAEF,MAAM,CAAC,MAAM,oCAAoC,GAAG,CAAC,CAAC,YAAY,CAChE,mCAAmC,CACpC,CAAC;AAEF,MAAM,CAAC,MAAM,8CAA8C,GA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AsC,CACpD,KAAc;IAEd,OAAO,0CAA0C,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC;AAED,MAAM,UAAU,qCAAqC,CACnD,KAAc;IAEd,OAAO,yCAAyC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC5E,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,KAAc;IAEd,OAAO,sCAAsC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACzE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { loosePlainObject, uuidV4StringSchema } from \"../schema\";\nimport {\n OrganizationPrincipalPolicyRequestSchema,\n PutPrincipalPolicyRequestSchema,\n} from \"./principal\";\n\nconst CreateOrganizationGroupRequestShape = {\n groupId: uuidV4StringSchema,\n initialGroupPolicy: PutPrincipalPolicyRequestSchema,\n};\n\nexport const CreateOrganizationGroupRequestSchema = z.strictObject(\n CreateOrganizationGroupRequestShape,\n);\n\nexport const CreateOrganizationGroupWithPolicyRequestSchema = z.strictObject({\n ...CreateOrganizationGroupRequestShape,\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type CreateOrganizationGroupRequest = z.infer<\n typeof CreateOrganizationGroupRequestSchema\n>;\n\nexport type CreateOrganizationGroupWithPolicyRequest = z.infer<\n typeof CreateOrganizationGroupWithPolicyRequestSchema\n>;\n\nexport const DeleteOrganizationGroupRequestSchema = loosePlainObject({\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type DeleteOrganizationGroupRequest = z.infer<\n typeof DeleteOrganizationGroupRequestSchema\n>;\n\nexport const OrganizationReadModelQuerySchema = loosePlainObject({\n cursor: z.string().optional(),\n});\n\nexport type OrganizationReadModelQuery = z.infer<\n typeof OrganizationReadModelQuerySchema\n>;\n\n/**\n * The organization read-model cursor a mutation's caller holds, as the query\n * of a mutation that may stamp the read model. It stays out of the body, which\n * a stored receipt binds, so a retry carrying a newer cursor still replays.\n */\nexport const OrganizationReadModelHeldCursorQuerySchema = loosePlainObject({\n readModelCursor: z.string().optional(),\n});\n\nexport type OrganizationReadModelHeldCursorQuery = z.infer<\n typeof OrganizationReadModelHeldCursorQuerySchema\n>;\n\nexport const UpdateOrganizationRosterEntryRequestSchema = loosePlainObject({\n profileDocumentId: uuidV4StringSchema.nullable(),\n});\n\nexport type UpdateOrganizationRosterEntryRequest = z.infer<\n typeof UpdateOrganizationRosterEntryRequestSchema\n>;\n\n/** The session user's own choice for one organization they belong to. */\nexport const UpdateOrganizationMembershipRequestSchema = z.strictObject({\n syncPaused: z.boolean(),\n});\n\nexport type UpdateOrganizationMembershipRequest = z.infer<\n typeof UpdateOrganizationMembershipRequestSchema\n>;\n\nexport const UpdateOrganizationProfileRequestSchema = loosePlainObject({\n profileDocumentId: uuidV4StringSchema.nullable(),\n});\n\nexport type UpdateOrganizationProfileRequest = z.infer<\n typeof UpdateOrganizationProfileRequestSchema\n>;\n\nexport function isCreateOrganizationGroupRequest(\n value: unknown,\n): value is CreateOrganizationGroupRequest {\n return CreateOrganizationGroupRequestSchema.safeParse(value).success;\n}\n\nexport function isCreateOrganizationGroupWithPolicyRequest(\n value: unknown,\n): value is CreateOrganizationGroupWithPolicyRequest {\n return CreateOrganizationGroupWithPolicyRequestSchema.safeParse(value)\n .success;\n}\n\nexport function isDeleteOrganizationGroupRequest(\n value: unknown,\n): value is DeleteOrganizationGroupRequest {\n return DeleteOrganizationGroupRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationRosterEntryRequest(\n value: unknown,\n): value is UpdateOrganizationRosterEntryRequest {\n return UpdateOrganizationRosterEntryRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationMembershipRequest(\n value: unknown,\n): value is UpdateOrganizationMembershipRequest {\n return UpdateOrganizationMembershipRequestSchema.safeParse(value).success;\n}\n\nexport function isUpdateOrganizationProfileRequest(\n value: unknown,\n): value is UpdateOrganizationProfileRequest {\n return UpdateOrganizationProfileRequestSchema.safeParse(value).success;\n}\n"]}
@@ -1,8 +1,9 @@
1
- export { type CreateOrganizationGroupResponse, CreateOrganizationGroupResponseSchema, type DeleteOrganizationGroupResponse, DeleteOrganizationGroupResponseSchema, isCreateOrganizationGroupResponse, isDeleteOrganizationGroupResponse, isListOrganizationGroupsResponse, isOrganizationContainerGrantResponse, isOrganizationContainerGrantSubjectType, isOrganizationContainerGrantsResponse, isOrganizationDirectoryResponse, isOrganizationDirectoryUserResponse, isOrganizationGroupContainerAccessLevel, isOrganizationGroupContainerResponse, isOrganizationGroupContainersResponse, isOrganizationGroupCurrentStateResponse, isOrganizationGroupMemberResponse, isOrganizationGroupMembersResponse, isOrganizationGroupSummaryResponse, isOrganizationProfileResponse, isOrganizationUserDetailGrantsResponse, isOrganizationUserDetailResponse, type ListOrganizationGroupsResponse, ListOrganizationGroupsResponseSchema, type OrganizationContainerGrantResponse, OrganizationContainerGrantResponseSchema, type OrganizationContainerGrantSubjectType, type OrganizationContainerGrantsResponse, OrganizationContainerGrantsResponseSchema, type OrganizationDirectoryResponse, OrganizationDirectoryResponseSchema, type OrganizationDirectoryUserResponse, OrganizationDirectoryUserResponseSchema, type OrganizationGroupContainerAccessLevel, type OrganizationGroupContainerResponse, OrganizationGroupContainerResponseSchema, type OrganizationGroupContainersResponse, OrganizationGroupContainersResponseSchema, type OrganizationGroupCurrentStateResponse, OrganizationGroupCurrentStateResponseSchema, type OrganizationGroupMemberResponse, OrganizationGroupMemberResponseSchema, type OrganizationGroupMembersResponse, OrganizationGroupMembersResponseSchema, type OrganizationGroupSummaryResponse, OrganizationGroupSummaryResponseSchema, type OrganizationProfileResponse, OrganizationProfileResponseSchema, type OrganizationRole, type OrganizationRosterStatus, type OrganizationUserDetailGrantsResponse, OrganizationUserDetailGrantsResponseSchema, type OrganizationUserDetailResponse, OrganizationUserDetailResponseSchema, } from "../organization.js";
1
+ export { type CommitOrganizationGroupPolicyResponse, CommitOrganizationGroupPolicyResponseSchema, type ContainerShareResponse, ContainerShareResponseSchema, type CreateOrganizationGroupResponse, CreateOrganizationGroupResponseSchema, committedReadModelDelta, isCommitOrganizationGroupPolicyResponse, isContainerShareResponse, isCreateOrganizationGroupResponse, } from "../committedReadModel.js";
2
+ export { type DeleteOrganizationGroupResponse, DeleteOrganizationGroupResponseSchema, isDeleteOrganizationGroupResponse, isListOrganizationGroupsResponse, isOrganizationContainerGrantResponse, isOrganizationContainerGrantSubjectType, isOrganizationContainerGrantsResponse, isOrganizationDirectoryResponse, isOrganizationDirectoryUserResponse, isOrganizationGroupContainerAccessLevel, isOrganizationGroupContainerResponse, isOrganizationGroupContainersResponse, isOrganizationGroupCurrentStateResponse, isOrganizationGroupMemberResponse, isOrganizationGroupMembersResponse, isOrganizationGroupSummaryResponse, isOrganizationProfileResponse, isOrganizationUserDetailGrantsResponse, isOrganizationUserDetailResponse, type ListOrganizationGroupsResponse, ListOrganizationGroupsResponseSchema, type OrganizationContainerGrantResponse, OrganizationContainerGrantResponseSchema, type OrganizationContainerGrantSubjectType, type OrganizationContainerGrantsResponse, OrganizationContainerGrantsResponseSchema, type OrganizationDirectoryResponse, OrganizationDirectoryResponseSchema, type OrganizationDirectoryUserResponse, OrganizationDirectoryUserResponseSchema, type OrganizationGroupContainerAccessLevel, type OrganizationGroupContainerResponse, OrganizationGroupContainerResponseSchema, type OrganizationGroupContainersResponse, OrganizationGroupContainersResponseSchema, type OrganizationGroupCurrentStateResponse, OrganizationGroupCurrentStateResponseSchema, type OrganizationGroupMemberResponse, OrganizationGroupMemberResponseSchema, type OrganizationGroupMembersResponse, OrganizationGroupMembersResponseSchema, type OrganizationGroupSummaryResponse, OrganizationGroupSummaryResponseSchema, type OrganizationProfileResponse, OrganizationProfileResponseSchema, type OrganizationRole, type OrganizationRosterStatus, type OrganizationUserDetailGrantsResponse, OrganizationUserDetailGrantsResponseSchema, type OrganizationUserDetailResponse, OrganizationUserDetailResponseSchema, } from "../organization.js";
2
3
  export { isOrganizationDataUsageResponse, ORGANIZATION_DOCUMENT_USAGE_CATEGORIES, type OrganizationBlobDataUsageResponse, type OrganizationDataUsageResponse, OrganizationDataUsageResponseSchema, type OrganizationDocumentDataUsageResponse, type OrganizationDocumentUsageCategory, type OrganizationDocumentUsageCategoryBreakdown, } from "../organizationDataUsage.js";
3
4
  export { isOrganizationMembershipResponse, isOrganizationMembershipsResponse, type OrganizationMembershipResponse, OrganizationMembershipResponseSchema, type OrganizationMembershipsResponse, OrganizationMembershipsResponseSchema, } from "../organizationMembership.js";
4
5
  export { type OrganizationPolicyHistoryResponse, OrganizationPolicyHistoryResponseSchema, PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE, } from "../organizationPolicyHistory.js";
5
6
  export { ORGANIZATION_PRESENTATION_ERROR_CODES, type OrganizationPresentationErrorCode, OrganizationPresentationErrorCodeSchema, type OrganizationPresentationFailureResponse, OrganizationPresentationFailureResponseSchema, } from "../organizationPresentationError.js";
6
7
  export { type CreateOrganizationResponse, CreateOrganizationResponseSchema, isCreateOrganizationResponse, isOrganizationProvisioningResponse, type OrganizationProvisioningResponse, OrganizationProvisioningResponseSchema, } from "../organizationProvisioning.js";
7
- export { isOrganizationReadModelResponse, type OrganizationReadModelDeltaResponse, type OrganizationReadModelDirectoryResponse, type OrganizationReadModelGrantsResponse, type OrganizationReadModelGroupMemberResponse, type OrganizationReadModelGroupMembershipResponse, type OrganizationReadModelGroupMembershipsResponse, type OrganizationReadModelOrganizationPolicyResponse, type OrganizationReadModelResponse, OrganizationReadModelResponseSchema, type OrganizationReadModelSnapshotResponse, } from "../organizationReadModel.js";
8
+ export { isOrganizationReadModelResponse, type OrganizationReadModelDeltaResponse, OrganizationReadModelDeltaSchema, type OrganizationReadModelDirectoryResponse, type OrganizationReadModelGrantsResponse, type OrganizationReadModelGroupMemberResponse, type OrganizationReadModelGroupMembershipResponse, type OrganizationReadModelGroupMembershipsResponse, type OrganizationReadModelOrganizationPolicyResponse, type OrganizationReadModelResponse, OrganizationReadModelResponseSchema, type OrganizationReadModelSnapshotResponse, } from "../organizationReadModel.js";
8
9
  export { ORGANIZATION_READ_MODEL_ERROR_CODES, type OrganizationReadModelErrorCode, OrganizationReadModelErrorCodeSchema, type OrganizationReadModelFailureResponse, OrganizationReadModelFailureResponseSchema, } from "../organizationReadModelError.js";
@@ -1,9 +1,10 @@
1
- export { CreateOrganizationGroupResponseSchema, DeleteOrganizationGroupResponseSchema, isCreateOrganizationGroupResponse, isDeleteOrganizationGroupResponse, isListOrganizationGroupsResponse, isOrganizationContainerGrantResponse, isOrganizationContainerGrantSubjectType, isOrganizationContainerGrantsResponse, isOrganizationDirectoryResponse, isOrganizationDirectoryUserResponse, isOrganizationGroupContainerAccessLevel, isOrganizationGroupContainerResponse, isOrganizationGroupContainersResponse, isOrganizationGroupCurrentStateResponse, isOrganizationGroupMemberResponse, isOrganizationGroupMembersResponse, isOrganizationGroupSummaryResponse, isOrganizationProfileResponse, isOrganizationUserDetailGrantsResponse, isOrganizationUserDetailResponse, ListOrganizationGroupsResponseSchema, OrganizationContainerGrantResponseSchema, OrganizationContainerGrantsResponseSchema, OrganizationDirectoryResponseSchema, OrganizationDirectoryUserResponseSchema, OrganizationGroupContainerResponseSchema, OrganizationGroupContainersResponseSchema, OrganizationGroupCurrentStateResponseSchema, OrganizationGroupMemberResponseSchema, OrganizationGroupMembersResponseSchema, OrganizationGroupSummaryResponseSchema, OrganizationProfileResponseSchema, OrganizationUserDetailGrantsResponseSchema, OrganizationUserDetailResponseSchema, } from "../organization.js";
1
+ export { CommitOrganizationGroupPolicyResponseSchema, ContainerShareResponseSchema, CreateOrganizationGroupResponseSchema, committedReadModelDelta, isCommitOrganizationGroupPolicyResponse, isContainerShareResponse, isCreateOrganizationGroupResponse, } from "../committedReadModel.js";
2
+ export { DeleteOrganizationGroupResponseSchema, isDeleteOrganizationGroupResponse, isListOrganizationGroupsResponse, isOrganizationContainerGrantResponse, isOrganizationContainerGrantSubjectType, isOrganizationContainerGrantsResponse, isOrganizationDirectoryResponse, isOrganizationDirectoryUserResponse, isOrganizationGroupContainerAccessLevel, isOrganizationGroupContainerResponse, isOrganizationGroupContainersResponse, isOrganizationGroupCurrentStateResponse, isOrganizationGroupMemberResponse, isOrganizationGroupMembersResponse, isOrganizationGroupSummaryResponse, isOrganizationProfileResponse, isOrganizationUserDetailGrantsResponse, isOrganizationUserDetailResponse, ListOrganizationGroupsResponseSchema, OrganizationContainerGrantResponseSchema, OrganizationContainerGrantsResponseSchema, OrganizationDirectoryResponseSchema, OrganizationDirectoryUserResponseSchema, OrganizationGroupContainerResponseSchema, OrganizationGroupContainersResponseSchema, OrganizationGroupCurrentStateResponseSchema, OrganizationGroupMemberResponseSchema, OrganizationGroupMembersResponseSchema, OrganizationGroupSummaryResponseSchema, OrganizationProfileResponseSchema, OrganizationUserDetailGrantsResponseSchema, OrganizationUserDetailResponseSchema, } from "../organization.js";
2
3
  export { isOrganizationDataUsageResponse, ORGANIZATION_DOCUMENT_USAGE_CATEGORIES, OrganizationDataUsageResponseSchema, } from "../organizationDataUsage.js";
3
4
  export { isOrganizationMembershipResponse, isOrganizationMembershipsResponse, OrganizationMembershipResponseSchema, OrganizationMembershipsResponseSchema, } from "../organizationMembership.js";
4
5
  export { OrganizationPolicyHistoryResponseSchema, PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE, } from "../organizationPolicyHistory.js";
5
6
  export { ORGANIZATION_PRESENTATION_ERROR_CODES, OrganizationPresentationErrorCodeSchema, OrganizationPresentationFailureResponseSchema, } from "../organizationPresentationError.js";
6
7
  export { CreateOrganizationResponseSchema, isCreateOrganizationResponse, isOrganizationProvisioningResponse, OrganizationProvisioningResponseSchema, } from "../organizationProvisioning.js";
7
- export { isOrganizationReadModelResponse, OrganizationReadModelResponseSchema, } from "../organizationReadModel.js";
8
+ export { isOrganizationReadModelResponse, OrganizationReadModelDeltaSchema, OrganizationReadModelResponseSchema, } from "../organizationReadModel.js";
8
9
  export { ORGANIZATION_READ_MODEL_ERROR_CODES, OrganizationReadModelErrorCodeSchema, OrganizationReadModelFailureResponseSchema, } from "../organizationReadModelError.js";
9
10
  //# sourceMappingURL=organizations.js.map