@bytescale/sdk 3.43.0 → 3.45.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.
@@ -971,8 +971,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
971
971
  if (params.cacheTtl !== undefined) {
972
972
  query["cache_ttl"] = params.cacheTtl;
973
973
  }
974
- if (params.cacheTtlNotFound !== undefined) {
975
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
974
+ if (params.cacheTtl404 !== undefined) {
975
+ query["cache_ttl_404"] = params.cacheTtl404;
976
976
  }
977
977
  if (params.version !== undefined) {
978
978
  query["version"] = params.version;
@@ -1045,8 +1045,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1045
1045
  if (params.cacheTtl !== undefined) {
1046
1046
  query["cache_ttl"] = params.cacheTtl;
1047
1047
  }
1048
- if (params.cacheTtlNotFound !== undefined) {
1049
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1048
+ if (params.cacheTtl404 !== undefined) {
1049
+ query["cache_ttl_404"] = params.cacheTtl404;
1050
1050
  }
1051
1051
  if (params.transformationParams !== undefined) {
1052
1052
  query["transformationParams"] = params.transformationParams;
@@ -1206,7 +1206,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1206
1206
  }
1207
1207
  }
1208
1208
  /**
1209
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1209
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1210
1210
  */
1211
1211
  }, {
1212
1212
  key: "deleteFolder",
@@ -1232,7 +1232,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1232
1232
  }
1233
1233
  }
1234
1234
  /**
1235
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1235
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1236
1236
  */
1237
1237
  }, {
1238
1238
  key: "deleteFolderBatch",
@@ -1802,12 +1802,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1802
1802
  return this.makeQueryParams({
1803
1803
  cache: null,
1804
1804
  cacheTtl: null,
1805
- cacheTtlNotFound: null,
1805
+ cacheTtl404: null,
1806
1806
  version: null,
1807
1807
  forceDownloadPrompt: null
1808
1808
  }, {
1809
1809
  cacheTtl: "cache_ttl",
1810
- cacheTtlNotFound: "cache_ttl_not_found",
1810
+ cacheTtl404: "cache_ttl_404",
1811
1811
  forceDownloadPrompt: "download"
1812
1812
  })(params);
1813
1813
  }
