@quantcdn/quant-client 4.19.0 → 4.21.1

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
7
7
  *
8
- * The version of the OpenAPI document: 4.19.0
8
+ * The version of the OpenAPI document: 4.21.0
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -23,11 +23,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
23
23
  };
24
24
  Object.defineProperty(exports, "__esModule", { value: true });
25
25
  exports.ImportSkillRequestSourceTypeEnum = exports.ImportSkillCollectionRequestSourceTypeEnum = exports.ImageGenerationRequestTextToImageParamsControlModeEnum = exports.ImageGenerationRequestTextToImageParamsStyleEnum = exports.ImageGenerationRequestOutPaintingParamsOutPaintingModeEnum = exports.ImageGenerationRequestImageGenerationConfigQualityEnum = exports.ImageGenerationRequestRegionEnum = exports.ImageGenerationRequestTaskTypeEnum = exports.GetTask200ResponseStatusEnum = exports.GetSlackBot200ResponseBotStatusEnum = exports.GetSlackBot200ResponseBotSetupTypeEnum = exports.GetScalingPolicyResponseMetricEnum = exports.GetRestoreStatus200ResponseStatusEnum = exports.GetGovernanceConfig200ResponseModelPolicyEnum = exports.GetDurableExecutionStatus200ResponseStatusEnum = exports.GetCustomTool200ResponseToolResponseModeEnum = exports.GetAIOrchestrationStatus200ResponseToolsInnerStatusEnum = exports.GetAIOrchestrationStatus200ResponseStatusEnum = exports.EnvironmentSummaryDeploymentStatusEnum = exports.EnvironmentResponseDeploymentStatusEnum = exports.EmbeddingsRequestDimensionsEnum = exports.CronRunStatusEnum = exports.CronRunRunTypeEnum = exports.CreateTaskRequestStatusEnum = exports.CreateSlackBotRequestSetupTypeEnum = 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.ApplicationImageReferenceTypeEnum = exports.ApplicationDatabaseRdsInstanceEngineEnum = void 0;
