@quantcdn/quant-client 4.40.0 → 4.40.1
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 +210 -33
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +206 -34
- package/dist/api.js +28 -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 +206 -34
- package/dist/esm/api.js +17 -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/api.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.40.
|
|
7
|
+
* The version of the OpenAPI document: 4.40.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1198,25 +1198,6 @@ export const ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
|
1198
1198
|
|
|
1199
1199
|
export type ApplicationDatabaseRdsInstanceEngineEnum = typeof ApplicationDatabaseRdsInstanceEngineEnum[keyof typeof ApplicationDatabaseRdsInstanceEngineEnum];
|
|
1200
1200
|
|
|
1201
|
-
/**
|
|
1202
|
-
*
|
|
1203
|
-
* @export
|
|
1204
|
-
* @interface ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1205
|
-
*/
|
|
1206
|
-
export interface ApplicationDatabaseEnvironmentCredentialsSecretsInner {
|
|
1207
|
-
/**
|
|
1208
|
-
*
|
|
1209
|
-
* @type {string}
|
|
1210
|
-
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1211
|
-
*/
|
|
1212
|
-
'environment'?: string;
|
|
1213
|
-
/**
|
|
1214
|
-
*
|
|
1215
|
-
* @type {string}
|
|
1216
|
-
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1217
|
-
*/
|
|
1218
|
-
'secretName'?: string;
|
|
1219
|
-
}
|
|
1220
1201
|
/**
|
|
1221
1202
|
*
|
|
1222
1203
|
* @export
|
|
@@ -1282,28 +1263,186 @@ export const ApplicationDatabaseErrorRequestedEnum = {
|
|
|
1282
1263
|
|
|
1283
1264
|
export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
|
|
1284
1265
|
|
|
1266
|
+
/**
|
|
1267
|
+
*
|
|
1268
|
+
* @export
|
|
1269
|
+
* @interface ApplicationDatabaseInstance
|
|
1270
|
+
*/
|
|
1271
|
+
export interface ApplicationDatabaseInstance {
|
|
1272
|
+
/**
|
|
1273
|
+
*
|
|
1274
|
+
* @type {string}
|
|
1275
|
+
* @memberof ApplicationDatabaseInstance
|
|
1276
|
+
*/
|
|
1277
|
+
'instanceId'?: string;
|
|
1278
|
+
/**
|
|
1279
|
+
*
|
|
1280
|
+
* @type {string}
|
|
1281
|
+
* @memberof ApplicationDatabaseInstance
|
|
1282
|
+
*/
|
|
1283
|
+
'role'?: ApplicationDatabaseInstanceRoleEnum;
|
|
1284
|
+
/**
|
|
1285
|
+
* Poll this for a database being added.
|
|
1286
|
+
* @type {string}
|
|
1287
|
+
* @memberof ApplicationDatabaseInstance
|
|
1288
|
+
*/
|
|
1289
|
+
'status'?: ApplicationDatabaseInstanceStatusEnum;
|
|
1290
|
+
/**
|
|
1291
|
+
* Why a database failed.
|
|
1292
|
+
* @type {string}
|
|
1293
|
+
* @memberof ApplicationDatabaseInstance
|
|
1294
|
+
*/
|
|
1295
|
+
'statusMessage'?: string;
|
|
1296
|
+
/**
|
|
1297
|
+
*
|
|
1298
|
+
* @type {string}
|
|
1299
|
+
* @memberof ApplicationDatabaseInstance
|
|
1300
|
+
*/
|
|
1301
|
+
'engine'?: ApplicationDatabaseInstanceEngineEnum;
|
|
1302
|
+
/**
|
|
1303
|
+
* The live instance status. Absent when it could not be read.
|
|
1304
|
+
* @type {string}
|
|
1305
|
+
* @memberof ApplicationDatabaseInstance
|
|
1306
|
+
*/
|
|
1307
|
+
'rdsStatus'?: string;
|
|
1308
|
+
/**
|
|
1309
|
+
*
|
|
1310
|
+
* @type {string}
|
|
1311
|
+
* @memberof ApplicationDatabaseInstance
|
|
1312
|
+
*/
|
|
1313
|
+
'endpoint'?: string;
|
|
1314
|
+
/**
|
|
1315
|
+
*
|
|
1316
|
+
* @type {number}
|
|
1317
|
+
* @memberof ApplicationDatabaseInstance
|
|
1318
|
+
*/
|
|
1319
|
+
'port'?: number;
|
|
1320
|
+
/**
|
|
1321
|
+
*
|
|
1322
|
+
* @type {string}
|
|
1323
|
+
* @memberof ApplicationDatabaseInstance
|
|
1324
|
+
*/
|
|
1325
|
+
'instanceClass'?: string;
|
|
1326
|
+
/**
|
|
1327
|
+
*
|
|
1328
|
+
* @type {number}
|
|
1329
|
+
* @memberof ApplicationDatabaseInstance
|
|
1330
|
+
*/
|
|
1331
|
+
'storageGb'?: number;
|
|
1332
|
+
/**
|
|
1333
|
+
*
|
|
1334
|
+
* @type {boolean}
|
|
1335
|
+
* @memberof ApplicationDatabaseInstance
|
|
1336
|
+
*/
|
|
1337
|
+
'multiAz'?: boolean;
|
|
1338
|
+
/**
|
|
1339
|
+
*
|
|
1340
|
+
* @type {ApplicationDatabaseInstancePendingModifications}
|
|
1341
|
+
* @memberof ApplicationDatabaseInstance
|
|
1342
|
+
*/
|
|
1343
|
+
'pendingModifications'?: ApplicationDatabaseInstancePendingModifications;
|
|
1344
|
+
/**
|
|
1345
|
+
* Unix epoch milliseconds.
|
|
1346
|
+
* @type {number}
|
|
1347
|
+
* @memberof ApplicationDatabaseInstance
|
|
1348
|
+
*/
|
|
1349
|
+
'createdAt'?: number;
|
|
1350
|
+
/**
|
|
1351
|
+
* previous only: when it stopped being the active database.
|
|
1352
|
+
* @type {number}
|
|
1353
|
+
* @memberof ApplicationDatabaseInstance
|
|
1354
|
+
*/
|
|
1355
|
+
'retiredAt'?: number;
|
|
1356
|
+
/**
|
|
1357
|
+
* next only: the environments that have a user on this instance.
|
|
1358
|
+
* @type {Array<string>}
|
|
1359
|
+
* @memberof ApplicationDatabaseInstance
|
|
1360
|
+
*/
|
|
1361
|
+
'environments'?: Array<string>;
|
|
1362
|
+
/**
|
|
1363
|
+
* next only: the names of the secrets that hold each environment\'s credentials for this instance. Names, never values.
|
|
1364
|
+
* @type {Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>}
|
|
1365
|
+
* @memberof ApplicationDatabaseInstance
|
|
1366
|
+
*/
|
|
1367
|
+
'environmentCredentialsSecrets'?: Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>;
|
|
1368
|
+
/**
|
|
1369
|
+
* next only: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE, DB_NEXT_ENGINE.
|
|
1370
|
+
* @type {Array<string>}
|
|
1371
|
+
* @memberof ApplicationDatabaseInstance
|
|
1372
|
+
*/
|
|
1373
|
+
'environmentVariables'?: Array<string>;
|
|
1374
|
+
/**
|
|
1375
|
+
* next only: DB_NEXT_USERNAME and DB_NEXT_PASSWORD, secret references to the per-environment secrets above. Never values.
|
|
1376
|
+
* @type {Array<string>}
|
|
1377
|
+
* @memberof ApplicationDatabaseInstance
|
|
1378
|
+
*/
|
|
1379
|
+
'environmentSecretReferences'?: Array<string>;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
export const ApplicationDatabaseInstanceRoleEnum = {
|
|
1383
|
+
Active: 'active',
|
|
1384
|
+
Next: 'next',
|
|
1385
|
+
Previous: 'previous'
|
|
1386
|
+
} as const;
|
|
1387
|
+
|
|
1388
|
+
export type ApplicationDatabaseInstanceRoleEnum = typeof ApplicationDatabaseInstanceRoleEnum[keyof typeof ApplicationDatabaseInstanceRoleEnum];
|
|
1389
|
+
export const ApplicationDatabaseInstanceStatusEnum = {
|
|
1390
|
+
Active: 'active',
|
|
1391
|
+
Provisioning: 'provisioning',
|
|
1392
|
+
Ready: 'ready',
|
|
1393
|
+
Failed: 'failed',
|
|
1394
|
+
Previous: 'previous'
|
|
1395
|
+
} as const;
|
|
1396
|
+
|
|
1397
|
+
export type ApplicationDatabaseInstanceStatusEnum = typeof ApplicationDatabaseInstanceStatusEnum[keyof typeof ApplicationDatabaseInstanceStatusEnum];
|
|
1398
|
+
export const ApplicationDatabaseInstanceEngineEnum = {
|
|
1399
|
+
Mysql: 'mysql',
|
|
1400
|
+
Postgres: 'postgres'
|
|
1401
|
+
} as const;
|
|
1402
|
+
|
|
1403
|
+
export type ApplicationDatabaseInstanceEngineEnum = typeof ApplicationDatabaseInstanceEngineEnum[keyof typeof ApplicationDatabaseInstanceEngineEnum];
|
|
1404
|
+
|
|
1405
|
+
/**
|
|
1406
|
+
*
|
|
1407
|
+
* @export
|
|
1408
|
+
* @interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1409
|
+
*/
|
|
1410
|
+
export interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner {
|
|
1411
|
+
/**
|
|
1412
|
+
*
|
|
1413
|
+
* @type {string}
|
|
1414
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1415
|
+
*/
|
|
1416
|
+
'environment'?: string;
|
|
1417
|
+
/**
|
|
1418
|
+
*
|
|
1419
|
+
* @type {string}
|
|
1420
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1421
|
+
*/
|
|
1422
|
+
'secretName'?: string;
|
|
1423
|
+
}
|
|
1285
1424
|
/**
|
|
1286
1425
|
* A resize RDS has accepted but not applied yet. Absent when there is none.
|
|
1287
1426
|
* @export
|
|
1288
|
-
* @interface
|
|
1427
|
+
* @interface ApplicationDatabaseInstancePendingModifications
|
|
1289
1428
|
*/
|
|
1290
|
-
export interface
|
|
1429
|
+
export interface ApplicationDatabaseInstancePendingModifications {
|
|
1291
1430
|
/**
|
|
1292
1431
|
*
|
|
1293
1432
|
* @type {string}
|
|
1294
|
-
* @memberof
|
|
1433
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1295
1434
|
*/
|
|
1296
1435
|
'instanceClass'?: string;
|
|
1297
1436
|
/**
|
|
1298
1437
|
*
|
|
1299
1438
|
* @type {number}
|
|
1300
|
-
* @memberof
|
|
1439
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1301
1440
|
*/
|
|
1302
1441
|
'storageGb'?: number;
|
|
1303
1442
|
/**
|
|
1304
1443
|
*
|
|
1305
1444
|
* @type {boolean}
|
|
1306
|
-
* @memberof
|
|
1445
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1307
1446
|
*/
|
|
1308
1447
|
'multiAz'?: boolean;
|
|
1309
1448
|
}
|
|
@@ -1327,22 +1466,22 @@ export interface ApplicationDatabases {
|
|
|
1327
1466
|
'appName'?: string;
|
|
1328
1467
|
/**
|
|
1329
1468
|
*
|
|
1330
|
-
* @type {
|
|
1469
|
+
* @type {ApplicationDatabaseInstance}
|
|
1331
1470
|
* @memberof ApplicationDatabases
|
|
1332
1471
|
*/
|
|
1333
|
-
'active'?:
|
|
1472
|
+
'active'?: ApplicationDatabaseInstance | null;
|
|
1334
1473
|
/**
|
|
1335
1474
|
*
|
|
1336
|
-
* @type {
|
|
1475
|
+
* @type {ApplicationDatabaseInstance}
|
|
1337
1476
|
* @memberof ApplicationDatabases
|
|
1338
1477
|
*/
|
|
1339
|
-
'next'?:
|
|
1478
|
+
'next'?: ApplicationDatabaseInstance | null;
|
|
1340
1479
|
/**
|
|
1341
1480
|
*
|
|
1342
|
-
* @type {
|
|
1481
|
+
* @type {ApplicationDatabaseInstance}
|
|
1343
1482
|
* @memberof ApplicationDatabases
|
|
1344
1483
|
*/
|
|
1345
|
-
'previous'?:
|
|
1484
|
+
'previous'?: ApplicationDatabaseInstance | null;
|
|
1346
1485
|
}
|
|
1347
1486
|
/**
|
|
1348
1487
|
*
|
|
@@ -4399,6 +4538,44 @@ export interface CreateEnvironmentRequest {
|
|
|
4399
4538
|
* @memberof CreateEnvironmentRequest
|
|
4400
4539
|
*/
|
|
4401
4540
|
'mergeEnvironment'?: boolean;
|
|
4541
|
+
/**
|
|
4542
|
+
*
|
|
4543
|
+
* @type {CreateEnvironmentRequestDatabase}
|
|
4544
|
+
* @memberof CreateEnvironmentRequest
|
|
4545
|
+
*/
|
|
4546
|
+
'database'?: CreateEnvironmentRequestDatabase | null;
|
|
4547
|
+
}
|
|
4548
|
+
/**
|
|
4549
|
+
* Optional database settings for the new environment
|
|
4550
|
+
* @export
|
|
4551
|
+
* @interface CreateEnvironmentRequestDatabase
|
|
4552
|
+
*/
|
|
4553
|
+
export interface CreateEnvironmentRequestDatabase {
|
|
4554
|
+
/**
|
|
4555
|
+
*
|
|
4556
|
+
* @type {CreateEnvironmentRequestDatabaseCopyFrom}
|
|
4557
|
+
* @memberof CreateEnvironmentRequestDatabase
|
|
4558
|
+
*/
|
|
4559
|
+
'copyFrom'?: CreateEnvironmentRequestDatabaseCopyFrom | null;
|
|
4560
|
+
}
|
|
4561
|
+
/**
|
|
4562
|
+
* Optional. Copy an existing environment\'s database into the new environment\'s database. The copy is a database sync that starts once the new database exists; follow it with GET .../sync/database. Needs the trigger_sync permission (and trigger_prod_sync with a write token when the new environment is production), else 403.
|
|
4563
|
+
* @export
|
|
4564
|
+
* @interface CreateEnvironmentRequestDatabaseCopyFrom
|
|
4565
|
+
*/
|
|
4566
|
+
export interface CreateEnvironmentRequestDatabaseCopyFrom {
|
|
4567
|
+
/**
|
|
4568
|
+
* The environment to copy the database from. Must exist and must not be the new environment.
|
|
4569
|
+
* @type {string}
|
|
4570
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4571
|
+
*/
|
|
4572
|
+
'sourceEnvironment': string;
|
|
4573
|
+
/**
|
|
4574
|
+
* Optional. Base64 MTK YAML, as the database sync endpoint takes.
|
|
4575
|
+
* @type {string}
|
|
4576
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4577
|
+
*/
|
|
4578
|
+
'mtkConfig'?: string;
|
|
4402
4579
|
}
|
|
4403
4580
|
/**
|
|
4404
4581
|
*
|
|
@@ -40456,7 +40633,7 @@ export const ApplicationDatabaseApiFp = function(configuration?: Configuration)
|
|
|
40456
40633
|
* @param {*} [options] Override http request option.
|
|
40457
40634
|
* @throws {RequiredError}
|
|
40458
40635
|
*/
|
|
40459
|
-
async getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
40636
|
+
async getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabaseInstance>> {
|
|
40460
40637
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getApplicationDatabase(organisation, application, instanceId, options);
|
|
40461
40638
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
40462
40639
|
const localVarOperationServerBasePath = operationServerMap['ApplicationDatabaseApi.getApplicationDatabase']?.[localVarOperationServerIndex]?.url;
|
|
@@ -40554,7 +40731,7 @@ export const ApplicationDatabaseApiFactory = function (configuration?: Configura
|
|
|
40554
40731
|
* @param {*} [options] Override http request option.
|
|
40555
40732
|
* @throws {RequiredError}
|
|
40556
40733
|
*/
|
|
40557
|
-
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
40734
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabaseInstance> {
|
|
40558
40735
|
return localVarFp.getApplicationDatabase(organisation, application, instanceId, options).then((request) => request(axios, basePath));
|
|
40559
40736
|
},
|
|
40560
40737
|
/**
|
package/common.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.40.
|
|
7
|
+
* The version of the OpenAPI document: 4.40.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/configuration.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.40.
|
|
7
|
+
* The version of the OpenAPI document: 4.40.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
package/dist/api.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.40.
|
|
5
|
+
* The version of the OpenAPI document: 4.40.1
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -1170,25 +1170,6 @@ export declare const ApplicationDatabaseRdsInstanceEngineEnum: {
|
|
|
1170
1170
|
readonly Postgres: "postgres";
|
|
1171
1171
|
};
|
|
1172
1172
|
export type ApplicationDatabaseRdsInstanceEngineEnum = typeof ApplicationDatabaseRdsInstanceEngineEnum[keyof typeof ApplicationDatabaseRdsInstanceEngineEnum];
|
|
1173
|
-
/**
|
|
1174
|
-
*
|
|
1175
|
-
* @export
|
|
1176
|
-
* @interface ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1177
|
-
*/
|
|
1178
|
-
export interface ApplicationDatabaseEnvironmentCredentialsSecretsInner {
|
|
1179
|
-
/**
|
|
1180
|
-
*
|
|
1181
|
-
* @type {string}
|
|
1182
|
-
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1183
|
-
*/
|
|
1184
|
-
'environment'?: string;
|
|
1185
|
-
/**
|
|
1186
|
-
*
|
|
1187
|
-
* @type {string}
|
|
1188
|
-
* @memberof ApplicationDatabaseEnvironmentCredentialsSecretsInner
|
|
1189
|
-
*/
|
|
1190
|
-
'secretName'?: string;
|
|
1191
|
-
}
|
|
1192
1173
|
/**
|
|
1193
1174
|
*
|
|
1194
1175
|
* @export
|
|
@@ -1250,28 +1231,181 @@ export declare const ApplicationDatabaseErrorRequestedEnum: {
|
|
|
1250
1231
|
readonly Delete: "delete";
|
|
1251
1232
|
};
|
|
1252
1233
|
export type ApplicationDatabaseErrorRequestedEnum = typeof ApplicationDatabaseErrorRequestedEnum[keyof typeof ApplicationDatabaseErrorRequestedEnum];
|
|
1234
|
+
/**
|
|
1235
|
+
*
|
|
1236
|
+
* @export
|
|
1237
|
+
* @interface ApplicationDatabaseInstance
|
|
1238
|
+
*/
|
|
1239
|
+
export interface ApplicationDatabaseInstance {
|
|
1240
|
+
/**
|
|
1241
|
+
*
|
|
1242
|
+
* @type {string}
|
|
1243
|
+
* @memberof ApplicationDatabaseInstance
|
|
1244
|
+
*/
|
|
1245
|
+
'instanceId'?: string;
|
|
1246
|
+
/**
|
|
1247
|
+
*
|
|
1248
|
+
* @type {string}
|
|
1249
|
+
* @memberof ApplicationDatabaseInstance
|
|
1250
|
+
*/
|
|
1251
|
+
'role'?: ApplicationDatabaseInstanceRoleEnum;
|
|
1252
|
+
/**
|
|
1253
|
+
* Poll this for a database being added.
|
|
1254
|
+
* @type {string}
|
|
1255
|
+
* @memberof ApplicationDatabaseInstance
|
|
1256
|
+
*/
|
|
1257
|
+
'status'?: ApplicationDatabaseInstanceStatusEnum;
|
|
1258
|
+
/**
|
|
1259
|
+
* Why a database failed.
|
|
1260
|
+
* @type {string}
|
|
1261
|
+
* @memberof ApplicationDatabaseInstance
|
|
1262
|
+
*/
|
|
1263
|
+
'statusMessage'?: string;
|
|
1264
|
+
/**
|
|
1265
|
+
*
|
|
1266
|
+
* @type {string}
|
|
1267
|
+
* @memberof ApplicationDatabaseInstance
|
|
1268
|
+
*/
|
|
1269
|
+
'engine'?: ApplicationDatabaseInstanceEngineEnum;
|
|
1270
|
+
/**
|
|
1271
|
+
* The live instance status. Absent when it could not be read.
|
|
1272
|
+
* @type {string}
|
|
1273
|
+
* @memberof ApplicationDatabaseInstance
|
|
1274
|
+
*/
|
|
1275
|
+
'rdsStatus'?: string;
|
|
1276
|
+
/**
|
|
1277
|
+
*
|
|
1278
|
+
* @type {string}
|
|
1279
|
+
* @memberof ApplicationDatabaseInstance
|
|
1280
|
+
*/
|
|
1281
|
+
'endpoint'?: string;
|
|
1282
|
+
/**
|
|
1283
|
+
*
|
|
1284
|
+
* @type {number}
|
|
1285
|
+
* @memberof ApplicationDatabaseInstance
|
|
1286
|
+
*/
|
|
1287
|
+
'port'?: number;
|
|
1288
|
+
/**
|
|
1289
|
+
*
|
|
1290
|
+
* @type {string}
|
|
1291
|
+
* @memberof ApplicationDatabaseInstance
|
|
1292
|
+
*/
|
|
1293
|
+
'instanceClass'?: string;
|
|
1294
|
+
/**
|
|
1295
|
+
*
|
|
1296
|
+
* @type {number}
|
|
1297
|
+
* @memberof ApplicationDatabaseInstance
|
|
1298
|
+
*/
|
|
1299
|
+
'storageGb'?: number;
|
|
1300
|
+
/**
|
|
1301
|
+
*
|
|
1302
|
+
* @type {boolean}
|
|
1303
|
+
* @memberof ApplicationDatabaseInstance
|
|
1304
|
+
*/
|
|
1305
|
+
'multiAz'?: boolean;
|
|
1306
|
+
/**
|
|
1307
|
+
*
|
|
1308
|
+
* @type {ApplicationDatabaseInstancePendingModifications}
|
|
1309
|
+
* @memberof ApplicationDatabaseInstance
|
|
1310
|
+
*/
|
|
1311
|
+
'pendingModifications'?: ApplicationDatabaseInstancePendingModifications;
|
|
1312
|
+
/**
|
|
1313
|
+
* Unix epoch milliseconds.
|
|
1314
|
+
* @type {number}
|
|
1315
|
+
* @memberof ApplicationDatabaseInstance
|
|
1316
|
+
*/
|
|
1317
|
+
'createdAt'?: number;
|
|
1318
|
+
/**
|
|
1319
|
+
* previous only: when it stopped being the active database.
|
|
1320
|
+
* @type {number}
|
|
1321
|
+
* @memberof ApplicationDatabaseInstance
|
|
1322
|
+
*/
|
|
1323
|
+
'retiredAt'?: number;
|
|
1324
|
+
/**
|
|
1325
|
+
* next only: the environments that have a user on this instance.
|
|
1326
|
+
* @type {Array<string>}
|
|
1327
|
+
* @memberof ApplicationDatabaseInstance
|
|
1328
|
+
*/
|
|
1329
|
+
'environments'?: Array<string>;
|
|
1330
|
+
/**
|
|
1331
|
+
* next only: the names of the secrets that hold each environment\'s credentials for this instance. Names, never values.
|
|
1332
|
+
* @type {Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>}
|
|
1333
|
+
* @memberof ApplicationDatabaseInstance
|
|
1334
|
+
*/
|
|
1335
|
+
'environmentCredentialsSecrets'?: Array<ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner>;
|
|
1336
|
+
/**
|
|
1337
|
+
* next only: DB_NEXT_HOST, DB_NEXT_PORT, DB_NEXT_DATABASE, DB_NEXT_ENGINE.
|
|
1338
|
+
* @type {Array<string>}
|
|
1339
|
+
* @memberof ApplicationDatabaseInstance
|
|
1340
|
+
*/
|
|
1341
|
+
'environmentVariables'?: Array<string>;
|
|
1342
|
+
/**
|
|
1343
|
+
* next only: DB_NEXT_USERNAME and DB_NEXT_PASSWORD, secret references to the per-environment secrets above. Never values.
|
|
1344
|
+
* @type {Array<string>}
|
|
1345
|
+
* @memberof ApplicationDatabaseInstance
|
|
1346
|
+
*/
|
|
1347
|
+
'environmentSecretReferences'?: Array<string>;
|
|
1348
|
+
}
|
|
1349
|
+
export declare const ApplicationDatabaseInstanceRoleEnum: {
|
|
1350
|
+
readonly Active: "active";
|
|
1351
|
+
readonly Next: "next";
|
|
1352
|
+
readonly Previous: "previous";
|
|
1353
|
+
};
|
|
1354
|
+
export type ApplicationDatabaseInstanceRoleEnum = typeof ApplicationDatabaseInstanceRoleEnum[keyof typeof ApplicationDatabaseInstanceRoleEnum];
|
|
1355
|
+
export declare const ApplicationDatabaseInstanceStatusEnum: {
|
|
1356
|
+
readonly Active: "active";
|
|
1357
|
+
readonly Provisioning: "provisioning";
|
|
1358
|
+
readonly Ready: "ready";
|
|
1359
|
+
readonly Failed: "failed";
|
|
1360
|
+
readonly Previous: "previous";
|
|
1361
|
+
};
|
|
1362
|
+
export type ApplicationDatabaseInstanceStatusEnum = typeof ApplicationDatabaseInstanceStatusEnum[keyof typeof ApplicationDatabaseInstanceStatusEnum];
|
|
1363
|
+
export declare const ApplicationDatabaseInstanceEngineEnum: {
|
|
1364
|
+
readonly Mysql: "mysql";
|
|
1365
|
+
readonly Postgres: "postgres";
|
|
1366
|
+
};
|
|
1367
|
+
export type ApplicationDatabaseInstanceEngineEnum = typeof ApplicationDatabaseInstanceEngineEnum[keyof typeof ApplicationDatabaseInstanceEngineEnum];
|
|
1368
|
+
/**
|
|
1369
|
+
*
|
|
1370
|
+
* @export
|
|
1371
|
+
* @interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1372
|
+
*/
|
|
1373
|
+
export interface ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner {
|
|
1374
|
+
/**
|
|
1375
|
+
*
|
|
1376
|
+
* @type {string}
|
|
1377
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1378
|
+
*/
|
|
1379
|
+
'environment'?: string;
|
|
1380
|
+
/**
|
|
1381
|
+
*
|
|
1382
|
+
* @type {string}
|
|
1383
|
+
* @memberof ApplicationDatabaseInstanceEnvironmentCredentialsSecretsInner
|
|
1384
|
+
*/
|
|
1385
|
+
'secretName'?: string;
|
|
1386
|
+
}
|
|
1253
1387
|
/**
|
|
1254
1388
|
* A resize RDS has accepted but not applied yet. Absent when there is none.
|
|
1255
1389
|
* @export
|
|
1256
|
-
* @interface
|
|
1390
|
+
* @interface ApplicationDatabaseInstancePendingModifications
|
|
1257
1391
|
*/
|
|
1258
|
-
export interface
|
|
1392
|
+
export interface ApplicationDatabaseInstancePendingModifications {
|
|
1259
1393
|
/**
|
|
1260
1394
|
*
|
|
1261
1395
|
* @type {string}
|
|
1262
|
-
* @memberof
|
|
1396
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1263
1397
|
*/
|
|
1264
1398
|
'instanceClass'?: string;
|
|
1265
1399
|
/**
|
|
1266
1400
|
*
|
|
1267
1401
|
* @type {number}
|
|
1268
|
-
* @memberof
|
|
1402
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1269
1403
|
*/
|
|
1270
1404
|
'storageGb'?: number;
|
|
1271
1405
|
/**
|
|
1272
1406
|
*
|
|
1273
1407
|
* @type {boolean}
|
|
1274
|
-
* @memberof
|
|
1408
|
+
* @memberof ApplicationDatabaseInstancePendingModifications
|
|
1275
1409
|
*/
|
|
1276
1410
|
'multiAz'?: boolean;
|
|
1277
1411
|
}
|
|
@@ -1295,22 +1429,22 @@ export interface ApplicationDatabases {
|
|
|
1295
1429
|
'appName'?: string;
|
|
1296
1430
|
/**
|
|
1297
1431
|
*
|
|
1298
|
-
* @type {
|
|
1432
|
+
* @type {ApplicationDatabaseInstance}
|
|
1299
1433
|
* @memberof ApplicationDatabases
|
|
1300
1434
|
*/
|
|
1301
|
-
'active'?:
|
|
1435
|
+
'active'?: ApplicationDatabaseInstance | null;
|
|
1302
1436
|
/**
|
|
1303
1437
|
*
|
|
1304
|
-
* @type {
|
|
1438
|
+
* @type {ApplicationDatabaseInstance}
|
|
1305
1439
|
* @memberof ApplicationDatabases
|
|
1306
1440
|
*/
|
|
1307
|
-
'next'?:
|
|
1441
|
+
'next'?: ApplicationDatabaseInstance | null;
|
|
1308
1442
|
/**
|
|
1309
1443
|
*
|
|
1310
|
-
* @type {
|
|
1444
|
+
* @type {ApplicationDatabaseInstance}
|
|
1311
1445
|
* @memberof ApplicationDatabases
|
|
1312
1446
|
*/
|
|
1313
|
-
'previous'?:
|
|
1447
|
+
'previous'?: ApplicationDatabaseInstance | null;
|
|
1314
1448
|
}
|
|
1315
1449
|
/**
|
|
1316
1450
|
*
|
|
@@ -4286,6 +4420,44 @@ export interface CreateEnvironmentRequest {
|
|
|
4286
4420
|
* @memberof CreateEnvironmentRequest
|
|
4287
4421
|
*/
|
|
4288
4422
|
'mergeEnvironment'?: boolean;
|
|
4423
|
+
/**
|
|
4424
|
+
*
|
|
4425
|
+
* @type {CreateEnvironmentRequestDatabase}
|
|
4426
|
+
* @memberof CreateEnvironmentRequest
|
|
4427
|
+
*/
|
|
4428
|
+
'database'?: CreateEnvironmentRequestDatabase | null;
|
|
4429
|
+
}
|
|
4430
|
+
/**
|
|
4431
|
+
* Optional database settings for the new environment
|
|
4432
|
+
* @export
|
|
4433
|
+
* @interface CreateEnvironmentRequestDatabase
|
|
4434
|
+
*/
|
|
4435
|
+
export interface CreateEnvironmentRequestDatabase {
|
|
4436
|
+
/**
|
|
4437
|
+
*
|
|
4438
|
+
* @type {CreateEnvironmentRequestDatabaseCopyFrom}
|
|
4439
|
+
* @memberof CreateEnvironmentRequestDatabase
|
|
4440
|
+
*/
|
|
4441
|
+
'copyFrom'?: CreateEnvironmentRequestDatabaseCopyFrom | null;
|
|
4442
|
+
}
|
|
4443
|
+
/**
|
|
4444
|
+
* Optional. Copy an existing environment\'s database into the new environment\'s database. The copy is a database sync that starts once the new database exists; follow it with GET .../sync/database. Needs the trigger_sync permission (and trigger_prod_sync with a write token when the new environment is production), else 403.
|
|
4445
|
+
* @export
|
|
4446
|
+
* @interface CreateEnvironmentRequestDatabaseCopyFrom
|
|
4447
|
+
*/
|
|
4448
|
+
export interface CreateEnvironmentRequestDatabaseCopyFrom {
|
|
4449
|
+
/**
|
|
4450
|
+
* The environment to copy the database from. Must exist and must not be the new environment.
|
|
4451
|
+
* @type {string}
|
|
4452
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4453
|
+
*/
|
|
4454
|
+
'sourceEnvironment': string;
|
|
4455
|
+
/**
|
|
4456
|
+
* Optional. Base64 MTK YAML, as the database sync endpoint takes.
|
|
4457
|
+
* @type {string}
|
|
4458
|
+
* @memberof CreateEnvironmentRequestDatabaseCopyFrom
|
|
4459
|
+
*/
|
|
4460
|
+
'mtkConfig'?: string;
|
|
4289
4461
|
}
|
|
4290
4462
|
/**
|
|
4291
4463
|
*
|
|
@@ -33476,7 +33648,7 @@ export declare const ApplicationDatabaseApiFp: (configuration?: Configuration) =
|
|
|
33476
33648
|
* @param {*} [options] Override http request option.
|
|
33477
33649
|
* @throws {RequiredError}
|
|
33478
33650
|
*/
|
|
33479
|
-
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<
|
|
33651
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ApplicationDatabaseInstance>>;
|
|
33480
33652
|
/**
|
|
33481
33653
|
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
33482
33654
|
* @summary Get the databases of an application
|
|
@@ -33543,7 +33715,7 @@ export declare const ApplicationDatabaseApiFactory: (configuration?: Configurati
|
|
|
33543
33715
|
* @param {*} [options] Override http request option.
|
|
33544
33716
|
* @throws {RequiredError}
|
|
33545
33717
|
*/
|
|
33546
|
-
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<
|
|
33718
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): AxiosPromise<ApplicationDatabaseInstance>;
|
|
33547
33719
|
/**
|
|
33548
33720
|
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
33549
33721
|
* @summary Get the databases of an application
|
|
@@ -33614,7 +33786,7 @@ export declare class ApplicationDatabaseApi extends BaseAPI {
|
|
|
33614
33786
|
* @throws {RequiredError}
|
|
33615
33787
|
* @memberof ApplicationDatabaseApi
|
|
33616
33788
|
*/
|
|
33617
|
-
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<
|
|
33789
|
+
getApplicationDatabase(organisation: string, application: string, instanceId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<ApplicationDatabaseInstance, any, {}, any>>;
|
|
33618
33790
|
/**
|
|
33619
33791
|
* The active database, the one being added next to it (next) and the one the last promote replaced (previous). Each is null when there is none. No credential value is returned. The application must exist (404 otherwise).
|
|
33620
33792
|
* @summary Get the databases of an application
|