@bytescale/sdk 3.52.0 → 3.53.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.
@@ -56,7 +56,7 @@ export interface DownloadFileParams {
56
56
  *
57
57
  * Must less than 7 days in the future.
58
58
  *
59
- * See: Secure URLs
59
+ * See: Expiring URLs
60
60
  */
61
61
  exp?: number;
62
62
  /**
@@ -156,7 +156,7 @@ export interface ProcessFileParams {
156
156
  *
157
157
  * Must less than 7 days in the future.
158
158
  *
159
- * See: Secure URLs
159
+ * See: Expiring URLs
160
160
  */
161
161
  exp?: number;
162
162
  /**
@@ -1067,6 +1067,60 @@ export interface FolderSummary {
1067
1067
  * @export
1068
1068
  */
1069
1069
  export type FolderSummaryTypeEnum = "Folder";
1070
+ /**
1071
+ *
1072
+ * @export
1073
+ * @interface GenericS3Storage
1074
+ */
1075
+ export interface GenericS3Storage {
1076
+ /**
1077
+ *
1078
+ * @type {PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket}
1079
+ * @memberof GenericS3Storage
1080
+ */
1081
+ bucket: PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket;
1082
+ /**
1083
+ *
1084
+ * @type {GenericS3StorageCredentials}
1085
+ * @memberof GenericS3Storage
1086
+ */
1087
+ credentials: GenericS3StorageCredentials;
1088
+ /**
1089
+ *
1090
+ * @type {string}
1091
+ * @memberof GenericS3Storage
1092
+ */
1093
+ type: GenericS3StorageTypeEnum;
1094
+ /**
1095
+ *
1096
+ * @type {boolean}
1097
+ * @memberof GenericS3Storage
1098
+ */
1099
+ useAbsolutePaths: boolean;
1100
+ }
1101
+ /**
1102
+ * @export
1103
+ */
1104
+ export type GenericS3StorageTypeEnum = "GenericS3";
1105
+ /**
1106
+ *
1107
+ * @export
1108
+ * @interface GenericS3StorageCredentials
1109
+ */
1110
+ export interface GenericS3StorageCredentials {
1111
+ /**
1112
+ * AWS Secret Access Key.
1113
+ * @type {string}
1114
+ * @memberof GenericS3StorageCredentials
1115
+ */
1116
+ secretKey: string;
1117
+ /**
1118
+ * AWS Access Key.
1119
+ * @type {string}
1120
+ * @memberof GenericS3StorageCredentials
1121
+ */
1122
+ accessKey: string;
1123
+ }
1070
1124
  /**
1071
1125
  * Storage layer used for storing files in Google Storage, as opposed to Bytescale's built-in storage.
1072
1126
  *
@@ -1486,6 +1540,80 @@ export interface PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentia
1486
1540
  */
1487
1541
  bucketName: string;
1488
1542
  }
