@quantcdn/quant-client 4.1.0 → 4.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * Unified API for QuantCDN Admin and QuantCloud Platform services
6
6
  *
7
- * The version of the OpenAPI document: 4.1.0
7
+ * The version of the OpenAPI document: 4.3.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,9 +23,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  import globalAxios from 'axios';
24
24
  // Some imports not used depending on template conditions
25
25
  // @ts-ignore
26
- import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
26
+ import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const ApplicationDatabaseRdsInstanceEngineEnum = {
30
+ Mysql: 'mysql',
31
+ Postgres: 'postgres'
32
+ };
33
+ export const ApplicationImageReferenceTypeEnum = {
34
+ Internal: 'internal',
35
+ External: 'external'
36
+ };
37
+ export const ChatInference200ResponseFinishReasonEnum = {
38
+ Stop: 'stop',
39
+ Length: 'length',
40
+ ContentFilter: 'content_filter',
41
+ ToolUse: 'tool_use'
42
+ };
43
+ export const ChatInference200ResponseResponseRoleEnum = {
44
+ Assistant: 'assistant'
45
+ };
46
+ export const ChatInference200ResponseResponseToolUseOneOfStatusEnum = {
47
+ Pending: 'pending',
48
+ Running: 'running',
49
+ Complete: 'complete',
50
+ Failed: 'failed'
51
+ };
29
52
  export const ChatInferenceRequestMessagesInnerRoleEnum = {
30
53
  User: 'user',
31
54
  Assistant: 'assistant',
@@ -75,6 +98,10 @@ export const CreateAISessionRequestInitialMessagesInnerRoleEnum = {
75
98
  User: 'user',
76
99
  Assistant: 'assistant'
77
100
  };
101
+ export const CreateApplicationRequestDatabaseEngineEnum = {
102
+ Mysql: 'mysql',
103
+ Postgres: 'postgres'
104
+ };
78
105
  export const CronRunRunTypeEnum = {
79
106
  Exec: 'EXEC',
80
107
  Cron: 'CRON'
@@ -93,6 +120,12 @@ export const EmbeddingsRequestDimensionsEnum = {
93
120
  NUMBER_1024: 1024,
94
121
  NUMBER_8192: 8192
95
122
  };
123
+ export const GetToolExecutionStatus200ResponseStatusEnum = {
124
+ Pending: 'pending',
125
+ Running: 'running',
126
+ Complete: 'complete',
127
+ Failed: 'failed'
128
+ };
96
129
  export const ImageGenerationRequestTaskTypeEnum = {
97
130
  TextImage: 'TEXT_IMAGE',
98
131
  ColorGuidedGeneration: 'COLOR_GUIDED_GENERATION',
@@ -129,19 +162,45 @@ export const ImageGenerationRequestTextToImageParamsControlModeEnum = {
129
162
  CannyEdge: 'CANNY_EDGE',
130
163
  Segmentation: 'SEGMENTATION'
131
164
  };
165
+ export const ListToolExecutions200ResponseExecutionsInnerStatusEnum = {
166
+ Pending: 'pending',
167
+ Running: 'running',
168
+ Complete: 'complete',
169
+ Failed: 'failed'
170
+ };
132
171
  export const ScalingPolicyMetricEnum = {
133
172
  CpuUtilization: 'CPUUtilization',
134
173
  MemoryUtilization: 'MemoryUtilization',
135
174
  Rps: 'RPS'
136
175
  };
137
- export const TestSearchExtractorsRequestTypeEnum = {
138
- Url: 'url',
139
- ContentType: 'content_type'
176
+ export const SpotConfigurationStrategyEnum = {
177
+ Off: 'off',
178
+ SpotOnly: 'spot-only',
179
+ MixedSafe: 'mixed-safe',
180
+ MixedAggressive: 'mixed-aggressive'
140
181
  };
141
182
  export const V1TransitionStateEnum = {
142
183
  Published: 'published',
143
184
  Unpublished: 'unpublished'
144
185
  };
186
+ export const V2RuleProxyActionNotifyEnum = {
187
+ None: 'none',
188
+ Slack: 'slack'
189
+ };
190
+ export const WafConfigModeEnum = {
191
+ Report: 'report',
192
+ Block: 'block'
193
+ };
194
+ export const WafConfigThresholdsInnerTypeEnum = {
195
+ Ip: 'ip',
196
+ Header: 'header',
197
+ WafHitByIp: 'waf_hit_by_ip'
198
+ };
199
+ export const WafConfigThresholdsInnerModeEnum = {
200
+ Disabled: 'disabled',
201
+ Report: 'report',
202
+ Block: 'block'
203
+ };
145
204
  /**
146
205
  * AIServicesApi - axios parameter creator
147
206
  * @export
@@ -149,7 +208,7 @@ export const V1TransitionStateEnum = {
149
208
  export const AIServicesApiAxiosParamCreator = function (configuration) {
150
209
  return {
151
210
  /**
152
- * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size
211
+ * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling
153
212
  * @summary Chat inference via API Gateway (buffered responses) with multimodal support
154
213
  * @param {string} organisation The organisation ID
155
214
  * @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
@@ -436,6 +495,42 @@ export const AIServicesApiAxiosParamCreator = function (configuration) {
436
495
  options: localVarRequestOptions,
437
496
  };
438
497
  }),
498
+ /**
499
+ * Retrieves the status and result of an async tool execution. Used for polling long-running tools like image generation. * * **Async Tool Execution Pattern:** * This endpoint enables a polling pattern for long-running tools that would otherwise hit API Gateway\'s 30-second timeout. * * **Flow:** * 1. AI requests tool use (e.g., `generate_image`) * 2. Chat API returns `toolUse` with execution tracking info * 3. Client starts polling this endpoint with the `executionId` * 4. When `status === \'complete\'`, retrieve `result` and send back to AI * 5. AI incorporates result into final response * * **Status Values:** * - `pending`: Tool execution queued, not yet started * - `running`: Tool is currently executing * - `complete`: Tool execution finished successfully, `result` available * - `failed`: Tool execution failed, `error` available * * **Polling Recommendations:** * - Poll every 2-3 seconds for image generation * - Exponential backoff for other tools (start 1s, max 5s) * - Stop polling after 5 minutes (consider failed) * - Auto-cleanup after 24 hours (TTL) * * **Use Cases:** * - Image generation (10-15s typical runtime) * - Video processing * - Large file uploads/downloads * - Complex database queries * - External API calls with high latency
500
+ * @summary Get async tool execution status and result
501
+ * @param {string} organisation The organisation ID
502
+ * @param {string} executionId Tool execution identifier
503
+ * @param {*} [options] Override http request option.
504
+ * @throws {RequiredError}
505
+ */
506
+ getToolExecutionStatus: (organisation, executionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
507
+ // verify required parameter 'organisation' is not null or undefined
508
+ assertParamExists('getToolExecutionStatus', 'organisation', organisation);
509
+ // verify required parameter 'executionId' is not null or undefined
510
+ assertParamExists('getToolExecutionStatus', 'executionId', executionId);
511
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/executions/{executionId}`
512
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
513
+ .replace(`{${"executionId"}}`, encodeURIComponent(String(executionId)));
514
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
515
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
516
+ let baseOptions;
517
+ if (configuration) {
518
+ baseOptions = configuration.baseOptions;
519
+ }
520
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
521
+ const localVarHeaderParameter = {};
522
+ const localVarQueryParameter = {};
523
+ // authentication BearerAuth required
524
+ // http bearer authentication required
525
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
526
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
528
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
529
+ return {
530
+ url: toPathString(localVarUrlObj),
531
+ options: localVarRequestOptions,
532
+ };
533
+ }),
439
534
  /**
440
535
  * Generates images using Amazon Nova Canvas image generation model. * * **Region Restriction:** Nova Canvas is ONLY available in: * - `us-east-1` (US East, N. Virginia) * - `ap-northeast-1` (Asia Pacific, Tokyo) * - `eu-west-1` (Europe, Ireland) * ❌ NOT available in `ap-southeast-2` (Sydney) * * **Supported Task Types:** * - **TEXT_IMAGE**: Basic text-to-image generation * - **TEXT_IMAGE with Conditioning**: Layout-guided generation using edge detection or segmentation * - **COLOR_GUIDED_GENERATION**: Generate images with specific color palettes * - **IMAGE_VARIATION**: Create variations of existing images * - **INPAINTING**: Fill masked areas in images * - **OUTPAINTING**: Extend images beyond their borders * - **BACKGROUND_REMOVAL**: Remove backgrounds from images * - **VIRTUAL_TRY_ON**: Try on garments/objects on people * * **Quality Options:** * - **standard**: Faster generation, lower cost * - **premium**: Higher quality, slower generation * * **Timeout:** Image generation can take up to 5 minutes
441
536
  * @summary Generate images with Amazon Nova Canvas
@@ -561,6 +656,110 @@ export const AIServicesApiAxiosParamCreator = function (configuration) {
561
656
  options: localVarRequestOptions,
562
657
  };
563
658
  }),
659
+ /**
660
+ * Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
661
+ * @summary List tool names only (lightweight response)
662
+ * @param {string} organisation The organisation ID
663
+ * @param {*} [options] Override http request option.
664
+ * @throws {RequiredError}
665
+ */
666
+ listAIToolNames: (organisation, options = {}) => __awaiter(this, void 0, void 0, function* () {
667
+ // verify required parameter 'organisation' is not null or undefined
668
+ assertParamExists('listAIToolNames', 'organisation', organisation);
669
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/names`
670
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
671
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
672
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
673
+ let baseOptions;
674
+ if (configuration) {
675
+ baseOptions = configuration.baseOptions;
676
+ }
677
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
678
+ const localVarHeaderParameter = {};
679
+ const localVarQueryParameter = {};
680
+ // authentication BearerAuth required
681
+ // http bearer authentication required
682
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
683
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
684
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
685
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
686
+ return {
687
+ url: toPathString(localVarUrlObj),
688
+ options: localVarRequestOptions,
689
+ };
690
+ }),
691
+ /**
692
+ * Retrieves all available built-in tools that can be used with function calling. These tools can be included in `toolConfig` when making AI inference requests. * * **Available Built-in Tools:** * - `get_weather`: Get current weather for a location using Open-Meteo API * - `calculate`: Perform basic mathematical calculations (add, subtract, multiply, divide) * - `search_web`: Search the web for information (mock implementation) * - `generate_image`: Generate images with Amazon Nova Canvas (async execution, 10-15s typical runtime) * * **Use Cases:** * - Discover available tools dynamically without hardcoding * - Get complete tool specifications including input schemas * - Build UI for tool selection * - Validate tool names before sending requests * * **Dynamic Tool Discovery:** * This endpoint enables clients to: * 1. Fetch all available tools on page load * 2. Display tool capabilities to users * 3. Filter tools based on user permissions * 4. Use `allowedTools` whitelist for security * * **Alternative Endpoint:** * - `GET /ai/tools/names` - Returns only tool names (faster, lighter response)
693
+ * @summary List available built-in tools for function calling
694
+ * @param {string} organisation The organisation ID
695
+ * @param {*} [options] Override http request option.
696
+ * @throws {RequiredError}
697
+ */
698
+ listAITools: (organisation, options = {}) => __awaiter(this, void 0, void 0, function* () {
699
+ // verify required parameter 'organisation' is not null or undefined
700
+ assertParamExists('listAITools', 'organisation', organisation);
701
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/tools`
702
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
703
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
704
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
705
+ let baseOptions;
706
+ if (configuration) {
707
+ baseOptions = configuration.baseOptions;
708
+ }
709
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
710
+ const localVarHeaderParameter = {};
711
+ const localVarQueryParameter = {};
712
+ // authentication BearerAuth required
713
+ // http bearer authentication required
714
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
715
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
716
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
717
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
718
+ return {
719
+ url: toPathString(localVarUrlObj),
720
+ options: localVarRequestOptions,
721
+ };
722
+ }),
723
+ /**
724
+ * Lists recent async tool executions for an organization. Useful for debugging, monitoring, and building admin UIs. * * **Query Patterns:** * - All recent executions: `GET /ai/tools/executions` * - Filter by status: `GET /ai/tools/executions?status=running` * - Limit results: `GET /ai/tools/executions?limit=20` * * **Results:** * - Ordered by creation time (newest first) * - Limited to 50 by default (configurable via `limit` parameter) * - Only shows executions not yet expired (24h TTL) * * **Use Cases:** * - Monitor all active tool executions * - Debug failed executions * - Build admin dashboards * - Track tool usage patterns * - Audit async operations
725
+ * @summary List tool executions for monitoring and debugging
726
+ * @param {string} organisation The organisation ID
727
+ * @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
728
+ * @param {number} [limit] Maximum number of executions to return
729
+ * @param {*} [options] Override http request option.
730
+ * @throws {RequiredError}
731
+ */
732
+ listToolExecutions: (organisation, status, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
733
+ // verify required parameter 'organisation' is not null or undefined
734
+ assertParamExists('listToolExecutions', 'organisation', organisation);
735
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/executions`
736
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
737
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
738
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
739
+ let baseOptions;
740
+ if (configuration) {
741
+ baseOptions = configuration.baseOptions;
742
+ }
743
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
744
+ const localVarHeaderParameter = {};
745
+ const localVarQueryParameter = {};
746
+ // authentication BearerAuth required
747
+ // http bearer authentication required
748
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
749
+ if (status !== undefined) {
750
+ localVarQueryParameter['status'] = status;
751
+ }
752
+ if (limit !== undefined) {
753
+ localVarQueryParameter['limit'] = limit;
754
+ }
755
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
756
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
757
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
758
+ return {
759
+ url: toPathString(localVarUrlObj),
760
+ options: localVarRequestOptions,
761
+ };
762
+ }),
564
763
  /**
565
764
  *
566
765
  * @summary Update AI configuration for an organization
@@ -608,7 +807,7 @@ export const AIServicesApiFp = function (configuration) {
608
807
  const localVarAxiosParamCreator = AIServicesApiAxiosParamCreator(configuration);
609
808
  return {
610
809
  /**
611
- * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size
810
+ * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling
612
811
  * @summary Chat inference via API Gateway (buffered responses) with multimodal support
613
812
  * @param {string} organisation The organisation ID
614
813
  * @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
@@ -742,6 +941,23 @@ export const AIServicesApiFp = function (configuration) {
742
941
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
743
942
  });
744
943
  },
944
+ /**
945
+ * Retrieves the status and result of an async tool execution. Used for polling long-running tools like image generation. * * **Async Tool Execution Pattern:** * This endpoint enables a polling pattern for long-running tools that would otherwise hit API Gateway\'s 30-second timeout. * * **Flow:** * 1. AI requests tool use (e.g., `generate_image`) * 2. Chat API returns `toolUse` with execution tracking info * 3. Client starts polling this endpoint with the `executionId` * 4. When `status === \'complete\'`, retrieve `result` and send back to AI * 5. AI incorporates result into final response * * **Status Values:** * - `pending`: Tool execution queued, not yet started * - `running`: Tool is currently executing * - `complete`: Tool execution finished successfully, `result` available * - `failed`: Tool execution failed, `error` available * * **Polling Recommendations:** * - Poll every 2-3 seconds for image generation * - Exponential backoff for other tools (start 1s, max 5s) * - Stop polling after 5 minutes (consider failed) * - Auto-cleanup after 24 hours (TTL) * * **Use Cases:** * - Image generation (10-15s typical runtime) * - Video processing * - Large file uploads/downloads * - Complex database queries * - External API calls with high latency
946
+ * @summary Get async tool execution status and result
947
+ * @param {string} organisation The organisation ID
948
+ * @param {string} executionId Tool execution identifier
949
+ * @param {*} [options] Override http request option.
950
+ * @throws {RequiredError}
951
+ */
952
+ getToolExecutionStatus(organisation, executionId, options) {
953
+ var _a, _b, _c;
954
+ return __awaiter(this, void 0, void 0, function* () {
955
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getToolExecutionStatus(organisation, executionId, options);
956
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
957
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIServicesApi.getToolExecutionStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
958
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
959
+ });
960
+ },
745
961
  /**
746
962
  * Generates images using Amazon Nova Canvas image generation model. * * **Region Restriction:** Nova Canvas is ONLY available in: * - `us-east-1` (US East, N. Virginia) * - `ap-northeast-1` (Asia Pacific, Tokyo) * - `eu-west-1` (Europe, Ireland) * ❌ NOT available in `ap-southeast-2` (Sydney) * * **Supported Task Types:** * - **TEXT_IMAGE**: Basic text-to-image generation * - **TEXT_IMAGE with Conditioning**: Layout-guided generation using edge detection or segmentation * - **COLOR_GUIDED_GENERATION**: Generate images with specific color palettes * - **IMAGE_VARIATION**: Create variations of existing images * - **INPAINTING**: Fill masked areas in images * - **OUTPAINTING**: Extend images beyond their borders * - **BACKGROUND_REMOVAL**: Remove backgrounds from images * - **VIRTUAL_TRY_ON**: Try on garments/objects on people * * **Quality Options:** * - **standard**: Faster generation, lower cost * - **premium**: Higher quality, slower generation * * **Timeout:** Image generation can take up to 5 minutes
747
963
  * @summary Generate images with Amazon Nova Canvas
@@ -797,6 +1013,56 @@ export const AIServicesApiFp = function (configuration) {
797
1013
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
798
1014
  });
799
1015
  },
1016
+ /**
1017
+ * Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
1018
+ * @summary List tool names only (lightweight response)
1019
+ * @param {string} organisation The organisation ID
1020
+ * @param {*} [options] Override http request option.
1021
+ * @throws {RequiredError}
1022
+ */
1023
+ listAIToolNames(organisation, options) {
1024
+ var _a, _b, _c;
1025
+ return __awaiter(this, void 0, void 0, function* () {
1026
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAIToolNames(organisation, options);
1027
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1028
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIServicesApi.listAIToolNames']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1029
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1030
+ });
1031
+ },
1032
+ /**
1033
+ * Retrieves all available built-in tools that can be used with function calling. These tools can be included in `toolConfig` when making AI inference requests. * * **Available Built-in Tools:** * - `get_weather`: Get current weather for a location using Open-Meteo API * - `calculate`: Perform basic mathematical calculations (add, subtract, multiply, divide) * - `search_web`: Search the web for information (mock implementation) * - `generate_image`: Generate images with Amazon Nova Canvas (async execution, 10-15s typical runtime) * * **Use Cases:** * - Discover available tools dynamically without hardcoding * - Get complete tool specifications including input schemas * - Build UI for tool selection * - Validate tool names before sending requests * * **Dynamic Tool Discovery:** * This endpoint enables clients to: * 1. Fetch all available tools on page load * 2. Display tool capabilities to users * 3. Filter tools based on user permissions * 4. Use `allowedTools` whitelist for security * * **Alternative Endpoint:** * - `GET /ai/tools/names` - Returns only tool names (faster, lighter response)
1034
+ * @summary List available built-in tools for function calling
1035
+ * @param {string} organisation The organisation ID
1036
+ * @param {*} [options] Override http request option.
1037
+ * @throws {RequiredError}
1038
+ */
1039
+ listAITools(organisation, options) {
1040
+ var _a, _b, _c;
1041
+ return __awaiter(this, void 0, void 0, function* () {
1042
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listAITools(organisation, options);
1043
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1044
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIServicesApi.listAITools']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1045
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1046
+ });
1047
+ },
1048
+ /**
1049
+ * Lists recent async tool executions for an organization. Useful for debugging, monitoring, and building admin UIs. * * **Query Patterns:** * - All recent executions: `GET /ai/tools/executions` * - Filter by status: `GET /ai/tools/executions?status=running` * - Limit results: `GET /ai/tools/executions?limit=20` * * **Results:** * - Ordered by creation time (newest first) * - Limited to 50 by default (configurable via `limit` parameter) * - Only shows executions not yet expired (24h TTL) * * **Use Cases:** * - Monitor all active tool executions * - Debug failed executions * - Build admin dashboards * - Track tool usage patterns * - Audit async operations
1050
+ * @summary List tool executions for monitoring and debugging
1051
+ * @param {string} organisation The organisation ID
1052
+ * @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
1053
+ * @param {number} [limit] Maximum number of executions to return
1054
+ * @param {*} [options] Override http request option.
1055
+ * @throws {RequiredError}
1056
+ */
1057
+ listToolExecutions(organisation, status, limit, options) {
1058
+ var _a, _b, _c;
1059
+ return __awaiter(this, void 0, void 0, function* () {
1060
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listToolExecutions(organisation, status, limit, options);
1061
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1062
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIServicesApi.listToolExecutions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1063
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1064
+ });
1065
+ },
800
1066
  /**
801
1067
  *
802
1068
  * @summary Update AI configuration for an organization
@@ -824,7 +1090,7 @@ export const AIServicesApiFactory = function (configuration, basePath, axios) {
824
1090
  const localVarFp = AIServicesApiFp(configuration);
825
1091
  return {
826
1092
  /**
827
- * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size
1093
+ * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling
828
1094
  * @summary Chat inference via API Gateway (buffered responses) with multimodal support
829
1095
  * @param {string} organisation The organisation ID
830
1096
  * @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
@@ -910,6 +1176,17 @@ export const AIServicesApiFactory = function (configuration, basePath, axios) {
910
1176
  getAIUsageStats(organisation, month, options) {
911
1177
  return localVarFp.getAIUsageStats(organisation, month, options).then((request) => request(axios, basePath));
912
1178
  },
1179
+ /**
1180
+ * Retrieves the status and result of an async tool execution. Used for polling long-running tools like image generation. * * **Async Tool Execution Pattern:** * This endpoint enables a polling pattern for long-running tools that would otherwise hit API Gateway\'s 30-second timeout. * * **Flow:** * 1. AI requests tool use (e.g., `generate_image`) * 2. Chat API returns `toolUse` with execution tracking info * 3. Client starts polling this endpoint with the `executionId` * 4. When `status === \'complete\'`, retrieve `result` and send back to AI * 5. AI incorporates result into final response * * **Status Values:** * - `pending`: Tool execution queued, not yet started * - `running`: Tool is currently executing * - `complete`: Tool execution finished successfully, `result` available * - `failed`: Tool execution failed, `error` available * * **Polling Recommendations:** * - Poll every 2-3 seconds for image generation * - Exponential backoff for other tools (start 1s, max 5s) * - Stop polling after 5 minutes (consider failed) * - Auto-cleanup after 24 hours (TTL) * * **Use Cases:** * - Image generation (10-15s typical runtime) * - Video processing * - Large file uploads/downloads * - Complex database queries * - External API calls with high latency
1181
+ * @summary Get async tool execution status and result
1182
+ * @param {string} organisation The organisation ID
1183
+ * @param {string} executionId Tool execution identifier
1184
+ * @param {*} [options] Override http request option.
1185
+ * @throws {RequiredError}
1186
+ */
1187
+ getToolExecutionStatus(organisation, executionId, options) {
1188
+ return localVarFp.getToolExecutionStatus(organisation, executionId, options).then((request) => request(axios, basePath));
1189
+ },
913
1190
  /**
914
1191
  * Generates images using Amazon Nova Canvas image generation model. * * **Region Restriction:** Nova Canvas is ONLY available in: * - `us-east-1` (US East, N. Virginia) * - `ap-northeast-1` (Asia Pacific, Tokyo) * - `eu-west-1` (Europe, Ireland) * ❌ NOT available in `ap-southeast-2` (Sydney) * * **Supported Task Types:** * - **TEXT_IMAGE**: Basic text-to-image generation * - **TEXT_IMAGE with Conditioning**: Layout-guided generation using edge detection or segmentation * - **COLOR_GUIDED_GENERATION**: Generate images with specific color palettes * - **IMAGE_VARIATION**: Create variations of existing images * - **INPAINTING**: Fill masked areas in images * - **OUTPAINTING**: Extend images beyond their borders * - **BACKGROUND_REMOVAL**: Remove backgrounds from images * - **VIRTUAL_TRY_ON**: Try on garments/objects on people * * **Quality Options:** * - **standard**: Faster generation, lower cost * - **premium**: Higher quality, slower generation * * **Timeout:** Image generation can take up to 5 minutes
915
1192
  * @summary Generate images with Amazon Nova Canvas
@@ -947,6 +1224,38 @@ export const AIServicesApiFactory = function (configuration, basePath, axios) {
947
1224
  listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
948
1225
  return localVarFp.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(axios, basePath));
949
1226
  },
1227
+ /**
1228
+ * Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
1229
+ * @summary List tool names only (lightweight response)
1230
+ * @param {string} organisation The organisation ID
1231
+ * @param {*} [options] Override http request option.
1232
+ * @throws {RequiredError}
1233
+ */
1234
+ listAIToolNames(organisation, options) {
1235
+ return localVarFp.listAIToolNames(organisation, options).then((request) => request(axios, basePath));
1236
+ },
1237
+ /**
1238
+ * Retrieves all available built-in tools that can be used with function calling. These tools can be included in `toolConfig` when making AI inference requests. * * **Available Built-in Tools:** * - `get_weather`: Get current weather for a location using Open-Meteo API * - `calculate`: Perform basic mathematical calculations (add, subtract, multiply, divide) * - `search_web`: Search the web for information (mock implementation) * - `generate_image`: Generate images with Amazon Nova Canvas (async execution, 10-15s typical runtime) * * **Use Cases:** * - Discover available tools dynamically without hardcoding * - Get complete tool specifications including input schemas * - Build UI for tool selection * - Validate tool names before sending requests * * **Dynamic Tool Discovery:** * This endpoint enables clients to: * 1. Fetch all available tools on page load * 2. Display tool capabilities to users * 3. Filter tools based on user permissions * 4. Use `allowedTools` whitelist for security * * **Alternative Endpoint:** * - `GET /ai/tools/names` - Returns only tool names (faster, lighter response)
1239
+ * @summary List available built-in tools for function calling
1240
+ * @param {string} organisation The organisation ID
1241
+ * @param {*} [options] Override http request option.
1242
+ * @throws {RequiredError}
1243
+ */
1244
+ listAITools(organisation, options) {
1245
+ return localVarFp.listAITools(organisation, options).then((request) => request(axios, basePath));
1246
+ },
1247
+ /**
1248
+ * Lists recent async tool executions for an organization. Useful for debugging, monitoring, and building admin UIs. * * **Query Patterns:** * - All recent executions: `GET /ai/tools/executions` * - Filter by status: `GET /ai/tools/executions?status=running` * - Limit results: `GET /ai/tools/executions?limit=20` * * **Results:** * - Ordered by creation time (newest first) * - Limited to 50 by default (configurable via `limit` parameter) * - Only shows executions not yet expired (24h TTL) * * **Use Cases:** * - Monitor all active tool executions * - Debug failed executions * - Build admin dashboards * - Track tool usage patterns * - Audit async operations
1249
+ * @summary List tool executions for monitoring and debugging
1250
+ * @param {string} organisation The organisation ID
1251
+ * @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
1252
+ * @param {number} [limit] Maximum number of executions to return
1253
+ * @param {*} [options] Override http request option.
1254
+ * @throws {RequiredError}
1255
+ */
1256
+ listToolExecutions(organisation, status, limit, options) {
1257
+ return localVarFp.listToolExecutions(organisation, status, limit, options).then((request) => request(axios, basePath));
1258
+ },
950
1259
  /**
951
1260
  *
952
1261
  * @summary Update AI configuration for an organization
@@ -968,7 +1277,7 @@ export const AIServicesApiFactory = function (configuration, basePath, axios) {
968
1277
  */
969
1278
  export class AIServicesApi extends BaseAPI {
970
1279
  /**
971
- * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size
1280
+ * Sends requests to the AI API Gateway endpoint which buffers responses. Supports text, images, videos, and documents via base64 encoding. * * **Multimodal Support:** * - **Text**: Simple string content * - **Images**: Base64-encoded PNG, JPEG, GIF, WebP (up to 25MB) * - **Videos**: Base64-encoded MP4, MOV, WebM, etc. (up to 25MB) * - **Documents**: Base64-encoded PDF, DOCX, CSV, etc. (up to 25MB) * * **Supported Models:** * - Amazon Nova Lite, Micro, Pro (all support multimodal) * - Claude models (text only) * * **Usage Tips:** * - Use base64 encoding for images/videos < 5-10MB * - Place media before text prompts for best results * - Label multiple media files (e.g., \'Image 1:\', \'Image 2:\') * - Maximum 25MB total payload size * * **Response Patterns:** * - **Text-only**: Returns simple text response when no tools requested * - **Single tool**: Returns `toolUse` object when AI requests one tool * - **Multiple tools**: Returns `toolUse` array when AI requests multiple tools * - **Auto-execute sync**: Automatically executes tool and returns final text response * - **Auto-execute async**: Returns toolUse with `executionId` and `status` for polling
972
1281
  * @summary Chat inference via API Gateway (buffered responses) with multimodal support
973
1282
  * @param {string} organisation The organisation ID
974
1283
  * @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
@@ -1062,6 +1371,18 @@ export class AIServicesApi extends BaseAPI {
1062
1371
  getAIUsageStats(organisation, month, options) {
1063
1372
  return AIServicesApiFp(this.configuration).getAIUsageStats(organisation, month, options).then((request) => request(this.axios, this.basePath));
1064
1373
  }
1374
+ /**
1375
+ * Retrieves the status and result of an async tool execution. Used for polling long-running tools like image generation. * * **Async Tool Execution Pattern:** * This endpoint enables a polling pattern for long-running tools that would otherwise hit API Gateway\'s 30-second timeout. * * **Flow:** * 1. AI requests tool use (e.g., `generate_image`) * 2. Chat API returns `toolUse` with execution tracking info * 3. Client starts polling this endpoint with the `executionId` * 4. When `status === \'complete\'`, retrieve `result` and send back to AI * 5. AI incorporates result into final response * * **Status Values:** * - `pending`: Tool execution queued, not yet started * - `running`: Tool is currently executing * - `complete`: Tool execution finished successfully, `result` available * - `failed`: Tool execution failed, `error` available * * **Polling Recommendations:** * - Poll every 2-3 seconds for image generation * - Exponential backoff for other tools (start 1s, max 5s) * - Stop polling after 5 minutes (consider failed) * - Auto-cleanup after 24 hours (TTL) * * **Use Cases:** * - Image generation (10-15s typical runtime) * - Video processing * - Large file uploads/downloads * - Complex database queries * - External API calls with high latency
1376
+ * @summary Get async tool execution status and result
1377
+ * @param {string} organisation The organisation ID
1378
+ * @param {string} executionId Tool execution identifier
1379
+ * @param {*} [options] Override http request option.
1380
+ * @throws {RequiredError}
1381
+ * @memberof AIServicesApi
1382
+ */
1383
+ getToolExecutionStatus(organisation, executionId, options) {
1384
+ return AIServicesApiFp(this.configuration).getToolExecutionStatus(organisation, executionId, options).then((request) => request(this.axios, this.basePath));
1385
+ }
1065
1386
  /**
1066
1387
  * Generates images using Amazon Nova Canvas image generation model. * * **Region Restriction:** Nova Canvas is ONLY available in: * - `us-east-1` (US East, N. Virginia) * - `ap-northeast-1` (Asia Pacific, Tokyo) * - `eu-west-1` (Europe, Ireland) * ❌ NOT available in `ap-southeast-2` (Sydney) * * **Supported Task Types:** * - **TEXT_IMAGE**: Basic text-to-image generation * - **TEXT_IMAGE with Conditioning**: Layout-guided generation using edge detection or segmentation * - **COLOR_GUIDED_GENERATION**: Generate images with specific color palettes * - **IMAGE_VARIATION**: Create variations of existing images * - **INPAINTING**: Fill masked areas in images * - **OUTPAINTING**: Extend images beyond their borders * - **BACKGROUND_REMOVAL**: Remove backgrounds from images * - **VIRTUAL_TRY_ON**: Try on garments/objects on people * * **Quality Options:** * - **standard**: Faster generation, lower cost * - **premium**: Higher quality, slower generation * * **Timeout:** Image generation can take up to 5 minutes
1067
1388
  * @summary Generate images with Amazon Nova Canvas
@@ -1102,6 +1423,41 @@ export class AIServicesApi extends BaseAPI {
1102
1423
  listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
1103
1424
  return AIServicesApiFp(this.configuration).listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(this.axios, this.basePath));
1104
1425
  }
1426
+ /**
1427
+ * Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
1428
+ * @summary List tool names only (lightweight response)
1429
+ * @param {string} organisation The organisation ID
1430
+ * @param {*} [options] Override http request option.
1431
+ * @throws {RequiredError}
1432
+ * @memberof AIServicesApi
1433
+ */
1434
+ listAIToolNames(organisation, options) {
1435
+ return AIServicesApiFp(this.configuration).listAIToolNames(organisation, options).then((request) => request(this.axios, this.basePath));
1436
+ }
1437
+ /**
1438
+ * Retrieves all available built-in tools that can be used with function calling. These tools can be included in `toolConfig` when making AI inference requests. * * **Available Built-in Tools:** * - `get_weather`: Get current weather for a location using Open-Meteo API * - `calculate`: Perform basic mathematical calculations (add, subtract, multiply, divide) * - `search_web`: Search the web for information (mock implementation) * - `generate_image`: Generate images with Amazon Nova Canvas (async execution, 10-15s typical runtime) * * **Use Cases:** * - Discover available tools dynamically without hardcoding * - Get complete tool specifications including input schemas * - Build UI for tool selection * - Validate tool names before sending requests * * **Dynamic Tool Discovery:** * This endpoint enables clients to: * 1. Fetch all available tools on page load * 2. Display tool capabilities to users * 3. Filter tools based on user permissions * 4. Use `allowedTools` whitelist for security * * **Alternative Endpoint:** * - `GET /ai/tools/names` - Returns only tool names (faster, lighter response)
1439
+ * @summary List available built-in tools for function calling
1440
+ * @param {string} organisation The organisation ID
1441
+ * @param {*} [options] Override http request option.
1442
+ * @throws {RequiredError}
1443
+ * @memberof AIServicesApi
1444
+ */
1445
+ listAITools(organisation, options) {
1446
+ return AIServicesApiFp(this.configuration).listAITools(organisation, options).then((request) => request(this.axios, this.basePath));
1447
+ }
1448
+ /**
1449
+ * Lists recent async tool executions for an organization. Useful for debugging, monitoring, and building admin UIs. * * **Query Patterns:** * - All recent executions: `GET /ai/tools/executions` * - Filter by status: `GET /ai/tools/executions?status=running` * - Limit results: `GET /ai/tools/executions?limit=20` * * **Results:** * - Ordered by creation time (newest first) * - Limited to 50 by default (configurable via `limit` parameter) * - Only shows executions not yet expired (24h TTL) * * **Use Cases:** * - Monitor all active tool executions * - Debug failed executions * - Build admin dashboards * - Track tool usage patterns * - Audit async operations
1450
+ * @summary List tool executions for monitoring and debugging
1451
+ * @param {string} organisation The organisation ID
1452
+ * @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
1453
+ * @param {number} [limit] Maximum number of executions to return
1454
+ * @param {*} [options] Override http request option.
1455
+ * @throws {RequiredError}
1456
+ * @memberof AIServicesApi
1457
+ */
1458
+ listToolExecutions(organisation, status, limit, options) {
1459
+ return AIServicesApiFp(this.configuration).listToolExecutions(organisation, status, limit, options).then((request) => request(this.axios, this.basePath));
1460
+ }
1105
1461
  /**
1106
1462
  *
1107
1463
  * @summary Update AI configuration for an organization
@@ -1125,6 +1481,15 @@ export const ListAIModelsFeatureEnum = {
1125
1481
  Streaming: 'streaming',
1126
1482
  All: 'all'
1127
1483
  };
1484
+ /**
1485
+ * @export
1486
+ */
1487
+ export const ListToolExecutionsStatusEnum = {
1488
+ Pending: 'pending',
1489
+ Running: 'running',
1490
+ Complete: 'complete',
1491
+ Failed: 'failed'
1492
+ };
1128
1493
  /**
1129
1494
  * ApplicationsApi - axios parameter creator
1130
1495
  * @export
@@ -1135,15 +1500,15 @@ export const ApplicationsApiAxiosParamCreator = function (configuration) {
1135
1500
  *
1136
1501
  * @summary Create a new application
1137
1502
  * @param {string} organisation The organisation ID
1138
- * @param {Application} application
1503
+ * @param {CreateApplicationRequest} createApplicationRequest
1139
1504
  * @param {*} [options] Override http request option.
1140
1505
  * @throws {RequiredError}
1141
1506
  */
1142
- createApplication: (organisation, application, options = {}) => __awaiter(this, void 0, void 0, function* () {
1507
+ createApplication: (organisation, createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
1143
1508
  // verify required parameter 'organisation' is not null or undefined
1144
1509
  assertParamExists('createApplication', 'organisation', organisation);
1145
- // verify required parameter 'application' is not null or undefined
1146
- assertParamExists('createApplication', 'application', application);
1510
+ // verify required parameter 'createApplicationRequest' is not null or undefined
1511
+ assertParamExists('createApplication', 'createApplicationRequest', createApplicationRequest);
1147
1512
  const localVarPath = `/api/v3/organizations/{organisation}/applications`
1148
1513
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
1149
1514
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -1162,7 +1527,7 @@ export const ApplicationsApiAxiosParamCreator = function (configuration) {
1162
1527
  setSearchParams(localVarUrlObj, localVarQueryParameter);
1163
1528
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1164
1529
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1165
- localVarRequestOptions.data = serializeDataIfNeeded(application, localVarRequestOptions, configuration);
1530
+ localVarRequestOptions.data = serializeDataIfNeeded(createApplicationRequest, localVarRequestOptions, configuration);
1166
1531
  return {
1167
1532
  url: toPathString(localVarUrlObj),
1168
1533
  options: localVarRequestOptions,
@@ -1317,14 +1682,14 @@ export const ApplicationsApiFp = function (configuration) {
1317
1682
  *
1318
1683
  * @summary Create a new application
1319
1684
  * @param {string} organisation The organisation ID
1320
- * @param {Application} application
1685
+ * @param {CreateApplicationRequest} createApplicationRequest
1321
1686
  * @param {*} [options] Override http request option.
1322
1687
  * @throws {RequiredError}
1323
1688
  */
1324
- createApplication(organisation, application, options) {
1689
+ createApplication(organisation, createApplicationRequest, options) {
1325
1690
  var _a, _b, _c;
1326
1691
  return __awaiter(this, void 0, void 0, function* () {
1327
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, application, options);
1692
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, createApplicationRequest, options);
1328
1693
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1329
1694
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ApplicationsApi.createApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1330
1695
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -1409,12 +1774,12 @@ export const ApplicationsApiFactory = function (configuration, basePath, axios)
1409
1774
  *
1410
1775
  * @summary Create a new application
1411
1776
  * @param {string} organisation The organisation ID
1412
- * @param {Application} application
1777
+ * @param {CreateApplicationRequest} createApplicationRequest
1413
1778
  * @param {*} [options] Override http request option.
1414
1779
  * @throws {RequiredError}
1415
1780
  */
1416
- createApplication(organisation, application, options) {
1417
- return localVarFp.createApplication(organisation, application, options).then((request) => request(axios, basePath));
1781
+ createApplication(organisation, createApplicationRequest, options) {
1782
+ return localVarFp.createApplication(organisation, createApplicationRequest, options).then((request) => request(axios, basePath));
1418
1783
  },
1419
1784
  /**
1420
1785
  *
@@ -1471,13 +1836,13 @@ export class ApplicationsApi extends BaseAPI {
1471
1836
  *
1472
1837
  * @summary Create a new application
1473
1838
  * @param {string} organisation The organisation ID
1474
- * @param {Application} application
1839
+ * @param {CreateApplicationRequest} createApplicationRequest
1475
1840
  * @param {*} [options] Override http request option.
1476
1841
  * @throws {RequiredError}
1477
1842
  * @memberof ApplicationsApi
1478
1843
  */
1479
- createApplication(organisation, application, options) {
1480
- return ApplicationsApiFp(this.configuration).createApplication(organisation, application, options).then((request) => request(this.axios, this.basePath));
1844
+ createApplication(organisation, createApplicationRequest, options) {
1845
+ return ApplicationsApiFp(this.configuration).createApplication(organisation, createApplicationRequest, options).then((request) => request(this.axios, this.basePath));
1481
1846
  }
1482
1847
  /**
1483
1848
  *
@@ -2328,7 +2693,7 @@ export const ComposeApiAxiosParamCreator = function (configuration) {
2328
2693
  assertParamExists('getEnvironmentCompose', 'application', application);
2329
2694
  // verify required parameter 'environment' is not null or undefined
2330
2695
  assertParamExists('getEnvironmentCompose', 'environment', environment);
2331
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/compose`
2696
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose`
2332
2697
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
2333
2698
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
2334
2699
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
@@ -2353,7 +2718,7 @@ export const ComposeApiAxiosParamCreator = function (configuration) {
2353
2718
  };
2354
2719
  }),
2355
2720
  /**
2356
- * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2721
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2357
2722
  * @summary Validate a compose file
2358
2723
  * @param {string} organisation The organisation ID
2359
2724
  * @param {ValidateComposeRequest} validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
@@ -2421,7 +2786,7 @@ export const ComposeApiFp = function (configuration) {
2421
2786
  });
2422
2787
  },
2423
2788
  /**
2424
- * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2789
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2425
2790
  * @summary Validate a compose file
2426
2791
  * @param {string} organisation The organisation ID
2427
2792
  * @param {ValidateComposeRequest} validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
@@ -2460,7 +2825,7 @@ export const ComposeApiFactory = function (configuration, basePath, axios) {
2460
2825
  return localVarFp.getEnvironmentCompose(organisation, application, environment, options).then((request) => request(axios, basePath));
2461
2826
  },
2462
2827
  /**
2463
- * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2828
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2464
2829
  * @summary Validate a compose file
2465
2830
  * @param {string} organisation The organisation ID
2466
2831
  * @param {ValidateComposeRequest} validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
@@ -2494,7 +2859,7 @@ export class ComposeApi extends BaseAPI {
2494
2859
  return ComposeApiFp(this.configuration).getEnvironmentCompose(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
2495
2860
  }
2496
2861
  /**
2497
- * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2862
+ * Accepts a docker-compose.yml file content, translates it into the internal compose definition format, and validates it. Quant Cloud provides comprehensive support for standard Docker Compose features including commands, entrypoints, health checks, dependencies, volume mounts, resource limits, and more. For detailed documentation on supported features and examples, see: https://docs.quantcdn.io/introduction-to-quant-cloud/importing-docker-compose/. Supports image tag suffixing via the imageSuffix query parameter or by sending a JSON wrapper with yamlContent and imageSuffix fields. When provided, internal image tags are transformed to {containerName}-{suffix} format (e.g., \'nginx-feature-xyz\').
2498
2863
  * @summary Validate a compose file
2499
2864
  * @param {string} organisation The organisation ID
2500
2865
  * @param {ValidateComposeRequest} validateComposeRequest The docker-compose.yml file content. Can be sent as raw YAML string or as a JSON wrapper containing both yamlContent (string) and imageSuffix (string) fields. Query parameter imageSuffix takes precedence if both are provided.
@@ -2792,7 +3157,7 @@ export const CrawlerSchedulesApiAxiosParamCreator = function (configuration) {
2792
3157
  assertParamExists('crawlerSchedulesDelete', 'crawler', crawler);
2793
3158
  // verify required parameter 'crawlerSchedule' is not null or undefined
2794
3159
  assertParamExists('crawlerSchedulesDelete', 'crawlerSchedule', crawlerSchedule);
2795
- const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules`
3160
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule}`
2796
3161
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
2797
3162
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
2798
3163
  .replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
@@ -2823,23 +3188,27 @@ export const CrawlerSchedulesApiAxiosParamCreator = function (configuration) {
2823
3188
  * @param {string} organization Organization identifier
2824
3189
  * @param {string} project Project identifier
2825
3190
  * @param {string} crawler Crawler identifier
3191
+ * @param {string} crawlerSchedule Crawler schedule identifier
2826
3192
  * @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
2827
3193
  * @param {*} [options] Override http request option.
2828
3194
  * @throws {RequiredError}
2829
3195
  */
2830
- crawlerSchedulesEdit: (organization, project, crawler, v2CrawlerScheduleRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3196
+ crawlerSchedulesEdit: (organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
2831
3197
  // verify required parameter 'organization' is not null or undefined
2832
3198
  assertParamExists('crawlerSchedulesEdit', 'organization', organization);
2833
3199
  // verify required parameter 'project' is not null or undefined
2834
3200
  assertParamExists('crawlerSchedulesEdit', 'project', project);
2835
3201
  // verify required parameter 'crawler' is not null or undefined
2836
3202
  assertParamExists('crawlerSchedulesEdit', 'crawler', crawler);
3203
+ // verify required parameter 'crawlerSchedule' is not null or undefined
3204
+ assertParamExists('crawlerSchedulesEdit', 'crawlerSchedule', crawlerSchedule);
2837
3205
  // verify required parameter 'v2CrawlerScheduleRequest' is not null or undefined
2838
3206
  assertParamExists('crawlerSchedulesEdit', 'v2CrawlerScheduleRequest', v2CrawlerScheduleRequest);
2839
- const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules`
3207
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule}`
2840
3208
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
2841
3209
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
2842
- .replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
3210
+ .replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
3211
+ .replace(`{${"crawler_schedule"}}`, encodeURIComponent(String(crawlerSchedule)));
2843
3212
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
2844
3213
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2845
3214
  let baseOptions;
@@ -2999,14 +3368,15 @@ export const CrawlerSchedulesApiFp = function (configuration) {
2999
3368
  * @param {string} organization Organization identifier
3000
3369
  * @param {string} project Project identifier
3001
3370
  * @param {string} crawler Crawler identifier
3371
+ * @param {string} crawlerSchedule Crawler schedule identifier
3002
3372
  * @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
3003
3373
  * @param {*} [options] Override http request option.
3004
3374
  * @throws {RequiredError}
3005
3375
  */
3006
- crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
3376
+ crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
3007
3377
  var _a, _b, _c;
3008
3378
  return __awaiter(this, void 0, void 0, function* () {
3009
- const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options);
3379
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options);
3010
3380
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3011
3381
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrawlerSchedulesApi.crawlerSchedulesEdit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3012
3382
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -3090,12 +3460,13 @@ export const CrawlerSchedulesApiFactory = function (configuration, basePath, axi
3090
3460
  * @param {string} organization Organization identifier
3091
3461
  * @param {string} project Project identifier
3092
3462
  * @param {string} crawler Crawler identifier
3463
+ * @param {string} crawlerSchedule Crawler schedule identifier
3093
3464
  * @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
3094
3465
  * @param {*} [options] Override http request option.
3095
3466
  * @throws {RequiredError}
3096
3467
  */
3097
- crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
3098
- return localVarFp.crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options).then((request) => request(axios, basePath));
3468
+ crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
3469
+ return localVarFp.crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options).then((request) => request(axios, basePath));
3099
3470
  },
3100
3471
  /**
3101
3472
  *
@@ -3165,13 +3536,14 @@ export class CrawlerSchedulesApi extends BaseAPI {
3165
3536
  * @param {string} organization Organization identifier
3166
3537
  * @param {string} project Project identifier
3167
3538
  * @param {string} crawler Crawler identifier
3539
+ * @param {string} crawlerSchedule Crawler schedule identifier
3168
3540
  * @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
3169
3541
  * @param {*} [options] Override http request option.
3170
3542
  * @throws {RequiredError}
3171
3543
  * @memberof CrawlerSchedulesApi
3172
3544
  */
3173
- crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
3174
- return CrawlerSchedulesApiFp(this.configuration).crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options).then((request) => request(this.axios, this.basePath));
3545
+ crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
3546
+ return CrawlerSchedulesApiFp(this.configuration).crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options).then((request) => request(this.axios, this.basePath));
3175
3547
  }
3176
3548
  /**
3177
3549
  *
@@ -3366,24 +3738,24 @@ export const CrawlersApiAxiosParamCreator = function (configuration) {
3366
3738
  }),
3367
3739
  /**
3368
3740
  *
3369
- * @summary Update a crawler
3741
+ * @summary Run a crawler
3370
3742
  * @param {string} organization Organization identifier
3371
3743
  * @param {string} project Project identifier
3372
- * @param {string} crawler
3373
- * @param {V2CrawlerRequest} v2CrawlerRequest
3744
+ * @param {string} crawler Crawler identifier
3745
+ * @param {CrawlersRunRequest} crawlersRunRequest
3374
3746
  * @param {*} [options] Override http request option.
3375
3747
  * @throws {RequiredError}
3376
3748
  */
3377
- crawlersUpdate: (organization, project, crawler, v2CrawlerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3749
+ crawlersRun: (organization, project, crawler, crawlersRunRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3378
3750
  // verify required parameter 'organization' is not null or undefined
3379
- assertParamExists('crawlersUpdate', 'organization', organization);
3751
+ assertParamExists('crawlersRun', 'organization', organization);
3380
3752
  // verify required parameter 'project' is not null or undefined
3381
- assertParamExists('crawlersUpdate', 'project', project);
3753
+ assertParamExists('crawlersRun', 'project', project);
3382
3754
  // verify required parameter 'crawler' is not null or undefined
3383
- assertParamExists('crawlersUpdate', 'crawler', crawler);
3384
- // verify required parameter 'v2CrawlerRequest' is not null or undefined
3385
- assertParamExists('crawlersUpdate', 'v2CrawlerRequest', v2CrawlerRequest);
3386
- const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}`
3755
+ assertParamExists('crawlersRun', 'crawler', crawler);
3756
+ // verify required parameter 'crawlersRunRequest' is not null or undefined
3757
+ assertParamExists('crawlersRun', 'crawlersRunRequest', crawlersRunRequest);
3758
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/run`
3387
3759
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
3388
3760
  .replace(`{${"project"}}`, encodeURIComponent(String(project)))
3389
3761
  .replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
@@ -3393,7 +3765,7 @@ export const CrawlersApiAxiosParamCreator = function (configuration) {
3393
3765
  if (configuration) {
3394
3766
  baseOptions = configuration.baseOptions;
3395
3767
  }
3396
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3768
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
3397
3769
  const localVarHeaderParameter = {};
3398
3770
  const localVarQueryParameter = {};
3399
3771
  // authentication BearerAuth required
@@ -3403,7 +3775,52 @@ export const CrawlersApiAxiosParamCreator = function (configuration) {
3403
3775
  setSearchParams(localVarUrlObj, localVarQueryParameter);
3404
3776
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3405
3777
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3406
- localVarRequestOptions.data = serializeDataIfNeeded(v2CrawlerRequest, localVarRequestOptions, configuration);
3778
+ localVarRequestOptions.data = serializeDataIfNeeded(crawlersRunRequest, localVarRequestOptions, configuration);
3779
+ return {
3780
+ url: toPathString(localVarUrlObj),
3781
+ options: localVarRequestOptions,
3782
+ };
3783
+ }),
3784
+ /**
3785
+ *
3786
+ * @summary Update a crawler
3787
+ * @param {string} organization Organization identifier
3788
+ * @param {string} project Project identifier
3789
+ * @param {string} crawler
3790
+ * @param {V2CrawlerRequest} v2CrawlerRequest
3791
+ * @param {*} [options] Override http request option.
3792
+ * @throws {RequiredError}
3793
+ */
3794
+ crawlersUpdate: (organization, project, crawler, v2CrawlerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
3795
+ // verify required parameter 'organization' is not null or undefined
3796
+ assertParamExists('crawlersUpdate', 'organization', organization);
3797
+ // verify required parameter 'project' is not null or undefined
3798
+ assertParamExists('crawlersUpdate', 'project', project);
3799
+ // verify required parameter 'crawler' is not null or undefined
3800
+ assertParamExists('crawlersUpdate', 'crawler', crawler);
3801
+ // verify required parameter 'v2CrawlerRequest' is not null or undefined
3802
+ assertParamExists('crawlersUpdate', 'v2CrawlerRequest', v2CrawlerRequest);
3803
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}`
3804
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
3805
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
3806
+ .replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
3807
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
3808
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
3809
+ let baseOptions;
3810
+ if (configuration) {
3811
+ baseOptions = configuration.baseOptions;
3812
+ }
3813
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
3814
+ const localVarHeaderParameter = {};
3815
+ const localVarQueryParameter = {};
3816
+ // authentication BearerAuth required
3817
+ // http bearer authentication required
3818
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
3819
+ localVarHeaderParameter['Content-Type'] = 'application/json';
3820
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
3821
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
3822
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
3823
+ localVarRequestOptions.data = serializeDataIfNeeded(v2CrawlerRequest, localVarRequestOptions, configuration);
3407
3824
  return {
3408
3825
  url: toPathString(localVarUrlObj),
3409
3826
  options: localVarRequestOptions,
@@ -3489,6 +3906,25 @@ export const CrawlersApiFp = function (configuration) {
3489
3906
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3490
3907
  });
3491
3908
  },
3909
+ /**
3910
+ *
3911
+ * @summary Run a crawler
3912
+ * @param {string} organization Organization identifier
3913
+ * @param {string} project Project identifier
3914
+ * @param {string} crawler Crawler identifier
3915
+ * @param {CrawlersRunRequest} crawlersRunRequest
3916
+ * @param {*} [options] Override http request option.
3917
+ * @throws {RequiredError}
3918
+ */
3919
+ crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
3920
+ var _a, _b, _c;
3921
+ return __awaiter(this, void 0, void 0, function* () {
3922
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlersRun(organization, project, crawler, crawlersRunRequest, options);
3923
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
3924
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CrawlersApi.crawlersRun']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
3925
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
3926
+ });
3927
+ },
3492
3928
  /**
3493
3929
  *
3494
3930
  * @summary Update a crawler
@@ -3564,6 +4000,19 @@ export const CrawlersApiFactory = function (configuration, basePath, axios) {
3564
4000
  crawlersRead(organization, project, crawler, options) {
3565
4001
  return localVarFp.crawlersRead(organization, project, crawler, options).then((request) => request(axios, basePath));
3566
4002
  },
4003
+ /**
4004
+ *
4005
+ * @summary Run a crawler
4006
+ * @param {string} organization Organization identifier
4007
+ * @param {string} project Project identifier
4008
+ * @param {string} crawler Crawler identifier
4009
+ * @param {CrawlersRunRequest} crawlersRunRequest
4010
+ * @param {*} [options] Override http request option.
4011
+ * @throws {RequiredError}
4012
+ */
4013
+ crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
4014
+ return localVarFp.crawlersRun(organization, project, crawler, crawlersRunRequest, options).then((request) => request(axios, basePath));
4015
+ },
3567
4016
  /**
3568
4017
  *
3569
4018
  * @summary Update a crawler
@@ -3637,6 +4086,20 @@ export class CrawlersApi extends BaseAPI {
3637
4086
  crawlersRead(organization, project, crawler, options) {
3638
4087
  return CrawlersApiFp(this.configuration).crawlersRead(organization, project, crawler, options).then((request) => request(this.axios, this.basePath));
3639
4088
  }
4089
+ /**
4090
+ *
4091
+ * @summary Run a crawler
4092
+ * @param {string} organization Organization identifier
4093
+ * @param {string} project Project identifier
4094
+ * @param {string} crawler Crawler identifier
4095
+ * @param {CrawlersRunRequest} crawlersRunRequest
4096
+ * @param {*} [options] Override http request option.
4097
+ * @throws {RequiredError}
4098
+ * @memberof CrawlersApi
4099
+ */
4100
+ crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
4101
+ return CrawlersApiFp(this.configuration).crawlersRun(organization, project, crawler, crawlersRunRequest, options).then((request) => request(this.axios, this.basePath));
4102
+ }
3640
4103
  /**
3641
4104
  *
3642
4105
  * @summary Update a crawler
@@ -5755,114 +6218,6 @@ export const SyncToEnvironmentTypeEnum = {
5755
6218
  Database: 'database',
5756
6219
  Filesystem: 'filesystem'
5757
6220
  };
5758
- /**
5759
- * FormsApi - axios parameter creator
5760
- * @export
5761
- */
5762
- export const FormsApiAxiosParamCreator = function (configuration) {
5763
- return {
5764
- /**
5765
- * Retrieve form submissions via API.
5766
- * @summary List form submissions
5767
- * @param {string} [quantUrl]
5768
- * @param {object} [body]
5769
- * @param {*} [options] Override http request option.
5770
- * @throws {RequiredError}
5771
- */
5772
- listFormSubmissions: (quantUrl, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
5773
- const localVarPath = `/api/v1/form-submissions`;
5774
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
5775
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
5776
- let baseOptions;
5777
- if (configuration) {
5778
- baseOptions = configuration.baseOptions;
5779
- }
5780
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
5781
- const localVarHeaderParameter = {};
5782
- const localVarQueryParameter = {};
5783
- // authentication headerAuth required
5784
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
5785
- if (quantUrl !== undefined) {
5786
- localVarQueryParameter['quant_url'] = quantUrl;
5787
- }
5788
- localVarHeaderParameter['Content-Type'] = 'application/json';
5789
- setSearchParams(localVarUrlObj, localVarQueryParameter);
5790
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
5791
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
5792
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
5793
- return {
5794
- url: toPathString(localVarUrlObj),
5795
- options: localVarRequestOptions,
5796
- };
5797
- }),
5798
- };
5799
- };
5800
- /**
5801
- * FormsApi - functional programming interface
5802
- * @export
5803
- */
5804
- export const FormsApiFp = function (configuration) {
5805
- const localVarAxiosParamCreator = FormsApiAxiosParamCreator(configuration);
5806
- return {
5807
- /**
5808
- * Retrieve form submissions via API.
5809
- * @summary List form submissions
5810
- * @param {string} [quantUrl]
5811
- * @param {object} [body]
5812
- * @param {*} [options] Override http request option.
5813
- * @throws {RequiredError}
5814
- */
5815
- listFormSubmissions(quantUrl, body, options) {
5816
- var _a, _b, _c;
5817
- return __awaiter(this, void 0, void 0, function* () {
5818
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormSubmissions(quantUrl, body, options);
5819
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5820
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['FormsApi.listFormSubmissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5821
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5822
- });
5823
- },
5824
- };
5825
- };
5826
- /**
5827
- * FormsApi - factory interface
5828
- * @export
5829
- */
5830
- export const FormsApiFactory = function (configuration, basePath, axios) {
5831
- const localVarFp = FormsApiFp(configuration);
5832
- return {
5833
- /**
5834
- * Retrieve form submissions via API.
5835
- * @summary List form submissions
5836
- * @param {string} [quantUrl]
5837
- * @param {object} [body]
5838
- * @param {*} [options] Override http request option.
5839
- * @throws {RequiredError}
5840
- */
5841
- listFormSubmissions(quantUrl, body, options) {
5842
- return localVarFp.listFormSubmissions(quantUrl, body, options).then((request) => request(axios, basePath));
5843
- },
5844
- };
5845
- };
5846
- /**
5847
- * FormsApi - object-oriented interface
5848
- * @export
5849
- * @class FormsApi
5850
- * @extends {BaseAPI}
5851
- */
5852
- export class FormsApi extends BaseAPI {
5853
- /**
5854
- * Retrieve form submissions via API.
5855
- * @summary List form submissions
5856
- * @param {string} [quantUrl]
5857
- * @param {object} [body]
5858
- * @param {*} [options] Override http request option.
5859
- * @throws {RequiredError}
5860
- * @memberof FormsApi
5861
- */
5862
- listFormSubmissions(quantUrl, body, options) {
5863
- return FormsApiFp(this.configuration).listFormSubmissions(quantUrl, body, options).then((request) => request(this.axios, this.basePath));
5864
- }
5865
- }
5866
6221
  /**
5867
6222
  * HeadersApi - axios parameter creator
5868
6223
  * @export
@@ -6326,10 +6681,11 @@ export const KVApiAxiosParamCreator = function (configuration) {
6326
6681
  * @param {string} [cursor] Cursor for pagination
6327
6682
  * @param {number} [limit] Number of items to return
6328
6683
  * @param {string} [search] Search filter for keys
6684
+ * @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \&#39;[ENCRYPTED]\&#39; for security.
6329
6685
  * @param {*} [options] Override http request option.
6330
6686
  * @throws {RequiredError}
6331
6687
  */
6332
- kVItemsList: (organization, project, storeId, cursor, limit, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
6688
+ kVItemsList: (organization, project, storeId, cursor, limit, search, includeValues, options = {}) => __awaiter(this, void 0, void 0, function* () {
6333
6689
  // verify required parameter 'organization' is not null or undefined
6334
6690
  assertParamExists('kVItemsList', 'organization', organization);
6335
6691
  // verify required parameter 'project' is not null or undefined
@@ -6361,6 +6717,9 @@ export const KVApiAxiosParamCreator = function (configuration) {
6361
6717
  if (search !== undefined) {
6362
6718
  localVarQueryParameter['search'] = search;
6363
6719
  }
6720
+ if (includeValues !== undefined) {
6721
+ localVarQueryParameter['include_values'] = includeValues;
6722
+ }
6364
6723
  setSearchParams(localVarUrlObj, localVarQueryParameter);
6365
6724
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
6366
6725
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -6370,7 +6729,7 @@ export const KVApiAxiosParamCreator = function (configuration) {
6370
6729
  };
6371
6730
  }),
6372
6731
  /**
6373
- *
6732
+ * Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as \'[ENCRYPTED]\' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction.
6374
6733
  * @summary Get an item from a kv store
6375
6734
  * @param {string} organization
6376
6735
  * @param {string} project
@@ -6630,20 +6989,21 @@ export const KVApiFp = function (configuration) {
6630
6989
  * @param {string} [cursor] Cursor for pagination
6631
6990
  * @param {number} [limit] Number of items to return
6632
6991
  * @param {string} [search] Search filter for keys
6992
+ * @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \&#39;[ENCRYPTED]\&#39; for security.
6633
6993
  * @param {*} [options] Override http request option.
6634
6994
  * @throws {RequiredError}
6635
6995
  */
6636
- kVItemsList(organization, project, storeId, cursor, limit, search, options) {
6996
+ kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
6637
6997
  var _a, _b, _c;
6638
6998
  return __awaiter(this, void 0, void 0, function* () {
6639
- const localVarAxiosArgs = yield localVarAxiosParamCreator.kVItemsList(organization, project, storeId, cursor, limit, search, options);
6999
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options);
6640
7000
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
6641
7001
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['KVApi.kVItemsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
6642
7002
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
6643
7003
  });
6644
7004
  },
6645
7005
  /**
6646
- *
7006
+ * Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as \'[ENCRYPTED]\' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction.
6647
7007
  * @summary Get an item from a kv store
6648
7008
  * @param {string} organization
6649
7009
  * @param {string} project
@@ -6784,14 +7144,15 @@ export const KVApiFactory = function (configuration, basePath, axios) {
6784
7144
  * @param {string} [cursor] Cursor for pagination
6785
7145
  * @param {number} [limit] Number of items to return
6786
7146
  * @param {string} [search] Search filter for keys
7147
+ * @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \&#39;[ENCRYPTED]\&#39; for security.
6787
7148
  * @param {*} [options] Override http request option.
6788
7149
  * @throws {RequiredError}
6789
7150
  */
6790
- kVItemsList(organization, project, storeId, cursor, limit, search, options) {
6791
- return localVarFp.kVItemsList(organization, project, storeId, cursor, limit, search, options).then((request) => request(axios, basePath));
7151
+ kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
7152
+ return localVarFp.kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options).then((request) => request(axios, basePath));
6792
7153
  },
6793
7154
  /**
6794
- *
7155
+ * Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as \'[ENCRYPTED]\' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction.
6795
7156
  * @summary Get an item from a kv store
6796
7157
  * @param {string} organization
6797
7158
  * @param {string} project
@@ -6912,15 +7273,16 @@ export class KVApi extends BaseAPI {
6912
7273
  * @param {string} [cursor] Cursor for pagination
6913
7274
  * @param {number} [limit] Number of items to return
6914
7275
  * @param {string} [search] Search filter for keys
7276
+ * @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \&#39;[ENCRYPTED]\&#39; for security.
6915
7277
  * @param {*} [options] Override http request option.
6916
7278
  * @throws {RequiredError}
6917
7279
  * @memberof KVApi
6918
7280
  */
6919
- kVItemsList(organization, project, storeId, cursor, limit, search, options) {
6920
- return KVApiFp(this.configuration).kVItemsList(organization, project, storeId, cursor, limit, search, options).then((request) => request(this.axios, this.basePath));
7281
+ kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
7282
+ return KVApiFp(this.configuration).kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options).then((request) => request(this.axios, this.basePath));
6921
7283
  }
6922
7284
  /**
6923
- *
7285
+ * Retrieves an item from the KV store. **Security Note:** If the item was stored as a secret (secret=true), the value will be redacted and returned as \'[ENCRYPTED]\' for security. Secrets should be accessed directly via the Quant Cloud platform KVStore abstraction.
6924
7286
  * @summary Get an item from a kv store
6925
7287
  * @param {string} organization
6926
7288
  * @param {string} project
@@ -6975,22 +7337,19 @@ export class KVApi extends BaseAPI {
6975
7337
  }
6976
7338
  }
6977
7339
  /**
6978
- * MetricsApi - axios parameter creator
7340
+ * OrganizationsApi - axios parameter creator
6979
7341
  * @export
6980
7342
  */
6981
- export const MetricsApiAxiosParamCreator = function (configuration) {
7343
+ export const OrganizationsApiAxiosParamCreator = function (configuration) {
6982
7344
  return {
6983
7345
  /**
6984
- * Get metric series data.
6985
- * @summary Get metric series
6986
- * @param {GetMetricSeriesTypeEnum} [type]
6987
- * @param {string} [metric]
6988
- * @param {number} [domain]
7346
+ *
7347
+ * @summary Retrieve all organizations
6989
7348
  * @param {*} [options] Override http request option.
6990
7349
  * @throws {RequiredError}
6991
7350
  */
6992
- getMetricSeries: (type, metric, domain, options = {}) => __awaiter(this, void 0, void 0, function* () {
6993
- const localVarPath = `/api/v1/metrics/series`;
7351
+ organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7352
+ const localVarPath = `/api/v2/organizations`;
6994
7353
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
6995
7354
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
6996
7355
  let baseOptions;
@@ -7000,17 +7359,9 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
7000
7359
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7001
7360
  const localVarHeaderParameter = {};
7002
7361
  const localVarQueryParameter = {};
7003
- // authentication headerAuth required
7004
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
7005
- if (type !== undefined) {
7006
- localVarQueryParameter['type'] = type;
7007
- }
7008
- if (metric !== undefined) {
7009
- localVarQueryParameter['metric'] = metric;
7010
- }
7011
- if (domain !== undefined) {
7012
- localVarQueryParameter['domain'] = domain;
7013
- }
7362
+ // authentication BearerAuth required
7363
+ // http bearer authentication required
7364
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7014
7365
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7015
7366
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7016
7367
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7020,16 +7371,17 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
7020
7371
  };
7021
7372
  }),
7022
7373
  /**
7023
- * Get metrics data.
7024
- * @summary Get metrics
7025
- * @param {number} [domain]
7026
- * @param {GetMetricsTimeframeEnum} [timeframe]
7027
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7374
+ *
7375
+ * @summary Get details of a single organization
7376
+ * @param {string} organization
7028
7377
  * @param {*} [options] Override http request option.
7029
7378
  * @throws {RequiredError}
7030
7379
  */
7031
- getMetrics: (domain, timeframe, metrics, options = {}) => __awaiter(this, void 0, void 0, function* () {
7032
- const localVarPath = `/api/v1/metrics`;
7380
+ organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
7381
+ // verify required parameter 'organization' is not null or undefined
7382
+ assertParamExists('organizationsRead', 'organization', organization);
7383
+ const localVarPath = `/api/v2/organizations/{organization}`
7384
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7033
7385
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7034
7386
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7035
7387
  let baseOptions;
@@ -7039,19 +7391,9 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
7039
7391
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7040
7392
  const localVarHeaderParameter = {};
7041
7393
  const localVarQueryParameter = {};
7042
- // authentication headerAuth required
7043
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
7044
- if (domain !== undefined) {
7045
- localVarQueryParameter['domain'] = domain;
7046
- }
7047
- if (timeframe !== undefined) {
7048
- localVarQueryParameter['timeframe'] = timeframe;
7049
- }
7050
- if (metrics !== undefined) {
7051
- for (const [key, value] of Object.entries(metrics)) {
7052
- localVarQueryParameter[key] = value;
7053
- }
7054
- }
7394
+ // authentication BearerAuth required
7395
+ // http bearer authentication required
7396
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7055
7397
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7056
7398
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7057
7399
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -7063,162 +7405,140 @@ export const MetricsApiAxiosParamCreator = function (configuration) {
7063
7405
  };
7064
7406
  };
7065
7407
  /**
7066
- * MetricsApi - functional programming interface
7408
+ * OrganizationsApi - functional programming interface
7067
7409
  * @export
7068
7410
  */
7069
- export const MetricsApiFp = function (configuration) {
7070
- const localVarAxiosParamCreator = MetricsApiAxiosParamCreator(configuration);
7411
+ export const OrganizationsApiFp = function (configuration) {
7412
+ const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
7071
7413
  return {
7072
7414
  /**
7073
- * Get metric series data.
7074
- * @summary Get metric series
7075
- * @param {GetMetricSeriesTypeEnum} [type]
7076
- * @param {string} [metric]
7077
- * @param {number} [domain]
7415
+ *
7416
+ * @summary Retrieve all organizations
7078
7417
  * @param {*} [options] Override http request option.
7079
7418
  * @throws {RequiredError}
7080
7419
  */
7081
- getMetricSeries(type, metric, domain, options) {
7420
+ organizationsList(options) {
7082
7421
  var _a, _b, _c;
7083
7422
  return __awaiter(this, void 0, void 0, function* () {
7084
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetricSeries(type, metric, domain, options);
7423
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
7085
7424
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7086
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MetricsApi.getMetricSeries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7425
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7087
7426
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7088
7427
  });
7089
7428
  },
7090
7429
  /**
7091
- * Get metrics data.
7092
- * @summary Get metrics
7093
- * @param {number} [domain]
7094
- * @param {GetMetricsTimeframeEnum} [timeframe]
7095
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7430
+ *
7431
+ * @summary Get details of a single organization
7432
+ * @param {string} organization
7096
7433
  * @param {*} [options] Override http request option.
7097
7434
  * @throws {RequiredError}
7098
7435
  */
7099
- getMetrics(domain, timeframe, metrics, options) {
7436
+ organizationsRead(organization, options) {
7100
7437
  var _a, _b, _c;
7101
7438
  return __awaiter(this, void 0, void 0, function* () {
7102
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getMetrics(domain, timeframe, metrics, options);
7439
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
7103
7440
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7104
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['MetricsApi.getMetrics']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7441
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7105
7442
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7106
7443
  });
7107
7444
  },
7108
7445
  };
7109
7446
  };
7110
7447
  /**
7111
- * MetricsApi - factory interface
7448
+ * OrganizationsApi - factory interface
7112
7449
  * @export
7113
7450
  */
7114
- export const MetricsApiFactory = function (configuration, basePath, axios) {
7115
- const localVarFp = MetricsApiFp(configuration);
7451
+ export const OrganizationsApiFactory = function (configuration, basePath, axios) {
7452
+ const localVarFp = OrganizationsApiFp(configuration);
7116
7453
  return {
7117
7454
  /**
7118
- * Get metric series data.
7119
- * @summary Get metric series
7120
- * @param {GetMetricSeriesTypeEnum} [type]
7121
- * @param {string} [metric]
7122
- * @param {number} [domain]
7455
+ *
7456
+ * @summary Retrieve all organizations
7123
7457
  * @param {*} [options] Override http request option.
7124
7458
  * @throws {RequiredError}
7125
7459
  */
7126
- getMetricSeries(type, metric, domain, options) {
7127
- return localVarFp.getMetricSeries(type, metric, domain, options).then((request) => request(axios, basePath));
7460
+ organizationsList(options) {
7461
+ return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
7128
7462
  },
7129
7463
  /**
7130
- * Get metrics data.
7131
- * @summary Get metrics
7132
- * @param {number} [domain]
7133
- * @param {GetMetricsTimeframeEnum} [timeframe]
7134
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7464
+ *
7465
+ * @summary Get details of a single organization
7466
+ * @param {string} organization
7135
7467
  * @param {*} [options] Override http request option.
7136
7468
  * @throws {RequiredError}
7137
7469
  */
7138
- getMetrics(domain, timeframe, metrics, options) {
7139
- return localVarFp.getMetrics(domain, timeframe, metrics, options).then((request) => request(axios, basePath));
7470
+ organizationsRead(organization, options) {
7471
+ return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
7140
7472
  },
7141
7473
  };
7142
7474
  };
7143
7475
  /**
7144
- * MetricsApi - object-oriented interface
7476
+ * OrganizationsApi - object-oriented interface
7145
7477
  * @export
7146
- * @class MetricsApi
7478
+ * @class OrganizationsApi
7147
7479
  * @extends {BaseAPI}
7148
7480
  */
7149
- export class MetricsApi extends BaseAPI {
7481
+ export class OrganizationsApi extends BaseAPI {
7150
7482
  /**
7151
- * Get metric series data.
7152
- * @summary Get metric series
7153
- * @param {GetMetricSeriesTypeEnum} [type]
7154
- * @param {string} [metric]
7155
- * @param {number} [domain]
7483
+ *
7484
+ * @summary Retrieve all organizations
7156
7485
  * @param {*} [options] Override http request option.
7157
7486
  * @throws {RequiredError}
7158
- * @memberof MetricsApi
7487
+ * @memberof OrganizationsApi
7159
7488
  */
7160
- getMetricSeries(type, metric, domain, options) {
7161
- return MetricsApiFp(this.configuration).getMetricSeries(type, metric, domain, options).then((request) => request(this.axios, this.basePath));
7489
+ organizationsList(options) {
7490
+ return OrganizationsApiFp(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
7162
7491
  }
7163
7492
  /**
7164
- * Get metrics data.
7165
- * @summary Get metrics
7166
- * @param {number} [domain]
7167
- * @param {GetMetricsTimeframeEnum} [timeframe]
7168
- * @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
7493
+ *
7494
+ * @summary Get details of a single organization
7495
+ * @param {string} organization
7169
7496
  * @param {*} [options] Override http request option.
7170
7497
  * @throws {RequiredError}
7171
- * @memberof MetricsApi
7498
+ * @memberof OrganizationsApi
7172
7499
  */
7173
- getMetrics(domain, timeframe, metrics, options) {
7174
- return MetricsApiFp(this.configuration).getMetrics(domain, timeframe, metrics, options).then((request) => request(this.axios, this.basePath));
7500
+ organizationsRead(organization, options) {
7501
+ return OrganizationsApiFp(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
7175
7502
  }
7176
7503
  }
7177
7504
  /**
7505
+ * ProjectsApi - axios parameter creator
7178
7506
  * @export
7179
7507
  */
7180
- export const GetMetricSeriesTypeEnum = {
7181
- Minute: 'minute',
7182
- Month: 'month',
7183
- Year: 'year'
7184
- };
7185
- /**
7186
- * @export
7187
- */
7188
- export const GetMetricsTimeframeEnum = {
7189
- Hour: 'hour',
7190
- Month: 'month',
7191
- Year: 'year'
7192
- };
7193
- /**
7194
- * OrganizationsApi - axios parameter creator
7195
- * @export
7196
- */
7197
- export const OrganizationsApiAxiosParamCreator = function (configuration) {
7508
+ export const ProjectsApiAxiosParamCreator = function (configuration) {
7198
7509
  return {
7199
7510
  /**
7200
7511
  *
7201
- * @summary Retrieve all organizations
7512
+ * @summary Create a new project
7513
+ * @param {string} organization
7514
+ * @param {V2ProjectRequest} v2ProjectRequest
7202
7515
  * @param {*} [options] Override http request option.
7203
7516
  * @throws {RequiredError}
7204
7517
  */
7205
- organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
7206
- const localVarPath = `/api/v2/organizations`;
7518
+ projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
7519
+ // verify required parameter 'organization' is not null or undefined
7520
+ assertParamExists('projectsCreate', 'organization', organization);
7521
+ // verify required parameter 'v2ProjectRequest' is not null or undefined
7522
+ assertParamExists('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
7523
+ const localVarPath = `/api/v2/organizations/{organization}/projects`
7524
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7207
7525
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
7208
7526
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7209
7527
  let baseOptions;
7210
7528
  if (configuration) {
7211
7529
  baseOptions = configuration.baseOptions;
7212
7530
  }
7213
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7531
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7214
7532
  const localVarHeaderParameter = {};
7215
7533
  const localVarQueryParameter = {};
7216
7534
  // authentication BearerAuth required
7217
7535
  // http bearer authentication required
7218
7536
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7537
+ localVarHeaderParameter['Content-Type'] = 'application/json';
7219
7538
  setSearchParams(localVarUrlObj, localVarQueryParameter);
7220
7539
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7221
7540
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7541
+ localVarRequestOptions.data = serializeDataIfNeeded(v2ProjectRequest, localVarRequestOptions, configuration);
7222
7542
  return {
7223
7543
  url: toPathString(localVarUrlObj),
7224
7544
  options: localVarRequestOptions,
@@ -7226,187 +7546,13 @@ export const OrganizationsApiAxiosParamCreator = function (configuration) {
7226
7546
  }),
7227
7547
  /**
7228
7548
  *
7229
- * @summary Get details of a single organization
7549
+ * @summary Delete a project
7230
7550
  * @param {string} organization
7551
+ * @param {string} project
7231
7552
  * @param {*} [options] Override http request option.
7232
7553
  * @throws {RequiredError}
7233
7554
  */
7234
- organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
7235
- // verify required parameter 'organization' is not null or undefined
7236
- assertParamExists('organizationsRead', 'organization', organization);
7237
- const localVarPath = `/api/v2/organizations/{organization}`
7238
- .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7239
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7240
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7241
- let baseOptions;
7242
- if (configuration) {
7243
- baseOptions = configuration.baseOptions;
7244
- }
7245
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
7246
- const localVarHeaderParameter = {};
7247
- const localVarQueryParameter = {};
7248
- // authentication BearerAuth required
7249
- // http bearer authentication required
7250
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7251
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7252
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7253
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7254
- return {
7255
- url: toPathString(localVarUrlObj),
7256
- options: localVarRequestOptions,
7257
- };
7258
- }),
7259
- };
7260
- };
7261
- /**
7262
- * OrganizationsApi - functional programming interface
7263
- * @export
7264
- */
7265
- export const OrganizationsApiFp = function (configuration) {
7266
- const localVarAxiosParamCreator = OrganizationsApiAxiosParamCreator(configuration);
7267
- return {
7268
- /**
7269
- *
7270
- * @summary Retrieve all organizations
7271
- * @param {*} [options] Override http request option.
7272
- * @throws {RequiredError}
7273
- */
7274
- organizationsList(options) {
7275
- var _a, _b, _c;
7276
- return __awaiter(this, void 0, void 0, function* () {
7277
- const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
7278
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7279
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7280
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7281
- });
7282
- },
7283
- /**
7284
- *
7285
- * @summary Get details of a single organization
7286
- * @param {string} organization
7287
- * @param {*} [options] Override http request option.
7288
- * @throws {RequiredError}
7289
- */
7290
- organizationsRead(organization, options) {
7291
- var _a, _b, _c;
7292
- return __awaiter(this, void 0, void 0, function* () {
7293
- const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
7294
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
7295
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
7296
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
7297
- });
7298
- },
7299
- };
7300
- };
7301
- /**
7302
- * OrganizationsApi - factory interface
7303
- * @export
7304
- */
7305
- export const OrganizationsApiFactory = function (configuration, basePath, axios) {
7306
- const localVarFp = OrganizationsApiFp(configuration);
7307
- return {
7308
- /**
7309
- *
7310
- * @summary Retrieve all organizations
7311
- * @param {*} [options] Override http request option.
7312
- * @throws {RequiredError}
7313
- */
7314
- organizationsList(options) {
7315
- return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
7316
- },
7317
- /**
7318
- *
7319
- * @summary Get details of a single organization
7320
- * @param {string} organization
7321
- * @param {*} [options] Override http request option.
7322
- * @throws {RequiredError}
7323
- */
7324
- organizationsRead(organization, options) {
7325
- return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
7326
- },
7327
- };
7328
- };
7329
- /**
7330
- * OrganizationsApi - object-oriented interface
7331
- * @export
7332
- * @class OrganizationsApi
7333
- * @extends {BaseAPI}
7334
- */
7335
- export class OrganizationsApi extends BaseAPI {
7336
- /**
7337
- *
7338
- * @summary Retrieve all organizations
7339
- * @param {*} [options] Override http request option.
7340
- * @throws {RequiredError}
7341
- * @memberof OrganizationsApi
7342
- */
7343
- organizationsList(options) {
7344
- return OrganizationsApiFp(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
7345
- }
7346
- /**
7347
- *
7348
- * @summary Get details of a single organization
7349
- * @param {string} organization
7350
- * @param {*} [options] Override http request option.
7351
- * @throws {RequiredError}
7352
- * @memberof OrganizationsApi
7353
- */
7354
- organizationsRead(organization, options) {
7355
- return OrganizationsApiFp(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
7356
- }
7357
- }
7358
- /**
7359
- * ProjectsApi - axios parameter creator
7360
- * @export
7361
- */
7362
- export const ProjectsApiAxiosParamCreator = function (configuration) {
7363
- return {
7364
- /**
7365
- *
7366
- * @summary Create a new project
7367
- * @param {string} organization
7368
- * @param {V2ProjectRequest} v2ProjectRequest
7369
- * @param {*} [options] Override http request option.
7370
- * @throws {RequiredError}
7371
- */
7372
- projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
7373
- // verify required parameter 'organization' is not null or undefined
7374
- assertParamExists('projectsCreate', 'organization', organization);
7375
- // verify required parameter 'v2ProjectRequest' is not null or undefined
7376
- assertParamExists('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
7377
- const localVarPath = `/api/v2/organizations/{organization}/projects`
7378
- .replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
7379
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
7380
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
7381
- let baseOptions;
7382
- if (configuration) {
7383
- baseOptions = configuration.baseOptions;
7384
- }
7385
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
7386
- const localVarHeaderParameter = {};
7387
- const localVarQueryParameter = {};
7388
- // authentication BearerAuth required
7389
- // http bearer authentication required
7390
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
7391
- localVarHeaderParameter['Content-Type'] = 'application/json';
7392
- setSearchParams(localVarUrlObj, localVarQueryParameter);
7393
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
7394
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
7395
- localVarRequestOptions.data = serializeDataIfNeeded(v2ProjectRequest, localVarRequestOptions, configuration);
7396
- return {
7397
- url: toPathString(localVarUrlObj),
7398
- options: localVarRequestOptions,
7399
- };
7400
- }),
7401
- /**
7402
- *
7403
- * @summary Delete a project
7404
- * @param {string} organization
7405
- * @param {string} project
7406
- * @param {*} [options] Override http request option.
7407
- * @throws {RequiredError}
7408
- */
7409
- projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
7555
+ projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
7410
7556
  // verify required parameter 'organization' is not null or undefined
7411
7557
  assertParamExists('projectsDelete', 'organization', organization);
7412
7558
  // verify required parameter 'project' is not null or undefined
@@ -12101,38 +12247,51 @@ export class ScalingPolicyApi extends BaseAPI {
12101
12247
  }
12102
12248
  }
12103
12249
  /**
12104
- * SearchApi - axios parameter creator
12250
+ * VariablesApi - axios parameter creator
12105
12251
  * @export
12106
12252
  */
12107
- export const SearchApiAxiosParamCreator = function (configuration) {
12253
+ export const VariablesApiAxiosParamCreator = function (configuration) {
12108
12254
  return {
12109
12255
  /**
12110
12256
  *
12111
- * @summary Create a new search index item
12112
- * @param {CreateSearchItemRequest} createSearchItemRequest
12257
+ * @summary Bulk set/replace environment variables
12258
+ * @param {string} apiOrganisation The organisation ID
12259
+ * @param {string} apiApplication The application ID
12260
+ * @param {string} apiEnvironment The environment ID
12261
+ * @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
12113
12262
  * @param {*} [options] Override http request option.
12114
12263
  * @throws {RequiredError}
12115
12264
  */
12116
- createSearchItem: (createSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12117
- // verify required parameter 'createSearchItemRequest' is not null or undefined
12118
- assertParamExists('createSearchItem', 'createSearchItemRequest', createSearchItemRequest);
12119
- const localVarPath = `/api/v1/search/item`;
12265
+ bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12266
+ // verify required parameter 'apiOrganisation' is not null or undefined
12267
+ assertParamExists('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12268
+ // verify required parameter 'apiApplication' is not null or undefined
12269
+ assertParamExists('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
12270
+ // verify required parameter 'apiEnvironment' is not null or undefined
12271
+ assertParamExists('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12272
+ // verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
12273
+ assertParamExists('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
12274
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12275
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12276
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12277
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12120
12278
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12121
12279
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12122
12280
  let baseOptions;
12123
12281
  if (configuration) {
12124
12282
  baseOptions = configuration.baseOptions;
12125
12283
  }
12126
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12284
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12127
12285
  const localVarHeaderParameter = {};
12128
12286
  const localVarQueryParameter = {};
12129
- // authentication headerAuth required
12130
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12287
+ // authentication BearerAuth required
12288
+ // http bearer authentication required
12289
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12131
12290
  localVarHeaderParameter['Content-Type'] = 'application/json';
12132
12291
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12133
12292
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12134
12293
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12135
- localVarRequestOptions.data = serializeDataIfNeeded(createSearchItemRequest, localVarRequestOptions, configuration);
12294
+ localVarRequestOptions.data = serializeDataIfNeeded(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
12136
12295
  return {
12137
12296
  url: toPathString(localVarUrlObj),
12138
12297
  options: localVarRequestOptions,
@@ -12140,18 +12299,28 @@ export const SearchApiAxiosParamCreator = function (configuration) {
12140
12299
  }),
12141
12300
  /**
12142
12301
  *
12143
- * @summary Delete a search index item
12144
- * @param {number} project
12145
- * @param {string} objectId
12302
+ * @summary Delete a variable
12303
+ * @param {string} apiOrganisation The organisation ID
12304
+ * @param {string} apiApplication The application ID
12305
+ * @param {string} apiEnvironment The environment ID
12306
+ * @param {string} apiVariable The variable key
12146
12307
  * @param {*} [options] Override http request option.
12147
12308
  * @throws {RequiredError}
12148
12309
  */
12149
- deleteSearchItem: (project, objectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
12150
- // verify required parameter 'project' is not null or undefined
12151
- assertParamExists('deleteSearchItem', 'project', project);
12152
- // verify required parameter 'objectId' is not null or undefined
12153
- assertParamExists('deleteSearchItem', 'objectId', objectId);
12154
- const localVarPath = `/api/v1/search/item`;
12310
+ deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
12311
+ // verify required parameter 'apiOrganisation' is not null or undefined
12312
+ assertParamExists('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
12313
+ // verify required parameter 'apiApplication' is not null or undefined
12314
+ assertParamExists('deleteEnvironmentVariable', 'apiApplication', apiApplication);
12315
+ // verify required parameter 'apiEnvironment' is not null or undefined
12316
+ assertParamExists('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
12317
+ // verify required parameter 'apiVariable' is not null or undefined
12318
+ assertParamExists('deleteEnvironmentVariable', 'apiVariable', apiVariable);
12319
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
12320
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12321
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12322
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
12323
+ .replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
12155
12324
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12156
12325
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12157
12326
  let baseOptions;
@@ -12161,14 +12330,9 @@ export const SearchApiAxiosParamCreator = function (configuration) {
12161
12330
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12162
12331
  const localVarHeaderParameter = {};
12163
12332
  const localVarQueryParameter = {};
12164
- // authentication headerAuth required
12165
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12166
- if (project !== undefined) {
12167
- localVarQueryParameter['project'] = project;
12168
- }
12169
- if (objectId !== undefined) {
12170
- localVarQueryParameter['objectId'] = objectId;
12171
- }
12333
+ // authentication BearerAuth required
12334
+ // http bearer authentication required
12335
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12172
12336
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12173
12337
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12174
12338
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12179,18 +12343,24 @@ export const SearchApiAxiosParamCreator = function (configuration) {
12179
12343
  }),
12180
12344
  /**
12181
12345
  *
12182
- * @summary Get a single search index item
12183
- * @param {number} project
12184
- * @param {string} objectId
12346
+ * @summary Get all variables for an environment
12347
+ * @param {string} apiOrganisation The organisation ID
12348
+ * @param {string} apiApplication The application ID
12349
+ * @param {string} apiEnvironment The environment ID
12185
12350
  * @param {*} [options] Override http request option.
12186
12351
  * @throws {RequiredError}
12187
12352
  */
12188
- getSearchItem: (project, objectId, options = {}) => __awaiter(this, void 0, void 0, function* () {
12189
- // verify required parameter 'project' is not null or undefined
12190
- assertParamExists('getSearchItem', 'project', project);
12191
- // verify required parameter 'objectId' is not null or undefined
12192
- assertParamExists('getSearchItem', 'objectId', objectId);
12193
- const localVarPath = `/api/v1/search/item`;
12353
+ listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
12354
+ // verify required parameter 'apiOrganisation' is not null or undefined
12355
+ assertParamExists('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12356
+ // verify required parameter 'apiApplication' is not null or undefined
12357
+ assertParamExists('listEnvironmentVariables', 'apiApplication', apiApplication);
12358
+ // verify required parameter 'apiEnvironment' is not null or undefined
12359
+ assertParamExists('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12360
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12361
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12362
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12363
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12194
12364
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
12195
12365
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12196
12366
  let baseOptions;
@@ -12200,14 +12370,9 @@ export const SearchApiAxiosParamCreator = function (configuration) {
12200
12370
  const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12201
12371
  const localVarHeaderParameter = {};
12202
12372
  const localVarQueryParameter = {};
12203
- // authentication headerAuth required
12204
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12205
- if (project !== undefined) {
12206
- localVarQueryParameter['project'] = project;
12207
- }
12208
- if (objectId !== undefined) {
12209
- localVarQueryParameter['objectId'] = objectId;
12210
- }
12373
+ // authentication BearerAuth required
12374
+ // http bearer authentication required
12375
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12211
12376
  setSearchParams(localVarUrlObj, localVarQueryParameter);
12212
12377
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12213
12378
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -12218,808 +12383,12 @@ export const SearchApiAxiosParamCreator = function (configuration) {
12218
12383
  }),
12219
12384
  /**
12220
12385
  *
12221
- * @summary List search index items
12222
- * @param {number} project
12223
- * @param {number} [page]
12224
- * @param {number} [hitsPerPage]
12225
- * @param {string} [query]
12226
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12227
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12228
- * @param {*} [options] Override http request option.
12229
- * @throws {RequiredError}
12230
- */
12231
- getSearchItems: (project, page, hitsPerPage, query, filters, facets, options = {}) => __awaiter(this, void 0, void 0, function* () {
12232
- // verify required parameter 'project' is not null or undefined
12233
- assertParamExists('getSearchItems', 'project', project);
12234
- const localVarPath = `/api/v1/search/items`;
12235
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12236
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12237
- let baseOptions;
12238
- if (configuration) {
12239
- baseOptions = configuration.baseOptions;
12240
- }
12241
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
12242
- const localVarHeaderParameter = {};
12243
- const localVarQueryParameter = {};
12244
- // authentication headerAuth required
12245
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12246
- if (project !== undefined) {
12247
- localVarQueryParameter['project'] = project;
12248
- }
12249
- if (page !== undefined) {
12250
- localVarQueryParameter['page'] = page;
12251
- }
12252
- if (hitsPerPage !== undefined) {
12253
- localVarQueryParameter['hitsPerPage'] = hitsPerPage;
12254
- }
12255
- if (query !== undefined) {
12256
- localVarQueryParameter['query'] = query;
12257
- }
12258
- if (filters !== undefined) {
12259
- for (const [key, value] of Object.entries(filters)) {
12260
- localVarQueryParameter[key] = value;
12261
- }
12262
- }
12263
- if (facets !== undefined) {
12264
- for (const [key, value] of Object.entries(facets)) {
12265
- localVarQueryParameter[key] = value;
12266
- }
12267
- }
12268
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12269
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12270
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12271
- return {
12272
- url: toPathString(localVarUrlObj),
12273
- options: localVarRequestOptions,
12274
- };
12275
- }),
12276
- /**
12277
- *
12278
- * @summary Test search extractors
12279
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12280
- * @param {*} [options] Override http request option.
12281
- * @throws {RequiredError}
12282
- */
12283
- testSearchExtractors: (testSearchExtractorsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12284
- // verify required parameter 'testSearchExtractorsRequest' is not null or undefined
12285
- assertParamExists('testSearchExtractors', 'testSearchExtractorsRequest', testSearchExtractorsRequest);
12286
- const localVarPath = `/api/v1/search/test-extractors`;
12287
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12288
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12289
- let baseOptions;
12290
- if (configuration) {
12291
- baseOptions = configuration.baseOptions;
12292
- }
12293
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12294
- const localVarHeaderParameter = {};
12295
- const localVarQueryParameter = {};
12296
- // authentication headerAuth required
12297
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12298
- localVarHeaderParameter['Content-Type'] = 'application/json';
12299
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12300
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12301
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12302
- localVarRequestOptions.data = serializeDataIfNeeded(testSearchExtractorsRequest, localVarRequestOptions, configuration);
12303
- return {
12304
- url: toPathString(localVarUrlObj),
12305
- options: localVarRequestOptions,
12306
- };
12307
- }),
12308
- /**
12309
- *
12310
- * @summary Update an existing search index item
12311
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12312
- * @param {*} [options] Override http request option.
12313
- * @throws {RequiredError}
12314
- */
12315
- updateSearchItem: (updateSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12316
- // verify required parameter 'updateSearchItemRequest' is not null or undefined
12317
- assertParamExists('updateSearchItem', 'updateSearchItemRequest', updateSearchItemRequest);
12318
- const localVarPath = `/api/v1/search/item`;
12319
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12320
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12321
- let baseOptions;
12322
- if (configuration) {
12323
- baseOptions = configuration.baseOptions;
12324
- }
12325
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12326
- const localVarHeaderParameter = {};
12327
- const localVarQueryParameter = {};
12328
- // authentication headerAuth required
12329
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12330
- localVarHeaderParameter['Content-Type'] = 'application/json';
12331
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12332
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12333
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12334
- localVarRequestOptions.data = serializeDataIfNeeded(updateSearchItemRequest, localVarRequestOptions, configuration);
12335
- return {
12336
- url: toPathString(localVarUrlObj),
12337
- options: localVarRequestOptions,
12338
- };
12339
- }),
12340
- };
12341
- };
12342
- /**
12343
- * SearchApi - functional programming interface
12344
- * @export
12345
- */
12346
- export const SearchApiFp = function (configuration) {
12347
- const localVarAxiosParamCreator = SearchApiAxiosParamCreator(configuration);
12348
- return {
12349
- /**
12350
- *
12351
- * @summary Create a new search index item
12352
- * @param {CreateSearchItemRequest} createSearchItemRequest
12353
- * @param {*} [options] Override http request option.
12354
- * @throws {RequiredError}
12355
- */
12356
- createSearchItem(createSearchItemRequest, options) {
12357
- var _a, _b, _c;
12358
- return __awaiter(this, void 0, void 0, function* () {
12359
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchItem(createSearchItemRequest, options);
12360
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12361
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.createSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12362
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12363
- });
12364
- },
12365
- /**
12366
- *
12367
- * @summary Delete a search index item
12368
- * @param {number} project
12369
- * @param {string} objectId
12370
- * @param {*} [options] Override http request option.
12371
- * @throws {RequiredError}
12372
- */
12373
- deleteSearchItem(project, objectId, options) {
12374
- var _a, _b, _c;
12375
- return __awaiter(this, void 0, void 0, function* () {
12376
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchItem(project, objectId, options);
12377
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12378
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.deleteSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12379
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12380
- });
12381
- },
12382
- /**
12383
- *
12384
- * @summary Get a single search index item
12385
- * @param {number} project
12386
- * @param {string} objectId
12387
- * @param {*} [options] Override http request option.
12388
- * @throws {RequiredError}
12389
- */
12390
- getSearchItem(project, objectId, options) {
12391
- var _a, _b, _c;
12392
- return __awaiter(this, void 0, void 0, function* () {
12393
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItem(project, objectId, options);
12394
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12395
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12396
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12397
- });
12398
- },
12399
- /**
12400
- *
12401
- * @summary List search index items
12402
- * @param {number} project
12403
- * @param {number} [page]
12404
- * @param {number} [hitsPerPage]
12405
- * @param {string} [query]
12406
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12407
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12408
- * @param {*} [options] Override http request option.
12409
- * @throws {RequiredError}
12410
- */
12411
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12412
- var _a, _b, _c;
12413
- return __awaiter(this, void 0, void 0, function* () {
12414
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItems(project, page, hitsPerPage, query, filters, facets, options);
12415
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12416
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.getSearchItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12417
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12418
- });
12419
- },
12420
- /**
12421
- *
12422
- * @summary Test search extractors
12423
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12424
- * @param {*} [options] Override http request option.
12425
- * @throws {RequiredError}
12426
- */
12427
- testSearchExtractors(testSearchExtractorsRequest, options) {
12428
- var _a, _b, _c;
12429
- return __awaiter(this, void 0, void 0, function* () {
12430
- const localVarAxiosArgs = yield localVarAxiosParamCreator.testSearchExtractors(testSearchExtractorsRequest, options);
12431
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12432
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.testSearchExtractors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12433
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12434
- });
12435
- },
12436
- /**
12437
- *
12438
- * @summary Update an existing search index item
12439
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12440
- * @param {*} [options] Override http request option.
12441
- * @throws {RequiredError}
12442
- */
12443
- updateSearchItem(updateSearchItemRequest, options) {
12444
- var _a, _b, _c;
12445
- return __awaiter(this, void 0, void 0, function* () {
12446
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchItem(updateSearchItemRequest, options);
12447
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12448
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SearchApi.updateSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12449
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12450
- });
12451
- },
12452
- };
12453
- };
12454
- /**
12455
- * SearchApi - factory interface
12456
- * @export
12457
- */
12458
- export const SearchApiFactory = function (configuration, basePath, axios) {
12459
- const localVarFp = SearchApiFp(configuration);
12460
- return {
12461
- /**
12462
- *
12463
- * @summary Create a new search index item
12464
- * @param {CreateSearchItemRequest} createSearchItemRequest
12465
- * @param {*} [options] Override http request option.
12466
- * @throws {RequiredError}
12467
- */
12468
- createSearchItem(createSearchItemRequest, options) {
12469
- return localVarFp.createSearchItem(createSearchItemRequest, options).then((request) => request(axios, basePath));
12470
- },
12471
- /**
12472
- *
12473
- * @summary Delete a search index item
12474
- * @param {number} project
12475
- * @param {string} objectId
12476
- * @param {*} [options] Override http request option.
12477
- * @throws {RequiredError}
12478
- */
12479
- deleteSearchItem(project, objectId, options) {
12480
- return localVarFp.deleteSearchItem(project, objectId, options).then((request) => request(axios, basePath));
12481
- },
12482
- /**
12483
- *
12484
- * @summary Get a single search index item
12485
- * @param {number} project
12486
- * @param {string} objectId
12487
- * @param {*} [options] Override http request option.
12488
- * @throws {RequiredError}
12489
- */
12490
- getSearchItem(project, objectId, options) {
12491
- return localVarFp.getSearchItem(project, objectId, options).then((request) => request(axios, basePath));
12492
- },
12493
- /**
12494
- *
12495
- * @summary List search index items
12496
- * @param {number} project
12497
- * @param {number} [page]
12498
- * @param {number} [hitsPerPage]
12499
- * @param {string} [query]
12500
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12501
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12502
- * @param {*} [options] Override http request option.
12503
- * @throws {RequiredError}
12504
- */
12505
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12506
- return localVarFp.getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(axios, basePath));
12507
- },
12508
- /**
12509
- *
12510
- * @summary Test search extractors
12511
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12512
- * @param {*} [options] Override http request option.
12513
- * @throws {RequiredError}
12514
- */
12515
- testSearchExtractors(testSearchExtractorsRequest, options) {
12516
- return localVarFp.testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(axios, basePath));
12517
- },
12518
- /**
12519
- *
12520
- * @summary Update an existing search index item
12521
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12522
- * @param {*} [options] Override http request option.
12523
- * @throws {RequiredError}
12524
- */
12525
- updateSearchItem(updateSearchItemRequest, options) {
12526
- return localVarFp.updateSearchItem(updateSearchItemRequest, options).then((request) => request(axios, basePath));
12527
- },
12528
- };
12529
- };
12530
- /**
12531
- * SearchApi - object-oriented interface
12532
- * @export
12533
- * @class SearchApi
12534
- * @extends {BaseAPI}
12535
- */
12536
- export class SearchApi extends BaseAPI {
12537
- /**
12538
- *
12539
- * @summary Create a new search index item
12540
- * @param {CreateSearchItemRequest} createSearchItemRequest
12541
- * @param {*} [options] Override http request option.
12542
- * @throws {RequiredError}
12543
- * @memberof SearchApi
12544
- */
12545
- createSearchItem(createSearchItemRequest, options) {
12546
- return SearchApiFp(this.configuration).createSearchItem(createSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
12547
- }
12548
- /**
12549
- *
12550
- * @summary Delete a search index item
12551
- * @param {number} project
12552
- * @param {string} objectId
12553
- * @param {*} [options] Override http request option.
12554
- * @throws {RequiredError}
12555
- * @memberof SearchApi
12556
- */
12557
- deleteSearchItem(project, objectId, options) {
12558
- return SearchApiFp(this.configuration).deleteSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
12559
- }
12560
- /**
12561
- *
12562
- * @summary Get a single search index item
12563
- * @param {number} project
12564
- * @param {string} objectId
12565
- * @param {*} [options] Override http request option.
12566
- * @throws {RequiredError}
12567
- * @memberof SearchApi
12568
- */
12569
- getSearchItem(project, objectId, options) {
12570
- return SearchApiFp(this.configuration).getSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
12571
- }
12572
- /**
12573
- *
12574
- * @summary List search index items
12575
- * @param {number} project
12576
- * @param {number} [page]
12577
- * @param {number} [hitsPerPage]
12578
- * @param {string} [query]
12579
- * @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
12580
- * @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
12581
- * @param {*} [options] Override http request option.
12582
- * @throws {RequiredError}
12583
- * @memberof SearchApi
12584
- */
12585
- getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
12586
- return SearchApiFp(this.configuration).getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(this.axios, this.basePath));
12587
- }
12588
- /**
12589
- *
12590
- * @summary Test search extractors
12591
- * @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
12592
- * @param {*} [options] Override http request option.
12593
- * @throws {RequiredError}
12594
- * @memberof SearchApi
12595
- */
12596
- testSearchExtractors(testSearchExtractorsRequest, options) {
12597
- return SearchApiFp(this.configuration).testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(this.axios, this.basePath));
12598
- }
12599
- /**
12600
- *
12601
- * @summary Update an existing search index item
12602
- * @param {UpdateSearchItemRequest} updateSearchItemRequest
12603
- * @param {*} [options] Override http request option.
12604
- * @throws {RequiredError}
12605
- * @memberof SearchApi
12606
- */
12607
- updateSearchItem(updateSearchItemRequest, options) {
12608
- return SearchApiFp(this.configuration).updateSearchItem(updateSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
12609
- }
12610
- }
12611
- /**
12612
- * V1Api - axios parameter creator
12613
- * @export
12614
- */
12615
- export const V1ApiAxiosParamCreator = function (configuration) {
12616
- return {
12617
- /**
12618
- * Retrieve content via API.
12619
- * @summary List content by type
12620
- * @param {ListContentTypeEnum} type
12621
- * @param {object} [body]
12622
- * @param {*} [options] Override http request option.
12623
- * @throws {RequiredError}
12624
- */
12625
- listContent: (type, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12626
- // verify required parameter 'type' is not null or undefined
12627
- assertParamExists('listContent', 'type', type);
12628
- const localVarPath = `/api/v1/content/{type}`
12629
- .replace(`{${"type"}}`, encodeURIComponent(String(type)));
12630
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12631
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12632
- let baseOptions;
12633
- if (configuration) {
12634
- baseOptions = configuration.baseOptions;
12635
- }
12636
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12637
- const localVarHeaderParameter = {};
12638
- const localVarQueryParameter = {};
12639
- // authentication headerAuth required
12640
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12641
- localVarHeaderParameter['Content-Type'] = 'application/json';
12642
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12643
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12644
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12645
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
12646
- return {
12647
- url: toPathString(localVarUrlObj),
12648
- options: localVarRequestOptions,
12649
- };
12650
- }),
12651
- /**
12652
- * Retrieve redirects via API.
12653
- * @summary List redirects
12654
- * @param {object} [body]
12655
- * @param {*} [options] Override http request option.
12656
- * @throws {RequiredError}
12657
- */
12658
- listRedirects: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12659
- const localVarPath = `/api/v1/redirect`;
12660
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12661
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12662
- let baseOptions;
12663
- if (configuration) {
12664
- baseOptions = configuration.baseOptions;
12665
- }
12666
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12667
- const localVarHeaderParameter = {};
12668
- const localVarQueryParameter = {};
12669
- // authentication headerAuth required
12670
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12671
- localVarHeaderParameter['Content-Type'] = 'application/json';
12672
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12673
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12674
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12675
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
12676
- return {
12677
- url: toPathString(localVarUrlObj),
12678
- options: localVarRequestOptions,
12679
- };
12680
- }),
12681
- /**
12682
- * Upload a file via API.
12683
- * @summary Upload a file
12684
- * @param {string} quantUri
12685
- * @param {string} [quantPrefix]
12686
- * @param {object} [body]
12687
- * @param {*} [options] Override http request option.
12688
- * @throws {RequiredError}
12689
- */
12690
- uploadFile: (quantUri, quantPrefix, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
12691
- // verify required parameter 'quantUri' is not null or undefined
12692
- assertParamExists('uploadFile', 'quantUri', quantUri);
12693
- const localVarPath = `/api/v1/upload`;
12694
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12695
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12696
- let baseOptions;
12697
- if (configuration) {
12698
- baseOptions = configuration.baseOptions;
12699
- }
12700
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
12701
- const localVarHeaderParameter = {};
12702
- const localVarQueryParameter = {};
12703
- // authentication headerAuth required
12704
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
12705
- if (quantUri !== undefined) {
12706
- localVarQueryParameter['quant_uri'] = quantUri;
12707
- }
12708
- if (quantPrefix !== undefined) {
12709
- localVarQueryParameter['quant_prefix'] = quantPrefix;
12710
- }
12711
- localVarHeaderParameter['Content-Type'] = 'application/json';
12712
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12713
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12714
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12715
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
12716
- return {
12717
- url: toPathString(localVarUrlObj),
12718
- options: localVarRequestOptions,
12719
- };
12720
- }),
12721
- };
12722
- };
12723
- /**
12724
- * V1Api - functional programming interface
12725
- * @export
12726
- */
12727
- export const V1ApiFp = function (configuration) {
12728
- const localVarAxiosParamCreator = V1ApiAxiosParamCreator(configuration);
12729
- return {
12730
- /**
12731
- * Retrieve content via API.
12732
- * @summary List content by type
12733
- * @param {ListContentTypeEnum} type
12734
- * @param {object} [body]
12735
- * @param {*} [options] Override http request option.
12736
- * @throws {RequiredError}
12737
- */
12738
- listContent(type, body, options) {
12739
- var _a, _b, _c;
12740
- return __awaiter(this, void 0, void 0, function* () {
12741
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listContent(type, body, options);
12742
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12743
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.listContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12744
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12745
- });
12746
- },
12747
- /**
12748
- * Retrieve redirects via API.
12749
- * @summary List redirects
12750
- * @param {object} [body]
12751
- * @param {*} [options] Override http request option.
12752
- * @throws {RequiredError}
12753
- */
12754
- listRedirects(body, options) {
12755
- var _a, _b, _c;
12756
- return __awaiter(this, void 0, void 0, function* () {
12757
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listRedirects(body, options);
12758
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12759
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.listRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12760
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12761
- });
12762
- },
12763
- /**
12764
- * Upload a file via API.
12765
- * @summary Upload a file
12766
- * @param {string} quantUri
12767
- * @param {string} [quantPrefix]
12768
- * @param {object} [body]
12769
- * @param {*} [options] Override http request option.
12770
- * @throws {RequiredError}
12771
- */
12772
- uploadFile(quantUri, quantPrefix, body, options) {
12773
- var _a, _b, _c;
12774
- return __awaiter(this, void 0, void 0, function* () {
12775
- const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(quantUri, quantPrefix, body, options);
12776
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
12777
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['V1Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
12778
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
12779
- });
12780
- },
12781
- };
12782
- };
12783
- /**
12784
- * V1Api - factory interface
12785
- * @export
12786
- */
12787
- export const V1ApiFactory = function (configuration, basePath, axios) {
12788
- const localVarFp = V1ApiFp(configuration);
12789
- return {
12790
- /**
12791
- * Retrieve content via API.
12792
- * @summary List content by type
12793
- * @param {ListContentTypeEnum} type
12794
- * @param {object} [body]
12795
- * @param {*} [options] Override http request option.
12796
- * @throws {RequiredError}
12797
- */
12798
- listContent(type, body, options) {
12799
- return localVarFp.listContent(type, body, options).then((request) => request(axios, basePath));
12800
- },
12801
- /**
12802
- * Retrieve redirects via API.
12803
- * @summary List redirects
12804
- * @param {object} [body]
12805
- * @param {*} [options] Override http request option.
12806
- * @throws {RequiredError}
12807
- */
12808
- listRedirects(body, options) {
12809
- return localVarFp.listRedirects(body, options).then((request) => request(axios, basePath));
12810
- },
12811
- /**
12812
- * Upload a file via API.
12813
- * @summary Upload a file
12814
- * @param {string} quantUri
12815
- * @param {string} [quantPrefix]
12816
- * @param {object} [body]
12817
- * @param {*} [options] Override http request option.
12818
- * @throws {RequiredError}
12819
- */
12820
- uploadFile(quantUri, quantPrefix, body, options) {
12821
- return localVarFp.uploadFile(quantUri, quantPrefix, body, options).then((request) => request(axios, basePath));
12822
- },
12823
- };
12824
- };
12825
- /**
12826
- * V1Api - object-oriented interface
12827
- * @export
12828
- * @class V1Api
12829
- * @extends {BaseAPI}
12830
- */
12831
- export class V1Api extends BaseAPI {
12832
- /**
12833
- * Retrieve content via API.
12834
- * @summary List content by type
12835
- * @param {ListContentTypeEnum} type
12836
- * @param {object} [body]
12837
- * @param {*} [options] Override http request option.
12838
- * @throws {RequiredError}
12839
- * @memberof V1Api
12840
- */
12841
- listContent(type, body, options) {
12842
- return V1ApiFp(this.configuration).listContent(type, body, options).then((request) => request(this.axios, this.basePath));
12843
- }
12844
- /**
12845
- * Retrieve redirects via API.
12846
- * @summary List redirects
12847
- * @param {object} [body]
12848
- * @param {*} [options] Override http request option.
12849
- * @throws {RequiredError}
12850
- * @memberof V1Api
12851
- */
12852
- listRedirects(body, options) {
12853
- return V1ApiFp(this.configuration).listRedirects(body, options).then((request) => request(this.axios, this.basePath));
12854
- }
12855
- /**
12856
- * Upload a file via API.
12857
- * @summary Upload a file
12858
- * @param {string} quantUri
12859
- * @param {string} [quantPrefix]
12860
- * @param {object} [body]
12861
- * @param {*} [options] Override http request option.
12862
- * @throws {RequiredError}
12863
- * @memberof V1Api
12864
- */
12865
- uploadFile(quantUri, quantPrefix, body, options) {
12866
- return V1ApiFp(this.configuration).uploadFile(quantUri, quantPrefix, body, options).then((request) => request(this.axios, this.basePath));
12867
- }
12868
- }
12869
- /**
12870
- * @export
12871
- */
12872
- export const ListContentTypeEnum = {
12873
- Content: 'content',
12874
- Redirect: 'redirect',
12875
- File: 'file',
12876
- EdgeFunction: 'edge_function',
12877
- EdgeFilter: 'edge_filter',
12878
- EdgeAuth: 'edge_auth'
12879
- };
12880
- /**
12881
- * VariablesApi - axios parameter creator
12882
- * @export
12883
- */
12884
- export const VariablesApiAxiosParamCreator = function (configuration) {
12885
- return {
12886
- /**
12887
- *
12888
- * @summary Bulk set/replace environment variables
12889
- * @param {string} apiOrganisation The organisation ID
12890
- * @param {string} apiApplication The application ID
12891
- * @param {string} apiEnvironment The environment ID
12892
- * @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
12893
- * @param {*} [options] Override http request option.
12894
- * @throws {RequiredError}
12895
- */
12896
- bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
12897
- // verify required parameter 'apiOrganisation' is not null or undefined
12898
- assertParamExists('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12899
- // verify required parameter 'apiApplication' is not null or undefined
12900
- assertParamExists('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
12901
- // verify required parameter 'apiEnvironment' is not null or undefined
12902
- assertParamExists('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12903
- // verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
12904
- assertParamExists('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
12905
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12906
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12907
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12908
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12909
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12910
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12911
- let baseOptions;
12912
- if (configuration) {
12913
- baseOptions = configuration.baseOptions;
12914
- }
12915
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
12916
- const localVarHeaderParameter = {};
12917
- const localVarQueryParameter = {};
12918
- // authentication BearerAuth required
12919
- // http bearer authentication required
12920
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12921
- localVarHeaderParameter['Content-Type'] = 'application/json';
12922
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12923
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12924
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12925
- localVarRequestOptions.data = serializeDataIfNeeded(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
12926
- return {
12927
- url: toPathString(localVarUrlObj),
12928
- options: localVarRequestOptions,
12929
- };
12930
- }),
12931
- /**
12932
- *
12933
- * @summary Delete a variable
12934
- * @param {string} apiOrganisation The organisation ID
12935
- * @param {string} apiApplication The application ID
12936
- * @param {string} apiEnvironment The environment ID
12937
- * @param {string} apiVariable The variable key
12938
- * @param {*} [options] Override http request option.
12939
- * @throws {RequiredError}
12940
- */
12941
- deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
12942
- // verify required parameter 'apiOrganisation' is not null or undefined
12943
- assertParamExists('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
12944
- // verify required parameter 'apiApplication' is not null or undefined
12945
- assertParamExists('deleteEnvironmentVariable', 'apiApplication', apiApplication);
12946
- // verify required parameter 'apiEnvironment' is not null or undefined
12947
- assertParamExists('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
12948
- // verify required parameter 'apiVariable' is not null or undefined
12949
- assertParamExists('deleteEnvironmentVariable', 'apiVariable', apiVariable);
12950
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
12951
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12952
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12953
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
12954
- .replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
12955
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12956
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12957
- let baseOptions;
12958
- if (configuration) {
12959
- baseOptions = configuration.baseOptions;
12960
- }
12961
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
12962
- const localVarHeaderParameter = {};
12963
- const localVarQueryParameter = {};
12964
- // authentication BearerAuth required
12965
- // http bearer authentication required
12966
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12967
- setSearchParams(localVarUrlObj, localVarQueryParameter);
12968
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
12969
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12970
- return {
12971
- url: toPathString(localVarUrlObj),
12972
- options: localVarRequestOptions,
12973
- };
12974
- }),
12975
- /**
12976
- *
12977
- * @summary Get all variables for an environment
12978
- * @param {string} apiOrganisation The organisation ID
12979
- * @param {string} apiApplication The application ID
12980
- * @param {string} apiEnvironment The environment ID
12981
- * @param {*} [options] Override http request option.
12982
- * @throws {RequiredError}
12983
- */
12984
- listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
12985
- // verify required parameter 'apiOrganisation' is not null or undefined
12986
- assertParamExists('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
12987
- // verify required parameter 'apiApplication' is not null or undefined
12988
- assertParamExists('listEnvironmentVariables', 'apiApplication', apiApplication);
12989
- // verify required parameter 'apiEnvironment' is not null or undefined
12990
- assertParamExists('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
12991
- const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
12992
- .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
12993
- .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
12994
- .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
12995
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
12996
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
12997
- let baseOptions;
12998
- if (configuration) {
12999
- baseOptions = configuration.baseOptions;
13000
- }
13001
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
13002
- const localVarHeaderParameter = {};
13003
- const localVarQueryParameter = {};
13004
- // authentication BearerAuth required
13005
- // http bearer authentication required
13006
- yield setBearerAuthToObject(localVarHeaderParameter, configuration);
13007
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13008
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13009
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13010
- return {
13011
- url: toPathString(localVarUrlObj),
13012
- options: localVarRequestOptions,
13013
- };
13014
- }),
13015
- /**
13016
- *
13017
- * @summary Update a variable
13018
- * @param {string} apiOrganisation The organisation ID
13019
- * @param {string} apiApplication The application ID
13020
- * @param {string} apiEnvironment The environment ID
13021
- * @param {string} apiVariable The variable key
13022
- * @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
12386
+ * @summary Update a variable
12387
+ * @param {string} apiOrganisation The organisation ID
12388
+ * @param {string} apiApplication The application ID
12389
+ * @param {string} apiEnvironment The environment ID
12390
+ * @param {string} apiVariable The variable key
12391
+ * @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
13023
12392
  * @param {*} [options] Override http request option.
13024
12393
  * @throws {RequiredError}
13025
12394
  */
@@ -13285,16 +12654,19 @@ export const VolumesApiAxiosParamCreator = function (configuration) {
13285
12654
  * @param {string} organisation The organisation ID
13286
12655
  * @param {string} application The application ID
13287
12656
  * @param {string} environment The environment ID
12657
+ * @param {CreateVolumeRequest} createVolumeRequest
13288
12658
  * @param {*} [options] Override http request option.
13289
12659
  * @throws {RequiredError}
13290
12660
  */
13291
- createVolume: (organisation, application, environment, options = {}) => __awaiter(this, void 0, void 0, function* () {
12661
+ createVolume: (organisation, application, environment, createVolumeRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
13292
12662
  // verify required parameter 'organisation' is not null or undefined
13293
12663
  assertParamExists('createVolume', 'organisation', organisation);
13294
12664
  // verify required parameter 'application' is not null or undefined
13295
12665
  assertParamExists('createVolume', 'application', application);
13296
12666
  // verify required parameter 'environment' is not null or undefined
13297
12667
  assertParamExists('createVolume', 'environment', environment);
12668
+ // verify required parameter 'createVolumeRequest' is not null or undefined
12669
+ assertParamExists('createVolume', 'createVolumeRequest', createVolumeRequest);
13298
12670
  const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes`
13299
12671
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
13300
12672
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
@@ -13311,9 +12683,11 @@ export const VolumesApiAxiosParamCreator = function (configuration) {
13311
12683
  // authentication BearerAuth required
13312
12684
  // http bearer authentication required
13313
12685
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
12686
+ localVarHeaderParameter['Content-Type'] = 'application/json';
13314
12687
  setSearchParams(localVarUrlObj, localVarQueryParameter);
13315
12688
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13316
12689
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
12690
+ localVarRequestOptions.data = serializeDataIfNeeded(createVolumeRequest, localVarRequestOptions, configuration);
13317
12691
  return {
13318
12692
  url: toPathString(localVarUrlObj),
13319
12693
  options: localVarRequestOptions,
@@ -13462,13 +12836,14 @@ export const VolumesApiFp = function (configuration) {
13462
12836
  * @param {string} organisation The organisation ID
13463
12837
  * @param {string} application The application ID
13464
12838
  * @param {string} environment The environment ID
12839
+ * @param {CreateVolumeRequest} createVolumeRequest
13465
12840
  * @param {*} [options] Override http request option.
13466
12841
  * @throws {RequiredError}
13467
12842
  */
13468
- createVolume(organisation, application, environment, options) {
12843
+ createVolume(organisation, application, environment, createVolumeRequest, options) {
13469
12844
  var _a, _b, _c;
13470
12845
  return __awaiter(this, void 0, void 0, function* () {
13471
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(organisation, application, environment, options);
12846
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(organisation, application, environment, createVolumeRequest, options);
13472
12847
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13473
12848
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['VolumesApi.createVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13474
12849
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -13545,11 +12920,12 @@ export const VolumesApiFactory = function (configuration, basePath, axios) {
13545
12920
  * @param {string} organisation The organisation ID
13546
12921
  * @param {string} application The application ID
13547
12922
  * @param {string} environment The environment ID
12923
+ * @param {CreateVolumeRequest} createVolumeRequest
13548
12924
  * @param {*} [options] Override http request option.
13549
12925
  * @throws {RequiredError}
13550
12926
  */
13551
- createVolume(organisation, application, environment, options) {
13552
- return localVarFp.createVolume(organisation, application, environment, options).then((request) => request(axios, basePath));
12927
+ createVolume(organisation, application, environment, createVolumeRequest, options) {
12928
+ return localVarFp.createVolume(organisation, application, environment, createVolumeRequest, options).then((request) => request(axios, basePath));
13553
12929
  },
13554
12930
  /**
13555
12931
  *
@@ -13604,12 +12980,13 @@ export class VolumesApi extends BaseAPI {
13604
12980
  * @param {string} organisation The organisation ID
13605
12981
  * @param {string} application The application ID
13606
12982
  * @param {string} environment The environment ID
12983
+ * @param {CreateVolumeRequest} createVolumeRequest
13607
12984
  * @param {*} [options] Override http request option.
13608
12985
  * @throws {RequiredError}
13609
12986
  * @memberof VolumesApi
13610
12987
  */
13611
- createVolume(organisation, application, environment, options) {
13612
- return VolumesApiFp(this.configuration).createVolume(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
12988
+ createVolume(organisation, application, environment, createVolumeRequest, options) {
12989
+ return VolumesApiFp(this.configuration).createVolume(organisation, application, environment, createVolumeRequest, options).then((request) => request(this.axios, this.basePath));
13613
12990
  }
13614
12991
  /**
13615
12992
  *
@@ -13653,104 +13030,3 @@ export class VolumesApi extends BaseAPI {
13653
13030
  return VolumesApiFp(this.configuration).listVolumes(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
13654
13031
  }
13655
13032
  }
13656
- /**
13657
- * WAFApi - axios parameter creator
13658
- * @export
13659
- */
13660
- export const WAFApiAxiosParamCreator = function (configuration) {
13661
- return {
13662
- /**
13663
- *
13664
- * @summary Retrieve WAF logs
13665
- * @param {object} [body]
13666
- * @param {*} [options] Override http request option.
13667
- * @throws {RequiredError}
13668
- */
13669
- getWafLogs: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
13670
- const localVarPath = `/api/v1/waf-log`;
13671
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
13672
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
13673
- let baseOptions;
13674
- if (configuration) {
13675
- baseOptions = configuration.baseOptions;
13676
- }
13677
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
13678
- const localVarHeaderParameter = {};
13679
- const localVarQueryParameter = {};
13680
- // authentication headerAuth required
13681
- yield setApiKeyToObject(localVarHeaderParameter, "Quant-Token", configuration);
13682
- localVarHeaderParameter['Content-Type'] = 'application/json';
13683
- setSearchParams(localVarUrlObj, localVarQueryParameter);
13684
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
13685
- localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
13686
- localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration);
13687
- return {
13688
- url: toPathString(localVarUrlObj),
13689
- options: localVarRequestOptions,
13690
- };
13691
- }),
13692
- };
13693
- };
13694
- /**
13695
- * WAFApi - functional programming interface
13696
- * @export
13697
- */
13698
- export const WAFApiFp = function (configuration) {
13699
- const localVarAxiosParamCreator = WAFApiAxiosParamCreator(configuration);
13700
- return {
13701
- /**
13702
- *
13703
- * @summary Retrieve WAF logs
13704
- * @param {object} [body]
13705
- * @param {*} [options] Override http request option.
13706
- * @throws {RequiredError}
13707
- */
13708
- getWafLogs(body, options) {
13709
- var _a, _b, _c;
13710
- return __awaiter(this, void 0, void 0, function* () {
13711
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getWafLogs(body, options);
13712
- const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
13713
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['WAFApi.getWafLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
13714
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
13715
- });
13716
- },
13717
- };
13718
- };
13719
- /**
13720
- * WAFApi - factory interface
13721
- * @export
13722
- */
13723
- export const WAFApiFactory = function (configuration, basePath, axios) {
13724
- const localVarFp = WAFApiFp(configuration);
13725
- return {
13726
- /**
13727
- *
13728
- * @summary Retrieve WAF logs
13729
- * @param {object} [body]
13730
- * @param {*} [options] Override http request option.
13731
- * @throws {RequiredError}
13732
- */
13733
- getWafLogs(body, options) {
13734
- return localVarFp.getWafLogs(body, options).then((request) => request(axios, basePath));
13735
- },
13736
- };
13737
- };
13738
- /**
13739
- * WAFApi - object-oriented interface
13740
- * @export
13741
- * @class WAFApi
13742
- * @extends {BaseAPI}
13743
- */
13744
- export class WAFApi extends BaseAPI {
13745
- /**
13746
- *
13747
- * @summary Retrieve WAF logs
13748
- * @param {object} [body]
13749
- * @param {*} [options] Override http request option.
13750
- * @throws {RequiredError}
13751
- * @memberof WAFApi
13752
- */
13753
- getWafLogs(body, options) {
13754
- return WAFApiFp(this.configuration).getWafLogs(body, options).then((request) => request(this.axios, this.basePath));
13755
- }
13756
- }