@mistralai/mistralai 2.2.1 → 2.2.5
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/FUNCTIONS.md +2 -2
- package/README.md +41 -2
- package/esm/extra/structChat.d.ts.map +1 -1
- package/esm/extra/structChat.js +30 -9
- package/esm/extra/structChat.js.map +1 -1
- package/esm/funcs/agentsComplete.js +1 -1
- package/esm/funcs/agentsStream.js +1 -1
- package/esm/funcs/audioSpeechComplete.js +1 -1
- package/esm/funcs/audioTranscriptionsComplete.js +1 -1
- package/esm/funcs/audioTranscriptionsStream.js +1 -1
- package/esm/funcs/audioVoicesCreate.js +1 -1
- package/esm/funcs/audioVoicesDelete.js +1 -1
- package/esm/funcs/audioVoicesGet.js +1 -1
- package/esm/funcs/audioVoicesGetSampleAudio.js +1 -1
- package/esm/funcs/audioVoicesList.js +1 -1
- package/esm/funcs/audioVoicesUpdate.js +1 -1
- package/esm/funcs/batchJobsCancel.js +1 -1
- package/esm/funcs/batchJobsCreate.js +1 -1
- package/esm/funcs/batchJobsDelete.js +1 -1
- package/esm/funcs/batchJobsGet.js +1 -1
- package/esm/funcs/batchJobsList.js +1 -1
- package/esm/funcs/betaAgentsCreate.js +1 -1
- package/esm/funcs/betaAgentsCreateVersionAlias.js +1 -1
- package/esm/funcs/betaAgentsDelete.js +1 -1
- package/esm/funcs/betaAgentsDeleteVersionAlias.js +1 -1
- package/esm/funcs/betaAgentsGet.js +1 -1
- package/esm/funcs/betaAgentsGetVersion.js +1 -1
- package/esm/funcs/betaAgentsList.js +1 -1
- package/esm/funcs/betaAgentsListVersionAliases.js +1 -1
- package/esm/funcs/betaAgentsListVersions.js +1 -1
- package/esm/funcs/betaAgentsUpdate.js +1 -1
- package/esm/funcs/betaAgentsUpdateVersion.js +1 -1
- package/esm/funcs/betaConnectorsActivateForOrganization.d.ts +19 -0
- package/esm/funcs/betaConnectorsActivateForOrganization.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsActivateForOrganization.js +93 -0
- package/esm/funcs/betaConnectorsActivateForOrganization.js.map +1 -0
- package/esm/funcs/betaConnectorsActivateForUser.d.ts +19 -0
- package/esm/funcs/betaConnectorsActivateForUser.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsActivateForUser.js +93 -0
- package/esm/funcs/betaConnectorsActivateForUser.js.map +1 -0
- package/esm/funcs/betaConnectorsActivateForWorkspace.d.ts +19 -0
- package/esm/funcs/betaConnectorsActivateForWorkspace.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsActivateForWorkspace.js +93 -0
- package/esm/funcs/betaConnectorsActivateForWorkspace.js.map +1 -0
- package/esm/funcs/betaConnectorsCallTool.js +1 -1
- package/esm/funcs/betaConnectorsCreate.js +1 -1
- package/esm/funcs/betaConnectorsCreateOrUpdateOrganizationCredentials.js +1 -1
- package/esm/funcs/betaConnectorsCreateOrUpdateUserCredentials.js +1 -1
- package/esm/funcs/betaConnectorsCreateOrUpdateWorkspaceCredentials.js +1 -1
- package/esm/funcs/betaConnectorsDeactivateForOrganization.d.ts +19 -0
- package/esm/funcs/betaConnectorsDeactivateForOrganization.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsDeactivateForOrganization.js +91 -0
- package/esm/funcs/betaConnectorsDeactivateForOrganization.js.map +1 -0
- package/esm/funcs/betaConnectorsDeactivateForUser.d.ts +19 -0
- package/esm/funcs/betaConnectorsDeactivateForUser.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsDeactivateForUser.js +90 -0
- package/esm/funcs/betaConnectorsDeactivateForUser.js.map +1 -0
- package/esm/funcs/betaConnectorsDeactivateForWorkspace.d.ts +19 -0
- package/esm/funcs/betaConnectorsDeactivateForWorkspace.d.ts.map +1 -0
- package/esm/funcs/betaConnectorsDeactivateForWorkspace.js +90 -0
- package/esm/funcs/betaConnectorsDeactivateForWorkspace.js.map +1 -0
- package/esm/funcs/betaConnectorsDelete.js +1 -1
- package/esm/funcs/betaConnectorsDeleteOrganizationCredentials.js +1 -1
- package/esm/funcs/betaConnectorsDeleteUserCredentials.js +1 -1
- package/esm/funcs/betaConnectorsDeleteWorkspaceCredentials.js +1 -1
- package/esm/funcs/betaConnectorsGet.js +2 -2
- package/esm/funcs/betaConnectorsGet.js.map +1 -1
- package/esm/funcs/betaConnectorsGetAuthUrl.js +1 -1
- package/esm/funcs/betaConnectorsGetAuthenticationMethods.js +1 -1
- package/esm/funcs/betaConnectorsList.js +1 -1
- package/esm/funcs/betaConnectorsListOrganizationCredentials.js +1 -1
- package/esm/funcs/betaConnectorsListTools.js +1 -1
- package/esm/funcs/betaConnectorsListUserCredentials.js +1 -1
- package/esm/funcs/betaConnectorsListWorkspaceCredentials.js +1 -1
- package/esm/funcs/betaConnectorsUpdate.js +1 -1
- package/esm/funcs/betaConversationsAppend.js +1 -1
- package/esm/funcs/betaConversationsAppendStream.js +1 -1
- package/esm/funcs/betaConversationsDelete.js +1 -1
- package/esm/funcs/betaConversationsGet.js +1 -1
- package/esm/funcs/betaConversationsGetHistory.js +1 -1
- package/esm/funcs/betaConversationsGetMessages.js +1 -1
- package/esm/funcs/betaConversationsList.js +1 -1
- package/esm/funcs/betaConversationsRestart.js +1 -1
- package/esm/funcs/betaConversationsRestartStream.js +1 -1
- package/esm/funcs/betaConversationsStart.js +1 -1
- package/esm/funcs/betaConversationsStartStream.js +1 -1
- package/esm/funcs/betaLibrariesAccessesDelete.d.ts +1 -1
- package/esm/funcs/betaLibrariesAccessesDelete.js +2 -2
- package/esm/funcs/betaLibrariesAccessesList.js +1 -1
- package/esm/funcs/betaLibrariesAccessesUpdateOrCreate.js +1 -1
- package/esm/funcs/betaLibrariesCreate.js +1 -1
- package/esm/funcs/betaLibrariesDelete.d.ts +1 -1
- package/esm/funcs/betaLibrariesDelete.js +2 -2
- package/esm/funcs/betaLibrariesDocumentsDelete.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsGet.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsGetSignedUrl.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.d.ts +21 -0
- package/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.d.ts.map +1 -0
- package/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.js +99 -0
- package/esm/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.js.map +1 -0
- package/esm/funcs/betaLibrariesDocumentsList.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsReprocess.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsStatus.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsTextContent.js +1 -1
- package/esm/funcs/betaLibrariesDocumentsUpdate.d.ts +2 -2
- package/esm/funcs/betaLibrariesDocumentsUpdate.d.ts.map +1 -1
- package/esm/funcs/betaLibrariesDocumentsUpdate.js +5 -5
- package/esm/funcs/betaLibrariesDocumentsUpdate.js.map +1 -1
- package/esm/funcs/betaLibrariesDocumentsUpload.js +1 -1
- package/esm/funcs/betaLibrariesGet.js +1 -1
- package/esm/funcs/betaLibrariesLibrariesUpdateV1.d.ts +21 -0
- package/esm/funcs/betaLibrariesLibrariesUpdateV1.d.ts.map +1 -0
- package/esm/funcs/betaLibrariesLibrariesUpdateV1.js +95 -0
- package/esm/funcs/betaLibrariesLibrariesUpdateV1.js.map +1 -0
- package/esm/funcs/betaLibrariesList.js +1 -1
- package/esm/funcs/betaLibrariesUpdate.d.ts +1 -1
- package/esm/funcs/betaLibrariesUpdate.d.ts.map +1 -1
- package/esm/funcs/betaLibrariesUpdate.js +4 -4
- package/esm/funcs/betaLibrariesUpdate.js.map +1 -1
- package/esm/funcs/betaObservabilityCampaignsCreate.js +1 -1
- package/esm/funcs/betaObservabilityCampaignsDelete.js +1 -1
- package/esm/funcs/betaObservabilityCampaignsFetch.js +1 -1
- package/esm/funcs/betaObservabilityCampaignsFetchStatus.js +1 -1
- package/esm/funcs/betaObservabilityCampaignsList.js +1 -1
- package/esm/funcs/betaObservabilityCampaignsListEvents.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsFetch.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsFetchSimilarEvents.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptionCounts.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptions.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsFieldsList.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsJudge.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsSearch.js +1 -1
- package/esm/funcs/betaObservabilityChatCompletionEventsSearchIds.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsCreate.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsCreateRecord.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsDelete.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsExportToJsonl.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsFetch.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsFetchTask.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsImportFromCampaign.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsImportFromDatasetRecords.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsImportFromExplorer.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsImportFromFile.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsImportFromPlayground.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsList.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsListRecords.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsListTasks.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsBulkDelete.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsDelete.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsFetch.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsJudge.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsUpdatePayload.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsRecordsUpdateProperties.js +1 -1
- package/esm/funcs/betaObservabilityDatasetsUpdate.js +1 -1
- package/esm/funcs/betaObservabilityJudgesCreate.js +1 -1
- package/esm/funcs/betaObservabilityJudgesDelete.js +1 -1
- package/esm/funcs/betaObservabilityJudgesFetch.js +1 -1
- package/esm/funcs/betaObservabilityJudgesJudgeConversation.js +1 -1
- package/esm/funcs/betaObservabilityJudgesList.js +1 -1
- package/esm/funcs/betaObservabilityJudgesUpdate.js +1 -1
- package/esm/funcs/betaRagIngestionPipelineConfigurationsList.js +1 -1
- package/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.d.ts +18 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.d.ts.map +1 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.js +85 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsRegister.js.map +1 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.d.ts +16 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.d.ts.map +1 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.js +90 -0
- package/esm/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesList.d.ts +14 -0
- package/esm/funcs/betaRagSearchIndexesList.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesList.js +68 -0
- package/esm/funcs/betaRagSearchIndexesList.js.map +1 -0
- package/esm/funcs/betaRagSearchIndexesRegister.d.ts +15 -0
- package/esm/funcs/betaRagSearchIndexesRegister.d.ts.map +1 -0
- package/esm/funcs/betaRagSearchIndexesRegister.js +81 -0
- package/esm/funcs/betaRagSearchIndexesRegister.js.map +1 -0
- package/esm/funcs/chatComplete.js +1 -1
- package/esm/funcs/chatStream.js +1 -1
- package/esm/funcs/classifiersClassify.js +1 -1
- package/esm/funcs/classifiersClassifyChat.js +1 -1
- package/esm/funcs/classifiersModerate.js +1 -1
- package/esm/funcs/classifiersModerateChat.js +1 -1
- package/esm/funcs/embeddingsCreate.js +1 -1
- package/esm/funcs/eventsGetStreamEvents.js +1 -1
- package/esm/funcs/eventsGetWorkflowEvents.js +1 -1
- package/esm/funcs/filesDelete.js +1 -1
- package/esm/funcs/filesDownload.js +1 -1
- package/esm/funcs/filesGetSignedUrl.js +1 -1
- package/esm/funcs/filesList.js +1 -1
- package/esm/funcs/filesRetrieve.js +1 -1
- package/esm/funcs/filesUpload.js +1 -1
- package/esm/funcs/fimComplete.js +1 -1
- package/esm/funcs/fimStream.js +1 -1
- package/esm/funcs/fineTuningJobsCancel.js +1 -1
- package/esm/funcs/fineTuningJobsCreate.js +1 -1
- package/esm/funcs/fineTuningJobsGet.js +1 -1
- package/esm/funcs/fineTuningJobsList.js +1 -1
- package/esm/funcs/fineTuningJobsStart.js +1 -1
- package/esm/funcs/modelsArchive.js +1 -1
- package/esm/funcs/modelsDelete.js +1 -1
- package/esm/funcs/modelsList.js +1 -1
- package/esm/funcs/modelsRetrieve.js +1 -1
- package/esm/funcs/modelsUnarchive.js +1 -1
- package/esm/funcs/modelsUpdate.js +1 -1
- package/esm/funcs/ocrProcess.js +1 -1
- package/esm/funcs/workflowsArchiveWorkflow.js +1 -1
- package/esm/funcs/workflowsBulkArchiveWorkflows.d.ts +15 -0
- package/esm/funcs/workflowsBulkArchiveWorkflows.d.ts.map +1 -0
- package/esm/funcs/workflowsBulkArchiveWorkflows.js +81 -0
- package/esm/funcs/workflowsBulkArchiveWorkflows.js.map +1 -0
- package/esm/funcs/workflowsBulkUnarchiveWorkflows.d.ts +15 -0
- package/esm/funcs/workflowsBulkUnarchiveWorkflows.d.ts.map +1 -0
- package/esm/funcs/workflowsBulkUnarchiveWorkflows.js +81 -0
- package/esm/funcs/workflowsBulkUnarchiveWorkflows.js.map +1 -0
- package/esm/funcs/workflowsDeploymentsGetDeployment.js +1 -1
- package/esm/funcs/workflowsDeploymentsListDeployments.js +1 -1
- package/esm/funcs/workflowsExecuteWorkflow.js +1 -1
- package/esm/funcs/workflowsExecuteWorkflowRegistration.js +1 -1
- package/esm/funcs/workflowsExecutionsBatchCancelWorkflowExecutions.js +1 -1
- package/esm/funcs/workflowsExecutionsBatchTerminateWorkflowExecutions.js +1 -1
- package/esm/funcs/workflowsExecutionsCancelWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsExecutionsGetWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsExecutionsGetWorkflowExecutionHistory.js +1 -1
- package/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceEvents.js +1 -1
- package/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceOtel.js +1 -1
- package/esm/funcs/workflowsExecutionsGetWorkflowExecutionTraceSummary.js +1 -1
- package/esm/funcs/workflowsExecutionsQueryWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsExecutionsResetWorkflow.js +1 -1
- package/esm/funcs/workflowsExecutionsSignalWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsExecutionsStream.js +1 -1
- package/esm/funcs/workflowsExecutionsTerminateWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsExecutionsUpdateWorkflowExecution.js +1 -1
- package/esm/funcs/workflowsGetWorkflow.js +1 -1
- package/esm/funcs/workflowsGetWorkflowRegistration.js +1 -1
- package/esm/funcs/workflowsGetWorkflowRegistrations.js +1 -1
- package/esm/funcs/workflowsGetWorkflows.js +1 -1
- package/esm/funcs/workflowsMetricsGetWorkflowMetrics.js +1 -1
- package/esm/funcs/workflowsRunsGetRun.js +1 -1
- package/esm/funcs/workflowsRunsGetRunHistory.js +1 -1
- package/esm/funcs/workflowsRunsListRuns.js +1 -1
- package/esm/funcs/workflowsSchedulesGetSchedule.d.ts +16 -0
- package/esm/funcs/workflowsSchedulesGetSchedule.d.ts.map +1 -0
- package/esm/funcs/workflowsSchedulesGetSchedule.js +89 -0
- package/esm/funcs/workflowsSchedulesGetSchedule.js.map +1 -0
- package/esm/funcs/workflowsSchedulesGetSchedules.d.ts +6 -2
- package/esm/funcs/workflowsSchedulesGetSchedules.d.ts.map +1 -1
- package/esm/funcs/workflowsSchedulesGetSchedules.js +65 -10
- package/esm/funcs/workflowsSchedulesGetSchedules.js.map +1 -1
- package/esm/funcs/workflowsSchedulesPauseSchedule.d.ts +15 -0
- package/esm/funcs/workflowsSchedulesPauseSchedule.d.ts.map +1 -0
- package/esm/funcs/workflowsSchedulesPauseSchedule.js +92 -0
- package/esm/funcs/workflowsSchedulesPauseSchedule.js.map +1 -0
- package/esm/funcs/workflowsSchedulesResumeSchedule.d.ts +15 -0
- package/esm/funcs/workflowsSchedulesResumeSchedule.d.ts.map +1 -0
- package/esm/funcs/workflowsSchedulesResumeSchedule.js +92 -0
- package/esm/funcs/workflowsSchedulesResumeSchedule.js.map +1 -0
- package/esm/funcs/workflowsSchedulesScheduleWorkflow.js +1 -1
- package/esm/funcs/workflowsSchedulesUnscheduleWorkflow.js +1 -1
- package/esm/funcs/workflowsSchedulesUpdateSchedule.d.ts +16 -0
- package/esm/funcs/workflowsSchedulesUpdateSchedule.d.ts.map +1 -0
- package/esm/funcs/workflowsSchedulesUpdateSchedule.js +92 -0
- package/esm/funcs/workflowsSchedulesUpdateSchedule.js.map +1 -0
- package/esm/funcs/workflowsUnarchiveWorkflow.js +1 -1
- package/esm/funcs/workflowsUpdateWorkflow.js +1 -1
- package/esm/hooks/deprecation_warning.d.ts.map +1 -1
- package/esm/hooks/deprecation_warning.js +1 -1
- package/esm/hooks/deprecation_warning.js.map +1 -1
- package/esm/lib/config.d.ts +3 -3
- package/esm/lib/config.js +3 -3
- package/esm/lib/config.js.map +1 -1
- package/esm/models/components/activitytaskcompletedattributesresponse.d.ts +2 -0
- package/esm/models/components/activitytaskcompletedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskcompletedattributesresponse.js.map +1 -1
- package/esm/models/components/activitytaskstartedattributesresponse.d.ts +2 -0
- package/esm/models/components/activitytaskstartedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/activitytaskstartedattributesresponse.js.map +1 -1
- package/esm/models/components/agentscompletionrequest.d.ts +2 -0
- package/esm/models/components/agentscompletionrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionrequest.js +2 -0
- package/esm/models/components/agentscompletionrequest.js.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.d.ts +2 -0
- package/esm/models/components/agentscompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/agentscompletionstreamrequest.js +2 -0
- package/esm/models/components/agentscompletionstreamrequest.js.map +1 -1
- package/esm/models/components/authenticationconfiguration.d.ts +4 -2
- package/esm/models/components/authenticationconfiguration.d.ts.map +1 -1
- package/esm/models/components/authenticationconfiguration.js +4 -2
- package/esm/models/components/authenticationconfiguration.js.map +1 -1
- package/esm/models/components/basefielddefinition.d.ts +4 -4
- package/esm/models/components/basefielddefinition.d.ts.map +1 -1
- package/esm/models/components/basefielddefinition.js +3 -4
- package/esm/models/components/basefielddefinition.js.map +1 -1
- package/esm/models/components/chatcompletionevent.d.ts +6 -2
- package/esm/models/components/chatcompletionevent.d.ts.map +1 -1
- package/esm/models/components/chatcompletionevent.js +2 -0
- package/esm/models/components/chatcompletionevent.js.map +1 -1
- package/esm/models/components/chatcompletioneventpreview.d.ts +6 -2
- package/esm/models/components/chatcompletioneventpreview.d.ts.map +1 -1
- package/esm/models/components/chatcompletioneventpreview.js +2 -0
- package/esm/models/components/chatcompletioneventpreview.js.map +1 -1
- package/esm/models/components/chatcompletionrequest.d.ts +2 -0
- package/esm/models/components/chatcompletionrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionrequest.js +2 -0
- package/esm/models/components/chatcompletionrequest.js.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.d.ts +2 -0
- package/esm/models/components/chatcompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/chatcompletionstreamrequest.js +2 -0
- package/esm/models/components/chatcompletionstreamrequest.js.map +1 -1
- package/esm/models/components/classifierfinetuningjob.d.ts +1 -1
- package/esm/models/components/classifierfinetuningjobdetails.d.ts +42 -0
- package/esm/models/components/classifierfinetuningjobdetails.d.ts.map +1 -1
- package/esm/models/components/classifierfinetuningjobdetails.js +3 -0
- package/esm/models/components/classifierfinetuningjobdetails.js.map +1 -1
- package/esm/models/components/classifiertrainingparameters.d.ts +12 -0
- package/esm/models/components/classifiertrainingparameters.d.ts.map +1 -1
- package/esm/models/components/classifiertrainingparameters.js.map +1 -1
- package/esm/models/components/clientcapabilities.d.ts +26 -0
- package/esm/models/components/clientcapabilities.d.ts.map +1 -0
- package/esm/models/components/clientcapabilities.js +23 -0
- package/esm/models/components/clientcapabilities.js.map +1 -0
- package/esm/models/components/clienttaskscapability.d.ts +21 -0
- package/esm/models/components/clienttaskscapability.d.ts.map +1 -0
- package/esm/models/components/clienttaskscapability.js +17 -0
- package/esm/models/components/clienttaskscapability.js.map +1 -0
- package/esm/models/components/clienttasksrequestscapability.d.ts +17 -0
- package/esm/models/components/clienttasksrequestscapability.d.ts.map +1 -0
- package/esm/models/components/clienttasksrequestscapability.js +17 -0
- package/esm/models/components/clienttasksrequestscapability.js.map +1 -0
- package/esm/models/components/completionfinetuningjob.d.ts +1 -1
- package/esm/models/components/completionfinetuningjobdetails.d.ts +42 -0
- package/esm/models/components/completionfinetuningjobdetails.d.ts.map +1 -1
- package/esm/models/components/completionfinetuningjobdetails.js +3 -0
- package/esm/models/components/completionfinetuningjobdetails.js.map +1 -1
- package/esm/models/components/completiontrainingparameters.d.ts +12 -0
- package/esm/models/components/completiontrainingparameters.d.ts.map +1 -1
- package/esm/models/components/completiontrainingparameters.js.map +1 -1
- package/esm/models/components/connectionconfigtype.d.ts +11 -0
- package/esm/models/components/connectionconfigtype.d.ts.map +1 -0
- package/esm/models/components/connectionconfigtype.js +13 -0
- package/esm/models/components/connectionconfigtype.js.map +1 -0
- package/esm/models/components/connectionpreference.d.ts +15 -0
- package/esm/models/components/connectionpreference.d.ts.map +1 -0
- package/esm/models/components/connectionpreference.js +26 -0
- package/esm/models/components/connectionpreference.js.map +1 -0
- package/esm/models/components/connector.d.ts +29 -1
- package/esm/models/components/connector.d.ts.map +1 -1
- package/esm/models/components/connector.js +42 -2
- package/esm/models/components/connector.js.map +1 -1
- package/esm/models/components/connectorlocale.d.ts +18 -0
- package/esm/models/components/connectorlocale.d.ts.map +1 -0
- package/esm/models/components/connectorlocale.js +21 -0
- package/esm/models/components/connectorlocale.js.map +1 -0
- package/esm/models/components/connectorprotocol.d.ts +13 -0
- package/esm/models/components/connectorprotocol.d.ts.map +1 -0
- package/esm/models/components/connectorprotocol.js +15 -0
- package/esm/models/components/connectorprotocol.js.map +1 -0
- package/esm/models/components/connectorsqueryfilters.d.ts +0 -5
- package/esm/models/components/connectorsqueryfilters.d.ts.map +1 -1
- package/esm/models/components/connectorsqueryfilters.js +0 -6
- package/esm/models/components/connectorsqueryfilters.js.map +1 -1
- package/esm/models/components/consumertype.d.ts +12 -0
- package/esm/models/components/consumertype.d.ts.map +1 -0
- package/esm/models/components/consumertype.js +14 -0
- package/esm/models/components/consumertype.js.map +1 -0
- package/esm/models/components/createbatchjobrequest.d.ts +8 -1
- package/esm/models/components/createbatchjobrequest.d.ts.map +1 -1
- package/esm/models/components/createbatchjobrequest.js.map +1 -1
- package/esm/models/components/createconnectorrequest.d.ts +7 -0
- package/esm/models/components/createconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/createconnectorrequest.js +2 -0
- package/esm/models/components/createconnectorrequest.js.map +1 -1
- package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts +18 -0
- package/esm/models/components/createingestionpipelineconfigurationrequest.d.ts.map +1 -0
- package/esm/models/components/createingestionpipelineconfigurationrequest.js +20 -0
- package/esm/models/components/createingestionpipelineconfigurationrequest.js.map +1 -0
- package/esm/models/components/createlibraryrequest.d.ts +5 -0
- package/esm/models/components/createlibraryrequest.d.ts.map +1 -1
- package/esm/models/components/createlibraryrequest.js.map +1 -1
- package/esm/models/components/createsearchindexinforequest.d.ts +33 -0
- package/esm/models/components/createsearchindexinforequest.d.ts.map +1 -0
- package/esm/models/components/createsearchindexinforequest.js +33 -0
- package/esm/models/components/createsearchindexinforequest.js.map +1 -0
- package/esm/models/components/createvespaschemarequest.d.ts +14 -0
- package/esm/models/components/createvespaschemarequest.d.ts.map +1 -0
- package/esm/models/components/createvespaschemarequest.js +19 -0
- package/esm/models/components/createvespaschemarequest.js.map +1 -0
- package/esm/models/components/createvespasearchindexinforequest.d.ts +21 -0
- package/esm/models/components/createvespasearchindexinforequest.d.ts.map +1 -0
- package/esm/models/components/createvespasearchindexinforequest.js +25 -0
- package/esm/models/components/createvespasearchindexinforequest.js.map +1 -0
- package/esm/models/components/credentialsresponse.d.ts +2 -2
- package/esm/models/components/credentialsresponse.d.ts.map +1 -1
- package/esm/models/components/credentialsresponse.js +2 -2
- package/esm/models/components/credentialsresponse.js.map +1 -1
- package/esm/models/components/customtaskcompletedattributesresponse.d.ts +2 -0
- package/esm/models/components/customtaskcompletedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskcompletedattributesresponse.js.map +1 -1
- package/esm/models/components/customtaskstartedattributesresponse.d.ts +2 -0
- package/esm/models/components/customtaskstartedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/customtaskstartedattributesresponse.js.map +1 -1
- package/esm/models/components/deletemodelresponse.d.ts +2 -2
- package/esm/models/components/document.d.ts +16 -0
- package/esm/models/components/document.d.ts.map +1 -1
- package/esm/models/components/document.js +2 -0
- package/esm/models/components/document.js.map +1 -1
- package/esm/models/components/elicitationcapability.d.ts +23 -0
- package/esm/models/components/elicitationcapability.d.ts.map +1 -0
- package/esm/models/components/elicitationcapability.js +15 -0
- package/esm/models/components/elicitationcapability.js.map +1 -0
- package/esm/models/components/encodedpayloadoptions.d.ts +5 -3
- package/esm/models/components/encodedpayloadoptions.d.ts.map +1 -1
- package/esm/models/components/encodedpayloadoptions.js +4 -2
- package/esm/models/components/encodedpayloadoptions.js.map +1 -1
- package/esm/models/components/encryptedpatchvalue.d.ts +21 -0
- package/esm/models/components/encryptedpatchvalue.d.ts.map +1 -0
- package/esm/models/components/encryptedpatchvalue.js +15 -0
- package/esm/models/components/encryptedpatchvalue.js.map +1 -0
- package/esm/models/components/fimcompletionrequest.d.ts +2 -0
- package/esm/models/components/fimcompletionrequest.d.ts.map +1 -1
- package/esm/models/components/fimcompletionrequest.js +2 -0
- package/esm/models/components/fimcompletionrequest.js.map +1 -1
- package/esm/models/components/fimcompletionstreamrequest.d.ts +2 -0
- package/esm/models/components/fimcompletionstreamrequest.d.ts.map +1 -1
- package/esm/models/components/fimcompletionstreamrequest.js +2 -0
- package/esm/models/components/fimcompletionstreamrequest.js.map +1 -1
- package/esm/models/components/index.d.ts +59 -5
- package/esm/models/components/index.d.ts.map +1 -1
- package/esm/models/components/index.js +59 -5
- package/esm/models/components/index.js.map +1 -1
- package/esm/models/components/ingestionpipelineconfiguration.d.ts +7 -0
- package/esm/models/components/ingestionpipelineconfiguration.d.ts.map +1 -1
- package/esm/models/components/ingestionpipelineconfiguration.js +10 -0
- package/esm/models/components/ingestionpipelineconfiguration.js.map +1 -1
- package/esm/models/components/jobmetadata.d.ts +18 -0
- package/esm/models/components/jobmetadata.d.ts.map +1 -1
- package/esm/models/components/jobmetadata.js.map +1 -1
- package/esm/models/components/jsonpatch.d.ts +13 -0
- package/esm/models/components/jsonpatch.d.ts.map +1 -0
- package/esm/models/components/jsonpatch.js +21 -0
- package/esm/models/components/jsonpatch.js.map +1 -0
- package/esm/models/components/jsonpatchappend.d.ts +10 -2
- package/esm/models/components/jsonpatchappend.d.ts.map +1 -1
- package/esm/models/components/jsonpatchappend.js +8 -1
- package/esm/models/components/jsonpatchappend.js.map +1 -1
- package/esm/models/components/jsonpatchpayloadresponse.d.ts +7 -11
- package/esm/models/components/jsonpatchpayloadresponse.d.ts.map +1 -1
- package/esm/models/components/jsonpatchpayloadresponse.js +10 -21
- package/esm/models/components/jsonpatchpayloadresponse.js.map +1 -1
- package/esm/models/components/jsonpatchpayloadvalueresponse.d.ts +9 -0
- package/esm/models/components/jsonpatchpayloadvalueresponse.d.ts.map +1 -0
- package/esm/models/components/jsonpatchpayloadvalueresponse.js +14 -0
- package/esm/models/components/jsonpatchpayloadvalueresponse.js.map +1 -0
- package/esm/models/components/jsonpayloadresponse.d.ts +8 -1
- package/esm/models/components/jsonpayloadresponse.d.ts.map +1 -1
- package/esm/models/components/jsonpayloadresponse.js +8 -0
- package/esm/models/components/jsonpayloadresponse.js.map +1 -1
- package/esm/models/components/library.d.ts +17 -0
- package/esm/models/components/library.d.ts.map +1 -1
- package/esm/models/components/library.js.map +1 -1
- package/esm/models/components/logicalexpression.d.ts +39 -0
- package/esm/models/components/logicalexpression.d.ts.map +1 -0
- package/esm/models/components/logicalexpression.js +60 -0
- package/esm/models/components/logicalexpression.js.map +1 -0
- package/esm/models/components/mcpprompt.d.ts +20 -0
- package/esm/models/components/mcpprompt.d.ts.map +1 -0
- package/esm/models/components/mcpprompt.js +26 -0
- package/esm/models/components/mcpprompt.js.map +1 -0
- package/esm/models/components/mcpresource.d.ts +23 -0
- package/esm/models/components/mcpresource.d.ts.map +1 -0
- package/esm/models/components/mcpresource.js +30 -0
- package/esm/models/components/mcpresource.js.map +1 -0
- package/esm/models/components/mcpserverauthenticationrequirement.d.ts +20 -0
- package/esm/models/components/mcpserverauthenticationrequirement.d.ts.map +1 -0
- package/esm/models/components/mcpserverauthenticationrequirement.js +15 -0
- package/esm/models/components/mcpserverauthenticationrequirement.js.map +1 -0
- package/esm/models/components/mcpservercard.d.ts +58 -0
- package/esm/models/components/mcpservercard.d.ts.map +1 -0
- package/esm/models/components/mcpservercard.js +66 -0
- package/esm/models/components/mcpservercard.js.map +1 -0
- package/esm/models/components/mcpservercardmeta.d.ts +19 -0
- package/esm/models/components/mcpservercardmeta.d.ts.map +1 -0
- package/esm/models/components/mcpservercardmeta.js +20 -0
- package/esm/models/components/mcpservercardmeta.js.map +1 -0
- package/esm/models/components/mcpserverremote.d.ts +39 -0
- package/esm/models/components/mcpserverremote.d.ts.map +1 -0
- package/esm/models/components/mcpserverremote.js +31 -0
- package/esm/models/components/mcpserverremote.js.map +1 -0
- package/esm/models/components/mcpserverremoteheader.d.ts +24 -0
- package/esm/models/components/mcpserverremoteheader.d.ts.map +1 -0
- package/esm/models/components/mcpserverremoteheader.js +19 -0
- package/esm/models/components/mcpserverremoteheader.js.map +1 -0
- package/esm/models/components/mcpserverrepository.d.ts +21 -0
- package/esm/models/components/mcpserverrepository.d.ts.map +1 -0
- package/esm/models/components/mcpserverrepository.js +16 -0
- package/esm/models/components/mcpserverrepository.js.map +1 -0
- package/esm/models/components/mcptoolmeta.d.ts +16 -11
- package/esm/models/components/mcptoolmeta.d.ts.map +1 -1
- package/esm/models/components/mcptoolmeta.js +13 -5
- package/esm/models/components/mcptoolmeta.js.map +1 -1
- package/esm/models/components/ocrrequest.d.ts +0 -2
- package/esm/models/components/ocrrequest.d.ts.map +1 -1
- package/esm/models/components/ocrrequest.js +0 -1
- package/esm/models/components/ocrrequest.js.map +1 -1
- package/esm/models/components/outboundauthenticationtype.d.ts +13 -0
- package/esm/models/components/outboundauthenticationtype.d.ts.map +1 -0
- package/esm/models/components/outboundauthenticationtype.js +15 -0
- package/esm/models/components/outboundauthenticationtype.js.map +1 -0
- package/esm/models/components/partialscheduledefinition.d.ts +78 -0
- package/esm/models/components/partialscheduledefinition.d.ts.map +1 -0
- package/esm/models/components/partialscheduledefinition.js +35 -0
- package/esm/models/components/partialscheduledefinition.js.map +1 -0
- package/esm/models/components/processingstatus.d.ts +3 -0
- package/esm/models/components/processingstatus.d.ts.map +1 -1
- package/esm/models/components/processingstatus.js.map +1 -1
- package/esm/models/components/promptargument.d.ts +16 -0
- package/esm/models/components/promptargument.d.ts.map +1 -0
- package/esm/models/components/promptargument.js +16 -0
- package/esm/models/components/promptargument.js.map +1 -0
- package/esm/models/components/promptscapability.d.ts +14 -0
- package/esm/models/components/promptscapability.d.ts.map +1 -0
- package/esm/models/components/promptscapability.js +14 -0
- package/esm/models/components/promptscapability.js.map +1 -0
- package/esm/models/components/publicauthenticationmethod.d.ts +3 -2
- package/esm/models/components/publicauthenticationmethod.d.ts.map +1 -1
- package/esm/models/components/publicauthenticationmethod.js +4 -2
- package/esm/models/components/publicauthenticationmethod.js.map +1 -1
- package/esm/models/components/publicconnectionconfig.d.ts +16 -0
- package/esm/models/components/publicconnectionconfig.d.ts.map +1 -0
- package/esm/models/components/publicconnectionconfig.js +23 -0
- package/esm/models/components/publicconnectionconfig.js.map +1 -0
- package/esm/models/components/referencechunk.d.ts +4 -4
- package/esm/models/components/referencechunk.js +4 -4
- package/esm/models/components/referencechunk.js.map +1 -1
- package/esm/models/components/resourcescapability.d.ts +15 -0
- package/esm/models/components/resourcescapability.d.ts.map +1 -0
- package/esm/models/components/resourcescapability.js +15 -0
- package/esm/models/components/resourcescapability.js.map +1 -0
- package/esm/models/components/resourcetype.d.ts +12 -0
- package/esm/models/components/resourcetype.d.ts.map +1 -0
- package/esm/models/components/resourcetype.js +14 -0
- package/esm/models/components/resourcetype.js.map +1 -0
- package/esm/models/components/rootscapability.d.ts +14 -0
- package/esm/models/components/rootscapability.d.ts.map +1 -0
- package/esm/models/components/rootscapability.js +14 -0
- package/esm/models/components/rootscapability.js.map +1 -0
- package/esm/models/components/samplingcapability.d.ts +19 -0
- package/esm/models/components/samplingcapability.d.ts.map +1 -0
- package/esm/models/components/samplingcapability.js +15 -0
- package/esm/models/components/samplingcapability.js.map +1 -0
- package/esm/models/components/scheduledefinition.d.ts +5 -0
- package/esm/models/components/scheduledefinition.d.ts.map +1 -1
- package/esm/models/components/scheduledefinition.js +2 -0
- package/esm/models/components/scheduledefinition.js.map +1 -1
- package/esm/models/components/scheduledefinitionoutput.d.ts +26 -0
- package/esm/models/components/scheduledefinitionoutput.d.ts.map +1 -1
- package/esm/models/components/scheduledefinitionoutput.js +12 -0
- package/esm/models/components/scheduledefinitionoutput.js.map +1 -1
- package/esm/models/components/schedulefutureexecution.d.ts +13 -0
- package/esm/models/components/schedulefutureexecution.d.ts.map +1 -0
- package/esm/models/components/schedulefutureexecution.js +19 -0
- package/esm/models/components/schedulefutureexecution.js.map +1 -0
- package/esm/models/components/schedulerecentexecution.d.ts +21 -0
- package/esm/models/components/schedulerecentexecution.d.ts.map +1 -0
- package/esm/models/components/schedulerecentexecution.js +23 -0
- package/esm/models/components/schedulerecentexecution.js.map +1 -0
- package/esm/models/components/searchindexresponse.d.ts +30 -0
- package/esm/models/components/searchindexresponse.d.ts.map +1 -0
- package/esm/models/components/searchindexresponse.js +42 -0
- package/esm/models/components/searchindexresponse.js.map +1 -0
- package/esm/models/components/servercapabilities.d.ts +32 -0
- package/esm/models/components/servercapabilities.d.ts.map +1 -0
- package/esm/models/components/servercapabilities.js +25 -0
- package/esm/models/components/servercapabilities.js.map +1 -0
- package/esm/models/components/{turbinetoollocale.d.ts → serverlocale.d.ts} +4 -4
- package/esm/models/components/serverlocale.d.ts.map +1 -0
- package/esm/models/components/{turbinetoollocale.js → serverlocale.js} +8 -6
- package/esm/models/components/serverlocale.js.map +1 -0
- package/esm/models/components/servertaskscapability.d.ts +21 -0
- package/esm/models/components/servertaskscapability.d.ts.map +1 -0
- package/esm/models/components/servertaskscapability.js +17 -0
- package/esm/models/components/servertaskscapability.js.map +1 -0
- package/esm/models/components/servertasksrequestscapability.d.ts +15 -0
- package/esm/models/components/servertasksrequestscapability.d.ts.map +1 -0
- package/esm/models/components/servertasksrequestscapability.js +15 -0
- package/esm/models/components/servertasksrequestscapability.js.map +1 -0
- package/esm/models/components/sharing.d.ts +6 -0
- package/esm/models/components/sharing.d.ts.map +1 -1
- package/esm/models/components/sharing.js.map +1 -1
- package/esm/models/components/sharingdelete.d.ts +3 -0
- package/esm/models/components/sharingdelete.d.ts.map +1 -1
- package/esm/models/components/sharingdelete.js.map +1 -1
- package/esm/models/components/sharingrequest.d.ts +3 -0
- package/esm/models/components/sharingrequest.d.ts.map +1 -1
- package/esm/models/components/sharingrequest.js.map +1 -1
- package/esm/models/components/taskselicitationcapability.d.ts +16 -0
- package/esm/models/components/taskselicitationcapability.d.ts.map +1 -0
- package/esm/models/components/taskselicitationcapability.js +14 -0
- package/esm/models/components/taskselicitationcapability.js.map +1 -0
- package/esm/models/components/taskssamplingcapability.d.ts +16 -0
- package/esm/models/components/taskssamplingcapability.d.ts.map +1 -0
- package/esm/models/components/taskssamplingcapability.js +14 -0
- package/esm/models/components/taskssamplingcapability.js.map +1 -0
- package/esm/models/components/taskstoolscapability.d.ts +16 -0
- package/esm/models/components/taskstoolscapability.d.ts.map +1 -0
- package/esm/models/components/taskstoolscapability.js +14 -0
- package/esm/models/components/taskstoolscapability.js.map +1 -0
- package/esm/models/components/toolexecutionconfiguration.d.ts +43 -0
- package/esm/models/components/toolexecutionconfiguration.d.ts.map +1 -0
- package/esm/models/components/toolexecutionconfiguration.js +93 -0
- package/esm/models/components/toolexecutionconfiguration.js.map +1 -0
- package/esm/models/components/toolproperties.d.ts +17 -0
- package/esm/models/components/toolproperties.d.ts.map +1 -0
- package/esm/models/components/toolproperties.js +30 -0
- package/esm/models/components/toolproperties.js.map +1 -0
- package/esm/models/components/toolscapability.d.ts +14 -0
- package/esm/models/components/toolscapability.d.ts.map +1 -0
- package/esm/models/components/toolscapability.js +14 -0
- package/esm/models/components/toolscapability.js.map +1 -0
- package/esm/models/components/turbinemeta.d.ts +12 -0
- package/esm/models/components/turbinemeta.d.ts.map +1 -0
- package/esm/models/components/turbinemeta.js +22 -0
- package/esm/models/components/turbinemeta.js.map +1 -0
- package/esm/models/components/updateconnectorrequest.d.ts +11 -0
- package/esm/models/components/updateconnectorrequest.d.ts.map +1 -1
- package/esm/models/components/updateconnectorrequest.js +3 -0
- package/esm/models/components/updateconnectorrequest.js.map +1 -1
- package/esm/models/components/updatedocumentrequest.d.ts +7 -2
- package/esm/models/components/updatedocumentrequest.d.ts.map +1 -1
- package/esm/models/components/updatedocumentrequest.js +7 -1
- package/esm/models/components/updatedocumentrequest.js.map +1 -1
- package/esm/models/components/updatelibraryrequest.d.ts +2 -2
- package/esm/models/components/updatelibraryrequest.d.ts.map +1 -1
- package/esm/models/components/updatelibraryrequest.js +1 -1
- package/esm/models/components/updatelibraryrequest.js.map +1 -1
- package/esm/models/components/updateruninfo.d.ts +14 -0
- package/esm/models/components/updateruninfo.d.ts.map +1 -0
- package/esm/models/components/updateruninfo.js +20 -0
- package/esm/models/components/updateruninfo.js.map +1 -0
- package/esm/models/components/vespaschemaresponse.d.ts +11 -0
- package/esm/models/components/vespaschemaresponse.d.ts.map +1 -0
- package/esm/models/components/vespaschemaresponse.js +20 -0
- package/esm/models/components/vespaschemaresponse.js.map +1 -0
- package/esm/models/components/vespasearchindexinforesponse.d.ts +15 -0
- package/esm/models/components/vespasearchindexinforesponse.d.ts.map +1 -0
- package/esm/models/components/vespasearchindexinforesponse.js +26 -0
- package/esm/models/components/vespasearchindexinforesponse.js.map +1 -0
- package/esm/models/components/voiceappearance.d.ts +23 -0
- package/esm/models/components/voiceappearance.d.ts.map +1 -0
- package/esm/models/components/voiceappearance.js +42 -0
- package/esm/models/components/voiceappearance.js.map +1 -0
- package/esm/models/components/voicecreaterequest.d.ts +5 -0
- package/esm/models/components/voicecreaterequest.d.ts.map +1 -1
- package/esm/models/components/voicecreaterequest.js +3 -0
- package/esm/models/components/voicecreaterequest.js.map +1 -1
- package/esm/models/components/voiceresponse.d.ts +3 -0
- package/esm/models/components/voiceresponse.d.ts.map +1 -1
- package/esm/models/components/voiceresponse.js +3 -0
- package/esm/models/components/voiceresponse.js.map +1 -1
- package/esm/models/components/voiceupdaterequest.d.ts +5 -0
- package/esm/models/components/voiceupdaterequest.d.ts.map +1 -1
- package/esm/models/components/voiceupdaterequest.js +3 -0
- package/esm/models/components/voiceupdaterequest.js.map +1 -1
- package/esm/models/components/workflowbulkarchiverequest.d.ts +15 -0
- package/esm/models/components/workflowbulkarchiverequest.d.ts.map +1 -0
- package/esm/models/components/workflowbulkarchiverequest.js +18 -0
- package/esm/models/components/workflowbulkarchiverequest.js.map +1 -0
- package/esm/models/components/workflowbulkarchiveresponse.d.ts +19 -0
- package/esm/models/components/workflowbulkarchiveresponse.d.ts.map +1 -0
- package/esm/models/components/workflowbulkarchiveresponse.js +17 -0
- package/esm/models/components/workflowbulkarchiveresponse.js.map +1 -0
- package/esm/models/components/workflowbulkerror.d.ts +22 -0
- package/esm/models/components/workflowbulkerror.d.ts.map +1 -0
- package/esm/models/components/workflowbulkerror.js +22 -0
- package/esm/models/components/workflowbulkerror.js.map +1 -0
- package/esm/models/components/workflowbulkunarchiverequest.d.ts +15 -0
- package/esm/models/components/workflowbulkunarchiverequest.d.ts.map +1 -0
- package/esm/models/components/workflowbulkunarchiverequest.js +18 -0
- package/esm/models/components/workflowbulkunarchiverequest.js.map +1 -0
- package/esm/models/components/workflowbulkunarchiveresponse.d.ts +19 -0
- package/esm/models/components/workflowbulkunarchiveresponse.d.ts.map +1 -0
- package/esm/models/components/workflowbulkunarchiveresponse.js +17 -0
- package/esm/models/components/workflowbulkunarchiveresponse.js.map +1 -0
- package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts +2 -0
- package/esm/models/components/workflowexecutioncompletedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncompletedattributesresponse.js.map +1 -1
- package/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.d.ts +2 -0
- package/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutioncontinuedasnewattributesresponse.js.map +1 -1
- package/esm/models/components/workflowexecutionrequest.d.ts +0 -6
- package/esm/models/components/workflowexecutionrequest.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionrequest.js +0 -3
- package/esm/models/components/workflowexecutionrequest.js.map +1 -1
- package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts +2 -0
- package/esm/models/components/workflowexecutionstartedattributesresponse.d.ts.map +1 -1
- package/esm/models/components/workflowexecutionstartedattributesresponse.js.map +1 -1
- package/esm/models/components/workflowschedulelistresponse.d.ts +4 -0
- package/esm/models/components/workflowschedulelistresponse.d.ts.map +1 -1
- package/esm/models/components/workflowschedulelistresponse.js +6 -0
- package/esm/models/components/workflowschedulelistresponse.js.map +1 -1
- package/esm/models/components/workflowschedulepauserequest.d.ts +15 -0
- package/esm/models/components/workflowschedulepauserequest.d.ts.map +1 -0
- package/esm/models/components/workflowschedulepauserequest.js +13 -0
- package/esm/models/components/workflowschedulepauserequest.js.map +1 -0
- package/esm/models/components/workflowscheduleupdaterequest.d.ts +21 -0
- package/esm/models/components/workflowscheduleupdaterequest.d.ts.map +1 -0
- package/esm/models/components/workflowscheduleupdaterequest.js +14 -0
- package/esm/models/components/workflowscheduleupdaterequest.js.map +1 -0
- package/esm/models/operations/connectoractivatefororganizationv1.d.ts +15 -0
- package/esm/models/operations/connectoractivatefororganizationv1.d.ts.map +1 -0
- package/esm/models/operations/connectoractivatefororganizationv1.js +21 -0
- package/esm/models/operations/connectoractivatefororganizationv1.js.map +1 -0
- package/esm/models/operations/connectoractivateforuserv1.d.ts +15 -0
- package/esm/models/operations/connectoractivateforuserv1.d.ts.map +1 -0
- package/esm/models/operations/connectoractivateforuserv1.js +21 -0
- package/esm/models/operations/connectoractivateforuserv1.js.map +1 -0
- package/esm/models/operations/connectoractivateforworkspacev1.d.ts +15 -0
- package/esm/models/operations/connectoractivateforworkspacev1.d.ts.map +1 -0
- package/esm/models/operations/connectoractivateforworkspacev1.js +21 -0
- package/esm/models/operations/connectoractivateforworkspacev1.js.map +1 -0
- package/esm/models/operations/connectordeactivatefororganizationv1.d.ts +12 -0
- package/esm/models/operations/connectordeactivatefororganizationv1.d.ts.map +1 -0
- package/esm/models/operations/connectordeactivatefororganizationv1.js +18 -0
- package/esm/models/operations/connectordeactivatefororganizationv1.js.map +1 -0
- package/esm/models/operations/connectordeactivateforuserv1.d.ts +12 -0
- package/esm/models/operations/connectordeactivateforuserv1.d.ts.map +1 -0
- package/esm/models/operations/connectordeactivateforuserv1.js +18 -0
- package/esm/models/operations/connectordeactivateforuserv1.js.map +1 -0
- package/esm/models/operations/connectordeactivateforworkspacev1.d.ts +12 -0
- package/esm/models/operations/connectordeactivateforworkspacev1.d.ts.map +1 -0
- package/esm/models/operations/connectordeactivateforworkspacev1.js +18 -0
- package/esm/models/operations/connectordeactivateforworkspacev1.js.map +1 -0
- package/esm/models/operations/connectorgetv1.d.ts +5 -5
- package/esm/models/operations/connectorgetv1.d.ts.map +1 -1
- package/esm/models/operations/connectorgetv1.js +2 -2
- package/esm/models/operations/connectorgetv1.js.map +1 -1
- package/esm/models/operations/connectorlistorganizationcredentialsv1.d.ts +1 -1
- package/esm/models/operations/connectorlistorganizationcredentialsv1.d.ts.map +1 -1
- package/esm/models/operations/connectorlistorganizationcredentialsv1.js +1 -1
- package/esm/models/operations/connectorlistorganizationcredentialsv1.js.map +1 -1
- package/esm/models/operations/connectorlistusercredentialsv1.d.ts +1 -1
- package/esm/models/operations/connectorlistusercredentialsv1.d.ts.map +1 -1
- package/esm/models/operations/connectorlistusercredentialsv1.js +2 -1
- package/esm/models/operations/connectorlistusercredentialsv1.js.map +1 -1
- package/esm/models/operations/connectorlistworkspacecredentialsv1.d.ts +1 -1
- package/esm/models/operations/connectorlistworkspacecredentialsv1.d.ts.map +1 -1
- package/esm/models/operations/connectorlistworkspacecredentialsv1.js +1 -1
- package/esm/models/operations/connectorlistworkspacecredentialsv1.js.map +1 -1
- package/esm/models/operations/getschedulesv1workflowsschedulesget.d.ts +58 -0
- package/esm/models/operations/getschedulesv1workflowsschedulesget.d.ts.map +1 -0
- package/esm/models/operations/getschedulesv1workflowsschedulesget.js +48 -0
- package/esm/models/operations/getschedulesv1workflowsschedulesget.js.map +1 -0
- package/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.d.ts +12 -0
- package/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.d.ts.map +1 -0
- package/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.js +18 -0
- package/esm/models/operations/getschedulev1workflowsschedulesscheduleidget.js.map +1 -0
- package/esm/models/operations/index.d.ts +14 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +14 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/librariesdocumentslistv1.d.ts +5 -0
- package/esm/models/operations/librariesdocumentslistv1.d.ts.map +1 -1
- package/esm/models/operations/librariesdocumentslistv1.js.map +1 -1
- package/esm/models/operations/librariesdocumentspatchv1.d.ts +17 -0
- package/esm/models/operations/librariesdocumentspatchv1.d.ts.map +1 -0
- package/esm/models/operations/librariesdocumentspatchv1.js +23 -0
- package/esm/models/operations/librariesdocumentspatchv1.js.map +1 -0
- package/esm/models/operations/librarieslistv1.d.ts +3 -1
- package/esm/models/operations/librarieslistv1.d.ts.map +1 -1
- package/esm/models/operations/librarieslistv1.js.map +1 -1
- package/esm/models/operations/librariespatchv1.d.ts +15 -0
- package/esm/models/operations/librariespatchv1.d.ts.map +1 -0
- package/esm/models/operations/librariespatchv1.js +21 -0
- package/esm/models/operations/librariespatchv1.js.map +1 -0
- package/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.d.ts +15 -0
- package/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.d.ts.map +1 -0
- package/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.js +22 -0
- package/esm/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.js.map +1 -0
- package/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.d.ts +15 -0
- package/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.d.ts.map +1 -0
- package/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.js +22 -0
- package/esm/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.js.map +1 -0
- package/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.d.ts +15 -0
- package/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.d.ts.map +1 -0
- package/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.js +21 -0
- package/esm/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.js.map +1 -0
- package/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.d.ts +15 -0
- package/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.d.ts.map +1 -0
- package/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.js +22 -0
- package/esm/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.js.map +1 -0
- package/esm/sdk/accesses.d.ts +1 -1
- package/esm/sdk/accesses.js +1 -1
- package/esm/sdk/connectors.d.ts +42 -0
- package/esm/sdk/connectors.d.ts.map +1 -1
- package/esm/sdk/connectors.js +60 -0
- package/esm/sdk/connectors.js.map +1 -1
- package/esm/sdk/documents.d.ts +10 -1
- package/esm/sdk/documents.d.ts.map +1 -1
- package/esm/sdk/documents.js +13 -1
- package/esm/sdk/documents.js.map +1 -1
- package/esm/sdk/ingestionpipelineconfigurations.d.ts +12 -0
- package/esm/sdk/ingestionpipelineconfigurations.d.ts.map +1 -1
- package/esm/sdk/ingestionpipelineconfigurations.js +17 -0
- package/esm/sdk/ingestionpipelineconfigurations.js.map +1 -1
- package/esm/sdk/libraries.d.ts +11 -2
- package/esm/sdk/libraries.d.ts.map +1 -1
- package/esm/sdk/libraries.js +13 -1
- package/esm/sdk/libraries.js.map +1 -1
- package/esm/sdk/rag.d.ts +3 -0
- package/esm/sdk/rag.d.ts.map +1 -1
- package/esm/sdk/rag.js +5 -0
- package/esm/sdk/rag.js.map +1 -1
- package/esm/sdk/schedules.d.ts +20 -1
- package/esm/sdk/schedules.d.ts.map +1 -1
- package/esm/sdk/schedules.js +31 -2
- package/esm/sdk/schedules.js.map +1 -1
- package/esm/sdk/searchindexes.d.ts +13 -0
- package/esm/sdk/searchindexes.d.ts.map +1 -0
- package/esm/sdk/searchindexes.js +23 -0
- package/esm/sdk/searchindexes.js.map +1 -0
- package/esm/sdk/workflows.d.ts +8 -0
- package/esm/sdk/workflows.d.ts.map +1 -1
- package/esm/sdk/workflows.js +14 -0
- package/esm/sdk/workflows.js.map +1 -1
- package/esm/types/async.d.ts.map +1 -1
- package/esm/types/async.js +6 -6
- package/esm/types/async.js.map +1 -1
- package/examples/src/reasoning.ts +50 -0
- package/examples/src/reasoning_multi_turn.ts +77 -0
- package/examples/src/reasoning_response_shape.ts +33 -0
- package/examples/src/reasoning_with_streaming.ts +68 -0
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/packages/mistralai-azure/src/funcs/chatComplete.ts +5 -3
- package/packages/mistralai-azure/src/funcs/chatStream.ts +5 -3
- package/packages/mistralai-azure/src/funcs/ocrProcess.ts +5 -3
- package/packages/mistralai-azure/src/lib/config.ts +3 -3
- package/packages/mistralai-azure/src/lib/encodings.ts +32 -4
- package/packages/mistralai-azure/src/lib/files.ts +22 -0
- package/packages/mistralai-azure/src/lib/sdks.ts +10 -11
- package/packages/mistralai-azure/src/lib/security.ts +14 -2
- package/packages/mistralai-azure/src/lib/url.ts +16 -14
- package/packages/mistralai-azure/src/models/components/apikeyauth.ts +30 -0
- package/packages/mistralai-azure/src/models/components/chatcompletionchoice.ts +5 -2
- package/packages/mistralai-azure/src/models/components/chatcompletionrequest.ts +136 -15
- package/packages/mistralai-azure/src/models/components/chatcompletionstreamrequest.ts +138 -15
- package/packages/mistralai-azure/src/models/components/codeinterpretertool.ts +44 -0
- package/packages/mistralai-azure/src/models/components/customconnector.ts +82 -0
- package/packages/mistralai-azure/src/models/components/deltamessage.ts +10 -0
- package/packages/mistralai-azure/src/models/components/documentlibrarytool.ts +51 -0
- package/packages/mistralai-azure/src/models/components/guardrailconfig.ts +55 -0
- package/packages/mistralai-azure/src/models/components/imagegenerationtool.ts +44 -0
- package/packages/mistralai-azure/src/models/components/imageurlchunk.ts +1 -1
- package/packages/mistralai-azure/src/models/components/index.ts +18 -1
- package/packages/mistralai-azure/src/models/components/moderationllmaction.ts +18 -0
- package/packages/mistralai-azure/src/models/components/moderationllmv1categorythresholds.ts +64 -0
- package/packages/mistralai-azure/src/models/components/moderationllmv1config.ts +70 -0
- package/packages/mistralai-azure/src/models/components/moderationllmv2categorythresholds.ts +69 -0
- package/packages/mistralai-azure/src/models/components/moderationllmv2config.ts +70 -0
- package/packages/mistralai-azure/src/models/components/oauth2tokenauth.ts +32 -0
- package/packages/mistralai-azure/src/models/components/ocrconfidencescore.ts +52 -0
- package/packages/mistralai-azure/src/models/components/ocrpageconfidencescores.ts +66 -0
- package/packages/mistralai-azure/src/models/components/ocrpageobject.ts +15 -0
- package/packages/mistralai-azure/src/models/components/ocrrequest.ts +42 -7
- package/packages/mistralai-azure/src/models/components/ocrtableobject.ts +16 -0
- package/packages/mistralai-azure/src/models/components/reasoningeffort.ts +17 -0
- package/packages/mistralai-azure/src/models/components/referencechunk.ts +32 -4
- package/packages/mistralai-azure/src/models/components/thinkchunk.ts +6 -0
- package/packages/mistralai-azure/src/models/components/tool.ts +3 -4
- package/packages/mistralai-azure/src/models/components/toolcall.ts +3 -8
- package/packages/mistralai-azure/src/models/components/toolchoice.ts +2 -3
- package/packages/mistralai-azure/src/models/components/toolconfiguration.ts +42 -0
- package/packages/mistralai-azure/src/models/components/toolreferencechunk.ts +11 -7
- package/packages/mistralai-azure/src/models/components/websearchpremiumtool.ts +44 -0
- package/packages/mistralai-azure/src/models/components/websearchtool.ts +40 -0
- package/packages/mistralai-azure/src/types/async.ts +8 -7
- package/packages/mistralai-gcp/src/funcs/chatComplete.ts +5 -3
- package/packages/mistralai-gcp/src/funcs/chatStream.ts +5 -3
- package/packages/mistralai-gcp/src/funcs/fimComplete.ts +5 -3
- package/packages/mistralai-gcp/src/funcs/fimStream.ts +5 -3
- package/packages/mistralai-gcp/src/lib/config.ts +3 -3
- package/packages/mistralai-gcp/src/lib/encodings.ts +32 -4
- package/packages/mistralai-gcp/src/lib/files.ts +22 -0
- package/packages/mistralai-gcp/src/lib/sdks.ts +10 -11
- package/packages/mistralai-gcp/src/lib/security.ts +14 -2
- package/packages/mistralai-gcp/src/lib/url.ts +16 -14
- package/packages/mistralai-gcp/src/models/components/apikeyauth.ts +30 -0
- package/packages/mistralai-gcp/src/models/components/chatcompletionchoice.ts +5 -2
- package/packages/mistralai-gcp/src/models/components/chatcompletionrequest.ts +136 -15
- package/packages/mistralai-gcp/src/models/components/chatcompletionstreamrequest.ts +138 -15
- package/packages/mistralai-gcp/src/models/components/codeinterpretertool.ts +44 -0
- package/packages/mistralai-gcp/src/models/components/customconnector.ts +82 -0
- package/packages/mistralai-gcp/src/models/components/deltamessage.ts +10 -0
- package/packages/mistralai-gcp/src/models/components/documentlibrarytool.ts +51 -0
- package/packages/mistralai-gcp/src/models/components/fimcompletionrequest.ts +6 -6
- package/packages/mistralai-gcp/src/models/components/fimcompletionstreamrequest.ts +6 -6
- package/packages/mistralai-gcp/src/models/components/guardrailconfig.ts +55 -0
- package/packages/mistralai-gcp/src/models/components/imagegenerationtool.ts +44 -0
- package/packages/mistralai-gcp/src/models/components/imageurlchunk.ts +1 -1
- package/packages/mistralai-gcp/src/models/components/index.ts +16 -1
- package/packages/mistralai-gcp/src/models/components/moderationllmaction.ts +18 -0
- package/packages/mistralai-gcp/src/models/components/moderationllmv1categorythresholds.ts +64 -0
- package/packages/mistralai-gcp/src/models/components/moderationllmv1config.ts +70 -0
- package/packages/mistralai-gcp/src/models/components/moderationllmv2categorythresholds.ts +69 -0
- package/packages/mistralai-gcp/src/models/components/moderationllmv2config.ts +70 -0
- package/packages/mistralai-gcp/src/models/components/oauth2tokenauth.ts +32 -0
- package/packages/mistralai-gcp/src/models/components/reasoningeffort.ts +17 -0
- package/packages/mistralai-gcp/src/models/components/referencechunk.ts +32 -4
- package/packages/mistralai-gcp/src/models/components/thinkchunk.ts +6 -0
- package/packages/mistralai-gcp/src/models/components/tool.ts +3 -4
- package/packages/mistralai-gcp/src/models/components/toolcall.ts +3 -8
- package/packages/mistralai-gcp/src/models/components/toolchoice.ts +2 -3
- package/packages/mistralai-gcp/src/models/components/toolconfiguration.ts +42 -0
- package/packages/mistralai-gcp/src/models/components/toolreferencechunk.ts +11 -7
- package/packages/mistralai-gcp/src/models/components/websearchpremiumtool.ts +44 -0
- package/packages/mistralai-gcp/src/models/components/websearchtool.ts +40 -0
- package/packages/mistralai-gcp/src/models/errors/httpvalidationerror.ts +1 -1
- package/packages/mistralai-gcp/src/models/errors/index.ts +1 -1
- package/packages/mistralai-gcp/src/models/errors/responsevalidationerror.ts +1 -1
- package/packages/mistralai-gcp/src/models/errors/sdkerror.ts +1 -1
- package/packages/mistralai-gcp/src/types/async.ts +8 -7
- package/src/extra/structChat.ts +25 -5
- package/src/funcs/agentsComplete.ts +1 -1
- package/src/funcs/agentsStream.ts +1 -1
- package/src/funcs/audioSpeechComplete.ts +1 -1
- package/src/funcs/audioTranscriptionsComplete.ts +1 -1
- package/src/funcs/audioTranscriptionsStream.ts +1 -1
- package/src/funcs/audioVoicesCreate.ts +1 -1
- package/src/funcs/audioVoicesDelete.ts +1 -1
- package/src/funcs/audioVoicesGet.ts +1 -1
- package/src/funcs/audioVoicesGetSampleAudio.ts +1 -1
- package/src/funcs/audioVoicesList.ts +1 -1
- package/src/funcs/audioVoicesUpdate.ts +1 -1
- package/src/funcs/batchJobsCancel.ts +1 -1
- package/src/funcs/batchJobsCreate.ts +1 -1
- package/src/funcs/batchJobsDelete.ts +1 -1
- package/src/funcs/batchJobsGet.ts +1 -1
- package/src/funcs/batchJobsList.ts +1 -1
- package/src/funcs/betaAgentsCreate.ts +1 -1
- package/src/funcs/betaAgentsCreateVersionAlias.ts +1 -1
- package/src/funcs/betaAgentsDelete.ts +1 -1
- package/src/funcs/betaAgentsDeleteVersionAlias.ts +1 -1
- package/src/funcs/betaAgentsGet.ts +1 -1
- package/src/funcs/betaAgentsGetVersion.ts +1 -1
- package/src/funcs/betaAgentsList.ts +1 -1
- package/src/funcs/betaAgentsListVersionAliases.ts +1 -1
- package/src/funcs/betaAgentsListVersions.ts +1 -1
- package/src/funcs/betaAgentsUpdate.ts +1 -1
- package/src/funcs/betaAgentsUpdateVersion.ts +1 -1
- package/src/funcs/betaConnectorsActivateForOrganization.ts +186 -0
- package/src/funcs/betaConnectorsActivateForUser.ts +184 -0
- package/src/funcs/betaConnectorsActivateForWorkspace.ts +186 -0
- package/src/funcs/betaConnectorsCallTool.ts +1 -1
- package/src/funcs/betaConnectorsCreate.ts +1 -1
- package/src/funcs/betaConnectorsCreateOrUpdateOrganizationCredentials.ts +1 -1
- package/src/funcs/betaConnectorsCreateOrUpdateUserCredentials.ts +1 -1
- package/src/funcs/betaConnectorsCreateOrUpdateWorkspaceCredentials.ts +1 -1
- package/src/funcs/betaConnectorsDeactivateForOrganization.ts +182 -0
- package/src/funcs/betaConnectorsDeactivateForUser.ts +183 -0
- package/src/funcs/betaConnectorsDeactivateForWorkspace.ts +183 -0
- package/src/funcs/betaConnectorsDelete.ts +1 -1
- package/src/funcs/betaConnectorsDeleteOrganizationCredentials.ts +1 -1
- package/src/funcs/betaConnectorsDeleteUserCredentials.ts +1 -1
- package/src/funcs/betaConnectorsDeleteWorkspaceCredentials.ts +1 -1
- package/src/funcs/betaConnectorsGet.ts +2 -2
- package/src/funcs/betaConnectorsGetAuthUrl.ts +1 -1
- package/src/funcs/betaConnectorsGetAuthenticationMethods.ts +1 -1
- package/src/funcs/betaConnectorsList.ts +1 -1
- package/src/funcs/betaConnectorsListOrganizationCredentials.ts +1 -1
- package/src/funcs/betaConnectorsListTools.ts +1 -1
- package/src/funcs/betaConnectorsListUserCredentials.ts +1 -1
- package/src/funcs/betaConnectorsListWorkspaceCredentials.ts +1 -1
- package/src/funcs/betaConnectorsUpdate.ts +1 -1
- package/src/funcs/betaConversationsAppend.ts +1 -1
- package/src/funcs/betaConversationsAppendStream.ts +1 -1
- package/src/funcs/betaConversationsDelete.ts +1 -1
- package/src/funcs/betaConversationsGet.ts +1 -1
- package/src/funcs/betaConversationsGetHistory.ts +1 -1
- package/src/funcs/betaConversationsGetMessages.ts +1 -1
- package/src/funcs/betaConversationsList.ts +1 -1
- package/src/funcs/betaConversationsRestart.ts +1 -1
- package/src/funcs/betaConversationsRestartStream.ts +1 -1
- package/src/funcs/betaConversationsStart.ts +1 -1
- package/src/funcs/betaConversationsStartStream.ts +1 -1
- package/src/funcs/betaLibrariesAccessesDelete.ts +2 -2
- package/src/funcs/betaLibrariesAccessesList.ts +1 -1
- package/src/funcs/betaLibrariesAccessesUpdateOrCreate.ts +1 -1
- package/src/funcs/betaLibrariesCreate.ts +1 -1
- package/src/funcs/betaLibrariesDelete.ts +2 -2
- package/src/funcs/betaLibrariesDocumentsDelete.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsExtractedTextSignedUrl.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsGet.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsGetSignedUrl.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsLibrariesDocumentsUpdateV1.ts +190 -0
- package/src/funcs/betaLibrariesDocumentsList.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsReprocess.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsStatus.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsTextContent.ts +1 -1
- package/src/funcs/betaLibrariesDocumentsUpdate.ts +7 -7
- package/src/funcs/betaLibrariesDocumentsUpload.ts +1 -1
- package/src/funcs/betaLibrariesGet.ts +1 -1
- package/src/funcs/betaLibrariesLibrariesUpdateV1.ts +183 -0
- package/src/funcs/betaLibrariesList.ts +1 -1
- package/src/funcs/betaLibrariesUpdate.ts +6 -6
- package/src/funcs/betaObservabilityCampaignsCreate.ts +1 -1
- package/src/funcs/betaObservabilityCampaignsDelete.ts +1 -1
- package/src/funcs/betaObservabilityCampaignsFetch.ts +1 -1
- package/src/funcs/betaObservabilityCampaignsFetchStatus.ts +1 -1
- package/src/funcs/betaObservabilityCampaignsList.ts +1 -1
- package/src/funcs/betaObservabilityCampaignsListEvents.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsFetch.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsFetchSimilarEvents.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptionCounts.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsFieldsFetchOptions.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsFieldsList.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsJudge.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsSearch.ts +1 -1
- package/src/funcs/betaObservabilityChatCompletionEventsSearchIds.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsCreate.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsCreateRecord.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsDelete.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsExportToJsonl.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsFetch.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsFetchTask.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsImportFromCampaign.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsImportFromDatasetRecords.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsImportFromExplorer.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsImportFromFile.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsImportFromPlayground.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsList.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsListRecords.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsListTasks.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsBulkDelete.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsDelete.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsFetch.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsJudge.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsUpdatePayload.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsRecordsUpdateProperties.ts +1 -1
- package/src/funcs/betaObservabilityDatasetsUpdate.ts +1 -1
- package/src/funcs/betaObservabilityJudgesCreate.ts +1 -1
- package/src/funcs/betaObservabilityJudgesDelete.ts +1 -1
- package/src/funcs/betaObservabilityJudgesFetch.ts +1 -1
- package/src/funcs/betaObservabilityJudgesJudgeConversation.ts +1 -1
- package/src/funcs/betaObservabilityJudgesList.ts +1 -1
- package/src/funcs/betaObservabilityJudgesUpdate.ts +1 -1
- package/src/funcs/betaRagIngestionPipelineConfigurationsList.ts +1 -1
- package/src/funcs/betaRagIngestionPipelineConfigurationsRegister.ts +174 -0
- package/src/funcs/betaRagIngestionPipelineConfigurationsUpdateRunInfo.ts +184 -0
- package/src/funcs/betaRagSearchIndexesList.ts +143 -0
- package/src/funcs/betaRagSearchIndexesRegister.ts +170 -0
- package/src/funcs/chatComplete.ts +1 -1
- package/src/funcs/chatStream.ts +1 -1
- package/src/funcs/classifiersClassify.ts +1 -1
- package/src/funcs/classifiersClassifyChat.ts +1 -1
- package/src/funcs/classifiersModerate.ts +1 -1
- package/src/funcs/classifiersModerateChat.ts +1 -1
- package/src/funcs/embeddingsCreate.ts +1 -1
- package/src/funcs/eventsGetStreamEvents.ts +1 -1
- package/src/funcs/eventsGetWorkflowEvents.ts +1 -1
- package/src/funcs/filesDelete.ts +1 -1
- package/src/funcs/filesDownload.ts +1 -1
- package/src/funcs/filesGetSignedUrl.ts +1 -1
- package/src/funcs/filesList.ts +1 -1
- package/src/funcs/filesRetrieve.ts +1 -1
- package/src/funcs/filesUpload.ts +1 -1
- package/src/funcs/fimComplete.ts +1 -1
- package/src/funcs/fimStream.ts +1 -1
- package/src/funcs/fineTuningJobsCancel.ts +1 -1
- package/src/funcs/fineTuningJobsCreate.ts +1 -1
- package/src/funcs/fineTuningJobsGet.ts +1 -1
- package/src/funcs/fineTuningJobsList.ts +1 -1
- package/src/funcs/fineTuningJobsStart.ts +1 -1
- package/src/funcs/modelsArchive.ts +1 -1
- package/src/funcs/modelsDelete.ts +1 -1
- package/src/funcs/modelsList.ts +1 -1
- package/src/funcs/modelsRetrieve.ts +1 -1
- package/src/funcs/modelsUnarchive.ts +1 -1
- package/src/funcs/modelsUpdate.ts +1 -1
- package/src/funcs/ocrProcess.ts +1 -1
- package/src/funcs/workflowsArchiveWorkflow.ts +1 -1
- package/src/funcs/workflowsBulkArchiveWorkflows.ts +170 -0
- package/src/funcs/workflowsBulkUnarchiveWorkflows.ts +170 -0
- package/src/funcs/workflowsDeploymentsGetDeployment.ts +1 -1
- package/src/funcs/workflowsDeploymentsListDeployments.ts +1 -1
- package/src/funcs/workflowsExecuteWorkflow.ts +1 -1
- package/src/funcs/workflowsExecuteWorkflowRegistration.ts +1 -1
- package/src/funcs/workflowsExecutionsBatchCancelWorkflowExecutions.ts +1 -1
- package/src/funcs/workflowsExecutionsBatchTerminateWorkflowExecutions.ts +1 -1
- package/src/funcs/workflowsExecutionsCancelWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsExecutionsGetWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsExecutionsGetWorkflowExecutionHistory.ts +1 -1
- package/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceEvents.ts +1 -1
- package/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceOtel.ts +1 -1
- package/src/funcs/workflowsExecutionsGetWorkflowExecutionTraceSummary.ts +1 -1
- package/src/funcs/workflowsExecutionsQueryWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsExecutionsResetWorkflow.ts +1 -1
- package/src/funcs/workflowsExecutionsSignalWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsExecutionsStream.ts +1 -1
- package/src/funcs/workflowsExecutionsTerminateWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsExecutionsUpdateWorkflowExecution.ts +1 -1
- package/src/funcs/workflowsGetWorkflow.ts +1 -1
- package/src/funcs/workflowsGetWorkflowRegistration.ts +1 -1
- package/src/funcs/workflowsGetWorkflowRegistrations.ts +1 -1
- package/src/funcs/workflowsGetWorkflows.ts +1 -1
- package/src/funcs/workflowsMetricsGetWorkflowMetrics.ts +1 -1
- package/src/funcs/workflowsRunsGetRun.ts +1 -1
- package/src/funcs/workflowsRunsGetRunHistory.ts +1 -1
- package/src/funcs/workflowsRunsListRuns.ts +1 -1
- package/src/funcs/workflowsSchedulesGetSchedule.ts +178 -0
- package/src/funcs/workflowsSchedulesGetSchedules.ts +141 -30
- package/src/funcs/workflowsSchedulesPauseSchedule.ts +186 -0
- package/src/funcs/workflowsSchedulesResumeSchedule.ts +186 -0
- package/src/funcs/workflowsSchedulesScheduleWorkflow.ts +1 -1
- package/src/funcs/workflowsSchedulesUnscheduleWorkflow.ts +1 -1
- package/src/funcs/workflowsSchedulesUpdateSchedule.ts +181 -0
- package/src/funcs/workflowsUnarchiveWorkflow.ts +1 -1
- package/src/funcs/workflowsUpdateWorkflow.ts +1 -1
- package/src/hooks/deprecation_warning.ts +1 -2
- package/src/lib/config.ts +3 -3
- package/src/models/components/activitytaskcompletedattributesresponse.ts +2 -0
- package/src/models/components/activitytaskstartedattributesresponse.ts +2 -0
- package/src/models/components/agentscompletionrequest.ts +4 -0
- package/src/models/components/agentscompletionstreamrequest.ts +4 -0
- package/src/models/components/authenticationconfiguration.ts +8 -5
- package/src/models/components/basefielddefinition.ts +8 -6
- package/src/models/components/chatcompletionevent.ts +7 -9
- package/src/models/components/chatcompletioneventpreview.ts +7 -9
- package/src/models/components/chatcompletionrequest.ts +4 -0
- package/src/models/components/chatcompletionstreamrequest.ts +4 -0
- package/src/models/components/classifierfinetuningjob.ts +1 -1
- package/src/models/components/classifierfinetuningjobdetails.ts +42 -0
- package/src/models/components/classifiertrainingparameters.ts +12 -0
- package/src/models/components/clientcapabilities.ts +60 -0
- package/src/models/components/clienttaskscapability.ts +43 -0
- package/src/models/components/clienttasksrequestscapability.ts +45 -0
- package/src/models/components/completionfinetuningjob.ts +1 -1
- package/src/models/components/completionfinetuningjobdetails.ts +42 -0
- package/src/models/components/completiontrainingparameters.ts +12 -0
- package/src/models/components/connectionconfigtype.ts +21 -0
- package/src/models/components/connectionpreference.ts +49 -0
- package/src/models/components/connector.ts +88 -3
- package/src/models/components/connectorlocale.ts +40 -0
- package/src/models/components/connectorprotocol.ts +26 -0
- package/src/models/components/connectorsqueryfilters.ts +0 -11
- package/src/models/components/consumertype.ts +20 -0
- package/src/models/components/createbatchjobrequest.ts +8 -1
- package/src/models/components/createconnectorrequest.ts +9 -0
- package/src/models/components/createingestionpipelineconfigurationrequest.ts +44 -0
- package/src/models/components/createlibraryrequest.ts +5 -0
- package/src/models/components/createsearchindexinforequest.ts +89 -0
- package/src/models/components/createvespaschemarequest.ts +39 -0
- package/src/models/components/createvespasearchindexinforequest.ts +57 -0
- package/src/models/components/credentialsresponse.ts +7 -5
- package/src/models/components/customtaskcompletedattributesresponse.ts +2 -0
- package/src/models/components/customtaskstartedattributesresponse.ts +2 -0
- package/src/models/components/deletemodelresponse.ts +2 -2
- package/src/models/components/document.ts +20 -0
- package/src/models/components/elicitationcapability.ts +41 -0
- package/src/models/components/encodedpayloadoptions.ts +12 -5
- package/src/models/components/encryptedpatchvalue.ts +43 -0
- package/src/models/components/fimcompletionrequest.ts +4 -0
- package/src/models/components/fimcompletionstreamrequest.ts +4 -0
- package/src/models/components/index.ts +59 -5
- package/src/models/components/ingestionpipelineconfiguration.ts +17 -0
- package/src/models/components/jobmetadata.ts +18 -0
- package/src/models/components/jsonpatch.ts +50 -0
- package/src/models/components/jsonpatchappend.ts +29 -3
- package/src/models/components/jsonpatchpayloadresponse.ts +19 -57
- package/src/models/components/jsonpatchpayloadvalueresponse.ts +29 -0
- package/src/models/components/jsonpayloadresponse.ts +18 -1
- package/src/models/components/library.ts +17 -0
- package/src/models/components/logicalexpression.ts +132 -0
- package/src/models/components/mcpprompt.ts +49 -0
- package/src/models/components/mcpresource.ts +53 -0
- package/src/models/components/mcpserverauthenticationrequirement.ts +43 -0
- package/src/models/components/mcpservercard.ts +159 -0
- package/src/models/components/mcpservercardmeta.ts +45 -0
- package/src/models/components/mcpserverremote.ts +77 -0
- package/src/models/components/mcpserverremoteheader.ts +50 -0
- package/src/models/components/mcpserverrepository.ts +44 -0
- package/src/models/components/mcptoolmeta.ts +24 -16
- package/src/models/components/ocrrequest.ts +0 -3
- package/src/models/components/outboundauthenticationtype.ts +28 -0
- package/src/models/components/partialscheduledefinition.ts +128 -0
- package/src/models/components/processingstatus.ts +3 -0
- package/src/models/components/promptargument.ts +37 -0
- package/src/models/components/promptscapability.ts +35 -0
- package/src/models/components/publicauthenticationmethod.ts +9 -6
- package/src/models/components/publicconnectionconfig.ts +46 -0
- package/src/models/components/referencechunk.ts +8 -8
- package/src/models/components/resourcescapability.ts +37 -0
- package/src/models/components/resourcetype.ts +20 -0
- package/src/models/components/rootscapability.ts +35 -0
- package/src/models/components/samplingcapability.ts +37 -0
- package/src/models/components/scheduledefinition.ts +7 -0
- package/src/models/components/scheduledefinitionoutput.ts +42 -0
- package/src/models/components/schedulefutureexecution.ts +39 -0
- package/src/models/components/schedulerecentexecution.ts +51 -0
- package/src/models/components/searchindexresponse.ts +91 -0
- package/src/models/components/servercapabilities.ts +64 -0
- package/src/models/components/serverlocale.ts +45 -0
- package/src/models/components/servertaskscapability.ts +43 -0
- package/src/models/components/servertasksrequestscapability.ts +39 -0
- package/src/models/components/sharing.ts +6 -0
- package/src/models/components/sharingdelete.ts +3 -0
- package/src/models/components/sharingrequest.ts +3 -0
- package/src/models/components/taskselicitationcapability.ts +35 -0
- package/src/models/components/taskssamplingcapability.ts +35 -0
- package/src/models/components/taskstoolscapability.ts +35 -0
- package/src/models/components/toolexecutionconfiguration.ts +224 -0
- package/src/models/components/toolproperties.ts +53 -0
- package/src/models/components/toolscapability.ts +35 -0
- package/src/models/components/turbinemeta.ts +37 -0
- package/src/models/components/updateconnectorrequest.ts +16 -0
- package/src/models/components/updatedocumentrequest.ts +14 -3
- package/src/models/components/updatelibraryrequest.ts +3 -3
- package/src/models/components/updateruninfo.ts +36 -0
- package/src/models/components/vespaschemaresponse.ts +38 -0
- package/src/models/components/vespasearchindexinforesponse.ts +50 -0
- package/src/models/components/voiceappearance.ts +75 -0
- package/src/models/components/voicecreaterequest.ts +11 -0
- package/src/models/components/voiceresponse.ts +8 -0
- package/src/models/components/voiceupdaterequest.ts +11 -0
- package/src/models/components/workflowbulkarchiverequest.ts +39 -0
- package/src/models/components/workflowbulkarchiveresponse.ts +44 -0
- package/src/models/components/workflowbulkerror.ts +50 -0
- package/src/models/components/workflowbulkunarchiverequest.ts +41 -0
- package/src/models/components/workflowbulkunarchiveresponse.ts +44 -0
- package/src/models/components/workflowexecutioncompletedattributesresponse.ts +2 -0
- package/src/models/components/workflowexecutioncontinuedasnewattributesresponse.ts +2 -0
- package/src/models/components/workflowexecutionrequest.ts +0 -12
- package/src/models/components/workflowexecutionstartedattributesresponse.ts +2 -0
- package/src/models/components/workflowschedulelistresponse.ts +10 -0
- package/src/models/components/workflowschedulepauserequest.ts +36 -0
- package/src/models/components/workflowscheduleupdaterequest.ts +46 -0
- package/src/models/operations/connectoractivatefororganizationv1.ts +53 -0
- package/src/models/operations/connectoractivateforuserv1.ts +51 -0
- package/src/models/operations/connectoractivateforworkspacev1.ts +52 -0
- package/src/models/operations/connectordeactivatefororganizationv1.ts +40 -0
- package/src/models/operations/connectordeactivateforuserv1.ts +38 -0
- package/src/models/operations/connectordeactivateforworkspacev1.ts +39 -0
- package/src/models/operations/connectorgetv1.ts +7 -7
- package/src/models/operations/connectorlistorganizationcredentialsv1.ts +2 -2
- package/src/models/operations/connectorlistusercredentialsv1.ts +3 -2
- package/src/models/operations/connectorlistworkspacecredentialsv1.ts +2 -2
- package/src/models/operations/getschedulesv1workflowsschedulesget.ts +126 -0
- package/src/models/operations/getschedulev1workflowsschedulesscheduleidget.ts +40 -0
- package/src/models/operations/index.ts +14 -0
- package/src/models/operations/librariesdocumentslistv1.ts +5 -0
- package/src/models/operations/librariesdocumentspatchv1.ts +47 -0
- package/src/models/operations/librarieslistv1.ts +3 -1
- package/src/models/operations/librariespatchv1.ts +41 -0
- package/src/models/operations/pauseschedulev1workflowsschedulesscheduleidpausepost.ts +53 -0
- package/src/models/operations/resumeschedulev1workflowsschedulesscheduleidresumepost.ts +53 -0
- package/src/models/operations/updateruninfov1ragingestionpipelineconfigurationsidruninfoput.ts +47 -0
- package/src/models/operations/updateschedulev1workflowsschedulesscheduleidpatch.ts +47 -0
- package/src/sdk/accesses.ts +1 -1
- package/src/sdk/connectors.ts +108 -0
- package/src/sdk/documents.ts +22 -2
- package/src/sdk/ingestionpipelineconfigurations.ts +35 -0
- package/src/sdk/libraries.ts +22 -2
- package/src/sdk/rag.ts +6 -0
- package/src/sdk/schedules.ts +73 -2
- package/src/sdk/searchindexes.ts +38 -0
- package/src/sdk/workflows.ts +30 -0
- package/src/types/async.ts +8 -7
- package/tests/extra/structChat.test.ts +131 -0
- package/esm/models/components/authenticationtype.d.ts +0 -13
- package/esm/models/components/authenticationtype.d.ts.map +0 -1
- package/esm/models/components/authenticationtype.js +0 -15
- package/esm/models/components/authenticationtype.js.map +0 -1
- package/esm/models/components/mcpuitoolmeta.d.ts +0 -23
- package/esm/models/components/mcpuitoolmeta.d.ts.map +0 -1
- package/esm/models/components/mcpuitoolmeta.js +0 -23
- package/esm/models/components/mcpuitoolmeta.js.map +0 -1
- package/esm/models/components/tooltype.d.ts +0 -12
- package/esm/models/components/tooltype.d.ts.map +0 -1
- package/esm/models/components/tooltype.js +0 -15
- package/esm/models/components/tooltype.js.map +0 -1
- package/esm/models/components/turbinetoollocale.d.ts.map +0 -1
- package/esm/models/components/turbinetoollocale.js.map +0 -1
- package/esm/models/components/turbinetoolmeta.d.ts +0 -15
- package/esm/models/components/turbinetoolmeta.d.ts.map +0 -1
- package/esm/models/components/turbinetoolmeta.js +0 -25
- package/esm/models/components/turbinetoolmeta.js.map +0 -1
- package/packages/mistralai-azure/src/models/components/tooltypes.ts +0 -20
- package/packages/mistralai-gcp/src/models/components/tooltypes.ts +0 -20
- package/src/models/components/authenticationtype.ts +0 -26
- package/src/models/components/mcpuitoolmeta.ts +0 -47
- package/src/models/components/tooltype.ts +0 -20
- package/src/models/components/turbinetoollocale.ts +0 -46
- package/src/models/components/turbinetoolmeta.ts +0 -48
- /package/packages/mistralai-gcp/src/models/errors/{mistralgoogleclouderror.ts → mistralgcperror.ts} +0 -0
package/src/funcs/chatStream.ts
CHANGED
|
@@ -127,7 +127,7 @@ async function $do(
|
|
|
127
127
|
headers: headers,
|
|
128
128
|
body: body,
|
|
129
129
|
userAgent: client._options.userAgent,
|
|
130
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
130
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
131
131
|
}, options);
|
|
132
132
|
if (!requestRes.ok) {
|
|
133
133
|
return [requestRes, { status: "invalid" }];
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
headers: headers,
|
|
122
122
|
body: body,
|
|
123
123
|
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
125
125
|
}, options);
|
|
126
126
|
if (!requestRes.ok) {
|
|
127
127
|
return [requestRes, { status: "invalid" }];
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
headers: headers,
|
|
122
122
|
body: body,
|
|
123
123
|
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
125
125
|
}, options);
|
|
126
126
|
if (!requestRes.ok) {
|
|
127
127
|
return [requestRes, { status: "invalid" }];
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
headers: headers,
|
|
122
122
|
body: body,
|
|
123
123
|
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
125
125
|
}, options);
|
|
126
126
|
if (!requestRes.ok) {
|
|
127
127
|
return [requestRes, { status: "invalid" }];
|
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
headers: headers,
|
|
122
122
|
body: body,
|
|
123
123
|
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
125
125
|
}, options);
|
|
126
126
|
if (!requestRes.ok) {
|
|
127
127
|
return [requestRes, { status: "invalid" }];
|
|
@@ -124,7 +124,7 @@ async function $do(
|
|
|
124
124
|
headers: headers,
|
|
125
125
|
body: body,
|
|
126
126
|
userAgent: client._options.userAgent,
|
|
127
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
127
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
128
128
|
}, options);
|
|
129
129
|
if (!requestRes.ok) {
|
|
130
130
|
return [requestRes, { status: "invalid" }];
|
|
@@ -151,7 +151,7 @@ async function $do(
|
|
|
151
151
|
query: query,
|
|
152
152
|
body: body,
|
|
153
153
|
userAgent: client._options.userAgent,
|
|
154
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
154
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
155
155
|
}, options);
|
|
156
156
|
if (!requestRes.ok) {
|
|
157
157
|
return [requestRes, { status: "invalid" }];
|
|
@@ -136,7 +136,7 @@ async function $do(
|
|
|
136
136
|
query: query,
|
|
137
137
|
body: body,
|
|
138
138
|
userAgent: client._options.userAgent,
|
|
139
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
139
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
140
140
|
}, options);
|
|
141
141
|
if (!requestRes.ok) {
|
|
142
142
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/filesDelete.ts
CHANGED
|
@@ -128,7 +128,7 @@ async function $do(
|
|
|
128
128
|
headers: headers,
|
|
129
129
|
body: body,
|
|
130
130
|
userAgent: client._options.userAgent,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
132
132
|
}, options);
|
|
133
133
|
if (!requestRes.ok) {
|
|
134
134
|
return [requestRes, { status: "invalid" }];
|
|
@@ -128,7 +128,7 @@ async function $do(
|
|
|
128
128
|
headers: headers,
|
|
129
129
|
body: body,
|
|
130
130
|
userAgent: client._options.userAgent,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
132
132
|
}, options);
|
|
133
133
|
if (!requestRes.ok) {
|
|
134
134
|
return [requestRes, { status: "invalid" }];
|
|
@@ -130,7 +130,7 @@ async function $do(
|
|
|
130
130
|
query: query,
|
|
131
131
|
body: body,
|
|
132
132
|
userAgent: client._options.userAgent,
|
|
133
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
134
134
|
}, options);
|
|
135
135
|
if (!requestRes.ok) {
|
|
136
136
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/filesList.ts
CHANGED
|
@@ -136,7 +136,7 @@ async function $do(
|
|
|
136
136
|
query: query,
|
|
137
137
|
body: body,
|
|
138
138
|
userAgent: client._options.userAgent,
|
|
139
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
139
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
140
140
|
}, options);
|
|
141
141
|
if (!requestRes.ok) {
|
|
142
142
|
return [requestRes, { status: "invalid" }];
|
|
@@ -128,7 +128,7 @@ async function $do(
|
|
|
128
128
|
headers: headers,
|
|
129
129
|
body: body,
|
|
130
130
|
userAgent: client._options.userAgent,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
132
132
|
}, options);
|
|
133
133
|
if (!requestRes.ok) {
|
|
134
134
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/filesUpload.ts
CHANGED
|
@@ -167,7 +167,7 @@ async function $do(
|
|
|
167
167
|
headers: headers,
|
|
168
168
|
body: body,
|
|
169
169
|
userAgent: client._options.userAgent,
|
|
170
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
170
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
171
171
|
}, options);
|
|
172
172
|
if (!requestRes.ok) {
|
|
173
173
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/fimComplete.ts
CHANGED
|
@@ -124,7 +124,7 @@ async function $do(
|
|
|
124
124
|
headers: headers,
|
|
125
125
|
body: body,
|
|
126
126
|
userAgent: client._options.userAgent,
|
|
127
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
127
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
128
128
|
}, options);
|
|
129
129
|
if (!requestRes.ok) {
|
|
130
130
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/fimStream.ts
CHANGED
|
@@ -127,7 +127,7 @@ async function $do(
|
|
|
127
127
|
headers: headers,
|
|
128
128
|
body: body,
|
|
129
129
|
userAgent: client._options.userAgent,
|
|
130
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
130
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
131
131
|
}, options);
|
|
132
132
|
if (!requestRes.ok) {
|
|
133
133
|
return [requestRes, { status: "invalid" }];
|
|
@@ -130,7 +130,7 @@ async function $do(
|
|
|
130
130
|
headers: headers,
|
|
131
131
|
body: body,
|
|
132
132
|
userAgent: client._options.userAgent,
|
|
133
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
133
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
134
134
|
}, options);
|
|
135
135
|
if (!requestRes.ok) {
|
|
136
136
|
return [requestRes, { status: "invalid" }];
|
|
@@ -123,7 +123,7 @@ async function $do(
|
|
|
123
123
|
headers: headers,
|
|
124
124
|
body: body,
|
|
125
125
|
userAgent: client._options.userAgent,
|
|
126
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
126
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
127
127
|
}, options);
|
|
128
128
|
if (!requestRes.ok) {
|
|
129
129
|
return [requestRes, { status: "invalid" }];
|
|
@@ -128,7 +128,7 @@ async function $do(
|
|
|
128
128
|
headers: headers,
|
|
129
129
|
body: body,
|
|
130
130
|
userAgent: client._options.userAgent,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
132
132
|
}, options);
|
|
133
133
|
if (!requestRes.ok) {
|
|
134
134
|
return [requestRes, { status: "invalid" }];
|
|
@@ -141,7 +141,7 @@ async function $do(
|
|
|
141
141
|
query: query,
|
|
142
142
|
body: body,
|
|
143
143
|
userAgent: client._options.userAgent,
|
|
144
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
144
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
145
145
|
}, options);
|
|
146
146
|
if (!requestRes.ok) {
|
|
147
147
|
return [requestRes, { status: "invalid" }];
|
|
@@ -128,7 +128,7 @@ async function $do(
|
|
|
128
128
|
headers: headers,
|
|
129
129
|
body: body,
|
|
130
130
|
userAgent: client._options.userAgent,
|
|
131
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
131
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
132
132
|
}, options);
|
|
133
133
|
if (!requestRes.ok) {
|
|
134
134
|
return [requestRes, { status: "invalid" }];
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
headers: headers,
|
|
133
133
|
body: body,
|
|
134
134
|
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
136
136
|
}, options);
|
|
137
137
|
if (!requestRes.ok) {
|
|
138
138
|
return [requestRes, { status: "invalid" }];
|
|
@@ -133,7 +133,7 @@ async function $do(
|
|
|
133
133
|
headers: headers,
|
|
134
134
|
body: body,
|
|
135
135
|
userAgent: client._options.userAgent,
|
|
136
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
137
137
|
}, options);
|
|
138
138
|
if (!requestRes.ok) {
|
|
139
139
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/modelsList.ts
CHANGED
|
@@ -133,7 +133,7 @@ async function $do(
|
|
|
133
133
|
query: query,
|
|
134
134
|
body: body,
|
|
135
135
|
userAgent: client._options.userAgent,
|
|
136
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
137
137
|
}, options);
|
|
138
138
|
if (!requestRes.ok) {
|
|
139
139
|
return [requestRes, { status: "invalid" }];
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
headers: headers,
|
|
133
133
|
body: body,
|
|
134
134
|
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
136
136
|
}, options);
|
|
137
137
|
if (!requestRes.ok) {
|
|
138
138
|
return [requestRes, { status: "invalid" }];
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
headers: headers,
|
|
133
133
|
body: body,
|
|
134
134
|
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
136
136
|
}, options);
|
|
137
137
|
if (!requestRes.ok) {
|
|
138
138
|
return [requestRes, { status: "invalid" }];
|
|
@@ -132,7 +132,7 @@ async function $do(
|
|
|
132
132
|
headers: headers,
|
|
133
133
|
body: body,
|
|
134
134
|
userAgent: client._options.userAgent,
|
|
135
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
135
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
136
136
|
}, options);
|
|
137
137
|
if (!requestRes.ok) {
|
|
138
138
|
return [requestRes, { status: "invalid" }];
|
package/src/funcs/ocrProcess.ts
CHANGED
|
@@ -121,7 +121,7 @@ async function $do(
|
|
|
121
121
|
headers: headers,
|
|
122
122
|
body: body,
|
|
123
123
|
userAgent: client._options.userAgent,
|
|
124
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
124
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
125
125
|
}, options);
|
|
126
126
|
if (!requestRes.ok) {
|
|
127
127
|
return [requestRes, { status: "invalid" }];
|
|
@@ -136,7 +136,7 @@ async function $do(
|
|
|
136
136
|
headers: headers,
|
|
137
137
|
body: body,
|
|
138
138
|
userAgent: client._options.userAgent,
|
|
139
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
139
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
140
140
|
}, options);
|
|
141
141
|
if (!requestRes.ok) {
|
|
142
142
|
return [requestRes, { status: "invalid" }];
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: f9f8c82c134f
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { MistralCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import * as components from "../models/components/index.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
25
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
26
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Bulk Archive Workflows
|
|
32
|
+
*/
|
|
33
|
+
export function workflowsBulkArchiveWorkflows(
|
|
34
|
+
client: MistralCore,
|
|
35
|
+
request: components.WorkflowBulkArchiveRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
components.WorkflowBulkArchiveResponse,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| MistralError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MistralCore,
|
|
60
|
+
request: components.WorkflowBulkArchiveRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.WorkflowBulkArchiveResponse,
|
|
66
|
+
| errors.HTTPValidationError
|
|
67
|
+
| MistralError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
components.WorkflowBulkArchiveRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
90
|
+
|
|
91
|
+
const path = pathToFunc("/v1/workflows/archive")();
|
|
92
|
+
|
|
93
|
+
const headers = new Headers(compactMap({
|
|
94
|
+
"Content-Type": "application/json",
|
|
95
|
+
Accept: "application/json",
|
|
96
|
+
}));
|
|
97
|
+
|
|
98
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
99
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
options: client._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
+
operationID: "bulk_archive_workflows_v1_workflows_archive_put",
|
|
106
|
+
oAuth2Scopes: null,
|
|
107
|
+
|
|
108
|
+
resolvedSecurity: requestSecurity,
|
|
109
|
+
|
|
110
|
+
securitySource: client._options.apiKey,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const requestRes = client._createRequest(context, {
|
|
118
|
+
security: requestSecurity,
|
|
119
|
+
method: "PUT",
|
|
120
|
+
baseURL: options?.serverURL,
|
|
121
|
+
path: path,
|
|
122
|
+
headers: headers,
|
|
123
|
+
body: body,
|
|
124
|
+
userAgent: client._options.userAgent,
|
|
125
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
126
|
+
}, options);
|
|
127
|
+
if (!requestRes.ok) {
|
|
128
|
+
return [requestRes, { status: "invalid" }];
|
|
129
|
+
}
|
|
130
|
+
const req = requestRes.value;
|
|
131
|
+
|
|
132
|
+
const doResult = await client._do(req, {
|
|
133
|
+
context,
|
|
134
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
135
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
136
|
+
retryConfig: context.retryConfig,
|
|
137
|
+
retryCodes: context.retryCodes,
|
|
138
|
+
});
|
|
139
|
+
if (!doResult.ok) {
|
|
140
|
+
return [doResult, { status: "request-error", request: req }];
|
|
141
|
+
}
|
|
142
|
+
const response = doResult.value;
|
|
143
|
+
|
|
144
|
+
const responseFields = {
|
|
145
|
+
HttpMeta: { Response: response, Request: req },
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
components.WorkflowBulkArchiveResponse,
|
|
150
|
+
| errors.HTTPValidationError
|
|
151
|
+
| MistralError
|
|
152
|
+
| ResponseValidationError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| UnexpectedClientError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, components.WorkflowBulkArchiveResponse$inboundSchema),
|
|
161
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
162
|
+
M.fail("4XX"),
|
|
163
|
+
M.fail("5XX"),
|
|
164
|
+
)(response, req, { extraFields: responseFields });
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 17c4664dbbf0
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import { MistralCore } from "../core.js";
|
|
7
|
+
import { encodeJSON } from "../lib/encodings.js";
|
|
8
|
+
import { matchStatusCode } from "../lib/http.js";
|
|
9
|
+
import * as M from "../lib/matchers.js";
|
|
10
|
+
import { compactMap } from "../lib/primitives.js";
|
|
11
|
+
import { safeParse } from "../lib/schemas.js";
|
|
12
|
+
import { RequestOptions } from "../lib/sdks.js";
|
|
13
|
+
import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
|
|
14
|
+
import { pathToFunc } from "../lib/url.js";
|
|
15
|
+
import * as components from "../models/components/index.js";
|
|
16
|
+
import {
|
|
17
|
+
ConnectionError,
|
|
18
|
+
InvalidRequestError,
|
|
19
|
+
RequestAbortedError,
|
|
20
|
+
RequestTimeoutError,
|
|
21
|
+
UnexpectedClientError,
|
|
22
|
+
} from "../models/errors/httpclienterrors.js";
|
|
23
|
+
import * as errors from "../models/errors/index.js";
|
|
24
|
+
import { MistralError } from "../models/errors/mistralerror.js";
|
|
25
|
+
import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
|
|
26
|
+
import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
|
|
27
|
+
import { APICall, APIPromise } from "../types/async.js";
|
|
28
|
+
import { Result } from "../types/fp.js";
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Bulk Unarchive Workflows
|
|
32
|
+
*/
|
|
33
|
+
export function workflowsBulkUnarchiveWorkflows(
|
|
34
|
+
client: MistralCore,
|
|
35
|
+
request: components.WorkflowBulkUnarchiveRequest,
|
|
36
|
+
options?: RequestOptions,
|
|
37
|
+
): APIPromise<
|
|
38
|
+
Result<
|
|
39
|
+
components.WorkflowBulkUnarchiveResponse,
|
|
40
|
+
| errors.HTTPValidationError
|
|
41
|
+
| MistralError
|
|
42
|
+
| ResponseValidationError
|
|
43
|
+
| ConnectionError
|
|
44
|
+
| RequestAbortedError
|
|
45
|
+
| RequestTimeoutError
|
|
46
|
+
| InvalidRequestError
|
|
47
|
+
| UnexpectedClientError
|
|
48
|
+
| SDKValidationError
|
|
49
|
+
>
|
|
50
|
+
> {
|
|
51
|
+
return new APIPromise($do(
|
|
52
|
+
client,
|
|
53
|
+
request,
|
|
54
|
+
options,
|
|
55
|
+
));
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
async function $do(
|
|
59
|
+
client: MistralCore,
|
|
60
|
+
request: components.WorkflowBulkUnarchiveRequest,
|
|
61
|
+
options?: RequestOptions,
|
|
62
|
+
): Promise<
|
|
63
|
+
[
|
|
64
|
+
Result<
|
|
65
|
+
components.WorkflowBulkUnarchiveResponse,
|
|
66
|
+
| errors.HTTPValidationError
|
|
67
|
+
| MistralError
|
|
68
|
+
| ResponseValidationError
|
|
69
|
+
| ConnectionError
|
|
70
|
+
| RequestAbortedError
|
|
71
|
+
| RequestTimeoutError
|
|
72
|
+
| InvalidRequestError
|
|
73
|
+
| UnexpectedClientError
|
|
74
|
+
| SDKValidationError
|
|
75
|
+
>,
|
|
76
|
+
APICall,
|
|
77
|
+
]
|
|
78
|
+
> {
|
|
79
|
+
const parsed = safeParse(
|
|
80
|
+
request,
|
|
81
|
+
(value) =>
|
|
82
|
+
components.WorkflowBulkUnarchiveRequest$outboundSchema.parse(value),
|
|
83
|
+
"Input validation failed",
|
|
84
|
+
);
|
|
85
|
+
if (!parsed.ok) {
|
|
86
|
+
return [parsed, { status: "invalid" }];
|
|
87
|
+
}
|
|
88
|
+
const payload = parsed.value;
|
|
89
|
+
const body = encodeJSON("body", payload, { explode: true });
|
|
90
|
+
|
|
91
|
+
const path = pathToFunc("/v1/workflows/unarchive")();
|
|
92
|
+
|
|
93
|
+
const headers = new Headers(compactMap({
|
|
94
|
+
"Content-Type": "application/json",
|
|
95
|
+
Accept: "application/json",
|
|
96
|
+
}));
|
|
97
|
+
|
|
98
|
+
const secConfig = await extractSecurity(client._options.apiKey);
|
|
99
|
+
const securityInput = secConfig == null ? {} : { apiKey: secConfig };
|
|
100
|
+
const requestSecurity = resolveGlobalSecurity(securityInput);
|
|
101
|
+
|
|
102
|
+
const context = {
|
|
103
|
+
options: client._options,
|
|
104
|
+
baseURL: options?.serverURL ?? client._baseURL ?? "",
|
|
105
|
+
operationID: "bulk_unarchive_workflows_v1_workflows_unarchive_put",
|
|
106
|
+
oAuth2Scopes: null,
|
|
107
|
+
|
|
108
|
+
resolvedSecurity: requestSecurity,
|
|
109
|
+
|
|
110
|
+
securitySource: client._options.apiKey,
|
|
111
|
+
retryConfig: options?.retries
|
|
112
|
+
|| client._options.retryConfig
|
|
113
|
+
|| { strategy: "none" },
|
|
114
|
+
retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
|
|
115
|
+
};
|
|
116
|
+
|
|
117
|
+
const requestRes = client._createRequest(context, {
|
|
118
|
+
security: requestSecurity,
|
|
119
|
+
method: "PUT",
|
|
120
|
+
baseURL: options?.serverURL,
|
|
121
|
+
path: path,
|
|
122
|
+
headers: headers,
|
|
123
|
+
body: body,
|
|
124
|
+
userAgent: client._options.userAgent,
|
|
125
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
126
|
+
}, options);
|
|
127
|
+
if (!requestRes.ok) {
|
|
128
|
+
return [requestRes, { status: "invalid" }];
|
|
129
|
+
}
|
|
130
|
+
const req = requestRes.value;
|
|
131
|
+
|
|
132
|
+
const doResult = await client._do(req, {
|
|
133
|
+
context,
|
|
134
|
+
isErrorStatusCode: (statusCode: number) =>
|
|
135
|
+
matchStatusCode({ status: statusCode } as Response, ["4XX", "5XX"]),
|
|
136
|
+
retryConfig: context.retryConfig,
|
|
137
|
+
retryCodes: context.retryCodes,
|
|
138
|
+
});
|
|
139
|
+
if (!doResult.ok) {
|
|
140
|
+
return [doResult, { status: "request-error", request: req }];
|
|
141
|
+
}
|
|
142
|
+
const response = doResult.value;
|
|
143
|
+
|
|
144
|
+
const responseFields = {
|
|
145
|
+
HttpMeta: { Response: response, Request: req },
|
|
146
|
+
};
|
|
147
|
+
|
|
148
|
+
const [result] = await M.match<
|
|
149
|
+
components.WorkflowBulkUnarchiveResponse,
|
|
150
|
+
| errors.HTTPValidationError
|
|
151
|
+
| MistralError
|
|
152
|
+
| ResponseValidationError
|
|
153
|
+
| ConnectionError
|
|
154
|
+
| RequestAbortedError
|
|
155
|
+
| RequestTimeoutError
|
|
156
|
+
| InvalidRequestError
|
|
157
|
+
| UnexpectedClientError
|
|
158
|
+
| SDKValidationError
|
|
159
|
+
>(
|
|
160
|
+
M.json(200, components.WorkflowBulkUnarchiveResponse$inboundSchema),
|
|
161
|
+
M.jsonErr(422, errors.HTTPValidationError$inboundSchema),
|
|
162
|
+
M.fail("4XX"),
|
|
163
|
+
M.fail("5XX"),
|
|
164
|
+
)(response, req, { extraFields: responseFields });
|
|
165
|
+
if (!result.ok) {
|
|
166
|
+
return [result, { status: "complete", request: req, response }];
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
return [result, { status: "complete", request: req, response }];
|
|
170
|
+
}
|
|
@@ -131,7 +131,7 @@ async function $do(
|
|
|
131
131
|
headers: headers,
|
|
132
132
|
body: body,
|
|
133
133
|
userAgent: client._options.userAgent,
|
|
134
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
134
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
135
135
|
}, options);
|
|
136
136
|
if (!requestRes.ok) {
|
|
137
137
|
return [requestRes, { status: "invalid" }];
|
|
@@ -133,7 +133,7 @@ async function $do(
|
|
|
133
133
|
query: query,
|
|
134
134
|
body: body,
|
|
135
135
|
userAgent: client._options.userAgent,
|
|
136
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
136
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
137
137
|
}, options);
|
|
138
138
|
if (!requestRes.ok) {
|
|
139
139
|
return [requestRes, { status: "invalid" }];
|
|
@@ -138,7 +138,7 @@ async function $do(
|
|
|
138
138
|
headers: headers,
|
|
139
139
|
body: body,
|
|
140
140
|
userAgent: client._options.userAgent,
|
|
141
|
-
timeoutMs: options?.timeoutMs || client._options.timeoutMs ||
|
|
141
|
+
timeoutMs: options?.timeoutMs || client._options.timeoutMs || 60000,
|
|
142
142
|
}, options);
|
|
143
143
|
if (!requestRes.ok) {
|
|
144
144
|
return [requestRes, { status: "invalid" }];
|