@quantcdn/quant-client 4.29.0 → 4.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/esm/api.js CHANGED
@@ -4,7 +4,7 @@
4
4
  * QuantCDN API
5
5
  * Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
6
6
  *
7
- * The version of the OpenAPI document: 4.29.0
7
+ * The version of the OpenAPI document: 4.30.0
8
8
  *
9
9
  *
10
10
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -26,6 +26,16 @@ import globalAxios from 'axios';
26
26
  import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from './common';
27
27
  // @ts-ignore
28
28
  import { BASE_PATH, BaseAPI, operationServerMap } from './base';
29
+ export const AiAuditRecordRowOmittedEnum = {
30
+ TooLarge: 'too-large',
31
+ Unreadable: 'unreadable'
32
+ };
33
+ export const AiSearchUpdateSettingsRequestQueryTextRetentionEnum = {
34
+ Default: 'default',
35
+ Store: 'store',
36
+ Hash: 'hash',
37
+ None: 'none'
38
+ };
29
39
  export const AiSlackBotApiMessageAllOfAuthorKindEnum = {
30
40
  Human: 'human',
31
41
  ThisBot: 'this_bot',
@@ -157,6 +167,13 @@ export const CreateSlackBotRequestSetupTypeEnum = {
157
167
  Quant: 'quant',
158
168
  Byo: 'byo'
159
169
  };
170
+ export const CreateSlackInteractionRequestResponseModeEnum = {
171
+ Single: 'single'
172
+ };
173
+ export const CreateSlackInteractionRequestActionsInnerStyleEnum = {
174
+ Primary: 'primary',
175
+ Danger: 'danger'
176
+ };
160
177
  export const CreateTaskRequestStatusEnum = {
161
178
  Pending: 'pending',
162
179
  InProgress: 'in_progress',
@@ -165,6 +182,15 @@ export const CreateTaskRequestStatusEnum = {
165
182
  Cancelled: 'cancelled',
166
183
  Blocked: 'blocked'
167
184
  };
185
+ export const CronLastRunStatusEnum = {
186
+ Pending: 'PENDING',
187
+ Running: 'RUNNING',
188
+ Succeeded: 'SUCCEEDED',
189
+ Failed: 'FAILED',
190
+ FailedToStart: 'FAILED_TO_START',
191
+ Expired: 'EXPIRED',
192
+ TimedOut: 'TIMED_OUT'
193
+ };
168
194
  export const CronRunRunTypeEnum = {
169
195
  Exec: 'EXEC',
170
196
  Cron: 'CRON'
@@ -174,6 +200,8 @@ export const CronRunStatusEnum = {
174
200
  Running: 'RUNNING',
175
201
  Succeeded: 'SUCCEEDED',
176
202
  Failed: 'FAILED',
203
+ FailedToStart: 'FAILED_TO_START',
204
+ Expired: 'EXPIRED',
177
205
  TimedOut: 'TIMED_OUT',
178
206
  Unknown: 'UNKNOWN'
179
207
  };
@@ -328,10 +356,13 @@ export const OaiChatCompletionsRequestMessagesInnerRoleEnum = {
328
356
  };
329
357
  export const OrgResourceTypeEnum = {
330
358
  ObjectStorage: 'object-storage',
331
- Valkey: 'valkey'
359
+ Valkey: 'valkey',
360
+ CiRunnerPool: 'ci-runner-pool'
332
361
  };
333
362
  export const OrgResourceStatusEnum = {
334
363
  Provisioning: 'provisioning',
364
+ Creating: 'creating',
365
+ Updating: 'updating',
335
366
  Available: 'available',
336
367
  Deleting: 'deleting',
337
368
  Error: 'error'
@@ -346,6 +377,13 @@ export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
346
377
  MixedSafe: 'mixed-safe',
347
378
  MixedAggressive: 'mixed-aggressive'
348
379
  };
380
+ export const ProjectsDelete409ResponseCodeEnum = {
381
+ KvLedgerPresent: 'KV_LEDGER_PRESENT'
382
+ };
383
+ export const ProjectsDelete503ResponseCodeEnum = {
384
+ KvStoresUnreadable: 'KV_STORES_UNREADABLE',
385
+ KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
386
+ };
349
387
  export const PurgeCreateRequestScopeEnum = {
350
388
  Project: 'project',
351
389
  Org: 'org'
@@ -2080,6 +2118,750 @@ export class AIAgentsApi extends BaseAPI {
2080
2118
  return AIAgentsApiFp(this.configuration).upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options).then((request) => request(this.axios, this.basePath));
2081
2119
  }
2082
2120
  }
2121
+ /**
2122
+ * AIAuditApi - axios parameter creator
2123
+ * @export
2124
+ */
2125
+ export const AIAuditApiAxiosParamCreator = function (configuration) {
2126
+ return {
2127
+ /**
2128
+ * 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.
2129
+ * @summary Export AI audit records as JSON Lines
2130
+ * @param {string} organisation The organisation machine name
2131
+ * @param {string} startDate
2132
+ * @param {string} endDate
2133
+ * @param {string} [userId]
2134
+ * @param {string} [modelId]
2135
+ * @param {string} [recordType]
2136
+ * @param {string} [decision]
2137
+ * @param {string} [tool]
2138
+ * @param {string} [outcome]
2139
+ * @param {*} [options] Override http request option.
2140
+ * @throws {RequiredError}
2141
+ */
2142
+ aiAuditExport: (organisation_1, startDate_1, endDate_1, userId_1, modelId_1, recordType_1, decision_1, tool_1, outcome_1, ...args_1) => __awaiter(this, [organisation_1, startDate_1, endDate_1, userId_1, modelId_1, recordType_1, decision_1, tool_1, outcome_1, ...args_1], void 0, function* (organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options = {}) {
2143
+ // verify required parameter 'organisation' is not null or undefined
2144
+ assertParamExists('aiAuditExport', 'organisation', organisation);
2145
+ // verify required parameter 'startDate' is not null or undefined
2146
+ assertParamExists('aiAuditExport', 'startDate', startDate);
2147
+ // verify required parameter 'endDate' is not null or undefined
2148
+ assertParamExists('aiAuditExport', 'endDate', endDate);
2149
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
2150
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2151
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2152
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2153
+ let baseOptions;
2154
+ if (configuration) {
2155
+ baseOptions = configuration.baseOptions;
2156
+ }
2157
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2158
+ const localVarHeaderParameter = {};
2159
+ const localVarQueryParameter = {};
2160
+ // authentication BearerAuth required
2161
+ // http bearer authentication required
2162
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2163
+ if (startDate !== undefined) {
2164
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2165
+ startDate.toISOString().substring(0, 10) :
2166
+ startDate;
2167
+ }
2168
+ if (endDate !== undefined) {
2169
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2170
+ endDate.toISOString().substring(0, 10) :
2171
+ endDate;
2172
+ }
2173
+ if (userId !== undefined) {
2174
+ localVarQueryParameter['userId'] = userId;
2175
+ }
2176
+ if (modelId !== undefined) {
2177
+ localVarQueryParameter['modelId'] = modelId;
2178
+ }
2179
+ if (recordType !== undefined) {
2180
+ localVarQueryParameter['recordType'] = recordType;
2181
+ }
2182
+ if (decision !== undefined) {
2183
+ localVarQueryParameter['decision'] = decision;
2184
+ }
2185
+ if (tool !== undefined) {
2186
+ localVarQueryParameter['tool'] = tool;
2187
+ }
2188
+ if (outcome !== undefined) {
2189
+ localVarQueryParameter['outcome'] = outcome;
2190
+ }
2191
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2192
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2193
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2194
+ return {
2195
+ url: toPathString(localVarUrlObj),
2196
+ options: localVarRequestOptions,
2197
+ };
2198
+ }),
2199
+ /**
2200
+ * 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.
2201
+ * @summary List AI governance ledger entries
2202
+ * @param {string} organisation The organisation machine name
2203
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2204
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2205
+ * @param {number} [limit]
2206
+ * @param {string} [cursor] The next_cursor of the previous page.
2207
+ * @param {*} [options] Override http request option.
2208
+ * @throws {RequiredError}
2209
+ */
2210
+ aiAuditLedgerEntries: (organisation_1, since_1, until_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, since_1, until_1, limit_1, cursor_1, ...args_1], void 0, function* (organisation, since, until, limit, cursor, options = {}) {
2211
+ // verify required parameter 'organisation' is not null or undefined
2212
+ assertParamExists('aiAuditLedgerEntries', 'organisation', organisation);
2213
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
2214
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2215
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2216
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2217
+ let baseOptions;
2218
+ if (configuration) {
2219
+ baseOptions = configuration.baseOptions;
2220
+ }
2221
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2222
+ const localVarHeaderParameter = {};
2223
+ const localVarQueryParameter = {};
2224
+ // authentication BearerAuth required
2225
+ // http bearer authentication required
2226
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2227
+ if (since !== undefined) {
2228
+ localVarQueryParameter['since'] = since;
2229
+ }
2230
+ if (until !== undefined) {
2231
+ localVarQueryParameter['until'] = until;
2232
+ }
2233
+ if (limit !== undefined) {
2234
+ localVarQueryParameter['limit'] = limit;
2235
+ }
2236
+ if (cursor !== undefined) {
2237
+ localVarQueryParameter['cursor'] = cursor;
2238
+ }
2239
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2240
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2241
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2242
+ return {
2243
+ url: toPathString(localVarUrlObj),
2244
+ options: localVarRequestOptions,
2245
+ };
2246
+ }),
2247
+ /**
2248
+ * 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.
2249
+ * @summary Get the inclusion proof of a governance ledger entry
2250
+ * @param {string} organisation The organisation machine name
2251
+ * @param {string} key
2252
+ * @param {*} [options] Override http request option.
2253
+ * @throws {RequiredError}
2254
+ */
2255
+ aiAuditLedgerProof: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
2256
+ // verify required parameter 'organisation' is not null or undefined
2257
+ assertParamExists('aiAuditLedgerProof', 'organisation', organisation);
2258
+ // verify required parameter 'key' is not null or undefined
2259
+ assertParamExists('aiAuditLedgerProof', 'key', key);
2260
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
2261
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2262
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2263
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2264
+ let baseOptions;
2265
+ if (configuration) {
2266
+ baseOptions = configuration.baseOptions;
2267
+ }
2268
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2269
+ const localVarHeaderParameter = {};
2270
+ const localVarQueryParameter = {};
2271
+ // authentication BearerAuth required
2272
+ // http bearer authentication required
2273
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2274
+ if (key !== undefined) {
2275
+ localVarQueryParameter['key'] = key;
2276
+ }
2277
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2278
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2279
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2280
+ return {
2281
+ url: toPathString(localVarUrlObj),
2282
+ options: localVarRequestOptions,
2283
+ };
2284
+ }),
2285
+ /**
2286
+ * 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.
2287
+ * @summary Get the governance ledger public key
2288
+ * @param {string} organisation The organisation machine name
2289
+ * @param {*} [options] Override http request option.
2290
+ * @throws {RequiredError}
2291
+ */
2292
+ aiAuditLedgerPublicKey: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
2293
+ // verify required parameter 'organisation' is not null or undefined
2294
+ assertParamExists('aiAuditLedgerPublicKey', 'organisation', organisation);
2295
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
2296
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2297
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2298
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2299
+ let baseOptions;
2300
+ if (configuration) {
2301
+ baseOptions = configuration.baseOptions;
2302
+ }
2303
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2304
+ const localVarHeaderParameter = {};
2305
+ const localVarQueryParameter = {};
2306
+ // authentication BearerAuth required
2307
+ // http bearer authentication required
2308
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2309
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2310
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2311
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2312
+ return {
2313
+ url: toPathString(localVarUrlObj),
2314
+ options: localVarRequestOptions,
2315
+ };
2316
+ }),
2317
+ /**
2318
+ * 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.
2319
+ * @summary Get the AI governance ledger status
2320
+ * @param {string} organisation The organisation machine name
2321
+ * @param {string} [cursor] The next_cursor of the previous page.
2322
+ * @param {*} [options] Override http request option.
2323
+ * @throws {RequiredError}
2324
+ */
2325
+ aiAuditLedgerStatus: (organisation_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, cursor_1, ...args_1], void 0, function* (organisation, cursor, options = {}) {
2326
+ // verify required parameter 'organisation' is not null or undefined
2327
+ assertParamExists('aiAuditLedgerStatus', 'organisation', organisation);
2328
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
2329
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2330
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2331
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2332
+ let baseOptions;
2333
+ if (configuration) {
2334
+ baseOptions = configuration.baseOptions;
2335
+ }
2336
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2337
+ const localVarHeaderParameter = {};
2338
+ const localVarQueryParameter = {};
2339
+ // authentication BearerAuth required
2340
+ // http bearer authentication required
2341
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2342
+ if (cursor !== undefined) {
2343
+ localVarQueryParameter['cursor'] = cursor;
2344
+ }
2345
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2346
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2347
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2348
+ return {
2349
+ url: toPathString(localVarUrlObj),
2350
+ options: localVarRequestOptions,
2351
+ };
2352
+ }),
2353
+ /**
2354
+ * 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.
2355
+ * @summary Get one AI audit record
2356
+ * @param {string} organisation The organisation machine name
2357
+ * @param {string} key
2358
+ * @param {*} [options] Override http request option.
2359
+ * @throws {RequiredError}
2360
+ */
2361
+ aiAuditRecordGet: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
2362
+ // verify required parameter 'organisation' is not null or undefined
2363
+ assertParamExists('aiAuditRecordGet', 'organisation', organisation);
2364
+ // verify required parameter 'key' is not null or undefined
2365
+ assertParamExists('aiAuditRecordGet', 'key', key);
2366
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
2367
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2368
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2369
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2370
+ let baseOptions;
2371
+ if (configuration) {
2372
+ baseOptions = configuration.baseOptions;
2373
+ }
2374
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2375
+ const localVarHeaderParameter = {};
2376
+ const localVarQueryParameter = {};
2377
+ // authentication BearerAuth required
2378
+ // http bearer authentication required
2379
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2380
+ if (key !== undefined) {
2381
+ localVarQueryParameter['key'] = key;
2382
+ }
2383
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2384
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2385
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2386
+ return {
2387
+ url: toPathString(localVarUrlObj),
2388
+ options: localVarRequestOptions,
2389
+ };
2390
+ }),
2391
+ /**
2392
+ * 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.
2393
+ * @summary List AI audit records
2394
+ * @param {string} organisation The organisation machine name
2395
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2396
+ * @param {string} endDate Last UTC day (inclusive).
2397
+ * @param {string} [since] Record time from (inclusive).
2398
+ * @param {string} [until] Record time to (exclusive).
2399
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2400
+ * @param {string} [tokenId]
2401
+ * @param {string} [modelId]
2402
+ * @param {string} [recordType]
2403
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2404
+ * @param {string} [tool]
2405
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2406
+ * @param {string} [_interface]
2407
+ * @param {number} [limit]
2408
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2409
+ * @param {*} [options] Override http request option.
2410
+ * @throws {RequiredError}
2411
+ */
2412
+ aiAuditRecordsList: (organisation_1, startDate_1, endDate_1, since_1, until_1, userId_1, tokenId_1, modelId_1, recordType_1, decision_1, tool_1, outcome_1, _interface_1, limit_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, startDate_1, endDate_1, since_1, until_1, userId_1, tokenId_1, modelId_1, recordType_1, decision_1, tool_1, outcome_1, _interface_1, limit_1, cursor_1, ...args_1], void 0, function* (organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options = {}) {
2413
+ // verify required parameter 'organisation' is not null or undefined
2414
+ assertParamExists('aiAuditRecordsList', 'organisation', organisation);
2415
+ // verify required parameter 'startDate' is not null or undefined
2416
+ assertParamExists('aiAuditRecordsList', 'startDate', startDate);
2417
+ // verify required parameter 'endDate' is not null or undefined
2418
+ assertParamExists('aiAuditRecordsList', 'endDate', endDate);
2419
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
2420
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2421
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2422
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
2423
+ let baseOptions;
2424
+ if (configuration) {
2425
+ baseOptions = configuration.baseOptions;
2426
+ }
2427
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2428
+ const localVarHeaderParameter = {};
2429
+ const localVarQueryParameter = {};
2430
+ // authentication BearerAuth required
2431
+ // http bearer authentication required
2432
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
2433
+ if (startDate !== undefined) {
2434
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2435
+ startDate.toISOString().substring(0, 10) :
2436
+ startDate;
2437
+ }
2438
+ if (endDate !== undefined) {
2439
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2440
+ endDate.toISOString().substring(0, 10) :
2441
+ endDate;
2442
+ }
2443
+ if (since !== undefined) {
2444
+ localVarQueryParameter['since'] = (since instanceof Date) ?
2445
+ since.toISOString() :
2446
+ since;
2447
+ }
2448
+ if (until !== undefined) {
2449
+ localVarQueryParameter['until'] = (until instanceof Date) ?
2450
+ until.toISOString() :
2451
+ until;
2452
+ }
2453
+ if (userId !== undefined) {
2454
+ localVarQueryParameter['userId'] = userId;
2455
+ }
2456
+ if (tokenId !== undefined) {
2457
+ localVarQueryParameter['tokenId'] = tokenId;
2458
+ }
2459
+ if (modelId !== undefined) {
2460
+ localVarQueryParameter['modelId'] = modelId;
2461
+ }
2462
+ if (recordType !== undefined) {
2463
+ localVarQueryParameter['recordType'] = recordType;
2464
+ }
2465
+ if (decision !== undefined) {
2466
+ localVarQueryParameter['decision'] = decision;
2467
+ }
2468
+ if (tool !== undefined) {
2469
+ localVarQueryParameter['tool'] = tool;
2470
+ }
2471
+ if (outcome !== undefined) {
2472
+ localVarQueryParameter['outcome'] = outcome;
2473
+ }
2474
+ if (_interface !== undefined) {
2475
+ localVarQueryParameter['interface'] = _interface;
2476
+ }
2477
+ if (limit !== undefined) {
2478
+ localVarQueryParameter['limit'] = limit;
2479
+ }
2480
+ if (cursor !== undefined) {
2481
+ localVarQueryParameter['cursor'] = cursor;
2482
+ }
2483
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
2484
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2485
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2486
+ return {
2487
+ url: toPathString(localVarUrlObj),
2488
+ options: localVarRequestOptions,
2489
+ };
2490
+ }),
2491
+ };
2492
+ };
2493
+ /**
2494
+ * AIAuditApi - functional programming interface
2495
+ * @export
2496
+ */
2497
+ export const AIAuditApiFp = function (configuration) {
2498
+ const localVarAxiosParamCreator = AIAuditApiAxiosParamCreator(configuration);
2499
+ return {
2500
+ /**
2501
+ * 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.
2502
+ * @summary Export AI audit records as JSON Lines
2503
+ * @param {string} organisation The organisation machine name
2504
+ * @param {string} startDate
2505
+ * @param {string} endDate
2506
+ * @param {string} [userId]
2507
+ * @param {string} [modelId]
2508
+ * @param {string} [recordType]
2509
+ * @param {string} [decision]
2510
+ * @param {string} [tool]
2511
+ * @param {string} [outcome]
2512
+ * @param {*} [options] Override http request option.
2513
+ * @throws {RequiredError}
2514
+ */
2515
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2516
+ return __awaiter(this, void 0, void 0, function* () {
2517
+ var _a, _b, _c;
2518
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options);
2519
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2520
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2521
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2522
+ });
2523
+ },
2524
+ /**
2525
+ * 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.
2526
+ * @summary List AI governance ledger entries
2527
+ * @param {string} organisation The organisation machine name
2528
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2529
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2530
+ * @param {number} [limit]
2531
+ * @param {string} [cursor] The next_cursor of the previous page.
2532
+ * @param {*} [options] Override http request option.
2533
+ * @throws {RequiredError}
2534
+ */
2535
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2536
+ return __awaiter(this, void 0, void 0, function* () {
2537
+ var _a, _b, _c;
2538
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
2539
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2540
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2541
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2542
+ });
2543
+ },
2544
+ /**
2545
+ * 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.
2546
+ * @summary Get the inclusion proof of a governance ledger entry
2547
+ * @param {string} organisation The organisation machine name
2548
+ * @param {string} key
2549
+ * @param {*} [options] Override http request option.
2550
+ * @throws {RequiredError}
2551
+ */
2552
+ aiAuditLedgerProof(organisation, key, options) {
2553
+ return __awaiter(this, void 0, void 0, function* () {
2554
+ var _a, _b, _c;
2555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
2556
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2557
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerProof']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2558
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2559
+ });
2560
+ },
2561
+ /**
2562
+ * 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.
2563
+ * @summary Get the governance ledger public key
2564
+ * @param {string} organisation The organisation machine name
2565
+ * @param {*} [options] Override http request option.
2566
+ * @throws {RequiredError}
2567
+ */
2568
+ aiAuditLedgerPublicKey(organisation, options) {
2569
+ return __awaiter(this, void 0, void 0, function* () {
2570
+ var _a, _b, _c;
2571
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
2572
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2573
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerPublicKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2574
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2575
+ });
2576
+ },
2577
+ /**
2578
+ * 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.
2579
+ * @summary Get the AI governance ledger status
2580
+ * @param {string} organisation The organisation machine name
2581
+ * @param {string} [cursor] The next_cursor of the previous page.
2582
+ * @param {*} [options] Override http request option.
2583
+ * @throws {RequiredError}
2584
+ */
2585
+ aiAuditLedgerStatus(organisation, cursor, options) {
2586
+ return __awaiter(this, void 0, void 0, function* () {
2587
+ var _a, _b, _c;
2588
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, options);
2589
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2590
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2591
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2592
+ });
2593
+ },
2594
+ /**
2595
+ * 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.
2596
+ * @summary Get one AI audit record
2597
+ * @param {string} organisation The organisation machine name
2598
+ * @param {string} key
2599
+ * @param {*} [options] Override http request option.
2600
+ * @throws {RequiredError}
2601
+ */
2602
+ aiAuditRecordGet(organisation, key, options) {
2603
+ return __awaiter(this, void 0, void 0, function* () {
2604
+ var _a, _b, _c;
2605
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
2606
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2607
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditRecordGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2608
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2609
+ });
2610
+ },
2611
+ /**
2612
+ * 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.
2613
+ * @summary List AI audit records
2614
+ * @param {string} organisation The organisation machine name
2615
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2616
+ * @param {string} endDate Last UTC day (inclusive).
2617
+ * @param {string} [since] Record time from (inclusive).
2618
+ * @param {string} [until] Record time to (exclusive).
2619
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2620
+ * @param {string} [tokenId]
2621
+ * @param {string} [modelId]
2622
+ * @param {string} [recordType]
2623
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2624
+ * @param {string} [tool]
2625
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2626
+ * @param {string} [_interface]
2627
+ * @param {number} [limit]
2628
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2629
+ * @param {*} [options] Override http request option.
2630
+ * @throws {RequiredError}
2631
+ */
2632
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2633
+ return __awaiter(this, void 0, void 0, function* () {
2634
+ var _a, _b, _c;
2635
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
2636
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2637
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditRecordsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2638
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2639
+ });
2640
+ },
2641
+ };
2642
+ };
2643
+ /**
2644
+ * AIAuditApi - factory interface
2645
+ * @export
2646
+ */
2647
+ export const AIAuditApiFactory = function (configuration, basePath, axios) {
2648
+ const localVarFp = AIAuditApiFp(configuration);
2649
+ return {
2650
+ /**
2651
+ * 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.
2652
+ * @summary Export AI audit records as JSON Lines
2653
+ * @param {string} organisation The organisation machine name
2654
+ * @param {string} startDate
2655
+ * @param {string} endDate
2656
+ * @param {string} [userId]
2657
+ * @param {string} [modelId]
2658
+ * @param {string} [recordType]
2659
+ * @param {string} [decision]
2660
+ * @param {string} [tool]
2661
+ * @param {string} [outcome]
2662
+ * @param {*} [options] Override http request option.
2663
+ * @throws {RequiredError}
2664
+ */
2665
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2666
+ return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
2667
+ },
2668
+ /**
2669
+ * 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.
2670
+ * @summary List AI governance ledger entries
2671
+ * @param {string} organisation The organisation machine name
2672
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2673
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2674
+ * @param {number} [limit]
2675
+ * @param {string} [cursor] The next_cursor of the previous page.
2676
+ * @param {*} [options] Override http request option.
2677
+ * @throws {RequiredError}
2678
+ */
2679
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2680
+ return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
2681
+ },
2682
+ /**
2683
+ * 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.
2684
+ * @summary Get the inclusion proof of a governance ledger entry
2685
+ * @param {string} organisation The organisation machine name
2686
+ * @param {string} key
2687
+ * @param {*} [options] Override http request option.
2688
+ * @throws {RequiredError}
2689
+ */
2690
+ aiAuditLedgerProof(organisation, key, options) {
2691
+ return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
2692
+ },
2693
+ /**
2694
+ * 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.
2695
+ * @summary Get the governance ledger public key
2696
+ * @param {string} organisation The organisation machine name
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ aiAuditLedgerPublicKey(organisation, options) {
2701
+ return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
2702
+ },
2703
+ /**
2704
+ * 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.
2705
+ * @summary Get the AI governance ledger status
2706
+ * @param {string} organisation The organisation machine name
2707
+ * @param {string} [cursor] The next_cursor of the previous page.
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ aiAuditLedgerStatus(organisation, cursor, options) {
2712
+ return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
2713
+ },
2714
+ /**
2715
+ * 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.
2716
+ * @summary Get one AI audit record
2717
+ * @param {string} organisation The organisation machine name
2718
+ * @param {string} key
2719
+ * @param {*} [options] Override http request option.
2720
+ * @throws {RequiredError}
2721
+ */
2722
+ aiAuditRecordGet(organisation, key, options) {
2723
+ return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
2724
+ },
2725
+ /**
2726
+ * 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.
2727
+ * @summary List AI audit records
2728
+ * @param {string} organisation The organisation machine name
2729
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2730
+ * @param {string} endDate Last UTC day (inclusive).
2731
+ * @param {string} [since] Record time from (inclusive).
2732
+ * @param {string} [until] Record time to (exclusive).
2733
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2734
+ * @param {string} [tokenId]
2735
+ * @param {string} [modelId]
2736
+ * @param {string} [recordType]
2737
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2738
+ * @param {string} [tool]
2739
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2740
+ * @param {string} [_interface]
2741
+ * @param {number} [limit]
2742
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2743
+ * @param {*} [options] Override http request option.
2744
+ * @throws {RequiredError}
2745
+ */
2746
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2747
+ return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
2748
+ },
2749
+ };
2750
+ };
2751
+ /**
2752
+ * AIAuditApi - object-oriented interface
2753
+ * @export
2754
+ * @class AIAuditApi
2755
+ * @extends {BaseAPI}
2756
+ */
2757
+ export class AIAuditApi extends BaseAPI {
2758
+ /**
2759
+ * 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.
2760
+ * @summary Export AI audit records as JSON Lines
2761
+ * @param {string} organisation The organisation machine name
2762
+ * @param {string} startDate
2763
+ * @param {string} endDate
2764
+ * @param {string} [userId]
2765
+ * @param {string} [modelId]
2766
+ * @param {string} [recordType]
2767
+ * @param {string} [decision]
2768
+ * @param {string} [tool]
2769
+ * @param {string} [outcome]
2770
+ * @param {*} [options] Override http request option.
2771
+ * @throws {RequiredError}
2772
+ * @memberof AIAuditApi
2773
+ */
2774
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2775
+ return AIAuditApiFp(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
2776
+ }
2777
+ /**
2778
+ * 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.
2779
+ * @summary List AI governance ledger entries
2780
+ * @param {string} organisation The organisation machine name
2781
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2782
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2783
+ * @param {number} [limit]
2784
+ * @param {string} [cursor] The next_cursor of the previous page.
2785
+ * @param {*} [options] Override http request option.
2786
+ * @throws {RequiredError}
2787
+ * @memberof AIAuditApi
2788
+ */
2789
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2790
+ return AIAuditApiFp(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
2791
+ }
2792
+ /**
2793
+ * 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.
2794
+ * @summary Get the inclusion proof of a governance ledger entry
2795
+ * @param {string} organisation The organisation machine name
2796
+ * @param {string} key
2797
+ * @param {*} [options] Override http request option.
2798
+ * @throws {RequiredError}
2799
+ * @memberof AIAuditApi
2800
+ */
2801
+ aiAuditLedgerProof(organisation, key, options) {
2802
+ return AIAuditApiFp(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
2803
+ }
2804
+ /**
2805
+ * 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.
2806
+ * @summary Get the governance ledger public key
2807
+ * @param {string} organisation The organisation machine name
2808
+ * @param {*} [options] Override http request option.
2809
+ * @throws {RequiredError}
2810
+ * @memberof AIAuditApi
2811
+ */
2812
+ aiAuditLedgerPublicKey(organisation, options) {
2813
+ return AIAuditApiFp(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
2814
+ }
2815
+ /**
2816
+ * 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.
2817
+ * @summary Get the AI governance ledger status
2818
+ * @param {string} organisation The organisation machine name
2819
+ * @param {string} [cursor] The next_cursor of the previous page.
2820
+ * @param {*} [options] Override http request option.
2821
+ * @throws {RequiredError}
2822
+ * @memberof AIAuditApi
2823
+ */
2824
+ aiAuditLedgerStatus(organisation, cursor, options) {
2825
+ return AIAuditApiFp(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
2826
+ }
2827
+ /**
2828
+ * 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.
2829
+ * @summary Get one AI audit record
2830
+ * @param {string} organisation The organisation machine name
2831
+ * @param {string} key
2832
+ * @param {*} [options] Override http request option.
2833
+ * @throws {RequiredError}
2834
+ * @memberof AIAuditApi
2835
+ */
2836
+ aiAuditRecordGet(organisation, key, options) {
2837
+ return AIAuditApiFp(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
2838
+ }
2839
+ /**
2840
+ * 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.
2841
+ * @summary List AI audit records
2842
+ * @param {string} organisation The organisation machine name
2843
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2844
+ * @param {string} endDate Last UTC day (inclusive).
2845
+ * @param {string} [since] Record time from (inclusive).
2846
+ * @param {string} [until] Record time to (exclusive).
2847
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2848
+ * @param {string} [tokenId]
2849
+ * @param {string} [modelId]
2850
+ * @param {string} [recordType]
2851
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2852
+ * @param {string} [tool]
2853
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2854
+ * @param {string} [_interface]
2855
+ * @param {number} [limit]
2856
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2857
+ * @param {*} [options] Override http request option.
2858
+ * @throws {RequiredError}
2859
+ * @memberof AIAuditApi
2860
+ */
2861
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2862
+ 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));
2863
+ }
2864
+ }
2083
2865
  /**
2084
2866
  * AICustomToolsApi - axios parameter creator
2085
2867
  * @export
@@ -5488,7 +6270,7 @@ export const AISearchApiAxiosParamCreator = function (configuration) {
5488
6270
  };
5489
6271
  }),
5490
6272
  /**
5491
- *
6273
+ * 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.
5492
6274
  * @summary Get the most popular AI Search queries
5493
6275
  * @param {string} organisation
5494
6276
  * @param {string} project
@@ -5898,7 +6680,7 @@ export const AISearchApiFp = function (configuration) {
5898
6680
  });
5899
6681
  },
5900
6682
  /**
5901
- *
6683
+ * 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.
5902
6684
  * @summary Get the most popular AI Search queries
5903
6685
  * @param {string} organisation
5904
6686
  * @param {string} project
@@ -6137,7 +6919,7 @@ export const AISearchApiFactory = function (configuration, basePath, axios) {
6137
6919
  return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
6138
6920
  },
6139
6921
  /**
6140
- *
6922
+ * 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.
6141
6923
  * @summary Get the most popular AI Search queries
6142
6924
  * @param {string} organisation
6143
6925
  * @param {string} project
@@ -6365,7 +7147,7 @@ export class AISearchApi extends BaseAPI {
6365
7147
  return AISearchApiFp(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
6366
7148
  }
6367
7149
  /**
6368
- *
7150
+ * 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.
6369
7151
  * @summary Get the most popular AI Search queries
6370
7152
  * @param {string} organisation
6371
7153
  * @param {string} project
@@ -7845,6 +8627,46 @@ export class AISkillsApi extends BaseAPI {
7845
8627
  */
7846
8628
  export const AISlackBotsApiAxiosParamCreator = function (configuration) {
7847
8629
  return {
8630
+ /**
8631
+ *
8632
+ * @summary Cancel an unanswered Slack interaction
8633
+ * @param {string} organisation
8634
+ * @param {string} botId
8635
+ * @param {string} interactionId
8636
+ * @param {*} [options] Override http request option.
8637
+ * @throws {RequiredError}
8638
+ */
8639
+ cancelSlackInteraction: (organisation_1, botId_1, interactionId_1, ...args_1) => __awaiter(this, [organisation_1, botId_1, interactionId_1, ...args_1], void 0, function* (organisation, botId, interactionId, options = {}) {
8640
+ // verify required parameter 'organisation' is not null or undefined
8641
+ assertParamExists('cancelSlackInteraction', 'organisation', organisation);
8642
+ // verify required parameter 'botId' is not null or undefined
8643
+ assertParamExists('cancelSlackInteraction', 'botId', botId);
8644
+ // verify required parameter 'interactionId' is not null or undefined
8645
+ assertParamExists('cancelSlackInteraction', 'interactionId', interactionId);
8646
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
8647
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8648
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
8649
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
8650
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8651
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8652
+ let baseOptions;
8653
+ if (configuration) {
8654
+ baseOptions = configuration.baseOptions;
8655
+ }
8656
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8657
+ const localVarHeaderParameter = {};
8658
+ const localVarQueryParameter = {};
8659
+ // authentication BearerAuth required
8660
+ // http bearer authentication required
8661
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8662
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8663
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8664
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8665
+ return {
8666
+ url: toPathString(localVarUrlObj),
8667
+ options: localVarRequestOptions,
8668
+ };
8669
+ }),
7848
8670
  /**
7849
8671
  * 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
7850
8672
  * @summary Create Slack Bot
@@ -7882,6 +8704,53 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
7882
8704
  options: localVarRequestOptions,
7883
8705
  };
7884
8706
  }),
8707
+ /**
8708
+ * 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.
8709
+ * @summary Ask for a single Slack button response
8710
+ * @param {string} organisation
8711
+ * @param {string} botId
8712
+ * @param {string} idempotencyKey
8713
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
8714
+ * @param {*} [options] Override http request option.
8715
+ * @throws {RequiredError}
8716
+ */
8717
+ createSlackInteraction: (organisation_1, botId_1, idempotencyKey_1, createSlackInteractionRequest_1, ...args_1) => __awaiter(this, [organisation_1, botId_1, idempotencyKey_1, createSlackInteractionRequest_1, ...args_1], void 0, function* (organisation, botId, idempotencyKey, createSlackInteractionRequest, options = {}) {
8718
+ // verify required parameter 'organisation' is not null or undefined
8719
+ assertParamExists('createSlackInteraction', 'organisation', organisation);
8720
+ // verify required parameter 'botId' is not null or undefined
8721
+ assertParamExists('createSlackInteraction', 'botId', botId);
8722
+ // verify required parameter 'idempotencyKey' is not null or undefined
8723
+ assertParamExists('createSlackInteraction', 'idempotencyKey', idempotencyKey);
8724
+ // verify required parameter 'createSlackInteractionRequest' is not null or undefined
8725
+ assertParamExists('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest);
8726
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
8727
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8728
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
8729
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8730
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8731
+ let baseOptions;
8732
+ if (configuration) {
8733
+ baseOptions = configuration.baseOptions;
8734
+ }
8735
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8736
+ const localVarHeaderParameter = {};
8737
+ const localVarQueryParameter = {};
8738
+ // authentication BearerAuth required
8739
+ // http bearer authentication required
8740
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8741
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8742
+ if (idempotencyKey != null) {
8743
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
8744
+ }
8745
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8746
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8747
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8748
+ localVarRequestOptions.data = serializeDataIfNeeded(createSlackInteractionRequest, localVarRequestOptions, configuration);
8749
+ return {
8750
+ url: toPathString(localVarUrlObj),
8751
+ options: localVarRequestOptions,
8752
+ };
8753
+ }),
7885
8754
  /**
7886
8755
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
7887
8756
  * @summary Delete Slack Bot
@@ -8010,6 +8879,46 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
8010
8879
  options: localVarRequestOptions,
8011
8880
  };
8012
8881
  }),
8882
+ /**
8883
+ * 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.
8884
+ * @summary Read an external Slack interaction
8885
+ * @param {string} organisation
8886
+ * @param {string} botId
8887
+ * @param {string} interactionId
8888
+ * @param {*} [options] Override http request option.
8889
+ * @throws {RequiredError}
8890
+ */
8891
+ getSlackInteraction: (organisation_1, botId_1, interactionId_1, ...args_1) => __awaiter(this, [organisation_1, botId_1, interactionId_1, ...args_1], void 0, function* (organisation, botId, interactionId, options = {}) {
8892
+ // verify required parameter 'organisation' is not null or undefined
8893
+ assertParamExists('getSlackInteraction', 'organisation', organisation);
8894
+ // verify required parameter 'botId' is not null or undefined
8895
+ assertParamExists('getSlackInteraction', 'botId', botId);
8896
+ // verify required parameter 'interactionId' is not null or undefined
8897
+ assertParamExists('getSlackInteraction', 'interactionId', interactionId);
8898
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
8899
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8900
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
8901
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
8902
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8903
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
8904
+ let baseOptions;
8905
+ if (configuration) {
8906
+ baseOptions = configuration.baseOptions;
8907
+ }
8908
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8909
+ const localVarHeaderParameter = {};
8910
+ const localVarQueryParameter = {};
8911
+ // authentication BearerAuth required
8912
+ // http bearer authentication required
8913
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
8914
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
8915
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8916
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8917
+ return {
8918
+ url: toPathString(localVarUrlObj),
8919
+ options: localVarRequestOptions,
8920
+ };
8921
+ }),
8013
8922
  /**
8014
8923
  * 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.
8015
8924
  * @summary Read recent channel messages
@@ -8126,6 +9035,51 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
8126
9035
  options: localVarRequestOptions,
8127
9036
  };
8128
9037
  }),
9038
+ /**
9039
+ * 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.
9040
+ * @summary Post an image as the bot
9041
+ * @param {string} organisation The organisation machine name
9042
+ * @param {string} botId
9043
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9044
+ * @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.
9045
+ * @param {*} [options] Override http request option.
9046
+ * @throws {RequiredError}
9047
+ */
9048
+ postSlackBotFile: (organisation_1, botId_1, postSlackBotFileRequest_1, idempotencyKey_1, ...args_1) => __awaiter(this, [organisation_1, botId_1, postSlackBotFileRequest_1, idempotencyKey_1, ...args_1], void 0, function* (organisation, botId, postSlackBotFileRequest, idempotencyKey, options = {}) {
9049
+ // verify required parameter 'organisation' is not null or undefined
9050
+ assertParamExists('postSlackBotFile', 'organisation', organisation);
9051
+ // verify required parameter 'botId' is not null or undefined
9052
+ assertParamExists('postSlackBotFile', 'botId', botId);
9053
+ // verify required parameter 'postSlackBotFileRequest' is not null or undefined
9054
+ assertParamExists('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest);
9055
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
9056
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
9057
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
9058
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9059
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
9060
+ let baseOptions;
9061
+ if (configuration) {
9062
+ baseOptions = configuration.baseOptions;
9063
+ }
9064
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9065
+ const localVarHeaderParameter = {};
9066
+ const localVarQueryParameter = {};
9067
+ // authentication BearerAuth required
9068
+ // http bearer authentication required
9069
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
9070
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9071
+ if (idempotencyKey != null) {
9072
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
9073
+ }
9074
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
9075
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9076
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9077
+ localVarRequestOptions.data = serializeDataIfNeeded(postSlackBotFileRequest, localVarRequestOptions, configuration);
9078
+ return {
9079
+ url: toPathString(localVarUrlObj),
9080
+ options: localVarRequestOptions,
9081
+ };
9082
+ }),
8129
9083
  /**
8130
9084
  * 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.
8131
9085
  * @summary Post a message as the bot
@@ -8301,6 +9255,24 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
8301
9255
  export const AISlackBotsApiFp = function (configuration) {
8302
9256
  const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration);
8303
9257
  return {
9258
+ /**
9259
+ *
9260
+ * @summary Cancel an unanswered Slack interaction
9261
+ * @param {string} organisation
9262
+ * @param {string} botId
9263
+ * @param {string} interactionId
9264
+ * @param {*} [options] Override http request option.
9265
+ * @throws {RequiredError}
9266
+ */
9267
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9268
+ return __awaiter(this, void 0, void 0, function* () {
9269
+ var _a, _b, _c;
9270
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
9271
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9272
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.cancelSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9273
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9274
+ });
9275
+ },
8304
9276
  /**
8305
9277
  * 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
8306
9278
  * @summary Create Slack Bot
@@ -8318,6 +9290,25 @@ export const AISlackBotsApiFp = function (configuration) {
8318
9290
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8319
9291
  });
8320
9292
  },
9293
+ /**
9294
+ * 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.
9295
+ * @summary Ask for a single Slack button response
9296
+ * @param {string} organisation
9297
+ * @param {string} botId
9298
+ * @param {string} idempotencyKey
9299
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9300
+ * @param {*} [options] Override http request option.
9301
+ * @throws {RequiredError}
9302
+ */
9303
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9304
+ return __awaiter(this, void 0, void 0, function* () {
9305
+ var _a, _b, _c;
9306
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
9307
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9308
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.createSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9309
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9310
+ });
9311
+ },
8321
9312
  /**
8322
9313
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8323
9314
  * @summary Delete Slack Bot
@@ -8374,6 +9365,24 @@ export const AISlackBotsApiFp = function (configuration) {
8374
9365
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8375
9366
  });
8376
9367
  },
9368
+ /**
9369
+ * 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.
9370
+ * @summary Read an external Slack interaction
9371
+ * @param {string} organisation
9372
+ * @param {string} botId
9373
+ * @param {string} interactionId
9374
+ * @param {*} [options] Override http request option.
9375
+ * @throws {RequiredError}
9376
+ */
9377
+ getSlackInteraction(organisation, botId, interactionId, options) {
9378
+ return __awaiter(this, void 0, void 0, function* () {
9379
+ var _a, _b, _c;
9380
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
9381
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9382
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.getSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9383
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9384
+ });
9385
+ },
8377
9386
  /**
8378
9387
  * 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.
8379
9388
  * @summary Read recent channel messages
@@ -8427,6 +9436,25 @@ export const AISlackBotsApiFp = function (configuration) {
8427
9436
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8428
9437
  });
8429
9438
  },
9439
+ /**
9440
+ * 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.
9441
+ * @summary Post an image as the bot
9442
+ * @param {string} organisation The organisation machine name
9443
+ * @param {string} botId
9444
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9445
+ * @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.
9446
+ * @param {*} [options] Override http request option.
9447
+ * @throws {RequiredError}
9448
+ */
9449
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9450
+ return __awaiter(this, void 0, void 0, function* () {
9451
+ var _a, _b, _c;
9452
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
9453
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9454
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.postSlackBotFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
9455
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9456
+ });
9457
+ },
8430
9458
  /**
8431
9459
  * 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.
8432
9460
  * @summary Post a message as the bot
@@ -8509,6 +9537,18 @@ export const AISlackBotsApiFp = function (configuration) {
8509
9537
  export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8510
9538
  const localVarFp = AISlackBotsApiFp(configuration);
8511
9539
  return {
9540
+ /**
9541
+ *
9542
+ * @summary Cancel an unanswered Slack interaction
9543
+ * @param {string} organisation
9544
+ * @param {string} botId
9545
+ * @param {string} interactionId
9546
+ * @param {*} [options] Override http request option.
9547
+ * @throws {RequiredError}
9548
+ */
9549
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9550
+ return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
9551
+ },
8512
9552
  /**
8513
9553
  * 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
8514
9554
  * @summary Create Slack Bot
@@ -8520,6 +9560,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8520
9560
  createSlackBot(organisation, createSlackBotRequest, options) {
8521
9561
  return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
8522
9562
  },
9563
+ /**
9564
+ * 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.
9565
+ * @summary Ask for a single Slack button response
9566
+ * @param {string} organisation
9567
+ * @param {string} botId
9568
+ * @param {string} idempotencyKey
9569
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9570
+ * @param {*} [options] Override http request option.
9571
+ * @throws {RequiredError}
9572
+ */
9573
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9574
+ return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
9575
+ },
8523
9576
  /**
8524
9577
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8525
9578
  * @summary Delete Slack Bot
@@ -8558,6 +9611,18 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8558
9611
  getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
8559
9612
  return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
8560
9613
  },
9614
+ /**
9615
+ * 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.
9616
+ * @summary Read an external Slack interaction
9617
+ * @param {string} organisation
9618
+ * @param {string} botId
9619
+ * @param {string} interactionId
9620
+ * @param {*} [options] Override http request option.
9621
+ * @throws {RequiredError}
9622
+ */
9623
+ getSlackInteraction(organisation, botId, interactionId, options) {
9624
+ return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
9625
+ },
8561
9626
  /**
8562
9627
  * 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.
8563
9628
  * @summary Read recent channel messages
@@ -8593,6 +9658,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8593
9658
  listSlackBotsApiEnabled(organisation, options) {
8594
9659
  return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
8595
9660
  },
9661
+ /**
9662
+ * 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.
9663
+ * @summary Post an image as the bot
9664
+ * @param {string} organisation The organisation machine name
9665
+ * @param {string} botId
9666
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9667
+ * @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.
9668
+ * @param {*} [options] Override http request option.
9669
+ * @throws {RequiredError}
9670
+ */
9671
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9672
+ return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
9673
+ },
8596
9674
  /**
8597
9675
  * 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.
8598
9676
  * @summary Post a message as the bot
@@ -8651,6 +9729,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8651
9729
  * @extends {BaseAPI}
8652
9730
  */
