@tearleads/client-sdk 0.1.68 → 0.1.71

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (123) hide show
  1. package/data/containers/shared/principalPolicies.js +8 -12
  2. package/data/containers/shared/principalPolicies.js.map +1 -1
  3. package/internal/api-client/ApiClient.d.ts +73 -3
  4. package/internal/api-client/apiRequestMetrics.d.ts +18 -4
  5. package/internal/api-client/apiRequestMetrics.js +55 -5
  6. package/internal/api-client/apiRequestMetrics.js.map +1 -1
  7. package/internal/api-client/durationSampleWindow.d.ts +26 -0
  8. package/internal/api-client/durationSampleWindow.js +42 -0
  9. package/internal/api-client/durationSampleWindow.js.map +1 -0
  10. package/internal/api-client/measureApiRequest.js +9 -4
  11. package/internal/api-client/measureApiRequest.js.map +1 -1
  12. package/internal/api-client/serverTiming.d.ts +12 -0
  13. package/internal/api-client/serverTiming.js +49 -0
  14. package/internal/api-client/serverTiming.js.map +1 -0
  15. package/internal/validators/documentCreateSeedRefinements.js +9 -0
  16. package/internal/validators/documentCreateSeedRefinements.js.map +1 -0
  17. package/internal/validators/operation/attachments.d.ts +48 -8
  18. package/internal/validators/operation/auth.d.ts +576 -76
  19. package/internal/validators/operation/containerMutations.d.ts +619 -44
  20. package/internal/validators/operation/containerMutations.js +7 -1
  21. package/internal/validators/operation/containerMutations.js.map +1 -1
  22. package/internal/validators/operation/documentMutations.d.ts +428 -12
  23. package/internal/validators/operation/documentMutations.js +6 -1
  24. package/internal/validators/operation/documentMutations.js.map +1 -1
  25. package/internal/validators/operation/documentSync.d.ts +33 -13
  26. package/internal/validators/operation/organizations.d.ts +648 -88
  27. package/internal/validators/operation/principals.d.ts +96 -16
  28. package/internal/validators/request/blob.d.ts +48 -8
  29. package/internal/validators/request/container.d.ts +96 -16
  30. package/internal/validators/request/container.js +5 -2
  31. package/internal/validators/request/container.js.map +1 -1
  32. package/internal/validators/request/containerMetadata.d.ts +409 -16
  33. package/internal/validators/request/containerMetadata.js +20 -3
  34. package/internal/validators/request/containerMetadata.js.map +1 -1
  35. package/internal/validators/request/document.d.ts +631 -10
  36. package/internal/validators/request/document.js +19 -1
  37. package/internal/validators/request/document.js.map +1 -1
  38. package/internal/validators/request/documentCreateSeed.js +35 -0
  39. package/internal/validators/request/documentCreateSeed.js.map +1 -0
  40. package/internal/validators/request/documentSyncSchema.d.ts +24 -4
  41. package/internal/validators/request/documentSyncSchema.js +2 -1
  42. package/internal/validators/request/documentSyncSchema.js.map +1 -1
  43. package/internal/validators/request/index.d.ts +1 -0
  44. package/internal/validators/request/index.js +1 -0
  45. package/internal/validators/request/index.js.map +1 -1
  46. package/internal/validators/request/organization.d.ts +96 -16
  47. package/internal/validators/request/organizationProvisioning.d.ts +1456 -246
  48. package/internal/validators/request/organizationProvisioning.js +9 -22
  49. package/internal/validators/request/organizationProvisioning.js.map +1 -1
  50. package/internal/validators/request/principal.d.ts +120 -20
  51. package/internal/validators/request/principalPolicyRef.d.ts +42 -0
  52. package/internal/validators/request/principalPolicyRef.js +19 -0
  53. package/internal/validators/request/principalPolicyRef.js.map +1 -0
  54. package/internal/validators/request/registration.d.ts +456 -76
  55. package/internal/validators/response/containerMetadata.d.ts +20 -0
  56. package/internal/validators/response/documentMutation.d.ts +43 -0
  57. package/internal/validators/response/documentMutation.js +12 -1
  58. package/internal/validators/response/documentMutation.js.map +1 -1
  59. package/internal/validators/response/documentSyncSchema.d.ts +13 -9
  60. package/internal/validators/response/documentSyncSchema.js +23 -18
  61. package/internal/validators/response/documentSyncSchema.js.map +1 -1
  62. package/internal/validators/response/index.d.ts +1 -1
  63. package/internal/validators/response/index.js.map +1 -1
  64. package/internal/validators/response/organizationProvisioning.d.ts +350 -0
  65. package/internal/validators/response/registration.d.ts +120 -0
  66. package/internal/validators/util/containerLimits.d.ts +8 -0
  67. package/internal/validators/util/containerLimits.js +8 -0
  68. package/internal/validators/util/containerLimits.js.map +1 -1
  69. package/package.json +1 -1
  70. package/stores/container-contents/containerState/containerStatePersistence.js +2 -0
  71. package/stores/container-contents/containerState/containerStatePersistence.js.map +1 -1
  72. package/stores/container-contents/remoteEvents/remoteEventSync.js +1 -1
  73. package/stores/container-contents/remoteEvents/remoteEventSync.js.map +1 -1
  74. package/stores/container-contents/state.js +2 -0
  75. package/stores/container-contents/state.js.map +1 -1
  76. package/stores/container-contents/syncAgent/syncAgentTypes.d.ts +5 -0
  77. package/stores/container-contents/syncAgent/syncAgentTypes.js.map +1 -1
  78. package/stores/documents/documentStore/sync/createdDocumentPersistence.js +71 -0
  79. package/stores/documents/documentStore/sync/createdDocumentPersistence.js.map +1 -0
  80. package/stores/documents/documentStore/sync/index.js +13 -2
  81. package/stores/documents/documentStore/sync/index.js.map +1 -1
  82. package/stores/documents/documentStore/sync/syncRemoteSignals.js +21 -3
  83. package/stores/documents/documentStore/sync/syncRemoteSignals.js.map +1 -1
  84. package/stores/documents/documentStore/sync/syncSeededCreate.js +50 -0
  85. package/stores/documents/documentStore/sync/syncSeededCreate.js.map +1 -0
  86. package/stores/documents/documentStore/sync/syncShared.js +16 -8
  87. package/stores/documents/documentStore/sync/syncShared.js.map +1 -1
  88. package/workflows/container-contents/container-state/create/createIntentSeed.js +60 -0
  89. package/workflows/container-contents/container-state/create/createIntentSeed.js.map +1 -0
  90. package/workflows/container-contents/container-state/create/createIntentSync.js +18 -19
  91. package/workflows/container-contents/container-state/create/createIntentSync.js.map +1 -1
  92. package/workflows/container-contents/container-state/create/createWithMetadata.js +43 -6
  93. package/workflows/container-contents/container-state/create/createWithMetadata.js.map +1 -1
  94. package/workflows/container-contents/container-state/create/createWithMetadataPlan.js +5 -1
  95. package/workflows/container-contents/container-state/create/createWithMetadataPlan.js.map +1 -1
  96. package/workflows/container-contents/container-state/remote.js +15 -0
  97. package/workflows/container-contents/container-state/remote.js.map +1 -1
  98. package/workflows/container-contents/container-state/types.js.map +1 -1
  99. package/workflows/container-contents/metadata/metadataEvents.d.ts +7 -1
  100. package/workflows/container-contents/metadata/metadataEvents.js +8 -2
  101. package/workflows/container-contents/metadata/metadataEvents.js.map +1 -1
  102. package/workflows/container-contents/remoteHydration/types.d.ts +3 -0
  103. package/workflows/container-contents/remoteHydration/types.js.map +1 -1
  104. package/workflows/containers/child/mutationRequestCore.js +2 -2
  105. package/workflows/containers/child/mutationRequestCore.js.map +1 -1
  106. package/workflows/containers/child/recitePlan.js +2 -2
  107. package/workflows/containers/child/recitePlan.js.map +1 -1
  108. package/workflows/containers/root/create.js +17 -28
  109. package/workflows/containers/root/create.js.map +1 -1
  110. package/workflows/containers/root/initialGroupPolicy.js +0 -23
  111. package/workflows/containers/root/initialGroupPolicy.js.map +1 -1
  112. package/workflows/documents/create/index.d.ts +7 -0
  113. package/workflows/documents/create/index.js +40 -2
  114. package/workflows/documents/create/index.js.map +1 -1
  115. package/workflows/documents/index.d.ts +1 -0
  116. package/workflows/documents/index.js +1 -0
  117. package/workflows/documents/index.js.map +1 -1
  118. package/workflows/documents/sync/initialSync.d.ts +39 -0
  119. package/workflows/documents/sync/initialSync.js +39 -6
  120. package/workflows/documents/sync/initialSync.js.map +1 -1
  121. package/workflows/documents/syncFailures/syncPolicyRepair.js +2 -8
  122. package/workflows/documents/syncFailures/syncPolicyRepair.js.map +1 -1
  123. package/workflows/registration/provisioningBootstrapBuilders.d.ts +12 -2
