@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
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Lingya Agents OpenAPI
|
|
6
|
-
*
|
|
6
|
+
* Public Lingya Agents channel API. HMAC credentials belong on trusted servers; client tokens are single-use.
|
|
7
7
|
*
|
|
8
|
-
* The version of the OpenAPI document: 0.1.
|
|
8
|
+
* The version of the OpenAPI document: 0.1.7
|
|
9
9
|
*
|
|
10
10
|
*
|
|
11
11
|
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
@@ -22,44 +22,47 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
22
22
|
});
|
|
23
23
|
};
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
-
exports.
|
|
25
|
+
exports.ListConversationsGroupFilterEnum = exports.ListConversationsStatusEnum = exports.ConversationsApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
27
|
const ConversationActivityBatchInput_1 = require("../models/ConversationActivityBatchInput");
|
|
28
28
|
const ConversationActivityList_1 = require("../models/ConversationActivityList");
|
|
29
29
|
const ConversationContextUsage_1 = require("../models/ConversationContextUsage");
|
|
30
|
+
const ConversationGroup_1 = require("../models/ConversationGroup");
|
|
31
|
+
const ConversationGroupDeleted_1 = require("../models/ConversationGroupDeleted");
|
|
32
|
+
const ConversationGroupList_1 = require("../models/ConversationGroupList");
|
|
33
|
+
const ConversationGroupNameInput_1 = require("../models/ConversationGroupNameInput");
|
|
30
34
|
const ConversationIds_1 = require("../models/ConversationIds");
|
|
35
|
+
const ConversationMetadata_1 = require("../models/ConversationMetadata");
|
|
31
36
|
const ConversationReadReceipt_1 = require("../models/ConversationReadReceipt");
|
|
32
37
|
const ConversationReadReceiptInput_1 = require("../models/ConversationReadReceiptInput");
|
|
33
|
-
const ConversationShareCreated_1 = require("../models/ConversationShareCreated");
|
|
34
|
-
const ConversationShareInput_1 = require("../models/ConversationShareInput");
|
|
35
|
-
const ConversationShareList_1 = require("../models/ConversationShareList");
|
|
36
|
-
const ConversationShareRevoked_1 = require("../models/ConversationShareRevoked");
|
|
37
38
|
const ConversationStats_1 = require("../models/ConversationStats");
|
|
38
39
|
const ConversationStatusInput_1 = require("../models/ConversationStatusInput");
|
|
40
|
+
const ConversationSummary_1 = require("../models/ConversationSummary");
|
|
39
41
|
const ConversationSummaryList_1 = require("../models/ConversationSummaryList");
|
|
40
42
|
const ConversationTitle_1 = require("../models/ConversationTitle");
|
|
41
43
|
const ConversationTitleInput_1 = require("../models/ConversationTitleInput");
|
|
44
|
+
const UpdateConversationGroupInput_1 = require("../models/UpdateConversationGroupInput");
|
|
42
45
|
/**
|
|
43
46
|
*
|
|
44
47
|
*/
|
|
45
48
|
class ConversationsApi extends runtime.BaseAPI {
|
|
46
49
|
/**
|
|
47
|
-
* Creates request options for
|
|
50
|
+
* Creates request options for createConversationGroup without sending the request
|
|
48
51
|
*/
|
|
49
|
-
|
|
52
|
+
createConversationGroupRequestOpts(requestParameters) {
|
|
50
53
|
return __awaiter(this, void 0, void 0, function* () {
|
|
51
54
|
if (requestParameters['channelId'] == null) {
|
|
52
|
-
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling
|
|
55
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling createConversationGroup().');
|
|
53
56
|
}
|
|
54
|
-
if (requestParameters['
|
|
55
|
-
throw new runtime.RequiredError('
|
|
56
|
-
}
|
|
57
|
-
if (requestParameters['conversationShareInput'] == null) {
|
|
58
|
-
throw new runtime.RequiredError('conversationShareInput', 'Required parameter "conversationShareInput" was null or undefined when calling createConversationShare().');
|
|
57
|
+
if (requestParameters['conversationGroupNameInput'] == null) {
|
|
58
|
+
throw new runtime.RequiredError('conversationGroupNameInput', 'Required parameter "conversationGroupNameInput" was null or undefined when calling createConversationGroup().');
|
|
59
59
|
}
|
|
60
60
|
const queryParameters = {};
|
|
61
61
|
const headerParameters = {};
|
|
62
62
|
headerParameters['Content-Type'] = 'application/json';
|
|
63
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
64
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
65
|
+
}
|
|
63
66
|
if (this.configuration && this.configuration.apiKey) {
|
|
64
67
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
65
68
|
}
|
|
@@ -75,36 +78,35 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
75
78
|
if (this.configuration && this.configuration.apiKey) {
|
|
76
79
|
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
77
80
|
}
|
|
78
|
-
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/
|
|
81
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversation-groups`;
|
|
79
82
|
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
80
|
-
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
81
83
|
return {
|
|
82
84
|
path: urlPath,
|
|
83
85
|
method: 'POST',
|
|
84
86
|
headers: headerParameters,
|
|
85
87
|
query: queryParameters,
|
|
86
|
-
body: (0,
|
|
88
|
+
body: (0, ConversationGroupNameInput_1.ConversationGroupNameInputToJSON)(requestParameters['conversationGroupNameInput']),
|
|
87
89
|
};
|
|
88
90
|
});
|
|
89
91
|
}
|
|
90
92
|
/**
|
|
91
|
-
* ### 使用场景
|
|
92
|
-
*
|
|
93
|
+
* ### 使用场景 去除名称首尾空白后创建分组,名称最多 60 字符。 ### Use case Create a group after trimming the name; names are limited to 60 characters. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 去除名称首尾空白后创建分组,名称最多 60 字符。 ### Behavior and side effects Create a group after trimming the name; names are limited to 60 characters. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 创建会话分组 / Create conversation group ### Operation summary 创建会话分组 / Create conversation group
|
|
94
|
+
* 创建会话分组 / Create conversation group
|
|
93
95
|
*/
|
|
94
|
-
|
|
96
|
+
createConversationGroupRaw(requestParameters, initOverrides) {
|
|
95
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
96
|
-
const requestOptions = yield this.
|
|
98
|
+
const requestOptions = yield this.createConversationGroupRequestOpts(requestParameters);
|
|
97
99
|
const response = yield this.request(requestOptions, initOverrides);
|
|
98
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
100
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationGroup_1.ConversationGroupFromJSON)(jsonValue));
|
|
99
101
|
});
|
|
100
102
|
}
|
|
101
103
|
/**
|
|
102
|
-
* ### 使用场景
|
|
103
|
-
*
|
|
104
|
+
* ### 使用场景 去除名称首尾空白后创建分组,名称最多 60 字符。 ### Use case Create a group after trimming the name; names are limited to 60 characters. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 去除名称首尾空白后创建分组,名称最多 60 字符。 ### Behavior and side effects Create a group after trimming the name; names are limited to 60 characters. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 创建会话分组 / Create conversation group ### Operation summary 创建会话分组 / Create conversation group
|
|
105
|
+
* 创建会话分组 / Create conversation group
|
|
104
106
|
*/
|
|
105
|
-
|
|
107
|
+
createConversationGroup(requestParameters, initOverrides) {
|
|
106
108
|
return __awaiter(this, void 0, void 0, function* () {
|
|
107
|
-
const response = yield this.
|
|
109
|
+
const response = yield this.createConversationGroupRaw(requestParameters, initOverrides);
|
|
108
110
|
return yield response.value();
|
|
109
111
|
});
|
|
110
112
|
}
|
|
@@ -121,6 +123,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
121
123
|
}
|
|
122
124
|
const queryParameters = {};
|
|
123
125
|
const headerParameters = {};
|
|
126
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
127
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
128
|
+
}
|
|
124
129
|
if (this.configuration && this.configuration.apiKey) {
|
|
125
130
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
126
131
|
}
|
|
@@ -167,6 +172,69 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
167
172
|
yield this.deleteConversationRaw(requestParameters, initOverrides);
|
|
168
173
|
});
|
|
169
174
|
}
|
|
175
|
+
/**
|
|
176
|
+
* Creates request options for deleteConversationGroup without sending the request
|
|
177
|
+
*/
|
|
178
|
+
deleteConversationGroupRequestOpts(requestParameters) {
|
|
179
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
180
|
+
if (requestParameters['channelId'] == null) {
|
|
181
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling deleteConversationGroup().');
|
|
182
|
+
}
|
|
183
|
+
if (requestParameters['groupId'] == null) {
|
|
184
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling deleteConversationGroup().');
|
|
185
|
+
}
|
|
186
|
+
const queryParameters = {};
|
|
187
|
+
const headerParameters = {};
|
|
188
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
189
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
190
|
+
}
|
|
191
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
192
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
193
|
+
}
|
|
194
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
195
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
196
|
+
}
|
|
197
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
198
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
199
|
+
}
|
|
200
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
201
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
202
|
+
}
|
|
203
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
204
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
205
|
+
}
|
|
206
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversation-groups/{groupId}`;
|
|
207
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
208
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
209
|
+
return {
|
|
210
|
+
path: urlPath,
|
|
211
|
+
method: 'DELETE',
|
|
212
|
+
headers: headerParameters,
|
|
213
|
+
query: queryParameters,
|
|
214
|
+
};
|
|
215
|
+
});
|
|
216
|
+
}
|
|
217
|
+
/**
|
|
218
|
+
* ### 使用场景 删除分组并将会话移回未分组,返回移动数量。 ### Use case Delete the group and move its conversations to ungrouped; return the moved count. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 删除分组并将会话移回未分组,返回移动数量。 ### Behavior and side effects Delete the group and move its conversations to ungrouped; return the moved count. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 删除会话分组 / Delete conversation group ### Operation summary 删除会话分组 / Delete conversation group
|
|
219
|
+
* 删除会话分组 / Delete conversation group
|
|
220
|
+
*/
|
|
221
|
+
deleteConversationGroupRaw(requestParameters, initOverrides) {
|
|
222
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
223
|
+
const requestOptions = yield this.deleteConversationGroupRequestOpts(requestParameters);
|
|
224
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
225
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationGroupDeleted_1.ConversationGroupDeletedFromJSON)(jsonValue));
|
|
226
|
+
});
|
|
227
|
+
}
|
|
228
|
+
/**
|
|
229
|
+
* ### 使用场景 删除分组并将会话移回未分组,返回移动数量。 ### Use case Delete the group and move its conversations to ungrouped; return the moved count. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 删除分组并将会话移回未分组,返回移动数量。 ### Behavior and side effects Delete the group and move its conversations to ungrouped; return the moved count. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 删除会话分组 / Delete conversation group ### Operation summary 删除会话分组 / Delete conversation group
|
|
230
|
+
* 删除会话分组 / Delete conversation group
|
|
231
|
+
*/
|
|
232
|
+
deleteConversationGroup(requestParameters, initOverrides) {
|
|
233
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
234
|
+
const response = yield this.deleteConversationGroupRaw(requestParameters, initOverrides);
|
|
235
|
+
return yield response.value();
|
|
236
|
+
});
|
|
237
|
+
}
|
|
170
238
|
/**
|
|
171
239
|
* Creates request options for getConversationContextUsage without sending the request
|
|
172
240
|
*/
|
|
@@ -180,6 +248,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
180
248
|
}
|
|
181
249
|
const queryParameters = {};
|
|
182
250
|
const headerParameters = {};
|
|
251
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
252
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
253
|
+
}
|
|
183
254
|
if (this.configuration && this.configuration.apiKey) {
|
|
184
255
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
185
256
|
}
|
|
@@ -237,6 +308,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
237
308
|
}
|
|
238
309
|
const queryParameters = {};
|
|
239
310
|
const headerParameters = {};
|
|
311
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
312
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
313
|
+
}
|
|
240
314
|
if (this.configuration && this.configuration.apiKey) {
|
|
241
315
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
242
316
|
}
|
|
@@ -283,6 +357,69 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
283
357
|
return yield response.value();
|
|
284
358
|
});
|
|
285
359
|
}
|
|
360
|
+
/**
|
|
361
|
+
* Creates request options for getConversationSummary without sending the request
|
|
362
|
+
*/
|
|
363
|
+
getConversationSummaryRequestOpts(requestParameters) {
|
|
364
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
365
|
+
if (requestParameters['channelId'] == null) {
|
|
366
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getConversationSummary().');
|
|
367
|
+
}
|
|
368
|
+
if (requestParameters['conversationId'] == null) {
|
|
369
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationSummary().');
|
|
370
|
+
}
|
|
371
|
+
const queryParameters = {};
|
|
372
|
+
const headerParameters = {};
|
|
373
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
374
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
375
|
+
}
|
|
376
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
377
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
378
|
+
}
|
|
379
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
380
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
381
|
+
}
|
|
382
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
383
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
384
|
+
}
|
|
385
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
386
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
387
|
+
}
|
|
388
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
389
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
390
|
+
}
|
|
391
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}`;
|
|
392
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
393
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
394
|
+
return {
|
|
395
|
+
path: urlPath,
|
|
396
|
+
method: 'GET',
|
|
397
|
+
headers: headerParameters,
|
|
398
|
+
query: queryParameters,
|
|
399
|
+
};
|
|
400
|
+
});
|
|
401
|
+
}
|
|
402
|
+
/**
|
|
403
|
+
* ### 使用场景 按会话标识恢复当前用户的会话摘要。 ### Use case Restore the current user\'s conversation summary by ID. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 按会话标识恢复当前用户的会话摘要。 ### Behavior and side effects Restore the current user\'s conversation summary by ID. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 读取会话摘要 / Get conversation summary ### Operation summary 读取会话摘要 / Get conversation summary
|
|
404
|
+
* 读取会话摘要 / Get conversation summary
|
|
405
|
+
*/
|
|
406
|
+
getConversationSummaryRaw(requestParameters, initOverrides) {
|
|
407
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
408
|
+
const requestOptions = yield this.getConversationSummaryRequestOpts(requestParameters);
|
|
409
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
410
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationSummary_1.ConversationSummaryFromJSON)(jsonValue));
|
|
411
|
+
});
|
|
412
|
+
}
|
|
413
|
+
/**
|
|
414
|
+
* ### 使用场景 按会话标识恢复当前用户的会话摘要。 ### Use case Restore the current user\'s conversation summary by ID. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 按会话标识恢复当前用户的会话摘要。 ### Behavior and side effects Restore the current user\'s conversation summary by ID. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 读取会话摘要 / Get conversation summary ### Operation summary 读取会话摘要 / Get conversation summary
|
|
415
|
+
* 读取会话摘要 / Get conversation summary
|
|
416
|
+
*/
|
|
417
|
+
getConversationSummary(requestParameters, initOverrides) {
|
|
418
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
419
|
+
const response = yield this.getConversationSummaryRaw(requestParameters, initOverrides);
|
|
420
|
+
return yield response.value();
|
|
421
|
+
});
|
|
422
|
+
}
|
|
286
423
|
/**
|
|
287
424
|
* Creates request options for getConversationTitle without sending the request
|
|
288
425
|
*/
|
|
@@ -296,6 +433,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
296
433
|
}
|
|
297
434
|
const queryParameters = {};
|
|
298
435
|
const headerParameters = {};
|
|
436
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
437
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
438
|
+
}
|
|
299
439
|
if (this.configuration && this.configuration.apiKey) {
|
|
300
440
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
301
441
|
}
|
|
@@ -353,6 +493,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
353
493
|
}
|
|
354
494
|
const queryParameters = {};
|
|
355
495
|
const headerParameters = {};
|
|
496
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
497
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
498
|
+
}
|
|
356
499
|
if (this.configuration && this.configuration.apiKey) {
|
|
357
500
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
358
501
|
}
|
|
@@ -400,18 +543,18 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
400
543
|
});
|
|
401
544
|
}
|
|
402
545
|
/**
|
|
403
|
-
* Creates request options for
|
|
546
|
+
* Creates request options for listConversationGroups without sending the request
|
|
404
547
|
*/
|
|
405
|
-
|
|
548
|
+
listConversationGroupsRequestOpts(requestParameters) {
|
|
406
549
|
return __awaiter(this, void 0, void 0, function* () {
|
|
407
550
|
if (requestParameters['channelId'] == null) {
|
|
408
|
-
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling
|
|
409
|
-
}
|
|
410
|
-
if (requestParameters['conversationId'] == null) {
|
|
411
|
-
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling listConversationShares().');
|
|
551
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling listConversationGroups().');
|
|
412
552
|
}
|
|
413
553
|
const queryParameters = {};
|
|
414
554
|
const headerParameters = {};
|
|
555
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
556
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
557
|
+
}
|
|
415
558
|
if (this.configuration && this.configuration.apiKey) {
|
|
416
559
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
417
560
|
}
|
|
@@ -427,9 +570,8 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
427
570
|
if (this.configuration && this.configuration.apiKey) {
|
|
428
571
|
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
429
572
|
}
|
|
430
|
-
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/
|
|
573
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversation-groups`;
|
|
431
574
|
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
432
|
-
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
433
575
|
return {
|
|
434
576
|
path: urlPath,
|
|
435
577
|
method: 'GET',
|
|
@@ -439,23 +581,23 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
439
581
|
});
|
|
440
582
|
}
|
|
441
583
|
/**
|
|
442
|
-
* ### 使用场景
|
|
443
|
-
*
|
|
584
|
+
* ### 使用场景 一次读取当前用户作用域下的完整分组目录。 ### Use case Read the complete group directory for the current user. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 一次读取当前用户作用域下的完整分组目录。 ### Behavior and side effects Read the complete group directory for the current user. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 查询会话分组 / List conversation groups ### Operation summary 查询会话分组 / List conversation groups
|
|
585
|
+
* 查询会话分组 / List conversation groups
|
|
444
586
|
*/
|
|
445
|
-
|
|
587
|
+
listConversationGroupsRaw(requestParameters, initOverrides) {
|
|
446
588
|
return __awaiter(this, void 0, void 0, function* () {
|
|
447
|
-
const requestOptions = yield this.
|
|
589
|
+
const requestOptions = yield this.listConversationGroupsRequestOpts(requestParameters);
|
|
448
590
|
const response = yield this.request(requestOptions, initOverrides);
|
|
449
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
591
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationGroupList_1.ConversationGroupListFromJSON)(jsonValue));
|
|
450
592
|
});
|
|
451
593
|
}
|
|
452
594
|
/**
|
|
453
|
-
* ### 使用场景
|
|
454
|
-
*
|
|
595
|
+
* ### 使用场景 一次读取当前用户作用域下的完整分组目录。 ### Use case Read the complete group directory for the current user. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 一次读取当前用户作用域下的完整分组目录。 ### Behavior and side effects Read the complete group directory for the current user. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 查询会话分组 / List conversation groups ### Operation summary 查询会话分组 / List conversation groups
|
|
596
|
+
* 查询会话分组 / List conversation groups
|
|
455
597
|
*/
|
|
456
|
-
|
|
598
|
+
listConversationGroups(requestParameters, initOverrides) {
|
|
457
599
|
return __awaiter(this, void 0, void 0, function* () {
|
|
458
|
-
const response = yield this.
|
|
600
|
+
const response = yield this.listConversationGroupsRaw(requestParameters, initOverrides);
|
|
459
601
|
return yield response.value();
|
|
460
602
|
});
|
|
461
603
|
}
|
|
@@ -474,22 +616,22 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
474
616
|
if (requestParameters['size'] != null) {
|
|
475
617
|
queryParameters['size'] = requestParameters['size'];
|
|
476
618
|
}
|
|
477
|
-
if (requestParameters['
|
|
478
|
-
queryParameters['
|
|
479
|
-
}
|
|
480
|
-
if (requestParameters['orderDirection'] != null) {
|
|
481
|
-
queryParameters['orderDirection'] = requestParameters['orderDirection'];
|
|
482
|
-
}
|
|
483
|
-
if (requestParameters['orderNullHandling'] != null) {
|
|
484
|
-
queryParameters['orderNullHandling'] = requestParameters['orderNullHandling'];
|
|
619
|
+
if (requestParameters['status'] != null) {
|
|
620
|
+
queryParameters['status'] = requestParameters['status'];
|
|
485
621
|
}
|
|
486
622
|
if (requestParameters['keyword'] != null) {
|
|
487
623
|
queryParameters['keyword'] = requestParameters['keyword'];
|
|
488
624
|
}
|
|
489
|
-
if (requestParameters['
|
|
490
|
-
queryParameters['
|
|
625
|
+
if (requestParameters['groupFilter'] != null) {
|
|
626
|
+
queryParameters['groupFilter'] = requestParameters['groupFilter'];
|
|
627
|
+
}
|
|
628
|
+
if (requestParameters['groupId'] != null) {
|
|
629
|
+
queryParameters['groupId'] = requestParameters['groupId'];
|
|
491
630
|
}
|
|
492
631
|
const headerParameters = {};
|
|
632
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
633
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
634
|
+
}
|
|
493
635
|
if (this.configuration && this.configuration.apiKey) {
|
|
494
636
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
495
637
|
}
|
|
@@ -546,6 +688,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
546
688
|
}
|
|
547
689
|
const queryParameters = {};
|
|
548
690
|
const headerParameters = {};
|
|
691
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
692
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
693
|
+
}
|
|
549
694
|
if (this.configuration && this.configuration.apiKey) {
|
|
550
695
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
551
696
|
}
|
|
@@ -609,6 +754,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
609
754
|
const queryParameters = {};
|
|
610
755
|
const headerParameters = {};
|
|
611
756
|
headerParameters['Content-Type'] = 'application/json';
|
|
757
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
758
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
759
|
+
}
|
|
612
760
|
if (this.configuration && this.configuration.apiKey) {
|
|
613
761
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
614
762
|
}
|
|
@@ -657,6 +805,74 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
657
805
|
return yield response.value();
|
|
658
806
|
});
|
|
659
807
|
}
|
|
808
|
+
/**
|
|
809
|
+
* Creates request options for moveConversationToGroup without sending the request
|
|
810
|
+
*/
|
|
811
|
+
moveConversationToGroupRequestOpts(requestParameters) {
|
|
812
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
813
|
+
if (requestParameters['channelId'] == null) {
|
|
814
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling moveConversationToGroup().');
|
|
815
|
+
}
|
|
816
|
+
if (requestParameters['conversationId'] == null) {
|
|
817
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling moveConversationToGroup().');
|
|
818
|
+
}
|
|
819
|
+
if (requestParameters['updateConversationGroupInput'] == null) {
|
|
820
|
+
throw new runtime.RequiredError('updateConversationGroupInput', 'Required parameter "updateConversationGroupInput" was null or undefined when calling moveConversationToGroup().');
|
|
821
|
+
}
|
|
822
|
+
const queryParameters = {};
|
|
823
|
+
const headerParameters = {};
|
|
824
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
825
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
826
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
827
|
+
}
|
|
828
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
829
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
830
|
+
}
|
|
831
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
832
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
833
|
+
}
|
|
834
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
835
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
836
|
+
}
|
|
837
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
838
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
839
|
+
}
|
|
840
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
841
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
842
|
+
}
|
|
843
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/group`;
|
|
844
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
845
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
846
|
+
return {
|
|
847
|
+
path: urlPath,
|
|
848
|
+
method: 'PATCH',
|
|
849
|
+
headers: headerParameters,
|
|
850
|
+
query: queryParameters,
|
|
851
|
+
body: (0, UpdateConversationGroupInput_1.UpdateConversationGroupInputToJSON)(requestParameters['updateConversationGroupInput']),
|
|
852
|
+
};
|
|
853
|
+
});
|
|
854
|
+
}
|
|
855
|
+
/**
|
|
856
|
+
* ### 使用场景 必须显式提供 groupId;null 表示移回未分组。 ### Use case Supply groupId explicitly; null moves the conversation to ungrouped. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 必须显式提供 groupId;null 表示移回未分组。 ### Behavior and side effects Supply groupId explicitly; null moves the conversation to ungrouped. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 移动会话分组 / Move conversation to group ### Operation summary 移动会话分组 / Move conversation to group
|
|
857
|
+
* 移动会话分组 / Move conversation to group
|
|
858
|
+
*/
|
|
859
|
+
moveConversationToGroupRaw(requestParameters, initOverrides) {
|
|
860
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
861
|
+
const requestOptions = yield this.moveConversationToGroupRequestOpts(requestParameters);
|
|
862
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
863
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationMetadata_1.ConversationMetadataFromJSON)(jsonValue));
|
|
864
|
+
});
|
|
865
|
+
}
|
|
866
|
+
/**
|
|
867
|
+
* ### 使用场景 必须显式提供 groupId;null 表示移回未分组。 ### Use case Supply groupId explicitly; null moves the conversation to ungrouped. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 必须显式提供 groupId;null 表示移回未分组。 ### Behavior and side effects Supply groupId explicitly; null moves the conversation to ungrouped. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 移动会话分组 / Move conversation to group ### Operation summary 移动会话分组 / Move conversation to group
|
|
868
|
+
* 移动会话分组 / Move conversation to group
|
|
869
|
+
*/
|
|
870
|
+
moveConversationToGroup(requestParameters, initOverrides) {
|
|
871
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
872
|
+
const response = yield this.moveConversationToGroupRaw(requestParameters, initOverrides);
|
|
873
|
+
return yield response.value();
|
|
874
|
+
});
|
|
875
|
+
}
|
|
660
876
|
/**
|
|
661
877
|
* Creates request options for queryConversationActivities without sending the request
|
|
662
878
|
*/
|
|
@@ -671,6 +887,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
671
887
|
const queryParameters = {};
|
|
672
888
|
const headerParameters = {};
|
|
673
889
|
headerParameters['Content-Type'] = 'application/json';
|
|
890
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
891
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
892
|
+
}
|
|
674
893
|
if (this.configuration && this.configuration.apiKey) {
|
|
675
894
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
676
895
|
}
|
|
@@ -719,21 +938,25 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
719
938
|
});
|
|
720
939
|
}
|
|
721
940
|
/**
|
|
722
|
-
* Creates request options for
|
|
941
|
+
* Creates request options for renameConversationGroup without sending the request
|
|
723
942
|
*/
|
|
724
|
-
|
|
943
|
+
renameConversationGroupRequestOpts(requestParameters) {
|
|
725
944
|
return __awaiter(this, void 0, void 0, function* () {
|
|
726
945
|
if (requestParameters['channelId'] == null) {
|
|
727
|
-
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling
|
|
946
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling renameConversationGroup().');
|
|
728
947
|
}
|
|
729
|
-
if (requestParameters['
|
|
730
|
-
throw new runtime.RequiredError('
|
|
948
|
+
if (requestParameters['groupId'] == null) {
|
|
949
|
+
throw new runtime.RequiredError('groupId', 'Required parameter "groupId" was null or undefined when calling renameConversationGroup().');
|
|
731
950
|
}
|
|
732
|
-
if (requestParameters['
|
|
733
|
-
throw new runtime.RequiredError('
|
|
951
|
+
if (requestParameters['conversationGroupNameInput'] == null) {
|
|
952
|
+
throw new runtime.RequiredError('conversationGroupNameInput', 'Required parameter "conversationGroupNameInput" was null or undefined when calling renameConversationGroup().');
|
|
734
953
|
}
|
|
735
954
|
const queryParameters = {};
|
|
736
955
|
const headerParameters = {};
|
|
956
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
957
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
958
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
959
|
+
}
|
|
737
960
|
if (this.configuration && this.configuration.apiKey) {
|
|
738
961
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
739
962
|
}
|
|
@@ -749,36 +972,36 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
749
972
|
if (this.configuration && this.configuration.apiKey) {
|
|
750
973
|
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
751
974
|
}
|
|
752
|
-
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/
|
|
975
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversation-groups/{groupId}`;
|
|
753
976
|
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
754
|
-
urlPath = urlPath.replace('{
|
|
755
|
-
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
977
|
+
urlPath = urlPath.replace('{groupId}', encodeURIComponent(String(requestParameters['groupId'])));
|
|
756
978
|
return {
|
|
757
979
|
path: urlPath,
|
|
758
|
-
method: '
|
|
980
|
+
method: 'PATCH',
|
|
759
981
|
headers: headerParameters,
|
|
760
982
|
query: queryParameters,
|
|
983
|
+
body: (0, ConversationGroupNameInput_1.ConversationGroupNameInputToJSON)(requestParameters['conversationGroupNameInput']),
|
|
761
984
|
};
|
|
762
985
|
});
|
|
763
986
|
}
|
|
764
987
|
/**
|
|
765
|
-
* ### 使用场景
|
|
766
|
-
*
|
|
988
|
+
* ### 使用场景 更新当前用户的分组名称。 ### Use case Update the name of a group owned by the current user. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 更新当前用户的分组名称。 ### Behavior and side effects Update the name of a group owned by the current user. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 重命名会话分组 / Rename conversation group ### Operation summary 重命名会话分组 / Rename conversation group
|
|
989
|
+
* 重命名会话分组 / Rename conversation group
|
|
767
990
|
*/
|
|
768
|
-
|
|
991
|
+
renameConversationGroupRaw(requestParameters, initOverrides) {
|
|
769
992
|
return __awaiter(this, void 0, void 0, function* () {
|
|
770
|
-
const requestOptions = yield this.
|
|
993
|
+
const requestOptions = yield this.renameConversationGroupRequestOpts(requestParameters);
|
|
771
994
|
const response = yield this.request(requestOptions, initOverrides);
|
|
772
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => (0,
|
|
995
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationGroup_1.ConversationGroupFromJSON)(jsonValue));
|
|
773
996
|
});
|
|
774
997
|
}
|
|
775
998
|
/**
|
|
776
|
-
* ### 使用场景
|
|
777
|
-
*
|
|
999
|
+
* ### 使用场景 更新当前用户的分组名称。 ### Use case Update the name of a group owned by the current user. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 更新当前用户的分组名称。 ### Behavior and side effects Update the name of a group owned by the current user. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 重命名会话分组 / Rename conversation group ### Operation summary 重命名会话分组 / Rename conversation group
|
|
1000
|
+
* 重命名会话分组 / Rename conversation group
|
|
778
1001
|
*/
|
|
779
|
-
|
|
1002
|
+
renameConversationGroup(requestParameters, initOverrides) {
|
|
780
1003
|
return __awaiter(this, void 0, void 0, function* () {
|
|
781
|
-
const response = yield this.
|
|
1004
|
+
const response = yield this.renameConversationGroupRaw(requestParameters, initOverrides);
|
|
782
1005
|
return yield response.value();
|
|
783
1006
|
});
|
|
784
1007
|
}
|
|
@@ -799,6 +1022,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
799
1022
|
const queryParameters = {};
|
|
800
1023
|
const headerParameters = {};
|
|
801
1024
|
headerParameters['Content-Type'] = 'application/json';
|
|
1025
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1026
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
1027
|
+
}
|
|
802
1028
|
if (this.configuration && this.configuration.apiKey) {
|
|
803
1029
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
804
1030
|
}
|
|
@@ -863,6 +1089,9 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
863
1089
|
const queryParameters = {};
|
|
864
1090
|
const headerParameters = {};
|
|
865
1091
|
headerParameters['Content-Type'] = 'application/json';
|
|
1092
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
1093
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
1094
|
+
}
|
|
866
1095
|
if (this.configuration && this.configuration.apiKey) {
|
|
867
1096
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
868
1097
|
}
|
|
@@ -891,23 +1120,24 @@ class ConversationsApi extends runtime.BaseAPI {
|
|
|
891
1120
|
});
|
|
892
1121
|
}
|
|
893
1122
|
/**
|
|
894
|
-
* ### 使用场景 保存用户编辑的会话标题。 ### Use case Save a user-edited conversation title. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用
|
|
1123
|
+
* ### 使用场景 保存用户编辑的会话标题。 ### Use case Save a user-edited conversation title. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 同步更新标题并返回权威会话元数据。 ### Behavior and side effects Update the title and return authoritative conversation metadata. ### 后续调用 重新读取标题或刷新列表。 ### Next step Read the title again or refresh the list. ### 接口摘要 更新会话标题 / Update conversation title ### Operation summary 更新会话标题 / Update conversation title
|
|
895
1124
|
* 更新会话标题 / Update conversation title
|
|
896
1125
|
*/
|
|
897
1126
|
updateConversationTitleRaw(requestParameters, initOverrides) {
|
|
898
1127
|
return __awaiter(this, void 0, void 0, function* () {
|
|
899
1128
|
const requestOptions = yield this.updateConversationTitleRequestOpts(requestParameters);
|
|
900
1129
|
const response = yield this.request(requestOptions, initOverrides);
|
|
901
|
-
return new runtime.
|
|
1130
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ConversationMetadata_1.ConversationMetadataFromJSON)(jsonValue));
|
|
902
1131
|
});
|
|
903
1132
|
}
|
|
904
1133
|
/**
|
|
905
|
-
* ### 使用场景 保存用户编辑的会话标题。 ### Use case Save a user-edited conversation title. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用
|
|
1134
|
+
* ### 使用场景 保存用户编辑的会话标题。 ### Use case Save a user-edited conversation title. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 同步更新标题并返回权威会话元数据。 ### Behavior and side effects Update the title and return authoritative conversation metadata. ### 后续调用 重新读取标题或刷新列表。 ### Next step Read the title again or refresh the list. ### 接口摘要 更新会话标题 / Update conversation title ### Operation summary 更新会话标题 / Update conversation title
|
|
906
1135
|
* 更新会话标题 / Update conversation title
|
|
907
1136
|
*/
|
|
908
1137
|
updateConversationTitle(requestParameters, initOverrides) {
|
|
909
1138
|
return __awaiter(this, void 0, void 0, function* () {
|
|
910
|
-
yield this.updateConversationTitleRaw(requestParameters, initOverrides);
|
|
1139
|
+
const response = yield this.updateConversationTitleRaw(requestParameters, initOverrides);
|
|
1140
|
+
return yield response.value();
|
|
911
1141
|
});
|
|
912
1142
|
}
|
|
913
1143
|
}
|
|
@@ -915,15 +1145,16 @@ exports.ConversationsApi = ConversationsApi;
|
|
|
915
1145
|
/**
|
|
916
1146
|
* @export
|
|
917
1147
|
*/
|
|
918
|
-
exports.
|
|
919
|
-
|
|
920
|
-
|
|
1148
|
+
exports.ListConversationsStatusEnum = {
|
|
1149
|
+
Active: 'ACTIVE',
|
|
1150
|
+
Archived: 'ARCHIVED',
|
|
1151
|
+
All: 'ALL',
|
|
921
1152
|
};
|
|
922
1153
|
/**
|
|
923
1154
|
* @export
|
|
924
1155
|
*/
|
|
925
|
-
exports.
|
|
926
|
-
|
|
927
|
-
|
|
928
|
-
|
|
1156
|
+
exports.ListConversationsGroupFilterEnum = {
|
|
1157
|
+
All: 'ALL',
|
|
1158
|
+
Ungrouped: 'UNGROUPED',
|
|
1159
|
+
Group: 'GROUP',
|
|
929
1160
|
};
|