Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .openapi-generator-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
88 changes: 85 additions & 3 deletions api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down Expand Up @@ -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<string>}
* @memberof Cron
*/
'command'?: Array<string>;
/**
*
* @type {string}
* @memberof Cron
*/
'targetContainerName'?: string | null;
/**
*
* @type {boolean}
* @memberof Cron
*/
'isEnabled'?: boolean;
}
/**
*
Expand Down Expand Up @@ -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<string>}
* @memberof TokensCreate201Response
*/
'scopes'?: Array<string> | null;
/**
*
* @type {Array<number>}
* @memberof TokensCreate201Response
*/
'projects'?: Array<number> | null;
/**
*
* @type {string}
* @memberof TokensCreate201Response
*/
'preset'?: string | null;
/**
*
* @type {string}
* @memberof TokensCreate201Response
*/
'expires_at'?: string | null;
/**
*
* @type {string}
Expand All @@ -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<string>}
* @memberof TokensCreateRequest
*/
'scopes'?: Array<string> | null;
/**
* Project IDs to restrict this token to
* @type {Array<number>}
* @memberof TokensCreateRequest
*/
'projects'?: Array<number> | 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
Expand Down
2 changes: 1 addition & 1 deletion common.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
2 changes: 1 addition & 1 deletion configuration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
12 changes: 9 additions & 3 deletions docs/Cron.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;string&gt;** | | [optional] [default to undefined]
**targetContainerName** | **string** | | [optional] [default to undefined]
**isEnabled** | **boolean** | | [optional] [default to undefined]

## Example

Expand All @@ -16,8 +19,11 @@ import { Cron } from '@quantcdn/quant-client';

const instance: Cron = {
name,
schedule,
description,
scheduleExpression,
command,
targetContainerName,
isEnabled,
};
```

Expand Down
1 change: 1 addition & 0 deletions docs/TokensApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
10 changes: 10 additions & 0 deletions docs/TokensCreate201Response.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;string&gt;** | | [optional] [default to undefined]
**projects** | **Array&lt;number&gt;** | | [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
Expand All @@ -16,7 +21,12 @@ import { TokensCreate201Response } from '@quantcdn/quant-client';

const instance: TokensCreate201Response = {
token,
id,
name,
scopes,
projects,
preset,
expires_at,
created_at,
};
```
Expand Down
8 changes: 8 additions & 0 deletions docs/TokensCreateRequest.md
Original file line number Diff line number Diff line change
Expand Up @@ -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&lt;string&gt;** | Individual scopes (mutually exclusive with preset) | [optional] [default to undefined]
**projects** | **Array&lt;number&gt;** | Project IDs to restrict this token to | [optional] [default to undefined]
**expires_in** | **string** | Token expiration period | [optional] [default to undefined]

## Example

Expand All @@ -14,6 +18,10 @@ import { TokensCreateRequest } from '@quantcdn/quant-client';

const instance: TokensCreateRequest = {
name,
preset,
scopes,
projects,
expires_in,
};
```

Expand Down
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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).
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand Down
Loading