@@ -15,7 +15,12 @@ export declare const createContainerOperation: Omit<{
15
15
  keyring: Record<string, unknown> | null;
16
16
  manifest: Record<string, unknown>;
17
17
  predecessorBridge: Record<string, unknown> | null;
18
- principalPolicies: Record<string, unknown>[];
18
+ principalPolicyRefs: {
19
+ principalType: "group" | "organization";
20
+ principalId: string;
21
+ version: number;
22
+ stateHash: string;
23
+ }[];
19
24
  wraps: Record<string, unknown>[];
20
25
  containerManifestHistoryRefs?: {
21
26
  containerId: string;
@@ -47,7 +52,12 @@ export declare const createContainerOperation: Omit<{
47
52
  keyring: Record<string, unknown> | null;
48
53
  manifest: Record<string, unknown>;
49
54
  predecessorBridge: Record<string, unknown> | null;
50
- principalPolicies: Record<string, unknown>[];
55
+ principalPolicyRefs: {
56
+ principalType: "group" | "organization";
57
+ principalId: string;
58
+ version: number;
59
+ stateHash: string;
60
+ }[];
51
61
  wraps: Record<string, unknown>[];
52
62
  containerManifestHistoryRefs?: {
53
63
  containerId: string;
@@ -79,7 +89,12 @@ export declare const createContainerOperation: Omit<{
79
89
  keyring: Record<string, unknown> | null;
80
90
  manifest: Record<string, unknown>;
81
91
  predecessorBridge: Record<string, unknown> | null;
82
- principalPolicies: Record<string, unknown>[];
92
+ principalPolicyRefs: {
93
+ principalType: "group" | "organization";
94
+ principalId: string;
95
+ version: number;
96
+ stateHash: string;
97
+ }[];
83
98
  wraps: Record<string, unknown>[];
84
99
  containerManifestHistoryRefs?: {
85
100
  containerId: string;
@@ -111,7 +126,12 @@ export declare const createContainerOperation: Omit<{
111
126
  keyring: Record<string, unknown> | null;
112
127
  manifest: Record<string, unknown>;
113
128
  predecessorBridge: Record<string, unknown> | null;
114
- principalPolicies: Record<string, unknown>[];
129
+ principalPolicyRefs: {
130
+ principalType: "group" | "organization";
131
+ principalId: string;
132
+ version: number;
133
+ stateHash: string;
134
+ }[];
115
135
  wraps: Record<string, unknown>[];
116
136
  containerManifestHistoryRefs?: {
117
137
  containerId: string;
@@ -634,7 +654,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
634
654
  keyring: Record<string, unknown> | null;
635
655
  manifest: Record<string, unknown>;
636
656
  predecessorBridge: Record<string, unknown> | null;
637
- principalPolicies: Record<string, unknown>[];
657
+ principalPolicyRefs: {
658
+ principalType: "group" | "organization";
659
+ principalId: string;
660
+ version: number;
661
+ stateHash: string;
662
+ }[];
638
663
  wraps: Record<string, unknown>[];
639
664
  containerManifestHistoryRefs?: {
640
665
  containerId: string;
@@ -689,7 +714,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
689
714
  keyring: Record<string, unknown> | null;
690
715
  manifest: Record<string, unknown>;
691
716
  predecessorBridge: Record<string, unknown> | null;
692
- principalPolicies: Record<string, unknown>[];
717
+ principalPolicyRefs: {
718
+ principalType: "group" | "organization";
719
+ principalId: string;
720
+ version: number;
721
+ stateHash: string;
722
+ }[];
693
723
  wraps: Record<string, unknown>[];
694
724
  containerManifestHistoryRefs?: {
695
725
  containerId: string;
@@ -719,6 +749,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
719
749
  manifestHash: string;
720
750
  }[] | undefined;
721
751
  };
752
+ initialMetadataSync?: {
753
+ contentKeyEpoch: number;
754
+ expectedLinkSetManifestHash: string;
755
+ expectedTargetHash: string;
756
+ localVersionVector: string | null;
757
+ outgoingUpdates: {
758
+ encryptedData: string;
759
+ id: string;
760
+ partialEndVersionVector: string;
761
+ partialStartVersionVector: string;
762
+ plaintextHash: string;
763
+ writeHeader: Record<string, unknown>;
764
+ checkpointKind?: "rotate_baseline" | undefined;
765
+ checkpointPayloadKind?: "full_history_snapshot" | undefined;
766
+ sourceVersionVector?: string | undefined;
767
+ }[];
768
+ supportsPullPagination: true;
769
+ authorizingContainerPathRefs?: {
770
+ containerId: string;
771
+ manifestHash: string;
772
+ }[][] | undefined;
773
+ containerRekeys?: {
774
+ body: unknown;
775
+ event: Record<string, unknown>;
776
+ expectedManifestHash: string;
777
+ keyEpoch: Record<string, unknown>;
778
+ keyring: Record<string, unknown> | null;
779
+ manifest: Record<string, unknown>;
780
+ predecessorBridge: Record<string, unknown> | null;
781
+ principalPolicyRefs: {
782
+ principalType: "group" | "organization";
783
+ principalId: string;
784
+ version: number;
785
+ stateHash: string;
786
+ }[];
787
+ wraps: Record<string, unknown>[];
788
+ containerManifestHistoryRefs?: {
789
+ containerId: string;
790
+ manifestHash: string;
791
+ }[] | undefined;
792
+ destinationParentContainerPathRefs?: {
793
+ containerId: string;
794
+ manifestHash: string;
795
+ }[] | undefined;
796
+ parentContainerPathRefs?: {
797
+ containerId: string;
798
+ manifestHash: string;
799
+ }[] | undefined;
800
+ parentKekState?: Record<string, unknown> | null | undefined;
801
+ previousContainerPathRefs?: {
802
+ containerId: string;
803
+ manifestHash: string;
804
+ }[] | undefined;
805
+ previousManifestRef?: {
806
+ containerId: string;
807
+ manifestHash: string;
808
+ } | null | undefined;
809
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
810
+ }[] | undefined;
811
+ contentKeyBundle?: {
812
+ contentKeyEpoch: number;
813
+ linkSetManifestHash: string;
814
+ targetHash: string;
815
+ targets: {
816
+ containerId: string;
817
+ containerKeyEpoch: number;
818
+ containerKeyEpochId: string;
819
+ containerManifestHash: string;
820
+ wrappedKey: string;
821
+ wrappingMetadata: Record<string, unknown>;
822
+ }[];
823
+ } | undefined;
824
+ historyMode?: "raw" | undefined;
825
+ inlineRekeyCommitId?: string | undefined;
826
+ minLsn?: string | undefined;
827
+ pullCursor?: string | undefined;
828
+ } | undefined;
722
829
  systemSlot?: string | null | undefined;
723
830
  }, {
724
831
  container: {
@@ -729,7 +836,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
729
836
  keyring: Record<string, unknown> | null;
730
837
  manifest: Record<string, unknown>;
731
838
  predecessorBridge: Record<string, unknown> | null;
732
- principalPolicies: Record<string, unknown>[];
839
+ principalPolicyRefs: {
840
+ principalType: "group" | "organization";
841
+ principalId: string;
842
+ version: number;
843
+ stateHash: string;
844
+ }[];
733
845
  wraps: Record<string, unknown>[];
734
846
  containerManifestHistoryRefs?: {
735
847
  containerId: string;
@@ -784,7 +896,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
784
896
  keyring: Record<string, unknown> | null;
785
897
  manifest: Record<string, unknown>;
786
898
  predecessorBridge: Record<string, unknown> | null;
787
- principalPolicies: Record<string, unknown>[];
899
+ principalPolicyRefs: {
900
+ principalType: "group" | "organization";
901
+ principalId: string;
902
+ version: number;
903
+ stateHash: string;
904
+ }[];
788
905
  wraps: Record<string, unknown>[];
789
906
  containerManifestHistoryRefs?: {
790
907
  containerId: string;
@@ -814,6 +931,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
814
931
  manifestHash: string;
815
932
  }[] | undefined;
816
933
  };
934
+ initialMetadataSync?: {
935
+ contentKeyEpoch: number;
936
+ expectedLinkSetManifestHash: string;
937
+ expectedTargetHash: string;
938
+ localVersionVector: string | null;
939
+ outgoingUpdates: {
940
+ encryptedData: string;
941
+ id: string;
942
+ partialEndVersionVector: string;
943
+ partialStartVersionVector: string;
944
+ plaintextHash: string;
945
+ writeHeader: Record<string, unknown>;
946
+ checkpointKind?: "rotate_baseline" | undefined;
947
+ checkpointPayloadKind?: "full_history_snapshot" | undefined;
948
+ sourceVersionVector?: string | undefined;
949
+ }[];
950
+ supportsPullPagination: true;
951
+ authorizingContainerPathRefs?: {
952
+ containerId: string;
953
+ manifestHash: string;
954
+ }[][] | undefined;
955
+ containerRekeys?: {
956
+ body: unknown;
957
+ event: Record<string, unknown>;
958
+ expectedManifestHash: string;
959
+ keyEpoch: Record<string, unknown>;
960
+ keyring: Record<string, unknown> | null;
961
+ manifest: Record<string, unknown>;
962
+ predecessorBridge: Record<string, unknown> | null;
963
+ principalPolicyRefs: {
964
+ principalType: "group" | "organization";
965
+ principalId: string;
966
+ version: number;
967
+ stateHash: string;
968
+ }[];
969
+ wraps: Record<string, unknown>[];
970
+ containerManifestHistoryRefs?: {
971
+ containerId: string;
972
+ manifestHash: string;
973
+ }[] | undefined;
974
+ destinationParentContainerPathRefs?: {
975
+ containerId: string;
976
+ manifestHash: string;
977
+ }[] | undefined;
978
+ parentContainerPathRefs?: {
979
+ containerId: string;
980
+ manifestHash: string;
981
+ }[] | undefined;
982
+ parentKekState?: Record<string, unknown> | null | undefined;
983
+ previousContainerPathRefs?: {
984
+ containerId: string;
985
+ manifestHash: string;
986
+ }[] | undefined;
987
+ previousManifestRef?: {
988
+ containerId: string;
989
+ manifestHash: string;
990
+ } | null | undefined;
991
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
992
+ }[] | undefined;
993
+ contentKeyBundle?: {
994
+ contentKeyEpoch: number;
995
+ linkSetManifestHash: string;
996
+ targetHash: string;
997
+ targets: {
998
+ containerId: string;
999
+ containerKeyEpoch: number;
1000
+ containerKeyEpochId: string;
1001
+ containerManifestHash: string;
1002
+ wrappedKey: string;
1003
+ wrappingMetadata: Record<string, unknown>;
1004
+ }[];
1005
+ } | undefined;
1006
+ historyMode?: "raw" | undefined;
1007
+ inlineRekeyCommitId?: string | undefined;
1008
+ minLsn?: string | undefined;
1009
+ pullCursor?: string | undefined;
1010
+ } | undefined;
817
1011
  systemSlot?: string | null | undefined;
818
1012
  }, z.core.$ZodTypeInternals<{
819
1013
  container: {
@@ -824,7 +1018,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
824
1018
  keyring: Record<string, unknown> | null;
825
1019
  manifest: Record<string, unknown>;
826
1020
  predecessorBridge: Record<string, unknown> | null;
827
- principalPolicies: Record<string, unknown>[];
1021
+ principalPolicyRefs: {
1022
+ principalType: "group" | "organization";
1023
+ principalId: string;
1024
+ version: number;
1025
+ stateHash: string;
1026
+ }[];
828
1027
  wraps: Record<string, unknown>[];
829
1028
  containerManifestHistoryRefs?: {
830
1029
  containerId: string;
@@ -879,7 +1078,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
879
1078
  keyring: Record<string, unknown> | null;
880
1079
  manifest: Record<string, unknown>;
881
1080
  predecessorBridge: Record<string, unknown> | null;
882
- principalPolicies: Record<string, unknown>[];
1081
+ principalPolicyRefs: {
1082
+ principalType: "group" | "organization";
1083
+ principalId: string;
1084
+ version: number;
1085
+ stateHash: string;
1086
+ }[];
883
1087
  wraps: Record<string, unknown>[];
884
1088
  containerManifestHistoryRefs?: {
885
1089
  containerId: string;
@@ -909,6 +1113,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
909
1113
  manifestHash: string;
910
1114
  }[] | undefined;
911
1115
  };
1116
+ initialMetadataSync?: {
1117
+ contentKeyEpoch: number;
1118
+ expectedLinkSetManifestHash: string;
1119
+ expectedTargetHash: string;
1120
+ localVersionVector: string | null;
1121
+ outgoingUpdates: {
1122
+ encryptedData: string;
1123
+ id: string;
1124
+ partialEndVersionVector: string;
1125
+ partialStartVersionVector: string;
1126
+ plaintextHash: string;
1127
+ writeHeader: Record<string, unknown>;
1128
+ checkpointKind?: "rotate_baseline" | undefined;
1129
+ checkpointPayloadKind?: "full_history_snapshot" | undefined;
1130
+ sourceVersionVector?: string | undefined;
1131
+ }[];
1132
+ supportsPullPagination: true;
1133
+ authorizingContainerPathRefs?: {
1134
+ containerId: string;
1135
+ manifestHash: string;
1136
+ }[][] | undefined;
1137
+ containerRekeys?: {
1138
+ body: unknown;
1139
+ event: Record<string, unknown>;
1140
+ expectedManifestHash: string;
1141
+ keyEpoch: Record<string, unknown>;
1142
+ keyring: Record<string, unknown> | null;
1143
+ manifest: Record<string, unknown>;
1144
+ predecessorBridge: Record<string, unknown> | null;
1145
+ principalPolicyRefs: {
1146
+ principalType: "group" | "organization";
1147
+ principalId: string;
1148
+ version: number;
1149
+ stateHash: string;
1150
+ }[];
1151
+ wraps: Record<string, unknown>[];
1152
+ containerManifestHistoryRefs?: {
1153
+ containerId: string;
1154
+ manifestHash: string;
1155
+ }[] | undefined;
1156
+ destinationParentContainerPathRefs?: {
1157
+ containerId: string;
1158
+ manifestHash: string;
1159
+ }[] | undefined;
1160
+ parentContainerPathRefs?: {
1161
+ containerId: string;
1162
+ manifestHash: string;
1163
+ }[] | undefined;
1164
+ parentKekState?: Record<string, unknown> | null | undefined;
1165
+ previousContainerPathRefs?: {
1166
+ containerId: string;
1167
+ manifestHash: string;
1168
+ }[] | undefined;
1169
+ previousManifestRef?: {
1170
+ containerId: string;
1171
+ manifestHash: string;
1172
+ } | null | undefined;
1173
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
1174
+ }[] | undefined;
1175
+ contentKeyBundle?: {
1176
+ contentKeyEpoch: number;
1177
+ linkSetManifestHash: string;
1178
+ targetHash: string;
1179
+ targets: {
1180
+ containerId: string;
1181
+ containerKeyEpoch: number;
1182
+ containerKeyEpochId: string;
1183
+ containerManifestHash: string;
1184
+ wrappedKey: string;
1185
+ wrappingMetadata: Record<string, unknown>;
1186
+ }[];
1187
+ } | undefined;
1188
+ historyMode?: "raw" | undefined;
1189
+ inlineRekeyCommitId?: string | undefined;
1190
+ minLsn?: string | undefined;
1191
+ pullCursor?: string | undefined;
1192
+ } | undefined;
912
1193
  systemSlot?: string | null | undefined;
913
1194
  }, {
914
1195
  container: {
@@ -919,7 +1200,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
919
1200
  keyring: Record<string, unknown> | null;
920
1201
  manifest: Record<string, unknown>;
921
1202
  predecessorBridge: Record<string, unknown> | null;
922
- principalPolicies: Record<string, unknown>[];
1203
+ principalPolicyRefs: {
1204
+ principalType: "group" | "organization";
1205
+ principalId: string;
1206
+ version: number;
1207
+ stateHash: string;
1208
+ }[];
923
1209
  wraps: Record<string, unknown>[];
924
1210
  containerManifestHistoryRefs?: {
925
1211
  containerId: string;
@@ -974,7 +1260,12 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
974
1260
  keyring: Record<string, unknown> | null;
975
1261
  manifest: Record<string, unknown>;
976
1262
  predecessorBridge: Record<string, unknown> | null;
977
- principalPolicies: Record<string, unknown>[];
1263
+ principalPolicyRefs: {
1264
+ principalType: "group" | "organization";
1265
+ principalId: string;
1266
+ version: number;
1267
+ stateHash: string;
1268
+ }[];
978
1269
  wraps: Record<string, unknown>[];
979
1270
  containerManifestHistoryRefs?: {
980
1271
  containerId: string;
@@ -1004,6 +1295,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
1004
1295
  manifestHash: string;
1005
1296
  }[] | undefined;
1006
1297
  };
1298
+ initialMetadataSync?: {
1299
+ contentKeyEpoch: number;
1300
+ expectedLinkSetManifestHash: string;
1301
+ expectedTargetHash: string;
1302
+ localVersionVector: string | null;
1303
+ outgoingUpdates: {
1304
+ encryptedData: string;
1305
+ id: string;
1306
+ partialEndVersionVector: string;
1307
+ partialStartVersionVector: string;
1308
+ plaintextHash: string;
1309
+ writeHeader: Record<string, unknown>;
1310
+ checkpointKind?: "rotate_baseline" | undefined;
1311
+ checkpointPayloadKind?: "full_history_snapshot" | undefined;
1312
+ sourceVersionVector?: string | undefined;
1313
+ }[];
1314
+ supportsPullPagination: true;
1315
+ authorizingContainerPathRefs?: {
1316
+ containerId: string;
1317
+ manifestHash: string;
1318
+ }[][] | undefined;
1319
+ containerRekeys?: {
1320
+ body: unknown;
1321
+ event: Record<string, unknown>;
1322
+ expectedManifestHash: string;
1323
+ keyEpoch: Record<string, unknown>;
1324
+ keyring: Record<string, unknown> | null;
1325
+ manifest: Record<string, unknown>;
1326
+ predecessorBridge: Record<string, unknown> | null;
1327
+ principalPolicyRefs: {
1328
+ principalType: "group" | "organization";
1329
+ principalId: string;
1330
+ version: number;
1331
+ stateHash: string;
1332
+ }[];
1333
+ wraps: Record<string, unknown>[];
1334
+ containerManifestHistoryRefs?: {
1335
+ containerId: string;
1336
+ manifestHash: string;
1337
+ }[] | undefined;
1338
+ destinationParentContainerPathRefs?: {
1339
+ containerId: string;
1340
+ manifestHash: string;
1341
+ }[] | undefined;
1342
+ parentContainerPathRefs?: {
1343
+ containerId: string;
1344
+ manifestHash: string;
1345
+ }[] | undefined;
1346
+ parentKekState?: Record<string, unknown> | null | undefined;
1347
+ previousContainerPathRefs?: {
1348
+ containerId: string;
1349
+ manifestHash: string;
1350
+ }[] | undefined;
1351
+ previousManifestRef?: {
1352
+ containerId: string;
1353
+ manifestHash: string;
1354
+ } | null | undefined;
1355
+ userRecipientKeys?: Record<string, unknown>[] | undefined;
1356
+ }[] | undefined;
1357
+ contentKeyBundle?: {
1358
+ contentKeyEpoch: number;
1359
+ linkSetManifestHash: string;
1360
+ targetHash: string;
1361
+ targets: {
1362
+ containerId: string;
1363
+ containerKeyEpoch: number;
1364
+ containerKeyEpochId: string;
1365
+ containerManifestHash: string;
1366
+ wrappedKey: string;
1367
+ wrappingMetadata: Record<string, unknown>;
1368
+ }[];
1369
+ } | undefined;
1370
+ historyMode?: "raw" | undefined;
1371
+ inlineRekeyCommitId?: string | undefined;
1372
+ minLsn?: string | undefined;
1373
+ pullCursor?: string | undefined;
1374
+ } | undefined;
1007
1375
  systemSlot?: string | null | undefined;
1008
1376
  }>>;
1009
1377
  readonly failureResponses: {
@@ -1234,6 +1602,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
1234
1602
  targets: Record<string, unknown>[];
1235
1603
  };
1236
1604
  id: string;
1605
+ initialSync?: {
1606
+ commitLsn: string | null;
1607
+ commitLsnMode: "tracked" | "untracked";
1608
+ acceptedOutgoingUpdateIds: string[];
1609
+ } | undefined;
1237
1610
  };
1238
1611
  }, {
1239
1612
  container: {
@@ -1331,6 +1704,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
1331
1704
  targets: Record<string, unknown>[];
1332
1705
  };
1333
1706
  id: string;
1707
+ initialSync?: {
1708
+ commitLsn: string | null;
1709
+ commitLsnMode: "tracked" | "untracked";
1710
+ acceptedOutgoingUpdateIds: string[];
1711
+ } | undefined;
1334
1712
  };
1335
1713
  }, z.core.$ZodTypeInternals<{
1336
1714
  container: {
@@ -1428,6 +1806,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
1428
1806
  targets: Record<string, unknown>[];
1429
1807
  };
1430
1808
  id: string;
1809
+ initialSync?: {
1810
+ commitLsn: string | null;
1811
+ commitLsnMode: "tracked" | "untracked";
1812
+ acceptedOutgoingUpdateIds: string[];
1813
+ } | undefined;
1431
1814
  };
1432
1815
  }, {
1433
1816
  container: {
@@ -1525,12 +1908,44 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
1525
1908
  targets: Record<string, unknown>[];
1526
1909
  };
1527
1910
  id: string;
1911
+ initialSync?: {
1912
+ commitLsn: string | null;
1913
+ commitLsnMode: "tracked" | "untracked";
1914
+ acceptedOutgoingUpdateIds: string[];
1915
+ } | undefined;
1528
1916
  };
1529
1917
  }>>;
1530
1918
  };
1531
1919
  readonly runtimeRefinements: readonly [{
1532
1920
  readonly description: "a container response keyring is null exactly for container key epoch 1";
1533
1921
  readonly id: "response.organization-provisioning-container-keyring";
1922
+ }, {
1923
+ readonly description: "a container create metadata seed must contain exactly one outgoing update and no container rekeys, and serialize within the document sync request limit";
1924
+ readonly id: "request.container-create-metadata-seed";
1925
+ }, {
1926
+ readonly description: "inlineRekeyCommitId must be present exactly when containerRekeys is non-empty";
1927
+ readonly id: "request.inline-rekey-commit-marker";
1928
+ }, {
1929
+ readonly description: "authorizingContainerPathRefs is required when outgoingUpdates is non-empty";
1930
+ readonly id: "request.authorizing-paths-for-writes";
1931
+ }, {
1932
+ readonly description: "containerRekeys may be non-empty only when outgoingUpdates is non-empty";
1933
+ readonly id: "request.container-rekeys-require-write";
1934
+ }, {
1935
+ readonly description: "outgoing update ids must be unique within the request";
1936
+ readonly id: "request.unique-outgoing-update-ids";
1937
+ }, {
1938
+ readonly description: "a request carrying pullCursor must not contain outgoing updates, container rekeys, a content-key bundle, or authorizing paths";
1939
+ readonly id: "request.pull-continuation-read-only";
1940
+ }, {
1941
+ readonly description: "historyMode \"raw\" must not be combined with outgoing updates, container rekeys, a content-key bundle, or authorizing paths";
1942
+ readonly id: "request.raw-history-read-only";
1943
+ }, {
1944
+ readonly description: "historyMode \"raw\" requires localVersionVector to be null so the complete retained history is requested";
1945
+ readonly id: "request.raw-history-null-frontier";
1946
+ }, {
1947
+ readonly description: "checkpointKind, checkpointPayloadKind, and sourceVersionVector must be absent together or form a rotation baseline";
1948
+ readonly id: "request.rotation-checkpoint-fields";
1534
1949
  }];
1535
1950
  }, "failureResponses" | "failureStatuses"> & {
1536
1951
  readonly failureResponses: {
@@ -1673,7 +2088,12 @@ export declare const shareContainerOperation: Omit<{
1673
2088
  keyring: Record<string, unknown> | null;
1674
2089
  manifest: Record<string, unknown>;
1675
2090
  predecessorBridge: Record<string, unknown> | null;
1676
- principalPolicies: Record<string, unknown>[];
2091
+ principalPolicyRefs: {
2092
+ principalType: "group" | "organization";
2093
+ principalId: string;
2094
+ version: number;
2095
+ stateHash: string;
2096
+ }[];
1677
2097
  wraps: Record<string, unknown>[];
1678
2098
  containerManifestHistoryRefs?: {
1679
2099
  containerId: string;
@@ -1705,7 +2125,12 @@ export declare const shareContainerOperation: Omit<{
1705
2125
  keyring: Record<string, unknown> | null;
1706
2126
  manifest: Record<string, unknown>;
1707
2127
  predecessorBridge: Record<string, unknown> | null;
1708
- principalPolicies: Record<string, unknown>[];
2128
+ principalPolicyRefs: {
2129
+ principalType: "group" | "organization";
2130
+ principalId: string;
2131
+ version: number;
2132
+ stateHash: string;
2133
+ }[];
1709
2134
  wraps: Record<string, unknown>[];
1710
2135
  containerManifestHistoryRefs?: {
1711
2136
  containerId: string;
@@ -1737,7 +2162,12 @@ export declare const shareContainerOperation: Omit<{
1737
2162
  keyring: Record<string, unknown> | null;
1738
2163
  manifest: Record<string, unknown>;
1739
2164
  predecessorBridge: Record<string, unknown> | null;
1740
- principalPolicies: Record<string, unknown>[];
2165
+ principalPolicyRefs: {
2166
+ principalType: "group" | "organization";
2167
+ principalId: string;
2168
+ version: number;
2169
+ stateHash: string;
2170
+ }[];
1741
2171
  wraps: Record<string, unknown>[];
1742
2172
  containerManifestHistoryRefs?: {
1743
2173
  containerId: string;
@@ -1769,7 +2199,12 @@ export declare const shareContainerOperation: Omit<{
1769
2199
  keyring: Record<string, unknown> | null;
1770
2200
  manifest: Record<string, unknown>;
1771
2201
  predecessorBridge: Record<string, unknown> | null;
1772
- principalPolicies: Record<string, unknown>[];
2202
+ principalPolicyRefs: {
2203
+ principalType: "group" | "organization";
2204
+ principalId: string;
2205
+ version: number;
2206
+ stateHash: string;
2207
+ }[];
1773
2208
  wraps: Record<string, unknown>[];
1774
2209
  containerManifestHistoryRefs?: {
1775
2210
  containerId: string;
@@ -2298,7 +2733,12 @@ export declare const reciteContainerOperation: Omit<{
2298
2733
  containerId: string;
2299
2734
  manifestHash: string;
2300
2735
  };
2301
- principalPolicies: Record<string, unknown>[];
2736
+ principalPolicyRefs: {
2737
+ principalType: "group" | "organization";
2738
+ principalId: string;
2739
+ version: number;
2740
+ stateHash: string;
2741
+ }[];
2302
2742
  }, {
2303
2743
  body: unknown;
2304
2744
  event: Record<string, unknown>;
@@ -2312,7 +2752,12 @@ export declare const reciteContainerOperation: Omit<{
2312
2752
  containerId: string;
2313
2753
  manifestHash: string;
2314
2754
  };
2315
- principalPolicies: Record<string, unknown>[];
2755
+ principalPolicyRefs: {
2756
+ principalType: "group" | "organization";
2757
+ principalId: string;
2758
+ version: number;
2759
+ stateHash: string;
2760
+ }[];
2316
2761
  }, z.core.$ZodTypeInternals<{
2317
2762
  body: unknown;
2318
2763
  event: Record<string, unknown>;
@@ -2326,7 +2771,12 @@ export declare const reciteContainerOperation: Omit<{
2326
2771
  containerId: string;
2327
2772
  manifestHash: string;
2328
2773
  };
2329
- principalPolicies: Record<string, unknown>[];
2774
+ principalPolicyRefs: {
2775
+ principalType: "group" | "organization";
2776
+ principalId: string;
2777
+ version: number;
2778
+ stateHash: string;
2779
+ }[];
2330
2780
  }, {
2331
2781
  body: unknown;
2332
2782
  event: Record<string, unknown>;
@@ -2340,7 +2790,12 @@ export declare const reciteContainerOperation: Omit<{
2340
2790
  containerId: string;
2341
2791
  manifestHash: string;
2342
2792
  };
2343
- principalPolicies: Record<string, unknown>[];
2793
+ principalPolicyRefs: {
2794
+ principalType: "group" | "organization";
2795
+ principalId: string;
2796
+ version: number;
2797
+ stateHash: string;
2798
+ }[];
2344
2799
  }>>;
2345
2800
  readonly failureResponses: {
2346
2801
  readonly 400: z.ZodType<{
@@ -2717,7 +3172,12 @@ export declare const revokeContainerOperation: Omit<{
2717
3172
  keyring: Record<string, unknown> | null;
2718
3173
  manifest: Record<string, unknown>;
2719
3174
  predecessorBridge: Record<string, unknown> | null;
2720
- principalPolicies: Record<string, unknown>[];
3175
+ principalPolicyRefs: {
3176
+ principalType: "group" | "organization";
3177
+ principalId: string;
3178
+ version: number;
3179
+ stateHash: string;
3180
+ }[];
2721
3181
  wraps: Record<string, unknown>[];
2722
3182
  containerRekeys?: {
2723
3183
  body: unknown;
@@ -2727,7 +3187,12 @@ export declare const revokeContainerOperation: Omit<{
2727
3187
  keyring: Record<string, unknown> | null;
2728
3188
  manifest: Record<string, unknown>;
2729
3189
  predecessorBridge: Record<string, unknown> | null;
2730
- principalPolicies: Record<string, unknown>[];
3190
+ principalPolicyRefs: {
3191
+ principalType: "group" | "organization";
3192
+ principalId: string;
3193
+ version: number;
3194
+ stateHash: string;
3195
+ }[];
2731
3196
  wraps: Record<string, unknown>[];
2732
3197
  containerManifestHistoryRefs?: {
2733
3198
  containerId: string;
@@ -2782,7 +3247,12 @@ export declare const revokeContainerOperation: Omit<{
2782
3247
  keyring: Record<string, unknown> | null;
2783
3248
  manifest: Record<string, unknown>;
2784
3249
  predecessorBridge: Record<string, unknown> | null;
2785
- principalPolicies: Record<string, unknown>[];
3250
+ principalPolicyRefs: {
3251
+ principalType: "group" | "organization";
3252
+ principalId: string;
3253
+ version: number;
3254
+ stateHash: string;
3255
+ }[];
2786
3256
  wraps: Record<string, unknown>[];
2787
3257
  containerRekeys?: {
2788
3258
  body: unknown;
@@ -2792,7 +3262,12 @@ export declare const revokeContainerOperation: Omit<{
2792
3262
  keyring: Record<string, unknown> | null;
2793
3263
  manifest: Record<string, unknown>;
2794
3264
  predecessorBridge: Record<string, unknown> | null;
2795
- principalPolicies: Record<string, unknown>[];
3265
+ principalPolicyRefs: {
3266
+ principalType: "group" | "organization";
3267
+ principalId: string;
3268
+ version: number;
3269
+ stateHash: string;
3270
+ }[];
2796
3271
  wraps: Record<string, unknown>[];
2797
3272
  containerManifestHistoryRefs?: {
2798
3273
  containerId: string;
@@ -2847,7 +3322,12 @@ export declare const revokeContainerOperation: Omit<{
2847
3322
  keyring: Record<string, unknown> | null;
2848
3323
  manifest: Record<string, unknown>;
2849
3324
  predecessorBridge: Record<string, unknown> | null;
2850
- principalPolicies: Record<string, unknown>[];
3325
+ principalPolicyRefs: {
3326
+ principalType: "group" | "organization";
3327
+ principalId: string;
3328
+ version: number;
3329
+ stateHash: string;
3330
+ }[];
2851
3331
  wraps: Record<string, unknown>[];
2852
3332
  containerRekeys?: {
2853
3333
  body: unknown;
@@ -2857,7 +3337,12 @@ export declare const revokeContainerOperation: Omit<{
2857
3337
  keyring: Record<string, unknown> | null;
2858
3338
  manifest: Record<string, unknown>;
2859
3339
  predecessorBridge: Record<string, unknown> | null;
2860
- principalPolicies: Record<string, unknown>[];
3340
+ principalPolicyRefs: {
3341
+ principalType: "group" | "organization";
3342
+ principalId: string;
3343
+ version: number;
3344
+ stateHash: string;
3345
+ }[];
2861
3346
  wraps: Record<string, unknown>[];
2862
3347
  containerManifestHistoryRefs?: {
2863
3348
  containerId: string;
@@ -2912,7 +3397,12 @@ export declare const revokeContainerOperation: Omit<{
2912
3397
  keyring: Record<string, unknown> | null;
2913
3398
  manifest: Record<string, unknown>;
2914
3399
  predecessorBridge: Record<string, unknown> | null;
2915
- principalPolicies: Record<string, unknown>[];
3400
+ principalPolicyRefs: {
3401
+ principalType: "group" | "organization";
3402
+ principalId: string;
3403
+ version: number;
3404
+ stateHash: string;
3405
+ }[];
2916
3406
  wraps: Record<string, unknown>[];
2917
3407
  containerRekeys?: {
2918
3408
  body: unknown;
@@ -2922,7 +3412,12 @@ export declare const revokeContainerOperation: Omit<{
2922
3412
  keyring: Record<string, unknown> | null;
2923
3413
  manifest: Record<string, unknown>;
2924
3414
  predecessorBridge: Record<string, unknown> | null;
2925
- principalPolicies: Record<string, unknown>[];
3415
+ principalPolicyRefs: {
3416
+ principalType: "group" | "organization";
3417
+ principalId: string;
3418
+ version: number;
3419
+ stateHash: string;
3420
+ }[];
2926
3421
  wraps: Record<string, unknown>[];
2927
3422
  containerManifestHistoryRefs?: {
2928
3423
  containerId: string;
@@ -3709,7 +4204,12 @@ export declare const rekeyContainerOperation: Omit<{
3709
4204
  keyring: Record<string, unknown> | null;
3710
4205
  manifest: Record<string, unknown>;
3711
4206
  predecessorBridge: Record<string, unknown> | null;
3712
- principalPolicies: Record<string, unknown>[];
4207
+ principalPolicyRefs: {
4208
+ principalType: "group" | "organization";
4209
+ principalId: string;
4210
+ version: number;
4211
+ stateHash: string;
4212
+ }[];
3713
4213
  wraps: Record<string, unknown>[];
3714
4214
  containerRekeys?: {
3715
4215
  body: unknown;
@@ -3719,7 +4219,12 @@ export declare const rekeyContainerOperation: Omit<{
3719
4219
  keyring: Record<string, unknown> | null;
3720
4220
  manifest: Record<string, unknown>;
3721
4221
  predecessorBridge: Record<string, unknown> | null;
3722
- principalPolicies: Record<string, unknown>[];
4222
+ principalPolicyRefs: {
4223
+ principalType: "group" | "organization";
4224
+ principalId: string;
4225
+ version: number;
4226
+ stateHash: string;
4227
+ }[];
3723
4228
  wraps: Record<string, unknown>[];
3724
4229
  containerManifestHistoryRefs?: {
3725
4230
  containerId: string;
@@ -3774,7 +4279,12 @@ export declare const rekeyContainerOperation: Omit<{
3774
4279
  keyring: Record<string, unknown> | null;
3775
4280
  manifest: Record<string, unknown>;
3776
4281
  predecessorBridge: Record<string, unknown> | null;
3777
- principalPolicies: Record<string, unknown>[];
4282
+ principalPolicyRefs: {
4283
+ principalType: "group" | "organization";
4284
+ principalId: string;
4285
+ version: number;
4286
+ stateHash: string;
4287
+ }[];
3778
4288
  wraps: Record<string, unknown>[];
3779
4289
  containerRekeys?: {
3780
4290
  body: unknown;
@@ -3784,7 +4294,12 @@ export declare const rekeyContainerOperation: Omit<{
3784
4294
  keyring: Record<string, unknown> | null;
3785
4295
  manifest: Record<string, unknown>;
3786
4296
  predecessorBridge: Record<string, unknown> | null;
3787
- principalPolicies: Record<string, unknown>[];
4297
+ principalPolicyRefs: {
4298
+ principalType: "group" | "organization";
4299
+ principalId: string;
4300
+ version: number;
4301
+ stateHash: string;
4302
+ }[];
3788
4303
  wraps: Record<string, unknown>[];
3789
4304
  containerManifestHistoryRefs?: {
3790
4305
  containerId: string;
@@ -3839,7 +4354,12 @@ export declare const rekeyContainerOperation: Omit<{
3839
4354
  keyring: Record<string, unknown> | null;
3840
4355
  manifest: Record<string, unknown>;
3841
4356
  predecessorBridge: Record<string, unknown> | null;
3842
- principalPolicies: Record<string, unknown>[];
4357
+ principalPolicyRefs: {
4358
+ principalType: "group" | "organization";
4359
+ principalId: string;
4360
+ version: number;
4361
+ stateHash: string;
4362
+ }[];
3843
4363
  wraps: Record<string, unknown>[];
3844
4364
  containerRekeys?: {
3845
4365
  body: unknown;
@@ -3849,7 +4369,12 @@ export declare const rekeyContainerOperation: Omit<{
3849
4369
  keyring: Record<string, unknown> | null;
3850
4370
  manifest: Record<string, unknown>;
3851
4371
  predecessorBridge: Record<string, unknown> | null;
3852
- principalPolicies: Record<string, unknown>[];
4372
+ principalPolicyRefs: {
4373
+ principalType: "group" | "organization";
4374
+ principalId: string;
4375
+ version: number;
4376
+ stateHash: string;
4377
+ }[];
3853
4378
  wraps: Record<string, unknown>[];
3854
4379
  containerManifestHistoryRefs?: {
3855
4380
  containerId: string;
@@ -3904,7 +4429,12 @@ export declare const rekeyContainerOperation: Omit<{
3904
4429
  keyring: Record<string, unknown> | null;
3905
4430
  manifest: Record<string, unknown>;
3906
4431
  predecessorBridge: Record<string, unknown> | null;
3907
- principalPolicies: Record<string, unknown>[];
4432
+ principalPolicyRefs: {
4433
+ principalType: "group" | "organization";
4434
+ principalId: string;
4435
+ version: number;
4436
+ stateHash: string;
4437
+ }[];
3908
4438
  wraps: Record<string, unknown>[];
3909
4439
  containerRekeys?: {
3910
4440
  body: unknown;
@@ -3914,7 +4444,12 @@ export declare const rekeyContainerOperation: Omit<{
3914
4444
  keyring: Record<string, unknown> | null;
3915
4445
  manifest: Record<string, unknown>;
3916
4446
  predecessorBridge: Record<string, unknown> | null;
3917
- principalPolicies: Record<string, unknown>[];
4447
+ principalPolicyRefs: {
4448
+ principalType: "group" | "organization";
4449
+ principalId: string;
4450
+ version: number;
4451
+ stateHash: string;
4452
+ }[];
3918
4453
  wraps: Record<string, unknown>[];
3919
4454
  containerManifestHistoryRefs?: {
3920
4455
  containerId: string;
@@ -4701,7 +5236,12 @@ export declare const moveContainerOperation: Omit<{
4701
5236
  keyring: Record<string, unknown> | null;
4702
5237
  manifest: Record<string, unknown>;
4703
5238
  predecessorBridge: Record<string, unknown> | null;
4704
- principalPolicies: Record<string, unknown>[];
5239
+ principalPolicyRefs: {
5240
+ principalType: "group" | "organization";
5241
+ principalId: string;
5242
+ version: number;
5243
+ stateHash: string;
5244
+ }[];
4705
5245
  wraps: Record<string, unknown>[];
4706
5246
  containerRekeys?: {
4707
5247
  body: unknown;
@@ -4711,7 +5251,12 @@ export declare const moveContainerOperation: Omit<{
4711
5251
  keyring: Record<string, unknown> | null;
4712
5252
  manifest: Record<string, unknown>;
4713
5253
  predecessorBridge: Record<string, unknown> | null;
4714
- principalPolicies: Record<string, unknown>[];
5254
+ principalPolicyRefs: {
5255
+ principalType: "group" | "organization";
5256
+ principalId: string;
5257
+ version: number;
5258
+ stateHash: string;
5259
+ }[];
4715
5260
  wraps: Record<string, unknown>[];
4716
5261
  containerManifestHistoryRefs?: {
4717
5262
  containerId: string;
@@ -4766,7 +5311,12 @@ export declare const moveContainerOperation: Omit<{
4766
5311
  keyring: Record<string, unknown> | null;
4767
5312
  manifest: Record<string, unknown>;
4768
5313
  predecessorBridge: Record<string, unknown> | null;
4769
- principalPolicies: Record<string, unknown>[];
5314
+ principalPolicyRefs: {
5315
+ principalType: "group" | "organization";
5316
+ principalId: string;
5317
+ version: number;
5318
+ stateHash: string;
5319
+ }[];
4770
5320
  wraps: Record<string, unknown>[];
4771
5321
  containerRekeys?: {
4772
5322
  body: unknown;
@@ -4776,7 +5326,12 @@ export declare const moveContainerOperation: Omit<{
4776
5326
  keyring: Record<string, unknown> | null;
4777
5327
  manifest: Record<string, unknown>;
4778
5328
  predecessorBridge: Record<string, unknown> | null;
4779
- principalPolicies: Record<string, unknown>[];
5329
+ principalPolicyRefs: {
5330
+ principalType: "group" | "organization";
5331
+ principalId: string;
5332
+ version: number;
5333
+ stateHash: string;
5334
+ }[];
4780
5335
  wraps: Record<string, unknown>[];
4781
5336
  containerManifestHistoryRefs?: {
4782
5337
  containerId: string;
@@ -4831,7 +5386,12 @@ export declare const moveContainerOperation: Omit<{
4831
5386
  keyring: Record<string, unknown> | null;
4832
5387
  manifest: Record<string, unknown>;
4833
5388
  predecessorBridge: Record<string, unknown> | null;
4834
- principalPolicies: Record<string, unknown>[];
5389
+ principalPolicyRefs: {
5390
+ principalType: "group" | "organization";
5391
+ principalId: string;
5392
+ version: number;
5393
+ stateHash: string;
5394
+ }[];
4835
5395
  wraps: Record<string, unknown>[];
4836
5396
  containerRekeys?: {
4837
5397
  body: unknown;
@@ -4841,7 +5401,12 @@ export declare const moveContainerOperation: Omit<{
4841
5401
  keyring: Record<string, unknown> | null;
4842
5402
  manifest: Record<string, unknown>;
4843
5403
  predecessorBridge: Record<string, unknown> | null;
4844
- principalPolicies: Record<string, unknown>[];
5404
+ principalPolicyRefs: {
5405
+ principalType: "group" | "organization";
5406
+ principalId: string;
5407
+ version: number;
5408
+ stateHash: string;
5409
+ }[];
4845
5410
  wraps: Record<string, unknown>[];
4846
5411
  containerManifestHistoryRefs?: {
4847
5412
  containerId: string;
@@ -4896,7 +5461,12 @@ export declare const moveContainerOperation: Omit<{
4896
5461
  keyring: Record<string, unknown> | null;
4897
5462
  manifest: Record<string, unknown>;
4898
5463
  predecessorBridge: Record<string, unknown> | null;
4899
- principalPolicies: Record<string, unknown>[];
5464
+ principalPolicyRefs: {
5465
+ principalType: "group" | "organization";
5466
+ principalId: string;
5467
+ version: number;
5468
+ stateHash: string;
5469
+ }[];
4900
5470
  wraps: Record<string, unknown>[];
4901
5471
  containerRekeys?: {
4902
5472
  body: unknown;
@@ -4906,7 +5476,12 @@ export declare const moveContainerOperation: Omit<{
4906
5476
  keyring: Record<string, unknown> | null;
4907
5477
  manifest: Record<string, unknown>;
4908
5478
  predecessorBridge: Record<string, unknown> | null;
4909
- principalPolicies: Record<string, unknown>[];
5479
+ principalPolicyRefs: {
5480
+ principalType: "group" | "organization";
5481
+ principalId: string;
5482
+ version: number;
5483
+ stateHash: string;
5484
+ }[];
4910
5485
  wraps: Record<string, unknown>[];
4911
5486
  containerManifestHistoryRefs?: {
4912
5487
  containerId: string;