@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.
- package/dist/browser/cjs/main.js +18 -8
- package/dist/browser/esm/main.mjs +18 -8
- package/dist/node/cjs/main.js +8 -8
- package/dist/node/esm/main.mjs +8 -8
- package/dist/types/private/Scheduler.d.ts +8 -0
- package/dist/types/public/shared/UrlBuilderTypes.d.ts +1 -1
- package/dist/types/public/shared/generated/apis/FileApi.d.ts +2 -2
- package/dist/types/public/shared/generated/apis/FolderApi.d.ts +2 -2
- package/dist/types/public/shared/generated/models/index.d.ts +5 -5
- package/dist/worker/cjs/main.js +8 -8
- package/dist/worker/esm/main.mjs +8 -8
- package/package.json +1 -1
package/dist/browser/cjs/main.js
CHANGED
|
@@ -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.
|
|
975
|
-
query["
|
|
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.
|
|
1049
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1805
|
+
cacheTtl404: null,
|
|
1806
1806
|
version: null,
|
|
1807
1807
|
forceDownloadPrompt: null
|
|
1808
1808
|
}, {
|
|
1809
1809
|
cacheTtl: "cache_ttl",
|
|
1810
|
-
|
|
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.
|
|
960
|
-
query["
|
|
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.
|
|
1034
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1790
|
+
cacheTtl404: null,
|
|
1791
1791
|
version: null,
|
|
1792
1792
|
forceDownloadPrompt: null
|
|
1793
1793
|
}, {
|
|
1794
1794
|
cacheTtl: "cache_ttl",
|
|
1795
|
-
|
|
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.
|
package/dist/node/cjs/main.js
CHANGED
|
@@ -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.
|
|
975
|
-
query["
|
|
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.
|
|
1049
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1805
|
+
cacheTtl404: null,
|
|
1806
1806
|
version: null,
|
|
1807
1807
|
forceDownloadPrompt: null
|
|
1808
1808
|
}, {
|
|
1809
1809
|
cacheTtl: "cache_ttl",
|
|
1810
|
-
|
|
1810
|
+
cacheTtl404: "cache_ttl_404",
|
|
1811
1811
|
forceDownloadPrompt: "download"
|
|
1812
1812
|
})(params);
|
|
1813
1813
|
}
|
package/dist/node/esm/main.mjs
CHANGED
|
@@ -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.
|
|
962
|
-
query["
|
|
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.
|
|
1036
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1792
|
+
cacheTtl404: null,
|
|
1793
1793
|
version: null,
|
|
1794
1794
|
forceDownloadPrompt: null
|
|
1795
1795
|
}, {
|
|
1796
1796
|
cacheTtl: "cache_ttl",
|
|
1797
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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. *
|
|
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. *
|
|
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
|
|
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
|
-
*
|
|
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
|
-
* *
|
|
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
|
|
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
|
*/
|
package/dist/worker/cjs/main.js
CHANGED
|
@@ -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.
|
|
975
|
-
query["
|
|
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.
|
|
1049
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1805
|
+
cacheTtl404: null,
|
|
1806
1806
|
version: null,
|
|
1807
1807
|
forceDownloadPrompt: null
|
|
1808
1808
|
}, {
|
|
1809
1809
|
cacheTtl: "cache_ttl",
|
|
1810
|
-
|
|
1810
|
+
cacheTtl404: "cache_ttl_404",
|
|
1811
1811
|
forceDownloadPrompt: "download"
|
|
1812
1812
|
})(params);
|
|
1813
1813
|
}
|
package/dist/worker/esm/main.mjs
CHANGED
|
@@ -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.
|
|
960
|
-
query["
|
|
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.
|
|
1034
|
-
query["
|
|
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. *
|
|
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. *
|
|
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
|
-
|
|
1790
|
+
cacheTtl404: null,
|
|
1791
1791
|
version: null,
|
|
1792
1792
|
forceDownloadPrompt: null
|
|
1793
1793
|
}, {
|
|
1794
1794
|
cacheTtl: "cache_ttl",
|
|
1795
|
-
|
|
1795
|
+
cacheTtl404: "cache_ttl_404",
|
|
1796
1796
|
forceDownloadPrompt: "download"
|
|
1797
1797
|
})(params);
|
|
1798
1798
|
}
|