@quantcdn/quant-client 4.15.4 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/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.15.4
7
+ * The version of the OpenAPI document: 4.19.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
- Polling: 'polling',
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'
@@ -308,7 +327,7 @@ export const QueryVectorCollectionRequestSortOrderEnum = {
308
327
  Asc: 'asc',
309
328
  Desc: 'desc'
310
329
  };
311
- export const ScalingPolicyMetricEnum = {
330
+ export const SetScalingPolicyRequestMetricEnum = {
312
331
  CpuUtilization: 'CPUUtilization',
313
332
  MemoryUtilization: 'MemoryUtilization',
314
333
  Rps: 'RPS'
@@ -397,6 +416,158 @@ export const WafConfigThresholdsInnerModeEnum = {
397
416
  Report: 'report',
398
417
  Block: 'block'
399
418
  };
419
+ /**
420
+ * AIApi - axios parameter creator
421
+ * @export
422
+ */
423
+ export const AIApiAxiosParamCreator = function (configuration) {
424
+ return {
425
+ /**
426
+ * 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.
427
+ * @summary Organisation AI usage breakdown (subscription page parity)
428
+ * @param {string} organisation
429
+ * @param {string} [month] YYYY-MM, defaults to current month
430
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
431
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
432
+ * @param {string} [userId] Scope the daily series to a user
433
+ * @param {string} [tokenId] Scope the daily series to a token
434
+ * @param {*} [options] Override http request option.
435
+ * @throws {RequiredError}
436
+ */
437
+ 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 = {}) {
438
+ // verify required parameter 'organisation' is not null or undefined
439
+ assertParamExists('getAIUsageStats', 'organisation', organisation);
440
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
441
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
442
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
443
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
444
+ let baseOptions;
445
+ if (configuration) {
446
+ baseOptions = configuration.baseOptions;
447
+ }
448
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
449
+ const localVarHeaderParameter = {};
450
+ const localVarQueryParameter = {};
451
+ // authentication BearerAuth required
452
+ // http bearer authentication required
453
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
454
+ if (month !== undefined) {
455
+ localVarQueryParameter['month'] = month;
456
+ }
457
+ if (groupBy !== undefined) {
458
+ localVarQueryParameter['groupBy'] = groupBy;
459
+ }
460
+ if (include !== undefined) {
461
+ localVarQueryParameter['include'] = include;
462
+ }
463
+ if (userId !== undefined) {
464
+ localVarQueryParameter['userId'] = userId;
465
+ }
466
+ if (tokenId !== undefined) {
467
+ localVarQueryParameter['tokenId'] = tokenId;
468
+ }
469
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
470
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
471
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
472
+ return {
473
+ url: toPathString(localVarUrlObj),
474
+ options: localVarRequestOptions,
475
+ };
476
+ }),
477
+ };
478
+ };
479
+ /**
480
+ * AIApi - functional programming interface
481
+ * @export
482
+ */
483
+ export const AIApiFp = function (configuration) {
484
+ const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration);
485
+ return {
486
+ /**
487
+ * 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.
488
+ * @summary Organisation AI usage breakdown (subscription page parity)
489
+ * @param {string} organisation
490
+ * @param {string} [month] YYYY-MM, defaults to current month
491
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
492
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
493
+ * @param {string} [userId] Scope the daily series to a user
494
+ * @param {string} [tokenId] Scope the daily series to a token
495
+ * @param {*} [options] Override http request option.
496
+ * @throws {RequiredError}
497
+ */
498
+ getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
499
+ return __awaiter(this, void 0, void 0, function* () {
500
+ var _a, _b, _c;
501
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options);
502
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
503
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIApi.getAIUsageStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
504
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
505
+ });
506
+ },
507
+ };
508
+ };
509
+ /**
510
+ * AIApi - factory interface
511
+ * @export
512
+ */
513
+ export const AIApiFactory = function (configuration, basePath, axios) {
514
+ const localVarFp = AIApiFp(configuration);
515
+ return {
516
+ /**
517
+ * 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.
518
+ * @summary Organisation AI usage breakdown (subscription page parity)
519
+ * @param {string} organisation
520
+ * @param {string} [month] YYYY-MM, defaults to current month
521
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
522
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
523
+ * @param {string} [userId] Scope the daily series to a user
524
+ * @param {string} [tokenId] Scope the daily series to a token
525
+ * @param {*} [options] Override http request option.
526
+ * @throws {RequiredError}
527
+ */
528
+ getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
529
+ return localVarFp.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(axios, basePath));
530
+ },
531
+ };
532
+ };
533
+ /**
534
+ * AIApi - object-oriented interface
535
+ * @export
536
+ * @class AIApi
537
+ * @extends {BaseAPI}
538
+ */
539
+ export class AIApi extends BaseAPI {
540
+ /**
541
+ * 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.
542
+ * @summary Organisation AI usage breakdown (subscription page parity)
543
+ * @param {string} organisation
544
+ * @param {string} [month] YYYY-MM, defaults to current month
545
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
546
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \'daily\' to append a 30-day series
547
+ * @param {string} [userId] Scope the daily series to a user
548
+ * @param {string} [tokenId] Scope the daily series to a token
549
+ * @param {*} [options] Override http request option.
550
+ * @throws {RequiredError}
551
+ * @memberof AIApi
552
+ */
553
+ getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options) {
554
+ return AIApiFp(this.configuration).getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(this.axios, this.basePath));
555
+ }
556
+ }
557
+ /**
558
+ * @export
559
+ */
560
+ export const GetAIUsageStatsGroupByEnum = {
561
+ Model: 'model',
562
+ User: 'user',
563
+ Token: 'token'
564
+ };
565
+ /**
566
+ * @export
567
+ */
568
+ export const GetAIUsageStatsIncludeEnum = {
569
+ Daily: 'daily'
570
+ };
400
571
  /**
401
572
  * AIAgentsApi - axios parameter creator
402
573
  * @export
@@ -1147,7 +1318,7 @@ export class AIAgentsApi extends BaseAPI {
1147
1318
  export const AICustomToolsApiAxiosParamCreator = function (configuration) {
1148
1319
  return {
1149
1320
  /**
1150
- * Registers a custom edge function as a tool that AI models can invoke. This enables customers to create their own tools backed by edge functions. * * **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 * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
1321
+ * 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
1322
  * @summary Register Custom Edge Function Tool
1152
1323
  * @param {string} organisation The organisation ID
1153
1324
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -1184,7 +1355,7 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration) {
1184
1355
  };
1185
1356
  }),
1186
1357
  /**
1187
- * Deletes a custom tool registration. The underlying edge function is not affected.
1358
+ * Deletes a custom tool registration and its deployed edge function.
1188
1359
  * @summary Delete Custom Tool
1189
1360
  * @param {string} organisation The organisation ID
1190
1361
  * @param {string} toolName The tool name to delete
@@ -1219,6 +1390,42 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration) {
1219
1390
  options: localVarRequestOptions,
1220
1391
  };
1221
1392
  }),
1393
+ /**
1394
+ * Retrieves a single registered custom tool by name.
1395
+ * @summary Get Custom Tool
1396
+ * @param {string} organisation The organisation ID
1397
+ * @param {string} toolName The tool name to retrieve
1398
+ * @param {*} [options] Override http request option.
1399
+ * @throws {RequiredError}
1400
+ */
1401
+ getCustomTool: (organisation_1, toolName_1, ...args_1) => __awaiter(this, [organisation_1, toolName_1, ...args_1], void 0, function* (organisation, toolName, options = {}) {
1402
+ // verify required parameter 'organisation' is not null or undefined
1403
+ assertParamExists('getCustomTool', 'organisation', organisation);
1404
+ // verify required parameter 'toolName' is not null or undefined
1405
+ assertParamExists('getCustomTool', 'toolName', toolName);
1406
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/custom-tools/{toolName}`
1407
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
1408
+ .replace(`{${"toolName"}}`, encodeURIComponent(String(toolName)));
1409
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
1410
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
1411
+ let baseOptions;
1412
+ if (configuration) {
1413
+ baseOptions = configuration.baseOptions;
1414
+ }
1415
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
1416
+ const localVarHeaderParameter = {};
1417
+ const localVarQueryParameter = {};
1418
+ // authentication BearerAuth required
1419
+ // http bearer authentication required
1420
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
1421
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
1422
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
1423
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
1424
+ return {
1425
+ url: toPathString(localVarUrlObj),
1426
+ options: localVarRequestOptions,
1427
+ };
1428
+ }),
1222
1429
  /**
1223
1430
  * Lists all registered custom edge function tools for an organization.
1224
1431
  * @summary List Custom Tools
@@ -1261,7 +1468,7 @@ export const AICustomToolsApiFp = function (configuration) {
1261
1468
  const localVarAxiosParamCreator = AICustomToolsApiAxiosParamCreator(configuration);
1262
1469
  return {
1263
1470
  /**
1264
- * Registers a custom edge function as a tool that AI models can invoke. This enables customers to create their own tools backed by edge functions. * * **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 * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
1471
+ * 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
1472
  * @summary Register Custom Edge Function Tool
1266
1473
  * @param {string} organisation The organisation ID
1267
1474
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -1278,7 +1485,7 @@ export const AICustomToolsApiFp = function (configuration) {
1278
1485
  });
1279
1486
  },
1280
1487
  /**
1281
- * Deletes a custom tool registration. The underlying edge function is not affected.
1488
+ * Deletes a custom tool registration and its deployed edge function.
1282
1489
  * @summary Delete Custom Tool
1283
1490
  * @param {string} organisation The organisation ID
1284
1491
  * @param {string} toolName The tool name to delete
@@ -1294,6 +1501,23 @@ export const AICustomToolsApiFp = function (configuration) {
1294
1501
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1295
1502
  });
1296
1503
  },
1504
+ /**
1505
+ * Retrieves a single registered custom tool by name.
1506
+ * @summary Get Custom Tool
1507
+ * @param {string} organisation The organisation ID
1508
+ * @param {string} toolName The tool name to retrieve
1509
+ * @param {*} [options] Override http request option.
1510
+ * @throws {RequiredError}
1511
+ */
1512
+ getCustomTool(organisation, toolName, options) {
1513
+ return __awaiter(this, void 0, void 0, function* () {
1514
+ var _a, _b, _c;
1515
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCustomTool(organisation, toolName, options);
1516
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
1517
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AICustomToolsApi.getCustomTool']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
1518
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1519
+ });
1520
+ },
1297
1521
  /**
1298
1522
  * Lists all registered custom edge function tools for an organization.
1299
1523
  * @summary List Custom Tools
@@ -1320,7 +1544,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
1320
1544
  const localVarFp = AICustomToolsApiFp(configuration);
1321
1545
  return {
1322
1546
  /**
1323
- * Registers a custom edge function as a tool that AI models can invoke. This enables customers to create their own tools backed by edge functions. * * **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 * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
1547
+ * 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
1548
  * @summary Register Custom Edge Function Tool
1325
1549
  * @param {string} organisation The organisation ID
1326
1550
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -1331,7 +1555,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
1331
1555
  return localVarFp.createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(axios, basePath));
1332
1556
  },
1333
1557
  /**
1334
- * Deletes a custom tool registration. The underlying edge function is not affected.
1558
+ * Deletes a custom tool registration and its deployed edge function.
1335
1559
  * @summary Delete Custom Tool
1336
1560
  * @param {string} organisation The organisation ID
1337
1561
  * @param {string} toolName The tool name to delete
@@ -1341,6 +1565,17 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
1341
1565
  deleteCustomTool(organisation, toolName, options) {
1342
1566
  return localVarFp.deleteCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
1343
1567
  },
1568
+ /**
1569
+ * Retrieves a single registered custom tool by name.
1570
+ * @summary Get Custom Tool
1571
+ * @param {string} organisation The organisation ID
1572
+ * @param {string} toolName The tool name to retrieve
1573
+ * @param {*} [options] Override http request option.
1574
+ * @throws {RequiredError}
1575
+ */
1576
+ getCustomTool(organisation, toolName, options) {
1577
+ return localVarFp.getCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
1578
+ },
1344
1579
  /**
1345
1580
  * Lists all registered custom edge function tools for an organization.
1346
1581
  * @summary List Custom Tools
@@ -1361,7 +1596,7 @@ export const AICustomToolsApiFactory = function (configuration, basePath, axios)
1361
1596
  */
1362
1597
  export class AICustomToolsApi extends BaseAPI {
1363
1598
  /**
1364
- * Registers a custom edge function as a tool that AI models can invoke. This enables customers to create their own tools backed by edge functions. * * **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 * * **Async Tools:** * Set `isAsync: true` for operations >5 seconds. The edge function should return `{ executionId: \'...\' }` and the AI will poll for completion.
1599
+ * 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
1600
  * @summary Register Custom Edge Function Tool
1366
1601
  * @param {string} organisation The organisation ID
1367
1602
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -1373,7 +1608,7 @@ export class AICustomToolsApi extends BaseAPI {
1373
1608
  return AICustomToolsApiFp(this.configuration).createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(this.axios, this.basePath));
1374
1609
  }
1375
1610
  /**
1376
- * Deletes a custom tool registration. The underlying edge function is not affected.
1611
+ * Deletes a custom tool registration and its deployed edge function.
1377
1612
  * @summary Delete Custom Tool
1378
1613
  * @param {string} organisation The organisation ID
1379
1614
  * @param {string} toolName The tool name to delete
@@ -1384,6 +1619,18 @@ export class AICustomToolsApi extends BaseAPI {
1384
1619
  deleteCustomTool(organisation, toolName, options) {
1385
1620
  return AICustomToolsApiFp(this.configuration).deleteCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
1386
1621
  }
1622
+ /**
1623
+ * Retrieves a single registered custom tool by name.
1624
+ * @summary Get Custom Tool
1625
+ * @param {string} organisation The organisation ID
1626
+ * @param {string} toolName The tool name to retrieve
1627
+ * @param {*} [options] Override http request option.
1628
+ * @throws {RequiredError}
1629
+ * @memberof AICustomToolsApi
1630
+ */
1631
+ getCustomTool(organisation, toolName, options) {
1632
+ return AICustomToolsApiFp(this.configuration).getCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
1633
+ }
1387
1634
  /**
1388
1635
  * Lists all registered custom edge function tools for an organization.
1389
1636
  * @summary List Custom Tools
@@ -3257,116 +3504,6 @@ export const ListAIModelsFeatureEnum = {
3257
3504
  Streaming: 'streaming',
3258
3505
  All: 'all'
3259
3506
  };
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
3507
  /**
3371
3508
  * AIOrchestrationsApi - axios parameter creator
3372
3509
  * @export
@@ -4032,99 +4169,1563 @@ export class AIOrchestrationsApi extends BaseAPI {
4032
4169
  * @param {string} orchestrationId Orchestration identifier
4033
4170
  * @param {*} [options] Override http request option.
4034
4171
  * @throws {RequiredError}
4035
- * @memberof AIOrchestrationsApi
4172
+ * @memberof AIOrchestrationsApi
4173
+ */
4174
+ deleteOrchestration(organisation, orchestrationId, options) {
4175
+ return AIOrchestrationsApiFp(this.configuration).deleteOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
4176
+ }
4177
+ /**
4178
+ * Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing
4179
+ * @summary Get Durable Orchestration
4180
+ * @param {string} organisation The organisation machine name
4181
+ * @param {string} orchestrationId Orchestration identifier
4182
+ * @param {*} [options] Override http request option.
4183
+ * @throws {RequiredError}
4184
+ * @memberof AIOrchestrationsApi
4185
+ */
4186
+ getOrchestration(organisation, orchestrationId, options) {
4187
+ return AIOrchestrationsApiFp(this.configuration).getOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
4188
+ }
4189
+ /**
4190
+ * Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts.
4191
+ * @summary List Orchestration Batches
4192
+ * @param {string} organisation The organisation machine name
4193
+ * @param {string} orchestrationId Orchestration identifier
4194
+ * @param {number} [limit] Maximum number of batches to return
4195
+ * @param {string} [cursor] Pagination cursor from previous response
4196
+ * @param {*} [options] Override http request option.
4197
+ * @throws {RequiredError}
4198
+ * @memberof AIOrchestrationsApi
4199
+ */
4200
+ listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options) {
4201
+ return AIOrchestrationsApiFp(this.configuration).listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options).then((request) => request(this.axios, this.basePath));
4202
+ }
4203
+ /**
4204
+ * List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor
4205
+ * @summary List Durable Orchestrations
4206
+ * @param {string} organisation The organisation machine name
4207
+ * @param {ListOrchestrationsStatusEnum} [status] Filter by orchestration status
4208
+ * @param {number} [limit] Maximum number of results
4209
+ * @param {string} [cursor] Pagination cursor from previous response
4210
+ * @param {*} [options] Override http request option.
4211
+ * @throws {RequiredError}
4212
+ * @memberof AIOrchestrationsApi
4213
+ */
4214
+ listOrchestrations(organisation, status, limit, cursor, options) {
4215
+ return AIOrchestrationsApiFp(this.configuration).listOrchestrations(organisation, status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
4216
+ }
4217
+ /**
4218
+ * Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later.
4219
+ * @summary Pause Durable Orchestration
4220
+ * @param {string} organisation The organisation machine name
4221
+ * @param {string} orchestrationId Orchestration identifier
4222
+ * @param {*} [options] Override http request option.
4223
+ * @throws {RequiredError}
4224
+ * @memberof AIOrchestrationsApi
4225
+ */
4226
+ pauseOrchestration(organisation, orchestrationId, options) {
4227
+ return AIOrchestrationsApiFp(this.configuration).pauseOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
4228
+ }
4229
+ /**
4230
+ * Resume a paused orchestration. Processing continues from where it left off.
4231
+ * @summary Resume Durable Orchestration
4232
+ * @param {string} organisation The organisation machine name
4233
+ * @param {string} orchestrationId Orchestration identifier
4234
+ * @param {*} [options] Override http request option.
4235
+ * @throws {RequiredError}
4236
+ * @memberof AIOrchestrationsApi
4237
+ */
4238
+ resumeOrchestration(organisation, orchestrationId, options) {
4239
+ return AIOrchestrationsApiFp(this.configuration).resumeOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
4240
+ }
4241
+ /**
4242
+ * Start a pending orchestration. Only works on orchestrations created with `autoStart: false`.
4243
+ * @summary Start Durable Orchestration
4244
+ * @param {string} organisation The organisation machine name
4245
+ * @param {string} orchestrationId Orchestration identifier
4246
+ * @param {*} [options] Override http request option.
4247
+ * @throws {RequiredError}
4248
+ * @memberof AIOrchestrationsApi
4249
+ */
4250
+ startOrchestration(organisation, orchestrationId, options) {
4251
+ return AIOrchestrationsApiFp(this.configuration).startOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
4252
+ }
4253
+ }
4254
+ /**
4255
+ * @export
4256
+ */
4257
+ export const ListOrchestrationsStatusEnum = {
4258
+ Pending: 'pending',
4259
+ Running: 'running',
4260
+ Paused: 'paused',
4261
+ Completed: 'completed',
4262
+ Failed: 'failed',
4263
+ Cancelled: 'cancelled'
4264
+ };
4265
+ /**
4266
+ * AISearchApi - axios parameter creator
4267
+ * @export
4268
+ */
4269
+ export const AISearchApiAxiosParamCreator = function (configuration) {
4270
+ return {
4271
+ /**
4272
+ *
4273
+ * @summary RAG chat with AI Search content
4274
+ * @param {string} organisation
4275
+ * @param {string} project
4276
+ * @param {AiSearchChatRequest} aiSearchChatRequest
4277
+ * @param {*} [options] Override http request option.
4278
+ * @throws {RequiredError}
4279
+ */
4280
+ 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 = {}) {
4281
+ // verify required parameter 'organisation' is not null or undefined
4282
+ assertParamExists('aiSearchChat', 'organisation', organisation);
4283
+ // verify required parameter 'project' is not null or undefined
4284
+ assertParamExists('aiSearchChat', 'project', project);
4285
+ // verify required parameter 'aiSearchChatRequest' is not null or undefined
4286
+ assertParamExists('aiSearchChat', 'aiSearchChatRequest', aiSearchChatRequest);
4287
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat`
4288
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4289
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4290
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4291
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4292
+ let baseOptions;
4293
+ if (configuration) {
4294
+ baseOptions = configuration.baseOptions;
4295
+ }
4296
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4297
+ const localVarHeaderParameter = {};
4298
+ const localVarQueryParameter = {};
4299
+ // authentication BearerAuth required
4300
+ // http bearer authentication required
4301
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4302
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4303
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4304
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4305
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4306
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchChatRequest, localVarRequestOptions, configuration);
4307
+ return {
4308
+ url: toPathString(localVarUrlObj),
4309
+ options: localVarRequestOptions,
4310
+ };
4311
+ }),
4312
+ /**
4313
+ *
4314
+ * @summary Delete pages by URLs or patterns
4315
+ * @param {string} organisation
4316
+ * @param {string} project
4317
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
4318
+ * @param {*} [options] Override http request option.
4319
+ * @throws {RequiredError}
4320
+ */
4321
+ 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 = {}) {
4322
+ // verify required parameter 'organisation' is not null or undefined
4323
+ assertParamExists('aiSearchDeletePages', 'organisation', organisation);
4324
+ // verify required parameter 'project' is not null or undefined
4325
+ assertParamExists('aiSearchDeletePages', 'project', project);
4326
+ // verify required parameter 'aiSearchDeletePagesRequest' is not null or undefined
4327
+ assertParamExists('aiSearchDeletePages', 'aiSearchDeletePagesRequest', aiSearchDeletePagesRequest);
4328
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
4329
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4330
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4331
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4332
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4333
+ let baseOptions;
4334
+ if (configuration) {
4335
+ baseOptions = configuration.baseOptions;
4336
+ }
4337
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4338
+ const localVarHeaderParameter = {};
4339
+ const localVarQueryParameter = {};
4340
+ // authentication BearerAuth required
4341
+ // http bearer authentication required
4342
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4343
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4344
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4345
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4346
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4347
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchDeletePagesRequest, localVarRequestOptions, configuration);
4348
+ return {
4349
+ url: toPathString(localVarUrlObj),
4350
+ options: localVarRequestOptions,
4351
+ };
4352
+ }),
4353
+ /**
4354
+ *
4355
+ * @summary Disable AI Search for a project
4356
+ * @param {string} organisation
4357
+ * @param {string} project
4358
+ * @param {*} [options] Override http request option.
4359
+ * @throws {RequiredError}
4360
+ */
4361
+ aiSearchDisable: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
4362
+ // verify required parameter 'organisation' is not null or undefined
4363
+ assertParamExists('aiSearchDisable', 'organisation', organisation);
4364
+ // verify required parameter 'project' is not null or undefined
4365
+ assertParamExists('aiSearchDisable', 'project', project);
4366
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable`
4367
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4368
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4369
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4370
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4371
+ let baseOptions;
4372
+ if (configuration) {
4373
+ baseOptions = configuration.baseOptions;
4374
+ }
4375
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4376
+ const localVarHeaderParameter = {};
4377
+ const localVarQueryParameter = {};
4378
+ // authentication BearerAuth required
4379
+ // http bearer authentication required
4380
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4381
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4382
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4383
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4384
+ return {
4385
+ url: toPathString(localVarUrlObj),
4386
+ options: localVarRequestOptions,
4387
+ };
4388
+ }),
4389
+ /**
4390
+ *
4391
+ * @summary Enable AI Search for a project
4392
+ * @param {string} organisation
4393
+ * @param {string} project
4394
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
4395
+ * @param {*} [options] Override http request option.
4396
+ * @throws {RequiredError}
4397
+ */
4398
+ 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 = {}) {
4399
+ // verify required parameter 'organisation' is not null or undefined
4400
+ assertParamExists('aiSearchEnable', 'organisation', organisation);
4401
+ // verify required parameter 'project' is not null or undefined
4402
+ assertParamExists('aiSearchEnable', 'project', project);
4403
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable`
4404
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4405
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4407
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4408
+ let baseOptions;
4409
+ if (configuration) {
4410
+ baseOptions = configuration.baseOptions;
4411
+ }
4412
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4413
+ const localVarHeaderParameter = {};
4414
+ const localVarQueryParameter = {};
4415
+ // authentication BearerAuth required
4416
+ // http bearer authentication required
4417
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4418
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4419
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4421
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4422
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchEnableRequest, localVarRequestOptions, configuration);
4423
+ return {
4424
+ url: toPathString(localVarUrlObj),
4425
+ options: localVarRequestOptions,
4426
+ };
4427
+ }),
4428
+ /**
4429
+ *
4430
+ * @summary Get AI Search ingest job status
4431
+ * @param {string} organisation
4432
+ * @param {string} project
4433
+ * @param {string} jobId
4434
+ * @param {*} [options] Override http request option.
4435
+ * @throws {RequiredError}
4436
+ */
4437
+ 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 = {}) {
4438
+ // verify required parameter 'organisation' is not null or undefined
4439
+ assertParamExists('aiSearchGetCrawl', 'organisation', organisation);
4440
+ // verify required parameter 'project' is not null or undefined
4441
+ assertParamExists('aiSearchGetCrawl', 'project', project);
4442
+ // verify required parameter 'jobId' is not null or undefined
4443
+ assertParamExists('aiSearchGetCrawl', 'jobId', jobId);
4444
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}`
4445
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4446
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
4447
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
4448
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4449
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4450
+ let baseOptions;
4451
+ if (configuration) {
4452
+ baseOptions = configuration.baseOptions;
4453
+ }
4454
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4455
+ const localVarHeaderParameter = {};
4456
+ const localVarQueryParameter = {};
4457
+ // authentication BearerAuth required
4458
+ // http bearer authentication required
4459
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4460
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4461
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4462
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4463
+ return {
4464
+ url: toPathString(localVarUrlObj),
4465
+ options: localVarRequestOptions,
4466
+ };
4467
+ }),
4468
+ /**
4469
+ *
4470
+ * @summary Get per-page ingest results for a crawl job
4471
+ * @param {string} organisation
4472
+ * @param {string} project
4473
+ * @param {string} jobId
4474
+ * @param {number} [limit]
4475
+ * @param {number} [statusCode]
4476
+ * @param {string} [processingStatus]
4477
+ * @param {*} [options] Override http request option.
4478
+ * @throws {RequiredError}
4479
+ */
4480
+ 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 = {}) {
4481
+ // verify required parameter 'organisation' is not null or undefined
4482
+ assertParamExists('aiSearchGetCrawlPages', 'organisation', organisation);
4483
+ // verify required parameter 'project' is not null or undefined
4484
+ assertParamExists('aiSearchGetCrawlPages', 'project', project);
4485
+ // verify required parameter 'jobId' is not null or undefined
4486
+ assertParamExists('aiSearchGetCrawlPages', 'jobId', jobId);
4487
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages`
4488
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4489
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
4490
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
4491
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4492
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4493
+ let baseOptions;
4494
+ if (configuration) {
4495
+ baseOptions = configuration.baseOptions;
4496
+ }
4497
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4498
+ const localVarHeaderParameter = {};
4499
+ const localVarQueryParameter = {};
4500
+ // authentication BearerAuth required
4501
+ // http bearer authentication required
4502
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4503
+ if (limit !== undefined) {
4504
+ localVarQueryParameter['limit'] = limit;
4505
+ }
4506
+ if (statusCode !== undefined) {
4507
+ localVarQueryParameter['statusCode'] = statusCode;
4508
+ }
4509
+ if (processingStatus !== undefined) {
4510
+ localVarQueryParameter['processingStatus'] = processingStatus;
4511
+ }
4512
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4513
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4514
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4515
+ return {
4516
+ url: toPathString(localVarUrlObj),
4517
+ options: localVarRequestOptions,
4518
+ };
4519
+ }),
4520
+ /**
4521
+ *
4522
+ * @summary Get AI Search public access and rate limit settings
4523
+ * @param {string} organisation
4524
+ * @param {string} project
4525
+ * @param {*} [options] Override http request option.
4526
+ * @throws {RequiredError}
4527
+ */
4528
+ aiSearchGetSettings: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
4529
+ // verify required parameter 'organisation' is not null or undefined
4530
+ assertParamExists('aiSearchGetSettings', 'organisation', organisation);
4531
+ // verify required parameter 'project' is not null or undefined
4532
+ assertParamExists('aiSearchGetSettings', 'project', project);
4533
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
4534
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4535
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4536
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4537
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4538
+ let baseOptions;
4539
+ if (configuration) {
4540
+ baseOptions = configuration.baseOptions;
4541
+ }
4542
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4543
+ const localVarHeaderParameter = {};
4544
+ const localVarQueryParameter = {};
4545
+ // authentication BearerAuth required
4546
+ // http bearer authentication required
4547
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4548
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4549
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4550
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4551
+ return {
4552
+ url: toPathString(localVarUrlObj),
4553
+ options: localVarRequestOptions,
4554
+ };
4555
+ }),
4556
+ /**
4557
+ *
4558
+ * @summary Ingest pages into the AI Search index
4559
+ * @param {string} organisation
4560
+ * @param {string} project
4561
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
4562
+ * @param {*} [options] Override http request option.
4563
+ * @throws {RequiredError}
4564
+ */
4565
+ 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 = {}) {
4566
+ // verify required parameter 'organisation' is not null or undefined
4567
+ assertParamExists('aiSearchIngestPages', 'organisation', organisation);
4568
+ // verify required parameter 'project' is not null or undefined
4569
+ assertParamExists('aiSearchIngestPages', 'project', project);
4570
+ // verify required parameter 'aiSearchIngestPagesRequest' is not null or undefined
4571
+ assertParamExists('aiSearchIngestPages', 'aiSearchIngestPagesRequest', aiSearchIngestPagesRequest);
4572
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
4573
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4574
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4575
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4576
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4577
+ let baseOptions;
4578
+ if (configuration) {
4579
+ baseOptions = configuration.baseOptions;
4580
+ }
4581
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4582
+ const localVarHeaderParameter = {};
4583
+ const localVarQueryParameter = {};
4584
+ // authentication BearerAuth required
4585
+ // http bearer authentication required
4586
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4587
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4588
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4589
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4590
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4591
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchIngestPagesRequest, localVarRequestOptions, configuration);
4592
+ return {
4593
+ url: toPathString(localVarUrlObj),
4594
+ options: localVarRequestOptions,
4595
+ };
4596
+ }),
4597
+ /**
4598
+ *
4599
+ * @summary List AI Search ingest jobs
4600
+ * @param {string} organisation
4601
+ * @param {string} project
4602
+ * @param {number} [limit]
4603
+ * @param {*} [options] Override http request option.
4604
+ * @throws {RequiredError}
4605
+ */
4606
+ 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 = {}) {
4607
+ // verify required parameter 'organisation' is not null or undefined
4608
+ assertParamExists('aiSearchListCrawls', 'organisation', organisation);
4609
+ // verify required parameter 'project' is not null or undefined
4610
+ assertParamExists('aiSearchListCrawls', 'project', project);
4611
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
4612
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4613
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4614
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4615
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4616
+ let baseOptions;
4617
+ if (configuration) {
4618
+ baseOptions = configuration.baseOptions;
4619
+ }
4620
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4621
+ const localVarHeaderParameter = {};
4622
+ const localVarQueryParameter = {};
4623
+ // authentication BearerAuth required
4624
+ // http bearer authentication required
4625
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4626
+ if (limit !== undefined) {
4627
+ localVarQueryParameter['limit'] = limit;
4628
+ }
4629
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4630
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4631
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4632
+ return {
4633
+ url: toPathString(localVarUrlObj),
4634
+ options: localVarRequestOptions,
4635
+ };
4636
+ }),
4637
+ /**
4638
+ *
4639
+ * @summary List indexed pages with cursor pagination
4640
+ * @param {string} organisation
4641
+ * @param {string} project
4642
+ * @param {number} [limit]
4643
+ * @param {string} [cursor]
4644
+ * @param {string} [search]
4645
+ * @param {*} [options] Override http request option.
4646
+ * @throws {RequiredError}
4647
+ */
4648
+ 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 = {}) {
4649
+ // verify required parameter 'organisation' is not null or undefined
4650
+ assertParamExists('aiSearchListPages', 'organisation', organisation);
4651
+ // verify required parameter 'project' is not null or undefined
4652
+ assertParamExists('aiSearchListPages', 'project', project);
4653
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
4654
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4655
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4656
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4657
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4658
+ let baseOptions;
4659
+ if (configuration) {
4660
+ baseOptions = configuration.baseOptions;
4661
+ }
4662
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4663
+ const localVarHeaderParameter = {};
4664
+ const localVarQueryParameter = {};
4665
+ // authentication BearerAuth required
4666
+ // http bearer authentication required
4667
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4668
+ if (limit !== undefined) {
4669
+ localVarQueryParameter['limit'] = limit;
4670
+ }
4671
+ if (cursor !== undefined) {
4672
+ localVarQueryParameter['cursor'] = cursor;
4673
+ }
4674
+ if (search !== undefined) {
4675
+ localVarQueryParameter['search'] = search;
4676
+ }
4677
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4678
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4679
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4680
+ return {
4681
+ url: toPathString(localVarUrlObj),
4682
+ options: localVarRequestOptions,
4683
+ };
4684
+ }),
4685
+ /**
4686
+ *
4687
+ * @summary Purge the entire AI Search index
4688
+ * @param {string} organisation
4689
+ * @param {string} project
4690
+ * @param {*} [options] Override http request option.
4691
+ * @throws {RequiredError}
4692
+ */
4693
+ aiSearchPurgeIndex: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
4694
+ // verify required parameter 'organisation' is not null or undefined
4695
+ assertParamExists('aiSearchPurgeIndex', 'organisation', organisation);
4696
+ // verify required parameter 'project' is not null or undefined
4697
+ assertParamExists('aiSearchPurgeIndex', 'project', project);
4698
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/index`
4699
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4700
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4701
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4702
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4703
+ let baseOptions;
4704
+ if (configuration) {
4705
+ baseOptions = configuration.baseOptions;
4706
+ }
4707
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
4708
+ const localVarHeaderParameter = {};
4709
+ const localVarQueryParameter = {};
4710
+ // authentication BearerAuth required
4711
+ // http bearer authentication required
4712
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4713
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4714
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4715
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4716
+ return {
4717
+ url: toPathString(localVarUrlObj),
4718
+ options: localVarRequestOptions,
4719
+ };
4720
+ }),
4721
+ /**
4722
+ *
4723
+ * @summary Semantic search across the AI Search index
4724
+ * @param {string} organisation
4725
+ * @param {string} project
4726
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
4727
+ * @param {*} [options] Override http request option.
4728
+ * @throws {RequiredError}
4729
+ */
4730
+ 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 = {}) {
4731
+ // verify required parameter 'organisation' is not null or undefined
4732
+ assertParamExists('aiSearchSearch', 'organisation', organisation);
4733
+ // verify required parameter 'project' is not null or undefined
4734
+ assertParamExists('aiSearchSearch', 'project', project);
4735
+ // verify required parameter 'aiSearchSearchRequest' is not null or undefined
4736
+ assertParamExists('aiSearchSearch', 'aiSearchSearchRequest', aiSearchSearchRequest);
4737
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/search`
4738
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4739
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4740
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4741
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4742
+ let baseOptions;
4743
+ if (configuration) {
4744
+ baseOptions = configuration.baseOptions;
4745
+ }
4746
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4747
+ const localVarHeaderParameter = {};
4748
+ const localVarQueryParameter = {};
4749
+ // authentication BearerAuth required
4750
+ // http bearer authentication required
4751
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4752
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4753
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4754
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4755
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4756
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchSearchRequest, localVarRequestOptions, configuration);
4757
+ return {
4758
+ url: toPathString(localVarUrlObj),
4759
+ options: localVarRequestOptions,
4760
+ };
4761
+ }),
4762
+ /**
4763
+ *
4764
+ * @summary Get AI Search status for a project
4765
+ * @param {string} organisation
4766
+ * @param {string} project
4767
+ * @param {*} [options] Override http request option.
4768
+ * @throws {RequiredError}
4769
+ */
4770
+ aiSearchStatus: (organisation_1, project_1, ...args_1) => __awaiter(this, [organisation_1, project_1, ...args_1], void 0, function* (organisation, project, options = {}) {
4771
+ // verify required parameter 'organisation' is not null or undefined
4772
+ assertParamExists('aiSearchStatus', 'organisation', organisation);
4773
+ // verify required parameter 'project' is not null or undefined
4774
+ assertParamExists('aiSearchStatus', 'project', project);
4775
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search`
4776
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4777
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4778
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4779
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4780
+ let baseOptions;
4781
+ if (configuration) {
4782
+ baseOptions = configuration.baseOptions;
4783
+ }
4784
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4785
+ const localVarHeaderParameter = {};
4786
+ const localVarQueryParameter = {};
4787
+ // authentication BearerAuth required
4788
+ // http bearer authentication required
4789
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4790
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4791
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4792
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4793
+ return {
4794
+ url: toPathString(localVarUrlObj),
4795
+ options: localVarRequestOptions,
4796
+ };
4797
+ }),
4798
+ /**
4799
+ *
4800
+ * @summary Get the most popular AI Search queries
4801
+ * @param {string} organisation
4802
+ * @param {string} project
4803
+ * @param {string} [range]
4804
+ * @param {number} [limit]
4805
+ * @param {*} [options] Override http request option.
4806
+ * @throws {RequiredError}
4807
+ */
4808
+ 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 = {}) {
4809
+ // verify required parameter 'organisation' is not null or undefined
4810
+ assertParamExists('aiSearchTopQueries', 'organisation', organisation);
4811
+ // verify required parameter 'project' is not null or undefined
4812
+ assertParamExists('aiSearchTopQueries', 'project', project);
4813
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries`
4814
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4815
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4816
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4817
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4818
+ let baseOptions;
4819
+ if (configuration) {
4820
+ baseOptions = configuration.baseOptions;
4821
+ }
4822
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4823
+ const localVarHeaderParameter = {};
4824
+ const localVarQueryParameter = {};
4825
+ // authentication BearerAuth required
4826
+ // http bearer authentication required
4827
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4828
+ if (range !== undefined) {
4829
+ localVarQueryParameter['range'] = range;
4830
+ }
4831
+ if (limit !== undefined) {
4832
+ localVarQueryParameter['limit'] = limit;
4833
+ }
4834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4836
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4837
+ return {
4838
+ url: toPathString(localVarUrlObj),
4839
+ options: localVarRequestOptions,
4840
+ };
4841
+ }),
4842
+ /**
4843
+ *
4844
+ * @summary Trigger a crawler run that ingests into AI Search
4845
+ * @param {string} organisation
4846
+ * @param {string} project
4847
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
4848
+ * @param {*} [options] Override http request option.
4849
+ * @throws {RequiredError}
4850
+ */
4851
+ 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 = {}) {
4852
+ // verify required parameter 'organisation' is not null or undefined
4853
+ assertParamExists('aiSearchTriggerCrawl', 'organisation', organisation);
4854
+ // verify required parameter 'project' is not null or undefined
4855
+ assertParamExists('aiSearchTriggerCrawl', 'project', project);
4856
+ // verify required parameter 'aiSearchTriggerCrawlRequest' is not null or undefined
4857
+ assertParamExists('aiSearchTriggerCrawl', 'aiSearchTriggerCrawlRequest', aiSearchTriggerCrawlRequest);
4858
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
4859
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4860
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4861
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4862
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4863
+ let baseOptions;
4864
+ if (configuration) {
4865
+ baseOptions = configuration.baseOptions;
4866
+ }
4867
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
4868
+ const localVarHeaderParameter = {};
4869
+ const localVarQueryParameter = {};
4870
+ // authentication BearerAuth required
4871
+ // http bearer authentication required
4872
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4873
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4874
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4875
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4876
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4877
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchTriggerCrawlRequest, localVarRequestOptions, configuration);
4878
+ return {
4879
+ url: toPathString(localVarUrlObj),
4880
+ options: localVarRequestOptions,
4881
+ };
4882
+ }),
4883
+ /**
4884
+ *
4885
+ * @summary Update AI Search public access and rate limit settings
4886
+ * @param {string} organisation
4887
+ * @param {string} project
4888
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
4889
+ * @param {*} [options] Override http request option.
4890
+ * @throws {RequiredError}
4891
+ */
4892
+ 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 = {}) {
4893
+ // verify required parameter 'organisation' is not null or undefined
4894
+ assertParamExists('aiSearchUpdateSettings', 'organisation', organisation);
4895
+ // verify required parameter 'project' is not null or undefined
4896
+ assertParamExists('aiSearchUpdateSettings', 'project', project);
4897
+ // verify required parameter 'aiSearchUpdateSettingsRequest' is not null or undefined
4898
+ assertParamExists('aiSearchUpdateSettings', 'aiSearchUpdateSettingsRequest', aiSearchUpdateSettingsRequest);
4899
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
4900
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4901
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4904
+ let baseOptions;
4905
+ if (configuration) {
4906
+ baseOptions = configuration.baseOptions;
4907
+ }
4908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
4909
+ const localVarHeaderParameter = {};
4910
+ const localVarQueryParameter = {};
4911
+ // authentication BearerAuth required
4912
+ // http bearer authentication required
4913
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4914
+ localVarHeaderParameter['Content-Type'] = 'application/json';
4915
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4916
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4917
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4918
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchUpdateSettingsRequest, localVarRequestOptions, configuration);
4919
+ return {
4920
+ url: toPathString(localVarUrlObj),
4921
+ options: localVarRequestOptions,
4922
+ };
4923
+ }),
4924
+ /**
4925
+ *
4926
+ * @summary Get usage statistics for the AI Search site
4927
+ * @param {string} organisation
4928
+ * @param {string} project
4929
+ * @param {string} [range]
4930
+ * @param {*} [options] Override http request option.
4931
+ * @throws {RequiredError}
4932
+ */
4933
+ 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 = {}) {
4934
+ // verify required parameter 'organisation' is not null or undefined
4935
+ assertParamExists('aiSearchUsage', 'organisation', organisation);
4936
+ // verify required parameter 'project' is not null or undefined
4937
+ assertParamExists('aiSearchUsage', 'project', project);
4938
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage`
4939
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
4940
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
4941
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
4942
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
4943
+ let baseOptions;
4944
+ if (configuration) {
4945
+ baseOptions = configuration.baseOptions;
4946
+ }
4947
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
4948
+ const localVarHeaderParameter = {};
4949
+ const localVarQueryParameter = {};
4950
+ // authentication BearerAuth required
4951
+ // http bearer authentication required
4952
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
4953
+ if (range !== undefined) {
4954
+ localVarQueryParameter['range'] = range;
4955
+ }
4956
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
4957
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
4958
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
4959
+ return {
4960
+ url: toPathString(localVarUrlObj),
4961
+ options: localVarRequestOptions,
4962
+ };
4963
+ }),
4964
+ };
4965
+ };
4966
+ /**
4967
+ * AISearchApi - functional programming interface
4968
+ * @export
4969
+ */
4970
+ export const AISearchApiFp = function (configuration) {
4971
+ const localVarAxiosParamCreator = AISearchApiAxiosParamCreator(configuration);
4972
+ return {
4973
+ /**
4974
+ *
4975
+ * @summary RAG chat with AI Search content
4976
+ * @param {string} organisation
4977
+ * @param {string} project
4978
+ * @param {AiSearchChatRequest} aiSearchChatRequest
4979
+ * @param {*} [options] Override http request option.
4980
+ * @throws {RequiredError}
4981
+ */
4982
+ aiSearchChat(organisation, project, aiSearchChatRequest, options) {
4983
+ return __awaiter(this, void 0, void 0, function* () {
4984
+ var _a, _b, _c;
4985
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchChat(organisation, project, aiSearchChatRequest, options);
4986
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
4987
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchChat']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
4988
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
4989
+ });
4990
+ },
4991
+ /**
4992
+ *
4993
+ * @summary Delete pages by URLs or patterns
4994
+ * @param {string} organisation
4995
+ * @param {string} project
4996
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
4997
+ * @param {*} [options] Override http request option.
4998
+ * @throws {RequiredError}
4999
+ */
5000
+ aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
5001
+ return __awaiter(this, void 0, void 0, function* () {
5002
+ var _a, _b, _c;
5003
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options);
5004
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5005
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchDeletePages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5006
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5007
+ });
5008
+ },
5009
+ /**
5010
+ *
5011
+ * @summary Disable AI Search for a project
5012
+ * @param {string} organisation
5013
+ * @param {string} project
5014
+ * @param {*} [options] Override http request option.
5015
+ * @throws {RequiredError}
5016
+ */
5017
+ aiSearchDisable(organisation, project, options) {
5018
+ return __awaiter(this, void 0, void 0, function* () {
5019
+ var _a, _b, _c;
5020
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchDisable(organisation, project, options);
5021
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5022
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchDisable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5023
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5024
+ });
5025
+ },
5026
+ /**
5027
+ *
5028
+ * @summary Enable AI Search for a project
5029
+ * @param {string} organisation
5030
+ * @param {string} project
5031
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
5032
+ * @param {*} [options] Override http request option.
5033
+ * @throws {RequiredError}
5034
+ */
5035
+ aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
5036
+ return __awaiter(this, void 0, void 0, function* () {
5037
+ var _a, _b, _c;
5038
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchEnable(organisation, project, aiSearchEnableRequest, options);
5039
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5040
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchEnable']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5041
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5042
+ });
5043
+ },
5044
+ /**
5045
+ *
5046
+ * @summary Get AI Search ingest job status
5047
+ * @param {string} organisation
5048
+ * @param {string} project
5049
+ * @param {string} jobId
5050
+ * @param {*} [options] Override http request option.
5051
+ * @throws {RequiredError}
5052
+ */
5053
+ aiSearchGetCrawl(organisation, project, jobId, options) {
5054
+ return __awaiter(this, void 0, void 0, function* () {
5055
+ var _a, _b, _c;
5056
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawl(organisation, project, jobId, options);
5057
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5058
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5059
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5060
+ });
5061
+ },
5062
+ /**
5063
+ *
5064
+ * @summary Get per-page ingest results for a crawl job
5065
+ * @param {string} organisation
5066
+ * @param {string} project
5067
+ * @param {string} jobId
5068
+ * @param {number} [limit]
5069
+ * @param {number} [statusCode]
5070
+ * @param {string} [processingStatus]
5071
+ * @param {*} [options] Override http request option.
5072
+ * @throws {RequiredError}
5073
+ */
5074
+ aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
5075
+ return __awaiter(this, void 0, void 0, function* () {
5076
+ var _a, _b, _c;
5077
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options);
5078
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5079
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetCrawlPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5080
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5081
+ });
5082
+ },
5083
+ /**
5084
+ *
5085
+ * @summary Get AI Search public access and rate limit settings
5086
+ * @param {string} organisation
5087
+ * @param {string} project
5088
+ * @param {*} [options] Override http request option.
5089
+ * @throws {RequiredError}
5090
+ */
5091
+ aiSearchGetSettings(organisation, project, options) {
5092
+ return __awaiter(this, void 0, void 0, function* () {
5093
+ var _a, _b, _c;
5094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchGetSettings(organisation, project, options);
5095
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5096
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchGetSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5098
+ });
5099
+ },
5100
+ /**
5101
+ *
5102
+ * @summary Ingest pages into the AI Search index
5103
+ * @param {string} organisation
5104
+ * @param {string} project
5105
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
5106
+ * @param {*} [options] Override http request option.
5107
+ * @throws {RequiredError}
5108
+ */
5109
+ aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
5110
+ return __awaiter(this, void 0, void 0, function* () {
5111
+ var _a, _b, _c;
5112
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options);
5113
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5114
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchIngestPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5115
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5116
+ });
5117
+ },
5118
+ /**
5119
+ *
5120
+ * @summary List AI Search ingest jobs
5121
+ * @param {string} organisation
5122
+ * @param {string} project
5123
+ * @param {number} [limit]
5124
+ * @param {*} [options] Override http request option.
5125
+ * @throws {RequiredError}
5126
+ */
5127
+ aiSearchListCrawls(organisation, project, limit, options) {
5128
+ return __awaiter(this, void 0, void 0, function* () {
5129
+ var _a, _b, _c;
5130
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListCrawls(organisation, project, limit, options);
5131
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5132
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchListCrawls']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5133
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5134
+ });
5135
+ },
5136
+ /**
5137
+ *
5138
+ * @summary List indexed pages with cursor pagination
5139
+ * @param {string} organisation
5140
+ * @param {string} project
5141
+ * @param {number} [limit]
5142
+ * @param {string} [cursor]
5143
+ * @param {string} [search]
5144
+ * @param {*} [options] Override http request option.
5145
+ * @throws {RequiredError}
5146
+ */
5147
+ aiSearchListPages(organisation, project, limit, cursor, search, options) {
5148
+ return __awaiter(this, void 0, void 0, function* () {
5149
+ var _a, _b, _c;
5150
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchListPages(organisation, project, limit, cursor, search, options);
5151
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5152
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchListPages']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5153
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5154
+ });
5155
+ },
5156
+ /**
5157
+ *
5158
+ * @summary Purge the entire AI Search index
5159
+ * @param {string} organisation
5160
+ * @param {string} project
5161
+ * @param {*} [options] Override http request option.
5162
+ * @throws {RequiredError}
5163
+ */
5164
+ aiSearchPurgeIndex(organisation, project, options) {
5165
+ return __awaiter(this, void 0, void 0, function* () {
5166
+ var _a, _b, _c;
5167
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchPurgeIndex(organisation, project, options);
5168
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5169
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchPurgeIndex']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5170
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5171
+ });
5172
+ },
5173
+ /**
5174
+ *
5175
+ * @summary Semantic search across the AI Search index
5176
+ * @param {string} organisation
5177
+ * @param {string} project
5178
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
5179
+ * @param {*} [options] Override http request option.
5180
+ * @throws {RequiredError}
5181
+ */
5182
+ aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
5183
+ return __awaiter(this, void 0, void 0, function* () {
5184
+ var _a, _b, _c;
5185
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchSearch(organisation, project, aiSearchSearchRequest, options);
5186
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5187
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchSearch']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5188
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5189
+ });
5190
+ },
5191
+ /**
5192
+ *
5193
+ * @summary Get AI Search status for a project
5194
+ * @param {string} organisation
5195
+ * @param {string} project
5196
+ * @param {*} [options] Override http request option.
5197
+ * @throws {RequiredError}
5198
+ */
5199
+ aiSearchStatus(organisation, project, options) {
5200
+ return __awaiter(this, void 0, void 0, function* () {
5201
+ var _a, _b, _c;
5202
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchStatus(organisation, project, options);
5203
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5204
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5205
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5206
+ });
5207
+ },
5208
+ /**
5209
+ *
5210
+ * @summary Get the most popular AI Search queries
5211
+ * @param {string} organisation
5212
+ * @param {string} project
5213
+ * @param {string} [range]
5214
+ * @param {number} [limit]
5215
+ * @param {*} [options] Override http request option.
5216
+ * @throws {RequiredError}
5217
+ */
5218
+ aiSearchTopQueries(organisation, project, range, limit, options) {
5219
+ return __awaiter(this, void 0, void 0, function* () {
5220
+ var _a, _b, _c;
5221
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTopQueries(organisation, project, range, limit, options);
5222
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5223
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchTopQueries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5224
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5225
+ });
5226
+ },
5227
+ /**
5228
+ *
5229
+ * @summary Trigger a crawler run that ingests into AI Search
5230
+ * @param {string} organisation
5231
+ * @param {string} project
5232
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
5233
+ * @param {*} [options] Override http request option.
5234
+ * @throws {RequiredError}
5235
+ */
5236
+ aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
5237
+ return __awaiter(this, void 0, void 0, function* () {
5238
+ var _a, _b, _c;
5239
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options);
5240
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5241
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchTriggerCrawl']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5242
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5243
+ });
5244
+ },
5245
+ /**
5246
+ *
5247
+ * @summary Update AI Search public access and rate limit settings
5248
+ * @param {string} organisation
5249
+ * @param {string} project
5250
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
5251
+ * @param {*} [options] Override http request option.
5252
+ * @throws {RequiredError}
5253
+ */
5254
+ aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
5255
+ return __awaiter(this, void 0, void 0, function* () {
5256
+ var _a, _b, _c;
5257
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options);
5258
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5259
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchUpdateSettings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5260
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5261
+ });
5262
+ },
5263
+ /**
5264
+ *
5265
+ * @summary Get usage statistics for the AI Search site
5266
+ * @param {string} organisation
5267
+ * @param {string} project
5268
+ * @param {string} [range]
5269
+ * @param {*} [options] Override http request option.
5270
+ * @throws {RequiredError}
5271
+ */
5272
+ aiSearchUsage(organisation, project, range, options) {
5273
+ return __awaiter(this, void 0, void 0, function* () {
5274
+ var _a, _b, _c;
5275
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiSearchUsage(organisation, project, range, options);
5276
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
5277
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISearchApi.aiSearchUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
5278
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
5279
+ });
5280
+ },
5281
+ };
5282
+ };
5283
+ /**
5284
+ * AISearchApi - factory interface
5285
+ * @export
5286
+ */
5287
+ export const AISearchApiFactory = function (configuration, basePath, axios) {
5288
+ const localVarFp = AISearchApiFp(configuration);
5289
+ return {
5290
+ /**
5291
+ *
5292
+ * @summary RAG chat with AI Search content
5293
+ * @param {string} organisation
5294
+ * @param {string} project
5295
+ * @param {AiSearchChatRequest} aiSearchChatRequest
5296
+ * @param {*} [options] Override http request option.
5297
+ * @throws {RequiredError}
5298
+ */
5299
+ aiSearchChat(organisation, project, aiSearchChatRequest, options) {
5300
+ return localVarFp.aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(axios, basePath));
5301
+ },
5302
+ /**
5303
+ *
5304
+ * @summary Delete pages by URLs or patterns
5305
+ * @param {string} organisation
5306
+ * @param {string} project
5307
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
5308
+ * @param {*} [options] Override http request option.
5309
+ * @throws {RequiredError}
5310
+ */
5311
+ aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
5312
+ return localVarFp.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(axios, basePath));
5313
+ },
5314
+ /**
5315
+ *
5316
+ * @summary Disable AI Search for a project
5317
+ * @param {string} organisation
5318
+ * @param {string} project
5319
+ * @param {*} [options] Override http request option.
5320
+ * @throws {RequiredError}
5321
+ */
5322
+ aiSearchDisable(organisation, project, options) {
5323
+ return localVarFp.aiSearchDisable(organisation, project, options).then((request) => request(axios, basePath));
5324
+ },
5325
+ /**
5326
+ *
5327
+ * @summary Enable AI Search for a project
5328
+ * @param {string} organisation
5329
+ * @param {string} project
5330
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
5331
+ * @param {*} [options] Override http request option.
5332
+ * @throws {RequiredError}
5333
+ */
5334
+ aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
5335
+ return localVarFp.aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(axios, basePath));
5336
+ },
5337
+ /**
5338
+ *
5339
+ * @summary Get AI Search ingest job status
5340
+ * @param {string} organisation
5341
+ * @param {string} project
5342
+ * @param {string} jobId
5343
+ * @param {*} [options] Override http request option.
5344
+ * @throws {RequiredError}
5345
+ */
5346
+ aiSearchGetCrawl(organisation, project, jobId, options) {
5347
+ return localVarFp.aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(axios, basePath));
5348
+ },
5349
+ /**
5350
+ *
5351
+ * @summary Get per-page ingest results for a crawl job
5352
+ * @param {string} organisation
5353
+ * @param {string} project
5354
+ * @param {string} jobId
5355
+ * @param {number} [limit]
5356
+ * @param {number} [statusCode]
5357
+ * @param {string} [processingStatus]
5358
+ * @param {*} [options] Override http request option.
5359
+ * @throws {RequiredError}
5360
+ */
5361
+ aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
5362
+ return localVarFp.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(axios, basePath));
5363
+ },
5364
+ /**
5365
+ *
5366
+ * @summary Get AI Search public access and rate limit settings
5367
+ * @param {string} organisation
5368
+ * @param {string} project
5369
+ * @param {*} [options] Override http request option.
5370
+ * @throws {RequiredError}
5371
+ */
5372
+ aiSearchGetSettings(organisation, project, options) {
5373
+ return localVarFp.aiSearchGetSettings(organisation, project, options).then((request) => request(axios, basePath));
5374
+ },
5375
+ /**
5376
+ *
5377
+ * @summary Ingest pages into the AI Search index
5378
+ * @param {string} organisation
5379
+ * @param {string} project
5380
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
5381
+ * @param {*} [options] Override http request option.
5382
+ * @throws {RequiredError}
5383
+ */
5384
+ aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
5385
+ return localVarFp.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(axios, basePath));
5386
+ },
5387
+ /**
5388
+ *
5389
+ * @summary List AI Search ingest jobs
5390
+ * @param {string} organisation
5391
+ * @param {string} project
5392
+ * @param {number} [limit]
5393
+ * @param {*} [options] Override http request option.
5394
+ * @throws {RequiredError}
5395
+ */
5396
+ aiSearchListCrawls(organisation, project, limit, options) {
5397
+ return localVarFp.aiSearchListCrawls(organisation, project, limit, options).then((request) => request(axios, basePath));
5398
+ },
5399
+ /**
5400
+ *
5401
+ * @summary List indexed pages with cursor pagination
5402
+ * @param {string} organisation
5403
+ * @param {string} project
5404
+ * @param {number} [limit]
5405
+ * @param {string} [cursor]
5406
+ * @param {string} [search]
5407
+ * @param {*} [options] Override http request option.
5408
+ * @throws {RequiredError}
5409
+ */
5410
+ aiSearchListPages(organisation, project, limit, cursor, search, options) {
5411
+ return localVarFp.aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(axios, basePath));
5412
+ },
5413
+ /**
5414
+ *
5415
+ * @summary Purge the entire AI Search index
5416
+ * @param {string} organisation
5417
+ * @param {string} project
5418
+ * @param {*} [options] Override http request option.
5419
+ * @throws {RequiredError}
5420
+ */
5421
+ aiSearchPurgeIndex(organisation, project, options) {
5422
+ return localVarFp.aiSearchPurgeIndex(organisation, project, options).then((request) => request(axios, basePath));
5423
+ },
5424
+ /**
5425
+ *
5426
+ * @summary Semantic search across the AI Search index
5427
+ * @param {string} organisation
5428
+ * @param {string} project
5429
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
5430
+ * @param {*} [options] Override http request option.
5431
+ * @throws {RequiredError}
5432
+ */
5433
+ aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
5434
+ return localVarFp.aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(axios, basePath));
5435
+ },
5436
+ /**
5437
+ *
5438
+ * @summary Get AI Search status for a project
5439
+ * @param {string} organisation
5440
+ * @param {string} project
5441
+ * @param {*} [options] Override http request option.
5442
+ * @throws {RequiredError}
5443
+ */
5444
+ aiSearchStatus(organisation, project, options) {
5445
+ return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
5446
+ },
5447
+ /**
5448
+ *
5449
+ * @summary Get the most popular AI Search queries
5450
+ * @param {string} organisation
5451
+ * @param {string} project
5452
+ * @param {string} [range]
5453
+ * @param {number} [limit]
5454
+ * @param {*} [options] Override http request option.
5455
+ * @throws {RequiredError}
5456
+ */
5457
+ aiSearchTopQueries(organisation, project, range, limit, options) {
5458
+ return localVarFp.aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(axios, basePath));
5459
+ },
5460
+ /**
5461
+ *
5462
+ * @summary Trigger a crawler run that ingests into AI Search
5463
+ * @param {string} organisation
5464
+ * @param {string} project
5465
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
5466
+ * @param {*} [options] Override http request option.
5467
+ * @throws {RequiredError}
5468
+ */
5469
+ aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
5470
+ return localVarFp.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(axios, basePath));
5471
+ },
5472
+ /**
5473
+ *
5474
+ * @summary Update AI Search public access and rate limit settings
5475
+ * @param {string} organisation
5476
+ * @param {string} project
5477
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
5478
+ * @param {*} [options] Override http request option.
5479
+ * @throws {RequiredError}
5480
+ */
5481
+ aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
5482
+ return localVarFp.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(axios, basePath));
5483
+ },
5484
+ /**
5485
+ *
5486
+ * @summary Get usage statistics for the AI Search site
5487
+ * @param {string} organisation
5488
+ * @param {string} project
5489
+ * @param {string} [range]
5490
+ * @param {*} [options] Override http request option.
5491
+ * @throws {RequiredError}
5492
+ */
5493
+ aiSearchUsage(organisation, project, range, options) {
5494
+ return localVarFp.aiSearchUsage(organisation, project, range, options).then((request) => request(axios, basePath));
5495
+ },
5496
+ };
5497
+ };
5498
+ /**
5499
+ * AISearchApi - object-oriented interface
5500
+ * @export
5501
+ * @class AISearchApi
5502
+ * @extends {BaseAPI}
5503
+ */
5504
+ export class AISearchApi extends BaseAPI {
5505
+ /**
5506
+ *
5507
+ * @summary RAG chat with AI Search content
5508
+ * @param {string} organisation
5509
+ * @param {string} project
5510
+ * @param {AiSearchChatRequest} aiSearchChatRequest
5511
+ * @param {*} [options] Override http request option.
5512
+ * @throws {RequiredError}
5513
+ * @memberof AISearchApi
5514
+ */
5515
+ aiSearchChat(organisation, project, aiSearchChatRequest, options) {
5516
+ return AISearchApiFp(this.configuration).aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(this.axios, this.basePath));
5517
+ }
5518
+ /**
5519
+ *
5520
+ * @summary Delete pages by URLs or patterns
5521
+ * @param {string} organisation
5522
+ * @param {string} project
5523
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
5524
+ * @param {*} [options] Override http request option.
5525
+ * @throws {RequiredError}
5526
+ * @memberof AISearchApi
5527
+ */
5528
+ aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options) {
5529
+ return AISearchApiFp(this.configuration).aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(this.axios, this.basePath));
5530
+ }
5531
+ /**
5532
+ *
5533
+ * @summary Disable AI Search for a project
5534
+ * @param {string} organisation
5535
+ * @param {string} project
5536
+ * @param {*} [options] Override http request option.
5537
+ * @throws {RequiredError}
5538
+ * @memberof AISearchApi
5539
+ */
5540
+ aiSearchDisable(organisation, project, options) {
5541
+ return AISearchApiFp(this.configuration).aiSearchDisable(organisation, project, options).then((request) => request(this.axios, this.basePath));
5542
+ }
5543
+ /**
5544
+ *
5545
+ * @summary Enable AI Search for a project
5546
+ * @param {string} organisation
5547
+ * @param {string} project
5548
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
5549
+ * @param {*} [options] Override http request option.
5550
+ * @throws {RequiredError}
5551
+ * @memberof AISearchApi
5552
+ */
5553
+ aiSearchEnable(organisation, project, aiSearchEnableRequest, options) {
5554
+ return AISearchApiFp(this.configuration).aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(this.axios, this.basePath));
5555
+ }
5556
+ /**
5557
+ *
5558
+ * @summary Get AI Search ingest job status
5559
+ * @param {string} organisation
5560
+ * @param {string} project
5561
+ * @param {string} jobId
5562
+ * @param {*} [options] Override http request option.
5563
+ * @throws {RequiredError}
5564
+ * @memberof AISearchApi
5565
+ */
5566
+ aiSearchGetCrawl(organisation, project, jobId, options) {
5567
+ return AISearchApiFp(this.configuration).aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(this.axios, this.basePath));
5568
+ }
5569
+ /**
5570
+ *
5571
+ * @summary Get per-page ingest results for a crawl job
5572
+ * @param {string} organisation
5573
+ * @param {string} project
5574
+ * @param {string} jobId
5575
+ * @param {number} [limit]
5576
+ * @param {number} [statusCode]
5577
+ * @param {string} [processingStatus]
5578
+ * @param {*} [options] Override http request option.
5579
+ * @throws {RequiredError}
5580
+ * @memberof AISearchApi
5581
+ */
5582
+ aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options) {
5583
+ return AISearchApiFp(this.configuration).aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(this.axios, this.basePath));
5584
+ }
5585
+ /**
5586
+ *
5587
+ * @summary Get AI Search public access and rate limit settings
5588
+ * @param {string} organisation
5589
+ * @param {string} project
5590
+ * @param {*} [options] Override http request option.
5591
+ * @throws {RequiredError}
5592
+ * @memberof AISearchApi
5593
+ */
5594
+ aiSearchGetSettings(organisation, project, options) {
5595
+ return AISearchApiFp(this.configuration).aiSearchGetSettings(organisation, project, options).then((request) => request(this.axios, this.basePath));
5596
+ }
5597
+ /**
5598
+ *
5599
+ * @summary Ingest pages into the AI Search index
5600
+ * @param {string} organisation
5601
+ * @param {string} project
5602
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
5603
+ * @param {*} [options] Override http request option.
5604
+ * @throws {RequiredError}
5605
+ * @memberof AISearchApi
5606
+ */
5607
+ aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options) {
5608
+ return AISearchApiFp(this.configuration).aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(this.axios, this.basePath));
5609
+ }
5610
+ /**
5611
+ *
5612
+ * @summary List AI Search ingest jobs
5613
+ * @param {string} organisation
5614
+ * @param {string} project
5615
+ * @param {number} [limit]
5616
+ * @param {*} [options] Override http request option.
5617
+ * @throws {RequiredError}
5618
+ * @memberof AISearchApi
5619
+ */
5620
+ aiSearchListCrawls(organisation, project, limit, options) {
5621
+ return AISearchApiFp(this.configuration).aiSearchListCrawls(organisation, project, limit, options).then((request) => request(this.axios, this.basePath));
5622
+ }
5623
+ /**
5624
+ *
5625
+ * @summary List indexed pages with cursor pagination
5626
+ * @param {string} organisation
5627
+ * @param {string} project
5628
+ * @param {number} [limit]
5629
+ * @param {string} [cursor]
5630
+ * @param {string} [search]
5631
+ * @param {*} [options] Override http request option.
5632
+ * @throws {RequiredError}
5633
+ * @memberof AISearchApi
5634
+ */
5635
+ aiSearchListPages(organisation, project, limit, cursor, search, options) {
5636
+ return AISearchApiFp(this.configuration).aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(this.axios, this.basePath));
5637
+ }
5638
+ /**
5639
+ *
5640
+ * @summary Purge the entire AI Search index
5641
+ * @param {string} organisation
5642
+ * @param {string} project
5643
+ * @param {*} [options] Override http request option.
5644
+ * @throws {RequiredError}
5645
+ * @memberof AISearchApi
4036
5646
  */
