@quantcdn/quant-client 4.29.0 → 4.30.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/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.29.0
8
+ * The version of the OpenAPI document: 4.30.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.GetTask200ResponseStatusEnum = exports.GetSlackBotThread200ResponseContentTrustEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentFailureTypeEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.DecideToolProposalRequestScopeEnum = exports.DecideToolProposalRequestDecisionEnum = exports.DNSCreateRecordRequestTypeEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateTaskRequestStatusEnum = 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.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 = void 0;
26
- 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.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = exports.TokensCreateRequestExpiresInEnum = exports.SpotConfigurationStrategyEnum = exports.SetScalingPolicyRequestMetricEnum = exports.ResourceAttachmentAccessLevelEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PurgeOrgResourceRequestScopeEnum = exports.PurgeCreateRequestScopeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OrgResourceScopeEnum = exports.OrgResourceStatusEnum = exports.OrgResourceTypeEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletionsRequestReasoningEffortEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListSlackBotChannelMessages200ResponseContentTrustEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.IdleSleepResponseStateEnum = void 0;
27
- 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 = 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 = void 0;
28
- 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 = 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 = void 0;
29
- 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 = exports.AICustomToolsApiFp = exports.AICustomToolsApiAxiosParamCreator = 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 = void 0;
30
- 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 = 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 = void 0;
31
- 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 = 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 = void 0;
32
- 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 = 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 = 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.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = void 0;
25
+ exports.GetRestoreStatus200ResponseStatusEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = 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.CreateSlackBotRequestSetupTypeEnum = exports.CreateOrgResourceRequestTypeEnum = exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateFilterPolicyRequestRulesInnerMatchTypeEnum = exports.CreateFilterPolicyRequestRulesInnerApplyToEnum = exports.CreateFilterPolicyRequestRulesInnerActionEnum = exports.CreateCustomToolRequestResponseModeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.CreateAIAgentRequestGuardrailPresetEnum = 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.V2KvErrorCodeEnum = exports.V2KvEntryPutResponseStatusEnum = exports.V2KvEntryDeleteResponseStatusEnum = exports.V2KvArchiveStatusSourceEnum = exports.V2KvArchiveStatusStatusEnum = exports.V2KvArchivePurgeReceiptAlgorithmEnum = exports.V2KvArchivePurgeAnswerStateEnum = exports.V2KvArchivePurgeStateEnum = exports.V1TransitionStateEnum = exports.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = 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.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListSlackBotChannelMessages200ResponseContentTrustEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.IdleSleepResponseStateEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBotThread200ResponseContentTrustEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = void 0;
27
+ exports.V2KvUpgradeRequestActionEnum = exports.V2KvTransactOperationTypeEnum = exports.V2KvPageEnd = exports.V2KvLedgerVerifyShardReasonEnum = exports.V2KvLedgerVerificationReportReportTriggerEnum = exports.V2KvLedgerVerificationReportReportTypeEnum = exports.V2KvLedgerVerificationReportReportVEnum = exports.V2KvLedgerVerificationReportAlgorithmEnum = exports.V2KvLedgerSubjectEntriesRequestPersonalEnum = exports.V2KvLedgerSubjectEntriesSubjectStateEnum = 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 = void 0;
28
+ exports.V2RuleProxyRequestAsnEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2RuleHeaderRequestTrafficSourceIsNotEnum = exports.V2RuleHeaderRequestTrafficSourceIsEnum = exports.V2RuleHeaderRequestTrafficSourceEnum = exports.V2RuleHeaderRequestUaEnum = exports.V2RuleHeaderRequestAsnEnum = exports.V2RuleFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleFunctionRequestTrafficSourceIsEnum = exports.V2RuleFunctionRequestTrafficSourceEnum = 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 = void 0;
29
+ exports.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = exports.AIFilterPoliciesApiFp = exports.AIFilterPoliciesApiAxiosParamCreator = exports.AIFileStorageApi = exports.AIFileStorageApiFactory = exports.AIFileStorageApiFp = exports.AIFileStorageApiAxiosParamCreator = exports.AICustomToolsApi = exports.AICustomToolsApiFactory = 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 = void 0;
30
+ exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.AIToolApprovalApi = exports.AIToolApprovalApiFactory = exports.AIToolApprovalApiFp = 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 = void 0;
31
+ exports.CrawlersApi = exports.CrawlersApiFactory = exports.CrawlersApiFp = exports.CrawlersApiAxiosParamCreator = exports.CrawlerSchedulesApi = exports.CrawlerSchedulesApiFactory = exports.CrawlerSchedulesApiFp = exports.CrawlerSchedulesApiAxiosParamCreator = exports.ContainersApi = exports.ContainersApiFactory = 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 = void 0;
32
+ exports.ResourcesApi = exports.ResourcesApiFactory = exports.ResourcesApiFp = exports.ResourcesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = 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 = 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 = 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',
@@ -168,6 +178,13 @@ exports.CreateSlackBotRequestSetupTypeEnum = {
168
178
  Quant: 'quant',
169
179
  Byo: 'byo'
170
180
  };
