@tearleads/client-sdk 0.1.249 → 0.1.251

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (119) hide show
  1. package/data/documents/shared/events.js +2 -1
  2. package/data/documents/shared/events.js.map +1 -1
  3. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js +1 -4
  4. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js.map +1 -1
  5. package/data/persistence/principalPolicy/heldOrganizationDirectories.js +6 -1
  6. package/data/persistence/principalPolicy/heldOrganizationDirectories.js.map +1 -1
  7. package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js +1 -1
  8. package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js.map +1 -1
  9. package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js +1 -5
  10. package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js.map +1 -1
  11. package/data/principals/organizationGroupDirectoryRequest.js +0 -2
  12. package/data/principals/organizationGroupDirectoryRequest.js.map +1 -1
  13. package/data/principals/organizationPolicyRequest.js +0 -2
  14. package/data/principals/organizationPolicyRequest.js.map +1 -1
  15. package/data/principals/principalPolicyRequest.js +0 -2
  16. package/data/principals/principalPolicyRequest.js.map +1 -1
  17. package/internal/api-client/ApiClient.d.ts +0 -58
  18. package/internal/api-client/client/apiClientContext.d.ts +0 -30
  19. package/internal/api-client/client/documents.d.ts +0 -12
  20. package/internal/api-client/client/principalPolicies.d.ts +0 -18
  21. package/internal/api-client/client/writerProjections.d.ts +0 -12
  22. package/internal/api-client/heldDirectoryCitations.d.ts +8 -4
  23. package/internal/api-client/heldDirectoryCitations.js +6 -10
  24. package/internal/api-client/heldDirectoryCitations.js.map +1 -1
  25. package/internal/api-client/organizationPolicyHistory.d.ts +0 -6
  26. package/internal/api-client/principalPolicyRequests.d.ts +0 -18
  27. package/internal/api-client/verifiedManifestCitations.js +3 -3
  28. package/internal/api-client/verifiedManifestCitations.js.map +1 -1
  29. package/internal/crypto/index.d.ts +1 -1
  30. package/internal/crypto/index.js.map +1 -1
  31. package/internal/crypto/keying/principalPolicyPayload.js +2 -12
  32. package/internal/crypto/keying/principalPolicyPayload.js.map +1 -1
  33. package/internal/crypto/keying/principalPolicyTypes.d.ts +5 -6
  34. package/internal/crypto/keying/principalPolicyTypes.js.map +1 -1
  35. package/internal/crypto/principalState.d.ts +1 -1
  36. package/internal/crypto/principalState.js.map +1 -1
  37. package/internal/crypto/principalStateTypes.d.ts +0 -1
  38. package/internal/crypto/principalStateTypes.js.map +1 -1
  39. package/internal/validators/documentCreateSeedRefinements.js +2 -2
  40. package/internal/validators/documentCreateSeedRefinements.js.map +1 -1
  41. package/internal/validators/operation/auth.d.ts +50 -1727
  42. package/internal/validators/operation/auth.js +2 -2
  43. package/internal/validators/operation/auth.js.map +1 -1
  44. package/internal/validators/operation/containerMutations.d.ts +1 -294
  45. package/internal/validators/operation/containerMutations.js +2 -2
  46. package/internal/validators/operation/containerMutations.js.map +1 -1
  47. package/internal/validators/operation/documentMutations.d.ts +1 -342
  48. package/internal/validators/operation/documentMutations.js +2 -2
  49. package/internal/validators/operation/documentMutations.js.map +1 -1
  50. package/internal/validators/operation/organizationPolicyHistory.d.ts +0 -24
  51. package/internal/validators/operation/organizations.d.ts +50 -1751
  52. package/internal/validators/operation/organizations.js +2 -2
  53. package/internal/validators/operation/organizations.js.map +1 -1
  54. package/internal/validators/operation/principals.d.ts +0 -56
  55. package/internal/validators/operation/writerProjections.d.ts +0 -48
  56. package/internal/validators/organizationProvisioningRefinements.js +2 -2
  57. package/internal/validators/organizationProvisioningRefinements.js.map +1 -1
  58. package/internal/validators/request/containerMetadata.d.ts +0 -276
  59. package/internal/validators/request/containerMetadata.js +5 -4
  60. package/internal/validators/request/containerMetadata.js.map +1 -1
  61. package/internal/validators/request/document.d.ts +0 -277
  62. package/internal/validators/request/document.js +8 -4
  63. package/internal/validators/request/document.js.map +1 -1
  64. package/internal/validators/request/documentCreateSeed.d.ts +99 -0
  65. package/internal/validators/request/documentCreateSeed.js +132 -9
  66. package/internal/validators/request/documentCreateSeed.js.map +1 -1
  67. package/internal/validators/request/documentSyncSchema.d.ts +41 -0
  68. package/internal/validators/request/documentSyncSchema.js +1 -1
  69. package/internal/validators/request/documentSyncSchema.js.map +1 -1
  70. package/internal/validators/request/index.d.ts +1 -0
  71. package/internal/validators/request/index.js +1 -0
  72. package/internal/validators/request/index.js.map +1 -1
  73. package/internal/validators/request/organization.d.ts +0 -32
  74. package/internal/validators/request/organizationProvisioning.d.ts +263 -5639
  75. package/internal/validators/request/organizationProvisioning.js +10 -4
  76. package/internal/validators/request/organizationProvisioning.js.map +1 -1
  77. package/internal/validators/request/principal.d.ts +4 -48
  78. package/internal/validators/request/principal.js +4 -2
  79. package/internal/validators/request/principal.js.map +1 -1
  80. package/internal/validators/request/registration.d.ts +71 -1727
  81. package/internal/validators/response/container.d.ts +0 -48
  82. package/internal/validators/response/documentMutation.d.ts +0 -96
  83. package/internal/validators/response/organizationPolicyHistory.d.ts +0 -24
  84. package/internal/validators/response/policyEvidenceWire.d.ts +5 -3
  85. package/internal/validators/response/policyEvidenceWire.js +6 -4
  86. package/internal/validators/response/policyEvidenceWire.js.map +1 -1
  87. package/internal/validators/response/principal.d.ts +0 -48
  88. package/internal/validators/response/principalPolicyPage.d.ts +0 -48
  89. package/internal/validators/response/principalSnapshot.d.ts +4 -24
  90. package/internal/validators/response/principalSnapshot.js +4 -6
  91. package/internal/validators/response/principalSnapshot.js.map +1 -1
  92. package/internal/validators/response/projectionPolicyEvidence.d.ts +0 -48
  93. package/package.json +1 -1
  94. package/workflows/container-contents/container-state/create/createWithMetadata.js +6 -3
  95. package/workflows/container-contents/container-state/create/createWithMetadata.js.map +1 -1
  96. package/workflows/documents/create/index.js +4 -4
  97. package/workflows/documents/create/index.js.map +1 -1
  98. package/workflows/documents/sync/initialSync.d.ts +26 -11
  99. package/workflows/documents/sync/initialSync.js +32 -12
  100. package/workflows/documents/sync/initialSync.js.map +1 -1
  101. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js +1 -6
  102. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js.map +1 -1
  103. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js +1 -6
  104. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js.map +1 -1
  105. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js +4 -6
  106. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js.map +1 -1
  107. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js +1 -7
  108. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js.map +1 -1
  109. package/workflows/principals/policyCache/principalPolicyCacheValidation.js +0 -13
  110. package/workflows/principals/policyCache/principalPolicyCacheValidation.js.map +1 -1
  111. package/workflows/principals/publicHistory/publicProjectionDirectory.js +4 -5
  112. package/workflows/principals/publicHistory/publicProjectionDirectory.js.map +1 -1
  113. package/workflows/registration/provisionedProfileDocument.js +2 -2
  114. package/workflows/registration/provisionedProfileDocument.js.map +1 -1
  115. package/workflows/registration/provisioningBootstrapBuilders.d.ts +0 -74
  116. package/workflows/registration/provisioningBootstrapBuilders.js +3 -3
  117. package/workflows/registration/provisioningBootstrapBuilders.js.map +1 -1
  118. package/workflows/registration/registrationPrincipalPolicyPersistence.js +1 -7
  119. package/workflows/registration/registrationPrincipalPolicyPersistence.js.map +1 -1