4037
- deleteOrchestration(organisation, orchestrationId, options) {
4038
- return AIOrchestrationsApiFp(this.configuration).deleteOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
5647
+ aiSearchPurgeIndex(organisation, project, options) {
5648
+ return AISearchApiFp(this.configuration).aiSearchPurgeIndex(organisation, project, options).then((request) => request(this.axios, this.basePath));
4039
5649
  }
4040
5650
  /**
4041
- * Get orchestration details including status and progress. * * **Progress Tracking:** * - `total`: Total items to process * - `completed`: Successfully processed * - `failed`: Failed processing * - `pending`: Awaiting processing
4042
- * @summary Get Durable Orchestration
4043
- * @param {string} organisation The organisation machine name
4044
- * @param {string} orchestrationId Orchestration identifier
5651
+ *
5652
+ * @summary Semantic search across the AI Search index
5653
+ * @param {string} organisation
5654
+ * @param {string} project
5655
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
4045
5656
  * @param {*} [options] Override http request option.
4046
5657
  * @throws {RequiredError}
4047
- * @memberof AIOrchestrationsApi
5658
+ * @memberof AISearchApi
4048
5659
  */
4049
- getOrchestration(organisation, orchestrationId, options) {
4050
- return AIOrchestrationsApiFp(this.configuration).getOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
5660
+ aiSearchSearch(organisation, project, aiSearchSearchRequest, options) {
5661
+ return AISearchApiFp(this.configuration).aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(this.axios, this.basePath));
4051
5662
  }
4052
5663
  /**
4053
- * Get history of batches processed by this orchestration. Returns paginated batch records with status and item counts.
4054
- * @summary List Orchestration Batches
4055
- * @param {string} organisation The organisation machine name
4056
- * @param {string} orchestrationId Orchestration identifier
4057
- * @param {number} [limit] Maximum number of batches to return
4058
- * @param {string} [cursor] Pagination cursor from previous response
5664
+ *
5665
+ * @summary Get AI Search status for a project
5666
+ * @param {string} organisation
5667
+ * @param {string} project
4059
5668
  * @param {*} [options] Override http request option.
4060
5669
  * @throws {RequiredError}
4061
- * @memberof AIOrchestrationsApi
5670
+ * @memberof AISearchApi
4062
5671
  */
4063
- listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options) {
4064
- return AIOrchestrationsApiFp(this.configuration).listOrchestrationBatches(organisation, orchestrationId, limit, cursor, options).then((request) => request(this.axios, this.basePath));
5672
+ aiSearchStatus(organisation, project, options) {
5673
+ return AISearchApiFp(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
4065
5674
  }
4066
5675
  /**
4067
- * List durable orchestrations for an organization with optional filtering. * * **Note:** This is different from `/tools/orchestrations` which handles async tool execution * polling. These durable orchestrations are for long-running batch processing loops. * * **Filter Options:** * - `status`: Filter by orchestration status * - `limit`: Max results (default 20, max 100) * - `cursor`: Pagination cursor
4068
- * @summary List Durable Orchestrations
4069
- * @param {string} organisation The organisation machine name
4070
- * @param {ListOrchestrationsStatusEnum} [status] Filter by orchestration status
4071
- * @param {number} [limit] Maximum number of results
4072
- * @param {string} [cursor] Pagination cursor from previous response
5676
+ *
5677
+ * @summary Get the most popular AI Search queries
5678
+ * @param {string} organisation
5679
+ * @param {string} project
5680
+ * @param {string} [range]
5681
+ * @param {number} [limit]
4073
5682
  * @param {*} [options] Override http request option.
4074
5683
  * @throws {RequiredError}
4075
- * @memberof AIOrchestrationsApi
5684
+ * @memberof AISearchApi
4076
5685
  */
4077
- listOrchestrations(organisation, status, limit, cursor, options) {
4078
- return AIOrchestrationsApiFp(this.configuration).listOrchestrations(organisation, status, limit, cursor, options).then((request) => request(this.axios, this.basePath));
5686
+ aiSearchTopQueries(organisation, project, range, limit, options) {
5687
+ return AISearchApiFp(this.configuration).aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(this.axios, this.basePath));
4079
5688
  }
4080
5689
  /**
4081
- * Pause a running orchestration. The current batch will complete, but no new batches will start. Can be resumed later.
4082
- * @summary Pause Durable Orchestration
4083
- * @param {string} organisation The organisation machine name
4084
- * @param {string} orchestrationId Orchestration identifier
5690
+ *
5691
+ * @summary Trigger a crawler run that ingests into AI Search
5692
+ * @param {string} organisation
5693
+ * @param {string} project
5694
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
4085
5695
  * @param {*} [options] Override http request option.
4086
5696
  * @throws {RequiredError}
4087
- * @memberof AIOrchestrationsApi
5697
+ * @memberof AISearchApi
4088
5698
  */
4089
- pauseOrchestration(organisation, orchestrationId, options) {
4090
- return AIOrchestrationsApiFp(this.configuration).pauseOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
5699
+ aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options) {
5700
+ return AISearchApiFp(this.configuration).aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(this.axios, this.basePath));
4091
5701
  }
4092
5702
  /**
4093
- * Resume a paused orchestration. Processing continues from where it left off.
4094
- * @summary Resume Durable Orchestration
4095
- * @param {string} organisation The organisation machine name
4096
- * @param {string} orchestrationId Orchestration identifier
5703
+ *
5704
+ * @summary Update AI Search public access and rate limit settings
5705
+ * @param {string} organisation
5706
+ * @param {string} project
5707
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
4097
5708
  * @param {*} [options] Override http request option.
4098
5709
  * @throws {RequiredError}
4099
- * @memberof AIOrchestrationsApi
5710
+ * @memberof AISearchApi
4100
5711
  */
4101
- resumeOrchestration(organisation, orchestrationId, options) {
4102
- return AIOrchestrationsApiFp(this.configuration).resumeOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
5712
+ aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options) {
5713
+ return AISearchApiFp(this.configuration).aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(this.axios, this.basePath));
4103
5714
  }
