@lingya-ai/agents-sdk 0.4.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 +193 -15
- package/dist/apis/ChatApi.js +455 -22
- package/dist/apis/ConfigurationApi.d.ts +29 -7
- package/dist/apis/ConfigurationApi.js +73 -8
- package/dist/apis/ConversationsApi.d.ts +170 -88
- package/dist/apis/ConversationsApi.js +359 -113
- package/dist/apis/EventsApi.d.ts +9 -7
- package/dist/apis/EventsApi.js +18 -9
- package/dist/apis/FilesApi.d.ts +21 -15
- package/dist/apis/FilesApi.js +48 -23
- package/dist/apis/InteractionsApi.d.ts +43 -11
- package/dist/apis/InteractionsApi.js +100 -16
- package/dist/apis/KnowledgeApi.d.ts +9 -7
- package/dist/apis/KnowledgeApi.js +18 -9
- package/dist/apis/MessagesApi.d.ts +271 -13
- package/dist/apis/MessagesApi.js +550 -18
- package/dist/apis/SQLApi.d.ts +10 -9
- package/dist/apis/SQLApi.js +21 -10
- package/dist/apis/WorkspaceApi.d.ts +8 -7
- package/dist/apis/WorkspaceApi.js +16 -8
- package/dist/bound.d.ts +302 -57
- package/dist/bound.js +293 -122
- 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 +193 -15
- package/dist/esm/apis/ChatApi.js +455 -22
- package/dist/esm/apis/ConfigurationApi.d.ts +29 -7
- package/dist/esm/apis/ConfigurationApi.js +73 -8
- package/dist/esm/apis/ConversationsApi.d.ts +170 -88
- package/dist/esm/apis/ConversationsApi.js +358 -112
- package/dist/esm/apis/EventsApi.d.ts +9 -7
- package/dist/esm/apis/EventsApi.js +18 -9
- package/dist/esm/apis/FilesApi.d.ts +21 -15
- package/dist/esm/apis/FilesApi.js +48 -23
- package/dist/esm/apis/InteractionsApi.d.ts +43 -11
- package/dist/esm/apis/InteractionsApi.js +100 -16
- package/dist/esm/apis/KnowledgeApi.d.ts +9 -7
- package/dist/esm/apis/KnowledgeApi.js +18 -9
- package/dist/esm/apis/MessagesApi.d.ts +271 -13
- package/dist/esm/apis/MessagesApi.js +549 -17
- package/dist/esm/apis/SQLApi.d.ts +10 -9
- package/dist/esm/apis/SQLApi.js +21 -10
- package/dist/esm/apis/WorkspaceApi.d.ts +8 -7
- package/dist/esm/apis/WorkspaceApi.js +16 -8
- package/dist/esm/bound.d.ts +302 -57
- package/dist/esm/bound.js +293 -122
- 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 +48 -0
- package/dist/esm/models/AgentAsyncTaskSync.js +61 -0
- 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 +106 -0
- package/dist/esm/models/SubagentTask.js +104 -0
- package/dist/esm/models/SubagentTaskArtifact.d.ts +69 -0
- package/dist/esm/models/SubagentTaskArtifact.js +75 -0
- package/dist/esm/models/SubagentTaskPage.d.ts +36 -0
- package/dist/esm/models/SubagentTaskPage.js +49 -0
- package/dist/esm/models/SubagentTaskResult.d.ts +53 -0
- package/dist/esm/models/SubagentTaskResult.js +64 -0
- package/dist/esm/models/SubagentTaskSync.d.ts +47 -0
- package/dist/esm/models/SubagentTaskSync.js +60 -0
- 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 +4 -4
- package/dist/esm/models/WorkspaceNonFileArtifact.js +5 -3
- package/dist/esm/models/index.d.ts +148 -3519
- package/dist/esm/models/index.js +150 -307
- 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 +48 -0
- package/dist/models/AgentAsyncTaskSync.js +68 -0
- 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 +106 -0
- package/dist/models/SubagentTask.js +111 -0
- package/dist/models/SubagentTaskArtifact.d.ts +69 -0
- package/dist/models/SubagentTaskArtifact.js +83 -0
- package/dist/models/SubagentTaskPage.d.ts +36 -0
- package/dist/models/SubagentTaskPage.js +56 -0
- package/dist/models/SubagentTaskResult.d.ts +53 -0
- package/dist/models/SubagentTaskResult.js +71 -0
- package/dist/models/SubagentTaskSync.d.ts +47 -0
- package/dist/models/SubagentTaskSync.js +67 -0
- 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 +4 -4
- package/dist/models/WorkspaceNonFileArtifact.js +5 -3
- package/dist/models/index.d.ts +148 -3519
- package/dist/models/index.js +164 -308
- 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/apis/ChatApi.js
CHANGED
|
@@ -3,9 +3,9 @@
|
|
|
3
3
|
/* eslint-disable */
|
|
4
4
|
/**
|
|
5
5
|
* Lingya Agents OpenAPI
|
|
6
|
-
* Public
|
|
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).
|
|
@@ -24,10 +24,89 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
24
24
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
25
|
exports.ChatApi = void 0;
|
|
26
26
|
const runtime = require("../runtime");
|
|
27
|
+
const AgentGoal_1 = require("../models/AgentGoal");
|
|
28
|
+
const AgentGoalHistory_1 = require("../models/AgentGoalHistory");
|
|
29
|
+
const AgentGoalRefInput_1 = require("../models/AgentGoalRefInput");
|
|
30
|
+
const AgentGoalView_1 = require("../models/AgentGoalView");
|
|
31
|
+
const AiChatBriefEvent_1 = require("../models/AiChatBriefEvent");
|
|
32
|
+
const AiChatInput_1 = require("../models/AiChatInput");
|
|
33
|
+
const AiChatStreamInput_1 = require("../models/AiChatStreamInput");
|
|
34
|
+
const AiChatSubmission_1 = require("../models/AiChatSubmission");
|
|
35
|
+
const ChatStreamProbeEvent_1 = require("../models/ChatStreamProbeEvent");
|
|
36
|
+
const ChatStreamProbeInput_1 = require("../models/ChatStreamProbeInput");
|
|
37
|
+
const EditAgentGoalInput_1 = require("../models/EditAgentGoalInput");
|
|
27
38
|
/**
|
|
28
39
|
*
|
|
29
40
|
*/
|
|
30
41
|
class ChatApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for clearGoal without sending the request
|
|
44
|
+
*/
|
|
45
|
+
clearGoalRequestOpts(requestParameters) {
|
|
46
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
47
|
+
if (requestParameters['channelId'] == null) {
|
|
48
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling clearGoal().');
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['conversationId'] == null) {
|
|
51
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling clearGoal().');
|
|
52
|
+
}
|
|
53
|
+
if (requestParameters['agentGoalRefInput'] == null) {
|
|
54
|
+
throw new runtime.RequiredError('agentGoalRefInput', 'Required parameter "agentGoalRefInput" was null or undefined when calling clearGoal().');
|
|
55
|
+
}
|
|
56
|
+
const queryParameters = {};
|
|
57
|
+
const headerParameters = {};
|
|
58
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
59
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
60
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
61
|
+
}
|
|
62
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
63
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
64
|
+
}
|
|
65
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
66
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
67
|
+
}
|
|
68
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
69
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
70
|
+
}
|
|
71
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
72
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
73
|
+
}
|
|
74
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
75
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
76
|
+
}
|
|
77
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal/clear`;
|
|
78
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
79
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
80
|
+
return {
|
|
81
|
+
path: urlPath,
|
|
82
|
+
method: 'POST',
|
|
83
|
+
headers: headerParameters,
|
|
84
|
+
query: queryParameters,
|
|
85
|
+
body: (0, AgentGoalRefInput_1.AgentGoalRefInputToJSON)(requestParameters['agentGoalRefInput']),
|
|
86
|
+
};
|
|
87
|
+
});
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* ### 使用场景 携带目标标识与版本,清除目标并保留墓碑。 ### Use case Clear the identified goal at the expected revision and preserve its tombstone. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,清除目标并保留墓碑。 ### Behavior and side effects Clear the identified goal at the expected revision and preserve its tombstone. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 清除目标 / Clear goal ### Operation summary 清除目标 / Clear goal
|
|
91
|
+
* 清除目标 / Clear goal
|
|
92
|
+
*/
|
|
93
|
+
clearGoalRaw(requestParameters, initOverrides) {
|
|
94
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
95
|
+
const requestOptions = yield this.clearGoalRequestOpts(requestParameters);
|
|
96
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
97
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoal_1.AgentGoalFromJSON)(jsonValue));
|
|
98
|
+
});
|
|
99
|
+
}
|
|
100
|
+
/**
|
|
101
|
+
* ### 使用场景 携带目标标识与版本,清除目标并保留墓碑。 ### Use case Clear the identified goal at the expected revision and preserve its tombstone. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,清除目标并保留墓碑。 ### Behavior and side effects Clear the identified goal at the expected revision and preserve its tombstone. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 清除目标 / Clear goal ### Operation summary 清除目标 / Clear goal
|
|
102
|
+
* 清除目标 / Clear goal
|
|
103
|
+
*/
|
|
104
|
+
clearGoal(requestParameters, initOverrides) {
|
|
105
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
106
|
+
const response = yield this.clearGoalRaw(requestParameters, initOverrides);
|
|
107
|
+
return yield response.value();
|
|
108
|
+
});
|
|
109
|
+
}
|
|
31
110
|
/**
|
|
32
111
|
* Creates request options for compactConversation without sending the request
|
|
33
112
|
*/
|
|
@@ -44,6 +123,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
44
123
|
queryParameters['force'] = requestParameters['force'];
|
|
45
124
|
}
|
|
46
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
|
+
}
|
|
47
129
|
if (this.configuration && this.configuration.apiKey) {
|
|
48
130
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
49
131
|
}
|
|
@@ -71,7 +153,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
71
153
|
});
|
|
72
154
|
}
|
|
73
155
|
/**
|
|
74
|
-
*
|
|
156
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
75
157
|
* 压缩会话上下文 / Compact conversation context
|
|
76
158
|
*/
|
|
77
159
|
compactConversationRaw(requestParameters, initOverrides) {
|
|
@@ -82,7 +164,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
82
164
|
});
|
|
83
165
|
}
|
|
84
166
|
/**
|
|
85
|
-
*
|
|
167
|
+
* ### 使用场景 上下文接近模型上限或用户要求时触发压缩。 ### Use case Trigger context compaction near the model limit or on explicit user request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 异步安排上下文压缩。 ### Behavior and side effects Schedules asynchronous context compaction. ### 后续调用 轮询上下文占用或等待相关事件。 ### Next step Poll context usage or wait for related events. ### 接口摘要 压缩会话上下文 / Compact conversation context ### Operation summary 压缩会话上下文 / Compact conversation context
|
|
86
168
|
* 压缩会话上下文 / Compact conversation context
|
|
87
169
|
*/
|
|
88
170
|
compactConversation(requestParameters, initOverrides) {
|
|
@@ -107,6 +189,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
107
189
|
const queryParameters = {};
|
|
108
190
|
const headerParameters = {};
|
|
109
191
|
headerParameters['Content-Type'] = 'application/json';
|
|
192
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
193
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
194
|
+
}
|
|
110
195
|
if (this.configuration && this.configuration.apiKey) {
|
|
111
196
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
112
197
|
}
|
|
@@ -130,23 +215,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
130
215
|
method: 'POST',
|
|
131
216
|
headers: headerParameters,
|
|
132
217
|
query: queryParameters,
|
|
133
|
-
body: requestParameters['aiChatInput'],
|
|
218
|
+
body: (0, AiChatInput_1.AiChatInputToJSON)(requestParameters['aiChatInput']),
|
|
134
219
|
};
|
|
135
220
|
});
|
|
136
221
|
}
|
|
137
222
|
/**
|
|
138
|
-
*
|
|
223
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
139
224
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
140
225
|
*/
|
|
141
226
|
continueChatRaw(requestParameters, initOverrides) {
|
|
142
227
|
return __awaiter(this, void 0, void 0, function* () {
|
|
143
228
|
const requestOptions = yield this.continueChatRequestOpts(requestParameters);
|
|
144
229
|
const response = yield this.request(requestOptions, initOverrides);
|
|
145
|
-
return new runtime.JSONApiResponse(response);
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatSubmission_1.AiChatSubmissionFromJSON)(jsonValue));
|
|
146
231
|
});
|
|
147
232
|
}
|
|
148
233
|
/**
|
|
149
|
-
*
|
|
234
|
+
* ### 使用场景 在已有会话中提交下一轮用户消息。 ### Use case Submit the next user turn to an existing conversation. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 创建新消息并安排继续执行。 ### Behavior and side effects Creates a new message and schedules continued execution. ### 后续调用 订阅该 messageId 的 SSE 或稍后补取事件。 ### Next step Subscribe to SSE for the messageId or recover its events later. ### 接口摘要 向已有会话提交消息 / Submit a message to an existing conversation ### Operation summary 向已有会话提交消息 / Submit a message to an existing conversation
|
|
150
235
|
* 向已有会话提交消息 / Submit a message to an existing conversation
|
|
151
236
|
*/
|
|
152
237
|
continueChat(requestParameters, initOverrides) {
|
|
@@ -169,6 +254,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
169
254
|
const queryParameters = {};
|
|
170
255
|
const headerParameters = {};
|
|
171
256
|
headerParameters['Content-Type'] = 'application/json';
|
|
257
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
258
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
259
|
+
}
|
|
172
260
|
if (this.configuration && this.configuration.apiKey) {
|
|
173
261
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
174
262
|
}
|
|
@@ -191,23 +279,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
191
279
|
method: 'POST',
|
|
192
280
|
headers: headerParameters,
|
|
193
281
|
query: queryParameters,
|
|
194
|
-
body: requestParameters['aiChatInput'],
|
|
282
|
+
body: (0, AiChatInput_1.AiChatInputToJSON)(requestParameters['aiChatInput']),
|
|
195
283
|
};
|
|
196
284
|
});
|
|
197
285
|
}
|
|
198
286
|
/**
|
|
199
|
-
*
|
|
287
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
200
288
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
201
289
|
*/
|
|
202
290
|
createChatRaw(requestParameters, initOverrides) {
|
|
203
291
|
return __awaiter(this, void 0, void 0, function* () {
|
|
204
292
|
const requestOptions = yield this.createChatRequestOpts(requestParameters);
|
|
205
293
|
const response = yield this.request(requestOptions, initOverrides);
|
|
206
|
-
return new runtime.JSONApiResponse(response);
|
|
294
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatSubmission_1.AiChatSubmissionFromJSON)(jsonValue));
|
|
207
295
|
});
|
|
208
296
|
}
|
|
209
297
|
/**
|
|
210
|
-
*
|
|
298
|
+
* ### 使用场景 创建新会话并提交第一条用户消息。 ### Use case Create a conversation and submit its first user message. ### 前置条件 已读取配置;引用的文件已经确认上传。 ### Prerequisites Configuration has been read and referenced files are confirmed uploads. ### 行为与副作用 创建会话和消息,并安排 Agent 执行。 ### Behavior and side effects Creates a conversation and message and schedules Agent execution. ### 后续调用 使用返回的 conversationId 和 messageId 订阅 SSE。 ### Next step Use the returned conversationId and messageId to subscribe to SSE. ### 接口摘要 创建会话并提交消息 / Create a conversation and submit a message ### Operation summary 创建会话并提交消息 / Create a conversation and submit a message
|
|
211
299
|
* 创建会话并提交消息 / Create a conversation and submit a message
|
|
212
300
|
*/
|
|
213
301
|
createChat(requestParameters, initOverrides) {
|
|
@@ -216,6 +304,206 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
216
304
|
return yield response.value();
|
|
217
305
|
});
|
|
218
306
|
}
|
|
307
|
+
/**
|
|
308
|
+
* Creates request options for editGoal without sending the request
|
|
309
|
+
*/
|
|
310
|
+
editGoalRequestOpts(requestParameters) {
|
|
311
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
312
|
+
if (requestParameters['channelId'] == null) {
|
|
313
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling editGoal().');
|
|
314
|
+
}
|
|
315
|
+
if (requestParameters['conversationId'] == null) {
|
|
316
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling editGoal().');
|
|
317
|
+
}
|
|
318
|
+
if (requestParameters['editAgentGoalInput'] == null) {
|
|
319
|
+
throw new runtime.RequiredError('editAgentGoalInput', 'Required parameter "editAgentGoalInput" was null or undefined when calling editGoal().');
|
|
320
|
+
}
|
|
321
|
+
const queryParameters = {};
|
|
322
|
+
const headerParameters = {};
|
|
323
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
324
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
325
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
326
|
+
}
|
|
327
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
328
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
329
|
+
}
|
|
330
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
331
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
332
|
+
}
|
|
333
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
334
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
335
|
+
}
|
|
336
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
337
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
338
|
+
}
|
|
339
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
340
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
341
|
+
}
|
|
342
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal`;
|
|
343
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
344
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
345
|
+
return {
|
|
346
|
+
path: urlPath,
|
|
347
|
+
method: 'PATCH',
|
|
348
|
+
headers: headerParameters,
|
|
349
|
+
query: queryParameters,
|
|
350
|
+
body: (0, EditAgentGoalInput_1.EditAgentGoalInputToJSON)(requestParameters['editAgentGoalInput']),
|
|
351
|
+
};
|
|
352
|
+
});
|
|
353
|
+
}
|
|
354
|
+
/**
|
|
355
|
+
* ### 使用场景 携带 goalId 和 goalRevision 更新目标正文,不改变激活状态;陈旧版本返回 409,失效目标返回 410。 ### Use case Update the objective with goalId and goalRevision without changing activation; stale revisions return 409 and invalidated goals return 410. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带 goalId 和 goalRevision 更新目标正文,不改变激活状态;陈旧版本返回 409,失效目标返回 410。 ### Behavior and side effects Update the objective with goalId and goalRevision without changing activation; stale revisions return 409 and invalidated goals return 410. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 编辑目标 / Edit goal ### Operation summary 编辑目标 / Edit goal
|
|
356
|
+
* 编辑目标 / Edit goal
|
|
357
|
+
*/
|
|
358
|
+
editGoalRaw(requestParameters, initOverrides) {
|
|
359
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
360
|
+
const requestOptions = yield this.editGoalRequestOpts(requestParameters);
|
|
361
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
362
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoal_1.AgentGoalFromJSON)(jsonValue));
|
|
363
|
+
});
|
|
364
|
+
}
|
|
365
|
+
/**
|
|
366
|
+
* ### 使用场景 携带 goalId 和 goalRevision 更新目标正文,不改变激活状态;陈旧版本返回 409,失效目标返回 410。 ### Use case Update the objective with goalId and goalRevision without changing activation; stale revisions return 409 and invalidated goals return 410. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带 goalId 和 goalRevision 更新目标正文,不改变激活状态;陈旧版本返回 409,失效目标返回 410。 ### Behavior and side effects Update the objective with goalId and goalRevision without changing activation; stale revisions return 409 and invalidated goals return 410. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 编辑目标 / Edit goal ### Operation summary 编辑目标 / Edit goal
|
|
367
|
+
* 编辑目标 / Edit goal
|
|
368
|
+
*/
|
|
369
|
+
editGoal(requestParameters, initOverrides) {
|
|
370
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
371
|
+
const response = yield this.editGoalRaw(requestParameters, initOverrides);
|
|
372
|
+
return yield response.value();
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
/**
|
|
376
|
+
* Creates request options for getGoal without sending the request
|
|
377
|
+
*/
|
|
378
|
+
getGoalRequestOpts(requestParameters) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
if (requestParameters['channelId'] == null) {
|
|
381
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getGoal().');
|
|
382
|
+
}
|
|
383
|
+
if (requestParameters['conversationId'] == null) {
|
|
384
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getGoal().');
|
|
385
|
+
}
|
|
386
|
+
const queryParameters = {};
|
|
387
|
+
const headerParameters = {};
|
|
388
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
389
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
390
|
+
}
|
|
391
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
392
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
393
|
+
}
|
|
394
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
395
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
396
|
+
}
|
|
397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
398
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
399
|
+
}
|
|
400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
401
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
402
|
+
}
|
|
403
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
404
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
405
|
+
}
|
|
406
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal`;
|
|
407
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
408
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
409
|
+
return {
|
|
410
|
+
path: urlPath,
|
|
411
|
+
method: 'GET',
|
|
412
|
+
headers: headerParameters,
|
|
413
|
+
query: queryParameters,
|
|
414
|
+
};
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
/**
|
|
418
|
+
* ### 使用场景 无当前目标时返回 goal=null。 ### Use case Return goal=null when no current goal exists. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 无当前目标时返回 goal=null。 ### Behavior and side effects Return goal=null when no current goal exists. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 读取当前目标 / Get current goal ### Operation summary 读取当前目标 / Get current goal
|
|
419
|
+
* 读取当前目标 / Get current goal
|
|
420
|
+
*/
|
|
421
|
+
getGoalRaw(requestParameters, initOverrides) {
|
|
422
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
423
|
+
const requestOptions = yield this.getGoalRequestOpts(requestParameters);
|
|
424
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
425
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoalView_1.AgentGoalViewFromJSON)(jsonValue));
|
|
426
|
+
});
|
|
427
|
+
}
|
|
428
|
+
/**
|
|
429
|
+
* ### 使用场景 无当前目标时返回 goal=null。 ### Use case Return goal=null when no current goal exists. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 无当前目标时返回 goal=null。 ### Behavior and side effects Return goal=null when no current goal exists. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 读取当前目标 / Get current goal ### Operation summary 读取当前目标 / Get current goal
|
|
430
|
+
* 读取当前目标 / Get current goal
|
|
431
|
+
*/
|
|
432
|
+
getGoal(requestParameters, initOverrides) {
|
|
433
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
434
|
+
const response = yield this.getGoalRaw(requestParameters, initOverrides);
|
|
435
|
+
return yield response.value();
|
|
436
|
+
});
|
|
437
|
+
}
|
|
438
|
+
/**
|
|
439
|
+
* Creates request options for getGoalHistory without sending the request
|
|
440
|
+
*/
|
|
441
|
+
getGoalHistoryRequestOpts(requestParameters) {
|
|
442
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
443
|
+
if (requestParameters['channelId'] == null) {
|
|
444
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getGoalHistory().');
|
|
445
|
+
}
|
|
446
|
+
if (requestParameters['conversationId'] == null) {
|
|
447
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getGoalHistory().');
|
|
448
|
+
}
|
|
449
|
+
const queryParameters = {};
|
|
450
|
+
if (requestParameters['page'] != null) {
|
|
451
|
+
queryParameters['page'] = requestParameters['page'];
|
|
452
|
+
}
|
|
453
|
+
if (requestParameters['size'] != null) {
|
|
454
|
+
queryParameters['size'] = requestParameters['size'];
|
|
455
|
+
}
|
|
456
|
+
const headerParameters = {};
|
|
457
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
458
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
459
|
+
}
|
|
460
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
461
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
462
|
+
}
|
|
463
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
464
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
465
|
+
}
|
|
466
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
467
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
468
|
+
}
|
|
469
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
470
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
471
|
+
}
|
|
472
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
473
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
474
|
+
}
|
|
475
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal/history`;
|
|
476
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
477
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
478
|
+
return {
|
|
479
|
+
path: urlPath,
|
|
480
|
+
method: 'GET',
|
|
481
|
+
headers: headerParameters,
|
|
482
|
+
query: queryParameters,
|
|
483
|
+
};
|
|
484
|
+
});
|
|
485
|
+
}
|
|
486
|
+
/**
|
|
487
|
+
* ### 使用场景 分页读取当前会话的目标历史。 ### Use case Read paged goal history for the conversation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 分页读取当前会话的目标历史。 ### Behavior and side effects Read paged goal history for the conversation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 查询目标历史 / Get goal history ### Operation summary 查询目标历史 / Get goal history
|
|
488
|
+
* 查询目标历史 / Get goal history
|
|
489
|
+
*/
|
|
490
|
+
getGoalHistoryRaw(requestParameters, initOverrides) {
|
|
491
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
492
|
+
const requestOptions = yield this.getGoalHistoryRequestOpts(requestParameters);
|
|
493
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
494
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoalHistory_1.AgentGoalHistoryFromJSON)(jsonValue));
|
|
495
|
+
});
|
|
496
|
+
}
|
|
497
|
+
/**
|
|
498
|
+
* ### 使用场景 分页读取当前会话的目标历史。 ### Use case Read paged goal history for the conversation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 分页读取当前会话的目标历史。 ### Behavior and side effects Read paged goal history for the conversation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 查询目标历史 / Get goal history ### Operation summary 查询目标历史 / Get goal history
|
|
499
|
+
* 查询目标历史 / Get goal history
|
|
500
|
+
*/
|
|
501
|
+
getGoalHistory(requestParameters, initOverrides) {
|
|
502
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
503
|
+
const response = yield this.getGoalHistoryRaw(requestParameters, initOverrides);
|
|
504
|
+
return yield response.value();
|
|
505
|
+
});
|
|
506
|
+
}
|
|
219
507
|
/**
|
|
220
508
|
* Creates request options for interruptConversation without sending the request
|
|
221
509
|
*/
|
|
@@ -229,6 +517,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
229
517
|
}
|
|
230
518
|
const queryParameters = {};
|
|
231
519
|
const headerParameters = {};
|
|
520
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
521
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
522
|
+
}
|
|
232
523
|
if (this.configuration && this.configuration.apiKey) {
|
|
233
524
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
234
525
|
}
|
|
@@ -256,7 +547,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
256
547
|
});
|
|
257
548
|
}
|
|
258
549
|
/**
|
|
259
|
-
*
|
|
550
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
260
551
|
* 中断会话执行 / Interrupt conversation execution
|
|
261
552
|
*/
|
|
262
553
|
interruptConversationRaw(requestParameters, initOverrides) {
|
|
@@ -267,7 +558,7 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
267
558
|
});
|
|
268
559
|
}
|
|
269
560
|
/**
|
|
270
|
-
*
|
|
561
|
+
* ### 使用场景 用户主动停止正在执行的会话。 ### Use case Stop an actively executing conversation at the user\'s request. ### 前置条件 渠道凭证和外部用户已配置,目标资源属于当前用户。 ### Prerequisites Channel credentials and the external user are configured, and the target resource belongs to that user. ### 行为与副作用 请求终止当前执行;已完成输出不会回滚。 ### Behavior and side effects Requests termination of active execution; completed output is not rolled back. ### 后续调用 查询活动状态或消息详情确认终态。 ### Next step Query activity or message detail to confirm the terminal state. ### 接口摘要 中断会话执行 / Interrupt conversation execution ### Operation summary 中断会话执行 / Interrupt conversation execution
|
|
271
562
|
* 中断会话执行 / Interrupt conversation execution
|
|
272
563
|
*/
|
|
273
564
|
interruptConversation(requestParameters, initOverrides) {
|
|
@@ -275,6 +566,74 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
275
566
|
yield this.interruptConversationRaw(requestParameters, initOverrides);
|
|
276
567
|
});
|
|
277
568
|
}
|
|
569
|
+
/**
|
|
570
|
+
* Creates request options for pauseGoal without sending the request
|
|
571
|
+
*/
|
|
572
|
+
pauseGoalRequestOpts(requestParameters) {
|
|
573
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
574
|
+
if (requestParameters['channelId'] == null) {
|
|
575
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling pauseGoal().');
|
|
576
|
+
}
|
|
577
|
+
if (requestParameters['conversationId'] == null) {
|
|
578
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling pauseGoal().');
|
|
579
|
+
}
|
|
580
|
+
if (requestParameters['agentGoalRefInput'] == null) {
|
|
581
|
+
throw new runtime.RequiredError('agentGoalRefInput', 'Required parameter "agentGoalRefInput" was null or undefined when calling pauseGoal().');
|
|
582
|
+
}
|
|
583
|
+
const queryParameters = {};
|
|
584
|
+
const headerParameters = {};
|
|
585
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
586
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
587
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
588
|
+
}
|
|
589
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
590
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
591
|
+
}
|
|
592
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
593
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
594
|
+
}
|
|
595
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
596
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
597
|
+
}
|
|
598
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
599
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
600
|
+
}
|
|
601
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
602
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
603
|
+
}
|
|
604
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal/pause`;
|
|
605
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
606
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
607
|
+
return {
|
|
608
|
+
path: urlPath,
|
|
609
|
+
method: 'POST',
|
|
610
|
+
headers: headerParameters,
|
|
611
|
+
query: queryParameters,
|
|
612
|
+
body: (0, AgentGoalRefInput_1.AgentGoalRefInputToJSON)(requestParameters['agentGoalRefInput']),
|
|
613
|
+
};
|
|
614
|
+
});
|
|
615
|
+
}
|
|
616
|
+
/**
|
|
617
|
+
* ### 使用场景 携带目标标识与版本,暂停并撤销自动续跑授权。 ### Use case Pause the identified goal at the expected revision and revoke automatic continuation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,暂停并撤销自动续跑授权。 ### Behavior and side effects Pause the identified goal at the expected revision and revoke automatic continuation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 暂停目标 / Pause goal ### Operation summary 暂停目标 / Pause goal
|
|
618
|
+
* 暂停目标 / Pause goal
|
|
619
|
+
*/
|
|
620
|
+
pauseGoalRaw(requestParameters, initOverrides) {
|
|
621
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
622
|
+
const requestOptions = yield this.pauseGoalRequestOpts(requestParameters);
|
|
623
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
624
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoal_1.AgentGoalFromJSON)(jsonValue));
|
|
625
|
+
});
|
|
626
|
+
}
|
|
627
|
+
/**
|
|
628
|
+
* ### 使用场景 携带目标标识与版本,暂停并撤销自动续跑授权。 ### Use case Pause the identified goal at the expected revision and revoke automatic continuation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,暂停并撤销自动续跑授权。 ### Behavior and side effects Pause the identified goal at the expected revision and revoke automatic continuation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 暂停目标 / Pause goal ### Operation summary 暂停目标 / Pause goal
|
|
629
|
+
* 暂停目标 / Pause goal
|
|
630
|
+
*/
|
|
631
|
+
pauseGoal(requestParameters, initOverrides) {
|
|
632
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
633
|
+
const response = yield this.pauseGoalRaw(requestParameters, initOverrides);
|
|
634
|
+
return yield response.value();
|
|
635
|
+
});
|
|
636
|
+
}
|
|
278
637
|
/**
|
|
279
638
|
* Creates request options for probeEventStream without sending the request
|
|
280
639
|
*/
|
|
@@ -292,6 +651,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
292
651
|
if (requestParameters['xRequestID'] != null) {
|
|
293
652
|
headerParameters['X-Request-ID'] = String(requestParameters['xRequestID']);
|
|
294
653
|
}
|
|
654
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
655
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
656
|
+
}
|
|
295
657
|
if (this.configuration && this.configuration.apiKey) {
|
|
296
658
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
297
659
|
}
|
|
@@ -314,23 +676,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
314
676
|
method: 'POST',
|
|
315
677
|
headers: headerParameters,
|
|
316
678
|
query: queryParameters,
|
|
317
|
-
body: requestParameters['chatStreamProbeInput'],
|
|
679
|
+
body: (0, ChatStreamProbeInput_1.ChatStreamProbeInputToJSON)(requestParameters['chatStreamProbeInput']),
|
|
318
680
|
};
|
|
319
681
|
});
|
|
320
682
|
}
|
|
321
683
|
/**
|
|
322
|
-
*
|
|
684
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
323
685
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
324
686
|
*/
|
|
325
687
|
probeEventStreamRaw(requestParameters, initOverrides) {
|
|
326
688
|
return __awaiter(this, void 0, void 0, function* () {
|
|
327
689
|
const requestOptions = yield this.probeEventStreamRequestOpts(requestParameters);
|
|
328
690
|
const response = yield this.request(requestOptions, initOverrides);
|
|
329
|
-
return new runtime.JSONApiResponse(response);
|
|
691
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, ChatStreamProbeEvent_1.ChatStreamProbeEventFromJSON)(jsonValue));
|
|
330
692
|
});
|
|
331
693
|
}
|
|
332
694
|
/**
|
|
333
|
-
*
|
|
695
|
+
* ### 使用场景 在接入或排障时验证网关、代理和客户端对 SSE 的支持。 ### Use case Verify SSE support across the gateway, proxy, and client during integration or diagnosis. ### 前置条件 准备符合格式的 probeId。 ### Prerequisites Prepare a valid probeId. ### 行为与副作用 只产生诊断事件,不创建业务会话。 ### Behavior and side effects Produces diagnostic events without creating a business conversation. ### 后续调用 确认分片、心跳和 EOF 行为后再接入正式流。 ### Next step Confirm chunking, heartbeat, and EOF behavior before using the production stream. ### 接口摘要 探测 SSE 连接 / Probe the SSE connection ### Operation summary 探测 SSE 连接 / Probe the SSE connection
|
|
334
696
|
* 探测 SSE 连接 / Probe the SSE connection
|
|
335
697
|
*/
|
|
336
698
|
probeEventStream(requestParameters, initOverrides) {
|
|
@@ -339,6 +701,74 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
339
701
|
return yield response.value();
|
|
340
702
|
});
|
|
341
703
|
}
|
|
704
|
+
/**
|
|
705
|
+
* Creates request options for resumeGoal without sending the request
|
|
706
|
+
*/
|
|
707
|
+
resumeGoalRequestOpts(requestParameters) {
|
|
708
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
709
|
+
if (requestParameters['channelId'] == null) {
|
|
710
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling resumeGoal().');
|
|
711
|
+
}
|
|
712
|
+
if (requestParameters['conversationId'] == null) {
|
|
713
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling resumeGoal().');
|
|
714
|
+
}
|
|
715
|
+
if (requestParameters['agentGoalRefInput'] == null) {
|
|
716
|
+
throw new runtime.RequiredError('agentGoalRefInput', 'Required parameter "agentGoalRefInput" was null or undefined when calling resumeGoal().');
|
|
717
|
+
}
|
|
718
|
+
const queryParameters = {};
|
|
719
|
+
const headerParameters = {};
|
|
720
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
721
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
722
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
723
|
+
}
|
|
724
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
725
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
726
|
+
}
|
|
727
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
728
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
729
|
+
}
|
|
730
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
731
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
732
|
+
}
|
|
733
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
734
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
735
|
+
}
|
|
736
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
737
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
738
|
+
}
|
|
739
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/goal/resume`;
|
|
740
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
741
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
742
|
+
return {
|
|
743
|
+
path: urlPath,
|
|
744
|
+
method: 'POST',
|
|
745
|
+
headers: headerParameters,
|
|
746
|
+
query: queryParameters,
|
|
747
|
+
body: (0, AgentGoalRefInput_1.AgentGoalRefInputToJSON)(requestParameters['agentGoalRefInput']),
|
|
748
|
+
};
|
|
749
|
+
});
|
|
750
|
+
}
|
|
751
|
+
/**
|
|
752
|
+
* ### 使用场景 携带目标标识与版本,恢复目标并重新授予自动续跑授权。 ### Use case Resume the identified goal at the expected revision and authorize automatic continuation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,恢复目标并重新授予自动续跑授权。 ### Behavior and side effects Resume the identified goal at the expected revision and authorize automatic continuation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 恢复目标 / Resume goal ### Operation summary 恢复目标 / Resume goal
|
|
753
|
+
* 恢复目标 / Resume goal
|
|
754
|
+
*/
|
|
755
|
+
resumeGoalRaw(requestParameters, initOverrides) {
|
|
756
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
757
|
+
const requestOptions = yield this.resumeGoalRequestOpts(requestParameters);
|
|
758
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
759
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AgentGoal_1.AgentGoalFromJSON)(jsonValue));
|
|
760
|
+
});
|
|
761
|
+
}
|
|
762
|
+
/**
|
|
763
|
+
* ### 使用场景 携带目标标识与版本,恢复目标并重新授予自动续跑授权。 ### Use case Resume the identified goal at the expected revision and authorize automatic continuation. ### 前置条件 有效渠道身份;会话资源必须属于当前用户。 ### Prerequisites Valid channel identity; conversation resources must belong to the current user. ### 行为与副作用 携带目标标识与版本,恢复目标并重新授予自动续跑授权。 ### Behavior and side effects Resume the identified goal at the expected revision and authorize automatic continuation. ### 后续调用 根据返回的权威状态更新客户端。 ### Next step Update the client using the returned authoritative state. ### 接口摘要 恢复目标 / Resume goal ### Operation summary 恢复目标 / Resume goal
|
|
764
|
+
* 恢复目标 / Resume goal
|
|
765
|
+
*/
|
|
766
|
+
resumeGoal(requestParameters, initOverrides) {
|
|
767
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
768
|
+
const response = yield this.resumeGoalRaw(requestParameters, initOverrides);
|
|
769
|
+
return yield response.value();
|
|
770
|
+
});
|
|
771
|
+
}
|
|
342
772
|
/**
|
|
343
773
|
* Creates request options for streamChatEvents without sending the request
|
|
344
774
|
*/
|
|
@@ -359,6 +789,9 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
359
789
|
if (requestParameters['xRequestID'] != null) {
|
|
360
790
|
headerParameters['X-Request-ID'] = String(requestParameters['xRequestID']);
|
|
361
791
|
}
|
|
792
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
793
|
+
headerParameters["X-OpenAPI-Token"] = yield this.configuration.apiKey("X-OpenAPI-Token"); // OpenApiToken authentication
|
|
794
|
+
}
|
|
362
795
|
if (this.configuration && this.configuration.apiKey) {
|
|
363
796
|
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
364
797
|
}
|
|
@@ -382,23 +815,23 @@ class ChatApi extends runtime.BaseAPI {
|
|
|
382
815
|
method: 'POST',
|
|
383
816
|
headers: headerParameters,
|
|
384
817
|
query: queryParameters,
|
|
385
|
-
body: requestParameters['aiChatStreamInput'],
|
|
818
|
+
body: (0, AiChatStreamInput_1.AiChatStreamInputToJSON)(requestParameters['aiChatStreamInput']),
|
|
386
819
|
};
|
|
387
820
|
});
|
|
388
821
|
}
|
|
389
822
|
/**
|
|
390
|
-
*
|
|
823
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
391
824
|
* 订阅消息事件流 / Stream message events
|
|
392
825
|
*/
|
|
393
826
|
streamChatEventsRaw(requestParameters, initOverrides) {
|
|
394
827
|
return __awaiter(this, void 0, void 0, function* () {
|
|
395
828
|
const requestOptions = yield this.streamChatEventsRequestOpts(requestParameters);
|
|
396
829
|
const response = yield this.request(requestOptions, initOverrides);
|
|
397
|
-
return new runtime.JSONApiResponse(response);
|
|
830
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, AiChatBriefEvent_1.AiChatBriefEventFromJSON)(jsonValue));
|
|
398
831
|
});
|
|
399
832
|
}
|
|
400
833
|
/**
|
|
401
|
-
*
|
|
834
|
+
* ### 使用场景 实时接收指定消息的思考、工具、回答和结束事件。 ### Use case Receive thought, tool, answer, and completion events for a message in real time. ### 前置条件 消息已经创建且 messageId 与会话匹配。 ### Prerequisites The message exists and its messageId belongs to the conversation. ### 行为与副作用 保持流式连接;断开不会取消服务端执行。 ### Behavior and side effects Keeps a streaming connection; disconnecting does not cancel server execution. ### 后续调用 正常 EOF 后读取消息详情;异常断开时使用 Events 补取。 ### Next step After normal EOF read message detail; after an unexpected disconnect recover through Events. ### 接口摘要 订阅消息事件流 / Stream message events ### Operation summary 订阅消息事件流 / Stream message events
|
|
402
835
|
* 订阅消息事件流 / Stream message events
|
|
403
836
|
*/
|
|
404
837
|
streamChatEvents(requestParameters, initOverrides) {
|