@quantcdn/quant-client 4.15.4 → 4.21.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/api.ts +4744 -718
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +8412 -5709
- package/dist/api.js +2789 -360
- 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 +8412 -5709
- package/dist/esm/api.js +2758 -346
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/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.21.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,11 +22,12 @@ 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.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
25
|
+
exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateTaskRequestStatusEnum = exports.CreateSlackBotRequestSetupTypeEnum = exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateFilterPolicyRequestRulesInnerMatchTypeEnum = exports.CreateFilterPolicyRequestRulesInnerApplyToEnum = exports.CreateFilterPolicyRequestRulesInnerActionEnum = exports.CreateCustomToolRequestResponseModeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.CreateAIAgentRequestGuardrailPresetEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatWithAIAgent202ResponseStatusEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestGuardrailsTraceEnum = exports.ChatInference202ResponseStatusEnum = exports.ChatInference200ResponseResponseRoleEnum = exports.ChatInference200ResponseFinishReasonEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = void 0;
|
|
26
|
+
exports.AIFilterPoliciesApiFp = exports.AIFilterPoliciesApiAxiosParamCreator = exports.AIFileStorageApi = exports.AIFileStorageApiFactory = exports.AIFileStorageApiFp = exports.AIFileStorageApiAxiosParamCreator = exports.AICustomToolsApi = exports.AICustomToolsApiFactory = exports.AICustomToolsApiFp = exports.AICustomToolsApiAxiosParamCreator = exports.AIAgentsApi = exports.AIAgentsApiFactory = exports.AIAgentsApiFp = exports.AIAgentsApiAxiosParamCreator = exports.GetAIUsageStatsIncludeEnum = exports.GetAIUsageStatsGroupByEnum = exports.AIApi = exports.AIApiFactory = exports.AIApiFp = exports.AIApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = exports.V1TransitionStateEnum = exports.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = exports.TokensCreateRequestExpiresInEnum = exports.SpotConfigurationStrategyEnum = exports.SetScalingPolicyRequestMetricEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = void 0;
|
|
27
|
+
exports.AIUsageApi = exports.AIUsageApiFactory = exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.ListTasksStatusEnum = exports.AITaskManagementApi = exports.AITaskManagementApiFactory = exports.AITaskManagementApiFp = exports.AITaskManagementApiAxiosParamCreator = exports.AISlackBotsApi = exports.AISlackBotsApiFactory = exports.AISlackBotsApiFp = exports.AISlackBotsApiAxiosParamCreator = exports.AISkillsApi = exports.AISkillsApiFactory = exports.AISkillsApiFp = exports.AISkillsApiAxiosParamCreator = exports.AISessionsApi = exports.AISessionsApiFactory = exports.AISessionsApiFp = exports.AISessionsApiAxiosParamCreator = exports.AISearchApi = exports.AISearchApiFactory = exports.AISearchApiFp = exports.AISearchApiAxiosParamCreator = exports.ListOrchestrationsStatusEnum = exports.AIOrchestrationsApi = exports.AIOrchestrationsApiFactory = exports.AIOrchestrationsApiFp = exports.AIOrchestrationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIModelsApi = exports.AIModelsApiFactory = exports.AIModelsApiFp = exports.AIModelsApiAxiosParamCreator = exports.AIInferenceApi = exports.AIInferenceApiFactory = exports.AIInferenceApiFp = exports.AIInferenceApiAxiosParamCreator = exports.AIGovernanceApi = exports.AIGovernanceApiFactory = exports.AIGovernanceApiFp = exports.AIGovernanceApiAxiosParamCreator = exports.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = void 0;
|
|
28
|
+
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.GetMonthlyMetricsTimestampFormatEnum = exports.GetMonthlyMetricsMetricsEnum = exports.GetHourlyMetricsTimestampFormatEnum = exports.GetHourlyMetricsMetricsEnum = exports.GetDailyMetricsTimestampFormatEnum = exports.GetDailyMetricsMetricsEnum = exports.CDNMetricsApi = exports.CDNMetricsApiFactory = exports.CDNMetricsApiFp = exports.CDNMetricsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = void 0;
|
|
29
|
+
exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RestoreManagementApi = exports.RestoreManagementApiFactory = exports.RestoreManagementApiFp = exports.RestoreManagementApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OpenAICompatibilityApi = exports.OpenAICompatibilityApiFactory = exports.OpenAICompatibilityApiFp = exports.OpenAICompatibilityApiAxiosParamCreator = 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 = void 0;
|
|
30
|
+
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.TokensApi = exports.TokensApiFactory = exports.TokensApiFp = exports.TokensApiAxiosParamCreator = exports.SubscriptionApi = exports.SubscriptionApiFactory = exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = void 0;
|
|
30
31
|
const axios_1 = require("axios");
|
|
31
32
|
// Some imports not used depending on template conditions
|
|
32
33
|
// @ts-ignore
|
|
@@ -118,6 +119,10 @@ exports.CreateApplicationRequestDatabaseEngineEnum = {
|
|
|
118
119
|
Mysql: 'mysql',
|
|
119
120
|
Postgres: 'postgres'
|
|
120
121
|
};
|
|
122
|
+
exports.CreateCustomToolRequestResponseModeEnum = {
|
|
123
|
+
Llm: 'llm',
|
|
124
|
+
Direct: 'direct'
|
|
125
|
+
};
|
|
121
126
|
exports.CreateFilterPolicyRequestRulesInnerActionEnum = {
|
|
122
127
|
Block: 'BLOCK',
|
|
123
128
|
Redact: 'REDACT'
|
|
@@ -184,7 +189,7 @@ exports.EnvironmentSummaryDeploymentStatusEnum = {
|
|
|
184
189
|
};
|
|
185
190
|
exports.GetAIOrchestrationStatus200ResponseStatusEnum = {
|
|
186
191
|
Pending: 'pending',
|
|
187
|
-
|
|
192
|
+
WaitingTools: 'waiting_tools',
|
|
188
193
|
Synthesizing: 'synthesizing',
|
|
189
194
|
Complete: 'complete',
|
|
190
195
|
Failed: 'failed'
|
|
@@ -195,6 +200,10 @@ exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = {
|
|
|
195
200
|
Complete: 'complete',
|
|
196
201
|
Failed: 'failed'
|
|
197
202
|
};
|
|
203
|
+
exports.GetCustomTool200ResponseToolResponseModeEnum = {
|
|
204
|
+
Llm: 'llm',
|
|
205
|
+
Direct: 'direct'
|
|
206
|
+
};
|
|
198
207
|
exports.GetDurableExecutionStatus200ResponseStatusEnum = {
|
|
199
208
|
Pending: 'pending',
|
|
200
209
|
Running: 'running',
|
|
@@ -207,6 +216,17 @@ exports.GetGovernanceConfig200ResponseModelPolicyEnum = {
|
|
|
207
216
|
Allowlist: 'allowlist',
|
|
208
217
|
Blocklist: 'blocklist'
|
|
209
218
|
};
|
|
219
|
+
exports.GetRestoreStatus200ResponseStatusEnum = {
|
|
220
|
+
Pending: 'pending',
|
|
221
|
+
InProgress: 'in_progress',
|
|
222
|
+
Completed: 'completed',
|
|
223
|
+
Failed: 'failed'
|
|
224
|
+
};
|
|
225
|
+
exports.GetScalingPolicyResponseMetricEnum = {
|
|
226
|
+
CpuUtilization: 'CPUUtilization',
|
|
227
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
228
|
+
Rps: 'RPS'
|
|
229
|
+
};
|
|
210
230
|
exports.GetSlackBot200ResponseBotSetupTypeEnum = {
|
|
211
231
|
Quant: 'quant',
|
|
212
232
|
Byo: 'byo'
|
|
@@ -288,6 +308,17 @@ exports.ListTasks200ResponseTasksInnerStatusEnum = {
|
|
|
288
308
|
Cancelled: 'cancelled',
|
|
289
309
|
Blocked: 'blocked'
|
|
290
310
|
};
|
|
311
|
+
exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = {
|
|
312
|
+
Stop: 'stop',
|
|
313
|
+
ToolCalls: 'tool_calls',
|
|
314
|
+
Length: 'length'
|
|
315
|
+
};
|
|
316
|
+
exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = {
|
|
317
|
+
System: 'system',
|
|
318
|
+
User: 'user',
|
|
319
|
+
Assistant: 'assistant',
|
|
320
|
+
Tool: 'tool'
|
|
321
|
+
};
|
|
291
322
|
exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
292
323
|
Off: 'off',
|
|
293
324
|
SpotOnly: 'spot-only',
|
|
@@ -315,7 +346,7 @@ exports.QueryVectorCollectionRequestSortOrderEnum = {
|
|
|
315
346
|
Asc: 'asc',
|
|
316
347
|
Desc: 'desc'
|
|
317
348
|
};
|
|
318
|
-
exports.
|
|
349
|
+
exports.SetScalingPolicyRequestMetricEnum = {
|
|
319
350
|
CpuUtilization: 'CPUUtilization',
|
|
320
351
|
MemoryUtilization: 'MemoryUtilization',
|
|
321
352
|
Rps: 'RPS'
|
|
@@ -404,6 +435,162 @@ exports.WafConfigThresholdsInnerModeEnum = {
|
|
|
404
435
|
Report: 'report',
|
|
405
436
|
Block: 'block'
|
|
406
437
|
};
|
|
438
|
+
/**
|
|
439
|
+
* AIApi - axios parameter creator
|
|
440
|
+
* @export
|
|
441
|
+
*/
|
|
442
|
+
const AIApiAxiosParamCreator = function (configuration) {
|
|
443
|
+
return {
|
|
444
|
+
/**
|
|
445
|
+
* AI usage from the subscription page\'s source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me.
|
|
446
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
447
|
+
* @param {string} organisation
|
|
448
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
449
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
450
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
451
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
452
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
453
|
+
* @param {*} [options] Override http request option.
|
|
454
|
+
* @throws {RequiredError}
|
|
455
|
+
*/
|
|
456
|
+
getAIUsageStats: (organisation_1, month_1, groupBy_1, include_1, userId_1, tokenId_1, ...args_1) => __awaiter(this, [organisation_1, month_1, groupBy_1, include_1, userId_1, tokenId_1, ...args_1], void 0, function* (organisation, month, groupBy, include, userId, tokenId, options = {}) {
|
|
457
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
458
|
+
(0, common_1.assertParamExists)('getAIUsageStats', 'organisation', organisation);
|
|
459
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
|
|
460
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
461
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
462
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
463
|
+
let baseOptions;
|
|
464
|
+
if (configuration) {
|
|
465
|
+
baseOptions = configuration.baseOptions;
|
|
466
|
+
}
|
|
467
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
468
|
+
const localVarHeaderParameter = {};
|
|
469
|
+
const localVarQueryParameter = {};
|
|
470
|
+
// authentication BearerAuth required
|
|
471
|
+
// http bearer authentication required
|
|
472
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
473
|
+
if (month !== undefined) {
|
|
474
|
+
localVarQueryParameter['month'] = month;
|
|
475
|
+
}
|
|
476
|
+
if (groupBy !== undefined) {
|
|
477
|
+
localVarQueryParameter['groupBy'] = groupBy;
|
|
478
|
+
}
|
|
479
|
+
if (include !== undefined) {
|
|
480
|
+
localVarQueryParameter['include'] = include;
|
|
481
|
+
}
|
|
482
|
+
if (userId !== undefined) {
|
|
483
|
+
localVarQueryParameter['userId'] = userId;
|
|
484
|
+
}
|
|
485
|
+
if (tokenId !== undefined) {
|
|
486
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
487
|
+
}
|
|
488
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
489
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
490
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
491
|
+
return {
|
|
492
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
493
|
+
options: localVarRequestOptions,
|
|
494
|
+
};
|
|
495
|
+
}),
|
|
496
|
+
};
|
|
497
|
+
};
|
|
498
|
+
exports.AIApiAxiosParamCreator = AIApiAxiosParamCreator;
|
|
499
|
+
/**
|
|
500
|
+
* AIApi - functional programming interface
|
|
501
|
+
* @export
|
|
502
|
+
*/
|
|
503
|
+
const AIApiFp = function (configuration) {
|
|
504
|
+
const localVarAxiosParamCreator = (0, exports.AIApiAxiosParamCreator)(configuration);
|
|
505
|
+
return {
|
|
506
|
+
/**
|
|
507
|
+
* AI usage from the subscription page\'s source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me.
|
|
508
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
509
|
+
* @param {string} organisation
|
|
510
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
511
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
512
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
513
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
514
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
515
|
+
* @param {*} [options] Override http request option.
|
|
516
|
+
* @throws {RequiredError}
|
|
517
|
+
*/
|
|
518
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
519
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
520
|
+
var _a, _b, _c;
|
|
521
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options);
|
|
522
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
523
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIApi.getAIUsageStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
524
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
525
|
+
});
|
|
526
|
+
},
|
|
527
|
+
};
|
|
528
|
+
};
|
|
529
|
+
exports.AIApiFp = AIApiFp;
|
|
530
|
+
/**
|
|
531
|
+
* AIApi - factory interface
|
|
532
|
+
* @export
|
|
533
|
+
*/
|
|
534
|
+
const AIApiFactory = function (configuration, basePath, axios) {
|
|
535
|
+
const localVarFp = (0, exports.AIApiFp)(configuration);
|
|
536
|
+
return {
|
|
537
|
+
/**
|
|
538
|
+
* AI usage from the subscription page\'s source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me.
|
|
539
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
540
|
+
* @param {string} organisation
|
|
541
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
542
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
543
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
544
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
545
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
546
|
+
* @param {*} [options] Override http request option.
|
|
547
|
+
* @throws {RequiredError}
|
|
548
|
+
*/
|
|
549
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
550
|
+
return localVarFp.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(axios, basePath));
|
|
551
|
+
},
|
|
552
|
+
};
|
|
553
|
+
};
|
|
554
|
+
exports.AIApiFactory = AIApiFactory;
|
|
555
|
+
/**
|
|
556
|
+
* AIApi - object-oriented interface
|
|
557
|
+
* @export
|
|
558
|
+
* @class AIApi
|
|
559
|
+
* @extends {BaseAPI}
|
|
560
|
+
*/
|
|
561
|
+
class AIApi extends base_1.BaseAPI {
|
|
562
|
+
/**
|
|
563
|
+
* AI usage from the subscription page\'s source (cloud-api monthly-usage). Parameterized by month, groupBy (model|user|token) and optional daily series. NOTE: as of API 4.19.0 this endpoint requires the update_subscription permission + subscription:read scope (previously use_ai_services + ai:use). For per-caller spend use /ai/usage/me.
|
|
564
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
565
|
+
* @param {string} organisation
|
|
566
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
567
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
568
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
569
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
570
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
571
|
+
* @param {*} [options] Override http request option.
|
|
572
|
+
* @throws {RequiredError}
|
|
573
|
+
* @memberof AIApi
|
|
574
|
+
*/
|
|
575
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
576
|
+
return (0, exports.AIApiFp)(this.configuration).getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(this.axios, this.basePath));
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
exports.AIApi = AIApi;
|
|
580
|
+
/**
|
|
581
|
+
* @export
|
|
582
|
+
*/
|
|
583
|
+
exports.GetAIUsageStatsGroupByEnum = {
|
|
584
|
+
Model: 'model',
|
|
585
|
+
User: 'user',
|
|
586
|
+
Token: 'token'
|
|
587
|
+
};
|
|
588
|
+
/**
|
|
589
|
+
* @export
|
|
590
|
+
*/
|
|
591
|
+
exports.GetAIUsageStatsIncludeEnum = {
|
|
592
|
+
Daily: 'daily'
|
|
593
|
+
};
|
|
407
594
|
/**
|
|
408
595
|
* AIAgentsApi - axios parameter creator
|
|
409
596
|
* @export
|
|
@@ -1158,7 +1345,7 @@ exports.AIAgentsApi = AIAgentsApi;
|
|
|
1158
1345
|
const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
1159
1346
|
return {
|
|
1160
1347
|
/**
|
|
1161
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1348
|
+
* Registers a custom edge function as a tool that AI models can invoke. Provide `edgeFunctionCode` (JavaScript) and the API will deploy it to the CDN, compute the edge function URL, and register the tool. * * **Edge Function Contract:** * - Edge functions must accept POST requests with JSON payload * - Expected request format: `{ \'toolName\': \'...\', \'input\': {...}, \'orgId\': \'...\' }` * - Must return JSON response with either `result` or `error` field * * **Idempotent Updates:** * POSTing with the same `name` will update the existing tool — the edge function code is redeployed to the same UUID and the tool registration is updated. * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
|
|
1162
1349
|
* @summary Register Custom Edge Function Tool
|
|
1163
1350
|
* @param {string} organisation The organisation ID
|
|
1164
1351
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1195,7 +1382,7 @@ const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1195
1382
|
};
|
|
1196
1383
|
}),
|
|
1197
1384
|
/**
|
|
1198
|
-
* Deletes a custom tool registration
|
|
1385
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1199
1386
|
* @summary Delete Custom Tool
|
|
1200
1387
|
* @param {string} organisation The organisation ID
|
|
1201
1388
|
* @param {string} toolName The tool name to delete
|
|
@@ -1230,6 +1417,42 @@ const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1230
1417
|
options: localVarRequestOptions,
|
|
1231
1418
|
};
|
|
1232
1419
|
}),
|
|
1420
|
+
/**
|
|
1421
|
+
* Retrieves a single registered custom tool by name.
|
|
1422
|
+
* @summary Get Custom Tool
|
|
1423
|
+
* @param {string} organisation The organisation ID
|
|
1424
|
+
* @param {string} toolName The tool name to retrieve
|
|
1425
|
+
* @param {*} [options] Override http request option.
|
|
1426
|
+
* @throws {RequiredError}
|
|
1427
|
+
*/
|
|
1428
|
+
getCustomTool: (organisation_1, toolName_1, ...args_1) => __awaiter(this, [organisation_1, toolName_1, ...args_1], void 0, function* (organisation, toolName, options = {}) {
|
|
1429
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
1430
|
+
(0, common_1.assertParamExists)('getCustomTool', 'organisation', organisation);
|
|
1431
|
+
// verify required parameter 'toolName' is not null or undefined
|
|
1432
|
+
(0, common_1.assertParamExists)('getCustomTool', 'toolName', toolName);
|
|
1433
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/custom-tools/{toolName}`
|
|
1434
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
1435
|
+
.replace(`{${"toolName"}}`, encodeURIComponent(String(toolName)));
|
|
1436
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1437
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1438
|
+
let baseOptions;
|
|
1439
|
+
if (configuration) {
|
|
1440
|
+
baseOptions = configuration.baseOptions;
|
|
1441
|
+
}
|
|
1442
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1443
|
+
const localVarHeaderParameter = {};
|
|
1444
|
+
const localVarQueryParameter = {};
|
|
1445
|
+
// authentication BearerAuth required
|
|
1446
|
+
// http bearer authentication required
|
|
1447
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1448
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1449
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1450
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1451
|
+
return {
|
|
1452
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1453
|
+
options: localVarRequestOptions,
|
|
1454
|
+
};
|
|
1455
|
+
}),
|
|
1233
1456
|
/**
|
|
1234
1457
|
* Lists all registered custom edge function tools for an organization.
|
|
1235
1458
|
* @summary List Custom Tools
|
|
@@ -1273,7 +1496,7 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1273
1496
|
const localVarAxiosParamCreator = (0, exports.AICustomToolsApiAxiosParamCreator)(configuration);
|
|
1274
1497
|
return {
|
|
1275
1498
|
/**
|
|
1276
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1499
|
+
* Registers a custom edge function as a tool that AI models can invoke. Provide `edgeFunctionCode` (JavaScript) and the API will deploy it to the CDN, compute the edge function URL, and register the tool. * * **Edge Function Contract:** * - Edge functions must accept POST requests with JSON payload * - Expected request format: `{ \'toolName\': \'...\', \'input\': {...}, \'orgId\': \'...\' }` * - Must return JSON response with either `result` or `error` field * * **Idempotent Updates:** * POSTing with the same `name` will update the existing tool — the edge function code is redeployed to the same UUID and the tool registration is updated. * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
|
|
1277
1500
|
* @summary Register Custom Edge Function Tool
|
|
1278
1501
|
* @param {string} organisation The organisation ID
|
|
1279
1502
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1290,7 +1513,7 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1290
1513
|
});
|
|
1291
1514
|
},
|
|
1292
1515
|
/**
|
|
1293
|
-
* Deletes a custom tool registration
|
|
1516
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1294
1517
|
* @summary Delete Custom Tool
|
|
1295
1518
|
* @param {string} organisation The organisation ID
|
|
1296
1519
|
* @param {string} toolName The tool name to delete
|
|
@@ -1306,6 +1529,23 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1306
1529
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1307
1530
|
});
|
|
1308
1531
|
},
|
|
1532
|
+
/**
|
|
1533
|
+
* Retrieves a single registered custom tool by name.
|
|
1534
|
+
* @summary Get Custom Tool
|
|
1535
|
+
* @param {string} organisation The organisation ID
|
|
1536
|
+
* @param {string} toolName The tool name to retrieve
|
|
1537
|
+
* @param {*} [options] Override http request option.
|
|
1538
|
+
* @throws {RequiredError}
|
|
1539
|
+
*/
|
|
1540
|
+
getCustomTool(organisation, toolName, options) {
|
|
1541
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1542
|
+
var _a, _b, _c;
|
|
1543
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomTool(organisation, toolName, options);
|
|
1544
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1545
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AICustomToolsApi.getCustomTool']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1546
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1547
|
+
});
|
|
1548
|
+
},
|
|
1309
1549
|
/**
|
|
1310
1550
|
* Lists all registered custom edge function tools for an organization.
|
|
1311
1551
|
* @summary List Custom Tools
|
|
@@ -1333,7 +1573,7 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1333
1573
|
const localVarFp = (0, exports.AICustomToolsApiFp)(configuration);
|
|
1334
1574
|
return {
|
|
1335
1575
|
/**
|
|
1336
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1576
|
+
* Registers a custom edge function as a tool that AI models can invoke. Provide `edgeFunctionCode` (JavaScript) and the API will deploy it to the CDN, compute the edge function URL, and register the tool. * * **Edge Function Contract:** * - Edge functions must accept POST requests with JSON payload * - Expected request format: `{ \'toolName\': \'...\', \'input\': {...}, \'orgId\': \'...\' }` * - Must return JSON response with either `result` or `error` field * * **Idempotent Updates:** * POSTing with the same `name` will update the existing tool — the edge function code is redeployed to the same UUID and the tool registration is updated. * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
|
|
1337
1577
|
* @summary Register Custom Edge Function Tool
|
|
1338
1578
|
* @param {string} organisation The organisation ID
|
|
1339
1579
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1344,7 +1584,7 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1344
1584
|
return localVarFp.createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(axios, basePath));
|
|
1345
1585
|
},
|
|
1346
1586
|
/**
|
|
1347
|
-
* Deletes a custom tool registration
|
|
1587
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1348
1588
|
* @summary Delete Custom Tool
|
|
1349
1589
|
* @param {string} organisation The organisation ID
|
|
1350
1590
|
* @param {string} toolName The tool name to delete
|
|
@@ -1354,6 +1594,17 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1354
1594
|
deleteCustomTool(organisation, toolName, options) {
|
|
1355
1595
|
return localVarFp.deleteCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1356
1596
|
},
|
|
1597
|
+
/**
|
|
1598
|
+
* Retrieves a single registered custom tool by name.
|
|
1599
|
+
* @summary Get Custom Tool
|
|
1600
|
+
* @param {string} organisation The organisation ID
|
|
1601
|
+
* @param {string} toolName The tool name to retrieve
|
|
1602
|
+
* @param {*} [options] Override http request option.
|
|
1603
|
+
* @throws {RequiredError}
|
|
1604
|
+
*/
|
|
1605
|
+
getCustomTool(organisation, toolName, options) {
|
|
1606
|
+
return localVarFp.getCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1607
|
+
},
|
|
1357
1608
|
/**
|
|
1358
1609
|
* Lists all registered custom edge function tools for an organization.
|
|
1359
1610
|
* @summary List Custom Tools
|
|
@@ -1375,7 +1626,7 @@ exports.AICustomToolsApiFactory = AICustomToolsApiFactory;
|
|
|
1375
1626
|
*/
|
|
1376
1627
|
class AICustomToolsApi extends base_1.BaseAPI {
|
|
1377
1628
|
/**
|
|
1378
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1629
|
+
* Registers a custom edge function as a tool that AI models can invoke. Provide `edgeFunctionCode` (JavaScript) and the API will deploy it to the CDN, compute the edge function URL, and register the tool. * * **Edge Function Contract:** * - Edge functions must accept POST requests with JSON payload * - Expected request format: `{ \'toolName\': \'...\', \'input\': {...}, \'orgId\': \'...\' }` * - Must return JSON response with either `result` or `error` field * * **Idempotent Updates:** * POSTing with the same `name` will update the existing tool — the edge function code is redeployed to the same UUID and the tool registration is updated. * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
|
|
1379
1630
|
* @summary Register Custom Edge Function Tool
|
|
1380
1631
|
* @param {string} organisation The organisation ID
|
|
1381
1632
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1387,7 +1638,7 @@ class AICustomToolsApi extends base_1.BaseAPI {
|
|
|
1387
1638
|
return (0, exports.AICustomToolsApiFp)(this.configuration).createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1388
1639
|
}
|
|
1389
1640
|
/**
|
|
1390
|
-
* Deletes a custom tool registration
|
|
1641
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1391
1642
|
* @summary Delete Custom Tool
|
|
1392
1643
|
* @param {string} organisation The organisation ID
|
|
1393
1644
|
* @param {string} toolName The tool name to delete
|
|
@@ -1398,6 +1649,18 @@ class AICustomToolsApi extends base_1.BaseAPI {
|
|
|
1398
1649
|
deleteCustomTool(organisation, toolName, options) {
|
|
1399
1650
|
return (0, exports.AICustomToolsApiFp)(this.configuration).deleteCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1400
1651
|
}
|
|
1652
|
+
/**
|
|
1653
|
+
* Retrieves a single registered custom tool by name.
|
|
1654
|
+
* @summary Get Custom Tool
|
|
1655
|
+
* @param {string} organisation The organisation ID
|
|
1656
|
+
* @param {string} toolName The tool name to retrieve
|
|
1657
|
+
* @param {*} [options] Override http request option.
|
|
1658
|
+
* @throws {RequiredError}
|
|
1659
|
+
* @memberof AICustomToolsApi
|
|
1660
|
+
*/
|
|
1661
|
+
getCustomTool(organisation, toolName, options) {
|
|
1662
|
+
return (0, exports.AICustomToolsApiFp)(this.configuration).getCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1663
|
+
}
|
|
1401
1664
|
/**
|
|
1402
1665
|
* Lists all registered custom edge function tools for an organization.
|
|
1403
1666
|
* @summary List Custom Tools
|
|
@@ -3292,120 +3555,6 @@ exports.ListAIModelsFeatureEnum = {
|
|
|
3292
3555
|
Streaming: 'streaming',
|
|
3293
3556
|
All: 'all'
|
|
3294
3557
|
};
|
|
3295
|
-
/**
|
|
3296
|
-
* AIMonitoringApi - axios parameter creator
|
|
3297
|
-
* @export
|
|
3298
|
-
*/
|
|
3299
|
-
const AIMonitoringApiAxiosParamCreator = function (configuration) {
|
|
3300
|
-
return {
|
|
3301
|
-
/**
|
|
3302
|
-
*
|
|
3303
|
-
* @summary Get AI usage statistics
|
|
3304
|
-
* @param {string} organisation The organisation ID
|
|
3305
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3306
|
-
* @param {*} [options] Override http request option.
|
|
3307
|
-
* @throws {RequiredError}
|
|
3308
|
-
*/
|
|
3309
|
-
getAIUsageStats: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
|
|
3310
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
3311
|
-
(0, common_1.assertParamExists)('getAIUsageStats', 'organisation', organisation);
|
|
3312
|
-
const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
|
|
3313
|
-
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3314
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3315
|
-
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
3316
|
-
let baseOptions;
|
|
3317
|
-
if (configuration) {
|
|
3318
|
-
baseOptions = configuration.baseOptions;
|
|
3319
|
-
}
|
|
3320
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3321
|
-
const localVarHeaderParameter = {};
|
|
3322
|
-
const localVarQueryParameter = {};
|
|
3323
|
-
// authentication BearerAuth required
|
|
3324
|
-
// http bearer authentication required
|
|
3325
|
-
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
3326
|
-
if (month !== undefined) {
|
|
3327
|
-
localVarQueryParameter['month'] = month;
|
|
3328
|
-
}
|
|
3329
|
-
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
3330
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3331
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3332
|
-
return {
|
|
3333
|
-
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
3334
|
-
options: localVarRequestOptions,
|
|
3335
|
-
};
|
|
3336
|
-
}),
|
|
3337
|
-
};
|
|
3338
|
-
};
|
|
3339
|
-
exports.AIMonitoringApiAxiosParamCreator = AIMonitoringApiAxiosParamCreator;
|
|
3340
|
-
/**
|
|
3341
|
-
* AIMonitoringApi - functional programming interface
|
|
3342
|
-
* @export
|
|
3343
|
-
*/
|
|
3344
|
-
const AIMonitoringApiFp = function (configuration) {
|
|
3345
|
-
const localVarAxiosParamCreator = (0, exports.AIMonitoringApiAxiosParamCreator)(configuration);
|
|
3346
|
-
return {
|
|
3347
|
-
/**
|
|
3348
|
-
*
|
|
3349
|
-
* @summary Get AI usage statistics
|
|
3350
|
-
* @param {string} organisation The organisation ID
|
|
3351
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3352
|
-
* @param {*} [options] Override http request option.
|
|
3353
|
-
* @throws {RequiredError}
|
|
3354
|
-
*/
|
|
3355
|
-
getAIUsageStats(organisation, month, options) {
|
|
3356
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3357
|
-
var _a, _b, _c;
|
|
3358
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, options);
|
|
3359
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3360
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIMonitoringApi.getAIUsageStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3361
|
-
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3362
|
-
});
|
|
3363
|
-
},
|
|
3364
|
-
};
|
|
3365
|
-
};
|
|
3366
|
-
exports.AIMonitoringApiFp = AIMonitoringApiFp;
|
|
3367
|
-
/**
|
|
3368
|
-
* AIMonitoringApi - factory interface
|
|
3369
|
-
* @export
|
|
3370
|
-
*/
|
|
3371
|
-
const AIMonitoringApiFactory = function (configuration, basePath, axios) {
|
|
3372
|
-
const localVarFp = (0, exports.AIMonitoringApiFp)(configuration);
|
|
3373
|
-
return {
|
|
3374
|
-
/**
|
|
3375
|
-
*
|
|
3376
|
-
* @summary Get AI usage statistics
|
|
3377
|
-
* @param {string} organisation The organisation ID
|
|
3378
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3379
|
-
* @param {*} [options] Override http request option.
|
|
3380
|
-
* @throws {RequiredError}
|
|
3381
|
-
*/
|
|
3382
|
-
getAIUsageStats(organisation, month, options) {
|
|
3383
|
-
return localVarFp.getAIUsageStats(organisation, month, options).then((request) => request(axios, basePath));
|
|
3384
|
-
},
|
|
3385
|
-
};
|
|
3386
|
-
};
|
|
3387
|
-
exports.AIMonitoringApiFactory = AIMonitoringApiFactory;
|
|
3388
|
-
/**
|
|
3389
|
-
* AIMonitoringApi - object-oriented interface
|
|
3390
|
-
* @export
|
|
3391
|
-
* @class AIMonitoringApi
|
|
3392
|
-
* @extends {BaseAPI}
|
|
3393
|
-
*/
|
|
3394
|
-
class AIMonitoringApi extends base_1.BaseAPI {
|
|
3395
|
-
/**
|
|
3396
|
-
*
|
|
3397
|
-
* @summary Get AI usage statistics
|
|
3398
|
-
* @param {string} organisation The organisation ID
|
|
3399
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3400
|
-
* @param {*} [options] Override http request option.
|
|
3401
|
-
* @throws {RequiredError}
|
|
3402
|
-
* @memberof AIMonitoringApi
|
|
3403
|
-
*/
|
|
3404
|
-
getAIUsageStats(organisation, month, options) {
|
|
3405
|
-
return (0, exports.AIMonitoringApiFp)(this.configuration).getAIUsageStats(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
3406
|
-
}
|
|
3407
|
-
}
|
|
3408
|
-
exports.AIMonitoringApi = AIMonitoringApi;
|
|
3409
3558
|
/**
|
|
3410
3559
|
* AIOrchestrationsApi - axios parameter creator
|
|
3411
3560
|
* @export
|
|
@@ -4169,20 +4318,1488 @@ exports.ListOrchestrationsStatusEnum = {
|
|
|
4169
4318
|
Cancelled: 'cancelled'
|
|
4170
4319
|
};
|
|
4171
4320
|
/**
|
|
4172
|
-
*
|
|
4321
|
+
* AISearchApi - axios parameter creator
|
|
4173
4322
|
* @export
|
|
4174
4323
|
*/
|
|
4175
|
-
const
|
|
4324
|
+
const AISearchApiAxiosParamCreator = function (configuration) {
|
|
4176
4325
|
return {
|
|
4177
4326
|
/**
|
|
4178
|
-
*
|
|
4179
|
-
* @summary
|
|
4180
|
-
* @param {string} organisation
|
|
4181
|
-
* @param {
|
|
4327
|
+
*
|
|
4328
|
+
* @summary RAG chat with AI Search content
|
|
4329
|
+
* @param {string} organisation
|
|
4330
|
+
* @param {string} project
|
|
4331
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
4182
4332
|
* @param {*} [options] Override http request option.
|
|
4183
4333
|
* @throws {RequiredError}
|
|
4184
4334
|
*/
|
|
4185
|
-
|
|
4335
|
+
aiSearchChat: (organisation_1, project_1, aiSearchChatRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchChatRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchChatRequest, options = {}) {
|
|
4336
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4337
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'organisation', organisation);
|
|
4338
|
+
// verify required parameter 'project' is not null or undefined
|
|
4339
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'project', project);
|
|
4340
|
+
// verify required parameter 'aiSearchChatRequest' is not null or undefined
|
|
4341
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'aiSearchChatRequest', aiSearchChatRequest);
|
|
4342
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat`
|
|
4343
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4344
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4345
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4346
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4347
|
+
let baseOptions;
|
|
4348
|
+
if (configuration) {
|
|
4349
|
+
baseOptions = configuration.baseOptions;
|
|
4350
|
+
}
|
|
4351
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4352
|
+
const localVarHeaderParameter = {};
|
|
4353
|
+
const localVarQueryParameter = {};
|
|
4354
|
+
// authentication BearerAuth required
|
|
4355
|
+
// http bearer authentication required
|
|
4356
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4357
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4358
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4359
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4360
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4361
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchChatRequest, localVarRequestOptions, configuration);
|
|
4362
|
+
return {
|
|
4363
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4364
|
+
options: localVarRequestOptions,
|
|
4365
|
+
};
|
|
4366
|
+
}),
|
|
4367
|
+
/**
|
|
4368
|
+
*
|
|
4369
|
+
* @summary Delete pages by URLs or patterns
|
|
4370
|
+
* @param {string} organisation
|
|
4371
|
+
* @param {string} project
|
|
4372
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
4373
|
+
* @param {*} [options] Override http request option.
|
|
4374
|
+
* @throws {RequiredError}
|
|
4375
|
+
*/
|
|
4376
|
+
aiSearchDeletePages: (organisation_1, project_1, aiSearchDeletePagesRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchDeletePagesRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchDeletePagesRequest, options = {}) {
|
|
4377
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4378
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'organisation', organisation);
|
|
4379
|
+
// verify required parameter 'project' is not null or undefined
|
|
4380
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'project', project);
|
|
4381
|
+
// verify required parameter 'aiSearchDeletePagesRequest' is not null or undefined
|
|
4382
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'aiSearchDeletePagesRequest', aiSearchDeletePagesRequest);
|
|
4383
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4384
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4385
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4388
|
+
let baseOptions;
|
|
4389
|
+
if (configuration) {
|
|
4390
|
+
baseOptions = configuration.baseOptions;
|
|
4391
|
+
}
|
|
4392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4393
|
+
const localVarHeaderParameter = {};
|
|
4394
|
+
const localVarQueryParameter = {};
|
|
4395
|
+
// authentication BearerAuth required
|
|
4396
|
+
// http bearer authentication required
|
|
4397
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4398
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4399
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4400
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4401
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4402
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchDeletePagesRequest, localVarRequestOptions, configuration);
|
|
4403
|
+
return {
|
|
4404
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4405
|
+
options: localVarRequestOptions,
|
|
4406
|
+
};
|
|
4407
|
+
}),
|
|
4408
|
+
/**
|
|
4409
|
+
*
|
|
4410
|
+
* @summary Disable AI Search for a project
|
|
4411
|
+
* @param {string} organisation
|
|
4412
|
+
* @param {string} project
|
|
4413
|
+
* @param {*} [options] Override http request option.
|
|
4414
|
+
* @throws {RequiredError}
|
|
4415
|
+
*/
|
|
4416
|
+
aiSearchDisable: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4417
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4418
|
+
(0, common_1.assertParamExists)('aiSearchDisable', 'organisation', organisation);
|
|
4419
|
+
// verify required parameter 'project' is not null or undefined
|
|
4420
|
+
(0, common_1.assertParamExists)('aiSearchDisable', 'project', project);
|
|
4421
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable`
|
|
4422
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4423
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4424
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4425
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4426
|
+
let baseOptions;
|
|
4427
|
+
if (configuration) {
|
|
4428
|
+
baseOptions = configuration.baseOptions;
|
|
4429
|
+
}
|
|
4430
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4431
|
+
const localVarHeaderParameter = {};
|
|
4432
|
+
const localVarQueryParameter = {};
|
|
4433
|
+
// authentication BearerAuth required
|
|
4434
|
+
// http bearer authentication required
|
|
4435
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4436
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4437
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4438
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4439
|
+
return {
|
|
4440
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4441
|
+
options: localVarRequestOptions,
|
|
4442
|
+
};
|
|
4443
|
+
}),
|
|
4444
|
+
/**
|
|
4445
|
+
*
|
|
4446
|
+
* @summary Enable AI Search for a project
|
|
4447
|
+
* @param {string} organisation
|
|
4448
|
+
* @param {string} project
|
|
4449
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
4450
|
+
* @param {*} [options] Override http request option.
|
|
4451
|
+
* @throws {RequiredError}
|
|
4452
|
+
*/
|
|
4453
|
+
aiSearchEnable: (organisation_1, project_1, aiSearchEnableRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchEnableRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchEnableRequest, options = {}) {
|
|
4454
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4455
|
+
(0, common_1.assertParamExists)('aiSearchEnable', 'organisation', organisation);
|
|
4456
|
+
// verify required parameter 'project' is not null or undefined
|
|
4457
|
+
(0, common_1.assertParamExists)('aiSearchEnable', 'project', project);
|
|
4458
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable`
|
|
4459
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4460
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4461
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4462
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4463
|
+
let baseOptions;
|
|
4464
|
+
if (configuration) {
|
|
4465
|
+
baseOptions = configuration.baseOptions;
|
|
4466
|
+
}
|
|
4467
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4468
|
+
const localVarHeaderParameter = {};
|
|
4469
|
+
const localVarQueryParameter = {};
|
|
4470
|
+
// authentication BearerAuth required
|
|
4471
|
+
// http bearer authentication required
|
|
4472
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4473
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4474
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4475
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4476
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4477
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchEnableRequest, localVarRequestOptions, configuration);
|
|
4478
|
+
return {
|
|
4479
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4480
|
+
options: localVarRequestOptions,
|
|
4481
|
+
};
|
|
4482
|
+
}),
|
|
4483
|
+
/**
|
|
4484
|
+
*
|
|
4485
|
+
* @summary Get AI Search ingest job status
|
|
4486
|
+
* @param {string} organisation
|
|
4487
|
+
* @param {string} project
|
|
4488
|
+
* @param {string} jobId
|
|
4489
|
+
* @param {*} [options] Override http request option.
|
|
4490
|
+
* @throws {RequiredError}
|
|
4491
|
+
*/
|
|
4492
|
+
aiSearchGetCrawl: (organisation_1, project_1, jobId_1, ...args_1) => __awaiter(this, [organisation_1, project_1, jobId_1, ...args_1], void 0, function* (organisation, project, jobId, options = {}) {
|
|
4493
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4494
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'organisation', organisation);
|
|
4495
|
+
// verify required parameter 'project' is not null or undefined
|
|
4496
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'project', project);
|
|
4497
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4498
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'jobId', jobId);
|
|
4499
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}`
|
|
4500
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4501
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4502
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4505
|
+
let baseOptions;
|
|
4506
|
+
if (configuration) {
|
|
4507
|
+
baseOptions = configuration.baseOptions;
|
|
4508
|
+
}
|
|
4509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4510
|
+
const localVarHeaderParameter = {};
|
|
4511
|
+
const localVarQueryParameter = {};
|
|
4512
|
+
// authentication BearerAuth required
|
|
4513
|
+
// http bearer authentication required
|
|
4514
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4517
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4518
|
+
return {
|
|
4519
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4520
|
+
options: localVarRequestOptions,
|
|
4521
|
+
};
|
|
4522
|
+
}),
|
|
4523
|
+
/**
|
|
4524
|
+
*
|
|
4525
|
+
* @summary Get per-page ingest results for a crawl job
|
|
4526
|
+
* @param {string} organisation
|
|
4527
|
+
* @param {string} project
|
|
4528
|
+
* @param {string} jobId
|
|
4529
|
+
* @param {number} [limit]
|
|
4530
|
+
* @param {number} [statusCode]
|
|
4531
|
+
* @param {string} [processingStatus]
|
|
4532
|
+
* @param {*} [options] Override http request option.
|
|
4533
|
+
* @throws {RequiredError}
|
|
4534
|
+
*/
|
|
4535
|
+
aiSearchGetCrawlPages: (organisation_1, project_1, jobId_1, limit_1, statusCode_1, processingStatus_1, ...args_1) => __awaiter(this, [organisation_1, project_1, jobId_1, limit_1, statusCode_1, processingStatus_1, ...args_1], void 0, function* (organisation, project, jobId, limit, statusCode, processingStatus, options = {}) {
|
|
4536
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4537
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'organisation', organisation);
|
|
4538
|
+
// verify required parameter 'project' is not null or undefined
|
|
4539
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'project', project);
|
|
4540
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4541
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'jobId', jobId);
|
|
4542
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages`
|
|
4543
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4544
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4545
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4546
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4547
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4548
|
+
let baseOptions;
|
|
4549
|
+
if (configuration) {
|
|
4550
|
+
baseOptions = configuration.baseOptions;
|
|
4551
|
+
}
|
|
4552
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4553
|
+
const localVarHeaderParameter = {};
|
|
4554
|
+
const localVarQueryParameter = {};
|
|
4555
|
+
// authentication BearerAuth required
|
|
4556
|
+
// http bearer authentication required
|
|
4557
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4558
|
+
if (limit !== undefined) {
|
|
4559
|
+
localVarQueryParameter['limit'] = limit;
|
|
4560
|
+
}
|
|
4561
|
+
if (statusCode !== undefined) {
|
|
4562
|
+
localVarQueryParameter['statusCode'] = statusCode;
|
|
4563
|
+
}
|
|
4564
|
+
if (processingStatus !== undefined) {
|
|
4565
|
+
localVarQueryParameter['processingStatus'] = processingStatus;
|
|
4566
|
+
}
|
|
4567
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4568
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4569
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4570
|
+
return {
|
|
4571
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4572
|
+
options: localVarRequestOptions,
|
|
4573
|
+
};
|
|
4574
|
+
}),
|
|
4575
|
+
/**
|
|
4576
|
+
*
|
|
4577
|
+
* @summary Get AI Search public access and rate limit settings
|
|
4578
|
+
* @param {string} organisation
|
|
4579
|
+
* @param {string} project
|
|
4580
|
+
* @param {*} [options] Override http request option.
|
|
4581
|
+
* @throws {RequiredError}
|
|
4582
|
+
*/
|
|
4583
|
+
aiSearchGetSettings: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4584
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4585
|
+
(0, common_1.assertParamExists)('aiSearchGetSettings', 'organisation', organisation);
|
|
4586
|
+
// verify required parameter 'project' is not null or undefined
|
|
4587
|
+
(0, common_1.assertParamExists)('aiSearchGetSettings', 'project', project);
|
|
4588
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4589
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4590
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4591
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4592
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4593
|
+
let baseOptions;
|
|
4594
|
+
if (configuration) {
|
|
4595
|
+
baseOptions = configuration.baseOptions;
|
|
4596
|
+
}
|
|
4597
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4598
|
+
const localVarHeaderParameter = {};
|
|
4599
|
+
const localVarQueryParameter = {};
|
|
4600
|
+
// authentication BearerAuth required
|
|
4601
|
+
// http bearer authentication required
|
|
4602
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4603
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4605
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4606
|
+
return {
|
|
4607
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4608
|
+
options: localVarRequestOptions,
|
|
4609
|
+
};
|
|
4610
|
+
}),
|
|
4611
|
+
/**
|
|
4612
|
+
*
|
|
4613
|
+
* @summary Ingest pages into the AI Search index
|
|
4614
|
+
* @param {string} organisation
|
|
4615
|
+
* @param {string} project
|
|
4616
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
4617
|
+
* @param {*} [options] Override http request option.
|
|
4618
|
+
* @throws {RequiredError}
|
|
4619
|
+
*/
|
|
4620
|
+
aiSearchIngestPages: (organisation_1, project_1, aiSearchIngestPagesRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchIngestPagesRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchIngestPagesRequest, options = {}) {
|
|
4621
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4622
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'organisation', organisation);
|
|
4623
|
+
// verify required parameter 'project' is not null or undefined
|
|
4624
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'project', project);
|
|
4625
|
+
// verify required parameter 'aiSearchIngestPagesRequest' is not null or undefined
|
|
4626
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'aiSearchIngestPagesRequest', aiSearchIngestPagesRequest);
|
|
4627
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4628
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4629
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4630
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4631
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4632
|
+
let baseOptions;
|
|
4633
|
+
if (configuration) {
|
|
4634
|
+
baseOptions = configuration.baseOptions;
|
|
4635
|
+
}
|
|
4636
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4637
|
+
const localVarHeaderParameter = {};
|
|
4638
|
+
const localVarQueryParameter = {};
|
|
4639
|
+
// authentication BearerAuth required
|
|
4640
|
+
// http bearer authentication required
|
|
4641
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4642
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4643
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4644
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4645
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4646
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchIngestPagesRequest, localVarRequestOptions, configuration);
|
|
4647
|
+
return {
|
|
4648
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4649
|
+
options: localVarRequestOptions,
|
|
4650
|
+
};
|
|
4651
|
+
}),
|
|
4652
|
+
/**
|
|
4653
|
+
*
|
|
4654
|
+
* @summary List AI Search ingest jobs
|
|
4655
|
+
* @param {string} organisation
|
|
4656
|
+
* @param {string} project
|
|
4657
|
+
* @param {number} [limit]
|
|
4658
|
+
* @param {*} [options] Override http request option.
|
|
4659
|
+
* @throws {RequiredError}
|
|
4660
|
+
*/
|
|
4661
|
+
aiSearchListCrawls: (organisation_1, project_1, limit_1, ...args_1) => __awaiter(this, [organisation_1, project_1, limit_1, ...args_1], void 0, function* (organisation, project, limit, options = {}) {
|
|
4662
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4663
|
+
(0, common_1.assertParamExists)('aiSearchListCrawls', 'organisation', organisation);
|
|
4664
|
+
// verify required parameter 'project' is not null or undefined
|
|
4665
|
+
(0, common_1.assertParamExists)('aiSearchListCrawls', 'project', project);
|
|
4666
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4667
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4668
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4669
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4670
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4671
|
+
let baseOptions;
|
|
4672
|
+
if (configuration) {
|
|
4673
|
+
baseOptions = configuration.baseOptions;
|
|
4674
|
+
}
|
|
4675
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4676
|
+
const localVarHeaderParameter = {};
|
|
4677
|
+
const localVarQueryParameter = {};
|
|
4678
|
+
// authentication BearerAuth required
|
|
4679
|
+
// http bearer authentication required
|
|
4680
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4681
|
+
if (limit !== undefined) {
|
|
4682
|
+
localVarQueryParameter['limit'] = limit;
|
|
4683
|
+
}
|
|
4684
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4685
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4686
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4687
|
+
return {
|
|
4688
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4689
|
+
options: localVarRequestOptions,
|
|
4690
|
+
};
|
|
4691
|
+
}),
|
|
4692
|
+
/**
|
|
4693
|
+
*
|
|
4694
|
+
* @summary List indexed pages with cursor pagination
|
|
4695
|
+
* @param {string} organisation
|
|
4696
|
+
* @param {string} project
|
|
4697
|
+
* @param {number} [limit]
|
|
4698
|
+
* @param {string} [cursor]
|
|
4699
|
+
* @param {string} [search]
|
|
4700
|
+
* @param {*} [options] Override http request option.
|
|
4701
|
+
* @throws {RequiredError}
|
|
4702
|
+
*/
|
|
4703
|
+
aiSearchListPages: (organisation_1, project_1, limit_1, cursor_1, search_1, ...args_1) => __awaiter(this, [organisation_1, project_1, limit_1, cursor_1, search_1, ...args_1], void 0, function* (organisation, project, limit, cursor, search, options = {}) {
|
|
4704
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4705
|
+
(0, common_1.assertParamExists)('aiSearchListPages', 'organisation', organisation);
|
|
4706
|
+
// verify required parameter 'project' is not null or undefined
|
|
4707
|
+
(0, common_1.assertParamExists)('aiSearchListPages', 'project', project);
|
|
4708
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4709
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4710
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4711
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4712
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4713
|
+
let baseOptions;
|
|
4714
|
+
if (configuration) {
|
|
4715
|
+
baseOptions = configuration.baseOptions;
|
|
4716
|
+
}
|
|
4717
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4718
|
+
const localVarHeaderParameter = {};
|
|
4719
|
+
const localVarQueryParameter = {};
|
|
4720
|
+
// authentication BearerAuth required
|
|
4721
|
+
// http bearer authentication required
|
|
4722
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4723
|
+
if (limit !== undefined) {
|
|
4724
|
+
localVarQueryParameter['limit'] = limit;
|
|
4725
|
+
}
|
|
4726
|
+
if (cursor !== undefined) {
|
|
4727
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
4728
|
+
}
|
|
4729
|
+
if (search !== undefined) {
|
|
4730
|
+
localVarQueryParameter['search'] = search;
|
|
4731
|
+
}
|
|
4732
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4734
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4735
|
+
return {
|
|
4736
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4737
|
+
options: localVarRequestOptions,
|
|
4738
|
+
};
|
|
4739
|
+
}),
|
|
4740
|
+
/**
|
|
4741
|
+
*
|
|
4742
|
+
* @summary Purge the entire AI Search index
|
|
4743
|
+
* @param {string} organisation
|
|
4744
|
+
* @param {string} project
|
|
4745
|
+
* @param {*} [options] Override http request option.
|
|
4746
|
+
* @throws {RequiredError}
|
|
4747
|
+
*/
|
|
4748
|
+
aiSearchPurgeIndex: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4749
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4750
|
+
(0, common_1.assertParamExists)('aiSearchPurgeIndex', 'organisation', organisation);
|
|
4751
|
+
// verify required parameter 'project' is not null or undefined
|
|
4752
|
+
(0, common_1.assertParamExists)('aiSearchPurgeIndex', 'project', project);
|
|
4753
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/index`
|
|
4754
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4755
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4756
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4757
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4758
|
+
let baseOptions;
|
|
4759
|
+
if (configuration) {
|
|
4760
|
+
baseOptions = configuration.baseOptions;
|
|
4761
|
+
}
|
|
4762
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4763
|
+
const localVarHeaderParameter = {};
|
|
4764
|
+
const localVarQueryParameter = {};
|
|
4765
|
+
// authentication BearerAuth required
|
|
4766
|
+
// http bearer authentication required
|
|
4767
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4768
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4769
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4770
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4771
|
+
return {
|
|
4772
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4773
|
+
options: localVarRequestOptions,
|
|
4774
|
+
};
|
|
4775
|
+
}),
|
|
4776
|
+
/**
|
|
4777
|
+
*
|
|
4778
|
+
* @summary Semantic search across the AI Search index
|
|
4779
|
+
* @param {string} organisation
|
|
4780
|
+
* @param {string} project
|
|
4781
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
4782
|
+
* @param {*} [options] Override http request option.
|
|
4783
|
+
* @throws {RequiredError}
|
|
4784
|
+
*/
|
|
4785
|
+
aiSearchSearch: (organisation_1, project_1, aiSearchSearchRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchSearchRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchSearchRequest, options = {}) {
|
|
4786
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4787
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'organisation', organisation);
|
|
4788
|
+
// verify required parameter 'project' is not null or undefined
|
|
4789
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'project', project);
|
|
4790
|
+
// verify required parameter 'aiSearchSearchRequest' is not null or undefined
|
|
4791
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'aiSearchSearchRequest', aiSearchSearchRequest);
|
|
4792
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/search`
|
|
4793
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4794
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4795
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4796
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4797
|
+
let baseOptions;
|
|
4798
|
+
if (configuration) {
|
|
4799
|
+
baseOptions = configuration.baseOptions;
|
|
4800
|
+
}
|
|
4801
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4802
|
+
const localVarHeaderParameter = {};
|
|
4803
|
+
const localVarQueryParameter = {};
|
|
4804
|
+
// authentication BearerAuth required
|
|
4805
|
+
// http bearer authentication required
|
|
4806
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4807
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4808
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4809
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4810
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4811
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchSearchRequest, localVarRequestOptions, configuration);
|
|
4812
|
+
return {
|
|
4813
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4814
|
+
options: localVarRequestOptions,
|
|
4815
|
+
};
|
|
4816
|
+
}),
|
|
4817
|
+
/**
|
|
4818
|
+
*
|
|
4819
|
+
* @summary Get AI Search status for a project
|
|
4820
|
+
* @param {string} organisation
|
|
4821
|
+
* @param {string} project
|
|
4822
|
+
* @param {*} [options] Override http request option.
|
|
4823
|
+
* @throws {RequiredError}
|
|
4824
|
+
*/
|
|
4825
|
+
aiSearchStatus: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4826
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4827
|
+
(0, common_1.assertParamExists)('aiSearchStatus', 'organisation', organisation);
|
|
4828
|
+
// verify required parameter 'project' is not null or undefined
|
|
4829
|
+
(0, common_1.assertParamExists)('aiSearchStatus', 'project', project);
|
|
4830
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search`
|
|
4831
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4832
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4833
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4834
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4835
|
+
let baseOptions;
|
|
4836
|
+
if (configuration) {
|
|
4837
|
+
baseOptions = configuration.baseOptions;
|
|
4838
|
+
}
|
|
4839
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4840
|
+
const localVarHeaderParameter = {};
|
|
4841
|
+
const localVarQueryParameter = {};
|
|
4842
|
+
// authentication BearerAuth required
|
|
4843
|
+
// http bearer authentication required
|
|
4844
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4845
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4847
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4848
|
+
return {
|
|
4849
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4850
|
+
options: localVarRequestOptions,
|
|
4851
|
+
};
|
|
4852
|
+
}),
|
|
4853
|
+
/**
|
|
4854
|
+
*
|
|
4855
|
+
* @summary Get the most popular AI Search queries
|
|
4856
|
+
* @param {string} organisation
|
|
4857
|
+
* @param {string} project
|
|
4858
|
+
* @param {string} [range]
|
|
4859
|
+
* @param {number} [limit]
|
|
4860
|
+
* @param {*} [options] Override http request option.
|
|
4861
|
+
* @throws {RequiredError}
|
|
4862
|
+
*/
|
|
4863
|
+
aiSearchTopQueries: (organisation_1, project_1, range_1, limit_1, ...args_1) => __awaiter(this, [organisation_1, project_1, range_1, limit_1, ...args_1], void 0, function* (organisation, project, range, limit, options = {}) {
|
|
4864
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4865
|
+
(0, common_1.assertParamExists)('aiSearchTopQueries', 'organisation', organisation);
|
|
4866
|
+
// verify required parameter 'project' is not null or undefined
|
|
4867
|
+
(0, common_1.assertParamExists)('aiSearchTopQueries', 'project', project);
|
|
4868
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries`
|
|
4869
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4870
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4871
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4872
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4873
|
+
let baseOptions;
|
|
4874
|
+
if (configuration) {
|
|
4875
|
+
baseOptions = configuration.baseOptions;
|
|
4876
|
+
}
|
|
4877
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4878
|
+
const localVarHeaderParameter = {};
|
|
4879
|
+
const localVarQueryParameter = {};
|
|
4880
|
+
// authentication BearerAuth required
|
|
4881
|
+
// http bearer authentication required
|
|
4882
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4883
|
+
if (range !== undefined) {
|
|
4884
|
+
localVarQueryParameter['range'] = range;
|
|
4885
|
+
}
|
|
4886
|
+
if (limit !== undefined) {
|
|
4887
|
+
localVarQueryParameter['limit'] = limit;
|
|
4888
|
+
}
|
|
4889
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4891
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4892
|
+
return {
|
|
4893
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4894
|
+
options: localVarRequestOptions,
|
|
4895
|
+
};
|
|
4896
|
+
}),
|
|
4897
|
+
/**
|
|
4898
|
+
*
|
|
4899
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
4900
|
+
* @param {string} organisation
|
|
4901
|
+
* @param {string} project
|
|
4902
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
4903
|
+
* @param {*} [options] Override http request option.
|
|
4904
|
+
* @throws {RequiredError}
|
|
4905
|
+
*/
|
|
4906
|
+
aiSearchTriggerCrawl: (organisation_1, project_1, aiSearchTriggerCrawlRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchTriggerCrawlRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchTriggerCrawlRequest, options = {}) {
|
|
4907
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4908
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'organisation', organisation);
|
|
4909
|
+
// verify required parameter 'project' is not null or undefined
|
|
4910
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'project', project);
|
|
4911
|
+
// verify required parameter 'aiSearchTriggerCrawlRequest' is not null or undefined
|
|
4912
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'aiSearchTriggerCrawlRequest', aiSearchTriggerCrawlRequest);
|
|
4913
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4914
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4915
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4916
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4917
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4918
|
+
let baseOptions;
|
|
4919
|
+
if (configuration) {
|
|
4920
|
+
baseOptions = configuration.baseOptions;
|
|
4921
|
+
}
|
|
4922
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4923
|
+
const localVarHeaderParameter = {};
|
|
4924
|
+
const localVarQueryParameter = {};
|
|
4925
|
+
// authentication BearerAuth required
|
|
4926
|
+
// http bearer authentication required
|
|
4927
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4928
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4929
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4930
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4931
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4932
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchTriggerCrawlRequest, localVarRequestOptions, configuration);
|
|
4933
|
+
return {
|
|
4934
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4935
|
+
options: localVarRequestOptions,
|
|
4936
|
+
};
|
|
4937
|
+
}),
|
|
4938
|
+
/**
|
|
4939
|
+
*
|
|
4940
|
+
* @summary Update AI Search public access and rate limit settings
|
|
4941
|
+
* @param {string} organisation
|
|
4942
|
+
* @param {string} project
|
|
4943
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
4944
|
+
* @param {*} [options] Override http request option.
|
|
4945
|
+
* @throws {RequiredError}
|
|
4946
|
+
*/
|
|
4947
|
+
aiSearchUpdateSettings: (organisation_1, project_1, aiSearchUpdateSettingsRequest_1, ...args_1) => __awaiter(this, [organisation_1, project_1, aiSearchUpdateSettingsRequest_1, ...args_1], void 0, function* (organisation, project, aiSearchUpdateSettingsRequest, options = {}) {
|
|
4948
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4949
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'organisation', organisation);
|
|
4950
|
+
// verify required parameter 'project' is not null or undefined
|
|
4951
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'project', project);
|
|
4952
|
+
// verify required parameter 'aiSearchUpdateSettingsRequest' is not null or undefined
|
|
4953
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'aiSearchUpdateSettingsRequest', aiSearchUpdateSettingsRequest);
|
|
4954
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4955
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4956
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4957
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4958
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4959
|
+
let baseOptions;
|
|
4960
|
+
if (configuration) {
|
|
4961
|
+
baseOptions = configuration.baseOptions;
|
|
4962
|
+
}
|
|
4963
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4964
|
+
const localVarHeaderParameter = {};
|
|
4965
|
+
const localVarQueryParameter = {};
|
|
4966
|
+
// authentication BearerAuth required
|
|
4967
|
+
// http bearer authentication required
|
|
4968
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4969
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4970
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4971
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4972
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4973
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchUpdateSettingsRequest, localVarRequestOptions, configuration);
|
|
4974
|
+
return {
|
|
4975
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4976
|
+
options: localVarRequestOptions,
|
|
4977
|
+
};
|
|
4978
|
+
}),
|
|
4979
|
+
/**
|
|
4980
|
+
*
|
|
4981
|
+
* @summary Get usage statistics for the AI Search site
|
|
4982
|
+
* @param {string} organisation
|
|
4983
|
+
* @param {string} project
|
|
4984
|
+
* @param {string} [range]
|
|
4985
|
+
* @param {*} [options] Override http request option.
|
|
4986
|
+
* @throws {RequiredError}
|
|
4987
|
+
*/
|
|
4988
|
+
aiSearchUsage: (organisation_1, project_1, range_1, ...args_1) => __awaiter(this, [organisation_1, project_1, range_1, ...args_1], void 0, function* (organisation, project, range, options = {}) {
|
|
4989
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4990
|
+
(0, common_1.assertParamExists)('aiSearchUsage', 'organisation', organisation);
|
|
4991
|
+
// verify required parameter 'project' is not null or undefined
|
|
4992
|
+
(0, common_1.assertParamExists)('aiSearchUsage', 'project', project);
|
|
4993
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage`
|
|
4994
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4995
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4996
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4997
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4998
|
+
let baseOptions;
|
|
4999
|
+
if (configuration) {
|
|
5000
|
+
baseOptions = configuration.baseOptions;
|
|
5001
|
+
}
|
|
5002
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
5003
|
+
const localVarHeaderParameter = {};
|
|
5004
|
+
const localVarQueryParameter = {};
|
|
5005
|
+
// authentication BearerAuth required
|
|
5006
|
+
// http bearer authentication required
|
|
5007
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
5008
|
+
if (range !== undefined) {
|
|
5009
|
+
localVarQueryParameter['range'] = range;
|
|
5010
|
+
}
|
|
5011
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5012
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5013
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5014
|
+
return {
|
|
5015
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5016
|
+
options: localVarRequestOptions,
|
|
5017
|
+
};
|
|
5018
|
+
}),
|
|
5019
|
+
};
|
|
5020
|
+
};
|
|
5021
|
+
exports.AISearchApiAxiosParamCreator = AISearchApiAxiosParamCreator;
|
|
5022
|
+
/**
|
|
5023
|
+
* AISearchApi - functional programming interface
|
|
5024
|
+
* @export
|
|
5025
|
+
*/
|
|
5026
|
+
const AISearchApiFp = function (configuration) {
|
|
5027
|
+
const localVarAxiosParamCreator = (0, exports.AISearchApiAxiosParamCreator)(configuration);
|
|
5028
|
+
return {
|
|
5029
|
+
/**
|
|
5030
|
+
*
|
|
5031
|
+
* @summary RAG chat with AI Search content
|
|
5032
|
+
* @param {string} organisation
|
|
5033
|
+
* @param {string} project
|
|
5034
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5035
|
+
* @param {*} [options] Override http request option.
|
|
5036
|
+
* @throws {RequiredError}
|
|
5037
|
+
*/
|
|
5038
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5039
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5040
|
+
var _a, _b, _c;
|
|
5041
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchChat(organisation, project, aiSearchChatRequest, options);
|
|
5042
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5043
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchChat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5044
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5045
|
+
});
|
|
5046
|
+
},
|
|
5047
|
+
/**
|
|
5048
|
+
*
|
|
5049
|
+
* @summary Delete pages by URLs or patterns
|
|
5050
|
+
* @param {string} organisation
|
|
5051
|
+
* @param {string} project
|
|
5052
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5053
|
+
* @param {*} [options] Override http request option.
|
|
5054
|
+
* @throws {RequiredError}
|
|
5055
|
+
*/
|
|
5056
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5057
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5058
|
+
var _a, _b, _c;
|
|
5059
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options);
|
|
5060
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5061
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchDeletePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5062
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5063
|
+
});
|
|
5064
|
+
},
|
|
5065
|
+
/**
|
|
5066
|
+
*
|
|
5067
|
+
* @summary Disable AI Search for a project
|
|
5068
|
+
* @param {string} organisation
|
|
5069
|
+
* @param {string} project
|
|
5070
|
+
* @param {*} [options] Override http request option.
|
|
5071
|
+
* @throws {RequiredError}
|
|
5072
|
+
*/
|
|
5073
|
+
aiSearchDisable(organisation, project, options) {
|
|
5074
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5075
|
+
var _a, _b, _c;
|
|
5076
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDisable(organisation, project, options);
|
|
5077
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5078
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchDisable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5079
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5080
|
+
});
|
|
5081
|
+
},
|
|
5082
|
+
/**
|
|
5083
|
+
*
|
|
5084
|
+
* @summary Enable AI Search for a project
|
|
5085
|
+
* @param {string} organisation
|
|
5086
|
+
* @param {string} project
|
|
5087
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5088
|
+
* @param {*} [options] Override http request option.
|
|
5089
|
+
* @throws {RequiredError}
|
|
5090
|
+
*/
|
|
5091
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5092
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5093
|
+
var _a, _b, _c;
|
|
5094
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchEnable(organisation, project, aiSearchEnableRequest, options);
|
|
5095
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5096
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchEnable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5097
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5098
|
+
});
|
|
5099
|
+
},
|
|
5100
|
+
/**
|
|
5101
|
+
*
|
|
5102
|
+
* @summary Get AI Search ingest job status
|
|
5103
|
+
* @param {string} organisation
|
|
5104
|
+
* @param {string} project
|
|
5105
|
+
* @param {string} jobId
|
|
5106
|
+
* @param {*} [options] Override http request option.
|
|
5107
|
+
* @throws {RequiredError}
|
|
5108
|
+
*/
|
|
5109
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5110
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5111
|
+
var _a, _b, _c;
|
|
5112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawl(organisation, project, jobId, options);
|
|
5113
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5114
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchGetCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5115
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5116
|
+
});
|
|
5117
|
+
},
|
|
5118
|
+
/**
|
|
5119
|
+
*
|
|
5120
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5121
|
+
* @param {string} organisation
|
|
5122
|
+
* @param {string} project
|
|
5123
|
+
* @param {string} jobId
|
|
5124
|
+
* @param {number} [limit]
|
|
5125
|
+
* @param {number} [statusCode]
|
|
5126
|
+
* @param {string} [processingStatus]
|
|
5127
|
+
* @param {*} [options] Override http request option.
|
|
5128
|
+
* @throws {RequiredError}
|
|
5129
|
+
*/
|
|
5130
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5131
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5132
|
+
var _a, _b, _c;
|
|
5133
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options);
|
|
5134
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5135
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchGetCrawlPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5136
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5137
|
+
});
|
|
5138
|
+
},
|
|
5139
|
+
/**
|
|
5140
|
+
*
|
|
5141
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5142
|
+
* @param {string} organisation
|
|
5143
|
+
* @param {string} project
|
|
5144
|
+
* @param {*} [options] Override http request option.
|
|
5145
|
+
* @throws {RequiredError}
|
|
5146
|
+
*/
|
|
5147
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5149
|
+
var _a, _b, _c;
|
|
5150
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetSettings(organisation, project, options);
|
|
5151
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5152
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchGetSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5153
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5154
|
+
});
|
|
5155
|
+
},
|
|
5156
|
+
/**
|
|
5157
|
+
*
|
|
5158
|
+
* @summary Ingest pages into the AI Search index
|
|
5159
|
+
* @param {string} organisation
|
|
5160
|
+
* @param {string} project
|
|
5161
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5162
|
+
* @param {*} [options] Override http request option.
|
|
5163
|
+
* @throws {RequiredError}
|
|
5164
|
+
*/
|
|
5165
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5166
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5167
|
+
var _a, _b, _c;
|
|
5168
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options);
|
|
5169
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5170
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchIngestPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5171
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5172
|
+
});
|
|
5173
|
+
},
|
|
5174
|
+
/**
|
|
5175
|
+
*
|
|
5176
|
+
* @summary List AI Search ingest jobs
|
|
5177
|
+
* @param {string} organisation
|
|
5178
|
+
* @param {string} project
|
|
5179
|
+
* @param {number} [limit]
|
|
5180
|
+
* @param {*} [options] Override http request option.
|
|
5181
|
+
* @throws {RequiredError}
|
|
5182
|
+
*/
|
|
5183
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5184
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5185
|
+
var _a, _b, _c;
|
|
5186
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListCrawls(organisation, project, limit, options);
|
|
5187
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5188
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchListCrawls']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5189
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5190
|
+
});
|
|
5191
|
+
},
|
|
5192
|
+
/**
|
|
5193
|
+
*
|
|
5194
|
+
* @summary List indexed pages with cursor pagination
|
|
5195
|
+
* @param {string} organisation
|
|
5196
|
+
* @param {string} project
|
|
5197
|
+
* @param {number} [limit]
|
|
5198
|
+
* @param {string} [cursor]
|
|
5199
|
+
* @param {string} [search]
|
|
5200
|
+
* @param {*} [options] Override http request option.
|
|
5201
|
+
* @throws {RequiredError}
|
|
5202
|
+
*/
|
|
5203
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5204
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5205
|
+
var _a, _b, _c;
|
|
5206
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListPages(organisation, project, limit, cursor, search, options);
|
|
5207
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5208
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchListPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5209
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5210
|
+
});
|
|
5211
|
+
},
|
|
5212
|
+
/**
|
|
5213
|
+
*
|
|
5214
|
+
* @summary Purge the entire AI Search index
|
|
5215
|
+
* @param {string} organisation
|
|
5216
|
+
* @param {string} project
|
|
5217
|
+
* @param {*} [options] Override http request option.
|
|
5218
|
+
* @throws {RequiredError}
|
|
5219
|
+
*/
|
|
5220
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5221
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5222
|
+
var _a, _b, _c;
|
|
5223
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchPurgeIndex(organisation, project, options);
|
|
5224
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5225
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchPurgeIndex']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5226
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5227
|
+
});
|
|
5228
|
+
},
|
|
5229
|
+
/**
|
|
5230
|
+
*
|
|
5231
|
+
* @summary Semantic search across the AI Search index
|
|
5232
|
+
* @param {string} organisation
|
|
5233
|
+
* @param {string} project
|
|
5234
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5235
|
+
* @param {*} [options] Override http request option.
|
|
5236
|
+
* @throws {RequiredError}
|
|
5237
|
+
*/
|
|
5238
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5239
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5240
|
+
var _a, _b, _c;
|
|
5241
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchSearch(organisation, project, aiSearchSearchRequest, options);
|
|
5242
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5243
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchSearch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5244
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5245
|
+
});
|
|
5246
|
+
},
|
|
5247
|
+
/**
|
|
5248
|
+
*
|
|
5249
|
+
* @summary Get AI Search status for a project
|
|
5250
|
+
* @param {string} organisation
|
|
5251
|
+
* @param {string} project
|
|
5252
|
+
* @param {*} [options] Override http request option.
|
|
5253
|
+
* @throws {RequiredError}
|
|
5254
|
+
*/
|
|
5255
|
+
aiSearchStatus(organisation, project, options) {
|
|
5256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5257
|
+
var _a, _b, _c;
|
|
5258
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchStatus(organisation, project, options);
|
|
5259
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5260
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5261
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5262
|
+
});
|
|
5263
|
+
},
|
|
5264
|
+
/**
|
|
5265
|
+
*
|
|
5266
|
+
* @summary Get the most popular AI Search queries
|
|
5267
|
+
* @param {string} organisation
|
|
5268
|
+
* @param {string} project
|
|
5269
|
+
* @param {string} [range]
|
|
5270
|
+
* @param {number} [limit]
|
|
5271
|
+
* @param {*} [options] Override http request option.
|
|
5272
|
+
* @throws {RequiredError}
|
|
5273
|
+
*/
|
|
5274
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5275
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5276
|
+
var _a, _b, _c;
|
|
5277
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTopQueries(organisation, project, range, limit, options);
|
|
5278
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5279
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchTopQueries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5280
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5281
|
+
});
|
|
5282
|
+
},
|
|
5283
|
+
/**
|
|
5284
|
+
*
|
|
5285
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5286
|
+
* @param {string} organisation
|
|
5287
|
+
* @param {string} project
|
|
5288
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5289
|
+
* @param {*} [options] Override http request option.
|
|
5290
|
+
* @throws {RequiredError}
|
|
5291
|
+
*/
|
|
5292
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5293
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5294
|
+
var _a, _b, _c;
|
|
5295
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options);
|
|
5296
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5297
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchTriggerCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5298
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5299
|
+
});
|
|
5300
|
+
},
|
|
5301
|
+
/**
|
|
5302
|
+
*
|
|
5303
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5304
|
+
* @param {string} organisation
|
|
5305
|
+
* @param {string} project
|
|
5306
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5307
|
+
* @param {*} [options] Override http request option.
|
|
5308
|
+
* @throws {RequiredError}
|
|
5309
|
+
*/
|
|
5310
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5312
|
+
var _a, _b, _c;
|
|
5313
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options);
|
|
5314
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5315
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchUpdateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5316
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5317
|
+
});
|
|
5318
|
+
},
|
|
5319
|
+
/**
|
|
5320
|
+
*
|
|
5321
|
+
* @summary Get usage statistics for the AI Search site
|
|
5322
|
+
* @param {string} organisation
|
|
5323
|
+
* @param {string} project
|
|
5324
|
+
* @param {string} [range]
|
|
5325
|
+
* @param {*} [options] Override http request option.
|
|
5326
|
+
* @throws {RequiredError}
|
|
5327
|
+
*/
|
|
5328
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5329
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5330
|
+
var _a, _b, _c;
|
|
5331
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUsage(organisation, project, range, options);
|
|
5332
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5333
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISearchApi.aiSearchUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5334
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5335
|
+
});
|
|
5336
|
+
},
|
|
5337
|
+
};
|
|
5338
|
+
};
|
|
5339
|
+
exports.AISearchApiFp = AISearchApiFp;
|
|
5340
|
+
/**
|
|
5341
|
+
* AISearchApi - factory interface
|
|
5342
|
+
* @export
|
|
5343
|
+
*/
|
|
5344
|
+
const AISearchApiFactory = function (configuration, basePath, axios) {
|
|
5345
|
+
const localVarFp = (0, exports.AISearchApiFp)(configuration);
|
|
5346
|
+
return {
|
|
5347
|
+
/**
|
|
5348
|
+
*
|
|
5349
|
+
* @summary RAG chat with AI Search content
|
|
5350
|
+
* @param {string} organisation
|
|
5351
|
+
* @param {string} project
|
|
5352
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5353
|
+
* @param {*} [options] Override http request option.
|
|
5354
|
+
* @throws {RequiredError}
|
|
5355
|
+
*/
|
|
5356
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5357
|
+
return localVarFp.aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(axios, basePath));
|
|
5358
|
+
},
|
|
5359
|
+
/**
|
|
5360
|
+
*
|
|
5361
|
+
* @summary Delete pages by URLs or patterns
|
|
5362
|
+
* @param {string} organisation
|
|
5363
|
+
* @param {string} project
|
|
5364
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5365
|
+
* @param {*} [options] Override http request option.
|
|
5366
|
+
* @throws {RequiredError}
|
|
5367
|
+
*/
|
|
5368
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5369
|
+
return localVarFp.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(axios, basePath));
|
|
5370
|
+
},
|
|
5371
|
+
/**
|
|
5372
|
+
*
|
|
5373
|
+
* @summary Disable AI Search for a project
|
|
5374
|
+
* @param {string} organisation
|
|
5375
|
+
* @param {string} project
|
|
5376
|
+
* @param {*} [options] Override http request option.
|
|
5377
|
+
* @throws {RequiredError}
|
|
5378
|
+
*/
|
|
5379
|
+
aiSearchDisable(organisation, project, options) {
|
|
5380
|
+
return localVarFp.aiSearchDisable(organisation, project, options).then((request) => request(axios, basePath));
|
|
5381
|
+
},
|
|
5382
|
+
/**
|
|
5383
|
+
*
|
|
5384
|
+
* @summary Enable AI Search for a project
|
|
5385
|
+
* @param {string} organisation
|
|
5386
|
+
* @param {string} project
|
|
5387
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5388
|
+
* @param {*} [options] Override http request option.
|
|
5389
|
+
* @throws {RequiredError}
|
|
5390
|
+
*/
|
|
5391
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5392
|
+
return localVarFp.aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(axios, basePath));
|
|
5393
|
+
},
|
|
5394
|
+
/**
|
|
5395
|
+
*
|
|
5396
|
+
* @summary Get AI Search ingest job status
|
|
5397
|
+
* @param {string} organisation
|
|
5398
|
+
* @param {string} project
|
|
5399
|
+
* @param {string} jobId
|
|
5400
|
+
* @param {*} [options] Override http request option.
|
|
5401
|
+
* @throws {RequiredError}
|
|
5402
|
+
*/
|
|
5403
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5404
|
+
return localVarFp.aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(axios, basePath));
|
|
5405
|
+
},
|
|
5406
|
+
/**
|
|
5407
|
+
*
|
|
5408
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5409
|
+
* @param {string} organisation
|
|
5410
|
+
* @param {string} project
|
|
5411
|
+
* @param {string} jobId
|
|
5412
|
+
* @param {number} [limit]
|
|
5413
|
+
* @param {number} [statusCode]
|
|
5414
|
+
* @param {string} [processingStatus]
|
|
5415
|
+
* @param {*} [options] Override http request option.
|
|
5416
|
+
* @throws {RequiredError}
|
|
5417
|
+
*/
|
|
5418
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5419
|
+
return localVarFp.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(axios, basePath));
|
|
5420
|
+
},
|
|
5421
|
+
/**
|
|
5422
|
+
*
|
|
5423
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5424
|
+
* @param {string} organisation
|
|
5425
|
+
* @param {string} project
|
|
5426
|
+
* @param {*} [options] Override http request option.
|
|
5427
|
+
* @throws {RequiredError}
|
|
5428
|
+
*/
|
|
5429
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5430
|
+
return localVarFp.aiSearchGetSettings(organisation, project, options).then((request) => request(axios, basePath));
|
|
5431
|
+
},
|
|
5432
|
+
/**
|
|
5433
|
+
*
|
|
5434
|
+
* @summary Ingest pages into the AI Search index
|
|
5435
|
+
* @param {string} organisation
|
|
5436
|
+
* @param {string} project
|
|
5437
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5438
|
+
* @param {*} [options] Override http request option.
|
|
5439
|
+
* @throws {RequiredError}
|
|
5440
|
+
*/
|
|
5441
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5442
|
+
return localVarFp.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(axios, basePath));
|
|
5443
|
+
},
|
|
5444
|
+
/**
|
|
5445
|
+
*
|
|
5446
|
+
* @summary List AI Search ingest jobs
|
|
5447
|
+
* @param {string} organisation
|
|
5448
|
+
* @param {string} project
|
|
5449
|
+
* @param {number} [limit]
|
|
5450
|
+
* @param {*} [options] Override http request option.
|
|
5451
|
+
* @throws {RequiredError}
|
|
5452
|
+
*/
|
|
5453
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5454
|
+
return localVarFp.aiSearchListCrawls(organisation, project, limit, options).then((request) => request(axios, basePath));
|
|
5455
|
+
},
|
|
5456
|
+
/**
|
|
5457
|
+
*
|
|
5458
|
+
* @summary List indexed pages with cursor pagination
|
|
5459
|
+
* @param {string} organisation
|
|
5460
|
+
* @param {string} project
|
|
5461
|
+
* @param {number} [limit]
|
|
5462
|
+
* @param {string} [cursor]
|
|
5463
|
+
* @param {string} [search]
|
|
5464
|
+
* @param {*} [options] Override http request option.
|
|
5465
|
+
* @throws {RequiredError}
|
|
5466
|
+
*/
|
|
5467
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5468
|
+
return localVarFp.aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(axios, basePath));
|
|
5469
|
+
},
|
|
5470
|
+
/**
|
|
5471
|
+
*
|
|
5472
|
+
* @summary Purge the entire AI Search index
|
|
5473
|
+
* @param {string} organisation
|
|
5474
|
+
* @param {string} project
|
|
5475
|
+
* @param {*} [options] Override http request option.
|
|
5476
|
+
* @throws {RequiredError}
|
|
5477
|
+
*/
|
|
5478
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5479
|
+
return localVarFp.aiSearchPurgeIndex(organisation, project, options).then((request) => request(axios, basePath));
|
|
5480
|
+
},
|
|
5481
|
+
/**
|
|
5482
|
+
*
|
|
5483
|
+
* @summary Semantic search across the AI Search index
|
|
5484
|
+
* @param {string} organisation
|
|
5485
|
+
* @param {string} project
|
|
5486
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5487
|
+
* @param {*} [options] Override http request option.
|
|
5488
|
+
* @throws {RequiredError}
|
|
5489
|
+
*/
|
|
5490
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5491
|
+
return localVarFp.aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(axios, basePath));
|
|
5492
|
+
},
|
|
5493
|
+
/**
|
|
5494
|
+
*
|
|
5495
|
+
* @summary Get AI Search status for a project
|
|
5496
|
+
* @param {string} organisation
|
|
5497
|
+
* @param {string} project
|
|
5498
|
+
* @param {*} [options] Override http request option.
|
|
5499
|
+
* @throws {RequiredError}
|
|
5500
|
+
*/
|
|
5501
|
+
aiSearchStatus(organisation, project, options) {
|
|
5502
|
+
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
5503
|
+
},
|
|
5504
|
+
/**
|
|
5505
|
+
*
|
|
5506
|
+
* @summary Get the most popular AI Search queries
|
|
5507
|
+
* @param {string} organisation
|
|
5508
|
+
* @param {string} project
|
|
5509
|
+
* @param {string} [range]
|
|
5510
|
+
* @param {number} [limit]
|
|
5511
|
+
* @param {*} [options] Override http request option.
|
|
5512
|
+
* @throws {RequiredError}
|
|
5513
|
+
*/
|
|
5514
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5515
|
+
return localVarFp.aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(axios, basePath));
|
|
5516
|
+
},
|
|
5517
|
+
/**
|
|
5518
|
+
*
|
|
5519
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5520
|
+
* @param {string} organisation
|
|
5521
|
+
* @param {string} project
|
|
5522
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5523
|
+
* @param {*} [options] Override http request option.
|
|
5524
|
+
* @throws {RequiredError}
|
|
5525
|
+
*/
|
|
5526
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5527
|
+
return localVarFp.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(axios, basePath));
|
|
5528
|
+
},
|
|
5529
|
+
/**
|
|
5530
|
+
*
|
|
5531
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5532
|
+
* @param {string} organisation
|
|
5533
|
+
* @param {string} project
|
|
5534
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5535
|
+
* @param {*} [options] Override http request option.
|
|
5536
|
+
* @throws {RequiredError}
|
|
5537
|
+
*/
|
|
5538
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5539
|
+
return localVarFp.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5540
|
+
},
|
|
5541
|
+
/**
|
|
5542
|
+
*
|
|
5543
|
+
* @summary Get usage statistics for the AI Search site
|
|
5544
|
+
* @param {string} organisation
|
|
5545
|
+
* @param {string} project
|
|
5546
|
+
* @param {string} [range]
|
|
5547
|
+
* @param {*} [options] Override http request option.
|
|
5548
|
+
* @throws {RequiredError}
|
|
5549
|
+
*/
|
|
5550
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5551
|
+
return localVarFp.aiSearchUsage(organisation, project, range, options).then((request) => request(axios, basePath));
|
|
5552
|
+
},
|
|
5553
|
+
};
|
|
5554
|
+
};
|
|
5555
|
+
exports.AISearchApiFactory = AISearchApiFactory;
|
|
5556
|
+
/**
|
|
5557
|
+
* AISearchApi - object-oriented interface
|
|
5558
|
+
* @export
|
|
5559
|
+
* @class AISearchApi
|
|
5560
|
+
* @extends {BaseAPI}
|
|
5561
|
+
*/
|
|
5562
|
+
class AISearchApi extends base_1.BaseAPI {
|
|
5563
|
+
/**
|
|
5564
|
+
*
|
|
5565
|
+
* @summary RAG chat with AI Search content
|
|
5566
|
+
* @param {string} organisation
|
|
5567
|
+
* @param {string} project
|
|
5568
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5569
|
+
* @param {*} [options] Override http request option.
|
|
5570
|
+
* @throws {RequiredError}
|
|
5571
|
+
* @memberof AISearchApi
|
|
5572
|
+
*/
|
|
5573
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5574
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5575
|
+
}
|
|
5576
|
+
/**
|
|
5577
|
+
*
|
|
5578
|
+
* @summary Delete pages by URLs or patterns
|
|
5579
|
+
* @param {string} organisation
|
|
5580
|
+
* @param {string} project
|
|
5581
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5582
|
+
* @param {*} [options] Override http request option.
|
|
5583
|
+
* @throws {RequiredError}
|
|
5584
|
+
* @memberof AISearchApi
|
|
5585
|
+
*/
|
|
5586
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5587
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5588
|
+
}
|
|
5589
|
+
/**
|
|
5590
|
+
*
|
|
5591
|
+
* @summary Disable AI Search for a project
|
|
5592
|
+
* @param {string} organisation
|
|
5593
|
+
* @param {string} project
|
|
5594
|
+
* @param {*} [options] Override http request option.
|
|
5595
|
+
* @throws {RequiredError}
|
|
5596
|
+
* @memberof AISearchApi
|
|
5597
|
+
*/
|
|
5598
|
+
aiSearchDisable(organisation, project, options) {
|
|
5599
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchDisable(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5600
|
+
}
|
|
5601
|
+
/**
|
|
5602
|
+
*
|
|
5603
|
+
* @summary Enable AI Search for a project
|
|
5604
|
+
* @param {string} organisation
|
|
5605
|
+
* @param {string} project
|
|
5606
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5607
|
+
* @param {*} [options] Override http request option.
|
|
5608
|
+
* @throws {RequiredError}
|
|
5609
|
+
* @memberof AISearchApi
|
|
5610
|
+
*/
|
|
5611
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5612
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5613
|
+
}
|
|
5614
|
+
/**
|
|
5615
|
+
*
|
|
5616
|
+
* @summary Get AI Search ingest job status
|
|
5617
|
+
* @param {string} organisation
|
|
5618
|
+
* @param {string} project
|
|
5619
|
+
* @param {string} jobId
|
|
5620
|
+
* @param {*} [options] Override http request option.
|
|
5621
|
+
* @throws {RequiredError}
|
|
5622
|
+
* @memberof AISearchApi
|
|
5623
|
+
*/
|
|
5624
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5625
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(this.axios, this.basePath));
|
|
5626
|
+
}
|
|
5627
|
+
/**
|
|
5628
|
+
*
|
|
5629
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5630
|
+
* @param {string} organisation
|
|
5631
|
+
* @param {string} project
|
|
5632
|
+
* @param {string} jobId
|
|
5633
|
+
* @param {number} [limit]
|
|
5634
|
+
* @param {number} [statusCode]
|
|
5635
|
+
* @param {string} [processingStatus]
|
|
5636
|
+
* @param {*} [options] Override http request option.
|
|
5637
|
+
* @throws {RequiredError}
|
|
5638
|
+
* @memberof AISearchApi
|
|
5639
|
+
*/
|
|
5640
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5641
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(this.axios, this.basePath));
|
|
5642
|
+
}
|
|
5643
|
+
/**
|
|
5644
|
+
*
|
|
5645
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5646
|
+
* @param {string} organisation
|
|
5647
|
+
* @param {string} project
|
|
5648
|
+
* @param {*} [options] Override http request option.
|
|
5649
|
+
* @throws {RequiredError}
|
|
5650
|
+
* @memberof AISearchApi
|
|
5651
|
+
*/
|
|
5652
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5653
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetSettings(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5654
|
+
}
|
|
5655
|
+
/**
|
|
5656
|
+
*
|
|
5657
|
+
* @summary Ingest pages into the AI Search index
|
|
5658
|
+
* @param {string} organisation
|
|
5659
|
+
* @param {string} project
|
|
5660
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5661
|
+
* @param {*} [options] Override http request option.
|
|
5662
|
+
* @throws {RequiredError}
|
|
5663
|
+
* @memberof AISearchApi
|
|
5664
|
+
*/
|
|
5665
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5666
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5667
|
+
}
|
|
5668
|
+
/**
|
|
5669
|
+
*
|
|
5670
|
+
* @summary List AI Search ingest jobs
|
|
5671
|
+
* @param {string} organisation
|
|
5672
|
+
* @param {string} project
|
|
5673
|
+
* @param {number} [limit]
|
|
5674
|
+
* @param {*} [options] Override http request option.
|
|
5675
|
+
* @throws {RequiredError}
|
|
5676
|
+
* @memberof AISearchApi
|
|
5677
|
+
*/
|
|
5678
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5679
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchListCrawls(organisation, project, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5680
|
+
}
|
|
5681
|
+
/**
|
|
5682
|
+
*
|
|
5683
|
+
* @summary List indexed pages with cursor pagination
|
|
5684
|
+
* @param {string} organisation
|
|
5685
|
+
* @param {string} project
|
|
5686
|
+
* @param {number} [limit]
|
|
5687
|
+
* @param {string} [cursor]
|
|
5688
|
+
* @param {string} [search]
|
|
5689
|
+
* @param {*} [options] Override http request option.
|
|
5690
|
+
* @throws {RequiredError}
|
|
5691
|
+
* @memberof AISearchApi
|
|
5692
|
+
*/
|
|
5693
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5694
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(this.axios, this.basePath));
|
|
5695
|
+
}
|
|
5696
|
+
/**
|
|
5697
|
+
*
|
|
5698
|
+
* @summary Purge the entire AI Search index
|
|
5699
|
+
* @param {string} organisation
|
|
5700
|
+
* @param {string} project
|
|
5701
|
+
* @param {*} [options] Override http request option.
|
|
5702
|
+
* @throws {RequiredError}
|
|
5703
|
+
* @memberof AISearchApi
|
|
5704
|
+
*/
|
|
5705
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5706
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchPurgeIndex(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5707
|
+
}
|
|
5708
|
+
/**
|
|
5709
|
+
*
|
|
5710
|
+
* @summary Semantic search across the AI Search index
|
|
5711
|
+
* @param {string} organisation
|
|
5712
|
+
* @param {string} project
|
|
5713
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5714
|
+
* @param {*} [options] Override http request option.
|
|
5715
|
+
* @throws {RequiredError}
|
|
5716
|
+
* @memberof AISearchApi
|
|
5717
|
+
*/
|
|
5718
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5719
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5720
|
+
}
|
|
5721
|
+
/**
|
|
5722
|
+
*
|
|
5723
|
+
* @summary Get AI Search status for a project
|
|
5724
|
+
* @param {string} organisation
|
|
5725
|
+
* @param {string} project
|
|
5726
|
+
* @param {*} [options] Override http request option.
|
|
5727
|
+
* @throws {RequiredError}
|
|
5728
|
+
* @memberof AISearchApi
|
|
5729
|
+
*/
|
|
5730
|
+
aiSearchStatus(organisation, project, options) {
|
|
5731
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5732
|
+
}
|
|
5733
|
+
/**
|
|
5734
|
+
*
|
|
5735
|
+
* @summary Get the most popular AI Search queries
|
|
5736
|
+
* @param {string} organisation
|
|
5737
|
+
* @param {string} project
|
|
5738
|
+
* @param {string} [range]
|
|
5739
|
+
* @param {number} [limit]
|
|
5740
|
+
* @param {*} [options] Override http request option.
|
|
5741
|
+
* @throws {RequiredError}
|
|
5742
|
+
* @memberof AISearchApi
|
|
5743
|
+
*/
|
|
5744
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5745
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5746
|
+
}
|
|
5747
|
+
/**
|
|
5748
|
+
*
|
|
5749
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5750
|
+
* @param {string} organisation
|
|
5751
|
+
* @param {string} project
|
|
5752
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5753
|
+
* @param {*} [options] Override http request option.
|
|
5754
|
+
* @throws {RequiredError}
|
|
5755
|
+
* @memberof AISearchApi
|
|
5756
|
+
*/
|
|
5757
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5758
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5759
|
+
}
|
|
5760
|
+
/**
|
|
5761
|
+
*
|
|
5762
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5763
|
+
* @param {string} organisation
|
|
5764
|
+
* @param {string} project
|
|
5765
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5766
|
+
* @param {*} [options] Override http request option.
|
|
5767
|
+
* @throws {RequiredError}
|
|
5768
|
+
* @memberof AISearchApi
|
|
5769
|
+
*/
|
|
5770
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5771
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5772
|
+
}
|
|
5773
|
+
/**
|
|
5774
|
+
*
|
|
5775
|
+
* @summary Get usage statistics for the AI Search site
|
|
5776
|
+
* @param {string} organisation
|
|
5777
|
+
* @param {string} project
|
|
5778
|
+
* @param {string} [range]
|
|
5779
|
+
* @param {*} [options] Override http request option.
|
|
5780
|
+
* @throws {RequiredError}
|
|
5781
|
+
* @memberof AISearchApi
|
|
5782
|
+
*/
|
|
5783
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5784
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchUsage(organisation, project, range, options).then((request) => request(this.axios, this.basePath));
|
|
5785
|
+
}
|
|
5786
|
+
}
|
|
5787
|
+
exports.AISearchApi = AISearchApi;
|
|
5788
|
+
/**
|
|
5789
|
+
* AISessionsApi - axios parameter creator
|
|
5790
|
+
* @export
|
|
5791
|
+
*/
|
|
5792
|
+
const AISessionsApiAxiosParamCreator = function (configuration) {
|
|
5793
|
+
return {
|
|
5794
|
+
/**
|
|
5795
|
+
* Creates an AI session with automatic expiration (60 min default, 24h max). Sessions are isolated by organization. Use userId to identify the user creating the session. Use sessionGroup for logical grouping. Use metadata for additional custom data. Filter sessions by userId or sessionGroup when listing.
|
|
5796
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
5797
|
+
* @param {string} organisation The organisation ID
|
|
5798
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
5799
|
+
* @param {*} [options] Override http request option.
|
|
5800
|
+
* @throws {RequiredError}
|
|
5801
|
+
*/
|
|
5802
|
+
createAISession: (organisation_1, createAISessionRequest_1, ...args_1) => __awaiter(this, [organisation_1, createAISessionRequest_1, ...args_1], void 0, function* (organisation, createAISessionRequest, options = {}) {
|
|
4186
5803
|
// verify required parameter 'organisation' is not null or undefined
|
|
4187
5804
|
(0, common_1.assertParamExists)('createAISession', 'organisation', organisation);
|
|
4188
5805
|
// verify required parameter 'createAISessionRequest' is not null or undefined
|
|
@@ -5604,7 +7221,7 @@ exports.AISkillsApi = AISkillsApi;
|
|
|
5604
7221
|
const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
5605
7222
|
return {
|
|
5606
7223
|
/**
|
|
5607
|
-
* Creates a new Slack bot
|
|
7224
|
+
* Creates a new Slack bot with inline AI agent configuration. A backing agent is created automatically — callers do not need to manage agents separately. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
|
|
5608
7225
|
* @summary Create Slack Bot
|
|
5609
7226
|
* @param {string} organisation The organisation ID
|
|
5610
7227
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5641,7 +7258,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5641
7258
|
};
|
|
5642
7259
|
}),
|
|
5643
7260
|
/**
|
|
5644
|
-
* Permanently deletes a Slack bot
|
|
7261
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5645
7262
|
* @summary Delete Slack Bot
|
|
5646
7263
|
* @param {string} organisation The organisation ID
|
|
5647
7264
|
* @param {string} botId The Slack bot ID
|
|
@@ -5677,7 +7294,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5677
7294
|
};
|
|
5678
7295
|
}),
|
|
5679
7296
|
/**
|
|
5680
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7297
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5681
7298
|
* @summary Get Slack Bot
|
|
5682
7299
|
* @param {string} organisation The organisation ID
|
|
5683
7300
|
* @param {string} botId The Slack bot ID
|
|
@@ -5713,7 +7330,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5713
7330
|
};
|
|
5714
7331
|
}),
|
|
5715
7332
|
/**
|
|
5716
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7333
|
+
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. Agent configuration fields are flattened onto each bot object.
|
|
5717
7334
|
* @summary List Slack Bots
|
|
5718
7335
|
* @param {string} organisation The organisation ID
|
|
5719
7336
|
* @param {*} [options] Override http request option.
|
|
@@ -5825,7 +7442,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5825
7442
|
};
|
|
5826
7443
|
}),
|
|
5827
7444
|
/**
|
|
5828
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7445
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5829
7446
|
* @summary Update Slack Bot
|
|
5830
7447
|
* @param {string} organisation The organisation ID
|
|
5831
7448
|
* @param {string} botId The Slack bot ID
|
|
@@ -5876,7 +7493,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5876
7493
|
const localVarAxiosParamCreator = (0, exports.AISlackBotsApiAxiosParamCreator)(configuration);
|
|
5877
7494
|
return {
|
|
5878
7495
|
/**
|
|
5879
|
-
* Creates a new Slack bot
|
|
7496
|
+
* Creates a new Slack bot with inline AI agent configuration. A backing agent is created automatically — callers do not need to manage agents separately. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
|
|
5880
7497
|
* @summary Create Slack Bot
|
|
5881
7498
|
* @param {string} organisation The organisation ID
|
|
5882
7499
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5893,7 +7510,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5893
7510
|
});
|
|
5894
7511
|
},
|
|
5895
7512
|
/**
|
|
5896
|
-
* Permanently deletes a Slack bot
|
|
7513
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5897
7514
|
* @summary Delete Slack Bot
|
|
5898
7515
|
* @param {string} organisation The organisation ID
|
|
5899
7516
|
* @param {string} botId The Slack bot ID
|
|
@@ -5910,7 +7527,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5910
7527
|
});
|
|
5911
7528
|
},
|
|
5912
7529
|
/**
|
|
5913
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7530
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5914
7531
|
* @summary Get Slack Bot
|
|
5915
7532
|
* @param {string} organisation The organisation ID
|
|
5916
7533
|
* @param {string} botId The Slack bot ID
|
|
@@ -5927,7 +7544,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5927
7544
|
});
|
|
5928
7545
|
},
|
|
5929
7546
|
/**
|
|
5930
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7547
|
+
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. Agent configuration fields are flattened onto each bot object.
|
|
5931
7548
|
* @summary List Slack Bots
|
|
5932
7549
|
* @param {string} organisation The organisation ID
|
|
5933
7550
|
* @param {*} [options] Override http request option.
|
|
@@ -5979,7 +7596,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5979
7596
|
});
|
|
5980
7597
|
},
|
|
5981
7598
|
/**
|
|
5982
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7599
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5983
7600
|
* @summary Update Slack Bot
|
|
5984
7601
|
* @param {string} organisation The organisation ID
|
|
5985
7602
|
* @param {string} botId The Slack bot ID
|
|
@@ -6007,7 +7624,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6007
7624
|
const localVarFp = (0, exports.AISlackBotsApiFp)(configuration);
|
|
6008
7625
|
return {
|
|
6009
7626
|
/**
|
|
6010
|
-
* Creates a new Slack bot
|
|
7627
|
+
* Creates a new Slack bot with inline AI agent configuration. A backing agent is created automatically — callers do not need to manage agents separately. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
|
|
6011
7628
|
* @summary Create Slack Bot
|
|
6012
7629
|
* @param {string} organisation The organisation ID
|
|
6013
7630
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -6018,7 +7635,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6018
7635
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
6019
7636
|
},
|
|
6020
7637
|
/**
|
|
6021
|
-
* Permanently deletes a Slack bot
|
|
7638
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
6022
7639
|
* @summary Delete Slack Bot
|
|
6023
7640
|
* @param {string} organisation The organisation ID
|
|
6024
7641
|
* @param {string} botId The Slack bot ID
|
|
@@ -6029,7 +7646,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6029
7646
|
return localVarFp.deleteSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
6030
7647
|
},
|
|
6031
7648
|
/**
|
|
6032
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7649
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
6033
7650
|
* @summary Get Slack Bot
|
|
6034
7651
|
* @param {string} organisation The organisation ID
|
|
6035
7652
|
* @param {string} botId The Slack bot ID
|
|
@@ -6040,7 +7657,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6040
7657
|
return localVarFp.getSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
6041
7658
|
},
|
|
6042
7659
|
/**
|
|
6043
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7660
|
+
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. Agent configuration fields are flattened onto each bot object.
|
|
6044
7661
|
* @summary List Slack Bots
|
|
6045
7662
|
* @param {string} organisation The organisation ID
|
|
6046
7663
|
* @param {*} [options] Override http request option.
|
|
@@ -6074,7 +7691,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6074
7691
|
return localVarFp.searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(axios, basePath));
|
|
6075
7692
|
},
|
|
6076
7693
|
/**
|
|
6077
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7694
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6078
7695
|
* @summary Update Slack Bot
|
|
6079
7696
|
* @param {string} organisation The organisation ID
|
|
6080
7697
|
* @param {string} botId The Slack bot ID
|
|
@@ -6096,7 +7713,7 @@ exports.AISlackBotsApiFactory = AISlackBotsApiFactory;
|
|
|
6096
7713
|
*/
|
|
6097
7714
|
class AISlackBotsApi extends base_1.BaseAPI {
|
|
6098
7715
|
/**
|
|
6099
|
-
* Creates a new Slack bot
|
|
7716
|
+
* Creates a new Slack bot with inline AI agent configuration. A backing agent is created automatically — callers do not need to manage agents separately. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
|
|
6100
7717
|
* @summary Create Slack Bot
|
|
6101
7718
|
* @param {string} organisation The organisation ID
|
|
6102
7719
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -6108,7 +7725,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6108
7725
|
return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6109
7726
|
}
|
|
6110
7727
|
/**
|
|
6111
|
-
* Permanently deletes a Slack bot
|
|
7728
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
6112
7729
|
* @summary Delete Slack Bot
|
|
6113
7730
|
* @param {string} organisation The organisation ID
|
|
6114
7731
|
* @param {string} botId The Slack bot ID
|
|
@@ -6120,7 +7737,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6120
7737
|
return (0, exports.AISlackBotsApiFp)(this.configuration).deleteSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6121
7738
|
}
|
|
6122
7739
|
/**
|
|
6123
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7740
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
6124
7741
|
* @summary Get Slack Bot
|
|
6125
7742
|
* @param {string} organisation The organisation ID
|
|
6126
7743
|
* @param {string} botId The Slack bot ID
|
|
@@ -6132,7 +7749,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6132
7749
|
return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6133
7750
|
}
|
|
6134
7751
|
/**
|
|
6135
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7752
|
+
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace. Agent configuration fields are flattened onto each bot object.
|
|
6136
7753
|
* @summary List Slack Bots
|
|
6137
7754
|
* @param {string} organisation The organisation ID
|
|
6138
7755
|
* @param {*} [options] Override http request option.
|
|
@@ -6169,7 +7786,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6169
7786
|
return (0, exports.AISlackBotsApiFp)(this.configuration).searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(this.axios, this.basePath));
|
|
6170
7787
|
}
|
|
6171
7788
|
/**
|
|
6172
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7789
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6173
7790
|
* @summary Update Slack Bot
|
|
6174
7791
|
* @param {string} organisation The organisation ID
|
|
6175
7792
|
* @param {string} botId The Slack bot ID
|
|
@@ -9307,20 +10924,24 @@ const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9307
10924
|
*
|
|
9308
10925
|
* @summary Create a command for an environment
|
|
9309
10926
|
* @param {string} organisation The organisation ID
|
|
10927
|
+
* @param {string} application The application ID
|
|
9310
10928
|
* @param {string} environment The environment ID
|
|
9311
10929
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9312
10930
|
* @param {*} [options] Override http request option.
|
|
9313
10931
|
* @throws {RequiredError}
|
|
9314
10932
|
*/
|
|
9315
|
-
createCommand: (organisation_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, environment, createCommandRequest, options = {}) {
|
|
10933
|
+
createCommand: (organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, application, environment, createCommandRequest, options = {}) {
|
|
9316
10934
|
// verify required parameter 'organisation' is not null or undefined
|
|
9317
10935
|
(0, common_1.assertParamExists)('createCommand', 'organisation', organisation);
|
|
10936
|
+
// verify required parameter 'application' is not null or undefined
|
|
10937
|
+
(0, common_1.assertParamExists)('createCommand', 'application', application);
|
|
9318
10938
|
// verify required parameter 'environment' is not null or undefined
|
|
9319
10939
|
(0, common_1.assertParamExists)('createCommand', 'environment', environment);
|
|
9320
10940
|
// verify required parameter 'createCommandRequest' is not null or undefined
|
|
9321
10941
|
(0, common_1.assertParamExists)('createCommand', 'createCommandRequest', createCommandRequest);
|
|
9322
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
|
|
10942
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
|
|
9323
10943
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
10944
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9324
10945
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
9325
10946
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9326
10947
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -9348,20 +10969,24 @@ const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9348
10969
|
*
|
|
9349
10970
|
* @summary Get a command
|
|
9350
10971
|
* @param {string} organisation The organisation ID
|
|
10972
|
+
* @param {string} application The application ID
|
|
9351
10973
|
* @param {string} environment The environment ID
|
|
9352
|
-
* @param {string} command The command ID
|
|
10974
|
+
* @param {string} command The command run ID
|
|
9353
10975
|
* @param {*} [options] Override http request option.
|
|
9354
10976
|
* @throws {RequiredError}
|
|
9355
10977
|
*/
|
|
9356
|
-
getCommand: (organisation_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, command_1, ...args_1], void 0, function* (organisation, environment, command, options = {}) {
|
|
10978
|
+
getCommand: (organisation_1, application_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, command_1, ...args_1], void 0, function* (organisation, application, environment, command, options = {}) {
|
|
9357
10979
|
// verify required parameter 'organisation' is not null or undefined
|
|
9358
10980
|
(0, common_1.assertParamExists)('getCommand', 'organisation', organisation);
|
|
10981
|
+
// verify required parameter 'application' is not null or undefined
|
|
10982
|
+
(0, common_1.assertParamExists)('getCommand', 'application', application);
|
|
9359
10983
|
// verify required parameter 'environment' is not null or undefined
|
|
9360
10984
|
(0, common_1.assertParamExists)('getCommand', 'environment', environment);
|
|
9361
10985
|
// verify required parameter 'command' is not null or undefined
|
|
9362
10986
|
(0, common_1.assertParamExists)('getCommand', 'command', command);
|
|
9363
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands/{command}`
|
|
10987
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands/{command}`
|
|
9364
10988
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
10989
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9365
10990
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
9366
10991
|
.replace(`{${"command"}}`, encodeURIComponent(String(command)));
|
|
9367
10992
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9388,17 +11013,21 @@ const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9388
11013
|
*
|
|
9389
11014
|
* @summary Get all commands for an environment
|
|
9390
11015
|
* @param {string} organisation The organisation ID
|
|
11016
|
+
* @param {string} application The application ID
|
|
9391
11017
|
* @param {string} environment The environment ID
|
|
9392
11018
|
* @param {*} [options] Override http request option.
|
|
9393
11019
|
* @throws {RequiredError}
|
|
9394
11020
|
*/
|
|
9395
|
-
listCommands: (organisation_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, ...args_1], void 0, function* (organisation, environment, options = {}) {
|
|
11021
|
+
listCommands: (organisation_1, application_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, ...args_1], void 0, function* (organisation, application, environment, options = {}) {
|
|
9396
11022
|
// verify required parameter 'organisation' is not null or undefined
|
|
9397
11023
|
(0, common_1.assertParamExists)('listCommands', 'organisation', organisation);
|
|
11024
|
+
// verify required parameter 'application' is not null or undefined
|
|
11025
|
+
(0, common_1.assertParamExists)('listCommands', 'application', application);
|
|
9398
11026
|
// verify required parameter 'environment' is not null or undefined
|
|
9399
11027
|
(0, common_1.assertParamExists)('listCommands', 'environment', environment);
|
|
9400
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
|
|
11028
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
|
|
9401
11029
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
11030
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9402
11031
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
9403
11032
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9404
11033
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
@@ -9434,15 +11063,16 @@ const CommandsApiFp = function (configuration) {
|
|
|
9434
11063
|
*
|
|
9435
11064
|
* @summary Create a command for an environment
|
|
9436
11065
|
* @param {string} organisation The organisation ID
|
|
11066
|
+
* @param {string} application The application ID
|
|
9437
11067
|
* @param {string} environment The environment ID
|
|
9438
11068
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9439
11069
|
* @param {*} [options] Override http request option.
|
|
9440
11070
|
* @throws {RequiredError}
|
|
9441
11071
|
*/
|
|
9442
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
11072
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
9443
11073
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9444
11074
|
var _a, _b, _c;
|
|
9445
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, environment, createCommandRequest, options);
|
|
11075
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, application, environment, createCommandRequest, options);
|
|
9446
11076
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9447
11077
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.createCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9448
11078
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9452,15 +11082,16 @@ const CommandsApiFp = function (configuration) {
|
|
|
9452
11082
|
*
|
|
9453
11083
|
* @summary Get a command
|
|
9454
11084
|
* @param {string} organisation The organisation ID
|
|
11085
|
+
* @param {string} application The application ID
|
|
9455
11086
|
* @param {string} environment The environment ID
|
|
9456
|
-
* @param {string} command The command ID
|
|
11087
|
+
* @param {string} command The command run ID
|
|
9457
11088
|
* @param {*} [options] Override http request option.
|
|
9458
11089
|
* @throws {RequiredError}
|
|
9459
11090
|
*/
|
|
9460
|
-
getCommand(organisation, environment, command, options) {
|
|
11091
|
+
getCommand(organisation, application, environment, command, options) {
|
|
9461
11092
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9462
11093
|
var _a, _b, _c;
|
|
9463
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, environment, command, options);
|
|
11094
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, application, environment, command, options);
|
|
9464
11095
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9465
11096
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.getCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9466
11097
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9470,14 +11101,15 @@ const CommandsApiFp = function (configuration) {
|
|
|
9470
11101
|
*
|
|
9471
11102
|
* @summary Get all commands for an environment
|
|
9472
11103
|
* @param {string} organisation The organisation ID
|
|
11104
|
+
* @param {string} application The application ID
|
|
9473
11105
|
* @param {string} environment The environment ID
|
|
9474
11106
|
* @param {*} [options] Override http request option.
|
|
9475
11107
|
* @throws {RequiredError}
|
|
9476
11108
|
*/
|
|
9477
|
-
listCommands(organisation, environment, options) {
|
|
11109
|
+
listCommands(organisation, application, environment, options) {
|
|
9478
11110
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9479
11111
|
var _a, _b, _c;
|
|
9480
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, environment, options);
|
|
11112
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, application, environment, options);
|
|
9481
11113
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9482
11114
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.listCommands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9483
11115
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9497,36 +11129,39 @@ const CommandsApiFactory = function (configuration, basePath, axios) {
|
|
|
9497
11129
|
*
|
|
9498
11130
|
* @summary Create a command for an environment
|
|
9499
11131
|
* @param {string} organisation The organisation ID
|
|
11132
|
+
* @param {string} application The application ID
|
|
9500
11133
|
* @param {string} environment The environment ID
|
|
9501
11134
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9502
11135
|
* @param {*} [options] Override http request option.
|
|
9503
11136
|
* @throws {RequiredError}
|
|
9504
11137
|
*/
|
|
9505
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
9506
|
-
return localVarFp.createCommand(organisation, environment, createCommandRequest, options).then((request) => request(axios, basePath));
|
|
11138
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
11139
|
+
return localVarFp.createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(axios, basePath));
|
|
9507
11140
|
},
|
|
9508
11141
|
/**
|
|
9509
11142
|
*
|
|
9510
11143
|
* @summary Get a command
|
|
9511
11144
|
* @param {string} organisation The organisation ID
|
|
11145
|
+
* @param {string} application The application ID
|
|
9512
11146
|
* @param {string} environment The environment ID
|
|
9513
|
-
* @param {string} command The command ID
|
|
11147
|
+
* @param {string} command The command run ID
|
|
9514
11148
|
* @param {*} [options] Override http request option.
|
|
9515
11149
|
* @throws {RequiredError}
|
|
9516
11150
|
*/
|
|
9517
|
-
getCommand(organisation, environment, command, options) {
|
|
9518
|
-
return localVarFp.getCommand(organisation, environment, command, options).then((request) => request(axios, basePath));
|
|
11151
|
+
getCommand(organisation, application, environment, command, options) {
|
|
11152
|
+
return localVarFp.getCommand(organisation, application, environment, command, options).then((request) => request(axios, basePath));
|
|
9519
11153
|
},
|
|
9520
11154
|
/**
|
|
9521
11155
|
*
|
|
9522
11156
|
* @summary Get all commands for an environment
|
|
9523
11157
|
* @param {string} organisation The organisation ID
|
|
11158
|
+
* @param {string} application The application ID
|
|
9524
11159
|
* @param {string} environment The environment ID
|
|
9525
11160
|
* @param {*} [options] Override http request option.
|
|
9526
11161
|
* @throws {RequiredError}
|
|
9527
11162
|
*/
|
|
9528
|
-
listCommands(organisation, environment, options) {
|
|
9529
|
-
return localVarFp.listCommands(organisation, environment, options).then((request) => request(axios, basePath));
|
|
11163
|
+
listCommands(organisation, application, environment, options) {
|
|
11164
|
+
return localVarFp.listCommands(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
9530
11165
|
},
|
|
9531
11166
|
};
|
|
9532
11167
|
};
|
|
@@ -9542,39 +11177,42 @@ class CommandsApi extends base_1.BaseAPI {
|
|
|
9542
11177
|
*
|
|
9543
11178
|
* @summary Create a command for an environment
|
|
9544
11179
|
* @param {string} organisation The organisation ID
|
|
11180
|
+
* @param {string} application The application ID
|
|
9545
11181
|
* @param {string} environment The environment ID
|
|
9546
11182
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9547
11183
|
* @param {*} [options] Override http request option.
|
|
9548
11184
|
* @throws {RequiredError}
|
|
9549
11185
|
* @memberof CommandsApi
|
|
9550
11186
|
*/
|
|
9551
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
9552
|
-
return (0, exports.CommandsApiFp)(this.configuration).createCommand(organisation, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11187
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
11188
|
+
return (0, exports.CommandsApiFp)(this.configuration).createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9553
11189
|
}
|
|
9554
11190
|
/**
|
|
9555
11191
|
*
|
|
9556
11192
|
* @summary Get a command
|
|
9557
11193
|
* @param {string} organisation The organisation ID
|
|
11194
|
+
* @param {string} application The application ID
|
|
9558
11195
|
* @param {string} environment The environment ID
|
|
9559
|
-
* @param {string} command The command ID
|
|
11196
|
+
* @param {string} command The command run ID
|
|
9560
11197
|
* @param {*} [options] Override http request option.
|
|
9561
11198
|
* @throws {RequiredError}
|
|
9562
11199
|
* @memberof CommandsApi
|
|
9563
11200
|
*/
|
|
9564
|
-
getCommand(organisation, environment, command, options) {
|
|
9565
|
-
return (0, exports.CommandsApiFp)(this.configuration).getCommand(organisation, environment, command, options).then((request) => request(this.axios, this.basePath));
|
|
11201
|
+
getCommand(organisation, application, environment, command, options) {
|
|
11202
|
+
return (0, exports.CommandsApiFp)(this.configuration).getCommand(organisation, application, environment, command, options).then((request) => request(this.axios, this.basePath));
|
|
9566
11203
|
}
|
|
9567
11204
|
/**
|
|
9568
11205
|
*
|
|
9569
11206
|
* @summary Get all commands for an environment
|
|
9570
11207
|
* @param {string} organisation The organisation ID
|
|
11208
|
+
* @param {string} application The application ID
|
|
9571
11209
|
* @param {string} environment The environment ID
|
|
9572
11210
|
* @param {*} [options] Override http request option.
|
|
9573
11211
|
* @throws {RequiredError}
|
|
9574
11212
|
* @memberof CommandsApi
|
|
9575
11213
|
*/
|
|
9576
|
-
listCommands(organisation, environment, options) {
|
|
9577
|
-
return (0, exports.CommandsApiFp)(this.configuration).listCommands(organisation, environment, options).then((request) => request(this.axios, this.basePath));
|
|
11214
|
+
listCommands(organisation, application, environment, options) {
|
|
11215
|
+
return (0, exports.CommandsApiFp)(this.configuration).listCommands(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
9578
11216
|
}
|
|
9579
11217
|
}
|
|
9580
11218
|
exports.CommandsApi = CommandsApi;
|
|
@@ -14662,59 +16300,368 @@ class KVApi extends base_1.BaseAPI {
|
|
|
14662
16300
|
return (0, exports.KVApiFp)(this.configuration).kVItemsUpdate(organization, project, storeId, key, v2StoreItemUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14663
16301
|
}
|
|
14664
16302
|
/**
|
|
14665
|
-
* Share a KV store from the source project with a target project. The store will be accessible in the target project.
|
|
14666
|
-
* @summary Link a KV store to another project
|
|
14667
|
-
* @param {string} organization Organization identifier
|
|
14668
|
-
* @param {string} project Source project identifier
|
|
14669
|
-
* @param {string} storeId KV store identifier
|
|
14670
|
-
* @param {KVLinkToProjectRequest} kVLinkToProjectRequest
|
|
16303
|
+
* Share a KV store from the source project with a target project. The store will be accessible in the target project.
|
|
16304
|
+
* @summary Link a KV store to another project
|
|
16305
|
+
* @param {string} organization Organization identifier
|
|
16306
|
+
* @param {string} project Source project identifier
|
|
16307
|
+
* @param {string} storeId KV store identifier
|
|
16308
|
+
* @param {KVLinkToProjectRequest} kVLinkToProjectRequest
|
|
16309
|
+
* @param {*} [options] Override http request option.
|
|
16310
|
+
* @throws {RequiredError}
|
|
16311
|
+
* @memberof KVApi
|
|
16312
|
+
*/
|
|
16313
|
+
kVLinkToProject(organization, project, storeId, kVLinkToProjectRequest, options) {
|
|
16314
|
+
return (0, exports.KVApiFp)(this.configuration).kVLinkToProject(organization, project, storeId, kVLinkToProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16315
|
+
}
|
|
16316
|
+
/**
|
|
16317
|
+
*
|
|
16318
|
+
* @summary List key-value stores
|
|
16319
|
+
* @param {string} organization Organization identifier
|
|
16320
|
+
* @param {string} project Project identifier
|
|
16321
|
+
* @param {*} [options] Override http request option.
|
|
16322
|
+
* @throws {RequiredError}
|
|
16323
|
+
* @memberof KVApi
|
|
16324
|
+
*/
|
|
16325
|
+
kVList(organization, project, options) {
|
|
16326
|
+
return (0, exports.KVApiFp)(this.configuration).kVList(organization, project, options).then((request) => request(this.axios, this.basePath));
|
|
16327
|
+
}
|
|
16328
|
+
/**
|
|
16329
|
+
*
|
|
16330
|
+
* @summary Get a kv store
|
|
16331
|
+
* @param {string} organization Organization identifier
|
|
16332
|
+
* @param {string} project Project identifier
|
|
16333
|
+
* @param {string} storeId
|
|
16334
|
+
* @param {*} [options] Override http request option.
|
|
16335
|
+
* @throws {RequiredError}
|
|
16336
|
+
* @memberof KVApi
|
|
16337
|
+
*/
|
|
16338
|
+
kVShow(organization, project, storeId, options) {
|
|
16339
|
+
return (0, exports.KVApiFp)(this.configuration).kVShow(organization, project, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
16340
|
+
}
|
|
16341
|
+
/**
|
|
16342
|
+
* Remove access to a linked KV store from this project. The store must be linked (not owned by this project).
|
|
16343
|
+
* @summary Unlink a KV store from this project
|
|
16344
|
+
* @param {string} organization Organization identifier
|
|
16345
|
+
* @param {string} project Project identifier
|
|
16346
|
+
* @param {string} storeId KV store identifier
|
|
16347
|
+
* @param {*} [options] Override http request option.
|
|
16348
|
+
* @throws {RequiredError}
|
|
16349
|
+
* @memberof KVApi
|
|
16350
|
+
*/
|
|
16351
|
+
kVUnlinkFromProject(organization, project, storeId, options) {
|
|
16352
|
+
return (0, exports.KVApiFp)(this.configuration).kVUnlinkFromProject(organization, project, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
16353
|
+
}
|
|
16354
|
+
}
|
|
16355
|
+
exports.KVApi = KVApi;
|
|
16356
|
+
/**
|
|
16357
|
+
* OpenAICompatibilityApi - axios parameter creator
|
|
16358
|
+
* @export
|
|
16359
|
+
*/
|
|
16360
|
+
const OpenAICompatibilityApiAxiosParamCreator = function (configuration) {
|
|
16361
|
+
return {
|
|
16362
|
+
/**
|
|
16363
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16364
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16365
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16366
|
+
* @param {*} [options] Override http request option.
|
|
16367
|
+
* @throws {RequiredError}
|
|
16368
|
+
*/
|
|
16369
|
+
oaiChatCompletions: (oaiChatCompletionsRequest_1, ...args_1) => __awaiter(this, [oaiChatCompletionsRequest_1, ...args_1], void 0, function* (oaiChatCompletionsRequest, options = {}) {
|
|
16370
|
+
// verify required parameter 'oaiChatCompletionsRequest' is not null or undefined
|
|
16371
|
+
(0, common_1.assertParamExists)('oaiChatCompletions', 'oaiChatCompletionsRequest', oaiChatCompletionsRequest);
|
|
16372
|
+
const localVarPath = `/oai/v1/chat/completions`;
|
|
16373
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16374
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16375
|
+
let baseOptions;
|
|
16376
|
+
if (configuration) {
|
|
16377
|
+
baseOptions = configuration.baseOptions;
|
|
16378
|
+
}
|
|
16379
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16380
|
+
const localVarHeaderParameter = {};
|
|
16381
|
+
const localVarQueryParameter = {};
|
|
16382
|
+
// authentication BearerAuth required
|
|
16383
|
+
// http bearer authentication required
|
|
16384
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16385
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16386
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16387
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16388
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16389
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oaiChatCompletionsRequest, localVarRequestOptions, configuration);
|
|
16390
|
+
return {
|
|
16391
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16392
|
+
options: localVarRequestOptions,
|
|
16393
|
+
};
|
|
16394
|
+
}),
|
|
16395
|
+
/**
|
|
16396
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16397
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16398
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16399
|
+
* @param {*} [options] Override http request option.
|
|
16400
|
+
* @throws {RequiredError}
|
|
16401
|
+
*/
|
|
16402
|
+
oaiEmbeddings: (oaiEmbeddingsRequest_1, ...args_1) => __awaiter(this, [oaiEmbeddingsRequest_1, ...args_1], void 0, function* (oaiEmbeddingsRequest, options = {}) {
|
|
16403
|
+
// verify required parameter 'oaiEmbeddingsRequest' is not null or undefined
|
|
16404
|
+
(0, common_1.assertParamExists)('oaiEmbeddings', 'oaiEmbeddingsRequest', oaiEmbeddingsRequest);
|
|
16405
|
+
const localVarPath = `/oai/v1/embeddings`;
|
|
16406
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16407
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16408
|
+
let baseOptions;
|
|
16409
|
+
if (configuration) {
|
|
16410
|
+
baseOptions = configuration.baseOptions;
|
|
16411
|
+
}
|
|
16412
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16413
|
+
const localVarHeaderParameter = {};
|
|
16414
|
+
const localVarQueryParameter = {};
|
|
16415
|
+
// authentication BearerAuth required
|
|
16416
|
+
// http bearer authentication required
|
|
16417
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16418
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16419
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16420
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16421
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16422
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oaiEmbeddingsRequest, localVarRequestOptions, configuration);
|
|
16423
|
+
return {
|
|
16424
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16425
|
+
options: localVarRequestOptions,
|
|
16426
|
+
};
|
|
16427
|
+
}),
|
|
16428
|
+
/**
|
|
16429
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16430
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16431
|
+
* @param {string} model
|
|
16432
|
+
* @param {*} [options] Override http request option.
|
|
16433
|
+
* @throws {RequiredError}
|
|
16434
|
+
*/
|
|
16435
|
+
oaiGetModel: (model_1, ...args_1) => __awaiter(this, [model_1, ...args_1], void 0, function* (model, options = {}) {
|
|
16436
|
+
// verify required parameter 'model' is not null or undefined
|
|
16437
|
+
(0, common_1.assertParamExists)('oaiGetModel', 'model', model);
|
|
16438
|
+
const localVarPath = `/oai/v1/models/{model}`
|
|
16439
|
+
.replace(`{${"model"}}`, encodeURIComponent(String(model)));
|
|
16440
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16441
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16442
|
+
let baseOptions;
|
|
16443
|
+
if (configuration) {
|
|
16444
|
+
baseOptions = configuration.baseOptions;
|
|
16445
|
+
}
|
|
16446
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16447
|
+
const localVarHeaderParameter = {};
|
|
16448
|
+
const localVarQueryParameter = {};
|
|
16449
|
+
// authentication BearerAuth required
|
|
16450
|
+
// http bearer authentication required
|
|
16451
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16452
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16453
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16454
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16455
|
+
return {
|
|
16456
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16457
|
+
options: localVarRequestOptions,
|
|
16458
|
+
};
|
|
16459
|
+
}),
|
|
16460
|
+
/**
|
|
16461
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16462
|
+
* @summary List available models (OpenAI-compatible)
|
|
16463
|
+
* @param {*} [options] Override http request option.
|
|
16464
|
+
* @throws {RequiredError}
|
|
16465
|
+
*/
|
|
16466
|
+
oaiListModels: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
16467
|
+
const localVarPath = `/oai/v1/models`;
|
|
16468
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16469
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
16470
|
+
let baseOptions;
|
|
16471
|
+
if (configuration) {
|
|
16472
|
+
baseOptions = configuration.baseOptions;
|
|
16473
|
+
}
|
|
16474
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16475
|
+
const localVarHeaderParameter = {};
|
|
16476
|
+
const localVarQueryParameter = {};
|
|
16477
|
+
// authentication BearerAuth required
|
|
16478
|
+
// http bearer authentication required
|
|
16479
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
16480
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
16481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16483
|
+
return {
|
|
16484
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16485
|
+
options: localVarRequestOptions,
|
|
16486
|
+
};
|
|
16487
|
+
}),
|
|
16488
|
+
};
|
|
16489
|
+
};
|
|
16490
|
+
exports.OpenAICompatibilityApiAxiosParamCreator = OpenAICompatibilityApiAxiosParamCreator;
|
|
16491
|
+
/**
|
|
16492
|
+
* OpenAICompatibilityApi - functional programming interface
|
|
16493
|
+
* @export
|
|
16494
|
+
*/
|
|
16495
|
+
const OpenAICompatibilityApiFp = function (configuration) {
|
|
16496
|
+
const localVarAxiosParamCreator = (0, exports.OpenAICompatibilityApiAxiosParamCreator)(configuration);
|
|
16497
|
+
return {
|
|
16498
|
+
/**
|
|
16499
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16500
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16501
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16502
|
+
* @param {*} [options] Override http request option.
|
|
16503
|
+
* @throws {RequiredError}
|
|
16504
|
+
*/
|
|
16505
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16506
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16507
|
+
var _a, _b, _c;
|
|
16508
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiChatCompletions(oaiChatCompletionsRequest, options);
|
|
16509
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16510
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiChatCompletions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16511
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16512
|
+
});
|
|
16513
|
+
},
|
|
16514
|
+
/**
|
|
16515
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16516
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16517
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16518
|
+
* @param {*} [options] Override http request option.
|
|
16519
|
+
* @throws {RequiredError}
|
|
16520
|
+
*/
|
|
16521
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16522
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16523
|
+
var _a, _b, _c;
|
|
16524
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiEmbeddings(oaiEmbeddingsRequest, options);
|
|
16525
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16526
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiEmbeddings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16527
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16528
|
+
});
|
|
16529
|
+
},
|
|
16530
|
+
/**
|
|
16531
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16532
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16533
|
+
* @param {string} model
|
|
16534
|
+
* @param {*} [options] Override http request option.
|
|
16535
|
+
* @throws {RequiredError}
|
|
16536
|
+
*/
|
|
16537
|
+
oaiGetModel(model, options) {
|
|
16538
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16539
|
+
var _a, _b, _c;
|
|
16540
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiGetModel(model, options);
|
|
16541
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16542
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiGetModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16543
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16544
|
+
});
|
|
16545
|
+
},
|
|
16546
|
+
/**
|
|
16547
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16548
|
+
* @summary List available models (OpenAI-compatible)
|
|
16549
|
+
* @param {*} [options] Override http request option.
|
|
16550
|
+
* @throws {RequiredError}
|
|
16551
|
+
*/
|
|
16552
|
+
oaiListModels(options) {
|
|
16553
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16554
|
+
var _a, _b, _c;
|
|
16555
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiListModels(options);
|
|
16556
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16557
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiListModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16558
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16559
|
+
});
|
|
16560
|
+
},
|
|
16561
|
+
};
|
|
16562
|
+
};
|
|
16563
|
+
exports.OpenAICompatibilityApiFp = OpenAICompatibilityApiFp;
|
|
16564
|
+
/**
|
|
16565
|
+
* OpenAICompatibilityApi - factory interface
|
|
16566
|
+
* @export
|
|
16567
|
+
*/
|
|
16568
|
+
const OpenAICompatibilityApiFactory = function (configuration, basePath, axios) {
|
|
16569
|
+
const localVarFp = (0, exports.OpenAICompatibilityApiFp)(configuration);
|
|
16570
|
+
return {
|
|
16571
|
+
/**
|
|
16572
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16573
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16574
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16575
|
+
* @param {*} [options] Override http request option.
|
|
16576
|
+
* @throws {RequiredError}
|
|
16577
|
+
*/
|
|
16578
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16579
|
+
return localVarFp.oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(axios, basePath));
|
|
16580
|
+
},
|
|
16581
|
+
/**
|
|
16582
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16583
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16584
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16585
|
+
* @param {*} [options] Override http request option.
|
|
16586
|
+
* @throws {RequiredError}
|
|
16587
|
+
*/
|
|
16588
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16589
|
+
return localVarFp.oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(axios, basePath));
|
|
16590
|
+
},
|
|
16591
|
+
/**
|
|
16592
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16593
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16594
|
+
* @param {string} model
|
|
16595
|
+
* @param {*} [options] Override http request option.
|
|
16596
|
+
* @throws {RequiredError}
|
|
16597
|
+
*/
|
|
16598
|
+
oaiGetModel(model, options) {
|
|
16599
|
+
return localVarFp.oaiGetModel(model, options).then((request) => request(axios, basePath));
|
|
16600
|
+
},
|
|
16601
|
+
/**
|
|
16602
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16603
|
+
* @summary List available models (OpenAI-compatible)
|
|
16604
|
+
* @param {*} [options] Override http request option.
|
|
16605
|
+
* @throws {RequiredError}
|
|
16606
|
+
*/
|
|
16607
|
+
oaiListModels(options) {
|
|
16608
|
+
return localVarFp.oaiListModels(options).then((request) => request(axios, basePath));
|
|
16609
|
+
},
|
|
16610
|
+
};
|
|
16611
|
+
};
|
|
16612
|
+
exports.OpenAICompatibilityApiFactory = OpenAICompatibilityApiFactory;
|
|
16613
|
+
/**
|
|
16614
|
+
* OpenAICompatibilityApi - object-oriented interface
|
|
16615
|
+
* @export
|
|
16616
|
+
* @class OpenAICompatibilityApi
|
|
16617
|
+
* @extends {BaseAPI}
|
|
16618
|
+
*/
|
|
16619
|
+
class OpenAICompatibilityApi extends base_1.BaseAPI {
|
|
16620
|
+
/**
|
|
16621
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16622
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16623
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
14671
16624
|
* @param {*} [options] Override http request option.
|
|
14672
16625
|
* @throws {RequiredError}
|
|
14673
|
-
* @memberof
|
|
16626
|
+
* @memberof OpenAICompatibilityApi
|
|
14674
16627
|
*/
|
|
14675
|
-
|
|
14676
|
-
return (0, exports.
|
|
16628
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16629
|
+
return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14677
16630
|
}
|
|
14678
16631
|
/**
|
|
14679
|
-
*
|
|
14680
|
-
* @summary
|
|
14681
|
-
* @param {
|
|
14682
|
-
* @param {string} project Project identifier
|
|
16632
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16633
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16634
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
14683
16635
|
* @param {*} [options] Override http request option.
|
|
14684
16636
|
* @throws {RequiredError}
|
|
14685
|
-
* @memberof
|
|
16637
|
+
* @memberof OpenAICompatibilityApi
|
|
14686
16638
|
*/
|
|
14687
|
-
|
|
14688
|
-
return (0, exports.
|
|
16639
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16640
|
+
return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14689
16641
|
}
|
|
14690
16642
|
/**
|
|
14691
|
-
*
|
|
14692
|
-
* @summary
|
|
14693
|
-
* @param {string}
|
|
14694
|
-
* @param {string} project Project identifier
|
|
14695
|
-
* @param {string} storeId
|
|
16643
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16644
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16645
|
+
* @param {string} model
|
|
14696
16646
|
* @param {*} [options] Override http request option.
|
|
14697
16647
|
* @throws {RequiredError}
|
|
14698
|
-
* @memberof
|
|
16648
|
+
* @memberof OpenAICompatibilityApi
|
|
14699
16649
|
*/
|
|
14700
|
-
|
|
14701
|
-
return (0, exports.
|
|
16650
|
+
oaiGetModel(model, options) {
|
|
16651
|
+
return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiGetModel(model, options).then((request) => request(this.axios, this.basePath));
|
|
14702
16652
|
}
|
|
14703
16653
|
/**
|
|
14704
|
-
*
|
|
14705
|
-
* @summary
|
|
14706
|
-
* @param {string} organization Organization identifier
|
|
14707
|
-
* @param {string} project Project identifier
|
|
14708
|
-
* @param {string} storeId KV store identifier
|
|
16654
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16655
|
+
* @summary List available models (OpenAI-compatible)
|
|
14709
16656
|
* @param {*} [options] Override http request option.
|
|
14710
16657
|
* @throws {RequiredError}
|
|
14711
|
-
* @memberof
|
|
16658
|
+
* @memberof OpenAICompatibilityApi
|
|
14712
16659
|
*/
|
|
14713
|
-
|
|
14714
|
-
return (0, exports.
|
|
16660
|
+
oaiListModels(options) {
|
|
16661
|
+
return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiListModels(options).then((request) => request(this.axios, this.basePath));
|
|
14715
16662
|
}
|
|
14716
16663
|
}
|
|
14717
|
-
exports.
|
|
16664
|
+
exports.OpenAICompatibilityApi = OpenAICompatibilityApi;
|
|
14718
16665
|
/**
|
|
14719
16666
|
* OrganizationsApi - axios parameter creator
|
|
14720
16667
|
* @export
|
|
@@ -15354,7 +17301,230 @@ const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15354
17301
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15355
17302
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15356
17303
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15357
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
17304
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
17305
|
+
return {
|
|
17306
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17307
|
+
options: localVarRequestOptions,
|
|
17308
|
+
};
|
|
17309
|
+
}),
|
|
17310
|
+
};
|
|
17311
|
+
};
|
|
17312
|
+
exports.PurgeApiAxiosParamCreator = PurgeApiAxiosParamCreator;
|
|
17313
|
+
/**
|
|
17314
|
+
* PurgeApi - functional programming interface
|
|
17315
|
+
* @export
|
|
17316
|
+
*/
|
|
17317
|
+
const PurgeApiFp = function (configuration) {
|
|
17318
|
+
const localVarAxiosParamCreator = (0, exports.PurgeApiAxiosParamCreator)(configuration);
|
|
17319
|
+
return {
|
|
17320
|
+
/**
|
|
17321
|
+
*
|
|
17322
|
+
* @summary Purge cache via URL or cache keys
|
|
17323
|
+
* @param {string} organization Organization identifier
|
|
17324
|
+
* @param {string} project Project identifier
|
|
17325
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17326
|
+
* @param {*} [options] Override http request option.
|
|
17327
|
+
* @throws {RequiredError}
|
|
17328
|
+
*/
|
|
17329
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17330
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17331
|
+
var _a, _b, _c;
|
|
17332
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
|
|
17333
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17334
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['PurgeApi.purgeCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17335
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17336
|
+
});
|
|
17337
|
+
},
|
|
17338
|
+
};
|
|
17339
|
+
};
|
|
17340
|
+
exports.PurgeApiFp = PurgeApiFp;
|
|
17341
|
+
/**
|
|
17342
|
+
* PurgeApi - factory interface
|
|
17343
|
+
* @export
|
|
17344
|
+
*/
|
|
17345
|
+
const PurgeApiFactory = function (configuration, basePath, axios) {
|
|
17346
|
+
const localVarFp = (0, exports.PurgeApiFp)(configuration);
|
|
17347
|
+
return {
|
|
17348
|
+
/**
|
|
17349
|
+
*
|
|
17350
|
+
* @summary Purge cache via URL or cache keys
|
|
17351
|
+
* @param {string} organization Organization identifier
|
|
17352
|
+
* @param {string} project Project identifier
|
|
17353
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17354
|
+
* @param {*} [options] Override http request option.
|
|
17355
|
+
* @throws {RequiredError}
|
|
17356
|
+
*/
|
|
17357
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17358
|
+
return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
|
|
17359
|
+
},
|
|
17360
|
+
};
|
|
17361
|
+
};
|
|
17362
|
+
exports.PurgeApiFactory = PurgeApiFactory;
|
|
17363
|
+
/**
|
|
17364
|
+
* PurgeApi - object-oriented interface
|
|
17365
|
+
* @export
|
|
17366
|
+
* @class PurgeApi
|
|
17367
|
+
* @extends {BaseAPI}
|
|
17368
|
+
*/
|
|
17369
|
+
class PurgeApi extends base_1.BaseAPI {
|
|
17370
|
+
/**
|
|
17371
|
+
*
|
|
17372
|
+
* @summary Purge cache via URL or cache keys
|
|
17373
|
+
* @param {string} organization Organization identifier
|
|
17374
|
+
* @param {string} project Project identifier
|
|
17375
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17376
|
+
* @param {*} [options] Override http request option.
|
|
17377
|
+
* @throws {RequiredError}
|
|
17378
|
+
* @memberof PurgeApi
|
|
17379
|
+
*/
|
|
17380
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17381
|
+
return (0, exports.PurgeApiFp)(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17382
|
+
}
|
|
17383
|
+
}
|
|
17384
|
+
exports.PurgeApi = PurgeApi;
|
|
17385
|
+
/**
|
|
17386
|
+
* RestoreManagementApi - axios parameter creator
|
|
17387
|
+
* @export
|
|
17388
|
+
*/
|
|
17389
|
+
const RestoreManagementApiAxiosParamCreator = function (configuration) {
|
|
17390
|
+
return {
|
|
17391
|
+
/**
|
|
17392
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17393
|
+
* @summary Get the status of a restore operation
|
|
17394
|
+
* @param {string} organisation The organisation ID
|
|
17395
|
+
* @param {string} application The application ID
|
|
17396
|
+
* @param {string} environment The environment ID
|
|
17397
|
+
* @param {string} restoreId The restore operation ID
|
|
17398
|
+
* @param {*} [options] Override http request option.
|
|
17399
|
+
* @throws {RequiredError}
|
|
17400
|
+
*/
|
|
17401
|
+
getRestoreStatus: (organisation_1, application_1, environment_1, restoreId_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, restoreId_1, ...args_1], void 0, function* (organisation, application, environment, restoreId, options = {}) {
|
|
17402
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17403
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'organisation', organisation);
|
|
17404
|
+
// verify required parameter 'application' is not null or undefined
|
|
17405
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'application', application);
|
|
17406
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17407
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'environment', environment);
|
|
17408
|
+
// verify required parameter 'restoreId' is not null or undefined
|
|
17409
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'restoreId', restoreId);
|
|
17410
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}`
|
|
17411
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17412
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17413
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17414
|
+
.replace(`{${"restoreId"}}`, encodeURIComponent(String(restoreId)));
|
|
17415
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17416
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17417
|
+
let baseOptions;
|
|
17418
|
+
if (configuration) {
|
|
17419
|
+
baseOptions = configuration.baseOptions;
|
|
17420
|
+
}
|
|
17421
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17422
|
+
const localVarHeaderParameter = {};
|
|
17423
|
+
const localVarQueryParameter = {};
|
|
17424
|
+
// authentication BearerAuth required
|
|
17425
|
+
// http bearer authentication required
|
|
17426
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17427
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17428
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17429
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17430
|
+
return {
|
|
17431
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17432
|
+
options: localVarRequestOptions,
|
|
17433
|
+
};
|
|
17434
|
+
}),
|
|
17435
|
+
/**
|
|
17436
|
+
* Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17437
|
+
* @summary Restore a database backup to a target environment
|
|
17438
|
+
* @param {string} organisation The organisation ID
|
|
17439
|
+
* @param {string} application The application ID
|
|
17440
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17441
|
+
* @param {string} backupId The backup ID to restore from
|
|
17442
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17443
|
+
* @param {*} [options] Override http request option.
|
|
17444
|
+
* @throws {RequiredError}
|
|
17445
|
+
*/
|
|
17446
|
+
restoreDatabase: (organisation_1, application_1, environment_1, backupId_1, restoreDatabaseRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, backupId_1, restoreDatabaseRequest_1, ...args_1], void 0, function* (organisation, application, environment, backupId, restoreDatabaseRequest, options = {}) {
|
|
17447
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17448
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'organisation', organisation);
|
|
17449
|
+
// verify required parameter 'application' is not null or undefined
|
|
17450
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'application', application);
|
|
17451
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17452
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'environment', environment);
|
|
17453
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17454
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'backupId', backupId);
|
|
17455
|
+
// verify required parameter 'restoreDatabaseRequest' is not null or undefined
|
|
17456
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'restoreDatabaseRequest', restoreDatabaseRequest);
|
|
17457
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database`
|
|
17458
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17459
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17460
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17461
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17462
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17463
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17464
|
+
let baseOptions;
|
|
17465
|
+
if (configuration) {
|
|
17466
|
+
baseOptions = configuration.baseOptions;
|
|
17467
|
+
}
|
|
17468
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17469
|
+
const localVarHeaderParameter = {};
|
|
17470
|
+
const localVarQueryParameter = {};
|
|
17471
|
+
// authentication BearerAuth required
|
|
17472
|
+
// http bearer authentication required
|
|
17473
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17474
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17475
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17476
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17477
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17478
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restoreDatabaseRequest, localVarRequestOptions, configuration);
|
|
17479
|
+
return {
|
|
17480
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17481
|
+
options: localVarRequestOptions,
|
|
17482
|
+
};
|
|
17483
|
+
}),
|
|
17484
|
+
/**
|
|
17485
|
+
* Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17486
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17487
|
+
* @param {string} organisation The organisation ID
|
|
17488
|
+
* @param {string} application The application ID
|
|
17489
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17490
|
+
* @param {string} backupId The backup ID to restore from
|
|
17491
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17492
|
+
* @param {*} [options] Override http request option.
|
|
17493
|
+
* @throws {RequiredError}
|
|
17494
|
+
*/
|
|
17495
|
+
restoreFilesystem: (organisation_1, application_1, environment_1, backupId_1, restoreFilesystemRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, backupId_1, restoreFilesystemRequest_1, ...args_1], void 0, function* (organisation, application, environment, backupId, restoreFilesystemRequest, options = {}) {
|
|
17496
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17497
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'organisation', organisation);
|
|
17498
|
+
// verify required parameter 'application' is not null or undefined
|
|
17499
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'application', application);
|
|
17500
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17501
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'environment', environment);
|
|
17502
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17503
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'backupId', backupId);
|
|
17504
|
+
// verify required parameter 'restoreFilesystemRequest' is not null or undefined
|
|
17505
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'restoreFilesystemRequest', restoreFilesystemRequest);
|
|
17506
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem`
|
|
17507
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17508
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17509
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17510
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17511
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17512
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17513
|
+
let baseOptions;
|
|
17514
|
+
if (configuration) {
|
|
17515
|
+
baseOptions = configuration.baseOptions;
|
|
17516
|
+
}
|
|
17517
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17518
|
+
const localVarHeaderParameter = {};
|
|
17519
|
+
const localVarQueryParameter = {};
|
|
17520
|
+
// authentication BearerAuth required
|
|
17521
|
+
// http bearer authentication required
|
|
17522
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17523
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17524
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17525
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17526
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17527
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restoreFilesystemRequest, localVarRequestOptions, configuration);
|
|
15358
17528
|
return {
|
|
15359
17529
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15360
17530
|
options: localVarRequestOptions,
|
|
@@ -15362,79 +17532,180 @@ const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15362
17532
|
}),
|
|
15363
17533
|
};
|
|
15364
17534
|
};
|
|
15365
|
-
exports.
|
|
17535
|
+
exports.RestoreManagementApiAxiosParamCreator = RestoreManagementApiAxiosParamCreator;
|
|
15366
17536
|
/**
|
|
15367
|
-
*
|
|
17537
|
+
* RestoreManagementApi - functional programming interface
|
|
15368
17538
|
* @export
|
|
15369
17539
|
*/
|
|
15370
|
-
const
|
|
15371
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
17540
|
+
const RestoreManagementApiFp = function (configuration) {
|
|
17541
|
+
const localVarAxiosParamCreator = (0, exports.RestoreManagementApiAxiosParamCreator)(configuration);
|
|
15372
17542
|
return {
|
|
15373
17543
|
/**
|
|
15374
|
-
*
|
|
15375
|
-
* @summary
|
|
15376
|
-
* @param {string}
|
|
15377
|
-
* @param {string}
|
|
15378
|
-
* @param {
|
|
17544
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17545
|
+
* @summary Get the status of a restore operation
|
|
17546
|
+
* @param {string} organisation The organisation ID
|
|
17547
|
+
* @param {string} application The application ID
|
|
17548
|
+
* @param {string} environment The environment ID
|
|
17549
|
+
* @param {string} restoreId The restore operation ID
|
|
15379
17550
|
* @param {*} [options] Override http request option.
|
|
15380
17551
|
* @throws {RequiredError}
|
|
15381
17552
|
*/
|
|
15382
|
-
|
|
17553
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
15383
17554
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15384
17555
|
var _a, _b, _c;
|
|
15385
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
17556
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRestoreStatus(organisation, application, environment, restoreId, options);
|
|
15386
17557
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15387
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
17558
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RestoreManagementApi.getRestoreStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17559
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17560
|
+
});
|
|
17561
|
+
},
|
|
17562
|
+
/**
|
|
17563
|
+
* Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17564
|
+
* @summary Restore a database backup to a target environment
|
|
17565
|
+
* @param {string} organisation The organisation ID
|
|
17566
|
+
* @param {string} application The application ID
|
|
17567
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17568
|
+
* @param {string} backupId The backup ID to restore from
|
|
17569
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17570
|
+
* @param {*} [options] Override http request option.
|
|
17571
|
+
* @throws {RequiredError}
|
|
17572
|
+
*/
|
|
17573
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17574
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17575
|
+
var _a, _b, _c;
|
|
17576
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options);
|
|
17577
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17578
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RestoreManagementApi.restoreDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17579
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17580
|
+
});
|
|
17581
|
+
},
|
|
17582
|
+
/**
|
|
17583
|
+
* Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17584
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17585
|
+
* @param {string} organisation The organisation ID
|
|
17586
|
+
* @param {string} application The application ID
|
|
17587
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17588
|
+
* @param {string} backupId The backup ID to restore from
|
|
17589
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17590
|
+
* @param {*} [options] Override http request option.
|
|
17591
|
+
* @throws {RequiredError}
|
|
17592
|
+
*/
|
|
17593
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17594
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17595
|
+
var _a, _b, _c;
|
|
17596
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options);
|
|
17597
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17598
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RestoreManagementApi.restoreFilesystem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15388
17599
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15389
17600
|
});
|
|
15390
17601
|
},
|
|
15391
17602
|
};
|
|
15392
17603
|
};
|
|
15393
|
-
exports.
|
|
17604
|
+
exports.RestoreManagementApiFp = RestoreManagementApiFp;
|
|
15394
17605
|
/**
|
|
15395
|
-
*
|
|
17606
|
+
* RestoreManagementApi - factory interface
|
|
15396
17607
|
* @export
|
|
15397
17608
|
*/
|
|
15398
|
-
const
|
|
15399
|
-
const localVarFp = (0, exports.
|
|
17609
|
+
const RestoreManagementApiFactory = function (configuration, basePath, axios) {
|
|
17610
|
+
const localVarFp = (0, exports.RestoreManagementApiFp)(configuration);
|
|
15400
17611
|
return {
|
|
15401
17612
|
/**
|
|
15402
|
-
*
|
|
15403
|
-
* @summary
|
|
15404
|
-
* @param {string}
|
|
15405
|
-
* @param {string}
|
|
15406
|
-
* @param {
|
|
17613
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17614
|
+
* @summary Get the status of a restore operation
|
|
17615
|
+
* @param {string} organisation The organisation ID
|
|
17616
|
+
* @param {string} application The application ID
|
|
17617
|
+
* @param {string} environment The environment ID
|
|
17618
|
+
* @param {string} restoreId The restore operation ID
|
|
15407
17619
|
* @param {*} [options] Override http request option.
|
|
15408
17620
|
* @throws {RequiredError}
|
|
15409
17621
|
*/
|
|
15410
|
-
|
|
15411
|
-
return localVarFp.
|
|
17622
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17623
|
+
return localVarFp.getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(axios, basePath));
|
|
17624
|
+
},
|
|
17625
|
+
/**
|
|
17626
|
+
* Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17627
|
+
* @summary Restore a database backup to a target environment
|
|
17628
|
+
* @param {string} organisation The organisation ID
|
|
17629
|
+
* @param {string} application The application ID
|
|
17630
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17631
|
+
* @param {string} backupId The backup ID to restore from
|
|
17632
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17633
|
+
* @param {*} [options] Override http request option.
|
|
17634
|
+
* @throws {RequiredError}
|
|
17635
|
+
*/
|
|
17636
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17637
|
+
return localVarFp.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
17638
|
+
},
|
|
17639
|
+
/**
|
|
17640
|
+
* Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17641
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17642
|
+
* @param {string} organisation The organisation ID
|
|
17643
|
+
* @param {string} application The application ID
|
|
17644
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17645
|
+
* @param {string} backupId The backup ID to restore from
|
|
17646
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17647
|
+
* @param {*} [options] Override http request option.
|
|
17648
|
+
* @throws {RequiredError}
|
|
17649
|
+
*/
|
|
17650
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17651
|
+
return localVarFp.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(axios, basePath));
|
|
15412
17652
|
},
|
|
15413
17653
|
};
|
|
15414
17654
|
};
|
|
15415
|
-
exports.
|
|
17655
|
+
exports.RestoreManagementApiFactory = RestoreManagementApiFactory;
|
|
15416
17656
|
/**
|
|
15417
|
-
*
|
|
17657
|
+
* RestoreManagementApi - object-oriented interface
|
|
15418
17658
|
* @export
|
|
15419
|
-
* @class
|
|
17659
|
+
* @class RestoreManagementApi
|
|
15420
17660
|
* @extends {BaseAPI}
|
|
15421
17661
|
*/
|
|
15422
|
-
class
|
|
17662
|
+
class RestoreManagementApi extends base_1.BaseAPI {
|
|
15423
17663
|
/**
|
|
15424
|
-
*
|
|
15425
|
-
* @summary
|
|
15426
|
-
* @param {string}
|
|
15427
|
-
* @param {string}
|
|
15428
|
-
* @param {
|
|
17664
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17665
|
+
* @summary Get the status of a restore operation
|
|
17666
|
+
* @param {string} organisation The organisation ID
|
|
17667
|
+
* @param {string} application The application ID
|
|
17668
|
+
* @param {string} environment The environment ID
|
|
17669
|
+
* @param {string} restoreId The restore operation ID
|
|
15429
17670
|
* @param {*} [options] Override http request option.
|
|
15430
17671
|
* @throws {RequiredError}
|
|
15431
|
-
* @memberof
|
|
17672
|
+
* @memberof RestoreManagementApi
|
|
15432
17673
|
*/
|
|
15433
|
-
|
|
15434
|
-
return (0, exports.
|
|
17674
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17675
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(this.axios, this.basePath));
|
|
17676
|
+
}
|
|
17677
|
+
/**
|
|
17678
|
+
* Initiates an async restore of a database backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17679
|
+
* @summary Restore a database backup to a target environment
|
|
17680
|
+
* @param {string} organisation The organisation ID
|
|
17681
|
+
* @param {string} application The application ID
|
|
17682
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17683
|
+
* @param {string} backupId The backup ID to restore from
|
|
17684
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17685
|
+
* @param {*} [options] Override http request option.
|
|
17686
|
+
* @throws {RequiredError}
|
|
17687
|
+
* @memberof RestoreManagementApi
|
|
17688
|
+
*/
|
|
17689
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17690
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17691
|
+
}
|
|
17692
|
+
/**
|
|
17693
|
+
* Initiates an async restore of a filesystem backup into the specified target environment. The backup may originate from a different environment of the same application (cross-env restore). Returns 202 with a restoreId for status polling.
|
|
17694
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17695
|
+
* @param {string} organisation The organisation ID
|
|
17696
|
+
* @param {string} application The application ID
|
|
17697
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17698
|
+
* @param {string} backupId The backup ID to restore from
|
|
17699
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17700
|
+
* @param {*} [options] Override http request option.
|
|
17701
|
+
* @throws {RequiredError}
|
|
17702
|
+
* @memberof RestoreManagementApi
|
|
17703
|
+
*/
|
|
17704
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17705
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15435
17706
|
}
|
|
15436
17707
|
}
|
|
15437
|
-
exports.
|
|
17708
|
+
exports.RestoreManagementApi = RestoreManagementApi;
|
|
15438
17709
|
/**
|
|
15439
17710
|
* RulesApi - axios parameter creator
|
|
15440
17711
|
* @export
|
|
@@ -19354,29 +21625,27 @@ exports.SSHAccessApi = SSHAccessApi;
|
|
|
19354
21625
|
const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
19355
21626
|
return {
|
|
19356
21627
|
/**
|
|
19357
|
-
*
|
|
19358
|
-
* @summary Delete
|
|
19359
|
-
* @param {string} organisation
|
|
19360
|
-
* @param {string} application
|
|
19361
|
-
* @param {string} environment
|
|
19362
|
-
* @param {
|
|
21628
|
+
* Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted.
|
|
21629
|
+
* @summary Delete Scaling Policy
|
|
21630
|
+
* @param {string} organisation
|
|
21631
|
+
* @param {string} application
|
|
21632
|
+
* @param {string} environment
|
|
21633
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21634
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19363
21635
|
* @param {*} [options] Override http request option.
|
|
19364
21636
|
* @throws {RequiredError}
|
|
19365
21637
|
*/
|
|
19366
|
-
deleteScalingPolicy: (organisation_1, application_1, environment_1, policyName_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, policyName_1, ...args_1], void 0, function* (organisation, application, environment, policyName, options = {}) {
|
|
21638
|
+
deleteScalingPolicy: (organisation_1, application_1, environment_1, metric_1, policyName_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, metric_1, policyName_1, ...args_1], void 0, function* (organisation, application, environment, metric, policyName, options = {}) {
|
|
19367
21639
|
// verify required parameter 'organisation' is not null or undefined
|
|
19368
21640
|
(0, common_1.assertParamExists)('deleteScalingPolicy', 'organisation', organisation);
|
|
19369
21641
|
// verify required parameter 'application' is not null or undefined
|
|
19370
21642
|
(0, common_1.assertParamExists)('deleteScalingPolicy', 'application', application);
|
|
19371
21643
|
// verify required parameter 'environment' is not null or undefined
|
|
19372
21644
|
(0, common_1.assertParamExists)('deleteScalingPolicy', 'environment', environment);
|
|
19373
|
-
|
|
19374
|
-
(0, common_1.assertParamExists)('deleteScalingPolicy', 'policyName', policyName);
|
|
19375
|
-
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}`
|
|
21645
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19376
21646
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19377
21647
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
19378
|
-
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
19379
|
-
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
21648
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
19380
21649
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19381
21650
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19382
21651
|
let baseOptions;
|
|
@@ -19389,6 +21658,12 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19389
21658
|
// authentication BearerAuth required
|
|
19390
21659
|
// http bearer authentication required
|
|
19391
21660
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21661
|
+
if (metric !== undefined) {
|
|
21662
|
+
localVarQueryParameter['metric'] = metric;
|
|
21663
|
+
}
|
|
21664
|
+
if (policyName !== undefined) {
|
|
21665
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21666
|
+
}
|
|
19392
21667
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19393
21668
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19394
21669
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19398,21 +21673,23 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19398
21673
|
};
|
|
19399
21674
|
}),
|
|
19400
21675
|
/**
|
|
19401
|
-
*
|
|
19402
|
-
* @summary
|
|
19403
|
-
* @param {string} organisation
|
|
19404
|
-
* @param {string} application
|
|
19405
|
-
* @param {string} environment
|
|
21676
|
+
* Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable).
|
|
21677
|
+
* @summary List Scaling Policies
|
|
21678
|
+
* @param {string} organisation
|
|
21679
|
+
* @param {string} application
|
|
21680
|
+
* @param {string} environment
|
|
21681
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21682
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19406
21683
|
* @param {*} [options] Override http request option.
|
|
19407
21684
|
* @throws {RequiredError}
|
|
19408
21685
|
*/
|
|
19409
|
-
|
|
21686
|
+
listScalingPolicies: (organisation_1, application_1, environment_1, metric_1, policyName_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, metric_1, policyName_1, ...args_1], void 0, function* (organisation, application, environment, metric, policyName, options = {}) {
|
|
19410
21687
|
// verify required parameter 'organisation' is not null or undefined
|
|
19411
|
-
(0, common_1.assertParamExists)('
|
|
21688
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'organisation', organisation);
|
|
19412
21689
|
// verify required parameter 'application' is not null or undefined
|
|
19413
|
-
(0, common_1.assertParamExists)('
|
|
21690
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'application', application);
|
|
19414
21691
|
// verify required parameter 'environment' is not null or undefined
|
|
19415
|
-
(0, common_1.assertParamExists)('
|
|
21692
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'environment', environment);
|
|
19416
21693
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19417
21694
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19418
21695
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19429,6 +21706,12 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19429
21706
|
// authentication BearerAuth required
|
|
19430
21707
|
// http bearer authentication required
|
|
19431
21708
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21709
|
+
if (metric !== undefined) {
|
|
21710
|
+
localVarQueryParameter['metric'] = metric;
|
|
21711
|
+
}
|
|
21712
|
+
if (policyName !== undefined) {
|
|
21713
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21714
|
+
}
|
|
19432
21715
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19433
21716
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19434
21717
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19438,24 +21721,25 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19438
21721
|
};
|
|
19439
21722
|
}),
|
|
19440
21723
|
/**
|
|
19441
|
-
*
|
|
19442
|
-
* @summary
|
|
19443
|
-
* @param {string} organisation
|
|
19444
|
-
* @param {string} application
|
|
19445
|
-
* @param {string} environment
|
|
19446
|
-
* @param {
|
|
21724
|
+
* Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query.
|
|
21725
|
+
* @summary Upsert Scaling Policy
|
|
21726
|
+
* @param {string} organisation
|
|
21727
|
+
* @param {string} application
|
|
21728
|
+
* @param {string} environment
|
|
21729
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21730
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19447
21731
|
* @param {*} [options] Override http request option.
|
|
19448
21732
|
* @throws {RequiredError}
|
|
19449
21733
|
*/
|
|
19450
|
-
|
|
21734
|
+
upsertScalingPolicy: (organisation_1, application_1, environment_1, setScalingPolicyRequest_1, policyName_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, setScalingPolicyRequest_1, policyName_1, ...args_1], void 0, function* (organisation, application, environment, setScalingPolicyRequest, policyName, options = {}) {
|
|
19451
21735
|
// verify required parameter 'organisation' is not null or undefined
|
|
19452
|
-
(0, common_1.assertParamExists)('
|
|
21736
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'organisation', organisation);
|
|
19453
21737
|
// verify required parameter 'application' is not null or undefined
|
|
19454
|
-
(0, common_1.assertParamExists)('
|
|
21738
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'application', application);
|
|
19455
21739
|
// verify required parameter 'environment' is not null or undefined
|
|
19456
|
-
(0, common_1.assertParamExists)('
|
|
19457
|
-
// verify required parameter '
|
|
19458
|
-
(0, common_1.assertParamExists)('
|
|
21740
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'environment', environment);
|
|
21741
|
+
// verify required parameter 'setScalingPolicyRequest' is not null or undefined
|
|
21742
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'setScalingPolicyRequest', setScalingPolicyRequest);
|
|
19459
21743
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19460
21744
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19461
21745
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19472,11 +21756,14 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19472
21756
|
// authentication BearerAuth required
|
|
19473
21757
|
// http bearer authentication required
|
|
19474
21758
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21759
|
+
if (policyName !== undefined) {
|
|
21760
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21761
|
+
}
|
|
19475
21762
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19476
21763
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19477
21764
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19478
21765
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19479
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
21766
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setScalingPolicyRequest, localVarRequestOptions, configuration);
|
|
19480
21767
|
return {
|
|
19481
21768
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19482
21769
|
options: localVarRequestOptions,
|
|
@@ -19493,58 +21780,62 @@ const ScalingPolicyApiFp = function (configuration) {
|
|
|
19493
21780
|
const localVarAxiosParamCreator = (0, exports.ScalingPolicyApiAxiosParamCreator)(configuration);
|
|
19494
21781
|
return {
|
|
19495
21782
|
/**
|
|
19496
|
-
*
|
|
19497
|
-
* @summary Delete
|
|
19498
|
-
* @param {string} organisation
|
|
19499
|
-
* @param {string} application
|
|
19500
|
-
* @param {string} environment
|
|
19501
|
-
* @param {
|
|
21783
|
+
* Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted.
|
|
21784
|
+
* @summary Delete Scaling Policy
|
|
21785
|
+
* @param {string} organisation
|
|
21786
|
+
* @param {string} application
|
|
21787
|
+
* @param {string} environment
|
|
21788
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21789
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19502
21790
|
* @param {*} [options] Override http request option.
|
|
19503
21791
|
* @throws {RequiredError}
|
|
19504
21792
|
*/
|
|
19505
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
21793
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
19506
21794
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19507
21795
|
var _a, _b, _c;
|
|
19508
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, policyName, options);
|
|
21796
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, metric, policyName, options);
|
|
19509
21797
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19510
21798
|
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScalingPolicyApi.deleteScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19511
21799
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19512
21800
|
});
|
|
19513
21801
|
},
|
|
19514
21802
|
/**
|
|
19515
|
-
*
|
|
19516
|
-
* @summary
|
|
19517
|
-
* @param {string} organisation
|
|
19518
|
-
* @param {string} application
|
|
19519
|
-
* @param {string} environment
|
|
21803
|
+
* Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable).
|
|
21804
|
+
* @summary List Scaling Policies
|
|
21805
|
+
* @param {string} organisation
|
|
21806
|
+
* @param {string} application
|
|
21807
|
+
* @param {string} environment
|
|
21808
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21809
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19520
21810
|
* @param {*} [options] Override http request option.
|
|
19521
21811
|
* @throws {RequiredError}
|
|
19522
21812
|
*/
|
|
19523
|
-
|
|
21813
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
19524
21814
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19525
21815
|
var _a, _b, _c;
|
|
19526
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21816
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listScalingPolicies(organisation, application, environment, metric, policyName, options);
|
|
19527
21817
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19528
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScalingPolicyApi.
|
|
21818
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScalingPolicyApi.listScalingPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19529
21819
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19530
21820
|
});
|
|
19531
21821
|
},
|
|
19532
21822
|
/**
|
|
19533
|
-
*
|
|
19534
|
-
* @summary
|
|
19535
|
-
* @param {string} organisation
|
|
19536
|
-
* @param {string} application
|
|
19537
|
-
* @param {string} environment
|
|
19538
|
-
* @param {
|
|
21823
|
+
* Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query.
|
|
21824
|
+
* @summary Upsert Scaling Policy
|
|
21825
|
+
* @param {string} organisation
|
|
21826
|
+
* @param {string} application
|
|
21827
|
+
* @param {string} environment
|
|
21828
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21829
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19539
21830
|
* @param {*} [options] Override http request option.
|
|
19540
21831
|
* @throws {RequiredError}
|
|
19541
21832
|
*/
|
|
19542
|
-
|
|
21833
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
19543
21834
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19544
21835
|
var _a, _b, _c;
|
|
19545
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21836
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options);
|
|
19546
21837
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19547
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScalingPolicyApi.
|
|
21838
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ScalingPolicyApi.upsertScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19548
21839
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19549
21840
|
});
|
|
19550
21841
|
},
|
|
@@ -19559,42 +21850,46 @@ const ScalingPolicyApiFactory = function (configuration, basePath, axios) {
|
|
|
19559
21850
|
const localVarFp = (0, exports.ScalingPolicyApiFp)(configuration);
|
|
19560
21851
|
return {
|
|
19561
21852
|
/**
|
|
19562
|
-
*
|
|
19563
|
-
* @summary Delete
|
|
19564
|
-
* @param {string} organisation
|
|
19565
|
-
* @param {string} application
|
|
19566
|
-
* @param {string} environment
|
|
19567
|
-
* @param {
|
|
21853
|
+
* Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted.
|
|
21854
|
+
* @summary Delete Scaling Policy
|
|
21855
|
+
* @param {string} organisation
|
|
21856
|
+
* @param {string} application
|
|
21857
|
+
* @param {string} environment
|
|
21858
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21859
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19568
21860
|
* @param {*} [options] Override http request option.
|
|
19569
21861
|
* @throws {RequiredError}
|
|
19570
21862
|
*/
|
|
19571
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
19572
|
-
return localVarFp.deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(axios, basePath));
|
|
21863
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21864
|
+
return localVarFp.deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19573
21865
|
},
|
|
19574
21866
|
/**
|
|
19575
|
-
*
|
|
19576
|
-
* @summary
|
|
19577
|
-
* @param {string} organisation
|
|
19578
|
-
* @param {string} application
|
|
19579
|
-
* @param {string} environment
|
|
21867
|
+
* Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable).
|
|
21868
|
+
* @summary List Scaling Policies
|
|
21869
|
+
* @param {string} organisation
|
|
21870
|
+
* @param {string} application
|
|
21871
|
+
* @param {string} environment
|
|
21872
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21873
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19580
21874
|
* @param {*} [options] Override http request option.
|
|
19581
21875
|
* @throws {RequiredError}
|
|
19582
21876
|
*/
|
|
19583
|
-
|
|
19584
|
-
return localVarFp.
|
|
21877
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21878
|
+
return localVarFp.listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19585
21879
|
},
|
|
19586
21880
|
/**
|
|
19587
|
-
*
|
|
19588
|
-
* @summary
|
|
19589
|
-
* @param {string} organisation
|
|
19590
|
-
* @param {string} application
|
|
19591
|
-
* @param {string} environment
|
|
19592
|
-
* @param {
|
|
21881
|
+
* Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query.
|
|
21882
|
+
* @summary Upsert Scaling Policy
|
|
21883
|
+
* @param {string} organisation
|
|
21884
|
+
* @param {string} application
|
|
21885
|
+
* @param {string} environment
|
|
21886
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21887
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19593
21888
|
* @param {*} [options] Override http request option.
|
|
19594
21889
|
* @throws {RequiredError}
|
|
19595
21890
|
*/
|
|
19596
|
-
|
|
19597
|
-
return localVarFp.
|
|
21891
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21892
|
+
return localVarFp.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(axios, basePath));
|
|
19598
21893
|
},
|
|
19599
21894
|
};
|
|
19600
21895
|
};
|
|
@@ -19607,48 +21902,182 @@ exports.ScalingPolicyApiFactory = ScalingPolicyApiFactory;
|
|
|
19607
21902
|
*/
|
|
19608
21903
|
class ScalingPolicyApi extends base_1.BaseAPI {
|
|
19609
21904
|
/**
|
|
19610
|
-
*
|
|
19611
|
-
* @summary Delete
|
|
19612
|
-
* @param {string} organisation
|
|
19613
|
-
* @param {string} application
|
|
19614
|
-
* @param {string} environment
|
|
19615
|
-
* @param {
|
|
21905
|
+
* Deletes a specific scaling policy for the environment. Specify the metric type or policy name to delete a single policy. If neither is provided, all policies will be deleted.
|
|
21906
|
+
* @summary Delete Scaling Policy
|
|
21907
|
+
* @param {string} organisation
|
|
21908
|
+
* @param {string} application
|
|
21909
|
+
* @param {string} environment
|
|
21910
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21911
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19616
21912
|
* @param {*} [options] Override http request option.
|
|
19617
21913
|
* @throws {RequiredError}
|
|
19618
21914
|
* @memberof ScalingPolicyApi
|
|
19619
21915
|
*/
|
|
19620
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
19621
|
-
return (0, exports.ScalingPolicyApiFp)(this.configuration).deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
21916
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21917
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19622
21918
|
}
|
|
19623
21919
|
/**
|
|
19624
|
-
*
|
|
19625
|
-
* @summary
|
|
19626
|
-
* @param {string} organisation
|
|
19627
|
-
* @param {string} application
|
|
19628
|
-
* @param {string} environment
|
|
21920
|
+
* Retrieves all active target tracking scaling policies for the environment. Returns an array of policies, each with its metric, target value, cooldowns, and resource label (if applicable).
|
|
21921
|
+
* @summary List Scaling Policies
|
|
21922
|
+
* @param {string} organisation
|
|
21923
|
+
* @param {string} application
|
|
21924
|
+
* @param {string} environment
|
|
21925
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21926
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19629
21927
|
* @param {*} [options] Override http request option.
|
|
19630
21928
|
* @throws {RequiredError}
|
|
19631
21929
|
* @memberof ScalingPolicyApi
|
|
19632
21930
|
*/
|
|
19633
|
-
|
|
19634
|
-
return (0, exports.ScalingPolicyApiFp)(this.configuration).
|
|
21931
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21932
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19635
21933
|
}
|
|
19636
21934
|
/**
|
|
19637
|
-
*
|
|
19638
|
-
* @summary
|
|
19639
|
-
* @param {string} organisation
|
|
19640
|
-
* @param {string} application
|
|
19641
|
-
* @param {string} environment
|
|
19642
|
-
* @param {
|
|
21935
|
+
* Creates or updates a target tracking scaling policy for the environment. Specify the metric type and target value. If a policy with the same metric or name exists, it will be updated. Optionally, provide a custom policy name via query.
|
|
21936
|
+
* @summary Upsert Scaling Policy
|
|
21937
|
+
* @param {string} organisation
|
|
21938
|
+
* @param {string} application
|
|
21939
|
+
* @param {string} environment
|
|
21940
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21941
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19643
21942
|
* @param {*} [options] Override http request option.
|
|
19644
21943
|
* @throws {RequiredError}
|
|
19645
21944
|
* @memberof ScalingPolicyApi
|
|
19646
21945
|
*/
|
|
19647
|
-
|
|
19648
|
-
return (0, exports.ScalingPolicyApiFp)(this.configuration).
|
|
21946
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21947
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19649
21948
|
}
|
|
19650
21949
|
}
|
|
19651
21950
|
exports.ScalingPolicyApi = ScalingPolicyApi;
|
|
21951
|
+
/**
|
|
21952
|
+
* @export
|
|
21953
|
+
*/
|
|
21954
|
+
exports.DeleteScalingPolicyMetricEnum = {
|
|
21955
|
+
CpuUtilization: 'CPUUtilization',
|
|
21956
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21957
|
+
Rps: 'RPS'
|
|
21958
|
+
};
|
|
21959
|
+
/**
|
|
21960
|
+
* @export
|
|
21961
|
+
*/
|
|
21962
|
+
exports.ListScalingPoliciesMetricEnum = {
|
|
21963
|
+
CpuUtilization: 'CPUUtilization',
|
|
21964
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21965
|
+
Rps: 'RPS'
|
|
21966
|
+
};
|
|
21967
|
+
/**
|
|
21968
|
+
* SubscriptionApi - axios parameter creator
|
|
21969
|
+
* @export
|
|
21970
|
+
*/
|
|
21971
|
+
const SubscriptionApiAxiosParamCreator = function (configuration) {
|
|
21972
|
+
return {
|
|
21973
|
+
/**
|
|
21974
|
+
* Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page\'s Cloud Apps card.
|
|
21975
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21976
|
+
* @param {string} organisation
|
|
21977
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21978
|
+
* @param {*} [options] Override http request option.
|
|
21979
|
+
* @throws {RequiredError}
|
|
21980
|
+
*/
|
|
21981
|
+
getSubscriptionCloudUsage: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
|
|
21982
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
21983
|
+
(0, common_1.assertParamExists)('getSubscriptionCloudUsage', 'organisation', organisation);
|
|
21984
|
+
const localVarPath = `/api/v3/organizations/{organisation}/subscription/cloud-usage`
|
|
21985
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
21986
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21987
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21988
|
+
let baseOptions;
|
|
21989
|
+
if (configuration) {
|
|
21990
|
+
baseOptions = configuration.baseOptions;
|
|
21991
|
+
}
|
|
21992
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21993
|
+
const localVarHeaderParameter = {};
|
|
21994
|
+
const localVarQueryParameter = {};
|
|
21995
|
+
// authentication BearerAuth required
|
|
21996
|
+
// http bearer authentication required
|
|
21997
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21998
|
+
if (month !== undefined) {
|
|
21999
|
+
localVarQueryParameter['month'] = month;
|
|
22000
|
+
}
|
|
22001
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
22002
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
22003
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
22004
|
+
return {
|
|
22005
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
22006
|
+
options: localVarRequestOptions,
|
|
22007
|
+
};
|
|
22008
|
+
}),
|
|
22009
|
+
};
|
|
22010
|
+
};
|
|
22011
|
+
exports.SubscriptionApiAxiosParamCreator = SubscriptionApiAxiosParamCreator;
|
|
22012
|
+
/**
|
|
22013
|
+
* SubscriptionApi - functional programming interface
|
|
22014
|
+
* @export
|
|
22015
|
+
*/
|
|
22016
|
+
const SubscriptionApiFp = function (configuration) {
|
|
22017
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionApiAxiosParamCreator)(configuration);
|
|
22018
|
+
return {
|
|
22019
|
+
/**
|
|
22020
|
+
* Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page\'s Cloud Apps card.
|
|
22021
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
22022
|
+
* @param {string} organisation
|
|
22023
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
22024
|
+
* @param {*} [options] Override http request option.
|
|
22025
|
+
* @throws {RequiredError}
|
|
22026
|
+
*/
|
|
22027
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
22028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
22029
|
+
var _a, _b, _c;
|
|
22030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionCloudUsage(organisation, month, options);
|
|
22031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
22032
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SubscriptionApi.getSubscriptionCloudUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
22033
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
22034
|
+
});
|
|
22035
|
+
},
|
|
22036
|
+
};
|
|
22037
|
+
};
|
|
22038
|
+
exports.SubscriptionApiFp = SubscriptionApiFp;
|
|
22039
|
+
/**
|
|
22040
|
+
* SubscriptionApi - factory interface
|
|
22041
|
+
* @export
|
|
22042
|
+
*/
|
|
22043
|
+
const SubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
22044
|
+
const localVarFp = (0, exports.SubscriptionApiFp)(configuration);
|
|
22045
|
+
return {
|
|
22046
|
+
/**
|
|
22047
|
+
* Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page\'s Cloud Apps card.
|
|
22048
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
22049
|
+
* @param {string} organisation
|
|
22050
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
22051
|
+
* @param {*} [options] Override http request option.
|
|
22052
|
+
* @throws {RequiredError}
|
|
22053
|
+
*/
|
|
22054
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
22055
|
+
return localVarFp.getSubscriptionCloudUsage(organisation, month, options).then((request) => request(axios, basePath));
|
|
22056
|
+
},
|
|
22057
|
+
};
|
|
22058
|
+
};
|
|
22059
|
+
exports.SubscriptionApiFactory = SubscriptionApiFactory;
|
|
22060
|
+
/**
|
|
22061
|
+
* SubscriptionApi - object-oriented interface
|
|
22062
|
+
* @export
|
|
22063
|
+
* @class SubscriptionApi
|
|
22064
|
+
* @extends {BaseAPI}
|
|
22065
|
+
*/
|
|
22066
|
+
class SubscriptionApi extends base_1.BaseAPI {
|
|
22067
|
+
/**
|
|
22068
|
+
* Per-project compute/database/storage cost breakdown with spot discount, for the requested month and the month before it. Mirrors the subscription page\'s Cloud Apps card.
|
|
22069
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
22070
|
+
* @param {string} organisation
|
|
22071
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
22072
|
+
* @param {*} [options] Override http request option.
|
|
22073
|
+
* @throws {RequiredError}
|
|
22074
|
+
* @memberof SubscriptionApi
|
|
22075
|
+
*/
|
|
22076
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
22077
|
+
return (0, exports.SubscriptionApiFp)(this.configuration).getSubscriptionCloudUsage(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
22078
|
+
}
|
|
22079
|
+
}
|
|
22080
|
+
exports.SubscriptionApi = SubscriptionApi;
|
|
19652
22081
|
/**
|
|
19653
22082
|
* TokensApi - axios parameter creator
|
|
19654
22083
|
* @export
|