@quantcdn/quant-client 4.1.0 → 4.2.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/dist/api.js CHANGED
@@ -5,7 +5,7 @@
5
5
  * QuantCDN API
6
6
  * Unified API for QuantCDN Admin and QuantCloud Platform services
7
7
  *
8
- * The version of the OpenAPI document: 4.1.0
8
+ * The version of the OpenAPI document: 4.2.1
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -22,15 +22,24 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
22
22
  });
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
- exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIServicesApi = exports.AIServicesApiFactory = exports.AIServicesApiFp = exports.AIServicesApiAxiosParamCreator = exports.V1TransitionStateEnum = exports.TestSearchExtractorsRequestTypeEnum = exports.ScalingPolicyMetricEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = void 0;
26
- exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.GetMetricsTimeframeEnum = exports.GetMetricSeriesTypeEnum = exports.MetricsApi = exports.MetricsApiFactory = exports.MetricsApiFp = exports.MetricsApiAxiosParamCreator = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.FormsApi = exports.FormsApiFactory = exports.FormsApiFp = exports.FormsApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = void 0;
27
- exports.WAFApi = exports.WAFApiFactory = exports.WAFApiFp = exports.WAFApiAxiosParamCreator = exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.ListContentTypeEnum = exports.V1Api = exports.V1ApiFactory = exports.V1ApiFp = exports.V1ApiAxiosParamCreator = exports.SearchApi = exports.SearchApiFactory = exports.SearchApiFp = exports.SearchApiAxiosParamCreator = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = void 0;
25
+ exports.V2RuleContentFilterActionModeEnum = exports.V2RuleContentFilterNotifyEnum = exports.V2RuleContentFilterModeEnum = exports.V2RuleBotChallengeRequestNotifyEnum = exports.V2RuleBotChallengeRequestModeEnum = exports.V2RuleBotChallengeActionNotifyEnum = exports.V2RuleBotChallengeActionModeEnum = exports.V2RuleBotChallengeNotifyEnum = exports.V2RuleBotChallengeModeEnum = exports.V2RuleAuthRequestNotifyEnum = exports.V2RuleAuthRequestModeEnum = exports.V2RuleAuthActionNotifyEnum = exports.V2RuleAuthActionModeEnum = exports.V2RuleAuthNotifyEnum = exports.V2RuleAuthModeEnum = exports.V2RuleModeEnum = exports.V2ProjectRequestModeEnum = exports.V2ProjectModeEnum = exports.V2OrganizationRequestModeEnum = exports.V2OrganizationModeEnum = exports.V2DomainRequestModeEnum = exports.V2DomainModeEnum = exports.V2CrawlerScheduleRequestModeEnum = exports.V2CrawlerScheduleModeEnum = exports.V2CrawlerRequestModeEnum = exports.V2CrawlerModeEnum = exports.V1TransitionStateEnum = exports.ScalingPolicyMetricEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = void 0;
26
+ exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2StoreRequestModeEnum = exports.V2StoreItemsListResponseModeEnum = exports.V2StoreItemUpdateRequestModeEnum = exports.V2StoreItemRequestModeEnum = exports.V2StoreItemModeEnum = exports.V2StoreModeEnum = exports.V2SecretStoreRequestModeEnum = exports.V2SecretStoreModeEnum = exports.V2RuleServeStaticRequestNotifyEnum = exports.V2RuleServeStaticRequestModeEnum = exports.V2RuleServeStaticActionNotifyEnum = exports.V2RuleServeStaticActionModeEnum = exports.V2RuleServeStaticNotifyEnum = exports.V2RuleServeStaticModeEnum = exports.V2RuleRequestModeEnum = exports.V2RuleRedirectRequestNotifyEnum = exports.V2RuleRedirectRequestModeEnum = exports.V2RuleRedirectActionNotifyEnum = exports.V2RuleRedirectActionModeEnum = exports.V2RuleRedirectNotifyEnum = exports.V2RuleRedirectModeEnum = exports.V2RuleProxyRequestNotifyEnum = exports.V2RuleProxyRequestModeEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2RuleProxyActionModeEnum = exports.V2RuleProxyNotifyEnum = exports.V2RuleProxyModeEnum = exports.V2RuleHeaderRequestNotifyEnum = exports.V2RuleHeaderRequestModeEnum = exports.V2RuleHeaderActionNotifyEnum = exports.V2RuleHeaderActionModeEnum = exports.V2RuleHeaderNotifyEnum = exports.V2RuleHeaderModeEnum = exports.V2RuleFunctionRequestNotifyEnum = exports.V2RuleFunctionRequestModeEnum = exports.V2RuleFunctionActionNotifyEnum = exports.V2RuleFunctionActionModeEnum = exports.V2RuleFunctionNotifyEnum = exports.V2RuleFunctionModeEnum = exports.V2RuleCustomResponseRequestNotifyEnum = exports.V2RuleCustomResponseRequestModeEnum = exports.V2RuleCustomResponseActionNotifyEnum = exports.V2RuleCustomResponseActionModeEnum = exports.V2RuleCustomResponseNotifyEnum = exports.V2RuleCustomResponseModeEnum = exports.V2RuleContentFilterRequestNotifyEnum = exports.V2RuleContentFilterRequestModeEnum = exports.V2RuleContentFilterActionNotifyEnum = void 0;
27
+ exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIServicesApi = exports.AIServicesApiFactory = exports.AIServicesApiFp = exports.AIServicesApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = void 0;
28
+ exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = void 0;
28
29
  const axios_1 = require("axios");
29
30
  // Some imports not used depending on template conditions
30
31
  // @ts-ignore
31
32
  const common_1 = require("./common");
32
33
  // @ts-ignore
33
34
  const base_1 = require("./base");
