@quantcdn/quant-client 4.31.0 → 4.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.31.0
7
+ * The version of the OpenAPI document: 4.34.0
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
- * ApplicationsApi - axios parameter creator
12318
+ * AlertChannelsApi - axios parameter creator
12025
12319
  * @export
12026
12320
  */
12027
- export const ApplicationsApiAxiosParamCreator = function (configuration) {
12321
+ export const AlertChannelsApiAxiosParamCreator = function (configuration) {
12028
12322
  return {
12029
12323
  /**
12030
- *
12031
- * @summary Create a new application
12032
- * @param {string} organisation The organisation ID
12033
- * @param {CreateApplicationRequest} createApplicationRequest
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
- createApplication: (organisation_1, createApplicationRequest_1, ...args_1) => __awaiter(this, [organisation_1, createApplicationRequest_1, ...args_1], void 0, function* (organisation, createApplicationRequest, options = {}) {
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('createApplication', 'organisation', organisation);
12040
- // verify required parameter 'createApplicationRequest' is not null or undefined
12041
- assertParamExists('createApplication', 'createApplicationRequest', createApplicationRequest);
12042
- const localVarPath = `/api/v3/organizations/{organisation}/applications`
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: 'POST' }, baseOptions), options);
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 Delete an application
12069
- * @param {string} organisation The organisation ID
12070
- * @param {string} application The application ID
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
- deleteApplication: (organisation_1, application_1, ...args_1) => __awaiter(this, [organisation_1, application_1, ...args_1], void 0, function* (organisation, application, options = {}) {
12075
- // verify required parameter 'organisation' is not null or undefined
12076
- assertParamExists('deleteApplication', 'organisation', organisation);
12077
- // verify required parameter 'application' is not null or undefined
12078
- assertParamExists('deleteApplication', 'application', application);
12079
- const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}`
12080
- .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
12081
- .replace(`{${"application"}}`, encodeURIComponent(String(application)));
12082
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12083
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12084
- let baseOptions;
12085
- if (configuration) {
12086
- baseOptions = configuration.baseOptions;
12087
- }
12088
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12089
- const localVarHeaderParameter = {};
12090
- const localVarQueryParameter = {};
12091
- // authentication BearerAuth required
12092
- // http bearer authentication required
12093
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12094
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12095
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12096
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
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 ID
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 ID
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 ID
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 ID
15010
+ * @param {string} container The container name
14330
15011
  * @param {Container} container2
14331
15012
  * @param {*} [options] Override http request option.
14332
15013
  * @throws {RequiredError}
@@ -17450,51 +18131,6 @@ export const EnvironmentsApiAxiosParamCreator = function (configuration) {
17450
18131
  options: localVarRequestOptions,
17451
18132
  };
17452
18133
  }),
17453
- /**
17454
- * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the container service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
17455
- * @summary Update Environment Compose Definition
17456
- * @param {string} organisation The organisation ID
17457
- * @param {string} application The application ID
17458
- * @param {string} environment The environment ID
17459
- * @param {UpdateEnvironmentRequest} updateEnvironmentRequest
17460
- * @param {*} [options] Override http request option.
17461
- * @throws {RequiredError}
17462
- */
17463
- updateEnvironment: (organisation_1, application_1, environment_1, updateEnvironmentRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, updateEnvironmentRequest_1, ...args_1], void 0, function* (organisation, application, environment, updateEnvironmentRequest, options = {}) {
17464
- // verify required parameter 'organisation' is not null or undefined
17465
- assertParamExists('updateEnvironment', 'organisation', organisation);
17466
- // verify required parameter 'application' is not null or undefined
17467
- assertParamExists('updateEnvironment', 'application', application);
17468
- // verify required parameter 'environment' is not null or undefined
17469
- assertParamExists('updateEnvironment', 'environment', environment);
17470
- // verify required parameter 'updateEnvironmentRequest' is not null or undefined
17471
- assertParamExists('updateEnvironment', 'updateEnvironmentRequest', updateEnvironmentRequest);
17472
- const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}`
17473
- .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
17474
- .replace(`{${"application"}}`, encodeURIComponent(String(application)))
17475
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
17476
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
17477
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17478
- let baseOptions;
17479
- if (configuration) {
17480
- baseOptions = configuration.baseOptions;
17481
- }
17482
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
17483
- const localVarHeaderParameter = {};
17484
- const localVarQueryParameter = {};
17485
- // authentication BearerAuth required
17486
- // http bearer authentication required
17487
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17488
- localVarHeaderParameter['Content-Type'] = 'application/json';
17489
- setSearchParams(localVarUrlObj, localVarQueryParameter);
17490
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17491
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17492
- localVarRequestOptions.data = serializeDataIfNeeded(updateEnvironmentRequest, localVarRequestOptions, configuration);
17493
- return {
17494
- url: toPathString(localVarUrlObj),
17495
- options: localVarRequestOptions,
17496
- };
17497
- }),
17498
18134
  /**
17499
18135
  *
17500
18136
  * @summary Update the state of an environment
@@ -17730,25 +18366,6 @@ export const EnvironmentsApiFp = function (configuration) {
17730
18366
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17731
18367
  });
17732
18368
  },
17733
- /**
17734
- * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the container service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
17735
- * @summary Update Environment Compose Definition
17736
- * @param {string} organisation The organisation ID
17737
- * @param {string} application The application ID
17738
- * @param {string} environment The environment ID
17739
- * @param {UpdateEnvironmentRequest} updateEnvironmentRequest
17740
- * @param {*} [options] Override http request option.
17741
- * @throws {RequiredError}
17742
- */
17743
- updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options) {
17744
- return __awaiter(this, void 0, void 0, function* () {
17745
- var _a, _b, _c;
17746
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options);
17747
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17748
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['EnvironmentsApi.updateEnvironment']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17749
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17750
- });
17751
- },
17752
18369
  /**
17753
18370
  *
17754
18371
  * @summary Update the state of an environment
@@ -17904,19 +18521,6 @@ export const EnvironmentsApiFactory = function (configuration, basePath, axios)
17904
18521
  syncToEnvironment(organisation, application, environment, type, syncToEnvironmentRequest, options) {
17905
18522
  return localVarFp.syncToEnvironment(organisation, application, environment, type, syncToEnvironmentRequest, options).then((request) => request(axios, basePath));
17906
18523
  },
17907
- /**
17908
- * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the container service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
17909
- * @summary Update Environment Compose Definition
17910
- * @param {string} organisation The organisation ID
17911
- * @param {string} application The application ID
17912
- * @param {string} environment The environment ID
17913
- * @param {UpdateEnvironmentRequest} updateEnvironmentRequest
17914
- * @param {*} [options] Override http request option.
17915
- * @throws {RequiredError}
17916
- */
17917
- updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options) {
17918
- return localVarFp.updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options).then((request) => request(axios, basePath));
17919
- },
17920
18524
  /**
17921
18525
  *
17922
18526
  * @summary Update the state of an environment
@@ -18075,20 +18679,6 @@ export class EnvironmentsApi extends BaseAPI {
18075
18679
  syncToEnvironment(organisation, application, environment, type, syncToEnvironmentRequest, options) {
18076
18680
  return EnvironmentsApiFp(this.configuration).syncToEnvironment(organisation, application, environment, type, syncToEnvironmentRequest, options).then((request) => request(this.axios, this.basePath));
18077
18681
  }
18078
- /**
18079
- * Replaces the entire task definition for the environment based on the provided multi-container compose definition. This will create a new task definition revision and update the container service, triggering a redeployment. Optionally accepts minCapacity and maxCapacity at the root level for convenience.
18080
- * @summary Update Environment Compose Definition
18081
- * @param {string} organisation The organisation ID
18082
- * @param {string} application The application ID
18083
- * @param {string} environment The environment ID
18084
- * @param {UpdateEnvironmentRequest} updateEnvironmentRequest
18085
- * @param {*} [options] Override http request option.
18086
- * @throws {RequiredError}
18087
- * @memberof EnvironmentsApi
18088
- */
18089
- updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options) {
18090
- return EnvironmentsApiFp(this.configuration).updateEnvironment(organisation, application, environment, updateEnvironmentRequest, options).then((request) => request(this.axios, this.basePath));
18091
- }
18092
18682
  /**
18093
18683
  *
18094
18684
  * @summary Update the state of an environment
@@ -24487,6 +25077,74 @@ export class OrganizationsApi extends BaseAPI {
24487
25077
  */
24488
25078
  export const ProjectsApiAxiosParamCreator = function (configuration) {
24489
25079
  return {
25080
+ /**
25081
+ * 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.
25082
+ * @summary Get edge events for a project
25083
+ * @param {string} organization The organization machine name
25084
+ * @param {string} project The project machine name
25085
+ * @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
25086
+ * @param {string} [_function] Only events from this edge function (UUID)
25087
+ * @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
25088
+ * @param {string} [search] Case-insensitive substring of the message
25089
+ * @param {number} [limit] Maximum number of events per page (default 100)
25090
+ * @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
25091
+ * @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
25092
+ * @param {string} [nextToken] Opaque pagination token from the previous response
25093
+ * @param {*} [options] Override http request option.
25094
+ * @throws {RequiredError}
25095
+ */
25096
+ 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 = {}) {
25097
+ // verify required parameter 'organization' is not null or undefined
25098
+ assertParamExists('getProjectEdgeEvents', 'organization', organization);
25099
+ // verify required parameter 'project' is not null or undefined
25100
+ assertParamExists('getProjectEdgeEvents', 'project', project);
25101
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/edge-events`
25102
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
25103
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
25104
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
25105
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
25106
+ let baseOptions;
25107
+ if (configuration) {
25108
+ baseOptions = configuration.baseOptions;
25109
+ }
25110
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
25111
+ const localVarHeaderParameter = {};
25112
+ const localVarQueryParameter = {};
25113
+ // authentication BearerAuth required
25114
+ // http bearer authentication required
25115
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
25116
+ if (type !== undefined) {
25117
+ localVarQueryParameter['type'] = type;
25118
+ }
25119
+ if (_function !== undefined) {
25120
+ localVarQueryParameter['function'] = _function;
25121
+ }
25122
+ if (level !== undefined) {
25123
+ localVarQueryParameter['level'] = level;
25124
+ }
25125
+ if (search !== undefined) {
25126
+ localVarQueryParameter['search'] = search;
25127
+ }
25128
+ if (limit !== undefined) {
25129
+ localVarQueryParameter['limit'] = limit;
25130
+ }
25131
+ if (startTime !== undefined) {
25132
+ localVarQueryParameter['startTime'] = startTime;
25133
+ }
25134
+ if (endTime !== undefined) {
25135
+ localVarQueryParameter['endTime'] = endTime;
25136
+ }
25137
+ if (nextToken !== undefined) {
25138
+ localVarQueryParameter['nextToken'] = nextToken;
25139
+ }
25140
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
25141
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
25142
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
25143
+ return {
25144
+ url: toPathString(localVarUrlObj),
25145
+ options: localVarRequestOptions,
25146
+ };
25147
+ }),
24490
25148
  /**
24491
25149
  * 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
25150
  * @summary Get CDN access logs for a project
@@ -24744,6 +25402,31 @@ export const ProjectsApiAxiosParamCreator = function (configuration) {
24744
25402
  export const ProjectsApiFp = function (configuration) {
24745
25403
  const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
24746
25404
  return {
25405
+ /**
25406
+ * 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.
25407
+ * @summary Get edge events for a project
25408
+ * @param {string} organization The organization machine name
25409
+ * @param {string} project The project machine name
25410
+ * @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
25411
+ * @param {string} [_function] Only events from this edge function (UUID)
25412
+ * @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
25413
+ * @param {string} [search] Case-insensitive substring of the message
25414
+ * @param {number} [limit] Maximum number of events per page (default 100)
25415
+ * @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
25416
+ * @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
25417
+ * @param {string} [nextToken] Opaque pagination token from the previous response
25418
+ * @param {*} [options] Override http request option.
25419
+ * @throws {RequiredError}
25420
+ */
25421
+ getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
25422
+ return __awaiter(this, void 0, void 0, function* () {
25423
+ var _a, _b, _c;
25424
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options);
25425
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
25426
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ProjectsApi.getProjectEdgeEvents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
25427
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
25428
+ });
25429
+ },
24747
25430
  /**
24748
25431
  * 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
25432
  * @summary Get CDN access logs for a project
@@ -24862,6 +25545,25 @@ export const ProjectsApiFp = function (configuration) {
24862
25545
  export const ProjectsApiFactory = function (configuration, basePath, axios) {
24863
25546
  const localVarFp = ProjectsApiFp(configuration);
24864
25547
  return {
25548
+ /**
25549
+ * 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.
25550
+ * @summary Get edge events for a project
25551
+ * @param {string} organization The organization machine name
25552
+ * @param {string} project The project machine name
25553
+ * @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
25554
+ * @param {string} [_function] Only events from this edge function (UUID)
25555
+ * @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
25556
+ * @param {string} [search] Case-insensitive substring of the message
25557
+ * @param {number} [limit] Maximum number of events per page (default 100)
25558
+ * @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
25559
+ * @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
25560
+ * @param {string} [nextToken] Opaque pagination token from the previous response
25561
+ * @param {*} [options] Override http request option.
25562
+ * @throws {RequiredError}
25563
+ */
25564
+ getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
25565
+ return localVarFp.getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options).then((request) => request(axios, basePath));
25566
+ },
24865
25567
  /**
24866
25568
  * 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
25569
  * @summary Get CDN access logs for a project
@@ -24944,6 +25646,26 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
24944
25646
  * @extends {BaseAPI}
24945
25647
  */
