@tencent-rtc/mcp 1.2.5 → 1.2.7

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 (368) hide show
  1. package/package.json +1 -1
  2. package/resource/doc/chatuikit/faq/common/server_error_code.md +74 -0
  3. package/resource/doc/chatuikit/faq/web_sdk/error_code.md +47 -0
  4. package/resource/doc/chatuikit/faq/web_sdk/faq.md +105 -0
  5. package/resource/doc/chatuikit/flutter/faq.md +120 -0
  6. package/resource/doc/chatuikit/iOS/faq.md +120 -0
  7. package/resource/doc/chatuikit/react/faq.md +26 -0
  8. package/resource/doc/chatuikit/vue/faq.md +36 -0
  9. package/resource/doc/livekit/faq/common/error_code.md +88 -0
  10. package/resource/doc/livekit/vue/faq.md +0 -0
  11. package/resource/doc/roomkit/faq/common/error_code.md +67 -0
  12. package/resource/doc/roomkit/vue/faq.md +0 -0
  13. package/resource/doc/rtcengine/faq/common/error_code.md +0 -0
  14. package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
  15. package/resource/doc/tuicallkit/faq/common/error_code.md +47 -0
  16. package/resource/doc/tuicallkit/flutter/faq.md +127 -0
  17. package/resource/doc/tuicallkit/iOS/faq.md +127 -0
  18. package/resource/doc/tuicallkit/react/faq.md +36 -0
  19. package/resource/doc/tuicallkit/vue/faq.md +36 -0
  20. package/tools/call/get-native-call-integration.js +4 -10
  21. package/tools/call/get-native-call-integration.js.map +1 -1
  22. package/tools/call/get-web-call-api.js +4 -7
  23. package/tools/call/get-web-call-api.js.map +1 -1
  24. package/tools/call/get-web-call-integration.js +4 -9
  25. package/tools/call/get-web-call-integration.js.map +1 -1
  26. package/tools/chat/get-native-chat-integration.js +4 -9
  27. package/tools/chat/get-native-chat-integration.js.map +1 -1
  28. package/tools/chat/get-web-chat-component-detail.js +5 -10
  29. package/tools/chat/get-web-chat-component-detail.js.map +1 -1
  30. package/tools/chat/get-web-chat-integration.js +4 -12
  31. package/tools/chat/get-web-chat-integration.js.map +1 -1
  32. package/tools/chat/get-web-chat-uikit-init.js +5 -6
  33. package/tools/chat/get-web-chat-uikit-init.js.map +1 -1
  34. package/tools/chat/get-web-chat-window-integration.js +4 -12
  35. package/tools/chat/get-web-chat-window-integration.js.map +1 -1
  36. package/tools/chat/{create-group.js → get-web-create-group-doc.js} +5 -6
  37. package/tools/chat/get-web-create-group-doc.js.map +1 -0
  38. package/tools/common/get-faq.js +93 -0
  39. package/tools/common/get-faq.js.map +1 -0
  40. package/tools/common/get-usersig.js +9 -18
  41. package/tools/common/get-usersig.js.map +1 -1
  42. package/tools/common/present-framework-choice.js +3 -10
  43. package/tools/common/present-framework-choice.js.map +1 -1
  44. package/tools/common/record-prompt.js +5 -11
  45. package/tools/common/record-prompt.js.map +1 -1
  46. package/tools/common/record-result.js +8 -12
  47. package/tools/common/record-result.js.map +1 -1
  48. package/tools/definitions/get_faq_def.js +28 -0
  49. package/tools/definitions/get_faq_def.js.map +1 -0
  50. package/tools/definitions/get_native_call_uikit_integration_def.js +21 -0
  51. package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -0
  52. package/tools/definitions/get_native_chat_uikit_integration_def.js +21 -0
  53. package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -0
  54. package/tools/definitions/get_usersig_def.js +32 -0
  55. package/tools/definitions/get_usersig_def.js.map +1 -0
  56. package/tools/definitions/get_web_call_uikit_api_def.js +23 -0
  57. package/tools/definitions/get_web_call_uikit_api_def.js.map +1 -0
  58. package/tools/definitions/get_web_call_uikit_integration_def.js +20 -0
  59. package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -0
  60. package/tools/definitions/get_web_chat_uikit_component_detail_def.js +24 -0
  61. package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -0
  62. package/tools/definitions/get_web_chat_uikit_init_def.js +23 -0
  63. package/tools/definitions/get_web_chat_uikit_init_def.js.map +1 -0
  64. package/tools/definitions/get_web_chat_uikit_integration_def.js +26 -0
  65. package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -0
  66. package/tools/definitions/get_web_chat_window_integration_def.js +26 -0
  67. package/tools/definitions/get_web_chat_window_integration_def.js.map +1 -0
  68. package/tools/definitions/get_web_create_group_doc_def.js +18 -0
  69. package/tools/definitions/get_web_create_group_doc_def.js.map +1 -0
  70. package/tools/definitions/get_web_live_state_detail_def.js +19 -0
  71. package/tools/definitions/get_web_live_state_detail_def.js.map +1 -0
  72. package/tools/definitions/get_web_live_uikit_component_detail_def.js +22 -0
  73. package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -0
  74. package/tools/definitions/get_web_room_state_detail_def.js +19 -0
  75. package/tools/definitions/get_web_room_state_detail_def.js.map +1 -0
  76. package/tools/definitions/present_framework_choice_def.js +23 -0
  77. package/tools/definitions/present_framework_choice_def.js.map +1 -0
  78. package/tools/definitions/record_prompt_def.js +22 -0
  79. package/tools/definitions/record_prompt_def.js.map +1 -0
  80. package/tools/definitions/record_result_def.js +22 -0
  81. package/tools/definitions/record_result_def.js.map +1 -0
  82. package/tools/index.js +13 -11
  83. package/tools/index.js.map +1 -1
  84. package/tools/live/get-web-live-component-detail.js +5 -7
  85. package/tools/live/get-web-live-component-detail.js.map +1 -1
  86. package/tools/live/get-web-live-state-detail.js +5 -7
  87. package/tools/live/get-web-live-state-detail.js.map +1 -1
  88. package/tools/room/get-web-room-state-detail.js +5 -7
  89. package/tools/room/get-web-room-state-detail.js.map +1 -1
  90. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js +28 -0
  91. package/tools/rtcengine/get-rtcengine-web-sdk-integration.js.map +1 -0
  92. package/tools/rtcengine/get-trtc-web-sdk-api.js +28 -0
  93. package/tools/rtcengine/get-trtc-web-sdk-api.js.map +1 -0
  94. package/tools/rtcengine/get-trtc-web-sdk-faq.js +2 -3
  95. package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -1
  96. package/tools/rtcengine/get-trtc-web-sdk-integration.js +29 -0
  97. package/tools/rtcengine/get-trtc-web-sdk-integration.js.map +1 -0
  98. package/utils/report-cls-client.js +1 -1
  99. package/utils/report-es-client.js +1 -1
  100. package/libs/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
  101. package/libs/@tencent/aegis-node-sdk/LICENSE +0 -21
  102. package/libs/@tencent/aegis-node-sdk/README.md +0 -562
  103. package/libs/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
  104. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
  105. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
  106. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
  107. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
  108. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
  109. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
  110. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
  111. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
  112. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
  113. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
  114. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
  115. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
  116. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
  117. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
  118. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
  119. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
  120. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
  121. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
  122. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
  123. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
  124. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
  125. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
  126. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
  127. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
  128. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
  129. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
  130. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
  131. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
  132. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
  133. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
  134. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
  135. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
  136. package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
  137. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
  138. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
  139. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
  140. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
  141. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
  142. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
  143. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
  144. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
  145. package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
  146. package/libs/@tencent/aegis-node-sdk/package.json +0 -19
  147. package/libs/@tencent/polaris/README.md +0 -407
  148. package/libs/@tencent/polaris/dist/consumer/health.d.ts +0 -126
  149. package/libs/@tencent/polaris/dist/consumer/health.js +0 -283
  150. package/libs/@tencent/polaris/dist/consumer/health.js.map +0 -1
  151. package/libs/@tencent/polaris/dist/consumer/index.d.ts +0 -120
  152. package/libs/@tencent/polaris/dist/consumer/index.js +0 -348
  153. package/libs/@tencent/polaris/dist/consumer/index.js.map +0 -1
  154. package/libs/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
  155. package/libs/@tencent/polaris/dist/consumer/monitor.js +0 -343
  156. package/libs/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
  157. package/libs/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
  158. package/libs/@tencent/polaris/dist/consumer/selector.js +0 -316
  159. package/libs/@tencent/polaris/dist/consumer/selector.js.map +0 -1
  160. package/libs/@tencent/polaris/dist/errors.d.ts +0 -373
  161. package/libs/@tencent/polaris/dist/errors.js +0 -154
  162. package/libs/@tencent/polaris/dist/errors.js.map +0 -1
  163. package/libs/@tencent/polaris/dist/global.d.ts +0 -16
  164. package/libs/@tencent/polaris/dist/global.js +0 -18
  165. package/libs/@tencent/polaris/dist/global.js.map +0 -1
  166. package/libs/@tencent/polaris/dist/index.d.ts +0 -62
  167. package/libs/@tencent/polaris/dist/index.js +0 -145
  168. package/libs/@tencent/polaris/dist/index.js.map +0 -1
  169. package/libs/@tencent/polaris/dist/instance.d.ts +0 -109
  170. package/libs/@tencent/polaris/dist/instance.js +0 -38
  171. package/libs/@tencent/polaris/dist/instance.js.map +0 -1
  172. package/libs/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
  173. package/libs/@tencent/polaris/dist/limiter/bucket.js +0 -152
  174. package/libs/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
  175. package/libs/@tencent/polaris/dist/limiter/index.d.ts +0 -73
  176. package/libs/@tencent/polaris/dist/limiter/index.js +0 -149
  177. package/libs/@tencent/polaris/dist/limiter/index.js.map +0 -1
  178. package/libs/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
  179. package/libs/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
  180. package/libs/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
  181. package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
  182. package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
  183. package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
  184. package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
  185. package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
  186. package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
  187. package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
  188. package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
  189. package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
  190. package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
  191. package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
  192. package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
  193. package/libs/@tencent/polaris/dist/location.d.ts +0 -48
  194. package/libs/@tencent/polaris/dist/location.js +0 -67
  195. package/libs/@tencent/polaris/dist/location.js.map +0 -1
  196. package/libs/@tencent/polaris/dist/logging.d.ts +0 -106
  197. package/libs/@tencent/polaris/dist/logging.js +0 -130
  198. package/libs/@tencent/polaris/dist/logging.js.map +0 -1
  199. package/libs/@tencent/polaris/dist/metadata.d.ts +0 -78
  200. package/libs/@tencent/polaris/dist/metadata.js +0 -119
  201. package/libs/@tencent/polaris/dist/metadata.js.map +0 -1
  202. package/libs/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
  203. package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
  204. package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
  205. package/libs/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
  206. package/libs/@tencent/polaris/dist/plugins/lb/base.js +0 -32
  207. package/libs/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
  208. package/libs/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
  209. package/libs/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
  210. package/libs/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
  211. package/libs/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
  212. package/libs/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
  213. package/libs/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
  214. package/libs/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
  215. package/libs/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
  216. package/libs/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
  217. package/libs/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
  218. package/libs/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
  219. package/libs/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
  220. package/libs/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
  221. package/libs/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
  222. package/libs/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
  223. package/libs/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
  224. package/libs/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
  225. package/libs/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
  226. package/libs/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
  227. package/libs/@tencent/polaris/dist/plugins/logging/console.js +0 -38
  228. package/libs/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
  229. package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
  230. package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
  231. package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
  232. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
  233. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
  234. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
  235. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
  236. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
  237. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
  238. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
  239. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
  240. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
  241. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
  242. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
  243. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
  244. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
  245. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
  246. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
  247. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
  248. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
  249. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
  250. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
  251. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
  252. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
  253. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
  254. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
  255. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
  256. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
  257. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
  258. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
  259. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
  260. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
  261. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
  262. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
  263. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
  264. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
  265. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
  266. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
  267. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
  268. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
  269. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
  270. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
  271. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
  272. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
  273. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
  274. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
  275. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
  276. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
  277. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
  278. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
  279. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
  280. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
  281. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
  282. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
  283. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
  284. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
  285. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
  286. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
  287. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
  288. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
  289. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
  290. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
  291. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
  292. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
  293. package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
  294. package/libs/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
  295. package/libs/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
  296. package/libs/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
  297. package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
  298. package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
  299. package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
  300. package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
  301. package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
  302. package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
  303. package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
  304. package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
  305. package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
  306. package/libs/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
  307. package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
  308. package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
  309. package/libs/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
  310. package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
  311. package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
  312. package/libs/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
  313. package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
  314. package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
  315. package/libs/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
  316. package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
  317. package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
  318. package/libs/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
  319. package/libs/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
  320. package/libs/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
  321. package/libs/@tencent/polaris/dist/plugins.d.ts +0 -619
  322. package/libs/@tencent/polaris/dist/plugins.js +0 -91
  323. package/libs/@tencent/polaris/dist/plugins.js.map +0 -1
  324. package/libs/@tencent/polaris/dist/polaris.d.ts +0 -33
  325. package/libs/@tencent/polaris/dist/polaris.js +0 -59
  326. package/libs/@tencent/polaris/dist/polaris.js.map +0 -1
  327. package/libs/@tencent/polaris/dist/provider/index.d.ts +0 -102
  328. package/libs/@tencent/polaris/dist/provider/index.js +0 -168
  329. package/libs/@tencent/polaris/dist/provider/index.js.map +0 -1
  330. package/libs/@tencent/polaris/dist/registry.d.ts +0 -174
  331. package/libs/@tencent/polaris/dist/registry.js +0 -660
  332. package/libs/@tencent/polaris/dist/registry.js.map +0 -1
  333. package/libs/@tencent/polaris/dist/rules.d.ts +0 -163
  334. package/libs/@tencent/polaris/dist/rules.js +0 -24
  335. package/libs/@tencent/polaris/dist/rules.js.map +0 -1
  336. package/libs/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
  337. package/libs/@tencent/polaris/dist/scripts/postinstall.js +0 -71
  338. package/libs/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
  339. package/libs/@tencent/polaris/dist/service.d.ts +0 -18
  340. package/libs/@tencent/polaris/dist/service.js +0 -3
  341. package/libs/@tencent/polaris/dist/service.js.map +0 -1
  342. package/libs/@tencent/polaris/dist/skeleton.d.ts +0 -87
  343. package/libs/@tencent/polaris/dist/skeleton.js +0 -282
  344. package/libs/@tencent/polaris/dist/skeleton.js.map +0 -1
  345. package/libs/@tencent/polaris/dist/utils.d.ts +0 -36
  346. package/libs/@tencent/polaris/dist/utils.js +0 -74
  347. package/libs/@tencent/polaris/dist/utils.js.map +0 -1
  348. package/libs/@tencent/polaris/dist/weak.d.ts +0 -11
  349. package/libs/@tencent/polaris/dist/weak.js +0 -44
  350. package/libs/@tencent/polaris/dist/weak.js.map +0 -1
  351. package/libs/@tencent/polaris/package.json +0 -114
  352. package/resource/doc/chatuikit/faq/generate_UserSig.md +0 -306
  353. package/tools/call/get-call-faq.js +0 -29
  354. package/tools/call/get-call-faq.js.map +0 -1
  355. package/tools/chat/create-group.js.map +0 -1
  356. package/tools/chat/get-chat-faq.js +0 -29
  357. package/tools/chat/get-chat-faq.js.map +0 -1
  358. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +0 -34
  359. package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +0 -1
  360. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +0 -35
  361. package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +0 -1
  362. /package/resource/doc/chatuikit/{faq/faq_sdk.md → android/faq.md} +0 -0
  363. /package/{libs/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts → resource/doc/chatuikit/faq/native_sdk/faq.md} +0 -0
  364. /package/resource/doc/rtcengine/faq/{web.md → web/web.md} +0 -0
  365. /package/resource/doc/rtcengine/web/{api_RTCEngine.md → api.md} +0 -0
  366. /package/resource/doc/rtcengine/web/{how_to_integrated_web_rtc_engine.md → how_to_integrated_web_sdk.md} +0 -0
  367. /package/resource/doc/rtcengine/web/{how_to_run_web_rtc_engine_demo.md → how_to_run_web_sdk_demo.md} +0 -0
  368. /package/resource/doc/tuicallkit/{faq → android}/faq.md +0 -0
