wechaty-web-panel 1.6.80 → 1.6.82

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 (346) hide show
  1. package/.github/workflows/npm.yml +1 -3
  2. package/package.json +1 -1
  3. package/dist/cjs/src/bot/chatgpt/index.d.ts +0 -60
  4. package/dist/cjs/src/bot/chatgpt/index.js +0 -235
  5. package/dist/cjs/src/bot/coze/sdk/index.d.ts +0 -45
  6. package/dist/cjs/src/bot/coze/sdk/index.js +0 -108
  7. package/dist/cjs/src/bot/dify/sdk/index.d.ts +0 -167
  8. package/dist/cjs/src/bot/dify/sdk/index.js +0 -471
  9. package/dist/cjs/src/bot/dify/sdk/office.d.ts +0 -143
  10. package/dist/cjs/src/bot/dify/sdk/office.js +0 -329
  11. package/dist/cjs/src/bot/fastgpt/index.d.ts +0 -10
  12. package/dist/cjs/src/bot/fastgpt/index.js +0 -75
  13. package/dist/cjs/src/bot/qanything/index.d.ts +0 -35
  14. package/dist/cjs/src/bot/qanything/index.js +0 -143
  15. package/dist/cjs/src/botInstance/coze.d.ts +0 -60
  16. package/dist/cjs/src/botInstance/coze.js +0 -164
  17. package/dist/cjs/src/botInstance/cozev3.d.ts +0 -50
  18. package/dist/cjs/src/botInstance/cozev3.js +0 -152
  19. package/dist/cjs/src/botInstance/dify.d.ts +0 -41
  20. package/dist/cjs/src/botInstance/dify.js +0 -153
  21. package/dist/cjs/src/botInstance/fastgpt.d.ts +0 -32
  22. package/dist/cjs/src/botInstance/fastgpt.js +0 -128
  23. package/dist/cjs/src/botInstance/gpt4v.d.ts +0 -9
  24. package/dist/cjs/src/botInstance/gpt4v.js +0 -103
  25. package/dist/cjs/src/botInstance/officialOpenAi.d.ts +0 -46
  26. package/dist/cjs/src/botInstance/officialOpenAi.js +0 -188
  27. package/dist/cjs/src/botInstance/qany.d.ts +0 -38
  28. package/dist/cjs/src/botInstance/qany.js +0 -141
  29. package/dist/cjs/src/botInstance/sdk/chatGPT4V.d.ts +0 -17
  30. package/dist/cjs/src/botInstance/sdk/chatGPT4V.js +0 -96
  31. package/dist/cjs/src/botInstance/sdk/coze.d.ts +0 -27
  32. package/dist/cjs/src/botInstance/sdk/coze.js +0 -206
  33. package/dist/cjs/src/botInstance/sdk/difyClient.d.ts +0 -100
  34. package/dist/cjs/src/botInstance/sdk/difyClient.js +0 -289
  35. package/dist/cjs/src/botInstance/sdk/pTimeout.d.ts +0 -13
  36. package/dist/cjs/src/botInstance/sdk/pTimeout.js +0 -103
  37. package/dist/cjs/src/botInstance/sdk/qanything.d.ts +0 -35
  38. package/dist/cjs/src/botInstance/sdk/qanything.js +0 -143
  39. package/dist/cjs/src/botInstance/sdk/quick-lru.d.ts +0 -33
  40. package/dist/cjs/src/botInstance/sdk/quick-lru.js +0 -240
  41. package/dist/cjs/src/common/hook.d.ts +0 -11
  42. package/dist/cjs/src/common/hook.js +0 -70
  43. package/dist/cjs/src/common/index.d.ts +0 -111
  44. package/dist/cjs/src/common/index.js +0 -518
  45. package/dist/cjs/src/common/multiReply.d.ts +0 -24
  46. package/dist/cjs/src/common/multiReply.js +0 -161
  47. package/dist/cjs/src/common/reply.d.ts +0 -12
  48. package/dist/cjs/src/common/reply.js +0 -27
  49. package/dist/cjs/src/const/puppet-type.d.ts +0 -30
  50. package/dist/cjs/src/const/puppet-type.js +0 -77
  51. package/dist/cjs/src/db/aiDb.d.ts +0 -8
  52. package/dist/cjs/src/db/aiDb.js +0 -33
  53. package/dist/cjs/src/db/aichatDb.d.ts +0 -27
  54. package/dist/cjs/src/db/aichatDb.js +0 -94
  55. package/dist/cjs/src/db/chatHistory.d.ts +0 -42
  56. package/dist/cjs/src/db/chatHistory.js +0 -150
  57. package/dist/cjs/src/db/configDb.d.ts +0 -36
  58. package/dist/cjs/src/db/configDb.js +0 -103
  59. package/dist/cjs/src/db/global.d.ts +0 -2
  60. package/dist/cjs/src/db/global.js +0 -64
  61. package/dist/cjs/src/db/gptConfig.d.ts +0 -18
  62. package/dist/cjs/src/db/gptConfig.js +0 -97
  63. package/dist/cjs/src/db/nedb.d.ts +0 -17
  64. package/dist/cjs/src/db/nedb.js +0 -93
  65. package/dist/cjs/src/db/puppetDb.d.ts +0 -19
  66. package/dist/cjs/src/db/puppetDb.js +0 -68
  67. package/dist/cjs/src/db/roomDb.d.ts +0 -27
  68. package/dist/cjs/src/db/roomDb.js +0 -93
  69. package/dist/cjs/src/db/rssConfig.d.ts +0 -18
  70. package/dist/cjs/src/db/rssConfig.js +0 -94
  71. package/dist/cjs/src/db/rssHistory.d.ts +0 -22
  72. package/dist/cjs/src/db/rssHistory.js +0 -99
  73. package/dist/cjs/src/db/userDb.d.ts +0 -8
  74. package/dist/cjs/src/db/userDb.js +0 -33
  75. package/dist/cjs/src/handlers/on-callback-message.d.ts +0 -3
  76. package/dist/cjs/src/handlers/on-callback-message.js +0 -179
  77. package/dist/cjs/src/handlers/on-error.d.ts +0 -3
  78. package/dist/cjs/src/handlers/on-error.js +0 -7
  79. package/dist/cjs/src/handlers/on-friend.d.ts +0 -6
  80. package/dist/cjs/src/handlers/on-friend.js +0 -64
  81. package/dist/cjs/src/handlers/on-heartbeat.d.ts +0 -3
  82. package/dist/cjs/src/handlers/on-heartbeat.js +0 -22
  83. package/dist/cjs/src/handlers/on-login.d.ts +0 -7
  84. package/dist/cjs/src/handlers/on-login.js +0 -59
  85. package/dist/cjs/src/handlers/on-logout.d.ts +0 -6
  86. package/dist/cjs/src/handlers/on-logout.js +0 -19
  87. package/dist/cjs/src/handlers/on-message.d.ts +0 -3
  88. package/dist/cjs/src/handlers/on-message.js +0 -453
  89. package/dist/cjs/src/handlers/on-ready.d.ts +0 -6
  90. package/dist/cjs/src/handlers/on-ready.js +0 -44
  91. package/dist/cjs/src/handlers/on-record-message.d.ts +0 -3
  92. package/dist/cjs/src/handlers/on-record-message.js +0 -54
  93. package/dist/cjs/src/handlers/on-roomjoin.d.ts +0 -6
  94. package/dist/cjs/src/handlers/on-roomjoin.js +0 -43
  95. package/dist/cjs/src/handlers/on-roomleave.d.ts +0 -3
  96. package/dist/cjs/src/handlers/on-roomleave.js +0 -13
  97. package/dist/cjs/src/handlers/on-roomtopic.d.ts +0 -3
  98. package/dist/cjs/src/handlers/on-roomtopic.js +0 -17
  99. package/dist/cjs/src/handlers/on-scan.d.ts +0 -7
  100. package/dist/cjs/src/handlers/on-scan.js +0 -71
  101. package/dist/cjs/src/handlers/on-verifycode.d.ts +0 -2
  102. package/dist/cjs/src/handlers/on-verifycode.js +0 -37
  103. package/dist/cjs/src/index.d.ts +0 -8
  104. package/dist/cjs/src/index.js +0 -95
  105. package/dist/cjs/src/lib/contentCensor.d.ts +0 -8
  106. package/dist/cjs/src/lib/contentCensor.js +0 -30
  107. package/dist/cjs/src/lib/index.d.ts +0 -158
  108. package/dist/cjs/src/lib/index.js +0 -588
  109. package/dist/cjs/src/lib/oss.d.ts +0 -2
  110. package/dist/cjs/src/lib/oss.js +0 -31
  111. package/dist/cjs/src/package-json.d.ts +0 -75
  112. package/dist/cjs/src/package-json.js +0 -81
  113. package/dist/cjs/src/proxy/aibotk.d.ts +0 -200
  114. package/dist/cjs/src/proxy/aibotk.js +0 -809
  115. package/dist/cjs/src/proxy/api.d.ts +0 -85
  116. package/dist/cjs/src/proxy/api.js +0 -455
  117. package/dist/cjs/src/proxy/apib.d.ts +0 -109
  118. package/dist/cjs/src/proxy/apib.js +0 -589
  119. package/dist/cjs/src/proxy/bot/chatgpt.d.ts +0 -17
  120. package/dist/cjs/src/proxy/bot/chatgpt.js +0 -47
  121. package/dist/cjs/src/proxy/bot/coze.d.ts +0 -14
  122. package/dist/cjs/src/proxy/bot/coze.js +0 -47
  123. package/dist/cjs/src/proxy/bot/cozev3.d.ts +0 -18
  124. package/dist/cjs/src/proxy/bot/cozev3.js +0 -47
  125. package/dist/cjs/src/proxy/bot/dify.d.ts +0 -18
  126. package/dist/cjs/src/proxy/bot/dify.js +0 -47
  127. package/dist/cjs/src/proxy/bot/dispatch.d.ts +0 -7
  128. package/dist/cjs/src/proxy/bot/dispatch.js +0 -79
  129. package/dist/cjs/src/proxy/bot/fastgpt.d.ts +0 -14
  130. package/dist/cjs/src/proxy/bot/fastgpt.js +0 -36
  131. package/dist/cjs/src/proxy/bot/qany.d.ts +0 -10
  132. package/dist/cjs/src/proxy/bot/qany.js +0 -36
  133. package/dist/cjs/src/proxy/config.d.ts +0 -14
  134. package/dist/cjs/src/proxy/config.js +0 -16
  135. package/dist/cjs/src/proxy/cozeAi.d.ts +0 -11
  136. package/dist/cjs/src/proxy/cozeAi.js +0 -67
  137. package/dist/cjs/src/proxy/cozeV3Ai.d.ts +0 -16
  138. package/dist/cjs/src/proxy/cozeV3Ai.js +0 -67
  139. package/dist/cjs/src/proxy/difyAi.d.ts +0 -16
  140. package/dist/cjs/src/proxy/difyAi.js +0 -65
  141. package/dist/cjs/src/proxy/fastgpt.d.ts +0 -12
  142. package/dist/cjs/src/proxy/fastgpt.js +0 -62
  143. package/dist/cjs/src/proxy/mqtt.d.ts +0 -7
  144. package/dist/cjs/src/proxy/mqtt.js +0 -305
  145. package/dist/cjs/src/proxy/multimodal.d.ts +0 -26
  146. package/dist/cjs/src/proxy/multimodal.js +0 -131
  147. package/dist/cjs/src/proxy/openAi.d.ts +0 -13
  148. package/dist/cjs/src/proxy/openAi.js +0 -70
  149. package/dist/cjs/src/proxy/outapi.d.ts +0 -7
  150. package/dist/cjs/src/proxy/outapi.js +0 -69
  151. package/dist/cjs/src/proxy/qAnyAi.d.ts +0 -11
  152. package/dist/cjs/src/proxy/qAnyAi.js +0 -64
  153. package/dist/cjs/src/proxy/superagent.d.ts +0 -14
  154. package/dist/cjs/src/proxy/superagent.js +0 -195
  155. package/dist/cjs/src/proxy/tencent-open.d.ts +0 -10
  156. package/dist/cjs/src/proxy/tencent-open.js +0 -261
  157. package/dist/cjs/src/service/event-dispatch-service.d.ts +0 -36
  158. package/dist/cjs/src/service/event-dispatch-service.js +0 -287
  159. package/dist/cjs/src/service/gpt4vService.d.ts +0 -13
  160. package/dist/cjs/src/service/gpt4vService.js +0 -52
  161. package/dist/cjs/src/service/msg-filter-service.d.ts +0 -28
  162. package/dist/cjs/src/service/msg-filter-service.js +0 -115
  163. package/dist/cjs/src/service/msg-filters.d.ts +0 -182
  164. package/dist/cjs/src/service/msg-filters.js +0 -650
  165. package/dist/cjs/src/service/room-async-service.d.ts +0 -9
  166. package/dist/cjs/src/service/room-async-service.js +0 -461
  167. package/dist/cjs/src/task/index.d.ts +0 -42
  168. package/dist/cjs/src/task/index.js +0 -540
  169. package/dist/cjs/src/task/rss.d.ts +0 -12
  170. package/dist/cjs/src/task/rss.js +0 -182
  171. package/dist/cjs/test/wechat.d.ts +0 -2
  172. package/dist/cjs/test/wechat.js +0 -34
  173. package/dist/cjs/test/wework.d.ts +0 -2
  174. package/dist/cjs/test/wework.js +0 -27
  175. package/dist/esm/src/bot/chatgpt/index.d.ts +0 -60
  176. package/dist/esm/src/bot/chatgpt/index.js +0 -231
  177. package/dist/esm/src/bot/coze/sdk/index.d.ts +0 -45
  178. package/dist/esm/src/bot/coze/sdk/index.js +0 -105
  179. package/dist/esm/src/bot/dify/sdk/index.d.ts +0 -167
  180. package/dist/esm/src/bot/dify/sdk/index.js +0 -461
  181. package/dist/esm/src/bot/dify/sdk/office.d.ts +0 -143
  182. package/dist/esm/src/bot/dify/sdk/office.js +0 -319
  183. package/dist/esm/src/bot/fastgpt/index.d.ts +0 -10
  184. package/dist/esm/src/bot/fastgpt/index.js +0 -68
  185. package/dist/esm/src/bot/qanything/index.d.ts +0 -35
  186. package/dist/esm/src/bot/qanything/index.js +0 -136
  187. package/dist/esm/src/botInstance/coze.d.ts +0 -60
  188. package/dist/esm/src/botInstance/coze.js +0 -159
  189. package/dist/esm/src/botInstance/cozev3.d.ts +0 -50
  190. package/dist/esm/src/botInstance/cozev3.js +0 -147
  191. package/dist/esm/src/botInstance/dify.d.ts +0 -41
  192. package/dist/esm/src/botInstance/dify.js +0 -148
  193. package/dist/esm/src/botInstance/fastgpt.d.ts +0 -32
  194. package/dist/esm/src/botInstance/fastgpt.js +0 -123
  195. package/dist/esm/src/botInstance/gpt4v.d.ts +0 -9
  196. package/dist/esm/src/botInstance/gpt4v.js +0 -95
  197. package/dist/esm/src/botInstance/officialOpenAi.d.ts +0 -46
  198. package/dist/esm/src/botInstance/officialOpenAi.js +0 -183
  199. package/dist/esm/src/botInstance/qany.d.ts +0 -38
  200. package/dist/esm/src/botInstance/qany.js +0 -136
  201. package/dist/esm/src/botInstance/sdk/chatGPT4V.d.ts +0 -17
  202. package/dist/esm/src/botInstance/sdk/chatGPT4V.js +0 -89
  203. package/dist/esm/src/botInstance/sdk/coze.d.ts +0 -27
  204. package/dist/esm/src/botInstance/sdk/coze.js +0 -200
  205. package/dist/esm/src/botInstance/sdk/difyClient.d.ts +0 -100
  206. package/dist/esm/src/botInstance/sdk/difyClient.js +0 -280
  207. package/dist/esm/src/botInstance/sdk/pTimeout.d.ts +0 -13
  208. package/dist/esm/src/botInstance/sdk/pTimeout.js +0 -97
  209. package/dist/esm/src/botInstance/sdk/qanything.d.ts +0 -35
  210. package/dist/esm/src/botInstance/sdk/qanything.js +0 -137
  211. package/dist/esm/src/botInstance/sdk/quick-lru.d.ts +0 -33
  212. package/dist/esm/src/botInstance/sdk/quick-lru.js +0 -237
  213. package/dist/esm/src/common/hook.d.ts +0 -11
  214. package/dist/esm/src/common/hook.js +0 -66
  215. package/dist/esm/src/common/index.d.ts +0 -111
  216. package/dist/esm/src/common/index.js +0 -511
  217. package/dist/esm/src/common/multiReply.d.ts +0 -24
  218. package/dist/esm/src/common/multiReply.js +0 -158
  219. package/dist/esm/src/common/reply.d.ts +0 -12
  220. package/dist/esm/src/common/reply.js +0 -19
  221. package/dist/esm/src/const/puppet-type.d.ts +0 -30
  222. package/dist/esm/src/const/puppet-type.js +0 -71
  223. package/dist/esm/src/db/aiDb.d.ts +0 -8
  224. package/dist/esm/src/db/aiDb.js +0 -27
  225. package/dist/esm/src/db/aichatDb.d.ts +0 -27
  226. package/dist/esm/src/db/aichatDb.js +0 -84
  227. package/dist/esm/src/db/chatHistory.d.ts +0 -42
  228. package/dist/esm/src/db/chatHistory.js +0 -137
  229. package/dist/esm/src/db/configDb.d.ts +0 -36
  230. package/dist/esm/src/db/configDb.js +0 -97
  231. package/dist/esm/src/db/global.d.ts +0 -2
  232. package/dist/esm/src/db/global.js +0 -62
  233. package/dist/esm/src/db/gptConfig.d.ts +0 -18
  234. package/dist/esm/src/db/gptConfig.js +0 -85
  235. package/dist/esm/src/db/nedb.d.ts +0 -17
  236. package/dist/esm/src/db/nedb.js +0 -88
  237. package/dist/esm/src/db/puppetDb.d.ts +0 -19
  238. package/dist/esm/src/db/puppetDb.js +0 -58
  239. package/dist/esm/src/db/roomDb.d.ts +0 -27
  240. package/dist/esm/src/db/roomDb.js +0 -83
  241. package/dist/esm/src/db/rssConfig.d.ts +0 -18
  242. package/dist/esm/src/db/rssConfig.js +0 -82
  243. package/dist/esm/src/db/rssHistory.d.ts +0 -22
  244. package/dist/esm/src/db/rssHistory.js +0 -88
  245. package/dist/esm/src/db/userDb.d.ts +0 -8
  246. package/dist/esm/src/db/userDb.js +0 -27
  247. package/dist/esm/src/handlers/on-callback-message.d.ts +0 -3
  248. package/dist/esm/src/handlers/on-callback-message.js +0 -174
  249. package/dist/esm/src/handlers/on-error.d.ts +0 -3
  250. package/dist/esm/src/handlers/on-error.js +0 -5
  251. package/dist/esm/src/handlers/on-friend.d.ts +0 -6
  252. package/dist/esm/src/handlers/on-friend.js +0 -62
  253. package/dist/esm/src/handlers/on-heartbeat.d.ts +0 -3
  254. package/dist/esm/src/handlers/on-heartbeat.js +0 -20
  255. package/dist/esm/src/handlers/on-login.d.ts +0 -7
  256. package/dist/esm/src/handlers/on-login.js +0 -57
  257. package/dist/esm/src/handlers/on-logout.d.ts +0 -6
  258. package/dist/esm/src/handlers/on-logout.js +0 -17
  259. package/dist/esm/src/handlers/on-message.d.ts +0 -3
  260. package/dist/esm/src/handlers/on-message.js +0 -451
  261. package/dist/esm/src/handlers/on-ready.d.ts +0 -6
  262. package/dist/esm/src/handlers/on-ready.js +0 -39
  263. package/dist/esm/src/handlers/on-record-message.d.ts +0 -3
  264. package/dist/esm/src/handlers/on-record-message.js +0 -49
  265. package/dist/esm/src/handlers/on-roomjoin.d.ts +0 -6
  266. package/dist/esm/src/handlers/on-roomjoin.js +0 -41
  267. package/dist/esm/src/handlers/on-roomleave.d.ts +0 -3
  268. package/dist/esm/src/handlers/on-roomleave.js +0 -11
  269. package/dist/esm/src/handlers/on-roomtopic.d.ts +0 -3
  270. package/dist/esm/src/handlers/on-roomtopic.js +0 -15
  271. package/dist/esm/src/handlers/on-scan.d.ts +0 -7
  272. package/dist/esm/src/handlers/on-scan.js +0 -64
  273. package/dist/esm/src/handlers/on-verifycode.d.ts +0 -2
  274. package/dist/esm/src/handlers/on-verifycode.js +0 -31
  275. package/dist/esm/src/index.d.ts +0 -8
  276. package/dist/esm/src/index.js +0 -87
  277. package/dist/esm/src/lib/contentCensor.d.ts +0 -8
  278. package/dist/esm/src/lib/contentCensor.js +0 -23
  279. package/dist/esm/src/lib/index.d.ts +0 -158
  280. package/dist/esm/src/lib/index.js +0 -556
  281. package/dist/esm/src/lib/oss.d.ts +0 -2
  282. package/dist/esm/src/lib/oss.js +0 -24
  283. package/dist/esm/src/package-json.d.ts +0 -75
  284. package/dist/esm/src/package-json.js +0 -78
  285. package/dist/esm/src/proxy/aibotk.d.ts +0 -200
  286. package/dist/esm/src/proxy/aibotk.js +0 -794
  287. package/dist/esm/src/proxy/api.d.ts +0 -85
  288. package/dist/esm/src/proxy/api.js +0 -431
  289. package/dist/esm/src/proxy/apib.d.ts +0 -109
  290. package/dist/esm/src/proxy/apib.js +0 -587
  291. package/dist/esm/src/proxy/bot/chatgpt.d.ts +0 -17
  292. package/dist/esm/src/proxy/bot/chatgpt.js +0 -38
  293. package/dist/esm/src/proxy/bot/coze.d.ts +0 -14
  294. package/dist/esm/src/proxy/bot/coze.js +0 -38
  295. package/dist/esm/src/proxy/bot/cozev3.d.ts +0 -18
  296. package/dist/esm/src/proxy/bot/cozev3.js +0 -38
  297. package/dist/esm/src/proxy/bot/dify.d.ts +0 -18
  298. package/dist/esm/src/proxy/bot/dify.js +0 -38
  299. package/dist/esm/src/proxy/bot/dispatch.d.ts +0 -7
  300. package/dist/esm/src/proxy/bot/dispatch.js +0 -72
  301. package/dist/esm/src/proxy/bot/fastgpt.d.ts +0 -14
  302. package/dist/esm/src/proxy/bot/fastgpt.js +0 -27
  303. package/dist/esm/src/proxy/bot/qany.d.ts +0 -10
  304. package/dist/esm/src/proxy/bot/qany.js +0 -27
  305. package/dist/esm/src/proxy/config.d.ts +0 -14
  306. package/dist/esm/src/proxy/config.js +0 -13
  307. package/dist/esm/src/proxy/cozeAi.d.ts +0 -11
  308. package/dist/esm/src/proxy/cozeAi.js +0 -58
  309. package/dist/esm/src/proxy/cozeV3Ai.d.ts +0 -16
  310. package/dist/esm/src/proxy/cozeV3Ai.js +0 -58
  311. package/dist/esm/src/proxy/difyAi.d.ts +0 -16
  312. package/dist/esm/src/proxy/difyAi.js +0 -56
  313. package/dist/esm/src/proxy/fastgpt.d.ts +0 -12
  314. package/dist/esm/src/proxy/fastgpt.js +0 -53
  315. package/dist/esm/src/proxy/mqtt.d.ts +0 -7
  316. package/dist/esm/src/proxy/mqtt.js +0 -275
  317. package/dist/esm/src/proxy/multimodal.d.ts +0 -26
  318. package/dist/esm/src/proxy/multimodal.js +0 -122
  319. package/dist/esm/src/proxy/openAi.d.ts +0 -13
  320. package/dist/esm/src/proxy/openAi.js +0 -61
  321. package/dist/esm/src/proxy/outapi.d.ts +0 -7
  322. package/dist/esm/src/proxy/outapi.js +0 -62
  323. package/dist/esm/src/proxy/qAnyAi.d.ts +0 -11
  324. package/dist/esm/src/proxy/qAnyAi.js +0 -55
  325. package/dist/esm/src/proxy/superagent.d.ts +0 -14
  326. package/dist/esm/src/proxy/superagent.js +0 -189
  327. package/dist/esm/src/proxy/tencent-open.d.ts +0 -10
  328. package/dist/esm/src/proxy/tencent-open.js +0 -255
  329. package/dist/esm/src/service/event-dispatch-service.d.ts +0 -36
  330. package/dist/esm/src/service/event-dispatch-service.js +0 -284
  331. package/dist/esm/src/service/gpt4vService.d.ts +0 -13
  332. package/dist/esm/src/service/gpt4vService.js +0 -45
  333. package/dist/esm/src/service/msg-filter-service.d.ts +0 -28
  334. package/dist/esm/src/service/msg-filter-service.js +0 -109
  335. package/dist/esm/src/service/msg-filters.d.ts +0 -182
  336. package/dist/esm/src/service/msg-filters.js +0 -642
  337. package/dist/esm/src/service/room-async-service.d.ts +0 -9
  338. package/dist/esm/src/service/room-async-service.js +0 -455
  339. package/dist/esm/src/task/index.d.ts +0 -42
  340. package/dist/esm/src/task/index.js +0 -534
  341. package/dist/esm/src/task/rss.d.ts +0 -12
  342. package/dist/esm/src/task/rss.js +0 -174
  343. package/dist/esm/test/wechat.d.ts +0 -2
  344. package/dist/esm/test/wechat.js +0 -32
  345. package/dist/esm/test/wework.d.ts +0 -2
  346. package/dist/esm/test/wework.js +0 -25
