@tearleads/client-sdk 0.1.41 → 0.1.43
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/blobs/transferPool.js +35 -8
- package/data/blobs/transferPool.js.map +1 -1
- package/data/containers/shared/projection.js +12 -0
- package/data/containers/shared/projection.js.map +1 -1
- package/data/documents/blob/shared/types.d.ts +2 -3
- package/data/documents/blob/shared/types.js.map +1 -1
- package/data/documents/shared/events.js +0 -1
- package/data/documents/shared/events.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/container-contents/containerContentsPersistence.js +6 -22
- package/data/persistence/container-contents/containerContentsPersistence.js.map +1 -1
- package/data/persistence/container-contents/containerMetadataMutationPersistence.js +5 -15
- package/data/persistence/container-contents/containerMetadataMutationPersistence.js.map +1 -1
- package/data/persistence/container-contents/containerPendingUpdatePersistence.js +6 -15
- package/data/persistence/container-contents/containerPendingUpdatePersistence.js.map +1 -1
- package/data/persistence/container-contents/containerRecoveryPersistence.js +3 -4
- package/data/persistence/container-contents/containerRecoveryPersistence.js.map +1 -1
- package/data/persistence/container-contents/containerRemovalWork.js +3 -5
- package/data/persistence/container-contents/containerRemovalWork.js.map +1 -1
- package/data/persistence/container-contents/dormantContainerMetadata.js +1 -5
- package/data/persistence/container-contents/dormantContainerMetadata.js.map +1 -1
- package/data/persistence/documents/documentsPersistence.js +4 -9
- package/data/persistence/documents/documentsPersistence.js.map +1 -1
- package/data/persistence/documents/internal/discardDocument.js +1 -2
- package/data/persistence/documents/internal/discardDocument.js.map +1 -1
- package/data/persistence/documents/internal/documentDeletionPersistence.js +1 -2
- package/data/persistence/documents/internal/documentDeletionPersistence.js.map +1 -1
- package/data/persistence/documents/internal/documentMutationPersistence.js +17 -25
- package/data/persistence/documents/internal/documentMutationPersistence.js.map +1 -1
- package/data/persistence/documents/internal/orphanSideRows.js +2 -14
- package/data/persistence/documents/internal/orphanSideRows.js.map +1 -1
- package/data/persistence/documents/internal/syncQueuePersistence.js +3 -3
- package/data/persistence/documents/internal/syncQueuePersistence.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/documentHistoryPersistence.d.ts +9 -3
- package/data/sqlite/documentHistoryPersistence.js +31 -8
- package/data/sqlite/documentHistoryPersistence.js.map +1 -1
- package/data/sqlite/documentPendingUpdatePersistence.d.ts +58 -11
- package/data/sqlite/documentPendingUpdatePersistence.js +137 -63
- package/data/sqlite/documentPendingUpdatePersistence.js.map +1 -1
- package/data/sqlite/documentPersistence.d.ts +1 -1
- package/data/sqlite/documentPersistence.js +1 -1
- package/data/sqlite/documentPersistence.js.map +1 -1
- package/data/sqlite/documentPersistenceTypes.d.ts +2 -2
- package/data/sqlite/documentPersistenceTypes.js.map +1 -1
- package/data/sqlite/documentRecordPersistence.js +5 -4
- package/data/sqlite/documentRecordPersistence.js.map +1 -1
- package/data/sqlite/schema.d.ts +350 -443
- package/data/sqlite/schema.js +49 -47
- 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 +17 -19
- package/internal/api-client/ApiClient.js +10 -11
- package/internal/api-client/ApiClient.js.map +1 -1
- package/internal/api-client/binaryRequestOperationTransport.d.ts +18 -0
- package/internal/api-client/index.d.ts +2 -1
- package/internal/api-client/index.js +1 -1
- package/internal/api-client/index.js.map +1 -1
- package/internal/api-client/operationTransportFactory.d.ts +6 -0
- 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/blobs/get.d.ts +7 -0
- package/internal/api-client/routes/blobs/get.js.map +1 -1
- package/internal/api-client/routes/blobs/multipart.js +1 -11
- package/internal/api-client/routes/blobs/multipart.js.map +1 -1
- package/internal/api-client/routes/blobs/multipartUpload.d.ts +14 -0
- package/internal/api-client/routes/blobs/multipartUpload.js +94 -43
- package/internal/api-client/routes/blobs/multipartUpload.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/knownManifestsRefinements.js +5 -0
- package/internal/validators/knownManifestsRefinements.js.map +1 -0
- package/internal/validators/operation/attachments.d.ts +80 -160
- package/internal/validators/operation/auth.d.ts +760 -1664
- package/internal/validators/operation/blobDownloads.js +1 -1
- package/internal/validators/operation/blobDownloads.js.map +1 -1
- package/internal/validators/operation/containerMutations.d.ts +416 -856
- package/internal/validators/operation/documentMutations.d.ts +120 -264
- package/internal/validators/operation/documentSync.d.ts +40 -80
- package/internal/validators/operation/index.d.ts +1 -1
- package/internal/validators/operation/index.js +1 -1
- package/internal/validators/operation/index.js.map +1 -1
- package/internal/validators/operation/multipartBlobs.d.ts +70 -190
- package/internal/validators/operation/multipartBlobs.js +2 -24
- package/internal/validators/operation/multipartBlobs.js.map +1 -1
- package/internal/validators/operation/multipartPartUploads.d.ts +5 -5
- package/internal/validators/operation/multipartPartUploads.js +6 -20
- package/internal/validators/operation/multipartPartUploads.js.map +1 -1
- package/internal/validators/operation/organizations.d.ts +882 -1906
- package/internal/validators/operation/principals.d.ts +120 -240
- package/internal/validators/operation/registry.d.ts +1 -2
- package/internal/validators/operation/registry.js +1 -2
- package/internal/validators/operation/registry.js.map +1 -1
- 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/request/blob.d.ts +100 -201
- package/internal/validators/request/blob.js +6 -13
- package/internal/validators/request/blob.js.map +1 -1
- package/internal/validators/request/container.d.ts +136 -272
- package/internal/validators/request/container.js +16 -10
- package/internal/validators/request/container.js.map +1 -1
- package/internal/validators/request/containerManifestRef.d.ts +54 -0
- package/internal/validators/request/containerManifestRef.js +28 -0
- package/internal/validators/request/containerManifestRef.js.map +1 -0
- package/internal/validators/request/containerMetadata.d.ts +160 -368
- package/internal/validators/request/document.d.ts +100 -245
- package/internal/validators/request/document.js +1 -2
- package/internal/validators/request/document.js.map +1 -1
- package/internal/validators/request/documentSyncSchema.d.ts +42 -109
- package/internal/validators/request/documentSyncSchema.js +8 -25
- package/internal/validators/request/documentSyncSchema.js.map +1 -1
- package/internal/validators/request/index.d.ts +1 -1
- package/internal/validators/request/index.js +1 -1
- package/internal/validators/request/index.js.map +1 -1
- package/internal/validators/request/organization.d.ts +160 -320
- package/internal/validators/request/organizationProvisioning.d.ts +2424 -5312
- package/internal/validators/request/principal.d.ts +160 -320
- package/internal/validators/request/registration.d.ts +760 -1664
- package/internal/validators/response/blob.d.ts +48 -27
- package/internal/validators/response/blob.js +3 -10
- package/internal/validators/response/blob.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/index.d.ts +4 -3
- package/internal/validators/response/index.js +4 -3
- 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/blob.d.ts +7 -0
- package/internal/validators/util/blob.js +7 -0
- package/internal/validators/util/blob.js.map +1 -1
- package/internal/validators/util/blobTransferSchemas.d.ts +41 -0
- package/internal/validators/util/blobTransferSchemas.js +39 -0
- package/internal/validators/util/blobTransferSchemas.js.map +1 -0
- package/internal/validators/util/containerLimits.d.ts +7 -0
- package/internal/validators/util/containerLimits.js +7 -0
- package/internal/validators/util/containerLimits.js.map +1 -1
- package/internal/validators/util/index.d.ts +3 -2
- package/internal/validators/util/index.js +3 -2
- 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/blobs/multipartFirstParts.js +82 -0
- package/workflows/blobs/multipartFirstParts.js.map +1 -0
- package/workflows/blobs/multipartStageResolution.js +83 -0
- package/workflows/blobs/multipartStageResolution.js.map +1 -0
- package/workflows/blobs/multipartUpload.js +45 -89
- package/workflows/blobs/multipartUpload.js.map +1 -1
- package/workflows/container-contents/documentPriming.js +2 -1
- package/workflows/container-contents/documentPriming.js.map +1 -1
- package/workflows/container-contents/documentQueries/sql.js +4 -4
- package/workflows/container-contents/documentQueries/sql.js.map +1 -1
- package/workflows/container-contents/pendingWrites/deferredTails.js +6 -3
- package/workflows/container-contents/pendingWrites/deferredTails.js.map +1 -1
- package/workflows/container-contents/pendingWrites/sources.js +2 -1
- package/workflows/container-contents/pendingWrites/sources.js.map +1 -1
- package/workflows/container-contents/pendingWrites.js +2 -1
- package/workflows/container-contents/pendingWrites.js.map +1 -1
- package/workflows/containers/child/create.js +3 -3
- package/workflows/containers/child/create.js.map +1 -1
- package/workflows/containers/child/move.js +2 -2
- package/workflows/containers/child/move.js.map +1 -1
- package/workflows/containers/child/mutationRequestCore.js +5 -4
- package/workflows/containers/child/mutationRequestCore.js.map +1 -1
- package/workflows/containers/child/recitePlan.js +3 -2
- package/workflows/containers/child/recitePlan.js.map +1 -1
- package/workflows/containers/child/sharePlanCore.js +2 -2
- package/workflows/containers/child/sharePlanCore.js.map +1 -1
- package/workflows/containers/root/create.js +2 -2
- package/workflows/containers/root/create.js.map +1 -1
- package/workflows/registration/provisioningBootstrapBuilders.d.ts +20 -51
- package/workflows/sync/remoteReset.js +11 -9
- package/workflows/sync/remoteReset.js.map +1 -1
- package/workflows/sync/remoteResetPlans.js +6 -3
- package/workflows/sync/remoteResetPlans.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/operation/blobTransferSchemas.js +0 -11
- package/internal/validators/operation/blobTransferSchemas.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
|
@@ -21,6 +21,18 @@ export declare const InitiateMultipartBlobStageResponseSchema: z.ZodType<{
|
|
|
21
21
|
organizationId: string;
|
|
22
22
|
byteLength: number;
|
|
23
23
|
expiresAt: string;
|
|
24
|
+
partUploads: {
|
|
25
|
+
byteLength: number;
|
|
26
|
+
contentMd5: string;
|
|
27
|
+
partNumber: number;
|
|
28
|
+
source: {
|
|
29
|
+
kind: "api";
|
|
30
|
+
} | {
|
|
31
|
+
kind: "signed-url";
|
|
32
|
+
url: string;
|
|
33
|
+
expiresAt: string;
|
|
34
|
+
};
|
|
35
|
+
}[];
|
|
24
36
|
sha256: string;
|
|
25
37
|
stageId: string;
|
|
26
38
|
uploadedParts: {
|
|
@@ -33,6 +45,18 @@ export declare const InitiateMultipartBlobStageResponseSchema: z.ZodType<{
|
|
|
33
45
|
organizationId: string;
|
|
34
46
|
byteLength: number;
|
|
35
47
|
expiresAt: string;
|
|
48
|
+
partUploads: {
|
|
49
|
+
byteLength: number;
|
|
50
|
+
contentMd5: string;
|
|
51
|
+
partNumber: number;
|
|
52
|
+
source: {
|
|
53
|
+
kind: "api";
|
|
54
|
+
} | {
|
|
55
|
+
kind: "signed-url";
|
|
56
|
+
url: string;
|
|
57
|
+
expiresAt: string;
|
|
58
|
+
};
|
|
59
|
+
}[];
|
|
36
60
|
sha256: string;
|
|
37
61
|
stageId: string;
|
|
38
62
|
uploadedParts: {
|
|
@@ -45,6 +69,18 @@ export declare const InitiateMultipartBlobStageResponseSchema: z.ZodType<{
|
|
|
45
69
|
organizationId: string;
|
|
46
70
|
byteLength: number;
|
|
47
71
|
expiresAt: string;
|
|
72
|
+
partUploads: {
|
|
73
|
+
byteLength: number;
|
|
74
|
+
contentMd5: string;
|
|
75
|
+
partNumber: number;
|
|
76
|
+
source: {
|
|
77
|
+
kind: "api";
|
|
78
|
+
} | {
|
|
79
|
+
kind: "signed-url";
|
|
80
|
+
url: string;
|
|
81
|
+
expiresAt: string;
|
|
82
|
+
};
|
|
83
|
+
}[];
|
|
48
84
|
sha256: string;
|
|
49
85
|
stageId: string;
|
|
50
86
|
uploadedParts: {
|
|
@@ -57,6 +93,18 @@ export declare const InitiateMultipartBlobStageResponseSchema: z.ZodType<{
|
|
|
57
93
|
organizationId: string;
|
|
58
94
|
byteLength: number;
|
|
59
95
|
expiresAt: string;
|
|
96
|
+
partUploads: {
|
|
97
|
+
byteLength: number;
|
|
98
|
+
contentMd5: string;
|
|
99
|
+
partNumber: number;
|
|
100
|
+
source: {
|
|
101
|
+
kind: "api";
|
|
102
|
+
} | {
|
|
103
|
+
kind: "signed-url";
|
|
104
|
+
url: string;
|
|
105
|
+
expiresAt: string;
|
|
106
|
+
};
|
|
107
|
+
}[];
|
|
60
108
|
sha256: string;
|
|
61
109
|
stageId: string;
|
|
62
110
|
uploadedParts: {
|
|
@@ -155,32 +203,6 @@ export declare const UploadMultipartBlobPartResponseSchema: z.ZodType<{
|
|
|
155
203
|
uploadId: string;
|
|
156
204
|
}>>;
|
|
157
205
|
export type UploadMultipartBlobPartResponse = z.infer<typeof UploadMultipartBlobPartResponseSchema>;
|
|
158
|
-
export declare const CompleteMultipartBlobStageResponseSchema: z.ZodType<{
|
|
159
|
-
organizationId: string;
|
|
160
|
-
byteLength: number;
|
|
161
|
-
expiresAt: string;
|
|
162
|
-
sha256: string;
|
|
163
|
-
stageId: string;
|
|
164
|
-
}, {
|
|
165
|
-
organizationId: string;
|
|
166
|
-
byteLength: number;
|
|
167
|
-
expiresAt: string;
|
|
168
|
-
sha256: string;
|
|
169
|
-
stageId: string;
|
|
170
|
-
}, z.core.$ZodTypeInternals<{
|
|
171
|
-
organizationId: string;
|
|
172
|
-
byteLength: number;
|
|
173
|
-
expiresAt: string;
|
|
174
|
-
sha256: string;
|
|
175
|
-
stageId: string;
|
|
176
|
-
}, {
|
|
177
|
-
organizationId: string;
|
|
178
|
-
byteLength: number;
|
|
179
|
-
expiresAt: string;
|
|
180
|
-
sha256: string;
|
|
181
|
-
stageId: string;
|
|
182
|
-
}>>;
|
|
183
|
-
export type CompleteMultipartBlobStageResponse = z.infer<typeof CompleteMultipartBlobStageResponseSchema>;
|
|
184
206
|
export declare const BlobContentKeyTargetEnvelopeResponseSchema: z.ZodType<{
|
|
185
207
|
bindingId: string;
|
|
186
208
|
containerId: string;
|
|
@@ -848,7 +870,6 @@ export type BlobAttachmentDetachResponse = z.infer<typeof BlobAttachmentDetachRe
|
|
|
848
870
|
export declare function isInitiateMultipartBlobStageResponse(value: unknown): value is InitiateMultipartBlobStageResponse;
|
|
849
871
|
export declare function isMultipartBlobStageStatusResponse(value: unknown): value is MultipartBlobStageStatusResponse;
|
|
850
872
|
export declare function isUploadMultipartBlobPartResponse(value: unknown): value is UploadMultipartBlobPartResponse;
|
|
851
|
-
export declare function isCompleteMultipartBlobStageResponse(value: unknown): value is CompleteMultipartBlobStageResponse;
|
|
852
873
|
export declare function isListDocumentAttachmentsResponse(value: unknown): value is ListDocumentAttachmentsResponse;
|
|
853
874
|
export declare function isBlobAttachmentBindResponse(value: unknown): value is BlobAttachmentBindResponse;
|
|
854
875
|
export declare function isBlobAttachmentDetachResponse(value: unknown): value is BlobAttachmentDetachResponse;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
2
|
import { arraySchema, loosePlainObject, nonEmptyStringSchema, plainObjectSchema, positiveIntegerSchema, } from "../schema.js";
|
|
3
3
|
import { AccessEventBundleWireResponseSchema } from "../util/index.js";
|
|
4
|
+
import { MultipartBlobPartUploadSchema } from "../util/blobTransferSchemas.js";
|
|
4
5
|
export const MultipartBlobStagePartSchema = loosePlainObject({
|
|
5
6
|
byteLength: positiveIntegerSchema,
|
|
6
7
|
etag: nonEmptyStringSchema,
|
|
@@ -10,6 +11,8 @@ export const InitiateMultipartBlobStageResponseSchema = loosePlainObject({
|
|
|
10
11
|
organizationId: nonEmptyStringSchema,
|
|
11
12
|
byteLength: positiveIntegerSchema,
|
|
12
13
|
expiresAt: z.string(),
|
|
14
|
+
// One upload source per requested first part, in request order.
|
|
15
|
+
partUploads: arraySchema(MultipartBlobPartUploadSchema),
|
|
13
16
|
sha256: nonEmptyStringSchema,
|
|
14
17
|
stageId: z.string(),
|
|
15
18
|
uploadedParts: arraySchema(MultipartBlobStagePartSchema),
|
|
@@ -30,13 +33,6 @@ export const UploadMultipartBlobPartResponseSchema = loosePlainObject({
|
|
|
30
33
|
stageId: z.string(),
|
|
31
34
|
uploadId: z.string(),
|
|
32
35
|
});
|
|
33
|
-
export const CompleteMultipartBlobStageResponseSchema = loosePlainObject({
|
|
34
|
-
organizationId: nonEmptyStringSchema,
|
|
35
|
-
byteLength: positiveIntegerSchema,
|
|
36
|
-
expiresAt: z.string(),
|
|
37
|
-
sha256: nonEmptyStringSchema,
|
|
38
|
-
stageId: z.string(),
|
|
39
|
-
});
|
|
40
36
|
export const BlobContentKeyTargetEnvelopeResponseSchema = loosePlainObject({
|
|
41
37
|
bindingId: z.string(),
|
|
42
38
|
containerId: z.string(),
|
|
@@ -106,9 +102,6 @@ export function isMultipartBlobStageStatusResponse(value) {
|
|
|
106
102
|
export function isUploadMultipartBlobPartResponse(value) {
|
|
107
103
|
return UploadMultipartBlobPartResponseSchema.safeParse(value).success;
|
|
108
104
|
}
|
|
109
|
-
export function isCompleteMultipartBlobStageResponse(value) {
|
|
110
|
-
return CompleteMultipartBlobStageResponseSchema.safeParse(value).success;
|
|
111
|
-
}
|
|
112
105
|
export function isListDocumentAttachmentsResponse(value) {
|
|
113
106
|
return ListDocumentAttachmentsResponseSchema.safeParse(value).success;
|
|
114
107
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.js","sourceRoot":"","sources":["blob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAE9D,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;IAC3D,UAAU,EAAE,qBAAqB;IACjC,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,qBAAqB;CAClC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,wCAAwC,GAAG,gBAAgB,CAAC;IACvE,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,qBAAqB;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,aAAa,EAAE,WAAW,CAAC,4BAA4B,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,qBAAqB;IACjC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,CAA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CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,KAAc;IAEd,OAAO,kCAAkC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACrE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n plainObjectSchema,\n positiveIntegerSchema,\n} from \"../schema\";\nimport { AccessEventBundleWireResponseSchema } from \"../util\";\n\nexport const MultipartBlobStagePartSchema = loosePlainObject({\n byteLength: positiveIntegerSchema,\n etag: nonEmptyStringSchema,\n partNumber: positiveIntegerSchema,\n});\n\nexport type MultipartBlobStagePart = z.infer<\n typeof MultipartBlobStagePartSchema\n>;\n\nexport const InitiateMultipartBlobStageResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n byteLength: positiveIntegerSchema,\n expiresAt: z.string(),\n sha256: nonEmptyStringSchema,\n stageId: z.string(),\n uploadedParts: arraySchema(MultipartBlobStagePartSchema),\n uploadId: z.string(),\n});\n\nexport type InitiateMultipartBlobStageResponse = z.infer<\n typeof InitiateMultipartBlobStageResponseSchema\n>;\n\nexport const MultipartBlobStageStatusResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n byteLength: positiveIntegerSchema,\n completed: z.boolean(),\n expiresAt: z.string(),\n sha256: nonEmptyStringSchema,\n stageId: z.string(),\n uploadedParts: arraySchema(MultipartBlobStagePartSchema),\n uploadId: z.string(),\n});\n\nexport type MultipartBlobStageStatusResponse = z.infer<\n typeof MultipartBlobStageStatusResponseSchema\n>;\n\nexport const UploadMultipartBlobPartResponseSchema = loosePlainObject({\n part: MultipartBlobStagePartSchema,\n stageId: z.string(),\n uploadId: z.string(),\n});\n\nexport type UploadMultipartBlobPartResponse = z.infer<\n typeof UploadMultipartBlobPartResponseSchema\n>;\n\nexport const CompleteMultipartBlobStageResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n byteLength: positiveIntegerSchema,\n expiresAt: z.string(),\n sha256: nonEmptyStringSchema,\n stageId: z.string(),\n});\n\nexport type CompleteMultipartBlobStageResponse = z.infer<\n typeof CompleteMultipartBlobStageResponseSchema\n>;\n\nexport const BlobContentKeyTargetEnvelopeResponseSchema = loosePlainObject({\n bindingId: z.string(),\n containerId: z.string(),\n containerKeyEpoch: positiveIntegerSchema,\n containerKeyEpochId: z.string(),\n containerManifestHash: z.string(),\n documentId: z.string(),\n wrappedKey: z.string(),\n wrappingMetadata: plainObjectSchema,\n});\n\nexport type BlobContentKeyTargetEnvelopeResponse = z.infer<\n typeof BlobContentKeyTargetEnvelopeResponseSchema\n>;\n\nexport const BlobContentKeyBundleResponseSchema = loosePlainObject({\n blobId: z.string(),\n contentKeyEpoch: positiveIntegerSchema,\n targetHash: z.string(),\n targets: arraySchema(BlobContentKeyTargetEnvelopeResponseSchema),\n});\n\nexport type BlobContentKeyBundleResponse = z.infer<\n typeof BlobContentKeyBundleResponseSchema\n>;\n\nexport const BlobKekTargetsResponseSchema = loosePlainObject({\n activeBindingIds: arraySchema(z.string()),\n blobAccessManifestHash: z.string(),\n blobId: z.string(),\n blobKeyTargetHash: z.string(),\n documentManifestHashes: arraySchema(z.string()),\n linkedContainerKeyEpochIds: arraySchema(z.string()),\n linkedContainerManifestHashes: arraySchema(z.string()),\n organizationId: z.string(),\n targets: arraySchema(plainObjectSchema),\n});\n\nexport type BlobKekTargetsResponse = z.infer<\n typeof BlobKekTargetsResponseSchema\n>;\n\nexport const BlobAttachmentSummarySchema = loosePlainObject({\n bindingEvent: AccessEventBundleWireResponseSchema,\n bindingId: z.string(),\n blobId: z.string(),\n blobKekTargets: BlobKekTargetsResponseSchema,\n contentKeyBundle: BlobContentKeyBundleResponseSchema,\n documentManifestHash: z.string(),\n previousBindingId: z.string().nullable(),\n slotId: z.string(),\n writeAuthorization: BlobKekTargetsResponseSchema,\n writeHeader: plainObjectSchema,\n});\n\nexport type BlobAttachmentSummary = z.infer<typeof BlobAttachmentSummarySchema>;\n\nexport const ListDocumentAttachmentsResponseSchema = arraySchema(\n BlobAttachmentSummarySchema,\n);\n\nexport type ListDocumentAttachmentsResponse = z.infer<\n typeof ListDocumentAttachmentsResponseSchema\n>;\n\nexport const BlobAttachmentBindResponseSchema = loosePlainObject({\n bindingEvent: AccessEventBundleWireResponseSchema,\n bindingId: z.string(),\n blobId: z.string(),\n blobKekTargets: BlobKekTargetsResponseSchema,\n contentKeyBundle: BlobContentKeyBundleResponseSchema,\n documentId: z.string(),\n documentManifestHash: z.string(),\n previousBindingId: z.string().nullable(),\n slotId: z.string(),\n writeAuthorization: BlobKekTargetsResponseSchema,\n writeHeader: plainObjectSchema,\n writeHeaderHash: z.string(),\n});\n\nexport type BlobAttachmentBindResponse = z.infer<\n typeof BlobAttachmentBindResponseSchema\n>;\n\nexport const BlobAttachmentDetachResponseSchema = loosePlainObject({\n bindingId: z.string(),\n blobId: z.string(),\n documentId: z.string(),\n slotId: z.string(),\n});\n\nexport type BlobAttachmentDetachResponse = z.infer<\n typeof BlobAttachmentDetachResponseSchema\n>;\n\nexport function isInitiateMultipartBlobStageResponse(\n value: unknown,\n): value is InitiateMultipartBlobStageResponse {\n return InitiateMultipartBlobStageResponseSchema.safeParse(value).success;\n}\n\nexport function isMultipartBlobStageStatusResponse(\n value: unknown,\n): value is MultipartBlobStageStatusResponse {\n return MultipartBlobStageStatusResponseSchema.safeParse(value).success;\n}\n\nexport function isUploadMultipartBlobPartResponse(\n value: unknown,\n): value is UploadMultipartBlobPartResponse {\n return UploadMultipartBlobPartResponseSchema.safeParse(value).success;\n}\n\nexport function isCompleteMultipartBlobStageResponse(\n value: unknown,\n): value is CompleteMultipartBlobStageResponse {\n return CompleteMultipartBlobStageResponseSchema.safeParse(value).success;\n}\n\nexport function isListDocumentAttachmentsResponse(\n value: unknown,\n): value is ListDocumentAttachmentsResponse {\n return ListDocumentAttachmentsResponseSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentBindResponse(\n value: unknown,\n): value is BlobAttachmentBindResponse {\n return BlobAttachmentBindResponseSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentDetachResponse(\n value: unknown,\n): value is BlobAttachmentDetachResponse {\n return BlobAttachmentDetachResponseSchema.safeParse(value).success;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"blob.js","sourceRoot":"","sources":["blob.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,GACtB,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,mCAAmC,EAAE,MAAM,SAAS,CAAC;AAC9D,OAAO,EAAE,6BAA6B,EAAE,MAAM,6BAA6B,CAAC;AAE5E,MAAM,CAAC,MAAM,4BAA4B,GAAG,gBAAgB,CAAC;IAC3D,UAAU,EAAE,qBAAqB;IACjC,IAAI,EAAE,oBAAoB;IAC1B,UAAU,EAAE,qBAAqB;CAClC,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,wCAAwC,GAAG,gBAAgB,CAAC;IACvE,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,qBAAqB;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,gEAAgE;IAChE,WAAW,EAAE,WAAW,CAAC,6BAA6B,CAAC;IACvD,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,aAAa,EAAE,WAAW,CAAC,4BAA4B,CAAC;IACxD,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;CACrB,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,sCAAsC,GAAG,gBAAgB,CAAC;IACrE,cAAc,EAAE,oBAAoB;IACpC,UAAU,EAAE,qBAAqB;IACjC,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,oBAAoB;IAC5B,OAAO,EA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AC9B,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;CAC5B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,kCAAkC,GAAG,gBAAgB,CAAC;IACjE,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAMH,MAAM,UAAU,oCAAoC,CAClD,KAAc;IAEd,OAAO,wCAAwC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC3E,CAAC;AAED,MAAM,UAAU,kCAAkC,CAChD,KAAc;IAEd,OAAO,sCAAsC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACzE,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,KAAc;IAEd,OAAO,qCAAqC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,iCAAiC,CAC/C,KAAc;IAEd,OAAO,qCAAqC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACxE,CAAC;AAED,MAAM,UAAU,4BAA4B,CAC1C,KAAc;IAEd,OAAO,gCAAgC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACnE,CAAC;AAED,MAAM,UAAU,8BAA8B,CAC5C,KAAc;IAEd,OAAO,kCAAkC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACrE,CAAC","sourcesContent":["import { z } from \"zod\";\nimport {\n arraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n plainObjectSchema,\n positiveIntegerSchema,\n} from \"../schema\";\nimport { AccessEventBundleWireResponseSchema } from \"../util\";\nimport { MultipartBlobPartUploadSchema } from \"../util/blobTransferSchemas\";\n\nexport const MultipartBlobStagePartSchema = loosePlainObject({\n byteLength: positiveIntegerSchema,\n etag: nonEmptyStringSchema,\n partNumber: positiveIntegerSchema,\n});\n\nexport type MultipartBlobStagePart = z.infer<\n typeof MultipartBlobStagePartSchema\n>;\n\nexport const InitiateMultipartBlobStageResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n byteLength: positiveIntegerSchema,\n expiresAt: z.string(),\n // One upload source per requested first part, in request order.\n partUploads: arraySchema(MultipartBlobPartUploadSchema),\n sha256: nonEmptyStringSchema,\n stageId: z.string(),\n uploadedParts: arraySchema(MultipartBlobStagePartSchema),\n uploadId: z.string(),\n});\n\nexport type InitiateMultipartBlobStageResponse = z.infer<\n typeof InitiateMultipartBlobStageResponseSchema\n>;\n\nexport const MultipartBlobStageStatusResponseSchema = loosePlainObject({\n organizationId: nonEmptyStringSchema,\n byteLength: positiveIntegerSchema,\n completed: z.boolean(),\n expiresAt: z.string(),\n sha256: nonEmptyStringSchema,\n stageId: z.string(),\n uploadedParts: arraySchema(MultipartBlobStagePartSchema),\n uploadId: z.string(),\n});\n\nexport type MultipartBlobStageStatusResponse = z.infer<\n typeof MultipartBlobStageStatusResponseSchema\n>;\n\nexport const UploadMultipartBlobPartResponseSchema = loosePlainObject({\n part: MultipartBlobStagePartSchema,\n stageId: z.string(),\n uploadId: z.string(),\n});\n\nexport type UploadMultipartBlobPartResponse = z.infer<\n typeof UploadMultipartBlobPartResponseSchema\n>;\n\nexport const BlobContentKeyTargetEnvelopeResponseSchema = loosePlainObject({\n bindingId: z.string(),\n containerId: z.string(),\n containerKeyEpoch: positiveIntegerSchema,\n containerKeyEpochId: z.string(),\n containerManifestHash: z.string(),\n documentId: z.string(),\n wrappedKey: z.string(),\n wrappingMetadata: plainObjectSchema,\n});\n\nexport type BlobContentKeyTargetEnvelopeResponse = z.infer<\n typeof BlobContentKeyTargetEnvelopeResponseSchema\n>;\n\nexport const BlobContentKeyBundleResponseSchema = loosePlainObject({\n blobId: z.string(),\n contentKeyEpoch: positiveIntegerSchema,\n targetHash: z.string(),\n targets: arraySchema(BlobContentKeyTargetEnvelopeResponseSchema),\n});\n\nexport type BlobContentKeyBundleResponse = z.infer<\n typeof BlobContentKeyBundleResponseSchema\n>;\n\nexport const BlobKekTargetsResponseSchema = loosePlainObject({\n activeBindingIds: arraySchema(z.string()),\n blobAccessManifestHash: z.string(),\n blobId: z.string(),\n blobKeyTargetHash: z.string(),\n documentManifestHashes: arraySchema(z.string()),\n linkedContainerKeyEpochIds: arraySchema(z.string()),\n linkedContainerManifestHashes: arraySchema(z.string()),\n organizationId: z.string(),\n targets: arraySchema(plainObjectSchema),\n});\n\nexport type BlobKekTargetsResponse = z.infer<\n typeof BlobKekTargetsResponseSchema\n>;\n\nexport const BlobAttachmentSummarySchema = loosePlainObject({\n bindingEvent: AccessEventBundleWireResponseSchema,\n bindingId: z.string(),\n blobId: z.string(),\n blobKekTargets: BlobKekTargetsResponseSchema,\n contentKeyBundle: BlobContentKeyBundleResponseSchema,\n documentManifestHash: z.string(),\n previousBindingId: z.string().nullable(),\n slotId: z.string(),\n writeAuthorization: BlobKekTargetsResponseSchema,\n writeHeader: plainObjectSchema,\n});\n\nexport type BlobAttachmentSummary = z.infer<typeof BlobAttachmentSummarySchema>;\n\nexport const ListDocumentAttachmentsResponseSchema = arraySchema(\n BlobAttachmentSummarySchema,\n);\n\nexport type ListDocumentAttachmentsResponse = z.infer<\n typeof ListDocumentAttachmentsResponseSchema\n>;\n\nexport const BlobAttachmentBindResponseSchema = loosePlainObject({\n bindingEvent: AccessEventBundleWireResponseSchema,\n bindingId: z.string(),\n blobId: z.string(),\n blobKekTargets: BlobKekTargetsResponseSchema,\n contentKeyBundle: BlobContentKeyBundleResponseSchema,\n documentId: z.string(),\n documentManifestHash: z.string(),\n previousBindingId: z.string().nullable(),\n slotId: z.string(),\n writeAuthorization: BlobKekTargetsResponseSchema,\n writeHeader: plainObjectSchema,\n writeHeaderHash: z.string(),\n});\n\nexport type BlobAttachmentBindResponse = z.infer<\n typeof BlobAttachmentBindResponseSchema\n>;\n\nexport const BlobAttachmentDetachResponseSchema = loosePlainObject({\n bindingId: z.string(),\n blobId: z.string(),\n documentId: z.string(),\n slotId: z.string(),\n});\n\nexport type BlobAttachmentDetachResponse = z.infer<\n typeof BlobAttachmentDetachResponseSchema\n>;\n\nexport function isInitiateMultipartBlobStageResponse(\n value: unknown,\n): value is InitiateMultipartBlobStageResponse {\n return InitiateMultipartBlobStageResponseSchema.safeParse(value).success;\n}\n\nexport function isMultipartBlobStageStatusResponse(\n value: unknown,\n): value is MultipartBlobStageStatusResponse {\n return MultipartBlobStageStatusResponseSchema.safeParse(value).success;\n}\n\nexport function isUploadMultipartBlobPartResponse(\n value: unknown,\n): value is UploadMultipartBlobPartResponse {\n return UploadMultipartBlobPartResponseSchema.safeParse(value).success;\n}\n\nexport function isListDocumentAttachmentsResponse(\n value: unknown,\n): value is ListDocumentAttachmentsResponse {\n return ListDocumentAttachmentsResponseSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentBindResponse(\n value: unknown,\n): value is BlobAttachmentBindResponse {\n return BlobAttachmentBindResponseSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentDetachResponse(\n value: unknown,\n): value is BlobAttachmentDetachResponse {\n return BlobAttachmentDetachResponseSchema.safeParse(value).success;\n}\n"]}
|
|
@@ -1337,6 +1337,10 @@ export declare const ContainerKeyingPathResponseSchema: z.ZodType<{
|
|
|
1337
1337
|
}[];
|
|
1338
1338
|
}>>;
|
|
1339
1339
|
export type ContainerKeyingPathResponse = z.infer<typeof ContainerKeyingPathResponseSchema>;
|
|
1340
|
+
/**
|
|
1341
|
+
* The decoded projection a client verifies: every manifest position holds
|
|
1342
|
+
* its bundle. `decodeContainerWriterProjection` builds it from the wire.
|
|
1343
|
+
*/
|
|
1340
1344
|
export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
|
|
1341
1345
|
policyEvidence: {
|
|
1342
1346
|
organization: {
|
|
@@ -1423,11 +1427,6 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
|
|
|
1423
1427
|
manifestHash: string;
|
|
1424
1428
|
state: Record<string, unknown>;
|
|
1425
1429
|
}[];
|
|
1426
|
-
historyPrefixes?: {
|
|
1427
|
-
key: string;
|
|
1428
|
-
count: number;
|
|
1429
|
-
digest: string;
|
|
1430
|
-
}[] | undefined;
|
|
1431
1430
|
}, {
|
|
1432
1431
|
policyEvidence: {
|
|
1433
1432
|
organization: {
|
|
@@ -1514,11 +1513,6 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
|
|
|
1514
1513
|
manifestHash: string;
|
|
1515
1514
|
state: Record<string, unknown>;
|
|
1516
1515
|
}[];
|
|
1517
|
-
historyPrefixes?: {
|
|
1518
|
-
key: string;
|
|
1519
|
-
count: number;
|
|
1520
|
-
digest: string;
|
|
1521
|
-
}[] | undefined;
|
|
1522
1516
|
}, z.core.$ZodTypeInternals<{
|
|
1523
1517
|
policyEvidence: {
|
|
1524
1518
|
organization: {
|
|
@@ -1605,11 +1599,6 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
|
|
|
1605
1599
|
manifestHash: string;
|
|
1606
1600
|
state: Record<string, unknown>;
|
|
1607
1601
|
}[];
|
|
1608
|
-
historyPrefixes?: {
|
|
1609
|
-
key: string;
|
|
1610
|
-
count: number;
|
|
1611
|
-
digest: string;
|
|
1612
|
-
}[] | undefined;
|
|
1613
1602
|
}, {
|
|
1614
1603
|
policyEvidence: {
|
|
1615
1604
|
organization: {
|
|
@@ -1696,13 +1685,432 @@ export declare const ContainerWriterProjectionResponseSchema: z.ZodType<{
|
|
|
1696
1685
|
manifestHash: string;
|
|
1697
1686
|
state: Record<string, unknown>;
|
|
1698
1687
|
}[];
|
|
1699
|
-
historyPrefixes?: {
|
|
1700
|
-
key: string;
|
|
1701
|
-
count: number;
|
|
1702
|
-
digest: string;
|
|
1703
|
-
}[] | undefined;
|
|
1704
1688
|
}>>;
|
|
1705
1689
|
export type ContainerWriterProjectionResponse = z.infer<typeof ContainerWriterProjectionResponseSchema>;
|
|
1690
|
+
export declare const ContainerKeyingPathWireResponseSchema: z.ZodType<{
|
|
1691
|
+
containerId: string;
|
|
1692
|
+
containerKeks: {
|
|
1693
|
+
containerManifestHistory: string[];
|
|
1694
|
+
accessManifestHash: string;
|
|
1695
|
+
containerId: string;
|
|
1696
|
+
containerKeyEpoch: number;
|
|
1697
|
+
containerKeyEpochId: string;
|
|
1698
|
+
keyEpoch: Record<string, unknown>;
|
|
1699
|
+
keyEpochHash: string;
|
|
1700
|
+
keyring: {
|
|
1701
|
+
containerId: string;
|
|
1702
|
+
containerKeyEpochId: string;
|
|
1703
|
+
iv: string;
|
|
1704
|
+
sealed: string;
|
|
1705
|
+
sealingSuite: string;
|
|
1706
|
+
version: number;
|
|
1707
|
+
} | null;
|
|
1708
|
+
keyTargetHash: string;
|
|
1709
|
+
parentContainerKeyEpochId: string | null;
|
|
1710
|
+
recipientTargets: Record<string, unknown>[];
|
|
1711
|
+
wraps: Record<string, unknown>[];
|
|
1712
|
+
}[];
|
|
1713
|
+
organizationId: string;
|
|
1714
|
+
path: string[];
|
|
1715
|
+
}, {
|
|
1716
|
+
containerId: string;
|
|
1717
|
+
containerKeks: {
|
|
1718
|
+
containerManifestHistory: string[];
|
|
1719
|
+
accessManifestHash: string;
|
|
1720
|
+
containerId: string;
|
|
1721
|
+
containerKeyEpoch: number;
|
|
1722
|
+
containerKeyEpochId: string;
|
|
1723
|
+
keyEpoch: Record<string, unknown>;
|
|
1724
|
+
keyEpochHash: string;
|
|
1725
|
+
keyring: {
|
|
1726
|
+
containerId: string;
|
|
1727
|
+
containerKeyEpochId: string;
|
|
1728
|
+
iv: string;
|
|
1729
|
+
sealed: string;
|
|
1730
|
+
sealingSuite: string;
|
|
1731
|
+
version: number;
|
|
1732
|
+
} | null;
|
|
1733
|
+
keyTargetHash: string;
|
|
1734
|
+
parentContainerKeyEpochId: string | null;
|
|
1735
|
+
recipientTargets: Record<string, unknown>[];
|
|
1736
|
+
wraps: Record<string, unknown>[];
|
|
1737
|
+
}[];
|
|
1738
|
+
organizationId: string;
|
|
1739
|
+
path: string[];
|
|
1740
|
+
}, z.core.$ZodTypeInternals<{
|
|
1741
|
+
containerId: string;
|
|
1742
|
+
containerKeks: {
|
|
1743
|
+
containerManifestHistory: string[];
|
|
1744
|
+
accessManifestHash: string;
|
|
1745
|
+
containerId: string;
|
|
1746
|
+
containerKeyEpoch: number;
|
|
1747
|
+
containerKeyEpochId: string;
|
|
1748
|
+
keyEpoch: Record<string, unknown>;
|
|
1749
|
+
keyEpochHash: string;
|
|
1750
|
+
keyring: {
|
|
1751
|
+
containerId: string;
|
|
1752
|
+
containerKeyEpochId: string;
|
|
1753
|
+
iv: string;
|
|
1754
|
+
sealed: string;
|
|
1755
|
+
sealingSuite: string;
|
|
1756
|
+
version: number;
|
|
1757
|
+
} | null;
|
|
1758
|
+
keyTargetHash: string;
|
|
1759
|
+
parentContainerKeyEpochId: string | null;
|
|
1760
|
+
recipientTargets: Record<string, unknown>[];
|
|
1761
|
+
wraps: Record<string, unknown>[];
|
|
1762
|
+
}[];
|
|
1763
|
+
organizationId: string;
|
|
1764
|
+
path: string[];
|
|
1765
|
+
}, {
|
|
1766
|
+
containerId: string;
|
|
1767
|
+
containerKeks: {
|
|
1768
|
+
containerManifestHistory: string[];
|
|
1769
|
+
accessManifestHash: string;
|
|
1770
|
+
containerId: string;
|
|
1771
|
+
containerKeyEpoch: number;
|
|
1772
|
+
containerKeyEpochId: string;
|
|
1773
|
+
keyEpoch: Record<string, unknown>;
|
|
1774
|
+
keyEpochHash: string;
|
|
1775
|
+
keyring: {
|
|
1776
|
+
containerId: string;
|
|
1777
|
+
containerKeyEpochId: string;
|
|
1778
|
+
iv: string;
|
|
1779
|
+
sealed: string;
|
|
1780
|
+
sealingSuite: string;
|
|
1781
|
+
version: number;
|
|
1782
|
+
} | null;
|
|
1783
|
+
keyTargetHash: string;
|
|
1784
|
+
parentContainerKeyEpochId: string | null;
|
|
1785
|
+
recipientTargets: Record<string, unknown>[];
|
|
1786
|
+
wraps: Record<string, unknown>[];
|
|
1787
|
+
}[];
|
|
1788
|
+
organizationId: string;
|
|
1789
|
+
path: string[];
|
|
1790
|
+
}>>;
|
|
1791
|
+
export type ContainerKeyingPathWireResponse = z.infer<typeof ContainerKeyingPathWireResponseSchema>;
|
|
1792
|
+
/**
|
|
1793
|
+
* The served shape: manifest positions cite `bundles` by hash, except hashes
|
|
1794
|
+
* the request declared already held, which `omittedBundles` lists instead.
|
|
1795
|
+
*/
|
|
1796
|
+
export declare const ContainerWriterProjectionWireResponseSchema: z.ZodType<{
|
|
1797
|
+
policyEvidence: {
|
|
1798
|
+
organization: {
|
|
1799
|
+
head: {
|
|
1800
|
+
keyEpoch: number;
|
|
1801
|
+
keyFingerprint: string;
|
|
1802
|
+
principalId: string;
|
|
1803
|
+
principalType: "group" | "organization";
|
|
1804
|
+
stateHash: string;
|
|
1805
|
+
version: number;
|
|
1806
|
+
};
|
|
1807
|
+
grant: string;
|
|
1808
|
+
} | null;
|
|
1809
|
+
organizationPayloads: {
|
|
1810
|
+
reference: {
|
|
1811
|
+
keyEpoch: number;
|
|
1812
|
+
keyFingerprint: string;
|
|
1813
|
+
principalId: string;
|
|
1814
|
+
principalType: "group" | "organization";
|
|
1815
|
+
stateHash: string;
|
|
1816
|
+
version: number;
|
|
1817
|
+
};
|
|
1818
|
+
payload: {
|
|
1819
|
+
cipherSuite: "aes-256-gcm";
|
|
1820
|
+
ciphertext: string;
|
|
1821
|
+
ciphertextHash: string;
|
|
1822
|
+
createdAt: string;
|
|
1823
|
+
principalId: string;
|
|
1824
|
+
principalType: "group" | "organization";
|
|
1825
|
+
stateHash: string;
|
|
1826
|
+
};
|
|
1827
|
+
}[];
|
|
1828
|
+
groups: {
|
|
1829
|
+
head: {
|
|
1830
|
+
keyEpoch: number;
|
|
1831
|
+
keyFingerprint: string;
|
|
1832
|
+
principalId: string;
|
|
1833
|
+
principalType: "group" | "organization";
|
|
1834
|
+
stateHash: string;
|
|
1835
|
+
version: number;
|
|
1836
|
+
};
|
|
1837
|
+
grant: string;
|
|
1838
|
+
}[];
|
|
1839
|
+
};
|
|
1840
|
+
containerId: string;
|
|
1841
|
+
containerKeks: {
|
|
1842
|
+
containerManifestHistory: string[];
|
|
1843
|
+
accessManifestHash: string;
|
|
1844
|
+
containerId: string;
|
|
1845
|
+
containerKeyEpoch: number;
|
|
1846
|
+
containerKeyEpochId: string;
|
|
1847
|
+
keyEpoch: Record<string, unknown>;
|
|
1848
|
+
keyEpochHash: string;
|
|
1849
|
+
keyring: {
|
|
1850
|
+
containerId: string;
|
|
1851
|
+
containerKeyEpochId: string;
|
|
1852
|
+
iv: string;
|
|
1853
|
+
sealed: string;
|
|
1854
|
+
sealingSuite: string;
|
|
1855
|
+
version: number;
|
|
1856
|
+
} | null;
|
|
1857
|
+
keyTargetHash: string;
|
|
1858
|
+
parentContainerKeyEpochId: string | null;
|
|
1859
|
+
recipientTargets: Record<string, unknown>[];
|
|
1860
|
+
wraps: Record<string, unknown>[];
|
|
1861
|
+
}[];
|
|
1862
|
+
organizationId: string;
|
|
1863
|
+
path: string[];
|
|
1864
|
+
bundles: Record<string, {
|
|
1865
|
+
event: {
|
|
1866
|
+
body: unknown;
|
|
1867
|
+
event: Record<string, unknown>;
|
|
1868
|
+
eventHash: string;
|
|
1869
|
+
};
|
|
1870
|
+
manifest: Record<string, unknown>;
|
|
1871
|
+
manifestHash: string;
|
|
1872
|
+
state: Record<string, unknown>;
|
|
1873
|
+
}>;
|
|
1874
|
+
omittedBundles: string[];
|
|
1875
|
+
}, {
|
|
1876
|
+
policyEvidence: {
|
|
1877
|
+
organization: {
|
|
1878
|
+
head: {
|
|
1879
|
+
keyEpoch: number;
|
|
1880
|
+
keyFingerprint: string;
|
|
1881
|
+
principalId: string;
|
|
1882
|
+
principalType: "group" | "organization";
|
|
1883
|
+
stateHash: string;
|
|
1884
|
+
version: number;
|
|
1885
|
+
};
|
|
1886
|
+
grant: string;
|
|
1887
|
+
} | null;
|
|
1888
|
+
organizationPayloads: {
|
|
1889
|
+
reference: {
|
|
1890
|
+
keyEpoch: number;
|
|
1891
|
+
keyFingerprint: string;
|
|
1892
|
+
principalId: string;
|
|
1893
|
+
principalType: "group" | "organization";
|
|
1894
|
+
stateHash: string;
|
|
1895
|
+
version: number;
|
|
1896
|
+
};
|
|
1897
|
+
payload: {
|
|
1898
|
+
cipherSuite: "aes-256-gcm";
|
|
1899
|
+
ciphertext: string;
|
|
1900
|
+
ciphertextHash: string;
|
|
1901
|
+
createdAt: string;
|
|
1902
|
+
principalId: string;
|
|
1903
|
+
principalType: "group" | "organization";
|
|
1904
|
+
stateHash: string;
|
|
1905
|
+
};
|
|
1906
|
+
}[];
|
|
1907
|
+
groups: {
|
|
1908
|
+
head: {
|
|
1909
|
+
keyEpoch: number;
|
|
1910
|
+
keyFingerprint: string;
|
|
1911
|
+
principalId: string;
|
|
1912
|
+
principalType: "group" | "organization";
|
|
1913
|
+
stateHash: string;
|
|
1914
|
+
version: number;
|
|
1915
|
+
};
|
|
1916
|
+
grant: string;
|
|
1917
|
+
}[];
|
|
1918
|
+
};
|
|
1919
|
+
containerId: string;
|
|
1920
|
+
containerKeks: {
|
|
1921
|
+
containerManifestHistory: string[];
|
|
1922
|
+
accessManifestHash: string;
|
|
1923
|
+
containerId: string;
|
|
1924
|
+
containerKeyEpoch: number;
|
|
1925
|
+
containerKeyEpochId: string;
|
|
1926
|
+
keyEpoch: Record<string, unknown>;
|
|
1927
|
+
keyEpochHash: string;
|
|
1928
|
+
keyring: {
|
|
1929
|
+
containerId: string;
|
|
1930
|
+
containerKeyEpochId: string;
|
|
1931
|
+
iv: string;
|
|
1932
|
+
sealed: string;
|
|
1933
|
+
sealingSuite: string;
|
|
1934
|
+
version: number;
|
|
1935
|
+
} | null;
|
|
1936
|
+
keyTargetHash: string;
|
|
1937
|
+
parentContainerKeyEpochId: string | null;
|
|
1938
|
+
recipientTargets: Record<string, unknown>[];
|
|
1939
|
+
wraps: Record<string, unknown>[];
|
|
1940
|
+
}[];
|
|
1941
|
+
organizationId: string;
|
|
1942
|
+
path: string[];
|
|
1943
|
+
bundles: Record<string, {
|
|
1944
|
+
event: {
|
|
1945
|
+
body: unknown;
|
|
1946
|
+
event: Record<string, unknown>;
|
|
1947
|
+
eventHash: string;
|
|
1948
|
+
};
|
|
1949
|
+
manifest: Record<string, unknown>;
|
|
1950
|
+
manifestHash: string;
|
|
1951
|
+
state: Record<string, unknown>;
|
|
1952
|
+
}>;
|
|
1953
|
+
omittedBundles: string[];
|
|
1954
|
+
}, z.core.$ZodTypeInternals<{
|
|
1955
|
+
policyEvidence: {
|
|
1956
|
+
organization: {
|
|
1957
|
+
head: {
|
|
1958
|
+
keyEpoch: number;
|
|
1959
|
+
keyFingerprint: string;
|
|
1960
|
+
principalId: string;
|
|
1961
|
+
principalType: "group" | "organization";
|
|
1962
|
+
stateHash: string;
|
|
1963
|
+
version: number;
|
|
1964
|
+
};
|
|
1965
|
+
grant: string;
|
|
1966
|
+
} | null;
|
|
1967
|
+
organizationPayloads: {
|
|
1968
|
+
reference: {
|
|
1969
|
+
keyEpoch: number;
|
|
1970
|
+
keyFingerprint: string;
|
|
1971
|
+
principalId: string;
|
|
1972
|
+
principalType: "group" | "organization";
|
|
1973
|
+
stateHash: string;
|
|
1974
|
+
version: number;
|
|
1975
|
+
};
|
|
1976
|
+
payload: {
|
|
1977
|
+
cipherSuite: "aes-256-gcm";
|
|
1978
|
+
ciphertext: string;
|
|
1979
|
+
ciphertextHash: string;
|
|
1980
|
+
createdAt: string;
|
|
1981
|
+
principalId: string;
|
|
1982
|
+
principalType: "group" | "organization";
|
|
1983
|
+
stateHash: string;
|
|
1984
|
+
};
|
|
1985
|
+
}[];
|
|
1986
|
+
groups: {
|
|
1987
|
+
head: {
|
|
1988
|
+
keyEpoch: number;
|
|
1989
|
+
keyFingerprint: string;
|
|
1990
|
+
principalId: string;
|
|
1991
|
+
principalType: "group" | "organization";
|
|
1992
|
+
stateHash: string;
|
|
1993
|
+
version: number;
|
|
1994
|
+
};
|
|
1995
|
+
grant: string;
|
|
1996
|
+
}[];
|
|
1997
|
+
};
|
|
1998
|
+
containerId: string;
|
|
1999
|
+
containerKeks: {
|
|
2000
|
+
containerManifestHistory: string[];
|
|
2001
|
+
accessManifestHash: string;
|
|
2002
|
+
containerId: string;
|
|
2003
|
+
containerKeyEpoch: number;
|
|
2004
|
+
containerKeyEpochId: string;
|
|
2005
|
+
keyEpoch: Record<string, unknown>;
|
|
2006
|
+
keyEpochHash: string;
|
|
2007
|
+
keyring: {
|
|
2008
|
+
containerId: string;
|
|
2009
|
+
containerKeyEpochId: string;
|
|
2010
|
+
iv: string;
|
|
2011
|
+
sealed: string;
|
|
2012
|
+
sealingSuite: string;
|
|
2013
|
+
version: number;
|
|
2014
|
+
} | null;
|
|
2015
|
+
keyTargetHash: string;
|
|
2016
|
+
parentContainerKeyEpochId: string | null;
|
|
2017
|
+
recipientTargets: Record<string, unknown>[];
|
|
2018
|
+
wraps: Record<string, unknown>[];
|
|
2019
|
+
}[];
|
|
2020
|
+
organizationId: string;
|
|
2021
|
+
path: string[];
|
|
2022
|
+
bundles: Record<string, {
|
|
2023
|
+
event: {
|
|
2024
|
+
body: unknown;
|
|
2025
|
+
event: Record<string, unknown>;
|
|
2026
|
+
eventHash: string;
|
|
2027
|
+
};
|
|
2028
|
+
manifest: Record<string, unknown>;
|
|
2029
|
+
manifestHash: string;
|
|
2030
|
+
state: Record<string, unknown>;
|
|
2031
|
+
}>;
|
|
2032
|
+
omittedBundles: string[];
|
|
2033
|
+
}, {
|
|
2034
|
+
policyEvidence: {
|
|
2035
|
+
organization: {
|
|
2036
|
+
head: {
|
|
2037
|
+
keyEpoch: number;
|
|
2038
|
+
keyFingerprint: string;
|
|
2039
|
+
principalId: string;
|
|
2040
|
+
principalType: "group" | "organization";
|
|
2041
|
+
stateHash: string;
|
|
2042
|
+
version: number;
|
|
2043
|
+
};
|
|
2044
|
+
grant: string;
|
|
2045
|
+
} | null;
|
|
2046
|
+
organizationPayloads: {
|
|
2047
|
+
reference: {
|
|
2048
|
+
keyEpoch: number;
|
|
2049
|
+
keyFingerprint: string;
|
|
2050
|
+
principalId: string;
|
|
2051
|
+
principalType: "group" | "organization";
|
|
2052
|
+
stateHash: string;
|
|
2053
|
+
version: number;
|
|
2054
|
+
};
|
|
2055
|
+
payload: {
|
|
2056
|
+
cipherSuite: "aes-256-gcm";
|
|
2057
|
+
ciphertext: string;
|
|
2058
|
+
ciphertextHash: string;
|
|
2059
|
+
createdAt: string;
|
|
2060
|
+
principalId: string;
|
|
2061
|
+
principalType: "group" | "organization";
|
|
2062
|
+
stateHash: string;
|
|
2063
|
+
};
|
|
2064
|
+
}[];
|
|
2065
|
+
groups: {
|
|
2066
|
+
head: {
|
|
2067
|
+
keyEpoch: number;
|
|
2068
|
+
keyFingerprint: string;
|
|
2069
|
+
principalId: string;
|
|
2070
|
+
principalType: "group" | "organization";
|
|
2071
|
+
stateHash: string;
|
|
2072
|
+
version: number;
|
|
2073
|
+
};
|
|
2074
|
+
grant: string;
|
|
2075
|
+
}[];
|
|
2076
|
+
};
|
|
2077
|
+
containerId: string;
|
|
2078
|
+
containerKeks: {
|
|
2079
|
+
containerManifestHistory: string[];
|
|
2080
|
+
accessManifestHash: string;
|
|
2081
|
+
containerId: string;
|
|
2082
|
+
containerKeyEpoch: number;
|
|
2083
|
+
containerKeyEpochId: string;
|
|
2084
|
+
keyEpoch: Record<string, unknown>;
|
|
2085
|
+
keyEpochHash: string;
|
|
2086
|
+
keyring: {
|
|
2087
|
+
containerId: string;
|
|
2088
|
+
containerKeyEpochId: string;
|
|
2089
|
+
iv: string;
|
|
2090
|
+
sealed: string;
|
|
2091
|
+
sealingSuite: string;
|
|
2092
|
+
version: number;
|
|
2093
|
+
} | null;
|
|
2094
|
+
keyTargetHash: string;
|
|
2095
|
+
parentContainerKeyEpochId: string | null;
|
|
2096
|
+
recipientTargets: Record<string, unknown>[];
|
|
2097
|
+
wraps: Record<string, unknown>[];
|
|
2098
|
+
}[];
|
|
2099
|
+
organizationId: string;
|
|
2100
|
+
path: string[];
|
|
2101
|
+
bundles: Record<string, {
|
|
2102
|
+
event: {
|
|
2103
|
+
body: unknown;
|
|
2104
|
+
event: Record<string, unknown>;
|
|
2105
|
+
eventHash: string;
|
|
2106
|
+
};
|
|
2107
|
+
manifest: Record<string, unknown>;
|
|
2108
|
+
manifestHash: string;
|
|
2109
|
+
state: Record<string, unknown>;
|
|
2110
|
+
}>;
|
|
2111
|
+
omittedBundles: string[];
|
|
2112
|
+
}>>;
|
|
2113
|
+
export type ContainerWriterProjectionWireResponse = z.infer<typeof ContainerWriterProjectionWireResponseSchema>;
|
|
1706
2114
|
export declare const ContainerSummaryResponseSchema: z.ZodType<{
|
|
1707
2115
|
createdAt: string;
|
|
1708
2116
|
depth: number;
|
|
@@ -1953,4 +2361,5 @@ export declare function isListContainersResponse(value: unknown): value is ListC
|
|
|
1953
2361
|
export declare function isContainerMutationResponse(value: unknown): value is ContainerMutationResponse;
|
|
1954
2362
|
export declare function isContainerDeleteResponse(value: unknown): value is ContainerDeleteResponse;
|
|
1955
2363
|
export declare function isContainerWriterProjectionResponse(value: unknown): value is ContainerWriterProjectionResponse;
|
|
2364
|
+
export declare function isContainerWriterProjectionWireResponse(value: unknown): value is ContainerWriterProjectionWireResponse;
|
|
1956
2365
|
export {};
|