4104
5715
  /**
4105
- * Start a pending orchestration. Only works on orchestrations created with `autoStart: false`.
4106
- * @summary Start Durable Orchestration
4107
- * @param {string} organisation The organisation machine name
4108
- * @param {string} orchestrationId Orchestration identifier
5716
+ *
5717
+ * @summary Get usage statistics for the AI Search site
5718
+ * @param {string} organisation
5719
+ * @param {string} project
5720
+ * @param {string} [range]
4109
5721
  * @param {*} [options] Override http request option.
4110
5722
  * @throws {RequiredError}
4111
- * @memberof AIOrchestrationsApi
5723
+ * @memberof AISearchApi
4112
5724
  */
4113
- startOrchestration(organisation, orchestrationId, options) {
4114
- return AIOrchestrationsApiFp(this.configuration).startOrchestration(organisation, orchestrationId, options).then((request) => request(this.axios, this.basePath));
5725
+ aiSearchUsage(organisation, project, range, options) {
5726
+ return AISearchApiFp(this.configuration).aiSearchUsage(organisation, project, range, options).then((request) => request(this.axios, this.basePath));
4115
5727
  }
4116
5728
  }
4117
- /**
4118
- * @export
4119
- */
4120
- export const ListOrchestrationsStatusEnum = {
4121
- Pending: 'pending',
4122
- Running: 'running',
4123
- Paused: 'paused',
4124
- Completed: 'completed',
4125
- Failed: 'failed',
4126
- Cancelled: 'cancelled'
4127
- };
4128
5729
  /**
4129
5730
  * AISessionsApi - axios parameter creator
4130
5731
  * @export
@@ -5553,7 +7154,7 @@ export class AISkillsApi extends BaseAPI {
5553
7154
  export const AISlackBotsApiAxiosParamCreator = function (configuration) {
5554
7155
  return {
5555
7156
  /**
5556
- * Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
7157
+ * 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
7158
  * @summary Create Slack Bot
5558
7159
  * @param {string} organisation The organisation ID
5559
7160
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -5590,7 +7191,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
5590
7191
  };
5591
7192
  }),
5592
7193
  /**
5593
- * Permanently deletes a Slack bot and disconnects it from the workspace.
7194
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
5594
7195
  * @summary Delete Slack Bot
5595
7196
  * @param {string} organisation The organisation ID
5596
7197
  * @param {string} botId The Slack bot ID
@@ -5626,7 +7227,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
5626
7227
  };
5627
7228
  }),
5628
7229
  /**
5629
- * Retrieves details for a specific Slack bot including its configuration and connection status.
7230
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
5630
7231
  * @summary Get Slack Bot
5631
7232
  * @param {string} organisation The organisation ID
5632
7233
  * @param {string} botId The Slack bot ID
@@ -5662,7 +7263,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
5662
7263
  };
5663
7264
  }),
5664
7265
  /**
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.
7266
+ * 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
7267
  * @summary List Slack Bots
5667
7268
  * @param {string} organisation The organisation ID
5668
7269
  * @param {*} [options] Override http request option.
@@ -5774,7 +7375,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
5774
7375
  };
5775
7376
  }),
5776
7377
  /**
5777
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
7378
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
5778
7379
  * @summary Update Slack Bot
5779
7380
  * @param {string} organisation The organisation ID
5780
7381
  * @param {string} botId The Slack bot ID
@@ -5824,7 +7425,7 @@ export const AISlackBotsApiFp = function (configuration) {
5824
7425
  const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration);
5825
7426
  return {
5826
7427
  /**
5827
- * Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
7428
+ * 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
7429
  * @summary Create Slack Bot
5829
7430
  * @param {string} organisation The organisation ID
5830
7431
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -5841,7 +7442,7 @@ export const AISlackBotsApiFp = function (configuration) {
5841
7442
  });
5842
7443
  },
5843
7444
  /**
5844
- * Permanently deletes a Slack bot and disconnects it from the workspace.
7445
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
5845
7446
  * @summary Delete Slack Bot
5846
7447
  * @param {string} organisation The organisation ID
5847
7448
  * @param {string} botId The Slack bot ID
@@ -5858,7 +7459,7 @@ export const AISlackBotsApiFp = function (configuration) {
5858
7459
  });
5859
7460
  },
5860
7461
  /**
5861
- * Retrieves details for a specific Slack bot including its configuration and connection status.
7462
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
5862
7463
  * @summary Get Slack Bot
5863
7464
  * @param {string} organisation The organisation ID
5864
7465
  * @param {string} botId The Slack bot ID
@@ -5875,7 +7476,7 @@ export const AISlackBotsApiFp = function (configuration) {
5875
7476
  });
5876
7477
  },
5877
7478
  /**
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.
7479
+ * 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
7480
  * @summary List Slack Bots
5880
7481
  * @param {string} organisation The organisation ID
5881
7482
  * @param {*} [options] Override http request option.
@@ -5927,7 +7528,7 @@ export const AISlackBotsApiFp = function (configuration) {
5927
7528
  });
5928
7529
  },
5929
7530
  /**
5930
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
7531
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
5931
7532
  * @summary Update Slack Bot
5932
7533
  * @param {string} organisation The organisation ID
5933
7534
  * @param {string} botId The Slack bot ID
@@ -5954,7 +7555,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
5954
7555
  const localVarFp = AISlackBotsApiFp(configuration);
5955
7556
  return {
5956
7557
  /**
5957
- * Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
7558
+ * 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
7559
  * @summary Create Slack Bot
5959
7560
  * @param {string} organisation The organisation ID
5960
7561
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -5965,7 +7566,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
5965
7566
  return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
5966
7567
  },
5967
7568
  /**
5968
- * Permanently deletes a Slack bot and disconnects it from the workspace.
7569
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
5969
7570
  * @summary Delete Slack Bot
5970
7571
  * @param {string} organisation The organisation ID
5971
7572
  * @param {string} botId The Slack bot ID
@@ -5976,7 +7577,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
5976
7577
  return localVarFp.deleteSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
5977
7578
  },
5978
7579
  /**
5979
- * Retrieves details for a specific Slack bot including its configuration and connection status.
7580
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
5980
7581
  * @summary Get Slack Bot
5981
7582
  * @param {string} organisation The organisation ID
5982
7583
  * @param {string} botId The Slack bot ID
@@ -5987,7 +7588,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
5987
7588
  return localVarFp.getSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
5988
7589
  },
5989
7590
  /**
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.
7591
+ * 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
7592
  * @summary List Slack Bots
5992
7593
  * @param {string} organisation The organisation ID
5993
7594
  * @param {*} [options] Override http request option.
@@ -6021,7 +7622,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
6021
7622
  return localVarFp.searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(axios, basePath));
6022
7623
  },
6023
7624
  /**
6024
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
7625
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
6025
7626
  * @summary Update Slack Bot
6026
7627
  * @param {string} organisation The organisation ID
6027
7628
  * @param {string} botId The Slack bot ID
@@ -6042,7 +7643,7 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
6042
7643
  */
