@lingya-ai/agents-sdk 0.5.0 → 0.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (740) hide show
  1. package/README.md +63 -5
  2. package/dist/apis/ChatApi.d.ts +175 -2
  3. package/dist/apis/ChatApi.js +429 -2
  4. package/dist/apis/ConfigurationApi.d.ts +23 -2
  5. package/dist/apis/ConfigurationApi.js +65 -2
  6. package/dist/apis/ConversationsApi.d.ts +139 -71
  7. package/dist/apis/ConversationsApi.js +316 -85
  8. package/dist/apis/EventsApi.d.ts +2 -2
  9. package/dist/apis/EventsApi.js +8 -2
  10. package/dist/apis/FilesApi.d.ts +2 -2
  11. package/dist/apis/FilesApi.js +20 -2
  12. package/dist/apis/InteractionsApi.d.ts +30 -2
  13. package/dist/apis/InteractionsApi.js +81 -2
  14. package/dist/apis/KnowledgeApi.d.ts +2 -2
  15. package/dist/apis/KnowledgeApi.js +8 -2
  16. package/dist/apis/MessagesApi.d.ts +35 -2
  17. package/dist/apis/MessagesApi.js +105 -2
  18. package/dist/apis/SQLApi.d.ts +2 -2
  19. package/dist/apis/SQLApi.js +11 -2
  20. package/dist/apis/WorkspaceApi.d.ts +2 -2
  21. package/dist/apis/WorkspaceApi.js +8 -2
  22. package/dist/bound.d.ts +254 -63
  23. package/dist/bound.js +242 -131
  24. package/dist/browser.d.ts +14 -0
  25. package/dist/browser.js +67 -0
  26. package/dist/client-core.d.ts +101 -0
  27. package/dist/client-core.js +158 -0
  28. package/dist/client.d.ts +27 -125
  29. package/dist/client.js +112 -158
  30. package/dist/esm/apis/ChatApi.d.ts +175 -2
  31. package/dist/esm/apis/ChatApi.js +429 -2
  32. package/dist/esm/apis/ConfigurationApi.d.ts +23 -2
  33. package/dist/esm/apis/ConfigurationApi.js +65 -2
  34. package/dist/esm/apis/ConversationsApi.d.ts +139 -71
  35. package/dist/esm/apis/ConversationsApi.js +315 -84
  36. package/dist/esm/apis/EventsApi.d.ts +2 -2
  37. package/dist/esm/apis/EventsApi.js +8 -2
  38. package/dist/esm/apis/FilesApi.d.ts +2 -2
  39. package/dist/esm/apis/FilesApi.js +20 -2
  40. package/dist/esm/apis/InteractionsApi.d.ts +30 -2
  41. package/dist/esm/apis/InteractionsApi.js +81 -2
  42. package/dist/esm/apis/KnowledgeApi.d.ts +2 -2
  43. package/dist/esm/apis/KnowledgeApi.js +8 -2
  44. package/dist/esm/apis/MessagesApi.d.ts +35 -2
  45. package/dist/esm/apis/MessagesApi.js +105 -2
  46. package/dist/esm/apis/SQLApi.d.ts +2 -2
  47. package/dist/esm/apis/SQLApi.js +11 -2
  48. package/dist/esm/apis/WorkspaceApi.d.ts +2 -2
  49. package/dist/esm/apis/WorkspaceApi.js +8 -2
  50. package/dist/esm/bound.d.ts +254 -63
  51. package/dist/esm/bound.js +242 -131
  52. package/dist/esm/browser.d.ts +14 -0
  53. package/dist/esm/browser.js +47 -0
  54. package/dist/esm/client-core.d.ts +101 -0
  55. package/dist/esm/client-core.js +142 -0
  56. package/dist/esm/client.d.ts +27 -125
  57. package/dist/esm/client.js +98 -159
  58. package/dist/esm/events.js +1 -1
  59. package/dist/esm/hmac.d.ts +1 -1
  60. package/dist/esm/hmac.js +3 -2
  61. package/dist/esm/lifecycle.d.ts +55 -0
  62. package/dist/esm/lifecycle.js +163 -0
  63. package/dist/esm/models/AgentAsyncTaskSync.d.ts +2 -2
  64. package/dist/esm/models/AgentAsyncTaskSync.js +2 -2
  65. package/dist/esm/models/AgentFile.d.ts +2 -2
  66. package/dist/esm/models/AgentFile.js +2 -2
  67. package/dist/esm/models/AgentGoal.d.ts +117 -0
  68. package/dist/esm/models/AgentGoal.js +127 -0
  69. package/dist/esm/models/AgentGoalConfig.d.ts +34 -0
  70. package/dist/esm/models/AgentGoalConfig.js +47 -0
  71. package/dist/esm/models/AgentGoalHistory.d.ts +43 -0
  72. package/dist/esm/models/AgentGoalHistory.js +56 -0
  73. package/dist/esm/models/AgentGoalRefInput.d.ts +34 -0
  74. package/dist/esm/models/AgentGoalRefInput.js +47 -0
  75. package/dist/esm/models/AgentGoalView.d.ts +31 -0
  76. package/dist/esm/models/AgentGoalView.js +44 -0
  77. package/dist/esm/models/AgentsConfig.d.ts +7 -2
  78. package/dist/esm/models/AgentsConfig.js +5 -2
  79. package/dist/esm/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
  80. package/dist/esm/models/AiChatAwaitingInputBriefEvent.js +2 -2
  81. package/dist/esm/models/AiChatBriefEvent.d.ts +2 -8
  82. package/dist/esm/models/AiChatBriefEvent.js +2 -12
  83. package/dist/esm/models/AiChatBriefEventList.d.ts +2 -2
  84. package/dist/esm/models/AiChatBriefEventList.js +2 -2
  85. package/dist/esm/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
  86. package/dist/esm/models/AiChatCompactorWarningBriefEvent.js +2 -2
  87. package/dist/esm/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
  88. package/dist/esm/models/AiChatCompressorContextEndBriefEvent.js +2 -2
  89. package/dist/esm/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
  90. package/dist/esm/models/AiChatCompressorContextStartBriefEvent.js +2 -2
  91. package/dist/esm/models/AiChatEndBriefEvent.d.ts +2 -2
  92. package/dist/esm/models/AiChatEndBriefEvent.js +2 -2
  93. package/dist/esm/models/AiChatErrorBriefEvent.d.ts +2 -2
  94. package/dist/esm/models/AiChatErrorBriefEvent.js +2 -2
  95. package/dist/esm/models/AiChatEventsBatch.d.ts +2 -2
  96. package/dist/esm/models/AiChatEventsBatch.js +2 -2
  97. package/dist/esm/models/AiChatEventsBatchInput.d.ts +2 -2
  98. package/dist/esm/models/AiChatEventsBatchInput.js +2 -2
  99. package/dist/esm/models/AiChatEventsBatchSkipped.d.ts +2 -2
  100. package/dist/esm/models/AiChatEventsBatchSkipped.js +2 -2
  101. package/dist/esm/models/AiChatFileRef.d.ts +2 -2
  102. package/dist/esm/models/AiChatFileRef.js +2 -2
  103. package/dist/esm/models/AiChatInput.d.ts +10 -2
  104. package/dist/esm/models/AiChatInput.js +6 -2
  105. package/dist/esm/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
  106. package/dist/esm/models/AiChatManualInterruptBriefEvent.js +2 -2
  107. package/dist/esm/models/AiChatMessageBriefEvent.d.ts +2 -2
  108. package/dist/esm/models/AiChatMessageBriefEvent.js +2 -2
  109. package/dist/esm/models/AiChatMessageEvent.d.ts +2 -2
  110. package/dist/esm/models/AiChatMessageEvent.js +2 -2
  111. package/dist/esm/models/AiChatStartBriefEvent.d.ts +2 -2
  112. package/dist/esm/models/AiChatStartBriefEvent.js +2 -2
  113. package/dist/esm/models/AiChatStreamInput.d.ts +2 -2
  114. package/dist/esm/models/AiChatStreamInput.js +2 -2
  115. package/dist/esm/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
  116. package/dist/esm/models/AiChatSubAgentCallBriefEvent.js +2 -2
  117. package/dist/esm/models/AiChatSubmission.d.ts +2 -2
  118. package/dist/esm/models/AiChatSubmission.js +2 -2
  119. package/dist/esm/models/AiChatThinkBriefEvent.d.ts +2 -2
  120. package/dist/esm/models/AiChatThinkBriefEvent.js +2 -2
  121. package/dist/esm/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
  122. package/dist/esm/models/AiChatToolExecutionBriefEvent.js +2 -2
  123. package/dist/esm/models/AiChatUserQueryBriefEvent.d.ts +2 -2
  124. package/dist/esm/models/AiChatUserQueryBriefEvent.js +2 -2
  125. package/dist/esm/models/ArtifactInfo.d.ts +2 -2
  126. package/dist/esm/models/ArtifactInfo.js +2 -2
  127. package/dist/esm/models/AskUserQuestionExtensionContent.d.ts +2 -2
  128. package/dist/esm/models/AskUserQuestionExtensionContent.js +2 -2
  129. package/dist/esm/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
  130. package/dist/esm/models/AskUserQuestionExtensionToolExtension.js +2 -2
  131. package/dist/esm/models/AskUserQuestionOption.d.ts +2 -2
  132. package/dist/esm/models/AskUserQuestionOption.js +2 -2
  133. package/dist/esm/models/AsyncTask.d.ts +2 -2
  134. package/dist/esm/models/AsyncTask.js +2 -2
  135. package/dist/esm/models/AsyncTaskPage.d.ts +2 -2
  136. package/dist/esm/models/AsyncTaskPage.js +2 -2
  137. package/dist/esm/models/AttachmentExtension.d.ts +2 -2
  138. package/dist/esm/models/AttachmentExtension.js +2 -2
  139. package/dist/esm/models/BooleanChartColumn.d.ts +2 -2
  140. package/dist/esm/models/BooleanChartColumn.js +2 -2
  141. package/dist/esm/models/ChartColumnData.d.ts +2 -2
  142. package/dist/esm/models/ChartColumnData.js +2 -2
  143. package/dist/esm/models/ChartNumberFormat.d.ts +2 -2
  144. package/dist/esm/models/ChartNumberFormat.js +2 -2
  145. package/dist/esm/models/ChartQualitySummary.d.ts +2 -2
  146. package/dist/esm/models/ChartQualitySummary.js +2 -2
  147. package/dist/esm/models/ChartSeries.d.ts +2 -2
  148. package/dist/esm/models/ChartSeries.js +2 -2
  149. package/dist/esm/models/ChartSpec.d.ts +2 -2
  150. package/dist/esm/models/ChartSpec.js +2 -2
  151. package/dist/esm/models/ChartTimeContext.d.ts +2 -2
  152. package/dist/esm/models/ChartTimeContext.js +2 -2
  153. package/dist/esm/models/ChatModelConfig.d.ts +2 -2
  154. package/dist/esm/models/ChatModelConfig.js +2 -2
  155. package/dist/esm/models/ChatModelSpec.d.ts +2 -2
  156. package/dist/esm/models/ChatModelSpec.js +2 -2
  157. package/dist/esm/models/ChatStreamProbeEvent.d.ts +2 -2
  158. package/dist/esm/models/ChatStreamProbeEvent.js +2 -2
  159. package/dist/esm/models/ChatStreamProbeInput.d.ts +2 -2
  160. package/dist/esm/models/ChatStreamProbeInput.js +2 -2
  161. package/dist/esm/models/CitationMetadata.d.ts +2 -2
  162. package/dist/esm/models/CitationMetadata.js +2 -2
  163. package/dist/esm/models/CitationMetadataList.d.ts +2 -2
  164. package/dist/esm/models/CitationMetadataList.js +2 -2
  165. package/dist/esm/models/CodeMessage.d.ts +2 -2
  166. package/dist/esm/models/CodeMessage.js +2 -2
  167. package/dist/esm/models/ConfirmUploadInput.d.ts +2 -2
  168. package/dist/esm/models/ConfirmUploadInput.js +2 -2
  169. package/dist/esm/models/ConversationActivity.d.ts +2 -2
  170. package/dist/esm/models/ConversationActivity.js +2 -2
  171. package/dist/esm/models/ConversationActivityBatchInput.d.ts +2 -2
  172. package/dist/esm/models/ConversationActivityBatchInput.js +2 -2
  173. package/dist/esm/models/ConversationActivityList.d.ts +2 -2
  174. package/dist/esm/models/ConversationActivityList.js +2 -2
  175. package/dist/esm/models/ConversationConfig.d.ts +7 -3
  176. package/dist/esm/models/ConversationConfig.js +9 -3
  177. package/dist/esm/models/ConversationContextUsage.d.ts +2 -2
  178. package/dist/esm/models/ConversationContextUsage.js +2 -2
  179. package/dist/esm/models/ConversationGroup.d.ts +42 -0
  180. package/dist/esm/models/ConversationGroup.js +56 -0
  181. package/dist/esm/models/ConversationGroupDeleted.d.ts +34 -0
  182. package/dist/esm/models/ConversationGroupDeleted.js +47 -0
  183. package/dist/esm/models/ConversationGroupList.d.ts +31 -0
  184. package/dist/esm/models/ConversationGroupList.js +44 -0
  185. package/dist/esm/models/ConversationGroupNameInput.d.ts +30 -0
  186. package/dist/esm/models/ConversationGroupNameInput.js +43 -0
  187. package/dist/esm/models/ConversationIds.d.ts +2 -2
  188. package/dist/esm/models/ConversationIds.js +2 -2
  189. package/dist/esm/models/ConversationMessage.d.ts +2 -2
  190. package/dist/esm/models/ConversationMessage.js +2 -2
  191. package/dist/esm/models/ConversationMessagePage.d.ts +2 -2
  192. package/dist/esm/models/ConversationMessagePage.js +2 -2
  193. package/dist/esm/models/ConversationMessageSync.d.ts +39 -0
  194. package/dist/esm/models/ConversationMessageSync.js +52 -0
  195. package/dist/esm/models/ConversationMetadata.d.ts +63 -0
  196. package/dist/esm/models/ConversationMetadata.js +76 -0
  197. package/dist/esm/models/ConversationReadReceipt.d.ts +2 -2
  198. package/dist/esm/models/ConversationReadReceipt.js +2 -2
  199. package/dist/esm/models/ConversationReadReceiptInput.d.ts +2 -2
  200. package/dist/esm/models/ConversationReadReceiptInput.js +2 -2
  201. package/dist/esm/models/ConversationStats.d.ts +2 -2
  202. package/dist/esm/models/ConversationStats.js +2 -2
  203. package/dist/esm/models/ConversationStatusInput.d.ts +2 -2
  204. package/dist/esm/models/ConversationStatusInput.js +2 -2
  205. package/dist/esm/models/ConversationSummary.d.ts +10 -2
  206. package/dist/esm/models/ConversationSummary.js +6 -2
  207. package/dist/esm/models/ConversationSummaryList.d.ts +7 -2
  208. package/dist/esm/models/ConversationSummaryList.js +7 -2
  209. package/dist/esm/models/ConversationTitle.d.ts +2 -2
  210. package/dist/esm/models/ConversationTitle.js +2 -2
  211. package/dist/esm/models/ConversationTitleInput.d.ts +2 -2
  212. package/dist/esm/models/ConversationTitleInput.js +2 -2
  213. package/dist/esm/models/ConversationUserMessage.d.ts +8 -6
  214. package/dist/esm/models/ConversationUserMessage.js +6 -4
  215. package/dist/esm/models/CreateFileInput.d.ts +2 -2
  216. package/dist/esm/models/CreateFileInput.js +2 -2
  217. package/dist/esm/models/DecimalChartColumn.d.ts +2 -2
  218. package/dist/esm/models/DecimalChartColumn.js +2 -2
  219. package/dist/esm/models/DefaultModel.d.ts +2 -2
  220. package/dist/esm/models/DefaultModel.js +2 -2
  221. package/dist/esm/models/DoubleChartColumn.d.ts +2 -2
  222. package/dist/esm/models/DoubleChartColumn.js +2 -2
  223. package/dist/esm/models/EditAgentGoalInput.d.ts +38 -0
  224. package/dist/esm/models/EditAgentGoalInput.js +51 -0
  225. package/dist/esm/models/FieldError.d.ts +2 -2
  226. package/dist/esm/models/FieldError.js +2 -2
  227. package/dist/esm/models/FileExists.d.ts +2 -2
  228. package/dist/esm/models/FileExists.js +2 -2
  229. package/dist/esm/models/GeneratePreSignedUrlInput.d.ts +2 -2
  230. package/dist/esm/models/GeneratePreSignedUrlInput.js +2 -2
  231. package/dist/esm/models/GeneratePreSignedUrlOutput.d.ts +2 -2
  232. package/dist/esm/models/GeneratePreSignedUrlOutput.js +2 -2
  233. package/dist/esm/models/ImageGenerationExtensionContent.d.ts +2 -2
  234. package/dist/esm/models/ImageGenerationExtensionContent.js +2 -2
  235. package/dist/esm/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
  236. package/dist/esm/models/ImageGenerationExtensionToolExtension.js +2 -2
  237. package/dist/esm/models/InputTokenBreakdown.d.ts +2 -2
  238. package/dist/esm/models/InputTokenBreakdown.js +2 -2
  239. package/dist/esm/models/InstantChartColumn.d.ts +2 -2
  240. package/dist/esm/models/InstantChartColumn.js +2 -2
  241. package/dist/esm/models/IntegerChartColumn.d.ts +2 -2
  242. package/dist/esm/models/IntegerChartColumn.js +2 -2
  243. package/dist/esm/models/JsRunScriptExtensionContent.d.ts +2 -2
  244. package/dist/esm/models/JsRunScriptExtensionContent.js +2 -2
  245. package/dist/esm/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
  246. package/dist/esm/models/JsRunScriptExtensionToolExtension.js +2 -2
  247. package/dist/esm/models/JsRunScriptResultExtensionContent.d.ts +2 -2
  248. package/dist/esm/models/JsRunScriptResultExtensionContent.js +2 -2
  249. package/dist/esm/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
  250. package/dist/esm/models/JsRunScriptResultExtensionToolExtension.js +2 -2
  251. package/dist/esm/models/LocalDateChartColumn.d.ts +2 -2
  252. package/dist/esm/models/LocalDateChartColumn.js +2 -2
  253. package/dist/esm/models/LocalDateTimeChartColumn.d.ts +2 -2
  254. package/dist/esm/models/LocalDateTimeChartColumn.js +2 -2
  255. package/dist/esm/models/LocalTimeChartColumn.d.ts +2 -2
  256. package/dist/esm/models/LocalTimeChartColumn.js +2 -2
  257. package/dist/esm/models/MathFormulaExtensionContent.d.ts +2 -2
  258. package/dist/esm/models/MathFormulaExtensionContent.js +2 -2
  259. package/dist/esm/models/MathFormulaExtensionToolExtension.d.ts +2 -2
  260. package/dist/esm/models/MathFormulaExtensionToolExtension.js +2 -2
  261. package/dist/esm/models/MathResultExtensionContent.d.ts +2 -2
  262. package/dist/esm/models/MathResultExtensionContent.js +2 -2
  263. package/dist/esm/models/MathResultExtensionToolExtension.d.ts +2 -2
  264. package/dist/esm/models/MathResultExtensionToolExtension.js +2 -2
  265. package/dist/esm/models/MediaAttachment.d.ts +2 -2
  266. package/dist/esm/models/MediaAttachment.js +2 -2
  267. package/dist/esm/models/ModelConfig.d.ts +2 -2
  268. package/dist/esm/models/ModelConfig.js +2 -2
  269. package/dist/esm/models/ModelKeyGroup.d.ts +2 -2
  270. package/dist/esm/models/ModelKeyGroup.js +2 -2
  271. package/dist/esm/models/MultimodalMediaAttachment.d.ts +2 -2
  272. package/dist/esm/models/MultimodalMediaAttachment.js +2 -2
  273. package/dist/esm/models/OpenApiToken.d.ts +34 -0
  274. package/dist/esm/models/OpenApiToken.js +48 -0
  275. package/dist/esm/models/OperationResult.d.ts +2 -2
  276. package/dist/esm/models/OperationResult.js +2 -2
  277. package/dist/esm/models/PageInfo.d.ts +2 -2
  278. package/dist/esm/models/PageInfo.js +2 -2
  279. package/dist/esm/models/PlanApprovalExtensionContent.d.ts +2 -2
  280. package/dist/esm/models/PlanApprovalExtensionContent.js +2 -2
  281. package/dist/esm/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
  282. package/dist/esm/models/PlanApprovalExtensionToolExtension.js +2 -2
  283. package/dist/esm/models/PlanApprovalInput.d.ts +2 -2
  284. package/dist/esm/models/PlanApprovalInput.js +2 -2
  285. package/dist/esm/models/PlanStatus.d.ts +2 -2
  286. package/dist/esm/models/PlanStatus.js +2 -2
  287. package/dist/esm/models/PreSignedReadUrl.d.ts +2 -2
  288. package/dist/esm/models/PreSignedReadUrl.js +2 -2
  289. package/dist/esm/models/ReturnedReference.d.ts +2 -2
  290. package/dist/esm/models/ReturnedReference.js +2 -2
  291. package/dist/esm/models/SkillResourceExtensionContent.d.ts +2 -2
  292. package/dist/esm/models/SkillResourceExtensionContent.js +2 -2
  293. package/dist/esm/models/SkillResourceExtensionToolExtension.d.ts +2 -2
  294. package/dist/esm/models/SkillResourceExtensionToolExtension.js +2 -2
  295. package/dist/esm/models/SqlChartDataset.d.ts +2 -2
  296. package/dist/esm/models/SqlChartDataset.js +2 -2
  297. package/dist/esm/models/SqlChartResultExtensionContent.d.ts +2 -2
  298. package/dist/esm/models/SqlChartResultExtensionContent.js +2 -2
  299. package/dist/esm/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
  300. package/dist/esm/models/SqlChartResultExtensionToolExtension.js +2 -2
  301. package/dist/esm/models/SqlQueryExtensionContent.d.ts +2 -2
  302. package/dist/esm/models/SqlQueryExtensionContent.js +2 -2
  303. package/dist/esm/models/SqlQueryExtensionToolExtension.d.ts +2 -2
  304. package/dist/esm/models/SqlQueryExtensionToolExtension.js +2 -2
  305. package/dist/esm/models/SqlQueryResultExtensionContent.d.ts +2 -2
  306. package/dist/esm/models/SqlQueryResultExtensionContent.js +2 -2
  307. package/dist/esm/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
  308. package/dist/esm/models/SqlQueryResultExtensionToolExtension.js +2 -2
  309. package/dist/esm/models/SqlQueryResultPage.d.ts +2 -2
  310. package/dist/esm/models/SqlQueryResultPage.js +2 -2
  311. package/dist/esm/models/SqlQueryResultRow.d.ts +2 -2
  312. package/dist/esm/models/SqlQueryResultRow.js +2 -2
  313. package/dist/esm/models/SqlResultColumnSchema.d.ts +2 -2
  314. package/dist/esm/models/SqlResultColumnSchema.js +2 -2
  315. package/dist/esm/models/StringChartColumn.d.ts +2 -2
  316. package/dist/esm/models/StringChartColumn.js +2 -2
  317. package/dist/esm/models/SubagentTask.d.ts +2 -2
  318. package/dist/esm/models/SubagentTask.js +2 -2
  319. package/dist/esm/models/SubagentTaskArtifact.d.ts +2 -2
  320. package/dist/esm/models/SubagentTaskArtifact.js +2 -2
  321. package/dist/esm/models/SubagentTaskPage.d.ts +2 -2
  322. package/dist/esm/models/SubagentTaskPage.js +2 -2
  323. package/dist/esm/models/SubagentTaskResult.d.ts +2 -2
  324. package/dist/esm/models/SubagentTaskResult.js +2 -2
  325. package/dist/esm/models/SubagentTaskSync.d.ts +2 -2
  326. package/dist/esm/models/SubagentTaskSync.js +2 -2
  327. package/dist/esm/models/TaskProgressExtensionContent.d.ts +2 -2
  328. package/dist/esm/models/TaskProgressExtensionContent.js +2 -2
  329. package/dist/esm/models/TaskProgressExtensionToolExtension.d.ts +2 -2
  330. package/dist/esm/models/TaskProgressExtensionToolExtension.js +2 -2
  331. package/dist/esm/models/TaskSummary.d.ts +2 -2
  332. package/dist/esm/models/TaskSummary.js +2 -2
  333. package/dist/esm/models/ToolExtension.d.ts +2 -2
  334. package/dist/esm/models/ToolExtension.js +2 -2
  335. package/dist/esm/models/UnknownAiChatBriefEvent.d.ts +2 -2
  336. package/dist/esm/models/UnknownAiChatBriefEvent.js +2 -2
  337. package/dist/esm/models/UnknownToolExtension.d.ts +2 -2
  338. package/dist/esm/models/UnknownToolExtension.js +2 -2
  339. package/dist/esm/models/UpdateConversationGroupInput.d.ts +30 -0
  340. package/dist/esm/models/UpdateConversationGroupInput.js +43 -0
  341. package/dist/esm/models/Usage.d.ts +2 -2
  342. package/dist/esm/models/Usage.js +2 -2
  343. package/dist/esm/models/UserInputAnswerInput.d.ts +2 -2
  344. package/dist/esm/models/UserInputAnswerInput.js +2 -2
  345. package/dist/esm/models/UserInputStatus.d.ts +2 -2
  346. package/dist/esm/models/UserInputStatus.js +2 -2
  347. package/dist/esm/models/ValidationError.d.ts +2 -2
  348. package/dist/esm/models/ValidationError.js +2 -2
  349. package/dist/esm/models/VariableBinding.d.ts +2 -2
  350. package/dist/esm/models/VariableBinding.js +2 -2
  351. package/dist/esm/models/WorkspaceArtifactList.d.ts +2 -2
  352. package/dist/esm/models/WorkspaceArtifactList.js +2 -2
  353. package/dist/esm/models/WorkspaceFile.d.ts +2 -2
  354. package/dist/esm/models/WorkspaceFile.js +2 -2
  355. package/dist/esm/models/WorkspaceFilePage.d.ts +2 -2
  356. package/dist/esm/models/WorkspaceFilePage.js +2 -2
  357. package/dist/esm/models/WorkspaceNonFileArtifact.d.ts +2 -2
  358. package/dist/esm/models/WorkspaceNonFileArtifact.js +2 -2
  359. package/dist/esm/models/index.d.ts +14 -15
  360. package/dist/esm/models/index.js +14 -15
  361. package/dist/esm/runtime.d.ts +3 -2
  362. package/dist/esm/runtime.js +24 -14
  363. package/dist/esm/sse.d.ts +2 -8
  364. package/dist/esm/sse.js +37 -26
  365. package/dist/esm/subscription.d.ts +72 -0
  366. package/dist/esm/subscription.js +282 -0
  367. package/dist/esm/token.d.ts +20 -0
  368. package/dist/esm/token.js +38 -0
  369. package/dist/events.js +1 -1
  370. package/dist/hmac.d.ts +1 -1
  371. package/dist/hmac.js +3 -2
  372. package/dist/lifecycle.d.ts +55 -0
  373. package/dist/lifecycle.js +175 -0
  374. package/dist/models/AgentAsyncTaskSync.d.ts +2 -2
  375. package/dist/models/AgentAsyncTaskSync.js +2 -2
  376. package/dist/models/AgentFile.d.ts +2 -2
  377. package/dist/models/AgentFile.js +2 -2
  378. package/dist/models/AgentGoal.d.ts +117 -0
  379. package/dist/models/AgentGoal.js +135 -0
  380. package/dist/models/AgentGoalConfig.d.ts +34 -0
  381. package/dist/models/AgentGoalConfig.js +54 -0
  382. package/dist/models/AgentGoalHistory.d.ts +43 -0
  383. package/dist/models/AgentGoalHistory.js +63 -0
  384. package/dist/models/AgentGoalRefInput.d.ts +34 -0
  385. package/dist/models/AgentGoalRefInput.js +54 -0
  386. package/dist/models/AgentGoalView.d.ts +31 -0
  387. package/dist/models/AgentGoalView.js +51 -0
  388. package/dist/models/AgentsConfig.d.ts +7 -2
  389. package/dist/models/AgentsConfig.js +5 -2
  390. package/dist/models/AiChatAwaitingInputBriefEvent.d.ts +2 -2
  391. package/dist/models/AiChatAwaitingInputBriefEvent.js +2 -2
  392. package/dist/models/AiChatBriefEvent.d.ts +2 -8
  393. package/dist/models/AiChatBriefEvent.js +2 -12
  394. package/dist/models/AiChatBriefEventList.d.ts +2 -2
  395. package/dist/models/AiChatBriefEventList.js +2 -2
  396. package/dist/models/AiChatCompactorWarningBriefEvent.d.ts +2 -2
  397. package/dist/models/AiChatCompactorWarningBriefEvent.js +2 -2
  398. package/dist/models/AiChatCompressorContextEndBriefEvent.d.ts +2 -2
  399. package/dist/models/AiChatCompressorContextEndBriefEvent.js +2 -2
  400. package/dist/models/AiChatCompressorContextStartBriefEvent.d.ts +2 -2
  401. package/dist/models/AiChatCompressorContextStartBriefEvent.js +2 -2
  402. package/dist/models/AiChatEndBriefEvent.d.ts +2 -2
  403. package/dist/models/AiChatEndBriefEvent.js +2 -2
  404. package/dist/models/AiChatErrorBriefEvent.d.ts +2 -2
  405. package/dist/models/AiChatErrorBriefEvent.js +2 -2
  406. package/dist/models/AiChatEventsBatch.d.ts +2 -2
  407. package/dist/models/AiChatEventsBatch.js +2 -2
  408. package/dist/models/AiChatEventsBatchInput.d.ts +2 -2
  409. package/dist/models/AiChatEventsBatchInput.js +2 -2
  410. package/dist/models/AiChatEventsBatchSkipped.d.ts +2 -2
  411. package/dist/models/AiChatEventsBatchSkipped.js +2 -2
  412. package/dist/models/AiChatFileRef.d.ts +2 -2
  413. package/dist/models/AiChatFileRef.js +2 -2
  414. package/dist/models/AiChatInput.d.ts +10 -2
  415. package/dist/models/AiChatInput.js +6 -2
  416. package/dist/models/AiChatManualInterruptBriefEvent.d.ts +2 -2
  417. package/dist/models/AiChatManualInterruptBriefEvent.js +2 -2
  418. package/dist/models/AiChatMessageBriefEvent.d.ts +2 -2
  419. package/dist/models/AiChatMessageBriefEvent.js +2 -2
  420. package/dist/models/AiChatMessageEvent.d.ts +2 -2
  421. package/dist/models/AiChatMessageEvent.js +2 -2
  422. package/dist/models/AiChatStartBriefEvent.d.ts +2 -2
  423. package/dist/models/AiChatStartBriefEvent.js +2 -2
  424. package/dist/models/AiChatStreamInput.d.ts +2 -2
  425. package/dist/models/AiChatStreamInput.js +2 -2
  426. package/dist/models/AiChatSubAgentCallBriefEvent.d.ts +2 -2
  427. package/dist/models/AiChatSubAgentCallBriefEvent.js +2 -2
  428. package/dist/models/AiChatSubmission.d.ts +2 -2
  429. package/dist/models/AiChatSubmission.js +2 -2
  430. package/dist/models/AiChatThinkBriefEvent.d.ts +2 -2
  431. package/dist/models/AiChatThinkBriefEvent.js +2 -2
  432. package/dist/models/AiChatToolExecutionBriefEvent.d.ts +2 -2
  433. package/dist/models/AiChatToolExecutionBriefEvent.js +2 -2
  434. package/dist/models/AiChatUserQueryBriefEvent.d.ts +2 -2
  435. package/dist/models/AiChatUserQueryBriefEvent.js +2 -2
  436. package/dist/models/ArtifactInfo.d.ts +2 -2
  437. package/dist/models/ArtifactInfo.js +2 -2
  438. package/dist/models/AskUserQuestionExtensionContent.d.ts +2 -2
  439. package/dist/models/AskUserQuestionExtensionContent.js +2 -2
  440. package/dist/models/AskUserQuestionExtensionToolExtension.d.ts +2 -2
  441. package/dist/models/AskUserQuestionExtensionToolExtension.js +2 -2
  442. package/dist/models/AskUserQuestionOption.d.ts +2 -2
  443. package/dist/models/AskUserQuestionOption.js +2 -2
  444. package/dist/models/AsyncTask.d.ts +2 -2
  445. package/dist/models/AsyncTask.js +2 -2
  446. package/dist/models/AsyncTaskPage.d.ts +2 -2
  447. package/dist/models/AsyncTaskPage.js +2 -2
  448. package/dist/models/AttachmentExtension.d.ts +2 -2
  449. package/dist/models/AttachmentExtension.js +2 -2
  450. package/dist/models/BooleanChartColumn.d.ts +2 -2
  451. package/dist/models/BooleanChartColumn.js +2 -2
  452. package/dist/models/ChartColumnData.d.ts +2 -2
  453. package/dist/models/ChartColumnData.js +2 -2
  454. package/dist/models/ChartNumberFormat.d.ts +2 -2
  455. package/dist/models/ChartNumberFormat.js +2 -2
  456. package/dist/models/ChartQualitySummary.d.ts +2 -2
  457. package/dist/models/ChartQualitySummary.js +2 -2
  458. package/dist/models/ChartSeries.d.ts +2 -2
  459. package/dist/models/ChartSeries.js +2 -2
  460. package/dist/models/ChartSpec.d.ts +2 -2
  461. package/dist/models/ChartSpec.js +2 -2
  462. package/dist/models/ChartTimeContext.d.ts +2 -2
  463. package/dist/models/ChartTimeContext.js +2 -2
  464. package/dist/models/ChatModelConfig.d.ts +2 -2
  465. package/dist/models/ChatModelConfig.js +2 -2
  466. package/dist/models/ChatModelSpec.d.ts +2 -2
  467. package/dist/models/ChatModelSpec.js +2 -2
  468. package/dist/models/ChatStreamProbeEvent.d.ts +2 -2
  469. package/dist/models/ChatStreamProbeEvent.js +2 -2
  470. package/dist/models/ChatStreamProbeInput.d.ts +2 -2
  471. package/dist/models/ChatStreamProbeInput.js +2 -2
  472. package/dist/models/CitationMetadata.d.ts +2 -2
  473. package/dist/models/CitationMetadata.js +2 -2
  474. package/dist/models/CitationMetadataList.d.ts +2 -2
  475. package/dist/models/CitationMetadataList.js +2 -2
  476. package/dist/models/CodeMessage.d.ts +2 -2
  477. package/dist/models/CodeMessage.js +2 -2
  478. package/dist/models/ConfirmUploadInput.d.ts +2 -2
  479. package/dist/models/ConfirmUploadInput.js +2 -2
  480. package/dist/models/ConversationActivity.d.ts +2 -2
  481. package/dist/models/ConversationActivity.js +2 -2
  482. package/dist/models/ConversationActivityBatchInput.d.ts +2 -2
  483. package/dist/models/ConversationActivityBatchInput.js +2 -2
  484. package/dist/models/ConversationActivityList.d.ts +2 -2
  485. package/dist/models/ConversationActivityList.js +2 -2
  486. package/dist/models/ConversationConfig.d.ts +7 -3
  487. package/dist/models/ConversationConfig.js +9 -3
  488. package/dist/models/ConversationContextUsage.d.ts +2 -2
  489. package/dist/models/ConversationContextUsage.js +2 -2
  490. package/dist/models/ConversationGroup.d.ts +42 -0
  491. package/dist/models/ConversationGroup.js +63 -0
  492. package/dist/models/ConversationGroupDeleted.d.ts +34 -0
  493. package/dist/models/ConversationGroupDeleted.js +54 -0
  494. package/dist/models/ConversationGroupList.d.ts +31 -0
  495. package/dist/models/ConversationGroupList.js +51 -0
  496. package/dist/models/ConversationGroupNameInput.d.ts +30 -0
  497. package/dist/models/ConversationGroupNameInput.js +50 -0
  498. package/dist/models/ConversationIds.d.ts +2 -2
  499. package/dist/models/ConversationIds.js +2 -2
  500. package/dist/models/ConversationMessage.d.ts +2 -2
  501. package/dist/models/ConversationMessage.js +2 -2
  502. package/dist/models/ConversationMessagePage.d.ts +2 -2
  503. package/dist/models/ConversationMessagePage.js +2 -2
  504. package/dist/models/ConversationMessageSync.d.ts +39 -0
  505. package/dist/models/ConversationMessageSync.js +59 -0
  506. package/dist/models/ConversationMetadata.d.ts +63 -0
  507. package/dist/models/ConversationMetadata.js +84 -0
  508. package/dist/models/ConversationReadReceipt.d.ts +2 -2
  509. package/dist/models/ConversationReadReceipt.js +2 -2
  510. package/dist/models/ConversationReadReceiptInput.d.ts +2 -2
  511. package/dist/models/ConversationReadReceiptInput.js +2 -2
  512. package/dist/models/ConversationStats.d.ts +2 -2
  513. package/dist/models/ConversationStats.js +2 -2
  514. package/dist/models/ConversationStatusInput.d.ts +2 -2
  515. package/dist/models/ConversationStatusInput.js +2 -2
  516. package/dist/models/ConversationSummary.d.ts +10 -2
  517. package/dist/models/ConversationSummary.js +6 -2
  518. package/dist/models/ConversationSummaryList.d.ts +7 -2
  519. package/dist/models/ConversationSummaryList.js +7 -2
  520. package/dist/models/ConversationTitle.d.ts +2 -2
  521. package/dist/models/ConversationTitle.js +2 -2
  522. package/dist/models/ConversationTitleInput.d.ts +2 -2
  523. package/dist/models/ConversationTitleInput.js +2 -2
  524. package/dist/models/ConversationUserMessage.d.ts +8 -6
  525. package/dist/models/ConversationUserMessage.js +6 -4
  526. package/dist/models/CreateFileInput.d.ts +2 -2
  527. package/dist/models/CreateFileInput.js +2 -2
  528. package/dist/models/DecimalChartColumn.d.ts +2 -2
  529. package/dist/models/DecimalChartColumn.js +2 -2
  530. package/dist/models/DefaultModel.d.ts +2 -2
  531. package/dist/models/DefaultModel.js +2 -2
  532. package/dist/models/DoubleChartColumn.d.ts +2 -2
  533. package/dist/models/DoubleChartColumn.js +2 -2
  534. package/dist/models/EditAgentGoalInput.d.ts +38 -0
  535. package/dist/models/EditAgentGoalInput.js +58 -0
  536. package/dist/models/FieldError.d.ts +2 -2
  537. package/dist/models/FieldError.js +2 -2
  538. package/dist/models/FileExists.d.ts +2 -2
  539. package/dist/models/FileExists.js +2 -2
  540. package/dist/models/GeneratePreSignedUrlInput.d.ts +2 -2
  541. package/dist/models/GeneratePreSignedUrlInput.js +2 -2
  542. package/dist/models/GeneratePreSignedUrlOutput.d.ts +2 -2
  543. package/dist/models/GeneratePreSignedUrlOutput.js +2 -2
  544. package/dist/models/ImageGenerationExtensionContent.d.ts +2 -2
  545. package/dist/models/ImageGenerationExtensionContent.js +2 -2
  546. package/dist/models/ImageGenerationExtensionToolExtension.d.ts +2 -2
  547. package/dist/models/ImageGenerationExtensionToolExtension.js +2 -2
  548. package/dist/models/InputTokenBreakdown.d.ts +2 -2
  549. package/dist/models/InputTokenBreakdown.js +2 -2
  550. package/dist/models/InstantChartColumn.d.ts +2 -2
  551. package/dist/models/InstantChartColumn.js +2 -2
  552. package/dist/models/IntegerChartColumn.d.ts +2 -2
  553. package/dist/models/IntegerChartColumn.js +2 -2
  554. package/dist/models/JsRunScriptExtensionContent.d.ts +2 -2
  555. package/dist/models/JsRunScriptExtensionContent.js +2 -2
  556. package/dist/models/JsRunScriptExtensionToolExtension.d.ts +2 -2
  557. package/dist/models/JsRunScriptExtensionToolExtension.js +2 -2
  558. package/dist/models/JsRunScriptResultExtensionContent.d.ts +2 -2
  559. package/dist/models/JsRunScriptResultExtensionContent.js +2 -2
  560. package/dist/models/JsRunScriptResultExtensionToolExtension.d.ts +2 -2
  561. package/dist/models/JsRunScriptResultExtensionToolExtension.js +2 -2
  562. package/dist/models/LocalDateChartColumn.d.ts +2 -2
  563. package/dist/models/LocalDateChartColumn.js +2 -2
  564. package/dist/models/LocalDateTimeChartColumn.d.ts +2 -2
  565. package/dist/models/LocalDateTimeChartColumn.js +2 -2
  566. package/dist/models/LocalTimeChartColumn.d.ts +2 -2
  567. package/dist/models/LocalTimeChartColumn.js +2 -2
  568. package/dist/models/MathFormulaExtensionContent.d.ts +2 -2
  569. package/dist/models/MathFormulaExtensionContent.js +2 -2
  570. package/dist/models/MathFormulaExtensionToolExtension.d.ts +2 -2
  571. package/dist/models/MathFormulaExtensionToolExtension.js +2 -2
  572. package/dist/models/MathResultExtensionContent.d.ts +2 -2
  573. package/dist/models/MathResultExtensionContent.js +2 -2
  574. package/dist/models/MathResultExtensionToolExtension.d.ts +2 -2
  575. package/dist/models/MathResultExtensionToolExtension.js +2 -2
  576. package/dist/models/MediaAttachment.d.ts +2 -2
  577. package/dist/models/MediaAttachment.js +2 -2
  578. package/dist/models/ModelConfig.d.ts +2 -2
  579. package/dist/models/ModelConfig.js +2 -2
  580. package/dist/models/ModelKeyGroup.d.ts +2 -2
  581. package/dist/models/ModelKeyGroup.js +2 -2
  582. package/dist/models/MultimodalMediaAttachment.d.ts +2 -2
  583. package/dist/models/MultimodalMediaAttachment.js +2 -2
  584. package/dist/models/OpenApiToken.d.ts +34 -0
  585. package/dist/models/OpenApiToken.js +55 -0
  586. package/dist/models/OperationResult.d.ts +2 -2
  587. package/dist/models/OperationResult.js +2 -2
  588. package/dist/models/PageInfo.d.ts +2 -2
  589. package/dist/models/PageInfo.js +2 -2
  590. package/dist/models/PlanApprovalExtensionContent.d.ts +2 -2
  591. package/dist/models/PlanApprovalExtensionContent.js +2 -2
  592. package/dist/models/PlanApprovalExtensionToolExtension.d.ts +2 -2
  593. package/dist/models/PlanApprovalExtensionToolExtension.js +2 -2
  594. package/dist/models/PlanApprovalInput.d.ts +2 -2
  595. package/dist/models/PlanApprovalInput.js +2 -2
  596. package/dist/models/PlanStatus.d.ts +2 -2
  597. package/dist/models/PlanStatus.js +2 -2
  598. package/dist/models/PreSignedReadUrl.d.ts +2 -2
  599. package/dist/models/PreSignedReadUrl.js +2 -2
  600. package/dist/models/ReturnedReference.d.ts +2 -2
  601. package/dist/models/ReturnedReference.js +2 -2
  602. package/dist/models/SkillResourceExtensionContent.d.ts +2 -2
  603. package/dist/models/SkillResourceExtensionContent.js +2 -2
  604. package/dist/models/SkillResourceExtensionToolExtension.d.ts +2 -2
  605. package/dist/models/SkillResourceExtensionToolExtension.js +2 -2
  606. package/dist/models/SqlChartDataset.d.ts +2 -2
  607. package/dist/models/SqlChartDataset.js +2 -2
  608. package/dist/models/SqlChartResultExtensionContent.d.ts +2 -2
  609. package/dist/models/SqlChartResultExtensionContent.js +2 -2
  610. package/dist/models/SqlChartResultExtensionToolExtension.d.ts +2 -2
  611. package/dist/models/SqlChartResultExtensionToolExtension.js +2 -2
  612. package/dist/models/SqlQueryExtensionContent.d.ts +2 -2
  613. package/dist/models/SqlQueryExtensionContent.js +2 -2
  614. package/dist/models/SqlQueryExtensionToolExtension.d.ts +2 -2
  615. package/dist/models/SqlQueryExtensionToolExtension.js +2 -2
  616. package/dist/models/SqlQueryResultExtensionContent.d.ts +2 -2
  617. package/dist/models/SqlQueryResultExtensionContent.js +2 -2
  618. package/dist/models/SqlQueryResultExtensionToolExtension.d.ts +2 -2
  619. package/dist/models/SqlQueryResultExtensionToolExtension.js +2 -2
  620. package/dist/models/SqlQueryResultPage.d.ts +2 -2
  621. package/dist/models/SqlQueryResultPage.js +2 -2
  622. package/dist/models/SqlQueryResultRow.d.ts +2 -2
  623. package/dist/models/SqlQueryResultRow.js +2 -2
  624. package/dist/models/SqlResultColumnSchema.d.ts +2 -2
  625. package/dist/models/SqlResultColumnSchema.js +2 -2
  626. package/dist/models/StringChartColumn.d.ts +2 -2
  627. package/dist/models/StringChartColumn.js +2 -2
  628. package/dist/models/SubagentTask.d.ts +2 -2
  629. package/dist/models/SubagentTask.js +2 -2
  630. package/dist/models/SubagentTaskArtifact.d.ts +2 -2
  631. package/dist/models/SubagentTaskArtifact.js +2 -2
  632. package/dist/models/SubagentTaskPage.d.ts +2 -2
  633. package/dist/models/SubagentTaskPage.js +2 -2
  634. package/dist/models/SubagentTaskResult.d.ts +2 -2
  635. package/dist/models/SubagentTaskResult.js +2 -2
  636. package/dist/models/SubagentTaskSync.d.ts +2 -2
  637. package/dist/models/SubagentTaskSync.js +2 -2
  638. package/dist/models/TaskProgressExtensionContent.d.ts +2 -2
  639. package/dist/models/TaskProgressExtensionContent.js +2 -2
  640. package/dist/models/TaskProgressExtensionToolExtension.d.ts +2 -2
  641. package/dist/models/TaskProgressExtensionToolExtension.js +2 -2
  642. package/dist/models/TaskSummary.d.ts +2 -2
  643. package/dist/models/TaskSummary.js +2 -2
  644. package/dist/models/ToolExtension.d.ts +2 -2
  645. package/dist/models/ToolExtension.js +2 -2
  646. package/dist/models/UnknownAiChatBriefEvent.d.ts +2 -2
  647. package/dist/models/UnknownAiChatBriefEvent.js +2 -2
  648. package/dist/models/UnknownToolExtension.d.ts +2 -2
  649. package/dist/models/UnknownToolExtension.js +2 -2
  650. package/dist/models/UpdateConversationGroupInput.d.ts +30 -0
  651. package/dist/models/UpdateConversationGroupInput.js +50 -0
  652. package/dist/models/Usage.d.ts +2 -2
  653. package/dist/models/Usage.js +2 -2
  654. package/dist/models/UserInputAnswerInput.d.ts +2 -2
  655. package/dist/models/UserInputAnswerInput.js +2 -2
  656. package/dist/models/UserInputStatus.d.ts +2 -2
  657. package/dist/models/UserInputStatus.js +2 -2
  658. package/dist/models/ValidationError.d.ts +2 -2
  659. package/dist/models/ValidationError.js +2 -2
  660. package/dist/models/VariableBinding.d.ts +2 -2
  661. package/dist/models/VariableBinding.js +2 -2
  662. package/dist/models/WorkspaceArtifactList.d.ts +2 -2
  663. package/dist/models/WorkspaceArtifactList.js +2 -2
  664. package/dist/models/WorkspaceFile.d.ts +2 -2
  665. package/dist/models/WorkspaceFile.js +2 -2
  666. package/dist/models/WorkspaceFilePage.d.ts +2 -2
  667. package/dist/models/WorkspaceFilePage.js +2 -2
  668. package/dist/models/WorkspaceNonFileArtifact.d.ts +2 -2
  669. package/dist/models/WorkspaceNonFileArtifact.js +2 -2
  670. package/dist/models/index.d.ts +14 -15
  671. package/dist/models/index.js +14 -15
  672. package/dist/runtime.d.ts +3 -2
  673. package/dist/runtime.js +28 -18
  674. package/dist/sse.d.ts +2 -8
  675. package/dist/sse.js +37 -26
  676. package/dist/subscription.d.ts +72 -0
  677. package/dist/subscription.js +287 -0
  678. package/dist/token.d.ts +20 -0
  679. package/dist/token.js +41 -0
  680. package/package.json +21 -5
  681. package/dist/esm/models/AiChatRequestBriefEvent.d.ts +0 -47
  682. package/dist/esm/models/AiChatRequestBriefEvent.js +0 -59
  683. package/dist/esm/models/AiChatResponseBriefEvent.d.ts +0 -47
  684. package/dist/esm/models/AiChatResponseBriefEvent.js +0 -61
  685. package/dist/esm/models/AssistantChatMessage.d.ts +0 -54
  686. package/dist/esm/models/AssistantChatMessage.js +0 -62
  687. package/dist/esm/models/ChatMessage.d.ts +0 -33
  688. package/dist/esm/models/ChatMessage.js +0 -57
  689. package/dist/esm/models/ChatOptions.d.ts +0 -54
  690. package/dist/esm/models/ChatOptions.js +0 -53
  691. package/dist/esm/models/ConversationShareCreated.d.ts +0 -46
  692. package/dist/esm/models/ConversationShareCreated.js +0 -58
  693. package/dist/esm/models/ConversationShareInput.d.ts +0 -34
  694. package/dist/esm/models/ConversationShareInput.js +0 -44
  695. package/dist/esm/models/ConversationShareList.d.ts +0 -31
  696. package/dist/esm/models/ConversationShareList.js +0 -44
  697. package/dist/esm/models/ConversationShareRecord.d.ts +0 -58
  698. package/dist/esm/models/ConversationShareRecord.js +0 -70
  699. package/dist/esm/models/ConversationShareRevoked.d.ts +0 -30
  700. package/dist/esm/models/ConversationShareRevoked.js +0 -43
  701. package/dist/esm/models/SystemChatMessage.d.ts +0 -45
  702. package/dist/esm/models/SystemChatMessage.js +0 -57
  703. package/dist/esm/models/ToolCall.d.ts +0 -42
  704. package/dist/esm/models/ToolCall.js +0 -55
  705. package/dist/esm/models/ToolResponse.d.ts +0 -46
  706. package/dist/esm/models/ToolResponse.js +0 -59
  707. package/dist/esm/models/ToolResponseChatMessage.d.ts +0 -46
  708. package/dist/esm/models/ToolResponseChatMessage.js +0 -58
  709. package/dist/esm/models/UserChatMessage.d.ts +0 -55
  710. package/dist/esm/models/UserChatMessage.js +0 -63
  711. package/dist/models/AiChatRequestBriefEvent.d.ts +0 -47
  712. package/dist/models/AiChatRequestBriefEvent.js +0 -67
  713. package/dist/models/AiChatResponseBriefEvent.d.ts +0 -47
  714. package/dist/models/AiChatResponseBriefEvent.js +0 -69
  715. package/dist/models/AssistantChatMessage.d.ts +0 -54
  716. package/dist/models/AssistantChatMessage.js +0 -70
  717. package/dist/models/ChatMessage.d.ts +0 -33
  718. package/dist/models/ChatMessage.js +0 -63
  719. package/dist/models/ChatOptions.d.ts +0 -54
  720. package/dist/models/ChatOptions.js +0 -60
  721. package/dist/models/ConversationShareCreated.d.ts +0 -46
  722. package/dist/models/ConversationShareCreated.js +0 -65
  723. package/dist/models/ConversationShareInput.d.ts +0 -34
  724. package/dist/models/ConversationShareInput.js +0 -51
  725. package/dist/models/ConversationShareList.d.ts +0 -31
  726. package/dist/models/ConversationShareList.js +0 -51
  727. package/dist/models/ConversationShareRecord.d.ts +0 -58
  728. package/dist/models/ConversationShareRecord.js +0 -77
  729. package/dist/models/ConversationShareRevoked.d.ts +0 -30
  730. package/dist/models/ConversationShareRevoked.js +0 -50
  731. package/dist/models/SystemChatMessage.d.ts +0 -45
  732. package/dist/models/SystemChatMessage.js +0 -65
  733. package/dist/models/ToolCall.d.ts +0 -42
  734. package/dist/models/ToolCall.js +0 -62
  735. package/dist/models/ToolResponse.d.ts +0 -46
  736. package/dist/models/ToolResponse.js +0 -66
  737. package/dist/models/ToolResponseChatMessage.d.ts +0 -46
  738. package/dist/models/ToolResponseChatMessage.js +0 -66
  739. package/dist/models/UserChatMessage.d.ts +0 -55
  740. package/dist/models/UserChatMessage.js +0 -71
