@tearleads/client-sdk 0.1.69 → 0.1.72
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/shared/userTiming.js +42 -0
- package/data/shared/userTiming.js.map +1 -0
- package/data/sqlite/sqlExec.js +27 -3
- package/data/sqlite/sqlExec.js.map +1 -1
- package/data/sync/coordinatorLaneRun.js +29 -6
- package/data/sync/coordinatorLaneRun.js.map +1 -1
- package/data/sync/coordinatorState.d.ts +3 -1
- package/data/sync/coordinatorState.js +1 -0
- package/data/sync/coordinatorState.js.map +1 -1
- package/data/sync/syncTelemetry.d.ts +15 -0
- package/data/sync/syncTelemetry.js +10 -0
- package/data/sync/syncTelemetry.js.map +1 -1
- package/data/sync/uploadLane.js +20 -3
- package/data/sync/uploadLane.js.map +1 -1
- package/internal/api-client/ApiClient.d.ts +73 -3
- package/internal/api-client/apiRequestMetrics.d.ts +18 -4
- package/internal/api-client/apiRequestMetrics.js +55 -5
- package/internal/api-client/apiRequestMetrics.js.map +1 -1
- package/internal/api-client/durationSampleWindow.d.ts +26 -0
- package/internal/api-client/durationSampleWindow.js +42 -0
- package/internal/api-client/durationSampleWindow.js.map +1 -0
- package/internal/api-client/measureApiRequest.js +9 -4
- package/internal/api-client/measureApiRequest.js.map +1 -1
- package/internal/api-client/serverTiming.d.ts +12 -0
- package/internal/api-client/serverTiming.js +49 -0
- package/internal/api-client/serverTiming.js.map +1 -0
- package/internal/validators/documentCreateSeedRefinements.js +9 -0
- package/internal/validators/documentCreateSeedRefinements.js.map +1 -0
- package/internal/validators/operation/auth.d.ts +120 -0
- package/internal/validators/operation/containerMutations.d.ts +355 -0
- package/internal/validators/operation/containerMutations.js +7 -1
- package/internal/validators/operation/containerMutations.js.map +1 -1
- package/internal/validators/operation/documentMutations.d.ts +356 -0
- package/internal/validators/operation/documentMutations.js +6 -1
- package/internal/validators/operation/documentMutations.js.map +1 -1
- package/internal/validators/operation/documentSync.d.ts +9 -9
- package/internal/validators/operation/organizations.d.ts +120 -0
- package/internal/validators/request/containerMetadata.d.ts +313 -0
- package/internal/validators/request/containerMetadata.js +20 -3
- package/internal/validators/request/containerMetadata.js.map +1 -1
- package/internal/validators/request/document.d.ts +571 -0
- package/internal/validators/request/document.js +19 -1
- package/internal/validators/request/document.js.map +1 -1
- package/internal/validators/request/documentCreateSeed.js +35 -0
- package/internal/validators/request/documentCreateSeed.js.map +1 -0
- package/internal/validators/request/organizationProvisioning.js +9 -22
- package/internal/validators/request/organizationProvisioning.js.map +1 -1
- package/internal/validators/response/containerMetadata.d.ts +20 -0
- package/internal/validators/response/documentMutation.d.ts +43 -0
- package/internal/validators/response/documentMutation.js +12 -1
- package/internal/validators/response/documentMutation.js.map +1 -1
- package/internal/validators/response/documentSyncSchema.d.ts +13 -9
- package/internal/validators/response/documentSyncSchema.js +23 -18
- package/internal/validators/response/documentSyncSchema.js.map +1 -1
- package/internal/validators/response/index.d.ts +1 -1
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/organizationProvisioning.d.ts +350 -0
- package/internal/validators/response/registration.d.ts +120 -0
- package/package.json +1 -1
- package/stores/container-contents/containerState/containerStatePersistence.js +2 -0
- package/stores/container-contents/containerState/containerStatePersistence.js.map +1 -1
- package/stores/container-contents/remoteEvents/remoteEventSync.js +1 -1
- package/stores/container-contents/remoteEvents/remoteEventSync.js.map +1 -1
- package/stores/container-contents/state.js +2 -0
- package/stores/container-contents/state.js.map +1 -1
- package/stores/container-contents/syncAgent/syncAgentTypes.d.ts +5 -0
- package/stores/container-contents/syncAgent/syncAgentTypes.js.map +1 -1
- package/stores/documents/documentStore/sync/createdDocumentPersistence.js +71 -0
- package/stores/documents/documentStore/sync/createdDocumentPersistence.js.map +1 -0
- package/stores/documents/documentStore/sync/index.js +13 -2
- package/stores/documents/documentStore/sync/index.js.map +1 -1
- package/stores/documents/documentStore/sync/syncRemoteSignals.js +21 -3
- package/stores/documents/documentStore/sync/syncRemoteSignals.js.map +1 -1
- package/stores/documents/documentStore/sync/syncSeededCreate.js +50 -0
- package/stores/documents/documentStore/sync/syncSeededCreate.js.map +1 -0
- package/stores/documents/documentStore/sync/syncShared.js +16 -8
- package/stores/documents/documentStore/sync/syncShared.js.map +1 -1
- package/workflows/container-contents/container-state/create/createIntentSeed.js +60 -0
- package/workflows/container-contents/container-state/create/createIntentSeed.js.map +1 -0
- package/workflows/container-contents/container-state/create/createIntentSync.js +18 -19
- package/workflows/container-contents/container-state/create/createIntentSync.js.map +1 -1
- package/workflows/container-contents/container-state/create/createWithMetadata.js +43 -6
- package/workflows/container-contents/container-state/create/createWithMetadata.js.map +1 -1
- package/workflows/container-contents/container-state/create/createWithMetadataPlan.js +5 -1
- package/workflows/container-contents/container-state/create/createWithMetadataPlan.js.map +1 -1
- package/workflows/container-contents/container-state/remote.js +15 -0
- package/workflows/container-contents/container-state/remote.js.map +1 -1
- package/workflows/container-contents/container-state/types.js.map +1 -1
- package/workflows/container-contents/metadata/metadataEvents.d.ts +7 -1
- package/workflows/container-contents/metadata/metadataEvents.js +8 -2
- package/workflows/container-contents/metadata/metadataEvents.js.map +1 -1
- package/workflows/container-contents/remoteHydration/types.d.ts +3 -0
- package/workflows/container-contents/remoteHydration/types.js.map +1 -1
- package/workflows/documents/create/index.d.ts +7 -0
- package/workflows/documents/create/index.js +40 -2
- package/workflows/documents/create/index.js.map +1 -1
- package/workflows/documents/index.d.ts +1 -0
- package/workflows/documents/index.js +1 -0
- package/workflows/documents/index.js.map +1 -1
- package/workflows/documents/sync/initialSync.d.ts +39 -0
- package/workflows/documents/sync/initialSync.js +39 -6
- package/workflows/documents/sync/initialSync.js.map +1 -1
|
@@ -5665,6 +5665,11 @@ export declare const registerOperation: Omit<{
|
|
|
5665
5665
|
targets: Record<string, unknown>[];
|
|
5666
5666
|
};
|
|
5667
5667
|
id: string;
|
|
5668
|
+
initialSync?: {
|
|
5669
|
+
commitLsn: string | null;
|
|
5670
|
+
commitLsnMode: "tracked" | "untracked";
|
|
5671
|
+
acceptedOutgoingUpdateIds: string[];
|
|
5672
|
+
} | undefined;
|
|
5668
5673
|
};
|
|
5669
5674
|
};
|
|
5670
5675
|
organizationMetadataContainerId: string;
|
|
@@ -5706,6 +5711,11 @@ export declare const registerOperation: Omit<{
|
|
|
5706
5711
|
targets: Record<string, unknown>[];
|
|
5707
5712
|
};
|
|
5708
5713
|
id: string;
|
|
5714
|
+
initialSync?: {
|
|
5715
|
+
commitLsn: string | null;
|
|
5716
|
+
commitLsnMode: "tracked" | "untracked";
|
|
5717
|
+
acceptedOutgoingUpdateIds: string[];
|
|
5718
|
+
} | undefined;
|
|
5709
5719
|
};
|
|
5710
5720
|
rootMetadataDocumentId: string;
|
|
5711
5721
|
systemContainers: {
|
|
@@ -5804,6 +5814,11 @@ export declare const registerOperation: Omit<{
|
|
|
5804
5814
|
targets: Record<string, unknown>[];
|
|
5805
5815
|
};
|
|
5806
5816
|
id: string;
|
|
5817
|
+
initialSync?: {
|
|
5818
|
+
commitLsn: string | null;
|
|
5819
|
+
commitLsnMode: "tracked" | "untracked";
|
|
5820
|
+
acceptedOutgoingUpdateIds: string[];
|
|
5821
|
+
} | undefined;
|
|
5807
5822
|
};
|
|
5808
5823
|
}[];
|
|
5809
5824
|
userId: string;
|
|
@@ -5842,6 +5857,11 @@ export declare const registerOperation: Omit<{
|
|
|
5842
5857
|
targets: Record<string, unknown>[];
|
|
5843
5858
|
};
|
|
5844
5859
|
id: string;
|
|
5860
|
+
initialSync?: {
|
|
5861
|
+
commitLsn: string | null;
|
|
5862
|
+
commitLsnMode: "tracked" | "untracked";
|
|
5863
|
+
acceptedOutgoingUpdateIds: string[];
|
|
5864
|
+
} | undefined;
|
|
5845
5865
|
} | undefined;
|
|
5846
5866
|
organizationProfileDocumentId?: string | undefined;
|
|
5847
5867
|
rosterProfileContainer?: {
|
|
@@ -5940,6 +5960,11 @@ export declare const registerOperation: Omit<{
|
|
|
5940
5960
|
targets: Record<string, unknown>[];
|
|
5941
5961
|
};
|
|
5942
5962
|
id: string;
|
|
5963
|
+
initialSync?: {
|
|
5964
|
+
commitLsn: string | null;
|
|
5965
|
+
commitLsnMode: "tracked" | "untracked";
|
|
5966
|
+
acceptedOutgoingUpdateIds: string[];
|
|
5967
|
+
} | undefined;
|
|
5943
5968
|
};
|
|
5944
5969
|
} | undefined;
|
|
5945
5970
|
rosterProfileContainerId?: string | undefined;
|
|
@@ -5978,6 +6003,11 @@ export declare const registerOperation: Omit<{
|
|
|
5978
6003
|
targets: Record<string, unknown>[];
|
|
5979
6004
|
};
|
|
5980
6005
|
id: string;
|
|
6006
|
+
initialSync?: {
|
|
6007
|
+
commitLsn: string | null;
|
|
6008
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6009
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6010
|
+
} | undefined;
|
|
5981
6011
|
} | undefined;
|
|
5982
6012
|
rosterProfileDocumentId?: string | undefined;
|
|
5983
6013
|
}, {
|
|
@@ -6081,6 +6111,11 @@ export declare const registerOperation: Omit<{
|
|
|
6081
6111
|
targets: Record<string, unknown>[];
|
|
6082
6112
|
};
|
|
6083
6113
|
id: string;
|
|
6114
|
+
initialSync?: {
|
|
6115
|
+
commitLsn: string | null;
|
|
6116
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6117
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6118
|
+
} | undefined;
|
|
6084
6119
|
};
|
|
6085
6120
|
};
|
|
6086
6121
|
organizationMetadataContainerId: string;
|
|
@@ -6122,6 +6157,11 @@ export declare const registerOperation: Omit<{
|
|
|
6122
6157
|
targets: Record<string, unknown>[];
|
|
6123
6158
|
};
|
|
6124
6159
|
id: string;
|
|
6160
|
+
initialSync?: {
|
|
6161
|
+
commitLsn: string | null;
|
|
6162
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6163
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6164
|
+
} | undefined;
|
|
6125
6165
|
};
|
|
6126
6166
|
rootMetadataDocumentId: string;
|
|
6127
6167
|
systemContainers: {
|
|
@@ -6220,6 +6260,11 @@ export declare const registerOperation: Omit<{
|
|
|
6220
6260
|
targets: Record<string, unknown>[];
|
|
6221
6261
|
};
|
|
6222
6262
|
id: string;
|
|
6263
|
+
initialSync?: {
|
|
6264
|
+
commitLsn: string | null;
|
|
6265
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6266
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6267
|
+
} | undefined;
|
|
6223
6268
|
};
|
|
6224
6269
|
}[];
|
|
6225
6270
|
userId: string;
|
|
@@ -6258,6 +6303,11 @@ export declare const registerOperation: Omit<{
|
|
|
6258
6303
|
targets: Record<string, unknown>[];
|
|
6259
6304
|
};
|
|
6260
6305
|
id: string;
|
|
6306
|
+
initialSync?: {
|
|
6307
|
+
commitLsn: string | null;
|
|
6308
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6309
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6310
|
+
} | undefined;
|
|
6261
6311
|
} | undefined;
|
|
6262
6312
|
organizationProfileDocumentId?: string | undefined;
|
|
6263
6313
|
rosterProfileContainer?: {
|
|
@@ -6356,6 +6406,11 @@ export declare const registerOperation: Omit<{
|
|
|
6356
6406
|
targets: Record<string, unknown>[];
|
|
6357
6407
|
};
|
|
6358
6408
|
id: string;
|
|
6409
|
+
initialSync?: {
|
|
6410
|
+
commitLsn: string | null;
|
|
6411
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6412
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6413
|
+
} | undefined;
|
|
6359
6414
|
};
|
|
6360
6415
|
} | undefined;
|
|
6361
6416
|
rosterProfileContainerId?: string | undefined;
|
|
@@ -6394,6 +6449,11 @@ export declare const registerOperation: Omit<{
|
|
|
6394
6449
|
targets: Record<string, unknown>[];
|
|
6395
6450
|
};
|
|
6396
6451
|
id: string;
|
|
6452
|
+
initialSync?: {
|
|
6453
|
+
commitLsn: string | null;
|
|
6454
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6455
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6456
|
+
} | undefined;
|
|
6397
6457
|
} | undefined;
|
|
6398
6458
|
rosterProfileDocumentId?: string | undefined;
|
|
6399
6459
|
}, z.core.$ZodTypeInternals<{
|
|
@@ -6497,6 +6557,11 @@ export declare const registerOperation: Omit<{
|
|
|
6497
6557
|
targets: Record<string, unknown>[];
|
|
6498
6558
|
};
|
|
6499
6559
|
id: string;
|
|
6560
|
+
initialSync?: {
|
|
6561
|
+
commitLsn: string | null;
|
|
6562
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6563
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6564
|
+
} | undefined;
|
|
6500
6565
|
};
|
|
6501
6566
|
};
|
|
6502
6567
|
organizationMetadataContainerId: string;
|
|
@@ -6538,6 +6603,11 @@ export declare const registerOperation: Omit<{
|
|
|
6538
6603
|
targets: Record<string, unknown>[];
|
|
6539
6604
|
};
|
|
6540
6605
|
id: string;
|
|
6606
|
+
initialSync?: {
|
|
6607
|
+
commitLsn: string | null;
|
|
6608
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6609
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6610
|
+
} | undefined;
|
|
6541
6611
|
};
|
|
6542
6612
|
rootMetadataDocumentId: string;
|
|
6543
6613
|
systemContainers: {
|
|
@@ -6636,6 +6706,11 @@ export declare const registerOperation: Omit<{
|
|
|
6636
6706
|
targets: Record<string, unknown>[];
|
|
6637
6707
|
};
|
|
6638
6708
|
id: string;
|
|
6709
|
+
initialSync?: {
|
|
6710
|
+
commitLsn: string | null;
|
|
6711
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6712
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6713
|
+
} | undefined;
|
|
6639
6714
|
};
|
|
6640
6715
|
}[];
|
|
6641
6716
|
userId: string;
|
|
@@ -6674,6 +6749,11 @@ export declare const registerOperation: Omit<{
|
|
|
6674
6749
|
targets: Record<string, unknown>[];
|
|
6675
6750
|
};
|
|
6676
6751
|
id: string;
|
|
6752
|
+
initialSync?: {
|
|
6753
|
+
commitLsn: string | null;
|
|
6754
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6755
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6756
|
+
} | undefined;
|
|
6677
6757
|
} | undefined;
|
|
6678
6758
|
organizationProfileDocumentId?: string | undefined;
|
|
6679
6759
|
rosterProfileContainer?: {
|
|
@@ -6772,6 +6852,11 @@ export declare const registerOperation: Omit<{
|
|
|
6772
6852
|
targets: Record<string, unknown>[];
|
|
6773
6853
|
};
|
|
6774
6854
|
id: string;
|
|
6855
|
+
initialSync?: {
|
|
6856
|
+
commitLsn: string | null;
|
|
6857
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6858
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6859
|
+
} | undefined;
|
|
6775
6860
|
};
|
|
6776
6861
|
} | undefined;
|
|
6777
6862
|
rosterProfileContainerId?: string | undefined;
|
|
@@ -6810,6 +6895,11 @@ export declare const registerOperation: Omit<{
|
|
|
6810
6895
|
targets: Record<string, unknown>[];
|
|
6811
6896
|
};
|
|
6812
6897
|
id: string;
|
|
6898
|
+
initialSync?: {
|
|
6899
|
+
commitLsn: string | null;
|
|
6900
|
+
commitLsnMode: "tracked" | "untracked";
|
|
6901
|
+
acceptedOutgoingUpdateIds: string[];
|
|
6902
|
+
} | undefined;
|
|
6813
6903
|
} | undefined;
|
|
6814
6904
|
rosterProfileDocumentId?: string | undefined;
|
|
6815
6905
|
}, {
|
|
@@ -6913,6 +7003,11 @@ export declare const registerOperation: Omit<{
|
|
|
6913
7003
|
targets: Record<string, unknown>[];
|
|
6914
7004
|
};
|
|
6915
7005
|
id: string;
|
|
7006
|
+
initialSync?: {
|
|
7007
|
+
commitLsn: string | null;
|
|
7008
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7009
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7010
|
+
} | undefined;
|
|
6916
7011
|
};
|
|
6917
7012
|
};
|
|
6918
7013
|
organizationMetadataContainerId: string;
|
|
@@ -6954,6 +7049,11 @@ export declare const registerOperation: Omit<{
|
|
|
6954
7049
|
targets: Record<string, unknown>[];
|
|
6955
7050
|
};
|
|
6956
7051
|
id: string;
|
|
7052
|
+
initialSync?: {
|
|
7053
|
+
commitLsn: string | null;
|
|
7054
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7055
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7056
|
+
} | undefined;
|
|
6957
7057
|
};
|
|
6958
7058
|
rootMetadataDocumentId: string;
|
|
6959
7059
|
systemContainers: {
|
|
@@ -7052,6 +7152,11 @@ export declare const registerOperation: Omit<{
|
|
|
7052
7152
|
targets: Record<string, unknown>[];
|
|
7053
7153
|
};
|
|
7054
7154
|
id: string;
|
|
7155
|
+
initialSync?: {
|
|
7156
|
+
commitLsn: string | null;
|
|
7157
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7158
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7159
|
+
} | undefined;
|
|
7055
7160
|
};
|
|
7056
7161
|
}[];
|
|
7057
7162
|
userId: string;
|
|
@@ -7090,6 +7195,11 @@ export declare const registerOperation: Omit<{
|
|
|
7090
7195
|
targets: Record<string, unknown>[];
|
|
7091
7196
|
};
|
|
7092
7197
|
id: string;
|
|
7198
|
+
initialSync?: {
|
|
7199
|
+
commitLsn: string | null;
|
|
7200
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7201
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7202
|
+
} | undefined;
|
|
7093
7203
|
} | undefined;
|
|
7094
7204
|
organizationProfileDocumentId?: string | undefined;
|
|
7095
7205
|
rosterProfileContainer?: {
|
|
@@ -7188,6 +7298,11 @@ export declare const registerOperation: Omit<{
|
|
|
7188
7298
|
targets: Record<string, unknown>[];
|
|
7189
7299
|
};
|
|
7190
7300
|
id: string;
|
|
7301
|
+
initialSync?: {
|
|
7302
|
+
commitLsn: string | null;
|
|
7303
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7304
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7305
|
+
} | undefined;
|
|
7191
7306
|
};
|
|
7192
7307
|
} | undefined;
|
|
7193
7308
|
rosterProfileContainerId?: string | undefined;
|
|
@@ -7226,6 +7341,11 @@ export declare const registerOperation: Omit<{
|
|
|
7226
7341
|
targets: Record<string, unknown>[];
|
|
7227
7342
|
};
|
|
7228
7343
|
id: string;
|
|
7344
|
+
initialSync?: {
|
|
7345
|
+
commitLsn: string | null;
|
|
7346
|
+
commitLsnMode: "tracked" | "untracked";
|
|
7347
|
+
acceptedOutgoingUpdateIds: string[];
|
|
7348
|
+
} | undefined;
|
|
7229
7349
|
} | undefined;
|
|
7230
7350
|
rosterProfileDocumentId?: string | undefined;
|
|
7231
7351
|
}>>;
|
|
@@ -749,6 +749,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
749
749
|
manifestHash: string;
|
|
750
750
|
}[] | undefined;
|
|
751
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;
|
|
752
829
|
systemSlot?: string | null | undefined;
|
|
753
830
|
}, {
|
|
754
831
|
container: {
|
|
@@ -854,6 +931,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
854
931
|
manifestHash: string;
|
|
855
932
|
}[] | undefined;
|
|
856
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;
|
|
857
1011
|
systemSlot?: string | null | undefined;
|
|
858
1012
|
}, z.core.$ZodTypeInternals<{
|
|
859
1013
|
container: {
|
|
@@ -959,6 +1113,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
959
1113
|
manifestHash: string;
|
|
960
1114
|
}[] | undefined;
|
|
961
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;
|
|
962
1193
|
systemSlot?: string | null | undefined;
|
|
963
1194
|
}, {
|
|
964
1195
|
container: {
|
|
@@ -1064,6 +1295,83 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
1064
1295
|
manifestHash: string;
|
|
1065
1296
|
}[] | undefined;
|
|
1066
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;
|
|
1067
1375
|
systemSlot?: string | null | undefined;
|
|
1068
1376
|
}>>;
|
|
1069
1377
|
readonly failureResponses: {
|
|
@@ -1294,6 +1602,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
1294
1602
|
targets: Record<string, unknown>[];
|
|
1295
1603
|
};
|
|
1296
1604
|
id: string;
|
|
1605
|
+
initialSync?: {
|
|
1606
|
+
commitLsn: string | null;
|
|
1607
|
+
commitLsnMode: "tracked" | "untracked";
|
|
1608
|
+
acceptedOutgoingUpdateIds: string[];
|
|
1609
|
+
} | undefined;
|
|
1297
1610
|
};
|
|
1298
1611
|
}, {
|
|
1299
1612
|
container: {
|
|
@@ -1391,6 +1704,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
1391
1704
|
targets: Record<string, unknown>[];
|
|
1392
1705
|
};
|
|
1393
1706
|
id: string;
|
|
1707
|
+
initialSync?: {
|
|
1708
|
+
commitLsn: string | null;
|
|
1709
|
+
commitLsnMode: "tracked" | "untracked";
|
|
1710
|
+
acceptedOutgoingUpdateIds: string[];
|
|
1711
|
+
} | undefined;
|
|
1394
1712
|
};
|
|
1395
1713
|
}, z.core.$ZodTypeInternals<{
|
|
1396
1714
|
container: {
|
|
@@ -1488,6 +1806,11 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
1488
1806
|
targets: Record<string, unknown>[];
|
|
1489
1807
|
};
|
|
1490
1808
|
id: string;
|
|
1809
|
+
initialSync?: {
|
|
1810
|
+
commitLsn: string | null;
|
|
1811
|
+
commitLsnMode: "tracked" | "untracked";
|
|
1812
|
+
acceptedOutgoingUpdateIds: string[];
|
|
1813
|
+
} | undefined;
|
|
1491
1814
|
};
|
|
1492
1815
|
}, {
|
|
1493
1816
|
container: {
|
|
@@ -1585,12 +1908,44 @@ export declare const createContainerWithMetadataDocumentOperation: Omit<{
|
|
|
1585
1908
|
targets: Record<string, unknown>[];
|
|
1586
1909
|
};
|
|
1587
1910
|
id: string;
|
|
1911
|
+
initialSync?: {
|
|
1912
|
+
commitLsn: string | null;
|
|
1913
|
+
commitLsnMode: "tracked" | "untracked";
|
|
1914
|
+
acceptedOutgoingUpdateIds: string[];
|
|
1915
|
+
} | undefined;
|
|
1588
1916
|
};
|
|
1589
1917
|
}>>;
|
|
1590
1918
|
};
|
|
1591
1919
|
readonly runtimeRefinements: readonly [{
|
|
1592
1920
|
readonly description: "a container response keyring is null exactly for container key epoch 1";
|
|
1593
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";
|
|
1594
1949
|
}];
|
|
1595
1950
|
}, "failureResponses" | "failureStatuses"> & {
|
|
1596
1951
|
readonly failureResponses: {
|