@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/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* 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.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.31.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,21 +22,31 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.TokensApi = exports.TokensApiFactory = exports.TokensApiFp = exports.TokensApiAxiosParamCreator = exports.SubscriptionApi = exports.SubscriptionApiFactory = exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = void 0;
|
|
25
|
+
exports.GetAgentOverlay200ResponseOverlayReasoningEffortEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.GetAIAgent200ResponseAgentReasoningEffortEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentFailureTypeEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.DecideToolProposalRequestScopeEnum = exports.DecideToolProposalRequestDecisionEnum = exports.DNSCreateRecordRequestTypeEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CronLastRunStatusEnum = exports.CreateTaskRequestStatusEnum = exports.CreateSlackInteractionRequestActionsInnerStyleEnum = exports.CreateSlackInteractionRequestResponseModeEnum = exports.CreateSlackBotRequestReasoningEffortEnum = exports.CreateSlackBotRequestSetupTypeEnum = exports.CreateOrgResourceRequestTypeEnum = exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateFilterPolicyRequestRulesInnerMatchTypeEnum = exports.CreateFilterPolicyRequestRulesInnerApplyToEnum = exports.CreateFilterPolicyRequestRulesInnerActionEnum = exports.CreateCustomToolRequestResponseModeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.CreateAIAgentRequestGuardrailPresetEnum = exports.CreateAIAgentRequestReasoningEffortEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.ChatWithAIAgent202ResponseStatusEnum = exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestResponseFormatTypeEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf3DocumentFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf2VideoFormatEnum = exports.ChatInferenceRequestMessagesInnerContentOneOfInnerOneOf1ImageFormatEnum = exports.ChatInferenceRequestMessagesInnerRoleEnum = exports.ChatInferenceRequestGuardrailsTraceEnum = exports.ChatInference202ResponseStatusEnum = exports.ChatInference200ResponseResponseRoleEnum = exports.ChatInference200ResponseFinishReasonEnum = exports.AttachOrgResourceRequestAccessLevelEnum = exports.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = exports.AiSlackBotApiMessageAllOfAuthorKindEnum = exports.AiSearchUpdateSettingsRequestQueryTextRetentionEnum = exports.AiAuditRecordRowOmittedEnum = void 0;
|
|
26
|
+
exports.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestReasoningEffortEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = exports.UpdateAIAgentRequestReasoningEffortEnum = exports.TokensCreateRequestExpiresInEnum = exports.SpotConfigurationStrategyEnum = exports.SetScalingPolicyRequestMetricEnum = exports.ResourceAttachmentAccessLevelEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PurgeOrgResourceRequestScopeEnum = exports.PurgeCreateRequestScopeEnum = exports.ProjectsDelete503ResponseCodeEnum = exports.ProjectsDelete409ResponseCodeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OrgResourceScopeEnum = exports.OrgResourceStatusEnum = exports.OrgResourceTypeEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletionsRequestReasoningEffortEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerReasoningEffortEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListSlackBotChannelMessages200ResponseContentTrustEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.IdleSleepResponseStateEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBotThread200ResponseContentTrustEnum = exports.GetSlackBot200ResponseBotReasoningEffortEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = void 0;
|
|
27
|
+
exports.V2KvLedgerStatusAnchorTypeEnum = exports.V2KvLedgerPublicKeyCurveEnum = exports.V2KvLedgerPublicKeyAlgorithmEnum = exports.V2KvLedgerProvenanceTypeEnum = exports.V2KvLedgerProofAnchorTypeEnum = exports.V2KvLedgerProofStatusEnum = exports.V2KvLedgerMetaSubjectEnum = exports.V2KvLedgerListItemStateEnum = exports.V2KvLedgerListItemSubjectCaseEnum = exports.V2KvLedgerListItemSubjectModeEnum = exports.V2KvLedgerListItemLockModeEnum = exports.V2KvLedgerLastVerifyTriggerEnum = exports.V2KvLedgerErasureSubjectPreviewKeyStateEnum = exports.V2KvLedgerErasureSignedShredReceiptAlgorithmEnum = exports.V2KvLedgerErasureShredReceiptDocumentAlgorithmEnum = exports.V2KvLedgerErasureShredReceiptBodyTypeEnum = exports.V2KvLedgerErasureShredReceiptBodyVEnum = exports.V2KvLedgerErasureShredInProgressStatusEnum = exports.V2KvLedgerDetailStateEnum = exports.V2KvLedgerDetailSubjectCaseEnum = exports.V2KvLedgerDetailSubjectModeEnum = exports.V2KvLedgerDetailLockModeEnum = exports.V2KvLedgerAnchorTsaUrlEnum = exports.V2KvLedgerAnchorTypeEnum = exports.V2KvLedgerAdminRaiseRequestLockModeEnum = exports.V2KvLedgerAdminDeclareRequestSubjectCaseEnum = exports.V2KvLedgerAdminDeclareRequestSubjectModeEnum = exports.V2KvLedgerAdminDeclareRequestLockModeEnum = exports.V2KvLedgerStateEnum = exports.V2KvLedgerSubjectCaseEnum = exports.V2KvLedgerSubjectModeEnum = exports.V2KvLedgerLockModeEnum = exports.V2KvIndexLookupStatusEnum = exports.V2KvIndexJobPhaseEnum = exports.V2KvIndexErrorEnum = exports.V2KvIndexStateEnum = exports.V2KvIncrementResponseOperationEnum = exports.V2KvExportPhaseEnum = exports.V2KvErrorLedgersInnerReasonEnum = exports.V2KvErrorReasonEnum = exports.V2KvErrorCodeEnum = exports.V2KvEntryPutResponseStatusEnum = exports.V2KvEntryDeleteResponseStatusEnum = exports.V2KvArchiveStatusSourceEnum = exports.V2KvArchiveStatusStatusEnum = exports.V2KvArchivePurgeReceiptAlgorithmEnum = exports.V2KvArchivePurgeAnswerStateEnum = exports.V2KvArchivePurgeStateEnum = exports.V1TransitionStateEnum = exports.UpsertAgentOverlayRequestReasoningEffortEnum = void 0;
|
|
28
|
+
exports.V2RuleFunctionRequestUaEnum = exports.V2RuleFunctionRequestAsnEnum = exports.V2RuleErrorPageRequestTrafficSourceIsNotEnum = exports.V2RuleErrorPageRequestTrafficSourceIsEnum = exports.V2RuleErrorPageRequestTrafficSourceEnum = exports.V2RuleErrorPageRequestUaEnum = exports.V2RuleErrorPageRequestAsnEnum = exports.V2RuleCustomResponseRequestTrafficSourceIsNotEnum = exports.V2RuleCustomResponseRequestTrafficSourceIsEnum = exports.V2RuleCustomResponseRequestTrafficSourceEnum = exports.V2RuleCustomResponseRequestUaEnum = exports.V2RuleCustomResponseRequestAsnEnum = exports.V2RuleContentFilterRequestTrafficSourceIsNotEnum = exports.V2RuleContentFilterRequestTrafficSourceIsEnum = exports.V2RuleContentFilterRequestTrafficSourceEnum = exports.V2RuleContentFilterRequestUaEnum = exports.V2RuleContentFilterRequestAsnEnum = exports.V2RuleBotChallengeRequestTrafficSourceIsNotEnum = exports.V2RuleBotChallengeRequestTrafficSourceIsEnum = exports.V2RuleBotChallengeRequestTrafficSourceEnum = exports.V2RuleBotChallengeRequestUaEnum = exports.V2RuleBotChallengeRequestAsnEnum = exports.V2RuleAuthRequestTrafficSourceIsNotEnum = exports.V2RuleAuthRequestTrafficSourceIsEnum = exports.V2RuleAuthRequestTrafficSourceEnum = exports.V2RuleAuthRequestUaEnum = exports.V2RuleAuthRequestAsnEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsEnum = exports.V2RuleAuthFunctionRequestTrafficSourceEnum = exports.V2RuleAuthFunctionRequestUaEnum = exports.V2RuleAuthFunctionRequestAsnEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = exports.V2KvUsageEstimateCurrencyEnum = exports.V2KvUsageStateEnum = exports.V2KvUsageFormatEnum = exports.V2KvUpgradeStatusPhaseEnum = exports.V2KvUpgradeStateStateEnum = exports.V2KvUpgradeStateFormatEnum = exports.V2KvUpgradeRequestActionEnum = exports.V2KvTransactOperationTypeEnum = exports.V2KvPageEnd = exports.V2KvLedgerVerifyShardReasonEnum = exports.V2KvLedgerVerificationReportReportTriggerEnum = exports.V2KvLedgerVerificationReportReportTypeEnum = exports.V2KvLedgerVerificationReportReportVEnum = exports.V2KvLedgerVerificationReportAlgorithmEnum = exports.V2KvLedgerSubjectEntriesRequestPersonalEnum = exports.V2KvLedgerSubjectEntriesSubjectStateEnum = void 0;
|
|
29
|
+
exports.AICustomToolsApiFp = exports.AICustomToolsApiAxiosParamCreator = exports.AIAuditApi = exports.AIAuditApiFactory = exports.AIAuditApiFp = exports.AIAuditApiAxiosParamCreator = exports.AIAgentsApi = exports.AIAgentsApiFactory = exports.AIAgentsApiFp = exports.AIAgentsApiAxiosParamCreator = exports.GetAIUsageStatsIncludeEnum = exports.GetAIUsageStatsGroupByEnum = exports.AIApi = exports.AIApiFactory = exports.AIApiFp = exports.AIApiAxiosParamCreator = exports.WafConfigThresholdsInnerModeEnum = exports.WafConfigThresholdsInnerTypeEnum = exports.WafConfigModeEnum = exports.V2StoreRequestFormatEnum = exports.V2StoreStatusEnum = exports.V2RuleServeStaticRequestTrafficSourceIsNotEnum = exports.V2RuleServeStaticRequestTrafficSourceIsEnum = exports.V2RuleServeStaticRequestTrafficSourceEnum = exports.V2RuleServeStaticRequestUaEnum = exports.V2RuleServeStaticRequestAsnEnum = exports.V2RuleRequestTrafficSourceIsNotEnum = exports.V2RuleRequestTrafficSourceIsEnum = exports.V2RuleRequestTrafficSourceEnum = exports.V2RuleRequestUaEnum = exports.V2RuleRequestAsnEnum = exports.V2RuleRedirectRequestTrafficSourceIsNotEnum = exports.V2RuleRedirectRequestTrafficSourceIsEnum = exports.V2RuleRedirectRequestTrafficSourceEnum = exports.V2RuleRedirectRequestUaEnum = exports.V2RuleRedirectRequestAsnEnum = exports.V2RuleProxyRequestTrafficSourceIsNotEnum = exports.V2RuleProxyRequestTrafficSourceIsEnum = exports.V2RuleProxyRequestTrafficSourceEnum = exports.V2RuleProxyRequestUaEnum = exports.V2RuleProxyRequestAsnEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2RuleHeaderRequestTrafficSourceIsNotEnum = exports.V2RuleHeaderRequestTrafficSourceIsEnum = exports.V2RuleHeaderRequestTrafficSourceEnum = exports.V2RuleHeaderRequestUaEnum = exports.V2RuleHeaderRequestAsnEnum = exports.V2RuleFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleFunctionRequestTrafficSourceIsEnum = exports.V2RuleFunctionRequestTrafficSourceEnum = void 0;
|
|
30
|
+
exports.AIToolApprovalApiAxiosParamCreator = exports.ListTasksStatusEnum = exports.AITaskManagementApi = exports.AITaskManagementApiFactory = exports.AITaskManagementApiFp = exports.AITaskManagementApiAxiosParamCreator = exports.AISlackBotsApi = exports.AISlackBotsApiFactory = exports.AISlackBotsApiFp = exports.AISlackBotsApiAxiosParamCreator = exports.AISkillsApi = exports.AISkillsApiFactory = exports.AISkillsApiFp = exports.AISkillsApiAxiosParamCreator = exports.AISessionsApi = exports.AISessionsApiFactory = exports.AISessionsApiFp = exports.AISessionsApiAxiosParamCreator = exports.AISearchApi = exports.AISearchApiFactory = exports.AISearchApiFp = exports.AISearchApiAxiosParamCreator = exports.ListOrchestrationsStatusEnum = exports.AIOrchestrationsApi = exports.AIOrchestrationsApiFactory = exports.AIOrchestrationsApiFp = exports.AIOrchestrationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIModelsApi = exports.AIModelsApiFactory = exports.AIModelsApiFp = exports.AIModelsApiAxiosParamCreator = exports.AIInferenceApi = exports.AIInferenceApiFactory = exports.AIInferenceApiFp = exports.AIInferenceApiAxiosParamCreator = exports.AIGovernanceApi = exports.AIGovernanceApiFactory = exports.AIGovernanceApiFp = exports.AIGovernanceApiAxiosParamCreator = exports.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = exports.AIFilterPoliciesApiFp = exports.AIFilterPoliciesApiAxiosParamCreator = exports.AIFileStorageApi = exports.AIFileStorageApiFactory = exports.AIFileStorageApiFp = exports.AIFileStorageApiAxiosParamCreator = exports.AICustomToolsApi = exports.AICustomToolsApiFactory = void 0;
|
|
31
|
+
exports.ContainersApiFp = exports.ContainersApiAxiosParamCreator = exports.ComposeApi = exports.ComposeApiFactory = exports.ComposeApiFp = exports.ComposeApiAxiosParamCreator = exports.CommandsApi = exports.CommandsApiFactory = exports.CommandsApiFp = exports.CommandsApiAxiosParamCreator = exports.GetMonthlyMetricsTimestampFormatEnum = exports.GetMonthlyMetricsMetricsEnum = exports.GetHourlyMetricsTimestampFormatEnum = exports.GetHourlyMetricsMetricsEnum = exports.GetDailyMetricsTimestampFormatEnum = exports.GetDailyMetricsMetricsEnum = exports.CDNMetricsApi = exports.CDNMetricsApiFactory = exports.CDNMetricsApiFp = exports.CDNMetricsApiAxiosParamCreator = exports.ListBackupsStatusEnum = exports.ListBackupsOrderEnum = exports.ListBackupsTypeEnum = exports.DownloadBackupTypeEnum = exports.DeleteBackupTypeEnum = exports.CreateBackupTypeEnum = exports.BackupManagementApi = exports.BackupManagementApiFactory = exports.BackupManagementApiFp = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = exports.AIUsageApi = exports.AIUsageApiFactory = exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.AIToolApprovalApi = exports.AIToolApprovalApiFactory = exports.AIToolApprovalApiFp = void 0;
|
|
32
|
+
exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.OpenAICompatibilityApi = exports.OpenAICompatibilityApiFactory = exports.OpenAICompatibilityApiFp = exports.OpenAICompatibilityApiAxiosParamCreator = exports.KVKeysListTypeEnum = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.IdleSleepApi = exports.IdleSleepApiFactory = exports.IdleSleepApiFp = exports.IdleSleepApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.GetEnvironmentSlowQueriesViewEnum = exports.GetEnvironmentLogsOrderEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DNSListRecordsTypeEnum = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = exports.CronApiFp = exports.CronApiAxiosParamCreator = exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = void 0;
|
|
33
|
+
exports.VolumesApi = exports.VolumesApiFactory = exports.VolumesApiFp = exports.VolumesApiAxiosParamCreator = exports.VariablesApi = exports.VariablesApiFactory = exports.VariablesApiFp = exports.VariablesApiAxiosParamCreator = exports.TokensApi = exports.TokensApiFactory = exports.TokensApiFp = exports.TokensApiAxiosParamCreator = exports.SubscriptionApi = exports.SubscriptionApiFactory = exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.SecretsApi = exports.SecretsApiFactory = exports.SecretsApiFp = exports.SecretsApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RestoreManagementApi = exports.RestoreManagementApiFactory = exports.RestoreManagementApiFp = exports.RestoreManagementApiAxiosParamCreator = exports.ResourcesApi = exports.ResourcesApiFactory = exports.ResourcesApiFp = exports.ResourcesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = void 0;
|
|
34
34
|
const axios_1 = require("axios");
|
|
35
35
|
// Some imports not used depending on template conditions
|
|
36
36
|
// @ts-ignore
|
|
37
37
|
const common_1 = require("./common");
|
|
38
38
|
// @ts-ignore
|
|
39
39
|
const base_1 = require("./base");
|
|
40
|
+
exports.AiAuditRecordRowOmittedEnum = {
|
|
41
|
+
TooLarge: 'too-large',
|
|
42
|
+
Unreadable: 'unreadable'
|
|
43
|
+
};
|
|
44
|
+
exports.AiSearchUpdateSettingsRequestQueryTextRetentionEnum = {
|
|
45
|
+
Default: 'default',
|
|
46
|
+
Store: 'store',
|
|
47
|
+
Hash: 'hash',
|
|
48
|
+
None: 'none'
|
|
49
|
+
};
|
|
40
50
|
exports.AiSlackBotApiMessageAllOfAuthorKindEnum = {
|
|
41
51
|
Human: 'human',
|
|
42
52
|
ThisBot: 'this_bot',
|
|
@@ -115,6 +125,13 @@ exports.ContainerImageReferenceTypeEnum = {
|
|
|
115
125
|
Internal: 'internal',
|
|
116
126
|
External: 'external'
|
|
117
127
|
};
|
|
128
|
+
exports.CreateAIAgentRequestReasoningEffortEnum = {
|
|
129
|
+
Low: 'low',
|
|
130
|
+
Medium: 'medium',
|
|
131
|
+
High: 'high',
|
|
132
|
+
Xhigh: 'xhigh',
|
|
133
|
+
Max: 'max'
|
|
134
|
+
};
|
|
118
135
|
exports.CreateAIAgentRequestGuardrailPresetEnum = {
|
|
119
136
|
Official: 'official',
|
|
120
137
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -168,6 +185,20 @@ exports.CreateSlackBotRequestSetupTypeEnum = {
|
|
|
168
185
|
Quant: 'quant',
|
|
169
186
|
Byo: 'byo'
|
|
170
187
|
};
|
|
188
|
+
exports.CreateSlackBotRequestReasoningEffortEnum = {
|
|
189
|
+
Low: 'low',
|
|
190
|
+
Medium: 'medium',
|
|
191
|
+
High: 'high',
|
|
192
|
+
Xhigh: 'xhigh',
|
|
193
|
+
Max: 'max'
|
|
194
|
+
};
|
|
195
|
+
exports.CreateSlackInteractionRequestResponseModeEnum = {
|
|
196
|
+
Single: 'single'
|
|
197
|
+
};
|
|
198
|
+
exports.CreateSlackInteractionRequestActionsInnerStyleEnum = {
|
|
199
|
+
Primary: 'primary',
|
|
200
|
+
Danger: 'danger'
|
|
201
|
+
};
|
|
171
202
|
exports.CreateTaskRequestStatusEnum = {
|
|
172
203
|
Pending: 'pending',
|
|
173
204
|
InProgress: 'in_progress',
|
|
@@ -176,6 +207,15 @@ exports.CreateTaskRequestStatusEnum = {
|
|
|
176
207
|
Cancelled: 'cancelled',
|
|
177
208
|
Blocked: 'blocked'
|
|
178
209
|
};
|
|
210
|
+
exports.CronLastRunStatusEnum = {
|
|
211
|
+
Pending: 'PENDING',
|
|
212
|
+
Running: 'RUNNING',
|
|
213
|
+
Succeeded: 'SUCCEEDED',
|
|
214
|
+
Failed: 'FAILED',
|
|
215
|
+
FailedToStart: 'FAILED_TO_START',
|
|
216
|
+
Expired: 'EXPIRED',
|
|
217
|
+
TimedOut: 'TIMED_OUT'
|
|
218
|
+
};
|
|
179
219
|
exports.CronRunRunTypeEnum = {
|
|
180
220
|
Exec: 'EXEC',
|
|
181
221
|
Cron: 'CRON'
|
|
@@ -185,6 +225,8 @@ exports.CronRunStatusEnum = {
|
|
|
185
225
|
Running: 'RUNNING',
|
|
186
226
|
Succeeded: 'SUCCEEDED',
|
|
187
227
|
Failed: 'FAILED',
|
|
228
|
+
FailedToStart: 'FAILED_TO_START',
|
|
229
|
+
Expired: 'EXPIRED',
|
|
188
230
|
TimedOut: 'TIMED_OUT',
|
|
189
231
|
Unknown: 'UNKNOWN'
|
|
190
232
|
};
|
|
@@ -223,6 +265,13 @@ exports.EnvironmentSummaryDeploymentStatusEnum = {
|
|
|
223
265
|
InProgress: 'IN_PROGRESS',
|
|
224
266
|
Failed: 'FAILED'
|
|
225
267
|
};
|
|
268
|
+
exports.GetAIAgent200ResponseAgentReasoningEffortEnum = {
|
|
269
|
+
Low: 'low',
|
|
270
|
+
Medium: 'medium',
|
|
271
|
+
High: 'high',
|
|
272
|
+
Xhigh: 'xhigh',
|
|
273
|
+
Max: 'max'
|
|
274
|
+
};
|
|
226
275
|
exports.GetAIOrchestrationStatus200ResponseStatusEnum = {
|
|
227
276
|
Pending: 'pending',
|
|
228
277
|
WaitingTools: 'waiting_tools',
|
|
@@ -236,6 +285,13 @@ exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = {
|
|
|
236
285
|
Complete: 'complete',
|
|
237
286
|
Failed: 'failed'
|
|
238
287
|
};
|
|
288
|
+
exports.GetAgentOverlay200ResponseOverlayReasoningEffortEnum = {
|
|
289
|
+
Low: 'low',
|
|
290
|
+
Medium: 'medium',
|
|
291
|
+
High: 'high',
|
|
292
|
+
Xhigh: 'xhigh',
|
|
293
|
+
Max: 'max'
|
|
294
|
+
};
|
|
239
295
|
exports.GetCustomTool200ResponseToolResponseModeEnum = {
|
|
240
296
|
Llm: 'llm',
|
|
241
297
|
Direct: 'direct'
|
|
@@ -271,6 +327,13 @@ exports.GetSlackBot200ResponseBotStatusEnum = {
|
|
|
271
327
|
Active: 'active',
|
|
272
328
|
Inactive: 'inactive'
|
|
273
329
|
};
|
|
330
|
+
exports.GetSlackBot200ResponseBotReasoningEffortEnum = {
|
|
331
|
+
Low: 'low',
|
|
332
|
+
Medium: 'medium',
|
|
333
|
+
High: 'high',
|
|
334
|
+
Xhigh: 'xhigh',
|
|
335
|
+
Max: 'max'
|
|
336
|
+
};
|
|
274
337
|
exports.GetSlackBotThread200ResponseContentTrustEnum = {
|
|
275
338
|
Untrusted: 'untrusted'
|
|
276
339
|
};
|
|
@@ -294,6 +357,13 @@ exports.ImportSkillRequestSourceTypeEnum = {
|
|
|
294
357
|
SkillsSh: 'skills.sh',
|
|
295
358
|
Github: 'github'
|
|
296
359
|
};
|
|
360
|
+
exports.ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = {
|
|
361
|
+
Low: 'low',
|
|
362
|
+
Medium: 'medium',
|
|
363
|
+
High: 'high',
|
|
364
|
+
Xhigh: 'xhigh',
|
|
365
|
+
Max: 'max'
|
|
366
|
+
};
|
|
297
367
|
exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = {
|
|
298
368
|
Pending: 'pending',
|
|
299
369
|
Running: 'running',
|
|
@@ -311,6 +381,13 @@ exports.ListSlackBots200ResponseBotsInnerStatusEnum = {
|
|
|
311
381
|
Active: 'active',
|
|
312
382
|
Inactive: 'inactive'
|
|
313
383
|
};
|
|
384
|
+
exports.ListSlackBots200ResponseBotsInnerReasoningEffortEnum = {
|
|
385
|
+
Low: 'low',
|
|
386
|
+
Medium: 'medium',
|
|
387
|
+
High: 'high',
|
|
388
|
+
Xhigh: 'xhigh',
|
|
389
|
+
Max: 'max'
|
|
390
|
+
};
|
|
314
391
|
exports.ListTasks200ResponseTasksInnerStatusEnum = {
|
|
315
392
|
Pending: 'pending',
|
|
316
393
|
InProgress: 'in_progress',
|
|
@@ -339,10 +416,13 @@ exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = {
|
|
|
339
416
|
};
|
|
340
417
|
exports.OrgResourceTypeEnum = {
|
|
341
418
|
ObjectStorage: 'object-storage',
|
|
342
|
-
Valkey: 'valkey'
|
|
419
|
+
Valkey: 'valkey',
|
|
420
|
+
CiRunnerPool: 'ci-runner-pool'
|
|
343
421
|
};
|
|
344
422
|
exports.OrgResourceStatusEnum = {
|
|
345
423
|
Provisioning: 'provisioning',
|
|
424
|
+
Creating: 'creating',
|
|
425
|
+
Updating: 'updating',
|
|
346
426
|
Available: 'available',
|
|
347
427
|
Deleting: 'deleting',
|
|
348
428
|
Error: 'error'
|
|
@@ -357,6 +437,13 @@ exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
|
357
437
|
MixedSafe: 'mixed-safe',
|
|
358
438
|
MixedAggressive: 'mixed-aggressive'
|
|
359
439
|
};
|
|
440
|
+
exports.ProjectsDelete409ResponseCodeEnum = {
|
|
441
|
+
KvLedgerPresent: 'KV_LEDGER_PRESENT'
|
|
442
|
+
};
|
|
443
|
+
exports.ProjectsDelete503ResponseCodeEnum = {
|
|
444
|
+
KvStoresUnreadable: 'KV_STORES_UNREADABLE',
|
|
445
|
+
KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
|
|
446
|
+
};
|
|
360
447
|
exports.PurgeCreateRequestScopeEnum = {
|
|
361
448
|
Project: 'project',
|
|
362
449
|
Org: 'org'
|
|
@@ -407,6 +494,13 @@ exports.TokensCreateRequestExpiresInEnum = {
|
|
|
407
494
|
_365d: '365d',
|
|
408
495
|
Never: 'never'
|
|
409
496
|
};
|
|
497
|
+
exports.UpdateAIAgentRequestReasoningEffortEnum = {
|
|
498
|
+
Low: 'low',
|
|
499
|
+
Medium: 'medium',
|
|
500
|
+
High: 'high',
|
|
501
|
+
Xhigh: 'xhigh',
|
|
502
|
+
Max: 'max'
|
|
503
|
+
};
|
|
410
504
|
exports.UpdateAIAgentRequestGuardrailPresetEnum = {
|
|
411
505
|
Official: 'official',
|
|
412
506
|
OfficialSensitive: 'official-sensitive',
|
|
@@ -434,6 +528,13 @@ exports.UpdateSlackBotRequestStatusEnum = {
|
|
|
434
528
|
Active: 'active',
|
|
435
529
|
Inactive: 'inactive'
|
|
436
530
|
};
|
|
531
|
+
exports.UpdateSlackBotRequestReasoningEffortEnum = {
|
|
532
|
+
Low: 'low',
|
|
533
|
+
Medium: 'medium',
|
|
534
|
+
High: 'high',
|
|
535
|
+
Xhigh: 'xhigh',
|
|
536
|
+
Max: 'max'
|
|
537
|
+
};
|
|
437
538
|
exports.UpdateTaskRequestStatusEnum = {
|
|
438
539
|
Pending: 'pending',
|
|
439
540
|
InProgress: 'in_progress',
|
|
@@ -447,6 +548,13 @@ exports.UpsertAgentOverlayRequestGuardrailPresetEnum = {
|
|
|
447
548
|
OfficialSensitive: 'official-sensitive',
|
|
448
549
|
Protected: 'protected'
|
|
449
550
|
};
|
|
551
|
+
exports.UpsertAgentOverlayRequestReasoningEffortEnum = {
|
|
552
|
+
Low: 'low',
|
|
553
|
+
Medium: 'medium',
|
|
554
|
+
High: 'high',
|
|
555
|
+
Xhigh: 'xhigh',
|
|
556
|
+
Max: 'max'
|
|
557
|
+
};
|
|
450
558
|
exports.V1TransitionStateEnum = {
|
|
451
559
|
Published: 'published',
|
|
452
560
|
Unpublished: 'unpublished'
|
|
@@ -1768,337 +1876,1085 @@ const AIAgentsApiFp = function (configuration) {
|
|
|
1768
1876
|
* @param {*} [options] Override http request option.
|
|
1769
1877
|
* @throws {RequiredError}
|
|
1770
1878
|
*/
|
|
1771
|
-
deleteAgentOverlay(organisation, agentId, options) {
|
|
1879
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
1880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1881
|
+
var _a, _b, _c;
|
|
1882
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteAgentOverlay(organisation, agentId, options);
|
|
1883
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1884
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.deleteAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1885
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1886
|
+
});
|
|
1887
|
+
},
|
|
1888
|
+
/**
|
|
1889
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
1890
|
+
* @summary Get Agent Details
|
|
1891
|
+
* @param {string} organisation The organisation ID
|
|
1892
|
+
* @param {string} agentId The agent ID
|
|
1893
|
+
* @param {*} [options] Override http request option.
|
|
1894
|
+
* @throws {RequiredError}
|
|
1895
|
+
*/
|
|
1896
|
+
getAIAgent(organisation, agentId, options) {
|
|
1897
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1898
|
+
var _a, _b, _c;
|
|
1899
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAIAgent(organisation, agentId, options);
|
|
1900
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1901
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.getAIAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1902
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1903
|
+
});
|
|
1904
|
+
},
|
|
1905
|
+
/**
|
|
1906
|
+
* 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.
|
|
1907
|
+
* @summary Get Agent Overlay
|
|
1908
|
+
* @param {string} organisation The organisation ID
|
|
1909
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
1910
|
+
* @param {*} [options] Override http request option.
|
|
1911
|
+
* @throws {RequiredError}
|
|
1912
|
+
*/
|
|
1913
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
1914
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1915
|
+
var _a, _b, _c;
|
|
1916
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getAgentOverlay(organisation, agentId, options);
|
|
1917
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1918
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.getAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1919
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1920
|
+
});
|
|
1921
|
+
},
|
|
1922
|
+
/**
|
|
1923
|
+
* 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
|
|
1924
|
+
* @summary List AI Agents
|
|
1925
|
+
* @param {string} organisation The organisation ID
|
|
1926
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
1927
|
+
* @param {*} [options] Override http request option.
|
|
1928
|
+
* @throws {RequiredError}
|
|
1929
|
+
*/
|
|
1930
|
+
listAIAgents(organisation, group, options) {
|
|
1931
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1932
|
+
var _a, _b, _c;
|
|
1933
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listAIAgents(organisation, group, options);
|
|
1934
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1935
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.listAIAgents']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1936
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1937
|
+
});
|
|
1938
|
+
},
|
|
1939
|
+
/**
|
|
1940
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
1941
|
+
* @summary Update Agent
|
|
1942
|
+
* @param {string} organisation The organisation ID
|
|
1943
|
+
* @param {string} agentId The agent ID
|
|
1944
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
1945
|
+
* @param {*} [options] Override http request option.
|
|
1946
|
+
* @throws {RequiredError}
|
|
1947
|
+
*/
|
|
1948
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
1949
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1950
|
+
var _a, _b, _c;
|
|
1951
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateAIAgent(organisation, agentId, updateAIAgentRequest, options);
|
|
1952
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1953
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.updateAIAgent']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1954
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1955
|
+
});
|
|
1956
|
+
},
|
|
1957
|
+
/**
|
|
1958
|
+
* 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.
|
|
1959
|
+
* @summary Upsert Agent Overlay
|
|
1960
|
+
* @param {string} organisation The organisation ID
|
|
1961
|
+
* @param {string} agentId Global agent identifier
|
|
1962
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
1963
|
+
* @param {*} [options] Override http request option.
|
|
1964
|
+
* @throws {RequiredError}
|
|
1965
|
+
*/
|
|
1966
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
1967
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
1968
|
+
var _a, _b, _c;
|
|
1969
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options);
|
|
1970
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1971
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAgentsApi.upsertAgentOverlay']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1972
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1973
|
+
});
|
|
1974
|
+
},
|
|
1975
|
+
};
|
|
1976
|
+
};
|
|
1977
|
+
exports.AIAgentsApiFp = AIAgentsApiFp;
|
|
1978
|
+
/**
|
|
1979
|
+
* AIAgentsApi - factory interface
|
|
1980
|
+
* @export
|
|
1981
|
+
*/
|
|
1982
|
+
const AIAgentsApiFactory = function (configuration, basePath, axios) {
|
|
1983
|
+
const localVarFp = (0, exports.AIAgentsApiFp)(configuration);
|
|
1984
|
+
return {
|
|
1985
|
+
/**
|
|
1986
|
+
* 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
|
|
1987
|
+
* @summary Chat with AI Agent
|
|
1988
|
+
* @param {string} organisation The organisation ID
|
|
1989
|
+
* @param {string} agentId The agent ID
|
|
1990
|
+
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
1991
|
+
* @param {*} [options] Override http request option.
|
|
1992
|
+
* @throws {RequiredError}
|
|
1993
|
+
*/
|
|
1994
|
+
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
1995
|
+
return localVarFp.chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
1996
|
+
},
|
|
1997
|
+
/**
|
|
1998
|
+
* 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).
|
|
1999
|
+
* @summary Create AI Agent
|
|
2000
|
+
* @param {string} organisation The organisation ID
|
|
2001
|
+
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
2002
|
+
* @param {*} [options] Override http request option.
|
|
2003
|
+
* @throws {RequiredError}
|
|
2004
|
+
*/
|
|
2005
|
+
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
2006
|
+
return localVarFp.createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
2007
|
+
},
|
|
2008
|
+
/**
|
|
2009
|
+
* Permanently deletes an AI agent. This action cannot be undone.
|
|
2010
|
+
* @summary Delete Agent
|
|
2011
|
+
* @param {string} organisation The organisation ID
|
|
2012
|
+
* @param {string} agentId The agent ID
|
|
2013
|
+
* @param {*} [options] Override http request option.
|
|
2014
|
+
* @throws {RequiredError}
|
|
2015
|
+
*/
|
|
2016
|
+
deleteAIAgent(organisation, agentId, options) {
|
|
2017
|
+
return localVarFp.deleteAIAgent(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2018
|
+
},
|
|
2019
|
+
/**
|
|
2020
|
+
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
2021
|
+
* @summary Delete Agent Overlay
|
|
2022
|
+
* @param {string} organisation The organisation ID
|
|
2023
|
+
* @param {string} agentId Global agent identifier
|
|
2024
|
+
* @param {*} [options] Override http request option.
|
|
2025
|
+
* @throws {RequiredError}
|
|
2026
|
+
*/
|
|
2027
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
2028
|
+
return localVarFp.deleteAgentOverlay(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2029
|
+
},
|
|
2030
|
+
/**
|
|
2031
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
2032
|
+
* @summary Get Agent Details
|
|
2033
|
+
* @param {string} organisation The organisation ID
|
|
2034
|
+
* @param {string} agentId The agent ID
|
|
2035
|
+
* @param {*} [options] Override http request option.
|
|
2036
|
+
* @throws {RequiredError}
|
|
2037
|
+
*/
|
|
2038
|
+
getAIAgent(organisation, agentId, options) {
|
|
2039
|
+
return localVarFp.getAIAgent(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2040
|
+
},
|
|
2041
|
+
/**
|
|
2042
|
+
* 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.
|
|
2043
|
+
* @summary Get Agent Overlay
|
|
2044
|
+
* @param {string} organisation The organisation ID
|
|
2045
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2046
|
+
* @param {*} [options] Override http request option.
|
|
2047
|
+
* @throws {RequiredError}
|
|
2048
|
+
*/
|
|
2049
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
2050
|
+
return localVarFp.getAgentOverlay(organisation, agentId, options).then((request) => request(axios, basePath));
|
|
2051
|
+
},
|
|
2052
|
+
/**
|
|
2053
|
+
* 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
|
|
2054
|
+
* @summary List AI Agents
|
|
2055
|
+
* @param {string} organisation The organisation ID
|
|
2056
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
2057
|
+
* @param {*} [options] Override http request option.
|
|
2058
|
+
* @throws {RequiredError}
|
|
2059
|
+
*/
|
|
2060
|
+
listAIAgents(organisation, group, options) {
|
|
2061
|
+
return localVarFp.listAIAgents(organisation, group, options).then((request) => request(axios, basePath));
|
|
2062
|
+
},
|
|
2063
|
+
/**
|
|
2064
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
2065
|
+
* @summary Update Agent
|
|
2066
|
+
* @param {string} organisation The organisation ID
|
|
2067
|
+
* @param {string} agentId The agent ID
|
|
2068
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2069
|
+
* @param {*} [options] Override http request option.
|
|
2070
|
+
* @throws {RequiredError}
|
|
2071
|
+
*/
|
|
2072
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
2073
|
+
return localVarFp.updateAIAgent(organisation, agentId, updateAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
2074
|
+
},
|
|
2075
|
+
/**
|
|
2076
|
+
* 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.
|
|
2077
|
+
* @summary Upsert Agent Overlay
|
|
2078
|
+
* @param {string} organisation The organisation ID
|
|
2079
|
+
* @param {string} agentId Global agent identifier
|
|
2080
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
2081
|
+
* @param {*} [options] Override http request option.
|
|
2082
|
+
* @throws {RequiredError}
|
|
2083
|
+
*/
|
|
2084
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
2085
|
+
return localVarFp.upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options).then((request) => request(axios, basePath));
|
|
2086
|
+
},
|
|
2087
|
+
};
|
|
2088
|
+
};
|
|
2089
|
+
exports.AIAgentsApiFactory = AIAgentsApiFactory;
|
|
2090
|
+
/**
|
|
2091
|
+
* AIAgentsApi - object-oriented interface
|
|
2092
|
+
* @export
|
|
2093
|
+
* @class AIAgentsApi
|
|
2094
|
+
* @extends {BaseAPI}
|
|
2095
|
+
*/
|
|
2096
|
+
class AIAgentsApi extends base_1.BaseAPI {
|
|
2097
|
+
/**
|
|
2098
|
+
* 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
|
|
2099
|
+
* @summary Chat with AI Agent
|
|
2100
|
+
* @param {string} organisation The organisation ID
|
|
2101
|
+
* @param {string} agentId The agent ID
|
|
2102
|
+
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
2103
|
+
* @param {*} [options] Override http request option.
|
|
2104
|
+
* @throws {RequiredError}
|
|
2105
|
+
* @memberof AIAgentsApi
|
|
2106
|
+
*/
|
|
2107
|
+
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
2108
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2109
|
+
}
|
|
2110
|
+
/**
|
|
2111
|
+
* 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).
|
|
2112
|
+
* @summary Create AI Agent
|
|
2113
|
+
* @param {string} organisation The organisation ID
|
|
2114
|
+
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
2115
|
+
* @param {*} [options] Override http request option.
|
|
2116
|
+
* @throws {RequiredError}
|
|
2117
|
+
* @memberof AIAgentsApi
|
|
2118
|
+
*/
|
|
2119
|
+
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
2120
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2121
|
+
}
|
|
2122
|
+
/**
|
|
2123
|
+
* Permanently deletes an AI agent. This action cannot be undone.
|
|
2124
|
+
* @summary Delete Agent
|
|
2125
|
+
* @param {string} organisation The organisation ID
|
|
2126
|
+
* @param {string} agentId The agent ID
|
|
2127
|
+
* @param {*} [options] Override http request option.
|
|
2128
|
+
* @throws {RequiredError}
|
|
2129
|
+
* @memberof AIAgentsApi
|
|
2130
|
+
*/
|
|
2131
|
+
deleteAIAgent(organisation, agentId, options) {
|
|
2132
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).deleteAIAgent(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2133
|
+
}
|
|
2134
|
+
/**
|
|
2135
|
+
* Removes the per-organisation overlay for a global agent, reverting it to platform defaults.
|
|
2136
|
+
* @summary Delete Agent Overlay
|
|
2137
|
+
* @param {string} organisation The organisation ID
|
|
2138
|
+
* @param {string} agentId Global agent identifier
|
|
2139
|
+
* @param {*} [options] Override http request option.
|
|
2140
|
+
* @throws {RequiredError}
|
|
2141
|
+
* @memberof AIAgentsApi
|
|
2142
|
+
*/
|
|
2143
|
+
deleteAgentOverlay(organisation, agentId, options) {
|
|
2144
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).deleteAgentOverlay(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2145
|
+
}
|
|
2146
|
+
/**
|
|
2147
|
+
* Retrieves detailed configuration for a specific AI agent.
|
|
2148
|
+
* @summary Get Agent Details
|
|
2149
|
+
* @param {string} organisation The organisation ID
|
|
2150
|
+
* @param {string} agentId The agent ID
|
|
2151
|
+
* @param {*} [options] Override http request option.
|
|
2152
|
+
* @throws {RequiredError}
|
|
2153
|
+
* @memberof AIAgentsApi
|
|
2154
|
+
*/
|
|
2155
|
+
getAIAgent(organisation, agentId, options) {
|
|
2156
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).getAIAgent(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2157
|
+
}
|
|
2158
|
+
/**
|
|
2159
|
+
* 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.
|
|
2160
|
+
* @summary Get Agent Overlay
|
|
2161
|
+
* @param {string} organisation The organisation ID
|
|
2162
|
+
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2163
|
+
* @param {*} [options] Override http request option.
|
|
2164
|
+
* @throws {RequiredError}
|
|
2165
|
+
* @memberof AIAgentsApi
|
|
2166
|
+
*/
|
|
2167
|
+
getAgentOverlay(organisation, agentId, options) {
|
|
2168
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).getAgentOverlay(organisation, agentId, options).then((request) => request(this.axios, this.basePath));
|
|
2169
|
+
}
|
|
2170
|
+
/**
|
|
2171
|
+
* 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
|
|
2172
|
+
* @summary List AI Agents
|
|
2173
|
+
* @param {string} organisation The organisation ID
|
|
2174
|
+
* @param {string} [group] Optional group filter (e.g., \'development\', \'compliance\')
|
|
2175
|
+
* @param {*} [options] Override http request option.
|
|
2176
|
+
* @throws {RequiredError}
|
|
2177
|
+
* @memberof AIAgentsApi
|
|
2178
|
+
*/
|
|
2179
|
+
listAIAgents(organisation, group, options) {
|
|
2180
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).listAIAgents(organisation, group, options).then((request) => request(this.axios, this.basePath));
|
|
2181
|
+
}
|
|
2182
|
+
/**
|
|
2183
|
+
* Updates an existing AI agent configuration. All fields except agentId, organizationId, createdAt, and createdBy can be updated.
|
|
2184
|
+
* @summary Update Agent
|
|
2185
|
+
* @param {string} organisation The organisation ID
|
|
2186
|
+
* @param {string} agentId The agent ID
|
|
2187
|
+
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2188
|
+
* @param {*} [options] Override http request option.
|
|
2189
|
+
* @throws {RequiredError}
|
|
2190
|
+
* @memberof AIAgentsApi
|
|
2191
|
+
*/
|
|
2192
|
+
updateAIAgent(organisation, agentId, updateAIAgentRequest, options) {
|
|
2193
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).updateAIAgent(organisation, agentId, updateAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2194
|
+
}
|
|
2195
|
+
/**
|
|
2196
|
+
* 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.
|
|
2197
|
+
* @summary Upsert Agent Overlay
|
|
2198
|
+
* @param {string} organisation The organisation ID
|
|
2199
|
+
* @param {string} agentId Global agent identifier
|
|
2200
|
+
* @param {UpsertAgentOverlayRequest} upsertAgentOverlayRequest
|
|
2201
|
+
* @param {*} [options] Override http request option.
|
|
2202
|
+
* @throws {RequiredError}
|
|
2203
|
+
* @memberof AIAgentsApi
|
|
2204
|
+
*/
|
|
2205
|
+
upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options) {
|
|
2206
|
+
return (0, exports.AIAgentsApiFp)(this.configuration).upsertAgentOverlay(organisation, agentId, upsertAgentOverlayRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2207
|
+
}
|
|
2208
|
+
}
|
|
2209
|
+
exports.AIAgentsApi = AIAgentsApi;
|
|
2210
|
+
/**
|
|
2211
|
+
* AIAuditApi - axios parameter creator
|
|
2212
|
+
* @export
|
|
2213
|
+
*/
|
|
2214
|
+
const AIAuditApiAxiosParamCreator = function (configuration) {
|
|
2215
|
+
return {
|
|
2216
|
+
/**
|
|
2217
|
+
* 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.
|
|
2218
|
+
* @summary Export AI audit records as JSON Lines
|
|
2219
|
+
* @param {string} organisation The organisation machine name
|
|
2220
|
+
* @param {string} startDate
|
|
2221
|
+
* @param {string} endDate
|
|
2222
|
+
* @param {string} [userId]
|
|
2223
|
+
* @param {string} [modelId]
|
|
2224
|
+
* @param {string} [recordType]
|
|
2225
|
+
* @param {string} [decision]
|
|
2226
|
+
* @param {string} [tool]
|
|
2227
|
+
* @param {string} [outcome]
|
|
2228
|
+
* @param {*} [options] Override http request option.
|
|
2229
|
+
* @throws {RequiredError}
|
|
2230
|
+
*/
|
|
2231
|
+
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 = {}) {
|
|
2232
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2233
|
+
(0, common_1.assertParamExists)('aiAuditExport', 'organisation', organisation);
|
|
2234
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2235
|
+
(0, common_1.assertParamExists)('aiAuditExport', 'startDate', startDate);
|
|
2236
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2237
|
+
(0, common_1.assertParamExists)('aiAuditExport', 'endDate', endDate);
|
|
2238
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
|
|
2239
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2240
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2241
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2242
|
+
let baseOptions;
|
|
2243
|
+
if (configuration) {
|
|
2244
|
+
baseOptions = configuration.baseOptions;
|
|
2245
|
+
}
|
|
2246
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2247
|
+
const localVarHeaderParameter = {};
|
|
2248
|
+
const localVarQueryParameter = {};
|
|
2249
|
+
// authentication BearerAuth required
|
|
2250
|
+
// http bearer authentication required
|
|
2251
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2252
|
+
if (startDate !== undefined) {
|
|
2253
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
2254
|
+
startDate.toISOString().substring(0, 10) :
|
|
2255
|
+
startDate;
|
|
2256
|
+
}
|
|
2257
|
+
if (endDate !== undefined) {
|
|
2258
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
2259
|
+
endDate.toISOString().substring(0, 10) :
|
|
2260
|
+
endDate;
|
|
2261
|
+
}
|
|
2262
|
+
if (userId !== undefined) {
|
|
2263
|
+
localVarQueryParameter['userId'] = userId;
|
|
2264
|
+
}
|
|
2265
|
+
if (modelId !== undefined) {
|
|
2266
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
2267
|
+
}
|
|
2268
|
+
if (recordType !== undefined) {
|
|
2269
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
2270
|
+
}
|
|
2271
|
+
if (decision !== undefined) {
|
|
2272
|
+
localVarQueryParameter['decision'] = decision;
|
|
2273
|
+
}
|
|
2274
|
+
if (tool !== undefined) {
|
|
2275
|
+
localVarQueryParameter['tool'] = tool;
|
|
2276
|
+
}
|
|
2277
|
+
if (outcome !== undefined) {
|
|
2278
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
2279
|
+
}
|
|
2280
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2281
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2282
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2283
|
+
return {
|
|
2284
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2285
|
+
options: localVarRequestOptions,
|
|
2286
|
+
};
|
|
2287
|
+
}),
|
|
2288
|
+
/**
|
|
2289
|
+
* 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.
|
|
2290
|
+
* @summary List AI governance ledger entries
|
|
2291
|
+
* @param {string} organisation The organisation machine name
|
|
2292
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2293
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2294
|
+
* @param {number} [limit]
|
|
2295
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2296
|
+
* @param {*} [options] Override http request option.
|
|
2297
|
+
* @throws {RequiredError}
|
|
2298
|
+
*/
|
|
2299
|
+
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 = {}) {
|
|
2300
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2301
|
+
(0, common_1.assertParamExists)('aiAuditLedgerEntries', 'organisation', organisation);
|
|
2302
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
|
|
2303
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2304
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2305
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2306
|
+
let baseOptions;
|
|
2307
|
+
if (configuration) {
|
|
2308
|
+
baseOptions = configuration.baseOptions;
|
|
2309
|
+
}
|
|
2310
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2311
|
+
const localVarHeaderParameter = {};
|
|
2312
|
+
const localVarQueryParameter = {};
|
|
2313
|
+
// authentication BearerAuth required
|
|
2314
|
+
// http bearer authentication required
|
|
2315
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2316
|
+
if (since !== undefined) {
|
|
2317
|
+
localVarQueryParameter['since'] = since;
|
|
2318
|
+
}
|
|
2319
|
+
if (until !== undefined) {
|
|
2320
|
+
localVarQueryParameter['until'] = until;
|
|
2321
|
+
}
|
|
2322
|
+
if (limit !== undefined) {
|
|
2323
|
+
localVarQueryParameter['limit'] = limit;
|
|
2324
|
+
}
|
|
2325
|
+
if (cursor !== undefined) {
|
|
2326
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2327
|
+
}
|
|
2328
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2329
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2330
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2331
|
+
return {
|
|
2332
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2333
|
+
options: localVarRequestOptions,
|
|
2334
|
+
};
|
|
2335
|
+
}),
|
|
2336
|
+
/**
|
|
2337
|
+
* 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.
|
|
2338
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2339
|
+
* @param {string} organisation The organisation machine name
|
|
2340
|
+
* @param {string} key
|
|
2341
|
+
* @param {*} [options] Override http request option.
|
|
2342
|
+
* @throws {RequiredError}
|
|
2343
|
+
*/
|
|
2344
|
+
aiAuditLedgerProof: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
|
|
2345
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2346
|
+
(0, common_1.assertParamExists)('aiAuditLedgerProof', 'organisation', organisation);
|
|
2347
|
+
// verify required parameter 'key' is not null or undefined
|
|
2348
|
+
(0, common_1.assertParamExists)('aiAuditLedgerProof', 'key', key);
|
|
2349
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
|
|
2350
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2351
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2352
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2353
|
+
let baseOptions;
|
|
2354
|
+
if (configuration) {
|
|
2355
|
+
baseOptions = configuration.baseOptions;
|
|
2356
|
+
}
|
|
2357
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2358
|
+
const localVarHeaderParameter = {};
|
|
2359
|
+
const localVarQueryParameter = {};
|
|
2360
|
+
// authentication BearerAuth required
|
|
2361
|
+
// http bearer authentication required
|
|
2362
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2363
|
+
if (key !== undefined) {
|
|
2364
|
+
localVarQueryParameter['key'] = key;
|
|
2365
|
+
}
|
|
2366
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2367
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2368
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2369
|
+
return {
|
|
2370
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2371
|
+
options: localVarRequestOptions,
|
|
2372
|
+
};
|
|
2373
|
+
}),
|
|
2374
|
+
/**
|
|
2375
|
+
* 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.
|
|
2376
|
+
* @summary Get the governance ledger public key
|
|
2377
|
+
* @param {string} organisation The organisation machine name
|
|
2378
|
+
* @param {*} [options] Override http request option.
|
|
2379
|
+
* @throws {RequiredError}
|
|
2380
|
+
*/
|
|
2381
|
+
aiAuditLedgerPublicKey: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
|
|
2382
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2383
|
+
(0, common_1.assertParamExists)('aiAuditLedgerPublicKey', 'organisation', organisation);
|
|
2384
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
|
|
2385
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2386
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2387
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2388
|
+
let baseOptions;
|
|
2389
|
+
if (configuration) {
|
|
2390
|
+
baseOptions = configuration.baseOptions;
|
|
2391
|
+
}
|
|
2392
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2393
|
+
const localVarHeaderParameter = {};
|
|
2394
|
+
const localVarQueryParameter = {};
|
|
2395
|
+
// authentication BearerAuth required
|
|
2396
|
+
// http bearer authentication required
|
|
2397
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2398
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2399
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2400
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2401
|
+
return {
|
|
2402
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2403
|
+
options: localVarRequestOptions,
|
|
2404
|
+
};
|
|
2405
|
+
}),
|
|
2406
|
+
/**
|
|
2407
|
+
* 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.
|
|
2408
|
+
* @summary Get the AI governance ledger status
|
|
2409
|
+
* @param {string} organisation The organisation machine name
|
|
2410
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2411
|
+
* @param {*} [options] Override http request option.
|
|
2412
|
+
* @throws {RequiredError}
|
|
2413
|
+
*/
|
|
2414
|
+
aiAuditLedgerStatus: (organisation_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, cursor_1, ...args_1], void 0, function* (organisation, cursor, options = {}) {
|
|
2415
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2416
|
+
(0, common_1.assertParamExists)('aiAuditLedgerStatus', 'organisation', organisation);
|
|
2417
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
|
|
2418
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2419
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2420
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2421
|
+
let baseOptions;
|
|
2422
|
+
if (configuration) {
|
|
2423
|
+
baseOptions = configuration.baseOptions;
|
|
2424
|
+
}
|
|
2425
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2426
|
+
const localVarHeaderParameter = {};
|
|
2427
|
+
const localVarQueryParameter = {};
|
|
2428
|
+
// authentication BearerAuth required
|
|
2429
|
+
// http bearer authentication required
|
|
2430
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2431
|
+
if (cursor !== undefined) {
|
|
2432
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2433
|
+
}
|
|
2434
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2435
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2436
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2437
|
+
return {
|
|
2438
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2439
|
+
options: localVarRequestOptions,
|
|
2440
|
+
};
|
|
2441
|
+
}),
|
|
2442
|
+
/**
|
|
2443
|
+
* 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.
|
|
2444
|
+
* @summary Get one AI audit record
|
|
2445
|
+
* @param {string} organisation The organisation machine name
|
|
2446
|
+
* @param {string} key
|
|
2447
|
+
* @param {*} [options] Override http request option.
|
|
2448
|
+
* @throws {RequiredError}
|
|
2449
|
+
*/
|
|
2450
|
+
aiAuditRecordGet: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
|
|
2451
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2452
|
+
(0, common_1.assertParamExists)('aiAuditRecordGet', 'organisation', organisation);
|
|
2453
|
+
// verify required parameter 'key' is not null or undefined
|
|
2454
|
+
(0, common_1.assertParamExists)('aiAuditRecordGet', 'key', key);
|
|
2455
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
|
|
2456
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2457
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2458
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2459
|
+
let baseOptions;
|
|
2460
|
+
if (configuration) {
|
|
2461
|
+
baseOptions = configuration.baseOptions;
|
|
2462
|
+
}
|
|
2463
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2464
|
+
const localVarHeaderParameter = {};
|
|
2465
|
+
const localVarQueryParameter = {};
|
|
2466
|
+
// authentication BearerAuth required
|
|
2467
|
+
// http bearer authentication required
|
|
2468
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2469
|
+
if (key !== undefined) {
|
|
2470
|
+
localVarQueryParameter['key'] = key;
|
|
2471
|
+
}
|
|
2472
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2473
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2474
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2475
|
+
return {
|
|
2476
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2477
|
+
options: localVarRequestOptions,
|
|
2478
|
+
};
|
|
2479
|
+
}),
|
|
2480
|
+
/**
|
|
2481
|
+
* 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.
|
|
2482
|
+
* @summary List AI audit records
|
|
2483
|
+
* @param {string} organisation The organisation machine name
|
|
2484
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2485
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2486
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2487
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2488
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2489
|
+
* @param {string} [tokenId]
|
|
2490
|
+
* @param {string} [modelId]
|
|
2491
|
+
* @param {string} [recordType]
|
|
2492
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2493
|
+
* @param {string} [tool]
|
|
2494
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2495
|
+
* @param {string} [_interface]
|
|
2496
|
+
* @param {number} [limit]
|
|
2497
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
2498
|
+
* @param {*} [options] Override http request option.
|
|
2499
|
+
* @throws {RequiredError}
|
|
2500
|
+
*/
|
|
2501
|
+
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 = {}) {
|
|
2502
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
2503
|
+
(0, common_1.assertParamExists)('aiAuditRecordsList', 'organisation', organisation);
|
|
2504
|
+
// verify required parameter 'startDate' is not null or undefined
|
|
2505
|
+
(0, common_1.assertParamExists)('aiAuditRecordsList', 'startDate', startDate);
|
|
2506
|
+
// verify required parameter 'endDate' is not null or undefined
|
|
2507
|
+
(0, common_1.assertParamExists)('aiAuditRecordsList', 'endDate', endDate);
|
|
2508
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
|
|
2509
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
|
|
2510
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
2511
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
2512
|
+
let baseOptions;
|
|
2513
|
+
if (configuration) {
|
|
2514
|
+
baseOptions = configuration.baseOptions;
|
|
2515
|
+
}
|
|
2516
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
2517
|
+
const localVarHeaderParameter = {};
|
|
2518
|
+
const localVarQueryParameter = {};
|
|
2519
|
+
// authentication BearerAuth required
|
|
2520
|
+
// http bearer authentication required
|
|
2521
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
2522
|
+
if (startDate !== undefined) {
|
|
2523
|
+
localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
|
|
2524
|
+
startDate.toISOString().substring(0, 10) :
|
|
2525
|
+
startDate;
|
|
2526
|
+
}
|
|
2527
|
+
if (endDate !== undefined) {
|
|
2528
|
+
localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
|
|
2529
|
+
endDate.toISOString().substring(0, 10) :
|
|
2530
|
+
endDate;
|
|
2531
|
+
}
|
|
2532
|
+
if (since !== undefined) {
|
|
2533
|
+
localVarQueryParameter['since'] = (since instanceof Date) ?
|
|
2534
|
+
since.toISOString() :
|
|
2535
|
+
since;
|
|
2536
|
+
}
|
|
2537
|
+
if (until !== undefined) {
|
|
2538
|
+
localVarQueryParameter['until'] = (until instanceof Date) ?
|
|
2539
|
+
until.toISOString() :
|
|
2540
|
+
until;
|
|
2541
|
+
}
|
|
2542
|
+
if (userId !== undefined) {
|
|
2543
|
+
localVarQueryParameter['userId'] = userId;
|
|
2544
|
+
}
|
|
2545
|
+
if (tokenId !== undefined) {
|
|
2546
|
+
localVarQueryParameter['tokenId'] = tokenId;
|
|
2547
|
+
}
|
|
2548
|
+
if (modelId !== undefined) {
|
|
2549
|
+
localVarQueryParameter['modelId'] = modelId;
|
|
2550
|
+
}
|
|
2551
|
+
if (recordType !== undefined) {
|
|
2552
|
+
localVarQueryParameter['recordType'] = recordType;
|
|
2553
|
+
}
|
|
2554
|
+
if (decision !== undefined) {
|
|
2555
|
+
localVarQueryParameter['decision'] = decision;
|
|
2556
|
+
}
|
|
2557
|
+
if (tool !== undefined) {
|
|
2558
|
+
localVarQueryParameter['tool'] = tool;
|
|
2559
|
+
}
|
|
2560
|
+
if (outcome !== undefined) {
|
|
2561
|
+
localVarQueryParameter['outcome'] = outcome;
|
|
2562
|
+
}
|
|
2563
|
+
if (_interface !== undefined) {
|
|
2564
|
+
localVarQueryParameter['interface'] = _interface;
|
|
2565
|
+
}
|
|
2566
|
+
if (limit !== undefined) {
|
|
2567
|
+
localVarQueryParameter['limit'] = limit;
|
|
2568
|
+
}
|
|
2569
|
+
if (cursor !== undefined) {
|
|
2570
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
2571
|
+
}
|
|
2572
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
2573
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
2574
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
2575
|
+
return {
|
|
2576
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
2577
|
+
options: localVarRequestOptions,
|
|
2578
|
+
};
|
|
2579
|
+
}),
|
|
2580
|
+
};
|
|
2581
|
+
};
|
|
2582
|
+
exports.AIAuditApiAxiosParamCreator = AIAuditApiAxiosParamCreator;
|
|
2583
|
+
/**
|
|
2584
|
+
* AIAuditApi - functional programming interface
|
|
2585
|
+
* @export
|
|
2586
|
+
*/
|
|
2587
|
+
const AIAuditApiFp = function (configuration) {
|
|
2588
|
+
const localVarAxiosParamCreator = (0, exports.AIAuditApiAxiosParamCreator)(configuration);
|
|
2589
|
+
return {
|
|
2590
|
+
/**
|
|
2591
|
+
* 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.
|
|
2592
|
+
* @summary Export AI audit records as JSON Lines
|
|
2593
|
+
* @param {string} organisation The organisation machine name
|
|
2594
|
+
* @param {string} startDate
|
|
2595
|
+
* @param {string} endDate
|
|
2596
|
+
* @param {string} [userId]
|
|
2597
|
+
* @param {string} [modelId]
|
|
2598
|
+
* @param {string} [recordType]
|
|
2599
|
+
* @param {string} [decision]
|
|
2600
|
+
* @param {string} [tool]
|
|
2601
|
+
* @param {string} [outcome]
|
|
2602
|
+
* @param {*} [options] Override http request option.
|
|
2603
|
+
* @throws {RequiredError}
|
|
2604
|
+
*/
|
|
2605
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2606
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
2607
|
+
var _a, _b, _c;
|
|
2608
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options);
|
|
2609
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
2610
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
2611
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
2612
|
+
});
|
|
2613
|
+
},
|
|
2614
|
+
/**
|
|
2615
|
+
* 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.
|
|
2616
|
+
* @summary List AI governance ledger entries
|
|
2617
|
+
* @param {string} organisation The organisation machine name
|
|
2618
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2619
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2620
|
+
* @param {number} [limit]
|
|
2621
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2622
|
+
* @param {*} [options] Override http request option.
|
|
2623
|
+
* @throws {RequiredError}
|
|
2624
|
+
*/
|
|
2625
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
1772
2626
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1773
2627
|
var _a, _b, _c;
|
|
1774
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2628
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
|
|
1775
2629
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1776
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2630
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditLedgerEntries']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1777
2631
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1778
2632
|
});
|
|
1779
2633
|
},
|
|
1780
2634
|
/**
|
|
1781
|
-
*
|
|
1782
|
-
* @summary Get
|
|
1783
|
-
* @param {string} organisation The organisation
|
|
1784
|
-
* @param {string}
|
|
2635
|
+
* 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.
|
|
2636
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2637
|
+
* @param {string} organisation The organisation machine name
|
|
2638
|
+
* @param {string} key
|
|
1785
2639
|
* @param {*} [options] Override http request option.
|
|
1786
2640
|
* @throws {RequiredError}
|
|
1787
2641
|
*/
|
|
1788
|
-
|
|
2642
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
1789
2643
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1790
2644
|
var _a, _b, _c;
|
|
1791
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2645
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
|
|
1792
2646
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1793
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2647
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditLedgerProof']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1794
2648
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1795
2649
|
});
|
|
1796
2650
|
},
|
|
1797
2651
|
/**
|
|
1798
|
-
*
|
|
1799
|
-
* @summary Get
|
|
1800
|
-
* @param {string} organisation The organisation
|
|
1801
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2652
|
+
* 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.
|
|
2653
|
+
* @summary Get the governance ledger public key
|
|
2654
|
+
* @param {string} organisation The organisation machine name
|
|
1802
2655
|
* @param {*} [options] Override http request option.
|
|
1803
2656
|
* @throws {RequiredError}
|
|
1804
2657
|
*/
|
|
1805
|
-
|
|
2658
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
1806
2659
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1807
2660
|
var _a, _b, _c;
|
|
1808
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2661
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
|
|
1809
2662
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1810
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2663
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditLedgerPublicKey']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1811
2664
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1812
2665
|
});
|
|
1813
2666
|
},
|
|
1814
2667
|
/**
|
|
1815
|
-
*
|
|
1816
|
-
* @summary
|
|
1817
|
-
* @param {string} organisation The organisation
|
|
1818
|
-
* @param {string} [
|
|
2668
|
+
* 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.
|
|
2669
|
+
* @summary Get the AI governance ledger status
|
|
2670
|
+
* @param {string} organisation The organisation machine name
|
|
2671
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1819
2672
|
* @param {*} [options] Override http request option.
|
|
1820
2673
|
* @throws {RequiredError}
|
|
1821
2674
|
*/
|
|
1822
|
-
|
|
2675
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
1823
2676
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1824
2677
|
var _a, _b, _c;
|
|
1825
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2678
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, options);
|
|
1826
2679
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1827
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2680
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditLedgerStatus']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1828
2681
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1829
2682
|
});
|
|
1830
2683
|
},
|
|
1831
2684
|
/**
|
|
1832
|
-
*
|
|
1833
|
-
* @summary
|
|
1834
|
-
* @param {string} organisation The organisation
|
|
1835
|
-
* @param {string}
|
|
1836
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2685
|
+
* 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.
|
|
2686
|
+
* @summary Get one AI audit record
|
|
2687
|
+
* @param {string} organisation The organisation machine name
|
|
2688
|
+
* @param {string} key
|
|
1837
2689
|
* @param {*} [options] Override http request option.
|
|
1838
2690
|
* @throws {RequiredError}
|
|
1839
2691
|
*/
|
|
1840
|
-
|
|
2692
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
1841
2693
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1842
2694
|
var _a, _b, _c;
|
|
1843
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2695
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
|
|
1844
2696
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1845
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2697
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditRecordGet']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1846
2698
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1847
2699
|
});
|
|
1848
2700
|
},
|
|
1849
2701
|
/**
|
|
1850
|
-
*
|
|
1851
|
-
* @summary
|
|
1852
|
-
* @param {string} organisation The organisation
|
|
1853
|
-
* @param {string}
|
|
1854
|
-
* @param {
|
|
2702
|
+
* 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.
|
|
2703
|
+
* @summary List AI audit records
|
|
2704
|
+
* @param {string} organisation The organisation machine name
|
|
2705
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2706
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2707
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2708
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2709
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2710
|
+
* @param {string} [tokenId]
|
|
2711
|
+
* @param {string} [modelId]
|
|
2712
|
+
* @param {string} [recordType]
|
|
2713
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2714
|
+
* @param {string} [tool]
|
|
2715
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2716
|
+
* @param {string} [_interface]
|
|
2717
|
+
* @param {number} [limit]
|
|
2718
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
1855
2719
|
* @param {*} [options] Override http request option.
|
|
1856
2720
|
* @throws {RequiredError}
|
|
1857
2721
|
*/
|
|
1858
|
-
|
|
2722
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
1859
2723
|
return __awaiter(this, void 0, void 0, function* () {
|
|
1860
2724
|
var _a, _b, _c;
|
|
1861
|
-
const localVarAxiosArgs = yield localVarAxiosParamCreator.
|
|
2725
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
|
|
1862
2726
|
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
1863
|
-
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['
|
|
2727
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditRecordsList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
1864
2728
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
1865
2729
|
});
|
|
1866
2730
|
},
|
|
1867
2731
|
};
|
|
1868
2732
|
};
|
|
1869
|
-
exports.
|
|
2733
|
+
exports.AIAuditApiFp = AIAuditApiFp;
|
|
1870
2734
|
/**
|
|
1871
|
-
*
|
|
2735
|
+
* AIAuditApi - factory interface
|
|
1872
2736
|
* @export
|
|
1873
2737
|
*/
|
|
1874
|
-
const
|
|
1875
|
-
const localVarFp = (0, exports.
|
|
2738
|
+
const AIAuditApiFactory = function (configuration, basePath, axios) {
|
|
2739
|
+
const localVarFp = (0, exports.AIAuditApiFp)(configuration);
|
|
1876
2740
|
return {
|
|
1877
2741
|
/**
|
|
1878
|
-
*
|
|
1879
|
-
* @summary
|
|
1880
|
-
* @param {string} organisation The organisation
|
|
1881
|
-
* @param {string}
|
|
1882
|
-
* @param {
|
|
1883
|
-
* @param {
|
|
1884
|
-
* @
|
|
1885
|
-
|
|
1886
|
-
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
/**
|
|
1890
|
-
* 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).
|
|
1891
|
-
* @summary Create AI Agent
|
|
1892
|
-
* @param {string} organisation The organisation ID
|
|
1893
|
-
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
1894
|
-
* @param {*} [options] Override http request option.
|
|
1895
|
-
* @throws {RequiredError}
|
|
1896
|
-
*/
|
|
1897
|
-
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
1898
|
-
return localVarFp.createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(axios, basePath));
|
|
1899
|
-
},
|
|
1900
|
-
/**
|
|
1901
|
-
* Permanently deletes an AI agent. This action cannot be undone.
|
|
1902
|
-
* @summary Delete Agent
|
|
1903
|
-
* @param {string} organisation The organisation ID
|
|
1904
|
-
* @param {string} agentId The agent ID
|
|
2742
|
+
* 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.
|
|
2743
|
+
* @summary Export AI audit records as JSON Lines
|
|
2744
|
+
* @param {string} organisation The organisation machine name
|
|
2745
|
+
* @param {string} startDate
|
|
2746
|
+
* @param {string} endDate
|
|
2747
|
+
* @param {string} [userId]
|
|
2748
|
+
* @param {string} [modelId]
|
|
2749
|
+
* @param {string} [recordType]
|
|
2750
|
+
* @param {string} [decision]
|
|
2751
|
+
* @param {string} [tool]
|
|
2752
|
+
* @param {string} [outcome]
|
|
1905
2753
|
* @param {*} [options] Override http request option.
|
|
1906
2754
|
* @throws {RequiredError}
|
|
1907
2755
|
*/
|
|
1908
|
-
|
|
1909
|
-
return localVarFp.
|
|
2756
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2757
|
+
return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
|
|
1910
2758
|
},
|
|
1911
2759
|
/**
|
|
1912
|
-
*
|
|
1913
|
-
* @summary
|
|
1914
|
-
* @param {string} organisation The organisation
|
|
1915
|
-
* @param {string}
|
|
2760
|
+
* 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.
|
|
2761
|
+
* @summary List AI governance ledger entries
|
|
2762
|
+
* @param {string} organisation The organisation machine name
|
|
2763
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2764
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2765
|
+
* @param {number} [limit]
|
|
2766
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1916
2767
|
* @param {*} [options] Override http request option.
|
|
1917
2768
|
* @throws {RequiredError}
|
|
1918
2769
|
*/
|
|
1919
|
-
|
|
1920
|
-
return localVarFp.
|
|
2770
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
2771
|
+
return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1921
2772
|
},
|
|
1922
2773
|
/**
|
|
1923
|
-
*
|
|
1924
|
-
* @summary Get
|
|
1925
|
-
* @param {string} organisation The organisation
|
|
1926
|
-
* @param {string}
|
|
2774
|
+
* 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.
|
|
2775
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2776
|
+
* @param {string} organisation The organisation machine name
|
|
2777
|
+
* @param {string} key
|
|
1927
2778
|
* @param {*} [options] Override http request option.
|
|
1928
2779
|
* @throws {RequiredError}
|
|
1929
2780
|
*/
|
|
1930
|
-
|
|
1931
|
-
return localVarFp.
|
|
2781
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
2782
|
+
return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
|
|
1932
2783
|
},
|
|
1933
2784
|
/**
|
|
1934
|
-
*
|
|
1935
|
-
* @summary Get
|
|
1936
|
-
* @param {string} organisation The organisation
|
|
1937
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2785
|
+
* 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.
|
|
2786
|
+
* @summary Get the governance ledger public key
|
|
2787
|
+
* @param {string} organisation The organisation machine name
|
|
1938
2788
|
* @param {*} [options] Override http request option.
|
|
1939
2789
|
* @throws {RequiredError}
|
|
1940
2790
|
*/
|
|
1941
|
-
|
|
1942
|
-
return localVarFp.
|
|
2791
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
2792
|
+
return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
|
|
1943
2793
|
},
|
|
1944
2794
|
/**
|
|
1945
|
-
*
|
|
1946
|
-
* @summary
|
|
1947
|
-
* @param {string} organisation The organisation
|
|
1948
|
-
* @param {string} [
|
|
2795
|
+
* 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.
|
|
2796
|
+
* @summary Get the AI governance ledger status
|
|
2797
|
+
* @param {string} organisation The organisation machine name
|
|
2798
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
1949
2799
|
* @param {*} [options] Override http request option.
|
|
1950
2800
|
* @throws {RequiredError}
|
|
1951
2801
|
*/
|
|
1952
|
-
|
|
1953
|
-
return localVarFp.
|
|
2802
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
2803
|
+
return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
|
|
1954
2804
|
},
|
|
1955
2805
|
/**
|
|
1956
|
-
*
|
|
1957
|
-
* @summary
|
|
1958
|
-
* @param {string} organisation The organisation
|
|
1959
|
-
* @param {string}
|
|
1960
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2806
|
+
* 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.
|
|
2807
|
+
* @summary Get one AI audit record
|
|
2808
|
+
* @param {string} organisation The organisation machine name
|
|
2809
|
+
* @param {string} key
|
|
1961
2810
|
* @param {*} [options] Override http request option.
|
|
1962
2811
|
* @throws {RequiredError}
|
|
1963
2812
|
*/
|
|
1964
|
-
|
|
1965
|
-
return localVarFp.
|
|
2813
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
2814
|
+
return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
|
|
1966
2815
|
},
|
|
1967
2816
|
/**
|
|
1968
|
-
*
|
|
1969
|
-
* @summary
|
|
1970
|
-
* @param {string} organisation The organisation
|
|
1971
|
-
* @param {string}
|
|
1972
|
-
* @param {
|
|
2817
|
+
* 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.
|
|
2818
|
+
* @summary List AI audit records
|
|
2819
|
+
* @param {string} organisation The organisation machine name
|
|
2820
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2821
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2822
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2823
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2824
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2825
|
+
* @param {string} [tokenId]
|
|
2826
|
+
* @param {string} [modelId]
|
|
2827
|
+
* @param {string} [recordType]
|
|
2828
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2829
|
+
* @param {string} [tool]
|
|
2830
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2831
|
+
* @param {string} [_interface]
|
|
2832
|
+
* @param {number} [limit]
|
|
2833
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
1973
2834
|
* @param {*} [options] Override http request option.
|
|
1974
2835
|
* @throws {RequiredError}
|
|
1975
2836
|
*/
|
|
1976
|
-
|
|
1977
|
-
return localVarFp.
|
|
2837
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
2838
|
+
return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
|
|
1978
2839
|
},
|
|
1979
2840
|
};
|
|
1980
2841
|
};
|
|
1981
|
-
exports.
|
|
2842
|
+
exports.AIAuditApiFactory = AIAuditApiFactory;
|
|
1982
2843
|
/**
|
|
1983
|
-
*
|
|
2844
|
+
* AIAuditApi - object-oriented interface
|
|
1984
2845
|
* @export
|
|
1985
|
-
* @class
|
|
2846
|
+
* @class AIAuditApi
|
|
1986
2847
|
* @extends {BaseAPI}
|
|
1987
2848
|
*/
|
|
1988
|
-
class
|
|
1989
|
-
/**
|
|
1990
|
-
* 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
|
|
1991
|
-
* @summary Chat with AI Agent
|
|
1992
|
-
* @param {string} organisation The organisation ID
|
|
1993
|
-
* @param {string} agentId The agent ID
|
|
1994
|
-
* @param {ChatWithAIAgentRequest} chatWithAIAgentRequest
|
|
1995
|
-
* @param {*} [options] Override http request option.
|
|
1996
|
-
* @throws {RequiredError}
|
|
1997
|
-
* @memberof AIAgentsApi
|
|
1998
|
-
*/
|
|
1999
|
-
chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options) {
|
|
2000
|
-
return (0, exports.AIAgentsApiFp)(this.configuration).chatWithAIAgent(organisation, agentId, chatWithAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2001
|
-
}
|
|
2002
|
-
/**
|
|
2003
|
-
* 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).
|
|
2004
|
-
* @summary Create AI Agent
|
|
2005
|
-
* @param {string} organisation The organisation ID
|
|
2006
|
-
* @param {CreateAIAgentRequest} createAIAgentRequest
|
|
2007
|
-
* @param {*} [options] Override http request option.
|
|
2008
|
-
* @throws {RequiredError}
|
|
2009
|
-
* @memberof AIAgentsApi
|
|
2010
|
-
*/
|
|
2011
|
-
createAIAgent(organisation, createAIAgentRequest, options) {
|
|
2012
|
-
return (0, exports.AIAgentsApiFp)(this.configuration).createAIAgent(organisation, createAIAgentRequest, options).then((request) => request(this.axios, this.basePath));
|
|
2013
|
-
}
|
|
2849
|
+
class AIAuditApi extends base_1.BaseAPI {
|
|
2014
2850
|
/**
|
|
2015
|
-
*
|
|
2016
|
-
* @summary
|
|
2017
|
-
* @param {string} organisation The organisation
|
|
2018
|
-
* @param {string}
|
|
2851
|
+
* 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.
|
|
2852
|
+
* @summary Export AI audit records as JSON Lines
|
|
2853
|
+
* @param {string} organisation The organisation machine name
|
|
2854
|
+
* @param {string} startDate
|
|
2855
|
+
* @param {string} endDate
|
|
2856
|
+
* @param {string} [userId]
|
|
2857
|
+
* @param {string} [modelId]
|
|
2858
|
+
* @param {string} [recordType]
|
|
2859
|
+
* @param {string} [decision]
|
|
2860
|
+
* @param {string} [tool]
|
|
2861
|
+
* @param {string} [outcome]
|
|
2019
2862
|
* @param {*} [options] Override http request option.
|
|
2020
2863
|
* @throws {RequiredError}
|
|
2021
|
-
* @memberof
|
|
2864
|
+
* @memberof AIAuditApi
|
|
2022
2865
|
*/
|
|
2023
|
-
|
|
2024
|
-
return (0, exports.
|
|
2866
|
+
aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
|
|
2867
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
|
|
2025
2868
|
}
|
|
2026
2869
|
/**
|
|
2027
|
-
*
|
|
2028
|
-
* @summary
|
|
2029
|
-
* @param {string} organisation The organisation
|
|
2030
|
-
* @param {string}
|
|
2870
|
+
* 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.
|
|
2871
|
+
* @summary List AI governance ledger entries
|
|
2872
|
+
* @param {string} organisation The organisation machine name
|
|
2873
|
+
* @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
|
|
2874
|
+
* @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
|
|
2875
|
+
* @param {number} [limit]
|
|
2876
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2031
2877
|
* @param {*} [options] Override http request option.
|
|
2032
2878
|
* @throws {RequiredError}
|
|
2033
|
-
* @memberof
|
|
2879
|
+
* @memberof AIAuditApi
|
|
2034
2880
|
*/
|
|
2035
|
-
|
|
2036
|
-
return (0, exports.
|
|
2881
|
+
aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
|
|
2882
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2037
2883
|
}
|
|
2038
2884
|
/**
|
|
2039
|
-
*
|
|
2040
|
-
* @summary Get
|
|
2041
|
-
* @param {string} organisation The organisation
|
|
2042
|
-
* @param {string}
|
|
2885
|
+
* 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.
|
|
2886
|
+
* @summary Get the inclusion proof of a governance ledger entry
|
|
2887
|
+
* @param {string} organisation The organisation machine name
|
|
2888
|
+
* @param {string} key
|
|
2043
2889
|
* @param {*} [options] Override http request option.
|
|
2044
2890
|
* @throws {RequiredError}
|
|
2045
|
-
* @memberof
|
|
2891
|
+
* @memberof AIAuditApi
|
|
2046
2892
|
*/
|
|
2047
|
-
|
|
2048
|
-
return (0, exports.
|
|
2893
|
+
aiAuditLedgerProof(organisation, key, options) {
|
|
2894
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
2049
2895
|
}
|
|
2050
2896
|
/**
|
|
2051
|
-
*
|
|
2052
|
-
* @summary Get
|
|
2053
|
-
* @param {string} organisation The organisation
|
|
2054
|
-
* @param {string} agentId Global agent identifier (e.g., \'quantgov-code\')
|
|
2897
|
+
* 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.
|
|
2898
|
+
* @summary Get the governance ledger public key
|
|
2899
|
+
* @param {string} organisation The organisation machine name
|
|
2055
2900
|
* @param {*} [options] Override http request option.
|
|
2056
2901
|
* @throws {RequiredError}
|
|
2057
|
-
* @memberof
|
|
2902
|
+
* @memberof AIAuditApi
|
|
2058
2903
|
*/
|
|
2059
|
-
|
|
2060
|
-
return (0, exports.
|
|
2904
|
+
aiAuditLedgerPublicKey(organisation, options) {
|
|
2905
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
2061
2906
|
}
|
|
2062
2907
|
/**
|
|
2063
|
-
*
|
|
2064
|
-
* @summary
|
|
2065
|
-
* @param {string} organisation The organisation
|
|
2066
|
-
* @param {string} [
|
|
2908
|
+
* 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.
|
|
2909
|
+
* @summary Get the AI governance ledger status
|
|
2910
|
+
* @param {string} organisation The organisation machine name
|
|
2911
|
+
* @param {string} [cursor] The next_cursor of the previous page.
|
|
2067
2912
|
* @param {*} [options] Override http request option.
|
|
2068
2913
|
* @throws {RequiredError}
|
|
2069
|
-
* @memberof
|
|
2914
|
+
* @memberof AIAuditApi
|
|
2070
2915
|
*/
|
|
2071
|
-
|
|
2072
|
-
return (0, exports.
|
|
2916
|
+
aiAuditLedgerStatus(organisation, cursor, options) {
|
|
2917
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
2073
2918
|
}
|
|
2074
2919
|
/**
|
|
2075
|
-
*
|
|
2076
|
-
* @summary
|
|
2077
|
-
* @param {string} organisation The organisation
|
|
2078
|
-
* @param {string}
|
|
2079
|
-
* @param {UpdateAIAgentRequest} updateAIAgentRequest
|
|
2920
|
+
* 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.
|
|
2921
|
+
* @summary Get one AI audit record
|
|
2922
|
+
* @param {string} organisation The organisation machine name
|
|
2923
|
+
* @param {string} key
|
|
2080
2924
|
* @param {*} [options] Override http request option.
|
|
2081
2925
|
* @throws {RequiredError}
|
|
2082
|
-
* @memberof
|
|
2926
|
+
* @memberof AIAuditApi
|
|
2083
2927
|
*/
|
|
2084
|
-
|
|
2085
|
-
return (0, exports.
|
|
2928
|
+
aiAuditRecordGet(organisation, key, options) {
|
|
2929
|
+
return (0, exports.AIAuditApiFp)(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
|
|
2086
2930
|
}
|
|
2087
2931
|
/**
|
|
2088
|
-
*
|
|
2089
|
-
* @summary
|
|
2090
|
-
* @param {string} organisation The organisation
|
|
2091
|
-
* @param {string}
|
|
2092
|
-
* @param {
|
|
2932
|
+
* 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.
|
|
2933
|
+
* @summary List AI audit records
|
|
2934
|
+
* @param {string} organisation The organisation machine name
|
|
2935
|
+
* @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
|
|
2936
|
+
* @param {string} endDate Last UTC day (inclusive).
|
|
2937
|
+
* @param {string} [since] Record time from (inclusive).
|
|
2938
|
+
* @param {string} [until] Record time to (exclusive).
|
|
2939
|
+
* @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
|
|
2940
|
+
* @param {string} [tokenId]
|
|
2941
|
+
* @param {string} [modelId]
|
|
2942
|
+
* @param {string} [recordType]
|
|
2943
|
+
* @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
|
|
2944
|
+
* @param {string} [tool]
|
|
2945
|
+
* @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
|
|
2946
|
+
* @param {string} [_interface]
|
|
2947
|
+
* @param {number} [limit]
|
|
2948
|
+
* @param {string} [cursor] nextCursor of the previous page (same organisation and range).
|
|
2093
2949
|
* @param {*} [options] Override http request option.
|
|
2094
2950
|
* @throws {RequiredError}
|
|
2095
|
-
* @memberof
|
|
2951
|
+
* @memberof AIAuditApi
|
|
2096
2952
|
*/
|
|
2097
|
-
|
|
2098
|
-
return (0, exports.
|
|
2953
|
+
aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
|
|
2954
|
+
return (0, exports.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));
|
|
2099
2955
|
}
|
|
2100
2956
|
}
|
|
2101
|
-
exports.
|
|
2957
|
+
exports.AIAuditApi = AIAuditApi;
|
|
2102
2958
|
/**
|
|
2103
2959
|
* AICustomToolsApi - axios parameter creator
|
|
2104
2960
|
* @export
|
|
@@ -5535,7 +6391,7 @@ const AISearchApiAxiosParamCreator = function (configuration) {
|
|
|
5535
6391
|
};
|
|
5536
6392
|
}),
|
|
5537
6393
|
/**
|
|
5538
|
-
*
|
|
6394
|
+
* 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.
|
|
5539
6395
|
* @summary Get the most popular AI Search queries
|
|
5540
6396
|
* @param {string} organisation
|
|
5541
6397
|
* @param {string} project
|
|
@@ -5946,7 +6802,7 @@ const AISearchApiFp = function (configuration) {
|
|
|
5946
6802
|
});
|
|
5947
6803
|
},
|
|
5948
6804
|
/**
|
|
5949
|
-
*
|
|
6805
|
+
* 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.
|
|
5950
6806
|
* @summary Get the most popular AI Search queries
|
|
5951
6807
|
* @param {string} organisation
|
|
5952
6808
|
* @param {string} project
|
|
@@ -6186,7 +7042,7 @@ const AISearchApiFactory = function (configuration, basePath, axios) {
|
|
|
6186
7042
|
return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
|
|
6187
7043
|
},
|
|
6188
7044
|
/**
|
|
6189
|
-
*
|
|
7045
|
+
* 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.
|
|
6190
7046
|
* @summary Get the most popular AI Search queries
|
|
6191
7047
|
* @param {string} organisation
|
|
6192
7048
|
* @param {string} project
|
|
@@ -6415,7 +7271,7 @@ class AISearchApi extends base_1.BaseAPI {
|
|
|
6415
7271
|
return (0, exports.AISearchApiFp)(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
|
|
6416
7272
|
}
|
|
6417
7273
|
/**
|
|
6418
|
-
*
|
|
7274
|
+
* 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.
|
|
6419
7275
|
* @summary Get the most popular AI Search queries
|
|
6420
7276
|
* @param {string} organisation
|
|
6421
7277
|
* @param {string} project
|
|
@@ -7904,6 +8760,46 @@ exports.AISkillsApi = AISkillsApi;
|
|
|
7904
8760
|
*/
|
|
7905
8761
|
const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
7906
8762
|
return {
|
|
8763
|
+
/**
|
|
8764
|
+
*
|
|
8765
|
+
* @summary Cancel an unanswered Slack interaction
|
|
8766
|
+
* @param {string} organisation
|
|
8767
|
+
* @param {string} botId
|
|
8768
|
+
* @param {string} interactionId
|
|
8769
|
+
* @param {*} [options] Override http request option.
|
|
8770
|
+
* @throws {RequiredError}
|
|
8771
|
+
*/
|
|
8772
|
+
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 = {}) {
|
|
8773
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
8774
|
+
(0, common_1.assertParamExists)('cancelSlackInteraction', 'organisation', organisation);
|
|
8775
|
+
// verify required parameter 'botId' is not null or undefined
|
|
8776
|
+
(0, common_1.assertParamExists)('cancelSlackInteraction', 'botId', botId);
|
|
8777
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
8778
|
+
(0, common_1.assertParamExists)('cancelSlackInteraction', 'interactionId', interactionId);
|
|
8779
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
|
|
8780
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
8781
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
8782
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
8783
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8784
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8785
|
+
let baseOptions;
|
|
8786
|
+
if (configuration) {
|
|
8787
|
+
baseOptions = configuration.baseOptions;
|
|
8788
|
+
}
|
|
8789
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8790
|
+
const localVarHeaderParameter = {};
|
|
8791
|
+
const localVarQueryParameter = {};
|
|
8792
|
+
// authentication BearerAuth required
|
|
8793
|
+
// http bearer authentication required
|
|
8794
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8795
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8796
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8797
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8798
|
+
return {
|
|
8799
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8800
|
+
options: localVarRequestOptions,
|
|
8801
|
+
};
|
|
8802
|
+
}),
|
|
7907
8803
|
/**
|
|
7908
8804
|
* 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
|
|
7909
8805
|
* @summary Create Slack Bot
|
|
@@ -7941,6 +8837,53 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
7941
8837
|
options: localVarRequestOptions,
|
|
7942
8838
|
};
|
|
7943
8839
|
}),
|
|
8840
|
+
/**
|
|
8841
|
+
* 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.
|
|
8842
|
+
* @summary Ask for a single Slack button response
|
|
8843
|
+
* @param {string} organisation
|
|
8844
|
+
* @param {string} botId
|
|
8845
|
+
* @param {string} idempotencyKey
|
|
8846
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
8847
|
+
* @param {*} [options] Override http request option.
|
|
8848
|
+
* @throws {RequiredError}
|
|
8849
|
+
*/
|
|
8850
|
+
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 = {}) {
|
|
8851
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
8852
|
+
(0, common_1.assertParamExists)('createSlackInteraction', 'organisation', organisation);
|
|
8853
|
+
// verify required parameter 'botId' is not null or undefined
|
|
8854
|
+
(0, common_1.assertParamExists)('createSlackInteraction', 'botId', botId);
|
|
8855
|
+
// verify required parameter 'idempotencyKey' is not null or undefined
|
|
8856
|
+
(0, common_1.assertParamExists)('createSlackInteraction', 'idempotencyKey', idempotencyKey);
|
|
8857
|
+
// verify required parameter 'createSlackInteractionRequest' is not null or undefined
|
|
8858
|
+
(0, common_1.assertParamExists)('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest);
|
|
8859
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
|
|
8860
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
8861
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
8862
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
8863
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
8864
|
+
let baseOptions;
|
|
8865
|
+
if (configuration) {
|
|
8866
|
+
baseOptions = configuration.baseOptions;
|
|
8867
|
+
}
|
|
8868
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
8869
|
+
const localVarHeaderParameter = {};
|
|
8870
|
+
const localVarQueryParameter = {};
|
|
8871
|
+
// authentication BearerAuth required
|
|
8872
|
+
// http bearer authentication required
|
|
8873
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
8874
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
8875
|
+
if (idempotencyKey != null) {
|
|
8876
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
8877
|
+
}
|
|
8878
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
8879
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
8880
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
8881
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSlackInteractionRequest, localVarRequestOptions, configuration);
|
|
8882
|
+
return {
|
|
8883
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
8884
|
+
options: localVarRequestOptions,
|
|
8885
|
+
};
|
|
8886
|
+
}),
|
|
7944
8887
|
/**
|
|
7945
8888
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
7946
8889
|
* @summary Delete Slack Bot
|
|
@@ -8069,6 +9012,46 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
8069
9012
|
options: localVarRequestOptions,
|
|
8070
9013
|
};
|
|
8071
9014
|
}),
|
|
9015
|
+
/**
|
|
9016
|
+
* 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.
|
|
9017
|
+
* @summary Read an external Slack interaction
|
|
9018
|
+
* @param {string} organisation
|
|
9019
|
+
* @param {string} botId
|
|
9020
|
+
* @param {string} interactionId
|
|
9021
|
+
* @param {*} [options] Override http request option.
|
|
9022
|
+
* @throws {RequiredError}
|
|
9023
|
+
*/
|
|
9024
|
+
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 = {}) {
|
|
9025
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
9026
|
+
(0, common_1.assertParamExists)('getSlackInteraction', 'organisation', organisation);
|
|
9027
|
+
// verify required parameter 'botId' is not null or undefined
|
|
9028
|
+
(0, common_1.assertParamExists)('getSlackInteraction', 'botId', botId);
|
|
9029
|
+
// verify required parameter 'interactionId' is not null or undefined
|
|
9030
|
+
(0, common_1.assertParamExists)('getSlackInteraction', 'interactionId', interactionId);
|
|
9031
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
|
|
9032
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
9033
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
|
|
9034
|
+
.replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
|
|
9035
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9036
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9037
|
+
let baseOptions;
|
|
9038
|
+
if (configuration) {
|
|
9039
|
+
baseOptions = configuration.baseOptions;
|
|
9040
|
+
}
|
|
9041
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
9042
|
+
const localVarHeaderParameter = {};
|
|
9043
|
+
const localVarQueryParameter = {};
|
|
9044
|
+
// authentication BearerAuth required
|
|
9045
|
+
// http bearer authentication required
|
|
9046
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9047
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9048
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9049
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9050
|
+
return {
|
|
9051
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9052
|
+
options: localVarRequestOptions,
|
|
9053
|
+
};
|
|
9054
|
+
}),
|
|
8072
9055
|
/**
|
|
8073
9056
|
* 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.
|
|
8074
9057
|
* @summary Read recent channel messages
|
|
@@ -8185,6 +9168,51 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
|
|
|
8185
9168
|
options: localVarRequestOptions,
|
|
8186
9169
|
};
|
|
8187
9170
|
}),
|
|
9171
|
+
/**
|
|
9172
|
+
* 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.
|
|
9173
|
+
* @summary Post an image as the bot
|
|
9174
|
+
* @param {string} organisation The organisation machine name
|
|
9175
|
+
* @param {string} botId
|
|
9176
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9177
|
+
* @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.
|
|
9178
|
+
* @param {*} [options] Override http request option.
|
|
9179
|
+
* @throws {RequiredError}
|
|
9180
|
+
*/
|
|
9181
|
+
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 = {}) {
|
|
9182
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
9183
|
+
(0, common_1.assertParamExists)('postSlackBotFile', 'organisation', organisation);
|
|
9184
|
+
// verify required parameter 'botId' is not null or undefined
|
|
9185
|
+
(0, common_1.assertParamExists)('postSlackBotFile', 'botId', botId);
|
|
9186
|
+
// verify required parameter 'postSlackBotFileRequest' is not null or undefined
|
|
9187
|
+
(0, common_1.assertParamExists)('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest);
|
|
9188
|
+
const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
|
|
9189
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
9190
|
+
.replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
|
|
9191
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
9192
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
9193
|
+
let baseOptions;
|
|
9194
|
+
if (configuration) {
|
|
9195
|
+
baseOptions = configuration.baseOptions;
|
|
9196
|
+
}
|
|
9197
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
|
|
9198
|
+
const localVarHeaderParameter = {};
|
|
9199
|
+
const localVarQueryParameter = {};
|
|
9200
|
+
// authentication BearerAuth required
|
|
9201
|
+
// http bearer authentication required
|
|
9202
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
9203
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
9204
|
+
if (idempotencyKey != null) {
|
|
9205
|
+
localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
|
|
9206
|
+
}
|
|
9207
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
9208
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
9209
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
9210
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSlackBotFileRequest, localVarRequestOptions, configuration);
|
|
9211
|
+
return {
|
|
9212
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
9213
|
+
options: localVarRequestOptions,
|
|
9214
|
+
};
|
|
9215
|
+
}),
|
|
8188
9216
|
/**
|
|
8189
9217
|
* 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.
|
|
8190
9218
|
* @summary Post a message as the bot
|
|
@@ -8361,6 +9389,24 @@ exports.AISlackBotsApiAxiosParamCreator = AISlackBotsApiAxiosParamCreator;
|
|
|
8361
9389
|
const AISlackBotsApiFp = function (configuration) {
|
|
8362
9390
|
const localVarAxiosParamCreator = (0, exports.AISlackBotsApiAxiosParamCreator)(configuration);
|
|
8363
9391
|
return {
|
|
9392
|
+
/**
|
|
9393
|
+
*
|
|
9394
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9395
|
+
* @param {string} organisation
|
|
9396
|
+
* @param {string} botId
|
|
9397
|
+
* @param {string} interactionId
|
|
9398
|
+
* @param {*} [options] Override http request option.
|
|
9399
|
+
* @throws {RequiredError}
|
|
9400
|
+
*/
|
|
9401
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9402
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9403
|
+
var _a, _b, _c;
|
|
9404
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
|
|
9405
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9406
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISlackBotsApi.cancelSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9407
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9408
|
+
});
|
|
9409
|
+
},
|
|
8364
9410
|
/**
|
|
8365
9411
|
* 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
|
|
8366
9412
|
* @summary Create Slack Bot
|
|
@@ -8378,6 +9424,25 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
8378
9424
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8379
9425
|
});
|
|
8380
9426
|
},
|
|
9427
|
+
/**
|
|
9428
|
+
* 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.
|
|
9429
|
+
* @summary Ask for a single Slack button response
|
|
9430
|
+
* @param {string} organisation
|
|
9431
|
+
* @param {string} botId
|
|
9432
|
+
* @param {string} idempotencyKey
|
|
9433
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9434
|
+
* @param {*} [options] Override http request option.
|
|
9435
|
+
* @throws {RequiredError}
|
|
9436
|
+
*/
|
|
9437
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9438
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9439
|
+
var _a, _b, _c;
|
|
9440
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
|
|
9441
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9442
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISlackBotsApi.createSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9443
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9444
|
+
});
|
|
9445
|
+
},
|
|
8381
9446
|
/**
|
|
8382
9447
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8383
9448
|
* @summary Delete Slack Bot
|
|
@@ -8434,6 +9499,24 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
8434
9499
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8435
9500
|
});
|
|
8436
9501
|
},
|
|
9502
|
+
/**
|
|
9503
|
+
* 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.
|
|
9504
|
+
* @summary Read an external Slack interaction
|
|
9505
|
+
* @param {string} organisation
|
|
9506
|
+
* @param {string} botId
|
|
9507
|
+
* @param {string} interactionId
|
|
9508
|
+
* @param {*} [options] Override http request option.
|
|
9509
|
+
* @throws {RequiredError}
|
|
9510
|
+
*/
|
|
9511
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9512
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9513
|
+
var _a, _b, _c;
|
|
9514
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
|
|
9515
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9516
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISlackBotsApi.getSlackInteraction']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9517
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9518
|
+
});
|
|
9519
|
+
},
|
|
8437
9520
|
/**
|
|
8438
9521
|
* 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.
|
|
8439
9522
|
* @summary Read recent channel messages
|
|
@@ -8487,6 +9570,25 @@ const AISlackBotsApiFp = function (configuration) {
|
|
|
8487
9570
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
8488
9571
|
});
|
|
8489
9572
|
},
|
|
9573
|
+
/**
|
|
9574
|
+
* 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.
|
|
9575
|
+
* @summary Post an image as the bot
|
|
9576
|
+
* @param {string} organisation The organisation machine name
|
|
9577
|
+
* @param {string} botId
|
|
9578
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9579
|
+
* @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.
|
|
9580
|
+
* @param {*} [options] Override http request option.
|
|
9581
|
+
* @throws {RequiredError}
|
|
9582
|
+
*/
|
|
9583
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
9584
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
9585
|
+
var _a, _b, _c;
|
|
9586
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
|
|
9587
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
9588
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AISlackBotsApi.postSlackBotFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
9589
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
9590
|
+
});
|
|
9591
|
+
},
|
|
8490
9592
|
/**
|
|
8491
9593
|
* 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.
|
|
8492
9594
|
* @summary Post a message as the bot
|
|
@@ -8570,6 +9672,18 @@ exports.AISlackBotsApiFp = AISlackBotsApiFp;
|
|
|
8570
9672
|
const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
8571
9673
|
const localVarFp = (0, exports.AISlackBotsApiFp)(configuration);
|
|
8572
9674
|
return {
|
|
9675
|
+
/**
|
|
9676
|
+
*
|
|
9677
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9678
|
+
* @param {string} organisation
|
|
9679
|
+
* @param {string} botId
|
|
9680
|
+
* @param {string} interactionId
|
|
9681
|
+
* @param {*} [options] Override http request option.
|
|
9682
|
+
* @throws {RequiredError}
|
|
9683
|
+
*/
|
|
9684
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9685
|
+
return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
9686
|
+
},
|
|
8573
9687
|
/**
|
|
8574
9688
|
* 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
|
|
8575
9689
|
* @summary Create Slack Bot
|
|
@@ -8581,6 +9695,19 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8581
9695
|
createSlackBot(organisation, createSlackBotRequest, options) {
|
|
8582
9696
|
return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
|
|
8583
9697
|
},
|
|
9698
|
+
/**
|
|
9699
|
+
* 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.
|
|
9700
|
+
* @summary Ask for a single Slack button response
|
|
9701
|
+
* @param {string} organisation
|
|
9702
|
+
* @param {string} botId
|
|
9703
|
+
* @param {string} idempotencyKey
|
|
9704
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9705
|
+
* @param {*} [options] Override http request option.
|
|
9706
|
+
* @throws {RequiredError}
|
|
9707
|
+
*/
|
|
9708
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9709
|
+
return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
|
|
9710
|
+
},
|
|
8584
9711
|
/**
|
|
8585
9712
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8586
9713
|
* @summary Delete Slack Bot
|
|
@@ -8619,6 +9746,18 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8619
9746
|
getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
|
|
8620
9747
|
return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
|
|
8621
9748
|
},
|
|
9749
|
+
/**
|
|
9750
|
+
* 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.
|
|
9751
|
+
* @summary Read an external Slack interaction
|
|
9752
|
+
* @param {string} organisation
|
|
9753
|
+
* @param {string} botId
|
|
9754
|
+
* @param {string} interactionId
|
|
9755
|
+
* @param {*} [options] Override http request option.
|
|
9756
|
+
* @throws {RequiredError}
|
|
9757
|
+
*/
|
|
9758
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9759
|
+
return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
|
|
9760
|
+
},
|
|
8622
9761
|
/**
|
|
8623
9762
|
* 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.
|
|
8624
9763
|
* @summary Read recent channel messages
|
|
@@ -8654,6 +9793,19 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
|
|
|
8654
9793
|
listSlackBotsApiEnabled(organisation, options) {
|
|
8655
9794
|
return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
|
|
8656
9795
|
},
|
|
9796
|
+
/**
|
|
9797
|
+
* 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.
|
|
9798
|
+
* @summary Post an image as the bot
|
|
9799
|
+
* @param {string} organisation The organisation machine name
|
|
9800
|
+
* @param {string} botId
|
|
9801
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
9802
|
+
* @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.
|
|
9803
|
+
* @param {*} [options] Override http request option.
|
|
9804
|
+
* @throws {RequiredError}
|
|
9805
|
+
*/
|
|
9806
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
9807
|
+
return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
|
|
9808
|
+
},
|
|
8657
9809
|
/**
|
|
8658
9810
|
* 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.
|
|
8659
9811
|
* @summary Post a message as the bot
|
|
@@ -8713,6 +9865,19 @@ exports.AISlackBotsApiFactory = AISlackBotsApiFactory;
|
|
|
8713
9865
|
* @extends {BaseAPI}
|
|
8714
9866
|
*/
|
|
8715
9867
|
class AISlackBotsApi extends base_1.BaseAPI {
|
|
9868
|
+
/**
|
|
9869
|
+
*
|
|
9870
|
+
* @summary Cancel an unanswered Slack interaction
|
|
9871
|
+
* @param {string} organisation
|
|
9872
|
+
* @param {string} botId
|
|
9873
|
+
* @param {string} interactionId
|
|
9874
|
+
* @param {*} [options] Override http request option.
|
|
9875
|
+
* @throws {RequiredError}
|
|
9876
|
+
* @memberof AISlackBotsApi
|
|
9877
|
+
*/
|
|
9878
|
+
cancelSlackInteraction(organisation, botId, interactionId, options) {
|
|
9879
|
+
return (0, exports.AISlackBotsApiFp)(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
9880
|
+
}
|
|
8716
9881
|
/**
|
|
8717
9882
|
* 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
|
|
8718
9883
|
* @summary Create Slack Bot
|
|
@@ -8725,6 +9890,20 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
8725
9890
|
createSlackBot(organisation, createSlackBotRequest, options) {
|
|
8726
9891
|
return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
|
|
8727
9892
|
}
|
|
9893
|
+
/**
|
|
9894
|
+
* 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.
|
|
9895
|
+
* @summary Ask for a single Slack button response
|
|
9896
|
+
* @param {string} organisation
|
|
9897
|
+
* @param {string} botId
|
|
9898
|
+
* @param {string} idempotencyKey
|
|
9899
|
+
* @param {CreateSlackInteractionRequest} createSlackInteractionRequest
|
|
9900
|
+
* @param {*} [options] Override http request option.
|
|
9901
|
+
* @throws {RequiredError}
|
|
9902
|
+
* @memberof AISlackBotsApi
|
|
9903
|
+
*/
|
|
9904
|
+
createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
|
|
9905
|
+
return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
|
|
9906
|
+
}
|
|
8728
9907
|
/**
|
|
8729
9908
|
* Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
|
|
8730
9909
|
* @summary Delete Slack Bot
|
|
@@ -8766,6 +9945,19 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
8766
9945
|
getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
|
|
8767
9946
|
return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
8768
9947
|
}
|
|
9948
|
+
/**
|
|
9949
|
+
* 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.
|
|
9950
|
+
* @summary Read an external Slack interaction
|
|
9951
|
+
* @param {string} organisation
|
|
9952
|
+
* @param {string} botId
|
|
9953
|
+
* @param {string} interactionId
|
|
9954
|
+
* @param {*} [options] Override http request option.
|
|
9955
|
+
* @throws {RequiredError}
|
|
9956
|
+
* @memberof AISlackBotsApi
|
|
9957
|
+
*/
|
|
9958
|
+
getSlackInteraction(organisation, botId, interactionId, options) {
|
|
9959
|
+
return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
|
|
9960
|
+
}
|
|
8769
9961
|
/**
|
|
8770
9962
|
* 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.
|
|
8771
9963
|
* @summary Read recent channel messages
|
|
@@ -8804,6 +9996,20 @@ class AISlackBotsApi extends base_1.BaseAPI {
|
|
|
8804
9996
|
listSlackBotsApiEnabled(organisation, options) {
|
|
8805
9997
|
return (0, exports.AISlackBotsApiFp)(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
|
|
8806
9998
|
}
|
|
9999
|
+
/**
|
|
10000
|
+
* 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.
|
|
10001
|
+
* @summary Post an image as the bot
|
|
10002
|
+
* @param {string} organisation The organisation machine name
|
|
10003
|
+
* @param {string} botId
|
|
10004
|
+
* @param {PostSlackBotFileRequest} postSlackBotFileRequest
|
|
10005
|
+
* @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.
|
|
10006
|
+
* @param {*} [options] Override http request option.
|
|
10007
|
+
* @throws {RequiredError}
|
|
10008
|
+
* @memberof AISlackBotsApi
|
|
10009
|
+
*/
|
|
10010
|
+
postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
|
|
10011
|
+
return (0, exports.AISlackBotsApiFp)(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
|
|
10012
|
+
}
|
|
8807
10013
|
/**
|
|
8808
10014
|
* 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.
|
|
8809
10015
|
* @summary Post a message as the bot
|
|
@@ -17932,7 +19138,7 @@ const KVApiAxiosParamCreator = function (configuration) {
|
|
|
17932
19138
|
};
|
|
17933
19139
|
}),
|
|
17934
19140
|
/**
|
|
17935
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
19141
|
+
* 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).
|
|
17936
19142
|
* @summary Set a key, optionally only if absent or only at a version
|
|
17937
19143
|
* @param {string} organization Organization identifier
|
|
17938
19144
|
* @param {string} project Project identifier
|
|
@@ -20375,7 +21581,7 @@ const KVApiFp = function (configuration) {
|
|
|
20375
21581
|
});
|
|
20376
21582
|
},
|
|
20377
21583
|
/**
|
|
20378
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
21584
|
+
* 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).
|
|
20379
21585
|
* @summary Set a key, optionally only if absent or only at a version
|
|
20380
21586
|
* @param {string} organization Organization identifier
|
|
20381
21587
|
* @param {string} project Project identifier
|
|
@@ -21443,7 +22649,7 @@ const KVApiFactory = function (configuration, basePath, axios) {
|
|
|
21443
22649
|
return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
|
|
21444
22650
|
},
|
|
21445
22651
|
/**
|
|
21446
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
22652
|
+
* 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).
|
|
21447
22653
|
* @summary Set a key, optionally only if absent or only at a version
|
|
21448
22654
|
* @param {string} organization Organization identifier
|
|
21449
22655
|
* @param {string} project Project identifier
|
|
@@ -22232,7 +23438,7 @@ class KVApi extends base_1.BaseAPI {
|
|
|
22232
23438
|
return (0, exports.KVApiFp)(this.configuration).kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(this.axios, this.basePath));
|
|
22233
23439
|
}
|
|
22234
23440
|
/**
|
|
22235
|
-
* value is any JSON value ({} stays an object). secret encrypts the value with KMS
|
|
23441
|
+
* 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).
|
|
22236
23442
|
* @summary Set a key, optionally only if absent or only at a version
|
|
22237
23443
|
* @param {string} organization Organization identifier
|
|
22238
23444
|
* @param {string} project Project identifier
|
|
@@ -23433,7 +24639,7 @@ exports.OrganizationsApi = OrganizationsApi;
|
|
|
23433
24639
|
const ProjectsApiAxiosParamCreator = function (configuration) {
|
|
23434
24640
|
return {
|
|
23435
24641
|
/**
|
|
23436
|
-
* Retrieves CDN access log entries for a
|
|
24642
|
+
* 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.
|
|
23437
24643
|
* @summary Get CDN access logs for a project
|
|
23438
24644
|
* @param {string} organization The organization machine name
|
|
23439
24645
|
* @param {string} project The project machine name
|
|
@@ -23691,7 +24897,7 @@ const ProjectsApiFp = function (configuration) {
|
|
|
23691
24897
|
const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
|
|
23692
24898
|
return {
|
|
23693
24899
|
/**
|
|
23694
|
-
* Retrieves CDN access log entries for a
|
|
24900
|
+
* 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.
|
|
23695
24901
|
* @summary Get CDN access logs for a project
|
|
23696
24902
|
* @param {string} organization The organization machine name
|
|
23697
24903
|
* @param {string} project The project machine name
|
|
@@ -23810,7 +25016,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
|
|
|
23810
25016
|
const localVarFp = (0, exports.ProjectsApiFp)(configuration);
|
|
23811
25017
|
return {
|
|
23812
25018
|
/**
|
|
23813
|
-
* Retrieves CDN access log entries for a
|
|
25019
|
+
* 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.
|
|
23814
25020
|
* @summary Get CDN access logs for a project
|
|
23815
25021
|
* @param {string} organization The organization machine name
|
|
23816
25022
|
* @param {string} project The project machine name
|
|
@@ -23893,7 +25099,7 @@ exports.ProjectsApiFactory = ProjectsApiFactory;
|
|
|
23893
25099
|
*/
|
|
23894
25100
|
class ProjectsApi extends base_1.BaseAPI {
|
|
23895
25101
|
/**
|
|
23896
|
-
* Retrieves CDN access log entries for a
|
|
25102
|
+
* 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.
|
|
23897
25103
|
* @summary Get CDN access logs for a project
|
|
23898
25104
|
* @param {string} organization The organization machine name
|
|
23899
25105
|
* @param {string} project The project machine name
|
|
@@ -26683,36 +27889,72 @@ const RulesApiAxiosParamCreator = function (configuration) {
|
|
|
26683
27889
|
* @param {*} [options] Override http request option.
|
|
26684
27890
|
* @throws {RequiredError}
|
|
26685
27891
|
*/
|
|
26686
|
-
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 = {}) {
|
|
27892
|
+
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 = {}) {
|
|
27893
|
+
// verify required parameter 'organization' is not null or undefined
|
|
27894
|
+
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'organization', organization);
|
|
27895
|
+
// verify required parameter 'project' is not null or undefined
|
|
27896
|
+
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'project', project);
|
|
27897
|
+
// verify required parameter 'rule' is not null or undefined
|
|
27898
|
+
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'rule', rule);
|
|
27899
|
+
// verify required parameter 'v2RuleHeaderRequest' is not null or undefined
|
|
27900
|
+
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
|
|
27901
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
|
|
27902
|
+
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
27903
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
27904
|
+
.replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
|
|
27905
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
27906
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
27907
|
+
let baseOptions;
|
|
27908
|
+
if (configuration) {
|
|
27909
|
+
baseOptions = configuration.baseOptions;
|
|
27910
|
+
}
|
|
27911
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
|
|
27912
|
+
const localVarHeaderParameter = {};
|
|
27913
|
+
const localVarQueryParameter = {};
|
|
27914
|
+
// authentication BearerAuth required
|
|
27915
|
+
// http bearer authentication required
|
|
27916
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
27917
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
27918
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
27919
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
27920
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
27921
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2RuleHeaderRequest, localVarRequestOptions, configuration);
|
|
27922
|
+
return {
|
|
27923
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
27924
|
+
options: localVarRequestOptions,
|
|
27925
|
+
};
|
|
27926
|
+
}),
|
|
27927
|
+
/**
|
|
27928
|
+
* 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.
|
|
27929
|
+
* @summary List all rules in edge order
|
|
27930
|
+
* @param {string} organization
|
|
27931
|
+
* @param {string} project
|
|
27932
|
+
* @param {*} [options] Override http request option.
|
|
27933
|
+
* @throws {RequiredError}
|
|
27934
|
+
*/
|
|
27935
|
+
rulesIndexList: (organization_1, project_1, ...args_1) => __awaiter(this, [organization_1, project_1, ...args_1], void 0, function* (organization, project, options = {}) {
|
|
26687
27936
|
// verify required parameter 'organization' is not null or undefined
|
|
26688
|
-
(0, common_1.assertParamExists)('
|
|
27937
|
+
(0, common_1.assertParamExists)('rulesIndexList', 'organization', organization);
|
|
26689
27938
|
// verify required parameter 'project' is not null or undefined
|
|
26690
|
-
(0, common_1.assertParamExists)('
|
|
26691
|
-
|
|
26692
|
-
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'rule', rule);
|
|
26693
|
-
// verify required parameter 'v2RuleHeaderRequest' is not null or undefined
|
|
26694
|
-
(0, common_1.assertParamExists)('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
|
|
26695
|
-
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
|
|
27939
|
+
(0, common_1.assertParamExists)('rulesIndexList', 'project', project);
|
|
27940
|
+
const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
|
|
26696
27941
|
.replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
|
|
26697
|
-
.replace(`{${"project"}}`, encodeURIComponent(String(project)))
|
|
26698
|
-
.replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
|
|
27942
|
+
.replace(`{${"project"}}`, encodeURIComponent(String(project)));
|
|
26699
27943
|
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26700
27944
|
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26701
27945
|
let baseOptions;
|
|
26702
27946
|
if (configuration) {
|
|
26703
27947
|
baseOptions = configuration.baseOptions;
|
|
26704
27948
|
}
|
|
26705
|
-
const localVarRequestOptions = Object.assign(Object.assign({ method: '
|
|
27949
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26706
27950
|
const localVarHeaderParameter = {};
|
|
26707
27951
|
const localVarQueryParameter = {};
|
|
26708
27952
|
// authentication BearerAuth required
|
|
26709
27953
|
// http bearer authentication required
|
|
26710
27954
|
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
26711
|
-
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26712
27955
|
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26713
27956
|
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26714
27957
|
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26715
|
-
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2RuleHeaderRequest, localVarRequestOptions, configuration);
|
|
26716
27958
|
return {
|
|
26717
27959
|
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26718
27960
|
options: localVarRequestOptions,
|
|
@@ -28054,6 +29296,23 @@ const RulesApiFp = function (configuration) {
|
|
|
28054
29296
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
28055
29297
|
});
|
|
28056
29298
|
},
|
|
29299
|
+
/**
|
|
29300
|
+
* 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.
|
|
29301
|
+
* @summary List all rules in edge order
|
|
29302
|
+
* @param {string} organization
|
|
29303
|
+
* @param {string} project
|
|
29304
|
+
* @param {*} [options] Override http request option.
|
|
29305
|
+
* @throws {RequiredError}
|
|
29306
|
+
*/
|
|
29307
|
+
rulesIndexList(organization, project, options) {
|
|
29308
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
29309
|
+
var _a, _b, _c;
|
|
29310
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.rulesIndexList(organization, project, options);
|
|
29311
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
29312
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['RulesApi.rulesIndexList']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
29313
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
29314
|
+
});
|
|
29315
|
+
},
|
|
28057
29316
|
/**
|
|
28058
29317
|
*
|
|
28059
29318
|
* @summary Create a proxy rule
|
|
@@ -28814,6 +30073,17 @@ const RulesApiFactory = function (configuration, basePath, axios) {
|
|
|
28814
30073
|
rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
|
|
28815
30074
|
return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
|
|
28816
30075
|
},
|
|
30076
|
+
/**
|
|
30077
|
+
* 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.
|
|
30078
|
+
* @summary List all rules in edge order
|
|
30079
|
+
* @param {string} organization
|
|
30080
|
+
* @param {string} project
|
|
30081
|
+
* @param {*} [options] Override http request option.
|
|
30082
|
+
* @throws {RequiredError}
|
|
30083
|
+
*/
|
|
30084
|
+
rulesIndexList(organization, project, options) {
|
|
30085
|
+
return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
|
|
30086
|
+
},
|
|
28817
30087
|
/**
|
|
28818
30088
|
*
|
|
28819
30089
|
* @summary Create a proxy rule
|
|
@@ -29524,6 +30794,18 @@ class RulesApi extends base_1.BaseAPI {
|
|
|
29524
30794
|
rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
|
|
29525
30795
|
return (0, exports.RulesApiFp)(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
|
|
29526
30796
|
}
|
|
30797
|
+
/**
|
|
30798
|
+
* 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.
|
|
30799
|
+
* @summary List all rules in edge order
|
|
30800
|
+
* @param {string} organization
|
|
30801
|
+
* @param {string} project
|
|
30802
|
+
* @param {*} [options] Override http request option.
|
|
30803
|
+
* @throws {RequiredError}
|
|
30804
|
+
* @memberof RulesApi
|
|
30805
|
+
*/
|
|
30806
|
+
rulesIndexList(organization, project, options) {
|
|
30807
|
+
return (0, exports.RulesApiFp)(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
|
|
30808
|
+
}
|
|
29527
30809
|
/**
|
|
29528
30810
|
*
|
|
29529
30811
|
* @summary Create a proxy rule
|
|
@@ -30188,6 +31470,315 @@ exports.ListScalingPoliciesMetricEnum = {
|
|
|
30188
31470
|
MemoryUtilization: 'MemoryUtilization',
|
|
30189
31471
|
Rps: 'RPS'
|
|
30190
31472
|
};
|
|
31473
|
+
/**
|
|
31474
|
+
* SecretsApi - axios parameter creator
|
|
31475
|
+
* @export
|
|
31476
|
+
*/
|
|
31477
|
+
const SecretsApiAxiosParamCreator = function (configuration) {
|
|
31478
|
+
return {
|
|
31479
|
+
/**
|
|
31480
|
+
* 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.
|
|
31481
|
+
* @summary Delete 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 {*} [options] Override http request option.
|
|
31487
|
+
* @throws {RequiredError}
|
|
31488
|
+
*/
|
|
31489
|
+
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 = {}) {
|
|
31490
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31491
|
+
(0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation);
|
|
31492
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31493
|
+
(0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiApplication', apiApplication);
|
|
31494
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31495
|
+
(0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment);
|
|
31496
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
31497
|
+
(0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiSecret', apiSecret);
|
|
31498
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
31499
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31500
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31501
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
31502
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
31503
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31504
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31505
|
+
let baseOptions;
|
|
31506
|
+
if (configuration) {
|
|
31507
|
+
baseOptions = configuration.baseOptions;
|
|
31508
|
+
}
|
|
31509
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
31510
|
+
const localVarHeaderParameter = {};
|
|
31511
|
+
const localVarQueryParameter = {};
|
|
31512
|
+
// authentication BearerAuth required
|
|
31513
|
+
// http bearer authentication required
|
|
31514
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
31515
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
31516
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31517
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31518
|
+
return {
|
|
31519
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
31520
|
+
options: localVarRequestOptions,
|
|
31521
|
+
};
|
|
31522
|
+
}),
|
|
31523
|
+
/**
|
|
31524
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31525
|
+
* @summary List the secret names for an environment
|
|
31526
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31527
|
+
* @param {string} apiApplication The application ID
|
|
31528
|
+
* @param {string} apiEnvironment The environment ID
|
|
31529
|
+
* @param {*} [options] Override http request option.
|
|
31530
|
+
* @throws {RequiredError}
|
|
31531
|
+
*/
|
|
31532
|
+
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 = {}) {
|
|
31533
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31534
|
+
(0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation);
|
|
31535
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31536
|
+
(0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiApplication', apiApplication);
|
|
31537
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31538
|
+
(0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment);
|
|
31539
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
|
|
31540
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31541
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31542
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
|
|
31543
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31544
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31545
|
+
let baseOptions;
|
|
31546
|
+
if (configuration) {
|
|
31547
|
+
baseOptions = configuration.baseOptions;
|
|
31548
|
+
}
|
|
31549
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
31550
|
+
const localVarHeaderParameter = {};
|
|
31551
|
+
const localVarQueryParameter = {};
|
|
31552
|
+
// authentication BearerAuth required
|
|
31553
|
+
// http bearer authentication required
|
|
31554
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
31555
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
31556
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31557
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31558
|
+
return {
|
|
31559
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
31560
|
+
options: localVarRequestOptions,
|
|
31561
|
+
};
|
|
31562
|
+
}),
|
|
31563
|
+
/**
|
|
31564
|
+
* 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.
|
|
31565
|
+
* @summary Create or replace a secret
|
|
31566
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31567
|
+
* @param {string} apiApplication The application ID
|
|
31568
|
+
* @param {string} apiEnvironment The environment ID
|
|
31569
|
+
* @param {string} apiSecret The secret key
|
|
31570
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31571
|
+
* @param {*} [options] Override http request option.
|
|
31572
|
+
* @throws {RequiredError}
|
|
31573
|
+
*/
|
|
31574
|
+
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 = {}) {
|
|
31575
|
+
// verify required parameter 'apiOrganisation' is not null or undefined
|
|
31576
|
+
(0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation);
|
|
31577
|
+
// verify required parameter 'apiApplication' is not null or undefined
|
|
31578
|
+
(0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiApplication', apiApplication);
|
|
31579
|
+
// verify required parameter 'apiEnvironment' is not null or undefined
|
|
31580
|
+
(0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment);
|
|
31581
|
+
// verify required parameter 'apiSecret' is not null or undefined
|
|
31582
|
+
(0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiSecret', apiSecret);
|
|
31583
|
+
// verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
|
|
31584
|
+
(0, common_1.assertParamExists)('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest);
|
|
31585
|
+
const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
|
|
31586
|
+
.replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
|
|
31587
|
+
.replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
|
|
31588
|
+
.replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
|
|
31589
|
+
.replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
|
|
31590
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
31591
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
31592
|
+
let baseOptions;
|
|
31593
|
+
if (configuration) {
|
|
31594
|
+
baseOptions = configuration.baseOptions;
|
|
31595
|
+
}
|
|
31596
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
|
|
31597
|
+
const localVarHeaderParameter = {};
|
|
31598
|
+
const localVarQueryParameter = {};
|
|
31599
|
+
// authentication BearerAuth required
|
|
31600
|
+
// http bearer authentication required
|
|
31601
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
31602
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
31603
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
31604
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
31605
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
31606
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnvironmentSecretRequest, localVarRequestOptions, configuration);
|
|
31607
|
+
return {
|
|
31608
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
31609
|
+
options: localVarRequestOptions,
|
|
31610
|
+
};
|
|
31611
|
+
}),
|
|
31612
|
+
};
|
|
31613
|
+
};
|
|
31614
|
+
exports.SecretsApiAxiosParamCreator = SecretsApiAxiosParamCreator;
|
|
31615
|
+
/**
|
|
31616
|
+
* SecretsApi - functional programming interface
|
|
31617
|
+
* @export
|
|
31618
|
+
*/
|
|
31619
|
+
const SecretsApiFp = function (configuration) {
|
|
31620
|
+
const localVarAxiosParamCreator = (0, exports.SecretsApiAxiosParamCreator)(configuration);
|
|
31621
|
+
return {
|
|
31622
|
+
/**
|
|
31623
|
+
* 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.
|
|
31624
|
+
* @summary Delete a secret
|
|
31625
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31626
|
+
* @param {string} apiApplication The application ID
|
|
31627
|
+
* @param {string} apiEnvironment The environment ID
|
|
31628
|
+
* @param {string} apiSecret The secret key
|
|
31629
|
+
* @param {*} [options] Override http request option.
|
|
31630
|
+
* @throws {RequiredError}
|
|
31631
|
+
*/
|
|
31632
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31633
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31634
|
+
var _a, _b, _c;
|
|
31635
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
|
|
31636
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31637
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.deleteEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31638
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31639
|
+
});
|
|
31640
|
+
},
|
|
31641
|
+
/**
|
|
31642
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31643
|
+
* @summary List the secret names for an environment
|
|
31644
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31645
|
+
* @param {string} apiApplication The application ID
|
|
31646
|
+
* @param {string} apiEnvironment The environment ID
|
|
31647
|
+
* @param {*} [options] Override http request option.
|
|
31648
|
+
* @throws {RequiredError}
|
|
31649
|
+
*/
|
|
31650
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31651
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31652
|
+
var _a, _b, _c;
|
|
31653
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
|
|
31654
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31655
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.listEnvironmentSecrets']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31656
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31657
|
+
});
|
|
31658
|
+
},
|
|
31659
|
+
/**
|
|
31660
|
+
* 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.
|
|
31661
|
+
* @summary Create or replace a secret
|
|
31662
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31663
|
+
* @param {string} apiApplication The application ID
|
|
31664
|
+
* @param {string} apiEnvironment The environment ID
|
|
31665
|
+
* @param {string} apiSecret The secret key
|
|
31666
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31667
|
+
* @param {*} [options] Override http request option.
|
|
31668
|
+
* @throws {RequiredError}
|
|
31669
|
+
*/
|
|
31670
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31671
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
31672
|
+
var _a, _b, _c;
|
|
31673
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
|
|
31674
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
31675
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['SecretsApi.updateEnvironmentSecret']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
31676
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
31677
|
+
});
|
|
31678
|
+
},
|
|
31679
|
+
};
|
|
31680
|
+
};
|
|
31681
|
+
exports.SecretsApiFp = SecretsApiFp;
|
|
31682
|
+
/**
|
|
31683
|
+
* SecretsApi - factory interface
|
|
31684
|
+
* @export
|
|
31685
|
+
*/
|
|
31686
|
+
const SecretsApiFactory = function (configuration, basePath, axios) {
|
|
31687
|
+
const localVarFp = (0, exports.SecretsApiFp)(configuration);
|
|
31688
|
+
return {
|
|
31689
|
+
/**
|
|
31690
|
+
* 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.
|
|
31691
|
+
* @summary Delete a secret
|
|
31692
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31693
|
+
* @param {string} apiApplication The application ID
|
|
31694
|
+
* @param {string} apiEnvironment The environment ID
|
|
31695
|
+
* @param {string} apiSecret The secret key
|
|
31696
|
+
* @param {*} [options] Override http request option.
|
|
31697
|
+
* @throws {RequiredError}
|
|
31698
|
+
*/
|
|
31699
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31700
|
+
return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
|
|
31701
|
+
},
|
|
31702
|
+
/**
|
|
31703
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31704
|
+
* @summary List the secret names for an environment
|
|
31705
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31706
|
+
* @param {string} apiApplication The application ID
|
|
31707
|
+
* @param {string} apiEnvironment The environment ID
|
|
31708
|
+
* @param {*} [options] Override http request option.
|
|
31709
|
+
* @throws {RequiredError}
|
|
31710
|
+
*/
|
|
31711
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31712
|
+
return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
|
|
31713
|
+
},
|
|
31714
|
+
/**
|
|
31715
|
+
* 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.
|
|
31716
|
+
* @summary Create or replace a secret
|
|
31717
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31718
|
+
* @param {string} apiApplication The application ID
|
|
31719
|
+
* @param {string} apiEnvironment The environment ID
|
|
31720
|
+
* @param {string} apiSecret The secret key
|
|
31721
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31722
|
+
* @param {*} [options] Override http request option.
|
|
31723
|
+
* @throws {RequiredError}
|
|
31724
|
+
*/
|
|
31725
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31726
|
+
return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
|
|
31727
|
+
},
|
|
31728
|
+
};
|
|
31729
|
+
};
|
|
31730
|
+
exports.SecretsApiFactory = SecretsApiFactory;
|
|
31731
|
+
/**
|
|
31732
|
+
* SecretsApi - object-oriented interface
|
|
31733
|
+
* @export
|
|
31734
|
+
* @class SecretsApi
|
|
31735
|
+
* @extends {BaseAPI}
|
|
31736
|
+
*/
|
|
31737
|
+
class SecretsApi extends base_1.BaseAPI {
|
|
31738
|
+
/**
|
|
31739
|
+
* 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.
|
|
31740
|
+
* @summary Delete a secret
|
|
31741
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31742
|
+
* @param {string} apiApplication The application ID
|
|
31743
|
+
* @param {string} apiEnvironment The environment ID
|
|
31744
|
+
* @param {string} apiSecret The secret key
|
|
31745
|
+
* @param {*} [options] Override http request option.
|
|
31746
|
+
* @throws {RequiredError}
|
|
31747
|
+
* @memberof SecretsApi
|
|
31748
|
+
*/
|
|
31749
|
+
deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
|
|
31750
|
+
return (0, exports.SecretsApiFp)(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
|
|
31751
|
+
}
|
|
31752
|
+
/**
|
|
31753
|
+
* Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
|
|
31754
|
+
* @summary List the secret names for an environment
|
|
31755
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31756
|
+
* @param {string} apiApplication The application ID
|
|
31757
|
+
* @param {string} apiEnvironment The environment ID
|
|
31758
|
+
* @param {*} [options] Override http request option.
|
|
31759
|
+
* @throws {RequiredError}
|
|
31760
|
+
* @memberof SecretsApi
|
|
31761
|
+
*/
|
|
31762
|
+
listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
|
|
31763
|
+
return (0, exports.SecretsApiFp)(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
|
|
31764
|
+
}
|
|
31765
|
+
/**
|
|
31766
|
+
* 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.
|
|
31767
|
+
* @summary Create or replace a secret
|
|
31768
|
+
* @param {string} apiOrganisation The organisation ID
|
|
31769
|
+
* @param {string} apiApplication The application ID
|
|
31770
|
+
* @param {string} apiEnvironment The environment ID
|
|
31771
|
+
* @param {string} apiSecret The secret key
|
|
31772
|
+
* @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
|
|
31773
|
+
* @param {*} [options] Override http request option.
|
|
31774
|
+
* @throws {RequiredError}
|
|
31775
|
+
* @memberof SecretsApi
|
|
31776
|
+
*/
|
|
31777
|
+
updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
|
|
31778
|
+
return (0, exports.SecretsApiFp)(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
|
|
31779
|
+
}
|
|
31780
|
+
}
|
|
31781
|
+
exports.SecretsApi = SecretsApi;
|
|
30191
31782
|
/**
|
|
30192
31783
|
* SubscriptionApi - axios parameter creator
|
|
30193
31784
|
* @export
|