@@ -1,5 +1,5 @@
1
1
  import { z } from "zod";
2
- import { documentSyncRequestRuntimeRefinements } from "../documentSyncRefinements.js";
2
+ import { documentSyncRequestRotationRefinement } from "../documentSyncRefinements.js";
3
3
  import { organizationDataUsageResponseRuntimeRefinements } from "../organizationDataUsageRefinements.js";
4
4
  import { organizationProvisioningContainerKeyringRefinement, organizationProvisioningRequestRuntimeRefinements, organizationProvisioningResponseRuntimeRefinements, } from "../organizationProvisioningRefinements.js";
5
5
  import { organizationReadModelResponseRuntimeRefinements } from "../organizationReadModelRefinements.js";
@@ -47,7 +47,7 @@ export const createOrganizationOperation = defineJsonOperation({
47
47
  200: CreateOrganizationResponseSchema,
48
48
  },
49
49
  runtimeRefinements: [
50
- ...documentSyncRequestRuntimeRefinements,
50
+ documentSyncRequestRotationRefinement,
51
51
  ...organizationProvisioningRequestRuntimeRefinements,
52
52
  ...organizationProvisioningResponseRuntimeRefinements,
53
53
  ],
@@ -1 +1 @@
1
- {"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,kDAAkD,EAClD,iDAAiD,EACjD,kDAAkD,GACnD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,8CAA8C,EAC9C,+BAA+B,EAC/B,oCAAoC,EACpC,0CAA0C,EAC1C,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,0CAA0C,EAC1C,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,sCAAsC,EACtC,6CAA6C,EAC7C,iCAAiC,EACjC,0CAA0C,EAC1C,mCAAmC,EACnC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gDAAgD,EAChD,yCAAyC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C,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,oCAAoC,GAAG,2BAA2B,CAAC;AAChF,MAAM,CAAC,MAAM,qCAAqC,GAChD,4BAA4B,CAAC;AAC/B,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,2CAA2C,GACtD,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,4CAA4C,GACvD,6BAA6B,CAAC;AAChC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,mCAAmC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { documentSyncRequestRuntimeRefinements } from \"../documentSyncRefinements\";\nimport { organizationDataUsageResponseRuntimeRefinements } from \"../organizationDataUsageRefinements\";\nimport {\n organizationProvisioningContainerKeyringRefinement,\n organizationProvisioningRequestRuntimeRefinements,\n organizationProvisioningResponseRuntimeRefinements,\n} from \"../organizationProvisioningRefinements\";\nimport { organizationReadModelResponseRuntimeRefinements } from \"../organizationReadModelRefinements\";\nimport {\n CreateOrganizationGroupWithPolicyRequestSchema,\n CreateOrganizationRequestSchema,\n DeleteOrganizationGroupRequestSchema,\n isCreateOrganizationGroupWithPolicyRequest,\n isCreateOrganizationRequest,\n isUpdateOrganizationProfileRequest,\n isUpdateOrganizationRosterEntryRequest,\n 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"]}
1
+ {"version":3,"file":"organizations.js","sourceRoot":"","sources":["organizations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,qCAAqC,EAAE,MAAM,4BAA4B,CAAC;AACnF,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,kDAAkD,EAClD,iDAAiD,EACjD,kDAAkD,GACnD,MAAM,wCAAwC,CAAC;AAChD,OAAO,EAAE,+CAA+C,EAAE,MAAM,qCAAqC,CAAC;AACtG,OAAO,EACL,8CAA8C,EAC9C,+BAA+B,EAC/B,oCAAoC,EACpC,0CAA0C,EAC1C,2BAA2B,EAC3B,kCAAkC,EAClC,sCAAsC,EACtC,0CAA0C,EAC1C,gCAAgC,EAChC,sCAAsC,EACtC,0CAA0C,GAC3C,MAAM,YAAY,CAAC;AACpB,OAAO,EACL,qCAAqC,EACrC,gCAAgC,EAChC,qCAAqC,EACrC,mBAAmB,EACnB,iCAAiC,EACjC,4BAA4B,EAC5B,iCAAiC,EACjC,+BAA+B,EAC/B,mCAAmC,EACnC,kCAAkC,EAClC,6BAA6B,EAC7B,+BAA+B,EAC/B,mCAAmC,EACnC,uCAAuC,EACvC,sCAAsC,EACtC,6CAA6C,EAC7C,iCAAiC,EACjC,0CAA0C,EAC1C,mCAAmC,EACnC,kCAAkC,EAClC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,gDAAgD,EAChD,yCAAyC,EACzC,kCAAkC,GACnC,MAAM,yCAAyC,CAAC;AACjD,OAAO,EAAE,kBAAkB,EAAE,MAAM,WAAW,CAA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CAAC;AAChF,MAAM,CAAC,MAAM,qCAAqC,GAChD,4BAA4B,CAAC;AAC/B,MAAM,CAAC,MAAM,0CAA0C,GACrD,iCAAiC,CAAC;AACpC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,2CAA2C,GACtD,+BAA+B,CAAC;AAClC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,2CAA2C,GACtD,kCAAkC,CAAC;AACrC,MAAM,CAAC,MAAM,4CAA4C,GACvD,6BAA6B,CAAC;AAChC,MAAM,CAAC,MAAM,+CAA+C,GAC1D,sCAAsC,CAAC;AACzC,MAAM,CAAC,MAAM,gDAAgD,GAC3D,mCAAmC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { documentSyncRequestRotationRefinement } 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 documentSyncRequestRotationRefinement,\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"]}
@@ -148,13 +148,7 @@ export declare const getPrincipalPolicyOperation: Omit<{
148
148
  stateHash: string;
149
149
  };
