@quantcdn/quant-client 4.15.4 → 4.19.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 +3589 -395
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +2465 -407
- package/dist/api.js +2434 -346
- 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 +2465 -407
- package/dist/esm/api.js +2414 -339
- 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.19.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.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = 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.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = void 0;
|
|
27
|
+
exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = 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 = void 0;
|
|
28
|
+
exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.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 = void 0;
|
|
29
|
+
exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.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.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 = 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 = 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'
|
|
@@ -315,7 +335,7 @@ exports.QueryVectorCollectionRequestSortOrderEnum = {
|
|
|
315
335
|
Asc: 'asc',
|
|
316
336
|
Desc: 'desc'
|
|
317
337
|
};
|
|
318
|
-
exports.
|
|
338
|
+
exports.SetScalingPolicyRequestMetricEnum = {
|
|
319
339
|
CpuUtilization: 'CPUUtilization',
|
|
320
340
|
MemoryUtilization: 'MemoryUtilization',
|
|
321
341
|
Rps: 'RPS'
|
|
@@ -404,6 +424,162 @@ exports.WafConfigThresholdsInnerModeEnum = {
|
|
|
404
424
|
Report: 'report',
|
|
405
425
|
Block: 'block'
|
|
406
426
|
};
|
|
427
|
+
/**
|
|
428
|
+
* AIApi - axios parameter creator
|
|
429
|
+
* @export
|
|
430
|
+
*/
|
|
431
|
+
const AIApiAxiosParamCreator = function (configuration) {
|
|
432
|
+
return {
|
|
433
|
+
/**
|
|
434
|
+
* 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.
|
|
435
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
436
|
+
* @param {string} organisation
|
|
437
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
438
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
439
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
440
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
441
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
442
|
+
* @param {*} [options] Override http request option.
|
|
443
|
+
* @throws {RequiredError}
|
|
444
|
+
*/
|
|
445
|
+
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 = {}) {
|
|
446
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
447
|
+
(0, common_1.assertParamExists)('getAIUsageStats', 'organisation', organisation);
|
|
448
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
|
|
449
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
452
|
+
let baseOptions;
|
|
453
|
+
if (configuration) {
|
|
454
|
+
baseOptions = configuration.baseOptions;
|
|
455
|
+
}
|
|
456
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
457
|
+
const localVarHeaderParameter = {};
|
|
458
|
+
const localVarQueryParameter = {};
|
|
459
|
+
// authentication BearerAuth required
|
|
460
|
+
// http bearer authentication required
|
|
461
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
462
|
+
if (month !== undefined) {
|
|
463
|
+
localVarQueryParameter['month'] = month;
|
|
464
|
+
}
|
|
465
|
+
if (groupBy !== undefined) {
|
|
466
|
+
localVarQueryParameter['groupBy'] = groupBy;
|
|
467
|
+
}
|
|
468
|
+
if (include !== undefined) {
|
|
469
|
+
localVarQueryParameter['include'] = include;
|
|
470
|
+
}
|
|
471
|
+
if (userId !== undefined) {
|
|
472
|
+
localVarQueryParameter['userId'] = userId;
|
|
473
|
+
}
|
|
474
|
+
if (tokenId !== undefined) {
|
|
475
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
476
|
+
}
|
|
477
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
478
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
479
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
480
|
+
return {
|
|
481
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
482
|
+
options: localVarRequestOptions,
|
|
483
|
+
};
|
|
484
|
+
}),
|
|
485
|
+
};
|
|
486
|
+
};
|
|
487
|
+
exports.AIApiAxiosParamCreator = AIApiAxiosParamCreator;
|
|
488
|
+
/**
|
|
489
|
+
* AIApi - functional programming interface
|
|
490
|
+
* @export
|
|
491
|
+
*/
|
|
492
|
+
const AIApiFp = function (configuration) {
|
|
493
|
+
const localVarAxiosParamCreator = (0, exports.AIApiAxiosParamCreator)(configuration);
|
|
494
|
+
return {
|
|
495
|
+
/**
|
|
496
|
+
* 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.
|
|
497
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
498
|
+
* @param {string} organisation
|
|
499
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
500
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
501
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
502
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
503
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
504
|
+
* @param {*} [options] Override http request option.
|
|
505
|
+
* @throws {RequiredError}
|
|
506
|
+
*/
|
|
507
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
508
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
509
|
+
var _a, _b, _c;
|
|
510
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options);
|
|
511
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
512
|
+
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;
|
|
513
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
514
|
+
});
|
|
515
|
+
},
|
|
516
|
+
};
|
|
517
|
+
};
|
|
518
|
+
exports.AIApiFp = AIApiFp;
|
|
519
|
+
/**
|
|
520
|
+
* AIApi - factory interface
|
|
521
|
+
* @export
|
|
522
|
+
*/
|
|
523
|
+
const AIApiFactory = function (configuration, basePath, axios) {
|
|
524
|
+
const localVarFp = (0, exports.AIApiFp)(configuration);
|
|
525
|
+
return {
|
|
526
|
+
/**
|
|
527
|
+
* 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.
|
|
528
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
529
|
+
* @param {string} organisation
|
|
530
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
531
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
532
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
533
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
534
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
535
|
+
* @param {*} [options] Override http request option.
|
|
536
|
+
* @throws {RequiredError}
|
|
537
|
+
*/
|
|
538
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
539
|
+
return localVarFp.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(axios, basePath));
|
|
540
|
+
},
|
|
541
|
+
};
|
|
542
|
+
};
|
|
543
|
+
exports.AIApiFactory = AIApiFactory;
|
|
544
|
+
/**
|
|
545
|
+
* AIApi - object-oriented interface
|
|
546
|
+
* @export
|
|
547
|
+
* @class AIApi
|
|
548
|
+
* @extends {BaseAPI}
|
|
549
|
+
*/
|
|
550
|
+
class AIApi extends base_1.BaseAPI {
|
|
551
|
+
/**
|
|
552
|
+
* 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.
|
|
553
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
554
|
+
* @param {string} organisation
|
|
555
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
556
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
557
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
558
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
559
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
560
|
+
* @param {*} [options] Override http request option.
|
|
561
|
+
* @throws {RequiredError}
|
|
562
|
+
* @memberof AIApi
|
|
563
|
+
*/
|
|
564
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
565
|
+
return (0, exports.AIApiFp)(this.configuration).getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(this.axios, this.basePath));
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
exports.AIApi = AIApi;
|
|
569
|
+
/**
|
|
570
|
+
* @export
|
|
571
|
+
*/
|
|
572
|
+
exports.GetAIUsageStatsGroupByEnum = {
|
|
573
|
+
Model: 'model',
|
|
574
|
+
User: 'user',
|
|
575
|
+
Token: 'token'
|
|
576
|
+
};
|
|
577
|
+
/**
|
|
578
|
+
* @export
|
|
579
|
+
*/
|
|
580
|
+
exports.GetAIUsageStatsIncludeEnum = {
|
|
581
|
+
Daily: 'daily'
|
|
582
|
+
};
|
|
407
583
|
/**
|
|
408
584
|
* AIAgentsApi - axios parameter creator
|
|
409
585
|
* @export
|
|
@@ -1158,7 +1334,7 @@ exports.AIAgentsApi = AIAgentsApi;
|
|
|
1158
1334
|
const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
1159
1335
|
return {
|
|
1160
1336
|
/**
|
|
1161
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1337
|
+
* 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
1338
|
* @summary Register Custom Edge Function Tool
|
|
1163
1339
|
* @param {string} organisation The organisation ID
|
|
1164
1340
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1195,7 +1371,7 @@ const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1195
1371
|
};
|
|
1196
1372
|
}),
|
|
1197
1373
|
/**
|
|
1198
|
-
* Deletes a custom tool registration
|
|
1374
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1199
1375
|
* @summary Delete Custom Tool
|
|
1200
1376
|
* @param {string} organisation The organisation ID
|
|
1201
1377
|
* @param {string} toolName The tool name to delete
|
|
@@ -1230,6 +1406,42 @@ const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1230
1406
|
options: localVarRequestOptions,
|
|
1231
1407
|
};
|
|
1232
1408
|
}),
|
|
1409
|
+
/**
|
|
1410
|
+
* Retrieves a single registered custom tool by name.
|
|
1411
|
+
* @summary Get Custom Tool
|
|
1412
|
+
* @param {string} organisation The organisation ID
|
|
1413
|
+
* @param {string} toolName The tool name to retrieve
|
|
1414
|
+
* @param {*} [options] Override http request option.
|
|
1415
|
+
* @throws {RequiredError}
|
|
1416
|
+
*/
|
|
1417
|
+
getCustomTool: (organisation_1, toolName_1, ...args_1) => __awaiter(this, [organisation_1, toolName_1, ...args_1], void 0, function* (organisation, toolName, options = {}) {
|
|
1418
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
1419
|
+
(0, common_1.assertParamExists)('getCustomTool', 'organisation', organisation);
|
|
1420
|
+
// verify required parameter 'toolName' is not null or undefined
|
|
1421
|
+
(0, common_1.assertParamExists)('getCustomTool', 'toolName', toolName);
|
|
1422
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/custom-tools/{toolName}`
|
|
1423
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
1424
|
+
.replace(`{${"toolName"}}`, encodeURIComponent(String(toolName)));
|
|
1425
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1426
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
1427
|
+
let baseOptions;
|
|
1428
|
+
if (configuration) {
|
|
1429
|
+
baseOptions = configuration.baseOptions;
|
|
1430
|
+
}
|
|
1431
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1432
|
+
const localVarHeaderParameter = {};
|
|
1433
|
+
const localVarQueryParameter = {};
|
|
1434
|
+
// authentication BearerAuth required
|
|
1435
|
+
// http bearer authentication required
|
|
1436
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
1437
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
1438
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1439
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1440
|
+
return {
|
|
1441
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
1442
|
+
options: localVarRequestOptions,
|
|
1443
|
+
};
|
|
1444
|
+
}),
|
|
1233
1445
|
/**
|
|
1234
1446
|
* Lists all registered custom edge function tools for an organization.
|
|
1235
1447
|
* @summary List Custom Tools
|
|
@@ -1273,7 +1485,7 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1273
1485
|
const localVarAxiosParamCreator = (0, exports.AICustomToolsApiAxiosParamCreator)(configuration);
|
|
1274
1486
|
return {
|
|
1275
1487
|
/**
|
|
1276
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1488
|
+
* 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
1489
|
* @summary Register Custom Edge Function Tool
|
|
1278
1490
|
* @param {string} organisation The organisation ID
|
|
1279
1491
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1290,7 +1502,7 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1290
1502
|
});
|
|
1291
1503
|
},
|
|
1292
1504
|
/**
|
|
1293
|
-
* Deletes a custom tool registration
|
|
1505
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1294
1506
|
* @summary Delete Custom Tool
|
|
1295
1507
|
* @param {string} organisation The organisation ID
|
|
1296
1508
|
* @param {string} toolName The tool name to delete
|
|
@@ -1306,6 +1518,23 @@ const AICustomToolsApiFp = function (configuration) {
|
|
|
1306
1518
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1307
1519
|
});
|
|
1308
1520
|
},
|
|
1521
|
+
/**
|
|
1522
|
+
* Retrieves a single registered custom tool by name.
|
|
1523
|
+
* @summary Get Custom Tool
|
|
1524
|
+
* @param {string} organisation The organisation ID
|
|
1525
|
+
* @param {string} toolName The tool name to retrieve
|
|
1526
|
+
* @param {*} [options] Override http request option.
|
|
1527
|
+
* @throws {RequiredError}
|
|
1528
|
+
*/
|
|
1529
|
+
getCustomTool(organisation, toolName, options) {
|
|
1530
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1531
|
+
var _a, _b, _c;
|
|
1532
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomTool(organisation, toolName, options);
|
|
1533
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1534
|
+
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;
|
|
1535
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1536
|
+
});
|
|
1537
|
+
},
|
|
1309
1538
|
/**
|
|
1310
1539
|
* Lists all registered custom edge function tools for an organization.
|
|
1311
1540
|
* @summary List Custom Tools
|
|
@@ -1333,7 +1562,7 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1333
1562
|
const localVarFp = (0, exports.AICustomToolsApiFp)(configuration);
|
|
1334
1563
|
return {
|
|
1335
1564
|
/**
|
|
1336
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1565
|
+
* 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
1566
|
* @summary Register Custom Edge Function Tool
|
|
1338
1567
|
* @param {string} organisation The organisation ID
|
|
1339
1568
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1344,7 +1573,7 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1344
1573
|
return localVarFp.createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(axios, basePath));
|
|
1345
1574
|
},
|
|
1346
1575
|
/**
|
|
1347
|
-
* Deletes a custom tool registration
|
|
1576
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1348
1577
|
* @summary Delete Custom Tool
|
|
1349
1578
|
* @param {string} organisation The organisation ID
|
|
1350
1579
|
* @param {string} toolName The tool name to delete
|
|
@@ -1354,6 +1583,17 @@ const AICustomToolsApiFactory = function (configuration, basePath, axios) {
|
|
|
1354
1583
|
deleteCustomTool(organisation, toolName, options) {
|
|
1355
1584
|
return localVarFp.deleteCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1356
1585
|
},
|
|
1586
|
+
/**
|
|
1587
|
+
* Retrieves a single registered custom tool by name.
|
|
1588
|
+
* @summary Get Custom Tool
|
|
1589
|
+
* @param {string} organisation The organisation ID
|
|
1590
|
+
* @param {string} toolName The tool name to retrieve
|
|
1591
|
+
* @param {*} [options] Override http request option.
|
|
1592
|
+
* @throws {RequiredError}
|
|
1593
|
+
*/
|
|
1594
|
+
getCustomTool(organisation, toolName, options) {
|
|
1595
|
+
return localVarFp.getCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1596
|
+
},
|
|
1357
1597
|
/**
|
|
1358
1598
|
* Lists all registered custom edge function tools for an organization.
|
|
1359
1599
|
* @summary List Custom Tools
|
|
@@ -1375,7 +1615,7 @@ exports.AICustomToolsApiFactory = AICustomToolsApiFactory;
|
|
|
1375
1615
|
*/
|
|
1376
1616
|
class AICustomToolsApi extends base_1.BaseAPI {
|
|
1377
1617
|
/**
|
|
1378
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1618
|
+
* 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
1619
|
* @summary Register Custom Edge Function Tool
|
|
1380
1620
|
* @param {string} organisation The organisation ID
|
|
1381
1621
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1387,7 +1627,7 @@ class AICustomToolsApi extends base_1.BaseAPI {
|
|
|
1387
1627
|
return (0, exports.AICustomToolsApiFp)(this.configuration).createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1388
1628
|
}
|
|
1389
1629
|
/**
|
|
1390
|
-
* Deletes a custom tool registration
|
|
1630
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1391
1631
|
* @summary Delete Custom Tool
|
|
1392
1632
|
* @param {string} organisation The organisation ID
|
|
1393
1633
|
* @param {string} toolName The tool name to delete
|
|
@@ -1398,6 +1638,18 @@ class AICustomToolsApi extends base_1.BaseAPI {
|
|
|
1398
1638
|
deleteCustomTool(organisation, toolName, options) {
|
|
1399
1639
|
return (0, exports.AICustomToolsApiFp)(this.configuration).deleteCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1400
1640
|
}
|
|
1641
|
+
/**
|
|
1642
|
+
* Retrieves a single registered custom tool by name.
|
|
1643
|
+
* @summary Get Custom Tool
|
|
1644
|
+
* @param {string} organisation The organisation ID
|
|
1645
|
+
* @param {string} toolName The tool name to retrieve
|
|
1646
|
+
* @param {*} [options] Override http request option.
|
|
1647
|
+
* @throws {RequiredError}
|
|
1648
|
+
* @memberof AICustomToolsApi
|
|
1649
|
+
*/
|
|
1650
|
+
getCustomTool(organisation, toolName, options) {
|
|
1651
|
+
return (0, exports.AICustomToolsApiFp)(this.configuration).getCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1652
|
+
}
|
|
1401
1653
|
/**
|
|
1402
1654
|
* Lists all registered custom edge function tools for an organization.
|
|
1403
1655
|
* @summary List Custom Tools
|
|
@@ -3292,120 +3544,6 @@ exports.ListAIModelsFeatureEnum = {
|
|
|
3292
3544
|
Streaming: 'streaming',
|
|
3293
3545
|
All: 'all'
|
|
3294
3546
|
};
|
|
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
3547
|
/**
|
|
3410
3548
|
* AIOrchestrationsApi - axios parameter creator
|
|
3411
3549
|
* @export
|
|
@@ -4086,88 +4224,1556 @@ class AIOrchestrationsApi extends base_1.BaseAPI {
|
|
|
4086
4224
|
* @param {string} orchestrationId Orchestration identifier
|
|
4087
4225
|
* @param {*} [options] Override http request option.
|
|
4088
4226
|
* @throws {RequiredError}
|
|
4089
|
-
* @memberof AIOrchestrationsApi
|
|
4227
|
+
* @memberof AIOrchestrationsApi
|
|
4228
|
+
*/
|
|
4229
|
+
getOrchestration(organisation, orchestrationId, options) {
|
|
4230
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).getOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
4231
|
+
}
|
|
4232
|
+
/**
|
|
4233
|
+
* Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts.
|
|
4234
|
+
* @summary List Orchestration Batches
|
|
4235
|
+
* @param {string} organisation The organisation machine name
|
|
4236
|
+
* @param {string} orchestrationId Orchestration identifier
|
|
4237
|
+
* @param {number} [limit] Maximum number of batches to return
|
|
4238
|
+
* @param {string} [cursor] Pagination cursor from previous response
|
|
4239
|
+
* @param {*} [options] Override http request option.
|
|
4240
|
+
* @throws {RequiredError}
|
|
4241
|
+
* @memberof AIOrchestrationsApi
|
|
4242
|
+
*/
|
|
4243
|
+
listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options) {
|
|
4244
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
4245
|
+
}
|
|
4246
|
+
/**
|
|
4247
|
+
* List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor
|
|
4248
|
+
* @summary List Durable Orchestrations
|
|
4249
|
+
* @param {string} organisation The organisation machine name
|
|
4250
|
+
* @param {ListOrchestrationsStatusEnum} [status] Filter by orchestration status
|
|
4251
|
+
* @param {number} [limit] Maximum number of results
|
|
4252
|
+
* @param {string} [cursor] Pagination cursor from previous response
|
|
4253
|
+
* @param {*} [options] Override http request option.
|
|
4254
|
+
* @throws {RequiredError}
|
|
4255
|
+
* @memberof AIOrchestrationsApi
|
|
4256
|
+
*/
|
|
4257
|
+
listOrchestrations(organisation, status, limit, cursor, options) {
|
|
4258
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).listOrchestrations(organisation, status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
4259
|
+
}
|
|
4260
|
+
/**
|
|
4261
|
+
* Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later.
|
|
4262
|
+
* @summary Pause Durable Orchestration
|
|
4263
|
+
* @param {string} organisation The organisation machine name
|
|
4264
|
+
* @param {string} orchestrationId Orchestration identifier
|
|
4265
|
+
* @param {*} [options] Override http request option.
|
|
4266
|
+
* @throws {RequiredError}
|
|
4267
|
+
* @memberof AIOrchestrationsApi
|
|
4268
|
+
*/
|
|
4269
|
+
pauseOrchestration(organisation, orchestrationId, options) {
|
|
4270
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).pauseOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
4271
|
+
}
|
|
4272
|
+
/**
|
|
4273
|
+
* Resume a paused orchestration. Processing continues from where it left off.
|
|
4274
|
+
* @summary Resume Durable Orchestration
|
|
4275
|
+
* @param {string} organisation The organisation machine name
|
|
4276
|
+
* @param {string} orchestrationId Orchestration identifier
|
|
4277
|
+
* @param {*} [options] Override http request option.
|
|
4278
|
+
* @throws {RequiredError}
|
|
4279
|
+
* @memberof AIOrchestrationsApi
|
|
4280
|
+
*/
|
|
4281
|
+
resumeOrchestration(organisation, orchestrationId, options) {
|
|
4282
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).resumeOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
4283
|
+
}
|
|
4284
|
+
/**
|
|
4285
|
+
* Start a pending orchestration. Only works on orchestrations created with `autoStart: false`.
|
|
4286
|
+
* @summary Start Durable Orchestration
|
|
4287
|
+
* @param {string} organisation The organisation machine name
|
|
4288
|
+
* @param {string} orchestrationId Orchestration identifier
|
|
4289
|
+
* @param {*} [options] Override http request option.
|
|
4290
|
+
* @throws {RequiredError}
|
|
4291
|
+
* @memberof AIOrchestrationsApi
|
|
4292
|
+
*/
|
|
4293
|
+
startOrchestration(organisation, orchestrationId, options) {
|
|
4294
|
+
return (0, exports.AIOrchestrationsApiFp)(this.configuration).startOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
|
|
4295
|
+
}
|
|
4296
|
+
}
|
|
4297
|
+
exports.AIOrchestrationsApi = AIOrchestrationsApi;
|
|
4298
|
+
/**
|
|
4299
|
+
* @export
|
|
4300
|
+
*/
|
|
4301
|
+
exports.ListOrchestrationsStatusEnum = {
|
|
4302
|
+
Pending: 'pending',
|
|
4303
|
+
Running: 'running',
|
|
4304
|
+
Paused: 'paused',
|
|
4305
|
+
Completed: 'completed',
|
|
4306
|
+
Failed: 'failed',
|
|
4307
|
+
Cancelled: 'cancelled'
|
|
4308
|
+
};
|
|
4309
|
+
/**
|
|
4310
|
+
* AISearchApi - axios parameter creator
|
|
4311
|
+
* @export
|
|
4312
|
+
*/
|
|
4313
|
+
const AISearchApiAxiosParamCreator = function (configuration) {
|
|
4314
|
+
return {
|
|
4315
|
+
/**
|
|
4316
|
+
*
|
|
4317
|
+
* @summary RAG chat with AI Search content
|
|
4318
|
+
* @param {string} organisation
|
|
4319
|
+
* @param {string} project
|
|
4320
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
4321
|
+
* @param {*} [options] Override http request option.
|
|
4322
|
+
* @throws {RequiredError}
|
|
4323
|
+
*/
|
|
4324
|
+
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 = {}) {
|
|
4325
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4326
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'organisation', organisation);
|
|
4327
|
+
// verify required parameter 'project' is not null or undefined
|
|
4328
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'project', project);
|
|
4329
|
+
// verify required parameter 'aiSearchChatRequest' is not null or undefined
|
|
4330
|
+
(0, common_1.assertParamExists)('aiSearchChat', 'aiSearchChatRequest', aiSearchChatRequest);
|
|
4331
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat`
|
|
4332
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4333
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4334
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4335
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4336
|
+
let baseOptions;
|
|
4337
|
+
if (configuration) {
|
|
4338
|
+
baseOptions = configuration.baseOptions;
|
|
4339
|
+
}
|
|
4340
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4341
|
+
const localVarHeaderParameter = {};
|
|
4342
|
+
const localVarQueryParameter = {};
|
|
4343
|
+
// authentication BearerAuth required
|
|
4344
|
+
// http bearer authentication required
|
|
4345
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4346
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4347
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4350
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchChatRequest, localVarRequestOptions, configuration);
|
|
4351
|
+
return {
|
|
4352
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4353
|
+
options: localVarRequestOptions,
|
|
4354
|
+
};
|
|
4355
|
+
}),
|
|
4356
|
+
/**
|
|
4357
|
+
*
|
|
4358
|
+
* @summary Delete pages by URLs or patterns
|
|
4359
|
+
* @param {string} organisation
|
|
4360
|
+
* @param {string} project
|
|
4361
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
4362
|
+
* @param {*} [options] Override http request option.
|
|
4363
|
+
* @throws {RequiredError}
|
|
4364
|
+
*/
|
|
4365
|
+
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 = {}) {
|
|
4366
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4367
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'organisation', organisation);
|
|
4368
|
+
// verify required parameter 'project' is not null or undefined
|
|
4369
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'project', project);
|
|
4370
|
+
// verify required parameter 'aiSearchDeletePagesRequest' is not null or undefined
|
|
4371
|
+
(0, common_1.assertParamExists)('aiSearchDeletePages', 'aiSearchDeletePagesRequest', aiSearchDeletePagesRequest);
|
|
4372
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4373
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4374
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4375
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4376
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4377
|
+
let baseOptions;
|
|
4378
|
+
if (configuration) {
|
|
4379
|
+
baseOptions = configuration.baseOptions;
|
|
4380
|
+
}
|
|
4381
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4382
|
+
const localVarHeaderParameter = {};
|
|
4383
|
+
const localVarQueryParameter = {};
|
|
4384
|
+
// authentication BearerAuth required
|
|
4385
|
+
// http bearer authentication required
|
|
4386
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4387
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4388
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4389
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4390
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4391
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchDeletePagesRequest, localVarRequestOptions, configuration);
|
|
4392
|
+
return {
|
|
4393
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4394
|
+
options: localVarRequestOptions,
|
|
4395
|
+
};
|
|
4396
|
+
}),
|
|
4397
|
+
/**
|
|
4398
|
+
*
|
|
4399
|
+
* @summary Disable AI Search for a project
|
|
4400
|
+
* @param {string} organisation
|
|
4401
|
+
* @param {string} project
|
|
4402
|
+
* @param {*} [options] Override http request option.
|
|
4403
|
+
* @throws {RequiredError}
|
|
4404
|
+
*/
|
|
4405
|
+
aiSearchDisable: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4406
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4407
|
+
(0, common_1.assertParamExists)('aiSearchDisable', 'organisation', organisation);
|
|
4408
|
+
// verify required parameter 'project' is not null or undefined
|
|
4409
|
+
(0, common_1.assertParamExists)('aiSearchDisable', 'project', project);
|
|
4410
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable`
|
|
4411
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4412
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4413
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4414
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4415
|
+
let baseOptions;
|
|
4416
|
+
if (configuration) {
|
|
4417
|
+
baseOptions = configuration.baseOptions;
|
|
4418
|
+
}
|
|
4419
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4420
|
+
const localVarHeaderParameter = {};
|
|
4421
|
+
const localVarQueryParameter = {};
|
|
4422
|
+
// authentication BearerAuth required
|
|
4423
|
+
// http bearer authentication required
|
|
4424
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4425
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4426
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4427
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4428
|
+
return {
|
|
4429
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4430
|
+
options: localVarRequestOptions,
|
|
4431
|
+
};
|
|
4432
|
+
}),
|
|
4433
|
+
/**
|
|
4434
|
+
*
|
|
4435
|
+
* @summary Enable AI Search for a project
|
|
4436
|
+
* @param {string} organisation
|
|
4437
|
+
* @param {string} project
|
|
4438
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
4439
|
+
* @param {*} [options] Override http request option.
|
|
4440
|
+
* @throws {RequiredError}
|
|
4441
|
+
*/
|
|
4442
|
+
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 = {}) {
|
|
4443
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4444
|
+
(0, common_1.assertParamExists)('aiSearchEnable', 'organisation', organisation);
|
|
4445
|
+
// verify required parameter 'project' is not null or undefined
|
|
4446
|
+
(0, common_1.assertParamExists)('aiSearchEnable', 'project', project);
|
|
4447
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable`
|
|
4448
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4449
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4450
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4451
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4452
|
+
let baseOptions;
|
|
4453
|
+
if (configuration) {
|
|
4454
|
+
baseOptions = configuration.baseOptions;
|
|
4455
|
+
}
|
|
4456
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4457
|
+
const localVarHeaderParameter = {};
|
|
4458
|
+
const localVarQueryParameter = {};
|
|
4459
|
+
// authentication BearerAuth required
|
|
4460
|
+
// http bearer authentication required
|
|
4461
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4462
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4463
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4464
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4465
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4466
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchEnableRequest, localVarRequestOptions, configuration);
|
|
4467
|
+
return {
|
|
4468
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4469
|
+
options: localVarRequestOptions,
|
|
4470
|
+
};
|
|
4471
|
+
}),
|
|
4472
|
+
/**
|
|
4473
|
+
*
|
|
4474
|
+
* @summary Get AI Search ingest job status
|
|
4475
|
+
* @param {string} organisation
|
|
4476
|
+
* @param {string} project
|
|
4477
|
+
* @param {string} jobId
|
|
4478
|
+
* @param {*} [options] Override http request option.
|
|
4479
|
+
* @throws {RequiredError}
|
|
4480
|
+
*/
|
|
4481
|
+
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 = {}) {
|
|
4482
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4483
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'organisation', organisation);
|
|
4484
|
+
// verify required parameter 'project' is not null or undefined
|
|
4485
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'project', project);
|
|
4486
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4487
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawl', 'jobId', jobId);
|
|
4488
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}`
|
|
4489
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4490
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4491
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4492
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4493
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4494
|
+
let baseOptions;
|
|
4495
|
+
if (configuration) {
|
|
4496
|
+
baseOptions = configuration.baseOptions;
|
|
4497
|
+
}
|
|
4498
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4499
|
+
const localVarHeaderParameter = {};
|
|
4500
|
+
const localVarQueryParameter = {};
|
|
4501
|
+
// authentication BearerAuth required
|
|
4502
|
+
// http bearer authentication required
|
|
4503
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4504
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4505
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4506
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4507
|
+
return {
|
|
4508
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4509
|
+
options: localVarRequestOptions,
|
|
4510
|
+
};
|
|
4511
|
+
}),
|
|
4512
|
+
/**
|
|
4513
|
+
*
|
|
4514
|
+
* @summary Get per-page ingest results for a crawl job
|
|
4515
|
+
* @param {string} organisation
|
|
4516
|
+
* @param {string} project
|
|
4517
|
+
* @param {string} jobId
|
|
4518
|
+
* @param {number} [limit]
|
|
4519
|
+
* @param {number} [statusCode]
|
|
4520
|
+
* @param {string} [processingStatus]
|
|
4521
|
+
* @param {*} [options] Override http request option.
|
|
4522
|
+
* @throws {RequiredError}
|
|
4523
|
+
*/
|
|
4524
|
+
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 = {}) {
|
|
4525
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4526
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'organisation', organisation);
|
|
4527
|
+
// verify required parameter 'project' is not null or undefined
|
|
4528
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'project', project);
|
|
4529
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4530
|
+
(0, common_1.assertParamExists)('aiSearchGetCrawlPages', 'jobId', jobId);
|
|
4531
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages`
|
|
4532
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4533
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4534
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4535
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4536
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4537
|
+
let baseOptions;
|
|
4538
|
+
if (configuration) {
|
|
4539
|
+
baseOptions = configuration.baseOptions;
|
|
4540
|
+
}
|
|
4541
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4542
|
+
const localVarHeaderParameter = {};
|
|
4543
|
+
const localVarQueryParameter = {};
|
|
4544
|
+
// authentication BearerAuth required
|
|
4545
|
+
// http bearer authentication required
|
|
4546
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4547
|
+
if (limit !== undefined) {
|
|
4548
|
+
localVarQueryParameter['limit'] = limit;
|
|
4549
|
+
}
|
|
4550
|
+
if (statusCode !== undefined) {
|
|
4551
|
+
localVarQueryParameter['statusCode'] = statusCode;
|
|
4552
|
+
}
|
|
4553
|
+
if (processingStatus !== undefined) {
|
|
4554
|
+
localVarQueryParameter['processingStatus'] = processingStatus;
|
|
4555
|
+
}
|
|
4556
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4557
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4558
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4559
|
+
return {
|
|
4560
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4561
|
+
options: localVarRequestOptions,
|
|
4562
|
+
};
|
|
4563
|
+
}),
|
|
4564
|
+
/**
|
|
4565
|
+
*
|
|
4566
|
+
* @summary Get AI Search public access and rate limit settings
|
|
4567
|
+
* @param {string} organisation
|
|
4568
|
+
* @param {string} project
|
|
4569
|
+
* @param {*} [options] Override http request option.
|
|
4570
|
+
* @throws {RequiredError}
|
|
4571
|
+
*/
|
|
4572
|
+
aiSearchGetSettings: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4573
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4574
|
+
(0, common_1.assertParamExists)('aiSearchGetSettings', 'organisation', organisation);
|
|
4575
|
+
// verify required parameter 'project' is not null or undefined
|
|
4576
|
+
(0, common_1.assertParamExists)('aiSearchGetSettings', 'project', project);
|
|
4577
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4578
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4579
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4580
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4581
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4582
|
+
let baseOptions;
|
|
4583
|
+
if (configuration) {
|
|
4584
|
+
baseOptions = configuration.baseOptions;
|
|
4585
|
+
}
|
|
4586
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4587
|
+
const localVarHeaderParameter = {};
|
|
4588
|
+
const localVarQueryParameter = {};
|
|
4589
|
+
// authentication BearerAuth required
|
|
4590
|
+
// http bearer authentication required
|
|
4591
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4592
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4593
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4594
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4595
|
+
return {
|
|
4596
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4597
|
+
options: localVarRequestOptions,
|
|
4598
|
+
};
|
|
4599
|
+
}),
|
|
4600
|
+
/**
|
|
4601
|
+
*
|
|
4602
|
+
* @summary Ingest pages into the AI Search index
|
|
4603
|
+
* @param {string} organisation
|
|
4604
|
+
* @param {string} project
|
|
4605
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
4606
|
+
* @param {*} [options] Override http request option.
|
|
4607
|
+
* @throws {RequiredError}
|
|
4608
|
+
*/
|
|
4609
|
+
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 = {}) {
|
|
4610
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4611
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'organisation', organisation);
|
|
4612
|
+
// verify required parameter 'project' is not null or undefined
|
|
4613
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'project', project);
|
|
4614
|
+
// verify required parameter 'aiSearchIngestPagesRequest' is not null or undefined
|
|
4615
|
+
(0, common_1.assertParamExists)('aiSearchIngestPages', 'aiSearchIngestPagesRequest', aiSearchIngestPagesRequest);
|
|
4616
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4617
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4618
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4619
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4620
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4621
|
+
let baseOptions;
|
|
4622
|
+
if (configuration) {
|
|
4623
|
+
baseOptions = configuration.baseOptions;
|
|
4624
|
+
}
|
|
4625
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4626
|
+
const localVarHeaderParameter = {};
|
|
4627
|
+
const localVarQueryParameter = {};
|
|
4628
|
+
// authentication BearerAuth required
|
|
4629
|
+
// http bearer authentication required
|
|
4630
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4631
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4632
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4633
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4634
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4635
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchIngestPagesRequest, localVarRequestOptions, configuration);
|
|
4636
|
+
return {
|
|
4637
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4638
|
+
options: localVarRequestOptions,
|
|
4639
|
+
};
|
|
4640
|
+
}),
|
|
4641
|
+
/**
|
|
4642
|
+
*
|
|
4643
|
+
* @summary List AI Search ingest jobs
|
|
4644
|
+
* @param {string} organisation
|
|
4645
|
+
* @param {string} project
|
|
4646
|
+
* @param {number} [limit]
|
|
4647
|
+
* @param {*} [options] Override http request option.
|
|
4648
|
+
* @throws {RequiredError}
|
|
4649
|
+
*/
|
|
4650
|
+
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 = {}) {
|
|
4651
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4652
|
+
(0, common_1.assertParamExists)('aiSearchListCrawls', 'organisation', organisation);
|
|
4653
|
+
// verify required parameter 'project' is not null or undefined
|
|
4654
|
+
(0, common_1.assertParamExists)('aiSearchListCrawls', 'project', project);
|
|
4655
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4656
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4657
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4658
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4659
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4660
|
+
let baseOptions;
|
|
4661
|
+
if (configuration) {
|
|
4662
|
+
baseOptions = configuration.baseOptions;
|
|
4663
|
+
}
|
|
4664
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4665
|
+
const localVarHeaderParameter = {};
|
|
4666
|
+
const localVarQueryParameter = {};
|
|
4667
|
+
// authentication BearerAuth required
|
|
4668
|
+
// http bearer authentication required
|
|
4669
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4670
|
+
if (limit !== undefined) {
|
|
4671
|
+
localVarQueryParameter['limit'] = limit;
|
|
4672
|
+
}
|
|
4673
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4674
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4675
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4676
|
+
return {
|
|
4677
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4678
|
+
options: localVarRequestOptions,
|
|
4679
|
+
};
|
|
4680
|
+
}),
|
|
4681
|
+
/**
|
|
4682
|
+
*
|
|
4683
|
+
* @summary List indexed pages with cursor pagination
|
|
4684
|
+
* @param {string} organisation
|
|
4685
|
+
* @param {string} project
|
|
4686
|
+
* @param {number} [limit]
|
|
4687
|
+
* @param {string} [cursor]
|
|
4688
|
+
* @param {string} [search]
|
|
4689
|
+
* @param {*} [options] Override http request option.
|
|
4690
|
+
* @throws {RequiredError}
|
|
4691
|
+
*/
|
|
4692
|
+
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 = {}) {
|
|
4693
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4694
|
+
(0, common_1.assertParamExists)('aiSearchListPages', 'organisation', organisation);
|
|
4695
|
+
// verify required parameter 'project' is not null or undefined
|
|
4696
|
+
(0, common_1.assertParamExists)('aiSearchListPages', 'project', project);
|
|
4697
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4698
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4699
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4700
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4701
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4702
|
+
let baseOptions;
|
|
4703
|
+
if (configuration) {
|
|
4704
|
+
baseOptions = configuration.baseOptions;
|
|
4705
|
+
}
|
|
4706
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4707
|
+
const localVarHeaderParameter = {};
|
|
4708
|
+
const localVarQueryParameter = {};
|
|
4709
|
+
// authentication BearerAuth required
|
|
4710
|
+
// http bearer authentication required
|
|
4711
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4712
|
+
if (limit !== undefined) {
|
|
4713
|
+
localVarQueryParameter['limit'] = limit;
|
|
4714
|
+
}
|
|
4715
|
+
if (cursor !== undefined) {
|
|
4716
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
4717
|
+
}
|
|
4718
|
+
if (search !== undefined) {
|
|
4719
|
+
localVarQueryParameter['search'] = search;
|
|
4720
|
+
}
|
|
4721
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4722
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4723
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4724
|
+
return {
|
|
4725
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4726
|
+
options: localVarRequestOptions,
|
|
4727
|
+
};
|
|
4728
|
+
}),
|
|
4729
|
+
/**
|
|
4730
|
+
*
|
|
4731
|
+
* @summary Purge the entire AI Search index
|
|
4732
|
+
* @param {string} organisation
|
|
4733
|
+
* @param {string} project
|
|
4734
|
+
* @param {*} [options] Override http request option.
|
|
4735
|
+
* @throws {RequiredError}
|
|
4736
|
+
*/
|
|
4737
|
+
aiSearchPurgeIndex: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4738
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4739
|
+
(0, common_1.assertParamExists)('aiSearchPurgeIndex', 'organisation', organisation);
|
|
4740
|
+
// verify required parameter 'project' is not null or undefined
|
|
4741
|
+
(0, common_1.assertParamExists)('aiSearchPurgeIndex', 'project', project);
|
|
4742
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/index`
|
|
4743
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4744
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4745
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4746
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4747
|
+
let baseOptions;
|
|
4748
|
+
if (configuration) {
|
|
4749
|
+
baseOptions = configuration.baseOptions;
|
|
4750
|
+
}
|
|
4751
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4752
|
+
const localVarHeaderParameter = {};
|
|
4753
|
+
const localVarQueryParameter = {};
|
|
4754
|
+
// authentication BearerAuth required
|
|
4755
|
+
// http bearer authentication required
|
|
4756
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4757
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4758
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4759
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4760
|
+
return {
|
|
4761
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4762
|
+
options: localVarRequestOptions,
|
|
4763
|
+
};
|
|
4764
|
+
}),
|
|
4765
|
+
/**
|
|
4766
|
+
*
|
|
4767
|
+
* @summary Semantic search across the AI Search index
|
|
4768
|
+
* @param {string} organisation
|
|
4769
|
+
* @param {string} project
|
|
4770
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
4771
|
+
* @param {*} [options] Override http request option.
|
|
4772
|
+
* @throws {RequiredError}
|
|
4773
|
+
*/
|
|
4774
|
+
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 = {}) {
|
|
4775
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4776
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'organisation', organisation);
|
|
4777
|
+
// verify required parameter 'project' is not null or undefined
|
|
4778
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'project', project);
|
|
4779
|
+
// verify required parameter 'aiSearchSearchRequest' is not null or undefined
|
|
4780
|
+
(0, common_1.assertParamExists)('aiSearchSearch', 'aiSearchSearchRequest', aiSearchSearchRequest);
|
|
4781
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/search`
|
|
4782
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4783
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4784
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4785
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4786
|
+
let baseOptions;
|
|
4787
|
+
if (configuration) {
|
|
4788
|
+
baseOptions = configuration.baseOptions;
|
|
4789
|
+
}
|
|
4790
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4791
|
+
const localVarHeaderParameter = {};
|
|
4792
|
+
const localVarQueryParameter = {};
|
|
4793
|
+
// authentication BearerAuth required
|
|
4794
|
+
// http bearer authentication required
|
|
4795
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4796
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4797
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4798
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4799
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4800
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchSearchRequest, localVarRequestOptions, configuration);
|
|
4801
|
+
return {
|
|
4802
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4803
|
+
options: localVarRequestOptions,
|
|
4804
|
+
};
|
|
4805
|
+
}),
|
|
4806
|
+
/**
|
|
4807
|
+
*
|
|
4808
|
+
* @summary Get AI Search status for a project
|
|
4809
|
+
* @param {string} organisation
|
|
4810
|
+
* @param {string} project
|
|
4811
|
+
* @param {*} [options] Override http request option.
|
|
4812
|
+
* @throws {RequiredError}
|
|
4813
|
+
*/
|
|
4814
|
+
aiSearchStatus: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4815
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4816
|
+
(0, common_1.assertParamExists)('aiSearchStatus', 'organisation', organisation);
|
|
4817
|
+
// verify required parameter 'project' is not null or undefined
|
|
4818
|
+
(0, common_1.assertParamExists)('aiSearchStatus', 'project', project);
|
|
4819
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search`
|
|
4820
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4821
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4822
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4823
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4824
|
+
let baseOptions;
|
|
4825
|
+
if (configuration) {
|
|
4826
|
+
baseOptions = configuration.baseOptions;
|
|
4827
|
+
}
|
|
4828
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4829
|
+
const localVarHeaderParameter = {};
|
|
4830
|
+
const localVarQueryParameter = {};
|
|
4831
|
+
// authentication BearerAuth required
|
|
4832
|
+
// http bearer authentication required
|
|
4833
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4834
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4835
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4836
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4837
|
+
return {
|
|
4838
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4839
|
+
options: localVarRequestOptions,
|
|
4840
|
+
};
|
|
4841
|
+
}),
|
|
4842
|
+
/**
|
|
4843
|
+
*
|
|
4844
|
+
* @summary Get the most popular AI Search queries
|
|
4845
|
+
* @param {string} organisation
|
|
4846
|
+
* @param {string} project
|
|
4847
|
+
* @param {string} [range]
|
|
4848
|
+
* @param {number} [limit]
|
|
4849
|
+
* @param {*} [options] Override http request option.
|
|
4850
|
+
* @throws {RequiredError}
|
|
4851
|
+
*/
|
|
4852
|
+
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 = {}) {
|
|
4853
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4854
|
+
(0, common_1.assertParamExists)('aiSearchTopQueries', 'organisation', organisation);
|
|
4855
|
+
// verify required parameter 'project' is not null or undefined
|
|
4856
|
+
(0, common_1.assertParamExists)('aiSearchTopQueries', 'project', project);
|
|
4857
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries`
|
|
4858
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4859
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4860
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4861
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4862
|
+
let baseOptions;
|
|
4863
|
+
if (configuration) {
|
|
4864
|
+
baseOptions = configuration.baseOptions;
|
|
4865
|
+
}
|
|
4866
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4867
|
+
const localVarHeaderParameter = {};
|
|
4868
|
+
const localVarQueryParameter = {};
|
|
4869
|
+
// authentication BearerAuth required
|
|
4870
|
+
// http bearer authentication required
|
|
4871
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4872
|
+
if (range !== undefined) {
|
|
4873
|
+
localVarQueryParameter['range'] = range;
|
|
4874
|
+
}
|
|
4875
|
+
if (limit !== undefined) {
|
|
4876
|
+
localVarQueryParameter['limit'] = limit;
|
|
4877
|
+
}
|
|
4878
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4880
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4881
|
+
return {
|
|
4882
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4883
|
+
options: localVarRequestOptions,
|
|
4884
|
+
};
|
|
4885
|
+
}),
|
|
4886
|
+
/**
|
|
4887
|
+
*
|
|
4888
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
4889
|
+
* @param {string} organisation
|
|
4890
|
+
* @param {string} project
|
|
4891
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
4892
|
+
* @param {*} [options] Override http request option.
|
|
4893
|
+
* @throws {RequiredError}
|
|
4894
|
+
*/
|
|
4895
|
+
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 = {}) {
|
|
4896
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4897
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'organisation', organisation);
|
|
4898
|
+
// verify required parameter 'project' is not null or undefined
|
|
4899
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'project', project);
|
|
4900
|
+
// verify required parameter 'aiSearchTriggerCrawlRequest' is not null or undefined
|
|
4901
|
+
(0, common_1.assertParamExists)('aiSearchTriggerCrawl', 'aiSearchTriggerCrawlRequest', aiSearchTriggerCrawlRequest);
|
|
4902
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4903
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4904
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4906
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4907
|
+
let baseOptions;
|
|
4908
|
+
if (configuration) {
|
|
4909
|
+
baseOptions = configuration.baseOptions;
|
|
4910
|
+
}
|
|
4911
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4912
|
+
const localVarHeaderParameter = {};
|
|
4913
|
+
const localVarQueryParameter = {};
|
|
4914
|
+
// authentication BearerAuth required
|
|
4915
|
+
// http bearer authentication required
|
|
4916
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4917
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4918
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4920
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4921
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchTriggerCrawlRequest, localVarRequestOptions, configuration);
|
|
4922
|
+
return {
|
|
4923
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4924
|
+
options: localVarRequestOptions,
|
|
4925
|
+
};
|
|
4926
|
+
}),
|
|
4927
|
+
/**
|
|
4928
|
+
*
|
|
4929
|
+
* @summary Update AI Search public access and rate limit settings
|
|
4930
|
+
* @param {string} organisation
|
|
4931
|
+
* @param {string} project
|
|
4932
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
4933
|
+
* @param {*} [options] Override http request option.
|
|
4934
|
+
* @throws {RequiredError}
|
|
4935
|
+
*/
|
|
4936
|
+
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 = {}) {
|
|
4937
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4938
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'organisation', organisation);
|
|
4939
|
+
// verify required parameter 'project' is not null or undefined
|
|
4940
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'project', project);
|
|
4941
|
+
// verify required parameter 'aiSearchUpdateSettingsRequest' is not null or undefined
|
|
4942
|
+
(0, common_1.assertParamExists)('aiSearchUpdateSettings', 'aiSearchUpdateSettingsRequest', aiSearchUpdateSettingsRequest);
|
|
4943
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4944
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4945
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4946
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4947
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4948
|
+
let baseOptions;
|
|
4949
|
+
if (configuration) {
|
|
4950
|
+
baseOptions = configuration.baseOptions;
|
|
4951
|
+
}
|
|
4952
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4953
|
+
const localVarHeaderParameter = {};
|
|
4954
|
+
const localVarQueryParameter = {};
|
|
4955
|
+
// authentication BearerAuth required
|
|
4956
|
+
// http bearer authentication required
|
|
4957
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4958
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4959
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
4960
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4961
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4962
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(aiSearchUpdateSettingsRequest, localVarRequestOptions, configuration);
|
|
4963
|
+
return {
|
|
4964
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
4965
|
+
options: localVarRequestOptions,
|
|
4966
|
+
};
|
|
4967
|
+
}),
|
|
4968
|
+
/**
|
|
4969
|
+
*
|
|
4970
|
+
* @summary Get usage statistics for the AI Search site
|
|
4971
|
+
* @param {string} organisation
|
|
4972
|
+
* @param {string} project
|
|
4973
|
+
* @param {string} [range]
|
|
4974
|
+
* @param {*} [options] Override http request option.
|
|
4975
|
+
* @throws {RequiredError}
|
|
4976
|
+
*/
|
|
4977
|
+
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 = {}) {
|
|
4978
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4979
|
+
(0, common_1.assertParamExists)('aiSearchUsage', 'organisation', organisation);
|
|
4980
|
+
// verify required parameter 'project' is not null or undefined
|
|
4981
|
+
(0, common_1.assertParamExists)('aiSearchUsage', 'project', project);
|
|
4982
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage`
|
|
4983
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4984
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4985
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4986
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
4987
|
+
let baseOptions;
|
|
4988
|
+
if (configuration) {
|
|
4989
|
+
baseOptions = configuration.baseOptions;
|
|
4990
|
+
}
|
|
4991
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4992
|
+
const localVarHeaderParameter = {};
|
|
4993
|
+
const localVarQueryParameter = {};
|
|
4994
|
+
// authentication BearerAuth required
|
|
4995
|
+
// http bearer authentication required
|
|
4996
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
4997
|
+
if (range !== undefined) {
|
|
4998
|
+
localVarQueryParameter['range'] = range;
|
|
4999
|
+
}
|
|
5000
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
5001
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
5002
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
5003
|
+
return {
|
|
5004
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
5005
|
+
options: localVarRequestOptions,
|
|
5006
|
+
};
|
|
5007
|
+
}),
|
|
5008
|
+
};
|
|
5009
|
+
};
|
|
5010
|
+
exports.AISearchApiAxiosParamCreator = AISearchApiAxiosParamCreator;
|
|
5011
|
+
/**
|
|
5012
|
+
* AISearchApi - functional programming interface
|
|
5013
|
+
* @export
|
|
5014
|
+
*/
|
|
5015
|
+
const AISearchApiFp = function (configuration) {
|
|
5016
|
+
const localVarAxiosParamCreator = (0, exports.AISearchApiAxiosParamCreator)(configuration);
|
|
5017
|
+
return {
|
|
5018
|
+
/**
|
|
5019
|
+
*
|
|
5020
|
+
* @summary RAG chat with AI Search content
|
|
5021
|
+
* @param {string} organisation
|
|
5022
|
+
* @param {string} project
|
|
5023
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5024
|
+
* @param {*} [options] Override http request option.
|
|
5025
|
+
* @throws {RequiredError}
|
|
5026
|
+
*/
|
|
5027
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5028
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5029
|
+
var _a, _b, _c;
|
|
5030
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchChat(organisation, project, aiSearchChatRequest, options);
|
|
5031
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5032
|
+
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;
|
|
5033
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5034
|
+
});
|
|
5035
|
+
},
|
|
5036
|
+
/**
|
|
5037
|
+
*
|
|
5038
|
+
* @summary Delete pages by URLs or patterns
|
|
5039
|
+
* @param {string} organisation
|
|
5040
|
+
* @param {string} project
|
|
5041
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5042
|
+
* @param {*} [options] Override http request option.
|
|
5043
|
+
* @throws {RequiredError}
|
|
5044
|
+
*/
|
|
5045
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5046
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5047
|
+
var _a, _b, _c;
|
|
5048
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options);
|
|
5049
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5050
|
+
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;
|
|
5051
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5052
|
+
});
|
|
5053
|
+
},
|
|
5054
|
+
/**
|
|
5055
|
+
*
|
|
5056
|
+
* @summary Disable AI Search for a project
|
|
5057
|
+
* @param {string} organisation
|
|
5058
|
+
* @param {string} project
|
|
5059
|
+
* @param {*} [options] Override http request option.
|
|
5060
|
+
* @throws {RequiredError}
|
|
5061
|
+
*/
|
|
5062
|
+
aiSearchDisable(organisation, project, options) {
|
|
5063
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5064
|
+
var _a, _b, _c;
|
|
5065
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDisable(organisation, project, options);
|
|
5066
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5067
|
+
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;
|
|
5068
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5069
|
+
});
|
|
5070
|
+
},
|
|
5071
|
+
/**
|
|
5072
|
+
*
|
|
5073
|
+
* @summary Enable AI Search for a project
|
|
5074
|
+
* @param {string} organisation
|
|
5075
|
+
* @param {string} project
|
|
5076
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5077
|
+
* @param {*} [options] Override http request option.
|
|
5078
|
+
* @throws {RequiredError}
|
|
5079
|
+
*/
|
|
5080
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5081
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5082
|
+
var _a, _b, _c;
|
|
5083
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchEnable(organisation, project, aiSearchEnableRequest, options);
|
|
5084
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5085
|
+
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;
|
|
5086
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5087
|
+
});
|
|
5088
|
+
},
|
|
5089
|
+
/**
|
|
5090
|
+
*
|
|
5091
|
+
* @summary Get AI Search ingest job status
|
|
5092
|
+
* @param {string} organisation
|
|
5093
|
+
* @param {string} project
|
|
5094
|
+
* @param {string} jobId
|
|
5095
|
+
* @param {*} [options] Override http request option.
|
|
5096
|
+
* @throws {RequiredError}
|
|
5097
|
+
*/
|
|
5098
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5099
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5100
|
+
var _a, _b, _c;
|
|
5101
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawl(organisation, project, jobId, options);
|
|
5102
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5103
|
+
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;
|
|
5104
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5105
|
+
});
|
|
5106
|
+
},
|
|
5107
|
+
/**
|
|
5108
|
+
*
|
|
5109
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5110
|
+
* @param {string} organisation
|
|
5111
|
+
* @param {string} project
|
|
5112
|
+
* @param {string} jobId
|
|
5113
|
+
* @param {number} [limit]
|
|
5114
|
+
* @param {number} [statusCode]
|
|
5115
|
+
* @param {string} [processingStatus]
|
|
5116
|
+
* @param {*} [options] Override http request option.
|
|
5117
|
+
* @throws {RequiredError}
|
|
5118
|
+
*/
|
|
5119
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5120
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5121
|
+
var _a, _b, _c;
|
|
5122
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options);
|
|
5123
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5124
|
+
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;
|
|
5125
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5126
|
+
});
|
|
5127
|
+
},
|
|
5128
|
+
/**
|
|
5129
|
+
*
|
|
5130
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5131
|
+
* @param {string} organisation
|
|
5132
|
+
* @param {string} project
|
|
5133
|
+
* @param {*} [options] Override http request option.
|
|
5134
|
+
* @throws {RequiredError}
|
|
5135
|
+
*/
|
|
5136
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5138
|
+
var _a, _b, _c;
|
|
5139
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetSettings(organisation, project, options);
|
|
5140
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5141
|
+
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;
|
|
5142
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5143
|
+
});
|
|
5144
|
+
},
|
|
5145
|
+
/**
|
|
5146
|
+
*
|
|
5147
|
+
* @summary Ingest pages into the AI Search index
|
|
5148
|
+
* @param {string} organisation
|
|
5149
|
+
* @param {string} project
|
|
5150
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5151
|
+
* @param {*} [options] Override http request option.
|
|
5152
|
+
* @throws {RequiredError}
|
|
5153
|
+
*/
|
|
5154
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5155
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5156
|
+
var _a, _b, _c;
|
|
5157
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options);
|
|
5158
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5159
|
+
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;
|
|
5160
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5161
|
+
});
|
|
5162
|
+
},
|
|
5163
|
+
/**
|
|
5164
|
+
*
|
|
5165
|
+
* @summary List AI Search ingest jobs
|
|
5166
|
+
* @param {string} organisation
|
|
5167
|
+
* @param {string} project
|
|
5168
|
+
* @param {number} [limit]
|
|
5169
|
+
* @param {*} [options] Override http request option.
|
|
5170
|
+
* @throws {RequiredError}
|
|
5171
|
+
*/
|
|
5172
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5173
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5174
|
+
var _a, _b, _c;
|
|
5175
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListCrawls(organisation, project, limit, options);
|
|
5176
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5177
|
+
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;
|
|
5178
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5179
|
+
});
|
|
5180
|
+
},
|
|
5181
|
+
/**
|
|
5182
|
+
*
|
|
5183
|
+
* @summary List indexed pages with cursor pagination
|
|
5184
|
+
* @param {string} organisation
|
|
5185
|
+
* @param {string} project
|
|
5186
|
+
* @param {number} [limit]
|
|
5187
|
+
* @param {string} [cursor]
|
|
5188
|
+
* @param {string} [search]
|
|
5189
|
+
* @param {*} [options] Override http request option.
|
|
5190
|
+
* @throws {RequiredError}
|
|
5191
|
+
*/
|
|
5192
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5193
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5194
|
+
var _a, _b, _c;
|
|
5195
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListPages(organisation, project, limit, cursor, search, options);
|
|
5196
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5197
|
+
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;
|
|
5198
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5199
|
+
});
|
|
5200
|
+
},
|
|
5201
|
+
/**
|
|
5202
|
+
*
|
|
5203
|
+
* @summary Purge the entire AI Search index
|
|
5204
|
+
* @param {string} organisation
|
|
5205
|
+
* @param {string} project
|
|
5206
|
+
* @param {*} [options] Override http request option.
|
|
5207
|
+
* @throws {RequiredError}
|
|
5208
|
+
*/
|
|
5209
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5210
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5211
|
+
var _a, _b, _c;
|
|
5212
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchPurgeIndex(organisation, project, options);
|
|
5213
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5214
|
+
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;
|
|
5215
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5216
|
+
});
|
|
5217
|
+
},
|
|
5218
|
+
/**
|
|
5219
|
+
*
|
|
5220
|
+
* @summary Semantic search across the AI Search index
|
|
5221
|
+
* @param {string} organisation
|
|
5222
|
+
* @param {string} project
|
|
5223
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5224
|
+
* @param {*} [options] Override http request option.
|
|
5225
|
+
* @throws {RequiredError}
|
|
5226
|
+
*/
|
|
5227
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5228
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5229
|
+
var _a, _b, _c;
|
|
5230
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchSearch(organisation, project, aiSearchSearchRequest, options);
|
|
5231
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5232
|
+
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;
|
|
5233
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5234
|
+
});
|
|
5235
|
+
},
|
|
5236
|
+
/**
|
|
5237
|
+
*
|
|
5238
|
+
* @summary Get AI Search status for a project
|
|
5239
|
+
* @param {string} organisation
|
|
5240
|
+
* @param {string} project
|
|
5241
|
+
* @param {*} [options] Override http request option.
|
|
5242
|
+
* @throws {RequiredError}
|
|
5243
|
+
*/
|
|
5244
|
+
aiSearchStatus(organisation, project, options) {
|
|
5245
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5246
|
+
var _a, _b, _c;
|
|
5247
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchStatus(organisation, project, options);
|
|
5248
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5249
|
+
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;
|
|
5250
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5251
|
+
});
|
|
5252
|
+
},
|
|
5253
|
+
/**
|
|
5254
|
+
*
|
|
5255
|
+
* @summary Get the most popular AI Search queries
|
|
5256
|
+
* @param {string} organisation
|
|
5257
|
+
* @param {string} project
|
|
5258
|
+
* @param {string} [range]
|
|
5259
|
+
* @param {number} [limit]
|
|
5260
|
+
* @param {*} [options] Override http request option.
|
|
5261
|
+
* @throws {RequiredError}
|
|
5262
|
+
*/
|
|
5263
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5264
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5265
|
+
var _a, _b, _c;
|
|
5266
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTopQueries(organisation, project, range, limit, options);
|
|
5267
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5268
|
+
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;
|
|
5269
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5270
|
+
});
|
|
5271
|
+
},
|
|
5272
|
+
/**
|
|
5273
|
+
*
|
|
5274
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5275
|
+
* @param {string} organisation
|
|
5276
|
+
* @param {string} project
|
|
5277
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5278
|
+
* @param {*} [options] Override http request option.
|
|
5279
|
+
* @throws {RequiredError}
|
|
5280
|
+
*/
|
|
5281
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5282
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5283
|
+
var _a, _b, _c;
|
|
5284
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options);
|
|
5285
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5286
|
+
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;
|
|
5287
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5288
|
+
});
|
|
5289
|
+
},
|
|
5290
|
+
/**
|
|
5291
|
+
*
|
|
5292
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5293
|
+
* @param {string} organisation
|
|
5294
|
+
* @param {string} project
|
|
5295
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5296
|
+
* @param {*} [options] Override http request option.
|
|
5297
|
+
* @throws {RequiredError}
|
|
5298
|
+
*/
|
|
5299
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5300
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5301
|
+
var _a, _b, _c;
|
|
5302
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options);
|
|
5303
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5304
|
+
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;
|
|
5305
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5306
|
+
});
|
|
5307
|
+
},
|
|
5308
|
+
/**
|
|
5309
|
+
*
|
|
5310
|
+
* @summary Get usage statistics for the AI Search site
|
|
5311
|
+
* @param {string} organisation
|
|
5312
|
+
* @param {string} project
|
|
5313
|
+
* @param {string} [range]
|
|
5314
|
+
* @param {*} [options] Override http request option.
|
|
5315
|
+
* @throws {RequiredError}
|
|
5316
|
+
*/
|
|
5317
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5318
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5319
|
+
var _a, _b, _c;
|
|
5320
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUsage(organisation, project, range, options);
|
|
5321
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5322
|
+
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;
|
|
5323
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5324
|
+
});
|
|
5325
|
+
},
|
|
5326
|
+
};
|
|
5327
|
+
};
|
|
5328
|
+
exports.AISearchApiFp = AISearchApiFp;
|
|
5329
|
+
/**
|
|
5330
|
+
* AISearchApi - factory interface
|
|
5331
|
+
* @export
|
|
5332
|
+
*/
|
|
5333
|
+
const AISearchApiFactory = function (configuration, basePath, axios) {
|
|
5334
|
+
const localVarFp = (0, exports.AISearchApiFp)(configuration);
|
|
5335
|
+
return {
|
|
5336
|
+
/**
|
|
5337
|
+
*
|
|
5338
|
+
* @summary RAG chat with AI Search content
|
|
5339
|
+
* @param {string} organisation
|
|
5340
|
+
* @param {string} project
|
|
5341
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5342
|
+
* @param {*} [options] Override http request option.
|
|
5343
|
+
* @throws {RequiredError}
|
|
5344
|
+
*/
|
|
5345
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5346
|
+
return localVarFp.aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(axios, basePath));
|
|
5347
|
+
},
|
|
5348
|
+
/**
|
|
5349
|
+
*
|
|
5350
|
+
* @summary Delete pages by URLs or patterns
|
|
5351
|
+
* @param {string} organisation
|
|
5352
|
+
* @param {string} project
|
|
5353
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5354
|
+
* @param {*} [options] Override http request option.
|
|
5355
|
+
* @throws {RequiredError}
|
|
5356
|
+
*/
|
|
5357
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5358
|
+
return localVarFp.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(axios, basePath));
|
|
5359
|
+
},
|
|
5360
|
+
/**
|
|
5361
|
+
*
|
|
5362
|
+
* @summary Disable AI Search for a project
|
|
5363
|
+
* @param {string} organisation
|
|
5364
|
+
* @param {string} project
|
|
5365
|
+
* @param {*} [options] Override http request option.
|
|
5366
|
+
* @throws {RequiredError}
|
|
5367
|
+
*/
|
|
5368
|
+
aiSearchDisable(organisation, project, options) {
|
|
5369
|
+
return localVarFp.aiSearchDisable(organisation, project, options).then((request) => request(axios, basePath));
|
|
5370
|
+
},
|
|
5371
|
+
/**
|
|
5372
|
+
*
|
|
5373
|
+
* @summary Enable AI Search for a project
|
|
5374
|
+
* @param {string} organisation
|
|
5375
|
+
* @param {string} project
|
|
5376
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5377
|
+
* @param {*} [options] Override http request option.
|
|
5378
|
+
* @throws {RequiredError}
|
|
5379
|
+
*/
|
|
5380
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5381
|
+
return localVarFp.aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(axios, basePath));
|
|
5382
|
+
},
|
|
5383
|
+
/**
|
|
5384
|
+
*
|
|
5385
|
+
* @summary Get AI Search ingest job status
|
|
5386
|
+
* @param {string} organisation
|
|
5387
|
+
* @param {string} project
|
|
5388
|
+
* @param {string} jobId
|
|
5389
|
+
* @param {*} [options] Override http request option.
|
|
5390
|
+
* @throws {RequiredError}
|
|
5391
|
+
*/
|
|
5392
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5393
|
+
return localVarFp.aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(axios, basePath));
|
|
5394
|
+
},
|
|
5395
|
+
/**
|
|
5396
|
+
*
|
|
5397
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5398
|
+
* @param {string} organisation
|
|
5399
|
+
* @param {string} project
|
|
5400
|
+
* @param {string} jobId
|
|
5401
|
+
* @param {number} [limit]
|
|
5402
|
+
* @param {number} [statusCode]
|
|
5403
|
+
* @param {string} [processingStatus]
|
|
5404
|
+
* @param {*} [options] Override http request option.
|
|
5405
|
+
* @throws {RequiredError}
|
|
5406
|
+
*/
|
|
5407
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5408
|
+
return localVarFp.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(axios, basePath));
|
|
5409
|
+
},
|
|
5410
|
+
/**
|
|
5411
|
+
*
|
|
5412
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5413
|
+
* @param {string} organisation
|
|
5414
|
+
* @param {string} project
|
|
5415
|
+
* @param {*} [options] Override http request option.
|
|
5416
|
+
* @throws {RequiredError}
|
|
5417
|
+
*/
|
|
5418
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5419
|
+
return localVarFp.aiSearchGetSettings(organisation, project, options).then((request) => request(axios, basePath));
|
|
5420
|
+
},
|
|
5421
|
+
/**
|
|
5422
|
+
*
|
|
5423
|
+
* @summary Ingest pages into the AI Search index
|
|
5424
|
+
* @param {string} organisation
|
|
5425
|
+
* @param {string} project
|
|
5426
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5427
|
+
* @param {*} [options] Override http request option.
|
|
5428
|
+
* @throws {RequiredError}
|
|
5429
|
+
*/
|
|
5430
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5431
|
+
return localVarFp.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(axios, basePath));
|
|
5432
|
+
},
|
|
5433
|
+
/**
|
|
5434
|
+
*
|
|
5435
|
+
* @summary List AI Search ingest jobs
|
|
5436
|
+
* @param {string} organisation
|
|
5437
|
+
* @param {string} project
|
|
5438
|
+
* @param {number} [limit]
|
|
5439
|
+
* @param {*} [options] Override http request option.
|
|
5440
|
+
* @throws {RequiredError}
|
|
5441
|
+
*/
|
|
5442
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5443
|
+
return localVarFp.aiSearchListCrawls(organisation, project, limit, options).then((request) => request(axios, basePath));
|
|
5444
|
+
},
|
|
5445
|
+
/**
|
|
5446
|
+
*
|
|
5447
|
+
* @summary List indexed pages with cursor pagination
|
|
5448
|
+
* @param {string} organisation
|
|
5449
|
+
* @param {string} project
|
|
5450
|
+
* @param {number} [limit]
|
|
5451
|
+
* @param {string} [cursor]
|
|
5452
|
+
* @param {string} [search]
|
|
5453
|
+
* @param {*} [options] Override http request option.
|
|
5454
|
+
* @throws {RequiredError}
|
|
5455
|
+
*/
|
|
5456
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5457
|
+
return localVarFp.aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(axios, basePath));
|
|
5458
|
+
},
|
|
5459
|
+
/**
|
|
5460
|
+
*
|
|
5461
|
+
* @summary Purge the entire AI Search index
|
|
5462
|
+
* @param {string} organisation
|
|
5463
|
+
* @param {string} project
|
|
5464
|
+
* @param {*} [options] Override http request option.
|
|
5465
|
+
* @throws {RequiredError}
|
|
5466
|
+
*/
|
|
5467
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5468
|
+
return localVarFp.aiSearchPurgeIndex(organisation, project, options).then((request) => request(axios, basePath));
|
|
5469
|
+
},
|
|
5470
|
+
/**
|
|
5471
|
+
*
|
|
5472
|
+
* @summary Semantic search across the AI Search index
|
|
5473
|
+
* @param {string} organisation
|
|
5474
|
+
* @param {string} project
|
|
5475
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5476
|
+
* @param {*} [options] Override http request option.
|
|
5477
|
+
* @throws {RequiredError}
|
|
5478
|
+
*/
|
|
5479
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5480
|
+
return localVarFp.aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(axios, basePath));
|
|
5481
|
+
},
|
|
5482
|
+
/**
|
|
5483
|
+
*
|
|
5484
|
+
* @summary Get AI Search status for a project
|
|
5485
|
+
* @param {string} organisation
|
|
5486
|
+
* @param {string} project
|
|
5487
|
+
* @param {*} [options] Override http request option.
|
|
5488
|
+
* @throws {RequiredError}
|
|
5489
|
+
*/
|
|
5490
|
+
aiSearchStatus(organisation, project, options) {
|
|
5491
|
+
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
5492
|
+
},
|
|
5493
|
+
/**
|
|
5494
|
+
*
|
|
5495
|
+
* @summary Get the most popular AI Search queries
|
|
5496
|
+
* @param {string} organisation
|
|
5497
|
+
* @param {string} project
|
|
5498
|
+
* @param {string} [range]
|
|
5499
|
+
* @param {number} [limit]
|
|
5500
|
+
* @param {*} [options] Override http request option.
|
|
5501
|
+
* @throws {RequiredError}
|
|
5502
|
+
*/
|
|
5503
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5504
|
+
return localVarFp.aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(axios, basePath));
|
|
5505
|
+
},
|
|
5506
|
+
/**
|
|
5507
|
+
*
|
|
5508
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5509
|
+
* @param {string} organisation
|
|
5510
|
+
* @param {string} project
|
|
5511
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5512
|
+
* @param {*} [options] Override http request option.
|
|
5513
|
+
* @throws {RequiredError}
|
|
5514
|
+
*/
|
|
5515
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5516
|
+
return localVarFp.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(axios, basePath));
|
|
5517
|
+
},
|
|
5518
|
+
/**
|
|
5519
|
+
*
|
|
5520
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5521
|
+
* @param {string} organisation
|
|
5522
|
+
* @param {string} project
|
|
5523
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5524
|
+
* @param {*} [options] Override http request option.
|
|
5525
|
+
* @throws {RequiredError}
|
|
5526
|
+
*/
|
|
5527
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5528
|
+
return localVarFp.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5529
|
+
},
|
|
5530
|
+
/**
|
|
5531
|
+
*
|
|
5532
|
+
* @summary Get usage statistics for the AI Search site
|
|
5533
|
+
* @param {string} organisation
|
|
5534
|
+
* @param {string} project
|
|
5535
|
+
* @param {string} [range]
|
|
5536
|
+
* @param {*} [options] Override http request option.
|
|
5537
|
+
* @throws {RequiredError}
|
|
5538
|
+
*/
|
|
5539
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5540
|
+
return localVarFp.aiSearchUsage(organisation, project, range, options).then((request) => request(axios, basePath));
|
|
5541
|
+
},
|
|
5542
|
+
};
|
|
5543
|
+
};
|
|
5544
|
+
exports.AISearchApiFactory = AISearchApiFactory;
|
|
5545
|
+
/**
|
|
5546
|
+
* AISearchApi - object-oriented interface
|
|
5547
|
+
* @export
|
|
5548
|
+
* @class AISearchApi
|
|
5549
|
+
* @extends {BaseAPI}
|
|
5550
|
+
*/
|
|
5551
|
+
class AISearchApi extends base_1.BaseAPI {
|
|
5552
|
+
/**
|
|
5553
|
+
*
|
|
5554
|
+
* @summary RAG chat with AI Search content
|
|
5555
|
+
* @param {string} organisation
|
|
5556
|
+
* @param {string} project
|
|
5557
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5558
|
+
* @param {*} [options] Override http request option.
|
|
5559
|
+
* @throws {RequiredError}
|
|
5560
|
+
* @memberof AISearchApi
|
|
5561
|
+
*/
|
|
5562
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5563
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5564
|
+
}
|
|
5565
|
+
/**
|
|
5566
|
+
*
|
|
5567
|
+
* @summary Delete pages by URLs or patterns
|
|
5568
|
+
* @param {string} organisation
|
|
5569
|
+
* @param {string} project
|
|
5570
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5571
|
+
* @param {*} [options] Override http request option.
|
|
5572
|
+
* @throws {RequiredError}
|
|
5573
|
+
* @memberof AISearchApi
|
|
5574
|
+
*/
|
|
5575
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5576
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5577
|
+
}
|
|
5578
|
+
/**
|
|
5579
|
+
*
|
|
5580
|
+
* @summary Disable AI Search for a project
|
|
5581
|
+
* @param {string} organisation
|
|
5582
|
+
* @param {string} project
|
|
5583
|
+
* @param {*} [options] Override http request option.
|
|
5584
|
+
* @throws {RequiredError}
|
|
5585
|
+
* @memberof AISearchApi
|
|
5586
|
+
*/
|
|
5587
|
+
aiSearchDisable(organisation, project, options) {
|
|
5588
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchDisable(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5589
|
+
}
|
|
5590
|
+
/**
|
|
5591
|
+
*
|
|
5592
|
+
* @summary Enable AI Search for a project
|
|
5593
|
+
* @param {string} organisation
|
|
5594
|
+
* @param {string} project
|
|
5595
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5596
|
+
* @param {*} [options] Override http request option.
|
|
5597
|
+
* @throws {RequiredError}
|
|
5598
|
+
* @memberof AISearchApi
|
|
5599
|
+
*/
|
|
5600
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5601
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5602
|
+
}
|
|
5603
|
+
/**
|
|
5604
|
+
*
|
|
5605
|
+
* @summary Get AI Search ingest job status
|
|
5606
|
+
* @param {string} organisation
|
|
5607
|
+
* @param {string} project
|
|
5608
|
+
* @param {string} jobId
|
|
5609
|
+
* @param {*} [options] Override http request option.
|
|
5610
|
+
* @throws {RequiredError}
|
|
5611
|
+
* @memberof AISearchApi
|
|
5612
|
+
*/
|
|
5613
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5614
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(this.axios, this.basePath));
|
|
5615
|
+
}
|
|
5616
|
+
/**
|
|
5617
|
+
*
|
|
5618
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5619
|
+
* @param {string} organisation
|
|
5620
|
+
* @param {string} project
|
|
5621
|
+
* @param {string} jobId
|
|
5622
|
+
* @param {number} [limit]
|
|
5623
|
+
* @param {number} [statusCode]
|
|
5624
|
+
* @param {string} [processingStatus]
|
|
5625
|
+
* @param {*} [options] Override http request option.
|
|
5626
|
+
* @throws {RequiredError}
|
|
5627
|
+
* @memberof AISearchApi
|
|
5628
|
+
*/
|
|
5629
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5630
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(this.axios, this.basePath));
|
|
5631
|
+
}
|
|
5632
|
+
/**
|
|
5633
|
+
*
|
|
5634
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5635
|
+
* @param {string} organisation
|
|
5636
|
+
* @param {string} project
|
|
5637
|
+
* @param {*} [options] Override http request option.
|
|
5638
|
+
* @throws {RequiredError}
|
|
5639
|
+
* @memberof AISearchApi
|
|
5640
|
+
*/
|
|
5641
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5642
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchGetSettings(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5643
|
+
}
|
|
5644
|
+
/**
|
|
5645
|
+
*
|
|
5646
|
+
* @summary Ingest pages into the AI Search index
|
|
5647
|
+
* @param {string} organisation
|
|
5648
|
+
* @param {string} project
|
|
5649
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5650
|
+
* @param {*} [options] Override http request option.
|
|
5651
|
+
* @throws {RequiredError}
|
|
5652
|
+
* @memberof AISearchApi
|
|
5653
|
+
*/
|
|
5654
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5655
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5656
|
+
}
|
|
5657
|
+
/**
|
|
5658
|
+
*
|
|
5659
|
+
* @summary List AI Search ingest jobs
|
|
5660
|
+
* @param {string} organisation
|
|
5661
|
+
* @param {string} project
|
|
5662
|
+
* @param {number} [limit]
|
|
5663
|
+
* @param {*} [options] Override http request option.
|
|
5664
|
+
* @throws {RequiredError}
|
|
5665
|
+
* @memberof AISearchApi
|
|
5666
|
+
*/
|
|
5667
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5668
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchListCrawls(organisation, project, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5669
|
+
}
|
|
5670
|
+
/**
|
|
5671
|
+
*
|
|
5672
|
+
* @summary List indexed pages with cursor pagination
|
|
5673
|
+
* @param {string} organisation
|
|
5674
|
+
* @param {string} project
|
|
5675
|
+
* @param {number} [limit]
|
|
5676
|
+
* @param {string} [cursor]
|
|
5677
|
+
* @param {string} [search]
|
|
5678
|
+
* @param {*} [options] Override http request option.
|
|
5679
|
+
* @throws {RequiredError}
|
|
5680
|
+
* @memberof AISearchApi
|
|
5681
|
+
*/
|
|
5682
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5683
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(this.axios, this.basePath));
|
|
5684
|
+
}
|
|
5685
|
+
/**
|
|
5686
|
+
*
|
|
5687
|
+
* @summary Purge the entire AI Search index
|
|
5688
|
+
* @param {string} organisation
|
|
5689
|
+
* @param {string} project
|
|
5690
|
+
* @param {*} [options] Override http request option.
|
|
5691
|
+
* @throws {RequiredError}
|
|
5692
|
+
* @memberof AISearchApi
|
|
5693
|
+
*/
|
|
5694
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5695
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchPurgeIndex(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5696
|
+
}
|
|
5697
|
+
/**
|
|
5698
|
+
*
|
|
5699
|
+
* @summary Semantic search across the AI Search index
|
|
5700
|
+
* @param {string} organisation
|
|
5701
|
+
* @param {string} project
|
|
5702
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5703
|
+
* @param {*} [options] Override http request option.
|
|
5704
|
+
* @throws {RequiredError}
|
|
5705
|
+
* @memberof AISearchApi
|
|
4090
5706
|
*/
|
|
4091
|
-
|
|
4092
|
-
return (0, exports.
|
|
5707
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5708
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4093
5709
|
}
|
|
4094
5710
|
/**
|
|
4095
|
-
*
|
|
4096
|
-
* @summary
|
|
4097
|
-
* @param {string} organisation
|
|
4098
|
-
* @param {string}
|
|
4099
|
-
* @param {number} [limit] Maximum number of batches to return
|
|
4100
|
-
* @param {string} [cursor] Pagination cursor from previous response
|
|
5711
|
+
*
|
|
5712
|
+
* @summary Get AI Search status for a project
|
|
5713
|
+
* @param {string} organisation
|
|
5714
|
+
* @param {string} project
|
|
4101
5715
|
* @param {*} [options] Override http request option.
|
|
4102
5716
|
* @throws {RequiredError}
|
|
4103
|
-
* @memberof
|
|
5717
|
+
* @memberof AISearchApi
|
|
4104
5718
|
*/
|
|
4105
|
-
|
|
4106
|
-
return (0, exports.
|
|
5719
|
+
aiSearchStatus(organisation, project, options) {
|
|
5720
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
4107
5721
|
}
|
|
4108
5722
|
/**
|
|
4109
|
-
*
|
|
4110
|
-
* @summary
|
|
4111
|
-
* @param {string} organisation
|
|
4112
|
-
* @param {
|
|
4113
|
-
* @param {
|
|
4114
|
-
* @param {
|
|
5723
|
+
*
|
|
5724
|
+
* @summary Get the most popular AI Search queries
|
|
5725
|
+
* @param {string} organisation
|
|
5726
|
+
* @param {string} project
|
|
5727
|
+
* @param {string} [range]
|
|
5728
|
+
* @param {number} [limit]
|
|
4115
5729
|
* @param {*} [options] Override http request option.
|
|
4116
5730
|
* @throws {RequiredError}
|
|
4117
|
-
* @memberof
|
|
5731
|
+
* @memberof AISearchApi
|
|
4118
5732
|
*/
|
|
4119
|
-
|
|
4120
|
-
return (0, exports.
|
|
5733
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5734
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(this.axios, this.basePath));
|
|
4121
5735
|
}
|
|
4122
5736
|
/**
|
|
4123
|
-
*
|
|
4124
|
-
* @summary
|
|
4125
|
-
* @param {string} organisation
|
|
4126
|
-
* @param {string}
|
|
5737
|
+
*
|
|
5738
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5739
|
+
* @param {string} organisation
|
|
5740
|
+
* @param {string} project
|
|
5741
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
4127
5742
|
* @param {*} [options] Override http request option.
|
|
4128
5743
|
* @throws {RequiredError}
|
|
4129
|
-
* @memberof
|
|
5744
|
+
* @memberof AISearchApi
|
|
4130
5745
|
*/
|
|
4131
|
-
|
|
4132
|
-
return (0, exports.
|
|
5746
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5747
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4133
5748
|
}
|
|
4134
5749
|
/**
|
|
4135
|
-
*
|
|
4136
|
-
* @summary
|
|
4137
|
-
* @param {string} organisation
|
|
4138
|
-
* @param {string}
|
|
5750
|
+
*
|
|
5751
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5752
|
+
* @param {string} organisation
|
|
5753
|
+
* @param {string} project
|
|
5754
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
4139
5755
|
* @param {*} [options] Override http request option.
|
|
4140
5756
|
* @throws {RequiredError}
|
|
4141
|
-
* @memberof
|
|
5757
|
+
* @memberof AISearchApi
|
|
4142
5758
|
*/
|
|
4143
|
-
|
|
4144
|
-
return (0, exports.
|
|
5759
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5760
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
4145
5761
|
}
|
|
4146
5762
|
/**
|
|
4147
|
-
*
|
|
4148
|
-
* @summary
|
|
4149
|
-
* @param {string} organisation
|
|
4150
|
-
* @param {string}
|
|
5763
|
+
*
|
|
5764
|
+
* @summary Get usage statistics for the AI Search site
|
|
5765
|
+
* @param {string} organisation
|
|
5766
|
+
* @param {string} project
|
|
5767
|
+
* @param {string} [range]
|
|
4151
5768
|
* @param {*} [options] Override http request option.
|
|
4152
5769
|
* @throws {RequiredError}
|
|
4153
|
-
* @memberof
|
|
5770
|
+
* @memberof AISearchApi
|
|
4154
5771
|
*/
|
|
4155
|
-
|
|
4156
|
-
return (0, exports.
|
|
5772
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5773
|
+
return (0, exports.AISearchApiFp)(this.configuration).aiSearchUsage(organisation, project, range, options).then((request) => request(this.axios, this.basePath));
|
|
4157
5774
|
}
|
|
4158
5775
|
}
|
|
4159
|
-
exports.
|
|
4160
|
-
/**
|
|
4161
|
-
* @export
|
|
4162
|
-
*/
|
|
4163
|
-
exports.ListOrchestrationsStatusEnum = {
|
|
4164
|
-
Pending: 'pending',
|
|
4165
|
-
Running: 'running',
|
|
4166
|
-
Paused: 'paused',
|
|
4167
|
-
Completed: 'completed',
|
|
4168
|
-
Failed: 'failed',
|
|
4169
|
-
Cancelled: 'cancelled'
|
|
4170
|
-
};
|
|
5776
|
+
exports.AISearchApi = AISearchApi;
|
|
4171
5777
|
/**
|
|
4172
5778
|
* AISessionsApi - axios parameter creator
|
|
4173
5779
|
* @export
|
|
@@ -5604,7 +7210,7 @@ exports.AISkillsApi = AISkillsApi;
|
|
|
5604
7210
|
const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
5605
7211
|
return {
|
|
5606
7212
|
/**
|
|
5607
|
-
* Creates a new Slack bot
|
|
7213
|
+
* 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
7214
|
* @summary Create Slack Bot
|
|
5609
7215
|
* @param {string} organisation The organisation ID
|
|
5610
7216
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5641,7 +7247,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5641
7247
|
};
|
|
5642
7248
|
}),
|
|
5643
7249
|
/**
|
|
5644
|
-
* Permanently deletes a Slack bot
|
|
7250
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5645
7251
|
* @summary Delete Slack Bot
|
|
5646
7252
|
* @param {string} organisation The organisation ID
|
|
5647
7253
|
* @param {string} botId The Slack bot ID
|
|
@@ -5677,7 +7283,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5677
7283
|
};
|
|
5678
7284
|
}),
|
|
5679
7285
|
/**
|
|
5680
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7286
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5681
7287
|
* @summary Get Slack Bot
|
|
5682
7288
|
* @param {string} organisation The organisation ID
|
|
5683
7289
|
* @param {string} botId The Slack bot ID
|
|
@@ -5713,7 +7319,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5713
7319
|
};
|
|
5714
7320
|
}),
|
|
5715
7321
|
/**
|
|
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.
|
|
7322
|
+
* 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
7323
|
* @summary List Slack Bots
|
|
5718
7324
|
* @param {string} organisation The organisation ID
|
|
5719
7325
|
* @param {*} [options] Override http request option.
|
|
@@ -5825,7 +7431,7 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5825
7431
|
};
|
|
5826
7432
|
}),
|
|
5827
7433
|
/**
|
|
5828
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7434
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5829
7435
|
* @summary Update Slack Bot
|
|
5830
7436
|
* @param {string} organisation The organisation ID
|
|
5831
7437
|
* @param {string} botId The Slack bot ID
|
|
@@ -5876,7 +7482,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5876
7482
|
const localVarAxiosParamCreator = (0, exports.AISlackBotsApiAxiosParamCreator)(configuration);
|
|
5877
7483
|
return {
|
|
5878
7484
|
/**
|
|
5879
|
-
* Creates a new Slack bot
|
|
7485
|
+
* 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
7486
|
* @summary Create Slack Bot
|
|
5881
7487
|
* @param {string} organisation The organisation ID
|
|
5882
7488
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5893,7 +7499,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5893
7499
|
});
|
|
5894
7500
|
},
|
|
5895
7501
|
/**
|
|
5896
|
-
* Permanently deletes a Slack bot
|
|
7502
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5897
7503
|
* @summary Delete Slack Bot
|
|
5898
7504
|
* @param {string} organisation The organisation ID
|
|
5899
7505
|
* @param {string} botId The Slack bot ID
|
|
@@ -5910,7 +7516,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5910
7516
|
});
|
|
5911
7517
|
},
|
|
5912
7518
|
/**
|
|
5913
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7519
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5914
7520
|
* @summary Get Slack Bot
|
|
5915
7521
|
* @param {string} organisation The organisation ID
|
|
5916
7522
|
* @param {string} botId The Slack bot ID
|
|
@@ -5927,7 +7533,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5927
7533
|
});
|
|
5928
7534
|
},
|
|
5929
7535
|
/**
|
|
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.
|
|
7536
|
+
* 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
7537
|
* @summary List Slack Bots
|
|
5932
7538
|
* @param {string} organisation The organisation ID
|
|
5933
7539
|
* @param {*} [options] Override http request option.
|
|
@@ -5979,7 +7585,7 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
5979
7585
|
});
|
|
5980
7586
|
},
|
|
5981
7587
|
/**
|
|
5982
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7588
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5983
7589
|
* @summary Update Slack Bot
|
|
5984
7590
|
* @param {string} organisation The organisation ID
|
|
5985
7591
|
* @param {string} botId The Slack bot ID
|
|
@@ -6007,7 +7613,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6007
7613
|
const localVarFp = (0, exports.AISlackBotsApiFp)(configuration);
|
|
6008
7614
|
return {
|
|
6009
7615
|
/**
|
|
6010
|
-
* Creates a new Slack bot
|
|
7616
|
+
* 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
7617
|
* @summary Create Slack Bot
|
|
6012
7618
|
* @param {string} organisation The organisation ID
|
|
6013
7619
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -6018,7 +7624,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6018
7624
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
6019
7625
|
},
|
|
6020
7626
|
/**
|
|
6021
|
-
* Permanently deletes a Slack bot
|
|
7627
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
6022
7628
|
* @summary Delete Slack Bot
|
|
6023
7629
|
* @param {string} organisation The organisation ID
|
|
6024
7630
|
* @param {string} botId The Slack bot ID
|
|
@@ -6029,7 +7635,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6029
7635
|
return localVarFp.deleteSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
6030
7636
|
},
|
|
6031
7637
|
/**
|
|
6032
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7638
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
6033
7639
|
* @summary Get Slack Bot
|
|
6034
7640
|
* @param {string} organisation The organisation ID
|
|
6035
7641
|
* @param {string} botId The Slack bot ID
|
|
@@ -6040,7 +7646,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6040
7646
|
return localVarFp.getSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
6041
7647
|
},
|
|
6042
7648
|
/**
|
|
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.
|
|
7649
|
+
* 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
7650
|
* @summary List Slack Bots
|
|
6045
7651
|
* @param {string} organisation The organisation ID
|
|
6046
7652
|
* @param {*} [options] Override http request option.
|
|
@@ -6074,7 +7680,7 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6074
7680
|
return localVarFp.searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(axios, basePath));
|
|
6075
7681
|
},
|
|
6076
7682
|
/**
|
|
6077
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7683
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6078
7684
|
* @summary Update Slack Bot
|
|
6079
7685
|
* @param {string} organisation The organisation ID
|
|
6080
7686
|
* @param {string} botId The Slack bot ID
|
|
@@ -6096,7 +7702,7 @@ exports.AISlackBotsApiFactory = AISlackBotsApiFactory;
|
|
|
6096
7702
|
*/
|
|
6097
7703
|
class AISlackBotsApi extends base_1.BaseAPI {
|
|
6098
7704
|
/**
|
|
6099
|
-
* Creates a new Slack bot
|
|
7705
|
+
* 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
7706
|
* @summary Create Slack Bot
|
|
6101
7707
|
* @param {string} organisation The organisation ID
|
|
6102
7708
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -6108,7 +7714,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6108
7714
|
return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6109
7715
|
}
|
|
6110
7716
|
/**
|
|
6111
|
-
* Permanently deletes a Slack bot
|
|
7717
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
6112
7718
|
* @summary Delete Slack Bot
|
|
6113
7719
|
* @param {string} organisation The organisation ID
|
|
6114
7720
|
* @param {string} botId The Slack bot ID
|
|
@@ -6120,7 +7726,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6120
7726
|
return (0, exports.AISlackBotsApiFp)(this.configuration).deleteSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6121
7727
|
}
|
|
6122
7728
|
/**
|
|
6123
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7729
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
6124
7730
|
* @summary Get Slack Bot
|
|
6125
7731
|
* @param {string} organisation The organisation ID
|
|
6126
7732
|
* @param {string} botId The Slack bot ID
|
|
@@ -6132,7 +7738,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6132
7738
|
return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6133
7739
|
}
|
|
6134
7740
|
/**
|
|
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.
|
|
7741
|
+
* 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
7742
|
* @summary List Slack Bots
|
|
6137
7743
|
* @param {string} organisation The organisation ID
|
|
6138
7744
|
* @param {*} [options] Override http request option.
|
|
@@ -6169,7 +7775,7 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
6169
7775
|
return (0, exports.AISlackBotsApiFp)(this.configuration).searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(this.axios, this.basePath));
|
|
6170
7776
|
}
|
|
6171
7777
|
/**
|
|
6172
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7778
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6173
7779
|
* @summary Update Slack Bot
|
|
6174
7780
|
* @param {string} organisation The organisation ID
|
|
6175
7781
|
* @param {string} botId The Slack bot ID
|
|
@@ -15354,7 +16960,230 @@ const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15354
16960
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
15355
16961
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15356
16962
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15357
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
16963
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
16964
|
+
return {
|
|
16965
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
16966
|
+
options: localVarRequestOptions,
|
|
16967
|
+
};
|
|
16968
|
+
}),
|
|
16969
|
+
};
|
|
16970
|
+
};
|
|
16971
|
+
exports.PurgeApiAxiosParamCreator = PurgeApiAxiosParamCreator;
|
|
16972
|
+
/**
|
|
16973
|
+
* PurgeApi - functional programming interface
|
|
16974
|
+
* @export
|
|
16975
|
+
*/
|
|
16976
|
+
const PurgeApiFp = function (configuration) {
|
|
16977
|
+
const localVarAxiosParamCreator = (0, exports.PurgeApiAxiosParamCreator)(configuration);
|
|
16978
|
+
return {
|
|
16979
|
+
/**
|
|
16980
|
+
*
|
|
16981
|
+
* @summary Purge cache via URL or cache keys
|
|
16982
|
+
* @param {string} organization Organization identifier
|
|
16983
|
+
* @param {string} project Project identifier
|
|
16984
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
16985
|
+
* @param {*} [options] Override http request option.
|
|
16986
|
+
* @throws {RequiredError}
|
|
16987
|
+
*/
|
|
16988
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
16989
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16990
|
+
var _a, _b, _c;
|
|
16991
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
|
|
16992
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16993
|
+
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;
|
|
16994
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16995
|
+
});
|
|
16996
|
+
},
|
|
16997
|
+
};
|
|
16998
|
+
};
|
|
16999
|
+
exports.PurgeApiFp = PurgeApiFp;
|
|
17000
|
+
/**
|
|
17001
|
+
* PurgeApi - factory interface
|
|
17002
|
+
* @export
|
|
17003
|
+
*/
|
|
17004
|
+
const PurgeApiFactory = function (configuration, basePath, axios) {
|
|
17005
|
+
const localVarFp = (0, exports.PurgeApiFp)(configuration);
|
|
17006
|
+
return {
|
|
17007
|
+
/**
|
|
17008
|
+
*
|
|
17009
|
+
* @summary Purge cache via URL or cache keys
|
|
17010
|
+
* @param {string} organization Organization identifier
|
|
17011
|
+
* @param {string} project Project identifier
|
|
17012
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17013
|
+
* @param {*} [options] Override http request option.
|
|
17014
|
+
* @throws {RequiredError}
|
|
17015
|
+
*/
|
|
17016
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17017
|
+
return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
|
|
17018
|
+
},
|
|
17019
|
+
};
|
|
17020
|
+
};
|
|
17021
|
+
exports.PurgeApiFactory = PurgeApiFactory;
|
|
17022
|
+
/**
|
|
17023
|
+
* PurgeApi - object-oriented interface
|
|
17024
|
+
* @export
|
|
17025
|
+
* @class PurgeApi
|
|
17026
|
+
* @extends {BaseAPI}
|
|
17027
|
+
*/
|
|
17028
|
+
class PurgeApi extends base_1.BaseAPI {
|
|
17029
|
+
/**
|
|
17030
|
+
*
|
|
17031
|
+
* @summary Purge cache via URL or cache keys
|
|
17032
|
+
* @param {string} organization Organization identifier
|
|
17033
|
+
* @param {string} project Project identifier
|
|
17034
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17035
|
+
* @param {*} [options] Override http request option.
|
|
17036
|
+
* @throws {RequiredError}
|
|
17037
|
+
* @memberof PurgeApi
|
|
17038
|
+
*/
|
|
17039
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17040
|
+
return (0, exports.PurgeApiFp)(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17041
|
+
}
|
|
17042
|
+
}
|
|
17043
|
+
exports.PurgeApi = PurgeApi;
|
|
17044
|
+
/**
|
|
17045
|
+
* RestoreManagementApi - axios parameter creator
|
|
17046
|
+
* @export
|
|
17047
|
+
*/
|
|
17048
|
+
const RestoreManagementApiAxiosParamCreator = function (configuration) {
|
|
17049
|
+
return {
|
|
17050
|
+
/**
|
|
17051
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17052
|
+
* @summary Get the status of a restore operation
|
|
17053
|
+
* @param {string} organisation The organisation ID
|
|
17054
|
+
* @param {string} application The application ID
|
|
17055
|
+
* @param {string} environment The environment ID
|
|
17056
|
+
* @param {string} restoreId The restore operation ID
|
|
17057
|
+
* @param {*} [options] Override http request option.
|
|
17058
|
+
* @throws {RequiredError}
|
|
17059
|
+
*/
|
|
17060
|
+
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 = {}) {
|
|
17061
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17062
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'organisation', organisation);
|
|
17063
|
+
// verify required parameter 'application' is not null or undefined
|
|
17064
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'application', application);
|
|
17065
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17066
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'environment', environment);
|
|
17067
|
+
// verify required parameter 'restoreId' is not null or undefined
|
|
17068
|
+
(0, common_1.assertParamExists)('getRestoreStatus', 'restoreId', restoreId);
|
|
17069
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}`
|
|
17070
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17071
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17072
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17073
|
+
.replace(`{${"restoreId"}}`, encodeURIComponent(String(restoreId)));
|
|
17074
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17075
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17076
|
+
let baseOptions;
|
|
17077
|
+
if (configuration) {
|
|
17078
|
+
baseOptions = configuration.baseOptions;
|
|
17079
|
+
}
|
|
17080
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17081
|
+
const localVarHeaderParameter = {};
|
|
17082
|
+
const localVarQueryParameter = {};
|
|
17083
|
+
// authentication BearerAuth required
|
|
17084
|
+
// http bearer authentication required
|
|
17085
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17086
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17087
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17088
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17089
|
+
return {
|
|
17090
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17091
|
+
options: localVarRequestOptions,
|
|
17092
|
+
};
|
|
17093
|
+
}),
|
|
17094
|
+
/**
|
|
17095
|
+
* 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.
|
|
17096
|
+
* @summary Restore a database backup to a target environment
|
|
17097
|
+
* @param {string} organisation The organisation ID
|
|
17098
|
+
* @param {string} application The application ID
|
|
17099
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17100
|
+
* @param {string} backupId The backup ID to restore from
|
|
17101
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17102
|
+
* @param {*} [options] Override http request option.
|
|
17103
|
+
* @throws {RequiredError}
|
|
17104
|
+
*/
|
|
17105
|
+
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 = {}) {
|
|
17106
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17107
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'organisation', organisation);
|
|
17108
|
+
// verify required parameter 'application' is not null or undefined
|
|
17109
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'application', application);
|
|
17110
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17111
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'environment', environment);
|
|
17112
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17113
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'backupId', backupId);
|
|
17114
|
+
// verify required parameter 'restoreDatabaseRequest' is not null or undefined
|
|
17115
|
+
(0, common_1.assertParamExists)('restoreDatabase', 'restoreDatabaseRequest', restoreDatabaseRequest);
|
|
17116
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database`
|
|
17117
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17118
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17119
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17120
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17121
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17122
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17123
|
+
let baseOptions;
|
|
17124
|
+
if (configuration) {
|
|
17125
|
+
baseOptions = configuration.baseOptions;
|
|
17126
|
+
}
|
|
17127
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17128
|
+
const localVarHeaderParameter = {};
|
|
17129
|
+
const localVarQueryParameter = {};
|
|
17130
|
+
// authentication BearerAuth required
|
|
17131
|
+
// http bearer authentication required
|
|
17132
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17133
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17134
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17135
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17136
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17137
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restoreDatabaseRequest, localVarRequestOptions, configuration);
|
|
17138
|
+
return {
|
|
17139
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
17140
|
+
options: localVarRequestOptions,
|
|
17141
|
+
};
|
|
17142
|
+
}),
|
|
17143
|
+
/**
|
|
17144
|
+
* 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.
|
|
17145
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17146
|
+
* @param {string} organisation The organisation ID
|
|
17147
|
+
* @param {string} application The application ID
|
|
17148
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17149
|
+
* @param {string} backupId The backup ID to restore from
|
|
17150
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17151
|
+
* @param {*} [options] Override http request option.
|
|
17152
|
+
* @throws {RequiredError}
|
|
17153
|
+
*/
|
|
17154
|
+
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 = {}) {
|
|
17155
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17156
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'organisation', organisation);
|
|
17157
|
+
// verify required parameter 'application' is not null or undefined
|
|
17158
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'application', application);
|
|
17159
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17160
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'environment', environment);
|
|
17161
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17162
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'backupId', backupId);
|
|
17163
|
+
// verify required parameter 'restoreFilesystemRequest' is not null or undefined
|
|
17164
|
+
(0, common_1.assertParamExists)('restoreFilesystem', 'restoreFilesystemRequest', restoreFilesystemRequest);
|
|
17165
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem`
|
|
17166
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17167
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17168
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17169
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17170
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17171
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
17172
|
+
let baseOptions;
|
|
17173
|
+
if (configuration) {
|
|
17174
|
+
baseOptions = configuration.baseOptions;
|
|
17175
|
+
}
|
|
17176
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17177
|
+
const localVarHeaderParameter = {};
|
|
17178
|
+
const localVarQueryParameter = {};
|
|
17179
|
+
// authentication BearerAuth required
|
|
17180
|
+
// http bearer authentication required
|
|
17181
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
17182
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17183
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
17184
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17185
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17186
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(restoreFilesystemRequest, localVarRequestOptions, configuration);
|
|
15358
17187
|
return {
|
|
15359
17188
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
15360
17189
|
options: localVarRequestOptions,
|
|
@@ -15362,79 +17191,180 @@ const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15362
17191
|
}),
|
|
15363
17192
|
};
|
|
15364
17193
|
};
|
|
15365
|
-
exports.
|
|
17194
|
+
exports.RestoreManagementApiAxiosParamCreator = RestoreManagementApiAxiosParamCreator;
|
|
15366
17195
|
/**
|
|
15367
|
-
*
|
|
17196
|
+
* RestoreManagementApi - functional programming interface
|
|
15368
17197
|
* @export
|
|
15369
17198
|
*/
|
|
15370
|
-
const
|
|
15371
|
-
const localVarAxiosParamCreator = (0, exports.
|
|
17199
|
+
const RestoreManagementApiFp = function (configuration) {
|
|
17200
|
+
const localVarAxiosParamCreator = (0, exports.RestoreManagementApiAxiosParamCreator)(configuration);
|
|
15372
17201
|
return {
|
|
15373
17202
|
/**
|
|
15374
|
-
*
|
|
15375
|
-
* @summary
|
|
15376
|
-
* @param {string}
|
|
15377
|
-
* @param {string}
|
|
15378
|
-
* @param {
|
|
17203
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17204
|
+
* @summary Get the status of a restore operation
|
|
17205
|
+
* @param {string} organisation The organisation ID
|
|
17206
|
+
* @param {string} application The application ID
|
|
17207
|
+
* @param {string} environment The environment ID
|
|
17208
|
+
* @param {string} restoreId The restore operation ID
|
|
15379
17209
|
* @param {*} [options] Override http request option.
|
|
15380
17210
|
* @throws {RequiredError}
|
|
15381
17211
|
*/
|
|
15382
|
-
|
|
17212
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
15383
17213
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15384
17214
|
var _a, _b, _c;
|
|
15385
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
17215
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRestoreStatus(organisation, application, environment, restoreId, options);
|
|
15386
17216
|
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['
|
|
17217
|
+
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;
|
|
17218
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17219
|
+
});
|
|
17220
|
+
},
|
|
17221
|
+
/**
|
|
17222
|
+
* 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.
|
|
17223
|
+
* @summary Restore a database backup to a target environment
|
|
17224
|
+
* @param {string} organisation The organisation ID
|
|
17225
|
+
* @param {string} application The application ID
|
|
17226
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17227
|
+
* @param {string} backupId The backup ID to restore from
|
|
17228
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17229
|
+
* @param {*} [options] Override http request option.
|
|
17230
|
+
* @throws {RequiredError}
|
|
17231
|
+
*/
|
|
17232
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17234
|
+
var _a, _b, _c;
|
|
17235
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options);
|
|
17236
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17237
|
+
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;
|
|
17238
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17239
|
+
});
|
|
17240
|
+
},
|
|
17241
|
+
/**
|
|
17242
|
+
* 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.
|
|
17243
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17244
|
+
* @param {string} organisation The organisation ID
|
|
17245
|
+
* @param {string} application The application ID
|
|
17246
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17247
|
+
* @param {string} backupId The backup ID to restore from
|
|
17248
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17249
|
+
* @param {*} [options] Override http request option.
|
|
17250
|
+
* @throws {RequiredError}
|
|
17251
|
+
*/
|
|
17252
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17253
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17254
|
+
var _a, _b, _c;
|
|
17255
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options);
|
|
17256
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17257
|
+
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
17258
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15389
17259
|
});
|
|
15390
17260
|
},
|
|
15391
17261
|
};
|
|
15392
17262
|
};
|
|
15393
|
-
exports.
|
|
17263
|
+
exports.RestoreManagementApiFp = RestoreManagementApiFp;
|
|
15394
17264
|
/**
|
|
15395
|
-
*
|
|
17265
|
+
* RestoreManagementApi - factory interface
|
|
15396
17266
|
* @export
|
|
15397
17267
|
*/
|
|
15398
|
-
const
|
|
15399
|
-
const localVarFp = (0, exports.
|
|
17268
|
+
const RestoreManagementApiFactory = function (configuration, basePath, axios) {
|
|
17269
|
+
const localVarFp = (0, exports.RestoreManagementApiFp)(configuration);
|
|
15400
17270
|
return {
|
|
15401
17271
|
/**
|
|
15402
|
-
*
|
|
15403
|
-
* @summary
|
|
15404
|
-
* @param {string}
|
|
15405
|
-
* @param {string}
|
|
15406
|
-
* @param {
|
|
17272
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17273
|
+
* @summary Get the status of a restore operation
|
|
17274
|
+
* @param {string} organisation The organisation ID
|
|
17275
|
+
* @param {string} application The application ID
|
|
17276
|
+
* @param {string} environment The environment ID
|
|
17277
|
+
* @param {string} restoreId The restore operation ID
|
|
15407
17278
|
* @param {*} [options] Override http request option.
|
|
15408
17279
|
* @throws {RequiredError}
|
|
15409
17280
|
*/
|
|
15410
|
-
|
|
15411
|
-
return localVarFp.
|
|
17281
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17282
|
+
return localVarFp.getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(axios, basePath));
|
|
17283
|
+
},
|
|
17284
|
+
/**
|
|
17285
|
+
* 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.
|
|
17286
|
+
* @summary Restore a database backup to a target environment
|
|
17287
|
+
* @param {string} organisation The organisation ID
|
|
17288
|
+
* @param {string} application The application ID
|
|
17289
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17290
|
+
* @param {string} backupId The backup ID to restore from
|
|
17291
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17292
|
+
* @param {*} [options] Override http request option.
|
|
17293
|
+
* @throws {RequiredError}
|
|
17294
|
+
*/
|
|
17295
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17296
|
+
return localVarFp.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
17297
|
+
},
|
|
17298
|
+
/**
|
|
17299
|
+
* 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.
|
|
17300
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17301
|
+
* @param {string} organisation The organisation ID
|
|
17302
|
+
* @param {string} application The application ID
|
|
17303
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17304
|
+
* @param {string} backupId The backup ID to restore from
|
|
17305
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17306
|
+
* @param {*} [options] Override http request option.
|
|
17307
|
+
* @throws {RequiredError}
|
|
17308
|
+
*/
|
|
17309
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17310
|
+
return localVarFp.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(axios, basePath));
|
|
15412
17311
|
},
|
|
15413
17312
|
};
|
|
15414
17313
|
};
|
|
15415
|
-
exports.
|
|
17314
|
+
exports.RestoreManagementApiFactory = RestoreManagementApiFactory;
|
|
15416
17315
|
/**
|
|
15417
|
-
*
|
|
17316
|
+
* RestoreManagementApi - object-oriented interface
|
|
15418
17317
|
* @export
|
|
15419
|
-
* @class
|
|
17318
|
+
* @class RestoreManagementApi
|
|
15420
17319
|
* @extends {BaseAPI}
|
|
15421
17320
|
*/
|
|
15422
|
-
class
|
|
17321
|
+
class RestoreManagementApi extends base_1.BaseAPI {
|
|
15423
17322
|
/**
|
|
15424
|
-
*
|
|
15425
|
-
* @summary
|
|
15426
|
-
* @param {string}
|
|
15427
|
-
* @param {string}
|
|
15428
|
-
* @param {
|
|
17323
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17324
|
+
* @summary Get the status of a restore operation
|
|
17325
|
+
* @param {string} organisation The organisation ID
|
|
17326
|
+
* @param {string} application The application ID
|
|
17327
|
+
* @param {string} environment The environment ID
|
|
17328
|
+
* @param {string} restoreId The restore operation ID
|
|
15429
17329
|
* @param {*} [options] Override http request option.
|
|
15430
17330
|
* @throws {RequiredError}
|
|
15431
|
-
* @memberof
|
|
17331
|
+
* @memberof RestoreManagementApi
|
|
15432
17332
|
*/
|
|
15433
|
-
|
|
15434
|
-
return (0, exports.
|
|
17333
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17334
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(this.axios, this.basePath));
|
|
17335
|
+
}
|
|
17336
|
+
/**
|
|
17337
|
+
* 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.
|
|
17338
|
+
* @summary Restore a database backup to a target environment
|
|
17339
|
+
* @param {string} organisation The organisation ID
|
|
17340
|
+
* @param {string} application The application ID
|
|
17341
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17342
|
+
* @param {string} backupId The backup ID to restore from
|
|
17343
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17344
|
+
* @param {*} [options] Override http request option.
|
|
17345
|
+
* @throws {RequiredError}
|
|
17346
|
+
* @memberof RestoreManagementApi
|
|
17347
|
+
*/
|
|
17348
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17349
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17350
|
+
}
|
|
17351
|
+
/**
|
|
17352
|
+
* 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.
|
|
17353
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17354
|
+
* @param {string} organisation The organisation ID
|
|
17355
|
+
* @param {string} application The application ID
|
|
17356
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17357
|
+
* @param {string} backupId The backup ID to restore from
|
|
17358
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17359
|
+
* @param {*} [options] Override http request option.
|
|
17360
|
+
* @throws {RequiredError}
|
|
17361
|
+
* @memberof RestoreManagementApi
|
|
17362
|
+
*/
|
|
17363
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17364
|
+
return (0, exports.RestoreManagementApiFp)(this.configuration).restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15435
17365
|
}
|
|
15436
17366
|
}
|
|
15437
|
-
exports.
|
|
17367
|
+
exports.RestoreManagementApi = RestoreManagementApi;
|
|
15438
17368
|
/**
|
|
15439
17369
|
* RulesApi - axios parameter creator
|
|
15440
17370
|
* @export
|
|
@@ -19354,29 +21284,27 @@ exports.SSHAccessApi = SSHAccessApi;
|
|
|
19354
21284
|
const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
19355
21285
|
return {
|
|
19356
21286
|
/**
|
|
19357
|
-
*
|
|
19358
|
-
* @summary Delete
|
|
19359
|
-
* @param {string} organisation
|
|
19360
|
-
* @param {string} application
|
|
19361
|
-
* @param {string} environment
|
|
19362
|
-
* @param {
|
|
21287
|
+
* 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.
|
|
21288
|
+
* @summary Delete Scaling Policy
|
|
21289
|
+
* @param {string} organisation
|
|
21290
|
+
* @param {string} application
|
|
21291
|
+
* @param {string} environment
|
|
21292
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21293
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19363
21294
|
* @param {*} [options] Override http request option.
|
|
19364
21295
|
* @throws {RequiredError}
|
|
19365
21296
|
*/
|
|
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 = {}) {
|
|
21297
|
+
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
21298
|
// verify required parameter 'organisation' is not null or undefined
|
|
19368
21299
|
(0, common_1.assertParamExists)('deleteScalingPolicy', 'organisation', organisation);
|
|
19369
21300
|
// verify required parameter 'application' is not null or undefined
|
|
19370
21301
|
(0, common_1.assertParamExists)('deleteScalingPolicy', 'application', application);
|
|
19371
21302
|
// verify required parameter 'environment' is not null or undefined
|
|
19372
21303
|
(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}`
|
|
21304
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19376
21305
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19377
21306
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
19378
|
-
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
19379
|
-
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
21307
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
19380
21308
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19381
21309
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
19382
21310
|
let baseOptions;
|
|
@@ -19389,6 +21317,12 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19389
21317
|
// authentication BearerAuth required
|
|
19390
21318
|
// http bearer authentication required
|
|
19391
21319
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21320
|
+
if (metric !== undefined) {
|
|
21321
|
+
localVarQueryParameter['metric'] = metric;
|
|
21322
|
+
}
|
|
21323
|
+
if (policyName !== undefined) {
|
|
21324
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21325
|
+
}
|
|
19392
21326
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19393
21327
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19394
21328
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19398,21 +21332,23 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19398
21332
|
};
|
|
19399
21333
|
}),
|
|
19400
21334
|
/**
|
|
19401
|
-
*
|
|
19402
|
-
* @summary
|
|
19403
|
-
* @param {string} organisation
|
|
19404
|
-
* @param {string} application
|
|
19405
|
-
* @param {string} environment
|
|
21335
|
+
* 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).
|
|
21336
|
+
* @summary List Scaling Policies
|
|
21337
|
+
* @param {string} organisation
|
|
21338
|
+
* @param {string} application
|
|
21339
|
+
* @param {string} environment
|
|
21340
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21341
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19406
21342
|
* @param {*} [options] Override http request option.
|
|
19407
21343
|
* @throws {RequiredError}
|
|
19408
21344
|
*/
|
|
19409
|
-
|
|
21345
|
+
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
21346
|
// verify required parameter 'organisation' is not null or undefined
|
|
19411
|
-
(0, common_1.assertParamExists)('
|
|
21347
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'organisation', organisation);
|
|
19412
21348
|
// verify required parameter 'application' is not null or undefined
|
|
19413
|
-
(0, common_1.assertParamExists)('
|
|
21349
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'application', application);
|
|
19414
21350
|
// verify required parameter 'environment' is not null or undefined
|
|
19415
|
-
(0, common_1.assertParamExists)('
|
|
21351
|
+
(0, common_1.assertParamExists)('listScalingPolicies', 'environment', environment);
|
|
19416
21352
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19417
21353
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19418
21354
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19429,6 +21365,12 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19429
21365
|
// authentication BearerAuth required
|
|
19430
21366
|
// http bearer authentication required
|
|
19431
21367
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21368
|
+
if (metric !== undefined) {
|
|
21369
|
+
localVarQueryParameter['metric'] = metric;
|
|
21370
|
+
}
|
|
21371
|
+
if (policyName !== undefined) {
|
|
21372
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21373
|
+
}
|
|
19432
21374
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19433
21375
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19434
21376
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19438,24 +21380,25 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19438
21380
|
};
|
|
19439
21381
|
}),
|
|
19440
21382
|
/**
|
|
19441
|
-
*
|
|
19442
|
-
* @summary
|
|
19443
|
-
* @param {string} organisation
|
|
19444
|
-
* @param {string} application
|
|
19445
|
-
* @param {string} environment
|
|
19446
|
-
* @param {
|
|
21383
|
+
* 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.
|
|
21384
|
+
* @summary Upsert Scaling Policy
|
|
21385
|
+
* @param {string} organisation
|
|
21386
|
+
* @param {string} application
|
|
21387
|
+
* @param {string} environment
|
|
21388
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21389
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19447
21390
|
* @param {*} [options] Override http request option.
|
|
19448
21391
|
* @throws {RequiredError}
|
|
19449
21392
|
*/
|
|
19450
|
-
|
|
21393
|
+
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
21394
|
// verify required parameter 'organisation' is not null or undefined
|
|
19452
|
-
(0, common_1.assertParamExists)('
|
|
21395
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'organisation', organisation);
|
|
19453
21396
|
// verify required parameter 'application' is not null or undefined
|
|
19454
|
-
(0, common_1.assertParamExists)('
|
|
21397
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'application', application);
|
|
19455
21398
|
// verify required parameter 'environment' is not null or undefined
|
|
19456
|
-
(0, common_1.assertParamExists)('
|
|
19457
|
-
// verify required parameter '
|
|
19458
|
-
(0, common_1.assertParamExists)('
|
|
21399
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'environment', environment);
|
|
21400
|
+
// verify required parameter 'setScalingPolicyRequest' is not null or undefined
|
|
21401
|
+
(0, common_1.assertParamExists)('upsertScalingPolicy', 'setScalingPolicyRequest', setScalingPolicyRequest);
|
|
19459
21402
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19460
21403
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19461
21404
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19472,11 +21415,14 @@ const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19472
21415
|
// authentication BearerAuth required
|
|
19473
21416
|
// http bearer authentication required
|
|
19474
21417
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21418
|
+
if (policyName !== undefined) {
|
|
21419
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21420
|
+
}
|
|
19475
21421
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19476
21422
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
19477
21423
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19478
21424
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19479
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(
|
|
21425
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(setScalingPolicyRequest, localVarRequestOptions, configuration);
|
|
19480
21426
|
return {
|
|
19481
21427
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
19482
21428
|
options: localVarRequestOptions,
|
|
@@ -19493,58 +21439,62 @@ const ScalingPolicyApiFp = function (configuration) {
|
|
|
19493
21439
|
const localVarAxiosParamCreator = (0, exports.ScalingPolicyApiAxiosParamCreator)(configuration);
|
|
19494
21440
|
return {
|
|
19495
21441
|
/**
|
|
19496
|
-
*
|
|
19497
|
-
* @summary Delete
|
|
19498
|
-
* @param {string} organisation
|
|
19499
|
-
* @param {string} application
|
|
19500
|
-
* @param {string} environment
|
|
19501
|
-
* @param {
|
|
21442
|
+
* 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.
|
|
21443
|
+
* @summary Delete Scaling Policy
|
|
21444
|
+
* @param {string} organisation
|
|
21445
|
+
* @param {string} application
|
|
21446
|
+
* @param {string} environment
|
|
21447
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21448
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19502
21449
|
* @param {*} [options] Override http request option.
|
|
19503
21450
|
* @throws {RequiredError}
|
|
19504
21451
|
*/
|
|
19505
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
21452
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
19506
21453
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19507
21454
|
var _a, _b, _c;
|
|
19508
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, policyName, options);
|
|
21455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, metric, policyName, options);
|
|
19509
21456
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19510
21457
|
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
21458
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19512
21459
|
});
|
|
19513
21460
|
},
|
|
19514
21461
|
/**
|
|
19515
|
-
*
|
|
19516
|
-
* @summary
|
|
19517
|
-
* @param {string} organisation
|
|
19518
|
-
* @param {string} application
|
|
19519
|
-
* @param {string} environment
|
|
21462
|
+
* 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).
|
|
21463
|
+
* @summary List Scaling Policies
|
|
21464
|
+
* @param {string} organisation
|
|
21465
|
+
* @param {string} application
|
|
21466
|
+
* @param {string} environment
|
|
21467
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21468
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19520
21469
|
* @param {*} [options] Override http request option.
|
|
19521
21470
|
* @throws {RequiredError}
|
|
19522
21471
|
*/
|
|
19523
|
-
|
|
21472
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
19524
21473
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19525
21474
|
var _a, _b, _c;
|
|
19526
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21475
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listScalingPolicies(organisation, application, environment, metric, policyName, options);
|
|
19527
21476
|
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.
|
|
21477
|
+
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
21478
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19530
21479
|
});
|
|
19531
21480
|
},
|
|
19532
21481
|
/**
|
|
19533
|
-
*
|
|
19534
|
-
* @summary
|
|
19535
|
-
* @param {string} organisation
|
|
19536
|
-
* @param {string} application
|
|
19537
|
-
* @param {string} environment
|
|
19538
|
-
* @param {
|
|
21482
|
+
* 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.
|
|
21483
|
+
* @summary Upsert Scaling Policy
|
|
21484
|
+
* @param {string} organisation
|
|
21485
|
+
* @param {string} application
|
|
21486
|
+
* @param {string} environment
|
|
21487
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21488
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19539
21489
|
* @param {*} [options] Override http request option.
|
|
19540
21490
|
* @throws {RequiredError}
|
|
19541
21491
|
*/
|
|
19542
|
-
|
|
21492
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
19543
21493
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19544
21494
|
var _a, _b, _c;
|
|
19545
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21495
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options);
|
|
19546
21496
|
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.
|
|
21497
|
+
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
21498
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19549
21499
|
});
|
|
19550
21500
|
},
|
|
@@ -19559,42 +21509,46 @@ const ScalingPolicyApiFactory = function (configuration, basePath, axios) {
|
|
|
19559
21509
|
const localVarFp = (0, exports.ScalingPolicyApiFp)(configuration);
|
|
19560
21510
|
return {
|
|
19561
21511
|
/**
|
|
19562
|
-
*
|
|
19563
|
-
* @summary Delete
|
|
19564
|
-
* @param {string} organisation
|
|
19565
|
-
* @param {string} application
|
|
19566
|
-
* @param {string} environment
|
|
19567
|
-
* @param {
|
|
21512
|
+
* 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.
|
|
21513
|
+
* @summary Delete Scaling Policy
|
|
21514
|
+
* @param {string} organisation
|
|
21515
|
+
* @param {string} application
|
|
21516
|
+
* @param {string} environment
|
|
21517
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21518
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19568
21519
|
* @param {*} [options] Override http request option.
|
|
19569
21520
|
* @throws {RequiredError}
|
|
19570
21521
|
*/
|
|
19571
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
19572
|
-
return localVarFp.deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(axios, basePath));
|
|
21522
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21523
|
+
return localVarFp.deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19573
21524
|
},
|
|
19574
21525
|
/**
|
|
19575
|
-
*
|
|
19576
|
-
* @summary
|
|
19577
|
-
* @param {string} organisation
|
|
19578
|
-
* @param {string} application
|
|
19579
|
-
* @param {string} environment
|
|
21526
|
+
* 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).
|
|
21527
|
+
* @summary List Scaling Policies
|
|
21528
|
+
* @param {string} organisation
|
|
21529
|
+
* @param {string} application
|
|
21530
|
+
* @param {string} environment
|
|
21531
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21532
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19580
21533
|
* @param {*} [options] Override http request option.
|
|
19581
21534
|
* @throws {RequiredError}
|
|
19582
21535
|
*/
|
|
19583
|
-
|
|
19584
|
-
return localVarFp.
|
|
21536
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21537
|
+
return localVarFp.listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19585
21538
|
},
|
|
19586
21539
|
/**
|
|
19587
|
-
*
|
|
19588
|
-
* @summary
|
|
19589
|
-
* @param {string} organisation
|
|
19590
|
-
* @param {string} application
|
|
19591
|
-
* @param {string} environment
|
|
19592
|
-
* @param {
|
|
21540
|
+
* 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.
|
|
21541
|
+
* @summary Upsert Scaling Policy
|
|
21542
|
+
* @param {string} organisation
|
|
21543
|
+
* @param {string} application
|
|
21544
|
+
* @param {string} environment
|
|
21545
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21546
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19593
21547
|
* @param {*} [options] Override http request option.
|
|
19594
21548
|
* @throws {RequiredError}
|
|
19595
21549
|
*/
|
|
19596
|
-
|
|
19597
|
-
return localVarFp.
|
|
21550
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21551
|
+
return localVarFp.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(axios, basePath));
|
|
19598
21552
|
},
|
|
19599
21553
|
};
|
|
19600
21554
|
};
|
|
@@ -19607,48 +21561,182 @@ exports.ScalingPolicyApiFactory = ScalingPolicyApiFactory;
|
|
|
19607
21561
|
*/
|
|
19608
21562
|
class ScalingPolicyApi extends base_1.BaseAPI {
|
|
19609
21563
|
/**
|
|
19610
|
-
*
|
|
19611
|
-
* @summary Delete
|
|
19612
|
-
* @param {string} organisation
|
|
19613
|
-
* @param {string} application
|
|
19614
|
-
* @param {string} environment
|
|
19615
|
-
* @param {
|
|
21564
|
+
* 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.
|
|
21565
|
+
* @summary Delete Scaling Policy
|
|
21566
|
+
* @param {string} organisation
|
|
21567
|
+
* @param {string} application
|
|
21568
|
+
* @param {string} environment
|
|
21569
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21570
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19616
21571
|
* @param {*} [options] Override http request option.
|
|
19617
21572
|
* @throws {RequiredError}
|
|
19618
21573
|
* @memberof ScalingPolicyApi
|
|
19619
21574
|
*/
|
|
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));
|
|
21575
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21576
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19622
21577
|
}
|
|
19623
21578
|
/**
|
|
19624
|
-
*
|
|
19625
|
-
* @summary
|
|
19626
|
-
* @param {string} organisation
|
|
19627
|
-
* @param {string} application
|
|
19628
|
-
* @param {string} environment
|
|
21579
|
+
* 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).
|
|
21580
|
+
* @summary List Scaling Policies
|
|
21581
|
+
* @param {string} organisation
|
|
21582
|
+
* @param {string} application
|
|
21583
|
+
* @param {string} environment
|
|
21584
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21585
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19629
21586
|
* @param {*} [options] Override http request option.
|
|
19630
21587
|
* @throws {RequiredError}
|
|
19631
21588
|
* @memberof ScalingPolicyApi
|
|
19632
21589
|
*/
|
|
19633
|
-
|
|
19634
|
-
return (0, exports.ScalingPolicyApiFp)(this.configuration).
|
|
21590
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21591
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19635
21592
|
}
|
|
19636
21593
|
/**
|
|
19637
|
-
*
|
|
19638
|
-
* @summary
|
|
19639
|
-
* @param {string} organisation
|
|
19640
|
-
* @param {string} application
|
|
19641
|
-
* @param {string} environment
|
|
19642
|
-
* @param {
|
|
21594
|
+
* 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.
|
|
21595
|
+
* @summary Upsert Scaling Policy
|
|
21596
|
+
* @param {string} organisation
|
|
21597
|
+
* @param {string} application
|
|
21598
|
+
* @param {string} environment
|
|
21599
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21600
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19643
21601
|
* @param {*} [options] Override http request option.
|
|
19644
21602
|
* @throws {RequiredError}
|
|
19645
21603
|
* @memberof ScalingPolicyApi
|
|
19646
21604
|
*/
|
|
19647
|
-
|
|
19648
|
-
return (0, exports.ScalingPolicyApiFp)(this.configuration).
|
|
21605
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21606
|
+
return (0, exports.ScalingPolicyApiFp)(this.configuration).upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19649
21607
|
}
|
|
19650
21608
|
}
|
|
19651
21609
|
exports.ScalingPolicyApi = ScalingPolicyApi;
|
|
21610
|
+
/**
|
|
21611
|
+
* @export
|
|
21612
|
+
*/
|
|
21613
|
+
exports.DeleteScalingPolicyMetricEnum = {
|
|
21614
|
+
CpuUtilization: 'CPUUtilization',
|
|
21615
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21616
|
+
Rps: 'RPS'
|
|
21617
|
+
};
|
|
21618
|
+
/**
|
|
21619
|
+
* @export
|
|
21620
|
+
*/
|
|
21621
|
+
exports.ListScalingPoliciesMetricEnum = {
|
|
21622
|
+
CpuUtilization: 'CPUUtilization',
|
|
21623
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21624
|
+
Rps: 'RPS'
|
|
21625
|
+
};
|
|
21626
|
+
/**
|
|
21627
|
+
* SubscriptionApi - axios parameter creator
|
|
21628
|
+
* @export
|
|
21629
|
+
*/
|
|
21630
|
+
const SubscriptionApiAxiosParamCreator = function (configuration) {
|
|
21631
|
+
return {
|
|
21632
|
+
/**
|
|
21633
|
+
* 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.
|
|
21634
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21635
|
+
* @param {string} organisation
|
|
21636
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21637
|
+
* @param {*} [options] Override http request option.
|
|
21638
|
+
* @throws {RequiredError}
|
|
21639
|
+
*/
|
|
21640
|
+
getSubscriptionCloudUsage: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
|
|
21641
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
21642
|
+
(0, common_1.assertParamExists)('getSubscriptionCloudUsage', 'organisation', organisation);
|
|
21643
|
+
const localVarPath = `/api/v3/organizations/{organisation}/subscription/cloud-usage`
|
|
21644
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
21645
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21646
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
21647
|
+
let baseOptions;
|
|
21648
|
+
if (configuration) {
|
|
21649
|
+
baseOptions = configuration.baseOptions;
|
|
21650
|
+
}
|
|
21651
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21652
|
+
const localVarHeaderParameter = {};
|
|
21653
|
+
const localVarQueryParameter = {};
|
|
21654
|
+
// authentication BearerAuth required
|
|
21655
|
+
// http bearer authentication required
|
|
21656
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
21657
|
+
if (month !== undefined) {
|
|
21658
|
+
localVarQueryParameter['month'] = month;
|
|
21659
|
+
}
|
|
21660
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
21661
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21662
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21663
|
+
return {
|
|
21664
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
21665
|
+
options: localVarRequestOptions,
|
|
21666
|
+
};
|
|
21667
|
+
}),
|
|
21668
|
+
};
|
|
21669
|
+
};
|
|
21670
|
+
exports.SubscriptionApiAxiosParamCreator = SubscriptionApiAxiosParamCreator;
|
|
21671
|
+
/**
|
|
21672
|
+
* SubscriptionApi - functional programming interface
|
|
21673
|
+
* @export
|
|
21674
|
+
*/
|
|
21675
|
+
const SubscriptionApiFp = function (configuration) {
|
|
21676
|
+
const localVarAxiosParamCreator = (0, exports.SubscriptionApiAxiosParamCreator)(configuration);
|
|
21677
|
+
return {
|
|
21678
|
+
/**
|
|
21679
|
+
* 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.
|
|
21680
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21681
|
+
* @param {string} organisation
|
|
21682
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21683
|
+
* @param {*} [options] Override http request option.
|
|
21684
|
+
* @throws {RequiredError}
|
|
21685
|
+
*/
|
|
21686
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21688
|
+
var _a, _b, _c;
|
|
21689
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionCloudUsage(organisation, month, options);
|
|
21690
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
21691
|
+
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;
|
|
21692
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21693
|
+
});
|
|
21694
|
+
},
|
|
21695
|
+
};
|
|
21696
|
+
};
|
|
21697
|
+
exports.SubscriptionApiFp = SubscriptionApiFp;
|
|
21698
|
+
/**
|
|
21699
|
+
* SubscriptionApi - factory interface
|
|
21700
|
+
* @export
|
|
21701
|
+
*/
|
|
21702
|
+
const SubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
21703
|
+
const localVarFp = (0, exports.SubscriptionApiFp)(configuration);
|
|
21704
|
+
return {
|
|
21705
|
+
/**
|
|
21706
|
+
* 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.
|
|
21707
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21708
|
+
* @param {string} organisation
|
|
21709
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21710
|
+
* @param {*} [options] Override http request option.
|
|
21711
|
+
* @throws {RequiredError}
|
|
21712
|
+
*/
|
|
21713
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21714
|
+
return localVarFp.getSubscriptionCloudUsage(organisation, month, options).then((request) => request(axios, basePath));
|
|
21715
|
+
},
|
|
21716
|
+
};
|
|
21717
|
+
};
|
|
21718
|
+
exports.SubscriptionApiFactory = SubscriptionApiFactory;
|
|
21719
|
+
/**
|
|
21720
|
+
* SubscriptionApi - object-oriented interface
|
|
21721
|
+
* @export
|
|
21722
|
+
* @class SubscriptionApi
|
|
21723
|
+
* @extends {BaseAPI}
|
|
21724
|
+
*/
|
|
21725
|
+
class SubscriptionApi extends base_1.BaseAPI {
|
|
21726
|
+
/**
|
|
21727
|
+
* 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.
|
|
21728
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21729
|
+
* @param {string} organisation
|
|
21730
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21731
|
+
* @param {*} [options] Override http request option.
|
|
21732
|
+
* @throws {RequiredError}
|
|
21733
|
+
* @memberof SubscriptionApi
|
|
21734
|
+
*/
|
|
21735
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21736
|
+
return (0, exports.SubscriptionApiFp)(this.configuration).getSubscriptionCloudUsage(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
21737
|
+
}
|
|
21738
|
+
}
|
|
21739
|
+
exports.SubscriptionApi = SubscriptionApi;
|
|
19652
21740
|
/**
|
|
19653
21741
|
* TokensApi - axios parameter creator
|
|
19654
21742
|
* @export
|