@@ -0,0 +1,67 @@
1
+ ---
2
+ product: 'Room'
3
+ tech_stack: 'roomKit'
4
+ framework: 'common'
5
+ title: 'RoomKit Error Code Reference'
6
+ keywords: ['error code', 'error', 'roomKit', 'room package issue', 'microphone permission issue', 'camera/microphone issue']
7
+ ---
8
+
9
+ # RoomKit Error Code Reference
10
+
11
+ ## RoomKit Error Codes (Topic: RoomKit Error Code)
12
+
13
+ ## Error Code -2
14
+ **Cause:** Operation frequency limit exceeded. Requests are too frequent, please try again later.
15
+ **Solution:** Operation frequency limit exceeded. Requests are too frequent, please try again later.
16
+
17
+ ## Error Code -1002
18
+ **Cause:** SDK not initialized.
19
+ **Solution:** Please call the initialization interface first to complete SDK initialization.
20
+
21
+ ## Error Code -1004
22
+ **Cause:** No package purchased or account is in arrears.
23
+ **Solution:** Visit the [Tencent Cloud Console](https://console.trtc.io/subscription/buy/live) to purchase. For first-time use, you can [activate the trial version](https://trtc.io/document/60033?product=live&menulabel=uikit&platform=web).
24
+
25
+ ## Error Code -1101
26
+ **Cause:** Camera permission denied.
27
+ **Solution:** Please check your browser settings to ensure camera access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
28
+
29
+ ## Error Code -1105
30
+ **Cause:** Microphone permission denied.
31
+ **Solution:** Please check your browser settings to ensure microphone access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
32
+
33
+ ## Error Code -1100
34
+ **Cause:** Failed to open camera.
35
+ **Solution:** Please check your browser settings to ensure camera access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
36
+
37
+ ## Error Code -1104
38
+ **Cause:** Failed to open microphone.
39
+ **Solution:** Please check your browser settings to ensure microphone access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
40
+
41
+ ## Error Code 100007
42
+ **Cause:** No package purchased or account is in arrears.
43
+ **Solution:** Visit the [Tencent Cloud Console](https://console.trtc.io/subscription/buy/live) to purchase. For first-time use, you can [activate the trial version](https://trtc.io/document/60033?product=live&menulabel=uikit&platform=web).
44
+
45
+ ## Error Code 70001
46
+ **Cause:** User signature has expired.
47
+ **Solution:** It is recommended to set the signature validity period to no less than 24 hours. Refer to [Generate UserSig (User Authentication)](https://trtc.io/document/35166?product=live&menulabel=uikit&platform=web).
48
+
49
+ ## Error Code 70003
50
+ **Cause:** Invalid user signature.
51
+ **Solution:** Please regenerate. Refer to [Generate UserSig (User Authentication)](https://trtc.io/document/35166?product=live&menulabel=uikit&platform=web).
52
+
53
+ ## Error Code 70014
54
+ **Cause:** SDKAppID does not match the user signature.
55
+ **Solution:** Please verify. You can validate the signature at the [Tencent Cloud Console](https://console.trtc.io/usersig).
56
+
57
+ ## Error Code 5300
58
+ **Cause:** Exception occurred while accessing device or capturing audio/video.
59
+ **Solution:** Please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
60
+
61
+ ## Error Code 5301
62
+ **Cause:** Camera/microphone device not detected.
63
+ **Solution:** Please ensure your camera/microphone is connected and check if the camera/microphone is available in system or browser settings.
64
+
65
+ ## Error Code 5302
66
+ **Cause:** Camera/microphone permission denied.
67
+ **Solution:** Please check your browser settings to ensure camera and microphone access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment are supported.
File without changes
File without changes
@@ -0,0 +1,47 @@
1
+ ---
2
+ product: 'Call'
3
+ tech_stack: 'callKit'
4
+ framework: 'common'
5
+ title: 'CallKit Error Code Reference'
6
+ keywords: ['error code', 'error', 'callKit usage error', 'call initiation failure']
7
+ ---
8
+
9
+ # CallKit Error Code Reference
10
+
11
+ ## CallKit Error Codes (Topic: CallKit Error Code)
12
+
13
+ ## Error Code -1001
14
+ **Cause:** Your application has not yet enabled audio/video call capability (TUICallKit).
15
+ **Solution:** You can apply for a free trial in the console: https://console.intl.cloud.tencent.com/im/detail or purchase a call capability package: https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1
16
+
17
+ ## Error Code -1002
18
+ **Cause:** You do not currently have access to this capability.
19
+ **Solution:** Please visit the purchase page to buy and activate: https://buy.cloud.tencent.com/avc?addRavLicense=1&position=1600110000&ravLicenseType=1&regionId=1
20
+
21
+ ## Error Code -1101
22
+ **Cause:** Camera/microphone permission denied.
23
+ **Solution:** Please check your browser settings to ensure camera and microphone access is allowed. If you have confirmed permission is granted, please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check if your device and environment support calling.
24
+
25
+ ## Error Code -1201
26
+ **Cause:** TUICallEngine has not completed initialization or login.
27
+ **Solution:** Please ensure that init or login operations have been successfully executed before calling this feature. Solution: https://cloud.tencent.com/document/product/647/78769#3a61f42b-e06f-49af-88bf-362d40025887
28
+
29
+ ## Error Code 60003
30
+ **Cause:** Microphone device not detected.
31
+ **Solution:** Please ensure your device has a connected microphone and check if the microphone is available in system or browser settings.
32
+
33
+ ## Error Code 60004
34
+ **Cause:** Camera device not detected.
35
+ **Solution:** Please ensure your camera is connected and check if the camera is available in system or browser settings.
36
+
37
+ ## Error Code 60006
38
+ **Cause:** Current browser environment does not support WebRTC functionality.
39
+ **Solution:** Please visit the [Audio/Video Capability Detection Tool](https://web.sdk.qcloud.com/trtc/webrtc/demo/detect/index.html) to check your device and environment compatibility.
40
+
41
+ ## Error Code 30000
42
+ **Cause:** Detected that the current page is using the http protocol.
43
+ **Solution:** To ensure smooth access and full functionality of TUICallEngine SDK for production environment users, please use https protocol (or localhost) to access the audio/video application page. Details: https://web.sdk.qcloud.com/trtc/webrtc/v5/doc/zh-cn/tutorial-05-info-browser.html#h2-3
44
+
45
+ ## Error Code 20007
46
+ **Cause:** Call failed: You have been blocked by the other party or you have blocked the other party.
47
+ **Solution:** Check if the account has been blocked by the other party.
@@ -0,0 +1,127 @@
1
+ ### 1. Error message `[-100035]The package you purchased does not support this ability. Please purchase the package` appears during voice or video call?
2
+
3
+ To make voice or video calls, you need to subscribe to our Call Monthly Package. You can try it for free for 7 days. For more information on how to activate the service, please refer to: [Activate Service (TUICallKit)](https://www.tencentcloud.com/document/product/647/59832).
4
+
5
+ ### 2. Invalid or non-existent UserID of message sender or receiver?
6
+
7
+ If the user you are calling has not logged in, the call will fail. Please try calling a user who has successfully logged in.
8
+
9
+ ### 3. Error: inviteID is invalid or the invitation has been processed?
10
+
11
+ The inviteID may be invalid if it has been cancelled by the caller or if the invitation has already been accepted. In some cases, network bandwidth may also affect signaling, causing inviteID invalid errors.
12
+
13
+ ### **4. How to get the call room number RoomId?**
14
+
15
+ After the call is connected, you can obtain the call room number (RoomId) through the [onCallBegin](https://www.tencentcloud.com/document/product/647/51007#onCallBegin) return roomid field.
16
+
17
+ ### 5. Can TUICallKit be used without importing the Chat SDK?
18
+
19
+ **No**, all components of TUIKit use Tencent Cloud Chat SDK as the communication base service, including call signaling, busy line signaling, and other core logic. If you have already purchased another Chat product, you can also refer to the TUICallKit logic for adaptation.
20
+
21
+ ### 6. in the TUIChat + TUICallKit Integrated Scenarios, after Upgrading the TUICallKit Version, New Version Calls Old Version and Old Version Is Unable to Receive Call Issues
22
+
23
+ Starting from TUICallKit version 3.1, in the TUIChat + TUICallKit integrated scenarios, initiating a call through the call button in TUIChat by default uses the new calls API. Therefore, if your business has already gone live, you can use the advanced API to switch the call interface to call or groupCall to maintain interconnectivity with users of the online edition.
24
+
25
+ You need to call an advanced API once after successful log-in. Specific use on all platforms is as follows:
26
+
27
+
28
+
29
+
30
+ 【iOS(Swift)】
31
+ ``` swift
32
+ let jsonParams: [String: Any] = ["api": "forceUseV2API",
33
+ "params": ["enable": true,],]
34
+ guard let data = try? JSONSerialization.data(withJSONObject: jsonParams, options: JSONSerialization.WritingOptions(rawValue: 0)) else { return }
35
+ guard let paramsString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String else { return }
36
+
37
+ TUICallKit.createInstance().callExperimentalAPI(jsonStr: paramsString)
38
+ ```
39
+
40
+
41
+ 【iOS(Objective-C)】
42
+ ``` cpp
43
+ NSDictionary *jsonParams = @{@"api": @"forceUseV2API",
44
+ @"params": @{@"enable": @YES}};
45
+ NSError *error = nil;
46
+ NSData *data = [NSJSONSerialization dataWithJSONObject:jsonParams options:0 error:&error];
47
+ if (error || !data) { return; }
48
+ NSString *paramsString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
49
+ if (!paramsString) { return;}
50
+ [[TUICallKit createInstance] callExperimentalAPIWithJsonStr:paramsString];
51
+
52
+
53
+ ```
54
+
55
+
56
+ 【Android(java)】
57
+ ``` java
58
+ try {
59
+ JSONObject params = new JSONObject();
60
+ params.put("enable", true);
61
+ JSONObject jsonObject = new JSONObject();
62
+ jsonObject.put("api", "forceUseV2API");
63
+ jsonObject.put("params", params);
64
+ TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString());
65
+ } catch (Exception e) {
66
+ e.printStackTrace();
67
+ }
68
+
69
+ ```
70
+
71
+
72
+ 【Android(kotlin)】
73
+ ``` java
74
+ try {
75
+ val params = JSONObject()
76
+ params.put("enable", true)
77
+
78
+ val jsonObject = JSONObject()
79
+ jsonObject.put("api", "forceUseV2API")
80
+ jsonObject.put("params", params)
81
+ TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString())
82
+ } catch (e: Exception) {
83
+ e.printStackTrace()
84
+ }
85
+
86
+ ```
87
+
88
+
89
+ 【Flutter(Dart)】
90
+ ``` java
91
+ final jsonParams = {'api': 'forceUseV2API',
92
+ 'params': {'enable': true} };
93
+
94
+ try {
95
+ final jsonString = json.encode(jsonParams);
96
+ TUICallKit.instance.callExperimentalAPI(jsonStr: jsonString);
97
+ } catch (e) {
98
+ return;
99
+ }
100
+ ```
101
+
102
+
103
+ 【Web & Mini Programs】
104
+ ``` javascript
105
+ const jsonObject = {
106
+ api: "forceUseV2API",
107
+ params: {
108
+ enable: true,
109
+ }
110
+ };
111
+ TUICallKitServer.getTUICallEngineInstance().callExperimentalAPI(JSON.stringfy(jsonObject));
112
+ ```
113
+
114
+ ###
115
+
116
+ ### 7.How to get the log files of each platform?
117
+
118
+ The current log file paths of each platform are as follows:
119
+
120
+
121
+ - iOS or Mac: In the sandbox Documents/log folder.
122
+
123
+ - Android: In the /sdcard/Android/data/[your application package name]/files/log/liteav/ folder.
124
+
125
+ - Windows: In the C:/Users/[system username]/AppData/Roaming/liteav/log, i.e. %APPDATA%/liteav/log folder.
126
+
127
+
@@ -0,0 +1,127 @@
1
+ ### 1. Error message `[-100035]The package you purchased does not support this ability. Please purchase the package` appears during voice or video call?
2
+
3
+ To make voice or video calls, you need to subscribe to our Call Monthly Package. You can try it for free for 7 days. For more information on how to activate the service, please refer to: [Activate Service (TUICallKit)](https://www.tencentcloud.com/document/product/647/59832).
4
+
5
+ ### 2. Invalid or non-existent UserID of message sender or receiver?
6
+
7
+ If the user you are calling has not logged in, the call will fail. Please try calling a user who has successfully logged in.
8
+
9
+ ### 3. Error: inviteID is invalid or the invitation has been processed?
10
+
11
+ The inviteID may be invalid if it has been cancelled by the caller or if the invitation has already been accepted. In some cases, network bandwidth may also affect signaling, causing inviteID invalid errors.
12
+
13
+ ### **4. How to get the call room number RoomId?**
14
+
15
+ After the call is connected, you can obtain the call room number (RoomId) through the [onCallBegin](https://www.tencentcloud.com/document/product/647/51007#onCallBegin) return roomid field.
16
+
17
+ ### 5. Can TUICallKit be used without importing the Chat SDK?
18
+
19
+ **No**, all components of TUIKit use Tencent Cloud Chat SDK as the communication base service, including call signaling, busy line signaling, and other core logic. If you have already purchased another Chat product, you can also refer to the TUICallKit logic for adaptation.
20
+
21
+ ### 6. in the TUIChat + TUICallKit Integrated Scenarios, after Upgrading the TUICallKit Version, New Version Calls Old Version and Old Version Is Unable to Receive Call Issues
22
+
23
+ Starting from TUICallKit version 3.1, in the TUIChat + TUICallKit integrated scenarios, initiating a call through the call button in TUIChat by default uses the new calls API. Therefore, if your business has already gone live, you can use the advanced API to switch the call interface to call or groupCall to maintain interconnectivity with users of the online edition.
24
+
25
+ You need to call an advanced API once after successful log-in. Specific use on all platforms is as follows:
26
+
27
+
28
+
29
+
30
+ 【iOS(Swift)】
31
+ ``` swift
32
+ let jsonParams: [String: Any] = ["api": "forceUseV2API",
33
+ "params": ["enable": true,],]
34
+ guard let data = try? JSONSerialization.data(withJSONObject: jsonParams, options: JSONSerialization.WritingOptions(rawValue: 0)) else { return }
35
+ guard let paramsString = NSString(data: data, encoding: String.Encoding.utf8.rawValue) as? String else { return }
36
+
37
+ TUICallKit.createInstance().callExperimentalAPI(jsonStr: paramsString)
38
+ ```
39
+
40
+
41
+ 【iOS(Objective-C)】
42
+ ``` cpp
43
+ NSDictionary *jsonParams = @{@"api": @"forceUseV2API",
44
+ @"params": @{@"enable": @YES}};
45
+ NSError *error = nil;
46
+ NSData *data = [NSJSONSerialization dataWithJSONObject:jsonParams options:0 error:&error];
47
+ if (error || !data) { return; }
48
+ NSString *paramsString = [[NSString alloc] initWithData:data encoding:NSUTF8StringEncoding];
49
+ if (!paramsString) { return;}
50
+ [[TUICallKit createInstance] callExperimentalAPIWithJsonStr:paramsString];
51
+
52
+
53
+ ```
54
+
55
+
56
+ 【Android(java)】
57
+ ``` java
58
+ try {
59
+ JSONObject params = new JSONObject();
60
+ params.put("enable", true);
61
+ JSONObject jsonObject = new JSONObject();
62
+ jsonObject.put("api", "forceUseV2API");
63
+ jsonObject.put("params", params);
64
+ TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString());
65
+ } catch (Exception e) {
66
+ e.printStackTrace();
67
+ }
68
+
69
+ ```
70
+
71
+
72
+ 【Android(kotlin)】
73
+ ``` java
74
+ try {
75
+ val params = JSONObject()
76
+ params.put("enable", true)
77
+
78
+ val jsonObject = JSONObject()
79
+ jsonObject.put("api", "forceUseV2API")
80
+ jsonObject.put("params", params)
81
+ TUICallKit.createInstance(context).callExperimentalAPI(jsonObject.toString())
82
+ } catch (e: Exception) {
83
+ e.printStackTrace()
84
+ }
85
+
86
+ ```
87
+
88
+
89
+ 【Flutter(Dart)】
90
+ ``` java
91
+ final jsonParams = {'api': 'forceUseV2API',
92
+ 'params': {'enable': true} };
93
+
94
+ try {
95
+ final jsonString = json.encode(jsonParams);
96
+ TUICallKit.instance.callExperimentalAPI(jsonStr: jsonString);
97
+ } catch (e) {
98
+ return;
99
+ }
100
+ ```
101
+
102
+
103
+ 【Web & Mini Programs】
104
+ ``` javascript
105
+ const jsonObject = {
106
+ api: "forceUseV2API",
107
+ params: {
108
+ enable: true,
109
+ }
110
+ };
111
+ TUICallKitServer.getTUICallEngineInstance().callExperimentalAPI(JSON.stringfy(jsonObject));
112
+ ```
113
+
114
+ ###
115
+
116
+ ### 7.How to get the log files of each platform?
117
+
118
+ The current log file paths of each platform are as follows:
119
+
120
+
121
+ - iOS or Mac: In the sandbox Documents/log folder.
122
+
123
+ - Android: In the /sdcard/Android/data/[your application package name]/files/log/liteav/ folder.
124
+
125
+ - Windows: In the C:/Users/[system username]/AppData/Roaming/liteav/log, i.e. %APPDATA%/liteav/log folder.
126
+
127
+
@@ -0,0 +1,36 @@
1
+ ### 1. Error message `[-100035]The package you purchased does not support this ability. Please purchase the package` appears during voice or video call?
2
+
3
+ To make voice or video calls, you need to subscribe to our Call Monthly Package. You can try it for free for 7 days. For more information on how to activate the service, please refer to: [Activate Service (TUICallKit)](https://www.tencentcloud.com/document/product/647/59832).
4
+
5
+ ### 2. Invalid or non-existent UserID of message sender or receiver?
6
+
7
+ If the user you are calling has not logged in, the call will fail. Please try calling a user who has successfully logged in.
8
+
9
+ ### 3. Error: inviteID is invalid or the invitation has been processed?
10
+
11
+ The inviteID may be invalid if it has been cancelled by the caller or if the invitation has already been accepted. In some cases, network bandwidth may also affect signaling, causing inviteID invalid errors.
12
+
13
+ ### **4. How to get the call room number RoomId?**
14
+
15
+ After the call is connected, you can obtain the call room number (RoomId) through the [onCallBegin](https://www.tencentcloud.com/document/product/647/51007#onCallBegin) return roomid field.
16
+
17
+ ### 5. Can TUICallKit be used without importing the Chat SDK?
18
+
19
+ **No**, all components of TUIKit use Tencent Cloud Chat SDK as the communication base service, including call signaling, busy line signaling, and other core logic. If you have already purchased another Chat product, you can also refer to the TUICallKit logic for adaptation.
20
+
21
+ ### 6. in the TUIChat + TUICallKit Integrated Scenarios, after Upgrading the TUICallKit Version, New Version Calls Old Version and Old Version Is Unable to Receive Call Issues
22
+
23
+ Starting from TUICallKit version 3.1, in the TUIChat + TUICallKit integrated scenarios, initiating a call through the call button in TUIChat by default uses the new calls API. Therefore, if your business has already gone live, you can use the advanced API to switch the call interface to call or groupCall to maintain interconnectivity with users of the online edition.
24
+
25
+ You need to call an advanced API once after successful log-in. Specific use on all platforms is as follows:
26
+
27
+ 【Web & Mini Programs】
28
+ ``` javascript
29
+ const jsonObject = {
30
+ api: "forceUseV2API",
31
+ params: {
32
+ enable: true,
33
+ }
34
+ };
35
+ TUICallKitServer.getTUICallEngineInstance().callExperimentalAPI(JSON.stringfy(jsonObject));
36
+ ```
@@ -0,0 +1,36 @@
1
+ ### 1. Error message `[-100035]The package you purchased does not support this ability. Please purchase the package` appears during voice or video call?
2
+
3
+ To make voice or video calls, you need to subscribe to our Call Monthly Package. You can try it for free for 7 days. For more information on how to activate the service, please refer to: [Activate Service (TUICallKit)](https://www.tencentcloud.com/document/product/647/59832).
4
+
5
+ ### 2. Invalid or non-existent UserID of message sender or receiver?
6
+
7
+ If the user you are calling has not logged in, the call will fail. Please try calling a user who has successfully logged in.
8
+
9
+ ### 3. Error: inviteID is invalid or the invitation has been processed?
10
+
11
+ The inviteID may be invalid if it has been cancelled by the caller or if the invitation has already been accepted. In some cases, network bandwidth may also affect signaling, causing inviteID invalid errors.
12
+
13
+ ### **4. How to get the call room number RoomId?**
14
+
15
+ After the call is connected, you can obtain the call room number (RoomId) through the [onCallBegin](https://www.tencentcloud.com/document/product/647/51007#onCallBegin) return roomid field.
16
+
17
+ ### 5. Can TUICallKit be used without importing the Chat SDK?
18
+
19
+ **No**, all components of TUIKit use Tencent Cloud Chat SDK as the communication base service, including call signaling, busy line signaling, and other core logic. If you have already purchased another Chat product, you can also refer to the TUICallKit logic for adaptation.
20
+
21
+ ### 6. in the TUIChat + TUICallKit Integrated Scenarios, after Upgrading the TUICallKit Version, New Version Calls Old Version and Old Version Is Unable to Receive Call Issues
22
+
23
+ Starting from TUICallKit version 3.1, in the TUIChat + TUICallKit integrated scenarios, initiating a call through the call button in TUIChat by default uses the new calls API. Therefore, if your business has already gone live, you can use the advanced API to switch the call interface to call or groupCall to maintain interconnectivity with users of the online edition.
24
+
25
+ You need to call an advanced API once after successful log-in. Specific use on all platforms is as follows:
26
+
27
+ 【Web & Mini Programs】
28
+ ``` javascript
29
+ const jsonObject = {
30
+ api: "forceUseV2API",
31
+ params: {
32
+ enable: true,
33
+ }
34
+ };
35
+ TUICallKitServer.getTUICallEngineInstance().callExperimentalAPI(JSON.stringfy(jsonObject));
36
+ ```
@@ -1,12 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { GET_NATIVE_CALL_UIKIT_DEFINITION } from '../definitions/get_native_call_uikit_integration_def.js';
2
3
  import { getDocContent } from '../../utils/get-doc-content.js';
3
4
  import { reportCLSClient } from '../../utils/report-cls-client.js';
4
- const description = `
5
- This is a tool specifically designed for creating native mobile audio and video call applications. With the tool, you can achieve the following functions: | 这是一个专门负责创建移动端 native 音视频通话应用的工具,通过工具您可以实现以下功能:\n
6
- 1. Create a native audio and video calling app with functionality and UI similar to the audio and video calling capabilities in WeChat or WeChat for Business. | 1. 创建一个 native 音视频通话应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)中音视频通话能力 \n
7
- 2. The tool provides Call UIKit component integration solutions for multiple platforms or frameworks, including flutter (cross-platform), android (native), and ios (native). You can choose one of these platforms or frameworks to build a mobile native audio and video call project. | 2. 工具提供 flutter(跨平台)、android(原生)、ios(原生) 多种平台或框架的 Call UIKit 组件集成方案,您可以根据需要选择其中一个平台或框架搭建一个移动端 native 音视频通话项目 \n
8
- 3. If no specific platform or framework is specified, to implement the function, you must first use the tools tool present_framework_choice to display the framework type selection interface | 3. 在没有指定特定平台或框架的情况下,要实现功能,必须优先使用 tools 工具 present_framework_choice 展示选择框架类型界面 \n
9
- `;
10
5
  function getResultText(params) {
11
6
  const { framework = '' } = params;
12
7
  reportCLSClient({
@@ -16,10 +11,9 @@ function getResultText(params) {
16
11
  return getDocContent(['tuicallkit', `${framework}`]);
17
12
  }
18
13
  const registryGetNativeCallIntegrationTool = (mcpServer) => {
19
- mcpServer.tool('get_native_call_uikit_integration', description, {
20
- framework: z.enum(['flutter', 'android', 'ios']).describe('The platform type of the native call UIKit component library. You first need to choose which platform to use to create your chat application. Currently supported frameworks are: Flutter, Android, and iOS. | native call uikit 组件库的平台类型,您首先需要选择使用哪一种来平台来创建您的聊天应用,目前支持的框架有:flutter, android, ios。'),
21
- sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID。`),
22
- secretKey: z.string().describe(`The secretKey of your SDKAppID. |您的 SDKAppID 的 secretKey。`),
14
+ const { name, description, parameter_descriptions } = GET_NATIVE_CALL_UIKIT_DEFINITION;
15
+ mcpServer.tool(name, description, {
16
+ framework: z.enum(['flutter', 'android', 'ios']).describe(parameter_descriptions.framework),
23
17
  }, (params) => ({
24
18
  content: [
25
19
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-native-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-native-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,MAAM,WAAW,GAAG;;;;;CAKnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,mCAAmC;QAC3C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,SAAS,CAAC,IAAI,CACZ,mCAAmC,EACnC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,oSAAoS,CAAC;QAC/V,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,gDAAgD,CAAC;QAC/E,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,2DAA2D,CAAC;KAC5F,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-native-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-native-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,gCAAgC,EAAE,MAAM,yDAAyD,CAAC;AAC3G,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,mCAAmC;QAC3C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACvD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,gCAAgC,CAAC;IACvF,SAAS,CAAC,IAAI,CACZ,IAAI,EACJ,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;KAC5F,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,11 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { GET_WEB_CALLKIT_API_DEFINITION } from '../definitions/get_web_call_uikit_api_def.js';
2
3
  import { getDocContent } from '../../utils/get-doc-content.js';
3
4
  import { reportCLSClient } from '../../utils/report-cls-client.js';
4
- const description = `
5
- This is a tool specifically designed to provide the CallKit component API. Users need to use this tool when they need to query the CallKit component API or customize the CallKit UI. | 这是一个专门负责提供 TUICallKit 组件 API 的工具,当用户需要查询 CallKit 组件 API 或者需要自定义 CallKit UI 界面 时需要调用这个工具:\n
6
- 1. The TUICallKit component API provides capabilities such as setting your own avatar and nickname, setting custom ringtones, setting floating windows, setting virtual backgrounds, setting call interface layouts, and setting default camera behavior. | 1. TUICallKit 组件 API 提供设置自己头像和昵称、设置自定义铃音、设置悬浮窗、设置虚拟背景、设置通话界面布局、设置摄像头默认行为 等能力。\n
7
- 2. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
8
- `;
9
5
  function getResultText(params) {
10
6
  const { framework = '' } = params;
11
7
  reportCLSClient({
@@ -15,8 +11,9 @@ function getResultText(params) {
15
11
  return getDocContent(['tuicallkit', `${framework}`, 'api.md']);
16
12
  }
17
13
  const registryGetWebCallKitAPITool = (mcpServer) => {
18
- mcpServer.tool('get_web_call_uikit_api', description, {
19
- framework: z.enum(['react', 'vue']).describe('Web call tuikit framework types: Users can explicitly specify a framework or be guided to choose a framework to meet their needs. Currently supported frameworks include: React and Vue. | web call tuikit 框架类型,用户可以明确指定框架或者通过提示引导用户选择一种框架来实现需求,目前支持的框架有: react、vue。'),
14
+ const { name, description, parameter_descriptions } = GET_WEB_CALLKIT_API_DEFINITION;
15
+ mcpServer.tool(name, description, {
16
+ framework: z.enum(['react', 'vue']).describe(parameter_descriptions.framework),
20
17
  }, (params) => ({
21
18
  content: [
22
19
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-web-call-api.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,MAAM,WAAW,GAAG;;;;CAInB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,wBAAwB;QAChC,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC5D,SAAS,CAAC,IAAI,CACZ,wBAAwB,EACxB,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sQAAsQ,CAAC;KACrT,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
1
+ {"version":3,"file":"get-web-call-api.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-api.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,8BAA8B,EAAE,MAAM,8CAA8C,CAAC;AAC9F,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,wBAAwB;QAChC,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,QAAQ,CAAC,CAAC,CAAC;AACjE,CAAC;AAED,MAAM,4BAA4B,GAAG,CAAC,SAAoB,EAAE,EAAE;IAC5D,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,8BAA8B,CAAC;IACrF,SAAS,CAAC,IAAI,CACZ,IAAI,EACJ,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;KAC/E,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,4BAA4B,EAAE,CAAC"}
@@ -1,13 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { GET_WEB_CALL_UIKIT_INTEGRATION_DEFINITION } from '../definitions/get_web_call_uikit_integration_def.js';
2
3
  import { getDocContent } from '../../utils/get-doc-content.js';
3
4
  import { reportCLSClient } from '../../utils/report-cls-client.js';
4
- const description = `
5
- This is a tool specifically designed for creating Web PC or H5 audio and video calling applications using TUCallKit. Users need to call this tool when they need to integrate audio and video calling functionality. | 这是一个专门负责用 TUICallKit 创建 web PC 或 H5 音视频通话应用的工具,当用户需要集成音视频通话时需要调用这个工具:\n
6
- 1. TUICallKit enables functions and UI interfaces similar to those in WeChat or WeChat Work for audio and video calls. | 1. TUICallKit 能够实现一个功能和 UI 界面类似微信(WeChat)或者企业微信(企微)中音视频通话的能力。\n
7
- 2. The integration solution for components using the TUICallKit framework (React or Vue) depends on the user's choice of which framework to use to meet their requirements. | 2. TUICallKit react、vue 两种框架的组件集成方案,需要根据用户的选择决策使用哪一种框架来实现需求。\n
8
- 3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
9
- 4. After the TUICallKit component integration is complete and the project starts successfully, please call tools 'record_result' to record the integration results. | 4. 在 TUICallKit 组件集成完成且项目启动成功后,请调用 tools 'record_result' 记录集成结果。\n
10
- `;
11
5
  function getResultText(params) {
12
6
  const { framework = '' } = params;
13
7
  reportCLSClient({
@@ -17,8 +11,9 @@ function getResultText(params) {
17
11
  return getDocContent(['tuicallkit', `${framework}`, 'integration.md']);
18
12
  }
19
13
  const registryGetWebCallIntegrationTool = (mcpServer) => {
20
- mcpServer.tool('get_web_call_uikit_integration', description, {
21
- framework: z.enum(['react', 'vue']).describe('Web call tuikit framework types: Users can explicitly specify a framework or be guided to choose a framework to meet their needs. Currently supported frameworks include: React and Vue. | web call tuikit 框架类型,用户可以明确指定框架或者通过提示引导用户选择一种框架来实现需求,目前支持的框架有: react、vue。'),
14
+ const { name, description, parameter_descriptions } = GET_WEB_CALL_UIKIT_INTEGRATION_DEFINITION;
15
+ mcpServer.tool(name, description, {
16
+ framework: z.enum(['react', 'vue']).describe(parameter_descriptions.framework),
22
17
  }, (params) => ({
23
18
  content: [
24
19
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-web-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,MAAM,WAAW,GAAG;;;;;;CAMnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,gCAAgC;QACxC,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,iCAAiC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACjE,SAAS,CAAC,IAAI,CACZ,gCAAgC,EAChC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sQAAsQ,CAAC;KACrT,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-web-call-integration.js","sourceRoot":"","sources":["../../../src/tools/call/get-web-call-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,yCAAyC,EAAE,MAAM,sDAAsD,CAAC;AACjH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,gCAAgC;QACxC,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,YAAY,EAAE,GAAG,SAAS,EAAE,EAAE,gBAAgB,CAAC,CAAC,CAAC;AACzE,CAAC;AAED,MAAM,iCAAiC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACjE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,yCAAyC,CAAC;IAChG,SAAS,CAAC,IAAI,CACZ,IAAI,EACJ,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;KAC/E,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,iCAAiC,EAAE,CAAC"}
@@ -1,12 +1,7 @@
1
1
  import { z } from 'zod';
2
+ import { GET_NATIVE_CHAT_UIKIT_INTEGRATION_DEFINITION } from '../definitions/get_native_chat_uikit_integration_def.js';
2
3
  import { getDocContent } from '../../utils/get-doc-content.js';
3
4
  import { reportCLSClient } from '../../utils/report-cls-client.js';
4
- const description = `
5
- This is a tool specifically designed for creating native mobile chat applications. Users can use this tool when they need to create a native chat application, and it provides the following functions: | 这是一个专门负责创建移动端 native 聊天应用的工具,当用户需要创建一个 native 聊天应用时可以调用这个工具,提供以下功能:\n
6
- 1. Create a native chat app with functionality and UI similar to WeChat or WeCom. | 1. 创建一个 native 聊天应用,功能和 UI 界面类似微信(WeChat)或者企业微信(企微)。\n
7
- 2. The tool provides Chat TUIKit component integration solutions for multiple platforms or frameworks, including Flutter (cross-platform), Android (native), and iOS (native). A mobile native chat project needs to be built based on the user's choice. | 2. 工具提供 flutter(跨平台)、android(原生)、ios(原生) 多种平台(platform)或框架(framework)的 Chat TUIKit 组件集成方案,需要根据用户的选择来搭实现一个移动端 native 聊天项目。\n
8
- 3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
9
- `;
10
5
  function getResultText(params) {
11
6
  const { framework = '' } = params;
12
7
  reportCLSClient({
@@ -16,9 +11,9 @@ function getResultText(params) {
16
11
  return getDocContent(['chatuikit', `${framework}`]);
17
12
  }
18
13
  const registryGetNativeChatIntegrationTool = (mcpServer) => {
19
- mcpServer.tool('get_native_chat_uikit_integration', description, {
20
- framework: z.enum(['flutter', 'android', 'ios']).describe('The platform type of the Native Chat UIKit component library. You first need to choose which platform to use to create your chat application. Currently supported frameworks or platforms are: Flutter, Android, and iOS. | native chat uikit 组件库的平台类型,您首先需要选择使用哪一种来平台来创建您的聊天应用,目前支持的框架或平台有:flutter, android, ios。'),
21
- sdkAppId: z.string().describe(`Your application's SDKAppID. | 您的应用的 SDKAppID`),
14
+ const { name, description, parameter_descriptions } = GET_NATIVE_CHAT_UIKIT_INTEGRATION_DEFINITION;
15
+ mcpServer.tool(name, description, {
16
+ framework: z.enum(['flutter', 'android', 'ios']).describe(parameter_descriptions.framework),
22
17
  }, (params) => ({
23
18
  content: [
24
19
  {
@@ -1 +1 @@
1
- {"version":3,"file":"get-native-chat-integration.js","sourceRoot":"","sources":["../../../src/tools/chat/get-native-chat-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,MAAM,WAAW,GAAG;;;;;CAKnB,CAAC;AAEF,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,mCAAmC;QAC3C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,SAAS,CAAC,IAAI,CACZ,mCAAmC,EACnC,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,oTAAoT,CAAC;QAC/W,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,+CAA+C,CAAC;KAC/E,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
1
+ {"version":3,"file":"get-native-chat-integration.js","sourceRoot":"","sources":["../../../src/tools/chat/get-native-chat-integration.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,4CAA4C,EAAE,MAAM,yDAAyD,CAAC;AACvH,OAAO,EAAE,aAAa,EAAE,MAAM,gCAAgC,CAAC;AAC/D,OAAO,EAAE,eAAe,EAAE,MAAM,kCAAkC,CAAC;AAEnE,SAAS,aAAa,CAAC,MAA2B;IAChD,MAAM,EAAE,SAAS,GAAG,EAAE,EAAE,GAAG,MAAM,CAAC;IAClC,eAAe,CAAC;QACd,MAAM,EAAE,mCAAmC;QAC3C,SAAS,EAAE,SAAS;KACrB,CAAC,CAAC;IACH,OAAO,aAAa,CAAC,CAAC,WAAW,EAAE,GAAG,SAAS,EAAE,CAAC,CAAC,CAAC;AACtD,CAAC;AAED,MAAM,oCAAoC,GAAG,CAAC,SAAoB,EAAE,EAAE;IACpE,MAAM,EAAE,IAAI,EAAE,WAAW,EAAE,sBAAsB,EAAE,GAAG,4CAA4C,CAAC;IACnG,SAAS,CAAC,IAAI,CACZ,IAAI,EACJ,WAAW,EACX;QACE,SAAS,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,SAAS,EAAE,SAAS,EAAE,KAAK,CAAC,CAAC,CAAC,QAAQ,CAAC,sBAAsB,CAAC,SAAS,CAAC;KAC5F,EAAE,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACd,OAAO,EAAE;YACP;gBACE,IAAI,EAAE,MAAM;gBACZ,IAAI,EAAE,aAAa,CAAC,MAAM,CAAC;aAC5B;SACF;KACF,CAAC,CAAC,CAAC;AACR,CAAC,CAAC;AACF,OAAO,EAAE,oCAAoC,EAAE,CAAC"}
@@ -1,15 +1,9 @@
1
1
  import { z } from 'zod';
2
+ import { GET_WEB_CHAT_UIKIT_COMPONENT_DETAIL_DEFINITION } from '../definitions/get_web_chat_uikit_component_detail_def.js';
2
3
  import { getDocContent } from '../../utils/get-doc-content.js';
3
4
  import { reportCLSClient } from '../../utils/report-cls-client.js';
4
5
  import { handleFramework } from '../../utils/handle-framework.js';
5
6
  import { handleComponentName } from '../../utils/handle-component-name.js';
6
- const description = `
7
-
8
- This is a tool specifically designed to provide detailed descriptions of UIKit components for online chat applications. Through this tool, you will obtain the following: | 这是一个专门负责提供 web 聊天应用 UIKit 组件详情说明的工具,通过工具您获得以下内容:\n
9
- 1. The tool provides detailed instructions and examples for components such as the TUIKit component list overview, conversation list component, chat component, chat header component, message list component, message input component, and avatar component. | 1. 工具提供了 TUIKit 组件列表概览、会话列表组件、聊天组件、聊天头部组件、消息列表组件、消息输入组件、头像组件等组件的详细使用说明和示例。 \n
10
- 2. The tool provides detailed usage examples and case studies for Chat TUIKit components in both React and Vue frameworks. Users can choose the component details for one of the frameworks according to their needs. | 2. 工具提供 react、vue 两种框架的 Chat TUIKit 组件详细用法和案例,根据用户的需要选择其中一个框架的组件详情。\n
11
- 3. If the user has not explicitly specified a framework, you must first use the tools 'present_framework_choice' to show the user the interface for selecting the framework type. | 3. 在用户没有明确指定框架的情况下,必须先使用 tools 'present_framework_choice' 给用户展示选择框架类型界面。\n
12
- `;
13
7
  function getResultText(params) {
14
8
  const { framework, componentName = '' } = params;
15
9
  reportCLSClient({
@@ -20,9 +14,10 @@ function getResultText(params) {
20
14
  return getDocContent(['chatuikit', `${handleFramework(framework)}`, 'components', `${handleComponentName(componentName)}.md`]);
21
15
  }
22
16
  const registryGetWebChatComponentDetailTool = (mcpServer) => {
23
- mcpServer.tool('get_web_chat_uikit_component_detail', description, {
24
- framework: z.enum(['react', 'vue']).describe('Web Chat UIKit component details framework type, currently supported frameworks are: react, vue | web chat uikit 组件详情框架类型,目前支持的框架有: react、vue'),
25
- componentName: z.string().describe('The specific component name of the web chat UIKit component, such as avatar | web chat uikit 组件的具体组件名称,比如 avatar'),
17
+ const { name, description, parameter_descriptions } = GET_WEB_CHAT_UIKIT_COMPONENT_DETAIL_DEFINITION;
18
+ mcpServer.tool(name, description, {
19
+ framework: z.enum(['react', 'vue']).describe(parameter_descriptions.framework),
20
+ componentName: z.string().describe(parameter_descriptions.componentName),
26
21
  }, (params) => ({
27
22
  content: [
28
23
  {