@quantcdn/quant-client 4.29.0 → 4.31.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/README.md +6 -6
- package/api.ts +2491 -78
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1623 -78
- package/dist/api.js +1819 -228
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1623 -78
- package/dist/esm/api.js +1803 -220
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/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.
|
|
7
|
+
* The version of the OpenAPI document: 4.31.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
|
|
@@ -2424,6 +2705,12 @@ export interface CreateAIAgentRequest {
|
|
|
2424
2705
|
* @memberof CreateAIAgentRequest
|
|
2425
2706
|
*/
|
|
2426
2707
|
'longContext'?: boolean;
|
|
2708
|
+
/**
|
|
2709
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
2710
|
+
* @type {string}
|
|
2711
|
+
* @memberof CreateAIAgentRequest
|
|
2712
|
+
*/
|
|
2713
|
+
'reasoningEffort'?: CreateAIAgentRequestReasoningEffortEnum | null;
|
|
2427
2714
|
/**
|
|
2428
2715
|
* Guardrail preset name
|
|
2429
2716
|
* @type {string}
|
|
@@ -2438,6 +2725,15 @@ export interface CreateAIAgentRequest {
|
|
|
2438
2725
|
'filterPolicies'?: Array<string>;
|
|
2439
2726
|
}
|
|
2440
2727
|
|
|
2728
|
+
export const CreateAIAgentRequestReasoningEffortEnum = {
|
|
2729
|
+
Low: 'low',
|
|
2730
|
+
Medium: 'medium',
|
|
2731
|
+
High: 'high',
|
|
2732
|
+
Xhigh: 'xhigh',
|
|
2733
|
+
Max: 'max'
|
|
2734
|
+
} as const;
|
|
2735
|
+
|
|
2736
|
+
export type CreateAIAgentRequestReasoningEffortEnum = typeof CreateAIAgentRequestReasoningEffortEnum[keyof typeof CreateAIAgentRequestReasoningEffortEnum];
|
|
2441
2737
|
export const CreateAIAgentRequestGuardrailPresetEnum = {
|
|
2442
2738
|
Official: 'official',
|
|
2443
2739
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -3534,6 +3830,12 @@ export interface CreateSlackBotRequest {
|
|
|
3534
3830
|
* @memberof CreateSlackBotRequest
|
|
3535
3831
|
*/
|
|
3536
3832
|
'longContext'?: boolean;
|
|
3833
|
+
/**
|
|
3834
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
3835
|
+
* @type {string}
|
|
3836
|
+
* @memberof CreateSlackBotRequest
|
|
3837
|
+
*/
|
|
3838
|
+
'reasoningEffort'?: CreateSlackBotRequestReasoningEffortEnum | null;
|
|
3537
3839
|
/**
|
|
3538
3840
|
* Session TTL in days
|
|
3539
3841
|
* @type {number}
|
|
@@ -3596,6 +3898,110 @@ export const CreateSlackBotRequestSetupTypeEnum = {
|
|
|
3596
3898
|
} as const;
|
|
3597
3899
|
|
|
3598
3900
|
export type CreateSlackBotRequestSetupTypeEnum = typeof CreateSlackBotRequestSetupTypeEnum[keyof typeof CreateSlackBotRequestSetupTypeEnum];
|
|
3901
|
+
export const CreateSlackBotRequestReasoningEffortEnum = {
|
|
3902
|
+
Low: 'low',
|
|
3903
|
+
Medium: 'medium',
|
|
3904
|
+
High: 'high',
|
|
3905
|
+
Xhigh: 'xhigh',
|
|
3906
|
+
Max: 'max'
|
|
3907
|
+
} as const;
|
|
3908
|
+
|
|
3909
|
+
export type CreateSlackBotRequestReasoningEffortEnum = typeof CreateSlackBotRequestReasoningEffortEnum[keyof typeof CreateSlackBotRequestReasoningEffortEnum];
|
|
3910
|
+
|
|
3911
|
+
/**
|
|
3912
|
+
*
|
|
3913
|
+
* @export
|
|
3914
|
+
* @interface CreateSlackInteractionRequest
|
|
3915
|
+
*/
|
|
3916
|
+
export interface CreateSlackInteractionRequest {
|
|
3917
|
+
/**
|
|
3918
|
+
*
|
|
3919
|
+
* @type {string}
|
|
3920
|
+
* @memberof CreateSlackInteractionRequest
|
|
3921
|
+
*/
|
|
3922
|
+
'channel': string;
|
|
3923
|
+
/**
|
|
3924
|
+
*
|
|
3925
|
+
* @type {string}
|
|
3926
|
+
* @memberof CreateSlackInteractionRequest
|
|
3927
|
+
*/
|
|
3928
|
+
'threadTs'?: string;
|
|
3929
|
+
/**
|
|
3930
|
+
*
|
|
3931
|
+
* @type {string}
|
|
3932
|
+
* @memberof CreateSlackInteractionRequest
|
|
3933
|
+
*/
|
|
3934
|
+
'text': string;
|
|
3935
|
+
/**
|
|
3936
|
+
*
|
|
3937
|
+
* @type {Array<CreateSlackInteractionRequestActionsInner>}
|
|
3938
|
+
* @memberof CreateSlackInteractionRequest
|
|
3939
|
+
*/
|
|
3940
|
+
'actions': Array<CreateSlackInteractionRequestActionsInner>;
|
|
3941
|
+
/**
|
|
3942
|
+
*
|
|
3943
|
+
* @type {string}
|
|
3944
|
+
* @memberof CreateSlackInteractionRequest
|
|
3945
|
+
*/
|
|
3946
|
+
'responseMode'?: CreateSlackInteractionRequestResponseModeEnum;
|
|
3947
|
+
/**
|
|
3948
|
+
*
|
|
3949
|
+
* @type {number}
|
|
3950
|
+
* @memberof CreateSlackInteractionRequest
|
|
3951
|
+
*/
|
|
3952
|
+
'expiresInSeconds'?: number;
|
|
3953
|
+
/**
|
|
3954
|
+
*
|
|
3955
|
+
* @type {Array<string>}
|
|
3956
|
+
* @memberof CreateSlackInteractionRequest
|
|
3957
|
+
*/
|
|
3958
|
+
'allowedUsers'?: Array<string>;
|
|
3959
|
+
/**
|
|
3960
|
+
* Opaque caller data, at most 4096 bytes of canonical JSON
|
|
3961
|
+
* @type {object}
|
|
3962
|
+
* @memberof CreateSlackInteractionRequest
|
|
3963
|
+
*/
|
|
3964
|
+
'metadata'?: object;
|
|
3965
|
+
}
|
|
3966
|
+
|
|
3967
|
+
export const CreateSlackInteractionRequestResponseModeEnum = {
|
|
3968
|
+
Single: 'single'
|
|
3969
|
+
} as const;
|
|
3970
|
+
|
|
3971
|
+
export type CreateSlackInteractionRequestResponseModeEnum = typeof CreateSlackInteractionRequestResponseModeEnum[keyof typeof CreateSlackInteractionRequestResponseModeEnum];
|
|
3972
|
+
|
|
3973
|
+
/**
|
|
3974
|
+
*
|
|
3975
|
+
* @export
|
|
3976
|
+
* @interface CreateSlackInteractionRequestActionsInner
|
|
3977
|
+
*/
|
|
3978
|
+
export interface CreateSlackInteractionRequestActionsInner {
|
|
3979
|
+
/**
|
|
3980
|
+
*
|
|
3981
|
+
* @type {string}
|
|
3982
|
+
* @memberof CreateSlackInteractionRequestActionsInner
|
|
3983
|
+
*/
|
|
3984
|
+
'id': string;
|
|
3985
|
+
/**
|
|
3986
|
+
*
|
|
3987
|
+
* @type {string}
|
|
3988
|
+
* @memberof CreateSlackInteractionRequestActionsInner
|
|
3989
|
+
*/
|
|
3990
|
+
'label': string;
|
|
3991
|
+
/**
|
|
3992
|
+
*
|
|
3993
|
+
* @type {string}
|
|
3994
|
+
* @memberof CreateSlackInteractionRequestActionsInner
|
|
3995
|
+
*/
|
|
3996
|
+
'style'?: CreateSlackInteractionRequestActionsInnerStyleEnum;
|
|
3997
|
+
}
|
|
3998
|
+
|
|
3999
|
+
export const CreateSlackInteractionRequestActionsInnerStyleEnum = {
|
|
4000
|
+
Primary: 'primary',
|
|
4001
|
+
Danger: 'danger'
|
|
4002
|
+
} as const;
|
|
4003
|
+
|
|
4004
|
+
export type CreateSlackInteractionRequestActionsInnerStyleEnum = typeof CreateSlackInteractionRequestActionsInnerStyleEnum[keyof typeof CreateSlackInteractionRequestActionsInnerStyleEnum];
|
|
3599
4005
|
|
|
3600
4006
|
/**
|
|
3601
4007
|
*
|
|
@@ -3879,7 +4285,69 @@ export interface Cron {
|
|
|
3879
4285
|
* @memberof Cron
|
|
3880
4286
|
*/
|
|
3881
4287
|
'isEnabled'?: boolean;
|
|
4288
|
+
/**
|
|
4289
|
+
* The newest run of the job. Null when the job has never run. Sent by the cron list.
|
|
4290
|
+
* @type {CronLastRun}
|
|
4291
|
+
* @memberof Cron
|
|
4292
|
+
*/
|
|
4293
|
+
'lastRun'?: CronLastRun | null;
|
|
4294
|
+
/**
|
|
4295
|
+
* 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.
|
|
4296
|
+
* @type {number}
|
|
4297
|
+
* @memberof Cron
|
|
4298
|
+
*/
|
|
4299
|
+
'consecutiveFailures'?: number;
|
|
4300
|
+
}
|
|
4301
|
+
/**
|
|
4302
|
+
* Summary of the newest run of a cron job.
|
|
4303
|
+
* @export
|
|
4304
|
+
* @interface CronLastRun
|
|
4305
|
+
*/
|
|
4306
|
+
export interface CronLastRun {
|
|
4307
|
+
/**
|
|
4308
|
+
*
|
|
4309
|
+
* @type {string}
|
|
4310
|
+
* @memberof CronLastRun
|
|
4311
|
+
*/
|
|
4312
|
+
'runId'?: string;
|
|
4313
|
+
/**
|
|
4314
|
+
* 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).
|
|
4315
|
+
* @type {string}
|
|
4316
|
+
* @memberof CronLastRun
|
|
4317
|
+
*/
|
|
4318
|
+
'status'?: CronLastRunStatusEnum;
|
|
4319
|
+
/**
|
|
4320
|
+
*
|
|
4321
|
+
* @type {string}
|
|
4322
|
+
* @memberof CronLastRun
|
|
4323
|
+
*/
|
|
4324
|
+
'createdAt'?: string | null;
|
|
4325
|
+
/**
|
|
4326
|
+
*
|
|
4327
|
+
* @type {number}
|
|
4328
|
+
* @memberof CronLastRun
|
|
4329
|
+
*/
|
|
4330
|
+
'exitCode'?: number | null;
|
|
4331
|
+
/**
|
|
4332
|
+
* Why the run failed, in plain text. Set when the status is FAILED_TO_START.
|
|
4333
|
+
* @type {string}
|
|
4334
|
+
* @memberof CronLastRun
|
|
4335
|
+
*/
|
|
4336
|
+
'errorMessage'?: string | null;
|
|
3882
4337
|
}
|
|
4338
|
+
|
|
4339
|
+
export const CronLastRunStatusEnum = {
|
|
4340
|
+
Pending: 'PENDING',
|
|
4341
|
+
Running: 'RUNNING',
|
|
4342
|
+
Succeeded: 'SUCCEEDED',
|
|
4343
|
+
Failed: 'FAILED',
|
|
4344
|
+
FailedToStart: 'FAILED_TO_START',
|
|
4345
|
+
Expired: 'EXPIRED',
|
|
4346
|
+
TimedOut: 'TIMED_OUT'
|
|
4347
|
+
} as const;
|
|
4348
|
+
|
|
4349
|
+
export type CronLastRunStatusEnum = typeof CronLastRunStatusEnum[keyof typeof CronLastRunStatusEnum];
|
|
4350
|
+
|
|
3883
4351
|
/**
|
|
3884
4352
|
*
|
|
3885
4353
|
* @export
|
|
@@ -3905,11 +4373,17 @@ export interface CronRun {
|
|
|
3905
4373
|
*/
|
|
3906
4374
|
'command'?: string | null;
|
|
3907
4375
|
/**
|
|
3908
|
-
*
|
|
4376
|
+
* 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
4377
|
* @type {string}
|
|
3910
4378
|
* @memberof CronRun
|
|
3911
4379
|
*/
|
|
3912
4380
|
'status'?: CronRunStatusEnum;
|
|
4381
|
+
/**
|
|
4382
|
+
* Why the run failed, in plain text. Set when the status is FAILED_TO_START.
|
|
4383
|
+
* @type {string}
|
|
4384
|
+
* @memberof CronRun
|
|
4385
|
+
*/
|
|
4386
|
+
'errorMessage'?: string | null;
|
|
3913
4387
|
/**
|
|
3914
4388
|
*
|
|
3915
4389
|
* @type {string}
|
|
@@ -3959,6 +4433,8 @@ export const CronRunStatusEnum = {
|
|
|
3959
4433
|
Running: 'RUNNING',
|
|
3960
4434
|
Succeeded: 'SUCCEEDED',
|
|
3961
4435
|
Failed: 'FAILED',
|
|
4436
|
+
FailedToStart: 'FAILED_TO_START',
|
|
4437
|
+
Expired: 'EXPIRED',
|
|
3962
4438
|
TimedOut: 'TIMED_OUT',
|
|
3963
4439
|
Unknown: 'UNKNOWN'
|
|
3964
4440
|
} as const;
|
|
@@ -4131,6 +4607,19 @@ export interface DeleteCustomTool200Response {
|
|
|
4131
4607
|
*/
|
|
4132
4608
|
'message'?: string;
|
|
4133
4609
|
}
|
|
4610
|
+
/**
|
|
4611
|
+
*
|
|
4612
|
+
* @export
|
|
4613
|
+
* @interface DeleteEnvironmentSecret200Response
|
|
4614
|
+
*/
|
|
4615
|
+
export interface DeleteEnvironmentSecret200Response {
|
|
4616
|
+
/**
|
|
4617
|
+
*
|
|
4618
|
+
* @type {Array<string>}
|
|
4619
|
+
* @memberof DeleteEnvironmentSecret200Response
|
|
4620
|
+
*/
|
|
4621
|
+
'warnings': Array<string>;
|
|
4622
|
+
}
|
|
4134
4623
|
/**
|
|
4135
4624
|
*
|
|
4136
4625
|
* @export
|
|
@@ -4850,6 +5339,12 @@ export interface GetAIAgent200ResponseAgent {
|
|
|
4850
5339
|
* @memberof GetAIAgent200ResponseAgent
|
|
4851
5340
|
*/
|
|
4852
5341
|
'longContext'?: boolean;
|
|
5342
|
+
/**
|
|
5343
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
5344
|
+
* @type {string}
|
|
5345
|
+
* @memberof GetAIAgent200ResponseAgent
|
|
5346
|
+
*/
|
|
5347
|
+
'reasoningEffort'?: GetAIAgent200ResponseAgentReasoningEffortEnum | null;
|
|
4853
5348
|
/**
|
|
4854
5349
|
* Guardrail preset name
|
|
4855
5350
|
* @type {string}
|
|
@@ -4887,6 +5382,17 @@ export interface GetAIAgent200ResponseAgent {
|
|
|
4887
5382
|
*/
|
|
4888
5383
|
'updatedAt'?: string;
|
|
4889
5384
|
}
|
|
5385
|
+
|
|
5386
|
+
export const GetAIAgent200ResponseAgentReasoningEffortEnum = {
|
|
5387
|
+
Low: 'low',
|
|
5388
|
+
Medium: 'medium',
|
|
5389
|
+
High: 'high',
|
|
5390
|
+
Xhigh: 'xhigh',
|
|
5391
|
+
Max: 'max'
|
|
5392
|
+
} as const;
|
|
5393
|
+
|
|
5394
|
+
export type GetAIAgent200ResponseAgentReasoningEffortEnum = typeof GetAIAgent200ResponseAgentReasoningEffortEnum[keyof typeof GetAIAgent200ResponseAgentReasoningEffortEnum];
|
|
5395
|
+
|
|
4890
5396
|
/**
|
|
4891
5397
|
*
|
|
4892
5398
|
* @export
|
|
@@ -5424,6 +5930,12 @@ export interface GetAgentOverlay200ResponseOverlay {
|
|
|
5424
5930
|
* @memberof GetAgentOverlay200ResponseOverlay
|
|
5425
5931
|
*/
|
|
5426
5932
|
'guardrailPreset'?: string;
|
|
5933
|
+
/**
|
|
5934
|
+
* Reasoning effort for this organisation. Overrides the global agent value.
|
|
5935
|
+
* @type {string}
|
|
5936
|
+
* @memberof GetAgentOverlay200ResponseOverlay
|
|
5937
|
+
*/
|
|
5938
|
+
'reasoningEffort'?: GetAgentOverlay200ResponseOverlayReasoningEffortEnum | null;
|
|
5427
5939
|
/**
|
|
5428
5940
|
*
|
|
5429
5941
|
* @type {number}
|
|
@@ -5431,6 +5943,17 @@ export interface GetAgentOverlay200ResponseOverlay {
|
|
|
5431
5943
|
*/
|
|
5432
5944
|
'version'?: number;
|
|
5433
5945
|
}
|
|
5946
|
+
|
|
5947
|
+
export const GetAgentOverlay200ResponseOverlayReasoningEffortEnum = {
|
|
5948
|
+
Low: 'low',
|
|
5949
|
+
Medium: 'medium',
|
|
5950
|
+
High: 'high',
|
|
5951
|
+
Xhigh: 'xhigh',
|
|
5952
|
+
Max: 'max'
|
|
5953
|
+
} as const;
|
|
5954
|
+
|
|
5955
|
+
export type GetAgentOverlay200ResponseOverlayReasoningEffortEnum = typeof GetAgentOverlay200ResponseOverlayReasoningEffortEnum[keyof typeof GetAgentOverlay200ResponseOverlayReasoningEffortEnum];
|
|
5956
|
+
|
|
5434
5957
|
/**
|
|
5435
5958
|
*
|
|
5436
5959
|
* @export
|
|
@@ -6909,6 +7432,12 @@ export interface GetSlackBot200ResponseBot {
|
|
|
6909
7432
|
* @memberof GetSlackBot200ResponseBot
|
|
6910
7433
|
*/
|
|
6911
7434
|
'longContext'?: boolean;
|
|
7435
|
+
/**
|
|
7436
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
7437
|
+
* @type {string}
|
|
7438
|
+
* @memberof GetSlackBot200ResponseBot
|
|
7439
|
+
*/
|
|
7440
|
+
'reasoningEffort'?: GetSlackBot200ResponseBotReasoningEffortEnum | null;
|
|
6912
7441
|
/**
|
|
6913
7442
|
*
|
|
6914
7443
|
* @type {number}
|
|
@@ -6989,6 +7518,15 @@ export const GetSlackBot200ResponseBotStatusEnum = {
|
|
|
6989
7518
|
} as const;
|
|
6990
7519
|
|
|
6991
7520
|
export type GetSlackBot200ResponseBotStatusEnum = typeof GetSlackBot200ResponseBotStatusEnum[keyof typeof GetSlackBot200ResponseBotStatusEnum];
|
|
7521
|
+
export const GetSlackBot200ResponseBotReasoningEffortEnum = {
|
|
7522
|
+
Low: 'low',
|
|
7523
|
+
Medium: 'medium',
|
|
7524
|
+
High: 'high',
|
|
7525
|
+
Xhigh: 'xhigh',
|
|
7526
|
+
Max: 'max'
|
|
7527
|
+
} as const;
|
|
7528
|
+
|
|
7529
|
+
export type GetSlackBot200ResponseBotReasoningEffortEnum = typeof GetSlackBot200ResponseBotReasoningEffortEnum[keyof typeof GetSlackBot200ResponseBotReasoningEffortEnum];
|
|
6992
7530
|
|
|
6993
7531
|
/**
|
|
6994
7532
|
*
|
|
@@ -7691,7 +8229,7 @@ export interface KVItemsCreate200Response {
|
|
|
7691
8229
|
*/
|
|
7692
8230
|
'key'?: string;
|
|
7693
8231
|
/**
|
|
7694
|
-
*
|
|
8232
|
+
* The value written. \'[ENCRYPTED]\' when secret is true: secret values are write-only through the API.
|
|
7695
8233
|
* @type {string}
|
|
7696
8234
|
* @memberof KVItemsCreate200Response
|
|
7697
8235
|
*/
|
|
@@ -7903,6 +8441,12 @@ export interface ListAIAgents200ResponseAgentsInner {
|
|
|
7903
8441
|
* @memberof ListAIAgents200ResponseAgentsInner
|
|
7904
8442
|
*/
|
|
7905
8443
|
'longContext'?: boolean;
|
|
8444
|
+
/**
|
|
8445
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
8446
|
+
* @type {string}
|
|
8447
|
+
* @memberof ListAIAgents200ResponseAgentsInner
|
|
8448
|
+
*/
|
|
8449
|
+
'reasoningEffort'?: ListAIAgents200ResponseAgentsInnerReasoningEffortEnum | null;
|
|
7906
8450
|
/**
|
|
7907
8451
|
*
|
|
7908
8452
|
* @type {string}
|
|
@@ -7934,6 +8478,17 @@ export interface ListAIAgents200ResponseAgentsInner {
|
|
|
7934
8478
|
*/
|
|
7935
8479
|
'updatedAt'?: string;
|
|
7936
8480
|
}
|
|
8481
|
+
|
|
8482
|
+
export const ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = {
|
|
8483
|
+
Low: 'low',
|
|
8484
|
+
Medium: 'medium',
|
|
8485
|
+
High: 'high',
|
|
8486
|
+
Xhigh: 'xhigh',
|
|
8487
|
+
Max: 'max'
|
|
8488
|
+
} as const;
|
|
8489
|
+
|
|
8490
|
+
export type ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = typeof ListAIAgents200ResponseAgentsInnerReasoningEffortEnum[keyof typeof ListAIAgents200ResponseAgentsInnerReasoningEffortEnum];
|
|
8491
|
+
|
|
7937
8492
|
/**
|
|
7938
8493
|
*
|
|
7939
8494
|
* @export
|
|
@@ -8929,6 +9484,12 @@ export interface ListSlackBots200ResponseBotsInner {
|
|
|
8929
9484
|
* @memberof ListSlackBots200ResponseBotsInner
|
|
8930
9485
|
*/
|
|
8931
9486
|
'longContext'?: boolean;
|
|
9487
|
+
/**
|
|
9488
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default.
|
|
9489
|
+
* @type {string}
|
|
9490
|
+
* @memberof ListSlackBots200ResponseBotsInner
|
|
9491
|
+
*/
|
|
9492
|
+
'reasoningEffort'?: ListSlackBots200ResponseBotsInnerReasoningEffortEnum | null;
|
|
8932
9493
|
/**
|
|
8933
9494
|
*
|
|
8934
9495
|
* @type {number}
|
|
@@ -8961,6 +9522,15 @@ export const ListSlackBots200ResponseBotsInnerStatusEnum = {
|
|
|
8961
9522
|
} as const;
|
|
8962
9523
|
|
|
8963
9524
|
export type ListSlackBots200ResponseBotsInnerStatusEnum = typeof ListSlackBots200ResponseBotsInnerStatusEnum[keyof typeof ListSlackBots200ResponseBotsInnerStatusEnum];
|
|
9525
|
+
export const ListSlackBots200ResponseBotsInnerReasoningEffortEnum = {
|
|
9526
|
+
Low: 'low',
|
|
9527
|
+
Medium: 'medium',
|
|
9528
|
+
High: 'high',
|
|
9529
|
+
Xhigh: 'xhigh',
|
|
9530
|
+
Max: 'max'
|
|
9531
|
+
} as const;
|
|
9532
|
+
|
|
9533
|
+
export type ListSlackBots200ResponseBotsInnerReasoningEffortEnum = typeof ListSlackBots200ResponseBotsInnerReasoningEffortEnum[keyof typeof ListSlackBots200ResponseBotsInnerReasoningEffortEnum];
|
|
8964
9534
|
|
|
8965
9535
|
/**
|
|
8966
9536
|
*
|
|
@@ -9655,7 +10225,7 @@ export interface OrgResource {
|
|
|
9655
10225
|
*/
|
|
9656
10226
|
'name'?: string;
|
|
9657
10227
|
/**
|
|
9658
|
-
*
|
|
10228
|
+
* creating and updating apply to a CI runner pool
|
|
9659
10229
|
* @type {string}
|
|
9660
10230
|
* @memberof OrgResource
|
|
9661
10231
|
*/
|
|
@@ -9673,7 +10243,7 @@ export interface OrgResource {
|
|
|
9673
10243
|
*/
|
|
9674
10244
|
'config'?: object;
|
|
9675
10245
|
/**
|
|
9676
|
-
* Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache
|
|
10246
|
+
* Provisioned detail: bucket and region for object storage, cache identifier and endpoint for a cache. Not returned for a CI runner pool.
|
|
9677
10247
|
* @type {object}
|
|
9678
10248
|
* @memberof OrgResource
|
|
9679
10249
|
*/
|
|
@@ -9688,12 +10258,15 @@ export interface OrgResource {
|
|
|
9688
10258
|
|
|
9689
10259
|
export const OrgResourceTypeEnum = {
|
|
9690
10260
|
ObjectStorage: 'object-storage',
|
|
9691
|
-
Valkey: 'valkey'
|
|
10261
|
+
Valkey: 'valkey',
|
|
10262
|
+
CiRunnerPool: 'ci-runner-pool'
|
|
9692
10263
|
} as const;
|
|
9693
10264
|
|
|
9694
10265
|
export type OrgResourceTypeEnum = typeof OrgResourceTypeEnum[keyof typeof OrgResourceTypeEnum];
|
|
9695
10266
|
export const OrgResourceStatusEnum = {
|
|
9696
10267
|
Provisioning: 'provisioning',
|
|
10268
|
+
Creating: 'creating',
|
|
10269
|
+
Updating: 'updating',
|
|
9697
10270
|
Available: 'available',
|
|
9698
10271
|
Deleting: 'deleting',
|
|
9699
10272
|
Error: 'error'
|
|
@@ -9921,6 +10494,86 @@ export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
|
9921
10494
|
|
|
9922
10495
|
export type PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum[keyof typeof PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum];
|
|
9923
10496
|
|
|
10497
|
+
/**
|
|
10498
|
+
*
|
|
10499
|
+
* @export
|
|
10500
|
+
* @interface PostSlackBotFile201Response
|
|
10501
|
+
*/
|
|
10502
|
+
export interface PostSlackBotFile201Response {
|
|
10503
|
+
/**
|
|
10504
|
+
*
|
|
10505
|
+
* @type {string}
|
|
10506
|
+
* @memberof PostSlackBotFile201Response
|
|
10507
|
+
*/
|
|
10508
|
+
'channel'?: string;
|
|
10509
|
+
/**
|
|
10510
|
+
*
|
|
10511
|
+
* @type {string}
|
|
10512
|
+
* @memberof PostSlackBotFile201Response
|
|
10513
|
+
*/
|
|
10514
|
+
'threadTs'?: string | null;
|
|
10515
|
+
/**
|
|
10516
|
+
*
|
|
10517
|
+
* @type {string}
|
|
10518
|
+
* @memberof PostSlackBotFile201Response
|
|
10519
|
+
*/
|
|
10520
|
+
'fileId'?: string;
|
|
10521
|
+
/**
|
|
10522
|
+
*
|
|
10523
|
+
* @type {string}
|
|
10524
|
+
* @memberof PostSlackBotFile201Response
|
|
10525
|
+
*/
|
|
10526
|
+
'permalink'?: string | null;
|
|
10527
|
+
}
|
|
10528
|
+
/**
|
|
10529
|
+
*
|
|
10530
|
+
* @export
|
|
10531
|
+
* @interface PostSlackBotFileRequest
|
|
10532
|
+
*/
|
|
10533
|
+
export interface PostSlackBotFileRequest {
|
|
10534
|
+
/**
|
|
10535
|
+
*
|
|
10536
|
+
* @type {string}
|
|
10537
|
+
* @memberof PostSlackBotFileRequest
|
|
10538
|
+
*/
|
|
10539
|
+
'channel': string;
|
|
10540
|
+
/**
|
|
10541
|
+
* Absent: a root post
|
|
10542
|
+
* @type {string}
|
|
10543
|
+
* @memberof PostSlackBotFileRequest
|
|
10544
|
+
*/
|
|
10545
|
+
'threadTs'?: string;
|
|
10546
|
+
/**
|
|
10547
|
+
* The image, base64 (standard alphabet, no whitespace, no data: prefix). 1 byte to 4 MiB decoded.
|
|
10548
|
+
* @type {string}
|
|
10549
|
+
* @memberof PostSlackBotFileRequest
|
|
10550
|
+
*/
|
|
10551
|
+
'content': string;
|
|
10552
|
+
/**
|
|
10553
|
+
* Default screenshot.<ext>. The extension must match the image type (png, jpg, jpeg, gif, webp).
|
|
10554
|
+
* @type {string}
|
|
10555
|
+
* @memberof PostSlackBotFileRequest
|
|
10556
|
+
*/
|
|
10557
|
+
'filename'?: string;
|
|
10558
|
+
/**
|
|
10559
|
+
*
|
|
10560
|
+
* @type {string}
|
|
10561
|
+
* @memberof PostSlackBotFileRequest
|
|
10562
|
+
*/
|
|
10563
|
+
'title'?: string;
|
|
10564
|
+
/**
|
|
10565
|
+
*
|
|
10566
|
+
* @type {string}
|
|
10567
|
+
* @memberof PostSlackBotFileRequest
|
|
10568
|
+
*/
|
|
10569
|
+
'altText'?: string;
|
|
10570
|
+
/**
|
|
10571
|
+
* Caption. Same mention rules as a message.
|
|
10572
|
+
* @type {string}
|
|
10573
|
+
* @memberof PostSlackBotFileRequest
|
|
10574
|
+
*/
|
|
10575
|
+
'text'?: string;
|
|
10576
|
+
}
|
|
9924
10577
|
/**
|
|
9925
10578
|
*
|
|
9926
10579
|
* @export
|
|
@@ -9977,6 +10630,95 @@ export interface PostSlackBotMessageRequest {
|
|
|
9977
10630
|
*/
|
|
9978
10631
|
'text': string;
|
|
9979
10632
|
}
|
|
10633
|
+
/**
|
|
10634
|
+
*
|
|
10635
|
+
* @export
|
|
10636
|
+
* @interface ProjectsDelete409Response
|
|
10637
|
+
*/
|
|
10638
|
+
export interface ProjectsDelete409Response {
|
|
10639
|
+
/**
|
|
10640
|
+
*
|
|
10641
|
+
* @type {boolean}
|
|
10642
|
+
* @memberof ProjectsDelete409Response
|
|
10643
|
+
*/
|
|
10644
|
+
'error'?: boolean;
|
|
10645
|
+
/**
|
|
10646
|
+
*
|
|
10647
|
+
* @type {string}
|
|
10648
|
+
* @memberof ProjectsDelete409Response
|
|
10649
|
+
*/
|
|
10650
|
+
'message'?: string;
|
|
10651
|
+
/**
|
|
10652
|
+
*
|
|
10653
|
+
* @type {string}
|
|
10654
|
+
* @memberof ProjectsDelete409Response
|
|
10655
|
+
*/
|
|
10656
|
+
'code'?: ProjectsDelete409ResponseCodeEnum;
|
|
10657
|
+
/**
|
|
10658
|
+
*
|
|
10659
|
+
* @type {boolean}
|
|
10660
|
+
* @memberof ProjectsDelete409Response
|
|
10661
|
+
*/
|
|
10662
|
+
'retryable'?: boolean;
|
|
10663
|
+
/**
|
|
10664
|
+
*
|
|
10665
|
+
* @type {Array<string>}
|
|
10666
|
+
* @memberof ProjectsDelete409Response
|
|
10667
|
+
*/
|
|
10668
|
+
'stores'?: Array<string>;
|
|
10669
|
+
}
|
|
10670
|
+
|
|
10671
|
+
export const ProjectsDelete409ResponseCodeEnum = {
|
|
10672
|
+
KvLedgerPresent: 'KV_LEDGER_PRESENT'
|
|
10673
|
+
} as const;
|
|
10674
|
+
|
|
10675
|
+
export type ProjectsDelete409ResponseCodeEnum = typeof ProjectsDelete409ResponseCodeEnum[keyof typeof ProjectsDelete409ResponseCodeEnum];
|
|
10676
|
+
|
|
10677
|
+
/**
|
|
10678
|
+
*
|
|
10679
|
+
* @export
|
|
10680
|
+
* @interface ProjectsDelete503Response
|
|
10681
|
+
*/
|
|
10682
|
+
export interface ProjectsDelete503Response {
|
|
10683
|
+
/**
|
|
10684
|
+
*
|
|
10685
|
+
* @type {boolean}
|
|
10686
|
+
* @memberof ProjectsDelete503Response
|
|
10687
|
+
*/
|
|
10688
|
+
'error'?: boolean;
|
|
10689
|
+
/**
|
|
10690
|
+
*
|
|
10691
|
+
* @type {string}
|
|
10692
|
+
* @memberof ProjectsDelete503Response
|
|
10693
|
+
*/
|
|
10694
|
+
'message'?: string;
|
|
10695
|
+
/**
|
|
10696
|
+
*
|
|
10697
|
+
* @type {string}
|
|
10698
|
+
* @memberof ProjectsDelete503Response
|
|
10699
|
+
*/
|
|
10700
|
+
'code'?: ProjectsDelete503ResponseCodeEnum;
|
|
10701
|
+
/**
|
|
10702
|
+
*
|
|
10703
|
+
* @type {boolean}
|
|
10704
|
+
* @memberof ProjectsDelete503Response
|
|
10705
|
+
*/
|
|
10706
|
+
'retryable'?: boolean;
|
|
10707
|
+
/**
|
|
10708
|
+
*
|
|
10709
|
+
* @type {Array<string>}
|
|
10710
|
+
* @memberof ProjectsDelete503Response
|
|
10711
|
+
*/
|
|
10712
|
+
'stores'?: Array<string>;
|
|
10713
|
+
}
|
|
10714
|
+
|
|
10715
|
+
export const ProjectsDelete503ResponseCodeEnum = {
|
|
10716
|
+
KvStoresUnreadable: 'KV_STORES_UNREADABLE',
|
|
10717
|
+
KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
|
|
10718
|
+
} as const;
|
|
10719
|
+
|
|
10720
|
+
export type ProjectsDelete503ResponseCodeEnum = typeof ProjectsDelete503ResponseCodeEnum[keyof typeof ProjectsDelete503ResponseCodeEnum];
|
|
10721
|
+
|
|
9980
10722
|
/**
|
|
9981
10723
|
*
|
|
9982
10724
|
* @export
|
|
@@ -10545,6 +11287,27 @@ export interface RestoreFilesystemRequest {
|
|
|
10545
11287
|
*/
|
|
10546
11288
|
'acknowledgeDataloss': boolean;
|
|
10547
11289
|
}
|
|
11290
|
+
/**
|
|
11291
|
+
*
|
|
11292
|
+
* @export
|
|
11293
|
+
* @interface RulesIndexList200ResponseInner
|
|
11294
|
+
*/
|
|
11295
|
+
export interface RulesIndexList200ResponseInner {
|
|
11296
|
+
[key: string]: any;
|
|
11297
|
+
|
|
11298
|
+
/**
|
|
11299
|
+
* 0-based index in the stored order.
|
|
11300
|
+
* @type {number}
|
|
11301
|
+
* @memberof RulesIndexList200ResponseInner
|
|
11302
|
+
*/
|
|
11303
|
+
'position'?: number;
|
|
11304
|
+
/**
|
|
11305
|
+
* True when a template deploy owns the rule in this project.
|
|
11306
|
+
* @type {boolean}
|
|
11307
|
+
* @memberof RulesIndexList200ResponseInner
|
|
11308
|
+
*/
|
|
11309
|
+
'managed'?: boolean;
|
|
11310
|
+
}
|
|
10548
11311
|
/**
|
|
10549
11312
|
*
|
|
10550
11313
|
* @export
|
|
@@ -10628,6 +11391,51 @@ export interface SearchSlackWorkspaceUsers200ResponseResultsInner {
|
|
|
10628
11391
|
*/
|
|
10629
11392
|
'real_name'?: string;
|
|
10630
11393
|
}
|
|
11394
|
+
/**
|
|
11395
|
+
*
|
|
11396
|
+
* @export
|
|
11397
|
+
* @interface SecretError
|
|
11398
|
+
*/
|
|
11399
|
+
export interface SecretError {
|
|
11400
|
+
/**
|
|
11401
|
+
*
|
|
11402
|
+
* @type {string}
|
|
11403
|
+
* @memberof SecretError
|
|
11404
|
+
*/
|
|
11405
|
+
'message': string;
|
|
11406
|
+
}
|
|
11407
|
+
/**
|
|
11408
|
+
*
|
|
11409
|
+
* @export
|
|
11410
|
+
* @interface SecretKey
|
|
11411
|
+
*/
|
|
11412
|
+
export interface SecretKey {
|
|
11413
|
+
/**
|
|
11414
|
+
* The secret name
|
|
11415
|
+
* @type {string}
|
|
11416
|
+
* @memberof SecretKey
|
|
11417
|
+
*/
|
|
11418
|
+
'key': string;
|
|
11419
|
+
}
|
|
11420
|
+
/**
|
|
11421
|
+
*
|
|
11422
|
+
* @export
|
|
11423
|
+
* @interface SecretWriteResult
|
|
11424
|
+
*/
|
|
11425
|
+
export interface SecretWriteResult {
|
|
11426
|
+
/**
|
|
11427
|
+
* The secret name
|
|
11428
|
+
* @type {string}
|
|
11429
|
+
* @memberof SecretWriteResult
|
|
11430
|
+
*/
|
|
11431
|
+
'key': string;
|
|
11432
|
+
/**
|
|
11433
|
+
* Notices from Quant Cloud about the change. Present only when there is at least one.
|
|
11434
|
+
* @type {Array<string>}
|
|
11435
|
+
* @memberof SecretWriteResult
|
|
11436
|
+
*/
|
|
11437
|
+
'warnings'?: Array<string>;
|
|
11438
|
+
}
|
|
10631
11439
|
/**
|
|
10632
11440
|
*
|
|
10633
11441
|
* @export
|
|
@@ -11121,6 +11929,12 @@ export interface UpdateAIAgentRequest {
|
|
|
11121
11929
|
* @memberof UpdateAIAgentRequest
|
|
11122
11930
|
*/
|
|
11123
11931
|
'longContext'?: boolean;
|
|
11932
|
+
/**
|
|
11933
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default. null clears it.
|
|
11934
|
+
* @type {string}
|
|
11935
|
+
* @memberof UpdateAIAgentRequest
|
|
11936
|
+
*/
|
|
11937
|
+
'reasoningEffort'?: UpdateAIAgentRequestReasoningEffortEnum | null;
|
|
11124
11938
|
/**
|
|
11125
11939
|
* Guardrail preset name
|
|
11126
11940
|
* @type {string}
|
|
@@ -11135,6 +11949,15 @@ export interface UpdateAIAgentRequest {
|
|
|
11135
11949
|
'filterPolicies'?: Array<string>;
|
|
11136
11950
|
}
|
|
11137
11951
|
|
|
11952
|
+
export const UpdateAIAgentRequestReasoningEffortEnum = {
|
|
11953
|
+
Low: 'low',
|
|
11954
|
+
Medium: 'medium',
|
|
11955
|
+
High: 'high',
|
|
11956
|
+
Xhigh: 'xhigh',
|
|
11957
|
+
Max: 'max'
|
|
11958
|
+
} as const;
|
|
11959
|
+
|
|
11960
|
+
export type UpdateAIAgentRequestReasoningEffortEnum = typeof UpdateAIAgentRequestReasoningEffortEnum[keyof typeof UpdateAIAgentRequestReasoningEffortEnum];
|
|
11138
11961
|
export const UpdateAIAgentRequestGuardrailPresetEnum = {
|
|
11139
11962
|
Official: 'official',
|
|
11140
11963
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -11308,6 +12131,19 @@ export interface UpdateEnvironmentRequest {
|
|
|
11308
12131
|
*/
|
|
11309
12132
|
'maxCapacity'?: number | null;
|
|
11310
12133
|
}
|
|
12134
|
+
/**
|
|
12135
|
+
*
|
|
12136
|
+
* @export
|
|
12137
|
+
* @interface UpdateEnvironmentSecretRequest
|
|
12138
|
+
*/
|
|
12139
|
+
export interface UpdateEnvironmentSecretRequest {
|
|
12140
|
+
/**
|
|
12141
|
+
*
|
|
12142
|
+
* @type {string}
|
|
12143
|
+
* @memberof UpdateEnvironmentSecretRequest
|
|
12144
|
+
*/
|
|
12145
|
+
'value': string;
|
|
12146
|
+
}
|
|
11311
12147
|
/**
|
|
11312
12148
|
*
|
|
11313
12149
|
* @export
|
|
@@ -11637,6 +12473,12 @@ export interface UpdateSlackBotRequest {
|
|
|
11637
12473
|
* @memberof UpdateSlackBotRequest
|
|
11638
12474
|
*/
|
|
11639
12475
|
'longContext'?: boolean;
|
|
12476
|
+
/**
|
|
12477
|
+
* Reasoning effort (Anthropic effort). Must be one of the levels the model lists in capabilities.effortLevels. Unset uses the caller or model default. null clears it.
|
|
12478
|
+
* @type {string}
|
|
12479
|
+
* @memberof UpdateSlackBotRequest
|
|
12480
|
+
*/
|
|
12481
|
+
'reasoningEffort'?: UpdateSlackBotRequestReasoningEffortEnum | null;
|
|
11640
12482
|
/**
|
|
11641
12483
|
* Session TTL in days
|
|
11642
12484
|
* @type {number}
|
|
@@ -11699,6 +12541,15 @@ export const UpdateSlackBotRequestStatusEnum = {
|
|
|
11699
12541
|
} as const;
|
|
11700
12542
|
|
|
11701
12543
|
export type UpdateSlackBotRequestStatusEnum = typeof UpdateSlackBotRequestStatusEnum[keyof typeof UpdateSlackBotRequestStatusEnum];
|
|
12544
|
+
export const UpdateSlackBotRequestReasoningEffortEnum = {
|
|
12545
|
+
Low: 'low',
|
|
12546
|
+
Medium: 'medium',
|
|
12547
|
+
High: 'high',
|
|
12548
|
+
Xhigh: 'xhigh',
|
|
12549
|
+
Max: 'max'
|
|
12550
|
+
} as const;
|
|
12551
|
+
|
|
12552
|
+
export type UpdateSlackBotRequestReasoningEffortEnum = typeof UpdateSlackBotRequestReasoningEffortEnum[keyof typeof UpdateSlackBotRequestReasoningEffortEnum];
|
|
11702
12553
|
|
|
11703
12554
|
/**
|
|
11704
12555
|
*
|
|
@@ -12129,6 +12980,12 @@ export interface UpsertAgentOverlayRequest {
|
|
|
12129
12980
|
* @memberof UpsertAgentOverlayRequest
|
|
12130
12981
|
*/
|
|
12131
12982
|
'guardrailPreset'?: UpsertAgentOverlayRequestGuardrailPresetEnum | null;
|
|
12983
|
+
/**
|
|
12984
|
+
* Override the reasoning effort. Must be one of the levels the effective model lists in capabilities.effortLevels. Omit or null to use the global agent value.
|
|
12985
|
+
* @type {string}
|
|
12986
|
+
* @memberof UpsertAgentOverlayRequest
|
|
12987
|
+
*/
|
|
12988
|
+
'reasoningEffort'?: UpsertAgentOverlayRequestReasoningEffortEnum | null;
|
|
12132
12989
|
/**
|
|
12133
12990
|
* Current version for optimistic concurrency
|
|
12134
12991
|
* @type {number}
|
|
@@ -12144,6 +13001,15 @@ export const UpsertAgentOverlayRequestGuardrailPresetEnum = {
|
|
|
12144
13001
|
} as const;
|
|
12145
13002
|
|
|
12146
13003
|
export type UpsertAgentOverlayRequestGuardrailPresetEnum = typeof UpsertAgentOverlayRequestGuardrailPresetEnum[keyof typeof UpsertAgentOverlayRequestGuardrailPresetEnum];
|
|
13004
|
+
export const UpsertAgentOverlayRequestReasoningEffortEnum = {
|
|
13005
|
+
Low: 'low',
|
|
13006
|
+
Medium: 'medium',
|
|
13007
|
+
High: 'high',
|
|
13008
|
+
Xhigh: 'xhigh',
|
|
13009
|
+
Max: 'max'
|
|
13010
|
+
} as const;
|
|
13011
|
+
|
|
13012
|
+
export type UpsertAgentOverlayRequestReasoningEffortEnum = typeof UpsertAgentOverlayRequestReasoningEffortEnum[keyof typeof UpsertAgentOverlayRequestReasoningEffortEnum];
|
|
12147
13013
|
|
|
12148
13014
|
/**
|
|
12149
13015
|
*
|
|
@@ -14885,7 +15751,7 @@ export interface V2KvEntryPutResponse {
|
|
|
14885
15751
|
*/
|
|
14886
15752
|
'key': string;
|
|
14887
15753
|
/**
|
|
14888
|
-
* The stored JSON value.
|
|
15754
|
+
* The stored JSON value. For a secret write (secret true) it reads \"[ENCRYPTED]\": secret values are write-only through the API.
|
|
14889
15755
|
* @type {any}
|
|
14890
15756
|
* @memberof V2KvEntryPutResponse
|
|
14891
15757
|
*/
|
|
@@ -16674,7 +17540,7 @@ export interface V2KvLedgerErasureShredReceiptDocument {
|
|
|
16674
17540
|
*/
|
|
16675
17541
|
'signature': string;
|
|
16676
17542
|
/**
|
|
16677
|
-
* The KMS key ARN
|
|
17543
|
+
* 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
17544
|
* @type {string}
|
|
16679
17545
|
* @memberof V2KvLedgerErasureShredReceiptDocument
|
|
16680
17546
|
*/
|
|
@@ -16889,7 +17755,7 @@ export interface V2KvLedgerErasureSignedShredReceipt {
|
|
|
16889
17755
|
*/
|
|
16890
17756
|
'signature': string;
|
|
16891
17757
|
/**
|
|
16892
|
-
* The KMS key ARN
|
|
17758
|
+
* 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
17759
|
* @type {string}
|
|
16894
17760
|
* @memberof V2KvLedgerErasureSignedShredReceipt
|
|
16895
17761
|
*/
|
|
@@ -17710,7 +18576,7 @@ export type V2KvLedgerProvenanceTypeEnum = typeof V2KvLedgerProvenanceTypeEnum[k
|
|
|
17710
18576
|
*/
|
|
17711
18577
|
export interface V2KvLedgerPublicKey {
|
|
17712
18578
|
/**
|
|
17713
|
-
* The KMS key ARN.
|
|
18579
|
+
* 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
18580
|
* @type {string}
|
|
17715
18581
|
* @memberof V2KvLedgerPublicKey
|
|
17716
18582
|
*/
|
|
@@ -18646,12 +19512,6 @@ export interface V2KvUpgradeState {
|
|
|
18646
19512
|
* @memberof V2KvUpgradeState
|
|
18647
19513
|
*/
|
|
18648
19514
|
'state': V2KvUpgradeStateStateEnum;
|
|
18649
|
-
/**
|
|
18650
|
-
* The table that serves the store.
|
|
18651
|
-
* @type {string}
|
|
18652
|
-
* @memberof V2KvUpgradeState
|
|
18653
|
-
*/
|
|
18654
|
-
'table': string;
|
|
18655
19515
|
/**
|
|
18656
19516
|
* Null when the store was never upgraded.
|
|
18657
19517
|
* @type {V2KvUpgradeStatus}
|
|
@@ -18691,18 +19551,6 @@ export interface V2KvUpgradeStatus {
|
|
|
18691
19551
|
* @memberof V2KvUpgradeStatus
|
|
18692
19552
|
*/
|
|
18693
19553
|
'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
19554
|
/**
|
|
18707
19555
|
*
|
|
18708
19556
|
* @type {string}
|
|
@@ -19000,12 +19848,6 @@ export interface V2KvUsagePeriod {
|
|
|
19000
19848
|
* @interface V2KvUsageRetainedTable
|
|
19001
19849
|
*/
|
|
19002
19850
|
export interface V2KvUsageRetainedTable {
|
|
19003
|
-
/**
|
|
19004
|
-
*
|
|
19005
|
-
* @type {string}
|
|
19006
|
-
* @memberof V2KvUsageRetainedTable
|
|
19007
|
-
*/
|
|
19008
|
-
'name': string;
|
|
19009
19851
|
/**
|
|
19010
19852
|
*
|
|
19011
19853
|
* @type {number}
|
|
@@ -19019,12 +19861,6 @@ export interface V2KvUsageRetainedTable {
|
|
|
19019
19861
|
* @interface V2KvUsageTable
|
|
19020
19862
|
*/
|
|
19021
19863
|
export interface V2KvUsageTable {
|
|
19022
|
-
/**
|
|
19023
|
-
*
|
|
19024
|
-
* @type {string}
|
|
19025
|
-
* @memberof V2KvUsageTable
|
|
19026
|
-
*/
|
|
19027
|
-
'name': string;
|
|
19028
19864
|
/**
|
|
19029
19865
|
*
|
|
19030
19866
|
* @type {number}
|
|
@@ -19407,7 +20243,7 @@ export interface V2Rule {
|
|
|
19407
20243
|
*/
|
|
19408
20244
|
'rule_id'?: string;
|
|
19409
20245
|
/**
|
|
19410
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
20246
|
+
* 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
20247
|
* @type {number}
|
|
19412
20248
|
* @memberof V2Rule
|
|
19413
20249
|
*/
|
|
@@ -19576,7 +20412,7 @@ export interface V2RuleAuth {
|
|
|
19576
20412
|
*/
|
|
19577
20413
|
'rule_id'?: string;
|
|
19578
20414
|
/**
|
|
19579
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
20415
|
+
* 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
20416
|
* @type {number}
|
|
19581
20417
|
* @memberof V2RuleAuth
|
|
19582
20418
|
*/
|
|
@@ -19770,7 +20606,7 @@ export interface V2RuleAuthFunction {
|
|
|
19770
20606
|
*/
|
|
19771
20607
|
'rule_id'?: string;
|
|
19772
20608
|
/**
|
|
19773
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
20609
|
+
* 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
20610
|
* @type {number}
|
|
19775
20611
|
* @memberof V2RuleAuthFunction
|
|
19776
20612
|
*/
|
|
@@ -19958,7 +20794,7 @@ export interface V2RuleAuthFunctionRequest {
|
|
|
19958
20794
|
*/
|
|
19959
20795
|
'uuid'?: string;
|
|
19960
20796
|
/**
|
|
19961
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
20797
|
+
* 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
20798
|
* @type {number}
|
|
19963
20799
|
* @memberof V2RuleAuthFunctionRequest
|
|
19964
20800
|
*/
|
|
@@ -20162,7 +20998,7 @@ export interface V2RuleAuthRequest {
|
|
|
20162
20998
|
*/
|
|
20163
20999
|
'uuid'?: string;
|
|
20164
21000
|
/**
|
|
20165
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
21001
|
+
* 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
21002
|
* @type {number}
|
|
20167
21003
|
* @memberof V2RuleAuthRequest
|
|
20168
21004
|
*/
|
|
@@ -20372,7 +21208,7 @@ export interface V2RuleBotChallenge {
|
|
|
20372
21208
|
*/
|
|
20373
21209
|
'rule_id'?: string;
|
|
20374
21210
|
/**
|
|
20375
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
21211
|
+
* 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
21212
|
* @type {number}
|
|
20377
21213
|
* @memberof V2RuleBotChallenge
|
|
20378
21214
|
*/
|
|
@@ -20572,7 +21408,7 @@ export interface V2RuleBotChallengeRequest {
|
|
|
20572
21408
|
*/
|
|
20573
21409
|
'uuid'?: string;
|
|
20574
21410
|
/**
|
|
20575
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
21411
|
+
* 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
21412
|
* @type {number}
|
|
20577
21413
|
* @memberof V2RuleBotChallengeRequest
|
|
20578
21414
|
*/
|
|
@@ -20788,7 +21624,7 @@ export interface V2RuleContentFilter {
|
|
|
20788
21624
|
*/
|
|
20789
21625
|
'rule_id'?: string;
|
|
20790
21626
|
/**
|
|
20791
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
21627
|
+
* 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
21628
|
* @type {number}
|
|
20793
21629
|
* @memberof V2RuleContentFilter
|
|
20794
21630
|
*/
|
|
@@ -20976,7 +21812,7 @@ export interface V2RuleContentFilterRequest {
|
|
|
20976
21812
|
*/
|
|
20977
21813
|
'uuid'?: string;
|
|
20978
21814
|
/**
|
|
20979
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
21815
|
+
* 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
21816
|
* @type {number}
|
|
20981
21817
|
* @memberof V2RuleContentFilterRequest
|
|
20982
21818
|
*/
|
|
@@ -21180,7 +22016,7 @@ export interface V2RuleCustomResponse {
|
|
|
21180
22016
|
*/
|
|
21181
22017
|
'rule_id'?: string;
|
|
21182
22018
|
/**
|
|
21183
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
22019
|
+
* 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
22020
|
* @type {number}
|
|
21185
22021
|
* @memberof V2RuleCustomResponse
|
|
21186
22022
|
*/
|
|
@@ -21374,7 +22210,7 @@ export interface V2RuleCustomResponseRequest {
|
|
|
21374
22210
|
*/
|
|
21375
22211
|
'uuid'?: string;
|
|
21376
22212
|
/**
|
|
21377
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
22213
|
+
* 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
22214
|
* @type {number}
|
|
21379
22215
|
* @memberof V2RuleCustomResponseRequest
|
|
21380
22216
|
*/
|
|
@@ -21596,7 +22432,7 @@ export interface V2RuleErrorPage {
|
|
|
21596
22432
|
*/
|
|
21597
22433
|
'rule_id'?: string;
|
|
21598
22434
|
/**
|
|
21599
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
22435
|
+
* 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
22436
|
* @type {number}
|
|
21601
22437
|
* @memberof V2RuleErrorPage
|
|
21602
22438
|
*/
|
|
@@ -21790,7 +22626,7 @@ export interface V2RuleErrorPageRequest {
|
|
|
21790
22626
|
*/
|
|
21791
22627
|
'uuid'?: string;
|
|
21792
22628
|
/**
|
|
21793
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
22629
|
+
* 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
22630
|
* @type {number}
|
|
21795
22631
|
* @memberof V2RuleErrorPageRequest
|
|
21796
22632
|
*/
|
|
@@ -22000,7 +22836,7 @@ export interface V2RuleFunction {
|
|
|
22000
22836
|
*/
|
|
22001
22837
|
'rule_id'?: string;
|
|
22002
22838
|
/**
|
|
22003
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
22839
|
+
* 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
22840
|
* @type {number}
|
|
22005
22841
|
* @memberof V2RuleFunction
|
|
22006
22842
|
*/
|
|
@@ -22188,7 +23024,7 @@ export interface V2RuleFunctionRequest {
|
|
|
22188
23024
|
*/
|
|
22189
23025
|
'uuid'?: string;
|
|
22190
23026
|
/**
|
|
22191
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
23027
|
+
* 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
23028
|
* @type {number}
|
|
22193
23029
|
* @memberof V2RuleFunctionRequest
|
|
22194
23030
|
*/
|
|
@@ -22392,7 +23228,7 @@ export interface V2RuleHeader {
|
|
|
22392
23228
|
*/
|
|
22393
23229
|
'rule_id'?: string;
|
|
22394
23230
|
/**
|
|
22395
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
23231
|
+
* 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
23232
|
* @type {number}
|
|
22397
23233
|
* @memberof V2RuleHeader
|
|
22398
23234
|
*/
|
|
@@ -22580,7 +23416,7 @@ export interface V2RuleHeaderRequest {
|
|
|
22580
23416
|
*/
|
|
22581
23417
|
'uuid'?: string;
|
|
22582
23418
|
/**
|
|
22583
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
23419
|
+
* 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
23420
|
* @type {number}
|
|
22585
23421
|
* @memberof V2RuleHeaderRequest
|
|
22586
23422
|
*/
|
|
@@ -22784,7 +23620,7 @@ export interface V2RuleProxy {
|
|
|
22784
23620
|
*/
|
|
22785
23621
|
'rule_id'?: string;
|
|
22786
23622
|
/**
|
|
22787
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
23623
|
+
* 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
23624
|
* @type {number}
|
|
22789
23625
|
* @memberof V2RuleProxy
|
|
22790
23626
|
*/
|
|
@@ -23192,7 +24028,7 @@ export interface V2RuleProxyRequest {
|
|
|
23192
24028
|
*/
|
|
23193
24029
|
'uuid'?: string;
|
|
23194
24030
|
/**
|
|
23195
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
24031
|
+
* 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
24032
|
* @type {number}
|
|
23197
24033
|
* @memberof V2RuleProxyRequest
|
|
23198
24034
|
*/
|
|
@@ -23540,7 +24376,7 @@ export interface V2RuleRedirect {
|
|
|
23540
24376
|
*/
|
|
23541
24377
|
'rule_id'?: string;
|
|
23542
24378
|
/**
|
|
23543
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
24379
|
+
* 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
24380
|
* @type {number}
|
|
23545
24381
|
* @memberof V2RuleRedirect
|
|
23546
24382
|
*/
|
|
@@ -23734,7 +24570,7 @@ export interface V2RuleRedirectRequest {
|
|
|
23734
24570
|
*/
|
|
23735
24571
|
'uuid'?: string;
|
|
23736
24572
|
/**
|
|
23737
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
24573
|
+
* 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
24574
|
* @type {number}
|
|
23739
24575
|
* @memberof V2RuleRedirectRequest
|
|
23740
24576
|
*/
|
|
@@ -23944,7 +24780,7 @@ export interface V2RuleRequest {
|
|
|
23944
24780
|
*/
|
|
23945
24781
|
'uuid'?: string;
|
|
23946
24782
|
/**
|
|
23947
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
24783
|
+
* 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
24784
|
* @type {number}
|
|
23949
24785
|
* @memberof V2RuleRequest
|
|
23950
24786
|
*/
|
|
@@ -24142,7 +24978,7 @@ export interface V2RuleServeStatic {
|
|
|
24142
24978
|
*/
|
|
24143
24979
|
'rule_id'?: string;
|
|
24144
24980
|
/**
|
|
24145
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
24981
|
+
* 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
24982
|
* @type {number}
|
|
24147
24983
|
* @memberof V2RuleServeStatic
|
|
24148
24984
|
*/
|
|
@@ -24330,7 +25166,7 @@ export interface V2RuleServeStaticRequest {
|
|
|
24330
25166
|
*/
|
|
24331
25167
|
'uuid'?: string;
|
|
24332
25168
|
/**
|
|
24333
|
-
* Rule order. Must be 0 or greater; lower weights are processed first. If omitted on create, the rule is placed last.
|
|
25169
|
+
* 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
25170
|
* @type {number}
|
|
24335
25171
|
* @memberof V2RuleServeStaticRequest
|
|
24336
25172
|
*/
|
|
@@ -26110,6 +26946,812 @@ export class AIAgentsApi extends BaseAPI {
|
|
|
26110
26946
|
|
|
26111
26947
|
|
|
26112
26948
|
|
|
26949
|
+
/**
|
|
26950
|
+
* AIAuditApi - axios parameter creator
|
|
26951
|
+
* @export
|
|
26952
|
+
*/
|
|
26953
|
+
export const AIAuditApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
26954
|
+
return {
|
|
26955
|
+
/**
|
|
26956
|
+
* 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.
|
|
26957
|
+
* @summary Export AI audit records as JSON Lines
|
|
26958
|
+
* @param {string} organisation The organisation machine name
|
|
26959
|
+
* @param {string} startDate
|
|
26960
|
+
* @param {string} endDate
|
|
26961
|
+
* @param {string} [userId]
|
|
26962
|
+
* @param {string} [modelId]
|
|
26963
|
+
* @param {string} [recordType]
|
|
26964
|
+
* @param {string} [decision]
|
|
26965
|
+
* @param {string} [tool]
|
|
26966
|
+
* @param {string} [outcome]
|
|
26967
|
+
* @param {*} [options] Override http request option.
|
|
26968
|
+
* @throws {RequiredError}
|
|
26969
|
+
*/
|
|
26970
|
+
aiAuditExport: async (organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
26971
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26972
|
+
assertParamExists('aiAuditExport', 'organisation', organisation)
|
|
26973
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
26974
|
+
assertParamExists('aiAuditExport', 'startDate', startDate)
|
|
26975
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
26976
|
+
assertParamExists('aiAuditExport', 'endDate', endDate)
|
|
26977
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
|
|
26978
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
26979
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26980
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26981
|
+
let baseOptions;
|
|
26982
|
+
if (configuration) {
|
|
26983
|
+
baseOptions = configuration.baseOptions;
|
|
26984
|
+
}
|
|
26985
|
+
|
|
26986
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
26987
|
+
const localVarHeaderParameter = {} as any;
|
|
26988
|
+
const localVarQueryParameter = {} as any;
|
|
26989
|
+
|
|
26990
|
+
// authentication BearerAuth required
|
|
26991
|
+
// http bearer authentication required
|
|
26992
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
26993
|
+
|
|
26994
|
+
if (startDate !== undefined) {
|
|
26995
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
26996
|
+
(startDate as any).toISOString().substring(0,10) :
|
|
26997
|
+
startDate;
|
|
26998
|
+
}
|
|
26999
|
+
|
|
27000
|
+
if (endDate !== undefined) {
|
|
27001
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
27002
|
+
(endDate as any).toISOString().substring(0,10) :
|
|
27003
|
+
endDate;
|
|
27004
|
+
}
|
|
27005
|
+
|
|
27006
|
+
if (userId !== undefined) {
|
|
27007
|
+
localVarQueryParameter['userId'] = userId;
|
|
27008
|
+
}
|
|
27009
|
+
|
|
27010
|
+
if (modelId !== undefined) {
|
|
27011
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
27012
|
+
}
|
|
27013
|
+
|
|
27014
|
+
if (recordType !== undefined) {
|
|
27015
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
27016
|
+
}
|
|
27017
|
+
|
|
27018
|
+
if (decision !== undefined) {
|
|
27019
|
+
localVarQueryParameter['decision'] = decision;
|
|
27020
|
+
}
|
|
27021
|
+
|
|
27022
|
+
if (tool !== undefined) {
|
|
27023
|
+
localVarQueryParameter['tool'] = tool;
|
|
27024
|
+
}
|
|
27025
|
+
|
|
27026
|
+
if (outcome !== undefined) {
|
|
27027
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
27028
|
+
}
|
|
27029
|
+
|
|
27030
|
+
|
|
27031
|
+
|
|
27032
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27033
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27034
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27035
|
+
|
|
27036
|
+
return {
|
|
27037
|
+
url: toPathString(localVarUrlObj),
|
|
27038
|
+
options: localVarRequestOptions,
|
|
27039
|
+
};
|
|
27040
|
+
},
|
|
27041
|
+
/**
|
|
27042
|
+
* 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.
|
|
27043
|
+
* @summary List AI governance ledger entries
|
|
27044
|
+
* @param {string} organisation The organisation machine name
|
|
27045
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
27046
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
27047
|
+
* @param {number} [limit]
|
|
27048
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27049
|
+
* @param {*} [options] Override http request option.
|
|
27050
|
+
* @throws {RequiredError}
|
|
27051
|
+
*/
|
|
27052
|
+
aiAuditLedgerEntries: async (organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27053
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27054
|
+
assertParamExists('aiAuditLedgerEntries', 'organisation', organisation)
|
|
27055
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
|
|
27056
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27057
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27058
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27059
|
+
let baseOptions;
|
|
27060
|
+
if (configuration) {
|
|
27061
|
+
baseOptions = configuration.baseOptions;
|
|
27062
|
+
}
|
|
27063
|
+
|
|
27064
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27065
|
+
const localVarHeaderParameter = {} as any;
|
|
27066
|
+
const localVarQueryParameter = {} as any;
|
|
27067
|
+
|
|
27068
|
+
// authentication BearerAuth required
|
|
27069
|
+
// http bearer authentication required
|
|
27070
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27071
|
+
|
|
27072
|
+
if (since !== undefined) {
|
|
27073
|
+
localVarQueryParameter['since'] = since;
|
|
27074
|
+
}
|
|
27075
|
+
|
|
27076
|
+
if (until !== undefined) {
|
|
27077
|
+
localVarQueryParameter['until'] = until;
|
|
27078
|
+
}
|
|
27079
|
+
|
|
27080
|
+
if (limit !== undefined) {
|
|
27081
|
+
localVarQueryParameter['limit'] = limit;
|
|
27082
|
+
}
|
|
27083
|
+
|
|
27084
|
+
if (cursor !== undefined) {
|
|
27085
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
27086
|
+
}
|
|
27087
|
+
|
|
27088
|
+
|
|
27089
|
+
|
|
27090
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27091
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27092
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27093
|
+
|
|
27094
|
+
return {
|
|
27095
|
+
url: toPathString(localVarUrlObj),
|
|
27096
|
+
options: localVarRequestOptions,
|
|
27097
|
+
};
|
|
27098
|
+
},
|
|
27099
|
+
/**
|
|
27100
|
+
* 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.
|
|
27101
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
27102
|
+
* @param {string} organisation The organisation machine name
|
|
27103
|
+
* @param {string} key
|
|
27104
|
+
* @param {*} [options] Override http request option.
|
|
27105
|
+
* @throws {RequiredError}
|
|
27106
|
+
*/
|
|
27107
|
+
aiAuditLedgerProof: async (organisation: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27108
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27109
|
+
assertParamExists('aiAuditLedgerProof', 'organisation', organisation)
|
|
27110
|
+
// verify required parameter 'key' is not null or undefined
|
|
27111
|
+
assertParamExists('aiAuditLedgerProof', 'key', key)
|
|
27112
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
|
|
27113
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27114
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27115
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27116
|
+
let baseOptions;
|
|
27117
|
+
if (configuration) {
|
|
27118
|
+
baseOptions = configuration.baseOptions;
|
|
27119
|
+
}
|
|
27120
|
+
|
|
27121
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27122
|
+
const localVarHeaderParameter = {} as any;
|
|
27123
|
+
const localVarQueryParameter = {} as any;
|
|
27124
|
+
|
|
27125
|
+
// authentication BearerAuth required
|
|
27126
|
+
// http bearer authentication required
|
|
27127
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27128
|
+
|
|
27129
|
+
if (key !== undefined) {
|
|
27130
|
+
localVarQueryParameter['key'] = key;
|
|
27131
|
+
}
|
|
27132
|
+
|
|
27133
|
+
|
|
27134
|
+
|
|
27135
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27136
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27137
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27138
|
+
|
|
27139
|
+
return {
|
|
27140
|
+
url: toPathString(localVarUrlObj),
|
|
27141
|
+
options: localVarRequestOptions,
|
|
27142
|
+
};
|
|
27143
|
+
},
|
|
27144
|
+
/**
|
|
27145
|
+
* 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.
|
|
27146
|
+
* @summary Get the governance ledger public key
|
|
27147
|
+
* @param {string} organisation The organisation machine name
|
|
27148
|
+
* @param {*} [options] Override http request option.
|
|
27149
|
+
* @throws {RequiredError}
|
|
27150
|
+
*/
|
|
27151
|
+
aiAuditLedgerPublicKey: async (organisation: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27152
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27153
|
+
assertParamExists('aiAuditLedgerPublicKey', 'organisation', organisation)
|
|
27154
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
|
|
27155
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27156
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27157
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27158
|
+
let baseOptions;
|
|
27159
|
+
if (configuration) {
|
|
27160
|
+
baseOptions = configuration.baseOptions;
|
|
27161
|
+
}
|
|
27162
|
+
|
|
27163
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27164
|
+
const localVarHeaderParameter = {} as any;
|
|
27165
|
+
const localVarQueryParameter = {} as any;
|
|
27166
|
+
|
|
27167
|
+
// authentication BearerAuth required
|
|
27168
|
+
// http bearer authentication required
|
|
27169
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27170
|
+
|
|
27171
|
+
|
|
27172
|
+
|
|
27173
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27174
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27175
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27176
|
+
|
|
27177
|
+
return {
|
|
27178
|
+
url: toPathString(localVarUrlObj),
|
|
27179
|
+
options: localVarRequestOptions,
|
|
27180
|
+
};
|
|
27181
|
+
},
|
|
27182
|
+
/**
|
|
27183
|
+
* 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.
|
|
27184
|
+
* @summary Get the AI governance ledger status
|
|
27185
|
+
* @param {string} organisation The organisation machine name
|
|
27186
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27187
|
+
* @param {*} [options] Override http request option.
|
|
27188
|
+
* @throws {RequiredError}
|
|
27189
|
+
*/
|
|
27190
|
+
aiAuditLedgerStatus: async (organisation: string, cursor?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27191
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27192
|
+
assertParamExists('aiAuditLedgerStatus', 'organisation', organisation)
|
|
27193
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
|
|
27194
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27195
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27196
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27197
|
+
let baseOptions;
|
|
27198
|
+
if (configuration) {
|
|
27199
|
+
baseOptions = configuration.baseOptions;
|
|
27200
|
+
}
|
|
27201
|
+
|
|
27202
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27203
|
+
const localVarHeaderParameter = {} as any;
|
|
27204
|
+
const localVarQueryParameter = {} as any;
|
|
27205
|
+
|
|
27206
|
+
// authentication BearerAuth required
|
|
27207
|
+
// http bearer authentication required
|
|
27208
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27209
|
+
|
|
27210
|
+
if (cursor !== undefined) {
|
|
27211
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
27212
|
+
}
|
|
27213
|
+
|
|
27214
|
+
|
|
27215
|
+
|
|
27216
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27217
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27218
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27219
|
+
|
|
27220
|
+
return {
|
|
27221
|
+
url: toPathString(localVarUrlObj),
|
|
27222
|
+
options: localVarRequestOptions,
|
|
27223
|
+
};
|
|
27224
|
+
},
|
|
27225
|
+
/**
|
|
27226
|
+
* 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.
|
|
27227
|
+
* @summary Get one AI audit record
|
|
27228
|
+
* @param {string} organisation The organisation machine name
|
|
27229
|
+
* @param {string} key
|
|
27230
|
+
* @param {*} [options] Override http request option.
|
|
27231
|
+
* @throws {RequiredError}
|
|
27232
|
+
*/
|
|
27233
|
+
aiAuditRecordGet: async (organisation: string, key: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
27234
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27235
|
+
assertParamExists('aiAuditRecordGet', 'organisation', organisation)
|
|
27236
|
+
// verify required parameter 'key' is not null or undefined
|
|
27237
|
+
assertParamExists('aiAuditRecordGet', 'key', key)
|
|
27238
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
|
|
27239
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27241
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27242
|
+
let baseOptions;
|
|
27243
|
+
if (configuration) {
|
|
27244
|
+
baseOptions = configuration.baseOptions;
|
|
27245
|
+
}
|
|
27246
|
+
|
|
27247
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27248
|
+
const localVarHeaderParameter = {} as any;
|
|
27249
|
+
const localVarQueryParameter = {} as any;
|
|
27250
|
+
|
|
27251
|
+
// authentication BearerAuth required
|
|
27252
|
+
// http bearer authentication required
|
|
27253
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27254
|
+
|
|
27255
|
+
if (key !== undefined) {
|
|
27256
|
+
localVarQueryParameter['key'] = key;
|
|
27257
|
+
}
|
|
27258
|
+
|
|
27259
|
+
|
|
27260
|
+
|
|
27261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27263
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27264
|
+
|
|
27265
|
+
return {
|
|
27266
|
+
url: toPathString(localVarUrlObj),
|
|
27267
|
+
options: localVarRequestOptions,
|
|
27268
|
+
};
|
|
27269
|
+
},
|
|
27270
|
+
/**
|
|
27271
|
+
* 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.
|
|
27272
|
+
* @summary List AI audit records
|
|
27273
|
+
* @param {string} organisation The organisation machine name
|
|
27274
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
27275
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
27276
|
+
* @param {string} [since] Record time from (inclusive).
|
|
27277
|
+
* @param {string} [until] Record time to (exclusive).
|
|
27278
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
27279
|
+
* @param {string} [tokenId]
|
|
27280
|
+
* @param {string} [modelId]
|
|
27281
|
+
* @param {string} [recordType]
|
|
27282
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
27283
|
+
* @param {string} [tool]
|
|
27284
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
27285
|
+
* @param {string} [_interface]
|
|
27286
|
+
* @param {number} [limit]
|
|
27287
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
27288
|
+
* @param {*} [options] Override http request option.
|
|
27289
|
+
* @throws {RequiredError}
|
|
27290
|
+
*/
|
|
27291
|
+
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> => {
|
|
27292
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
27293
|
+
assertParamExists('aiAuditRecordsList', 'organisation', organisation)
|
|
27294
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
27295
|
+
assertParamExists('aiAuditRecordsList', 'startDate', startDate)
|
|
27296
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
27297
|
+
assertParamExists('aiAuditRecordsList', 'endDate', endDate)
|
|
27298
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
|
|
27299
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
27300
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27301
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27302
|
+
let baseOptions;
|
|
27303
|
+
if (configuration) {
|
|
27304
|
+
baseOptions = configuration.baseOptions;
|
|
27305
|
+
}
|
|
27306
|
+
|
|
27307
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
27308
|
+
const localVarHeaderParameter = {} as any;
|
|
27309
|
+
const localVarQueryParameter = {} as any;
|
|
27310
|
+
|
|
27311
|
+
// authentication BearerAuth required
|
|
27312
|
+
// http bearer authentication required
|
|
27313
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
27314
|
+
|
|
27315
|
+
if (startDate !== undefined) {
|
|
27316
|
+
localVarQueryParameter['startDate'] = (startDate as any instanceof Date) ?
|
|
27317
|
+
(startDate as any).toISOString().substring(0,10) :
|
|
27318
|
+
startDate;
|
|
27319
|
+
}
|
|
27320
|
+
|
|
27321
|
+
if (endDate !== undefined) {
|
|
27322
|
+
localVarQueryParameter['endDate'] = (endDate as any instanceof Date) ?
|
|
27323
|
+
(endDate as any).toISOString().substring(0,10) :
|
|
27324
|
+
endDate;
|
|
27325
|
+
}
|
|
27326
|
+
|
|
27327
|
+
if (since !== undefined) {
|
|
27328
|
+
localVarQueryParameter['since'] = (since as any instanceof Date) ?
|
|
27329
|
+
(since as any).toISOString() :
|
|
27330
|
+
since;
|
|
27331
|
+
}
|
|
27332
|
+
|
|
27333
|
+
if (until !== undefined) {
|
|
27334
|
+
localVarQueryParameter['until'] = (until as any instanceof Date) ?
|
|
27335
|
+
(until as any).toISOString() :
|
|
27336
|
+
until;
|
|
27337
|
+
}
|
|
27338
|
+
|
|
27339
|
+
if (userId !== undefined) {
|
|
27340
|
+
localVarQueryParameter['userId'] = userId;
|
|
27341
|
+
}
|
|
27342
|
+
|
|
27343
|
+
if (tokenId !== undefined) {
|
|
27344
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
27345
|
+
}
|
|
27346
|
+
|
|
27347
|
+
if (modelId !== undefined) {
|
|
27348
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
27349
|
+
}
|
|
27350
|
+
|
|
27351
|
+
if (recordType !== undefined) {
|
|
27352
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
27353
|
+
}
|
|
27354
|
+
|
|
27355
|
+
if (decision !== undefined) {
|
|
27356
|
+
localVarQueryParameter['decision'] = decision;
|
|
27357
|
+
}
|
|
27358
|
+
|
|
27359
|
+
if (tool !== undefined) {
|
|
27360
|
+
localVarQueryParameter['tool'] = tool;
|
|
27361
|
+
}
|
|
27362
|
+
|
|
27363
|
+
if (outcome !== undefined) {
|
|
27364
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
27365
|
+
}
|
|
27366
|
+
|
|
27367
|
+
if (_interface !== undefined) {
|
|
27368
|
+
localVarQueryParameter['interface'] = _interface;
|
|
27369
|
+
}
|
|
27370
|
+
|
|
27371
|
+
if (limit !== undefined) {
|
|
27372
|
+
localVarQueryParameter['limit'] = limit;
|
|
27373
|
+
}
|
|
27374
|
+
|
|
27375
|
+
if (cursor !== undefined) {
|
|
27376
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
27377
|
+
}
|
|
27378
|
+
|
|
27379
|
+
|
|
27380
|
+
|
|
27381
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27382
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27383
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
27384
|
+
|
|
27385
|
+
return {
|
|
27386
|
+
url: toPathString(localVarUrlObj),
|
|
27387
|
+
options: localVarRequestOptions,
|
|
27388
|
+
};
|
|
27389
|
+
},
|
|
27390
|
+
}
|
|
27391
|
+
};
|
|
27392
|
+
|
|
27393
|
+
/**
|
|
27394
|
+
* AIAuditApi - functional programming interface
|
|
27395
|
+
* @export
|
|
27396
|
+
*/
|
|
27397
|
+
export const AIAuditApiFp = function(configuration?: Configuration) {
|
|
27398
|
+
const localVarAxiosParamCreator = AIAuditApiAxiosParamCreator(configuration)
|
|
27399
|
+
return {
|
|
27400
|
+
/**
|
|
27401
|
+
* 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.
|
|
27402
|
+
* @summary Export AI audit records as JSON Lines
|
|
27403
|
+
* @param {string} organisation The organisation machine name
|
|
27404
|
+
* @param {string} startDate
|
|
27405
|
+
* @param {string} endDate
|
|
27406
|
+
* @param {string} [userId]
|
|
27407
|
+
* @param {string} [modelId]
|
|
27408
|
+
* @param {string} [recordType]
|
|
27409
|
+
* @param {string} [decision]
|
|
27410
|
+
* @param {string} [tool]
|
|
27411
|
+
* @param {string} [outcome]
|
|
27412
|
+
* @param {*} [options] Override http request option.
|
|
27413
|
+
* @throws {RequiredError}
|
|
27414
|
+
*/
|
|
27415
|
+
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>> {
|
|
27416
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options);
|
|
27417
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27418
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditExport']?.[localVarOperationServerIndex]?.url;
|
|
27419
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27420
|
+
},
|
|
27421
|
+
/**
|
|
27422
|
+
* 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.
|
|
27423
|
+
* @summary List AI governance ledger entries
|
|
27424
|
+
* @param {string} organisation The organisation machine name
|
|
27425
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
27426
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
27427
|
+
* @param {number} [limit]
|
|
27428
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27429
|
+
* @param {*} [options] Override http request option.
|
|
27430
|
+
* @throws {RequiredError}
|
|
27431
|
+
*/
|
|
27432
|
+
async aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvKeysPage>> {
|
|
27433
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
|
|
27434
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27435
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerEntries']?.[localVarOperationServerIndex]?.url;
|
|
27436
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27437
|
+
},
|
|
27438
|
+
/**
|
|
27439
|
+
* 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.
|
|
27440
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
27441
|
+
* @param {string} organisation The organisation machine name
|
|
27442
|
+
* @param {string} key
|
|
27443
|
+
* @param {*} [options] Override http request option.
|
|
27444
|
+
* @throws {RequiredError}
|
|
27445
|
+
*/
|
|
27446
|
+
async aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerProof>> {
|
|
27447
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
|
|
27448
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27449
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerProof']?.[localVarOperationServerIndex]?.url;
|
|
27450
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27451
|
+
},
|
|
27452
|
+
/**
|
|
27453
|
+
* 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.
|
|
27454
|
+
* @summary Get the governance ledger public key
|
|
27455
|
+
* @param {string} organisation The organisation machine name
|
|
27456
|
+
* @param {*} [options] Override http request option.
|
|
27457
|
+
* @throws {RequiredError}
|
|
27458
|
+
*/
|
|
27459
|
+
async aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerPublicKey>> {
|
|
27460
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
|
|
27461
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27462
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerPublicKey']?.[localVarOperationServerIndex]?.url;
|
|
27463
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27464
|
+
},
|
|
27465
|
+
/**
|
|
27466
|
+
* 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.
|
|
27467
|
+
* @summary Get the AI governance ledger status
|
|
27468
|
+
* @param {string} organisation The organisation machine name
|
|
27469
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27470
|
+
* @param {*} [options] Override http request option.
|
|
27471
|
+
* @throws {RequiredError}
|
|
27472
|
+
*/
|
|
27473
|
+
async aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<V2KvLedgerStatus>> {
|
|
27474
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, options);
|
|
27475
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27476
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditLedgerStatus']?.[localVarOperationServerIndex]?.url;
|
|
27477
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27478
|
+
},
|
|
27479
|
+
/**
|
|
27480
|
+
* 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.
|
|
27481
|
+
* @summary Get one AI audit record
|
|
27482
|
+
* @param {string} organisation The organisation machine name
|
|
27483
|
+
* @param {string} key
|
|
27484
|
+
* @param {*} [options] Override http request option.
|
|
27485
|
+
* @throws {RequiredError}
|
|
27486
|
+
*/
|
|
27487
|
+
async aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AiAuditRecordGet200Response>> {
|
|
27488
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
|
|
27489
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27490
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditRecordGet']?.[localVarOperationServerIndex]?.url;
|
|
27491
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27492
|
+
},
|
|
27493
|
+
/**
|
|
27494
|
+
* 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.
|
|
27495
|
+
* @summary List AI audit records
|
|
27496
|
+
* @param {string} organisation The organisation machine name
|
|
27497
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
27498
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
27499
|
+
* @param {string} [since] Record time from (inclusive).
|
|
27500
|
+
* @param {string} [until] Record time to (exclusive).
|
|
27501
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
27502
|
+
* @param {string} [tokenId]
|
|
27503
|
+
* @param {string} [modelId]
|
|
27504
|
+
* @param {string} [recordType]
|
|
27505
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
27506
|
+
* @param {string} [tool]
|
|
27507
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
27508
|
+
* @param {string} [_interface]
|
|
27509
|
+
* @param {number} [limit]
|
|
27510
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
27511
|
+
* @param {*} [options] Override http request option.
|
|
27512
|
+
* @throws {RequiredError}
|
|
27513
|
+
*/
|
|
27514
|
+
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>> {
|
|
27515
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
|
|
27516
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
27517
|
+
const localVarOperationServerBasePath = operationServerMap['AIAuditApi.aiAuditRecordsList']?.[localVarOperationServerIndex]?.url;
|
|
27518
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27519
|
+
},
|
|
27520
|
+
}
|
|
27521
|
+
};
|
|
27522
|
+
|
|
27523
|
+
/**
|
|
27524
|
+
* AIAuditApi - factory interface
|
|
27525
|
+
* @export
|
|
27526
|
+
*/
|
|
27527
|
+
export const AIAuditApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
27528
|
+
const localVarFp = AIAuditApiFp(configuration)
|
|
27529
|
+
return {
|
|
27530
|
+
/**
|
|
27531
|
+
* 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.
|
|
27532
|
+
* @summary Export AI audit records as JSON Lines
|
|
27533
|
+
* @param {string} organisation The organisation machine name
|
|
27534
|
+
* @param {string} startDate
|
|
27535
|
+
* @param {string} endDate
|
|
27536
|
+
* @param {string} [userId]
|
|
27537
|
+
* @param {string} [modelId]
|
|
27538
|
+
* @param {string} [recordType]
|
|
27539
|
+
* @param {string} [decision]
|
|
27540
|
+
* @param {string} [tool]
|
|
27541
|
+
* @param {string} [outcome]
|
|
27542
|
+
* @param {*} [options] Override http request option.
|
|
27543
|
+
* @throws {RequiredError}
|
|
27544
|
+
*/
|
|
27545
|
+
aiAuditExport(organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options?: RawAxiosRequestConfig): AxiosPromise<string> {
|
|
27546
|
+
return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
|
|
27547
|
+
},
|
|
27548
|
+
/**
|
|
27549
|
+
* 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.
|
|
27550
|
+
* @summary List AI governance ledger entries
|
|
27551
|
+
* @param {string} organisation The organisation machine name
|
|
27552
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
27553
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
27554
|
+
* @param {number} [limit]
|
|
27555
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27556
|
+
* @param {*} [options] Override http request option.
|
|
27557
|
+
* @throws {RequiredError}
|
|
27558
|
+
*/
|
|
27559
|
+
aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvKeysPage> {
|
|
27560
|
+
return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
|
|
27561
|
+
},
|
|
27562
|
+
/**
|
|
27563
|
+
* 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.
|
|
27564
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
27565
|
+
* @param {string} organisation The organisation machine name
|
|
27566
|
+
* @param {string} key
|
|
27567
|
+
* @param {*} [options] Override http request option.
|
|
27568
|
+
* @throws {RequiredError}
|
|
27569
|
+
*/
|
|
27570
|
+
aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerProof> {
|
|
27571
|
+
return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
|
|
27572
|
+
},
|
|
27573
|
+
/**
|
|
27574
|
+
* 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.
|
|
27575
|
+
* @summary Get the governance ledger public key
|
|
27576
|
+
* @param {string} organisation The organisation machine name
|
|
27577
|
+
* @param {*} [options] Override http request option.
|
|
27578
|
+
* @throws {RequiredError}
|
|
27579
|
+
*/
|
|
27580
|
+
aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerPublicKey> {
|
|
27581
|
+
return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
|
|
27582
|
+
},
|
|
27583
|
+
/**
|
|
27584
|
+
* 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.
|
|
27585
|
+
* @summary Get the AI governance ledger status
|
|
27586
|
+
* @param {string} organisation The organisation machine name
|
|
27587
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27588
|
+
* @param {*} [options] Override http request option.
|
|
27589
|
+
* @throws {RequiredError}
|
|
27590
|
+
*/
|
|
27591
|
+
aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<V2KvLedgerStatus> {
|
|
27592
|
+
return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
|
|
27593
|
+
},
|
|
27594
|
+
/**
|
|
27595
|
+
* 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.
|
|
27596
|
+
* @summary Get one AI audit record
|
|
27597
|
+
* @param {string} organisation The organisation machine name
|
|
27598
|
+
* @param {string} key
|
|
27599
|
+
* @param {*} [options] Override http request option.
|
|
27600
|
+
* @throws {RequiredError}
|
|
27601
|
+
*/
|
|
27602
|
+
aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig): AxiosPromise<AiAuditRecordGet200Response> {
|
|
27603
|
+
return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
|
|
27604
|
+
},
|
|
27605
|
+
/**
|
|
27606
|
+
* 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.
|
|
27607
|
+
* @summary List AI audit records
|
|
27608
|
+
* @param {string} organisation The organisation machine name
|
|
27609
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
27610
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
27611
|
+
* @param {string} [since] Record time from (inclusive).
|
|
27612
|
+
* @param {string} [until] Record time to (exclusive).
|
|
27613
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
27614
|
+
* @param {string} [tokenId]
|
|
27615
|
+
* @param {string} [modelId]
|
|
27616
|
+
* @param {string} [recordType]
|
|
27617
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
27618
|
+
* @param {string} [tool]
|
|
27619
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
27620
|
+
* @param {string} [_interface]
|
|
27621
|
+
* @param {number} [limit]
|
|
27622
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
27623
|
+
* @param {*} [options] Override http request option.
|
|
27624
|
+
* @throws {RequiredError}
|
|
27625
|
+
*/
|
|
27626
|
+
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> {
|
|
27627
|
+
return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
|
|
27628
|
+
},
|
|
27629
|
+
};
|
|
27630
|
+
};
|
|
27631
|
+
|
|
27632
|
+
/**
|
|
27633
|
+
* AIAuditApi - object-oriented interface
|
|
27634
|
+
* @export
|
|
27635
|
+
* @class AIAuditApi
|
|
27636
|
+
* @extends {BaseAPI}
|
|
27637
|
+
*/
|
|
27638
|
+
export class AIAuditApi extends BaseAPI {
|
|
27639
|
+
/**
|
|
27640
|
+
* 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.
|
|
27641
|
+
* @summary Export AI audit records as JSON Lines
|
|
27642
|
+
* @param {string} organisation The organisation machine name
|
|
27643
|
+
* @param {string} startDate
|
|
27644
|
+
* @param {string} endDate
|
|
27645
|
+
* @param {string} [userId]
|
|
27646
|
+
* @param {string} [modelId]
|
|
27647
|
+
* @param {string} [recordType]
|
|
27648
|
+
* @param {string} [decision]
|
|
27649
|
+
* @param {string} [tool]
|
|
27650
|
+
* @param {string} [outcome]
|
|
27651
|
+
* @param {*} [options] Override http request option.
|
|
27652
|
+
* @throws {RequiredError}
|
|
27653
|
+
* @memberof AIAuditApi
|
|
27654
|
+
*/
|
|
27655
|
+
public aiAuditExport(organisation: string, startDate: string, endDate: string, userId?: string, modelId?: string, recordType?: string, decision?: string, tool?: string, outcome?: string, options?: RawAxiosRequestConfig) {
|
|
27656
|
+
return AIAuditApiFp(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
|
|
27657
|
+
}
|
|
27658
|
+
|
|
27659
|
+
/**
|
|
27660
|
+
* 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.
|
|
27661
|
+
* @summary List AI governance ledger entries
|
|
27662
|
+
* @param {string} organisation The organisation machine name
|
|
27663
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
27664
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
27665
|
+
* @param {number} [limit]
|
|
27666
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27667
|
+
* @param {*} [options] Override http request option.
|
|
27668
|
+
* @throws {RequiredError}
|
|
27669
|
+
* @memberof AIAuditApi
|
|
27670
|
+
*/
|
|
27671
|
+
public aiAuditLedgerEntries(organisation: string, since?: string, until?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig) {
|
|
27672
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
27673
|
+
}
|
|
27674
|
+
|
|
27675
|
+
/**
|
|
27676
|
+
* 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.
|
|
27677
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
27678
|
+
* @param {string} organisation The organisation machine name
|
|
27679
|
+
* @param {string} key
|
|
27680
|
+
* @param {*} [options] Override http request option.
|
|
27681
|
+
* @throws {RequiredError}
|
|
27682
|
+
* @memberof AIAuditApi
|
|
27683
|
+
*/
|
|
27684
|
+
public aiAuditLedgerProof(organisation: string, key: string, options?: RawAxiosRequestConfig) {
|
|
27685
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
27686
|
+
}
|
|
27687
|
+
|
|
27688
|
+
/**
|
|
27689
|
+
* 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.
|
|
27690
|
+
* @summary Get the governance ledger public key
|
|
27691
|
+
* @param {string} organisation The organisation machine name
|
|
27692
|
+
* @param {*} [options] Override http request option.
|
|
27693
|
+
* @throws {RequiredError}
|
|
27694
|
+
* @memberof AIAuditApi
|
|
27695
|
+
*/
|
|
27696
|
+
public aiAuditLedgerPublicKey(organisation: string, options?: RawAxiosRequestConfig) {
|
|
27697
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
27698
|
+
}
|
|
27699
|
+
|
|
27700
|
+
/**
|
|
27701
|
+
* 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.
|
|
27702
|
+
* @summary Get the AI governance ledger status
|
|
27703
|
+
* @param {string} organisation The organisation machine name
|
|
27704
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
27705
|
+
* @param {*} [options] Override http request option.
|
|
27706
|
+
* @throws {RequiredError}
|
|
27707
|
+
* @memberof AIAuditApi
|
|
27708
|
+
*/
|
|
27709
|
+
public aiAuditLedgerStatus(organisation: string, cursor?: string, options?: RawAxiosRequestConfig) {
|
|
27710
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
27711
|
+
}
|
|
27712
|
+
|
|
27713
|
+
/**
|
|
27714
|
+
* 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.
|
|
27715
|
+
* @summary Get one AI audit record
|
|
27716
|
+
* @param {string} organisation The organisation machine name
|
|
27717
|
+
* @param {string} key
|
|
27718
|
+
* @param {*} [options] Override http request option.
|
|
27719
|
+
* @throws {RequiredError}
|
|
27720
|
+
* @memberof AIAuditApi
|
|
27721
|
+
*/
|
|
27722
|
+
public aiAuditRecordGet(organisation: string, key: string, options?: RawAxiosRequestConfig) {
|
|
27723
|
+
return AIAuditApiFp(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
27724
|
+
}
|
|
27725
|
+
|
|
27726
|
+
/**
|
|
27727
|
+
* 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.
|
|
27728
|
+
* @summary List AI audit records
|
|
27729
|
+
* @param {string} organisation The organisation machine name
|
|
27730
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
27731
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
27732
|
+
* @param {string} [since] Record time from (inclusive).
|
|
27733
|
+
* @param {string} [until] Record time to (exclusive).
|
|
27734
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
27735
|
+
* @param {string} [tokenId]
|
|
27736
|
+
* @param {string} [modelId]
|
|
27737
|
+
* @param {string} [recordType]
|
|
27738
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
27739
|
+
* @param {string} [tool]
|
|
27740
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
27741
|
+
* @param {string} [_interface]
|
|
27742
|
+
* @param {number} [limit]
|
|
27743
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
27744
|
+
* @param {*} [options] Override http request option.
|
|
27745
|
+
* @throws {RequiredError}
|
|
27746
|
+
* @memberof AIAuditApi
|
|
27747
|
+
*/
|
|
27748
|
+
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) {
|
|
27749
|
+
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));
|
|
27750
|
+
}
|
|
27751
|
+
}
|
|
27752
|
+
|
|
27753
|
+
|
|
27754
|
+
|
|
26113
27755
|
/**
|
|
26114
27756
|
* AICustomToolsApi - axios parameter creator
|
|
26115
27757
|
* @export
|
|
@@ -29800,7 +31442,7 @@ export const AISearchApiAxiosParamCreator = function (configuration?: Configurat
|
|
|
29800
31442
|
};
|
|
29801
31443
|
},
|
|
29802
31444
|
/**
|
|
29803
|
-
*
|
|
31445
|
+
* 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
31446
|
* @summary Get the most popular AI Search queries
|
|
29805
31447
|
* @param {string} organisation
|
|
29806
31448
|
* @param {string} project
|
|
@@ -30201,7 +31843,7 @@ export const AISearchApiFp = function(configuration?: Configuration) {
|
|
|
30201
31843
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
30202
31844
|
},
|
|
30203
31845
|
/**
|
|
30204
|
-
*
|
|
31846
|
+
* 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
31847
|
* @summary Get the most popular AI Search queries
|
|
30206
31848
|
* @param {string} organisation
|
|
30207
31849
|
* @param {string} project
|
|
@@ -30429,7 +32071,7 @@ export const AISearchApiFactory = function (configuration?: Configuration, baseP
|
|
|
30429
32071
|
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
30430
32072
|
},
|
|
30431
32073
|
/**
|
|
30432
|
-
*
|
|
32074
|
+
* 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
32075
|
* @summary Get the most popular AI Search queries
|
|
30434
32076
|
* @param {string} organisation
|
|
30435
32077
|
* @param {string} project
|
|
@@ -30671,7 +32313,7 @@ export class AISearchApi extends BaseAPI {
|
|
|
30671
32313
|
}
|
|
30672
32314
|
|
|
30673
32315
|
/**
|
|
30674
|
-
*
|
|
32316
|
+
* 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
32317
|
* @summary Get the most popular AI Search queries
|
|
30676
32318
|
* @param {string} organisation
|
|
30677
32319
|
* @param {string} project
|
|
@@ -32250,6 +33892,52 @@ export class AISkillsApi extends BaseAPI {
|
|
|
32250
33892
|
*/
|
|
32251
33893
|
export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
32252
33894
|
return {
|
|
33895
|
+
/**
|
|
33896
|
+
*
|
|
33897
|
+
* @summary Cancel an unanswered Slack interaction
|
|
33898
|
+
* @param {string} organisation
|
|
33899
|
+
* @param {string} botId
|
|
33900
|
+
* @param {string} interactionId
|
|
33901
|
+
* @param {*} [options] Override http request option.
|
|
33902
|
+
* @throws {RequiredError}
|
|
33903
|
+
*/
|
|
33904
|
+
cancelSlackInteraction: async (organisation: string, botId: string, interactionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33905
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
33906
|
+
assertParamExists('cancelSlackInteraction', 'organisation', organisation)
|
|
33907
|
+
// verify required parameter 'botId' is not null or undefined
|
|
33908
|
+
assertParamExists('cancelSlackInteraction', 'botId', botId)
|
|
33909
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
33910
|
+
assertParamExists('cancelSlackInteraction', 'interactionId', interactionId)
|
|
33911
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
|
|
33912
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
33913
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
33914
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
33915
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
33916
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
33917
|
+
let baseOptions;
|
|
33918
|
+
if (configuration) {
|
|
33919
|
+
baseOptions = configuration.baseOptions;
|
|
33920
|
+
}
|
|
33921
|
+
|
|
33922
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
33923
|
+
const localVarHeaderParameter = {} as any;
|
|
33924
|
+
const localVarQueryParameter = {} as any;
|
|
33925
|
+
|
|
33926
|
+
// authentication BearerAuth required
|
|
33927
|
+
// http bearer authentication required
|
|
33928
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
33929
|
+
|
|
33930
|
+
|
|
33931
|
+
|
|
33932
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
33933
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
33934
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
33935
|
+
|
|
33936
|
+
return {
|
|
33937
|
+
url: toPathString(localVarUrlObj),
|
|
33938
|
+
options: localVarRequestOptions,
|
|
33939
|
+
};
|
|
33940
|
+
},
|
|
32253
33941
|
/**
|
|
32254
33942
|
* 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
33943
|
* @summary Create Slack Bot
|
|
@@ -32294,6 +33982,60 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
32294
33982
|
options: localVarRequestOptions,
|
|
32295
33983
|
};
|
|
32296
33984
|
},
|
|
33985
|
+
/**
|
|
33986
|
+
* 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.
|
|
33987
|
+
* @summary Ask for a single Slack button response
|
|
33988
|
+
* @param {string} organisation
|
|
33989
|
+
* @param {string} botId
|
|
33990
|
+
* @param {string} idempotencyKey
|
|
33991
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
33992
|
+
* @param {*} [options] Override http request option.
|
|
33993
|
+
* @throws {RequiredError}
|
|
33994
|
+
*/
|
|
33995
|
+
createSlackInteraction: async (organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
33996
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
33997
|
+
assertParamExists('createSlackInteraction', 'organisation', organisation)
|
|
33998
|
+
// verify required parameter 'botId' is not null or undefined
|
|
33999
|
+
assertParamExists('createSlackInteraction', 'botId', botId)
|
|
34000
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
34001
|
+
assertParamExists('createSlackInteraction', 'idempotencyKey', idempotencyKey)
|
|
34002
|
+
// verify required parameter 'createSlackInteractionRequest' is not null or undefined
|
|
34003
|
+
assertParamExists('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest)
|
|
34004
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
|
|
34005
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
34006
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
34007
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34008
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34009
|
+
let baseOptions;
|
|
34010
|
+
if (configuration) {
|
|
34011
|
+
baseOptions = configuration.baseOptions;
|
|
34012
|
+
}
|
|
34013
|
+
|
|
34014
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34015
|
+
const localVarHeaderParameter = {} as any;
|
|
34016
|
+
const localVarQueryParameter = {} as any;
|
|
34017
|
+
|
|
34018
|
+
// authentication BearerAuth required
|
|
34019
|
+
// http bearer authentication required
|
|
34020
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34021
|
+
|
|
34022
|
+
|
|
34023
|
+
|
|
34024
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34025
|
+
|
|
34026
|
+
if (idempotencyKey != null) {
|
|
34027
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
34028
|
+
}
|
|
34029
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34030
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34031
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34032
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSlackInteractionRequest, localVarRequestOptions, configuration)
|
|
34033
|
+
|
|
34034
|
+
return {
|
|
34035
|
+
url: toPathString(localVarUrlObj),
|
|
34036
|
+
options: localVarRequestOptions,
|
|
34037
|
+
};
|
|
34038
|
+
},
|
|
32297
34039
|
/**
|
|
32298
34040
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
32299
34041
|
* @summary Delete Slack Bot
|
|
@@ -32434,6 +34176,52 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
32434
34176
|
|
|
32435
34177
|
|
|
32436
34178
|
|
|
34179
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34180
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34181
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34182
|
+
|
|
34183
|
+
return {
|
|
34184
|
+
url: toPathString(localVarUrlObj),
|
|
34185
|
+
options: localVarRequestOptions,
|
|
34186
|
+
};
|
|
34187
|
+
},
|
|
34188
|
+
/**
|
|
34189
|
+
* 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.
|
|
34190
|
+
* @summary Read an external Slack interaction
|
|
34191
|
+
* @param {string} organisation
|
|
34192
|
+
* @param {string} botId
|
|
34193
|
+
* @param {string} interactionId
|
|
34194
|
+
* @param {*} [options] Override http request option.
|
|
34195
|
+
* @throws {RequiredError}
|
|
34196
|
+
*/
|
|
34197
|
+
getSlackInteraction: async (organisation: string, botId: string, interactionId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34198
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
34199
|
+
assertParamExists('getSlackInteraction', 'organisation', organisation)
|
|
34200
|
+
// verify required parameter 'botId' is not null or undefined
|
|
34201
|
+
assertParamExists('getSlackInteraction', 'botId', botId)
|
|
34202
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
34203
|
+
assertParamExists('getSlackInteraction', 'interactionId', interactionId)
|
|
34204
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
|
|
34205
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
34206
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
34207
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
34208
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34209
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34210
|
+
let baseOptions;
|
|
34211
|
+
if (configuration) {
|
|
34212
|
+
baseOptions = configuration.baseOptions;
|
|
34213
|
+
}
|
|
34214
|
+
|
|
34215
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
34216
|
+
const localVarHeaderParameter = {} as any;
|
|
34217
|
+
const localVarQueryParameter = {} as any;
|
|
34218
|
+
|
|
34219
|
+
// authentication BearerAuth required
|
|
34220
|
+
// http bearer authentication required
|
|
34221
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34222
|
+
|
|
34223
|
+
|
|
34224
|
+
|
|
32437
34225
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
32438
34226
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
32439
34227
|
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
@@ -32580,6 +34368,58 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
32580
34368
|
options: localVarRequestOptions,
|
|
32581
34369
|
};
|
|
32582
34370
|
},
|
|
34371
|
+
/**
|
|
34372
|
+
* 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.
|
|
34373
|
+
* @summary Post an image as the bot
|
|
34374
|
+
* @param {string} organisation The organisation machine name
|
|
34375
|
+
* @param {string} botId
|
|
34376
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
34377
|
+
* @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.
|
|
34378
|
+
* @param {*} [options] Override http request option.
|
|
34379
|
+
* @throws {RequiredError}
|
|
34380
|
+
*/
|
|
34381
|
+
postSlackBotFile: async (organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
34382
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
34383
|
+
assertParamExists('postSlackBotFile', 'organisation', organisation)
|
|
34384
|
+
// verify required parameter 'botId' is not null or undefined
|
|
34385
|
+
assertParamExists('postSlackBotFile', 'botId', botId)
|
|
34386
|
+
// verify required parameter 'postSlackBotFileRequest' is not null or undefined
|
|
34387
|
+
assertParamExists('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest)
|
|
34388
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
|
|
34389
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
34390
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
34391
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
34392
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
34393
|
+
let baseOptions;
|
|
34394
|
+
if (configuration) {
|
|
34395
|
+
baseOptions = configuration.baseOptions;
|
|
34396
|
+
}
|
|
34397
|
+
|
|
34398
|
+
const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
|
|
34399
|
+
const localVarHeaderParameter = {} as any;
|
|
34400
|
+
const localVarQueryParameter = {} as any;
|
|
34401
|
+
|
|
34402
|
+
// authentication BearerAuth required
|
|
34403
|
+
// http bearer authentication required
|
|
34404
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
34405
|
+
|
|
34406
|
+
|
|
34407
|
+
|
|
34408
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
34409
|
+
|
|
34410
|
+
if (idempotencyKey != null) {
|
|
34411
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
34412
|
+
}
|
|
34413
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
34414
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
34415
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
34416
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postSlackBotFileRequest, localVarRequestOptions, configuration)
|
|
34417
|
+
|
|
34418
|
+
return {
|
|
34419
|
+
url: toPathString(localVarUrlObj),
|
|
34420
|
+
options: localVarRequestOptions,
|
|
34421
|
+
};
|
|
34422
|
+
},
|
|
32583
34423
|
/**
|
|
32584
34424
|
* 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
34425
|
* @summary Post a message as the bot
|
|
@@ -32784,6 +34624,21 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration?: Configu
|
|
|
32784
34624
|
export const AISlackBotsApiFp = function(configuration?: Configuration) {
|
|
32785
34625
|
const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration)
|
|
32786
34626
|
return {
|
|
34627
|
+
/**
|
|
34628
|
+
*
|
|
34629
|
+
* @summary Cancel an unanswered Slack interaction
|
|
34630
|
+
* @param {string} organisation
|
|
34631
|
+
* @param {string} botId
|
|
34632
|
+
* @param {string} interactionId
|
|
34633
|
+
* @param {*} [options] Override http request option.
|
|
34634
|
+
* @throws {RequiredError}
|
|
34635
|
+
*/
|
|
34636
|
+
async cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
34637
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
|
|
34638
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34639
|
+
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.cancelSlackInteraction']?.[localVarOperationServerIndex]?.url;
|
|
34640
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34641
|
+
},
|
|
32787
34642
|
/**
|
|
32788
34643
|
* 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
34644
|
* @summary Create Slack Bot
|
|
@@ -32798,6 +34653,22 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
|
|
|
32798
34653
|
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.createSlackBot']?.[localVarOperationServerIndex]?.url;
|
|
32799
34654
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32800
34655
|
},
|
|
34656
|
+
/**
|
|
34657
|
+
* 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.
|
|
34658
|
+
* @summary Ask for a single Slack button response
|
|
34659
|
+
* @param {string} organisation
|
|
34660
|
+
* @param {string} botId
|
|
34661
|
+
* @param {string} idempotencyKey
|
|
34662
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
34663
|
+
* @param {*} [options] Override http request option.
|
|
34664
|
+
* @throws {RequiredError}
|
|
34665
|
+
*/
|
|
34666
|
+
async createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
34667
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
|
|
34668
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34669
|
+
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.createSlackInteraction']?.[localVarOperationServerIndex]?.url;
|
|
34670
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34671
|
+
},
|
|
32801
34672
|
/**
|
|
32802
34673
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
32803
34674
|
* @summary Delete Slack Bot
|
|
@@ -32845,6 +34716,21 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
|
|
|
32845
34716
|
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.getSlackBotThread']?.[localVarOperationServerIndex]?.url;
|
|
32846
34717
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32847
34718
|
},
|
|
34719
|
+
/**
|
|
34720
|
+
* 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.
|
|
34721
|
+
* @summary Read an external Slack interaction
|
|
34722
|
+
* @param {string} organisation
|
|
34723
|
+
* @param {string} botId
|
|
34724
|
+
* @param {string} interactionId
|
|
34725
|
+
* @param {*} [options] Override http request option.
|
|
34726
|
+
* @throws {RequiredError}
|
|
34727
|
+
*/
|
|
34728
|
+
async getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
34729
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
|
|
34730
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34731
|
+
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.getSlackInteraction']?.[localVarOperationServerIndex]?.url;
|
|
34732
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34733
|
+
},
|
|
32848
34734
|
/**
|
|
32849
34735
|
* 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
34736
|
* @summary Read recent channel messages
|
|
@@ -32889,6 +34775,22 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
|
|
|
32889
34775
|
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.listSlackBotsApiEnabled']?.[localVarOperationServerIndex]?.url;
|
|
32890
34776
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
32891
34777
|
},
|
|
34778
|
+
/**
|
|
34779
|
+
* 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.
|
|
34780
|
+
* @summary Post an image as the bot
|
|
34781
|
+
* @param {string} organisation The organisation machine name
|
|
34782
|
+
* @param {string} botId
|
|
34783
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
34784
|
+
* @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.
|
|
34785
|
+
* @param {*} [options] Override http request option.
|
|
34786
|
+
* @throws {RequiredError}
|
|
34787
|
+
*/
|
|
34788
|
+
async postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<PostSlackBotFile201Response>> {
|
|
34789
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
|
|
34790
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
34791
|
+
const localVarOperationServerBasePath = operationServerMap['AISlackBotsApi.postSlackBotFile']?.[localVarOperationServerIndex]?.url;
|
|
34792
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
34793
|
+
},
|
|
32892
34794
|
/**
|
|
32893
34795
|
* 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
34796
|
* @summary Post a message as the bot
|
|
@@ -32960,6 +34862,18 @@ export const AISlackBotsApiFp = function(configuration?: Configuration) {
|
|
|
32960
34862
|
export const AISlackBotsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
32961
34863
|
const localVarFp = AISlackBotsApiFp(configuration)
|
|
32962
34864
|
return {
|
|
34865
|
+
/**
|
|
34866
|
+
*
|
|
34867
|
+
* @summary Cancel an unanswered Slack interaction
|
|
34868
|
+
* @param {string} organisation
|
|
34869
|
+
* @param {string} botId
|
|
34870
|
+
* @param {string} interactionId
|
|
34871
|
+
* @param {*} [options] Override http request option.
|
|
34872
|
+
* @throws {RequiredError}
|
|
34873
|
+
*/
|
|
34874
|
+
cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
34875
|
+
return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
34876
|
+
},
|
|
32963
34877
|
/**
|
|
32964
34878
|
* 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
34879
|
* @summary Create Slack Bot
|
|
@@ -32971,6 +34885,19 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
|
|
|
32971
34885
|
createSlackBot(organisation: string, createSlackBotRequest: CreateSlackBotRequest, options?: RawAxiosRequestConfig): AxiosPromise<CreateSlackBot201Response> {
|
|
32972
34886
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
32973
34887
|
},
|
|
34888
|
+
/**
|
|
34889
|
+
* 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.
|
|
34890
|
+
* @summary Ask for a single Slack button response
|
|
34891
|
+
* @param {string} organisation
|
|
34892
|
+
* @param {string} botId
|
|
34893
|
+
* @param {string} idempotencyKey
|
|
34894
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
34895
|
+
* @param {*} [options] Override http request option.
|
|
34896
|
+
* @throws {RequiredError}
|
|
34897
|
+
*/
|
|
34898
|
+
createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
34899
|
+
return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
|
|
34900
|
+
},
|
|
32974
34901
|
/**
|
|
32975
34902
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
32976
34903
|
* @summary Delete Slack Bot
|
|
@@ -33009,6 +34936,18 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
|
|
|
33009
34936
|
getSlackBotThread(organisation: string, botId: string, channel: string, threadTs: string, since?: string, limit?: number, cursor?: string, options?: RawAxiosRequestConfig): AxiosPromise<GetSlackBotThread200Response> {
|
|
33010
34937
|
return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
|
|
33011
34938
|
},
|
|
34939
|
+
/**
|
|
34940
|
+
* 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.
|
|
34941
|
+
* @summary Read an external Slack interaction
|
|
34942
|
+
* @param {string} organisation
|
|
34943
|
+
* @param {string} botId
|
|
34944
|
+
* @param {string} interactionId
|
|
34945
|
+
* @param {*} [options] Override http request option.
|
|
34946
|
+
* @throws {RequiredError}
|
|
34947
|
+
*/
|
|
34948
|
+
getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig): AxiosPromise<void> {
|
|
34949
|
+
return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
34950
|
+
},
|
|
33012
34951
|
/**
|
|
33013
34952
|
* 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
34953
|
* @summary Read recent channel messages
|
|
@@ -33044,6 +34983,19 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
|
|
|
33044
34983
|
listSlackBotsApiEnabled(organisation: string, options?: RawAxiosRequestConfig): AxiosPromise<ListSlackBotsApiEnabled200Response> {
|
|
33045
34984
|
return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
|
|
33046
34985
|
},
|
|
34986
|
+
/**
|
|
34987
|
+
* 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.
|
|
34988
|
+
* @summary Post an image as the bot
|
|
34989
|
+
* @param {string} organisation The organisation machine name
|
|
34990
|
+
* @param {string} botId
|
|
34991
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
34992
|
+
* @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.
|
|
34993
|
+
* @param {*} [options] Override http request option.
|
|
34994
|
+
* @throws {RequiredError}
|
|
34995
|
+
*/
|
|
34996
|
+
postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig): AxiosPromise<PostSlackBotFile201Response> {
|
|
34997
|
+
return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
34998
|
+
},
|
|
33047
34999
|
/**
|
|
33048
35000
|
* 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
35001
|
* @summary Post a message as the bot
|
|
@@ -33103,6 +35055,20 @@ export const AISlackBotsApiFactory = function (configuration?: Configuration, ba
|
|
|
33103
35055
|
* @extends {BaseAPI}
|
|
33104
35056
|
*/
|
|
33105
35057
|
export class AISlackBotsApi extends BaseAPI {
|
|
35058
|
+
/**
|
|
35059
|
+
*
|
|
35060
|
+
* @summary Cancel an unanswered Slack interaction
|
|
35061
|
+
* @param {string} organisation
|
|
35062
|
+
* @param {string} botId
|
|
35063
|
+
* @param {string} interactionId
|
|
35064
|
+
* @param {*} [options] Override http request option.
|
|
35065
|
+
* @throws {RequiredError}
|
|
35066
|
+
* @memberof AISlackBotsApi
|
|
35067
|
+
*/
|
|
35068
|
+
public cancelSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig) {
|
|
35069
|
+
return AISlackBotsApiFp(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
35070
|
+
}
|
|
35071
|
+
|
|
33106
35072
|
/**
|
|
33107
35073
|
* 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
35074
|
* @summary Create Slack Bot
|
|
@@ -33116,6 +35082,21 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
33116
35082
|
return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
33117
35083
|
}
|
|
33118
35084
|
|
|
35085
|
+
/**
|
|
35086
|
+
* 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.
|
|
35087
|
+
* @summary Ask for a single Slack button response
|
|
35088
|
+
* @param {string} organisation
|
|
35089
|
+
* @param {string} botId
|
|
35090
|
+
* @param {string} idempotencyKey
|
|
35091
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
35092
|
+
* @param {*} [options] Override http request option.
|
|
35093
|
+
* @throws {RequiredError}
|
|
35094
|
+
* @memberof AISlackBotsApi
|
|
35095
|
+
*/
|
|
35096
|
+
public createSlackInteraction(organisation: string, botId: string, idempotencyKey: string, createSlackInteractionRequest: CreateSlackInteractionRequest, options?: RawAxiosRequestConfig) {
|
|
35097
|
+
return AISlackBotsApiFp(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
35098
|
+
}
|
|
35099
|
+
|
|
33119
35100
|
/**
|
|
33120
35101
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
33121
35102
|
* @summary Delete Slack Bot
|
|
@@ -33160,6 +35141,20 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
33160
35141
|
return AISlackBotsApiFp(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
33161
35142
|
}
|
|
33162
35143
|
|
|
35144
|
+
/**
|
|
35145
|
+
* 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.
|
|
35146
|
+
* @summary Read an external Slack interaction
|
|
35147
|
+
* @param {string} organisation
|
|
35148
|
+
* @param {string} botId
|
|
35149
|
+
* @param {string} interactionId
|
|
35150
|
+
* @param {*} [options] Override http request option.
|
|
35151
|
+
* @throws {RequiredError}
|
|
35152
|
+
* @memberof AISlackBotsApi
|
|
35153
|
+
*/
|
|
35154
|
+
public getSlackInteraction(organisation: string, botId: string, interactionId: string, options?: RawAxiosRequestConfig) {
|
|
35155
|
+
return AISlackBotsApiFp(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
35156
|
+
}
|
|
35157
|
+
|
|
33163
35158
|
/**
|
|
33164
35159
|
* 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
35160
|
* @summary Read recent channel messages
|
|
@@ -33201,6 +35196,21 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
33201
35196
|
return AISlackBotsApiFp(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
33202
35197
|
}
|
|
33203
35198
|
|
|
35199
|
+
/**
|
|
35200
|
+
* 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.
|
|
35201
|
+
* @summary Post an image as the bot
|
|
35202
|
+
* @param {string} organisation The organisation machine name
|
|
35203
|
+
* @param {string} botId
|
|
35204
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
35205
|
+
* @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.
|
|
35206
|
+
* @param {*} [options] Override http request option.
|
|
35207
|
+
* @throws {RequiredError}
|
|
35208
|
+
* @memberof AISlackBotsApi
|
|
35209
|
+
*/
|
|
35210
|
+
public postSlackBotFile(organisation: string, botId: string, postSlackBotFileRequest: PostSlackBotFileRequest, idempotencyKey?: string, options?: RawAxiosRequestConfig) {
|
|
35211
|
+
return AISlackBotsApiFp(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
35212
|
+
}
|
|
35213
|
+
|
|
33204
35214
|
/**
|
|
33205
35215
|
* 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
35216
|
* @summary Post a message as the bot
|
|
@@ -39622,7 +41632,7 @@ export const CronApiFp = function(configuration?: Configuration) {
|
|
|
39622
41632
|
* @param {*} [options] Override http request option.
|
|
39623
41633
|
* @throws {RequiredError}
|
|
39624
41634
|
*/
|
|
39625
|
-
async listCronJobs(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Cron
|
|
41635
|
+
async listCronJobs(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<Cron>>> {
|
|
39626
41636
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listCronJobs(organisation, application, environment, options);
|
|
39627
41637
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
39628
41638
|
const localVarOperationServerBasePath = operationServerMap['CronApi.listCronJobs']?.[localVarOperationServerIndex]?.url;
|
|
@@ -39730,7 +41740,7 @@ export const CronApiFactory = function (configuration?: Configuration, basePath?
|
|
|
39730
41740
|
* @param {*} [options] Override http request option.
|
|
39731
41741
|
* @throws {RequiredError}
|
|
39732
41742
|
*/
|
|
39733
|
-
listCronJobs(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<Cron
|
|
41743
|
+
listCronJobs(organisation: string, application: string, environment: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<Cron>> {
|
|
39734
41744
|
return localVarFp.listCronJobs(organisation, application, environment, options).then((request) => request(axios, basePath));
|
|
39735
41745
|
},
|
|
39736
41746
|
/**
|
|
@@ -42873,7 +44883,7 @@ export const KVApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
|
42873
44883
|
};
|
|
42874
44884
|
},
|
|
42875
44885
|
/**
|
|
42876
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
44886
|
+
* 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
44887
|
* @summary Set a key, optionally only if absent or only at a version
|
|
42878
44888
|
* @param {string} organization Organization identifier
|
|
42879
44889
|
* @param {string} project Project identifier
|
|
@@ -45632,7 +47642,7 @@ export const KVApiFp = function(configuration?: Configuration) {
|
|
|
45632
47642
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
45633
47643
|
},
|
|
45634
47644
|
/**
|
|
45635
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
47645
|
+
* 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
47646
|
* @summary Set a key, optionally only if absent or only at a version
|
|
45637
47647
|
* @param {string} organization Organization identifier
|
|
45638
47648
|
* @param {string} project Project identifier
|
|
@@ -46556,7 +48566,7 @@ export const KVApiFactory = function (configuration?: Configuration, basePath?:
|
|
|
46556
48566
|
return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
|
|
46557
48567
|
},
|
|
46558
48568
|
/**
|
|
46559
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
48569
|
+
* 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
48570
|
* @summary Set a key, optionally only if absent or only at a version
|
|
46561
48571
|
* @param {string} organization Organization identifier
|
|
46562
48572
|
* @param {string} project Project identifier
|
|
@@ -47354,7 +49364,7 @@ export class KVApi extends BaseAPI {
|
|
|
47354
49364
|
}
|
|
47355
49365
|
|
|
47356
49366
|
/**
|
|
47357
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
49367
|
+
* 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
49368
|
* @summary Set a key, optionally only if absent or only at a version
|
|
47359
49369
|
* @param {string} organization Organization identifier
|
|
47360
49370
|
* @param {string} project Project identifier
|
|
@@ -48633,7 +50643,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
48633
50643
|
export const ProjectsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
48634
50644
|
return {
|
|
48635
50645
|
/**
|
|
48636
|
-
* Retrieves CDN access log entries for a
|
|
50646
|
+
* 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
50647
|
* @summary Get CDN access logs for a project
|
|
48638
50648
|
* @param {string} organization The organization machine name
|
|
48639
50649
|
* @param {string} project The project machine name
|
|
@@ -48936,7 +50946,7 @@ export const ProjectsApiFp = function(configuration?: Configuration) {
|
|
|
48936
50946
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration)
|
|
48937
50947
|
return {
|
|
48938
50948
|
/**
|
|
48939
|
-
* Retrieves CDN access log entries for a
|
|
50949
|
+
* 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
50950
|
* @summary Get CDN access logs for a project
|
|
48941
50951
|
* @param {string} organization The organization machine name
|
|
48942
50952
|
* @param {string} project The project machine name
|
|
@@ -49037,7 +51047,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
49037
51047
|
const localVarFp = ProjectsApiFp(configuration)
|
|
49038
51048
|
return {
|
|
49039
51049
|
/**
|
|
49040
|
-
* Retrieves CDN access log entries for a
|
|
51050
|
+
* 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
51051
|
* @summary Get CDN access logs for a project
|
|
49042
51052
|
* @param {string} organization The organization machine name
|
|
49043
51053
|
* @param {string} project The project machine name
|
|
@@ -49120,7 +51130,7 @@ export const ProjectsApiFactory = function (configuration?: Configuration, baseP
|
|
|
49120
51130
|
*/
|
|
49121
51131
|
export class ProjectsApi extends BaseAPI {
|
|
49122
51132
|
/**
|
|
49123
|
-
* Retrieves CDN access log entries for a
|
|
51133
|
+
* 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
51134
|
* @summary Get CDN access logs for a project
|
|
49125
51135
|
* @param {string} organization The organization machine name
|
|
49126
51136
|
* @param {string} project The project machine name
|
|
@@ -52266,6 +54276,48 @@ export const RulesApiAxiosParamCreator = function (configuration?: Configuration
|
|
|
52266
54276
|
options: localVarRequestOptions,
|
|
52267
54277
|
};
|
|
52268
54278
|
},
|
|
54279
|
+
/**
|
|
54280
|
+
* 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.
|
|
54281
|
+
* @summary List all rules in edge order
|
|
54282
|
+
* @param {string} organization
|
|
54283
|
+
* @param {string} project
|
|
54284
|
+
* @param {*} [options] Override http request option.
|
|
54285
|
+
* @throws {RequiredError}
|
|
54286
|
+
*/
|
|
54287
|
+
rulesIndexList: async (organization: string, project: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
54288
|
+
// verify required parameter 'organization' is not null or undefined
|
|
54289
|
+
assertParamExists('rulesIndexList', 'organization', organization)
|
|
54290
|
+
// verify required parameter 'project' is not null or undefined
|
|
54291
|
+
assertParamExists('rulesIndexList', 'project', project)
|
|
54292
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
|
|
54293
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
54294
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
54295
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
54296
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
54297
|
+
let baseOptions;
|
|
54298
|
+
if (configuration) {
|
|
54299
|
+
baseOptions = configuration.baseOptions;
|
|
54300
|
+
}
|
|
54301
|
+
|
|
54302
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
54303
|
+
const localVarHeaderParameter = {} as any;
|
|
54304
|
+
const localVarQueryParameter = {} as any;
|
|
54305
|
+
|
|
54306
|
+
// authentication BearerAuth required
|
|
54307
|
+
// http bearer authentication required
|
|
54308
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
54309
|
+
|
|
54310
|
+
|
|
54311
|
+
|
|
54312
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
54313
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
54314
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
54315
|
+
|
|
54316
|
+
return {
|
|
54317
|
+
url: toPathString(localVarUrlObj),
|
|
54318
|
+
options: localVarRequestOptions,
|
|
54319
|
+
};
|
|
54320
|
+
},
|
|
52269
54321
|
/**
|
|
52270
54322
|
*
|
|
52271
54323
|
* @summary Create a proxy rule
|
|
@@ -53578,6 +55630,20 @@ export const RulesApiFp = function(configuration?: Configuration) {
|
|
|
53578
55630
|
const localVarOperationServerBasePath = operationServerMap['RulesApi.rulesHeadersUpdate']?.[localVarOperationServerIndex]?.url;
|
|
53579
55631
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
53580
55632
|
},
|
|
55633
|
+
/**
|
|
55634
|
+
* 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.
|
|
55635
|
+
* @summary List all rules in edge order
|
|
55636
|
+
* @param {string} organization
|
|
55637
|
+
* @param {string} project
|
|
55638
|
+
* @param {*} [options] Override http request option.
|
|
55639
|
+
* @throws {RequiredError}
|
|
55640
|
+
*/
|
|
55641
|
+
async rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<RulesIndexList200ResponseInner>>> {
|
|
55642
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.rulesIndexList(organization, project, options);
|
|
55643
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
55644
|
+
const localVarOperationServerBasePath = operationServerMap['RulesApi.rulesIndexList']?.[localVarOperationServerIndex]?.url;
|
|
55645
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
55646
|
+
},
|
|
53581
55647
|
/**
|
|
53582
55648
|
*
|
|
53583
55649
|
* @summary Create a proxy rule
|
|
@@ -54293,6 +56359,17 @@ export const RulesApiFactory = function (configuration?: Configuration, basePath
|
|
|
54293
56359
|
rulesHeadersUpdate(organization: string, project: string, rule: string, v2RuleHeaderRequest: V2RuleHeaderRequest, options?: RawAxiosRequestConfig): AxiosPromise<V2RuleHeader> {
|
|
54294
56360
|
return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
|
|
54295
56361
|
},
|
|
56362
|
+
/**
|
|
56363
|
+
* 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.
|
|
56364
|
+
* @summary List all rules in edge order
|
|
56365
|
+
* @param {string} organization
|
|
56366
|
+
* @param {string} project
|
|
56367
|
+
* @param {*} [options] Override http request option.
|
|
56368
|
+
* @throws {RequiredError}
|
|
56369
|
+
*/
|
|
56370
|
+
rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<RulesIndexList200ResponseInner>> {
|
|
56371
|
+
return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
|
|
56372
|
+
},
|
|
54296
56373
|
/**
|
|
54297
56374
|
*
|
|
54298
56375
|
* @summary Create a proxy rule
|
|
@@ -55043,6 +57120,19 @@ export class RulesApi extends BaseAPI {
|
|
|
55043
57120
|
return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
55044
57121
|
}
|
|
55045
57122
|
|
|
57123
|
+
/**
|
|
57124
|
+
* 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.
|
|
57125
|
+
* @summary List all rules in edge order
|
|
57126
|
+
* @param {string} organization
|
|
57127
|
+
* @param {string} project
|
|
57128
|
+
* @param {*} [options] Override http request option.
|
|
57129
|
+
* @throws {RequiredError}
|
|
57130
|
+
* @memberof RulesApi
|
|
57131
|
+
*/
|
|
57132
|
+
public rulesIndexList(organization: string, project: string, options?: RawAxiosRequestConfig) {
|
|
57133
|
+
return RulesApiFp(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
|
|
57134
|
+
}
|
|
57135
|
+
|
|
55046
57136
|
/**
|
|
55047
57137
|
*
|
|
55048
57138
|
* @summary Create a proxy rule
|
|
@@ -55749,6 +57839,329 @@ export const ListScalingPoliciesMetricEnum = {
|
|
|
55749
57839
|
export type ListScalingPoliciesMetricEnum = typeof ListScalingPoliciesMetricEnum[keyof typeof ListScalingPoliciesMetricEnum];
|
|
55750
57840
|
|
|
55751
57841
|
|
|
57842
|
+
/**
|
|
57843
|
+
* SecretsApi - axios parameter creator
|
|
57844
|
+
* @export
|
|
57845
|
+
*/
|
|
57846
|
+
export const SecretsApiAxiosParamCreator = function (configuration?: Configuration) {
|
|
57847
|
+
return {
|
|
57848
|
+
/**
|
|
57849
|
+
* 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.
|
|
57850
|
+
* @summary Delete a secret
|
|
57851
|
+
* @param {string} apiOrganisation The organisation ID
|
|
57852
|
+
* @param {string} apiApplication The application ID
|
|
57853
|
+
* @param {string} apiEnvironment The environment ID
|
|
57854
|
+
* @param {string} apiSecret The secret key
|
|
57855
|
+
* @param {*} [options] Override http request option.
|
|
57856
|
+
* @throws {RequiredError}
|
|
57857
|
+
*/
|
|
57858
|
+
deleteEnvironmentSecret: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57859
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
57860
|
+
assertParamExists('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation)
|
|
57861
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
57862
|
+
assertParamExists('deleteEnvironmentSecret', 'apiApplication', apiApplication)
|
|
57863
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
57864
|
+
assertParamExists('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment)
|
|
57865
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
57866
|
+
assertParamExists('deleteEnvironmentSecret', 'apiSecret', apiSecret)
|
|
57867
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
57868
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
57869
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
57870
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
57871
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
57872
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57873
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57874
|
+
let baseOptions;
|
|
57875
|
+
if (configuration) {
|
|
57876
|
+
baseOptions = configuration.baseOptions;
|
|
57877
|
+
}
|
|
57878
|
+
|
|
57879
|
+
const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
|
|
57880
|
+
const localVarHeaderParameter = {} as any;
|
|
57881
|
+
const localVarQueryParameter = {} as any;
|
|
57882
|
+
|
|
57883
|
+
// authentication BearerAuth required
|
|
57884
|
+
// http bearer authentication required
|
|
57885
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57886
|
+
|
|
57887
|
+
|
|
57888
|
+
|
|
57889
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57890
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57891
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57892
|
+
|
|
57893
|
+
return {
|
|
57894
|
+
url: toPathString(localVarUrlObj),
|
|
57895
|
+
options: localVarRequestOptions,
|
|
57896
|
+
};
|
|
57897
|
+
},
|
|
57898
|
+
/**
|
|
57899
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
57900
|
+
* @summary List the secret names for an environment
|
|
57901
|
+
* @param {string} apiOrganisation The organisation ID
|
|
57902
|
+
* @param {string} apiApplication The application ID
|
|
57903
|
+
* @param {string} apiEnvironment The environment ID
|
|
57904
|
+
* @param {*} [options] Override http request option.
|
|
57905
|
+
* @throws {RequiredError}
|
|
57906
|
+
*/
|
|
57907
|
+
listEnvironmentSecrets: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57908
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
57909
|
+
assertParamExists('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation)
|
|
57910
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
57911
|
+
assertParamExists('listEnvironmentSecrets', 'apiApplication', apiApplication)
|
|
57912
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
57913
|
+
assertParamExists('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment)
|
|
57914
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
|
|
57915
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
57916
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
57917
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
57918
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57919
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57920
|
+
let baseOptions;
|
|
57921
|
+
if (configuration) {
|
|
57922
|
+
baseOptions = configuration.baseOptions;
|
|
57923
|
+
}
|
|
57924
|
+
|
|
57925
|
+
const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
|
|
57926
|
+
const localVarHeaderParameter = {} as any;
|
|
57927
|
+
const localVarQueryParameter = {} as any;
|
|
57928
|
+
|
|
57929
|
+
// authentication BearerAuth required
|
|
57930
|
+
// http bearer authentication required
|
|
57931
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57932
|
+
|
|
57933
|
+
|
|
57934
|
+
|
|
57935
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57936
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57937
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57938
|
+
|
|
57939
|
+
return {
|
|
57940
|
+
url: toPathString(localVarUrlObj),
|
|
57941
|
+
options: localVarRequestOptions,
|
|
57942
|
+
};
|
|
57943
|
+
},
|
|
57944
|
+
/**
|
|
57945
|
+
* 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.
|
|
57946
|
+
* @summary Create or replace a secret
|
|
57947
|
+
* @param {string} apiOrganisation The organisation ID
|
|
57948
|
+
* @param {string} apiApplication The application ID
|
|
57949
|
+
* @param {string} apiEnvironment The environment ID
|
|
57950
|
+
* @param {string} apiSecret The secret key
|
|
57951
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
57952
|
+
* @param {*} [options] Override http request option.
|
|
57953
|
+
* @throws {RequiredError}
|
|
57954
|
+
*/
|
|
57955
|
+
updateEnvironmentSecret: async (apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
|
|
57956
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
57957
|
+
assertParamExists('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation)
|
|
57958
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
57959
|
+
assertParamExists('updateEnvironmentSecret', 'apiApplication', apiApplication)
|
|
57960
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
57961
|
+
assertParamExists('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment)
|
|
57962
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
57963
|
+
assertParamExists('updateEnvironmentSecret', 'apiSecret', apiSecret)
|
|
57964
|
+
// verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
|
|
57965
|
+
assertParamExists('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest)
|
|
57966
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
57967
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
57968
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
57969
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
57970
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
57971
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
57972
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
57973
|
+
let baseOptions;
|
|
57974
|
+
if (configuration) {
|
|
57975
|
+
baseOptions = configuration.baseOptions;
|
|
57976
|
+
}
|
|
57977
|
+
|
|
57978
|
+
const localVarRequestOptions = { method: 'PUT', ...baseOptions, ...options};
|
|
57979
|
+
const localVarHeaderParameter = {} as any;
|
|
57980
|
+
const localVarQueryParameter = {} as any;
|
|
57981
|
+
|
|
57982
|
+
// authentication BearerAuth required
|
|
57983
|
+
// http bearer authentication required
|
|
57984
|
+
await setBearerAuthToObject(localVarHeaderParameter, configuration)
|
|
57985
|
+
|
|
57986
|
+
|
|
57987
|
+
|
|
57988
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
57989
|
+
|
|
57990
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
57991
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
57992
|
+
localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
|
|
57993
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEnvironmentSecretRequest, localVarRequestOptions, configuration)
|
|
57994
|
+
|
|
57995
|
+
return {
|
|
57996
|
+
url: toPathString(localVarUrlObj),
|
|
57997
|
+
options: localVarRequestOptions,
|
|
57998
|
+
};
|
|
57999
|
+
},
|
|
58000
|
+
}
|
|
58001
|
+
};
|
|
58002
|
+
|
|
58003
|
+
/**
|
|
58004
|
+
* SecretsApi - functional programming interface
|
|
58005
|
+
* @export
|
|
58006
|
+
*/
|
|
58007
|
+
export const SecretsApiFp = function(configuration?: Configuration) {
|
|
58008
|
+
const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration)
|
|
58009
|
+
return {
|
|
58010
|
+
/**
|
|
58011
|
+
* 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.
|
|
58012
|
+
* @summary Delete a secret
|
|
58013
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58014
|
+
* @param {string} apiApplication The application ID
|
|
58015
|
+
* @param {string} apiEnvironment The environment ID
|
|
58016
|
+
* @param {string} apiSecret The secret key
|
|
58017
|
+
* @param {*} [options] Override http request option.
|
|
58018
|
+
* @throws {RequiredError}
|
|
58019
|
+
*/
|
|
58020
|
+
async deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<DeleteEnvironmentSecret200Response>> {
|
|
58021
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
|
|
58022
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58023
|
+
const localVarOperationServerBasePath = operationServerMap['SecretsApi.deleteEnvironmentSecret']?.[localVarOperationServerIndex]?.url;
|
|
58024
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58025
|
+
},
|
|
58026
|
+
/**
|
|
58027
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
58028
|
+
* @summary List the secret names for an environment
|
|
58029
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58030
|
+
* @param {string} apiApplication The application ID
|
|
58031
|
+
* @param {string} apiEnvironment The environment ID
|
|
58032
|
+
* @param {*} [options] Override http request option.
|
|
58033
|
+
* @throws {RequiredError}
|
|
58034
|
+
*/
|
|
58035
|
+
async listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Array<SecretKey>>> {
|
|
58036
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
|
|
58037
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58038
|
+
const localVarOperationServerBasePath = operationServerMap['SecretsApi.listEnvironmentSecrets']?.[localVarOperationServerIndex]?.url;
|
|
58039
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58040
|
+
},
|
|
58041
|
+
/**
|
|
58042
|
+
* 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.
|
|
58043
|
+
* @summary Create or replace a secret
|
|
58044
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58045
|
+
* @param {string} apiApplication The application ID
|
|
58046
|
+
* @param {string} apiEnvironment The environment ID
|
|
58047
|
+
* @param {string} apiSecret The secret key
|
|
58048
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
58049
|
+
* @param {*} [options] Override http request option.
|
|
58050
|
+
* @throws {RequiredError}
|
|
58051
|
+
*/
|
|
58052
|
+
async updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<SecretWriteResult>> {
|
|
58053
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
|
|
58054
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
58055
|
+
const localVarOperationServerBasePath = operationServerMap['SecretsApi.updateEnvironmentSecret']?.[localVarOperationServerIndex]?.url;
|
|
58056
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
58057
|
+
},
|
|
58058
|
+
}
|
|
58059
|
+
};
|
|
58060
|
+
|
|
58061
|
+
/**
|
|
58062
|
+
* SecretsApi - factory interface
|
|
58063
|
+
* @export
|
|
58064
|
+
*/
|
|
58065
|
+
export const SecretsApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
|
|
58066
|
+
const localVarFp = SecretsApiFp(configuration)
|
|
58067
|
+
return {
|
|
58068
|
+
/**
|
|
58069
|
+
* 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.
|
|
58070
|
+
* @summary Delete a secret
|
|
58071
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58072
|
+
* @param {string} apiApplication The application ID
|
|
58073
|
+
* @param {string} apiEnvironment The environment ID
|
|
58074
|
+
* @param {string} apiSecret The secret key
|
|
58075
|
+
* @param {*} [options] Override http request option.
|
|
58076
|
+
* @throws {RequiredError}
|
|
58077
|
+
*/
|
|
58078
|
+
deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig): AxiosPromise<DeleteEnvironmentSecret200Response> {
|
|
58079
|
+
return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
|
|
58080
|
+
},
|
|
58081
|
+
/**
|
|
58082
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
58083
|
+
* @summary List the secret names for an environment
|
|
58084
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58085
|
+
* @param {string} apiApplication The application ID
|
|
58086
|
+
* @param {string} apiEnvironment The environment ID
|
|
58087
|
+
* @param {*} [options] Override http request option.
|
|
58088
|
+
* @throws {RequiredError}
|
|
58089
|
+
*/
|
|
58090
|
+
listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig): AxiosPromise<Array<SecretKey>> {
|
|
58091
|
+
return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
|
|
58092
|
+
},
|
|
58093
|
+
/**
|
|
58094
|
+
* 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.
|
|
58095
|
+
* @summary Create or replace a secret
|
|
58096
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58097
|
+
* @param {string} apiApplication The application ID
|
|
58098
|
+
* @param {string} apiEnvironment The environment ID
|
|
58099
|
+
* @param {string} apiSecret The secret key
|
|
58100
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
58101
|
+
* @param {*} [options] Override http request option.
|
|
58102
|
+
* @throws {RequiredError}
|
|
58103
|
+
*/
|
|
58104
|
+
updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig): AxiosPromise<SecretWriteResult> {
|
|
58105
|
+
return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
|
|
58106
|
+
},
|
|
58107
|
+
};
|
|
58108
|
+
};
|
|
58109
|
+
|
|
58110
|
+
/**
|
|
58111
|
+
* SecretsApi - object-oriented interface
|
|
58112
|
+
* @export
|
|
58113
|
+
* @class SecretsApi
|
|
58114
|
+
* @extends {BaseAPI}
|
|
58115
|
+
*/
|
|
58116
|
+
export class SecretsApi extends BaseAPI {
|
|
58117
|
+
/**
|
|
58118
|
+
* 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.
|
|
58119
|
+
* @summary Delete a secret
|
|
58120
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58121
|
+
* @param {string} apiApplication The application ID
|
|
58122
|
+
* @param {string} apiEnvironment The environment ID
|
|
58123
|
+
* @param {string} apiSecret The secret key
|
|
58124
|
+
* @param {*} [options] Override http request option.
|
|
58125
|
+
* @throws {RequiredError}
|
|
58126
|
+
* @memberof SecretsApi
|
|
58127
|
+
*/
|
|
58128
|
+
public deleteEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, options?: RawAxiosRequestConfig) {
|
|
58129
|
+
return SecretsApiFp(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
|
|
58130
|
+
}
|
|
58131
|
+
|
|
58132
|
+
/**
|
|
58133
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
58134
|
+
* @summary List the secret names for an environment
|
|
58135
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58136
|
+
* @param {string} apiApplication The application ID
|
|
58137
|
+
* @param {string} apiEnvironment The environment ID
|
|
58138
|
+
* @param {*} [options] Override http request option.
|
|
58139
|
+
* @throws {RequiredError}
|
|
58140
|
+
* @memberof SecretsApi
|
|
58141
|
+
*/
|
|
58142
|
+
public listEnvironmentSecrets(apiOrganisation: string, apiApplication: string, apiEnvironment: string, options?: RawAxiosRequestConfig) {
|
|
58143
|
+
return SecretsApiFp(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
|
|
58144
|
+
}
|
|
58145
|
+
|
|
58146
|
+
/**
|
|
58147
|
+
* 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.
|
|
58148
|
+
* @summary Create or replace a secret
|
|
58149
|
+
* @param {string} apiOrganisation The organisation ID
|
|
58150
|
+
* @param {string} apiApplication The application ID
|
|
58151
|
+
* @param {string} apiEnvironment The environment ID
|
|
58152
|
+
* @param {string} apiSecret The secret key
|
|
58153
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
58154
|
+
* @param {*} [options] Override http request option.
|
|
58155
|
+
* @throws {RequiredError}
|
|
58156
|
+
* @memberof SecretsApi
|
|
58157
|
+
*/
|
|
58158
|
+
public updateEnvironmentSecret(apiOrganisation: string, apiApplication: string, apiEnvironment: string, apiSecret: string, updateEnvironmentSecretRequest: UpdateEnvironmentSecretRequest, options?: RawAxiosRequestConfig) {
|
|
58159
|
+
return SecretsApiFp(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
58160
|
+
}
|
|
58161
|
+
}
|
|
58162
|
+
|
|
58163
|
+
|
|
58164
|
+
|
|
55752
58165
|
/**
|
|
55753
58166
|
* SubscriptionApi - axios parameter creator
|
|
55754
58167
|
* @export
|