@quantcdn/quant-client 4.15.4 → 4.19.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/api.ts 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).
@@ -23,6 +23,212 @@ import type { RequestArgs } from './base';
23
23
  // @ts-ignore
24
24
  import { BASE_PATH, COLLECTION_FORMATS, BaseAPI, RequiredError, operationServerMap } from './base';
25
25
 
26
+ /**
27
+ *
28
+ * @export
29
+ * @interface AiSearchChatRequest
30
+ */
31
+ export interface AiSearchChatRequest {
32
+ /**
33
+ *
34
+ * @type {string}
35
+ * @memberof AiSearchChatRequest
36
+ */
37
+ 'message': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AiSearchChatRequest
42
+ */
43
+ 'sessionId'?: string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AiSearchChatRequest
48
+ */
49
+ 'contextUrl'?: string;
50
+ /**
51
+ *
52
+ * @type {number}
53
+ * @memberof AiSearchChatRequest
54
+ */
55
+ 'maxContextChunks'?: number;
56
+ }
57
+ /**
58
+ *
59
+ * @export
60
+ * @interface AiSearchDeletePagesRequest
61
+ */
62
+ export interface AiSearchDeletePagesRequest {
63
+ /**
64
+ *
65
+ * @type {Array<string>}
66
+ * @memberof AiSearchDeletePagesRequest
67
+ */
68
+ 'urls'?: Array<string>;
69
+ /**
70
+ *
71
+ * @type {Array<string>}
72
+ * @memberof AiSearchDeletePagesRequest
73
+ */
74
+ 'patterns'?: Array<string>;
75
+ }
76
+ /**
77
+ *
78
+ * @export
79
+ * @interface AiSearchEnableRequest
80
+ */
81
+ export interface AiSearchEnableRequest {
82
+ /**
83
+ *
84
+ * @type {string}
85
+ * @memberof AiSearchEnableRequest
86
+ */
87
+ 'baseUrl'?: string;
88
+ /**
89
+ *
90
+ * @type {object}
91
+ * @memberof AiSearchEnableRequest
92
+ */
93
+ 'crawlerConfig'?: object;
94
+ }
95
+ /**
96
+ *
97
+ * @export
98
+ * @interface AiSearchIngestPagesRequest
99
+ */
100
+ export interface AiSearchIngestPagesRequest {
101
+ /**
102
+ *
103
+ * @type {string}
104
+ * @memberof AiSearchIngestPagesRequest
105
+ */
106
+ 'jobId'?: string;
107
+ /**
108
+ *
109
+ * @type {Array<AiSearchIngestPagesRequestPagesInner>}
110
+ * @memberof AiSearchIngestPagesRequest
111
+ */
112
+ 'pages': Array<AiSearchIngestPagesRequestPagesInner>;
113
+ }
114
+ /**
115
+ *
116
+ * @export
117
+ * @interface AiSearchIngestPagesRequestPagesInner
118
+ */
119
+ export interface AiSearchIngestPagesRequestPagesInner {
120
+ /**
121
+ *
122
+ * @type {string}
123
+ * @memberof AiSearchIngestPagesRequestPagesInner
124
+ */
125
+ 'url': string;
126
+ /**
127
+ *
128
+ * @type {string}
129
+ * @memberof AiSearchIngestPagesRequestPagesInner
130
+ */
131
+ 'title': string;
132
+ /**
133
+ *
134
+ * @type {string}
135
+ * @memberof AiSearchIngestPagesRequestPagesInner
136
+ */
137
+ 'content': string;
138
+ /**
139
+ *
140
+ * @type {string}
141
+ * @memberof AiSearchIngestPagesRequestPagesInner
142
+ */
143
+ 'contentType'?: string;
144
+ /**
145
+ *
146
+ * @type {string}
147
+ * @memberof AiSearchIngestPagesRequestPagesInner
148
+ */
149
+ 'fetchedAt'?: string;
150
+ /**
151
+ *
152
+ * @type {boolean}
153
+ * @memberof AiSearchIngestPagesRequestPagesInner
154
+ */
155
+ 'preProcessed'?: boolean;
156
+ /**
157
+ *
158
+ * @type {string}
159
+ * @memberof AiSearchIngestPagesRequestPagesInner
160
+ */
161
+ 'summary'?: string;
162
+ /**
163
+ *
164
+ * @type {Array<string>}
165
+ * @memberof AiSearchIngestPagesRequestPagesInner
166
+ */
167
+ 'tags'?: Array<string>;
168
+ /**
169
+ *
170
+ * @type {Array<string>}
171
+ * @memberof AiSearchIngestPagesRequestPagesInner
172
+ */
173
+ 'topics'?: Array<string>;
174
+ }
175
+ /**
176
+ *
177
+ * @export
178
+ * @interface AiSearchSearchRequest
179
+ */
180
+ export interface AiSearchSearchRequest {
181
+ /**
182
+ *
183
+ * @type {string}
184
+ * @memberof AiSearchSearchRequest
185
+ */
186
+ 'query': string;
187
+ /**
188
+ *
189
+ * @type {number}
190
+ * @memberof AiSearchSearchRequest
191
+ */
192
+ 'limit'?: number;
193
+ /**
194
+ *
195
+ * @type {number}
196
+ * @memberof AiSearchSearchRequest
197
+ */
198
+ 'minScore'?: number;
199
+ }
200
+ /**
201
+ *
202
+ * @export
203
+ * @interface AiSearchTriggerCrawlRequest
204
+ */
205
+ export interface AiSearchTriggerCrawlRequest {
206
+ /**
207
+ *
208
+ * @type {string}
209
+ * @memberof AiSearchTriggerCrawlRequest
210
+ */
211
+ 'crawler_uuid': string;
212
+ }
213
+ /**
214
+ *
215
+ * @export
216
+ * @interface AiSearchUpdateSettingsRequest
217
+ */
218
+ export interface AiSearchUpdateSettingsRequest {
219
+ /**
220
+ *
221
+ * @type {object}
222
+ * @memberof AiSearchUpdateSettingsRequest
223
+ */
224
+ 'publicAccess'?: object;
225
+ /**
226
+ *
227
+ * @type {object}
228
+ * @memberof AiSearchUpdateSettingsRequest
229
+ */
230
+ 'rateLimits'?: object;
231
+ }
26
232
  /**
27
233
  *
28
234
  * @export
@@ -1717,6 +1923,12 @@ export interface ContainerOriginProtectionConfig {
1717
1923
  * @memberof ContainerOriginProtectionConfig
1718
1924
  */
1719
1925
  'ipAllow'?: Array<string> | null;
1926
+ /**
1927
+ * Optional bare host (e.g. www.example.com). When set, requests denied by origin protection are 302-redirected to https://<redirectHost> with path and query preserved, instead of receiving a 403. Allowed IPs and valid-header (CDN) traffic are unaffected.
1928
+ * @type {string}
1929
+ * @memberof ContainerOriginProtectionConfig
1930
+ */
1931
+ 'redirectHost'?: string | null;
1720
1932
  }
1721
1933
  /**
1722
1934
  *
@@ -1871,7 +2083,7 @@ export interface CreateAIAgentRequest {
1871
2083
  * @type {string}
1872
2084
  * @memberof CreateAIAgentRequest
1873
2085
  */
1874
- 'guardrailPreset'?: CreateAIAgentRequestGuardrailPresetEnum;
2086
+ 'guardrailPreset'?: CreateAIAgentRequestGuardrailPresetEnum | null;
1875
2087
  /**
1876
2088
  * Filter policy IDs to apply to this agent\'s inference requests
1877
2089
  * @type {Array<string>}
@@ -2248,6 +2460,24 @@ export interface CreateCustomTool201Response {
2248
2460
  * @memberof CreateCustomTool201Response
2249
2461
  */
2250
2462
  'tool'?: object;
2463
+ /**
2464
+ * Computed edge function URL (read-only)
2465
+ * @type {string}
2466
+ * @memberof CreateCustomTool201Response
2467
+ */
2468
+ 'edgeFunctionUrl'?: string;
2469
+ /**
2470
+ * The deployed edge function code
2471
+ * @type {string}
2472
+ * @memberof CreateCustomTool201Response
2473
+ */
2474
+ 'edgeFunctionCode'?: string;
2475
+ /**
2476
+ * Whether this was an update to an existing tool
2477
+ * @type {boolean}
2478
+ * @memberof CreateCustomTool201Response
2479
+ */
2480
+ 'isUpdate'?: boolean;
2251
2481
  /**
2252
2482
  *
2253
2483
  * @type {string}
@@ -2274,17 +2504,17 @@ export interface CreateCustomToolRequest {
2274
2504
  */
2275
2505
  'description': string;
2276
2506
  /**
2277
- * HTTPS URL of the edge function
2507
+ * JavaScript source code for the edge function
2278
2508
  * @type {string}
2279
2509
  * @memberof CreateCustomToolRequest
2280
2510
  */
2281
- 'edgeFunctionUrl': string;
2511
+ 'edgeFunctionCode': string;
2282
2512
  /**
2283
- * JSON Schema defining the tool\'s input parameters
2284
- * @type {object}
2513
+ * JSON-encoded JSON Schema object defining the tool\'s input parameters
2514
+ * @type {string}
2285
2515
  * @memberof CreateCustomToolRequest
2286
2516
  */
2287
- 'inputSchema': object;
2517
+ 'inputSchema': string;
2288
2518
  /**
2289
2519
  * Whether this tool runs asynchronously (>5 seconds)
2290
2520
  * @type {boolean}
@@ -2297,7 +2527,39 @@ export interface CreateCustomToolRequest {
2297
2527
  * @memberof CreateCustomToolRequest
2298
2528
  */
2299
2529
  'timeoutSeconds'?: number;
2530
+ /**
2531
+ * JSON-encoded JSON Schema object defining the tool\'s output structure
2532
+ * @type {string}
2533
+ * @memberof CreateCustomToolRequest
2534
+ */
2535
+ 'outputSchema'?: string | null;
2536
+ /**
2537
+ * Human-readable description of the tool\'s output
2538
+ * @type {string}
2539
+ * @memberof CreateCustomToolRequest
2540
+ */
2541
+ 'outputSchemaDescription'?: string | null;
2542
+ /**
2543
+ * Category to group related tools
2544
+ * @type {string}
2545
+ * @memberof CreateCustomToolRequest
2546
+ */
2547
+ 'category'?: string | null;
2548
+ /**
2549
+ * How the tool response is handled: llm (passed back to model) or direct (returned to user)
2550
+ * @type {string}
2551
+ * @memberof CreateCustomToolRequest
2552
+ */
2553
+ 'responseMode'?: CreateCustomToolRequestResponseModeEnum | null;
2300
2554
  }
2555
+
2556
+ export const CreateCustomToolRequestResponseModeEnum = {
2557
+ Llm: 'llm',
2558
+ Direct: 'direct'
2559
+ } as const;
2560
+
2561
+ export type CreateCustomToolRequestResponseModeEnum = typeof CreateCustomToolRequestResponseModeEnum[keyof typeof CreateCustomToolRequestResponseModeEnum];
2562
+
2301
2563
  /**
2302
2564
  *
2303
2565
  * @export
@@ -2779,17 +3041,83 @@ export interface CreateSlackBot201Response {
2779
3041
  */
2780
3042
  export interface CreateSlackBotRequest {
2781
3043
  /**
2782
- * The AI agent that powers this bot
3044
+ * Display name for the bot
2783
3045
  * @type {string}
2784
3046
  * @memberof CreateSlackBotRequest
2785
3047
  */
2786
- 'agentId': string;
3048
+ 'name': string;
2787
3049
  /**
2788
3050
  * Whether to use Quant-managed or customer-provided Slack app
2789
3051
  * @type {string}
2790
3052
  * @memberof CreateSlackBotRequest
2791
3053
  */
2792
3054
  'setupType': CreateSlackBotRequestSetupTypeEnum;
3055
+ /**
3056
+ * System prompt for the backing AI agent
3057
+ * @type {string}
3058
+ * @memberof CreateSlackBotRequest
3059
+ */
3060
+ 'systemPrompt': string;
3061
+ /**
3062
+ * AI model identifier
3063
+ * @type {string}
3064
+ * @memberof CreateSlackBotRequest
3065
+ */
3066
+ 'modelId': string;
3067
+ /**
3068
+ * Sampling temperature
3069
+ * @type {number}
3070
+ * @memberof CreateSlackBotRequest
3071
+ */
3072
+ 'temperature'?: number;
3073
+ /**
3074
+ * Maximum response tokens
3075
+ * @type {number}
3076
+ * @memberof CreateSlackBotRequest
3077
+ */
3078
+ 'maxTokens'?: number;
3079
+ /**
3080
+ * Tools the agent may use
3081
+ * @type {Array<string>}
3082
+ * @memberof CreateSlackBotRequest
3083
+ */
3084
+ 'allowedTools'?: Array<string>;
3085
+ /**
3086
+ * Skills assigned to the agent
3087
+ * @type {Array<string>}
3088
+ * @memberof CreateSlackBotRequest
3089
+ */
3090
+ 'assignedSkills'?: Array<string>;
3091
+ /**
3092
+ * Vector DB collections the agent may query
3093
+ * @type {Array<string>}
3094
+ * @memberof CreateSlackBotRequest
3095
+ */
3096
+ 'allowedCollections'?: Array<string>;
3097
+ /**
3098
+ * Sub-agents the agent may call
3099
+ * @type {Array<string>}
3100
+ * @memberof CreateSlackBotRequest
3101
+ */
3102
+ 'allowedSubAgents'?: Array<string>;
3103
+ /**
3104
+ * Guardrail preset name
3105
+ * @type {string}
3106
+ * @memberof CreateSlackBotRequest
3107
+ */
3108
+ 'guardrailPreset'?: string;
3109
+ /**
3110
+ * Content filter policies
3111
+ * @type {Array<string>}
3112
+ * @memberof CreateSlackBotRequest
3113
+ */
3114
+ 'filterPolicies'?: Array<string>;
3115
+ /**
3116
+ * Enable long context mode
3117
+ * @type {boolean}
3118
+ * @memberof CreateSlackBotRequest
3119
+ */
3120
+ 'longContext'?: boolean;
2793
3121
  /**
2794
3122
  * Session TTL in days
2795
3123
  * @type {number}
@@ -2802,6 +3130,36 @@ export interface CreateSlackBotRequest {
2802
3130
  * @memberof CreateSlackBotRequest
2803
3131
  */
2804
3132
  'allowedChannels'?: Array<string>;
3133
+ /**
3134
+ * Slack user IDs allowed to interact with the bot
3135
+ * @type {Array<string>}
3136
+ * @memberof CreateSlackBotRequest
3137
+ */
3138
+ 'allowedUsers'?: Array<string>;
3139
+ /**
3140
+ * Slack user IDs denied from interacting with the bot
3141
+ * @type {Array<string>}
3142
+ * @memberof CreateSlackBotRequest
3143
+ */
3144
+ 'deniedUsers'?: Array<string>;
3145
+ /**
3146
+ * Whether guest users may interact with the bot
3147
+ * @type {boolean}
3148
+ * @memberof CreateSlackBotRequest
3149
+ */
3150
+ 'allowGuests'?: boolean;
3151
+ /**
3152
+ * Content shown on the bot\'s Home tab in Slack
3153
+ * @type {string}
3154
+ * @memberof CreateSlackBotRequest
3155
+ */
3156
+ 'homeTabContent'?: string;
3157
+ /**
3158
+ * Agent-level access control settings
3159
+ * @type {object}
3160
+ * @memberof CreateSlackBotRequest
3161
+ */
3162
+ 'agentAccessControl'?: object;
2805
3163
  /**
2806
3164
  * Whether keyword triggers are enabled
2807
3165
  * @type {boolean}
@@ -2814,12 +3172,6 @@ export interface CreateSlackBotRequest {
2814
3172
  * @memberof CreateSlackBotRequest
2815
3173
  */
2816
3174
  'keywords'?: Array<string>;
2817
- /**
2818
- * Slash commands the bot responds to
2819
- * @type {Array<string>}
2820
- * @memberof CreateSlackBotRequest
2821
- */
2822
- 'slashCommands'?: Array<string>;
2823
3175
  }
2824
3176
 
2825
3177
  export const CreateSlackBotRequestSetupTypeEnum = {
@@ -4221,7 +4573,7 @@ export interface GetAIOrchestrationStatus200Response {
4221
4573
  * @type {string}
4222
4574
  * @memberof GetAIOrchestrationStatus200Response
4223
4575
  */
4224
- 'synthesizedResponse'?: string;
4576
+ 'result'?: string;
4225
4577
  /**
4226
4578
  * Status of individual tool executions
4227
4579
  * @type {Array<GetAIOrchestrationStatus200ResponseToolsInner>}
@@ -4246,11 +4598,17 @@ export interface GetAIOrchestrationStatus200Response {
4246
4598
  * @memberof GetAIOrchestrationStatus200Response
4247
4599
  */
4248
4600
  'completedAt'?: string;
4601
+ /**
4602
+ * Seconds from creation to completion (present only once completed)
4603
+ * @type {number}
4604
+ * @memberof GetAIOrchestrationStatus200Response
4605
+ */
4606
+ 'duration'?: number;
4249
4607
  }
4250
4608
 
4251
4609
  export const GetAIOrchestrationStatus200ResponseStatusEnum = {
4252
4610
  Pending: 'pending',
4253
- Polling: 'polling',
4611
+ WaitingTools: 'waiting_tools',
4254
4612
  Synthesizing: 'synthesizing',
4255
4613
  Complete: 'complete',
4256
4614
  Failed: 'failed'
@@ -4460,50 +4818,6 @@ export interface GetAIToolExecutionStatus404Response {
4460
4818
  */
4461
4819
  'executionId'?: string;
4462
4820
  }
4463
- /**
4464
- *
4465
- * @export
4466
- * @interface GetAIUsageStats200Response
4467
- */
4468
- export interface GetAIUsageStats200Response {
4469
- /**
4470
- * Total number of API requests
4471
- * @type {number}
4472
- * @memberof GetAIUsageStats200Response
4473
- */
4474
- 'total_requests'?: number;
4475
- /**
4476
- * Total tokens consumed across all requests
4477
- * @type {number}
4478
- * @memberof GetAIUsageStats200Response
4479
- */
4480
- 'total_tokens'?: number;
4481
- /**
4482
- * Usage breakdown by model ID
4483
- * @type {{ [key: string]: GetAIUsageStats200ResponseByModelValue; }}
4484
- * @memberof GetAIUsageStats200Response
4485
- */
4486
- 'by_model'?: { [key: string]: GetAIUsageStats200ResponseByModelValue; };
4487
- }
4488
- /**
4489
- *
4490
- * @export
4491
- * @interface GetAIUsageStats200ResponseByModelValue
4492
- */
4493
- export interface GetAIUsageStats200ResponseByModelValue {
4494
- /**
4495
- * Number of requests for this model
4496
- * @type {number}
4497
- * @memberof GetAIUsageStats200ResponseByModelValue
4498
- */
4499
- 'requests'?: number;
4500
- /**
4501
- * Total tokens for this model
4502
- * @type {number}
4503
- * @memberof GetAIUsageStats200ResponseByModelValue
4504
- */
4505
- 'tokens'?: number;
4506
- }
4507
4821
  /**
4508
4822
  *
4509
4823
  * @export
@@ -4633,6 +4947,100 @@ export interface GetAgentOverlay200ResponseOverlay {
4633
4947
  */
4634
4948
  'version'?: number;
4635
4949
  }
4950
+ /**
4951
+ *
4952
+ * @export
4953
+ * @interface GetCustomTool200Response
4954
+ */
4955
+ export interface GetCustomTool200Response {
4956
+ /**
4957
+ *
4958
+ * @type {GetCustomTool200ResponseTool}
4959
+ * @memberof GetCustomTool200Response
4960
+ */
4961
+ 'tool'?: GetCustomTool200ResponseTool;
4962
+ }
4963
+ /**
4964
+ *
4965
+ * @export
4966
+ * @interface GetCustomTool200ResponseTool
4967
+ */
4968
+ export interface GetCustomTool200ResponseTool {
4969
+ /**
4970
+ *
4971
+ * @type {string}
4972
+ * @memberof GetCustomTool200ResponseTool
4973
+ */
4974
+ 'name'?: string;
4975
+ /**
4976
+ *
4977
+ * @type {string}
4978
+ * @memberof GetCustomTool200ResponseTool
4979
+ */
4980
+ 'description'?: string;
4981
+ /**
4982
+ *
4983
+ * @type {string}
4984
+ * @memberof GetCustomTool200ResponseTool
4985
+ */
4986
+ 'edgeFunctionUrl'?: string;
4987
+ /**
4988
+ * The deployed edge function source code
4989
+ * @type {string}
4990
+ * @memberof GetCustomTool200ResponseTool
4991
+ */
4992
+ 'edgeFunctionCode'?: string;
4993
+ /**
4994
+ *
4995
+ * @type {boolean}
4996
+ * @memberof GetCustomTool200ResponseTool
4997
+ */
4998
+ 'isAsync'?: boolean;
4999
+ /**
5000
+ *
5001
+ * @type {string}
5002
+ * @memberof GetCustomTool200ResponseTool
5003
+ */
5004
+ 'inputSchema'?: string;
5005
+ /**
5006
+ *
5007
+ * @type {string}
5008
+ * @memberof GetCustomTool200ResponseTool
5009
+ */
5010
+ 'outputSchema'?: string | null;
5011
+ /**
5012
+ *
5013
+ * @type {string}
5014
+ * @memberof GetCustomTool200ResponseTool
5015
+ */
5016
+ 'outputSchemaDescription'?: string | null;
5017
+ /**
5018
+ *
5019
+ * @type {string}
5020
+ * @memberof GetCustomTool200ResponseTool
5021
+ */
5022
+ 'category'?: string | null;
5023
+ /**
5024
+ *
5025
+ * @type {string}
5026
+ * @memberof GetCustomTool200ResponseTool
5027
+ */
5028
+ 'responseMode'?: GetCustomTool200ResponseToolResponseModeEnum | null;
5029
+ /**
5030
+ *
5031
+ * @type {string}
5032
+ * @memberof GetCustomTool200ResponseTool
5033
+ */
5034
+ 'createdAt'?: string;
5035
+ }
5036
+
5037
+ export const GetCustomTool200ResponseToolResponseModeEnum = {
5038
+ Llm: 'llm',
5039
+ Direct: 'direct'
5040
+ } as const;
5041
+
5042
+ export type GetCustomTool200ResponseToolResponseModeEnum = typeof GetCustomTool200ResponseToolResponseModeEnum[keyof typeof GetCustomTool200ResponseToolResponseModeEnum];
5043
+
4636
5044
  /**
4637
5045
  *
4638
5046
  * @export
@@ -5079,6 +5487,62 @@ export interface GetGovernanceConfig200ResponseSpendLimits {
5079
5487
  * @memberof GetGovernanceConfig200ResponseSpendLimits
5080
5488
  */
5081
5489
  'warningThresholdPercent'?: number | null;
5490
+ /**
5491
+ * Aggregate spend caps per interface label (slack, autonomous, api-gateway, streaming, websocket). Keys are interface labels.
5492
+ * @type {{ [key: string]: GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue; }}
5493
+ * @memberof GetGovernanceConfig200ResponseSpendLimits
5494
+ */
5495
+ 'interfaceLimits'?: { [key: string]: GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue; };
5496
+ /**
5497
+ * Per-user budget overrides keyed by userId (numeric portal id, slack-<id>, or system:code-agent). Replaces the flat per-user budget for that user; unlimited=true exempts them.
5498
+ * @type {{ [key: string]: GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue; }}
5499
+ * @memberof GetGovernanceConfig200ResponseSpendLimits
5500
+ */
5501
+ 'userOverrides'?: { [key: string]: GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue; };
5502
+ }
5503
+ /**
5504
+ *
5505
+ * @export
5506
+ * @interface GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue
5507
+ */
5508
+ export interface GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue {
5509
+ /**
5510
+ *
5511
+ * @type {number}
5512
+ * @memberof GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue
5513
+ */
5514
+ 'dailyCents'?: number | null;
5515
+ /**
5516
+ *
5517
+ * @type {number}
5518
+ * @memberof GetGovernanceConfig200ResponseSpendLimitsInterfaceLimitsValue
5519
+ */
5520
+ 'monthlyCents'?: number | null;
5521
+ }
5522
+ /**
5523
+ *
5524
+ * @export
5525
+ * @interface GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue
5526
+ */
5527
+ export interface GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue {
5528
+ /**
5529
+ *
5530
+ * @type {number}
5531
+ * @memberof GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue
5532
+ */
5533
+ 'dailyCents'?: number | null;
5534
+ /**
5535
+ *
5536
+ * @type {number}
5537
+ * @memberof GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue
5538
+ */
5539
+ 'monthlyCents'?: number | null;
5540
+ /**
5541
+ *
5542
+ * @type {boolean}
5543
+ * @memberof GetGovernanceConfig200ResponseSpendLimitsUserOverridesValue
5544
+ */
5545
+ 'unlimited'?: boolean | null;
5082
5546
  }
