@quantcdn/quant-client 4.29.0 → 4.30.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 ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
6
6
  *
7
- * The version of the OpenAPI document: 4.29.0
7
+ * The version of the OpenAPI document: 4.30.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,6 +23,271 @@ 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 AiAuditError
30
+ */
31
+ export interface AiAuditError {
32
+ /**
33
+ * Error message
34
+ * @type {string}
35
+ * @memberof AiAuditError
36
+ */
37
+ 'message': string;
38
+ /**
39
+ *
40
+ * @type {string}
41
+ * @memberof AiAuditError
42
+ */
43
+ 'error': string;
44
+ /**
45
+ *
46
+ * @type {string}
47
+ * @memberof AiAuditError
48
+ */
49
+ 'code'?: string;
50
+ /**
51
+ *
52
+ * @type {boolean}
53
+ * @memberof AiAuditError
54
+ */
55
+ 'retryable'?: boolean;
56
+ }
57
+ /**
58
+ *
59
+ * @export
60
+ * @interface AiAuditRecordGet200Response
61
+ */
62
+ export interface AiAuditRecordGet200Response {
63
+ /**
64
+ *
65
+ * @type {string}
66
+ * @memberof AiAuditRecordGet200Response
67
+ */
68
+ 'key': string;
69
+ /**
70
+ *
71
+ * @type {string}
72
+ * @memberof AiAuditRecordGet200Response
73
+ */
74
+ 'date': string;
75
+ /**
76
+ *
77
+ * @type {AiAuditRecordSummary}
78
+ * @memberof AiAuditRecordGet200Response
79
+ */
80
+ 'summary': AiAuditRecordSummary;
81
+ /**
82
+ *
83
+ * @type {{ [key: string]: any; }}
84
+ * @memberof AiAuditRecordGet200Response
85
+ */
86
+ 'record': { [key: string]: any; };
87
+ }
88
+ /**
89
+ *
90
+ * @export
91
+ * @interface AiAuditRecordRow
92
+ */
93
+ export interface AiAuditRecordRow {
94
+ /**
95
+ * Error message
96
+ * @type {string}
97
+ * @memberof AiAuditRecordRow
98
+ */
99
+ 'message': string;
100
+ /**
101
+ * Error flag
102
+ * @type {boolean}
103
+ * @memberof AiAuditRecordRow
104
+ */
105
+ 'error': boolean;
106
+ /**
107
+ *
108
+ * @type {string}
109
+ * @memberof AiAuditRecordRow
110
+ */
111
+ 'key': string;
112
+ /**
113
+ *
114
+ * @type {string}
115
+ * @memberof AiAuditRecordRow
116
+ */
117
+ 'date': string;
118
+ /**
119
+ *
120
+ * @type {AiAuditRecordSummary}
121
+ * @memberof AiAuditRecordRow
122
+ */
123
+ 'summary': AiAuditRecordSummary;
124
+ /**
125
+ * The stored record. prompt and response are present only when the record has promptStored or responseStored true.
126
+ * @type {{ [key: string]: any; }}
127
+ * @memberof AiAuditRecordRow
128
+ */
129
+ 'record'?: { [key: string]: any; };
130
+ /**
131
+ * too-large: read the record with aiAuditRecordGet.
132
+ * @type {string}
133
+ * @memberof AiAuditRecordRow
134
+ */
135
+ 'omitted'?: AiAuditRecordRowOmittedEnum;
136
+ }
137
+
138
+ export const AiAuditRecordRowOmittedEnum = {
139
+ TooLarge: 'too-large',
140
+ Unreadable: 'unreadable'
141
+ } as const;
142
+
143
+ export type AiAuditRecordRowOmittedEnum = typeof AiAuditRecordRowOmittedEnum[keyof typeof AiAuditRecordRowOmittedEnum];
144
+
145
+ /**
146
+ * Normalised fields of any record type. A field with an unexpected type is left out.
147
+ * @export
148
+ * @interface AiAuditRecordSummary
149
+ */
150
+ export interface AiAuditRecordSummary {
151
+ /**
152
+ * Error message
153
+ * @type {string}
154
+ * @memberof AiAuditRecordSummary
155
+ */
156
+ 'message': string;
157
+ /**
158
+ * Error flag
159
+ * @type {boolean}
160
+ * @memberof AiAuditRecordSummary
161
+ */
162
+ 'error': boolean;
163
+ /**
164
+ * inference for a record without recordType; tool_denied, tool_proposal, tool_decision, tool_outcome, slack_bot_api, audit_access, ...; unknown for an unreadable object
165
+ * @type {string}
166
+ * @memberof AiAuditRecordSummary
167
+ */
168
+ 'recordType': string;
169
+ /**
170
+ *
171
+ * @type {string}
172
+ * @memberof AiAuditRecordSummary
173
+ */
174
+ 'timestamp'?: string;
175
+ /**
176
+ *
177
+ * @type {string}
178
+ * @memberof AiAuditRecordSummary
179
+ */
180
+ 'userId'?: string;
181
+ /**
182
+ *
183
+ * @type {string}
184
+ * @memberof AiAuditRecordSummary
185
+ */
186
+ 'tokenId'?: string;
187
+ /**
188
+ *
189
+ * @type {string}
190
+ * @memberof AiAuditRecordSummary
191
+ */
192
+ 'modelId'?: string;
193
+ /**
194
+ *
195
+ * @type {string}
196
+ * @memberof AiAuditRecordSummary
197
+ */
198
+ 'interface'?: string;
199
+ /**
200
+ *
201
+ * @type {Array<string>}
202
+ * @memberof AiAuditRecordSummary
203
+ */
204
+ 'tools': Array<string>;
205
+ /**
206
+ *
207
+ * @type {string}
208
+ * @memberof AiAuditRecordSummary
209
+ */
210
+ 'decision'?: string;
211
+ /**
212
+ *
213
+ * @type {string}
214
+ * @memberof AiAuditRecordSummary
215
+ */
216
+ 'outcome'?: string;
217
+ }
218
+ /**
219
+ *
220
+ * @export
221
+ * @interface AiAuditRecordsPage
222
+ */
223
+ export interface AiAuditRecordsPage {
224
+ /**
225
+ * Error message
226
+ * @type {string}
227
+ * @memberof AiAuditRecordsPage
228
+ */
229
+ 'message': string;
230
+ /**
231
+ * Error flag
232
+ * @type {boolean}
233
+ * @memberof AiAuditRecordsPage
234
+ */
235
+ 'error': boolean;
236
+ /**
237
+ *
238
+ * @type {string}
239
+ * @memberof AiAuditRecordsPage
240
+ */
241
+ 'orgId': string;
242
+ /**
243
+ *
244
+ * @type {string}
245
+ * @memberof AiAuditRecordsPage
246
+ */
247
+ 'startDate': string;
248
+ /**
249
+ *
250
+ * @type {string}
251
+ * @memberof AiAuditRecordsPage
252
+ */
253
+ 'endDate': string;
254
+ /**
255
+ *
256
+ * @type {number}
257
+ * @memberof AiAuditRecordsPage
258
+ */
259
+ 'count': number;
260
+ /**
261
+ *
262
+ * @type {Array<AiAuditRecordRow>}
263
+ * @memberof AiAuditRecordsPage
264
+ */
265
+ 'records': Array<AiAuditRecordRow>;
266
+ /**
267
+ * Keys examined by this call
268
+ * @type {number}
269
+ * @memberof AiAuditRecordsPage
270
+ */
271
+ 'scanned': number;
272
+ /**
273
+ * Records older than 365 days (archived) that this call left out
274
+ * @type {number}
275
+ * @memberof AiAuditRecordsPage
276
+ */
277
+ 'skippedArchived': number;
278
+ /**
279
+ *
280
+ * @type {boolean}
281
+ * @memberof AiAuditRecordsPage
282
+ */
283
+ 'hasMore': boolean;
284
+ /**
285
+ *
286
+ * @type {string}
287
+ * @memberof AiAuditRecordsPage
288
+ */
289
+ 'nextCursor'?: string;
290
+ }
26
291
  /**
27
292
  *
28
293
  * @export
@@ -228,7 +493,23 @@ export interface AiSearchUpdateSettingsRequest {
228
493
  * @memberof AiSearchUpdateSettingsRequest
229
494
  */
230
495
  'rateLimits'?: object;
496
+ /**
497
+ * What analytics keeps of a visitor\'s query. default: the organisation default (store, or hash for strict organisations).
498
+ * @type {string}
499
+ * @memberof AiSearchUpdateSettingsRequest
500
+ */
501
+ 'queryTextRetention'?: AiSearchUpdateSettingsRequestQueryTextRetentionEnum;
231
502
  }
503
+
504
+ export const AiSearchUpdateSettingsRequestQueryTextRetentionEnum = {
505
+ Default: 'default',
506
+ Store: 'store',
507
+ Hash: 'hash',
508
+ None: 'none'
509
+ } as const;
510
+
511
+ export type AiSearchUpdateSettingsRequestQueryTextRetentionEnum = typeof AiSearchUpdateSettingsRequestQueryTextRetentionEnum[keyof typeof AiSearchUpdateSettingsRequestQueryTextRetentionEnum];
512
+
232
513
  /**
233
514
  *
234
515
  * @export
@@ -3597,6 +3878,101 @@ export const CreateSlackBotRequestSetupTypeEnum = {
3597
3878
 
3598
3879
  export type CreateSlackBotRequestSetupTypeEnum = typeof CreateSlackBotRequestSetupTypeEnum[keyof typeof CreateSlackBotRequestSetupTypeEnum];
3599
3880
 
3881
+ /**
3882
+ *
3883
+ * @export
3884
+ * @interface CreateSlackInteractionRequest
3885
+ */
3886
+ export interface CreateSlackInteractionRequest {
3887
+ /**
3888
+ *
3889
+ * @type {string}
3890
+ * @memberof CreateSlackInteractionRequest
3891
+ */
3892
+ 'channel': string;
3893
+ /**
3894
+ *
3895
+ * @type {string}
3896
+ * @memberof CreateSlackInteractionRequest
3897
+ */
3898
+ 'threadTs'?: string;
3899
+ /**
3900
+ *
3901
+ * @type {string}
3902
+ * @memberof CreateSlackInteractionRequest
3903
+ */
3904
+ 'text': string;
3905
+ /**
3906
+ *
3907
+ * @type {Array<CreateSlackInteractionRequestActionsInner>}
3908
+ * @memberof CreateSlackInteractionRequest
3909
+ */
3910
+ 'actions': Array<CreateSlackInteractionRequestActionsInner>;
3911
+ /**
3912
+ *
3913
+ * @type {string}
3914
+ * @memberof CreateSlackInteractionRequest
3915
+ */
3916
+ 'responseMode'?: CreateSlackInteractionRequestResponseModeEnum;
3917
+ /**
3918
+ *
3919
+ * @type {number}
3920
+ * @memberof CreateSlackInteractionRequest
3921
+ */
3922
+ 'expiresInSeconds'?: number;
3923
+ /**
3924
+ *
3925
+ * @type {Array<string>}
3926
+ * @memberof CreateSlackInteractionRequest
3927
+ */
3928
+ 'allowedUsers'?: Array<string>;
3929
+ /**
3930
+ * Opaque caller data, at most 4096 bytes of canonical JSON
3931
+ * @type {object}
3932
+ * @memberof CreateSlackInteractionRequest
3933
+ */
3934
+ 'metadata'?: object;
3935
+ }
3936
+
3937
+ export const CreateSlackInteractionRequestResponseModeEnum = {
3938
+ Single: 'single'
3939
+ } as const;
3940
+
3941
+ export type CreateSlackInteractionRequestResponseModeEnum = typeof CreateSlackInteractionRequestResponseModeEnum[keyof typeof CreateSlackInteractionRequestResponseModeEnum];
3942
+
3943
+ /**
3944
+ *
3945
+ * @export
3946
+ * @interface CreateSlackInteractionRequestActionsInner
3947
+ */
3948
+ export interface CreateSlackInteractionRequestActionsInner {
3949
+ /**
3950
+ *
3951
+ * @type {string}
3952
+ * @memberof CreateSlackInteractionRequestActionsInner
3953
+ */
3954
+ 'id': string;
3955
+ /**
3956
+ *
3957
+ * @type {string}
3958
+ * @memberof CreateSlackInteractionRequestActionsInner
3959
+ */
3960
+ 'label': string;
3961
+ /**
3962
+ *
3963
+ * @type {string}
3964
+ * @memberof CreateSlackInteractionRequestActionsInner
3965
+ */
3966
+ 'style'?: CreateSlackInteractionRequestActionsInnerStyleEnum;
3967
+ }
3968
+
3969
+ export const CreateSlackInteractionRequestActionsInnerStyleEnum = {
3970
+ Primary: 'primary',
3971
+ Danger: 'danger'
3972
+ } as const;
3973
+
3974
+ export type CreateSlackInteractionRequestActionsInnerStyleEnum = typeof CreateSlackInteractionRequestActionsInnerStyleEnum[keyof typeof CreateSlackInteractionRequestActionsInnerStyleEnum];
3975
+
3600
3976
  /**
3601
3977
  *
3602
3978
  * @export
@@ -3879,7 +4255,69 @@ export interface Cron {
3879
4255
  * @memberof Cron
3880
4256
  */
3881
4257
  'isEnabled'?: boolean;
4258
+ /**
4259
+ * The newest run of the job. Null when the job has never run. Sent by the cron list.
4260
+ * @type {CronLastRun}
4261
+ * @memberof Cron
4262
+ */
4263
+ 'lastRun'?: CronLastRun | null;
4264
+ /**
4265
+ * Failed runs (FAILED or FAILED_TO_START) from the newest run back to the first run that did not fail, counted over the latest 10 runs. 0 when the newest run did not fail. Sent by the cron list.
4266
+ * @type {number}
4267
+ * @memberof Cron
4268
+ */
4269
+ 'consecutiveFailures'?: number;
3882
4270
  }
4271
+ /**
4272
+ * Summary of the newest run of a cron job.
4273
+ * @export
4274
+ * @interface CronLastRun
4275
+ */
4276
+ export interface CronLastRun {
4277
+ /**
4278
+ *
4279
+ * @type {string}
4280
+ * @memberof CronLastRun
4281
+ */
4282
+ 'runId'?: string;
4283
+ /**
4284
+ * FAILED_TO_START: the task could not be launched, so the command never ran (for example, the job targets a container that no longer exists).
4285
+ * @type {string}
4286
+ * @memberof CronLastRun
4287
+ */
4288
+ 'status'?: CronLastRunStatusEnum;
4289
+ /**
4290
+ *
4291
+ * @type {string}
4292
+ * @memberof CronLastRun
4293
+ */
4294
+ 'createdAt'?: string | null;
4295
+ /**
4296
+ *
4297
+ * @type {number}
4298
+ * @memberof CronLastRun
4299
+ */
4300
+ 'exitCode'?: number | null;
4301
+ /**
4302
+ * Why the run failed, in plain text. Set when the status is FAILED_TO_START.
4303
+ * @type {string}
4304
+ * @memberof CronLastRun
4305
+ */
4306
+ 'errorMessage'?: string | null;
4307
+ }
4308
+
4309
+ export const CronLastRunStatusEnum = {
4310
+ Pending: 'PENDING',
4311
+ Running: 'RUNNING',
4312
+ Succeeded: 'SUCCEEDED',
4313
+ Failed: 'FAILED',
4314
+ FailedToStart: 'FAILED_TO_START',
4315
+ Expired: 'EXPIRED',
4316
+ TimedOut: 'TIMED_OUT'
4317
+ } as const;
4318
+
4319
+ export type CronLastRunStatusEnum = typeof CronLastRunStatusEnum[keyof typeof CronLastRunStatusEnum];
4320
+
3883
4321
  /**
3884
4322
  *
3885
4323
  * @export
@@ -3905,11 +4343,17 @@ export interface CronRun {
3905
4343
  */