6043
7644
  export class AISlackBotsApi extends BaseAPI {
6044
7645
  /**
6045
- * Creates a new Slack bot backed by an AI agent. The bot must be connected to a Slack workspace via OAuth before it can receive events. * * **Setup Types:** * - `quant`: Quant-managed Slack app — uses shared OAuth credentials * - `byo`: Bring Your Own — customer provides their own Slack app credentials
7646
+ * 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
7647
  * @summary Create Slack Bot
6047
7648
  * @param {string} organisation The organisation ID
6048
7649
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -6054,7 +7655,7 @@ export class AISlackBotsApi extends BaseAPI {
6054
7655
  return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
6055
7656
  }
6056
7657
  /**
6057
- * Permanently deletes a Slack bot and disconnects it from the workspace.
7658
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
6058
7659
  * @summary Delete Slack Bot
6059
7660
  * @param {string} organisation The organisation ID
6060
7661
  * @param {string} botId The Slack bot ID
@@ -6066,7 +7667,7 @@ export class AISlackBotsApi extends BaseAPI {
6066
7667
  return AISlackBotsApiFp(this.configuration).deleteSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
6067
7668
  }
6068
7669
  /**
6069
- * Retrieves details for a specific Slack bot including its configuration and connection status.
7670
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
6070
7671
  * @summary Get Slack Bot
6071
7672
  * @param {string} organisation The organisation ID
6072
7673
  * @param {string} botId The Slack bot ID
@@ -6078,7 +7679,7 @@ export class AISlackBotsApi extends BaseAPI {
6078
7679
  return AISlackBotsApiFp(this.configuration).getSlackBot(organisation, botId, options).then((request) => request(this.axios, this.basePath));
6079
7680
  }
6080
7681
  /**
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.
7682
+ * 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
7683
  * @summary List Slack Bots
6083
7684
  * @param {string} organisation The organisation ID
6084
7685
  * @param {*} [options] Override http request option.
@@ -6115,7 +7716,7 @@ export class AISlackBotsApi extends BaseAPI {
6115
7716
  return AISlackBotsApiFp(this.configuration).searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(this.axios, this.basePath));
6116
7717
  }
6117
7718
  /**
6118
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
7719
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
6119
7720
  * @summary Update Slack Bot
6120
7721
  * @param {string} organisation The organisation ID
6121
7722
  * @param {string} botId The Slack bot ID
@@ -15223,7 +16824,226 @@ export const PurgeApiAxiosParamCreator = function (configuration) {
15223
16824
  setSearchParams(localVarUrlObj, localVarQueryParameter);
15224
16825
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
15225
16826
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
15226
- localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration);
16827
+ localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration);
16828
+ return {
16829
+ url: toPathString(localVarUrlObj),
16830
+ options: localVarRequestOptions,
16831
+ };
16832
+ }),
16833
+ };
16834
+ };
16835
+ /**
16836
+ * PurgeApi - functional programming interface
16837
+ * @export
16838
+ */
16839
+ export const PurgeApiFp = function (configuration) {
16840
+ const localVarAxiosParamCreator = PurgeApiAxiosParamCreator(configuration);
16841
+ return {
16842
+ /**
16843
+ *
16844
+ * @summary Purge cache via URL or cache keys
16845
+ * @param {string} organization Organization identifier
16846
+ * @param {string} project Project identifier
16847
+ * @param {PurgeCreateRequest} purgeCreateRequest
16848
+ * @param {*} [options] Override http request option.
16849
+ * @throws {RequiredError}
16850
+ */
16851
+ purgeCreate(organization, project, purgeCreateRequest, options) {
16852
+ return __awaiter(this, void 0, void 0, function* () {
16853
+ var _a, _b, _c;
16854
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
16855
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16856
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PurgeApi.purgeCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16857
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16858
+ });
16859
+ },
16860
+ };
16861
+ };
16862
+ /**
16863
+ * PurgeApi - factory interface
16864
+ * @export
16865
+ */
16866
+ export const PurgeApiFactory = function (configuration, basePath, axios) {
16867
+ const localVarFp = PurgeApiFp(configuration);
16868
+ return {
16869
+ /**
16870
+ *
16871
+ * @summary Purge cache via URL or cache keys
16872
+ * @param {string} organization Organization identifier
16873
+ * @param {string} project Project identifier
16874
+ * @param {PurgeCreateRequest} purgeCreateRequest
16875
+ * @param {*} [options] Override http request option.
16876
+ * @throws {RequiredError}
16877
+ */
16878
+ purgeCreate(organization, project, purgeCreateRequest, options) {
16879
+ return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
16880
+ },
16881
+ };
16882
+ };
16883
+ /**
16884
+ * PurgeApi - object-oriented interface
16885
+ * @export
16886
+ * @class PurgeApi
16887
+ * @extends {BaseAPI}
16888
+ */
16889
+ export class PurgeApi extends BaseAPI {
16890
+ /**
16891
+ *
16892
+ * @summary Purge cache via URL or cache keys
16893
+ * @param {string} organization Organization identifier
16894
+ * @param {string} project Project identifier
16895
+ * @param {PurgeCreateRequest} purgeCreateRequest
16896
+ * @param {*} [options] Override http request option.
16897
+ * @throws {RequiredError}
16898
+ * @memberof PurgeApi
16899
+ */
16900
+ purgeCreate(organization, project, purgeCreateRequest, options) {
16901
+ return PurgeApiFp(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
16902
+ }
16903
+ }
16904
+ /**
16905
+ * RestoreManagementApi - axios parameter creator
16906
+ * @export
16907
+ */
16908
+ export const RestoreManagementApiAxiosParamCreator = function (configuration) {
16909
+ return {
16910
+ /**
16911
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
16912
+ * @summary Get the status of a restore operation
16913
+ * @param {string} organisation The organisation ID
16914
+ * @param {string} application The application ID
16915
+ * @param {string} environment The environment ID
16916
+ * @param {string} restoreId The restore operation ID
16917
+ * @param {*} [options] Override http request option.
16918
+ * @throws {RequiredError}
16919
+ */
16920
+ 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 = {}) {
16921
+ // verify required parameter 'organisation' is not null or undefined
16922
+ assertParamExists('getRestoreStatus', 'organisation', organisation);
16923
+ // verify required parameter 'application' is not null or undefined
16924
+ assertParamExists('getRestoreStatus', 'application', application);
16925
+ // verify required parameter 'environment' is not null or undefined
16926
+ assertParamExists('getRestoreStatus', 'environment', environment);
16927
+ // verify required parameter 'restoreId' is not null or undefined
16928
+ assertParamExists('getRestoreStatus', 'restoreId', restoreId);
16929
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}`
16930
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
16931
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
16932
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
16933
+ .replace(`{${"restoreId"}}`, encodeURIComponent(String(restoreId)));
16934
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16935
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16936
+ let baseOptions;
16937
+ if (configuration) {
16938
+ baseOptions = configuration.baseOptions;
16939
+ }
16940
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16941
+ const localVarHeaderParameter = {};
16942
+ const localVarQueryParameter = {};
16943
+ // authentication BearerAuth required
16944
+ // http bearer authentication required
16945
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16946
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16947
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16948
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16949
+ return {
16950
+ url: toPathString(localVarUrlObj),
16951
+ options: localVarRequestOptions,
16952
+ };
16953
+ }),
16954
+ /**
16955
+ * 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.
16956
+ * @summary Restore a database backup to a target environment
16957
+ * @param {string} organisation The organisation ID
16958
+ * @param {string} application The application ID
16959
+ * @param {string} environment The TARGET environment ID to restore INTO
16960
+ * @param {string} backupId The backup ID to restore from
16961
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
16962
+ * @param {*} [options] Override http request option.
16963
+ * @throws {RequiredError}
16964
+ */
16965
+ 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 = {}) {
16966
+ // verify required parameter 'organisation' is not null or undefined
16967
+ assertParamExists('restoreDatabase', 'organisation', organisation);
16968
+ // verify required parameter 'application' is not null or undefined
16969
+ assertParamExists('restoreDatabase', 'application', application);
16970
+ // verify required parameter 'environment' is not null or undefined
16971
+ assertParamExists('restoreDatabase', 'environment', environment);
16972
+ // verify required parameter 'backupId' is not null or undefined
16973
+ assertParamExists('restoreDatabase', 'backupId', backupId);
16974
+ // verify required parameter 'restoreDatabaseRequest' is not null or undefined
16975
+ assertParamExists('restoreDatabase', 'restoreDatabaseRequest', restoreDatabaseRequest);
16976
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database`
16977
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
16978
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
16979
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
16980
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
16981
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16982
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16983
+ let baseOptions;
16984
+ if (configuration) {
16985
+ baseOptions = configuration.baseOptions;
16986
+ }
16987
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16988
+ const localVarHeaderParameter = {};
16989
+ const localVarQueryParameter = {};
16990
+ // authentication BearerAuth required
16991
+ // http bearer authentication required
16992
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
16993
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16994
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16995
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16996
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16997
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreDatabaseRequest, localVarRequestOptions, configuration);
16998
+ return {
16999
+ url: toPathString(localVarUrlObj),
17000
+ options: localVarRequestOptions,
17001
+ };
17002
+ }),
17003
+ /**
17004
+ * 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.
17005
+ * @summary Restore a filesystem backup to a target environment
17006
+ * @param {string} organisation The organisation ID
17007
+ * @param {string} application The application ID
17008
+ * @param {string} environment The TARGET environment ID to restore INTO
17009
+ * @param {string} backupId The backup ID to restore from
17010
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
17011
+ * @param {*} [options] Override http request option.
17012
+ * @throws {RequiredError}
17013
+ */
17014
+ 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 = {}) {
17015
+ // verify required parameter 'organisation' is not null or undefined
17016
+ assertParamExists('restoreFilesystem', 'organisation', organisation);
17017
+ // verify required parameter 'application' is not null or undefined
17018
+ assertParamExists('restoreFilesystem', 'application', application);
17019
+ // verify required parameter 'environment' is not null or undefined
17020
+ assertParamExists('restoreFilesystem', 'environment', environment);
17021
+ // verify required parameter 'backupId' is not null or undefined
17022
+ assertParamExists('restoreFilesystem', 'backupId', backupId);
17023
+ // verify required parameter 'restoreFilesystemRequest' is not null or undefined
17024
+ assertParamExists('restoreFilesystem', 'restoreFilesystemRequest', restoreFilesystemRequest);
17025
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem`
17026
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
17027
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
17028
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
17029
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
17030
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17031
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17032
+ let baseOptions;
17033
+ if (configuration) {
17034
+ baseOptions = configuration.baseOptions;
17035
+ }
17036
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
17037
+ const localVarHeaderParameter = {};
17038
+ const localVarQueryParameter = {};
17039
+ // authentication BearerAuth required
17040
+ // http bearer authentication required
17041
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
17042
+ localVarHeaderParameter['Content-Type'] = 'application/json';
17043
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17044
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17045
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
17046
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreFilesystemRequest, localVarRequestOptions, configuration);
15227
17047
  return {
15228
17048
  url: toPathString(localVarUrlObj),
15229
17049
  options: localVarRequestOptions,
@@ -15232,72 +17052,173 @@ export const PurgeApiAxiosParamCreator = function (configuration) {
15232
17052
  };
15233
17053
  };
15234
17054
  /**
15235
- * PurgeApi - functional programming interface
17055
+ * RestoreManagementApi - functional programming interface
15236
17056
  * @export
15237
17057
  */
15238
- export const PurgeApiFp = function (configuration) {
15239
- const localVarAxiosParamCreator = PurgeApiAxiosParamCreator(configuration);
17058
+ export const RestoreManagementApiFp = function (configuration) {
17059
+ const localVarAxiosParamCreator = RestoreManagementApiAxiosParamCreator(configuration);
15240
17060
  return {
15241
17061
  /**
15242
- *
15243
- * @summary Purge cache via URL or cache keys
15244
- * @param {string} organization Organization identifier
15245
- * @param {string} project Project identifier
15246
- * @param {PurgeCreateRequest} purgeCreateRequest
17062
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
17063
+ * @summary Get the status of a restore operation
17064
+ * @param {string} organisation The organisation ID
17065
+ * @param {string} application The application ID
17066
+ * @param {string} environment The environment ID
17067
+ * @param {string} restoreId The restore operation ID
15247
17068
  * @param {*} [options] Override http request option.
15248
17069
  * @throws {RequiredError}
15249
17070
  */
15250
- purgeCreate(organization, project, purgeCreateRequest, options) {
17071
+ getRestoreStatus(organisation, application, environment, restoreId, options) {
15251
17072
  return __awaiter(this, void 0, void 0, function* () {
15252
17073
  var _a, _b, _c;
15253
- const localVarAxiosArgs = yield localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
17074
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getRestoreStatus(organisation, application, environment, restoreId, options);
15254
17075
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
15255
- const localVarOperationServerBasePath = (_c = (_b = operationServerMap['PurgeApi.purgeCreate']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17076
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.getRestoreStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17077
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17078
+ });
17079
+ },
17080
+ /**
17081
+ * 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.
17082
+ * @summary Restore a database backup to a target environment
17083
+ * @param {string} organisation The organisation ID
17084
+ * @param {string} application The application ID
17085
+ * @param {string} environment The TARGET environment ID to restore INTO
17086
+ * @param {string} backupId The backup ID to restore from
17087
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
17088
+ * @param {*} [options] Override http request option.
17089
+ * @throws {RequiredError}
17090
+ */
17091
+ restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
17092
+ return __awaiter(this, void 0, void 0, function* () {
17093
+ var _a, _b, _c;
17094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options);
17095
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17096
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.restoreDatabase']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
17097
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17098
+ });
17099
+ },
17100
+ /**
17101
+ * 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.
17102
+ * @summary Restore a filesystem backup to a target environment
17103
+ * @param {string} organisation The organisation ID
17104
+ * @param {string} application The application ID
17105
+ * @param {string} environment The TARGET environment ID to restore INTO
17106
+ * @param {string} backupId The backup ID to restore from
17107
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
17108
+ * @param {*} [options] Override http request option.
17109
+ * @throws {RequiredError}
17110
+ */
17111
+ restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
17112
+ return __awaiter(this, void 0, void 0, function* () {
17113
+ var _a, _b, _c;
17114
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options);
17115
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
17116
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RestoreManagementApi.restoreFilesystem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
15256
17117
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
15257
17118
  });
15258
17119
  },
15259
17120
  };
15260
17121
  };
15261
17122
  /**
15262
- * PurgeApi - factory interface
17123
+ * RestoreManagementApi - factory interface
15263
17124
  * @export
15264
17125
  */
15265
- export const PurgeApiFactory = function (configuration, basePath, axios) {
15266
- const localVarFp = PurgeApiFp(configuration);
17126
+ export const RestoreManagementApiFactory = function (configuration, basePath, axios) {
17127
+ const localVarFp = RestoreManagementApiFp(configuration);
15267
17128
  return {
15268
17129
  /**
15269
- *
15270
- * @summary Purge cache via URL or cache keys
15271
- * @param {string} organization Organization identifier
15272
- * @param {string} project Project identifier
15273
- * @param {PurgeCreateRequest} purgeCreateRequest
17130
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
17131
+ * @summary Get the status of a restore operation
17132
+ * @param {string} organisation The organisation ID
17133
+ * @param {string} application The application ID
17134
+ * @param {string} environment The environment ID
17135
+ * @param {string} restoreId The restore operation ID
15274
17136
  * @param {*} [options] Override http request option.
15275
17137
  * @throws {RequiredError}
15276
17138
  */
15277
- purgeCreate(organization, project, purgeCreateRequest, options) {
15278
- return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
17139
+ getRestoreStatus(organisation, application, environment, restoreId, options) {
17140
+ return localVarFp.getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(axios, basePath));
17141
+ },
17142
+ /**
17143
+ * 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.
17144
+ * @summary Restore a database backup to a target environment
17145
+ * @param {string} organisation The organisation ID
17146
+ * @param {string} application The application ID
17147
+ * @param {string} environment The TARGET environment ID to restore INTO
17148
+ * @param {string} backupId The backup ID to restore from
17149
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
17150
+ * @param {*} [options] Override http request option.
17151
+ * @throws {RequiredError}
17152
+ */
17153
+ restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
17154
+ return localVarFp.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(axios, basePath));
17155
+ },
17156
+ /**
17157
+ * 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.
17158
+ * @summary Restore a filesystem backup to a target environment
17159
+ * @param {string} organisation The organisation ID
17160
+ * @param {string} application The application ID
17161
+ * @param {string} environment The TARGET environment ID to restore INTO
17162
+ * @param {string} backupId The backup ID to restore from
17163
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
17164
+ * @param {*} [options] Override http request option.
17165
+ * @throws {RequiredError}
17166
+ */
17167
+ restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
17168
+ return localVarFp.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(axios, basePath));
15279
17169
  },
15280
17170
  };
15281
17171
  };
15282
17172
  /**
15283
- * PurgeApi - object-oriented interface
17173
+ * RestoreManagementApi - object-oriented interface
15284
17174
  * @export
15285
- * @class PurgeApi
17175
+ * @class RestoreManagementApi
15286
17176
  * @extends {BaseAPI}
15287
17177
  */
15288
- export class PurgeApi extends BaseAPI {
17178
+ export class RestoreManagementApi extends BaseAPI {
15289
17179
  /**
15290
- *
15291
- * @summary Purge cache via URL or cache keys
15292
- * @param {string} organization Organization identifier
15293
- * @param {string} project Project identifier
15294
- * @param {PurgeCreateRequest} purgeCreateRequest
17180
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
17181
+ * @summary Get the status of a restore operation
17182
+ * @param {string} organisation The organisation ID
17183
+ * @param {string} application The application ID
17184
+ * @param {string} environment The environment ID
17185
+ * @param {string} restoreId The restore operation ID
15295
17186
  * @param {*} [options] Override http request option.
15296
17187
  * @throws {RequiredError}
15297
- * @memberof PurgeApi
17188
+ * @memberof RestoreManagementApi
15298
17189
  */
15299
- purgeCreate(organization, project, purgeCreateRequest, options) {
15300
- return PurgeApiFp(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
17190
+ getRestoreStatus(organisation, application, environment, restoreId, options) {
17191
+ return RestoreManagementApiFp(this.configuration).getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(this.axios, this.basePath));
17192
+ }
17193
+ /**
17194
+ * 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.
17195
+ * @summary Restore a database backup to a target environment
17196
+ * @param {string} organisation The organisation ID
17197
+ * @param {string} application The application ID
17198
+ * @param {string} environment The TARGET environment ID to restore INTO
17199
+ * @param {string} backupId The backup ID to restore from
17200
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
17201
+ * @param {*} [options] Override http request option.
17202
+ * @throws {RequiredError}
17203
+ * @memberof RestoreManagementApi
17204
+ */
17205
+ restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options) {
17206
+ return RestoreManagementApiFp(this.configuration).restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
17207
+ }
17208
+ /**
17209
+ * 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.
17210
+ * @summary Restore a filesystem backup to a target environment
17211
+ * @param {string} organisation The organisation ID
17212
+ * @param {string} application The application ID
17213
+ * @param {string} environment The TARGET environment ID to restore INTO
17214
+ * @param {string} backupId The backup ID to restore from
17215
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
17216
+ * @param {*} [options] Override http request option.
17217
+ * @throws {RequiredError}
17218
+ * @memberof RestoreManagementApi
17219
+ */
17220
+ restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options) {
17221
+ return RestoreManagementApiFp(this.configuration).restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(this.axios, this.basePath));
15301
17222
  }
15302
17223
  }
15303
17224
  /**
@@ -19211,29 +21132,27 @@ export class SSHAccessApi extends BaseAPI {
19211
21132
  export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19212
21133
  return {
19213
21134
  /**
19214
- *
19215
- * @summary Delete the scaling policy for an environment
19216
- * @param {string} organisation The organisation ID
19217
- * @param {string} application The application ID
19218
- * @param {string} environment The environment ID
19219
- * @param {string} policyName The policy name
21135
+ * 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.
21136
+ * @summary Delete Scaling Policy
21137
+ * @param {string} organisation
21138
+ * @param {string} application
21139
+ * @param {string} environment
21140
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
21141
+ * @param {string} [policyName] Optional. Delete by exact policy name.
19220
21142
  * @param {*} [options] Override http request option.
19221
21143
  * @throws {RequiredError}
19222
21144
  */
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 = {}) {
21145
+ 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
21146
  // verify required parameter 'organisation' is not null or undefined
19225
21147
  assertParamExists('deleteScalingPolicy', 'organisation', organisation);
19226
21148
  // verify required parameter 'application' is not null or undefined
19227
21149
  assertParamExists('deleteScalingPolicy', 'application', application);
19228
21150
  // verify required parameter 'environment' is not null or undefined
19229
21151
  assertParamExists('deleteScalingPolicy', 'environment', environment);
19230
- // verify required parameter 'policyName' is not null or undefined
19231
- assertParamExists('deleteScalingPolicy', 'policyName', policyName);
19232
- const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}`
21152
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
19233
21153
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
19234
21154
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
19235
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
19236
- .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
21155
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
19237
21156
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
19238
21157
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
19239
21158
  let baseOptions;
@@ -19246,6 +21165,12 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19246
21165
  // authentication BearerAuth required
19247
21166
  // http bearer authentication required
19248
21167
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
21168
+ if (metric !== undefined) {
21169
+ localVarQueryParameter['metric'] = metric;
21170
+ }
21171
+ if (policyName !== undefined) {
21172
+ localVarQueryParameter['policyName'] = policyName;
21173
+ }
19249
21174
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19250
21175
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19251
21176
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -19255,21 +21180,23 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19255
21180
  };