package/dist/bound.d.ts CHANGED
@@ -1,39 +1,137 @@
1
- import { ConfigurationApi as GeneratedConfigurationApi, ChatApi as GeneratedChatApi, ConversationsApi as GeneratedConversationsApi, SQLApi as GeneratedSQLApi, MessagesApi as GeneratedMessagesApi, EventsApi as GeneratedEventsApi, InteractionsApi as GeneratedInteractionsApi, FilesApi as GeneratedFilesApi, KnowledgeApi as GeneratedKnowledgeApi, WorkspaceApi as GeneratedWorkspaceApi, type GetConversationConfigRequest, type CreateChatRequest, type ContinueChatRequest, type DeleteConversationRequest, type StreamChatEventsRequest, type ProbeEventStreamRequest, type InterruptConversationRequest, type CompactConversationRequest, type GetConversationContextUsageRequest, type ListConversationsRequest, type QueryConversationActivitiesRequest, type MarkConversationReadRequest, type GetConversationTitleRequest, type UpdateConversationTitleRequest, type UpdateConversationStatusRequest, type GetSqlQueryResultRequest, type GetSqlQueryChartDataRequest, type ExportSqlQueryResultRequest, type ListConversationMessagesRequest, type GetConversationMessageRequest, type ListConversationAsyncTasksRequest, type SyncConversationAsyncTasksRequest, type GetConversationAsyncTaskRequest, type ListConversationSubagentsRequest, type SyncConversationSubagentsRequest, type GetConversationSubagentRequest, type CancelConversationSubagentRequest, type GetConversationSubagentResultRequest, type CancelQueuedMessageRequest, type GetChatEventsRequest, type GetChatEventsBatchRequest, type ListConversationSharesRequest, type CreateConversationShareRequest, type RevokeConversationShareRequest, type ApprovePlanRequest, type GetPlanStatusRequest, type GetUserInputStatusRequest, type AnswerUserInputRequest, type CreatePreSignedUploadRequest, type ConfirmPreSignedUploadRequest, type CreateFileByContentMd5Request, type FileExistsByContentMd5Request, type GetConversationFilePreviewRequest, type GetPlanIntermediateFilePreviewRequest, type GetCitationMetadataBatchRequest, type GetCitationMetadataRequest, type ListWorkspaceArtifactsRequest, type GetWorkspaceFilePreviewRequest } from './apis';
1
+ import { ConfigurationApi as GeneratedConfigurationApi, ChatApi as GeneratedChatApi, ConversationsApi as GeneratedConversationsApi, SQLApi as GeneratedSQLApi, MessagesApi as GeneratedMessagesApi, EventsApi as GeneratedEventsApi, InteractionsApi as GeneratedInteractionsApi, FilesApi as GeneratedFilesApi, KnowledgeApi as GeneratedKnowledgeApi, WorkspaceApi as GeneratedWorkspaceApi, type GetAgentsConfigRequest, type GetConversationConfigRequest, type CreateChatRequest, type ContinueChatRequest, type DeleteConversationRequest, type GetConversationSummaryRequest, type StreamChatEventsRequest, type ProbeEventStreamRequest, type InterruptConversationRequest, type CompactConversationRequest, type GetConversationContextUsageRequest, type ListConversationsRequest, type ListActiveConversationsRequest, type ListUnreadConversationsRequest, type QueryConversationActivitiesRequest, type MarkConversationReadRequest, type GetConversationStatsRequest, type GetConversationTitleRequest, type UpdateConversationTitleRequest, type UpdateConversationStatusRequest, type GetSqlQueryResultRequest, type GetSqlQueryChartDataRequest, type ExportSqlQueryResultRequest, type ListConversationMessagesRequest, type GetConversationMessageRequest, type ListConversationAsyncTasksRequest, type SyncConversationAsyncTasksRequest, type GetConversationAsyncTaskRequest, type ListConversationSubagentsRequest, type SyncConversationSubagentsRequest, type GetConversationSubagentRequest, type CancelConversationSubagentRequest, type GetConversationSubagentResultRequest, type CancelQueuedMessageRequest, type GetChatEventsRequest, type GetChatEventsBatchRequest, type ApprovePlanRequest, type GetPlanStatusRequest, type GetUserInputStatusRequest, type AnswerUserInputRequest, type CreatePreSignedUploadRequest, type ConfirmPreSignedUploadRequest, type CreateFileByContentMd5Request, type FileExistsByContentMd5Request, type GetConversationFilePreviewRequest, type GetPlanIntermediateFilePreviewRequest, type GetCitationMetadataBatchRequest, type GetCitationMetadataRequest, type ListWorkspaceArtifactsRequest, type GetWorkspaceFilePreviewRequest, type CreateOpenApiTokenRequest, type ListConversationGroupsRequest, type CreateConversationGroupRequest, type RenameConversationGroupRequest, type DeleteConversationGroupRequest, type MoveConversationToGroupRequest, type SyncConversationMessagesRequest, type GetMessagePlanStatusRequest, type GetGoalRequest, type EditGoalRequest, type GetGoalHistoryRequest, type PauseGoalRequest, type ResumeGoalRequest, type ClearGoalRequest } from './apis';
2
2
  import { type ChatStreamProbeEvent } from './models/ChatStreamProbeEvent';
