Skip to content

Commit

Permalink
Regenerate SDKs
Browse files Browse the repository at this point in the history
  • Loading branch information
ljwagerfield committed May 3, 2024
1 parent fadecb1 commit 3673558
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/public/shared/generated/apis/CacheApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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=<etag>``` 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=<etag>``` 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<AsyncResponse> {
const query: any = {};
Expand Down
22 changes: 22 additions & 0 deletions src/public/shared/generated/apis/FileApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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.
*
Expand Down Expand Up @@ -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).
*
Expand Down Expand Up @@ -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;
}
Expand Down Expand Up @@ -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;
}
Expand Down
2 changes: 1 addition & 1 deletion src/public/shared/generated/models/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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=<etag>``` 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=<etag>``` 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:*
*
Expand Down

0 comments on commit 3673558

Please sign in to comment.