26
- 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.V2RuleProxyActionNotifyEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = 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.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = void 0;
27
- exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = exports.AIUsageApi = exports.AIUsageApiFactory = exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = 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;
28
- 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 = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = void 0;
29
- exports.SubscriptionApiFp = exports.SubscriptionApiAxiosParamCreator = exports.ListScalingPoliciesMetricEnum = exports.DeleteScalingPolicyMetricEnum = exports.ScalingPolicyApi = exports.ScalingPolicyApiFactory = exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RestoreManagementApi = exports.RestoreManagementApiFactory = exports.RestoreManagementApiFp = exports.RestoreManagementApiAxiosParamCreator = exports.PurgeApi = exports.PurgeApiFactory = exports.PurgeApiFp = exports.PurgeApiAxiosParamCreator = exports.ProjectsApi = exports.ProjectsApiFactory = exports.ProjectsApiFp = exports.ProjectsApiAxiosParamCreator = exports.OrganizationsApi = exports.OrganizationsApiFactory = exports.OrganizationsApiFp = exports.OrganizationsApiAxiosParamCreator = exports.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = void 0;
30
- 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 = void 0;
26
+ 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.V2RuleProxyActionNotifyEnum = exports.V2MetricsMetaGranularityEnum = exports.V2MetricsMetaPeriodEnum = 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.QueryVectorCollectionRequestSortOrderEnum = exports.QueryVectorCollectionRequestSortByEnum = exports.QueryVectorCollection200ResponsePaginationSortOrderEnum = exports.QueryVectorCollection200ResponsePaginationSortByEnum = exports.QueryVectorCollection200ResponseSearchModeEnum = exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = exports.ListTasks200ResponseTasksInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerStatusEnum = exports.ListSlackBots200ResponseBotsInnerSetupTypeEnum = exports.ListOrchestrationBatches200ResponseBatchesInnerStatusEnum = void 0;
27
+ exports.AIUsageApi = exports.AIUsageApiFactory = exports.AIUsageApiFp = exports.AIUsageApiAxiosParamCreator = exports.ListAIToolExecutionsStatusEnum = exports.AIToolsApi = exports.AIToolsApiFactory = exports.AIToolsApiFp = exports.AIToolsApiAxiosParamCreator = exports.ListTasksStatusEnum = exports.AITaskManagementApi = exports.AITaskManagementApiFactory = exports.AITaskManagementApiFp = exports.AITaskManagementApiAxiosParamCreator = exports.AISlackBotsApi = exports.AISlackBotsApiFactory = exports.AISlackBotsApiFp = exports.AISlackBotsApiAxiosParamCreator = exports.AISkillsApi = exports.AISkillsApiFactory = exports.AISkillsApiFp = exports.AISkillsApiAxiosParamCreator = exports.AISessionsApi = exports.AISessionsApiFactory = exports.AISessionsApiFp = exports.AISessionsApiAxiosParamCreator = exports.AISearchApi = exports.AISearchApiFactory = exports.AISearchApiFp = exports.AISearchApiAxiosParamCreator = exports.ListOrchestrationsStatusEnum = exports.AIOrchestrationsApi = exports.AIOrchestrationsApiFactory = exports.AIOrchestrationsApiFp = exports.AIOrchestrationsApiAxiosParamCreator = exports.ListAIModelsFeatureEnum = exports.AIModelsApi = exports.AIModelsApiFactory = exports.AIModelsApiFp = exports.AIModelsApiAxiosParamCreator = exports.AIInferenceApi = exports.AIInferenceApiFactory = exports.AIInferenceApiFp = exports.AIInferenceApiAxiosParamCreator = exports.AIGovernanceApi = exports.AIGovernanceApiFactory = exports.AIGovernanceApiFp = exports.AIGovernanceApiAxiosParamCreator = exports.AIFilterPoliciesApi = exports.AIFilterPoliciesApiFactory = void 0;
28
+ 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 = exports.BackupManagementApiAxiosParamCreator = exports.ApplicationsApi = exports.ApplicationsApiFactory = exports.ApplicationsApiFp = exports.ApplicationsApiAxiosParamCreator = exports.AIVectorDatabaseApi = exports.AIVectorDatabaseApiFactory = exports.AIVectorDatabaseApiFp = exports.AIVectorDatabaseApiAxiosParamCreator = void 0;
29
+ exports.ScalingPolicyApiFp = exports.ScalingPolicyApiAxiosParamCreator = exports.SSHAccessApi = exports.SSHAccessApiFactory = exports.SSHAccessApiFp = exports.SSHAccessApiAxiosParamCreator = exports.RulesApi = exports.RulesApiFactory = exports.RulesApiFp = exports.RulesApiAxiosParamCreator = exports.RestoreManagementApi = exports.RestoreManagementApiFactory = exports.RestoreManagementApiFp = exports.RestoreManagementApiAxiosParamCreator = exports.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.KVApi = exports.KVApiFactory = exports.KVApiFp = exports.KVApiAxiosParamCreator = exports.HeadersApi = exports.HeadersApiFactory = exports.HeadersApiFp = exports.HeadersApiAxiosParamCreator = exports.SyncToEnvironmentTypeEnum = exports.ListSyncOperationsTypeEnum = exports.EnvironmentsApi = exports.EnvironmentsApiFactory = exports.EnvironmentsApiFp = exports.EnvironmentsApiAxiosParamCreator = exports.DomainsApi = exports.DomainsApiFactory = exports.DomainsApiFp = exports.DomainsApiAxiosParamCreator = exports.CronApi = exports.CronApiFactory = void 0;
30
+ 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 = void 0;
31
31
  const axios_1 = require("axios");
32
32
  // Some imports not used depending on template conditions
33
33
  // @ts-ignore
@@ -308,6 +308,17 @@ exports.ListTasks200ResponseTasksInnerStatusEnum = {
308
308
  Cancelled: 'cancelled',
309
309
  Blocked: 'blocked'
310
310
  };