3
3
  import { type AiChatBriefEvent } from './events';
4
- type BoundRawRequest = (method: string, suffix: string, bodyJson: string | undefined, query: URLSearchParams | undefined, accept: string, requestId?: string) => Promise<Response>;
4
+ import { type DownloadResponse, type RequestOptions } from './lifecycle';
5
+ import { type ChatSubscription, type StreamOptions } from './subscription';
6
+ type BoundRawRequest = (method: string, suffix: string, bodyJson: string | undefined, query: URLSearchParams | undefined, accept: string, requestId?: string, signal?: AbortSignal) => Promise<Response>;
5
7
  /** Query values and optional request headers that are not bound by the client. */
6
- export type StreamChatEventsOptions = Omit<StreamChatEventsRequest, 'channelId' | 'conversationId' | 'aiChatStreamInput'>;
8
+ export type GetAgentsConfigOptions = Omit<GetAgentsConfigRequest, 'channelId'> & RequestOptions;
7
9
  /** Query values and optional request headers that are not bound by the client. */
8
- export type ProbeEventStreamOptions = Omit<ProbeEventStreamRequest, 'channelId' | 'chatStreamProbeInput'>;
10
+ export type GetConversationConfigOptions = Omit<GetConversationConfigRequest, 'channelId' | 'conversationId'> & RequestOptions;
9
11
  /** Query values and optional request headers that are not bound by the client. */