181
+ exports.CreateSlackInteractionRequestResponseModeEnum = {
182
+ Single: 'single'
183
+ };
184
+ exports.CreateSlackInteractionRequestActionsInnerStyleEnum = {
185
+ Primary: 'primary',
186
+ Danger: 'danger'
187
+ };
171
188
  exports.CreateTaskRequestStatusEnum = {
172
189
  Pending: 'pending',
173
190
  InProgress: 'in_progress',
@@ -176,6 +193,15 @@ exports.CreateTaskRequestStatusEnum = {
176
193
  Cancelled: 'cancelled',
177
194
  Blocked: 'blocked'
178
195
  };
196
+ exports.CronLastRunStatusEnum = {
197
+ Pending: 'PENDING',
198
+ Running: 'RUNNING',
199
+ Succeeded: 'SUCCEEDED',
200
+ Failed: 'FAILED',
201
+ FailedToStart: 'FAILED_TO_START',
202
+ Expired: 'EXPIRED',
203
+ TimedOut: 'TIMED_OUT'
204
+ };
179
205
  exports.CronRunRunTypeEnum = {
180
206
  Exec: 'EXEC',
181
207
  Cron: 'CRON'
@@ -185,6 +211,8 @@ exports.CronRunStatusEnum = {
185
211
  Running: 'RUNNING',
186
212
  Succeeded: 'SUCCEEDED',
187
213
  Failed: 'FAILED',
214
+ FailedToStart: 'FAILED_TO_START',
215
+ Expired: 'EXPIRED',
188
216
  TimedOut: 'TIMED_OUT',
189
217
  Unknown: 'UNKNOWN'
190
218
  };
@@ -339,10 +367,13 @@ exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = {
339
367
  };
340
368
  exports.OrgResourceTypeEnum = {
341
369
  ObjectStorage: 'object-storage',
342
- Valkey: 'valkey'
370
+ Valkey: 'valkey',
371
+ CiRunnerPool: 'ci-runner-pool'
343
372
  };
344
373
  exports.OrgResourceStatusEnum = {
345
374
  Provisioning: 'provisioning',
375
+ Creating: 'creating',
376
+ Updating: 'updating',
346
377
  Available: 'available',
347
378
  Deleting: 'deleting',
348
379
  Error: 'error'
@@ -357,6 +388,13 @@ exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
357
388
  MixedSafe: 'mixed-safe',
358
389
  MixedAggressive: 'mixed-aggressive'
359
390
  };
391
+ exports.ProjectsDelete409ResponseCodeEnum = {
392
+ KvLedgerPresent: 'KV_LEDGER_PRESENT'
393
+ };
394
+ exports.ProjectsDelete503ResponseCodeEnum = {
395
+ KvStoresUnreadable: 'KV_STORES_UNREADABLE',
396
+ KvStoreDeleteFailed: 'KV_STORE_DELETE_FAILED'
397
+ };
360
398
  exports.PurgeCreateRequestScopeEnum = {
361
399
  Project: 'project',
362
400
  Org: 'org'
@@ -2099,6 +2137,754 @@ class AIAgentsApi extends base_1.BaseAPI {
2099
2137
  }
2100
2138
  }
2101
2139
  exports.AIAgentsApi = AIAgentsApi;
2140
+ /**
2141
+ * AIAuditApi - axios parameter creator
2142
+ * @export
2143
+ */
2144
+ const AIAuditApiAxiosParamCreator = function (configuration) {
2145
+ return {
2146
+ /**
2147
+ * 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.
2148
+ * @summary Export AI audit records as JSON Lines
2149
+ * @param {string} organisation The organisation machine name
2150
+ * @param {string} startDate
2151
+ * @param {string} endDate
2152
+ * @param {string} [userId]
2153
+ * @param {string} [modelId]
2154
+ * @param {string} [recordType]
2155
+ * @param {string} [decision]
2156
+ * @param {string} [tool]
2157
+ * @param {string} [outcome]
2158
+ * @param {*} [options] Override http request option.
2159
+ * @throws {RequiredError}
2160
+ */
2161
+ 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 = {}) {
2162
+ // verify required parameter 'organisation' is not null or undefined
2163
+ (0, common_1.assertParamExists)('aiAuditExport', 'organisation', organisation);
2164
+ // verify required parameter 'startDate' is not null or undefined
2165
+ (0, common_1.assertParamExists)('aiAuditExport', 'startDate', startDate);
2166
+ // verify required parameter 'endDate' is not null or undefined
2167
+ (0, common_1.assertParamExists)('aiAuditExport', 'endDate', endDate);
2168
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/export`
2169
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2170
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2171
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2172
+ let baseOptions;
2173
+ if (configuration) {
2174
+ baseOptions = configuration.baseOptions;
2175
+ }
2176
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2177
+ const localVarHeaderParameter = {};
2178
+ const localVarQueryParameter = {};
2179
+ // authentication BearerAuth required
2180
+ // http bearer authentication required
2181
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2182
+ if (startDate !== undefined) {
2183
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2184
+ startDate.toISOString().substring(0, 10) :
2185
+ startDate;
2186
+ }
2187
+ if (endDate !== undefined) {
2188
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2189
+ endDate.toISOString().substring(0, 10) :
2190
+ endDate;
2191
+ }
2192
+ if (userId !== undefined) {
2193
+ localVarQueryParameter['userId'] = userId;
2194
+ }
2195
+ if (modelId !== undefined) {
2196
+ localVarQueryParameter['modelId'] = modelId;
2197
+ }
2198
+ if (recordType !== undefined) {
2199
+ localVarQueryParameter['recordType'] = recordType;
2200
+ }
2201
+ if (decision !== undefined) {
2202
+ localVarQueryParameter['decision'] = decision;
2203
+ }
2204
+ if (tool !== undefined) {
2205
+ localVarQueryParameter['tool'] = tool;
2206
+ }
2207
+ if (outcome !== undefined) {
2208
+ localVarQueryParameter['outcome'] = outcome;
2209
+ }
2210
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2211
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2212
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2213
+ return {
2214
+ url: (0, common_1.toPathString)(localVarUrlObj),
2215
+ options: localVarRequestOptions,
2216
+ };
2217
+ }),
2218
+ /**
2219
+ * 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.
2220
+ * @summary List AI governance ledger entries
2221
+ * @param {string} organisation The organisation machine name
2222
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2223
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2224
+ * @param {number} [limit]
2225
+ * @param {string} [cursor] The next_cursor of the previous page.
2226
+ * @param {*} [options] Override http request option.
2227
+ * @throws {RequiredError}
2228
+ */
2229
+ 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 = {}) {
2230
+ // verify required parameter 'organisation' is not null or undefined
2231
+ (0, common_1.assertParamExists)('aiAuditLedgerEntries', 'organisation', organisation);
2232
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/entries`
2233
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2234
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2235
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2236
+ let baseOptions;
2237
+ if (configuration) {
2238
+ baseOptions = configuration.baseOptions;
2239
+ }
2240
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2241
+ const localVarHeaderParameter = {};
2242
+ const localVarQueryParameter = {};
2243
+ // authentication BearerAuth required
2244
+ // http bearer authentication required
2245
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2246
+ if (since !== undefined) {
2247
+ localVarQueryParameter['since'] = since;
2248
+ }
2249
+ if (until !== undefined) {
2250
+ localVarQueryParameter['until'] = until;
2251
+ }
2252
+ if (limit !== undefined) {
2253
+ localVarQueryParameter['limit'] = limit;
2254
+ }
2255
+ if (cursor !== undefined) {
2256
+ localVarQueryParameter['cursor'] = cursor;
2257
+ }
2258
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2259
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2260
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2261
+ return {
2262
+ url: (0, common_1.toPathString)(localVarUrlObj),
2263
+ options: localVarRequestOptions,
2264
+ };
2265
+ }),
2266
+ /**
2267
+ * 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.
2268
+ * @summary Get the inclusion proof of a governance ledger entry
2269
+ * @param {string} organisation The organisation machine name
2270
+ * @param {string} key
2271
+ * @param {*} [options] Override http request option.
2272
+ * @throws {RequiredError}
2273
+ */
2274
+ aiAuditLedgerProof: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
2275
+ // verify required parameter 'organisation' is not null or undefined
2276
+ (0, common_1.assertParamExists)('aiAuditLedgerProof', 'organisation', organisation);
2277
+ // verify required parameter 'key' is not null or undefined
2278
+ (0, common_1.assertParamExists)('aiAuditLedgerProof', 'key', key);
2279
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/proof`
2280
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2281
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2282
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2283
+ let baseOptions;
2284
+ if (configuration) {
2285
+ baseOptions = configuration.baseOptions;
2286
+ }
2287
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2288
+ const localVarHeaderParameter = {};
2289
+ const localVarQueryParameter = {};
2290
+ // authentication BearerAuth required
2291
+ // http bearer authentication required
2292
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2293
+ if (key !== undefined) {
2294
+ localVarQueryParameter['key'] = key;
2295
+ }
2296
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2297
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2298
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2299
+ return {
2300
+ url: (0, common_1.toPathString)(localVarUrlObj),
2301
+ options: localVarRequestOptions,
2302
+ };
2303
+ }),
2304
+ /**
2305
+ * 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.
2306
+ * @summary Get the governance ledger public key
2307
+ * @param {string} organisation The organisation machine name
2308
+ * @param {*} [options] Override http request option.
2309
+ * @throws {RequiredError}
2310
+ */
2311
+ aiAuditLedgerPublicKey: (organisation_1, ...args_1) => __awaiter(this, [organisation_1, ...args_1], void 0, function* (organisation, options = {}) {
2312
+ // verify required parameter 'organisation' is not null or undefined
2313
+ (0, common_1.assertParamExists)('aiAuditLedgerPublicKey', 'organisation', organisation);
2314
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger/public-key`
2315
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2316
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2317
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2318
+ let baseOptions;
2319
+ if (configuration) {
2320
+ baseOptions = configuration.baseOptions;
2321
+ }
2322
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2323
+ const localVarHeaderParameter = {};
2324
+ const localVarQueryParameter = {};
2325
+ // authentication BearerAuth required
2326
+ // http bearer authentication required
2327
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
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 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.
2338
+ * @summary Get the AI governance ledger status
2339
+ * @param {string} organisation The organisation machine name
2340
+ * @param {string} [cursor] The next_cursor of the previous page.
2341
+ * @param {*} [options] Override http request option.
2342
+ * @throws {RequiredError}
2343
+ */
2344
+ aiAuditLedgerStatus: (organisation_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, cursor_1, ...args_1], void 0, function* (organisation, cursor, options = {}) {
2345
+ // verify required parameter 'organisation' is not null or undefined
2346
+ (0, common_1.assertParamExists)('aiAuditLedgerStatus', 'organisation', organisation);
2347
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/ledger`
2348
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2349
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2350
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2351
+ let baseOptions;
2352
+ if (configuration) {
2353
+ baseOptions = configuration.baseOptions;
2354
+ }
2355
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2356
+ const localVarHeaderParameter = {};
2357
+ const localVarQueryParameter = {};
2358
+ // authentication BearerAuth required
2359
+ // http bearer authentication required
2360
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2361
+ if (cursor !== undefined) {
2362
+ localVarQueryParameter['cursor'] = cursor;
2363
+ }
2364
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2365
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2366
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2367
+ return {
2368
+ url: (0, common_1.toPathString)(localVarUrlObj),
2369
+ options: localVarRequestOptions,
2370
+ };
2371
+ }),
2372
+ /**
2373
+ * 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.
2374
+ * @summary Get one AI audit record
2375
+ * @param {string} organisation The organisation machine name
2376
+ * @param {string} key
2377
+ * @param {*} [options] Override http request option.
2378
+ * @throws {RequiredError}
2379
+ */
2380
+ aiAuditRecordGet: (organisation_1, key_1, ...args_1) => __awaiter(this, [organisation_1, key_1, ...args_1], void 0, function* (organisation, key, options = {}) {
2381
+ // verify required parameter 'organisation' is not null or undefined
2382
+ (0, common_1.assertParamExists)('aiAuditRecordGet', 'organisation', organisation);
2383
+ // verify required parameter 'key' is not null or undefined
2384
+ (0, common_1.assertParamExists)('aiAuditRecordGet', 'key', key);
2385
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/record`
2386
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2387
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2388
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2389
+ let baseOptions;
2390
+ if (configuration) {
2391
+ baseOptions = configuration.baseOptions;
2392
+ }
2393
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2394
+ const localVarHeaderParameter = {};
2395
+ const localVarQueryParameter = {};
2396
+ // authentication BearerAuth required
2397
+ // http bearer authentication required
2398
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2399
+ if (key !== undefined) {
2400
+ localVarQueryParameter['key'] = key;
2401
+ }
2402
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2403
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2404
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2405
+ return {
2406
+ url: (0, common_1.toPathString)(localVarUrlObj),
2407
+ options: localVarRequestOptions,
2408
+ };
2409
+ }),
2410
+ /**
2411
+ * 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.
2412
+ * @summary List AI audit records
2413
+ * @param {string} organisation The organisation machine name
2414
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2415
+ * @param {string} endDate Last UTC day (inclusive).
2416
+ * @param {string} [since] Record time from (inclusive).
2417
+ * @param {string} [until] Record time to (exclusive).
2418
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2419
+ * @param {string} [tokenId]
2420
+ * @param {string} [modelId]
2421
+ * @param {string} [recordType]
2422
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2423
+ * @param {string} [tool]
2424
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2425
+ * @param {string} [_interface]
2426
+ * @param {number} [limit]
2427
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2428
+ * @param {*} [options] Override http request option.
2429
+ * @throws {RequiredError}
2430
+ */
2431
+ 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 = {}) {
2432
+ // verify required parameter 'organisation' is not null or undefined
2433
+ (0, common_1.assertParamExists)('aiAuditRecordsList', 'organisation', organisation);
2434
+ // verify required parameter 'startDate' is not null or undefined
2435
+ (0, common_1.assertParamExists)('aiAuditRecordsList', 'startDate', startDate);
2436
+ // verify required parameter 'endDate' is not null or undefined
2437
+ (0, common_1.assertParamExists)('aiAuditRecordsList', 'endDate', endDate);
2438
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/audit/records`
2439
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)));
2440
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
2441
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
2442
+ let baseOptions;
2443
+ if (configuration) {
2444
+ baseOptions = configuration.baseOptions;
2445
+ }
2446
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
2447
+ const localVarHeaderParameter = {};
2448
+ const localVarQueryParameter = {};
2449
+ // authentication BearerAuth required
2450
+ // http bearer authentication required
2451
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
2452
+ if (startDate !== undefined) {
2453
+ localVarQueryParameter['startDate'] = (startDate instanceof Date) ?
2454
+ startDate.toISOString().substring(0, 10) :
2455
+ startDate;
2456
+ }
2457
+ if (endDate !== undefined) {
2458
+ localVarQueryParameter['endDate'] = (endDate instanceof Date) ?
2459
+ endDate.toISOString().substring(0, 10) :
2460
+ endDate;
2461
+ }
2462
+ if (since !== undefined) {
2463
+ localVarQueryParameter['since'] = (since instanceof Date) ?
2464
+ since.toISOString() :
2465
+ since;
2466
+ }
2467
+ if (until !== undefined) {
2468
+ localVarQueryParameter['until'] = (until instanceof Date) ?
2469
+ until.toISOString() :
2470
+ until;
2471
+ }
2472
+ if (userId !== undefined) {
2473
+ localVarQueryParameter['userId'] = userId;
2474
+ }
2475
+ if (tokenId !== undefined) {
2476
+ localVarQueryParameter['tokenId'] = tokenId;
2477
+ }
2478
+ if (modelId !== undefined) {
2479
+ localVarQueryParameter['modelId'] = modelId;
2480
+ }
2481
+ if (recordType !== undefined) {
2482
+ localVarQueryParameter['recordType'] = recordType;
2483
+ }
2484
+ if (decision !== undefined) {
2485
+ localVarQueryParameter['decision'] = decision;
2486
+ }
2487
+ if (tool !== undefined) {
2488
+ localVarQueryParameter['tool'] = tool;
2489
+ }
2490
+ if (outcome !== undefined) {
2491
+ localVarQueryParameter['outcome'] = outcome;
2492
+ }
2493
+ if (_interface !== undefined) {
2494
+ localVarQueryParameter['interface'] = _interface;
2495
+ }
2496
+ if (limit !== undefined) {
2497
+ localVarQueryParameter['limit'] = limit;
2498
+ }
2499
+ if (cursor !== undefined) {
2500
+ localVarQueryParameter['cursor'] = cursor;
2501
+ }
2502
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
2503
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
2504
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
2505
+ return {
2506
+ url: (0, common_1.toPathString)(localVarUrlObj),
2507
+ options: localVarRequestOptions,
2508
+ };
2509
+ }),
2510
+ };
2511
+ };
2512
+ exports.AIAuditApiAxiosParamCreator = AIAuditApiAxiosParamCreator;
2513
+ /**
2514
+ * AIAuditApi - functional programming interface
2515
+ * @export
2516
+ */
2517
+ const AIAuditApiFp = function (configuration) {
2518
+ const localVarAxiosParamCreator = (0, exports.AIAuditApiAxiosParamCreator)(configuration);
2519
+ return {
2520
+ /**
2521
+ * 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.
2522
+ * @summary Export AI audit records as JSON Lines
2523
+ * @param {string} organisation The organisation machine name
2524
+ * @param {string} startDate
2525
+ * @param {string} endDate
2526
+ * @param {string} [userId]
2527
+ * @param {string} [modelId]
2528
+ * @param {string} [recordType]
2529
+ * @param {string} [decision]
2530
+ * @param {string} [tool]
2531
+ * @param {string} [outcome]
2532
+ * @param {*} [options] Override http request option.
2533
+ * @throws {RequiredError}
2534
+ */
2535
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2536
+ return __awaiter(this, void 0, void 0, function* () {
2537
+ var _a, _b, _c;
2538
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options);
2539
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2540
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['AIAuditApi.aiAuditExport']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
2541
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2542
+ });
2543
+ },
2544
+ /**
2545
+ * 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.
2546
+ * @summary List AI governance ledger entries
2547
+ * @param {string} organisation The organisation machine name
2548
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2549
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2550
+ * @param {number} [limit]
2551
+ * @param {string} [cursor] The next_cursor of the previous page.
2552
+ * @param {*} [options] Override http request option.
2553
+ * @throws {RequiredError}
2554
+ */
2555
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2556
+ return __awaiter(this, void 0, void 0, function* () {
2557
+ var _a, _b, _c;
2558
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options);
2559
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2560
+ 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;
2561
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2562
+ });
2563
+ },
2564
+ /**
2565
+ * 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.
2566
+ * @summary Get the inclusion proof of a governance ledger entry
2567
+ * @param {string} organisation The organisation machine name
2568
+ * @param {string} key
2569
+ * @param {*} [options] Override http request option.
2570
+ * @throws {RequiredError}
2571
+ */
2572
+ aiAuditLedgerProof(organisation, key, options) {
2573
+ return __awaiter(this, void 0, void 0, function* () {
2574
+ var _a, _b, _c;
2575
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerProof(organisation, key, options);
2576
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2577
+ 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;
2578
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2579
+ });
2580
+ },
2581
+ /**
2582
+ * 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.
2583
+ * @summary Get the governance ledger public key
2584
+ * @param {string} organisation The organisation machine name
2585
+ * @param {*} [options] Override http request option.
2586
+ * @throws {RequiredError}
2587
+ */
2588
+ aiAuditLedgerPublicKey(organisation, options) {
2589
+ return __awaiter(this, void 0, void 0, function* () {
2590
+ var _a, _b, _c;
2591
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerPublicKey(organisation, options);
2592
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2593
+ 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;
2594
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2595
+ });
2596
+ },
2597
+ /**
2598
+ * 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.
2599
+ * @summary Get the AI governance ledger status
2600
+ * @param {string} organisation The organisation machine name
2601
+ * @param {string} [cursor] The next_cursor of the previous page.
2602
+ * @param {*} [options] Override http request option.
2603
+ * @throws {RequiredError}
2604
+ */
2605
+ aiAuditLedgerStatus(organisation, cursor, options) {
2606
+ return __awaiter(this, void 0, void 0, function* () {
2607
+ var _a, _b, _c;
2608
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditLedgerStatus(organisation, cursor, 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.aiAuditLedgerStatus']) === 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
+ * 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.
2616
+ * @summary Get one AI audit record
2617
+ * @param {string} organisation The organisation machine name
2618
+ * @param {string} key
2619
+ * @param {*} [options] Override http request option.
2620
+ * @throws {RequiredError}
2621
+ */
2622
+ aiAuditRecordGet(organisation, key, options) {
2623
+ return __awaiter(this, void 0, void 0, function* () {
2624
+ var _a, _b, _c;
2625
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordGet(organisation, key, options);
2626
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2627
+ 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;
2628
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2629
+ });
2630
+ },
2631
+ /**
2632
+ * 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.
2633
+ * @summary List AI audit records
2634
+ * @param {string} organisation The organisation machine name
2635
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2636
+ * @param {string} endDate Last UTC day (inclusive).
2637
+ * @param {string} [since] Record time from (inclusive).
2638
+ * @param {string} [until] Record time to (exclusive).
2639
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2640
+ * @param {string} [tokenId]
2641
+ * @param {string} [modelId]
2642
+ * @param {string} [recordType]
2643
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2644
+ * @param {string} [tool]
2645
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2646
+ * @param {string} [_interface]
2647
+ * @param {number} [limit]
2648
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2649
+ * @param {*} [options] Override http request option.
2650
+ * @throws {RequiredError}
2651
+ */
2652
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2653
+ return __awaiter(this, void 0, void 0, function* () {
2654
+ var _a, _b, _c;
2655
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options);
2656
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
2657
+ 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;
2658
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
2659
+ });
2660
+ },
2661
+ };
2662
+ };
2663
+ exports.AIAuditApiFp = AIAuditApiFp;
2664
+ /**
2665
+ * AIAuditApi - factory interface
2666
+ * @export
2667
+ */
2668
+ const AIAuditApiFactory = function (configuration, basePath, axios) {
2669
+ const localVarFp = (0, exports.AIAuditApiFp)(configuration);
2670
+ return {
2671
+ /**
2672
+ * 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.
2673
+ * @summary Export AI audit records as JSON Lines
2674
+ * @param {string} organisation The organisation machine name
2675
+ * @param {string} startDate
2676
+ * @param {string} endDate
2677
+ * @param {string} [userId]
2678
+ * @param {string} [modelId]
2679
+ * @param {string} [recordType]
2680
+ * @param {string} [decision]
2681
+ * @param {string} [tool]
2682
+ * @param {string} [outcome]
2683
+ * @param {*} [options] Override http request option.
2684
+ * @throws {RequiredError}
2685
+ */
2686
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2687
+ return localVarFp.aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(axios, basePath));
2688
+ },
2689
+ /**
2690
+ * 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.
2691
+ * @summary List AI governance ledger entries
2692
+ * @param {string} organisation The organisation machine name
2693
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2694
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2695
+ * @param {number} [limit]
2696
+ * @param {string} [cursor] The next_cursor of the previous page.
2697
+ * @param {*} [options] Override http request option.
2698
+ * @throws {RequiredError}
2699
+ */
2700
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2701
+ return localVarFp.aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(axios, basePath));
2702
+ },
2703
+ /**
2704
+ * 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.
2705
+ * @summary Get the inclusion proof of a governance ledger entry
2706
+ * @param {string} organisation The organisation machine name
2707
+ * @param {string} key
2708
+ * @param {*} [options] Override http request option.
2709
+ * @throws {RequiredError}
2710
+ */
2711
+ aiAuditLedgerProof(organisation, key, options) {
2712
+ return localVarFp.aiAuditLedgerProof(organisation, key, options).then((request) => request(axios, basePath));
2713
+ },
2714
+ /**
2715
+ * 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.
2716
+ * @summary Get the governance ledger public key
2717
+ * @param {string} organisation The organisation machine name
2718
+ * @param {*} [options] Override http request option.
2719
+ * @throws {RequiredError}
2720
+ */
2721
+ aiAuditLedgerPublicKey(organisation, options) {
2722
+ return localVarFp.aiAuditLedgerPublicKey(organisation, options).then((request) => request(axios, basePath));
2723
+ },
2724
+ /**
2725
+ * 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.
2726
+ * @summary Get the AI governance ledger status
2727
+ * @param {string} organisation The organisation machine name
2728
+ * @param {string} [cursor] The next_cursor of the previous page.
2729
+ * @param {*} [options] Override http request option.
2730
+ * @throws {RequiredError}
2731
+ */
2732
+ aiAuditLedgerStatus(organisation, cursor, options) {
2733
+ return localVarFp.aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(axios, basePath));
2734
+ },
2735
+ /**
2736
+ * 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.
2737
+ * @summary Get one AI audit record
2738
+ * @param {string} organisation The organisation machine name
2739
+ * @param {string} key
2740
+ * @param {*} [options] Override http request option.
2741
+ * @throws {RequiredError}
2742
+ */
2743
+ aiAuditRecordGet(organisation, key, options) {
2744
+ return localVarFp.aiAuditRecordGet(organisation, key, options).then((request) => request(axios, basePath));
2745
+ },
2746
+ /**
2747
+ * 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.
2748
+ * @summary List AI audit records
2749
+ * @param {string} organisation The organisation machine name
2750
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2751
+ * @param {string} endDate Last UTC day (inclusive).
2752
+ * @param {string} [since] Record time from (inclusive).
2753
+ * @param {string} [until] Record time to (exclusive).
2754
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2755
+ * @param {string} [tokenId]
2756
+ * @param {string} [modelId]
2757
+ * @param {string} [recordType]
2758
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2759
+ * @param {string} [tool]
2760
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2761
+ * @param {string} [_interface]
2762
+ * @param {number} [limit]
2763
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2764
+ * @param {*} [options] Override http request option.
2765
+ * @throws {RequiredError}
2766
+ */
2767
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2768
+ return localVarFp.aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options).then((request) => request(axios, basePath));
2769
+ },
2770
+ };
2771
+ };
2772
+ exports.AIAuditApiFactory = AIAuditApiFactory;
2773
+ /**
2774
+ * AIAuditApi - object-oriented interface
2775
+ * @export
2776
+ * @class AIAuditApi
2777
+ * @extends {BaseAPI}
2778
+ */
2779
+ class AIAuditApi extends base_1.BaseAPI {
2780
+ /**
2781
+ * 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.
2782
+ * @summary Export AI audit records as JSON Lines
2783
+ * @param {string} organisation The organisation machine name
2784
+ * @param {string} startDate
2785
+ * @param {string} endDate
2786
+ * @param {string} [userId]
2787
+ * @param {string} [modelId]
2788
+ * @param {string} [recordType]
2789
+ * @param {string} [decision]
2790
+ * @param {string} [tool]
2791
+ * @param {string} [outcome]
2792
+ * @param {*} [options] Override http request option.
2793
+ * @throws {RequiredError}
2794
+ * @memberof AIAuditApi
2795
+ */
2796
+ aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options) {
2797
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditExport(organisation, startDate, endDate, userId, modelId, recordType, decision, tool, outcome, options).then((request) => request(this.axios, this.basePath));
2798
+ }
2799
+ /**
2800
+ * 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.
2801
+ * @summary List AI governance ledger entries
2802
+ * @param {string} organisation The organisation machine name
2803
+ * @param {string} [since] Epoch milliseconds or ISO 8601 with a zone. Inclusive.
2804
+ * @param {string} [until] Epoch milliseconds or ISO 8601 with a zone. Exclusive.
2805
+ * @param {number} [limit]
2806
+ * @param {string} [cursor] The next_cursor of the previous page.
2807
+ * @param {*} [options] Override http request option.
2808
+ * @throws {RequiredError}
2809
+ * @memberof AIAuditApi
2810
+ */
2811
+ aiAuditLedgerEntries(organisation, since, until, limit, cursor, options) {
2812
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerEntries(organisation, since, until, limit, cursor, options).then((request) => request(this.axios, this.basePath));
2813
+ }
2814
+ /**
2815
+ * 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.
2816
+ * @summary Get the inclusion proof of a governance ledger entry
2817
+ * @param {string} organisation The organisation machine name
2818
+ * @param {string} key
2819
+ * @param {*} [options] Override http request option.
2820
+ * @throws {RequiredError}
2821
+ * @memberof AIAuditApi
2822
+ */
2823
+ aiAuditLedgerProof(organisation, key, options) {
2824
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerProof(organisation, key, options).then((request) => request(this.axios, this.basePath));
2825
+ }
2826
+ /**
2827
+ * 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.
2828
+ * @summary Get the governance ledger public key
2829
+ * @param {string} organisation The organisation machine name
2830
+ * @param {*} [options] Override http request option.
2831
+ * @throws {RequiredError}
2832
+ * @memberof AIAuditApi
2833
+ */
2834
+ aiAuditLedgerPublicKey(organisation, options) {
2835
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerPublicKey(organisation, options).then((request) => request(this.axios, this.basePath));
2836
+ }
2837
+ /**
2838
+ * 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.
2839
+ * @summary Get the AI governance ledger status
2840
+ * @param {string} organisation The organisation machine name
2841
+ * @param {string} [cursor] The next_cursor of the previous page.
2842
+ * @param {*} [options] Override http request option.
2843
+ * @throws {RequiredError}
2844
+ * @memberof AIAuditApi
2845
+ */
2846
+ aiAuditLedgerStatus(organisation, cursor, options) {
2847
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditLedgerStatus(organisation, cursor, options).then((request) => request(this.axios, this.basePath));
2848
+ }
2849
+ /**
2850
+ * 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.
2851
+ * @summary Get one AI audit record
2852
+ * @param {string} organisation The organisation machine name
2853
+ * @param {string} key
2854
+ * @param {*} [options] Override http request option.
2855
+ * @throws {RequiredError}
2856
+ * @memberof AIAuditApi
2857
+ */
2858
+ aiAuditRecordGet(organisation, key, options) {
2859
+ return (0, exports.AIAuditApiFp)(this.configuration).aiAuditRecordGet(organisation, key, options).then((request) => request(this.axios, this.basePath));
2860
+ }
2861
+ /**
2862
+ * 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.
2863
+ * @summary List AI audit records
2864
+ * @param {string} organisation The organisation machine name
2865
+ * @param {string} startDate First UTC day (inclusive). At most 31 days, not in the future, not older than 365 days.
2866
+ * @param {string} endDate Last UTC day (inclusive).
2867
+ * @param {string} [since] Record time from (inclusive).
2868
+ * @param {string} [until] Record time to (exclusive).
2869
+ * @param {string} [userId] Portal user id (also matches the requester, approver and reader of tool and access records).
2870
+ * @param {string} [tokenId]
2871
+ * @param {string} [modelId]
2872
+ * @param {string} [recordType]
2873
+ * @param {string} [decision] approved, rejected, expired, or denied (tool_denied).
2874
+ * @param {string} [tool]
2875
+ * @param {string} [outcome] outcome or status: succeeded, failed, blocked, ok, refused, error.
2876
+ * @param {string} [_interface]
2877
+ * @param {number} [limit]
2878
+ * @param {string} [cursor] nextCursor of the previous page (same organisation and range).
2879
+ * @param {*} [options] Override http request option.
2880
+ * @throws {RequiredError}
2881
+ * @memberof AIAuditApi
2882
+ */
2883
+ aiAuditRecordsList(organisation, startDate, endDate, since, until, userId, tokenId, modelId, recordType, decision, tool, outcome, _interface, limit, cursor, options) {
2884
+ 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));
2885
+ }
2886
+ }
2887
+ exports.AIAuditApi = AIAuditApi;
2102
2888
  /**
2103
2889
  * AICustomToolsApi - axios parameter creator
2104
2890
  * @export
@@ -5535,7 +6321,7 @@ const AISearchApiAxiosParamCreator = function (configuration) {
5535
6321
  };
5536
6322
  }),
5537
6323
  /**
5538
- *
6324
+ * 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
6325
  * @summary Get the most popular AI Search queries
5540
6326
  * @param {string} organisation
5541
6327
  * @param {string} project
@@ -5946,7 +6732,7 @@ const AISearchApiFp = function (configuration) {
5946
6732
  });
5947
6733
  },
5948
6734
  /**
5949
- *
6735
+ * 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
6736
  * @summary Get the most popular AI Search queries
5951
6737
  * @param {string} organisation
5952
6738
  * @param {string} project
@@ -6186,7 +6972,7 @@ const AISearchApiFactory = function (configuration, basePath, axios) {
6186
6972
  return localVarFp.aiSearchStatus(organisation, project, options).then((request) => request(axios, basePath));
6187
6973
  },
6188
6974
  /**
6189
- *
6975
+ * 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
6976
  * @summary Get the most popular AI Search queries
6191
6977
  * @param {string} organisation
6192
6978
  * @param {string} project
@@ -6415,7 +7201,7 @@ class AISearchApi extends base_1.BaseAPI {
6415
7201
  return (0, exports.AISearchApiFp)(this.configuration).aiSearchStatus(organisation, project, options).then((request) => request(this.axios, this.basePath));
6416
7202
  }
6417
7203
  /**
6418
- *
7204
+ * 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
7205
  * @summary Get the most popular AI Search queries
6420
7206
  * @param {string} organisation
6421
7207
  * @param {string} project
@@ -7904,6 +8690,46 @@ exports.AISkillsApi = AISkillsApi;
7904
8690
  */
7905
8691
  const AISlackBotsApiAxiosParamCreator = function (configuration) {
7906
8692
  return {
8693
+ /**
8694
+ *
8695
+ * @summary Cancel an unanswered Slack interaction
8696
+ * @param {string} organisation
8697
+ * @param {string} botId
8698
+ * @param {string} interactionId
8699
+ * @param {*} [options] Override http request option.
8700
+ * @throws {RequiredError}
8701
+ */
8702
+ 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 = {}) {
8703
+ // verify required parameter 'organisation' is not null or undefined
8704
+ (0, common_1.assertParamExists)('cancelSlackInteraction', 'organisation', organisation);
8705
+ // verify required parameter 'botId' is not null or undefined
8706
+ (0, common_1.assertParamExists)('cancelSlackInteraction', 'botId', botId);
8707
+ // verify required parameter 'interactionId' is not null or undefined
8708
+ (0, common_1.assertParamExists)('cancelSlackInteraction', 'interactionId', interactionId);
8709
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}/cancel`
8710
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8711
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
8712
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
8713
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8714
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8715
+ let baseOptions;
8716
+ if (configuration) {
8717
+ baseOptions = configuration.baseOptions;
8718
+ }
8719
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8720
+ const localVarHeaderParameter = {};
8721
+ const localVarQueryParameter = {};
8722
+ // authentication BearerAuth required
8723
+ // http bearer authentication required
8724
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8725
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8726
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8727
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8728
+ return {
8729
+ url: (0, common_1.toPathString)(localVarUrlObj),
8730
+ options: localVarRequestOptions,
8731
+ };
8732
+ }),
7907
8733
  /**
7908
8734
  * 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
8735
  * @summary Create Slack Bot
@@ -7941,6 +8767,53 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
7941
8767
  options: localVarRequestOptions,
7942
8768
  };
7943
8769
  }),
8770
+ /**
8771
+ * 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.
8772
+ * @summary Ask for a single Slack button response
8773
+ * @param {string} organisation
8774
+ * @param {string} botId
8775
+ * @param {string} idempotencyKey
8776
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
8777
+ * @param {*} [options] Override http request option.
8778
+ * @throws {RequiredError}
8779
+ */
8780
+ 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 = {}) {
8781
+ // verify required parameter 'organisation' is not null or undefined
8782
+ (0, common_1.assertParamExists)('createSlackInteraction', 'organisation', organisation);
8783
+ // verify required parameter 'botId' is not null or undefined
8784
+ (0, common_1.assertParamExists)('createSlackInteraction', 'botId', botId);
8785
+ // verify required parameter 'idempotencyKey' is not null or undefined
8786
+ (0, common_1.assertParamExists)('createSlackInteraction', 'idempotencyKey', idempotencyKey);
8787
+ // verify required parameter 'createSlackInteractionRequest' is not null or undefined
8788
+ (0, common_1.assertParamExists)('createSlackInteraction', 'createSlackInteractionRequest', createSlackInteractionRequest);
8789
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions`
8790
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8791
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
8792
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8793
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8794
+ let baseOptions;
8795
+ if (configuration) {
8796
+ baseOptions = configuration.baseOptions;
8797
+ }
8798
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
8799
+ const localVarHeaderParameter = {};
8800
+ const localVarQueryParameter = {};
8801
+ // authentication BearerAuth required
8802
+ // http bearer authentication required
8803
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8804
+ localVarHeaderParameter['Content-Type'] = 'application/json';
8805
+ if (idempotencyKey != null) {
8806
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
8807
+ }
8808
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8809
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8810
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8811
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(createSlackInteractionRequest, localVarRequestOptions, configuration);
8812
+ return {
8813
+ url: (0, common_1.toPathString)(localVarUrlObj),
8814
+ options: localVarRequestOptions,
8815
+ };
8816
+ }),
7944
8817
  /**
7945
8818
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
7946
8819
  * @summary Delete Slack Bot
@@ -8069,6 +8942,46 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
8069
8942
  options: localVarRequestOptions,
8070
8943
  };
8071
8944
  }),
8945
+ /**
8946
+ * 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.
8947
+ * @summary Read an external Slack interaction
8948
+ * @param {string} organisation
8949
+ * @param {string} botId
8950
+ * @param {string} interactionId
8951
+ * @param {*} [options] Override http request option.
8952
+ * @throws {RequiredError}
8953
+ */
8954
+ 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 = {}) {
8955
+ // verify required parameter 'organisation' is not null or undefined
8956
+ (0, common_1.assertParamExists)('getSlackInteraction', 'organisation', organisation);
8957
+ // verify required parameter 'botId' is not null or undefined
8958
+ (0, common_1.assertParamExists)('getSlackInteraction', 'botId', botId);
8959
+ // verify required parameter 'interactionId' is not null or undefined
8960
+ (0, common_1.assertParamExists)('getSlackInteraction', 'interactionId', interactionId);
8961
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/interactions/{interactionId}`
8962
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
8963
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)))
8964
+ .replace(`{${"interactionId"}}`, encodeURIComponent(String(interactionId)));
8965
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
8966
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
8967
+ let baseOptions;
8968
+ if (configuration) {
8969
+ baseOptions = configuration.baseOptions;
8970
+ }
8971
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
8972
+ const localVarHeaderParameter = {};
8973
+ const localVarQueryParameter = {};
8974
+ // authentication BearerAuth required
8975
+ // http bearer authentication required
8976
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
8977
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
8978
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
8979
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
8980
+ return {
8981
+ url: (0, common_1.toPathString)(localVarUrlObj),
8982
+ options: localVarRequestOptions,
8983
+ };
8984
+ }),
8072
8985
  /**
8073
8986
  * 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
8987
  * @summary Read recent channel messages
@@ -8185,6 +9098,51 @@ const AISlackBotsApiAxiosParamCreator = function (configuration) {
8185
9098
  options: localVarRequestOptions,
8186
9099
  };
8187
9100
  }),
9101
+ /**
9102
+ * 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.
9103
+ * @summary Post an image as the bot
9104
+ * @param {string} organisation The organisation machine name
9105
+ * @param {string} botId
9106
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9107
+ * @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.
9108
+ * @param {*} [options] Override http request option.
9109
+ * @throws {RequiredError}
9110
+ */
9111
+ 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 = {}) {
9112
+ // verify required parameter 'organisation' is not null or undefined
9113
+ (0, common_1.assertParamExists)('postSlackBotFile', 'organisation', organisation);
9114
+ // verify required parameter 'botId' is not null or undefined
9115
+ (0, common_1.assertParamExists)('postSlackBotFile', 'botId', botId);
9116
+ // verify required parameter 'postSlackBotFileRequest' is not null or undefined
9117
+ (0, common_1.assertParamExists)('postSlackBotFile', 'postSlackBotFileRequest', postSlackBotFileRequest);
9118
+ const localVarPath = `/api/v3/organizations/{organisation}/ai/slack-bots/{botId}/files`
9119
+ .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
9120
+ .replace(`{${"botId"}}`, encodeURIComponent(String(botId)));
9121
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
9122
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
9123
+ let baseOptions;
9124
+ if (configuration) {
9125
+ baseOptions = configuration.baseOptions;
9126
+ }
9127
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
9128
+ const localVarHeaderParameter = {};
9129
+ const localVarQueryParameter = {};
9130
+ // authentication BearerAuth required
9131
+ // http bearer authentication required
9132
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
9133
+ localVarHeaderParameter['Content-Type'] = 'application/json';
9134
+ if (idempotencyKey != null) {
9135
+ localVarHeaderParameter['Idempotency-Key'] = String(idempotencyKey);
9136
+ }
9137
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
9138
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
9139
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
9140
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(postSlackBotFileRequest, localVarRequestOptions, configuration);
9141
+ return {
9142
+ url: (0, common_1.toPathString)(localVarUrlObj),
9143
+ options: localVarRequestOptions,
9144
+ };
9145
+ }),
8188
9146
  /**
8189
9147
  * 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
9148
  * @summary Post a message as the bot
@@ -8361,6 +9319,24 @@ exports.AISlackBotsApiAxiosParamCreator = AISlackBotsApiAxiosParamCreator;
8361
9319
  const AISlackBotsApiFp = function (configuration) {
8362
9320
  const localVarAxiosParamCreator = (0, exports.AISlackBotsApiAxiosParamCreator)(configuration);
8363
9321
  return {
9322
+ /**
9323
+ *
9324
+ * @summary Cancel an unanswered Slack interaction
9325
+ * @param {string} organisation
9326
+ * @param {string} botId
9327
+ * @param {string} interactionId
9328
+ * @param {*} [options] Override http request option.
9329
+ * @throws {RequiredError}
9330
+ */
9331
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9332
+ return __awaiter(this, void 0, void 0, function* () {
9333
+ var _a, _b, _c;
9334
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.cancelSlackInteraction(organisation, botId, interactionId, options);
9335
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9336
+ 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;
9337
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9338
+ });
9339
+ },
8364
9340
  /**
8365
9341
  * 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
9342
  * @summary Create Slack Bot
@@ -8378,6 +9354,25 @@ const AISlackBotsApiFp = function (configuration) {
8378
9354
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8379
9355
  });
8380
9356
  },
9357
+ /**
9358
+ * 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.
9359
+ * @summary Ask for a single Slack button response
9360
+ * @param {string} organisation
9361
+ * @param {string} botId
9362
+ * @param {string} idempotencyKey
9363
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9364
+ * @param {*} [options] Override http request option.
9365
+ * @throws {RequiredError}
9366
+ */
9367
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9368
+ return __awaiter(this, void 0, void 0, function* () {
9369
+ var _a, _b, _c;
9370
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options);
9371
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9372
+ 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;
9373
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9374
+ });
9375
+ },
8381
9376
  /**
8382
9377
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8383
9378
  * @summary Delete Slack Bot
@@ -8434,6 +9429,24 @@ const AISlackBotsApiFp = function (configuration) {
8434
9429
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8435
9430
  });
8436
9431
  },
9432
+ /**
9433
+ * 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.
9434
+ * @summary Read an external Slack interaction
9435
+ * @param {string} organisation
9436
+ * @param {string} botId
9437
+ * @param {string} interactionId
9438
+ * @param {*} [options] Override http request option.
9439
+ * @throws {RequiredError}
9440
+ */
9441
+ getSlackInteraction(organisation, botId, interactionId, options) {
9442
+ return __awaiter(this, void 0, void 0, function* () {
9443
+ var _a, _b, _c;
9444
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getSlackInteraction(organisation, botId, interactionId, options);
9445
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9446
+ 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;
9447
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9448
+ });
9449
+ },
8437
9450
  /**
8438
9451
  * 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
9452
  * @summary Read recent channel messages
@@ -8487,6 +9500,25 @@ const AISlackBotsApiFp = function (configuration) {
8487
9500
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
8488
9501
  });
8489
9502
  },
9503
+ /**
9504
+ * 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.
9505
+ * @summary Post an image as the bot
9506
+ * @param {string} organisation The organisation machine name
9507
+ * @param {string} botId
9508
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9509
+ * @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.
9510
+ * @param {*} [options] Override http request option.
9511
+ * @throws {RequiredError}
9512
+ */
9513
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9514
+ return __awaiter(this, void 0, void 0, function* () {
9515
+ var _a, _b, _c;
9516
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options);
9517
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
9518
+ 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;
9519
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
9520
+ });
9521
+ },
8490
9522
  /**
8491
9523
  * 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
9524
  * @summary Post a message as the bot
@@ -8570,6 +9602,18 @@ exports.AISlackBotsApiFp = AISlackBotsApiFp;
8570
9602
  const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8571
9603
  const localVarFp = (0, exports.AISlackBotsApiFp)(configuration);
8572
9604
  return {
9605
+ /**
9606
+ *
9607
+ * @summary Cancel an unanswered Slack interaction
9608
+ * @param {string} organisation
9609
+ * @param {string} botId
9610
+ * @param {string} interactionId
9611
+ * @param {*} [options] Override http request option.
9612
+ * @throws {RequiredError}
9613
+ */
9614
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9615
+ return localVarFp.cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
9616
+ },
8573
9617
  /**
8574
9618
  * 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
9619
  * @summary Create Slack Bot
@@ -8581,6 +9625,19 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8581
9625
  createSlackBot(organisation, createSlackBotRequest, options) {
8582
9626
  return localVarFp.createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(axios, basePath));
8583
9627
  },
9628
+ /**
9629
+ * 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.
9630
+ * @summary Ask for a single Slack button response
9631
+ * @param {string} organisation
9632
+ * @param {string} botId
9633
+ * @param {string} idempotencyKey
9634
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9635
+ * @param {*} [options] Override http request option.
9636
+ * @throws {RequiredError}
9637
+ */
9638
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9639
+ return localVarFp.createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(axios, basePath));
9640
+ },
8584
9641
  /**
8585
9642
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8586
9643
  * @summary Delete Slack Bot
@@ -8619,6 +9676,18 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8619
9676
  getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
8620
9677
  return localVarFp.getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(axios, basePath));
8621
9678
  },
9679
+ /**
9680
+ * 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.
9681
+ * @summary Read an external Slack interaction
9682
+ * @param {string} organisation
9683
+ * @param {string} botId
9684
+ * @param {string} interactionId
9685
+ * @param {*} [options] Override http request option.
9686
+ * @throws {RequiredError}
9687
+ */
9688
+ getSlackInteraction(organisation, botId, interactionId, options) {
9689
+ return localVarFp.getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(axios, basePath));
9690
+ },
8622
9691
  /**
8623
9692
  * 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
9693
  * @summary Read recent channel messages
@@ -8654,6 +9723,19 @@ const AISlackBotsApiFactory = function (configuration, basePath, axios) {
8654
9723
  listSlackBotsApiEnabled(organisation, options) {
8655
9724
  return localVarFp.listSlackBotsApiEnabled(organisation, options).then((request) => request(axios, basePath));
8656
9725
  },
9726
+ /**
9727
+ * 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.
9728
+ * @summary Post an image as the bot
9729
+ * @param {string} organisation The organisation machine name
9730
+ * @param {string} botId
9731
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9732
+ * @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.
9733
+ * @param {*} [options] Override http request option.
9734
+ * @throws {RequiredError}
9735
+ */
9736
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9737
+ return localVarFp.postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(axios, basePath));
9738
+ },
8657
9739
  /**
8658
9740
  * 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
9741
  * @summary Post a message as the bot
@@ -8713,6 +9795,19 @@ exports.AISlackBotsApiFactory = AISlackBotsApiFactory;
8713
9795
  * @extends {BaseAPI}
8714
9796
  */
