@quantcdn/quant-client 4.36.0 → 4.39.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/api.ts +1077 -19
- package/common.ts +1 -1
- package/configuration.ts +1 -1
- package/dist/api.d.ts +900 -19
- package/dist/api.js +352 -15
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +1 -1
- package/dist/esm/api.d.ts +900 -19
- package/dist/esm/api.js +342 -5
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +1 -1
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/api.js
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
* QuantCDN API
|
|
6
6
|
* Unified API for QuantCDN Admin and QuantCloud Platform services ## Rate limits - **Per token.** Each API token has a limit per organisation: by default 240 requests per minute. The limit counts after the token is validated, so tokens that share an IP address (for example Quant Cloud apps and CI runners) do not share a limit. An organisation can have a different limit (set per organisation or by subscription plan); contact Quant support to change it. - **Unauthenticated requests.** Requests that end without a valid token (no token, an invalid or expired token, public routes) have a coarse limit per client IP address: by default 600 requests per minute. A request with a valid token never counts against it and is never refused by it. A request with a valid token that is refused before the per-token limit runs (for example an organisation the token cannot use) still counts against the token. - **KV per project.** Some KV operations also have a limit per project, shared by every token: kv-admin 10 requests per minute (index create, delete and resume; upgrade; export create and resume; ledger declare, raise and drop), kv-erase 30 (ledger subject preview and shred), kv-verify 6 (ledger verify). - **Responses.** Over a limit the answer is 429 with a Retry-After header (seconds). KV routes answer the V2KvError body with code RATE_LIMITED and retryable true; other routes answer {\"message\": \"Too Many Attempts.\"}. Rate-limited routes send RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset (IETF draft; Reset is seconds until the window resets) and X-RateLimit-Limit and X-RateLimit-Remaining on the responses of requests that reach a limiter, and X-RateLimit-Reset (Unix time) on a 429. A request refused before a limiter runs (for example a 401, 403 or 404 from an earlier check) can come back without these headers. When two limits apply, the headers describe the one with fewer requests left. Wait Retry-After seconds, then send the request again.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 4.
|
|
8
|
+
* The version of the OpenAPI document: 4.39.0
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,16 +22,16 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
26
|
-
exports.
|
|
27
|
-
exports.
|
|
28
|
-
exports.
|
|
29
|
-
exports.
|
|
30
|
-
exports.
|
|
31
|
-
exports.
|
|
32
|
-
exports.
|
|
33
|
-
exports.
|
|
34
|
-
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 = void 0;
|
|
25
|
+
exports.CreateSlackInteractionRequestActionsInnerStyleEnum = exports.CreateSlackInteractionRequestResponseModeEnum = exports.CreateSlackBotRequestReasoningEffortEnum = exports.CreateSlackBotRequestSetupTypeEnum = exports.CreateOrgResourceRequestTypeEnum = exports.CreateOrchestrationRequestStopConditionTypeEnum = exports.CreateOrchestrationRequestInputSourceTypeEnum = exports.CreateFilterPolicyRequestRulesInnerMatchTypeEnum = exports.CreateFilterPolicyRequestRulesInnerApplyToEnum = exports.CreateFilterPolicyRequestRulesInnerActionEnum = exports.CreateCustomToolRequestResponseModeEnum = exports.CreateApplicationRequestDatabaseEngineEnum = exports.CreateAISessionRequestInitialMessagesInnerRoleEnum = exports.CreateAISession201ResponseStatusEnum = exports.CreateAIAgentRequestGuardrailPresetEnum = exports.CreateAIAgentRequestReasoningEffortEnum = exports.ContainerImageReferenceTypeEnum = exports.ContainerDependsOnInnerConditionEnum = exports.CiValueWriteResultScopeEnum = exports.CiValueWriteResultKindEnum = exports.CiValueScopeEnum = exports.CiValueKindEnum = exports.CiRunnerPoolConfigConnectionStatusEnum = exports.CiRunnerPoolConfigConnectionProviderEnum = exports.CiRunnerPoolConfigAlertsInnerTypeEnum = exports.CiRunnerPoolConfigCacheResidencyEnum = exports.CiRunnerPoolConfigNetworkModeEnum = exports.CiRunnerPoolConfigArchitecturesEnum = exports.CiRunnerPoolConfigTierEnum = 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.AlertChannelSummaryTypeEnum = exports.AiSlackBotApiMessageAllOfAuthorKindEnum = exports.AiSearchUpdateSettingsRequestQueryTextRetentionEnum = exports.AiAuditRecordRowOmittedEnum = exports.AIModelEligibilityReasonEnum = exports.AIAutoModeInputEnforcementEnum = exports.AIAutoModeConfigEnforcementEnum = void 0;
|
|
26
|
+
exports.PutCiValueRequestKindEnum = exports.PurgeOrgResourceRequestScopeEnum = exports.PurgeCreateRequestScopeEnum = exports.ProjectsDelete503ResponseCodeEnum = exports.ProjectsDelete409ResponseCodeEnum = exports.PostSlackBotMessageRequestFormatEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OrgResourceEffectiveCacheResidencyEnum = exports.OrgResourceScopeEnum = exports.OrgResourceStatusEnum = exports.OrgResourceTypeEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletionsRequestReasoningEffortEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerReasoningEffortEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListSlackBotChannelMessages200ResponseContentTrustEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = exports.ListAIAgents200ResponseAgentsInnerReasoningEffortEnum = exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.IdleSleepResponseStateEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBotThread200ResponseContentTrustEnum = exports.GetSlackBot200ResponseBotReasoningEffortEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetProjectEdgeEvents200ResponseEventsInnerTypeEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAgentOverlay200ResponseOverlayReasoningEffortEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.GetAIAgent200ResponseAgentReasoningEffortEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentFailureTypeEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.DecideToolProposalRequestScopeEnum = exports.DecideToolProposalRequestDecisionEnum = exports.DNSCreateRecordRequestTypeEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CronLastRunStatusEnum = exports.CreateTaskRequestStatusEnum = void 0;
|
|
27
|
+
exports.V2KvLedgerDetailSubjectCaseEnum = exports.V2KvLedgerDetailSubjectModeEnum = exports.V2KvLedgerDetailLockModeEnum = exports.V2KvLedgerAnchorTsaUrlEnum = exports.V2KvLedgerAnchorTypeEnum = exports.V2KvLedgerAdminRaiseRequestLockModeEnum = exports.V2KvLedgerAdminDeclareRequestSubjectCaseEnum = exports.V2KvLedgerAdminDeclareRequestSubjectModeEnum = exports.V2KvLedgerAdminDeclareRequestLockModeEnum = exports.V2KvLedgerStateEnum = exports.V2KvLedgerSubjectCaseEnum = exports.V2KvLedgerSubjectModeEnum = exports.V2KvLedgerLockModeEnum = exports.V2KvIndexLookupStatusEnum = exports.V2KvIndexJobPhaseEnum = exports.V2KvIndexErrorEnum = exports.V2KvIndexStateEnum = exports.V2KvIncrementResponseOperationEnum = exports.V2KvExportPhaseEnum = exports.V2KvErrorLedgersInnerReasonEnum = exports.V2KvErrorReasonEnum = exports.V2KvErrorCodeEnum = exports.V2KvEntryPutResponseStatusEnum = exports.V2KvEntryDeleteResponseStatusEnum = exports.V2KvArchiveStatusSourceEnum = exports.V2KvArchiveStatusStatusEnum = exports.V2KvArchivePurgeReceiptAlgorithmEnum = exports.V2KvArchivePurgeAnswerStateEnum = exports.V2KvArchivePurgeStateEnum = exports.V1TransitionStateEnum = exports.UpsertAgentOverlayRequestReasoningEffortEnum = exports.UpsertAgentOverlayRequestGuardrailPresetEnum = exports.UpdateTaskRequestStatusEnum = exports.UpdateSlackBotRequestReasoningEffortEnum = exports.UpdateSlackBotRequestStatusEnum = exports.UpdateGovernanceConfigRequestMandatoryGuardrailPresetEnum = exports.UpdateGovernanceConfigRequestModelPolicyEnum = exports.UpdateAISessionRequestNewMessagesInnerRoleEnum = exports.UpdateAISessionRequestStatusEnum = exports.UpdateAIAgentRequestGuardrailPresetEnum = exports.UpdateAIAgentRequestReasoningEffortEnum = exports.TokensCreateRequestExpiresInEnum = exports.SpotConfigurationStrategyEnum = exports.SetScalingPolicyRequestMetricEnum = exports.ResourceAttachmentAccessLevelEnum = exports.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = void 0;
|
|
28
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = exports.V2RuleAuthRequestTrafficSourceIsNotEnum = exports.V2RuleAuthRequestTrafficSourceIsEnum = exports.V2RuleAuthRequestTrafficSourceEnum = exports.V2RuleAuthRequestUaEnum = exports.V2RuleAuthRequestAsnEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleAuthFunctionRequestTrafficSourceIsEnum = exports.V2RuleAuthFunctionRequestTrafficSourceEnum = exports.V2RuleAuthFunctionRequestUaEnum = exports.V2RuleAuthFunctionRequestAsnEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = exports.V2KvUsageEstimateCurrencyEnum = exports.V2KvUsageStateEnum = exports.V2KvUsageFormatEnum = exports.V2KvUpgradeStatusPhaseEnum = exports.V2KvUpgradeStateStateEnum = exports.V2KvUpgradeStateFormatEnum = exports.V2KvUpgradeRequestActionEnum = exports.V2KvTransactOperationTypeEnum = exports.V2KvPageEnd = exports.V2KvLedgerVerifyShardReasonEnum = exports.V2KvLedgerVerificationReportReportTriggerEnum = exports.V2KvLedgerVerificationReportReportTypeEnum = exports.V2KvLedgerVerificationReportReportVEnum = exports.V2KvLedgerVerificationReportAlgorithmEnum = exports.V2KvLedgerSubjectEntriesRequestPersonalEnum = exports.V2KvLedgerSubjectEntriesSubjectStateEnum = 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 = void 0;
|
|
29
|
+
exports.V2RuleScheduleWeeklyInnerDaysEnum = exports.V2RuleScheduleModeEnum = exports.V2RuleRequestTrafficSourceIsNotEnum = exports.V2RuleRequestTrafficSourceIsEnum = exports.V2RuleRequestTrafficSourceEnum = exports.V2RuleRequestUaEnum = exports.V2RuleRequestAsnEnum = exports.V2RuleRedirectRequestTrafficSourceIsNotEnum = exports.V2RuleRedirectRequestTrafficSourceIsEnum = exports.V2RuleRedirectRequestTrafficSourceEnum = exports.V2RuleRedirectRequestUaEnum = exports.V2RuleRedirectRequestAsnEnum = exports.V2RuleProxyRequestTrafficSourceIsNotEnum = exports.V2RuleProxyRequestTrafficSourceIsEnum = exports.V2RuleProxyRequestTrafficSourceEnum = exports.V2RuleProxyRequestUaEnum = exports.V2RuleProxyRequestAsnEnum = exports.V2RuleProxyActionNotifyEnum = exports.V2RuleHeaderRequestTrafficSourceIsNotEnum = exports.V2RuleHeaderRequestTrafficSourceIsEnum = exports.V2RuleHeaderRequestTrafficSourceEnum = exports.V2RuleHeaderRequestUaEnum = exports.V2RuleHeaderRequestAsnEnum = exports.V2RuleFunctionRequestTrafficSourceIsNotEnum = exports.V2RuleFunctionRequestTrafficSourceIsEnum = exports.V2RuleFunctionRequestTrafficSourceEnum = 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.V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = void 0;
|
|
30
|
+
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.AIAutoModeApi = exports.AIAutoModeApiFactory = exports.AIAutoModeApiFp = exports.AIAutoModeApiAxiosParamCreator = 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 = void 0;
|
|
31
|
+
exports.AlertChannelsApi = exports.AlertChannelsApiFactory = exports.AlertChannelsApiFp = exports.AlertChannelsApiAxiosParamCreator = 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 = exports.AIModelsApiFactory = void 0;
|
|
32
|
+
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.CIValuesApi = exports.CIValuesApiFactory = exports.CIValuesApiFp = exports.CIValuesApiAxiosParamCreator = 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 = void 0;
|
|
33
|
+
exports.RestoreManagementApiAxiosParamCreator = exports.ResourcesApi = exports.ResourcesApiFactory = exports.ResourcesApiFp = exports.ResourcesApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.GetProjectEdgeEventsLevelEnum = 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 = void 0;
|
|
34
|
+
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 = void 0;
|
|
35
35
|
const axios_1 = require("axios");
|
|
36
36
|
// Some imports not used depending on template conditions
|
|
37
37
|
// @ts-ignore
|
|
@@ -134,6 +134,37 @@ exports.ChatInferenceStreamRequestMessagesInnerRoleEnum = {
|
|
|
134
134
|
exports.ChatWithAIAgent202ResponseStatusEnum = {
|
|
135
135
|
Queued: 'queued'
|
|
136
136
|
};
|
|
137
|
+
exports.CiRunnerPoolConfigTierEnum = {
|
|
138
|
+
Small: 'small',
|
|
139
|
+
Medium: 'medium',
|
|
140
|
+
Large: 'large'
|
|
141
|
+
};
|
|
142
|
+
exports.CiRunnerPoolConfigArchitecturesEnum = {
|
|
143
|
+
Arm64: 'arm64',
|
|
144
|
+
X64: 'x64'
|
|
145
|
+
};
|
|
146
|
+
exports.CiRunnerPoolConfigNetworkModeEnum = {
|
|
147
|
+
Public: 'public',
|
|
148
|
+
Restricted: 'restricted'
|
|
149
|
+
};
|
|
150
|
+
exports.CiRunnerPoolConfigCacheResidencyEnum = {
|
|
151
|
+
AuOnly: 'au-only',
|
|
152
|
+
AllowGithub: 'allow-github'
|
|
153
|
+
};
|
|
154
|
+
exports.CiRunnerPoolConfigAlertsInnerTypeEnum = {
|
|
155
|
+
QueueWait: 'queue_wait',
|
|
156
|
+
AtCapacity: 'at_capacity',
|
|
157
|
+
PoolError: 'pool_error',
|
|
158
|
+
LabelsUnfit: 'labels_unfit',
|
|
159
|
+
VmHoursIncluded: 'vm_hours_included'
|
|
160
|
+
};
|
|
161
|
+
exports.CiRunnerPoolConfigConnectionProviderEnum = {
|
|
162
|
+
Github: 'github'
|
|
163
|
+
};
|
|
164
|
+
exports.CiRunnerPoolConfigConnectionStatusEnum = {
|
|
165
|
+
Connected: 'connected',
|
|
166
|
+
Disconnected: 'disconnected'
|
|
167
|
+
};
|
|
137
168
|
exports.CiValueKindEnum = {
|
|
138
169
|
Secret: 'secret',
|
|
139
170
|
Var: 'var'
|
|
@@ -473,6 +504,10 @@ exports.OrgResourceScopeEnum = {
|
|
|
473
504
|
Org: 'org',
|
|
474
505
|
App: 'app'
|
|
475
506
|
};
|
|
507
|
+
exports.OrgResourceEffectiveCacheResidencyEnum = {
|
|
508
|
+
AuOnly: 'au-only',
|
|
509
|
+
AllowGithub: 'allow-github'
|
|
510
|
+
};
|
|
476
511
|
exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
|
|
477
512
|
Off: 'off',
|
|
478
513
|
SpotOnly: 'spot-only',
|
|
@@ -1037,6 +1072,31 @@ exports.V2RuleAuthRequestTrafficSourceIsNotEnum = {
|
|
|
1037
1072
|
Abuser: 'abuser',
|
|
1038
1073
|
Crawler: 'crawler'
|
|
1039
1074
|
};
|
|
1075
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsSearchEnum = {
|
|
1076
|
+
Allow: 'allow',
|
|
1077
|
+
Challenge: 'challenge',
|
|
1078
|
+
Block: 'block'
|
|
1079
|
+
};
|
|
1080
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsAiSearchEnum = {
|
|
1081
|
+
Allow: 'allow',
|
|
1082
|
+
Challenge: 'challenge',
|
|
1083
|
+
Block: 'block'
|
|
1084
|
+
};
|
|
1085
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsPreviewEnum = {
|
|
1086
|
+
Allow: 'allow',
|
|
1087
|
+
Challenge: 'challenge',
|
|
1088
|
+
Block: 'block'
|
|
1089
|
+
};
|
|
1090
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsMonitorEnum = {
|
|
1091
|
+
Allow: 'allow',
|
|
1092
|
+
Challenge: 'challenge',
|
|
1093
|
+
Block: 'block'
|
|
1094
|
+
};
|
|
1095
|
+
exports.V2RuleBotChallengeActionRobotChallengeVerifiedBotsOtherEnum = {
|
|
1096
|
+
Allow: 'allow',
|
|
1097
|
+
Challenge: 'challenge',
|
|
1098
|
+
Block: 'block'
|
|
1099
|
+
};
|
|
1040
1100
|
exports.V2RuleBotChallengeRequestAsnEnum = {
|
|
1041
1101
|
Any: 'any',
|
|
1042
1102
|
AsnIs: 'asn_is',
|
|
@@ -1302,6 +1362,19 @@ exports.V2RuleRequestTrafficSourceIsNotEnum = {
|
|
|
1302
1362
|
Abuser: 'abuser',
|
|
1303
1363
|
Crawler: 'crawler'
|
|
1304
1364
|
};
|
|
1365
|
+
exports.V2RuleScheduleModeEnum = {
|
|
1366
|
+
ActiveDuring: 'active_during',
|
|
1367
|
+
InactiveDuring: 'inactive_during'
|
|
1368
|
+
};
|
|
1369
|
+
exports.V2RuleScheduleWeeklyInnerDaysEnum = {
|
|
1370
|
+
Mon: 'mon',
|
|
1371
|
+
Tue: 'tue',
|
|
1372
|
+
Wed: 'wed',
|
|
1373
|
+
Thu: 'thu',
|
|
1374
|
+
Fri: 'fri',
|
|
1375
|
+
Sat: 'sat',
|
|
1376
|
+
Sun: 'sun'
|
|
1377
|
+
};
|
|
1305
1378
|
exports.V2RuleServeStaticRequestAsnEnum = {
|
|
1306
1379
|
Any: 'any',
|
|
1307
1380
|
AsnIs: 'asn_is',
|
|
@@ -18968,7 +19041,7 @@ exports.SyncToEnvironmentTypeEnum = {
|
|
|
18968
19041
|
const HeadersApiAxiosParamCreator = function (configuration) {
|
|
18969
19042
|
return {
|
|
18970
19043
|
/**
|
|
18971
|
-
*
|
|
19044
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
18972
19045
|
* @summary Create or update custom headers
|
|
18973
19046
|
* @param {string} organization Organization identifier
|
|
18974
19047
|
* @param {string} project Project identifier
|
|
@@ -19096,7 +19169,7 @@ const HeadersApiFp = function (configuration) {
|
|
|
19096
19169
|
const localVarAxiosParamCreator = (0, exports.HeadersApiAxiosParamCreator)(configuration);
|
|
19097
19170
|
return {
|
|
19098
19171
|
/**
|
|
19099
|
-
*
|
|
19172
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
19100
19173
|
* @summary Create or update custom headers
|
|
19101
19174
|
* @param {string} organization Organization identifier
|
|
19102
19175
|
* @param {string} project Project identifier
|
|
@@ -19159,7 +19232,7 @@ const HeadersApiFactory = function (configuration, basePath, axios) {
|
|
|
19159
19232
|
const localVarFp = (0, exports.HeadersApiFp)(configuration);
|
|
19160
19233
|
return {
|
|
19161
19234
|
/**
|
|
19162
|
-
*
|
|
19235
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
19163
19236
|
* @summary Create or update custom headers
|
|
19164
19237
|
* @param {string} organization Organization identifier
|
|
19165
19238
|
* @param {string} project Project identifier
|
|
@@ -19204,7 +19277,7 @@ exports.HeadersApiFactory = HeadersApiFactory;
|
|
|
19204
19277
|
*/
|
|
19205
19278
|
class HeadersApi extends base_1.BaseAPI {
|
|
19206
19279
|
/**
|
|
19207
|
-
*
|
|
19280
|
+
* Replaces the custom headers of the project. On a project that Security > CSP manages, the CSP header names in the request are ignored and their stored values stay; the response header X-Quant-Warning then names them. The status is still 200.
|
|
19208
19281
|
* @summary Create or update custom headers
|
|
19209
19282
|
* @param {string} organization Organization identifier
|
|
19210
19283
|
* @param {string} project Project identifier
|
|
@@ -26225,6 +26298,47 @@ const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26225
26298
|
options: localVarRequestOptions,
|
|
26226
26299
|
};
|
|
26227
26300
|
}),
|
|
26301
|
+
/**
|
|
26302
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26303
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26304
|
+
* @param {string} organisation The organisation ID
|
|
26305
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26306
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26307
|
+
* @param {*} [options] Override http request option.
|
|
26308
|
+
* @throws {RequiredError}
|
|
26309
|
+
*/
|
|
26310
|
+
deleteCiRunnerPoolCache: (organisation_1, resource_1, ciCacheDeleteRequest_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, ciCacheDeleteRequest_1, ...args_1], void 0, function* (organisation, resource, ciCacheDeleteRequest, options = {}) {
|
|
26311
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26312
|
+
(0, common_1.assertParamExists)('deleteCiRunnerPoolCache', 'organisation', organisation);
|
|
26313
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26314
|
+
(0, common_1.assertParamExists)('deleteCiRunnerPoolCache', 'resource', resource);
|
|
26315
|
+
// verify required parameter 'ciCacheDeleteRequest' is not null or undefined
|
|
26316
|
+
(0, common_1.assertParamExists)('deleteCiRunnerPoolCache', 'ciCacheDeleteRequest', ciCacheDeleteRequest);
|
|
26317
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
26318
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26319
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26320
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26321
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26322
|
+
let baseOptions;
|
|
26323
|
+
if (configuration) {
|
|
26324
|
+
baseOptions = configuration.baseOptions;
|
|
26325
|
+
}
|
|
26326
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
|
|
26327
|
+
const localVarHeaderParameter = {};
|
|
26328
|
+
const localVarQueryParameter = {};
|
|
26329
|
+
// authentication BearerAuth required
|
|
26330
|
+
// http bearer authentication required
|
|
26331
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
26332
|
+
localVarHeaderParameter['Content-Type'] = 'application/json';
|
|
26333
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26334
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26335
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26336
|
+
localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(ciCacheDeleteRequest, localVarRequestOptions, configuration);
|
|
26337
|
+
return {
|
|
26338
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26339
|
+
options: localVarRequestOptions,
|
|
26340
|
+
};
|
|
26341
|
+
}),
|
|
26228
26342
|
/**
|
|
26229
26343
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26230
26344
|
* @summary Delete a shared resource
|
|
@@ -26309,6 +26423,46 @@ const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26309
26423
|
options: localVarRequestOptions,
|
|
26310
26424
|
};
|
|
26311
26425
|
}),
|
|
26426
|
+
/**
|
|
26427
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26428
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26429
|
+
* @param {string} organisation The organisation ID
|
|
26430
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26431
|
+
* @param {number} [days]
|
|
26432
|
+
* @param {*} [options] Override http request option.
|
|
26433
|
+
* @throws {RequiredError}
|
|
26434
|
+
*/
|
|
26435
|
+
getCiRunnerPoolCacheStats: (organisation_1, resource_1, days_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, days_1, ...args_1], void 0, function* (organisation, resource, days, options = {}) {
|
|
26436
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26437
|
+
(0, common_1.assertParamExists)('getCiRunnerPoolCacheStats', 'organisation', organisation);
|
|
26438
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26439
|
+
(0, common_1.assertParamExists)('getCiRunnerPoolCacheStats', 'resource', resource);
|
|
26440
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache/stats`
|
|
26441
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26442
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26443
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26444
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26445
|
+
let baseOptions;
|
|
26446
|
+
if (configuration) {
|
|
26447
|
+
baseOptions = configuration.baseOptions;
|
|
26448
|
+
}
|
|
26449
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26450
|
+
const localVarHeaderParameter = {};
|
|
26451
|
+
const localVarQueryParameter = {};
|
|
26452
|
+
// authentication BearerAuth required
|
|
26453
|
+
// http bearer authentication required
|
|
26454
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
26455
|
+
if (days !== undefined) {
|
|
26456
|
+
localVarQueryParameter['days'] = days;
|
|
26457
|
+
}
|
|
26458
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26459
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26460
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26461
|
+
return {
|
|
26462
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26463
|
+
options: localVarRequestOptions,
|
|
26464
|
+
};
|
|
26465
|
+
}),
|
|
26312
26466
|
/**
|
|
26313
26467
|
*
|
|
26314
26468
|
* @summary Get a shared resource and its attachments
|
|
@@ -26381,6 +26535,54 @@ const ResourcesApiAxiosParamCreator = function (configuration) {
|
|
|
26381
26535
|
options: localVarRequestOptions,
|
|
26382
26536
|
};
|
|
26383
26537
|
}),
|
|
26538
|
+
/**
|
|
26539
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26540
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26541
|
+
* @param {string} organisation The organisation ID
|
|
26542
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26543
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26544
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26545
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26546
|
+
* @param {*} [options] Override http request option.
|
|
26547
|
+
* @throws {RequiredError}
|
|
26548
|
+
*/
|
|
26549
|
+
listCiRunnerPoolCache: (organisation_1, resource_1, repoId_1, ref_1, cursor_1, ...args_1) => __awaiter(this, [organisation_1, resource_1, repoId_1, ref_1, cursor_1, ...args_1], void 0, function* (organisation, resource, repoId, ref, cursor, options = {}) {
|
|
26550
|
+
// verify required parameter 'organisation' is not null or undefined
|
|
26551
|
+
(0, common_1.assertParamExists)('listCiRunnerPoolCache', 'organisation', organisation);
|
|
26552
|
+
// verify required parameter 'resource' is not null or undefined
|
|
26553
|
+
(0, common_1.assertParamExists)('listCiRunnerPoolCache', 'resource', resource);
|
|
26554
|
+
const localVarPath = `/api/v3/organizations/{organisation}/resources/{resource}/cache`
|
|
26555
|
+
.replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
|
|
26556
|
+
.replace(`{${"resource"}}`, encodeURIComponent(String(resource)));
|
|
26557
|
+
// use dummy base URL string because the URL constructor only accepts absolute URLs.
|
|
26558
|
+
const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
|
|
26559
|
+
let baseOptions;
|
|
26560
|
+
if (configuration) {
|
|
26561
|
+
baseOptions = configuration.baseOptions;
|
|
26562
|
+
}
|
|
26563
|
+
const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
|
|
26564
|
+
const localVarHeaderParameter = {};
|
|
26565
|
+
const localVarQueryParameter = {};
|
|
26566
|
+
// authentication BearerAuth required
|
|
26567
|
+
// http bearer authentication required
|
|
26568
|
+
yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
|
|
26569
|
+
if (repoId !== undefined) {
|
|
26570
|
+
localVarQueryParameter['repoId'] = repoId;
|
|
26571
|
+
}
|
|
26572
|
+
if (ref !== undefined) {
|
|
26573
|
+
localVarQueryParameter['ref'] = ref;
|
|
26574
|
+
}
|
|
26575
|
+
if (cursor !== undefined) {
|
|
26576
|
+
localVarQueryParameter['cursor'] = cursor;
|
|
26577
|
+
}
|
|
26578
|
+
(0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
|
|
26579
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
26580
|
+
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
|
|
26581
|
+
return {
|
|
26582
|
+
url: (0, common_1.toPathString)(localVarUrlObj),
|
|
26583
|
+
options: localVarRequestOptions,
|
|
26584
|
+
};
|
|
26585
|
+
}),
|
|
26384
26586
|
/**
|
|
26385
26587
|
*
|
|
26386
26588
|
* @summary List an organisation\'s shared resources
|
|
@@ -26499,6 +26701,24 @@ const ResourcesApiFp = function (configuration) {
|
|
|
26499
26701
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26500
26702
|
});
|
|
26501
26703
|
},
|
|
26704
|
+
/**
|
|
26705
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26706
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26707
|
+
* @param {string} organisation The organisation ID
|
|
26708
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26709
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26710
|
+
* @param {*} [options] Override http request option.
|
|
26711
|
+
* @throws {RequiredError}
|
|
26712
|
+
*/
|
|
26713
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
26714
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26715
|
+
var _a, _b, _c;
|
|
26716
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options);
|
|
26717
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26718
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ResourcesApi.deleteCiRunnerPoolCache']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26719
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26720
|
+
});
|
|
26721
|
+
},
|
|
26502
26722
|
/**
|
|
26503
26723
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26504
26724
|
* @summary Delete a shared resource
|
|
@@ -26536,6 +26756,24 @@ const ResourcesApiFp = function (configuration) {
|
|
|
26536
26756
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26537
26757
|
});
|
|
26538
26758
|
},
|
|
26759
|
+
/**
|
|
26760
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26761
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26762
|
+
* @param {string} organisation The organisation ID
|
|
26763
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26764
|
+
* @param {number} [days]
|
|
26765
|
+
* @param {*} [options] Override http request option.
|
|
26766
|
+
* @throws {RequiredError}
|
|
26767
|
+
*/
|
|
26768
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
26769
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26770
|
+
var _a, _b, _c;
|
|
26771
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.getCiRunnerPoolCacheStats(organisation, resource, days, options);
|
|
26772
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26773
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ResourcesApi.getCiRunnerPoolCacheStats']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26774
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26775
|
+
});
|
|
26776
|
+
},
|
|
26539
26777
|
/**
|
|
26540
26778
|
*
|
|
26541
26779
|
* @summary Get a shared resource and its attachments
|
|
@@ -26570,6 +26808,26 @@ const ResourcesApiFp = function (configuration) {
|
|
|
26570
26808
|
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26571
26809
|
});
|
|
26572
26810
|
},
|
|
26811
|
+
/**
|
|
26812
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26813
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26814
|
+
* @param {string} organisation The organisation ID
|
|
26815
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26816
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26817
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26818
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26819
|
+
* @param {*} [options] Override http request option.
|
|
26820
|
+
* @throws {RequiredError}
|
|
26821
|
+
*/
|
|
26822
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
26823
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
26824
|
+
var _a, _b, _c;
|
|
26825
|
+
const localVarAxiosArgs = yield localVarAxiosParamCreator.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options);
|
|
26826
|
+
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
|
|
26827
|
+
const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['ResourcesApi.listCiRunnerPoolCache']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
|
|
26828
|
+
return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
26829
|
+
});
|
|
26830
|
+
},
|
|
26573
26831
|
/**
|
|
26574
26832
|
*
|
|
26575
26833
|
* @summary List an organisation\'s shared resources
|
|
@@ -26637,6 +26895,18 @@ const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26637
26895
|
createOrgResource(organisation, createOrgResourceRequest, options) {
|
|
26638
26896
|
return localVarFp.createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(axios, basePath));
|
|
26639
26897
|
},
|
|
26898
|
+
/**
|
|
26899
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
26900
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
26901
|
+
* @param {string} organisation The organisation ID
|
|
26902
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26903
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
26904
|
+
* @param {*} [options] Override http request option.
|
|
26905
|
+
* @throws {RequiredError}
|
|
26906
|
+
*/
|
|
26907
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
26908
|
+
return localVarFp.deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(axios, basePath));
|
|
26909
|
+
},
|
|
26640
26910
|
/**
|
|
26641
26911
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26642
26912
|
* @summary Delete a shared resource
|
|
@@ -26662,6 +26932,18 @@ const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26662
26932
|
detachOrgResource(organisation, resource, application, environment, options) {
|
|
26663
26933
|
return localVarFp.detachOrgResource(organisation, resource, application, environment, options).then((request) => request(axios, basePath));
|
|
26664
26934
|
},
|
|
26935
|
+
/**
|
|
26936
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
26937
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
26938
|
+
* @param {string} organisation The organisation ID
|
|
26939
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26940
|
+
* @param {number} [days]
|
|
26941
|
+
* @param {*} [options] Override http request option.
|
|
26942
|
+
* @throws {RequiredError}
|
|
26943
|
+
*/
|
|
26944
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
26945
|
+
return localVarFp.getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(axios, basePath));
|
|
26946
|
+
},
|
|
26665
26947
|
/**
|
|
26666
26948
|
*
|
|
26667
26949
|
* @summary Get a shared resource and its attachments
|
|
@@ -26684,6 +26966,20 @@ const ResourcesApiFactory = function (configuration, basePath, axios) {
|
|
|
26684
26966
|
getOrgResourceCredentials(organisation, resource, options) {
|
|
26685
26967
|
return localVarFp.getOrgResourceCredentials(organisation, resource, options).then((request) => request(axios, basePath));
|
|
26686
26968
|
},
|
|
26969
|
+
/**
|
|
26970
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
26971
|
+
* @summary List the build cache entries of a CI runner pool
|
|
26972
|
+
* @param {string} organisation The organisation ID
|
|
26973
|
+
* @param {string} resource The CI runner pool resource ID
|
|
26974
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
26975
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
26976
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
26977
|
+
* @param {*} [options] Override http request option.
|
|
26978
|
+
* @throws {RequiredError}
|
|
26979
|
+
*/
|
|
26980
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
26981
|
+
return localVarFp.listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(axios, basePath));
|
|
26982
|
+
},
|
|
26687
26983
|
/**
|
|
26688
26984
|
*
|
|
26689
26985
|
* @summary List an organisation\'s shared resources
|
|
@@ -26741,6 +27037,19 @@ class ResourcesApi extends base_1.BaseAPI {
|
|
|
26741
27037
|
createOrgResource(organisation, createOrgResourceRequest, options) {
|
|
26742
27038
|
return (0, exports.ResourcesApiFp)(this.configuration).createOrgResource(organisation, createOrgResourceRequest, options).then((request) => request(this.axios, this.basePath));
|
|
26743
27039
|
}
|
|
27040
|
+
/**
|
|
27041
|
+
* Deletes the part of the pool\'s build cache that the body names: one entry (repoId, ref, version and key), one version of a ref (repoId, ref, version), one ref (repoId, ref), one repository (repoId) or, with exactly {\"all\": true}, the whole cache. A missing or empty body is refused. Only the named scope is deleted; a delete is permanent, and a later job saves a new entry. A large delete stops after about 12 seconds and returns complete false with what it deleted so far; send the same request again until complete is true. complete false means: send the same request again. If a call returns complete false with deletedEntries 0, stop and try again later, because a storage call failed, timed out or refused objects. After a 502 the delete may still be running on the platform; the request is idempotent, so a client can send the same request again.
|
|
27042
|
+
* @summary Delete build cache entries of a CI runner pool
|
|
27043
|
+
* @param {string} organisation The organisation ID
|
|
27044
|
+
* @param {string} resource The CI runner pool resource ID
|
|
27045
|
+
* @param {CiCacheDeleteRequest} ciCacheDeleteRequest
|
|
27046
|
+
* @param {*} [options] Override http request option.
|
|
27047
|
+
* @throws {RequiredError}
|
|
27048
|
+
* @memberof ResourcesApi
|
|
27049
|
+
*/
|
|
27050
|
+
deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options) {
|
|
27051
|
+
return (0, exports.ResourcesApiFp)(this.configuration).deleteCiRunnerPoolCache(organisation, resource, ciCacheDeleteRequest, options).then((request) => request(this.axios, this.basePath));
|
|
27052
|
+
}
|
|
26744
27053
|
/**
|
|
26745
27054
|
* Deletes the resource and its contents. This cannot be undone. A resource with live attachments is rejected unless force is set.
|
|
26746
27055
|
* @summary Delete a shared resource
|
|
@@ -26768,6 +27077,19 @@ class ResourcesApi extends base_1.BaseAPI {
|
|
|
26768
27077
|
detachOrgResource(organisation, resource, application, environment, options) {
|
|
26769
27078
|
return (0, exports.ResourcesApiFp)(this.configuration).detachOrgResource(organisation, resource, application, environment, options).then((request) => request(this.axios, this.basePath));
|
|
26770
27079
|
}
|
|
27080
|
+
/**
|
|
27081
|
+
* Sums of the pool\'s build cache hits, misses, saves and bytes over the last days days. hitRate is hits / (hits + misses), or null when both are 0.
|
|
27082
|
+
* @summary Get build cache statistics of a CI runner pool
|
|
27083
|
+
* @param {string} organisation The organisation ID
|
|
27084
|
+
* @param {string} resource The CI runner pool resource ID
|
|
27085
|
+
* @param {number} [days]
|
|
27086
|
+
* @param {*} [options] Override http request option.
|
|
27087
|
+
* @throws {RequiredError}
|
|
27088
|
+
* @memberof ResourcesApi
|
|
27089
|
+
*/
|
|
27090
|
+
getCiRunnerPoolCacheStats(organisation, resource, days, options) {
|
|
27091
|
+
return (0, exports.ResourcesApiFp)(this.configuration).getCiRunnerPoolCacheStats(organisation, resource, days, options).then((request) => request(this.axios, this.basePath));
|
|
27092
|
+
}
|
|
26771
27093
|
/**
|
|
26772
27094
|
*
|
|
26773
27095
|
* @summary Get a shared resource and its attachments
|
|
@@ -26792,6 +27114,21 @@ class ResourcesApi extends base_1.BaseAPI {
|
|
|
26792
27114
|
getOrgResourceCredentials(organisation, resource, options) {
|
|
26793
27115
|
return (0, exports.ResourcesApiFp)(this.configuration).getOrgResourceCredentials(organisation, resource, options).then((request) => request(this.axios, this.basePath));
|
|
26794
27116
|
}
|
|
27117
|
+
/**
|
|
27118
|
+
* Lists the GitHub Actions cache entries of a CI runner pool, in storage order (repository id, then ref, version and key). totalBytes and entryCount cover every entry that matches the filter, not only this page; on a very large cache the count stops after about 10 seconds and totalsComplete is false. A page holds at most 500 entries; pass nextCursor as cursor, with the same filter, until it is null. repo is null when no repository name is recorded.
|
|
27119
|
+
* @summary List the build cache entries of a CI runner pool
|
|
27120
|
+
* @param {string} organisation The organisation ID
|
|
27121
|
+
* @param {string} resource The CI runner pool resource ID
|
|
27122
|
+
* @param {number} [repoId] Only the entries of this GitHub repository id.
|
|
27123
|
+
* @param {string} [ref] Only the entries saved by this git ref. Needs repoId. Must start with refs/ and be a valid git ref name without %.
|
|
27124
|
+
* @param {string} [cursor] Opaque nextCursor from the previous page of the same filter.
|
|
27125
|
+
* @param {*} [options] Override http request option.
|
|
27126
|
+
* @throws {RequiredError}
|
|
27127
|
+
* @memberof ResourcesApi
|
|
27128
|
+
*/
|
|
27129
|
+
listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options) {
|
|
27130
|
+
return (0, exports.ResourcesApiFp)(this.configuration).listCiRunnerPoolCache(organisation, resource, repoId, ref, cursor, options).then((request) => request(this.axios, this.basePath));
|
|
27131
|
+
}
|
|
26795
27132
|
/**
|
|
26796
27133
|
*
|
|
26797
27134
|
* @summary List an organisation\'s shared resources
|
package/dist/common.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* QuantCDN API
|
|
3
3
|
* 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.
|
|
4
4
|
*
|
|
5
|
-
* The version of the OpenAPI document: 4.
|
|
5
|
+
* The version of the OpenAPI document: 4.39.0
|
|
6
6
|
*
|
|
7
7
|
*
|
|
8
8
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|