19256
21181
  }),
19257
21182
  /**
19258
- *
19259
- * @summary Get the scaling policies for an environment
19260
- * @param {string} organisation The organisation ID
19261
- * @param {string} application The application ID
19262
- * @param {string} environment The environment ID
21183
+ * 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).
21184
+ * @summary List Scaling Policies
21185
+ * @param {string} organisation
21186
+ * @param {string} application
21187
+ * @param {string} environment
21188
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
21189
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
19263
21190
  * @param {*} [options] Override http request option.
19264
21191
  * @throws {RequiredError}
19265
21192
  */
19266
- getScalingPolicies: (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 = {}) {
21193
+ 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
21194
  // verify required parameter 'organisation' is not null or undefined
19268
- assertParamExists('getScalingPolicies', 'organisation', organisation);
21195
+ assertParamExists('listScalingPolicies', 'organisation', organisation);
19269
21196
  // verify required parameter 'application' is not null or undefined
19270
- assertParamExists('getScalingPolicies', 'application', application);
21197
+ assertParamExists('listScalingPolicies', 'application', application);
19271
21198
  // verify required parameter 'environment' is not null or undefined
19272
- assertParamExists('getScalingPolicies', 'environment', environment);
21199
+ assertParamExists('listScalingPolicies', 'environment', environment);
19273
21200
  const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
19274
21201
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
19275
21202
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
@@ -19286,6 +21213,12 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19286
21213
  // authentication BearerAuth required
19287
21214
  // http bearer authentication required
19288
21215
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
21216
+ if (metric !== undefined) {
21217
+ localVarQueryParameter['metric'] = metric;
21218
+ }
21219
+ if (policyName !== undefined) {
21220
+ localVarQueryParameter['policyName'] = policyName;
21221
+ }
19289
21222
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19290
21223
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19291
21224
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
@@ -19295,24 +21228,25 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19295
21228
  };