5083
5547
  /**
5084
5548
  *
@@ -5300,18 +5764,209 @@ export interface GetMyUsage200ResponseMonthly {
5300
5764
  */
5301
5765
  export interface GetMyUsage200ResponseQuota {
5302
5766
  /**
5303
- * Per-user monthly budget in US cents
5304
- * @type {number}
5767
+ *
5768
+ * @type {GetMyUsage200ResponseQuotaMonthlyLimit}
5305
5769
  * @memberof GetMyUsage200ResponseQuota
5306
5770
  */
5307
- 'monthlyLimit'?: number | null;
5771
+ 'monthlyLimit'?: GetMyUsage200ResponseQuotaMonthlyLimit | null;
5308
5772
  /**
5309
- * Per-user daily budget in US cents
5310
- * @type {number}
5773
+ *
5774
+ * @type {GetMyUsage200ResponseQuotaDailyLimit}
5311
5775
  * @memberof GetMyUsage200ResponseQuota
5312
5776
  */
5313
- 'dailyLimit'?: number | null;
5777
+ 'dailyLimit'?: GetMyUsage200ResponseQuotaDailyLimit | null;
5778
+ }
5779
+ /**
5780
+ * Per-user daily spend cap (object form, present when an org-level perUserDailyBudget is configured)
5781
+ * @export
5782
+ * @interface GetMyUsage200ResponseQuotaDailyLimit
5783
+ */
5784
+ export interface GetMyUsage200ResponseQuotaDailyLimit {
5785
+ /**
5786
+ * The configured daily cap in US cents
5787
+ * @type {number}
5788
+ * @memberof GetMyUsage200ResponseQuotaDailyLimit
5789
+ */
5790
+ 'limitCents'?: number;
5791
+ /**
5792
+ * Percentage of the cap consumed today (0–100+)
5793
+ * @type {number}
5794
+ * @memberof GetMyUsage200ResponseQuotaDailyLimit
5795
+ */
5796
+ 'usedPercent'?: number;
5797
+ /**
5798
+ * Cents remaining before the cap is hit; can be negative if overspent
5799
+ * @type {number}
5800
+ * @memberof GetMyUsage200ResponseQuotaDailyLimit
5801
+ */
5802
+ 'remainingCents'?: number;
5803
+ /**
5804
+ * UTC timestamp when the daily counter resets (always next UTC midnight)
5805
+ * @type {string}
5806
+ * @memberof GetMyUsage200ResponseQuotaDailyLimit
5807
+ */
5808
+ 'resetsAt'?: string;
5809
+ }
5810
+ /**
5811
+ * Per-user monthly spend cap (object form, present when an org-level perUserMonthlyBudget is configured)
5812
+ * @export
5813
+ * @interface GetMyUsage200ResponseQuotaMonthlyLimit
5814
+ */
5815
+ export interface GetMyUsage200ResponseQuotaMonthlyLimit {
5816
+ /**
5817
+ * The configured monthly cap in US cents
5818
+ * @type {number}
5819
+ * @memberof GetMyUsage200ResponseQuotaMonthlyLimit
5820
+ */
5821
+ 'limitCents'?: number;
5822
+ /**
5823
+ * Percentage of the cap consumed this month (0–100+)
5824
+ * @type {number}
5825
+ * @memberof GetMyUsage200ResponseQuotaMonthlyLimit
5826
+ */
5827
+ 'usedPercent'?: number;
5828
+ /**
5829
+ * Cents remaining before the cap is hit; can be negative if overspent
5830
+ * @type {number}
5831
+ * @memberof GetMyUsage200ResponseQuotaMonthlyLimit
5832
+ */
5833
+ 'remainingCents'?: number;
5834
+ }
5835
+ /**
5836
+ *
5837
+ * @export
5838
+ * @interface GetRestoreStatus200Response
5839
+ */
5840
+ export interface GetRestoreStatus200Response {
5841
+ /**
5842
+ *
5843
+ * @type {string}
5844
+ * @memberof GetRestoreStatus200Response
5845
+ */
5846
+ 'restoreId'?: string;
5847
+ /**
5848
+ *
5849
+ * @type {string}
5850
+ * @memberof GetRestoreStatus200Response
5851
+ */
5852
+ 'orgName'?: string;
5853
+ /**
5854
+ *
5855
+ * @type {string}
5856
+ * @memberof GetRestoreStatus200Response
5857
+ */
5858
+ 'appName'?: string;
5859
+ /**
5860
+ *
5861
+ * @type {string}
5862
+ * @memberof GetRestoreStatus200Response
5863
+ */
5864
+ 'envName'?: string;
5865
+ /**
5866
+ *
5867
+ * @type {string}
5868
+ * @memberof GetRestoreStatus200Response
5869
+ */
5870
+ 'backupId'?: string;
5871
+ /**
5872
+ *
5873
+ * @type {string}
5874
+ * @memberof GetRestoreStatus200Response
5875
+ */
5876
+ 'status'?: GetRestoreStatus200ResponseStatusEnum;
5877
+ /**
5878
+ *
5879
+ * @type {string}
5880
+ * @memberof GetRestoreStatus200Response
5881
+ */
5882
+ 'startedAt'?: string;
5883
+ /**
5884
+ *
5885
+ * @type {string}
5886
+ * @memberof GetRestoreStatus200Response
5887
+ */
5888
+ 'completedAt'?: string | null;
5889
+ /**
5890
+ *
5891
+ * @type {string}
5892
+ * @memberof GetRestoreStatus200Response
5893
+ */
5894
+ 'errorMessage'?: string | null;
5895
+ /**
5896
+ *
5897
+ * @type {string}
5898
+ * @memberof GetRestoreStatus200Response
5899
+ */
5900
+ 'taskArn'?: string | null;
5901
+ /**
5902
+ *
5903
+ * @type {number}
5904
+ * @memberof GetRestoreStatus200Response
5905
+ */
5906
+ 'ttl'?: number | null;
5907
+ }
5908
+
5909
+ export const GetRestoreStatus200ResponseStatusEnum = {
5910
+ Pending: 'pending',
5911
+ InProgress: 'in_progress',
5912
+ Completed: 'completed',
5913
+ Failed: 'failed'
5914
+ } as const;
5915
+
5916
+ export type GetRestoreStatus200ResponseStatusEnum = typeof GetRestoreStatus200ResponseStatusEnum[keyof typeof GetRestoreStatus200ResponseStatusEnum];
5917
+
5918
+ /**
5919
+ *
5920
+ * @export
5921
+ * @interface GetScalingPolicyResponse
5922
+ */
5923
+ export interface GetScalingPolicyResponse {
5924
+ /**
5925
+ *
5926
+ * @type {string}
5927
+ * @memberof GetScalingPolicyResponse
5928
+ */
5929
+ 'metric'?: GetScalingPolicyResponseMetricEnum;
5930
+ /**
5931
+ *
5932
+ * @type {number}
5933
+ * @memberof GetScalingPolicyResponse
5934
+ */
5935
+ 'targetValue'?: number;
5936
+ /**
5937
+ *
5938
+ * @type {number}
5939
+ * @memberof GetScalingPolicyResponse
5940
+ */
5941
+ 'scaleInCooldownSeconds'?: number;
5942
+ /**
5943
+ *
5944
+ * @type {number}
5945
+ * @memberof GetScalingPolicyResponse
5946
+ */
5947
+ 'scaleOutCooldownSeconds'?: number;
5948
+ /**
5949
+ * Name of the underlying Application Auto Scaling policy.
5950
+ * @type {string}
5951
+ * @memberof GetScalingPolicyResponse
5952
+ */
5953
+ 'policyName'?: string;
5954
+ /**
5955
+ * ALB ResourceLabel for RPS policies (target group identifier).
5956
+ * @type {string}
5957
+ * @memberof GetScalingPolicyResponse
5958
+ */
5959
+ 'resourceLabel'?: string | null;
5314
5960
  }
5961
+
5962
+ export const GetScalingPolicyResponseMetricEnum = {
5963
+ CpuUtilization: 'CPUUtilization',
5964
+ MemoryUtilization: 'MemoryUtilization',
5965
+ Rps: 'RPS'
5966
+ } as const;
5967
+
5968
+ export type GetScalingPolicyResponseMetricEnum = typeof GetScalingPolicyResponseMetricEnum[keyof typeof GetScalingPolicyResponseMetricEnum];
5969
+
5315
5970
  /**
5316
5971
  *
5317
5972
  * @export
@@ -5446,7 +6101,7 @@ export interface GetSlackBot200ResponseBot {
5446
6101
  * @type {string}
5447
6102
  * @memberof GetSlackBot200ResponseBot
5448
6103
  */
5449
- 'agentId'?: string;
6104
+ 'name'?: string;
5450
6105
  /**
5451
6106
  *
5452
6107
  * @type {string}
@@ -5465,6 +6120,72 @@ export interface GetSlackBot200ResponseBot {
5465
6120
  * @memberof GetSlackBot200ResponseBot
5466
6121
  */
5467
6122
  'connected'?: boolean;
6123
+ /**
6124
+ *
6125
+ * @type {string}
6126
+ * @memberof GetSlackBot200ResponseBot
6127
+ */
6128
+ 'systemPrompt'?: string;
6129
+ /**
6130
+ *
6131
+ * @type {string}
6132
+ * @memberof GetSlackBot200ResponseBot
6133
+ */
6134
+ 'modelId'?: string;
6135
+ /**
6136
+ *
6137
+ * @type {number}
6138
+ * @memberof GetSlackBot200ResponseBot
6139
+ */
6140
+ 'temperature'?: number;
6141
+ /**
6142
+ *
6143
+ * @type {number}
6144
+ * @memberof GetSlackBot200ResponseBot
6145
+ */
6146
+ 'maxTokens'?: number;
6147
+ /**
6148
+ *
6149
+ * @type {Array<string>}
6150
+ * @memberof GetSlackBot200ResponseBot
6151
+ */
6152
+ 'allowedTools'?: Array<string>;
6153
+ /**
6154
+ *
6155
+ * @type {Array<string>}
6156
+ * @memberof GetSlackBot200ResponseBot
6157
+ */
6158
+ 'assignedSkills'?: Array<string>;
6159
+ /**
6160
+ *
6161
+ * @type {Array<string>}
6162
+ * @memberof GetSlackBot200ResponseBot
6163
+ */
6164
+ 'allowedCollections'?: Array<string>;
6165
+ /**
6166
+ *
6167
+ * @type {Array<string>}
6168
+ * @memberof GetSlackBot200ResponseBot
6169
+ */
6170
+ 'allowedSubAgents'?: Array<string>;
6171
+ /**
6172
+ *
6173
+ * @type {string}
6174
+ * @memberof GetSlackBot200ResponseBot
6175
+ */
6176
+ 'guardrailPreset'?: string;
6177
+ /**
6178
+ *
6179
+ * @type {Array<string>}
6180
+ * @memberof GetSlackBot200ResponseBot
6181
+ */
6182
+ 'filterPolicies'?: Array<string>;
6183
+ /**
6184
+ *
6185
+ * @type {boolean}
6186
+ * @memberof GetSlackBot200ResponseBot
6187
+ */
6188
+ 'longContext'?: boolean;
5468
6189
  /**
5469
6190
  *
5470
6191
  * @type {number}
@@ -5479,22 +6200,46 @@ export interface GetSlackBot200ResponseBot {
5479
6200
  'allowedChannels'?: Array<string>;
5480
6201
  /**
5481
6202
  *
5482
- * @type {boolean}
6203
+ * @type {Array<string>}
5483
6204
  * @memberof GetSlackBot200ResponseBot
5484
6205
  */
5485
- 'keywordsEnabled'?: boolean;
6206
+ 'allowedUsers'?: Array<string>;
5486
6207
  /**
5487
6208
  *
5488
6209
  * @type {Array<string>}
5489
6210
  * @memberof GetSlackBot200ResponseBot
5490
6211
  */
5491
- 'keywords'?: Array<string>;
6212
+ 'deniedUsers'?: Array<string>;
6213
+ /**
6214
+ *
6215
+ * @type {boolean}
6216
+ * @memberof GetSlackBot200ResponseBot
6217
+ */
6218
+ 'allowGuests'?: boolean;
6219
+ /**
6220
+ *
6221
+ * @type {string}
6222
+ * @memberof GetSlackBot200ResponseBot
6223
+ */
6224
+ 'homeTabContent'?: string;
6225
+ /**
6226
+ *
6227
+ * @type {object}
6228
+ * @memberof GetSlackBot200ResponseBot
6229
+ */
6230
+ 'agentAccessControl'?: object;
6231
+ /**
6232
+ *
6233
+ * @type {boolean}
6234
+ * @memberof GetSlackBot200ResponseBot
6235
+ */
6236
+ 'keywordsEnabled'?: boolean;
5492
6237
  /**
5493
6238
  *
5494
6239
  * @type {Array<string>}
5495
6240
  * @memberof GetSlackBot200ResponseBot
5496
6241
  */
5497
- 'slashCommands'?: Array<string>;
6242
+ 'keywords'?: Array<string>;
5498
6243
  /**
5499
6244
  *
5500
6245
  * @type {string}
@@ -7144,10 +7889,10 @@ export interface ListCustomTools200ResponseToolsInner {
7144
7889
  'isAsync'?: boolean;
7145
7890
  /**
7146
7891
  *
7147
- * @type {object}
7892
+ * @type {string}
7148
7893
  * @memberof ListCustomTools200ResponseToolsInner
7149
7894
  */
7150
- 'inputSchema'?: object;
7895
+ 'inputSchema'?: string;
7151
7896
  /**
7152
7897
  *
7153
7898
  * @type {string}
@@ -7486,7 +8231,7 @@ export interface ListSlackBots200ResponseBotsInner {
7486
8231
  * @type {string}
7487
8232
  * @memberof ListSlackBots200ResponseBotsInner
7488
8233
  */
7489
- 'agentId'?: string;
8234
+ 'name'?: string;
7490
8235
  /**
7491
8236
  *
7492
8237
  * @type {string}
@@ -7505,6 +8250,72 @@ export interface ListSlackBots200ResponseBotsInner {
7505
8250
  * @memberof ListSlackBots200ResponseBotsInner
7506
8251
  */
7507
8252
  'connected'?: boolean;
8253
+ /**
8254
+ *
8255
+ * @type {string}
8256
+ * @memberof ListSlackBots200ResponseBotsInner
8257
+ */
8258
+ 'systemPrompt'?: string;
8259
+ /**
8260
+ *
8261
+ * @type {string}
8262
+ * @memberof ListSlackBots200ResponseBotsInner
8263
+ */
8264
+ 'modelId'?: string;
8265
+ /**
8266
+ *
8267
+ * @type {number}
8268
+ * @memberof ListSlackBots200ResponseBotsInner
8269
+ */
8270
+ 'temperature'?: number;
8271
+ /**
8272
+ *
8273
+ * @type {number}
8274
+ * @memberof ListSlackBots200ResponseBotsInner
8275
+ */
8276
+ 'maxTokens'?: number;
8277
+ /**
8278
+ *
8279
+ * @type {Array<string>}
8280
+ * @memberof ListSlackBots200ResponseBotsInner
8281
+ */
8282
+ 'allowedTools'?: Array<string>;
8283
+ /**
8284
+ *
8285
+ * @type {Array<string>}
8286
+ * @memberof ListSlackBots200ResponseBotsInner
8287
+ */
8288
+ 'assignedSkills'?: Array<string>;
8289
+ /**
8290
+ *
8291
+ * @type {Array<string>}
8292
+ * @memberof ListSlackBots200ResponseBotsInner
8293
+ */
8294
+ 'allowedCollections'?: Array<string>;
8295
+ /**
8296
+ *
8297
+ * @type {Array<string>}
8298
+ * @memberof ListSlackBots200ResponseBotsInner
8299
+ */
8300
+ 'allowedSubAgents'?: Array<string>;
8301
+ /**
8302
+ *
8303
+ * @type {string}
8304
+ * @memberof ListSlackBots200ResponseBotsInner
8305
+ */
8306
+ 'guardrailPreset'?: string;
8307
+ /**
8308
+ *
8309
+ * @type {Array<string>}
8310
+ * @memberof ListSlackBots200ResponseBotsInner
8311
+ */
8312
+ 'filterPolicies'?: Array<string>;
8313
+ /**
8314
+ *
8315
+ * @type {boolean}
8316
+ * @memberof ListSlackBots200ResponseBotsInner
8317
+ */
8318
+ 'longContext'?: boolean;
7508
8319
  /**
7509
8320
  *
7510
8321
  * @type {number}
@@ -8210,43 +9021,104 @@ export interface QueryVectorCollectionRequestFilter {
8210
9021
  /**
8211
9022
  *
8212
9023
  * @export
8213
- * @interface ScalingPolicy
9024
+ * @interface RestoreDatabase202Response
8214
9025
  */
8215
- export interface ScalingPolicy {
9026
+ export interface RestoreDatabase202Response {
8216
9027
  /**
8217
9028
  *
8218
9029
  * @type {string}
8219
- * @memberof ScalingPolicy
9030
+ * @memberof RestoreDatabase202Response
8220
9031
  */
8221
- 'metric'?: ScalingPolicyMetricEnum;
9032
+ 'restoreId'?: string;
8222
9033
  /**
8223
9034
  *
8224
- * @type {number}
8225
- * @memberof ScalingPolicy
9035
+ * @type {string}
9036
+ * @memberof RestoreDatabase202Response
8226
9037
  */
8227
- 'targetValue'?: number;
9038
+ 'status'?: string;
8228
9039
  /**
8229
9040
  *
8230
- * @type {number}
8231
- * @memberof ScalingPolicy
9041
+ * @type {string}
9042
+ * @memberof RestoreDatabase202Response
8232
9043
  */
8233
- 'scaleInCooldownSeconds'?: number;
9044
+ 'message'?: string;
9045
+ }
9046
+ /**
9047
+ *
9048
+ * @export
9049
+ * @interface RestoreDatabaseRequest
9050
+ */
9051
+ export interface RestoreDatabaseRequest {
9052
+ /**
9053
+ * The backup ID to restore (must match path param)
9054
+ * @type {string}
9055
+ * @memberof RestoreDatabaseRequest
9056
+ */
9057
+ 'backupId': string;
9058
+ /**
9059
+ * Must be true to confirm existing data will be overwritten
9060
+ * @type {boolean}
9061
+ * @memberof RestoreDatabaseRequest
9062
+ */
9063
+ 'acknowledgeDataloss': boolean;
9064
+ }
9065
+ /**
9066
+ *
9067
+ * @export
9068
+ * @interface RestoreFilesystem202Response
9069
+ */
9070
+ export interface RestoreFilesystem202Response {
8234
9071
  /**
8235
9072
  *
8236
- * @type {number}
8237
- * @memberof ScalingPolicy
9073
+ * @type {string}
9074
+ * @memberof RestoreFilesystem202Response
8238
9075
  */
8239
- 'scaleOutCooldownSeconds'?: number;
9076
+ 'restoreId'?: string;
9077
+ /**
9078
+ *
9079
+ * @type {string}
9080
+ * @memberof RestoreFilesystem202Response
9081
+ */
9082
+ 'status'?: string;
9083
+ /**
9084
+ *
9085
+ * @type {string}
9086
+ * @memberof RestoreFilesystem202Response
9087
+ */
9088
+ 'message'?: string;
9089
+ }
9090
+ /**
9091
+ *
9092
+ * @export
9093
+ * @interface RestoreFilesystemRequest
9094
+ */
9095
+ export interface RestoreFilesystemRequest {
9096
+ /**
9097
+ * The backup ID to restore (must match path param)
9098
+ * @type {string}
9099
+ * @memberof RestoreFilesystemRequest
9100
+ */
9101
+ 'backupId': string;
9102
+ /**
9103
+ * Must be true. tar extraction overwrites same-named files in the target EFS in place; pre-existing files not in the archive are preserved.
9104
+ * @type {boolean}
9105
+ * @memberof RestoreFilesystemRequest
9106
+ */
9107
+ 'acknowledgeDataloss': boolean;
9108
+ }
9109
+ /**
9110
+ *
9111
+ * @export
9112
+ * @interface ScalingPolicyListResponse
9113
+ */
9114
+ export interface ScalingPolicyListResponse {
9115
+ /**
9116
+ *
9117
+ * @type {Array<GetScalingPolicyResponse>}
9118
+ * @memberof ScalingPolicyListResponse
9119
+ */
9120
+ 'policies'?: Array<GetScalingPolicyResponse>;
8240
9121
  }
8241
-
8242
- export const ScalingPolicyMetricEnum = {
8243
- CpuUtilization: 'CPUUtilization',
8244
- MemoryUtilization: 'MemoryUtilization',
8245
- Rps: 'RPS'
8246
- } as const;
8247
-
8248
- export type ScalingPolicyMetricEnum = typeof ScalingPolicyMetricEnum[keyof typeof ScalingPolicyMetricEnum];
8249
-
8250
9122
  /**
8251
9123
  *
8252
9124
  * @export
@@ -8317,6 +9189,46 @@ export interface SearchSlackWorkspaceUsers200ResponseResultsInner {
8317
9189
  */
8318
9190
  'real_name'?: string;
8319
9191
  }
