@tearleads/client-sdk 0.1.18 → 0.1.20
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/container-contents/documentMoveIntentPersistence.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/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/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/loro/document.js +8 -11
- package/internal/loro/document.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/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/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/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/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 +4 -4
- 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/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
|
@@ -339,88 +339,49 @@ export declare const DocumentPurgeProofResponseSchema: z.ZodType<{
|
|
|
339
339
|
eventHash: string;
|
|
340
340
|
};
|
|
341
341
|
purgedAt: string;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
containerId: string;
|
|
346
|
-
}[];
|
|
347
|
-
currentProjection: {
|
|
348
|
-
role: "member" | "admin";
|
|
349
|
-
userId: string;
|
|
350
|
-
}[];
|
|
351
|
-
currentState: {
|
|
352
|
-
createdAt: string;
|
|
353
|
-
encapsulationPublicKey: string;
|
|
354
|
-
externalAuthority: {
|
|
342
|
+
policyEvidence: {
|
|
343
|
+
organization: {
|
|
344
|
+
head: {
|
|
355
345
|
keyEpoch: number;
|
|
356
346
|
keyFingerprint: string;
|
|
357
347
|
principalId: string;
|
|
358
|
-
principalType: "group";
|
|
348
|
+
principalType: "group" | "organization";
|
|
359
349
|
stateHash: string;
|
|
360
350
|
version: number;
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
signerUserId: string;
|
|
378
|
-
signerUserKeyFingerprint: string;
|
|
379
|
-
stateHash: string;
|
|
380
|
-
version: number;
|
|
381
|
-
};
|
|
382
|
-
previousStates: {
|
|
383
|
-
grants: {
|
|
384
|
-
accessLevel: "admin" | "read" | "write";
|
|
385
|
-
containerId: string;
|
|
386
|
-
}[];
|
|
387
|
-
projection: {
|
|
388
|
-
role: "member" | "admin";
|
|
389
|
-
userId: string;
|
|
390
|
-
}[];
|
|
391
|
-
state: {
|
|
351
|
+
};
|
|
352
|
+
grant: string;
|
|
353
|
+
} | null;
|
|
354
|
+
organizationPayloads: {
|
|
355
|
+
reference: {
|
|
356
|
+
keyEpoch: number;
|
|
357
|
+
keyFingerprint: string;
|
|
358
|
+
principalId: string;
|
|
359
|
+
principalType: "group" | "organization";
|
|
360
|
+
stateHash: string;
|
|
361
|
+
version: number;
|
|
362
|
+
};
|
|
363
|
+
payload: {
|
|
364
|
+
cipherSuite: "aes-256-gcm";
|
|
365
|
+
ciphertext: string;
|
|
366
|
+
ciphertextHash: string;
|
|
392
367
|
createdAt: string;
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
version: number;
|
|
401
|
-
} | null;
|
|
402
|
-
grantCount: number;
|
|
403
|
-
grantRoot: string;
|
|
368
|
+
principalId: string;
|
|
369
|
+
principalType: "group" | "organization";
|
|
370
|
+
stateHash: string;
|
|
371
|
+
};
|
|
372
|
+
}[];
|
|
373
|
+
groups: {
|
|
374
|
+
head: {
|
|
404
375
|
keyEpoch: number;
|
|
405
376
|
keyFingerprint: string;
|
|
406
|
-
memberCount: number;
|
|
407
|
-
memberEnvelopesRoot: string;
|
|
408
|
-
membershipMode: "projection";
|
|
409
|
-
membershipRoot: string;
|
|
410
|
-
payloadCiphertextHash: string;
|
|
411
|
-
prevStateHash: string | null;
|
|
412
377
|
principalId: string;
|
|
413
378
|
principalType: "group" | "organization";
|
|
414
|
-
projectionRoot: string;
|
|
415
|
-
signature: string;
|
|
416
|
-
signedAt: string;
|
|
417
|
-
signerUserId: string;
|
|
418
|
-
signerUserKeyFingerprint: string;
|
|
419
379
|
stateHash: string;
|
|
420
380
|
version: number;
|
|
421
381
|
};
|
|
382
|
+
grant: string;
|
|
422
383
|
}[];
|
|
423
|
-
}
|
|
384
|
+
};
|
|
424
385
|
}, {
|
|
425
386
|
authorizingContainerPath: {
|
|
426
387
|
event: {
|
|
@@ -479,88 +440,49 @@ export declare const DocumentPurgeProofResponseSchema: z.ZodType<{
|
|
|
479
440
|
eventHash: string;
|
|
480
441
|
};
|
|
481
442
|
purgedAt: string;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
containerId: string;
|
|
486
|
-
}[];
|
|
487
|
-
currentProjection: {
|
|
488
|
-
role: "member" | "admin";
|
|
489
|
-
userId: string;
|
|
490
|
-
}[];
|
|
491
|
-
currentState: {
|
|
492
|
-
createdAt: string;
|
|
493
|
-
encapsulationPublicKey: string;
|
|
494
|
-
externalAuthority: {
|
|
443
|
+
policyEvidence: {
|
|
444
|
+
organization: {
|
|
445
|
+
head: {
|
|
495
446
|
keyEpoch: number;
|
|
496
447
|
keyFingerprint: string;
|
|
497
448
|
principalId: string;
|
|
498
|
-
principalType: "group";
|
|
449
|
+
principalType: "group" | "organization";
|
|
499
450
|
stateHash: string;
|
|
500
451
|
version: number;
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
signerUserId: string;
|
|
518
|
-
signerUserKeyFingerprint: string;
|
|
519
|
-
stateHash: string;
|
|
520
|
-
version: number;
|
|
521
|
-
};
|
|
522
|
-
previousStates: {
|
|
523
|
-
grants: {
|
|
524
|
-
accessLevel: "admin" | "read" | "write";
|
|
525
|
-
containerId: string;
|
|
526
|
-
}[];
|
|
527
|
-
projection: {
|
|
528
|
-
role: "member" | "admin";
|
|
529
|
-
userId: string;
|
|
530
|
-
}[];
|
|
531
|
-
state: {
|
|
452
|
+
};
|
|
453
|
+
grant: string;
|
|
454
|
+
} | null;
|
|
455
|
+
organizationPayloads: {
|
|
456
|
+
reference: {
|
|
457
|
+
keyEpoch: number;
|
|
458
|
+
keyFingerprint: string;
|
|
459
|
+
principalId: string;
|
|
460
|
+
principalType: "group" | "organization";
|
|
461
|
+
stateHash: string;
|
|
462
|
+
version: number;
|
|
463
|
+
};
|
|
464
|
+
payload: {
|
|
465
|
+
cipherSuite: "aes-256-gcm";
|
|
466
|
+
ciphertext: string;
|
|
467
|
+
ciphertextHash: string;
|
|
532
468
|
createdAt: string;
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
version: number;
|
|
541
|
-
} | null;
|
|
542
|
-
grantCount: number;
|
|
543
|
-
grantRoot: string;
|
|
469
|
+
principalId: string;
|
|
470
|
+
principalType: "group" | "organization";
|
|
471
|
+
stateHash: string;
|
|
472
|
+
};
|
|
473
|
+
}[];
|
|
474
|
+
groups: {
|
|
475
|
+
head: {
|
|
544
476
|
keyEpoch: number;
|
|
545
477
|
keyFingerprint: string;
|
|
546
|
-
memberCount: number;
|
|
547
|
-
memberEnvelopesRoot: string;
|
|
548
|
-
membershipMode: "projection";
|
|
549
|
-
membershipRoot: string;
|
|
550
|
-
payloadCiphertextHash: string;
|
|
551
|
-
prevStateHash: string | null;
|
|
552
478
|
principalId: string;
|
|
553
479
|
principalType: "group" | "organization";
|
|
554
|
-
projectionRoot: string;
|
|
555
|
-
signature: string;
|
|
556
|
-
signedAt: string;
|
|
557
|
-
signerUserId: string;
|
|
558
|
-
signerUserKeyFingerprint: string;
|
|
559
480
|
stateHash: string;
|
|
560
481
|
version: number;
|
|
561
482
|
};
|
|
483
|
+
grant: string;
|
|
562
484
|
}[];
|
|
563
|
-
}
|
|
485
|
+
};
|
|
564
486
|
}, z.core.$ZodTypeInternals<{
|
|
565
487
|
authorizingContainerPath: {
|
|
566
488
|
event: {
|
|
@@ -619,88 +541,49 @@ export declare const DocumentPurgeProofResponseSchema: z.ZodType<{
|
|
|
619
541
|
eventHash: string;
|
|
620
542
|
};
|
|
621
543
|
purgedAt: string;
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
containerId: string;
|
|
626
|
-
}[];
|
|
627
|
-
currentProjection: {
|
|
628
|
-
role: "member" | "admin";
|
|
629
|
-
userId: string;
|
|
630
|
-
}[];
|
|
631
|
-
currentState: {
|
|
632
|
-
createdAt: string;
|
|
633
|
-
encapsulationPublicKey: string;
|
|
634
|
-
externalAuthority: {
|
|
544
|
+
policyEvidence: {
|
|
545
|
+
organization: {
|
|
546
|
+
head: {
|
|
635
547
|
keyEpoch: number;
|
|
636
548
|
keyFingerprint: string;
|
|
637
549
|
principalId: string;
|
|
638
|
-
principalType: "group";
|
|
550
|
+
principalType: "group" | "organization";
|
|
639
551
|
stateHash: string;
|
|
640
552
|
version: number;
|
|
641
|
-
}
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
signerUserId: string;
|
|
658
|
-
signerUserKeyFingerprint: string;
|
|
659
|
-
stateHash: string;
|
|
660
|
-
version: number;
|
|
661
|
-
};
|
|
662
|
-
previousStates: {
|
|
663
|
-
grants: {
|
|
664
|
-
accessLevel: "admin" | "read" | "write";
|
|
665
|
-
containerId: string;
|
|
666
|
-
}[];
|
|
667
|
-
projection: {
|
|
668
|
-
role: "member" | "admin";
|
|
669
|
-
userId: string;
|
|
670
|
-
}[];
|
|
671
|
-
state: {
|
|
553
|
+
};
|
|
554
|
+
grant: string;
|
|
555
|
+
} | null;
|
|
556
|
+
organizationPayloads: {
|
|
557
|
+
reference: {
|
|
558
|
+
keyEpoch: number;
|
|
559
|
+
keyFingerprint: string;
|
|
560
|
+
principalId: string;
|
|
561
|
+
principalType: "group" | "organization";
|
|
562
|
+
stateHash: string;
|
|
563
|
+
version: number;
|
|
564
|
+
};
|
|
565
|
+
payload: {
|
|
566
|
+
cipherSuite: "aes-256-gcm";
|
|
567
|
+
ciphertext: string;
|
|
568
|
+
ciphertextHash: string;
|
|
672
569
|
createdAt: string;
|
|
673
|
-
|
|
674
|
-
|
|
675
|
-
|
|
676
|
-
|
|
677
|
-
|
|
678
|
-
|
|
679
|
-
|
|
680
|
-
version: number;
|
|
681
|
-
} | null;
|
|
682
|
-
grantCount: number;
|
|
683
|
-
grantRoot: string;
|
|
570
|
+
principalId: string;
|
|
571
|
+
principalType: "group" | "organization";
|
|
572
|
+
stateHash: string;
|
|
573
|
+
};
|
|
574
|
+
}[];
|
|
575
|
+
groups: {
|
|
576
|
+
head: {
|
|
684
577
|
keyEpoch: number;
|
|
685
578
|
keyFingerprint: string;
|
|
686
|
-
memberCount: number;
|
|
687
|
-
memberEnvelopesRoot: string;
|
|
688
|
-
membershipMode: "projection";
|
|
689
|
-
membershipRoot: string;
|
|
690
|
-
payloadCiphertextHash: string;
|
|
691
|
-
prevStateHash: string | null;
|
|
692
579
|
principalId: string;
|
|
693
580
|
principalType: "group" | "organization";
|
|
694
|
-
projectionRoot: string;
|
|
695
|
-
signature: string;
|
|
696
|
-
signedAt: string;
|
|
697
|
-
signerUserId: string;
|
|
698
|
-
signerUserKeyFingerprint: string;
|
|
699
581
|
stateHash: string;
|
|
700
582
|
version: number;
|
|
701
583
|
};
|
|
584
|
+
grant: string;
|
|
702
585
|
}[];
|
|
703
|
-
}
|
|
586
|
+
};
|
|
704
587
|
}, {
|
|
705
588
|
authorizingContainerPath: {
|
|
706
589
|
event: {
|
|
@@ -759,88 +642,49 @@ export declare const DocumentPurgeProofResponseSchema: z.ZodType<{
|
|
|
759
642
|
eventHash: string;
|
|
760
643
|
};
|
|
761
644
|
purgedAt: string;
|
|
762
|
-
|
|
763
|
-
|
|
764
|
-
|
|
765
|
-
containerId: string;
|
|
766
|
-
}[];
|
|
767
|
-
currentProjection: {
|
|
768
|
-
role: "member" | "admin";
|
|
769
|
-
userId: string;
|
|
770
|
-
}[];
|
|
771
|
-
currentState: {
|
|
772
|
-
createdAt: string;
|
|
773
|
-
encapsulationPublicKey: string;
|
|
774
|
-
externalAuthority: {
|
|
645
|
+
policyEvidence: {
|
|
646
|
+
organization: {
|
|
647
|
+
head: {
|
|
775
648
|
keyEpoch: number;
|
|
776
649
|
keyFingerprint: string;
|
|
777
650
|
principalId: string;
|
|
778
|
-
principalType: "group";
|
|
651
|
+
principalType: "group" | "organization";
|
|
779
652
|
stateHash: string;
|
|
780
653
|
version: number;
|
|
781
|
-
}
|
|
782
|
-
|
|
783
|
-
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
signerUserId: string;
|
|
798
|
-
signerUserKeyFingerprint: string;
|
|
799
|
-
stateHash: string;
|
|
800
|
-
version: number;
|
|
801
|
-
};
|
|
802
|
-
previousStates: {
|
|
803
|
-
grants: {
|
|
804
|
-
accessLevel: "admin" | "read" | "write";
|
|
805
|
-
containerId: string;
|
|
806
|
-
}[];
|
|
807
|
-
projection: {
|
|
808
|
-
role: "member" | "admin";
|
|
809
|
-
userId: string;
|
|
810
|
-
}[];
|
|
811
|
-
state: {
|
|
654
|
+
};
|
|
655
|
+
grant: string;
|
|
656
|
+
} | null;
|
|
657
|
+
organizationPayloads: {
|
|
658
|
+
reference: {
|
|
659
|
+
keyEpoch: number;
|
|
660
|
+
keyFingerprint: string;
|
|
661
|
+
principalId: string;
|
|
662
|
+
principalType: "group" | "organization";
|
|
663
|
+
stateHash: string;
|
|
664
|
+
version: number;
|
|
665
|
+
};
|
|
666
|
+
payload: {
|
|
667
|
+
cipherSuite: "aes-256-gcm";
|
|
668
|
+
ciphertext: string;
|
|
669
|
+
ciphertextHash: string;
|
|
812
670
|
createdAt: string;
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
version: number;
|
|
821
|
-
} | null;
|
|
822
|
-
grantCount: number;
|
|
823
|
-
grantRoot: string;
|
|
671
|
+
principalId: string;
|
|
672
|
+
principalType: "group" | "organization";
|
|
673
|
+
stateHash: string;
|
|
674
|
+
};
|
|
675
|
+
}[];
|
|
676
|
+
groups: {
|
|
677
|
+
head: {
|
|
824
678
|
keyEpoch: number;
|
|
825
679
|
keyFingerprint: string;
|
|
826
|
-
memberCount: number;
|
|
827
|
-
memberEnvelopesRoot: string;
|
|
828
|
-
membershipMode: "projection";
|
|
829
|
-
membershipRoot: string;
|
|
830
|
-
payloadCiphertextHash: string;
|
|
831
|
-
prevStateHash: string | null;
|
|
832
680
|
principalId: string;
|
|
833
681
|
principalType: "group" | "organization";
|
|
834
|
-
projectionRoot: string;
|
|
835
|
-
signature: string;
|
|
836
|
-
signedAt: string;
|
|
837
|
-
signerUserId: string;
|
|
838
|
-
signerUserKeyFingerprint: string;
|
|
839
682
|
stateHash: string;
|
|
840
683
|
version: number;
|
|
841
684
|
};
|
|
685
|
+
grant: string;
|
|
842
686
|
}[];
|
|
843
|
-
}
|
|
687
|
+
};
|
|
844
688
|
}>>;
|
|
845
689
|
export type DocumentPurgeProofResponse = z.infer<typeof DocumentPurgeProofResponseSchema>;
|
|
846
690
|
export declare const DocumentPurgeResponseSchema: z.ZodType<{
|
|
@@ -902,88 +746,49 @@ export declare const DocumentPurgeResponseSchema: z.ZodType<{
|
|
|
902
746
|
eventHash: string;
|
|
903
747
|
};
|
|
904
748
|
purgedAt: string;
|
|
905
|
-
|
|
906
|
-
|
|
907
|
-
|
|
908
|
-
containerId: string;
|
|
909
|
-
}[];
|
|
910
|
-
currentProjection: {
|
|
911
|
-
role: "member" | "admin";
|
|
912
|
-
userId: string;
|
|
913
|
-
}[];
|
|
914
|
-
currentState: {
|
|
915
|
-
createdAt: string;
|
|
916
|
-
encapsulationPublicKey: string;
|
|
917
|
-
externalAuthority: {
|
|
749
|
+
policyEvidence: {
|
|
750
|
+
organization: {
|
|
751
|
+
head: {
|
|
918
752
|
keyEpoch: number;
|
|
919
753
|
keyFingerprint: string;
|
|
920
754
|
principalId: string;
|
|
921
|
-
principalType: "group";
|
|
755
|
+
principalType: "group" | "organization";
|
|
922
756
|
stateHash: string;
|
|
923
757
|
version: number;
|
|
924
|
-
}
|
|
925
|
-
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
932
|
-
|
|
933
|
-
|
|
934
|
-
|
|
935
|
-
|
|
936
|
-
|
|
937
|
-
|
|
938
|
-
|
|
939
|
-
|
|
940
|
-
signerUserId: string;
|
|
941
|
-
signerUserKeyFingerprint: string;
|
|
942
|
-
stateHash: string;
|
|
943
|
-
version: number;
|
|
944
|
-
};
|
|
945
|
-
previousStates: {
|
|
946
|
-
grants: {
|
|
947
|
-
accessLevel: "admin" | "read" | "write";
|
|
948
|
-
containerId: string;
|
|
949
|
-
}[];
|
|
950
|
-
projection: {
|
|
951
|
-
role: "member" | "admin";
|
|
952
|
-
userId: string;
|
|
953
|
-
}[];
|
|
954
|
-
state: {
|
|
758
|
+
};
|
|
759
|
+
grant: string;
|
|
760
|
+
} | null;
|
|
761
|
+
organizationPayloads: {
|
|
762
|
+
reference: {
|
|
763
|
+
keyEpoch: number;
|
|
764
|
+
keyFingerprint: string;
|
|
765
|
+
principalId: string;
|
|
766
|
+
principalType: "group" | "organization";
|
|
767
|
+
stateHash: string;
|
|
768
|
+
version: number;
|
|
769
|
+
};
|
|
770
|
+
payload: {
|
|
771
|
+
cipherSuite: "aes-256-gcm";
|
|
772
|
+
ciphertext: string;
|
|
773
|
+
ciphertextHash: string;
|
|
955
774
|
createdAt: string;
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
version: number;
|
|
964
|
-
} | null;
|
|
965
|
-
grantCount: number;
|
|
966
|
-
grantRoot: string;
|
|
775
|
+
principalId: string;
|
|
776
|
+
principalType: "group" | "organization";
|
|
777
|
+
stateHash: string;
|
|
778
|
+
};
|
|
779
|
+
}[];
|
|
780
|
+
groups: {
|
|
781
|
+
head: {
|
|
967
782
|
keyEpoch: number;
|
|
968
783
|
keyFingerprint: string;
|
|
969
|
-
memberCount: number;
|
|
970
|
-
memberEnvelopesRoot: string;
|
|
971
|
-
membershipMode: "projection";
|
|
972
|
-
membershipRoot: string;
|
|
973
|
-
payloadCiphertextHash: string;
|
|
974
|
-
prevStateHash: string | null;
|
|
975
784
|
principalId: string;
|
|
976
785
|
principalType: "group" | "organization";
|
|
977
|
-
projectionRoot: string;
|
|
978
|
-
signature: string;
|
|
979
|
-
signedAt: string;
|
|
980
|
-
signerUserId: string;
|
|
981
|
-
signerUserKeyFingerprint: string;
|
|
982
786
|
stateHash: string;
|
|
983
787
|
version: number;
|
|
984
788
|
};
|
|
789
|
+
grant: string;
|
|
985
790
|
}[];
|
|
986
|
-
}
|
|
791
|
+
};
|
|
987
792
|
}, {
|
|
988
793
|
reclaimedBlobStorageKeys: string[];
|
|
989
794
|
authorizingContainerPath: {
|
|
@@ -1043,88 +848,49 @@ export declare const DocumentPurgeResponseSchema: z.ZodType<{
|
|
|
1043
848
|
eventHash: string;
|
|
1044
849
|
};
|
|
1045
850
|
purgedAt: string;
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
containerId: string;
|
|
1050
|
-
}[];
|
|
1051
|
-
currentProjection: {
|
|
1052
|
-
role: "member" | "admin";
|
|
1053
|
-
userId: string;
|
|
1054
|
-
}[];
|
|
1055
|
-
currentState: {
|
|
1056
|
-
createdAt: string;
|
|
1057
|
-
encapsulationPublicKey: string;
|
|
1058
|
-
externalAuthority: {
|
|
851
|
+
policyEvidence: {
|
|
852
|
+
organization: {
|
|
853
|
+
head: {
|
|
1059
854
|
keyEpoch: number;
|
|
1060
855
|
keyFingerprint: string;
|
|
1061
856
|
principalId: string;
|
|
1062
|
-
principalType: "group";
|
|
857
|
+
principalType: "group" | "organization";
|
|
1063
858
|
stateHash: string;
|
|
1064
859
|
version: number;
|
|
1065
|
-
}
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
signerUserId: string;
|
|
1082
|
-
signerUserKeyFingerprint: string;
|
|
1083
|
-
stateHash: string;
|
|
1084
|
-
version: number;
|
|
1085
|
-
};
|
|
1086
|
-
previousStates: {
|
|
1087
|
-
grants: {
|
|
1088
|
-
accessLevel: "admin" | "read" | "write";
|
|
1089
|
-
containerId: string;
|
|
1090
|
-
}[];
|
|
1091
|
-
projection: {
|
|
1092
|
-
role: "member" | "admin";
|
|
1093
|
-
userId: string;
|
|
1094
|
-
}[];
|
|
1095
|
-
state: {
|
|
860
|
+
};
|
|
861
|
+
grant: string;
|
|
862
|
+
} | null;
|
|
863
|
+
organizationPayloads: {
|
|
864
|
+
reference: {
|
|
865
|
+
keyEpoch: number;
|
|
866
|
+
keyFingerprint: string;
|
|
867
|
+
principalId: string;
|
|
868
|
+
principalType: "group" | "organization";
|
|
869
|
+
stateHash: string;
|
|
870
|
+
version: number;
|
|
871
|
+
};
|
|
872
|
+
payload: {
|
|
873
|
+
cipherSuite: "aes-256-gcm";
|
|
874
|
+
ciphertext: string;
|
|
875
|
+
ciphertextHash: string;
|
|
1096
876
|
createdAt: string;
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
version: number;
|
|
1105
|
-
} | null;
|
|
1106
|
-
grantCount: number;
|
|
1107
|
-
grantRoot: string;
|
|
877
|
+
principalId: string;
|
|
878
|
+
principalType: "group" | "organization";
|
|
879
|
+
stateHash: string;
|
|
880
|
+
};
|
|
881
|
+
}[];
|
|
882
|
+
groups: {
|
|
883
|
+
head: {
|
|
1108
884
|
keyEpoch: number;
|
|
1109
885
|
keyFingerprint: string;
|
|
1110
|
-
memberCount: number;
|
|
1111
|
-
memberEnvelopesRoot: string;
|
|
1112
|
-
membershipMode: "projection";
|
|
1113
|
-
membershipRoot: string;
|
|
1114
|
-
payloadCiphertextHash: string;
|
|
1115
|
-
prevStateHash: string | null;
|
|
1116
886
|
principalId: string;
|
|
1117
887
|
principalType: "group" | "organization";
|
|
1118
|
-
projectionRoot: string;
|
|
1119
|
-
signature: string;
|
|
1120
|
-
signedAt: string;
|
|
1121
|
-
signerUserId: string;
|
|
1122
|
-
signerUserKeyFingerprint: string;
|
|
1123
888
|
stateHash: string;
|
|
1124
889
|
version: number;
|
|
1125
890
|
};
|
|
891
|
+
grant: string;
|
|
1126
892
|
}[];
|
|
1127
|
-
}
|
|
893
|
+
};
|
|
1128
894
|
}, z.core.$ZodTypeInternals<{
|
|
1129
895
|
reclaimedBlobStorageKeys: string[];
|
|
1130
896
|
authorizingContainerPath: {
|
|
@@ -1184,88 +950,49 @@ export declare const DocumentPurgeResponseSchema: z.ZodType<{
|
|
|
1184
950
|
eventHash: string;
|
|
1185
951
|
};
|
|
1186
952
|
purgedAt: string;
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
containerId: string;
|
|
1191
|
-
}[];
|
|
1192
|
-
currentProjection: {
|
|
1193
|
-
role: "member" | "admin";
|
|
1194
|
-
userId: string;
|
|
1195
|
-
}[];
|
|
1196
|
-
currentState: {
|
|
1197
|
-
createdAt: string;
|
|
1198
|
-
encapsulationPublicKey: string;
|
|
1199
|
-
externalAuthority: {
|
|
953
|
+
policyEvidence: {
|
|
954
|
+
organization: {
|
|
955
|
+
head: {
|
|
1200
956
|
keyEpoch: number;
|
|
1201
957
|
keyFingerprint: string;
|
|
1202
958
|
principalId: string;
|
|
1203
|
-
principalType: "group";
|
|
959
|
+
principalType: "group" | "organization";
|
|
1204
960
|
stateHash: string;
|
|
1205
961
|
version: number;
|
|
1206
|
-
}
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
signerUserId: string;
|
|
1223
|
-
signerUserKeyFingerprint: string;
|
|
1224
|
-
stateHash: string;
|
|
1225
|
-
version: number;
|
|
1226
|
-
};
|
|
1227
|
-
previousStates: {
|
|
1228
|
-
grants: {
|
|
1229
|
-
accessLevel: "admin" | "read" | "write";
|
|
1230
|
-
containerId: string;
|
|
1231
|
-
}[];
|
|
1232
|
-
projection: {
|
|
1233
|
-
role: "member" | "admin";
|
|
1234
|
-
userId: string;
|
|
1235
|
-
}[];
|
|
1236
|
-
state: {
|
|
962
|
+
};
|
|
963
|
+
grant: string;
|
|
964
|
+
} | null;
|
|
965
|
+
organizationPayloads: {
|
|
966
|
+
reference: {
|
|
967
|
+
keyEpoch: number;
|
|
968
|
+
keyFingerprint: string;
|
|
969
|
+
principalId: string;
|
|
970
|
+
principalType: "group" | "organization";
|
|
971
|
+
stateHash: string;
|
|
972
|
+
version: number;
|
|
973
|
+
};
|
|
974
|
+
payload: {
|
|
975
|
+
cipherSuite: "aes-256-gcm";
|
|
976
|
+
ciphertext: string;
|
|
977
|
+
ciphertextHash: string;
|
|
1237
978
|
createdAt: string;
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
version: number;
|
|
1246
|
-
} | null;
|
|
1247
|
-
grantCount: number;
|
|
1248
|
-
grantRoot: string;
|
|
979
|
+
principalId: string;
|
|
980
|
+
principalType: "group" | "organization";
|
|
981
|
+
stateHash: string;
|
|
982
|
+
};
|
|
983
|
+
}[];
|
|
984
|
+
groups: {
|
|
985
|
+
head: {
|
|
1249
986
|
keyEpoch: number;
|
|
1250
987
|
keyFingerprint: string;
|
|
1251
|
-
memberCount: number;
|
|
1252
|
-
memberEnvelopesRoot: string;
|
|
1253
|
-
membershipMode: "projection";
|
|
1254
|
-
membershipRoot: string;
|
|
1255
|
-
payloadCiphertextHash: string;
|
|
1256
|
-
prevStateHash: string | null;
|
|
1257
988
|
principalId: string;
|
|
1258
989
|
principalType: "group" | "organization";
|
|
1259
|
-
projectionRoot: string;
|
|
1260
|
-
signature: string;
|
|
1261
|
-
signedAt: string;
|
|
1262
|
-
signerUserId: string;
|
|
1263
|
-
signerUserKeyFingerprint: string;
|
|
1264
990
|
stateHash: string;
|
|
1265
991
|
version: number;
|
|
1266
992
|
};
|
|
993
|
+
grant: string;
|
|
1267
994
|
}[];
|
|
1268
|
-
}
|
|
995
|
+
};
|
|
1269
996
|
}, {
|
|
1270
997
|
reclaimedBlobStorageKeys: string[];
|
|
1271
998
|
authorizingContainerPath: {
|
|
@@ -1325,88 +1052,49 @@ export declare const DocumentPurgeResponseSchema: z.ZodType<{
|
|
|
1325
1052
|
eventHash: string;
|
|
1326
1053
|
};
|
|
1327
1054
|
purgedAt: string;
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
|
|
1331
|
-
containerId: string;
|
|
1332
|
-
}[];
|
|
1333
|
-
currentProjection: {
|
|
1334
|
-
role: "member" | "admin";
|
|
1335
|
-
userId: string;
|
|
1336
|
-
}[];
|
|
1337
|
-
currentState: {
|
|
1338
|
-
createdAt: string;
|
|
1339
|
-
encapsulationPublicKey: string;
|
|
1340
|
-
externalAuthority: {
|
|
1055
|
+
policyEvidence: {
|
|
1056
|
+
organization: {
|
|
1057
|
+
head: {
|
|
1341
1058
|
keyEpoch: number;
|
|
1342
1059
|
keyFingerprint: string;
|
|
1343
1060
|
principalId: string;
|
|
1344
|
-
principalType: "group";
|
|
1061
|
+
principalType: "group" | "organization";
|
|
1345
1062
|
stateHash: string;
|
|
1346
1063
|
version: number;
|
|
1347
|
-
}
|
|
1348
|
-
|
|
1349
|
-
|
|
1350
|
-
|
|
1351
|
-
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
signerUserId: string;
|
|
1364
|
-
signerUserKeyFingerprint: string;
|
|
1365
|
-
stateHash: string;
|
|
1366
|
-
version: number;
|
|
1367
|
-
};
|
|
1368
|
-
previousStates: {
|
|
1369
|
-
grants: {
|
|
1370
|
-
accessLevel: "admin" | "read" | "write";
|
|
1371
|
-
containerId: string;
|
|
1372
|
-
}[];
|
|
1373
|
-
projection: {
|
|
1374
|
-
role: "member" | "admin";
|
|
1375
|
-
userId: string;
|
|
1376
|
-
}[];
|
|
1377
|
-
state: {
|
|
1064
|
+
};
|
|
1065
|
+
grant: string;
|
|
1066
|
+
} | null;
|
|
1067
|
+
organizationPayloads: {
|
|
1068
|
+
reference: {
|
|
1069
|
+
keyEpoch: number;
|
|
1070
|
+
keyFingerprint: string;
|
|
1071
|
+
principalId: string;
|
|
1072
|
+
principalType: "group" | "organization";
|
|
1073
|
+
stateHash: string;
|
|
1074
|
+
version: number;
|
|
1075
|
+
};
|
|
1076
|
+
payload: {
|
|
1077
|
+
cipherSuite: "aes-256-gcm";
|
|
1078
|
+
ciphertext: string;
|
|
1079
|
+
ciphertextHash: string;
|
|
1378
1080
|
createdAt: string;
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
version: number;
|
|
1387
|
-
} | null;
|
|
1388
|
-
grantCount: number;
|
|
1389
|
-
grantRoot: string;
|
|
1081
|
+
principalId: string;
|
|
1082
|
+
principalType: "group" | "organization";
|
|
1083
|
+
stateHash: string;
|
|
1084
|
+
};
|
|
1085
|
+
}[];
|
|
1086
|
+
groups: {
|
|
1087
|
+
head: {
|
|
1390
1088
|
keyEpoch: number;
|
|
1391
1089
|
keyFingerprint: string;
|
|
1392
|
-
memberCount: number;
|
|
1393
|
-
memberEnvelopesRoot: string;
|
|
1394
|
-
membershipMode: "projection";
|
|
1395
|
-
membershipRoot: string;
|
|
1396
|
-
payloadCiphertextHash: string;
|
|
1397
|
-
prevStateHash: string | null;
|
|
1398
1090
|
principalId: string;
|
|
1399
1091
|
principalType: "group" | "organization";
|
|
1400
|
-
projectionRoot: string;
|
|
1401
|
-
signature: string;
|
|
1402
|
-
signedAt: string;
|
|
1403
|
-
signerUserId: string;
|
|
1404
|
-
signerUserKeyFingerprint: string;
|
|
1405
1092
|
stateHash: string;
|
|
1406
1093
|
version: number;
|
|
1407
1094
|
};
|
|
1095
|
+
grant: string;
|
|
1408
1096
|
}[];
|
|
1409
|
-
}
|
|
1097
|
+
};
|
|
1410
1098
|
}>>;
|
|
1411
1099
|
export type DocumentPurgeResponse = z.infer<typeof DocumentPurgeResponseSchema>;
|
|
1412
1100
|
export declare const DocumentWriterProjectionResponseSchema: z.ZodType<{
|