19296
21229
  }),
19297
21230
  /**
19298
- *
19299
- * @summary Update the scaling policy for an environment
19300
- * @param {string} organisation The organisation ID
19301
- * @param {string} application The application ID
19302
- * @param {string} environment The environment ID
19303
- * @param {ScalingPolicy} scalingPolicy
21231
+ * 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.
21232
+ * @summary Upsert Scaling Policy
21233
+ * @param {string} organisation
21234
+ * @param {string} application
21235
+ * @param {string} environment
21236
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
21237
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
19304
21238
  * @param {*} [options] Override http request option.
19305
21239
  * @throws {RequiredError}
19306
21240
  */
19307
- updateScalingPolicy: (organisation_1, application_1, environment_1, scalingPolicy_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, scalingPolicy_1, ...args_1], void 0, function* (organisation, application, environment, scalingPolicy, options = {}) {
21241
+ 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
21242
  // verify required parameter 'organisation' is not null or undefined
19309
- assertParamExists('updateScalingPolicy', 'organisation', organisation);
21243
+ assertParamExists('upsertScalingPolicy', 'organisation', organisation);
19310
21244
  // verify required parameter 'application' is not null or undefined
19311
- assertParamExists('updateScalingPolicy', 'application', application);
21245
+ assertParamExists('upsertScalingPolicy', 'application', application);
19312
21246
  // verify required parameter 'environment' is not null or undefined
19313
- assertParamExists('updateScalingPolicy', 'environment', environment);
19314
- // verify required parameter 'scalingPolicy' is not null or undefined
19315
- assertParamExists('updateScalingPolicy', 'scalingPolicy', scalingPolicy);
21247
+ assertParamExists('upsertScalingPolicy', 'environment', environment);
21248
+ // verify required parameter 'setScalingPolicyRequest' is not null or undefined
21249
+ assertParamExists('upsertScalingPolicy', 'setScalingPolicyRequest', setScalingPolicyRequest);
19316
21250
  const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
19317
21251
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
19318
21252
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
@@ -19329,11 +21263,14 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration) {
19329
21263
  // authentication BearerAuth required
19330
21264
  // http bearer authentication required
19331
21265
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
21266
+ if (policyName !== undefined) {
21267
+ localVarQueryParameter['policyName'] = policyName;
21268
+ }
19332
21269
  localVarHeaderParameter['Content-Type'] = 'application/json';
19333
21270
  setSearchParams(localVarUrlObj, localVarQueryParameter);
19334
21271
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
19335
21272
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
19336
- localVarRequestOptions.data = serializeDataIfNeeded(scalingPolicy, localVarRequestOptions, configuration);
21273
+ localVarRequestOptions.data = serializeDataIfNeeded(setScalingPolicyRequest, localVarRequestOptions, configuration);
19337
21274
  return {
19338
21275
  url: toPathString(localVarUrlObj),
19339
21276
  options: localVarRequestOptions,
@@ -19349,58 +21286,62 @@ export const ScalingPolicyApiFp = function (configuration) {
19349
21286
  const localVarAxiosParamCreator = ScalingPolicyApiAxiosParamCreator(configuration);
19350
21287
  return {
19351
21288
  /**
19352
- *
19353
- * @summary Delete the scaling policy for an environment
19354
- * @param {string} organisation The organisation ID
19355
- * @param {string} application The application ID
19356
- * @param {string} environment The environment ID
19357
- * @param {string} policyName The policy name
21289
+ * 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.
21290
+ * @summary Delete Scaling Policy
21291
+ * @param {string} organisation
21292
+ * @param {string} application
21293
+ * @param {string} environment
21294
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
21295
+ * @param {string} [policyName] Optional. Delete by exact policy name.
19358
21296
  * @param {*} [options] Override http request option.
19359
21297
  * @throws {RequiredError}
19360
21298
  */
19361
- deleteScalingPolicy(organisation, application, environment, policyName, options) {
21299
+ deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
19362
21300
  return __awaiter(this, void 0, void 0, function* () {
19363
21301
  var _a, _b, _c;
19364
- const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, policyName, options);
21302
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, metric, policyName, options);
19365
21303
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
19366
21304
  const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.deleteScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19367
21305
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19368
21306
  });
19369
21307
  },
19370
21308
  /**
19371
- *
19372
- * @summary Get the scaling policies for an environment
19373
- * @param {string} organisation The organisation ID
19374
- * @param {string} application The application ID
19375
- * @param {string} environment The environment ID
21309
+ * 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).
21310
+ * @summary List Scaling Policies
21311
+ * @param {string} organisation
21312
+ * @param {string} application
21313
+ * @param {string} environment
21314
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
21315
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
19376
21316
  * @param {*} [options] Override http request option.
19377
21317
  * @throws {RequiredError}
19378
21318
  */
19379
- getScalingPolicies(organisation, application, environment, options) {
21319
+ listScalingPolicies(organisation, application, environment, metric, policyName, options) {
19380
21320
  return __awaiter(this, void 0, void 0, function* () {
19381
21321
  var _a, _b, _c;
19382
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getScalingPolicies(organisation, application, environment, options);
21322
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listScalingPolicies(organisation, application, environment, metric, policyName, options);
19383
21323
  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.getScalingPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21324
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.listScalingPolicies']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19385
21325
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19386
21326
  });
19387
21327
  },
19388
21328
  /**
19389
- *
19390
- * @summary Update the scaling policy for an environment
19391
- * @param {string} organisation The organisation ID
19392
- * @param {string} application The application ID
19393
- * @param {string} environment The environment ID
19394
- * @param {ScalingPolicy} scalingPolicy
21329
+ * 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.
21330
+ * @summary Upsert Scaling Policy
21331
+ * @param {string} organisation
21332
+ * @param {string} application
21333
+ * @param {string} environment
21334
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
21335
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
19395
21336
  * @param {*} [options] Override http request option.
19396
21337
  * @throws {RequiredError}
19397
21338
  */
19398
- updateScalingPolicy(organisation, application, environment, scalingPolicy, options) {
21339
+ upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
19399
21340
  return __awaiter(this, void 0, void 0, function* () {
19400
21341
  var _a, _b, _c;
19401
- const localVarAxiosArgs = yield localVarAxiosParamCreator.updateScalingPolicy(organisation, application, environment, scalingPolicy, options);
21342
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options);
19402
21343
  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.updateScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21344
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['ScalingPolicyApi.upsertScalingPolicy']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
19404
21345
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
19405
21346
  });
19406
21347
  },
@@ -19414,42 +21355,46 @@ export const ScalingPolicyApiFactory = function (configuration, basePath, axios)
19414
21355
  const localVarFp = ScalingPolicyApiFp(configuration);
19415
21356
  return {
19416
21357
  /**
19417
- *
19418
- * @summary Delete the scaling policy for an environment
19419
- * @param {string} organisation The organisation ID
19420
- * @param {string} application The application ID
19421
- * @param {string} environment The environment ID
19422
- * @param {string} policyName The policy name
21358
+ * 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.
21359
+ * @summary Delete Scaling Policy
21360
+ * @param {string} organisation
21361
+ * @param {string} application
21362
+ * @param {string} environment
21363
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
21364
+ * @param {string} [policyName] Optional. Delete by exact policy name.
19423
21365
  * @param {*} [options] Override http request option.
19424
21366
  * @throws {RequiredError}
19425
21367
  */
19426
- deleteScalingPolicy(organisation, application, environment, policyName, options) {
19427
- return localVarFp.deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(axios, basePath));
21368
+ deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
21369
+ return localVarFp.deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
19428
21370
  },
19429
21371
  /**
19430
- *
19431
- * @summary Get the scaling policies for an environment
19432
- * @param {string} organisation The organisation ID
19433
- * @param {string} application The application ID
19434
- * @param {string} environment The environment ID
21372
+ * 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).
21373
+ * @summary List Scaling Policies
21374
+ * @param {string} organisation
21375
+ * @param {string} application
21376
+ * @param {string} environment
21377
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
21378
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
19435
21379
  * @param {*} [options] Override http request option.
19436
21380
  * @throws {RequiredError}
19437
21381
  */
19438
- getScalingPolicies(organisation, application, environment, options) {
19439
- return localVarFp.getScalingPolicies(organisation, application, environment, options).then((request) => request(axios, basePath));
21382
+ listScalingPolicies(organisation, application, environment, metric, policyName, options) {
21383
+ return localVarFp.listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
19440
21384
  },
19441
21385
  /**
19442
- *
19443
- * @summary Update the scaling policy for an environment
19444
- * @param {string} organisation The organisation ID
19445
- * @param {string} application The application ID
19446
- * @param {string} environment The environment ID
19447
- * @param {ScalingPolicy} scalingPolicy
21386
+ * 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.
21387
+ * @summary Upsert Scaling Policy
21388
+ * @param {string} organisation
21389
+ * @param {string} application
21390
+ * @param {string} environment
21391
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
21392
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
19448
21393
  * @param {*} [options] Override http request option.
19449
21394
  * @throws {RequiredError}
19450
21395
  */
19451
- updateScalingPolicy(organisation, application, environment, scalingPolicy, options) {
19452
- return localVarFp.updateScalingPolicy(organisation, application, environment, scalingPolicy, options).then((request) => request(axios, basePath));
21396
+ upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
21397
+ return localVarFp.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(axios, basePath));
19453
21398
  },
19454
21399
  };
19455
21400
  };
