@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
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import {
|
|
3
|
-
import { ContainerNotFoundErrorResponseSchema, ContainerWriterProjectionErrorResponseSchema,
|
|
2
|
+
import { knownManifestsHeaderRefinement } from "../knownManifestsRefinements.js";
|
|
3
|
+
import { ContainerNotFoundErrorResponseSchema, ContainerWriterProjectionErrorResponseSchema, ContainerWriterProjectionWireResponseSchema, DocumentNotFoundErrorResponseSchema, DocumentWriterProjectionErrorResponseSchema, DocumentWriterProjectionWireResponseSchema, ErrorResponseSchema, isContainerWriterProjectionWireResponse, isDocumentWriterProjectionWireResponse, SessionFailureResponseSchema, } from "../response/index.js";
|
|
4
4
|
import { PrincipalHistoryPreparationResponseSchema } from "../response/principalHistoryPreparation.js";
|
|
5
|
-
import {
|
|
5
|
+
import { KnownManifestsHeadersSchema } from "../util/knownManifestWire.js";
|
|
6
6
|
import { writerProjectionResponseRuntimeRefinements } from "../writerProjectionRefinements.js";
|
|
7
7
|
import { defineJsonOperation } from "./definition.js";
|
|
8
8
|
export const ContainerWriterProjectionPathParamsSchema = z.strictObject({
|
|
@@ -24,16 +24,16 @@ export const getContainerWriterProjectionOperation = defineJsonOperation({
|
|
|
24
24
|
failureStatuses: [400, 401, 403, 404, 409, 500],
|
|
25
25
|
id: "containers.writerProjection.get",
|
|
26
26
|
method: "GET",
|
|
27
|
-
headers:
|
|
27
|
+
headers: KnownManifestsHeadersSchema,
|
|
28
28
|
params: ContainerWriterProjectionPathParamsSchema,
|
|
29
29
|
path: "/containers/{containerId}/writer-projection",
|
|
30
30
|
responses: {
|
|
31
|
-
200:
|
|
31
|
+
200: ContainerWriterProjectionWireResponseSchema,
|
|
32
32
|
202: PrincipalHistoryPreparationResponseSchema,
|
|
33
33
|
},
|
|
34
34
|
runtimeRefinements: [
|
|
35
35
|
...writerProjectionResponseRuntimeRefinements,
|
|
36
|
-
|
|
36
|
+
knownManifestsHeaderRefinement,
|
|
37
37
|
],
|
|
38
38
|
});
|
|
39
39
|
export const getDocumentWriterProjectionOperation = defineJsonOperation({
|
|
@@ -49,18 +49,18 @@ export const getDocumentWriterProjectionOperation = defineJsonOperation({
|
|
|
49
49
|
failureStatuses: [400, 401, 403, 404, 409, 500],
|
|
50
50
|
id: "documents.writerProjection.get",
|
|
51
51
|
method: "GET",
|
|
52
|
-
headers:
|
|
52
|
+
headers: KnownManifestsHeadersSchema,
|
|
53
53
|
params: DocumentWriterProjectionPathParamsSchema,
|
|
54
54
|
path: "/documents/{documentId}/writer-projection",
|
|
55
55
|
responses: {
|
|
56
|
-
200:
|
|
56
|
+
200: DocumentWriterProjectionWireResponseSchema,
|
|
57
57
|
202: PrincipalHistoryPreparationResponseSchema,
|
|
58
58
|
},
|
|
59
59
|
runtimeRefinements: [
|
|
60
60
|
...writerProjectionResponseRuntimeRefinements,
|
|
61
|
-
|
|
61
|
+
knownManifestsHeaderRefinement,
|
|
62
62
|
],
|
|
63
63
|
});
|
|
64
|
-
export const isGetContainerWriterProjectionOperationResponse =
|
|
65
|
-
export const isGetDocumentWriterProjectionOperationResponse =
|
|
64
|
+
export const isGetContainerWriterProjectionOperationResponse = isContainerWriterProjectionWireResponse;
|
|
65
|
+
export const isGetDocumentWriterProjectionOperationResponse = isDocumentWriterProjectionWireResponse;
|
|
66
66
|
//# sourceMappingURL=writerProjections.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"writerProjections.js","sourceRoot":"","sources":["writerProjections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"writerProjections.js","sourceRoot":"","sources":["writerProjections.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAC9E,OAAO,EACL,oCAAoC,EACpC,4CAA4C,EAC5C,2CAA2C,EAC3C,mCAAmC,EACnC,2CAA2C,EAC3C,0CAA0C,EAC1C,mBAAmB,EACnB,uCAAuC,EACvC,sCAAsC,EACtC,4BAA4B,GAC7B,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,yCAAyC,EAAE,MAAM,yCAAyC,CAAC;AACpG,OAAO,EAAE,2BAA2B,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,EAAE,0CAA0C,EAAE,MAAM,gCAAgC,CAAC;AAC5F,OAAO,EAAE,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAEnD,MAAM,CAAC,MAAM,yCAAyC,GAAG,CAAC,CAAC,YAAY,CAAC;IACtE,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;CACxB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,wCAAwC,GAAG,CAAC,CAAC,YAAY,CAAC;IACrE,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AASH,MAAM,CAAC,MAAM,qCAAqC,GAAG,mBAAmB,CAAC;IACvE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,oCAAoC;QACzC,GAAG,EAAE,4CAA4C;QACjD,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,iCAAiC;IACrC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,yCAAyC;IACjD,IAAI,EAAE,6CAA6C;IACnD,SAAS,EAAE;QACT,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,GAAG,0CAA0C;QAC7C,8BAA8B;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,oCAAoC,GAAG,mBAAmB,CAAC;IACtE,IAAI,EAAE,SAAS;IACf,gBAAgB,EAAE;QAChB,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,4BAA4B;QACjC,GAAG,EAAE,mBAAmB;QACxB,GAAG,EAAE,mCAAmC;QACxC,GAAG,EAAE,2CAA2C;QAChD,GAAG,EAAE,mBAAmB;KACzB;IACD,eAAe,EAAE,CAAC,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC;IAC/C,EAAE,EAAE,gCAAgC;IACpC,MAAM,EAAE,KAAK;IACb,OAAO,EAAE,2BAA2B;IACpC,MAAM,EAAE,wCAAwC;IAChD,IAAI,EAAE,2CAA2C;IACjD,SAAS,EAAE;QACT,GAAG,EAAE,0CAA0C;QAC/C,GAAG,EAAE,yCAAyC;KAC/C;IACD,kBAAkB,EAAE;QAClB,GAAG,0CAA0C;QAC7C,8BAA8B;KAC/B;CACF,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,+CAA+C,GAC1D,uCAAuC,CAAC;AAC1C,MAAM,CAAC,MAAM,8CAA8C,GACzD,sCAAsC,CAAC","sourcesContent":["import { z } from \"zod\";\nimport { knownManifestsHeaderRefinement } from \"../knownManifestsRefinements\";\nimport {\n ContainerNotFoundErrorResponseSchema,\n ContainerWriterProjectionErrorResponseSchema,\n ContainerWriterProjectionWireResponseSchema,\n DocumentNotFoundErrorResponseSchema,\n DocumentWriterProjectionErrorResponseSchema,\n DocumentWriterProjectionWireResponseSchema,\n ErrorResponseSchema,\n isContainerWriterProjectionWireResponse,\n isDocumentWriterProjectionWireResponse,\n SessionFailureResponseSchema,\n} from \"../response\";\nimport { PrincipalHistoryPreparationResponseSchema } from \"../response/principalHistoryPreparation\";\nimport { KnownManifestsHeadersSchema } from \"../util/knownManifestWire\";\nimport { writerProjectionResponseRuntimeRefinements } from \"../writerProjectionRefinements\";\nimport { defineJsonOperation } from \"./definition\";\n\nexport const ContainerWriterProjectionPathParamsSchema = z.strictObject({\n containerId: z.string(),\n});\n\nexport const DocumentWriterProjectionPathParamsSchema = z.strictObject({\n documentId: z.string(),\n});\n\nexport type ContainerWriterProjectionPathParams = z.infer<\n typeof ContainerWriterProjectionPathParamsSchema\n>;\nexport type DocumentWriterProjectionPathParams = z.infer<\n typeof DocumentWriterProjectionPathParamsSchema\n>;\n\nexport const getContainerWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: ContainerNotFoundErrorResponseSchema,\n 409: ContainerWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"containers.writerProjection.get\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: ContainerWriterProjectionPathParamsSchema,\n path: \"/containers/{containerId}/writer-projection\",\n responses: {\n 200: ContainerWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const getDocumentWriterProjectionOperation = defineJsonOperation({\n auth: \"session\",\n failureResponses: {\n 400: ErrorResponseSchema,\n 401: SessionFailureResponseSchema,\n 403: ErrorResponseSchema,\n 404: DocumentNotFoundErrorResponseSchema,\n 409: DocumentWriterProjectionErrorResponseSchema,\n 500: ErrorResponseSchema,\n },\n failureStatuses: [400, 401, 403, 404, 409, 500],\n id: \"documents.writerProjection.get\",\n method: \"GET\",\n headers: KnownManifestsHeadersSchema,\n params: DocumentWriterProjectionPathParamsSchema,\n path: \"/documents/{documentId}/writer-projection\",\n responses: {\n 200: DocumentWriterProjectionWireResponseSchema,\n 202: PrincipalHistoryPreparationResponseSchema,\n },\n runtimeRefinements: [\n ...writerProjectionResponseRuntimeRefinements,\n knownManifestsHeaderRefinement,\n ],\n});\n\nexport const isGetContainerWriterProjectionOperationResponse =\n isContainerWriterProjectionWireResponse;\nexport const isGetDocumentWriterProjectionOperationResponse =\n isDocumentWriterProjectionWireResponse;\n"]}
|
|
@@ -2,61 +2,41 @@ import type { z } from "zod";
|
|
|
2
2
|
export declare const InitiateMultipartBlobStageRequestSchema: z.ZodType<{
|
|
3
3
|
organizationId: string;
|
|
4
4
|
byteLength: number;
|
|
5
|
+
firstParts: {
|
|
6
|
+
byteLength: number;
|
|
7
|
+
contentMd5: string;
|
|
8
|
+
partNumber: number;
|
|
9
|
+
}[];
|
|
5
10
|
sha256: string;
|
|
6
11
|
}, {
|
|
7
12
|
organizationId: string;
|
|
8
13
|
byteLength: number;
|
|
14
|
+
firstParts: {
|
|
15
|
+
byteLength: number;
|
|
16
|
+
contentMd5: string;
|
|
17
|
+
partNumber: number;
|
|
18
|
+
}[];
|
|
9
19
|
sha256: string;
|
|
10
20
|
}, z.core.$ZodTypeInternals<{
|
|
11
21
|
organizationId: string;
|
|
12
22
|
byteLength: number;
|
|
23
|
+
firstParts: {
|
|
24
|
+
byteLength: number;
|
|
25
|
+
contentMd5: string;
|
|
26
|
+
partNumber: number;
|
|
27
|
+
}[];
|
|
13
28
|
sha256: string;
|
|
14
29
|
}, {
|
|
15
30
|
organizationId: string;
|
|
16
31
|
byteLength: number;
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
export declare const MultipartBlobPartCommitRequestSchema: z.ZodType<{
|
|
21
|
-
etag: string;
|
|
22
|
-
partNumber: number;
|
|
23
|
-
}, {
|
|
24
|
-
etag: string;
|
|
25
|
-
partNumber: number;
|
|
26
|
-
}, z.core.$ZodTypeInternals<{
|
|
27
|
-
etag: string;
|
|
28
|
-
partNumber: number;
|
|
29
|
-
}, {
|
|
30
|
-
etag: string;
|
|
31
|
-
partNumber: number;
|
|
32
|
-
}>>;
|
|
33
|
-
export type MultipartBlobPartCommitRequest = z.infer<typeof MultipartBlobPartCommitRequestSchema>;
|
|
34
|
-
export declare const CompleteMultipartBlobStageRequestSchema: z.ZodType<{
|
|
35
|
-
parts: {
|
|
36
|
-
etag: string;
|
|
37
|
-
partNumber: number;
|
|
38
|
-
}[];
|
|
39
|
-
uploadId: string;
|
|
40
|
-
}, {
|
|
41
|
-
parts: {
|
|
42
|
-
etag: string;
|
|
32
|
+
firstParts: {
|
|
33
|
+
byteLength: number;
|
|
34
|
+
contentMd5: string;
|
|
43
35
|
partNumber: number;
|
|
44
36
|
}[];
|
|
45
|
-
|
|
46
|
-
}, z.core.$ZodTypeInternals<{
|
|
47
|
-
parts: {
|
|
48
|
-
etag: string;
|
|
49
|
-
partNumber: number;
|
|
50
|
-
}[];
|
|
51
|
-
uploadId: string;
|
|
52
|
-
}, {
|
|
53
|
-
parts: {
|
|
54
|
-
etag: string;
|
|
55
|
-
partNumber: number;
|
|
56
|
-
}[];
|
|
57
|
-
uploadId: string;
|
|
37
|
+
sha256: string;
|
|
58
38
|
}>>;
|
|
59
|
-
export type
|
|
39
|
+
export type InitiateMultipartBlobStageRequest = z.infer<typeof InitiateMultipartBlobStageRequestSchema>;
|
|
60
40
|
export declare const BlobContentKeyTargetEnvelopeRequestSchema: z.ZodType<{
|
|
61
41
|
bindingId: string;
|
|
62
42
|
containerId: string;
|
|
@@ -194,36 +174,26 @@ export declare const BlobAttachmentBindRequestSchema: z.ZodType<{
|
|
|
194
174
|
predecessorBridge: Record<string, unknown> | null;
|
|
195
175
|
principalPolicies: Record<string, unknown>[];
|
|
196
176
|
wraps: Record<string, unknown>[];
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
manifest: Record<string, unknown>;
|
|
177
|
+
containerManifestHistoryRefs?: {
|
|
178
|
+
containerId: string;
|
|
200
179
|
manifestHash: string;
|
|
201
|
-
state: Record<string, unknown>;
|
|
202
180
|
}[] | undefined;
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
manifest: Record<string, unknown>;
|
|
181
|
+
destinationParentContainerPathRefs?: {
|
|
182
|
+
containerId: string;
|
|
206
183
|
manifestHash: string;
|
|
207
|
-
state: Record<string, unknown>;
|
|
208
184
|
}[] | undefined;
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
manifest: Record<string, unknown>;
|
|
185
|
+
parentContainerPathRefs?: {
|
|
186
|
+
containerId: string;
|
|
212
187
|
manifestHash: string;
|
|
213
|
-
state: Record<string, unknown>;
|
|
214
188
|
}[] | undefined;
|
|
215
189
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
manifest: Record<string, unknown>;
|
|
190
|
+
previousContainerPathRefs?: {
|
|
191
|
+
containerId: string;
|
|
219
192
|
manifestHash: string;
|
|
220
|
-
state: Record<string, unknown>;
|
|
221
193
|
}[] | undefined;
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
manifest: Record<string, unknown>;
|
|
194
|
+
previousManifestRef?: {
|
|
195
|
+
containerId: string;
|
|
225
196
|
manifestHash: string;
|
|
226
|
-
state: Record<string, unknown>;
|
|
227
197
|
} | null | undefined;
|
|
228
198
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
229
199
|
}[] | undefined;
|
|
@@ -262,36 +232,26 @@ export declare const BlobAttachmentBindRequestSchema: z.ZodType<{
|
|
|
262
232
|
predecessorBridge: Record<string, unknown> | null;
|
|
263
233
|
principalPolicies: Record<string, unknown>[];
|
|
264
234
|
wraps: Record<string, unknown>[];
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
manifest: Record<string, unknown>;
|
|
235
|
+
containerManifestHistoryRefs?: {
|
|
236
|
+
containerId: string;
|
|
268
237
|
manifestHash: string;
|
|
269
|
-
state: Record<string, unknown>;
|
|
270
238
|
}[] | undefined;
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
manifest: Record<string, unknown>;
|
|
239
|
+
destinationParentContainerPathRefs?: {
|
|
240
|
+
containerId: string;
|
|
274
241
|
manifestHash: string;
|
|
275
|
-
state: Record<string, unknown>;
|
|
276
242
|
}[] | undefined;
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
manifest: Record<string, unknown>;
|
|
243
|
+
parentContainerPathRefs?: {
|
|
244
|
+
containerId: string;
|
|
280
245
|
manifestHash: string;
|
|
281
|
-
state: Record<string, unknown>;
|
|
282
246
|
}[] | undefined;
|
|
283
247
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
manifest: Record<string, unknown>;
|
|
248
|
+
previousContainerPathRefs?: {
|
|
249
|
+
containerId: string;
|
|
287
250
|
manifestHash: string;
|
|
288
|
-
state: Record<string, unknown>;
|
|
289
251
|
}[] | undefined;
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
manifest: Record<string, unknown>;
|
|
252
|
+
previousManifestRef?: {
|
|
253
|
+
containerId: string;
|
|
293
254
|
manifestHash: string;
|
|
294
|
-
state: Record<string, unknown>;
|
|
295
255
|
} | null | undefined;
|
|
296
256
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
297
257
|
}[] | undefined;
|
|
@@ -330,36 +290,26 @@ export declare const BlobAttachmentBindRequestSchema: z.ZodType<{
|
|
|
330
290
|
predecessorBridge: Record<string, unknown> | null;
|
|
331
291
|
principalPolicies: Record<string, unknown>[];
|
|
332
292
|
wraps: Record<string, unknown>[];
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
manifest: Record<string, unknown>;
|
|
293
|
+
containerManifestHistoryRefs?: {
|
|
294
|
+
containerId: string;
|
|
336
295
|
manifestHash: string;
|
|
337
|
-
state: Record<string, unknown>;
|
|
338
296
|
}[] | undefined;
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
manifest: Record<string, unknown>;
|
|
297
|
+
destinationParentContainerPathRefs?: {
|
|
298
|
+
containerId: string;
|
|
342
299
|
manifestHash: string;
|
|
343
|
-
state: Record<string, unknown>;
|
|
344
300
|
}[] | undefined;
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
manifest: Record<string, unknown>;
|
|
301
|
+
parentContainerPathRefs?: {
|
|
302
|
+
containerId: string;
|
|
348
303
|
manifestHash: string;
|
|
349
|
-
state: Record<string, unknown>;
|
|
350
304
|
}[] | undefined;
|
|
351
305
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
manifest: Record<string, unknown>;
|
|
306
|
+
previousContainerPathRefs?: {
|
|
307
|
+
containerId: string;
|
|
355
308
|
manifestHash: string;
|
|
356
|
-
state: Record<string, unknown>;
|
|
357
309
|
}[] | undefined;
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
manifest: Record<string, unknown>;
|
|
310
|
+
previousManifestRef?: {
|
|
311
|
+
containerId: string;
|
|
361
312
|
manifestHash: string;
|
|
362
|
-
state: Record<string, unknown>;
|
|
363
313
|
} | null | undefined;
|
|
364
314
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
365
315
|
}[] | undefined;
|
|
@@ -398,36 +348,26 @@ export declare const BlobAttachmentBindRequestSchema: z.ZodType<{
|
|
|
398
348
|
predecessorBridge: Record<string, unknown> | null;
|
|
399
349
|
principalPolicies: Record<string, unknown>[];
|
|
400
350
|
wraps: Record<string, unknown>[];
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
manifest: Record<string, unknown>;
|
|
351
|
+
containerManifestHistoryRefs?: {
|
|
352
|
+
containerId: string;
|
|
404
353
|
manifestHash: string;
|
|
405
|
-
state: Record<string, unknown>;
|
|
406
354
|
}[] | undefined;
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
manifest: Record<string, unknown>;
|
|
355
|
+
destinationParentContainerPathRefs?: {
|
|
356
|
+
containerId: string;
|
|
410
357
|
manifestHash: string;
|
|
411
|
-
state: Record<string, unknown>;
|
|
412
358
|
}[] | undefined;
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
manifest: Record<string, unknown>;
|
|
359
|
+
parentContainerPathRefs?: {
|
|
360
|
+
containerId: string;
|
|
416
361
|
manifestHash: string;
|
|
417
|
-
state: Record<string, unknown>;
|
|
418
362
|
}[] | undefined;
|
|
419
363
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
manifest: Record<string, unknown>;
|
|
364
|
+
previousContainerPathRefs?: {
|
|
365
|
+
containerId: string;
|
|
423
366
|
manifestHash: string;
|
|
424
|
-
state: Record<string, unknown>;
|
|
425
367
|
}[] | undefined;
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
manifest: Record<string, unknown>;
|
|
368
|
+
previousManifestRef?: {
|
|
369
|
+
containerId: string;
|
|
429
370
|
manifestHash: string;
|
|
430
|
-
state: Record<string, unknown>;
|
|
431
371
|
} | null | undefined;
|
|
432
372
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
433
373
|
}[] | undefined;
|
|
@@ -454,36 +394,26 @@ export declare const BlobAttachmentDetachRequestSchema: z.ZodType<{
|
|
|
454
394
|
predecessorBridge: Record<string, unknown> | null;
|
|
455
395
|
principalPolicies: Record<string, unknown>[];
|
|
456
396
|
wraps: Record<string, unknown>[];
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
manifest: Record<string, unknown>;
|
|
397
|
+
containerManifestHistoryRefs?: {
|
|
398
|
+
containerId: string;
|
|
460
399
|
manifestHash: string;
|
|
461
|
-
state: Record<string, unknown>;
|
|
462
400
|
}[] | undefined;
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
manifest: Record<string, unknown>;
|
|
401
|
+
destinationParentContainerPathRefs?: {
|
|
402
|
+
containerId: string;
|
|
466
403
|
manifestHash: string;
|
|
467
|
-
state: Record<string, unknown>;
|
|
468
404
|
}[] | undefined;
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
manifest: Record<string, unknown>;
|
|
405
|
+
parentContainerPathRefs?: {
|
|
406
|
+
containerId: string;
|
|
472
407
|
manifestHash: string;
|
|
473
|
-
state: Record<string, unknown>;
|
|
474
408
|
}[] | undefined;
|
|
475
409
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
manifest: Record<string, unknown>;
|
|
410
|
+
previousContainerPathRefs?: {
|
|
411
|
+
containerId: string;
|
|
479
412
|
manifestHash: string;
|
|
480
|
-
state: Record<string, unknown>;
|
|
481
413
|
}[] | undefined;
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
manifest: Record<string, unknown>;
|
|
414
|
+
previousManifestRef?: {
|
|
415
|
+
containerId: string;
|
|
485
416
|
manifestHash: string;
|
|
486
|
-
state: Record<string, unknown>;
|
|
487
417
|
} | null | undefined;
|
|
488
418
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
489
419
|
}[] | undefined;
|
|
@@ -504,36 +434,26 @@ export declare const BlobAttachmentDetachRequestSchema: z.ZodType<{
|
|
|
504
434
|
predecessorBridge: Record<string, unknown> | null;
|
|
505
435
|
principalPolicies: Record<string, unknown>[];
|
|
506
436
|
wraps: Record<string, unknown>[];
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
manifest: Record<string, unknown>;
|
|
437
|
+
containerManifestHistoryRefs?: {
|
|
438
|
+
containerId: string;
|
|
510
439
|
manifestHash: string;
|
|
511
|
-
state: Record<string, unknown>;
|
|
512
440
|
}[] | undefined;
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
manifest: Record<string, unknown>;
|
|
441
|
+
destinationParentContainerPathRefs?: {
|
|
442
|
+
containerId: string;
|
|
516
443
|
manifestHash: string;
|
|
517
|
-
state: Record<string, unknown>;
|
|
518
444
|
}[] | undefined;
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
manifest: Record<string, unknown>;
|
|
445
|
+
parentContainerPathRefs?: {
|
|
446
|
+
containerId: string;
|
|
522
447
|
manifestHash: string;
|
|
523
|
-
state: Record<string, unknown>;
|
|
524
448
|
}[] | undefined;
|
|
525
449
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
manifest: Record<string, unknown>;
|
|
450
|
+
previousContainerPathRefs?: {
|
|
451
|
+
containerId: string;
|
|
529
452
|
manifestHash: string;
|
|
530
|
-
state: Record<string, unknown>;
|
|
531
453
|
}[] | undefined;
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
manifest: Record<string, unknown>;
|
|
454
|
+
previousManifestRef?: {
|
|
455
|
+
containerId: string;
|
|
535
456
|
manifestHash: string;
|
|
536
|
-
state: Record<string, unknown>;
|
|
537
457
|
} | null | undefined;
|
|
538
458
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
539
459
|
}[] | undefined;
|
|
@@ -554,36 +474,26 @@ export declare const BlobAttachmentDetachRequestSchema: z.ZodType<{
|
|
|
554
474
|
predecessorBridge: Record<string, unknown> | null;
|
|
555
475
|
principalPolicies: Record<string, unknown>[];
|
|
556
476
|
wraps: Record<string, unknown>[];
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
manifest: Record<string, unknown>;
|
|
477
|
+
containerManifestHistoryRefs?: {
|
|
478
|
+
containerId: string;
|
|
560
479
|
manifestHash: string;
|
|
561
|
-
state: Record<string, unknown>;
|
|
562
480
|
}[] | undefined;
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
manifest: Record<string, unknown>;
|
|
481
|
+
destinationParentContainerPathRefs?: {
|
|
482
|
+
containerId: string;
|
|
566
483
|
manifestHash: string;
|
|
567
|
-
state: Record<string, unknown>;
|
|
568
484
|
}[] | undefined;
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
manifest: Record<string, unknown>;
|
|
485
|
+
parentContainerPathRefs?: {
|
|
486
|
+
containerId: string;
|
|
572
487
|
manifestHash: string;
|
|
573
|
-
state: Record<string, unknown>;
|
|
574
488
|
}[] | undefined;
|
|
575
489
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
manifest: Record<string, unknown>;
|
|
490
|
+
previousContainerPathRefs?: {
|
|
491
|
+
containerId: string;
|
|
579
492
|
manifestHash: string;
|
|
580
|
-
state: Record<string, unknown>;
|
|
581
493
|
}[] | undefined;
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
manifest: Record<string, unknown>;
|
|
494
|
+
previousManifestRef?: {
|
|
495
|
+
containerId: string;
|
|
585
496
|
manifestHash: string;
|
|
586
|
-
state: Record<string, unknown>;
|
|
587
497
|
} | null | undefined;
|
|
588
498
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
589
499
|
}[] | undefined;
|
|
@@ -604,42 +514,31 @@ export declare const BlobAttachmentDetachRequestSchema: z.ZodType<{
|
|
|
604
514
|
predecessorBridge: Record<string, unknown> | null;
|
|
605
515
|
principalPolicies: Record<string, unknown>[];
|
|
606
516
|
wraps: Record<string, unknown>[];
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
manifest: Record<string, unknown>;
|
|
517
|
+
containerManifestHistoryRefs?: {
|
|
518
|
+
containerId: string;
|
|
610
519
|
manifestHash: string;
|
|
611
|
-
state: Record<string, unknown>;
|
|
612
520
|
}[] | undefined;
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
manifest: Record<string, unknown>;
|
|
521
|
+
destinationParentContainerPathRefs?: {
|
|
522
|
+
containerId: string;
|
|
616
523
|
manifestHash: string;
|
|
617
|
-
state: Record<string, unknown>;
|
|
618
524
|
}[] | undefined;
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
manifest: Record<string, unknown>;
|
|
525
|
+
parentContainerPathRefs?: {
|
|
526
|
+
containerId: string;
|
|
622
527
|
manifestHash: string;
|
|
623
|
-
state: Record<string, unknown>;
|
|
624
528
|
}[] | undefined;
|
|
625
529
|
parentKekState?: Record<string, unknown> | null | undefined;
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
manifest: Record<string, unknown>;
|
|
530
|
+
previousContainerPathRefs?: {
|
|
531
|
+
containerId: string;
|
|
629
532
|
manifestHash: string;
|
|
630
|
-
state: Record<string, unknown>;
|
|
631
533
|
}[] | undefined;
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
manifest: Record<string, unknown>;
|
|
534
|
+
previousManifestRef?: {
|
|
535
|
+
containerId: string;
|
|
635
536
|
manifestHash: string;
|
|
636
|
-
state: Record<string, unknown>;
|
|
637
537
|
} | null | undefined;
|
|
638
538
|
userRecipientKeys?: Record<string, unknown>[] | undefined;
|
|
639
539
|
}[] | undefined;
|
|
640
540
|
}>>;
|
|
641
541
|
export type BlobAttachmentDetachRequest = z.infer<typeof BlobAttachmentDetachRequestSchema>;
|
|
642
542
|
export declare function isInitiateMultipartBlobStageRequest(value: unknown): value is InitiateMultipartBlobStageRequest;
|
|
643
|
-
export declare function isCompleteMultipartBlobStageRequest(value: unknown): value is CompleteMultipartBlobStageRequest;
|
|
644
543
|
export declare function isBlobAttachmentBindRequest(value: unknown): value is BlobAttachmentBindRequest;
|
|
645
544
|
export declare function isBlobAttachmentDetachRequest(value: unknown): value is BlobAttachmentDetachRequest;
|
|
@@ -1,21 +1,17 @@
|
|
|
1
|
-
import { arraySchema,
|
|
2
|
-
import { MAX_INLINE_CONTAINER_REKEYS } from "../util/index.js";
|
|
1
|
+
import { arraySchema, boundedNonEmptyArraySchema, loosePlainObject, nonEmptyStringSchema, plainObjectSchema, positiveIntegerSchema, requiredUnknownSchema, uuidV4StringSchema, } from "../schema.js";
|
|
2
|
+
import { MAX_INITIATE_PART_UPLOADS, MAX_INLINE_CONTAINER_REKEYS, } from "../util/index.js";
|
|
3
|
+
import { MultipartBlobPartDescriptorSchema } from "../util/blobTransferSchemas.js";
|
|
3
4
|
import { ContainerMutationRequestSchema } from "./container.js";
|
|
4
5
|
import { ContentKeyWrappedKeySchema, contentKeyWrappingMetadataSchema, } from "./contentKeyEnvelopeSchema.js";
|
|
5
6
|
import { ContainerManifestRefArrayArraySchema } from "./document.js";
|
|
6
7
|
export const InitiateMultipartBlobStageRequestSchema = loosePlainObject({
|
|
7
8
|
organizationId: uuidV4StringSchema,
|
|
8
9
|
byteLength: positiveIntegerSchema,
|
|
10
|
+
// The parts the client sends first, so the stage response can carry their
|
|
11
|
+
// upload sources and spare one authorization request per part.
|
|
12
|
+
firstParts: boundedNonEmptyArraySchema(MultipartBlobPartDescriptorSchema, MAX_INITIATE_PART_UPLOADS),
|
|
9
13
|
sha256: nonEmptyStringSchema,
|
|
10
14
|
});
|
|
11
|
-
export const MultipartBlobPartCommitRequestSchema = loosePlainObject({
|
|
12
|
-
etag: nonEmptyStringSchema,
|
|
13
|
-
partNumber: positiveIntegerSchema,
|
|
14
|
-
});
|
|
15
|
-
export const CompleteMultipartBlobStageRequestSchema = loosePlainObject({
|
|
16
|
-
parts: nonEmptyArraySchema(MultipartBlobPartCommitRequestSchema),
|
|
17
|
-
uploadId: nonEmptyStringSchema,
|
|
18
|
-
});
|
|
19
15
|
export const BlobContentKeyTargetEnvelopeRequestSchema = loosePlainObject({
|
|
20
16
|
bindingId: nonEmptyStringSchema,
|
|
21
17
|
containerId: nonEmptyStringSchema,
|
|
@@ -56,9 +52,6 @@ export const BlobAttachmentDetachRequestSchema = loosePlainObject({
|
|
|
56
52
|
export function isInitiateMultipartBlobStageRequest(value) {
|
|
57
53
|
return InitiateMultipartBlobStageRequestSchema.safeParse(value).success;
|
|
58
54
|
}
|
|
59
|
-
export function isCompleteMultipartBlobStageRequest(value) {
|
|
60
|
-
return CompleteMultipartBlobStageRequestSchema.safeParse(value).success;
|
|
61
|
-
}
|
|
62
55
|
export function isBlobAttachmentBindRequest(value) {
|
|
63
56
|
return BlobAttachmentBindRequestSchema.safeParse(value).success;
|
|
64
57
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"blob.js","sourceRoot":"","sources":["blob.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,
|
|
1
|
+
{"version":3,"file":"blob.js","sourceRoot":"","sources":["blob.ts"],"names":[],"mappings":"AACA,OAAO,EACL,WAAW,EACX,0BAA0B,EAC1B,gBAAgB,EAChB,oBAAoB,EACpB,iBAAiB,EACjB,qBAAqB,EACrB,qBAAqB,EACrB,kBAAkB,GACnB,MAAM,WAAW,CAAC;AACnB,OAAO,EACL,yBAAyB,EACzB,2BAA2B,GAC5B,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,iCAAiC,EAAE,MAAM,6BAA6B,CAAC;AAChF,OAAO,EAAE,8BAA8B,EAAE,MAAM,aAAa,CAAC;AAC7D,OAAO,EACL,0BAA0B,EAC1B,gCAAgC,GACjC,MAAM,4BAA4B,CAAC;AACpC,OAAO,EAAE,oCAAoC,EAAE,MAAM,YAAY,CAAC;AAElE,MAAM,CAAC,MAAM,uCAAuC,GAAG,gBAAgB,CAAC;IACtE,cAAc,EAAE,kBAAkB;IAClC,UAAU,EAAE,qBAAqB;IACjC,0EAA0E;IAC1E,+DAA+D;IAC/D,UAAU,EAAE,0BAA0B,CACpC,iCAAiC,EACjC,yBAAyB,CAC1B;IACD,MAAM,EAAE,oBAAoB;CAC7B,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,yCAAyC,GAAG,gBAAgB,CAAC;IACxE,SAAS,EAAE,oBAAoB;IAC/B,WAAW,EAAE,oBAAoB;IACjC,iBAAiB,EAAE,qBAAqB;IACxC,mBAAmB,EAAE,oBAAoB;IACzC,qBAAqB,EAAE,oBAAoB;IAC3C,UAAU,EAAE,oBAAoB;IAChC,UAAU,EAAE,0BAA0B;IACtC,gBAAgB,EAAE,gCAAgC,CAAC,MAAM,CAAC;CAC3D,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,eAAe,EAAE,qBAAqB;IACtC,UAAU,EAAE,oBAAoB;IAChC,OAAO,EAAE,WAAW,CAAC,yCAAyC,CAAC;CAChE,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,2BAA2B,GAAG,gBAAgB,CAAC;IAC1D,OAAO,EAAE,oBAAoB;IAC7B,WAAW,EAAE,iBAAiB;CAC/B,CAAC,CAAC;AAIH,MAAM,6BAA6B,GAAG,WAAW,CAC/C,8BAA8B,EAC9B,2BAA2B,CAC5B,CAAC,QAAQ,EAAE,CAAC;AAEb,MAAM,CAAC,MAAM,+BAA+B,GAAG,gBAAgB,CAAC;IAC9D,wEAAwE;IACxE,yEAAyE;IACzE,2DAA2D;IAC3D,4BAA4B,EAAE,oCAAoC;IAClE,IAAI,EAAE,qBAAqB;IAC3B,eAAe,EAAE,6BAA6B;IAC9C,gBAAgB,EAAE,iCAAiC;IACnD,KAAK,EAAE,iBAAiB;IACxB,UAAU,EAAE,2BAA2B,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC;AAMH,MAAM,CAAC,MAAM,iCAAiC,GAAG,gBAAgB,CAAC;IAChE,4BAA4B,EAAE,oCAAoC;IAClE,IAAI,EAAE,qBAAqB;IAC3B,eAAe,EAAE,6BAA6B;IAC9C,KAAK,EAAE,iBAAiB;CACzB,CAAC,CAAC;AAMH,MAAM,UAAU,mCAAmC,CACjD,KAAc;IAEd,OAAO,uCAAuC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAC1E,CAAC;AAED,MAAM,UAAU,2BAA2B,CACzC,KAAc;IAEd,OAAO,+BAA+B,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AAClE,CAAC;AAED,MAAM,UAAU,6BAA6B,CAC3C,KAAc;IAEd,OAAO,iCAAiC,CAAC,SAAS,CAAC,KAAK,CAAC,CAAC,OAAO,CAAC;AACpE,CAAC","sourcesContent":["import type { z } from \"zod\";\nimport {\n arraySchema,\n boundedNonEmptyArraySchema,\n loosePlainObject,\n nonEmptyStringSchema,\n plainObjectSchema,\n positiveIntegerSchema,\n requiredUnknownSchema,\n uuidV4StringSchema,\n} from \"../schema\";\nimport {\n MAX_INITIATE_PART_UPLOADS,\n MAX_INLINE_CONTAINER_REKEYS,\n} from \"../util\";\nimport { MultipartBlobPartDescriptorSchema } from \"../util/blobTransferSchemas\";\nimport { ContainerMutationRequestSchema } from \"./container\";\nimport {\n ContentKeyWrappedKeySchema,\n contentKeyWrappingMetadataSchema,\n} from \"./contentKeyEnvelopeSchema\";\nimport { ContainerManifestRefArrayArraySchema } from \"./document\";\n\nexport const InitiateMultipartBlobStageRequestSchema = loosePlainObject({\n organizationId: uuidV4StringSchema,\n byteLength: positiveIntegerSchema,\n // The parts the client sends first, so the stage response can carry their\n // upload sources and spare one authorization request per part.\n firstParts: boundedNonEmptyArraySchema(\n MultipartBlobPartDescriptorSchema,\n MAX_INITIATE_PART_UPLOADS,\n ),\n sha256: nonEmptyStringSchema,\n});\n\nexport type InitiateMultipartBlobStageRequest = z.infer<\n typeof InitiateMultipartBlobStageRequestSchema\n>;\n\nexport const BlobContentKeyTargetEnvelopeRequestSchema = loosePlainObject({\n bindingId: nonEmptyStringSchema,\n containerId: nonEmptyStringSchema,\n containerKeyEpoch: positiveIntegerSchema,\n containerKeyEpochId: nonEmptyStringSchema,\n containerManifestHash: nonEmptyStringSchema,\n documentId: nonEmptyStringSchema,\n wrappedKey: ContentKeyWrappedKeySchema,\n wrappingMetadata: contentKeyWrappingMetadataSchema(\"blob\"),\n});\n\nexport type BlobContentKeyTargetEnvelopeRequest = z.infer<\n typeof BlobContentKeyTargetEnvelopeRequestSchema\n>;\n\nexport const BlobContentKeyBundleRequestSchema = loosePlainObject({\n contentKeyEpoch: positiveIntegerSchema,\n targetHash: nonEmptyStringSchema,\n targets: arraySchema(BlobContentKeyTargetEnvelopeRequestSchema),\n});\n\nexport type BlobContentKeyBundleRequest = z.infer<\n typeof BlobContentKeyBundleRequestSchema\n>;\n\nexport const BlobStagedBlobRequestSchema = loosePlainObject({\n stageId: nonEmptyStringSchema,\n writeHeader: plainObjectSchema,\n});\n\nexport type BlobStagedBlobRequest = z.infer<typeof BlobStagedBlobRequestSchema>;\n\nconst OptionalContainerRekeysSchema = arraySchema(\n ContainerMutationRequestSchema,\n MAX_INLINE_CONTAINER_REKEYS,\n).optional();\n\nexport const BlobAttachmentBindRequestSchema = loosePlainObject({\n // The attachment's document link-set manifest is the document's current\n // head. The server resolves it from its own store, while these path refs\n // authorize the write against current container manifests.\n authorizingContainerPathRefs: ContainerManifestRefArrayArraySchema,\n body: requiredUnknownSchema,\n containerRekeys: OptionalContainerRekeysSchema,\n contentKeyBundle: BlobContentKeyBundleRequestSchema,\n event: plainObjectSchema,\n stagedBlob: BlobStagedBlobRequestSchema.optional(),\n});\n\nexport type BlobAttachmentBindRequest = z.infer<\n typeof BlobAttachmentBindRequestSchema\n>;\n\nexport const BlobAttachmentDetachRequestSchema = loosePlainObject({\n authorizingContainerPathRefs: ContainerManifestRefArrayArraySchema,\n body: requiredUnknownSchema,\n containerRekeys: OptionalContainerRekeysSchema,\n event: plainObjectSchema,\n});\n\nexport type BlobAttachmentDetachRequest = z.infer<\n typeof BlobAttachmentDetachRequestSchema\n>;\n\nexport function isInitiateMultipartBlobStageRequest(\n value: unknown,\n): value is InitiateMultipartBlobStageRequest {\n return InitiateMultipartBlobStageRequestSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentBindRequest(\n value: unknown,\n): value is BlobAttachmentBindRequest {\n return BlobAttachmentBindRequestSchema.safeParse(value).success;\n}\n\nexport function isBlobAttachmentDetachRequest(\n value: unknown,\n): value is BlobAttachmentDetachRequest {\n return BlobAttachmentDetachRequestSchema.safeParse(value).success;\n}\n"]}
|