@bytescale/sdk 3.34.0 → 3.36.0
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/dist/browser/cjs/main.js +511 -448
- package/dist/browser/esm/main.mjs +513 -449
- package/dist/node/cjs/main.js +488 -431
- package/dist/node/esm/main.mjs +500 -438
- package/dist/types/private/StreamUtils.d.ts +2 -0
- package/dist/types/private/UploadManagerBase.d.ts +3 -3
- package/dist/types/private/UploadManagerBrowserWorkerBase.d.ts +1 -1
- package/dist/types/private/dtos/AuthSwConfigDto.d.ts +1 -1
- package/dist/types/private/model/AddCancellationHandler.d.ts +1 -1
- package/dist/types/private/model/OnPartProgress.d.ts +1 -1
- package/dist/types/private/model/ServiceWorkerConfig.d.ts +1 -1
- package/dist/types/private/model/UploadSourceProcessed.d.ts +4 -4
- package/dist/types/public/node/UploadManagerNode.d.ts +1 -1
- package/dist/types/public/shared/CommonTypes.d.ts +9 -2
- package/dist/types/public/shared/UrlBuilderTypes.d.ts +6 -6
- package/dist/types/public/shared/generated/apis/CacheApi.d.ts +23 -0
- package/dist/types/public/shared/generated/apis/FileApi.d.ts +7 -7
- package/dist/types/public/shared/generated/apis/JobApi.d.ts +1 -1
- package/dist/types/public/shared/generated/apis/UploadApi.d.ts +2 -2
- package/dist/types/public/shared/generated/apis/index.d.ts +1 -0
- package/dist/types/public/shared/generated/models/index.d.ts +139 -43
- package/dist/types/public/shared/generated/runtime.d.ts +8 -8
- package/dist/worker/cjs/main.js +455 -395
- package/dist/worker/esm/main.mjs +457 -396
- package/package.json +11 -12
|
@@ -2,12 +2,12 @@
|
|
|
2
2
|
*
|
|
3
3
|
* @export
|
|
4
4
|
*/
|
|
5
|
-
export
|
|
5
|
+
export type AccountJobStatus = "Created" | "Pending" | "Running" | "Rollback" | "Failed" | "Succeeded" | "Cancelling" | "Cancelled";
|
|
6
6
|
/**
|
|
7
7
|
* Job type.
|
|
8
8
|
* @export
|
|
9
9
|
*/
|
|
10
|
-
export
|
|
10
|
+
export type AccountJobType = "ProcessImageJob" | "ProcessVideoJob" | "ProcessAudioJob" | "AntivirusJob" | "ResetCacheJob" | "DeleteFolderBatchJob" | "DeleteFileBatchJob" | "CopyFolderBatchJob" | "CopyFileBatchJob";
|
|
11
11
|
/**
|
|
12
12
|
* Response body from an API endpoint that performs work asynchronously (i.e. does not complete the work immediately).
|
|
13
13
|
* @export
|
|
@@ -46,12 +46,12 @@ export interface AsyncResponse {
|
|
|
46
46
|
/**
|
|
47
47
|
* @export
|
|
48
48
|
*/
|
|
49
|
-
export
|
|
49
|
+
export type AsyncResponseJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJob";
|
|
50
50
|
/**
|
|
51
51
|
* AWS Region.
|
|
52
52
|
* @export
|
|
53
53
|
*/
|
|
54
|
-
export
|
|
54
|
+
export type AwsRegion = "us-east-2" | "us-east-1" | "us-west-1" | "us-west-2" | "af-south-1" | "ap-east-1" | "ap-south-2" | "ap-southeast-3" | "ap-southeast-4" | "ap-south-1" | "ap-northeast-3" | "ap-northeast-2" | "ap-southeast-1" | "ap-southeast-2" | "ap-northeast-1" | "ca-central-1" | "ca-west-1" | "eu-central-1" | "eu-west-1" | "eu-west-2" | "eu-south-1" | "eu-west-3" | "eu-south-2" | "eu-north-1" | "eu-central-2" | "il-central-1" | "me-south-1" | "me-central-1" | "sa-east-1";
|
|
55
55
|
/**
|
|
56
56
|
* Response body for BasicUpload.
|
|
57
57
|
* @export
|
|
@@ -68,6 +68,12 @@ export interface BasicUploadResponse {
|
|
|
68
68
|
* @memberof BasicUploadResponse
|
|
69
69
|
*/
|
|
70
70
|
accountId: string;
|
|
71
|
+
/**
|
|
72
|
+
* The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
|
|
73
|
+
* @type {string}
|
|
74
|
+
* @memberof BasicUploadResponse
|
|
75
|
+
*/
|
|
76
|
+
etag: string;
|
|
71
77
|
/**
|
|
72
78
|
* Absolute path to a file. Begins with a `/`.
|
|
73
79
|
* @type {string}
|
|
@@ -180,6 +186,52 @@ export interface BeginMultipartUploadResponseUploadParts {
|
|
|
180
186
|
*/
|
|
181
187
|
count: number;
|
|
182
188
|
}
|
|
189
|
+
/**
|
|
190
|
+
* @type CompleteMultipartUploadResponse
|
|
191
|
+
* Response body for CompleteUploadPart.
|
|
192
|
+
* @export
|
|
193
|
+
*/
|
|
194
|
+
export type CompleteMultipartUploadResponse = CompleteMultipartUploadResponseCompleted | CompleteMultipartUploadResponsePending;
|
|
195
|
+
/**
|
|
196
|
+
* Response body for CompleteUploadPart when the final upload part is marked as completed.
|
|
197
|
+
* @export
|
|
198
|
+
* @interface CompleteMultipartUploadResponseCompleted
|
|
199
|
+
*/
|
|
200
|
+
export interface CompleteMultipartUploadResponseCompleted {
|
|
201
|
+
/**
|
|
202
|
+
* The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
|
|
203
|
+
* @type {string}
|
|
204
|
+
* @memberof CompleteMultipartUploadResponseCompleted
|
|
205
|
+
*/
|
|
206
|
+
etag: string;
|
|
207
|
+
/**
|
|
208
|
+
*
|
|
209
|
+
* @type {string}
|
|
210
|
+
* @memberof CompleteMultipartUploadResponseCompleted
|
|
211
|
+
*/
|
|
212
|
+
status: CompleteMultipartUploadResponseCompletedStatusEnum;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @export
|
|
216
|
+
*/
|
|
217
|
+
export type CompleteMultipartUploadResponseCompletedStatusEnum = "Completed";
|
|
218
|
+
/**
|
|
219
|
+
* Response body for CompleteUploadPart when additional upload parts still need to be marked as completed.
|
|
220
|
+
* @export
|
|
221
|
+
* @interface CompleteMultipartUploadResponsePending
|
|
222
|
+
*/
|
|
223
|
+
export interface CompleteMultipartUploadResponsePending {
|
|
224
|
+
/**
|
|
225
|
+
*
|
|
226
|
+
* @type {string}
|
|
227
|
+
* @memberof CompleteMultipartUploadResponsePending
|
|
228
|
+
*/
|
|
229
|
+
status: CompleteMultipartUploadResponsePendingStatusEnum;
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* @export
|
|
233
|
+
*/
|
|
234
|
+
export type CompleteMultipartUploadResponsePendingStatusEnum = "Pending";
|
|
183
235
|
/**
|
|
184
236
|
* Request body for CompleteUploadPart.
|
|
185
237
|
* @export
|
|
@@ -187,7 +239,7 @@ export interface BeginMultipartUploadResponseUploadParts {
|
|
|
187
239
|
*/
|
|
188
240
|
export interface CompleteUploadPartRequest {
|
|
189
241
|
/**
|
|
190
|
-
* The file's ETag
|
|
242
|
+
* The file's ETag, short for "entity tag", reflects the file's version and changes whenever the file is modified.
|
|
191
243
|
* @type {string}
|
|
192
244
|
* @memberof CompleteUploadPartRequest
|
|
193
245
|
*/
|
|
@@ -291,7 +343,7 @@ export interface CopyFolderRequest {
|
|
|
291
343
|
*/
|
|
292
344
|
copyOverriddenStorage?: boolean;
|
|
293
345
|
/**
|
|
294
|
-
* If `true` then copies virtual
|
|
346
|
+
* If `true` then copies virtual folders at the current path and below, else only files will be copied.
|
|
295
347
|
*
|
|
296
348
|
* Virtual folders are folders that have been created using the PutFolder operation.
|
|
297
349
|
*
|
|
@@ -315,9 +367,9 @@ export interface CopyFolderRequest {
|
|
|
315
367
|
*/
|
|
316
368
|
metadata?: CopyableFileDataFileMetadata;
|
|
317
369
|
/**
|
|
318
|
-
* If `true` then copies files and
|
|
370
|
+
* If `true` then copies files and folders that are descendants of the `source` folder.
|
|
319
371
|
*
|
|
320
|
-
* If `false` then only copies files that are direct children of the `source` folder, and does not copy descendant
|
|
372
|
+
* If `false` then only copies files that are direct children of the `source` folder, and does not copy descendant folders (children or otherwise).
|
|
321
373
|
*
|
|
322
374
|
* Default: true
|
|
323
375
|
* @type {boolean}
|
|
@@ -560,7 +612,7 @@ export interface DigitalOceanStorage {
|
|
|
560
612
|
/**
|
|
561
613
|
* @export
|
|
562
614
|
*/
|
|
563
|
-
export
|
|
615
|
+
export type DigitalOceanStorageTypeEnum = "DigitalOceanSpace";
|
|
564
616
|
/**
|
|
565
617
|
*
|
|
566
618
|
* @export
|
|
@@ -691,7 +743,7 @@ export interface ErrorResponseError {
|
|
|
691
743
|
*
|
|
692
744
|
* @export
|
|
693
745
|
*/
|
|
694
|
-
export
|
|
746
|
+
export type FileCopyStatusCopied = "Copied";
|
|
695
747
|
/**
|
|
696
748
|
* Contains full information about a file, including its file metadata, file tags, original file name, and MIME type.
|
|
697
749
|
* @export
|
|
@@ -795,7 +847,7 @@ export interface FileDownloadGrants {
|
|
|
795
847
|
* The path to upload the file to.
|
|
796
848
|
* @export
|
|
797
849
|
*/
|
|
798
|
-
export
|
|
850
|
+
export type FilePathDefinition = DynamicFilePath | string;
|
|
799
851
|
/**
|
|
800
852
|
* Summary information about a file (a subset of the FileDetails type).
|
|
801
853
|
* @export
|
|
@@ -836,7 +888,7 @@ export interface FileSummary {
|
|
|
836
888
|
/**
|
|
837
889
|
* @export
|
|
838
890
|
*/
|
|
839
|
-
export
|
|
891
|
+
export type FileSummaryTypeEnum = "File";
|
|
840
892
|
/**
|
|
841
893
|
*
|
|
842
894
|
* @export
|
|
@@ -879,7 +931,7 @@ export interface FolderDetails {
|
|
|
879
931
|
/**
|
|
880
932
|
* @export
|
|
881
933
|
*/
|
|
882
|
-
export
|
|
934
|
+
export type FolderDetailsTypeEnum = "Folder";
|
|
883
935
|
/**
|
|
884
936
|
* The FolderSettings inherited by the current path.
|
|
885
937
|
*
|
|
@@ -966,7 +1018,7 @@ export interface FolderSummary {
|
|
|
966
1018
|
/**
|
|
967
1019
|
* @export
|
|
968
1020
|
*/
|
|
969
|
-
export
|
|
1021
|
+
export type FolderSummaryTypeEnum = "Folder";
|
|
970
1022
|
/**
|
|
971
1023
|
* Storage layer used for storing files in Google Storage, as opposed to Bytescale's built-in storage.
|
|
972
1024
|
*
|
|
@@ -1005,7 +1057,7 @@ export interface GoogleStorage {
|
|
|
1005
1057
|
/**
|
|
1006
1058
|
* @export
|
|
1007
1059
|
*/
|
|
1008
|
-
export
|
|
1060
|
+
export type GoogleStorageTypeEnum = "GoogleStorage";
|
|
1009
1061
|
/**
|
|
1010
1062
|
*
|
|
1011
1063
|
* @export
|
|
@@ -1043,7 +1095,7 @@ export interface InternalStorageV1 {
|
|
|
1043
1095
|
/**
|
|
1044
1096
|
* @export
|
|
1045
1097
|
*/
|
|
1046
|
-
export
|
|
1098
|
+
export type InternalStorageV1TypeEnum = "InternalStorageV1";
|
|
1047
1099
|
/**
|
|
1048
1100
|
* Default storage layer used for files uploaded via the Bytescale API V2 (latest version).
|
|
1049
1101
|
*
|
|
@@ -1068,7 +1120,7 @@ export interface InternalStorageV2 {
|
|
|
1068
1120
|
/**
|
|
1069
1121
|
* @export
|
|
1070
1122
|
*/
|
|
1071
|
-
export
|
|
1123
|
+
export type InternalStorageV2TypeEnum = "InternalStorageV2";
|
|
1072
1124
|
/**
|
|
1073
1125
|
* Summary information about an asynchronous background job (for example, a folder deletion).
|
|
1074
1126
|
* @export
|
|
@@ -1149,7 +1201,7 @@ export interface JobSummary {
|
|
|
1149
1201
|
/**
|
|
1150
1202
|
* @export
|
|
1151
1203
|
*/
|
|
1152
|
-
export
|
|
1204
|
+
export type JobSummaryJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJob";
|
|
1153
1205
|
/**
|
|
1154
1206
|
*
|
|
1155
1207
|
* @export
|
|
@@ -1227,13 +1279,13 @@ export interface ListRecentJobsResponse {
|
|
|
1227
1279
|
* - `1.1`: this protocol version uses multipart uploads for all files. When this protocol is used, files only exist after the last CompleteUploadPart request is made. This protocol simplifies client code, and fixes a known issue in the `2.0` protocol for file TTLs (described above).
|
|
1228
1280
|
* @export
|
|
1229
1281
|
*/
|
|
1230
|
-
export
|
|
1282
|
+
export type MultipartUploadProtocol = "1.0" | "1.1";
|
|
1231
1283
|
/**
|
|
1232
1284
|
* @type ObjectSummary
|
|
1233
1285
|
* Summary information about a file or folder.
|
|
1234
1286
|
* @export
|
|
1235
1287
|
*/
|
|
1236
|
-
export
|
|
1288
|
+
export type ObjectSummary = FileSummary | FolderSummary;
|
|
1237
1289
|
/**
|
|
1238
1290
|
* Specifies the folder settings to use when creating or updating a folder.
|
|
1239
1291
|
* @export
|
|
@@ -1269,7 +1321,7 @@ export interface PatchFolderSettings {
|
|
|
1269
1321
|
* - `"Grandchildren+"`: Permissions apply to the grandchildren (files and folders) of this path and their descendants only.
|
|
1270
1322
|
* @export
|
|
1271
1323
|
*/
|
|
1272
|
-
export
|
|
1324
|
+
export type PathPermissionScope = "Children" | "Grandchildren+" | "This";
|
|
1273
1325
|
/**
|
|
1274
1326
|
* From T, pick a set of properties whose keys are in the union K
|
|
1275
1327
|
* @export
|
|
@@ -1300,7 +1352,7 @@ export interface PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentia
|
|
|
1300
1352
|
/**
|
|
1301
1353
|
* @export
|
|
1302
1354
|
*/
|
|
1303
|
-
export
|
|
1355
|
+
export type PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentialsTypeEnum = "DigitalOceanSpace";
|
|
1304
1356
|
/**
|
|
1305
1357
|
*
|
|
1306
1358
|
* @export
|
|
@@ -1356,7 +1408,7 @@ export interface PickGoogleStorageExcludeKeyofGoogleStorageCredentials {
|
|
|
1356
1408
|
/**
|
|
1357
1409
|
* @export
|
|
1358
1410
|
*/
|
|
1359
|
-
export
|
|
1411
|
+
export type PickGoogleStorageExcludeKeyofGoogleStorageCredentialsTypeEnum = "GoogleStorage";
|
|
1360
1412
|
/**
|
|
1361
1413
|
*
|
|
1362
1414
|
* @export
|
|
@@ -1412,7 +1464,7 @@ export interface PickR2StorageExcludeKeyofR2StorageCredentials {
|
|
|
1412
1464
|
/**
|
|
1413
1465
|
* @export
|
|
1414
1466
|
*/
|
|
1415
|
-
export
|
|
1467
|
+
export type PickR2StorageExcludeKeyofR2StorageCredentialsTypeEnum = "R2";
|
|
1416
1468
|
/**
|
|
1417
1469
|
*
|
|
1418
1470
|
* @export
|
|
@@ -1470,7 +1522,7 @@ export interface PickS3StorageExcludeKeyofS3StorageCredentials {
|
|
|
1470
1522
|
/**
|
|
1471
1523
|
* @export
|
|
1472
1524
|
*/
|
|
1473
|
-
export
|
|
1525
|
+
export type PickS3StorageExcludeKeyofS3StorageCredentialsTypeEnum = "S3";
|
|
1474
1526
|
/**
|
|
1475
1527
|
*
|
|
1476
1528
|
* @export
|
|
@@ -1532,7 +1584,7 @@ export interface ProcessFileAndSaveRequest {
|
|
|
1532
1584
|
* Response body for ProcessFileAndSave.
|
|
1533
1585
|
* @export
|
|
1534
1586
|
*/
|
|
1535
|
-
export
|
|
1587
|
+
export type ProcessFileAndSaveResponse = ProcessFileAndSaveResponseAsync | ProcessFileAndSaveResponseSync;
|
|
1536
1588
|
/**
|
|
1537
1589
|
* Response body for ProcessFileAndSave operations where the File Processing API operation is asynchronous (e.g. a video transcoding job).
|
|
1538
1590
|
* @export
|
|
@@ -1621,11 +1673,11 @@ export interface ProcessFileAndSaveResponseAsync {
|
|
|
1621
1673
|
/**
|
|
1622
1674
|
* @export
|
|
1623
1675
|
*/
|
|
1624
|
-
export
|
|
1676
|
+
export type ProcessFileAndSaveResponseAsyncJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJob";
|
|
1625
1677
|
/**
|
|
1626
1678
|
* @export
|
|
1627
1679
|
*/
|
|
1628
|
-
export
|
|
1680
|
+
export type ProcessFileAndSaveResponseAsyncAsyncEnum = true;
|
|
1629
1681
|
/**
|
|
1630
1682
|
* Response body for ProcessFileAndSave operations where the File Processing API operation is synchronous (e.g. an image processing job).
|
|
1631
1683
|
* @export
|
|
@@ -1676,7 +1728,7 @@ export interface ProcessFileAndSaveResponseSync {
|
|
|
1676
1728
|
/**
|
|
1677
1729
|
* @export
|
|
1678
1730
|
*/
|
|
1679
|
-
export
|
|
1731
|
+
export type ProcessFileAndSaveResponseSyncAsyncEnum = false;
|
|
1680
1732
|
/**
|
|
1681
1733
|
* Permissions applied to anonymous users who attempt to download files from a folder.
|
|
1682
1734
|
*
|
|
@@ -1786,7 +1838,7 @@ export interface R2Storage {
|
|
|
1786
1838
|
/**
|
|
1787
1839
|
* @export
|
|
1788
1840
|
*/
|
|
1789
|
-
export
|
|
1841
|
+
export type R2StorageTypeEnum = "R2";
|
|
1790
1842
|
/**
|
|
1791
1843
|
*
|
|
1792
1844
|
* @export
|
|
@@ -1806,6 +1858,50 @@ export interface R2StorageCredentials {
|
|
|
1806
1858
|
*/
|
|
1807
1859
|
r2AccessKey: string;
|
|
1808
1860
|
}
|
|
1861
|
+
/**
|
|
1862
|
+
* Request body for ResetCache.
|
|
1863
|
+
*
|
|
1864
|
+
* You can choose to reset the edge cache, or permanent cache, or both caches.
|
|
1865
|
+
*
|
|
1866
|
+
* *Warning:* Resetting the permanent cache (by setting ```resetPermanentCache: true```) may lead to a significant increase in processing time if numerous file transformations need to be re-performed upon their next request.
|
|
1867
|
+
*
|
|
1868
|
+
* *Recommended:* Prevent cache resets by adding a ```?v=<etag>``` querystring parameter to your URLs. This ensures your URLs change when your files change, eliminating the need for cache resets. The `etag` field is returned by GetFileDetails and all upload operations.
|
|
1869
|
+
*
|
|
1870
|
+
* *Example patterns:*
|
|
1871
|
+
*
|
|
1872
|
+
* - ```"/*"```
|
|
1873
|
+
* - ```"/raw/example.jpg"```
|
|
1874
|
+
* - ```"/image/example.jpg"```
|
|
1875
|
+
* - ```"/image/customers/abc/*"```
|
|
1876
|
+
*
|
|
1877
|
+
* You may only use ```*``` at the end of the pattern. You must not include your account ID prefix in the pattern.
|
|
1878
|
+
* @export
|
|
1879
|
+
* @interface ResetCacheRequest
|
|
1880
|
+
*/
|
|
1881
|
+
export interface ResetCacheRequest {
|
|
1882
|
+
/**
|
|
1883
|
+
* The URL pattern to reset the cache for, excluding the account ID, but including the delivery method prefix (e.g. "raw", "image", etc.).
|
|
1884
|
+
*
|
|
1885
|
+
* May end with a `*` to indicate that all files with this prefix are to be removed from the cache.
|
|
1886
|
+
*
|
|
1887
|
+
* Specify `/*` to reset your entire cache.
|
|
1888
|
+
* @type {string}
|
|
1889
|
+
* @memberof ResetCacheRequest
|
|
1890
|
+
*/
|
|
1891
|
+
pattern: string;
|
|
1892
|
+
/**
|
|
1893
|
+
* If `true` then resets the edge cache for the location(s) specified by `pattern`.
|
|
1894
|
+
* @type {boolean}
|
|
1895
|
+
* @memberof ResetCacheRequest
|
|
1896
|
+
*/
|
|
1897
|
+
resetEdgeCache: boolean;
|
|
1898
|
+
/**
|
|
1899
|
+
* If `true` then resets the permanent cache for the location(s) specified by `pattern`.
|
|
1900
|
+
* @type {boolean}
|
|
1901
|
+
* @memberof ResetCacheRequest
|
|
1902
|
+
*/
|
|
1903
|
+
resetPermanentCache: boolean;
|
|
1904
|
+
}
|
|
1809
1905
|
/**
|
|
1810
1906
|
* Storage layer used for storing files in custom S3 buckets, as opposed to Bytescale's built-in storage.
|
|
1811
1907
|
*
|
|
@@ -1852,7 +1948,7 @@ export interface S3Storage {
|
|
|
1852
1948
|
/**
|
|
1853
1949
|
* @export
|
|
1854
1950
|
*/
|
|
1855
|
-
export
|
|
1951
|
+
export type S3StorageTypeEnum = "S3";
|
|
1856
1952
|
/**
|
|
1857
1953
|
*
|
|
1858
1954
|
* @export
|
|
@@ -1894,7 +1990,7 @@ export interface SpecifiedFieldValueEmptiableFolderDescription {
|
|
|
1894
1990
|
/**
|
|
1895
1991
|
* @export
|
|
1896
1992
|
*/
|
|
1897
|
-
export
|
|
1993
|
+
export type SpecifiedFieldValueEmptiableFolderDescriptionSetEnum = true;
|
|
1898
1994
|
/**
|
|
1899
1995
|
* This data type specifies the field must be updated.
|
|
1900
1996
|
* @export
|
|
@@ -1917,7 +2013,7 @@ export interface SpecifiedFieldValueEmptiablePublicPermissionsArray {
|
|
|
1917
2013
|
/**
|
|
1918
2014
|
* @export
|
|
1919
2015
|
*/
|
|
1920
|
-
export
|
|
2016
|
+
export type SpecifiedFieldValueEmptiablePublicPermissionsArraySetEnum = true;
|
|
1921
2017
|
/**
|
|
1922
2018
|
* This data type specifies the field must be updated.
|
|
1923
2019
|
* @export
|
|
@@ -1940,7 +2036,7 @@ export interface SpecifiedFieldValueEmptiableStorageLayerUpdate {
|
|
|
1940
2036
|
/**
|
|
1941
2037
|
* @export
|
|
1942
2038
|
*/
|
|
1943
|
-
export
|
|
2039
|
+
export type SpecifiedFieldValueEmptiableStorageLayerUpdateSetEnum = true;
|
|
1944
2040
|
/**
|
|
1945
2041
|
* @type StorageLayerSummary
|
|
1946
2042
|
* Storage layer summary information, describing an existing folder's storage layer.
|
|
@@ -1948,7 +2044,7 @@ export declare type SpecifiedFieldValueEmptiableStorageLayerUpdateSetEnum = true
|
|
|
1948
2044
|
* This data type does not contain credentials.
|
|
1949
2045
|
* @export
|
|
1950
2046
|
*/
|
|
1951
|
-
export
|
|
2047
|
+
export type StorageLayerSummary = InternalStorageV1 | InternalStorageV2 | PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentials | PickGoogleStorageExcludeKeyofGoogleStorageCredentials | PickR2StorageExcludeKeyofR2StorageCredentials | PickS3StorageExcludeKeyofS3StorageCredentials | WebStorage;
|
|
1952
2048
|
/**
|
|
1953
2049
|
* @type StorageLayerUpdate
|
|
1954
2050
|
* Data type used to update or create a folder's storage layer.
|
|
@@ -1956,7 +2052,7 @@ export declare type StorageLayerSummary = InternalStorageV1 | InternalStorageV2
|
|
|
1956
2052
|
* This data type may contain credentials.
|
|
1957
2053
|
* @export
|
|
1958
2054
|
*/
|
|
1959
|
-
export
|
|
2055
|
+
export type StorageLayerUpdate = DigitalOceanStorage | GoogleStorage | InternalStorageV2 | R2Storage | S3Storage | WebStorage;
|
|
1960
2056
|
/**
|
|
1961
2057
|
* @type TransformationParamValue
|
|
1962
2058
|
* A single transformation parameter provided to a Bytescale File Processing API.
|
|
@@ -1964,7 +2060,7 @@ export declare type StorageLayerUpdate = DigitalOceanStorage | GoogleStorage | I
|
|
|
1964
2060
|
* See TransformationParams for more information.
|
|
1965
2061
|
* @export
|
|
1966
2062
|
*/
|
|
1967
|
-
export
|
|
2063
|
+
export type TransformationParamValue = boolean | number | string;
|
|
1968
2064
|
/**
|
|
1969
2065
|
* @type TransformationParams
|
|
1970
2066
|
* Transformation parameters provided to a Bytescale File Processing API.
|
|
@@ -1996,7 +2092,7 @@ export declare type TransformationParamValue = boolean | number | string;
|
|
|
1996
2092
|
* The `extendedParams` field supports up to 400KB of transformation parameter data.
|
|
1997
2093
|
* @export
|
|
1998
2094
|
*/
|
|
1999
|
-
export
|
|
2095
|
+
export type TransformationParams = Array<{
|
|
2000
2096
|
[key: string]: TransformationParamValue;
|
|
2001
2097
|
}> | {
|
|
2002
2098
|
[key: string]: TransformationParamValue;
|
|
@@ -2017,25 +2113,25 @@ export interface UnspecifiedFieldValue {
|
|
|
2017
2113
|
/**
|
|
2018
2114
|
* @export
|
|
2019
2115
|
*/
|
|
2020
|
-
export
|
|
2116
|
+
export type UnspecifiedFieldValueSetEnum = false;
|
|
2021
2117
|
/**
|
|
2022
2118
|
* @type UpdatableFieldEmptiableFolderDescription
|
|
2023
2119
|
*
|
|
2024
2120
|
* @export
|
|
2025
2121
|
*/
|
|
2026
|
-
export
|
|
2122
|
+
export type UpdatableFieldEmptiableFolderDescription = SpecifiedFieldValueEmptiableFolderDescription | UnspecifiedFieldValue;
|
|
2027
2123
|
/**
|
|
2028
2124
|
* @type UpdatableFieldEmptiablePublicPermissionsArray
|
|
2029
2125
|
*
|
|
2030
2126
|
* @export
|
|
2031
2127
|
*/
|
|
2032
|
-
export
|
|
2128
|
+
export type UpdatableFieldEmptiablePublicPermissionsArray = SpecifiedFieldValueEmptiablePublicPermissionsArray | UnspecifiedFieldValue;
|
|
2033
2129
|
/**
|
|
2034
2130
|
* @type UpdatableFieldEmptiableStorageLayerUpdate
|
|
2035
2131
|
*
|
|
2036
2132
|
* @export
|
|
2037
2133
|
*/
|
|
2038
|
-
export
|
|
2134
|
+
export type UpdatableFieldEmptiableStorageLayerUpdate = SpecifiedFieldValueEmptiableStorageLayerUpdate | UnspecifiedFieldValue;
|
|
2039
2135
|
/**
|
|
2040
2136
|
* Request body for UploadFromUrl.
|
|
2041
2137
|
* @export
|
|
@@ -2187,7 +2283,7 @@ export interface WebStorage {
|
|
|
2187
2283
|
/**
|
|
2188
2284
|
* @export
|
|
2189
2285
|
*/
|
|
2190
|
-
export
|
|
2286
|
+
export type WebStorageTypeEnum = "Web";
|
|
2191
2287
|
/**
|
|
2192
2288
|
*
|
|
2193
2289
|
* @export
|
|
@@ -93,22 +93,22 @@ export declare class BytescaleApiError extends Error {
|
|
|
93
93
|
readonly details: any | undefined;
|
|
94
94
|
constructor(response: ErrorResponse);
|
|
95
95
|
}
|
|
96
|
-
export
|
|
97
|
-
export
|
|
98
|
-
export
|
|
99
|
-
export
|
|
96
|
+
export type FetchAPI = WindowOrWorkerGlobalScope["fetch"];
|
|
97
|
+
export type Json = any;
|
|
98
|
+
export type HTTPMethod = "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "OPTIONS" | "HEAD";
|
|
99
|
+
export type HTTPHeaders = {
|
|
100
100
|
[key: string]: string;
|
|
101
101
|
};
|
|
102
|
-
export
|
|
102
|
+
export type HTTPQuery = {
|
|
103
103
|
[key: string]: string | number | null | boolean | HTTPQuery;
|
|
104
104
|
};
|
|
105
|
-
export
|
|
106
|
-
export
|
|
105
|
+
export type HTTPBody = Json | FormData | URLSearchParams;
|
|
106
|
+
export type HTTPRequestInit = {
|
|
107
107
|
headers?: HTTPHeaders;
|
|
108
108
|
method: HTTPMethod;
|
|
109
109
|
body?: HTTPBody;
|
|
110
110
|
};
|
|
111
|
-
export
|
|
111
|
+
export type InitOverrideFunction = (requestContext: {
|
|
112
112
|
init: HTTPRequestInit;
|
|
113
113
|
context: RequestOpts;
|
|
114
114
|
}) => Promise<RequestInit>;
|