@quantcdn/quant-client 4.31.0 → 4.34.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 +1751 -18
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1305 -19
- package/dist/api.js +900 -64
- 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 +1305 -19
- package/dist/esm/api.js +878 -55
- 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.34.1
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -26,6 +26,20 @@ import globalAxios from 'axios';
|
|
|
26
26
|
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
|
|
27
27
|
// @ts-ignore
|
|
28
28
|
import { BASE_PATH, BaseAPI, operationServerMap } from './base';
|
|
29
|
+
export const AIAutoModeConfigEnforcementEnum = {
|
|
30
|
+
Default: 'default',
|
|
31
|
+
Required: 'required'
|
|
32
|
+
};
|
|
33
|
+
export const AIAutoModeInputEnforcementEnum = {
|
|
34
|
+
Default: 'default',
|
|
35
|
+
Required: 'required'
|
|
36
|
+
};
|
|
37
|
+
export const AIModelEligibilityReasonEnum = {
|
|
38
|
+
Unknown: 'unknown',
|
|
39
|
+
NoTools: 'no_tools',
|
|
40
|
+
Policy: 'policy',
|
|
41
|
+
Residency: 'residency'
|
|
42
|
+
};
|
|
29
43
|
export const AiAuditRecordRowOmittedEnum = {
|
|
30
44
|
TooLarge: 'too-large',
|
|
31
45
|
Unreadable: 'unreadable'
|
|
@@ -42,6 +56,10 @@ export const AiSlackBotApiMessageAllOfAuthorKindEnum = {
|
|
|
42
56
|
Api: 'api',
|
|
43
57
|
OtherBot: 'other_bot'
|
|
44
58
|
};
|
|
59
|
+
export const AlertChannelSummaryTypeEnum = {
|
|
60
|
+
Slack: 'slack',
|
|
61
|
+
Email: 'email'
|
|
62
|
+
};
|
|
45
63
|
export const ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
46
64
|
Mysql: 'mysql',
|
|
47
65
|
Postgres: 'postgres'
|
|
@@ -104,6 +122,22 @@ export const ChatInferenceStreamRequestMessagesInnerRoleEnum = {
|
|
|
104
122
|
export const ChatWithAIAgent202ResponseStatusEnum = {
|
|
105
123
|
Queued: 'queued'
|
|
106
124
|
};
|
|
125
|
+
export const CiValueKindEnum = {
|
|
126
|
+
Secret: 'secret',
|
|
127
|
+
Var: 'var'
|
|
128
|
+
};
|
|
129
|
+
export const CiValueScopeEnum = {
|
|
130
|
+
Org: 'org',
|
|
131
|
+
Repo: 'repo'
|
|
132
|
+
};
|
|
133
|
+
export const CiValueWriteResultKindEnum = {
|
|
134
|
+
Secret: 'secret',
|
|
135
|
+
Var: 'var'
|
|
136
|
+
};
|
|
137
|
+
export const CiValueWriteResultScopeEnum = {
|
|
138
|
+
Org: 'org',
|
|
139
|
+
Repo: 'repo'
|
|
140
|
+
};
|
|
107
141
|
export const ContainerDependsOnInnerConditionEnum = {
|
|
108
142
|
Start: 'START',
|
|
109
143
|
Healthy: 'HEALTHY',
|
|
@@ -297,6 +331,13 @@ export const GetGovernanceConfig200ResponseModelPolicyEnum = {
|
|
|
297
331
|
Allowlist: 'allowlist',
|
|
298
332
|
Blocklist: 'blocklist'
|
|
299
333
|
};
|
|
334
|
+
export const GetProjectEdgeEvents200ResponseEventsInnerTypeEnum = {
|
|
335
|
+
Console: 'console',
|
|
336
|
+
Function: 'function',
|
|
337
|
+
WafHit: 'waf-hit',
|
|
338
|
+
StaticFailover: 'static-failover',
|
|
339
|
+
Other: 'other'
|
|
340
|
+
};
|
|
300
341
|
export const GetRestoreStatus200ResponseStatusEnum = {
|
|
301
342
|
Pending: 'pending',
|
|
302
343
|
InProgress: 'in_progress',
|
|
@@ -441,6 +482,10 @@ export const PurgeOrgResourceRequestScopeEnum = {
|
|
|
441
482
|
Environment: 'environment',
|
|
442
483
|
All: 'all'
|
|
443
484
|
};
|
|
485
|
+
export const PutCiValueRequestKindEnum = {
|
|
486
|
+
Secret: 'secret',
|
|
487
|
+
Var: 'var'
|
|
488
|
+
};
|
|
444
489
|
export const QueryVectorCollection200ResponseSearchModeEnum = {
|
|
445
490
|
Text: 'text',
|
|
446
491
|
Vector: 'vector',
|
|
@@ -2932,6 +2977,255 @@ export class AIAuditApi extends BaseAPI {
|
|
|
2932
2977
|
return AIAuditApiFp(this.configuration).aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2933
2978
|
}
|
|
2934
2979
|
}
|
|
2980
|
+
/**
|
|
2981
|
+
* AIAutoModeApi - axios parameter creator
|
|
2982
|
+
* @export
|
|
2983
|
+
*/
|
|
2984
|
+
export const AIAutoModeApiAxiosParamCreator = function (configuration) {
|
|
2985
|
+
return {
|
|
2986
|
+
/**
|
|
2987
|
+
*
|
|
2988
|
+
* @summary Remove the auto mode setting for an organisation
|
|
2989
|
+
* @param {string} organisation The organisation ID
|
|
2990
|
+
* @param {*} [options] Override http request option.
|
|
2991
|
+
* @throws {RequiredError}
|
|
2992
|
+
*/
|
|
2993
|
+
deleteAutoMode: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
|
|
2994
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2995
|
+
assertParamExists('deleteAutoMode', 'organisation', organisation);
|
|
2996
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/auto-mode`
|
|
2997
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2998
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2999
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3000
|
+
let baseOptions;
|
|
3001
|
+
if (configuration) {
|
|
3002
|
+
baseOptions = configuration.baseOptions;
|
|
3003
|
+
}
|
|
3004
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
3005
|
+
const localVarHeaderParameter = {};
|
|
3006
|
+
const localVarQueryParameter = {};
|
|
3007
|
+
// authentication BearerAuth required
|
|
3008
|
+
// http bearer authentication required
|
|
3009
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3010
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3011
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3012
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3013
|
+
return {
|
|
3014
|
+
url: toPathString(localVarUrlObj),
|
|
3015
|
+
options: localVarRequestOptions,
|
|
3016
|
+
};
|
|
3017
|
+
}),
|
|
3018
|
+
/**
|
|
3019
|
+
*
|
|
3020
|
+
* @summary Get the auto mode setting for an organisation
|
|
3021
|
+
* @param {string} organisation The organisation ID
|
|
3022
|
+
* @param {*} [options] Override http request option.
|
|
3023
|
+
* @throws {RequiredError}
|
|
3024
|
+
*/
|
|
3025
|
+
getAutoMode: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
|
|
3026
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3027
|
+
assertParamExists('getAutoMode', 'organisation', organisation);
|
|
3028
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/auto-mode`
|
|
3029
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3030
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3031
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3032
|
+
let baseOptions;
|
|
3033
|
+
if (configuration) {
|
|
3034
|
+
baseOptions = configuration.baseOptions;
|
|
3035
|
+
}
|
|
3036
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3037
|
+
const localVarHeaderParameter = {};
|
|
3038
|
+
const localVarQueryParameter = {};
|
|
3039
|
+
// authentication BearerAuth required
|
|
3040
|
+
// http bearer authentication required
|
|
3041
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3042
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3043
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3044
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3045
|
+
return {
|
|
3046
|
+
url: toPathString(localVarUrlObj),
|
|
3047
|
+
options: localVarRequestOptions,
|
|
3048
|
+
};
|
|
3049
|
+
}),
|
|
3050
|
+
/**
|
|
3051
|
+
*
|
|
3052
|
+
* @summary Save the auto mode setting for an organisation
|
|
3053
|
+
* @param {string} organisation The organisation ID
|
|
3054
|
+
* @param {AIAutoModeInput} aIAutoModeInput
|
|
3055
|
+
* @param {*} [options] Override http request option.
|
|
3056
|
+
* @throws {RequiredError}
|
|
3057
|
+
*/
|
|
3058
|
+
updateAutoMode: (organisation_1, aIAutoModeInput_1, ...args_1) => __awaiter(this, [organisation_1, aIAutoModeInput_1, ...args_1], void 0, function* (organisation, aIAutoModeInput, options = {}) {
|
|
3059
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
3060
|
+
assertParamExists('updateAutoMode', 'organisation', organisation);
|
|
3061
|
+
// verify required parameter 'aIAutoModeInput' is not null or undefined
|
|
3062
|
+
assertParamExists('updateAutoMode', 'aIAutoModeInput', aIAutoModeInput);
|
|
3063
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/auto-mode`
|
|
3064
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3065
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3066
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3067
|
+
let baseOptions;
|
|
3068
|
+
if (configuration) {
|
|
3069
|
+
baseOptions = configuration.baseOptions;
|
|
3070
|
+
}
|
|
3071
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
3072
|
+
const localVarHeaderParameter = {};
|
|
3073
|
+
const localVarQueryParameter = {};
|
|
3074
|
+
// authentication BearerAuth required
|
|
3075
|
+
// http bearer authentication required
|
|
3076
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3077
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3078
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3079
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3080
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3081
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aIAutoModeInput, localVarRequestOptions, configuration);
|
|
3082
|
+
return {
|
|
3083
|
+
url: toPathString(localVarUrlObj),
|
|
3084
|
+
options: localVarRequestOptions,
|
|
3085
|
+
};
|
|
3086
|
+
}),
|
|
3087
|
+
};
|
|
3088
|
+
};
|
|
3089
|
+
/**
|
|
3090
|
+
* AIAutoModeApi - functional programming interface
|
|
3091
|
+
* @export
|
|
3092
|
+
*/
|
|
3093
|
+
export const AIAutoModeApiFp = function (configuration) {
|
|
3094
|
+
const localVarAxiosParamCreator = AIAutoModeApiAxiosParamCreator(configuration);
|
|
3095
|
+
return {
|
|
3096
|
+
/**
|
|
3097
|
+
*
|
|
3098
|
+
* @summary Remove the auto mode setting for an organisation
|
|
3099
|
+
* @param {string} organisation The organisation ID
|
|
3100
|
+
* @param {*} [options] Override http request option.
|
|
3101
|
+
* @throws {RequiredError}
|
|
3102
|
+
*/
|
|
3103
|
+
deleteAutoMode(organisation, options) {
|
|
3104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3105
|
+
var _a, _b, _c;
|
|
3106
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAutoMode(organisation, options);
|
|
3107
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3108
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAutoModeApi.deleteAutoMode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3109
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3110
|
+
});
|
|
3111
|
+
},
|
|
3112
|
+
/**
|
|
3113
|
+
*
|
|
3114
|
+
* @summary Get the auto mode setting for an organisation
|
|
3115
|
+
* @param {string} organisation The organisation ID
|
|
3116
|
+
* @param {*} [options] Override http request option.
|
|
3117
|
+
* @throws {RequiredError}
|
|
3118
|
+
*/
|
|
3119
|
+
getAutoMode(organisation, options) {
|
|
3120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3121
|
+
var _a, _b, _c;
|
|
3122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAutoMode(organisation, options);
|
|
3123
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3124
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAutoModeApi.getAutoMode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3125
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3126
|
+
});
|
|
3127
|
+
},
|
|
3128
|
+
/**
|
|
3129
|
+
*
|
|
3130
|
+
* @summary Save the auto mode setting for an organisation
|
|
3131
|
+
* @param {string} organisation The organisation ID
|
|
3132
|
+
* @param {AIAutoModeInput} aIAutoModeInput
|
|
3133
|
+
* @param {*} [options] Override http request option.
|
|
3134
|
+
* @throws {RequiredError}
|
|
3135
|
+
*/
|
|
3136
|
+
updateAutoMode(organisation, aIAutoModeInput, options) {
|
|
3137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3138
|
+
var _a, _b, _c;
|
|
3139
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAutoMode(organisation, aIAutoModeInput, options);
|
|
3140
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3141
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAutoModeApi.updateAutoMode']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3142
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3143
|
+
});
|
|
3144
|
+
},
|
|
3145
|
+
};
|
|
3146
|
+
};
|
|
3147
|
+
/**
|
|
3148
|
+
* AIAutoModeApi - factory interface
|
|
3149
|
+
* @export
|
|
3150
|
+
*/
|
|
3151
|
+
export const AIAutoModeApiFactory = function (configuration, basePath, axios) {
|
|
3152
|
+
const localVarFp = AIAutoModeApiFp(configuration);
|
|
3153
|
+
return {
|
|
3154
|
+
/**
|
|
3155
|
+
*
|
|
3156
|
+
* @summary Remove the auto mode setting for an organisation
|
|
3157
|
+
* @param {string} organisation The organisation ID
|
|
3158
|
+
* @param {*} [options] Override http request option.
|
|
3159
|
+
* @throws {RequiredError}
|
|
3160
|
+
*/
|
|
3161
|
+
deleteAutoMode(organisation, options) {
|
|
3162
|
+
return localVarFp.deleteAutoMode(organisation, options).then((request) => request(axios, basePath));
|
|
3163
|
+
},
|
|
3164
|
+
/**
|
|
3165
|
+
*
|
|
3166
|
+
* @summary Get the auto mode setting for an organisation
|
|
3167
|
+
* @param {string} organisation The organisation ID
|
|
3168
|
+
* @param {*} [options] Override http request option.
|
|
3169
|
+
* @throws {RequiredError}
|
|
3170
|
+
*/
|
|
3171
|
+
getAutoMode(organisation, options) {
|
|
3172
|
+
return localVarFp.getAutoMode(organisation, options).then((request) => request(axios, basePath));
|
|
3173
|
+
},
|
|
3174
|
+
/**
|
|
3175
|
+
*
|
|
3176
|
+
* @summary Save the auto mode setting for an organisation
|
|
3177
|
+
* @param {string} organisation The organisation ID
|
|
3178
|
+
* @param {AIAutoModeInput} aIAutoModeInput
|
|
3179
|
+
* @param {*} [options] Override http request option.
|
|
3180
|
+
* @throws {RequiredError}
|
|
3181
|
+
*/
|
|
3182
|
+
updateAutoMode(organisation, aIAutoModeInput, options) {
|
|
3183
|
+
return localVarFp.updateAutoMode(organisation, aIAutoModeInput, options).then((request) => request(axios, basePath));
|
|
3184
|
+
},
|
|
3185
|
+
};
|
|
3186
|
+
};
|
|
3187
|
+
/**
|
|
3188
|
+
* AIAutoModeApi - object-oriented interface
|
|
3189
|
+
* @export
|
|
3190
|
+
* @class AIAutoModeApi
|
|
3191
|
+
* @extends {BaseAPI}
|
|
3192
|
+
*/
|
|
3193
|
+
export class AIAutoModeApi extends BaseAPI {
|
|
3194
|
+
/**
|
|
3195
|
+
*
|
|
3196
|
+
* @summary Remove the auto mode setting for an organisation
|
|
3197
|
+
* @param {string} organisation The organisation ID
|
|
3198
|
+
* @param {*} [options] Override http request option.
|
|
3199
|
+
* @throws {RequiredError}
|
|
3200
|
+
* @memberof AIAutoModeApi
|
|
3201
|
+
*/
|
|
3202
|
+
deleteAutoMode(organisation, options) {
|
|
3203
|
+
return AIAutoModeApiFp(this.configuration).deleteAutoMode(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
3204
|
+
}
|
|
3205
|
+
/**
|
|
3206
|
+
*
|
|
3207
|
+
* @summary Get the auto mode setting for an organisation
|
|
3208
|
+
* @param {string} organisation The organisation ID
|
|
3209
|
+
* @param {*} [options] Override http request option.
|
|
3210
|
+
* @throws {RequiredError}
|
|
3211
|
+
* @memberof AIAutoModeApi
|
|
3212
|
+
*/
|
|
3213
|
+
getAutoMode(organisation, options) {
|
|
3214
|
+
return AIAutoModeApiFp(this.configuration).getAutoMode(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
3215
|
+
}
|
|
3216
|
+
/**
|
|
3217
|
+
*
|
|
3218
|
+
* @summary Save the auto mode setting for an organisation
|
|
3219
|
+
* @param {string} organisation The organisation ID
|
|
3220
|
+
* @param {AIAutoModeInput} aIAutoModeInput
|
|
3221
|
+
* @param {*} [options] Override http request option.
|
|
3222
|
+
* @throws {RequiredError}
|
|
3223
|
+
* @memberof AIAutoModeApi
|
|
3224
|
+
*/
|
|
3225
|
+
updateAutoMode(organisation, aIAutoModeInput, options) {
|
|
3226
|
+
return AIAutoModeApiFp(this.configuration).updateAutoMode(organisation, aIAutoModeInput, options).then((request) => request(this.axios, this.basePath));
|
|
3227
|
+
}
|
|
3228
|
+
}
|
|
2935
3229
|
/**
|
|
2936
3230
|
* AICustomToolsApi - axios parameter creator
|
|
2937
3231
|
* @export
|
|
@@ -12021,79 +12315,189 @@ export class AIVectorDatabaseApi extends BaseAPI {
|
|
|
12021
12315
|
}
|
|
12022
12316
|
}
|
|
12023
12317
|
/**
|
|
12024
|
-
*
|
|
12318
|
+
* AlertChannelsApi - axios parameter creator
|
|
12025
12319
|
* @export
|
|
12026
12320
|
*/
|
|
12027
|
-
export const
|
|
12321
|
+
export const AlertChannelsApiAxiosParamCreator = function (configuration) {
|
|
12028
12322
|
return {
|
|
12029
12323
|
/**
|
|
12030
|
-
*
|
|
12031
|
-
* @summary
|
|
12032
|
-
* @param {string} organisation The organisation
|
|
12033
|
-
* @param {
|
|
12324
|
+
* Returns every alert channel of the organisation (channels are organisation-wide; the project segment lets a project-limited token call it). Each item has the ID, name, type and a masked hint only. Needs the alert-channels:read scope and the view_alert_channels permission.
|
|
12325
|
+
* @summary List the organisation\'s alert channels
|
|
12326
|
+
* @param {string} organisation The organisation machine name
|
|
12327
|
+
* @param {string} project The project machine name
|
|
12034
12328
|
* @param {*} [options] Override http request option.
|
|
12035
12329
|
* @throws {RequiredError}
|
|
12036
12330
|
*/
|
|
12037
|
-
|
|
12331
|
+
alertChannelsList: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
12038
12332
|
// verify required parameter 'organisation' is not null or undefined
|
|
12039
|
-
assertParamExists('
|
|
12040
|
-
// verify required parameter '
|
|
12041
|
-
assertParamExists('
|
|
12042
|
-
const localVarPath = `/api/v3/organizations/{organisation}/
|
|
12043
|
-
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12333
|
+
assertParamExists('alertChannelsList', 'organisation', organisation);
|
|
12334
|
+
// verify required parameter 'project' is not null or undefined
|
|
12335
|
+
assertParamExists('alertChannelsList', 'project', project);
|
|
12336
|
+
const localVarPath = `/api/v3/organizations/{organisation}/projects/{project}/alert-channels`
|
|
12337
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12338
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
12044
12339
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12045
12340
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12046
12341
|
let baseOptions;
|
|
12047
12342
|
if (configuration) {
|
|
12048
12343
|
baseOptions = configuration.baseOptions;
|
|
12049
12344
|
}
|
|
12050
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
12345
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12051
12346
|
const localVarHeaderParameter = {};
|
|
12052
12347
|
const localVarQueryParameter = {};
|
|
12053
12348
|
// authentication BearerAuth required
|
|
12054
12349
|
// http bearer authentication required
|
|
12055
12350
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12056
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12057
12351
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12058
12352
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12059
12353
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12060
|
-
localVarRequestOptions.data = serializeDataIfNeeded(createApplicationRequest, localVarRequestOptions, configuration);
|
|
12061
12354
|
return {
|
|
12062
12355
|
url: toPathString(localVarUrlObj),
|
|
12063
12356
|
options: localVarRequestOptions,
|
|
12064
12357
|
};
|
|
12065
12358
|
}),
|
|
12359
|
+
};
|
|
12360
|
+
};
|
|
12361
|
+
/**
|
|
12362
|
+
* AlertChannelsApi - functional programming interface
|
|
12363
|
+
* @export
|
|
12364
|
+
*/
|
|
12365
|
+
export const AlertChannelsApiFp = function (configuration) {
|
|
12366
|
+
const localVarAxiosParamCreator = AlertChannelsApiAxiosParamCreator(configuration);
|
|
12367
|
+
return {
|
|
12066
12368
|
/**
|
|
12067
|
-
*
|
|
12068
|
-
* @summary
|
|
12069
|
-
* @param {string} organisation The organisation
|
|
12070
|
-
* @param {string}
|
|
12369
|
+
* Returns every alert channel of the organisation (channels are organisation-wide; the project segment lets a project-limited token call it). Each item has the ID, name, type and a masked hint only. Needs the alert-channels:read scope and the view_alert_channels permission.
|
|
12370
|
+
* @summary List the organisation\'s alert channels
|
|
12371
|
+
* @param {string} organisation The organisation machine name
|
|
12372
|
+
* @param {string} project The project machine name
|
|
12071
12373
|
* @param {*} [options] Override http request option.
|
|
12072
12374
|
* @throws {RequiredError}
|
|
12073
12375
|
*/
|
|
12074
|
-
|
|
12075
|
-
|
|
12076
|
-
|
|
12077
|
-
|
|
12078
|
-
|
|
12079
|
-
|
|
12080
|
-
|
|
12081
|
-
|
|
12082
|
-
|
|
12083
|
-
|
|
12084
|
-
|
|
12085
|
-
|
|
12086
|
-
|
|
12087
|
-
|
|
12088
|
-
|
|
12089
|
-
|
|
12090
|
-
|
|
12091
|
-
|
|
12092
|
-
|
|
12093
|
-
|
|
12094
|
-
|
|
12095
|
-
|
|
12096
|
-
|
|
12376
|
+
alertChannelsList(organisation, project, options) {
|
|
12377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
12378
|
+
var _a, _b, _c;
|
|
12379
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.alertChannelsList(organisation, project, options);
|
|
12380
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12381
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AlertChannelsApi.alertChannelsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12382
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12383
|
+
});
|
|
12384
|
+
},
|
|
12385
|
+
};
|
|
12386
|
+
};
|
|
12387
|
+
/**
|
|
12388
|
+
* AlertChannelsApi - factory interface
|
|
12389
|
+
* @export
|
|
12390
|
+
*/
|
|
12391
|
+
export const AlertChannelsApiFactory = function (configuration, basePath, axios) {
|
|
12392
|
+
const localVarFp = AlertChannelsApiFp(configuration);
|
|
12393
|
+
return {
|
|
12394
|
+
/**
|
|
12395
|
+
* Returns every alert channel of the organisation (channels are organisation-wide; the project segment lets a project-limited token call it). Each item has the ID, name, type and a masked hint only. Needs the alert-channels:read scope and the view_alert_channels permission.
|
|
12396
|
+
* @summary List the organisation\'s alert channels
|
|
12397
|
+
* @param {string} organisation The organisation machine name
|
|
12398
|
+
* @param {string} project The project machine name
|
|
12399
|
+
* @param {*} [options] Override http request option.
|
|
12400
|
+
* @throws {RequiredError}
|
|
12401
|
+
*/
|
|
12402
|
+
alertChannelsList(organisation, project, options) {
|
|
12403
|
+
return localVarFp.alertChannelsList(organisation, project, options).then((request) => request(axios, basePath));
|
|
12404
|
+
},
|
|
12405
|
+
};
|
|
12406
|
+
};
|
|
12407
|
+
/**
|
|
12408
|
+
* AlertChannelsApi - object-oriented interface
|
|
12409
|
+
* @export
|
|
12410
|
+
* @class AlertChannelsApi
|
|
12411
|
+
* @extends {BaseAPI}
|
|
12412
|
+
*/
|
|
12413
|
+
export class AlertChannelsApi extends BaseAPI {
|
|
12414
|
+
/**
|
|
12415
|
+
* Returns every alert channel of the organisation (channels are organisation-wide; the project segment lets a project-limited token call it). Each item has the ID, name, type and a masked hint only. Needs the alert-channels:read scope and the view_alert_channels permission.
|
|
12416
|
+
* @summary List the organisation\'s alert channels
|
|
12417
|
+
* @param {string} organisation The organisation machine name
|
|
12418
|
+
* @param {string} project The project machine name
|
|
12419
|
+
* @param {*} [options] Override http request option.
|
|
12420
|
+
* @throws {RequiredError}
|
|
12421
|
+
* @memberof AlertChannelsApi
|
|
12422
|
+
*/
|
|
12423
|
+
alertChannelsList(organisation, project, options) {
|
|
12424
|
+
return AlertChannelsApiFp(this.configuration).alertChannelsList(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
12425
|
+
}
|
|
12426
|
+
}
|
|
12427
|
+
/**
|
|
12428
|
+
* ApplicationsApi - axios parameter creator
|
|
12429
|
+
* @export
|
|
12430
|
+
*/
|
|
12431
|
+
export const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
12432
|
+
return {
|
|
12433
|
+
/**
|
|
12434
|
+
*
|
|
12435
|
+
* @summary Create a new application
|
|
12436
|
+
* @param {string} organisation The organisation ID
|
|
12437
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
12438
|
+
* @param {*} [options] Override http request option.
|
|
12439
|
+
* @throws {RequiredError}
|
|
12440
|
+
*/
|
|
12441
|
+
createApplication: (organisation_1, createApplicationRequest_1, ...args_1) => __awaiter(this, [organisation_1, createApplicationRequest_1, ...args_1], void 0, function* (organisation, createApplicationRequest, options = {}) {
|
|
12442
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12443
|
+
assertParamExists('createApplication', 'organisation', organisation);
|
|
12444
|
+
// verify required parameter 'createApplicationRequest' is not null or undefined
|
|
12445
|
+
assertParamExists('createApplication', 'createApplicationRequest', createApplicationRequest);
|
|
12446
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications`
|
|
12447
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
12448
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12449
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12450
|
+
let baseOptions;
|
|
12451
|
+
if (configuration) {
|
|
12452
|
+
baseOptions = configuration.baseOptions;
|
|
12453
|
+
}
|
|
12454
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12455
|
+
const localVarHeaderParameter = {};
|
|
12456
|
+
const localVarQueryParameter = {};
|
|
12457
|
+
// authentication BearerAuth required
|
|
12458
|
+
// http bearer authentication required
|
|
12459
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12460
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12461
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12462
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12463
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12464
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createApplicationRequest, localVarRequestOptions, configuration);
|
|
12465
|
+
return {
|
|
12466
|
+
url: toPathString(localVarUrlObj),
|
|
12467
|
+
options: localVarRequestOptions,
|
|
12468
|
+
};
|
|
12469
|
+
}),
|
|
12470
|
+
/**
|
|
12471
|
+
*
|
|
12472
|
+
* @summary Delete an application
|
|
12473
|
+
* @param {string} organisation The organisation ID
|
|
12474
|
+
* @param {string} application The application ID
|
|
12475
|
+
* @param {*} [options] Override http request option.
|
|
12476
|
+
* @throws {RequiredError}
|
|
12477
|
+
*/
|
|
12478
|
+
deleteApplication: (organisation_1, application_1, ...args_1) => __awaiter(this, [organisation_1, application_1, ...args_1], void 0, function* (organisation, application, options = {}) {
|
|
12479
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
12480
|
+
assertParamExists('deleteApplication', 'organisation', organisation);
|
|
12481
|
+
// verify required parameter 'application' is not null or undefined
|
|
12482
|
+
assertParamExists('deleteApplication', 'application', application);
|
|
12483
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}`
|
|
12484
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
12485
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)));
|
|
12486
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12487
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
12488
|
+
let baseOptions;
|
|
12489
|
+
if (configuration) {
|
|
12490
|
+
baseOptions = configuration.baseOptions;
|
|
12491
|
+
}
|
|
12492
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12493
|
+
const localVarHeaderParameter = {};
|
|
12494
|
+
const localVarQueryParameter = {};
|
|
12495
|
+
// authentication BearerAuth required
|
|
12496
|
+
// http bearer authentication required
|
|
12497
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
12498
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
12499
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12500
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12097
12501
|
return {
|
|
12098
12502
|
url: toPathString(localVarUrlObj),
|
|
12099
12503
|
options: localVarRequestOptions,
|
|
@@ -13531,6 +13935,283 @@ export const GetMonthlyMetricsTimestampFormatEnum = {
|
|
|
13531
13935
|
Iso8601: 'iso8601',
|
|
13532
13936
|
Unix: 'unix'
|
|
13533
13937
|
};
|
|
13938
|
+
/**
|
|
13939
|
+
* CIValuesApi - axios parameter creator
|
|
13940
|
+
* @export
|
|
13941
|
+
*/
|
|
13942
|
+
export const CIValuesApiAxiosParamCreator = function (configuration) {
|
|
13943
|
+
return {
|
|
13944
|
+
/**
|
|
13945
|
+
* Deletes one value. It answers 204 also when the value does not exist. Needs the cloud:write scope and the delete_applications permission.
|
|
13946
|
+
* @summary Delete a CI secret or variable
|
|
13947
|
+
* @param {string} organisation The organisation ID
|
|
13948
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
13949
|
+
* @param {string} [repo] Delete the repository\'s value of this name. Leave out for the organisation\'s value. Lower-cased by the server.
|
|
13950
|
+
* @param {*} [options] Override http request option.
|
|
13951
|
+
* @throws {RequiredError}
|
|
13952
|
+
*/
|
|
13953
|
+
deleteCiValue: (organisation_1, name_1, repo_1, ...args_1) => __awaiter(this, [organisation_1, name_1, repo_1, ...args_1], void 0, function* (organisation, name, repo, options = {}) {
|
|
13954
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
13955
|
+
assertParamExists('deleteCiValue', 'organisation', organisation);
|
|
13956
|
+
// verify required parameter 'name' is not null or undefined
|
|
13957
|
+
assertParamExists('deleteCiValue', 'name', name);
|
|
13958
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ci/values/{name}`
|
|
13959
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
13960
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
13961
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13962
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13963
|
+
let baseOptions;
|
|
13964
|
+
if (configuration) {
|
|
13965
|
+
baseOptions = configuration.baseOptions;
|
|
13966
|
+
}
|
|
13967
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
13968
|
+
const localVarHeaderParameter = {};
|
|
13969
|
+
const localVarQueryParameter = {};
|
|
13970
|
+
// authentication BearerAuth required
|
|
13971
|
+
// http bearer authentication required
|
|
13972
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
13973
|
+
if (repo !== undefined) {
|
|
13974
|
+
localVarQueryParameter['repo'] = repo;
|
|
13975
|
+
}
|
|
13976
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
13977
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13978
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13979
|
+
return {
|
|
13980
|
+
url: toPathString(localVarUrlObj),
|
|
13981
|
+
options: localVarRequestOptions,
|
|
13982
|
+
};
|
|
13983
|
+
}),
|
|
13984
|
+
/**
|
|
13985
|
+
* Returns the organisation\'s CI values and, without the repo filter, every repository\'s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation\'s runner pools. A workflow reads a secret as `${{ secrets.NAME }}` and a variable as `${{ vars.NAME }}`. Needs the cloud:read scope and the CI runners feature.
|
|
13986
|
+
* @summary List the CI secrets and variables
|
|
13987
|
+
* @param {string} organisation The organisation ID
|
|
13988
|
+
* @param {string} [repo] Only the organisation\'s values and this repository\'s values. Lower-cased by the server.
|
|
13989
|
+
* @param {*} [options] Override http request option.
|
|
13990
|
+
* @throws {RequiredError}
|
|
13991
|
+
*/
|
|
13992
|
+
listCiValues: (organisation_1, repo_1, ...args_1) => __awaiter(this, [organisation_1, repo_1, ...args_1], void 0, function* (organisation, repo, options = {}) {
|
|
13993
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
13994
|
+
assertParamExists('listCiValues', 'organisation', organisation);
|
|
13995
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ci/values`
|
|
13996
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
13997
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13998
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
13999
|
+
let baseOptions;
|
|
14000
|
+
if (configuration) {
|
|
14001
|
+
baseOptions = configuration.baseOptions;
|
|
14002
|
+
}
|
|
14003
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
14004
|
+
const localVarHeaderParameter = {};
|
|
14005
|
+
const localVarQueryParameter = {};
|
|
14006
|
+
// authentication BearerAuth required
|
|
14007
|
+
// http bearer authentication required
|
|
14008
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14009
|
+
if (repo !== undefined) {
|
|
14010
|
+
localVarQueryParameter['repo'] = repo;
|
|
14011
|
+
}
|
|
14012
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14013
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14014
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14015
|
+
return {
|
|
14016
|
+
url: toPathString(localVarUrlObj),
|
|
14017
|
+
options: localVarRequestOptions,
|
|
14018
|
+
};
|
|
14019
|
+
}),
|
|
14020
|
+
/**
|
|
14021
|
+
* Sets one value for the organisation, or for one repository when repo is set. The value is write-only for a secret: the response never carries it. The backend validates the name, the value and the limits and answers 400 with a message. Needs the cloud:write scope and the delete_applications permission.
|
|
14022
|
+
* @summary Create or replace a CI secret or variable
|
|
14023
|
+
* @param {string} organisation The organisation ID
|
|
14024
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14025
|
+
* @param {PutCiValueRequest} putCiValueRequest
|
|
14026
|
+
* @param {*} [options] Override http request option.
|
|
14027
|
+
* @throws {RequiredError}
|
|
14028
|
+
*/
|
|
14029
|
+
putCiValue: (organisation_1, name_1, putCiValueRequest_1, ...args_1) => __awaiter(this, [organisation_1, name_1, putCiValueRequest_1, ...args_1], void 0, function* (organisation, name, putCiValueRequest, options = {}) {
|
|
14030
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
14031
|
+
assertParamExists('putCiValue', 'organisation', organisation);
|
|
14032
|
+
// verify required parameter 'name' is not null or undefined
|
|
14033
|
+
assertParamExists('putCiValue', 'name', name);
|
|
14034
|
+
// verify required parameter 'putCiValueRequest' is not null or undefined
|
|
14035
|
+
assertParamExists('putCiValue', 'putCiValueRequest', putCiValueRequest);
|
|
14036
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ci/values/{name}`
|
|
14037
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
14038
|
+
.replace(`{${"name"}}`, encodeURIComponent(String(name)));
|
|
14039
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
14040
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
14041
|
+
let baseOptions;
|
|
14042
|
+
if (configuration) {
|
|
14043
|
+
baseOptions = configuration.baseOptions;
|
|
14044
|
+
}
|
|
14045
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
14046
|
+
const localVarHeaderParameter = {};
|
|
14047
|
+
const localVarQueryParameter = {};
|
|
14048
|
+
// authentication BearerAuth required
|
|
14049
|
+
// http bearer authentication required
|
|
14050
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
14051
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
14052
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
14053
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
14054
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
14055
|
+
localVarRequestOptions.data = serializeDataIfNeeded(putCiValueRequest, localVarRequestOptions, configuration);
|
|
14056
|
+
return {
|
|
14057
|
+
url: toPathString(localVarUrlObj),
|
|
14058
|
+
options: localVarRequestOptions,
|
|
14059
|
+
};
|
|
14060
|
+
}),
|
|
14061
|
+
};
|
|
14062
|
+
};
|
|
14063
|
+
/**
|
|
14064
|
+
* CIValuesApi - functional programming interface
|
|
14065
|
+
* @export
|
|
14066
|
+
*/
|
|
14067
|
+
export const CIValuesApiFp = function (configuration) {
|
|
14068
|
+
const localVarAxiosParamCreator = CIValuesApiAxiosParamCreator(configuration);
|
|
14069
|
+
return {
|
|
14070
|
+
/**
|
|
14071
|
+
* Deletes one value. It answers 204 also when the value does not exist. Needs the cloud:write scope and the delete_applications permission.
|
|
14072
|
+
* @summary Delete a CI secret or variable
|
|
14073
|
+
* @param {string} organisation The organisation ID
|
|
14074
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14075
|
+
* @param {string} [repo] Delete the repository\'s value of this name. Leave out for the organisation\'s value. Lower-cased by the server.
|
|
14076
|
+
* @param {*} [options] Override http request option.
|
|
14077
|
+
* @throws {RequiredError}
|
|
14078
|
+
*/
|
|
14079
|
+
deleteCiValue(organisation, name, repo, options) {
|
|
14080
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14081
|
+
var _a, _b, _c;
|
|
14082
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCiValue(organisation, name, repo, options);
|
|
14083
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14084
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CIValuesApi.deleteCiValue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14085
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14086
|
+
});
|
|
14087
|
+
},
|
|
14088
|
+
/**
|
|
14089
|
+
* Returns the organisation\'s CI values and, without the repo filter, every repository\'s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation\'s runner pools. A workflow reads a secret as `${{ secrets.NAME }}` and a variable as `${{ vars.NAME }}`. Needs the cloud:read scope and the CI runners feature.
|
|
14090
|
+
* @summary List the CI secrets and variables
|
|
14091
|
+
* @param {string} organisation The organisation ID
|
|
14092
|
+
* @param {string} [repo] Only the organisation\'s values and this repository\'s values. Lower-cased by the server.
|
|
14093
|
+
* @param {*} [options] Override http request option.
|
|
14094
|
+
* @throws {RequiredError}
|
|
14095
|
+
*/
|
|
14096
|
+
listCiValues(organisation, repo, options) {
|
|
14097
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14098
|
+
var _a, _b, _c;
|
|
14099
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCiValues(organisation, repo, options);
|
|
14100
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14101
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CIValuesApi.listCiValues']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14102
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14103
|
+
});
|
|
14104
|
+
},
|
|
14105
|
+
/**
|
|
14106
|
+
* Sets one value for the organisation, or for one repository when repo is set. The value is write-only for a secret: the response never carries it. The backend validates the name, the value and the limits and answers 400 with a message. Needs the cloud:write scope and the delete_applications permission.
|
|
14107
|
+
* @summary Create or replace a CI secret or variable
|
|
14108
|
+
* @param {string} organisation The organisation ID
|
|
14109
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14110
|
+
* @param {PutCiValueRequest} putCiValueRequest
|
|
14111
|
+
* @param {*} [options] Override http request option.
|
|
14112
|
+
* @throws {RequiredError}
|
|
14113
|
+
*/
|
|
14114
|
+
putCiValue(organisation, name, putCiValueRequest, options) {
|
|
14115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
14116
|
+
var _a, _b, _c;
|
|
14117
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.putCiValue(organisation, name, putCiValueRequest, options);
|
|
14118
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
14119
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CIValuesApi.putCiValue']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
14120
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
14121
|
+
});
|
|
14122
|
+
},
|
|
14123
|
+
};
|
|
14124
|
+
};
|
|
14125
|
+
/**
|
|
14126
|
+
* CIValuesApi - factory interface
|
|
14127
|
+
* @export
|
|
14128
|
+
*/
|
|
14129
|
+
export const CIValuesApiFactory = function (configuration, basePath, axios) {
|
|
14130
|
+
const localVarFp = CIValuesApiFp(configuration);
|
|
14131
|
+
return {
|
|
14132
|
+
/**
|
|
14133
|
+
* Deletes one value. It answers 204 also when the value does not exist. Needs the cloud:write scope and the delete_applications permission.
|
|
14134
|
+
* @summary Delete a CI secret or variable
|
|
14135
|
+
* @param {string} organisation The organisation ID
|
|
14136
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14137
|
+
* @param {string} [repo] Delete the repository\'s value of this name. Leave out for the organisation\'s value. Lower-cased by the server.
|
|
14138
|
+
* @param {*} [options] Override http request option.
|
|
14139
|
+
* @throws {RequiredError}
|
|
14140
|
+
*/
|
|
14141
|
+
deleteCiValue(organisation, name, repo, options) {
|
|
14142
|
+
return localVarFp.deleteCiValue(organisation, name, repo, options).then((request) => request(axios, basePath));
|
|
14143
|
+
},
|
|
14144
|
+
/**
|
|
14145
|
+
* Returns the organisation\'s CI values and, without the repo filter, every repository\'s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation\'s runner pools. A workflow reads a secret as `${{ secrets.NAME }}` and a variable as `${{ vars.NAME }}`. Needs the cloud:read scope and the CI runners feature.
|
|
14146
|
+
* @summary List the CI secrets and variables
|
|
14147
|
+
* @param {string} organisation The organisation ID
|
|
14148
|
+
* @param {string} [repo] Only the organisation\'s values and this repository\'s values. Lower-cased by the server.
|
|
14149
|
+
* @param {*} [options] Override http request option.
|
|
14150
|
+
* @throws {RequiredError}
|
|
14151
|
+
*/
|
|
14152
|
+
listCiValues(organisation, repo, options) {
|
|
14153
|
+
return localVarFp.listCiValues(organisation, repo, options).then((request) => request(axios, basePath));
|
|
14154
|
+
},
|
|
14155
|
+
/**
|
|
14156
|
+
* Sets one value for the organisation, or for one repository when repo is set. The value is write-only for a secret: the response never carries it. The backend validates the name, the value and the limits and answers 400 with a message. Needs the cloud:write scope and the delete_applications permission.
|
|
14157
|
+
* @summary Create or replace a CI secret or variable
|
|
14158
|
+
* @param {string} organisation The organisation ID
|
|
14159
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14160
|
+
* @param {PutCiValueRequest} putCiValueRequest
|
|
14161
|
+
* @param {*} [options] Override http request option.
|
|
14162
|
+
* @throws {RequiredError}
|
|
14163
|
+
*/
|
|
14164
|
+
putCiValue(organisation, name, putCiValueRequest, options) {
|
|
14165
|
+
return localVarFp.putCiValue(organisation, name, putCiValueRequest, options).then((request) => request(axios, basePath));
|
|
14166
|
+
},
|
|
14167
|
+
};
|
|
14168
|
+
};
|
|
14169
|
+
/**
|
|
14170
|
+
* CIValuesApi - object-oriented interface
|
|
14171
|
+
* @export
|
|
14172
|
+
* @class CIValuesApi
|
|
14173
|
+
* @extends {BaseAPI}
|
|
14174
|
+
*/
|
|
14175
|
+
export class CIValuesApi extends BaseAPI {
|
|
14176
|
+
/**
|
|
14177
|
+
* Deletes one value. It answers 204 also when the value does not exist. Needs the cloud:write scope and the delete_applications permission.
|
|
14178
|
+
* @summary Delete a CI secret or variable
|
|
14179
|
+
* @param {string} organisation The organisation ID
|
|
14180
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14181
|
+
* @param {string} [repo] Delete the repository\'s value of this name. Leave out for the organisation\'s value. Lower-cased by the server.
|
|
14182
|
+
* @param {*} [options] Override http request option.
|
|
14183
|
+
* @throws {RequiredError}
|
|
14184
|
+
* @memberof CIValuesApi
|
|
14185
|
+
*/
|
|
14186
|
+
deleteCiValue(organisation, name, repo, options) {
|
|
14187
|
+
return CIValuesApiFp(this.configuration).deleteCiValue(organisation, name, repo, options).then((request) => request(this.axios, this.basePath));
|
|
14188
|
+
}
|
|
14189
|
+
/**
|
|
14190
|
+
* Returns the organisation\'s CI values and, without the repo filter, every repository\'s values. A variable carries its value. A secret never does. Quant gives the values to CI jobs on the organisation\'s runner pools. A workflow reads a secret as `${{ secrets.NAME }}` and a variable as `${{ vars.NAME }}`. Needs the cloud:read scope and the CI runners feature.
|
|
14191
|
+
* @summary List the CI secrets and variables
|
|
14192
|
+
* @param {string} organisation The organisation ID
|
|
14193
|
+
* @param {string} [repo] Only the organisation\'s values and this repository\'s values. Lower-cased by the server.
|
|
14194
|
+
* @param {*} [options] Override http request option.
|
|
14195
|
+
* @throws {RequiredError}
|
|
14196
|
+
* @memberof CIValuesApi
|
|
14197
|
+
*/
|
|
14198
|
+
listCiValues(organisation, repo, options) {
|
|
14199
|
+
return CIValuesApiFp(this.configuration).listCiValues(organisation, repo, options).then((request) => request(this.axios, this.basePath));
|
|
14200
|
+
}
|
|
14201
|
+
/**
|
|
14202
|
+
* Sets one value for the organisation, or for one repository when repo is set. The value is write-only for a secret: the response never carries it. The backend validates the name, the value and the limits and answers 400 with a message. Needs the cloud:write scope and the delete_applications permission.
|
|
14203
|
+
* @summary Create or replace a CI secret or variable
|
|
14204
|
+
* @param {string} organisation The organisation ID
|
|
14205
|
+
* @param {string} name The name, such as DEPLOY_KEY
|
|
14206
|
+
* @param {PutCiValueRequest} putCiValueRequest
|
|
14207
|
+
* @param {*} [options] Override http request option.
|
|
14208
|
+
* @throws {RequiredError}
|
|
14209
|
+
* @memberof CIValuesApi
|
|
14210
|
+
*/
|
|
14211
|
+
putCiValue(organisation, name, putCiValueRequest, options) {
|
|
14212
|
+
return CIValuesApiFp(this.configuration).putCiValue(organisation, name, putCiValueRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14213
|
+
}
|
|
14214
|
+
}
|
|
13534
14215
|
/**
|
|
13535
14216
|
* CommandsApi - axios parameter creator
|
|
13536
14217
|
* @export
|
|
@@ -14168,12 +14849,12 @@ export const ContainersApiAxiosParamCreator = function (configuration) {
|
|
|
14168
14849
|
};
|
|
14169
14850
|
}),
|
|
14170
14851
|
/**
|
|
14171
|
-
*
|
|
14852
|
+
* Updates one container in the environment\'s compose definition and redeploys the environment. The fields in the request body replace the same fields of the container. Fields that the request body omits keep their current values. Other containers and the task-level settings do not change. To clear a field, send it as null. The container name in the body must match the name in the path: a container cannot be renamed. Container updates to one environment run one at a time. A compose change made at the same moment through another endpoint can still overwrite this update.
|
|
14172
14853
|
* @summary Update a container in an environment
|
|
14173
14854
|
* @param {string} organisation The organisation ID
|
|
14174
14855
|
* @param {string} application The application ID
|
|
14175
14856
|
* @param {string} environment The environment ID
|
|
14176
|
-
* @param {string} container The container
|
|
14857
|
+
* @param {string} container The container name
|
|
14177
14858
|
* @param {Container} container2
|
|
14178
14859
|
* @param {*} [options] Override http request option.
|
|
14179
14860
|
* @throws {RequiredError}
|
|
@@ -14244,12 +14925,12 @@ export const ContainersApiFp = function (configuration) {
|
|
|
14244
14925
|
});
|
|
14245
14926
|
},
|
|
14246
14927
|
/**
|
|
14247
|
-
*
|
|
14928
|
+
* Updates one container in the environment\'s compose definition and redeploys the environment. The fields in the request body replace the same fields of the container. Fields that the request body omits keep their current values. Other containers and the task-level settings do not change. To clear a field, send it as null. The container name in the body must match the name in the path: a container cannot be renamed. Container updates to one environment run one at a time. A compose change made at the same moment through another endpoint can still overwrite this update.
|
|
14248
14929
|
* @summary Update a container in an environment
|
|
14249
14930
|
* @param {string} organisation The organisation ID
|
|
14250
14931
|
* @param {string} application The application ID
|
|
14251
14932
|
* @param {string} environment The environment ID
|
|
14252
|
-
* @param {string} container The container
|
|
14933
|
+
* @param {string} container The container name
|
|
14253
14934
|
* @param {Container} container2
|
|
14254
14935
|
* @param {*} [options] Override http request option.
|
|
14255
14936
|
* @throws {RequiredError}
|
|
@@ -14285,12 +14966,12 @@ export const ContainersApiFactory = function (configuration, basePath, axios) {
|
|
|
14285
14966
|
return localVarFp.listContainers(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
14286
14967
|
},
|
|
14287
14968
|
/**
|
|
14288
|
-
*
|
|
14969
|
+
* Updates one container in the environment\'s compose definition and redeploys the environment. The fields in the request body replace the same fields of the container. Fields that the request body omits keep their current values. Other containers and the task-level settings do not change. To clear a field, send it as null. The container name in the body must match the name in the path: a container cannot be renamed. Container updates to one environment run one at a time. A compose change made at the same moment through another endpoint can still overwrite this update.
|
|
14289
14970
|
* @summary Update a container in an environment
|
|
14290
14971
|
* @param {string} organisation The organisation ID
|
|
14291
14972
|
* @param {string} application The application ID
|
|
14292
14973
|
* @param {string} environment The environment ID
|
|
14293
|
-
* @param {string} container The container
|
|
14974
|
+
* @param {string} container The container name
|
|
14294
14975
|
* @param {Container} container2
|
|
14295
14976
|
* @param {*} [options] Override http request option.
|
|
14296
14977
|
* @throws {RequiredError}
|
|
@@ -14321,12 +15002,12 @@ export class ContainersApi extends BaseAPI {
|
|
|
14321
15002
|
return ContainersApiFp(this.configuration).listContainers(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
14322
15003
|
}
|
|
14323
15004
|
/**
|
|
14324
|
-
*
|
|
15005
|
+
* Updates one container in the environment\'s compose definition and redeploys the environment. The fields in the request body replace the same fields of the container. Fields that the request body omits keep their current values. Other containers and the task-level settings do not change. To clear a field, send it as null. The container name in the body must match the name in the path: a container cannot be renamed. Container updates to one environment run one at a time. A compose change made at the same moment through another endpoint can still overwrite this update.
|
|
14325
15006
|
* @summary Update a container in an environment
|
|
14326
15007
|
* @param {string} organisation The organisation ID
|
|
14327
15008
|
* @param {string} application The application ID
|
|
14328
15009
|
* @param {string} environment The environment ID
|
|
14329
|
-
* @param {string} container The container
|
|
15010
|
+
* @param {string} container The container name
|
|
14330
15011
|
* @param {Container} container2
|
|
14331
15012
|
* @param {*} [options] Override http request option.
|
|
14332
15013
|
* @throws {RequiredError}
|
|
@@ -24487,6 +25168,74 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
24487
25168
|
*/
|
|
24488
25169
|
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
24489
25170
|
return {
|
|
25171
|
+
/**
|
|
25172
|
+
* Output of the project\'s edge functions and content filters (console.* as type console, quantLog() as type function), WAF hits and static failover. Entries are returned oldest first, up to about 10 minutes behind, kept 31 days; pass nextToken from the previous response, with the same filters, to fetch the next page. A slow query can return an empty page with a nextToken. An edge function invocation keeps at most 100 console lines of up to 8 KB each.
|
|
25173
|
+
* @summary Get edge events for a project
|
|
25174
|
+
* @param {string} organization The organization machine name
|
|
25175
|
+
* @param {string} project The project machine name
|
|
25176
|
+
* @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
|
|
25177
|
+
* @param {string} [_function] Only events from this edge function (UUID)
|
|
25178
|
+
* @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
|
|
25179
|
+
* @param {string} [search] Case-insensitive substring of the message
|
|
25180
|
+
* @param {number} [limit] Maximum number of events per page (default 100)
|
|
25181
|
+
* @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25182
|
+
* @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25183
|
+
* @param {string} [nextToken] Opaque pagination token from the previous response
|
|
25184
|
+
* @param {*} [options] Override http request option.
|
|
25185
|
+
* @throws {RequiredError}
|
|
25186
|
+
*/
|
|
25187
|
+
getProjectEdgeEvents: (organization_1, project_1, type_1, _function_1, level_1, search_1, limit_1, startTime_1, endTime_1, nextToken_1, ...args_1) => __awaiter(this, [organization_1, project_1, type_1, _function_1, level_1, search_1, limit_1, startTime_1, endTime_1, nextToken_1, ...args_1], void 0, function* (organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options = {}) {
|
|
25188
|
+
// verify required parameter 'organization' is not null or undefined
|
|
25189
|
+
assertParamExists('getProjectEdgeEvents', 'organization', organization);
|
|
25190
|
+
// verify required parameter 'project' is not null or undefined
|
|
25191
|
+
assertParamExists('getProjectEdgeEvents', 'project', project);
|
|
25192
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/edge-events`
|
|
25193
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
25194
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
25195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
25196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
25197
|
+
let baseOptions;
|
|
25198
|
+
if (configuration) {
|
|
25199
|
+
baseOptions = configuration.baseOptions;
|
|
25200
|
+
}
|
|
25201
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
25202
|
+
const localVarHeaderParameter = {};
|
|
25203
|
+
const localVarQueryParameter = {};
|
|
25204
|
+
// authentication BearerAuth required
|
|
25205
|
+
// http bearer authentication required
|
|
25206
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
25207
|
+
if (type !== undefined) {
|
|
25208
|
+
localVarQueryParameter['type'] = type;
|
|
25209
|
+
}
|
|
25210
|
+
if (_function !== undefined) {
|
|
25211
|
+
localVarQueryParameter['function'] = _function;
|
|
25212
|
+
}
|
|
25213
|
+
if (level !== undefined) {
|
|
25214
|
+
localVarQueryParameter['level'] = level;
|
|
25215
|
+
}
|
|
25216
|
+
if (search !== undefined) {
|
|
25217
|
+
localVarQueryParameter['search'] = search;
|
|
25218
|
+
}
|
|
25219
|
+
if (limit !== undefined) {
|
|
25220
|
+
localVarQueryParameter['limit'] = limit;
|
|
25221
|
+
}
|
|
25222
|
+
if (startTime !== undefined) {
|
|
25223
|
+
localVarQueryParameter['startTime'] = startTime;
|
|
25224
|
+
}
|
|
25225
|
+
if (endTime !== undefined) {
|
|
25226
|
+
localVarQueryParameter['endTime'] = endTime;
|
|
25227
|
+
}
|
|
25228
|
+
if (nextToken !== undefined) {
|
|
25229
|
+
localVarQueryParameter['nextToken'] = nextToken;
|
|
25230
|
+
}
|
|
25231
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
25232
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
25233
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
25234
|
+
return {
|
|
25235
|
+
url: toPathString(localVarUrlObj),
|
|
25236
|
+
options: localVarRequestOptions,
|
|
25237
|
+
};
|
|
25238
|
+
}),
|
|
24490
25239
|
/**
|
|
24491
25240
|
* Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
|
|
24492
25241
|
* @summary Get CDN access logs for a project
|
|
@@ -24744,6 +25493,31 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
|
24744
25493
|
export const ProjectsApiFp = function (configuration) {
|
|
24745
25494
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
|
24746
25495
|
return {
|
|
25496
|
+
/**
|
|
25497
|
+
* Output of the project\'s edge functions and content filters (console.* as type console, quantLog() as type function), WAF hits and static failover. Entries are returned oldest first, up to about 10 minutes behind, kept 31 days; pass nextToken from the previous response, with the same filters, to fetch the next page. A slow query can return an empty page with a nextToken. An edge function invocation keeps at most 100 console lines of up to 8 KB each.
|
|
25498
|
+
* @summary Get edge events for a project
|
|
25499
|
+
* @param {string} organization The organization machine name
|
|
25500
|
+
* @param {string} project The project machine name
|
|
25501
|
+
* @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
|
|
25502
|
+
* @param {string} [_function] Only events from this edge function (UUID)
|
|
25503
|
+
* @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
|
|
25504
|
+
* @param {string} [search] Case-insensitive substring of the message
|
|
25505
|
+
* @param {number} [limit] Maximum number of events per page (default 100)
|
|
25506
|
+
* @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25507
|
+
* @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25508
|
+
* @param {string} [nextToken] Opaque pagination token from the previous response
|
|
25509
|
+
* @param {*} [options] Override http request option.
|
|
25510
|
+
* @throws {RequiredError}
|
|
25511
|
+
*/
|
|
25512
|
+
getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
|
|
25513
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
25514
|
+
var _a, _b, _c;
|
|
25515
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options);
|
|
25516
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
25517
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.getProjectEdgeEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
25518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
25519
|
+
});
|
|
25520
|
+
},
|
|
24747
25521
|
/**
|
|
24748
25522
|
* Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
|
|
24749
25523
|
* @summary Get CDN access logs for a project
|
|
@@ -24862,6 +25636,25 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
24862
25636
|
export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
24863
25637
|
const localVarFp = ProjectsApiFp(configuration);
|
|
24864
25638
|
return {
|
|
25639
|
+
/**
|
|
25640
|
+
* Output of the project\'s edge functions and content filters (console.* as type console, quantLog() as type function), WAF hits and static failover. Entries are returned oldest first, up to about 10 minutes behind, kept 31 days; pass nextToken from the previous response, with the same filters, to fetch the next page. A slow query can return an empty page with a nextToken. An edge function invocation keeps at most 100 console lines of up to 8 KB each.
|
|
25641
|
+
* @summary Get edge events for a project
|
|
25642
|
+
* @param {string} organization The organization machine name
|
|
25643
|
+
* @param {string} project The project machine name
|
|
25644
|
+
* @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
|
|
25645
|
+
* @param {string} [_function] Only events from this edge function (UUID)
|
|
25646
|
+
* @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
|
|
25647
|
+
* @param {string} [search] Case-insensitive substring of the message
|
|
25648
|
+
* @param {number} [limit] Maximum number of events per page (default 100)
|
|
25649
|
+
* @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25650
|
+
* @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25651
|
+
* @param {string} [nextToken] Opaque pagination token from the previous response
|
|
25652
|
+
* @param {*} [options] Override http request option.
|
|
25653
|
+
* @throws {RequiredError}
|
|
25654
|
+
*/
|
|
25655
|
+
getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
|
|
25656
|
+
return localVarFp.getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options).then((request) => request(axios, basePath));
|
|
25657
|
+
},
|
|
24865
25658
|
/**
|
|
24866
25659
|
* Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
|
|
24867
25660
|
* @summary Get CDN access logs for a project
|
|
@@ -24944,6 +25737,26 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
24944
25737
|
* @extends {BaseAPI}
|
|
24945
25738
|
*/
|
|
24946
25739
|
export class ProjectsApi extends BaseAPI {
|
|
25740
|
+
/**
|
|
25741
|
+
* Output of the project\'s edge functions and content filters (console.* as type console, quantLog() as type function), WAF hits and static failover. Entries are returned oldest first, up to about 10 minutes behind, kept 31 days; pass nextToken from the previous response, with the same filters, to fetch the next page. A slow query can return an empty page with a nextToken. An edge function invocation keeps at most 100 console lines of up to 8 KB each.
|
|
25742
|
+
* @summary Get edge events for a project
|
|
25743
|
+
* @param {string} organization The organization machine name
|
|
25744
|
+
* @param {string} project The project machine name
|
|
25745
|
+
* @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
|
|
25746
|
+
* @param {string} [_function] Only events from this edge function (UUID)
|
|
25747
|
+
* @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
|
|
25748
|
+
* @param {string} [search] Case-insensitive substring of the message
|
|
25749
|
+
* @param {number} [limit] Maximum number of events per page (default 100)
|
|
25750
|
+
* @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25751
|
+
* @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
|
|
25752
|
+
* @param {string} [nextToken] Opaque pagination token from the previous response
|
|
25753
|
+
* @param {*} [options] Override http request option.
|
|
25754
|
+
* @throws {RequiredError}
|
|
25755
|
+
* @memberof ProjectsApi
|
|
25756
|
+
*/
|
|
25757
|
+
getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
|
|
25758
|
+
return ProjectsApiFp(this.configuration).getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
25759
|
+
}
|
|
24947
25760
|
/**
|
|
24948
25761
|
* Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
|
|
24949
25762
|
* @summary Get CDN access logs for a project
|
|
@@ -25024,6 +25837,16 @@ export class ProjectsApi extends BaseAPI {
|
|
|
25024
25837
|
return ProjectsApiFp(this.configuration).projectsUpdate(organization, project, v2ProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
25025
25838
|
}
|
|
25026
25839
|
}
|
|
25840
|
+
/**
|
|
25841
|
+
* @export
|
|
25842
|
+
*/
|
|
25843
|
+
export const GetProjectEdgeEventsLevelEnum = {
|
|
25844
|
+
Log: 'log',
|
|
25845
|
+
Info: 'info',
|
|
25846
|
+
Warn: 'warn',
|
|
25847
|
+
Error: 'error',
|
|
25848
|
+
Debug: 'debug'
|
|
25849
|
+
};
|
|
25027
25850
|
/**
|
|
25028
25851
|
* PurgeApi - axios parameter creator
|
|
25029
25852
|
* @export
|
|
@@ -27758,7 +28581,7 @@ export const RulesApiAxiosParamCreator = function (configuration) {
|
|
|
27758
28581
|
};
|
|
27759
28582
|
}),
|
|
27760
28583
|
/**
|
|
27761
|
-
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order)
|
|
28584
|
+
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order), `managed` (true when a template deploy owns the rule in this project) and, on a rule written by a deploy of `quant/edge-rules.json`, `deployment` (its namespace and id in that file). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
|
|
27762
28585
|
* @summary List all rules in edge order
|
|
27763
28586
|
* @param {string} organization
|
|
27764
28587
|
* @param {string} project
|
|
@@ -29129,7 +29952,7 @@ export const RulesApiFp = function (configuration) {
|
|
|
29129
29952
|
});
|
|
29130
29953
|
},
|
|
29131
29954
|
/**
|
|
29132
|
-
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order)
|
|
29955
|
+
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order), `managed` (true when a template deploy owns the rule in this project) and, on a rule written by a deploy of `quant/edge-rules.json`, `deployment` (its namespace and id in that file). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
|
|
29133
29956
|
* @summary List all rules in edge order
|
|
29134
29957
|
* @param {string} organization
|
|
29135
29958
|
* @param {string} project
|
|
@@ -29905,7 +30728,7 @@ export const RulesApiFactory = function (configuration, basePath, axios) {
|
|
|
29905
30728
|
return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
|
|
29906
30729
|
},
|
|
29907
30730
|
/**
|
|
29908
|
-
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order)
|
|
30731
|
+
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order), `managed` (true when a template deploy owns the rule in this project) and, on a rule written by a deploy of `quant/edge-rules.json`, `deployment` (its namespace and id in that file). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
|
|
29909
30732
|
* @summary List all rules in edge order
|
|
29910
30733
|
* @param {string} organization
|
|
29911
30734
|
* @param {string} project
|
|
@@ -30625,7 +31448,7 @@ export class RulesApi extends BaseAPI {
|
|
|
30625
31448
|
return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
30626
31449
|
}
|
|
30627
31450
|
/**
|
|
30628
|
-
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order)
|
|
31451
|
+
* Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order), `managed` (true when a template deploy owns the rule in this project) and, on a rule written by a deploy of `quant/edge-rules.json`, `deployment` (its namespace and id in that file). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
|
|
30629
31452
|
* @summary List all rules in edge order
|
|
30630
31453
|
* @param {string} organization
|
|
30631
31454
|
* @param {string} project
|