@bytescale/sdk 1.4.0 → 3.0.0-alpha.1
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.
|
@@ -720,66 +720,11 @@ export interface FileDownloadGrants {
|
|
|
720
720
|
downloadFile: Array<string>;
|
|
721
721
|
}
|
|
722
722
|
/**
|
|
723
|
+
* @type FilePathDefinition
|
|
723
724
|
* The path to upload the file to.
|
|
724
725
|
* @export
|
|
725
|
-
* @interface FilePathDefinition
|
|
726
726
|
*/
|
|
727
|
-
export
|
|
728
|
-
/**
|
|
729
|
-
* The file name to upload the file with.
|
|
730
|
-
*
|
|
731
|
-
* Must not contain `/`.
|
|
732
|
-
*
|
|
733
|
-
* Supports path variables.
|
|
734
|
-
* @type {string}
|
|
735
|
-
* @memberof FilePathDefinition
|
|
736
|
-
*/
|
|
737
|
-
fileName?: string;
|
|
738
|
-
/**
|
|
739
|
-
* The file name to upload the file with.
|
|
740
|
-
*
|
|
741
|
-
* Must not contain `/`.
|
|
742
|
-
*
|
|
743
|
-
* Supports path variables.
|
|
744
|
-
* @type {string}
|
|
745
|
-
* @memberof FilePathDefinition
|
|
746
|
-
*/
|
|
747
|
-
fileNameFallback?: string;
|
|
748
|
-
/**
|
|
749
|
-
* If `true` then path variables like `{UTC_DATE}` in the `fileName` will be replaced. You can escape `{` characters with a `\`.
|
|
750
|
-
*
|
|
751
|
-
* If `false` then path variables like `{UTC_DATE}` in the `fileName` will be taken literally.
|
|
752
|
-
*
|
|
753
|
-
* Default: true
|
|
754
|
-
* @type {boolean}
|
|
755
|
-
* @memberof FilePathDefinition
|
|
756
|
-
*/
|
|
757
|
-
fileNameVariablesEnabled?: boolean;
|
|
758
|
-
/**
|
|
759
|
-
* Absolute or relative path to a folder in your Bytescale account's storage.
|
|
760
|
-
*
|
|
761
|
-
* Relative paths are relative to the API key's default folder (configured per API key in the Bytescale Dashboard).
|
|
762
|
-
*
|
|
763
|
-
* Should not end with `/`.
|
|
764
|
-
*
|
|
765
|
-
* Does not support path traversals (e.g. `..`).
|
|
766
|
-
*
|
|
767
|
-
* Supports path variables.
|
|
768
|
-
* @type {string}
|
|
769
|
-
* @memberof FilePathDefinition
|
|
770
|
-
*/
|
|
771
|
-
folderPath?: string;
|
|
772
|
-
/**
|
|
773
|
-
* If `true` then path variables like `{UTC_DATE}` in the `folderPath` will be replaced. You can escape `{` characters with a `\`.
|
|
774
|
-
*
|
|
775
|
-
* If `false` then path variables like `{UTC_DATE}` in the `folderPath` will be taken literally.
|
|
776
|
-
*
|
|
777
|
-
* Default: true
|
|
778
|
-
* @type {boolean}
|
|
779
|
-
* @memberof FilePathDefinition
|
|
780
|
-
*/
|
|
781
|
-
folderPathVariablesEnabled?: boolean;
|
|
782
|
-
}
|
|
727
|
+
export declare type FilePathDefinition = DynamicFilePath | string;
|
|
783
728
|
/**
|
|
784
729
|
* Summary information about a file (a subset of the FileDetails type).
|
|
785
730
|
* @export
|
|
@@ -1280,64 +1225,11 @@ export interface ListRecentJobsResponse {
|
|
|
1280
1225
|
*/
|
|
1281
1226
|
export declare type MultipartUploadProtocol = "1.0" | "1.1";
|
|
1282
1227
|
/**
|
|
1228
|
+
* @type ObjectSummary
|
|
1283
1229
|
* Summary information about a file or folder.
|
|
1284
|
-
* @export
|
|
1285
|
-
* @interface ObjectSummary
|
|
1286
|
-
*/
|
|
1287
|
-
export interface ObjectSummary {
|
|
1288
|
-
/**
|
|
1289
|
-
* Absolute path to a folder. Begins with a `/`. Should not end with a `/`.
|
|
1290
|
-
* @type {string}
|
|
1291
|
-
* @memberof ObjectSummary
|
|
1292
|
-
*/
|
|
1293
|
-
folderPath: string;
|
|
1294
|
-
/**
|
|
1295
|
-
*
|
|
1296
|
-
* @type {FolderSettingsStorageLayerSummary}
|
|
1297
|
-
* @memberof ObjectSummary
|
|
1298
|
-
*/
|
|
1299
|
-
settings: FolderSettingsStorageLayerSummary;
|
|
1300
|
-
/**
|
|
1301
|
-
*
|
|
1302
|
-
* @type {string}
|
|
1303
|
-
* @memberof ObjectSummary
|
|
1304
|
-
*/
|
|
1305
|
-
type: ObjectSummaryTypeEnum;
|
|
1306
|
-
/**
|
|
1307
|
-
*
|
|
1308
|
-
* @type {boolean}
|
|
1309
|
-
* @memberof ObjectSummary
|
|
1310
|
-
*/
|
|
1311
|
-
virtual: boolean;
|
|
1312
|
-
/**
|
|
1313
|
-
* Absolute path to a file. Begins with a `/`.
|
|
1314
|
-
* @type {string}
|
|
1315
|
-
* @memberof ObjectSummary
|
|
1316
|
-
*/
|
|
1317
|
-
filePath: string;
|
|
1318
|
-
/**
|
|
1319
|
-
* URL for a raw file hosted on the Bytescale CDN.
|
|
1320
|
-
* @type {string}
|
|
1321
|
-
* @memberof ObjectSummary
|
|
1322
|
-
*/
|
|
1323
|
-
fileUrl: string;
|
|
1324
|
-
/**
|
|
1325
|
-
* Epoch milliseconds (since midnight 1 January 1970, UTC).
|
|
1326
|
-
* @type {number}
|
|
1327
|
-
* @memberof ObjectSummary
|
|
1328
|
-
*/
|
|
1329
|
-
lastModified: number;
|
|
1330
|
-
/**
|
|
1331
|
-
* Size in bytes.
|
|
1332
|
-
* @type {number}
|
|
1333
|
-
* @memberof ObjectSummary
|
|
1334
|
-
*/
|
|
1335
|
-
size: number;
|
|
1336
|
-
}
|
|
1337
|
-
/**
|
|
1338
1230
|
* @export
|
|
1339
1231
|
*/
|
|
1340
|
-
export declare type
|
|
1232
|
+
export declare type ObjectSummary = FileSummary | FolderSummary;
|
|
1341
1233
|
/**
|
|
1342
1234
|
* Specifies the folder settings to use when creating or updating a folder.
|
|
1343
1235
|
* @export
|
|
@@ -1626,11 +1518,110 @@ export interface ProcessFileAndSaveRequest {
|
|
|
1626
1518
|
tags?: CopyableFileDataFileTagNameArray;
|
|
1627
1519
|
}
|
|
1628
1520
|
/**
|
|
1521
|
+
* @type ProcessFileAndSaveResponse
|
|
1629
1522
|
* Response body for ProcessFileAndSave.
|
|
1630
1523
|
* @export
|
|
1631
|
-
* @interface ProcessFileAndSaveResponse
|
|
1632
1524
|
*/
|
|
1633
|
-
export
|
|
1525
|
+
export declare type ProcessFileAndSaveResponse = ProcessFileAndSaveResponseAsync | ProcessFileAndSaveResponseSync;
|
|
1526
|
+
/**
|
|
1527
|
+
* Response body for ProcessFileAndSave operations where the File Processing API operation is an asynchronous operation (e.g. a video transcoding job).
|
|
1528
|
+
* @export
|
|
1529
|
+
* @interface ProcessFileAndSaveResponseAsync
|
|
1530
|
+
*/
|
|
1531
|
+
export interface ProcessFileAndSaveResponseAsync {
|
|
1532
|
+
/**
|
|
1533
|
+
* Link to the documentation that describes how to get a job's status from its job ID.
|
|
1534
|
+
* @type {string}
|
|
1535
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1536
|
+
*/
|
|
1537
|
+
jobDocs: ProcessFileAndSaveResponseAsyncJobDocsEnum;
|
|
1538
|
+
/**
|
|
1539
|
+
* Job ID.
|
|
1540
|
+
* @type {string}
|
|
1541
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1542
|
+
*/
|
|
1543
|
+
jobId: string;
|
|
1544
|
+
/**
|
|
1545
|
+
*
|
|
1546
|
+
* @type {AccountJobType}
|
|
1547
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1548
|
+
*/
|
|
1549
|
+
jobType: AccountJobType;
|
|
1550
|
+
/**
|
|
1551
|
+
* URL for the job's status.
|
|
1552
|
+
*
|
|
1553
|
+
* You can `GET` this URL to retrieve the job's status.
|
|
1554
|
+
*
|
|
1555
|
+
* You must authorize your `GET` request with a ```secret_*``` API key when accessing the URL.
|
|
1556
|
+
* @type {string}
|
|
1557
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1558
|
+
*/
|
|
1559
|
+
jobUrl: string;
|
|
1560
|
+
/**
|
|
1561
|
+
* Your account ID.
|
|
1562
|
+
*
|
|
1563
|
+
* This is visible on the settings page:
|
|
1564
|
+
*
|
|
1565
|
+
* https://www.bytescale.com/dashboard/settings
|
|
1566
|
+
* @type {string}
|
|
1567
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1568
|
+
*/
|
|
1569
|
+
accountId: string;
|
|
1570
|
+
/**
|
|
1571
|
+
* Epoch milliseconds (since midnight 1 January 1970, UTC).
|
|
1572
|
+
* @type {number}
|
|
1573
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1574
|
+
*/
|
|
1575
|
+
created: number;
|
|
1576
|
+
/**
|
|
1577
|
+
*
|
|
1578
|
+
* @type {JobSummaryError}
|
|
1579
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1580
|
+
*/
|
|
1581
|
+
error: JobSummaryError | null;
|
|
1582
|
+
/**
|
|
1583
|
+
* Epoch milliseconds (since midnight 1 January 1970, UTC).
|
|
1584
|
+
* @type {number}
|
|
1585
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1586
|
+
*/
|
|
1587
|
+
lastUpdated: number;
|
|
1588
|
+
/**
|
|
1589
|
+
*
|
|
1590
|
+
* @type {AccountJobStatus}
|
|
1591
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1592
|
+
*/
|
|
1593
|
+
status: AccountJobStatus;
|
|
1594
|
+
/**
|
|
1595
|
+
* An arbitrary JSON object.
|
|
1596
|
+
* @type {{ [key: string]: any; }}
|
|
1597
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1598
|
+
*/
|
|
1599
|
+
summary: {
|
|
1600
|
+
[key: string]: any;
|
|
1601
|
+
};
|
|
1602
|
+
/**
|
|
1603
|
+
* True for asynchronous file processing operations (e.g. video transcoding).
|
|
1604
|
+
*
|
|
1605
|
+
* For asynchronous operations, the response body will contain information about the background job that's processing the file, which can then be polled via the GetJob operation.
|
|
1606
|
+
* @type {boolean}
|
|
1607
|
+
* @memberof ProcessFileAndSaveResponseAsync
|
|
1608
|
+
*/
|
|
1609
|
+
async: ProcessFileAndSaveResponseAsyncAsyncEnum;
|
|
1610
|
+
}
|
|
1611
|
+
/**
|
|
1612
|
+
* @export
|
|
1613
|
+
*/
|
|
1614
|
+
export declare type ProcessFileAndSaveResponseAsyncJobDocsEnum = "https://www.bytescale.com/docs/job-api/GetJob";
|
|
1615
|
+
/**
|
|
1616
|
+
* @export
|
|
1617
|
+
*/
|
|
1618
|
+
export declare type ProcessFileAndSaveResponseAsyncAsyncEnum = true;
|
|
1619
|
+
/**
|
|
1620
|
+
* Response body for ProcessFileAndSave operations where the File Processing API operation is a synchronous operation (e.g. an image processing job).
|
|
1621
|
+
* @export
|
|
1622
|
+
* @interface ProcessFileAndSaveResponseSync
|
|
1623
|
+
*/
|
|
1624
|
+
export interface ProcessFileAndSaveResponseSync {
|
|
1634
1625
|
/**
|
|
1635
1626
|
* Your account ID.
|
|
1636
1627
|
*
|
|
@@ -1638,36 +1629,46 @@ export interface ProcessFileAndSaveResponse {
|
|
|
1638
1629
|
*
|
|
1639
1630
|
* https://www.bytescale.com/dashboard/settings
|
|
1640
1631
|
* @type {string}
|
|
1641
|
-
* @memberof
|
|
1632
|
+
* @memberof ProcessFileAndSaveResponseSync
|
|
1642
1633
|
*/
|
|
1643
1634
|
accountId: string;
|
|
1644
1635
|
/**
|
|
1645
|
-
*
|
|
1636
|
+
* False for synchronous file processing operations (e.g. image processing).
|
|
1646
1637
|
*
|
|
1647
|
-
*
|
|
1638
|
+
* For synchronous operations, the response body will contain links to the transformed file.
|
|
1639
|
+
* @type {boolean}
|
|
1640
|
+
* @memberof ProcessFileAndSaveResponseSync
|
|
1641
|
+
*/
|
|
1642
|
+
async: ProcessFileAndSaveResponseSyncAsyncEnum;
|
|
1643
|
+
/**
|
|
1644
|
+
* The `filePath` of the transformed file.
|
|
1648
1645
|
*
|
|
1649
|
-
*
|
|
1646
|
+
* If the transformation outputs multiple artifacts, then each artifact's path will be a child of this path.
|
|
1650
1647
|
* @type {string}
|
|
1651
|
-
* @memberof
|
|
1648
|
+
* @memberof ProcessFileAndSaveResponseSync
|
|
1652
1649
|
*/
|
|
1653
|
-
|
|
1650
|
+
filePath: string;
|
|
1654
1651
|
/**
|
|
1655
1652
|
* URL for an http(s) resource.
|
|
1656
1653
|
* @type {string}
|
|
1657
|
-
* @memberof
|
|
1654
|
+
* @memberof ProcessFileAndSaveResponseSync
|
|
1658
1655
|
*/
|
|
1659
|
-
|
|
1656
|
+
fileUrl: string;
|
|
1660
1657
|
/**
|
|
1661
1658
|
* JSON response returned by certain transformation APIs.
|
|
1662
1659
|
*
|
|
1663
1660
|
* Structure varies between transformation APIs (please consult the documentation of the individual transformation APIs).
|
|
1664
1661
|
* @type {{ [key: string]: any; }}
|
|
1665
|
-
* @memberof
|
|
1662
|
+
* @memberof ProcessFileAndSaveResponseSync
|
|
1666
1663
|
*/
|
|
1667
1664
|
summary?: {
|
|
1668
1665
|
[key: string]: any;
|
|
1669
1666
|
};
|
|
1670
1667
|
}
|
|
1668
|
+
/**
|
|
1669
|
+
* @export
|
|
1670
|
+
*/
|
|
1671
|
+
export declare type ProcessFileAndSaveResponseSyncAsyncEnum = false;
|
|
1671
1672
|
/**
|
|
1672
1673
|
* @type ProcessFileTransformationParamsParameterValue
|
|
1673
1674
|
*
|
|
@@ -2022,222 +2023,27 @@ export interface SpecifiedFieldValueStorageLayerUpdateOrNullValue {
|
|
|
2022
2023
|
*/
|
|
2023
2024
|
export declare type SpecifiedFieldValueStorageLayerUpdateOrNullValueTypeEnum = "GoogleStorage";
|
|
2024
2025
|
/**
|
|
2026
|
+
* @type StorageLayerSummary
|
|
2025
2027
|
* Storage layer summary information, describing an existing folder's storage layer.
|
|
2026
2028
|
*
|
|
2027
2029
|
* This data type does not contain credentials.
|
|
2028
2030
|
* @export
|
|
2029
|
-
* @interface StorageLayerSummary
|
|
2030
2031
|
*/
|
|
2031
|
-
export
|
|
2032
|
-
/**
|
|
2033
|
-
* The type of this storage layer.
|
|
2034
|
-
* @type {string}
|
|
2035
|
-
* @memberof StorageLayerSummary
|
|
2036
|
-
*/
|
|
2037
|
-
type: StorageLayerSummaryTypeEnum;
|
|
2038
|
-
/**
|
|
2039
|
-
* Base URL to proxy requests to. Should contain a trailing `/`.
|
|
2040
|
-
*
|
|
2041
|
-
* If `baseUrl` is set to `null`, then this folder will behave as an open reverse proxy.
|
|
2042
|
-
*
|
|
2043
|
-
* *Example 1:* if the `baseUrl` is `null` and the folder you're configuring the storage layer on is:
|
|
2044
|
-
*
|
|
2045
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2046
|
-
*
|
|
2047
|
-
* Then you can issue requests such as:
|
|
2048
|
-
*
|
|
2049
|
-
* `https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg`
|
|
2050
|
-
*
|
|
2051
|
-
* *Example 2:* if the `baseUrl` is:
|
|
2052
|
-
*
|
|
2053
|
-
* `https://images.unsplash.com/`
|
|
2054
|
-
*
|
|
2055
|
-
* And the folder you're configuring the storage layer on is:
|
|
2056
|
-
*
|
|
2057
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2058
|
-
*
|
|
2059
|
-
* Then you can issue requests such as:
|
|
2060
|
-
*
|
|
2061
|
-
* `https://upcdn.io/abc1234/raw/demo/test/example.jpg`
|
|
2062
|
-
*
|
|
2063
|
-
* Which will be routed to the URL:
|
|
2064
|
-
*
|
|
2065
|
-
* `https://images.unsplash.com/test/example.jpg`
|
|
2066
|
-
* @type {string}
|
|
2067
|
-
* @memberof StorageLayerSummary
|
|
2068
|
-
*/
|
|
2069
|
-
baseUrl: string | null;
|
|
2070
|
-
/**
|
|
2071
|
-
*
|
|
2072
|
-
* @type {PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket}
|
|
2073
|
-
* @memberof StorageLayerSummary
|
|
2074
|
-
*/
|
|
2075
|
-
bucket: PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket;
|
|
2076
|
-
/**
|
|
2077
|
-
* If `true` then writes Google Storage objects with full `filePath` as key, prefixed with the `objectKeyPrefix`.
|
|
2078
|
-
*
|
|
2079
|
-
* If `false` then writes Google Storage objects using a relative `filePath` in relation to folder's path, prefixed with the `objectKeyPrefix`.
|
|
2080
|
-
* @type {boolean}
|
|
2081
|
-
* @memberof StorageLayerSummary
|
|
2082
|
-
*/
|
|
2083
|
-
useAbsolutePaths: boolean;
|
|
2084
|
-
/**
|
|
2085
|
-
* Enables S3 transfer acceleration, providing improved file upload speeds for larger files.
|
|
2086
|
-
*
|
|
2087
|
-
* Note: this setting must also be enabled on the S3 bucket.
|
|
2088
|
-
* @type {boolean}
|
|
2089
|
-
* @memberof StorageLayerSummary
|
|
2090
|
-
*/
|
|
2091
|
-
useTransferAcceleration: boolean;
|
|
2092
|
-
/**
|
|
2093
|
-
* Cloudflare Account ID.
|
|
2094
|
-
* @type {string}
|
|
2095
|
-
* @memberof StorageLayerSummary
|
|
2096
|
-
*/
|
|
2097
|
-
cloudflareAccountId: string;
|
|
2098
|
-
}
|
|
2099
|
-
/**
|
|
2100
|
-
* @export
|
|
2101
|
-
*/
|
|
2102
|
-
export declare type StorageLayerSummaryTypeEnum = "GoogleStorage";
|
|
2032
|
+
export declare type StorageLayerSummary = InternalStorageV1 | InternalStorageV2 | PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentials | PickGoogleStorageExcludeKeyofGoogleStorageCredentials | PickR2StorageExcludeKeyofR2StorageCredentials | PickS3StorageExcludeKeyofS3StorageCredentials | WebStorage;
|
|
2103
2033
|
/**
|
|
2034
|
+
* @type StorageLayerUpdate
|
|
2104
2035
|
* Data type used to update or create a folder's storage layer.
|
|
2105
2036
|
*
|
|
2106
2037
|
* This data type may contain credentials.
|
|
2107
2038
|
* @export
|
|
2108
|
-
* @interface StorageLayerUpdate
|
|
2109
2039
|
*/
|
|
2110
|
-
export
|
|
2111
|
-
/**
|
|
2112
|
-
* The type of this storage layer.
|
|
2113
|
-
* @type {string}
|
|
2114
|
-
* @memberof StorageLayerUpdate
|
|
2115
|
-
*/
|
|
2116
|
-
type: StorageLayerUpdateTypeEnum;
|
|
2117
|
-
/**
|
|
2118
|
-
* Base URL to proxy requests to. Should contain a trailing `/`.
|
|
2119
|
-
*
|
|
2120
|
-
* If `baseUrl` is set to `null`, then this folder will behave as an open reverse proxy.
|
|
2121
|
-
*
|
|
2122
|
-
* *Example 1:* if the `baseUrl` is `null` and the folder you're configuring the storage layer on is:
|
|
2123
|
-
*
|
|
2124
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2125
|
-
*
|
|
2126
|
-
* Then you can issue requests such as:
|
|
2127
|
-
*
|
|
2128
|
-
* `https://upcdn.io/abc1234/raw/demo/https://images.unsplash.com/example.jpg`
|
|
2129
|
-
*
|
|
2130
|
-
* *Example 2:* if the `baseUrl` is:
|
|
2131
|
-
*
|
|
2132
|
-
* `https://images.unsplash.com/`
|
|
2133
|
-
*
|
|
2134
|
-
* And the folder you're configuring the storage layer on is:
|
|
2135
|
-
*
|
|
2136
|
-
* `https://upcdn.io/abc1234/raw/demo`
|
|
2137
|
-
*
|
|
2138
|
-
* Then you can issue requests such as:
|
|
2139
|
-
*
|
|
2140
|
-
* `https://upcdn.io/abc1234/raw/demo/test/example.jpg`
|
|
2141
|
-
*
|
|
2142
|
-
* Which will be routed to the URL:
|
|
2143
|
-
*
|
|
2144
|
-
* `https://images.unsplash.com/test/example.jpg`
|
|
2145
|
-
* @type {string}
|
|
2146
|
-
* @memberof StorageLayerUpdate
|
|
2147
|
-
*/
|
|
2148
|
-
baseUrl: string | null;
|
|
2149
|
-
/**
|
|
2150
|
-
*
|
|
2151
|
-
* @type {PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket}
|
|
2152
|
-
* @memberof StorageLayerUpdate
|
|
2153
|
-
*/
|
|
2154
|
-
bucket: PickGoogleStorageExcludeKeyofGoogleStorageCredentialsBucket;
|
|
2155
|
-
/**
|
|
2156
|
-
*
|
|
2157
|
-
* @type {GoogleStorageCredentials}
|
|
2158
|
-
* @memberof StorageLayerUpdate
|
|
2159
|
-
*/
|
|
2160
|
-
credentials: GoogleStorageCredentials;
|
|
2161
|
-
/**
|
|
2162
|
-
* If `true` then writes Google Storage objects with full `filePath` as key, prefixed with the `objectKeyPrefix`.
|
|
2163
|
-
*
|
|
2164
|
-
* If `false` then writes Google Storage objects using a relative `filePath` in relation to folder's path, prefixed with the `objectKeyPrefix`.
|
|
2165
|
-
* @type {boolean}
|
|
2166
|
-
* @memberof StorageLayerUpdate
|
|
2167
|
-
*/
|
|
2168
|
-
useAbsolutePaths: boolean;
|
|
2169
|
-
/**
|
|
2170
|
-
* Enables S3 transfer acceleration, providing improved file upload speeds for larger files.
|
|
2171
|
-
*
|
|
2172
|
-
* Note: this setting must also be enabled on the S3 bucket.
|
|
2173
|
-
* @type {boolean}
|
|
2174
|
-
* @memberof StorageLayerUpdate
|
|
2175
|
-
*/
|
|
2176
|
-
useTransferAcceleration: boolean;
|
|
2177
|
-
/**
|
|
2178
|
-
* Cloudflare Account ID.
|
|
2179
|
-
* @type {string}
|
|
2180
|
-
* @memberof StorageLayerUpdate
|
|
2181
|
-
*/
|
|
2182
|
-
cloudflareAccountId: string;
|
|
2183
|
-
}
|
|
2184
|
-
/**
|
|
2185
|
-
* @export
|
|
2186
|
-
*/
|
|
2187
|
-
export declare type StorageLayerUpdateTypeEnum = "GoogleStorage";
|
|
2040
|
+
export declare type StorageLayerUpdate = DigitalOceanStorage | GoogleStorage | InternalStorageV2 | R2Storage | S3Storage | WebStorage;
|
|
2188
2041
|
/**
|
|
2042
|
+
* @type TagCondition
|
|
2189
2043
|
* Expresses a condition that matches files by their tags.
|
|
2190
|
-
* @export
|
|
2191
|
-
* @interface TagCondition
|
|
2192
|
-
*/
|
|
2193
|
-
export interface TagCondition {
|
|
2194
|
-
/**
|
|
2195
|
-
*
|
|
2196
|
-
* @type {TagCondition}
|
|
2197
|
-
* @memberof TagCondition
|
|
2198
|
-
*/
|
|
2199
|
-
left: TagCondition;
|
|
2200
|
-
/**
|
|
2201
|
-
*
|
|
2202
|
-
* @type {TagCondition}
|
|
2203
|
-
* @memberof TagCondition
|
|
2204
|
-
*/
|
|
2205
|
-
right: TagCondition;
|
|
2206
|
-
/**
|
|
2207
|
-
*
|
|
2208
|
-
* @type {string}
|
|
2209
|
-
* @memberof TagCondition
|
|
2210
|
-
*/
|
|
2211
|
-
type: TagConditionTypeEnum;
|
|
2212
|
-
/**
|
|
2213
|
-
* File tag scope, e.g. for a transformation definition, a CDN download access token, or an API key's tag whitelist.
|
|
2214
|
-
* @type {string}
|
|
2215
|
-
* @memberof TagCondition
|
|
2216
|
-
*/
|
|
2217
|
-
equals: string;
|
|
2218
|
-
/**
|
|
2219
|
-
*
|
|
2220
|
-
* @type {TagCondition}
|
|
2221
|
-
* @memberof TagCondition
|
|
2222
|
-
*/
|
|
2223
|
-
condition: TagCondition;
|
|
2224
|
-
/**
|
|
2225
|
-
*
|
|
2226
|
-
* @type {Array<string>}
|
|
2227
|
-
* @memberof TagCondition
|
|
2228
|
-
*/
|
|
2229
|
-
any: Array<string>;
|
|
2230
|
-
/**
|
|
2231
|
-
*
|
|
2232
|
-
* @type {Array<string>}
|
|
2233
|
-
* @memberof TagCondition
|
|
2234
|
-
*/
|
|
2235
|
-
all: Array<string>;
|
|
2236
|
-
}
|
|
2237
|
-
/**
|
|
2238
2044
|
* @export
|
|
2239
2045
|
*/
|
|
2240
|
-
export declare type
|
|
2046
|
+
export declare type TagCondition = TagConditionAll | TagConditionAnd | TagConditionAny | TagConditionEquals | TagConditionNot | TagConditionOr;
|
|
2241
2047
|
/**
|
|
2242
2048
|
*
|
|
2243
2049
|
* @export
|
|
@@ -2406,74 +2212,23 @@ export interface UnspecifiedFieldValue {
|
|
|
2406
2212
|
*/
|
|
2407
2213
|
export declare type UnspecifiedFieldValueSetEnum = false;
|
|
2408
2214
|
/**
|
|
2215
|
+
* @type UpdatableFieldFolderDescriptionOrNull
|
|
2409
2216
|
*
|
|
2410
|
-
* @export
|
|
2411
|
-
* @interface UpdatableFieldFolderDescriptionOrNull
|
|
2412
|
-
*/
|
|
2413
|
-
export interface UpdatableFieldFolderDescriptionOrNull {
|
|
2414
|
-
/**
|
|
2415
|
-
* This field is always `true`.
|
|
2416
|
-
* @type {boolean}
|
|
2417
|
-
* @memberof UpdatableFieldFolderDescriptionOrNull
|
|
2418
|
-
*/
|
|
2419
|
-
set: UpdatableFieldFolderDescriptionOrNullSetEnum;
|
|
2420
|
-
/**
|
|
2421
|
-
* The value to set into the field.
|
|
2422
|
-
* @type {string}
|
|
2423
|
-
* @memberof UpdatableFieldFolderDescriptionOrNull
|
|
2424
|
-
*/
|
|
2425
|
-
value: string | null;
|
|
2426
|
-
}
|
|
2427
|
-
/**
|
|
2428
2217
|
* @export
|
|
2429
2218
|
*/
|
|
2430
|
-
export declare type
|
|
2219
|
+
export declare type UpdatableFieldFolderDescriptionOrNull = SpecifiedFieldValueFolderDescriptionOrNull | UnspecifiedFieldValue;
|
|
2431
2220
|
/**
|
|
2221
|
+
* @type UpdatableFieldPublicPermissionsArrayOrNull
|
|
2432
2222
|
*
|
|
2433
|
-
* @export
|
|
2434
|
-
* @interface UpdatableFieldPublicPermissionsArrayOrNull
|
|
2435
|
-
*/
|
|
2436
|
-
export interface UpdatableFieldPublicPermissionsArrayOrNull {
|
|
2437
|
-
/**
|
|
2438
|
-
* This field is always `true`.
|
|
2439
|
-
* @type {boolean}
|
|
2440
|
-
* @memberof UpdatableFieldPublicPermissionsArrayOrNull
|
|
2441
|
-
*/
|
|
2442
|
-
set: UpdatableFieldPublicPermissionsArrayOrNullSetEnum;
|
|
2443
|
-
/**
|
|
2444
|
-
* The value to set into the field.
|
|
2445
|
-
* @type {Array<PublicPermissions>}
|
|
2446
|
-
* @memberof UpdatableFieldPublicPermissionsArrayOrNull
|
|
2447
|
-
*/
|
|
2448
|
-
value: Array<PublicPermissions> | null;
|
|
2449
|
-
}
|
|
2450
|
-
/**
|
|
2451
2223
|
* @export
|
|
2452
2224
|
*/
|
|
2453
|
-
export declare type
|
|
2225
|
+
export declare type UpdatableFieldPublicPermissionsArrayOrNull = SpecifiedFieldValuePublicPermissionsArrayOrNull | UnspecifiedFieldValue;
|
|
2454
2226
|
/**
|
|
2227
|
+
* @type UpdatableFieldStorageLayerUpdateOrNull
|
|
2455
2228
|
*
|
|
2456
|
-
* @export
|
|
2457
|
-
* @interface UpdatableFieldStorageLayerUpdateOrNull
|
|
2458
|
-
*/
|
|
2459
|
-
export interface UpdatableFieldStorageLayerUpdateOrNull {
|
|
2460
|
-
/**
|
|
2461
|
-
* This field is always `true`.
|
|
2462
|
-
* @type {boolean}
|
|
2463
|
-
* @memberof UpdatableFieldStorageLayerUpdateOrNull
|
|
2464
|
-
*/
|
|
2465
|
-
set: UpdatableFieldStorageLayerUpdateOrNullSetEnum;
|
|
2466
|
-
/**
|
|
2467
|
-
*
|
|
2468
|
-
* @type {SpecifiedFieldValueStorageLayerUpdateOrNullValue}
|
|
2469
|
-
* @memberof UpdatableFieldStorageLayerUpdateOrNull
|
|
2470
|
-
*/
|
|
2471
|
-
value: SpecifiedFieldValueStorageLayerUpdateOrNullValue | null;
|
|
2472
|
-
}
|
|
2473
|
-
/**
|
|
2474
2229
|
* @export
|
|
2475
2230
|
*/
|
|
2476
|
-
export declare type
|
|
2231
|
+
export declare type UpdatableFieldStorageLayerUpdateOrNull = SpecifiedFieldValueStorageLayerUpdateOrNull | UnspecifiedFieldValue;
|
|
2477
2232
|
/**
|
|
2478
2233
|
* Request body for UploadFromUrl.
|
|
2479
2234
|
* @export
|