diff --git a/packages/warp-cache/package.json b/packages/warp-cache/package.json index b3d6ad3e..31093db6 100644 --- a/packages/warp-cache/package.json +++ b/packages/warp-cache/package.json @@ -1,6 +1,6 @@ { "name": "github-actions.warp-cache", - "version": "1.1.11", + "version": "1.1.12", "preview": true, "description": "Github action to use WarpBuild's in-house cache offering", "keywords": [ diff --git a/packages/warp-cache/src/cache.ts b/packages/warp-cache/src/cache.ts index a5d89ad1..d27d1329 100644 --- a/packages/warp-cache/src/cache.ts +++ b/packages/warp-cache/src/cache.ts @@ -173,29 +173,6 @@ export async function restoreCache( const archiveLocation = `gs://${cacheEntry.gcs?.bucket_name}/${cacheEntry.gcs?.cache_key}` - /* - * Alternate, Multipart download method for GCS - await cacheHttpClient.downloadCache( - cacheEntry.provider, - archiveLocation, - archivePath, - cacheEntry.gcs?.short_lived_token?.access_token ?? '' - ) - - if (core.isDebug()) { - await listTar(archivePath, compressionMethod) - } - - const archiveFileSize = utils.getArchiveFileSizeInBytes(archivePath) - core.info( - `Cache Size: ~${Math.round( - archiveFileSize / (1024 * 1024) - )} MB (${archiveFileSize} B)` - ) - - await extractTar(archivePath, compressionMethod) - */ - // For GCS, we do a streaming download which means that we extract the archive while we are downloading it. let readStream: NodeJS.ReadableStream | undefined @@ -278,7 +255,7 @@ export async function restoreCache( } } - return cacheKey + return cacheEntry?.cache_entry?.cache_user_given_key ?? cacheKey } catch (error) { const typedError = error as Error if (typedError.name === ValidationError.name) { diff --git a/packages/warp-cache/src/internal/cacheHttpClient.ts b/packages/warp-cache/src/internal/cacheHttpClient.ts index f0219999..c83f999d 100644 --- a/packages/warp-cache/src/internal/cacheHttpClient.ts +++ b/packages/warp-cache/src/internal/cacheHttpClient.ts @@ -434,7 +434,10 @@ export async function saveCache( core.debug('Committing cache') commitCacheResponse = await commitCache(cacheKey, cacheVersion) - cacheKeyResponse = commitCacheResponse.result?.gcs?.cache_key ?? '' + cacheKeyResponse = + commitCacheResponse.result?.cache_entry?.cache_user_given_key ?? + commitCacheResponse.result?.gcs?.cache_key ?? + '' break } } diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/.openapi-generator/FILES b/packages/warp-cache/src/internal/warpcache-ts-sdk/.openapi-generator/FILES index 1181d96a..531fb8d3 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/.openapi-generator/FILES +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/.openapi-generator/FILES @@ -10,9 +10,11 @@ configuration.ts git_push.sh index.ts models/commons-append-operation-input.ts +models/commons-cache-entry-with-stat.ts models/commons-cache-entry.ts models/commons-commit-cache-request.ts models/commons-commit-cache-response.ts +models/commons-daily-operations-breakdown.ts models/commons-delete-cache-request.ts models/commons-delete-cache-response.ts models/commons-gcscommit-cache-response.ts @@ -21,6 +23,11 @@ models/commons-gcsget-cache-reponse.ts models/commons-gcsreserve-cache-response.ts models/commons-get-cache-request.ts models/commons-get-cache-response.ts +models/commons-get-cache-stats-request.ts +models/commons-get-cache-stats-response.ts +models/commons-list-cache-repos-response.ts +models/commons-list-cache-request.ts +models/commons-list-cache-response.ts models/commons-operation.ts models/commons-reserve-cache-request.ts models/commons-reserve-cache-response.ts diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/api.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/api.ts index 7e2a1dbc..36dd68f9 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/api.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/api.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/api/default-api.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/api/default-api.ts index f5e134e3..2d750983 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/api/default-api.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/api/default-api.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -24,6 +24,8 @@ import { BASE_PATH, COLLECTION_FORMATS, RequestArgs, BaseAPI, RequiredError, ope // @ts-ignore import { CommonsAppendOperationInput } from '../models'; // @ts-ignore +import { CommonsCacheEntry } from '../models'; +// @ts-ignore import { CommonsCommitCacheRequest } from '../models'; // @ts-ignore import { CommonsCommitCacheResponse } from '../models'; @@ -36,6 +38,16 @@ import { CommonsGetCacheRequest } from '../models'; // @ts-ignore import { CommonsGetCacheResponse } from '../models'; // @ts-ignore +import { CommonsGetCacheStatsRequest } from '../models'; +// @ts-ignore +import { CommonsGetCacheStatsResponse } from '../models'; +// @ts-ignore +import { CommonsListCacheReposResponse } from '../models'; +// @ts-ignore +import { CommonsListCacheRequest } from '../models'; +// @ts-ignore +import { CommonsListCacheResponse } from '../models'; +// @ts-ignore import { CommonsOperation } from '../models'; // @ts-ignore import { CommonsReserveCacheRequest } from '../models'; @@ -115,6 +127,43 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati options: localVarRequestOptions, }; }, + /** + * delete cache by id + * @summary delete cache by id + * @param {string} cacheId Cache ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheDeleteCacheIdDelete: async (cacheId: string, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'cacheId' is not null or undefined + assertParamExists('v1CacheDeleteCacheIdDelete', 'cacheId', cacheId) + const localVarPath = `/v1/cache/delete/{cacheId}` + .replace(`{${"cacheId"}}`, encodeURIComponent(String(cacheId))); + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JWTKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * delete cache * @summary delete cache @@ -187,6 +236,117 @@ export const DefaultApiAxiosParamCreator = function (configuration?: Configurati options: localVarRequestOptions, }; }, + /** + * get cache stats + * @summary get cache stats + * @param {CommonsGetCacheStatsRequest} body Get Cache Stats Request Body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheGetStatsPost: async (body: CommonsGetCacheStatsRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('v1CacheGetStatsPost', 'body', body) + const localVarPath = `/v1/cache/get-stats`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JWTKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list cache + * @summary list cache + * @param {CommonsListCacheRequest} body List Cache Request Body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheListPost: async (body: CommonsListCacheRequest, options: RawAxiosRequestConfig = {}): Promise => { + // verify required parameter 'body' is not null or undefined + assertParamExists('v1CacheListPost', 'body', body) + const localVarPath = `/v1/cache/list`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JWTKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + localVarHeaderParameter['Content-Type'] = 'application/json'; + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration) + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, + /** + * list cache repos + * @summary list cache repos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheListReposGet: async (options: RawAxiosRequestConfig = {}): Promise => { + const localVarPath = `/v1/cache/list-repos`; + // use dummy base URL string because the URL constructor only accepts absolute URLs. + const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL); + let baseOptions; + if (configuration) { + baseOptions = configuration.baseOptions; + } + + const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options}; + const localVarHeaderParameter = {} as any; + const localVarQueryParameter = {} as any; + + // authentication JWTKeyAuth required + await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration) + + + + setSearchParams(localVarUrlObj, localVarQueryParameter); + let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {}; + localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers}; + + return { + url: toPathString(localVarUrlObj), + options: localVarRequestOptions, + }; + }, /** * reserve cache * @summary reserve cache @@ -294,6 +454,19 @@ export const DefaultApiFp = function(configuration?: Configuration) { const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheCommitPost']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, + /** + * delete cache by id + * @summary delete cache by id + * @param {string} cacheId Cache ID + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async v1CacheDeleteCacheIdDelete(cacheId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheDeleteCacheIdDelete(cacheId, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheDeleteCacheIdDelete']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, /** * delete cache * @summary delete cache @@ -320,6 +493,44 @@ export const DefaultApiFp = function(configuration?: Configuration) { const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheGetPost']?.[localVarOperationServerIndex]?.url; return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); }, + /** + * get cache stats + * @summary get cache stats + * @param {CommonsGetCacheStatsRequest} body Get Cache Stats Request Body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async v1CacheGetStatsPost(body: CommonsGetCacheStatsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheGetStatsPost(body, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheGetStatsPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * list cache + * @summary list cache + * @param {CommonsListCacheRequest} body List Cache Request Body + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async v1CacheListPost(body: CommonsListCacheRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheListPost(body, options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheListPost']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, + /** + * list cache repos + * @summary list cache repos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + async v1CacheListReposGet(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise> { + const localVarAxiosArgs = await localVarAxiosParamCreator.v1CacheListReposGet(options); + const localVarOperationServerIndex = configuration?.serverIndex ?? 0; + const localVarOperationServerBasePath = operationServerMap['DefaultApi.v1CacheListReposGet']?.[localVarOperationServerIndex]?.url; + return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath); + }, /** * reserve cache * @summary reserve cache @@ -375,6 +586,16 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa v1CacheCommitPost(requestParameters: DefaultApiV1CacheCommitPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.v1CacheCommitPost(requestParameters.body, options).then((request) => request(axios, basePath)); }, + /** + * delete cache by id + * @summary delete cache by id + * @param {DefaultApiV1CacheDeleteCacheIdDeleteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheDeleteCacheIdDelete(requestParameters: DefaultApiV1CacheDeleteCacheIdDeleteRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.v1CacheDeleteCacheIdDelete(requestParameters.cacheId, options).then((request) => request(axios, basePath)); + }, /** * delete cache * @summary delete cache @@ -395,6 +616,35 @@ export const DefaultApiFactory = function (configuration?: Configuration, basePa v1CacheGetPost(requestParameters: DefaultApiV1CacheGetPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { return localVarFp.v1CacheGetPost(requestParameters.body, options).then((request) => request(axios, basePath)); }, + /** + * get cache stats + * @summary get cache stats + * @param {DefaultApiV1CacheGetStatsPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheGetStatsPost(requestParameters: DefaultApiV1CacheGetStatsPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.v1CacheGetStatsPost(requestParameters.body, options).then((request) => request(axios, basePath)); + }, + /** + * list cache + * @summary list cache + * @param {DefaultApiV1CacheListPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheListPost(requestParameters: DefaultApiV1CacheListPostRequest, options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.v1CacheListPost(requestParameters.body, options).then((request) => request(axios, basePath)); + }, + /** + * list cache repos + * @summary list cache repos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + */ + v1CacheListReposGet(options?: RawAxiosRequestConfig): AxiosPromise { + return localVarFp.v1CacheListReposGet(options).then((request) => request(axios, basePath)); + }, /** * reserve cache * @summary reserve cache @@ -432,6 +682,20 @@ export interface DefaultApiV1CacheCommitPostRequest { readonly body: CommonsCommitCacheRequest } +/** + * Request parameters for v1CacheDeleteCacheIdDelete operation in DefaultApi. + * @export + * @interface DefaultApiV1CacheDeleteCacheIdDeleteRequest + */ +export interface DefaultApiV1CacheDeleteCacheIdDeleteRequest { + /** + * Cache ID + * @type {string} + * @memberof DefaultApiV1CacheDeleteCacheIdDelete + */ + readonly cacheId: string +} + /** * Request parameters for v1CacheDeletePost operation in DefaultApi. * @export @@ -460,6 +724,34 @@ export interface DefaultApiV1CacheGetPostRequest { readonly body: CommonsGetCacheRequest } +/** + * Request parameters for v1CacheGetStatsPost operation in DefaultApi. + * @export + * @interface DefaultApiV1CacheGetStatsPostRequest + */ +export interface DefaultApiV1CacheGetStatsPostRequest { + /** + * Get Cache Stats Request Body + * @type {CommonsGetCacheStatsRequest} + * @memberof DefaultApiV1CacheGetStatsPost + */ + readonly body: CommonsGetCacheStatsRequest +} + +/** + * Request parameters for v1CacheListPost operation in DefaultApi. + * @export + * @interface DefaultApiV1CacheListPostRequest + */ +export interface DefaultApiV1CacheListPostRequest { + /** + * List Cache Request Body + * @type {CommonsListCacheRequest} + * @memberof DefaultApiV1CacheListPost + */ + readonly body: CommonsListCacheRequest +} + /** * Request parameters for v1CacheReservePost operation in DefaultApi. * @export @@ -518,6 +810,18 @@ export class DefaultApi extends BaseAPI { return DefaultApiFp(this.configuration).v1CacheCommitPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } + /** + * delete cache by id + * @summary delete cache by id + * @param {DefaultApiV1CacheDeleteCacheIdDeleteRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public v1CacheDeleteCacheIdDelete(requestParameters: DefaultApiV1CacheDeleteCacheIdDeleteRequest, options?: RawAxiosRequestConfig) { + return DefaultApiFp(this.configuration).v1CacheDeleteCacheIdDelete(requestParameters.cacheId, options).then((request) => request(this.axios, this.basePath)); + } + /** * delete cache * @summary delete cache @@ -542,6 +846,41 @@ export class DefaultApi extends BaseAPI { return DefaultApiFp(this.configuration).v1CacheGetPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); } + /** + * get cache stats + * @summary get cache stats + * @param {DefaultApiV1CacheGetStatsPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public v1CacheGetStatsPost(requestParameters: DefaultApiV1CacheGetStatsPostRequest, options?: RawAxiosRequestConfig) { + return DefaultApiFp(this.configuration).v1CacheGetStatsPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list cache + * @summary list cache + * @param {DefaultApiV1CacheListPostRequest} requestParameters Request parameters. + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public v1CacheListPost(requestParameters: DefaultApiV1CacheListPostRequest, options?: RawAxiosRequestConfig) { + return DefaultApiFp(this.configuration).v1CacheListPost(requestParameters.body, options).then((request) => request(this.axios, this.basePath)); + } + + /** + * list cache repos + * @summary list cache repos + * @param {*} [options] Override http request option. + * @throws {RequiredError} + * @memberof DefaultApi + */ + public v1CacheListReposGet(options?: RawAxiosRequestConfig) { + return DefaultApiFp(this.configuration).v1CacheListReposGet(options).then((request) => request(this.axios, this.basePath)); + } + /** * reserve cache * @summary reserve cache diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/base.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/base.ts index 794123f1..ab5981c8 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/base.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/base.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -19,7 +19,7 @@ import type { Configuration } from './configuration'; import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios'; import globalAxios from 'axios'; -export const BASE_PATH = "http://localhost".replace(/\/+$/, ""); +export const BASE_PATH = "https://api.warpbuild.com/api/v1/backend-cache".replace(/\/+$/, ""); /** * diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/common.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/common.ts index 674fad9c..387e1697 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/common.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/common.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/configuration.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/configuration.ts index a33851c5..de637a36 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/configuration.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/configuration.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/index.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/index.ts index ef3098fe..8149a266 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/index.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/index.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-append-operation-input.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-append-operation-input.ts index 53b1c901..7264652b 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-append-operation-input.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-append-operation-input.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry-with-stat.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry-with-stat.ts new file mode 100644 index 00000000..fc14a70e --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry-with-stat.ts @@ -0,0 +1,108 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CommonsCacheEntryWithStat + */ +export interface CommonsCacheEntryWithStat { + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'cache_key'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'cache_user_given_key'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'cache_version'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'created_at'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'id'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'last_used_at'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'organization_id'?: string; + /** + * + * @type {number} + * @memberof CommonsCacheEntryWithStat + */ + 'size'?: number; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'storage_backend_id'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'storage_backend_location'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'updated_at'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'vcs_organization_name'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'vcs_ref'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntryWithStat + */ + 'vcs_repository_name'?: string; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry.ts index c50acc0f..03bbe254 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-cache-entry.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -26,6 +26,12 @@ export interface CommonsCacheEntry { * @memberof CommonsCacheEntry */ 'cache_key'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntry + */ + 'cache_user_given_key'?: string; /** * * @type {string} @@ -56,6 +62,12 @@ export interface CommonsCacheEntry { * @memberof CommonsCacheEntry */ 'storage_backend_id'?: string; + /** + * + * @type {string} + * @memberof CommonsCacheEntry + */ + 'storage_backend_location'?: string; /** * * @type {string} diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-request.ts index 1be9a8d0..adf9e6a5 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-request.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-request.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-response.ts index 29e295c1..17b913b4 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-commit-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-daily-operations-breakdown.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-daily-operations-breakdown.ts new file mode 100644 index 00000000..091de65c --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-daily-operations-breakdown.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CommonsDailyOperationsBreakdown + */ +export interface CommonsDailyOperationsBreakdown { + /** + * + * @type {number} + * @memberof CommonsDailyOperationsBreakdown + */ + 'count'?: number; + /** + * + * @type {number} + * @memberof CommonsDailyOperationsBreakdown + */ + 'cumulative_count'?: number; + /** + * + * @type {number} + * @memberof CommonsDailyOperationsBreakdown + */ + 'cumulative_size'?: number; + /** + * + * @type {string} + * @memberof CommonsDailyOperationsBreakdown + */ + 'date'?: string; + /** + * + * @type {number} + * @memberof CommonsDailyOperationsBreakdown + */ + 'size'?: number; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-request.ts index c736959c..bc6e9495 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-request.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-request.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-response.ts index 2c090c55..21465a58 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-delete-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcscommit-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcscommit-cache-response.ts index 74449fc7..ad0cd624 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcscommit-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcscommit-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsdelete-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsdelete-cache-response.ts index 36dd7938..2b72457b 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsdelete-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsdelete-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsget-cache-reponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsget-cache-reponse.ts index c97823fd..4cdbff29 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsget-cache-reponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsget-cache-reponse.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsreserve-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsreserve-cache-response.ts index 776491ef..b9addbd4 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsreserve-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-gcsreserve-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-request.ts index 978de0be..f24c7277 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-request.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-request.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-response.ts index af8de777..8953b339 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-request.ts new file mode 100644 index 00000000..03c0046a --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-request.ts @@ -0,0 +1,54 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CommonsGetCacheStatsRequest + */ +export interface CommonsGetCacheStatsRequest { + /** + * + * @type {string} + * @memberof CommonsGetCacheStatsRequest + */ + 'search_text'?: string; + /** + * + * @type {string} + * @memberof CommonsGetCacheStatsRequest + */ + 'stats_from_time'?: string; + /** + * + * @type {string} + * @memberof CommonsGetCacheStatsRequest + */ + 'stats_to_time'?: string; + /** + * + * @type {Array} + * @memberof CommonsGetCacheStatsRequest + */ + 'vcs_refs'?: Array; + /** + * + * @type {Array} + * @memberof CommonsGetCacheStatsRequest + */ + 'vcs_repositories'?: Array; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-response.ts new file mode 100644 index 00000000..03e09e56 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-get-cache-stats-response.ts @@ -0,0 +1,63 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CommonsDailyOperationsBreakdown } from './commons-daily-operations-breakdown'; + +/** + * + * @export + * @interface CommonsGetCacheStatsResponse + */ +export interface CommonsGetCacheStatsResponse { + /** + * + * @type {number} + * @memberof CommonsGetCacheStatsResponse + */ + 'average_cache_operations'?: number; + /** + * + * @type {number} + * @memberof CommonsGetCacheStatsResponse + */ + 'average_cache_usage'?: number; + /** + * + * @type {number} + * @memberof CommonsGetCacheStatsResponse + */ + 'current_total_cache_size'?: number; + /** + * + * @type {Array} + * @memberof CommonsGetCacheStatsResponse + */ + 'daily_breakdown'?: Array; + /** + * + * @type {number} + * @memberof CommonsGetCacheStatsResponse + */ + 'total_cache_operations'?: number; + /** + * + * @type {Array} + * @memberof CommonsGetCacheStatsResponse + */ + 'unique_vcs_refs'?: Array; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-repos-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-repos-response.ts new file mode 100644 index 00000000..281135ae --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-repos-response.ts @@ -0,0 +1,30 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CommonsListCacheReposResponse + */ +export interface CommonsListCacheReposResponse { + /** + * + * @type {Array} + * @memberof CommonsListCacheReposResponse + */ + 'vcs_repositories'?: Array; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-request.ts new file mode 100644 index 00000000..87dfcc49 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-request.ts @@ -0,0 +1,66 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + + +/** + * + * @export + * @interface CommonsListCacheRequest + */ +export interface CommonsListCacheRequest { + /** + * + * @type {number} + * @memberof CommonsListCacheRequest + */ + 'page'?: number; + /** + * + * @type {number} + * @memberof CommonsListCacheRequest + */ + 'per_page'?: number; + /** + * + * @type {string} + * @memberof CommonsListCacheRequest + */ + 'search_text'?: string; + /** + * + * @type {string} + * @memberof CommonsListCacheRequest + */ + 'sort_by_field'?: string; + /** + * + * @type {string} + * @memberof CommonsListCacheRequest + */ + 'sort_order'?: string; + /** + * + * @type {Array} + * @memberof CommonsListCacheRequest + */ + 'vcs_refs'?: Array; + /** + * + * @type {Array} + * @memberof CommonsListCacheRequest + */ + 'vcs_repositories'?: Array; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-response.ts new file mode 100644 index 00000000..959551ad --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-list-cache-response.ts @@ -0,0 +1,57 @@ +/* tslint:disable */ +/* eslint-disable */ +/** + * WarpCache + * Caching server for WarpBuild + * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com + * + * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). + * https://openapi-generator.tech + * Do not edit the class manually. + */ + + +// May contain unused imports in some cases +// @ts-ignore +import { CommonsCacheEntryWithStat } from './commons-cache-entry-with-stat'; + +/** + * + * @export + * @interface CommonsListCacheResponse + */ +export interface CommonsListCacheResponse { + /** + * + * @type {Array} + * @memberof CommonsListCacheResponse + */ + 'cache_entries_with_stat'?: Array; + /** + * + * @type {{ [key: string]: string; }} + * @memberof CommonsListCacheResponse + */ + 'sortable_fields'?: { [key: string]: string; }; + /** + * + * @type {number} + * @memberof CommonsListCacheResponse + */ + 'total_entries'?: number; + /** + * + * @type {number} + * @memberof CommonsListCacheResponse + */ + 'total_pages'?: number; + /** + * + * @type {Array} + * @memberof CommonsListCacheResponse + */ + 'unique_vcs_refs'?: Array; +} + diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-operation.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-operation.ts index e8bcb0ac..3ab66e5c 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-operation.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-operation.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech @@ -56,6 +56,18 @@ export interface CommonsOperation { * @memberof CommonsOperation */ 'organization_id'?: string; + /** + * + * @type {number} + * @memberof CommonsOperation + */ + 'size'?: number; + /** + * + * @type {string} + * @memberof CommonsOperation + */ + 'time'?: string; /** * * @type {string} diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-request.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-request.ts index 3ef82167..89e7667e 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-request.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-request.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-response.ts index d24499a9..2135d90a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-reserve-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-commit-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-commit-cache-response.ts index f7afafde..4494d7c6 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-commit-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-commit-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-delete-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-delete-cache-response.ts index 0a7069eb..6285f52f 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-delete-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-delete-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-get-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-get-cache-response.ts index 9dabfcec..88ef3e6c 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-get-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-get-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-reserve-cache-response.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-reserve-cache-response.ts index 7257cd3e..1357c5b6 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-reserve-cache-response.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-s3-reserve-cache-response.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-short-lived-token.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-short-lived-token.ts index 82cc84f2..d172011a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-short-lived-token.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/commons-short-lived-token.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/index.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/index.ts index ebce51f6..fd4b170f 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/index.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/index.ts @@ -1,7 +1,9 @@ export * from './commons-append-operation-input'; export * from './commons-cache-entry'; +export * from './commons-cache-entry-with-stat'; export * from './commons-commit-cache-request'; export * from './commons-commit-cache-response'; +export * from './commons-daily-operations-breakdown'; export * from './commons-delete-cache-request'; export * from './commons-delete-cache-response'; export * from './commons-gcscommit-cache-response'; @@ -10,6 +12,11 @@ export * from './commons-gcsget-cache-reponse'; export * from './commons-gcsreserve-cache-response'; export * from './commons-get-cache-request'; export * from './commons-get-cache-response'; +export * from './commons-get-cache-stats-request'; +export * from './commons-get-cache-stats-response'; +export * from './commons-list-cache-repos-response'; +export * from './commons-list-cache-request'; +export * from './commons-list-cache-response'; export * from './commons-operation'; export * from './commons-reserve-cache-request'; export * from './commons-reserve-cache-response'; diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/types-completed-part.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/types-completed-part.ts index 2c9e8d2c..e009a269 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/types-completed-part.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/types-completed-part.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/warp-build-apierror.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/warp-build-apierror.ts index b2f0d6b9..b6b5dc83 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/models/warp-build-apierror.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/models/warp-build-apierror.ts @@ -1,11 +1,11 @@ /* tslint:disable */ /* eslint-disable */ /** - * - * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) + * WarpCache + * Caching server for WarpBuild * - * The version of the OpenAPI document: 1.0.0 - * + * The version of the OpenAPI document: 0.1.0 + * Contact: suppport@warpbuild.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schema.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schema.ts index 7981371a..a6ab247d 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schema.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schema.ts @@ -1,11 +1,14 @@ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ + export { $commons_AppendOperationInput } from './schemas/$commons_AppendOperationInput'; export { $commons_CacheAnnotationsMap } from './schemas/$commons_CacheAnnotationsMap'; export { $commons_CacheEntry } from './schemas/$commons_CacheEntry'; +export { $commons_CacheEntryWithStat } from './schemas/$commons_CacheEntryWithStat'; export { $commons_CommitCacheRequest } from './schemas/$commons_CommitCacheRequest'; export { $commons_CommitCacheResponse } from './schemas/$commons_CommitCacheResponse'; +export { $commons_DailyOperationsBreakdown } from './schemas/$commons_DailyOperationsBreakdown'; export { $commons_DeleteCacheRequest } from './schemas/$commons_DeleteCacheRequest'; export { $commons_DeleteCacheResponse } from './schemas/$commons_DeleteCacheResponse'; export { $commons_GCSCommitCacheResponse } from './schemas/$commons_GCSCommitCacheResponse'; @@ -14,6 +17,11 @@ export { $commons_GCSGetCacheReponse } from './schemas/$commons_GCSGetCacheRepon export { $commons_GCSReserveCacheResponse } from './schemas/$commons_GCSReserveCacheResponse'; export { $commons_GetCacheRequest } from './schemas/$commons_GetCacheRequest'; export { $commons_GetCacheResponse } from './schemas/$commons_GetCacheResponse'; +export { $commons_GetCacheStatsRequest } from './schemas/$commons_GetCacheStatsRequest'; +export { $commons_GetCacheStatsResponse } from './schemas/$commons_GetCacheStatsResponse'; +export { $commons_ListCacheReposResponse } from './schemas/$commons_ListCacheReposResponse'; +export { $commons_ListCacheRequest } from './schemas/$commons_ListCacheRequest'; +export { $commons_ListCacheResponse } from './schemas/$commons_ListCacheResponse'; export { $commons_Operation } from './schemas/$commons_Operation'; export { $commons_ReserveCacheRequest } from './schemas/$commons_ReserveCacheRequest'; export { $commons_ReserveCacheResponse } from './schemas/$commons_ReserveCacheResponse'; diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntry.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntry.ts index a376859e..ccab61fd 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntry.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntry.ts @@ -6,6 +6,9 @@ export const $commons_CacheEntry = { cache_key: { type: 'string', }, + cache_user_given_key: { + type: 'string', + }, cache_version: { type: 'string', }, @@ -21,6 +24,9 @@ export const $commons_CacheEntry = { storage_backend_id: { type: 'string', }, + storage_backend_location: { + type: 'string', + }, updated_at: { type: 'string', }, diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntryWithStat.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntryWithStat.ts new file mode 100644 index 00000000..9015e5c3 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CacheEntryWithStat.ts @@ -0,0 +1,49 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_CacheEntryWithStat = { + properties: { + cache_key: { + type: 'string', + }, + cache_user_given_key: { + type: 'string', + }, + cache_version: { + type: 'string', + }, + created_at: { + type: 'string', + }, + id: { + type: 'string', + }, + last_used_at: { + type: 'string', + }, + organization_id: { + type: 'string', + }, + size: { + type: 'number', + }, + storage_backend_id: { + type: 'string', + }, + storage_backend_location: { + type: 'string', + }, + updated_at: { + type: 'string', + }, + vcs_organization_name: { + type: 'string', + }, + vcs_ref: { + type: 'string', + }, + vcs_repository_name: { + type: 'string', + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheRequest.ts index 13b89768..b98e5e99 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheRequest.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheRequest.ts @@ -5,6 +5,9 @@ export const $commons_CommitCacheRequest = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_key: { type: 'string', @@ -23,15 +26,26 @@ export const $commons_CommitCacheRequest = { }, upload_id: { type: 'string', + description: `UploadID + + * This is not supported for GCS cache. When passed this will be ignored. *`, }, upload_key: { type: 'string', + description: `UploadKey + + * This is not supported for GCS cache. When passed this will be ignored. *`, }, vcs_ref: { type: 'string', + description: `VCSRef is the ref of the repository in vcs for which cache is being used. + This can be a branch, git tag, or pull request ref.`, }, vcs_repository: { type: 'string', + description: `VCSRepository is the repository name in vcs. + It can be of the format / or . + While saving the entry, / will be trimmed if passed.`, }, vcs_type: { type: 'string', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheResponse.ts index 602d4364..8268ad1a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_CommitCacheResponse.ts @@ -5,6 +5,9 @@ export const $commons_CommitCacheResponse = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_entry: { type: 'commons_CacheEntry', @@ -20,6 +23,9 @@ export const $commons_CommitCacheResponse = { }, vcs_repository: { type: 'string', + description: `VCSRepository is the repository name in vcs. + It can be of the format / or . + While saving the entry, / will be trimmed if passed.`, }, }, } as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DailyOperationsBreakdown.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DailyOperationsBreakdown.ts new file mode 100644 index 00000000..4ce976c5 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DailyOperationsBreakdown.ts @@ -0,0 +1,22 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_DailyOperationsBreakdown = { + properties: { + count: { + type: 'number', + }, + cumulative_count: { + type: 'number', + }, + cumulative_size: { + type: 'number', + }, + date: { + type: 'string', + }, + size: { + type: 'number', + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheRequest.ts index 0be5db31..1553520e 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheRequest.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheRequest.ts @@ -5,6 +5,9 @@ export const $commons_DeleteCacheRequest = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_key: { type: 'string', @@ -16,9 +19,14 @@ export const $commons_DeleteCacheRequest = { }, vcs_ref: { type: 'string', + description: `VCSRef is the ref of the repository in vcs for which cache is being used. + This can be a branch, git tag, or pull request ref.`, }, vcs_repository: { type: 'string', + description: `VCSRepository is the repository name in vcs. + It can be of the format / or . + While saving the entry, / will be trimmed if passed.`, }, }, } as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheResponse.ts index f2907e5c..f2c78404 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_DeleteCacheResponse.ts @@ -5,6 +5,9 @@ export const $commons_DeleteCacheResponse = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_entry: { type: 'commons_CacheEntry', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSCommitCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSCommitCacheResponse.ts index 02f330ce..3db3a4a7 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSCommitCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSCommitCacheResponse.ts @@ -8,10 +8,14 @@ export const $commons_GCSCommitCacheResponse = { }, cache_key: { type: 'string', + description: `CacheKey is the resolved cache key which might contain some prefix or suffix + in addition to the cache key provided by the user. This is the actual storage + location in gcs.`, isRequired: true, }, method: { type: 'string', + description: `Method contains the auth method to be used to connect to the GCP storage backend`, }, project_id: { type: 'string', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSGetCacheReponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSGetCacheReponse.ts index 196d3192..340537fb 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSGetCacheReponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSGetCacheReponse.ts @@ -14,6 +14,7 @@ export const $commons_GCSGetCacheReponse = { }, method: { type: 'string', + description: `Method contains the auth method to be used to connect to the GCP storage backend`, }, pre_signed_url: { type: 'string', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSReserveCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSReserveCacheResponse.ts index fb154ccf..476a69bd 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSReserveCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GCSReserveCacheResponse.ts @@ -8,10 +8,14 @@ export const $commons_GCSReserveCacheResponse = { }, cache_key: { type: 'string', + description: `CacheKey is the resolved cache key which might contain some prefix or suffix + in addition to the cache key provided by the user. This is the actual storage + location in gcs.`, isRequired: true, }, method: { type: 'string', + description: `Method contains the auth method to be used to connect to the GCP storage backend`, }, project_id: { type: 'string', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheRequest.ts index a5b5fcc4..ae9ba014 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheRequest.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheRequest.ts @@ -5,6 +5,9 @@ export const $commons_GetCacheRequest = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_key: { type: 'string', @@ -22,9 +25,14 @@ export const $commons_GetCacheRequest = { }, vcs_ref: { type: 'string', + description: `VCSRef is the ref of the repository in vcs for which cache is being used. + This can be a branch, git tag, or pull request ref.`, }, vcs_repository: { type: 'string', + description: `VCSRepository is the repository name in vcs. + It can be of the format / or . + While saving the entry, / will be trimmed if passed.`, }, }, } as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheResponse.ts index 9b54b333..002c3229 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheResponse.ts @@ -5,6 +5,9 @@ export const $commons_GetCacheResponse = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_entry: { type: 'commons_CacheEntry', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsRequest.ts new file mode 100644 index 00000000..1fe9589e --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsRequest.ts @@ -0,0 +1,28 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_GetCacheStatsRequest = { + properties: { + search_text: { + type: 'string', + }, + stats_from_time: { + type: 'string', + }, + stats_to_time: { + type: 'string', + }, + vcs_refs: { + type: 'array', + contains: { + type: 'string', + }, + }, + vcs_repositories: { + type: 'array', + contains: { + type: 'string', + }, + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsResponse.ts new file mode 100644 index 00000000..581eeb7a --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_GetCacheStatsResponse.ts @@ -0,0 +1,31 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_GetCacheStatsResponse = { + properties: { + average_cache_operations: { + type: 'number', + }, + average_cache_usage: { + type: 'number', + }, + current_total_cache_size: { + type: 'number', + }, + daily_breakdown: { + type: 'array', + contains: { + type: 'commons_DailyOperationsBreakdown', + }, + }, + total_cache_operations: { + type: 'number', + }, + unique_vcs_refs: { + type: 'array', + contains: { + type: 'string', + }, + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheReposResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheReposResponse.ts new file mode 100644 index 00000000..92c551ac --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheReposResponse.ts @@ -0,0 +1,13 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_ListCacheReposResponse = { + properties: { + vcs_repositories: { + type: 'array', + contains: { + type: 'string', + }, + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheRequest.ts new file mode 100644 index 00000000..756828f2 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheRequest.ts @@ -0,0 +1,34 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_ListCacheRequest = { + properties: { + page: { + type: 'number', + }, + per_page: { + type: 'number', + }, + search_text: { + type: 'string', + }, + sort_by_field: { + type: 'string', + }, + sort_order: { + type: 'string', + }, + vcs_refs: { + type: 'array', + contains: { + type: 'string', + }, + }, + vcs_repositories: { + type: 'array', + contains: { + type: 'string', + }, + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheResponse.ts new file mode 100644 index 00000000..d9f84ea3 --- /dev/null +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ListCacheResponse.ts @@ -0,0 +1,31 @@ +/* istanbul ignore file */ +/* tslint:disable */ +/* eslint-disable */ +export const $commons_ListCacheResponse = { + properties: { + cache_entries_with_stat: { + type: 'array', + contains: { + type: 'commons_CacheEntryWithStat', + }, + }, + sortable_fields: { + type: 'dictionary', + contains: { + type: 'string', + }, + }, + total_entries: { + type: 'number', + }, + total_pages: { + type: 'number', + }, + unique_vcs_refs: { + type: 'array', + contains: { + type: 'string', + }, + }, + }, +} as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_Operation.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_Operation.ts index 9b32d1ed..bd2310bc 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_Operation.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_Operation.ts @@ -22,6 +22,12 @@ export const $commons_Operation = { organization_id: { type: 'string', }, + size: { + type: 'number', + }, + time: { + type: 'string', + }, updated_at: { type: 'string', }, diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheRequest.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheRequest.ts index b9f1b463..34eb9f5a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheRequest.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheRequest.ts @@ -5,6 +5,9 @@ export const $commons_ReserveCacheRequest = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_key: { type: 'string', @@ -16,15 +19,28 @@ export const $commons_ReserveCacheRequest = { }, content_type: { type: 'string', + description: `ContentType contains the content type of the cache. + + * This is not supported for GCS cache. When passed this will be ignored. *`, }, number_of_chunks: { type: 'number', + description: `NumberOfChunks contains the number of chunks the cache will be split into. + Minimum value: 1. + Maximum value: 10000. + + * This is not supported for GCS cache. When passed this will be ignored. *`, }, vcs_ref: { type: 'string', + description: `VCSRef is the ref of the repository in vcs for which cache is being used. + This can be a branch, git tag, or pull request ref.`, }, vcs_repository: { type: 'string', + description: `VCSRepository is the repository name in vcs. + It can be of the format / or . + While saving the entry, / will be trimmed if passed.`, }, }, } as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheResponse.ts index 57d72176..0a55a104 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ReserveCacheResponse.ts @@ -5,6 +5,9 @@ export const $commons_ReserveCacheResponse = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, gcs: { type: 'commons_GCSReserveCacheResponse', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_S3GetCacheResponse.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_S3GetCacheResponse.ts index 0f3d85d2..88550f21 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_S3GetCacheResponse.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_S3GetCacheResponse.ts @@ -5,6 +5,9 @@ export const $commons_S3GetCacheResponse = { properties: { annotations: { type: 'commons_CacheAnnotationsMap', + description: `Annotations is a map of annotations that can be passed as additional + context to the cache service. This is not stored in the cache but is published + in events for tracking purposes.`, }, cache_key: { type: 'string', diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ShortLivedToken.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ShortLivedToken.ts index 228a2a29..0fdb135a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ShortLivedToken.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$commons_ShortLivedToken.ts @@ -5,9 +5,12 @@ export const $commons_ShortLivedToken = { properties: { access_token: { type: 'string', + description: `AccessToken contains the short lived access token to be used to connect to the GCP storage backend`, }, expires_at: { type: 'string', + description: `ExpiresAt contains the expiry time of the short lived access token + format: date-time`, }, }, } as const; \ No newline at end of file diff --git a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$types_CompletedPart.ts b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$types_CompletedPart.ts index 924f56cf..2217543a 100644 --- a/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$types_CompletedPart.ts +++ b/packages/warp-cache/src/internal/warpcache-ts-sdk/schemas/$types_CompletedPart.ts @@ -5,21 +5,44 @@ export const $types_CompletedPart = { properties: { ChecksumCRC32: { type: 'string', + description: `The base64-encoded, 32-bit CRC32 checksum of the object. This will only be + present if it was uploaded with the object. With multipart uploads, this may not + be a checksum value of the object. For more information about how checksums are + calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the Amazon S3 User Guide.`, }, ChecksumCRC32C: { type: 'string', + description: `The base64-encoded, 32-bit CRC32C checksum of the object. This will only be + present if it was uploaded with the object. With multipart uploads, this may not + be a checksum value of the object. For more information about how checksums are + calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the Amazon S3 User Guide.`, }, ChecksumSHA1: { type: 'string', + description: `The base64-encoded, 160-bit SHA-1 digest of the object. This will only be + present if it was uploaded with the object. With multipart uploads, this may not + be a checksum value of the object. For more information about how checksums are + calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the Amazon S3 User Guide.`, }, ChecksumSHA256: { type: 'string', + description: `The base64-encoded, 256-bit SHA-256 digest of the object. This will only be + present if it was uploaded with the object. With multipart uploads, this may not + be a checksum value of the object. For more information about how checksums are + calculated with multipart uploads, see Checking object integrity (https://docs.aws.amazon.com/AmazonS3/latest/userguide/checking-object-integrity.html#large-object-checksums) + in the Amazon S3 User Guide.`, }, ETag: { type: 'string', + description: `Entity tag returned when the part was uploaded.`, }, PartNumber: { type: 'number', + description: `Part number that identifies the part. This is a positive integer between 1 and + 10,000.`, }, }, } as const; \ No newline at end of file