@marinoscar/platform-contract 0.1.0-next.22 → 0.1.0-next.24
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/CHANGELOG.md +9 -0
- package/dist/cjs/notifications/constants.d.ts +12 -0
- package/dist/cjs/notifications/constants.d.ts.map +1 -1
- package/dist/cjs/notifications/constants.js +7 -1
- package/dist/cjs/notifications/constants.js.map +1 -1
- package/dist/cjs/notifications/index.d.ts +3 -3
- package/dist/cjs/notifications/index.d.ts.map +1 -1
- package/dist/cjs/notifications/index.js +3 -2
- package/dist/cjs/notifications/index.js.map +1 -1
- package/dist/cjs/notifications/schemas.d.ts +17 -1
- package/dist/cjs/notifications/schemas.d.ts.map +1 -1
- package/dist/cjs/notifications/schemas.js +24 -0
- package/dist/cjs/notifications/schemas.js.map +1 -1
- package/dist/cjs/storage/index.d.ts +2 -2
- package/dist/cjs/storage/index.d.ts.map +1 -1
- package/dist/cjs/storage/index.js +8 -1
- package/dist/cjs/storage/index.js.map +1 -1
- package/dist/cjs/storage/objects-init-upload.d.ts +115 -2
- package/dist/cjs/storage/objects-init-upload.d.ts.map +1 -1
- package/dist/cjs/storage/objects-init-upload.js +98 -9
- package/dist/cjs/storage/objects-init-upload.js.map +1 -1
- package/dist/cjs/storage/objects-object-response.js +1 -1
- package/dist/cjs/storage/objects-object-response.js.map +1 -1
- package/dist/cjs/telemetry/stack.d.ts +2 -2
- package/dist/esm/notifications/constants.d.ts +12 -0
- package/dist/esm/notifications/constants.d.ts.map +1 -1
- package/dist/esm/notifications/constants.js +6 -0
- package/dist/esm/notifications/constants.js.map +1 -1
- package/dist/esm/notifications/index.d.ts +3 -3
- package/dist/esm/notifications/index.d.ts.map +1 -1
- package/dist/esm/notifications/index.js +1 -1
- package/dist/esm/notifications/index.js.map +1 -1
- package/dist/esm/notifications/schemas.d.ts +17 -1
- package/dist/esm/notifications/schemas.d.ts.map +1 -1
- package/dist/esm/notifications/schemas.js +25 -1
- package/dist/esm/notifications/schemas.js.map +1 -1
- package/dist/esm/storage/index.d.ts +2 -2
- package/dist/esm/storage/index.d.ts.map +1 -1
- package/dist/esm/storage/index.js +1 -1
- package/dist/esm/storage/index.js.map +1 -1
- package/dist/esm/storage/objects-init-upload.d.ts +115 -2
- package/dist/esm/storage/objects-init-upload.d.ts.map +1 -1
- package/dist/esm/storage/objects-init-upload.js +97 -8
- package/dist/esm/storage/objects-init-upload.js.map +1 -1
- package/dist/esm/storage/objects-object-response.js +1 -1
- package/dist/esm/storage/objects-object-response.js.map +1 -1
- package/dist/esm/telemetry/stack.d.ts +2 -2
- package/package.json +1 -1
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import type { StorageEnum } from './constants.js';
|
|
2
3
|
/**
|
|
3
4
|
* The `POST /api/storage/objects/upload/init` body: the file name, size and media type.
|
|
4
5
|
*
|
|
@@ -16,7 +17,118 @@ export declare const initUploadSchema: z.ZodObject<{
|
|
|
16
17
|
*/
|
|
17
18
|
export type InitUploadDto = z.infer<typeof initUploadSchema>;
|
|
18
19
|
/**
|
|
19
|
-
*
|
|
20
|
+
* How a client authenticates the PUT of one multipart part.
|
|
21
|
+
*
|
|
22
|
+
* - `none`: the URL is a presigned provider URL (S3, R2). PUT the bytes with NO
|
|
23
|
+
* `Authorization` header.
|
|
24
|
+
* - `bearer`: the URL is this API's own part route
|
|
25
|
+
* (`PUT /api/storage/objects/:id/upload/parts/:partNumber`), served for a
|
|
26
|
+
* driver with no presigned URLs. PUT the raw bytes with the caller's
|
|
27
|
+
* `Authorization: Bearer` credential.
|
|
28
|
+
*
|
|
29
|
+
* @stability experimental
|
|
30
|
+
*/
|
|
31
|
+
export declare const PART_UPLOAD_AUTH_MODES: readonly ["none", "bearer"];
|
|
32
|
+
/**
|
|
33
|
+
* One of {@link PART_UPLOAD_AUTH_MODES}.
|
|
34
|
+
*
|
|
35
|
+
* @stability experimental
|
|
36
|
+
*/
|
|
37
|
+
export type PartUploadAuth = (typeof PART_UPLOAD_AUTH_MODES)[number];
|
|
38
|
+
/**
|
|
39
|
+
* The most part URLs `init` returns; ask for more with `POST :id/upload/part-urls`.
|
|
40
|
+
*
|
|
41
|
+
* @stability experimental
|
|
42
|
+
*/
|
|
43
|
+
export declare const INIT_UPLOAD_PART_URL_BATCH = 10;
|
|
44
|
+
/**
|
|
45
|
+
* The most part numbers one `POST :id/upload/part-urls` call may ask for.
|
|
46
|
+
*
|
|
47
|
+
* @stability experimental
|
|
48
|
+
*/
|
|
49
|
+
export declare const PART_URLS_MAX_PER_CALL = 100;
|
|
50
|
+
/**
|
|
51
|
+
* One part and the URL to PUT it to: a presigned provider URL when the
|
|
52
|
+
* upload's `partUploadAuth` is `none`, this API's part route (a same-origin
|
|
53
|
+
* absolute URL, or a root-relative path when the deployment has no public
|
|
54
|
+
* origin) when it is `bearer`.
|
|
55
|
+
*
|
|
56
|
+
* @stability experimental
|
|
57
|
+
*/
|
|
58
|
+
export declare const partUrlSchema: z.ZodObject<{
|
|
59
|
+
partNumber: z.ZodNumber;
|
|
60
|
+
url: z.ZodString;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
/**
|
|
63
|
+
* The `POST /api/storage/objects/:id/upload/part-urls` body: the part numbers to mint URLs for (1 to 100).
|
|
64
|
+
*
|
|
65
|
+
* @stability experimental
|
|
66
|
+
*/
|
|
67
|
+
export declare const getPartUrlsSchema: z.ZodObject<{
|
|
68
|
+
partNumbers: z.ZodArray<z.ZodNumber>;
|
|
69
|
+
}, z.core.$strip>;
|
|
70
|
+
/**
|
|
71
|
+
* The part-urls body, inferred.
|
|
72
|
+
*
|
|
73
|
+
* @stability experimental
|
|
74
|
+
*/
|
|
75
|
+
export type GetPartUrlsDto = z.infer<typeof getPartUrlsSchema>;
|
|
76
|
+
/**
|
|
77
|
+
* The `POST /api/storage/objects/:id/upload/part-urls` payload: the URLs and how to authenticate the PUT to them.
|
|
78
|
+
*
|
|
79
|
+
* @stability experimental
|
|
80
|
+
*/
|
|
81
|
+
export declare const getPartUrlsResponseSchema: z.ZodObject<{
|
|
82
|
+
presignedUrls: z.ZodArray<z.ZodObject<{
|
|
83
|
+
partNumber: z.ZodNumber;
|
|
84
|
+
url: z.ZodString;
|
|
85
|
+
}, z.core.$strip>>;
|
|
86
|
+
partUploadAuth: z.ZodEnum<StorageEnum<readonly ["none", "bearer"]>>;
|
|
87
|
+
}, z.core.$strip>;
|
|
88
|
+
/**
|
|
89
|
+
* The part-urls payload, inferred.
|
|
90
|
+
*
|
|
91
|
+
* @stability experimental
|
|
92
|
+
*/
|
|
93
|
+
export type GetPartUrlsResponse = z.infer<typeof getPartUrlsResponseSchema>;
|
|
94
|
+
/**
|
|
95
|
+
* The `details.reason` values the multipart routes answer with. The envelope's
|
|
96
|
+
* `code` follows the HTTP status; a client keys its recovery on the reason:
|
|
97
|
+
*
|
|
98
|
+
* - `UPLOAD_NOT_ACTIVE` (400): the object is not an upload in progress.
|
|
99
|
+
* - `PART_OUT_OF_RANGE` (400): the part number is outside `1..totalParts`.
|
|
100
|
+
* - `PART_SIZE_MISMATCH` (400): the body is not the exact size the part must be.
|
|
101
|
+
* - `RAW_BODY_REQUIRED` (415): the part was not sent as raw bytes (the app did not call `registerStoragePartBodyParser`, or the content type was JSON/text).
|
|
102
|
+
* - `PRESIGNED_PARTS_REQUIRED` (400): this upload's driver takes presigned URLs, not API parts.
|
|
103
|
+
* - `UPLOAD_PARTS_MISSING` (409): `complete` found parts the backend does not hold (`details.partNumbers`: re-send those, then complete again).
|
|
104
|
+
* - `UPLOAD_SESSION_INVALID` (409): the backend no longer knows the multipart session; abort and re-initialise.
|
|
105
|
+
*
|
|
106
|
+
* @stability experimental
|
|
107
|
+
*/
|
|
108
|
+
export declare const UPLOAD_ERROR_REASONS: {
|
|
109
|
+
/** The object is not an upload in progress (400). */
|
|
110
|
+
readonly UPLOAD_NOT_ACTIVE: "UPLOAD_NOT_ACTIVE";
|
|
111
|
+
/** The part number is outside 1..totalParts (400). */
|
|
112
|
+
readonly PART_OUT_OF_RANGE: "PART_OUT_OF_RANGE";
|
|
113
|
+
/** The body is not the exact size the part must be (400). */
|
|
114
|
+
readonly PART_SIZE_MISMATCH: "PART_SIZE_MISMATCH";
|
|
115
|
+
/** The upload takes presigned URLs, not API parts (400). */
|
|
116
|
+
readonly PRESIGNED_PARTS_REQUIRED: "PRESIGNED_PARTS_REQUIRED";
|
|
117
|
+
/** The part was not sent as raw bytes (415). */
|
|
118
|
+
readonly RAW_BODY_REQUIRED: "RAW_BODY_REQUIRED";
|
|
119
|
+
/** complete found parts the backend does not hold (409). */
|
|
120
|
+
readonly UPLOAD_PARTS_MISSING: "UPLOAD_PARTS_MISSING";
|
|
121
|
+
/** The backend lost the multipart session (409). */
|
|
122
|
+
readonly UPLOAD_SESSION_INVALID: "UPLOAD_SESSION_INVALID";
|
|
123
|
+
};
|
|
124
|
+
/**
|
|
125
|
+
* One of the {@link UPLOAD_ERROR_REASONS} values.
|
|
126
|
+
*
|
|
127
|
+
* @stability experimental
|
|
128
|
+
*/
|
|
129
|
+
export type UploadErrorReason = (typeof UPLOAD_ERROR_REASONS)[keyof typeof UPLOAD_ERROR_REASONS];
|
|
130
|
+
/**
|
|
131
|
+
* The init-upload payload: the object id, the provider upload id, the part size, how to upload a part and the first part URLs (at most 10).
|
|
20
132
|
*
|
|
21
133
|
* @stability experimental
|
|
22
134
|
*/
|
|
@@ -27,8 +139,9 @@ export declare const initUploadResponseSchema: z.ZodObject<{
|
|
|
27
139
|
totalParts: z.ZodNumber;
|
|
28
140
|
presignedUrls: z.ZodArray<z.ZodObject<{
|
|
29
141
|
partNumber: z.ZodNumber;
|
|
30
|
-
url: z.
|
|
142
|
+
url: z.ZodString;
|
|
31
143
|
}, z.core.$strip>>;
|
|
144
|
+
partUploadAuth: z.ZodEnum<StorageEnum<readonly ["none", "bearer"]>>;
|
|
32
145
|
}, z.core.$strip>;
|
|
33
146
|
/**
|
|
34
147
|
* The `POST /api/storage/objects/upload/init` payload.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects-init-upload.d.ts","sourceRoot":"","sources":["../../../src/storage/objects-init-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;iBAO3B,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D;;;;GAIG;AACH,eAAO,MAAM,wBAAwB
|
|
1
|
+
{"version":3,"file":"objects-init-upload.d.ts","sourceRoot":"","sources":["../../../src/storage/objects-init-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAElD;;;;GAIG;AACH,eAAO,MAAM,gBAAgB;;;;iBAO3B,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE7D;;;;;;;;;;;GAWG;AACH,eAAO,MAAM,sBAAsB,6BAA8B,CAAC;AAElE;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,OAAO,sBAAsB,CAAC,CAAC,MAAM,CAAC,CAAC;AAErE;;;;GAIG;AACH,eAAO,MAAM,0BAA0B,KAAK,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,sBAAsB,MAAM,CAAC;AAE1C;;;;;;;GAOG;AACH,eAAO,MAAM,aAAa;;;iBAKxB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;;iBAM5B,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE/D;;;;GAIG;AACH,eAAO,MAAM,yBAAyB;;;;;;iBAKpC,CAAC;AAEH;;;;GAIG;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,oBAAoB;IAC/B,qDAAqD;;IAErD,sDAAsD;;IAEtD,6DAA6D;;IAE7D,4DAA4D;;IAE5D,gDAAgD;;IAEhD,4DAA4D;;IAE5D,oDAAoD;;CAE5C,CAAC;AAEX;;;;GAIG;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,OAAO,oBAAoB,CAAC,CAAC,MAAM,OAAO,oBAAoB,CAAC,CAAC;AAEjG;;;;GAIG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;iBAanC,CAAC;AAGH;;;;GAIG;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -13,7 +13,99 @@ export const initUploadSchema = z.object({
|
|
|
13
13
|
mimeType: z.string().min(1),
|
|
14
14
|
});
|
|
15
15
|
/**
|
|
16
|
-
*
|
|
16
|
+
* How a client authenticates the PUT of one multipart part.
|
|
17
|
+
*
|
|
18
|
+
* - `none`: the URL is a presigned provider URL (S3, R2). PUT the bytes with NO
|
|
19
|
+
* `Authorization` header.
|
|
20
|
+
* - `bearer`: the URL is this API's own part route
|
|
21
|
+
* (`PUT /api/storage/objects/:id/upload/parts/:partNumber`), served for a
|
|
22
|
+
* driver with no presigned URLs. PUT the raw bytes with the caller's
|
|
23
|
+
* `Authorization: Bearer` credential.
|
|
24
|
+
*
|
|
25
|
+
* @stability experimental
|
|
26
|
+
*/
|
|
27
|
+
export const PART_UPLOAD_AUTH_MODES = ['none', 'bearer'];
|
|
28
|
+
/**
|
|
29
|
+
* The most part URLs `init` returns; ask for more with `POST :id/upload/part-urls`.
|
|
30
|
+
*
|
|
31
|
+
* @stability experimental
|
|
32
|
+
*/
|
|
33
|
+
export const INIT_UPLOAD_PART_URL_BATCH = 10;
|
|
34
|
+
/**
|
|
35
|
+
* The most part numbers one `POST :id/upload/part-urls` call may ask for.
|
|
36
|
+
*
|
|
37
|
+
* @stability experimental
|
|
38
|
+
*/
|
|
39
|
+
export const PART_URLS_MAX_PER_CALL = 100;
|
|
40
|
+
/**
|
|
41
|
+
* One part and the URL to PUT it to: a presigned provider URL when the
|
|
42
|
+
* upload's `partUploadAuth` is `none`, this API's part route (a same-origin
|
|
43
|
+
* absolute URL, or a root-relative path when the deployment has no public
|
|
44
|
+
* origin) when it is `bearer`.
|
|
45
|
+
*
|
|
46
|
+
* @stability experimental
|
|
47
|
+
*/
|
|
48
|
+
export const partUrlSchema = z.object({
|
|
49
|
+
/** The part number (1-10000). */
|
|
50
|
+
partNumber: z.number().int().positive(),
|
|
51
|
+
/** Where to PUT the part; see `partUploadAuth` for the credential it needs. */
|
|
52
|
+
url: z.string().min(1),
|
|
53
|
+
});
|
|
54
|
+
/**
|
|
55
|
+
* The `POST /api/storage/objects/:id/upload/part-urls` body: the part numbers to mint URLs for (1 to 100).
|
|
56
|
+
*
|
|
57
|
+
* @stability experimental
|
|
58
|
+
*/
|
|
59
|
+
export const getPartUrlsSchema = z.object({
|
|
60
|
+
/** The part numbers to mint URLs for. */
|
|
61
|
+
partNumbers: z
|
|
62
|
+
.array(z.number().int().min(1).max(10_000))
|
|
63
|
+
.min(1)
|
|
64
|
+
.max(PART_URLS_MAX_PER_CALL, `At most ${PART_URLS_MAX_PER_CALL} part URLs can be requested per call`),
|
|
65
|
+
});
|
|
66
|
+
/**
|
|
67
|
+
* The `POST /api/storage/objects/:id/upload/part-urls` payload: the URLs and how to authenticate the PUT to them.
|
|
68
|
+
*
|
|
69
|
+
* @stability experimental
|
|
70
|
+
*/
|
|
71
|
+
export const getPartUrlsResponseSchema = z.object({
|
|
72
|
+
/** One URL per requested part, in the order asked. */
|
|
73
|
+
presignedUrls: z.array(partUrlSchema),
|
|
74
|
+
/** How to authenticate the PUT to each URL. */
|
|
75
|
+
partUploadAuth: z.enum(PART_UPLOAD_AUTH_MODES),
|
|
76
|
+
});
|
|
77
|
+
/**
|
|
78
|
+
* The `details.reason` values the multipart routes answer with. The envelope's
|
|
79
|
+
* `code` follows the HTTP status; a client keys its recovery on the reason:
|
|
80
|
+
*
|
|
81
|
+
* - `UPLOAD_NOT_ACTIVE` (400): the object is not an upload in progress.
|
|
82
|
+
* - `PART_OUT_OF_RANGE` (400): the part number is outside `1..totalParts`.
|
|
83
|
+
* - `PART_SIZE_MISMATCH` (400): the body is not the exact size the part must be.
|
|
84
|
+
* - `RAW_BODY_REQUIRED` (415): the part was not sent as raw bytes (the app did not call `registerStoragePartBodyParser`, or the content type was JSON/text).
|
|
85
|
+
* - `PRESIGNED_PARTS_REQUIRED` (400): this upload's driver takes presigned URLs, not API parts.
|
|
86
|
+
* - `UPLOAD_PARTS_MISSING` (409): `complete` found parts the backend does not hold (`details.partNumbers`: re-send those, then complete again).
|
|
87
|
+
* - `UPLOAD_SESSION_INVALID` (409): the backend no longer knows the multipart session; abort and re-initialise.
|
|
88
|
+
*
|
|
89
|
+
* @stability experimental
|
|
90
|
+
*/
|
|
91
|
+
export const UPLOAD_ERROR_REASONS = {
|
|
92
|
+
/** The object is not an upload in progress (400). */
|
|
93
|
+
UPLOAD_NOT_ACTIVE: 'UPLOAD_NOT_ACTIVE',
|
|
94
|
+
/** The part number is outside 1..totalParts (400). */
|
|
95
|
+
PART_OUT_OF_RANGE: 'PART_OUT_OF_RANGE',
|
|
96
|
+
/** The body is not the exact size the part must be (400). */
|
|
97
|
+
PART_SIZE_MISMATCH: 'PART_SIZE_MISMATCH',
|
|
98
|
+
/** The upload takes presigned URLs, not API parts (400). */
|
|
99
|
+
PRESIGNED_PARTS_REQUIRED: 'PRESIGNED_PARTS_REQUIRED',
|
|
100
|
+
/** The part was not sent as raw bytes (415). */
|
|
101
|
+
RAW_BODY_REQUIRED: 'RAW_BODY_REQUIRED',
|
|
102
|
+
/** complete found parts the backend does not hold (409). */
|
|
103
|
+
UPLOAD_PARTS_MISSING: 'UPLOAD_PARTS_MISSING',
|
|
104
|
+
/** The backend lost the multipart session (409). */
|
|
105
|
+
UPLOAD_SESSION_INVALID: 'UPLOAD_SESSION_INVALID',
|
|
106
|
+
};
|
|
107
|
+
/**
|
|
108
|
+
* The init-upload payload: the object id, the provider upload id, the part size, how to upload a part and the first part URLs (at most 10).
|
|
17
109
|
*
|
|
18
110
|
* @stability experimental
|
|
19
111
|
*/
|
|
@@ -26,12 +118,9 @@ export const initUploadResponseSchema = z.object({
|
|
|
26
118
|
partSize: z.number().int().positive(),
|
|
27
119
|
/** How many parts the upload has. */
|
|
28
120
|
totalParts: z.number().int().positive(),
|
|
29
|
-
/**
|
|
30
|
-
presignedUrls: z.array(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
/** The signed URL; fetch it directly. */
|
|
34
|
-
url: z.url(),
|
|
35
|
-
})),
|
|
121
|
+
/** The first part URLs (at most 10). Upload to them, then call complete; ask for more at `upload/part-urls`. */
|
|
122
|
+
presignedUrls: z.array(partUrlSchema),
|
|
123
|
+
/** How to authenticate the PUT to each URL: `none` (presigned) or `bearer` (this API's part route). */
|
|
124
|
+
partUploadAuth: z.enum(PART_UPLOAD_AUTH_MODES),
|
|
36
125
|
});
|
|
37
126
|
//# sourceMappingURL=objects-init-upload.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects-init-upload.js","sourceRoot":"","sources":["../../../src/storage/objects-init-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"objects-init-upload.js","sourceRoot":"","sources":["../../../src/storage/objects-init-upload.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB;;;;GAIG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAA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STORAGE_OBJECT_STATUSES),
|
|
42
|
-
/** Part numbers already
|
|
42
|
+
/** Part numbers the storage backend already holds (S3 ListParts, or the parts on disk), so a resuming client knows what to skip. */
|
|
43
43
|
uploadedParts: z.array(z.number().int()),
|
|
44
44
|
/** How many parts the upload has. */
|
|
45
45
|
totalParts: z.number().int(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"objects-object-response.js","sourceRoot":"","sources":["../../../src/storage/objects-object-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAoB,MAAM,gBAAgB,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,cAAc;IACd,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACZ,6BAA6B;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,oFAAoF;IACpF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,+BAA+B;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,kBAAkB;IAClB,MAAM,EAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAA4D;IACnG,qCAAqC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,iCAAiC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iDAAiD;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,4BAA4B;IAC5B,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;IAClB,kBAAkB;IAClB,MAAM,EAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAA4D;IACnG,
|
|
1
|
+
{"version":3,"file":"objects-object-response.js","sourceRoot":"","sources":["../../../src/storage/objects-object-response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,uBAAuB,EAAoB,MAAM,gBAAgB,CAAC;AAE3E;;;;;;;;;;GAUG;AACH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC3C,cAAc;IACd,EAAE,EAAE,CAAC,CAAC,IAAI,EAAE;IACZ,6BAA6B;IAC7B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,oFAAoF;IACpF,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,+BAA+B;IAC/B,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,kBAAkB;IAClB,MAAM,EAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAA4D;IACnG,qCAAqC;IACrC,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,iCAAiC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iDAAiD;IACjD,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH;;;;GAIG;AACH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,4BAA4B;IAC5B,QAAQ,EAAE,CAAC,CAAC,IAAI,EAAE;IAClB,kBAAkB;IAClB,MAAM,EAAG,CAAC,CAAC,IAAI,CAAC,uBAAuB,CAA4D;IACnG,oIAAoI;IACpI,aAAa,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IACxC,qCAAqC;IACrC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC5B,0CAA0C;IAC1C,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,mCAAmC;IACnC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC"}
|
|
@@ -8,7 +8,7 @@ import { z } from 'zod';
|
|
|
8
8
|
*/
|
|
9
9
|
export declare const telemetryStackServiceSchema: z.ZodObject<{
|
|
10
10
|
name: z.ZodString;
|
|
11
|
-
state: z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"running" | "
|
|
11
|
+
state: z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"running" | "created" | "missing" | "restarting" | "exited" | "paused" | "dead">>;
|
|
12
12
|
health: z.ZodNullable<z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"healthy" | "unhealthy" | "starting">>>;
|
|
13
13
|
}, z.core.$strip>;
|
|
14
14
|
/**
|
|
@@ -50,7 +50,7 @@ export declare const telemetryStackStatusSchema: z.ZodObject<{
|
|
|
50
50
|
agentError: z.ZodNullable<z.ZodString>;
|
|
51
51
|
services: z.ZodArray<z.ZodObject<{
|
|
52
52
|
name: z.ZodString;
|
|
53
|
-
state: z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"running" | "
|
|
53
|
+
state: z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"running" | "created" | "missing" | "restarting" | "exited" | "paused" | "dead">>;
|
|
54
54
|
health: z.ZodNullable<z.ZodEnum<import("./constants.js").TelemetryEnumEntries<"healthy" | "unhealthy" | "starting">>>;
|
|
55
55
|
}, z.core.$strip>>;
|
|
56
56
|
deploy: z.ZodNullable<z.ZodObject<{
|
package/package.json
CHANGED