@tearleads/client-sdk 0.1.249 → 0.1.250

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 (76) hide show
  1. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js +1 -4
  2. package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js.map +1 -1
  3. package/data/persistence/principalPolicy/heldOrganizationDirectories.js +6 -1
  4. package/data/persistence/principalPolicy/heldOrganizationDirectories.js.map +1 -1
  5. package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js +1 -1
  6. package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js.map +1 -1
  7. package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js +1 -5
  8. package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js.map +1 -1
  9. package/data/principals/organizationGroupDirectoryRequest.js +0 -2
  10. package/data/principals/organizationGroupDirectoryRequest.js.map +1 -1
  11. package/data/principals/organizationPolicyRequest.js +0 -2
  12. package/data/principals/organizationPolicyRequest.js.map +1 -1
  13. package/data/principals/principalPolicyRequest.js +0 -2
  14. package/data/principals/principalPolicyRequest.js.map +1 -1
  15. package/internal/api-client/ApiClient.d.ts +0 -58
  16. package/internal/api-client/client/apiClientContext.d.ts +0 -30
  17. package/internal/api-client/client/documents.d.ts +0 -12
  18. package/internal/api-client/client/principalPolicies.d.ts +0 -18
  19. package/internal/api-client/client/writerProjections.d.ts +0 -12
  20. package/internal/api-client/heldDirectoryCitations.d.ts +8 -4
  21. package/internal/api-client/heldDirectoryCitations.js +6 -10
  22. package/internal/api-client/heldDirectoryCitations.js.map +1 -1
  23. package/internal/api-client/organizationPolicyHistory.d.ts +0 -6
  24. package/internal/api-client/principalPolicyRequests.d.ts +0 -18
  25. package/internal/api-client/verifiedManifestCitations.js +3 -3
  26. package/internal/api-client/verifiedManifestCitations.js.map +1 -1
  27. package/internal/crypto/index.d.ts +1 -1
  28. package/internal/crypto/index.js.map +1 -1
  29. package/internal/crypto/keying/principalPolicyPayload.js +2 -12
  30. package/internal/crypto/keying/principalPolicyPayload.js.map +1 -1
  31. package/internal/crypto/keying/principalPolicyTypes.d.ts +5 -6
  32. package/internal/crypto/keying/principalPolicyTypes.js.map +1 -1
  33. package/internal/crypto/principalState.d.ts +1 -1
  34. package/internal/crypto/principalState.js.map +1 -1
  35. package/internal/crypto/principalStateTypes.d.ts +0 -1
  36. package/internal/crypto/principalStateTypes.js.map +1 -1
  37. package/internal/validators/operation/auth.d.ts +0 -24
  38. package/internal/validators/operation/documentMutations.d.ts +0 -48
  39. package/internal/validators/operation/organizationPolicyHistory.d.ts +0 -24
  40. package/internal/validators/operation/organizations.d.ts +0 -48
  41. package/internal/validators/operation/principals.d.ts +0 -56
  42. package/internal/validators/operation/writerProjections.d.ts +0 -48
  43. package/internal/validators/request/organization.d.ts +0 -32
  44. package/internal/validators/request/organizationProvisioning.d.ts +0 -72
  45. package/internal/validators/request/principal.d.ts +4 -48
  46. package/internal/validators/request/principal.js +4 -2
  47. package/internal/validators/request/principal.js.map +1 -1
  48. package/internal/validators/request/registration.d.ts +0 -24
  49. package/internal/validators/response/container.d.ts +0 -48
  50. package/internal/validators/response/documentMutation.d.ts +0 -96
  51. package/internal/validators/response/organizationPolicyHistory.d.ts +0 -24
  52. package/internal/validators/response/policyEvidenceWire.d.ts +5 -3
  53. package/internal/validators/response/policyEvidenceWire.js +6 -4
  54. package/internal/validators/response/policyEvidenceWire.js.map +1 -1
  55. package/internal/validators/response/principal.d.ts +0 -48
  56. package/internal/validators/response/principalPolicyPage.d.ts +0 -48
  57. package/internal/validators/response/principalSnapshot.d.ts +4 -24
  58. package/internal/validators/response/principalSnapshot.js +4 -6
  59. package/internal/validators/response/principalSnapshot.js.map +1 -1
  60. package/internal/validators/response/projectionPolicyEvidence.d.ts +0 -48
  61. package/package.json +1 -1
  62. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js +1 -6
  63. package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js.map +1 -1
  64. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js +1 -6
  65. package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js.map +1 -1
  66. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js +4 -6
  67. package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js.map +1 -1
  68. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js +1 -7
  69. package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js.map +1 -1
  70. package/workflows/principals/policyCache/principalPolicyCacheValidation.js +0 -13
  71. package/workflows/principals/policyCache/principalPolicyCacheValidation.js.map +1 -1
  72. package/workflows/principals/publicHistory/publicProjectionDirectory.js +4 -5
  73. package/workflows/principals/publicHistory/publicProjectionDirectory.js.map +1 -1
  74. package/workflows/registration/provisioningBootstrapBuilders.d.ts +0 -6
  75. package/workflows/registration/registrationPrincipalPolicyPersistence.js +1 -7
  76. package/workflows/registration/registrationPrincipalPolicyPersistence.js.map +1 -1