9192
+ /**
9193
+ *
9194
+ * @export
9195
+ * @interface SetScalingPolicyRequest
9196
+ */
9197
+ export interface SetScalingPolicyRequest {
9198
+ /**
9199
+ * Metric to track for scaling.
9200
+ * @type {string}
9201
+ * @memberof SetScalingPolicyRequest
9202
+ */
9203
+ 'metric': SetScalingPolicyRequestMetricEnum;
9204
+ /**
9205
+ * Target value. Percentage for CPU/Memory; req/sec per task for RPS.
9206
+ * @type {number}
9207
+ * @memberof SetScalingPolicyRequest
9208
+ */
9209
+ 'targetValue': number;
9210
+ /**
9211
+ * Cooldown (seconds) before another scale-in can start.
9212
+ * @type {number}
9213
+ * @memberof SetScalingPolicyRequest
9214
+ */
9215
+ 'scaleInCooldownSeconds'?: number;
9216
+ /**
9217
+ * Cooldown (seconds) before another scale-out can start.
9218
+ * @type {number}
9219
+ * @memberof SetScalingPolicyRequest
9220
+ */
9221
+ 'scaleOutCooldownSeconds'?: number;
9222
+ }
9223
+
9224
+ export const SetScalingPolicyRequestMetricEnum = {
9225
+ CpuUtilization: 'CPUUtilization',
9226
+ MemoryUtilization: 'MemoryUtilization',
9227
+ Rps: 'RPS'
9228
+ } as const;
9229
+
9230
+ export type SetScalingPolicyRequestMetricEnum = typeof SetScalingPolicyRequestMetricEnum[keyof typeof SetScalingPolicyRequestMetricEnum];
9231
+
8320
9232
  /**
8321
9233
  * Spot instance strategy configuration for controlling cost vs reliability. Spot instances provide significant cost savings (~70%) but may be interrupted by AWS. Available for non-production environments.
8322
9234
  * @export
@@ -8756,7 +9668,7 @@ export interface UpdateAIAgentRequest {
8756
9668
  * @type {string}
8757
9669
  * @memberof UpdateAIAgentRequest
8758
9670
  */
8759
- 'guardrailPreset'?: UpdateAIAgentRequestGuardrailPresetEnum;
9671
+ 'guardrailPreset'?: UpdateAIAgentRequestGuardrailPresetEnum | null;
8760
9672
  /**
8761
9673
  * Filter policy IDs to apply to this agent\'s inference requests
8762
9674
  * @type {Array<string>}
@@ -9058,10 +9970,10 @@ export interface UpdateGovernanceConfigRequest {
9058
9970
  'mandatoryFilterPolicies'?: Array<string>;
9059
9971
  /**
9060
9972
  *
9061
- * @type {object}
9973
+ * @type {GetGovernanceConfig200ResponseSpendLimits}
9062
9974
  * @memberof UpdateGovernanceConfigRequest
9063
9975
  */
9064
- 'spendLimits'?: object;
9976
+ 'spendLimits'?: GetGovernanceConfig200ResponseSpendLimits;
9065
9977
  /**
9066
9978
  *
9067
9979
  * @type {number}
@@ -9190,17 +10102,83 @@ export interface UpdateSkillRequest {
9190
10102
  */
9191
10103
  export interface UpdateSlackBotRequest {
9192
10104
  /**
9193
- * Change the backing AI agent
10105
+ * Display name for the bot
9194
10106
  * @type {string}
9195
10107
  * @memberof UpdateSlackBotRequest
9196
10108
  */
9197
- 'agentId'?: string;
10109
+ 'name'?: string;
9198
10110
  /**
9199
10111
  * Enable or disable the bot
9200
10112
  * @type {string}
9201
10113
  * @memberof UpdateSlackBotRequest
9202
10114
  */
9203
10115
  'status'?: UpdateSlackBotRequestStatusEnum;
10116
+ /**
10117
+ * System prompt for the backing AI agent
10118
+ * @type {string}
10119
+ * @memberof UpdateSlackBotRequest
10120
+ */
10121
+ 'systemPrompt'?: string;
10122
+ /**
10123
+ * AI model identifier
10124
+ * @type {string}
10125
+ * @memberof UpdateSlackBotRequest
10126
+ */
10127
+ 'modelId'?: string;
10128
+ /**
10129
+ * Sampling temperature
10130
+ * @type {number}
10131
+ * @memberof UpdateSlackBotRequest
10132
+ */
10133
+ 'temperature'?: number;
10134
+ /**
10135
+ * Maximum response tokens
10136
+ * @type {number}
10137
+ * @memberof UpdateSlackBotRequest
10138
+ */
10139
+ 'maxTokens'?: number;
10140
+ /**
10141
+ * Tools the agent may use
10142
+ * @type {Array<string>}
10143
+ * @memberof UpdateSlackBotRequest
10144
+ */
10145
+ 'allowedTools'?: Array<string>;
10146
+ /**
10147
+ * Skills assigned to the agent
10148
+ * @type {Array<string>}
10149
+ * @memberof UpdateSlackBotRequest
10150
+ */
10151
+ 'assignedSkills'?: Array<string>;
10152
+ /**
10153
+ * Vector DB collections the agent may query
10154
+ * @type {Array<string>}
10155
+ * @memberof UpdateSlackBotRequest
10156
+ */
10157
+ 'allowedCollections'?: Array<string>;
10158
+ /**
10159
+ * Sub-agents the agent may call
10160
+ * @type {Array<string>}
10161
+ * @memberof UpdateSlackBotRequest
10162
+ */
10163
+ 'allowedSubAgents'?: Array<string>;
10164
+ /**
10165
+ * Guardrail preset name
10166
+ * @type {string}
10167
+ * @memberof UpdateSlackBotRequest
10168
+ */
10169
+ 'guardrailPreset'?: string;
10170
+ /**
10171
+ * Content filter policies
10172
+ * @type {Array<string>}
10173
+ * @memberof UpdateSlackBotRequest
10174
+ */
10175
+ 'filterPolicies'?: Array<string>;
10176
+ /**
10177
+ * Enable long context mode
10178
+ * @type {boolean}
10179
+ * @memberof UpdateSlackBotRequest
10180
+ */
10181
+ 'longContext'?: boolean;
9204
10182
  /**
9205
10183
  * Session TTL in days
9206
10184
  * @type {number}
@@ -9213,6 +10191,36 @@ export interface UpdateSlackBotRequest {
9213
10191
  * @memberof UpdateSlackBotRequest
9214
10192
  */
9215
10193
  'allowedChannels'?: Array<string>;
10194
+ /**
10195
+ * Slack user IDs allowed to interact with the bot
10196
+ * @type {Array<string>}
10197
+ * @memberof UpdateSlackBotRequest
10198
+ */
10199
+ 'allowedUsers'?: Array<string>;
10200
+ /**
10201
+ * Slack user IDs denied from interacting with the bot
10202
+ * @type {Array<string>}
10203
+ * @memberof UpdateSlackBotRequest
10204
+ */
10205
+ 'deniedUsers'?: Array<string>;
10206
+ /**
10207
+ * Whether guest users may interact with the bot
10208
+ * @type {boolean}
10209
+ * @memberof UpdateSlackBotRequest
10210
+ */
10211
+ 'allowGuests'?: boolean;
10212
+ /**
10213
+ * Content shown on the bot\'s Home tab in Slack
10214
+ * @type {string}
10215
+ * @memberof UpdateSlackBotRequest
10216
+ */
10217
+ 'homeTabContent'?: string;
10218
+ /**
10219
+ * Agent-level access control settings
10220
+ * @type {object}
10221
+ * @memberof UpdateSlackBotRequest
10222
+ */
10223
+ 'agentAccessControl'?: object;
9216
10224
  /**
9217
10225
  * Whether keyword triggers are enabled
9218
10226
  * @type {boolean}
@@ -9225,12 +10233,6 @@ export interface UpdateSlackBotRequest {
9225
10233
  * @memberof UpdateSlackBotRequest
9226
10234
  */
9227
10235
  'keywords'?: Array<string>;
9228
- /**
9229
- * Slash commands the bot responds to
9230
- * @type {Array<string>}
9231
- * @memberof UpdateSlackBotRequest
9232
- */
9233
- 'slashCommands'?: Array<string>;
9234
10236
  }
9235
10237
 