10
- export type CompactConversationOptions = Omit<CompactConversationRequest, 'channelId' | 'conversationId'>;
12
+ export type CreateChatOptions = Omit<CreateChatRequest, 'channelId' | 'aiChatInput'> & RequestOptions;
11
13
  /** Query values and optional request headers that are not bound by the client. */
12
- export type ListConversationsOptions = Omit<ListConversationsRequest, 'channelId'>;
14
+ export type ContinueChatOptions = Omit<ContinueChatRequest, 'channelId' | 'conversationId' | 'aiChatInput'> & RequestOptions;
13
15
  /** Query values and optional request headers that are not bound by the client. */
14
- export type GetSqlQueryResultOptions = Omit<GetSqlQueryResultRequest, 'channelId' | 'conversationId' | 'resultId'>;
16
+ export type DeleteConversationOptions = Omit<DeleteConversationRequest, 'channelId' | 'conversationId'> & RequestOptions;
15
17
  /** Query values and optional request headers that are not bound by the client. */
16
- export type ExportSqlQueryResultOptions = Omit<ExportSqlQueryResultRequest, 'channelId' | 'conversationId' | 'resultId'>;
18
+ export type GetConversationSummaryOptions = Omit<GetConversationSummaryRequest, 'channelId' | 'conversationId'> & RequestOptions;
17
19
  /** Query values and optional request headers that are not bound by the client. */
