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