9236
10238
  export const UpdateSlackBotRequestStatusEnum = {
@@ -9668,7 +10670,7 @@ export interface UpsertAgentOverlayRequest {
9668
10670
  * @type {string}
9669
10671
  * @memberof UpsertAgentOverlayRequest
9670
10672
  */
9671
- 'guardrailPreset'?: UpsertAgentOverlayRequestGuardrailPresetEnum;
10673
+ 'guardrailPreset'?: UpsertAgentOverlayRequestGuardrailPresetEnum | null;
9672
10674
  /**
9673
10675
  * Current version for optimistic concurrency
9674
10676
  * @type {number}
@@ -15660,6 +16662,174 @@ export const WafConfigThresholdsInnerModeEnum = {
15660
16662
  export type WafConfigThresholdsInnerModeEnum = typeof WafConfigThresholdsInnerModeEnum[keyof typeof WafConfigThresholdsInnerModeEnum];
15661
16663
 
15662
16664
 
16665
+ /**
16666
+ * AIApi - axios parameter creator
16667
+ * @export
16668
+ */
16669
+ export const AIApiAxiosParamCreator = function (configuration?: Configuration) {
16670
+ return {
16671
+ /**
16672
+ * 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.
16673
+ * @summary Organisation AI usage breakdown (subscription page parity)
16674
+ * @param {string} organisation
16675
+ * @param {string} [month] YYYY-MM, defaults to current month
16676
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
16677
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \&#39;daily\&#39; to append a 30-day series
16678
+ * @param {string} [userId] Scope the daily series to a user
16679
+ * @param {string} [tokenId] Scope the daily series to a token
16680
+ * @param {*} [options] Override http request option.
16681
+ * @throws {RequiredError}
16682
+ */
16683
+ getAIUsageStats: async (organisation: string, month?: string, groupBy?: GetAIUsageStatsGroupByEnum, include?: GetAIUsageStatsIncludeEnum, userId?: string, tokenId?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
16684
+ // verify required parameter 'organisation' is not null or undefined
16685
+ assertParamExists('getAIUsageStats', 'organisation', organisation)
16686
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
16687
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
16688
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16689
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
16690
+ let baseOptions;
16691
+ if (configuration) {
16692
+ baseOptions = configuration.baseOptions;
16693
+ }
16694
+
16695
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
16696
+ const localVarHeaderParameter = {} as any;
16697
+ const localVarQueryParameter = {} as any;
16698
+
16699
+ // authentication BearerAuth required
16700
+ // http bearer authentication required
16701
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
16702
+
16703
+ if (month !== undefined) {
16704
+ localVarQueryParameter['month'] = month;
16705
+ }
16706
+
16707
+ if (groupBy !== undefined) {
16708
+ localVarQueryParameter['groupBy'] = groupBy;
16709
+ }
16710
+
16711
+ if (include !== undefined) {
16712
+ localVarQueryParameter['include'] = include;
16713
+ }
16714
+
16715
+ if (userId !== undefined) {
16716
+ localVarQueryParameter['userId'] = userId;
16717
+ }
16718
+
16719
+ if (tokenId !== undefined) {
16720
+ localVarQueryParameter['tokenId'] = tokenId;
16721
+ }
16722
+
16723
+
16724
+
16725
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
16726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16727
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
16728
+
16729
+ return {
16730
+ url: toPathString(localVarUrlObj),
16731
+ options: localVarRequestOptions,
16732
+ };
16733
+ },
16734
+ }
16735
+ };
16736
+
16737
+ /**
16738
+ * AIApi - functional programming interface
16739
+ * @export
16740
+ */
16741
+ export const AIApiFp = function(configuration?: Configuration) {
16742
+ const localVarAxiosParamCreator = AIApiAxiosParamCreator(configuration)
16743
+ return {
16744
+ /**
16745
+ * 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.
16746
+ * @summary Organisation AI usage breakdown (subscription page parity)
16747
+ * @param {string} organisation
16748
+ * @param {string} [month] YYYY-MM, defaults to current month
16749
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
16750
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \&#39;daily\&#39; to append a 30-day series
16751
+ * @param {string} [userId] Scope the daily series to a user
16752
+ * @param {string} [tokenId] Scope the daily series to a token
16753
+ * @param {*} [options] Override http request option.
16754
+ * @throws {RequiredError}
16755
+ */
16756
+ async getAIUsageStats(organisation: string, month?: string, groupBy?: GetAIUsageStatsGroupByEnum, include?: GetAIUsageStatsIncludeEnum, userId?: string, tokenId?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
16757
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options);
16758
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
16759
+ const localVarOperationServerBasePath = operationServerMap['AIApi.getAIUsageStats']?.[localVarOperationServerIndex]?.url;
16760
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16761
+ },
16762
+ }
16763
+ };
16764
+
16765
+ /**
16766
+ * AIApi - factory interface
16767
+ * @export
16768
+ */
16769
+ export const AIApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
16770
+ const localVarFp = AIApiFp(configuration)
16771
+ return {
16772
+ /**
16773
+ * 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.
16774
+ * @summary Organisation AI usage breakdown (subscription page parity)
16775
+ * @param {string} organisation
16776
+ * @param {string} [month] YYYY-MM, defaults to current month
16777
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
16778
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \&#39;daily\&#39; to append a 30-day series
16779
+ * @param {string} [userId] Scope the daily series to a user
16780
+ * @param {string} [tokenId] Scope the daily series to a token
16781
+ * @param {*} [options] Override http request option.
16782
+ * @throws {RequiredError}
16783
+ */
16784
+ getAIUsageStats(organisation: string, month?: string, groupBy?: GetAIUsageStatsGroupByEnum, include?: GetAIUsageStatsIncludeEnum, userId?: string, tokenId?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
16785
+ return localVarFp.getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(axios, basePath));
16786
+ },
16787
+ };
16788
+ };
16789
+
16790
+ /**
16791
+ * AIApi - object-oriented interface
16792
+ * @export
16793
+ * @class AIApi
16794
+ * @extends {BaseAPI}
16795
+ */
16796
+ export class AIApi extends BaseAPI {
16797
+ /**
16798
+ * 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.
16799
+ * @summary Organisation AI usage breakdown (subscription page parity)
16800
+ * @param {string} organisation
16801
+ * @param {string} [month] YYYY-MM, defaults to current month
16802
+ * @param {GetAIUsageStatsGroupByEnum} [groupBy]
16803
+ * @param {GetAIUsageStatsIncludeEnum} [include] Set to \&#39;daily\&#39; to append a 30-day series
16804
+ * @param {string} [userId] Scope the daily series to a user
16805
+ * @param {string} [tokenId] Scope the daily series to a token
16806
+ * @param {*} [options] Override http request option.
16807
+ * @throws {RequiredError}
16808
+ * @memberof AIApi
16809
+ */
16810
+ public getAIUsageStats(organisation: string, month?: string, groupBy?: GetAIUsageStatsGroupByEnum, include?: GetAIUsageStatsIncludeEnum, userId?: string, tokenId?: string, options?: RawAxiosRequestConfig) {
16811
+ return AIApiFp(this.configuration).getAIUsageStats(organisation, month, groupBy, include, userId, tokenId, options).then((request) => request(this.axios, this.basePath));
16812
+ }
16813
+ }
16814
+
16815
+ /**
16816
+ * @export
16817
+ */
16818
+ export const GetAIUsageStatsGroupByEnum = {
16819
+ Model: 'model',
16820
+ User: 'user',
16821
+ Token: 'token'
16822
+ } as const;
16823
+ export type GetAIUsageStatsGroupByEnum = typeof GetAIUsageStatsGroupByEnum[keyof typeof GetAIUsageStatsGroupByEnum];
16824
+ /**
16825
+ * @export
16826
+ */
16827
+ export const GetAIUsageStatsIncludeEnum = {
16828
+ Daily: 'daily'
16829
+ } as const;
16830
+ export type GetAIUsageStatsIncludeEnum = typeof GetAIUsageStatsIncludeEnum[keyof typeof GetAIUsageStatsIncludeEnum];
16831
+
16832
+
15663
16833
  /**
15664
16834
  * AIAgentsApi - axios parameter creator
15665
16835
  * @export
@@ -16456,7 +17626,7 @@ export class AIAgentsApi extends BaseAPI {
16456
17626
  export const AICustomToolsApiAxiosParamCreator = function (configuration?: Configuration) {
16457
17627
  return {
16458
17628
  /**
16459
- * 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.
17629
+ * 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.
16460
17630
  * @summary Register Custom Edge Function Tool
16461
17631
  * @param {string} organisation The organisation ID
16462
17632
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -16500,7 +17670,7 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration?: Confi
16500
17670
  };
16501
17671
  },
16502
17672
  /**
16503
- * Deletes a custom tool registration. The underlying edge function is not affected.
17673
+ * Deletes a custom tool registration and its deployed edge function.
16504
17674
  * @summary Delete Custom Tool
16505
17675
  * @param {string} organisation The organisation ID
16506
17676
  * @param {string} toolName The tool name to delete
@@ -16532,6 +17702,48 @@ export const AICustomToolsApiAxiosParamCreator = function (configuration?: Confi
16532
17702
 
16533
17703
 
16534
17704
 
17705
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
17706
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
17707
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
17708
+
17709
+ return {
17710
+ url: toPathString(localVarUrlObj),
17711
+ options: localVarRequestOptions,
17712
+ };
17713
+ },
17714
+ /**
17715
+ * Retrieves a single registered custom tool by name.
17716
+ * @summary Get Custom Tool
17717
+ * @param {string} organisation The organisation ID
17718
+ * @param {string} toolName The tool name to retrieve
17719
+ * @param {*} [options] Override http request option.
17720
+ * @throws {RequiredError}
17721
+ */
17722
+ getCustomTool: async (organisation: string, toolName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
17723
+ // verify required parameter 'organisation' is not null or undefined
17724
+ assertParamExists('getCustomTool', 'organisation', organisation)
17725
+ // verify required parameter 'toolName' is not null or undefined
17726
+ assertParamExists('getCustomTool', 'toolName', toolName)
17727
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/custom-tools/{toolName}`
17728
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
17729
+ .replace(`{${"toolName"}}`, encodeURIComponent(String(toolName)));
17730
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
17731
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
17732
+ let baseOptions;
17733
+ if (configuration) {
17734
+ baseOptions = configuration.baseOptions;
17735
+ }
17736
+
17737
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
17738
+ const localVarHeaderParameter = {} as any;
17739
+ const localVarQueryParameter = {} as any;
17740
+
17741
+ // authentication BearerAuth required
17742
+ // http bearer authentication required
17743
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
17744
+
17745
+
17746
+
16535
17747
  setSearchParams(localVarUrlObj, localVarQueryParameter);
16536
17748
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16537
17749
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -16590,7 +17802,7 @@ export const AICustomToolsApiFp = function(configuration?: Configuration) {
16590
17802
  const localVarAxiosParamCreator = AICustomToolsApiAxiosParamCreator(configuration)
16591
17803
  return {
16592
17804
  /**
16593
- * 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.
17805
+ * 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.
16594
17806
  * @summary Register Custom Edge Function Tool
16595
17807
  * @param {string} organisation The organisation ID
16596
17808
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -16604,7 +17816,7 @@ export const AICustomToolsApiFp = function(configuration?: Configuration) {
16604
17816
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16605
17817
  },
16606
17818
  /**
16607
- * Deletes a custom tool registration. The underlying edge function is not affected.
17819
+ * Deletes a custom tool registration and its deployed edge function.
16608
17820
  * @summary Delete Custom Tool
16609
17821
  * @param {string} organisation The organisation ID
16610
17822
  * @param {string} toolName The tool name to delete
@@ -16617,6 +17829,20 @@ export const AICustomToolsApiFp = function(configuration?: Configuration) {
16617
17829
  const localVarOperationServerBasePath = operationServerMap['AICustomToolsApi.deleteCustomTool']?.[localVarOperationServerIndex]?.url;
16618
17830
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16619
17831
  },
17832
+ /**
17833
+ * Retrieves a single registered custom tool by name.
17834
+ * @summary Get Custom Tool
17835
+ * @param {string} organisation The organisation ID
17836
+ * @param {string} toolName The tool name to retrieve
17837
+ * @param {*} [options] Override http request option.
17838
+ * @throws {RequiredError}
17839
+ */
17840
+ async getCustomTool(organisation: string, toolName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetCustomTool200Response>> {
17841
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getCustomTool(organisation, toolName, options);
17842
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
17843
+ const localVarOperationServerBasePath = operationServerMap['AICustomToolsApi.getCustomTool']?.[localVarOperationServerIndex]?.url;
17844
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
17845
+ },
16620
17846
  /**
16621
17847
  * Lists all registered custom edge function tools for an organization.
16622
17848
  * @summary List Custom Tools
@@ -16641,7 +17867,7 @@ export const AICustomToolsApiFactory = function (configuration?: Configuration,
16641
17867
  const localVarFp = AICustomToolsApiFp(configuration)
16642
17868
  return {
16643
17869
  /**
16644
- * 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.
17870
+ * 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.
16645
17871
  * @summary Register Custom Edge Function Tool
16646
17872
  * @param {string} organisation The organisation ID
16647
17873
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -16652,7 +17878,7 @@ export const AICustomToolsApiFactory = function (configuration?: Configuration,
16652
17878
  return localVarFp.createCustomTool(organisation, createCustomToolRequest, options).then((request) => request(axios, basePath));
16653
17879
  },
16654
17880
  /**
16655
- * Deletes a custom tool registration. The underlying edge function is not affected.
17881
+ * Deletes a custom tool registration and its deployed edge function.
16656
17882
  * @summary Delete Custom Tool
16657
17883
  * @param {string} organisation The organisation ID
16658
17884
  * @param {string} toolName The tool name to delete
@@ -16662,6 +17888,17 @@ export const AICustomToolsApiFactory = function (configuration?: Configuration,
16662
17888
  deleteCustomTool(organisation: string, toolName: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteCustomTool200Response> {
16663
17889
  return localVarFp.deleteCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
16664
17890
  },
17891
+ /**
17892
+ * Retrieves a single registered custom tool by name.
17893
+ * @summary Get Custom Tool
17894
+ * @param {string} organisation The organisation ID
17895
+ * @param {string} toolName The tool name to retrieve
17896
+ * @param {*} [options] Override http request option.
17897
+ * @throws {RequiredError}
17898
+ */
17899
+ getCustomTool(organisation: string, toolName: string, options?: RawAxiosRequestConfig): AxiosPromise<GetCustomTool200Response> {
17900
+ return localVarFp.getCustomTool(organisation, toolName, options).then((request) => request(axios, basePath));
17901
+ },
16665
17902
  /**
16666
17903
  * Lists all registered custom edge function tools for an organization.
16667
17904
  * @summary List Custom Tools
@@ -16683,7 +17920,7 @@ export const AICustomToolsApiFactory = function (configuration?: Configuration,
16683
17920
  */
16684
17921
  export class AICustomToolsApi extends BaseAPI {
16685
17922
  /**
16686
- * 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.
17923
+ * 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.
16687
17924
  * @summary Register Custom Edge Function Tool
16688
17925
  * @param {string} organisation The organisation ID
16689
17926
  * @param {CreateCustomToolRequest} createCustomToolRequest
@@ -16696,7 +17933,7 @@ export class AICustomToolsApi extends BaseAPI {
16696
17933
  }
16697
17934
 
16698
17935
  /**
16699
- * Deletes a custom tool registration. The underlying edge function is not affected.
17936
+ * Deletes a custom tool registration and its deployed edge function.
16700
17937
  * @summary Delete Custom Tool
16701
17938
  * @param {string} organisation The organisation ID
16702
17939
  * @param {string} toolName The tool name to delete
@@ -16708,6 +17945,19 @@ export class AICustomToolsApi extends BaseAPI {
16708
17945
  return AICustomToolsApiFp(this.configuration).deleteCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
16709
17946
  }
16710
17947
 
17948
+ /**
17949
+ * Retrieves a single registered custom tool by name.
17950
+ * @summary Get Custom Tool
17951
+ * @param {string} organisation The organisation ID
17952
+ * @param {string} toolName The tool name to retrieve
17953
+ * @param {*} [options] Override http request option.
17954
+ * @throws {RequiredError}
17955
+ * @memberof AICustomToolsApi
17956
+ */
17957
+ public getCustomTool(organisation: string, toolName: string, options?: RawAxiosRequestConfig) {
17958
+ return AICustomToolsApiFp(this.configuration).getCustomTool(organisation, toolName, options).then((request) => request(this.axios, this.basePath));
17959
+ }
17960
+
16711
17961
  /**
16712
17962
  * Lists all registered custom edge function tools for an organization.
16713
17963
  * @summary List Custom Tools
@@ -18711,126 +19961,6 @@ export const ListAIModelsFeatureEnum = {
18711
19961
  export type ListAIModelsFeatureEnum = typeof ListAIModelsFeatureEnum[keyof typeof ListAIModelsFeatureEnum];
18712
19962
 
18713
19963
 
18714
- /**
18715
- * AIMonitoringApi - axios parameter creator
18716
- * @export
18717
- */
18718
- export const AIMonitoringApiAxiosParamCreator = function (configuration?: Configuration) {
18719
- return {
18720
- /**
18721
- *
18722
- * @summary Get AI usage statistics
18723
- * @param {string} organisation The organisation ID
18724
- * @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
18725
- * @param {*} [options] Override http request option.
18726
- * @throws {RequiredError}
18727
- */
18728
- getAIUsageStats: async (organisation: string, month?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
18729
- // verify required parameter 'organisation' is not null or undefined
18730
- assertParamExists('getAIUsageStats', 'organisation', organisation)
18731
- const localVarPath = `/api/v3/organizations/{organisation}/ai/usage`
18732
- .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
18733
- // use dummy base URL string because the URL constructor only accepts absolute URLs.
18734
- const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
18735
- let baseOptions;
18736
- if (configuration) {
18737
- baseOptions = configuration.baseOptions;
18738
- }
18739
-
18740
- const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
18741
- const localVarHeaderParameter = {} as any;
18742
- const localVarQueryParameter = {} as any;
18743
-
18744
- // authentication BearerAuth required
18745
- // http bearer authentication required
18746
- await setBearerAuthToObject(localVarHeaderParameter, configuration)
18747
-
18748
- if (month !== undefined) {
18749
- localVarQueryParameter['month'] = month;
18750
- }
18751
-
18752
-
18753
-
18754
- setSearchParams(localVarUrlObj, localVarQueryParameter);
18755
- let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
18756
- localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
18757
-
18758
- return {
18759
- url: toPathString(localVarUrlObj),
18760
- options: localVarRequestOptions,
18761
- };
18762
- },
18763
- }
18764
- };
18765
-
18766
- /**
18767
- * AIMonitoringApi - functional programming interface
18768
- * @export
18769
- */
18770
- export const AIMonitoringApiFp = function(configuration?: Configuration) {
18771
- const localVarAxiosParamCreator = AIMonitoringApiAxiosParamCreator(configuration)
18772
- return {
18773
- /**
18774
- *
18775
- * @summary Get AI usage statistics
18776
- * @param {string} organisation The organisation ID
18777
- * @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
18778
- * @param {*} [options] Override http request option.
18779
- * @throws {RequiredError}
18780
- */
18781
- async getAIUsageStats(organisation: string, month?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetAIUsageStats200Response>> {
18782
- const localVarAxiosArgs = await localVarAxiosParamCreator.getAIUsageStats(organisation, month, options);
18783
- const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
18784
- const localVarOperationServerBasePath = operationServerMap['AIMonitoringApi.getAIUsageStats']?.[localVarOperationServerIndex]?.url;
18785
- return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
18786
- },
18787
- }
18788
- };
18789
-
18790
- /**
18791
- * AIMonitoringApi - factory interface
18792
- * @export
18793
- */
18794
- export const AIMonitoringApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
18795
- const localVarFp = AIMonitoringApiFp(configuration)
18796
- return {
18797
- /**
18798
- *
18799
- * @summary Get AI usage statistics
18800
- * @param {string} organisation The organisation ID
18801
- * @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
18802
- * @param {*} [options] Override http request option.
18803
- * @throws {RequiredError}
18804
- */
18805
- getAIUsageStats(organisation: string, month?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetAIUsageStats200Response> {
18806
- return localVarFp.getAIUsageStats(organisation, month, options).then((request) => request(axios, basePath));
18807
- },
18808
- };
18809
- };
18810
-
18811
- /**
18812
- * AIMonitoringApi - object-oriented interface
18813
- * @export
18814
- * @class AIMonitoringApi
18815
- * @extends {BaseAPI}
18816
- */
18817
- export class AIMonitoringApi extends BaseAPI {
18818
- /**
18819
- *
18820
- * @summary Get AI usage statistics
18821
- * @param {string} organisation The organisation ID
18822
- * @param {string} [month] Month to retrieve statistics for (YYYY-MM format)
18823
- * @param {*} [options] Override http request option.
18824
- * @throws {RequiredError}
18825
- * @memberof AIMonitoringApi
18826
- */
18827
- public getAIUsageStats(organisation: string, month?: string, options?: RawAxiosRequestConfig) {
18828
- return AIMonitoringApiFp(this.configuration).getAIUsageStats(organisation, month, options).then((request) => request(this.axios, this.basePath));
18829
- }
18830
- }
18831
-
18832
-
18833
-
18834
19964
  /**
18835
19965
  * AIOrchestrationsApi - axios parameter creator
18836
19966
  * @export
@@ -19637,6 +20767,1560 @@ export const ListOrchestrationsStatusEnum = {
19637
20767
  export type ListOrchestrationsStatusEnum = typeof ListOrchestrationsStatusEnum[keyof typeof ListOrchestrationsStatusEnum];
19638
20768
 
19639
20769
 
20770
+ /**
20771
+ * AISearchApi - axios parameter creator
20772
+ * @export
20773
+ */
20774
+ export const AISearchApiAxiosParamCreator = function (configuration?: Configuration) {
20775
+ return {
20776
+ /**
20777
+ *
20778
+ * @summary RAG chat with AI Search content
20779
+ * @param {string} organisation
20780
+ * @param {string} project
20781
+ * @param {AiSearchChatRequest} aiSearchChatRequest
20782
+ * @param {*} [options] Override http request option.
20783
+ * @throws {RequiredError}
20784
+ */
20785
+ aiSearchChat: async (organisation: string, project: string, aiSearchChatRequest: AiSearchChatRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20786
+ // verify required parameter 'organisation' is not null or undefined
20787
+ assertParamExists('aiSearchChat', 'organisation', organisation)
20788
+ // verify required parameter 'project' is not null or undefined
20789
+ assertParamExists('aiSearchChat', 'project', project)
20790
+ // verify required parameter 'aiSearchChatRequest' is not null or undefined
20791
+ assertParamExists('aiSearchChat', 'aiSearchChatRequest', aiSearchChatRequest)
20792
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/chat`
20793
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
20794
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
20795
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20796
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20797
+ let baseOptions;
20798
+ if (configuration) {
20799
+ baseOptions = configuration.baseOptions;
20800
+ }
20801
+
20802
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20803
+ const localVarHeaderParameter = {} as any;
20804
+ const localVarQueryParameter = {} as any;
20805
+
20806
+ // authentication BearerAuth required
20807
+ // http bearer authentication required
20808
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20809
+
20810
+
20811
+
20812
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20813
+
20814
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20815
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20816
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20817
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchChatRequest, localVarRequestOptions, configuration)
20818
+
20819
+ return {
20820
+ url: toPathString(localVarUrlObj),
20821
+ options: localVarRequestOptions,
20822
+ };
20823
+ },
20824
+ /**
20825
+ *
20826
+ * @summary Delete pages by URLs or patterns
20827
+ * @param {string} organisation
20828
+ * @param {string} project
20829
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
20830
+ * @param {*} [options] Override http request option.
20831
+ * @throws {RequiredError}
20832
+ */
20833
+ aiSearchDeletePages: async (organisation: string, project: string, aiSearchDeletePagesRequest: AiSearchDeletePagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20834
+ // verify required parameter 'organisation' is not null or undefined
20835
+ assertParamExists('aiSearchDeletePages', 'organisation', organisation)
20836
+ // verify required parameter 'project' is not null or undefined
20837
+ assertParamExists('aiSearchDeletePages', 'project', project)
20838
+ // verify required parameter 'aiSearchDeletePagesRequest' is not null or undefined
20839
+ assertParamExists('aiSearchDeletePages', 'aiSearchDeletePagesRequest', aiSearchDeletePagesRequest)
20840
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
20841
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
20842
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
20843
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20844
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20845
+ let baseOptions;
20846
+ if (configuration) {
20847
+ baseOptions = configuration.baseOptions;
20848
+ }
20849
+
20850
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
20851
+ const localVarHeaderParameter = {} as any;
20852
+ const localVarQueryParameter = {} as any;
20853
+
20854
+ // authentication BearerAuth required
20855
+ // http bearer authentication required
20856
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20857
+
20858
+
20859
+
20860
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20861
+
20862
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20863
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20864
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20865
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchDeletePagesRequest, localVarRequestOptions, configuration)
20866
+
20867
+ return {
20868
+ url: toPathString(localVarUrlObj),
20869
+ options: localVarRequestOptions,
20870
+ };
20871
+ },
20872
+ /**
20873
+ *
20874
+ * @summary Disable AI Search for a project
20875
+ * @param {string} organisation
20876
+ * @param {string} project
20877
+ * @param {*} [options] Override http request option.
20878
+ * @throws {RequiredError}
20879
+ */
20880
+ aiSearchDisable: async (organisation: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20881
+ // verify required parameter 'organisation' is not null or undefined
20882
+ assertParamExists('aiSearchDisable', 'organisation', organisation)
20883
+ // verify required parameter 'project' is not null or undefined
20884
+ assertParamExists('aiSearchDisable', 'project', project)
20885
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/disable`
20886
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
20887
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
20888
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20889
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20890
+ let baseOptions;
20891
+ if (configuration) {
20892
+ baseOptions = configuration.baseOptions;
20893
+ }
20894
+
20895
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20896
+ const localVarHeaderParameter = {} as any;
20897
+ const localVarQueryParameter = {} as any;
20898
+
20899
+ // authentication BearerAuth required
20900
+ // http bearer authentication required
20901
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20902
+
20903
+
20904
+
20905
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20906
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20907
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20908
+
20909
+ return {
20910
+ url: toPathString(localVarUrlObj),
20911
+ options: localVarRequestOptions,
20912
+ };
20913
+ },
20914
+ /**
20915
+ *
20916
+ * @summary Enable AI Search for a project
20917
+ * @param {string} organisation
20918
+ * @param {string} project
20919
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
20920
+ * @param {*} [options] Override http request option.
20921
+ * @throws {RequiredError}
20922
+ */
20923
+ aiSearchEnable: async (organisation: string, project: string, aiSearchEnableRequest?: AiSearchEnableRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20924
+ // verify required parameter 'organisation' is not null or undefined
20925
+ assertParamExists('aiSearchEnable', 'organisation', organisation)
20926
+ // verify required parameter 'project' is not null or undefined
20927
+ assertParamExists('aiSearchEnable', 'project', project)
20928
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/enable`
20929
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
20930
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
20931
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20932
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20933
+ let baseOptions;
20934
+ if (configuration) {
20935
+ baseOptions = configuration.baseOptions;
20936
+ }
20937
+
20938
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
20939
+ const localVarHeaderParameter = {} as any;
20940
+ const localVarQueryParameter = {} as any;
20941
+
20942
+ // authentication BearerAuth required
20943
+ // http bearer authentication required
20944
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20945
+
20946
+
20947
+
20948
+ localVarHeaderParameter['Content-Type'] = 'application/json';
20949
+
20950
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20951
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20952
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
20953
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchEnableRequest, localVarRequestOptions, configuration)
20954
+
20955
+ return {
20956
+ url: toPathString(localVarUrlObj),
20957
+ options: localVarRequestOptions,
20958
+ };
20959
+ },
20960
+ /**
20961
+ *
20962
+ * @summary Get AI Search ingest job status
20963
+ * @param {string} organisation
20964
+ * @param {string} project
20965
+ * @param {string} jobId
20966
+ * @param {*} [options] Override http request option.
20967
+ * @throws {RequiredError}
20968
+ */
20969
+ aiSearchGetCrawl: async (organisation: string, project: string, jobId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
20970
+ // verify required parameter 'organisation' is not null or undefined
20971
+ assertParamExists('aiSearchGetCrawl', 'organisation', organisation)
20972
+ // verify required parameter 'project' is not null or undefined
20973
+ assertParamExists('aiSearchGetCrawl', 'project', project)
20974
+ // verify required parameter 'jobId' is not null or undefined
20975
+ assertParamExists('aiSearchGetCrawl', 'jobId', jobId)
20976
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}`
20977
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
20978
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
20979
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
20980
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
20981
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
20982
+ let baseOptions;
20983
+ if (configuration) {
20984
+ baseOptions = configuration.baseOptions;
20985
+ }
20986
+
20987
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
20988
+ const localVarHeaderParameter = {} as any;
20989
+ const localVarQueryParameter = {} as any;
20990
+
20991
+ // authentication BearerAuth required
20992
+ // http bearer authentication required
20993
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
20994
+
20995
+
20996
+
20997
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
20998
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
20999
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21000
+
21001
+ return {
21002
+ url: toPathString(localVarUrlObj),
21003
+ options: localVarRequestOptions,
21004
+ };
21005
+ },
21006
+ /**
21007
+ *
21008
+ * @summary Get per-page ingest results for a crawl job
21009
+ * @param {string} organisation
21010
+ * @param {string} project
21011
+ * @param {string} jobId
21012
+ * @param {number} [limit]
21013
+ * @param {number} [statusCode]
21014
+ * @param {string} [processingStatus]
21015
+ * @param {*} [options] Override http request option.
21016
+ * @throws {RequiredError}
21017
+ */
21018
+ aiSearchGetCrawlPages: async (organisation: string, project: string, jobId: string, limit?: number, statusCode?: number, processingStatus?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21019
+ // verify required parameter 'organisation' is not null or undefined
21020
+ assertParamExists('aiSearchGetCrawlPages', 'organisation', organisation)
21021
+ // verify required parameter 'project' is not null or undefined
21022
+ assertParamExists('aiSearchGetCrawlPages', 'project', project)
21023
+ // verify required parameter 'jobId' is not null or undefined
21024
+ assertParamExists('aiSearchGetCrawlPages', 'jobId', jobId)
21025
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls/{jobId}/pages`
21026
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21027
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
21028
+ .replace(`{${"jobId"}}`, encodeURIComponent(String(jobId)));
21029
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21030
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21031
+ let baseOptions;
21032
+ if (configuration) {
21033
+ baseOptions = configuration.baseOptions;
21034
+ }
21035
+
21036
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21037
+ const localVarHeaderParameter = {} as any;
21038
+ const localVarQueryParameter = {} as any;
21039
+
21040
+ // authentication BearerAuth required
21041
+ // http bearer authentication required
21042
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21043
+
21044
+ if (limit !== undefined) {
21045
+ localVarQueryParameter['limit'] = limit;
21046
+ }
21047
+
21048
+ if (statusCode !== undefined) {
21049
+ localVarQueryParameter['statusCode'] = statusCode;
21050
+ }
21051
+
21052
+ if (processingStatus !== undefined) {
21053
+ localVarQueryParameter['processingStatus'] = processingStatus;
21054
+ }
21055
+
21056
+
21057
+
21058
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21059
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21060
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21061
+
21062
+ return {
21063
+ url: toPathString(localVarUrlObj),
21064
+ options: localVarRequestOptions,
21065
+ };
21066
+ },
21067
+ /**
21068
+ *
21069
+ * @summary Get AI Search public access and rate limit settings
21070
+ * @param {string} organisation
21071
+ * @param {string} project
21072
+ * @param {*} [options] Override http request option.
21073
+ * @throws {RequiredError}
21074
+ */
21075
+ aiSearchGetSettings: async (organisation: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21076
+ // verify required parameter 'organisation' is not null or undefined
21077
+ assertParamExists('aiSearchGetSettings', 'organisation', organisation)
21078
+ // verify required parameter 'project' is not null or undefined
21079
+ assertParamExists('aiSearchGetSettings', 'project', project)
21080
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
21081
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21082
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21083
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21084
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21085
+ let baseOptions;
21086
+ if (configuration) {
21087
+ baseOptions = configuration.baseOptions;
21088
+ }
21089
+
21090
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21091
+ const localVarHeaderParameter = {} as any;
21092
+ const localVarQueryParameter = {} as any;
21093
+
21094
+ // authentication BearerAuth required
21095
+ // http bearer authentication required
21096
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21097
+
21098
+
21099
+
21100
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21101
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21102
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21103
+
21104
+ return {
21105
+ url: toPathString(localVarUrlObj),
21106
+ options: localVarRequestOptions,
21107
+ };
21108
+ },
21109
+ /**
21110
+ *
21111
+ * @summary Ingest pages into the AI Search index
21112
+ * @param {string} organisation
21113
+ * @param {string} project
21114
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
21115
+ * @param {*} [options] Override http request option.
21116
+ * @throws {RequiredError}
21117
+ */
21118
+ aiSearchIngestPages: async (organisation: string, project: string, aiSearchIngestPagesRequest: AiSearchIngestPagesRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21119
+ // verify required parameter 'organisation' is not null or undefined
21120
+ assertParamExists('aiSearchIngestPages', 'organisation', organisation)
21121
+ // verify required parameter 'project' is not null or undefined
21122
+ assertParamExists('aiSearchIngestPages', 'project', project)
21123
+ // verify required parameter 'aiSearchIngestPagesRequest' is not null or undefined
21124
+ assertParamExists('aiSearchIngestPages', 'aiSearchIngestPagesRequest', aiSearchIngestPagesRequest)
21125
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
21126
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21127
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21128
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21129
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21130
+ let baseOptions;
21131
+ if (configuration) {
21132
+ baseOptions = configuration.baseOptions;
21133
+ }
21134
+
21135
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21136
+ const localVarHeaderParameter = {} as any;
21137
+ const localVarQueryParameter = {} as any;
21138
+
21139
+ // authentication BearerAuth required
21140
+ // http bearer authentication required
21141
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21142
+
21143
+
21144
+
21145
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21146
+
21147
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21148
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21149
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21150
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchIngestPagesRequest, localVarRequestOptions, configuration)
21151
+
21152
+ return {
21153
+ url: toPathString(localVarUrlObj),
21154
+ options: localVarRequestOptions,
21155
+ };
21156
+ },
21157
+ /**
21158
+ *
21159
+ * @summary List AI Search ingest jobs
21160
+ * @param {string} organisation
21161
+ * @param {string} project
21162
+ * @param {number} [limit]
21163
+ * @param {*} [options] Override http request option.
21164
+ * @throws {RequiredError}
21165
+ */
21166
+ aiSearchListCrawls: async (organisation: string, project: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21167
+ // verify required parameter 'organisation' is not null or undefined
21168
+ assertParamExists('aiSearchListCrawls', 'organisation', organisation)
21169
+ // verify required parameter 'project' is not null or undefined
21170
+ assertParamExists('aiSearchListCrawls', 'project', project)
21171
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
21172
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21173
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21174
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21175
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21176
+ let baseOptions;
21177
+ if (configuration) {
21178
+ baseOptions = configuration.baseOptions;
21179
+ }
21180
+
21181
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21182
+ const localVarHeaderParameter = {} as any;
21183
+ const localVarQueryParameter = {} as any;
21184
+
21185
+ // authentication BearerAuth required
21186
+ // http bearer authentication required
21187
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21188
+
21189
+ if (limit !== undefined) {
21190
+ localVarQueryParameter['limit'] = limit;
21191
+ }
21192
+
21193
+
21194
+
21195
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21196
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21197
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21198
+
21199
+ return {
21200
+ url: toPathString(localVarUrlObj),
21201
+ options: localVarRequestOptions,
21202
+ };
21203
+ },
21204
+ /**
21205
+ *
21206
+ * @summary List indexed pages with cursor pagination
21207
+ * @param {string} organisation
21208
+ * @param {string} project
21209
+ * @param {number} [limit]
21210
+ * @param {string} [cursor]
21211
+ * @param {string} [search]
21212
+ * @param {*} [options] Override http request option.
21213
+ * @throws {RequiredError}
21214
+ */
21215
+ aiSearchListPages: async (organisation: string, project: string, limit?: number, cursor?: string, search?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21216
+ // verify required parameter 'organisation' is not null or undefined
21217
+ assertParamExists('aiSearchListPages', 'organisation', organisation)
21218
+ // verify required parameter 'project' is not null or undefined
21219
+ assertParamExists('aiSearchListPages', 'project', project)
21220
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/pages`
21221
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21222
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21223
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21224
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21225
+ let baseOptions;
21226
+ if (configuration) {
21227
+ baseOptions = configuration.baseOptions;
21228
+ }
21229
+
21230
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21231
+ const localVarHeaderParameter = {} as any;
21232
+ const localVarQueryParameter = {} as any;
21233
+
21234
+ // authentication BearerAuth required
21235
+ // http bearer authentication required
21236
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21237
+
21238
+ if (limit !== undefined) {
21239
+ localVarQueryParameter['limit'] = limit;
21240
+ }
21241
+
21242
+ if (cursor !== undefined) {
21243
+ localVarQueryParameter['cursor'] = cursor;
21244
+ }
21245
+
21246
+ if (search !== undefined) {
21247
+ localVarQueryParameter['search'] = search;
21248
+ }
21249
+
21250
+
21251
+
21252
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21253
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21254
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21255
+
21256
+ return {
21257
+ url: toPathString(localVarUrlObj),
21258
+ options: localVarRequestOptions,
21259
+ };
21260
+ },
21261
+ /**
21262
+ *
21263
+ * @summary Purge the entire AI Search index
21264
+ * @param {string} organisation
21265
+ * @param {string} project
21266
+ * @param {*} [options] Override http request option.
21267
+ * @throws {RequiredError}
21268
+ */
21269
+ aiSearchPurgeIndex: async (organisation: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21270
+ // verify required parameter 'organisation' is not null or undefined
21271
+ assertParamExists('aiSearchPurgeIndex', 'organisation', organisation)
21272
+ // verify required parameter 'project' is not null or undefined
21273
+ assertParamExists('aiSearchPurgeIndex', 'project', project)
21274
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/index`
21275
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21276
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21277
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21278
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21279
+ let baseOptions;
21280
+ if (configuration) {
21281
+ baseOptions = configuration.baseOptions;
21282
+ }
21283
+
21284
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
21285
+ const localVarHeaderParameter = {} as any;
21286
+ const localVarQueryParameter = {} as any;
21287
+
21288
+ // authentication BearerAuth required
21289
+ // http bearer authentication required
21290
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21291
+
21292
+
21293
+
21294
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21295
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21296
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21297
+
21298
+ return {
21299
+ url: toPathString(localVarUrlObj),
21300
+ options: localVarRequestOptions,
21301
+ };
21302
+ },
21303
+ /**
21304
+ *
21305
+ * @summary Semantic search across the AI Search index
21306
+ * @param {string} organisation
21307
+ * @param {string} project
21308
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
21309
+ * @param {*} [options] Override http request option.
21310
+ * @throws {RequiredError}
21311
+ */
21312
+ aiSearchSearch: async (organisation: string, project: string, aiSearchSearchRequest: AiSearchSearchRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21313
+ // verify required parameter 'organisation' is not null or undefined
21314
+ assertParamExists('aiSearchSearch', 'organisation', organisation)
21315
+ // verify required parameter 'project' is not null or undefined
21316
+ assertParamExists('aiSearchSearch', 'project', project)
21317
+ // verify required parameter 'aiSearchSearchRequest' is not null or undefined
21318
+ assertParamExists('aiSearchSearch', 'aiSearchSearchRequest', aiSearchSearchRequest)
21319
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/search`
21320
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21321
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21322
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21323
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21324
+ let baseOptions;
21325
+ if (configuration) {
21326
+ baseOptions = configuration.baseOptions;
21327
+ }
21328
+
21329
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21330
+ const localVarHeaderParameter = {} as any;
21331
+ const localVarQueryParameter = {} as any;
21332
+
21333
+ // authentication BearerAuth required
21334
+ // http bearer authentication required
21335
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21336
+
21337
+
21338
+
21339
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21340
+
21341
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21342
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21343
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21344
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchSearchRequest, localVarRequestOptions, configuration)
21345
+
21346
+ return {
21347
+ url: toPathString(localVarUrlObj),
21348
+ options: localVarRequestOptions,
21349
+ };
21350
+ },
21351
+ /**
21352
+ *
21353
+ * @summary Get AI Search status for a project
21354
+ * @param {string} organisation
21355
+ * @param {string} project
21356
+ * @param {*} [options] Override http request option.
21357
+ * @throws {RequiredError}
21358
+ */
21359
+ aiSearchStatus: async (organisation: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21360
+ // verify required parameter 'organisation' is not null or undefined
21361
+ assertParamExists('aiSearchStatus', 'organisation', organisation)
21362
+ // verify required parameter 'project' is not null or undefined
21363
+ assertParamExists('aiSearchStatus', 'project', project)
21364
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search`
21365
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21366
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21367
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21368
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21369
+ let baseOptions;
21370
+ if (configuration) {
21371
+ baseOptions = configuration.baseOptions;
21372
+ }
21373
+
21374
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21375
+ const localVarHeaderParameter = {} as any;
21376
+ const localVarQueryParameter = {} as any;
21377
+
21378
+ // authentication BearerAuth required
21379
+ // http bearer authentication required
21380
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21381
+
21382
+
21383
+
21384
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21385
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21386
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21387
+
21388
+ return {
21389
+ url: toPathString(localVarUrlObj),
21390
+ options: localVarRequestOptions,
21391
+ };
21392
+ },
21393
+ /**
21394
+ *
21395
+ * @summary Get the most popular AI Search queries
21396
+ * @param {string} organisation
21397
+ * @param {string} project
21398
+ * @param {string} [range]
21399
+ * @param {number} [limit]
21400
+ * @param {*} [options] Override http request option.
21401
+ * @throws {RequiredError}
21402
+ */
21403
+ aiSearchTopQueries: async (organisation: string, project: string, range?: string, limit?: number, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21404
+ // verify required parameter 'organisation' is not null or undefined
21405
+ assertParamExists('aiSearchTopQueries', 'organisation', organisation)
21406
+ // verify required parameter 'project' is not null or undefined
21407
+ assertParamExists('aiSearchTopQueries', 'project', project)
21408
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/top-queries`
21409
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21410
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21411
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21412
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21413
+ let baseOptions;
21414
+ if (configuration) {
21415
+ baseOptions = configuration.baseOptions;
21416
+ }
21417
+
21418
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21419
+ const localVarHeaderParameter = {} as any;
21420
+ const localVarQueryParameter = {} as any;
21421
+
21422
+ // authentication BearerAuth required
21423
+ // http bearer authentication required
21424
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21425
+
21426
+ if (range !== undefined) {
21427
+ localVarQueryParameter['range'] = range;
21428
+ }
21429
+
21430
+ if (limit !== undefined) {
21431
+ localVarQueryParameter['limit'] = limit;
21432
+ }
21433
+
21434
+
21435
+
21436
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21437
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21438
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21439
+
21440
+ return {
21441
+ url: toPathString(localVarUrlObj),
21442
+ options: localVarRequestOptions,
21443
+ };
21444
+ },
21445
+ /**
21446
+ *
21447
+ * @summary Trigger a crawler run that ingests into AI Search
21448
+ * @param {string} organisation
21449
+ * @param {string} project
21450
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
21451
+ * @param {*} [options] Override http request option.
21452
+ * @throws {RequiredError}
21453
+ */
21454
+ aiSearchTriggerCrawl: async (organisation: string, project: string, aiSearchTriggerCrawlRequest: AiSearchTriggerCrawlRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21455
+ // verify required parameter 'organisation' is not null or undefined
21456
+ assertParamExists('aiSearchTriggerCrawl', 'organisation', organisation)
21457
+ // verify required parameter 'project' is not null or undefined
21458
+ assertParamExists('aiSearchTriggerCrawl', 'project', project)
21459
+ // verify required parameter 'aiSearchTriggerCrawlRequest' is not null or undefined
21460
+ assertParamExists('aiSearchTriggerCrawl', 'aiSearchTriggerCrawlRequest', aiSearchTriggerCrawlRequest)
21461
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/crawls`
21462
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21463
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21464
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21465
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21466
+ let baseOptions;
21467
+ if (configuration) {
21468
+ baseOptions = configuration.baseOptions;
21469
+ }
21470
+
21471
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
21472
+ const localVarHeaderParameter = {} as any;
21473
+ const localVarQueryParameter = {} as any;
21474
+
21475
+ // authentication BearerAuth required
21476
+ // http bearer authentication required
21477
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21478
+
21479
+
21480
+
21481
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21482
+
21483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21485
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21486
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchTriggerCrawlRequest, localVarRequestOptions, configuration)
21487
+
21488
+ return {
21489
+ url: toPathString(localVarUrlObj),
21490
+ options: localVarRequestOptions,
21491
+ };
21492
+ },
21493
+ /**
21494
+ *
21495
+ * @summary Update AI Search public access and rate limit settings
21496
+ * @param {string} organisation
21497
+ * @param {string} project
21498
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
21499
+ * @param {*} [options] Override http request option.
21500
+ * @throws {RequiredError}
21501
+ */
21502
+ aiSearchUpdateSettings: async (organisation: string, project: string, aiSearchUpdateSettingsRequest: AiSearchUpdateSettingsRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21503
+ // verify required parameter 'organisation' is not null or undefined
21504
+ assertParamExists('aiSearchUpdateSettings', 'organisation', organisation)
21505
+ // verify required parameter 'project' is not null or undefined
21506
+ assertParamExists('aiSearchUpdateSettings', 'project', project)
21507
+ // verify required parameter 'aiSearchUpdateSettingsRequest' is not null or undefined
21508
+ assertParamExists('aiSearchUpdateSettings', 'aiSearchUpdateSettingsRequest', aiSearchUpdateSettingsRequest)
21509
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/settings`
21510
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21511
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21512
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21513
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21514
+ let baseOptions;
21515
+ if (configuration) {
21516
+ baseOptions = configuration.baseOptions;
21517
+ }
21518
+
21519
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
21520
+ const localVarHeaderParameter = {} as any;
21521
+ const localVarQueryParameter = {} as any;
21522
+
21523
+ // authentication BearerAuth required
21524
+ // http bearer authentication required
21525
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21526
+
21527
+
21528
+
21529
+ localVarHeaderParameter['Content-Type'] = 'application/json';
21530
+
21531
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21532
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21533
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21534
+ localVarRequestOptions.data = serializeDataIfNeeded(aiSearchUpdateSettingsRequest, localVarRequestOptions, configuration)
21535
+
21536
+ return {
21537
+ url: toPathString(localVarUrlObj),
21538
+ options: localVarRequestOptions,
21539
+ };
21540
+ },
21541
+ /**
21542
+ *
21543
+ * @summary Get usage statistics for the AI Search site
21544
+ * @param {string} organisation
21545
+ * @param {string} project
21546
+ * @param {string} [range]
21547
+ * @param {*} [options] Override http request option.
21548
+ * @throws {RequiredError}
21549
+ */
21550
+ aiSearchUsage: async (organisation: string, project: string, range?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
21551
+ // verify required parameter 'organisation' is not null or undefined
21552
+ assertParamExists('aiSearchUsage', 'organisation', organisation)
21553
+ // verify required parameter 'project' is not null or undefined
21554
+ assertParamExists('aiSearchUsage', 'project', project)
21555
+ const localVarPath = `/api/v3/organisations/{organisation}/projects/{project}/ai-search/usage`
21556
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
21557
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
21558
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
21559
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
21560
+ let baseOptions;
21561
+ if (configuration) {
21562
+ baseOptions = configuration.baseOptions;
21563
+ }
21564
+
21565
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
21566
+ const localVarHeaderParameter = {} as any;
21567
+ const localVarQueryParameter = {} as any;
21568
+
21569
+ // authentication BearerAuth required
21570
+ // http bearer authentication required
21571
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
21572
+
21573
+ if (range !== undefined) {
21574
+ localVarQueryParameter['range'] = range;
21575
+ }
21576
+
21577
+
21578
+
21579
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
21580
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
21581
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
21582
+
21583
+ return {
21584
+ url: toPathString(localVarUrlObj),
21585
+ options: localVarRequestOptions,
21586
+ };
21587
+ },
21588
+ }
21589
+ };
21590
+
21591
+ /**
21592
+ * AISearchApi - functional programming interface
21593
+ * @export
21594
+ */
21595
+ export const AISearchApiFp = function(configuration?: Configuration) {
21596
+ const localVarAxiosParamCreator = AISearchApiAxiosParamCreator(configuration)
21597
+ return {
21598
+ /**
21599
+ *
21600
+ * @summary RAG chat with AI Search content
21601
+ * @param {string} organisation
21602
+ * @param {string} project
21603
+ * @param {AiSearchChatRequest} aiSearchChatRequest
21604
+ * @param {*} [options] Override http request option.
21605
+ * @throws {RequiredError}
21606
+ */
21607
+ async aiSearchChat(organisation: string, project: string, aiSearchChatRequest: AiSearchChatRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchChat(organisation, project, aiSearchChatRequest, options);
21609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21610
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchChat']?.[localVarOperationServerIndex]?.url;
21611
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21612
+ },
21613
+ /**
21614
+ *
21615
+ * @summary Delete pages by URLs or patterns
21616
+ * @param {string} organisation
21617
+ * @param {string} project
21618
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
21619
+ * @param {*} [options] Override http request option.
21620
+ * @throws {RequiredError}
21621
+ */
21622
+ async aiSearchDeletePages(organisation: string, project: string, aiSearchDeletePagesRequest: AiSearchDeletePagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options);
21624
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21625
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchDeletePages']?.[localVarOperationServerIndex]?.url;
21626
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21627
+ },
21628
+ /**
21629
+ *
21630
+ * @summary Disable AI Search for a project
21631
+ * @param {string} organisation
21632
+ * @param {string} project
21633
+ * @param {*} [options] Override http request option.
21634
+ * @throws {RequiredError}
21635
+ */
21636
+ async aiSearchDisable(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21637
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchDisable(organisation, project, options);
21638
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21639
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchDisable']?.[localVarOperationServerIndex]?.url;
21640
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21641
+ },
21642
+ /**
21643
+ *
21644
+ * @summary Enable AI Search for a project
21645
+ * @param {string} organisation
21646
+ * @param {string} project
21647
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
21648
+ * @param {*} [options] Override http request option.
21649
+ * @throws {RequiredError}
21650
+ */
21651
+ async aiSearchEnable(organisation: string, project: string, aiSearchEnableRequest?: AiSearchEnableRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21652
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchEnable(organisation, project, aiSearchEnableRequest, options);
21653
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21654
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchEnable']?.[localVarOperationServerIndex]?.url;
21655
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21656
+ },
21657
+ /**
21658
+ *
21659
+ * @summary Get AI Search ingest job status
21660
+ * @param {string} organisation
21661
+ * @param {string} project
21662
+ * @param {string} jobId
21663
+ * @param {*} [options] Override http request option.
21664
+ * @throws {RequiredError}
21665
+ */
21666
+ async aiSearchGetCrawl(organisation: string, project: string, jobId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21667
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchGetCrawl(organisation, project, jobId, options);
21668
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21669
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchGetCrawl']?.[localVarOperationServerIndex]?.url;
21670
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21671
+ },
21672
+ /**
21673
+ *
21674
+ * @summary Get per-page ingest results for a crawl job
21675
+ * @param {string} organisation
21676
+ * @param {string} project
21677
+ * @param {string} jobId
21678
+ * @param {number} [limit]
21679
+ * @param {number} [statusCode]
21680
+ * @param {string} [processingStatus]
21681
+ * @param {*} [options] Override http request option.
21682
+ * @throws {RequiredError}
21683
+ */
21684
+ async aiSearchGetCrawlPages(organisation: string, project: string, jobId: string, limit?: number, statusCode?: number, processingStatus?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21685
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options);
21686
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21687
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchGetCrawlPages']?.[localVarOperationServerIndex]?.url;
21688
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21689
+ },
21690
+ /**
21691
+ *
21692
+ * @summary Get AI Search public access and rate limit settings
21693
+ * @param {string} organisation
21694
+ * @param {string} project
21695
+ * @param {*} [options] Override http request option.
21696
+ * @throws {RequiredError}
21697
+ */
21698
+ async aiSearchGetSettings(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21699
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchGetSettings(organisation, project, options);
21700
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21701
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchGetSettings']?.[localVarOperationServerIndex]?.url;
21702
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21703
+ },
21704
+ /**
21705
+ *
21706
+ * @summary Ingest pages into the AI Search index
21707
+ * @param {string} organisation
21708
+ * @param {string} project
21709
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
21710
+ * @param {*} [options] Override http request option.
21711
+ * @throws {RequiredError}
21712
+ */
21713
+ async aiSearchIngestPages(organisation: string, project: string, aiSearchIngestPagesRequest: AiSearchIngestPagesRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21714
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options);
21715
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21716
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchIngestPages']?.[localVarOperationServerIndex]?.url;
21717
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21718
+ },
21719
+ /**
21720
+ *
21721
+ * @summary List AI Search ingest jobs
21722
+ * @param {string} organisation
21723
+ * @param {string} project
21724
+ * @param {number} [limit]
21725
+ * @param {*} [options] Override http request option.
21726
+ * @throws {RequiredError}
21727
+ */
21728
+ async aiSearchListCrawls(organisation: string, project: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21729
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchListCrawls(organisation, project, limit, options);
21730
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21731
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchListCrawls']?.[localVarOperationServerIndex]?.url;
21732
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21733
+ },
21734
+ /**
21735
+ *
21736
+ * @summary List indexed pages with cursor pagination
21737
+ * @param {string} organisation
21738
+ * @param {string} project
21739
+ * @param {number} [limit]
21740
+ * @param {string} [cursor]
21741
+ * @param {string} [search]
21742
+ * @param {*} [options] Override http request option.
21743
+ * @throws {RequiredError}
21744
+ */
21745
+ async aiSearchListPages(organisation: string, project: string, limit?: number, cursor?: string, search?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21746
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchListPages(organisation, project, limit, cursor, search, options);
21747
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21748
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchListPages']?.[localVarOperationServerIndex]?.url;
21749
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21750
+ },
21751
+ /**
21752
+ *
21753
+ * @summary Purge the entire AI Search index
21754
+ * @param {string} organisation
21755
+ * @param {string} project
21756
+ * @param {*} [options] Override http request option.
21757
+ * @throws {RequiredError}
21758
+ */
21759
+ async aiSearchPurgeIndex(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21760
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchPurgeIndex(organisation, project, options);
21761
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21762
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchPurgeIndex']?.[localVarOperationServerIndex]?.url;
21763
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21764
+ },
21765
+ /**
21766
+ *
21767
+ * @summary Semantic search across the AI Search index
21768
+ * @param {string} organisation
21769
+ * @param {string} project
21770
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
21771
+ * @param {*} [options] Override http request option.
21772
+ * @throws {RequiredError}
21773
+ */
21774
+ async aiSearchSearch(organisation: string, project: string, aiSearchSearchRequest: AiSearchSearchRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21775
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchSearch(organisation, project, aiSearchSearchRequest, options);
21776
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21777
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchSearch']?.[localVarOperationServerIndex]?.url;
21778
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21779
+ },
21780
+ /**
21781
+ *
21782
+ * @summary Get AI Search status for a project
21783
+ * @param {string} organisation
21784
+ * @param {string} project
21785
+ * @param {*} [options] Override http request option.
21786
+ * @throws {RequiredError}
21787
+ */
21788
+ async aiSearchStatus(organisation: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21789
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchStatus(organisation, project, options);
21790
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21791
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchStatus']?.[localVarOperationServerIndex]?.url;
21792
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21793
+ },
21794
+ /**
21795
+ *
21796
+ * @summary Get the most popular AI Search queries
21797
+ * @param {string} organisation
21798
+ * @param {string} project
21799
+ * @param {string} [range]
21800
+ * @param {number} [limit]
21801
+ * @param {*} [options] Override http request option.
21802
+ * @throws {RequiredError}
21803
+ */
21804
+ async aiSearchTopQueries(organisation: string, project: string, range?: string, limit?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21805
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchTopQueries(organisation, project, range, limit, options);
21806
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21807
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchTopQueries']?.[localVarOperationServerIndex]?.url;
21808
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21809
+ },
21810
+ /**
21811
+ *
21812
+ * @summary Trigger a crawler run that ingests into AI Search
21813
+ * @param {string} organisation
21814
+ * @param {string} project
21815
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
21816
+ * @param {*} [options] Override http request option.
21817
+ * @throws {RequiredError}
21818
+ */
21819
+ async aiSearchTriggerCrawl(organisation: string, project: string, aiSearchTriggerCrawlRequest: AiSearchTriggerCrawlRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21820
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options);
21821
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21822
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchTriggerCrawl']?.[localVarOperationServerIndex]?.url;
21823
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21824
+ },
21825
+ /**
21826
+ *
21827
+ * @summary Update AI Search public access and rate limit settings
21828
+ * @param {string} organisation
21829
+ * @param {string} project
21830
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
21831
+ * @param {*} [options] Override http request option.
21832
+ * @throws {RequiredError}
21833
+ */
21834
+ async aiSearchUpdateSettings(organisation: string, project: string, aiSearchUpdateSettingsRequest: AiSearchUpdateSettingsRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21835
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options);
21836
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21837
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchUpdateSettings']?.[localVarOperationServerIndex]?.url;
21838
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21839
+ },
21840
+ /**
21841
+ *
21842
+ * @summary Get usage statistics for the AI Search site
21843
+ * @param {string} organisation
21844
+ * @param {string} project
21845
+ * @param {string} [range]
21846
+ * @param {*} [options] Override http request option.
21847
+ * @throws {RequiredError}
21848
+ */
21849
+ async aiSearchUsage(organisation: string, project: string, range?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
21850
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiSearchUsage(organisation, project, range, options);
21851
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
21852
+ const localVarOperationServerBasePath = operationServerMap['AISearchApi.aiSearchUsage']?.[localVarOperationServerIndex]?.url;
21853
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21854
+ },
21855
+ }
21856
+ };
21857
+
21858
+ /**
21859
+ * AISearchApi - factory interface
21860
+ * @export
21861
+ */
21862
+ export const AISearchApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
21863
+ const localVarFp = AISearchApiFp(configuration)
21864
+ return {
21865
+ /**
21866
+ *
21867
+ * @summary RAG chat with AI Search content
21868
+ * @param {string} organisation
21869
+ * @param {string} project
21870
+ * @param {AiSearchChatRequest} aiSearchChatRequest
21871
+ * @param {*} [options] Override http request option.
21872
+ * @throws {RequiredError}
21873
+ */
21874
+ aiSearchChat(organisation: string, project: string, aiSearchChatRequest: AiSearchChatRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21875
+ return localVarFp.aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(axios, basePath));
21876
+ },
21877
+ /**
21878
+ *
21879
+ * @summary Delete pages by URLs or patterns
21880
+ * @param {string} organisation
21881
+ * @param {string} project
21882
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
21883
+ * @param {*} [options] Override http request option.
21884
+ * @throws {RequiredError}
21885
+ */
21886
+ aiSearchDeletePages(organisation: string, project: string, aiSearchDeletePagesRequest: AiSearchDeletePagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21887
+ return localVarFp.aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(axios, basePath));
21888
+ },
21889
+ /**
21890
+ *
21891
+ * @summary Disable AI Search for a project
21892
+ * @param {string} organisation
21893
+ * @param {string} project
21894
+ * @param {*} [options] Override http request option.
21895
+ * @throws {RequiredError}
21896
+ */
21897
+ aiSearchDisable(organisation: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21898
+ return localVarFp.aiSearchDisable(organisation, project, options).then((request) => request(axios, basePath));
21899
+ },
21900
+ /**
21901
+ *
21902
+ * @summary Enable AI Search for a project
21903
+ * @param {string} organisation
21904
+ * @param {string} project
21905
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
21906
+ * @param {*} [options] Override http request option.
21907
+ * @throws {RequiredError}
21908
+ */
21909
+ aiSearchEnable(organisation: string, project: string, aiSearchEnableRequest?: AiSearchEnableRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21910
+ return localVarFp.aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(axios, basePath));
21911
+ },
21912
+ /**
21913
+ *
21914
+ * @summary Get AI Search ingest job status
21915
+ * @param {string} organisation
21916
+ * @param {string} project
21917
+ * @param {string} jobId
21918
+ * @param {*} [options] Override http request option.
21919
+ * @throws {RequiredError}
21920
+ */
21921
+ aiSearchGetCrawl(organisation: string, project: string, jobId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21922
+ return localVarFp.aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(axios, basePath));
21923
+ },
21924
+ /**
21925
+ *
21926
+ * @summary Get per-page ingest results for a crawl job
21927
+ * @param {string} organisation
21928
+ * @param {string} project
21929
+ * @param {string} jobId
21930
+ * @param {number} [limit]
21931
+ * @param {number} [statusCode]
21932
+ * @param {string} [processingStatus]
21933
+ * @param {*} [options] Override http request option.
21934
+ * @throws {RequiredError}
21935
+ */
21936
+ aiSearchGetCrawlPages(organisation: string, project: string, jobId: string, limit?: number, statusCode?: number, processingStatus?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21937
+ return localVarFp.aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(axios, basePath));
21938
+ },
21939
+ /**
21940
+ *
21941
+ * @summary Get AI Search public access and rate limit settings
21942
+ * @param {string} organisation
21943
+ * @param {string} project
21944
+ * @param {*} [options] Override http request option.
21945
+ * @throws {RequiredError}
21946
+ */
21947
+ aiSearchGetSettings(organisation: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21948
+ return localVarFp.aiSearchGetSettings(organisation, project, options).then((request) => request(axios, basePath));
21949
+ },
21950
+ /**
21951
+ *
21952
+ * @summary Ingest pages into the AI Search index
21953
+ * @param {string} organisation
21954
+ * @param {string} project
21955
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
21956
+ * @param {*} [options] Override http request option.
21957
+ * @throws {RequiredError}
21958
+ */
21959
+ aiSearchIngestPages(organisation: string, project: string, aiSearchIngestPagesRequest: AiSearchIngestPagesRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21960
+ return localVarFp.aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(axios, basePath));
21961
+ },
21962
+ /**
21963
+ *
21964
+ * @summary List AI Search ingest jobs
21965
+ * @param {string} organisation
21966
+ * @param {string} project
21967
+ * @param {number} [limit]
21968
+ * @param {*} [options] Override http request option.
21969
+ * @throws {RequiredError}
21970
+ */
21971
+ aiSearchListCrawls(organisation: string, project: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21972
+ return localVarFp.aiSearchListCrawls(organisation, project, limit, options).then((request) => request(axios, basePath));
21973
+ },
21974
+ /**
21975
+ *
21976
+ * @summary List indexed pages with cursor pagination
21977
+ * @param {string} organisation
21978
+ * @param {string} project
21979
+ * @param {number} [limit]
21980
+ * @param {string} [cursor]
21981
+ * @param {string} [search]
21982
+ * @param {*} [options] Override http request option.
21983
+ * @throws {RequiredError}
21984
+ */
21985
+ aiSearchListPages(organisation: string, project: string, limit?: number, cursor?: string, search?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21986
+ return localVarFp.aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(axios, basePath));
21987
+ },
21988
+ /**
21989
+ *
21990
+ * @summary Purge the entire AI Search index
21991
+ * @param {string} organisation
21992
+ * @param {string} project
21993
+ * @param {*} [options] Override http request option.
21994
+ * @throws {RequiredError}
21995
+ */
21996
+ aiSearchPurgeIndex(organisation: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
21997
+ return localVarFp.aiSearchPurgeIndex(organisation, project, options).then((request) => request(axios, basePath));
21998
+ },
21999
+ /**
22000
+ *
22001
+ * @summary Semantic search across the AI Search index
22002
+ * @param {string} organisation
22003
+ * @param {string} project
22004
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
22005
+ * @param {*} [options] Override http request option.
22006
+ * @throws {RequiredError}
22007
+ */
22008
+ aiSearchSearch(organisation: string, project: string, aiSearchSearchRequest: AiSearchSearchRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22009
+ return localVarFp.aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(axios, basePath));
22010
+ },
22011
+ /**
22012
+ *
22013
+ * @summary Get AI Search status for a project
22014
+ * @param {string} organisation
22015
+ * @param {string} project
22016
+ * @param {*} [options] Override http request option.
22017
+ * @throws {RequiredError}
22018
+ */
22019
+ aiSearchStatus(organisation: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22020
+ return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
22021
+ },
22022
+ /**
22023
+ *
22024
+ * @summary Get the most popular AI Search queries
22025
+ * @param {string} organisation
22026
+ * @param {string} project
22027
+ * @param {string} [range]
22028
+ * @param {number} [limit]
22029
+ * @param {*} [options] Override http request option.
22030
+ * @throws {RequiredError}
22031
+ */
22032
+ aiSearchTopQueries(organisation: string, project: string, range?: string, limit?: number, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22033
+ return localVarFp.aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(axios, basePath));
22034
+ },
22035
+ /**
22036
+ *
22037
+ * @summary Trigger a crawler run that ingests into AI Search
22038
+ * @param {string} organisation
22039
+ * @param {string} project
22040
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
22041
+ * @param {*} [options] Override http request option.
22042
+ * @throws {RequiredError}
22043
+ */
22044
+ aiSearchTriggerCrawl(organisation: string, project: string, aiSearchTriggerCrawlRequest: AiSearchTriggerCrawlRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22045
+ return localVarFp.aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(axios, basePath));
22046
+ },
22047
+ /**
22048
+ *
22049
+ * @summary Update AI Search public access and rate limit settings
22050
+ * @param {string} organisation
22051
+ * @param {string} project
22052
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
22053
+ * @param {*} [options] Override http request option.
22054
+ * @throws {RequiredError}
22055
+ */
22056
+ aiSearchUpdateSettings(organisation: string, project: string, aiSearchUpdateSettingsRequest: AiSearchUpdateSettingsRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22057
+ return localVarFp.aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(axios, basePath));
22058
+ },
22059
+ /**
22060
+ *
22061
+ * @summary Get usage statistics for the AI Search site
22062
+ * @param {string} organisation
22063
+ * @param {string} project
22064
+ * @param {string} [range]
22065
+ * @param {*} [options] Override http request option.
22066
+ * @throws {RequiredError}
22067
+ */
22068
+ aiSearchUsage(organisation: string, project: string, range?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
22069
+ return localVarFp.aiSearchUsage(organisation, project, range, options).then((request) => request(axios, basePath));
22070
+ },
22071
+ };
22072
+ };
22073
+
22074
+ /**
22075
+ * AISearchApi - object-oriented interface
22076
+ * @export
22077
+ * @class AISearchApi
22078
+ * @extends {BaseAPI}
22079
+ */
22080
+ export class AISearchApi extends BaseAPI {
22081
+ /**
22082
+ *
22083
+ * @summary RAG chat with AI Search content
22084
+ * @param {string} organisation
22085
+ * @param {string} project
22086
+ * @param {AiSearchChatRequest} aiSearchChatRequest
22087
+ * @param {*} [options] Override http request option.
22088
+ * @throws {RequiredError}
22089
+ * @memberof AISearchApi
22090
+ */
22091
+ public aiSearchChat(organisation: string, project: string, aiSearchChatRequest: AiSearchChatRequest, options?: RawAxiosRequestConfig) {
22092
+ return AISearchApiFp(this.configuration).aiSearchChat(organisation, project, aiSearchChatRequest, options).then((request) => request(this.axios, this.basePath));
22093
+ }
22094
+
22095
+ /**
22096
+ *
22097
+ * @summary Delete pages by URLs or patterns
22098
+ * @param {string} organisation
22099
+ * @param {string} project
22100
+ * @param {AiSearchDeletePagesRequest} aiSearchDeletePagesRequest
22101
+ * @param {*} [options] Override http request option.
22102
+ * @throws {RequiredError}
22103
+ * @memberof AISearchApi
22104
+ */
22105
+ public aiSearchDeletePages(organisation: string, project: string, aiSearchDeletePagesRequest: AiSearchDeletePagesRequest, options?: RawAxiosRequestConfig) {
22106
+ return AISearchApiFp(this.configuration).aiSearchDeletePages(organisation, project, aiSearchDeletePagesRequest, options).then((request) => request(this.axios, this.basePath));
22107
+ }
22108
+
22109
+ /**
22110
+ *
22111
+ * @summary Disable AI Search for a project
22112
+ * @param {string} organisation
22113
+ * @param {string} project
22114
+ * @param {*} [options] Override http request option.
22115
+ * @throws {RequiredError}
22116
+ * @memberof AISearchApi
22117
+ */
22118
+ public aiSearchDisable(organisation: string, project: string, options?: RawAxiosRequestConfig) {
22119
+ return AISearchApiFp(this.configuration).aiSearchDisable(organisation, project, options).then((request) => request(this.axios, this.basePath));
22120
+ }
22121
+
22122
+ /**
22123
+ *
22124
+ * @summary Enable AI Search for a project
22125
+ * @param {string} organisation
22126
+ * @param {string} project
22127
+ * @param {AiSearchEnableRequest} [aiSearchEnableRequest]
22128
+ * @param {*} [options] Override http request option.
22129
+ * @throws {RequiredError}
22130
+ * @memberof AISearchApi
22131
+ */
22132
+ public aiSearchEnable(organisation: string, project: string, aiSearchEnableRequest?: AiSearchEnableRequest, options?: RawAxiosRequestConfig) {
22133
+ return AISearchApiFp(this.configuration).aiSearchEnable(organisation, project, aiSearchEnableRequest, options).then((request) => request(this.axios, this.basePath));
22134
+ }
22135
+
22136
+ /**
22137
+ *
22138
+ * @summary Get AI Search ingest job status
22139
+ * @param {string} organisation
22140
+ * @param {string} project
22141
+ * @param {string} jobId
22142
+ * @param {*} [options] Override http request option.
22143
+ * @throws {RequiredError}
22144
+ * @memberof AISearchApi
22145
+ */
22146
+ public aiSearchGetCrawl(organisation: string, project: string, jobId: string, options?: RawAxiosRequestConfig) {
22147
+ return AISearchApiFp(this.configuration).aiSearchGetCrawl(organisation, project, jobId, options).then((request) => request(this.axios, this.basePath));
22148
+ }
22149
+
22150
+ /**
22151
+ *
22152
+ * @summary Get per-page ingest results for a crawl job
22153
+ * @param {string} organisation
22154
+ * @param {string} project
22155
+ * @param {string} jobId
22156
+ * @param {number} [limit]
22157
+ * @param {number} [statusCode]
22158
+ * @param {string} [processingStatus]
22159
+ * @param {*} [options] Override http request option.
22160
+ * @throws {RequiredError}
22161
+ * @memberof AISearchApi
22162
+ */
22163
+ public aiSearchGetCrawlPages(organisation: string, project: string, jobId: string, limit?: number, statusCode?: number, processingStatus?: string, options?: RawAxiosRequestConfig) {
22164
+ return AISearchApiFp(this.configuration).aiSearchGetCrawlPages(organisation, project, jobId, limit, statusCode, processingStatus, options).then((request) => request(this.axios, this.basePath));
22165
+ }
22166
+
22167
+ /**
22168
+ *
22169
+ * @summary Get AI Search public access and rate limit settings
22170
+ * @param {string} organisation
22171
+ * @param {string} project
22172
+ * @param {*} [options] Override http request option.
22173
+ * @throws {RequiredError}
22174
+ * @memberof AISearchApi
22175
+ */
22176
+ public aiSearchGetSettings(organisation: string, project: string, options?: RawAxiosRequestConfig) {
22177
+ return AISearchApiFp(this.configuration).aiSearchGetSettings(organisation, project, options).then((request) => request(this.axios, this.basePath));
22178
+ }
22179
+
22180
+ /**
22181
+ *
22182
+ * @summary Ingest pages into the AI Search index
22183
+ * @param {string} organisation
22184
+ * @param {string} project
22185
+ * @param {AiSearchIngestPagesRequest} aiSearchIngestPagesRequest
22186
+ * @param {*} [options] Override http request option.
22187
+ * @throws {RequiredError}
22188
+ * @memberof AISearchApi
22189
+ */
22190
+ public aiSearchIngestPages(organisation: string, project: string, aiSearchIngestPagesRequest: AiSearchIngestPagesRequest, options?: RawAxiosRequestConfig) {
22191
+ return AISearchApiFp(this.configuration).aiSearchIngestPages(organisation, project, aiSearchIngestPagesRequest, options).then((request) => request(this.axios, this.basePath));
22192
+ }
22193
+
22194
+ /**
22195
+ *
22196
+ * @summary List AI Search ingest jobs
22197
+ * @param {string} organisation
22198
+ * @param {string} project
22199
+ * @param {number} [limit]
22200
+ * @param {*} [options] Override http request option.
22201
+ * @throws {RequiredError}
22202
+ * @memberof AISearchApi
22203
+ */
22204
+ public aiSearchListCrawls(organisation: string, project: string, limit?: number, options?: RawAxiosRequestConfig) {
22205
+ return AISearchApiFp(this.configuration).aiSearchListCrawls(organisation, project, limit, options).then((request) => request(this.axios, this.basePath));
22206
+ }
22207
+
22208
+ /**
22209
+ *
22210
+ * @summary List indexed pages with cursor pagination
22211
+ * @param {string} organisation
22212
+ * @param {string} project
22213
+ * @param {number} [limit]
22214
+ * @param {string} [cursor]
22215
+ * @param {string} [search]
22216
+ * @param {*} [options] Override http request option.
22217
+ * @throws {RequiredError}
22218
+ * @memberof AISearchApi
22219
+ */
22220
+ public aiSearchListPages(organisation: string, project: string, limit?: number, cursor?: string, search?: string, options?: RawAxiosRequestConfig) {
22221
+ return AISearchApiFp(this.configuration).aiSearchListPages(organisation, project, limit, cursor, search, options).then((request) => request(this.axios, this.basePath));
22222
+ }
22223
+
22224
+ /**
22225
+ *
22226
+ * @summary Purge the entire AI Search index
22227
+ * @param {string} organisation
22228
+ * @param {string} project
22229
+ * @param {*} [options] Override http request option.
22230
+ * @throws {RequiredError}
22231
+ * @memberof AISearchApi
22232
+ */
22233
+ public aiSearchPurgeIndex(organisation: string, project: string, options?: RawAxiosRequestConfig) {
22234
+ return AISearchApiFp(this.configuration).aiSearchPurgeIndex(organisation, project, options).then((request) => request(this.axios, this.basePath));
22235
+ }
22236
+
22237
+ /**
22238
+ *
22239
+ * @summary Semantic search across the AI Search index
22240
+ * @param {string} organisation
22241
+ * @param {string} project
22242
+ * @param {AiSearchSearchRequest} aiSearchSearchRequest
22243
+ * @param {*} [options] Override http request option.
22244
+ * @throws {RequiredError}
22245
+ * @memberof AISearchApi
22246
+ */
22247
+ public aiSearchSearch(organisation: string, project: string, aiSearchSearchRequest: AiSearchSearchRequest, options?: RawAxiosRequestConfig) {
22248
+ return AISearchApiFp(this.configuration).aiSearchSearch(organisation, project, aiSearchSearchRequest, options).then((request) => request(this.axios, this.basePath));
22249
+ }
22250
+
22251
+ /**
22252
+ *
22253
+ * @summary Get AI Search status for a project
22254
+ * @param {string} organisation
22255
+ * @param {string} project
22256
+ * @param {*} [options] Override http request option.
22257
+ * @throws {RequiredError}
22258
+ * @memberof AISearchApi
22259
+ */
22260
+ public aiSearchStatus(organisation: string, project: string, options?: RawAxiosRequestConfig) {
22261
+ return AISearchApiFp(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
22262
+ }
22263
+
22264
+ /**
22265
+ *
22266
+ * @summary Get the most popular AI Search queries
22267
+ * @param {string} organisation
22268
+ * @param {string} project
22269
+ * @param {string} [range]
22270
+ * @param {number} [limit]
22271
+ * @param {*} [options] Override http request option.
22272
+ * @throws {RequiredError}
22273
+ * @memberof AISearchApi
22274
+ */
22275
+ public aiSearchTopQueries(organisation: string, project: string, range?: string, limit?: number, options?: RawAxiosRequestConfig) {
22276
+ return AISearchApiFp(this.configuration).aiSearchTopQueries(organisation, project, range, limit, options).then((request) => request(this.axios, this.basePath));
22277
+ }
22278
+
22279
+ /**
22280
+ *
22281
+ * @summary Trigger a crawler run that ingests into AI Search
22282
+ * @param {string} organisation
22283
+ * @param {string} project
22284
+ * @param {AiSearchTriggerCrawlRequest} aiSearchTriggerCrawlRequest
22285
+ * @param {*} [options] Override http request option.
22286
+ * @throws {RequiredError}
22287
+ * @memberof AISearchApi
22288
+ */
22289
+ public aiSearchTriggerCrawl(organisation: string, project: string, aiSearchTriggerCrawlRequest: AiSearchTriggerCrawlRequest, options?: RawAxiosRequestConfig) {
22290
+ return AISearchApiFp(this.configuration).aiSearchTriggerCrawl(organisation, project, aiSearchTriggerCrawlRequest, options).then((request) => request(this.axios, this.basePath));
22291
+ }
22292
+
22293
+ /**
22294
+ *
22295
+ * @summary Update AI Search public access and rate limit settings
22296
+ * @param {string} organisation
22297
+ * @param {string} project
22298
+ * @param {AiSearchUpdateSettingsRequest} aiSearchUpdateSettingsRequest
22299
+ * @param {*} [options] Override http request option.
22300
+ * @throws {RequiredError}
22301
+ * @memberof AISearchApi
22302
+ */
22303
+ public aiSearchUpdateSettings(organisation: string, project: string, aiSearchUpdateSettingsRequest: AiSearchUpdateSettingsRequest, options?: RawAxiosRequestConfig) {
22304
+ return AISearchApiFp(this.configuration).aiSearchUpdateSettings(organisation, project, aiSearchUpdateSettingsRequest, options).then((request) => request(this.axios, this.basePath));
22305
+ }
22306
+
22307
+ /**
22308
+ *
22309
+ * @summary Get usage statistics for the AI Search site
22310
+ * @param {string} organisation
22311
+ * @param {string} project
22312
+ * @param {string} [range]
22313
+ * @param {*} [options] Override http request option.
22314
+ * @throws {RequiredError}
22315
+ * @memberof AISearchApi
22316
+ */
22317
+ public aiSearchUsage(organisation: string, project: string, range?: string, options?: RawAxiosRequestConfig) {
22318
+ return AISearchApiFp(this.configuration).aiSearchUsage(organisation, project, range, options).then((request) => request(this.axios, this.basePath));
22319
+ }
22320
+ }
22321
+
22322
+
22323
+
19640
22324
  /**
19641
22325
  * AISessionsApi - axios parameter creator
19642
22326
  * @export
@@ -21158,7 +23842,7 @@ export class AISkillsApi extends BaseAPI {
21158
23842
  export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configuration) {
21159
23843
  return {
21160
23844
  /**
21161
- * 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
23845
+ * 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
21162
23846
  * @summary Create Slack Bot
21163
23847
  * @param {string} organisation The organisation ID
21164
23848
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -21202,7 +23886,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
21202
23886
  };
21203
23887
  },
21204
23888
  /**
21205
- * Permanently deletes a Slack bot and disconnects it from the workspace.
23889
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
21206
23890
  * @summary Delete Slack Bot
21207
23891
  * @param {string} organisation The organisation ID
21208
23892
  * @param {string} botId The Slack bot ID
@@ -21244,7 +23928,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
21244
23928
  };
21245
23929
  },
21246
23930
  /**
21247
- * Retrieves details for a specific Slack bot including its configuration and connection status.
23931
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
21248
23932
  * @summary Get Slack Bot
21249
23933
  * @param {string} organisation The organisation ID
21250
23934
  * @param {string} botId The Slack bot ID
@@ -21286,7 +23970,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
21286
23970
  };
21287
23971
  },
21288
23972
  /**
21289
- * Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
23973
+ * 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.
21290
23974
  * @summary List Slack Bots
21291
23975
  * @param {string} organisation The organisation ID
21292
23976
  * @param {*} [options] Override http request option.
@@ -21418,7 +24102,7 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
21418
24102
  };
21419
24103
  },
21420
24104
  /**
21421
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
24105
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
21422
24106
  * @summary Update Slack Bot
21423
24107
  * @param {string} organisation The organisation ID
21424
24108
  * @param {string} botId The Slack bot ID
@@ -21476,7 +24160,7 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
21476
24160
  const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration)
21477
24161
  return {
21478
24162
  /**
21479
- * 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
24163
+ * 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
21480
24164
  * @summary Create Slack Bot
21481
24165
  * @param {string} organisation The organisation ID
21482
24166
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -21490,7 +24174,7 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
21490
24174
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21491
24175
  },
21492
24176
  /**
21493
- * Permanently deletes a Slack bot and disconnects it from the workspace.
24177
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
21494
24178
  * @summary Delete Slack Bot
21495
24179
  * @param {string} organisation The organisation ID
21496
24180
  * @param {string} botId The Slack bot ID
@@ -21504,7 +24188,7 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
21504
24188
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21505
24189
  },
21506
24190
  /**
21507
- * Retrieves details for a specific Slack bot including its configuration and connection status.
24191
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
21508
24192
  * @summary Get Slack Bot
21509
24193
  * @param {string} organisation The organisation ID
21510
24194
  * @param {string} botId The Slack bot ID
@@ -21518,7 +24202,7 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
21518
24202
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21519
24203
  },
21520
24204
  /**
21521
- * Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
24205
+ * 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.
21522
24206
  * @summary List Slack Bots
21523
24207
  * @param {string} organisation The organisation ID
21524
24208
  * @param {*} [options] Override http request option.
@@ -21561,7 +24245,7 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
21561
24245
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
21562
24246
  },
21563
24247
  /**
21564
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
24248
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
21565
24249
  * @summary Update Slack Bot
21566
24250
  * @param {string} organisation The organisation ID
21567
24251
  * @param {string} botId The Slack bot ID
@@ -21586,7 +24270,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21586
24270
  const localVarFp = AISlackBotsApiFp(configuration)
21587
24271
  return {
21588
24272
  /**
21589
- * 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
24273
+ * 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
21590
24274
  * @summary Create Slack Bot
21591
24275
  * @param {string} organisation The organisation ID
21592
24276
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -21597,7 +24281,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21597
24281
  return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
21598
24282
  },
21599
24283
  /**
21600
- * Permanently deletes a Slack bot and disconnects it from the workspace.
24284
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
21601
24285
  * @summary Delete Slack Bot
21602
24286
  * @param {string} organisation The organisation ID
21603
24287
  * @param {string} botId The Slack bot ID
@@ -21608,7 +24292,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21608
24292
  return localVarFp.deleteSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
21609
24293
  },
21610
24294
  /**
21611
- * Retrieves details for a specific Slack bot including its configuration and connection status.
24295
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
21612
24296
  * @summary Get Slack Bot
21613
24297
  * @param {string} organisation The organisation ID
21614
24298
  * @param {string} botId The Slack bot ID
@@ -21619,7 +24303,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21619
24303
  return localVarFp.getSlackBot(organisation, botId, options).then((request) => request(axios, basePath));
21620
24304
  },
21621
24305
  /**
21622
- * Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
24306
+ * 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.
21623
24307
  * @summary List Slack Bots
21624
24308
  * @param {string} organisation The organisation ID
21625
24309
  * @param {*} [options] Override http request option.
@@ -21653,7 +24337,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21653
24337
  return localVarFp.searchSlackWorkspaceUsers(organisation, botId, q, options).then((request) => request(axios, basePath));
21654
24338
  },
21655
24339
  /**
21656
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
24340
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
21657
24341
  * @summary Update Slack Bot
21658
24342
  * @param {string} organisation The organisation ID
21659
24343
  * @param {string} botId The Slack bot ID
@@ -21675,7 +24359,7 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
21675
24359
  */
21676
24360
  export class AISlackBotsApi extends BaseAPI {
21677
24361
  /**
21678
- * 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
24362
+ * 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
21679
24363
  * @summary Create Slack Bot
21680
24364
  * @param {string} organisation The organisation ID
21681
24365
  * @param {CreateSlackBotRequest} createSlackBotRequest
@@ -21688,7 +24372,7 @@ export class AISlackBotsApi extends BaseAPI {
21688
24372
  }
21689
24373
 
21690
24374
  /**
21691
- * Permanently deletes a Slack bot and disconnects it from the workspace.
24375
+ * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
21692
24376
  * @summary Delete Slack Bot
21693
24377
  * @param {string} organisation The organisation ID
21694
24378
  * @param {string} botId The Slack bot ID
@@ -21701,7 +24385,7 @@ export class AISlackBotsApi extends BaseAPI {
21701
24385
  }
21702
24386
 
21703
24387
  /**
21704
- * Retrieves details for a specific Slack bot including its configuration and connection status.
24388
+ * Retrieves details for a specific Slack bot including its configuration, connection status, and flattened agent configuration.
21705
24389
  * @summary Get Slack Bot
21706
24390
  * @param {string} organisation The organisation ID
21707
24391
  * @param {string} botId The Slack bot ID
@@ -21714,7 +24398,7 @@ export class AISlackBotsApi extends BaseAPI {
21714
24398
  }
21715
24399
 
21716
24400
  /**
21717
- * Lists all Slack bots configured for the organization. Each bot is backed by an AI agent and can be connected to a Slack workspace.
24401
+ * 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.
21718
24402
  * @summary List Slack Bots
21719
24403
  * @param {string} organisation The organisation ID
21720
24404
  * @param {*} [options] Override http request option.
@@ -21754,7 +24438,7 @@ export class AISlackBotsApi extends BaseAPI {
21754
24438
  }
21755
24439
 
21756
24440
  /**
21757
- * Updates a Slack bot\'s configuration. Only provided fields are updated.
24441
+ * Updates a Slack bot\'s configuration and/or its backing agent. Only provided fields are updated.
21758
24442
  * @summary Update Slack Bot
21759
24443
  * @param {string} organisation The organisation ID
21760
24444
  * @param {string} botId The Slack bot ID
@@ -31442,7 +34126,249 @@ export const PurgeApiAxiosParamCreator = function (configuration?: Configuration
31442
34126
  setSearchParams(localVarUrlObj, localVarQueryParameter);
31443
34127
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31444
34128
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
31445
- localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration)
34129
+ localVarRequestOptions.data = serializeDataIfNeeded(purgeCreateRequest, localVarRequestOptions, configuration)
34130
+
34131
+ return {
34132
+ url: toPathString(localVarUrlObj),
34133
+ options: localVarRequestOptions,
34134
+ };
34135
+ },
34136
+ }
34137
+ };
34138
+
34139
+ /**
34140
+ * PurgeApi - functional programming interface
34141
+ * @export
34142
+ */
34143
+ export const PurgeApiFp = function(configuration?: Configuration) {
34144
+ const localVarAxiosParamCreator = PurgeApiAxiosParamCreator(configuration)
34145
+ return {
34146
+ /**
34147
+ *
34148
+ * @summary Purge cache via URL or cache keys
34149
+ * @param {string} organization Organization identifier
34150
+ * @param {string} project Project identifier
34151
+ * @param {PurgeCreateRequest} purgeCreateRequest
34152
+ * @param {*} [options] Override http request option.
34153
+ * @throws {RequiredError}
34154
+ */
34155
+ async purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
34156
+ const localVarAxiosArgs = await localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
34157
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34158
+ const localVarOperationServerBasePath = operationServerMap['PurgeApi.purgeCreate']?.[localVarOperationServerIndex]?.url;
34159
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34160
+ },
34161
+ }
34162
+ };
34163
+
34164
+ /**
34165
+ * PurgeApi - factory interface
34166
+ * @export
34167
+ */
34168
+ export const PurgeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34169
+ const localVarFp = PurgeApiFp(configuration)
34170
+ return {
34171
+ /**
34172
+ *
34173
+ * @summary Purge cache via URL or cache keys
34174
+ * @param {string} organization Organization identifier
34175
+ * @param {string} project Project identifier
34176
+ * @param {PurgeCreateRequest} purgeCreateRequest
34177
+ * @param {*} [options] Override http request option.
34178
+ * @throws {RequiredError}
34179
+ */
34180
+ purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
34181
+ return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
34182
+ },
34183
+ };
34184
+ };
34185
+
34186
+ /**
34187
+ * PurgeApi - object-oriented interface
34188
+ * @export
34189
+ * @class PurgeApi
34190
+ * @extends {BaseAPI}
34191
+ */
34192
+ export class PurgeApi extends BaseAPI {
34193
+ /**
34194
+ *
34195
+ * @summary Purge cache via URL or cache keys
34196
+ * @param {string} organization Organization identifier
34197
+ * @param {string} project Project identifier
34198
+ * @param {PurgeCreateRequest} purgeCreateRequest
34199
+ * @param {*} [options] Override http request option.
34200
+ * @throws {RequiredError}
34201
+ * @memberof PurgeApi
34202
+ */
34203
+ public purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig) {
34204
+ return PurgeApiFp(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
34205
+ }
34206
+ }
34207
+
34208
+
34209
+
34210
+ /**
34211
+ * RestoreManagementApi - axios parameter creator
34212
+ * @export
34213
+ */
34214
+ export const RestoreManagementApiAxiosParamCreator = function (configuration?: Configuration) {
34215
+ return {
34216
+ /**
34217
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
34218
+ * @summary Get the status of a restore operation
34219
+ * @param {string} organisation The organisation ID
34220
+ * @param {string} application The application ID
34221
+ * @param {string} environment The environment ID
34222
+ * @param {string} restoreId The restore operation ID
34223
+ * @param {*} [options] Override http request option.
34224
+ * @throws {RequiredError}
34225
+ */
34226
+ getRestoreStatus: async (organisation: string, application: string, environment: string, restoreId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34227
+ // verify required parameter 'organisation' is not null or undefined
34228
+ assertParamExists('getRestoreStatus', 'organisation', organisation)
34229
+ // verify required parameter 'application' is not null or undefined
34230
+ assertParamExists('getRestoreStatus', 'application', application)
34231
+ // verify required parameter 'environment' is not null or undefined
34232
+ assertParamExists('getRestoreStatus', 'environment', environment)
34233
+ // verify required parameter 'restoreId' is not null or undefined
34234
+ assertParamExists('getRestoreStatus', 'restoreId', restoreId)
34235
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/restores/{restoreId}`
34236
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
34237
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
34238
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
34239
+ .replace(`{${"restoreId"}}`, encodeURIComponent(String(restoreId)));
34240
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34241
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34242
+ let baseOptions;
34243
+ if (configuration) {
34244
+ baseOptions = configuration.baseOptions;
34245
+ }
34246
+
34247
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34248
+ const localVarHeaderParameter = {} as any;
34249
+ const localVarQueryParameter = {} as any;
34250
+
34251
+ // authentication BearerAuth required
34252
+ // http bearer authentication required
34253
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34254
+
34255
+
34256
+
34257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34260
+
34261
+ return {
34262
+ url: toPathString(localVarUrlObj),
34263
+ options: localVarRequestOptions,
34264
+ };
34265
+ },
34266
+ /**
34267
+ * 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.
34268
+ * @summary Restore a database backup to a target environment
34269
+ * @param {string} organisation The organisation ID
34270
+ * @param {string} application The application ID
34271
+ * @param {string} environment The TARGET environment ID to restore INTO
34272
+ * @param {string} backupId The backup ID to restore from
34273
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
34274
+ * @param {*} [options] Override http request option.
34275
+ * @throws {RequiredError}
34276
+ */
34277
+ restoreDatabase: async (organisation: string, application: string, environment: string, backupId: string, restoreDatabaseRequest: RestoreDatabaseRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34278
+ // verify required parameter 'organisation' is not null or undefined
34279
+ assertParamExists('restoreDatabase', 'organisation', organisation)
34280
+ // verify required parameter 'application' is not null or undefined
34281
+ assertParamExists('restoreDatabase', 'application', application)
34282
+ // verify required parameter 'environment' is not null or undefined
34283
+ assertParamExists('restoreDatabase', 'environment', environment)
34284
+ // verify required parameter 'backupId' is not null or undefined
34285
+ assertParamExists('restoreDatabase', 'backupId', backupId)
34286
+ // verify required parameter 'restoreDatabaseRequest' is not null or undefined
34287
+ assertParamExists('restoreDatabase', 'restoreDatabaseRequest', restoreDatabaseRequest)
34288
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-database`
34289
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
34290
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
34291
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
34292
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
34293
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34294
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34295
+ let baseOptions;
34296
+ if (configuration) {
34297
+ baseOptions = configuration.baseOptions;
34298
+ }
34299
+
34300
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34301
+ const localVarHeaderParameter = {} as any;
34302
+ const localVarQueryParameter = {} as any;
34303
+
34304
+ // authentication BearerAuth required
34305
+ // http bearer authentication required
34306
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34307
+
34308
+
34309
+
34310
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34311
+
34312
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34313
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34314
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34315
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreDatabaseRequest, localVarRequestOptions, configuration)
34316
+
34317
+ return {
34318
+ url: toPathString(localVarUrlObj),
34319
+ options: localVarRequestOptions,
34320
+ };
34321
+ },
34322
+ /**
34323
+ * 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.
34324
+ * @summary Restore a filesystem backup to a target environment
34325
+ * @param {string} organisation The organisation ID
34326
+ * @param {string} application The application ID
34327
+ * @param {string} environment The TARGET environment ID to restore INTO
34328
+ * @param {string} backupId The backup ID to restore from
34329
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
34330
+ * @param {*} [options] Override http request option.
34331
+ * @throws {RequiredError}
34332
+ */
34333
+ restoreFilesystem: async (organisation: string, application: string, environment: string, backupId: string, restoreFilesystemRequest: RestoreFilesystemRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34334
+ // verify required parameter 'organisation' is not null or undefined
34335
+ assertParamExists('restoreFilesystem', 'organisation', organisation)
34336
+ // verify required parameter 'application' is not null or undefined
34337
+ assertParamExists('restoreFilesystem', 'application', application)
34338
+ // verify required parameter 'environment' is not null or undefined
34339
+ assertParamExists('restoreFilesystem', 'environment', environment)
34340
+ // verify required parameter 'backupId' is not null or undefined
34341
+ assertParamExists('restoreFilesystem', 'backupId', backupId)
34342
+ // verify required parameter 'restoreFilesystemRequest' is not null or undefined
34343
+ assertParamExists('restoreFilesystem', 'restoreFilesystemRequest', restoreFilesystemRequest)
34344
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/backups/{backupId}/restore-filesystem`
34345
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
34346
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
34347
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
34348
+ .replace(`{${"backupId"}}`, encodeURIComponent(String(backupId)));
34349
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34350
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34351
+ let baseOptions;
34352
+ if (configuration) {
34353
+ baseOptions = configuration.baseOptions;
34354
+ }
34355
+
34356
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34357
+ const localVarHeaderParameter = {} as any;
34358
+ const localVarQueryParameter = {} as any;
34359
+
34360
+ // authentication BearerAuth required
34361
+ // http bearer authentication required
34362
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34363
+
34364
+
34365
+
34366
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34367
+
34368
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34369
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34370
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34371
+ localVarRequestOptions.data = serializeDataIfNeeded(restoreFilesystemRequest, localVarRequestOptions, configuration)
31446
34372
 
31447
34373
  return {
31448
34374
  url: toPathString(localVarUrlObj),
@@ -31453,71 +34379,168 @@ export const PurgeApiAxiosParamCreator = function (configuration?: Configuration
31453
34379
  };
31454
34380
 
31455
34381
  /**
31456
- * PurgeApi - functional programming interface
34382
+ * RestoreManagementApi - functional programming interface
31457
34383
  * @export
31458
34384
  */
31459
- export const PurgeApiFp = function(configuration?: Configuration) {
31460
- const localVarAxiosParamCreator = PurgeApiAxiosParamCreator(configuration)
34385
+ export const RestoreManagementApiFp = function(configuration?: Configuration) {
34386
+ const localVarAxiosParamCreator = RestoreManagementApiAxiosParamCreator(configuration)
31461
34387
  return {
31462
34388
  /**
31463
- *
31464
- * @summary Purge cache via URL or cache keys
31465
- * @param {string} organization Organization identifier
31466
- * @param {string} project Project identifier
31467
- * @param {PurgeCreateRequest} purgeCreateRequest
34389
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
34390
+ * @summary Get the status of a restore operation
34391
+ * @param {string} organisation The organisation ID
34392
+ * @param {string} application The application ID
34393
+ * @param {string} environment The environment ID
34394
+ * @param {string} restoreId The restore operation ID
31468
34395
  * @param {*} [options] Override http request option.
31469
34396
  * @throws {RequiredError}
31470
34397
  */
31471
- async purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
31472
- const localVarAxiosArgs = await localVarAxiosParamCreator.purgeCreate(organization, project, purgeCreateRequest, options);
34398
+ async getRestoreStatus(organisation: string, application: string, environment: string, restoreId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetRestoreStatus200Response>> {
34399
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getRestoreStatus(organisation, application, environment, restoreId, options);
31473
34400
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
31474
- const localVarOperationServerBasePath = operationServerMap['PurgeApi.purgeCreate']?.[localVarOperationServerIndex]?.url;
34401
+ const localVarOperationServerBasePath = operationServerMap['RestoreManagementApi.getRestoreStatus']?.[localVarOperationServerIndex]?.url;
34402
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34403
+ },
34404
+ /**
34405
+ * 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.
34406
+ * @summary Restore a database backup to a target environment
34407
+ * @param {string} organisation The organisation ID
34408
+ * @param {string} application The application ID
34409
+ * @param {string} environment The TARGET environment ID to restore INTO
34410
+ * @param {string} backupId The backup ID to restore from
34411
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
34412
+ * @param {*} [options] Override http request option.
34413
+ * @throws {RequiredError}
34414
+ */
34415
+ async restoreDatabase(organisation: string, application: string, environment: string, backupId: string, restoreDatabaseRequest: RestoreDatabaseRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreDatabase202Response>> {
34416
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options);
34417
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34418
+ const localVarOperationServerBasePath = operationServerMap['RestoreManagementApi.restoreDatabase']?.[localVarOperationServerIndex]?.url;
34419
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34420
+ },
34421
+ /**
34422
+ * 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.
34423
+ * @summary Restore a filesystem backup to a target environment
34424
+ * @param {string} organisation The organisation ID
34425
+ * @param {string} application The application ID
34426
+ * @param {string} environment The TARGET environment ID to restore INTO
34427
+ * @param {string} backupId The backup ID to restore from
34428
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
34429
+ * @param {*} [options] Override http request option.
34430
+ * @throws {RequiredError}
34431
+ */
34432
+ async restoreFilesystem(organisation: string, application: string, environment: string, backupId: string, restoreFilesystemRequest: RestoreFilesystemRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<RestoreFilesystem202Response>> {
34433
+ const localVarAxiosArgs = await localVarAxiosParamCreator.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options);
34434
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34435
+ const localVarOperationServerBasePath = operationServerMap['RestoreManagementApi.restoreFilesystem']?.[localVarOperationServerIndex]?.url;
31475
34436
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31476
34437
  },
31477
34438
  }
31478
34439
  };
31479
34440
 
31480
34441
  /**
31481
- * PurgeApi - factory interface
34442
+ * RestoreManagementApi - factory interface
31482
34443
  * @export
31483
34444
  */
31484
- export const PurgeApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
31485
- const localVarFp = PurgeApiFp(configuration)
34445
+ export const RestoreManagementApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
34446
+ const localVarFp = RestoreManagementApiFp(configuration)
31486
34447
  return {
31487
34448
  /**
31488
- *
31489
- * @summary Purge cache via URL or cache keys
31490
- * @param {string} organization Organization identifier
31491
- * @param {string} project Project identifier
31492
- * @param {PurgeCreateRequest} purgeCreateRequest
34449
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
34450
+ * @summary Get the status of a restore operation
34451
+ * @param {string} organisation The organisation ID
34452
+ * @param {string} application The application ID
34453
+ * @param {string} environment The environment ID
34454
+ * @param {string} restoreId The restore operation ID
31493
34455
  * @param {*} [options] Override http request option.
31494
34456
  * @throws {RequiredError}
31495
34457
  */
31496
- purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig): AxiosPromise<string> {
31497
- return localVarFp.purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(axios, basePath));
34458
+ getRestoreStatus(organisation: string, application: string, environment: string, restoreId: string, options?: RawAxiosRequestConfig): AxiosPromise<GetRestoreStatus200Response> {
34459
+ return localVarFp.getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(axios, basePath));
34460
+ },
34461
+ /**
34462
+ * 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.
34463
+ * @summary Restore a database backup to a target environment
34464
+ * @param {string} organisation The organisation ID
34465
+ * @param {string} application The application ID
34466
+ * @param {string} environment The TARGET environment ID to restore INTO
34467
+ * @param {string} backupId The backup ID to restore from
34468
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
34469
+ * @param {*} [options] Override http request option.
34470
+ * @throws {RequiredError}
34471
+ */
34472
+ restoreDatabase(organisation: string, application: string, environment: string, backupId: string, restoreDatabaseRequest: RestoreDatabaseRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreDatabase202Response> {
34473
+ return localVarFp.restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(axios, basePath));
34474
+ },
34475
+ /**
34476
+ * 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.
34477
+ * @summary Restore a filesystem backup to a target environment
34478
+ * @param {string} organisation The organisation ID
34479
+ * @param {string} application The application ID
34480
+ * @param {string} environment The TARGET environment ID to restore INTO
34481
+ * @param {string} backupId The backup ID to restore from
34482
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
34483
+ * @param {*} [options] Override http request option.
34484
+ * @throws {RequiredError}
34485
+ */
34486
+ restoreFilesystem(organisation: string, application: string, environment: string, backupId: string, restoreFilesystemRequest: RestoreFilesystemRequest, options?: RawAxiosRequestConfig): AxiosPromise<RestoreFilesystem202Response> {
34487
+ return localVarFp.restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(axios, basePath));
31498
34488
  },
31499
34489
  };
31500
34490
  };
