@lingya-ai/agents-sdk 0.5.0 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +63 -5
- package/dist/apis/ChatApi.d.ts +175 -2
- package/dist/apis/ChatApi.js +429 -2
- package/dist/apis/ConfigurationApi.d.ts +23 -2
- package/dist/apis/ConfigurationApi.js +65 -2
- package/dist/apis/ConversationsApi.d.ts +139 -71
- package/dist/apis/ConversationsApi.js +316 -85
- package/dist/apis/EventsApi.d.ts +2 -2
- package/dist/apis/EventsApi.js +8 -2
- package/dist/apis/FilesApi.d.ts +2 -2
- package/dist/apis/FilesApi.js +20 -2
- package/dist/apis/InteractionsApi.d.ts +30 -2
- package/dist/apis/InteractionsApi.js +81 -2
- package/dist/apis/KnowledgeApi.d.ts +2 -2
- package/dist/apis/KnowledgeApi.js +8 -2
- package/dist/apis/MessagesApi.d.ts +35 -2
- package/dist/apis/MessagesApi.js +105 -2
- package/dist/apis/SQLApi.d.ts +2 -2
- package/dist/apis/SQLApi.js +11 -2
- package/dist/apis/WorkspaceApi.d.ts +2 -2
- package/dist/apis/WorkspaceApi.js +8 -2
- package/dist/bound.d.ts +254 -63
- package/dist/bound.js +242 -131
- package/dist/browser.d.ts +14 -0
- package/dist/browser.js +67 -0
- package/dist/client-core.d.ts +101 -0
- package/dist/client-core.js +158 -0
- package/dist/client.d.ts +27 -125
- package/dist/client.js +112 -158
- package/dist/esm/apis/ChatApi.d.ts +175 -2
- package/dist/esm/apis/ChatApi.js +429 -2
- package/dist/esm/apis/ConfigurationApi.d.ts +23 -2
- package/dist/esm/apis/ConfigurationApi.js +65 -2
- package/dist/esm/apis/ConversationsApi.d.ts +139 -71
- package/dist/esm/apis/ConversationsApi.js +315 -84
- package/dist/esm/apis/EventsApi.d.ts +2 -2
- package/dist/esm/apis/EventsApi.js +8 -2
- package/dist/esm/apis/FilesApi.d.ts +2 -2
- package/dist/esm/apis/FilesApi.js +20 -2
- package/dist/esm/apis/InteractionsApi.d.ts +30 -2
- package/dist/esm/apis/InteractionsApi.js +81 -2
- package/dist/esm/apis/KnowledgeApi.d.ts +2 -2
- package/dist/esm/apis/KnowledgeApi.js +8 -2
- package/dist/esm/apis/MessagesApi.d.ts +35 -2
- package/dist/esm/apis/MessagesApi.js +105 -2
- package/dist/esm/apis/SQLApi.d.ts +2 -2
- package/dist/esm/apis/SQLApi.js +11 -2
- package/dist/esm/apis/WorkspaceApi.d.ts +2 -2
- package/dist/esm/apis/WorkspaceApi.js +8 -2
- package/dist/esm/bound.d.ts +254 -63
- package/dist/esm/bound.js +242 -131
- package/dist/esm/browser.d.ts +14 -0
- package/dist/esm/browser.js +47 -0
- package/dist/esm/client-core.d.ts +101 -0
- package/dist/esm/client-core.js +142 -0
- package/dist/esm/client.d.ts +27 -125
- package/dist/esm/client.js +98 -159
- package/dist/esm/events.js +1 -1
- package/dist/esm/hmac.d.ts +1 -1
- package/dist/esm/hmac.js +3 -2
- package/dist/esm/lifecycle.d.ts +55 -0
- package/dist/esm/lifecycle.js +163 -0
- package/dist/esm/models/AgentAsyncTaskSync.d.ts +2 -2
- package/dist/esm/models/AgentAsyncTaskSync.js +2 -2
- package/dist/esm/models/AgentFile.d.ts +2 -2
- package/dist/esm/models/AgentFile.js +2 -2
- package/dist/esm/models/AgentGoal.d.ts +117 -0
- package/dist/esm/models/AgentGoal.js +127 -0
- package/dist/esm/models/AgentGoalConfig.d.ts +34 -0
- package/dist/esm/models/AgentGoalConfig.js +47 -0
- package/dist/esm/models/AgentGoalHistory.d.ts +43 -0
- package/dist/esm/models/AgentGoalHistory.js +56 -0
- package/dist/esm/models/AgentGoalRefInput.d.ts +34 -0
- package/dist/esm/models/AgentGoalRefInput.js +47 -0
- package/dist/esm/models/AgentGoalView.d.ts +31 -0
- package/dist/esm/models/AgentGoalView.js +44 -0
- package/dist/esm/models/AgentsConfig.d.ts +7 -2
- package/dist/esm/models/AgentsConfig.js +5 -2
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.js +2 -2
- package/dist/esm/models/AiChatBriefEvent.d.ts +2 -8
- package/dist/esm/models/AiChatBriefEvent.js +2 -12
- package/dist/esm/models/AiChatBriefEventList.d.ts +2 -2
- package/dist/esm/models/AiChatBriefEventList.js +2 -2
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.js +2 -2
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.js +2 -2
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.js +2 -2
- package/dist/esm/models/AiChatEndBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatEndBriefEvent.js +2 -2
- package/dist/esm/models/AiChatErrorBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatErrorBriefEvent.js +2 -2
- package/dist/esm/models/AiChatEventsBatch.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatch.js +2 -2
- package/dist/esm/models/AiChatEventsBatchInput.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatchInput.js +2 -2
- package/dist/esm/models/AiChatEventsBatchSkipped.d.ts +2 -2
- package/dist/esm/models/AiChatEventsBatchSkipped.js +2 -2
- package/dist/esm/models/AiChatFileRef.d.ts +2 -2
- package/dist/esm/models/AiChatFileRef.js +2 -2
- package/dist/esm/models/AiChatInput.d.ts +10 -2
- package/dist/esm/models/AiChatInput.js +6 -2
- package/dist/esm/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatManualInterruptBriefEvent.js +2 -2
- package/dist/esm/models/AiChatMessageBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatMessageBriefEvent.js +2 -2
- package/dist/esm/models/AiChatMessageEvent.d.ts +2 -2
- package/dist/esm/models/AiChatMessageEvent.js +2 -2
- package/dist/esm/models/AiChatStartBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatStartBriefEvent.js +2 -2
- package/dist/esm/models/AiChatStreamInput.d.ts +2 -2
- package/dist/esm/models/AiChatStreamInput.js +2 -2
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.js +2 -2
- package/dist/esm/models/AiChatSubmission.d.ts +2 -2
- package/dist/esm/models/AiChatSubmission.js +2 -2
- package/dist/esm/models/AiChatThinkBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatThinkBriefEvent.js +2 -2
- package/dist/esm/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatToolExecutionBriefEvent.js +2 -2
- package/dist/esm/models/AiChatUserQueryBriefEvent.d.ts +2 -2
- package/dist/esm/models/AiChatUserQueryBriefEvent.js +2 -2
- package/dist/esm/models/ArtifactInfo.d.ts +2 -2
- package/dist/esm/models/ArtifactInfo.js +2 -2
- package/dist/esm/models/AskUserQuestionExtensionContent.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionExtensionContent.js +2 -2
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.js +2 -2
- package/dist/esm/models/AskUserQuestionOption.d.ts +2 -2
- package/dist/esm/models/AskUserQuestionOption.js +2 -2
- package/dist/esm/models/AsyncTask.d.ts +2 -2
- package/dist/esm/models/AsyncTask.js +2 -2
- package/dist/esm/models/AsyncTaskPage.d.ts +2 -2
- package/dist/esm/models/AsyncTaskPage.js +2 -2
- package/dist/esm/models/AttachmentExtension.d.ts +2 -2
- package/dist/esm/models/AttachmentExtension.js +2 -2
- package/dist/esm/models/BooleanChartColumn.d.ts +2 -2
- package/dist/esm/models/BooleanChartColumn.js +2 -2
- package/dist/esm/models/ChartColumnData.d.ts +2 -2
- package/dist/esm/models/ChartColumnData.js +2 -2
- package/dist/esm/models/ChartNumberFormat.d.ts +2 -2
- package/dist/esm/models/ChartNumberFormat.js +2 -2
- package/dist/esm/models/ChartQualitySummary.d.ts +2 -2
- package/dist/esm/models/ChartQualitySummary.js +2 -2
- package/dist/esm/models/ChartSeries.d.ts +2 -2
- package/dist/esm/models/ChartSeries.js +2 -2
- package/dist/esm/models/ChartSpec.d.ts +2 -2
- package/dist/esm/models/ChartSpec.js +2 -2
- package/dist/esm/models/ChartTimeContext.d.ts +2 -2
- package/dist/esm/models/ChartTimeContext.js +2 -2
- package/dist/esm/models/ChatModelConfig.d.ts +2 -2
- package/dist/esm/models/ChatModelConfig.js +2 -2
- package/dist/esm/models/ChatModelSpec.d.ts +2 -2
- package/dist/esm/models/ChatModelSpec.js +2 -2
- package/dist/esm/models/ChatStreamProbeEvent.d.ts +2 -2
- package/dist/esm/models/ChatStreamProbeEvent.js +2 -2
- package/dist/esm/models/ChatStreamProbeInput.d.ts +2 -2
- package/dist/esm/models/ChatStreamProbeInput.js +2 -2
- package/dist/esm/models/CitationMetadata.d.ts +2 -2
- package/dist/esm/models/CitationMetadata.js +2 -2
- package/dist/esm/models/CitationMetadataList.d.ts +2 -2
- package/dist/esm/models/CitationMetadataList.js +2 -2
- package/dist/esm/models/CodeMessage.d.ts +2 -2
- package/dist/esm/models/CodeMessage.js +2 -2
- package/dist/esm/models/ConfirmUploadInput.d.ts +2 -2
- package/dist/esm/models/ConfirmUploadInput.js +2 -2
- package/dist/esm/models/ConversationActivity.d.ts +2 -2
- package/dist/esm/models/ConversationActivity.js +2 -2
- package/dist/esm/models/ConversationActivityBatchInput.d.ts +2 -2
- package/dist/esm/models/ConversationActivityBatchInput.js +2 -2
- package/dist/esm/models/ConversationActivityList.d.ts +2 -2
- package/dist/esm/models/ConversationActivityList.js +2 -2
- package/dist/esm/models/ConversationConfig.d.ts +7 -3
- package/dist/esm/models/ConversationConfig.js +9 -3
- package/dist/esm/models/ConversationContextUsage.d.ts +2 -2
- package/dist/esm/models/ConversationContextUsage.js +2 -2
- package/dist/esm/models/ConversationGroup.d.ts +42 -0
- package/dist/esm/models/ConversationGroup.js +56 -0
- package/dist/esm/models/ConversationGroupDeleted.d.ts +34 -0
- package/dist/esm/models/ConversationGroupDeleted.js +47 -0
- package/dist/esm/models/ConversationGroupList.d.ts +31 -0
- package/dist/esm/models/ConversationGroupList.js +44 -0
- package/dist/esm/models/ConversationGroupNameInput.d.ts +30 -0
- package/dist/esm/models/ConversationGroupNameInput.js +43 -0
- package/dist/esm/models/ConversationIds.d.ts +2 -2
- package/dist/esm/models/ConversationIds.js +2 -2
- package/dist/esm/models/ConversationMessage.d.ts +2 -2
- package/dist/esm/models/ConversationMessage.js +2 -2
- package/dist/esm/models/ConversationMessagePage.d.ts +2 -2
- package/dist/esm/models/ConversationMessagePage.js +2 -2
- package/dist/esm/models/ConversationMessageSync.d.ts +39 -0
- package/dist/esm/models/ConversationMessageSync.js +52 -0
- package/dist/esm/models/ConversationMetadata.d.ts +63 -0
- package/dist/esm/models/ConversationMetadata.js +76 -0
- package/dist/esm/models/ConversationReadReceipt.d.ts +2 -2
- package/dist/esm/models/ConversationReadReceipt.js +2 -2
- package/dist/esm/models/ConversationReadReceiptInput.d.ts +2 -2
- package/dist/esm/models/ConversationReadReceiptInput.js +2 -2
- package/dist/esm/models/ConversationStats.d.ts +2 -2
- package/dist/esm/models/ConversationStats.js +2 -2
- package/dist/esm/models/ConversationStatusInput.d.ts +2 -2
- package/dist/esm/models/ConversationStatusInput.js +2 -2
- package/dist/esm/models/ConversationSummary.d.ts +10 -2
- package/dist/esm/models/ConversationSummary.js +6 -2
- package/dist/esm/models/ConversationSummaryList.d.ts +7 -2
- package/dist/esm/models/ConversationSummaryList.js +7 -2
- package/dist/esm/models/ConversationTitle.d.ts +2 -2
- package/dist/esm/models/ConversationTitle.js +2 -2
- package/dist/esm/models/ConversationTitleInput.d.ts +2 -2
- package/dist/esm/models/ConversationTitleInput.js +2 -2
- package/dist/esm/models/ConversationUserMessage.d.ts +8 -6
- package/dist/esm/models/ConversationUserMessage.js +6 -4
- package/dist/esm/models/CreateFileInput.d.ts +2 -2
- package/dist/esm/models/CreateFileInput.js +2 -2
- package/dist/esm/models/DecimalChartColumn.d.ts +2 -2
- package/dist/esm/models/DecimalChartColumn.js +2 -2
- package/dist/esm/models/DefaultModel.d.ts +2 -2
- package/dist/esm/models/DefaultModel.js +2 -2
- package/dist/esm/models/DoubleChartColumn.d.ts +2 -2
- package/dist/esm/models/DoubleChartColumn.js +2 -2
- package/dist/esm/models/EditAgentGoalInput.d.ts +38 -0
- package/dist/esm/models/EditAgentGoalInput.js +51 -0
- package/dist/esm/models/FieldError.d.ts +2 -2
- package/dist/esm/models/FieldError.js +2 -2
- package/dist/esm/models/FileExists.d.ts +2 -2
- package/dist/esm/models/FileExists.js +2 -2
- package/dist/esm/models/GeneratePreSignedUrlInput.d.ts +2 -2
- package/dist/esm/models/GeneratePreSignedUrlInput.js +2 -2
- package/dist/esm/models/GeneratePreSignedUrlOutput.d.ts +2 -2
- package/dist/esm/models/GeneratePreSignedUrlOutput.js +2 -2
- package/dist/esm/models/ImageGenerationExtensionContent.d.ts +2 -2
- package/dist/esm/models/ImageGenerationExtensionContent.js +2 -2
- package/dist/esm/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/ImageGenerationExtensionToolExtension.js +2 -2
- package/dist/esm/models/InputTokenBreakdown.d.ts +2 -2
- package/dist/esm/models/InputTokenBreakdown.js +2 -2
- package/dist/esm/models/InstantChartColumn.d.ts +2 -2
- package/dist/esm/models/InstantChartColumn.js +2 -2
- package/dist/esm/models/IntegerChartColumn.d.ts +2 -2
- package/dist/esm/models/IntegerChartColumn.js +2 -2
- package/dist/esm/models/JsRunScriptExtensionContent.d.ts +2 -2
- package/dist/esm/models/JsRunScriptExtensionContent.js +2 -2
- package/dist/esm/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/JsRunScriptExtensionToolExtension.js +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionContent.js +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/LocalDateChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalDateChartColumn.js +2 -2
- package/dist/esm/models/LocalDateTimeChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalDateTimeChartColumn.js +2 -2
- package/dist/esm/models/LocalTimeChartColumn.d.ts +2 -2
- package/dist/esm/models/LocalTimeChartColumn.js +2 -2
- package/dist/esm/models/MathFormulaExtensionContent.d.ts +2 -2
- package/dist/esm/models/MathFormulaExtensionContent.js +2 -2
- package/dist/esm/models/MathFormulaExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/MathFormulaExtensionToolExtension.js +2 -2
- package/dist/esm/models/MathResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/MathResultExtensionContent.js +2 -2
- package/dist/esm/models/MathResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/MathResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/MediaAttachment.d.ts +2 -2
- package/dist/esm/models/MediaAttachment.js +2 -2
- package/dist/esm/models/ModelConfig.d.ts +2 -2
- package/dist/esm/models/ModelConfig.js +2 -2
- package/dist/esm/models/ModelKeyGroup.d.ts +2 -2
- package/dist/esm/models/ModelKeyGroup.js +2 -2
- package/dist/esm/models/MultimodalMediaAttachment.d.ts +2 -2
- package/dist/esm/models/MultimodalMediaAttachment.js +2 -2
- package/dist/esm/models/OpenApiToken.d.ts +34 -0
- package/dist/esm/models/OpenApiToken.js +48 -0
- package/dist/esm/models/OperationResult.d.ts +2 -2
- package/dist/esm/models/OperationResult.js +2 -2
- package/dist/esm/models/PageInfo.d.ts +2 -2
- package/dist/esm/models/PageInfo.js +2 -2
- package/dist/esm/models/PlanApprovalExtensionContent.d.ts +2 -2
- package/dist/esm/models/PlanApprovalExtensionContent.js +2 -2
- package/dist/esm/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/PlanApprovalExtensionToolExtension.js +2 -2
- package/dist/esm/models/PlanApprovalInput.d.ts +2 -2
- package/dist/esm/models/PlanApprovalInput.js +2 -2
- package/dist/esm/models/PlanStatus.d.ts +2 -2
- package/dist/esm/models/PlanStatus.js +2 -2
- package/dist/esm/models/PreSignedReadUrl.d.ts +2 -2
- package/dist/esm/models/PreSignedReadUrl.js +2 -2
- package/dist/esm/models/ReturnedReference.d.ts +2 -2
- package/dist/esm/models/ReturnedReference.js +2 -2
- package/dist/esm/models/SkillResourceExtensionContent.d.ts +2 -2
- package/dist/esm/models/SkillResourceExtensionContent.js +2 -2
- package/dist/esm/models/SkillResourceExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SkillResourceExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlChartDataset.d.ts +2 -2
- package/dist/esm/models/SqlChartDataset.js +2 -2
- package/dist/esm/models/SqlChartResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlChartResultExtensionContent.js +2 -2
- package/dist/esm/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlChartResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlQueryExtensionContent.js +2 -2
- package/dist/esm/models/SqlQueryExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlQueryExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryResultExtensionContent.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultExtensionContent.js +2 -2
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.js +2 -2
- package/dist/esm/models/SqlQueryResultPage.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultPage.js +2 -2
- package/dist/esm/models/SqlQueryResultRow.d.ts +2 -2
- package/dist/esm/models/SqlQueryResultRow.js +2 -2
- package/dist/esm/models/SqlResultColumnSchema.d.ts +2 -2
- package/dist/esm/models/SqlResultColumnSchema.js +2 -2
- package/dist/esm/models/StringChartColumn.d.ts +2 -2
- package/dist/esm/models/StringChartColumn.js +2 -2
- package/dist/esm/models/SubagentTask.d.ts +2 -2
- package/dist/esm/models/SubagentTask.js +2 -2
- package/dist/esm/models/SubagentTaskArtifact.d.ts +2 -2
- package/dist/esm/models/SubagentTaskArtifact.js +2 -2
- package/dist/esm/models/SubagentTaskPage.d.ts +2 -2
- package/dist/esm/models/SubagentTaskPage.js +2 -2
- package/dist/esm/models/SubagentTaskResult.d.ts +2 -2
- package/dist/esm/models/SubagentTaskResult.js +2 -2
- package/dist/esm/models/SubagentTaskSync.d.ts +2 -2
- package/dist/esm/models/SubagentTaskSync.js +2 -2
- package/dist/esm/models/TaskProgressExtensionContent.d.ts +2 -2
- package/dist/esm/models/TaskProgressExtensionContent.js +2 -2
- package/dist/esm/models/TaskProgressExtensionToolExtension.d.ts +2 -2
- package/dist/esm/models/TaskProgressExtensionToolExtension.js +2 -2
- package/dist/esm/models/TaskSummary.d.ts +2 -2
- package/dist/esm/models/TaskSummary.js +2 -2
- package/dist/esm/models/ToolExtension.d.ts +2 -2
- package/dist/esm/models/ToolExtension.js +2 -2
- package/dist/esm/models/UnknownAiChatBriefEvent.d.ts +2 -2
- package/dist/esm/models/UnknownAiChatBriefEvent.js +2 -2
- package/dist/esm/models/UnknownToolExtension.d.ts +2 -2
- package/dist/esm/models/UnknownToolExtension.js +2 -2
- package/dist/esm/models/UpdateConversationGroupInput.d.ts +30 -0
- package/dist/esm/models/UpdateConversationGroupInput.js +43 -0
- package/dist/esm/models/Usage.d.ts +2 -2
- package/dist/esm/models/Usage.js +2 -2
- package/dist/esm/models/UserInputAnswerInput.d.ts +2 -2
- package/dist/esm/models/UserInputAnswerInput.js +2 -2
- package/dist/esm/models/UserInputStatus.d.ts +2 -2
- package/dist/esm/models/UserInputStatus.js +2 -2
- package/dist/esm/models/ValidationError.d.ts +2 -2
- package/dist/esm/models/ValidationError.js +2 -2
- package/dist/esm/models/VariableBinding.d.ts +2 -2
- package/dist/esm/models/VariableBinding.js +2 -2
- package/dist/esm/models/WorkspaceArtifactList.d.ts +2 -2
- package/dist/esm/models/WorkspaceArtifactList.js +2 -2
- package/dist/esm/models/WorkspaceFile.d.ts +2 -2
- package/dist/esm/models/WorkspaceFile.js +2 -2
- package/dist/esm/models/WorkspaceFilePage.d.ts +2 -2
- package/dist/esm/models/WorkspaceFilePage.js +2 -2
- package/dist/esm/models/WorkspaceNonFileArtifact.d.ts +2 -2
- package/dist/esm/models/WorkspaceNonFileArtifact.js +2 -2
- package/dist/esm/models/index.d.ts +14 -15
- package/dist/esm/models/index.js +14 -15
- package/dist/esm/runtime.d.ts +3 -2
- package/dist/esm/runtime.js +24 -14
- package/dist/esm/sse.d.ts +2 -8
- package/dist/esm/sse.js +37 -26
- package/dist/esm/subscription.d.ts +72 -0
- package/dist/esm/subscription.js +282 -0
- package/dist/esm/token.d.ts +20 -0
- package/dist/esm/token.js +38 -0
- package/dist/events.js +1 -1
- package/dist/hmac.d.ts +1 -1
- package/dist/hmac.js +3 -2
- package/dist/lifecycle.d.ts +55 -0
- package/dist/lifecycle.js +175 -0
- package/dist/models/AgentAsyncTaskSync.d.ts +2 -2
- package/dist/models/AgentAsyncTaskSync.js +2 -2
- package/dist/models/AgentFile.d.ts +2 -2
- package/dist/models/AgentFile.js +2 -2
- package/dist/models/AgentGoal.d.ts +117 -0
- package/dist/models/AgentGoal.js +135 -0
- package/dist/models/AgentGoalConfig.d.ts +34 -0
- package/dist/models/AgentGoalConfig.js +54 -0
- package/dist/models/AgentGoalHistory.d.ts +43 -0
- package/dist/models/AgentGoalHistory.js +63 -0
- package/dist/models/AgentGoalRefInput.d.ts +34 -0
- package/dist/models/AgentGoalRefInput.js +54 -0
- package/dist/models/AgentGoalView.d.ts +31 -0
- package/dist/models/AgentGoalView.js +51 -0
- package/dist/models/AgentsConfig.d.ts +7 -2
- package/dist/models/AgentsConfig.js +5 -2
- package/dist/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
- package/dist/models/AiChatAwaitingInputBriefEvent.js +2 -2
- package/dist/models/AiChatBriefEvent.d.ts +2 -8
- package/dist/models/AiChatBriefEvent.js +2 -12
- package/dist/models/AiChatBriefEventList.d.ts +2 -2
- package/dist/models/AiChatBriefEventList.js +2 -2
- package/dist/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompactorWarningBriefEvent.js +2 -2
- package/dist/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompressorContextEndBriefEvent.js +2 -2
- package/dist/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
- package/dist/models/AiChatCompressorContextStartBriefEvent.js +2 -2
- package/dist/models/AiChatEndBriefEvent.d.ts +2 -2
- package/dist/models/AiChatEndBriefEvent.js +2 -2
- package/dist/models/AiChatErrorBriefEvent.d.ts +2 -2
- package/dist/models/AiChatErrorBriefEvent.js +2 -2
- package/dist/models/AiChatEventsBatch.d.ts +2 -2
- package/dist/models/AiChatEventsBatch.js +2 -2
- package/dist/models/AiChatEventsBatchInput.d.ts +2 -2
- package/dist/models/AiChatEventsBatchInput.js +2 -2
- package/dist/models/AiChatEventsBatchSkipped.d.ts +2 -2
- package/dist/models/AiChatEventsBatchSkipped.js +2 -2
- package/dist/models/AiChatFileRef.d.ts +2 -2
- package/dist/models/AiChatFileRef.js +2 -2
- package/dist/models/AiChatInput.d.ts +10 -2
- package/dist/models/AiChatInput.js +6 -2
- package/dist/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
- package/dist/models/AiChatManualInterruptBriefEvent.js +2 -2
- package/dist/models/AiChatMessageBriefEvent.d.ts +2 -2
- package/dist/models/AiChatMessageBriefEvent.js +2 -2
- package/dist/models/AiChatMessageEvent.d.ts +2 -2
- package/dist/models/AiChatMessageEvent.js +2 -2
- package/dist/models/AiChatStartBriefEvent.d.ts +2 -2
- package/dist/models/AiChatStartBriefEvent.js +2 -2
- package/dist/models/AiChatStreamInput.d.ts +2 -2
- package/dist/models/AiChatStreamInput.js +2 -2
- package/dist/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
- package/dist/models/AiChatSubAgentCallBriefEvent.js +2 -2
- package/dist/models/AiChatSubmission.d.ts +2 -2
- package/dist/models/AiChatSubmission.js +2 -2
- package/dist/models/AiChatThinkBriefEvent.d.ts +2 -2
- package/dist/models/AiChatThinkBriefEvent.js +2 -2
- package/dist/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
- package/dist/models/AiChatToolExecutionBriefEvent.js +2 -2
- package/dist/models/AiChatUserQueryBriefEvent.d.ts +2 -2
- package/dist/models/AiChatUserQueryBriefEvent.js +2 -2
- package/dist/models/ArtifactInfo.d.ts +2 -2
- package/dist/models/ArtifactInfo.js +2 -2
- package/dist/models/AskUserQuestionExtensionContent.d.ts +2 -2
- package/dist/models/AskUserQuestionExtensionContent.js +2 -2
- package/dist/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
- package/dist/models/AskUserQuestionExtensionToolExtension.js +2 -2
- package/dist/models/AskUserQuestionOption.d.ts +2 -2
- package/dist/models/AskUserQuestionOption.js +2 -2
- package/dist/models/AsyncTask.d.ts +2 -2
- package/dist/models/AsyncTask.js +2 -2
- package/dist/models/AsyncTaskPage.d.ts +2 -2
- package/dist/models/AsyncTaskPage.js +2 -2
- package/dist/models/AttachmentExtension.d.ts +2 -2
- package/dist/models/AttachmentExtension.js +2 -2
- package/dist/models/BooleanChartColumn.d.ts +2 -2
- package/dist/models/BooleanChartColumn.js +2 -2
- package/dist/models/ChartColumnData.d.ts +2 -2
- package/dist/models/ChartColumnData.js +2 -2
- package/dist/models/ChartNumberFormat.d.ts +2 -2
- package/dist/models/ChartNumberFormat.js +2 -2
- package/dist/models/ChartQualitySummary.d.ts +2 -2
- package/dist/models/ChartQualitySummary.js +2 -2
- package/dist/models/ChartSeries.d.ts +2 -2
- package/dist/models/ChartSeries.js +2 -2
- package/dist/models/ChartSpec.d.ts +2 -2
- package/dist/models/ChartSpec.js +2 -2
- package/dist/models/ChartTimeContext.d.ts +2 -2
- package/dist/models/ChartTimeContext.js +2 -2
- package/dist/models/ChatModelConfig.d.ts +2 -2
- package/dist/models/ChatModelConfig.js +2 -2
- package/dist/models/ChatModelSpec.d.ts +2 -2
- package/dist/models/ChatModelSpec.js +2 -2
- package/dist/models/ChatStreamProbeEvent.d.ts +2 -2
- package/dist/models/ChatStreamProbeEvent.js +2 -2
- package/dist/models/ChatStreamProbeInput.d.ts +2 -2
- package/dist/models/ChatStreamProbeInput.js +2 -2
- package/dist/models/CitationMetadata.d.ts +2 -2
- package/dist/models/CitationMetadata.js +2 -2
- package/dist/models/CitationMetadataList.d.ts +2 -2
- package/dist/models/CitationMetadataList.js +2 -2
- package/dist/models/CodeMessage.d.ts +2 -2
- package/dist/models/CodeMessage.js +2 -2
- package/dist/models/ConfirmUploadInput.d.ts +2 -2
- package/dist/models/ConfirmUploadInput.js +2 -2
- package/dist/models/ConversationActivity.d.ts +2 -2
- package/dist/models/ConversationActivity.js +2 -2
- package/dist/models/ConversationActivityBatchInput.d.ts +2 -2
- package/dist/models/ConversationActivityBatchInput.js +2 -2
- package/dist/models/ConversationActivityList.d.ts +2 -2
- package/dist/models/ConversationActivityList.js +2 -2
- package/dist/models/ConversationConfig.d.ts +7 -3
- package/dist/models/ConversationConfig.js +9 -3
- package/dist/models/ConversationContextUsage.d.ts +2 -2
- package/dist/models/ConversationContextUsage.js +2 -2
- package/dist/models/ConversationGroup.d.ts +42 -0
- package/dist/models/ConversationGroup.js +63 -0
- package/dist/models/ConversationGroupDeleted.d.ts +34 -0
- package/dist/models/ConversationGroupDeleted.js +54 -0
- package/dist/models/ConversationGroupList.d.ts +31 -0
- package/dist/models/ConversationGroupList.js +51 -0
- package/dist/models/ConversationGroupNameInput.d.ts +30 -0
- package/dist/models/ConversationGroupNameInput.js +50 -0
- package/dist/models/ConversationIds.d.ts +2 -2
- package/dist/models/ConversationIds.js +2 -2
- package/dist/models/ConversationMessage.d.ts +2 -2
- package/dist/models/ConversationMessage.js +2 -2
- package/dist/models/ConversationMessagePage.d.ts +2 -2
- package/dist/models/ConversationMessagePage.js +2 -2
- package/dist/models/ConversationMessageSync.d.ts +39 -0
- package/dist/models/ConversationMessageSync.js +59 -0
- package/dist/models/ConversationMetadata.d.ts +63 -0
- package/dist/models/ConversationMetadata.js +84 -0
- package/dist/models/ConversationReadReceipt.d.ts +2 -2
- package/dist/models/ConversationReadReceipt.js +2 -2
- package/dist/models/ConversationReadReceiptInput.d.ts +2 -2
- package/dist/models/ConversationReadReceiptInput.js +2 -2
- package/dist/models/ConversationStats.d.ts +2 -2
- package/dist/models/ConversationStats.js +2 -2
- package/dist/models/ConversationStatusInput.d.ts +2 -2
- package/dist/models/ConversationStatusInput.js +2 -2
- package/dist/models/ConversationSummary.d.ts +10 -2
- package/dist/models/ConversationSummary.js +6 -2
- package/dist/models/ConversationSummaryList.d.ts +7 -2
- package/dist/models/ConversationSummaryList.js +7 -2
- package/dist/models/ConversationTitle.d.ts +2 -2
- package/dist/models/ConversationTitle.js +2 -2
- package/dist/models/ConversationTitleInput.d.ts +2 -2
- package/dist/models/ConversationTitleInput.js +2 -2
- package/dist/models/ConversationUserMessage.d.ts +8 -6
- package/dist/models/ConversationUserMessage.js +6 -4
- package/dist/models/CreateFileInput.d.ts +2 -2
- package/dist/models/CreateFileInput.js +2 -2
- package/dist/models/DecimalChartColumn.d.ts +2 -2
- package/dist/models/DecimalChartColumn.js +2 -2
- package/dist/models/DefaultModel.d.ts +2 -2
- package/dist/models/DefaultModel.js +2 -2
- package/dist/models/DoubleChartColumn.d.ts +2 -2
- package/dist/models/DoubleChartColumn.js +2 -2
- package/dist/models/EditAgentGoalInput.d.ts +38 -0
- package/dist/models/EditAgentGoalInput.js +58 -0
- package/dist/models/FieldError.d.ts +2 -2
- package/dist/models/FieldError.js +2 -2
- package/dist/models/FileExists.d.ts +2 -2
- package/dist/models/FileExists.js +2 -2
- package/dist/models/GeneratePreSignedUrlInput.d.ts +2 -2
- package/dist/models/GeneratePreSignedUrlInput.js +2 -2
- package/dist/models/GeneratePreSignedUrlOutput.d.ts +2 -2
- package/dist/models/GeneratePreSignedUrlOutput.js +2 -2
- package/dist/models/ImageGenerationExtensionContent.d.ts +2 -2
- package/dist/models/ImageGenerationExtensionContent.js +2 -2
- package/dist/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
- package/dist/models/ImageGenerationExtensionToolExtension.js +2 -2
- package/dist/models/InputTokenBreakdown.d.ts +2 -2
- package/dist/models/InputTokenBreakdown.js +2 -2
- package/dist/models/InstantChartColumn.d.ts +2 -2
- package/dist/models/InstantChartColumn.js +2 -2
- package/dist/models/IntegerChartColumn.d.ts +2 -2
- package/dist/models/IntegerChartColumn.js +2 -2
- package/dist/models/JsRunScriptExtensionContent.d.ts +2 -2
- package/dist/models/JsRunScriptExtensionContent.js +2 -2
- package/dist/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
- package/dist/models/JsRunScriptExtensionToolExtension.js +2 -2
- package/dist/models/JsRunScriptResultExtensionContent.d.ts +2 -2
- package/dist/models/JsRunScriptResultExtensionContent.js +2 -2
- package/dist/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/JsRunScriptResultExtensionToolExtension.js +2 -2
- package/dist/models/LocalDateChartColumn.d.ts +2 -2
- package/dist/models/LocalDateChartColumn.js +2 -2
- package/dist/models/LocalDateTimeChartColumn.d.ts +2 -2
- package/dist/models/LocalDateTimeChartColumn.js +2 -2
- package/dist/models/LocalTimeChartColumn.d.ts +2 -2
- package/dist/models/LocalTimeChartColumn.js +2 -2
- package/dist/models/MathFormulaExtensionContent.d.ts +2 -2
- package/dist/models/MathFormulaExtensionContent.js +2 -2
- package/dist/models/MathFormulaExtensionToolExtension.d.ts +2 -2
- package/dist/models/MathFormulaExtensionToolExtension.js +2 -2
- package/dist/models/MathResultExtensionContent.d.ts +2 -2
- package/dist/models/MathResultExtensionContent.js +2 -2
- package/dist/models/MathResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/MathResultExtensionToolExtension.js +2 -2
- package/dist/models/MediaAttachment.d.ts +2 -2
- package/dist/models/MediaAttachment.js +2 -2
- package/dist/models/ModelConfig.d.ts +2 -2
- package/dist/models/ModelConfig.js +2 -2
- package/dist/models/ModelKeyGroup.d.ts +2 -2
- package/dist/models/ModelKeyGroup.js +2 -2
- package/dist/models/MultimodalMediaAttachment.d.ts +2 -2
- package/dist/models/MultimodalMediaAttachment.js +2 -2
- package/dist/models/OpenApiToken.d.ts +34 -0
- package/dist/models/OpenApiToken.js +55 -0
- package/dist/models/OperationResult.d.ts +2 -2
- package/dist/models/OperationResult.js +2 -2
- package/dist/models/PageInfo.d.ts +2 -2
- package/dist/models/PageInfo.js +2 -2
- package/dist/models/PlanApprovalExtensionContent.d.ts +2 -2
- package/dist/models/PlanApprovalExtensionContent.js +2 -2
- package/dist/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
- package/dist/models/PlanApprovalExtensionToolExtension.js +2 -2
- package/dist/models/PlanApprovalInput.d.ts +2 -2
- package/dist/models/PlanApprovalInput.js +2 -2
- package/dist/models/PlanStatus.d.ts +2 -2
- package/dist/models/PlanStatus.js +2 -2
- package/dist/models/PreSignedReadUrl.d.ts +2 -2
- package/dist/models/PreSignedReadUrl.js +2 -2
- package/dist/models/ReturnedReference.d.ts +2 -2
- package/dist/models/ReturnedReference.js +2 -2
- package/dist/models/SkillResourceExtensionContent.d.ts +2 -2
- package/dist/models/SkillResourceExtensionContent.js +2 -2
- package/dist/models/SkillResourceExtensionToolExtension.d.ts +2 -2
- package/dist/models/SkillResourceExtensionToolExtension.js +2 -2
- package/dist/models/SqlChartDataset.d.ts +2 -2
- package/dist/models/SqlChartDataset.js +2 -2
- package/dist/models/SqlChartResultExtensionContent.d.ts +2 -2
- package/dist/models/SqlChartResultExtensionContent.js +2 -2
- package/dist/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlChartResultExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryExtensionContent.d.ts +2 -2
- package/dist/models/SqlQueryExtensionContent.js +2 -2
- package/dist/models/SqlQueryExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlQueryExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryResultExtensionContent.d.ts +2 -2
- package/dist/models/SqlQueryResultExtensionContent.js +2 -2
- package/dist/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
- package/dist/models/SqlQueryResultExtensionToolExtension.js +2 -2
- package/dist/models/SqlQueryResultPage.d.ts +2 -2
- package/dist/models/SqlQueryResultPage.js +2 -2
- package/dist/models/SqlQueryResultRow.d.ts +2 -2
- package/dist/models/SqlQueryResultRow.js +2 -2
- package/dist/models/SqlResultColumnSchema.d.ts +2 -2
- package/dist/models/SqlResultColumnSchema.js +2 -2
- package/dist/models/StringChartColumn.d.ts +2 -2
- package/dist/models/StringChartColumn.js +2 -2
- package/dist/models/SubagentTask.d.ts +2 -2
- package/dist/models/SubagentTask.js +2 -2
- package/dist/models/SubagentTaskArtifact.d.ts +2 -2
- package/dist/models/SubagentTaskArtifact.js +2 -2
- package/dist/models/SubagentTaskPage.d.ts +2 -2
- package/dist/models/SubagentTaskPage.js +2 -2
- package/dist/models/SubagentTaskResult.d.ts +2 -2
- package/dist/models/SubagentTaskResult.js +2 -2
- package/dist/models/SubagentTaskSync.d.ts +2 -2
- package/dist/models/SubagentTaskSync.js +2 -2
- package/dist/models/TaskProgressExtensionContent.d.ts +2 -2
- package/dist/models/TaskProgressExtensionContent.js +2 -2
- package/dist/models/TaskProgressExtensionToolExtension.d.ts +2 -2
- package/dist/models/TaskProgressExtensionToolExtension.js +2 -2
- package/dist/models/TaskSummary.d.ts +2 -2
- package/dist/models/TaskSummary.js +2 -2
- package/dist/models/ToolExtension.d.ts +2 -2
- package/dist/models/ToolExtension.js +2 -2
- package/dist/models/UnknownAiChatBriefEvent.d.ts +2 -2
- package/dist/models/UnknownAiChatBriefEvent.js +2 -2
- package/dist/models/UnknownToolExtension.d.ts +2 -2
- package/dist/models/UnknownToolExtension.js +2 -2
- package/dist/models/UpdateConversationGroupInput.d.ts +30 -0
- package/dist/models/UpdateConversationGroupInput.js +50 -0
- package/dist/models/Usage.d.ts +2 -2
- package/dist/models/Usage.js +2 -2
- package/dist/models/UserInputAnswerInput.d.ts +2 -2
- package/dist/models/UserInputAnswerInput.js +2 -2
- package/dist/models/UserInputStatus.d.ts +2 -2
- package/dist/models/UserInputStatus.js +2 -2
- package/dist/models/ValidationError.d.ts +2 -2
- package/dist/models/ValidationError.js +2 -2
- package/dist/models/VariableBinding.d.ts +2 -2
- package/dist/models/VariableBinding.js +2 -2
- package/dist/models/WorkspaceArtifactList.d.ts +2 -2
- package/dist/models/WorkspaceArtifactList.js +2 -2
- package/dist/models/WorkspaceFile.d.ts +2 -2
- package/dist/models/WorkspaceFile.js +2 -2
- package/dist/models/WorkspaceFilePage.d.ts +2 -2
- package/dist/models/WorkspaceFilePage.js +2 -2
- package/dist/models/WorkspaceNonFileArtifact.d.ts +2 -2
- package/dist/models/WorkspaceNonFileArtifact.js +2 -2
- package/dist/models/index.d.ts +14 -15
- package/dist/models/index.js +14 -15
- package/dist/runtime.d.ts +3 -2
- package/dist/runtime.js +28 -18
- package/dist/sse.d.ts +2 -8
- package/dist/sse.js +37 -26
- package/dist/subscription.d.ts +72 -0
- package/dist/subscription.js +287 -0
- package/dist/token.d.ts +20 -0
- package/dist/token.js +41 -0
- package/package.json +21 -5
- package/dist/esm/models/AiChatRequestBriefEvent.d.ts +0 -47
- package/dist/esm/models/AiChatRequestBriefEvent.js +0 -59
- package/dist/esm/models/AiChatResponseBriefEvent.d.ts +0 -47
- package/dist/esm/models/AiChatResponseBriefEvent.js +0 -61
- package/dist/esm/models/AssistantChatMessage.d.ts +0 -54
- package/dist/esm/models/AssistantChatMessage.js +0 -62
- package/dist/esm/models/ChatMessage.d.ts +0 -33
- package/dist/esm/models/ChatMessage.js +0 -57
- package/dist/esm/models/ChatOptions.d.ts +0 -54
- package/dist/esm/models/ChatOptions.js +0 -53
- package/dist/esm/models/ConversationShareCreated.d.ts +0 -46
- package/dist/esm/models/ConversationShareCreated.js +0 -58
- package/dist/esm/models/ConversationShareInput.d.ts +0 -34
- package/dist/esm/models/ConversationShareInput.js +0 -44
- package/dist/esm/models/ConversationShareList.d.ts +0 -31
- package/dist/esm/models/ConversationShareList.js +0 -44
- package/dist/esm/models/ConversationShareRecord.d.ts +0 -58
- package/dist/esm/models/ConversationShareRecord.js +0 -70
- package/dist/esm/models/ConversationShareRevoked.d.ts +0 -30
- package/dist/esm/models/ConversationShareRevoked.js +0 -43
- package/dist/esm/models/SystemChatMessage.d.ts +0 -45
- package/dist/esm/models/SystemChatMessage.js +0 -57
- package/dist/esm/models/ToolCall.d.ts +0 -42
- package/dist/esm/models/ToolCall.js +0 -55
- package/dist/esm/models/ToolResponse.d.ts +0 -46
- package/dist/esm/models/ToolResponse.js +0 -59
- package/dist/esm/models/ToolResponseChatMessage.d.ts +0 -46
- package/dist/esm/models/ToolResponseChatMessage.js +0 -58
- package/dist/esm/models/UserChatMessage.d.ts +0 -55
- package/dist/esm/models/UserChatMessage.js +0 -63
- package/dist/models/AiChatRequestBriefEvent.d.ts +0 -47
- package/dist/models/AiChatRequestBriefEvent.js +0 -67
- package/dist/models/AiChatResponseBriefEvent.d.ts +0 -47
- package/dist/models/AiChatResponseBriefEvent.js +0 -69
- package/dist/models/AssistantChatMessage.d.ts +0 -54
- package/dist/models/AssistantChatMessage.js +0 -70
- package/dist/models/ChatMessage.d.ts +0 -33
- package/dist/models/ChatMessage.js +0 -63
- package/dist/models/ChatOptions.d.ts +0 -54
- package/dist/models/ChatOptions.js +0 -60
- package/dist/models/ConversationShareCreated.d.ts +0 -46
- package/dist/models/ConversationShareCreated.js +0 -65
- package/dist/models/ConversationShareInput.d.ts +0 -34
- package/dist/models/ConversationShareInput.js +0 -51
- package/dist/models/ConversationShareList.d.ts +0 -31
- package/dist/models/ConversationShareList.js +0 -51
- package/dist/models/ConversationShareRecord.d.ts +0 -58
- package/dist/models/ConversationShareRecord.js +0 -77
- package/dist/models/ConversationShareRevoked.d.ts +0 -30
- package/dist/models/ConversationShareRevoked.js +0 -50
- package/dist/models/SystemChatMessage.d.ts +0 -45
- package/dist/models/SystemChatMessage.js +0 -65
- package/dist/models/ToolCall.d.ts +0 -42
- package/dist/models/ToolCall.js +0 -62
- package/dist/models/ToolResponse.d.ts +0 -46
- package/dist/models/ToolResponse.js +0 -66
- package/dist/models/ToolResponseChatMessage.d.ts +0 -46
- package/dist/models/ToolResponseChatMessage.js +0 -66
- package/dist/models/UserChatMessage.d.ts +0 -55
- package/dist/models/UserChatMessage.js +0 -71
package/dist/bound.js
CHANGED
|
@@ -12,7 +12,6 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
12
12
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
13
13
|
});
|
|
14
14
|
};
|
|
15
|
-
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
16
15
|
var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
17
16
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
18
17
|
var m = o[Symbol.asyncIterator], i;
|
|
@@ -20,6 +19,12 @@ var __asyncValues = (this && this.__asyncValues) || function (o) {
|
|
|
20
19
|
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
21
20
|
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
22
21
|
};
|
|
22
|
+
var __await = (this && this.__await) || function (v) { return this instanceof __await ? (this.v = v, this) : new __await(v); }
|
|
23
|
+
var __asyncDelegator = (this && this.__asyncDelegator) || function (o) {
|
|
24
|
+
var i, p;
|
|
25
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
26
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: false } : f ? f(v) : v; } : f; }
|
|
27
|
+
};
|
|
23
28
|
var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _arguments, generator) {
|
|
24
29
|
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
25
30
|
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
@@ -35,8 +40,8 @@ var __asyncGenerator = (this && this.__asyncGenerator) || function (thisArg, _ar
|
|
|
35
40
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
41
|
exports.LingyaWorkspaceApi = exports.LingyaKnowledgeApi = exports.LingyaFilesApi = exports.LingyaInteractionsApi = exports.LingyaEventsApi = exports.LingyaMessagesApi = exports.LingyaSqlApi = exports.LingyaConversationsApi = exports.LingyaChatApi = exports.LingyaConfigurationApi = exports.LingyaAgentsLowLevelApis = exports.WorkspaceApi = exports.KnowledgeApi = exports.FilesApi = exports.InteractionsApi = exports.EventsApi = exports.MessagesApi = exports.SqlApi = exports.ConversationsApi = exports.ChatApi = exports.ConfigurationApi = exports.AgentsLowLevelApis = void 0;
|
|
37
42
|
const ChatStreamProbeEvent_1 = require("./models/ChatStreamProbeEvent");
|
|
38
|
-
const
|
|
39
|
-
const
|
|
43
|
+
const lifecycle_1 = require("./lifecycle");
|
|
44
|
+
const subscription_1 = require("./subscription");
|
|
40
45
|
/** Generated APIs retained as an explicit compatibility escape hatch until 1.0. */
|
|
41
46
|
class AgentsLowLevelApis {
|
|
42
47
|
constructor(configuration, chat, conversations, sql, messages, events, interactions, files, knowledge, workspace) {
|
|
@@ -56,17 +61,18 @@ exports.AgentsLowLevelApis = AgentsLowLevelApis;
|
|
|
56
61
|
exports.LingyaAgentsLowLevelApis = AgentsLowLevelApis;
|
|
57
62
|
/** Channel-bound configuration operations for one external user. */
|
|
58
63
|
class ConfigurationApi {
|
|
59
|
-
constructor(channelId, delegate) {
|
|
64
|
+
constructor(channelId, delegate, tokenAuth = false) {
|
|
60
65
|
this.channelId = channelId;
|
|
61
66
|
this.delegate = delegate;
|
|
67
|
+
this.tokenAuth = tokenAuth;
|
|
62
68
|
}
|
|
63
69
|
/**
|
|
64
70
|
* 读取 Agent 配置 / Get Agent configuration
|
|
65
71
|
*
|
|
66
72
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
67
73
|
*/
|
|
68
|
-
getAgentsConfig() {
|
|
69
|
-
return this.delegate.getAgentsConfig({ channelId: this.channelId });
|
|
74
|
+
getAgentsConfig(options = {}) {
|
|
75
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getAgentsConfig({ channelId: this.channelId }, { signal }));
|
|
70
76
|
}
|
|
71
77
|
/**
|
|
72
78
|
* 读取会话配置 / Get conversation configuration
|
|
@@ -74,18 +80,29 @@ class ConfigurationApi {
|
|
|
74
80
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
75
81
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
76
82
|
*/
|
|
77
|
-
getConversationConfig(conversationId) {
|
|
78
|
-
return this.delegate.getConversationConfig({ channelId: this.channelId, conversationId });
|
|
83
|
+
getConversationConfig(conversationId, options = {}) {
|
|
84
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationConfig({ channelId: this.channelId, conversationId }, { signal }));
|
|
85
|
+
}
|
|
86
|
+
/**
|
|
87
|
+
* 签发一次性短期渠道令牌 / Create a single-use short-lived channel token
|
|
88
|
+
*
|
|
89
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
90
|
+
*/
|
|
91
|
+
createOpenApiToken(options = {}) {
|
|
92
|
+
if (this.tokenAuth)
|
|
93
|
+
return Promise.reject(new lifecycle_1.ApiError('POST', '/presign', undefined, '{"message":"presign requires HMAC authentication"}', { kind: 'authentication' }));
|
|
94
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.createOpenApiToken({ channelId: this.channelId }, { signal }));
|
|
79
95
|
}
|
|
80
96
|
}
|
|
81
97
|
exports.ConfigurationApi = ConfigurationApi;
|
|
82
98
|
exports.LingyaConfigurationApi = ConfigurationApi;
|
|
83
99
|
/** Channel-bound chat operations for one external user. */
|
|
84
100
|
class ChatApi {
|
|
85
|
-
constructor(channelId, delegate, rawRequest) {
|
|
101
|
+
constructor(channelId, delegate, rawRequest, subscribe) {
|
|
86
102
|
this.channelId = channelId;
|
|
87
103
|
this.delegate = delegate;
|
|
88
104
|
this.rawRequest = rawRequest;
|
|
105
|
+
this.subscribe = subscribe;
|
|
89
106
|
}
|
|
90
107
|
/**
|
|
91
108
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
@@ -93,8 +110,8 @@ class ChatApi {
|
|
|
93
110
|
* @param input - 创建会话并提交消息 / Create a conversation and submit a message 的强类型请求体。 / Typed request body for createChat.
|
|
94
111
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
95
112
|
*/
|
|
96
|
-
createChat(input) {
|
|
97
|
-
return this.delegate.createChat({ channelId: this.channelId, aiChatInput: input });
|
|
113
|
+
createChat(input, options = {}) {
|
|
114
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.createChat({ channelId: this.channelId, aiChatInput: input }, { signal }));
|
|
98
115
|
}
|
|
99
116
|
/**
|
|
100
117
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
@@ -103,8 +120,8 @@ class ChatApi {
|
|
|
103
120
|
* @param input - 向已有会话提交消息 / Submit a message to an existing conversation 的强类型请求体。 / Typed request body for continueChat.
|
|
104
121
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
105
122
|
*/
|
|
106
|
-
continueChat(conversationId, input) {
|
|
107
|
-
return this.delegate.continueChat({ channelId: this.channelId, conversationId, aiChatInput: input });
|
|
123
|
+
continueChat(conversationId, input, options = {}) {
|
|
124
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.continueChat({ channelId: this.channelId, conversationId, aiChatInput: input }, { signal }));
|
|
108
125
|
}
|
|
109
126
|
/**
|
|
110
127
|
* 订阅消息事件流 / Stream message events
|
|
@@ -116,24 +133,7 @@ class ChatApi {
|
|
|
116
133
|
*/
|
|
117
134
|
streamChatEvents(conversationId_1, input_1) {
|
|
118
135
|
return __asyncGenerator(this, arguments, function* streamChatEvents_1(conversationId, input, options = {}) {
|
|
119
|
-
|
|
120
|
-
const suffix = `/conversations/${encodeURIComponent(String(conversationId))}/stream`;
|
|
121
|
-
const response = yield __await(this.rawRequest('POST', suffix, JSON.stringify(input), undefined, 'text/event-stream', options === null || options === void 0 ? void 0 : options.xRequestID));
|
|
122
|
-
try {
|
|
123
|
-
for (var _d = true, _e = __asyncValues((0, sse_1.decodeSse)(response)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
124
|
-
_c = _f.value;
|
|
125
|
-
_d = false;
|
|
126
|
-
const data = _c;
|
|
127
|
-
yield yield __await((0, events_1.decodeAiChatBriefEvent)(data));
|
|
128
|
-
}
|
|
129
|
-
}
|
|
130
|
-
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
131
|
-
finally {
|
|
132
|
-
try {
|
|
133
|
-
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
134
|
-
}
|
|
135
|
-
finally { if (e_1) throw e_1.error; }
|
|
136
|
-
}
|
|
136
|
+
yield __await(yield* __asyncDelegator(__asyncValues(this.subscribeChatEvents(conversationId, input, options))));
|
|
137
137
|
});
|
|
138
138
|
}
|
|
139
139
|
/**
|
|
@@ -145,23 +145,26 @@ class ChatApi {
|
|
|
145
145
|
*/
|
|
146
146
|
probeEventStream(input_1) {
|
|
147
147
|
return __asyncGenerator(this, arguments, function* probeEventStream_1(input, options = {}) {
|
|
148
|
-
var _a,
|
|
149
|
-
const suffix = `/stream-probe`;
|
|
150
|
-
const response = yield __await(this.rawRequest('POST', suffix, JSON.stringify(input), undefined, 'text/event-stream', options === null || options === void 0 ? void 0 : options.xRequestID));
|
|
148
|
+
var _a, e_1, _b, _c;
|
|
151
149
|
try {
|
|
152
|
-
for (var _d = true, _e = __asyncValues((0, sse_1.decodeSse)(response)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
153
|
-
_c = _f.value;
|
|
154
|
-
_d = false;
|
|
155
|
-
const data = _c;
|
|
156
|
-
yield yield __await((0, ChatStreamProbeEvent_1.ChatStreamProbeEventFromJSON)(JSON.parse(data)));
|
|
157
|
-
}
|
|
158
|
-
}
|
|
159
|
-
catch (e_2_1) { e_2 = { error: e_2_1 }; }
|
|
160
|
-
finally {
|
|
161
150
|
try {
|
|
162
|
-
|
|
151
|
+
for (var _d = true, _e = __asyncValues((0, subscription_1.finiteSse)(signal => this.rawRequest('POST', '/stream-probe', JSON.stringify(input), undefined, 'text/event-stream', options.xRequestID, signal), options)), _f; _f = yield __await(_e.next()), _a = _f.done, !_a; _d = true) {
|
|
152
|
+
_c = _f.value;
|
|
153
|
+
_d = false;
|
|
154
|
+
const data = _c;
|
|
155
|
+
yield yield __await((0, ChatStreamProbeEvent_1.ChatStreamProbeEventFromJSON)(JSON.parse(data)));
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
catch (e_1_1) { e_1 = { error: e_1_1 }; }
|
|
159
|
+
finally {
|
|
160
|
+
try {
|
|
161
|
+
if (!_d && !_a && (_b = _e.return)) yield __await(_b.call(_e));
|
|
162
|
+
}
|
|
163
|
+
finally { if (e_1) throw e_1.error; }
|
|
163
164
|
}
|
|
164
|
-
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
throw yield __await((0, lifecycle_1.normalizeError)(error));
|
|
165
168
|
}
|
|
166
169
|
});
|
|
167
170
|
}
|
|
@@ -171,8 +174,8 @@ class ChatApi {
|
|
|
171
174
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
172
175
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
173
176
|
*/
|
|
174
|
-
interruptConversation(conversationId) {
|
|
175
|
-
return this.delegate.interruptConversation({ channelId: this.channelId, conversationId });
|
|
177
|
+
interruptConversation(conversationId, options = {}) {
|
|
178
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.interruptConversation({ channelId: this.channelId, conversationId }, { signal }));
|
|
176
179
|
}
|
|
177
180
|
/**
|
|
178
181
|
* 压缩会话上下文 / Compact conversation context
|
|
@@ -182,8 +185,68 @@ class ChatApi {
|
|
|
182
185
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
183
186
|
*/
|
|
184
187
|
compactConversation(conversationId, options = {}) {
|
|
185
|
-
return this.delegate.compactConversation(
|
|
188
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.compactConversation({ channelId: this.channelId, conversationId, force: options.force }, { signal }));
|
|
189
|
+
}
|
|
190
|
+
/**
|
|
191
|
+
* 读取当前目标 / Get current goal
|
|
192
|
+
*
|
|
193
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
194
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
195
|
+
*/
|
|
196
|
+
getGoal(conversationId, options = {}) {
|
|
197
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getGoal({ channelId: this.channelId, conversationId }, { signal }));
|
|
198
|
+
}
|
|
199
|
+
/**
|
|
200
|
+
* 编辑目标 / Edit goal
|
|
201
|
+
*
|
|
202
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
203
|
+
* @param input - 编辑目标 / Edit goal 的强类型请求体。 / Typed request body for editGoal.
|
|
204
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
205
|
+
*/
|
|
206
|
+
editGoal(conversationId, input, options = {}) {
|
|
207
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.editGoal({ channelId: this.channelId, conversationId, editAgentGoalInput: input }, { signal }));
|
|
208
|
+
}
|
|
209
|
+
/**
|
|
210
|
+
* 查询目标历史 / Get goal history
|
|
211
|
+
*
|
|
212
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
213
|
+
* @param options - 查询参数与可选请求头。 / Query parameters and optional request headers.
|
|
214
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
215
|
+
*/
|
|
216
|
+
getGoalHistory(conversationId, options = {}) {
|
|
217
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getGoalHistory({ channelId: this.channelId, conversationId, page: options.page, size: options.size }, { signal }));
|
|
218
|
+
}
|
|
219
|
+
/**
|
|
220
|
+
* 暂停目标 / Pause goal
|
|
221
|
+
*
|
|
222
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
223
|
+
* @param input - 暂停目标 / Pause goal 的强类型请求体。 / Typed request body for pauseGoal.
|
|
224
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
225
|
+
*/
|
|
226
|
+
pauseGoal(conversationId, input, options = {}) {
|
|
227
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.pauseGoal({ channelId: this.channelId, conversationId, agentGoalRefInput: input }, { signal }));
|
|
186
228
|
}
|
|
229
|
+
/**
|
|
230
|
+
* 恢复目标 / Resume goal
|
|
231
|
+
*
|
|
232
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
233
|
+
* @param input - 恢复目标 / Resume goal 的强类型请求体。 / Typed request body for resumeGoal.
|
|
234
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
235
|
+
*/
|
|
236
|
+
resumeGoal(conversationId, input, options = {}) {
|
|
237
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.resumeGoal({ channelId: this.channelId, conversationId, agentGoalRefInput: input }, { signal }));
|
|
238
|
+
}
|
|
239
|
+
/**
|
|
240
|
+
* 清除目标 / Clear goal
|
|
241
|
+
*
|
|
242
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
243
|
+
* @param input - 清除目标 / Clear goal 的强类型请求体。 / Typed request body for clearGoal.
|
|
244
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
245
|
+
*/
|
|
246
|
+
clearGoal(conversationId, input, options = {}) {
|
|
247
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.clearGoal({ channelId: this.channelId, conversationId, agentGoalRefInput: input }, { signal }));
|
|
248
|
+
}
|
|
249
|
+
subscribeChatEvents(conversationId, input, options = {}) { return this.subscribe(conversationId, input, options); }
|
|
187
250
|
}
|
|
188
251
|
exports.ChatApi = ChatApi;
|
|
189
252
|
exports.LingyaChatApi = ChatApi;
|
|
@@ -199,8 +262,17 @@ class ConversationsApi {
|
|
|
199
262
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
200
263
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
201
264
|
*/
|
|
202
|
-
deleteConversation(conversationId) {
|
|
203
|
-
return this.delegate.deleteConversation({ channelId: this.channelId, conversationId });
|
|
265
|
+
deleteConversation(conversationId, options = {}) {
|
|
266
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.deleteConversation({ channelId: this.channelId, conversationId }, { signal }));
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* 读取会话摘要 / Get conversation summary
|
|
270
|
+
*
|
|
271
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
272
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
273
|
+
*/
|
|
274
|
+
getConversationSummary(conversationId, options = {}) {
|
|
275
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationSummary({ channelId: this.channelId, conversationId }, { signal }));
|
|
204
276
|
}
|
|
205
277
|
/**
|
|
206
278
|
* 读取上下文占用 / Get context usage
|
|
@@ -208,8 +280,8 @@ class ConversationsApi {
|
|
|
208
280
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
209
281
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
210
282
|
*/
|
|
211
|
-
getConversationContextUsage(conversationId) {
|
|
212
|
-
return this.delegate.getConversationContextUsage({ channelId: this.channelId, conversationId });
|
|
283
|
+
getConversationContextUsage(conversationId, options = {}) {
|
|
284
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationContextUsage({ channelId: this.channelId, conversationId }, { signal }));
|
|
213
285
|
}
|
|
214
286
|
/**
|
|
215
287
|
* 分页查询会话 / List conversations
|
|
@@ -218,23 +290,23 @@ class ConversationsApi {
|
|
|
218
290
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
219
291
|
*/
|
|
220
292
|
listConversations(options = {}) {
|
|
221
|
-
return this.delegate.listConversations(
|
|
293
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listConversations({ channelId: this.channelId, current: options.current, size: options.size, status: options.status, keyword: options.keyword, groupFilter: options.groupFilter, groupId: options.groupId }, { signal }));
|
|
222
294
|
}
|
|
223
295
|
/**
|
|
224
296
|
* 查询活动会话 / List active conversations
|
|
225
297
|
*
|
|
226
298
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
227
299
|
*/
|
|
228
|
-
listActiveConversations() {
|
|
229
|
-
return this.delegate.listActiveConversations({ channelId: this.channelId });
|
|
300
|
+
listActiveConversations(options = {}) {
|
|
301
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listActiveConversations({ channelId: this.channelId }, { signal }));
|
|
230
302
|
}
|
|
231
303
|
/**
|
|
232
304
|
* 查询未读会话 / List unread conversations
|
|
233
305
|
*
|
|
234
306
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
235
307
|
*/
|
|
236
|
-
listUnreadConversations() {
|
|
237
|
-
return this.delegate.listUnreadConversations({ channelId: this.channelId });
|
|
308
|
+
listUnreadConversations(options = {}) {
|
|
309
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listUnreadConversations({ channelId: this.channelId }, { signal }));
|
|
238
310
|
}
|
|
239
311
|
/**
|
|
240
312
|
* 批量查询会话活动 / Query conversation activities
|
|
@@ -242,8 +314,8 @@ class ConversationsApi {
|
|
|
242
314
|
* @param input - 批量查询会话活动 / Query conversation activities 的强类型请求体。 / Typed request body for queryConversationActivities.
|
|
243
315
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
244
316
|
*/
|
|
245
|
-
queryConversationActivities(input) {
|
|
246
|
-
return this.delegate.queryConversationActivities({ channelId: this.channelId, conversationActivityBatchInput: input });
|
|
317
|
+
queryConversationActivities(input, options = {}) {
|
|
318
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.queryConversationActivities({ channelId: this.channelId, conversationActivityBatchInput: input }, { signal }));
|
|
247
319
|
}
|
|
248
320
|
/**
|
|
249
321
|
* 推进会话已读游标 / Mark a conversation as read
|
|
@@ -252,16 +324,16 @@ class ConversationsApi {
|
|
|
252
324
|
* @param input - 推进会话已读游标 / Mark a conversation as read 的强类型请求体。 / Typed request body for markConversationRead.
|
|
253
325
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
254
326
|
*/
|
|
255
|
-
markConversationRead(conversationId, input) {
|
|
256
|
-
return this.delegate.markConversationRead({ channelId: this.channelId, conversationId, conversationReadReceiptInput: input });
|
|
327
|
+
markConversationRead(conversationId, input, options = {}) {
|
|
328
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.markConversationRead({ channelId: this.channelId, conversationId, conversationReadReceiptInput: input }, { signal }));
|
|
257
329
|
}
|
|
258
330
|
/**
|
|
259
331
|
* 读取会话统计 / Get conversation statistics
|
|
260
332
|
*
|
|
261
333
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
262
334
|
*/
|
|
263
|
-
getConversationStats() {
|
|
264
|
-
return this.delegate.getConversationStats({ channelId: this.channelId });
|
|
335
|
+
getConversationStats(options = {}) {
|
|
336
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationStats({ channelId: this.channelId }, { signal }));
|
|
265
337
|
}
|
|
266
338
|
/**
|
|
267
339
|
* 读取会话标题 / Get conversation title
|
|
@@ -269,8 +341,8 @@ class ConversationsApi {
|
|
|
269
341
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
270
342
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
271
343
|
*/
|
|
272
|
-
getConversationTitle(conversationId) {
|
|
273
|
-
return this.delegate.getConversationTitle({ channelId: this.channelId, conversationId });
|
|
344
|
+
getConversationTitle(conversationId, options = {}) {
|
|
345
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationTitle({ channelId: this.channelId, conversationId }, { signal }));
|
|
274
346
|
}
|
|
275
347
|
/**
|
|
276
348
|
* 更新会话标题 / Update conversation title
|
|
@@ -279,8 +351,8 @@ class ConversationsApi {
|
|
|
279
351
|
* @param input - 更新会话标题 / Update conversation title 的强类型请求体。 / Typed request body for updateConversationTitle.
|
|
280
352
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
281
353
|
*/
|
|
282
|
-
updateConversationTitle(conversationId, input) {
|
|
283
|
-
return this.delegate.updateConversationTitle({ channelId: this.channelId, conversationId, conversationTitleInput: input });
|
|
354
|
+
updateConversationTitle(conversationId, input, options = {}) {
|
|
355
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.updateConversationTitle({ channelId: this.channelId, conversationId, conversationTitleInput: input }, { signal }));
|
|
284
356
|
}
|
|
285
357
|
/**
|
|
286
358
|
* 更新会话状态 / Update conversation status
|
|
@@ -289,37 +361,54 @@ class ConversationsApi {
|
|
|
289
361
|
* @param input - 更新会话状态 / Update conversation status 的强类型请求体。 / Typed request body for updateConversationStatus.
|
|
290
362
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
291
363
|
*/
|
|
292
|
-
updateConversationStatus(conversationId, input) {
|
|
293
|
-
return this.delegate.updateConversationStatus({ channelId: this.channelId, conversationId, conversationStatusInput: input });
|
|
364
|
+
updateConversationStatus(conversationId, input, options = {}) {
|
|
365
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.updateConversationStatus({ channelId: this.channelId, conversationId, conversationStatusInput: input }, { signal }));
|
|
294
366
|
}
|
|
295
367
|
/**
|
|
296
|
-
*
|
|
368
|
+
* 查询会话分组 / List conversation groups
|
|
297
369
|
*
|
|
298
|
-
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
299
370
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
300
371
|
*/
|
|
301
|
-
|
|
302
|
-
return this.delegate.
|
|
372
|
+
listConversationGroups(options = {}) {
|
|
373
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listConversationGroups({ channelId: this.channelId }, { signal }));
|
|
303
374
|
}
|
|
304
375
|
/**
|
|
305
|
-
*
|
|
376
|
+
* 创建会话分组 / Create conversation group
|
|
306
377
|
*
|
|
307
|
-
* @param
|
|
308
|
-
* @param input - 创建会话分享 / Create a conversation share 的强类型请求体。 / Typed request body for createConversationShare.
|
|
378
|
+
* @param input - 创建会话分组 / Create conversation group 的强类型请求体。 / Typed request body for createConversationGroup.
|
|
309
379
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
310
380
|
*/
|
|
311
|
-
|
|
312
|
-
return this.delegate.
|
|
381
|
+
createConversationGroup(input, options = {}) {
|
|
382
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.createConversationGroup({ channelId: this.channelId, conversationGroupNameInput: input }, { signal }));
|
|
313
383
|
}
|
|
314
384
|
/**
|
|
315
|
-
*
|
|
385
|
+
* 重命名会话分组 / Rename conversation group
|
|
386
|
+
*
|
|
387
|
+
* @param groupId - 字段 groupId / group id field。
|
|
388
|
+
* @param input - 重命名会话分组 / Rename conversation group 的强类型请求体。 / Typed request body for renameConversationGroup.
|
|
389
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
390
|
+
*/
|
|
391
|
+
renameConversationGroup(groupId, input, options = {}) {
|
|
392
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.renameConversationGroup({ channelId: this.channelId, groupId, conversationGroupNameInput: input }, { signal }));
|
|
393
|
+
}
|
|
394
|
+
/**
|
|
395
|
+
* 删除会话分组 / Delete conversation group
|
|
396
|
+
*
|
|
397
|
+
* @param groupId - 字段 groupId / group id field。
|
|
398
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
399
|
+
*/
|
|
400
|
+
deleteConversationGroup(groupId, options = {}) {
|
|
401
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.deleteConversationGroup({ channelId: this.channelId, groupId }, { signal }));
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* 移动会话分组 / Move conversation to group
|
|
316
405
|
*
|
|
317
406
|
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
318
|
-
* @param
|
|
407
|
+
* @param input - 移动会话分组 / Move conversation to group 的强类型请求体。 / Typed request body for moveConversationToGroup.
|
|
319
408
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
320
409
|
*/
|
|
321
|
-
|
|
322
|
-
return this.delegate.
|
|
410
|
+
moveConversationToGroup(conversationId, input, options = {}) {
|
|
411
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.moveConversationToGroup({ channelId: this.channelId, conversationId, updateConversationGroupInput: input }, { signal }));
|
|
323
412
|
}
|
|
324
413
|
}
|
|
325
414
|
exports.ConversationsApi = ConversationsApi;
|
|
@@ -339,7 +428,7 @@ class SqlApi {
|
|
|
339
428
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
340
429
|
*/
|
|
341
430
|
getSqlQueryResult(conversationId, resultId, options = {}) {
|
|
342
|
-
return this.delegate.getSqlQueryResult(
|
|
431
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getSqlQueryResult({ channelId: this.channelId, conversationId, resultId, current: options.current, size: options.size }, { signal }));
|
|
343
432
|
}
|
|
344
433
|
/**
|
|
345
434
|
* 读取 SQL 图表数据 / Get SQL chart data
|
|
@@ -348,8 +437,8 @@ class SqlApi {
|
|
|
348
437
|
* @param resultId - SQL 查询结果 ID。 / SQL query-result ID.
|
|
349
438
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
350
439
|
*/
|
|
351
|
-
getSqlQueryChartData(conversationId, resultId) {
|
|
352
|
-
return this.delegate.getSqlQueryChartData({ channelId: this.channelId, conversationId, resultId });
|
|
440
|
+
getSqlQueryChartData(conversationId, resultId, options = {}) {
|
|
441
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getSqlQueryChartData({ channelId: this.channelId, conversationId, resultId }, { signal }));
|
|
353
442
|
}
|
|
354
443
|
/**
|
|
355
444
|
* 导出 SQL 结果 / Export SQL results
|
|
@@ -361,10 +450,12 @@ class SqlApi {
|
|
|
361
450
|
*/
|
|
362
451
|
exportSqlQueryResult(conversationId, resultId, options) {
|
|
363
452
|
return __awaiter(this, void 0, void 0, function* () {
|
|
364
|
-
|
|
365
|
-
return new Uint8Array(yield value.arrayBuffer());
|
|
453
|
+
return (yield this.exportSqlQueryResultWithMetadata(conversationId, resultId, options)).bytes;
|
|
366
454
|
});
|
|
367
455
|
}
|
|
456
|
+
exportSqlQueryResultWithMetadata(conversationId, resultId, options) {
|
|
457
|
+
return (0, lifecycle_1.execute)(options, (signal) => __awaiter(this, void 0, void 0, function* () { return (0, lifecycle_1.downloadResponse)((yield this.delegate.exportSqlQueryResultRaw({ channelId: this.channelId, conversationId, resultId, format: options.format, accept: options.accept }, { signal })).raw); }));
|
|
458
|
+
}
|
|
368
459
|
}
|
|
369
460
|
exports.SqlApi = SqlApi;
|
|
370
461
|
exports.LingyaSqlApi = SqlApi;
|
|
@@ -382,7 +473,7 @@ class MessagesApi {
|
|
|
382
473
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
383
474
|
*/
|
|
384
475
|
listConversationMessages(conversationId, options = {}) {
|
|
385
|
-
return this.delegate.listConversationMessages(
|
|
476
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listConversationMessages({ channelId: this.channelId, conversationId, current: options.current, size: options.size, orderBy: options.orderBy, orderDirection: options.orderDirection, orderNullHandling: options.orderNullHandling, keyword: options.keyword }, { signal }));
|
|
386
477
|
}
|
|
387
478
|
/**
|
|
388
479
|
* 读取单条会话消息 / Get a conversation message
|
|
@@ -391,8 +482,8 @@ class MessagesApi {
|
|
|
391
482
|
* @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
|
|
392
483
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
393
484
|
*/
|
|
394
|
-
getConversationMessage(conversationId, messageId) {
|
|
395
|
-
return this.delegate.getConversationMessage({ channelId: this.channelId, conversationId, messageId });
|
|
485
|
+
getConversationMessage(conversationId, messageId, options = {}) {
|
|
486
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationMessage({ channelId: this.channelId, conversationId, messageId }, { signal }));
|
|
396
487
|
}
|
|
397
488
|
/**
|
|
398
489
|
* 分页查询异步任务 / List asynchronous tasks
|
|
@@ -402,7 +493,7 @@ class MessagesApi {
|
|
|
402
493
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
403
494
|
*/
|
|
404
495
|
listConversationAsyncTasks(conversationId, options = {}) {
|
|
405
|
-
return this.delegate.listConversationAsyncTasks(
|
|
496
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listConversationAsyncTasks({ channelId: this.channelId, conversationId, current: options.current, size: options.size, orderBy: options.orderBy, orderDirection: options.orderDirection, orderNullHandling: options.orderNullHandling, keyword: options.keyword, status: options.status }, { signal }));
|
|
406
497
|
}
|
|
407
498
|
/**
|
|
408
499
|
* 增量同步异步任务 / Sync asynchronous task updates
|
|
@@ -412,7 +503,7 @@ class MessagesApi {
|
|
|
412
503
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
413
504
|
*/
|
|
414
505
|
syncConversationAsyncTasks(conversationId, options = {}) {
|
|
415
|
-
return this.delegate.syncConversationAsyncTasks(
|
|
506
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.syncConversationAsyncTasks({ channelId: this.channelId, conversationId, afterMessageId: options.afterMessageId, size: options.size }, { signal }));
|
|
416
507
|
}
|
|
417
508
|
/**
|
|
418
509
|
* 读取异步任务 / Get an asynchronous task
|
|
@@ -421,8 +512,8 @@ class MessagesApi {
|
|
|
421
512
|
* @param asyncTaskId - 异步任务 ID。 / Asynchronous task ID.
|
|
422
513
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
423
514
|
*/
|
|
424
|
-
getConversationAsyncTask(conversationId, asyncTaskId) {
|
|
425
|
-
return this.delegate.getConversationAsyncTask({ channelId: this.channelId, conversationId, asyncTaskId });
|
|
515
|
+
getConversationAsyncTask(conversationId, asyncTaskId, options = {}) {
|
|
516
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationAsyncTask({ channelId: this.channelId, conversationId, asyncTaskId }, { signal }));
|
|
426
517
|
}
|
|
427
518
|
/**
|
|
428
519
|
* 分页查询子 Agent 任务 / List subagent tasks
|
|
@@ -432,7 +523,7 @@ class MessagesApi {
|
|
|
432
523
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
433
524
|
*/
|
|
434
525
|
listConversationSubagents(conversationId, options = {}) {
|
|
435
|
-
return this.delegate.listConversationSubagents(
|
|
526
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listConversationSubagents({ channelId: this.channelId, conversationId, current: options.current, size: options.size, orderBy: options.orderBy, orderDirection: options.orderDirection, orderNullHandling: options.orderNullHandling, keyword: options.keyword, status: options.status }, { signal }));
|
|
436
527
|
}
|
|
437
528
|
/**
|
|
438
529
|
* 增量同步子 Agent 状态 / Sync subagent task updates
|
|
@@ -442,7 +533,7 @@ class MessagesApi {
|
|
|
442
533
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
443
534
|
*/
|
|
444
535
|
syncConversationSubagents(conversationId, options = {}) {
|
|
445
|
-
return this.delegate.syncConversationSubagents(
|
|
536
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.syncConversationSubagents({ channelId: this.channelId, conversationId, cursor: options.cursor, size: options.size }, { signal }));
|
|
446
537
|
}
|
|
447
538
|
/**
|
|
448
539
|
* 读取子 Agent 状态 / Get a subagent task
|
|
@@ -451,8 +542,8 @@ class MessagesApi {
|
|
|
451
542
|
* @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
|
|
452
543
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
453
544
|
*/
|
|
454
|
-
getConversationSubagent(conversationId, subagentTaskId) {
|
|
455
|
-
return this.delegate.getConversationSubagent({ channelId: this.channelId, conversationId, subagentTaskId });
|
|
545
|
+
getConversationSubagent(conversationId, subagentTaskId, options = {}) {
|
|
546
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationSubagent({ channelId: this.channelId, conversationId, subagentTaskId }, { signal }));
|
|
456
547
|
}
|
|
457
548
|
/**
|
|
458
549
|
* 取消子 Agent 任务 / Cancel a subagent task
|
|
@@ -461,8 +552,8 @@ class MessagesApi {
|
|
|
461
552
|
* @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
|
|
462
553
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
463
554
|
*/
|
|
464
|
-
cancelConversationSubagent(conversationId, subagentTaskId) {
|
|
465
|
-
return this.delegate.cancelConversationSubagent({ channelId: this.channelId, conversationId, subagentTaskId });
|
|
555
|
+
cancelConversationSubagent(conversationId, subagentTaskId, options = {}) {
|
|
556
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.cancelConversationSubagent({ channelId: this.channelId, conversationId, subagentTaskId }, { signal }));
|
|
466
557
|
}
|
|
467
558
|
/**
|
|
468
559
|
* 读取子 Agent 结果 / Get a subagent result
|
|
@@ -471,8 +562,8 @@ class MessagesApi {
|
|
|
471
562
|
* @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
|
|
472
563
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
473
564
|
*/
|
|
474
|
-
getConversationSubagentResult(conversationId, subagentTaskId) {
|
|
475
|
-
return this.delegate.getConversationSubagentResult({ channelId: this.channelId, conversationId, subagentTaskId });
|
|
565
|
+
getConversationSubagentResult(conversationId, subagentTaskId, options = {}) {
|
|
566
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationSubagentResult({ channelId: this.channelId, conversationId, subagentTaskId }, { signal }));
|
|
476
567
|
}
|
|
477
568
|
/**
|
|
478
569
|
* 取消排队消息 / Cancel a queued message
|
|
@@ -481,8 +572,18 @@ class MessagesApi {
|
|
|
481
572
|
* @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
|
|
482
573
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
483
574
|
*/
|
|
484
|
-
cancelQueuedMessage(conversationId, messageId) {
|
|
485
|
-
return this.delegate.cancelQueuedMessage({ channelId: this.channelId, conversationId, messageId });
|
|
575
|
+
cancelQueuedMessage(conversationId, messageId, options = {}) {
|
|
576
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.cancelQueuedMessage({ channelId: this.channelId, conversationId, messageId }, { signal }));
|
|
577
|
+
}
|
|
578
|
+
/**
|
|
579
|
+
* 增量同步消息 / Sync conversation messages
|
|
580
|
+
*
|
|
581
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
582
|
+
* @param options - 查询参数与可选请求头。 / Query parameters and optional request headers.
|
|
583
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
584
|
+
*/
|
|
585
|
+
syncConversationMessages(conversationId, options = {}) {
|
|
586
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.syncConversationMessages({ channelId: this.channelId, conversationId, afterMessageId: options.afterMessageId, size: options.size }, { signal }));
|
|
486
587
|
}
|
|
487
588
|
}
|
|
488
589
|
exports.MessagesApi = MessagesApi;
|
|
@@ -500,7 +601,7 @@ class EventsApi {
|
|
|
500
601
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
501
602
|
*/
|
|
502
603
|
getChatEvents(options) {
|
|
503
|
-
return this.delegate.getChatEvents(
|
|
604
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getChatEvents({ channelId: this.channelId, conversationId: options.conversationId, messageId: options.messageId }, { signal }));
|
|
504
605
|
}
|
|
505
606
|
/**
|
|
506
607
|
* 批量读取消息事件 / Get message events in batch
|
|
@@ -508,8 +609,8 @@ class EventsApi {
|
|
|
508
609
|
* @param input - 批量读取消息事件 / Get message events in batch 的强类型请求体。 / Typed request body for getChatEventsBatch.
|
|
509
610
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
510
611
|
*/
|
|
511
|
-
getChatEventsBatch(input) {
|
|
512
|
-
return this.delegate.getChatEventsBatch({ channelId: this.channelId, aiChatEventsBatchInput: input });
|
|
612
|
+
getChatEventsBatch(input, options = {}) {
|
|
613
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getChatEventsBatch({ channelId: this.channelId, aiChatEventsBatchInput: input }, { signal }));
|
|
513
614
|
}
|
|
514
615
|
}
|
|
515
616
|
exports.EventsApi = EventsApi;
|
|
@@ -526,8 +627,8 @@ class InteractionsApi {
|
|
|
526
627
|
* @param input - 提交计划审批 / Submit plan approval 的强类型请求体。 / Typed request body for approvePlan.
|
|
527
628
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
528
629
|
*/
|
|
529
|
-
approvePlan(input) {
|
|
530
|
-
return this.delegate.approvePlan({ channelId: this.channelId, planApprovalInput: input });
|
|
630
|
+
approvePlan(input, options = {}) {
|
|
631
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.approvePlan({ channelId: this.channelId, planApprovalInput: input }, { signal }));
|
|
531
632
|
}
|
|
532
633
|
/**
|
|
533
634
|
* 查询计划审批状态 / Get plan approval status
|
|
@@ -535,8 +636,8 @@ class InteractionsApi {
|
|
|
535
636
|
* @param planId - 等待审批的计划 ID。 / Pending plan-approval ID.
|
|
536
637
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
537
638
|
*/
|
|
538
|
-
getPlanStatus(planId) {
|
|
539
|
-
return this.delegate.getPlanStatus({ channelId: this.channelId, planId });
|
|
639
|
+
getPlanStatus(planId, options = {}) {
|
|
640
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getPlanStatus({ channelId: this.channelId, planId }, { signal }));
|
|
540
641
|
}
|
|
541
642
|
/**
|
|
542
643
|
* 查询用户问答状态 / Get user-input status
|
|
@@ -546,7 +647,7 @@ class InteractionsApi {
|
|
|
546
647
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
547
648
|
*/
|
|
548
649
|
getUserInputStatus(questionId, options) {
|
|
549
|
-
return this.delegate.getUserInputStatus(
|
|
650
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getUserInputStatus({ channelId: this.channelId, questionId, conversationId: options.conversationId, messageId: options.messageId }, { signal }));
|
|
550
651
|
}
|
|
551
652
|
/**
|
|
552
653
|
* 提交用户回答 / Submit a user answer
|
|
@@ -554,8 +655,18 @@ class InteractionsApi {
|
|
|
554
655
|
* @param input - 提交用户回答 / Submit a user answer 的强类型请求体。 / Typed request body for answerUserInput.
|
|
555
656
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
556
657
|
*/
|
|
557
|
-
answerUserInput(input) {
|
|
558
|
-
return this.delegate.answerUserInput({ channelId: this.channelId, userInputAnswerInput: input });
|
|
658
|
+
answerUserInput(input, options = {}) {
|
|
659
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.answerUserInput({ channelId: this.channelId, userInputAnswerInput: input }, { signal }));
|
|
660
|
+
}
|
|
661
|
+
/**
|
|
662
|
+
* 查询消息计划审批状态 / Get message plan status
|
|
663
|
+
*
|
|
664
|
+
* @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
|
|
665
|
+
* @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
|
|
666
|
+
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
667
|
+
*/
|
|
668
|
+
getMessagePlanStatus(conversationId, messageId, options = {}) {
|
|
669
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getMessagePlanStatus({ channelId: this.channelId, conversationId, messageId }, { signal }));
|
|
559
670
|
}
|
|
560
671
|
}
|
|
561
672
|
exports.InteractionsApi = InteractionsApi;
|
|
@@ -572,8 +683,8 @@ class FilesApi {
|
|
|
572
683
|
* @param input - 创建预签名上传地址 / Create a presigned upload URL 的强类型请求体。 / Typed request body for createPreSignedUpload.
|
|
573
684
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
574
685
|
*/
|
|
575
|
-
createPreSignedUpload(input) {
|
|
576
|
-
return this.delegate.createPreSignedUpload({ channelId: this.channelId, generatePreSignedUrlInput: input });
|
|
686
|
+
createPreSignedUpload(input, options = {}) {
|
|
687
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.createPreSignedUpload({ channelId: this.channelId, generatePreSignedUrlInput: input }, { signal }));
|
|
577
688
|
}
|
|
578
689
|
/**
|
|
579
690
|
* 确认预签名上传 / Confirm a presigned upload
|
|
@@ -581,8 +692,8 @@ class FilesApi {
|
|
|
581
692
|
* @param input - 确认预签名上传 / Confirm a presigned upload 的强类型请求体。 / Typed request body for confirmPreSignedUpload.
|
|
582
693
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
583
694
|
*/
|
|
584
|
-
confirmPreSignedUpload(input) {
|
|
585
|
-
return this.delegate.confirmPreSignedUpload({ channelId: this.channelId, confirmUploadInput: input });
|
|
695
|
+
confirmPreSignedUpload(input, options = {}) {
|
|
696
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.confirmPreSignedUpload({ channelId: this.channelId, confirmUploadInput: input }, { signal }));
|
|
586
697
|
}
|
|
587
698
|
/**
|
|
588
699
|
* 按 MD5 复用文件 / Reuse a file by MD5
|
|
@@ -590,8 +701,8 @@ class FilesApi {
|
|
|
590
701
|
* @param input - 按 MD5 复用文件 / Reuse a file by MD5 的强类型请求体。 / Typed request body for createFileByContentMd5.
|
|
591
702
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
592
703
|
*/
|
|
593
|
-
createFileByContentMd5(input) {
|
|
594
|
-
return this.delegate.createFileByContentMd5({ channelId: this.channelId, createFileInput: input });
|
|
704
|
+
createFileByContentMd5(input, options = {}) {
|
|
705
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.createFileByContentMd5({ channelId: this.channelId, createFileInput: input }, { signal }));
|
|
595
706
|
}
|
|
596
707
|
/**
|
|
597
708
|
* 检查 MD5 文件是否存在 / Check file existence by MD5
|
|
@@ -600,7 +711,7 @@ class FilesApi {
|
|
|
600
711
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
601
712
|
*/
|
|
602
713
|
fileExistsByContentMd5(options) {
|
|
603
|
-
return this.delegate.fileExistsByContentMd5(
|
|
714
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.fileExistsByContentMd5({ channelId: this.channelId, contentMd5: options.contentMd5 }, { signal }));
|
|
604
715
|
}
|
|
605
716
|
/**
|
|
606
717
|
* 创建会话文件预览地址 / Create a conversation file preview URL
|
|
@@ -609,8 +720,8 @@ class FilesApi {
|
|
|
609
720
|
* @param fileId - 文件记录 ID。 / File record ID.
|
|
610
721
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
611
722
|
*/
|
|
612
|
-
getConversationFilePreview(conversationId, fileId) {
|
|
613
|
-
return this.delegate.getConversationFilePreview({ channelId: this.channelId, conversationId, fileId });
|
|
723
|
+
getConversationFilePreview(conversationId, fileId, options = {}) {
|
|
724
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getConversationFilePreview({ channelId: this.channelId, conversationId, fileId }, { signal }));
|
|
614
725
|
}
|
|
615
726
|
/**
|
|
616
727
|
* 创建计划快照预览地址 / Create a plan snapshot preview URL
|
|
@@ -620,8 +731,8 @@ class FilesApi {
|
|
|
620
731
|
* @param fileId - 文件记录 ID。 / File record ID.
|
|
621
732
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
622
733
|
*/
|
|
623
|
-
getPlanIntermediateFilePreview(conversationId, messageId, fileId) {
|
|
624
|
-
return this.delegate.getPlanIntermediateFilePreview({ channelId: this.channelId, conversationId, messageId, fileId });
|
|
734
|
+
getPlanIntermediateFilePreview(conversationId, messageId, fileId, options = {}) {
|
|
735
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getPlanIntermediateFilePreview({ channelId: this.channelId, conversationId, messageId, fileId }, { signal }));
|
|
625
736
|
}
|
|
626
737
|
}
|
|
627
738
|
exports.FilesApi = FilesApi;
|
|
@@ -638,8 +749,8 @@ class KnowledgeApi {
|
|
|
638
749
|
* @param input - 批量读取引用元数据 / Get citation metadata in batch 的强类型请求体。 / Typed request body for getCitationMetadataBatch.
|
|
639
750
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
640
751
|
*/
|
|
641
|
-
getCitationMetadataBatch(input) {
|
|
642
|
-
return this.delegate.getCitationMetadataBatch({ channelId: this.channelId, returnedReference: input });
|
|
752
|
+
getCitationMetadataBatch(input, options = {}) {
|
|
753
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getCitationMetadataBatch({ channelId: this.channelId, returnedReference: input }, { signal }));
|
|
643
754
|
}
|
|
644
755
|
/**
|
|
645
756
|
* 读取引用元数据 / Get citation metadata
|
|
@@ -648,8 +759,8 @@ class KnowledgeApi {
|
|
|
648
759
|
* @param referenceId - 知识引用记录 ID。 / Knowledge-reference record ID.
|
|
649
760
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
650
761
|
*/
|
|
651
|
-
getCitationMetadata(citationType, referenceId) {
|
|
652
|
-
return this.delegate.getCitationMetadata({ channelId: this.channelId, citationType, referenceId });
|
|
762
|
+
getCitationMetadata(citationType, referenceId, options = {}) {
|
|
763
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getCitationMetadata({ channelId: this.channelId, citationType, referenceId }, { signal }));
|
|
653
764
|
}
|
|
654
765
|
}
|
|
655
766
|
exports.KnowledgeApi = KnowledgeApi;
|
|
@@ -668,7 +779,7 @@ class WorkspaceApi {
|
|
|
668
779
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
669
780
|
*/
|
|
670
781
|
listWorkspaceArtifacts(conversationId, options = {}) {
|
|
671
|
-
return this.delegate.listWorkspaceArtifacts(
|
|
782
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.listWorkspaceArtifacts({ channelId: this.channelId, conversationId, current: options.current, size: options.size, orderBy: options.orderBy, orderDirection: options.orderDirection, orderNullHandling: options.orderNullHandling, keyword: options.keyword, prefix: options.prefix }, { signal }));
|
|
672
783
|
}
|
|
673
784
|
/**
|
|
674
785
|
* 创建工作区文件预览地址 / Create a workspace file preview URL
|
|
@@ -678,7 +789,7 @@ class WorkspaceApi {
|
|
|
678
789
|
* @returns 契约定义的强类型响应。 / The typed response defined by the contract.
|
|
679
790
|
*/
|
|
680
791
|
getWorkspaceFilePreview(conversationId, options) {
|
|
681
|
-
return this.delegate.getWorkspaceFilePreview(
|
|
792
|
+
return (0, lifecycle_1.execute)(options, signal => this.delegate.getWorkspaceFilePreview({ channelId: this.channelId, conversationId, path: options.path }, { signal }));
|
|
682
793
|
}
|
|
683
794
|
}
|
|
684
795
|
exports.WorkspaceApi = WorkspaceApi;
|