@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,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
+ };