31501
34491
 
31502
34492
  /**
31503
- * PurgeApi - object-oriented interface
34493
+ * RestoreManagementApi - object-oriented interface
31504
34494
  * @export
31505
- * @class PurgeApi
34495
+ * @class RestoreManagementApi
31506
34496
  * @extends {BaseAPI}
31507
34497
  */
31508
- export class PurgeApi extends BaseAPI {
34498
+ export class RestoreManagementApi extends BaseAPI {
31509
34499
  /**
31510
- *
31511
- * @summary Purge cache via URL or cache keys
31512
- * @param {string} organization Organization identifier
31513
- * @param {string} project Project identifier
31514
- * @param {PurgeCreateRequest} purgeCreateRequest
34500
+ * Returns the current status and metadata for a restore operation. Poll this endpoint to track progress.
34501
+ * @summary Get the status of a restore operation
34502
+ * @param {string} organisation The organisation ID
34503
+ * @param {string} application The application ID
34504
+ * @param {string} environment The environment ID
34505
+ * @param {string} restoreId The restore operation ID
31515
34506
  * @param {*} [options] Override http request option.
31516
34507
  * @throws {RequiredError}
31517
- * @memberof PurgeApi
34508
+ * @memberof RestoreManagementApi
31518
34509
  */
31519
- public purgeCreate(organization: string, project: string, purgeCreateRequest: PurgeCreateRequest, options?: RawAxiosRequestConfig) {
31520
- return PurgeApiFp(this.configuration).purgeCreate(organization, project, purgeCreateRequest, options).then((request) => request(this.axios, this.basePath));
34510
+ public getRestoreStatus(organisation: string, application: string, environment: string, restoreId: string, options?: RawAxiosRequestConfig) {
34511
+ return RestoreManagementApiFp(this.configuration).getRestoreStatus(organisation, application, environment, restoreId, options).then((request) => request(this.axios, this.basePath));
34512
+ }
34513
+
34514
+ /**
34515
+ * 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.
34516
+ * @summary Restore a database backup to a target environment
34517
+ * @param {string} organisation The organisation ID
34518
+ * @param {string} application The application ID
34519
+ * @param {string} environment The TARGET environment ID to restore INTO
34520
+ * @param {string} backupId The backup ID to restore from
34521
+ * @param {RestoreDatabaseRequest} restoreDatabaseRequest
34522
+ * @param {*} [options] Override http request option.
34523
+ * @throws {RequiredError}
34524
+ * @memberof RestoreManagementApi
34525
+ */
34526
+ public restoreDatabase(organisation: string, application: string, environment: string, backupId: string, restoreDatabaseRequest: RestoreDatabaseRequest, options?: RawAxiosRequestConfig) {
34527
+ return RestoreManagementApiFp(this.configuration).restoreDatabase(organisation, application, environment, backupId, restoreDatabaseRequest, options).then((request) => request(this.axios, this.basePath));
34528
+ }
34529
+
34530
+ /**
34531
+ * 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.
34532
+ * @summary Restore a filesystem backup to a target environment
34533
+ * @param {string} organisation The organisation ID
34534
+ * @param {string} application The application ID
34535
+ * @param {string} environment The TARGET environment ID to restore INTO
34536
+ * @param {string} backupId The backup ID to restore from
34537
+ * @param {RestoreFilesystemRequest} restoreFilesystemRequest
34538
+ * @param {*} [options] Override http request option.
34539
+ * @throws {RequiredError}
34540
+ * @memberof RestoreManagementApi
34541
+ */
34542
+ public restoreFilesystem(organisation: string, application: string, environment: string, backupId: string, restoreFilesystemRequest: RestoreFilesystemRequest, options?: RawAxiosRequestConfig) {
34543
+ return RestoreManagementApiFp(this.configuration).restoreFilesystem(organisation, application, environment, backupId, restoreFilesystemRequest, options).then((request) => request(this.axios, this.basePath));
31521
34544
  }
31522
34545
  }
31523
34546
 
@@ -35646,29 +38669,27 @@ export class SSHAccessApi extends BaseAPI {
35646
38669
  export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Configuration) {
35647
38670
  return {
35648
38671
  /**
35649
- *
35650
- * @summary Delete the scaling policy for an environment
35651
- * @param {string} organisation The organisation ID
35652
- * @param {string} application The application ID
35653
- * @param {string} environment The environment ID
35654
- * @param {string} policyName The policy name
38672
+ * 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.
38673
+ * @summary Delete Scaling Policy
38674
+ * @param {string} organisation
38675
+ * @param {string} application
38676
+ * @param {string} environment
38677
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
38678
+ * @param {string} [policyName] Optional. Delete by exact policy name.
35655
38679
  * @param {*} [options] Override http request option.
35656
38680
  * @throws {RequiredError}
35657
38681
  */
35658
- deleteScalingPolicy: async (organisation: string, application: string, environment: string, policyName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38682
+ deleteScalingPolicy: async (organisation: string, application: string, environment: string, metric?: DeleteScalingPolicyMetricEnum, policyName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35659
38683
  // verify required parameter 'organisation' is not null or undefined
35660
38684
  assertParamExists('deleteScalingPolicy', 'organisation', organisation)
35661
38685
  // verify required parameter 'application' is not null or undefined
35662
38686
  assertParamExists('deleteScalingPolicy', 'application', application)
35663
38687
  // verify required parameter 'environment' is not null or undefined
35664
38688
  assertParamExists('deleteScalingPolicy', 'environment', environment)
35665
- // verify required parameter 'policyName' is not null or undefined
35666
- assertParamExists('deleteScalingPolicy', 'policyName', policyName)
35667
- const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies/{policyName}`
38689
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
35668
38690
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
35669
38691
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
35670
- .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
35671
- .replace(`{${"policyName"}}`, encodeURIComponent(String(policyName)));
38692
+ .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
35672
38693
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
35673
38694
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
35674
38695
  let baseOptions;
@@ -35684,6 +38705,14 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35684
38705
  // http bearer authentication required
35685
38706
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
35686
38707
 
38708
+ if (metric !== undefined) {
38709
+ localVarQueryParameter['metric'] = metric;
38710
+ }
38711
+
38712
+ if (policyName !== undefined) {
38713
+ localVarQueryParameter['policyName'] = policyName;
38714
+ }
38715
+
35687
38716
 
35688
38717
 
35689
38718
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -35696,21 +38725,23 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35696
38725
  };
35697
38726
  },
35698
38727
  /**
35699
- *
35700
- * @summary Get the scaling policies for an environment
35701
- * @param {string} organisation The organisation ID
35702
- * @param {string} application The application ID
35703
- * @param {string} environment The environment ID
38728
+ * 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).
38729
+ * @summary List Scaling Policies
38730
+ * @param {string} organisation
38731
+ * @param {string} application
38732
+ * @param {string} environment
38733
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
38734
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
35704
38735
  * @param {*} [options] Override http request option.
35705
38736
  * @throws {RequiredError}
35706
38737
  */
35707
- getScalingPolicies: async (organisation: string, application: string, environment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38738
+ listScalingPolicies: async (organisation: string, application: string, environment: string, metric?: ListScalingPoliciesMetricEnum, policyName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35708
38739
  // verify required parameter 'organisation' is not null or undefined
35709
- assertParamExists('getScalingPolicies', 'organisation', organisation)
38740
+ assertParamExists('listScalingPolicies', 'organisation', organisation)
35710
38741
  // verify required parameter 'application' is not null or undefined
35711
- assertParamExists('getScalingPolicies', 'application', application)
38742
+ assertParamExists('listScalingPolicies', 'application', application)
35712
38743
  // verify required parameter 'environment' is not null or undefined
35713
- assertParamExists('getScalingPolicies', 'environment', environment)
38744
+ assertParamExists('listScalingPolicies', 'environment', environment)
35714
38745
  const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
35715
38746
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
35716
38747
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
@@ -35730,6 +38761,14 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35730
38761
  // http bearer authentication required
35731
38762
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
35732
38763
 
38764
+ if (metric !== undefined) {
38765
+ localVarQueryParameter['metric'] = metric;
38766
+ }
38767
+
38768
+ if (policyName !== undefined) {
38769
+ localVarQueryParameter['policyName'] = policyName;
38770
+ }
38771
+
35733
38772
 
35734
38773
 
35735
38774
  setSearchParams(localVarUrlObj, localVarQueryParameter);
@@ -35742,24 +38781,25 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35742
38781
  };
35743
38782
  },
35744
38783
  /**
35745
- *
35746
- * @summary Update the scaling policy for an environment
35747
- * @param {string} organisation The organisation ID
35748
- * @param {string} application The application ID
35749
- * @param {string} environment The environment ID
35750
- * @param {ScalingPolicy} scalingPolicy
38784
+ * 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.
38785
+ * @summary Upsert Scaling Policy
38786
+ * @param {string} organisation
38787
+ * @param {string} application
38788
+ * @param {string} environment
38789
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
38790
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
35751
38791
  * @param {*} [options] Override http request option.
35752
38792
  * @throws {RequiredError}
35753
38793
  */
35754
- updateScalingPolicy: async (organisation: string, application: string, environment: string, scalingPolicy: ScalingPolicy, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
38794
+ upsertScalingPolicy: async (organisation: string, application: string, environment: string, setScalingPolicyRequest: SetScalingPolicyRequest, policyName?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
35755
38795
  // verify required parameter 'organisation' is not null or undefined
35756
- assertParamExists('updateScalingPolicy', 'organisation', organisation)
38796
+ assertParamExists('upsertScalingPolicy', 'organisation', organisation)
35757
38797
  // verify required parameter 'application' is not null or undefined
35758
- assertParamExists('updateScalingPolicy', 'application', application)
38798
+ assertParamExists('upsertScalingPolicy', 'application', application)
35759
38799
  // verify required parameter 'environment' is not null or undefined
35760
- assertParamExists('updateScalingPolicy', 'environment', environment)
35761
- // verify required parameter 'scalingPolicy' is not null or undefined
35762
- assertParamExists('updateScalingPolicy', 'scalingPolicy', scalingPolicy)
38800
+ assertParamExists('upsertScalingPolicy', 'environment', environment)
38801
+ // verify required parameter 'setScalingPolicyRequest' is not null or undefined
38802
+ assertParamExists('upsertScalingPolicy', 'setScalingPolicyRequest', setScalingPolicyRequest)
35763
38803
  const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/scaling-policies`
35764
38804
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
35765
38805
  .replace(`{${"application"}}`, encodeURIComponent(String(application)))
@@ -35779,6 +38819,10 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35779
38819
  // http bearer authentication required
35780
38820
  await setBearerAuthToObject(localVarHeaderParameter, configuration)
35781
38821
 
38822
+ if (policyName !== undefined) {
38823
+ localVarQueryParameter['policyName'] = policyName;
38824
+ }
38825
+
35782
38826
 
35783
38827
 
35784
38828
  localVarHeaderParameter['Content-Type'] = 'application/json';
@@ -35786,7 +38830,7 @@ export const ScalingPolicyApiAxiosParamCreator = function (configuration?: Confi
35786
38830
  setSearchParams(localVarUrlObj, localVarQueryParameter);
35787
38831
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
35788
38832
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
35789
- localVarRequestOptions.data = serializeDataIfNeeded(scalingPolicy, localVarRequestOptions, configuration)
38833
+ localVarRequestOptions.data = serializeDataIfNeeded(setScalingPolicyRequest, localVarRequestOptions, configuration)
35790
38834
 
35791
38835
  return {
35792
38836
  url: toPathString(localVarUrlObj),
@@ -35804,50 +38848,54 @@ export const ScalingPolicyApiFp = function(configuration?: Configuration) {
35804
38848
  const localVarAxiosParamCreator = ScalingPolicyApiAxiosParamCreator(configuration)
35805
38849
  return {
35806
38850
  /**
35807
- *
35808
- * @summary Delete the scaling policy for an environment
35809
- * @param {string} organisation The organisation ID
35810
- * @param {string} application The application ID
35811
- * @param {string} environment The environment ID
35812
- * @param {string} policyName The policy name
38851
+ * 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.
38852
+ * @summary Delete Scaling Policy
38853
+ * @param {string} organisation
38854
+ * @param {string} application
38855
+ * @param {string} environment
38856
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
38857
+ * @param {string} [policyName] Optional. Delete by exact policy name.
35813
38858
  * @param {*} [options] Override http request option.
35814
38859
  * @throws {RequiredError}
35815
38860
  */
35816
- async deleteScalingPolicy(organisation: string, application: string, environment: string, policyName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35817
- const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, policyName, options);
38861
+ async deleteScalingPolicy(organisation: string, application: string, environment: string, metric?: DeleteScalingPolicyMetricEnum, policyName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
38862
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteScalingPolicy(organisation, application, environment, metric, policyName, options);
35818
38863
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35819
38864
  const localVarOperationServerBasePath = operationServerMap['ScalingPolicyApi.deleteScalingPolicy']?.[localVarOperationServerIndex]?.url;
35820
38865
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35821
38866
  },
35822
38867
  /**
35823
- *
35824
- * @summary Get the scaling policies for an environment
35825
- * @param {string} organisation The organisation ID
35826
- * @param {string} application The application ID
35827
- * @param {string} environment The environment ID
38868
+ * 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).
38869
+ * @summary List Scaling Policies
38870
+ * @param {string} organisation
38871
+ * @param {string} application
38872
+ * @param {string} environment
38873
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
38874
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
35828
38875
  * @param {*} [options] Override http request option.
35829
38876
  * @throws {RequiredError}
35830
38877
  */
35831
- async getScalingPolicies(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35832
- const localVarAxiosArgs = await localVarAxiosParamCreator.getScalingPolicies(organisation, application, environment, options);
38878
+ async listScalingPolicies(organisation: string, application: string, environment: string, metric?: ListScalingPoliciesMetricEnum, policyName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ScalingPolicyListResponse>> {
38879
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listScalingPolicies(organisation, application, environment, metric, policyName, options);
35833
38880
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35834
- const localVarOperationServerBasePath = operationServerMap['ScalingPolicyApi.getScalingPolicies']?.[localVarOperationServerIndex]?.url;
38881
+ const localVarOperationServerBasePath = operationServerMap['ScalingPolicyApi.listScalingPolicies']?.[localVarOperationServerIndex]?.url;
35835
38882
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35836
38883
  },
35837
38884
  /**
35838
- *
35839
- * @summary Update the scaling policy for an environment
35840
- * @param {string} organisation The organisation ID
35841
- * @param {string} application The application ID
35842
- * @param {string} environment The environment ID
35843
- * @param {ScalingPolicy} scalingPolicy
38885
+ * 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.
38886
+ * @summary Upsert Scaling Policy
38887
+ * @param {string} organisation
38888
+ * @param {string} application
38889
+ * @param {string} environment
38890
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
38891
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
35844
38892
  * @param {*} [options] Override http request option.
35845
38893
  * @throws {RequiredError}
35846
38894
  */
35847
- async updateScalingPolicy(organisation: string, application: string, environment: string, scalingPolicy: ScalingPolicy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
35848
- const localVarAxiosArgs = await localVarAxiosParamCreator.updateScalingPolicy(organisation, application, environment, scalingPolicy, options);
38895
+ async upsertScalingPolicy(organisation: string, application: string, environment: string, setScalingPolicyRequest: SetScalingPolicyRequest, policyName?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<GetScalingPolicyResponse>> {
38896
+ const localVarAxiosArgs = await localVarAxiosParamCreator.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options);
35849
38897
  const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
35850
- const localVarOperationServerBasePath = operationServerMap['ScalingPolicyApi.updateScalingPolicy']?.[localVarOperationServerIndex]?.url;
38898
+ const localVarOperationServerBasePath = operationServerMap['ScalingPolicyApi.upsertScalingPolicy']?.[localVarOperationServerIndex]?.url;
35851
38899
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
35852
38900
  },
35853
38901
  }
@@ -35861,42 +38909,46 @@ export const ScalingPolicyApiFactory = function (configuration?: Configuration,
35861
38909
  const localVarFp = ScalingPolicyApiFp(configuration)
35862
38910
  return {
35863
38911
  /**
35864
- *
35865
- * @summary Delete the scaling policy for an environment
35866
- * @param {string} organisation The organisation ID
35867
- * @param {string} application The application ID
35868
- * @param {string} environment The environment ID
35869
- * @param {string} policyName The policy name
38912
+ * 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.
38913
+ * @summary Delete Scaling Policy
38914
+ * @param {string} organisation
38915
+ * @param {string} application
38916
+ * @param {string} environment
38917
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
38918
+ * @param {string} [policyName] Optional. Delete by exact policy name.
35870
38919
  * @param {*} [options] Override http request option.
35871
38920
  * @throws {RequiredError}
35872
38921
  */
35873
- deleteScalingPolicy(organisation: string, application: string, environment: string, policyName: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
35874
- return localVarFp.deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(axios, basePath));
38922
+ deleteScalingPolicy(organisation: string, application: string, environment: string, metric?: DeleteScalingPolicyMetricEnum, policyName?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
38923
+ return localVarFp.deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
35875
38924
  },
35876
38925
  /**
35877
- *
35878
- * @summary Get the scaling policies for an environment
35879
- * @param {string} organisation The organisation ID
35880
- * @param {string} application The application ID
35881
- * @param {string} environment The environment ID
38926
+ * 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).
38927
+ * @summary List Scaling Policies
38928
+ * @param {string} organisation
38929
+ * @param {string} application
38930
+ * @param {string} environment
38931
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
38932
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
35882
38933
  * @param {*} [options] Override http request option.
35883
38934
  * @throws {RequiredError}
35884
38935
  */
35885
- getScalingPolicies(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
35886
- return localVarFp.getScalingPolicies(organisation, application, environment, options).then((request) => request(axios, basePath));
38936
+ listScalingPolicies(organisation: string, application: string, environment: string, metric?: ListScalingPoliciesMetricEnum, policyName?: string, options?: RawAxiosRequestConfig): AxiosPromise<ScalingPolicyListResponse> {
38937
+ return localVarFp.listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(axios, basePath));
35887
38938
  },
35888
38939
  /**
35889
- *
35890
- * @summary Update the scaling policy for an environment
35891
- * @param {string} organisation The organisation ID
35892
- * @param {string} application The application ID
35893
- * @param {string} environment The environment ID
35894
- * @param {ScalingPolicy} scalingPolicy
38940
+ * 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.
38941
+ * @summary Upsert Scaling Policy
38942
+ * @param {string} organisation
38943
+ * @param {string} application
38944
+ * @param {string} environment
38945
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
38946
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
35895
38947
  * @param {*} [options] Override http request option.
35896
38948
  * @throws {RequiredError}
35897
38949
  */
35898
- updateScalingPolicy(organisation: string, application: string, environment: string, scalingPolicy: ScalingPolicy, options?: RawAxiosRequestConfig): AxiosPromise<void> {
35899
- return localVarFp.updateScalingPolicy(organisation, application, environment, scalingPolicy, options).then((request) => request(axios, basePath));
38950
+ upsertScalingPolicy(organisation: string, application: string, environment: string, setScalingPolicyRequest: SetScalingPolicyRequest, policyName?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetScalingPolicyResponse> {
38951
+ return localVarFp.upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(axios, basePath));
35900
38952
  },
35901
38953
  };
35902
38954
  };
@@ -35909,47 +38961,189 @@ export const ScalingPolicyApiFactory = function (configuration?: Configuration,
35909
38961
  */
35910
38962
  export class ScalingPolicyApi extends BaseAPI {
35911
38963
  /**
35912
- *
35913
- * @summary Delete the scaling policy for an environment
35914
- * @param {string} organisation The organisation ID
35915
- * @param {string} application The application ID
35916
- * @param {string} environment The environment ID
35917
- * @param {string} policyName The policy name
38964
+ * 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.
38965
+ * @summary Delete Scaling Policy
38966
+ * @param {string} organisation
38967
+ * @param {string} application
38968
+ * @param {string} environment
38969
+ * @param {DeleteScalingPolicyMetricEnum} [metric] Optional. Delete by metric type.
38970
+ * @param {string} [policyName] Optional. Delete by exact policy name.
35918
38971
  * @param {*} [options] Override http request option.
35919
38972
  * @throws {RequiredError}
35920
38973
  * @memberof ScalingPolicyApi
35921
38974
  */
35922
- public deleteScalingPolicy(organisation: string, application: string, environment: string, policyName: string, options?: RawAxiosRequestConfig) {
35923
- return ScalingPolicyApiFp(this.configuration).deleteScalingPolicy(organisation, application, environment, policyName, options).then((request) => request(this.axios, this.basePath));
38975
+ public deleteScalingPolicy(organisation: string, application: string, environment: string, metric?: DeleteScalingPolicyMetricEnum, policyName?: string, options?: RawAxiosRequestConfig) {
38976
+ return ScalingPolicyApiFp(this.configuration).deleteScalingPolicy(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
35924
38977
  }
35925
38978
 
35926
38979
  /**
35927
- *
35928
- * @summary Get the scaling policies for an environment
35929
- * @param {string} organisation The organisation ID
35930
- * @param {string} application The application ID
35931
- * @param {string} environment The environment ID
38980
+ * 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).
38981
+ * @summary List Scaling Policies
38982
+ * @param {string} organisation
38983
+ * @param {string} application
38984
+ * @param {string} environment
38985
+ * @param {ListScalingPoliciesMetricEnum} [metric] Optional. Filter policies by metric type.
38986
+ * @param {string} [policyName] Optional. Filter policies by exact policy name.
35932
38987
  * @param {*} [options] Override http request option.
35933
38988
  * @throws {RequiredError}
35934
38989
  * @memberof ScalingPolicyApi
35935
38990
  */
35936
- public getScalingPolicies(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig) {
35937
- return ScalingPolicyApiFp(this.configuration).getScalingPolicies(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
38991
+ public listScalingPolicies(organisation: string, application: string, environment: string, metric?: ListScalingPoliciesMetricEnum, policyName?: string, options?: RawAxiosRequestConfig) {
38992
+ return ScalingPolicyApiFp(this.configuration).listScalingPolicies(organisation, application, environment, metric, policyName, options).then((request) => request(this.axios, this.basePath));
35938
38993
  }
35939
38994
 
35940
38995
  /**
35941
- *
35942
- * @summary Update the scaling policy for an environment
35943
- * @param {string} organisation The organisation ID
35944
- * @param {string} application The application ID
35945
- * @param {string} environment The environment ID
35946
- * @param {ScalingPolicy} scalingPolicy
38996
+ * 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.
38997
+ * @summary Upsert Scaling Policy
38998
+ * @param {string} organisation
38999
+ * @param {string} application
39000
+ * @param {string} environment
39001
+ * @param {SetScalingPolicyRequest} setScalingPolicyRequest
39002
+ * @param {string} [policyName] Optional. Specify a custom policy name to upsert.
35947
39003
  * @param {*} [options] Override http request option.
35948
39004
  * @throws {RequiredError}
35949
39005
  * @memberof ScalingPolicyApi
35950
39006
  */
35951
- public updateScalingPolicy(organisation: string, application: string, environment: string, scalingPolicy: ScalingPolicy, options?: RawAxiosRequestConfig) {
35952
- return ScalingPolicyApiFp(this.configuration).updateScalingPolicy(organisation, application, environment, scalingPolicy, options).then((request) => request(this.axios, this.basePath));
39007
+ public upsertScalingPolicy(organisation: string, application: string, environment: string, setScalingPolicyRequest: SetScalingPolicyRequest, policyName?: string, options?: RawAxiosRequestConfig) {
39008
+ return ScalingPolicyApiFp(this.configuration).upsertScalingPolicy(organisation, application, environment, setScalingPolicyRequest, policyName, options).then((request) => request(this.axios, this.basePath));
39009
+ }
39010
+ }
39011
+
39012
+ /**
39013
+ * @export
39014
+ */
39015
+ export const DeleteScalingPolicyMetricEnum = {
39016
+ CpuUtilization: 'CPUUtilization',
39017
+ MemoryUtilization: 'MemoryUtilization',
39018
+ Rps: 'RPS'
39019
+ } as const;
39020
+ export type DeleteScalingPolicyMetricEnum = typeof DeleteScalingPolicyMetricEnum[keyof typeof DeleteScalingPolicyMetricEnum];
39021
+ /**
39022
+ * @export
39023
+ */
39024
+ export const ListScalingPoliciesMetricEnum = {
39025
+ CpuUtilization: 'CPUUtilization',
39026
+ MemoryUtilization: 'MemoryUtilization',
39027
+ Rps: 'RPS'
39028
+ } as const;
39029
+ export type ListScalingPoliciesMetricEnum = typeof ListScalingPoliciesMetricEnum[keyof typeof ListScalingPoliciesMetricEnum];
39030
+
39031
+
39032
+ /**
39033
+ * SubscriptionApi - axios parameter creator
39034
+ * @export
39035
+ */
39036
+ export const SubscriptionApiAxiosParamCreator = function (configuration?: Configuration) {
39037
+ return {
39038
+ /**
39039
+ * 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.
39040
+ * @summary Cloud-app cost breakdown for the subscription page
39041
+ * @param {string} organisation
39042
+ * @param {string} [month] YYYY-MM, defaults to current month
39043
+ * @param {*} [options] Override http request option.
39044
+ * @throws {RequiredError}
39045
+ */
39046
+ getSubscriptionCloudUsage: async (organisation: string, month?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
39047
+ // verify required parameter 'organisation' is not null or undefined
39048
+ assertParamExists('getSubscriptionCloudUsage', 'organisation', organisation)
39049
+ const localVarPath = `/api/v3/organizations/{organisation}/subscription/cloud-usage`
39050
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
39051
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
39052
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
39053
+ let baseOptions;
39054
+ if (configuration) {
39055
+ baseOptions = configuration.baseOptions;
39056
+ }
39057
+
39058
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
39059
+ const localVarHeaderParameter = {} as any;
39060
+ const localVarQueryParameter = {} as any;
39061
+
39062
+ // authentication BearerAuth required
39063
+ // http bearer authentication required
39064
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
39065
+
39066
+ if (month !== undefined) {
39067
+ localVarQueryParameter['month'] = month;
39068
+ }
39069
+
39070
+
39071
+
39072
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
39073
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
39074
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
39075
+
39076
+ return {
39077
+ url: toPathString(localVarUrlObj),
39078
+ options: localVarRequestOptions,
39079
+ };
39080
+ },
39081
+ }
39082
+ };
39083
+
39084
+ /**
39085
+ * SubscriptionApi - functional programming interface
39086
+ * @export
39087
+ */
39088
+ export const SubscriptionApiFp = function(configuration?: Configuration) {
39089
+ const localVarAxiosParamCreator = SubscriptionApiAxiosParamCreator(configuration)
39090
+ return {
39091
+ /**
39092
+ * 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.
39093
+ * @summary Cloud-app cost breakdown for the subscription page
39094
+ * @param {string} organisation
39095
+ * @param {string} [month] YYYY-MM, defaults to current month
39096
+ * @param {*} [options] Override http request option.
39097
+ * @throws {RequiredError}
39098
+ */
39099
+ async getSubscriptionCloudUsage(organisation: string, month?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
39100
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSubscriptionCloudUsage(organisation, month, options);
39101
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
39102
+ const localVarOperationServerBasePath = operationServerMap['SubscriptionApi.getSubscriptionCloudUsage']?.[localVarOperationServerIndex]?.url;
39103
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
39104
+ },
39105
+ }
39106
+ };
39107
+
39108
+ /**
39109
+ * SubscriptionApi - factory interface
39110
+ * @export
39111
+ */
39112
+ export const SubscriptionApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
39113
+ const localVarFp = SubscriptionApiFp(configuration)
39114
+ return {
39115
+ /**
39116
+ * 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.
39117
+ * @summary Cloud-app cost breakdown for the subscription page
39118
+ * @param {string} organisation
39119
+ * @param {string} [month] YYYY-MM, defaults to current month
39120
+ * @param {*} [options] Override http request option.
39121
+ * @throws {RequiredError}
39122
+ */
39123
+ getSubscriptionCloudUsage(organisation: string, month?: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
39124
+ return localVarFp.getSubscriptionCloudUsage(organisation, month, options).then((request) => request(axios, basePath));
39125
+ },
39126
+ };
39127
+ };
39128
+
39129
+ /**
39130
+ * SubscriptionApi - object-oriented interface
39131
+ * @export
39132
+ * @class SubscriptionApi
39133
+ * @extends {BaseAPI}
39134
+ */
39135
+ export class SubscriptionApi extends BaseAPI {
39136
+ /**
39137
+ * 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.
39138
+ * @summary Cloud-app cost breakdown for the subscription page
39139
+ * @param {string} organisation
39140
+ * @param {string} [month] YYYY-MM, defaults to current month
39141
+ * @param {*} [options] Override http request option.
39142
+ * @throws {RequiredError}
39143
+ * @memberof SubscriptionApi
39144
+ */
39145
+ public getSubscriptionCloudUsage(organisation: string, month?: string, options?: RawAxiosRequestConfig) {
39146
+ return SubscriptionApiFp(this.configuration).getSubscriptionCloudUsage(organisation, month, options).then((request) => request(this.axios, this.basePath));
35953
39147
  }
35954
39148
  }
35955
39149