diff --git a/.openapi-generator-config.json b/.openapi-generator-config.json index f3e40e6..cf7726b 100644 --- a/.openapi-generator-config.json +++ b/.openapi-generator-config.json @@ -3,7 +3,7 @@ "gitUserId": "quantcdn", "gitRepoId": "quant-ts-client", "npmName": "@quantcdn/quant-client", - "npmVersion": "4.12.0", + "npmVersion": "4.13.0", "packageName": "quant-client", "projectName": "quant-client", "projectDescription": "TypeScript client for QuantCDN and QuantCloud Platform APIs", diff --git a/api.ts b/api.ts index 2d317ca..f9c6b9f 100644 --- a/api.ts +++ b/api.ts @@ -4,7 +4,7 @@ * QuantCDN API * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.12.0 + * The version of the OpenAPI document: 4.13.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). @@ -2868,13 +2868,31 @@ export interface Cron { * @type {string} * @memberof Cron */ - 'schedule'?: string; + 'description'?: string | null; /** * * @type {string} * @memberof Cron */ - 'command'?: string; + 'scheduleExpression'?: string; + /** + * + * @type {Array} + * @memberof Cron + */ + 'command'?: Array; + /** + * + * @type {string} + * @memberof Cron + */ + 'targetContainerName'?: string | null; + /** + * + * @type {boolean} + * @memberof Cron + */ + 'isEnabled'?: boolean; } /** * @@ -7454,12 +7472,42 @@ export interface TokensCreate201Response { * @memberof TokensCreate201Response */ 'token'?: string; + /** + * Token ID + * @type {number} + * @memberof TokensCreate201Response + */ + 'id'?: number; /** * * @type {string} * @memberof TokensCreate201Response */ 'name'?: string; + /** + * + * @type {Array} + * @memberof TokensCreate201Response + */ + 'scopes'?: Array | null; + /** + * + * @type {Array} + * @memberof TokensCreate201Response + */ + 'projects'?: Array | null; + /** + * + * @type {string} + * @memberof TokensCreate201Response + */ + 'preset'?: string | null; + /** + * + * @type {string} + * @memberof TokensCreate201Response + */ + 'expires_at'?: string | null; /** * * @type {string} @@ -7479,7 +7527,41 @@ export interface TokensCreateRequest { * @memberof TokensCreateRequest */ 'name': string; + /** + * Preset scope bundle + * @type {string} + * @memberof TokensCreateRequest + */ + 'preset'?: string | null; + /** + * Individual scopes (mutually exclusive with preset) + * @type {Array} + * @memberof TokensCreateRequest + */ + 'scopes'?: Array | null; + /** + * Project IDs to restrict this token to + * @type {Array} + * @memberof TokensCreateRequest + */ + 'projects'?: Array | null; + /** + * Token expiration period + * @type {string} + * @memberof TokensCreateRequest + */ + 'expires_in'?: TokensCreateRequestExpiresInEnum | null; } + +export const TokensCreateRequestExpiresInEnum = { + _30d: '30d', + _90d: '90d', + _365d: '365d', + Never: 'never' +} as const; + +export type TokensCreateRequestExpiresInEnum = typeof TokensCreateRequestExpiresInEnum[keyof typeof TokensCreateRequestExpiresInEnum]; + /** * * @export diff --git a/common.ts b/common.ts index ad48064..4b0107a 100644 --- a/common.ts +++ b/common.ts @@ -4,7 +4,7 @@ * QuantCDN API * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.12.0 + * The version of the OpenAPI document: 4.13.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/configuration.ts b/configuration.ts index 0c775bf..091f116 100644 --- a/configuration.ts +++ b/configuration.ts @@ -4,7 +4,7 @@ * QuantCDN API * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.12.0 + * The version of the OpenAPI document: 4.13.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/docs/Cron.md b/docs/Cron.md index ab00773..7291d01 100644 --- a/docs/Cron.md +++ b/docs/Cron.md @@ -6,8 +6,11 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | | [optional] [default to undefined] -**schedule** | **string** | | [optional] [default to undefined] -**command** | **string** | | [optional] [default to undefined] +**description** | **string** | | [optional] [default to undefined] +**scheduleExpression** | **string** | | [optional] [default to undefined] +**command** | **Array<string>** | | [optional] [default to undefined] +**targetContainerName** | **string** | | [optional] [default to undefined] +**isEnabled** | **boolean** | | [optional] [default to undefined] ## Example @@ -16,8 +19,11 @@ import { Cron } from '@quantcdn/quant-client'; const instance: Cron = { name, - schedule, + description, + scheduleExpression, command, + targetContainerName, + isEnabled, }; ``` diff --git a/docs/TokensApi.md b/docs/TokensApi.md index e9bbee4..79b9adb 100644 --- a/docs/TokensApi.md +++ b/docs/TokensApi.md @@ -61,6 +61,7 @@ const { status, data } = await apiInstance.tokensCreate( |**201** | Token created. The plain token is returned once and cannot be retrieved again. | - | |**400** | Bad request. | - | |**403** | Access is forbidden. | - | +|**422** | Validation error. | - | [[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md) diff --git a/docs/TokensCreate201Response.md b/docs/TokensCreate201Response.md index 566ffbe..c03d17a 100644 --- a/docs/TokensCreate201Response.md +++ b/docs/TokensCreate201Response.md @@ -6,7 +6,12 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **token** | **string** | The plain text token (shown once) | [optional] [default to undefined] +**id** | **number** | Token ID | [optional] [default to undefined] **name** | **string** | | [optional] [default to undefined] +**scopes** | **Array<string>** | | [optional] [default to undefined] +**projects** | **Array<number>** | | [optional] [default to undefined] +**preset** | **string** | | [optional] [default to undefined] +**expires_at** | **string** | | [optional] [default to undefined] **created_at** | **string** | | [optional] [default to undefined] ## Example @@ -16,7 +21,12 @@ import { TokensCreate201Response } from '@quantcdn/quant-client'; const instance: TokensCreate201Response = { token, + id, name, + scopes, + projects, + preset, + expires_at, created_at, }; ``` diff --git a/docs/TokensCreateRequest.md b/docs/TokensCreateRequest.md index a8b8690..ed1789c 100644 --- a/docs/TokensCreateRequest.md +++ b/docs/TokensCreateRequest.md @@ -6,6 +6,10 @@ Name | Type | Description | Notes ------------ | ------------- | ------------- | ------------- **name** | **string** | Name for the token | [default to undefined] +**preset** | **string** | Preset scope bundle | [optional] [default to undefined] +**scopes** | **Array<string>** | Individual scopes (mutually exclusive with preset) | [optional] [default to undefined] +**projects** | **Array<number>** | Project IDs to restrict this token to | [optional] [default to undefined] +**expires_in** | **string** | Token expiration period | [optional] [default to undefined] ## Example @@ -14,6 +18,10 @@ import { TokensCreateRequest } from '@quantcdn/quant-client'; const instance: TokensCreateRequest = { name, + preset, + scopes, + projects, + expires_in, }; ``` diff --git a/index.ts b/index.ts index 9466acb..24e22c7 100644 --- a/index.ts +++ b/index.ts @@ -4,7 +4,7 @@ * QuantCDN API * Unified API for QuantCDN Admin and QuantCloud Platform services * - * The version of the OpenAPI document: 4.12.0 + * The version of the OpenAPI document: 4.13.0 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). diff --git a/package-lock.json b/package-lock.json index e674f64..f9bfaff 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@quantcdn/quant-client", - "version": "4.12.0", + "version": "4.13.0", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@quantcdn/quant-client", - "version": "4.12.0", + "version": "4.13.0", "license": "MIT", "dependencies": { "axios": "^1.6.1" diff --git a/package.json b/package.json index 3b5779c..302b70a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@quantcdn/quant-client", - "version": "4.12.0", + "version": "4.13.0", "description": "OpenAPI client for @quantcdn/quant-client", "author": "QuantCDN", "repository": {