@@ -19461,45 +21406,175 @@ export const ScalingPolicyApiFactory = function (configuration, basePath, axios)
19461
21406
  */
19462
21407
  export class ScalingPolicyApi extends BaseAPI {
19463
21408
  /**
19464
- *
19465
- * @summary Delete the scaling policy for an environment
19466
- * @param {string} organisation The organisation ID
19467
- * @param {string} application The application ID
19468
- * @param {string} environment The environment ID
19469
- * @param {string} policyName The policy name
21409
+ * 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.
21410
+ * @summary Delete Scaling Policy
21411
+ * @param {string} organisation
21412
+ * @param {string} application
21413
+ * @param {string} environment
21414
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
21415
+ * @param {string} [policyName] Optional. Delete by exact policy name.
19470
21416
  * @param {*} [options] Override http request option.
19471
21417
  * @throws {RequiredError}
19472
21418
  * @memberof ScalingPolicyApi
19473
21419
  */
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));
21420
+ deleteScalingPolicy(organisation, application, environment, metric, policyName, options) {
21421
+ return ScalingPolicyApiFp(this.configuration).deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
19476
21422
  }
19477
21423
  /**
19478
- *
19479
- * @summary Get the scaling policies for an environment
19480
- * @param {string} organisation The organisation ID
19481
- * @param {string} application The application ID
19482
- * @param {string} environment The environment ID
21424
+ * 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).
21425
+ * @summary List Scaling Policies
21426
+ * @param {string} organisation
21427
+ * @param {string} application
21428
+ * @param {string} environment
21429
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
21430
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
19483
21431
  * @param {*} [options] Override http request option.
19484
21432
  * @throws {RequiredError}
19485
21433
  * @memberof ScalingPolicyApi
19486
21434
  */