@@ -11,10 +11,8 @@ jobs:
11
11
  - uses: actions/checkout@v2
12
12
  - uses: actions/setup-node@v2
13
13
  with:
14
- node-version: 16
14
+ node-version: 20
15
15
  registry-url: https://registry.npmjs.org/
16
- cache: npm
17
- cache-dependency-path: package.json
18
16
 
19
17
  - name: Install Dependencies
20
18
  run: npm install --force
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wechaty-web-panel",
3
- "version": "1.6.80",
3
+ "version": "1.6.82",
4
4
  "exports": {
5
5
  ".": {
6
6
  "import": "./dist/esm/src/index.js",
@@ -1,60 +0,0 @@
1
- export class ChatGPTAPI {
2
- constructor({ apiKey, apiBaseUrl, completionParams, debug, systemMessage, maxModelTokens, maxResponseTokens, memoryConfig, streaming, redis }: {
3
- apiKey: any;
4
- apiBaseUrl?: string | undefined;
5
- completionParams?: {} | undefined;
6
- debug?: boolean | undefined;
7
- systemMessage?: string | undefined;
8
- maxModelTokens?: number | undefined;
9
- maxResponseTokens?: number | undefined;
10
- memoryConfig?: {
11
- type: string;
12
- redisConfig: null;
13
- expireTime: null;
14
- } | undefined;
15
- streaming?: boolean | undefined;
16
- redis: any;
17
- });
18
- apiKey: any;
19
- apiBaseUrl: string;
20
- completionParams: {};
21
- debug: boolean;
22
- systemMessage: string;
23
- maxModelTokens: number;
24
- maxResponseTokens: number;
25
- memoryConfig: {
26
- type: string;
27
- redisConfig: null;
28
- expireTime: null;
29
- };
30
- conversations: Map<any, any>;
31
- streaming: boolean;
32
- redisClient: any;
33
- /**
34
- * Create a new conversation chain or retrieve an existing one
35
- * @param {string} chatId - Unique identifier for the conversation
36
- * @param {string} systemMessage - Optional system message to override the default
37
- * @param {boolean} streaming - Whether to enable streaming for this conversation
38
- * @returns {Object} - Conversation object with chain and metadata
39
- */
40
- getOrCreateConversation(chatId: string, { systemMessage, streaming, timeoutMs }: string): Object;
41
- /**
42
- * Send a message to the model and get a response
43
- * @param {string} message - The message to send
44
- * @param {Object} options - Additional options
45
- * @returns {Promise<Object>} - The response
46
- */
47
- sendMessage(message: string, options?: Object): Promise<Object>;
48
- /**
49
- * Clear a specific conversation or all conversations
50
- * @param {string} chatId - Optional chat ID to clear a specific conversation
51
- */
52
- clearConversations(chatId?: string): Promise<void>;
53
- /**
54
- * Set expiration time for a conversation
55
- * @param {string} chatId - The chat ID
56
- * @param {number} seconds - Time in seconds until expiration
57
- */
58
- setExpiration(chatId: string, seconds: number): Promise<void>;
59
- }
60
- //# sourceMappingURL=index.d.ts.map
@@ -1,235 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ChatGPTAPI = void 0;
4
- const openai_1 = require("@langchain/openai");
5
- const chains_1 = require("langchain/chains");
6
- const memory_1 = require("langchain/memory");
7
- const prompts_1 = require("@langchain/core/prompts");
8
- const output_parsers_1 = require("@langchain/core/output_parsers");
9
- const redis_1 = require("@langchain/redis");
10
- const openai_2 = require("@langchain/openai");
11
- const uuid_1 = require("uuid");
12
- class ChatGPTAPI {
13
- constructor({ apiKey, apiBaseUrl = "https://api.openai.com/v1", completionParams = {}, debug = false, systemMessage = "", maxModelTokens = 4096, maxResponseTokens = 1024, memoryConfig = {
14
- type: "memory",
15
- redisConfig: null,
16
- expireTime: null, // Time in seconds, null means no expiration
17
- }, streaming = true, // Enable streaming mode by default
18
- redis }) {
19
- this.apiKey = apiKey;
20
- this.apiBaseUrl = apiBaseUrl;
21
- this.completionParams = completionParams;
22
- this.debug = debug;
23
- this.systemMessage = systemMessage;
24
- this.maxModelTokens = maxModelTokens;
25
- this.maxResponseTokens = maxResponseTokens;
26
- this.memoryConfig = memoryConfig;
27
- this.conversations = new Map();
28
- this.streaming = streaming;
29
- // Initialize Redis if needed
30
- if (memoryConfig.type === "redis" && memoryConfig.redisConfig) {
31
- this.redisClient = redis;
32
- }
33
- }
34
- /**
35
- * Create a new conversation chain or retrieve an existing one
36
- * @param {string} chatId - Unique identifier for the conversation
37
- * @param {string} systemMessage - Optional system message to override the default
38
- * @param {boolean} streaming - Whether to enable streaming for this conversation
39
- * @returns {Object} - Conversation object with chain and metadata
40
- */
41
- async getOrCreateConversation(chatId, { systemMessage = null, streaming = null, timeoutMs = 60000 }) {
42
- // If conversation exists and no specific system message is requested, return it
43
- if (this.conversations.has(chatId) && !systemMessage) {
44
- return this.conversations.get(chatId);
45
- }
46
- // Calculate context window size
47
- const contextWindowSize = this.maxModelTokens - this.maxResponseTokens - 500; // Buffer for metadata
48
- // Create the appropriate memory system
49
- let memory;
50
- if (this.memoryConfig.type === "redis") {
51
- // Setup Redis vector store for memory
52
- const vectorStore = new redis_1.RedisVectorStore(new openai_2.OpenAIEmbeddings({
53
- openAIApiKey: this.apiKey,
54
- configuration: {
55
- baseURL: this.apiBaseUrl
56
- }
57
- }), {
58
- redisClient: this.redisClient,
59
- indexName: `chat:${chatId}`,
60
- });
61
- memory = new memory_1.BufferMemory({
62
- memoryKey: "chat_history",
63
- chatHistory: vectorStore,
64
- returnMessages: true,
65
- outputKey: "output",
66
- inputKey: "input",
67
- });
68
- // Set expiration if configured
69
- if (this.memoryConfig.expireTime) {
70
- const expireTimeSeconds = this.memoryConfig.expireTime;
71
- this.redisClient.expire(`chat:${chatId}`, expireTimeSeconds);
72
- }
73
- }
74
- else {
75
- // Use in-memory storage
76
- memory = new memory_1.BufferWindowMemory({
77
- memoryKey: "chat_history",
78
- // k: 10, // Keep last 10 interactions by default, adjust based on token size
79
- returnMessages: true,
80
- outputKey: "output",
81
- inputKey: "input",
82
- });
83
- }
84
- // Determine if streaming should be enabled
85
- const useStreaming = streaming !== null ? streaming : this.streaming;
86
- // Create chat model
87
- const chatModel = new openai_1.ChatOpenAI({
88
- openAIApiKey: this.apiKey,
89
- modelName: this.completionParams.model,
90
- temperature: this.completionParams.temperature || 0.7,
91
- topP: this.completionParams.top_p || 1,
92
- presencePenalty: this.completionParams.presence_penalty || 0,
93
- frequencyPenalty: this.completionParams.frequency_penalty || 0,
94
- maxTokens: this.maxResponseTokens,
95
- timeout: timeoutMs || 60000,
96
- streaming: useStreaming,
97
- verbose: this.debug,
98
- configuration: {
99
- baseURL: this.apiBaseUrl
100
- }
101
- });
102
- // Create prompt template with system message
103
- const finalSystemMessage = systemMessage || this.systemMessage || "You are a helpful assistant.";
104
- const prompt = prompts_1.ChatPromptTemplate.fromMessages([
105
- prompts_1.SystemMessagePromptTemplate.fromTemplate(finalSystemMessage),
106
- new prompts_1.MessagesPlaceholder("chat_history"),
107
- prompts_1.HumanMessagePromptTemplate.fromTemplate("{input}"),
108
- ]);
109
- // Create conversation chain using the new Runnable API in v0.3
110
- const chain = new chains_1.ConversationChain({
111
- memory,
112
- llm: chatModel,
113
- prompt,
114
- verbose: this.debug,
115
- outputParser: new output_parsers_1.StringOutputParser(),
116
- inputKey: "input",
117
- outputKey: "output"
118
- });
119
- // Store the conversation
120
- this.conversations.set(chatId, {
121
- chain,
122
- createdAt: Date.now(),
123
- model: this.completionParams.model,
124
- contextWindowSize,
125
- streaming: useStreaming
126
- });
127
- return this.conversations.get(chatId);
128
- }
129
- /**
130
- * Send a message to the model and get a response
131
- * @param {string} message - The message to send
132
- * @param {Object} options - Additional options
133
- * @returns {Promise<Object>} - The response
134
- */
135
- async sendMessage(message, options = {}) {
136
- const chatId = options.chatId || (0, uuid_1.v4)();
137
- const systemMsg = options.systemMessage || this.systemMessage;
138
- const timeoutMs = options.timeoutMs || 60000;
139
- const streaming = options.streaming !== undefined ? options.streaming : this.streaming;
140
- try {
141
- if (this.debug) {
142
- console.log(`Sending message to ${this.completionParams.model} with chatId: ${chatId}`);
143
- console.log(`Message: ${message}`);
144
- console.log(`Streaming: ${streaming}`);
145
- }
146
- // Get or create conversation
147
- const conversation = await this.getOrCreateConversation(chatId, { systemMessage: systemMsg, streaming, timeoutMs: timeoutMs });
148
- let responseText = "";
149
- // Handle streaming or non-streaming response using v0.3 API
150
- if (streaming) {
151
- const responsePromise = new Promise(async (resolve, reject) => {
152
- try {
153
- responseText = "";
154
- // Using v0.3 streaming API
155
- const stream = await conversation.chain.stream({
156
- input: message
157
- });
158
- for await (const chunk of stream) {
159
- if (chunk.output) {
160
- responseText += chunk.output;
161
- }
162
- }
163
- resolve(responseText);
164
- }
165
- catch (error) {
166
- reject(error);
167
- }
168
- });
169
- // Race between response and timeout
170
- await Promise.race([responsePromise]);
171
- }
172
- else {
173
- // Non-streaming request using v0.3 API
174
- const responsePromise = conversation.chain.invoke({
175
- input: message
176
- });
177
- // Race between response and timeout
178
- const response = await Promise.race([responsePromise]);
179
- responseText = response.output;
180
- }
181
- // Return formatted response (same format for both streaming and non-streaming)
182
- return {
183
- chatId: chatId,
184
- text: responseText,
185
- id: (0, uuid_1.v4)()
186
- };
187
- }
188
- catch (error) {
189
- if (this.debug) {
190
- console.error("Error in sendMessage:", error);
191
- }
192
- throw error;
193
- }
194
- }
195
- /**
196
- * Clear a specific conversation or all conversations
197
- * @param {string} chatId - Optional chat ID to clear a specific conversation
198
- */
199
- async clearConversations(chatId = null) {
200
- if (chatId) {
201
- // Clear a specific conversation
202
- this.conversations.delete(chatId);
203
- // Clear from Redis if using Redis
204
- if (this.memoryConfig.type === "redis" && this.redisClient) {
205
- await this.redisClient.del(`chat:${chatId}`);
206
- }
207
- }
208
- else {
209
- // Clear all conversations
210
- this.conversations.clear();
211
- // Would need to implement a more complex Redis cleanup if needed
212
- }
213
- }
214
- /**
215
- * Set expiration time for a conversation
216
- * @param {string} chatId - The chat ID
217
- * @param {number} seconds - Time in seconds until expiration
218
- */
219
- async setExpiration(chatId, seconds) {
220
- if (!this.conversations.has(chatId)) {
221
- throw new Error(`Conversation with ID ${chatId} not found`);
222
- }
223
- if (this.memoryConfig.type === "redis" && this.redisClient) {
224
- await this.redisClient.expire(`chat:${chatId}`, seconds);
225
- }
226
- else {
227
- // For in-memory, we can set a timer to delete the conversation
228
- setTimeout(() => {
229
- this.conversations.delete(chatId);
230
- }, seconds * 1000);
231
- }
232
- }
233
- }
234
- exports.ChatGPTAPI = ChatGPTAPI;
235
- //# sourceMappingURL=index.js.map
@@ -1,45 +0,0 @@
1
- export class CozeV3Api extends CozeClient {
2
- sendMessage(query: any, { file, fileType, fileUrl, systemMessage, user, needConversation, conversationId, timeoutMs, files, variables, }: {
3
- file: any;
4
- fileType: any;
5
- fileUrl: any;
6
- systemMessage: any;
7
- user: any;
8
- needConversation?: boolean | undefined;
9
- conversationId?: null | undefined;
10
- timeoutMs?: number | undefined;
11
- files?: null | undefined;
12
- variables: any;
13
- }): Promise<{
14
- text: any;
15
- conversationId: null;
16
- id: string;
17
- files: never[];
18
- messages?: undefined;
19
- } | {
20
- text: string | undefined;
21
- conversationId: null;
22
- id: string;
23
- files: never[];
24
- messages: string[];
25
- }>;
26
- }
27
- declare class CozeClient {
28
- constructor({ apiKey, baseUrl, debug, systemMessage, stream, botId }: {
29
- apiKey: any;
30
- baseUrl?: string | undefined;
31
- debug?: boolean | undefined;
32
- systemMessage?: null | undefined;
33
- stream?: boolean | undefined;
34
- botId: any;
35
- });
36
- apiKey: any;
37
- baseUrl: string;
38
- debug: boolean;
39
- stream: boolean;
40
- botId: any;
41
- systemMessage: any;
42
- updateApiKey(apiKey: any): void;
43
- }
44
- export {};
45
- //# sourceMappingURL=index.d.ts.map
@@ -1,108 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CozeV3Api = void 0;
4
- const api_1 = require("@coze/api");
5
- // import { FileBox } from 'file-box';
6
- // import fs from 'fs';
7
- class CozeClient {
8
- constructor({ apiKey, baseUrl = api_1.COZE_CN_BASE_URL, debug = false, systemMessage = null, stream = false, botId }) {
9
- this.apiKey = apiKey;
10
- this.baseUrl = baseUrl;
11
- this.debug = debug;
12
- this.stream = stream;
13
- this.botId = botId;
14
- this.systemMessage = systemMessage;
15
- }
16
- updateApiKey(apiKey) {
17
- this.apiKey = apiKey;
18
- }
19
- }
20
- class CozeV3Api extends CozeClient {
21
- async sendMessage(query, { file, fileType, fileUrl, systemMessage, user, needConversation = true, conversationId = null, timeoutMs = 100 * 1000, files = null, variables, }) {
22
- try {
23
- const client = new api_1.CozeAPI({ baseURL: this.baseUrl, token: this.apiKey });
24
- let messages = [
25
- {
26
- role: 'user',
27
- content: query,
28
- content_type: 'text',
29
- },
30
- ];
31
- if (fileUrl) {
32
- const mediaMessage = [{
33
- type: 'text',
34
- text: query,
35
- }, {
36
- type: fileType,
37
- file_url: fileUrl
38
- }];
39
- messages = [{
40
- role: 'user',
41
- content: JSON.stringify(mediaMessage),
42
- content_type: 'object_string',
43
- }];
44
- }
45
- else if (file) {
46
- const fileBuffer = await file.toStream();
47
- const fileRes = await client.files.upload({ file: fileBuffer });
48
- const mediaMessage = [{
49
- type: 'text',
50
- text: query,
51
- }, {
52
- type: fileType,
53
- file_id: fileRes.id
54
- }];
55
- messages = [{
56
- role: 'user',
57
- content: JSON.stringify(mediaMessage),
58
- content_type: 'object_string',
59
- }];
60
- }
61
- if (!conversationId && needConversation) {
62
- const res = await client.conversations.create({
63
- messages,
64
- timeoutMs,
65
- });
66
- console.log('conversation', res);
67
- conversationId = res?.id;
68
- messages = [];
69
- }
70
- const data = {
71
- bot_id: this.botId,
72
- custom_variables: {
73
- ...variables,
74
- },
75
- additional_messages: messages,
76
- user_id: user,
77
- auto_save_history: true,
78
- };
79
- if (systemMessage || this.systemMessage) {
80
- data.custom_variables.systemMessage = systemMessage || this.systemMessage;
81
- }
82
- if (conversationId && needConversation) {
83
- data.conversation_id = conversationId;
84
- }
85
- const stream = await client.chat.stream(data);
86
- let answers = [];
87
- let lastMessageId = '';
88
- for await (const part of stream) {
89
- if (part.event === api_1.ChatEventType.CONVERSATION_CHAT_FAILED || part.event === api_1.ChatEventType.ERROR) {
90
- console.log('Coze 请求失败,请根据失败原因进行排查问题', JSON.stringify(part.data));
91
- return { text: answer, conversationId, id: lastMessageId, files: [] };
92
- }
93
- if (part.event === api_1.ChatEventType.CONVERSATION_MESSAGE_COMPLETED && part.data.type === 'answer' && part.data.content_type === 'text') {
94
- answers.push(part.data.content);
95
- lastMessageId = part.data.id;
96
- }
97
- }
98
- console.log('messages', answers);
99
- return { text: answers[0], conversationId, id: lastMessageId, files: [], messages: answers };
100
- }
101
- catch (error) {
102
- console.log('Coze 请求失败,请根据失败原因进行排查问题', JSON.stringify(error));
103
- return { text: '', conversationId: conversationId, id: '', files: [], messages: [] };
104
- }
105
- }
106
- }
107
- exports.CozeV3Api = CozeV3Api;
108
- //# sourceMappingURL=index.js.map
@@ -1,167 +0,0 @@
1
- export const BASE_URL: "https://api.dify.ai/v1";
2
- export namespace routes {
3
- namespace feedback {
4
- const method: string;
5
- function url(messageId: any): string;
6
- }
7
- namespace application {
8
- const method_1: string;
9
- export { method_1 as method };
10
- export function url_1(): string;
11
- export { url_1 as url };
12
- }
13
- namespace fileUpload {
14
- const method_2: string;
15
- export { method_2 as method };
16
- export function url_2(): string;
17
- export { url_2 as url };
18
- }
19
- namespace textToAudio {
20
- const method_3: string;
21
- export { method_3 as method };
22
- export function url_3(): string;
23
- export { url_3 as url };
24
- }
25
- namespace getMeta {
26
- const method_4: string;
27
- export { method_4 as method };
28
- export function url_4(): string;
29
- export { url_4 as url };
30
- }
31
- namespace createCompletionMessage {
32
- const method_5: string;
33
- export { method_5 as method };
34
- export function url_5(): string;
35
- export { url_5 as url };
36
- }
37
- namespace createChatMessage {
38
- const method_6: string;
39
- export { method_6 as method };
40
- export function url_6(): string;
41
- export { url_6 as url };
42
- }
43
- namespace getSuggested {
44
- const method_7: string;
45
- export { method_7 as method };
46
- export function url_7(message_id: any): string;
47
- export { url_7 as url };
48
- }
49
- namespace stopChatMessage {
50
- const method_8: string;
51
- export { method_8 as method };
52
- export function url_8(task_id: any): string;
53
- export { url_8 as url };
54
- }
55
- namespace getConversations {
56
- const method_9: string;
57
- export { method_9 as method };
58
- export function url_9(): string;
59
- export { url_9 as url };
60
- }
61
- namespace getConversationMessages {
62
- const method_10: string;
63
- export { method_10 as method };
64
- export function url_10(): string;
65
- export { url_10 as url };
66
- }
67
- namespace renameConversation {
68
- const method_11: string;
69
- export { method_11 as method };
70
- export function url_11(conversation_id: any): string;
71
- export { url_11 as url };
72
- }
73
- namespace deleteConversation {
74
- const method_12: string;
75
- export { method_12 as method };
76
- export function url_12(conversation_id: any): string;
77
- export { url_12 as url };
78
- }
79
- namespace audioToText {
80
- const method_13: string;
81
- export { method_13 as method };
82
- export function url_13(): string;
83
- export { url_13 as url };
84
- }
85
- namespace getWorkflowInfo {
86
- const method_14: string;
87
- export { method_14 as method };
88
- export function url_14(): string;
89
- export { url_14 as url };
90
- }
91
- namespace runWorkflow {
92
- const method_15: string;
93
- export { method_15 as method };
94
- export function url_15(): string;
95
- export { url_15 as url };
96
- }
97
- namespace stopWorkflow {
98
- const method_16: string;
99
- export { method_16 as method };
100
- export function url_16(task_id: any): string;
101
- export { url_16 as url };
102
- }
103
- namespace getWorkflowResult {
104
- const method_17: string;
105
- export { method_17 as method };
106
- export function url_17(task_id: any): string;
107
- export { url_17 as url };
108
- }
109
- }
110
- export class DifyClient {
111
- constructor({ apiKey, baseUrl, debug, systemMessage, stream }: {
112
- apiKey: any;
113
- baseUrl?: string | undefined;
114
- debug?: boolean | undefined;
115
- systemMessage?: null | undefined;
116
- stream?: boolean | undefined;
117
- });
118
- apiKey: any;
119
- baseUrl: string;
120
- debug: boolean;
121
- stream: boolean;
122
- systemMessage: any;
123
- updateApiKey(apiKey: any): void;
124
- sendUploadRequest(method: any, endpoint: any, data?: null, params?: null, stream?: boolean, headerParams?: {}): Promise<import("axios").AxiosResponse<any, any>>;
125
- sendRequest({ method, endpoint, data, params, stream, headerParams, timeoutMs }: {
126
- method: any;
127
- endpoint: any;
128
- data: any;
129
- params: any;
130
- stream?: boolean | undefined;
131
- headerParams?: {} | undefined;
132
- timeoutMs?: number | undefined;
133
- }): Promise<import("axios").AxiosResponse<any, any>>;
134
- messageFeedback(messageId: any, rating: any, user: any): Promise<import("axios").AxiosResponse<any, any>>;
135
- getApplicationParameters(user: any): Promise<import("axios").AxiosResponse<any, any>>;
136
- fileUpload(data: any): Promise<import("axios").AxiosResponse<any, any>>;
137
- textToAudio(text: any, user: any, streaming?: boolean): Promise<import("axios").AxiosResponse<any, any>>;
138
- getMeta(user: any): Promise<import("axios").AxiosResponse<any, any>>;
139
- }
140
- export class CompletionClient extends DifyClient {
141
- createCompletionMessage(inputs: any, user: any, stream?: boolean, files?: null): Promise<import("axios").AxiosResponse<any, any>>;
142
- runWorkflow(inputs: any, user: any, stream?: boolean, files?: null): Promise<import("axios").AxiosResponse<any, any>>;
143
- }
144
- export class ChatClient extends DifyClient {
145
- sendMessage(query: any, { systemMessage, user, conversationId, timeoutMs, files, inputs }: {
146
- systemMessage: any;
147
- user: any;
148
- conversationId?: null | undefined;
149
- timeoutMs?: number | undefined;
150
- files?: null | undefined;
151
- inputs: any;
152
- }): Promise<any>;
153
- getConversationMessages(user: any, conversationId?: string, firstId?: null, limit?: null): Promise<import("axios").AxiosResponse<any, any>>;
154
- getConversations(user: any, firstId?: null, limit?: null, pinned?: null): Promise<import("axios").AxiosResponse<any, any>>;
155
- renameConversation(conversationId: any, name: any, user: any): Promise<import("axios").AxiosResponse<any, any>>;
156
- getSuggested(message_id: any, user: any): Promise<import("axios").AxiosResponse<any, any>>;
157
- stopMessage(task_id: any, user: any): Promise<import("axios").AxiosResponse<any, any>>;
158
- audioToText(data: any): Promise<import("axios").AxiosResponse<any, any>>;
159
- }
160
- export class WorkflowClient extends DifyClient {
161
- run(inputs: any, user: any, stream: any): Promise<import("axios").AxiosResponse<any, any>>;
162
- stop(task_id: any, user: any): Promise<import("axios").AxiosResponse<any, any>>;
163
- info(user: any): Promise<import("axios").AxiosResponse<any, any>>;
164
- result(task_id: any): Promise<import("axios").AxiosResponse<any, any>>;
165
- getWorkflowResult(input: any, user: any, isStream: any): Promise<any>;
166
- }
167
- //# sourceMappingURL=index.d.ts.map