@quantcdn/quant-client 4.15.4 → 4.21.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api.ts +4744 -718
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +8412 -5709
- package/dist/api.js +2789 -360
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +8412 -5709
- package/dist/esm/api.js +2758 -346
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/esm/api.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* QuantCDN API
|
|
5
5
|
* Unified API for QuantCDN Admin and QuantCloud Platform services
|
|
6
6
|
*
|
|
7
|
-
* The version of the OpenAPI document: 4.
|
|
7
|
+
* The version of the OpenAPI document: 4.21.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -111,6 +111,10 @@ export const CreateApplicationRequestDatabaseEngineEnum = {
|
|
|
111
111
|
Mysql: 'mysql',
|
|
112
112
|
Postgres: 'postgres'
|
|
113
113
|
};
|
|
114
|
+
export const CreateCustomToolRequestResponseModeEnum = {
|
|
115
|
+
Llm: 'llm',
|
|
116
|
+
Direct: 'direct'
|
|
117
|
+
};
|
|
114
118
|
export const CreateFilterPolicyRequestRulesInnerActionEnum = {
|
|
115
119
|
Block: 'BLOCK',
|
|
116
120
|
Redact: 'REDACT'
|
|
@@ -177,7 +181,7 @@ export const EnvironmentSummaryDeploymentStatusEnum = {
|
|
|
177
181
|
};
|
|
178
182
|
export const GetAIOrchestrationStatus200ResponseStatusEnum = {
|
|
179
183
|
Pending: 'pending',
|
|
180
|
-
|
|
184
|
+
WaitingTools: 'waiting_tools',
|
|
181
185
|
Synthesizing: 'synthesizing',
|
|
182
186
|
Complete: 'complete',
|
|
183
187
|
Failed: 'failed'
|
|
@@ -188,6 +192,10 @@ export const GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = {
|
|
|
188
192
|
Complete: 'complete',
|
|
189
193
|
Failed: 'failed'
|
|
190
194
|
};
|
|
195
|
+
export const GetCustomTool200ResponseToolResponseModeEnum = {
|
|
196
|
+
Llm: 'llm',
|
|
197
|
+
Direct: 'direct'
|
|
198
|
+
};
|
|
191
199
|
export const GetDurableExecutionStatus200ResponseStatusEnum = {
|
|
192
200
|
Pending: 'pending',
|
|
193
201
|
Running: 'running',
|
|
@@ -200,6 +208,17 @@ export const GetGovernanceConfig200ResponseModelPolicyEnum = {
|
|
|
200
208
|
Allowlist: 'allowlist',
|
|
201
209
|
Blocklist: 'blocklist'
|
|
202
210
|
};
|
|
211
|
+
export const GetRestoreStatus200ResponseStatusEnum = {
|
|
212
|
+
Pending: 'pending',
|
|
213
|
+
InProgress: 'in_progress',
|
|
214
|
+
Completed: 'completed',
|
|
215
|
+
Failed: 'failed'
|
|
216
|
+
};
|
|
217
|
+
export const GetScalingPolicyResponseMetricEnum = {
|
|
218
|
+
CpuUtilization: 'CPUUtilization',
|
|
219
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
220
|
+
Rps: 'RPS'
|
|
221
|
+
};
|
|
203
222
|
export const GetSlackBot200ResponseBotSetupTypeEnum = {
|
|
204
223
|
Quant: 'quant',
|
|
205
224
|
Byo: 'byo'
|
|
@@ -281,6 +300,17 @@ export const ListTasks200ResponseTasksInnerStatusEnum = {
|
|
|
281
300
|
Cancelled: 'cancelled',
|
|
282
301
|
Blocked: 'blocked'
|
|
283
302
|
};
|
|
303
|
+
export const OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = {
|
|
304
|
+
Stop: 'stop',
|
|
305
|
+
ToolCalls: 'tool_calls',
|
|
306
|
+
Length: 'length'
|
|
307
|
+
};
|
|
308
|
+
export const OaiChatCompletionsRequestMessagesInnerRoleEnum = {
|
|
309
|
+
System: 'system',
|
|
310
|
+
User: 'user',
|
|
311
|
+
Assistant: 'assistant',
|
|
312
|
+
Tool: 'tool'
|
|
313
|
+
};
|
|
284
314
|
export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
285
315
|
Off: 'off',
|
|
286
316
|
SpotOnly: 'spot-only',
|
|
@@ -308,7 +338,7 @@ export const QueryVectorCollectionRequestSortOrderEnum = {
|
|
|
308
338
|
Asc: 'asc',
|
|
309
339
|
Desc: 'desc'
|
|
310
340
|
};
|
|
311
|
-
export const
|
|
341
|
+
export const SetScalingPolicyRequestMetricEnum = {
|
|
312
342
|
CpuUtilization: 'CPUUtilization',
|
|
313
343
|
MemoryUtilization: 'MemoryUtilization',
|
|
314
344
|
Rps: 'RPS'
|
|
@@ -397,6 +427,158 @@ export const WafConfigThresholdsInnerModeEnum = {
|
|
|
397
427
|
Report: 'report',
|
|
398
428
|
Block: 'block'
|
|
399
429
|
};
|
|
430
|
+
/**
|
|
431
|
+
* AIApi - axios parameter creator
|
|
432
|
+
* @export
|
|
433
|
+
*/
|
|
434
|
+
export const AIApiAxiosParamCreator = function (configuration) {
|
|
435
|
+
return {
|
|
436
|
+
/**
|
|
437
|
+
* 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.
|
|
438
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
439
|
+
* @param {string} organisation
|
|
440
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
441
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
442
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
443
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
444
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
445
|
+
* @param {*} [options] Override http request option.
|
|
446
|
+
* @throws {RequiredError}
|
|
447
|
+
*/
|
|
448
|
+
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 = {}) {
|
|
449
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
450
|
+
assertParamExists('getAIUsageStats', 'organisation', organisation);
|
|
451
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
|
|
452
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
453
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
454
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
455
|
+
let baseOptions;
|
|
456
|
+
if (configuration) {
|
|
457
|
+
baseOptions = configuration.baseOptions;
|
|
458
|
+
}
|
|
459
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
460
|
+
const localVarHeaderParameter = {};
|
|
461
|
+
const localVarQueryParameter = {};
|
|
462
|
+
// authentication BearerAuth required
|
|
463
|
+
// http bearer authentication required
|
|
464
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
465
|
+
if (month !== undefined) {
|
|
466
|
+
localVarQueryParameter['month'] = month;
|
|
467
|
+
}
|
|
468
|
+
if (groupBy !== undefined) {
|
|
469
|
+
localVarQueryParameter['groupBy'] = groupBy;
|
|
470
|
+
}
|
|
471
|
+
if (include !== undefined) {
|
|
472
|
+
localVarQueryParameter['include'] = include;
|
|
473
|
+
}
|
|
474
|
+
if (userId !== undefined) {
|
|
475
|
+
localVarQueryParameter['userId'] = userId;
|
|
476
|
+
}
|
|
477
|
+
if (tokenId !== undefined) {
|
|
478
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
479
|
+
}
|
|
480
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
481
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
482
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
483
|
+
return {
|
|
484
|
+
url: toPathString(localVarUrlObj),
|
|
485
|
+
options: localVarRequestOptions,
|
|
486
|
+
};
|
|
487
|
+
}),
|
|
488
|
+
};
|
|
489
|
+
};
|
|
490
|
+
/**
|
|
491
|
+
* AIApi - functional programming interface
|
|
492
|
+
* @export
|
|
493
|
+
*/
|
|
494
|
+
export const AIApiFp = function (configuration) {
|
|
495
|
+
const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration);
|
|
496
|
+
return {
|
|
497
|
+
/**
|
|
498
|
+
* 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.
|
|
499
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
500
|
+
* @param {string} organisation
|
|
501
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
502
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
503
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
504
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
505
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
506
|
+
* @param {*} [options] Override http request option.
|
|
507
|
+
* @throws {RequiredError}
|
|
508
|
+
*/
|
|
509
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
510
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
511
|
+
var _a, _b, _c;
|
|
512
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options);
|
|
513
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
514
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIApi.getAIUsageStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
515
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
516
|
+
});
|
|
517
|
+
},
|
|
518
|
+
};
|
|
519
|
+
};
|
|
520
|
+
/**
|
|
521
|
+
* AIApi - factory interface
|
|
522
|
+
* @export
|
|
523
|
+
*/
|
|
524
|
+
export const AIApiFactory = function (configuration, basePath, axios) {
|
|
525
|
+
const localVarFp = AIApiFp(configuration);
|
|
526
|
+
return {
|
|
527
|
+
/**
|
|
528
|
+
* 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.
|
|
529
|
+
* @summary Organisation AI usage breakdown (subscription page parity)
|
|
530
|
+
* @param {string} organisation
|
|
531
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
532
|
+
* @param {GetAIUsageStatsGroupByEnum} [groupBy]
|
|
533
|
+
* @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
|
|
534
|
+
* @param {string} [userId] Scope the daily series to a user
|
|
535
|
+
* @param {string} [tokenId] Scope the daily series to a token
|
|
536
|
+
* @param {*} [options] Override http request option.
|
|
537
|
+
* @throws {RequiredError}
|
|
538
|
+
*/
|
|
539
|
+
getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
|
|
540
|
+
return localVarFp.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(axios, basePath));
|
|
541
|
+
},
|
|
542
|
+
};
|
|
543
|
+
};
|
|
544
|
+
/**
|
|
545
|
+
* AIApi - object-oriented interface
|
|
546
|
+
* @export
|
|
547
|
+
* @class AIApi
|
|
548
|
+
* @extends {BaseAPI}
|
|
549
|
+
*/
|
|
550
|
+
export class AIApi extends 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 AIApiFp(this.configuration).getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(this.axios, this.basePath));
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
/**
|
|
569
|
+
* @export
|
|
570
|
+
*/
|
|
571
|
+
export const GetAIUsageStatsGroupByEnum = {
|
|
572
|
+
Model: 'model',
|
|
573
|
+
User: 'user',
|
|
574
|
+
Token: 'token'
|
|
575
|
+
};
|
|
576
|
+
/**
|
|
577
|
+
* @export
|
|
578
|
+
*/
|
|
579
|
+
export const GetAIUsageStatsIncludeEnum = {
|
|
580
|
+
Daily: 'daily'
|
|
581
|
+
};
|
|
400
582
|
/**
|
|
401
583
|
* AIAgentsApi - axios parameter creator
|
|
402
584
|
* @export
|
|
@@ -1147,7 +1329,7 @@ export class AIAgentsApi extends BaseAPI {
|
|
|
1147
1329
|
export const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
1148
1330
|
return {
|
|
1149
1331
|
/**
|
|
1150
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1332
|
+
* 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.
|
|
1151
1333
|
* @summary Register Custom Edge Function Tool
|
|
1152
1334
|
* @param {string} organisation The organisation ID
|
|
1153
1335
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1184,7 +1366,7 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1184
1366
|
};
|
|
1185
1367
|
}),
|
|
1186
1368
|
/**
|
|
1187
|
-
* Deletes a custom tool registration
|
|
1369
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1188
1370
|
* @summary Delete Custom Tool
|
|
1189
1371
|
* @param {string} organisation The organisation ID
|
|
1190
1372
|
* @param {string} toolName The tool name to delete
|
|
@@ -1219,6 +1401,42 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration) {
|
|
|
1219
1401
|
options: localVarRequestOptions,
|
|
1220
1402
|
};
|
|
1221
1403
|
}),
|
|
1404
|
+
/**
|
|
1405
|
+
* Retrieves a single registered custom tool by name.
|
|
1406
|
+
* @summary Get Custom Tool
|
|
1407
|
+
* @param {string} organisation The organisation ID
|
|
1408
|
+
* @param {string} toolName The tool name to retrieve
|
|
1409
|
+
* @param {*} [options] Override http request option.
|
|
1410
|
+
* @throws {RequiredError}
|
|
1411
|
+
*/
|
|
1412
|
+
getCustomTool: (organisation_1, toolName_1, ...args_1) => __awaiter(this, [organisation_1, toolName_1, ...args_1], void 0, function* (organisation, toolName, options = {}) {
|
|
1413
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
1414
|
+
assertParamExists('getCustomTool', 'organisation', organisation);
|
|
1415
|
+
// verify required parameter 'toolName' is not null or undefined
|
|
1416
|
+
assertParamExists('getCustomTool', 'toolName', toolName);
|
|
1417
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/custom-tools/{toolName}`
|
|
1418
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
1419
|
+
.replace(`{${"toolName"}}`, encodeURIComponent(String(toolName)));
|
|
1420
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
1421
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
1422
|
+
let baseOptions;
|
|
1423
|
+
if (configuration) {
|
|
1424
|
+
baseOptions = configuration.baseOptions;
|
|
1425
|
+
}
|
|
1426
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
1427
|
+
const localVarHeaderParameter = {};
|
|
1428
|
+
const localVarQueryParameter = {};
|
|
1429
|
+
// authentication BearerAuth required
|
|
1430
|
+
// http bearer authentication required
|
|
1431
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
1432
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
1433
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
1434
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
1435
|
+
return {
|
|
1436
|
+
url: toPathString(localVarUrlObj),
|
|
1437
|
+
options: localVarRequestOptions,
|
|
1438
|
+
};
|
|
1439
|
+
}),
|
|
1222
1440
|
/**
|
|
1223
1441
|
* Lists all registered custom edge function tools for an organization.
|
|
1224
1442
|
* @summary List Custom Tools
|
|
@@ -1261,7 +1479,7 @@ export const AICustomToolsApiFp = function (configuration) {
|
|
|
1261
1479
|
const localVarAxiosParamCreator = AICustomToolsApiAxiosParamCreator(configuration);
|
|
1262
1480
|
return {
|
|
1263
1481
|
/**
|
|
1264
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1482
|
+
* 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.
|
|
1265
1483
|
* @summary Register Custom Edge Function Tool
|
|
1266
1484
|
* @param {string} organisation The organisation ID
|
|
1267
1485
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1278,7 +1496,7 @@ export const AICustomToolsApiFp = function (configuration) {
|
|
|
1278
1496
|
});
|
|
1279
1497
|
},
|
|
1280
1498
|
/**
|
|
1281
|
-
* Deletes a custom tool registration
|
|
1499
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1282
1500
|
* @summary Delete Custom Tool
|
|
1283
1501
|
* @param {string} organisation The organisation ID
|
|
1284
1502
|
* @param {string} toolName The tool name to delete
|
|
@@ -1294,6 +1512,23 @@ export const AICustomToolsApiFp = function (configuration) {
|
|
|
1294
1512
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1295
1513
|
});
|
|
1296
1514
|
},
|
|
1515
|
+
/**
|
|
1516
|
+
* Retrieves a single registered custom tool by name.
|
|
1517
|
+
* @summary Get Custom Tool
|
|
1518
|
+
* @param {string} organisation The organisation ID
|
|
1519
|
+
* @param {string} toolName The tool name to retrieve
|
|
1520
|
+
* @param {*} [options] Override http request option.
|
|
1521
|
+
* @throws {RequiredError}
|
|
1522
|
+
*/
|
|
1523
|
+
getCustomTool(organisation, toolName, options) {
|
|
1524
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1525
|
+
var _a, _b, _c;
|
|
1526
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomTool(organisation, toolName, options);
|
|
1527
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1528
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AICustomToolsApi.getCustomTool']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1529
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1530
|
+
});
|
|
1531
|
+
},
|
|
1297
1532
|
/**
|
|
1298
1533
|
* Lists all registered custom edge function tools for an organization.
|
|
1299
1534
|
* @summary List Custom Tools
|
|
@@ -1320,7 +1555,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
|
|
|
1320
1555
|
const localVarFp = AICustomToolsApiFp(configuration);
|
|
1321
1556
|
return {
|
|
1322
1557
|
/**
|
|
1323
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1558
|
+
* 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.
|
|
1324
1559
|
* @summary Register Custom Edge Function Tool
|
|
1325
1560
|
* @param {string} organisation The organisation ID
|
|
1326
1561
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1331,7 +1566,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
|
|
|
1331
1566
|
return localVarFp.createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(axios, basePath));
|
|
1332
1567
|
},
|
|
1333
1568
|
/**
|
|
1334
|
-
* Deletes a custom tool registration
|
|
1569
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1335
1570
|
* @summary Delete Custom Tool
|
|
1336
1571
|
* @param {string} organisation The organisation ID
|
|
1337
1572
|
* @param {string} toolName The tool name to delete
|
|
@@ -1341,6 +1576,17 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
|
|
|
1341
1576
|
deleteCustomTool(organisation, toolName, options) {
|
|
1342
1577
|
return localVarFp.deleteCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1343
1578
|
},
|
|
1579
|
+
/**
|
|
1580
|
+
* Retrieves a single registered custom tool by name.
|
|
1581
|
+
* @summary Get Custom Tool
|
|
1582
|
+
* @param {string} organisation The organisation ID
|
|
1583
|
+
* @param {string} toolName The tool name to retrieve
|
|
1584
|
+
* @param {*} [options] Override http request option.
|
|
1585
|
+
* @throws {RequiredError}
|
|
1586
|
+
*/
|
|
1587
|
+
getCustomTool(organisation, toolName, options) {
|
|
1588
|
+
return localVarFp.getCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
|
|
1589
|
+
},
|
|
1344
1590
|
/**
|
|
1345
1591
|
* Lists all registered custom edge function tools for an organization.
|
|
1346
1592
|
* @summary List Custom Tools
|
|
@@ -1361,7 +1607,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
|
|
|
1361
1607
|
*/
|
|
1362
1608
|
export class AICustomToolsApi extends BaseAPI {
|
|
1363
1609
|
/**
|
|
1364
|
-
* Registers a custom edge function as a tool that AI models can invoke.
|
|
1610
|
+
* 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.
|
|
1365
1611
|
* @summary Register Custom Edge Function Tool
|
|
1366
1612
|
* @param {string} organisation The organisation ID
|
|
1367
1613
|
* @param {CreateCustomToolRequest} createCustomToolRequest
|
|
@@ -1373,7 +1619,7 @@ export class AICustomToolsApi extends BaseAPI {
|
|
|
1373
1619
|
return AICustomToolsApiFp(this.configuration).createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1374
1620
|
}
|
|
1375
1621
|
/**
|
|
1376
|
-
* Deletes a custom tool registration
|
|
1622
|
+
* Deletes a custom tool registration and its deployed edge function.
|
|
1377
1623
|
* @summary Delete Custom Tool
|
|
1378
1624
|
* @param {string} organisation The organisation ID
|
|
1379
1625
|
* @param {string} toolName The tool name to delete
|
|
@@ -1384,6 +1630,18 @@ export class AICustomToolsApi extends BaseAPI {
|
|
|
1384
1630
|
deleteCustomTool(organisation, toolName, options) {
|
|
1385
1631
|
return AICustomToolsApiFp(this.configuration).deleteCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1386
1632
|
}
|
|
1633
|
+
/**
|
|
1634
|
+
* Retrieves a single registered custom tool by name.
|
|
1635
|
+
* @summary Get Custom Tool
|
|
1636
|
+
* @param {string} organisation The organisation ID
|
|
1637
|
+
* @param {string} toolName The tool name to retrieve
|
|
1638
|
+
* @param {*} [options] Override http request option.
|
|
1639
|
+
* @throws {RequiredError}
|
|
1640
|
+
* @memberof AICustomToolsApi
|
|
1641
|
+
*/
|
|
1642
|
+
getCustomTool(organisation, toolName, options) {
|
|
1643
|
+
return AICustomToolsApiFp(this.configuration).getCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
|
|
1644
|
+
}
|
|
1387
1645
|
/**
|
|
1388
1646
|
* Lists all registered custom edge function tools for an organization.
|
|
1389
1647
|
* @summary List Custom Tools
|
|
@@ -3257,116 +3515,6 @@ export const ListAIModelsFeatureEnum = {
|
|
|
3257
3515
|
Streaming: 'streaming',
|
|
3258
3516
|
All: 'all'
|
|
3259
3517
|
};
|
|
3260
|
-
/**
|
|
3261
|
-
* AIMonitoringApi - axios parameter creator
|
|
3262
|
-
* @export
|
|
3263
|
-
*/
|
|
3264
|
-
export const AIMonitoringApiAxiosParamCreator = function (configuration) {
|
|
3265
|
-
return {
|
|
3266
|
-
/**
|
|
3267
|
-
*
|
|
3268
|
-
* @summary Get AI usage statistics
|
|
3269
|
-
* @param {string} organisation The organisation ID
|
|
3270
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3271
|
-
* @param {*} [options] Override http request option.
|
|
3272
|
-
* @throws {RequiredError}
|
|
3273
|
-
*/
|
|
3274
|
-
getAIUsageStats: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
|
|
3275
|
-
// verify required parameter 'organisation' is not null or undefined
|
|
3276
|
-
assertParamExists('getAIUsageStats', 'organisation', organisation);
|
|
3277
|
-
const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
|
|
3278
|
-
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
3279
|
-
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
3280
|
-
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
3281
|
-
let baseOptions;
|
|
3282
|
-
if (configuration) {
|
|
3283
|
-
baseOptions = configuration.baseOptions;
|
|
3284
|
-
}
|
|
3285
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
3286
|
-
const localVarHeaderParameter = {};
|
|
3287
|
-
const localVarQueryParameter = {};
|
|
3288
|
-
// authentication BearerAuth required
|
|
3289
|
-
// http bearer authentication required
|
|
3290
|
-
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
3291
|
-
if (month !== undefined) {
|
|
3292
|
-
localVarQueryParameter['month'] = month;
|
|
3293
|
-
}
|
|
3294
|
-
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
3295
|
-
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
3296
|
-
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
3297
|
-
return {
|
|
3298
|
-
url: toPathString(localVarUrlObj),
|
|
3299
|
-
options: localVarRequestOptions,
|
|
3300
|
-
};
|
|
3301
|
-
}),
|
|
3302
|
-
};
|
|
3303
|
-
};
|
|
3304
|
-
/**
|
|
3305
|
-
* AIMonitoringApi - functional programming interface
|
|
3306
|
-
* @export
|
|
3307
|
-
*/
|
|
3308
|
-
export const AIMonitoringApiFp = function (configuration) {
|
|
3309
|
-
const localVarAxiosParamCreator = AIMonitoringApiAxiosParamCreator(configuration);
|
|
3310
|
-
return {
|
|
3311
|
-
/**
|
|
3312
|
-
*
|
|
3313
|
-
* @summary Get AI usage statistics
|
|
3314
|
-
* @param {string} organisation The organisation ID
|
|
3315
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3316
|
-
* @param {*} [options] Override http request option.
|
|
3317
|
-
* @throws {RequiredError}
|
|
3318
|
-
*/
|
|
3319
|
-
getAIUsageStats(organisation, month, options) {
|
|
3320
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
3321
|
-
var _a, _b, _c;
|
|
3322
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, options);
|
|
3323
|
-
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
3324
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIMonitoringApi.getAIUsageStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
3325
|
-
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
3326
|
-
});
|
|
3327
|
-
},
|
|
3328
|
-
};
|
|
3329
|
-
};
|
|
3330
|
-
/**
|
|
3331
|
-
* AIMonitoringApi - factory interface
|
|
3332
|
-
* @export
|
|
3333
|
-
*/
|
|
3334
|
-
export const AIMonitoringApiFactory = function (configuration, basePath, axios) {
|
|
3335
|
-
const localVarFp = AIMonitoringApiFp(configuration);
|
|
3336
|
-
return {
|
|
3337
|
-
/**
|
|
3338
|
-
*
|
|
3339
|
-
* @summary Get AI usage statistics
|
|
3340
|
-
* @param {string} organisation The organisation ID
|
|
3341
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3342
|
-
* @param {*} [options] Override http request option.
|
|
3343
|
-
* @throws {RequiredError}
|
|
3344
|
-
*/
|
|
3345
|
-
getAIUsageStats(organisation, month, options) {
|
|
3346
|
-
return localVarFp.getAIUsageStats(organisation, month, options).then((request) => request(axios, basePath));
|
|
3347
|
-
},
|
|
3348
|
-
};
|
|
3349
|
-
};
|
|
3350
|
-
/**
|
|
3351
|
-
* AIMonitoringApi - object-oriented interface
|
|
3352
|
-
* @export
|
|
3353
|
-
* @class AIMonitoringApi
|
|
3354
|
-
* @extends {BaseAPI}
|
|
3355
|
-
*/
|
|
3356
|
-
export class AIMonitoringApi extends BaseAPI {
|
|
3357
|
-
/**
|
|
3358
|
-
*
|
|
3359
|
-
* @summary Get AI usage statistics
|
|
3360
|
-
* @param {string} organisation The organisation ID
|
|
3361
|
-
* @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
|
|
3362
|
-
* @param {*} [options] Override http request option.
|
|
3363
|
-
* @throws {RequiredError}
|
|
3364
|
-
* @memberof AIMonitoringApi
|
|
3365
|
-
*/
|
|
3366
|
-
getAIUsageStats(organisation, month, options) {
|
|
3367
|
-
return AIMonitoringApiFp(this.configuration).getAIUsageStats(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
3368
|
-
}
|
|
3369
|
-
}
|
|
3370
3518
|
/**
|
|
3371
3519
|
* AIOrchestrationsApi - axios parameter creator
|
|
3372
3520
|
* @export
|
|
@@ -4126,20 +4274,1484 @@ export const ListOrchestrationsStatusEnum = {
|
|
|
4126
4274
|
Cancelled: 'cancelled'
|
|
4127
4275
|
};
|
|
4128
4276
|
/**
|
|
4129
|
-
*
|
|
4277
|
+
* AISearchApi - axios parameter creator
|
|
4130
4278
|
* @export
|
|
4131
4279
|
*/
|
|
4132
|
-
export const
|
|
4280
|
+
export const AISearchApiAxiosParamCreator = function (configuration) {
|
|
4133
4281
|
return {
|
|
4134
4282
|
/**
|
|
4135
|
-
*
|
|
4136
|
-
* @summary
|
|
4137
|
-
* @param {string} organisation
|
|
4138
|
-
* @param {
|
|
4283
|
+
*
|
|
4284
|
+
* @summary RAG chat with AI Search content
|
|
4285
|
+
* @param {string} organisation
|
|
4286
|
+
* @param {string} project
|
|
4287
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
4139
4288
|
* @param {*} [options] Override http request option.
|
|
4140
4289
|
* @throws {RequiredError}
|
|
4141
4290
|
*/
|
|
4142
|
-
|
|
4291
|
+
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 = {}) {
|
|
4292
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4293
|
+
assertParamExists('aiSearchChat', 'organisation', organisation);
|
|
4294
|
+
// verify required parameter 'project' is not null or undefined
|
|
4295
|
+
assertParamExists('aiSearchChat', 'project', project);
|
|
4296
|
+
// verify required parameter 'aiSearchChatRequest' is not null or undefined
|
|
4297
|
+
assertParamExists('aiSearchChat', 'aiSearchChatRequest', aiSearchChatRequest);
|
|
4298
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat`
|
|
4299
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4300
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4301
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4302
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4303
|
+
let baseOptions;
|
|
4304
|
+
if (configuration) {
|
|
4305
|
+
baseOptions = configuration.baseOptions;
|
|
4306
|
+
}
|
|
4307
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4308
|
+
const localVarHeaderParameter = {};
|
|
4309
|
+
const localVarQueryParameter = {};
|
|
4310
|
+
// authentication BearerAuth required
|
|
4311
|
+
// http bearer authentication required
|
|
4312
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4313
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4314
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4315
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4316
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4317
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchChatRequest, localVarRequestOptions, configuration);
|
|
4318
|
+
return {
|
|
4319
|
+
url: toPathString(localVarUrlObj),
|
|
4320
|
+
options: localVarRequestOptions,
|
|
4321
|
+
};
|
|
4322
|
+
}),
|
|
4323
|
+
/**
|
|
4324
|
+
*
|
|
4325
|
+
* @summary Delete pages by URLs or patterns
|
|
4326
|
+
* @param {string} organisation
|
|
4327
|
+
* @param {string} project
|
|
4328
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
4329
|
+
* @param {*} [options] Override http request option.
|
|
4330
|
+
* @throws {RequiredError}
|
|
4331
|
+
*/
|
|
4332
|
+
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 = {}) {
|
|
4333
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4334
|
+
assertParamExists('aiSearchDeletePages', 'organisation', organisation);
|
|
4335
|
+
// verify required parameter 'project' is not null or undefined
|
|
4336
|
+
assertParamExists('aiSearchDeletePages', 'project', project);
|
|
4337
|
+
// verify required parameter 'aiSearchDeletePagesRequest' is not null or undefined
|
|
4338
|
+
assertParamExists('aiSearchDeletePages', 'aiSearchDeletePagesRequest', aiSearchDeletePagesRequest);
|
|
4339
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4340
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4341
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4342
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4343
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4344
|
+
let baseOptions;
|
|
4345
|
+
if (configuration) {
|
|
4346
|
+
baseOptions = configuration.baseOptions;
|
|
4347
|
+
}
|
|
4348
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4349
|
+
const localVarHeaderParameter = {};
|
|
4350
|
+
const localVarQueryParameter = {};
|
|
4351
|
+
// authentication BearerAuth required
|
|
4352
|
+
// http bearer authentication required
|
|
4353
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4354
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4355
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4356
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4357
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4358
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchDeletePagesRequest, localVarRequestOptions, configuration);
|
|
4359
|
+
return {
|
|
4360
|
+
url: toPathString(localVarUrlObj),
|
|
4361
|
+
options: localVarRequestOptions,
|
|
4362
|
+
};
|
|
4363
|
+
}),
|
|
4364
|
+
/**
|
|
4365
|
+
*
|
|
4366
|
+
* @summary Disable AI Search for a project
|
|
4367
|
+
* @param {string} organisation
|
|
4368
|
+
* @param {string} project
|
|
4369
|
+
* @param {*} [options] Override http request option.
|
|
4370
|
+
* @throws {RequiredError}
|
|
4371
|
+
*/
|
|
4372
|
+
aiSearchDisable: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4373
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4374
|
+
assertParamExists('aiSearchDisable', 'organisation', organisation);
|
|
4375
|
+
// verify required parameter 'project' is not null or undefined
|
|
4376
|
+
assertParamExists('aiSearchDisable', 'project', project);
|
|
4377
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable`
|
|
4378
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4379
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4380
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4381
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4382
|
+
let baseOptions;
|
|
4383
|
+
if (configuration) {
|
|
4384
|
+
baseOptions = configuration.baseOptions;
|
|
4385
|
+
}
|
|
4386
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4387
|
+
const localVarHeaderParameter = {};
|
|
4388
|
+
const localVarQueryParameter = {};
|
|
4389
|
+
// authentication BearerAuth required
|
|
4390
|
+
// http bearer authentication required
|
|
4391
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4392
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4393
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4394
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4395
|
+
return {
|
|
4396
|
+
url: toPathString(localVarUrlObj),
|
|
4397
|
+
options: localVarRequestOptions,
|
|
4398
|
+
};
|
|
4399
|
+
}),
|
|
4400
|
+
/**
|
|
4401
|
+
*
|
|
4402
|
+
* @summary Enable AI Search for a project
|
|
4403
|
+
* @param {string} organisation
|
|
4404
|
+
* @param {string} project
|
|
4405
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
4406
|
+
* @param {*} [options] Override http request option.
|
|
4407
|
+
* @throws {RequiredError}
|
|
4408
|
+
*/
|
|
4409
|
+
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 = {}) {
|
|
4410
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4411
|
+
assertParamExists('aiSearchEnable', 'organisation', organisation);
|
|
4412
|
+
// verify required parameter 'project' is not null or undefined
|
|
4413
|
+
assertParamExists('aiSearchEnable', 'project', project);
|
|
4414
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable`
|
|
4415
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4416
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4417
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4418
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4419
|
+
let baseOptions;
|
|
4420
|
+
if (configuration) {
|
|
4421
|
+
baseOptions = configuration.baseOptions;
|
|
4422
|
+
}
|
|
4423
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4424
|
+
const localVarHeaderParameter = {};
|
|
4425
|
+
const localVarQueryParameter = {};
|
|
4426
|
+
// authentication BearerAuth required
|
|
4427
|
+
// http bearer authentication required
|
|
4428
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4429
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4430
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4431
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4432
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4433
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchEnableRequest, localVarRequestOptions, configuration);
|
|
4434
|
+
return {
|
|
4435
|
+
url: toPathString(localVarUrlObj),
|
|
4436
|
+
options: localVarRequestOptions,
|
|
4437
|
+
};
|
|
4438
|
+
}),
|
|
4439
|
+
/**
|
|
4440
|
+
*
|
|
4441
|
+
* @summary Get AI Search ingest job status
|
|
4442
|
+
* @param {string} organisation
|
|
4443
|
+
* @param {string} project
|
|
4444
|
+
* @param {string} jobId
|
|
4445
|
+
* @param {*} [options] Override http request option.
|
|
4446
|
+
* @throws {RequiredError}
|
|
4447
|
+
*/
|
|
4448
|
+
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 = {}) {
|
|
4449
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4450
|
+
assertParamExists('aiSearchGetCrawl', 'organisation', organisation);
|
|
4451
|
+
// verify required parameter 'project' is not null or undefined
|
|
4452
|
+
assertParamExists('aiSearchGetCrawl', 'project', project);
|
|
4453
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4454
|
+
assertParamExists('aiSearchGetCrawl', 'jobId', jobId);
|
|
4455
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}`
|
|
4456
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4457
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4458
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4459
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4460
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4461
|
+
let baseOptions;
|
|
4462
|
+
if (configuration) {
|
|
4463
|
+
baseOptions = configuration.baseOptions;
|
|
4464
|
+
}
|
|
4465
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4466
|
+
const localVarHeaderParameter = {};
|
|
4467
|
+
const localVarQueryParameter = {};
|
|
4468
|
+
// authentication BearerAuth required
|
|
4469
|
+
// http bearer authentication required
|
|
4470
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4471
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4472
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4473
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4474
|
+
return {
|
|
4475
|
+
url: toPathString(localVarUrlObj),
|
|
4476
|
+
options: localVarRequestOptions,
|
|
4477
|
+
};
|
|
4478
|
+
}),
|
|
4479
|
+
/**
|
|
4480
|
+
*
|
|
4481
|
+
* @summary Get per-page ingest results for a crawl job
|
|
4482
|
+
* @param {string} organisation
|
|
4483
|
+
* @param {string} project
|
|
4484
|
+
* @param {string} jobId
|
|
4485
|
+
* @param {number} [limit]
|
|
4486
|
+
* @param {number} [statusCode]
|
|
4487
|
+
* @param {string} [processingStatus]
|
|
4488
|
+
* @param {*} [options] Override http request option.
|
|
4489
|
+
* @throws {RequiredError}
|
|
4490
|
+
*/
|
|
4491
|
+
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 = {}) {
|
|
4492
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4493
|
+
assertParamExists('aiSearchGetCrawlPages', 'organisation', organisation);
|
|
4494
|
+
// verify required parameter 'project' is not null or undefined
|
|
4495
|
+
assertParamExists('aiSearchGetCrawlPages', 'project', project);
|
|
4496
|
+
// verify required parameter 'jobId' is not null or undefined
|
|
4497
|
+
assertParamExists('aiSearchGetCrawlPages', 'jobId', jobId);
|
|
4498
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages`
|
|
4499
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4500
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
4501
|
+
.replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
|
|
4502
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4503
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4504
|
+
let baseOptions;
|
|
4505
|
+
if (configuration) {
|
|
4506
|
+
baseOptions = configuration.baseOptions;
|
|
4507
|
+
}
|
|
4508
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4509
|
+
const localVarHeaderParameter = {};
|
|
4510
|
+
const localVarQueryParameter = {};
|
|
4511
|
+
// authentication BearerAuth required
|
|
4512
|
+
// http bearer authentication required
|
|
4513
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4514
|
+
if (limit !== undefined) {
|
|
4515
|
+
localVarQueryParameter['limit'] = limit;
|
|
4516
|
+
}
|
|
4517
|
+
if (statusCode !== undefined) {
|
|
4518
|
+
localVarQueryParameter['statusCode'] = statusCode;
|
|
4519
|
+
}
|
|
4520
|
+
if (processingStatus !== undefined) {
|
|
4521
|
+
localVarQueryParameter['processingStatus'] = processingStatus;
|
|
4522
|
+
}
|
|
4523
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4524
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4525
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4526
|
+
return {
|
|
4527
|
+
url: toPathString(localVarUrlObj),
|
|
4528
|
+
options: localVarRequestOptions,
|
|
4529
|
+
};
|
|
4530
|
+
}),
|
|
4531
|
+
/**
|
|
4532
|
+
*
|
|
4533
|
+
* @summary Get AI Search public access and rate limit settings
|
|
4534
|
+
* @param {string} organisation
|
|
4535
|
+
* @param {string} project
|
|
4536
|
+
* @param {*} [options] Override http request option.
|
|
4537
|
+
* @throws {RequiredError}
|
|
4538
|
+
*/
|
|
4539
|
+
aiSearchGetSettings: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4540
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4541
|
+
assertParamExists('aiSearchGetSettings', 'organisation', organisation);
|
|
4542
|
+
// verify required parameter 'project' is not null or undefined
|
|
4543
|
+
assertParamExists('aiSearchGetSettings', 'project', project);
|
|
4544
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4545
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4546
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4547
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4548
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4549
|
+
let baseOptions;
|
|
4550
|
+
if (configuration) {
|
|
4551
|
+
baseOptions = configuration.baseOptions;
|
|
4552
|
+
}
|
|
4553
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4554
|
+
const localVarHeaderParameter = {};
|
|
4555
|
+
const localVarQueryParameter = {};
|
|
4556
|
+
// authentication BearerAuth required
|
|
4557
|
+
// http bearer authentication required
|
|
4558
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4559
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4560
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4561
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4562
|
+
return {
|
|
4563
|
+
url: toPathString(localVarUrlObj),
|
|
4564
|
+
options: localVarRequestOptions,
|
|
4565
|
+
};
|
|
4566
|
+
}),
|
|
4567
|
+
/**
|
|
4568
|
+
*
|
|
4569
|
+
* @summary Ingest pages into the AI Search index
|
|
4570
|
+
* @param {string} organisation
|
|
4571
|
+
* @param {string} project
|
|
4572
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
4573
|
+
* @param {*} [options] Override http request option.
|
|
4574
|
+
* @throws {RequiredError}
|
|
4575
|
+
*/
|
|
4576
|
+
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 = {}) {
|
|
4577
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4578
|
+
assertParamExists('aiSearchIngestPages', 'organisation', organisation);
|
|
4579
|
+
// verify required parameter 'project' is not null or undefined
|
|
4580
|
+
assertParamExists('aiSearchIngestPages', 'project', project);
|
|
4581
|
+
// verify required parameter 'aiSearchIngestPagesRequest' is not null or undefined
|
|
4582
|
+
assertParamExists('aiSearchIngestPages', 'aiSearchIngestPagesRequest', aiSearchIngestPagesRequest);
|
|
4583
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4584
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4585
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4586
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4587
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4588
|
+
let baseOptions;
|
|
4589
|
+
if (configuration) {
|
|
4590
|
+
baseOptions = configuration.baseOptions;
|
|
4591
|
+
}
|
|
4592
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4593
|
+
const localVarHeaderParameter = {};
|
|
4594
|
+
const localVarQueryParameter = {};
|
|
4595
|
+
// authentication BearerAuth required
|
|
4596
|
+
// http bearer authentication required
|
|
4597
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4598
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4599
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4600
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4601
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4602
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchIngestPagesRequest, localVarRequestOptions, configuration);
|
|
4603
|
+
return {
|
|
4604
|
+
url: toPathString(localVarUrlObj),
|
|
4605
|
+
options: localVarRequestOptions,
|
|
4606
|
+
};
|
|
4607
|
+
}),
|
|
4608
|
+
/**
|
|
4609
|
+
*
|
|
4610
|
+
* @summary List AI Search ingest jobs
|
|
4611
|
+
* @param {string} organisation
|
|
4612
|
+
* @param {string} project
|
|
4613
|
+
* @param {number} [limit]
|
|
4614
|
+
* @param {*} [options] Override http request option.
|
|
4615
|
+
* @throws {RequiredError}
|
|
4616
|
+
*/
|
|
4617
|
+
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 = {}) {
|
|
4618
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4619
|
+
assertParamExists('aiSearchListCrawls', 'organisation', organisation);
|
|
4620
|
+
// verify required parameter 'project' is not null or undefined
|
|
4621
|
+
assertParamExists('aiSearchListCrawls', 'project', project);
|
|
4622
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4623
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4624
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4625
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4626
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4627
|
+
let baseOptions;
|
|
4628
|
+
if (configuration) {
|
|
4629
|
+
baseOptions = configuration.baseOptions;
|
|
4630
|
+
}
|
|
4631
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4632
|
+
const localVarHeaderParameter = {};
|
|
4633
|
+
const localVarQueryParameter = {};
|
|
4634
|
+
// authentication BearerAuth required
|
|
4635
|
+
// http bearer authentication required
|
|
4636
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4637
|
+
if (limit !== undefined) {
|
|
4638
|
+
localVarQueryParameter['limit'] = limit;
|
|
4639
|
+
}
|
|
4640
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4641
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4642
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4643
|
+
return {
|
|
4644
|
+
url: toPathString(localVarUrlObj),
|
|
4645
|
+
options: localVarRequestOptions,
|
|
4646
|
+
};
|
|
4647
|
+
}),
|
|
4648
|
+
/**
|
|
4649
|
+
*
|
|
4650
|
+
* @summary List indexed pages with cursor pagination
|
|
4651
|
+
* @param {string} organisation
|
|
4652
|
+
* @param {string} project
|
|
4653
|
+
* @param {number} [limit]
|
|
4654
|
+
* @param {string} [cursor]
|
|
4655
|
+
* @param {string} [search]
|
|
4656
|
+
* @param {*} [options] Override http request option.
|
|
4657
|
+
* @throws {RequiredError}
|
|
4658
|
+
*/
|
|
4659
|
+
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 = {}) {
|
|
4660
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4661
|
+
assertParamExists('aiSearchListPages', 'organisation', organisation);
|
|
4662
|
+
// verify required parameter 'project' is not null or undefined
|
|
4663
|
+
assertParamExists('aiSearchListPages', 'project', project);
|
|
4664
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
|
|
4665
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4666
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4667
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4668
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4669
|
+
let baseOptions;
|
|
4670
|
+
if (configuration) {
|
|
4671
|
+
baseOptions = configuration.baseOptions;
|
|
4672
|
+
}
|
|
4673
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4674
|
+
const localVarHeaderParameter = {};
|
|
4675
|
+
const localVarQueryParameter = {};
|
|
4676
|
+
// authentication BearerAuth required
|
|
4677
|
+
// http bearer authentication required
|
|
4678
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4679
|
+
if (limit !== undefined) {
|
|
4680
|
+
localVarQueryParameter['limit'] = limit;
|
|
4681
|
+
}
|
|
4682
|
+
if (cursor !== undefined) {
|
|
4683
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
4684
|
+
}
|
|
4685
|
+
if (search !== undefined) {
|
|
4686
|
+
localVarQueryParameter['search'] = search;
|
|
4687
|
+
}
|
|
4688
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4689
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4690
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4691
|
+
return {
|
|
4692
|
+
url: toPathString(localVarUrlObj),
|
|
4693
|
+
options: localVarRequestOptions,
|
|
4694
|
+
};
|
|
4695
|
+
}),
|
|
4696
|
+
/**
|
|
4697
|
+
*
|
|
4698
|
+
* @summary Purge the entire AI Search index
|
|
4699
|
+
* @param {string} organisation
|
|
4700
|
+
* @param {string} project
|
|
4701
|
+
* @param {*} [options] Override http request option.
|
|
4702
|
+
* @throws {RequiredError}
|
|
4703
|
+
*/
|
|
4704
|
+
aiSearchPurgeIndex: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4705
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4706
|
+
assertParamExists('aiSearchPurgeIndex', 'organisation', organisation);
|
|
4707
|
+
// verify required parameter 'project' is not null or undefined
|
|
4708
|
+
assertParamExists('aiSearchPurgeIndex', 'project', project);
|
|
4709
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/index`
|
|
4710
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4711
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4712
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4713
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4714
|
+
let baseOptions;
|
|
4715
|
+
if (configuration) {
|
|
4716
|
+
baseOptions = configuration.baseOptions;
|
|
4717
|
+
}
|
|
4718
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
4719
|
+
const localVarHeaderParameter = {};
|
|
4720
|
+
const localVarQueryParameter = {};
|
|
4721
|
+
// authentication BearerAuth required
|
|
4722
|
+
// http bearer authentication required
|
|
4723
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4724
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4725
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4726
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4727
|
+
return {
|
|
4728
|
+
url: toPathString(localVarUrlObj),
|
|
4729
|
+
options: localVarRequestOptions,
|
|
4730
|
+
};
|
|
4731
|
+
}),
|
|
4732
|
+
/**
|
|
4733
|
+
*
|
|
4734
|
+
* @summary Semantic search across the AI Search index
|
|
4735
|
+
* @param {string} organisation
|
|
4736
|
+
* @param {string} project
|
|
4737
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
4738
|
+
* @param {*} [options] Override http request option.
|
|
4739
|
+
* @throws {RequiredError}
|
|
4740
|
+
*/
|
|
4741
|
+
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 = {}) {
|
|
4742
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4743
|
+
assertParamExists('aiSearchSearch', 'organisation', organisation);
|
|
4744
|
+
// verify required parameter 'project' is not null or undefined
|
|
4745
|
+
assertParamExists('aiSearchSearch', 'project', project);
|
|
4746
|
+
// verify required parameter 'aiSearchSearchRequest' is not null or undefined
|
|
4747
|
+
assertParamExists('aiSearchSearch', 'aiSearchSearchRequest', aiSearchSearchRequest);
|
|
4748
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/search`
|
|
4749
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4750
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4751
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4752
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4753
|
+
let baseOptions;
|
|
4754
|
+
if (configuration) {
|
|
4755
|
+
baseOptions = configuration.baseOptions;
|
|
4756
|
+
}
|
|
4757
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4758
|
+
const localVarHeaderParameter = {};
|
|
4759
|
+
const localVarQueryParameter = {};
|
|
4760
|
+
// authentication BearerAuth required
|
|
4761
|
+
// http bearer authentication required
|
|
4762
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4763
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4764
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4765
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4766
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4767
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchSearchRequest, localVarRequestOptions, configuration);
|
|
4768
|
+
return {
|
|
4769
|
+
url: toPathString(localVarUrlObj),
|
|
4770
|
+
options: localVarRequestOptions,
|
|
4771
|
+
};
|
|
4772
|
+
}),
|
|
4773
|
+
/**
|
|
4774
|
+
*
|
|
4775
|
+
* @summary Get AI Search status for a project
|
|
4776
|
+
* @param {string} organisation
|
|
4777
|
+
* @param {string} project
|
|
4778
|
+
* @param {*} [options] Override http request option.
|
|
4779
|
+
* @throws {RequiredError}
|
|
4780
|
+
*/
|
|
4781
|
+
aiSearchStatus: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
|
|
4782
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4783
|
+
assertParamExists('aiSearchStatus', 'organisation', organisation);
|
|
4784
|
+
// verify required parameter 'project' is not null or undefined
|
|
4785
|
+
assertParamExists('aiSearchStatus', 'project', project);
|
|
4786
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search`
|
|
4787
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4788
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4789
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4790
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4791
|
+
let baseOptions;
|
|
4792
|
+
if (configuration) {
|
|
4793
|
+
baseOptions = configuration.baseOptions;
|
|
4794
|
+
}
|
|
4795
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4796
|
+
const localVarHeaderParameter = {};
|
|
4797
|
+
const localVarQueryParameter = {};
|
|
4798
|
+
// authentication BearerAuth required
|
|
4799
|
+
// http bearer authentication required
|
|
4800
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4801
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4802
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4803
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4804
|
+
return {
|
|
4805
|
+
url: toPathString(localVarUrlObj),
|
|
4806
|
+
options: localVarRequestOptions,
|
|
4807
|
+
};
|
|
4808
|
+
}),
|
|
4809
|
+
/**
|
|
4810
|
+
*
|
|
4811
|
+
* @summary Get the most popular AI Search queries
|
|
4812
|
+
* @param {string} organisation
|
|
4813
|
+
* @param {string} project
|
|
4814
|
+
* @param {string} [range]
|
|
4815
|
+
* @param {number} [limit]
|
|
4816
|
+
* @param {*} [options] Override http request option.
|
|
4817
|
+
* @throws {RequiredError}
|
|
4818
|
+
*/
|
|
4819
|
+
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 = {}) {
|
|
4820
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4821
|
+
assertParamExists('aiSearchTopQueries', 'organisation', organisation);
|
|
4822
|
+
// verify required parameter 'project' is not null or undefined
|
|
4823
|
+
assertParamExists('aiSearchTopQueries', 'project', project);
|
|
4824
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries`
|
|
4825
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4826
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4827
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4828
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4829
|
+
let baseOptions;
|
|
4830
|
+
if (configuration) {
|
|
4831
|
+
baseOptions = configuration.baseOptions;
|
|
4832
|
+
}
|
|
4833
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4834
|
+
const localVarHeaderParameter = {};
|
|
4835
|
+
const localVarQueryParameter = {};
|
|
4836
|
+
// authentication BearerAuth required
|
|
4837
|
+
// http bearer authentication required
|
|
4838
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4839
|
+
if (range !== undefined) {
|
|
4840
|
+
localVarQueryParameter['range'] = range;
|
|
4841
|
+
}
|
|
4842
|
+
if (limit !== undefined) {
|
|
4843
|
+
localVarQueryParameter['limit'] = limit;
|
|
4844
|
+
}
|
|
4845
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4846
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4847
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4848
|
+
return {
|
|
4849
|
+
url: toPathString(localVarUrlObj),
|
|
4850
|
+
options: localVarRequestOptions,
|
|
4851
|
+
};
|
|
4852
|
+
}),
|
|
4853
|
+
/**
|
|
4854
|
+
*
|
|
4855
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
4856
|
+
* @param {string} organisation
|
|
4857
|
+
* @param {string} project
|
|
4858
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
4859
|
+
* @param {*} [options] Override http request option.
|
|
4860
|
+
* @throws {RequiredError}
|
|
4861
|
+
*/
|
|
4862
|
+
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 = {}) {
|
|
4863
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4864
|
+
assertParamExists('aiSearchTriggerCrawl', 'organisation', organisation);
|
|
4865
|
+
// verify required parameter 'project' is not null or undefined
|
|
4866
|
+
assertParamExists('aiSearchTriggerCrawl', 'project', project);
|
|
4867
|
+
// verify required parameter 'aiSearchTriggerCrawlRequest' is not null or undefined
|
|
4868
|
+
assertParamExists('aiSearchTriggerCrawl', 'aiSearchTriggerCrawlRequest', aiSearchTriggerCrawlRequest);
|
|
4869
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
|
|
4870
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4871
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4873
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4874
|
+
let baseOptions;
|
|
4875
|
+
if (configuration) {
|
|
4876
|
+
baseOptions = configuration.baseOptions;
|
|
4877
|
+
}
|
|
4878
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
4879
|
+
const localVarHeaderParameter = {};
|
|
4880
|
+
const localVarQueryParameter = {};
|
|
4881
|
+
// authentication BearerAuth required
|
|
4882
|
+
// http bearer authentication required
|
|
4883
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4884
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4885
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4886
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4887
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4888
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchTriggerCrawlRequest, localVarRequestOptions, configuration);
|
|
4889
|
+
return {
|
|
4890
|
+
url: toPathString(localVarUrlObj),
|
|
4891
|
+
options: localVarRequestOptions,
|
|
4892
|
+
};
|
|
4893
|
+
}),
|
|
4894
|
+
/**
|
|
4895
|
+
*
|
|
4896
|
+
* @summary Update AI Search public access and rate limit settings
|
|
4897
|
+
* @param {string} organisation
|
|
4898
|
+
* @param {string} project
|
|
4899
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
4900
|
+
* @param {*} [options] Override http request option.
|
|
4901
|
+
* @throws {RequiredError}
|
|
4902
|
+
*/
|
|
4903
|
+
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 = {}) {
|
|
4904
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4905
|
+
assertParamExists('aiSearchUpdateSettings', 'organisation', organisation);
|
|
4906
|
+
// verify required parameter 'project' is not null or undefined
|
|
4907
|
+
assertParamExists('aiSearchUpdateSettings', 'project', project);
|
|
4908
|
+
// verify required parameter 'aiSearchUpdateSettingsRequest' is not null or undefined
|
|
4909
|
+
assertParamExists('aiSearchUpdateSettings', 'aiSearchUpdateSettingsRequest', aiSearchUpdateSettingsRequest);
|
|
4910
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
|
|
4911
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4912
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4913
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4914
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4915
|
+
let baseOptions;
|
|
4916
|
+
if (configuration) {
|
|
4917
|
+
baseOptions = configuration.baseOptions;
|
|
4918
|
+
}
|
|
4919
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
4920
|
+
const localVarHeaderParameter = {};
|
|
4921
|
+
const localVarQueryParameter = {};
|
|
4922
|
+
// authentication BearerAuth required
|
|
4923
|
+
// http bearer authentication required
|
|
4924
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4925
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
4926
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4927
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4928
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4929
|
+
localVarRequestOptions.data = serializeDataIfNeeded(aiSearchUpdateSettingsRequest, localVarRequestOptions, configuration);
|
|
4930
|
+
return {
|
|
4931
|
+
url: toPathString(localVarUrlObj),
|
|
4932
|
+
options: localVarRequestOptions,
|
|
4933
|
+
};
|
|
4934
|
+
}),
|
|
4935
|
+
/**
|
|
4936
|
+
*
|
|
4937
|
+
* @summary Get usage statistics for the AI Search site
|
|
4938
|
+
* @param {string} organisation
|
|
4939
|
+
* @param {string} project
|
|
4940
|
+
* @param {string} [range]
|
|
4941
|
+
* @param {*} [options] Override http request option.
|
|
4942
|
+
* @throws {RequiredError}
|
|
4943
|
+
*/
|
|
4944
|
+
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 = {}) {
|
|
4945
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
4946
|
+
assertParamExists('aiSearchUsage', 'organisation', organisation);
|
|
4947
|
+
// verify required parameter 'project' is not null or undefined
|
|
4948
|
+
assertParamExists('aiSearchUsage', 'project', project);
|
|
4949
|
+
const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage`
|
|
4950
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
4951
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
4952
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
4953
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
4954
|
+
let baseOptions;
|
|
4955
|
+
if (configuration) {
|
|
4956
|
+
baseOptions = configuration.baseOptions;
|
|
4957
|
+
}
|
|
4958
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
4959
|
+
const localVarHeaderParameter = {};
|
|
4960
|
+
const localVarQueryParameter = {};
|
|
4961
|
+
// authentication BearerAuth required
|
|
4962
|
+
// http bearer authentication required
|
|
4963
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
4964
|
+
if (range !== undefined) {
|
|
4965
|
+
localVarQueryParameter['range'] = range;
|
|
4966
|
+
}
|
|
4967
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
4968
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
4969
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
4970
|
+
return {
|
|
4971
|
+
url: toPathString(localVarUrlObj),
|
|
4972
|
+
options: localVarRequestOptions,
|
|
4973
|
+
};
|
|
4974
|
+
}),
|
|
4975
|
+
};
|
|
4976
|
+
};
|
|
4977
|
+
/**
|
|
4978
|
+
* AISearchApi - functional programming interface
|
|
4979
|
+
* @export
|
|
4980
|
+
*/
|
|
4981
|
+
export const AISearchApiFp = function (configuration) {
|
|
4982
|
+
const localVarAxiosParamCreator = AISearchApiAxiosParamCreator(configuration);
|
|
4983
|
+
return {
|
|
4984
|
+
/**
|
|
4985
|
+
*
|
|
4986
|
+
* @summary RAG chat with AI Search content
|
|
4987
|
+
* @param {string} organisation
|
|
4988
|
+
* @param {string} project
|
|
4989
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
4990
|
+
* @param {*} [options] Override http request option.
|
|
4991
|
+
* @throws {RequiredError}
|
|
4992
|
+
*/
|
|
4993
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
4994
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
4995
|
+
var _a, _b, _c;
|
|
4996
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchChat(organisation, project, aiSearchChatRequest, options);
|
|
4997
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
4998
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchChat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
4999
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5000
|
+
});
|
|
5001
|
+
},
|
|
5002
|
+
/**
|
|
5003
|
+
*
|
|
5004
|
+
* @summary Delete pages by URLs or patterns
|
|
5005
|
+
* @param {string} organisation
|
|
5006
|
+
* @param {string} project
|
|
5007
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5008
|
+
* @param {*} [options] Override http request option.
|
|
5009
|
+
* @throws {RequiredError}
|
|
5010
|
+
*/
|
|
5011
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5012
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5013
|
+
var _a, _b, _c;
|
|
5014
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options);
|
|
5015
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5016
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchDeletePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5017
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5018
|
+
});
|
|
5019
|
+
},
|
|
5020
|
+
/**
|
|
5021
|
+
*
|
|
5022
|
+
* @summary Disable AI Search for a project
|
|
5023
|
+
* @param {string} organisation
|
|
5024
|
+
* @param {string} project
|
|
5025
|
+
* @param {*} [options] Override http request option.
|
|
5026
|
+
* @throws {RequiredError}
|
|
5027
|
+
*/
|
|
5028
|
+
aiSearchDisable(organisation, project, options) {
|
|
5029
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5030
|
+
var _a, _b, _c;
|
|
5031
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDisable(organisation, project, options);
|
|
5032
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5033
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchDisable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5034
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5035
|
+
});
|
|
5036
|
+
},
|
|
5037
|
+
/**
|
|
5038
|
+
*
|
|
5039
|
+
* @summary Enable AI Search for a project
|
|
5040
|
+
* @param {string} organisation
|
|
5041
|
+
* @param {string} project
|
|
5042
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5043
|
+
* @param {*} [options] Override http request option.
|
|
5044
|
+
* @throws {RequiredError}
|
|
5045
|
+
*/
|
|
5046
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5047
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5048
|
+
var _a, _b, _c;
|
|
5049
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchEnable(organisation, project, aiSearchEnableRequest, options);
|
|
5050
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5051
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchEnable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5052
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5053
|
+
});
|
|
5054
|
+
},
|
|
5055
|
+
/**
|
|
5056
|
+
*
|
|
5057
|
+
* @summary Get AI Search ingest job status
|
|
5058
|
+
* @param {string} organisation
|
|
5059
|
+
* @param {string} project
|
|
5060
|
+
* @param {string} jobId
|
|
5061
|
+
* @param {*} [options] Override http request option.
|
|
5062
|
+
* @throws {RequiredError}
|
|
5063
|
+
*/
|
|
5064
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5065
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5066
|
+
var _a, _b, _c;
|
|
5067
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawl(organisation, project, jobId, options);
|
|
5068
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5069
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5070
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5071
|
+
});
|
|
5072
|
+
},
|
|
5073
|
+
/**
|
|
5074
|
+
*
|
|
5075
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5076
|
+
* @param {string} organisation
|
|
5077
|
+
* @param {string} project
|
|
5078
|
+
* @param {string} jobId
|
|
5079
|
+
* @param {number} [limit]
|
|
5080
|
+
* @param {number} [statusCode]
|
|
5081
|
+
* @param {string} [processingStatus]
|
|
5082
|
+
* @param {*} [options] Override http request option.
|
|
5083
|
+
* @throws {RequiredError}
|
|
5084
|
+
*/
|
|
5085
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5086
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5087
|
+
var _a, _b, _c;
|
|
5088
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options);
|
|
5089
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5090
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetCrawlPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5091
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5092
|
+
});
|
|
5093
|
+
},
|
|
5094
|
+
/**
|
|
5095
|
+
*
|
|
5096
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5097
|
+
* @param {string} organisation
|
|
5098
|
+
* @param {string} project
|
|
5099
|
+
* @param {*} [options] Override http request option.
|
|
5100
|
+
* @throws {RequiredError}
|
|
5101
|
+
*/
|
|
5102
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5103
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5104
|
+
var _a, _b, _c;
|
|
5105
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetSettings(organisation, project, options);
|
|
5106
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5107
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5108
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5109
|
+
});
|
|
5110
|
+
},
|
|
5111
|
+
/**
|
|
5112
|
+
*
|
|
5113
|
+
* @summary Ingest pages into the AI Search index
|
|
5114
|
+
* @param {string} organisation
|
|
5115
|
+
* @param {string} project
|
|
5116
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5117
|
+
* @param {*} [options] Override http request option.
|
|
5118
|
+
* @throws {RequiredError}
|
|
5119
|
+
*/
|
|
5120
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5121
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5122
|
+
var _a, _b, _c;
|
|
5123
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options);
|
|
5124
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5125
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchIngestPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5126
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5127
|
+
});
|
|
5128
|
+
},
|
|
5129
|
+
/**
|
|
5130
|
+
*
|
|
5131
|
+
* @summary List AI Search ingest jobs
|
|
5132
|
+
* @param {string} organisation
|
|
5133
|
+
* @param {string} project
|
|
5134
|
+
* @param {number} [limit]
|
|
5135
|
+
* @param {*} [options] Override http request option.
|
|
5136
|
+
* @throws {RequiredError}
|
|
5137
|
+
*/
|
|
5138
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5139
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5140
|
+
var _a, _b, _c;
|
|
5141
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListCrawls(organisation, project, limit, options);
|
|
5142
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5143
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchListCrawls']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5144
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5145
|
+
});
|
|
5146
|
+
},
|
|
5147
|
+
/**
|
|
5148
|
+
*
|
|
5149
|
+
* @summary List indexed pages with cursor pagination
|
|
5150
|
+
* @param {string} organisation
|
|
5151
|
+
* @param {string} project
|
|
5152
|
+
* @param {number} [limit]
|
|
5153
|
+
* @param {string} [cursor]
|
|
5154
|
+
* @param {string} [search]
|
|
5155
|
+
* @param {*} [options] Override http request option.
|
|
5156
|
+
* @throws {RequiredError}
|
|
5157
|
+
*/
|
|
5158
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5160
|
+
var _a, _b, _c;
|
|
5161
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListPages(organisation, project, limit, cursor, search, options);
|
|
5162
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5163
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchListPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5164
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5165
|
+
});
|
|
5166
|
+
},
|
|
5167
|
+
/**
|
|
5168
|
+
*
|
|
5169
|
+
* @summary Purge the entire AI Search index
|
|
5170
|
+
* @param {string} organisation
|
|
5171
|
+
* @param {string} project
|
|
5172
|
+
* @param {*} [options] Override http request option.
|
|
5173
|
+
* @throws {RequiredError}
|
|
5174
|
+
*/
|
|
5175
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5176
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5177
|
+
var _a, _b, _c;
|
|
5178
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchPurgeIndex(organisation, project, options);
|
|
5179
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5180
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchPurgeIndex']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5181
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5182
|
+
});
|
|
5183
|
+
},
|
|
5184
|
+
/**
|
|
5185
|
+
*
|
|
5186
|
+
* @summary Semantic search across the AI Search index
|
|
5187
|
+
* @param {string} organisation
|
|
5188
|
+
* @param {string} project
|
|
5189
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5190
|
+
* @param {*} [options] Override http request option.
|
|
5191
|
+
* @throws {RequiredError}
|
|
5192
|
+
*/
|
|
5193
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5194
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5195
|
+
var _a, _b, _c;
|
|
5196
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchSearch(organisation, project, aiSearchSearchRequest, options);
|
|
5197
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5198
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchSearch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5199
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5200
|
+
});
|
|
5201
|
+
},
|
|
5202
|
+
/**
|
|
5203
|
+
*
|
|
5204
|
+
* @summary Get AI Search status for a project
|
|
5205
|
+
* @param {string} organisation
|
|
5206
|
+
* @param {string} project
|
|
5207
|
+
* @param {*} [options] Override http request option.
|
|
5208
|
+
* @throws {RequiredError}
|
|
5209
|
+
*/
|
|
5210
|
+
aiSearchStatus(organisation, project, options) {
|
|
5211
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5212
|
+
var _a, _b, _c;
|
|
5213
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchStatus(organisation, project, options);
|
|
5214
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5215
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5216
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5217
|
+
});
|
|
5218
|
+
},
|
|
5219
|
+
/**
|
|
5220
|
+
*
|
|
5221
|
+
* @summary Get the most popular AI Search queries
|
|
5222
|
+
* @param {string} organisation
|
|
5223
|
+
* @param {string} project
|
|
5224
|
+
* @param {string} [range]
|
|
5225
|
+
* @param {number} [limit]
|
|
5226
|
+
* @param {*} [options] Override http request option.
|
|
5227
|
+
* @throws {RequiredError}
|
|
5228
|
+
*/
|
|
5229
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5230
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5231
|
+
var _a, _b, _c;
|
|
5232
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTopQueries(organisation, project, range, limit, options);
|
|
5233
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5234
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchTopQueries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5235
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5236
|
+
});
|
|
5237
|
+
},
|
|
5238
|
+
/**
|
|
5239
|
+
*
|
|
5240
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5241
|
+
* @param {string} organisation
|
|
5242
|
+
* @param {string} project
|
|
5243
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5244
|
+
* @param {*} [options] Override http request option.
|
|
5245
|
+
* @throws {RequiredError}
|
|
5246
|
+
*/
|
|
5247
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5248
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5249
|
+
var _a, _b, _c;
|
|
5250
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options);
|
|
5251
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5252
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchTriggerCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5253
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5254
|
+
});
|
|
5255
|
+
},
|
|
5256
|
+
/**
|
|
5257
|
+
*
|
|
5258
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5259
|
+
* @param {string} organisation
|
|
5260
|
+
* @param {string} project
|
|
5261
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5262
|
+
* @param {*} [options] Override http request option.
|
|
5263
|
+
* @throws {RequiredError}
|
|
5264
|
+
*/
|
|
5265
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5266
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5267
|
+
var _a, _b, _c;
|
|
5268
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options);
|
|
5269
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5270
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchUpdateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5271
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5272
|
+
});
|
|
5273
|
+
},
|
|
5274
|
+
/**
|
|
5275
|
+
*
|
|
5276
|
+
* @summary Get usage statistics for the AI Search site
|
|
5277
|
+
* @param {string} organisation
|
|
5278
|
+
* @param {string} project
|
|
5279
|
+
* @param {string} [range]
|
|
5280
|
+
* @param {*} [options] Override http request option.
|
|
5281
|
+
* @throws {RequiredError}
|
|
5282
|
+
*/
|
|
5283
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5284
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
5285
|
+
var _a, _b, _c;
|
|
5286
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUsage(organisation, project, range, options);
|
|
5287
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
5288
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
5289
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
5290
|
+
});
|
|
5291
|
+
},
|
|
5292
|
+
};
|
|
5293
|
+
};
|
|
5294
|
+
/**
|
|
5295
|
+
* AISearchApi - factory interface
|
|
5296
|
+
* @export
|
|
5297
|
+
*/
|
|
5298
|
+
export const AISearchApiFactory = function (configuration, basePath, axios) {
|
|
5299
|
+
const localVarFp = AISearchApiFp(configuration);
|
|
5300
|
+
return {
|
|
5301
|
+
/**
|
|
5302
|
+
*
|
|
5303
|
+
* @summary RAG chat with AI Search content
|
|
5304
|
+
* @param {string} organisation
|
|
5305
|
+
* @param {string} project
|
|
5306
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5307
|
+
* @param {*} [options] Override http request option.
|
|
5308
|
+
* @throws {RequiredError}
|
|
5309
|
+
*/
|
|
5310
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5311
|
+
return localVarFp.aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(axios, basePath));
|
|
5312
|
+
},
|
|
5313
|
+
/**
|
|
5314
|
+
*
|
|
5315
|
+
* @summary Delete pages by URLs or patterns
|
|
5316
|
+
* @param {string} organisation
|
|
5317
|
+
* @param {string} project
|
|
5318
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5319
|
+
* @param {*} [options] Override http request option.
|
|
5320
|
+
* @throws {RequiredError}
|
|
5321
|
+
*/
|
|
5322
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5323
|
+
return localVarFp.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(axios, basePath));
|
|
5324
|
+
},
|
|
5325
|
+
/**
|
|
5326
|
+
*
|
|
5327
|
+
* @summary Disable AI Search for a project
|
|
5328
|
+
* @param {string} organisation
|
|
5329
|
+
* @param {string} project
|
|
5330
|
+
* @param {*} [options] Override http request option.
|
|
5331
|
+
* @throws {RequiredError}
|
|
5332
|
+
*/
|
|
5333
|
+
aiSearchDisable(organisation, project, options) {
|
|
5334
|
+
return localVarFp.aiSearchDisable(organisation, project, options).then((request) => request(axios, basePath));
|
|
5335
|
+
},
|
|
5336
|
+
/**
|
|
5337
|
+
*
|
|
5338
|
+
* @summary Enable AI Search for a project
|
|
5339
|
+
* @param {string} organisation
|
|
5340
|
+
* @param {string} project
|
|
5341
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5342
|
+
* @param {*} [options] Override http request option.
|
|
5343
|
+
* @throws {RequiredError}
|
|
5344
|
+
*/
|
|
5345
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5346
|
+
return localVarFp.aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(axios, basePath));
|
|
5347
|
+
},
|
|
5348
|
+
/**
|
|
5349
|
+
*
|
|
5350
|
+
* @summary Get AI Search ingest job status
|
|
5351
|
+
* @param {string} organisation
|
|
5352
|
+
* @param {string} project
|
|
5353
|
+
* @param {string} jobId
|
|
5354
|
+
* @param {*} [options] Override http request option.
|
|
5355
|
+
* @throws {RequiredError}
|
|
5356
|
+
*/
|
|
5357
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5358
|
+
return localVarFp.aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(axios, basePath));
|
|
5359
|
+
},
|
|
5360
|
+
/**
|
|
5361
|
+
*
|
|
5362
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5363
|
+
* @param {string} organisation
|
|
5364
|
+
* @param {string} project
|
|
5365
|
+
* @param {string} jobId
|
|
5366
|
+
* @param {number} [limit]
|
|
5367
|
+
* @param {number} [statusCode]
|
|
5368
|
+
* @param {string} [processingStatus]
|
|
5369
|
+
* @param {*} [options] Override http request option.
|
|
5370
|
+
* @throws {RequiredError}
|
|
5371
|
+
*/
|
|
5372
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5373
|
+
return localVarFp.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(axios, basePath));
|
|
5374
|
+
},
|
|
5375
|
+
/**
|
|
5376
|
+
*
|
|
5377
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5378
|
+
* @param {string} organisation
|
|
5379
|
+
* @param {string} project
|
|
5380
|
+
* @param {*} [options] Override http request option.
|
|
5381
|
+
* @throws {RequiredError}
|
|
5382
|
+
*/
|
|
5383
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5384
|
+
return localVarFp.aiSearchGetSettings(organisation, project, options).then((request) => request(axios, basePath));
|
|
5385
|
+
},
|
|
5386
|
+
/**
|
|
5387
|
+
*
|
|
5388
|
+
* @summary Ingest pages into the AI Search index
|
|
5389
|
+
* @param {string} organisation
|
|
5390
|
+
* @param {string} project
|
|
5391
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5392
|
+
* @param {*} [options] Override http request option.
|
|
5393
|
+
* @throws {RequiredError}
|
|
5394
|
+
*/
|
|
5395
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5396
|
+
return localVarFp.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(axios, basePath));
|
|
5397
|
+
},
|
|
5398
|
+
/**
|
|
5399
|
+
*
|
|
5400
|
+
* @summary List AI Search ingest jobs
|
|
5401
|
+
* @param {string} organisation
|
|
5402
|
+
* @param {string} project
|
|
5403
|
+
* @param {number} [limit]
|
|
5404
|
+
* @param {*} [options] Override http request option.
|
|
5405
|
+
* @throws {RequiredError}
|
|
5406
|
+
*/
|
|
5407
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5408
|
+
return localVarFp.aiSearchListCrawls(organisation, project, limit, options).then((request) => request(axios, basePath));
|
|
5409
|
+
},
|
|
5410
|
+
/**
|
|
5411
|
+
*
|
|
5412
|
+
* @summary List indexed pages with cursor pagination
|
|
5413
|
+
* @param {string} organisation
|
|
5414
|
+
* @param {string} project
|
|
5415
|
+
* @param {number} [limit]
|
|
5416
|
+
* @param {string} [cursor]
|
|
5417
|
+
* @param {string} [search]
|
|
5418
|
+
* @param {*} [options] Override http request option.
|
|
5419
|
+
* @throws {RequiredError}
|
|
5420
|
+
*/
|
|
5421
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5422
|
+
return localVarFp.aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(axios, basePath));
|
|
5423
|
+
},
|
|
5424
|
+
/**
|
|
5425
|
+
*
|
|
5426
|
+
* @summary Purge the entire AI Search index
|
|
5427
|
+
* @param {string} organisation
|
|
5428
|
+
* @param {string} project
|
|
5429
|
+
* @param {*} [options] Override http request option.
|
|
5430
|
+
* @throws {RequiredError}
|
|
5431
|
+
*/
|
|
5432
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5433
|
+
return localVarFp.aiSearchPurgeIndex(organisation, project, options).then((request) => request(axios, basePath));
|
|
5434
|
+
},
|
|
5435
|
+
/**
|
|
5436
|
+
*
|
|
5437
|
+
* @summary Semantic search across the AI Search index
|
|
5438
|
+
* @param {string} organisation
|
|
5439
|
+
* @param {string} project
|
|
5440
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5441
|
+
* @param {*} [options] Override http request option.
|
|
5442
|
+
* @throws {RequiredError}
|
|
5443
|
+
*/
|
|
5444
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5445
|
+
return localVarFp.aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(axios, basePath));
|
|
5446
|
+
},
|
|
5447
|
+
/**
|
|
5448
|
+
*
|
|
5449
|
+
* @summary Get AI Search status for a project
|
|
5450
|
+
* @param {string} organisation
|
|
5451
|
+
* @param {string} project
|
|
5452
|
+
* @param {*} [options] Override http request option.
|
|
5453
|
+
* @throws {RequiredError}
|
|
5454
|
+
*/
|
|
5455
|
+
aiSearchStatus(organisation, project, options) {
|
|
5456
|
+
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
5457
|
+
},
|
|
5458
|
+
/**
|
|
5459
|
+
*
|
|
5460
|
+
* @summary Get the most popular AI Search queries
|
|
5461
|
+
* @param {string} organisation
|
|
5462
|
+
* @param {string} project
|
|
5463
|
+
* @param {string} [range]
|
|
5464
|
+
* @param {number} [limit]
|
|
5465
|
+
* @param {*} [options] Override http request option.
|
|
5466
|
+
* @throws {RequiredError}
|
|
5467
|
+
*/
|
|
5468
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5469
|
+
return localVarFp.aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(axios, basePath));
|
|
5470
|
+
},
|
|
5471
|
+
/**
|
|
5472
|
+
*
|
|
5473
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5474
|
+
* @param {string} organisation
|
|
5475
|
+
* @param {string} project
|
|
5476
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5477
|
+
* @param {*} [options] Override http request option.
|
|
5478
|
+
* @throws {RequiredError}
|
|
5479
|
+
*/
|
|
5480
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5481
|
+
return localVarFp.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(axios, basePath));
|
|
5482
|
+
},
|
|
5483
|
+
/**
|
|
5484
|
+
*
|
|
5485
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5486
|
+
* @param {string} organisation
|
|
5487
|
+
* @param {string} project
|
|
5488
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5489
|
+
* @param {*} [options] Override http request option.
|
|
5490
|
+
* @throws {RequiredError}
|
|
5491
|
+
*/
|
|
5492
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5493
|
+
return localVarFp.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(axios, basePath));
|
|
5494
|
+
},
|
|
5495
|
+
/**
|
|
5496
|
+
*
|
|
5497
|
+
* @summary Get usage statistics for the AI Search site
|
|
5498
|
+
* @param {string} organisation
|
|
5499
|
+
* @param {string} project
|
|
5500
|
+
* @param {string} [range]
|
|
5501
|
+
* @param {*} [options] Override http request option.
|
|
5502
|
+
* @throws {RequiredError}
|
|
5503
|
+
*/
|
|
5504
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5505
|
+
return localVarFp.aiSearchUsage(organisation, project, range, options).then((request) => request(axios, basePath));
|
|
5506
|
+
},
|
|
5507
|
+
};
|
|
5508
|
+
};
|
|
5509
|
+
/**
|
|
5510
|
+
* AISearchApi - object-oriented interface
|
|
5511
|
+
* @export
|
|
5512
|
+
* @class AISearchApi
|
|
5513
|
+
* @extends {BaseAPI}
|
|
5514
|
+
*/
|
|
5515
|
+
export class AISearchApi extends BaseAPI {
|
|
5516
|
+
/**
|
|
5517
|
+
*
|
|
5518
|
+
* @summary RAG chat with AI Search content
|
|
5519
|
+
* @param {string} organisation
|
|
5520
|
+
* @param {string} project
|
|
5521
|
+
* @param {AiSearchChatRequest} aiSearchChatRequest
|
|
5522
|
+
* @param {*} [options] Override http request option.
|
|
5523
|
+
* @throws {RequiredError}
|
|
5524
|
+
* @memberof AISearchApi
|
|
5525
|
+
*/
|
|
5526
|
+
aiSearchChat(organisation, project, aiSearchChatRequest, options) {
|
|
5527
|
+
return AISearchApiFp(this.configuration).aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5528
|
+
}
|
|
5529
|
+
/**
|
|
5530
|
+
*
|
|
5531
|
+
* @summary Delete pages by URLs or patterns
|
|
5532
|
+
* @param {string} organisation
|
|
5533
|
+
* @param {string} project
|
|
5534
|
+
* @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
|
|
5535
|
+
* @param {*} [options] Override http request option.
|
|
5536
|
+
* @throws {RequiredError}
|
|
5537
|
+
* @memberof AISearchApi
|
|
5538
|
+
*/
|
|
5539
|
+
aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
|
|
5540
|
+
return AISearchApiFp(this.configuration).aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5541
|
+
}
|
|
5542
|
+
/**
|
|
5543
|
+
*
|
|
5544
|
+
* @summary Disable AI Search for a project
|
|
5545
|
+
* @param {string} organisation
|
|
5546
|
+
* @param {string} project
|
|
5547
|
+
* @param {*} [options] Override http request option.
|
|
5548
|
+
* @throws {RequiredError}
|
|
5549
|
+
* @memberof AISearchApi
|
|
5550
|
+
*/
|
|
5551
|
+
aiSearchDisable(organisation, project, options) {
|
|
5552
|
+
return AISearchApiFp(this.configuration).aiSearchDisable(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5553
|
+
}
|
|
5554
|
+
/**
|
|
5555
|
+
*
|
|
5556
|
+
* @summary Enable AI Search for a project
|
|
5557
|
+
* @param {string} organisation
|
|
5558
|
+
* @param {string} project
|
|
5559
|
+
* @param {AiSearchEnableRequest} [aiSearchEnableRequest]
|
|
5560
|
+
* @param {*} [options] Override http request option.
|
|
5561
|
+
* @throws {RequiredError}
|
|
5562
|
+
* @memberof AISearchApi
|
|
5563
|
+
*/
|
|
5564
|
+
aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
|
|
5565
|
+
return AISearchApiFp(this.configuration).aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5566
|
+
}
|
|
5567
|
+
/**
|
|
5568
|
+
*
|
|
5569
|
+
* @summary Get AI Search ingest job status
|
|
5570
|
+
* @param {string} organisation
|
|
5571
|
+
* @param {string} project
|
|
5572
|
+
* @param {string} jobId
|
|
5573
|
+
* @param {*} [options] Override http request option.
|
|
5574
|
+
* @throws {RequiredError}
|
|
5575
|
+
* @memberof AISearchApi
|
|
5576
|
+
*/
|
|
5577
|
+
aiSearchGetCrawl(organisation, project, jobId, options) {
|
|
5578
|
+
return AISearchApiFp(this.configuration).aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(this.axios, this.basePath));
|
|
5579
|
+
}
|
|
5580
|
+
/**
|
|
5581
|
+
*
|
|
5582
|
+
* @summary Get per-page ingest results for a crawl job
|
|
5583
|
+
* @param {string} organisation
|
|
5584
|
+
* @param {string} project
|
|
5585
|
+
* @param {string} jobId
|
|
5586
|
+
* @param {number} [limit]
|
|
5587
|
+
* @param {number} [statusCode]
|
|
5588
|
+
* @param {string} [processingStatus]
|
|
5589
|
+
* @param {*} [options] Override http request option.
|
|
5590
|
+
* @throws {RequiredError}
|
|
5591
|
+
* @memberof AISearchApi
|
|
5592
|
+
*/
|
|
5593
|
+
aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
|
|
5594
|
+
return AISearchApiFp(this.configuration).aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(this.axios, this.basePath));
|
|
5595
|
+
}
|
|
5596
|
+
/**
|
|
5597
|
+
*
|
|
5598
|
+
* @summary Get AI Search public access and rate limit settings
|
|
5599
|
+
* @param {string} organisation
|
|
5600
|
+
* @param {string} project
|
|
5601
|
+
* @param {*} [options] Override http request option.
|
|
5602
|
+
* @throws {RequiredError}
|
|
5603
|
+
* @memberof AISearchApi
|
|
5604
|
+
*/
|
|
5605
|
+
aiSearchGetSettings(organisation, project, options) {
|
|
5606
|
+
return AISearchApiFp(this.configuration).aiSearchGetSettings(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5607
|
+
}
|
|
5608
|
+
/**
|
|
5609
|
+
*
|
|
5610
|
+
* @summary Ingest pages into the AI Search index
|
|
5611
|
+
* @param {string} organisation
|
|
5612
|
+
* @param {string} project
|
|
5613
|
+
* @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
|
|
5614
|
+
* @param {*} [options] Override http request option.
|
|
5615
|
+
* @throws {RequiredError}
|
|
5616
|
+
* @memberof AISearchApi
|
|
5617
|
+
*/
|
|
5618
|
+
aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
|
|
5619
|
+
return AISearchApiFp(this.configuration).aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5620
|
+
}
|
|
5621
|
+
/**
|
|
5622
|
+
*
|
|
5623
|
+
* @summary List AI Search ingest jobs
|
|
5624
|
+
* @param {string} organisation
|
|
5625
|
+
* @param {string} project
|
|
5626
|
+
* @param {number} [limit]
|
|
5627
|
+
* @param {*} [options] Override http request option.
|
|
5628
|
+
* @throws {RequiredError}
|
|
5629
|
+
* @memberof AISearchApi
|
|
5630
|
+
*/
|
|
5631
|
+
aiSearchListCrawls(organisation, project, limit, options) {
|
|
5632
|
+
return AISearchApiFp(this.configuration).aiSearchListCrawls(organisation, project, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5633
|
+
}
|
|
5634
|
+
/**
|
|
5635
|
+
*
|
|
5636
|
+
* @summary List indexed pages with cursor pagination
|
|
5637
|
+
* @param {string} organisation
|
|
5638
|
+
* @param {string} project
|
|
5639
|
+
* @param {number} [limit]
|
|
5640
|
+
* @param {string} [cursor]
|
|
5641
|
+
* @param {string} [search]
|
|
5642
|
+
* @param {*} [options] Override http request option.
|
|
5643
|
+
* @throws {RequiredError}
|
|
5644
|
+
* @memberof AISearchApi
|
|
5645
|
+
*/
|
|
5646
|
+
aiSearchListPages(organisation, project, limit, cursor, search, options) {
|
|
5647
|
+
return AISearchApiFp(this.configuration).aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(this.axios, this.basePath));
|
|
5648
|
+
}
|
|
5649
|
+
/**
|
|
5650
|
+
*
|
|
5651
|
+
* @summary Purge the entire AI Search index
|
|
5652
|
+
* @param {string} organisation
|
|
5653
|
+
* @param {string} project
|
|
5654
|
+
* @param {*} [options] Override http request option.
|
|
5655
|
+
* @throws {RequiredError}
|
|
5656
|
+
* @memberof AISearchApi
|
|
5657
|
+
*/
|
|
5658
|
+
aiSearchPurgeIndex(organisation, project, options) {
|
|
5659
|
+
return AISearchApiFp(this.configuration).aiSearchPurgeIndex(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5660
|
+
}
|
|
5661
|
+
/**
|
|
5662
|
+
*
|
|
5663
|
+
* @summary Semantic search across the AI Search index
|
|
5664
|
+
* @param {string} organisation
|
|
5665
|
+
* @param {string} project
|
|
5666
|
+
* @param {AiSearchSearchRequest} aiSearchSearchRequest
|
|
5667
|
+
* @param {*} [options] Override http request option.
|
|
5668
|
+
* @throws {RequiredError}
|
|
5669
|
+
* @memberof AISearchApi
|
|
5670
|
+
*/
|
|
5671
|
+
aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
|
|
5672
|
+
return AISearchApiFp(this.configuration).aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5673
|
+
}
|
|
5674
|
+
/**
|
|
5675
|
+
*
|
|
5676
|
+
* @summary Get AI Search status for a project
|
|
5677
|
+
* @param {string} organisation
|
|
5678
|
+
* @param {string} project
|
|
5679
|
+
* @param {*} [options] Override http request option.
|
|
5680
|
+
* @throws {RequiredError}
|
|
5681
|
+
* @memberof AISearchApi
|
|
5682
|
+
*/
|
|
5683
|
+
aiSearchStatus(organisation, project, options) {
|
|
5684
|
+
return AISearchApiFp(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
5685
|
+
}
|
|
5686
|
+
/**
|
|
5687
|
+
*
|
|
5688
|
+
* @summary Get the most popular AI Search queries
|
|
5689
|
+
* @param {string} organisation
|
|
5690
|
+
* @param {string} project
|
|
5691
|
+
* @param {string} [range]
|
|
5692
|
+
* @param {number} [limit]
|
|
5693
|
+
* @param {*} [options] Override http request option.
|
|
5694
|
+
* @throws {RequiredError}
|
|
5695
|
+
* @memberof AISearchApi
|
|
5696
|
+
*/
|
|
5697
|
+
aiSearchTopQueries(organisation, project, range, limit, options) {
|
|
5698
|
+
return AISearchApiFp(this.configuration).aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(this.axios, this.basePath));
|
|
5699
|
+
}
|
|
5700
|
+
/**
|
|
5701
|
+
*
|
|
5702
|
+
* @summary Trigger a crawler run that ingests into AI Search
|
|
5703
|
+
* @param {string} organisation
|
|
5704
|
+
* @param {string} project
|
|
5705
|
+
* @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
|
|
5706
|
+
* @param {*} [options] Override http request option.
|
|
5707
|
+
* @throws {RequiredError}
|
|
5708
|
+
* @memberof AISearchApi
|
|
5709
|
+
*/
|
|
5710
|
+
aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
|
|
5711
|
+
return AISearchApiFp(this.configuration).aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5712
|
+
}
|
|
5713
|
+
/**
|
|
5714
|
+
*
|
|
5715
|
+
* @summary Update AI Search public access and rate limit settings
|
|
5716
|
+
* @param {string} organisation
|
|
5717
|
+
* @param {string} project
|
|
5718
|
+
* @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
|
|
5719
|
+
* @param {*} [options] Override http request option.
|
|
5720
|
+
* @throws {RequiredError}
|
|
5721
|
+
* @memberof AISearchApi
|
|
5722
|
+
*/
|
|
5723
|
+
aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
|
|
5724
|
+
return AISearchApiFp(this.configuration).aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
5725
|
+
}
|
|
5726
|
+
/**
|
|
5727
|
+
*
|
|
5728
|
+
* @summary Get usage statistics for the AI Search site
|
|
5729
|
+
* @param {string} organisation
|
|
5730
|
+
* @param {string} project
|
|
5731
|
+
* @param {string} [range]
|
|
5732
|
+
* @param {*} [options] Override http request option.
|
|
5733
|
+
* @throws {RequiredError}
|
|
5734
|
+
* @memberof AISearchApi
|
|
5735
|
+
*/
|
|
5736
|
+
aiSearchUsage(organisation, project, range, options) {
|
|
5737
|
+
return AISearchApiFp(this.configuration).aiSearchUsage(organisation, project, range, options).then((request) => request(this.axios, this.basePath));
|
|
5738
|
+
}
|
|
5739
|
+
}
|
|
5740
|
+
/**
|
|
5741
|
+
* AISessionsApi - axios parameter creator
|
|
5742
|
+
* @export
|
|
5743
|
+
*/
|
|
5744
|
+
export const AISessionsApiAxiosParamCreator = function (configuration) {
|
|
5745
|
+
return {
|
|
5746
|
+
/**
|
|
5747
|
+
* Creates an AI session with automatic expiration (60 min default, 24h max). Sessions are isolated by organization. Use userId to identify the user creating the session. Use sessionGroup for logical grouping. Use metadata for additional custom data. Filter sessions by userId or sessionGroup when listing.
|
|
5748
|
+
* @summary Create a new chat session with multi-tenant isolation
|
|
5749
|
+
* @param {string} organisation The organisation ID
|
|
5750
|
+
* @param {CreateAISessionRequest} createAISessionRequest
|
|
5751
|
+
* @param {*} [options] Override http request option.
|
|
5752
|
+
* @throws {RequiredError}
|
|
5753
|
+
*/
|
|
5754
|
+
createAISession: (organisation_1, createAISessionRequest_1, ...args_1) => __awaiter(this, [organisation_1, createAISessionRequest_1, ...args_1], void 0, function* (organisation, createAISessionRequest, options = {}) {
|
|
4143
5755
|
// verify required parameter 'organisation' is not null or undefined
|
|
4144
5756
|
assertParamExists('createAISession', 'organisation', organisation);
|
|
4145
5757
|
// verify required parameter 'createAISessionRequest' is not null or undefined
|
|
@@ -5553,7 +7165,7 @@ export class AISkillsApi extends BaseAPI {
|
|
|
5553
7165
|
export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
5554
7166
|
return {
|
|
5555
7167
|
/**
|
|
5556
|
-
* Creates a new Slack bot
|
|
7168
|
+
* 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
|
|
5557
7169
|
* @summary Create Slack Bot
|
|
5558
7170
|
* @param {string} organisation The organisation ID
|
|
5559
7171
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5590,7 +7202,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5590
7202
|
};
|
|
5591
7203
|
}),
|
|
5592
7204
|
/**
|
|
5593
|
-
* Permanently deletes a Slack bot
|
|
7205
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5594
7206
|
* @summary Delete Slack Bot
|
|
5595
7207
|
* @param {string} organisation The organisation ID
|
|
5596
7208
|
* @param {string} botId The Slack bot ID
|
|
@@ -5626,7 +7238,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5626
7238
|
};
|
|
5627
7239
|
}),
|
|
5628
7240
|
/**
|
|
5629
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7241
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5630
7242
|
* @summary Get Slack Bot
|
|
5631
7243
|
* @param {string} organisation The organisation ID
|
|
5632
7244
|
* @param {string} botId The Slack bot ID
|
|
@@ -5662,7 +7274,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5662
7274
|
};
|
|
5663
7275
|
}),
|
|
5664
7276
|
/**
|
|
5665
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7277
|
+
* 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.
|
|
5666
7278
|
* @summary List Slack Bots
|
|
5667
7279
|
* @param {string} organisation The organisation ID
|
|
5668
7280
|
* @param {*} [options] Override http request option.
|
|
@@ -5774,7 +7386,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
5774
7386
|
};
|
|
5775
7387
|
}),
|
|
5776
7388
|
/**
|
|
5777
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7389
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5778
7390
|
* @summary Update Slack Bot
|
|
5779
7391
|
* @param {string} organisation The organisation ID
|
|
5780
7392
|
* @param {string} botId The Slack bot ID
|
|
@@ -5824,7 +7436,7 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
5824
7436
|
const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration);
|
|
5825
7437
|
return {
|
|
5826
7438
|
/**
|
|
5827
|
-
* Creates a new Slack bot
|
|
7439
|
+
* 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
|
|
5828
7440
|
* @summary Create Slack Bot
|
|
5829
7441
|
* @param {string} organisation The organisation ID
|
|
5830
7442
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5841,7 +7453,7 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
5841
7453
|
});
|
|
5842
7454
|
},
|
|
5843
7455
|
/**
|
|
5844
|
-
* Permanently deletes a Slack bot
|
|
7456
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5845
7457
|
* @summary Delete Slack Bot
|
|
5846
7458
|
* @param {string} organisation The organisation ID
|
|
5847
7459
|
* @param {string} botId The Slack bot ID
|
|
@@ -5858,7 +7470,7 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
5858
7470
|
});
|
|
5859
7471
|
},
|
|
5860
7472
|
/**
|
|
5861
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7473
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5862
7474
|
* @summary Get Slack Bot
|
|
5863
7475
|
* @param {string} organisation The organisation ID
|
|
5864
7476
|
* @param {string} botId The Slack bot ID
|
|
@@ -5875,7 +7487,7 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
5875
7487
|
});
|
|
5876
7488
|
},
|
|
5877
7489
|
/**
|
|
5878
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7490
|
+
* 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.
|
|
5879
7491
|
* @summary List Slack Bots
|
|
5880
7492
|
* @param {string} organisation The organisation ID
|
|
5881
7493
|
* @param {*} [options] Override http request option.
|
|
@@ -5927,7 +7539,7 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
5927
7539
|
});
|
|
5928
7540
|
},
|
|
5929
7541
|
/**
|
|
5930
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7542
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
5931
7543
|
* @summary Update Slack Bot
|
|
5932
7544
|
* @param {string} organisation The organisation ID
|
|
5933
7545
|
* @param {string} botId The Slack bot ID
|
|
@@ -5954,7 +7566,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
5954
7566
|
const localVarFp = AISlackBotsApiFp(configuration);
|
|
5955
7567
|
return {
|
|
5956
7568
|
/**
|
|
5957
|
-
* Creates a new Slack bot
|
|
7569
|
+
* 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
|
|
5958
7570
|
* @summary Create Slack Bot
|
|
5959
7571
|
* @param {string} organisation The organisation ID
|
|
5960
7572
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -5965,7 +7577,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
5965
7577
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
5966
7578
|
},
|
|
5967
7579
|
/**
|
|
5968
|
-
* Permanently deletes a Slack bot
|
|
7580
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
5969
7581
|
* @summary Delete Slack Bot
|
|
5970
7582
|
* @param {string} organisation The organisation ID
|
|
5971
7583
|
* @param {string} botId The Slack bot ID
|
|
@@ -5976,7 +7588,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
5976
7588
|
return localVarFp.deleteSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
5977
7589
|
},
|
|
5978
7590
|
/**
|
|
5979
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7591
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
5980
7592
|
* @summary Get Slack Bot
|
|
5981
7593
|
* @param {string} organisation The organisation ID
|
|
5982
7594
|
* @param {string} botId The Slack bot ID
|
|
@@ -5987,7 +7599,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
5987
7599
|
return localVarFp.getSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
|
|
5988
7600
|
},
|
|
5989
7601
|
/**
|
|
5990
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7602
|
+
* 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.
|
|
5991
7603
|
* @summary List Slack Bots
|
|
5992
7604
|
* @param {string} organisation The organisation ID
|
|
5993
7605
|
* @param {*} [options] Override http request option.
|
|
@@ -6021,7 +7633,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6021
7633
|
return localVarFp.searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(axios, basePath));
|
|
6022
7634
|
},
|
|
6023
7635
|
/**
|
|
6024
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7636
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6025
7637
|
* @summary Update Slack Bot
|
|
6026
7638
|
* @param {string} organisation The organisation ID
|
|
6027
7639
|
* @param {string} botId The Slack bot ID
|
|
@@ -6042,7 +7654,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
6042
7654
|
*/
|
|
6043
7655
|
export class AISlackBotsApi extends BaseAPI {
|
|
6044
7656
|
/**
|
|
6045
|
-
* Creates a new Slack bot
|
|
7657
|
+
* 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
|
|
6046
7658
|
* @summary Create Slack Bot
|
|
6047
7659
|
* @param {string} organisation The organisation ID
|
|
6048
7660
|
* @param {CreateSlackBotRequest} createSlackBotRequest
|
|
@@ -6054,7 +7666,7 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
6054
7666
|
return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
6055
7667
|
}
|
|
6056
7668
|
/**
|
|
6057
|
-
* Permanently deletes a Slack bot
|
|
7669
|
+
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
6058
7670
|
* @summary Delete Slack Bot
|
|
6059
7671
|
* @param {string} organisation The organisation ID
|
|
6060
7672
|
* @param {string} botId The Slack bot ID
|
|
@@ -6066,7 +7678,7 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
6066
7678
|
return AISlackBotsApiFp(this.configuration).deleteSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6067
7679
|
}
|
|
6068
7680
|
/**
|
|
6069
|
-
* Retrieves details for a specific Slack bot including its configuration and
|
|
7681
|
+
* Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
|
|
6070
7682
|
* @summary Get Slack Bot
|
|
6071
7683
|
* @param {string} organisation The organisation ID
|
|
6072
7684
|
* @param {string} botId The Slack bot ID
|
|
@@ -6078,7 +7690,7 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
6078
7690
|
return AISlackBotsApiFp(this.configuration).getSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
|
|
6079
7691
|
}
|
|
6080
7692
|
/**
|
|
6081
|
-
* Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
|
|
7693
|
+
* 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.
|
|
6082
7694
|
* @summary List Slack Bots
|
|
6083
7695
|
* @param {string} organisation The organisation ID
|
|
6084
7696
|
* @param {*} [options] Override http request option.
|
|
@@ -6115,7 +7727,7 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
6115
7727
|
return AISlackBotsApiFp(this.configuration).searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(this.axios, this.basePath));
|
|
6116
7728
|
}
|
|
6117
7729
|
/**
|
|
6118
|
-
* Updates a Slack bot\'s configuration. Only provided fields are updated.
|
|
7730
|
+
* Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
|
|
6119
7731
|
* @summary Update Slack Bot
|
|
6120
7732
|
* @param {string} organisation The organisation ID
|
|
6121
7733
|
* @param {string} botId The Slack bot ID
|
|
@@ -9224,20 +10836,24 @@ export const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9224
10836
|
*
|
|
9225
10837
|
* @summary Create a command for an environment
|
|
9226
10838
|
* @param {string} organisation The organisation ID
|
|
10839
|
+
* @param {string} application The application ID
|
|
9227
10840
|
* @param {string} environment The environment ID
|
|
9228
10841
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9229
10842
|
* @param {*} [options] Override http request option.
|
|
9230
10843
|
* @throws {RequiredError}
|
|
9231
10844
|
*/
|
|
9232
|
-
createCommand: (organisation_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, environment, createCommandRequest, options = {}) {
|
|
10845
|
+
createCommand: (organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, application, environment, createCommandRequest, options = {}) {
|
|
9233
10846
|
// verify required parameter 'organisation' is not null or undefined
|
|
9234
10847
|
assertParamExists('createCommand', 'organisation', organisation);
|
|
10848
|
+
// verify required parameter 'application' is not null or undefined
|
|
10849
|
+
assertParamExists('createCommand', 'application', application);
|
|
9235
10850
|
// verify required parameter 'environment' is not null or undefined
|
|
9236
10851
|
assertParamExists('createCommand', 'environment', environment);
|
|
9237
10852
|
// verify required parameter 'createCommandRequest' is not null or undefined
|
|
9238
10853
|
assertParamExists('createCommand', 'createCommandRequest', createCommandRequest);
|
|
9239
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
|
|
10854
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
|
|
9240
10855
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
10856
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9241
10857
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
9242
10858
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9243
10859
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9265,20 +10881,24 @@ export const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9265
10881
|
*
|
|
9266
10882
|
* @summary Get a command
|
|
9267
10883
|
* @param {string} organisation The organisation ID
|
|
10884
|
+
* @param {string} application The application ID
|
|
9268
10885
|
* @param {string} environment The environment ID
|
|
9269
|
-
* @param {string} command The command ID
|
|
10886
|
+
* @param {string} command The command run ID
|
|
9270
10887
|
* @param {*} [options] Override http request option.
|
|
9271
10888
|
* @throws {RequiredError}
|
|
9272
10889
|
*/
|
|
9273
|
-
getCommand: (organisation_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, command_1, ...args_1], void 0, function* (organisation, environment, command, options = {}) {
|
|
10890
|
+
getCommand: (organisation_1, application_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, command_1, ...args_1], void 0, function* (organisation, application, environment, command, options = {}) {
|
|
9274
10891
|
// verify required parameter 'organisation' is not null or undefined
|
|
9275
10892
|
assertParamExists('getCommand', 'organisation', organisation);
|
|
10893
|
+
// verify required parameter 'application' is not null or undefined
|
|
10894
|
+
assertParamExists('getCommand', 'application', application);
|
|
9276
10895
|
// verify required parameter 'environment' is not null or undefined
|
|
9277
10896
|
assertParamExists('getCommand', 'environment', environment);
|
|
9278
10897
|
// verify required parameter 'command' is not null or undefined
|
|
9279
10898
|
assertParamExists('getCommand', 'command', command);
|
|
9280
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands/{command}`
|
|
10899
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands/{command}`
|
|
9281
10900
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
10901
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9282
10902
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
9283
10903
|
.replace(`{${"command"}}`, encodeURIComponent(String(command)));
|
|
9284
10904
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
@@ -9305,17 +10925,21 @@ export const CommandsApiAxiosParamCreator = function (configuration) {
|
|
|
9305
10925
|
*
|
|
9306
10926
|
* @summary Get all commands for an environment
|
|
9307
10927
|
* @param {string} organisation The organisation ID
|
|
10928
|
+
* @param {string} application The application ID
|
|
9308
10929
|
* @param {string} environment The environment ID
|
|
9309
10930
|
* @param {*} [options] Override http request option.
|
|
9310
10931
|
* @throws {RequiredError}
|
|
9311
10932
|
*/
|
|
9312
|
-
listCommands: (organisation_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, ...args_1], void 0, function* (organisation, environment, options = {}) {
|
|
10933
|
+
listCommands: (organisation_1, application_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, ...args_1], void 0, function* (organisation, application, environment, options = {}) {
|
|
9313
10934
|
// verify required parameter 'organisation' is not null or undefined
|
|
9314
10935
|
assertParamExists('listCommands', 'organisation', organisation);
|
|
10936
|
+
// verify required parameter 'application' is not null or undefined
|
|
10937
|
+
assertParamExists('listCommands', 'application', application);
|
|
9315
10938
|
// verify required parameter 'environment' is not null or undefined
|
|
9316
10939
|
assertParamExists('listCommands', 'environment', environment);
|
|
9317
|
-
const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
|
|
10940
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
|
|
9318
10941
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
10942
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
9319
10943
|
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
9320
10944
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9321
10945
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
@@ -9350,15 +10974,16 @@ export const CommandsApiFp = function (configuration) {
|
|
|
9350
10974
|
*
|
|
9351
10975
|
* @summary Create a command for an environment
|
|
9352
10976
|
* @param {string} organisation The organisation ID
|
|
10977
|
+
* @param {string} application The application ID
|
|
9353
10978
|
* @param {string} environment The environment ID
|
|
9354
10979
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9355
10980
|
* @param {*} [options] Override http request option.
|
|
9356
10981
|
* @throws {RequiredError}
|
|
9357
10982
|
*/
|
|
9358
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
10983
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
9359
10984
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9360
10985
|
var _a, _b, _c;
|
|
9361
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, environment, createCommandRequest, options);
|
|
10986
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, application, environment, createCommandRequest, options);
|
|
9362
10987
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9363
10988
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommandsApi.createCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9364
10989
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9368,15 +10993,16 @@ export const CommandsApiFp = function (configuration) {
|
|
|
9368
10993
|
*
|
|
9369
10994
|
* @summary Get a command
|
|
9370
10995
|
* @param {string} organisation The organisation ID
|
|
10996
|
+
* @param {string} application The application ID
|
|
9371
10997
|
* @param {string} environment The environment ID
|
|
9372
|
-
* @param {string} command The command ID
|
|
10998
|
+
* @param {string} command The command run ID
|
|
9373
10999
|
* @param {*} [options] Override http request option.
|
|
9374
11000
|
* @throws {RequiredError}
|
|
9375
11001
|
*/
|
|
9376
|
-
getCommand(organisation, environment, command, options) {
|
|
11002
|
+
getCommand(organisation, application, environment, command, options) {
|
|
9377
11003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9378
11004
|
var _a, _b, _c;
|
|
9379
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, environment, command, options);
|
|
11005
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, application, environment, command, options);
|
|
9380
11006
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9381
11007
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommandsApi.getCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9382
11008
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9386,14 +11012,15 @@ export const CommandsApiFp = function (configuration) {
|
|
|
9386
11012
|
*
|
|
9387
11013
|
* @summary Get all commands for an environment
|
|
9388
11014
|
* @param {string} organisation The organisation ID
|
|
11015
|
+
* @param {string} application The application ID
|
|
9389
11016
|
* @param {string} environment The environment ID
|
|
9390
11017
|
* @param {*} [options] Override http request option.
|
|
9391
11018
|
* @throws {RequiredError}
|
|
9392
11019
|
*/
|
|
9393
|
-
listCommands(organisation, environment, options) {
|
|
11020
|
+
listCommands(organisation, application, environment, options) {
|
|
9394
11021
|
return __awaiter(this, void 0, void 0, function* () {
|
|
9395
11022
|
var _a, _b, _c;
|
|
9396
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, environment, options);
|
|
11023
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, application, environment, options);
|
|
9397
11024
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9398
11025
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['CommandsApi.listCommands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9399
11026
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
@@ -9412,36 +11039,39 @@ export const CommandsApiFactory = function (configuration, basePath, axios) {
|
|
|
9412
11039
|
*
|
|
9413
11040
|
* @summary Create a command for an environment
|
|
9414
11041
|
* @param {string} organisation The organisation ID
|
|
11042
|
+
* @param {string} application The application ID
|
|
9415
11043
|
* @param {string} environment The environment ID
|
|
9416
11044
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9417
11045
|
* @param {*} [options] Override http request option.
|
|
9418
11046
|
* @throws {RequiredError}
|
|
9419
11047
|
*/
|
|
9420
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
9421
|
-
return localVarFp.createCommand(organisation, environment, createCommandRequest, options).then((request) => request(axios, basePath));
|
|
11048
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
11049
|
+
return localVarFp.createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(axios, basePath));
|
|
9422
11050
|
},
|
|
9423
11051
|
/**
|
|
9424
11052
|
*
|
|
9425
11053
|
* @summary Get a command
|
|
9426
11054
|
* @param {string} organisation The organisation ID
|
|
11055
|
+
* @param {string} application The application ID
|
|
9427
11056
|
* @param {string} environment The environment ID
|
|
9428
|
-
* @param {string} command The command ID
|
|
11057
|
+
* @param {string} command The command run ID
|
|
9429
11058
|
* @param {*} [options] Override http request option.
|
|
9430
11059
|
* @throws {RequiredError}
|
|
9431
11060
|
*/
|
|
9432
|
-
getCommand(organisation, environment, command, options) {
|
|
9433
|
-
return localVarFp.getCommand(organisation, environment, command, options).then((request) => request(axios, basePath));
|
|
11061
|
+
getCommand(organisation, application, environment, command, options) {
|
|
11062
|
+
return localVarFp.getCommand(organisation, application, environment, command, options).then((request) => request(axios, basePath));
|
|
9434
11063
|
},
|
|
9435
11064
|
/**
|
|
9436
11065
|
*
|
|
9437
11066
|
* @summary Get all commands for an environment
|
|
9438
11067
|
* @param {string} organisation The organisation ID
|
|
11068
|
+
* @param {string} application The application ID
|
|
9439
11069
|
* @param {string} environment The environment ID
|
|
9440
11070
|
* @param {*} [options] Override http request option.
|
|
9441
11071
|
* @throws {RequiredError}
|
|
9442
11072
|
*/
|
|
9443
|
-
listCommands(organisation, environment, options) {
|
|
9444
|
-
return localVarFp.listCommands(organisation, environment, options).then((request) => request(axios, basePath));
|
|
11073
|
+
listCommands(organisation, application, environment, options) {
|
|
11074
|
+
return localVarFp.listCommands(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
9445
11075
|
},
|
|
9446
11076
|
};
|
|
9447
11077
|
};
|
|
@@ -9456,39 +11086,42 @@ export class CommandsApi extends BaseAPI {
|
|
|
9456
11086
|
*
|
|
9457
11087
|
* @summary Create a command for an environment
|
|
9458
11088
|
* @param {string} organisation The organisation ID
|
|
11089
|
+
* @param {string} application The application ID
|
|
9459
11090
|
* @param {string} environment The environment ID
|
|
9460
11091
|
* @param {CreateCommandRequest} createCommandRequest
|
|
9461
11092
|
* @param {*} [options] Override http request option.
|
|
9462
11093
|
* @throws {RequiredError}
|
|
9463
11094
|
* @memberof CommandsApi
|
|
9464
11095
|
*/
|
|
9465
|
-
createCommand(organisation, environment, createCommandRequest, options) {
|
|
9466
|
-
return CommandsApiFp(this.configuration).createCommand(organisation, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
11096
|
+
createCommand(organisation, application, environment, createCommandRequest, options) {
|
|
11097
|
+
return CommandsApiFp(this.configuration).createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9467
11098
|
}
|
|
9468
11099
|
/**
|
|
9469
11100
|
*
|
|
9470
11101
|
* @summary Get a command
|
|
9471
11102
|
* @param {string} organisation The organisation ID
|
|
11103
|
+
* @param {string} application The application ID
|
|
9472
11104
|
* @param {string} environment The environment ID
|
|
9473
|
-
* @param {string} command The command ID
|
|
11105
|
+
* @param {string} command The command run ID
|
|
9474
11106
|
* @param {*} [options] Override http request option.
|
|
9475
11107
|
* @throws {RequiredError}
|
|
9476
11108
|
* @memberof CommandsApi
|
|
9477
11109
|
*/
|
|
9478
|
-
getCommand(organisation, environment, command, options) {
|
|
9479
|
-
return CommandsApiFp(this.configuration).getCommand(organisation, environment, command, options).then((request) => request(this.axios, this.basePath));
|
|
11110
|
+
getCommand(organisation, application, environment, command, options) {
|
|
11111
|
+
return CommandsApiFp(this.configuration).getCommand(organisation, application, environment, command, options).then((request) => request(this.axios, this.basePath));
|
|
9480
11112
|
}
|
|
9481
11113
|
/**
|
|
9482
11114
|
*
|
|
9483
11115
|
* @summary Get all commands for an environment
|
|
9484
11116
|
* @param {string} organisation The organisation ID
|
|
11117
|
+
* @param {string} application The application ID
|
|
9485
11118
|
* @param {string} environment The environment ID
|
|
9486
11119
|
* @param {*} [options] Override http request option.
|
|
9487
11120
|
* @throws {RequiredError}
|
|
9488
11121
|
* @memberof CommandsApi
|
|
9489
11122
|
*/
|
|
9490
|
-
listCommands(organisation, environment, options) {
|
|
9491
|
-
return CommandsApiFp(this.configuration).listCommands(organisation, environment, options).then((request) => request(this.axios, this.basePath));
|
|
11123
|
+
listCommands(organisation, application, environment, options) {
|
|
11124
|
+
return CommandsApiFp(this.configuration).listCommands(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
9492
11125
|
}
|
|
9493
11126
|
}
|
|
9494
11127
|
/**
|
|
@@ -14540,56 +16173,361 @@ export class KVApi extends BaseAPI {
|
|
|
14540
16173
|
return KVApiFp(this.configuration).kVItemsUpdate(organization, project, storeId, key, v2StoreItemUpdateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14541
16174
|
}
|
|
14542
16175
|
/**
|
|
14543
|
-
* Share a KV store from the source project with a target project. The store will be accessible in the target project.
|
|
14544
|
-
* @summary Link a KV store to another project
|
|
14545
|
-
* @param {string} organization Organization identifier
|
|
14546
|
-
* @param {string} project Source project identifier
|
|
14547
|
-
* @param {string} storeId KV store identifier
|
|
14548
|
-
* @param {KVLinkToProjectRequest} kVLinkToProjectRequest
|
|
16176
|
+
* Share a KV store from the source project with a target project. The store will be accessible in the target project.
|
|
16177
|
+
* @summary Link a KV store to another project
|
|
16178
|
+
* @param {string} organization Organization identifier
|
|
16179
|
+
* @param {string} project Source project identifier
|
|
16180
|
+
* @param {string} storeId KV store identifier
|
|
16181
|
+
* @param {KVLinkToProjectRequest} kVLinkToProjectRequest
|
|
16182
|
+
* @param {*} [options] Override http request option.
|
|
16183
|
+
* @throws {RequiredError}
|
|
16184
|
+
* @memberof KVApi
|
|
16185
|
+
*/
|
|
16186
|
+
kVLinkToProject(organization, project, storeId, kVLinkToProjectRequest, options) {
|
|
16187
|
+
return KVApiFp(this.configuration).kVLinkToProject(organization, project, storeId, kVLinkToProjectRequest, options).then((request) => request(this.axios, this.basePath));
|
|
16188
|
+
}
|
|
16189
|
+
/**
|
|
16190
|
+
*
|
|
16191
|
+
* @summary List key-value stores
|
|
16192
|
+
* @param {string} organization Organization identifier
|
|
16193
|
+
* @param {string} project Project identifier
|
|
16194
|
+
* @param {*} [options] Override http request option.
|
|
16195
|
+
* @throws {RequiredError}
|
|
16196
|
+
* @memberof KVApi
|
|
16197
|
+
*/
|
|
16198
|
+
kVList(organization, project, options) {
|
|
16199
|
+
return KVApiFp(this.configuration).kVList(organization, project, options).then((request) => request(this.axios, this.basePath));
|
|
16200
|
+
}
|
|
16201
|
+
/**
|
|
16202
|
+
*
|
|
16203
|
+
* @summary Get a kv store
|
|
16204
|
+
* @param {string} organization Organization identifier
|
|
16205
|
+
* @param {string} project Project identifier
|
|
16206
|
+
* @param {string} storeId
|
|
16207
|
+
* @param {*} [options] Override http request option.
|
|
16208
|
+
* @throws {RequiredError}
|
|
16209
|
+
* @memberof KVApi
|
|
16210
|
+
*/
|
|
16211
|
+
kVShow(organization, project, storeId, options) {
|
|
16212
|
+
return KVApiFp(this.configuration).kVShow(organization, project, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
16213
|
+
}
|
|
16214
|
+
/**
|
|
16215
|
+
* Remove access to a linked KV store from this project. The store must be linked (not owned by this project).
|
|
16216
|
+
* @summary Unlink a KV store from this project
|
|
16217
|
+
* @param {string} organization Organization identifier
|
|
16218
|
+
* @param {string} project Project identifier
|
|
16219
|
+
* @param {string} storeId KV store identifier
|
|
16220
|
+
* @param {*} [options] Override http request option.
|
|
16221
|
+
* @throws {RequiredError}
|
|
16222
|
+
* @memberof KVApi
|
|
16223
|
+
*/
|
|
16224
|
+
kVUnlinkFromProject(organization, project, storeId, options) {
|
|
16225
|
+
return KVApiFp(this.configuration).kVUnlinkFromProject(organization, project, storeId, options).then((request) => request(this.axios, this.basePath));
|
|
16226
|
+
}
|
|
16227
|
+
}
|
|
16228
|
+
/**
|
|
16229
|
+
* OpenAICompatibilityApi - axios parameter creator
|
|
16230
|
+
* @export
|
|
16231
|
+
*/
|
|
16232
|
+
export const OpenAICompatibilityApiAxiosParamCreator = function (configuration) {
|
|
16233
|
+
return {
|
|
16234
|
+
/**
|
|
16235
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16236
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16237
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16238
|
+
* @param {*} [options] Override http request option.
|
|
16239
|
+
* @throws {RequiredError}
|
|
16240
|
+
*/
|
|
16241
|
+
oaiChatCompletions: (oaiChatCompletionsRequest_1, ...args_1) => __awaiter(this, [oaiChatCompletionsRequest_1, ...args_1], void 0, function* (oaiChatCompletionsRequest, options = {}) {
|
|
16242
|
+
// verify required parameter 'oaiChatCompletionsRequest' is not null or undefined
|
|
16243
|
+
assertParamExists('oaiChatCompletions', 'oaiChatCompletionsRequest', oaiChatCompletionsRequest);
|
|
16244
|
+
const localVarPath = `/oai/v1/chat/completions`;
|
|
16245
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16246
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16247
|
+
let baseOptions;
|
|
16248
|
+
if (configuration) {
|
|
16249
|
+
baseOptions = configuration.baseOptions;
|
|
16250
|
+
}
|
|
16251
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16252
|
+
const localVarHeaderParameter = {};
|
|
16253
|
+
const localVarQueryParameter = {};
|
|
16254
|
+
// authentication BearerAuth required
|
|
16255
|
+
// http bearer authentication required
|
|
16256
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16257
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16258
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16259
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16260
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16261
|
+
localVarRequestOptions.data = serializeDataIfNeeded(oaiChatCompletionsRequest, localVarRequestOptions, configuration);
|
|
16262
|
+
return {
|
|
16263
|
+
url: toPathString(localVarUrlObj),
|
|
16264
|
+
options: localVarRequestOptions,
|
|
16265
|
+
};
|
|
16266
|
+
}),
|
|
16267
|
+
/**
|
|
16268
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16269
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16270
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16271
|
+
* @param {*} [options] Override http request option.
|
|
16272
|
+
* @throws {RequiredError}
|
|
16273
|
+
*/
|
|
16274
|
+
oaiEmbeddings: (oaiEmbeddingsRequest_1, ...args_1) => __awaiter(this, [oaiEmbeddingsRequest_1, ...args_1], void 0, function* (oaiEmbeddingsRequest, options = {}) {
|
|
16275
|
+
// verify required parameter 'oaiEmbeddingsRequest' is not null or undefined
|
|
16276
|
+
assertParamExists('oaiEmbeddings', 'oaiEmbeddingsRequest', oaiEmbeddingsRequest);
|
|
16277
|
+
const localVarPath = `/oai/v1/embeddings`;
|
|
16278
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16279
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16280
|
+
let baseOptions;
|
|
16281
|
+
if (configuration) {
|
|
16282
|
+
baseOptions = configuration.baseOptions;
|
|
16283
|
+
}
|
|
16284
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
16285
|
+
const localVarHeaderParameter = {};
|
|
16286
|
+
const localVarQueryParameter = {};
|
|
16287
|
+
// authentication BearerAuth required
|
|
16288
|
+
// http bearer authentication required
|
|
16289
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16290
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
16291
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16292
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16293
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16294
|
+
localVarRequestOptions.data = serializeDataIfNeeded(oaiEmbeddingsRequest, localVarRequestOptions, configuration);
|
|
16295
|
+
return {
|
|
16296
|
+
url: toPathString(localVarUrlObj),
|
|
16297
|
+
options: localVarRequestOptions,
|
|
16298
|
+
};
|
|
16299
|
+
}),
|
|
16300
|
+
/**
|
|
16301
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16302
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16303
|
+
* @param {string} model
|
|
16304
|
+
* @param {*} [options] Override http request option.
|
|
16305
|
+
* @throws {RequiredError}
|
|
16306
|
+
*/
|
|
16307
|
+
oaiGetModel: (model_1, ...args_1) => __awaiter(this, [model_1, ...args_1], void 0, function* (model, options = {}) {
|
|
16308
|
+
// verify required parameter 'model' is not null or undefined
|
|
16309
|
+
assertParamExists('oaiGetModel', 'model', model);
|
|
16310
|
+
const localVarPath = `/oai/v1/models/{model}`
|
|
16311
|
+
.replace(`{${"model"}}`, encodeURIComponent(String(model)));
|
|
16312
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16313
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16314
|
+
let baseOptions;
|
|
16315
|
+
if (configuration) {
|
|
16316
|
+
baseOptions = configuration.baseOptions;
|
|
16317
|
+
}
|
|
16318
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16319
|
+
const localVarHeaderParameter = {};
|
|
16320
|
+
const localVarQueryParameter = {};
|
|
16321
|
+
// authentication BearerAuth required
|
|
16322
|
+
// http bearer authentication required
|
|
16323
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16324
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16325
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16326
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16327
|
+
return {
|
|
16328
|
+
url: toPathString(localVarUrlObj),
|
|
16329
|
+
options: localVarRequestOptions,
|
|
16330
|
+
};
|
|
16331
|
+
}),
|
|
16332
|
+
/**
|
|
16333
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16334
|
+
* @summary List available models (OpenAI-compatible)
|
|
16335
|
+
* @param {*} [options] Override http request option.
|
|
16336
|
+
* @throws {RequiredError}
|
|
16337
|
+
*/
|
|
16338
|
+
oaiListModels: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
|
|
16339
|
+
const localVarPath = `/oai/v1/models`;
|
|
16340
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
16341
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
16342
|
+
let baseOptions;
|
|
16343
|
+
if (configuration) {
|
|
16344
|
+
baseOptions = configuration.baseOptions;
|
|
16345
|
+
}
|
|
16346
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
16347
|
+
const localVarHeaderParameter = {};
|
|
16348
|
+
const localVarQueryParameter = {};
|
|
16349
|
+
// authentication BearerAuth required
|
|
16350
|
+
// http bearer authentication required
|
|
16351
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
16352
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
16353
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
16354
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
16355
|
+
return {
|
|
16356
|
+
url: toPathString(localVarUrlObj),
|
|
16357
|
+
options: localVarRequestOptions,
|
|
16358
|
+
};
|
|
16359
|
+
}),
|
|
16360
|
+
};
|
|
16361
|
+
};
|
|
16362
|
+
/**
|
|
16363
|
+
* OpenAICompatibilityApi - functional programming interface
|
|
16364
|
+
* @export
|
|
16365
|
+
*/
|
|
16366
|
+
export const OpenAICompatibilityApiFp = function (configuration) {
|
|
16367
|
+
const localVarAxiosParamCreator = OpenAICompatibilityApiAxiosParamCreator(configuration);
|
|
16368
|
+
return {
|
|
16369
|
+
/**
|
|
16370
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16371
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16372
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16373
|
+
* @param {*} [options] Override http request option.
|
|
16374
|
+
* @throws {RequiredError}
|
|
16375
|
+
*/
|
|
16376
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16377
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16378
|
+
var _a, _b, _c;
|
|
16379
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiChatCompletions(oaiChatCompletionsRequest, options);
|
|
16380
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16381
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OpenAICompatibilityApi.oaiChatCompletions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16382
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16383
|
+
});
|
|
16384
|
+
},
|
|
16385
|
+
/**
|
|
16386
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16387
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16388
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16389
|
+
* @param {*} [options] Override http request option.
|
|
16390
|
+
* @throws {RequiredError}
|
|
16391
|
+
*/
|
|
16392
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16393
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16394
|
+
var _a, _b, _c;
|
|
16395
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiEmbeddings(oaiEmbeddingsRequest, options);
|
|
16396
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16397
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OpenAICompatibilityApi.oaiEmbeddings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16398
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16399
|
+
});
|
|
16400
|
+
},
|
|
16401
|
+
/**
|
|
16402
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16403
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16404
|
+
* @param {string} model
|
|
16405
|
+
* @param {*} [options] Override http request option.
|
|
16406
|
+
* @throws {RequiredError}
|
|
16407
|
+
*/
|
|
16408
|
+
oaiGetModel(model, options) {
|
|
16409
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16410
|
+
var _a, _b, _c;
|
|
16411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiGetModel(model, options);
|
|
16412
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16413
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OpenAICompatibilityApi.oaiGetModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16415
|
+
});
|
|
16416
|
+
},
|
|
16417
|
+
/**
|
|
16418
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16419
|
+
* @summary List available models (OpenAI-compatible)
|
|
16420
|
+
* @param {*} [options] Override http request option.
|
|
16421
|
+
* @throws {RequiredError}
|
|
16422
|
+
*/
|
|
16423
|
+
oaiListModels(options) {
|
|
16424
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
16425
|
+
var _a, _b, _c;
|
|
16426
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiListModels(options);
|
|
16427
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
16428
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['OpenAICompatibilityApi.oaiListModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
16429
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
16430
|
+
});
|
|
16431
|
+
},
|
|
16432
|
+
};
|
|
16433
|
+
};
|
|
16434
|
+
/**
|
|
16435
|
+
* OpenAICompatibilityApi - factory interface
|
|
16436
|
+
* @export
|
|
16437
|
+
*/
|
|
16438
|
+
export const OpenAICompatibilityApiFactory = function (configuration, basePath, axios) {
|
|
16439
|
+
const localVarFp = OpenAICompatibilityApiFp(configuration);
|
|
16440
|
+
return {
|
|
16441
|
+
/**
|
|
16442
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16443
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16444
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
16445
|
+
* @param {*} [options] Override http request option.
|
|
16446
|
+
* @throws {RequiredError}
|
|
16447
|
+
*/
|
|
16448
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16449
|
+
return localVarFp.oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(axios, basePath));
|
|
16450
|
+
},
|
|
16451
|
+
/**
|
|
16452
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16453
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16454
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
16455
|
+
* @param {*} [options] Override http request option.
|
|
16456
|
+
* @throws {RequiredError}
|
|
16457
|
+
*/
|
|
16458
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16459
|
+
return localVarFp.oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(axios, basePath));
|
|
16460
|
+
},
|
|
16461
|
+
/**
|
|
16462
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16463
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16464
|
+
* @param {string} model
|
|
16465
|
+
* @param {*} [options] Override http request option.
|
|
16466
|
+
* @throws {RequiredError}
|
|
16467
|
+
*/
|
|
16468
|
+
oaiGetModel(model, options) {
|
|
16469
|
+
return localVarFp.oaiGetModel(model, options).then((request) => request(axios, basePath));
|
|
16470
|
+
},
|
|
16471
|
+
/**
|
|
16472
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16473
|
+
* @summary List available models (OpenAI-compatible)
|
|
16474
|
+
* @param {*} [options] Override http request option.
|
|
16475
|
+
* @throws {RequiredError}
|
|
16476
|
+
*/
|
|
16477
|
+
oaiListModels(options) {
|
|
16478
|
+
return localVarFp.oaiListModels(options).then((request) => request(axios, basePath));
|
|
16479
|
+
},
|
|
16480
|
+
};
|
|
16481
|
+
};
|
|
16482
|
+
/**
|
|
16483
|
+
* OpenAICompatibilityApi - object-oriented interface
|
|
16484
|
+
* @export
|
|
16485
|
+
* @class OpenAICompatibilityApi
|
|
16486
|
+
* @extends {BaseAPI}
|
|
16487
|
+
*/
|
|
16488
|
+
export class OpenAICompatibilityApi extends BaseAPI {
|
|
16489
|
+
/**
|
|
16490
|
+
* Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
|
|
16491
|
+
* @summary Create a chat completion (OpenAI-compatible)
|
|
16492
|
+
* @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
|
|
14549
16493
|
* @param {*} [options] Override http request option.
|
|
14550
16494
|
* @throws {RequiredError}
|
|
14551
|
-
* @memberof
|
|
16495
|
+
* @memberof OpenAICompatibilityApi
|
|
14552
16496
|
*/
|
|
14553
|
-
|
|
14554
|
-
return
|
|
16497
|
+
oaiChatCompletions(oaiChatCompletionsRequest, options) {
|
|
16498
|
+
return OpenAICompatibilityApiFp(this.configuration).oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14555
16499
|
}
|
|
14556
16500
|
/**
|
|
14557
|
-
*
|
|
14558
|
-
* @summary
|
|
14559
|
-
* @param {
|
|
14560
|
-
* @param {string} project Project identifier
|
|
16501
|
+
* Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
|
|
16502
|
+
* @summary Create embeddings (OpenAI-compatible)
|
|
16503
|
+
* @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
|
|
14561
16504
|
* @param {*} [options] Override http request option.
|
|
14562
16505
|
* @throws {RequiredError}
|
|
14563
|
-
* @memberof
|
|
16506
|
+
* @memberof OpenAICompatibilityApi
|
|
14564
16507
|
*/
|
|
14565
|
-
|
|
14566
|
-
return
|
|
16508
|
+
oaiEmbeddings(oaiEmbeddingsRequest, options) {
|
|
16509
|
+
return OpenAICompatibilityApiFp(this.configuration).oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(this.axios, this.basePath));
|
|
14567
16510
|
}
|
|
14568
16511
|
/**
|
|
14569
|
-
*
|
|
14570
|
-
* @summary
|
|
14571
|
-
* @param {string}
|
|
14572
|
-
* @param {string} project Project identifier
|
|
14573
|
-
* @param {string} storeId
|
|
16512
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
|
|
16513
|
+
* @summary Retrieve a model (OpenAI-compatible)
|
|
16514
|
+
* @param {string} model
|
|
14574
16515
|
* @param {*} [options] Override http request option.
|
|
14575
16516
|
* @throws {RequiredError}
|
|
14576
|
-
* @memberof
|
|
16517
|
+
* @memberof OpenAICompatibilityApi
|
|
14577
16518
|
*/
|
|
14578
|
-
|
|
14579
|
-
return
|
|
16519
|
+
oaiGetModel(model, options) {
|
|
16520
|
+
return OpenAICompatibilityApiFp(this.configuration).oaiGetModel(model, options).then((request) => request(this.axios, this.basePath));
|
|
14580
16521
|
}
|
|
14581
16522
|
/**
|
|
14582
|
-
*
|
|
14583
|
-
* @summary
|
|
14584
|
-
* @param {string} organization Organization identifier
|
|
14585
|
-
* @param {string} project Project identifier
|
|
14586
|
-
* @param {string} storeId KV store identifier
|
|
16523
|
+
* Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
|
|
16524
|
+
* @summary List available models (OpenAI-compatible)
|
|
14587
16525
|
* @param {*} [options] Override http request option.
|
|
14588
16526
|
* @throws {RequiredError}
|
|
14589
|
-
* @memberof
|
|
16527
|
+
* @memberof OpenAICompatibilityApi
|
|
14590
16528
|
*/
|
|
14591
|
-
|
|
14592
|
-
return
|
|
16529
|
+
oaiListModels(options) {
|
|
16530
|
+
return OpenAICompatibilityApiFp(this.configuration).oaiListModels(options).then((request) => request(this.axios, this.basePath));
|
|
14593
16531
|
}
|
|
14594
16532
|
}
|
|
14595
16533
|
/**
|
|
@@ -15223,7 +17161,226 @@ export const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15223
17161
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
15224
17162
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
15225
17163
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
15226
|
-
localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
17164
|
+
localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration);
|
|
17165
|
+
return {
|
|
17166
|
+
url: toPathString(localVarUrlObj),
|
|
17167
|
+
options: localVarRequestOptions,
|
|
17168
|
+
};
|
|
17169
|
+
}),
|
|
17170
|
+
};
|
|
17171
|
+
};
|
|
17172
|
+
/**
|
|
17173
|
+
* PurgeApi - functional programming interface
|
|
17174
|
+
* @export
|
|
17175
|
+
*/
|
|
17176
|
+
export const PurgeApiFp = function (configuration) {
|
|
17177
|
+
const localVarAxiosParamCreator = PurgeApiAxiosParamCreator(configuration);
|
|
17178
|
+
return {
|
|
17179
|
+
/**
|
|
17180
|
+
*
|
|
17181
|
+
* @summary Purge cache via URL or cache keys
|
|
17182
|
+
* @param {string} organization Organization identifier
|
|
17183
|
+
* @param {string} project Project identifier
|
|
17184
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17185
|
+
* @param {*} [options] Override http request option.
|
|
17186
|
+
* @throws {RequiredError}
|
|
17187
|
+
*/
|
|
17188
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17189
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17190
|
+
var _a, _b, _c;
|
|
17191
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
|
|
17192
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17193
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PurgeApi.purgeCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17194
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17195
|
+
});
|
|
17196
|
+
},
|
|
17197
|
+
};
|
|
17198
|
+
};
|
|
17199
|
+
/**
|
|
17200
|
+
* PurgeApi - factory interface
|
|
17201
|
+
* @export
|
|
17202
|
+
*/
|
|
17203
|
+
export const PurgeApiFactory = function (configuration, basePath, axios) {
|
|
17204
|
+
const localVarFp = PurgeApiFp(configuration);
|
|
17205
|
+
return {
|
|
17206
|
+
/**
|
|
17207
|
+
*
|
|
17208
|
+
* @summary Purge cache via URL or cache keys
|
|
17209
|
+
* @param {string} organization Organization identifier
|
|
17210
|
+
* @param {string} project Project identifier
|
|
17211
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17212
|
+
* @param {*} [options] Override http request option.
|
|
17213
|
+
* @throws {RequiredError}
|
|
17214
|
+
*/
|
|
17215
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17216
|
+
return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
|
|
17217
|
+
},
|
|
17218
|
+
};
|
|
17219
|
+
};
|
|
17220
|
+
/**
|
|
17221
|
+
* PurgeApi - object-oriented interface
|
|
17222
|
+
* @export
|
|
17223
|
+
* @class PurgeApi
|
|
17224
|
+
* @extends {BaseAPI}
|
|
17225
|
+
*/
|
|
17226
|
+
export class PurgeApi extends BaseAPI {
|
|
17227
|
+
/**
|
|
17228
|
+
*
|
|
17229
|
+
* @summary Purge cache via URL or cache keys
|
|
17230
|
+
* @param {string} organization Organization identifier
|
|
17231
|
+
* @param {string} project Project identifier
|
|
17232
|
+
* @param {PurgeCreateRequest} purgeCreateRequest
|
|
17233
|
+
* @param {*} [options] Override http request option.
|
|
17234
|
+
* @throws {RequiredError}
|
|
17235
|
+
* @memberof PurgeApi
|
|
17236
|
+
*/
|
|
17237
|
+
purgeCreate(organization, project, purgeCreateRequest, options) {
|
|
17238
|
+
return PurgeApiFp(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17239
|
+
}
|
|
17240
|
+
}
|
|
17241
|
+
/**
|
|
17242
|
+
* RestoreManagementApi - axios parameter creator
|
|
17243
|
+
* @export
|
|
17244
|
+
*/
|
|
17245
|
+
export const RestoreManagementApiAxiosParamCreator = function (configuration) {
|
|
17246
|
+
return {
|
|
17247
|
+
/**
|
|
17248
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17249
|
+
* @summary Get the status of a restore operation
|
|
17250
|
+
* @param {string} organisation The organisation ID
|
|
17251
|
+
* @param {string} application The application ID
|
|
17252
|
+
* @param {string} environment The environment ID
|
|
17253
|
+
* @param {string} restoreId The restore operation ID
|
|
17254
|
+
* @param {*} [options] Override http request option.
|
|
17255
|
+
* @throws {RequiredError}
|
|
17256
|
+
*/
|
|
17257
|
+
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 = {}) {
|
|
17258
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17259
|
+
assertParamExists('getRestoreStatus', 'organisation', organisation);
|
|
17260
|
+
// verify required parameter 'application' is not null or undefined
|
|
17261
|
+
assertParamExists('getRestoreStatus', 'application', application);
|
|
17262
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17263
|
+
assertParamExists('getRestoreStatus', 'environment', environment);
|
|
17264
|
+
// verify required parameter 'restoreId' is not null or undefined
|
|
17265
|
+
assertParamExists('getRestoreStatus', 'restoreId', restoreId);
|
|
17266
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}`
|
|
17267
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17268
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17269
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17270
|
+
.replace(`{${"restoreId"}}`, encodeURIComponent(String(restoreId)));
|
|
17271
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17272
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17273
|
+
let baseOptions;
|
|
17274
|
+
if (configuration) {
|
|
17275
|
+
baseOptions = configuration.baseOptions;
|
|
17276
|
+
}
|
|
17277
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
17278
|
+
const localVarHeaderParameter = {};
|
|
17279
|
+
const localVarQueryParameter = {};
|
|
17280
|
+
// authentication BearerAuth required
|
|
17281
|
+
// http bearer authentication required
|
|
17282
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17283
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17284
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17285
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17286
|
+
return {
|
|
17287
|
+
url: toPathString(localVarUrlObj),
|
|
17288
|
+
options: localVarRequestOptions,
|
|
17289
|
+
};
|
|
17290
|
+
}),
|
|
17291
|
+
/**
|
|
17292
|
+
* 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.
|
|
17293
|
+
* @summary Restore a database backup to a target environment
|
|
17294
|
+
* @param {string} organisation The organisation ID
|
|
17295
|
+
* @param {string} application The application ID
|
|
17296
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17297
|
+
* @param {string} backupId The backup ID to restore from
|
|
17298
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17299
|
+
* @param {*} [options] Override http request option.
|
|
17300
|
+
* @throws {RequiredError}
|
|
17301
|
+
*/
|
|
17302
|
+
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 = {}) {
|
|
17303
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17304
|
+
assertParamExists('restoreDatabase', 'organisation', organisation);
|
|
17305
|
+
// verify required parameter 'application' is not null or undefined
|
|
17306
|
+
assertParamExists('restoreDatabase', 'application', application);
|
|
17307
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17308
|
+
assertParamExists('restoreDatabase', 'environment', environment);
|
|
17309
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17310
|
+
assertParamExists('restoreDatabase', 'backupId', backupId);
|
|
17311
|
+
// verify required parameter 'restoreDatabaseRequest' is not null or undefined
|
|
17312
|
+
assertParamExists('restoreDatabase', 'restoreDatabaseRequest', restoreDatabaseRequest);
|
|
17313
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database`
|
|
17314
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17315
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17316
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17317
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17318
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17319
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17320
|
+
let baseOptions;
|
|
17321
|
+
if (configuration) {
|
|
17322
|
+
baseOptions = configuration.baseOptions;
|
|
17323
|
+
}
|
|
17324
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17325
|
+
const localVarHeaderParameter = {};
|
|
17326
|
+
const localVarQueryParameter = {};
|
|
17327
|
+
// authentication BearerAuth required
|
|
17328
|
+
// http bearer authentication required
|
|
17329
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17330
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17331
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17332
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17333
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17334
|
+
localVarRequestOptions.data = serializeDataIfNeeded(restoreDatabaseRequest, localVarRequestOptions, configuration);
|
|
17335
|
+
return {
|
|
17336
|
+
url: toPathString(localVarUrlObj),
|
|
17337
|
+
options: localVarRequestOptions,
|
|
17338
|
+
};
|
|
17339
|
+
}),
|
|
17340
|
+
/**
|
|
17341
|
+
* 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.
|
|
17342
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17343
|
+
* @param {string} organisation The organisation ID
|
|
17344
|
+
* @param {string} application The application ID
|
|
17345
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17346
|
+
* @param {string} backupId The backup ID to restore from
|
|
17347
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17348
|
+
* @param {*} [options] Override http request option.
|
|
17349
|
+
* @throws {RequiredError}
|
|
17350
|
+
*/
|
|
17351
|
+
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 = {}) {
|
|
17352
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
17353
|
+
assertParamExists('restoreFilesystem', 'organisation', organisation);
|
|
17354
|
+
// verify required parameter 'application' is not null or undefined
|
|
17355
|
+
assertParamExists('restoreFilesystem', 'application', application);
|
|
17356
|
+
// verify required parameter 'environment' is not null or undefined
|
|
17357
|
+
assertParamExists('restoreFilesystem', 'environment', environment);
|
|
17358
|
+
// verify required parameter 'backupId' is not null or undefined
|
|
17359
|
+
assertParamExists('restoreFilesystem', 'backupId', backupId);
|
|
17360
|
+
// verify required parameter 'restoreFilesystemRequest' is not null or undefined
|
|
17361
|
+
assertParamExists('restoreFilesystem', 'restoreFilesystemRequest', restoreFilesystemRequest);
|
|
17362
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem`
|
|
17363
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
17364
|
+
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
17365
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
17366
|
+
.replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
|
|
17367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
17368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
17369
|
+
let baseOptions;
|
|
17370
|
+
if (configuration) {
|
|
17371
|
+
baseOptions = configuration.baseOptions;
|
|
17372
|
+
}
|
|
17373
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
17374
|
+
const localVarHeaderParameter = {};
|
|
17375
|
+
const localVarQueryParameter = {};
|
|
17376
|
+
// authentication BearerAuth required
|
|
17377
|
+
// http bearer authentication required
|
|
17378
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
17379
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
17380
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
17381
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
17382
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
17383
|
+
localVarRequestOptions.data = serializeDataIfNeeded(restoreFilesystemRequest, localVarRequestOptions, configuration);
|
|
15227
17384
|
return {
|
|
15228
17385
|
url: toPathString(localVarUrlObj),
|
|
15229
17386
|
options: localVarRequestOptions,
|
|
@@ -15232,72 +17389,173 @@ export const PurgeApiAxiosParamCreator = function (configuration) {
|
|
|
15232
17389
|
};
|
|
15233
17390
|
};
|
|
15234
17391
|
/**
|
|
15235
|
-
*
|
|
17392
|
+
* RestoreManagementApi - functional programming interface
|
|
15236
17393
|
* @export
|
|
15237
17394
|
*/
|
|
15238
|
-
export const
|
|
15239
|
-
const localVarAxiosParamCreator =
|
|
17395
|
+
export const RestoreManagementApiFp = function (configuration) {
|
|
17396
|
+
const localVarAxiosParamCreator = RestoreManagementApiAxiosParamCreator(configuration);
|
|
15240
17397
|
return {
|
|
15241
17398
|
/**
|
|
15242
|
-
*
|
|
15243
|
-
* @summary
|
|
15244
|
-
* @param {string}
|
|
15245
|
-
* @param {string}
|
|
15246
|
-
* @param {
|
|
17399
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17400
|
+
* @summary Get the status of a restore operation
|
|
17401
|
+
* @param {string} organisation The organisation ID
|
|
17402
|
+
* @param {string} application The application ID
|
|
17403
|
+
* @param {string} environment The environment ID
|
|
17404
|
+
* @param {string} restoreId The restore operation ID
|
|
15247
17405
|
* @param {*} [options] Override http request option.
|
|
15248
17406
|
* @throws {RequiredError}
|
|
15249
17407
|
*/
|
|
15250
|
-
|
|
17408
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
15251
17409
|
return __awaiter(this, void 0, void 0, function* () {
|
|
15252
17410
|
var _a, _b, _c;
|
|
15253
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
17411
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getRestoreStatus(organisation, application, environment, restoreId, options);
|
|
15254
17412
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
15255
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
17413
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.getRestoreStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17414
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17415
|
+
});
|
|
17416
|
+
},
|
|
17417
|
+
/**
|
|
17418
|
+
* 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.
|
|
17419
|
+
* @summary Restore a database backup to a target environment
|
|
17420
|
+
* @param {string} organisation The organisation ID
|
|
17421
|
+
* @param {string} application The application ID
|
|
17422
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17423
|
+
* @param {string} backupId The backup ID to restore from
|
|
17424
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17425
|
+
* @param {*} [options] Override http request option.
|
|
17426
|
+
* @throws {RequiredError}
|
|
17427
|
+
*/
|
|
17428
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17429
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17430
|
+
var _a, _b, _c;
|
|
17431
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options);
|
|
17432
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17433
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.restoreDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
17434
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
17435
|
+
});
|
|
17436
|
+
},
|
|
17437
|
+
/**
|
|
17438
|
+
* 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.
|
|
17439
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17440
|
+
* @param {string} organisation The organisation ID
|
|
17441
|
+
* @param {string} application The application ID
|
|
17442
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17443
|
+
* @param {string} backupId The backup ID to restore from
|
|
17444
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17445
|
+
* @param {*} [options] Override http request option.
|
|
17446
|
+
* @throws {RequiredError}
|
|
17447
|
+
*/
|
|
17448
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17449
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
17450
|
+
var _a, _b, _c;
|
|
17451
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options);
|
|
17452
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
17453
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.restoreFilesystem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
15256
17454
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
15257
17455
|
});
|
|
15258
17456
|
},
|
|
15259
17457
|
};
|
|
15260
17458
|
};
|
|
15261
17459
|
/**
|
|
15262
|
-
*
|
|
17460
|
+
* RestoreManagementApi - factory interface
|
|
15263
17461
|
* @export
|
|
15264
17462
|
*/
|
|
15265
|
-
export const
|
|
15266
|
-
const localVarFp =
|
|
17463
|
+
export const RestoreManagementApiFactory = function (configuration, basePath, axios) {
|
|
17464
|
+
const localVarFp = RestoreManagementApiFp(configuration);
|
|
15267
17465
|
return {
|
|
15268
17466
|
/**
|
|
15269
|
-
*
|
|
15270
|
-
* @summary
|
|
15271
|
-
* @param {string}
|
|
15272
|
-
* @param {string}
|
|
15273
|
-
* @param {
|
|
17467
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17468
|
+
* @summary Get the status of a restore operation
|
|
17469
|
+
* @param {string} organisation The organisation ID
|
|
17470
|
+
* @param {string} application The application ID
|
|
17471
|
+
* @param {string} environment The environment ID
|
|
17472
|
+
* @param {string} restoreId The restore operation ID
|
|
15274
17473
|
* @param {*} [options] Override http request option.
|
|
15275
17474
|
* @throws {RequiredError}
|
|
15276
17475
|
*/
|
|
15277
|
-
|
|
15278
|
-
return localVarFp.
|
|
17476
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17477
|
+
return localVarFp.getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(axios, basePath));
|
|
17478
|
+
},
|
|
17479
|
+
/**
|
|
17480
|
+
* 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.
|
|
17481
|
+
* @summary Restore a database backup to a target environment
|
|
17482
|
+
* @param {string} organisation The organisation ID
|
|
17483
|
+
* @param {string} application The application ID
|
|
17484
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17485
|
+
* @param {string} backupId The backup ID to restore from
|
|
17486
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17487
|
+
* @param {*} [options] Override http request option.
|
|
17488
|
+
* @throws {RequiredError}
|
|
17489
|
+
*/
|
|
17490
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17491
|
+
return localVarFp.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(axios, basePath));
|
|
17492
|
+
},
|
|
17493
|
+
/**
|
|
17494
|
+
* 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.
|
|
17495
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17496
|
+
* @param {string} organisation The organisation ID
|
|
17497
|
+
* @param {string} application The application ID
|
|
17498
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17499
|
+
* @param {string} backupId The backup ID to restore from
|
|
17500
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17501
|
+
* @param {*} [options] Override http request option.
|
|
17502
|
+
* @throws {RequiredError}
|
|
17503
|
+
*/
|
|
17504
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17505
|
+
return localVarFp.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(axios, basePath));
|
|
15279
17506
|
},
|
|
15280
17507
|
};
|
|
15281
17508
|
};
|
|
15282
17509
|
/**
|
|
15283
|
-
*
|
|
17510
|
+
* RestoreManagementApi - object-oriented interface
|
|
15284
17511
|
* @export
|
|
15285
|
-
* @class
|
|
17512
|
+
* @class RestoreManagementApi
|
|
15286
17513
|
* @extends {BaseAPI}
|
|
15287
17514
|
*/
|
|
15288
|
-
export class
|
|
17515
|
+
export class RestoreManagementApi extends BaseAPI {
|
|
15289
17516
|
/**
|
|
15290
|
-
*
|
|
15291
|
-
* @summary
|
|
15292
|
-
* @param {string}
|
|
15293
|
-
* @param {string}
|
|
15294
|
-
* @param {
|
|
17517
|
+
* Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
|
|
17518
|
+
* @summary Get the status of a restore operation
|
|
17519
|
+
* @param {string} organisation The organisation ID
|
|
17520
|
+
* @param {string} application The application ID
|
|
17521
|
+
* @param {string} environment The environment ID
|
|
17522
|
+
* @param {string} restoreId The restore operation ID
|
|
15295
17523
|
* @param {*} [options] Override http request option.
|
|
15296
17524
|
* @throws {RequiredError}
|
|
15297
|
-
* @memberof
|
|
17525
|
+
* @memberof RestoreManagementApi
|
|
15298
17526
|
*/
|
|
15299
|
-
|
|
15300
|
-
return
|
|
17527
|
+
getRestoreStatus(organisation, application, environment, restoreId, options) {
|
|
17528
|
+
return RestoreManagementApiFp(this.configuration).getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(this.axios, this.basePath));
|
|
17529
|
+
}
|
|
17530
|
+
/**
|
|
17531
|
+
* 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.
|
|
17532
|
+
* @summary Restore a database backup to a target environment
|
|
17533
|
+
* @param {string} organisation The organisation ID
|
|
17534
|
+
* @param {string} application The application ID
|
|
17535
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17536
|
+
* @param {string} backupId The backup ID to restore from
|
|
17537
|
+
* @param {RestoreDatabaseRequest} restoreDatabaseRequest
|
|
17538
|
+
* @param {*} [options] Override http request option.
|
|
17539
|
+
* @throws {RequiredError}
|
|
17540
|
+
* @memberof RestoreManagementApi
|
|
17541
|
+
*/
|
|
17542
|
+
restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
|
|
17543
|
+
return RestoreManagementApiFp(this.configuration).restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
|
|
17544
|
+
}
|
|
17545
|
+
/**
|
|
17546
|
+
* 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.
|
|
17547
|
+
* @summary Restore a filesystem backup to a target environment
|
|
17548
|
+
* @param {string} organisation The organisation ID
|
|
17549
|
+
* @param {string} application The application ID
|
|
17550
|
+
* @param {string} environment The TARGET environment ID to restore INTO
|
|
17551
|
+
* @param {string} backupId The backup ID to restore from
|
|
17552
|
+
* @param {RestoreFilesystemRequest} restoreFilesystemRequest
|
|
17553
|
+
* @param {*} [options] Override http request option.
|
|
17554
|
+
* @throws {RequiredError}
|
|
17555
|
+
* @memberof RestoreManagementApi
|
|
17556
|
+
*/
|
|
17557
|
+
restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
|
|
17558
|
+
return RestoreManagementApiFp(this.configuration).restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(this.axios, this.basePath));
|
|
15301
17559
|
}
|
|
15302
17560
|
}
|
|
15303
17561
|
/**
|
|
@@ -19211,29 +21469,27 @@ export class SSHAccessApi extends BaseAPI {
|
|
|
19211
21469
|
export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
19212
21470
|
return {
|
|
19213
21471
|
/**
|
|
19214
|
-
*
|
|
19215
|
-
* @summary Delete
|
|
19216
|
-
* @param {string} organisation
|
|
19217
|
-
* @param {string} application
|
|
19218
|
-
* @param {string} environment
|
|
19219
|
-
* @param {
|
|
21472
|
+
* 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.
|
|
21473
|
+
* @summary Delete Scaling Policy
|
|
21474
|
+
* @param {string} organisation
|
|
21475
|
+
* @param {string} application
|
|
21476
|
+
* @param {string} environment
|
|
21477
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21478
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19220
21479
|
* @param {*} [options] Override http request option.
|
|
19221
21480
|
* @throws {RequiredError}
|
|
19222
21481
|
*/
|
|
19223
|
-
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 = {}) {
|
|
21482
|
+
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 = {}) {
|
|
19224
21483
|
// verify required parameter 'organisation' is not null or undefined
|
|
19225
21484
|
assertParamExists('deleteScalingPolicy', 'organisation', organisation);
|
|
19226
21485
|
// verify required parameter 'application' is not null or undefined
|
|
19227
21486
|
assertParamExists('deleteScalingPolicy', 'application', application);
|
|
19228
21487
|
// verify required parameter 'environment' is not null or undefined
|
|
19229
21488
|
assertParamExists('deleteScalingPolicy', 'environment', environment);
|
|
19230
|
-
|
|
19231
|
-
assertParamExists('deleteScalingPolicy', 'policyName', policyName);
|
|
19232
|
-
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}`
|
|
21489
|
+
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19233
21490
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19234
21491
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
19235
|
-
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
|
|
19236
|
-
.replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
|
|
21492
|
+
.replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
|
|
19237
21493
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
19238
21494
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
19239
21495
|
let baseOptions;
|
|
@@ -19246,6 +21502,12 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19246
21502
|
// authentication BearerAuth required
|
|
19247
21503
|
// http bearer authentication required
|
|
19248
21504
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
21505
|
+
if (metric !== undefined) {
|
|
21506
|
+
localVarQueryParameter['metric'] = metric;
|
|
21507
|
+
}
|
|
21508
|
+
if (policyName !== undefined) {
|
|
21509
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21510
|
+
}
|
|
19249
21511
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19250
21512
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19251
21513
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19255,21 +21517,23 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19255
21517
|
};
|
|
19256
21518
|
}),
|
|
19257
21519
|
/**
|
|
19258
|
-
*
|
|
19259
|
-
* @summary
|
|
19260
|
-
* @param {string} organisation
|
|
19261
|
-
* @param {string} application
|
|
19262
|
-
* @param {string} environment
|
|
21520
|
+
* 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).
|
|
21521
|
+
* @summary List Scaling Policies
|
|
21522
|
+
* @param {string} organisation
|
|
21523
|
+
* @param {string} application
|
|
21524
|
+
* @param {string} environment
|
|
21525
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21526
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19263
21527
|
* @param {*} [options] Override http request option.
|
|
19264
21528
|
* @throws {RequiredError}
|
|
19265
21529
|
*/
|
|
19266
|
-
|
|
21530
|
+
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 = {}) {
|
|
19267
21531
|
// verify required parameter 'organisation' is not null or undefined
|
|
19268
|
-
assertParamExists('
|
|
21532
|
+
assertParamExists('listScalingPolicies', 'organisation', organisation);
|
|
19269
21533
|
// verify required parameter 'application' is not null or undefined
|
|
19270
|
-
assertParamExists('
|
|
21534
|
+
assertParamExists('listScalingPolicies', 'application', application);
|
|
19271
21535
|
// verify required parameter 'environment' is not null or undefined
|
|
19272
|
-
assertParamExists('
|
|
21536
|
+
assertParamExists('listScalingPolicies', 'environment', environment);
|
|
19273
21537
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19274
21538
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19275
21539
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19286,6 +21550,12 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19286
21550
|
// authentication BearerAuth required
|
|
19287
21551
|
// http bearer authentication required
|
|
19288
21552
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
21553
|
+
if (metric !== undefined) {
|
|
21554
|
+
localVarQueryParameter['metric'] = metric;
|
|
21555
|
+
}
|
|
21556
|
+
if (policyName !== undefined) {
|
|
21557
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21558
|
+
}
|
|
19289
21559
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19290
21560
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19291
21561
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
@@ -19295,24 +21565,25 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19295
21565
|
};
|
|
19296
21566
|
}),
|
|
19297
21567
|
/**
|
|
19298
|
-
*
|
|
19299
|
-
* @summary
|
|
19300
|
-
* @param {string} organisation
|
|
19301
|
-
* @param {string} application
|
|
19302
|
-
* @param {string} environment
|
|
19303
|
-
* @param {
|
|
21568
|
+
* 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.
|
|
21569
|
+
* @summary Upsert Scaling Policy
|
|
21570
|
+
* @param {string} organisation
|
|
21571
|
+
* @param {string} application
|
|
21572
|
+
* @param {string} environment
|
|
21573
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21574
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19304
21575
|
* @param {*} [options] Override http request option.
|
|
19305
21576
|
* @throws {RequiredError}
|
|
19306
21577
|
*/
|
|
19307
|
-
|
|
21578
|
+
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 = {}) {
|
|
19308
21579
|
// verify required parameter 'organisation' is not null or undefined
|
|
19309
|
-
assertParamExists('
|
|
21580
|
+
assertParamExists('upsertScalingPolicy', 'organisation', organisation);
|
|
19310
21581
|
// verify required parameter 'application' is not null or undefined
|
|
19311
|
-
assertParamExists('
|
|
21582
|
+
assertParamExists('upsertScalingPolicy', 'application', application);
|
|
19312
21583
|
// verify required parameter 'environment' is not null or undefined
|
|
19313
|
-
assertParamExists('
|
|
19314
|
-
// verify required parameter '
|
|
19315
|
-
assertParamExists('
|
|
21584
|
+
assertParamExists('upsertScalingPolicy', 'environment', environment);
|
|
21585
|
+
// verify required parameter 'setScalingPolicyRequest' is not null or undefined
|
|
21586
|
+
assertParamExists('upsertScalingPolicy', 'setScalingPolicyRequest', setScalingPolicyRequest);
|
|
19316
21587
|
const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
|
|
19317
21588
|
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
19318
21589
|
.replace(`{${"application"}}`, encodeURIComponent(String(application)))
|
|
@@ -19329,11 +21600,14 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
|
|
|
19329
21600
|
// authentication BearerAuth required
|
|
19330
21601
|
// http bearer authentication required
|
|
19331
21602
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
21603
|
+
if (policyName !== undefined) {
|
|
21604
|
+
localVarQueryParameter['policyName'] = policyName;
|
|
21605
|
+
}
|
|
19332
21606
|
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
19333
21607
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
19334
21608
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
19335
21609
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
19336
|
-
localVarRequestOptions.data = serializeDataIfNeeded(
|
|
21610
|
+
localVarRequestOptions.data = serializeDataIfNeeded(setScalingPolicyRequest, localVarRequestOptions, configuration);
|
|
19337
21611
|
return {
|
|
19338
21612
|
url: toPathString(localVarUrlObj),
|
|
19339
21613
|
options: localVarRequestOptions,
|
|
@@ -19349,58 +21623,62 @@ export const ScalingPolicyApiFp = function (configuration) {
|
|
|
19349
21623
|
const localVarAxiosParamCreator = ScalingPolicyApiAxiosParamCreator(configuration);
|
|
19350
21624
|
return {
|
|
19351
21625
|
/**
|
|
19352
|
-
*
|
|
19353
|
-
* @summary Delete
|
|
19354
|
-
* @param {string} organisation
|
|
19355
|
-
* @param {string} application
|
|
19356
|
-
* @param {string} environment
|
|
19357
|
-
* @param {
|
|
21626
|
+
* 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.
|
|
21627
|
+
* @summary Delete Scaling Policy
|
|
21628
|
+
* @param {string} organisation
|
|
21629
|
+
* @param {string} application
|
|
21630
|
+
* @param {string} environment
|
|
21631
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21632
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19358
21633
|
* @param {*} [options] Override http request option.
|
|
19359
21634
|
* @throws {RequiredError}
|
|
19360
21635
|
*/
|
|
19361
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
21636
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
19362
21637
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19363
21638
|
var _a, _b, _c;
|
|
19364
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, policyName, options);
|
|
21639
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, metric, policyName, options);
|
|
19365
21640
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19366
21641
|
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.deleteScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19367
21642
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19368
21643
|
});
|
|
19369
21644
|
},
|
|
19370
21645
|
/**
|
|
19371
|
-
*
|
|
19372
|
-
* @summary
|
|
19373
|
-
* @param {string} organisation
|
|
19374
|
-
* @param {string} application
|
|
19375
|
-
* @param {string} environment
|
|
21646
|
+
* 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).
|
|
21647
|
+
* @summary List Scaling Policies
|
|
21648
|
+
* @param {string} organisation
|
|
21649
|
+
* @param {string} application
|
|
21650
|
+
* @param {string} environment
|
|
21651
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21652
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19376
21653
|
* @param {*} [options] Override http request option.
|
|
19377
21654
|
* @throws {RequiredError}
|
|
19378
21655
|
*/
|
|
19379
|
-
|
|
21656
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
19380
21657
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19381
21658
|
var _a, _b, _c;
|
|
19382
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21659
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listScalingPolicies(organisation, application, environment, metric, policyName, options);
|
|
19383
21660
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19384
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.
|
|
21661
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.listScalingPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19385
21662
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19386
21663
|
});
|
|
19387
21664
|
},
|
|
19388
21665
|
/**
|
|
19389
|
-
*
|
|
19390
|
-
* @summary
|
|
19391
|
-
* @param {string} organisation
|
|
19392
|
-
* @param {string} application
|
|
19393
|
-
* @param {string} environment
|
|
19394
|
-
* @param {
|
|
21666
|
+
* 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.
|
|
21667
|
+
* @summary Upsert Scaling Policy
|
|
21668
|
+
* @param {string} organisation
|
|
21669
|
+
* @param {string} application
|
|
21670
|
+
* @param {string} environment
|
|
21671
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21672
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19395
21673
|
* @param {*} [options] Override http request option.
|
|
19396
21674
|
* @throws {RequiredError}
|
|
19397
21675
|
*/
|
|
19398
|
-
|
|
21676
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
19399
21677
|
return __awaiter(this, void 0, void 0, function* () {
|
|
19400
21678
|
var _a, _b, _c;
|
|
19401
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
21679
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options);
|
|
19402
21680
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
19403
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.
|
|
21681
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.upsertScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
19404
21682
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
19405
21683
|
});
|
|
19406
21684
|
},
|
|
@@ -19414,42 +21692,46 @@ export const ScalingPolicyApiFactory = function (configuration, basePath, axios)
|
|
|
19414
21692
|
const localVarFp = ScalingPolicyApiFp(configuration);
|
|
19415
21693
|
return {
|
|
19416
21694
|
/**
|
|
19417
|
-
*
|
|
19418
|
-
* @summary Delete
|
|
19419
|
-
* @param {string} organisation
|
|
19420
|
-
* @param {string} application
|
|
19421
|
-
* @param {string} environment
|
|
19422
|
-
* @param {
|
|
21695
|
+
* 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.
|
|
21696
|
+
* @summary Delete Scaling Policy
|
|
21697
|
+
* @param {string} organisation
|
|
21698
|
+
* @param {string} application
|
|
21699
|
+
* @param {string} environment
|
|
21700
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21701
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19423
21702
|
* @param {*} [options] Override http request option.
|
|
19424
21703
|
* @throws {RequiredError}
|
|
19425
21704
|
*/
|
|
19426
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
19427
|
-
return localVarFp.deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(axios, basePath));
|
|
21705
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21706
|
+
return localVarFp.deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19428
21707
|
},
|
|
19429
21708
|
/**
|
|
19430
|
-
*
|
|
19431
|
-
* @summary
|
|
19432
|
-
* @param {string} organisation
|
|
19433
|
-
* @param {string} application
|
|
19434
|
-
* @param {string} environment
|
|
21709
|
+
* 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).
|
|
21710
|
+
* @summary List Scaling Policies
|
|
21711
|
+
* @param {string} organisation
|
|
21712
|
+
* @param {string} application
|
|
21713
|
+
* @param {string} environment
|
|
21714
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21715
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19435
21716
|
* @param {*} [options] Override http request option.
|
|
19436
21717
|
* @throws {RequiredError}
|
|
19437
21718
|
*/
|
|
19438
|
-
|
|
19439
|
-
return localVarFp.
|
|
21719
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21720
|
+
return localVarFp.listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
|
|
19440
21721
|
},
|
|
19441
21722
|
/**
|
|
19442
|
-
*
|
|
19443
|
-
* @summary
|
|
19444
|
-
* @param {string} organisation
|
|
19445
|
-
* @param {string} application
|
|
19446
|
-
* @param {string} environment
|
|
19447
|
-
* @param {
|
|
21723
|
+
* 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.
|
|
21724
|
+
* @summary Upsert Scaling Policy
|
|
21725
|
+
* @param {string} organisation
|
|
21726
|
+
* @param {string} application
|
|
21727
|
+
* @param {string} environment
|
|
21728
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21729
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19448
21730
|
* @param {*} [options] Override http request option.
|
|
19449
21731
|
* @throws {RequiredError}
|
|
19450
21732
|
*/
|
|
19451
|
-
|
|
19452
|
-
return localVarFp.
|
|
21733
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21734
|
+
return localVarFp.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(axios, basePath));
|
|
19453
21735
|
},
|
|
19454
21736
|
};
|
|
19455
21737
|
};
|
|
@@ -19461,45 +21743,175 @@ export const ScalingPolicyApiFactory = function (configuration, basePath, axios)
|
|
|
19461
21743
|
*/
|
|
19462
21744
|
export class ScalingPolicyApi extends BaseAPI {
|
|
19463
21745
|
/**
|
|
19464
|
-
*
|
|
19465
|
-
* @summary Delete
|
|
19466
|
-
* @param {string} organisation
|
|
19467
|
-
* @param {string} application
|
|
19468
|
-
* @param {string} environment
|
|
19469
|
-
* @param {
|
|
21746
|
+
* 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.
|
|
21747
|
+
* @summary Delete Scaling Policy
|
|
21748
|
+
* @param {string} organisation
|
|
21749
|
+
* @param {string} application
|
|
21750
|
+
* @param {string} environment
|
|
21751
|
+
* @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
|
|
21752
|
+
* @param {string} [policyName] Optional. Delete by exact policy name.
|
|
19470
21753
|
* @param {*} [options] Override http request option.
|
|
19471
21754
|
* @throws {RequiredError}
|
|
19472
21755
|
* @memberof ScalingPolicyApi
|
|
19473
21756
|
*/
|
|
19474
|
-
deleteScalingPolicy(organisation, application, environment, policyName, options) {
|
|
19475
|
-
return ScalingPolicyApiFp(this.configuration).deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
21757
|
+
deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
|
|
21758
|
+
return ScalingPolicyApiFp(this.configuration).deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19476
21759
|
}
|
|
19477
21760
|
/**
|
|
19478
|
-
*
|
|
19479
|
-
* @summary
|
|
19480
|
-
* @param {string} organisation
|
|
19481
|
-
* @param {string} application
|
|
19482
|
-
* @param {string} environment
|
|
21761
|
+
* 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).
|
|
21762
|
+
* @summary List Scaling Policies
|
|
21763
|
+
* @param {string} organisation
|
|
21764
|
+
* @param {string} application
|
|
21765
|
+
* @param {string} environment
|
|
21766
|
+
* @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
|
|
21767
|
+
* @param {string} [policyName] Optional. Filter policies by exact policy name.
|
|
19483
21768
|
* @param {*} [options] Override http request option.
|
|
19484
21769
|
* @throws {RequiredError}
|
|
19485
21770
|
* @memberof ScalingPolicyApi
|
|
19486
21771
|
*/
|
|
19487
|
-
|
|
19488
|
-
return ScalingPolicyApiFp(this.configuration).
|
|
21772
|
+
listScalingPolicies(organisation, application, environment, metric, policyName, options) {
|
|
21773
|
+
return ScalingPolicyApiFp(this.configuration).listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
19489
21774
|
}
|
|
19490
21775
|
/**
|
|
19491
|
-
*
|
|
19492
|
-
* @summary
|
|
19493
|
-
* @param {string} organisation
|
|
19494
|
-
* @param {string} application
|
|
19495
|
-
* @param {string} environment
|
|
19496
|
-
* @param {
|
|
21776
|
+
* 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.
|
|
21777
|
+
* @summary Upsert Scaling Policy
|
|
21778
|
+
* @param {string} organisation
|
|
21779
|
+
* @param {string} application
|
|
21780
|
+
* @param {string} environment
|
|
21781
|
+
* @param {SetScalingPolicyRequest} setScalingPolicyRequest
|
|
21782
|
+
* @param {string} [policyName] Optional. Specify a custom policy name to upsert.
|
|
19497
21783
|
* @param {*} [options] Override http request option.
|
|
19498
21784
|
* @throws {RequiredError}
|
|
19499
21785
|
* @memberof ScalingPolicyApi
|
|
19500
21786
|
*/
|
|
19501
|
-
|
|
19502
|
-
return ScalingPolicyApiFp(this.configuration).
|
|
21787
|
+
upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
|
|
21788
|
+
return ScalingPolicyApiFp(this.configuration).upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(this.axios, this.basePath));
|
|
21789
|
+
}
|
|
21790
|
+
}
|
|
21791
|
+
/**
|
|
21792
|
+
* @export
|
|
21793
|
+
*/
|
|
21794
|
+
export const DeleteScalingPolicyMetricEnum = {
|
|
21795
|
+
CpuUtilization: 'CPUUtilization',
|
|
21796
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21797
|
+
Rps: 'RPS'
|
|
21798
|
+
};
|
|
21799
|
+
/**
|
|
21800
|
+
* @export
|
|
21801
|
+
*/
|
|
21802
|
+
export const ListScalingPoliciesMetricEnum = {
|
|
21803
|
+
CpuUtilization: 'CPUUtilization',
|
|
21804
|
+
MemoryUtilization: 'MemoryUtilization',
|
|
21805
|
+
Rps: 'RPS'
|
|
21806
|
+
};
|
|
21807
|
+
/**
|
|
21808
|
+
* SubscriptionApi - axios parameter creator
|
|
21809
|
+
* @export
|
|
21810
|
+
*/
|
|
21811
|
+
export const SubscriptionApiAxiosParamCreator = function (configuration) {
|
|
21812
|
+
return {
|
|
21813
|
+
/**
|
|
21814
|
+
* 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.
|
|
21815
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21816
|
+
* @param {string} organisation
|
|
21817
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21818
|
+
* @param {*} [options] Override http request option.
|
|
21819
|
+
* @throws {RequiredError}
|
|
21820
|
+
*/
|
|
21821
|
+
getSubscriptionCloudUsage: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
|
|
21822
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
21823
|
+
assertParamExists('getSubscriptionCloudUsage', 'organisation', organisation);
|
|
21824
|
+
const localVarPath = `/api/v3/organizations/{organisation}/subscription/cloud-usage`
|
|
21825
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
21826
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
21827
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
21828
|
+
let baseOptions;
|
|
21829
|
+
if (configuration) {
|
|
21830
|
+
baseOptions = configuration.baseOptions;
|
|
21831
|
+
}
|
|
21832
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
21833
|
+
const localVarHeaderParameter = {};
|
|
21834
|
+
const localVarQueryParameter = {};
|
|
21835
|
+
// authentication BearerAuth required
|
|
21836
|
+
// http bearer authentication required
|
|
21837
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
21838
|
+
if (month !== undefined) {
|
|
21839
|
+
localVarQueryParameter['month'] = month;
|
|
21840
|
+
}
|
|
21841
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
21842
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
21843
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
21844
|
+
return {
|
|
21845
|
+
url: toPathString(localVarUrlObj),
|
|
21846
|
+
options: localVarRequestOptions,
|
|
21847
|
+
};
|
|
21848
|
+
}),
|
|
21849
|
+
};
|
|
21850
|
+
};
|
|
21851
|
+
/**
|
|
21852
|
+
* SubscriptionApi - functional programming interface
|
|
21853
|
+
* @export
|
|
21854
|
+
*/
|
|
21855
|
+
export const SubscriptionApiFp = function (configuration) {
|
|
21856
|
+
const localVarAxiosParamCreator = SubscriptionApiAxiosParamCreator(configuration);
|
|
21857
|
+
return {
|
|
21858
|
+
/**
|
|
21859
|
+
* 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.
|
|
21860
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21861
|
+
* @param {string} organisation
|
|
21862
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21863
|
+
* @param {*} [options] Override http request option.
|
|
21864
|
+
* @throws {RequiredError}
|
|
21865
|
+
*/
|
|
21866
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21867
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
21868
|
+
var _a, _b, _c;
|
|
21869
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionCloudUsage(organisation, month, options);
|
|
21870
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
21871
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionApi.getSubscriptionCloudUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
21872
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
21873
|
+
});
|
|
21874
|
+
},
|
|
21875
|
+
};
|
|
21876
|
+
};
|
|
21877
|
+
/**
|
|
21878
|
+
* SubscriptionApi - factory interface
|
|
21879
|
+
* @export
|
|
21880
|
+
*/
|
|
21881
|
+
export const SubscriptionApiFactory = function (configuration, basePath, axios) {
|
|
21882
|
+
const localVarFp = SubscriptionApiFp(configuration);
|
|
21883
|
+
return {
|
|
21884
|
+
/**
|
|
21885
|
+
* 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.
|
|
21886
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21887
|
+
* @param {string} organisation
|
|
21888
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21889
|
+
* @param {*} [options] Override http request option.
|
|
21890
|
+
* @throws {RequiredError}
|
|
21891
|
+
*/
|
|
21892
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21893
|
+
return localVarFp.getSubscriptionCloudUsage(organisation, month, options).then((request) => request(axios, basePath));
|
|
21894
|
+
},
|
|
21895
|
+
};
|
|
21896
|
+
};
|
|
21897
|
+
/**
|
|
21898
|
+
* SubscriptionApi - object-oriented interface
|
|
21899
|
+
* @export
|
|
21900
|
+
* @class SubscriptionApi
|
|
21901
|
+
* @extends {BaseAPI}
|
|
21902
|
+
*/
|
|
21903
|
+
export class SubscriptionApi extends BaseAPI {
|
|
21904
|
+
/**
|
|
21905
|
+
* 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.
|
|
21906
|
+
* @summary Cloud-app cost breakdown for the subscription page
|
|
21907
|
+
* @param {string} organisation
|
|
21908
|
+
* @param {string} [month] YYYY-MM, defaults to current month
|
|
21909
|
+
* @param {*} [options] Override http request option.
|
|
21910
|
+
* @throws {RequiredError}
|
|
21911
|
+
* @memberof SubscriptionApi
|
|
21912
|
+
*/
|
|
21913
|
+
getSubscriptionCloudUsage(organisation, month, options) {
|
|
21914
|
+
return SubscriptionApiFp(this.configuration).getSubscriptionCloudUsage(organisation, month, options).then((request) => request(this.axios, this.basePath));
|
|
19503
21915
|
}
|
|
19504
21916
|
}
|
|
19505
21917
|
/**
|