311
+ exports.OaiChatCompletions200ResponseChoicesInnerFinishReasonEnum = {
312
+ Stop: 'stop',
313
+ ToolCalls: 'tool_calls',
314
+ Length: 'length'
315
+ };
316
+ exports.OaiChatCompletionsRequestMessagesInnerRoleEnum = {
317
+ System: 'system',
318
+ User: 'user',
319
+ Assistant: 'assistant',
320
+ Tool: 'tool'
321
+ };
311
322
  exports.PatchEnvironmentComposeRequestSpotConfigurationStrategyEnum = {
312
323
  Off: 'off',
313
324
  SpotOnly: 'spot-only',
@@ -10913,20 +10924,24 @@ const CommandsApiAxiosParamCreator = function (configuration) {
10913
10924
  *
10914
10925
  * @summary Create a command for an environment
10915
10926
  * @param {string} organisation The organisation ID
10927
+ * @param {string} application The application ID
10916
10928
  * @param {string} environment The environment ID
10917
10929
  * @param {CreateCommandRequest} createCommandRequest
10918
10930
  * @param {*} [options] Override http request option.
10919
10931
  * @throws {RequiredError}
10920
10932
  */
10921
- createCommand: (organisation_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, environment, createCommandRequest, options = {}) {
10933
+ createCommand: (organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, createCommandRequest_1, ...args_1], void 0, function* (organisation, application, environment, createCommandRequest, options = {}) {
10922
10934
  // verify required parameter 'organisation' is not null or undefined
10923
10935
  (0, common_1.assertParamExists)('createCommand', 'organisation', organisation);
10936
+ // verify required parameter 'application' is not null or undefined
10937
+ (0, common_1.assertParamExists)('createCommand', 'application', application);
10924
10938
  // verify required parameter 'environment' is not null or undefined
10925
10939
  (0, common_1.assertParamExists)('createCommand', 'environment', environment);
10926
10940
  // verify required parameter 'createCommandRequest' is not null or undefined
10927
10941
  (0, common_1.assertParamExists)('createCommand', 'createCommandRequest', createCommandRequest);
10928
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
10942
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
10929
10943
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
10944
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
10930
10945
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
10931
10946
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
10932
10947
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -10954,20 +10969,24 @@ const CommandsApiAxiosParamCreator = function (configuration) {
10954
10969
  *
10955
10970
  * @summary Get a command
10956
10971
  * @param {string} organisation The organisation ID
10972
+ * @param {string} application The application ID
10957
10973
  * @param {string} environment The environment ID
10958
- * @param {string} command The command ID
10974
+ * @param {string} command The command run ID
10959
10975
  * @param {*} [options] Override http request option.
10960
10976
  * @throws {RequiredError}
10961
10977
  */
10962
- getCommand: (organisation_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, command_1, ...args_1], void 0, function* (organisation, environment, command, options = {}) {
10978
+ getCommand: (organisation_1, application_1, environment_1, command_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, command_1, ...args_1], void 0, function* (organisation, application, environment, command, options = {}) {
10963
10979
  // verify required parameter 'organisation' is not null or undefined
10964
10980
  (0, common_1.assertParamExists)('getCommand', 'organisation', organisation);
10981
+ // verify required parameter 'application' is not null or undefined
10982
+ (0, common_1.assertParamExists)('getCommand', 'application', application);
10965
10983
  // verify required parameter 'environment' is not null or undefined
10966
10984
  (0, common_1.assertParamExists)('getCommand', 'environment', environment);
10967
10985
  // verify required parameter 'command' is not null or undefined
10968
10986
  (0, common_1.assertParamExists)('getCommand', 'command', command);
10969
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands/{command}`
10987
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands/{command}`
10970
10988
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
10989
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
10971
10990
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)))
10972
10991
  .replace(`{${"command"}}`, encodeURIComponent(String(command)));
10973
10992
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
@@ -10994,17 +11013,21 @@ const CommandsApiAxiosParamCreator = function (configuration) {
10994
11013
  *
10995
11014
  * @summary Get all commands for an environment
10996
11015
  * @param {string} organisation The organisation ID
11016
+ * @param {string} application The application ID
10997
11017
  * @param {string} environment The environment ID
10998
11018
  * @param {*} [options] Override http request option.
10999
11019
  * @throws {RequiredError}
11000
11020
  */
11001
- listCommands: (organisation_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, environment_1, ...args_1], void 0, function* (organisation, environment, options = {}) {
11021
+ listCommands: (organisation_1, application_1, environment_1, ...args_1) => __awaiter(this, [organisation_1, application_1, environment_1, ...args_1], void 0, function* (organisation, application, environment, options = {}) {
11002
11022
  // verify required parameter 'organisation' is not null or undefined
11003
11023
  (0, common_1.assertParamExists)('listCommands', 'organisation', organisation);
11024
+ // verify required parameter 'application' is not null or undefined
11025
+ (0, common_1.assertParamExists)('listCommands', 'application', application);
11004
11026
  // verify required parameter 'environment' is not null or undefined
11005
11027
  (0, common_1.assertParamExists)('listCommands', 'environment', environment);
11006
- const localVarPath = `/api/v3/organizations/{organisation}/environments/{environment}/commands`
11028
+ const localVarPath = `/api/v3/organizations/{organisation}/applications/{application}/environments/{environment}/commands`
11007
11029
  .replace(`{${"organisation"}}`, encodeURIComponent(String(organisation)))
11030
+ .replace(`{${"application"}}`, encodeURIComponent(String(application)))
11008
11031
  .replace(`{${"environment"}}`, encodeURIComponent(String(environment)));
11009
11032
  // use dummy base URL string because the URL constructor only accepts absolute URLs.
11010
11033
  const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
@@ -11040,15 +11063,16 @@ const CommandsApiFp = function (configuration) {
11040
11063
  *
11041
11064
  * @summary Create a command for an environment
11042
11065
  * @param {string} organisation The organisation ID
11066
+ * @param {string} application The application ID
11043
11067
  * @param {string} environment The environment ID
11044
11068
  * @param {CreateCommandRequest} createCommandRequest
11045
11069
  * @param {*} [options] Override http request option.
11046
11070
  * @throws {RequiredError}
11047
11071
  */
11048
- createCommand(organisation, environment, createCommandRequest, options) {
11072
+ createCommand(organisation, application, environment, createCommandRequest, options) {
11049
11073
  return __awaiter(this, void 0, void 0, function* () {
11050
11074
  var _a, _b, _c;
11051
- const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, environment, createCommandRequest, options);
11075
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.createCommand(organisation, application, environment, createCommandRequest, options);
11052
11076
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11053
11077
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.createCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11054
11078
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11058,15 +11082,16 @@ const CommandsApiFp = function (configuration) {
11058
11082
  *
11059
11083
  * @summary Get a command
11060
11084
  * @param {string} organisation The organisation ID
11085
+ * @param {string} application The application ID
11061
11086
  * @param {string} environment The environment ID
11062
- * @param {string} command The command ID
11087
+ * @param {string} command The command run ID
11063
11088
  * @param {*} [options] Override http request option.
11064
11089
  * @throws {RequiredError}
11065
11090
  */
11066
- getCommand(organisation, environment, command, options) {
11091
+ getCommand(organisation, application, environment, command, options) {
11067
11092
  return __awaiter(this, void 0, void 0, function* () {
11068
11093
  var _a, _b, _c;
11069
- const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, environment, command, options);
11094
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.getCommand(organisation, application, environment, command, options);
11070
11095
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11071
11096
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.getCommand']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11072
11097
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11076,14 +11101,15 @@ const CommandsApiFp = function (configuration) {
11076
11101
  *
11077
11102
  * @summary Get all commands for an environment
11078
11103
  * @param {string} organisation The organisation ID
11104
+ * @param {string} application The application ID
11079
11105
  * @param {string} environment The environment ID
11080
11106
  * @param {*} [options] Override http request option.
11081
11107
  * @throws {RequiredError}
11082
11108
  */
11083
- listCommands(organisation, environment, options) {
11109
+ listCommands(organisation, application, environment, options) {
11084
11110
  return __awaiter(this, void 0, void 0, function* () {
11085
11111
  var _a, _b, _c;
11086
- const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, environment, options);
11112
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.listCommands(organisation, application, environment, options);
11087
11113
  const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
11088
11114
  const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['CommandsApi.listCommands']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
11089
11115
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
@@ -11103,36 +11129,39 @@ const CommandsApiFactory = function (configuration, basePath, axios) {
11103
11129
  *
11104
11130
  * @summary Create a command for an environment
11105
11131
  * @param {string} organisation The organisation ID
11132
+ * @param {string} application The application ID
11106
11133
  * @param {string} environment The environment ID
11107
11134
  * @param {CreateCommandRequest} createCommandRequest
11108
11135
  * @param {*} [options] Override http request option.
11109
11136
  * @throws {RequiredError}
11110
11137
  */
11111
- createCommand(organisation, environment, createCommandRequest, options) {
11112
- return localVarFp.createCommand(organisation, environment, createCommandRequest, options).then((request) => request(axios, basePath));
11138
+ createCommand(organisation, application, environment, createCommandRequest, options) {
11139
+ return localVarFp.createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(axios, basePath));
11113
11140
  },
11114
11141
  /**
11115
11142
  *
11116
11143
  * @summary Get a command
11117
11144
  * @param {string} organisation The organisation ID
11145
+ * @param {string} application The application ID
11118
11146
  * @param {string} environment The environment ID
11119
- * @param {string} command The command ID
11147
+ * @param {string} command The command run ID
11120
11148
  * @param {*} [options] Override http request option.
11121
11149
  * @throws {RequiredError}
11122
11150
  */
11123
- getCommand(organisation, environment, command, options) {
11124
- return localVarFp.getCommand(organisation, environment, command, options).then((request) => request(axios, basePath));
11151
+ getCommand(organisation, application, environment, command, options) {
11152
+ return localVarFp.getCommand(organisation, application, environment, command, options).then((request) => request(axios, basePath));
11125
11153
  },
11126
11154
  /**
11127
11155
  *
11128
11156
  * @summary Get all commands for an environment
11129
11157
  * @param {string} organisation The organisation ID
11158
+ * @param {string} application The application ID
11130
11159
  * @param {string} environment The environment ID
11131
11160
  * @param {*} [options] Override http request option.
11132
11161
  * @throws {RequiredError}
11133
11162
  */
11134
- listCommands(organisation, environment, options) {
11135
- return localVarFp.listCommands(organisation, environment, options).then((request) => request(axios, basePath));
11163
+ listCommands(organisation, application, environment, options) {
11164
+ return localVarFp.listCommands(organisation, application, environment, options).then((request) => request(axios, basePath));
11136
11165
  },
11137
11166
  };
11138
11167
  };
@@ -11148,39 +11177,42 @@ class CommandsApi extends base_1.BaseAPI {
11148
11177
  *
11149
11178
  * @summary Create a command for an environment
11150
11179
  * @param {string} organisation The organisation ID
11180
+ * @param {string} application The application ID
11151
11181
  * @param {string} environment The environment ID
11152
11182
  * @param {CreateCommandRequest} createCommandRequest
11153
11183
  * @param {*} [options] Override http request option.
11154
11184
  * @throws {RequiredError}
11155
11185
  * @memberof CommandsApi
11156
11186
  */
11157
- createCommand(organisation, environment, createCommandRequest, options) {
11158
- return (0, exports.CommandsApiFp)(this.configuration).createCommand(organisation, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
11187
+ createCommand(organisation, application, environment, createCommandRequest, options) {
11188
+ return (0, exports.CommandsApiFp)(this.configuration).createCommand(organisation, application, environment, createCommandRequest, options).then((request) => request(this.axios, this.basePath));
11159
11189
  }
11160
11190
  /**
11161
11191
  *
11162
11192
  * @summary Get a command
11163
11193
  * @param {string} organisation The organisation ID
11194
+ * @param {string} application The application ID
11164
11195
  * @param {string} environment The environment ID
11165
- * @param {string} command The command ID
11196
+ * @param {string} command The command run ID
11166
11197
  * @param {*} [options] Override http request option.
11167
11198
  * @throws {RequiredError}
11168
11199
  * @memberof CommandsApi
11169
11200
  */
11170
- getCommand(organisation, environment, command, options) {
11171
- return (0, exports.CommandsApiFp)(this.configuration).getCommand(organisation, environment, command, options).then((request) => request(this.axios, this.basePath));
11201
+ getCommand(organisation, application, environment, command, options) {
11202
+ return (0, exports.CommandsApiFp)(this.configuration).getCommand(organisation, application, environment, command, options).then((request) => request(this.axios, this.basePath));
11172
11203
  }
11173
11204
  /**
11174
11205
  *
11175
11206
  * @summary Get all commands for an environment
11176
11207
  * @param {string} organisation The organisation ID
11208
+ * @param {string} application The application ID
11177
11209
  * @param {string} environment The environment ID
11178
11210
  * @param {*} [options] Override http request option.
11179
11211
  * @throws {RequiredError}
11180
11212
  * @memberof CommandsApi
11181
11213
  */
11182
- listCommands(organisation, environment, options) {
11183
- return (0, exports.CommandsApiFp)(this.configuration).listCommands(organisation, environment, options).then((request) => request(this.axios, this.basePath));
11214
+ listCommands(organisation, application, environment, options) {
11215
+ return (0, exports.CommandsApiFp)(this.configuration).listCommands(organisation, application, environment, options).then((request) => request(this.axios, this.basePath));
11184
11216
  }
11185
11217
  }
11186
11218
  exports.CommandsApi = CommandsApi;
@@ -16321,6 +16353,315 @@ class KVApi extends base_1.BaseAPI {
16321
16353
  }
16322
16354
  }
16323
16355
  exports.KVApi = KVApi;
16356
+ /**
16357
+ * OpenAICompatibilityApi - axios parameter creator
16358
+ * @export
16359
+ */
16360
+ const OpenAICompatibilityApiAxiosParamCreator = function (configuration) {
16361
+ return {
16362
+ /**
16363
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
16364
+ * @summary Create a chat completion (OpenAI-compatible)
16365
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
16366
+ * @param {*} [options] Override http request option.
16367
+ * @throws {RequiredError}
16368
+ */
16369
+ oaiChatCompletions: (oaiChatCompletionsRequest_1, ...args_1) => __awaiter(this, [oaiChatCompletionsRequest_1, ...args_1], void 0, function* (oaiChatCompletionsRequest, options = {}) {
16370
+ // verify required parameter 'oaiChatCompletionsRequest' is not null or undefined
16371
+ (0, common_1.assertParamExists)('oaiChatCompletions', 'oaiChatCompletionsRequest', oaiChatCompletionsRequest);
16372
+ const localVarPath = `/oai/v1/chat/completions`;
16373
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16374
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16375
+ let baseOptions;
16376
+ if (configuration) {
16377
+ baseOptions = configuration.baseOptions;
16378
+ }
16379
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16380
+ const localVarHeaderParameter = {};
16381
+ const localVarQueryParameter = {};
16382
+ // authentication BearerAuth required
16383
+ // http bearer authentication required
16384
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16385
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16386
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16387
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16388
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16389
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oaiChatCompletionsRequest, localVarRequestOptions, configuration);
16390
+ return {
16391
+ url: (0, common_1.toPathString)(localVarUrlObj),
16392
+ options: localVarRequestOptions,
16393
+ };
16394
+ }),
16395
+ /**
16396
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
16397
+ * @summary Create embeddings (OpenAI-compatible)
16398
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
16399
+ * @param {*} [options] Override http request option.
16400
+ * @throws {RequiredError}
16401
+ */
16402
+ oaiEmbeddings: (oaiEmbeddingsRequest_1, ...args_1) => __awaiter(this, [oaiEmbeddingsRequest_1, ...args_1], void 0, function* (oaiEmbeddingsRequest, options = {}) {
16403
+ // verify required parameter 'oaiEmbeddingsRequest' is not null or undefined
16404
+ (0, common_1.assertParamExists)('oaiEmbeddings', 'oaiEmbeddingsRequest', oaiEmbeddingsRequest);
16405
+ const localVarPath = `/oai/v1/embeddings`;
16406
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16407
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16408
+ let baseOptions;
16409
+ if (configuration) {
16410
+ baseOptions = configuration.baseOptions;
16411
+ }
16412
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
16413
+ const localVarHeaderParameter = {};
16414
+ const localVarQueryParameter = {};
16415
+ // authentication BearerAuth required
16416
+ // http bearer authentication required
16417
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16418
+ localVarHeaderParameter['Content-Type'] = 'application/json';
16419
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16420
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16421
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16422
+ localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(oaiEmbeddingsRequest, localVarRequestOptions, configuration);
16423
+ return {
16424
+ url: (0, common_1.toPathString)(localVarUrlObj),
16425
+ options: localVarRequestOptions,
16426
+ };
16427
+ }),
16428
+ /**
16429
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
16430
+ * @summary Retrieve a model (OpenAI-compatible)
16431
+ * @param {string} model
16432
+ * @param {*} [options] Override http request option.
16433
+ * @throws {RequiredError}
16434
+ */
16435
+ oaiGetModel: (model_1, ...args_1) => __awaiter(this, [model_1, ...args_1], void 0, function* (model, options = {}) {
16436
+ // verify required parameter 'model' is not null or undefined
16437
+ (0, common_1.assertParamExists)('oaiGetModel', 'model', model);
16438
+ const localVarPath = `/oai/v1/models/{model}`
16439
+ .replace(`{${"model"}}`, encodeURIComponent(String(model)));
16440
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16441
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16442
+ let baseOptions;
16443
+ if (configuration) {
16444
+ baseOptions = configuration.baseOptions;
16445
+ }
16446
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16447
+ const localVarHeaderParameter = {};
16448
+ const localVarQueryParameter = {};
16449
+ // authentication BearerAuth required
16450
+ // http bearer authentication required
16451
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16452
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16453
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16454
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16455
+ return {
16456
+ url: (0, common_1.toPathString)(localVarUrlObj),
16457
+ options: localVarRequestOptions,
16458
+ };
16459
+ }),
16460
+ /**
16461
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
16462
+ * @summary List available models (OpenAI-compatible)
16463
+ * @param {*} [options] Override http request option.
16464
+ * @throws {RequiredError}
16465
+ */
16466
+ oaiListModels: (...args_1) => __awaiter(this, [...args_1], void 0, function* (options = {}) {
16467
+ const localVarPath = `/oai/v1/models`;
16468
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
16469
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
16470
+ let baseOptions;
16471
+ if (configuration) {
16472
+ baseOptions = configuration.baseOptions;
16473
+ }
16474
+ const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
16475
+ const localVarHeaderParameter = {};
16476
+ const localVarQueryParameter = {};
16477
+ // authentication BearerAuth required
16478
+ // http bearer authentication required
16479
+ yield (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
16480
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
16481
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
16482
+ localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
16483
+ return {
16484
+ url: (0, common_1.toPathString)(localVarUrlObj),
16485
+ options: localVarRequestOptions,
16486
+ };
16487
+ }),
16488
+ };
16489
+ };
16490
+ exports.OpenAICompatibilityApiAxiosParamCreator = OpenAICompatibilityApiAxiosParamCreator;
16491
+ /**
16492
+ * OpenAICompatibilityApi - functional programming interface
16493
+ * @export
16494
+ */
16495
+ const OpenAICompatibilityApiFp = function (configuration) {
16496
+ const localVarAxiosParamCreator = (0, exports.OpenAICompatibilityApiAxiosParamCreator)(configuration);
16497
+ return {
16498
+ /**
16499
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
16500
+ * @summary Create a chat completion (OpenAI-compatible)
16501
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
16502
+ * @param {*} [options] Override http request option.
16503
+ * @throws {RequiredError}
16504
+ */
16505
+ oaiChatCompletions(oaiChatCompletionsRequest, options) {
16506
+ return __awaiter(this, void 0, void 0, function* () {
16507
+ var _a, _b, _c;
16508
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiChatCompletions(oaiChatCompletionsRequest, options);
16509
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16510
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiChatCompletions']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16511
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16512
+ });
16513
+ },
16514
+ /**
16515
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
16516
+ * @summary Create embeddings (OpenAI-compatible)
16517
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
16518
+ * @param {*} [options] Override http request option.
16519
+ * @throws {RequiredError}
16520
+ */
16521
+ oaiEmbeddings(oaiEmbeddingsRequest, options) {
16522
+ return __awaiter(this, void 0, void 0, function* () {
16523
+ var _a, _b, _c;
16524
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiEmbeddings(oaiEmbeddingsRequest, options);
16525
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16526
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiEmbeddings']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16527
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16528
+ });
16529
+ },
16530
+ /**
16531
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
16532
+ * @summary Retrieve a model (OpenAI-compatible)
16533
+ * @param {string} model
16534
+ * @param {*} [options] Override http request option.
16535
+ * @throws {RequiredError}
16536
+ */
16537
+ oaiGetModel(model, options) {
16538
+ return __awaiter(this, void 0, void 0, function* () {
16539
+ var _a, _b, _c;
16540
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiGetModel(model, options);
16541
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16542
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiGetModel']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16543
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16544
+ });
16545
+ },
16546
+ /**
16547
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
16548
+ * @summary List available models (OpenAI-compatible)
16549
+ * @param {*} [options] Override http request option.
16550
+ * @throws {RequiredError}
16551
+ */
16552
+ oaiListModels(options) {
16553
+ return __awaiter(this, void 0, void 0, function* () {
16554
+ var _a, _b, _c;
16555
+ const localVarAxiosArgs = yield localVarAxiosParamCreator.oaiListModels(options);
16556
+ const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
16557
+ const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['OpenAICompatibilityApi.oaiListModels']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
16558
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
16559
+ });
16560
+ },
16561
+ };
16562
+ };
16563
+ exports.OpenAICompatibilityApiFp = OpenAICompatibilityApiFp;
16564
+ /**
16565
+ * OpenAICompatibilityApi - factory interface
16566
+ * @export
16567
+ */
16568
+ const OpenAICompatibilityApiFactory = function (configuration, basePath, axios) {
16569
+ const localVarFp = (0, exports.OpenAICompatibilityApiFp)(configuration);
16570
+ return {
16571
+ /**
16572
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
16573
+ * @summary Create a chat completion (OpenAI-compatible)
16574
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
16575
+ * @param {*} [options] Override http request option.
16576
+ * @throws {RequiredError}
16577
+ */
16578
+ oaiChatCompletions(oaiChatCompletionsRequest, options) {
16579
+ return localVarFp.oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(axios, basePath));
16580
+ },
16581
+ /**
16582
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
16583
+ * @summary Create embeddings (OpenAI-compatible)
16584
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
16585
+ * @param {*} [options] Override http request option.
16586
+ * @throws {RequiredError}
16587
+ */
16588
+ oaiEmbeddings(oaiEmbeddingsRequest, options) {
16589
+ return localVarFp.oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(axios, basePath));
16590
+ },
16591
+ /**
16592
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
16593
+ * @summary Retrieve a model (OpenAI-compatible)
16594
+ * @param {string} model
16595
+ * @param {*} [options] Override http request option.
16596
+ * @throws {RequiredError}
16597
+ */
16598
+ oaiGetModel(model, options) {
16599
+ return localVarFp.oaiGetModel(model, options).then((request) => request(axios, basePath));
16600
+ },
16601
+ /**
16602
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
16603
+ * @summary List available models (OpenAI-compatible)
16604
+ * @param {*} [options] Override http request option.
16605
+ * @throws {RequiredError}
16606
+ */
16607
+ oaiListModels(options) {
16608
+ return localVarFp.oaiListModels(options).then((request) => request(axios, basePath));
16609
+ },
16610
+ };
16611
+ };
16612
+ exports.OpenAICompatibilityApiFactory = OpenAICompatibilityApiFactory;
16613
+ /**
16614
+ * OpenAICompatibilityApi - object-oriented interface
16615
+ * @export
16616
+ * @class OpenAICompatibilityApi
16617
+ * @extends {BaseAPI}
16618
+ */
16619
+ class OpenAICompatibilityApi extends base_1.BaseAPI {
16620
+ /**
16621
+ * Drop-in replacement for OpenAI\'s POST /v1/chat/completions. Point any OpenAI SDK at base_url=https://<host>/oai/v1 and use a Quant API token (qc_...) as the api_key. Set `stream: true` to receive Server-Sent Events (chat.completion.chunk objects terminated by `data: [DONE]`); otherwise a single chat.completion object is returned. Supports tool/function calling and the standard tool_choice modes.
16622
+ * @summary Create a chat completion (OpenAI-compatible)
16623
+ * @param {OaiChatCompletionsRequest} oaiChatCompletionsRequest
16624
+ * @param {*} [options] Override http request option.
16625
+ * @throws {RequiredError}
16626
+ * @memberof OpenAICompatibilityApi
16627
+ */
16628
+ oaiChatCompletions(oaiChatCompletionsRequest, options) {
16629
+ return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiChatCompletions(oaiChatCompletionsRequest, options).then((request) => request(this.axios, this.basePath));
16630
+ }
16631
+ /**
16632
+ * Drop-in replacement for OpenAI\'s POST /v1/embeddings. Accepts a single string or an array of strings in `input` and returns a list of embedding objects.
16633
+ * @summary Create embeddings (OpenAI-compatible)
16634
+ * @param {OaiEmbeddingsRequest} oaiEmbeddingsRequest
16635
+ * @param {*} [options] Override http request option.
16636
+ * @throws {RequiredError}
16637
+ * @memberof OpenAICompatibilityApi
16638
+ */
16639
+ oaiEmbeddings(oaiEmbeddingsRequest, options) {
16640
+ return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiEmbeddings(oaiEmbeddingsRequest, options).then((request) => request(this.axios, this.basePath));
16641
+ }
16642
+ /**
16643
+ * Drop-in replacement for OpenAI\'s GET /v1/models/{model}.
16644
+ * @summary Retrieve a model (OpenAI-compatible)
16645
+ * @param {string} model
16646
+ * @param {*} [options] Override http request option.
16647
+ * @throws {RequiredError}
16648
+ * @memberof OpenAICompatibilityApi
16649
+ */
16650
+ oaiGetModel(model, options) {
16651
+ return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiGetModel(model, options).then((request) => request(this.axios, this.basePath));
16652
+ }
16653
+ /**
16654
+ * Drop-in replacement for OpenAI\'s GET /v1/models. Returns the model ids available to the organisation; pass one of these ids as `model` in chat/embeddings requests.
16655
+ * @summary List available models (OpenAI-compatible)
16656
+ * @param {*} [options] Override http request option.
16657
+ * @throws {RequiredError}
16658
+ * @memberof OpenAICompatibilityApi
16659
+ */
16660
+ oaiListModels(options) {
16661
+ return (0, exports.OpenAICompatibilityApiFp)(this.configuration).oaiListModels(options).then((request) => request(this.axios, this.basePath));
16662
+ }
16663
+ }
16664
+ exports.OpenAICompatibilityApi = OpenAICompatibilityApi;
16324
16665
  /**
16325
16666
  * OrganizationsApi - axios parameter creator
16326
16667
  * @export
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
4
4
  *
5
- * The version of the OpenAPI document: 4.19.0
5
+ * The version of the OpenAPI document: 4.21.0
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).