1543
+ /**
1544
+ * From T, pick a set of properties whose keys are in the union K
1545
+ * @export
1546
+ * @interface PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials
1547
+ */
1548
+ export interface PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials {
1549
+ /**
1550
+ *
1551
+ * @type {string}
1552
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials
1553
+ */
1554
+ type: PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsTypeEnum;
1555
+ /**
1556
+ *
1557
+ * @type {boolean}
1558
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials
1559
+ */
1560
+ useAbsolutePaths: boolean;
1561
+ /**
1562
+ *
1563
+ * @type {PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket}
1564
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials
1565
+ */
1566
+ bucket: PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket;
1567
+ }
1568
+ /**
1569
+ * @export
1570
+ */
1571
+ export type PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsTypeEnum = "GenericS3";
1572
+ /**
1573
+ *
1574
+ * @export
1575
+ * @interface PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1576
+ */
1577
+ export interface PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket {
1578
+ /**
1579
+ *
1580
+ * @type {Array<S3OperationName>}
1581
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1582
+ */
1583
+ unsupportedOperations: Array<S3OperationName>;
1584
+ /**
1585
+ * AWS S3 Object Key.
1586
+ * @type {string}
1587
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1588
+ */
1589
+ objectKeyPrefix: string;
1590
+ /**
1591
+ * Controls how URLs are constructed when making HTTP requests to the S3-compatible API hosted at `bucketEndpoint`.
1592
+ * - If `true` then `bucketName` will be added to the URL path.
1593
+ * - If `false` then `bucketName` will be added as a subdomain of `bucketEndpoint`, assuming `bucketName` does not contain '.' and is DNS-compatible.
1594
+ * @type {boolean}
1595
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1596
+ */
1597
+ forcePathStyle: boolean;
1598
+ /**
1599
+ * Generic S3 Region.
1600
+ * @type {string}
1601
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1602
+ */
1603
+ bucketRegion: string;
1604
+ /**
1605
+ * AWS S3 Bucket Name.
1606
+ * @type {string}
1607
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1608
+ */
1609
+ bucketName: string;
1610
+ /**
1611
+ * URL for an http(s) resource.
1612
+ * @type {string}
1613
+ * @memberof PickGenericS3StorageExcludeKeyofGenericS3StorageCredentialsBucket
1614
+ */
1615
+ bucketEndpoint: string;
1616
+ }
1489
1617
  /**
1490
1618
  * From T, pick a set of properties whose keys are in the union K
1491
1619
  * @export
@@ -2010,6 +2138,11 @@ export interface ResetCacheRequest {
2010
2138
  */
2011
2139
  resetPermanentCache: boolean;
2012
2140
  }
2141
+ /**
2142
+ *
2143
+ * @export
2144
+ */
2145
+ export type S3OperationName = "DeleteObjects";
2013
2146
  /**
2014
2147
  * Storage layer used for storing files in custom S3 buckets, as opposed to Bytescale's built-in storage.
2015
2148
  *
@@ -2152,7 +2285,7 @@ export type SpecifiedFieldValueEmptiableStorageLayerUpdateSetEnum = true;
2152
2285
  * This data type does not contain credentials.
2153
2286
  * @export
2154
2287
  */
2155
- export type StorageLayerSummary = InternalStorageV1 | InternalStorageV2 | PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredentials | PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentials | PickGoogleStorageExcludeKeyofGoogleStorageCredentials | PickR2StorageExcludeKeyofR2StorageCredentials | PickS3StorageExcludeKeyofS3StorageCredentials | WebStorage;
2288
+ export type StorageLayerSummary = InternalStorageV1 | InternalStorageV2 | PickAzureReadOnlyStorageExcludeKeyofAzureReadOnlyStorageCredentials | PickDigitalOceanStorageExcludeKeyofDigitalOceanStorageCredentials | PickGenericS3StorageExcludeKeyofGenericS3StorageCredentials | PickGoogleStorageExcludeKeyofGoogleStorageCredentials | PickR2StorageExcludeKeyofR2StorageCredentials | PickS3StorageExcludeKeyofS3StorageCredentials | WebStorage;
2156
2289
  /**
2157
2290
  * @type StorageLayerUpdate
2158
2291
  * Data type used to update or create a folder's storage layer.
@@ -2160,7 +2293,7 @@ export type StorageLayerSummary = InternalStorageV1 | InternalStorageV2 | PickAz
2160
2293
  * This data type may contain credentials.
2161
2294
  * @export
2162
2295
  */
2163
- export type StorageLayerUpdate = AzureReadOnlyStorage | DigitalOceanStorage | GoogleStorage | InternalStorageV2 | R2Storage | S3Storage | WebStorage;
2296
+ export type StorageLayerUpdate = AzureReadOnlyStorage | DigitalOceanStorage | GenericS3Storage | GoogleStorage | InternalStorageV2 | R2Storage | S3Storage | WebStorage;
2164
2297
  /**
2165
2298
  * @type TransformationParamValue
2166
2299
  * A single transformation parameter provided to a Bytescale File Processing API.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.52.0",
3
+ "version": "3.53.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",