18
- export type ListConversationMessagesOptions = Omit<ListConversationMessagesRequest, 'channelId' | 'conversationId'>;
20
+ export type StreamChatEventsOptions = Omit<StreamChatEventsRequest, 'channelId' | 'conversationId' | 'aiChatStreamInput'> & StreamOptions;
19
21
  /** Query values and optional request headers that are not bound by the client. */
20
- export type ListConversationAsyncTasksOptions = Omit<ListConversationAsyncTasksRequest, 'channelId' | 'conversationId'>;
22
+ export type ProbeEventStreamOptions = Omit<ProbeEventStreamRequest, 'channelId' | 'chatStreamProbeInput'> & StreamOptions;
21
23
  /** Query values and optional request headers that are not bound by the client. */
22
- export type SyncConversationAsyncTasksOptions = Omit<SyncConversationAsyncTasksRequest, 'channelId' | 'conversationId'>;
24
+ export type InterruptConversationOptions = Omit<InterruptConversationRequest, 'channelId' | 'conversationId'> & RequestOptions;
23
25
  /** Query values and optional request headers that are not bound by the client. */
24
- export type ListConversationSubagentsOptions = Omit<ListConversationSubagentsRequest, 'channelId' | 'conversationId'>;
26
+ export type CompactConversationOptions = Omit<CompactConversationRequest, 'channelId' | 'conversationId'> & RequestOptions;
25
27
  /** Query values and optional request headers that are not bound by the client. */
26
- export type SyncConversationSubagentsOptions = Omit<SyncConversationSubagentsRequest, 'channelId' | 'conversationId'>;
28
+ export type GetConversationContextUsageOptions = Omit<GetConversationContextUsageRequest, 'channelId' | 'conversationId'> & RequestOptions;
27
29
  /** Query values and optional request headers that are not bound by the client. */
28
- export type GetChatEventsOptions = Omit<GetChatEventsRequest, 'channelId'>;
30
+ export type ListConversationsOptions = Omit<ListConversationsRequest, 'channelId'> & RequestOptions;
29
31
  /** Query values and optional request headers that are not bound by the client. */
30
- export type GetUserInputStatusOptions = Omit<GetUserInputStatusRequest, 'channelId' | 'questionId'>;
32
+ export type ListActiveConversationsOptions = Omit<ListActiveConversationsRequest, 'channelId'> & RequestOptions;
31
33
  /** Query values and optional request headers that are not bound by the client. */
32
- export type FileExistsByContentMd5Options = Omit<FileExistsByContentMd5Request, 'channelId'>;
34
+ export type ListUnreadConversationsOptions = Omit<ListUnreadConversationsRequest, 'channelId'> & RequestOptions;
33
35
  /** Query values and optional request headers that are not bound by the client. */
34
- export type ListWorkspaceArtifactsOptions = Omit<ListWorkspaceArtifactsRequest, 'channelId' | 'conversationId'>;
36
+ export type QueryConversationActivitiesOptions = Omit<QueryConversationActivitiesRequest, 'channelId' | 'conversationActivityBatchInput'> & RequestOptions;
35
37
  /** Query values and optional request headers that are not bound by the client. */
