@tearleads/client-sdk 0.1.248 → 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.
- package/client/organizations/index.js +5 -3
- package/client/organizations/index.js.map +1 -1
- package/client/organizations/organizationGroupPresentation.d.ts +1 -1
- package/client/organizations/organizationGroupPresentation.js.map +1 -1
- package/client/organizations/organizationLeaveRequestVerifier.js +21 -0
- package/client/organizations/organizationLeaveRequestVerifier.js.map +1 -0
- package/client/organizations/{organizationReadModels.d.ts → organizationReadModelCoordinator.d.ts} +18 -16
- package/client/organizations/organizationReadModelCoordinator.js +2 -0
- package/client/organizations/organizationReadModelCoordinator.js.map +1 -0
- package/client/organizations/organizationReadModelPresentation.js +51 -0
- package/client/organizations/organizationReadModelPresentation.js.map +1 -0
- package/client/organizations/organizationReadModelScopes.js +37 -0
- package/client/organizations/organizationReadModelScopes.js.map +1 -0
- package/client/organizations/organizationReadModels.js +131 -88
- package/client/organizations/organizationReadModels.js.map +1 -1
- package/client/organizations/organizationsTypes.d.ts +13 -5
- package/client/organizations/organizationsTypes.js.map +1 -1
- package/client/organizations/principalMutations.d.ts +18 -2
- package/client/organizations/principalMutations.js +29 -15
- package/client/organizations/principalMutations.js.map +1 -1
- package/client/runtime/principalMutationApi.d.ts +2 -0
- package/client/runtime/principalMutationApi.js +2 -0
- package/client/runtime/principalMutationApi.js.map +1 -1
- package/client/runtime/principalMutationDispatch.js +47 -10
- package/client/runtime/principalMutationDispatch.js.map +1 -1
- package/client/runtime/workflowRuntime.js +5 -4
- package/client/runtime/workflowRuntime.js.map +1 -1
- package/data/containers/shared/mutationRequestOptions.d.ts +2 -0
- package/data/containers/shared/mutationRequestOptions.js.map +1 -1
- package/data/containers/shared/types.d.ts +12 -2
- package/data/containers/shared/types.js.map +1 -1
- package/data/persistence/organizations/organizationReadModelRepository.js +20 -2
- package/data/persistence/organizations/organizationReadModelRepository.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +4 -1
- package/internal/api-client/client/containerMutations.d.ts +2 -2
- package/internal/api-client/client/containerMutations.js +2 -1
- package/internal/api-client/client/containerMutations.js.map +1 -1
- package/internal/api-client/client/principalPolicies.d.ts +3 -0
- package/internal/api-client/principalPolicyRequests.d.ts +2 -0
- package/internal/api-client/principalPolicyRequests.js +6 -4
- package/internal/api-client/principalPolicyRequests.js.map +1 -1
- package/internal/api-client/routes/containers/mutations.js +3 -3
- package/internal/api-client/routes/containers/mutations.js.map +1 -1
- package/internal/api-client/routes/organizations/createGroup.js +3 -5
- package/internal/api-client/routes/organizations/createGroup.js.map +1 -1
- package/internal/api-client/routes/principals/policy.js +2 -5
- package/internal/api-client/routes/principals/policy.js.map +1 -1
- package/internal/api-client/types.d.ts +6 -0
- package/internal/api-client/types.js.map +1 -1
- package/internal/validators/operation/containerMutations.d.ts +20 -3
- package/internal/validators/operation/containerMutations.js +18 -20
- package/internal/validators/operation/containerMutations.js.map +1 -1
- package/internal/validators/operation/index.d.ts +1 -1
- package/internal/validators/operation/index.js +1 -1
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/organizations.d.ts +17 -1
- package/internal/validators/operation/organizations.js +4 -2
- package/internal/validators/operation/organizations.js.map +1 -1
- package/internal/validators/operation/principals.d.ts +17 -1
- package/internal/validators/operation/principals.js +5 -2
- package/internal/validators/operation/principals.js.map +1 -1
- package/internal/validators/request/index.d.ts +1 -1
- package/internal/validators/request/index.js +1 -1
- package/internal/validators/request/index.js.map +1 -1
- package/internal/validators/request/organization.d.ts +15 -0
- package/internal/validators/request/organization.js +8 -0
- package/internal/validators/request/organization.js.map +1 -1
- package/internal/validators/response/areas/organizations.d.ts +3 -2
- package/internal/validators/response/areas/organizations.js +3 -2
- package/internal/validators/response/areas/organizations.js.map +1 -1
- package/internal/validators/response/areas/principals.d.ts +1 -1
- package/internal/validators/response/areas/principals.js +1 -1
- package/internal/validators/response/areas/principals.js.map +1 -1
- package/internal/validators/response/committedReadModel.d.ts +697 -0
- package/internal/validators/response/committedReadModel.js +52 -0
- package/internal/validators/response/committedReadModel.js.map +1 -0
- package/internal/validators/response/container.d.ts +52 -0
- package/internal/validators/response/container.js +3 -3
- package/internal/validators/response/container.js.map +1 -1
- package/internal/validators/response/organization.d.ts +0 -191
- package/internal/validators/response/organization.js +0 -7
- package/internal/validators/response/organization.js.map +1 -1
- package/internal/validators/response/organizationReadModel.d.ts +167 -0
- package/internal/validators/response/organizationReadModel.js +5 -0
- package/internal/validators/response/organizationReadModel.js.map +1 -1
- package/internal/validators/response/principal.d.ts +0 -403
- package/internal/validators/response/principal.js +0 -8
- package/internal/validators/response/principal.js.map +1 -1
- package/package.json +1 -1
- package/workflows/container-contents/container-state/organizationHost.d.ts +9 -0
- package/workflows/container-contents/container-state/organizationHost.js.map +1 -1
- package/workflows/container-contents/container-state/remote.js +6 -0
- package/workflows/container-contents/container-state/remote.js.map +1 -1
- package/workflows/containers/child/share/index.d.ts +4 -2
- package/workflows/containers/child/share/index.js +37 -20
- package/workflows/containers/child/share/index.js.map +1 -1
- package/workflows/organizations/containerContentsHost.js +20 -1
- package/workflows/organizations/containerContentsHost.js.map +1 -1
- package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js +5 -1
- package/workflows/organizations/groupPolicy/commitCurrentGroupPolicyMutation.js.map +1 -1
- package/workflows/organizations/groups/createCurrentOrganizationGroup.js +8 -1
- package/workflows/organizations/groups/createCurrentOrganizationGroup.js.map +1 -1
- package/workflows/organizations/index.d.ts +1 -0
- package/workflows/organizations/index.js +1 -0
- package/workflows/organizations/index.js.map +1 -1
- package/workflows/organizations/readModel/committedReadModel.d.ts +66 -0
- package/workflows/organizations/readModel/committedReadModel.js +150 -0
- package/workflows/organizations/readModel/committedReadModel.js.map +1 -0
- package/workflows/organizations/readModel/readModelProjection.d.ts +15 -2
- package/workflows/organizations/readModel/readModelProjection.js +26 -4
- package/workflows/organizations/readModel/readModelProjection.js.map +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-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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,CA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ent":["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 {
|
|
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,c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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,EAC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C;IAC/C,IAAI,EAAE,gEAAgE;IACtE,KAAK,EAAE,0CAA0C;IACjD,oBAAoB,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"]}
|
|
@@ -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,iCA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pC,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 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,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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 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;AAUH,MAAM,CAAC,MAAM,oCAAoC,GAAG,gBAAgB,CAAC;IACnE,kBAAkB,EAAE,wCAAwC;CAC7D,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gBAAgB,CAAC;IAC/D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;IACzE,iBAAiB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAMH,yEAAyE;AACzE,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,YAAY,CAAC;IACtE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,iBAAiB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAMH,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAO,oCAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,KAAc;IAEd,OAAO,8CAA8C,CAAC,SAAS,CAAC,KAAK,CAAC;SACnE,OAAO,CAAC;AACb,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAO,oCAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,sCAAsC,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\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,GAAG,CAAC,CAAC,YAAY,CAAC;IAC3E,GAAG,mCAAmC;IACtC,kBAAkB,EAAE,wCAAwC;CAC7D,CAAC,CAAC;AAUH,MAAM,CAAC,MAAM,oCAAoC,GAAG,gBAAgB,CAAC;IACnE,kBAAkB,EAAE,wCAAwC;CAC7D,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,gCAAgC,GAAG,gBAAgB,CAAC;IAC/D,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC9B,CAAC,CAAC;AAMH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;IACzE,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACvC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;IACzE,iBAAiB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAMH,yEAAyE;AACzE,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,YAAY,CAAC;IACtE,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;CACxB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,iBAAiB,EAAE,kBAAkB,CAAC,QAAQ,EAAE;CACjD,CAAC,CAAC;AAMH,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAO,oCAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,0CAA0C,CACxD,KAAc;IAEd,OAAO,8CAA8C,CAAC,SAAS,CAAC,KAAK,CAAC;SACnE,OAAO,CAAC;AACb,CAAC;AAED,MAAM,UAAU,gCAAgC,CAC9C,KAAc;IAEd,OAAO,oCAAoC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACvE,CAAC;AAED,MAAM,UAAU,sCAAsC,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
|
|
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 {
|
|
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
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,
|
|
1
|
+
{"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAEL,2CAA2C,EAE3C,4BAA4B,EAE5B,qCAAqC,EACrC,uBAAuB,EACvB,uCAAuC,EACvC,wBAAwB,EACxB,iCAAiC,GAClC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,qCAAqC,EACrC,iCAAiC,EACjC,gCAAgC,EAChC,oCAAoC,EACpC,uCAAuC,EACvC,qCAAqC,EACrC,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,oCAAoC,EACpC,qCAAqC,EACrC,uCAAuC,EACvC,iCAAiC,EACjC,kCAAkC,EAClC,kCAAkC,EAClC,6BAA6B,EAC7B,sCAAsC,EACtC,gCAAgC,EAEhC,oCAAoC,EAEpC,wCAAwC,EAGxC,yCAAyC,EAEzC,mCAAmC,EAEnC,uCAAuC,EAGvC,wCAAwC,EAExC,yCAAyC,EAEzC,2CAA2C,EAE3C,qCAAqC,EAErC,sCAAsC,EAEtC,sCAAsC,EAEtC,iCAAiC,EAIjC,0CAA0C,EAE1C,oCAAoC,GACrC,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,+BAA+B,EAC/B,sCAAsC,EAGtC,mCAAmC,GAIpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,gCAAgC,EAChC,iCAAiC,EAEjC,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAEL,uCAAuC,EACvC,mCAAmC,GACpC,MAAM,8BAA8B,CAAC;AACtC,OAAO,EACL,qCAAqC,EAErC,uCAAuC,EAEvC,6CAA6C,GAC9C,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAEL,gCAAgC,EAChC,4BAA4B,EAC5B,kCAAkC,EAElC,sCAAsC,GACvC,MAAM,6BAA6B,CAAC;AACrC,OAAO,EACL,+BAA+B,EAE/B,gCAAgC,EAQhC,mCAAmC,GAEpC,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACL,mCAAmC,EAEnC,oCAAoC,EAEpC,0CAA0C,GAC3C,MAAM,+BAA+B,CAAC","sourcesContent":["export {\n type CommitOrganizationGroupPolicyResponse,\n CommitOrganizationGroupPolicyResponseSchema,\n type ContainerShareResponse,\n ContainerShareResponseSchema,\n type CreateOrganizationGroupResponse,\n CreateOrganizationGroupResponseSchema,\n committedReadModelDelta,\n isCommitOrganizationGroupPolicyResponse,\n isContainerShareResponse,\n isCreateOrganizationGroupResponse,\n} from \"../committedReadModel\";\nexport {\n type DeleteOrganizationGroupResponse,\n DeleteOrganizationGroupResponseSchema,\n isDeleteOrganizationGroupResponse,\n isListOrganizationGroupsResponse,\n isOrganizationContainerGrantResponse,\n isOrganizationContainerGrantSubjectType,\n isOrganizationContainerGrantsResponse,\n isOrganizationDirectoryResponse,\n isOrganizationDirectoryUserResponse,\n isOrganizationGroupContainerAccessLevel,\n isOrganizationGroupContainerResponse,\n isOrganizationGroupContainersResponse,\n isOrganizationGroupCurrentStateResponse,\n isOrganizationGroupMemberResponse,\n isOrganizationGroupMembersResponse,\n isOrganizationGroupSummaryResponse,\n isOrganizationProfileResponse,\n isOrganizationUserDetailGrantsResponse,\n isOrganizationUserDetailResponse,\n type ListOrganizationGroupsResponse,\n ListOrganizationGroupsResponseSchema,\n type OrganizationContainerGrantResponse,\n OrganizationContainerGrantResponseSchema,\n type OrganizationContainerGrantSubjectType,\n type OrganizationContainerGrantsResponse,\n OrganizationContainerGrantsResponseSchema,\n type OrganizationDirectoryResponse,\n OrganizationDirectoryResponseSchema,\n type OrganizationDirectoryUserResponse,\n OrganizationDirectoryUserResponseSchema,\n type OrganizationGroupContainerAccessLevel,\n type OrganizationGroupContainerResponse,\n OrganizationGroupContainerResponseSchema,\n type OrganizationGroupContainersResponse,\n OrganizationGroupContainersResponseSchema,\n type OrganizationGroupCurrentStateResponse,\n OrganizationGroupCurrentStateResponseSchema,\n type OrganizationGroupMemberResponse,\n OrganizationGroupMemberResponseSchema,\n type OrganizationGroupMembersResponse,\n OrganizationGroupMembersResponseSchema,\n type OrganizationGroupSummaryResponse,\n OrganizationGroupSummaryResponseSchema,\n type OrganizationProfileResponse,\n OrganizationProfileResponseSchema,\n type OrganizationRole,\n type OrganizationRosterStatus,\n type OrganizationUserDetailGrantsResponse,\n OrganizationUserDetailGrantsResponseSchema,\n type OrganizationUserDetailResponse,\n OrganizationUserDetailResponseSchema,\n} from \"../organization\";\nexport {\n isOrganizationDataUsageResponse,\n ORGANIZATION_DOCUMENT_USAGE_CATEGORIES,\n type OrganizationBlobDataUsageResponse,\n type OrganizationDataUsageResponse,\n OrganizationDataUsageResponseSchema,\n type OrganizationDocumentDataUsageResponse,\n type OrganizationDocumentUsageCategory,\n type OrganizationDocumentUsageCategoryBreakdown,\n} from \"../organizationDataUsage\";\nexport {\n isOrganizationMembershipResponse,\n isOrganizationMembershipsResponse,\n type OrganizationMembershipResponse,\n OrganizationMembershipResponseSchema,\n type OrganizationMembershipsResponse,\n OrganizationMembershipsResponseSchema,\n} from \"../organizationMembership\";\nexport {\n type OrganizationPolicyHistoryResponse,\n OrganizationPolicyHistoryResponseSchema,\n PRINCIPAL_DISPLAY_HISTORY_PAGE_SIZE,\n} from \"../organizationPolicyHistory\";\nexport {\n ORGANIZATION_PRESENTATION_ERROR_CODES,\n type OrganizationPresentationErrorCode,\n OrganizationPresentationErrorCodeSchema,\n type OrganizationPresentationFailureResponse,\n OrganizationPresentationFailureResponseSchema,\n} from \"../organizationPresentationError\";\nexport {\n type CreateOrganizationResponse,\n CreateOrganizationResponseSchema,\n isCreateOrganizationResponse,\n isOrganizationProvisioningResponse,\n type OrganizationProvisioningResponse,\n OrganizationProvisioningResponseSchema,\n} from \"../organizationProvisioning\";\nexport {\n isOrganizationReadModelResponse,\n type OrganizationReadModelDeltaResponse,\n OrganizationReadModelDeltaSchema,\n type OrganizationReadModelDirectoryResponse,\n type OrganizationReadModelGrantsResponse,\n type OrganizationReadModelGroupMemberResponse,\n type OrganizationReadModelGroupMembershipResponse,\n type OrganizationReadModelGroupMembershipsResponse,\n type OrganizationReadModelOrganizationPolicyResponse,\n type OrganizationReadModelResponse,\n OrganizationReadModelResponseSchema,\n type OrganizationReadModelSnapshotResponse,\n} from \"../organizationReadModel\";\nexport {\n ORGANIZATION_READ_MODEL_ERROR_CODES,\n type OrganizationReadModelErrorCode,\n OrganizationReadModelErrorCodeSchema,\n type OrganizationReadModelFailureResponse,\n OrganizationReadModelFailureResponseSchema,\n} from \"../organizationReadModelError\";\n"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export type { HeldDirectoryPayloads } from "../policyEvidenceWire.js";
|
|
2
|
-
export { CommitOrganizationGroupPolicyConflictResponseSchema, type
|
|
2
|
+
export { CommitOrganizationGroupPolicyConflictResponseSchema, type CurrentPrincipalMemberEnvelopesResponse, CurrentPrincipalMemberEnvelopesResponseSchema, isCurrentPrincipalMemberEnvelopesResponse, isPrincipalPolicyBundleResponse, isPrincipalPolicyMutationResponse, isPrincipalPolicyStaleErrorResponse, isPrincipalPolicyStateChainEntryResponse, isPrincipalStatePayloadResponse, isPrincipalStateResponse, type PrincipalContainerGrantResponse, PrincipalContainerGrantResponseSchema, type PrincipalMemberEnvelopeResponse, PrincipalMemberEnvelopeResponseSchema, type PrincipalPolicyBundleResponse, PrincipalPolicyBundleResponseSchema, type PrincipalPolicyErrorResponse, PrincipalPolicyErrorResponseSchema, type PrincipalPolicyMutationResponse, PrincipalPolicyMutationResponseSchema, type PrincipalPolicySnapshotResponse, PrincipalPolicySnapshotResponseSchema, type PrincipalPolicyStaleErrorResponse, PrincipalPolicyStaleErrorResponseSchema, type PrincipalPolicyStateChainEntryResponse, PrincipalPolicyStateChainEntryResponseSchema, type PrincipalProjectionMemberResponse, PrincipalProjectionMemberResponseSchema, type PrincipalStateExternalAuthorityResponse, PrincipalStateExternalAuthorityResponseSchema, type PrincipalStatePayloadResponse, PrincipalStatePayloadResponseSchema, type PrincipalStateResponse, PrincipalStateResponseSchema, } from "../principal.js";
|
|
3
3
|
export { isPrincipalPolicyPageResponse, isPrincipalPolicyUnchangedResponse, type PrincipalPolicyPageResponse, PrincipalPolicyPageResponseSchema, type PrincipalPolicyReadResponse, PrincipalPolicyReadResponseSchema, type PrincipalPolicyUnchangedResponse, PrincipalPolicyUnchangedResponseSchema, } from "../principalPolicyPage.js";
|
|
4
4
|
export { isPrincipalPolicySnapshotPage, isPrincipalPolicySnapshotPageResponse, type PrincipalPolicyHistorySourceResponse, PrincipalPolicyHistorySourceResponseSchema, type PrincipalPolicySnapshotPage, type PrincipalPolicySnapshotPageResponse, PrincipalPolicySnapshotPageResponseSchema, } from "../principalPolicySnapshotPage.js";
|
|
5
5
|
export { isReferencedPrincipalStateResponse, type ReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "../principalReference.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
export { CommitOrganizationGroupPolicyConflictResponseSchema,
|
|
1
|
+
export { CommitOrganizationGroupPolicyConflictResponseSchema, CurrentPrincipalMemberEnvelopesResponseSchema, isCurrentPrincipalMemberEnvelopesResponse, isPrincipalPolicyBundleResponse, isPrincipalPolicyMutationResponse, isPrincipalPolicyStaleErrorResponse, isPrincipalPolicyStateChainEntryResponse, isPrincipalStatePayloadResponse, isPrincipalStateResponse, PrincipalContainerGrantResponseSchema, PrincipalMemberEnvelopeResponseSchema, PrincipalPolicyBundleResponseSchema, PrincipalPolicyErrorResponseSchema, PrincipalPolicyMutationResponseSchema, PrincipalPolicySnapshotResponseSchema, PrincipalPolicyStaleErrorResponseSchema, PrincipalPolicyStateChainEntryResponseSchema, PrincipalProjectionMemberResponseSchema, PrincipalStateExternalAuthorityResponseSchema, PrincipalStatePayloadResponseSchema, PrincipalStateResponseSchema, } from "../principal.js";
|
|
2
2
|
export { isPrincipalPolicyPageResponse, isPrincipalPolicyUnchangedResponse, PrincipalPolicyPageResponseSchema, PrincipalPolicyReadResponseSchema, PrincipalPolicyUnchangedResponseSchema, } from "../principalPolicyPage.js";
|
|
3
3
|
export { isPrincipalPolicySnapshotPage, isPrincipalPolicySnapshotPageResponse, PrincipalPolicyHistorySourceResponseSchema, PrincipalPolicySnapshotPageResponseSchema, } from "../principalPolicySnapshotPage.js";
|
|
4
4
|
export { isReferencedPrincipalStateResponse, ReferencedPrincipalStateResponseSchema, } from "../principalReference.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"principals.js","sourceRoot":"","sources":["principals.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mDAAmD,EAEnD,
|
|
1
|
+
{"version":3,"file":"principals.js","sourceRoot":"","sources":["principals.ts"],"names":[],"mappings":"AACA,OAAO,EACL,mDAAmD,EAEnD,6CAA6C,EAC7C,yCAAyC,EACzC,+BAA+B,EAC/B,iCAAiC,EACjC,mCAAmC,EACnC,wCAAwC,EACxC,+BAA+B,EAC/B,wBAAwB,EAExB,qCAAqC,EAErC,qCAAqC,EAErC,mCAAmC,EAEnC,kCAAkC,EAElC,qCAAqC,EAErC,qCAAqC,EAErC,uCAAuC,EAEvC,4CAA4C,EAE5C,uCAAuC,EAEvC,6CAA6C,EAE7C,mCAAmC,EAEnC,4BAA4B,GAC7B,MAAM,cAAc,CAAC;AACtB,OAAO,EACL,6BAA6B,EAC7B,kCAAkC,EAElC,iCAAiC,EAEjC,iCAAiC,EAEjC,sCAAsC,GACvC,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,6BAA6B,EAC7B,qCAAqC,EAErC,0CAA0C,EAG1C,yCAAyC,GAC1C,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,kCAAkC,EAElC,sCAAsC,GACvC,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,sCAAsC,EAEtC,0CAA0C,GAC3C,MAAM,6BAA6B,CAAC","sourcesContent":["export type { HeldDirectoryPayloads } from \"../policyEvidenceWire\";\nexport {\n CommitOrganizationGroupPolicyConflictResponseSchema,\n type CurrentPrincipalMemberEnvelopesResponse,\n CurrentPrincipalMemberEnvelopesResponseSchema,\n isCurrentPrincipalMemberEnvelopesResponse,\n isPrincipalPolicyBundleResponse,\n isPrincipalPolicyMutationResponse,\n isPrincipalPolicyStaleErrorResponse,\n isPrincipalPolicyStateChainEntryResponse,\n isPrincipalStatePayloadResponse,\n isPrincipalStateResponse,\n type PrincipalContainerGrantResponse,\n PrincipalContainerGrantResponseSchema,\n type PrincipalMemberEnvelopeResponse,\n PrincipalMemberEnvelopeResponseSchema,\n type PrincipalPolicyBundleResponse,\n PrincipalPolicyBundleResponseSchema,\n type PrincipalPolicyErrorResponse,\n PrincipalPolicyErrorResponseSchema,\n type PrincipalPolicyMutationResponse,\n PrincipalPolicyMutationResponseSchema,\n type PrincipalPolicySnapshotResponse,\n PrincipalPolicySnapshotResponseSchema,\n type PrincipalPolicyStaleErrorResponse,\n PrincipalPolicyStaleErrorResponseSchema,\n type PrincipalPolicyStateChainEntryResponse,\n PrincipalPolicyStateChainEntryResponseSchema,\n type PrincipalProjectionMemberResponse,\n PrincipalProjectionMemberResponseSchema,\n type PrincipalStateExternalAuthorityResponse,\n PrincipalStateExternalAuthorityResponseSchema,\n type PrincipalStatePayloadResponse,\n PrincipalStatePayloadResponseSchema,\n type PrincipalStateResponse,\n PrincipalStateResponseSchema,\n} from \"../principal\";\nexport {\n isPrincipalPolicyPageResponse,\n isPrincipalPolicyUnchangedResponse,\n type PrincipalPolicyPageResponse,\n PrincipalPolicyPageResponseSchema,\n type PrincipalPolicyReadResponse,\n PrincipalPolicyReadResponseSchema,\n type PrincipalPolicyUnchangedResponse,\n PrincipalPolicyUnchangedResponseSchema,\n} from \"../principalPolicyPage\";\nexport {\n isPrincipalPolicySnapshotPage,\n isPrincipalPolicySnapshotPageResponse,\n type PrincipalPolicyHistorySourceResponse,\n PrincipalPolicyHistorySourceResponseSchema,\n type PrincipalPolicySnapshotPage,\n type PrincipalPolicySnapshotPageResponse,\n PrincipalPolicySnapshotPageResponseSchema,\n} from \"../principalPolicySnapshotPage\";\nexport {\n isReferencedPrincipalStateResponse,\n type ReferencedPrincipalStateResponse,\n ReferencedPrincipalStateResponseSchema,\n} from \"../principalReference\";\nexport {\n type ProjectionPolicyEvidenceResponse,\n ProjectionPolicyEvidenceResponseSchema,\n type ProjectionPolicyEvidenceWireResponse,\n ProjectionPolicyEvidenceWireResponseSchema,\n} from \"../projectionPolicyEvidence\";\n"]}
|