@@ -145,22 +145,18 @@ declare const PrincipalStateRequestSchema: z.ZodType<{
145
145
  version: number;
146
146
  }>>;
147
147
  export type PrincipalStateRequest = z.infer<typeof PrincipalStateRequestSchema>;
148
+ /**
149
+ * Only the ciphertext: the signed state's `payloadCiphertextHash` commits to
150
+ * it, and the cipher suite is fixed (#2903 P23).
151
+ */
148
152
  declare const PrincipalStateEncryptedPayloadRequestSchema: z.ZodType<{
149
- cipherSuite: "aes-256-gcm";
150
153
  ciphertext: string;
151
- ciphertextHash: string;
152
154
  }, {
153
- cipherSuite: "aes-256-gcm";
154
155
  ciphertext: string;
155
- ciphertextHash: string;
156
156
  }, z.core.$ZodTypeInternals<{
157
- cipherSuite: "aes-256-gcm";
158
157
  ciphertext: string;
159
- ciphertextHash: string;
160
158
  }, {
161
- cipherSuite: "aes-256-gcm";
162
159
  ciphertext: string;
163
- ciphertextHash: string;
164
160
  }>>;
165
161
  export type PrincipalStateEncryptedPayloadRequest = z.infer<typeof PrincipalStateEncryptedPayloadRequestSchema>;