36
- export type GetWorkspaceFilePreviewOptions = Omit<GetWorkspaceFilePreviewRequest, 'channelId' | 'conversationId'>;
38
+ export type MarkConversationReadOptions = Omit<MarkConversationReadRequest, 'channelId' | 'conversationId' | 'conversationReadReceiptInput'> & RequestOptions;
39
+ /** Query values and optional request headers that are not bound by the client. */
40
+ export type GetConversationStatsOptions = Omit<GetConversationStatsRequest, 'channelId'> & RequestOptions;
41
+ /** Query values and optional request headers that are not bound by the client. */
42
+ export type GetConversationTitleOptions = Omit<GetConversationTitleRequest, 'channelId' | 'conversationId'> & RequestOptions;
43
+ /** Query values and optional request headers that are not bound by the client. */
44
+ export type UpdateConversationTitleOptions = Omit<UpdateConversationTitleRequest, 'channelId' | 'conversationId' | 'conversationTitleInput'> & RequestOptions;
45
+ /** Query values and optional request headers that are not bound by the client. */
46
+ export type UpdateConversationStatusOptions = Omit<UpdateConversationStatusRequest, 'channelId' | 'conversationId' | 'conversationStatusInput'> & RequestOptions;
47
+ /** Query values and optional request headers that are not bound by the client. */
48
+ export type GetSqlQueryResultOptions = Omit<GetSqlQueryResultRequest, 'channelId' | 'conversationId' | 'resultId'> & RequestOptions;
49
+ /** Query values and optional request headers that are not bound by the client. */
50
+ export type GetSqlQueryChartDataOptions = Omit<GetSqlQueryChartDataRequest, 'channelId' | 'conversationId' | 'resultId'> & RequestOptions;
51
+ /** Query values and optional request headers that are not bound by the client. */
52
+ export type ExportSqlQueryResultOptions = Omit<ExportSqlQueryResultRequest, 'channelId' | 'conversationId' | 'resultId'> & RequestOptions;
53
+ /** Query values and optional request headers that are not bound by the client. */
54
+ export type ListConversationMessagesOptions = Omit<ListConversationMessagesRequest, 'channelId' | 'conversationId'> & RequestOptions;
55
+ /** Query values and optional request headers that are not bound by the client. */
56
+ export type GetConversationMessageOptions = Omit<GetConversationMessageRequest, 'channelId' | 'conversationId' | 'messageId'> & RequestOptions;
57
+ /** Query values and optional request headers that are not bound by the client. */
58
+ export type ListConversationAsyncTasksOptions = Omit<ListConversationAsyncTasksRequest, 'channelId' | 'conversationId'> & RequestOptions;
59
+ /** Query values and optional request headers that are not bound by the client. */
60
+ export type SyncConversationAsyncTasksOptions = Omit<SyncConversationAsyncTasksRequest, 'channelId' | 'conversationId'> & RequestOptions;
61
+ /** Query values and optional request headers that are not bound by the client. */
62
+ export type GetConversationAsyncTaskOptions = Omit<GetConversationAsyncTaskRequest, 'channelId' | 'conversationId' | 'asyncTaskId'> & RequestOptions;
63
+ /** Query values and optional request headers that are not bound by the client. */
64
+ export type ListConversationSubagentsOptions = Omit<ListConversationSubagentsRequest, 'channelId' | 'conversationId'> & RequestOptions;
65
+ /** Query values and optional request headers that are not bound by the client. */
66
+ export type SyncConversationSubagentsOptions = Omit<SyncConversationSubagentsRequest, 'channelId' | 'conversationId'> & RequestOptions;
67
+ /** Query values and optional request headers that are not bound by the client. */
68
+ export type GetConversationSubagentOptions = Omit<GetConversationSubagentRequest, 'channelId' | 'conversationId' | 'subagentTaskId'> & RequestOptions;
69
+ /** Query values and optional request headers that are not bound by the client. */
70
+ export type CancelConversationSubagentOptions = Omit<CancelConversationSubagentRequest, 'channelId' | 'conversationId' | 'subagentTaskId'> & RequestOptions;
71
+ /** Query values and optional request headers that are not bound by the client. */
72
+ export type GetConversationSubagentResultOptions = Omit<GetConversationSubagentResultRequest, 'channelId' | 'conversationId' | 'subagentTaskId'> & RequestOptions;
73
+ /** Query values and optional request headers that are not bound by the client. */
74
+ export type CancelQueuedMessageOptions = Omit<CancelQueuedMessageRequest, 'channelId' | 'conversationId' | 'messageId'> & RequestOptions;
75
+ /** Query values and optional request headers that are not bound by the client. */
76
+ export type GetChatEventsOptions = Omit<GetChatEventsRequest, 'channelId'> & RequestOptions;
77
+ /** Query values and optional request headers that are not bound by the client. */
78
+ export type GetChatEventsBatchOptions = Omit<GetChatEventsBatchRequest, 'channelId' | 'aiChatEventsBatchInput'> & RequestOptions;
79
+ /** Query values and optional request headers that are not bound by the client. */
80
+ export type ApprovePlanOptions = Omit<ApprovePlanRequest, 'channelId' | 'planApprovalInput'> & RequestOptions;
81
+ /** Query values and optional request headers that are not bound by the client. */
82
+ export type GetPlanStatusOptions = Omit<GetPlanStatusRequest, 'channelId' | 'planId'> & RequestOptions;
83
+ /** Query values and optional request headers that are not bound by the client. */
84
+ export type GetUserInputStatusOptions = Omit<GetUserInputStatusRequest, 'channelId' | 'questionId'> & RequestOptions;
85
+ /** Query values and optional request headers that are not bound by the client. */
86
+ export type AnswerUserInputOptions = Omit<AnswerUserInputRequest, 'channelId' | 'userInputAnswerInput'> & RequestOptions;
87
+ /** Query values and optional request headers that are not bound by the client. */
88
+ export type CreatePreSignedUploadOptions = Omit<CreatePreSignedUploadRequest, 'channelId' | 'generatePreSignedUrlInput'> & RequestOptions;
89
+ /** Query values and optional request headers that are not bound by the client. */
90
+ export type ConfirmPreSignedUploadOptions = Omit<ConfirmPreSignedUploadRequest, 'channelId' | 'confirmUploadInput'> & RequestOptions;
91
+ /** Query values and optional request headers that are not bound by the client. */
92
+ export type CreateFileByContentMd5Options = Omit<CreateFileByContentMd5Request, 'channelId' | 'createFileInput'> & RequestOptions;
93
+ /** Query values and optional request headers that are not bound by the client. */
94
+ export type FileExistsByContentMd5Options = Omit<FileExistsByContentMd5Request, 'channelId'> & RequestOptions;
95
+ /** Query values and optional request headers that are not bound by the client. */
96
+ export type GetConversationFilePreviewOptions = Omit<GetConversationFilePreviewRequest, 'channelId' | 'conversationId' | 'fileId'> & RequestOptions;
97
+ /** Query values and optional request headers that are not bound by the client. */
98
+ export type GetPlanIntermediateFilePreviewOptions = Omit<GetPlanIntermediateFilePreviewRequest, 'channelId' | 'conversationId' | 'messageId' | 'fileId'> & RequestOptions;
99
+ /** Query values and optional request headers that are not bound by the client. */
100
+ export type GetCitationMetadataBatchOptions = Omit<GetCitationMetadataBatchRequest, 'channelId' | 'returnedReference'> & RequestOptions;
101
+ /** Query values and optional request headers that are not bound by the client. */
102
+ export type GetCitationMetadataOptions = Omit<GetCitationMetadataRequest, 'channelId' | 'citationType' | 'referenceId'> & RequestOptions;
103
+ /** Query values and optional request headers that are not bound by the client. */
104
+ export type ListWorkspaceArtifactsOptions = Omit<ListWorkspaceArtifactsRequest, 'channelId' | 'conversationId'> & RequestOptions;
105
+ /** Query values and optional request headers that are not bound by the client. */
106
+ export type GetWorkspaceFilePreviewOptions = Omit<GetWorkspaceFilePreviewRequest, 'channelId' | 'conversationId'> & RequestOptions;
107
+ /** Query values and optional request headers that are not bound by the client. */
108
+ export type CreateOpenApiTokenOptions = Omit<CreateOpenApiTokenRequest, 'channelId'> & RequestOptions;
109
+ /** Query values and optional request headers that are not bound by the client. */
110
+ export type ListConversationGroupsOptions = Omit<ListConversationGroupsRequest, 'channelId'> & RequestOptions;
111
+ /** Query values and optional request headers that are not bound by the client. */
112
+ export type CreateConversationGroupOptions = Omit<CreateConversationGroupRequest, 'channelId' | 'conversationGroupNameInput'> & RequestOptions;
113
+ /** Query values and optional request headers that are not bound by the client. */
114
+ export type RenameConversationGroupOptions = Omit<RenameConversationGroupRequest, 'channelId' | 'groupId' | 'conversationGroupNameInput'> & RequestOptions;
115
+ /** Query values and optional request headers that are not bound by the client. */
116
+ export type DeleteConversationGroupOptions = Omit<DeleteConversationGroupRequest, 'channelId' | 'groupId'> & RequestOptions;
117
+ /** Query values and optional request headers that are not bound by the client. */
118
+ export type MoveConversationToGroupOptions = Omit<MoveConversationToGroupRequest, 'channelId' | 'conversationId' | 'updateConversationGroupInput'> & RequestOptions;
119
+ /** Query values and optional request headers that are not bound by the client. */
120
+ export type SyncConversationMessagesOptions = Omit<SyncConversationMessagesRequest, 'channelId' | 'conversationId'> & RequestOptions;
121
+ /** Query values and optional request headers that are not bound by the client. */
122
+ export type GetMessagePlanStatusOptions = Omit<GetMessagePlanStatusRequest, 'channelId' | 'conversationId' | 'messageId'> & RequestOptions;
123
+ /** Query values and optional request headers that are not bound by the client. */
124
+ export type GetGoalOptions = Omit<GetGoalRequest, 'channelId' | 'conversationId'> & RequestOptions;
125
+ /** Query values and optional request headers that are not bound by the client. */
126
+ export type EditGoalOptions = Omit<EditGoalRequest, 'channelId' | 'conversationId' | 'editAgentGoalInput'> & RequestOptions;
127
+ /** Query values and optional request headers that are not bound by the client. */
128
+ export type GetGoalHistoryOptions = Omit<GetGoalHistoryRequest, 'channelId' | 'conversationId'> & RequestOptions;
129
+ /** Query values and optional request headers that are not bound by the client. */
130
+ export type PauseGoalOptions = Omit<PauseGoalRequest, 'channelId' | 'conversationId' | 'agentGoalRefInput'> & RequestOptions;
131
+ /** Query values and optional request headers that are not bound by the client. */
132
+ export type ResumeGoalOptions = Omit<ResumeGoalRequest, 'channelId' | 'conversationId' | 'agentGoalRefInput'> & RequestOptions;
133
+ /** Query values and optional request headers that are not bound by the client. */
134
+ export type ClearGoalOptions = Omit<ClearGoalRequest, 'channelId' | 'conversationId' | 'agentGoalRefInput'> & RequestOptions;
37
135
  /** Generated APIs retained as an explicit compatibility escape hatch until 1.0. */