150
150
  currentPayload: {
151
- cipherSuite: "aes-256-gcm";
152
151
  ciphertext: string;
153
- ciphertextHash: string;
154
- createdAt: string;
155
- principalId: string;
156
- principalType: "group" | "organization";
157
- stateHash: string;
158
152
  };
159
153
  currentProjection: {
160
154
  identityBundleFingerprint: string;
@@ -256,13 +250,7 @@ export declare const getPrincipalPolicyOperation: Omit<{
256
250
  stateHash: string;
257
251
  };
258
252
  currentPayload: {
259
- cipherSuite: "aes-256-gcm";
260
253
  ciphertext: string;
261
- ciphertextHash: string;
262
- createdAt: string;
263
- principalId: string;
264
- principalType: "group" | "organization";
265
- stateHash: string;
266
254
  };
267
255
  currentProjection: {
268
256
  identityBundleFingerprint: string;
@@ -364,13 +352,7 @@ export declare const getPrincipalPolicyOperation: Omit<{
364
352
  stateHash: string;
365
353
  };
366
354
  currentPayload: {
367
- cipherSuite: "aes-256-gcm";
368
355
  ciphertext: string;
369
- ciphertextHash: string;
370
- createdAt: string;
371
- principalId: string;
372
- principalType: "group" | "organization";
373
- stateHash: string;
374
356
  };
375
357
  currentProjection: {
376
358
  identityBundleFingerprint: string;
@@ -472,13 +454,7 @@ export declare const getPrincipalPolicyOperation: Omit<{
472
454
  stateHash: string;
473
455
  };
474
456
  currentPayload: {
475
- cipherSuite: "aes-256-gcm";
476
457
  ciphertext: string;
477
- ciphertextHash: string;
478
- createdAt: string;
479
- principalId: string;
480
- principalType: "group" | "organization";
481
- stateHash: string;
482
458
  };
483
459
  currentProjection: {
484
460
  identityBundleFingerprint: string;
@@ -813,9 +789,7 @@ export declare const putPrincipalPolicyOperation: Omit<{
813
789
  readonly auth: "session";
814
790
  readonly body: z.ZodType<{
815
791
  encryptedPayload: {
816
- cipherSuite: "aes-256-gcm";
817
792
  ciphertext: string;
818
- ciphertextHash: string;
819
793
  };
820
794
  grants: {
821
795
  accessLevel: "write" | "admin" | "read";
@@ -904,9 +878,7 @@ export declare const putPrincipalPolicyOperation: Omit<{
904
878
  }[] | undefined;
905
879
  }, {
906
880
  encryptedPayload: {
907
- cipherSuite: "aes-256-gcm";
908
881
  ciphertext: string;
909
- ciphertextHash: string;
910
882
  };
911
883
  grants: {
912
884
  accessLevel: "write" | "admin" | "read";
@@ -995,9 +967,7 @@ export declare const putPrincipalPolicyOperation: Omit<{
995
967
  }[] | undefined;
996
968
  }, z.core.$ZodTypeInternals<{
997
969
  encryptedPayload: {
998
- cipherSuite: "aes-256-gcm";
999
970
  ciphertext: string;
1000
- ciphertextHash: string;
1001
971
  };
1002
972
  grants: {
1003
973
  accessLevel: "write" | "admin" | "read";
@@ -1086,9 +1056,7 @@ export declare const putPrincipalPolicyOperation: Omit<{
1086
1056
  }[] | undefined;
1087
1057
  }, {
1088
1058
  encryptedPayload: {
1089
- cipherSuite: "aes-256-gcm";
1090
1059
  ciphertext: string;
1091
- ciphertextHash: string;
1092
1060
  };
1093
1061
  grants: {
1094
1062
  accessLevel: "write" | "admin" | "read";
@@ -1562,9 +1530,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1562
1530
  readonly body: z.ZodType<{
1563
1531
  groupPolicy: {
1564
1532
  encryptedPayload: {
1565
- cipherSuite: "aes-256-gcm";
1566
1533
  ciphertext: string;
1567
- ciphertextHash: string;
1568
1534
  };
1569
1535
  grants: {
1570
1536
  accessLevel: "write" | "admin" | "read";
@@ -1654,9 +1620,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1654
1620
  };
1655
1621
  organizationPolicy: {
1656
1622
  encryptedPayload: {
1657
- cipherSuite: "aes-256-gcm";
1658
1623
  ciphertext: string;
1659
- ciphertextHash: string;
1660
1624
  };
1661
1625
  grants: {
1662
1626
  accessLevel: "write" | "admin" | "read";
@@ -1746,9 +1710,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1746
1710
  };
1747
1711
  memberPolicy?: {
1748
1712
  encryptedPayload: {
1749
- cipherSuite: "aes-256-gcm";
1750
1713
  ciphertext: string;
1751
- ciphertextHash: string;
1752
1714
  };
1753
1715
  grants: {
1754
1716
  accessLevel: "write" | "admin" | "read";
@@ -1839,9 +1801,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1839
1801
  }, {
1840
1802
  groupPolicy: {
1841
1803
  encryptedPayload: {
1842
- cipherSuite: "aes-256-gcm";
1843
1804
  ciphertext: string;
1844
- ciphertextHash: string;
1845
1805
  };
1846
1806
  grants: {
1847
1807
  accessLevel: "write" | "admin" | "read";
@@ -1931,9 +1891,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
1931
1891
  };
1932
1892
  organizationPolicy: {
1933
1893
  encryptedPayload: {
1934
- cipherSuite: "aes-256-gcm";
1935
1894
  ciphertext: string;
1936
- ciphertextHash: string;
1937
1895
  };
1938
1896
  grants: {
1939
1897
  accessLevel: "write" | "admin" | "read";
@@ -2023,9 +1981,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2023
1981
  };
2024
1982
  memberPolicy?: {
2025
1983
  encryptedPayload: {
2026
- cipherSuite: "aes-256-gcm";
2027
1984
  ciphertext: string;
2028
- ciphertextHash: string;
2029
1985
  };
2030
1986
  grants: {
2031
1987
  accessLevel: "write" | "admin" | "read";
@@ -2116,9 +2072,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2116
2072
  }, z.core.$ZodTypeInternals<{
2117
2073
  groupPolicy: {
2118
2074
  encryptedPayload: {
2119
- cipherSuite: "aes-256-gcm";
2120
2075
  ciphertext: string;
2121
- ciphertextHash: string;
2122
2076
  };
2123
2077
  grants: {
2124
2078
  accessLevel: "write" | "admin" | "read";
@@ -2208,9 +2162,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2208
2162
  };
2209
2163
  organizationPolicy: {
2210
2164
  encryptedPayload: {
2211
- cipherSuite: "aes-256-gcm";
2212
2165
  ciphertext: string;
2213
- ciphertextHash: string;
2214
2166
  };
2215
2167
  grants: {
2216
2168
  accessLevel: "write" | "admin" | "read";
@@ -2300,9 +2252,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2300
2252
  };
2301
2253
  memberPolicy?: {
2302
2254
  encryptedPayload: {
2303
- cipherSuite: "aes-256-gcm";
2304
2255
  ciphertext: string;
2305
- ciphertextHash: string;
2306
2256
  };
2307
2257
  grants: {
2308
2258
  accessLevel: "write" | "admin" | "read";
@@ -2393,9 +2343,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2393
2343
  }, {
2394
2344
  groupPolicy: {
2395
2345
  encryptedPayload: {
2396
- cipherSuite: "aes-256-gcm";
2397
2346
  ciphertext: string;
2398
- ciphertextHash: string;
2399
2347
  };
2400
2348
  grants: {
2401
2349
  accessLevel: "write" | "admin" | "read";
@@ -2485,9 +2433,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2485
2433
  };
2486
2434
  organizationPolicy: {
2487
2435
  encryptedPayload: {
2488
- cipherSuite: "aes-256-gcm";
2489
2436
  ciphertext: string;
2490
- ciphertextHash: string;
2491
2437
  };
2492
2438
  grants: {
2493
2439
  accessLevel: "write" | "admin" | "read";
@@ -2577,9 +2523,7 @@ export declare const commitOrganizationGroupPolicyOperation: Omit<{
2577
2523
  };
2578
2524
  memberPolicy?: {
2579
2525
  encryptedPayload: {
2580
- cipherSuite: "aes-256-gcm";
2581
2526
  ciphertext: string;
2582
- ciphertextHash: string;
2583
2527
  };
2584
2528
  grants: {
2585
2529
  accessLevel: "write" | "admin" | "read";
@@ -105,13 +105,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
105
105
  version: number;
106
106
  };
107
107
  payload: {
108
- cipherSuite: "aes-256-gcm";
109
108
  ciphertext: string;
110
- ciphertextHash: string;
111
- createdAt: string;
112
- principalId: string;
113
- principalType: "group" | "organization";
114
- stateHash: string;
115
109
  } | null;
116
110
  }[];
117
111
  groups: {
@@ -187,13 +181,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
187
181
  version: number;
188
182
  };
189
183
  payload: {
190
- cipherSuite: "aes-256-gcm";
191
184
  ciphertext: string;
192
- ciphertextHash: string;
193
- createdAt: string;
194
- principalId: string;
195
- principalType: "group" | "organization";
196
- stateHash: string;
197
185
  } | null;
198
186
  }[];
199
187
  groups: {
@@ -269,13 +257,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
269
257
  version: number;
270
258
  };
271
259
  payload: {
272
- cipherSuite: "aes-256-gcm";
273
260
  ciphertext: string;
274
- ciphertextHash: string;
275
- createdAt: string;
276
- principalId: string;
277
- principalType: "group" | "organization";
278
- stateHash: string;
279
261
  } | null;
280
262
  }[];
281
263
  groups: {
@@ -351,13 +333,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
351
333
  version: number;
352
334
  };
353
335
  payload: {
354
- cipherSuite: "aes-256-gcm";
355
336
  ciphertext: string;
356
- ciphertextHash: string;
357
- createdAt: string;
358
- principalId: string;
359
- principalType: "group" | "organization";
360
- stateHash: string;
361
337
  } | null;
362
338
  }[];
363
339
  groups: {
@@ -593,13 +569,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
593
569
  version: number;
594
570
  };
595
571
  payload: {
596
- cipherSuite: "aes-256-gcm";
597
572
  ciphertext: string;
598
- ciphertextHash: string;
599
- createdAt: string;
600
- principalId: string;
601
- principalType: "group" | "organization";
602
- stateHash: string;
603
573
  } | null;
604
574
  }[];
605
575
  groups: {
@@ -705,13 +675,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
705
675
  version: number;
706
676
  };
707
677
  payload: {
708
- cipherSuite: "aes-256-gcm";
709
678
  ciphertext: string;
710
- ciphertextHash: string;
711
- createdAt: string;
712
- principalId: string;
713
- principalType: "group" | "organization";
714
- stateHash: string;
715
679
  } | null;
716
680
  }[];
717
681
  groups: {
@@ -817,13 +781,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
817
781
  version: number;
818
782
  };
819
783
  payload: {
820
- cipherSuite: "aes-256-gcm";
821
784
  ciphertext: string;
822
- ciphertextHash: string;
823
- createdAt: string;
824
- principalId: string;
825
- principalType: "group" | "organization";
826
- stateHash: string;
827
785
  } | null;
828
786
  }[];
829
787
  groups: {
@@ -929,13 +887,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
929
887
  version: number;
930
888
  };
931
889
  payload: {
932
- cipherSuite: "aes-256-gcm";
933
890
  ciphertext: string;
934
- ciphertextHash: string;
935
- createdAt: string;
936
- principalId: string;
937
- principalType: "group" | "organization";
938
- stateHash: string;
939
891
  } | null;
940
892
  }[];
941
893
  groups: {
@@ -1,9 +1,9 @@
1
1
  export const organizationProvisioningDocumentSeedRefinement = {
2
- description: "each provisioned document seed must contain exactly one outgoing update and no container rekeys",
2
+ description: "each provisioned document seed must contain exactly one outgoing update and no container rekeys, and with its document's content-key bundle and target path form a valid document sync that serializes within the document sync request limit",
3
3
  id: "request.organization-provisioning-document-seed",
4
4
  };
5
5
  export const organizationProvisioningContainerSeedRefinement = {
6
- description: "each provisioned system-container metadata seed must contain exactly one outgoing update and no container rekeys",
6
+ description: "each provisioned system-container metadata seed must contain exactly one outgoing update and no container rekeys, and with its metadata document's content-key bundle and target path form a valid document sync that serializes within the document sync request limit",
7
7
  id: "request.organization-provisioning-container-seed",
8
8
  };
9
9
  export const organizationProvisioningRequestRuntimeRefinements = [
@@ -1 +1 @@
1
- {"version":3,"file":"organizationProvisioningRefinements.js","sourceRoot":"","sources":["organizationProvisioningRefinements.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8CAA8C,GAAG;IAC5D,WAAW,EACT,iGAAiG;IACnG,EAAE,EAAE,iDAAiD;CAC7C,CAAC;AAEX,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,WAAW,EACT,kHAAkH;IACpH,EAAE,EAAE,kDAAkD;CAC9C,CAAC;AAEX,MAAM,CAAC,MAAM,iDAAiD,GAAG;IAC/D,+CAA+C;IAC/C,8CAA8C;CACtC,CAAC;AAEX,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,WAAW,EACT,wEAAwE;IAC1E,EAAE,EAAE,sDAAsD;CAClD,CAAC;AAEX,MAAM,CAAC,MAAM,oDAAoD,GAAG;IAClE,WAAW,EACT,kEAAkE;IACpE,EAAE,EAAE,sDAAsD;CAClD,CAAC;AAEX,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,oDAAoD;IACpD,kDAAkD;CAC1C,CAAC","sourcesContent":["export const organizationProvisioningDocumentSeedRefinement = {\n description:\n \"each provisioned document seed must contain exactly one outgoing update and no container rekeys\",\n id: \"request.organization-provisioning-document-seed\",\n} as const;\n\nexport const organizationProvisioningContainerSeedRefinement = {\n description:\n \"each provisioned system-container metadata seed must contain exactly one outgoing update and no container rekeys\",\n id: \"request.organization-provisioning-container-seed\",\n} as const;\n\nexport const organizationProvisioningRequestRuntimeRefinements = [\n organizationProvisioningContainerSeedRefinement,\n organizationProvisioningDocumentSeedRefinement,\n] as const;\n\nexport const organizationProvisioningContainerKeyringRefinement = {\n description:\n \"a container response keyring is null exactly for container key epoch 1\",\n id: \"response.organization-provisioning-container-keyring\",\n} as const;\n\nexport const organizationProvisioningCommittedUpdateIdsRefinement = {\n description:\n \"core and profile metadata update id arrays contain no duplicates\",\n id: \"response.organization-provisioning-unique-update-ids\",\n} as const;\n\nexport const organizationProvisioningResponseRuntimeRefinements = [\n organizationProvisioningCommittedUpdateIdsRefinement,\n organizationProvisioningContainerKeyringRefinement,\n] as const;\n"]}
1
+ {"version":3,"file":"organizationProvisioningRefinements.js","sourceRoot":"","sources":["organizationProvisioningRefinements.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,8CAA8C,GAAG;IAC5D,WAAW,EACT,+OAA+O;IACjP,EAAE,EAAE,iDAAiD;CAC7C,CAAC;AAEX,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,WAAW,EACT,yQAAyQ;IAC3Q,EAAE,EAAE,kDAAkD;CAC9C,CAAC;AAEX,MAAM,CAAC,MAAM,iDAAiD,GAAG;IAC/D,+CAA+C;IAC/C,8CAA8C;CACtC,CAAC;AAEX,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,WAAW,EACT,wEAAwE;IAC1E,EAAE,EAAE,sDAAsD;CAClD,CAAC;AAEX,MAAM,CAAC,MAAM,oDAAoD,GAAG;IAClE,WAAW,EACT,kEAAkE;IACpE,EAAE,EAAE,sDAAsD;CAClD,CAAC;AAEX,MAAM,CAAC,MAAM,kDAAkD,GAAG;IAChE,oDAAoD;IACpD,kDAAkD;CAC1C,CAAC","sourcesContent":["export const organizationProvisioningDocumentSeedRefinement = {\n description:\n \"each provisioned document seed must contain exactly one outgoing update and no container rekeys, and with its document's content-key bundle and target path form a valid document sync that serializes within the document sync request limit\",\n id: \"request.organization-provisioning-document-seed\",\n} as const;\n\nexport const organizationProvisioningContainerSeedRefinement = {\n description:\n \"each provisioned system-container metadata seed must contain exactly one outgoing update and no container rekeys, and with its metadata document's content-key bundle and target path form a valid document sync that serializes within the document sync request limit\",\n id: \"request.organization-provisioning-container-seed\",\n} as const;\n\nexport const organizationProvisioningRequestRuntimeRefinements = [\n organizationProvisioningContainerSeedRefinement,\n organizationProvisioningDocumentSeedRefinement,\n] as const;\n\nexport const organizationProvisioningContainerKeyringRefinement = {\n description:\n \"a container response keyring is null exactly for container key epoch 1\",\n id: \"response.organization-provisioning-container-keyring\",\n} as const;\n\nexport const organizationProvisioningCommittedUpdateIdsRefinement = {\n description:\n \"core and profile metadata update id arrays contain no duplicates\",\n id: \"response.organization-provisioning-unique-update-ids\",\n} as const;\n\nexport const organizationProvisioningResponseRuntimeRefinements = [\n organizationProvisioningCommittedUpdateIdsRefinement,\n organizationProvisioningContainerKeyringRefinement,\n] as const;\n"]}