35
+ exports.ApplicationDatabaseRdsInstanceEngineEnum = {
36
+ Mysql: 'mysql',
37
+ Postgres: 'postgres'
38
+ };
39
+ exports.ApplicationImageReferenceTypeEnum = {
40
+ Internal: 'internal',
41
+ External: 'external'
42
+ };
34
43
  exports.ChatInferenceRequestMessagesInnerRoleEnum = {
35
44
  User: 'user',
36
45
  Assistant: 'assistant',
@@ -80,6 +89,10 @@ exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = {
80
89
  User: 'user',
81
90
  Assistant: 'assistant'
82
91
  };
92
+ exports.CreateApplicationRequestDatabaseEngineEnum = {
93
+ Mysql: 'mysql',
94
+ Postgres: 'postgres'
95
+ };
83
96
  exports.CronRunRunTypeEnum = {
84
97
  Exec: 'EXEC',
85
98
  Cron: 'CRON'
@@ -139,14 +152,320 @@ exports.ScalingPolicyMetricEnum = {
139
152
  MemoryUtilization: 'MemoryUtilization',
140
153
  Rps: 'RPS'
141
154
  };
142
- exports.TestSearchExtractorsRequestTypeEnum = {
143
- Url: 'url',
144
- ContentType: 'content_type'
145
- };
146
155
  exports.V1TransitionStateEnum = {
147
156
  Published: 'published',
148
157
  Unpublished: 'unpublished'
149
158
  };
159
+ exports.V2CrawlerModeEnum = {
160
+ Report: 'report',
161
+ Block: 'block'
162
+ };
163
+ exports.V2CrawlerRequestModeEnum = {
164
+ Report: 'report',
165
+ Block: 'block'
166
+ };
167
+ exports.V2CrawlerScheduleModeEnum = {
168
+ Report: 'report',
169
+ Block: 'block'
170
+ };
171
+ exports.V2CrawlerScheduleRequestModeEnum = {
172
+ Report: 'report',
173
+ Block: 'block'
174
+ };
175
+ exports.V2DomainModeEnum = {
176
+ Report: 'report',
177
+ Block: 'block'
178
+ };
179
+ exports.V2DomainRequestModeEnum = {
180
+ Report: 'report',
181
+ Block: 'block'
182
+ };
183
+ exports.V2OrganizationModeEnum = {
184
+ Report: 'report',
185
+ Block: 'block'
186
+ };
187
+ exports.V2OrganizationRequestModeEnum = {
188
+ Report: 'report',
189
+ Block: 'block'
190
+ };
191
+ exports.V2ProjectModeEnum = {
192
+ Report: 'report',
193
+ Block: 'block'
194
+ };
195
+ exports.V2ProjectRequestModeEnum = {
196
+ Report: 'report',
197
+ Block: 'block'
198
+ };
199
+ exports.V2RuleModeEnum = {
200
+ Report: 'report',
201
+ Block: 'block'
202
+ };
203
+ exports.V2RuleAuthModeEnum = {
204
+ Report: 'report',
205
+ Block: 'block'
206
+ };
207
+ exports.V2RuleAuthNotifyEnum = {
208
+ None: 'none',
209
+ Slack: 'slack'
210
+ };
211
+ exports.V2RuleAuthActionModeEnum = {
212
+ Report: 'report',
213
+ Block: 'block'
214
+ };
215
+ exports.V2RuleAuthActionNotifyEnum = {
216
+ None: 'none',
217
+ Slack: 'slack'
218
+ };
219
+ exports.V2RuleAuthRequestModeEnum = {
220
+ Report: 'report',
221
+ Block: 'block'
222
+ };
223
+ exports.V2RuleAuthRequestNotifyEnum = {
224
+ None: 'none',
225
+ Slack: 'slack'
226
+ };
227
+ exports.V2RuleBotChallengeModeEnum = {
228
+ Report: 'report',
229
+ Block: 'block'
230
+ };
231
+ exports.V2RuleBotChallengeNotifyEnum = {
232
+ None: 'none',
233
+ Slack: 'slack'
234
+ };
235
+ exports.V2RuleBotChallengeActionModeEnum = {
236
+ Report: 'report',
237
+ Block: 'block'
238
+ };
239
+ exports.V2RuleBotChallengeActionNotifyEnum = {
240
+ None: 'none',
241
+ Slack: 'slack'
242
+ };
243
+ exports.V2RuleBotChallengeRequestModeEnum = {
244
+ Report: 'report',
245
+ Block: 'block'
246
+ };
247
+ exports.V2RuleBotChallengeRequestNotifyEnum = {
248
+ None: 'none',
249
+ Slack: 'slack'
250
+ };
251
+ exports.V2RuleContentFilterModeEnum = {
252
+ Report: 'report',
253
+ Block: 'block'
254
+ };
255
+ exports.V2RuleContentFilterNotifyEnum = {
256
+ None: 'none',
257
+ Slack: 'slack'
258
+ };
259
+ exports.V2RuleContentFilterActionModeEnum = {
260
+ Report: 'report',
261
+ Block: 'block'
262
+ };
263
+ exports.V2RuleContentFilterActionNotifyEnum = {
264
+ None: 'none',
265
+ Slack: 'slack'
266
+ };
267
+ exports.V2RuleContentFilterRequestModeEnum = {
268
+ Report: 'report',
269
+ Block: 'block'
270
+ };
271
+ exports.V2RuleContentFilterRequestNotifyEnum = {
272
+ None: 'none',
273
+ Slack: 'slack'
274
+ };
275
+ exports.V2RuleCustomResponseModeEnum = {
276
+ Report: 'report',
277
+ Block: 'block'
278
+ };
279
+ exports.V2RuleCustomResponseNotifyEnum = {
280
+ None: 'none',
281
+ Slack: 'slack'
282
+ };
283
+ exports.V2RuleCustomResponseActionModeEnum = {
284
+ Report: 'report',
285
+ Block: 'block'
286
+ };
287
+ exports.V2RuleCustomResponseActionNotifyEnum = {
288
+ None: 'none',
289
+ Slack: 'slack'
290
+ };
291
+ exports.V2RuleCustomResponseRequestModeEnum = {
292
+ Report: 'report',
293
+ Block: 'block'
294
+ };
295
+ exports.V2RuleCustomResponseRequestNotifyEnum = {
296
+ None: 'none',
297
+ Slack: 'slack'
298
+ };
299
+ exports.V2RuleFunctionModeEnum = {
300
+ Report: 'report',
301
+ Block: 'block'
302
+ };
303
+ exports.V2RuleFunctionNotifyEnum = {
304
+ None: 'none',
305
+ Slack: 'slack'
306
+ };
307
+ exports.V2RuleFunctionActionModeEnum = {
308
+ Report: 'report',
309
+ Block: 'block'
310
+ };
311
+ exports.V2RuleFunctionActionNotifyEnum = {
312
+ None: 'none',
313
+ Slack: 'slack'
314
+ };
315
+ exports.V2RuleFunctionRequestModeEnum = {
316
+ Report: 'report',
317
+ Block: 'block'
318
+ };
319
+ exports.V2RuleFunctionRequestNotifyEnum = {
320
+ None: 'none',
321
+ Slack: 'slack'
322
+ };
323
+ exports.V2RuleHeaderModeEnum = {
324
+ Report: 'report',
325
+ Block: 'block'
326
+ };
327
+ exports.V2RuleHeaderNotifyEnum = {
328
+ None: 'none',
329
+ Slack: 'slack'
330
+ };
331
+ exports.V2RuleHeaderActionModeEnum = {
332
+ Report: 'report',
333
+ Block: 'block'
334
+ };
335
+ exports.V2RuleHeaderActionNotifyEnum = {
336
+ None: 'none',
337
+ Slack: 'slack'
338
+ };
339
+ exports.V2RuleHeaderRequestModeEnum = {
340
+ Report: 'report',
341
+ Block: 'block'
342
+ };
343
+ exports.V2RuleHeaderRequestNotifyEnum = {
344
+ None: 'none',
345
+ Slack: 'slack'
346
+ };
347
+ exports.V2RuleProxyModeEnum = {
348
+ Report: 'report',
349
+ Block: 'block'
350
+ };
351
+ exports.V2RuleProxyNotifyEnum = {
352
+ None: 'none',
353
+ Slack: 'slack'
354
+ };
355
+ exports.V2RuleProxyActionModeEnum = {
356
+ Report: 'report',
357
+ Block: 'block'
358
+ };
359
+ exports.V2RuleProxyActionNotifyEnum = {
360
+ None: 'none',
361
+ Slack: 'slack'
362
+ };
363
+ exports.V2RuleProxyRequestModeEnum = {
364
+ Report: 'report',
365
+ Block: 'block'
366
+ };
367
+ exports.V2RuleProxyRequestNotifyEnum = {
368
+ None: 'none',
369
+ Slack: 'slack'
370
+ };
371
+ exports.V2RuleRedirectModeEnum = {
372
+ Report: 'report',
373
+ Block: 'block'
374
+ };
375
+ exports.V2RuleRedirectNotifyEnum = {
376
+ None: 'none',
377
+ Slack: 'slack'
378
+ };
379
+ exports.V2RuleRedirectActionModeEnum = {
380
+ Report: 'report',
381
+ Block: 'block'
382
+ };
383
+ exports.V2RuleRedirectActionNotifyEnum = {
384
+ None: 'none',
385
+ Slack: 'slack'
386
+ };
387
+ exports.V2RuleRedirectRequestModeEnum = {
388
+ Report: 'report',
389
+ Block: 'block'
390
+ };
391
+ exports.V2RuleRedirectRequestNotifyEnum = {
392
+ None: 'none',
393
+ Slack: 'slack'
394
+ };
395
+ exports.V2RuleRequestModeEnum = {
396
+ Report: 'report',
397
+ Block: 'block'
398
+ };
399
+ exports.V2RuleServeStaticModeEnum = {
400
+ Report: 'report',
401
+ Block: 'block'
402
+ };
403
+ exports.V2RuleServeStaticNotifyEnum = {
404
+ None: 'none',
405
+ Slack: 'slack'
406
+ };
407
+ exports.V2RuleServeStaticActionModeEnum = {
408
+ Report: 'report',
409
+ Block: 'block'
410
+ };
411
+ exports.V2RuleServeStaticActionNotifyEnum = {
412
+ None: 'none',
413
+ Slack: 'slack'
414
+ };
415
+ exports.V2RuleServeStaticRequestModeEnum = {
416
+ Report: 'report',
417
+ Block: 'block'
418
+ };
419
+ exports.V2RuleServeStaticRequestNotifyEnum = {
420
+ None: 'none',
421
+ Slack: 'slack'
422
+ };
423
+ exports.V2SecretStoreModeEnum = {
424
+ Report: 'report',
425
+ Block: 'block'
426
+ };
427
+ exports.V2SecretStoreRequestModeEnum = {
428
+ Report: 'report',
429
+ Block: 'block'
430
+ };
431
+ exports.V2StoreModeEnum = {
432
+ Report: 'report',
433
+ Block: 'block'
434
+ };
435
+ exports.V2StoreItemModeEnum = {
436
+ Report: 'report',
437
+ Block: 'block'
438
+ };
439
+ exports.V2StoreItemRequestModeEnum = {
440
+ Report: 'report',
441
+ Block: 'block'
442
+ };
443
+ exports.V2StoreItemUpdateRequestModeEnum = {
444
+ Report: 'report',
445
+ Block: 'block'
446
+ };
447
+ exports.V2StoreItemsListResponseModeEnum = {
448
+ Report: 'report',
449
+ Block: 'block'
450
+ };
451
+ exports.V2StoreRequestModeEnum = {
452
+ Report: 'report',
453
+ Block: 'block'
454
+ };
455
+ exports.WafConfigModeEnum = {
456
+ Report: 'report',
457
+ Block: 'block'
458
+ };
459
+ exports.WafConfigThresholdsInnerTypeEnum = {
460
+ Ip: 'ip',
461
+ Header: 'header',
462
+ WafHitByIp: 'waf_hit_by_ip'
463
+ };
464
+ exports.WafConfigThresholdsInnerModeEnum = {
465
+ Disabled: 'disabled',
466
+ Report: 'report',
467
+ Block: 'block'
468
+ };
150
469
  /**
151
470
  * AIServicesApi - axios parameter creator
152
471
  * @export
@@ -1144,15 +1463,15 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
1144
1463
  *
1145
1464
  * @summary Create a new application
1146
1465
  * @param {string} organisation The organisation ID
1147
- * @param {Application} application
1466
+ * @param {CreateApplicationRequest} createApplicationRequest
1148
1467
  * @param {*} [options] Override http request option.
1149
1468
  * @throws {RequiredError}
1150
1469
  */
1151
- createApplication: (organisation, application, options = {}) => __awaiter(this, void 0, void 0, function* () {
1470
+ createApplication: (organisation, createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1152
1471
  // verify required parameter 'organisation' is not null or undefined
1153
1472
  (0, common_1.assertParamExists)('createApplication', 'organisation', organisation);
1154
- // verify required parameter 'application' is not null or undefined
1155
- (0, common_1.assertParamExists)('createApplication', 'application', application);
1473
+ // verify required parameter 'createApplicationRequest' is not null or undefined
1474
+ (0, common_1.assertParamExists)('createApplication', 'createApplicationRequest', createApplicationRequest);
1156
1475
  const localVarPath = `/api/v3/organizations/{organisation}/applications`
1157
1476
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
1158
1477
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1171,7 +1490,7 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
1171
1490
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
1172
1491
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1173
1492
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1174
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(application, localVarRequestOptions, configuration);
1493
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationRequest, localVarRequestOptions, configuration);
1175
1494
  return {
1176
1495
  url: (0, common_1.toPathString)(localVarUrlObj),
1177
1496
  options: localVarRequestOptions,
@@ -1327,14 +1646,14 @@ const ApplicationsApiFp = function (configuration) {
1327
1646
  *
1328
1647
  * @summary Create a new application
1329
1648
  * @param {string} organisation The organisation ID
1330
- * @param {Application} application
1649
+ * @param {CreateApplicationRequest} createApplicationRequest
1331
1650
  * @param {*} [options] Override http request option.
1332
1651
  * @throws {RequiredError}
1333
1652
  */
1334
- createApplication(organisation, application, options) {
1653
+ createApplication(organisation, createApplicationRequest, options) {
1335
1654
  var _a, _b, _c;
1336
1655
  return __awaiter(this, void 0, void 0, function* () {
1337
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, application, options);
1656
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, createApplicationRequest, options);
1338
1657
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1339
1658
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationsApi.createApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1340
1659
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1420,12 +1739,12 @@ const ApplicationsApiFactory = function (configuration, basePath, axios) {
1420
1739
  *
1421
1740
  * @summary Create a new application
1422
1741
  * @param {string} organisation The organisation ID
1423
- * @param {Application} application
1742
+ * @param {CreateApplicationRequest} createApplicationRequest
1424
1743
  * @param {*} [options] Override http request option.
1425
1744
  * @throws {RequiredError}
1426
1745
  */
1427
- createApplication(organisation, application, options) {
1428
- return localVarFp.createApplication(organisation, application, options).then((request) => request(axios, basePath));
1746
+ createApplication(organisation, createApplicationRequest, options) {
1747
+ return localVarFp.createApplication(organisation, createApplicationRequest, options).then((request) => request(axios, basePath));
1429
1748
  },
1430
1749
  /**
1431
1750
  *
@@ -1483,13 +1802,13 @@ class ApplicationsApi extends base_1.BaseAPI {
1483
1802
  *
1484
1803
  * @summary Create a new application
1485
1804
  * @param {string} organisation The organisation ID
1486
- * @param {Application} application
1805
+ * @param {CreateApplicationRequest} createApplicationRequest
1487
1806
  * @param {*} [options] Override http request option.
1488
1807
  * @throws {RequiredError}
1489
1808
  * @memberof ApplicationsApi
1490
1809
  */
1491
- createApplication(organisation, application, options) {
1492
- return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(organisation, application, options).then((request) => request(this.axios, this.basePath));
1810
+ createApplication(organisation, createApplicationRequest, options) {
1811
+ return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(organisation, createApplicationRequest, options).then((request) => request(this.axios, this.basePath));
1493
1812
  }
1494
1813
  /**
1495
1814
  *
@@ -5804,118 +6123,6 @@ exports.SyncToEnvironmentTypeEnum = {
5804
6123
  Database: 'database',
5805
6124
  Filesystem: 'filesystem'
5806
6125
  };
5807
- /**
5808
- * FormsApi - axios parameter creator
5809
- * @export
5810
- */
5811
- const FormsApiAxiosParamCreator = function (configuration) {
5812
- return {
5813
- /**
5814
- * Retrieve form submissions via API.
5815
- * @summary List form submissions
5816
- * @param {string} [quantUrl]
5817
- * @param {object} [body]
5818
- * @param {*} [options] Override http request option.
5819
- * @throws {RequiredError}
5820
- */
5821
- listFormSubmissions: (quantUrl, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
5822
- const localVarPath = `/api/v1/form-submissions`;
5823
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5824
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
5825
- let baseOptions;
5826
- if (configuration) {
5827
- baseOptions = configuration.baseOptions;
5828
- }
5829
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5830
- const localVarHeaderParameter = {};
5831
- const localVarQueryParameter = {};
5832
- // authentication headerAuth required
5833
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
5834
- if (quantUrl !== undefined) {
5835
- localVarQueryParameter['quant_url'] = quantUrl;
5836
- }
5837
- localVarHeaderParameter['Content-Type'] = 'application/json';
5838
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
5839
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5840
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5841
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
5842
- return {
5843
- url: (0, common_1.toPathString)(localVarUrlObj),
5844
- options: localVarRequestOptions,
5845
- };
5846
- }),
5847
- };
5848
- };
5849
- exports.FormsApiAxiosParamCreator = FormsApiAxiosParamCreator;
5850
- /**
5851
- * FormsApi - functional programming interface
5852
- * @export
5853
- */
5854
- const FormsApiFp = function (configuration) {
5855
- const localVarAxiosParamCreator = (0, exports.FormsApiAxiosParamCreator)(configuration);
5856
- return {
5857
- /**
5858
- * Retrieve form submissions via API.
5859
- * @summary List form submissions
5860
- * @param {string} [quantUrl]
5861
- * @param {object} [body]
5862
- * @param {*} [options] Override http request option.
5863
- * @throws {RequiredError}
5864
- */
5865
- listFormSubmissions(quantUrl, body, options) {
5866
- var _a, _b, _c;
5867
- return __awaiter(this, void 0, void 0, function* () {
5868
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormSubmissions(quantUrl, body, options);
5869
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5870
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FormsApi.listFormSubmissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5871
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5872
- });
5873
- },
5874
- };
5875
- };
5876
- exports.FormsApiFp = FormsApiFp;
5877
- /**
5878
- * FormsApi - factory interface
5879
- * @export
5880
- */
5881
- const FormsApiFactory = function (configuration, basePath, axios) {
5882
- const localVarFp = (0, exports.FormsApiFp)(configuration);
5883
- return {
5884
- /**
5885
- * Retrieve form submissions via API.
5886
- * @summary List form submissions
5887
- * @param {string} [quantUrl]
5888
- * @param {object} [body]
5889
- * @param {*} [options] Override http request option.
5890
- * @throws {RequiredError}
5891
- */
5892
- listFormSubmissions(quantUrl, body, options) {
5893
- return localVarFp.listFormSubmissions(quantUrl, body, options).then((request) => request(axios, basePath));
5894
- },
5895
- };
5896
- };
5897
- exports.FormsApiFactory = FormsApiFactory;
5898
- /**
5899
- * FormsApi - object-oriented interface
5900
- * @export
5901
- * @class FormsApi
5902
- * @extends {BaseAPI}
5903
- */
5904
- class FormsApi extends base_1.BaseAPI {
5905
- /**
5906
- * Retrieve form submissions via API.
5907
- * @summary List form submissions
5908
- * @param {string} [quantUrl]
5909
- * @param {object} [body]
5910
- * @param {*} [options] Override http request option.
5911
- * @throws {RequiredError}
5912
- * @memberof FormsApi
5913
- */
5914
- listFormSubmissions(quantUrl, body, options) {
5915
- return (0, exports.FormsApiFp)(this.configuration).listFormSubmissions(quantUrl, body, options).then((request) => request(this.axios, this.basePath));
5916
- }
5917
- }
5918
- exports.FormsApi = FormsApi;
5919
6126
  /**
5920
6127
  * HeadersApi - axios parameter creator
5921
6128
  * @export
@@ -7036,22 +7243,19 @@ class KVApi extends base_1.BaseAPI {
7036
7243
  }
7037
7244
  exports.KVApi = KVApi;
7038
7245
  /**
7039
- * MetricsApi - axios parameter creator
7246
+ * OrganizationsApi - axios parameter creator
7040
7247
  * @export
7041
7248
  */
7042
- const MetricsApiAxiosParamCreator = function (configuration) {
7249
+ const OrganizationsApiAxiosParamCreator = function (configuration) {
7043
7250
  return {
7044
7251
  /**
7045
- * Get metric series data.
7046
- * @summary Get metric series
7047
- * @param {GetMetricSeriesTypeEnum} [type]
7048
- * @param {string} [metric]
7049
- * @param {number} [domain]
7252
+ *
7253
+ * @summary Retrieve all organizations
7050
7254
  * @param {*} [options] Override http request option.
7051
7255
  * @throws {RequiredError}
7052
7256
  */
7053
- getMetricSeries: (type, metric, domain, options = {}) => __awaiter(this, void 0, void 0, function* () {
7054
- const localVarPath = `/api/v1/metrics/series`;
7257
+ organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7258
+ const localVarPath = `/api/v2/organizations`;
7055
7259
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7056
7260
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7057
7261
  let baseOptions;
@@ -7061,17 +7265,9 @@ const MetricsApiAxiosParamCreator = function (configuration) {
7061
7265
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7062
7266
  const localVarHeaderParameter = {};
7063
7267
  const localVarQueryParameter = {};
7064
- // authentication headerAuth required
7065
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
7066
- if (type !== undefined) {
7067
- localVarQueryParameter['type'] = type;
7068
- }
7069
- if (metric !== undefined) {
7070
- localVarQueryParameter['metric'] = metric;
7071
- }
7072
- if (domain !== undefined) {
7073
- localVarQueryParameter['domain'] = domain;
7074
- }
7268
+ // authentication BearerAuth required
7269
+ // http bearer authentication required
7270
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7075
7271
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7076
7272
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7077
7273
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7081,16 +7277,17 @@ const MetricsApiAxiosParamCreator = function (configuration) {
7081
7277
  };
7082
7278
  }),
7083
7279
  /**
7084
- * Get metrics data.
7085
- * @summary Get metrics
7086
- * @param {number} [domain]
7087
- * @param {GetMetricsTimeframeEnum} [timeframe]
7088
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7280
+ *
7281
+ * @summary Get details of a single organization
7282
+ * @param {string} organization
7089
7283
  * @param {*} [options] Override http request option.
7090
7284
  * @throws {RequiredError}
7091
7285
  */
7092
- getMetrics: (domain, timeframe, metrics, options = {}) => __awaiter(this, void 0, void 0, function* () {
7093
- const localVarPath = `/api/v1/metrics`;
7286
+ organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
7287
+ // verify required parameter 'organization' is not null or undefined
7288
+ (0, common_1.assertParamExists)('organizationsRead', 'organization', organization);
7289
+ const localVarPath = `/api/v2/organizations/{organization}`
7290
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7094
7291
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7095
7292
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7096
7293
  let baseOptions;
@@ -7100,19 +7297,9 @@ const MetricsApiAxiosParamCreator = function (configuration) {
7100
7297
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7101
7298
  const localVarHeaderParameter = {};
7102
7299
  const localVarQueryParameter = {};
7103
- // authentication headerAuth required
7104
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
7105
- if (domain !== undefined) {
7106
- localVarQueryParameter['domain'] = domain;
7107
- }
7108
- if (timeframe !== undefined) {
7109
- localVarQueryParameter['timeframe'] = timeframe;
7110
- }
7111
- if (metrics !== undefined) {
7112
- for (const [key, value] of Object.entries(metrics)) {
7113
- localVarQueryParameter[key] = value;
7114
- }
7115
- }
7300
+ // authentication BearerAuth required
7301
+ // http bearer authentication required
7302
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7116
7303
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7117
7304
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7118
7305
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7123,167 +7310,145 @@ const MetricsApiAxiosParamCreator = function (configuration) {
7123
7310
  }),
7124
7311
  };
7125
7312
  };
7126
- exports.MetricsApiAxiosParamCreator = MetricsApiAxiosParamCreator;
7313
+ exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
7127
7314
  /**
7128
- * MetricsApi - functional programming interface
7315
+ * OrganizationsApi - functional programming interface
7129
7316
  * @export
7130
7317
  */
7131
- const MetricsApiFp = function (configuration) {
7132
- const localVarAxiosParamCreator = (0, exports.MetricsApiAxiosParamCreator)(configuration);
7318
+ const OrganizationsApiFp = function (configuration) {
7319
+ const localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
7133
7320
  return {
7134
7321
  /**
7135
- * Get metric series data.
7136
- * @summary Get metric series
7137
- * @param {GetMetricSeriesTypeEnum} [type]
7138
- * @param {string} [metric]
7139
- * @param {number} [domain]
7322
+ *
7323
+ * @summary Retrieve all organizations
7140
7324
  * @param {*} [options] Override http request option.
7141
7325
  * @throws {RequiredError}
7142
7326
  */
7143
- getMetricSeries(type, metric, domain, options) {
7327
+ organizationsList(options) {
7144
7328
  var _a, _b, _c;
7145
7329
  return __awaiter(this, void 0, void 0, function* () {
7146
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricSeries(type, metric, domain, options);
7330
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
7147
7331
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7148
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricsApi.getMetricSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7332
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7149
7333
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7150
7334
  });
7151
7335
  },
7152
7336
  /**
7153
- * Get metrics data.
7154
- * @summary Get metrics
7155
- * @param {number} [domain]
7156
- * @param {GetMetricsTimeframeEnum} [timeframe]
7157
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7337
+ *
7338
+ * @summary Get details of a single organization
7339
+ * @param {string} organization
7158
7340
  * @param {*} [options] Override http request option.
7159
7341
  * @throws {RequiredError}
7160
7342
  */
7161
- getMetrics(domain, timeframe, metrics, options) {
7343
+ organizationsRead(organization, options) {
7162
7344
  var _a, _b, _c;
7163
7345
  return __awaiter(this, void 0, void 0, function* () {
7164
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetrics(domain, timeframe, metrics, options);
7346
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
7165
7347
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7166
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MetricsApi.getMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7348
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7167
7349
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7168
7350
  });
7169
7351
  },
7170
7352
  };
7171
7353
  };
7172
- exports.MetricsApiFp = MetricsApiFp;
7354
+ exports.OrganizationsApiFp = OrganizationsApiFp;
7173
7355
  /**
7174
- * MetricsApi - factory interface
7356
+ * OrganizationsApi - factory interface
7175
7357
  * @export
7176
7358
  */
7177
- const MetricsApiFactory = function (configuration, basePath, axios) {
7178
- const localVarFp = (0, exports.MetricsApiFp)(configuration);
7359
+ const OrganizationsApiFactory = function (configuration, basePath, axios) {
7360
+ const localVarFp = (0, exports.OrganizationsApiFp)(configuration);
7179
7361
  return {
7180
7362
  /**
7181
- * Get metric series data.
7182
- * @summary Get metric series
7183
- * @param {GetMetricSeriesTypeEnum} [type]
7184
- * @param {string} [metric]
7185
- * @param {number} [domain]
7363
+ *
7364
+ * @summary Retrieve all organizations
7186
7365
  * @param {*} [options] Override http request option.
7187
7366
  * @throws {RequiredError}
7188
7367
  */
7189
- getMetricSeries(type, metric, domain, options) {
7190
- return localVarFp.getMetricSeries(type, metric, domain, options).then((request) => request(axios, basePath));
7368
+ organizationsList(options) {
7369
+ return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
7191
7370
  },
7192
7371
  /**
7193
- * Get metrics data.
7194
- * @summary Get metrics
7195
- * @param {number} [domain]
7196
- * @param {GetMetricsTimeframeEnum} [timeframe]
7197
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7372
+ *
7373
+ * @summary Get details of a single organization
7374
+ * @param {string} organization
7198
7375
  * @param {*} [options] Override http request option.
7199
7376
  * @throws {RequiredError}
7200
7377
  */
7201
- getMetrics(domain, timeframe, metrics, options) {
7202
- return localVarFp.getMetrics(domain, timeframe, metrics, options).then((request) => request(axios, basePath));
7378
+ organizationsRead(organization, options) {
7379
+ return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
7203
7380
  },
7204
7381
  };
7205
7382
  };
7206
- exports.MetricsApiFactory = MetricsApiFactory;
7383
+ exports.OrganizationsApiFactory = OrganizationsApiFactory;
7207
7384
  /**
7208
- * MetricsApi - object-oriented interface
7385
+ * OrganizationsApi - object-oriented interface
7209
7386
  * @export
7210
- * @class MetricsApi
7387
+ * @class OrganizationsApi
7211
7388
  * @extends {BaseAPI}
7212
7389
  */
7213
- class MetricsApi extends base_1.BaseAPI {
7390
+ class OrganizationsApi extends base_1.BaseAPI {
7214
7391
  /**
7215
- * Get metric series data.
7216
- * @summary Get metric series
7217
- * @param {GetMetricSeriesTypeEnum} [type]
7218
- * @param {string} [metric]
7219
- * @param {number} [domain]
7392
+ *
7393
+ * @summary Retrieve all organizations
7220
7394
  * @param {*} [options] Override http request option.
7221
7395
  * @throws {RequiredError}
7222
- * @memberof MetricsApi
7396
+ * @memberof OrganizationsApi
7223
7397
  */
7224
- getMetricSeries(type, metric, domain, options) {
7225
- return (0, exports.MetricsApiFp)(this.configuration).getMetricSeries(type, metric, domain, options).then((request) => request(this.axios, this.basePath));
7398
+ organizationsList(options) {
7399
+ return (0, exports.OrganizationsApiFp)(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
7226
7400
  }
7227
7401
  /**
7228
- * Get metrics data.
7229
- * @summary Get metrics
7230
- * @param {number} [domain]
7231
- * @param {GetMetricsTimeframeEnum} [timeframe]
7232
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7402
+ *
7403
+ * @summary Get details of a single organization
7404
+ * @param {string} organization
7233
7405
  * @param {*} [options] Override http request option.
7234
7406
  * @throws {RequiredError}
7235
- * @memberof MetricsApi
7407
+ * @memberof OrganizationsApi
7236
7408
  */
7237
- getMetrics(domain, timeframe, metrics, options) {
7238
- return (0, exports.MetricsApiFp)(this.configuration).getMetrics(domain, timeframe, metrics, options).then((request) => request(this.axios, this.basePath));
7409
+ organizationsRead(organization, options) {
7410
+ return (0, exports.OrganizationsApiFp)(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
7239
7411
  }
7240
7412
  }
7241
- exports.MetricsApi = MetricsApi;
7242
- /**
7243
- * @export
7244
- */
7245
- exports.GetMetricSeriesTypeEnum = {
7246
- Minute: 'minute',
7247
- Month: 'month',
7248
- Year: 'year'
7249
- };
7250
- /**
7251
- * @export
7252
- */
7253
- exports.GetMetricsTimeframeEnum = {
7254
- Hour: 'hour',
7255
- Month: 'month',
7256
- Year: 'year'
7257
- };
7413
+ exports.OrganizationsApi = OrganizationsApi;
7258
7414
  /**
7259
- * OrganizationsApi - axios parameter creator
7415
+ * ProjectsApi - axios parameter creator
7260
7416
  * @export
7261
7417
  */
7262
- const OrganizationsApiAxiosParamCreator = function (configuration) {
7418
+ const ProjectsApiAxiosParamCreator = function (configuration) {
7263
7419
  return {
7264
7420
  /**
7265
7421
  *
7266
- * @summary Retrieve all organizations
7422
+ * @summary Create a new project
7423
+ * @param {string} organization
7424
+ * @param {V2ProjectRequest} v2ProjectRequest
7267
7425
  * @param {*} [options] Override http request option.
7268
7426
  * @throws {RequiredError}
7269
7427
  */
7270
- organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7271
- const localVarPath = `/api/v2/organizations`;
7428
+ projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
7429
+ // verify required parameter 'organization' is not null or undefined
7430
+ (0, common_1.assertParamExists)('projectsCreate', 'organization', organization);
7431
+ // verify required parameter 'v2ProjectRequest' is not null or undefined
7432
+ (0, common_1.assertParamExists)('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
7433
+ const localVarPath = `/api/v2/organizations/{organization}/projects`
7434
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7272
7435
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7273
7436
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7274
7437
  let baseOptions;
7275
7438
  if (configuration) {
7276
7439
  baseOptions = configuration.baseOptions;
7277
7440
  }
7278
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7441
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7279
7442
  const localVarHeaderParameter = {};
7280
7443
  const localVarQueryParameter = {};
7281
7444
  // authentication BearerAuth required
7282
7445
  // http bearer authentication required
7283
7446
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7447
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7284
7448
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7285
7449
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7286
7450
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7451
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2ProjectRequest, localVarRequestOptions, configuration);
7287
7452
  return {
7288
7453
  url: (0, common_1.toPathString)(localVarUrlObj),
7289
7454
  options: localVarRequestOptions,
@@ -7291,191 +7456,13 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
7291
7456
  }),
7292
7457
  /**
7293
7458
  *
7294
- * @summary Get details of a single organization
7459
+ * @summary Delete a project
7295
7460
  * @param {string} organization
7461
+ * @param {string} project
7296
7462
  * @param {*} [options] Override http request option.
7297
7463
  * @throws {RequiredError}
7298
7464
  */
7299
- organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
7300
- // verify required parameter 'organization' is not null or undefined
7301
- (0, common_1.assertParamExists)('organizationsRead', 'organization', organization);
7302
- const localVarPath = `/api/v2/organizations/{organization}`
7303
- .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7304
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7305
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7306
- let baseOptions;
7307
- if (configuration) {
7308
- baseOptions = configuration.baseOptions;
7309
- }
7310
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7311
- const localVarHeaderParameter = {};
7312
- const localVarQueryParameter = {};
7313
- // authentication BearerAuth required
7314
- // http bearer authentication required
7315
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7316
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7317
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7318
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7319
- return {
7320
- url: (0, common_1.toPathString)(localVarUrlObj),
7321
- options: localVarRequestOptions,
7322
- };
7323
- }),
7324
- };
7325
- };
7326
- exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
7327
- /**
7328
- * OrganizationsApi - functional programming interface
7329
- * @export
7330
- */
7331
- const OrganizationsApiFp = function (configuration) {
7332
- const localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
7333
- return {
7334
- /**
7335
- *
7336
- * @summary Retrieve all organizations
7337
- * @param {*} [options] Override http request option.
7338
- * @throws {RequiredError}
7339
- */
7340
- organizationsList(options) {
7341
- var _a, _b, _c;
7342
- return __awaiter(this, void 0, void 0, function* () {
7343
- const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
7344
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7345
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7346
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7347
- });
7348
- },
7349
- /**
7350
- *
7351
- * @summary Get details of a single organization
7352
- * @param {string} organization
7353
- * @param {*} [options] Override http request option.
7354
- * @throws {RequiredError}
7355
- */
7356
- organizationsRead(organization, options) {
7357
- var _a, _b, _c;
7358
- return __awaiter(this, void 0, void 0, function* () {
7359
- const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
7360
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7361
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7362
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7363
- });
7364
- },
7365
- };
7366
- };
7367
- exports.OrganizationsApiFp = OrganizationsApiFp;
7368
- /**
7369
- * OrganizationsApi - factory interface
7370
- * @export
7371
- */
7372
- const OrganizationsApiFactory = function (configuration, basePath, axios) {
7373
- const localVarFp = (0, exports.OrganizationsApiFp)(configuration);
7374
- return {
7375
- /**
7376
- *
7377
- * @summary Retrieve all organizations
7378
- * @param {*} [options] Override http request option.
7379
- * @throws {RequiredError}
7380
- */
7381
- organizationsList(options) {
7382
- return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
7383
- },
7384
- /**
7385
- *
7386
- * @summary Get details of a single organization
7387
- * @param {string} organization
7388
- * @param {*} [options] Override http request option.
7389
- * @throws {RequiredError}
7390
- */
7391
- organizationsRead(organization, options) {
7392
- return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
7393
- },
7394
- };
7395
- };
7396
- exports.OrganizationsApiFactory = OrganizationsApiFactory;
7397
- /**
7398
- * OrganizationsApi - object-oriented interface
7399
- * @export
7400
- * @class OrganizationsApi
7401
- * @extends {BaseAPI}
7402
- */
7403
- class OrganizationsApi extends base_1.BaseAPI {
7404
- /**
7405
- *
7406
- * @summary Retrieve all organizations
7407
- * @param {*} [options] Override http request option.
7408
- * @throws {RequiredError}
7409
- * @memberof OrganizationsApi
7410
- */
7411
- organizationsList(options) {
7412
- return (0, exports.OrganizationsApiFp)(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
7413
- }
7414
- /**
7415
- *
7416
- * @summary Get details of a single organization
7417
- * @param {string} organization
7418
- * @param {*} [options] Override http request option.
7419
- * @throws {RequiredError}
7420
- * @memberof OrganizationsApi
7421
- */
7422
- organizationsRead(organization, options) {
7423
- return (0, exports.OrganizationsApiFp)(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
7424
- }
7425
- }
7426
- exports.OrganizationsApi = OrganizationsApi;
7427
- /**
7428
- * ProjectsApi - axios parameter creator
7429
- * @export
7430
- */
7431
- const ProjectsApiAxiosParamCreator = function (configuration) {
7432
- return {
7433
- /**
7434
- *
7435
- * @summary Create a new project
7436
- * @param {string} organization
7437
- * @param {V2ProjectRequest} v2ProjectRequest
7438
- * @param {*} [options] Override http request option.
7439
- * @throws {RequiredError}
7440
- */
7441
- projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
7442
- // verify required parameter 'organization' is not null or undefined
7443
- (0, common_1.assertParamExists)('projectsCreate', 'organization', organization);
7444
- // verify required parameter 'v2ProjectRequest' is not null or undefined
7445
- (0, common_1.assertParamExists)('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
7446
- const localVarPath = `/api/v2/organizations/{organization}/projects`
7447
- .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7448
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7449
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
7450
- let baseOptions;
7451
- if (configuration) {
7452
- baseOptions = configuration.baseOptions;
7453
- }
7454
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7455
- const localVarHeaderParameter = {};
7456
- const localVarQueryParameter = {};
7457
- // authentication BearerAuth required
7458
- // http bearer authentication required
7459
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
7460
- localVarHeaderParameter['Content-Type'] = 'application/json';
7461
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
7462
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7463
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7464
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2ProjectRequest, localVarRequestOptions, configuration);
7465
- return {
7466
- url: (0, common_1.toPathString)(localVarUrlObj),
7467
- options: localVarRequestOptions,
7468
- };
7469
- }),
7470
- /**
7471
- *
7472
- * @summary Delete a project
7473
- * @param {string} organization
7474
- * @param {string} project
7475
- * @param {*} [options] Override http request option.
7476
- * @throws {RequiredError}
7477
- */
7478
- projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
7465
+ projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
7479
7466
  // verify required parameter 'organization' is not null or undefined
7480
7467
  (0, common_1.assertParamExists)('projectsDelete', 'organization', organization);
7481
7468
  // verify required parameter 'project' is not null or undefined
@@ -12190,38 +12177,51 @@ class ScalingPolicyApi extends base_1.BaseAPI {
12190
12177
  }
12191
12178
  exports.ScalingPolicyApi = ScalingPolicyApi;
12192
12179
  /**
12193
- * SearchApi - axios parameter creator
12180
+ * VariablesApi - axios parameter creator
12194
12181
  * @export
12195
12182
  */
12196
- const SearchApiAxiosParamCreator = function (configuration) {
12183
+ const VariablesApiAxiosParamCreator = function (configuration) {
12197
12184
  return {
12198
12185
  /**
12199
12186
  *
12200
- * @summary Create a new search index item
12201
- * @param {CreateSearchItemRequest} createSearchItemRequest
12187
+ * @summary Bulk set/replace environment variables
12188
+ * @param {string} apiOrganisation The organisation ID
12189
+ * @param {string} apiApplication The application ID
12190
+ * @param {string} apiEnvironment The environment ID
12191
+ * @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
12202
12192
  * @param {*} [options] Override http request option.
12203
12193
  * @throws {RequiredError}
12204
12194
  */
12205
- createSearchItem: (createSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12206
- // verify required parameter 'createSearchItemRequest' is not null or undefined
12207
- (0, common_1.assertParamExists)('createSearchItem', 'createSearchItemRequest', createSearchItemRequest);
12208
- const localVarPath = `/api/v1/search/item`;
12195
+ bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12196
+ // verify required parameter 'apiOrganisation' is not null or undefined
12197
+ (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12198
+ // verify required parameter 'apiApplication' is not null or undefined
12199
+ (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
12200
+ // verify required parameter 'apiEnvironment' is not null or undefined
12201
+ (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12202
+ // verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
12203
+ (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
12204
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12205
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12206
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12207
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12209
12208
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12210
12209
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12211
12210
  let baseOptions;
12212
12211
  if (configuration) {
12213
12212
  baseOptions = configuration.baseOptions;
12214
12213
  }
12215
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12214
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12216
12215
  const localVarHeaderParameter = {};
12217
12216
  const localVarQueryParameter = {};
12218
- // authentication headerAuth required
12219
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12217
+ // authentication BearerAuth required
12218
+ // http bearer authentication required
12219
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12220
12220
  localVarHeaderParameter['Content-Type'] = 'application/json';
12221
12221
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12222
12222
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12223
12223
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12224
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSearchItemRequest, localVarRequestOptions, configuration);
12224
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
12225
12225
  return {
12226
12226
  url: (0, common_1.toPathString)(localVarUrlObj),
12227
12227
  options: localVarRequestOptions,
@@ -12229,18 +12229,28 @@ const SearchApiAxiosParamCreator = function (configuration) {
12229
12229
  }),
12230
12230
  /**
12231
12231
  *
12232
- * @summary Delete a search index item
12233
- * @param {number} project
12234
- * @param {string} objectId
12232
+ * @summary Delete a variable
12233
+ * @param {string} apiOrganisation The organisation ID
12234
+ * @param {string} apiApplication The application ID
12235
+ * @param {string} apiEnvironment The environment ID
12236
+ * @param {string} apiVariable The variable key
12235
12237
  * @param {*} [options] Override http request option.
12236
12238
  * @throws {RequiredError}
12237
12239
  */
12238
- deleteSearchItem: (project, objectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
12239
- // verify required parameter 'project' is not null or undefined
12240
- (0, common_1.assertParamExists)('deleteSearchItem', 'project', project);
12241
- // verify required parameter 'objectId' is not null or undefined
12242
- (0, common_1.assertParamExists)('deleteSearchItem', 'objectId', objectId);
12243
- const localVarPath = `/api/v1/search/item`;
12240
+ deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
12241
+ // verify required parameter 'apiOrganisation' is not null or undefined
12242
+ (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
12243
+ // verify required parameter 'apiApplication' is not null or undefined
12244
+ (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiApplication', apiApplication);
12245
+ // verify required parameter 'apiEnvironment' is not null or undefined
12246
+ (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
12247
+ // verify required parameter 'apiVariable' is not null or undefined
12248
+ (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiVariable', apiVariable);
12249
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
12250
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12251
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12252
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
12253
+ .replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
12244
12254
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12245
12255
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12246
12256
  let baseOptions;
@@ -12250,14 +12260,9 @@ const SearchApiAxiosParamCreator = function (configuration) {
12250
12260
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12251
12261
  const localVarHeaderParameter = {};
12252
12262
  const localVarQueryParameter = {};
12253
- // authentication headerAuth required
12254
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12255
- if (project !== undefined) {
12256
- localVarQueryParameter['project'] = project;
12257
- }
12258
- if (objectId !== undefined) {
12259
- localVarQueryParameter['objectId'] = objectId;
12260
- }
12263
+ // authentication BearerAuth required
12264
+ // http bearer authentication required
12265
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12261
12266
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12262
12267
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12263
12268
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12268,18 +12273,24 @@ const SearchApiAxiosParamCreator = function (configuration) {
12268
12273
  }),
12269
12274
  /**
12270
12275
  *
12271
- * @summary Get a single search index item
12272
- * @param {number} project
12273
- * @param {string} objectId
12276
+ * @summary Get all variables for an environment
12277
+ * @param {string} apiOrganisation The organisation ID
12278
+ * @param {string} apiApplication The application ID
12279
+ * @param {string} apiEnvironment The environment ID
12274
12280
  * @param {*} [options] Override http request option.
12275
12281
  * @throws {RequiredError}
12276
12282
  */
12277
- getSearchItem: (project, objectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
12278
- // verify required parameter 'project' is not null or undefined
12279
- (0, common_1.assertParamExists)('getSearchItem', 'project', project);
12280
- // verify required parameter 'objectId' is not null or undefined
12281
- (0, common_1.assertParamExists)('getSearchItem', 'objectId', objectId);
12282
- const localVarPath = `/api/v1/search/item`;
12283
+ listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
12284
+ // verify required parameter 'apiOrganisation' is not null or undefined
12285
+ (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12286
+ // verify required parameter 'apiApplication' is not null or undefined
12287
+ (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiApplication', apiApplication);
12288
+ // verify required parameter 'apiEnvironment' is not null or undefined
12289
+ (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12290
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12291
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12292
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12293
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12283
12294
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12284
12295
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12285
12296
  let baseOptions;
@@ -12289,14 +12300,9 @@ const SearchApiAxiosParamCreator = function (configuration) {
12289
12300
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12290
12301
  const localVarHeaderParameter = {};
12291
12302
  const localVarQueryParameter = {};
12292
- // authentication headerAuth required
12293
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12294
- if (project !== undefined) {
12295
- localVarQueryParameter['project'] = project;
12296
- }
12297
- if (objectId !== undefined) {
12298
- localVarQueryParameter['objectId'] = objectId;
12299
- }
12303
+ // authentication BearerAuth required
12304
+ // http bearer authentication required
12305
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
12300
12306
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12301
12307
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12302
12308
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12307,816 +12313,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
12307
12313
  }),
12308
12314
  /**
12309
12315
  *
12310
- * @summary List search index items
12311
- * @param {number} project
12312
- * @param {number} [page]
12313
- * @param {number} [hitsPerPage]
12314
- * @param {string} [query]
12315
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12316
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12317
- * @param {*} [options] Override http request option.
12318
- * @throws {RequiredError}
12319
- */
12320
- getSearchItems: (project, page, hitsPerPage, query, filters, facets, options = {}) => __awaiter(this, void 0, void 0, function* () {
12321
- // verify required parameter 'project' is not null or undefined
12322
- (0, common_1.assertParamExists)('getSearchItems', 'project', project);
12323
- const localVarPath = `/api/v1/search/items`;
12324
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12325
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12326
- let baseOptions;
12327
- if (configuration) {
12328
- baseOptions = configuration.baseOptions;
12329
- }
12330
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12331
- const localVarHeaderParameter = {};
12332
- const localVarQueryParameter = {};
12333
- // authentication headerAuth required
12334
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12335
- if (project !== undefined) {
12336
- localVarQueryParameter['project'] = project;
12337
- }
12338
- if (page !== undefined) {
12339
- localVarQueryParameter['page'] = page;
12340
- }
12341
- if (hitsPerPage !== undefined) {
12342
- localVarQueryParameter['hitsPerPage'] = hitsPerPage;
12343
- }
12344
- if (query !== undefined) {
12345
- localVarQueryParameter['query'] = query;
12346
- }
12347
- if (filters !== undefined) {
12348
- for (const [key, value] of Object.entries(filters)) {
12349
- localVarQueryParameter[key] = value;
12350
- }
12351
- }
12352
- if (facets !== undefined) {
12353
- for (const [key, value] of Object.entries(facets)) {
12354
- localVarQueryParameter[key] = value;
12355
- }
12356
- }
12357
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12358
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12359
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12360
- return {
12361
- url: (0, common_1.toPathString)(localVarUrlObj),
12362
- options: localVarRequestOptions,
12363
- };
12364
- }),
12365
- /**
12366
- *
12367
- * @summary Test search extractors
12368
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12369
- * @param {*} [options] Override http request option.
12370
- * @throws {RequiredError}
12371
- */
12372
- testSearchExtractors: (testSearchExtractorsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12373
- // verify required parameter 'testSearchExtractorsRequest' is not null or undefined
12374
- (0, common_1.assertParamExists)('testSearchExtractors', 'testSearchExtractorsRequest', testSearchExtractorsRequest);
12375
- const localVarPath = `/api/v1/search/test-extractors`;
12376
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12377
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12378
- let baseOptions;
12379
- if (configuration) {
12380
- baseOptions = configuration.baseOptions;
12381
- }
12382
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12383
- const localVarHeaderParameter = {};
12384
- const localVarQueryParameter = {};
12385
- // authentication headerAuth required
12386
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12387
- localVarHeaderParameter['Content-Type'] = 'application/json';
12388
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12389
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12390
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12391
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(testSearchExtractorsRequest, localVarRequestOptions, configuration);
12392
- return {
12393
- url: (0, common_1.toPathString)(localVarUrlObj),
12394
- options: localVarRequestOptions,
12395
- };
12396
- }),
12397
- /**
12398
- *
12399
- * @summary Update an existing search index item
12400
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12401
- * @param {*} [options] Override http request option.
12402
- * @throws {RequiredError}
12403
- */
12404
- updateSearchItem: (updateSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12405
- // verify required parameter 'updateSearchItemRequest' is not null or undefined
12406
- (0, common_1.assertParamExists)('updateSearchItem', 'updateSearchItemRequest', updateSearchItemRequest);
12407
- const localVarPath = `/api/v1/search/item`;
12408
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12409
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12410
- let baseOptions;
12411
- if (configuration) {
12412
- baseOptions = configuration.baseOptions;
12413
- }
12414
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12415
- const localVarHeaderParameter = {};
12416
- const localVarQueryParameter = {};
12417
- // authentication headerAuth required
12418
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12419
- localVarHeaderParameter['Content-Type'] = 'application/json';
12420
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12421
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12422
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12423
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSearchItemRequest, localVarRequestOptions, configuration);
12424
- return {
12425
- url: (0, common_1.toPathString)(localVarUrlObj),
12426
- options: localVarRequestOptions,
12427
- };
12428
- }),
12429
- };
12430
- };
12431
- exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
12432
- /**
12433
- * SearchApi - functional programming interface
12434
- * @export
12435
- */
12436
- const SearchApiFp = function (configuration) {
12437
- const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
12438
- return {
12439
- /**
12440
- *
12441
- * @summary Create a new search index item
12442
- * @param {CreateSearchItemRequest} createSearchItemRequest
12443
- * @param {*} [options] Override http request option.
12444
- * @throws {RequiredError}
12445
- */
12446
- createSearchItem(createSearchItemRequest, options) {
12447
- var _a, _b, _c;
12448
- return __awaiter(this, void 0, void 0, function* () {
12449
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchItem(createSearchItemRequest, options);
12450
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12451
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.createSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12452
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12453
- });
12454
- },
12455
- /**
12456
- *
12457
- * @summary Delete a search index item
12458
- * @param {number} project
12459
- * @param {string} objectId
12460
- * @param {*} [options] Override http request option.
12461
- * @throws {RequiredError}
12462
- */
12463
- deleteSearchItem(project, objectId, options) {
12464
- var _a, _b, _c;
12465
- return __awaiter(this, void 0, void 0, function* () {
12466
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchItem(project, objectId, options);
12467
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12468
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.deleteSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12469
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12470
- });
12471
- },
12472
- /**
12473
- *
12474
- * @summary Get a single search index item
12475
- * @param {number} project
12476
- * @param {string} objectId
12477
- * @param {*} [options] Override http request option.
12478
- * @throws {RequiredError}
12479
- */
12480
- getSearchItem(project, objectId, options) {
12481
- var _a, _b, _c;
12482
- return __awaiter(this, void 0, void 0, function* () {
12483
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItem(project, objectId, options);
12484
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12485
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.getSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12486
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12487
- });
12488
- },
12489
- /**
12490
- *
12491
- * @summary List search index items
12492
- * @param {number} project
12493
- * @param {number} [page]
12494
- * @param {number} [hitsPerPage]
12495
- * @param {string} [query]
12496
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12497
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12498
- * @param {*} [options] Override http request option.
12499
- * @throws {RequiredError}
12500
- */
12501
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12502
- var _a, _b, _c;
12503
- return __awaiter(this, void 0, void 0, function* () {
12504
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItems(project, page, hitsPerPage, query, filters, facets, options);
12505
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12506
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.getSearchItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12507
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12508
- });
12509
- },
12510
- /**
12511
- *
12512
- * @summary Test search extractors
12513
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12514
- * @param {*} [options] Override http request option.
12515
- * @throws {RequiredError}
12516
- */
12517
- testSearchExtractors(testSearchExtractorsRequest, options) {
12518
- var _a, _b, _c;
12519
- return __awaiter(this, void 0, void 0, function* () {
12520
- const localVarAxiosArgs = yield localVarAxiosParamCreator.testSearchExtractors(testSearchExtractorsRequest, options);
12521
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12522
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.testSearchExtractors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12523
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12524
- });
12525
- },
12526
- /**
12527
- *
12528
- * @summary Update an existing search index item
12529
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12530
- * @param {*} [options] Override http request option.
12531
- * @throws {RequiredError}
12532
- */
12533
- updateSearchItem(updateSearchItemRequest, options) {
12534
- var _a, _b, _c;
12535
- return __awaiter(this, void 0, void 0, function* () {
12536
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchItem(updateSearchItemRequest, options);
12537
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12538
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.updateSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12539
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12540
- });
12541
- },
12542
- };
12543
- };
12544
- exports.SearchApiFp = SearchApiFp;
12545
- /**
12546
- * SearchApi - factory interface
12547
- * @export
12548
- */
12549
- const SearchApiFactory = function (configuration, basePath, axios) {
12550
- const localVarFp = (0, exports.SearchApiFp)(configuration);
12551
- return {
12552
- /**
12553
- *
12554
- * @summary Create a new search index item
12555
- * @param {CreateSearchItemRequest} createSearchItemRequest
12556
- * @param {*} [options] Override http request option.
12557
- * @throws {RequiredError}
12558
- */
12559
- createSearchItem(createSearchItemRequest, options) {
12560
- return localVarFp.createSearchItem(createSearchItemRequest, options).then((request) => request(axios, basePath));
12561
- },
12562
- /**
12563
- *
12564
- * @summary Delete a search index item
12565
- * @param {number} project
12566
- * @param {string} objectId
12567
- * @param {*} [options] Override http request option.
12568
- * @throws {RequiredError}
12569
- */
12570
- deleteSearchItem(project, objectId, options) {
12571
- return localVarFp.deleteSearchItem(project, objectId, options).then((request) => request(axios, basePath));
12572
- },
12573
- /**
12574
- *
12575
- * @summary Get a single search index item
12576
- * @param {number} project
12577
- * @param {string} objectId
12578
- * @param {*} [options] Override http request option.
12579
- * @throws {RequiredError}
12580
- */
12581
- getSearchItem(project, objectId, options) {
12582
- return localVarFp.getSearchItem(project, objectId, options).then((request) => request(axios, basePath));
12583
- },
12584
- /**
12585
- *
12586
- * @summary List search index items
12587
- * @param {number} project
12588
- * @param {number} [page]
12589
- * @param {number} [hitsPerPage]
12590
- * @param {string} [query]
12591
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12592
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12593
- * @param {*} [options] Override http request option.
12594
- * @throws {RequiredError}
12595
- */
12596
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12597
- return localVarFp.getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(axios, basePath));
12598
- },
12599
- /**
12600
- *
12601
- * @summary Test search extractors
12602
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12603
- * @param {*} [options] Override http request option.
12604
- * @throws {RequiredError}
12605
- */
12606
- testSearchExtractors(testSearchExtractorsRequest, options) {
12607
- return localVarFp.testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(axios, basePath));
12608
- },
12609
- /**
12610
- *
12611
- * @summary Update an existing search index item
12612
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12613
- * @param {*} [options] Override http request option.
12614
- * @throws {RequiredError}
12615
- */
12616
- updateSearchItem(updateSearchItemRequest, options) {
12617
- return localVarFp.updateSearchItem(updateSearchItemRequest, options).then((request) => request(axios, basePath));
12618
- },
12619
- };
12620
- };
12621
- exports.SearchApiFactory = SearchApiFactory;
12622
- /**
12623
- * SearchApi - object-oriented interface
12624
- * @export
12625
- * @class SearchApi
12626
- * @extends {BaseAPI}
12627
- */
12628
- class SearchApi extends base_1.BaseAPI {
12629
- /**
12630
- *
12631
- * @summary Create a new search index item
12632
- * @param {CreateSearchItemRequest} createSearchItemRequest
12633
- * @param {*} [options] Override http request option.
12634
- * @throws {RequiredError}
12635
- * @memberof SearchApi
12636
- */
12637
- createSearchItem(createSearchItemRequest, options) {
12638
- return (0, exports.SearchApiFp)(this.configuration).createSearchItem(createSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
12639
- }
12640
- /**
12641
- *
12642
- * @summary Delete a search index item
12643
- * @param {number} project
12644
- * @param {string} objectId
12645
- * @param {*} [options] Override http request option.
12646
- * @throws {RequiredError}
12647
- * @memberof SearchApi
12648
- */
12649
- deleteSearchItem(project, objectId, options) {
12650
- return (0, exports.SearchApiFp)(this.configuration).deleteSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
12651
- }
12652
- /**
12653
- *
12654
- * @summary Get a single search index item
12655
- * @param {number} project
12656
- * @param {string} objectId
12657
- * @param {*} [options] Override http request option.
12658
- * @throws {RequiredError}
12659
- * @memberof SearchApi
12660
- */
12661
- getSearchItem(project, objectId, options) {
12662
- return (0, exports.SearchApiFp)(this.configuration).getSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
12663
- }
12664
- /**
12665
- *
12666
- * @summary List search index items
12667
- * @param {number} project
12668
- * @param {number} [page]
12669
- * @param {number} [hitsPerPage]
12670
- * @param {string} [query]
12671
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12672
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12673
- * @param {*} [options] Override http request option.
12674
- * @throws {RequiredError}
12675
- * @memberof SearchApi
12676
- */
12677
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12678
- return (0, exports.SearchApiFp)(this.configuration).getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(this.axios, this.basePath));
12679
- }
12680
- /**
12681
- *
12682
- * @summary Test search extractors
12683
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12684
- * @param {*} [options] Override http request option.
12685
- * @throws {RequiredError}
12686
- * @memberof SearchApi
12687
- */
12688
- testSearchExtractors(testSearchExtractorsRequest, options) {
12689
- return (0, exports.SearchApiFp)(this.configuration).testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(this.axios, this.basePath));
12690
- }
12691
- /**
12692
- *
12693
- * @summary Update an existing search index item
12694
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12695
- * @param {*} [options] Override http request option.
12696
- * @throws {RequiredError}
12697
- * @memberof SearchApi
12698
- */
12699
- updateSearchItem(updateSearchItemRequest, options) {
12700
- return (0, exports.SearchApiFp)(this.configuration).updateSearchItem(updateSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
12701
- }
12702
- }
12703
- exports.SearchApi = SearchApi;
12704
- /**
12705
- * V1Api - axios parameter creator
12706
- * @export
12707
- */
12708
- const V1ApiAxiosParamCreator = function (configuration) {
12709
- return {
12710
- /**
12711
- * Retrieve content via API.
12712
- * @summary List content by type
12713
- * @param {ListContentTypeEnum} type
12714
- * @param {object} [body]
12715
- * @param {*} [options] Override http request option.
12716
- * @throws {RequiredError}
12717
- */
12718
- listContent: (type, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12719
- // verify required parameter 'type' is not null or undefined
12720
- (0, common_1.assertParamExists)('listContent', 'type', type);
12721
- const localVarPath = `/api/v1/content/{type}`
12722
- .replace(`{${"type"}}`, encodeURIComponent(String(type)));
12723
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12724
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12725
- let baseOptions;
12726
- if (configuration) {
12727
- baseOptions = configuration.baseOptions;
12728
- }
12729
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12730
- const localVarHeaderParameter = {};
12731
- const localVarQueryParameter = {};
12732
- // authentication headerAuth required
12733
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12734
- localVarHeaderParameter['Content-Type'] = 'application/json';
12735
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12736
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12737
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12738
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
12739
- return {
12740
- url: (0, common_1.toPathString)(localVarUrlObj),
12741
- options: localVarRequestOptions,
12742
- };
12743
- }),
12744
- /**
12745
- * Retrieve redirects via API.
12746
- * @summary List redirects
12747
- * @param {object} [body]
12748
- * @param {*} [options] Override http request option.
12749
- * @throws {RequiredError}
12750
- */
12751
- listRedirects: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12752
- const localVarPath = `/api/v1/redirect`;
12753
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12754
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12755
- let baseOptions;
12756
- if (configuration) {
12757
- baseOptions = configuration.baseOptions;
12758
- }
12759
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12760
- const localVarHeaderParameter = {};
12761
- const localVarQueryParameter = {};
12762
- // authentication headerAuth required
12763
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12764
- localVarHeaderParameter['Content-Type'] = 'application/json';
12765
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12766
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12767
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12768
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
12769
- return {
12770
- url: (0, common_1.toPathString)(localVarUrlObj),
12771
- options: localVarRequestOptions,
12772
- };
12773
- }),
12774
- /**
12775
- * Upload a file via API.
12776
- * @summary Upload a file
12777
- * @param {string} quantUri
12778
- * @param {string} [quantPrefix]
12779
- * @param {object} [body]
12780
- * @param {*} [options] Override http request option.
12781
- * @throws {RequiredError}
12782
- */
12783
- uploadFile: (quantUri, quantPrefix, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12784
- // verify required parameter 'quantUri' is not null or undefined
12785
- (0, common_1.assertParamExists)('uploadFile', 'quantUri', quantUri);
12786
- const localVarPath = `/api/v1/upload`;
12787
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12788
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
12789
- let baseOptions;
12790
- if (configuration) {
12791
- baseOptions = configuration.baseOptions;
12792
- }
12793
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12794
- const localVarHeaderParameter = {};
12795
- const localVarQueryParameter = {};
12796
- // authentication headerAuth required
12797
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
12798
- if (quantUri !== undefined) {
12799
- localVarQueryParameter['quant_uri'] = quantUri;
12800
- }
12801
- if (quantPrefix !== undefined) {
12802
- localVarQueryParameter['quant_prefix'] = quantPrefix;
12803
- }
12804
- localVarHeaderParameter['Content-Type'] = 'application/json';
12805
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
12806
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12807
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12808
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
12809
- return {
12810
- url: (0, common_1.toPathString)(localVarUrlObj),
12811
- options: localVarRequestOptions,
12812
- };
12813
- }),
12814
- };
12815
- };
12816
- exports.V1ApiAxiosParamCreator = V1ApiAxiosParamCreator;
12817
- /**
12818
- * V1Api - functional programming interface
12819
- * @export
12820
- */
12821
- const V1ApiFp = function (configuration) {
12822
- const localVarAxiosParamCreator = (0, exports.V1ApiAxiosParamCreator)(configuration);
12823
- return {
12824
- /**
12825
- * Retrieve content via API.
12826
- * @summary List content by type
12827
- * @param {ListContentTypeEnum} type
12828
- * @param {object} [body]
12829
- * @param {*} [options] Override http request option.
12830
- * @throws {RequiredError}
12831
- */
12832
- listContent(type, body, options) {
12833
- var _a, _b, _c;
12834
- return __awaiter(this, void 0, void 0, function* () {
12835
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContent(type, body, options);
12836
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12837
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.listContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12838
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12839
- });
12840
- },
12841
- /**
12842
- * Retrieve redirects via API.
12843
- * @summary List redirects
12844
- * @param {object} [body]
12845
- * @param {*} [options] Override http request option.
12846
- * @throws {RequiredError}
12847
- */
12848
- listRedirects(body, options) {
12849
- var _a, _b, _c;
12850
- return __awaiter(this, void 0, void 0, function* () {
12851
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listRedirects(body, options);
12852
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12853
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.listRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12854
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12855
- });
12856
- },
12857
- /**
12858
- * Upload a file via API.
12859
- * @summary Upload a file
12860
- * @param {string} quantUri
12861
- * @param {string} [quantPrefix]
12862
- * @param {object} [body]
12863
- * @param {*} [options] Override http request option.
12864
- * @throws {RequiredError}
12865
- */
12866
- uploadFile(quantUri, quantPrefix, body, options) {
12867
- var _a, _b, _c;
12868
- return __awaiter(this, void 0, void 0, function* () {
12869
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(quantUri, quantPrefix, body, options);
12870
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12871
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12872
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12873
- });
12874
- },
12875
- };
12876
- };
12877
- exports.V1ApiFp = V1ApiFp;
12878
- /**
12879
- * V1Api - factory interface
12880
- * @export
12881
- */
12882
- const V1ApiFactory = function (configuration, basePath, axios) {
12883
- const localVarFp = (0, exports.V1ApiFp)(configuration);
12884
- return {
12885
- /**
12886
- * Retrieve content via API.
12887
- * @summary List content by type
12888
- * @param {ListContentTypeEnum} type
12889
- * @param {object} [body]
12890
- * @param {*} [options] Override http request option.
12891
- * @throws {RequiredError}
12892
- */
12893
- listContent(type, body, options) {
12894
- return localVarFp.listContent(type, body, options).then((request) => request(axios, basePath));
12895
- },
12896
- /**
12897
- * Retrieve redirects via API.
12898
- * @summary List redirects
12899
- * @param {object} [body]
12900
- * @param {*} [options] Override http request option.
12901
- * @throws {RequiredError}
12902
- */
12903
- listRedirects(body, options) {
12904
- return localVarFp.listRedirects(body, options).then((request) => request(axios, basePath));
12905
- },
12906
- /**
12907
- * Upload a file via API.
12908
- * @summary Upload a file
12909
- * @param {string} quantUri
12910
- * @param {string} [quantPrefix]
12911
- * @param {object} [body]
12912
- * @param {*} [options] Override http request option.
12913
- * @throws {RequiredError}
12914
- */
12915
- uploadFile(quantUri, quantPrefix, body, options) {
12916
- return localVarFp.uploadFile(quantUri, quantPrefix, body, options).then((request) => request(axios, basePath));
12917
- },
12918
- };
12919
- };
12920
- exports.V1ApiFactory = V1ApiFactory;
12921
- /**
12922
- * V1Api - object-oriented interface
12923
- * @export
12924
- * @class V1Api
12925
- * @extends {BaseAPI}
12926
- */
12927
- class V1Api extends base_1.BaseAPI {
12928
- /**
12929
- * Retrieve content via API.
12930
- * @summary List content by type
12931
- * @param {ListContentTypeEnum} type
12932
- * @param {object} [body]
12933
- * @param {*} [options] Override http request option.
12934
- * @throws {RequiredError}
12935
- * @memberof V1Api
12936
- */
12937
- listContent(type, body, options) {
12938
- return (0, exports.V1ApiFp)(this.configuration).listContent(type, body, options).then((request) => request(this.axios, this.basePath));
12939
- }
12940
- /**
12941
- * Retrieve redirects via API.
12942
- * @summary List redirects
12943
- * @param {object} [body]
12944
- * @param {*} [options] Override http request option.
12945
- * @throws {RequiredError}
12946
- * @memberof V1Api
12947
- */
12948
- listRedirects(body, options) {
12949
- return (0, exports.V1ApiFp)(this.configuration).listRedirects(body, options).then((request) => request(this.axios, this.basePath));
12950
- }
12951
- /**
12952
- * Upload a file via API.
12953
- * @summary Upload a file
12954
- * @param {string} quantUri
12955
- * @param {string} [quantPrefix]
12956
- * @param {object} [body]
12957
- * @param {*} [options] Override http request option.
12958
- * @throws {RequiredError}
12959
- * @memberof V1Api
12960
- */
12961
- uploadFile(quantUri, quantPrefix, body, options) {
12962
- return (0, exports.V1ApiFp)(this.configuration).uploadFile(quantUri, quantPrefix, body, options).then((request) => request(this.axios, this.basePath));
12963
- }
12964
- }
12965
- exports.V1Api = V1Api;
12966
- /**
12967
- * @export
12968
- */
12969
- exports.ListContentTypeEnum = {
12970
- Content: 'content',
12971
- Redirect: 'redirect',
12972
- File: 'file',
12973
- EdgeFunction: 'edge_function',
12974
- EdgeFilter: 'edge_filter',
12975
- EdgeAuth: 'edge_auth'
12976
- };
12977
- /**
12978
- * VariablesApi - axios parameter creator
12979
- * @export
12980
- */
12981
- const VariablesApiAxiosParamCreator = function (configuration) {
12982
- return {
12983
- /**
12984
- *
12985
- * @summary Bulk set/replace environment variables
12986
- * @param {string} apiOrganisation The organisation ID
12987
- * @param {string} apiApplication The application ID
12988
- * @param {string} apiEnvironment The environment ID
12989
- * @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
12990
- * @param {*} [options] Override http request option.
12991
- * @throws {RequiredError}
12992
- */
12993
- bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12994
- // verify required parameter 'apiOrganisation' is not null or undefined
12995
- (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12996
- // verify required parameter 'apiApplication' is not null or undefined
12997
- (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
12998
- // verify required parameter 'apiEnvironment' is not null or undefined
12999
- (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
13000
- // verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
13001
- (0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
13002
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
13003
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
13004
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
13005
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
13006
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13007
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13008
- let baseOptions;
13009
- if (configuration) {
13010
- baseOptions = configuration.baseOptions;
13011
- }
13012
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
13013
- const localVarHeaderParameter = {};
13014
- const localVarQueryParameter = {};
13015
- // authentication BearerAuth required
13016
- // http bearer authentication required
13017
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13018
- localVarHeaderParameter['Content-Type'] = 'application/json';
13019
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13020
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13021
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13022
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
13023
- return {
13024
- url: (0, common_1.toPathString)(localVarUrlObj),
13025
- options: localVarRequestOptions,
13026
- };
13027
- }),
13028
- /**
13029
- *
13030
- * @summary Delete a variable
13031
- * @param {string} apiOrganisation The organisation ID
13032
- * @param {string} apiApplication The application ID
13033
- * @param {string} apiEnvironment The environment ID
13034
- * @param {string} apiVariable The variable key
13035
- * @param {*} [options] Override http request option.
13036
- * @throws {RequiredError}
13037
- */
13038
- deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
13039
- // verify required parameter 'apiOrganisation' is not null or undefined
13040
- (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
13041
- // verify required parameter 'apiApplication' is not null or undefined
13042
- (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiApplication', apiApplication);
13043
- // verify required parameter 'apiEnvironment' is not null or undefined
13044
- (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
13045
- // verify required parameter 'apiVariable' is not null or undefined
13046
- (0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiVariable', apiVariable);
13047
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
13048
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
13049
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
13050
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
13051
- .replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
13052
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13053
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13054
- let baseOptions;
13055
- if (configuration) {
13056
- baseOptions = configuration.baseOptions;
13057
- }
13058
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
13059
- const localVarHeaderParameter = {};
13060
- const localVarQueryParameter = {};
13061
- // authentication BearerAuth required
13062
- // http bearer authentication required
13063
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13064
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13065
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13066
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13067
- return {
13068
- url: (0, common_1.toPathString)(localVarUrlObj),
13069
- options: localVarRequestOptions,
13070
- };
13071
- }),
13072
- /**
13073
- *
13074
- * @summary Get all variables for an environment
13075
- * @param {string} apiOrganisation The organisation ID
13076
- * @param {string} apiApplication The application ID
13077
- * @param {string} apiEnvironment The environment ID
13078
- * @param {*} [options] Override http request option.
13079
- * @throws {RequiredError}
13080
- */
13081
- listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
13082
- // verify required parameter 'apiOrganisation' is not null or undefined
13083
- (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
13084
- // verify required parameter 'apiApplication' is not null or undefined
13085
- (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiApplication', apiApplication);
13086
- // verify required parameter 'apiEnvironment' is not null or undefined
13087
- (0, common_1.assertParamExists)('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
13088
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
13089
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
13090
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
13091
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
13092
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13093
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13094
- let baseOptions;
13095
- if (configuration) {
13096
- baseOptions = configuration.baseOptions;
13097
- }
13098
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13099
- const localVarHeaderParameter = {};
13100
- const localVarQueryParameter = {};
13101
- // authentication BearerAuth required
13102
- // http bearer authentication required
13103
- yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
13104
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13105
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13106
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13107
- return {
13108
- url: (0, common_1.toPathString)(localVarUrlObj),
13109
- options: localVarRequestOptions,
13110
- };
13111
- }),
13112
- /**
13113
- *
13114
- * @summary Update a variable
13115
- * @param {string} apiOrganisation The organisation ID
13116
- * @param {string} apiApplication The application ID
13117
- * @param {string} apiEnvironment The environment ID
13118
- * @param {string} apiVariable The variable key
13119
- * @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
12316
+ * @summary Update a variable
12317
+ * @param {string} apiOrganisation The organisation ID
12318
+ * @param {string} apiApplication The application ID
12319
+ * @param {string} apiEnvironment The environment ID
12320
+ * @param {string} apiVariable The variable key
12321
+ * @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
13120
12322
  * @param {*} [options] Override http request option.
13121
12323
  * @throws {RequiredError}
13122
12324
  */
@@ -13758,108 +12960,3 @@ class VolumesApi extends base_1.BaseAPI {
13758
12960
  }
13759
12961
  }
13760
12962
  exports.VolumesApi = VolumesApi;
13761
- /**
13762
- * WAFApi - axios parameter creator
13763
- * @export
13764
- */
13765
- const WAFApiAxiosParamCreator = function (configuration) {
13766
- return {
13767
- /**
13768
- *
13769
- * @summary Retrieve WAF logs
13770
- * @param {object} [body]
13771
- * @param {*} [options] Override http request option.
13772
- * @throws {RequiredError}
13773
- */
13774
- getWafLogs: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
13775
- const localVarPath = `/api/v1/waf-log`;
13776
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13777
- const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
13778
- let baseOptions;
13779
- if (configuration) {
13780
- baseOptions = configuration.baseOptions;
13781
- }
13782
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13783
- const localVarHeaderParameter = {};
13784
- const localVarQueryParameter = {};
13785
- // authentication headerAuth required
13786
- yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
13787
- localVarHeaderParameter['Content-Type'] = 'application/json';
13788
- (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
13789
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13790
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13791
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
13792
- return {
13793
- url: (0, common_1.toPathString)(localVarUrlObj),
13794
- options: localVarRequestOptions,
13795
- };
13796
- }),
13797
- };
13798
- };
13799
- exports.WAFApiAxiosParamCreator = WAFApiAxiosParamCreator;
13800
- /**
13801
- * WAFApi - functional programming interface
13802
- * @export
13803
- */
13804
- const WAFApiFp = function (configuration) {
13805
- const localVarAxiosParamCreator = (0, exports.WAFApiAxiosParamCreator)(configuration);
13806
- return {
13807
- /**
13808
- *
13809
- * @summary Retrieve WAF logs
13810
- * @param {object} [body]
13811
- * @param {*} [options] Override http request option.
13812
- * @throws {RequiredError}
13813
- */
13814
- getWafLogs(body, options) {
13815
- var _a, _b, _c;
13816
- return __awaiter(this, void 0, void 0, function* () {
13817
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWafLogs(body, options);
13818
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13819
- const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WAFApi.getWafLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13820
- return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13821
- });
13822
- },
13823
- };
13824
- };
13825
- exports.WAFApiFp = WAFApiFp;
13826
- /**
13827
- * WAFApi - factory interface
13828
- * @export
13829
- */
13830
- const WAFApiFactory = function (configuration, basePath, axios) {
13831
- const localVarFp = (0, exports.WAFApiFp)(configuration);
13832
- return {
13833
- /**
13834
- *
13835
- * @summary Retrieve WAF logs
13836
- * @param {object} [body]
13837
- * @param {*} [options] Override http request option.
13838
- * @throws {RequiredError}
13839
- */
13840
- getWafLogs(body, options) {
13841
- return localVarFp.getWafLogs(body, options).then((request) => request(axios, basePath));
13842
- },
13843
- };
13844
- };
13845
- exports.WAFApiFactory = WAFApiFactory;
13846
- /**
13847
- * WAFApi - object-oriented interface
13848
- * @export
13849
- * @class WAFApi
13850
- * @extends {BaseAPI}
13851
- */
13852
- class WAFApi extends base_1.BaseAPI {
13853
- /**
13854
- *
13855
- * @summary Retrieve WAF logs
13856
- * @param {object} [body]
13857
- * @param {*} [options] Override http request option.
13858
- * @throws {RequiredError}
13859
- * @memberof WAFApi
13860
- */
13861
- getWafLogs(body, options) {
13862
- return (0, exports.WAFApiFp)(this.configuration).getWafLogs(body, options).then((request) => request(this.axios, this.basePath));
13863
- }
13864
- }
13865
- exports.WAFApi = WAFApi;