38
136
  export declare class AgentsLowLevelApis {
39
137
  readonly configuration: GeneratedConfigurationApi;
@@ -52,34 +150,42 @@ export declare class AgentsLowLevelApis {
52
150
  export declare class ConfigurationApi {
53
151
  private readonly channelId;
54
152
  private readonly delegate;
55
- constructor(channelId: string, delegate: GeneratedConfigurationApi);
153
+ private readonly tokenAuth;
154
+ constructor(channelId: string, delegate: GeneratedConfigurationApi, tokenAuth?: boolean);
56
155
  /**
57
156
  * 读取 Agent 配置 / Get Agent configuration
58
157
  *
59
158
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
60
159
  */
61
- getAgentsConfig(): ReturnType<GeneratedConfigurationApi['getAgentsConfig']>;
160
+ getAgentsConfig(options?: GetAgentsConfigOptions): ReturnType<GeneratedConfigurationApi['getAgentsConfig']>;
62
161
  /**
63
162
  * 读取会话配置 / Get conversation configuration
64
163
  *
65
164
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
66
165
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
67
166
  */
68
- getConversationConfig(conversationId: GetConversationConfigRequest['conversationId']): ReturnType<GeneratedConfigurationApi['getConversationConfig']>;
167
+ getConversationConfig(conversationId: GetConversationConfigRequest['conversationId'], options?: GetConversationConfigOptions): ReturnType<GeneratedConfigurationApi['getConversationConfig']>;
168
+ /**
169
+ * 签发一次性短期渠道令牌 / Create a single-use short-lived channel token
170
+ *
171
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
172
+ */
173
+ createOpenApiToken(options?: CreateOpenApiTokenOptions): ReturnType<GeneratedConfigurationApi['createOpenApiToken']>;
69
174
  }
70
175
  /** Channel-bound chat operations for one external user. */
71
176
  export declare class ChatApi {
72
177
  private readonly channelId;
73
178
  private readonly delegate;
74
179
  private readonly rawRequest;
75
- constructor(channelId: string, delegate: GeneratedChatApi, rawRequest: BoundRawRequest);
180
+ private readonly subscribe;
181
+ constructor(channelId: string, delegate: GeneratedChatApi, rawRequest: BoundRawRequest, subscribe: (conversationId: string, input: StreamChatEventsRequest['aiChatStreamInput'], options: StreamChatEventsOptions) => ChatSubscription);
76
182
  /**
77
183
  * 创建会话并提交消息 / Create a conversation and submit a message
78
184
  *
79
185
  * @param input - 创建会话并提交消息 / Create a conversation and submit a message 的强类型请求体。 / Typed request body for createChat.
80
186
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
81
187
  */
82
- createChat(input: CreateChatRequest['aiChatInput']): ReturnType<GeneratedChatApi['createChat']>;
188
+ createChat(input: CreateChatRequest['aiChatInput'], options?: CreateChatOptions): ReturnType<GeneratedChatApi['createChat']>;
83
189
  /**
84
190
  * 向已有会话提交消息 / Submit a message to an existing conversation
85
191
  *
@@ -87,7 +193,7 @@ export declare class ChatApi {
87
193
  * @param input - 向已有会话提交消息 / Submit a message to an existing conversation 的强类型请求体。 / Typed request body for continueChat.
88
194
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
89
195
  */
90
- continueChat(conversationId: ContinueChatRequest['conversationId'], input: ContinueChatRequest['aiChatInput']): ReturnType<GeneratedChatApi['continueChat']>;
196
+ continueChat(conversationId: ContinueChatRequest['conversationId'], input: ContinueChatRequest['aiChatInput'], options?: ContinueChatOptions): ReturnType<GeneratedChatApi['continueChat']>;
91
197
  /**
92
198
  * 订阅消息事件流 / Stream message events
93
199
  *
@@ -111,7 +217,7 @@ export declare class ChatApi {
111
217
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
112
218
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
113
219
  */
114
- interruptConversation(conversationId: InterruptConversationRequest['conversationId']): ReturnType<GeneratedChatApi['interruptConversation']>;
220
+ interruptConversation(conversationId: InterruptConversationRequest['conversationId'], options?: InterruptConversationOptions): ReturnType<GeneratedChatApi['interruptConversation']>;
115
221
  /**
116
222
  * 压缩会话上下文 / Compact conversation context
117
223
  *
@@ -120,6 +226,54 @@ export declare class ChatApi {
120
226
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
121
227
  */
122
228
  compactConversation(conversationId: CompactConversationRequest['conversationId'], options?: CompactConversationOptions): ReturnType<GeneratedChatApi['compactConversation']>;
229
+ /**
230
+ * 读取当前目标 / Get current goal
231
+ *
232
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
233
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
234
+ */
235
+ getGoal(conversationId: GetGoalRequest['conversationId'], options?: GetGoalOptions): ReturnType<GeneratedChatApi['getGoal']>;
236
+ /**
237
+ * 编辑目标 / Edit goal
238
+ *
239
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
240
+ * @param input - 编辑目标 / Edit goal 的强类型请求体。 / Typed request body for editGoal.
241
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
242
+ */
243
+ editGoal(conversationId: EditGoalRequest['conversationId'], input: EditGoalRequest['editAgentGoalInput'], options?: EditGoalOptions): ReturnType<GeneratedChatApi['editGoal']>;
244
+ /**
245
+ * 查询目标历史 / Get goal history
246
+ *
247
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
248
+ * @param options - 查询参数与可选请求头。 / Query parameters and optional request headers.
249
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
250
+ */
251
+ getGoalHistory(conversationId: GetGoalHistoryRequest['conversationId'], options?: GetGoalHistoryOptions): ReturnType<GeneratedChatApi['getGoalHistory']>;
252
+ /**
253
+ * 暂停目标 / Pause goal
254
+ *
255
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
256
+ * @param input - 暂停目标 / Pause goal 的强类型请求体。 / Typed request body for pauseGoal.
257
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
258
+ */
259
+ pauseGoal(conversationId: PauseGoalRequest['conversationId'], input: PauseGoalRequest['agentGoalRefInput'], options?: PauseGoalOptions): ReturnType<GeneratedChatApi['pauseGoal']>;
260
+ /**
261
+ * 恢复目标 / Resume goal
262
+ *
263
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
264
+ * @param input - 恢复目标 / Resume goal 的强类型请求体。 / Typed request body for resumeGoal.
265
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
266
+ */
267
+ resumeGoal(conversationId: ResumeGoalRequest['conversationId'], input: ResumeGoalRequest['agentGoalRefInput'], options?: ResumeGoalOptions): ReturnType<GeneratedChatApi['resumeGoal']>;
268
+ /**
269
+ * 清除目标 / Clear goal
270
+ *
271
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
272
+ * @param input - 清除目标 / Clear goal 的强类型请求体。 / Typed request body for clearGoal.
273
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
274
+ */
275
+ clearGoal(conversationId: ClearGoalRequest['conversationId'], input: ClearGoalRequest['agentGoalRefInput'], options?: ClearGoalOptions): ReturnType<GeneratedChatApi['clearGoal']>;
276
+ subscribeChatEvents(conversationId: string, input: StreamChatEventsRequest['aiChatStreamInput'], options?: StreamChatEventsOptions): ChatSubscription;
123
277
  }
124
278
  /** Channel-bound conversations operations for one external user. */
125
279
  export declare class ConversationsApi {
@@ -132,14 +286,21 @@ export declare class ConversationsApi {
132
286
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
133
287
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
134
288
  */
135
- deleteConversation(conversationId: DeleteConversationRequest['conversationId']): ReturnType<GeneratedConversationsApi['deleteConversation']>;
289
+ deleteConversation(conversationId: DeleteConversationRequest['conversationId'], options?: DeleteConversationOptions): ReturnType<GeneratedConversationsApi['deleteConversation']>;
290
+ /**
291
+ * 读取会话摘要 / Get conversation summary
292
+ *
293
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
294
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
295
+ */
296
+ getConversationSummary(conversationId: GetConversationSummaryRequest['conversationId'], options?: GetConversationSummaryOptions): ReturnType<GeneratedConversationsApi['getConversationSummary']>;
136
297
  /**
137
298
  * 读取上下文占用 / Get context usage
138
299
  *
139
300
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
140
301
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
141
302
  */
142
- getConversationContextUsage(conversationId: GetConversationContextUsageRequest['conversationId']): ReturnType<GeneratedConversationsApi['getConversationContextUsage']>;
303
+ getConversationContextUsage(conversationId: GetConversationContextUsageRequest['conversationId'], options?: GetConversationContextUsageOptions): ReturnType<GeneratedConversationsApi['getConversationContextUsage']>;
143
304
  /**
144
305
  * 分页查询会话 / List conversations
145
306
  *
@@ -152,20 +313,20 @@ export declare class ConversationsApi {
152
313
  *
153
314
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
154
315
  */
155
- listActiveConversations(): ReturnType<GeneratedConversationsApi['listActiveConversations']>;
316
+ listActiveConversations(options?: ListActiveConversationsOptions): ReturnType<GeneratedConversationsApi['listActiveConversations']>;
156
317
  /**
157
318
  * 查询未读会话 / List unread conversations
158
319
  *
159
320
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
160
321
  */
161
- listUnreadConversations(): ReturnType<GeneratedConversationsApi['listUnreadConversations']>;
322
+ listUnreadConversations(options?: ListUnreadConversationsOptions): ReturnType<GeneratedConversationsApi['listUnreadConversations']>;
162
323
  /**
163
324
  * 批量查询会话活动 / Query conversation activities
164
325
  *
165
326
  * @param input - 批量查询会话活动 / Query conversation activities 的强类型请求体。 / Typed request body for queryConversationActivities.
166
327
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
167
328
  */
168
- queryConversationActivities(input: QueryConversationActivitiesRequest['conversationActivityBatchInput']): ReturnType<GeneratedConversationsApi['queryConversationActivities']>;
329
+ queryConversationActivities(input: QueryConversationActivitiesRequest['conversationActivityBatchInput'], options?: QueryConversationActivitiesOptions): ReturnType<GeneratedConversationsApi['queryConversationActivities']>;
169
330
  /**
170
331
  * 推进会话已读游标 / Mark a conversation as read
171
332
  *
@@ -173,20 +334,20 @@ export declare class ConversationsApi {
173
334
  * @param input - 推进会话已读游标 / Mark a conversation as read 的强类型请求体。 / Typed request body for markConversationRead.
174
335
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
175
336
  */
176
- markConversationRead(conversationId: MarkConversationReadRequest['conversationId'], input: MarkConversationReadRequest['conversationReadReceiptInput']): ReturnType<GeneratedConversationsApi['markConversationRead']>;
337
+ markConversationRead(conversationId: MarkConversationReadRequest['conversationId'], input: MarkConversationReadRequest['conversationReadReceiptInput'], options?: MarkConversationReadOptions): ReturnType<GeneratedConversationsApi['markConversationRead']>;
177
338
  /**
178
339
  * 读取会话统计 / Get conversation statistics
179
340
  *
180
341
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
181
342
  */
182
- getConversationStats(): ReturnType<GeneratedConversationsApi['getConversationStats']>;
343
+ getConversationStats(options?: GetConversationStatsOptions): ReturnType<GeneratedConversationsApi['getConversationStats']>;
183
344
  /**
184
345
  * 读取会话标题 / Get conversation title
185
346
  *
186
347
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
187
348
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
188
349
  */
189
- getConversationTitle(conversationId: GetConversationTitleRequest['conversationId']): ReturnType<GeneratedConversationsApi['getConversationTitle']>;
350
+ getConversationTitle(conversationId: GetConversationTitleRequest['conversationId'], options?: GetConversationTitleOptions): ReturnType<GeneratedConversationsApi['getConversationTitle']>;
190
351
  /**
191
352
  * 更新会话标题 / Update conversation title
192
353
  *
@@ -194,7 +355,7 @@ export declare class ConversationsApi {
194
355
  * @param input - 更新会话标题 / Update conversation title 的强类型请求体。 / Typed request body for updateConversationTitle.
195
356
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
196
357
  */
197
- updateConversationTitle(conversationId: UpdateConversationTitleRequest['conversationId'], input: UpdateConversationTitleRequest['conversationTitleInput']): ReturnType<GeneratedConversationsApi['updateConversationTitle']>;
358
+ updateConversationTitle(conversationId: UpdateConversationTitleRequest['conversationId'], input: UpdateConversationTitleRequest['conversationTitleInput'], options?: UpdateConversationTitleOptions): ReturnType<GeneratedConversationsApi['updateConversationTitle']>;
198
359
  /**
199
360
  * 更新会话状态 / Update conversation status
200
361
  *
@@ -202,30 +363,43 @@ export declare class ConversationsApi {
202
363
  * @param input - 更新会话状态 / Update conversation status 的强类型请求体。 / Typed request body for updateConversationStatus.
203
364
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
204
365
  */
205
- updateConversationStatus(conversationId: UpdateConversationStatusRequest['conversationId'], input: UpdateConversationStatusRequest['conversationStatusInput']): ReturnType<GeneratedConversationsApi['updateConversationStatus']>;
366
+ updateConversationStatus(conversationId: UpdateConversationStatusRequest['conversationId'], input: UpdateConversationStatusRequest['conversationStatusInput'], options?: UpdateConversationStatusOptions): ReturnType<GeneratedConversationsApi['updateConversationStatus']>;
206
367
  /**
207
- * 查询会话分享 / List conversation shares
368
+ * 查询会话分组 / List conversation groups
208
369
  *
209
- * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
210
370
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
211
371
  */
212
- listConversationShares(conversationId: ListConversationSharesRequest['conversationId']): ReturnType<GeneratedConversationsApi['listConversationShares']>;
372
+ listConversationGroups(options?: ListConversationGroupsOptions): ReturnType<GeneratedConversationsApi['listConversationGroups']>;
213
373
  /**
214
- * 创建会话分享 / Create a conversation share
374
+ * 创建会话分组 / Create conversation group
215
375
  *
216
- * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
217
- * @param input - 创建会话分享 / Create a conversation share 的强类型请求体。 / Typed request body for createConversationShare.
376
+ * @param input - 创建会话分组 / Create conversation group 的强类型请求体。 / Typed request body for createConversationGroup.
218
377
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
219
378
  */
220
- createConversationShare(conversationId: CreateConversationShareRequest['conversationId'], input: CreateConversationShareRequest['conversationShareInput']): ReturnType<GeneratedConversationsApi['createConversationShare']>;
379
+ createConversationGroup(input: CreateConversationGroupRequest['conversationGroupNameInput'], options?: CreateConversationGroupOptions): ReturnType<GeneratedConversationsApi['createConversationGroup']>;
221
380
  /**
222
- * 撤销会话分享 / Revoke a conversation share
381
+ * 重命名会话分组 / Rename conversation group
382
+ *
383
+ * @param groupId - 字段 groupId / group id field。
384
+ * @param input - 重命名会话分组 / Rename conversation group 的强类型请求体。 / Typed request body for renameConversationGroup.
385
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
386
+ */
387
+ renameConversationGroup(groupId: RenameConversationGroupRequest['groupId'], input: RenameConversationGroupRequest['conversationGroupNameInput'], options?: RenameConversationGroupOptions): ReturnType<GeneratedConversationsApi['renameConversationGroup']>;
388
+ /**
389
+ * 删除会话分组 / Delete conversation group
390
+ *
391
+ * @param groupId - 字段 groupId / group id field。
392
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
393
+ */
394
+ deleteConversationGroup(groupId: DeleteConversationGroupRequest['groupId'], options?: DeleteConversationGroupOptions): ReturnType<GeneratedConversationsApi['deleteConversationGroup']>;
395
+ /**
396
+ * 移动会话分组 / Move conversation to group
223
397
  *
224
398
  * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
225
- * @param shareId - 会话分享记录 ID。 / Conversation-share record ID.
399
+ * @param input - 移动会话分组 / Move conversation to group 的强类型请求体。 / Typed request body for moveConversationToGroup.
226
400
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
227
401
  */
228
- revokeConversationShare(conversationId: RevokeConversationShareRequest['conversationId'], shareId: RevokeConversationShareRequest['shareId']): ReturnType<GeneratedConversationsApi['revokeConversationShare']>;
402
+ moveConversationToGroup(conversationId: MoveConversationToGroupRequest['conversationId'], input: MoveConversationToGroupRequest['updateConversationGroupInput'], options?: MoveConversationToGroupOptions): ReturnType<GeneratedConversationsApi['moveConversationToGroup']>;
229
403
  }
230
404
  /** Channel-bound sql operations for one external user. */
231
405
  export declare class SqlApi {
@@ -248,7 +422,7 @@ export declare class SqlApi {
248
422
  * @param resultId - SQL 查询结果 ID。 / SQL query-result ID.
249
423
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
250
424
  */
251
- getSqlQueryChartData(conversationId: GetSqlQueryChartDataRequest['conversationId'], resultId: GetSqlQueryChartDataRequest['resultId']): ReturnType<GeneratedSQLApi['getSqlQueryChartData']>;
425
+ getSqlQueryChartData(conversationId: GetSqlQueryChartDataRequest['conversationId'], resultId: GetSqlQueryChartDataRequest['resultId'], options?: GetSqlQueryChartDataOptions): ReturnType<GeneratedSQLApi['getSqlQueryChartData']>;
252
426
  /**
253
427
  * 导出 SQL 结果 / Export SQL results
254
428
  *
@@ -258,6 +432,7 @@ export declare class SqlApi {
258
432
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
259
433
  */
260
434
  exportSqlQueryResult(conversationId: ExportSqlQueryResultRequest['conversationId'], resultId: ExportSqlQueryResultRequest['resultId'], options: ExportSqlQueryResultOptions): Promise<Uint8Array>;
435
+ exportSqlQueryResultWithMetadata(conversationId: ExportSqlQueryResultRequest['conversationId'], resultId: ExportSqlQueryResultRequest['resultId'], options: ExportSqlQueryResultOptions): Promise<DownloadResponse>;
261
436
  }
262
437
  /** Channel-bound messages operations for one external user. */
263
438
  export declare class MessagesApi {
@@ -279,7 +454,7 @@ export declare class MessagesApi {
279
454
  * @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
280
455
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
281
456
  */
282
- getConversationMessage(conversationId: GetConversationMessageRequest['conversationId'], messageId: GetConversationMessageRequest['messageId']): ReturnType<GeneratedMessagesApi['getConversationMessage']>;
457
+ getConversationMessage(conversationId: GetConversationMessageRequest['conversationId'], messageId: GetConversationMessageRequest['messageId'], options?: GetConversationMessageOptions): ReturnType<GeneratedMessagesApi['getConversationMessage']>;
283
458
  /**
284
459
  * 分页查询异步任务 / List asynchronous tasks
285
460
  *
@@ -303,7 +478,7 @@ export declare class MessagesApi {
303
478
  * @param asyncTaskId - 异步任务 ID。 / Asynchronous task ID.
304
479
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
305
480
  */
306
- getConversationAsyncTask(conversationId: GetConversationAsyncTaskRequest['conversationId'], asyncTaskId: GetConversationAsyncTaskRequest['asyncTaskId']): ReturnType<GeneratedMessagesApi['getConversationAsyncTask']>;
481
+ getConversationAsyncTask(conversationId: GetConversationAsyncTaskRequest['conversationId'], asyncTaskId: GetConversationAsyncTaskRequest['asyncTaskId'], options?: GetConversationAsyncTaskOptions): ReturnType<GeneratedMessagesApi['getConversationAsyncTask']>;
307
482
  /**
308
483
  * 分页查询子 Agent 任务 / List subagent tasks
309
484
  *
@@ -327,7 +502,7 @@ export declare class MessagesApi {
327
502
  * @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
328
503
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
329
504
  */
330
- getConversationSubagent(conversationId: GetConversationSubagentRequest['conversationId'], subagentTaskId: GetConversationSubagentRequest['subagentTaskId']): ReturnType<GeneratedMessagesApi['getConversationSubagent']>;
505
+ getConversationSubagent(conversationId: GetConversationSubagentRequest['conversationId'], subagentTaskId: GetConversationSubagentRequest['subagentTaskId'], options?: GetConversationSubagentOptions): ReturnType<GeneratedMessagesApi['getConversationSubagent']>;
331
506
  /**
332
507
  * 取消子 Agent 任务 / Cancel a subagent task
333
508
  *
@@ -335,7 +510,7 @@ export declare class MessagesApi {
335
510
  * @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
336
511
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
337
512
  */
338
- cancelConversationSubagent(conversationId: CancelConversationSubagentRequest['conversationId'], subagentTaskId: CancelConversationSubagentRequest['subagentTaskId']): ReturnType<GeneratedMessagesApi['cancelConversationSubagent']>;
513
+ cancelConversationSubagent(conversationId: CancelConversationSubagentRequest['conversationId'], subagentTaskId: CancelConversationSubagentRequest['subagentTaskId'], options?: CancelConversationSubagentOptions): ReturnType<GeneratedMessagesApi['cancelConversationSubagent']>;
339
514
  /**
340
515
  * 读取子 Agent 结果 / Get a subagent result
341
516
  *
@@ -343,7 +518,7 @@ export declare class MessagesApi {
343
518
  * @param subagentTaskId - 子 Agent 任务 ID。 / Subagent task ID.
344
519
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
345
520
  */
346
- getConversationSubagentResult(conversationId: GetConversationSubagentResultRequest['conversationId'], subagentTaskId: GetConversationSubagentResultRequest['subagentTaskId']): ReturnType<GeneratedMessagesApi['getConversationSubagentResult']>;
521
+ getConversationSubagentResult(conversationId: GetConversationSubagentResultRequest['conversationId'], subagentTaskId: GetConversationSubagentResultRequest['subagentTaskId'], options?: GetConversationSubagentResultOptions): ReturnType<GeneratedMessagesApi['getConversationSubagentResult']>;
347
522
  /**
348
523
  * 取消排队消息 / Cancel a queued message
349
524
  *
@@ -351,7 +526,15 @@ export declare class MessagesApi {
351
526
  * @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
352
527
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
353
528
  */
354
- cancelQueuedMessage(conversationId: CancelQueuedMessageRequest['conversationId'], messageId: CancelQueuedMessageRequest['messageId']): ReturnType<GeneratedMessagesApi['cancelQueuedMessage']>;
529
+ cancelQueuedMessage(conversationId: CancelQueuedMessageRequest['conversationId'], messageId: CancelQueuedMessageRequest['messageId'], options?: CancelQueuedMessageOptions): ReturnType<GeneratedMessagesApi['cancelQueuedMessage']>;
530
+ /**
531
+ * 增量同步消息 / Sync conversation messages
532
+ *
533
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
534
+ * @param options - 查询参数与可选请求头。 / Query parameters and optional request headers.
535
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
536
+ */
537
+ syncConversationMessages(conversationId: SyncConversationMessagesRequest['conversationId'], options?: SyncConversationMessagesOptions): ReturnType<GeneratedMessagesApi['syncConversationMessages']>;
355
538
  }
356
539
  /** Channel-bound events operations for one external user. */
357
540
  export declare class EventsApi {
@@ -371,7 +554,7 @@ export declare class EventsApi {
371
554
  * @param input - 批量读取消息事件 / Get message events in batch 的强类型请求体。 / Typed request body for getChatEventsBatch.
372
555
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
373
556
  */
374
- getChatEventsBatch(input: GetChatEventsBatchRequest['aiChatEventsBatchInput']): ReturnType<GeneratedEventsApi['getChatEventsBatch']>;
557
+ getChatEventsBatch(input: GetChatEventsBatchRequest['aiChatEventsBatchInput'], options?: GetChatEventsBatchOptions): ReturnType<GeneratedEventsApi['getChatEventsBatch']>;
375
558
  }
376
559
  /** Channel-bound interactions operations for one external user. */
377
560
  export declare class InteractionsApi {
@@ -384,14 +567,14 @@ export declare class InteractionsApi {
384
567
  * @param input - 提交计划审批 / Submit plan approval 的强类型请求体。 / Typed request body for approvePlan.
385
568
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
386
569
  */
387
- approvePlan(input: ApprovePlanRequest['planApprovalInput']): ReturnType<GeneratedInteractionsApi['approvePlan']>;
570
+ approvePlan(input: ApprovePlanRequest['planApprovalInput'], options?: ApprovePlanOptions): ReturnType<GeneratedInteractionsApi['approvePlan']>;
388
571
  /**
389
572
  * 查询计划审批状态 / Get plan approval status
390
573
  *
391
574
  * @param planId - 等待审批的计划 ID。 / Pending plan-approval ID.
392
575
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
393
576
  */
394
- getPlanStatus(planId: GetPlanStatusRequest['planId']): ReturnType<GeneratedInteractionsApi['getPlanStatus']>;
577
+ getPlanStatus(planId: GetPlanStatusRequest['planId'], options?: GetPlanStatusOptions): ReturnType<GeneratedInteractionsApi['getPlanStatus']>;
395
578
  /**
396
579
  * 查询用户问答状态 / Get user-input status
397
580
  *
@@ -406,7 +589,15 @@ export declare class InteractionsApi {
406
589
  * @param input - 提交用户回答 / Submit a user answer 的强类型请求体。 / Typed request body for answerUserInput.
407
590
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
408
591
  */
409
- answerUserInput(input: AnswerUserInputRequest['userInputAnswerInput']): ReturnType<GeneratedInteractionsApi['answerUserInput']>;
592
+ answerUserInput(input: AnswerUserInputRequest['userInputAnswerInput'], options?: AnswerUserInputOptions): ReturnType<GeneratedInteractionsApi['answerUserInput']>;
593
+ /**
594
+ * 查询消息计划审批状态 / Get message plan status
595
+ *
596
+ * @param conversationId - 会话 ID;必须属于当前外部用户。 / Conversation ID owned by the current external user.
597
+ * @param messageId - 用户消息 ID;必须属于指定会话。 / User-message ID owned by the specified conversation.
598
+ * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
599
+ */
600
+ getMessagePlanStatus(conversationId: GetMessagePlanStatusRequest['conversationId'], messageId: GetMessagePlanStatusRequest['messageId'], options?: GetMessagePlanStatusOptions): ReturnType<GeneratedInteractionsApi['getMessagePlanStatus']>;
410
601
  }
411
602
  /** Channel-bound files operations for one external user. */
412
603
  export declare class FilesApi {
@@ -419,21 +610,21 @@ export declare class FilesApi {
419
610
  * @param input - 创建预签名上传地址 / Create a presigned upload URL 的强类型请求体。 / Typed request body for createPreSignedUpload.
420
611
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
421
612
  */
422
- createPreSignedUpload(input: CreatePreSignedUploadRequest['generatePreSignedUrlInput']): ReturnType<GeneratedFilesApi['createPreSignedUpload']>;
613
+ createPreSignedUpload(input: CreatePreSignedUploadRequest['generatePreSignedUrlInput'], options?: CreatePreSignedUploadOptions): ReturnType<GeneratedFilesApi['createPreSignedUpload']>;
423
614
  /**
424
615
  * 确认预签名上传 / Confirm a presigned upload
425
616
  *
426
617
  * @param input - 确认预签名上传 / Confirm a presigned upload 的强类型请求体。 / Typed request body for confirmPreSignedUpload.
427
618
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
428
619
  */
429
- confirmPreSignedUpload(input: ConfirmPreSignedUploadRequest['confirmUploadInput']): ReturnType<GeneratedFilesApi['confirmPreSignedUpload']>;
620
+ confirmPreSignedUpload(input: ConfirmPreSignedUploadRequest['confirmUploadInput'], options?: ConfirmPreSignedUploadOptions): ReturnType<GeneratedFilesApi['confirmPreSignedUpload']>;
430
621
  /**
431
622
  * 按 MD5 复用文件 / Reuse a file by MD5
432
623
  *
433
624
  * @param input - 按 MD5 复用文件 / Reuse a file by MD5 的强类型请求体。 / Typed request body for createFileByContentMd5.
434
625
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
435
626
  */
436
- createFileByContentMd5(input: CreateFileByContentMd5Request['createFileInput']): ReturnType<GeneratedFilesApi['createFileByContentMd5']>;
627
+ createFileByContentMd5(input: CreateFileByContentMd5Request['createFileInput'], options?: CreateFileByContentMd5Options): ReturnType<GeneratedFilesApi['createFileByContentMd5']>;
437
628
  /**
438
629
  * 检查 MD5 文件是否存在 / Check file existence by MD5
439
630
  *
@@ -448,7 +639,7 @@ export declare class FilesApi {
448
639
  * @param fileId - 文件记录 ID。 / File record ID.
449
640
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
450
641
  */
451
- getConversationFilePreview(conversationId: GetConversationFilePreviewRequest['conversationId'], fileId: GetConversationFilePreviewRequest['fileId']): ReturnType<GeneratedFilesApi['getConversationFilePreview']>;
642
+ getConversationFilePreview(conversationId: GetConversationFilePreviewRequest['conversationId'], fileId: GetConversationFilePreviewRequest['fileId'], options?: GetConversationFilePreviewOptions): ReturnType<GeneratedFilesApi['getConversationFilePreview']>;
452
643
  /**
453
644
  * 创建计划快照预览地址 / Create a plan snapshot preview URL
454
645
  *
@@ -457,7 +648,7 @@ export declare class FilesApi {
457
648
  * @param fileId - 文件记录 ID。 / File record ID.
458
649
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
459
650
  */
460
- getPlanIntermediateFilePreview(conversationId: GetPlanIntermediateFilePreviewRequest['conversationId'], messageId: GetPlanIntermediateFilePreviewRequest['messageId'], fileId: GetPlanIntermediateFilePreviewRequest['fileId']): ReturnType<GeneratedFilesApi['getPlanIntermediateFilePreview']>;
651
+ getPlanIntermediateFilePreview(conversationId: GetPlanIntermediateFilePreviewRequest['conversationId'], messageId: GetPlanIntermediateFilePreviewRequest['messageId'], fileId: GetPlanIntermediateFilePreviewRequest['fileId'], options?: GetPlanIntermediateFilePreviewOptions): ReturnType<GeneratedFilesApi['getPlanIntermediateFilePreview']>;
461
652
  }
462
653
  /** Channel-bound knowledge operations for one external user. */
463
654
  export declare class KnowledgeApi {
@@ -470,7 +661,7 @@ export declare class KnowledgeApi {
470
661
  * @param input - 批量读取引用元数据 / Get citation metadata in batch 的强类型请求体。 / Typed request body for getCitationMetadataBatch.
471
662
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
472
663
  */
473
- getCitationMetadataBatch(input: GetCitationMetadataBatchRequest['returnedReference']): ReturnType<GeneratedKnowledgeApi['getCitationMetadataBatch']>;
664
+ getCitationMetadataBatch(input: GetCitationMetadataBatchRequest['returnedReference'], options?: GetCitationMetadataBatchOptions): ReturnType<GeneratedKnowledgeApi['getCitationMetadataBatch']>;
474
665
  /**
475
666
  * 读取引用元数据 / Get citation metadata
476
667
  *
@@ -478,7 +669,7 @@ export declare class KnowledgeApi {
478
669
  * @param referenceId - 知识引用记录 ID。 / Knowledge-reference record ID.
479
670
  * @returns 契约定义的强类型响应。 / The typed response defined by the contract.
480
671
  */
481
- getCitationMetadata(citationType: GetCitationMetadataRequest['citationType'], referenceId: GetCitationMetadataRequest['referenceId']): ReturnType<GeneratedKnowledgeApi['getCitationMetadata']>;
672
+ getCitationMetadata(citationType: GetCitationMetadataRequest['citationType'], referenceId: GetCitationMetadataRequest['referenceId'], options?: GetCitationMetadataOptions): ReturnType<GeneratedKnowledgeApi['getCitationMetadata']>;
482
673
  }
483
674
  /** Channel-bound workspace operations for one external user. */
484
675
  export declare class WorkspaceApi {