@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/README.md +9 -13
- package/api.ts +11657 -14956
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +3202 -6160
- package/dist/api.js +701 -1445
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +3202 -6160
- package/dist/esm/api.js +695 -1419
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +7 -6
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.3.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,15 +22,38 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
25
|
+
exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.ListToolExecutionsStatusEnum = exports.ListAIModelsFeatureEnum = exports.AIServicesApi = exports.AIServicesApiFactory = exports.AIServicesApiFp = exports.AIServicesApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2RuleProxyActionNotifyEnum = exports.V1TransitionStateEnum = exports.SpotConfigurationStrategyEnum = exports.ScalingPolicyMetricEnum = exports.ListToolExecutions200ResponseExecutionsInnerStatusEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.GetToolExecutionStatus200ResponseStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ChatInference200ResponseResponseToolUseOneOfStatusEnum = exports.ChatInference200ResponseResponseRoleEnum = exports.ChatInference200ResponseFinishReasonEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = void 0;
|
|
26
|
+
exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = void 0;
|
|
27
|
+
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = void 0;
|
|
28
28
|
const axios_1 = require("axios");
|
|
29
29
|
// Some imports not used depending on template conditions
|
|
30
30
|
// @ts-ignore
|
|
31
31
|
const common_1 = require("./common");
|
|
32
32
|
// @ts-ignore
|
|
33
33
|
const base_1 = require("./base");
|
|
34
|
+
exports.ApplicationDatabaseRdsInstanceEngineEnum = {
|
|
35
|
+
Mysql: 'mysql',
|
|
36
|
+
Postgres: 'postgres'
|
|
37
|
+
};
|
|
38
|
+
exports.ApplicationImageReferenceTypeEnum = {
|
|
39
|
+
Internal: 'internal',
|
|
40
|
+
External: 'external'
|
|
41
|
+
};
|
|
42
|
+
exports.ChatInference200ResponseFinishReasonEnum = {
|
|
43
|
+
Stop: 'stop',
|
|
44
|
+
Length: 'length',
|
|
45
|
+
ContentFilter: 'content_filter',
|
|
46
|
+
ToolUse: 'tool_use'
|
|
47
|
+
};
|
|
48
|
+
exports.ChatInference200ResponseResponseRoleEnum = {
|
|
49
|
+
Assistant: 'assistant'
|
|
50
|
+
};
|
|
51
|
+
exports.ChatInference200ResponseResponseToolUseOneOfStatusEnum = {
|
|
52
|
+
Pending: 'pending',
|
|
53
|
+
Running: 'running',
|
|
54
|
+
Complete: 'complete',
|
|
55
|
+
Failed: 'failed'
|
|
56
|
+
};
|
|
34
57
|
exports.ChatInferenceRequestMessagesInnerRoleEnum = {
|
|
35
58
|
User: 'user',
|
|
36
59
|
Assistant: 'assistant',
|
|
@@ -80,6 +103,10 @@ exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = {
|
|
|
80
103
|
User: 'user',
|
|
81
104
|
Assistant: 'assistant'
|
|
82
105
|
};
|
|
106
|
+
exports.CreateApplicationRequestDatabaseEngineEnum = {
|
|
107
|
+
Mysql: 'mysql',
|
|
108
|
+
Postgres: 'postgres'
|
|
109
|
+
};
|
|
83
110
|
exports.CronRunRunTypeEnum = {
|
|
84
111
|
Exec: 'EXEC',
|
|
85
112
|
Cron: 'CRON'
|
|
@@ -98,6 +125,12 @@ exports.EmbeddingsRequestDimensionsEnum = {
|
|
|
98
125
|
NUMBER_1024: 1024,
|
|
99
126
|
NUMBER_8192: 8192
|
|
100
127
|
};
|
|
128
|
+
exports.GetToolExecutionStatus200ResponseStatusEnum = {
|
|
129
|
+
Pending: 'pending',
|
|
130
|
+
Running: 'running',
|
|
131
|
+
Complete: 'complete',
|
|
132
|
+
Failed: 'failed'
|
|
133
|
+
};
|
|
101
134
|
exports.ImageGenerationRequestTaskTypeEnum = {
|
|
102
135
|
TextImage: 'TEXT_IMAGE',
|
|
103
136
|
ColorGuidedGeneration: 'COLOR_GUIDED_GENERATION',
|
|
@@ -134,19 +167,45 @@ exports.ImageGenerationRequestTextToImageParamsControlModeEnum = {
|
|
|
134
167
|
CannyEdge: 'CANNY_EDGE',
|
|
135
168
|
Segmentation: 'SEGMENTATION'
|
|
136
169
|
};
|
|
170
|
+
exports.ListToolExecutions200ResponseExecutionsInnerStatusEnum = {
|
|
171
|
+
Pending: 'pending',
|
|
172
|
+
Running: 'running',
|
|
173
|
+
Complete: 'complete',
|
|
174
|
+
Failed: 'failed'
|
|
175
|
+
};
|
|
137
176
|
exports.ScalingPolicyMetricEnum = {
|
|
138
177
|
CpuUtilization: 'CPUUtilization',
|
|
139
178
|
MemoryUtilization: 'MemoryUtilization',
|
|
140
179
|
Rps: 'RPS'
|
|
141
180
|
};
|
|
142
|
-
exports.
|
|
143
|
-
|
|
144
|
-
|
|
181
|
+
exports.SpotConfigurationStrategyEnum = {
|
|
182
|
+
Off: 'off',
|
|
183
|
+
SpotOnly: 'spot-only',
|
|
184
|
+
MixedSafe: 'mixed-safe',
|
|
185
|
+
MixedAggressive: 'mixed-aggressive'
|
|
145
186
|
};
|
|
146
187
|
exports.V1TransitionStateEnum = {
|
|
147
188
|
Published: 'published',
|
|
148
189
|
Unpublished: 'unpublished'
|
|
149
190
|
};
|
|
191
|
+
exports.V2RuleProxyActionNotifyEnum = {
|
|
192
|
+
None: 'none',
|
|
193
|
+
Slack: 'slack'
|
|
194
|
+
};
|
|
195
|
+
exports.WafConfigModeEnum = {
|
|
196
|
+
Report: 'report',
|
|
197
|
+
Block: 'block'
|
|
198
|
+
};
|
|
199
|
+
exports.WafConfigThresholdsInnerTypeEnum = {
|
|
200
|
+
Ip: 'ip',
|
|
201
|
+
Header: 'header',
|
|
202
|
+
WafHitByIp: 'waf_hit_by_ip'
|
|
203
|
+
};
|
|
204
|
+
exports.WafConfigThresholdsInnerModeEnum = {
|
|
205
|
+
Disabled: 'disabled',
|
|
206
|
+
Report: 'report',
|
|
207
|
+
Block: 'block'
|
|
208
|
+
};
|
|
150
209
|
/**
|
|
151
210
|
* AIServicesApi - axios parameter creator
|
|
152
211
|
* @export
|
|
@@ -154,7 +213,7 @@ exports.V1TransitionStateEnum = {
|
|
|
154
213
|
const AIServicesApiAxiosParamCreator = function (configuration) {
|
|
155
214
|
return {
|
|
156
215
|
/**
|
|
157
|
-
* 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
|
|
216
|
+
* 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
|
|
158
217
|
* @summary Chat inference via API Gateway (buffered responses) with multimodal support
|
|
159
218
|
* @param {string} organisation The organisation ID
|
|
160
219
|
* @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
|
|
@@ -441,6 +500,42 @@ const AIServicesApiAxiosParamCreator = function (configuration) {
|
|
|
441
500
|
options: localVarRequestOptions,
|
|
442
501
|
};
|
|
443
502
|
}),
|
|
503
|
+
/**
|
|
504
|
+
* 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
|
|
505
|
+
* @summary Get async tool execution status and result
|
|
506
|
+
* @param {string} organisation The organisation ID
|
|
507
|
+
* @param {string} executionId Tool execution identifier
|
|
508
|
+
* @param {*} [options] Override http request option.
|
|
509
|
+
* @throws {RequiredError}
|
|
510
|
+
*/
|
|
511
|
+
getToolExecutionStatus: (organisation, executionId, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
512
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
513
|
+
(0, common_1.assertParamExists)('getToolExecutionStatus', 'organisation', organisation);
|
|
514
|
+
// verify required parameter 'executionId' is not null or undefined
|
|
515
|
+
(0, common_1.assertParamExists)('getToolExecutionStatus', 'executionId', executionId);
|
|
516
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/executions/{executionId}`
|
|
517
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
518
|
+
.replace(`{${"executionId"}}`, encodeURIComponent(String(executionId)));
|
|
519
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
520
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
521
|
+
let baseOptions;
|
|
522
|
+
if (configuration) {
|
|
523
|
+
baseOptions = configuration.baseOptions;
|
|
524
|
+
}
|
|
525
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
526
|
+
const localVarHeaderParameter = {};
|
|
527
|
+
const localVarQueryParameter = {};
|
|
528
|
+
// authentication BearerAuth required
|
|
529
|
+
// http bearer authentication required
|
|
530
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
531
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
532
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
533
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
534
|
+
return {
|
|
535
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
536
|
+
options: localVarRequestOptions,
|
|
537
|
+
};
|
|
538
|
+
}),
|
|
444
539
|
/**
|
|
445
540
|
* 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
|
|
446
541
|
* @summary Generate images with Amazon Nova Canvas
|
|
@@ -566,6 +661,110 @@ const AIServicesApiAxiosParamCreator = function (configuration) {
|
|
|
566
661
|
options: localVarRequestOptions,
|
|
567
662
|
};
|
|
568
663
|
}),
|
|
664
|
+
/**
|
|
665
|
+
* Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
|
|
666
|
+
* @summary List tool names only (lightweight response)
|
|
667
|
+
* @param {string} organisation The organisation ID
|
|
668
|
+
* @param {*} [options] Override http request option.
|
|
669
|
+
* @throws {RequiredError}
|
|
670
|
+
*/
|
|
671
|
+
listAIToolNames: (organisation, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
672
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
673
|
+
(0, common_1.assertParamExists)('listAIToolNames', 'organisation', organisation);
|
|
674
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/names`
|
|
675
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
676
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
677
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
678
|
+
let baseOptions;
|
|
679
|
+
if (configuration) {
|
|
680
|
+
baseOptions = configuration.baseOptions;
|
|
681
|
+
}
|
|
682
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
683
|
+
const localVarHeaderParameter = {};
|
|
684
|
+
const localVarQueryParameter = {};
|
|
685
|
+
// authentication BearerAuth required
|
|
686
|
+
// http bearer authentication required
|
|
687
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
688
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
691
|
+
return {
|
|
692
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
693
|
+
options: localVarRequestOptions,
|
|
694
|
+
};
|
|
695
|
+
}),
|
|
696
|
+
/**
|
|
697
|
+
* 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)
|
|
698
|
+
* @summary List available built-in tools for function calling
|
|
699
|
+
* @param {string} organisation The organisation ID
|
|
700
|
+
* @param {*} [options] Override http request option.
|
|
701
|
+
* @throws {RequiredError}
|
|
702
|
+
*/
|
|
703
|
+
listAITools: (organisation, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
704
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
705
|
+
(0, common_1.assertParamExists)('listAITools', 'organisation', organisation);
|
|
706
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools`
|
|
707
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
708
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
709
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
710
|
+
let baseOptions;
|
|
711
|
+
if (configuration) {
|
|
712
|
+
baseOptions = configuration.baseOptions;
|
|
713
|
+
}
|
|
714
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
715
|
+
const localVarHeaderParameter = {};
|
|
716
|
+
const localVarQueryParameter = {};
|
|
717
|
+
// authentication BearerAuth required
|
|
718
|
+
// http bearer authentication required
|
|
719
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
720
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
721
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
722
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
723
|
+
return {
|
|
724
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
725
|
+
options: localVarRequestOptions,
|
|
726
|
+
};
|
|
727
|
+
}),
|
|
728
|
+
/**
|
|
729
|
+
* 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
|
|
730
|
+
* @summary List tool executions for monitoring and debugging
|
|
731
|
+
* @param {string} organisation The organisation ID
|
|
732
|
+
* @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
|
|
733
|
+
* @param {number} [limit] Maximum number of executions to return
|
|
734
|
+
* @param {*} [options] Override http request option.
|
|
735
|
+
* @throws {RequiredError}
|
|
736
|
+
*/
|
|
737
|
+
listToolExecutions: (organisation, status, limit, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
738
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
739
|
+
(0, common_1.assertParamExists)('listToolExecutions', 'organisation', organisation);
|
|
740
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/tools/executions`
|
|
741
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
742
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
743
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
744
|
+
let baseOptions;
|
|
745
|
+
if (configuration) {
|
|
746
|
+
baseOptions = configuration.baseOptions;
|
|
747
|
+
}
|
|
748
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
749
|
+
const localVarHeaderParameter = {};
|
|
750
|
+
const localVarQueryParameter = {};
|
|
751
|
+
// authentication BearerAuth required
|
|
752
|
+
// http bearer authentication required
|
|
753
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
754
|
+
if (status !== undefined) {
|
|
755
|
+
localVarQueryParameter['status'] = status;
|
|
756
|
+
}
|
|
757
|
+
if (limit !== undefined) {
|
|
758
|
+
localVarQueryParameter['limit'] = limit;
|
|
759
|
+
}
|
|
760
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
761
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
762
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
763
|
+
return {
|
|
764
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
765
|
+
options: localVarRequestOptions,
|
|
766
|
+
};
|
|
767
|
+
}),
|
|
569
768
|
/**
|
|
570
769
|
*
|
|
571
770
|
* @summary Update AI configuration for an organization
|
|
@@ -614,7 +813,7 @@ const AIServicesApiFp = function (configuration) {
|
|
|
614
813
|
const localVarAxiosParamCreator = (0, exports.AIServicesApiAxiosParamCreator)(configuration);
|
|
615
814
|
return {
|
|
616
815
|
/**
|
|
617
|
-
* 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
|
|
816
|
+
* 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
|
|
618
817
|
* @summary Chat inference via API Gateway (buffered responses) with multimodal support
|
|
619
818
|
* @param {string} organisation The organisation ID
|
|
620
819
|
* @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
|
|
@@ -748,6 +947,23 @@ const AIServicesApiFp = function (configuration) {
|
|
|
748
947
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
749
948
|
});
|
|
750
949
|
},
|
|
950
|
+
/**
|
|
951
|
+
* 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
|
|
952
|
+
* @summary Get async tool execution status and result
|
|
953
|
+
* @param {string} organisation The organisation ID
|
|
954
|
+
* @param {string} executionId Tool execution identifier
|
|
955
|
+
* @param {*} [options] Override http request option.
|
|
956
|
+
* @throws {RequiredError}
|
|
957
|
+
*/
|
|
958
|
+
getToolExecutionStatus(organisation, executionId, options) {
|
|
959
|
+
var _a, _b, _c;
|
|
960
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
961
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getToolExecutionStatus(organisation, executionId, options);
|
|
962
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
963
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIServicesApi.getToolExecutionStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
964
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
965
|
+
});
|
|
966
|
+
},
|
|
751
967
|
/**
|
|
752
968
|
* 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
|
|
753
969
|
* @summary Generate images with Amazon Nova Canvas
|
|
@@ -803,6 +1019,56 @@ const AIServicesApiFp = function (configuration) {
|
|
|
803
1019
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
804
1020
|
});
|
|
805
1021
|
},
|
|
1022
|
+
/**
|
|
1023
|
+
* Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
|
|
1024
|
+
* @summary List tool names only (lightweight response)
|
|
1025
|
+
* @param {string} organisation The organisation ID
|
|
1026
|
+
* @param {*} [options] Override http request option.
|
|
1027
|
+
* @throws {RequiredError}
|
|
1028
|
+
*/
|
|
1029
|
+
listAIToolNames(organisation, options) {
|
|
1030
|
+
var _a, _b, _c;
|
|
1031
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1032
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAIToolNames(organisation, options);
|
|
1033
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1034
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIServicesApi.listAIToolNames']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1035
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1036
|
+
});
|
|
1037
|
+
},
|
|
1038
|
+
/**
|
|
1039
|
+
* 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)
|
|
1040
|
+
* @summary List available built-in tools for function calling
|
|
1041
|
+
* @param {string} organisation The organisation ID
|
|
1042
|
+
* @param {*} [options] Override http request option.
|
|
1043
|
+
* @throws {RequiredError}
|
|
1044
|
+
*/
|
|
1045
|
+
listAITools(organisation, options) {
|
|
1046
|
+
var _a, _b, _c;
|
|
1047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAITools(organisation, options);
|
|
1049
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1050
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIServicesApi.listAITools']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1051
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1052
|
+
});
|
|
1053
|
+
},
|
|
1054
|
+
/**
|
|
1055
|
+
* 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
|
|
1056
|
+
* @summary List tool executions for monitoring and debugging
|
|
1057
|
+
* @param {string} organisation The organisation ID
|
|
1058
|
+
* @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
|
|
1059
|
+
* @param {number} [limit] Maximum number of executions to return
|
|
1060
|
+
* @param {*} [options] Override http request option.
|
|
1061
|
+
* @throws {RequiredError}
|
|
1062
|
+
*/
|
|
1063
|
+
listToolExecutions(organisation, status, limit, options) {
|
|
1064
|
+
var _a, _b, _c;
|
|
1065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1066
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listToolExecutions(organisation, status, limit, options);
|
|
1067
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1068
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIServicesApi.listToolExecutions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1069
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1070
|
+
});
|
|
1071
|
+
},
|
|
806
1072
|
/**
|
|
807
1073
|
*
|
|
808
1074
|
* @summary Update AI configuration for an organization
|
|
@@ -831,7 +1097,7 @@ const AIServicesApiFactory = function (configuration, basePath, axios) {
|
|
|
831
1097
|
const localVarFp = (0, exports.AIServicesApiFp)(configuration);
|
|
832
1098
|
return {
|
|
833
1099
|
/**
|
|
834
|
-
* 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
|
|
1100
|
+
* 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
|
|
835
1101
|
* @summary Chat inference via API Gateway (buffered responses) with multimodal support
|
|
836
1102
|
* @param {string} organisation The organisation ID
|
|
837
1103
|
* @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
|
|
@@ -917,6 +1183,17 @@ const AIServicesApiFactory = function (configuration, basePath, axios) {
|
|
|
917
1183
|
getAIUsageStats(organisation, month, options) {
|
|
918
1184
|
return localVarFp.getAIUsageStats(organisation, month, options).then((request) => request(axios, basePath));
|
|
919
1185
|
},
|
|
1186
|
+
/**
|
|
1187
|
+
* 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
|
|
1188
|
+
* @summary Get async tool execution status and result
|
|
1189
|
+
* @param {string} organisation The organisation ID
|
|
1190
|
+
* @param {string} executionId Tool execution identifier
|
|
1191
|
+
* @param {*} [options] Override http request option.
|
|
1192
|
+
* @throws {RequiredError}
|
|
1193
|
+
*/
|
|
1194
|
+
getToolExecutionStatus(organisation, executionId, options) {
|
|
1195
|
+
return localVarFp.getToolExecutionStatus(organisation, executionId, options).then((request) => request(axios, basePath));
|
|
1196
|
+
},
|
|
920
1197
|
/**
|
|
921
1198
|
* 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
|
|
922
1199
|
* @summary Generate images with Amazon Nova Canvas
|
|
@@ -954,6 +1231,38 @@ const AIServicesApiFactory = function (configuration, basePath, axios) {
|
|
|
954
1231
|
listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
|
|
955
1232
|
return localVarFp.listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(axios, basePath));
|
|
956
1233
|
},
|
|
1234
|
+
/**
|
|
1235
|
+
* Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
|
|
1236
|
+
* @summary List tool names only (lightweight response)
|
|
1237
|
+
* @param {string} organisation The organisation ID
|
|
1238
|
+
* @param {*} [options] Override http request option.
|
|
1239
|
+
* @throws {RequiredError}
|
|
1240
|
+
*/
|
|
1241
|
+
listAIToolNames(organisation, options) {
|
|
1242
|
+
return localVarFp.listAIToolNames(organisation, options).then((request) => request(axios, basePath));
|
|
1243
|
+
},
|
|
1244
|
+
/**
|
|
1245
|
+
* 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)
|
|
1246
|
+
* @summary List available built-in tools for function calling
|
|
1247
|
+
* @param {string} organisation The organisation ID
|
|
1248
|
+
* @param {*} [options] Override http request option.
|
|
1249
|
+
* @throws {RequiredError}
|
|
1250
|
+
*/
|
|
1251
|
+
listAITools(organisation, options) {
|
|
1252
|
+
return localVarFp.listAITools(organisation, options).then((request) => request(axios, basePath));
|
|
1253
|
+
},
|
|
1254
|
+
/**
|
|
1255
|
+
* 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
|
|
1256
|
+
* @summary List tool executions for monitoring and debugging
|
|
1257
|
+
* @param {string} organisation The organisation ID
|
|
1258
|
+
* @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
|
|
1259
|
+
* @param {number} [limit] Maximum number of executions to return
|
|
1260
|
+
* @param {*} [options] Override http request option.
|
|
1261
|
+
* @throws {RequiredError}
|
|
1262
|
+
*/
|
|
1263
|
+
listToolExecutions(organisation, status, limit, options) {
|
|
1264
|
+
return localVarFp.listToolExecutions(organisation, status, limit, options).then((request) => request(axios, basePath));
|
|
1265
|
+
},
|
|
957
1266
|
/**
|
|
958
1267
|
*
|
|
959
1268
|
* @summary Update AI configuration for an organization
|
|
@@ -976,7 +1285,7 @@ exports.AIServicesApiFactory = AIServicesApiFactory;
|
|
|
976
1285
|
*/
|
|
977
1286
|
class AIServicesApi extends base_1.BaseAPI {
|
|
978
1287
|
/**
|
|
979
|
-
* 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
|
|
1288
|
+
* 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
|
|
980
1289
|
* @summary Chat inference via API Gateway (buffered responses) with multimodal support
|
|
981
1290
|
* @param {string} organisation The organisation ID
|
|
982
1291
|
* @param {ChatInferenceRequest} chatInferenceRequest Chat request with optional multimodal content blocks
|
|
@@ -1070,6 +1379,18 @@ class AIServicesApi extends base_1.BaseAPI {
|
|
|
1070
1379
|
getAIUsageStats(organisation, month, options) {
|
|
1071
1380
|
return (0, exports.AIServicesApiFp)(this.configuration).getAIUsageStats(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
1072
1381
|
}
|
|
1382
|
+
/**
|
|
1383
|
+
* 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
|
|
1384
|
+
* @summary Get async tool execution status and result
|
|
1385
|
+
* @param {string} organisation The organisation ID
|
|
1386
|
+
* @param {string} executionId Tool execution identifier
|
|
1387
|
+
* @param {*} [options] Override http request option.
|
|
1388
|
+
* @throws {RequiredError}
|
|
1389
|
+
* @memberof AIServicesApi
|
|
1390
|
+
*/
|
|
1391
|
+
getToolExecutionStatus(organisation, executionId, options) {
|
|
1392
|
+
return (0, exports.AIServicesApiFp)(this.configuration).getToolExecutionStatus(organisation, executionId, options).then((request) => request(this.axios, this.basePath));
|
|
1393
|
+
}
|
|
1073
1394
|
/**
|
|
1074
1395
|
* 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
|
|
1075
1396
|
* @summary Generate images with Amazon Nova Canvas
|
|
@@ -1110,6 +1431,41 @@ class AIServicesApi extends base_1.BaseAPI {
|
|
|
1110
1431
|
listAISessions(organisation, userId, sessionGroup, limit, offset, model, options) {
|
|
1111
1432
|
return (0, exports.AIServicesApiFp)(this.configuration).listAISessions(organisation, userId, sessionGroup, limit, offset, model, options).then((request) => request(this.axios, this.basePath));
|
|
1112
1433
|
}
|
|
1434
|
+
/**
|
|
1435
|
+
* Retrieves just the names of available built-in tools. Useful for quick validation or UI dropdown population without the full tool specifications.
|
|
1436
|
+
* @summary List tool names only (lightweight response)
|
|
1437
|
+
* @param {string} organisation The organisation ID
|
|
1438
|
+
* @param {*} [options] Override http request option.
|
|
1439
|
+
* @throws {RequiredError}
|
|
1440
|
+
* @memberof AIServicesApi
|
|
1441
|
+
*/
|
|
1442
|
+
listAIToolNames(organisation, options) {
|
|
1443
|
+
return (0, exports.AIServicesApiFp)(this.configuration).listAIToolNames(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
1444
|
+
}
|
|
1445
|
+
/**
|
|
1446
|
+
* 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)
|
|
1447
|
+
* @summary List available built-in tools for function calling
|
|
1448
|
+
* @param {string} organisation The organisation ID
|
|
1449
|
+
* @param {*} [options] Override http request option.
|
|
1450
|
+
* @throws {RequiredError}
|
|
1451
|
+
* @memberof AIServicesApi
|
|
1452
|
+
*/
|
|
1453
|
+
listAITools(organisation, options) {
|
|
1454
|
+
return (0, exports.AIServicesApiFp)(this.configuration).listAITools(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
1455
|
+
}
|
|
1456
|
+
/**
|
|
1457
|
+
* 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
|
|
1458
|
+
* @summary List tool executions for monitoring and debugging
|
|
1459
|
+
* @param {string} organisation The organisation ID
|
|
1460
|
+
* @param {ListToolExecutionsStatusEnum} [status] Filter by execution status
|
|
1461
|
+
* @param {number} [limit] Maximum number of executions to return
|
|
1462
|
+
* @param {*} [options] Override http request option.
|
|
1463
|
+
* @throws {RequiredError}
|
|
1464
|
+
* @memberof AIServicesApi
|
|
1465
|
+
*/
|
|
1466
|
+
listToolExecutions(organisation, status, limit, options) {
|
|
1467
|
+
return (0, exports.AIServicesApiFp)(this.configuration).listToolExecutions(organisation, status, limit, options).then((request) => request(this.axios, this.basePath));
|
|
1468
|
+
}
|
|
1113
1469
|
/**
|
|
1114
1470
|
*
|
|
1115
1471
|
* @summary Update AI configuration for an organization
|
|
@@ -1134,6 +1490,15 @@ exports.ListAIModelsFeatureEnum = {
|
|
|
1134
1490
|
Streaming: 'streaming',
|
|
1135
1491
|
All: 'all'
|
|
1136
1492
|
};
|
|
1493
|
+
/**
|
|
1494
|
+
* @export
|
|
1495
|
+
*/
|
|
1496
|
+
exports.ListToolExecutionsStatusEnum = {
|
|
1497
|
+
Pending: 'pending',
|
|
1498
|
+
Running: 'running',
|
|
1499
|
+
Complete: 'complete',
|
|
1500
|
+
Failed: 'failed'
|
|
1501
|
+
};
|
|
1137
1502
|
/**
|
|
1138
1503
|
* ApplicationsApi - axios parameter creator
|
|
1139
1504
|
* @export
|
|
@@ -1144,15 +1509,15 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
1144
1509
|
*
|
|
1145
1510
|
* @summary Create a new application
|
|
1146
1511
|
* @param {string} organisation The organisation ID
|
|
1147
|
-
* @param {
|
|
1512
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1148
1513
|
* @param {*} [options] Override http request option.
|
|
1149
1514
|
* @throws {RequiredError}
|
|
1150
1515
|
*/
|
|
1151
|
-
createApplication: (organisation,
|
|
1516
|
+
createApplication: (organisation, createApplicationRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
1152
1517
|
// verify required parameter 'organisation' is not null or undefined
|
|
1153
1518
|
(0, common_1.assertParamExists)('createApplication', 'organisation', organisation);
|
|
1154
|
-
// verify required parameter '
|
|
1155
|
-
(0, common_1.assertParamExists)('createApplication', '
|
|
1519
|
+
// verify required parameter 'createApplicationRequest' is not null or undefined
|
|
1520
|
+
(0, common_1.assertParamExists)('createApplication', 'createApplicationRequest', createApplicationRequest);
|
|
1156
1521
|
const localVarPath = `/api/v3/organizations/{organisation}/applications`
|
|
1157
1522
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
1158
1523
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -1171,7 +1536,7 @@ const ApplicationsApiAxiosParamCreator = function (configuration) {
|
|
|
1171
1536
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1172
1537
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1173
1538
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1174
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
1539
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createApplicationRequest, localVarRequestOptions, configuration);
|
|
1175
1540
|
return {
|
|
1176
1541
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1177
1542
|
options: localVarRequestOptions,
|
|
@@ -1327,14 +1692,14 @@ const ApplicationsApiFp = function (configuration) {
|
|
|
1327
1692
|
*
|
|
1328
1693
|
* @summary Create a new application
|
|
1329
1694
|
* @param {string} organisation The organisation ID
|
|
1330
|
-
* @param {
|
|
1695
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1331
1696
|
* @param {*} [options] Override http request option.
|
|
1332
1697
|
* @throws {RequiredError}
|
|
1333
1698
|
*/
|
|
1334
|
-
createApplication(organisation,
|
|
1699
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1335
1700
|
var _a, _b, _c;
|
|
1336
1701
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1337
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation,
|
|
1702
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApplication(organisation, createApplicationRequest, options);
|
|
1338
1703
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1339
1704
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ApplicationsApi.createApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1340
1705
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -1420,12 +1785,12 @@ const ApplicationsApiFactory = function (configuration, basePath, axios) {
|
|
|
1420
1785
|
*
|
|
1421
1786
|
* @summary Create a new application
|
|
1422
1787
|
* @param {string} organisation The organisation ID
|
|
1423
|
-
* @param {
|
|
1788
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1424
1789
|
* @param {*} [options] Override http request option.
|
|
1425
1790
|
* @throws {RequiredError}
|
|
1426
1791
|
*/
|
|
1427
|
-
createApplication(organisation,
|
|
1428
|
-
return localVarFp.createApplication(organisation,
|
|
1792
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1793
|
+
return localVarFp.createApplication(organisation, createApplicationRequest, options).then((request) => request(axios, basePath));
|
|
1429
1794
|
},
|
|
1430
1795
|
/**
|
|
1431
1796
|
*
|
|
@@ -1483,13 +1848,13 @@ class ApplicationsApi extends base_1.BaseAPI {
|
|
|
1483
1848
|
*
|
|
1484
1849
|
* @summary Create a new application
|
|
1485
1850
|
* @param {string} organisation The organisation ID
|
|
1486
|
-
* @param {
|
|
1851
|
+
* @param {CreateApplicationRequest} createApplicationRequest
|
|
1487
1852
|
* @param {*} [options] Override http request option.
|
|
1488
1853
|
* @throws {RequiredError}
|
|
1489
1854
|
* @memberof ApplicationsApi
|
|
1490
1855
|
*/
|
|
1491
|
-
createApplication(organisation,
|
|
1492
|
-
return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(organisation,
|
|
1856
|
+
createApplication(organisation, createApplicationRequest, options) {
|
|
1857
|
+
return (0, exports.ApplicationsApiFp)(this.configuration).createApplication(organisation, createApplicationRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1493
1858
|
}
|
|
1494
1859
|
/**
|
|
1495
1860
|
*
|
|
@@ -2349,7 +2714,7 @@ const ComposeApiAxiosParamCreator = function (configuration) {
|
|
|
2349
2714
|
(0, common_1.assertParamExists)('getEnvironmentCompose', 'application', application);
|
|
2350
2715
|
// verify required parameter 'environment' is not null or undefined
|
|
2351
2716
|
(0, common_1.assertParamExists)('getEnvironmentCompose', 'environment', environment);
|
|
2352
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/compose`
|
|
2717
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/compose`
|
|
2353
2718
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
2354
2719
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
2355
2720
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
@@ -2374,7 +2739,7 @@ const ComposeApiAxiosParamCreator = function (configuration) {
|
|
|
2374
2739
|
};
|
|
2375
2740
|
}),
|
|
2376
2741
|
/**
|
|
2377
|
-
* 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\').
|
|
2742
|
+
* 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\').
|
|
2378
2743
|
* @summary Validate a compose file
|
|
2379
2744
|
* @param {string} organisation The organisation ID
|
|
2380
2745
|
* @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.
|
|
@@ -2443,7 +2808,7 @@ const ComposeApiFp = function (configuration) {
|
|
|
2443
2808
|
});
|
|
2444
2809
|
},
|
|
2445
2810
|
/**
|
|
2446
|
-
* 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\').
|
|
2811
|
+
* 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\').
|
|
2447
2812
|
* @summary Validate a compose file
|
|
2448
2813
|
* @param {string} organisation The organisation ID
|
|
2449
2814
|
* @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.
|
|
@@ -2483,7 +2848,7 @@ const ComposeApiFactory = function (configuration, basePath, axios) {
|
|
|
2483
2848
|
return localVarFp.getEnvironmentCompose(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
2484
2849
|
},
|
|
2485
2850
|
/**
|
|
2486
|
-
* 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\').
|
|
2851
|
+
* 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\').
|
|
2487
2852
|
* @summary Validate a compose file
|
|
2488
2853
|
* @param {string} organisation The organisation ID
|
|
2489
2854
|
* @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.
|
|
@@ -2518,7 +2883,7 @@ class ComposeApi extends base_1.BaseAPI {
|
|
|
2518
2883
|
return (0, exports.ComposeApiFp)(this.configuration).getEnvironmentCompose(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
2519
2884
|
}
|
|
2520
2885
|
/**
|
|
2521
|
-
* 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\').
|
|
2886
|
+
* 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\').
|
|
2522
2887
|
* @summary Validate a compose file
|
|
2523
2888
|
* @param {string} organisation The organisation ID
|
|
2524
2889
|
* @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.
|
|
@@ -2821,7 +3186,7 @@ const CrawlerSchedulesApiAxiosParamCreator = function (configuration) {
|
|
|
2821
3186
|
(0, common_1.assertParamExists)('crawlerSchedulesDelete', 'crawler', crawler);
|
|
2822
3187
|
// verify required parameter 'crawlerSchedule' is not null or undefined
|
|
2823
3188
|
(0, common_1.assertParamExists)('crawlerSchedulesDelete', 'crawlerSchedule', crawlerSchedule);
|
|
2824
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules`
|
|
3189
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule}`
|
|
2825
3190
|
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
2826
3191
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
2827
3192
|
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
|
|
@@ -2852,23 +3217,27 @@ const CrawlerSchedulesApiAxiosParamCreator = function (configuration) {
|
|
|
2852
3217
|
* @param {string} organization Organization identifier
|
|
2853
3218
|
* @param {string} project Project identifier
|
|
2854
3219
|
* @param {string} crawler Crawler identifier
|
|
3220
|
+
* @param {string} crawlerSchedule Crawler schedule identifier
|
|
2855
3221
|
* @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
|
|
2856
3222
|
* @param {*} [options] Override http request option.
|
|
2857
3223
|
* @throws {RequiredError}
|
|
2858
3224
|
*/
|
|
2859
|
-
crawlerSchedulesEdit: (organization, project, crawler, v2CrawlerScheduleRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3225
|
+
crawlerSchedulesEdit: (organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
2860
3226
|
// verify required parameter 'organization' is not null or undefined
|
|
2861
3227
|
(0, common_1.assertParamExists)('crawlerSchedulesEdit', 'organization', organization);
|
|
2862
3228
|
// verify required parameter 'project' is not null or undefined
|
|
2863
3229
|
(0, common_1.assertParamExists)('crawlerSchedulesEdit', 'project', project);
|
|
2864
3230
|
// verify required parameter 'crawler' is not null or undefined
|
|
2865
3231
|
(0, common_1.assertParamExists)('crawlerSchedulesEdit', 'crawler', crawler);
|
|
3232
|
+
// verify required parameter 'crawlerSchedule' is not null or undefined
|
|
3233
|
+
(0, common_1.assertParamExists)('crawlerSchedulesEdit', 'crawlerSchedule', crawlerSchedule);
|
|
2866
3234
|
// verify required parameter 'v2CrawlerScheduleRequest' is not null or undefined
|
|
2867
3235
|
(0, common_1.assertParamExists)('crawlerSchedulesEdit', 'v2CrawlerScheduleRequest', v2CrawlerScheduleRequest);
|
|
2868
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules`
|
|
3236
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/schedules/{crawler_schedule}`
|
|
2869
3237
|
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
2870
3238
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
2871
|
-
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
|
|
3239
|
+
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)))
|
|
3240
|
+
.replace(`{${"crawler_schedule"}}`, encodeURIComponent(String(crawlerSchedule)));
|
|
2872
3241
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2873
3242
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2874
3243
|
let baseOptions;
|
|
@@ -3029,14 +3398,15 @@ const CrawlerSchedulesApiFp = function (configuration) {
|
|
|
3029
3398
|
* @param {string} organization Organization identifier
|
|
3030
3399
|
* @param {string} project Project identifier
|
|
3031
3400
|
* @param {string} crawler Crawler identifier
|
|
3401
|
+
* @param {string} crawlerSchedule Crawler schedule identifier
|
|
3032
3402
|
* @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
|
|
3033
3403
|
* @param {*} [options] Override http request option.
|
|
3034
3404
|
* @throws {RequiredError}
|
|
3035
3405
|
*/
|
|
3036
|
-
crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
|
|
3406
|
+
crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
|
|
3037
3407
|
var _a, _b, _c;
|
|
3038
3408
|
return __awaiter(this, void 0, void 0, function* () {
|
|
3039
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options);
|
|
3409
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options);
|
|
3040
3410
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3041
3411
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CrawlerSchedulesApi.crawlerSchedulesEdit']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3042
3412
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -3121,12 +3491,13 @@ const CrawlerSchedulesApiFactory = function (configuration, basePath, axios) {
|
|
|
3121
3491
|
* @param {string} organization Organization identifier
|
|
3122
3492
|
* @param {string} project Project identifier
|
|
3123
3493
|
* @param {string} crawler Crawler identifier
|
|
3494
|
+
* @param {string} crawlerSchedule Crawler schedule identifier
|
|
3124
3495
|
* @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
|
|
3125
3496
|
* @param {*} [options] Override http request option.
|
|
3126
3497
|
* @throws {RequiredError}
|
|
3127
3498
|
*/
|
|
3128
|
-
crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
|
|
3129
|
-
return localVarFp.crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options).then((request) => request(axios, basePath));
|
|
3499
|
+
crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
|
|
3500
|
+
return localVarFp.crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options).then((request) => request(axios, basePath));
|
|
3130
3501
|
},
|
|
3131
3502
|
/**
|
|
3132
3503
|
*
|
|
@@ -3197,13 +3568,14 @@ class CrawlerSchedulesApi extends base_1.BaseAPI {
|
|
|
3197
3568
|
* @param {string} organization Organization identifier
|
|
3198
3569
|
* @param {string} project Project identifier
|
|
3199
3570
|
* @param {string} crawler Crawler identifier
|
|
3571
|
+
* @param {string} crawlerSchedule Crawler schedule identifier
|
|
3200
3572
|
* @param {V2CrawlerScheduleRequest} v2CrawlerScheduleRequest
|
|
3201
3573
|
* @param {*} [options] Override http request option.
|
|
3202
3574
|
* @throws {RequiredError}
|
|
3203
3575
|
* @memberof CrawlerSchedulesApi
|
|
3204
3576
|
*/
|
|
3205
|
-
crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options) {
|
|
3206
|
-
return (0, exports.CrawlerSchedulesApiFp)(this.configuration).crawlerSchedulesEdit(organization, project, crawler, v2CrawlerScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3577
|
+
crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options) {
|
|
3578
|
+
return (0, exports.CrawlerSchedulesApiFp)(this.configuration).crawlerSchedulesEdit(organization, project, crawler, crawlerSchedule, v2CrawlerScheduleRequest, options).then((request) => request(this.axios, this.basePath));
|
|
3207
3579
|
}
|
|
3208
3580
|
/**
|
|
3209
3581
|
*
|
|
@@ -3399,24 +3771,24 @@ const CrawlersApiAxiosParamCreator = function (configuration) {
|
|
|
3399
3771
|
}),
|
|
3400
3772
|
/**
|
|
3401
3773
|
*
|
|
3402
|
-
* @summary
|
|
3774
|
+
* @summary Run a crawler
|
|
3403
3775
|
* @param {string} organization Organization identifier
|
|
3404
3776
|
* @param {string} project Project identifier
|
|
3405
|
-
* @param {string} crawler
|
|
3406
|
-
* @param {
|
|
3777
|
+
* @param {string} crawler Crawler identifier
|
|
3778
|
+
* @param {CrawlersRunRequest} crawlersRunRequest
|
|
3407
3779
|
* @param {*} [options] Override http request option.
|
|
3408
3780
|
* @throws {RequiredError}
|
|
3409
3781
|
*/
|
|
3410
|
-
|
|
3782
|
+
crawlersRun: (organization, project, crawler, crawlersRunRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3411
3783
|
// verify required parameter 'organization' is not null or undefined
|
|
3412
|
-
(0, common_1.assertParamExists)('
|
|
3784
|
+
(0, common_1.assertParamExists)('crawlersRun', 'organization', organization);
|
|
3413
3785
|
// verify required parameter 'project' is not null or undefined
|
|
3414
|
-
(0, common_1.assertParamExists)('
|
|
3786
|
+
(0, common_1.assertParamExists)('crawlersRun', 'project', project);
|
|
3415
3787
|
// verify required parameter 'crawler' is not null or undefined
|
|
3416
|
-
(0, common_1.assertParamExists)('
|
|
3417
|
-
// verify required parameter '
|
|
3418
|
-
(0, common_1.assertParamExists)('
|
|
3419
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}`
|
|
3788
|
+
(0, common_1.assertParamExists)('crawlersRun', 'crawler', crawler);
|
|
3789
|
+
// verify required parameter 'crawlersRunRequest' is not null or undefined
|
|
3790
|
+
(0, common_1.assertParamExists)('crawlersRun', 'crawlersRunRequest', crawlersRunRequest);
|
|
3791
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}/run`
|
|
3420
3792
|
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
3421
3793
|
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
3422
3794
|
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
|
|
@@ -3426,7 +3798,7 @@ const CrawlersApiAxiosParamCreator = function (configuration) {
|
|
|
3426
3798
|
if (configuration) {
|
|
3427
3799
|
baseOptions = configuration.baseOptions;
|
|
3428
3800
|
}
|
|
3429
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
3801
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
3430
3802
|
const localVarHeaderParameter = {};
|
|
3431
3803
|
const localVarQueryParameter = {};
|
|
3432
3804
|
// authentication BearerAuth required
|
|
@@ -3436,7 +3808,52 @@ const CrawlersApiAxiosParamCreator = function (configuration) {
|
|
|
3436
3808
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3437
3809
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3438
3810
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3439
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
3811
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(crawlersRunRequest, localVarRequestOptions, configuration);
|
|
3812
|
+
return {
|
|
3813
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3814
|
+
options: localVarRequestOptions,
|
|
3815
|
+
};
|
|
3816
|
+
}),
|
|
3817
|
+
/**
|
|
3818
|
+
*
|
|
3819
|
+
* @summary Update a crawler
|
|
3820
|
+
* @param {string} organization Organization identifier
|
|
3821
|
+
* @param {string} project Project identifier
|
|
3822
|
+
* @param {string} crawler
|
|
3823
|
+
* @param {V2CrawlerRequest} v2CrawlerRequest
|
|
3824
|
+
* @param {*} [options] Override http request option.
|
|
3825
|
+
* @throws {RequiredError}
|
|
3826
|
+
*/
|
|
3827
|
+
crawlersUpdate: (organization, project, crawler, v2CrawlerRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
3828
|
+
// verify required parameter 'organization' is not null or undefined
|
|
3829
|
+
(0, common_1.assertParamExists)('crawlersUpdate', 'organization', organization);
|
|
3830
|
+
// verify required parameter 'project' is not null or undefined
|
|
3831
|
+
(0, common_1.assertParamExists)('crawlersUpdate', 'project', project);
|
|
3832
|
+
// verify required parameter 'crawler' is not null or undefined
|
|
3833
|
+
(0, common_1.assertParamExists)('crawlersUpdate', 'crawler', crawler);
|
|
3834
|
+
// verify required parameter 'v2CrawlerRequest' is not null or undefined
|
|
3835
|
+
(0, common_1.assertParamExists)('crawlersUpdate', 'v2CrawlerRequest', v2CrawlerRequest);
|
|
3836
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/crawlers/{crawler}`
|
|
3837
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
3838
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
3839
|
+
.replace(`{${"crawler"}}`, encodeURIComponent(String(crawler)));
|
|
3840
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3841
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3842
|
+
let baseOptions;
|
|
3843
|
+
if (configuration) {
|
|
3844
|
+
baseOptions = configuration.baseOptions;
|
|
3845
|
+
}
|
|
3846
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
3847
|
+
const localVarHeaderParameter = {};
|
|
3848
|
+
const localVarQueryParameter = {};
|
|
3849
|
+
// authentication BearerAuth required
|
|
3850
|
+
// http bearer authentication required
|
|
3851
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3852
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
3853
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3854
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3855
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3856
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2CrawlerRequest, localVarRequestOptions, configuration);
|
|
3440
3857
|
return {
|
|
3441
3858
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3442
3859
|
options: localVarRequestOptions,
|
|
@@ -3523,6 +3940,25 @@ const CrawlersApiFp = function (configuration) {
|
|
|
3523
3940
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3524
3941
|
});
|
|
3525
3942
|
},
|
|
3943
|
+
/**
|
|
3944
|
+
*
|
|
3945
|
+
* @summary Run a crawler
|
|
3946
|
+
* @param {string} organization Organization identifier
|
|
3947
|
+
* @param {string} project Project identifier
|
|
3948
|
+
* @param {string} crawler Crawler identifier
|
|
3949
|
+
* @param {CrawlersRunRequest} crawlersRunRequest
|
|
3950
|
+
* @param {*} [options] Override http request option.
|
|
3951
|
+
* @throws {RequiredError}
|
|
3952
|
+
*/
|
|
3953
|
+
crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
|
|
3954
|
+
var _a, _b, _c;
|
|
3955
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
3956
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.crawlersRun(organization, project, crawler, crawlersRunRequest, options);
|
|
3957
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3958
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CrawlersApi.crawlersRun']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3959
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3960
|
+
});
|
|
3961
|
+
},
|
|
3526
3962
|
/**
|
|
3527
3963
|
*
|
|
3528
3964
|
* @summary Update a crawler
|
|
@@ -3599,6 +4035,19 @@ const CrawlersApiFactory = function (configuration, basePath, axios) {
|
|
|
3599
4035
|
crawlersRead(organization, project, crawler, options) {
|
|
3600
4036
|
return localVarFp.crawlersRead(organization, project, crawler, options).then((request) => request(axios, basePath));
|
|
3601
4037
|
},
|
|
4038
|
+
/**
|
|
4039
|
+
*
|
|
4040
|
+
* @summary Run a crawler
|
|
4041
|
+
* @param {string} organization Organization identifier
|
|
4042
|
+
* @param {string} project Project identifier
|
|
4043
|
+
* @param {string} crawler Crawler identifier
|
|
4044
|
+
* @param {CrawlersRunRequest} crawlersRunRequest
|
|
4045
|
+
* @param {*} [options] Override http request option.
|
|
4046
|
+
* @throws {RequiredError}
|
|
4047
|
+
*/
|
|
4048
|
+
crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
|
|
4049
|
+
return localVarFp.crawlersRun(organization, project, crawler, crawlersRunRequest, options).then((request) => request(axios, basePath));
|
|
4050
|
+
},
|
|
3602
4051
|
/**
|
|
3603
4052
|
*
|
|
3604
4053
|
* @summary Update a crawler
|
|
@@ -3673,6 +4122,20 @@ class CrawlersApi extends base_1.BaseAPI {
|
|
|
3673
4122
|
crawlersRead(organization, project, crawler, options) {
|
|
3674
4123
|
return (0, exports.CrawlersApiFp)(this.configuration).crawlersRead(organization, project, crawler, options).then((request) => request(this.axios, this.basePath));
|
|
3675
4124
|
}
|
|
4125
|
+
/**
|
|
4126
|
+
*
|
|
4127
|
+
* @summary Run a crawler
|
|
4128
|
+
* @param {string} organization Organization identifier
|
|
4129
|
+
* @param {string} project Project identifier
|
|
4130
|
+
* @param {string} crawler Crawler identifier
|
|
4131
|
+
* @param {CrawlersRunRequest} crawlersRunRequest
|
|
4132
|
+
* @param {*} [options] Override http request option.
|
|
4133
|
+
* @throws {RequiredError}
|
|
4134
|
+
* @memberof CrawlersApi
|
|
4135
|
+
*/
|
|
4136
|
+
crawlersRun(organization, project, crawler, crawlersRunRequest, options) {
|
|
4137
|
+
return (0, exports.CrawlersApiFp)(this.configuration).crawlersRun(organization, project, crawler, crawlersRunRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4138
|
+
}
|
|
3676
4139
|
/**
|
|
3677
4140
|
*
|
|
3678
4141
|
* @summary Update a crawler
|
|
@@ -5804,118 +6267,6 @@ exports.SyncToEnvironmentTypeEnum = {
|
|
|
5804
6267
|
Database: 'database',
|
|
5805
6268
|
Filesystem: 'filesystem'
|
|
5806
6269
|
};
|
|
5807
|
-
/**
|
|
5808
|
-
* FormsApi - axios parameter creator
|
|
5809
|
-
* @export
|
|
5810
|
-
*/
|
|
5811
|
-
const FormsApiAxiosParamCreator = function (configuration) {
|
|
5812
|
-
return {
|
|
5813
|
-
/**
|
|
5814
|
-
* Retrieve form submissions via API.
|
|
5815
|
-
* @summary List form submissions
|
|
5816
|
-
* @param {string} [quantUrl]
|
|
5817
|
-
* @param {object} [body]
|
|
5818
|
-
* @param {*} [options] Override http request option.
|
|
5819
|
-
* @throws {RequiredError}
|
|
5820
|
-
*/
|
|
5821
|
-
listFormSubmissions: (quantUrl, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
5822
|
-
const localVarPath = `/api/v1/form-submissions`;
|
|
5823
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
5824
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
5825
|
-
let baseOptions;
|
|
5826
|
-
if (configuration) {
|
|
5827
|
-
baseOptions = configuration.baseOptions;
|
|
5828
|
-
}
|
|
5829
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
5830
|
-
const localVarHeaderParameter = {};
|
|
5831
|
-
const localVarQueryParameter = {};
|
|
5832
|
-
// authentication headerAuth required
|
|
5833
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
5834
|
-
if (quantUrl !== undefined) {
|
|
5835
|
-
localVarQueryParameter['quant_url'] = quantUrl;
|
|
5836
|
-
}
|
|
5837
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
5838
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5839
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5840
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5841
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
5842
|
-
return {
|
|
5843
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5844
|
-
options: localVarRequestOptions,
|
|
5845
|
-
};
|
|
5846
|
-
}),
|
|
5847
|
-
};
|
|
5848
|
-
};
|
|
5849
|
-
exports.FormsApiAxiosParamCreator = FormsApiAxiosParamCreator;
|
|
5850
|
-
/**
|
|
5851
|
-
* FormsApi - functional programming interface
|
|
5852
|
-
* @export
|
|
5853
|
-
*/
|
|
5854
|
-
const FormsApiFp = function (configuration) {
|
|
5855
|
-
const localVarAxiosParamCreator = (0, exports.FormsApiAxiosParamCreator)(configuration);
|
|
5856
|
-
return {
|
|
5857
|
-
/**
|
|
5858
|
-
* Retrieve form submissions via API.
|
|
5859
|
-
* @summary List form submissions
|
|
5860
|
-
* @param {string} [quantUrl]
|
|
5861
|
-
* @param {object} [body]
|
|
5862
|
-
* @param {*} [options] Override http request option.
|
|
5863
|
-
* @throws {RequiredError}
|
|
5864
|
-
*/
|
|
5865
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5866
|
-
var _a, _b, _c;
|
|
5867
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
5868
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listFormSubmissions(quantUrl, body, options);
|
|
5869
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5870
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['FormsApi.listFormSubmissions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5871
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5872
|
-
});
|
|
5873
|
-
},
|
|
5874
|
-
};
|
|
5875
|
-
};
|
|
5876
|
-
exports.FormsApiFp = FormsApiFp;
|
|
5877
|
-
/**
|
|
5878
|
-
* FormsApi - factory interface
|
|
5879
|
-
* @export
|
|
5880
|
-
*/
|
|
5881
|
-
const FormsApiFactory = function (configuration, basePath, axios) {
|
|
5882
|
-
const localVarFp = (0, exports.FormsApiFp)(configuration);
|
|
5883
|
-
return {
|
|
5884
|
-
/**
|
|
5885
|
-
* Retrieve form submissions via API.
|
|
5886
|
-
* @summary List form submissions
|
|
5887
|
-
* @param {string} [quantUrl]
|
|
5888
|
-
* @param {object} [body]
|
|
5889
|
-
* @param {*} [options] Override http request option.
|
|
5890
|
-
* @throws {RequiredError}
|
|
5891
|
-
*/
|
|
5892
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5893
|
-
return localVarFp.listFormSubmissions(quantUrl, body, options).then((request) => request(axios, basePath));
|
|
5894
|
-
},
|
|
5895
|
-
};
|
|
5896
|
-
};
|
|
5897
|
-
exports.FormsApiFactory = FormsApiFactory;
|
|
5898
|
-
/**
|
|
5899
|
-
* FormsApi - object-oriented interface
|
|
5900
|
-
* @export
|
|
5901
|
-
* @class FormsApi
|
|
5902
|
-
* @extends {BaseAPI}
|
|
5903
|
-
*/
|
|
5904
|
-
class FormsApi extends base_1.BaseAPI {
|
|
5905
|
-
/**
|
|
5906
|
-
* Retrieve form submissions via API.
|
|
5907
|
-
* @summary List form submissions
|
|
5908
|
-
* @param {string} [quantUrl]
|
|
5909
|
-
* @param {object} [body]
|
|
5910
|
-
* @param {*} [options] Override http request option.
|
|
5911
|
-
* @throws {RequiredError}
|
|
5912
|
-
* @memberof FormsApi
|
|
5913
|
-
*/
|
|
5914
|
-
listFormSubmissions(quantUrl, body, options) {
|
|
5915
|
-
return (0, exports.FormsApiFp)(this.configuration).listFormSubmissions(quantUrl, body, options).then((request) => request(this.axios, this.basePath));
|
|
5916
|
-
}
|
|
5917
|
-
}
|
|
5918
|
-
exports.FormsApi = FormsApi;
|
|
5919
6270
|
/**
|
|
5920
6271
|
* HeadersApi - axios parameter creator
|
|
5921
6272
|
* @export
|
|
@@ -6383,10 +6734,11 @@ const KVApiAxiosParamCreator = function (configuration) {
|
|
|
6383
6734
|
* @param {string} [cursor] Cursor for pagination
|
|
6384
6735
|
* @param {number} [limit] Number of items to return
|
|
6385
6736
|
* @param {string} [search] Search filter for keys
|
|
6737
|
+
* @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \'[ENCRYPTED]\' for security.
|
|
6386
6738
|
* @param {*} [options] Override http request option.
|
|
6387
6739
|
* @throws {RequiredError}
|
|
6388
6740
|
*/
|
|
6389
|
-
kVItemsList: (organization, project, storeId, cursor, limit, search, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6741
|
+
kVItemsList: (organization, project, storeId, cursor, limit, search, includeValues, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
6390
6742
|
// verify required parameter 'organization' is not null or undefined
|
|
6391
6743
|
(0, common_1.assertParamExists)('kVItemsList', 'organization', organization);
|
|
6392
6744
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -6418,6 +6770,9 @@ const KVApiAxiosParamCreator = function (configuration) {
|
|
|
6418
6770
|
if (search !== undefined) {
|
|
6419
6771
|
localVarQueryParameter['search'] = search;
|
|
6420
6772
|
}
|
|
6773
|
+
if (includeValues !== undefined) {
|
|
6774
|
+
localVarQueryParameter['include_values'] = includeValues;
|
|
6775
|
+
}
|
|
6421
6776
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
6422
6777
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
6423
6778
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -6427,7 +6782,7 @@ const KVApiAxiosParamCreator = function (configuration) {
|
|
|
6427
6782
|
};
|
|
6428
6783
|
}),
|
|
6429
6784
|
/**
|
|
6430
|
-
*
|
|
6785
|
+
* 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.
|
|
6431
6786
|
* @summary Get an item from a kv store
|
|
6432
6787
|
* @param {string} organization
|
|
6433
6788
|
* @param {string} project
|
|
@@ -6688,20 +7043,21 @@ const KVApiFp = function (configuration) {
|
|
|
6688
7043
|
* @param {string} [cursor] Cursor for pagination
|
|
6689
7044
|
* @param {number} [limit] Number of items to return
|
|
6690
7045
|
* @param {string} [search] Search filter for keys
|
|
7046
|
+
* @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \'[ENCRYPTED]\' for security.
|
|
6691
7047
|
* @param {*} [options] Override http request option.
|
|
6692
7048
|
* @throws {RequiredError}
|
|
6693
7049
|
*/
|
|
6694
|
-
kVItemsList(organization, project, storeId, cursor, limit, search, options) {
|
|
7050
|
+
kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
|
|
6695
7051
|
var _a, _b, _c;
|
|
6696
7052
|
return __awaiter(this, void 0, void 0, function* () {
|
|
6697
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.kVItemsList(organization, project, storeId, cursor, limit, search, options);
|
|
7053
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options);
|
|
6698
7054
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
6699
7055
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['KVApi.kVItemsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
6700
7056
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
6701
7057
|
});
|
|
6702
7058
|
},
|
|
6703
7059
|
/**
|
|
6704
|
-
*
|
|
7060
|
+
* 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.
|
|
6705
7061
|
* @summary Get an item from a kv store
|
|
6706
7062
|
* @param {string} organization
|
|
6707
7063
|
* @param {string} project
|
|
@@ -6843,14 +7199,15 @@ const KVApiFactory = function (configuration, basePath, axios) {
|
|
|
6843
7199
|
* @param {string} [cursor] Cursor for pagination
|
|
6844
7200
|
* @param {number} [limit] Number of items to return
|
|
6845
7201
|
* @param {string} [search] Search filter for keys
|
|
7202
|
+
* @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \'[ENCRYPTED]\' for security.
|
|
6846
7203
|
* @param {*} [options] Override http request option.
|
|
6847
7204
|
* @throws {RequiredError}
|
|
6848
7205
|
*/
|
|
6849
|
-
kVItemsList(organization, project, storeId, cursor, limit, search, options) {
|
|
6850
|
-
return localVarFp.kVItemsList(organization, project, storeId, cursor, limit, search, options).then((request) => request(axios, basePath));
|
|
7206
|
+
kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
|
|
7207
|
+
return localVarFp.kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options).then((request) => request(axios, basePath));
|
|
6851
7208
|
},
|
|
6852
7209
|
/**
|
|
6853
|
-
*
|
|
7210
|
+
* 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.
|
|
6854
7211
|
* @summary Get an item from a kv store
|
|
6855
7212
|
* @param {string} organization
|
|
6856
7213
|
* @param {string} project
|
|
@@ -6972,15 +7329,16 @@ class KVApi extends base_1.BaseAPI {
|
|
|
6972
7329
|
* @param {string} [cursor] Cursor for pagination
|
|
6973
7330
|
* @param {number} [limit] Number of items to return
|
|
6974
7331
|
* @param {string} [search] Search filter for keys
|
|
7332
|
+
* @param {boolean} [includeValues] Include values in the response. Secret values will be redacted as \'[ENCRYPTED]\' for security.
|
|
6975
7333
|
* @param {*} [options] Override http request option.
|
|
6976
7334
|
* @throws {RequiredError}
|
|
6977
7335
|
* @memberof KVApi
|
|
6978
7336
|
*/
|
|
6979
|
-
kVItemsList(organization, project, storeId, cursor, limit, search, options) {
|
|
6980
|
-
return (0, exports.KVApiFp)(this.configuration).kVItemsList(organization, project, storeId, cursor, limit, search, options).then((request) => request(this.axios, this.basePath));
|
|
7337
|
+
kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options) {
|
|
7338
|
+
return (0, exports.KVApiFp)(this.configuration).kVItemsList(organization, project, storeId, cursor, limit, search, includeValues, options).then((request) => request(this.axios, this.basePath));
|
|
6981
7339
|
}
|
|
6982
7340
|
/**
|
|
6983
|
-
*
|
|
7341
|
+
* 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.
|
|
6984
7342
|
* @summary Get an item from a kv store
|
|
6985
7343
|
* @param {string} organization
|
|
6986
7344
|
* @param {string} project
|
|
@@ -7036,22 +7394,19 @@ class KVApi extends base_1.BaseAPI {
|
|
|
7036
7394
|
}
|
|
7037
7395
|
exports.KVApi = KVApi;
|
|
7038
7396
|
/**
|
|
7039
|
-
*
|
|
7397
|
+
* OrganizationsApi - axios parameter creator
|
|
7040
7398
|
* @export
|
|
7041
7399
|
*/
|
|
7042
|
-
const
|
|
7400
|
+
const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
7043
7401
|
return {
|
|
7044
7402
|
/**
|
|
7045
|
-
*
|
|
7046
|
-
* @summary
|
|
7047
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7048
|
-
* @param {string} [metric]
|
|
7049
|
-
* @param {number} [domain]
|
|
7403
|
+
*
|
|
7404
|
+
* @summary Retrieve all organizations
|
|
7050
7405
|
* @param {*} [options] Override http request option.
|
|
7051
7406
|
* @throws {RequiredError}
|
|
7052
7407
|
*/
|
|
7053
|
-
|
|
7054
|
-
const localVarPath = `/api/
|
|
7408
|
+
organizationsList: (options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7409
|
+
const localVarPath = `/api/v2/organizations`;
|
|
7055
7410
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7056
7411
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7057
7412
|
let baseOptions;
|
|
@@ -7061,17 +7416,9 @@ const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7061
7416
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7062
7417
|
const localVarHeaderParameter = {};
|
|
7063
7418
|
const localVarQueryParameter = {};
|
|
7064
|
-
// authentication
|
|
7065
|
-
|
|
7066
|
-
|
|
7067
|
-
localVarQueryParameter['type'] = type;
|
|
7068
|
-
}
|
|
7069
|
-
if (metric !== undefined) {
|
|
7070
|
-
localVarQueryParameter['metric'] = metric;
|
|
7071
|
-
}
|
|
7072
|
-
if (domain !== undefined) {
|
|
7073
|
-
localVarQueryParameter['domain'] = domain;
|
|
7074
|
-
}
|
|
7419
|
+
// authentication BearerAuth required
|
|
7420
|
+
// http bearer authentication required
|
|
7421
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7075
7422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7076
7423
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7077
7424
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7081,16 +7428,17 @@ const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7081
7428
|
};
|
|
7082
7429
|
}),
|
|
7083
7430
|
/**
|
|
7084
|
-
*
|
|
7085
|
-
* @summary Get
|
|
7086
|
-
* @param {
|
|
7087
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7088
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7431
|
+
*
|
|
7432
|
+
* @summary Get details of a single organization
|
|
7433
|
+
* @param {string} organization
|
|
7089
7434
|
* @param {*} [options] Override http request option.
|
|
7090
7435
|
* @throws {RequiredError}
|
|
7091
7436
|
*/
|
|
7092
|
-
|
|
7093
|
-
|
|
7437
|
+
organizationsRead: (organization, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7438
|
+
// verify required parameter 'organization' is not null or undefined
|
|
7439
|
+
(0, common_1.assertParamExists)('organizationsRead', 'organization', organization);
|
|
7440
|
+
const localVarPath = `/api/v2/organizations/{organization}`
|
|
7441
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7094
7442
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7095
7443
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7096
7444
|
let baseOptions;
|
|
@@ -7100,19 +7448,9 @@ const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7100
7448
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7101
7449
|
const localVarHeaderParameter = {};
|
|
7102
7450
|
const localVarQueryParameter = {};
|
|
7103
|
-
// authentication
|
|
7104
|
-
|
|
7105
|
-
|
|
7106
|
-
localVarQueryParameter['domain'] = domain;
|
|
7107
|
-
}
|
|
7108
|
-
if (timeframe !== undefined) {
|
|
7109
|
-
localVarQueryParameter['timeframe'] = timeframe;
|
|
7110
|
-
}
|
|
7111
|
-
if (metrics !== undefined) {
|
|
7112
|
-
for (const [key, value] of Object.entries(metrics)) {
|
|
7113
|
-
localVarQueryParameter[key] = value;
|
|
7114
|
-
}
|
|
7115
|
-
}
|
|
7451
|
+
// authentication BearerAuth required
|
|
7452
|
+
// http bearer authentication required
|
|
7453
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7116
7454
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7117
7455
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7118
7456
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -7123,167 +7461,145 @@ const MetricsApiAxiosParamCreator = function (configuration) {
|
|
|
7123
7461
|
}),
|
|
7124
7462
|
};
|
|
7125
7463
|
};
|
|
7126
|
-
exports.
|
|
7464
|
+
exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
|
|
7127
7465
|
/**
|
|
7128
|
-
*
|
|
7466
|
+
* OrganizationsApi - functional programming interface
|
|
7129
7467
|
* @export
|
|
7130
7468
|
*/
|
|
7131
|
-
const
|
|
7132
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
7469
|
+
const OrganizationsApiFp = function (configuration) {
|
|
7470
|
+
const localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
|
|
7133
7471
|
return {
|
|
7134
7472
|
/**
|
|
7135
|
-
*
|
|
7136
|
-
* @summary
|
|
7137
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7138
|
-
* @param {string} [metric]
|
|
7139
|
-
* @param {number} [domain]
|
|
7473
|
+
*
|
|
7474
|
+
* @summary Retrieve all organizations
|
|
7140
7475
|
* @param {*} [options] Override http request option.
|
|
7141
7476
|
* @throws {RequiredError}
|
|
7142
7477
|
*/
|
|
7143
|
-
|
|
7478
|
+
organizationsList(options) {
|
|
7144
7479
|
var _a, _b, _c;
|
|
7145
7480
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7146
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7481
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
|
|
7147
7482
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7148
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
7483
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7149
7484
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7150
7485
|
});
|
|
7151
7486
|
},
|
|
7152
7487
|
/**
|
|
7153
|
-
*
|
|
7154
|
-
* @summary Get
|
|
7155
|
-
* @param {
|
|
7156
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7157
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7488
|
+
*
|
|
7489
|
+
* @summary Get details of a single organization
|
|
7490
|
+
* @param {string} organization
|
|
7158
7491
|
* @param {*} [options] Override http request option.
|
|
7159
7492
|
* @throws {RequiredError}
|
|
7160
7493
|
*/
|
|
7161
|
-
|
|
7494
|
+
organizationsRead(organization, options) {
|
|
7162
7495
|
var _a, _b, _c;
|
|
7163
7496
|
return __awaiter(this, void 0, void 0, function* () {
|
|
7164
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
7497
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
|
|
7165
7498
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7166
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
7499
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7167
7500
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7168
7501
|
});
|
|
7169
7502
|
},
|
|
7170
7503
|
};
|
|
7171
7504
|
};
|
|
7172
|
-
exports.
|
|
7505
|
+
exports.OrganizationsApiFp = OrganizationsApiFp;
|
|
7173
7506
|
/**
|
|
7174
|
-
*
|
|
7507
|
+
* OrganizationsApi - factory interface
|
|
7175
7508
|
* @export
|
|
7176
7509
|
*/
|
|
7177
|
-
const
|
|
7178
|
-
const localVarFp = (0, exports.
|
|
7510
|
+
const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
7511
|
+
const localVarFp = (0, exports.OrganizationsApiFp)(configuration);
|
|
7179
7512
|
return {
|
|
7180
7513
|
/**
|
|
7181
|
-
*
|
|
7182
|
-
* @summary
|
|
7183
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7184
|
-
* @param {string} [metric]
|
|
7185
|
-
* @param {number} [domain]
|
|
7514
|
+
*
|
|
7515
|
+
* @summary Retrieve all organizations
|
|
7186
7516
|
* @param {*} [options] Override http request option.
|
|
7187
7517
|
* @throws {RequiredError}
|
|
7188
7518
|
*/
|
|
7189
|
-
|
|
7190
|
-
return localVarFp.
|
|
7519
|
+
organizationsList(options) {
|
|
7520
|
+
return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
|
|
7191
7521
|
},
|
|
7192
7522
|
/**
|
|
7193
|
-
*
|
|
7194
|
-
* @summary Get
|
|
7195
|
-
* @param {
|
|
7196
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7197
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7523
|
+
*
|
|
7524
|
+
* @summary Get details of a single organization
|
|
7525
|
+
* @param {string} organization
|
|
7198
7526
|
* @param {*} [options] Override http request option.
|
|
7199
7527
|
* @throws {RequiredError}
|
|
7200
7528
|
*/
|
|
7201
|
-
|
|
7202
|
-
return localVarFp.
|
|
7529
|
+
organizationsRead(organization, options) {
|
|
7530
|
+
return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
|
|
7203
7531
|
},
|
|
7204
7532
|
};
|
|
7205
7533
|
};
|
|
7206
|
-
exports.
|
|
7534
|
+
exports.OrganizationsApiFactory = OrganizationsApiFactory;
|
|
7207
7535
|
/**
|
|
7208
|
-
*
|
|
7536
|
+
* OrganizationsApi - object-oriented interface
|
|
7209
7537
|
* @export
|
|
7210
|
-
* @class
|
|
7538
|
+
* @class OrganizationsApi
|
|
7211
7539
|
* @extends {BaseAPI}
|
|
7212
7540
|
*/
|
|
7213
|
-
class
|
|
7541
|
+
class OrganizationsApi extends base_1.BaseAPI {
|
|
7214
7542
|
/**
|
|
7215
|
-
*
|
|
7216
|
-
* @summary
|
|
7217
|
-
* @param {GetMetricSeriesTypeEnum} [type]
|
|
7218
|
-
* @param {string} [metric]
|
|
7219
|
-
* @param {number} [domain]
|
|
7543
|
+
*
|
|
7544
|
+
* @summary Retrieve all organizations
|
|
7220
7545
|
* @param {*} [options] Override http request option.
|
|
7221
7546
|
* @throws {RequiredError}
|
|
7222
|
-
* @memberof
|
|
7547
|
+
* @memberof OrganizationsApi
|
|
7223
7548
|
*/
|
|
7224
|
-
|
|
7225
|
-
return (0, exports.
|
|
7549
|
+
organizationsList(options) {
|
|
7550
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
|
|
7226
7551
|
}
|
|
7227
7552
|
/**
|
|
7228
|
-
*
|
|
7229
|
-
* @summary Get
|
|
7230
|
-
* @param {
|
|
7231
|
-
* @param {GetMetricsTimeframeEnum} [timeframe]
|
|
7232
|
-
* @param {GetMetricsMetricsParameter} [metrics] Metric name or list of metric names
|
|
7553
|
+
*
|
|
7554
|
+
* @summary Get details of a single organization
|
|
7555
|
+
* @param {string} organization
|
|
7233
7556
|
* @param {*} [options] Override http request option.
|
|
7234
7557
|
* @throws {RequiredError}
|
|
7235
|
-
* @memberof
|
|
7558
|
+
* @memberof OrganizationsApi
|
|
7236
7559
|
*/
|
|
7237
|
-
|
|
7238
|
-
return (0, exports.
|
|
7560
|
+
organizationsRead(organization, options) {
|
|
7561
|
+
return (0, exports.OrganizationsApiFp)(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
|
|
7239
7562
|
}
|
|
7240
7563
|
}
|
|
7241
|
-
exports.
|
|
7242
|
-
/**
|
|
7243
|
-
* @export
|
|
7244
|
-
*/
|
|
7245
|
-
exports.GetMetricSeriesTypeEnum = {
|
|
7246
|
-
Minute: 'minute',
|
|
7247
|
-
Month: 'month',
|
|
7248
|
-
Year: 'year'
|
|
7249
|
-
};
|
|
7250
|
-
/**
|
|
7251
|
-
* @export
|
|
7252
|
-
*/
|
|
7253
|
-
exports.GetMetricsTimeframeEnum = {
|
|
7254
|
-
Hour: 'hour',
|
|
7255
|
-
Month: 'month',
|
|
7256
|
-
Year: 'year'
|
|
7257
|
-
};
|
|
7564
|
+
exports.OrganizationsApi = OrganizationsApi;
|
|
7258
7565
|
/**
|
|
7259
|
-
*
|
|
7566
|
+
* ProjectsApi - axios parameter creator
|
|
7260
7567
|
* @export
|
|
7261
7568
|
*/
|
|
7262
|
-
const
|
|
7569
|
+
const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
7263
7570
|
return {
|
|
7264
7571
|
/**
|
|
7265
7572
|
*
|
|
7266
|
-
* @summary
|
|
7573
|
+
* @summary Create a new project
|
|
7574
|
+
* @param {string} organization
|
|
7575
|
+
* @param {V2ProjectRequest} v2ProjectRequest
|
|
7267
7576
|
* @param {*} [options] Override http request option.
|
|
7268
7577
|
* @throws {RequiredError}
|
|
7269
7578
|
*/
|
|
7270
|
-
|
|
7271
|
-
|
|
7579
|
+
projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7580
|
+
// verify required parameter 'organization' is not null or undefined
|
|
7581
|
+
(0, common_1.assertParamExists)('projectsCreate', 'organization', organization);
|
|
7582
|
+
// verify required parameter 'v2ProjectRequest' is not null or undefined
|
|
7583
|
+
(0, common_1.assertParamExists)('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
|
|
7584
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects`
|
|
7585
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7272
7586
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7273
7587
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7274
7588
|
let baseOptions;
|
|
7275
7589
|
if (configuration) {
|
|
7276
7590
|
baseOptions = configuration.baseOptions;
|
|
7277
7591
|
}
|
|
7278
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
7592
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7279
7593
|
const localVarHeaderParameter = {};
|
|
7280
7594
|
const localVarQueryParameter = {};
|
|
7281
7595
|
// authentication BearerAuth required
|
|
7282
7596
|
// http bearer authentication required
|
|
7283
7597
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7284
7599
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7285
7600
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7286
7601
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7602
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2ProjectRequest, localVarRequestOptions, configuration);
|
|
7287
7603
|
return {
|
|
7288
7604
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7289
7605
|
options: localVarRequestOptions,
|
|
@@ -7291,191 +7607,13 @@ const OrganizationsApiAxiosParamCreator = function (configuration) {
|
|
|
7291
7607
|
}),
|
|
7292
7608
|
/**
|
|
7293
7609
|
*
|
|
7294
|
-
* @summary
|
|
7610
|
+
* @summary Delete a project
|
|
7295
7611
|
* @param {string} organization
|
|
7612
|
+
* @param {string} project
|
|
7296
7613
|
* @param {*} [options] Override http request option.
|
|
7297
7614
|
* @throws {RequiredError}
|
|
7298
7615
|
*/
|
|
7299
|
-
|
|
7300
|
-
// verify required parameter 'organization' is not null or undefined
|
|
7301
|
-
(0, common_1.assertParamExists)('organizationsRead', 'organization', organization);
|
|
7302
|
-
const localVarPath = `/api/v2/organizations/{organization}`
|
|
7303
|
-
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7304
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7305
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7306
|
-
let baseOptions;
|
|
7307
|
-
if (configuration) {
|
|
7308
|
-
baseOptions = configuration.baseOptions;
|
|
7309
|
-
}
|
|
7310
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
7311
|
-
const localVarHeaderParameter = {};
|
|
7312
|
-
const localVarQueryParameter = {};
|
|
7313
|
-
// authentication BearerAuth required
|
|
7314
|
-
// http bearer authentication required
|
|
7315
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7316
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7317
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7318
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7319
|
-
return {
|
|
7320
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7321
|
-
options: localVarRequestOptions,
|
|
7322
|
-
};
|
|
7323
|
-
}),
|
|
7324
|
-
};
|
|
7325
|
-
};
|
|
7326
|
-
exports.OrganizationsApiAxiosParamCreator = OrganizationsApiAxiosParamCreator;
|
|
7327
|
-
/**
|
|
7328
|
-
* OrganizationsApi - functional programming interface
|
|
7329
|
-
* @export
|
|
7330
|
-
*/
|
|
7331
|
-
const OrganizationsApiFp = function (configuration) {
|
|
7332
|
-
const localVarAxiosParamCreator = (0, exports.OrganizationsApiAxiosParamCreator)(configuration);
|
|
7333
|
-
return {
|
|
7334
|
-
/**
|
|
7335
|
-
*
|
|
7336
|
-
* @summary Retrieve all organizations
|
|
7337
|
-
* @param {*} [options] Override http request option.
|
|
7338
|
-
* @throws {RequiredError}
|
|
7339
|
-
*/
|
|
7340
|
-
organizationsList(options) {
|
|
7341
|
-
var _a, _b, _c;
|
|
7342
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7343
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsList(options);
|
|
7344
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7345
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7346
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7347
|
-
});
|
|
7348
|
-
},
|
|
7349
|
-
/**
|
|
7350
|
-
*
|
|
7351
|
-
* @summary Get details of a single organization
|
|
7352
|
-
* @param {string} organization
|
|
7353
|
-
* @param {*} [options] Override http request option.
|
|
7354
|
-
* @throws {RequiredError}
|
|
7355
|
-
*/
|
|
7356
|
-
organizationsRead(organization, options) {
|
|
7357
|
-
var _a, _b, _c;
|
|
7358
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
7359
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.organizationsRead(organization, options);
|
|
7360
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
7361
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OrganizationsApi.organizationsRead']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
7362
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
7363
|
-
});
|
|
7364
|
-
},
|
|
7365
|
-
};
|
|
7366
|
-
};
|
|
7367
|
-
exports.OrganizationsApiFp = OrganizationsApiFp;
|
|
7368
|
-
/**
|
|
7369
|
-
* OrganizationsApi - factory interface
|
|
7370
|
-
* @export
|
|
7371
|
-
*/
|
|
7372
|
-
const OrganizationsApiFactory = function (configuration, basePath, axios) {
|
|
7373
|
-
const localVarFp = (0, exports.OrganizationsApiFp)(configuration);
|
|
7374
|
-
return {
|
|
7375
|
-
/**
|
|
7376
|
-
*
|
|
7377
|
-
* @summary Retrieve all organizations
|
|
7378
|
-
* @param {*} [options] Override http request option.
|
|
7379
|
-
* @throws {RequiredError}
|
|
7380
|
-
*/
|
|
7381
|
-
organizationsList(options) {
|
|
7382
|
-
return localVarFp.organizationsList(options).then((request) => request(axios, basePath));
|
|
7383
|
-
},
|
|
7384
|
-
/**
|
|
7385
|
-
*
|
|
7386
|
-
* @summary Get details of a single organization
|
|
7387
|
-
* @param {string} organization
|
|
7388
|
-
* @param {*} [options] Override http request option.
|
|
7389
|
-
* @throws {RequiredError}
|
|
7390
|
-
*/
|
|
7391
|
-
organizationsRead(organization, options) {
|
|
7392
|
-
return localVarFp.organizationsRead(organization, options).then((request) => request(axios, basePath));
|
|
7393
|
-
},
|
|
7394
|
-
};
|
|
7395
|
-
};
|
|
7396
|
-
exports.OrganizationsApiFactory = OrganizationsApiFactory;
|
|
7397
|
-
/**
|
|
7398
|
-
* OrganizationsApi - object-oriented interface
|
|
7399
|
-
* @export
|
|
7400
|
-
* @class OrganizationsApi
|
|
7401
|
-
* @extends {BaseAPI}
|
|
7402
|
-
*/
|
|
7403
|
-
class OrganizationsApi extends base_1.BaseAPI {
|
|
7404
|
-
/**
|
|
7405
|
-
*
|
|
7406
|
-
* @summary Retrieve all organizations
|
|
7407
|
-
* @param {*} [options] Override http request option.
|
|
7408
|
-
* @throws {RequiredError}
|
|
7409
|
-
* @memberof OrganizationsApi
|
|
7410
|
-
*/
|
|
7411
|
-
organizationsList(options) {
|
|
7412
|
-
return (0, exports.OrganizationsApiFp)(this.configuration).organizationsList(options).then((request) => request(this.axios, this.basePath));
|
|
7413
|
-
}
|
|
7414
|
-
/**
|
|
7415
|
-
*
|
|
7416
|
-
* @summary Get details of a single organization
|
|
7417
|
-
* @param {string} organization
|
|
7418
|
-
* @param {*} [options] Override http request option.
|
|
7419
|
-
* @throws {RequiredError}
|
|
7420
|
-
* @memberof OrganizationsApi
|
|
7421
|
-
*/
|
|
7422
|
-
organizationsRead(organization, options) {
|
|
7423
|
-
return (0, exports.OrganizationsApiFp)(this.configuration).organizationsRead(organization, options).then((request) => request(this.axios, this.basePath));
|
|
7424
|
-
}
|
|
7425
|
-
}
|
|
7426
|
-
exports.OrganizationsApi = OrganizationsApi;
|
|
7427
|
-
/**
|
|
7428
|
-
* ProjectsApi - axios parameter creator
|
|
7429
|
-
* @export
|
|
7430
|
-
*/
|
|
7431
|
-
const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
7432
|
-
return {
|
|
7433
|
-
/**
|
|
7434
|
-
*
|
|
7435
|
-
* @summary Create a new project
|
|
7436
|
-
* @param {string} organization
|
|
7437
|
-
* @param {V2ProjectRequest} v2ProjectRequest
|
|
7438
|
-
* @param {*} [options] Override http request option.
|
|
7439
|
-
* @throws {RequiredError}
|
|
7440
|
-
*/
|
|
7441
|
-
projectsCreate: (organization, v2ProjectRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7442
|
-
// verify required parameter 'organization' is not null or undefined
|
|
7443
|
-
(0, common_1.assertParamExists)('projectsCreate', 'organization', organization);
|
|
7444
|
-
// verify required parameter 'v2ProjectRequest' is not null or undefined
|
|
7445
|
-
(0, common_1.assertParamExists)('projectsCreate', 'v2ProjectRequest', v2ProjectRequest);
|
|
7446
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects`
|
|
7447
|
-
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)));
|
|
7448
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
7449
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
7450
|
-
let baseOptions;
|
|
7451
|
-
if (configuration) {
|
|
7452
|
-
baseOptions = configuration.baseOptions;
|
|
7453
|
-
}
|
|
7454
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
7455
|
-
const localVarHeaderParameter = {};
|
|
7456
|
-
const localVarQueryParameter = {};
|
|
7457
|
-
// authentication BearerAuth required
|
|
7458
|
-
// http bearer authentication required
|
|
7459
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
7460
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
7461
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
7462
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
7463
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
7464
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2ProjectRequest, localVarRequestOptions, configuration);
|
|
7465
|
-
return {
|
|
7466
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
7467
|
-
options: localVarRequestOptions,
|
|
7468
|
-
};
|
|
7469
|
-
}),
|
|
7470
|
-
/**
|
|
7471
|
-
*
|
|
7472
|
-
* @summary Delete a project
|
|
7473
|
-
* @param {string} organization
|
|
7474
|
-
* @param {string} project
|
|
7475
|
-
* @param {*} [options] Override http request option.
|
|
7476
|
-
* @throws {RequiredError}
|
|
7477
|
-
*/
|
|
7478
|
-
projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7616
|
+
projectsDelete: (organization, project, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
7479
7617
|
// verify required parameter 'organization' is not null or undefined
|
|
7480
7618
|
(0, common_1.assertParamExists)('projectsDelete', 'organization', organization);
|
|
7481
7619
|
// verify required parameter 'project' is not null or undefined
|
|
@@ -12190,38 +12328,51 @@ class ScalingPolicyApi extends base_1.BaseAPI {
|
|
|
12190
12328
|
}
|
|
12191
12329
|
exports.ScalingPolicyApi = ScalingPolicyApi;
|
|
12192
12330
|
/**
|
|
12193
|
-
*
|
|
12331
|
+
* VariablesApi - axios parameter creator
|
|
12194
12332
|
* @export
|
|
12195
12333
|
*/
|
|
12196
|
-
const
|
|
12334
|
+
const VariablesApiAxiosParamCreator = function (configuration) {
|
|
12197
12335
|
return {
|
|
12198
12336
|
/**
|
|
12199
12337
|
*
|
|
12200
|
-
* @summary
|
|
12201
|
-
* @param {
|
|
12338
|
+
* @summary Bulk set/replace environment variables
|
|
12339
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12340
|
+
* @param {string} apiApplication The application ID
|
|
12341
|
+
* @param {string} apiEnvironment The environment ID
|
|
12342
|
+
* @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
|
|
12202
12343
|
* @param {*} [options] Override http request option.
|
|
12203
12344
|
* @throws {RequiredError}
|
|
12204
12345
|
*/
|
|
12205
|
-
|
|
12206
|
-
// verify required parameter '
|
|
12207
|
-
(0, common_1.assertParamExists)('
|
|
12208
|
-
|
|
12346
|
+
bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12347
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12348
|
+
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12349
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12350
|
+
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12351
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12352
|
+
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12353
|
+
// verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
|
|
12354
|
+
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
|
|
12355
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12356
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12357
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12358
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12209
12359
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12210
12360
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12211
12361
|
let baseOptions;
|
|
12212
12362
|
if (configuration) {
|
|
12213
12363
|
baseOptions = configuration.baseOptions;
|
|
12214
12364
|
}
|
|
12215
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
12365
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12216
12366
|
const localVarHeaderParameter = {};
|
|
12217
12367
|
const localVarQueryParameter = {};
|
|
12218
|
-
// authentication
|
|
12219
|
-
|
|
12368
|
+
// authentication BearerAuth required
|
|
12369
|
+
// http bearer authentication required
|
|
12370
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12220
12371
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12221
12372
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12222
12373
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12223
12374
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12224
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
12375
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
|
|
12225
12376
|
return {
|
|
12226
12377
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12227
12378
|
options: localVarRequestOptions,
|
|
@@ -12229,18 +12380,28 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12229
12380
|
}),
|
|
12230
12381
|
/**
|
|
12231
12382
|
*
|
|
12232
|
-
* @summary Delete a
|
|
12233
|
-
* @param {
|
|
12234
|
-
* @param {string}
|
|
12383
|
+
* @summary Delete a variable
|
|
12384
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12385
|
+
* @param {string} apiApplication The application ID
|
|
12386
|
+
* @param {string} apiEnvironment The environment ID
|
|
12387
|
+
* @param {string} apiVariable The variable key
|
|
12235
12388
|
* @param {*} [options] Override http request option.
|
|
12236
12389
|
* @throws {RequiredError}
|
|
12237
12390
|
*/
|
|
12238
|
-
|
|
12239
|
-
// verify required parameter '
|
|
12240
|
-
(0, common_1.assertParamExists)('
|
|
12241
|
-
// verify required parameter '
|
|
12242
|
-
(0, common_1.assertParamExists)('
|
|
12243
|
-
|
|
12391
|
+
deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12392
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12393
|
+
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
|
|
12394
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12395
|
+
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiApplication', apiApplication);
|
|
12396
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12397
|
+
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
|
|
12398
|
+
// verify required parameter 'apiVariable' is not null or undefined
|
|
12399
|
+
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiVariable', apiVariable);
|
|
12400
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
|
|
12401
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12402
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12403
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
12404
|
+
.replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
|
|
12244
12405
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12245
12406
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12246
12407
|
let baseOptions;
|
|
@@ -12250,14 +12411,9 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12250
12411
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
12251
12412
|
const localVarHeaderParameter = {};
|
|
12252
12413
|
const localVarQueryParameter = {};
|
|
12253
|
-
// authentication
|
|
12254
|
-
|
|
12255
|
-
|
|
12256
|
-
localVarQueryParameter['project'] = project;
|
|
12257
|
-
}
|
|
12258
|
-
if (objectId !== undefined) {
|
|
12259
|
-
localVarQueryParameter['objectId'] = objectId;
|
|
12260
|
-
}
|
|
12414
|
+
// authentication BearerAuth required
|
|
12415
|
+
// http bearer authentication required
|
|
12416
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12261
12417
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12262
12418
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12263
12419
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12268,18 +12424,24 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12268
12424
|
}),
|
|
12269
12425
|
/**
|
|
12270
12426
|
*
|
|
12271
|
-
* @summary Get
|
|
12272
|
-
* @param {
|
|
12273
|
-
* @param {string}
|
|
12427
|
+
* @summary Get all variables for an environment
|
|
12428
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12429
|
+
* @param {string} apiApplication The application ID
|
|
12430
|
+
* @param {string} apiEnvironment The environment ID
|
|
12274
12431
|
* @param {*} [options] Override http request option.
|
|
12275
12432
|
* @throws {RequiredError}
|
|
12276
12433
|
*/
|
|
12277
|
-
|
|
12278
|
-
// verify required parameter '
|
|
12279
|
-
(0, common_1.assertParamExists)('
|
|
12280
|
-
// verify required parameter '
|
|
12281
|
-
(0, common_1.assertParamExists)('
|
|
12282
|
-
|
|
12434
|
+
listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12435
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12436
|
+
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12437
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
12438
|
+
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12439
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12440
|
+
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
12441
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
12442
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
12443
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
12444
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
12283
12445
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12284
12446
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12285
12447
|
let baseOptions;
|
|
@@ -12289,14 +12451,9 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12289
12451
|
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12290
12452
|
const localVarHeaderParameter = {};
|
|
12291
12453
|
const localVarQueryParameter = {};
|
|
12292
|
-
// authentication
|
|
12293
|
-
|
|
12294
|
-
|
|
12295
|
-
localVarQueryParameter['project'] = project;
|
|
12296
|
-
}
|
|
12297
|
-
if (objectId !== undefined) {
|
|
12298
|
-
localVarQueryParameter['objectId'] = objectId;
|
|
12299
|
-
}
|
|
12454
|
+
// authentication BearerAuth required
|
|
12455
|
+
// http bearer authentication required
|
|
12456
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12300
12457
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12301
12458
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12302
12459
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -12307,816 +12464,12 @@ const SearchApiAxiosParamCreator = function (configuration) {
|
|
|
12307
12464
|
}),
|
|
12308
12465
|
/**
|
|
12309
12466
|
*
|
|
12310
|
-
* @summary
|
|
12311
|
-
* @param {
|
|
12312
|
-
* @param {
|
|
12313
|
-
* @param {
|
|
12314
|
-
* @param {string}
|
|
12315
|
-
* @param {
|
|
12316
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12317
|
-
* @param {*} [options] Override http request option.
|
|
12318
|
-
* @throws {RequiredError}
|
|
12319
|
-
*/
|
|
12320
|
-
getSearchItems: (project, page, hitsPerPage, query, filters, facets, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12321
|
-
// verify required parameter 'project' is not null or undefined
|
|
12322
|
-
(0, common_1.assertParamExists)('getSearchItems', 'project', project);
|
|
12323
|
-
const localVarPath = `/api/v1/search/items`;
|
|
12324
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12325
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12326
|
-
let baseOptions;
|
|
12327
|
-
if (configuration) {
|
|
12328
|
-
baseOptions = configuration.baseOptions;
|
|
12329
|
-
}
|
|
12330
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
12331
|
-
const localVarHeaderParameter = {};
|
|
12332
|
-
const localVarQueryParameter = {};
|
|
12333
|
-
// authentication headerAuth required
|
|
12334
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12335
|
-
if (project !== undefined) {
|
|
12336
|
-
localVarQueryParameter['project'] = project;
|
|
12337
|
-
}
|
|
12338
|
-
if (page !== undefined) {
|
|
12339
|
-
localVarQueryParameter['page'] = page;
|
|
12340
|
-
}
|
|
12341
|
-
if (hitsPerPage !== undefined) {
|
|
12342
|
-
localVarQueryParameter['hitsPerPage'] = hitsPerPage;
|
|
12343
|
-
}
|
|
12344
|
-
if (query !== undefined) {
|
|
12345
|
-
localVarQueryParameter['query'] = query;
|
|
12346
|
-
}
|
|
12347
|
-
if (filters !== undefined) {
|
|
12348
|
-
for (const [key, value] of Object.entries(filters)) {
|
|
12349
|
-
localVarQueryParameter[key] = value;
|
|
12350
|
-
}
|
|
12351
|
-
}
|
|
12352
|
-
if (facets !== undefined) {
|
|
12353
|
-
for (const [key, value] of Object.entries(facets)) {
|
|
12354
|
-
localVarQueryParameter[key] = value;
|
|
12355
|
-
}
|
|
12356
|
-
}
|
|
12357
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12358
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12359
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12360
|
-
return {
|
|
12361
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12362
|
-
options: localVarRequestOptions,
|
|
12363
|
-
};
|
|
12364
|
-
}),
|
|
12365
|
-
/**
|
|
12366
|
-
*
|
|
12367
|
-
* @summary Test search extractors
|
|
12368
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12369
|
-
* @param {*} [options] Override http request option.
|
|
12370
|
-
* @throws {RequiredError}
|
|
12371
|
-
*/
|
|
12372
|
-
testSearchExtractors: (testSearchExtractorsRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12373
|
-
// verify required parameter 'testSearchExtractorsRequest' is not null or undefined
|
|
12374
|
-
(0, common_1.assertParamExists)('testSearchExtractors', 'testSearchExtractorsRequest', testSearchExtractorsRequest);
|
|
12375
|
-
const localVarPath = `/api/v1/search/test-extractors`;
|
|
12376
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12377
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12378
|
-
let baseOptions;
|
|
12379
|
-
if (configuration) {
|
|
12380
|
-
baseOptions = configuration.baseOptions;
|
|
12381
|
-
}
|
|
12382
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12383
|
-
const localVarHeaderParameter = {};
|
|
12384
|
-
const localVarQueryParameter = {};
|
|
12385
|
-
// authentication headerAuth required
|
|
12386
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12387
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12388
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12389
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12390
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12391
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(testSearchExtractorsRequest, localVarRequestOptions, configuration);
|
|
12392
|
-
return {
|
|
12393
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12394
|
-
options: localVarRequestOptions,
|
|
12395
|
-
};
|
|
12396
|
-
}),
|
|
12397
|
-
/**
|
|
12398
|
-
*
|
|
12399
|
-
* @summary Update an existing search index item
|
|
12400
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12401
|
-
* @param {*} [options] Override http request option.
|
|
12402
|
-
* @throws {RequiredError}
|
|
12403
|
-
*/
|
|
12404
|
-
updateSearchItem: (updateSearchItemRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12405
|
-
// verify required parameter 'updateSearchItemRequest' is not null or undefined
|
|
12406
|
-
(0, common_1.assertParamExists)('updateSearchItem', 'updateSearchItemRequest', updateSearchItemRequest);
|
|
12407
|
-
const localVarPath = `/api/v1/search/item`;
|
|
12408
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12409
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12410
|
-
let baseOptions;
|
|
12411
|
-
if (configuration) {
|
|
12412
|
-
baseOptions = configuration.baseOptions;
|
|
12413
|
-
}
|
|
12414
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
12415
|
-
const localVarHeaderParameter = {};
|
|
12416
|
-
const localVarQueryParameter = {};
|
|
12417
|
-
// authentication headerAuth required
|
|
12418
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12419
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12420
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12421
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12422
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12423
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateSearchItemRequest, localVarRequestOptions, configuration);
|
|
12424
|
-
return {
|
|
12425
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12426
|
-
options: localVarRequestOptions,
|
|
12427
|
-
};
|
|
12428
|
-
}),
|
|
12429
|
-
};
|
|
12430
|
-
};
|
|
12431
|
-
exports.SearchApiAxiosParamCreator = SearchApiAxiosParamCreator;
|
|
12432
|
-
/**
|
|
12433
|
-
* SearchApi - functional programming interface
|
|
12434
|
-
* @export
|
|
12435
|
-
*/
|
|
12436
|
-
const SearchApiFp = function (configuration) {
|
|
12437
|
-
const localVarAxiosParamCreator = (0, exports.SearchApiAxiosParamCreator)(configuration);
|
|
12438
|
-
return {
|
|
12439
|
-
/**
|
|
12440
|
-
*
|
|
12441
|
-
* @summary Create a new search index item
|
|
12442
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12443
|
-
* @param {*} [options] Override http request option.
|
|
12444
|
-
* @throws {RequiredError}
|
|
12445
|
-
*/
|
|
12446
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12447
|
-
var _a, _b, _c;
|
|
12448
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12449
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSearchItem(createSearchItemRequest, options);
|
|
12450
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12451
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.createSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12452
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12453
|
-
});
|
|
12454
|
-
},
|
|
12455
|
-
/**
|
|
12456
|
-
*
|
|
12457
|
-
* @summary Delete a search index item
|
|
12458
|
-
* @param {number} project
|
|
12459
|
-
* @param {string} objectId
|
|
12460
|
-
* @param {*} [options] Override http request option.
|
|
12461
|
-
* @throws {RequiredError}
|
|
12462
|
-
*/
|
|
12463
|
-
deleteSearchItem(project, objectId, options) {
|
|
12464
|
-
var _a, _b, _c;
|
|
12465
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12466
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteSearchItem(project, objectId, options);
|
|
12467
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12468
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.deleteSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12469
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12470
|
-
});
|
|
12471
|
-
},
|
|
12472
|
-
/**
|
|
12473
|
-
*
|
|
12474
|
-
* @summary Get a single search index item
|
|
12475
|
-
* @param {number} project
|
|
12476
|
-
* @param {string} objectId
|
|
12477
|
-
* @param {*} [options] Override http request option.
|
|
12478
|
-
* @throws {RequiredError}
|
|
12479
|
-
*/
|
|
12480
|
-
getSearchItem(project, objectId, options) {
|
|
12481
|
-
var _a, _b, _c;
|
|
12482
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12483
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItem(project, objectId, options);
|
|
12484
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12485
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.getSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12486
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12487
|
-
});
|
|
12488
|
-
},
|
|
12489
|
-
/**
|
|
12490
|
-
*
|
|
12491
|
-
* @summary List search index items
|
|
12492
|
-
* @param {number} project
|
|
12493
|
-
* @param {number} [page]
|
|
12494
|
-
* @param {number} [hitsPerPage]
|
|
12495
|
-
* @param {string} [query]
|
|
12496
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12497
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12498
|
-
* @param {*} [options] Override http request option.
|
|
12499
|
-
* @throws {RequiredError}
|
|
12500
|
-
*/
|
|
12501
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12502
|
-
var _a, _b, _c;
|
|
12503
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12504
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSearchItems(project, page, hitsPerPage, query, filters, facets, options);
|
|
12505
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12506
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.getSearchItems']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12507
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12508
|
-
});
|
|
12509
|
-
},
|
|
12510
|
-
/**
|
|
12511
|
-
*
|
|
12512
|
-
* @summary Test search extractors
|
|
12513
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12514
|
-
* @param {*} [options] Override http request option.
|
|
12515
|
-
* @throws {RequiredError}
|
|
12516
|
-
*/
|
|
12517
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12518
|
-
var _a, _b, _c;
|
|
12519
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12520
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.testSearchExtractors(testSearchExtractorsRequest, options);
|
|
12521
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12522
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.testSearchExtractors']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12523
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12524
|
-
});
|
|
12525
|
-
},
|
|
12526
|
-
/**
|
|
12527
|
-
*
|
|
12528
|
-
* @summary Update an existing search index item
|
|
12529
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12530
|
-
* @param {*} [options] Override http request option.
|
|
12531
|
-
* @throws {RequiredError}
|
|
12532
|
-
*/
|
|
12533
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12534
|
-
var _a, _b, _c;
|
|
12535
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12536
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateSearchItem(updateSearchItemRequest, options);
|
|
12537
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12538
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SearchApi.updateSearchItem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12539
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12540
|
-
});
|
|
12541
|
-
},
|
|
12542
|
-
};
|
|
12543
|
-
};
|
|
12544
|
-
exports.SearchApiFp = SearchApiFp;
|
|
12545
|
-
/**
|
|
12546
|
-
* SearchApi - factory interface
|
|
12547
|
-
* @export
|
|
12548
|
-
*/
|
|
12549
|
-
const SearchApiFactory = function (configuration, basePath, axios) {
|
|
12550
|
-
const localVarFp = (0, exports.SearchApiFp)(configuration);
|
|
12551
|
-
return {
|
|
12552
|
-
/**
|
|
12553
|
-
*
|
|
12554
|
-
* @summary Create a new search index item
|
|
12555
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12556
|
-
* @param {*} [options] Override http request option.
|
|
12557
|
-
* @throws {RequiredError}
|
|
12558
|
-
*/
|
|
12559
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12560
|
-
return localVarFp.createSearchItem(createSearchItemRequest, options).then((request) => request(axios, basePath));
|
|
12561
|
-
},
|
|
12562
|
-
/**
|
|
12563
|
-
*
|
|
12564
|
-
* @summary Delete a search index item
|
|
12565
|
-
* @param {number} project
|
|
12566
|
-
* @param {string} objectId
|
|
12567
|
-
* @param {*} [options] Override http request option.
|
|
12568
|
-
* @throws {RequiredError}
|
|
12569
|
-
*/
|
|
12570
|
-
deleteSearchItem(project, objectId, options) {
|
|
12571
|
-
return localVarFp.deleteSearchItem(project, objectId, options).then((request) => request(axios, basePath));
|
|
12572
|
-
},
|
|
12573
|
-
/**
|
|
12574
|
-
*
|
|
12575
|
-
* @summary Get a single search index item
|
|
12576
|
-
* @param {number} project
|
|
12577
|
-
* @param {string} objectId
|
|
12578
|
-
* @param {*} [options] Override http request option.
|
|
12579
|
-
* @throws {RequiredError}
|
|
12580
|
-
*/
|
|
12581
|
-
getSearchItem(project, objectId, options) {
|
|
12582
|
-
return localVarFp.getSearchItem(project, objectId, options).then((request) => request(axios, basePath));
|
|
12583
|
-
},
|
|
12584
|
-
/**
|
|
12585
|
-
*
|
|
12586
|
-
* @summary List search index items
|
|
12587
|
-
* @param {number} project
|
|
12588
|
-
* @param {number} [page]
|
|
12589
|
-
* @param {number} [hitsPerPage]
|
|
12590
|
-
* @param {string} [query]
|
|
12591
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12592
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12593
|
-
* @param {*} [options] Override http request option.
|
|
12594
|
-
* @throws {RequiredError}
|
|
12595
|
-
*/
|
|
12596
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12597
|
-
return localVarFp.getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(axios, basePath));
|
|
12598
|
-
},
|
|
12599
|
-
/**
|
|
12600
|
-
*
|
|
12601
|
-
* @summary Test search extractors
|
|
12602
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12603
|
-
* @param {*} [options] Override http request option.
|
|
12604
|
-
* @throws {RequiredError}
|
|
12605
|
-
*/
|
|
12606
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12607
|
-
return localVarFp.testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(axios, basePath));
|
|
12608
|
-
},
|
|
12609
|
-
/**
|
|
12610
|
-
*
|
|
12611
|
-
* @summary Update an existing search index item
|
|
12612
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12613
|
-
* @param {*} [options] Override http request option.
|
|
12614
|
-
* @throws {RequiredError}
|
|
12615
|
-
*/
|
|
12616
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12617
|
-
return localVarFp.updateSearchItem(updateSearchItemRequest, options).then((request) => request(axios, basePath));
|
|
12618
|
-
},
|
|
12619
|
-
};
|
|
12620
|
-
};
|
|
12621
|
-
exports.SearchApiFactory = SearchApiFactory;
|
|
12622
|
-
/**
|
|
12623
|
-
* SearchApi - object-oriented interface
|
|
12624
|
-
* @export
|
|
12625
|
-
* @class SearchApi
|
|
12626
|
-
* @extends {BaseAPI}
|
|
12627
|
-
*/
|
|
12628
|
-
class SearchApi extends base_1.BaseAPI {
|
|
12629
|
-
/**
|
|
12630
|
-
*
|
|
12631
|
-
* @summary Create a new search index item
|
|
12632
|
-
* @param {CreateSearchItemRequest} createSearchItemRequest
|
|
12633
|
-
* @param {*} [options] Override http request option.
|
|
12634
|
-
* @throws {RequiredError}
|
|
12635
|
-
* @memberof SearchApi
|
|
12636
|
-
*/
|
|
12637
|
-
createSearchItem(createSearchItemRequest, options) {
|
|
12638
|
-
return (0, exports.SearchApiFp)(this.configuration).createSearchItem(createSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12639
|
-
}
|
|
12640
|
-
/**
|
|
12641
|
-
*
|
|
12642
|
-
* @summary Delete a search index item
|
|
12643
|
-
* @param {number} project
|
|
12644
|
-
* @param {string} objectId
|
|
12645
|
-
* @param {*} [options] Override http request option.
|
|
12646
|
-
* @throws {RequiredError}
|
|
12647
|
-
* @memberof SearchApi
|
|
12648
|
-
*/
|
|
12649
|
-
deleteSearchItem(project, objectId, options) {
|
|
12650
|
-
return (0, exports.SearchApiFp)(this.configuration).deleteSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
|
|
12651
|
-
}
|
|
12652
|
-
/**
|
|
12653
|
-
*
|
|
12654
|
-
* @summary Get a single search index item
|
|
12655
|
-
* @param {number} project
|
|
12656
|
-
* @param {string} objectId
|
|
12657
|
-
* @param {*} [options] Override http request option.
|
|
12658
|
-
* @throws {RequiredError}
|
|
12659
|
-
* @memberof SearchApi
|
|
12660
|
-
*/
|
|
12661
|
-
getSearchItem(project, objectId, options) {
|
|
12662
|
-
return (0, exports.SearchApiFp)(this.configuration).getSearchItem(project, objectId, options).then((request) => request(this.axios, this.basePath));
|
|
12663
|
-
}
|
|
12664
|
-
/**
|
|
12665
|
-
*
|
|
12666
|
-
* @summary List search index items
|
|
12667
|
-
* @param {number} project
|
|
12668
|
-
* @param {number} [page]
|
|
12669
|
-
* @param {number} [hitsPerPage]
|
|
12670
|
-
* @param {string} [query]
|
|
12671
|
-
* @param {GetSearchItemsFiltersParameter} [filters] Array or comma-separated filters
|
|
12672
|
-
* @param {GetSearchItemsFiltersParameter} [facets] Array or comma-separated facets
|
|
12673
|
-
* @param {*} [options] Override http request option.
|
|
12674
|
-
* @throws {RequiredError}
|
|
12675
|
-
* @memberof SearchApi
|
|
12676
|
-
*/
|
|
12677
|
-
getSearchItems(project, page, hitsPerPage, query, filters, facets, options) {
|
|
12678
|
-
return (0, exports.SearchApiFp)(this.configuration).getSearchItems(project, page, hitsPerPage, query, filters, facets, options).then((request) => request(this.axios, this.basePath));
|
|
12679
|
-
}
|
|
12680
|
-
/**
|
|
12681
|
-
*
|
|
12682
|
-
* @summary Test search extractors
|
|
12683
|
-
* @param {TestSearchExtractorsRequest} testSearchExtractorsRequest
|
|
12684
|
-
* @param {*} [options] Override http request option.
|
|
12685
|
-
* @throws {RequiredError}
|
|
12686
|
-
* @memberof SearchApi
|
|
12687
|
-
*/
|
|
12688
|
-
testSearchExtractors(testSearchExtractorsRequest, options) {
|
|
12689
|
-
return (0, exports.SearchApiFp)(this.configuration).testSearchExtractors(testSearchExtractorsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12690
|
-
}
|
|
12691
|
-
/**
|
|
12692
|
-
*
|
|
12693
|
-
* @summary Update an existing search index item
|
|
12694
|
-
* @param {UpdateSearchItemRequest} updateSearchItemRequest
|
|
12695
|
-
* @param {*} [options] Override http request option.
|
|
12696
|
-
* @throws {RequiredError}
|
|
12697
|
-
* @memberof SearchApi
|
|
12698
|
-
*/
|
|
12699
|
-
updateSearchItem(updateSearchItemRequest, options) {
|
|
12700
|
-
return (0, exports.SearchApiFp)(this.configuration).updateSearchItem(updateSearchItemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
12701
|
-
}
|
|
12702
|
-
}
|
|
12703
|
-
exports.SearchApi = SearchApi;
|
|
12704
|
-
/**
|
|
12705
|
-
* V1Api - axios parameter creator
|
|
12706
|
-
* @export
|
|
12707
|
-
*/
|
|
12708
|
-
const V1ApiAxiosParamCreator = function (configuration) {
|
|
12709
|
-
return {
|
|
12710
|
-
/**
|
|
12711
|
-
* Retrieve content via API.
|
|
12712
|
-
* @summary List content by type
|
|
12713
|
-
* @param {ListContentTypeEnum} type
|
|
12714
|
-
* @param {object} [body]
|
|
12715
|
-
* @param {*} [options] Override http request option.
|
|
12716
|
-
* @throws {RequiredError}
|
|
12717
|
-
*/
|
|
12718
|
-
listContent: (type, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12719
|
-
// verify required parameter 'type' is not null or undefined
|
|
12720
|
-
(0, common_1.assertParamExists)('listContent', 'type', type);
|
|
12721
|
-
const localVarPath = `/api/v1/content/{type}`
|
|
12722
|
-
.replace(`{${"type"}}`, encodeURIComponent(String(type)));
|
|
12723
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12724
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12725
|
-
let baseOptions;
|
|
12726
|
-
if (configuration) {
|
|
12727
|
-
baseOptions = configuration.baseOptions;
|
|
12728
|
-
}
|
|
12729
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12730
|
-
const localVarHeaderParameter = {};
|
|
12731
|
-
const localVarQueryParameter = {};
|
|
12732
|
-
// authentication headerAuth required
|
|
12733
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12734
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12735
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12736
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12737
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12738
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12739
|
-
return {
|
|
12740
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12741
|
-
options: localVarRequestOptions,
|
|
12742
|
-
};
|
|
12743
|
-
}),
|
|
12744
|
-
/**
|
|
12745
|
-
* Retrieve redirects via API.
|
|
12746
|
-
* @summary List redirects
|
|
12747
|
-
* @param {object} [body]
|
|
12748
|
-
* @param {*} [options] Override http request option.
|
|
12749
|
-
* @throws {RequiredError}
|
|
12750
|
-
*/
|
|
12751
|
-
listRedirects: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12752
|
-
const localVarPath = `/api/v1/redirect`;
|
|
12753
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12754
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12755
|
-
let baseOptions;
|
|
12756
|
-
if (configuration) {
|
|
12757
|
-
baseOptions = configuration.baseOptions;
|
|
12758
|
-
}
|
|
12759
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12760
|
-
const localVarHeaderParameter = {};
|
|
12761
|
-
const localVarQueryParameter = {};
|
|
12762
|
-
// authentication headerAuth required
|
|
12763
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12764
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12765
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12766
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12767
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12768
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12769
|
-
return {
|
|
12770
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12771
|
-
options: localVarRequestOptions,
|
|
12772
|
-
};
|
|
12773
|
-
}),
|
|
12774
|
-
/**
|
|
12775
|
-
* Upload a file via API.
|
|
12776
|
-
* @summary Upload a file
|
|
12777
|
-
* @param {string} quantUri
|
|
12778
|
-
* @param {string} [quantPrefix]
|
|
12779
|
-
* @param {object} [body]
|
|
12780
|
-
* @param {*} [options] Override http request option.
|
|
12781
|
-
* @throws {RequiredError}
|
|
12782
|
-
*/
|
|
12783
|
-
uploadFile: (quantUri, quantPrefix, body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12784
|
-
// verify required parameter 'quantUri' is not null or undefined
|
|
12785
|
-
(0, common_1.assertParamExists)('uploadFile', 'quantUri', quantUri);
|
|
12786
|
-
const localVarPath = `/api/v1/upload`;
|
|
12787
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
12788
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
12789
|
-
let baseOptions;
|
|
12790
|
-
if (configuration) {
|
|
12791
|
-
baseOptions = configuration.baseOptions;
|
|
12792
|
-
}
|
|
12793
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
12794
|
-
const localVarHeaderParameter = {};
|
|
12795
|
-
const localVarQueryParameter = {};
|
|
12796
|
-
// authentication headerAuth required
|
|
12797
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
12798
|
-
if (quantUri !== undefined) {
|
|
12799
|
-
localVarQueryParameter['quant_uri'] = quantUri;
|
|
12800
|
-
}
|
|
12801
|
-
if (quantPrefix !== undefined) {
|
|
12802
|
-
localVarQueryParameter['quant_prefix'] = quantPrefix;
|
|
12803
|
-
}
|
|
12804
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
12805
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
12806
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
12807
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12808
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
12809
|
-
return {
|
|
12810
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
12811
|
-
options: localVarRequestOptions,
|
|
12812
|
-
};
|
|
12813
|
-
}),
|
|
12814
|
-
};
|
|
12815
|
-
};
|
|
12816
|
-
exports.V1ApiAxiosParamCreator = V1ApiAxiosParamCreator;
|
|
12817
|
-
/**
|
|
12818
|
-
* V1Api - functional programming interface
|
|
12819
|
-
* @export
|
|
12820
|
-
*/
|
|
12821
|
-
const V1ApiFp = function (configuration) {
|
|
12822
|
-
const localVarAxiosParamCreator = (0, exports.V1ApiAxiosParamCreator)(configuration);
|
|
12823
|
-
return {
|
|
12824
|
-
/**
|
|
12825
|
-
* Retrieve content via API.
|
|
12826
|
-
* @summary List content by type
|
|
12827
|
-
* @param {ListContentTypeEnum} type
|
|
12828
|
-
* @param {object} [body]
|
|
12829
|
-
* @param {*} [options] Override http request option.
|
|
12830
|
-
* @throws {RequiredError}
|
|
12831
|
-
*/
|
|
12832
|
-
listContent(type, body, options) {
|
|
12833
|
-
var _a, _b, _c;
|
|
12834
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12835
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listContent(type, body, options);
|
|
12836
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12837
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.listContent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12838
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12839
|
-
});
|
|
12840
|
-
},
|
|
12841
|
-
/**
|
|
12842
|
-
* Retrieve redirects via API.
|
|
12843
|
-
* @summary List redirects
|
|
12844
|
-
* @param {object} [body]
|
|
12845
|
-
* @param {*} [options] Override http request option.
|
|
12846
|
-
* @throws {RequiredError}
|
|
12847
|
-
*/
|
|
12848
|
-
listRedirects(body, options) {
|
|
12849
|
-
var _a, _b, _c;
|
|
12850
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12851
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listRedirects(body, options);
|
|
12852
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12853
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.listRedirects']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12854
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12855
|
-
});
|
|
12856
|
-
},
|
|
12857
|
-
/**
|
|
12858
|
-
* Upload a file via API.
|
|
12859
|
-
* @summary Upload a file
|
|
12860
|
-
* @param {string} quantUri
|
|
12861
|
-
* @param {string} [quantPrefix]
|
|
12862
|
-
* @param {object} [body]
|
|
12863
|
-
* @param {*} [options] Override http request option.
|
|
12864
|
-
* @throws {RequiredError}
|
|
12865
|
-
*/
|
|
12866
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12867
|
-
var _a, _b, _c;
|
|
12868
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
12869
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.uploadFile(quantUri, quantPrefix, body, options);
|
|
12870
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
12871
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['V1Api.uploadFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
12872
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
12873
|
-
});
|
|
12874
|
-
},
|
|
12875
|
-
};
|
|
12876
|
-
};
|
|
12877
|
-
exports.V1ApiFp = V1ApiFp;
|
|
12878
|
-
/**
|
|
12879
|
-
* V1Api - factory interface
|
|
12880
|
-
* @export
|
|
12881
|
-
*/
|
|
12882
|
-
const V1ApiFactory = function (configuration, basePath, axios) {
|
|
12883
|
-
const localVarFp = (0, exports.V1ApiFp)(configuration);
|
|
12884
|
-
return {
|
|
12885
|
-
/**
|
|
12886
|
-
* Retrieve content via API.
|
|
12887
|
-
* @summary List content by type
|
|
12888
|
-
* @param {ListContentTypeEnum} type
|
|
12889
|
-
* @param {object} [body]
|
|
12890
|
-
* @param {*} [options] Override http request option.
|
|
12891
|
-
* @throws {RequiredError}
|
|
12892
|
-
*/
|
|
12893
|
-
listContent(type, body, options) {
|
|
12894
|
-
return localVarFp.listContent(type, body, options).then((request) => request(axios, basePath));
|
|
12895
|
-
},
|
|
12896
|
-
/**
|
|
12897
|
-
* Retrieve redirects via API.
|
|
12898
|
-
* @summary List redirects
|
|
12899
|
-
* @param {object} [body]
|
|
12900
|
-
* @param {*} [options] Override http request option.
|
|
12901
|
-
* @throws {RequiredError}
|
|
12902
|
-
*/
|
|
12903
|
-
listRedirects(body, options) {
|
|
12904
|
-
return localVarFp.listRedirects(body, options).then((request) => request(axios, basePath));
|
|
12905
|
-
},
|
|
12906
|
-
/**
|
|
12907
|
-
* Upload a file via API.
|
|
12908
|
-
* @summary Upload a file
|
|
12909
|
-
* @param {string} quantUri
|
|
12910
|
-
* @param {string} [quantPrefix]
|
|
12911
|
-
* @param {object} [body]
|
|
12912
|
-
* @param {*} [options] Override http request option.
|
|
12913
|
-
* @throws {RequiredError}
|
|
12914
|
-
*/
|
|
12915
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12916
|
-
return localVarFp.uploadFile(quantUri, quantPrefix, body, options).then((request) => request(axios, basePath));
|
|
12917
|
-
},
|
|
12918
|
-
};
|
|
12919
|
-
};
|
|
12920
|
-
exports.V1ApiFactory = V1ApiFactory;
|
|
12921
|
-
/**
|
|
12922
|
-
* V1Api - object-oriented interface
|
|
12923
|
-
* @export
|
|
12924
|
-
* @class V1Api
|
|
12925
|
-
* @extends {BaseAPI}
|
|
12926
|
-
*/
|
|
12927
|
-
class V1Api extends base_1.BaseAPI {
|
|
12928
|
-
/**
|
|
12929
|
-
* Retrieve content via API.
|
|
12930
|
-
* @summary List content by type
|
|
12931
|
-
* @param {ListContentTypeEnum} type
|
|
12932
|
-
* @param {object} [body]
|
|
12933
|
-
* @param {*} [options] Override http request option.
|
|
12934
|
-
* @throws {RequiredError}
|
|
12935
|
-
* @memberof V1Api
|
|
12936
|
-
*/
|
|
12937
|
-
listContent(type, body, options) {
|
|
12938
|
-
return (0, exports.V1ApiFp)(this.configuration).listContent(type, body, options).then((request) => request(this.axios, this.basePath));
|
|
12939
|
-
}
|
|
12940
|
-
/**
|
|
12941
|
-
* Retrieve redirects via API.
|
|
12942
|
-
* @summary List redirects
|
|
12943
|
-
* @param {object} [body]
|
|
12944
|
-
* @param {*} [options] Override http request option.
|
|
12945
|
-
* @throws {RequiredError}
|
|
12946
|
-
* @memberof V1Api
|
|
12947
|
-
*/
|
|
12948
|
-
listRedirects(body, options) {
|
|
12949
|
-
return (0, exports.V1ApiFp)(this.configuration).listRedirects(body, options).then((request) => request(this.axios, this.basePath));
|
|
12950
|
-
}
|
|
12951
|
-
/**
|
|
12952
|
-
* Upload a file via API.
|
|
12953
|
-
* @summary Upload a file
|
|
12954
|
-
* @param {string} quantUri
|
|
12955
|
-
* @param {string} [quantPrefix]
|
|
12956
|
-
* @param {object} [body]
|
|
12957
|
-
* @param {*} [options] Override http request option.
|
|
12958
|
-
* @throws {RequiredError}
|
|
12959
|
-
* @memberof V1Api
|
|
12960
|
-
*/
|
|
12961
|
-
uploadFile(quantUri, quantPrefix, body, options) {
|
|
12962
|
-
return (0, exports.V1ApiFp)(this.configuration).uploadFile(quantUri, quantPrefix, body, options).then((request) => request(this.axios, this.basePath));
|
|
12963
|
-
}
|
|
12964
|
-
}
|
|
12965
|
-
exports.V1Api = V1Api;
|
|
12966
|
-
/**
|
|
12967
|
-
* @export
|
|
12968
|
-
*/
|
|
12969
|
-
exports.ListContentTypeEnum = {
|
|
12970
|
-
Content: 'content',
|
|
12971
|
-
Redirect: 'redirect',
|
|
12972
|
-
File: 'file',
|
|
12973
|
-
EdgeFunction: 'edge_function',
|
|
12974
|
-
EdgeFilter: 'edge_filter',
|
|
12975
|
-
EdgeAuth: 'edge_auth'
|
|
12976
|
-
};
|
|
12977
|
-
/**
|
|
12978
|
-
* VariablesApi - axios parameter creator
|
|
12979
|
-
* @export
|
|
12980
|
-
*/
|
|
12981
|
-
const VariablesApiAxiosParamCreator = function (configuration) {
|
|
12982
|
-
return {
|
|
12983
|
-
/**
|
|
12984
|
-
*
|
|
12985
|
-
* @summary Bulk set/replace environment variables
|
|
12986
|
-
* @param {string} apiOrganisation The organisation ID
|
|
12987
|
-
* @param {string} apiApplication The application ID
|
|
12988
|
-
* @param {string} apiEnvironment The environment ID
|
|
12989
|
-
* @param {BulkSetEnvironmentVariablesRequest} bulkSetEnvironmentVariablesRequest
|
|
12990
|
-
* @param {*} [options] Override http request option.
|
|
12991
|
-
* @throws {RequiredError}
|
|
12992
|
-
*/
|
|
12993
|
-
bulkSetEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, bulkSetEnvironmentVariablesRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12994
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
12995
|
-
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
12996
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
12997
|
-
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiApplication', apiApplication);
|
|
12998
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
12999
|
-
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
13000
|
-
// verify required parameter 'bulkSetEnvironmentVariablesRequest' is not null or undefined
|
|
13001
|
-
(0, common_1.assertParamExists)('bulkSetEnvironmentVariables', 'bulkSetEnvironmentVariablesRequest', bulkSetEnvironmentVariablesRequest);
|
|
13002
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
13003
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
13004
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
13005
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
13006
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13007
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13008
|
-
let baseOptions;
|
|
13009
|
-
if (configuration) {
|
|
13010
|
-
baseOptions = configuration.baseOptions;
|
|
13011
|
-
}
|
|
13012
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
13013
|
-
const localVarHeaderParameter = {};
|
|
13014
|
-
const localVarQueryParameter = {};
|
|
13015
|
-
// authentication BearerAuth required
|
|
13016
|
-
// http bearer authentication required
|
|
13017
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13018
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13019
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13020
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13021
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13022
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(bulkSetEnvironmentVariablesRequest, localVarRequestOptions, configuration);
|
|
13023
|
-
return {
|
|
13024
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13025
|
-
options: localVarRequestOptions,
|
|
13026
|
-
};
|
|
13027
|
-
}),
|
|
13028
|
-
/**
|
|
13029
|
-
*
|
|
13030
|
-
* @summary Delete a variable
|
|
13031
|
-
* @param {string} apiOrganisation The organisation ID
|
|
13032
|
-
* @param {string} apiApplication The application ID
|
|
13033
|
-
* @param {string} apiEnvironment The environment ID
|
|
13034
|
-
* @param {string} apiVariable The variable key
|
|
13035
|
-
* @param {*} [options] Override http request option.
|
|
13036
|
-
* @throws {RequiredError}
|
|
13037
|
-
*/
|
|
13038
|
-
deleteEnvironmentVariable: (apiOrganisation, apiApplication, apiEnvironment, apiVariable, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13039
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
13040
|
-
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiOrganisation', apiOrganisation);
|
|
13041
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
13042
|
-
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiApplication', apiApplication);
|
|
13043
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
13044
|
-
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiEnvironment', apiEnvironment);
|
|
13045
|
-
// verify required parameter 'apiVariable' is not null or undefined
|
|
13046
|
-
(0, common_1.assertParamExists)('deleteEnvironmentVariable', 'apiVariable', apiVariable);
|
|
13047
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables/{api_variable}`
|
|
13048
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
13049
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
13050
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
13051
|
-
.replace(`{${"api_variable"}}`, encodeURIComponent(String(apiVariable)));
|
|
13052
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13053
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13054
|
-
let baseOptions;
|
|
13055
|
-
if (configuration) {
|
|
13056
|
-
baseOptions = configuration.baseOptions;
|
|
13057
|
-
}
|
|
13058
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
13059
|
-
const localVarHeaderParameter = {};
|
|
13060
|
-
const localVarQueryParameter = {};
|
|
13061
|
-
// authentication BearerAuth required
|
|
13062
|
-
// http bearer authentication required
|
|
13063
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13064
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13065
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13066
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13067
|
-
return {
|
|
13068
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13069
|
-
options: localVarRequestOptions,
|
|
13070
|
-
};
|
|
13071
|
-
}),
|
|
13072
|
-
/**
|
|
13073
|
-
*
|
|
13074
|
-
* @summary Get all variables for an environment
|
|
13075
|
-
* @param {string} apiOrganisation The organisation ID
|
|
13076
|
-
* @param {string} apiApplication The application ID
|
|
13077
|
-
* @param {string} apiEnvironment The environment ID
|
|
13078
|
-
* @param {*} [options] Override http request option.
|
|
13079
|
-
* @throws {RequiredError}
|
|
13080
|
-
*/
|
|
13081
|
-
listEnvironmentVariables: (apiOrganisation, apiApplication, apiEnvironment, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13082
|
-
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
13083
|
-
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiOrganisation', apiOrganisation);
|
|
13084
|
-
// verify required parameter 'apiApplication' is not null or undefined
|
|
13085
|
-
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiApplication', apiApplication);
|
|
13086
|
-
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
13087
|
-
(0, common_1.assertParamExists)('listEnvironmentVariables', 'apiEnvironment', apiEnvironment);
|
|
13088
|
-
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/variables`
|
|
13089
|
-
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
13090
|
-
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
13091
|
-
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
13092
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13093
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13094
|
-
let baseOptions;
|
|
13095
|
-
if (configuration) {
|
|
13096
|
-
baseOptions = configuration.baseOptions;
|
|
13097
|
-
}
|
|
13098
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
13099
|
-
const localVarHeaderParameter = {};
|
|
13100
|
-
const localVarQueryParameter = {};
|
|
13101
|
-
// authentication BearerAuth required
|
|
13102
|
-
// http bearer authentication required
|
|
13103
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
13104
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13105
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13106
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13107
|
-
return {
|
|
13108
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13109
|
-
options: localVarRequestOptions,
|
|
13110
|
-
};
|
|
13111
|
-
}),
|
|
13112
|
-
/**
|
|
13113
|
-
*
|
|
13114
|
-
* @summary Update a variable
|
|
13115
|
-
* @param {string} apiOrganisation The organisation ID
|
|
13116
|
-
* @param {string} apiApplication The application ID
|
|
13117
|
-
* @param {string} apiEnvironment The environment ID
|
|
13118
|
-
* @param {string} apiVariable The variable key
|
|
13119
|
-
* @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
|
|
12467
|
+
* @summary Update a variable
|
|
12468
|
+
* @param {string} apiOrganisation The organisation ID
|
|
12469
|
+
* @param {string} apiApplication The application ID
|
|
12470
|
+
* @param {string} apiEnvironment The environment ID
|
|
12471
|
+
* @param {string} apiVariable The variable key
|
|
12472
|
+
* @param {UpdateEnvironmentVariableRequest} updateEnvironmentVariableRequest
|
|
13120
12473
|
* @param {*} [options] Override http request option.
|
|
13121
12474
|
* @throws {RequiredError}
|
|
13122
12475
|
*/
|
|
@@ -13386,16 +12739,19 @@ const VolumesApiAxiosParamCreator = function (configuration) {
|
|
|
13386
12739
|
* @param {string} organisation The organisation ID
|
|
13387
12740
|
* @param {string} application The application ID
|
|
13388
12741
|
* @param {string} environment The environment ID
|
|
12742
|
+
* @param {CreateVolumeRequest} createVolumeRequest
|
|
13389
12743
|
* @param {*} [options] Override http request option.
|
|
13390
12744
|
* @throws {RequiredError}
|
|
13391
12745
|
*/
|
|
13392
|
-
createVolume: (organisation, application, environment, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
12746
|
+
createVolume: (organisation, application, environment, createVolumeRequest, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13393
12747
|
// verify required parameter 'organisation' is not null or undefined
|
|
13394
12748
|
(0, common_1.assertParamExists)('createVolume', 'organisation', organisation);
|
|
13395
12749
|
// verify required parameter 'application' is not null or undefined
|
|
13396
12750
|
(0, common_1.assertParamExists)('createVolume', 'application', application);
|
|
13397
12751
|
// verify required parameter 'environment' is not null or undefined
|
|
13398
12752
|
(0, common_1.assertParamExists)('createVolume', 'environment', environment);
|
|
12753
|
+
// verify required parameter 'createVolumeRequest' is not null or undefined
|
|
12754
|
+
(0, common_1.assertParamExists)('createVolume', 'createVolumeRequest', createVolumeRequest);
|
|
13399
12755
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/volumes`
|
|
13400
12756
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
13401
12757
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -13412,9 +12768,11 @@ const VolumesApiAxiosParamCreator = function (configuration) {
|
|
|
13412
12768
|
// authentication BearerAuth required
|
|
13413
12769
|
// http bearer authentication required
|
|
13414
12770
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
12771
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13415
12772
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13416
12773
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13417
12774
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
12775
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createVolumeRequest, localVarRequestOptions, configuration);
|
|
13418
12776
|
return {
|
|
13419
12777
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13420
12778
|
options: localVarRequestOptions,
|
|
@@ -13564,13 +12922,14 @@ const VolumesApiFp = function (configuration) {
|
|
|
13564
12922
|
* @param {string} organisation The organisation ID
|
|
13565
12923
|
* @param {string} application The application ID
|
|
13566
12924
|
* @param {string} environment The environment ID
|
|
12925
|
+
* @param {CreateVolumeRequest} createVolumeRequest
|
|
13567
12926
|
* @param {*} [options] Override http request option.
|
|
13568
12927
|
* @throws {RequiredError}
|
|
13569
12928
|
*/
|
|
13570
|
-
createVolume(organisation, application, environment, options) {
|
|
12929
|
+
createVolume(organisation, application, environment, createVolumeRequest, options) {
|
|
13571
12930
|
var _a, _b, _c;
|
|
13572
12931
|
return __awaiter(this, void 0, void 0, function* () {
|
|
13573
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(organisation, application, environment, options);
|
|
12932
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createVolume(organisation, application, environment, createVolumeRequest, options);
|
|
13574
12933
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13575
12934
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['VolumesApi.createVolume']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13576
12935
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -13648,11 +13007,12 @@ const VolumesApiFactory = function (configuration, basePath, axios) {
|
|
|
13648
13007
|
* @param {string} organisation The organisation ID
|
|
13649
13008
|
* @param {string} application The application ID
|
|
13650
13009
|
* @param {string} environment The environment ID
|
|
13010
|
+
* @param {CreateVolumeRequest} createVolumeRequest
|
|
13651
13011
|
* @param {*} [options] Override http request option.
|
|
13652
13012
|
* @throws {RequiredError}
|
|
13653
13013
|
*/
|
|
13654
|
-
createVolume(organisation, application, environment, options) {
|
|
13655
|
-
return localVarFp.createVolume(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
13014
|
+
createVolume(organisation, application, environment, createVolumeRequest, options) {
|
|
13015
|
+
return localVarFp.createVolume(organisation, application, environment, createVolumeRequest, options).then((request) => request(axios, basePath));
|
|
13656
13016
|
},
|
|
13657
13017
|
/**
|
|
13658
13018
|
*
|
|
@@ -13708,12 +13068,13 @@ class VolumesApi extends base_1.BaseAPI {
|
|
|
13708
13068
|
* @param {string} organisation The organisation ID
|
|
13709
13069
|
* @param {string} application The application ID
|
|
13710
13070
|
* @param {string} environment The environment ID
|
|
13071
|
+
* @param {CreateVolumeRequest} createVolumeRequest
|
|
13711
13072
|
* @param {*} [options] Override http request option.
|
|
13712
13073
|
* @throws {RequiredError}
|
|
13713
13074
|
* @memberof VolumesApi
|
|
13714
13075
|
*/
|
|
13715
|
-
createVolume(organisation, application, environment, options) {
|
|
13716
|
-
return (0, exports.VolumesApiFp)(this.configuration).createVolume(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
13076
|
+
createVolume(organisation, application, environment, createVolumeRequest, options) {
|
|
13077
|
+
return (0, exports.VolumesApiFp)(this.configuration).createVolume(organisation, application, environment, createVolumeRequest, options).then((request) => request(this.axios, this.basePath));
|
|
13717
13078
|
}
|
|
13718
13079
|
/**
|
|
13719
13080
|
*
|
|
@@ -13758,108 +13119,3 @@ class VolumesApi extends base_1.BaseAPI {
|
|
|
13758
13119
|
}
|
|
13759
13120
|
}
|
|
13760
13121
|
exports.VolumesApi = VolumesApi;
|
|
13761
|
-
/**
|
|
13762
|
-
* WAFApi - axios parameter creator
|
|
13763
|
-
* @export
|
|
13764
|
-
*/
|
|
13765
|
-
const WAFApiAxiosParamCreator = function (configuration) {
|
|
13766
|
-
return {
|
|
13767
|
-
/**
|
|
13768
|
-
*
|
|
13769
|
-
* @summary Retrieve WAF logs
|
|
13770
|
-
* @param {object} [body]
|
|
13771
|
-
* @param {*} [options] Override http request option.
|
|
13772
|
-
* @throws {RequiredError}
|
|
13773
|
-
*/
|
|
13774
|
-
getWafLogs: (body, options = {}) => __awaiter(this, void 0, void 0, function* () {
|
|
13775
|
-
const localVarPath = `/api/v1/waf-log`;
|
|
13776
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
13777
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
13778
|
-
let baseOptions;
|
|
13779
|
-
if (configuration) {
|
|
13780
|
-
baseOptions = configuration.baseOptions;
|
|
13781
|
-
}
|
|
13782
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
13783
|
-
const localVarHeaderParameter = {};
|
|
13784
|
-
const localVarQueryParameter = {};
|
|
13785
|
-
// authentication headerAuth required
|
|
13786
|
-
yield (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Quant-Token", configuration);
|
|
13787
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
13788
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
13789
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
13790
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
13791
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
|
|
13792
|
-
return {
|
|
13793
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
13794
|
-
options: localVarRequestOptions,
|
|
13795
|
-
};
|
|
13796
|
-
}),
|
|
13797
|
-
};
|
|
13798
|
-
};
|
|
13799
|
-
exports.WAFApiAxiosParamCreator = WAFApiAxiosParamCreator;
|
|
13800
|
-
/**
|
|
13801
|
-
* WAFApi - functional programming interface
|
|
13802
|
-
* @export
|
|
13803
|
-
*/
|
|
13804
|
-
const WAFApiFp = function (configuration) {
|
|
13805
|
-
const localVarAxiosParamCreator = (0, exports.WAFApiAxiosParamCreator)(configuration);
|
|
13806
|
-
return {
|
|
13807
|
-
/**
|
|
13808
|
-
*
|
|
13809
|
-
* @summary Retrieve WAF logs
|
|
13810
|
-
* @param {object} [body]
|
|
13811
|
-
* @param {*} [options] Override http request option.
|
|
13812
|
-
* @throws {RequiredError}
|
|
13813
|
-
*/
|
|
13814
|
-
getWafLogs(body, options) {
|
|
13815
|
-
var _a, _b, _c;
|
|
13816
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
13817
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getWafLogs(body, options);
|
|
13818
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
13819
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['WAFApi.getWafLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
13820
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
13821
|
-
});
|
|
13822
|
-
},
|
|
13823
|
-
};
|
|
13824
|
-
};
|
|
13825
|
-
exports.WAFApiFp = WAFApiFp;
|
|
13826
|
-
/**
|
|
13827
|
-
* WAFApi - factory interface
|
|
13828
|
-
* @export
|
|
13829
|
-
*/
|
|
13830
|
-
const WAFApiFactory = function (configuration, basePath, axios) {
|
|
13831
|
-
const localVarFp = (0, exports.WAFApiFp)(configuration);
|
|
13832
|
-
return {
|
|
13833
|
-
/**
|
|
13834
|
-
*
|
|
13835
|
-
* @summary Retrieve WAF logs
|
|
13836
|
-
* @param {object} [body]
|
|
13837
|
-
* @param {*} [options] Override http request option.
|
|
13838
|
-
* @throws {RequiredError}
|
|
13839
|
-
*/
|
|
13840
|
-
getWafLogs(body, options) {
|
|
13841
|
-
return localVarFp.getWafLogs(body, options).then((request) => request(axios, basePath));
|
|
13842
|
-
},
|
|
13843
|
-
};
|
|
13844
|
-
};
|
|
13845
|
-
exports.WAFApiFactory = WAFApiFactory;
|
|
13846
|
-
/**
|
|
13847
|
-
* WAFApi - object-oriented interface
|
|
13848
|
-
* @export
|
|
13849
|
-
* @class WAFApi
|
|
13850
|
-
* @extends {BaseAPI}
|
|
13851
|
-
*/
|
|
13852
|
-
class WAFApi extends base_1.BaseAPI {
|
|
13853
|
-
/**
|
|
13854
|
-
*
|
|
13855
|
-
* @summary Retrieve WAF logs
|
|
13856
|
-
* @param {object} [body]
|
|
13857
|
-
* @param {*} [options] Override http request option.
|
|
13858
|
-
* @throws {RequiredError}
|
|
13859
|
-
* @memberof WAFApi
|
|
13860
|
-
*/
|
|
13861
|
-
getWafLogs(body, options) {
|
|
13862
|
-
return (0, exports.WAFApiFp)(this.configuration).getWafLogs(body, options).then((request) => request(this.axios, this.basePath));
|
|
13863
|
-
}
|
|
13864
|
-
}
|
|
13865
|
-
exports.WAFApi = WAFApi;
|