8715
9797
  class AISlackBotsApi extends base_1.BaseAPI {
9798
+ /**
9799
+ *
9800
+ * @summary Cancel an unanswered Slack interaction
9801
+ * @param {string} organisation
9802
+ * @param {string} botId
9803
+ * @param {string} interactionId
9804
+ * @param {*} [options] Override http request option.
9805
+ * @throws {RequiredError}
9806
+ * @memberof AISlackBotsApi
9807
+ */
9808
+ cancelSlackInteraction(organisation, botId, interactionId, options) {
9809
+ return (0, exports.AISlackBotsApiFp)(this.configuration).cancelSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
9810
+ }
8716
9811
  /**
8717
9812
  * 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
9813
  * @summary Create Slack Bot
@@ -8725,6 +9820,20 @@ class AISlackBotsApi extends base_1.BaseAPI {
8725
9820
  createSlackBot(organisation, createSlackBotRequest, options) {
8726
9821
  return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackBot(organisation, createSlackBotRequest, options).then((request) => request(this.axios, this.basePath));
8727
9822
  }
9823
+ /**
9824
+ * 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.
9825
+ * @summary Ask for a single Slack button response
9826
+ * @param {string} organisation
9827
+ * @param {string} botId
9828
+ * @param {string} idempotencyKey
9829
+ * @param {CreateSlackInteractionRequest} createSlackInteractionRequest
9830
+ * @param {*} [options] Override http request option.
9831
+ * @throws {RequiredError}
9832
+ * @memberof AISlackBotsApi
9833
+ */
9834
+ createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options) {
9835
+ return (0, exports.AISlackBotsApiFp)(this.configuration).createSlackInteraction(organisation, botId, idempotencyKey, createSlackInteractionRequest, options).then((request) => request(this.axios, this.basePath));
9836
+ }
8728
9837
  /**
8729
9838
  * Permanently deletes a Slack bot, disconnects it from the workspace, and deletes its backing AI agent.
8730
9839
  * @summary Delete Slack Bot
@@ -8766,6 +9875,19 @@ class AISlackBotsApi extends base_1.BaseAPI {
8766
9875
  getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options) {
8767
9876
  return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackBotThread(organisation, botId, channel, threadTs, since, limit, cursor, options).then((request) => request(this.axios, this.basePath));
8768
9877
  }
9878
+ /**
9879
+ * 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.
9880
+ * @summary Read an external Slack interaction
9881
+ * @param {string} organisation
9882
+ * @param {string} botId
9883
+ * @param {string} interactionId
9884
+ * @param {*} [options] Override http request option.
9885
+ * @throws {RequiredError}
9886
+ * @memberof AISlackBotsApi
9887
+ */
9888
+ getSlackInteraction(organisation, botId, interactionId, options) {
9889
+ return (0, exports.AISlackBotsApiFp)(this.configuration).getSlackInteraction(organisation, botId, interactionId, options).then((request) => request(this.axios, this.basePath));
9890
+ }
8769
9891
  /**
8770
9892
  * 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
9893
  * @summary Read recent channel messages
@@ -8804,6 +9926,20 @@ class AISlackBotsApi extends base_1.BaseAPI {
8804
9926
  listSlackBotsApiEnabled(organisation, options) {
8805
9927
  return (0, exports.AISlackBotsApiFp)(this.configuration).listSlackBotsApiEnabled(organisation, options).then((request) => request(this.axios, this.basePath));
8806
9928
  }
9929
+ /**
9930
+ * 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.
9931
+ * @summary Post an image as the bot
9932
+ * @param {string} organisation The organisation machine name
9933
+ * @param {string} botId
9934
+ * @param {PostSlackBotFileRequest} postSlackBotFileRequest
9935
+ * @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.
9936
+ * @param {*} [options] Override http request option.
9937
+ * @throws {RequiredError}
9938
+ * @memberof AISlackBotsApi
9939
+ */
9940
+ postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options) {
9941
+ return (0, exports.AISlackBotsApiFp)(this.configuration).postSlackBotFile(organisation, botId, postSlackBotFileRequest, idempotencyKey, options).then((request) => request(this.axios, this.basePath));
9942
+ }
8807
9943
  /**
8808
9944
  * 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
9945
  * @summary Post a message as the bot
@@ -17932,7 +19068,7 @@ const KVApiAxiosParamCreator = function (configuration) {
17932
19068
  };
17933
19069
  }),
17934
19070
  /**
17935
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
19071
+ * 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
19072
  * @summary Set a key, optionally only if absent or only at a version
17937
19073
  * @param {string} organization Organization identifier
17938
19074
  * @param {string} project Project identifier
@@ -20375,7 +21511,7 @@ const KVApiFp = function (configuration) {
20375
21511
  });
20376
21512
  },
20377
21513
  /**
20378
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
21514
+ * 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
21515
  * @summary Set a key, optionally only if absent or only at a version
20380
21516
  * @param {string} organization Organization identifier
20381
21517
  * @param {string} project Project identifier
@@ -21443,7 +22579,7 @@ const KVApiFactory = function (configuration, basePath, axios) {
21443
22579
  return localVarFp.kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(axios, basePath));
21444
22580
  },
21445
22581
  /**
21446
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
22582
+ * 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
22583
  * @summary Set a key, optionally only if absent or only at a version
21448
22584
  * @param {string} organization Organization identifier
21449
22585
  * @param {string} project Project identifier
@@ -22232,7 +23368,7 @@ class KVApi extends base_1.BaseAPI {
22232
23368
  return (0, exports.KVApiFp)(this.configuration).kVEntriesDelete(organization, project, storeId, key, ifVersion, options).then((request) => request(this.axios, this.basePath));
22233
23369
  }
22234
23370
  /**
22235
- * value is any JSON value ({} stays an object). secret encrypts the value with KMS (lists show [ENCRYPTED]). ttl is 60 to 31,536,000 seconds; a write without ttl removes any expiry. Format 2 conditions: ifAbsent (201 on success) or ifVersion. A failed condition is 409 CONFLICT with reason and currentVersion. In a collection with a unique index, 409 UNIQUE_VIOLATION names index and existingKey. A ledger key is 400 LEDGER_IMMUTABLE. Not retried: a lost connection is 503 UNAVAILABLE with retryable false (the outcome is unknown; read the key before you write again).
23371
+ * 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
23372
  * @summary Set a key, optionally only if absent or only at a version
22237
23373
  * @param {string} organization Organization identifier
22238
23374
  * @param {string} project Project identifier
@@ -23433,7 +24569,7 @@ exports.OrganizationsApi = OrganizationsApi;
23433
24569
  const ProjectsApiAxiosParamCreator = function (configuration) {
23434
24570
  return {
23435
24571
  /**
23436
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24572
+ * 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
24573
  * @summary Get CDN access logs for a project
23438
24574
  * @param {string} organization The organization machine name
23439
24575
  * @param {string} project The project machine name
@@ -23691,7 +24827,7 @@ const ProjectsApiFp = function (configuration) {
23691
24827
  const localVarAxiosParamCreator = (0, exports.ProjectsApiAxiosParamCreator)(configuration);
23692
24828
  return {
23693
24829
  /**
23694
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24830
+ * 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
24831
  * @summary Get CDN access logs for a project
23696
24832
  * @param {string} organization The organization machine name
23697
24833
  * @param {string} project The project machine name
@@ -23810,7 +24946,7 @@ const ProjectsApiFactory = function (configuration, basePath, axios) {
23810
24946
  const localVarFp = (0, exports.ProjectsApiFp)(configuration);
23811
24947
  return {
23812
24948
  /**
23813
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
24949
+ * 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
24950
  * @summary Get CDN access logs for a project
23815
24951
  * @param {string} organization The organization machine name
23816
24952
  * @param {string} project The project machine name
@@ -23893,7 +25029,7 @@ exports.ProjectsApiFactory = ProjectsApiFactory;
23893
25029
  */