166
162
  declare const PrincipalMemberEnvelopeRequestSchema: z.ZodType<{
@@ -187,9 +183,7 @@ declare const PrincipalMemberEnvelopeRequestSchema: z.ZodType<{
187
183
  export type PrincipalMemberEnvelopeRequest = z.infer<typeof PrincipalMemberEnvelopeRequestSchema>;
188
184
  export declare const PutPrincipalPolicyRequestSchema: z.ZodType<{
189
185
  encryptedPayload: {
190
- cipherSuite: "aes-256-gcm";
191
186
  ciphertext: string;
192
- ciphertextHash: string;
193
187
  };
194
188
  grants: {
195
189
  accessLevel: "write" | "admin" | "read";
@@ -278,9 +272,7 @@ export declare const PutPrincipalPolicyRequestSchema: z.ZodType<{
278
272
  }[] | undefined;
279
273
  }, {
280
274
  encryptedPayload: {
281
- cipherSuite: "aes-256-gcm";
282
275
  ciphertext: string;
283
- ciphertextHash: string;
284
276
  };
285
277
  grants: {
286
278
  accessLevel: "write" | "admin" | "read";
@@ -369,9 +361,7 @@ export declare const PutPrincipalPolicyRequestSchema: z.ZodType<{
369
361
  }[] | undefined;
370
362
  }, z.core.$ZodTypeInternals<{
371
363
  encryptedPayload: {
372
- cipherSuite: "aes-256-gcm";
373
364
  ciphertext: string;
374
- ciphertextHash: string;
375
365
  };
376
366
  grants: {
377
367
  accessLevel: "write" | "admin" | "read";
@@ -460,9 +450,7 @@ export declare const PutPrincipalPolicyRequestSchema: z.ZodType<{
460
450
  }[] | undefined;
461
451
  }, {
462
452
  encryptedPayload: {
463
- cipherSuite: "aes-256-gcm";
464
453
  ciphertext: string;
465
- ciphertextHash: string;
466
454
  };
467
455
  grants: {
468
456
  accessLevel: "write" | "admin" | "read";
@@ -553,9 +541,7 @@ export declare const PutPrincipalPolicyRequestSchema: z.ZodType<{
553
541
  export type PutPrincipalPolicyRequest = z.infer<typeof PutPrincipalPolicyRequestSchema>;
554
542
  export declare const OrganizationPrincipalPolicyRequestSchema: z.ZodType<{
555
543
  encryptedPayload: {
556
- cipherSuite: "aes-256-gcm";
557
544
  ciphertext: string;
558
- ciphertextHash: string;
559
545
  };
560
546
  grants: {
561
547
  accessLevel: "write" | "admin" | "read";
@@ -644,9 +630,7 @@ export declare const OrganizationPrincipalPolicyRequestSchema: z.ZodType<{
644
630
  }[] | undefined;
645
631
  }, {
646
632
  encryptedPayload: {
647
- cipherSuite: "aes-256-gcm";
648
633
  ciphertext: string;
649
- ciphertextHash: string;
650
634
  };
651
635
  grants: {
652
636
  accessLevel: "write" | "admin" | "read";
@@ -735,9 +719,7 @@ export declare const OrganizationPrincipalPolicyRequestSchema: z.ZodType<{
735
719
  }[] | undefined;
736
720
  }, z.core.$ZodTypeInternals<{
737
721
  encryptedPayload: {
738
- cipherSuite: "aes-256-gcm";
739
722
  ciphertext: string;
740
- ciphertextHash: string;
741
723
  };
742
724
  grants: {
743
725
  accessLevel: "write" | "admin" | "read";
@@ -826,9 +808,7 @@ export declare const OrganizationPrincipalPolicyRequestSchema: z.ZodType<{
826
808
  }[] | undefined;
827
809
  }, {
828
810
  encryptedPayload: {
829
- cipherSuite: "aes-256-gcm";
830
811
  ciphertext: string;
831
- ciphertextHash: string;
832
812
  };
833
813
  grants: {
834
814
  accessLevel: "write" | "admin" | "read";
@@ -920,9 +900,7 @@ export type OrganizationPrincipalPolicyRequest = z.infer<typeof OrganizationPrin
920
900
  export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
921
901
  groupPolicy: {
922
902
  encryptedPayload: {
923
- cipherSuite: "aes-256-gcm";
924
903
  ciphertext: string;
925
- ciphertextHash: string;
926
904
  };
927
905
  grants: {
928
906
  accessLevel: "write" | "admin" | "read";
@@ -1012,9 +990,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1012
990
  };
1013
991
  organizationPolicy: {
1014
992
  encryptedPayload: {
1015
- cipherSuite: "aes-256-gcm";
1016
993
  ciphertext: string;
1017
- ciphertextHash: string;
1018
994
  };
1019
995
  grants: {
1020
996
  accessLevel: "write" | "admin" | "read";
@@ -1104,9 +1080,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1104
1080
  };
1105
1081
  memberPolicy?: {
1106
1082
  encryptedPayload: {
1107
- cipherSuite: "aes-256-gcm";
1108
1083
  ciphertext: string;
1109
- ciphertextHash: string;
1110
1084
  };
1111
1085
  grants: {
1112
1086
  accessLevel: "write" | "admin" | "read";
@@ -1197,9 +1171,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1197
1171
  }, {
1198
1172
  groupPolicy: {
1199
1173
  encryptedPayload: {
1200
- cipherSuite: "aes-256-gcm";
1201
1174
  ciphertext: string;
1202
- ciphertextHash: string;
1203
1175
  };
1204
1176
  grants: {
1205
1177
  accessLevel: "write" | "admin" | "read";
@@ -1289,9 +1261,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1289
1261
  };
1290
1262
  organizationPolicy: {
1291
1263
  encryptedPayload: {
1292
- cipherSuite: "aes-256-gcm";
1293
1264
  ciphertext: string;
1294
- ciphertextHash: string;
1295
1265
  };
1296
1266
  grants: {
1297
1267
  accessLevel: "write" | "admin" | "read";
@@ -1381,9 +1351,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1381
1351
  };
1382
1352
  memberPolicy?: {
1383
1353
  encryptedPayload: {
1384
- cipherSuite: "aes-256-gcm";
1385
1354
  ciphertext: string;
1386
- ciphertextHash: string;
1387
1355
  };
1388
1356
  grants: {
1389
1357
  accessLevel: "write" | "admin" | "read";
@@ -1474,9 +1442,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1474
1442
  }, z.core.$ZodTypeInternals<{
1475
1443
  groupPolicy: {
1476
1444
  encryptedPayload: {
1477
- cipherSuite: "aes-256-gcm";
1478
1445
  ciphertext: string;
1479
- ciphertextHash: string;
1480
1446
  };
1481
1447
  grants: {
1482
1448
  accessLevel: "write" | "admin" | "read";
@@ -1566,9 +1532,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1566
1532
  };
1567
1533
  organizationPolicy: {
1568
1534
  encryptedPayload: {
1569
- cipherSuite: "aes-256-gcm";
1570
1535
  ciphertext: string;
1571
- ciphertextHash: string;
1572
1536
  };
1573
1537
  grants: {
1574
1538
  accessLevel: "write" | "admin" | "read";
@@ -1658,9 +1622,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1658
1622
  };
1659
1623
  memberPolicy?: {
1660
1624
  encryptedPayload: {
1661
- cipherSuite: "aes-256-gcm";
1662
1625
  ciphertext: string;
1663
- ciphertextHash: string;
1664
1626
  };
1665
1627
  grants: {
1666
1628
  accessLevel: "write" | "admin" | "read";
@@ -1751,9 +1713,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1751
1713
  }, {
1752
1714
  groupPolicy: {
1753
1715
  encryptedPayload: {
1754
- cipherSuite: "aes-256-gcm";
1755
1716
  ciphertext: string;
1756
- ciphertextHash: string;
1757
1717
  };
1758
1718
  grants: {
1759
1719
  accessLevel: "write" | "admin" | "read";
@@ -1843,9 +1803,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1843
1803
  };
1844
1804
  organizationPolicy: {
1845
1805
  encryptedPayload: {
1846
- cipherSuite: "aes-256-gcm";
1847
1806
  ciphertext: string;
1848
- ciphertextHash: string;
1849
1807
  };
1850
1808
  grants: {
1851
1809
  accessLevel: "write" | "admin" | "read";
@@ -1935,9 +1893,7 @@ export declare const CommitOrganizationGroupPolicyRequestSchema: z.ZodType<{
1935
1893
  };
1936
1894
  memberPolicy?: {
1937
1895
  encryptedPayload: {
1938
- cipherSuite: "aes-256-gcm";
1939
1896
  ciphertext: string;
1940
- ciphertextHash: string;
1941
1897
  };
1942
1898
  grants: {
1943
1899
  accessLevel: "write" | "admin" | "read";
@@ -44,10 +44,12 @@ const PrincipalStateRequestSchema = loosePlainObject({
44
44
  signerUserKeyFingerprint: z.string(),
45
45
  version: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),
46
46
  });
47
+ /**
48
+ * Only the ciphertext: the signed state's `payloadCiphertextHash` commits to
49
+ * it, and the cipher suite is fixed (#2903 P23).
50
+ */
47
51
  const PrincipalStateEncryptedPayloadRequestSchema = loosePlainObject({
48
- cipherSuite: z.literal("aes-256-gcm"),
49
52
  ciphertext: z.string(),
50
- ciphertextHash: z.string(),
51
53
  });
52
54
  const PrincipalMemberEnvelopeRequestSchema = loosePlainObject({
53
55
  kemCipherText: z.string(),
@@ -1 +1 @@
1
- {"version":3,"file":"principal.js","sourceRoot":"","sources":["principal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IAC9D,yBAAyB,EAAE,qBAAqB;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,EAAE,kBAAkB;CAC3B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oCAAoC,GAAG,gBAAgB,CAAC;IACnE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAC;AAMH,MAAM,4CAA4C,GAAG,gBAAgB,CAAC;IACpE,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AAW,CAAC,sCAAsC,CAAC;IAC/D,KAAK,EAAE,2BAA2B;CACnC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,0CAA0C,GAAG,gBAAgB,CAAC;IACzE,WAAW,EAAE,+BAA+B;IAC5C,YAAY,EAAE,+BAA+B,CAAC,QAAQ,EAAE;IACxD,kBAAkB,EAAE,wCAAwC;CAC7D,CAAC,CAAC;AAMH,MAAM,UAAU,2BAA2B,CACzC,KAAc;IAEd,OAAO,+BAA+B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,oCAAoC,CAClD,KAAc;IAEd,OAAO,wCAAwC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,KAAc;IAEd,OAAO,0CAA0C,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { registerJsonSchemaFragment } from \"../jsonSchema\";\nimport {\n arraySchema,\n boundedPositiveIntegerSchema,\n loosePlainObject,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n uuidV4StringSchema,\n} from \"../schema\";\nimport {\n CANONICAL_SIGNED_AT_PATTERN,\n isCanonicalSignedAt,\n SIGNED_AT_CONTRACT,\n} from \"../util\";\nimport { ContainerMutationRequestSchema } from \"./container\";\n\nconst PrincipalProjectionMemberRequestSchema = loosePlainObject({\n identityBundleFingerprint: sha256HexStringSchema,\n role: z.literal([\"member\", \"admin\"]),\n userId: uuidV4StringSchema,\n});\n\nexport type PrincipalProjectionMemberRequest = z.infer<\n typeof PrincipalProjectionMemberRequestSchema\n>;\n\nexport const PrincipalContainerGrantRequestSchema = loosePlainObject({\n accessLevel: z.literal([\"admin\", \"read\", \"write\"]),\n containerId: uuidV4StringSchema,\n});\n\nexport type PrincipalContainerGrantRequest = z.infer<\n typeof PrincipalContainerGrantRequestSchema\n>;\n\nconst PrincipalStateExternalAuthorityRequestSchema = loosePlainObject({\n keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n keyFingerprint: z.string(),\n principalId: uuidV4StringSchema,\n principalType: z.literal(\"group\"),\n stateHash: z.string(),\n version: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n});\n\nconst PrincipalStateRequestSchema = loosePlainObject({\n encapsulationPublicKey: z.string(),\n externalAuthority: PrincipalStateExternalAuthorityRequestSchema.nullable(),\n grantCount: nonNegativeIntegerSchema,\n grantRoot: z.string(),\n keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n keyFingerprint: z.string(),\n memberCount: nonNegativeIntegerSchema,\n memberEnvelopesRoot: z.string(),\n membershipMode: z.literal(\"projection\"),\n membershipRoot: z.string(),\n payloadCiphertextHash: z.string(),\n prevStateHash: z.string().nullable(),\n principalId: uuidV4StringSchema,\n principalType: z.literal([\"group\", \"organization\"]),\n projectionRoot: z.string(),\n signature: z.string(),\n signedAt: registerJsonSchemaFragment(\n z.string().refine(isCanonicalSignedAt, {\n message: `signedAt must be ${SIGNED_AT_CONTRACT}`,\n }),\n { pattern: CANONICAL_SIGNED_AT_PATTERN.source, type: \"string\" },\n ),\n signerUserId: uuidV4StringSchema,\n signerUserKeyFingerprint: z.string(),\n version: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n});\n\nexport type PrincipalStateRequest = z.infer<typeof PrincipalStateRequestSchema>;\n\nconst PrincipalStateEncryptedPayloadRequestSchema = loosePlainObject({\n cipherSuite: z.literal(\"aes-256-gcm\"),\n ciphertext: z.string(),\n ciphertextHash: z.string(),\n});\n\nexport type PrincipalStateEncryptedPayloadRequest = z.infer<\n typeof PrincipalStateEncryptedPayloadRequestSchema\n>;\n\nconst PrincipalMemberEnvelopeRequestSchema = loosePlainObject({\n kemCipherText: z.string(),\n memberKeyFingerprint: z.string(),\n userId: uuidV4StringSchema,\n wrappedKey: z.string(),\n});\n\nexport type PrincipalMemberEnvelopeRequest = z.infer<\n typeof PrincipalMemberEnvelopeRequestSchema\n>;\n\nexport const PutPrincipalPolicyRequestSchema = loosePlainObject({\n containerMutations: arraySchema(ContainerMutationRequestSchema).optional(),\n encryptedPayload: PrincipalStateEncryptedPayloadRequestSchema,\n grants: arraySchema(PrincipalContainerGrantRequestSchema),\n memberEnvelopes: arraySchema(PrincipalMemberEnvelopeRequestSchema),\n projection: arraySchema(PrincipalProjectionMemberRequestSchema),\n state: PrincipalStateRequestSchema,\n});\n\nexport type PutPrincipalPolicyRequest = z.infer<\n typeof PutPrincipalPolicyRequestSchema\n>;\n\nexport const OrganizationPrincipalPolicyRequestSchema = loosePlainObject({\n containerMutations: arraySchema(ContainerMutationRequestSchema, 0).optional(),\n encryptedPayload: PrincipalStateEncryptedPayloadRequestSchema,\n grants: arraySchema(PrincipalContainerGrantRequestSchema),\n memberEnvelopes: arraySchema(PrincipalMemberEnvelopeRequestSchema),\n projection: arraySchema(PrincipalProjectionMemberRequestSchema),\n state: PrincipalStateRequestSchema,\n});\n\nexport type OrganizationPrincipalPolicyRequest = z.infer<\n typeof OrganizationPrincipalPolicyRequestSchema\n>;\n\nexport const CommitOrganizationGroupPolicyRequestSchema = loosePlainObject({\n groupPolicy: PutPrincipalPolicyRequestSchema,\n memberPolicy: PutPrincipalPolicyRequestSchema.optional(),\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type CommitOrganizationGroupPolicyRequest = z.infer<\n typeof CommitOrganizationGroupPolicyRequestSchema\n>;\n\nexport function isPutPrincipalPolicyRequest(\n value: unknown,\n): value is PutPrincipalPolicyRequest {\n return PutPrincipalPolicyRequestSchema.safeParse(value).success;\n}\n\nexport function isOrganizationPrincipalPolicyRequest(\n value: unknown,\n): value is OrganizationPrincipalPolicyRequest {\n return OrganizationPrincipalPolicyRequestSchema.safeParse(value).success;\n}\n\nexport function isCommitOrganizationGroupPolicyRequest(\n value: unknown,\n): value is CommitOrganizationGroupPolicyRequest {\n return CommitOrganizationGroupPolicyRequestSchema.safeParse(value).success;\n}\n"]}
1
+ {"version":3,"file":"principal.js","sourceRoot":"","sources":["principal.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,0BAA0B,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EACL,WAAW,EACX,4BAA4B,EAC5B,gBAAgB,EAChB,wBAAwB,EACxB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,2BAA2B,EAC3B,mBAAmB,EACnB,kBAAkB,GACnB,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IAC9D,yBAAyB,EAAE,qBAAqB;IAChD,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;IACpC,MAAM,EAAE,kBAAkB;CAC3B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,oCAAoC,GAAG,gBAAgB,CAAC;IACnE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,CAAC,OAAO,EAAE,MAAM,EAAE,OAAO,CAAC,CAAC;IAClD,WAAW,EAAE,kBAAkB;CAChC,CAAC,CAAC;AAMH,MAAM,4CAA4C,GAAG,gBAAgB,CAAC;IACpE,QAAQ,EAAE,4BAA4B,CAAC,MAAM,CAAC,gBAAgB,CAAC;IAC/D,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,WAAW,EAAE,kBAAkB;IAC/B,aAAa,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,4BAA4B,CAAC,MAAM,CAAC,gBAAgB,CAAC;CAC/D,CAAC,CAAC;AAEH,MAAM,2BAA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IAEd,OAAO,wCAAwC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,sCAAsC,CACpD,KAAc;IAEd,OAAO,0CAA0C,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC7E,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { registerJsonSchemaFragment } from \"../jsonSchema\";\nimport {\n arraySchema,\n boundedPositiveIntegerSchema,\n loosePlainObject,\n nonNegativeIntegerSchema,\n sha256HexStringSchema,\n uuidV4StringSchema,\n} from \"../schema\";\nimport {\n CANONICAL_SIGNED_AT_PATTERN,\n isCanonicalSignedAt,\n SIGNED_AT_CONTRACT,\n} from \"../util\";\nimport { ContainerMutationRequestSchema } from \"./container\";\n\nconst PrincipalProjectionMemberRequestSchema = loosePlainObject({\n identityBundleFingerprint: sha256HexStringSchema,\n role: z.literal([\"member\", \"admin\"]),\n userId: uuidV4StringSchema,\n});\n\nexport type PrincipalProjectionMemberRequest = z.infer<\n typeof PrincipalProjectionMemberRequestSchema\n>;\n\nexport const PrincipalContainerGrantRequestSchema = loosePlainObject({\n accessLevel: z.literal([\"admin\", \"read\", \"write\"]),\n containerId: uuidV4StringSchema,\n});\n\nexport type PrincipalContainerGrantRequest = z.infer<\n typeof PrincipalContainerGrantRequestSchema\n>;\n\nconst PrincipalStateExternalAuthorityRequestSchema = loosePlainObject({\n keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n keyFingerprint: z.string(),\n principalId: uuidV4StringSchema,\n principalType: z.literal(\"group\"),\n stateHash: z.string(),\n version: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n});\n\nconst PrincipalStateRequestSchema = loosePlainObject({\n encapsulationPublicKey: z.string(),\n externalAuthority: PrincipalStateExternalAuthorityRequestSchema.nullable(),\n grantCount: nonNegativeIntegerSchema,\n grantRoot: z.string(),\n keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n keyFingerprint: z.string(),\n memberCount: nonNegativeIntegerSchema,\n memberEnvelopesRoot: z.string(),\n membershipMode: z.literal(\"projection\"),\n membershipRoot: z.string(),\n payloadCiphertextHash: z.string(),\n prevStateHash: z.string().nullable(),\n principalId: uuidV4StringSchema,\n principalType: z.literal([\"group\", \"organization\"]),\n projectionRoot: z.string(),\n signature: z.string(),\n signedAt: registerJsonSchemaFragment(\n z.string().refine(isCanonicalSignedAt, {\n message: `signedAt must be ${SIGNED_AT_CONTRACT}`,\n }),\n { pattern: CANONICAL_SIGNED_AT_PATTERN.source, type: \"string\" },\n ),\n signerUserId: uuidV4StringSchema,\n signerUserKeyFingerprint: z.string(),\n version: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),\n});\n\nexport type PrincipalStateRequest = z.infer<typeof PrincipalStateRequestSchema>;\n\n/**\n * Only the ciphertext: the signed state's `payloadCiphertextHash` commits to\n * it, and the cipher suite is fixed (#2903 P23).\n */\nconst PrincipalStateEncryptedPayloadRequestSchema = loosePlainObject({\n ciphertext: z.string(),\n});\n\nexport type PrincipalStateEncryptedPayloadRequest = z.infer<\n typeof PrincipalStateEncryptedPayloadRequestSchema\n>;\n\nconst PrincipalMemberEnvelopeRequestSchema = loosePlainObject({\n kemCipherText: z.string(),\n memberKeyFingerprint: z.string(),\n userId: uuidV4StringSchema,\n wrappedKey: z.string(),\n});\n\nexport type PrincipalMemberEnvelopeRequest = z.infer<\n typeof PrincipalMemberEnvelopeRequestSchema\n>;\n\nexport const PutPrincipalPolicyRequestSchema = loosePlainObject({\n containerMutations: arraySchema(ContainerMutationRequestSchema).optional(),\n encryptedPayload: PrincipalStateEncryptedPayloadRequestSchema,\n grants: arraySchema(PrincipalContainerGrantRequestSchema),\n memberEnvelopes: arraySchema(PrincipalMemberEnvelopeRequestSchema),\n projection: arraySchema(PrincipalProjectionMemberRequestSchema),\n state: PrincipalStateRequestSchema,\n});\n\nexport type PutPrincipalPolicyRequest = z.infer<\n typeof PutPrincipalPolicyRequestSchema\n>;\n\nexport const OrganizationPrincipalPolicyRequestSchema = loosePlainObject({\n containerMutations: arraySchema(ContainerMutationRequestSchema, 0).optional(),\n encryptedPayload: PrincipalStateEncryptedPayloadRequestSchema,\n grants: arraySchema(PrincipalContainerGrantRequestSchema),\n memberEnvelopes: arraySchema(PrincipalMemberEnvelopeRequestSchema),\n projection: arraySchema(PrincipalProjectionMemberRequestSchema),\n state: PrincipalStateRequestSchema,\n});\n\nexport type OrganizationPrincipalPolicyRequest = z.infer<\n typeof OrganizationPrincipalPolicyRequestSchema\n>;\n\nexport const CommitOrganizationGroupPolicyRequestSchema = loosePlainObject({\n groupPolicy: PutPrincipalPolicyRequestSchema,\n memberPolicy: PutPrincipalPolicyRequestSchema.optional(),\n organizationPolicy: OrganizationPrincipalPolicyRequestSchema,\n});\n\nexport type CommitOrganizationGroupPolicyRequest = z.infer<\n typeof CommitOrganizationGroupPolicyRequestSchema\n>;\n\nexport function isPutPrincipalPolicyRequest(\n value: unknown,\n): value is PutPrincipalPolicyRequest {\n return PutPrincipalPolicyRequestSchema.safeParse(value).success;\n}\n\nexport function isOrganizationPrincipalPolicyRequest(\n value: unknown,\n): value is OrganizationPrincipalPolicyRequest {\n return OrganizationPrincipalPolicyRequestSchema.safeParse(value).success;\n}\n\nexport function isCommitOrganizationGroupPolicyRequest(\n value: unknown,\n): value is CommitOrganizationGroupPolicyRequest {\n return CommitOrganizationGroupPolicyRequestSchema.safeParse(value).success;\n}\n"]}
@@ -6,9 +6,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
6
6
  groupId: string;
7
7
  initialGroupPolicy: {
8
8
  encryptedPayload: {
9
- cipherSuite: "aes-256-gcm";
10
9
  ciphertext: string;
11
- ciphertextHash: string;
12
10
  };
13
11
  grants: {
14
12
  accessLevel: "write" | "admin" | "read";
@@ -101,9 +99,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
101
99
  groupId: string;
102
100
  initialGroupPolicy: {
103
101
  encryptedPayload: {
104
- cipherSuite: "aes-256-gcm";
105
102
  ciphertext: string;
106
- ciphertextHash: string;
107
103
  };
108
104
  grants: {
109
105
  accessLevel: "write" | "admin" | "read";
@@ -386,9 +382,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
386
382
  };
387
383
  initialOrganizationPolicy: {
388
384
  encryptedPayload: {
389
- cipherSuite: "aes-256-gcm";
390
385
  ciphertext: string;
391
- ciphertextHash: string;
392
386
  };
393
387
  grants: {
394
388
  accessLevel: "write" | "admin" | "read";
@@ -1355,9 +1349,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
1355
1349
  groupId: string;
1356
1350
  initialGroupPolicy: {
1357
1351
  encryptedPayload: {
1358
- cipherSuite: "aes-256-gcm";
1359
1352
  ciphertext: string;
1360
- ciphertextHash: string;
1361
1353
  };
1362
1354
  grants: {
1363
1355
  accessLevel: "write" | "admin" | "read";
@@ -1450,9 +1442,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
1450
1442
  groupId: string;
1451
1443
  initialGroupPolicy: {
1452
1444
  encryptedPayload: {
1453
- cipherSuite: "aes-256-gcm";
1454
1445
  ciphertext: string;
1455
- ciphertextHash: string;
1456
1446
  };
1457
1447
  grants: {
1458
1448
  accessLevel: "write" | "admin" | "read";
@@ -1735,9 +1725,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
1735
1725
  };
1736
1726
  initialOrganizationPolicy: {
1737
1727
  encryptedPayload: {
1738
- cipherSuite: "aes-256-gcm";
1739
1728
  ciphertext: string;
1740
- ciphertextHash: string;
1741
1729
  };
1742
1730
  grants: {
1743
1731
  accessLevel: "write" | "admin" | "read";
@@ -2704,9 +2692,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
2704
2692
  groupId: string;
2705
2693
  initialGroupPolicy: {
2706
2694
  encryptedPayload: {
2707
- cipherSuite: "aes-256-gcm";
2708
2695
  ciphertext: string;
2709
- ciphertextHash: string;
2710
2696
  };
2711
2697
  grants: {
2712
2698
  accessLevel: "write" | "admin" | "read";
@@ -2799,9 +2785,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
2799
2785
  groupId: string;
2800
2786
  initialGroupPolicy: {
2801
2787
  encryptedPayload: {
2802
- cipherSuite: "aes-256-gcm";
2803
2788
  ciphertext: string;
2804
- ciphertextHash: string;
2805
2789
  };
2806
2790
  grants: {
2807
2791
  accessLevel: "write" | "admin" | "read";
@@ -3084,9 +3068,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
3084
3068
  };
3085
3069
  initialOrganizationPolicy: {
3086
3070
  encryptedPayload: {
3087
- cipherSuite: "aes-256-gcm";
3088
3071
  ciphertext: string;
3089
- ciphertextHash: string;
3090
3072
  };
3091
3073
  grants: {
3092
3074
  accessLevel: "write" | "admin" | "read";
@@ -4053,9 +4035,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
4053
4035
  groupId: string;
4054
4036
  initialGroupPolicy: {
4055
4037
  encryptedPayload: {
4056
- cipherSuite: "aes-256-gcm";
4057
4038
  ciphertext: string;
4058
- ciphertextHash: string;
4059
4039
  };
4060
4040
  grants: {
4061
4041
  accessLevel: "write" | "admin" | "read";
@@ -4148,9 +4128,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
4148
4128
  groupId: string;
4149
4129
  initialGroupPolicy: {
4150
4130
  encryptedPayload: {
4151
- cipherSuite: "aes-256-gcm";
4152
4131
  ciphertext: string;
4153
- ciphertextHash: string;
4154
4132
  };
4155
4133
  grants: {
4156
4134
  accessLevel: "write" | "admin" | "read";
@@ -4433,9 +4411,7 @@ export declare const RegistrationRequestSchema: z.ZodType<{
4433
4411
  };
4434
4412
  initialOrganizationPolicy: {
4435
4413
  encryptedPayload: {
4436
- cipherSuite: "aes-256-gcm";
4437
4414
  ciphertext: string;
4438
- ciphertextHash: string;
4439
4415
  };
4440
4416
  grants: {
4441
4417
  accessLevel: "write" | "admin" | "read";
@@ -993,13 +993,7 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
993
993
  version: number;
994
994
  };
995
995
  payload: {
996
- cipherSuite: "aes-256-gcm";
997
996
  ciphertext: string;
998
- ciphertextHash: string;
999
- createdAt: string;
1000
- principalId: string;
1001
- principalType: "group" | "organization";
1002
- stateHash: string;
1003
997
  };
1004
998
  }[];
1005
999
  groups: {
@@ -1079,13 +1073,7 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
1079
1073
  version: number;
1080
1074
  };
1081
1075
  payload: {
1082
- cipherSuite: "aes-256-gcm";
1083
1076
  ciphertext: string;
1084
- ciphertextHash: string;
1085
- createdAt: string;
1086
- principalId: string;
1087
- principalType: "group" | "organization";
1088
- stateHash: string;
1089
1077
  };
1090
1078
  }[];
1091
1079
  groups: {
@@ -1165,13 +1153,7 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
1165
1153
  version: number;
1166
1154
  };
1167
1155
  payload: {
1168
- cipherSuite: "aes-256-gcm";
1169
1156
  ciphertext: string;
1170
- ciphertextHash: string;
1171
- createdAt: string;
1172
- principalId: string;
1173
- principalType: "group" | "organization";
1174
- stateHash: string;
1175
1157
  };
1176
1158
  }[];
1177
1159
  groups: {
@@ -1251,13 +1233,7 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
1251
1233
  version: number;
1252
1234
  };
1253
1235
  payload: {
1254
- cipherSuite: "aes-256-gcm";
1255
1236
  ciphertext: string;
1256
- ciphertextHash: string;
1257
- createdAt: string;
1258
- principalId: string;
1259
- principalType: "group" | "organization";
1260
- stateHash: string;
1261
1237
  };
1262
1238
  }[];
1263
1239
  groups: {
@@ -1457,13 +1433,7 @@ export declare const ContainerWriterProjectionWireResponseSchema: z.ZodType<{
1457
1433
  version: number;
1458
1434
  };
1459
1435
  payload: {
1460
- cipherSuite: "aes-256-gcm";
1461
1436
  ciphertext: string;
1462
- ciphertextHash: string;
1463
- createdAt: string;
1464
- principalId: string;
1465
- principalType: "group" | "organization";
1466
- stateHash: string;
1467
1437
  } | null;
1468
1438
  }[];
1469
1439
  groups: {
@@ -1539,13 +1509,7 @@ export declare const ContainerWriterProjectionWireResponseSchema: z.ZodType<{
1539
1509
  version: number;
1540
1510
  };
1541
1511
  payload: {
1542
- cipherSuite: "aes-256-gcm";
1543
1512
  ciphertext: string;
1544
- ciphertextHash: string;
1545
- createdAt: string;
1546
- principalId: string;
1547
- principalType: "group" | "organization";
1548
- stateHash: string;
1549
1513
  } | null;
1550
1514
  }[];
1551
1515
  groups: {
@@ -1621,13 +1585,7 @@ export declare const ContainerWriterProjectionWireResponseSchema: z.ZodType<{
1621
1585
  version: number;
1622
1586
  };
1623
1587
  payload: {
1624
- cipherSuite: "aes-256-gcm";
1625
1588
  ciphertext: string;
1626
- ciphertextHash: string;
1627
- createdAt: string;
1628
- principalId: string;
1629
- principalType: "group" | "organization";
1630
- stateHash: string;
1631
1589
  } | null;
1632
1590
  }[];
1633
1591
  groups: {
@@ -1703,13 +1661,7 @@ export declare const ContainerWriterProjectionWireResponseSchema: z.ZodType<{
1703
1661
  version: number;
1704
1662
  };
1705
1663
  payload: {
1706
- cipherSuite: "aes-256-gcm";
1707
1664
  ciphertext: string;
1708
- ciphertextHash: string;
1709
- createdAt: string;
1710
- principalId: string;
1711
- principalType: "group" | "organization";
1712
- stateHash: string;
1713
1665
  } | null;
1714
1666
  }[];
1715
1667
  groups: {