@quantcdn/quant-client 4.29.0 → 4.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -6
- package/api.ts +2491 -78
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +1623 -78
- package/dist/api.js +1819 -228
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +1623 -78
- package/dist/esm/api.js +1803 -220
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/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.
|
|
7
|
+
* The version of the OpenAPI document: 4.31.0
|
|
8
8
|
*
|
|
9
9
|
*
|
|
10
10
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -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',
|
|
@@ -104,6 +114,13 @@ export const ContainerImageReferenceTypeEnum = {
|
|
|
104
114
|
Internal: 'internal',
|
|
105
115
|
External: 'external'
|
|
106
116
|
};
|
|
117
|
+
export const CreateAIAgentRequestReasoningEffortEnum = {
|
|
118
|
+
Low: 'low',
|
|
119
|
+
Medium: 'medium',
|
|
120
|
+
High: 'high',
|
|
121
|
+
Xhigh: 'xhigh',
|
|
122
|
+
Max: 'max'
|
|
123
|
+
};
|
|
107
124
|
export const CreateAIAgentRequestGuardrailPresetEnum = {
|
|
108
125
|
Official: 'official',
|
|
109
126
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -157,6 +174,20 @@ export const CreateSlackBotRequestSetupTypeEnum = {
|
|
|
157
174
|
Quant: 'quant',
|
|
158
175
|
Byo: 'byo'
|
|
159
176
|
};
|
|
177
|
+
export const CreateSlackBotRequestReasoningEffortEnum = {
|
|
178
|
+
Low: 'low',
|
|
179
|
+
Medium: 'medium',
|
|
180
|
+
High: 'high',
|
|
181
|
+
Xhigh: 'xhigh',
|
|
182
|
+
Max: 'max'
|
|
183
|
+
};
|
|
184
|
+
export const CreateSlackInteractionRequestResponseModeEnum = {
|
|
185
|
+
Single: 'single'
|
|
186
|
+
};
|
|
187
|
+
export const CreateSlackInteractionRequestActionsInnerStyleEnum = {
|
|
188
|
+
Primary: 'primary',
|
|
189
|
+
Danger: 'danger'
|
|
190
|
+
};
|
|
160
191
|
export const CreateTaskRequestStatusEnum = {
|
|
161
192
|
Pending: 'pending',
|
|
162
193
|
InProgress: 'in_progress',
|
|
@@ -165,6 +196,15 @@ export const CreateTaskRequestStatusEnum = {
|
|
|
165
196
|
Cancelled: 'cancelled',
|
|
166
197
|
Blocked: 'blocked'
|
|
167
198
|
};
|
|
199
|
+
export const CronLastRunStatusEnum = {
|
|
200
|
+
Pending: 'PENDING',
|
|
201
|
+
Running: 'RUNNING',
|
|
202
|
+
Succeeded: 'SUCCEEDED',
|
|
203
|
+
Failed: 'FAILED',
|
|
204
|
+
FailedToStart: 'FAILED_TO_START',
|
|
205
|
+
Expired: 'EXPIRED',
|
|
206
|
+
TimedOut: 'TIMED_OUT'
|
|
207
|
+
};
|
|
168
208
|
export const CronRunRunTypeEnum = {
|
|
169
209
|
Exec: 'EXEC',
|
|
170
210
|
Cron: 'CRON'
|
|
@@ -174,6 +214,8 @@ export const CronRunStatusEnum = {
|
|
|
174
214
|
Running: 'RUNNING',
|
|
175
215
|
Succeeded: 'SUCCEEDED',
|
|
176
216
|
Failed: 'FAILED',
|
|
217
|
+
FailedToStart: 'FAILED_TO_START',
|
|
218
|
+
Expired: 'EXPIRED',
|
|
177
219
|
TimedOut: 'TIMED_OUT',
|
|
178
220
|
Unknown: 'UNKNOWN'
|
|
179
221
|
};
|
|
@@ -212,6 +254,13 @@ export const EnvironmentSummaryDeploymentStatusEnum = {
|
|
|
212
254
|
InProgress: 'IN_PROGRESS',
|
|
213
255
|
Failed: 'FAILED'
|
|
214
256
|
};
|
|
257
|
+
export const GetAIAgent200ResponseAgentReasoningEffortEnum = {
|
|
258
|
+
Low: 'low',
|
|
259
|
+
Medium: 'medium',
|
|
260
|
+
High: 'high',
|
|
261
|
+
Xhigh: 'xhigh',
|
|
262
|
+
Max: 'max'
|
|
263
|
+
};
|
|
215
264
|
export const GetAIOrchestrationStatus200ResponseStatusEnum = {
|
|
216
265
|
Pending: 'pending',
|
|
217
266
|
WaitingTools: 'waiting_tools',
|
|
@@ -225,6 +274,13 @@ export const GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = {
|
|
|
225
274
|
Complete: 'complete',
|
|
226
275
|
Failed: 'failed'
|
|
227
276
|
};
|
|
277
|
+
export const GetAgentOverlay200ResponseOverlayReasoningEffortEnum = {
|
|
278
|
+
Low: 'low',
|
|
279
|
+
Medium: 'medium',
|
|
280
|
+
High: 'high',
|
|
281
|
+
Xhigh: 'xhigh',
|
|
282
|
+
Max: 'max'
|
|
283
|
+
};
|
|
228
284
|
export const GetCustomTool200ResponseToolResponseModeEnum = {
|
|
229
285
|
Llm: 'llm',
|
|
230
286
|
Direct: 'direct'
|
|
@@ -260,6 +316,13 @@ export const GetSlackBot200ResponseBotStatusEnum = {
|
|
|
260
316
|
Active: 'active',
|
|
261
317
|
Inactive: 'inactive'
|
|
262
318
|
};
|
|
319
|
+
export const GetSlackBot200ResponseBotReasoningEffortEnum = {
|
|
320
|
+
Low: 'low',
|
|
321
|
+
Medium: 'medium',
|
|
322
|
+
High: 'high',
|
|
323
|
+
Xhigh: 'xhigh',
|
|
324
|
+
Max: 'max'
|
|
325
|
+
};
|
|
263
326
|
export const GetSlackBotThread200ResponseContentTrustEnum = {
|
|
264
327
|
Untrusted: 'untrusted'
|
|
265
328
|
};
|
|
@@ -283,6 +346,13 @@ export const ImportSkillRequestSourceTypeEnum = {
|
|
|
283
346
|
SkillsSh: 'skills.sh',
|
|
284
347
|
Github: 'github'
|
|
285
348
|
};
|
|
349
|
+
export const ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = {
|
|
350
|
+
Low: 'low',
|
|
351
|
+
Medium: 'medium',
|
|
352
|
+
High: 'high',
|
|
353
|
+
Xhigh: 'xhigh',
|
|
354
|
+
Max: 'max'
|
|
355
|
+
};
|
|
286
356
|
export const ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = {
|
|
287
357
|
Pending: 'pending',
|
|
288
358
|
Running: 'running',
|
|
@@ -300,6 +370,13 @@ export const ListSlackBots200ResponseBotsInnerStatusEnum = {
|
|
|
300
370
|
Active: 'active',
|
|
301
371
|
Inactive: 'inactive'
|
|
302
372
|
};
|
|
373
|
+
export const ListSlackBots200ResponseBotsInnerReasoningEffortEnum = {
|
|
374
|
+
Low: 'low',
|
|
375
|
+
Medium: 'medium',
|
|
376
|
+
High: 'high',
|
|
377
|
+
Xhigh: 'xhigh',
|
|
378
|
+
Max: 'max'
|
|
379
|
+
};
|
|
303
380
|
export const ListTasks200ResponseTasksInnerStatusEnum = {
|
|
304
381
|
Pending: 'pending',
|
|
305
382
|
InProgress: 'in_progress',
|
|
@@ -328,10 +405,13 @@ export const OaiChatCompletionsRequestMessagesInnerRoleEnum = {
|
|
|
328
405
|
};
|
|
329
406
|
export const OrgResourceTypeEnum = {
|
|
330
407
|
ObjectStorage: 'object-storage',
|
|
331
|
-
Valkey: 'valkey'
|
|
408
|
+
Valkey: 'valkey',
|
|
409
|
+
CiRunnerPool: 'ci-runner-pool'
|
|
332
410
|
};
|
|
333
411
|
export const OrgResourceStatusEnum = {
|
|
334
412
|
Provisioning: 'provisioning',
|
|
413
|
+
Creating: 'creating',
|
|
414
|
+
Updating: 'updating',
|
|
335
415
|
Available: 'available',
|
|
336
416
|
Deleting: 'deleting',
|
|
337
417
|
Error: 'error'
|
|
@@ -346,6 +426,13 @@ export const PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
|
346
426
|
MixedSafe: 'mixed-safe',
|
|
347
427
|
MixedAggressive: 'mixed-aggressive'
|
|
348
428
|
};
|
|
429
|
+
export const ProjectsDelete409ResponseCodeEnum = {
|
|
430
|
+
KvLedgerPresent: 'KV_LEDGER_PRESENT'
|
|
431
|
+
};
|
|
432
|
+
export const ProjectsDelete503ResponseCodeEnum = {
|
|
433
|
+
KvStoresUnreadable: 'KV_STORES_UNREADABLE',
|
|
434
|
+
KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
|
|
435
|
+
};
|
|
349
436
|
export const PurgeCreateRequestScopeEnum = {
|
|
350
437
|
Project: 'project',
|
|
351
438
|
Org: 'org'
|
|
@@ -396,6 +483,13 @@ export const TokensCreateRequestExpiresInEnum = {
|
|
|
396
483
|
_365d: '365d',
|
|
397
484
|
Never: 'never'
|
|
398
485
|
};
|
|
486
|
+
export const UpdateAIAgentRequestReasoningEffortEnum = {
|
|
487
|
+
Low: 'low',
|
|
488
|
+
Medium: 'medium',
|
|
489
|
+
High: 'high',
|
|
490
|
+
Xhigh: 'xhigh',
|
|
491
|
+
Max: 'max'
|
|
492
|
+
};
|
|
399
493
|
export const UpdateAIAgentRequestGuardrailPresetEnum = {
|
|
400
494
|
Official: 'official',
|
|
401
495
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -423,6 +517,13 @@ export const UpdateSlackBotRequestStatusEnum = {
|
|
|
423
517
|
Active: 'active',
|
|
424
518
|
Inactive: 'inactive'
|
|
425
519
|
};
|
|
520
|
+
export const UpdateSlackBotRequestReasoningEffortEnum = {
|
|
521
|
+
Low: 'low',
|
|
522
|
+
Medium: 'medium',
|
|
523
|
+
High: 'high',
|
|
524
|
+
Xhigh: 'xhigh',
|
|
525
|
+
Max: 'max'
|
|
526
|
+
};
|
|
426
527
|
export const UpdateTaskRequestStatusEnum = {
|
|
427
528
|
Pending: 'pending',
|
|
428
529
|
InProgress: 'in_progress',
|
|
@@ -436,6 +537,13 @@ export const UpsertAgentOverlayRequestGuardrailPresetEnum = {
|
|
|
436
537
|
OfficialSensitive: 'official-sensitive',
|
|
437
538
|
Protected: 'protected'
|
|
438
539
|
};
|
|
540
|
+
export const UpsertAgentOverlayRequestReasoningEffortEnum = {
|
|
541
|
+
Low: 'low',
|
|
542
|
+
Medium: 'medium',
|
|
543
|
+
High: 'high',
|
|
544
|
+
Xhigh: 'xhigh',
|
|
545
|
+
Max: 'max'
|
|
546
|
+
};
|
|
439
547
|
export const V1TransitionStateEnum = {
|
|
440
548
|
Published: 'published',
|
|
441
549
|
Unpublished: 'unpublished'
|
|
@@ -1745,339 +1853,1083 @@ export const AIAgentsApiFp = function (configuration) {
|
|
|
1745
1853
|
});
|
|
1746
1854
|
},
|
|
1747
1855
|
/**
|
|
1748
|
-
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
1749
|
-
* @summary Delete Agent Overlay
|
|
1750
|
-
* @param {string} organisation The organisation ID
|
|
1751
|
-
* @param {string} agentId Global agent identifier
|
|
1856
|
+
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
1857
|
+
* @summary Delete Agent Overlay
|
|
1858
|
+
* @param {string} organisation The organisation ID
|
|
1859
|
+
* @param {string} agentId Global agent identifier
|
|
1860
|
+
* @param {*} [options] Override http request option.
|
|
1861
|
+
* @throws {RequiredError}
|
|
1862
|
+
*/
|
|
1863
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
1864
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1865
|
+
var _a, _b, _c;
|
|
1866
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAgentOverlay(organisation, agentId, options);
|
|
1867
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1868
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.deleteAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1869
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1870
|
+
});
|
|
1871
|
+
},
|
|
1872
|
+
/**
|
|
1873
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
1874
|
+
* @summary Get Agent Details
|
|
1875
|
+
* @param {string} organisation The organisation ID
|
|
1876
|
+
* @param {string} agentId The agent ID
|
|
1877
|
+
* @param {*} [options] Override http request option.
|
|
1878
|
+
* @throws {RequiredError}
|
|
1879
|
+
*/
|
|
1880
|
+
getAIAgent(organisation, agentId, options) {
|
|
1881
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1882
|
+
var _a, _b, _c;
|
|
1883
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIAgent(organisation, agentId, options);
|
|
1884
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1885
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.getAIAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1886
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1887
|
+
});
|
|
1888
|
+
},
|
|
1889
|
+
/**
|
|
1890
|
+
* Returns the per-organisation overlay for a global agent, plus base agent metadata for UI context. If no overlay exists the response contains `overlay: null`. Overlays can only be created for global agents.
|
|
1891
|
+
* @summary Get Agent Overlay
|
|
1892
|
+
* @param {string} organisation The organisation ID
|
|
1893
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
1894
|
+
* @param {*} [options] Override http request option.
|
|
1895
|
+
* @throws {RequiredError}
|
|
1896
|
+
*/
|
|
1897
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
1898
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1899
|
+
var _a, _b, _c;
|
|
1900
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAgentOverlay(organisation, agentId, options);
|
|
1901
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1902
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.getAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1903
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1904
|
+
});
|
|
1905
|
+
},
|
|
1906
|
+
/**
|
|
1907
|
+
* Lists all AI agents for an organization. Agents are pre-configured AI assistants with specific system prompts, model settings, and tool permissions. * * **Features:** * - Filter by group (e.g., \'development\', \'compliance\') * - Organization-scoped * - Returns agent configurations without execution history
|
|
1908
|
+
* @summary List AI Agents
|
|
1909
|
+
* @param {string} organisation The organisation ID
|
|
1910
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
1911
|
+
* @param {*} [options] Override http request option.
|
|
1912
|
+
* @throws {RequiredError}
|
|
1913
|
+
*/
|
|
1914
|
+
listAIAgents(organisation, group, options) {
|
|
1915
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1916
|
+
var _a, _b, _c;
|
|
1917
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAIAgents(organisation, group, options);
|
|
1918
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1919
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.listAIAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1920
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1921
|
+
});
|
|
1922
|
+
},
|
|
1923
|
+
/**
|
|
1924
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
1925
|
+
* @summary Update Agent
|
|
1926
|
+
* @param {string} organisation The organisation ID
|
|
1927
|
+
* @param {string} agentId The agent ID
|
|
1928
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
1929
|
+
* @param {*} [options] Override http request option.
|
|
1930
|
+
* @throws {RequiredError}
|
|
1931
|
+
*/
|
|
1932
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
1933
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1934
|
+
var _a, _b, _c;
|
|
1935
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAIAgent(organisation, agentId, updateAIAgentRequest, options);
|
|
1936
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1937
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.updateAIAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1938
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1939
|
+
});
|
|
1940
|
+
},
|
|
1941
|
+
/**
|
|
1942
|
+
* Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include `version` from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins.
|
|
1943
|
+
* @summary Upsert Agent Overlay
|
|
1944
|
+
* @param {string} organisation The organisation ID
|
|
1945
|
+
* @param {string} agentId Global agent identifier
|
|
1946
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
1947
|
+
* @param {*} [options] Override http request option.
|
|
1948
|
+
* @throws {RequiredError}
|
|
1949
|
+
*/
|
|
1950
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
1951
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1952
|
+
var _a, _b, _c;
|
|
1953
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options);
|
|
1954
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1955
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAgentsApi.upsertAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1956
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1957
|
+
});
|
|
1958
|
+
},
|
|
1959
|
+
};
|
|
1960
|
+
};
|
|
1961
|
+
/**
|
|
1962
|
+
* AIAgentsApi - factory interface
|
|
1963
|
+
* @export
|
|
1964
|
+
*/
|
|
1965
|
+
export const AIAgentsApiFactory = function (configuration, basePath, axios) {
|
|
1966
|
+
const localVarFp = AIAgentsApiFp(configuration);
|
|
1967
|
+
return {
|
|
1968
|
+
/**
|
|
1969
|
+
* Initiates a chat session with a specific AI agent. The agent\'s configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent\'s system prompt is prepended to conversation * - Only agent\'s allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses durable execution for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history
|
|
1970
|
+
* @summary Chat with AI Agent
|
|
1971
|
+
* @param {string} organisation The organisation ID
|
|
1972
|
+
* @param {string} agentId The agent ID
|
|
1973
|
+
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
1974
|
+
* @param {*} [options] Override http request option.
|
|
1975
|
+
* @throws {RequiredError}
|
|
1976
|
+
*/
|
|
1977
|
+
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
1978
|
+
return localVarFp.chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
1979
|
+
},
|
|
1980
|
+
/**
|
|
1981
|
+
* Creates a new AI agent with specific configuration, system prompt, and tool permissions. * * **Agent Configuration:** * - **System Prompt**: Instructions that guide the agent\'s behavior * - **Model**: Which foundation model to use (e.g., \'amazon.nova-pro-v1:0\') * - **Temperature**: Creativity level (0-1) * - **Allowed Tools**: Which tools the agent can auto-execute * - **Allowed Collections**: Vector DB collections for RAG * - **Group**: Optional categorization (e.g., \'development\', \'compliance\') * * **Auto-Execution:** * All tools are automatically executed when an agent requests them (no client confirmation needed).
|
|
1982
|
+
* @summary Create AI Agent
|
|
1983
|
+
* @param {string} organisation The organisation ID
|
|
1984
|
+
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
1985
|
+
* @param {*} [options] Override http request option.
|
|
1986
|
+
* @throws {RequiredError}
|
|
1987
|
+
*/
|
|
1988
|
+
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
1989
|
+
return localVarFp.createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
1990
|
+
},
|
|
1991
|
+
/**
|
|
1992
|
+
* Permanently deletes an AI agent. This action cannot be undone.
|
|
1993
|
+
* @summary Delete Agent
|
|
1994
|
+
* @param {string} organisation The organisation ID
|
|
1995
|
+
* @param {string} agentId The agent ID
|
|
1996
|
+
* @param {*} [options] Override http request option.
|
|
1997
|
+
* @throws {RequiredError}
|
|
1998
|
+
*/
|
|
1999
|
+
deleteAIAgent(organisation, agentId, options) {
|
|
2000
|
+
return localVarFp.deleteAIAgent(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2001
|
+
},
|
|
2002
|
+
/**
|
|
2003
|
+
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
2004
|
+
* @summary Delete Agent Overlay
|
|
2005
|
+
* @param {string} organisation The organisation ID
|
|
2006
|
+
* @param {string} agentId Global agent identifier
|
|
2007
|
+
* @param {*} [options] Override http request option.
|
|
2008
|
+
* @throws {RequiredError}
|
|
2009
|
+
*/
|
|
2010
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
2011
|
+
return localVarFp.deleteAgentOverlay(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2012
|
+
},
|
|
2013
|
+
/**
|
|
2014
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
2015
|
+
* @summary Get Agent Details
|
|
2016
|
+
* @param {string} organisation The organisation ID
|
|
2017
|
+
* @param {string} agentId The agent ID
|
|
2018
|
+
* @param {*} [options] Override http request option.
|
|
2019
|
+
* @throws {RequiredError}
|
|
2020
|
+
*/
|
|
2021
|
+
getAIAgent(organisation, agentId, options) {
|
|
2022
|
+
return localVarFp.getAIAgent(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2023
|
+
},
|
|
2024
|
+
/**
|
|
2025
|
+
* Returns the per-organisation overlay for a global agent, plus base agent metadata for UI context. If no overlay exists the response contains `overlay: null`. Overlays can only be created for global agents.
|
|
2026
|
+
* @summary Get Agent Overlay
|
|
2027
|
+
* @param {string} organisation The organisation ID
|
|
2028
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2029
|
+
* @param {*} [options] Override http request option.
|
|
2030
|
+
* @throws {RequiredError}
|
|
2031
|
+
*/
|
|
2032
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
2033
|
+
return localVarFp.getAgentOverlay(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2034
|
+
},
|
|
2035
|
+
/**
|
|
2036
|
+
* Lists all AI agents for an organization. Agents are pre-configured AI assistants with specific system prompts, model settings, and tool permissions. * * **Features:** * - Filter by group (e.g., \'development\', \'compliance\') * - Organization-scoped * - Returns agent configurations without execution history
|
|
2037
|
+
* @summary List AI Agents
|
|
2038
|
+
* @param {string} organisation The organisation ID
|
|
2039
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
2040
|
+
* @param {*} [options] Override http request option.
|
|
2041
|
+
* @throws {RequiredError}
|
|
2042
|
+
*/
|
|
2043
|
+
listAIAgents(organisation, group, options) {
|
|
2044
|
+
return localVarFp.listAIAgents(organisation, group, options).then((request) => request(axios, basePath));
|
|
2045
|
+
},
|
|
2046
|
+
/**
|
|
2047
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
2048
|
+
* @summary Update Agent
|
|
2049
|
+
* @param {string} organisation The organisation ID
|
|
2050
|
+
* @param {string} agentId The agent ID
|
|
2051
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2052
|
+
* @param {*} [options] Override http request option.
|
|
2053
|
+
* @throws {RequiredError}
|
|
2054
|
+
*/
|
|
2055
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
2056
|
+
return localVarFp.updateAIAgent(organisation, agentId, updateAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
2057
|
+
},
|
|
2058
|
+
/**
|
|
2059
|
+
* Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include `version` from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins.
|
|
2060
|
+
* @summary Upsert Agent Overlay
|
|
2061
|
+
* @param {string} organisation The organisation ID
|
|
2062
|
+
* @param {string} agentId Global agent identifier
|
|
2063
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
2064
|
+
* @param {*} [options] Override http request option.
|
|
2065
|
+
* @throws {RequiredError}
|
|
2066
|
+
*/
|
|
2067
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
2068
|
+
return localVarFp.upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options).then((request) => request(axios, basePath));
|
|
2069
|
+
},
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
/**
|
|
2073
|
+
* AIAgentsApi - object-oriented interface
|
|
2074
|
+
* @export
|
|
2075
|
+
* @class AIAgentsApi
|
|
2076
|
+
* @extends {BaseAPI}
|
|
2077
|
+
*/
|
|
2078
|
+
export class AIAgentsApi extends BaseAPI {
|
|
2079
|
+
/**
|
|
2080
|
+
* Initiates a chat session with a specific AI agent. The agent\'s configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent\'s system prompt is prepended to conversation * - Only agent\'s allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses durable execution for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history
|
|
2081
|
+
* @summary Chat with AI Agent
|
|
2082
|
+
* @param {string} organisation The organisation ID
|
|
2083
|
+
* @param {string} agentId The agent ID
|
|
2084
|
+
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
2085
|
+
* @param {*} [options] Override http request option.
|
|
2086
|
+
* @throws {RequiredError}
|
|
2087
|
+
* @memberof AIAgentsApi
|
|
2088
|
+
*/
|
|
2089
|
+
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
2090
|
+
return AIAgentsApiFp(this.configuration).chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2091
|
+
}
|
|
2092
|
+
/**
|
|
2093
|
+
* Creates a new AI agent with specific configuration, system prompt, and tool permissions. * * **Agent Configuration:** * - **System Prompt**: Instructions that guide the agent\'s behavior * - **Model**: Which foundation model to use (e.g., \'amazon.nova-pro-v1:0\') * - **Temperature**: Creativity level (0-1) * - **Allowed Tools**: Which tools the agent can auto-execute * - **Allowed Collections**: Vector DB collections for RAG * - **Group**: Optional categorization (e.g., \'development\', \'compliance\') * * **Auto-Execution:** * All tools are automatically executed when an agent requests them (no client confirmation needed).
|
|
2094
|
+
* @summary Create AI Agent
|
|
2095
|
+
* @param {string} organisation The organisation ID
|
|
2096
|
+
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
2097
|
+
* @param {*} [options] Override http request option.
|
|
2098
|
+
* @throws {RequiredError}
|
|
2099
|
+
* @memberof AIAgentsApi
|
|
2100
|
+
*/
|
|
2101
|
+
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
2102
|
+
return AIAgentsApiFp(this.configuration).createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2103
|
+
}
|
|
2104
|
+
/**
|
|
2105
|
+
* Permanently deletes an AI agent. This action cannot be undone.
|
|
2106
|
+
* @summary Delete Agent
|
|
2107
|
+
* @param {string} organisation The organisation ID
|
|
2108
|
+
* @param {string} agentId The agent ID
|
|
2109
|
+
* @param {*} [options] Override http request option.
|
|
2110
|
+
* @throws {RequiredError}
|
|
2111
|
+
* @memberof AIAgentsApi
|
|
2112
|
+
*/
|
|
2113
|
+
deleteAIAgent(organisation, agentId, options) {
|
|
2114
|
+
return AIAgentsApiFp(this.configuration).deleteAIAgent(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2115
|
+
}
|
|
2116
|
+
/**
|
|
2117
|
+
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
2118
|
+
* @summary Delete Agent Overlay
|
|
2119
|
+
* @param {string} organisation The organisation ID
|
|
2120
|
+
* @param {string} agentId Global agent identifier
|
|
2121
|
+
* @param {*} [options] Override http request option.
|
|
2122
|
+
* @throws {RequiredError}
|
|
2123
|
+
* @memberof AIAgentsApi
|
|
2124
|
+
*/
|
|
2125
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
2126
|
+
return AIAgentsApiFp(this.configuration).deleteAgentOverlay(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2127
|
+
}
|
|
2128
|
+
/**
|
|
2129
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
2130
|
+
* @summary Get Agent Details
|
|
2131
|
+
* @param {string} organisation The organisation ID
|
|
2132
|
+
* @param {string} agentId The agent ID
|
|
2133
|
+
* @param {*} [options] Override http request option.
|
|
2134
|
+
* @throws {RequiredError}
|
|
2135
|
+
* @memberof AIAgentsApi
|
|
2136
|
+
*/
|
|
2137
|
+
getAIAgent(organisation, agentId, options) {
|
|
2138
|
+
return AIAgentsApiFp(this.configuration).getAIAgent(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2139
|
+
}
|
|
2140
|
+
/**
|
|
2141
|
+
* Returns the per-organisation overlay for a global agent, plus base agent metadata for UI context. If no overlay exists the response contains `overlay: null`. Overlays can only be created for global agents.
|
|
2142
|
+
* @summary Get Agent Overlay
|
|
2143
|
+
* @param {string} organisation The organisation ID
|
|
2144
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2145
|
+
* @param {*} [options] Override http request option.
|
|
2146
|
+
* @throws {RequiredError}
|
|
2147
|
+
* @memberof AIAgentsApi
|
|
2148
|
+
*/
|
|
2149
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
2150
|
+
return AIAgentsApiFp(this.configuration).getAgentOverlay(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2151
|
+
}
|
|
2152
|
+
/**
|
|
2153
|
+
* Lists all AI agents for an organization. Agents are pre-configured AI assistants with specific system prompts, model settings, and tool permissions. * * **Features:** * - Filter by group (e.g., \'development\', \'compliance\') * - Organization-scoped * - Returns agent configurations without execution history
|
|
2154
|
+
* @summary List AI Agents
|
|
2155
|
+
* @param {string} organisation The organisation ID
|
|
2156
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
2157
|
+
* @param {*} [options] Override http request option.
|
|
2158
|
+
* @throws {RequiredError}
|
|
2159
|
+
* @memberof AIAgentsApi
|
|
2160
|
+
*/
|
|
2161
|
+
listAIAgents(organisation, group, options) {
|
|
2162
|
+
return AIAgentsApiFp(this.configuration).listAIAgents(organisation, group, options).then((request) => request(this.axios, this.basePath));
|
|
2163
|
+
}
|
|
2164
|
+
/**
|
|
2165
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
2166
|
+
* @summary Update Agent
|
|
2167
|
+
* @param {string} organisation The organisation ID
|
|
2168
|
+
* @param {string} agentId The agent ID
|
|
2169
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2170
|
+
* @param {*} [options] Override http request option.
|
|
2171
|
+
* @throws {RequiredError}
|
|
2172
|
+
* @memberof AIAgentsApi
|
|
2173
|
+
*/
|
|
2174
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
2175
|
+
return AIAgentsApiFp(this.configuration).updateAIAgent(organisation, agentId, updateAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2176
|
+
}
|
|
2177
|
+
/**
|
|
2178
|
+
* Creates or replaces the per-organisation overlay for a global agent. PUT is full replacement — omitted optional fields are removed. Include `version` from a prior GET to enable compare-and-swap (409 on conflict). Omit for last-writer-wins.
|
|
2179
|
+
* @summary Upsert Agent Overlay
|
|
2180
|
+
* @param {string} organisation The organisation ID
|
|
2181
|
+
* @param {string} agentId Global agent identifier
|
|
2182
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
2183
|
+
* @param {*} [options] Override http request option.
|
|
2184
|
+
* @throws {RequiredError}
|
|
2185
|
+
* @memberof AIAgentsApi
|
|
2186
|
+
*/
|
|
2187
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
2188
|
+
return AIAgentsApiFp(this.configuration).upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2189
|
+
}
|
|
2190
|
+
}
|
|
2191
|
+
/**
|
|
2192
|
+
* AIAuditApi - axios parameter creator
|
|
2193
|
+
* @export
|
|
2194
|
+
*/
|
|
2195
|
+
export const AIAuditApiAxiosParamCreator = function (configuration) {
|
|
2196
|
+
return {
|
|
2197
|
+
/**
|
|
2198
|
+
* 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.
|
|
2199
|
+
* @summary Export AI audit records as JSON Lines
|
|
2200
|
+
* @param {string} organisation The organisation machine name
|
|
2201
|
+
* @param {string} startDate
|
|
2202
|
+
* @param {string} endDate
|
|
2203
|
+
* @param {string} [userId]
|
|
2204
|
+
* @param {string} [modelId]
|
|
2205
|
+
* @param {string} [recordType]
|
|
2206
|
+
* @param {string} [decision]
|
|
2207
|
+
* @param {string} [tool]
|
|
2208
|
+
* @param {string} [outcome]
|
|
2209
|
+
* @param {*} [options] Override http request option.
|
|
2210
|
+
* @throws {RequiredError}
|
|
2211
|
+
*/
|
|
2212
|
+
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 = {}) {
|
|
2213
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2214
|
+
assertParamExists('aiAuditExport', 'organisation', organisation);
|
|
2215
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2216
|
+
assertParamExists('aiAuditExport', 'startDate', startDate);
|
|
2217
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2218
|
+
assertParamExists('aiAuditExport', 'endDate', endDate);
|
|
2219
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
|
|
2220
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2221
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2222
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2223
|
+
let baseOptions;
|
|
2224
|
+
if (configuration) {
|
|
2225
|
+
baseOptions = configuration.baseOptions;
|
|
2226
|
+
}
|
|
2227
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2228
|
+
const localVarHeaderParameter = {};
|
|
2229
|
+
const localVarQueryParameter = {};
|
|
2230
|
+
// authentication BearerAuth required
|
|
2231
|
+
// http bearer authentication required
|
|
2232
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2233
|
+
if (startDate !== undefined) {
|
|
2234
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
2235
|
+
startDate.toISOString().substring(0, 10) :
|
|
2236
|
+
startDate;
|
|
2237
|
+
}
|
|
2238
|
+
if (endDate !== undefined) {
|
|
2239
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
2240
|
+
endDate.toISOString().substring(0, 10) :
|
|
2241
|
+
endDate;
|
|
2242
|
+
}
|
|
2243
|
+
if (userId !== undefined) {
|
|
2244
|
+
localVarQueryParameter['userId'] = userId;
|
|
2245
|
+
}
|
|
2246
|
+
if (modelId !== undefined) {
|
|
2247
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
2248
|
+
}
|
|
2249
|
+
if (recordType !== undefined) {
|
|
2250
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
2251
|
+
}
|
|
2252
|
+
if (decision !== undefined) {
|
|
2253
|
+
localVarQueryParameter['decision'] = decision;
|
|
2254
|
+
}
|
|
2255
|
+
if (tool !== undefined) {
|
|
2256
|
+
localVarQueryParameter['tool'] = tool;
|
|
2257
|
+
}
|
|
2258
|
+
if (outcome !== undefined) {
|
|
2259
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
2260
|
+
}
|
|
2261
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2262
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2263
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2264
|
+
return {
|
|
2265
|
+
url: toPathString(localVarUrlObj),
|
|
2266
|
+
options: localVarRequestOptions,
|
|
2267
|
+
};
|
|
2268
|
+
}),
|
|
2269
|
+
/**
|
|
2270
|
+
* 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.
|
|
2271
|
+
* @summary List AI governance ledger entries
|
|
2272
|
+
* @param {string} organisation The organisation machine name
|
|
2273
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2274
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2275
|
+
* @param {number} [limit]
|
|
2276
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2277
|
+
* @param {*} [options] Override http request option.
|
|
2278
|
+
* @throws {RequiredError}
|
|
2279
|
+
*/
|
|
2280
|
+
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 = {}) {
|
|
2281
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2282
|
+
assertParamExists('aiAuditLedgerEntries', 'organisation', organisation);
|
|
2283
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
|
|
2284
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2285
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2286
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2287
|
+
let baseOptions;
|
|
2288
|
+
if (configuration) {
|
|
2289
|
+
baseOptions = configuration.baseOptions;
|
|
2290
|
+
}
|
|
2291
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2292
|
+
const localVarHeaderParameter = {};
|
|
2293
|
+
const localVarQueryParameter = {};
|
|
2294
|
+
// authentication BearerAuth required
|
|
2295
|
+
// http bearer authentication required
|
|
2296
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2297
|
+
if (since !== undefined) {
|
|
2298
|
+
localVarQueryParameter['since'] = since;
|
|
2299
|
+
}
|
|
2300
|
+
if (until !== undefined) {
|
|
2301
|
+
localVarQueryParameter['until'] = until;
|
|
2302
|
+
}
|
|
2303
|
+
if (limit !== undefined) {
|
|
2304
|
+
localVarQueryParameter['limit'] = limit;
|
|
2305
|
+
}
|
|
2306
|
+
if (cursor !== undefined) {
|
|
2307
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2308
|
+
}
|
|
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 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.
|
|
2319
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2320
|
+
* @param {string} organisation The organisation machine name
|
|
2321
|
+
* @param {string} key
|
|
2322
|
+
* @param {*} [options] Override http request option.
|
|
2323
|
+
* @throws {RequiredError}
|
|
2324
|
+
*/
|
|
2325
|
+
aiAuditLedgerProof: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
|
|
2326
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2327
|
+
assertParamExists('aiAuditLedgerProof', 'organisation', organisation);
|
|
2328
|
+
// verify required parameter 'key' is not null or undefined
|
|
2329
|
+
assertParamExists('aiAuditLedgerProof', 'key', key);
|
|
2330
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
|
|
2331
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2332
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2333
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2334
|
+
let baseOptions;
|
|
2335
|
+
if (configuration) {
|
|
2336
|
+
baseOptions = configuration.baseOptions;
|
|
2337
|
+
}
|
|
2338
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2339
|
+
const localVarHeaderParameter = {};
|
|
2340
|
+
const localVarQueryParameter = {};
|
|
2341
|
+
// authentication BearerAuth required
|
|
2342
|
+
// http bearer authentication required
|
|
2343
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2344
|
+
if (key !== undefined) {
|
|
2345
|
+
localVarQueryParameter['key'] = key;
|
|
2346
|
+
}
|
|
2347
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2348
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2349
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2350
|
+
return {
|
|
2351
|
+
url: toPathString(localVarUrlObj),
|
|
2352
|
+
options: localVarRequestOptions,
|
|
2353
|
+
};
|
|
2354
|
+
}),
|
|
2355
|
+
/**
|
|
2356
|
+
* 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.
|
|
2357
|
+
* @summary Get the governance ledger public key
|
|
2358
|
+
* @param {string} organisation The organisation machine name
|
|
2359
|
+
* @param {*} [options] Override http request option.
|
|
2360
|
+
* @throws {RequiredError}
|
|
2361
|
+
*/
|
|
2362
|
+
aiAuditLedgerPublicKey: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
|
|
2363
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2364
|
+
assertParamExists('aiAuditLedgerPublicKey', 'organisation', organisation);
|
|
2365
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
|
|
2366
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2367
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2368
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2369
|
+
let baseOptions;
|
|
2370
|
+
if (configuration) {
|
|
2371
|
+
baseOptions = configuration.baseOptions;
|
|
2372
|
+
}
|
|
2373
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2374
|
+
const localVarHeaderParameter = {};
|
|
2375
|
+
const localVarQueryParameter = {};
|
|
2376
|
+
// authentication BearerAuth required
|
|
2377
|
+
// http bearer authentication required
|
|
2378
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2379
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2380
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2381
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2382
|
+
return {
|
|
2383
|
+
url: toPathString(localVarUrlObj),
|
|
2384
|
+
options: localVarRequestOptions,
|
|
2385
|
+
};
|
|
2386
|
+
}),
|
|
2387
|
+
/**
|
|
2388
|
+
* 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.
|
|
2389
|
+
* @summary Get the AI governance ledger status
|
|
2390
|
+
* @param {string} organisation The organisation machine name
|
|
2391
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2392
|
+
* @param {*} [options] Override http request option.
|
|
2393
|
+
* @throws {RequiredError}
|
|
2394
|
+
*/
|
|
2395
|
+
aiAuditLedgerStatus: (organisation_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, cursor_1, ...args_1], void 0, function* (organisation, cursor, options = {}) {
|
|
2396
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2397
|
+
assertParamExists('aiAuditLedgerStatus', 'organisation', organisation);
|
|
2398
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
|
|
2399
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2400
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2401
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2402
|
+
let baseOptions;
|
|
2403
|
+
if (configuration) {
|
|
2404
|
+
baseOptions = configuration.baseOptions;
|
|
2405
|
+
}
|
|
2406
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2407
|
+
const localVarHeaderParameter = {};
|
|
2408
|
+
const localVarQueryParameter = {};
|
|
2409
|
+
// authentication BearerAuth required
|
|
2410
|
+
// http bearer authentication required
|
|
2411
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2412
|
+
if (cursor !== undefined) {
|
|
2413
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2414
|
+
}
|
|
2415
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2416
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2417
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2418
|
+
return {
|
|
2419
|
+
url: toPathString(localVarUrlObj),
|
|
2420
|
+
options: localVarRequestOptions,
|
|
2421
|
+
};
|
|
2422
|
+
}),
|
|
2423
|
+
/**
|
|
2424
|
+
* 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.
|
|
2425
|
+
* @summary Get one AI audit record
|
|
2426
|
+
* @param {string} organisation The organisation machine name
|
|
2427
|
+
* @param {string} key
|
|
2428
|
+
* @param {*} [options] Override http request option.
|
|
2429
|
+
* @throws {RequiredError}
|
|
2430
|
+
*/
|
|
2431
|
+
aiAuditRecordGet: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
|
|
2432
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2433
|
+
assertParamExists('aiAuditRecordGet', 'organisation', organisation);
|
|
2434
|
+
// verify required parameter 'key' is not null or undefined
|
|
2435
|
+
assertParamExists('aiAuditRecordGet', 'key', key);
|
|
2436
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
|
|
2437
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2438
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2439
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2440
|
+
let baseOptions;
|
|
2441
|
+
if (configuration) {
|
|
2442
|
+
baseOptions = configuration.baseOptions;
|
|
2443
|
+
}
|
|
2444
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2445
|
+
const localVarHeaderParameter = {};
|
|
2446
|
+
const localVarQueryParameter = {};
|
|
2447
|
+
// authentication BearerAuth required
|
|
2448
|
+
// http bearer authentication required
|
|
2449
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2450
|
+
if (key !== undefined) {
|
|
2451
|
+
localVarQueryParameter['key'] = key;
|
|
2452
|
+
}
|
|
2453
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2454
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2455
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2456
|
+
return {
|
|
2457
|
+
url: toPathString(localVarUrlObj),
|
|
2458
|
+
options: localVarRequestOptions,
|
|
2459
|
+
};
|
|
2460
|
+
}),
|
|
2461
|
+
/**
|
|
2462
|
+
* 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.
|
|
2463
|
+
* @summary List AI audit records
|
|
2464
|
+
* @param {string} organisation The organisation machine name
|
|
2465
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2466
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2467
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2468
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2469
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2470
|
+
* @param {string} [tokenId]
|
|
2471
|
+
* @param {string} [modelId]
|
|
2472
|
+
* @param {string} [recordType]
|
|
2473
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2474
|
+
* @param {string} [tool]
|
|
2475
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2476
|
+
* @param {string} [_interface]
|
|
2477
|
+
* @param {number} [limit]
|
|
2478
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
2479
|
+
* @param {*} [options] Override http request option.
|
|
2480
|
+
* @throws {RequiredError}
|
|
2481
|
+
*/
|
|
2482
|
+
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 = {}) {
|
|
2483
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2484
|
+
assertParamExists('aiAuditRecordsList', 'organisation', organisation);
|
|
2485
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2486
|
+
assertParamExists('aiAuditRecordsList', 'startDate', startDate);
|
|
2487
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2488
|
+
assertParamExists('aiAuditRecordsList', 'endDate', endDate);
|
|
2489
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
|
|
2490
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2491
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2492
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
2493
|
+
let baseOptions;
|
|
2494
|
+
if (configuration) {
|
|
2495
|
+
baseOptions = configuration.baseOptions;
|
|
2496
|
+
}
|
|
2497
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2498
|
+
const localVarHeaderParameter = {};
|
|
2499
|
+
const localVarQueryParameter = {};
|
|
2500
|
+
// authentication BearerAuth required
|
|
2501
|
+
// http bearer authentication required
|
|
2502
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
2503
|
+
if (startDate !== undefined) {
|
|
2504
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
2505
|
+
startDate.toISOString().substring(0, 10) :
|
|
2506
|
+
startDate;
|
|
2507
|
+
}
|
|
2508
|
+
if (endDate !== undefined) {
|
|
2509
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
2510
|
+
endDate.toISOString().substring(0, 10) :
|
|
2511
|
+
endDate;
|
|
2512
|
+
}
|
|
2513
|
+
if (since !== undefined) {
|
|
2514
|
+
localVarQueryParameter['since'] = (since instanceof Date) ?
|
|
2515
|
+
since.toISOString() :
|
|
2516
|
+
since;
|
|
2517
|
+
}
|
|
2518
|
+
if (until !== undefined) {
|
|
2519
|
+
localVarQueryParameter['until'] = (until instanceof Date) ?
|
|
2520
|
+
until.toISOString() :
|
|
2521
|
+
until;
|
|
2522
|
+
}
|
|
2523
|
+
if (userId !== undefined) {
|
|
2524
|
+
localVarQueryParameter['userId'] = userId;
|
|
2525
|
+
}
|
|
2526
|
+
if (tokenId !== undefined) {
|
|
2527
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
2528
|
+
}
|
|
2529
|
+
if (modelId !== undefined) {
|
|
2530
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
2531
|
+
}
|
|
2532
|
+
if (recordType !== undefined) {
|
|
2533
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
2534
|
+
}
|
|
2535
|
+
if (decision !== undefined) {
|
|
2536
|
+
localVarQueryParameter['decision'] = decision;
|
|
2537
|
+
}
|
|
2538
|
+
if (tool !== undefined) {
|
|
2539
|
+
localVarQueryParameter['tool'] = tool;
|
|
2540
|
+
}
|
|
2541
|
+
if (outcome !== undefined) {
|
|
2542
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
2543
|
+
}
|
|
2544
|
+
if (_interface !== undefined) {
|
|
2545
|
+
localVarQueryParameter['interface'] = _interface;
|
|
2546
|
+
}
|
|
2547
|
+
if (limit !== undefined) {
|
|
2548
|
+
localVarQueryParameter['limit'] = limit;
|
|
2549
|
+
}
|
|
2550
|
+
if (cursor !== undefined) {
|
|
2551
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2552
|
+
}
|
|
2553
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
2554
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2555
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2556
|
+
return {
|
|
2557
|
+
url: toPathString(localVarUrlObj),
|
|
2558
|
+
options: localVarRequestOptions,
|
|
2559
|
+
};
|
|
2560
|
+
}),
|
|
2561
|
+
};
|
|
2562
|
+
};
|
|
2563
|
+
/**
|
|
2564
|
+
* AIAuditApi - functional programming interface
|
|
2565
|
+
* @export
|
|
2566
|
+
*/
|
|
2567
|
+
export const AIAuditApiFp = function (configuration) {
|
|
2568
|
+
const localVarAxiosParamCreator = AIAuditApiAxiosParamCreator(configuration);
|
|
2569
|
+
return {
|
|
2570
|
+
/**
|
|
2571
|
+
* 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.
|
|
2572
|
+
* @summary Export AI audit records as JSON Lines
|
|
2573
|
+
* @param {string} organisation The organisation machine name
|
|
2574
|
+
* @param {string} startDate
|
|
2575
|
+
* @param {string} endDate
|
|
2576
|
+
* @param {string} [userId]
|
|
2577
|
+
* @param {string} [modelId]
|
|
2578
|
+
* @param {string} [recordType]
|
|
2579
|
+
* @param {string} [decision]
|
|
2580
|
+
* @param {string} [tool]
|
|
2581
|
+
* @param {string} [outcome]
|
|
2582
|
+
* @param {*} [options] Override http request option.
|
|
2583
|
+
* @throws {RequiredError}
|
|
2584
|
+
*/
|
|
2585
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2586
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2587
|
+
var _a, _b, _c;
|
|
2588
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, 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.aiAuditExport']) === 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
|
+
* 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.
|
|
2596
|
+
* @summary List AI governance ledger entries
|
|
2597
|
+
* @param {string} organisation The organisation machine name
|
|
2598
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2599
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2600
|
+
* @param {number} [limit]
|
|
2601
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1752
2602
|
* @param {*} [options] Override http request option.
|
|
1753
2603
|
* @throws {RequiredError}
|
|
1754
2604
|
*/
|
|
1755
|
-
|
|
2605
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
1756
2606
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1757
2607
|
var _a, _b, _c;
|
|
1758
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2608
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
|
|
1759
2609
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1760
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2610
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1761
2611
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1762
2612
|
});
|
|
1763
2613
|
},
|
|
1764
2614
|
/**
|
|
1765
|
-
*
|
|
1766
|
-
* @summary Get
|
|
1767
|
-
* @param {string} organisation The organisation
|
|
1768
|
-
* @param {string}
|
|
2615
|
+
* 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.
|
|
2616
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2617
|
+
* @param {string} organisation The organisation machine name
|
|
2618
|
+
* @param {string} key
|
|
1769
2619
|
* @param {*} [options] Override http request option.
|
|
1770
2620
|
* @throws {RequiredError}
|
|
1771
2621
|
*/
|
|
1772
|
-
|
|
2622
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
1773
2623
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1774
2624
|
var _a, _b, _c;
|
|
1775
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2625
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
|
|
1776
2626
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1777
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2627
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerProof']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1778
2628
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1779
2629
|
});
|
|
1780
2630
|
},
|
|
1781
2631
|
/**
|
|
1782
|
-
*
|
|
1783
|
-
* @summary Get
|
|
1784
|
-
* @param {string} organisation The organisation
|
|
1785
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2632
|
+
* 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.
|
|
2633
|
+
* @summary Get the governance ledger public key
|
|
2634
|
+
* @param {string} organisation The organisation machine name
|
|
1786
2635
|
* @param {*} [options] Override http request option.
|
|
1787
2636
|
* @throws {RequiredError}
|
|
1788
2637
|
*/
|
|
1789
|
-
|
|
2638
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
1790
2639
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1791
2640
|
var _a, _b, _c;
|
|
1792
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2641
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
|
|
1793
2642
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1794
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2643
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerPublicKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1795
2644
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1796
2645
|
});
|
|
1797
2646
|
},
|
|
1798
2647
|
/**
|
|
1799
|
-
*
|
|
1800
|
-
* @summary
|
|
1801
|
-
* @param {string} organisation The organisation
|
|
1802
|
-
* @param {string} [
|
|
2648
|
+
* 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.
|
|
2649
|
+
* @summary Get the AI governance ledger status
|
|
2650
|
+
* @param {string} organisation The organisation machine name
|
|
2651
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1803
2652
|
* @param {*} [options] Override http request option.
|
|
1804
2653
|
* @throws {RequiredError}
|
|
1805
2654
|
*/
|
|
1806
|
-
|
|
2655
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
1807
2656
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1808
2657
|
var _a, _b, _c;
|
|
1809
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2658
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, options);
|
|
1810
2659
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1811
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2660
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditLedgerStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1812
2661
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1813
2662
|
});
|
|
1814
2663
|
},
|
|
1815
2664
|
/**
|
|
1816
|
-
*
|
|
1817
|
-
* @summary
|
|
1818
|
-
* @param {string} organisation The organisation
|
|
1819
|
-
* @param {string}
|
|
1820
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2665
|
+
* 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.
|
|
2666
|
+
* @summary Get one AI audit record
|
|
2667
|
+
* @param {string} organisation The organisation machine name
|
|
2668
|
+
* @param {string} key
|
|
1821
2669
|
* @param {*} [options] Override http request option.
|
|
1822
2670
|
* @throws {RequiredError}
|
|
1823
2671
|
*/
|
|
1824
|
-
|
|
2672
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
1825
2673
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1826
2674
|
var _a, _b, _c;
|
|
1827
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2675
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
|
|
1828
2676
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1829
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2677
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditRecordGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1830
2678
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1831
2679
|
});
|
|
1832
2680
|
},
|
|
1833
2681
|
/**
|
|
1834
|
-
*
|
|
1835
|
-
* @summary
|
|
1836
|
-
* @param {string} organisation The organisation
|
|
1837
|
-
* @param {string}
|
|
1838
|
-
* @param {
|
|
2682
|
+
* 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.
|
|
2683
|
+
* @summary List AI audit records
|
|
2684
|
+
* @param {string} organisation The organisation machine name
|
|
2685
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2686
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2687
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2688
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2689
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2690
|
+
* @param {string} [tokenId]
|
|
2691
|
+
* @param {string} [modelId]
|
|
2692
|
+
* @param {string} [recordType]
|
|
2693
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2694
|
+
* @param {string} [tool]
|
|
2695
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2696
|
+
* @param {string} [_interface]
|
|
2697
|
+
* @param {number} [limit]
|
|
2698
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
1839
2699
|
* @param {*} [options] Override http request option.
|
|
1840
2700
|
* @throws {RequiredError}
|
|
1841
2701
|
*/
|
|
1842
|
-
|
|
2702
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
1843
2703
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1844
2704
|
var _a, _b, _c;
|
|
1845
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2705
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
|
|
1846
2706
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1847
|
-
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['
|
|
2707
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AIAuditApi.aiAuditRecordsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1848
2708
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1849
2709
|
});
|
|
1850
2710
|
},
|
|
1851
2711
|
};
|
|
1852
2712
|
};
|
|
1853
2713
|
/**
|
|
1854
|
-
*
|
|
2714
|
+
* AIAuditApi - factory interface
|
|
1855
2715
|
* @export
|
|
1856
2716
|
*/
|
|
1857
|
-
export const
|
|
1858
|
-
const localVarFp =
|
|
2717
|
+
export const AIAuditApiFactory = function (configuration, basePath, axios) {
|
|
2718
|
+
const localVarFp = AIAuditApiFp(configuration);
|
|
1859
2719
|
return {
|
|
1860
2720
|
/**
|
|
1861
|
-
*
|
|
1862
|
-
* @summary
|
|
1863
|
-
* @param {string} organisation The organisation
|
|
1864
|
-
* @param {string}
|
|
1865
|
-
* @param {
|
|
1866
|
-
* @param {
|
|
1867
|
-
* @
|
|
1868
|
-
|
|
1869
|
-
|
|
1870
|
-
|
|
1871
|
-
|
|
1872
|
-
/**
|
|
1873
|
-
* Creates a new AI agent with specific configuration, system prompt, and tool permissions. * * **Agent Configuration:** * - **System Prompt**: Instructions that guide the agent\'s behavior * - **Model**: Which foundation model to use (e.g., \'amazon.nova-pro-v1:0\') * - **Temperature**: Creativity level (0-1) * - **Allowed Tools**: Which tools the agent can auto-execute * - **Allowed Collections**: Vector DB collections for RAG * - **Group**: Optional categorization (e.g., \'development\', \'compliance\') * * **Auto-Execution:** * All tools are automatically executed when an agent requests them (no client confirmation needed).
|
|
1874
|
-
* @summary Create AI Agent
|
|
1875
|
-
* @param {string} organisation The organisation ID
|
|
1876
|
-
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
1877
|
-
* @param {*} [options] Override http request option.
|
|
1878
|
-
* @throws {RequiredError}
|
|
1879
|
-
*/
|
|
1880
|
-
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
1881
|
-
return localVarFp.createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
1882
|
-
},
|
|
1883
|
-
/**
|
|
1884
|
-
* Permanently deletes an AI agent. This action cannot be undone.
|
|
1885
|
-
* @summary Delete Agent
|
|
1886
|
-
* @param {string} organisation The organisation ID
|
|
1887
|
-
* @param {string} agentId The agent ID
|
|
2721
|
+
* 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.
|
|
2722
|
+
* @summary Export AI audit records as JSON Lines
|
|
2723
|
+
* @param {string} organisation The organisation machine name
|
|
2724
|
+
* @param {string} startDate
|
|
2725
|
+
* @param {string} endDate
|
|
2726
|
+
* @param {string} [userId]
|
|
2727
|
+
* @param {string} [modelId]
|
|
2728
|
+
* @param {string} [recordType]
|
|
2729
|
+
* @param {string} [decision]
|
|
2730
|
+
* @param {string} [tool]
|
|
2731
|
+
* @param {string} [outcome]
|
|
1888
2732
|
* @param {*} [options] Override http request option.
|
|
1889
2733
|
* @throws {RequiredError}
|
|
1890
2734
|
*/
|
|
1891
|
-
|
|
1892
|
-
return localVarFp.
|
|
2735
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2736
|
+
return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
|
|
1893
2737
|
},
|
|
1894
2738
|
/**
|
|
1895
|
-
*
|
|
1896
|
-
* @summary
|
|
1897
|
-
* @param {string} organisation The organisation
|
|
1898
|
-
* @param {string}
|
|
2739
|
+
* 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.
|
|
2740
|
+
* @summary List AI governance ledger entries
|
|
2741
|
+
* @param {string} organisation The organisation machine name
|
|
2742
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2743
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2744
|
+
* @param {number} [limit]
|
|
2745
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1899
2746
|
* @param {*} [options] Override http request option.
|
|
1900
2747
|
* @throws {RequiredError}
|
|
1901
2748
|
*/
|
|
1902
|
-
|
|
1903
|
-
return localVarFp.
|
|
2749
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
2750
|
+
return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1904
2751
|
},
|
|
1905
2752
|
/**
|
|
1906
|
-
*
|
|
1907
|
-
* @summary Get
|
|
1908
|
-
* @param {string} organisation The organisation
|
|
1909
|
-
* @param {string}
|
|
2753
|
+
* 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.
|
|
2754
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2755
|
+
* @param {string} organisation The organisation machine name
|
|
2756
|
+
* @param {string} key
|
|
1910
2757
|
* @param {*} [options] Override http request option.
|
|
1911
2758
|
* @throws {RequiredError}
|
|
1912
2759
|
*/
|
|
1913
|
-
|
|
1914
|
-
return localVarFp.
|
|
2760
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
2761
|
+
return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
|
|
1915
2762
|
},
|
|
1916
2763
|
/**
|
|
1917
|
-
*
|
|
1918
|
-
* @summary Get
|
|
1919
|
-
* @param {string} organisation The organisation
|
|
1920
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2764
|
+
* 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.
|
|
2765
|
+
* @summary Get the governance ledger public key
|
|
2766
|
+
* @param {string} organisation The organisation machine name
|
|
1921
2767
|
* @param {*} [options] Override http request option.
|
|
1922
2768
|
* @throws {RequiredError}
|
|
1923
2769
|
*/
|
|
1924
|
-
|
|
1925
|
-
return localVarFp.
|
|
2770
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
2771
|
+
return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
|
|
1926
2772
|
},
|
|
1927
2773
|
/**
|
|
1928
|
-
*
|
|
1929
|
-
* @summary
|
|
1930
|
-
* @param {string} organisation The organisation
|
|
1931
|
-
* @param {string} [
|
|
2774
|
+
* 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.
|
|
2775
|
+
* @summary Get the AI governance ledger status
|
|
2776
|
+
* @param {string} organisation The organisation machine name
|
|
2777
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1932
2778
|
* @param {*} [options] Override http request option.
|
|
1933
2779
|
* @throws {RequiredError}
|
|
1934
2780
|
*/
|
|
1935
|
-
|
|
1936
|
-
return localVarFp.
|
|
2781
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
2782
|
+
return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
|
|
1937
2783
|
},
|
|
1938
2784
|
/**
|
|
1939
|
-
*
|
|
1940
|
-
* @summary
|
|
1941
|
-
* @param {string} organisation The organisation
|
|
1942
|
-
* @param {string}
|
|
1943
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2785
|
+
* 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.
|
|
2786
|
+
* @summary Get one AI audit record
|
|
2787
|
+
* @param {string} organisation The organisation machine name
|
|
2788
|
+
* @param {string} key
|
|
1944
2789
|
* @param {*} [options] Override http request option.
|
|
1945
2790
|
* @throws {RequiredError}
|
|
1946
2791
|
*/
|
|
1947
|
-
|
|
1948
|
-
return localVarFp.
|
|
2792
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
2793
|
+
return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
|
|
1949
2794
|
},
|
|
1950
2795
|
/**
|
|
1951
|
-
*
|
|
1952
|
-
* @summary
|
|
1953
|
-
* @param {string} organisation The organisation
|
|
1954
|
-
* @param {string}
|
|
1955
|
-
* @param {
|
|
2796
|
+
* 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.
|
|
2797
|
+
* @summary List AI audit records
|
|
2798
|
+
* @param {string} organisation The organisation machine name
|
|
2799
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2800
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2801
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2802
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2803
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2804
|
+
* @param {string} [tokenId]
|
|
2805
|
+
* @param {string} [modelId]
|
|
2806
|
+
* @param {string} [recordType]
|
|
2807
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2808
|
+
* @param {string} [tool]
|
|
2809
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2810
|
+
* @param {string} [_interface]
|
|
2811
|
+
* @param {number} [limit]
|
|
2812
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
1956
2813
|
* @param {*} [options] Override http request option.
|
|
1957
2814
|
* @throws {RequiredError}
|
|
1958
2815
|
*/
|
|
1959
|
-
|
|
1960
|
-
return localVarFp.
|
|
2816
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
2817
|
+
return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1961
2818
|
},
|
|
1962
2819
|
};
|
|
1963
2820
|
};
|
|
1964
2821
|
/**
|
|
1965
|
-
*
|
|
2822
|
+
* AIAuditApi - object-oriented interface
|
|
1966
2823
|
* @export
|
|
1967
|
-
* @class
|
|
2824
|
+
* @class AIAuditApi
|
|
1968
2825
|
* @extends {BaseAPI}
|
|
1969
2826
|
*/
|
|
1970
|
-
export class
|
|
1971
|
-
/**
|
|
1972
|
-
* Initiates a chat session with a specific AI agent. The agent\'s configuration (system prompt, temperature, model, allowed tools) is automatically applied. * * **Key Features:** * - **Session Management**: Automatic session creation and state tracking * - **Multi-turn Conversations**: Full conversation history maintained server-side * - Agent\'s system prompt is prepended to conversation * - Only agent\'s allowed tools are available * - All tools are auto-executed on cloud (no client confirmation needed) * - Temperature and model from agent config * - Supports sync, streaming, and async modes * * **Execution Modes:** * - **Sync Mode** (default): Standard JSON response, waits for completion * - **Streaming Mode**: Set `stream: true` for SSE token-by-token responses * - **Async Mode**: Set `async: true` for long-running tasks with polling * * **Async/Durable Mode (`async: true`):** * - Returns immediately with `requestId` and `pollUrl` (HTTP 202) * - Uses durable execution for long-running agent tasks * - All tools are auto-executed on cloud (no `waiting_callback` state) * - Poll `/ai/chat/executions/{requestId}` for status * - Ideal for agents with slow tools (web search, etc.) * * **Session Support:** * - Omit `sessionId` to create a new session automatically * - Include `sessionId` to continue an existing conversation * - Sessions expire after 60 minutes of inactivity * - Sessions work in all modes (sync, streaming, async) * - Use `/sessions/{sessionId}` to retrieve full conversation history
|
|
1973
|
-
* @summary Chat with AI Agent
|
|
1974
|
-
* @param {string} organisation The organisation ID
|
|
1975
|
-
* @param {string} agentId The agent ID
|
|
1976
|
-
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
1977
|
-
* @param {*} [options] Override http request option.
|
|
1978
|
-
* @throws {RequiredError}
|
|
1979
|
-
* @memberof AIAgentsApi
|
|
1980
|
-
*/
|
|
1981
|
-
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
1982
|
-
return AIAgentsApiFp(this.configuration).chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1983
|
-
}
|
|
1984
|
-
/**
|
|
1985
|
-
* Creates a new AI agent with specific configuration, system prompt, and tool permissions. * * **Agent Configuration:** * - **System Prompt**: Instructions that guide the agent\'s behavior * - **Model**: Which foundation model to use (e.g., \'amazon.nova-pro-v1:0\') * - **Temperature**: Creativity level (0-1) * - **Allowed Tools**: Which tools the agent can auto-execute * - **Allowed Collections**: Vector DB collections for RAG * - **Group**: Optional categorization (e.g., \'development\', \'compliance\') * * **Auto-Execution:** * All tools are automatically executed when an agent requests them (no client confirmation needed).
|
|
1986
|
-
* @summary Create AI Agent
|
|
1987
|
-
* @param {string} organisation The organisation ID
|
|
1988
|
-
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
1989
|
-
* @param {*} [options] Override http request option.
|
|
1990
|
-
* @throws {RequiredError}
|
|
1991
|
-
* @memberof AIAgentsApi
|
|
1992
|
-
*/
|
|
1993
|
-
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
1994
|
-
return AIAgentsApiFp(this.configuration).createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
1995
|
-
}
|
|
2827
|
+
export class AIAuditApi extends BaseAPI {
|
|
1996
2828
|
/**
|
|
1997
|
-
*
|
|
1998
|
-
* @summary
|
|
1999
|
-
* @param {string} organisation The organisation
|
|
2000
|
-
* @param {string}
|
|
2829
|
+
* 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.
|
|
2830
|
+
* @summary Export AI audit records as JSON Lines
|
|
2831
|
+
* @param {string} organisation The organisation machine name
|
|
2832
|
+
* @param {string} startDate
|
|
2833
|
+
* @param {string} endDate
|
|
2834
|
+
* @param {string} [userId]
|
|
2835
|
+
* @param {string} [modelId]
|
|
2836
|
+
* @param {string} [recordType]
|
|
2837
|
+
* @param {string} [decision]
|
|
2838
|
+
* @param {string} [tool]
|
|
2839
|
+
* @param {string} [outcome]
|
|
2001
2840
|
* @param {*} [options] Override http request option.
|
|
2002
2841
|
* @throws {RequiredError}
|
|
2003
|
-
* @memberof
|
|
2842
|
+
* @memberof AIAuditApi
|
|
2004
2843
|
*/
|
|
2005
|
-
|
|
2006
|
-
return
|
|
2844
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2845
|
+
return AIAuditApiFp(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
|
|
2007
2846
|
}
|
|
2008
2847
|
/**
|
|
2009
|
-
*
|
|
2010
|
-
* @summary
|
|
2011
|
-
* @param {string} organisation The organisation
|
|
2012
|
-
* @param {string}
|
|
2848
|
+
* 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.
|
|
2849
|
+
* @summary List AI governance ledger entries
|
|
2850
|
+
* @param {string} organisation The organisation machine name
|
|
2851
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2852
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2853
|
+
* @param {number} [limit]
|
|
2854
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2013
2855
|
* @param {*} [options] Override http request option.
|
|
2014
2856
|
* @throws {RequiredError}
|
|
2015
|
-
* @memberof
|
|
2857
|
+
* @memberof AIAuditApi
|
|
2016
2858
|
*/
|
|
2017
|
-
|
|
2018
|
-
return
|
|
2859
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
2860
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2019
2861
|
}
|
|
2020
2862
|
/**
|
|
2021
|
-
*
|
|
2022
|
-
* @summary Get
|
|
2023
|
-
* @param {string} organisation The organisation
|
|
2024
|
-
* @param {string}
|
|
2863
|
+
* 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.
|
|
2864
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2865
|
+
* @param {string} organisation The organisation machine name
|
|
2866
|
+
* @param {string} key
|
|
2025
2867
|
* @param {*} [options] Override http request option.
|
|
2026
2868
|
* @throws {RequiredError}
|
|
2027
|
-
* @memberof
|
|
2869
|
+
* @memberof AIAuditApi
|
|
2028
2870
|
*/
|
|
2029
|
-
|
|
2030
|
-
return
|
|
2871
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
2872
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
2031
2873
|
}
|
|
2032
2874
|
/**
|
|
2033
|
-
*
|
|
2034
|
-
* @summary Get
|
|
2035
|
-
* @param {string} organisation The organisation
|
|
2036
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2875
|
+
* 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.
|
|
2876
|
+
* @summary Get the governance ledger public key
|
|
2877
|
+
* @param {string} organisation The organisation machine name
|
|
2037
2878
|
* @param {*} [options] Override http request option.
|
|
2038
2879
|
* @throws {RequiredError}
|
|
2039
|
-
* @memberof
|
|
2880
|
+
* @memberof AIAuditApi
|
|
2040
2881
|
*/
|
|
2041
|
-
|
|
2042
|
-
return
|
|
2882
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
2883
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
2043
2884
|
}
|
|
2044
2885
|
/**
|
|
2045
|
-
*
|
|
2046
|
-
* @summary
|
|
2047
|
-
* @param {string} organisation The organisation
|
|
2048
|
-
* @param {string} [
|
|
2886
|
+
* 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.
|
|
2887
|
+
* @summary Get the AI governance ledger status
|
|
2888
|
+
* @param {string} organisation The organisation machine name
|
|
2889
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2049
2890
|
* @param {*} [options] Override http request option.
|
|
2050
2891
|
* @throws {RequiredError}
|
|
2051
|
-
* @memberof
|
|
2892
|
+
* @memberof AIAuditApi
|
|
2052
2893
|
*/
|
|
2053
|
-
|
|
2054
|
-
return
|
|
2894
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
2895
|
+
return AIAuditApiFp(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2055
2896
|
}
|
|
2056
2897
|
/**
|
|
2057
|
-
*
|
|
2058
|
-
* @summary
|
|
2059
|
-
* @param {string} organisation The organisation
|
|
2060
|
-
* @param {string}
|
|
2061
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2898
|
+
* 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.
|
|
2899
|
+
* @summary Get one AI audit record
|
|
2900
|
+
* @param {string} organisation The organisation machine name
|
|
2901
|
+
* @param {string} key
|
|
2062
2902
|
* @param {*} [options] Override http request option.
|
|
2063
2903
|
* @throws {RequiredError}
|
|
2064
|
-
* @memberof
|
|
2904
|
+
* @memberof AIAuditApi
|
|
2065
2905
|
*/
|
|
2066
|
-
|
|
2067
|
-
return
|
|
2906
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
2907
|
+
return AIAuditApiFp(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
2068
2908
|
}
|
|
2069
2909
|
/**
|
|
2070
|
-
*
|
|
2071
|
-
* @summary
|
|
2072
|
-
* @param {string} organisation The organisation
|
|
2073
|
-
* @param {string}
|
|
2074
|
-
* @param {
|
|
2910
|
+
* 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.
|
|
2911
|
+
* @summary List AI audit records
|
|
2912
|
+
* @param {string} organisation The organisation machine name
|
|
2913
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2914
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2915
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2916
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2917
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2918
|
+
* @param {string} [tokenId]
|
|
2919
|
+
* @param {string} [modelId]
|
|
2920
|
+
* @param {string} [recordType]
|
|
2921
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2922
|
+
* @param {string} [tool]
|
|
2923
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2924
|
+
* @param {string} [_interface]
|
|
2925
|
+
* @param {number} [limit]
|
|
2926
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
2075
2927
|
* @param {*} [options] Override http request option.
|
|
2076
2928
|
* @throws {RequiredError}
|
|
2077
|
-
* @memberof
|
|
2929
|
+
* @memberof AIAuditApi
|
|
2078
2930
|
*/
|
|
2079
|
-
|
|
2080
|
-
return
|
|
2931
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
2932
|
+
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));
|
|
2081
2933
|
}
|
|
2082
2934
|
}
|
|
2083
2935
|
/**
|
|
@@ -5488,7 +6340,7 @@ export const AISearchApiAxiosParamCreator = function (configuration) {
|
|
|
5488
6340
|
};
|
|
5489
6341
|
}),
|
|
5490
6342
|
/**
|
|
5491
|
-
*
|
|
6343
|
+
* 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
6344
|
* @summary Get the most popular AI Search queries
|
|
5493
6345
|
* @param {string} organisation
|
|
5494
6346
|
* @param {string} project
|
|
@@ -5898,7 +6750,7 @@ export const AISearchApiFp = function (configuration) {
|
|
|
5898
6750
|
});
|
|
5899
6751
|
},
|
|
5900
6752
|
/**
|
|
5901
|
-
*
|
|
6753
|
+
* 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
6754
|
* @summary Get the most popular AI Search queries
|
|
5903
6755
|
* @param {string} organisation
|
|
5904
6756
|
* @param {string} project
|
|
@@ -6137,7 +6989,7 @@ export const AISearchApiFactory = function (configuration, basePath, axios) {
|
|
|
6137
6989
|
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
6138
6990
|
},
|
|
6139
6991
|
/**
|
|
6140
|
-
*
|
|
6992
|
+
* 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
6993
|
* @summary Get the most popular AI Search queries
|
|
6142
6994
|
* @param {string} organisation
|
|
6143
6995
|
* @param {string} project
|
|
@@ -6365,7 +7217,7 @@ export class AISearchApi extends BaseAPI {
|
|
|
6365
7217
|
return AISearchApiFp(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
6366
7218
|
}
|
|
6367
7219
|
/**
|
|
6368
|
-
*
|
|
7220
|
+
* 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
7221
|
* @summary Get the most popular AI Search queries
|
|
6370
7222
|
* @param {string} organisation
|
|
6371
7223
|
* @param {string} project
|
|
@@ -7845,6 +8697,46 @@ export class AISkillsApi extends BaseAPI {
|
|
|
7845
8697
|
*/
|
|
7846
8698
|
export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
7847
8699
|
return {
|
|
8700
|
+
/**
|
|
8701
|
+
*
|
|
8702
|
+
* @summary Cancel an unanswered Slack interaction
|
|
8703
|
+
* @param {string} organisation
|
|
8704
|
+
* @param {string} botId
|
|
8705
|
+
* @param {string} interactionId
|
|
8706
|
+
* @param {*} [options] Override http request option.
|
|
8707
|
+
* @throws {RequiredError}
|
|
8708
|
+
*/
|
|
8709
|
+
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 = {}) {
|
|
8710
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
8711
|
+
assertParamExists('cancelSlackInteraction', 'organisation', organisation);
|
|
8712
|
+
// verify required parameter 'botId' is not null or undefined
|
|
8713
|
+
assertParamExists('cancelSlackInteraction', 'botId', botId);
|
|
8714
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
8715
|
+
assertParamExists('cancelSlackInteraction', 'interactionId', interactionId);
|
|
8716
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
|
|
8717
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
8718
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
8719
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
8720
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8721
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8722
|
+
let baseOptions;
|
|
8723
|
+
if (configuration) {
|
|
8724
|
+
baseOptions = configuration.baseOptions;
|
|
8725
|
+
}
|
|
8726
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8727
|
+
const localVarHeaderParameter = {};
|
|
8728
|
+
const localVarQueryParameter = {};
|
|
8729
|
+
// authentication BearerAuth required
|
|
8730
|
+
// http bearer authentication required
|
|
8731
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8732
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8733
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8734
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8735
|
+
return {
|
|
8736
|
+
url: toPathString(localVarUrlObj),
|
|
8737
|
+
options: localVarRequestOptions,
|
|
8738
|
+
};
|
|
8739
|
+
}),
|
|
7848
8740
|
/**
|
|
7849
8741
|
* 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
8742
|
* @summary Create Slack Bot
|
|
@@ -7882,6 +8774,53 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
7882
8774
|
options: localVarRequestOptions,
|
|
7883
8775
|
};
|
|
7884
8776
|
}),
|
|
8777
|
+
/**
|
|
8778
|
+
* 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.
|
|
8779
|
+
* @summary Ask for a single Slack button response
|
|
8780
|
+
* @param {string} organisation
|
|
8781
|
+
* @param {string} botId
|
|
8782
|
+
* @param {string} idempotencyKey
|
|
8783
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
8784
|
+
* @param {*} [options] Override http request option.
|
|
8785
|
+
* @throws {RequiredError}
|
|
8786
|
+
*/
|
|
8787
|
+
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 = {}) {
|
|
8788
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
8789
|
+
assertParamExists('createSlackInteraction', 'organisation', organisation);
|
|
8790
|
+
// verify required parameter 'botId' is not null or undefined
|
|
8791
|
+
assertParamExists('createSlackInteraction', 'botId', botId);
|
|
8792
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
8793
|
+
assertParamExists('createSlackInteraction', 'idempotencyKey', idempotencyKey);
|
|
8794
|
+
// verify required parameter 'createSlackInteractionRequest' is not null or undefined
|
|
8795
|
+
assertParamExists('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest);
|
|
8796
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
|
|
8797
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
8798
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
8799
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8800
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8801
|
+
let baseOptions;
|
|
8802
|
+
if (configuration) {
|
|
8803
|
+
baseOptions = configuration.baseOptions;
|
|
8804
|
+
}
|
|
8805
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8806
|
+
const localVarHeaderParameter = {};
|
|
8807
|
+
const localVarQueryParameter = {};
|
|
8808
|
+
// authentication BearerAuth required
|
|
8809
|
+
// http bearer authentication required
|
|
8810
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8811
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8812
|
+
if (idempotencyKey != null) {
|
|
8813
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
8814
|
+
}
|
|
8815
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8816
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8817
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8818
|
+
localVarRequestOptions.data = serializeDataIfNeeded(createSlackInteractionRequest, localVarRequestOptions, configuration);
|
|
8819
|
+
return {
|
|
8820
|
+
url: toPathString(localVarUrlObj),
|
|
8821
|
+
options: localVarRequestOptions,
|
|
8822
|
+
};
|
|
8823
|
+
}),
|
|
7885
8824
|
/**
|
|
7886
8825
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
7887
8826
|
* @summary Delete Slack Bot
|
|
@@ -8010,6 +8949,46 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
8010
8949
|
options: localVarRequestOptions,
|
|
8011
8950
|
};
|
|
8012
8951
|
}),
|
|
8952
|
+
/**
|
|
8953
|
+
* 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.
|
|
8954
|
+
* @summary Read an external Slack interaction
|
|
8955
|
+
* @param {string} organisation
|
|
8956
|
+
* @param {string} botId
|
|
8957
|
+
* @param {string} interactionId
|
|
8958
|
+
* @param {*} [options] Override http request option.
|
|
8959
|
+
* @throws {RequiredError}
|
|
8960
|
+
*/
|
|
8961
|
+
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 = {}) {
|
|
8962
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
8963
|
+
assertParamExists('getSlackInteraction', 'organisation', organisation);
|
|
8964
|
+
// verify required parameter 'botId' is not null or undefined
|
|
8965
|
+
assertParamExists('getSlackInteraction', 'botId', botId);
|
|
8966
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
8967
|
+
assertParamExists('getSlackInteraction', 'interactionId', interactionId);
|
|
8968
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
|
|
8969
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
8970
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
8971
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
8972
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8973
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
8974
|
+
let baseOptions;
|
|
8975
|
+
if (configuration) {
|
|
8976
|
+
baseOptions = configuration.baseOptions;
|
|
8977
|
+
}
|
|
8978
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
8979
|
+
const localVarHeaderParameter = {};
|
|
8980
|
+
const localVarQueryParameter = {};
|
|
8981
|
+
// authentication BearerAuth required
|
|
8982
|
+
// http bearer authentication required
|
|
8983
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
8984
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
8985
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8986
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8987
|
+
return {
|
|
8988
|
+
url: toPathString(localVarUrlObj),
|
|
8989
|
+
options: localVarRequestOptions,
|
|
8990
|
+
};
|
|
8991
|
+
}),
|
|
8013
8992
|
/**
|
|
8014
8993
|
* 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
8994
|
* @summary Read recent channel messages
|
|
@@ -8126,6 +9105,51 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
8126
9105
|
options: localVarRequestOptions,
|
|
8127
9106
|
};
|
|
8128
9107
|
}),
|
|
9108
|
+
/**
|
|
9109
|
+
* 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.
|
|
9110
|
+
* @summary Post an image as the bot
|
|
9111
|
+
* @param {string} organisation The organisation machine name
|
|
9112
|
+
* @param {string} botId
|
|
9113
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9114
|
+
* @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.
|
|
9115
|
+
* @param {*} [options] Override http request option.
|
|
9116
|
+
* @throws {RequiredError}
|
|
9117
|
+
*/
|
|
9118
|
+
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 = {}) {
|
|
9119
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
9120
|
+
assertParamExists('postSlackBotFile', 'organisation', organisation);
|
|
9121
|
+
// verify required parameter 'botId' is not null or undefined
|
|
9122
|
+
assertParamExists('postSlackBotFile', 'botId', botId);
|
|
9123
|
+
// verify required parameter 'postSlackBotFileRequest' is not null or undefined
|
|
9124
|
+
assertParamExists('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest);
|
|
9125
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
|
|
9126
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
9127
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
9128
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9129
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
9130
|
+
let baseOptions;
|
|
9131
|
+
if (configuration) {
|
|
9132
|
+
baseOptions = configuration.baseOptions;
|
|
9133
|
+
}
|
|
9134
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9135
|
+
const localVarHeaderParameter = {};
|
|
9136
|
+
const localVarQueryParameter = {};
|
|
9137
|
+
// authentication BearerAuth required
|
|
9138
|
+
// http bearer authentication required
|
|
9139
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
9140
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9141
|
+
if (idempotencyKey != null) {
|
|
9142
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
9143
|
+
}
|
|
9144
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
9145
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9146
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9147
|
+
localVarRequestOptions.data = serializeDataIfNeeded(postSlackBotFileRequest, localVarRequestOptions, configuration);
|
|
9148
|
+
return {
|
|
9149
|
+
url: toPathString(localVarUrlObj),
|
|
9150
|
+
options: localVarRequestOptions,
|
|
9151
|
+
};
|
|
9152
|
+
}),
|
|
8129
9153
|
/**
|
|
8130
9154
|
* 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
9155
|
* @summary Post a message as the bot
|
|
@@ -8301,6 +9325,24 @@ export const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
8301
9325
|
export const AISlackBotsApiFp = function (configuration) {
|
|
8302
9326
|
const localVarAxiosParamCreator = AISlackBotsApiAxiosParamCreator(configuration);
|
|
8303
9327
|
return {
|
|
9328
|
+
/**
|
|
9329
|
+
*
|
|
9330
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9331
|
+
* @param {string} organisation
|
|
9332
|
+
* @param {string} botId
|
|
9333
|
+
* @param {string} interactionId
|
|
9334
|
+
* @param {*} [options] Override http request option.
|
|
9335
|
+
* @throws {RequiredError}
|
|
9336
|
+
*/
|
|
9337
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9338
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9339
|
+
var _a, _b, _c;
|
|
9340
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
|
|
9341
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9342
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.cancelSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9343
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9344
|
+
});
|
|
9345
|
+
},
|
|
8304
9346
|
/**
|
|
8305
9347
|
* 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
9348
|
* @summary Create Slack Bot
|
|
@@ -8318,6 +9360,25 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
8318
9360
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8319
9361
|
});
|
|
8320
9362
|
},
|
|
9363
|
+
/**
|
|
9364
|
+
* 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.
|
|
9365
|
+
* @summary Ask for a single Slack button response
|
|
9366
|
+
* @param {string} organisation
|
|
9367
|
+
* @param {string} botId
|
|
9368
|
+
* @param {string} idempotencyKey
|
|
9369
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9370
|
+
* @param {*} [options] Override http request option.
|
|
9371
|
+
* @throws {RequiredError}
|
|
9372
|
+
*/
|
|
9373
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9374
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9375
|
+
var _a, _b, _c;
|
|
9376
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
|
|
9377
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9378
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.createSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9379
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9380
|
+
});
|
|
9381
|
+
},
|
|
8321
9382
|
/**
|
|
8322
9383
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8323
9384
|
* @summary Delete Slack Bot
|
|
@@ -8374,6 +9435,24 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
8374
9435
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8375
9436
|
});
|
|
8376
9437
|
},
|
|
9438
|
+
/**
|
|
9439
|
+
* 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.
|
|
9440
|
+
* @summary Read an external Slack interaction
|
|
9441
|
+
* @param {string} organisation
|
|
9442
|
+
* @param {string} botId
|
|
9443
|
+
* @param {string} interactionId
|
|
9444
|
+
* @param {*} [options] Override http request option.
|
|
9445
|
+
* @throws {RequiredError}
|
|
9446
|
+
*/
|
|
9447
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9448
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9449
|
+
var _a, _b, _c;
|
|
9450
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
|
|
9451
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9452
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.getSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9453
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9454
|
+
});
|
|
9455
|
+
},
|
|
8377
9456
|
/**
|
|
8378
9457
|
* 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
9458
|
* @summary Read recent channel messages
|
|
@@ -8427,6 +9506,25 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
8427
9506
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8428
9507
|
});
|
|
8429
9508
|
},
|
|
9509
|
+
/**
|
|
9510
|
+
* 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.
|
|
9511
|
+
* @summary Post an image as the bot
|
|
9512
|
+
* @param {string} organisation The organisation machine name
|
|
9513
|
+
* @param {string} botId
|
|
9514
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9515
|
+
* @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.
|
|
9516
|
+
* @param {*} [options] Override http request option.
|
|
9517
|
+
* @throws {RequiredError}
|
|
9518
|
+
*/
|
|
9519
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
9520
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9521
|
+
var _a, _b, _c;
|
|
9522
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
|
|
9523
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9524
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['AISlackBotsApi.postSlackBotFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9525
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9526
|
+
});
|
|
9527
|
+
},
|
|
8430
9528
|
/**
|
|
8431
9529
|
* 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
9530
|
* @summary Post a message as the bot
|
|
@@ -8509,6 +9607,18 @@ export const AISlackBotsApiFp = function (configuration) {
|
|
|
8509
9607
|
export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
8510
9608
|
const localVarFp = AISlackBotsApiFp(configuration);
|
|
8511
9609
|
return {
|
|
9610
|
+
/**
|
|
9611
|
+
*
|
|
9612
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9613
|
+
* @param {string} organisation
|
|
9614
|
+
* @param {string} botId
|
|
9615
|
+
* @param {string} interactionId
|
|
9616
|
+
* @param {*} [options] Override http request option.
|
|
9617
|
+
* @throws {RequiredError}
|
|
9618
|
+
*/
|
|
9619
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9620
|
+
return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
9621
|
+
},
|
|
8512
9622
|
/**
|
|
8513
9623
|
* 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
9624
|
* @summary Create Slack Bot
|
|
@@ -8520,6 +9630,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8520
9630
|
createSlackBot(organisation, createSlackBotRequest, options) {
|
|
8521
9631
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
8522
9632
|
},
|
|
9633
|
+
/**
|
|
9634
|
+
* 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.
|
|
9635
|
+
* @summary Ask for a single Slack button response
|
|
9636
|
+
* @param {string} organisation
|
|
9637
|
+
* @param {string} botId
|
|
9638
|
+
* @param {string} idempotencyKey
|
|
9639
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9640
|
+
* @param {*} [options] Override http request option.
|
|
9641
|
+
* @throws {RequiredError}
|
|
9642
|
+
*/
|
|
9643
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9644
|
+
return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
|
|
9645
|
+
},
|
|
8523
9646
|
/**
|
|
8524
9647
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8525
9648
|
* @summary Delete Slack Bot
|
|
@@ -8558,6 +9681,18 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8558
9681
|
getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
|
|
8559
9682
|
return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
|
|
8560
9683
|
},
|
|
9684
|
+
/**
|
|
9685
|
+
* 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.
|
|
9686
|
+
* @summary Read an external Slack interaction
|
|
9687
|
+
* @param {string} organisation
|
|
9688
|
+
* @param {string} botId
|
|
9689
|
+
* @param {string} interactionId
|
|
9690
|
+
* @param {*} [options] Override http request option.
|
|
9691
|
+
* @throws {RequiredError}
|
|
9692
|
+
*/
|
|
9693
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9694
|
+
return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
9695
|
+
},
|
|
8561
9696
|
/**
|
|
8562
9697
|
* 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
9698
|
* @summary Read recent channel messages
|
|
@@ -8593,6 +9728,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8593
9728
|
listSlackBotsApiEnabled(organisation, options) {
|
|
8594
9729
|
return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
|
|
8595
9730
|
},
|
|
9731
|
+
/**
|
|
9732
|
+
* 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.
|
|
9733
|
+
* @summary Post an image as the bot
|
|
9734
|
+
* @param {string} organisation The organisation machine name
|
|
9735
|
+
* @param {string} botId
|
|
9736
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9737
|
+
* @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.
|
|
9738
|
+
* @param {*} [options] Override http request option.
|
|
9739
|
+
* @throws {RequiredError}
|
|
9740
|
+
*/
|
|
9741
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
9742
|
+
return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
9743
|
+
},
|
|
8596
9744
|
/**
|
|
8597
9745
|
* 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
9746
|
* @summary Post a message as the bot
|
|
@@ -8651,6 +9799,19 @@ export const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8651
9799
|
* @extends {BaseAPI}
|
|
8652
9800
|
*/
|
|
8653
9801
|
export class AISlackBotsApi extends BaseAPI {
|
|
9802
|
+
/**
|
|
9803
|
+
*
|
|
9804
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9805
|
+
* @param {string} organisation
|
|
9806
|
+
* @param {string} botId
|
|
9807
|
+
* @param {string} interactionId
|
|
9808
|
+
* @param {*} [options] Override http request option.
|
|
9809
|
+
* @throws {RequiredError}
|
|
9810
|
+
* @memberof AISlackBotsApi
|
|
9811
|
+
*/
|
|
9812
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9813
|
+
return AISlackBotsApiFp(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
9814
|
+
}
|
|
8654
9815
|
/**
|
|
8655
9816
|
* 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
9817
|
* @summary Create Slack Bot
|
|
@@ -8663,6 +9824,20 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
8663
9824
|
createSlackBot(organisation, createSlackBotRequest, options) {
|
|
8664
9825
|
return AISlackBotsApiFp(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8665
9826
|
}
|
|
9827
|
+
/**
|
|
9828
|
+
* 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.
|
|
9829
|
+
* @summary Ask for a single Slack button response
|
|
9830
|
+
* @param {string} organisation
|
|
9831
|
+
* @param {string} botId
|
|
9832
|
+
* @param {string} idempotencyKey
|
|
9833
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9834
|
+
* @param {*} [options] Override http request option.
|
|
9835
|
+
* @throws {RequiredError}
|
|
9836
|
+
* @memberof AISlackBotsApi
|
|
9837
|
+
*/
|
|
9838
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9839
|
+
return AISlackBotsApiFp(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9840
|
+
}
|
|
8666
9841
|
/**
|
|
8667
9842
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8668
9843
|
* @summary Delete Slack Bot
|
|
@@ -8704,6 +9879,19 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
8704
9879
|
getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
|
|
8705
9880
|
return AISlackBotsApiFp(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
8706
9881
|
}
|
|
9882
|
+
/**
|
|
9883
|
+
* 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.
|
|
9884
|
+
* @summary Read an external Slack interaction
|
|
9885
|
+
* @param {string} organisation
|
|
9886
|
+
* @param {string} botId
|
|
9887
|
+
* @param {string} interactionId
|
|
9888
|
+
* @param {*} [options] Override http request option.
|
|
9889
|
+
* @throws {RequiredError}
|
|
9890
|
+
* @memberof AISlackBotsApi
|
|
9891
|
+
*/
|
|
9892
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9893
|
+
return AISlackBotsApiFp(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
9894
|
+
}
|
|
8707
9895
|
/**
|
|
8708
9896
|
* 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
9897
|
* @summary Read recent channel messages
|
|
@@ -8742,6 +9930,20 @@ export class AISlackBotsApi extends BaseAPI {
|
|
|
8742
9930
|
listSlackBotsApiEnabled(organisation, options) {
|
|
8743
9931
|
return AISlackBotsApiFp(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
8744
9932
|
}
|
|
9933
|
+
/**
|
|
9934
|
+
* 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.
|
|
9935
|
+
* @summary Post an image as the bot
|
|
9936
|
+
* @param {string} organisation The organisation machine name
|
|
9937
|
+
* @param {string} botId
|
|
9938
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9939
|
+
* @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.
|
|
9940
|
+
* @param {*} [options] Override http request option.
|
|
9941
|
+
* @throws {RequiredError}
|
|
9942
|
+
* @memberof AISlackBotsApi
|
|
9943
|
+
*/
|
|
9944
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
9945
|
+
return AISlackBotsApiFp(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
9946
|
+
}
|
|
8745
9947
|
/**
|
|
8746
9948
|
* 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
9949
|
* @summary Post a message as the bot
|
|
@@ -17797,7 +18999,7 @@ export const KVApiAxiosParamCreator = function (configuration) {
|
|
|
17797
18999
|
};
|
|
17798
19000
|
}),
|
|
17799
19001
|
/**
|
|
17800
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
19002
|
+
* 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
19003
|
* @summary Set a key, optionally only if absent or only at a version
|
|
17802
19004
|
* @param {string} organization Organization identifier
|
|
17803
19005
|
* @param {string} project Project identifier
|
|
@@ -20239,7 +21441,7 @@ export const KVApiFp = function (configuration) {
|
|
|
20239
21441
|
});
|
|
20240
21442
|
},
|
|
20241
21443
|
/**
|
|
20242
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
21444
|
+
* 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
21445
|
* @summary Set a key, optionally only if absent or only at a version
|
|
20244
21446
|
* @param {string} organization Organization identifier
|
|
20245
21447
|
* @param {string} project Project identifier
|
|
@@ -21306,7 +22508,7 @@ export const KVApiFactory = function (configuration, basePath, axios) {
|
|
|
21306
22508
|
return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
|
|
21307
22509
|
},
|
|
21308
22510
|
/**
|
|
21309
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
22511
|
+
* 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
22512
|
* @summary Set a key, optionally only if absent or only at a version
|
|
21311
22513
|
* @param {string} organization Organization identifier
|
|
21312
22514
|
* @param {string} project Project identifier
|
|
@@ -22094,7 +23296,7 @@ export class KVApi extends BaseAPI {
|
|
|
22094
23296
|
return KVApiFp(this.configuration).kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(this.axios, this.basePath));
|
|
22095
23297
|
}
|
|
22096
23298
|
/**
|
|
22097
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
23299
|
+
* 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
23300
|
* @summary Set a key, optionally only if absent or only at a version
|
|
22099
23301
|
* @param {string} organization Organization identifier
|
|
22100
23302
|
* @param {string} project Project identifier
|
|
@@ -23286,7 +24488,7 @@ export class OrganizationsApi extends BaseAPI {
|
|
|
23286
24488
|
export const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
23287
24489
|
return {
|
|
23288
24490
|
/**
|
|
23289
|
-
* Retrieves CDN access log entries for a
|
|
24491
|
+
* 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
24492
|
* @summary Get CDN access logs for a project
|
|
23291
24493
|
* @param {string} organization The organization machine name
|
|
23292
24494
|
* @param {string} project The project machine name
|
|
@@ -23543,7 +24745,7 @@ export const ProjectsApiFp = function (configuration) {
|
|
|
23543
24745
|
const localVarAxiosParamCreator = ProjectsApiAxiosParamCreator(configuration);
|
|
23544
24746
|
return {
|
|
23545
24747
|
/**
|
|
23546
|
-
* Retrieves CDN access log entries for a
|
|
24748
|
+
* 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
24749
|
* @summary Get CDN access logs for a project
|
|
23548
24750
|
* @param {string} organization The organization machine name
|
|
23549
24751
|
* @param {string} project The project machine name
|
|
@@ -23661,7 +24863,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
23661
24863
|
const localVarFp = ProjectsApiFp(configuration);
|
|
23662
24864
|
return {
|
|
23663
24865
|
/**
|
|
23664
|
-
* Retrieves CDN access log entries for a
|
|
24866
|
+
* 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
24867
|
* @summary Get CDN access logs for a project
|
|
23666
24868
|
* @param {string} organization The organization machine name
|
|
23667
24869
|
* @param {string} project The project machine name
|
|
@@ -23743,7 +24945,7 @@ export const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
23743
24945
|
*/
|
|
23744
24946
|
export class ProjectsApi extends BaseAPI {
|
|
23745
24947
|
/**
|
|
23746
|
-
* Retrieves CDN access log entries for a
|
|
24948
|
+
* 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
24949
|
* @summary Get CDN access logs for a project
|
|
23748
24950
|
* @param {string} organization The organization machine name
|
|
23749
24951
|
* @param {string} project The project machine name
|
|
@@ -26520,36 +27722,72 @@ export const RulesApiAxiosParamCreator = function (configuration) {
|
|
|
26520
27722
|
* @param {*} [options] Override http request option.
|
|
26521
27723
|
* @throws {RequiredError}
|
|
26522
27724
|
*/
|
|
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 = {}) {
|
|
27725
|
+
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 = {}) {
|
|
27726
|
+
// verify required parameter 'organization' is not null or undefined
|
|
27727
|
+
assertParamExists('rulesHeadersUpdate', 'organization', organization);
|
|
27728
|
+
// verify required parameter 'project' is not null or undefined
|
|
27729
|
+
assertParamExists('rulesHeadersUpdate', 'project', project);
|
|
27730
|
+
// verify required parameter 'rule' is not null or undefined
|
|
27731
|
+
assertParamExists('rulesHeadersUpdate', 'rule', rule);
|
|
27732
|
+
// verify required parameter 'v2RuleHeaderRequest' is not null or undefined
|
|
27733
|
+
assertParamExists('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
|
|
27734
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
|
|
27735
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
27736
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
27737
|
+
.replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
|
|
27738
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27739
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
27740
|
+
let baseOptions;
|
|
27741
|
+
if (configuration) {
|
|
27742
|
+
baseOptions = configuration.baseOptions;
|
|
27743
|
+
}
|
|
27744
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
27745
|
+
const localVarHeaderParameter = {};
|
|
27746
|
+
const localVarQueryParameter = {};
|
|
27747
|
+
// authentication BearerAuth required
|
|
27748
|
+
// http bearer authentication required
|
|
27749
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
27750
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27751
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
27752
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27753
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27754
|
+
localVarRequestOptions.data = serializeDataIfNeeded(v2RuleHeaderRequest, localVarRequestOptions, configuration);
|
|
27755
|
+
return {
|
|
27756
|
+
url: toPathString(localVarUrlObj),
|
|
27757
|
+
options: localVarRequestOptions,
|
|
27758
|
+
};
|
|
27759
|
+
}),
|
|
27760
|
+
/**
|
|
27761
|
+
* 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.
|
|
27762
|
+
* @summary List all rules in edge order
|
|
27763
|
+
* @param {string} organization
|
|
27764
|
+
* @param {string} project
|
|
27765
|
+
* @param {*} [options] Override http request option.
|
|
27766
|
+
* @throws {RequiredError}
|
|
27767
|
+
*/
|
|
27768
|
+
rulesIndexList: (organization_1, project_1, ...args_1) => __awaiter(this, [organization_1, project_1, ...args_1], void 0, function* (organization, project, options = {}) {
|
|
26524
27769
|
// verify required parameter 'organization' is not null or undefined
|
|
26525
|
-
assertParamExists('
|
|
27770
|
+
assertParamExists('rulesIndexList', 'organization', organization);
|
|
26526
27771
|
// verify required parameter 'project' is not null or undefined
|
|
26527
|
-
assertParamExists('
|
|
26528
|
-
|
|
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}`
|
|
27772
|
+
assertParamExists('rulesIndexList', 'project', project);
|
|
27773
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
|
|
26533
27774
|
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
26534
|
-
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
26535
|
-
.replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
|
|
27775
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
26536
27776
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26537
27777
|
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
26538
27778
|
let baseOptions;
|
|
26539
27779
|
if (configuration) {
|
|
26540
27780
|
baseOptions = configuration.baseOptions;
|
|
26541
27781
|
}
|
|
26542
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
27782
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26543
27783
|
const localVarHeaderParameter = {};
|
|
26544
27784
|
const localVarQueryParameter = {};
|
|
26545
27785
|
// authentication BearerAuth required
|
|
26546
27786
|
// http bearer authentication required
|
|
26547
27787
|
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
26548
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26549
27788
|
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
26550
27789
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26551
27790
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26552
|
-
localVarRequestOptions.data = serializeDataIfNeeded(v2RuleHeaderRequest, localVarRequestOptions, configuration);
|
|
26553
27791
|
return {
|
|
26554
27792
|
url: toPathString(localVarUrlObj),
|
|
26555
27793
|
options: localVarRequestOptions,
|
|
@@ -27890,6 +29128,23 @@ export const RulesApiFp = function (configuration) {
|
|
|
27890
29128
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
27891
29129
|
});
|
|
27892
29130
|
},
|
|
29131
|
+
/**
|
|
29132
|
+
* 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.
|
|
29133
|
+
* @summary List all rules in edge order
|
|
29134
|
+
* @param {string} organization
|
|
29135
|
+
* @param {string} project
|
|
29136
|
+
* @param {*} [options] Override http request option.
|
|
29137
|
+
* @throws {RequiredError}
|
|
29138
|
+
*/
|
|
29139
|
+
rulesIndexList(organization, project, options) {
|
|
29140
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29141
|
+
var _a, _b, _c;
|
|
29142
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rulesIndexList(organization, project, options);
|
|
29143
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29144
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['RulesApi.rulesIndexList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29145
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29146
|
+
});
|
|
29147
|
+
},
|
|
27893
29148
|
/**
|
|
27894
29149
|
*
|
|
27895
29150
|
* @summary Create a proxy rule
|
|
@@ -28649,6 +29904,17 @@ export const RulesApiFactory = function (configuration, basePath, axios) {
|
|
|
28649
29904
|
rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
|
|
28650
29905
|
return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
|
|
28651
29906
|
},
|
|
29907
|
+
/**
|
|
29908
|
+
* 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.
|
|
29909
|
+
* @summary List all rules in edge order
|
|
29910
|
+
* @param {string} organization
|
|
29911
|
+
* @param {string} project
|
|
29912
|
+
* @param {*} [options] Override http request option.
|
|
29913
|
+
* @throws {RequiredError}
|
|
29914
|
+
*/
|
|
29915
|
+
rulesIndexList(organization, project, options) {
|
|
29916
|
+
return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
|
|
29917
|
+
},
|
|
28652
29918
|
/**
|
|
28653
29919
|
*
|
|
28654
29920
|
* @summary Create a proxy rule
|
|
@@ -29358,6 +30624,18 @@ export class RulesApi extends BaseAPI {
|
|
|
29358
30624
|
rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
|
|
29359
30625
|
return RulesApiFp(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29360
30626
|
}
|
|
30627
|
+
/**
|
|
30628
|
+
* 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.
|
|
30629
|
+
* @summary List all rules in edge order
|
|
30630
|
+
* @param {string} organization
|
|
30631
|
+
* @param {string} project
|
|
30632
|
+
* @param {*} [options] Override http request option.
|
|
30633
|
+
* @throws {RequiredError}
|
|
30634
|
+
* @memberof RulesApi
|
|
30635
|
+
*/
|
|
30636
|
+
rulesIndexList(organization, project, options) {
|
|
30637
|
+
return RulesApiFp(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
|
|
30638
|
+
}
|
|
29361
30639
|
/**
|
|
29362
30640
|
*
|
|
29363
30641
|
* @summary Create a proxy rule
|
|
@@ -30013,6 +31291,311 @@ export const ListScalingPoliciesMetricEnum = {
|
|
|
30013
31291
|
MemoryUtilization: 'MemoryUtilization',
|
|
30014
31292
|
Rps: 'RPS'
|
|
30015
31293
|
};
|
|
31294
|
+
/**
|
|
31295
|
+
* SecretsApi - axios parameter creator
|
|
31296
|
+
* @export
|
|
31297
|
+
*/
|
|
31298
|
+
export const SecretsApiAxiosParamCreator = function (configuration) {
|
|
31299
|
+
return {
|
|
31300
|
+
/**
|
|
31301
|
+
* 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.
|
|
31302
|
+
* @summary Delete a secret
|
|
31303
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31304
|
+
* @param {string} apiApplication The application ID
|
|
31305
|
+
* @param {string} apiEnvironment The environment ID
|
|
31306
|
+
* @param {string} apiSecret The secret key
|
|
31307
|
+
* @param {*} [options] Override http request option.
|
|
31308
|
+
* @throws {RequiredError}
|
|
31309
|
+
*/
|
|
31310
|
+
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 = {}) {
|
|
31311
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31312
|
+
assertParamExists('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation);
|
|
31313
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31314
|
+
assertParamExists('deleteEnvironmentSecret', 'apiApplication', apiApplication);
|
|
31315
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31316
|
+
assertParamExists('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment);
|
|
31317
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
31318
|
+
assertParamExists('deleteEnvironmentSecret', 'apiSecret', apiSecret);
|
|
31319
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
31320
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31321
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31322
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
31323
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
31324
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31325
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31326
|
+
let baseOptions;
|
|
31327
|
+
if (configuration) {
|
|
31328
|
+
baseOptions = configuration.baseOptions;
|
|
31329
|
+
}
|
|
31330
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
31331
|
+
const localVarHeaderParameter = {};
|
|
31332
|
+
const localVarQueryParameter = {};
|
|
31333
|
+
// authentication BearerAuth required
|
|
31334
|
+
// http bearer authentication required
|
|
31335
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
31336
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31337
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31338
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31339
|
+
return {
|
|
31340
|
+
url: toPathString(localVarUrlObj),
|
|
31341
|
+
options: localVarRequestOptions,
|
|
31342
|
+
};
|
|
31343
|
+
}),
|
|
31344
|
+
/**
|
|
31345
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31346
|
+
* @summary List the secret names for an environment
|
|
31347
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31348
|
+
* @param {string} apiApplication The application ID
|
|
31349
|
+
* @param {string} apiEnvironment The environment ID
|
|
31350
|
+
* @param {*} [options] Override http request option.
|
|
31351
|
+
* @throws {RequiredError}
|
|
31352
|
+
*/
|
|
31353
|
+
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 = {}) {
|
|
31354
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31355
|
+
assertParamExists('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation);
|
|
31356
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31357
|
+
assertParamExists('listEnvironmentSecrets', 'apiApplication', apiApplication);
|
|
31358
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31359
|
+
assertParamExists('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment);
|
|
31360
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
|
|
31361
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31362
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31363
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
31364
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31365
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31366
|
+
let baseOptions;
|
|
31367
|
+
if (configuration) {
|
|
31368
|
+
baseOptions = configuration.baseOptions;
|
|
31369
|
+
}
|
|
31370
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
31371
|
+
const localVarHeaderParameter = {};
|
|
31372
|
+
const localVarQueryParameter = {};
|
|
31373
|
+
// authentication BearerAuth required
|
|
31374
|
+
// http bearer authentication required
|
|
31375
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
31376
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31377
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31378
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31379
|
+
return {
|
|
31380
|
+
url: toPathString(localVarUrlObj),
|
|
31381
|
+
options: localVarRequestOptions,
|
|
31382
|
+
};
|
|
31383
|
+
}),
|
|
31384
|
+
/**
|
|
31385
|
+
* 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.
|
|
31386
|
+
* @summary Create or replace a secret
|
|
31387
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31388
|
+
* @param {string} apiApplication The application ID
|
|
31389
|
+
* @param {string} apiEnvironment The environment ID
|
|
31390
|
+
* @param {string} apiSecret The secret key
|
|
31391
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31392
|
+
* @param {*} [options] Override http request option.
|
|
31393
|
+
* @throws {RequiredError}
|
|
31394
|
+
*/
|
|
31395
|
+
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 = {}) {
|
|
31396
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31397
|
+
assertParamExists('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation);
|
|
31398
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31399
|
+
assertParamExists('updateEnvironmentSecret', 'apiApplication', apiApplication);
|
|
31400
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31401
|
+
assertParamExists('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment);
|
|
31402
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
31403
|
+
assertParamExists('updateEnvironmentSecret', 'apiSecret', apiSecret);
|
|
31404
|
+
// verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
|
|
31405
|
+
assertParamExists('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest);
|
|
31406
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
31407
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31408
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31409
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
31410
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
31411
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31412
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
31413
|
+
let baseOptions;
|
|
31414
|
+
if (configuration) {
|
|
31415
|
+
baseOptions = configuration.baseOptions;
|
|
31416
|
+
}
|
|
31417
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
31418
|
+
const localVarHeaderParameter = {};
|
|
31419
|
+
const localVarQueryParameter = {};
|
|
31420
|
+
// authentication BearerAuth required
|
|
31421
|
+
// http bearer authentication required
|
|
31422
|
+
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
|
|
31423
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31424
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
31425
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31426
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31427
|
+
localVarRequestOptions.data = serializeDataIfNeeded(updateEnvironmentSecretRequest, localVarRequestOptions, configuration);
|
|
31428
|
+
return {
|
|
31429
|
+
url: toPathString(localVarUrlObj),
|
|
31430
|
+
options: localVarRequestOptions,
|
|
31431
|
+
};
|
|
31432
|
+
}),
|
|
31433
|
+
};
|
|
31434
|
+
};
|
|
31435
|
+
/**
|
|
31436
|
+
* SecretsApi - functional programming interface
|
|
31437
|
+
* @export
|
|
31438
|
+
*/
|
|
31439
|
+
export const SecretsApiFp = function (configuration) {
|
|
31440
|
+
const localVarAxiosParamCreator = SecretsApiAxiosParamCreator(configuration);
|
|
31441
|
+
return {
|
|
31442
|
+
/**
|
|
31443
|
+
* 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.
|
|
31444
|
+
* @summary Delete a secret
|
|
31445
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31446
|
+
* @param {string} apiApplication The application ID
|
|
31447
|
+
* @param {string} apiEnvironment The environment ID
|
|
31448
|
+
* @param {string} apiSecret The secret key
|
|
31449
|
+
* @param {*} [options] Override http request option.
|
|
31450
|
+
* @throws {RequiredError}
|
|
31451
|
+
*/
|
|
31452
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31453
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31454
|
+
var _a, _b, _c;
|
|
31455
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
|
|
31456
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31457
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.deleteEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31458
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31459
|
+
});
|
|
31460
|
+
},
|
|
31461
|
+
/**
|
|
31462
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31463
|
+
* @summary List the secret names for an environment
|
|
31464
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31465
|
+
* @param {string} apiApplication The application ID
|
|
31466
|
+
* @param {string} apiEnvironment The environment ID
|
|
31467
|
+
* @param {*} [options] Override http request option.
|
|
31468
|
+
* @throws {RequiredError}
|
|
31469
|
+
*/
|
|
31470
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31471
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31472
|
+
var _a, _b, _c;
|
|
31473
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
|
|
31474
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31475
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.listEnvironmentSecrets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31476
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31477
|
+
});
|
|
31478
|
+
},
|
|
31479
|
+
/**
|
|
31480
|
+
* 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.
|
|
31481
|
+
* @summary Create or replace a secret
|
|
31482
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31483
|
+
* @param {string} apiApplication The application ID
|
|
31484
|
+
* @param {string} apiEnvironment The environment ID
|
|
31485
|
+
* @param {string} apiSecret The secret key
|
|
31486
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31487
|
+
* @param {*} [options] Override http request option.
|
|
31488
|
+
* @throws {RequiredError}
|
|
31489
|
+
*/
|
|
31490
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31492
|
+
var _a, _b, _c;
|
|
31493
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
|
|
31494
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31495
|
+
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SecretsApi.updateEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31496
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31497
|
+
});
|
|
31498
|
+
},
|
|
31499
|
+
};
|
|
31500
|
+
};
|
|
31501
|
+
/**
|
|
31502
|
+
* SecretsApi - factory interface
|
|
31503
|
+
* @export
|
|
31504
|
+
*/
|
|
31505
|
+
export const SecretsApiFactory = function (configuration, basePath, axios) {
|
|
31506
|
+
const localVarFp = SecretsApiFp(configuration);
|
|
31507
|
+
return {
|
|
31508
|
+
/**
|
|
31509
|
+
* 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.
|
|
31510
|
+
* @summary Delete a secret
|
|
31511
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31512
|
+
* @param {string} apiApplication The application ID
|
|
31513
|
+
* @param {string} apiEnvironment The environment ID
|
|
31514
|
+
* @param {string} apiSecret The secret key
|
|
31515
|
+
* @param {*} [options] Override http request option.
|
|
31516
|
+
* @throws {RequiredError}
|
|
31517
|
+
*/
|
|
31518
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31519
|
+
return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
|
|
31520
|
+
},
|
|
31521
|
+
/**
|
|
31522
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31523
|
+
* @summary List the secret names for an environment
|
|
31524
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31525
|
+
* @param {string} apiApplication The application ID
|
|
31526
|
+
* @param {string} apiEnvironment The environment ID
|
|
31527
|
+
* @param {*} [options] Override http request option.
|
|
31528
|
+
* @throws {RequiredError}
|
|
31529
|
+
*/
|
|
31530
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31531
|
+
return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
|
|
31532
|
+
},
|
|
31533
|
+
/**
|
|
31534
|
+
* 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.
|
|
31535
|
+
* @summary Create or replace a secret
|
|
31536
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31537
|
+
* @param {string} apiApplication The application ID
|
|
31538
|
+
* @param {string} apiEnvironment The environment ID
|
|
31539
|
+
* @param {string} apiSecret The secret key
|
|
31540
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31541
|
+
* @param {*} [options] Override http request option.
|
|
31542
|
+
* @throws {RequiredError}
|
|
31543
|
+
*/
|
|
31544
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31545
|
+
return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
|
|
31546
|
+
},
|
|
31547
|
+
};
|
|
31548
|
+
};
|
|
31549
|
+
/**
|
|
31550
|
+
* SecretsApi - object-oriented interface
|
|
31551
|
+
* @export
|
|
31552
|
+
* @class SecretsApi
|
|
31553
|
+
* @extends {BaseAPI}
|
|
31554
|
+
*/
|
|
31555
|
+
export class SecretsApi extends BaseAPI {
|
|
31556
|
+
/**
|
|
31557
|
+
* 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.
|
|
31558
|
+
* @summary Delete a secret
|
|
31559
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31560
|
+
* @param {string} apiApplication The application ID
|
|
31561
|
+
* @param {string} apiEnvironment The environment ID
|
|
31562
|
+
* @param {string} apiSecret The secret key
|
|
31563
|
+
* @param {*} [options] Override http request option.
|
|
31564
|
+
* @throws {RequiredError}
|
|
31565
|
+
* @memberof SecretsApi
|
|
31566
|
+
*/
|
|
31567
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31568
|
+
return SecretsApiFp(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
|
|
31569
|
+
}
|
|
31570
|
+
/**
|
|
31571
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31572
|
+
* @summary List the secret names for an environment
|
|
31573
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31574
|
+
* @param {string} apiApplication The application ID
|
|
31575
|
+
* @param {string} apiEnvironment The environment ID
|
|
31576
|
+
* @param {*} [options] Override http request option.
|
|
31577
|
+
* @throws {RequiredError}
|
|
31578
|
+
* @memberof SecretsApi
|
|
31579
|
+
*/
|
|
31580
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31581
|
+
return SecretsApiFp(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
|
|
31582
|
+
}
|
|
31583
|
+
/**
|
|
31584
|
+
* 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.
|
|
31585
|
+
* @summary Create or replace a secret
|
|
31586
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31587
|
+
* @param {string} apiApplication The application ID
|
|
31588
|
+
* @param {string} apiEnvironment The environment ID
|
|
31589
|
+
* @param {string} apiSecret The secret key
|
|
31590
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31591
|
+
* @param {*} [options] Override http request option.
|
|
31592
|
+
* @throws {RequiredError}
|
|
31593
|
+
* @memberof SecretsApi
|
|
31594
|
+
*/
|
|
31595
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31596
|
+
return SecretsApiFp(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31597
|
+
}
|
|
31598
|
+
}
|
|
30016
31599
|
/**
|
|
30017
31600
|
* SubscriptionApi - axios parameter creator
|
|
30018
31601
|
* @export
|