@tearleads/client-sdk 0.1.19 → 0.1.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/organizations/index.js +2 -2
- package/client/organizations/index.js.map +1 -1
- package/client/organizations/organizationHistory.js +66 -0
- package/client/organizations/organizationHistory.js.map +1 -0
- package/client/organizations/organizationReadModels.d.ts +1 -1
- package/client/organizations/organizationReadModels.js +7 -27
- package/client/organizations/organizationReadModels.js.map +1 -1
- package/client/organizations/organizationsTypes.d.ts +1 -1
- package/client/organizations/organizationsTypes.js.map +1 -1
- package/data/containers/shared/types.d.ts +2 -2
- package/data/containers/shared/types.js.map +1 -1
- package/data/documents/shared/syncSubmitFailure.d.ts +2 -2
- package/data/documents/shared/syncSubmitFailure.js.map +1 -1
- package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js +34 -8
- package/data/keyingProjectionVerification/documentPurgeCheckpointCurrency.js.map +1 -1
- package/data/keyingProjectionVerification/documentPurgeDocumentChainVerification.js.map +1 -1
- package/data/keyingProjectionVerification/documentPurgePolicyCheckpoints.js +17 -0
- package/data/keyingProjectionVerification/documentPurgePolicyCheckpoints.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgePolicyCurrency.js +55 -0
- package/data/keyingProjectionVerification/documentPurgePolicyCurrency.js.map +1 -0
- package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js +25 -13
- package/data/keyingProjectionVerification/documentPurgePrincipalEvidence.js.map +1 -1
- package/data/keyingProjectionVerification/documentPurgeProofVerification.d.ts +5 -3
- package/data/keyingProjectionVerification/documentPurgeProofVerification.js +52 -8
- package/data/keyingProjectionVerification/documentPurgeProofVerification.js.map +1 -1
- package/data/keyingProjectionVerification/projectionPolicyEvidence.js.map +1 -1
- package/data/keyingProjectionVerification/types.d.ts +4 -0
- package/data/keyingProjectionVerification/types.js.map +1 -1
- package/data/persistence/organizations/organizationReadModelProjection.js +2 -2
- package/data/persistence/organizations/organizationReadModelProjection.js.map +1 -1
- package/data/persistence/principalAuthorizationCheckpoints.js +1 -1
- package/data/persistence/principalAuthorizationCheckpoints.js.map +1 -1
- package/data/persistence/principalCurrentAcknowledgementPersistence.d.ts +1 -0
- package/data/persistence/principalCurrentAcknowledgementPersistence.js +58 -12
- package/data/persistence/principalCurrentAcknowledgementPersistence.js.map +1 -1
- package/data/persistence/principalHistoryEvidencePersistence.d.ts +2 -0
- package/data/persistence/principalHistoryEvidencePersistence.js +2 -0
- package/data/persistence/principalHistoryEvidencePersistence.js.map +1 -1
- package/data/persistence/principalHistoryIncompleteRetention.js +32 -0
- package/data/persistence/principalHistoryIncompleteRetention.js.map +1 -0
- package/data/persistence/principalHistoryNodeRetention.js +76 -0
- package/data/persistence/principalHistoryNodeRetention.js.map +1 -0
- package/data/persistence/principalHistoryPrefixPersistence.d.ts +1 -0
- package/data/persistence/principalHistoryPrefixPersistence.js +30 -1
- package/data/persistence/principalHistoryPrefixPersistence.js.map +1 -1
- package/data/persistence/principalHistoryRootOwnership.js +71 -0
- package/data/persistence/principalHistoryRootOwnership.js.map +1 -0
- package/data/persistence/principalHistoryStagePersistence.js +45 -0
- package/data/persistence/principalHistoryStagePersistence.js.map +1 -1
- package/data/persistence/principalHistoryStageRetention.js +44 -0
- package/data/persistence/principalHistoryStageRetention.js.map +1 -0
- package/data/persistence/principalHistoryUnpublishedRetention.js +71 -0
- package/data/persistence/principalHistoryUnpublishedRetention.js.map +1 -0
- package/data/persistence/principalKeyEnvelopeArchivePersistence.js +63 -0
- package/data/persistence/principalKeyEnvelopeArchivePersistence.js.map +1 -0
- package/data/persistence/principalKeyEnvelopeCandidates.js +10 -1
- package/data/persistence/principalKeyEnvelopeCandidates.js.map +1 -1
- package/data/persistence/principalPolicyReferencePersistence.js +2 -2
- package/data/persistence/principalPolicyReferencePersistence.js.map +1 -1
- package/data/sqlite/principalHistoryEvidenceSchema.js +2 -0
- package/data/sqlite/principalHistoryEvidenceSchema.js.map +1 -1
- package/data/sqlite/principalHistoryNodeRetentionSchema.js +30 -0
- package/data/sqlite/principalHistoryNodeRetentionSchema.js.map +1 -0
- package/data/sqlite/principalHistoryRetentionSchema.js +40 -0
- package/data/sqlite/principalHistoryRetentionSchema.js.map +1 -0
- package/data/sqlite/principalHistoryStageSchema.js +2 -0
- package/data/sqlite/principalHistoryStageSchema.js.map +1 -1
- package/data/sqlite/schema.d.ts +453 -0
- package/data/sqlite/schema.js +6 -0
- package/data/sqlite/schema.js.map +1 -1
- package/data/sqlite/sqliteCommitGuards.js +49 -0
- package/data/sqlite/sqliteCommitGuards.js.map +1 -0
- package/data/sqlite/sqlitePersistenceRuntime.js +14 -2
- package/data/sqlite/sqlitePersistenceRuntime.js.map +1 -1
- package/index.d.ts +3 -1
- package/index.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +60 -137
- package/internal/api-client/ApiClient.js +7 -5
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/apiRequestRuntime.js +7 -7
- package/internal/api-client/apiRequestRuntime.js.map +1 -1
- package/internal/api-client/documentPurge.js +25 -0
- package/internal/api-client/documentPurge.js.map +1 -0
- package/internal/api-client/organizationPolicyHistory.d.ts +53 -0
- package/internal/api-client/organizationPolicyHistory.js +15 -0
- package/internal/api-client/organizationPolicyHistory.js.map +1 -0
- package/internal/api-client/requestInternals.js +4 -4
- package/internal/api-client/requestInternals.js.map +1 -1
- package/internal/api-client/types.d.ts +2 -2
- package/internal/api-client/types.js.map +1 -1
- package/internal/crypto/keying/accessEvent.js +11 -9
- package/internal/crypto/keying/accessEvent.js.map +1 -1
- package/internal/crypto/keying/principalPolicyChainEntry.js +3 -0
- package/internal/crypto/keying/principalPolicyChainEntry.js.map +1 -1
- package/internal/crypto/keying/principalPolicyHistory.js +4 -0
- package/internal/crypto/keying/principalPolicyHistory.js.map +1 -1
- package/internal/crypto/keying/principalPolicyHistoryTypes.d.ts +2 -0
- package/internal/crypto/keying/principalPolicyHistoryTypes.js.map +1 -1
- package/internal/crypto/keying/principalPolicyTransition.d.ts +2 -1
- package/internal/crypto/keying/principalPolicyTransition.js +5 -0
- package/internal/crypto/keying/principalPolicyTransition.js.map +1 -1
- package/internal/crypto/principalState.js +2 -2
- package/internal/crypto/principalState.js.map +1 -1
- package/internal/validators/operation/containerMutations.d.ts +448 -6528
- package/internal/validators/operation/documentMutations.d.ts +323 -579
- package/internal/validators/operation/documentMutations.js +22 -4
- package/internal/validators/operation/documentMutations.js.map +1 -1
- package/internal/validators/operation/documentSync.d.ts +26 -406
- package/internal/validators/operation/organizationPolicyHistory.d.ts +188 -310
- package/internal/validators/operation/organizationPolicyHistory.js +17 -3
- package/internal/validators/operation/organizationPolicyHistory.js.map +1 -1
- package/internal/validators/operation/organizations.d.ts +2 -2
- package/internal/validators/request/principal.js +2 -2
- package/internal/validators/request/principal.js.map +1 -1
- package/internal/validators/response/containerMutationError.d.ts +28 -408
- package/internal/validators/response/documentMutation.d.ts +232 -544
- package/internal/validators/response/documentMutation.js +1 -2
- package/internal/validators/response/documentMutation.js.map +1 -1
- package/internal/validators/response/documentSyncError.d.ts +26 -406
- package/internal/validators/response/documentSyncError.js +4 -3
- package/internal/validators/response/documentSyncError.js.map +1 -1
- package/internal/validators/response/index.d.ts +1 -1
- package/internal/validators/response/index.js +1 -1
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/organization.d.ts +1 -1
- package/internal/validators/response/organization.js +1 -1
- package/internal/validators/response/organization.js.map +1 -1
- package/internal/validators/response/organizationPolicyHistory.d.ts +127 -309
- package/internal/validators/response/organizationPolicyHistory.js +10 -4
- package/internal/validators/response/organizationPolicyHistory.js.map +1 -1
- package/internal/validators/response/organizationReadModel.d.ts +5 -5
- package/internal/validators/response/principal.d.ts +28 -408
- package/internal/validators/response/principal.js +3 -1
- package/internal/validators/response/principal.js.map +1 -1
- package/internal/validators/response/principalReference.d.ts +1 -1
- package/internal/validators/response/principalReference.js +1 -1
- package/internal/validators/response/principalReference.js.map +1 -1
- package/internal/validators/response/principalSnapshot.js +4 -4
- package/internal/validators/response/principalSnapshot.js.map +1 -1
- package/internal/validators/util/index.d.ts +1 -1
- package/internal/validators/util/index.js +1 -1
- package/internal/validators/util/index.js.map +1 -1
- package/internal/validators/util/principalHistoryWire.d.ts +2 -0
- package/internal/validators/util/principalHistoryWire.js +2 -0
- package/internal/validators/util/principalHistoryWire.js.map +1 -1
- package/package.json +1 -1
- package/workflows/container-contents/container-state/createWithMetadata.js +19 -49
- package/workflows/container-contents/container-state/createWithMetadata.js.map +1 -1
- package/workflows/container-contents/container-state/groupGrantVerification.js +29 -0
- package/workflows/container-contents/container-state/groupGrantVerification.js.map +1 -1
- package/workflows/container-contents/container-state/groupShareEpoch.js +33 -0
- package/workflows/container-contents/container-state/groupShareEpoch.js.map +1 -0
- package/workflows/container-contents/container-state/remote.js +4 -1
- package/workflows/container-contents/container-state/remote.js.map +1 -1
- package/workflows/container-contents/container-state/share.js +2 -24
- package/workflows/container-contents/container-state/share.js.map +1 -1
- package/workflows/container-contents/documentTombstoneEvidence.js +23 -12
- package/workflows/container-contents/documentTombstoneEvidence.js.map +1 -1
- package/workflows/containers/child/create.js +1 -3
- package/workflows/containers/child/create.js.map +1 -1
- package/workflows/containers/child/createSubmission.d.ts +1 -3
- package/workflows/containers/child/createSubmission.js +13 -15
- package/workflows/containers/child/createSubmission.js.map +1 -1
- package/workflows/containers/child/currentShareGrantMutation.js +82 -0
- package/workflows/containers/child/currentShareGrantMutation.js.map +1 -0
- package/workflows/containers/child/currentSharePrincipalPolicy.js +83 -0
- package/workflows/containers/child/currentSharePrincipalPolicy.js.map +1 -0
- package/workflows/containers/child/mutationSubmit.js +1 -1
- package/workflows/containers/child/mutationSubmit.js.map +1 -1
- package/workflows/containers/child/runtimeCurrentGroupShare.js +82 -0
- package/workflows/containers/child/runtimeCurrentGroupShare.js.map +1 -0
- package/workflows/containers/child/share.js +1 -14
- package/workflows/containers/child/share.js.map +1 -1
- package/workflows/containers/child/shareProjection.js +15 -0
- package/workflows/containers/child/shareProjection.js.map +1 -0
- package/workflows/containers/mutationResponse.js +1 -1
- package/workflows/containers/mutationResponse.js.map +1 -1
- package/workflows/documents/purge.d.ts +3 -0
- package/workflows/documents/purge.js +13 -0
- package/workflows/documents/purge.js.map +1 -1
- package/workflows/documents/sync.js +2 -0
- package/workflows/documents/sync.js.map +1 -1
- package/workflows/documents/syncFailures.js +2 -2
- package/workflows/documents/syncFailures.js.map +1 -1
- package/workflows/documents/syncPolicyRepair.js +15 -13
- package/workflows/documents/syncPolicyRepair.js.map +1 -1
- package/workflows/organizations/initialPrincipalCurrentPublication.js +2 -0
- package/workflows/organizations/initialPrincipalCurrentPublication.js.map +1 -1
- package/workflows/organizations/loadPolicyHistoryDetails.js +31 -32
- package/workflows/organizations/loadPolicyHistoryDetails.js.map +1 -1
- package/workflows/organizations/organizationPolicyHistoryDetails.js +37 -15
- package/workflows/organizations/organizationPolicyHistoryDetails.js.map +1 -1
- package/workflows/organizations/organizationPolicyHistoryVerification.js +56 -69
- package/workflows/organizations/organizationPolicyHistoryVerification.js.map +1 -1
- package/workflows/organizations/policyHistoryCache.js +5 -2
- package/workflows/organizations/policyHistoryCache.js.map +1 -1
- package/workflows/organizations/policyHistoryTypes.d.ts +1 -0
- package/workflows/organizations/policyHistoryTypes.js.map +1 -1
- package/workflows/organizations/retainAcknowledgedPrincipalCurrents.js +4 -1
- package/workflows/organizations/retainAcknowledgedPrincipalCurrents.js.map +1 -1
- package/workflows/principals/loadRecoveredPrincipalHistoryPage.d.ts +0 -1
- package/workflows/principals/loadRecoveredPrincipalHistoryPage.js +1 -2
- package/workflows/principals/loadRecoveredPrincipalHistoryPage.js.map +1 -1
- package/workflows/principals/policyRepair.js +38 -0
- package/workflows/principals/policyRepair.js.map +1 -0
- package/workflows/principals/policyRepairBudget.d.ts +2 -2
- package/workflows/principals/policyRepairBudget.js +3 -3
- package/workflows/principals/policyRepairBudget.js.map +1 -1
- package/workflows/principals/principalHistoryRecoveryPrefix.js +4 -0
- package/workflows/principals/principalHistoryRecoveryPrefix.js.map +1 -1
- package/workflows/principals/principalRecoveryLocalPreference.js +3 -2
- package/workflows/principals/principalRecoveryLocalPreference.js.map +1 -1
- package/workflows/principals/publicPrincipalHistoryPage.js +1 -0
- package/workflows/principals/publicPrincipalHistoryPage.js.map +1 -1
- package/workflows/principals/publicPrincipalHistoryProgress.js +1 -0
- package/workflows/principals/publicPrincipalHistoryProgress.js.map +1 -1
- package/workflows/principals/publicPrincipalHistoryTypes.d.ts +2 -0
- package/workflows/principals/publicPrincipalHistoryTypes.js.map +1 -1
- package/workflows/principals/publicProjectionPrincipal.js +1 -0
- package/workflows/principals/publicProjectionPrincipal.js.map +1 -1
- package/workflows/principals/recoverPrincipalHistoryPage.js +2 -1
- package/workflows/principals/recoverPrincipalHistoryPage.js.map +1 -1
- package/workflows/principals/recoverPrincipalPolicyHistory.js +1 -0
- package/workflows/principals/recoverPrincipalPolicyHistory.js.map +1 -1
- package/workflows/principals/recoverPublicPrincipalHistory.js +2 -0
- package/workflows/principals/recoverPublicPrincipalHistory.js.map +1 -1
- package/workflows/principals/runtimePolicyRecovery.js +2 -1
- package/workflows/principals/runtimePolicyRecovery.js.map +1 -1
- package/workflows/principals/selectPublicPrincipalHistory.js +21 -15
- package/workflows/principals/selectPublicPrincipalHistory.js.map +1 -1
- package/workflows/sync/remoteResetPrincipalScope.js +6 -0
- package/workflows/sync/remoteResetPrincipalScope.js.map +1 -1
- package/data/keyingProjectionVerification/principalPolicySnapshotVerification.js +0 -208
- package/data/keyingProjectionVerification/principalPolicySnapshotVerification.js.map +0 -1
- package/data/keyingProjectionVerification/snapshotVerificationCache.js +0 -39
- package/data/keyingProjectionVerification/snapshotVerificationCache.js.map +0 -1
- package/workflows/containers/child/policyRepair.js +0 -23
- package/workflows/containers/child/policyRepair.js.map +0 -1
|
@@ -7976,7 +7976,7 @@ export declare const getOrganizationReadModelOperation: Omit<{
|
|
|
7976
7976
|
organizationPolicy: z.ZodOptional<z.ZodObject<{
|
|
7977
7977
|
currentState: z.ZodObject<{
|
|
7978
7978
|
stateHash: z.ZodString;
|
|
7979
|
-
keyEpoch: z.
|
|
7979
|
+
keyEpoch: z.ZodCustom<number, number>;
|
|
7980
7980
|
keyFingerprint: z.ZodString;
|
|
7981
7981
|
memberCount: z.ZodCustom<number, number>;
|
|
7982
7982
|
version: z.ZodCustom<number, number>;
|
|
@@ -8125,7 +8125,7 @@ export declare const getOrganizationReadModelOperation: Omit<{
|
|
|
8125
8125
|
organizationPolicy: z.ZodObject<{
|
|
8126
8126
|
currentState: z.ZodObject<{
|
|
8127
8127
|
stateHash: z.ZodString;
|
|
8128
|
-
keyEpoch: z.
|
|
8128
|
+
keyEpoch: z.ZodCustom<number, number>;
|
|
8129
8129
|
keyFingerprint: z.ZodString;
|
|
8130
8130
|
memberCount: z.ZodCustom<number, number>;
|
|
8131
8131
|
version: z.ZodCustom<number, number>;
|
|
@@ -12,7 +12,7 @@ export const PrincipalContainerGrantRequestSchema = loosePlainObject({
|
|
|
12
12
|
containerId: uuidV4StringSchema,
|
|
13
13
|
});
|
|
14
14
|
const PrincipalStateExternalAuthorityRequestSchema = loosePlainObject({
|
|
15
|
-
keyEpoch: boundedPositiveIntegerSchema(Number.
|
|
15
|
+
keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),
|
|
16
16
|
keyFingerprint: z.string(),
|
|
17
17
|
principalId: uuidV4StringSchema,
|
|
18
18
|
principalType: z.literal("group"),
|
|
@@ -24,7 +24,7 @@ const PrincipalStateRequestSchema = loosePlainObject({
|
|
|
24
24
|
externalAuthority: PrincipalStateExternalAuthorityRequestSchema.nullable(),
|
|
25
25
|
grantCount: nonNegativeIntegerSchema,
|
|
26
26
|
grantRoot: z.string(),
|
|
27
|
-
keyEpoch:
|
|
27
|
+
keyEpoch: boundedPositiveIntegerSchema(Number.MAX_SAFE_INTEGER),
|
|
28
28
|
keyFingerprint: z.string(),
|
|
29
29
|
memberCount: nonNegativeIntegerSchema,
|
|
30
30
|
memberEnvelopesRoot: 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,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,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,
|
|
1
|
+
{"version":3,"file":"principal.js","sourceRoot":"","sources":["principal.ts"],"names":[],"mappings":"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","sourcesContent":["import { z } from \"zod\";\nimport { registerJsonSchemaFragment } from \"../jsonSchema\";\nimport {\n arraySchema,\n boundedPositiveIntegerSchema,\n loosePlainObject,\n nonNegativeIntegerSchema,\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 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 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"]}
|
|
@@ -18,426 +18,46 @@ export declare const ContainerMutationFailureResponseSchema: z.ZodUnion<readonly
|
|
|
18
18
|
}, z.core.$loose>, z.ZodType<{
|
|
19
19
|
code: "principal_policy_stale";
|
|
20
20
|
error: string;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
role: "member" | "admin";
|
|
29
|
-
userId: string;
|
|
30
|
-
}[];
|
|
31
|
-
state: {
|
|
32
|
-
createdAt: string;
|
|
33
|
-
encapsulationPublicKey: string;
|
|
34
|
-
externalAuthority: {
|
|
35
|
-
keyEpoch: number;
|
|
36
|
-
keyFingerprint: string;
|
|
37
|
-
principalId: string;
|
|
38
|
-
principalType: "group";
|
|
39
|
-
stateHash: string;
|
|
40
|
-
version: number;
|
|
41
|
-
} | null;
|
|
42
|
-
grantCount: number;
|
|
43
|
-
grantRoot: string;
|
|
44
|
-
keyEpoch: number;
|
|
45
|
-
keyFingerprint: string;
|
|
46
|
-
memberCount: number;
|
|
47
|
-
memberEnvelopesRoot: string;
|
|
48
|
-
membershipMode: "projection";
|
|
49
|
-
membershipRoot: string;
|
|
50
|
-
payloadCiphertextHash: string;
|
|
51
|
-
prevStateHash: string | null;
|
|
52
|
-
principalId: string;
|
|
53
|
-
principalType: "group" | "organization";
|
|
54
|
-
projectionRoot: string;
|
|
55
|
-
signature: string;
|
|
56
|
-
signedAt: string;
|
|
57
|
-
signerUserId: string;
|
|
58
|
-
signerUserKeyFingerprint: string;
|
|
59
|
-
stateHash: string;
|
|
60
|
-
version: number;
|
|
61
|
-
};
|
|
62
|
-
}[];
|
|
63
|
-
currentGrants: {
|
|
64
|
-
accessLevel: "admin" | "read" | "write";
|
|
65
|
-
containerId: string;
|
|
66
|
-
}[];
|
|
67
|
-
currentMemberEnvelopes: {
|
|
68
|
-
envelopes: {
|
|
69
|
-
kemCipherText: string;
|
|
70
|
-
memberKeyFingerprint: string;
|
|
71
|
-
userId: string;
|
|
72
|
-
wrappedKey: string;
|
|
73
|
-
}[];
|
|
74
|
-
epoch: number;
|
|
75
|
-
principalId: string;
|
|
76
|
-
principalType: "group" | "organization";
|
|
77
|
-
stateHash: string;
|
|
78
|
-
};
|
|
79
|
-
currentPayload: {
|
|
80
|
-
cipherSuite: "aes-256-gcm";
|
|
81
|
-
ciphertext: string;
|
|
82
|
-
ciphertextHash: string;
|
|
83
|
-
createdAt: string;
|
|
84
|
-
principalId: string;
|
|
85
|
-
principalType: "group" | "organization";
|
|
86
|
-
stateHash: string;
|
|
87
|
-
};
|
|
88
|
-
currentProjection: {
|
|
89
|
-
role: "member" | "admin";
|
|
90
|
-
userId: string;
|
|
91
|
-
}[];
|
|
92
|
-
currentState: {
|
|
93
|
-
createdAt: string;
|
|
94
|
-
encapsulationPublicKey: string;
|
|
95
|
-
externalAuthority: {
|
|
96
|
-
keyEpoch: number;
|
|
97
|
-
keyFingerprint: string;
|
|
98
|
-
principalId: string;
|
|
99
|
-
principalType: "group";
|
|
100
|
-
stateHash: string;
|
|
101
|
-
version: number;
|
|
102
|
-
} | null;
|
|
103
|
-
grantCount: number;
|
|
104
|
-
grantRoot: string;
|
|
105
|
-
keyEpoch: number;
|
|
106
|
-
keyFingerprint: string;
|
|
107
|
-
memberCount: number;
|
|
108
|
-
memberEnvelopesRoot: string;
|
|
109
|
-
membershipMode: "projection";
|
|
110
|
-
membershipRoot: string;
|
|
111
|
-
payloadCiphertextHash: string;
|
|
112
|
-
prevStateHash: string | null;
|
|
113
|
-
principalId: string;
|
|
114
|
-
principalType: "group" | "organization";
|
|
115
|
-
projectionRoot: string;
|
|
116
|
-
signature: string;
|
|
117
|
-
signedAt: string;
|
|
118
|
-
signerUserId: string;
|
|
119
|
-
signerUserKeyFingerprint: string;
|
|
120
|
-
stateHash: string;
|
|
121
|
-
version: number;
|
|
122
|
-
};
|
|
21
|
+
principalHeads: {
|
|
22
|
+
keyEpoch: number;
|
|
23
|
+
keyFingerprint: string;
|
|
24
|
+
principalId: string;
|
|
25
|
+
principalType: "group" | "organization";
|
|
26
|
+
stateHash: string;
|
|
27
|
+
version: number;
|
|
123
28
|
}[];
|
|
124
29
|
}, {
|
|
125
30
|
code: "principal_policy_stale";
|
|
126
31
|
error: string;
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
role: "member" | "admin";
|
|
135
|
-
userId: string;
|
|
136
|
-
}[];
|
|
137
|
-
state: {
|
|
138
|
-
createdAt: string;
|
|
139
|
-
encapsulationPublicKey: string;
|
|
140
|
-
externalAuthority: {
|
|
141
|
-
keyEpoch: number;
|
|
142
|
-
keyFingerprint: string;
|
|
143
|
-
principalId: string;
|
|
144
|
-
principalType: "group";
|
|
145
|
-
stateHash: string;
|
|
146
|
-
version: number;
|
|
147
|
-
} | null;
|
|
148
|
-
grantCount: number;
|
|
149
|
-
grantRoot: string;
|
|
150
|
-
keyEpoch: number;
|
|
151
|
-
keyFingerprint: string;
|
|
152
|
-
memberCount: number;
|
|
153
|
-
memberEnvelopesRoot: string;
|
|
154
|
-
membershipMode: "projection";
|
|
155
|
-
membershipRoot: string;
|
|
156
|
-
payloadCiphertextHash: string;
|
|
157
|
-
prevStateHash: string | null;
|
|
158
|
-
principalId: string;
|
|
159
|
-
principalType: "group" | "organization";
|
|
160
|
-
projectionRoot: string;
|
|
161
|
-
signature: string;
|
|
162
|
-
signedAt: string;
|
|
163
|
-
signerUserId: string;
|
|
164
|
-
signerUserKeyFingerprint: string;
|
|
165
|
-
stateHash: string;
|
|
166
|
-
version: number;
|
|
167
|
-
};
|
|
168
|
-
}[];
|
|
169
|
-
currentGrants: {
|
|
170
|
-
accessLevel: "admin" | "read" | "write";
|
|
171
|
-
containerId: string;
|
|
172
|
-
}[];
|
|
173
|
-
currentMemberEnvelopes: {
|
|
174
|
-
envelopes: {
|
|
175
|
-
kemCipherText: string;
|
|
176
|
-
memberKeyFingerprint: string;
|
|
177
|
-
userId: string;
|
|
178
|
-
wrappedKey: string;
|
|
179
|
-
}[];
|
|
180
|
-
epoch: number;
|
|
181
|
-
principalId: string;
|
|
182
|
-
principalType: "group" | "organization";
|
|
183
|
-
stateHash: string;
|
|
184
|
-
};
|
|
185
|
-
currentPayload: {
|
|
186
|
-
cipherSuite: "aes-256-gcm";
|
|
187
|
-
ciphertext: string;
|
|
188
|
-
ciphertextHash: string;
|
|
189
|
-
createdAt: string;
|
|
190
|
-
principalId: string;
|
|
191
|
-
principalType: "group" | "organization";
|
|
192
|
-
stateHash: string;
|
|
193
|
-
};
|
|
194
|
-
currentProjection: {
|
|
195
|
-
role: "member" | "admin";
|
|
196
|
-
userId: string;
|
|
197
|
-
}[];
|
|
198
|
-
currentState: {
|
|
199
|
-
createdAt: string;
|
|
200
|
-
encapsulationPublicKey: string;
|
|
201
|
-
externalAuthority: {
|
|
202
|
-
keyEpoch: number;
|
|
203
|
-
keyFingerprint: string;
|
|
204
|
-
principalId: string;
|
|
205
|
-
principalType: "group";
|
|
206
|
-
stateHash: string;
|
|
207
|
-
version: number;
|
|
208
|
-
} | null;
|
|
209
|
-
grantCount: number;
|
|
210
|
-
grantRoot: string;
|
|
211
|
-
keyEpoch: number;
|
|
212
|
-
keyFingerprint: string;
|
|
213
|
-
memberCount: number;
|
|
214
|
-
memberEnvelopesRoot: string;
|
|
215
|
-
membershipMode: "projection";
|
|
216
|
-
membershipRoot: string;
|
|
217
|
-
payloadCiphertextHash: string;
|
|
218
|
-
prevStateHash: string | null;
|
|
219
|
-
principalId: string;
|
|
220
|
-
principalType: "group" | "organization";
|
|
221
|
-
projectionRoot: string;
|
|
222
|
-
signature: string;
|
|
223
|
-
signedAt: string;
|
|
224
|
-
signerUserId: string;
|
|
225
|
-
signerUserKeyFingerprint: string;
|
|
226
|
-
stateHash: string;
|
|
227
|
-
version: number;
|
|
228
|
-
};
|
|
32
|
+
principalHeads: {
|
|
33
|
+
keyEpoch: number;
|
|
34
|
+
keyFingerprint: string;
|
|
35
|
+
principalId: string;
|
|
36
|
+
principalType: "group" | "organization";
|
|
37
|
+
stateHash: string;
|
|
38
|
+
version: number;
|
|
229
39
|
}[];
|
|
230
40
|
}, z.core.$ZodTypeInternals<{
|
|
231
41
|
code: "principal_policy_stale";
|
|
232
42
|
error: string;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
role: "member" | "admin";
|
|
241
|
-
userId: string;
|
|
242
|
-
}[];
|
|
243
|
-
state: {
|
|
244
|
-
createdAt: string;
|
|
245
|
-
encapsulationPublicKey: string;
|
|
246
|
-
externalAuthority: {
|
|
247
|
-
keyEpoch: number;
|
|
248
|
-
keyFingerprint: string;
|
|
249
|
-
principalId: string;
|
|
250
|
-
principalType: "group";
|
|
251
|
-
stateHash: string;
|
|
252
|
-
version: number;
|
|
253
|
-
} | null;
|
|
254
|
-
grantCount: number;
|
|
255
|
-
grantRoot: string;
|
|
256
|
-
keyEpoch: number;
|
|
257
|
-
keyFingerprint: string;
|
|
258
|
-
memberCount: number;
|
|
259
|
-
memberEnvelopesRoot: string;
|
|
260
|
-
membershipMode: "projection";
|
|
261
|
-
membershipRoot: string;
|
|
262
|
-
payloadCiphertextHash: string;
|
|
263
|
-
prevStateHash: string | null;
|
|
264
|
-
principalId: string;
|
|
265
|
-
principalType: "group" | "organization";
|
|
266
|
-
projectionRoot: string;
|
|
267
|
-
signature: string;
|
|
268
|
-
signedAt: string;
|
|
269
|
-
signerUserId: string;
|
|
270
|
-
signerUserKeyFingerprint: string;
|
|
271
|
-
stateHash: string;
|
|
272
|
-
version: number;
|
|
273
|
-
};
|
|
274
|
-
}[];
|
|
275
|
-
currentGrants: {
|
|
276
|
-
accessLevel: "admin" | "read" | "write";
|
|
277
|
-
containerId: string;
|
|
278
|
-
}[];
|
|
279
|
-
currentMemberEnvelopes: {
|
|
280
|
-
envelopes: {
|
|
281
|
-
kemCipherText: string;
|
|
282
|
-
memberKeyFingerprint: string;
|
|
283
|
-
userId: string;
|
|
284
|
-
wrappedKey: string;
|
|
285
|
-
}[];
|
|
286
|
-
epoch: number;
|
|
287
|
-
principalId: string;
|
|
288
|
-
principalType: "group" | "organization";
|
|
289
|
-
stateHash: string;
|
|
290
|
-
};
|
|
291
|
-
currentPayload: {
|
|
292
|
-
cipherSuite: "aes-256-gcm";
|
|
293
|
-
ciphertext: string;
|
|
294
|
-
ciphertextHash: string;
|
|
295
|
-
createdAt: string;
|
|
296
|
-
principalId: string;
|
|
297
|
-
principalType: "group" | "organization";
|
|
298
|
-
stateHash: string;
|
|
299
|
-
};
|
|
300
|
-
currentProjection: {
|
|
301
|
-
role: "member" | "admin";
|
|
302
|
-
userId: string;
|
|
303
|
-
}[];
|
|
304
|
-
currentState: {
|
|
305
|
-
createdAt: string;
|
|
306
|
-
encapsulationPublicKey: string;
|
|
307
|
-
externalAuthority: {
|
|
308
|
-
keyEpoch: number;
|
|
309
|
-
keyFingerprint: string;
|
|
310
|
-
principalId: string;
|
|
311
|
-
principalType: "group";
|
|
312
|
-
stateHash: string;
|
|
313
|
-
version: number;
|
|
314
|
-
} | null;
|
|
315
|
-
grantCount: number;
|
|
316
|
-
grantRoot: string;
|
|
317
|
-
keyEpoch: number;
|
|
318
|
-
keyFingerprint: string;
|
|
319
|
-
memberCount: number;
|
|
320
|
-
memberEnvelopesRoot: string;
|
|
321
|
-
membershipMode: "projection";
|
|
322
|
-
membershipRoot: string;
|
|
323
|
-
payloadCiphertextHash: string;
|
|
324
|
-
prevStateHash: string | null;
|
|
325
|
-
principalId: string;
|
|
326
|
-
principalType: "group" | "organization";
|
|
327
|
-
projectionRoot: string;
|
|
328
|
-
signature: string;
|
|
329
|
-
signedAt: string;
|
|
330
|
-
signerUserId: string;
|
|
331
|
-
signerUserKeyFingerprint: string;
|
|
332
|
-
stateHash: string;
|
|
333
|
-
version: number;
|
|
334
|
-
};
|
|
43
|
+
principalHeads: {
|
|
44
|
+
keyEpoch: number;
|
|
45
|
+
keyFingerprint: string;
|
|
46
|
+
principalId: string;
|
|
47
|
+
principalType: "group" | "organization";
|
|
48
|
+
stateHash: string;
|
|
49
|
+
version: number;
|
|
335
50
|
}[];
|
|
336
51
|
}, {
|
|
337
52
|
code: "principal_policy_stale";
|
|
338
53
|
error: string;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
role: "member" | "admin";
|
|
347
|
-
userId: string;
|
|
348
|
-
}[];
|
|
349
|
-
state: {
|
|
350
|
-
createdAt: string;
|
|
351
|
-
encapsulationPublicKey: string;
|
|
352
|
-
externalAuthority: {
|
|
353
|
-
keyEpoch: number;
|
|
354
|
-
keyFingerprint: string;
|
|
355
|
-
principalId: string;
|
|
356
|
-
principalType: "group";
|
|
357
|
-
stateHash: string;
|
|
358
|
-
version: number;
|
|
359
|
-
} | null;
|
|
360
|
-
grantCount: number;
|
|
361
|
-
grantRoot: string;
|
|
362
|
-
keyEpoch: number;
|
|
363
|
-
keyFingerprint: string;
|
|
364
|
-
memberCount: number;
|
|
365
|
-
memberEnvelopesRoot: string;
|
|
366
|
-
membershipMode: "projection";
|
|
367
|
-
membershipRoot: string;
|
|
368
|
-
payloadCiphertextHash: string;
|
|
369
|
-
prevStateHash: string | null;
|
|
370
|
-
principalId: string;
|
|
371
|
-
principalType: "group" | "organization";
|
|
372
|
-
projectionRoot: string;
|
|
373
|
-
signature: string;
|
|
374
|
-
signedAt: string;
|
|
375
|
-
signerUserId: string;
|
|
376
|
-
signerUserKeyFingerprint: string;
|
|
377
|
-
stateHash: string;
|
|
378
|
-
version: number;
|
|
379
|
-
};
|
|
380
|
-
}[];
|
|
381
|
-
currentGrants: {
|
|
382
|
-
accessLevel: "admin" | "read" | "write";
|
|
383
|
-
containerId: string;
|
|
384
|
-
}[];
|
|
385
|
-
currentMemberEnvelopes: {
|
|
386
|
-
envelopes: {
|
|
387
|
-
kemCipherText: string;
|
|
388
|
-
memberKeyFingerprint: string;
|
|
389
|
-
userId: string;
|
|
390
|
-
wrappedKey: string;
|
|
391
|
-
}[];
|
|
392
|
-
epoch: number;
|
|
393
|
-
principalId: string;
|
|
394
|
-
principalType: "group" | "organization";
|
|
395
|
-
stateHash: string;
|
|
396
|
-
};
|
|
397
|
-
currentPayload: {
|
|
398
|
-
cipherSuite: "aes-256-gcm";
|
|
399
|
-
ciphertext: string;
|
|
400
|
-
ciphertextHash: string;
|
|
401
|
-
createdAt: string;
|
|
402
|
-
principalId: string;
|
|
403
|
-
principalType: "group" | "organization";
|
|
404
|
-
stateHash: string;
|
|
405
|
-
};
|
|
406
|
-
currentProjection: {
|
|
407
|
-
role: "member" | "admin";
|
|
408
|
-
userId: string;
|
|
409
|
-
}[];
|
|
410
|
-
currentState: {
|
|
411
|
-
createdAt: string;
|
|
412
|
-
encapsulationPublicKey: string;
|
|
413
|
-
externalAuthority: {
|
|
414
|
-
keyEpoch: number;
|
|
415
|
-
keyFingerprint: string;
|
|
416
|
-
principalId: string;
|
|
417
|
-
principalType: "group";
|
|
418
|
-
stateHash: string;
|
|
419
|
-
version: number;
|
|
420
|
-
} | null;
|
|
421
|
-
grantCount: number;
|
|
422
|
-
grantRoot: string;
|
|
423
|
-
keyEpoch: number;
|
|
424
|
-
keyFingerprint: string;
|
|
425
|
-
memberCount: number;
|
|
426
|
-
memberEnvelopesRoot: string;
|
|
427
|
-
membershipMode: "projection";
|
|
428
|
-
membershipRoot: string;
|
|
429
|
-
payloadCiphertextHash: string;
|
|
430
|
-
prevStateHash: string | null;
|
|
431
|
-
principalId: string;
|
|
432
|
-
principalType: "group" | "organization";
|
|
433
|
-
projectionRoot: string;
|
|
434
|
-
signature: string;
|
|
435
|
-
signedAt: string;
|
|
436
|
-
signerUserId: string;
|
|
437
|
-
signerUserKeyFingerprint: string;
|
|
438
|
-
stateHash: string;
|
|
439
|
-
version: number;
|
|
440
|
-
};
|
|
54
|
+
principalHeads: {
|
|
55
|
+
keyEpoch: number;
|
|
56
|
+
keyFingerprint: string;
|
|
57
|
+
principalId: string;
|
|
58
|
+
principalType: "group" | "organization";
|
|
59
|
+
stateHash: string;
|
|
60
|
+
version: number;
|
|
441
61
|
}[];
|
|
442
62
|
}>>]>;
|
|
443
63
|
export type ContainerMutationFailureResponse = z.infer<typeof ContainerMutationFailureResponseSchema>;
|