24946
25648
  export class ProjectsApi extends BaseAPI {
25649
+ /**
25650
+ * 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.
25651
+ * @summary Get edge events for a project
25652
+ * @param {string} organization The organization machine name
25653
+ * @param {string} project The project machine name
25654
+ * @param {string} [type] Comma-separated event types: console, function, waf-hit, static-failover
25655
+ * @param {string} [_function] Only events from this edge function (UUID)
25656
+ * @param {GetProjectEdgeEventsLevelEnum} [level] Only console events at this level
25657
+ * @param {string} [search] Case-insensitive substring of the message
25658
+ * @param {number} [limit] Maximum number of events per page (default 100)
25659
+ * @param {string} [startTime] Start of the time range. ISO 8601 or Unix epoch milliseconds.
25660
+ * @param {string} [endTime] End of the time range. ISO 8601 or Unix epoch milliseconds.
25661
+ * @param {string} [nextToken] Opaque pagination token from the previous response
25662
+ * @param {*} [options] Override http request option.
25663
+ * @throws {RequiredError}
25664
+ * @memberof ProjectsApi
25665
+ */
25666
+ getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options) {
25667
+ return ProjectsApiFp(this.configuration).getProjectEdgeEvents(organization, project, type, _function, level, search, limit, startTime, endTime, nextToken, options).then((request) => request(this.axios, this.basePath));
25668
+ }
24947
25669
  /**
24948
25670
  * 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
25671
  * @summary Get CDN access logs for a project
@@ -25024,6 +25746,16 @@ export class ProjectsApi extends BaseAPI {
25024
25746
  return ProjectsApiFp(this.configuration).projectsUpdate(organization, project, v2ProjectRequest, options).then((request) => request(this.axios, this.basePath));
25025
25747
  }
25026
25748
  }
25749
+ /**
25750
+ * @export
25751
+ */
25752
+ export const GetProjectEdgeEventsLevelEnum = {
25753
+ Log: 'log',
25754
+ Info: 'info',
25755
+ Warn: 'warn',
25756
+ Error: 'error',
25757
+ Debug: 'debug'
25758
+ };
25027
25759
  /**
25028
25760
  * PurgeApi - axios parameter creator
25029
25761
  * @export
@@ -27758,7 +28490,7 @@ export const RulesApiAxiosParamCreator = function (configuration) {
27758
28490
  };
27759
28491
  }),
27760
28492
  /**
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) and `managed` (true when a template deploy owns the rule in this project). 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.
28493
+ * 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
28494
  * @summary List all rules in edge order
27763
28495
  * @param {string} organization
27764
28496
  * @param {string} project
@@ -29129,7 +29861,7 @@ export const RulesApiFp = function (configuration) {
29129
29861
  });
29130
29862
  },
29131
29863
  /**
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) and `managed` (true when a template deploy owns the rule in this project). 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.
29864
+ * 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
29865
  * @summary List all rules in edge order
29134
29866
  * @param {string} organization
29135
29867
  * @param {string} project
@@ -29905,7 +30637,7 @@ export const RulesApiFactory = function (configuration, basePath, axios) {
29905
30637
  return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
29906
30638
  },
29907
30639
  /**
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) and `managed` (true when a template deploy owns the rule in this project). 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.
30640
+ * 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
30641
  * @summary List all rules in edge order
29910
30642
  * @param {string} organization
29911
30643
  * @param {string} project
@@ -30625,7 +31357,7 @@ export class RulesApi extends BaseAPI {
30625
31357
  return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
30626
31358
  }
30627
31359
  /**
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) and `managed` (true when a template deploy owns the rule in this project). 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.
31360
+ * 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
31361
  * @summary List all rules in edge order
30630
31362
  * @param {string} organization
30631
31363
  * @param {string} project