3906
4344
  'command'?: string | null;
3907
4345
  /**
3908
- *
4346
+ * FAILED_TO_START: the task could not be launched, so the command never ran (for example, the job targets a container that no longer exists).
3909
4347
  * @type {string}
3910
4348
  * @memberof CronRun
3911
4349
  */
3912
4350
  'status'?: CronRunStatusEnum;
4351
+ /**
4352
+ * Why the run failed, in plain text. Set when the status is FAILED_TO_START.
4353
+ * @type {string}
4354
+ * @memberof CronRun
4355
+ */
4356
+ 'errorMessage'?: string | null;
3913
4357
  /**
3914
4358
  *
3915
4359
  * @type {string}
@@ -3959,6 +4403,8 @@ export const CronRunStatusEnum = {
3959
4403
  Running: 'RUNNING',
3960
4404
  Succeeded: 'SUCCEEDED',
3961
4405
  Failed: 'FAILED',
4406
+ FailedToStart: 'FAILED_TO_START',
4407
+ Expired: 'EXPIRED',
3962
4408
  TimedOut: 'TIMED_OUT',
3963
4409
  Unknown: 'UNKNOWN'
3964
4410
  } as const;
@@ -4131,6 +4577,19 @@ export interface DeleteCustomTool200Response {
4131
4577
  */
4132
4578
  'message'?: string;
4133
4579
  }
4580
+ /**
4581
+ *
4582
+ * @export
4583
+ * @interface DeleteEnvironmentSecret200Response
4584
+ */
4585
+ export interface DeleteEnvironmentSecret200Response {
4586
+ /**
4587
+ *
4588
+ * @type {Array<string>}
4589
+ * @memberof DeleteEnvironmentSecret200Response
4590
+ */
4591
+ 'warnings': Array<string>;
4592
+ }
4134
4593
  /**
4135
4594
  *
4136
4595
  * @export
@@ -7691,7 +8150,7 @@ export interface KVItemsCreate200Response {
7691
8150
  */
7692
8151
  'key'?: string;
7693
8152
  /**
7694
- *
8153
+ * The value written. \'[ENCRYPTED]\' when secret is true: secret values are write-only through the API.
7695
8154
  * @type {string}
7696
8155
  * @memberof KVItemsCreate200Response
7697
8156
  */
@@ -9655,7 +10114,7 @@ export interface OrgResource {
9655
10114
  */
9656
10115
  'name'?: string;
9657
10116
  /**
9658
- *
10117
+ * creating and updating apply to a CI runner pool
9659
10118
  * @type {string}
9660
10119
  * @memberof OrgResource
9661
10120
  */
@@ -9673,7 +10132,7 @@ export interface OrgResource {
9673
10132
  */
9674
10133
  'config'?: object;
9675
10134
  /**
9676
- * Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache
10135
+ * Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache. Not returned for a CI runner pool.
9677
10136
  * @type {object}
9678
10137
  * @memberof OrgResource
9679
10138
  */
@@ -9688,12 +10147,15 @@ export interface OrgResource {
9688
10147
 
9689
10148
  export const OrgResourceTypeEnum = {
9690
10149
  ObjectStorage: 'object-storage',
9691
- Valkey: 'valkey'
10150
+ Valkey: 'valkey',
10151
+ CiRunnerPool: 'ci-runner-pool'
9692
10152
  } as const;
9693
10153
 
9694
10154
  export type OrgResourceTypeEnum = typeof OrgResourceTypeEnum[keyof typeof OrgResourceTypeEnum];
9695
10155
  export const OrgResourceStatusEnum = {
9696
10156
  Provisioning: 'provisioning',
10157
+ Creating: 'creating',
10158
+ Updating: 'updating',
9697
10159
  Available: 'available',
9698
10160
  Deleting: 'deleting',
9699
10161
  Error: 'error'
@@ -9921,6 +10383,86 @@ export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
9921
10383
 
9922
10384
  export type PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum[keyof typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum];
9923
10385
 
10386
+ /**
10387
+ *
10388
+ * @export
10389
+ * @interface PostSlackBotFile201Response
10390
+ */
10391
+ export interface PostSlackBotFile201Response {
10392
+ /**
10393
+ *
10394
+ * @type {string}
10395
+ * @memberof PostSlackBotFile201Response
10396
+ */
10397
+ 'channel'?: string;
10398
+ /**
10399
+ *
10400
+ * @type {string}
10401
+ * @memberof PostSlackBotFile201Response
10402
+ */
10403
+ 'threadTs'?: string | null;
10404
+ /**
10405
+ *
10406
+ * @type {string}
10407
+ * @memberof PostSlackBotFile201Response
10408
+ */
10409
+ 'fileId'?: string;
10410
+ /**
10411
+ *
10412
+ * @type {string}
10413
+ * @memberof PostSlackBotFile201Response
10414
+ */
10415
+ 'permalink'?: string | null;
10416
+ }
10417
+ /**
10418
+ *
10419
+ * @export
10420
+ * @interface PostSlackBotFileRequest
10421
+ */
10422
+ export interface PostSlackBotFileRequest {
10423
+ /**
10424
+ *
10425
+ * @type {string}
10426
+ * @memberof PostSlackBotFileRequest
10427
+ */
10428
+ 'channel': string;
10429
+ /**
10430
+ * Absent: a root post
10431
+ * @type {string}
10432
+ * @memberof PostSlackBotFileRequest
10433
+ */
10434
+ 'threadTs'?: string;
10435
+ /**
10436
+ * The image, base64 (standard alphabet, no whitespace, no data: prefix). 1 byte to 4 MiB decoded.
10437
+ * @type {string}
10438
+ * @memberof PostSlackBotFileRequest
10439
+ */
10440
+ 'content': string;
10441
+ /**
10442
+ * Default screenshot.<ext>. The extension must match the image type (png, jpg, jpeg, gif, webp).
10443
+ * @type {string}
10444
+ * @memberof PostSlackBotFileRequest
10445
+ */
10446
+ 'filename'?: string;
10447
+ /**
10448
+ *
10449
+ * @type {string}
10450
+ * @memberof PostSlackBotFileRequest
10451
+ */
10452
+ 'title'?: string;
10453
+ /**
10454
+ *
10455
+ * @type {string}
10456
+ * @memberof PostSlackBotFileRequest
10457
+ */
10458
+ 'altText'?: string;
10459
+ /**
10460
+ * Caption. Same mention rules as a message.
10461
+ * @type {string}
10462
+ * @memberof PostSlackBotFileRequest
10463
+ */
10464
+ 'text'?: string;
10465
+ }
9924
10466
  /**
9925
10467
  *
9926
10468
  * @export
@@ -9977,6 +10519,95 @@ export interface PostSlackBotMessageRequest {
9977
10519
  */
9978
10520
  'text': string;
9979
10521
  }
10522
+ /**
10523
+ *
10524
+ * @export
10525
+ * @interface ProjectsDelete409Response
10526
+ */
10527
+ export interface ProjectsDelete409Response {
10528
+ /**
10529
+ *
10530
+ * @type {boolean}
10531
+ * @memberof ProjectsDelete409Response
10532
+ */
10533
+ 'error'?: boolean;
10534
+ /**
10535
+ *
10536
+ * @type {string}
10537
+ * @memberof ProjectsDelete409Response
10538
+ */
10539
+ 'message'?: string;
10540
+ /**
10541
+ *
10542
+ * @type {string}
10543
+ * @memberof ProjectsDelete409Response
10544
+ */
10545
+ 'code'?: ProjectsDelete409ResponseCodeEnum;
10546
+ /**
10547
+ *
10548
+ * @type {boolean}
10549
+ * @memberof ProjectsDelete409Response
10550
+ */
10551
+ 'retryable'?: boolean;
10552
+ /**
10553
+ *
10554
+ * @type {Array<string>}
10555
+ * @memberof ProjectsDelete409Response
10556
+ */
10557
+ 'stores'?: Array<string>;
10558
+ }
10559
+
10560
+ export const ProjectsDelete409ResponseCodeEnum = {
10561
+ KvLedgerPresent: 'KV_LEDGER_PRESENT'
10562
+ } as const;
10563
+
10564
+ export type ProjectsDelete409ResponseCodeEnum = typeof ProjectsDelete409ResponseCodeEnum[keyof typeof ProjectsDelete409ResponseCodeEnum];
10565
+
10566
+ /**
10567
+ *
10568
+ * @export
10569
+ * @interface ProjectsDelete503Response
10570
+ */
10571
+ export interface ProjectsDelete503Response {
10572
+ /**
10573
+ *
10574
+ * @type {boolean}
10575
+ * @memberof ProjectsDelete503Response
10576
+ */
10577
+ 'error'?: boolean;
10578
+ /**
10579
+ *
10580
+ * @type {string}
10581
+ * @memberof ProjectsDelete503Response
10582
+ */
10583
+ 'message'?: string;
10584
+ /**
10585
+ *
10586
+ * @type {string}
10587
+ * @memberof ProjectsDelete503Response
10588
+ */
10589
+ 'code'?: ProjectsDelete503ResponseCodeEnum;
10590
+ /**
10591
+ *
10592
+ * @type {boolean}
10593
+ * @memberof ProjectsDelete503Response
10594
+ */
10595
+ 'retryable'?: boolean;
10596
+ /**
10597
+ *
10598
+ * @type {Array<string>}
10599
+ * @memberof ProjectsDelete503Response
10600
+ */
10601
+ 'stores'?: Array<string>;
10602
+ }
10603
+
10604
+ export const ProjectsDelete503ResponseCodeEnum = {
10605
+ KvStoresUnreadable: 'KV_STORES_UNREADABLE',
10606
+ KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
10607
+ } as const;
10608
+
10609
+ export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
10610
+
9980
10611
  /**
9981
10612
  *
9982
10613
  * @export
@@ -10545,6 +11176,27 @@ export interface RestoreFilesystemRequest {
10545
11176
  */
10546
11177
  'acknowledgeDataloss': boolean;
10547
11178
  }
11179
+ /**
11180
+ *
11181
+ * @export
11182
+ * @interface RulesIndexList200ResponseInner
11183
+ */
11184
+ export interface RulesIndexList200ResponseInner {
11185
+ [key: string]: any;
11186
+
11187
+ /**
11188
+ * 0-based index in the stored order.
11189
+ * @type {number}
11190
+ * @memberof RulesIndexList200ResponseInner
11191
+ */
11192
+ 'position'?: number;
11193
+ /**
11194
+ * True when a template deploy owns the rule in this project.
11195
+ * @type {boolean}
11196
+ * @memberof RulesIndexList200ResponseInner
11197
+ */
11198
+ 'managed'?: boolean;
11199
+ }
10548
11200
  /**
10549
11201
  *
10550
11202
  * @export
@@ -10628,6 +11280,51 @@ export interface SearchSlackWorkspaceUsers200ResponseResultsInner {
10628
11280
  */
10629
11281
  'real_name'?: string;
10630
11282
  }
11283
+ /**
11284
+ *
11285
+ * @export
11286
+ * @interface SecretError
11287
+ */
11288
+ export interface SecretError {
11289
+ /**
11290
+ *
11291
+ * @type {string}
11292
+ * @memberof SecretError
11293
+ */
11294
+ 'message': string;
11295
+ }
11296
+ /**
11297
+ *
11298
+ * @export
11299
+ * @interface SecretKey
11300
+ */
11301
+ export interface SecretKey {
11302
+ /**
11303
+ * The secret name
11304
+ * @type {string}
11305
+ * @memberof SecretKey
11306
+ */
11307
+ 'key': string;
11308
+ }
11309
+ /**
11310
+ *
11311
+ * @export
11312
+ * @interface SecretWriteResult
11313
+ */
11314
+ export interface SecretWriteResult {
11315
+ /**
11316
+ * The secret name
11317
+ * @type {string}
11318
+ * @memberof SecretWriteResult
11319
+ */
11320
+ 'key': string;
11321
+ /**
11322
+ * Notices from Quant Cloud about the change. Present only when there is at least one.
11323
+ * @type {Array<string>}
11324
+ * @memberof SecretWriteResult
11325
+ */
11326
+ 'warnings'?: Array<string>;
11327
+ }
10631
11328
  /**
10632
11329
  *
10633
11330
  * @export
@@ -11308,6 +12005,19 @@ export interface UpdateEnvironmentRequest {
11308
12005
  */
11309
12006
  'maxCapacity'?: number | null;
11310
12007
  }
12008
+ /**
12009
+ *
12010
+ * @export
12011
+ * @interface UpdateEnvironmentSecretRequest
12012
+ */
12013
+ export interface UpdateEnvironmentSecretRequest {
12014
+ /**
12015
+ *
12016
+ * @type {string}
12017
+ * @memberof UpdateEnvironmentSecretRequest
12018
+ */
12019
+ 'value': string;
12020
+ }
11311
12021
  /**
11312
12022
  *
11313
12023
  * @export
@@ -14885,7 +15595,7 @@ export interface V2KvEntryPutResponse {
14885
15595
  */
14886
15596
  'key': string;
14887
15597
  /**
14888
- * The stored JSON value.
15598
+ * The stored JSON value. For a secret write (secret true) it reads \"[ENCRYPTED]\": secret values are write-only through the API.
14889
15599
  * @type {any}
14890
15600
  * @memberof V2KvEntryPutResponse
14891
15601
  */