23894
25030
  class ProjectsApi extends base_1.BaseAPI {
23895
25031
  /**
23896
- * Retrieves CDN access log entries for a QuantGov Cloud project. Results are always scoped to the project; the optional filter can only narrow them. Entries are returned oldest first; pass nextToken from the previous response to fetch the next page. Logs are retained for 30 days.
25032
+ * 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
25033
  * @summary Get CDN access logs for a project
23898
25034
  * @param {string} organization The organization machine name
23899
25035
  * @param {string} project The project machine name
@@ -26683,36 +27819,72 @@ const RulesApiAxiosParamCreator = function (configuration) {
26683
27819
  * @param {*} [options] Override http request option.
26684
27820
  * @throws {RequiredError}
26685
27821
  */
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 = {}) {
27822
+ 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 = {}) {
27823
+ // verify required parameter 'organization' is not null or undefined
27824
+ (0, common_1.assertParamExists)('rulesHeadersUpdate', 'organization', organization);
27825
+ // verify required parameter 'project' is not null or undefined
27826
+ (0, common_1.assertParamExists)('rulesHeadersUpdate', 'project', project);
27827
+ // verify required parameter 'rule' is not null or undefined
27828
+ (0, common_1.assertParamExists)('rulesHeadersUpdate', 'rule', rule);
27829
+ // verify required parameter 'v2RuleHeaderRequest' is not null or undefined
27830
+ (0, common_1.assertParamExists)('rulesHeadersUpdate', 'v2RuleHeaderRequest', v2RuleHeaderRequest);
27831
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules/headers/{rule}`
27832
+ .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
27833
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)))
27834
+ .replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
27835
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
27836
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
27837
+ let baseOptions;
27838
+ if (configuration) {
27839
+ baseOptions = configuration.baseOptions;
27840
+ }
27841
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
27842
+ const localVarHeaderParameter = {};
27843
+ const localVarQueryParameter = {};
27844
+ // authentication BearerAuth required
27845
+ // http bearer authentication required
27846
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
27847
+ localVarHeaderParameter['Content-Type'] = 'application/json';
27848
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
27849
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
27850
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
27851
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2RuleHeaderRequest, localVarRequestOptions, configuration);
27852
+ return {
27853
+ url: (0, common_1.toPathString)(localVarUrlObj),
27854
+ options: localVarRequestOptions,
27855
+ };
27856
+ }),
27857
+ /**
27858
+ * 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.
27859
+ * @summary List all rules in edge order
27860
+ * @param {string} organization
27861
+ * @param {string} project
27862
+ * @param {*} [options] Override http request option.
27863
+ * @throws {RequiredError}
27864
+ */
27865
+ rulesIndexList: (organization_1, project_1, ...args_1) => __awaiter(this, [organization_1, project_1, ...args_1], void 0, function* (organization, project, options = {}) {
26687
27866
  // verify required parameter 'organization' is not null or undefined
26688
- (0, common_1.assertParamExists)('rulesHeadersUpdate', 'organization', organization);
27867
+ (0, common_1.assertParamExists)('rulesIndexList', 'organization', organization);
26689
27868
  // verify required parameter 'project' is not null or undefined
26690
- (0, common_1.assertParamExists)('rulesHeadersUpdate', 'project', project);
26691
- // verify required parameter 'rule' is not null or undefined
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}`
27869
+ (0, common_1.assertParamExists)('rulesIndexList', 'project', project);
27870
+ const localVarPath = `/api/v2/organizations/{organization}/projects/{project}/rules`
26696
27871
  .replace(`{${"organization"}}`, encodeURIComponent(String(organization)))
26697
- .replace(`{${"project"}}`, encodeURIComponent(String(project)))
26698
- .replace(`{${"rule"}}`, encodeURIComponent(String(rule)));
27872
+ .replace(`{${"project"}}`, encodeURIComponent(String(project)));
26699
27873
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
26700
27874
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
26701
27875
  let baseOptions;
26702
27876
  if (configuration) {
26703
27877
  baseOptions = configuration.baseOptions;
26704
27878
  }
26705
- const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
27879
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
26706
27880
  const localVarHeaderParameter = {};
26707
27881
  const localVarQueryParameter = {};
26708
27882
  // authentication BearerAuth required
26709
27883
  // http bearer authentication required
26710
27884
  yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
26711
- localVarHeaderParameter['Content-Type'] = 'application/json';
26712
27885
  (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
26713
27886
  let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
26714
27887
  localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
26715
- localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(v2RuleHeaderRequest, localVarRequestOptions, configuration);
26716
27888
  return {
26717
27889
  url: (0, common_1.toPathString)(localVarUrlObj),
26718
27890
  options: localVarRequestOptions,
@@ -28054,6 +29226,23 @@ const RulesApiFp = function (configuration) {
28054
29226
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
28055
29227
  });
28056
29228
  },
29229
+ /**
29230
+ * 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.
29231
+ * @summary List all rules in edge order
29232
+ * @param {string} organization
29233
+ * @param {string} project
29234
+ * @param {*} [options] Override http request option.
29235
+ * @throws {RequiredError}
29236
+ */
29237
+ rulesIndexList(organization, project, options) {
29238
+ return __awaiter(this, void 0, void 0, function* () {
29239
+ var _a, _b, _c;
29240
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.rulesIndexList(organization, project, options);
29241
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
29242
+ 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;
29243
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
29244
+ });
29245
+ },
28057
29246
  /**
28058
29247
  *
28059
29248
  * @summary Create a proxy rule
@@ -28814,6 +30003,17 @@ const RulesApiFactory = function (configuration, basePath, axios) {
28814
30003
  rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
28815
30004
  return localVarFp.rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(axios, basePath));
28816
30005
  },
30006
+ /**
30007
+ * 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.
30008
+ * @summary List all rules in edge order
30009
+ * @param {string} organization
30010
+ * @param {string} project
30011
+ * @param {*} [options] Override http request option.
30012
+ * @throws {RequiredError}
30013
+ */
30014
+ rulesIndexList(organization, project, options) {
30015
+ return localVarFp.rulesIndexList(organization, project, options).then((request) => request(axios, basePath));
30016
+ },
28817
30017
  /**
28818
30018
  *
28819
30019
  * @summary Create a proxy rule
@@ -29524,6 +30724,18 @@ class RulesApi extends base_1.BaseAPI {
29524
30724
  rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options) {
29525
30725
  return (0, exports.RulesApiFp)(this.configuration).rulesHeadersUpdate(organization, project, rule, v2RuleHeaderRequest, options).then((request) => request(this.axios, this.basePath));
29526
30726
  }
30727
+ /**
30728
+ * 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.
30729
+ * @summary List all rules in edge order
30730
+ * @param {string} organization
30731
+ * @param {string} project
30732
+ * @param {*} [options] Override http request option.
30733
+ * @throws {RequiredError}
30734
+ * @memberof RulesApi
30735
+ */
30736
+ rulesIndexList(organization, project, options) {
30737
+ return (0, exports.RulesApiFp)(this.configuration).rulesIndexList(organization, project, options).then((request) => request(this.axios, this.basePath));
30738
+ }
29527
30739
  /**
29528
30740
  *
29529
30741
  * @summary Create a proxy rule
@@ -30188,6 +31400,315 @@ exports.ListScalingPoliciesMetricEnum = {
30188
31400
  MemoryUtilization: 'MemoryUtilization',
30189
31401
  Rps: 'RPS'
30190
31402
  };
31403
+ /**
31404
+ * SecretsApi - axios parameter creator
31405
+ * @export
31406
+ */
31407
+ const SecretsApiAxiosParamCreator = function (configuration) {
31408
+ return {
31409
+ /**
31410
+ * 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.
31411
+ * @summary Delete a secret
31412
+ * @param {string} apiOrganisation The organisation ID
31413
+ * @param {string} apiApplication The application ID
31414
+ * @param {string} apiEnvironment The environment ID
31415
+ * @param {string} apiSecret The secret key
31416
+ * @param {*} [options] Override http request option.
31417
+ * @throws {RequiredError}
31418
+ */
31419
+ 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 = {}) {
31420
+ // verify required parameter 'apiOrganisation' is not null or undefined
31421
+ (0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiOrganisation', apiOrganisation);
31422
+ // verify required parameter 'apiApplication' is not null or undefined
31423
+ (0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiApplication', apiApplication);
31424
+ // verify required parameter 'apiEnvironment' is not null or undefined
31425
+ (0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiEnvironment', apiEnvironment);
31426
+ // verify required parameter 'apiSecret' is not null or undefined
31427
+ (0, common_1.assertParamExists)('deleteEnvironmentSecret', 'apiSecret', apiSecret);
31428
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
31429
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31430
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31431
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
31432
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
31433
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31434
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31435
+ let baseOptions;
31436
+ if (configuration) {
31437
+ baseOptions = configuration.baseOptions;
31438
+ }
31439
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
31440
+ const localVarHeaderParameter = {};
31441
+ const localVarQueryParameter = {};
31442
+ // authentication BearerAuth required
31443
+ // http bearer authentication required
31444
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
31445
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
31446
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31447
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31448
+ return {
31449
+ url: (0, common_1.toPathString)(localVarUrlObj),
31450
+ options: localVarRequestOptions,
31451
+ };
31452
+ }),
31453
+ /**
31454
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31455
+ * @summary List the secret names for an environment
31456
+ * @param {string} apiOrganisation The organisation ID
31457
+ * @param {string} apiApplication The application ID
31458
+ * @param {string} apiEnvironment The environment ID
31459
+ * @param {*} [options] Override http request option.
31460
+ * @throws {RequiredError}
31461
+ */
31462
+ 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 = {}) {
31463
+ // verify required parameter 'apiOrganisation' is not null or undefined
31464
+ (0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiOrganisation', apiOrganisation);
31465
+ // verify required parameter 'apiApplication' is not null or undefined
31466
+ (0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiApplication', apiApplication);
31467
+ // verify required parameter 'apiEnvironment' is not null or undefined
31468
+ (0, common_1.assertParamExists)('listEnvironmentSecrets', 'apiEnvironment', apiEnvironment);
31469
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets`
31470
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31471
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31472
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)));
31473
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31474
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31475
+ let baseOptions;
31476
+ if (configuration) {
31477
+ baseOptions = configuration.baseOptions;
31478
+ }
31479
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
31480
+ const localVarHeaderParameter = {};
31481
+ const localVarQueryParameter = {};
31482
+ // authentication BearerAuth required
31483
+ // http bearer authentication required
31484
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
31485
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
31486
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31487
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31488
+ return {
31489
+ url: (0, common_1.toPathString)(localVarUrlObj),
31490
+ options: localVarRequestOptions,
31491
+ };
31492
+ }),
31493
+ /**
31494
+ * 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.
31495
+ * @summary Create or replace a secret
31496
+ * @param {string} apiOrganisation The organisation ID
31497
+ * @param {string} apiApplication The application ID
31498
+ * @param {string} apiEnvironment The environment ID
31499
+ * @param {string} apiSecret The secret key
31500
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31501
+ * @param {*} [options] Override http request option.
31502
+ * @throws {RequiredError}
31503
+ */
31504
+ 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 = {}) {
31505
+ // verify required parameter 'apiOrganisation' is not null or undefined
31506
+ (0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiOrganisation', apiOrganisation);
31507
+ // verify required parameter 'apiApplication' is not null or undefined
31508
+ (0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiApplication', apiApplication);
31509
+ // verify required parameter 'apiEnvironment' is not null or undefined
31510
+ (0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiEnvironment', apiEnvironment);
31511
+ // verify required parameter 'apiSecret' is not null or undefined
31512
+ (0, common_1.assertParamExists)('updateEnvironmentSecret', 'apiSecret', apiSecret);
31513
+ // verify required parameter 'updateEnvironmentSecretRequest' is not null or undefined
31514
+ (0, common_1.assertParamExists)('updateEnvironmentSecret', 'updateEnvironmentSecretRequest', updateEnvironmentSecretRequest);
31515
+ const localVarPath = `/api/v3/organizations/{api_organisation}/applications/{api_application}/environments/{api_environment}/secrets/{api_secret}`
31516
+ .replace(`{${"api_organisation"}}`, encodeURIComponent(String(apiOrganisation)))
31517
+ .replace(`{${"api_application"}}`, encodeURIComponent(String(apiApplication)))
31518
+ .replace(`{${"api_environment"}}`, encodeURIComponent(String(apiEnvironment)))
31519
+ .replace(`{${"api_secret"}}`, encodeURIComponent(String(apiSecret)));
31520
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
31521
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
31522
+ let baseOptions;
31523
+ if (configuration) {
31524
+ baseOptions = configuration.baseOptions;
31525
+ }
31526
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
31527
+ const localVarHeaderParameter = {};
31528
+ const localVarQueryParameter = {};
31529
+ // authentication BearerAuth required
31530
+ // http bearer authentication required
31531
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
31532
+ localVarHeaderParameter['Content-Type'] = 'application/json';
31533
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
31534
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
31535
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
31536
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(updateEnvironmentSecretRequest, localVarRequestOptions, configuration);
31537
+ return {
31538
+ url: (0, common_1.toPathString)(localVarUrlObj),
31539
+ options: localVarRequestOptions,
31540
+ };
31541
+ }),
31542
+ };
31543
+ };
31544
+ exports.SecretsApiAxiosParamCreator = SecretsApiAxiosParamCreator;
31545
+ /**
31546
+ * SecretsApi - functional programming interface
31547
+ * @export
31548
+ */
31549
+ const SecretsApiFp = function (configuration) {
31550
+ const localVarAxiosParamCreator = (0, exports.SecretsApiAxiosParamCreator)(configuration);
31551
+ return {
31552
+ /**
31553
+ * 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.
31554
+ * @summary Delete a secret
31555
+ * @param {string} apiOrganisation The organisation ID
31556
+ * @param {string} apiApplication The application ID
31557
+ * @param {string} apiEnvironment The environment ID
31558
+ * @param {string} apiSecret The secret key
31559
+ * @param {*} [options] Override http request option.
31560
+ * @throws {RequiredError}
31561
+ */
31562
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31563
+ return __awaiter(this, void 0, void 0, function* () {
31564
+ var _a, _b, _c;
31565
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options);
31566
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31567
+ 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;
31568
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31569
+ });
31570
+ },
31571
+ /**
31572
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31573
+ * @summary List the secret names for an environment
31574
+ * @param {string} apiOrganisation The organisation ID
31575
+ * @param {string} apiApplication The application ID
31576
+ * @param {string} apiEnvironment The environment ID
31577
+ * @param {*} [options] Override http request option.
31578
+ * @throws {RequiredError}
31579
+ */
31580
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31581
+ return __awaiter(this, void 0, void 0, function* () {
31582
+ var _a, _b, _c;
31583
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options);
31584
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31585
+ 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;
31586
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31587
+ });
31588
+ },
31589
+ /**
31590
+ * 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.
31591
+ * @summary Create or replace a secret
31592
+ * @param {string} apiOrganisation The organisation ID
31593
+ * @param {string} apiApplication The application ID
31594
+ * @param {string} apiEnvironment The environment ID
31595
+ * @param {string} apiSecret The secret key
31596
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31597
+ * @param {*} [options] Override http request option.
31598
+ * @throws {RequiredError}
31599
+ */
31600
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31601
+ return __awaiter(this, void 0, void 0, function* () {
31602
+ var _a, _b, _c;
31603
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options);
31604
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
31605
+ 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;
31606
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
31607
+ });
31608
+ },
31609
+ };
31610
+ };
31611
+ exports.SecretsApiFp = SecretsApiFp;
31612
+ /**
31613
+ * SecretsApi - factory interface
31614
+ * @export
31615
+ */
31616
+ const SecretsApiFactory = function (configuration, basePath, axios) {
31617
+ const localVarFp = (0, exports.SecretsApiFp)(configuration);
31618
+ return {
31619
+ /**
31620
+ * 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.
31621
+ * @summary Delete a secret
31622
+ * @param {string} apiOrganisation The organisation ID
31623
+ * @param {string} apiApplication The application ID
31624
+ * @param {string} apiEnvironment The environment ID
31625
+ * @param {string} apiSecret The secret key
31626
+ * @param {*} [options] Override http request option.
31627
+ * @throws {RequiredError}
31628
+ */
31629
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31630
+ return localVarFp.deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(axios, basePath));
31631
+ },
31632
+ /**
31633
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31634
+ * @summary List the secret names for an environment
31635
+ * @param {string} apiOrganisation The organisation ID
31636
+ * @param {string} apiApplication The application ID
31637
+ * @param {string} apiEnvironment The environment ID
31638
+ * @param {*} [options] Override http request option.
31639
+ * @throws {RequiredError}
31640
+ */
31641
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31642
+ return localVarFp.listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(axios, basePath));
31643
+ },
31644
+ /**
31645
+ * 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.
31646
+ * @summary Create or replace a secret
31647
+ * @param {string} apiOrganisation The organisation ID
31648
+ * @param {string} apiApplication The application ID
31649
+ * @param {string} apiEnvironment The environment ID
31650
+ * @param {string} apiSecret The secret key
31651
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31652
+ * @param {*} [options] Override http request option.
31653
+ * @throws {RequiredError}
31654
+ */
31655
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31656
+ return localVarFp.updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(axios, basePath));
31657
+ },
31658
+ };
31659
+ };
31660
+ exports.SecretsApiFactory = SecretsApiFactory;
31661
+ /**
31662
+ * SecretsApi - object-oriented interface
31663
+ * @export
31664
+ * @class SecretsApi
31665
+ * @extends {BaseAPI}
31666
+ */
31667
+ class SecretsApi extends base_1.BaseAPI {
31668
+ /**
31669
+ * 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.
31670
+ * @summary Delete a secret
31671
+ * @param {string} apiOrganisation The organisation ID
31672
+ * @param {string} apiApplication The application ID
31673
+ * @param {string} apiEnvironment The environment ID
31674
+ * @param {string} apiSecret The secret key
31675
+ * @param {*} [options] Override http request option.
31676
+ * @throws {RequiredError}
31677
+ * @memberof SecretsApi
31678
+ */
31679
+ deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options) {
31680
+ return (0, exports.SecretsApiFp)(this.configuration).deleteEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, options).then((request) => request(this.axios, this.basePath));
31681
+ }
31682
+ /**
31683
+ * Returns the names of the environment\'s secrets. Secret values are write-only and are never returned.
31684
+ * @summary List the secret names for an environment
31685
+ * @param {string} apiOrganisation The organisation ID
31686
+ * @param {string} apiApplication The application ID
31687
+ * @param {string} apiEnvironment The environment ID
31688
+ * @param {*} [options] Override http request option.
31689
+ * @throws {RequiredError}
31690
+ * @memberof SecretsApi
31691
+ */
31692
+ listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options) {
31693
+ return (0, exports.SecretsApiFp)(this.configuration).listEnvironmentSecrets(apiOrganisation, apiApplication, apiEnvironment, options).then((request) => request(this.axios, this.basePath));
31694
+ }
31695
+ /**
31696
+ * 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.
31697
+ * @summary Create or replace a secret
31698
+ * @param {string} apiOrganisation The organisation ID
31699
+ * @param {string} apiApplication The application ID
31700
+ * @param {string} apiEnvironment The environment ID
31701
+ * @param {string} apiSecret The secret key
31702
+ * @param {UpdateEnvironmentSecretRequest} updateEnvironmentSecretRequest
31703
+ * @param {*} [options] Override http request option.
31704
+ * @throws {RequiredError}
31705
+ * @memberof SecretsApi
31706
+ */
31707
+ updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options) {
31708
+ return (0, exports.SecretsApiFp)(this.configuration).updateEnvironmentSecret(apiOrganisation, apiApplication, apiEnvironment, apiSecret, updateEnvironmentSecretRequest, options).then((request) => request(this.axios, this.basePath));
31709
+ }
31710
+ }
31711
+ exports.SecretsApi = SecretsApi;
30191
31712
  /**
30192
31713
  * SubscriptionApi - axios parameter creator
30193
31714
  * @export