From 3673558abab680c681eb9ae9743be0fe95e71797 Mon Sep 17 00:00:00 2001 From: Lawrence Wagerfield Date: Fri, 3 May 2024 11:42:24 +0100 Subject: [PATCH] Regenerate SDKs --- src/public/shared/generated/apis/CacheApi.ts | 2 +- src/public/shared/generated/apis/FileApi.ts | 22 ++++++++++++++++++++ src/public/shared/generated/models/index.ts | 2 +- 3 files changed, 24 insertions(+), 2 deletions(-) diff --git a/src/public/shared/generated/apis/CacheApi.ts b/src/public/shared/generated/apis/CacheApi.ts index e587d39..98e3eb7 100644 --- a/src/public/shared/generated/apis/CacheApi.ts +++ b/src/public/shared/generated/apis/CacheApi.ts @@ -35,7 +35,7 @@ export interface ResetCacheOperationParams { export class CacheApi extends runtime.BaseAPI { /** - * Resets the Bytescale CDN cache for a specific path, path prefix, or for your entire account. You can choose to reset the edge cache, or permanent cache, or both caches. *Warning:* Resetting the permanent cache (by setting ```resetPermanentCache: true```) may lead to a significant increase in processing time if numerous file transformations need to be re-performed upon their next request. *Recommended:* Prevent cache resets by adding a ```?v=``` querystring parameter to your URLs. This ensures your URLs change when your files change, eliminating the need for cache resets. The `etag` field is returned by GetFileDetails and all upload operations. *Example patterns:* - ```\"/_*\"``` - ```\"/raw/example.jpg\"``` - ```\"/image/example.jpg\"``` - ```\"/image/customers/abc/_*\"``` You may only use ```*``` at the end of the pattern. You must not include your account ID prefix in the pattern. + * Resets the Bytescale CDN cache for a specific path, path prefix, or for your entire account. You can choose to reset the edge cache, or permanent cache, or both caches. *Warning:* Resetting the permanent cache (by setting ```resetPermanentCache: true```) may lead to a significant increase in processing time if numerous file transformations need to be re-performed upon their next request. *Recommended:* Prevent cache resets by adding a ```?v=``` querystring parameter to your URLs. This ensures your URLs change when your files change, eliminating the need for cache resets. The `etag` field is returned by GetFileDetails and all upload operations, and can be saved to your database. *Example patterns:* - ```\"/_*\"``` - ```\"/raw/example.jpg\"``` - ```\"/image/example.jpg\"``` - ```\"/image/customers/abc/_*\"``` You may only use ```*``` at the end of the pattern. You must not include your account ID prefix in the pattern. */ async resetCache(params: ResetCacheOperationParams): Promise { const query: any = {}; diff --git a/src/public/shared/generated/apis/FileApi.ts b/src/public/shared/generated/apis/FileApi.ts index 16f497b..6c86939 100644 --- a/src/public/shared/generated/apis/FileApi.ts +++ b/src/public/shared/generated/apis/FileApi.ts @@ -82,6 +82,13 @@ export interface DownloadFileParams { */ cacheTtl?: number; + /** + * Specifies the maximum amount of time, in seconds, that 404 responses will be cached in the Bytescale CDN's edge cache. + * + * Default: Please refer to your account's default cache settings in the Bytescale Dashboard. + */ + cacheTtlNotFound?: number; + /** * Downloads the latest version of your file (if you have overwritten it) when added to the URL with a unique value. * @@ -165,6 +172,13 @@ export interface ProcessFileParams { */ cacheTtl?: number; + /** + * Specifies the maximum amount of time, in seconds, that 404 responses will be cached in the Bytescale CDN's edge cache. + * + * Default: Please refer to your account's default cache settings in the Bytescale Dashboard. + */ + cacheTtlNotFound?: number; + /** * Parameters to submit to the File Processing API (e.g. the Image Processing API). * @@ -344,6 +358,10 @@ export class FileApi extends runtime.BaseAPI { query["cache_ttl"] = params.cacheTtl; } + if (params.cacheTtlNotFound !== undefined) { + query["cache_ttl_not_found"] = params.cacheTtlNotFound; + } + if (params.version !== undefined) { query["version"] = params.version; } @@ -428,6 +446,10 @@ export class FileApi extends runtime.BaseAPI { query["cache_ttl"] = params.cacheTtl; } + if (params.cacheTtlNotFound !== undefined) { + query["cache_ttl_not_found"] = params.cacheTtlNotFound; + } + if (params.transformationParams !== undefined) { query["transformationParams"] = params.transformationParams; } diff --git a/src/public/shared/generated/models/index.ts b/src/public/shared/generated/models/index.ts index 5de77f4..0d27fc5 100644 --- a/src/public/shared/generated/models/index.ts +++ b/src/public/shared/generated/models/index.ts @@ -1936,7 +1936,7 @@ export interface R2StorageCredentials { * * *Warning:* Resetting the permanent cache (by setting ```resetPermanentCache: true```) may lead to a significant increase in processing time if numerous file transformations need to be re-performed upon their next request. * - * *Recommended:* Prevent cache resets by adding a ```?v=``` querystring parameter to your URLs. This ensures your URLs change when your files change, eliminating the need for cache resets. The `etag` field is returned by GetFileDetails and all upload operations. + * *Recommended:* Prevent cache resets by adding a ```?v=``` querystring parameter to your URLs. This ensures your URLs change when your files change, eliminating the need for cache resets. The `etag` field is returned by GetFileDetails and all upload operations, and can be saved to your database. * * *Example patterns:* *