@@ -16674,7 +17384,7 @@ export interface V2KvLedgerErasureShredReceiptDocument {
16674
17384
  */
16675
17385
  'signature': string;
16676
17386
  /**
16677
- * The KMS key ARN of the ledger key.
17387
+ * The public id of the ledger signing key: the KMS key id (a UUID). It holds no account id or region. Documents signed before 2026-10-29 may name the full key ARN inside their signed json; a verifier matches the key id at the end of that ARN.
16678
17388
  * @type {string}
16679
17389
  * @memberof V2KvLedgerErasureShredReceiptDocument
16680
17390
  */
@@ -16889,7 +17599,7 @@ export interface V2KvLedgerErasureSignedShredReceipt {
16889
17599
  */
16890
17600
  'signature': string;
16891
17601
  /**
16892
- * The KMS key ARN of the ledger key.
17602
+ * The public id of the ledger signing key: the KMS key id (a UUID). It holds no account id or region. Documents signed before 2026-10-29 may name the full key ARN inside their signed json; a verifier matches the key id at the end of that ARN.
16893
17603
  * @type {string}
16894
17604
  * @memberof V2KvLedgerErasureSignedShredReceipt
16895
17605
  */
@@ -17710,7 +18420,7 @@ export type V2KvLedgerProvenanceTypeEnum = typeof V2KvLedgerProvenanceTypeEnum[k
17710
18420
  */
17711
18421
  export interface V2KvLedgerPublicKey {
17712
18422
  /**
17713
- * The KMS key ARN.
18423
+ * The public id of the ledger signing key: the KMS key id (a UUID). It holds no account id or region. Documents signed before 2026-10-29 may name the full key ARN inside their signed json; a verifier matches the key id at the end of that ARN.
17714
18424
  * @type {string}
17715
18425
  * @memberof V2KvLedgerPublicKey
17716
18426
  */
@@ -18646,12 +19356,6 @@ export interface V2KvUpgradeState {
18646
19356
  * @memberof V2KvUpgradeState
18647
19357
  */
18648
19358
  'state': V2KvUpgradeStateStateEnum;
18649
- /**
18650
- * The table that serves the store.
18651
- * @type {string}
18652
- * @memberof V2KvUpgradeState
18653
- */
18654
- 'table': string;
18655
19359
  /**
18656
19360
  * Null when the store was never upgraded.
18657
19361
  * @type {V2KvUpgradeStatus}
@@ -18691,18 +19395,6 @@ export interface V2KvUpgradeStatus {
18691
19395
  * @memberof V2KvUpgradeStatus
18692
19396
  */
18693
19397
  'dryRun': boolean;
18694
- /**
18695
- *
18696
- * @type {string}
18697
- * @memberof V2KvUpgradeStatus
18698
- */
18699
- 'v1Table': string;
18700
- /**
18701
- *
18702
- * @type {string}
18703
- * @memberof V2KvUpgradeStatus
18704
- */
18705
- 'v2Table': string;
18706
19398
  /**
18707
19399
  *
18708
19400
  * @type {string}
@@ -19000,12 +19692,6 @@ export interface V2KvUsagePeriod {
19000
19692
  * @interface V2KvUsageRetainedTable
19001
19693
  */
19002
19694
  export interface V2KvUsageRetainedTable {
19003
- /**
19004
- *
19005
- * @type {string}
19006
- * @memberof V2KvUsageRetainedTable
19007
- */
19008
- 'name': string;
19009
19695
  /**
19010
19696
  *
19011
19697
  * @type {number}
@@ -19019,12 +19705,6 @@ export interface V2KvUsageRetainedTable {
19019
19705
  * @interface V2KvUsageTable
19020
19706
  */
19021
19707
  export interface V2KvUsageTable {
19022
- /**
19023
- *
19024
- * @type {string}
19025
- * @memberof V2KvUsageTable
19026
- */
19027
- 'name': string;
19028
19708
  /**
19029
19709
  *
19030
19710
  * @type {number}
@@ -19407,7 +20087,7 @@ export interface V2Rule {
19407
20087
  */
19408
20088
  'rule_id'?: string;
19409
20089
  /**
19410
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
20090
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
19411
20091
  * @type {number}
19412
20092
  * @memberof V2Rule
19413
20093
  */
@@ -19576,7 +20256,7 @@ export interface V2RuleAuth {
19576
20256
  */
19577
20257
  'rule_id'?: string;
19578
20258
  /**
19579
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
20259
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
19580
20260
  * @type {number}
19581
20261
  * @memberof V2RuleAuth
19582
20262
  */
@@ -19770,7 +20450,7 @@ export interface V2RuleAuthFunction {
19770
20450
  */
19771
20451
  'rule_id'?: string;
19772
20452
  /**
19773
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
20453
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
19774
20454
  * @type {number}
19775
20455
  * @memberof V2RuleAuthFunction
19776
20456
  */
@@ -19958,7 +20638,7 @@ export interface V2RuleAuthFunctionRequest {
19958
20638
  */
19959
20639
  'uuid'?: string;
19960
20640
  /**
19961
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
20641
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
19962
20642
  * @type {number}
19963
20643
  * @memberof V2RuleAuthFunctionRequest
19964
20644
  */
@@ -20162,7 +20842,7 @@ export interface V2RuleAuthRequest {
20162
20842
  */
20163
20843
  'uuid'?: string;
20164
20844
  /**
20165
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
20845
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
20166
20846
  * @type {number}
20167
20847
  * @memberof V2RuleAuthRequest
20168
20848
  */
@@ -20372,7 +21052,7 @@ export interface V2RuleBotChallenge {
20372
21052
  */
20373
21053
  'rule_id'?: string;
20374
21054
  /**
20375
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
21055
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
20376
21056
  * @type {number}
20377
21057
  * @memberof V2RuleBotChallenge
20378
21058
  */
@@ -20572,7 +21252,7 @@ export interface V2RuleBotChallengeRequest {
20572
21252
  */
20573
21253
  'uuid'?: string;
20574
21254
  /**
20575
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
21255
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
20576
21256
  * @type {number}
20577
21257
  * @memberof V2RuleBotChallengeRequest
20578
21258
  */
@@ -20788,7 +21468,7 @@ export interface V2RuleContentFilter {
20788
21468
  */
20789
21469
  'rule_id'?: string;
20790
21470
  /**
20791
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
21471
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
20792
21472
  * @type {number}
20793
21473
  * @memberof V2RuleContentFilter
20794
21474
  */
@@ -20976,7 +21656,7 @@ export interface V2RuleContentFilterRequest {
20976
21656
  */
20977
21657
  'uuid'?: string;
20978
21658
  /**
20979
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
21659
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
20980
21660
  * @type {number}
20981
21661
  * @memberof V2RuleContentFilterRequest
20982
21662
  */
@@ -21180,7 +21860,7 @@ export interface V2RuleCustomResponse {
21180
21860
  */
21181
21861
  'rule_id'?: string;
21182
21862
  /**
21183
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
21863
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
21184
21864
  * @type {number}
21185
21865
  * @memberof V2RuleCustomResponse
21186
21866
  */
@@ -21374,7 +22054,7 @@ export interface V2RuleCustomResponseRequest {
21374
22054
  */
21375
22055
  'uuid'?: string;
21376
22056
  /**
21377
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
22057
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
21378
22058
  * @type {number}
21379
22059
  * @memberof V2RuleCustomResponseRequest
21380
22060
  */
@@ -21596,7 +22276,7 @@ export interface V2RuleErrorPage {
21596
22276
  */
21597
22277
  'rule_id'?: string;
21598
22278
  /**
21599
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
22279
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
21600
22280
  * @type {number}
21601
22281
  * @memberof V2RuleErrorPage
21602
22282
  */
@@ -21790,7 +22470,7 @@ export interface V2RuleErrorPageRequest {
21790
22470
  */
21791
22471
  'uuid'?: string;
21792
22472
  /**
21793
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
22473
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
21794
22474
  * @type {number}
21795
22475
  * @memberof V2RuleErrorPageRequest
21796
22476
  */
@@ -22000,7 +22680,7 @@ export interface V2RuleFunction {
22000
22680
  */
22001
22681
  'rule_id'?: string;
22002
22682
  /**
22003
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
22683
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
22004
22684
  * @type {number}
22005
22685
  * @memberof V2RuleFunction
22006
22686
  */
@@ -22188,7 +22868,7 @@ export interface V2RuleFunctionRequest {
22188
22868
  */
22189
22869
  'uuid'?: string;
22190
22870
  /**
22191
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
22871
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
22192
22872
  * @type {number}
22193
22873
  * @memberof V2RuleFunctionRequest
22194
22874
  */
@@ -22392,7 +23072,7 @@ export interface V2RuleHeader {
22392
23072
  */
22393
23073
  'rule_id'?: string;
22394
23074
  /**
22395
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
23075
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
22396
23076
  * @type {number}
22397
23077
  * @memberof V2RuleHeader
22398
23078
  */
@@ -22580,7 +23260,7 @@ export interface V2RuleHeaderRequest {
22580
23260
  */
22581
23261
  'uuid'?: string;
22582
23262
  /**
22583
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
23263
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
22584
23264
  * @type {number}
22585
23265
  * @memberof V2RuleHeaderRequest
22586
23266
  */
@@ -22784,7 +23464,7 @@ export interface V2RuleProxy {
22784
23464
  */
22785
23465
  'rule_id'?: string;
22786
23466
  /**
22787
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
23467
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
22788
23468
  * @type {number}
22789
23469
  * @memberof V2RuleProxy
22790
23470
  */
@@ -23192,7 +23872,7 @@ export interface V2RuleProxyRequest {
23192
23872
  */
23193
23873
  'uuid'?: string;
23194
23874
  /**
23195
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
23875
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
23196
23876
  * @type {number}
23197
23877
  * @memberof V2RuleProxyRequest
23198
23878
  */
@@ -23540,7 +24220,7 @@ export interface V2RuleRedirect {
23540
24220
  */
23541
24221
  'rule_id'?: string;
23542
24222
  /**
23543
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
24223
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
23544
24224
  * @type {number}
23545
24225
  * @memberof V2RuleRedirect
23546
24226
  */
@@ -23734,7 +24414,7 @@ export interface V2RuleRedirectRequest {
23734
24414
  */
23735
24415
  'uuid'?: string;
23736
24416
  /**
23737
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
24417
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
23738
24418
  * @type {number}
23739
24419
  * @memberof V2RuleRedirectRequest
23740
24420
  */
@@ -23944,7 +24624,7 @@ export interface V2RuleRequest {
23944
24624
  */
23945
24625
  'uuid'?: string;
23946
24626
  /**
23947
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
24627
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
23948
24628
  * @type {number}
23949
24629
  * @memberof V2RuleRequest
23950
24630
  */
@@ -24142,7 +24822,7 @@ export interface V2RuleServeStatic {
24142
24822
  */
24143
24823
  'rule_id'?: string;
24144
24824
  /**
24145
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
24825
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
24146
24826
  * @type {number}
24147
24827
  * @memberof V2RuleServeStatic
24148
24828
  */
@@ -24330,7 +25010,7 @@ export interface V2RuleServeStaticRequest {
24330
25010
  */
24331
25011
  'uuid'?: string;
24332
25012
  /**
24333
- * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
25013
+ * Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last. A reorder in the Quant dashboard changes this rule\'s weight; if `weight` is set in configuration, the next plan shows the difference and apply restores the configured order.
24334
25014
  * @type {number}
24335
25015
  * @memberof V2RuleServeStaticRequest
24336
25016
  */
@@ -26110,6 +26790,812 @@ export class AIAgentsApi extends BaseAPI {
26110
26790
 
26111
26791
 
26112
26792
 
26793
+ /**
26794
+ * AIAuditApi - axios parameter creator
26795
+ * @export
26796
+ */
26797
+ export const AIAuditApiAxiosParamCreator = function (configuration?: Configuration) {
26798
+ return {
26799
+ /**
26800
+ * Every record of the range that matches the filters (the filters of aiAuditRecordsList), one JSON object per line (the row: key, date, summary, record). At most 100 pages of 200 records; a longer export ends with an error line. A failed page ends the file with an error line. Each page read is recorded in the audit log (action export). Needs view_ai_audit and, for a scoped token, ai:audit:read. Limit: 10 requests per minute.
26801
+ * @summary Export AI audit records as JSON Lines
26802
+ * @param {string} organisation The organisation machine name
26803
+ * @param {string} startDate
26804
+ * @param {string} endDate
26805
+ * @param {string} [userId]
26806
+ * @param {string} [modelId]
26807
+ * @param {string} [recordType]
26808
+ * @param {string} [decision]
26809
+ * @param {string} [tool]
26810
+ * @param {string} [outcome]
26811
+ * @param {*} [options] Override http request option.
26812
+ * @throws {RequiredError}
26813
+ */
26814
+ aiAuditExport: async (organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26815
+ // verify required parameter 'organisation' is not null or undefined
26816
+ assertParamExists('aiAuditExport', 'organisation', organisation)
26817
+ // verify required parameter 'startDate' is not null or undefined
26818
+ assertParamExists('aiAuditExport', 'startDate', startDate)
26819
+ // verify required parameter 'endDate' is not null or undefined
26820
+ assertParamExists('aiAuditExport', 'endDate', endDate)
26821
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
26822
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
26823
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26824
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26825
+ let baseOptions;
26826
+ if (configuration) {
26827
+ baseOptions = configuration.baseOptions;
26828
+ }
26829
+
26830
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26831
+ const localVarHeaderParameter = {} as any;
26832
+ const localVarQueryParameter = {} as any;
26833
+
26834
+ // authentication BearerAuth required
26835
+ // http bearer authentication required
26836
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26837
+
26838
+ if (startDate !== undefined) {
26839
+ localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
26840
+ (startDate as any).toISOString().substring(0,10) :
26841
+ startDate;
26842
+ }
26843
+
26844
+ if (endDate !== undefined) {
26845
+ localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
26846
+ (endDate as any).toISOString().substring(0,10) :
26847
+ endDate;
26848
+ }
26849
+
26850
+ if (userId !== undefined) {
26851
+ localVarQueryParameter['userId'] = userId;
26852
+ }
26853
+
26854
+ if (modelId !== undefined) {
26855
+ localVarQueryParameter['modelId'] = modelId;
26856
+ }
26857
+
26858
+ if (recordType !== undefined) {
26859
+ localVarQueryParameter['recordType'] = recordType;
26860
+ }
26861
+
26862
+ if (decision !== undefined) {
26863
+ localVarQueryParameter['decision'] = decision;
26864
+ }
26865
+
26866
+ if (tool !== undefined) {
26867
+ localVarQueryParameter['tool'] = tool;
26868
+ }
26869
+
26870
+ if (outcome !== undefined) {
26871
+ localVarQueryParameter['outcome'] = outcome;
26872
+ }
26873
+
26874
+
26875
+
26876
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26877
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26878
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26879
+
26880
+ return {
26881
+ url: toPathString(localVarUrlObj),
26882
+ options: localVarRequestOptions,
26883
+ };
26884
+ },
26885
+ /**
26886
+ * The entries of the collection events:governance, with values, in pages: follow next_cursor while has_more is true. Each entry has its ledger block (seq, hash, prevHash, shard) for verification; open a proof with aiAuditLedgerProof and check entries offline with kv-ledger-verify and aiAuditLedgerPublicKey. Events are hash-only (no prompt or response). The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
26887
+ * @summary List AI governance ledger entries
26888
+ * @param {string} organisation The organisation machine name
26889
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
26890
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
26891
+ * @param {number} [limit]
26892
+ * @param {string} [cursor] The next_cursor of the previous page.
26893
+ * @param {*} [options] Override http request option.
26894
+ * @throws {RequiredError}
26895
+ */
26896
+ aiAuditLedgerEntries: async (organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26897
+ // verify required parameter 'organisation' is not null or undefined
26898
+ assertParamExists('aiAuditLedgerEntries', 'organisation', organisation)
26899
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
26900
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
26901
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26902
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26903
+ let baseOptions;
26904
+ if (configuration) {
26905
+ baseOptions = configuration.baseOptions;
26906
+ }
26907
+
26908
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26909
+ const localVarHeaderParameter = {} as any;
26910
+ const localVarQueryParameter = {} as any;
26911
+
26912
+ // authentication BearerAuth required
26913
+ // http bearer authentication required
26914
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26915
+
26916
+ if (since !== undefined) {
26917
+ localVarQueryParameter['since'] = since;
26918
+ }
26919
+
26920
+ if (until !== undefined) {
26921
+ localVarQueryParameter['until'] = until;
26922
+ }
26923
+
26924
+ if (limit !== undefined) {
26925
+ localVarQueryParameter['limit'] = limit;
26926
+ }
26927
+
26928
+ if (cursor !== undefined) {
26929
+ localVarQueryParameter['cursor'] = cursor;
26930
+ }
26931
+
26932
+
26933
+
26934
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26935
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26936
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26937
+
26938
+ return {
26939
+ url: toPathString(localVarUrlObj),
26940
+ options: localVarRequestOptions,
26941
+ };
26942
+ },
26943
+ /**
26944
+ * The Merkle inclusion proof of one entry (key events:governance:...): entry, hash, period, merkleRoot, auditPath, the signed digest and keyId, or status pending until the entry is archived. Returned byte for byte, as KV_ledgers_proof. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
26945
+ * @summary Get the inclusion proof of a governance ledger entry
26946
+ * @param {string} organisation The organisation machine name
26947
+ * @param {string} key
26948
+ * @param {*} [options] Override http request option.
26949
+ * @throws {RequiredError}
26950
+ */
26951
+ aiAuditLedgerProof: async (organisation: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26952
+ // verify required parameter 'organisation' is not null or undefined
26953
+ assertParamExists('aiAuditLedgerProof', 'organisation', organisation)
26954
+ // verify required parameter 'key' is not null or undefined
26955
+ assertParamExists('aiAuditLedgerProof', 'key', key)
26956
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
26957
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
26958
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
26959
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26960
+ let baseOptions;
26961
+ if (configuration) {
26962
+ baseOptions = configuration.baseOptions;
26963
+ }
26964
+
26965
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
26966
+ const localVarHeaderParameter = {} as any;
26967
+ const localVarQueryParameter = {} as any;
26968
+
26969
+ // authentication BearerAuth required
26970
+ // http bearer authentication required
26971
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
26972
+
26973
+ if (key !== undefined) {
26974
+ localVarQueryParameter['key'] = key;
26975
+ }
26976
+
26977
+
26978
+
26979
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
26980
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26981
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
26982
+
26983
+ return {
26984
+ url: toPathString(localVarUrlObj),
26985
+ options: localVarRequestOptions,
26986
+ };
26987
+ },
26988
+ /**
26989
+ * The public key that verifies the ledger digests and receipts offline (kv-ledger-verify). The same answer as KV_ledgers_public_key. Needs view_ai_audit and, for a scoped token, ai:audit:read.
26990
+ * @summary Get the governance ledger public key
26991
+ * @param {string} organisation The organisation machine name
26992
+ * @param {*} [options] Override http request option.
26993
+ * @throws {RequiredError}
26994
+ */
26995
+ aiAuditLedgerPublicKey: async (organisation: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
26996
+ // verify required parameter 'organisation' is not null or undefined
26997
+ assertParamExists('aiAuditLedgerPublicKey', 'organisation', organisation)
26998
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
26999
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
27000
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27001
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27002
+ let baseOptions;
27003
+ if (configuration) {
27004
+ baseOptions = configuration.baseOptions;
27005
+ }
27006
+
27007
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27008
+ const localVarHeaderParameter = {} as any;
27009
+ const localVarQueryParameter = {} as any;
27010
+
27011
+ // authentication BearerAuth required
27012
+ // http bearer authentication required
27013
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27014
+
27015
+
27016
+
27017
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27018
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27019
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27020
+
27021
+ return {
27022
+ url: toPathString(localVarUrlObj),
27023
+ options: localVarRequestOptions,
27024
+ };
27025
+ },
27026
+ /**
27027
+ * The organisation\'s AI governance ledger (store int-ai-governance, ledger governance): definition, retention, instances and shards with head sequence, archive lag, last digest and last verify. The same answer as KV_ledgers_status. 404 STORE_NOT_FOUND or LEDGER_NOT_FOUND when the organisation has no governance ledger. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27028
+ * @summary Get the AI governance ledger status
27029
+ * @param {string} organisation The organisation machine name
27030
+ * @param {string} [cursor] The next_cursor of the previous page.
27031
+ * @param {*} [options] Override http request option.
27032
+ * @throws {RequiredError}
27033
+ */
27034
+ aiAuditLedgerStatus: async (organisation: string, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27035
+ // verify required parameter 'organisation' is not null or undefined
27036
+ assertParamExists('aiAuditLedgerStatus', 'organisation', organisation)
27037
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
27038
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
27039
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27040
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27041
+ let baseOptions;
27042
+ if (configuration) {
27043
+ baseOptions = configuration.baseOptions;
27044
+ }
27045
+
27046
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27047
+ const localVarHeaderParameter = {} as any;
27048
+ const localVarQueryParameter = {} as any;
27049
+
27050
+ // authentication BearerAuth required
27051
+ // http bearer authentication required
27052
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27053
+
27054
+ if (cursor !== undefined) {
27055
+ localVarQueryParameter['cursor'] = cursor;
27056
+ }
27057
+
27058
+
27059
+
27060
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27061
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27062
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27063
+
27064
+ return {
27065
+ url: toPathString(localVarUrlObj),
27066
+ options: localVarRequestOptions,
27067
+ };
27068
+ },
27069
+ /**
27070
+ * One record by key (a key from aiAuditRecordsList). A key of another organisation is 400. prompt and response are returned only when the record stores them. The read is recorded in the audit log first (503 when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27071
+ * @summary Get one AI audit record
27072
+ * @param {string} organisation The organisation machine name
27073
+ * @param {string} key
27074
+ * @param {*} [options] Override http request option.
27075
+ * @throws {RequiredError}
27076
+ */
27077
+ aiAuditRecordGet: async (organisation: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27078
+ // verify required parameter 'organisation' is not null or undefined
27079
+ assertParamExists('aiAuditRecordGet', 'organisation', organisation)
27080
+ // verify required parameter 'key' is not null or undefined
27081
+ assertParamExists('aiAuditRecordGet', 'key', key)
27082
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
27083
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
27084
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27085
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27086
+ let baseOptions;
27087
+ if (configuration) {
27088
+ baseOptions = configuration.baseOptions;
27089
+ }
27090
+
27091
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27092
+ const localVarHeaderParameter = {} as any;
27093
+ const localVarQueryParameter = {} as any;
27094
+
27095
+ // authentication BearerAuth required
27096
+ // http bearer authentication required
27097
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27098
+
27099
+ if (key !== undefined) {
27100
+ localVarQueryParameter['key'] = key;
27101
+ }
27102
+
27103
+
27104
+
27105
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27106
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27107
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27108
+
27109
+ return {
27110
+ url: toPathString(localVarUrlObj),
27111
+ options: localVarRequestOptions,
27112
+ };
27113
+ },
27114
+ /**
27115
+ * One page of the organisation\'s AI audit records (inference, tool approvals and denials, Slack bot API calls, audit log reads). Filters match exactly. A page stops at limit rows, at 1,000 scanned records or at 20 seconds, so it can hold fewer rows than limit while hasMore is true: pass nextCursor back as cursor until hasMore is false. Order: by day, then by key. prompt and response are returned only when the record stores them. Records older than 365 days are archived (skippedArchived). Each call is recorded in the audit log (recordType audit_access) before it reads; when that record cannot be written the answer is 503 and nothing is read. Needs the view_ai_audit permission and, for a scoped token, ai:audit:read.
27116
+ * @summary List AI audit records
27117
+ * @param {string} organisation The organisation machine name
27118
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
27119
+ * @param {string} endDate Last UTC day (inclusive).
27120
+ * @param {string} [since] Record time from (inclusive).
27121
+ * @param {string} [until] Record time to (exclusive).
27122
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
27123
+ * @param {string} [tokenId]
27124
+ * @param {string} [modelId]
27125
+ * @param {string} [recordType]
27126
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
27127
+ * @param {string} [tool]
27128
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
27129
+ * @param {string} [_interface]
27130
+ * @param {number} [limit]
27131
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
27132
+ * @param {*} [options] Override http request option.
27133
+ * @throws {RequiredError}
27134
+ */
27135
+ aiAuditRecordsList: async (organisation: string, startDate: string, endDate: string, since?: string, until?: string, userId?: string, tokenId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, _interface?: string, limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
27136
+ // verify required parameter 'organisation' is not null or undefined
27137
+ assertParamExists('aiAuditRecordsList', 'organisation', organisation)
27138
+ // verify required parameter 'startDate' is not null or undefined
27139
+ assertParamExists('aiAuditRecordsList', 'startDate', startDate)
27140
+ // verify required parameter 'endDate' is not null or undefined
27141
+ assertParamExists('aiAuditRecordsList', 'endDate', endDate)
27142
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
27143
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
27144
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27145
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27146
+ let baseOptions;
27147
+ if (configuration) {
27148
+ baseOptions = configuration.baseOptions;
27149
+ }
27150
+
27151
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
27152
+ const localVarHeaderParameter = {} as any;
27153
+ const localVarQueryParameter = {} as any;
27154
+
27155
+ // authentication BearerAuth required
27156
+ // http bearer authentication required
27157
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
27158
+
27159
+ if (startDate !== undefined) {
27160
+ localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
27161
+ (startDate as any).toISOString().substring(0,10) :
27162
+ startDate;
27163
+ }
27164
+
27165
+ if (endDate !== undefined) {
27166
+ localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
27167
+ (endDate as any).toISOString().substring(0,10) :
27168
+ endDate;
27169
+ }
27170
+
27171
+ if (since !== undefined) {
27172
+ localVarQueryParameter['since'] = (since as any instanceof Date) ?
27173
+ (since as any).toISOString() :
27174
+ since;
27175
+ }
27176
+
27177
+ if (until !== undefined) {
27178
+ localVarQueryParameter['until'] = (until as any instanceof Date) ?
27179
+ (until as any).toISOString() :
27180
+ until;
27181
+ }
27182
+
27183
+ if (userId !== undefined) {
27184
+ localVarQueryParameter['userId'] = userId;
27185
+ }
27186
+
27187
+ if (tokenId !== undefined) {
27188
+ localVarQueryParameter['tokenId'] = tokenId;
27189
+ }
27190
+
27191
+ if (modelId !== undefined) {
27192
+ localVarQueryParameter['modelId'] = modelId;
27193
+ }
27194
+
27195
+ if (recordType !== undefined) {
27196
+ localVarQueryParameter['recordType'] = recordType;
27197
+ }
27198
+
27199
+ if (decision !== undefined) {
27200
+ localVarQueryParameter['decision'] = decision;
27201
+ }
27202
+
27203
+ if (tool !== undefined) {
27204
+ localVarQueryParameter['tool'] = tool;
27205
+ }
27206
+
27207
+ if (outcome !== undefined) {
27208
+ localVarQueryParameter['outcome'] = outcome;
27209
+ }
27210
+
27211
+ if (_interface !== undefined) {
27212
+ localVarQueryParameter['interface'] = _interface;
27213
+ }
27214
+
27215
+ if (limit !== undefined) {
27216
+ localVarQueryParameter['limit'] = limit;
27217
+ }
27218
+
27219
+ if (cursor !== undefined) {
27220
+ localVarQueryParameter['cursor'] = cursor;
27221
+ }
27222
+
27223
+
27224
+
27225
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27226
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27227
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
27228
+
27229
+ return {
27230
+ url: toPathString(localVarUrlObj),
27231
+ options: localVarRequestOptions,
27232
+ };
27233
+ },
27234
+ }
27235
+ };
27236
+
27237
+ /**
27238
+ * AIAuditApi - functional programming interface
27239
+ * @export
27240
+ */
27241
+ export const AIAuditApiFp = function(configuration?: Configuration) {
27242
+ const localVarAxiosParamCreator = AIAuditApiAxiosParamCreator(configuration)
27243
+ return {
27244
+ /**
27245
+ * Every record of the range that matches the filters (the filters of aiAuditRecordsList), one JSON object per line (the row: key, date, summary, record). At most 100 pages of 200 records; a longer export ends with an error line. A failed page ends the file with an error line. Each page read is recorded in the audit log (action export). Needs view_ai_audit and, for a scoped token, ai:audit:read. Limit: 10 requests per minute.
27246
+ * @summary Export AI audit records as JSON Lines
27247
+ * @param {string} organisation The organisation machine name
27248
+ * @param {string} startDate
27249
+ * @param {string} endDate
27250
+ * @param {string} [userId]
27251
+ * @param {string} [modelId]
27252
+ * @param {string} [recordType]
27253
+ * @param {string} [decision]
27254
+ * @param {string} [tool]
27255
+ * @param {string} [outcome]
27256
+ * @param {*} [options] Override http request option.
27257
+ * @throws {RequiredError}
27258
+ */
27259
+ async aiAuditExport(organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<string>> {
27260
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options);
27261
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27262
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditExport']?.[localVarOperationServerIndex]?.url;
27263
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27264
+ },
27265
+ /**
27266
+ * The entries of the collection events:governance, with values, in pages: follow next_cursor while has_more is true. Each entry has its ledger block (seq, hash, prevHash, shard) for verification; open a proof with aiAuditLedgerProof and check entries offline with kv-ledger-verify and aiAuditLedgerPublicKey. Events are hash-only (no prompt or response). The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27267
+ * @summary List AI governance ledger entries
27268
+ * @param {string} organisation The organisation machine name
27269
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
27270
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
27271
+ * @param {number} [limit]
27272
+ * @param {string} [cursor] The next_cursor of the previous page.
27273
+ * @param {*} [options] Override http request option.
27274
+ * @throws {RequiredError}
27275
+ */
27276
+ async aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvKeysPage>> {
27277
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
27278
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27279
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerEntries']?.[localVarOperationServerIndex]?.url;
27280
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27281
+ },
27282
+ /**
27283
+ * The Merkle inclusion proof of one entry (key events:governance:...): entry, hash, period, merkleRoot, auditPath, the signed digest and keyId, or status pending until the entry is archived. Returned byte for byte, as KV_ledgers_proof. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27284
+ * @summary Get the inclusion proof of a governance ledger entry
27285
+ * @param {string} organisation The organisation machine name
27286
+ * @param {string} key
27287
+ * @param {*} [options] Override http request option.
27288
+ * @throws {RequiredError}
27289
+ */
27290
+ async aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerProof>> {
27291
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
27292
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27293
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerProof']?.[localVarOperationServerIndex]?.url;
27294
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27295
+ },
27296
+ /**
27297
+ * The public key that verifies the ledger digests and receipts offline (kv-ledger-verify). The same answer as KV_ledgers_public_key. Needs view_ai_audit and, for a scoped token, ai:audit:read.
27298
+ * @summary Get the governance ledger public key
27299
+ * @param {string} organisation The organisation machine name
27300
+ * @param {*} [options] Override http request option.
27301
+ * @throws {RequiredError}
27302
+ */
27303
+ async aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerPublicKey>> {
27304
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
27305
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27306
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerPublicKey']?.[localVarOperationServerIndex]?.url;
27307
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27308
+ },
27309
+ /**
27310
+ * The organisation\'s AI governance ledger (store int-ai-governance, ledger governance): definition, retention, instances and shards with head sequence, archive lag, last digest and last verify. The same answer as KV_ledgers_status. 404 STORE_NOT_FOUND or LEDGER_NOT_FOUND when the organisation has no governance ledger. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27311
+ * @summary Get the AI governance ledger status
27312
+ * @param {string} organisation The organisation machine name
27313
+ * @param {string} [cursor] The next_cursor of the previous page.
27314
+ * @param {*} [options] Override http request option.
27315
+ * @throws {RequiredError}
27316
+ */
27317
+ async aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerStatus>> {
27318
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, options);
27319
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27320
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerStatus']?.[localVarOperationServerIndex]?.url;
27321
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27322
+ },
27323
+ /**
27324
+ * One record by key (a key from aiAuditRecordsList). A key of another organisation is 400. prompt and response are returned only when the record stores them. The read is recorded in the audit log first (503 when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27325
+ * @summary Get one AI audit record
27326
+ * @param {string} organisation The organisation machine name
27327
+ * @param {string} key
27328
+ * @param {*} [options] Override http request option.
27329
+ * @throws {RequiredError}
27330
+ */
27331
+ async aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAuditRecordGet200Response>> {
27332
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
27333
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27334
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditRecordGet']?.[localVarOperationServerIndex]?.url;
27335
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27336
+ },
27337
+ /**
27338
+ * One page of the organisation\'s AI audit records (inference, tool approvals and denials, Slack bot API calls, audit log reads). Filters match exactly. A page stops at limit rows, at 1,000 scanned records or at 20 seconds, so it can hold fewer rows than limit while hasMore is true: pass nextCursor back as cursor until hasMore is false. Order: by day, then by key. prompt and response are returned only when the record stores them. Records older than 365 days are archived (skippedArchived). Each call is recorded in the audit log (recordType audit_access) before it reads; when that record cannot be written the answer is 503 and nothing is read. Needs the view_ai_audit permission and, for a scoped token, ai:audit:read.
27339
+ * @summary List AI audit records
27340
+ * @param {string} organisation The organisation machine name
27341
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
27342
+ * @param {string} endDate Last UTC day (inclusive).
27343
+ * @param {string} [since] Record time from (inclusive).
27344
+ * @param {string} [until] Record time to (exclusive).
27345
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
27346
+ * @param {string} [tokenId]
27347
+ * @param {string} [modelId]
27348
+ * @param {string} [recordType]
27349
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
27350
+ * @param {string} [tool]
27351
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
27352
+ * @param {string} [_interface]
27353
+ * @param {number} [limit]
27354
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
27355
+ * @param {*} [options] Override http request option.
27356
+ * @throws {RequiredError}
27357
+ */
27358
+ async aiAuditRecordsList(organisation: string, startDate: string, endDate: string, since?: string, until?: string, userId?: string, tokenId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, _interface?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAuditRecordsPage>> {
27359
+ const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
27360
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
27361
+ const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditRecordsList']?.[localVarOperationServerIndex]?.url;
27362
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27363
+ },
27364
+ }
27365
+ };
27366
+
27367
+ /**
27368
+ * AIAuditApi - factory interface
27369
+ * @export
27370
+ */
27371
+ export const AIAuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
27372
+ const localVarFp = AIAuditApiFp(configuration)
27373
+ return {
27374
+ /**
27375
+ * Every record of the range that matches the filters (the filters of aiAuditRecordsList), one JSON object per line (the row: key, date, summary, record). At most 100 pages of 200 records; a longer export ends with an error line. A failed page ends the file with an error line. Each page read is recorded in the audit log (action export). Needs view_ai_audit and, for a scoped token, ai:audit:read. Limit: 10 requests per minute.
27376
+ * @summary Export AI audit records as JSON Lines
27377
+ * @param {string} organisation The organisation machine name
27378
+ * @param {string} startDate
27379
+ * @param {string} endDate
27380
+ * @param {string} [userId]
27381
+ * @param {string} [modelId]
27382
+ * @param {string} [recordType]
27383
+ * @param {string} [decision]
27384
+ * @param {string} [tool]
27385
+ * @param {string} [outcome]
27386
+ * @param {*} [options] Override http request option.
27387
+ * @throws {RequiredError}
27388
+ */
27389
+ aiAuditExport(organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
27390
+ return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
27391
+ },
27392
+ /**
27393
+ * The entries of the collection events:governance, with values, in pages: follow next_cursor while has_more is true. Each entry has its ledger block (seq, hash, prevHash, shard) for verification; open a proof with aiAuditLedgerProof and check entries offline with kv-ledger-verify and aiAuditLedgerPublicKey. Events are hash-only (no prompt or response). The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27394
+ * @summary List AI governance ledger entries
27395
+ * @param {string} organisation The organisation machine name
27396
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
27397
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
27398
+ * @param {number} [limit]
27399
+ * @param {string} [cursor] The next_cursor of the previous page.
27400
+ * @param {*} [options] Override http request option.
27401
+ * @throws {RequiredError}
27402
+ */
27403
+ aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvKeysPage> {
27404
+ return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
27405
+ },
27406
+ /**
27407
+ * The Merkle inclusion proof of one entry (key events:governance:...): entry, hash, period, merkleRoot, auditPath, the signed digest and keyId, or status pending until the entry is archived. Returned byte for byte, as KV_ledgers_proof. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27408
+ * @summary Get the inclusion proof of a governance ledger entry
27409
+ * @param {string} organisation The organisation machine name
27410
+ * @param {string} key
27411
+ * @param {*} [options] Override http request option.
27412
+ * @throws {RequiredError}
27413
+ */
27414
+ aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerProof> {
27415
+ return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
27416
+ },
27417
+ /**
27418
+ * The public key that verifies the ledger digests and receipts offline (kv-ledger-verify). The same answer as KV_ledgers_public_key. Needs view_ai_audit and, for a scoped token, ai:audit:read.
27419
+ * @summary Get the governance ledger public key
27420
+ * @param {string} organisation The organisation machine name
27421
+ * @param {*} [options] Override http request option.
27422
+ * @throws {RequiredError}
27423
+ */
27424
+ aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerPublicKey> {
27425
+ return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
27426
+ },
27427
+ /**
27428
+ * The organisation\'s AI governance ledger (store int-ai-governance, ledger governance): definition, retention, instances and shards with head sequence, archive lag, last digest and last verify. The same answer as KV_ledgers_status. 404 STORE_NOT_FOUND or LEDGER_NOT_FOUND when the organisation has no governance ledger. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27429
+ * @summary Get the AI governance ledger status
27430
+ * @param {string} organisation The organisation machine name
27431
+ * @param {string} [cursor] The next_cursor of the previous page.
27432
+ * @param {*} [options] Override http request option.
27433
+ * @throws {RequiredError}
27434
+ */
27435
+ aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerStatus> {
27436
+ return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
27437
+ },
27438
+ /**
27439
+ * One record by key (a key from aiAuditRecordsList). A key of another organisation is 400. prompt and response are returned only when the record stores them. The read is recorded in the audit log first (503 when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27440
+ * @summary Get one AI audit record
27441
+ * @param {string} organisation The organisation machine name
27442
+ * @param {string} key
27443
+ * @param {*} [options] Override http request option.
27444
+ * @throws {RequiredError}
27445
+ */
27446
+ aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<AiAuditRecordGet200Response> {
27447
+ return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
27448
+ },
27449
+ /**
27450
+ * One page of the organisation\'s AI audit records (inference, tool approvals and denials, Slack bot API calls, audit log reads). Filters match exactly. A page stops at limit rows, at 1,000 scanned records or at 20 seconds, so it can hold fewer rows than limit while hasMore is true: pass nextCursor back as cursor until hasMore is false. Order: by day, then by key. prompt and response are returned only when the record stores them. Records older than 365 days are archived (skippedArchived). Each call is recorded in the audit log (recordType audit_access) before it reads; when that record cannot be written the answer is 503 and nothing is read. Needs the view_ai_audit permission and, for a scoped token, ai:audit:read.
27451
+ * @summary List AI audit records
27452
+ * @param {string} organisation The organisation machine name
27453
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
27454
+ * @param {string} endDate Last UTC day (inclusive).
27455
+ * @param {string} [since] Record time from (inclusive).
27456
+ * @param {string} [until] Record time to (exclusive).
27457
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
27458
+ * @param {string} [tokenId]
27459
+ * @param {string} [modelId]
27460
+ * @param {string} [recordType]
27461
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
27462
+ * @param {string} [tool]
27463
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
27464
+ * @param {string} [_interface]
27465
+ * @param {number} [limit]
27466
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
27467
+ * @param {*} [options] Override http request option.
27468
+ * @throws {RequiredError}
27469
+ */
27470
+ aiAuditRecordsList(organisation: string, startDate: string, endDate: string, since?: string, until?: string, userId?: string, tokenId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, _interface?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<AiAuditRecordsPage> {
27471
+ return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
27472
+ },
27473
+ };
27474
+ };
27475
+
27476
+ /**
27477
+ * AIAuditApi - object-oriented interface
27478
+ * @export
27479
+ * @class AIAuditApi
27480
+ * @extends {BaseAPI}
27481
+ */
27482
+ export class AIAuditApi extends BaseAPI {
27483
+ /**
27484
+ * Every record of the range that matches the filters (the filters of aiAuditRecordsList), one JSON object per line (the row: key, date, summary, record). At most 100 pages of 200 records; a longer export ends with an error line. A failed page ends the file with an error line. Each page read is recorded in the audit log (action export). Needs view_ai_audit and, for a scoped token, ai:audit:read. Limit: 10 requests per minute.
27485
+ * @summary Export AI audit records as JSON Lines
27486
+ * @param {string} organisation The organisation machine name
27487
+ * @param {string} startDate
27488
+ * @param {string} endDate
27489
+ * @param {string} [userId]
27490
+ * @param {string} [modelId]
27491
+ * @param {string} [recordType]
27492
+ * @param {string} [decision]
27493
+ * @param {string} [tool]
27494
+ * @param {string} [outcome]
27495
+ * @param {*} [options] Override http request option.
27496
+ * @throws {RequiredError}
27497
+ * @memberof AIAuditApi
27498
+ */
27499
+ public aiAuditExport(organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options?: RawAxiosRequestConfig) {
27500
+ return AIAuditApiFp(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
27501
+ }
27502
+
27503
+ /**
27504
+ * The entries of the collection events:governance, with values, in pages: follow next_cursor while has_more is true. Each entry has its ledger block (seq, hash, prevHash, shard) for verification; open a proof with aiAuditLedgerProof and check entries offline with kv-ledger-verify and aiAuditLedgerPublicKey. Events are hash-only (no prompt or response). The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27505
+ * @summary List AI governance ledger entries
27506
+ * @param {string} organisation The organisation machine name
27507
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
27508
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
27509
+ * @param {number} [limit]
27510
+ * @param {string} [cursor] The next_cursor of the previous page.
27511
+ * @param {*} [options] Override http request option.
27512
+ * @throws {RequiredError}
27513
+ * @memberof AIAuditApi
27514
+ */
27515
+ public aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) {
27516
+ return AIAuditApiFp(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
27517
+ }
27518
+
27519
+ /**
27520
+ * The Merkle inclusion proof of one entry (key events:governance:...): entry, hash, period, merkleRoot, auditPath, the signed digest and keyId, or status pending until the entry is archived. Returned byte for byte, as KV_ledgers_proof. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27521
+ * @summary Get the inclusion proof of a governance ledger entry
27522
+ * @param {string} organisation The organisation machine name
27523
+ * @param {string} key
27524
+ * @param {*} [options] Override http request option.
27525
+ * @throws {RequiredError}
27526
+ * @memberof AIAuditApi
27527
+ */
27528
+ public aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig) {
27529
+ return AIAuditApiFp(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
27530
+ }
27531
+
27532
+ /**
27533
+ * The public key that verifies the ledger digests and receipts offline (kv-ledger-verify). The same answer as KV_ledgers_public_key. Needs view_ai_audit and, for a scoped token, ai:audit:read.
27534
+ * @summary Get the governance ledger public key
27535
+ * @param {string} organisation The organisation machine name
27536
+ * @param {*} [options] Override http request option.
27537
+ * @throws {RequiredError}
27538
+ * @memberof AIAuditApi
27539
+ */
27540
+ public aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig) {
27541
+ return AIAuditApiFp(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
27542
+ }
27543
+
27544
+ /**
27545
+ * The organisation\'s AI governance ledger (store int-ai-governance, ledger governance): definition, retention, instances and shards with head sequence, archive lag, last digest and last verify. The same answer as KV_ledgers_status. 404 STORE_NOT_FOUND or LEDGER_NOT_FOUND when the organisation has no governance ledger. The read is recorded in the audit log first (503 UNAVAILABLE when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27546
+ * @summary Get the AI governance ledger status
27547
+ * @param {string} organisation The organisation machine name
27548
+ * @param {string} [cursor] The next_cursor of the previous page.
27549
+ * @param {*} [options] Override http request option.
27550
+ * @throws {RequiredError}
27551
+ * @memberof AIAuditApi
27552
+ */
27553
+ public aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig) {
27554
+ return AIAuditApiFp(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
27555
+ }
27556
+
27557
+ /**
27558
+ * One record by key (a key from aiAuditRecordsList). A key of another organisation is 400. prompt and response are returned only when the record stores them. The read is recorded in the audit log first (503 when it cannot be). Needs view_ai_audit and, for a scoped token, ai:audit:read.
27559
+ * @summary Get one AI audit record
27560
+ * @param {string} organisation The organisation machine name
27561
+ * @param {string} key
27562
+ * @param {*} [options] Override http request option.
27563
+ * @throws {RequiredError}
27564
+ * @memberof AIAuditApi
27565
+ */
27566
+ public aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig) {
27567
+ return AIAuditApiFp(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
27568
+ }
27569
+
27570
+ /**
27571
+ * One page of the organisation\'s AI audit records (inference, tool approvals and denials, Slack bot API calls, audit log reads). Filters match exactly. A page stops at limit rows, at 1,000 scanned records or at 20 seconds, so it can hold fewer rows than limit while hasMore is true: pass nextCursor back as cursor until hasMore is false. Order: by day, then by key. prompt and response are returned only when the record stores them. Records older than 365 days are archived (skippedArchived). Each call is recorded in the audit log (recordType audit_access) before it reads; when that record cannot be written the answer is 503 and nothing is read. Needs the view_ai_audit permission and, for a scoped token, ai:audit:read.
27572
+ * @summary List AI audit records
27573
+ * @param {string} organisation The organisation machine name
27574
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
27575
+ * @param {string} endDate Last UTC day (inclusive).
27576
+ * @param {string} [since] Record time from (inclusive).
27577
+ * @param {string} [until] Record time to (exclusive).
27578
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
27579
+ * @param {string} [tokenId]
27580
+ * @param {string} [modelId]
27581
+ * @param {string} [recordType]
27582
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
27583
+ * @param {string} [tool]
27584
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
27585
+ * @param {string} [_interface]
27586
+ * @param {number} [limit]
27587
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
27588
+ * @param {*} [options] Override http request option.
27589
+ * @throws {RequiredError}
27590
+ * @memberof AIAuditApi
27591
+ */
27592
+ public aiAuditRecordsList(organisation: string, startDate: string, endDate: string, since?: string, until?: string, userId?: string, tokenId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, _interface?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) {
27593
+ return AIAuditApiFp(this.configuration).aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(this.axios, this.basePath));
27594
+ }
27595
+ }
27596
+
27597
+
27598
+
26113
27599
  /**
26114
27600
  * AICustomToolsApi - axios parameter creator
26115
27601
  * @export
@@ -29800,7 +31286,7 @@ export const AISearchApiAxiosParamCreator = function (configuration?: Configurat
29800
31286
  };
29801
31287
  },
29802
31288
  /**
29803
- *
31289
+ * A site with queryTextRetention hash keeps no query text: its queries are grouped by a keyed hash and listed as query \'Hidden query #<8 hex>\' with hashed=true and queryHash. A site with none adds no rows. hashedQueries counts the hashed rows.
29804
31290
  * @summary Get the most popular AI Search queries
29805
31291
  * @param {string} organisation
29806
31292
  * @param {string} project
@@ -30201,7 +31687,7 @@ export const AISearchApiFp = function(configuration?: Configuration) {
30201
31687
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
30202
31688
  },
30203
31689
  /**
30204
- *
31690
+ * A site with queryTextRetention hash keeps no query text: its queries are grouped by a keyed hash and listed as query \'Hidden query #<8 hex>\' with hashed=true and queryHash. A site with none adds no rows. hashedQueries counts the hashed rows.
30205
31691
  * @summary Get the most popular AI Search queries
30206
31692
  * @param {string} organisation
30207
31693
  * @param {string} project
@@ -30429,7 +31915,7 @@ export const AISearchApiFactory = function (configuration?: Configuration, baseP
30429
31915
  return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
30430
31916
  },
30431
31917
  /**
30432
- *
31918
+ * A site with queryTextRetention hash keeps no query text: its queries are grouped by a keyed hash and listed as query \'Hidden query #<8 hex>\' with hashed=true and queryHash. A site with none adds no rows. hashedQueries counts the hashed rows.
30433
31919
  * @summary Get the most popular AI Search queries
30434
31920
  * @param {string} organisation
30435
31921
  * @param {string} project
@@ -30671,7 +32157,7 @@ export class AISearchApi extends BaseAPI {
30671
32157
  }
30672
32158
 
30673
32159
  /**
30674
- *
32160
+ * A site with queryTextRetention hash keeps no query text: its queries are grouped by a keyed hash and listed as query \'Hidden query #<8 hex>\' with hashed=true and queryHash. A site with none adds no rows. hashedQueries counts the hashed rows.
30675
32161
  * @summary Get the most popular AI Search queries
30676
32162
  * @param {string} organisation
30677
32163
  * @param {string} project
@@ -32250,6 +33736,52 @@ export class AISkillsApi extends BaseAPI {
32250
33736
  */
32251
33737
  export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configuration) {
32252
33738
  return {
33739
+ /**
33740
+ *
33741
+ * @summary Cancel an unanswered Slack interaction
33742
+ * @param {string} organisation
33743
+ * @param {string} botId
33744
+ * @param {string} interactionId
33745
+ * @param {*} [options] Override http request option.
33746
+ * @throws {RequiredError}
33747
+ */
33748
+ cancelSlackInteraction: async (organisation: string, botId: string, interactionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33749
+ // verify required parameter 'organisation' is not null or undefined
33750
+ assertParamExists('cancelSlackInteraction', 'organisation', organisation)
33751
+ // verify required parameter 'botId' is not null or undefined
33752
+ assertParamExists('cancelSlackInteraction', 'botId', botId)
33753
+ // verify required parameter 'interactionId' is not null or undefined
33754
+ assertParamExists('cancelSlackInteraction', 'interactionId', interactionId)
33755
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
33756
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
33757
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
33758
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
33759
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33760
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33761
+ let baseOptions;
33762
+ if (configuration) {
33763
+ baseOptions = configuration.baseOptions;
33764
+ }
33765
+
33766
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33767
+ const localVarHeaderParameter = {} as any;
33768
+ const localVarQueryParameter = {} as any;
33769
+
33770
+ // authentication BearerAuth required
33771
+ // http bearer authentication required
33772
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33773
+
33774
+
33775
+
33776
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33777
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33778
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33779
+
33780
+ return {
33781
+ url: toPathString(localVarUrlObj),
33782
+ options: localVarRequestOptions,
33783
+ };
33784
+ },
32253
33785
  /**
32254
33786
  * 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
32255
33787
  * @summary Create Slack Bot
@@ -32294,6 +33826,60 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
32294
33826
  options: localVarRequestOptions,
32295
33827
  };
32296
33828
  },
33829
+ /**
33830
+ * External-agent interaction, not a platform tool approval. Requires explicit ai:slack, verified email and use_ai_services. The caller owns the meaning of the response. Feature must be enabled on this environment.
33831
+ * @summary Ask for a single Slack button response
33832
+ * @param {string} organisation
33833
+ * @param {string} botId
33834
+ * @param {string} idempotencyKey
33835
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
33836
+ * @param {*} [options] Override http request option.
33837
+ * @throws {RequiredError}
33838
+ */
33839
+ createSlackInteraction: async (organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
33840
+ // verify required parameter 'organisation' is not null or undefined
33841
+ assertParamExists('createSlackInteraction', 'organisation', organisation)
33842
+ // verify required parameter 'botId' is not null or undefined
33843
+ assertParamExists('createSlackInteraction', 'botId', botId)
33844
+ // verify required parameter 'idempotencyKey' is not null or undefined
33845
+ assertParamExists('createSlackInteraction', 'idempotencyKey', idempotencyKey)
33846
+ // verify required parameter 'createSlackInteractionRequest' is not null or undefined
33847
+ assertParamExists('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest)
33848
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
33849
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
33850
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
33851
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
33852
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
33853
+ let baseOptions;
33854
+ if (configuration) {
33855
+ baseOptions = configuration.baseOptions;
33856
+ }
33857
+
33858
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
33859
+ const localVarHeaderParameter = {} as any;
33860
+ const localVarQueryParameter = {} as any;
33861
+
33862
+ // authentication BearerAuth required
33863
+ // http bearer authentication required
33864
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
33865
+
33866
+
33867
+
33868
+ localVarHeaderParameter['Content-Type'] = 'application/json';
33869
+
33870
+ if (idempotencyKey != null) {
33871
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
33872
+ }
33873
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
33874
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
33875
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
33876
+ localVarRequestOptions.data = serializeDataIfNeeded(createSlackInteractionRequest, localVarRequestOptions, configuration)
33877
+
33878
+ return {
33879
+ url: toPathString(localVarUrlObj),
33880
+ options: localVarRequestOptions,
33881
+ };
33882
+ },
32297
33883
  /**
32298
33884
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
32299
33885
  * @summary Delete Slack Bot
@@ -32434,6 +34020,52 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
32434
34020
 
32435
34021
 
32436
34022
 
34023
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34024
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34025
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34026
+
34027
+ return {
34028
+ url: toPathString(localVarUrlObj),
34029
+ options: localVarRequestOptions,
34030
+ };
34031
+ },
34032
+ /**
34033
+ * Owner-bound to the creating org, bot, user and token. Recorded responses identify Slack workspace/user and actionId. Silence, expiry and intermediate states do not mean approval.
34034
+ * @summary Read an external Slack interaction
34035
+ * @param {string} organisation
34036
+ * @param {string} botId
34037
+ * @param {string} interactionId
34038
+ * @param {*} [options] Override http request option.
34039
+ * @throws {RequiredError}
34040
+ */
34041
+ getSlackInteraction: async (organisation: string, botId: string, interactionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34042
+ // verify required parameter 'organisation' is not null or undefined
34043
+ assertParamExists('getSlackInteraction', 'organisation', organisation)
34044
+ // verify required parameter 'botId' is not null or undefined
34045
+ assertParamExists('getSlackInteraction', 'botId', botId)
34046
+ // verify required parameter 'interactionId' is not null or undefined
34047
+ assertParamExists('getSlackInteraction', 'interactionId', interactionId)
34048
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
34049
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
34050
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
34051
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
34052
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34053
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34054
+ let baseOptions;
34055
+ if (configuration) {
34056
+ baseOptions = configuration.baseOptions;
34057
+ }
34058
+
34059
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
34060
+ const localVarHeaderParameter = {} as any;
34061
+ const localVarQueryParameter = {} as any;
34062
+
34063
+ // authentication BearerAuth required
34064
+ // http bearer authentication required
34065
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34066
+
34067
+
34068
+
32437
34069
  setSearchParams(localVarUrlObj, localVarQueryParameter);
32438
34070
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
32439
34071
  localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
@@ -32580,6 +34212,58 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
32580
34212
  options: localVarRequestOptions,
32581
34213
  };
32582
34214
  },
34215
+ /**
34216
+ * The bot uploads one image in an allowed channel or thread, with an attribution line that shows your name. The type comes from the bytes: PNG, JPEG, GIF or WebP, at most 4 MiB decoded. Counts as one write. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
34217
+ * @summary Post an image as the bot
34218
+ * @param {string} organisation The organisation machine name
34219
+ * @param {string} botId
34220
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
34221
+ * @param {string} [idempotencyKey] 8-128 visible ASCII characters. The same key and body within 10 minutes returns the first result and does not upload again.
34222
+ * @param {*} [options] Override http request option.
34223
+ * @throws {RequiredError}
34224
+ */
34225
+ postSlackBotFile: async (organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
34226
+ // verify required parameter 'organisation' is not null or undefined
34227
+ assertParamExists('postSlackBotFile', 'organisation', organisation)
34228
+ // verify required parameter 'botId' is not null or undefined
34229
+ assertParamExists('postSlackBotFile', 'botId', botId)
34230
+ // verify required parameter 'postSlackBotFileRequest' is not null or undefined
34231
+ assertParamExists('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest)
34232
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
34233
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
34234
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
34235
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
34236
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
34237
+ let baseOptions;
34238
+ if (configuration) {
34239
+ baseOptions = configuration.baseOptions;
34240
+ }
34241
+
34242
+ const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
34243
+ const localVarHeaderParameter = {} as any;
34244
+ const localVarQueryParameter = {} as any;
34245
+
34246
+ // authentication BearerAuth required
34247
+ // http bearer authentication required
34248
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
34249
+
34250
+
34251
+
34252
+ localVarHeaderParameter['Content-Type'] = 'application/json';
34253
+
34254
+ if (idempotencyKey != null) {
34255
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
34256
+ }
34257
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
34258
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
34259
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
34260
+ localVarRequestOptions.data = serializeDataIfNeeded(postSlackBotFileRequest, localVarRequestOptions, configuration)
34261
+
34262
+ return {
34263
+ url: toPathString(localVarUrlObj),
34264
+ options: localVarRequestOptions,
34265
+ };
34266
+ },
32583
34267
  /**
32584
34268
  * The bot posts the text in an allowed channel, with an attribution line that shows your name. The bot does not answer the post. Mentions keep only the `<@U…>` form (at most 10 users); other control forms show as text. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
32585
34269
  * @summary Post a message as the bot
@@ -32784,6 +34468,21 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
32784
34468
  export const AISlackBotsApiFp = function(configuration?: Configuration) {
32785
34469
  const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration)
32786
34470
  return {
34471
+ /**
34472
+ *
34473
+ * @summary Cancel an unanswered Slack interaction
34474
+ * @param {string} organisation
34475
+ * @param {string} botId
34476
+ * @param {string} interactionId
34477
+ * @param {*} [options] Override http request option.
34478
+ * @throws {RequiredError}
34479
+ */
34480
+ async cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34481
+ const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
34482
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34483
+ const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.cancelSlackInteraction']?.[localVarOperationServerIndex]?.url;
34484
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34485
+ },
32787
34486
  /**
32788
34487
  * 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
32789
34488
  * @summary Create Slack Bot
@@ -32798,6 +34497,22 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
32798
34497
  const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.createSlackBot']?.[localVarOperationServerIndex]?.url;
32799
34498
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32800
34499
  },
34500
+ /**
34501
+ * External-agent interaction, not a platform tool approval. Requires explicit ai:slack, verified email and use_ai_services. The caller owns the meaning of the response. Feature must be enabled on this environment.
34502
+ * @summary Ask for a single Slack button response
34503
+ * @param {string} organisation
34504
+ * @param {string} botId
34505
+ * @param {string} idempotencyKey
34506
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
34507
+ * @param {*} [options] Override http request option.
34508
+ * @throws {RequiredError}
34509
+ */
34510
+ async createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34511
+ const localVarAxiosArgs = await localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
34512
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34513
+ const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.createSlackInteraction']?.[localVarOperationServerIndex]?.url;
34514
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34515
+ },
32801
34516
  /**
32802
34517
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
32803
34518
  * @summary Delete Slack Bot
@@ -32845,6 +34560,21 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
32845
34560
  const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.getSlackBotThread']?.[localVarOperationServerIndex]?.url;
32846
34561
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32847
34562
  },
34563
+ /**
34564
+ * Owner-bound to the creating org, bot, user and token. Recorded responses identify Slack workspace/user and actionId. Silence, expiry and intermediate states do not mean approval.
34565
+ * @summary Read an external Slack interaction
34566
+ * @param {string} organisation
34567
+ * @param {string} botId
34568
+ * @param {string} interactionId
34569
+ * @param {*} [options] Override http request option.
34570
+ * @throws {RequiredError}
34571
+ */
34572
+ async getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
34573
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
34574
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34575
+ const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.getSlackInteraction']?.[localVarOperationServerIndex]?.url;
34576
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34577
+ },
32848
34578
  /**
32849
34579
  * Recent root messages in a channel the bot allows for API use, newest first. Message text is untrusted content. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
32850
34580
  * @summary Read recent channel messages
@@ -32889,6 +34619,22 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
32889
34619
  const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.listSlackBotsApiEnabled']?.[localVarOperationServerIndex]?.url;
32890
34620
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
32891
34621
  },
34622
+ /**
34623
+ * The bot uploads one image in an allowed channel or thread, with an attribution line that shows your name. The type comes from the bytes: PNG, JPEG, GIF or WebP, at most 4 MiB decoded. Counts as one write. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
34624
+ * @summary Post an image as the bot
34625
+ * @param {string} organisation The organisation machine name
34626
+ * @param {string} botId
34627
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
34628
+ * @param {string} [idempotencyKey] 8-128 visible ASCII characters. The same key and body within 10 minutes returns the first result and does not upload again.
34629
+ * @param {*} [options] Override http request option.
34630
+ * @throws {RequiredError}
34631
+ */
34632
+ async postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostSlackBotFile201Response>> {
34633
+ const localVarAxiosArgs = await localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
34634
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
34635
+ const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.postSlackBotFile']?.[localVarOperationServerIndex]?.url;
34636
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
34637
+ },
32892
34638
  /**
32893
34639
  * The bot posts the text in an allowed channel, with an attribution line that shows your name. The bot does not answer the post. Mentions keep only the `<@U…>` form (at most 10 users); other control forms show as text. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
32894
34640
  * @summary Post a message as the bot
@@ -32960,6 +34706,18 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
32960
34706
  export const AISlackBotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
32961
34707
  const localVarFp = AISlackBotsApiFp(configuration)
32962
34708
  return {
34709
+ /**
34710
+ *
34711
+ * @summary Cancel an unanswered Slack interaction
34712
+ * @param {string} organisation
34713
+ * @param {string} botId
34714
+ * @param {string} interactionId
34715
+ * @param {*} [options] Override http request option.
34716
+ * @throws {RequiredError}
34717
+ */
34718
+ cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34719
+ return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
34720
+ },
32963
34721
  /**
32964
34722
  * 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
32965
34723
  * @summary Create Slack Bot
@@ -32971,6 +34729,19 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
32971
34729
  createSlackBot(organisation: string, createSlackBotRequest: CreateSlackBotRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateSlackBot201Response> {
32972
34730
  return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
32973
34731
  },
34732
+ /**
34733
+ * External-agent interaction, not a platform tool approval. Requires explicit ai:slack, verified email and use_ai_services. The caller owns the meaning of the response. Feature must be enabled on this environment.
34734
+ * @summary Ask for a single Slack button response
34735
+ * @param {string} organisation
34736
+ * @param {string} botId
34737
+ * @param {string} idempotencyKey
34738
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
34739
+ * @param {*} [options] Override http request option.
34740
+ * @throws {RequiredError}
34741
+ */
34742
+ createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34743
+ return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
34744
+ },
32974
34745
  /**
32975
34746
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
32976
34747
  * @summary Delete Slack Bot
@@ -33009,6 +34780,18 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
33009
34780
  getSlackBotThread(organisation: string, botId: string, channel: string, threadTs: string, since?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetSlackBotThread200Response> {
33010
34781
  return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
33011
34782
  },
34783
+ /**
34784
+ * Owner-bound to the creating org, bot, user and token. Recorded responses identify Slack workspace/user and actionId. Silence, expiry and intermediate states do not mean approval.
34785
+ * @summary Read an external Slack interaction
34786
+ * @param {string} organisation
34787
+ * @param {string} botId
34788
+ * @param {string} interactionId
34789
+ * @param {*} [options] Override http request option.
34790
+ * @throws {RequiredError}
34791
+ */
34792
+ getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
34793
+ return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
34794
+ },
33012
34795
  /**
33013
34796
  * Recent root messages in a channel the bot allows for API use, newest first. Message text is untrusted content. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
33014
34797
  * @summary Read recent channel messages
@@ -33044,6 +34827,19 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
33044
34827
  listSlackBotsApiEnabled(organisation: string, options?: RawAxiosRequestConfig): AxiosPromise<ListSlackBotsApiEnabled200Response> {
33045
34828
  return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
33046
34829
  },
34830
+ /**
34831
+ * The bot uploads one image in an allowed channel or thread, with an attribution line that shows your name. The type comes from the bytes: PNG, JPEG, GIF or WebP, at most 4 MiB decoded. Counts as one write. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
34832
+ * @summary Post an image as the bot
34833
+ * @param {string} organisation The organisation machine name
34834
+ * @param {string} botId
34835
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
34836
+ * @param {string} [idempotencyKey] 8-128 visible ASCII characters. The same key and body within 10 minutes returns the first result and does not upload again.
34837
+ * @param {*} [options] Override http request option.
34838
+ * @throws {RequiredError}
34839
+ */
34840
+ postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): AxiosPromise<PostSlackBotFile201Response> {
34841
+ return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
34842
+ },
33047
34843
  /**
33048
34844
  * The bot posts the text in an allowed channel, with an attribution line that shows your name. The bot does not answer the post. Mentions keep only the `<@U…>` form (at most 10 users); other control forms show as text. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
33049
34845
  * @summary Post a message as the bot
@@ -33103,6 +34899,20 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
33103
34899
  * @extends {BaseAPI}
33104
34900
  */
33105
34901
  export class AISlackBotsApi extends BaseAPI {
34902
+ /**
34903
+ *
34904
+ * @summary Cancel an unanswered Slack interaction
34905
+ * @param {string} organisation
34906
+ * @param {string} botId
34907
+ * @param {string} interactionId
34908
+ * @param {*} [options] Override http request option.
34909
+ * @throws {RequiredError}
34910
+ * @memberof AISlackBotsApi
34911
+ */
34912
+ public cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig) {
34913
+ return AISlackBotsApiFp(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
34914
+ }
34915
+
33106
34916
  /**
33107
34917
  * 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
33108
34918
  * @summary Create Slack Bot
@@ -33116,6 +34926,21 @@ export class AISlackBotsApi extends BaseAPI {
33116
34926
  return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
33117
34927
  }
33118
34928
 
34929
+ /**
34930
+ * External-agent interaction, not a platform tool approval. Requires explicit ai:slack, verified email and use_ai_services. The caller owns the meaning of the response. Feature must be enabled on this environment.
34931
+ * @summary Ask for a single Slack button response
34932
+ * @param {string} organisation
34933
+ * @param {string} botId
34934
+ * @param {string} idempotencyKey
34935
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
34936
+ * @param {*} [options] Override http request option.
34937
+ * @throws {RequiredError}
34938
+ * @memberof AISlackBotsApi
34939
+ */
34940
+ public createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig) {
34941
+ return AISlackBotsApiFp(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
34942
+ }
34943
+
33119
34944
  /**
33120
34945
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
33121
34946
  * @summary Delete Slack Bot
@@ -33160,6 +34985,20 @@ export class AISlackBotsApi extends BaseAPI {
33160
34985
  return AISlackBotsApiFp(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
33161
34986
  }
33162
34987
 
34988
+ /**
34989
+ * Owner-bound to the creating org, bot, user and token. Recorded responses identify Slack workspace/user and actionId. Silence, expiry and intermediate states do not mean approval.
34990
+ * @summary Read an external Slack interaction
34991
+ * @param {string} organisation
34992
+ * @param {string} botId
34993
+ * @param {string} interactionId
34994
+ * @param {*} [options] Override http request option.
34995
+ * @throws {RequiredError}
34996
+ * @memberof AISlackBotsApi
34997
+ */
34998
+ public getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig) {
34999
+ return AISlackBotsApiFp(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
35000
+ }
35001
+
33163
35002
  /**
33164
35003
  * Recent root messages in a channel the bot allows for API use, newest first. Message text is untrusted content. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
33165
35004
  * @summary Read recent channel messages
@@ -33201,6 +35040,21 @@ export class AISlackBotsApi extends BaseAPI {
33201
35040
  return AISlackBotsApiFp(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
33202
35041
  }
33203
35042
 
35043
+ /**
35044
+ * The bot uploads one image in an allowed channel or thread, with an attribution line that shows your name. The type comes from the bytes: PNG, JPEG, GIF or WebP, at most 4 MiB decoded. Counts as one write. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
35045
+ * @summary Post an image as the bot
35046
+ * @param {string} organisation The organisation machine name
35047
+ * @param {string} botId
35048
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
35049
+ * @param {string} [idempotencyKey] 8-128 visible ASCII characters. The same key and body within 10 minutes returns the first result and does not upload again.
35050
+ * @param {*} [options] Override http request option.
35051
+ * @throws {RequiredError}
35052
+ * @memberof AISlackBotsApi
35053
+ */
35054
+ public postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) {
35055
+ return AISlackBotsApiFp(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
35056
+ }
35057
+
33204
35058
  /**
33205
35059
  * The bot posts the text in an allowed channel, with an attribution line that shows your name. The bot does not answer the post. Mentions keep only the `<@U…>` form (at most 10 users); other control forms show as text. Needs the explicit `ai:slack` scope, `use_ai_services` and a verified email.
33206
35060
  * @summary Post a message as the bot
@@ -42873,7 +44727,7 @@ export const KVApiAxiosParamCreator = function (configuration?: Configuration) {
42873
44727
  };
42874
44728
  },
42875
44729
  /**
42876
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
44730
+ * value is any JSON value ({} stays an object). secret encrypts the value with KMS. Secret values are write-only through the API: reads, lists and this answer show [ENCRYPTED]. ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
42877
44731
  * @summary Set a key, optionally only if absent or only at a version
42878
44732
  * @param {string} organization Organization identifier
42879
44733
  * @param {string} project Project identifier
@@ -45632,7 +47486,7 @@ export const KVApiFp = function(configuration?: Configuration) {
45632
47486
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
45633
47487
  },
45634
47488
  /**
45635
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
47489
+ * value is any JSON value ({} stays an object). secret encrypts the value with KMS. Secret values are write-only through the API: reads, lists and this answer show [ENCRYPTED]. ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
45636
47490
  * @summary Set a key, optionally only if absent or only at a version
45637
47491
  * @param {string} organization Organization identifier
45638
47492
  * @param {string} project Project identifier
@@ -46556,7 +48410,7 @@ export const KVApiFactory = function (configuration?: Configuration, basePath?:
46556
48410
  return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
46557
48411
  },
46558
48412
  /**
46559
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
48413
+ * value is any JSON value ({} stays an object). secret encrypts the value with KMS. Secret values are write-only through the API: reads, lists and this answer show [ENCRYPTED]. ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
46560
48414
  * @summary Set a key, optionally only if absent or only at a version
46561
48415
  * @param {string} organization Organization identifier
46562
48416
  * @param {string} project Project identifier
@@ -47354,7 +49208,7 @@ export class KVApi extends BaseAPI {
47354
49208
  }
47355
49209
 
47356
49210
  /**
47357
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
49211
+ * value is any JSON value ({} stays an object). secret encrypts the value with KMS. Secret values are write-only through the API: reads, lists and this answer show [ENCRYPTED]. ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
47358
49212
  * @summary Set a key, optionally only if absent or only at a version
47359
49213
  * @param {string} organization Organization identifier
47360
49214
  * @param {string} project Project identifier
@@ -48633,7 +50487,7 @@ export class OrganizationsApi extends BaseAPI {
48633
50487
  export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) {
48634
50488
  return {
48635
50489
  /**
48636
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
50490
+ * Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
48637
50491
  * @summary Get CDN access logs for a project
48638
50492
  * @param {string} organization The organization machine name
48639
50493
  * @param {string} project The project machine name
@@ -48936,7 +50790,7 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
48936
50790
  const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration)
48937
50791
  return {
48938
50792
  /**
48939
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
50793
+ * Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
48940
50794
  * @summary Get CDN access logs for a project
48941
50795
  * @param {string} organization The organization machine name
48942
50796
  * @param {string} project The project machine name
@@ -49037,7 +50891,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
49037
50891
  const localVarFp = ProjectsApiFp(configuration)
49038
50892
  return {
49039
50893
  /**
49040
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
50894
+ * Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
49041
50895
  * @summary Get CDN access logs for a project
49042
50896
  * @param {string} organization The organization machine name
49043
50897
  * @param {string} project The project machine name
@@ -49120,7 +50974,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
49120
50974
  */
49121
50975
  export class ProjectsApi extends BaseAPI {
49122
50976
  /**
49123
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
50977
+ * Retrieves CDN access log entries for a project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days. For QuantCDN (Fastly) projects, entries are up to about 30 minutes behind, and a slow query can return an empty page with a nextToken: call again with it to collect the entries.
49124
50978
  * @summary Get CDN access logs for a project
49125
50979
  * @param {string} organization The organization machine name
49126
50980
  * @param {string} project The project machine name
@@ -52266,6 +54120,48 @@ export const RulesApiAxiosParamCreator = function (configuration?: Configuration
52266
54120
  options: localVarRequestOptions,
52267
54121
  };
52268
54122
  },
54123
+ /**
54124
+ * Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order) and `managed` (true when a template deploy owns the rule in this project). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
54125
+ * @summary List all rules in edge order
54126
+ * @param {string} organization
54127
+ * @param {string} project
54128
+ * @param {*} [options] Override http request option.
54129
+ * @throws {RequiredError}
54130
+ */
54131
+ rulesIndexList: async (organization: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
54132
+ // verify required parameter 'organization' is not null or undefined
54133
+ assertParamExists('rulesIndexList', 'organization', organization)
54134
+ // verify required parameter 'project' is not null or undefined
54135
+ assertParamExists('rulesIndexList', 'project', project)
54136
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
54137
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
54138
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
54139
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
54140
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
54141
+ let baseOptions;
54142
+ if (configuration) {
54143
+ baseOptions = configuration.baseOptions;
54144
+ }
54145
+
54146
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
54147
+ const localVarHeaderParameter = {} as any;
54148
+ const localVarQueryParameter = {} as any;
54149
+
54150
+ // authentication BearerAuth required
54151
+ // http bearer authentication required
54152
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
54153
+
54154
+
54155
+
54156
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
54157
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
54158
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
54159
+
54160
+ return {
54161
+ url: toPathString(localVarUrlObj),
54162
+ options: localVarRequestOptions,
54163
+ };
54164
+ },
52269
54165
  /**
52270
54166
  *
52271
54167
  * @summary Create a proxy rule
@@ -53578,6 +55474,20 @@ export const RulesApiFp = function(configuration?: Configuration) {
53578
55474
  const localVarOperationServerBasePath = operationServerMap['RulesApi.rulesHeadersUpdate']?.[localVarOperationServerIndex]?.url;
53579
55475
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
53580
55476
  },
55477
+ /**
55478
+ * Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order) and `managed` (true when a template deploy owns the rule in this project). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
55479
+ * @summary List all rules in edge order
55480
+ * @param {string} organization
55481
+ * @param {string} project
55482
+ * @param {*} [options] Override http request option.
55483
+ * @throws {RequiredError}
55484
+ */
55485
+ async rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RulesIndexList200ResponseInner>>> {
55486
+ const localVarAxiosArgs = await localVarAxiosParamCreator.rulesIndexList(organization, project, options);
55487
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
55488
+ const localVarOperationServerBasePath = operationServerMap['RulesApi.rulesIndexList']?.[localVarOperationServerIndex]?.url;
55489
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
55490
+ },
53581
55491
  /**
53582
55492
  *
53583
55493
  * @summary Create a proxy rule
@@ -54293,6 +56203,17 @@ export const RulesApiFactory = function (configuration?: Configuration, basePath
54293
56203
  rulesHeadersUpdate(organization: string, project: string, rule: string, v2RuleHeaderRequest: V2RuleHeaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<V2RuleHeader> {
54294
56204
  return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
54295
56205
  },
56206
+ /**
56207
+ * Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order) and `managed` (true when a template deploy owns the rule in this project). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
56208
+ * @summary List all rules in edge order
56209
+ * @param {string} organization
56210
+ * @param {string} project
56211
+ * @param {*} [options] Override http request option.
56212
+ * @throws {RequiredError}
56213
+ */
56214
+ rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<RulesIndexList200ResponseInner>> {
56215
+ return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
56216
+ },
54296
56217
  /**
54297
56218
  *
54298
56219
  * @summary Create a proxy rule
@@ -55043,6 +56964,19 @@ export class RulesApi extends BaseAPI {
55043
56964
  return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
55044
56965
  }
55045
56966
 
56967
+ /**
56968
+ * Returns every rule in the order the edge runs them. Each item has the fields of the per-type list for its rule type, plus `position` (0-based index in this order) and `managed` (true when a template deploy owns the rule in this project). For a trial organisation without a payment method, the list is partial: it leaves out functions, content filters and auth functions, as their per-type lists refuse that caller (the same gate, with the same superadmin masquerade bypass), so `position` values can have gaps. Do not treat a partial list as a full mirror of the edge rules. One malformed stored rule fails the whole request, so a client never receives an order with a silent hole.
56969
+ * @summary List all rules in edge order
56970
+ * @param {string} organization
56971
+ * @param {string} project
56972
+ * @param {*} [options] Override http request option.
56973
+ * @throws {RequiredError}
56974
+ * @memberof RulesApi
56975
+ */
56976
+ public rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig) {
56977
+ return RulesApiFp(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
56978
+ }
56979
+
55046
56980
  /**
55047
56981
  *
55048
56982
  * @summary Create a proxy rule
@@ -55749,6 +57683,329 @@ export const ListScalingPoliciesMetricEnum = {
55749
57683
  export type ListScalingPoliciesMetricEnum = typeof ListScalingPoliciesMetricEnum[keyof typeof ListScalingPoliciesMetricEnum];
55750
57684
 
55751
57685
 
57686
+ /**
57687
+ * SecretsApi - axios parameter creator
57688
+ * @export
57689
+ */
57690
+ export const SecretsApiAxiosParamCreator = function (configuration?: Configuration) {
57691
+ return {
57692
+ /**
57693
+ * Deletes the secret. The change takes effect on the next redeploy of the environment. A 200 with warnings means the deployed revision still references the secret and cannot start a replacement task until it is redeployed.
57694
+ * @summary Delete a secret
57695
+ * @param {string} apiOrganisation The organisation ID
57696
+ * @param {string} apiApplication The application ID
57697
+ * @param {string} apiEnvironment The environment ID
57698
+ * @param {string} apiSecret The secret key
57699
+ * @param {*} [options] Override http request option.
57700
+ * @throws {RequiredError}
57701
+ */
57702
+ deleteEnvironmentSecret: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57703
+ // verify required parameter 'apiOrganisation' is not null or undefined
57704
+ assertParamExists('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation)
57705
+ // verify required parameter 'apiApplication' is not null or undefined
57706
+ assertParamExists('deleteEnvironmentSecret', 'apiApplication', apiApplication)
57707
+ // verify required parameter 'apiEnvironment' is not null or undefined
57708
+ assertParamExists('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment)
57709
+ // verify required parameter 'apiSecret' is not null or undefined
57710
+ assertParamExists('deleteEnvironmentSecret', 'apiSecret', apiSecret)
57711
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
57712
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
57713
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
57714
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
57715
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
57716
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57717
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57718
+ let baseOptions;
57719
+ if (configuration) {
57720
+ baseOptions = configuration.baseOptions;
57721
+ }
57722
+
57723
+ const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
57724
+ const localVarHeaderParameter = {} as any;
57725
+ const localVarQueryParameter = {} as any;
57726
+
57727
+ // authentication BearerAuth required
57728
+ // http bearer authentication required
57729
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57730
+
57731
+
57732
+
57733
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57734
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57735
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57736
+
57737
+ return {
57738
+ url: toPathString(localVarUrlObj),
57739
+ options: localVarRequestOptions,
57740
+ };
57741
+ },
57742
+ /**
57743
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
57744
+ * @summary List the secret names for an environment
57745
+ * @param {string} apiOrganisation The organisation ID
57746
+ * @param {string} apiApplication The application ID
57747
+ * @param {string} apiEnvironment The environment ID
57748
+ * @param {*} [options] Override http request option.
57749
+ * @throws {RequiredError}
57750
+ */
57751
+ listEnvironmentSecrets: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57752
+ // verify required parameter 'apiOrganisation' is not null or undefined
57753
+ assertParamExists('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation)
57754
+ // verify required parameter 'apiApplication' is not null or undefined
57755
+ assertParamExists('listEnvironmentSecrets', 'apiApplication', apiApplication)
57756
+ // verify required parameter 'apiEnvironment' is not null or undefined
57757
+ assertParamExists('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment)
57758
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
57759
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
57760
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
57761
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
57762
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57763
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57764
+ let baseOptions;
57765
+ if (configuration) {
57766
+ baseOptions = configuration.baseOptions;
57767
+ }
57768
+
57769
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
57770
+ const localVarHeaderParameter = {} as any;
57771
+ const localVarQueryParameter = {} as any;
57772
+
57773
+ // authentication BearerAuth required
57774
+ // http bearer authentication required
57775
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57776
+
57777
+
57778
+
57779
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57780
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57781
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57782
+
57783
+ return {
57784
+ url: toPathString(localVarUrlObj),
57785
+ options: localVarRequestOptions,
57786
+ };
57787
+ },
57788
+ /**
57789
+ * Sets the secret value. The value is write-only: the response returns the key only. The change takes effect on the next redeploy of the environment. A name that already exists as an environment variable is refused with 409.
57790
+ * @summary Create or replace a secret
57791
+ * @param {string} apiOrganisation The organisation ID
57792
+ * @param {string} apiApplication The application ID
57793
+ * @param {string} apiEnvironment The environment ID
57794
+ * @param {string} apiSecret The secret key
57795
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
57796
+ * @param {*} [options] Override http request option.
57797
+ * @throws {RequiredError}
57798
+ */
57799
+ updateEnvironmentSecret: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
57800
+ // verify required parameter 'apiOrganisation' is not null or undefined
57801
+ assertParamExists('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation)
57802
+ // verify required parameter 'apiApplication' is not null or undefined
57803
+ assertParamExists('updateEnvironmentSecret', 'apiApplication', apiApplication)
57804
+ // verify required parameter 'apiEnvironment' is not null or undefined
57805
+ assertParamExists('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment)
57806
+ // verify required parameter 'apiSecret' is not null or undefined
57807
+ assertParamExists('updateEnvironmentSecret', 'apiSecret', apiSecret)
57808
+ // verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
57809
+ assertParamExists('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest)
57810
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
57811
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
57812
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
57813
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
57814
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
57815
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
57816
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
57817
+ let baseOptions;
57818
+ if (configuration) {
57819
+ baseOptions = configuration.baseOptions;
57820
+ }
57821
+
57822
+ const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
57823
+ const localVarHeaderParameter = {} as any;
57824
+ const localVarQueryParameter = {} as any;
57825
+
57826
+ // authentication BearerAuth required
57827
+ // http bearer authentication required
57828
+ await setBearerAuthToObject(localVarHeaderParameter, configuration)
57829
+
57830
+
57831
+
57832
+ localVarHeaderParameter['Content-Type'] = 'application/json';
57833
+
57834
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
57835
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
57836
+ localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
57837
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEnvironmentSecretRequest, localVarRequestOptions, configuration)
57838
+
57839
+ return {
57840
+ url: toPathString(localVarUrlObj),
57841
+ options: localVarRequestOptions,
57842
+ };
57843
+ },
57844
+ }
57845
+ };
57846
+
57847
+ /**
57848
+ * SecretsApi - functional programming interface
57849
+ * @export
57850
+ */
57851
+ export const SecretsApiFp = function(configuration?: Configuration) {
57852
+ const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration)
57853
+ return {
57854
+ /**
57855
+ * Deletes the secret. The change takes effect on the next redeploy of the environment. A 200 with warnings means the deployed revision still references the secret and cannot start a replacement task until it is redeployed.
57856
+ * @summary Delete a secret
57857
+ * @param {string} apiOrganisation The organisation ID
57858
+ * @param {string} apiApplication The application ID
57859
+ * @param {string} apiEnvironment The environment ID
57860
+ * @param {string} apiSecret The secret key
57861
+ * @param {*} [options] Override http request option.
57862
+ * @throws {RequiredError}
57863
+ */
57864
+ async deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEnvironmentSecret200Response>> {
57865
+ const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
57866
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
57867
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.deleteEnvironmentSecret']?.[localVarOperationServerIndex]?.url;
57868
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
57869
+ },
57870
+ /**
57871
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
57872
+ * @summary List the secret names for an environment
57873
+ * @param {string} apiOrganisation The organisation ID
57874
+ * @param {string} apiApplication The application ID
57875
+ * @param {string} apiEnvironment The environment ID
57876
+ * @param {*} [options] Override http request option.
57877
+ * @throws {RequiredError}
57878
+ */
57879
+ async listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SecretKey>>> {
57880
+ const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
57881
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
57882
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.listEnvironmentSecrets']?.[localVarOperationServerIndex]?.url;
57883
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
57884
+ },
57885
+ /**
57886
+ * Sets the secret value. The value is write-only: the response returns the key only. The change takes effect on the next redeploy of the environment. A name that already exists as an environment variable is refused with 409.
57887
+ * @summary Create or replace a secret
57888
+ * @param {string} apiOrganisation The organisation ID
57889
+ * @param {string} apiApplication The application ID
57890
+ * @param {string} apiEnvironment The environment ID
57891
+ * @param {string} apiSecret The secret key
57892
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
57893
+ * @param {*} [options] Override http request option.
57894
+ * @throws {RequiredError}
57895
+ */
57896
+ async updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretWriteResult>> {
57897
+ const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
57898
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
57899
+ const localVarOperationServerBasePath = operationServerMap['SecretsApi.updateEnvironmentSecret']?.[localVarOperationServerIndex]?.url;
57900
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
57901
+ },
57902
+ }
57903
+ };
57904
+
57905
+ /**
57906
+ * SecretsApi - factory interface
57907
+ * @export
57908
+ */
57909
+ export const SecretsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
57910
+ const localVarFp = SecretsApiFp(configuration)
57911
+ return {
57912
+ /**
57913
+ * Deletes the secret. The change takes effect on the next redeploy of the environment. A 200 with warnings means the deployed revision still references the secret and cannot start a replacement task until it is redeployed.
57914
+ * @summary Delete a secret
57915
+ * @param {string} apiOrganisation The organisation ID
57916
+ * @param {string} apiApplication The application ID
57917
+ * @param {string} apiEnvironment The environment ID
57918
+ * @param {string} apiSecret The secret key
57919
+ * @param {*} [options] Override http request option.
57920
+ * @throws {RequiredError}
57921
+ */
57922
+ deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEnvironmentSecret200Response> {
57923
+ return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
57924
+ },
57925
+ /**
57926
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
57927
+ * @summary List the secret names for an environment
57928
+ * @param {string} apiOrganisation The organisation ID
57929
+ * @param {string} apiApplication The application ID
57930
+ * @param {string} apiEnvironment The environment ID
57931
+ * @param {*} [options] Override http request option.
57932
+ * @throws {RequiredError}
57933
+ */
57934
+ listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SecretKey>> {
57935
+ return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
57936
+ },
57937
+ /**
57938
+ * Sets the secret value. The value is write-only: the response returns the key only. The change takes effect on the next redeploy of the environment. A name that already exists as an environment variable is refused with 409.
57939
+ * @summary Create or replace a secret
57940
+ * @param {string} apiOrganisation The organisation ID
57941
+ * @param {string} apiApplication The application ID
57942
+ * @param {string} apiEnvironment The environment ID
57943
+ * @param {string} apiSecret The secret key
57944
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
57945
+ * @param {*} [options] Override http request option.
57946
+ * @throws {RequiredError}
57947
+ */
57948
+ updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<SecretWriteResult> {
57949
+ return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
57950
+ },
57951
+ };
57952
+ };
57953
+
57954
+ /**
57955
+ * SecretsApi - object-oriented interface
57956
+ * @export
57957
+ * @class SecretsApi
57958
+ * @extends {BaseAPI}
57959
+ */
57960
+ export class SecretsApi extends BaseAPI {
57961
+ /**
57962
+ * Deletes the secret. The change takes effect on the next redeploy of the environment. A 200 with warnings means the deployed revision still references the secret and cannot start a replacement task until it is redeployed.
57963
+ * @summary Delete a secret
57964
+ * @param {string} apiOrganisation The organisation ID
57965
+ * @param {string} apiApplication The application ID
57966
+ * @param {string} apiEnvironment The environment ID
57967
+ * @param {string} apiSecret The secret key
57968
+ * @param {*} [options] Override http request option.
57969
+ * @throws {RequiredError}
57970
+ * @memberof SecretsApi
57971
+ */
57972
+ public deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig) {
57973
+ return SecretsApiFp(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
57974
+ }
57975
+
57976
+ /**
57977
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
57978
+ * @summary List the secret names for an environment
57979
+ * @param {string} apiOrganisation The organisation ID
57980
+ * @param {string} apiApplication The application ID
57981
+ * @param {string} apiEnvironment The environment ID
57982
+ * @param {*} [options] Override http request option.
57983
+ * @throws {RequiredError}
57984
+ * @memberof SecretsApi
57985
+ */
57986
+ public listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig) {
57987
+ return SecretsApiFp(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
57988
+ }
57989
+
57990
+ /**
57991
+ * Sets the secret value. The value is write-only: the response returns the key only. The change takes effect on the next redeploy of the environment. A name that already exists as an environment variable is refused with 409.
57992
+ * @summary Create or replace a secret
57993
+ * @param {string} apiOrganisation The organisation ID
57994
+ * @param {string} apiApplication The application ID
57995
+ * @param {string} apiEnvironment The environment ID
57996
+ * @param {string} apiSecret The secret key
57997
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
57998
+ * @param {*} [options] Override http request option.
57999
+ * @throws {RequiredError}
58000
+ * @memberof SecretsApi
58001
+ */
58002
+ public updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig) {
58003
+ return SecretsApiFp(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
58004
+ }
58005
+ }
58006
+
58007
+
58008
+
55752
58009
  /**
55753
58010
  * SubscriptionApi - axios parameter creator
55754
58011
  * @export