@tearleads/client-sdk 0.1.249 → 0.1.251
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/data/documents/shared/events.js +2 -1
- package/data/documents/shared/events.js.map +1 -1
- package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js +1 -4
- package/data/keyingProjectionVerification/principalPolicy/mergeProjectionPolicyEvidence.js.map +1 -1
- package/data/persistence/principalPolicy/heldOrganizationDirectories.js +6 -1
- package/data/persistence/principalPolicy/heldOrganizationDirectories.js.map +1 -1
- package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js +1 -1
- package/data/persistence/principalPolicy/principalPolicyBundleIntegrity.js.map +1 -1
- package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js +1 -5
- package/data/persistence/principalPolicy/verifiedPrincipalPolicyCurrent.js.map +1 -1
- package/data/principals/organizationGroupDirectoryRequest.js +0 -2
- package/data/principals/organizationGroupDirectoryRequest.js.map +1 -1
- package/data/principals/organizationPolicyRequest.js +0 -2
- package/data/principals/organizationPolicyRequest.js.map +1 -1
- package/data/principals/principalPolicyRequest.js +0 -2
- package/data/principals/principalPolicyRequest.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +0 -58
- package/internal/api-client/client/apiClientContext.d.ts +0 -30
- package/internal/api-client/client/documents.d.ts +0 -12
- package/internal/api-client/client/principalPolicies.d.ts +0 -18
- package/internal/api-client/client/writerProjections.d.ts +0 -12
- package/internal/api-client/heldDirectoryCitations.d.ts +8 -4
- package/internal/api-client/heldDirectoryCitations.js +6 -10
- package/internal/api-client/heldDirectoryCitations.js.map +1 -1
- package/internal/api-client/organizationPolicyHistory.d.ts +0 -6
- package/internal/api-client/principalPolicyRequests.d.ts +0 -18
- package/internal/api-client/verifiedManifestCitations.js +3 -3
- package/internal/api-client/verifiedManifestCitations.js.map +1 -1
- package/internal/crypto/index.d.ts +1 -1
- package/internal/crypto/index.js.map +1 -1
- package/internal/crypto/keying/principalPolicyPayload.js +2 -12
- package/internal/crypto/keying/principalPolicyPayload.js.map +1 -1
- package/internal/crypto/keying/principalPolicyTypes.d.ts +5 -6
- package/internal/crypto/keying/principalPolicyTypes.js.map +1 -1
- package/internal/crypto/principalState.d.ts +1 -1
- package/internal/crypto/principalState.js.map +1 -1
- package/internal/crypto/principalStateTypes.d.ts +0 -1
- package/internal/crypto/principalStateTypes.js.map +1 -1
- package/internal/validators/documentCreateSeedRefinements.js +2 -2
- package/internal/validators/documentCreateSeedRefinements.js.map +1 -1
- package/internal/validators/operation/auth.d.ts +50 -1727
- package/internal/validators/operation/auth.js +2 -2
- package/internal/validators/operation/auth.js.map +1 -1
- package/internal/validators/operation/containerMutations.d.ts +1 -294
- package/internal/validators/operation/containerMutations.js +2 -2
- package/internal/validators/operation/containerMutations.js.map +1 -1
- package/internal/validators/operation/documentMutations.d.ts +1 -342
- package/internal/validators/operation/documentMutations.js +2 -2
- package/internal/validators/operation/documentMutations.js.map +1 -1
- package/internal/validators/operation/organizationPolicyHistory.d.ts +0 -24
- package/internal/validators/operation/organizations.d.ts +50 -1751
- package/internal/validators/operation/organizations.js +2 -2
- package/internal/validators/operation/organizations.js.map +1 -1
- package/internal/validators/operation/principals.d.ts +0 -56
- package/internal/validators/operation/writerProjections.d.ts +0 -48
- package/internal/validators/organizationProvisioningRefinements.js +2 -2
- package/internal/validators/organizationProvisioningRefinements.js.map +1 -1
- package/internal/validators/request/containerMetadata.d.ts +0 -276
- package/internal/validators/request/containerMetadata.js +5 -4
- package/internal/validators/request/containerMetadata.js.map +1 -1
- package/internal/validators/request/document.d.ts +0 -277
- package/internal/validators/request/document.js +8 -4
- package/internal/validators/request/document.js.map +1 -1
- package/internal/validators/request/documentCreateSeed.d.ts +99 -0
- package/internal/validators/request/documentCreateSeed.js +132 -9
- package/internal/validators/request/documentCreateSeed.js.map +1 -1
- package/internal/validators/request/documentSyncSchema.d.ts +41 -0
- package/internal/validators/request/documentSyncSchema.js +1 -1
- package/internal/validators/request/documentSyncSchema.js.map +1 -1
- package/internal/validators/request/index.d.ts +1 -0
- package/internal/validators/request/index.js +1 -0
- package/internal/validators/request/index.js.map +1 -1
- package/internal/validators/request/organization.d.ts +0 -32
- package/internal/validators/request/organizationProvisioning.d.ts +263 -5639
- package/internal/validators/request/organizationProvisioning.js +10 -4
- package/internal/validators/request/organizationProvisioning.js.map +1 -1
- package/internal/validators/request/principal.d.ts +4 -48
- package/internal/validators/request/principal.js +4 -2
- package/internal/validators/request/principal.js.map +1 -1
- package/internal/validators/request/registration.d.ts +71 -1727
- package/internal/validators/response/container.d.ts +0 -48
- package/internal/validators/response/documentMutation.d.ts +0 -96
- package/internal/validators/response/organizationPolicyHistory.d.ts +0 -24
- package/internal/validators/response/policyEvidenceWire.d.ts +5 -3
- package/internal/validators/response/policyEvidenceWire.js +6 -4
- package/internal/validators/response/policyEvidenceWire.js.map +1 -1
- package/internal/validators/response/principal.d.ts +0 -48
- package/internal/validators/response/principalPolicyPage.d.ts +0 -48
- package/internal/validators/response/principalSnapshot.d.ts +4 -24
- package/internal/validators/response/principalSnapshot.js +4 -6
- package/internal/validators/response/principalSnapshot.js.map +1 -1
- package/internal/validators/response/projectionPolicyEvidence.d.ts +0 -48
- package/package.json +1 -1
- package/workflows/container-contents/container-state/create/createWithMetadata.js +6 -3
- package/workflows/container-contents/container-state/create/createWithMetadata.js.map +1 -1
- package/workflows/documents/create/index.js +4 -4
- package/workflows/documents/create/index.js.map +1 -1
- package/workflows/documents/sync/initialSync.d.ts +26 -11
- package/workflows/documents/sync/initialSync.js +32 -12
- package/workflows/documents/sync/initialSync.js.map +1 -1
- package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js +1 -6
- package/workflows/organizations/groupPolicy/currentPolicyMutationAcknowledgement.js.map +1 -1
- package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js +1 -6
- package/workflows/organizations/groupPolicy/groupPolicyMutationAcknowledgement.js.map +1 -1
- package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js +4 -6
- package/workflows/organizations/policyHistory/organizationPolicyHistoryVerification.js.map +1 -1
- package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js +1 -7
- package/workflows/organizations/principalPolicy/principalPolicyReceiptArtifacts.js.map +1 -1
- package/workflows/principals/policyCache/principalPolicyCacheValidation.js +0 -13
- package/workflows/principals/policyCache/principalPolicyCacheValidation.js.map +1 -1
- package/workflows/principals/publicHistory/publicProjectionDirectory.js +4 -5
- package/workflows/principals/publicHistory/publicProjectionDirectory.js.map +1 -1
- package/workflows/registration/provisionedProfileDocument.js +2 -2
- package/workflows/registration/provisionedProfileDocument.js.map +1 -1
- package/workflows/registration/provisioningBootstrapBuilders.d.ts +0 -74
- package/workflows/registration/provisioningBootstrapBuilders.js +3 -3
- package/workflows/registration/provisioningBootstrapBuilders.js.map +1 -1
- package/workflows/registration/registrationPrincipalPolicyPersistence.js +1 -7
- package/workflows/registration/registrationPrincipalPolicyPersistence.js.map +1 -1
|
@@ -178,7 +178,6 @@ export declare const containerCreateWithMetadataDocumentRequestShape: {
|
|
|
178
178
|
};
|
|
179
179
|
event: Record<string, unknown>;
|
|
180
180
|
expectedManifestHash: string;
|
|
181
|
-
manifest: Record<string, unknown>;
|
|
182
181
|
authorizingContainerPathRefs?: {
|
|
183
182
|
containerId: string;
|
|
184
183
|
manifestHash: string;
|
|
@@ -245,7 +244,6 @@ export declare const containerCreateWithMetadataDocumentRequestShape: {
|
|
|
245
244
|
};
|
|
246
245
|
event: Record<string, unknown>;
|
|
247
246
|
expectedManifestHash: string;
|
|
248
|
-
manifest: Record<string, unknown>;
|
|
249
247
|
authorizingContainerPathRefs?: {
|
|
250
248
|
containerId: string;
|
|
251
249
|
manifestHash: string;
|
|
@@ -312,7 +310,6 @@ export declare const containerCreateWithMetadataDocumentRequestShape: {
|
|
|
312
310
|
};
|
|
313
311
|
event: Record<string, unknown>;
|
|
314
312
|
expectedManifestHash: string;
|
|
315
|
-
manifest: Record<string, unknown>;
|
|
316
313
|
authorizingContainerPathRefs?: {
|
|
317
314
|
containerId: string;
|
|
318
315
|
manifestHash: string;
|
|
@@ -379,7 +376,6 @@ export declare const containerCreateWithMetadataDocumentRequestShape: {
|
|
|
379
376
|
};
|
|
380
377
|
event: Record<string, unknown>;
|
|
381
378
|
expectedManifestHash: string;
|
|
382
|
-
manifest: Record<string, unknown>;
|
|
383
379
|
authorizingContainerPathRefs?: {
|
|
384
380
|
containerId: string;
|
|
385
381
|
manifestHash: string;
|
|
@@ -496,7 +492,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
496
492
|
};
|
|
497
493
|
event: Record<string, unknown>;
|
|
498
494
|
expectedManifestHash: string;
|
|
499
|
-
manifest: Record<string, unknown>;
|
|
500
495
|
authorizingContainerPathRefs?: {
|
|
501
496
|
containerId: string;
|
|
502
497
|
manifestHash: string;
|
|
@@ -548,10 +543,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
548
543
|
}[] | undefined;
|
|
549
544
|
};
|
|
550
545
|
initialMetadataSync?: {
|
|
551
|
-
contentKeyEpoch: number;
|
|
552
|
-
expectedLinkSetManifestHash: string;
|
|
553
|
-
expectedTargetHash: string;
|
|
554
|
-
localVersionVector: string | null;
|
|
555
546
|
outgoingUpdates: {
|
|
556
547
|
encryptedData: string;
|
|
557
548
|
id: string;
|
|
@@ -563,69 +554,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
563
554
|
checkpointPayloadKind?: "full_history_snapshot" | undefined;
|
|
564
555
|
sourceVersionVector?: string | undefined;
|
|
565
556
|
}[];
|
|
566
|
-
supportsPullPagination: true;
|
|
567
|
-
authorizingContainerPathRefs?: {
|
|
568
|
-
containerId: string;
|
|
569
|
-
manifestHash: string;
|
|
570
|
-
}[][] | undefined;
|
|
571
|
-
containerRekeys?: {
|
|
572
|
-
body: unknown;
|
|
573
|
-
event: Record<string, unknown>;
|
|
574
|
-
expectedManifestHash: string;
|
|
575
|
-
keyEpoch: Record<string, unknown>;
|
|
576
|
-
keyring: Record<string, unknown> | null;
|
|
577
|
-
predecessorBridge: Record<string, unknown> | null;
|
|
578
|
-
principalPolicyRefs: {
|
|
579
|
-
principalType: "group" | "organization";
|
|
580
|
-
principalId: string;
|
|
581
|
-
version: number;
|
|
582
|
-
stateHash: string;
|
|
583
|
-
}[];
|
|
584
|
-
wraps: Record<string, unknown>[];
|
|
585
|
-
containerManifestHistoryRefs?: {
|
|
586
|
-
containerId: string;
|
|
587
|
-
manifestHash: string;
|
|
588
|
-
}[] | undefined;
|
|
589
|
-
destinationParentContainerPathRefs?: {
|
|
590
|
-
containerId: string;
|
|
591
|
-
manifestHash: string;
|
|
592
|
-
}[] | undefined;
|
|
593
|
-
parentContainerPathRefs?: {
|
|
594
|
-
containerId: string;
|
|
595
|
-
manifestHash: string;
|
|
596
|
-
}[] | undefined;
|
|
597
|
-
parentKekRef?: {
|
|
598
|
-
containerId: string;
|
|
599
|
-
containerKeyEpochId: string;
|
|
600
|
-
keyEpochHash: string;
|
|
601
|
-
} | null | undefined;
|
|
602
|
-
previousContainerPathRefs?: {
|
|
603
|
-
containerId: string;
|
|
604
|
-
manifestHash: string;
|
|
605
|
-
}[] | undefined;
|
|
606
|
-
previousManifestRef?: {
|
|
607
|
-
containerId: string;
|
|
608
|
-
manifestHash: string;
|
|
609
|
-
} | null | undefined;
|
|
610
|
-
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
611
|
-
}[] | undefined;
|
|
612
|
-
contentKeyBundle?: {
|
|
613
|
-
contentKeyEpoch: number;
|
|
614
|
-
linkSetManifestHash: string;
|
|
615
|
-
targetHash: string;
|
|
616
|
-
targets: {
|
|
617
|
-
containerId: string;
|
|
618
|
-
containerKeyEpoch: number;
|
|
619
|
-
containerKeyEpochId: string;
|
|
620
|
-
containerManifestHash: string;
|
|
621
|
-
wrappedKey: string;
|
|
622
|
-
wrappingMetadata: Record<string, unknown>;
|
|
623
|
-
}[];
|
|
624
|
-
} | undefined;
|
|
625
|
-
historyMode?: "raw" | undefined;
|
|
626
|
-
inlineRekeyCommitId?: string | undefined;
|
|
627
|
-
minLsn?: string | undefined;
|
|
628
|
-
pullCursor?: string | undefined;
|
|
629
557
|
} | undefined;
|
|
630
558
|
systemSlot?: string | null | undefined;
|
|
631
559
|
}, {
|
|
@@ -687,7 +615,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
687
615
|
};
|
|
688
616
|
event: Record<string, unknown>;
|
|
689
617
|
expectedManifestHash: string;
|
|
690
|
-
manifest: Record<string, unknown>;
|
|
691
618
|
authorizingContainerPathRefs?: {
|
|
692
619
|
containerId: string;
|
|
693
620
|
manifestHash: string;
|
|
@@ -739,10 +666,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
739
666
|
}[] | undefined;
|
|
740
667
|
};
|
|
741
668
|
initialMetadataSync?: {
|
|
742
|
-
contentKeyEpoch: number;
|
|
743
|
-
expectedLinkSetManifestHash: string;
|
|
744
|
-
expectedTargetHash: string;
|
|
745
|
-
localVersionVector: string | null;
|
|
746
669
|
outgoingUpdates: {
|
|
747
670
|
encryptedData: string;
|
|
748
671
|
id: string;
|
|
@@ -754,69 +677,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
754
677
|
checkpointPayloadKind?: "full_history_snapshot" | undefined;
|
|
755
678
|
sourceVersionVector?: string | undefined;
|
|
756
679
|
}[];
|
|
757
|
-
supportsPullPagination: true;
|
|
758
|
-
authorizingContainerPathRefs?: {
|
|
759
|
-
containerId: string;
|
|
760
|
-
manifestHash: string;
|
|
761
|
-
}[][] | undefined;
|
|
762
|
-
containerRekeys?: {
|
|
763
|
-
body: unknown;
|
|
764
|
-
event: Record<string, unknown>;
|
|
765
|
-
expectedManifestHash: string;
|
|
766
|
-
keyEpoch: Record<string, unknown>;
|
|
767
|
-
keyring: Record<string, unknown> | null;
|
|
768
|
-
predecessorBridge: Record<string, unknown> | null;
|
|
769
|
-
principalPolicyRefs: {
|
|
770
|
-
principalType: "group" | "organization";
|
|
771
|
-
principalId: string;
|
|
772
|
-
version: number;
|
|
773
|
-
stateHash: string;
|
|
774
|
-
}[];
|
|
775
|
-
wraps: Record<string, unknown>[];
|
|
776
|
-
containerManifestHistoryRefs?: {
|
|
777
|
-
containerId: string;
|
|
778
|
-
manifestHash: string;
|
|
779
|
-
}[] | undefined;
|
|
780
|
-
destinationParentContainerPathRefs?: {
|
|
781
|
-
containerId: string;
|
|
782
|
-
manifestHash: string;
|
|
783
|
-
}[] | undefined;
|
|
784
|
-
parentContainerPathRefs?: {
|
|
785
|
-
containerId: string;
|
|
786
|
-
manifestHash: string;
|
|
787
|
-
}[] | undefined;
|
|
788
|
-
parentKekRef?: {
|
|
789
|
-
containerId: string;
|
|
790
|
-
containerKeyEpochId: string;
|
|
791
|
-
keyEpochHash: string;
|
|
792
|
-
} | null | undefined;
|
|
793
|
-
previousContainerPathRefs?: {
|
|
794
|
-
containerId: string;
|
|
795
|
-
manifestHash: string;
|
|
796
|
-
}[] | undefined;
|
|
797
|
-
previousManifestRef?: {
|
|
798
|
-
containerId: string;
|
|
799
|
-
manifestHash: string;
|
|
800
|
-
} | null | undefined;
|
|
801
|
-
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
802
|
-
}[] | undefined;
|
|
803
|
-
contentKeyBundle?: {
|
|
804
|
-
contentKeyEpoch: number;
|
|
805
|
-
linkSetManifestHash: string;
|
|
806
|
-
targetHash: string;
|
|
807
|
-
targets: {
|
|
808
|
-
containerId: string;
|
|
809
|
-
containerKeyEpoch: number;
|
|
810
|
-
containerKeyEpochId: string;
|
|
811
|
-
containerManifestHash: string;
|
|
812
|
-
wrappedKey: string;
|
|
813
|
-
wrappingMetadata: Record<string, unknown>;
|
|
814
|
-
}[];
|
|
815
|
-
} | undefined;
|
|
816
|
-
historyMode?: "raw" | undefined;
|
|
817
|
-
inlineRekeyCommitId?: string | undefined;
|
|
818
|
-
minLsn?: string | undefined;
|
|
819
|
-
pullCursor?: string | undefined;
|
|
820
680
|
} | undefined;
|
|
821
681
|
systemSlot?: string | null | undefined;
|
|
822
682
|
}, z.core.$ZodTypeInternals<{
|
|
@@ -878,7 +738,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
878
738
|
};
|
|
879
739
|
event: Record<string, unknown>;
|
|
880
740
|
expectedManifestHash: string;
|
|
881
|
-
manifest: Record<string, unknown>;
|
|
882
741
|
authorizingContainerPathRefs?: {
|
|
883
742
|
containerId: string;
|
|
884
743
|
manifestHash: string;
|
|
@@ -930,10 +789,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
930
789
|
}[] | undefined;
|
|
931
790
|
};
|
|
932
791
|
initialMetadataSync?: {
|
|
933
|
-
contentKeyEpoch: number;
|
|
934
|
-
expectedLinkSetManifestHash: string;
|
|
935
|
-
expectedTargetHash: string;
|
|
936
|
-
localVersionVector: string | null;
|
|
937
792
|
outgoingUpdates: {
|
|
938
793
|
encryptedData: string;
|
|
939
794
|
id: string;
|
|
@@ -945,69 +800,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
945
800
|
checkpointPayloadKind?: "full_history_snapshot" | undefined;
|
|
946
801
|
sourceVersionVector?: string | undefined;
|
|
947
802
|
}[];
|
|
948
|
-
supportsPullPagination: true;
|
|
949
|
-
authorizingContainerPathRefs?: {
|
|
950
|
-
containerId: string;
|
|
951
|
-
manifestHash: string;
|
|
952
|
-
}[][] | undefined;
|
|
953
|
-
containerRekeys?: {
|
|
954
|
-
body: unknown;
|
|
955
|
-
event: Record<string, unknown>;
|
|
956
|
-
expectedManifestHash: string;
|
|
957
|
-
keyEpoch: Record<string, unknown>;
|
|
958
|
-
keyring: Record<string, unknown> | null;
|
|
959
|
-
predecessorBridge: Record<string, unknown> | null;
|
|
960
|
-
principalPolicyRefs: {
|
|
961
|
-
principalType: "group" | "organization";
|
|
962
|
-
principalId: string;
|
|
963
|
-
version: number;
|
|
964
|
-
stateHash: string;
|
|
965
|
-
}[];
|
|
966
|
-
wraps: Record<string, unknown>[];
|
|
967
|
-
containerManifestHistoryRefs?: {
|
|
968
|
-
containerId: string;
|
|
969
|
-
manifestHash: string;
|
|
970
|
-
}[] | undefined;
|
|
971
|
-
destinationParentContainerPathRefs?: {
|
|
972
|
-
containerId: string;
|
|
973
|
-
manifestHash: string;
|
|
974
|
-
}[] | undefined;
|
|
975
|
-
parentContainerPathRefs?: {
|
|
976
|
-
containerId: string;
|
|
977
|
-
manifestHash: string;
|
|
978
|
-
}[] | undefined;
|
|
979
|
-
parentKekRef?: {
|
|
980
|
-
containerId: string;
|
|
981
|
-
containerKeyEpochId: string;
|
|
982
|
-
keyEpochHash: string;
|
|
983
|
-
} | null | undefined;
|
|
984
|
-
previousContainerPathRefs?: {
|
|
985
|
-
containerId: string;
|
|
986
|
-
manifestHash: string;
|
|
987
|
-
}[] | undefined;
|
|
988
|
-
previousManifestRef?: {
|
|
989
|
-
containerId: string;
|
|
990
|
-
manifestHash: string;
|
|
991
|
-
} | null | undefined;
|
|
992
|
-
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
993
|
-
}[] | undefined;
|
|
994
|
-
contentKeyBundle?: {
|
|
995
|
-
contentKeyEpoch: number;
|
|
996
|
-
linkSetManifestHash: string;
|
|
997
|
-
targetHash: string;
|
|
998
|
-
targets: {
|
|
999
|
-
containerId: string;
|
|
1000
|
-
containerKeyEpoch: number;
|
|
1001
|
-
containerKeyEpochId: string;
|
|
1002
|
-
containerManifestHash: string;
|
|
1003
|
-
wrappedKey: string;
|
|
1004
|
-
wrappingMetadata: Record<string, unknown>;
|
|
1005
|
-
}[];
|
|
1006
|
-
} | undefined;
|
|
1007
|
-
historyMode?: "raw" | undefined;
|
|
1008
|
-
inlineRekeyCommitId?: string | undefined;
|
|
1009
|
-
minLsn?: string | undefined;
|
|
1010
|
-
pullCursor?: string | undefined;
|
|
1011
803
|
} | undefined;
|
|
1012
804
|
systemSlot?: string | null | undefined;
|
|
1013
805
|
}, {
|
|
@@ -1069,7 +861,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
1069
861
|
};
|
|
1070
862
|
event: Record<string, unknown>;
|
|
1071
863
|
expectedManifestHash: string;
|
|
1072
|
-
manifest: Record<string, unknown>;
|
|
1073
864
|
authorizingContainerPathRefs?: {
|
|
1074
865
|
containerId: string;
|
|
1075
866
|
manifestHash: string;
|
|
@@ -1121,10 +912,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
1121
912
|
}[] | undefined;
|
|
1122
913
|
};
|
|
1123
914
|
initialMetadataSync?: {
|
|
1124
|
-
contentKeyEpoch: number;
|
|
1125
|
-
expectedLinkSetManifestHash: string;
|
|
1126
|
-
expectedTargetHash: string;
|
|
1127
|
-
localVersionVector: string | null;
|
|
1128
915
|
outgoingUpdates: {
|
|
1129
916
|
encryptedData: string;
|
|
1130
917
|
id: string;
|
|
@@ -1136,69 +923,6 @@ export declare const ContainerCreateWithMetadataDocumentRequestSchema: z.ZodType
|
|
|
1136
923
|
checkpointPayloadKind?: "full_history_snapshot" | undefined;
|
|
1137
924
|
sourceVersionVector?: string | undefined;
|
|
1138
925
|
}[];
|
|
1139
|
-
supportsPullPagination: true;
|
|
1140
|
-
authorizingContainerPathRefs?: {
|
|
1141
|
-
containerId: string;
|
|
1142
|
-
manifestHash: string;
|
|
1143
|
-
}[][] | undefined;
|
|
1144
|
-
containerRekeys?: {
|
|
1145
|
-
body: unknown;
|
|
1146
|
-
event: Record<string, unknown>;
|
|
1147
|
-
expectedManifestHash: string;
|
|
1148
|
-
keyEpoch: Record<string, unknown>;
|
|
1149
|
-
keyring: Record<string, unknown> | null;
|
|
1150
|
-
predecessorBridge: Record<string, unknown> | null;
|
|
1151
|
-
principalPolicyRefs: {
|
|
1152
|
-
principalType: "group" | "organization";
|
|
1153
|
-
principalId: string;
|
|
1154
|
-
version: number;
|
|
1155
|
-
stateHash: string;
|
|
1156
|
-
}[];
|
|
1157
|
-
wraps: Record<string, unknown>[];
|
|
1158
|
-
containerManifestHistoryRefs?: {
|
|
1159
|
-
containerId: string;
|
|
1160
|
-
manifestHash: string;
|
|
1161
|
-
}[] | undefined;
|
|
1162
|
-
destinationParentContainerPathRefs?: {
|
|
1163
|
-
containerId: string;
|
|
1164
|
-
manifestHash: string;
|
|
1165
|
-
}[] | undefined;
|
|
1166
|
-
parentContainerPathRefs?: {
|
|
1167
|
-
containerId: string;
|
|
1168
|
-
manifestHash: string;
|
|
1169
|
-
}[] | undefined;
|
|
1170
|
-
parentKekRef?: {
|
|
1171
|
-
containerId: string;
|
|
1172
|
-
containerKeyEpochId: string;
|
|
1173
|
-
keyEpochHash: string;
|
|
1174
|
-
} | null | undefined;
|
|
1175
|
-
previousContainerPathRefs?: {
|
|
1176
|
-
containerId: string;
|
|
1177
|
-
manifestHash: string;
|
|
1178
|
-
}[] | undefined;
|
|
1179
|
-
previousManifestRef?: {
|
|
1180
|
-
containerId: string;
|
|
1181
|
-
manifestHash: string;
|
|
1182
|
-
} | null | undefined;
|
|
1183
|
-
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
1184
|
-
}[] | undefined;
|
|
1185
|
-
contentKeyBundle?: {
|
|
1186
|
-
contentKeyEpoch: number;
|
|
1187
|
-
linkSetManifestHash: string;
|
|
1188
|
-
targetHash: string;
|
|
1189
|
-
targets: {
|
|
1190
|
-
containerId: string;
|
|
1191
|
-
containerKeyEpoch: number;
|
|
1192
|
-
containerKeyEpochId: string;
|
|
1193
|
-
containerManifestHash: string;
|
|
1194
|
-
wrappedKey: string;
|
|
1195
|
-
wrappingMetadata: Record<string, unknown>;
|
|
1196
|
-
}[];
|
|
1197
|
-
} | undefined;
|
|
1198
|
-
historyMode?: "raw" | undefined;
|
|
1199
|
-
inlineRekeyCommitId?: string | undefined;
|
|
1200
|
-
minLsn?: string | undefined;
|
|
1201
|
-
pullCursor?: string | undefined;
|
|
1202
926
|
} | undefined;
|
|
1203
927
|
systemSlot?: string | null | undefined;
|
|
1204
928
|
}>>;
|
|
@@ -3,8 +3,8 @@ import { containerCreateMetadataSeedRefinement } from "../documentCreateSeedRefi
|
|
|
3
3
|
import { registerJsonSchemaRuntimeRefinements } from "../jsonSchema.js";
|
|
4
4
|
import { loosePlainObject } from "../schema.js";
|
|
5
5
|
import { ContainerMutationRequestSchema } from "./container.js";
|
|
6
|
-
import { DocumentCreateBaseRequestSchema
|
|
7
|
-
import {
|
|
6
|
+
import { DocumentCreateBaseRequestSchema } from "./document.js";
|
|
7
|
+
import { DocumentCreateSeedRequestSchema, refineCreateSeedSync, refineSingleUpdateSeed, } from "./documentCreateSeed.js";
|
|
8
8
|
export const containerCreateWithMetadataDocumentRequestShape = {
|
|
9
9
|
container: ContainerMutationRequestSchema,
|
|
10
10
|
metadataDocument: DocumentCreateBaseRequestSchema,
|
|
@@ -17,13 +17,14 @@ export const containerCreateWithMetadataDocumentRequestShape = {
|
|
|
17
17
|
*/
|
|
18
18
|
export const ContainerCreateWithMetadataDocumentRequestSchema = registerJsonSchemaRuntimeRefinements(loosePlainObject({
|
|
19
19
|
...containerCreateWithMetadataDocumentRequestShape,
|
|
20
|
-
initialMetadataSync:
|
|
20
|
+
initialMetadataSync: DocumentCreateSeedRequestSchema.optional(),
|
|
21
21
|
}).superRefine((value, context) => {
|
|
22
22
|
refineSingleUpdateSeed(value.initialMetadataSync, context, {
|
|
23
23
|
message: "container create metadata seed requires one update and no container rekeys",
|
|
24
24
|
path: "initialMetadataSync",
|
|
25
25
|
});
|
|
26
|
-
|
|
26
|
+
if (typeof value.metadataDocument === "object")
|
|
27
|
+
refineCreateSeedSync(value.metadataDocument, value.initialMetadataSync, context, { path: "initialMetadataSync", withinSyncLimit: true });
|
|
27
28
|
}), [containerCreateMetadataSeedRefinement]);
|
|
28
29
|
export function isContainerCreateWithMetadataDocumentRequest(value) {
|
|
29
30
|
return ContainerCreateWithMetadataDocumentRequestSchema.safeParse(value)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"containerMetadata.js","sourceRoot":"","sources":["containerMetadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,
|
|
1
|
+
{"version":3,"file":"containerMetadata.js","sourceRoot":"","sources":["containerMetadata.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,yBAAyB,EAAE,MAAM,wBAAwB,CAAC;AACnE,OAAO,EAAE,qCAAqC,EAAE,MAAM,kCAAkC,CAAC;AACzF,OAAO,EAAE,oCAAoC,EAAE,MAAM,eAAe,CAAC;AACrE,OAAO,EAAE,gBAAgB,EAAE,MAAM,WAAW,CAAC;AAC7C,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EAAE,+BAA+B,EAAE,MAAM,YAAY,CAAC;AAC7D,OAAO,EACL,+BAA+B,EAC/B,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,sBAAsB,CAAC;AAE9B,MAAM,CAAC,MAAM,+CAA+C,GAAG;IAC7D,SAAS,EAAE,8BAA8B;IACzC,gBAAgB,EAAE,+BAA+B;IACjD,UAAU,EAAE,yBAAyB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC5D,CAAC;AAEF;;;;GAIG;AACH,MAAM,CAAC,MAAM,gDAAgD,GAC3D,oCAAoC,CAClC,gBAAgB,CAAC;IACf,GAAG,+CAA+C;IAClD,mBAAmB,EAAE,+BAA+B,CAAC,QAAQ,EAAE;CAChE,CAAC,CAAC,WAAW,CAAC,CAAC,KAAK,EAAE,OAAO,EAAE,EAAE;IAChC,sBAAsB,CAAC,KAAK,CAAC,mBAAmB,EAAE,OAAO,EAAE;QACzD,OAAO,EACL,4EAA4E;QAC9E,IAAI,EAAE,qBAAqB;KAC5B,CAAC,CAAC;IACH,IAAI,OAAO,KAAK,CAAC,gBAAgB,KAAK,QAAQ;QAC5C,oBAAoB,CAClB,KAAK,CAAC,gBAAgB,EACtB,KAAK,CAAC,mBAAmB,EACzB,OAAO,EACP,EAAE,IAAI,EAAE,qBAAqB,EAAE,eAAe,EAAE,IAAI,EAAE,CACvD,CAAC;AACN,CAAC,CAAC,EACF,CAAC,qCAAqC,CAAC,CACxC,CAAC;AAMJ,MAAM,UAAU,4CAA4C,CAC1D,KAAc;IAEd,OAAO,gDAAgD,CAAC,SAAS,CAAC,KAAK,CAAC;SACrE,OAAO,CAAC;AACb,CAAC","sourcesContent":["import type { z } from \"zod\";\nimport { ContainerSystemSlotSchema } from \"../containerSystemSlot\";\nimport { containerCreateMetadataSeedRefinement } from \"../documentCreateSeedRefinements\";\nimport { registerJsonSchemaRuntimeRefinements } from \"../jsonSchema\";\nimport { loosePlainObject } from \"../schema\";\nimport { ContainerMutationRequestSchema } from \"./container\";\nimport { DocumentCreateBaseRequestSchema } from \"./document\";\nimport {\n DocumentCreateSeedRequestSchema,\n refineCreateSeedSync,\n refineSingleUpdateSeed,\n} from \"./documentCreateSeed\";\n\nexport const containerCreateWithMetadataDocumentRequestShape = {\n container: ContainerMutationRequestSchema,\n metadataDocument: DocumentCreateBaseRequestSchema,\n systemSlot: ContainerSystemSlotSchema.nullable().optional(),\n};\n\n/**\n * The optional seed is the metadata document's first queued update, committed\n * in the create transaction exactly as organization provisioning commits a\n * system container's metadata seed.\n */\nexport const ContainerCreateWithMetadataDocumentRequestSchema =\n registerJsonSchemaRuntimeRefinements(\n loosePlainObject({\n ...containerCreateWithMetadataDocumentRequestShape,\n initialMetadataSync: DocumentCreateSeedRequestSchema.optional(),\n }).superRefine((value, context) => {\n refineSingleUpdateSeed(value.initialMetadataSync, context, {\n message:\n \"container create metadata seed requires one update and no container rekeys\",\n path: \"initialMetadataSync\",\n });\n if (typeof value.metadataDocument === \"object\")\n refineCreateSeedSync(\n value.metadataDocument,\n value.initialMetadataSync,\n context,\n { path: \"initialMetadataSync\", withinSyncLimit: true },\n );\n }),\n [containerCreateMetadataSeedRefinement],\n );\n\nexport type ContainerCreateWithMetadataDocumentRequest = z.infer<\n typeof ContainerCreateWithMetadataDocumentRequestSchema\n>;\n\nexport function isContainerCreateWithMetadataDocumentRequest(\n value: unknown,\n): value is ContainerCreateWithMetadataDocumentRequest {\n return ContainerCreateWithMetadataDocumentRequestSchema.safeParse(value)\n .success;\n}\n"]}
|