@tearleads/client-sdk 0.1.40 → 0.1.42
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/client/Tearleads.js +3 -0
- package/client/Tearleads.js.map +1 -1
- package/data/documents/shared/syncResponses.js +5 -7
- package/data/documents/shared/syncResponses.js.map +1 -1
- package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js +2 -0
- package/data/keyingProjectionVerification/accessManifestCheckpointEnforcement.js.map +1 -1
- package/data/keyingProjectionVerification/checkpointContext.d.ts +12 -0
- package/data/keyingProjectionVerification/checkpointContext.js +16 -0
- package/data/keyingProjectionVerification/checkpointContext.js.map +1 -1
- package/data/keyingProjectionVerification/containerDestinationVerification.js +3 -1
- package/data/keyingProjectionVerification/containerDestinationVerification.js.map +1 -1
- package/data/keyingProjectionVerification/containerProjectionVerification.js +12 -6
- package/data/keyingProjectionVerification/containerProjectionVerification.js.map +1 -1
- package/data/keyingProjectionVerification/documentProjectionVerification.js +10 -4
- package/data/keyingProjectionVerification/documentProjectionVerification.js.map +1 -1
- package/data/persistence/keyingCheckpointAdvancePersistence.js +27 -8
- package/data/persistence/keyingCheckpointAdvancePersistence.js.map +1 -1
- package/data/persistence/verifiedManifestBundlePersistence.d.ts +45 -0
- package/data/persistence/verifiedManifestBundlePersistence.js +282 -0
- package/data/persistence/verifiedManifestBundlePersistence.js.map +1 -0
- package/data/sqlite/schema.d.ts +157 -0
- package/data/sqlite/schema.js +3 -0
- package/data/sqlite/schema.js.map +1 -1
- package/data/sqlite/verifiedManifestBundleSchema.d.ts +174 -0
- package/data/sqlite/verifiedManifestBundleSchema.js +36 -0
- package/data/sqlite/verifiedManifestBundleSchema.js.map +1 -0
- package/internal/api-client/ApiClient.d.ts +4 -11
- package/internal/api-client/ApiClient.js +8 -6
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/index.d.ts +1 -1
- package/internal/api-client/index.js +0 -1
- package/internal/api-client/index.js.map +1 -1
- package/internal/api-client/principalHistoryRequest.js +8 -2
- package/internal/api-client/principalHistoryRequest.js.map +1 -1
- package/internal/api-client/principalHistoryRequestContext.js +15 -5
- package/internal/api-client/principalHistoryRequestContext.js.map +1 -1
- package/internal/api-client/routes/writerProjections.js +6 -3
- package/internal/api-client/routes/writerProjections.js.map +1 -1
- package/internal/api-client/verifiedManifestCitations.d.ts +23 -0
- package/internal/api-client/verifiedManifestCitations.js +60 -0
- package/internal/api-client/verifiedManifestCitations.js.map +1 -0
- package/internal/api-client/writerProjectionRequests.js +75 -14
- package/internal/api-client/writerProjectionRequests.js.map +1 -1
- package/internal/crypto/index.d.ts +0 -1
- package/internal/crypto/index.js +0 -1
- package/internal/crypto/index.js.map +1 -1
- package/internal/validators/documentSyncRefinements.js +5 -0
- package/internal/validators/documentSyncRefinements.js.map +1 -1
- package/internal/validators/knownManifestsRefinements.js +5 -0
- package/internal/validators/knownManifestsRefinements.js.map +1 -0
- package/internal/validators/operation/documentSync.d.ts +3 -0
- package/internal/validators/operation/writerProjections.d.ts +85 -319
- package/internal/validators/operation/writerProjections.js +11 -11
- package/internal/validators/operation/writerProjections.js.map +1 -1
- package/internal/validators/response/container.d.ts +429 -20
- package/internal/validators/response/container.js +40 -5
- package/internal/validators/response/container.js.map +1 -1
- package/internal/validators/response/documentMutation.d.ts +440 -20
- package/internal/validators/response/documentMutation.js +33 -3
- package/internal/validators/response/documentMutation.js.map +1 -1
- package/internal/validators/response/documentSyncSchema.js +35 -1
- package/internal/validators/response/documentSyncSchema.js.map +1 -1
- package/internal/validators/response/index.d.ts +3 -2
- package/internal/validators/response/index.js +3 -2
- package/internal/validators/response/index.js.map +1 -1
- package/internal/validators/response/manifestBundleReferences.js +79 -0
- package/internal/validators/response/manifestBundleReferences.js.map +1 -0
- package/internal/validators/response/writerProjectionWire.d.ts +19 -0
- package/internal/validators/response/writerProjectionWire.js +132 -0
- package/internal/validators/response/writerProjectionWire.js.map +1 -0
- package/internal/validators/schema.js +20 -0
- package/internal/validators/schema.js.map +1 -1
- package/internal/validators/util/index.d.ts +1 -1
- package/internal/validators/util/index.js +1 -1
- package/internal/validators/util/index.js.map +1 -1
- package/internal/validators/util/knownManifestWire.d.ts +11 -0
- package/internal/validators/util/knownManifestWire.js +28 -0
- package/internal/validators/util/knownManifestWire.js.map +1 -0
- package/internal/validators/writerProjectionRefinements.js +5 -0
- package/internal/validators/writerProjectionRefinements.js.map +1 -1
- package/package.json +1 -1
- package/workflows/documents/syncContentKeys.js +4 -9
- package/workflows/documents/syncContentKeys.js.map +1 -1
- package/workflows/registration/provisioningBootstrapBuilders.d.ts +0 -5
- package/workflows/sync/remoteReset.js +2 -0
- package/workflows/sync/remoteReset.js.map +1 -1
- package/internal/api-client/projectionHistoryTransport.js +0 -107
- package/internal/api-client/projectionHistoryTransport.js.map +0 -1
- package/internal/api-client/verifiedProjectionHistory.d.ts +0 -4
- package/internal/api-client/verifiedProjectionHistory.js +0 -12
- package/internal/api-client/verifiedProjectionHistory.js.map +0 -1
- package/internal/crypto/projectionHistory.d.ts +0 -14
- package/internal/crypto/projectionHistory.js +0 -90
- package/internal/crypto/projectionHistory.js.map +0 -1
- package/internal/crypto/projectionHistorySlots.d.ts +0 -13
- package/internal/crypto/projectionHistorySlots.js +0 -81
- package/internal/crypto/projectionHistorySlots.js.map +0 -1
- package/internal/validators/projectionHistoryRefinements.js +0 -5
- package/internal/validators/projectionHistoryRefinements.js.map +0 -1
- package/internal/validators/util/projectionHistoryWire.d.ts +0 -23
- package/internal/validators/util/projectionHistoryWire.js +0 -33
- package/internal/validators/util/projectionHistoryWire.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ErrorResponseSchema,
|
|
2
|
+
import { ErrorResponseSchema, isContainerWriterProjectionWireResponse, isDocumentWriterProjectionWireResponse } from "../response/index.js";
|
|
3
3
|
export declare const ContainerWriterProjectionPathParamsSchema: z.ZodObject<{
|
|
4
4
|
containerId: z.ZodString;
|
|
5
5
|
}, z.core.$strict>;
|
|
@@ -73,7 +73,7 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
73
73
|
readonly id: "containers.writerProjection.get";
|
|
74
74
|
readonly method: "GET";
|
|
75
75
|
readonly headers: z.ZodObject<{
|
|
76
|
-
"x-
|
|
76
|
+
"x-known-manifests": z.ZodOptional<z.ZodString>;
|
|
77
77
|
}, z.core.$strip>;
|
|
78
78
|
readonly params: z.ZodObject<{
|
|
79
79
|
containerId: z.ZodString;
|
|
@@ -126,20 +126,11 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
126
126
|
};
|
|
127
127
|
containerId: string;
|
|
128
128
|
containerKeks: {
|
|
129
|
+
containerManifestHistory: string[];
|
|
129
130
|
accessManifestHash: string;
|
|
130
131
|
containerId: string;
|
|
131
132
|
containerKeyEpoch: number;
|
|
132
133
|
containerKeyEpochId: string;
|
|
133
|
-
containerManifestHistory: {
|
|
134
|
-
event: {
|
|
135
|
-
body: unknown;
|
|
136
|
-
event: Record<string, unknown>;
|
|
137
|
-
eventHash: string;
|
|
138
|
-
};
|
|
139
|
-
manifest: Record<string, unknown>;
|
|
140
|
-
manifestHash: string;
|
|
141
|
-
state: Record<string, unknown>;
|
|
142
|
-
}[];
|
|
143
134
|
keyEpoch: Record<string, unknown>;
|
|
144
135
|
keyEpochHash: string;
|
|
145
136
|
keyring: {
|
|
@@ -156,7 +147,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
156
147
|
wraps: Record<string, unknown>[];
|
|
157
148
|
}[];
|
|
158
149
|
organizationId: string;
|
|
159
|
-
path:
|
|
150
|
+
path: string[];
|
|
151
|
+
bundles: Record<string, {
|
|
160
152
|
event: {
|
|
161
153
|
body: unknown;
|
|
162
154
|
event: Record<string, unknown>;
|
|
@@ -165,12 +157,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
165
157
|
manifest: Record<string, unknown>;
|
|
166
158
|
manifestHash: string;
|
|
167
159
|
state: Record<string, unknown>;
|
|
168
|
-
}
|
|
169
|
-
|
|
170
|
-
key: string;
|
|
171
|
-
count: number;
|
|
172
|
-
digest: string;
|
|
173
|
-
}[] | undefined;
|
|
160
|
+
}>;
|
|
161
|
+
omittedBundles: string[];
|
|
174
162
|
}, {
|
|
175
163
|
policyEvidence: {
|
|
176
164
|
organization: {
|
|
@@ -217,20 +205,11 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
217
205
|
};
|
|
218
206
|
containerId: string;
|
|
219
207
|
containerKeks: {
|
|
208
|
+
containerManifestHistory: string[];
|
|
220
209
|
accessManifestHash: string;
|
|
221
210
|
containerId: string;
|
|
222
211
|
containerKeyEpoch: number;
|
|
223
212
|
containerKeyEpochId: string;
|
|
224
|
-
containerManifestHistory: {
|
|
225
|
-
event: {
|
|
226
|
-
body: unknown;
|
|
227
|
-
event: Record<string, unknown>;
|
|
228
|
-
eventHash: string;
|
|
229
|
-
};
|
|
230
|
-
manifest: Record<string, unknown>;
|
|
231
|
-
manifestHash: string;
|
|
232
|
-
state: Record<string, unknown>;
|
|
233
|
-
}[];
|
|
234
213
|
keyEpoch: Record<string, unknown>;
|
|
235
214
|
keyEpochHash: string;
|
|
236
215
|
keyring: {
|
|
@@ -247,7 +226,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
247
226
|
wraps: Record<string, unknown>[];
|
|
248
227
|
}[];
|
|
249
228
|
organizationId: string;
|
|
250
|
-
path:
|
|
229
|
+
path: string[];
|
|
230
|
+
bundles: Record<string, {
|
|
251
231
|
event: {
|
|
252
232
|
body: unknown;
|
|
253
233
|
event: Record<string, unknown>;
|
|
@@ -256,12 +236,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
256
236
|
manifest: Record<string, unknown>;
|
|
257
237
|
manifestHash: string;
|
|
258
238
|
state: Record<string, unknown>;
|
|
259
|
-
}
|
|
260
|
-
|
|
261
|
-
key: string;
|
|
262
|
-
count: number;
|
|
263
|
-
digest: string;
|
|
264
|
-
}[] | undefined;
|
|
239
|
+
}>;
|
|
240
|
+
omittedBundles: string[];
|
|
265
241
|
}, z.core.$ZodTypeInternals<{
|
|
266
242
|
policyEvidence: {
|
|
267
243
|
organization: {
|
|
@@ -308,20 +284,11 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
308
284
|
};
|
|
309
285
|
containerId: string;
|
|
310
286
|
containerKeks: {
|
|
287
|
+
containerManifestHistory: string[];
|
|
311
288
|
accessManifestHash: string;
|
|
312
289
|
containerId: string;
|
|
313
290
|
containerKeyEpoch: number;
|
|
314
291
|
containerKeyEpochId: string;
|
|
315
|
-
containerManifestHistory: {
|
|
316
|
-
event: {
|
|
317
|
-
body: unknown;
|
|
318
|
-
event: Record<string, unknown>;
|
|
319
|
-
eventHash: string;
|
|
320
|
-
};
|
|
321
|
-
manifest: Record<string, unknown>;
|
|
322
|
-
manifestHash: string;
|
|
323
|
-
state: Record<string, unknown>;
|
|
324
|
-
}[];
|
|
325
292
|
keyEpoch: Record<string, unknown>;
|
|
326
293
|
keyEpochHash: string;
|
|
327
294
|
keyring: {
|
|
@@ -338,7 +305,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
338
305
|
wraps: Record<string, unknown>[];
|
|
339
306
|
}[];
|
|
340
307
|
organizationId: string;
|
|
341
|
-
path:
|
|
308
|
+
path: string[];
|
|
309
|
+
bundles: Record<string, {
|
|
342
310
|
event: {
|
|
343
311
|
body: unknown;
|
|
344
312
|
event: Record<string, unknown>;
|
|
@@ -347,12 +315,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
347
315
|
manifest: Record<string, unknown>;
|
|
348
316
|
manifestHash: string;
|
|
349
317
|
state: Record<string, unknown>;
|
|
350
|
-
}
|
|
351
|
-
|
|
352
|
-
key: string;
|
|
353
|
-
count: number;
|
|
354
|
-
digest: string;
|
|
355
|
-
}[] | undefined;
|
|
318
|
+
}>;
|
|
319
|
+
omittedBundles: string[];
|
|
356
320
|
}, {
|
|
357
321
|
policyEvidence: {
|
|
358
322
|
organization: {
|
|
@@ -399,20 +363,11 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
399
363
|
};
|
|
400
364
|
containerId: string;
|
|
401
365
|
containerKeks: {
|
|
366
|
+
containerManifestHistory: string[];
|
|
402
367
|
accessManifestHash: string;
|
|
403
368
|
containerId: string;
|
|
404
369
|
containerKeyEpoch: number;
|
|
405
370
|
containerKeyEpochId: string;
|
|
406
|
-
containerManifestHistory: {
|
|
407
|
-
event: {
|
|
408
|
-
body: unknown;
|
|
409
|
-
event: Record<string, unknown>;
|
|
410
|
-
eventHash: string;
|
|
411
|
-
};
|
|
412
|
-
manifest: Record<string, unknown>;
|
|
413
|
-
manifestHash: string;
|
|
414
|
-
state: Record<string, unknown>;
|
|
415
|
-
}[];
|
|
416
371
|
keyEpoch: Record<string, unknown>;
|
|
417
372
|
keyEpochHash: string;
|
|
418
373
|
keyring: {
|
|
@@ -429,7 +384,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
429
384
|
wraps: Record<string, unknown>[];
|
|
430
385
|
}[];
|
|
431
386
|
organizationId: string;
|
|
432
|
-
path:
|
|
387
|
+
path: string[];
|
|
388
|
+
bundles: Record<string, {
|
|
433
389
|
event: {
|
|
434
390
|
body: unknown;
|
|
435
391
|
event: Record<string, unknown>;
|
|
@@ -438,12 +394,8 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
438
394
|
manifest: Record<string, unknown>;
|
|
439
395
|
manifestHash: string;
|
|
440
396
|
state: Record<string, unknown>;
|
|
441
|
-
}
|
|
442
|
-
|
|
443
|
-
key: string;
|
|
444
|
-
count: number;
|
|
445
|
-
digest: string;
|
|
446
|
-
}[] | undefined;
|
|
397
|
+
}>;
|
|
398
|
+
omittedBundles: string[];
|
|
447
399
|
}>>;
|
|
448
400
|
readonly 202: z.ZodObject<{
|
|
449
401
|
code: z.ZodLiteral<"principal_history_preparation_pending">;
|
|
@@ -458,8 +410,11 @@ export declare const getContainerWriterProjectionOperation: Omit<{
|
|
|
458
410
|
readonly description: "a container response keyring is null exactly for container key epoch 1";
|
|
459
411
|
readonly id: "response.organization-provisioning-container-keyring";
|
|
460
412
|
}, {
|
|
461
|
-
readonly
|
|
462
|
-
readonly
|
|
413
|
+
readonly description: "every cited manifest hash names one bundles entry, every bundles key equals its bundle's manifestHash, and every bundle is cited";
|
|
414
|
+
readonly id: "response.writer-projection-manifest-bundles";
|
|
415
|
+
}, {
|
|
416
|
+
readonly id: "request.known-manifest-hints";
|
|
417
|
+
readonly description: "x-known-manifests must list at most 48 unique lowercase SHA-256 manifest hashes";
|
|
463
418
|
}];
|
|
464
419
|
}, "failureResponses" | "failureStatuses"> & {
|
|
465
420
|
readonly failureResponses: {
|
|
@@ -581,7 +536,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
581
536
|
readonly id: "documents.writerProjection.get";
|
|
582
537
|
readonly method: "GET";
|
|
583
538
|
readonly headers: z.ZodObject<{
|
|
584
|
-
"x-
|
|
539
|
+
"x-known-manifests": z.ZodOptional<z.ZodString>;
|
|
585
540
|
}, z.core.$strip>;
|
|
586
541
|
readonly params: z.ZodObject<{
|
|
587
542
|
documentId: z.ZodString;
|
|
@@ -589,6 +544,17 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
589
544
|
readonly path: "/documents/{documentId}/writer-projection";
|
|
590
545
|
readonly responses: {
|
|
591
546
|
readonly 200: z.ZodType<{
|
|
547
|
+
bundles: Record<string, {
|
|
548
|
+
event: {
|
|
549
|
+
body: unknown;
|
|
550
|
+
event: Record<string, unknown>;
|
|
551
|
+
eventHash: string;
|
|
552
|
+
};
|
|
553
|
+
manifest: Record<string, unknown>;
|
|
554
|
+
manifestHash: string;
|
|
555
|
+
state: Record<string, unknown>;
|
|
556
|
+
}>;
|
|
557
|
+
omittedBundles: string[];
|
|
592
558
|
policyEvidence: {
|
|
593
559
|
organization: {
|
|
594
560
|
head: {
|
|
@@ -635,20 +601,11 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
635
601
|
authorizingContainerPaths: {
|
|
636
602
|
containerId: string;
|
|
637
603
|
containerKeks: {
|
|
604
|
+
containerManifestHistory: string[];
|
|
638
605
|
accessManifestHash: string;
|
|
639
606
|
containerId: string;
|
|
640
607
|
containerKeyEpoch: number;
|
|
641
608
|
containerKeyEpochId: string;
|
|
642
|
-
containerManifestHistory: {
|
|
643
|
-
event: {
|
|
644
|
-
body: unknown;
|
|
645
|
-
event: Record<string, unknown>;
|
|
646
|
-
eventHash: string;
|
|
647
|
-
};
|
|
648
|
-
manifest: Record<string, unknown>;
|
|
649
|
-
manifestHash: string;
|
|
650
|
-
state: Record<string, unknown>;
|
|
651
|
-
}[];
|
|
652
609
|
keyEpoch: Record<string, unknown>;
|
|
653
610
|
keyEpochHash: string;
|
|
654
611
|
keyring: {
|
|
@@ -665,16 +622,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
665
622
|
wraps: Record<string, unknown>[];
|
|
666
623
|
}[];
|
|
667
624
|
organizationId: string;
|
|
668
|
-
path:
|
|
669
|
-
event: {
|
|
670
|
-
body: unknown;
|
|
671
|
-
event: Record<string, unknown>;
|
|
672
|
-
eventHash: string;
|
|
673
|
-
};
|
|
674
|
-
manifest: Record<string, unknown>;
|
|
675
|
-
manifestHash: string;
|
|
676
|
-
state: Record<string, unknown>;
|
|
677
|
-
}[];
|
|
625
|
+
path: string[];
|
|
678
626
|
}[];
|
|
679
627
|
contentKeyBundle: {
|
|
680
628
|
contentKeyEpoch: number;
|
|
@@ -690,16 +638,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
690
638
|
wrappingMetadata: Record<string, unknown>;
|
|
691
639
|
}[];
|
|
692
640
|
};
|
|
693
|
-
documentContainerManifestHistory:
|
|
694
|
-
event: {
|
|
695
|
-
body: unknown;
|
|
696
|
-
event: Record<string, unknown>;
|
|
697
|
-
eventHash: string;
|
|
698
|
-
};
|
|
699
|
-
manifest: Record<string, unknown>;
|
|
700
|
-
manifestHash: string;
|
|
701
|
-
state: Record<string, unknown>;
|
|
702
|
-
}[];
|
|
641
|
+
documentContainerManifestHistory: string[];
|
|
703
642
|
documentId: string;
|
|
704
643
|
documentKekTargets: {
|
|
705
644
|
documentId: string;
|
|
@@ -709,27 +648,12 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
709
648
|
linkSetManifestHash: string;
|
|
710
649
|
targets: Record<string, unknown>[];
|
|
711
650
|
};
|
|
712
|
-
documentManifest:
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
manifest: Record<string, unknown>;
|
|
719
|
-
manifestHash: string;
|
|
720
|
-
state: Record<string, unknown>;
|
|
721
|
-
};
|
|
722
|
-
documentManifestContainerPaths: {
|
|
723
|
-
event: {
|
|
724
|
-
body: unknown;
|
|
725
|
-
event: Record<string, unknown>;
|
|
726
|
-
eventHash: string;
|
|
727
|
-
};
|
|
728
|
-
manifest: Record<string, unknown>;
|
|
729
|
-
manifestHash: string;
|
|
730
|
-
state: Record<string, unknown>;
|
|
731
|
-
}[][];
|
|
732
|
-
documentManifestHistory: {
|
|
651
|
+
documentManifest: string;
|
|
652
|
+
documentManifestContainerPaths: string[][];
|
|
653
|
+
documentManifestHistory: string[];
|
|
654
|
+
contentKeyBundleStale?: true | undefined;
|
|
655
|
+
}, {
|
|
656
|
+
bundles: Record<string, {
|
|
733
657
|
event: {
|
|
734
658
|
body: unknown;
|
|
735
659
|
event: Record<string, unknown>;
|
|
@@ -738,14 +662,8 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
738
662
|
manifest: Record<string, unknown>;
|
|
739
663
|
manifestHash: string;
|
|
740
664
|
state: Record<string, unknown>;
|
|
741
|
-
}
|
|
742
|
-
|
|
743
|
-
key: string;
|
|
744
|
-
count: number;
|
|
745
|
-
digest: string;
|
|
746
|
-
}[] | undefined;
|
|
747
|
-
contentKeyBundleStale?: true | undefined;
|
|
748
|
-
}, {
|
|
665
|
+
}>;
|
|
666
|
+
omittedBundles: string[];
|
|
749
667
|
policyEvidence: {
|
|
750
668
|
organization: {
|
|
751
669
|
head: {
|
|
@@ -792,20 +710,11 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
792
710
|
authorizingContainerPaths: {
|
|
793
711
|
containerId: string;
|
|
794
712
|
containerKeks: {
|
|
713
|
+
containerManifestHistory: string[];
|
|
795
714
|
accessManifestHash: string;
|
|
796
715
|
containerId: string;
|
|
797
716
|
containerKeyEpoch: number;
|
|
798
717
|
containerKeyEpochId: string;
|
|
799
|
-
containerManifestHistory: {
|
|
800
|
-
event: {
|
|
801
|
-
body: unknown;
|
|
802
|
-
event: Record<string, unknown>;
|
|
803
|
-
eventHash: string;
|
|
804
|
-
};
|
|
805
|
-
manifest: Record<string, unknown>;
|
|
806
|
-
manifestHash: string;
|
|
807
|
-
state: Record<string, unknown>;
|
|
808
|
-
}[];
|
|
809
718
|
keyEpoch: Record<string, unknown>;
|
|
810
719
|
keyEpochHash: string;
|
|
811
720
|
keyring: {
|
|
@@ -822,16 +731,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
822
731
|
wraps: Record<string, unknown>[];
|
|
823
732
|
}[];
|
|
824
733
|
organizationId: string;
|
|
825
|
-
path:
|
|
826
|
-
event: {
|
|
827
|
-
body: unknown;
|
|
828
|
-
event: Record<string, unknown>;
|
|
829
|
-
eventHash: string;
|
|
830
|
-
};
|
|
831
|
-
manifest: Record<string, unknown>;
|
|
832
|
-
manifestHash: string;
|
|
833
|
-
state: Record<string, unknown>;
|
|
834
|
-
}[];
|
|
734
|
+
path: string[];
|
|
835
735
|
}[];
|
|
836
736
|
contentKeyBundle: {
|
|
837
737
|
contentKeyEpoch: number;
|
|
@@ -847,16 +747,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
847
747
|
wrappingMetadata: Record<string, unknown>;
|
|
848
748
|
}[];
|
|
849
749
|
};
|
|
850
|
-
documentContainerManifestHistory:
|
|
851
|
-
event: {
|
|
852
|
-
body: unknown;
|
|
853
|
-
event: Record<string, unknown>;
|
|
854
|
-
eventHash: string;
|
|
855
|
-
};
|
|
856
|
-
manifest: Record<string, unknown>;
|
|
857
|
-
manifestHash: string;
|
|
858
|
-
state: Record<string, unknown>;
|
|
859
|
-
}[];
|
|
750
|
+
documentContainerManifestHistory: string[];
|
|
860
751
|
documentId: string;
|
|
861
752
|
documentKekTargets: {
|
|
862
753
|
documentId: string;
|
|
@@ -866,27 +757,12 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
866
757
|
linkSetManifestHash: string;
|
|
867
758
|
targets: Record<string, unknown>[];
|
|
868
759
|
};
|
|
869
|
-
documentManifest:
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
manifest: Record<string, unknown>;
|
|
876
|
-
manifestHash: string;
|
|
877
|
-
state: Record<string, unknown>;
|
|
878
|
-
};
|
|
879
|
-
documentManifestContainerPaths: {
|
|
880
|
-
event: {
|
|
881
|
-
body: unknown;
|
|
882
|
-
event: Record<string, unknown>;
|
|
883
|
-
eventHash: string;
|
|
884
|
-
};
|
|
885
|
-
manifest: Record<string, unknown>;
|
|
886
|
-
manifestHash: string;
|
|
887
|
-
state: Record<string, unknown>;
|
|
888
|
-
}[][];
|
|
889
|
-
documentManifestHistory: {
|
|
760
|
+
documentManifest: string;
|
|
761
|
+
documentManifestContainerPaths: string[][];
|
|
762
|
+
documentManifestHistory: string[];
|
|
763
|
+
contentKeyBundleStale?: true | undefined;
|
|
764
|
+
}, z.core.$ZodTypeInternals<{
|
|
765
|
+
bundles: Record<string, {
|
|
890
766
|
event: {
|
|
891
767
|
body: unknown;
|
|
892
768
|
event: Record<string, unknown>;
|
|
@@ -895,14 +771,8 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
895
771
|
manifest: Record<string, unknown>;
|
|
896
772
|
manifestHash: string;
|
|
897
773
|
state: Record<string, unknown>;
|
|
898
|
-
}
|
|
899
|
-
|
|
900
|
-
key: string;
|
|
901
|
-
count: number;
|
|
902
|
-
digest: string;
|
|
903
|
-
}[] | undefined;
|
|
904
|
-
contentKeyBundleStale?: true | undefined;
|
|
905
|
-
}, z.core.$ZodTypeInternals<{
|
|
774
|
+
}>;
|
|
775
|
+
omittedBundles: string[];
|
|
906
776
|
policyEvidence: {
|
|
907
777
|
organization: {
|
|
908
778
|
head: {
|
|
@@ -949,20 +819,11 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
949
819
|
authorizingContainerPaths: {
|
|
950
820
|
containerId: string;
|
|
951
821
|
containerKeks: {
|
|
822
|
+
containerManifestHistory: string[];
|
|
952
823
|
accessManifestHash: string;
|
|
953
824
|
containerId: string;
|
|
954
825
|
containerKeyEpoch: number;
|
|
955
826
|
containerKeyEpochId: string;
|
|
956
|
-
containerManifestHistory: {
|
|
957
|
-
event: {
|
|
958
|
-
body: unknown;
|
|
959
|
-
event: Record<string, unknown>;
|
|
960
|
-
eventHash: string;
|
|
961
|
-
};
|
|
962
|
-
manifest: Record<string, unknown>;
|
|
963
|
-
manifestHash: string;
|
|
964
|
-
state: Record<string, unknown>;
|
|
965
|
-
}[];
|
|
966
827
|
keyEpoch: Record<string, unknown>;
|
|
967
828
|
keyEpochHash: string;
|
|
968
829
|
keyring: {
|
|
@@ -979,16 +840,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
979
840
|
wraps: Record<string, unknown>[];
|
|
980
841
|
}[];
|
|
981
842
|
organizationId: string;
|
|
982
|
-
path:
|
|
983
|
-
event: {
|
|
984
|
-
body: unknown;
|
|
985
|
-
event: Record<string, unknown>;
|
|
986
|
-
eventHash: string;
|
|
987
|
-
};
|
|
988
|
-
manifest: Record<string, unknown>;
|
|
989
|
-
manifestHash: string;
|
|
990
|
-
state: Record<string, unknown>;
|
|
991
|
-
}[];
|
|
843
|
+
path: string[];
|
|
992
844
|
}[];
|
|
993
845
|
contentKeyBundle: {
|
|
994
846
|
contentKeyEpoch: number;
|
|
@@ -1004,16 +856,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1004
856
|
wrappingMetadata: Record<string, unknown>;
|
|
1005
857
|
}[];
|
|
1006
858
|
};
|
|
1007
|
-
documentContainerManifestHistory:
|
|
1008
|
-
event: {
|
|
1009
|
-
body: unknown;
|
|
1010
|
-
event: Record<string, unknown>;
|
|
1011
|
-
eventHash: string;
|
|
1012
|
-
};
|
|
1013
|
-
manifest: Record<string, unknown>;
|
|
1014
|
-
manifestHash: string;
|
|
1015
|
-
state: Record<string, unknown>;
|
|
1016
|
-
}[];
|
|
859
|
+
documentContainerManifestHistory: string[];
|
|
1017
860
|
documentId: string;
|
|
1018
861
|
documentKekTargets: {
|
|
1019
862
|
documentId: string;
|
|
@@ -1023,27 +866,12 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1023
866
|
linkSetManifestHash: string;
|
|
1024
867
|
targets: Record<string, unknown>[];
|
|
1025
868
|
};
|
|
1026
|
-
documentManifest:
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
manifest: Record<string, unknown>;
|
|
1033
|
-
manifestHash: string;
|
|
1034
|
-
state: Record<string, unknown>;
|
|
1035
|
-
};
|
|
1036
|
-
documentManifestContainerPaths: {
|
|
1037
|
-
event: {
|
|
1038
|
-
body: unknown;
|
|
1039
|
-
event: Record<string, unknown>;
|
|
1040
|
-
eventHash: string;
|
|
1041
|
-
};
|
|
1042
|
-
manifest: Record<string, unknown>;
|
|
1043
|
-
manifestHash: string;
|
|
1044
|
-
state: Record<string, unknown>;
|
|
1045
|
-
}[][];
|
|
1046
|
-
documentManifestHistory: {
|
|
869
|
+
documentManifest: string;
|
|
870
|
+
documentManifestContainerPaths: string[][];
|
|
871
|
+
documentManifestHistory: string[];
|
|
872
|
+
contentKeyBundleStale?: true | undefined;
|
|
873
|
+
}, {
|
|
874
|
+
bundles: Record<string, {
|
|
1047
875
|
event: {
|
|
1048
876
|
body: unknown;
|
|
1049
877
|
event: Record<string, unknown>;
|
|
@@ -1052,14 +880,8 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1052
880
|
manifest: Record<string, unknown>;
|
|
1053
881
|
manifestHash: string;
|
|
1054
882
|
state: Record<string, unknown>;
|
|
1055
|
-
}
|
|
1056
|
-
|
|
1057
|
-
key: string;
|
|
1058
|
-
count: number;
|
|
1059
|
-
digest: string;
|
|
1060
|
-
}[] | undefined;
|
|
1061
|
-
contentKeyBundleStale?: true | undefined;
|
|
1062
|
-
}, {
|
|
883
|
+
}>;
|
|
884
|
+
omittedBundles: string[];
|
|
1063
885
|
policyEvidence: {
|
|
1064
886
|
organization: {
|
|
1065
887
|
head: {
|
|
@@ -1106,20 +928,11 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1106
928
|
authorizingContainerPaths: {
|
|
1107
929
|
containerId: string;
|
|
1108
930
|
containerKeks: {
|
|
931
|
+
containerManifestHistory: string[];
|
|
1109
932
|
accessManifestHash: string;
|
|
1110
933
|
containerId: string;
|
|
1111
934
|
containerKeyEpoch: number;
|
|
1112
935
|
containerKeyEpochId: string;
|
|
1113
|
-
containerManifestHistory: {
|
|
1114
|
-
event: {
|
|
1115
|
-
body: unknown;
|
|
1116
|
-
event: Record<string, unknown>;
|
|
1117
|
-
eventHash: string;
|
|
1118
|
-
};
|
|
1119
|
-
manifest: Record<string, unknown>;
|
|
1120
|
-
manifestHash: string;
|
|
1121
|
-
state: Record<string, unknown>;
|
|
1122
|
-
}[];
|
|
1123
936
|
keyEpoch: Record<string, unknown>;
|
|
1124
937
|
keyEpochHash: string;
|
|
1125
938
|
keyring: {
|
|
@@ -1136,16 +949,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1136
949
|
wraps: Record<string, unknown>[];
|
|
1137
950
|
}[];
|
|
1138
951
|
organizationId: string;
|
|
1139
|
-
path:
|
|
1140
|
-
event: {
|
|
1141
|
-
body: unknown;
|
|
1142
|
-
event: Record<string, unknown>;
|
|
1143
|
-
eventHash: string;
|
|
1144
|
-
};
|
|
1145
|
-
manifest: Record<string, unknown>;
|
|
1146
|
-
manifestHash: string;
|
|
1147
|
-
state: Record<string, unknown>;
|
|
1148
|
-
}[];
|
|
952
|
+
path: string[];
|
|
1149
953
|
}[];
|
|
1150
954
|
contentKeyBundle: {
|
|
1151
955
|
contentKeyEpoch: number;
|
|
@@ -1161,16 +965,7 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1161
965
|
wrappingMetadata: Record<string, unknown>;
|
|
1162
966
|
}[];
|
|
1163
967
|
};
|
|
1164
|
-
documentContainerManifestHistory:
|
|
1165
|
-
event: {
|
|
1166
|
-
body: unknown;
|
|
1167
|
-
event: Record<string, unknown>;
|
|
1168
|
-
eventHash: string;
|
|
1169
|
-
};
|
|
1170
|
-
manifest: Record<string, unknown>;
|
|
1171
|
-
manifestHash: string;
|
|
1172
|
-
state: Record<string, unknown>;
|
|
1173
|
-
}[];
|
|
968
|
+
documentContainerManifestHistory: string[];
|
|
1174
969
|
documentId: string;
|
|
1175
970
|
documentKekTargets: {
|
|
1176
971
|
documentId: string;
|
|
@@ -1180,41 +975,9 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1180
975
|
linkSetManifestHash: string;
|
|
1181
976
|
targets: Record<string, unknown>[];
|
|
1182
977
|
};
|
|
1183
|
-
documentManifest:
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
event: Record<string, unknown>;
|
|
1187
|
-
eventHash: string;
|
|
1188
|
-
};
|
|
1189
|
-
manifest: Record<string, unknown>;
|
|
1190
|
-
manifestHash: string;
|
|
1191
|
-
state: Record<string, unknown>;
|
|
1192
|
-
};
|
|
1193
|
-
documentManifestContainerPaths: {
|
|
1194
|
-
event: {
|
|
1195
|
-
body: unknown;
|
|
1196
|
-
event: Record<string, unknown>;
|
|
1197
|
-
eventHash: string;
|
|
1198
|
-
};
|
|
1199
|
-
manifest: Record<string, unknown>;
|
|
1200
|
-
manifestHash: string;
|
|
1201
|
-
state: Record<string, unknown>;
|
|
1202
|
-
}[][];
|
|
1203
|
-
documentManifestHistory: {
|
|
1204
|
-
event: {
|
|
1205
|
-
body: unknown;
|
|
1206
|
-
event: Record<string, unknown>;
|
|
1207
|
-
eventHash: string;
|
|
1208
|
-
};
|
|
1209
|
-
manifest: Record<string, unknown>;
|
|
1210
|
-
manifestHash: string;
|
|
1211
|
-
state: Record<string, unknown>;
|
|
1212
|
-
}[];
|
|
1213
|
-
historyPrefixes?: {
|
|
1214
|
-
key: string;
|
|
1215
|
-
count: number;
|
|
1216
|
-
digest: string;
|
|
1217
|
-
}[] | undefined;
|
|
978
|
+
documentManifest: string;
|
|
979
|
+
documentManifestContainerPaths: string[][];
|
|
980
|
+
documentManifestHistory: string[];
|
|
1218
981
|
contentKeyBundleStale?: true | undefined;
|
|
1219
982
|
}>>;
|
|
1220
983
|
readonly 202: z.ZodObject<{
|
|
@@ -1230,8 +993,11 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1230
993
|
readonly description: "a container response keyring is null exactly for container key epoch 1";
|
|
1231
994
|
readonly id: "response.organization-provisioning-container-keyring";
|
|
1232
995
|
}, {
|
|
1233
|
-
readonly
|
|
1234
|
-
readonly
|
|
996
|
+
readonly description: "every cited manifest hash names one bundles entry, every bundles key equals its bundle's manifestHash, and every bundle is cited";
|
|
997
|
+
readonly id: "response.writer-projection-manifest-bundles";
|
|
998
|
+
}, {
|
|
999
|
+
readonly id: "request.known-manifest-hints";
|
|
1000
|
+
readonly description: "x-known-manifests must list at most 48 unique lowercase SHA-256 manifest hashes";
|
|
1235
1001
|
}];
|
|
1236
1002
|
}, "failureResponses" | "failureStatuses"> & {
|
|
1237
1003
|
readonly failureResponses: {
|
|
@@ -1288,5 +1054,5 @@ export declare const getDocumentWriterProjectionOperation: Omit<{
|
|
|
1288
1054
|
};
|
|
1289
1055
|
readonly failureStatuses: readonly [400, 401, 403, 404, 409, 500] | readonly [400, 401, 403, 404, 409, 500, 503];
|
|
1290
1056
|
};
|
|
1291
|
-
export declare const isGetContainerWriterProjectionOperationResponse: typeof
|
|
1292
|
-
export declare const isGetDocumentWriterProjectionOperationResponse: typeof
|
|
1057
|
+
export declare const isGetContainerWriterProjectionOperationResponse: typeof isContainerWriterProjectionWireResponse;
|
|
1058
|
+
export declare const isGetDocumentWriterProjectionOperationResponse: typeof isDocumentWriterProjectionWireResponse;
|