@quantcdn/quant-client 4.36.0 → 4.38.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +974 -15
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +804 -15
- package/dist/api.js +322 -11
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +804 -15
- package/dist/esm/api.js +312 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -122,6 +122,36 @@ export const ChatInferenceStreamRequestMessagesInnerRoleEnum = {
|
|
|
122
122
|
export const ChatWithAIAgent202ResponseStatusEnum = {
|
|
123
123
|
Queued: 'queued'
|
|
124
124
|
};
|
|
125
|
+
export const CiRunnerPoolConfigTierEnum = {
|
|
126
|
+
Small: 'small',
|
|
127
|
+
Medium: 'medium',
|
|
128
|
+
Large: 'large'
|
|
129
|
+
};
|
|
130
|
+
export const CiRunnerPoolConfigArchitecturesEnum = {
|
|
131
|
+
Arm64: 'arm64',
|
|
132
|
+
X64: 'x64'
|
|
133
|
+
};
|
|
134
|
+
export const CiRunnerPoolConfigNetworkModeEnum = {
|
|
135
|
+
Public: 'public',
|
|
136
|
+
Restricted: 'restricted'
|
|
137
|
+
};
|
|
138
|
+
export const CiRunnerPoolConfigCacheResidencyEnum = {
|
|
139
|
+
AuOnly: 'au-only',
|
|
140
|
+
AllowGithub: 'allow-github'
|
|
141
|
+
};
|
|
142
|
+
export const CiRunnerPoolConfigAlertsInnerTypeEnum = {
|
|
143
|
+
QueueWait: 'queue_wait',
|
|
144
|
+
AtCapacity: 'at_capacity',
|
|
145
|
+
PoolError: 'pool_error',
|
|
146
|
+
LabelsUnfit: 'labels_unfit'
|
|
147
|
+
};
|
|
148
|
+
export const CiRunnerPoolConfigConnectionProviderEnum = {
|
|
149
|
+
Github: 'github'
|
|
150
|
+
};
|
|
151
|
+
export const CiRunnerPoolConfigConnectionStatusEnum = {
|
|
152
|
+
Connected: 'connected',
|
|
153
|
+
Disconnected: 'disconnected'
|
|
154
|
+
};
|
|
125
155
|
export const CiValueKindEnum = {
|
|
126
156
|
Secret: 'secret',
|
|
127
157
|
Var: 'var'
|
|
@@ -461,6 +491,10 @@ export const OrgResourceScopeEnum = {
|
|
|
461
491
|
Org: 'org',
|
|
462
492
|
App: 'app'
|
|
463
493
|
};
|
|
494
|
+
export const OrgResourceEffectiveCacheResidencyEnum = {
|
|
495
|
+
AuOnly: 'au-only',
|
|
496
|
+
AllowGithub: 'allow-github'
|
|
497
|
+
};
|
|
464
498
|
export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
465
499
|
Off: 'off',
|
|
466
500
|
SpotOnly: 'spot-only',
|
|
@@ -1290,6 +1324,19 @@ export const V2RuleRequestTrafficSourceIsNotEnum = {
|
|
|
1290
1324
|
Abuser: 'abuser',
|
|
1291
1325
|
Crawler: 'crawler'
|
|
1292
1326
|
};
|
|
1327
|
+
export const V2RuleScheduleModeEnum = {
|
|
1328
|
+
ActiveDuring: 'active_during',
|
|
1329
|
+
InactiveDuring: 'inactive_during'
|
|
1330
|
+
};
|
|
1331
|
+
export const V2RuleScheduleWeeklyInnerDaysEnum = {
|
|
1332
|
+
Mon: 'mon',
|
|
1333
|
+
Tue: 'tue',
|
|
1334
|
+
Wed: 'wed',
|
|
1335
|
+
Thu: 'thu',
|
|
1336
|
+
Fri: 'fri',
|
|
1337
|
+
Sat: 'sat',
|
|
1338
|
+
Sun: 'sun'
|
|
1339
|
+
};
|
|
1293
1340
|
export const V2RuleServeStaticRequestAsnEnum = {
|
|
1294
1341
|
Any: 'any',
|
|
1295
1342
|
AsnIs: 'asn_is',
|
|
@@ -26053,6 +26100,47 @@ export const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26053
26100
|
options: localVarRequestOptions,
|
|
26054
26101
|
};
|
|
26055
26102
|
}),
|
|
26103
|
+
/**
|
|
26104
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26105
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26106
|
+
* @param {string} organisation The organisation ID
|
|
26107
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26108
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26109
|
+
* @param {*} [options] Override http request option.
|
|
26110
|
+
* @throws {RequiredError}
|
|
26111
|
+
*/
|
|
26112
|
+
deleteCiRunnerPoolCache: (organisation_1, resource_1, ciCacheDeleteRequest_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, ciCacheDeleteRequest_1, ...args_1], void 0, function* (organisation, resource, ciCacheDeleteRequest, options = {}) {
|
|
26113
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26114
|
+
assertParamExists('deleteCiRunnerPoolCache', 'organisation', organisation);
|
|
26115
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26116
|
+
assertParamExists('deleteCiRunnerPoolCache', 'resource', resource);
|
|
26117
|
+
// verify required parameter 'ciCacheDeleteRequest' is not null or undefined
|
|
26118
|
+
assertParamExists('deleteCiRunnerPoolCache', 'ciCacheDeleteRequest', ciCacheDeleteRequest);
|
|
26119
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
26120
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26121
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26122
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26123
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26124
|
+
let baseOptions;
|
|
26125
|
+
if (configuration) {
|
|
26126
|
+
baseOptions = configuration.baseOptions;
|
|
26127
|
+
}
|
|
26128
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
26129
|
+
const localVarHeaderParameter = {};
|
|
26130
|
+
const localVarQueryParameter = {};
|
|
26131
|
+
// authentication BearerAuth required
|
|
26132
|
+
// http bearer authentication required
|
|
26133
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
26134
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26137
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26138
|
+
localVarRequestOptions.data = serializeDataIfNeeded(ciCacheDeleteRequest, localVarRequestOptions, configuration);
|
|
26139
|
+
return {
|
|
26140
|
+
url: toPathString(localVarUrlObj),
|
|
26141
|
+
options: localVarRequestOptions,
|
|
26142
|
+
};
|
|
26143
|
+
}),
|
|
26056
26144
|
/**
|
|
26057
26145
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26058
26146
|
* @summary Delete a shared resource
|
|
@@ -26137,6 +26225,46 @@ export const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26137
26225
|
options: localVarRequestOptions,
|
|
26138
26226
|
};
|
|
26139
26227
|
}),
|
|
26228
|
+
/**
|
|
26229
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26230
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26231
|
+
* @param {string} organisation The organisation ID
|
|
26232
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26233
|
+
* @param {number} [days]
|
|
26234
|
+
* @param {*} [options] Override http request option.
|
|
26235
|
+
* @throws {RequiredError}
|
|
26236
|
+
*/
|
|
26237
|
+
getCiRunnerPoolCacheStats: (organisation_1, resource_1, days_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, days_1, ...args_1], void 0, function* (organisation, resource, days, options = {}) {
|
|
26238
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26239
|
+
assertParamExists('getCiRunnerPoolCacheStats', 'organisation', organisation);
|
|
26240
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26241
|
+
assertParamExists('getCiRunnerPoolCacheStats', 'resource', resource);
|
|
26242
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache/stats`
|
|
26243
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26244
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26247
|
+
let baseOptions;
|
|
26248
|
+
if (configuration) {
|
|
26249
|
+
baseOptions = configuration.baseOptions;
|
|
26250
|
+
}
|
|
26251
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26252
|
+
const localVarHeaderParameter = {};
|
|
26253
|
+
const localVarQueryParameter = {};
|
|
26254
|
+
// authentication BearerAuth required
|
|
26255
|
+
// http bearer authentication required
|
|
26256
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
26257
|
+
if (days !== undefined) {
|
|
26258
|
+
localVarQueryParameter['days'] = days;
|
|
26259
|
+
}
|
|
26260
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26261
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26262
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26263
|
+
return {
|
|
26264
|
+
url: toPathString(localVarUrlObj),
|
|
26265
|
+
options: localVarRequestOptions,
|
|
26266
|
+
};
|
|
26267
|
+
}),
|
|
26140
26268
|
/**
|
|
26141
26269
|
*
|
|
26142
26270
|
* @summary Get a shared resource and its attachments
|
|
@@ -26209,6 +26337,54 @@ export const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26209
26337
|
options: localVarRequestOptions,
|
|
26210
26338
|
};
|
|
26211
26339
|
}),
|
|
26340
|
+
/**
|
|
26341
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26342
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26343
|
+
* @param {string} organisation The organisation ID
|
|
26344
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26345
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26346
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26347
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26348
|
+
* @param {*} [options] Override http request option.
|
|
26349
|
+
* @throws {RequiredError}
|
|
26350
|
+
*/
|
|
26351
|
+
listCiRunnerPoolCache: (organisation_1, resource_1, repoId_1, ref_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, repoId_1, ref_1, cursor_1, ...args_1], void 0, function* (organisation, resource, repoId, ref, cursor, options = {}) {
|
|
26352
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26353
|
+
assertParamExists('listCiRunnerPoolCache', 'organisation', organisation);
|
|
26354
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26355
|
+
assertParamExists('listCiRunnerPoolCache', 'resource', resource);
|
|
26356
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
26357
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26358
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26359
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26360
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26361
|
+
let baseOptions;
|
|
26362
|
+
if (configuration) {
|
|
26363
|
+
baseOptions = configuration.baseOptions;
|
|
26364
|
+
}
|
|
26365
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26366
|
+
const localVarHeaderParameter = {};
|
|
26367
|
+
const localVarQueryParameter = {};
|
|
26368
|
+
// authentication BearerAuth required
|
|
26369
|
+
// http bearer authentication required
|
|
26370
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
26371
|
+
if (repoId !== undefined) {
|
|
26372
|
+
localVarQueryParameter['repoId'] = repoId;
|
|
26373
|
+
}
|
|
26374
|
+
if (ref !== undefined) {
|
|
26375
|
+
localVarQueryParameter['ref'] = ref;
|
|
26376
|
+
}
|
|
26377
|
+
if (cursor !== undefined) {
|
|
26378
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
26379
|
+
}
|
|
26380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26382
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26383
|
+
return {
|
|
26384
|
+
url: toPathString(localVarUrlObj),
|
|
26385
|
+
options: localVarRequestOptions,
|
|
26386
|
+
};
|
|
26387
|
+
}),
|
|
26212
26388
|
/**
|
|
26213
26389
|
*
|
|
26214
26390
|
* @summary List an organisation\'s shared resources
|
|
@@ -26326,6 +26502,24 @@ export const ResourcesApiFp = function (configuration) {
|
|
|
26326
26502
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26327
26503
|
});
|
|
26328
26504
|
},
|
|
26505
|
+
/**
|
|
26506
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26507
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26508
|
+
* @param {string} organisation The organisation ID
|
|
26509
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26510
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26511
|
+
* @param {*} [options] Override http request option.
|
|
26512
|
+
* @throws {RequiredError}
|
|
26513
|
+
*/
|
|
26514
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
26515
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26516
|
+
var _a, _b, _c;
|
|
26517
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options);
|
|
26518
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26519
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ResourcesApi.deleteCiRunnerPoolCache']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26520
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26521
|
+
});
|
|
26522
|
+
},
|
|
26329
26523
|
/**
|
|
26330
26524
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26331
26525
|
* @summary Delete a shared resource
|
|
@@ -26363,6 +26557,24 @@ export const ResourcesApiFp = function (configuration) {
|
|
|
26363
26557
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26364
26558
|
});
|
|
26365
26559
|
},
|
|
26560
|
+
/**
|
|
26561
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26562
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26563
|
+
* @param {string} organisation The organisation ID
|
|
26564
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26565
|
+
* @param {number} [days]
|
|
26566
|
+
* @param {*} [options] Override http request option.
|
|
26567
|
+
* @throws {RequiredError}
|
|
26568
|
+
*/
|
|
26569
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
26570
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26571
|
+
var _a, _b, _c;
|
|
26572
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCiRunnerPoolCacheStats(organisation, resource, days, options);
|
|
26573
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26574
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ResourcesApi.getCiRunnerPoolCacheStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26575
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26576
|
+
});
|
|
26577
|
+
},
|
|
26366
26578
|
/**
|
|
26367
26579
|
*
|
|
26368
26580
|
* @summary Get a shared resource and its attachments
|
|
@@ -26397,6 +26609,26 @@ export const ResourcesApiFp = function (configuration) {
|
|
|
26397
26609
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26398
26610
|
});
|
|
26399
26611
|
},
|
|
26612
|
+
/**
|
|
26613
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26614
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26615
|
+
* @param {string} organisation The organisation ID
|
|
26616
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26617
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26618
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26619
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26620
|
+
* @param {*} [options] Override http request option.
|
|
26621
|
+
* @throws {RequiredError}
|
|
26622
|
+
*/
|
|
26623
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
26624
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26625
|
+
var _a, _b, _c;
|
|
26626
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options);
|
|
26627
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26628
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ResourcesApi.listCiRunnerPoolCache']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26629
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26630
|
+
});
|
|
26631
|
+
},
|
|
26400
26632
|
/**
|
|
26401
26633
|
*
|
|
26402
26634
|
* @summary List an organisation\'s shared resources
|
|
@@ -26463,6 +26695,18 @@ export const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26463
26695
|
createOrgResource(organisation, createOrgResourceRequest, options) {
|
|
26464
26696
|
return localVarFp.createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(axios, basePath));
|
|
26465
26697
|
},
|
|
26698
|
+
/**
|
|
26699
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26700
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26701
|
+
* @param {string} organisation The organisation ID
|
|
26702
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26703
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26704
|
+
* @param {*} [options] Override http request option.
|
|
26705
|
+
* @throws {RequiredError}
|
|
26706
|
+
*/
|
|
26707
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
26708
|
+
return localVarFp.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(axios, basePath));
|
|
26709
|
+
},
|
|
26466
26710
|
/**
|
|
26467
26711
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26468
26712
|
* @summary Delete a shared resource
|
|
@@ -26488,6 +26732,18 @@ export const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26488
26732
|
detachOrgResource(organisation, resource, application, environment, options) {
|
|
26489
26733
|
return localVarFp.detachOrgResource(organisation, resource, application, environment, options).then((request) => request(axios, basePath));
|
|
26490
26734
|
},
|
|
26735
|
+
/**
|
|
26736
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26737
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26738
|
+
* @param {string} organisation The organisation ID
|
|
26739
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26740
|
+
* @param {number} [days]
|
|
26741
|
+
* @param {*} [options] Override http request option.
|
|
26742
|
+
* @throws {RequiredError}
|
|
26743
|
+
*/
|
|
26744
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
26745
|
+
return localVarFp.getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(axios, basePath));
|
|
26746
|
+
},
|
|
26491
26747
|
/**
|
|
26492
26748
|
*
|
|
26493
26749
|
* @summary Get a shared resource and its attachments
|
|
@@ -26510,6 +26766,20 @@ export const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26510
26766
|
getOrgResourceCredentials(organisation, resource, options) {
|
|
26511
26767
|
return localVarFp.getOrgResourceCredentials(organisation, resource, options).then((request) => request(axios, basePath));
|
|
26512
26768
|
},
|
|
26769
|
+
/**
|
|
26770
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26771
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26772
|
+
* @param {string} organisation The organisation ID
|
|
26773
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26774
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26775
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26776
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26777
|
+
* @param {*} [options] Override http request option.
|
|
26778
|
+
* @throws {RequiredError}
|
|
26779
|
+
*/
|
|
26780
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
26781
|
+
return localVarFp.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(axios, basePath));
|
|
26782
|
+
},
|
|
26513
26783
|
/**
|
|
26514
26784
|
*
|
|
26515
26785
|
* @summary List an organisation\'s shared resources
|
|
@@ -26566,6 +26836,19 @@ export class ResourcesApi extends BaseAPI {
|
|
|
26566
26836
|
createOrgResource(organisation, createOrgResourceRequest, options) {
|
|
26567
26837
|
return ResourcesApiFp(this.configuration).createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26568
26838
|
}
|
|
26839
|
+
/**
|
|
26840
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26841
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26842
|
+
* @param {string} organisation The organisation ID
|
|
26843
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26844
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26845
|
+
* @param {*} [options] Override http request option.
|
|
26846
|
+
* @throws {RequiredError}
|
|
26847
|
+
* @memberof ResourcesApi
|
|
26848
|
+
*/
|
|
26849
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
26850
|
+
return ResourcesApiFp(this.configuration).deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26851
|
+
}
|
|
26569
26852
|
/**
|
|
26570
26853
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26571
26854
|
* @summary Delete a shared resource
|
|
@@ -26593,6 +26876,19 @@ export class ResourcesApi extends BaseAPI {
|
|
|
26593
26876
|
detachOrgResource(organisation, resource, application, environment, options) {
|
|
26594
26877
|
return ResourcesApiFp(this.configuration).detachOrgResource(organisation, resource, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
26595
26878
|
}
|
|
26879
|
+
/**
|
|
26880
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26881
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26882
|
+
* @param {string} organisation The organisation ID
|
|
26883
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26884
|
+
* @param {number} [days]
|
|
26885
|
+
* @param {*} [options] Override http request option.
|
|
26886
|
+
* @throws {RequiredError}
|
|
26887
|
+
* @memberof ResourcesApi
|
|
26888
|
+
*/
|
|
26889
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
26890
|
+
return ResourcesApiFp(this.configuration).getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(this.axios, this.basePath));
|
|
26891
|
+
}
|
|
26596
26892
|
/**
|
|
26597
26893
|
*
|
|
26598
26894
|
* @summary Get a shared resource and its attachments
|
|
@@ -26617,6 +26913,21 @@ export class ResourcesApi extends BaseAPI {
|
|
|
26617
26913
|
getOrgResourceCredentials(organisation, resource, options) {
|
|
26618
26914
|
return ResourcesApiFp(this.configuration).getOrgResourceCredentials(organisation, resource, options).then((request) => request(this.axios, this.basePath));
|
|
26619
26915
|
}
|
|
26916
|
+
/**
|
|
26917
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26918
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26919
|
+
* @param {string} organisation The organisation ID
|
|
26920
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26921
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26922
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26923
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26924
|
+
* @param {*} [options] Override http request option.
|
|
26925
|
+
* @throws {RequiredError}
|
|
26926
|
+
* @memberof ResourcesApi
|
|
26927
|
+
*/
|
|
26928
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
26929
|
+
return ResourcesApiFp(this.configuration).listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
26930
|
+
}
|
|
26620
26931
|
/**
|
|
26621
26932
|
*
|
|
26622
26933
|
* @summary List an organisation\'s shared resources
|
package/dist/esm/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantCDN API
|
|
3
3
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 4.
|
|
5
|
+
* The version of the OpenAPI document: 4.38.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantCDN API
|
|
3
3
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 4.
|
|
5
|
+
* The version of the OpenAPI document: 4.38.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantCDN API
|
|
3
3
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 4.
|
|
5
|
+
* The version of the OpenAPI document: 4.38.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/esm/index.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantCDN API
|
|
3
3
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 4.
|
|
5
|
+
* The version of the OpenAPI document: 4.38.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.38.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/index.ts
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.38.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|