@lingya-ai/agents-sdk 0.1.2
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/LICENSE +21 -0
- package/README.md +45 -0
- package/dist/apis/ChatApi.d.ts +182 -0
- package/dist/apis/ChatApi.js +411 -0
- package/dist/apis/ConfigurationApi.d.ts +62 -0
- package/dist/apis/ConfigurationApi.js +148 -0
- package/dist/apis/ConversationsApi.d.ts +403 -0
- package/dist/apis/ConversationsApi.js +914 -0
- package/dist/apis/EventsApi.d.ts +70 -0
- package/dist/apis/EventsApi.js +161 -0
- package/dist/apis/FilesApi.d.ts +174 -0
- package/dist/apis/FilesApi.js +409 -0
- package/dist/apis/InteractionsApi.d.ts +122 -0
- package/dist/apis/InteractionsApi.js +286 -0
- package/dist/apis/KnowledgeApi.d.ts +70 -0
- package/dist/apis/KnowledgeApi.js +157 -0
- package/dist/apis/MessagesApi.d.ts +236 -0
- package/dist/apis/MessagesApi.js +413 -0
- package/dist/apis/SQLApi.d.ts +126 -0
- package/dist/apis/SQLApi.js +246 -0
- package/dist/apis/WorkspaceApi.d.ts +115 -0
- package/dist/apis/WorkspaceApi.js +194 -0
- package/dist/apis/index.d.ts +10 -0
- package/dist/apis/index.js +28 -0
- package/dist/client.d.ts +116 -0
- package/dist/client.js +201 -0
- package/dist/esm/apis/ChatApi.d.ts +182 -0
- package/dist/esm/apis/ChatApi.js +407 -0
- package/dist/esm/apis/ConfigurationApi.d.ts +62 -0
- package/dist/esm/apis/ConfigurationApi.js +144 -0
- package/dist/esm/apis/ConversationsApi.d.ts +403 -0
- package/dist/esm/apis/ConversationsApi.js +910 -0
- package/dist/esm/apis/EventsApi.d.ts +70 -0
- package/dist/esm/apis/EventsApi.js +157 -0
- package/dist/esm/apis/FilesApi.d.ts +174 -0
- package/dist/esm/apis/FilesApi.js +405 -0
- package/dist/esm/apis/InteractionsApi.d.ts +122 -0
- package/dist/esm/apis/InteractionsApi.js +282 -0
- package/dist/esm/apis/KnowledgeApi.d.ts +70 -0
- package/dist/esm/apis/KnowledgeApi.js +153 -0
- package/dist/esm/apis/MessagesApi.d.ts +236 -0
- package/dist/esm/apis/MessagesApi.js +409 -0
- package/dist/esm/apis/SQLApi.d.ts +126 -0
- package/dist/esm/apis/SQLApi.js +242 -0
- package/dist/esm/apis/WorkspaceApi.d.ts +115 -0
- package/dist/esm/apis/WorkspaceApi.js +190 -0
- package/dist/esm/apis/index.d.ts +10 -0
- package/dist/esm/apis/index.js +12 -0
- package/dist/esm/client.d.ts +116 -0
- package/dist/esm/client.js +195 -0
- package/dist/esm/events.d.ts +21 -0
- package/dist/esm/events.js +33 -0
- package/dist/esm/hmac.d.ts +25 -0
- package/dist/esm/hmac.js +63 -0
- package/dist/esm/index.d.ts +7 -0
- package/dist/esm/index.js +9 -0
- package/dist/esm/models/AgentFile.d.ts +50 -0
- package/dist/esm/models/AgentFile.js +64 -0
- package/dist/esm/models/AgentsConfig.d.ts +40 -0
- package/dist/esm/models/AgentsConfig.js +53 -0
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.d.ts +74 -0
- package/dist/esm/models/AiChatAwaitingInputBriefEvent.js +87 -0
- package/dist/esm/models/AiChatBriefEvent.d.ts +66 -0
- package/dist/esm/models/AiChatBriefEvent.js +112 -0
- package/dist/esm/models/AiChatBriefEventList.d.ts +31 -0
- package/dist/esm/models/AiChatBriefEventList.js +44 -0
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.d.ts +45 -0
- package/dist/esm/models/AiChatCompactorWarningBriefEvent.js +59 -0
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.d.ts +37 -0
- package/dist/esm/models/AiChatCompressorContextEndBriefEvent.js +51 -0
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.d.ts +37 -0
- package/dist/esm/models/AiChatCompressorContextStartBriefEvent.js +51 -0
- package/dist/esm/models/AiChatEndBriefEvent.d.ts +65 -0
- package/dist/esm/models/AiChatEndBriefEvent.js +75 -0
- package/dist/esm/models/AiChatErrorBriefEvent.d.ts +41 -0
- package/dist/esm/models/AiChatErrorBriefEvent.js +55 -0
- package/dist/esm/models/AiChatEventsBatch.d.ts +36 -0
- package/dist/esm/models/AiChatEventsBatch.js +49 -0
- package/dist/esm/models/AiChatEventsBatchInput.d.ts +34 -0
- package/dist/esm/models/AiChatEventsBatchInput.js +47 -0
- package/dist/esm/models/AiChatEventsBatchSkipped.d.ts +34 -0
- package/dist/esm/models/AiChatEventsBatchSkipped.js +47 -0
- package/dist/esm/models/AiChatFileRef.d.ts +34 -0
- package/dist/esm/models/AiChatFileRef.js +45 -0
- package/dist/esm/models/AiChatInput.d.ts +44 -0
- package/dist/esm/models/AiChatInput.js +51 -0
- package/dist/esm/models/AiChatManualInterruptBriefEvent.d.ts +37 -0
- package/dist/esm/models/AiChatManualInterruptBriefEvent.js +51 -0
- package/dist/esm/models/AiChatMessageBriefEvent.d.ts +41 -0
- package/dist/esm/models/AiChatMessageBriefEvent.js +55 -0
- package/dist/esm/models/AiChatMessageEvent.d.ts +35 -0
- package/dist/esm/models/AiChatMessageEvent.js +48 -0
- package/dist/esm/models/AiChatRequestBriefEvent.d.ts +47 -0
- package/dist/esm/models/AiChatRequestBriefEvent.js +59 -0
- package/dist/esm/models/AiChatResponseBriefEvent.d.ts +47 -0
- package/dist/esm/models/AiChatResponseBriefEvent.js +61 -0
- package/dist/esm/models/AiChatStartBriefEvent.d.ts +37 -0
- package/dist/esm/models/AiChatStartBriefEvent.js +51 -0
- package/dist/esm/models/AiChatStreamInput.d.ts +30 -0
- package/dist/esm/models/AiChatStreamInput.js +43 -0
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.d.ts +53 -0
- package/dist/esm/models/AiChatSubAgentCallBriefEvent.js +67 -0
- package/dist/esm/models/AiChatSubmission.d.ts +42 -0
- package/dist/esm/models/AiChatSubmission.js +55 -0
- package/dist/esm/models/AiChatThinkBriefEvent.d.ts +41 -0
- package/dist/esm/models/AiChatThinkBriefEvent.js +55 -0
- package/dist/esm/models/AiChatToolExecutionBriefEvent.d.ts +62 -0
- package/dist/esm/models/AiChatToolExecutionBriefEvent.js +72 -0
- package/dist/esm/models/AiChatUserQueryBriefEvent.d.ts +46 -0
- package/dist/esm/models/AiChatUserQueryBriefEvent.js +58 -0
- package/dist/esm/models/ArtifactInfo.d.ts +58 -0
- package/dist/esm/models/ArtifactInfo.js +69 -0
- package/dist/esm/models/AskUserQuestionExtensionContent.d.ts +34 -0
- package/dist/esm/models/AskUserQuestionExtensionContent.js +45 -0
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/AskUserQuestionExtensionToolExtension.js +60 -0
- package/dist/esm/models/AskUserQuestionOption.d.ts +34 -0
- package/dist/esm/models/AskUserQuestionOption.js +47 -0
- package/dist/esm/models/AssistantChatMessage.d.ts +54 -0
- package/dist/esm/models/AssistantChatMessage.js +62 -0
- package/dist/esm/models/AsyncTask.d.ts +126 -0
- package/dist/esm/models/AsyncTask.js +120 -0
- package/dist/esm/models/AsyncTaskPage.d.ts +36 -0
- package/dist/esm/models/AsyncTaskPage.js +49 -0
- package/dist/esm/models/AttachmentExtension.d.ts +34 -0
- package/dist/esm/models/AttachmentExtension.js +47 -0
- package/dist/esm/models/BooleanChartColumn.d.ts +45 -0
- package/dist/esm/models/BooleanChartColumn.js +59 -0
- package/dist/esm/models/ChartColumnData.d.ts +50 -0
- package/dist/esm/models/ChartColumnData.js +86 -0
- package/dist/esm/models/ChartNumberFormat.d.ts +42 -0
- package/dist/esm/models/ChartNumberFormat.js +51 -0
- package/dist/esm/models/ChartQualitySummary.d.ts +38 -0
- package/dist/esm/models/ChartQualitySummary.js +51 -0
- package/dist/esm/models/ChartSeries.d.ts +68 -0
- package/dist/esm/models/ChartSeries.js +77 -0
- package/dist/esm/models/ChartSpec.d.ts +115 -0
- package/dist/esm/models/ChartSpec.js +121 -0
- package/dist/esm/models/ChartTimeContext.d.ts +34 -0
- package/dist/esm/models/ChartTimeContext.js +48 -0
- package/dist/esm/models/ChatMessage.d.ts +33 -0
- package/dist/esm/models/ChatMessage.js +57 -0
- package/dist/esm/models/ChatModelConfig.d.ts +62 -0
- package/dist/esm/models/ChatModelConfig.js +75 -0
- package/dist/esm/models/ChatModelSpec.d.ts +66 -0
- package/dist/esm/models/ChatModelSpec.js +63 -0
- package/dist/esm/models/ChatOptions.d.ts +54 -0
- package/dist/esm/models/ChatOptions.js +53 -0
- package/dist/esm/models/ChatStreamProbeEvent.d.ts +38 -0
- package/dist/esm/models/ChatStreamProbeEvent.js +51 -0
- package/dist/esm/models/ChatStreamProbeInput.d.ts +30 -0
- package/dist/esm/models/ChatStreamProbeInput.js +43 -0
- package/dist/esm/models/CitationMetadata.d.ts +42 -0
- package/dist/esm/models/CitationMetadata.js +51 -0
- package/dist/esm/models/CitationMetadataList.d.ts +31 -0
- package/dist/esm/models/CitationMetadataList.js +44 -0
- package/dist/esm/models/CodeMessage.d.ts +34 -0
- package/dist/esm/models/CodeMessage.js +47 -0
- package/dist/esm/models/ConfirmUploadInput.d.ts +34 -0
- package/dist/esm/models/ConfirmUploadInput.js +47 -0
- package/dist/esm/models/ConversationActivity.d.ts +62 -0
- package/dist/esm/models/ConversationActivity.js +66 -0
- package/dist/esm/models/ConversationActivityBatchInput.d.ts +30 -0
- package/dist/esm/models/ConversationActivityBatchInput.js +43 -0
- package/dist/esm/models/ConversationActivityList.d.ts +31 -0
- package/dist/esm/models/ConversationActivityList.js +44 -0
- package/dist/esm/models/ConversationConfig.d.ts +31 -0
- package/dist/esm/models/ConversationConfig.js +42 -0
- package/dist/esm/models/ConversationContextUsage.d.ts +74 -0
- package/dist/esm/models/ConversationContextUsage.js +83 -0
- package/dist/esm/models/ConversationIds.d.ts +30 -0
- package/dist/esm/models/ConversationIds.js +43 -0
- package/dist/esm/models/ConversationMessage.d.ts +84 -0
- package/dist/esm/models/ConversationMessage.js +96 -0
- package/dist/esm/models/ConversationMessagePage.d.ts +36 -0
- package/dist/esm/models/ConversationMessagePage.js +49 -0
- package/dist/esm/models/ConversationReadReceipt.d.ts +58 -0
- package/dist/esm/models/ConversationReadReceipt.js +62 -0
- package/dist/esm/models/ConversationReadReceiptInput.d.ts +30 -0
- package/dist/esm/models/ConversationReadReceiptInput.js +43 -0
- package/dist/esm/models/ConversationShareCreated.d.ts +46 -0
- package/dist/esm/models/ConversationShareCreated.js +58 -0
- package/dist/esm/models/ConversationShareInput.d.ts +34 -0
- package/dist/esm/models/ConversationShareInput.js +44 -0
- package/dist/esm/models/ConversationShareList.d.ts +31 -0
- package/dist/esm/models/ConversationShareList.js +44 -0
- package/dist/esm/models/ConversationShareRecord.d.ts +58 -0
- package/dist/esm/models/ConversationShareRecord.js +70 -0
- package/dist/esm/models/ConversationShareRevoked.d.ts +30 -0
- package/dist/esm/models/ConversationShareRevoked.js +43 -0
- package/dist/esm/models/ConversationStats.d.ts +50 -0
- package/dist/esm/models/ConversationStats.js +63 -0
- package/dist/esm/models/ConversationStatusInput.d.ts +30 -0
- package/dist/esm/models/ConversationStatusInput.js +43 -0
- package/dist/esm/models/ConversationSummary.d.ts +75 -0
- package/dist/esm/models/ConversationSummary.js +87 -0
- package/dist/esm/models/ConversationSummaryList.d.ts +31 -0
- package/dist/esm/models/ConversationSummaryList.js +44 -0
- package/dist/esm/models/ConversationTitle.d.ts +38 -0
- package/dist/esm/models/ConversationTitle.js +49 -0
- package/dist/esm/models/ConversationTitleInput.d.ts +30 -0
- package/dist/esm/models/ConversationTitleInput.js +43 -0
- package/dist/esm/models/ConversationUserMessage.d.ts +59 -0
- package/dist/esm/models/ConversationUserMessage.js +67 -0
- package/dist/esm/models/CreateFileInput.d.ts +34 -0
- package/dist/esm/models/CreateFileInput.js +47 -0
- package/dist/esm/models/DecimalChartColumn.d.ts +45 -0
- package/dist/esm/models/DecimalChartColumn.js +59 -0
- package/dist/esm/models/DefaultModel.d.ts +34 -0
- package/dist/esm/models/DefaultModel.js +47 -0
- package/dist/esm/models/DoubleChartColumn.d.ts +45 -0
- package/dist/esm/models/DoubleChartColumn.js +59 -0
- package/dist/esm/models/FieldError.d.ts +34 -0
- package/dist/esm/models/FieldError.js +47 -0
- package/dist/esm/models/FileExists.d.ts +30 -0
- package/dist/esm/models/FileExists.js +43 -0
- package/dist/esm/models/GeneratePreSignedUrlInput.d.ts +49 -0
- package/dist/esm/models/GeneratePreSignedUrlInput.js +61 -0
- package/dist/esm/models/GeneratePreSignedUrlOutput.d.ts +38 -0
- package/dist/esm/models/GeneratePreSignedUrlOutput.js +47 -0
- package/dist/esm/models/ImageGenerationExtensionContent.d.ts +30 -0
- package/dist/esm/models/ImageGenerationExtensionContent.js +43 -0
- package/dist/esm/models/ImageGenerationExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/ImageGenerationExtensionToolExtension.js +60 -0
- package/dist/esm/models/InputTokenBreakdown.d.ts +42 -0
- package/dist/esm/models/InputTokenBreakdown.js +53 -0
- package/dist/esm/models/InstantChartColumn.d.ts +45 -0
- package/dist/esm/models/InstantChartColumn.js +59 -0
- package/dist/esm/models/IntegerChartColumn.d.ts +46 -0
- package/dist/esm/models/IntegerChartColumn.js +58 -0
- package/dist/esm/models/JsRunScriptExtensionContent.d.ts +30 -0
- package/dist/esm/models/JsRunScriptExtensionContent.js +43 -0
- package/dist/esm/models/JsRunScriptExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/JsRunScriptExtensionToolExtension.js +60 -0
- package/dist/esm/models/JsRunScriptResultExtensionContent.d.ts +34 -0
- package/dist/esm/models/JsRunScriptResultExtensionContent.js +45 -0
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/JsRunScriptResultExtensionToolExtension.js +60 -0
- package/dist/esm/models/LocalDateChartColumn.d.ts +45 -0
- package/dist/esm/models/LocalDateChartColumn.js +59 -0
- package/dist/esm/models/LocalDateTimeChartColumn.d.ts +45 -0
- package/dist/esm/models/LocalDateTimeChartColumn.js +59 -0
- package/dist/esm/models/LocalTimeChartColumn.d.ts +45 -0
- package/dist/esm/models/LocalTimeChartColumn.js +59 -0
- package/dist/esm/models/MathFormulaExtensionContent.d.ts +35 -0
- package/dist/esm/models/MathFormulaExtensionContent.js +46 -0
- package/dist/esm/models/MathFormulaExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/MathFormulaExtensionToolExtension.js +60 -0
- package/dist/esm/models/MathResultExtensionContent.d.ts +30 -0
- package/dist/esm/models/MathResultExtensionContent.js +43 -0
- package/dist/esm/models/MathResultExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/MathResultExtensionToolExtension.js +60 -0
- package/dist/esm/models/MediaAttachment.d.ts +46 -0
- package/dist/esm/models/MediaAttachment.js +59 -0
- package/dist/esm/models/ModelConfig.d.ts +36 -0
- package/dist/esm/models/ModelConfig.js +49 -0
- package/dist/esm/models/ModelKeyGroup.d.ts +39 -0
- package/dist/esm/models/ModelKeyGroup.js +52 -0
- package/dist/esm/models/MultimodalMediaAttachment.d.ts +38 -0
- package/dist/esm/models/MultimodalMediaAttachment.js +51 -0
- package/dist/esm/models/OperationResult.d.ts +34 -0
- package/dist/esm/models/OperationResult.js +45 -0
- package/dist/esm/models/PageInfo.d.ts +38 -0
- package/dist/esm/models/PageInfo.js +51 -0
- package/dist/esm/models/PlanApprovalExtensionContent.d.ts +38 -0
- package/dist/esm/models/PlanApprovalExtensionContent.js +52 -0
- package/dist/esm/models/PlanApprovalExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/PlanApprovalExtensionToolExtension.js +60 -0
- package/dist/esm/models/PlanApprovalInput.d.ts +42 -0
- package/dist/esm/models/PlanApprovalInput.js +53 -0
- package/dist/esm/models/PlanStatus.d.ts +34 -0
- package/dist/esm/models/PlanStatus.js +47 -0
- package/dist/esm/models/PreSignedReadUrl.d.ts +30 -0
- package/dist/esm/models/PreSignedReadUrl.js +43 -0
- package/dist/esm/models/ReturnedReference.d.ts +34 -0
- package/dist/esm/models/ReturnedReference.js +47 -0
- package/dist/esm/models/SkillResourceExtensionContent.d.ts +34 -0
- package/dist/esm/models/SkillResourceExtensionContent.js +47 -0
- package/dist/esm/models/SkillResourceExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/SkillResourceExtensionToolExtension.js +60 -0
- package/dist/esm/models/SqlChartDataset.d.ts +44 -0
- package/dist/esm/models/SqlChartDataset.js +57 -0
- package/dist/esm/models/SqlChartResultExtensionContent.d.ts +62 -0
- package/dist/esm/models/SqlChartResultExtensionContent.js +75 -0
- package/dist/esm/models/SqlChartResultExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/SqlChartResultExtensionToolExtension.js +60 -0
- package/dist/esm/models/SqlQueryExtensionContent.d.ts +30 -0
- package/dist/esm/models/SqlQueryExtensionContent.js +43 -0
- package/dist/esm/models/SqlQueryExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/SqlQueryExtensionToolExtension.js +60 -0
- package/dist/esm/models/SqlQueryResultExtensionContent.d.ts +59 -0
- package/dist/esm/models/SqlQueryResultExtensionContent.js +72 -0
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/SqlQueryResultExtensionToolExtension.js +60 -0
- package/dist/esm/models/SqlQueryResultPage.d.ts +63 -0
- package/dist/esm/models/SqlQueryResultPage.js +76 -0
- package/dist/esm/models/SqlQueryResultRow.d.ts +30 -0
- package/dist/esm/models/SqlQueryResultRow.js +43 -0
- package/dist/esm/models/SqlResultColumnSchema.d.ts +46 -0
- package/dist/esm/models/SqlResultColumnSchema.js +55 -0
- package/dist/esm/models/StringChartColumn.d.ts +45 -0
- package/dist/esm/models/StringChartColumn.js +59 -0
- package/dist/esm/models/SystemChatMessage.d.ts +45 -0
- package/dist/esm/models/SystemChatMessage.js +57 -0
- package/dist/esm/models/TaskProgressExtensionContent.d.ts +67 -0
- package/dist/esm/models/TaskProgressExtensionContent.js +76 -0
- package/dist/esm/models/TaskProgressExtensionToolExtension.d.ts +46 -0
- package/dist/esm/models/TaskProgressExtensionToolExtension.js +60 -0
- package/dist/esm/models/TaskSummary.d.ts +50 -0
- package/dist/esm/models/TaskSummary.js +61 -0
- package/dist/esm/models/ToolCall.d.ts +42 -0
- package/dist/esm/models/ToolCall.js +55 -0
- package/dist/esm/models/ToolExtension.d.ts +57 -0
- package/dist/esm/models/ToolExtension.js +97 -0
- package/dist/esm/models/ToolResponse.d.ts +46 -0
- package/dist/esm/models/ToolResponse.js +59 -0
- package/dist/esm/models/ToolResponseChatMessage.d.ts +46 -0
- package/dist/esm/models/ToolResponseChatMessage.js +58 -0
- package/dist/esm/models/UnknownAiChatBriefEvent.d.ts +34 -0
- package/dist/esm/models/UnknownAiChatBriefEvent.js +47 -0
- package/dist/esm/models/UnknownToolExtension.d.ts +34 -0
- package/dist/esm/models/UnknownToolExtension.js +47 -0
- package/dist/esm/models/Usage.d.ts +55 -0
- package/dist/esm/models/Usage.js +57 -0
- package/dist/esm/models/UserChatMessage.d.ts +55 -0
- package/dist/esm/models/UserChatMessage.js +63 -0
- package/dist/esm/models/UserInputAnswerInput.d.ts +46 -0
- package/dist/esm/models/UserInputAnswerInput.js +57 -0
- package/dist/esm/models/UserInputStatus.d.ts +46 -0
- package/dist/esm/models/UserInputStatus.js +51 -0
- package/dist/esm/models/ValidationError.d.ts +39 -0
- package/dist/esm/models/ValidationError.js +52 -0
- package/dist/esm/models/VariableBinding.d.ts +34 -0
- package/dist/esm/models/VariableBinding.js +47 -0
- package/dist/esm/models/WorkspaceArtifactList.d.ts +36 -0
- package/dist/esm/models/WorkspaceArtifactList.js +49 -0
- package/dist/esm/models/WorkspaceFile.d.ts +46 -0
- package/dist/esm/models/WorkspaceFile.js +60 -0
- package/dist/esm/models/WorkspaceFilePage.d.ts +36 -0
- package/dist/esm/models/WorkspaceFilePage.js +49 -0
- package/dist/esm/models/WorkspaceNonFileArtifact.d.ts +50 -0
- package/dist/esm/models/WorkspaceNonFileArtifact.js +60 -0
- package/dist/esm/models/index.d.ts +3519 -0
- package/dist/esm/models/index.js +307 -0
- package/dist/esm/runtime.d.ts +197 -0
- package/dist/esm/runtime.js +365 -0
- package/dist/esm/sse.d.ts +8 -0
- package/dist/esm/sse.js +57 -0
- package/dist/events.d.ts +21 -0
- package/dist/events.js +37 -0
- package/dist/hmac.d.ts +25 -0
- package/dist/hmac.js +67 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +25 -0
- package/dist/models/AgentFile.d.ts +50 -0
- package/dist/models/AgentFile.js +71 -0
- package/dist/models/AgentsConfig.d.ts +40 -0
- package/dist/models/AgentsConfig.js +60 -0
- package/dist/models/AiChatAwaitingInputBriefEvent.d.ts +74 -0
- package/dist/models/AiChatAwaitingInputBriefEvent.js +95 -0
- package/dist/models/AiChatBriefEvent.d.ts +66 -0
- package/dist/models/AiChatBriefEvent.js +118 -0
- package/dist/models/AiChatBriefEventList.d.ts +31 -0
- package/dist/models/AiChatBriefEventList.js +51 -0
- package/dist/models/AiChatCompactorWarningBriefEvent.d.ts +45 -0
- package/dist/models/AiChatCompactorWarningBriefEvent.js +67 -0
- package/dist/models/AiChatCompressorContextEndBriefEvent.d.ts +37 -0
- package/dist/models/AiChatCompressorContextEndBriefEvent.js +59 -0
- package/dist/models/AiChatCompressorContextStartBriefEvent.d.ts +37 -0
- package/dist/models/AiChatCompressorContextStartBriefEvent.js +59 -0
- package/dist/models/AiChatEndBriefEvent.d.ts +65 -0
- package/dist/models/AiChatEndBriefEvent.js +83 -0
- package/dist/models/AiChatErrorBriefEvent.d.ts +41 -0
- package/dist/models/AiChatErrorBriefEvent.js +63 -0
- package/dist/models/AiChatEventsBatch.d.ts +36 -0
- package/dist/models/AiChatEventsBatch.js +56 -0
- package/dist/models/AiChatEventsBatchInput.d.ts +34 -0
- package/dist/models/AiChatEventsBatchInput.js +54 -0
- package/dist/models/AiChatEventsBatchSkipped.d.ts +34 -0
- package/dist/models/AiChatEventsBatchSkipped.js +54 -0
- package/dist/models/AiChatFileRef.d.ts +34 -0
- package/dist/models/AiChatFileRef.js +52 -0
- package/dist/models/AiChatInput.d.ts +44 -0
- package/dist/models/AiChatInput.js +58 -0
- package/dist/models/AiChatManualInterruptBriefEvent.d.ts +37 -0
- package/dist/models/AiChatManualInterruptBriefEvent.js +59 -0
- package/dist/models/AiChatMessageBriefEvent.d.ts +41 -0
- package/dist/models/AiChatMessageBriefEvent.js +63 -0
- package/dist/models/AiChatMessageEvent.d.ts +35 -0
- package/dist/models/AiChatMessageEvent.js +55 -0
- package/dist/models/AiChatRequestBriefEvent.d.ts +47 -0
- package/dist/models/AiChatRequestBriefEvent.js +67 -0
- package/dist/models/AiChatResponseBriefEvent.d.ts +47 -0
- package/dist/models/AiChatResponseBriefEvent.js +69 -0
- package/dist/models/AiChatStartBriefEvent.d.ts +37 -0
- package/dist/models/AiChatStartBriefEvent.js +59 -0
- package/dist/models/AiChatStreamInput.d.ts +30 -0
- package/dist/models/AiChatStreamInput.js +50 -0
- package/dist/models/AiChatSubAgentCallBriefEvent.d.ts +53 -0
- package/dist/models/AiChatSubAgentCallBriefEvent.js +75 -0
- package/dist/models/AiChatSubmission.d.ts +42 -0
- package/dist/models/AiChatSubmission.js +62 -0
- package/dist/models/AiChatThinkBriefEvent.d.ts +41 -0
- package/dist/models/AiChatThinkBriefEvent.js +63 -0
- package/dist/models/AiChatToolExecutionBriefEvent.d.ts +62 -0
- package/dist/models/AiChatToolExecutionBriefEvent.js +80 -0
- package/dist/models/AiChatUserQueryBriefEvent.d.ts +46 -0
- package/dist/models/AiChatUserQueryBriefEvent.js +66 -0
- package/dist/models/ArtifactInfo.d.ts +58 -0
- package/dist/models/ArtifactInfo.js +76 -0
- package/dist/models/AskUserQuestionExtensionContent.d.ts +34 -0
- package/dist/models/AskUserQuestionExtensionContent.js +52 -0
- package/dist/models/AskUserQuestionExtensionToolExtension.d.ts +46 -0
- package/dist/models/AskUserQuestionExtensionToolExtension.js +68 -0
- package/dist/models/AskUserQuestionOption.d.ts +34 -0
- package/dist/models/AskUserQuestionOption.js +54 -0
- package/dist/models/AssistantChatMessage.d.ts +54 -0
- package/dist/models/AssistantChatMessage.js +70 -0
- package/dist/models/AsyncTask.d.ts +126 -0
- package/dist/models/AsyncTask.js +127 -0
- package/dist/models/AsyncTaskPage.d.ts +36 -0
- package/dist/models/AsyncTaskPage.js +56 -0
- package/dist/models/AttachmentExtension.d.ts +34 -0
- package/dist/models/AttachmentExtension.js +54 -0
- package/dist/models/BooleanChartColumn.d.ts +45 -0
- package/dist/models/BooleanChartColumn.js +67 -0
- package/dist/models/ChartColumnData.d.ts +50 -0
- package/dist/models/ChartColumnData.js +92 -0
- package/dist/models/ChartNumberFormat.d.ts +42 -0
- package/dist/models/ChartNumberFormat.js +58 -0
- package/dist/models/ChartQualitySummary.d.ts +38 -0
- package/dist/models/ChartQualitySummary.js +58 -0
- package/dist/models/ChartSeries.d.ts +68 -0
- package/dist/models/ChartSeries.js +85 -0
- package/dist/models/ChartSpec.d.ts +115 -0
- package/dist/models/ChartSpec.js +129 -0
- package/dist/models/ChartTimeContext.d.ts +34 -0
- package/dist/models/ChartTimeContext.js +55 -0
- package/dist/models/ChatMessage.d.ts +33 -0
- package/dist/models/ChatMessage.js +63 -0
- package/dist/models/ChatModelConfig.d.ts +62 -0
- package/dist/models/ChatModelConfig.js +82 -0
- package/dist/models/ChatModelSpec.d.ts +66 -0
- package/dist/models/ChatModelSpec.js +70 -0
- package/dist/models/ChatOptions.d.ts +54 -0
- package/dist/models/ChatOptions.js +60 -0
- package/dist/models/ChatStreamProbeEvent.d.ts +38 -0
- package/dist/models/ChatStreamProbeEvent.js +58 -0
- package/dist/models/ChatStreamProbeInput.d.ts +30 -0
- package/dist/models/ChatStreamProbeInput.js +50 -0
- package/dist/models/CitationMetadata.d.ts +42 -0
- package/dist/models/CitationMetadata.js +58 -0
- package/dist/models/CitationMetadataList.d.ts +31 -0
- package/dist/models/CitationMetadataList.js +51 -0
- package/dist/models/CodeMessage.d.ts +34 -0
- package/dist/models/CodeMessage.js +54 -0
- package/dist/models/ConfirmUploadInput.d.ts +34 -0
- package/dist/models/ConfirmUploadInput.js +54 -0
- package/dist/models/ConversationActivity.d.ts +62 -0
- package/dist/models/ConversationActivity.js +73 -0
- package/dist/models/ConversationActivityBatchInput.d.ts +30 -0
- package/dist/models/ConversationActivityBatchInput.js +50 -0
- package/dist/models/ConversationActivityList.d.ts +31 -0
- package/dist/models/ConversationActivityList.js +51 -0
- package/dist/models/ConversationConfig.d.ts +31 -0
- package/dist/models/ConversationConfig.js +49 -0
- package/dist/models/ConversationContextUsage.d.ts +74 -0
- package/dist/models/ConversationContextUsage.js +90 -0
- package/dist/models/ConversationIds.d.ts +30 -0
- package/dist/models/ConversationIds.js +50 -0
- package/dist/models/ConversationMessage.d.ts +84 -0
- package/dist/models/ConversationMessage.js +103 -0
- package/dist/models/ConversationMessagePage.d.ts +36 -0
- package/dist/models/ConversationMessagePage.js +56 -0
- package/dist/models/ConversationReadReceipt.d.ts +58 -0
- package/dist/models/ConversationReadReceipt.js +69 -0
- package/dist/models/ConversationReadReceiptInput.d.ts +30 -0
- package/dist/models/ConversationReadReceiptInput.js +50 -0
- package/dist/models/ConversationShareCreated.d.ts +46 -0
- package/dist/models/ConversationShareCreated.js +65 -0
- package/dist/models/ConversationShareInput.d.ts +34 -0
- package/dist/models/ConversationShareInput.js +51 -0
- package/dist/models/ConversationShareList.d.ts +31 -0
- package/dist/models/ConversationShareList.js +51 -0
- package/dist/models/ConversationShareRecord.d.ts +58 -0
- package/dist/models/ConversationShareRecord.js +77 -0
- package/dist/models/ConversationShareRevoked.d.ts +30 -0
- package/dist/models/ConversationShareRevoked.js +50 -0
- package/dist/models/ConversationStats.d.ts +50 -0
- package/dist/models/ConversationStats.js +70 -0
- package/dist/models/ConversationStatusInput.d.ts +30 -0
- package/dist/models/ConversationStatusInput.js +50 -0
- package/dist/models/ConversationSummary.d.ts +75 -0
- package/dist/models/ConversationSummary.js +94 -0
- package/dist/models/ConversationSummaryList.d.ts +31 -0
- package/dist/models/ConversationSummaryList.js +51 -0
- package/dist/models/ConversationTitle.d.ts +38 -0
- package/dist/models/ConversationTitle.js +56 -0
- package/dist/models/ConversationTitleInput.d.ts +30 -0
- package/dist/models/ConversationTitleInput.js +50 -0
- package/dist/models/ConversationUserMessage.d.ts +59 -0
- package/dist/models/ConversationUserMessage.js +75 -0
- package/dist/models/CreateFileInput.d.ts +34 -0
- package/dist/models/CreateFileInput.js +54 -0
- package/dist/models/DecimalChartColumn.d.ts +45 -0
- package/dist/models/DecimalChartColumn.js +67 -0
- package/dist/models/DefaultModel.d.ts +34 -0
- package/dist/models/DefaultModel.js +54 -0
- package/dist/models/DoubleChartColumn.d.ts +45 -0
- package/dist/models/DoubleChartColumn.js +67 -0
- package/dist/models/FieldError.d.ts +34 -0
- package/dist/models/FieldError.js +54 -0
- package/dist/models/FileExists.d.ts +30 -0
- package/dist/models/FileExists.js +50 -0
- package/dist/models/GeneratePreSignedUrlInput.d.ts +49 -0
- package/dist/models/GeneratePreSignedUrlInput.js +69 -0
- package/dist/models/GeneratePreSignedUrlOutput.d.ts +38 -0
- package/dist/models/GeneratePreSignedUrlOutput.js +54 -0
- package/dist/models/ImageGenerationExtensionContent.d.ts +30 -0
- package/dist/models/ImageGenerationExtensionContent.js +50 -0
- package/dist/models/ImageGenerationExtensionToolExtension.d.ts +46 -0
- package/dist/models/ImageGenerationExtensionToolExtension.js +68 -0
- package/dist/models/InputTokenBreakdown.d.ts +42 -0
- package/dist/models/InputTokenBreakdown.js +60 -0
- package/dist/models/InstantChartColumn.d.ts +45 -0
- package/dist/models/InstantChartColumn.js +67 -0
- package/dist/models/IntegerChartColumn.d.ts +46 -0
- package/dist/models/IntegerChartColumn.js +66 -0
- package/dist/models/JsRunScriptExtensionContent.d.ts +30 -0
- package/dist/models/JsRunScriptExtensionContent.js +50 -0
- package/dist/models/JsRunScriptExtensionToolExtension.d.ts +46 -0
- package/dist/models/JsRunScriptExtensionToolExtension.js +68 -0
- package/dist/models/JsRunScriptResultExtensionContent.d.ts +34 -0
- package/dist/models/JsRunScriptResultExtensionContent.js +52 -0
- package/dist/models/JsRunScriptResultExtensionToolExtension.d.ts +46 -0
- package/dist/models/JsRunScriptResultExtensionToolExtension.js +68 -0
- package/dist/models/LocalDateChartColumn.d.ts +45 -0
- package/dist/models/LocalDateChartColumn.js +67 -0
- package/dist/models/LocalDateTimeChartColumn.d.ts +45 -0
- package/dist/models/LocalDateTimeChartColumn.js +67 -0
- package/dist/models/LocalTimeChartColumn.d.ts +45 -0
- package/dist/models/LocalTimeChartColumn.js +67 -0
- package/dist/models/MathFormulaExtensionContent.d.ts +35 -0
- package/dist/models/MathFormulaExtensionContent.js +53 -0
- package/dist/models/MathFormulaExtensionToolExtension.d.ts +46 -0
- package/dist/models/MathFormulaExtensionToolExtension.js +68 -0
- package/dist/models/MathResultExtensionContent.d.ts +30 -0
- package/dist/models/MathResultExtensionContent.js +50 -0
- package/dist/models/MathResultExtensionToolExtension.d.ts +46 -0
- package/dist/models/MathResultExtensionToolExtension.js +68 -0
- package/dist/models/MediaAttachment.d.ts +46 -0
- package/dist/models/MediaAttachment.js +66 -0
- package/dist/models/ModelConfig.d.ts +36 -0
- package/dist/models/ModelConfig.js +56 -0
- package/dist/models/ModelKeyGroup.d.ts +39 -0
- package/dist/models/ModelKeyGroup.js +59 -0
- package/dist/models/MultimodalMediaAttachment.d.ts +38 -0
- package/dist/models/MultimodalMediaAttachment.js +58 -0
- package/dist/models/OperationResult.d.ts +34 -0
- package/dist/models/OperationResult.js +52 -0
- package/dist/models/PageInfo.d.ts +38 -0
- package/dist/models/PageInfo.js +58 -0
- package/dist/models/PlanApprovalExtensionContent.d.ts +38 -0
- package/dist/models/PlanApprovalExtensionContent.js +59 -0
- package/dist/models/PlanApprovalExtensionToolExtension.d.ts +46 -0
- package/dist/models/PlanApprovalExtensionToolExtension.js +68 -0
- package/dist/models/PlanApprovalInput.d.ts +42 -0
- package/dist/models/PlanApprovalInput.js +60 -0
- package/dist/models/PlanStatus.d.ts +34 -0
- package/dist/models/PlanStatus.js +54 -0
- package/dist/models/PreSignedReadUrl.d.ts +30 -0
- package/dist/models/PreSignedReadUrl.js +50 -0
- package/dist/models/ReturnedReference.d.ts +34 -0
- package/dist/models/ReturnedReference.js +54 -0
- package/dist/models/SkillResourceExtensionContent.d.ts +34 -0
- package/dist/models/SkillResourceExtensionContent.js +54 -0
- package/dist/models/SkillResourceExtensionToolExtension.d.ts +46 -0
- package/dist/models/SkillResourceExtensionToolExtension.js +68 -0
- package/dist/models/SqlChartDataset.d.ts +44 -0
- package/dist/models/SqlChartDataset.js +64 -0
- package/dist/models/SqlChartResultExtensionContent.d.ts +62 -0
- package/dist/models/SqlChartResultExtensionContent.js +82 -0
- package/dist/models/SqlChartResultExtensionToolExtension.d.ts +46 -0
- package/dist/models/SqlChartResultExtensionToolExtension.js +68 -0
- package/dist/models/SqlQueryExtensionContent.d.ts +30 -0
- package/dist/models/SqlQueryExtensionContent.js +50 -0
- package/dist/models/SqlQueryExtensionToolExtension.d.ts +46 -0
- package/dist/models/SqlQueryExtensionToolExtension.js +68 -0
- package/dist/models/SqlQueryResultExtensionContent.d.ts +59 -0
- package/dist/models/SqlQueryResultExtensionContent.js +79 -0
- package/dist/models/SqlQueryResultExtensionToolExtension.d.ts +46 -0
- package/dist/models/SqlQueryResultExtensionToolExtension.js +68 -0
- package/dist/models/SqlQueryResultPage.d.ts +63 -0
- package/dist/models/SqlQueryResultPage.js +83 -0
- package/dist/models/SqlQueryResultRow.d.ts +30 -0
- package/dist/models/SqlQueryResultRow.js +50 -0
- package/dist/models/SqlResultColumnSchema.d.ts +46 -0
- package/dist/models/SqlResultColumnSchema.js +62 -0
- package/dist/models/StringChartColumn.d.ts +45 -0
- package/dist/models/StringChartColumn.js +67 -0
- package/dist/models/SystemChatMessage.d.ts +45 -0
- package/dist/models/SystemChatMessage.js +65 -0
- package/dist/models/TaskProgressExtensionContent.d.ts +67 -0
- package/dist/models/TaskProgressExtensionContent.js +83 -0
- package/dist/models/TaskProgressExtensionToolExtension.d.ts +46 -0
- package/dist/models/TaskProgressExtensionToolExtension.js +68 -0
- package/dist/models/TaskSummary.d.ts +50 -0
- package/dist/models/TaskSummary.js +68 -0
- package/dist/models/ToolCall.d.ts +42 -0
- package/dist/models/ToolCall.js +62 -0
- package/dist/models/ToolExtension.d.ts +57 -0
- package/dist/models/ToolExtension.js +103 -0
- package/dist/models/ToolResponse.d.ts +46 -0
- package/dist/models/ToolResponse.js +66 -0
- package/dist/models/ToolResponseChatMessage.d.ts +46 -0
- package/dist/models/ToolResponseChatMessage.js +66 -0
- package/dist/models/UnknownAiChatBriefEvent.d.ts +34 -0
- package/dist/models/UnknownAiChatBriefEvent.js +54 -0
- package/dist/models/UnknownToolExtension.d.ts +34 -0
- package/dist/models/UnknownToolExtension.js +54 -0
- package/dist/models/Usage.d.ts +55 -0
- package/dist/models/Usage.js +64 -0
- package/dist/models/UserChatMessage.d.ts +55 -0
- package/dist/models/UserChatMessage.js +71 -0
- package/dist/models/UserInputAnswerInput.d.ts +46 -0
- package/dist/models/UserInputAnswerInput.js +64 -0
- package/dist/models/UserInputStatus.d.ts +46 -0
- package/dist/models/UserInputStatus.js +58 -0
- package/dist/models/ValidationError.d.ts +39 -0
- package/dist/models/ValidationError.js +59 -0
- package/dist/models/VariableBinding.d.ts +34 -0
- package/dist/models/VariableBinding.js +54 -0
- package/dist/models/WorkspaceArtifactList.d.ts +36 -0
- package/dist/models/WorkspaceArtifactList.js +56 -0
- package/dist/models/WorkspaceFile.d.ts +46 -0
- package/dist/models/WorkspaceFile.js +67 -0
- package/dist/models/WorkspaceFilePage.d.ts +36 -0
- package/dist/models/WorkspaceFilePage.js +56 -0
- package/dist/models/WorkspaceNonFileArtifact.d.ts +50 -0
- package/dist/models/WorkspaceNonFileArtifact.js +67 -0
- package/dist/models/index.d.ts +3519 -0
- package/dist/models/index.js +310 -0
- package/dist/runtime.d.ts +197 -0
- package/dist/runtime.js +385 -0
- package/dist/sse.d.ts +8 -0
- package/dist/sse.js +60 -0
- package/package.json +60 -0
|
@@ -0,0 +1,910 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* Lingya Agents OpenAPI
|
|
5
|
+
* Public, tenant-scoped Agent channel API authenticated with OPENAPI-HMAC-SHA256-V1. Studio administration endpoints are not part of this contract.
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.2
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
15
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
16
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
17
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
18
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
19
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
20
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
import * as runtime from '../runtime';
|
|
24
|
+
/**
|
|
25
|
+
*
|
|
26
|
+
*/
|
|
27
|
+
export class ConversationsApi extends runtime.BaseAPI {
|
|
28
|
+
/**
|
|
29
|
+
* Creates request options for createConversationShare without sending the request
|
|
30
|
+
*/
|
|
31
|
+
createConversationShareRequestOpts(requestParameters) {
|
|
32
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
33
|
+
if (requestParameters['channelId'] == null) {
|
|
34
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling createConversationShare().');
|
|
35
|
+
}
|
|
36
|
+
if (requestParameters['conversationId'] == null) {
|
|
37
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling createConversationShare().');
|
|
38
|
+
}
|
|
39
|
+
if (requestParameters['conversationShareInput'] == null) {
|
|
40
|
+
throw new runtime.RequiredError('conversationShareInput', 'Required parameter "conversationShareInput" was null or undefined when calling createConversationShare().');
|
|
41
|
+
}
|
|
42
|
+
const queryParameters = {};
|
|
43
|
+
const headerParameters = {};
|
|
44
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
45
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
46
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
47
|
+
}
|
|
48
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
49
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
50
|
+
}
|
|
51
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
52
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
53
|
+
}
|
|
54
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
55
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
56
|
+
}
|
|
57
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
58
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
59
|
+
}
|
|
60
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/shares`;
|
|
61
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
62
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
63
|
+
return {
|
|
64
|
+
path: urlPath,
|
|
65
|
+
method: 'POST',
|
|
66
|
+
headers: headerParameters,
|
|
67
|
+
query: queryParameters,
|
|
68
|
+
body: requestParameters['conversationShareInput'],
|
|
69
|
+
};
|
|
70
|
+
});
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* 创建会话分享 / Create a conversation share 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
74
|
+
* 创建会话分享 / Create a conversation share
|
|
75
|
+
*/
|
|
76
|
+
createConversationShareRaw(requestParameters, initOverrides) {
|
|
77
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
78
|
+
const requestOptions = yield this.createConversationShareRequestOpts(requestParameters);
|
|
79
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
80
|
+
return new runtime.JSONApiResponse(response);
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* 创建会话分享 / Create a conversation share 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
85
|
+
* 创建会话分享 / Create a conversation share
|
|
86
|
+
*/
|
|
87
|
+
createConversationShare(requestParameters, initOverrides) {
|
|
88
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
89
|
+
const response = yield this.createConversationShareRaw(requestParameters, initOverrides);
|
|
90
|
+
return yield response.value();
|
|
91
|
+
});
|
|
92
|
+
}
|
|
93
|
+
/**
|
|
94
|
+
* Creates request options for deleteConversation without sending the request
|
|
95
|
+
*/
|
|
96
|
+
deleteConversationRequestOpts(requestParameters) {
|
|
97
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
98
|
+
if (requestParameters['channelId'] == null) {
|
|
99
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling deleteConversation().');
|
|
100
|
+
}
|
|
101
|
+
if (requestParameters['conversationId'] == null) {
|
|
102
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling deleteConversation().');
|
|
103
|
+
}
|
|
104
|
+
const queryParameters = {};
|
|
105
|
+
const headerParameters = {};
|
|
106
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
107
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
108
|
+
}
|
|
109
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
110
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
111
|
+
}
|
|
112
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
113
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
114
|
+
}
|
|
115
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
116
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
117
|
+
}
|
|
118
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
119
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
120
|
+
}
|
|
121
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}`;
|
|
122
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
123
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
124
|
+
return {
|
|
125
|
+
path: urlPath,
|
|
126
|
+
method: 'DELETE',
|
|
127
|
+
headers: headerParameters,
|
|
128
|
+
query: queryParameters,
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* 删除会话 / Delete a conversation 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
134
|
+
* 删除会话 / Delete a conversation
|
|
135
|
+
*/
|
|
136
|
+
deleteConversationRaw(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const requestOptions = yield this.deleteConversationRequestOpts(requestParameters);
|
|
139
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
140
|
+
return new runtime.VoidApiResponse(response);
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* 删除会话 / Delete a conversation 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
145
|
+
* 删除会话 / Delete a conversation
|
|
146
|
+
*/
|
|
147
|
+
deleteConversation(requestParameters, initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
yield this.deleteConversationRaw(requestParameters, initOverrides);
|
|
150
|
+
});
|
|
151
|
+
}
|
|
152
|
+
/**
|
|
153
|
+
* Creates request options for getConversationContextUsage without sending the request
|
|
154
|
+
*/
|
|
155
|
+
getConversationContextUsageRequestOpts(requestParameters) {
|
|
156
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
157
|
+
if (requestParameters['channelId'] == null) {
|
|
158
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getConversationContextUsage().');
|
|
159
|
+
}
|
|
160
|
+
if (requestParameters['conversationId'] == null) {
|
|
161
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationContextUsage().');
|
|
162
|
+
}
|
|
163
|
+
const queryParameters = {};
|
|
164
|
+
const headerParameters = {};
|
|
165
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
166
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
167
|
+
}
|
|
168
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
169
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
170
|
+
}
|
|
171
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
172
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
173
|
+
}
|
|
174
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
175
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
176
|
+
}
|
|
177
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
178
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
179
|
+
}
|
|
180
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/context-usage`;
|
|
181
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
182
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
183
|
+
return {
|
|
184
|
+
path: urlPath,
|
|
185
|
+
method: 'GET',
|
|
186
|
+
headers: headerParameters,
|
|
187
|
+
query: queryParameters,
|
|
188
|
+
};
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* 读取上下文占用 / Get context usage 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
193
|
+
* 读取上下文占用 / Get context usage
|
|
194
|
+
*/
|
|
195
|
+
getConversationContextUsageRaw(requestParameters, initOverrides) {
|
|
196
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
197
|
+
const requestOptions = yield this.getConversationContextUsageRequestOpts(requestParameters);
|
|
198
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
199
|
+
return new runtime.JSONApiResponse(response);
|
|
200
|
+
});
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* 读取上下文占用 / Get context usage 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
204
|
+
* 读取上下文占用 / Get context usage
|
|
205
|
+
*/
|
|
206
|
+
getConversationContextUsage(requestParameters, initOverrides) {
|
|
207
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
208
|
+
const response = yield this.getConversationContextUsageRaw(requestParameters, initOverrides);
|
|
209
|
+
return yield response.value();
|
|
210
|
+
});
|
|
211
|
+
}
|
|
212
|
+
/**
|
|
213
|
+
* Creates request options for getConversationStats without sending the request
|
|
214
|
+
*/
|
|
215
|
+
getConversationStatsRequestOpts(requestParameters) {
|
|
216
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
217
|
+
if (requestParameters['channelId'] == null) {
|
|
218
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getConversationStats().');
|
|
219
|
+
}
|
|
220
|
+
const queryParameters = {};
|
|
221
|
+
const headerParameters = {};
|
|
222
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
223
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
224
|
+
}
|
|
225
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
226
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
227
|
+
}
|
|
228
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
229
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
230
|
+
}
|
|
231
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
232
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
233
|
+
}
|
|
234
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
235
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
236
|
+
}
|
|
237
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/stats`;
|
|
238
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
239
|
+
return {
|
|
240
|
+
path: urlPath,
|
|
241
|
+
method: 'GET',
|
|
242
|
+
headers: headerParameters,
|
|
243
|
+
query: queryParameters,
|
|
244
|
+
};
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
/**
|
|
248
|
+
* 读取会话统计 / Get conversation statistics 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
249
|
+
* 读取会话统计 / Get conversation statistics
|
|
250
|
+
*/
|
|
251
|
+
getConversationStatsRaw(requestParameters, initOverrides) {
|
|
252
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
253
|
+
const requestOptions = yield this.getConversationStatsRequestOpts(requestParameters);
|
|
254
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
255
|
+
return new runtime.JSONApiResponse(response);
|
|
256
|
+
});
|
|
257
|
+
}
|
|
258
|
+
/**
|
|
259
|
+
* 读取会话统计 / Get conversation statistics 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
260
|
+
* 读取会话统计 / Get conversation statistics
|
|
261
|
+
*/
|
|
262
|
+
getConversationStats(requestParameters, initOverrides) {
|
|
263
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
264
|
+
const response = yield this.getConversationStatsRaw(requestParameters, initOverrides);
|
|
265
|
+
return yield response.value();
|
|
266
|
+
});
|
|
267
|
+
}
|
|
268
|
+
/**
|
|
269
|
+
* Creates request options for getConversationTitle without sending the request
|
|
270
|
+
*/
|
|
271
|
+
getConversationTitleRequestOpts(requestParameters) {
|
|
272
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
273
|
+
if (requestParameters['channelId'] == null) {
|
|
274
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling getConversationTitle().');
|
|
275
|
+
}
|
|
276
|
+
if (requestParameters['conversationId'] == null) {
|
|
277
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling getConversationTitle().');
|
|
278
|
+
}
|
|
279
|
+
const queryParameters = {};
|
|
280
|
+
const headerParameters = {};
|
|
281
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
282
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
283
|
+
}
|
|
284
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
285
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
286
|
+
}
|
|
287
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
288
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
289
|
+
}
|
|
290
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
291
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
292
|
+
}
|
|
293
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
294
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
295
|
+
}
|
|
296
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/title`;
|
|
297
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
298
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
299
|
+
return {
|
|
300
|
+
path: urlPath,
|
|
301
|
+
method: 'GET',
|
|
302
|
+
headers: headerParameters,
|
|
303
|
+
query: queryParameters,
|
|
304
|
+
};
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
/**
|
|
308
|
+
* 读取会话标题 / Get conversation title 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
309
|
+
* 读取会话标题 / Get conversation title
|
|
310
|
+
*/
|
|
311
|
+
getConversationTitleRaw(requestParameters, initOverrides) {
|
|
312
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
313
|
+
const requestOptions = yield this.getConversationTitleRequestOpts(requestParameters);
|
|
314
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
315
|
+
return new runtime.JSONApiResponse(response);
|
|
316
|
+
});
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* 读取会话标题 / Get conversation title 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
320
|
+
* 读取会话标题 / Get conversation title
|
|
321
|
+
*/
|
|
322
|
+
getConversationTitle(requestParameters, initOverrides) {
|
|
323
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
324
|
+
const response = yield this.getConversationTitleRaw(requestParameters, initOverrides);
|
|
325
|
+
return yield response.value();
|
|
326
|
+
});
|
|
327
|
+
}
|
|
328
|
+
/**
|
|
329
|
+
* Creates request options for listActiveConversations without sending the request
|
|
330
|
+
*/
|
|
331
|
+
listActiveConversationsRequestOpts(requestParameters) {
|
|
332
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
333
|
+
if (requestParameters['channelId'] == null) {
|
|
334
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling listActiveConversations().');
|
|
335
|
+
}
|
|
336
|
+
const queryParameters = {};
|
|
337
|
+
const headerParameters = {};
|
|
338
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
339
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
340
|
+
}
|
|
341
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
342
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
343
|
+
}
|
|
344
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
345
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
346
|
+
}
|
|
347
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
348
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
349
|
+
}
|
|
350
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
351
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
352
|
+
}
|
|
353
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/active`;
|
|
354
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
355
|
+
return {
|
|
356
|
+
path: urlPath,
|
|
357
|
+
method: 'GET',
|
|
358
|
+
headers: headerParameters,
|
|
359
|
+
query: queryParameters,
|
|
360
|
+
};
|
|
361
|
+
});
|
|
362
|
+
}
|
|
363
|
+
/**
|
|
364
|
+
* 查询活动会话 / List active conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
365
|
+
* 查询活动会话 / List active conversations
|
|
366
|
+
*/
|
|
367
|
+
listActiveConversationsRaw(requestParameters, initOverrides) {
|
|
368
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
369
|
+
const requestOptions = yield this.listActiveConversationsRequestOpts(requestParameters);
|
|
370
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
371
|
+
return new runtime.JSONApiResponse(response);
|
|
372
|
+
});
|
|
373
|
+
}
|
|
374
|
+
/**
|
|
375
|
+
* 查询活动会话 / List active conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
376
|
+
* 查询活动会话 / List active conversations
|
|
377
|
+
*/
|
|
378
|
+
listActiveConversations(requestParameters, initOverrides) {
|
|
379
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
380
|
+
const response = yield this.listActiveConversationsRaw(requestParameters, initOverrides);
|
|
381
|
+
return yield response.value();
|
|
382
|
+
});
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Creates request options for listConversationShares without sending the request
|
|
386
|
+
*/
|
|
387
|
+
listConversationSharesRequestOpts(requestParameters) {
|
|
388
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
389
|
+
if (requestParameters['channelId'] == null) {
|
|
390
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling listConversationShares().');
|
|
391
|
+
}
|
|
392
|
+
if (requestParameters['conversationId'] == null) {
|
|
393
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling listConversationShares().');
|
|
394
|
+
}
|
|
395
|
+
const queryParameters = {};
|
|
396
|
+
const headerParameters = {};
|
|
397
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
398
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
399
|
+
}
|
|
400
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
401
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
402
|
+
}
|
|
403
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
404
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
405
|
+
}
|
|
406
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
407
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
408
|
+
}
|
|
409
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
410
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
411
|
+
}
|
|
412
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/shares`;
|
|
413
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
414
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
415
|
+
return {
|
|
416
|
+
path: urlPath,
|
|
417
|
+
method: 'GET',
|
|
418
|
+
headers: headerParameters,
|
|
419
|
+
query: queryParameters,
|
|
420
|
+
};
|
|
421
|
+
});
|
|
422
|
+
}
|
|
423
|
+
/**
|
|
424
|
+
* 查询会话分享 / List conversation shares 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
425
|
+
* 查询会话分享 / List conversation shares
|
|
426
|
+
*/
|
|
427
|
+
listConversationSharesRaw(requestParameters, initOverrides) {
|
|
428
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
429
|
+
const requestOptions = yield this.listConversationSharesRequestOpts(requestParameters);
|
|
430
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
431
|
+
return new runtime.JSONApiResponse(response);
|
|
432
|
+
});
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* 查询会话分享 / List conversation shares 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
436
|
+
* 查询会话分享 / List conversation shares
|
|
437
|
+
*/
|
|
438
|
+
listConversationShares(requestParameters, initOverrides) {
|
|
439
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
440
|
+
const response = yield this.listConversationSharesRaw(requestParameters, initOverrides);
|
|
441
|
+
return yield response.value();
|
|
442
|
+
});
|
|
443
|
+
}
|
|
444
|
+
/**
|
|
445
|
+
* Creates request options for listConversations without sending the request
|
|
446
|
+
*/
|
|
447
|
+
listConversationsRequestOpts(requestParameters) {
|
|
448
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
449
|
+
if (requestParameters['channelId'] == null) {
|
|
450
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling listConversations().');
|
|
451
|
+
}
|
|
452
|
+
const queryParameters = {};
|
|
453
|
+
if (requestParameters['current'] != null) {
|
|
454
|
+
queryParameters['current'] = requestParameters['current'];
|
|
455
|
+
}
|
|
456
|
+
if (requestParameters['size'] != null) {
|
|
457
|
+
queryParameters['size'] = requestParameters['size'];
|
|
458
|
+
}
|
|
459
|
+
if (requestParameters['orderBy'] != null) {
|
|
460
|
+
queryParameters['orderBy'] = requestParameters['orderBy'];
|
|
461
|
+
}
|
|
462
|
+
if (requestParameters['orderDirection'] != null) {
|
|
463
|
+
queryParameters['orderDirection'] = requestParameters['orderDirection'];
|
|
464
|
+
}
|
|
465
|
+
if (requestParameters['orderNullHandling'] != null) {
|
|
466
|
+
queryParameters['orderNullHandling'] = requestParameters['orderNullHandling'];
|
|
467
|
+
}
|
|
468
|
+
if (requestParameters['keyword'] != null) {
|
|
469
|
+
queryParameters['keyword'] = requestParameters['keyword'];
|
|
470
|
+
}
|
|
471
|
+
if (requestParameters['status'] != null) {
|
|
472
|
+
queryParameters['status'] = requestParameters['status'];
|
|
473
|
+
}
|
|
474
|
+
const headerParameters = {};
|
|
475
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
476
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
477
|
+
}
|
|
478
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
479
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
480
|
+
}
|
|
481
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
482
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
483
|
+
}
|
|
484
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
485
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
486
|
+
}
|
|
487
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
488
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
489
|
+
}
|
|
490
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations`;
|
|
491
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
492
|
+
return {
|
|
493
|
+
path: urlPath,
|
|
494
|
+
method: 'GET',
|
|
495
|
+
headers: headerParameters,
|
|
496
|
+
query: queryParameters,
|
|
497
|
+
};
|
|
498
|
+
});
|
|
499
|
+
}
|
|
500
|
+
/**
|
|
501
|
+
* 分页查询会话 / List conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
502
|
+
* 分页查询会话 / List conversations
|
|
503
|
+
*/
|
|
504
|
+
listConversationsRaw(requestParameters, initOverrides) {
|
|
505
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
506
|
+
const requestOptions = yield this.listConversationsRequestOpts(requestParameters);
|
|
507
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
508
|
+
return new runtime.JSONApiResponse(response);
|
|
509
|
+
});
|
|
510
|
+
}
|
|
511
|
+
/**
|
|
512
|
+
* 分页查询会话 / List conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
513
|
+
* 分页查询会话 / List conversations
|
|
514
|
+
*/
|
|
515
|
+
listConversations(requestParameters, initOverrides) {
|
|
516
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
517
|
+
const response = yield this.listConversationsRaw(requestParameters, initOverrides);
|
|
518
|
+
return yield response.value();
|
|
519
|
+
});
|
|
520
|
+
}
|
|
521
|
+
/**
|
|
522
|
+
* Creates request options for listUnreadConversations without sending the request
|
|
523
|
+
*/
|
|
524
|
+
listUnreadConversationsRequestOpts(requestParameters) {
|
|
525
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
526
|
+
if (requestParameters['channelId'] == null) {
|
|
527
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling listUnreadConversations().');
|
|
528
|
+
}
|
|
529
|
+
const queryParameters = {};
|
|
530
|
+
const headerParameters = {};
|
|
531
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
532
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
533
|
+
}
|
|
534
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
535
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
536
|
+
}
|
|
537
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
538
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
539
|
+
}
|
|
540
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
541
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
542
|
+
}
|
|
543
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
544
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
545
|
+
}
|
|
546
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/unread`;
|
|
547
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
548
|
+
return {
|
|
549
|
+
path: urlPath,
|
|
550
|
+
method: 'GET',
|
|
551
|
+
headers: headerParameters,
|
|
552
|
+
query: queryParameters,
|
|
553
|
+
};
|
|
554
|
+
});
|
|
555
|
+
}
|
|
556
|
+
/**
|
|
557
|
+
* 查询未读会话 / List unread conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
558
|
+
* 查询未读会话 / List unread conversations
|
|
559
|
+
*/
|
|
560
|
+
listUnreadConversationsRaw(requestParameters, initOverrides) {
|
|
561
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
562
|
+
const requestOptions = yield this.listUnreadConversationsRequestOpts(requestParameters);
|
|
563
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
564
|
+
return new runtime.JSONApiResponse(response);
|
|
565
|
+
});
|
|
566
|
+
}
|
|
567
|
+
/**
|
|
568
|
+
* 查询未读会话 / List unread conversations 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
569
|
+
* 查询未读会话 / List unread conversations
|
|
570
|
+
*/
|
|
571
|
+
listUnreadConversations(requestParameters, initOverrides) {
|
|
572
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
573
|
+
const response = yield this.listUnreadConversationsRaw(requestParameters, initOverrides);
|
|
574
|
+
return yield response.value();
|
|
575
|
+
});
|
|
576
|
+
}
|
|
577
|
+
/**
|
|
578
|
+
* Creates request options for markConversationRead without sending the request
|
|
579
|
+
*/
|
|
580
|
+
markConversationReadRequestOpts(requestParameters) {
|
|
581
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
582
|
+
if (requestParameters['channelId'] == null) {
|
|
583
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling markConversationRead().');
|
|
584
|
+
}
|
|
585
|
+
if (requestParameters['conversationId'] == null) {
|
|
586
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling markConversationRead().');
|
|
587
|
+
}
|
|
588
|
+
if (requestParameters['conversationReadReceiptInput'] == null) {
|
|
589
|
+
throw new runtime.RequiredError('conversationReadReceiptInput', 'Required parameter "conversationReadReceiptInput" was null or undefined when calling markConversationRead().');
|
|
590
|
+
}
|
|
591
|
+
const queryParameters = {};
|
|
592
|
+
const headerParameters = {};
|
|
593
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
594
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
595
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
596
|
+
}
|
|
597
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
598
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
599
|
+
}
|
|
600
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
601
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
602
|
+
}
|
|
603
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
604
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
605
|
+
}
|
|
606
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
607
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
608
|
+
}
|
|
609
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/read-receipt`;
|
|
610
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
611
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
612
|
+
return {
|
|
613
|
+
path: urlPath,
|
|
614
|
+
method: 'PUT',
|
|
615
|
+
headers: headerParameters,
|
|
616
|
+
query: queryParameters,
|
|
617
|
+
body: requestParameters['conversationReadReceiptInput'],
|
|
618
|
+
};
|
|
619
|
+
});
|
|
620
|
+
}
|
|
621
|
+
/**
|
|
622
|
+
* 推进会话已读游标 / Mark a conversation as read 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
623
|
+
* 推进会话已读游标 / Mark a conversation as read
|
|
624
|
+
*/
|
|
625
|
+
markConversationReadRaw(requestParameters, initOverrides) {
|
|
626
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
627
|
+
const requestOptions = yield this.markConversationReadRequestOpts(requestParameters);
|
|
628
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
629
|
+
return new runtime.JSONApiResponse(response);
|
|
630
|
+
});
|
|
631
|
+
}
|
|
632
|
+
/**
|
|
633
|
+
* 推进会话已读游标 / Mark a conversation as read 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
634
|
+
* 推进会话已读游标 / Mark a conversation as read
|
|
635
|
+
*/
|
|
636
|
+
markConversationRead(requestParameters, initOverrides) {
|
|
637
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
638
|
+
const response = yield this.markConversationReadRaw(requestParameters, initOverrides);
|
|
639
|
+
return yield response.value();
|
|
640
|
+
});
|
|
641
|
+
}
|
|
642
|
+
/**
|
|
643
|
+
* Creates request options for queryConversationActivities without sending the request
|
|
644
|
+
*/
|
|
645
|
+
queryConversationActivitiesRequestOpts(requestParameters) {
|
|
646
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
647
|
+
if (requestParameters['channelId'] == null) {
|
|
648
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling queryConversationActivities().');
|
|
649
|
+
}
|
|
650
|
+
if (requestParameters['conversationActivityBatchInput'] == null) {
|
|
651
|
+
throw new runtime.RequiredError('conversationActivityBatchInput', 'Required parameter "conversationActivityBatchInput" was null or undefined when calling queryConversationActivities().');
|
|
652
|
+
}
|
|
653
|
+
const queryParameters = {};
|
|
654
|
+
const headerParameters = {};
|
|
655
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
656
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
657
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
658
|
+
}
|
|
659
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
660
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
661
|
+
}
|
|
662
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
663
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
664
|
+
}
|
|
665
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
666
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
667
|
+
}
|
|
668
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
669
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
670
|
+
}
|
|
671
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/activity/query`;
|
|
672
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
673
|
+
return {
|
|
674
|
+
path: urlPath,
|
|
675
|
+
method: 'POST',
|
|
676
|
+
headers: headerParameters,
|
|
677
|
+
query: queryParameters,
|
|
678
|
+
body: requestParameters['conversationActivityBatchInput'],
|
|
679
|
+
};
|
|
680
|
+
});
|
|
681
|
+
}
|
|
682
|
+
/**
|
|
683
|
+
* 批量查询会话活动 / Query conversation activities 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
684
|
+
* 批量查询会话活动 / Query conversation activities
|
|
685
|
+
*/
|
|
686
|
+
queryConversationActivitiesRaw(requestParameters, initOverrides) {
|
|
687
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
688
|
+
const requestOptions = yield this.queryConversationActivitiesRequestOpts(requestParameters);
|
|
689
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
690
|
+
return new runtime.JSONApiResponse(response);
|
|
691
|
+
});
|
|
692
|
+
}
|
|
693
|
+
/**
|
|
694
|
+
* 批量查询会话活动 / Query conversation activities 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
695
|
+
* 批量查询会话活动 / Query conversation activities
|
|
696
|
+
*/
|
|
697
|
+
queryConversationActivities(requestParameters, initOverrides) {
|
|
698
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
699
|
+
const response = yield this.queryConversationActivitiesRaw(requestParameters, initOverrides);
|
|
700
|
+
return yield response.value();
|
|
701
|
+
});
|
|
702
|
+
}
|
|
703
|
+
/**
|
|
704
|
+
* Creates request options for revokeConversationShare without sending the request
|
|
705
|
+
*/
|
|
706
|
+
revokeConversationShareRequestOpts(requestParameters) {
|
|
707
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
708
|
+
if (requestParameters['channelId'] == null) {
|
|
709
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling revokeConversationShare().');
|
|
710
|
+
}
|
|
711
|
+
if (requestParameters['conversationId'] == null) {
|
|
712
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling revokeConversationShare().');
|
|
713
|
+
}
|
|
714
|
+
if (requestParameters['shareId'] == null) {
|
|
715
|
+
throw new runtime.RequiredError('shareId', 'Required parameter "shareId" was null or undefined when calling revokeConversationShare().');
|
|
716
|
+
}
|
|
717
|
+
const queryParameters = {};
|
|
718
|
+
const headerParameters = {};
|
|
719
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
720
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
721
|
+
}
|
|
722
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
723
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
724
|
+
}
|
|
725
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
726
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
727
|
+
}
|
|
728
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
729
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
730
|
+
}
|
|
731
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
732
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
733
|
+
}
|
|
734
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/shares/{shareId}`;
|
|
735
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
736
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
737
|
+
urlPath = urlPath.replace('{shareId}', encodeURIComponent(String(requestParameters['shareId'])));
|
|
738
|
+
return {
|
|
739
|
+
path: urlPath,
|
|
740
|
+
method: 'DELETE',
|
|
741
|
+
headers: headerParameters,
|
|
742
|
+
query: queryParameters,
|
|
743
|
+
};
|
|
744
|
+
});
|
|
745
|
+
}
|
|
746
|
+
/**
|
|
747
|
+
* 撤销会话分享 / Revoke a conversation share 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
748
|
+
* 撤销会话分享 / Revoke a conversation share
|
|
749
|
+
*/
|
|
750
|
+
revokeConversationShareRaw(requestParameters, initOverrides) {
|
|
751
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
752
|
+
const requestOptions = yield this.revokeConversationShareRequestOpts(requestParameters);
|
|
753
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
754
|
+
return new runtime.JSONApiResponse(response);
|
|
755
|
+
});
|
|
756
|
+
}
|
|
757
|
+
/**
|
|
758
|
+
* 撤销会话分享 / Revoke a conversation share 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
759
|
+
* 撤销会话分享 / Revoke a conversation share
|
|
760
|
+
*/
|
|
761
|
+
revokeConversationShare(requestParameters, initOverrides) {
|
|
762
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
763
|
+
const response = yield this.revokeConversationShareRaw(requestParameters, initOverrides);
|
|
764
|
+
return yield response.value();
|
|
765
|
+
});
|
|
766
|
+
}
|
|
767
|
+
/**
|
|
768
|
+
* Creates request options for updateConversationStatus without sending the request
|
|
769
|
+
*/
|
|
770
|
+
updateConversationStatusRequestOpts(requestParameters) {
|
|
771
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
772
|
+
if (requestParameters['channelId'] == null) {
|
|
773
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling updateConversationStatus().');
|
|
774
|
+
}
|
|
775
|
+
if (requestParameters['conversationId'] == null) {
|
|
776
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling updateConversationStatus().');
|
|
777
|
+
}
|
|
778
|
+
if (requestParameters['conversationStatusInput'] == null) {
|
|
779
|
+
throw new runtime.RequiredError('conversationStatusInput', 'Required parameter "conversationStatusInput" was null or undefined when calling updateConversationStatus().');
|
|
780
|
+
}
|
|
781
|
+
const queryParameters = {};
|
|
782
|
+
const headerParameters = {};
|
|
783
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
784
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
785
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
786
|
+
}
|
|
787
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
788
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
789
|
+
}
|
|
790
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
791
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
792
|
+
}
|
|
793
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
794
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
795
|
+
}
|
|
796
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
797
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
798
|
+
}
|
|
799
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/status`;
|
|
800
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
801
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
802
|
+
return {
|
|
803
|
+
path: urlPath,
|
|
804
|
+
method: 'PATCH',
|
|
805
|
+
headers: headerParameters,
|
|
806
|
+
query: queryParameters,
|
|
807
|
+
body: requestParameters['conversationStatusInput'],
|
|
808
|
+
};
|
|
809
|
+
});
|
|
810
|
+
}
|
|
811
|
+
/**
|
|
812
|
+
* 更新会话状态 / Update conversation status 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
813
|
+
* 更新会话状态 / Update conversation status
|
|
814
|
+
*/
|
|
815
|
+
updateConversationStatusRaw(requestParameters, initOverrides) {
|
|
816
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
817
|
+
const requestOptions = yield this.updateConversationStatusRequestOpts(requestParameters);
|
|
818
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
819
|
+
return new runtime.VoidApiResponse(response);
|
|
820
|
+
});
|
|
821
|
+
}
|
|
822
|
+
/**
|
|
823
|
+
* 更新会话状态 / Update conversation status 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
824
|
+
* 更新会话状态 / Update conversation status
|
|
825
|
+
*/
|
|
826
|
+
updateConversationStatus(requestParameters, initOverrides) {
|
|
827
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
828
|
+
yield this.updateConversationStatusRaw(requestParameters, initOverrides);
|
|
829
|
+
});
|
|
830
|
+
}
|
|
831
|
+
/**
|
|
832
|
+
* Creates request options for updateConversationTitle without sending the request
|
|
833
|
+
*/
|
|
834
|
+
updateConversationTitleRequestOpts(requestParameters) {
|
|
835
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
836
|
+
if (requestParameters['channelId'] == null) {
|
|
837
|
+
throw new runtime.RequiredError('channelId', 'Required parameter "channelId" was null or undefined when calling updateConversationTitle().');
|
|
838
|
+
}
|
|
839
|
+
if (requestParameters['conversationId'] == null) {
|
|
840
|
+
throw new runtime.RequiredError('conversationId', 'Required parameter "conversationId" was null or undefined when calling updateConversationTitle().');
|
|
841
|
+
}
|
|
842
|
+
if (requestParameters['conversationTitleInput'] == null) {
|
|
843
|
+
throw new runtime.RequiredError('conversationTitleInput', 'Required parameter "conversationTitleInput" was null or undefined when calling updateConversationTitle().');
|
|
844
|
+
}
|
|
845
|
+
const queryParameters = {};
|
|
846
|
+
const headerParameters = {};
|
|
847
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
848
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
849
|
+
headerParameters["X-OpenAPI-User"] = yield this.configuration.apiKey("X-OpenAPI-User"); // OpenApiUser authentication
|
|
850
|
+
}
|
|
851
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
852
|
+
headerParameters["X-OpenAPI-AK"] = yield this.configuration.apiKey("X-OpenAPI-AK"); // OpenApiAccessKey authentication
|
|
853
|
+
}
|
|
854
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
855
|
+
headerParameters["X-OpenAPI-Timestamp"] = yield this.configuration.apiKey("X-OpenAPI-Timestamp"); // OpenApiTimestamp authentication
|
|
856
|
+
}
|
|
857
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
858
|
+
headerParameters["X-OpenAPI-Nonce"] = yield this.configuration.apiKey("X-OpenAPI-Nonce"); // OpenApiNonce authentication
|
|
859
|
+
}
|
|
860
|
+
if (this.configuration && this.configuration.apiKey) {
|
|
861
|
+
headerParameters["X-OpenAPI-Signature"] = yield this.configuration.apiKey("X-OpenAPI-Signature"); // OpenApiSignature authentication
|
|
862
|
+
}
|
|
863
|
+
let urlPath = `/api/agents/channel/openapi/v1/{channelId}/chat/conversations/{conversationId}/title`;
|
|
864
|
+
urlPath = urlPath.replace('{channelId}', encodeURIComponent(String(requestParameters['channelId'])));
|
|
865
|
+
urlPath = urlPath.replace('{conversationId}', encodeURIComponent(String(requestParameters['conversationId'])));
|
|
866
|
+
return {
|
|
867
|
+
path: urlPath,
|
|
868
|
+
method: 'PATCH',
|
|
869
|
+
headers: headerParameters,
|
|
870
|
+
query: queryParameters,
|
|
871
|
+
body: requestParameters['conversationTitleInput'],
|
|
872
|
+
};
|
|
873
|
+
});
|
|
874
|
+
}
|
|
875
|
+
/**
|
|
876
|
+
* 更新会话标题 / Update conversation title 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
877
|
+
* 更新会话标题 / Update conversation title
|
|
878
|
+
*/
|
|
879
|
+
updateConversationTitleRaw(requestParameters, initOverrides) {
|
|
880
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
881
|
+
const requestOptions = yield this.updateConversationTitleRequestOpts(requestParameters);
|
|
882
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
883
|
+
return new runtime.VoidApiResponse(response);
|
|
884
|
+
});
|
|
885
|
+
}
|
|
886
|
+
/**
|
|
887
|
+
* 更新会话标题 / Update conversation title 请求会在身份验签和资源归属校验后执行;响应字段以本契约为准。 / The request runs after signature and resource-ownership validation; this contract defines the response fields.
|
|
888
|
+
* 更新会话标题 / Update conversation title
|
|
889
|
+
*/
|
|
890
|
+
updateConversationTitle(requestParameters, initOverrides) {
|
|
891
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
892
|
+
yield this.updateConversationTitleRaw(requestParameters, initOverrides);
|
|
893
|
+
});
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
/**
|
|
897
|
+
* @export
|
|
898
|
+
*/
|
|
899
|
+
export const ListConversationsOrderDirectionEnum = {
|
|
900
|
+
Asc: 'ASC',
|
|
901
|
+
Desc: 'DESC',
|
|
902
|
+
};
|
|
903
|
+
/**
|
|
904
|
+
* @export
|
|
905
|
+
*/
|
|
906
|
+
export const ListConversationsOrderNullHandlingEnum = {
|
|
907
|
+
Native: 'NATIVE',
|
|
908
|
+
NullsFirst: 'NULLS_FIRST',
|
|
909
|
+
NullsLast: 'NULLS_LAST',
|
|
910
|
+
};
|