@@ -3084,6 +3084,14 @@ function Scheduler_createClass(Constructor, protoProps, staticProps) { if (proto
3084
3084
  function Scheduler_toPropertyKey(t) { var i = Scheduler_toPrimitive(t, "string"); return "symbol" == Scheduler_typeof(i) ? i : i + ""; }
3085
3085
  function Scheduler_toPrimitive(t, r) { if ("object" != Scheduler_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Scheduler_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3086
3086
 
3087
+ /**
3088
+ * -------------------------
3089
+ * Q: Why not use 'setTimeout'?
3090
+ * -------------------------
3091
+ * A: setTimeout can be paused (e.g., during hibernation), risking JWT expiration before it triggers.
3092
+ * We therefore use a scheduler to check wall-clock time every second and execute the callback at the scheduled time.
3093
+ * -------------------------
3094
+ */
3087
3095
  var Scheduler = /*#__PURE__*/function () {
3088
3096
  function Scheduler() {
3089
3097
  Scheduler_classCallCheck(this, Scheduler);
@@ -3381,6 +3389,8 @@ var AuthManagerImpl = /*#__PURE__*/function () {
3381
3389
  ConsoleUtils.warn("Unable to refresh JWT access token: ".concat(e));
3382
3390
  });
3383
3391
  }, function (_wasThrown, _result) {
3392
+ // 'setTimeout' can be paused (e.g., during hibernation), risking JWT expiration before it triggers. We use a
3393
+ // scheduler to check wall-clock time every second and execute the callback at the scheduled time (below).
3384
3394
  session.accessTokenRefreshHandle = _this3.scheduler.schedule(expires, function () {
3385
3395
  _this3.refreshAccessToken(session).then(function () {},
3386
3396
  // Should not occur, as this method shouldn't throw errors.
@@ -956,8 +956,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
956
956
  if (params.cacheTtl !== undefined) {
957
957
  query["cache_ttl"] = params.cacheTtl;
958
958
  }
959
- if (params.cacheTtlNotFound !== undefined) {
960
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
959
+ if (params.cacheTtl404 !== undefined) {
960
+ query["cache_ttl_404"] = params.cacheTtl404;
961
961
  }
962
962
  if (params.version !== undefined) {
963
963
  query["version"] = params.version;
@@ -1030,8 +1030,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1030
1030
  if (params.cacheTtl !== undefined) {
1031
1031
  query["cache_ttl"] = params.cacheTtl;
1032
1032
  }
1033
- if (params.cacheTtlNotFound !== undefined) {
1034
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1033
+ if (params.cacheTtl404 !== undefined) {
1034
+ query["cache_ttl_404"] = params.cacheTtl404;
1035
1035
  }
1036
1036
  if (params.transformationParams !== undefined) {
1037
1037
  query["transformationParams"] = params.transformationParams;
@@ -1191,7 +1191,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1191
1191
  }
1192
1192
  }
1193
1193
  /**
1194
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1194
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1195
1195
  */
1196
1196
  }, {
1197
1197
  key: "deleteFolder",
@@ -1217,7 +1217,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1217
1217
  }
1218
1218
  }
1219
1219
  /**
1220
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1220
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1221
1221
  */
1222
1222
  }, {
1223
1223
  key: "deleteFolderBatch",
@@ -1787,12 +1787,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1787
1787
  return this.makeQueryParams({
1788
1788
  cache: null,
1789
1789
  cacheTtl: null,
1790
- cacheTtlNotFound: null,
1790
+ cacheTtl404: null,
1791
1791
  version: null,
1792
1792
  forceDownloadPrompt: null
1793
1793
  }, {
1794
1794
  cacheTtl: "cache_ttl",
1795
- cacheTtlNotFound: "cache_ttl_not_found",
1795
+ cacheTtl404: "cache_ttl_404",
1796
1796
  forceDownloadPrompt: "download"
1797
1797
  })(params);
1798
1798
  }
@@ -3069,6 +3069,14 @@ function Scheduler_createClass(Constructor, protoProps, staticProps) { if (proto
3069
3069
  function Scheduler_toPropertyKey(t) { var i = Scheduler_toPrimitive(t, "string"); return "symbol" == Scheduler_typeof(i) ? i : i + ""; }
3070
3070
  function Scheduler_toPrimitive(t, r) { if ("object" != Scheduler_typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != Scheduler_typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
3071
3071
 
3072
+ /**
3073
+ * -------------------------
3074
+ * Q: Why not use 'setTimeout'?
3075
+ * -------------------------
3076
+ * A: setTimeout can be paused (e.g., during hibernation), risking JWT expiration before it triggers.
3077
+ * We therefore use a scheduler to check wall-clock time every second and execute the callback at the scheduled time.
3078
+ * -------------------------
3079
+ */
3072
3080
  var Scheduler = /*#__PURE__*/function () {
3073
3081
  function Scheduler() {
3074
3082
  Scheduler_classCallCheck(this, Scheduler);
@@ -3366,6 +3374,8 @@ var AuthManagerImpl = /*#__PURE__*/function () {
3366
3374
  ConsoleUtils.warn("Unable to refresh JWT access token: ".concat(e));
3367
3375
  });
3368
3376
  }, function (_wasThrown, _result) {
3377
+ // 'setTimeout' can be paused (e.g., during hibernation), risking JWT expiration before it triggers. We use a
3378
+ // scheduler to check wall-clock time every second and execute the callback at the scheduled time (below).
3369
3379
  session.accessTokenRefreshHandle = _this3.scheduler.schedule(expires, function () {
3370
3380
  _this3.refreshAccessToken(session).then(function () {},
3371
3381
  // Should not occur, as this method shouldn't throw errors.
@@ -971,8 +971,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
971
971
  if (params.cacheTtl !== undefined) {
972
972
  query["cache_ttl"] = params.cacheTtl;
973
973
  }
974
- if (params.cacheTtlNotFound !== undefined) {
975
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
974
+ if (params.cacheTtl404 !== undefined) {
975
+ query["cache_ttl_404"] = params.cacheTtl404;
976
976
  }
977
977
  if (params.version !== undefined) {
978
978
  query["version"] = params.version;
@@ -1045,8 +1045,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1045
1045
  if (params.cacheTtl !== undefined) {
1046
1046
  query["cache_ttl"] = params.cacheTtl;
1047
1047
  }
1048
- if (params.cacheTtlNotFound !== undefined) {
1049
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1048
+ if (params.cacheTtl404 !== undefined) {
1049
+ query["cache_ttl_404"] = params.cacheTtl404;
1050
1050
  }
1051
1051
  if (params.transformationParams !== undefined) {
1052
1052
  query["transformationParams"] = params.transformationParams;
@@ -1206,7 +1206,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1206
1206
  }
1207
1207
  }
1208
1208
  /**
1209
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1209
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1210
1210
  */
1211
1211
  }, {
1212
1212
  key: "deleteFolder",
@@ -1232,7 +1232,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1232
1232
  }
1233
1233
  }
1234
1234
  /**
1235
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1235
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1236
1236
  */
1237
1237
  }, {
1238
1238
  key: "deleteFolderBatch",
@@ -1802,12 +1802,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1802
1802
  return this.makeQueryParams({
1803
1803
  cache: null,
1804
1804
  cacheTtl: null,
1805
- cacheTtlNotFound: null,
1805
+ cacheTtl404: null,
1806
1806
  version: null,
1807
1807
  forceDownloadPrompt: null
1808
1808
  }, {
1809
1809
  cacheTtl: "cache_ttl",
1810
- cacheTtlNotFound: "cache_ttl_not_found",
1810
+ cacheTtl404: "cache_ttl_404",
1811
1811
  forceDownloadPrompt: "download"
1812
1812
  })(params);
1813
1813
  }
@@ -958,8 +958,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
958
958
  if (params.cacheTtl !== undefined) {
959
959
  query["cache_ttl"] = params.cacheTtl;
960
960
  }
961
- if (params.cacheTtlNotFound !== undefined) {
962
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
961
+ if (params.cacheTtl404 !== undefined) {
962
+ query["cache_ttl_404"] = params.cacheTtl404;
963
963
  }
964
964
  if (params.version !== undefined) {
965
965
  query["version"] = params.version;
@@ -1032,8 +1032,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1032
1032
  if (params.cacheTtl !== undefined) {
1033
1033
  query["cache_ttl"] = params.cacheTtl;
1034
1034
  }
1035
- if (params.cacheTtlNotFound !== undefined) {
1036
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1035
+ if (params.cacheTtl404 !== undefined) {
1036
+ query["cache_ttl_404"] = params.cacheTtl404;
1037
1037
  }
1038
1038
  if (params.transformationParams !== undefined) {
1039
1039
  query["transformationParams"] = params.transformationParams;
@@ -1193,7 +1193,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1193
1193
  }
1194
1194
  }
1195
1195
  /**
1196
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1196
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1197
1197
  */
1198
1198
  }, {
1199
1199
  key: "deleteFolder",
@@ -1219,7 +1219,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1219
1219
  }
1220
1220
  }
1221
1221
  /**
1222
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1222
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1223
1223
  */
1224
1224
  }, {
1225
1225
  key: "deleteFolderBatch",
@@ -1789,12 +1789,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1789
1789
  return this.makeQueryParams({
1790
1790
  cache: null,
1791
1791
  cacheTtl: null,
1792
- cacheTtlNotFound: null,
1792
+ cacheTtl404: null,
1793
1793
  version: null,
1794
1794
  forceDownloadPrompt: null
1795
1795
  }, {
1796
1796
  cacheTtl: "cache_ttl",
1797
- cacheTtlNotFound: "cache_ttl_not_found",
1797
+ cacheTtl404: "cache_ttl_404",
1798
1798
  forceDownloadPrompt: "download"
1799
1799
  })(params);
1800
1800
  }
@@ -1,3 +1,11 @@
1
+ /**
2
+ * -------------------------
3
+ * Q: Why not use 'setTimeout'?
4
+ * -------------------------
5
+ * A: setTimeout can be paused (e.g., during hibernation), risking JWT expiration before it triggers.
6
+ * We therefore use a scheduler to check wall-clock time every second and execute the callback at the scheduled time.
7
+ * -------------------------
8
+ */
1
9
  export declare class Scheduler {
2
10
  private callbacks;
3
11
  private nextId;
@@ -49,7 +49,7 @@ export interface NonDeprecatedCommonQueryParams {
49
49
  *
50
50
  * Default: Please refer to your account's default cache settings in the Bytescale Dashboard.
51
51
  */
52
- cacheTtlNotFound?: number;
52
+ cacheTtl404?: number;
53
53
  /**
54
54
  * Forces the browser to display a download prompt for the file, instead of displaying the file in the browser.
55
55
  *
@@ -48,7 +48,7 @@ export interface DownloadFileParams {
48
48
  *
49
49
  * Default: Please refer to your account's default cache settings in the Bytescale Dashboard.
50
50
  */
51
- cacheTtlNotFound?: number;
51
+ cacheTtl404?: number;
52
52
  /**
53
53
  * Downloads the latest version of your file (if you have overwritten it) when added to the URL with a unique value.
54
54
  *
@@ -126,7 +126,7 @@ export interface ProcessFileParams {
126
126
  *
127
127
  * Default: Please refer to your account's default cache settings in the Bytescale Dashboard.
128
128
  */
129
- cacheTtlNotFound?: number;
129
+ cacheTtl404?: number;
130
130
  /**
131
131
  * Parameters to submit to the File Processing API (e.g. the Image Processing API).
132
132
  *
@@ -57,11 +57,11 @@ export declare class FolderApi extends runtime.BaseAPI {
57
57
  */
58
58
  copyFolderBatch(params: CopyFolderBatchOperationParams): Promise<AsyncResponse>;
59
59
  /**
60
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
60
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
61
61
  */
62
62
  deleteFolder(params: DeleteFolderOperationParams): Promise<AsyncResponse>;
63
63
  /**
64
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
64
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
65
65
  */
66
66
  deleteFolderBatch(params: DeleteFolderBatchOperationParams): Promise<AsyncResponse>;
67
67
  /**
@@ -343,9 +343,9 @@ export interface CopyFolderRequest {
343
343
  */
344
344
  copyOverriddenStorage?: boolean;
345
345
  /**
346
- * If `true` then copies virtual folders at the current path and below, else only files will be copied.
346
+ * If `true` then copies virtual folders at the current path and below (virtual folders are folders created using the PutFolder operation).
347
347
  *
348
- * Virtual folders are folders that have been created using the PutFolder operation.
348
+ * If `false` then virtual folders will not be copied, meaning no folder settings will be copied to the destination, but the files of any virtual folders will still be copied if `copyFiles` is set to `true`.
349
349
  *
350
350
  * Conditional: `copyVirtualFolders` and `copyOverriddenStorage` cannot both be `true`.
351
351
  *
@@ -536,7 +536,7 @@ export interface DeleteFolderBatchRequest {
536
536
  *
537
537
  * You can use ListFolder to preview the operation using the `dryRun` parameter.
538
538
  *
539
- * *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won't be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder.
539
+ * *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed.
540
540
  * @export
541
541
  * @interface DeleteFolderRequest
542
542
  */
@@ -550,7 +550,7 @@ export interface DeleteFolderRequest {
550
550
  */
551
551
  deleteFiles?: boolean;
552
552
  /**
553
- * If `true` then deletes folder settings.
553
+ * If `true` then deletes virtual folders (virtual folders are folders created using the PutFolder operation).
554
554
  *
555
555
  * Default: true
556
556
  * @type {boolean}
@@ -890,7 +890,7 @@ export interface FileSummary {
890
890
  */
891
891
  export type FileSummaryTypeEnum = "File";
892
892
  /**
893
- *
893
+ * Full details of a given folder.
894
894
  * @export
895
895
  * @interface FolderDetails
896
896
  */
@@ -971,8 +971,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
971
971
  if (params.cacheTtl !== undefined) {
972
972
  query["cache_ttl"] = params.cacheTtl;
973
973
  }
974
- if (params.cacheTtlNotFound !== undefined) {
975
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
974
+ if (params.cacheTtl404 !== undefined) {
975
+ query["cache_ttl_404"] = params.cacheTtl404;
976
976
  }
977
977
  if (params.version !== undefined) {
978
978
  query["version"] = params.version;
@@ -1045,8 +1045,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1045
1045
  if (params.cacheTtl !== undefined) {
1046
1046
  query["cache_ttl"] = params.cacheTtl;
1047
1047
  }
1048
- if (params.cacheTtlNotFound !== undefined) {
1049
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1048
+ if (params.cacheTtl404 !== undefined) {
1049
+ query["cache_ttl_404"] = params.cacheTtl404;
1050
1050
  }
1051
1051
  if (params.transformationParams !== undefined) {
1052
1052
  query["transformationParams"] = params.transformationParams;
@@ -1206,7 +1206,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1206
1206
  }
1207
1207
  }
1208
1208
  /**
1209
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1209
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1210
1210
  */
1211
1211
  }, {
1212
1212
  key: "deleteFolder",
@@ -1232,7 +1232,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1232
1232
  }
1233
1233
  }
1234
1234
  /**
1235
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1235
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1236
1236
  */
1237
1237
  }, {
1238
1238
  key: "deleteFolderBatch",
@@ -1802,12 +1802,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1802
1802
  return this.makeQueryParams({
1803
1803
  cache: null,
1804
1804
  cacheTtl: null,
1805
- cacheTtlNotFound: null,
1805
+ cacheTtl404: null,
1806
1806
  version: null,
1807
1807
  forceDownloadPrompt: null
1808
1808
  }, {
1809
1809
  cacheTtl: "cache_ttl",
1810
- cacheTtlNotFound: "cache_ttl_not_found",
1810
+ cacheTtl404: "cache_ttl_404",
1811
1811
  forceDownloadPrompt: "download"
1812
1812
  })(params);
1813
1813
  }
@@ -956,8 +956,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
956
956
  if (params.cacheTtl !== undefined) {
957
957
  query["cache_ttl"] = params.cacheTtl;
958
958
  }
959
- if (params.cacheTtlNotFound !== undefined) {
960
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
959
+ if (params.cacheTtl404 !== undefined) {
960
+ query["cache_ttl_404"] = params.cacheTtl404;
961
961
  }
962
962
  if (params.version !== undefined) {
963
963
  query["version"] = params.version;
@@ -1030,8 +1030,8 @@ var FileApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1030
1030
  if (params.cacheTtl !== undefined) {
1031
1031
  query["cache_ttl"] = params.cacheTtl;
1032
1032
  }
1033
- if (params.cacheTtlNotFound !== undefined) {
1034
- query["cache_ttl_not_found"] = params.cacheTtlNotFound;
1033
+ if (params.cacheTtl404 !== undefined) {
1034
+ query["cache_ttl_404"] = params.cacheTtl404;
1035
1035
  }
1036
1036
  if (params.transformationParams !== undefined) {
1037
1037
  query["transformationParams"] = params.transformationParams;
@@ -1191,7 +1191,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1191
1191
  }
1192
1192
  }
1193
1193
  /**
1194
- * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1194
+ * Deletes a folder asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1195
1195
  */
1196
1196
  }, {
1197
1197
  key: "deleteFolder",
@@ -1217,7 +1217,7 @@ var FolderApi = /*#__PURE__*/function (_runtime$BaseAPI) {
1217
1217
  }
1218
1218
  }
1219
1219
  /**
1220
- * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *When deleting a folder with external storage:* if the folder at `folderPath` has overridden storage settings (like an AWS S3 bucket), no files will be deleted, regardless of the parameters you pass. Only the mapping will be removed. If the folder at `folderPath` has inherited storage settings but includes subfolders with overridden storage settings, files in those subfolders won\'t be deleted, regardless of the parameters you pass. In summary, files in folders with overridden storage are never deleted, unless you directly delete a subfolder of such a folder. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1220
+ * Deletes multiple folders asynchronously. You can use ListFolder to preview the operation using the `dryRun` parameter. *External storage:* external files are only deleted when you directly delete a file or subfolder of a folder that has external storage configured. If you delete the folder itself, only the mapping is removed. Requires a `secret_*` API key. Alternatively, you can use a `public_*` API key and JWT-based auth.
1221
1221
  */
1222
1222
  }, {
1223
1223
  key: "deleteFolderBatch",
@@ -1787,12 +1787,12 @@ var UrlBuilder = /*#__PURE__*/function () {
1787
1787
  return this.makeQueryParams({
1788
1788
  cache: null,
1789
1789
  cacheTtl: null,
1790
- cacheTtlNotFound: null,
1790
+ cacheTtl404: null,
1791
1791
  version: null,
1792
1792
  forceDownloadPrompt: null
1793
1793
  }, {
1794
1794
  cacheTtl: "cache_ttl",
1795
- cacheTtlNotFound: "cache_ttl_not_found",
1795
+ cacheTtl404: "cache_ttl_404",
1796
1796
  forceDownloadPrompt: "download"
1797
1797
  })(params);
1798
1798
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bytescale/sdk",
3
- "version": "3.43.0",
3
+ "version": "3.45.0",
4
4
  "description": "Bytescale JavaScript SDK",
5
5
  "author": "Bytescale <hello@bytescale.com> (https://www.bytescale.com)",
6
6
  "license": "MIT",