19487
- getScalingPolicies(organisation, application, environment, options) {
19488
- return ScalingPolicyApiFp(this.configuration).getScalingPolicies(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
21435
+ listScalingPolicies(organisation, application, environment, metric, policyName, options) {
21436
+ return ScalingPolicyApiFp(this.configuration).listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
19489
21437
  }
19490
21438
  /**
19491
- *
19492
- * @summary Update the scaling policy for an environment
19493
- * @param {string} organisation The organisation ID
19494
- * @param {string} application The application ID
19495
- * @param {string} environment The environment ID
19496
- * @param {ScalingPolicy} scalingPolicy
21439
+ * 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.
21440
+ * @summary Upsert Scaling Policy
21441
+ * @param {string} organisation
21442
+ * @param {string} application
21443
+ * @param {string} environment
21444
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
21445
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
19497
21446
  * @param {*} [options] Override http request option.
19498
21447
  * @throws {RequiredError}
19499
21448
  * @memberof ScalingPolicyApi
19500
21449
  */
19501
- updateScalingPolicy(organisation, application, environment, scalingPolicy, options) {
19502
- return ScalingPolicyApiFp(this.configuration).updateScalingPolicy(organisation, application, environment, scalingPolicy, options).then((request) => request(this.axios, this.basePath));
21450
+ upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options) {
21451
+ return ScalingPolicyApiFp(this.configuration).upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(this.axios, this.basePath));
21452
+ }
21453
+ }
21454
+ /**
21455
+ * @export
21456
+ */
21457
+ export const DeleteScalingPolicyMetricEnum = {
21458
+ CpuUtilization: 'CPUUtilization',
21459
+ MemoryUtilization: 'MemoryUtilization',
21460
+ Rps: 'RPS'
21461
+ };
21462
+ /**
21463
+ * @export
21464
+ */
21465
+ export const ListScalingPoliciesMetricEnum = {
21466
+ CpuUtilization: 'CPUUtilization',
21467
+ MemoryUtilization: 'MemoryUtilization',
21468
+ Rps: 'RPS'
21469
+ };
21470
+ /**
21471
+ * SubscriptionApi - axios parameter creator
21472
+ * @export
21473
+ */
21474
+ export const SubscriptionApiAxiosParamCreator = function (configuration) {
21475
+ return {
21476
+ /**
21477
+ * 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.
21478
+ * @summary Cloud-app cost breakdown for the subscription page
21479
+ * @param {string} organisation
21480
+ * @param {string} [month] YYYY-MM, defaults to current month
21481
+ * @param {*} [options] Override http request option.
21482
+ * @throws {RequiredError}
21483
+ */
21484
+ getSubscriptionCloudUsage: (organisation_1, month_1, ...args_1) => __awaiter(this, [organisation_1, month_1, ...args_1], void 0, function* (organisation, month, options = {}) {
21485
+ // verify required parameter 'organisation' is not null or undefined
21486
+ assertParamExists('getSubscriptionCloudUsage', 'organisation', organisation);
21487
+ const localVarPath = `/api/v3/organizations/{organisation}/subscription/cloud-usage`
21488
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
21489
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21490
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21491
+ let baseOptions;
21492
+ if (configuration) {
21493
+ baseOptions = configuration.baseOptions;
21494
+ }
21495
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
21496
+ const localVarHeaderParameter = {};
21497
+ const localVarQueryParameter = {};
21498
+ // authentication BearerAuth required
21499
+ // http bearer authentication required
21500
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
21501
+ if (month !== undefined) {
21502
+ localVarQueryParameter['month'] = month;
21503
+ }
21504
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21505
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21506
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
21507
+ return {
21508
+ url: toPathString(localVarUrlObj),
21509
+ options: localVarRequestOptions,
21510
+ };
21511
+ }),
21512
+ };
21513
+ };
21514
+ /**
21515
+ * SubscriptionApi - functional programming interface
21516
+ * @export
21517
+ */
21518
+ export const SubscriptionApiFp = function (configuration) {
21519
+ const localVarAxiosParamCreator = SubscriptionApiAxiosParamCreator(configuration);
21520
+ return {
21521
+ /**
21522
+ * 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.
21523
+ * @summary Cloud-app cost breakdown for the subscription page
21524
+ * @param {string} organisation
21525
+ * @param {string} [month] YYYY-MM, defaults to current month
21526
+ * @param {*} [options] Override http request option.
21527
+ * @throws {RequiredError}
21528
+ */
21529
+ getSubscriptionCloudUsage(organisation, month, options) {
21530
+ return __awaiter(this, void 0, void 0, function* () {
21531
+ var _a, _b, _c;
21532
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSubscriptionCloudUsage(organisation, month, options);
21533
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
21534
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SubscriptionApi.getSubscriptionCloudUsage']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
21535
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21536
+ });
21537
+ },
21538
+ };
21539
+ };
21540
+ /**
21541
+ * SubscriptionApi - factory interface
21542
+ * @export
21543
+ */
21544
+ export const SubscriptionApiFactory = function (configuration, basePath, axios) {
21545
+ const localVarFp = SubscriptionApiFp(configuration);
21546
+ return {
21547
+ /**
21548
+ * 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.
21549
+ * @summary Cloud-app cost breakdown for the subscription page
21550
+ * @param {string} organisation
21551
+ * @param {string} [month] YYYY-MM, defaults to current month
21552
+ * @param {*} [options] Override http request option.
21553
+ * @throws {RequiredError}
21554
+ */
21555
+ getSubscriptionCloudUsage(organisation, month, options) {
21556
+ return localVarFp.getSubscriptionCloudUsage(organisation, month, options).then((request) => request(axios, basePath));
21557
+ },
21558
+ };
21559
+ };
21560
+ /**
21561
+ * SubscriptionApi - object-oriented interface
21562
+ * @export
21563
+ * @class SubscriptionApi
21564
+ * @extends {BaseAPI}
21565
+ */
21566
+ export class SubscriptionApi extends BaseAPI {
21567
+ /**
21568
+ * 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.
21569
+ * @summary Cloud-app cost breakdown for the subscription page
21570
+ * @param {string} organisation
21571
+ * @param {string} [month] YYYY-MM, defaults to current month
21572
+ * @param {*} [options] Override http request option.
21573
+ * @throws {RequiredError}
21574
+ * @memberof SubscriptionApi
21575
+ */
21576
+ getSubscriptionCloudUsage(organisation, month, options) {
21577
+ return SubscriptionApiFp(this.configuration).getSubscriptionCloudUsage(organisation, month, options).then((request) => request(this.axios, this.basePath));
19503
21578
  }
19504
21579
  }
19505
21580
  /**