8653
9731
  export class AISlackBotsApi extends BaseAPI {
9732
+ /**
9733
+ *
9734
+ * @summary Cancel an unanswered Slack interaction
9735
+ * @param {string} organisation
9736
+ * @param {string} botId
9737
+ * @param {string} interactionId
9738
+ * @param {*} [options] Override http request option.
9739
+ * @throws {RequiredError}
9740
+ * @memberof AISlackBotsApi
9741
+ */
9742
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9743
+ return AISlackBotsApiFp(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
9744
+ }
8654
9745
  /**
8655
9746
  * 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
8656
9747
  * @summary Create Slack Bot
@@ -8663,6 +9754,20 @@ export class AISlackBotsApi extends BaseAPI {
8663
9754
  createSlackBot(organisation, createSlackBotRequest, options) {
8664
9755
  return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
8665
9756
  }
9757
+ /**
9758
+ * 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.
9759
+ * @summary Ask for a single Slack button response
9760
+ * @param {string} organisation
9761
+ * @param {string} botId
9762
+ * @param {string} idempotencyKey
9763
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9764
+ * @param {*} [options] Override http request option.
9765
+ * @throws {RequiredError}
9766
+ * @memberof AISlackBotsApi
9767
+ */
9768
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9769
+ return AISlackBotsApiFp(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
9770
+ }
8666
9771
  /**
8667
9772
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8668
9773
  * @summary Delete Slack Bot
@@ -8704,6 +9809,19 @@ export class AISlackBotsApi extends BaseAPI {
8704
9809
  getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
8705
9810
  return AISlackBotsApiFp(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
8706
9811
  }
9812
+ /**
9813
+ * 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.
9814
+ * @summary Read an external Slack interaction
9815
+ * @param {string} organisation
9816
+ * @param {string} botId
9817
+ * @param {string} interactionId
9818
+ * @param {*} [options] Override http request option.
9819
+ * @throws {RequiredError}
9820
+ * @memberof AISlackBotsApi
9821
+ */
9822
+ getSlackInteraction(organisation, botId, interactionId, options) {
9823
+ return AISlackBotsApiFp(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
9824
+ }
8707
9825
  /**
8708
9826
  * 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.
8709
9827
  * @summary Read recent channel messages
@@ -8742,6 +9860,20 @@ export class AISlackBotsApi extends BaseAPI {
8742
9860
  listSlackBotsApiEnabled(organisation, options) {
8743
9861
  return AISlackBotsApiFp(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
8744
9862
  }
9863
+ /**
9864
+ * 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.
9865
+ * @summary Post an image as the bot
9866
+ * @param {string} organisation The organisation machine name
9867
+ * @param {string} botId
9868
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9869
+ * @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.
9870
+ * @param {*} [options] Override http request option.
9871
+ * @throws {RequiredError}
9872
+ * @memberof AISlackBotsApi
9873
+ */
9874
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9875
+ return AISlackBotsApiFp(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
9876
+ }
8745
9877
  /**
8746
9878
  * 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.
8747
9879
  * @summary Post a message as the bot
@@ -17797,7 +18929,7 @@ export const KVApiAxiosParamCreator = function (configuration) {
17797
18929
  };
17798
18930
  }),
17799
18931
  /**
17800
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
18932
+ * 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).
17801
18933
  * @summary Set a key, optionally only if absent or only at a version
17802
18934
  * @param {string} organization Organization identifier
17803
18935
  * @param {string} project Project identifier
@@ -20239,7 +21371,7 @@ export const KVApiFp = function (configuration) {
20239
21371
  });
20240
21372
  },
20241
21373
  /**
20242
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
21374
+ * 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).
20243
21375
  * @summary Set a key, optionally only if absent or only at a version
20244
21376
  * @param {string} organization Organization identifier
20245
21377
  * @param {string} project Project identifier
@@ -21306,7 +22438,7 @@ export const KVApiFactory = function (configuration, basePath, axios) {
21306
22438
  return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
21307
22439
  },
21308
22440
  /**
21309
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
22441
+ * 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).
21310
22442
  * @summary Set a key, optionally only if absent or only at a version
21311
22443
  * @param {string} organization Organization identifier
21312
22444
  * @param {string} project Project identifier
@@ -22094,7 +23226,7 @@ export class KVApi extends BaseAPI {
22094
23226
  return KVApiFp(this.configuration).kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(this.axios, this.basePath));
22095
23227
  }
22096
23228
  /**
22097
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
23229
+ * 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).
22098
23230
  * @summary Set a key, optionally only if absent or only at a version
22099
23231
  * @param {string} organization Organization identifier
22100
23232
  * @param {string} project Project identifier
@@ -23286,7 +24418,7 @@ export class OrganizationsApi extends BaseAPI {
23286
24418
  export const ProjectsApiAxiosParamCreator = function (configuration) {
23287
24419
  return {
23288
24420
  /**
23289
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24421
+ * 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.
23290
24422
  * @summary Get CDN access logs for a project
23291
24423
  * @param {string} organization The organization machine name
23292
24424
  * @param {string} project The project machine name
@@ -23543,7 +24675,7 @@ export const ProjectsApiFp = function (configuration) {
23543
24675
  const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
23544
24676
  return {
23545
24677
  /**
23546
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24678
+ * 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.
23547
24679
  * @summary Get CDN access logs for a project
23548
24680
  * @param {string} organization The organization machine name
23549
24681
  * @param {string} project The project machine name
@@ -23661,7 +24793,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
23661
24793
  const localVarFp = ProjectsApiFp(configuration);
23662
24794
  return {
23663
24795
  /**
23664
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24796
+ * 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.
23665
24797
  * @summary Get CDN access logs for a project
23666
24798
  * @param {string} organization The organization machine name
23667
24799
  * @param {string} project The project machine name
@@ -23743,7 +24875,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
23743
24875
  */
23744
24876
  export class ProjectsApi extends BaseAPI {
23745
24877
  /**
23746
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24878
+ * 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.
23747
24879
  * @summary Get CDN access logs for a project
23748
24880
  * @param {string} organization The organization machine name
23749
24881
  * @param {string} project The project machine name
@@ -26520,36 +27652,72 @@ export const RulesApiAxiosParamCreator = function (configuration) {
26520
27652
  * @param {*} [options] Override http request option.
26521
27653
  * @throws {RequiredError}
26522
27654
  */
26523
- rulesHeadersUpdate: (organization_1, project_1, rule_1, v2RuleHeaderRequest_1, ...args_1) => __awaiter(this, [organization_1, project_1, rule_1, v2RuleHeaderRequest_1, ...args_1], void 0, function* (organization, project, rule, v2RuleHeaderRequest, options = {}) {
27655
+ rulesHeadersUpdate: (organization_1, project_1, rule_1, v2RuleHeaderRequest_1, ...args_1) => __awaiter(this, [organization_1, project_1, rule_1, v2RuleHeaderRequest_1, ...args_1], void 0, function* (organization, project, rule, v2RuleHeaderRequest, options = {}) {
27656
+ // verify required parameter 'organization' is not null or undefined
27657
+ assertParamExists('rulesHeadersUpdate', 'organization', organization);
27658
+ // verify required parameter 'project' is not null or undefined
27659
+ assertParamExists('rulesHeadersUpdate', 'project', project);
27660
+ // verify required parameter 'rule' is not null or undefined
27661
+ assertParamExists('rulesHeadersUpdate', 'rule', rule);
27662
+ // verify required parameter 'v2RuleHeaderRequest' is not null or undefined
27663
+ assertParamExists('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
27664
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
27665
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
27666
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
27667
+ .replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
27668
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27669
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
27670
+ let baseOptions;
27671
+ if (configuration) {
27672
+ baseOptions = configuration.baseOptions;
27673
+ }
27674
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
27675
+ const localVarHeaderParameter = {};
27676
+ const localVarQueryParameter = {};
27677
+ // authentication BearerAuth required
27678
+ // http bearer authentication required
27679
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
27680
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27681
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
27682
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27683
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27684
+ localVarRequestOptions.data = serializeDataIfNeeded(v2RuleHeaderRequest, localVarRequestOptions, configuration);
27685
+ return {
27686
+ url: toPathString(localVarUrlObj),
27687
+ options: localVarRequestOptions,
27688
+ };
27689
+ }),
27690
+ /**
27691
+ * 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.
27692
+ * @summary List all rules in edge order
27693
+ * @param {string} organization
27694
+ * @param {string} project
27695
+ * @param {*} [options] Override http request option.
27696
+ * @throws {RequiredError}
27697
+ */
27698
+ rulesIndexList: (organization_1, project_1, ...args_1) => __awaiter(this, [organization_1, project_1, ...args_1], void 0, function* (organization, project, options = {}) {
26524
27699
  // verify required parameter 'organization' is not null or undefined
26525
- assertParamExists('rulesHeadersUpdate', 'organization', organization);
27700
+ assertParamExists('rulesIndexList', 'organization', organization);
26526
27701
  // verify required parameter 'project' is not null or undefined
26527
- assertParamExists('rulesHeadersUpdate', 'project', project);
26528
- // verify required parameter 'rule' is not null or undefined
26529
- assertParamExists('rulesHeadersUpdate', 'rule', rule);
26530
- // verify required parameter 'v2RuleHeaderRequest' is not null or undefined
26531
- assertParamExists('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
26532
- const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
27702
+ assertParamExists('rulesIndexList', 'project', project);
27703
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
26533
27704
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
26534
- .replace(`{${"project"}}`, encodeURIComponent(String(project)))
26535
- .replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
27705
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
26536
27706
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26537
27707
  const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
26538
27708
  let baseOptions;
26539
27709
  if (configuration) {
26540
27710
  baseOptions = configuration.baseOptions;
26541
27711
  }
26542
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
27712
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
26543
27713
  const localVarHeaderParameter = {};
26544
27714
  const localVarQueryParameter = {};
26545
27715
  // authentication BearerAuth required
26546
27716
  // http bearer authentication required
26547
27717
  yield setBearerAuthToObject(localVarHeaderParameter, configuration);
26548
- localVarHeaderParameter['Content-Type'] = 'application/json';
26549
27718
  setSearchParams(localVarUrlObj, localVarQueryParameter);
26550
27719
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26551
27720
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26552
- localVarRequestOptions.data = serializeDataIfNeeded(v2RuleHeaderRequest, localVarRequestOptions, configuration);
26553
27721
  return {
26554
27722
  url: toPathString(localVarUrlObj),
26555
27723
  options: localVarRequestOptions,
@@ -27890,6 +29058,23 @@ export const RulesApiFp = function (configuration) {
27890
29058
  return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
27891
29059
  });
27892
29060
  },
29061
+ /**
29062
+ * 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.
29063
+ * @summary List all rules in edge order
29064
+ * @param {string} organization
29065
+ * @param {string} project
29066
+ * @param {*} [options] Override http request option.
29067
+ * @throws {RequiredError}
29068
+ */
29069
+ rulesIndexList(organization, project, options) {
29070
+ return __awaiter(this, void 0, void 0, function* () {
29071
+ var _a, _b, _c;
29072
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rulesIndexList(organization, project, options);
29073
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29074
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RulesApi.rulesIndexList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
29075
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29076
+ });
29077
+ },
27893
29078
  /**
27894
29079
  *
27895
29080
  * @summary Create a proxy rule
@@ -28649,6 +29834,17 @@ export const RulesApiFactory = function (configuration, basePath, axios) {
28649
29834
  rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
28650
29835
  return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
28651
29836
  },
29837
+ /**
29838
+ * 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.
29839
+ * @summary List all rules in edge order
29840
+ * @param {string} organization
29841
+ * @param {string} project
29842
+ * @param {*} [options] Override http request option.
29843
+ * @throws {RequiredError}
29844
+ */
29845
+ rulesIndexList(organization, project, options) {
29846
+ return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
29847
+ },
28652
29848
  /**
28653
29849
  *
28654
29850
  * @summary Create a proxy rule
@@ -29358,6 +30554,18 @@ export class RulesApi extends BaseAPI {
29358
30554
  rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
29359
30555
  return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
29360
30556
  }
30557
+ /**
30558
+ * 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.
30559
+ * @summary List all rules in edge order
30560
+ * @param {string} organization
30561
+ * @param {string} project
30562
+ * @param {*} [options] Override http request option.
30563
+ * @throws {RequiredError}
30564
+ * @memberof RulesApi
30565
+ */
30566
+ rulesIndexList(organization, project, options) {
30567
+ return RulesApiFp(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
30568
+ }
29361
30569
  /**
29362
30570
  *
29363
30571
  * @summary Create a proxy rule
@@ -30013,6 +31221,311 @@ export const ListScalingPoliciesMetricEnum = {
30013
31221
  MemoryUtilization: 'MemoryUtilization',
30014
31222
  Rps: 'RPS'
30015
31223
  };
31224
+ /**
31225
+ * SecretsApi - axios parameter creator
31226
+ * @export
31227
+ */
31228
+ export const SecretsApiAxiosParamCreator = function (configuration) {
31229
+ return {
31230
+ /**
31231
+ * 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.
31232
+ * @summary Delete a secret
31233
+ * @param {string} apiOrganisation The organisation ID
31234
+ * @param {string} apiApplication The application ID
31235
+ * @param {string} apiEnvironment The environment ID
31236
+ * @param {string} apiSecret The secret key
31237
+ * @param {*} [options] Override http request option.
31238
+ * @throws {RequiredError}
31239
+ */
31240
+ deleteEnvironmentSecret: (apiOrganisation_1, apiApplication_1, apiEnvironment_1, apiSecret_1, ...args_1) => __awaiter(this, [apiOrganisation_1, apiApplication_1, apiEnvironment_1, apiSecret_1, ...args_1], void 0, function* (apiOrganisation, apiApplication, apiEnvironment, apiSecret, options = {}) {
31241
+ // verify required parameter 'apiOrganisation' is not null or undefined
31242
+ assertParamExists('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation);
31243
+ // verify required parameter 'apiApplication' is not null or undefined
31244
+ assertParamExists('deleteEnvironmentSecret', 'apiApplication', apiApplication);
31245
+ // verify required parameter 'apiEnvironment' is not null or undefined
31246
+ assertParamExists('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment);
31247
+ // verify required parameter 'apiSecret' is not null or undefined
31248
+ assertParamExists('deleteEnvironmentSecret', 'apiSecret', apiSecret);
31249
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
31250
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31251
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31252
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
31253
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
31254
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31255
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31256
+ let baseOptions;
31257
+ if (configuration) {
31258
+ baseOptions = configuration.baseOptions;
31259
+ }
31260
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
31261
+ const localVarHeaderParameter = {};
31262
+ const localVarQueryParameter = {};
31263
+ // authentication BearerAuth required
31264
+ // http bearer authentication required
31265
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
31266
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31267
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31268
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31269
+ return {
31270
+ url: toPathString(localVarUrlObj),
31271
+ options: localVarRequestOptions,
31272
+ };
31273
+ }),
31274
+ /**
31275
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31276
+ * @summary List the secret names for an environment
31277
+ * @param {string} apiOrganisation The organisation ID
31278
+ * @param {string} apiApplication The application ID
31279
+ * @param {string} apiEnvironment The environment ID
31280
+ * @param {*} [options] Override http request option.
31281
+ * @throws {RequiredError}
31282
+ */
31283
+ listEnvironmentSecrets: (apiOrganisation_1, apiApplication_1, apiEnvironment_1, ...args_1) => __awaiter(this, [apiOrganisation_1, apiApplication_1, apiEnvironment_1, ...args_1], void 0, function* (apiOrganisation, apiApplication, apiEnvironment, options = {}) {
31284
+ // verify required parameter 'apiOrganisation' is not null or undefined
31285
+ assertParamExists('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation);
31286
+ // verify required parameter 'apiApplication' is not null or undefined
31287
+ assertParamExists('listEnvironmentSecrets', 'apiApplication', apiApplication);
31288
+ // verify required parameter 'apiEnvironment' is not null or undefined
31289
+ assertParamExists('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment);
31290
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
31291
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31292
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31293
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
31294
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31295
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31296
+ let baseOptions;
31297
+ if (configuration) {
31298
+ baseOptions = configuration.baseOptions;
31299
+ }
31300
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
31301
+ const localVarHeaderParameter = {};
31302
+ const localVarQueryParameter = {};
31303
+ // authentication BearerAuth required
31304
+ // http bearer authentication required
31305
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
31306
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31307
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31308
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31309
+ return {
31310
+ url: toPathString(localVarUrlObj),
31311
+ options: localVarRequestOptions,
31312
+ };
31313
+ }),
31314
+ /**
31315
+ * 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.
31316
+ * @summary Create or replace a secret
31317
+ * @param {string} apiOrganisation The organisation ID
31318
+ * @param {string} apiApplication The application ID
31319
+ * @param {string} apiEnvironment The environment ID
31320
+ * @param {string} apiSecret The secret key
31321
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31322
+ * @param {*} [options] Override http request option.
31323
+ * @throws {RequiredError}
31324
+ */
31325
+ updateEnvironmentSecret: (apiOrganisation_1, apiApplication_1, apiEnvironment_1, apiSecret_1, updateEnvironmentSecretRequest_1, ...args_1) => __awaiter(this, [apiOrganisation_1, apiApplication_1, apiEnvironment_1, apiSecret_1, updateEnvironmentSecretRequest_1, ...args_1], void 0, function* (apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options = {}) {
31326
+ // verify required parameter 'apiOrganisation' is not null or undefined
31327
+ assertParamExists('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation);
31328
+ // verify required parameter 'apiApplication' is not null or undefined
31329
+ assertParamExists('updateEnvironmentSecret', 'apiApplication', apiApplication);
31330
+ // verify required parameter 'apiEnvironment' is not null or undefined
31331
+ assertParamExists('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment);
31332
+ // verify required parameter 'apiSecret' is not null or undefined
31333
+ assertParamExists('updateEnvironmentSecret', 'apiSecret', apiSecret);
31334
+ // verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
31335
+ assertParamExists('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest);
31336
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
31337
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31338
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31339
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
31340
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
31341
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31342
+ const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
31343
+ let baseOptions;
31344
+ if (configuration) {
31345
+ baseOptions = configuration.baseOptions;
31346
+ }
31347
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
31348
+ const localVarHeaderParameter = {};
31349
+ const localVarQueryParameter = {};
31350
+ // authentication BearerAuth required
31351
+ // http bearer authentication required
31352
+ yield setBearerAuthToObject(localVarHeaderParameter, configuration);
31353
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31354
+ setSearchParams(localVarUrlObj, localVarQueryParameter);
31355
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31356
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31357
+ localVarRequestOptions.data = serializeDataIfNeeded(updateEnvironmentSecretRequest, localVarRequestOptions, configuration);
31358
+ return {
31359
+ url: toPathString(localVarUrlObj),
31360
+ options: localVarRequestOptions,
31361
+ };
31362
+ }),
31363
+ };
31364
+ };
31365
+ /**
31366
+ * SecretsApi - functional programming interface
31367
+ * @export
31368
+ */
31369
+ export const SecretsApiFp = function (configuration) {
31370
+ const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration);
31371
+ return {
31372
+ /**
31373
+ * 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.
31374
+ * @summary Delete a secret
31375
+ * @param {string} apiOrganisation The organisation ID
31376
+ * @param {string} apiApplication The application ID
31377
+ * @param {string} apiEnvironment The environment ID
31378
+ * @param {string} apiSecret The secret key
31379
+ * @param {*} [options] Override http request option.
31380
+ * @throws {RequiredError}
31381
+ */
31382
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31383
+ return __awaiter(this, void 0, void 0, function* () {
31384
+ var _a, _b, _c;
31385
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
31386
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31387
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.deleteEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
31388
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31389
+ });
31390
+ },
31391
+ /**
31392
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31393
+ * @summary List the secret names for an environment
31394
+ * @param {string} apiOrganisation The organisation ID
31395
+ * @param {string} apiApplication The application ID
31396
+ * @param {string} apiEnvironment The environment ID
31397
+ * @param {*} [options] Override http request option.
31398
+ * @throws {RequiredError}
31399
+ */
31400
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31401
+ return __awaiter(this, void 0, void 0, function* () {
31402
+ var _a, _b, _c;
31403
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
31404
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31405
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.listEnvironmentSecrets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
31406
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31407
+ });
31408
+ },
31409
+ /**
31410
+ * 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.
31411
+ * @summary Create or replace a secret
31412
+ * @param {string} apiOrganisation The organisation ID
31413
+ * @param {string} apiApplication The application ID
31414
+ * @param {string} apiEnvironment The environment ID
31415
+ * @param {string} apiSecret The secret key
31416
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31417
+ * @param {*} [options] Override http request option.
31418
+ * @throws {RequiredError}
31419
+ */
31420
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31421
+ return __awaiter(this, void 0, void 0, function* () {
31422
+ var _a, _b, _c;
31423
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
31424
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31425
+ const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.updateEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
31426
+ return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31427
+ });
31428
+ },
31429
+ };
31430
+ };
31431
+ /**
31432
+ * SecretsApi - factory interface
31433
+ * @export
31434
+ */
31435
+ export const SecretsApiFactory = function (configuration, basePath, axios) {
31436
+ const localVarFp = SecretsApiFp(configuration);
31437
+ return {
31438
+ /**
31439
+ * 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.
31440
+ * @summary Delete a secret
31441
+ * @param {string} apiOrganisation The organisation ID
31442
+ * @param {string} apiApplication The application ID
31443
+ * @param {string} apiEnvironment The environment ID
31444
+ * @param {string} apiSecret The secret key
31445
+ * @param {*} [options] Override http request option.
31446
+ * @throws {RequiredError}
31447
+ */
31448
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31449
+ return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
31450
+ },
31451
+ /**
31452
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31453
+ * @summary List the secret names for an environment
31454
+ * @param {string} apiOrganisation The organisation ID
31455
+ * @param {string} apiApplication The application ID
31456
+ * @param {string} apiEnvironment The environment ID
31457
+ * @param {*} [options] Override http request option.
31458
+ * @throws {RequiredError}
31459
+ */
31460
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31461
+ return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
31462
+ },
31463
+ /**
31464
+ * 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.
31465
+ * @summary Create or replace a secret
31466
+ * @param {string} apiOrganisation The organisation ID
31467
+ * @param {string} apiApplication The application ID
31468
+ * @param {string} apiEnvironment The environment ID
31469
+ * @param {string} apiSecret The secret key
31470
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31471
+ * @param {*} [options] Override http request option.
31472
+ * @throws {RequiredError}
31473
+ */
31474
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31475
+ return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
31476
+ },
31477
+ };
31478
+ };
31479
+ /**
31480
+ * SecretsApi - object-oriented interface
31481
+ * @export
31482
+ * @class SecretsApi
31483
+ * @extends {BaseAPI}
31484
+ */
31485
+ export class SecretsApi extends BaseAPI {
31486
+ /**
31487
+ * 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.
31488
+ * @summary Delete a secret
31489
+ * @param {string} apiOrganisation The organisation ID
31490
+ * @param {string} apiApplication The application ID
31491
+ * @param {string} apiEnvironment The environment ID
31492
+ * @param {string} apiSecret The secret key
31493
+ * @param {*} [options] Override http request option.
31494
+ * @throws {RequiredError}
31495
+ * @memberof SecretsApi
31496
+ */
31497
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31498
+ return SecretsApiFp(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
31499
+ }
31500
+ /**
31501
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31502
+ * @summary List the secret names for an environment
31503
+ * @param {string} apiOrganisation The organisation ID
31504
+ * @param {string} apiApplication The application ID
31505
+ * @param {string} apiEnvironment The environment ID
31506
+ * @param {*} [options] Override http request option.
31507
+ * @throws {RequiredError}
31508
+ * @memberof SecretsApi
31509
+ */
31510
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31511
+ return SecretsApiFp(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
31512
+ }
31513
+ /**
31514
+ * 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.
31515
+ * @summary Create or replace a secret
31516
+ * @param {string} apiOrganisation The organisation ID
31517
+ * @param {string} apiApplication The application ID
31518
+ * @param {string} apiEnvironment The environment ID
31519
+ * @param {string} apiSecret The secret key
31520
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31521
+ * @param {*} [options] Override http request option.
31522
+ * @throws {RequiredError}
31523
+ * @memberof SecretsApi
31524
+ */
31525
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31526
+ return SecretsApiFp(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
31527
+ }
31528
+ }
30016
31529
  /**
30017
31530
  * SubscriptionApi - axios parameter creator
30018
31531
  * @export