@tencent-rtc/mcp 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (286) hide show
  1. package/@tencent/aegis-node-sdk/CHANGELOG.md +8 -0
  2. package/@tencent/aegis-node-sdk/LICENSE +21 -0
  3. package/@tencent/aegis-node-sdk/README.md +562 -0
  4. package/@tencent/aegis-node-sdk/lib/aegis.min.js +1 -0
  5. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -0
  6. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -0
  7. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -0
  8. package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -0
  9. package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -0
  10. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -0
  11. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -0
  12. package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -0
  13. package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -0
  14. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -0
  15. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -0
  16. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -0
  17. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -0
  18. package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -0
  19. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -0
  20. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -0
  21. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -0
  22. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -0
  23. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -0
  24. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -0
  25. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -0
  26. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -0
  27. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -0
  28. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -0
  29. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -0
  30. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -0
  31. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -0
  32. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -0
  33. package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -0
  34. package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -0
  35. package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
  36. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -0
  37. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -0
  38. package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -0
  39. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -0
  40. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -0
  41. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -0
  42. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -0
  43. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -0
  44. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -0
  45. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -0
  46. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -0
  47. package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -0
  48. package/@tencent/aegis-node-sdk/package.json +19 -0
  49. package/@tencent/polaris/README.md +407 -0
  50. package/@tencent/polaris/dist/consumer/health.d.ts +126 -0
  51. package/@tencent/polaris/dist/consumer/health.js +283 -0
  52. package/@tencent/polaris/dist/consumer/health.js.map +1 -0
  53. package/@tencent/polaris/dist/consumer/index.d.ts +120 -0
  54. package/@tencent/polaris/dist/consumer/index.js +348 -0
  55. package/@tencent/polaris/dist/consumer/index.js.map +1 -0
  56. package/@tencent/polaris/dist/consumer/monitor.d.ts +145 -0
  57. package/@tencent/polaris/dist/consumer/monitor.js +343 -0
  58. package/@tencent/polaris/dist/consumer/monitor.js.map +1 -0
  59. package/@tencent/polaris/dist/consumer/selector.d.ts +73 -0
  60. package/@tencent/polaris/dist/consumer/selector.js +316 -0
  61. package/@tencent/polaris/dist/consumer/selector.js.map +1 -0
  62. package/@tencent/polaris/dist/errors.d.ts +373 -0
  63. package/@tencent/polaris/dist/errors.js +154 -0
  64. package/@tencent/polaris/dist/errors.js.map +1 -0
  65. package/@tencent/polaris/dist/global.d.ts +16 -0
  66. package/@tencent/polaris/dist/global.js +18 -0
  67. package/@tencent/polaris/dist/global.js.map +1 -0
  68. package/@tencent/polaris/dist/index.d.ts +62 -0
  69. package/@tencent/polaris/dist/index.js +145 -0
  70. package/@tencent/polaris/dist/index.js.map +1 -0
  71. package/@tencent/polaris/dist/instance.d.ts +109 -0
  72. package/@tencent/polaris/dist/instance.js +38 -0
  73. package/@tencent/polaris/dist/instance.js.map +1 -0
  74. package/@tencent/polaris/dist/limiter/bucket.d.ts +51 -0
  75. package/@tencent/polaris/dist/limiter/bucket.js +152 -0
  76. package/@tencent/polaris/dist/limiter/bucket.js.map +1 -0
  77. package/@tencent/polaris/dist/limiter/index.d.ts +73 -0
  78. package/@tencent/polaris/dist/limiter/index.js +149 -0
  79. package/@tencent/polaris/dist/limiter/index.js.map +1 -0
  80. package/@tencent/polaris/dist/limiter/ratelimit.d.ts +27 -0
  81. package/@tencent/polaris/dist/limiter/ratelimit.js +134 -0
  82. package/@tencent/polaris/dist/limiter/ratelimit.js.map +1 -0
  83. package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +17 -0
  84. package/@tencent/polaris/dist/limiter/ratelimiter/base.js +15 -0
  85. package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +1 -0
  86. package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +59 -0
  87. package/@tencent/polaris/dist/limiter/ratelimiter/global.js +397 -0
  88. package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +1 -0
  89. package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +3 -0
  90. package/@tencent/polaris/dist/limiter/ratelimiter/index.js +19 -0
  91. package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +1 -0
  92. package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +17 -0
  93. package/@tencent/polaris/dist/limiter/ratelimiter/local.js +52 -0
  94. package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +1 -0
  95. package/@tencent/polaris/dist/location.d.ts +48 -0
  96. package/@tencent/polaris/dist/location.js +67 -0
  97. package/@tencent/polaris/dist/location.js.map +1 -0
  98. package/@tencent/polaris/dist/logging.d.ts +106 -0
  99. package/@tencent/polaris/dist/logging.js +130 -0
  100. package/@tencent/polaris/dist/logging.js.map +1 -0
  101. package/@tencent/polaris/dist/metadata.d.ts +78 -0
  102. package/@tencent/polaris/dist/metadata.js +119 -0
  103. package/@tencent/polaris/dist/metadata.js.map +1 -0
  104. package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +47 -0
  105. package/@tencent/polaris/dist/plugins/breaker/polaris.js +162 -0
  106. package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +1 -0
  107. package/@tencent/polaris/dist/plugins/lb/base.d.ts +24 -0
  108. package/@tencent/polaris/dist/plugins/lb/base.js +32 -0
  109. package/@tencent/polaris/dist/plugins/lb/base.js.map +1 -0
  110. package/@tencent/polaris/dist/plugins/lb/edf.d.ts +24 -0
  111. package/@tencent/polaris/dist/plugins/lb/edf.js +77 -0
  112. package/@tencent/polaris/dist/plugins/lb/edf.js.map +1 -0
  113. package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +24 -0
  114. package/@tencent/polaris/dist/plugins/lb/hashring.js +53 -0
  115. package/@tencent/polaris/dist/plugins/lb/hashring.js.map +1 -0
  116. package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +31 -0
  117. package/@tencent/polaris/dist/plugins/lb/sticky.js +88 -0
  118. package/@tencent/polaris/dist/plugins/lb/sticky.js.map +1 -0
  119. package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +25 -0
  120. package/@tencent/polaris/dist/plugins/lb/swrr.js +72 -0
  121. package/@tencent/polaris/dist/plugins/lb/swrr.js.map +1 -0
  122. package/@tencent/polaris/dist/plugins/lb/wr.d.ts +17 -0
  123. package/@tencent/polaris/dist/plugins/lb/wr.js +50 -0
  124. package/@tencent/polaris/dist/plugins/lb/wr.js.map +1 -0
  125. package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +19 -0
  126. package/@tencent/polaris/dist/plugins/lb/wrr.js +81 -0
  127. package/@tencent/polaris/dist/plugins/lb/wrr.js.map +1 -0
  128. package/@tencent/polaris/dist/plugins/logging/console.d.ts +10 -0
  129. package/@tencent/polaris/dist/plugins/logging/console.js +38 -0
  130. package/@tencent/polaris/dist/plugins/logging/console.js.map +1 -0
  131. package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +32 -0
  132. package/@tencent/polaris/dist/plugins/naming/local-server/index.js +88 -0
  133. package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +1 -0
  134. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +124 -0
  135. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +398 -0
  136. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +1 -0
  137. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +27 -0
  138. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +287 -0
  139. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +1 -0
  140. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +15 -0
  141. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +43 -0
  142. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +1 -0
  143. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +28 -0
  144. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +249 -0
  145. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +1 -0
  146. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +19 -0
  147. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +222 -0
  148. package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +1 -0
  149. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +26 -0
  150. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +99 -0
  151. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +1 -0
  152. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +60 -0
  153. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +259 -0
  154. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +1 -0
  155. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +24 -0
  156. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +18 -0
  157. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +12 -0
  158. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +39 -0
  159. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +115 -0
  160. package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +1 -0
  161. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +24 -0
  162. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +22 -0
  163. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +28 -0
  164. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +80 -0
  165. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +18 -0
  166. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +65 -0
  167. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +66 -0
  168. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +95 -0
  169. package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +1568 -0
  170. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +36 -0
  171. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +51 -0
  172. package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +1 -0
  173. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +18 -0
  174. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +67 -0
  175. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +82 -0
  176. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +11 -0
  177. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +46 -0
  178. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +16 -0
  179. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +10 -0
  180. package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +1102 -0
  181. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +29 -0
  182. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +77 -0
  183. package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +1 -0
  184. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +12 -0
  185. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +28 -0
  186. package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +395 -0
  187. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +13 -0
  188. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +116 -0
  189. package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +1 -0
  190. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +67 -0
  191. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +67 -0
  192. package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +1 -0
  193. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +99 -0
  194. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +217 -0
  195. package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +1 -0
  196. package/@tencent/polaris/dist/plugins/registry/memory.d.ts +10 -0
  197. package/@tencent/polaris/dist/plugins/registry/memory.js +50 -0
  198. package/@tencent/polaris/dist/plugins/registry/memory.js.map +1 -0
  199. package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +51 -0
  200. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +145 -0
  201. package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +1 -0
  202. package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +11 -0
  203. package/@tencent/polaris/dist/plugins/router/polaris/rule.js +174 -0
  204. package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +1 -0
  205. package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +25 -0
  206. package/@tencent/polaris/dist/plugins/router/trpc/canary.js +36 -0
  207. package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +1 -0
  208. package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +10 -0
  209. package/@tencent/polaris/dist/plugins/router/trpc/env.js +34 -0
  210. package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +1 -0
  211. package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +56 -0
  212. package/@tencent/polaris/dist/plugins/router/trpc/set.js +106 -0
  213. package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +1 -0
  214. package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +31 -0
  215. package/@tencent/polaris/dist/plugins/shaping/unirate.js +124 -0
  216. package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +1 -0
  217. package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +61 -0
  218. package/@tencent/polaris/dist/plugins/shaping/warmup.js +171 -0
  219. package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +1 -0
  220. package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +23 -0
  221. package/@tencent/polaris/dist/plugins/weight/polaris.js +159 -0
  222. package/@tencent/polaris/dist/plugins/weight/polaris.js.map +1 -0
  223. package/@tencent/polaris/dist/plugins.d.ts +619 -0
  224. package/@tencent/polaris/dist/plugins.js +91 -0
  225. package/@tencent/polaris/dist/plugins.js.map +1 -0
  226. package/@tencent/polaris/dist/polaris.d.ts +33 -0
  227. package/@tencent/polaris/dist/polaris.js +59 -0
  228. package/@tencent/polaris/dist/polaris.js.map +1 -0
  229. package/@tencent/polaris/dist/provider/index.d.ts +102 -0
  230. package/@tencent/polaris/dist/provider/index.js +168 -0
  231. package/@tencent/polaris/dist/provider/index.js.map +1 -0
  232. package/@tencent/polaris/dist/registry.d.ts +174 -0
  233. package/@tencent/polaris/dist/registry.js +660 -0
  234. package/@tencent/polaris/dist/registry.js.map +1 -0
  235. package/@tencent/polaris/dist/rules.d.ts +163 -0
  236. package/@tencent/polaris/dist/rules.js +24 -0
  237. package/@tencent/polaris/dist/rules.js.map +1 -0
  238. package/@tencent/polaris/dist/scripts/postinstall.d.ts +1 -0
  239. package/@tencent/polaris/dist/scripts/postinstall.js +71 -0
  240. package/@tencent/polaris/dist/scripts/postinstall.js.map +1 -0
  241. package/@tencent/polaris/dist/service.d.ts +18 -0
  242. package/@tencent/polaris/dist/service.js +3 -0
  243. package/@tencent/polaris/dist/service.js.map +1 -0
  244. package/@tencent/polaris/dist/skeleton.d.ts +87 -0
  245. package/@tencent/polaris/dist/skeleton.js +282 -0
  246. package/@tencent/polaris/dist/skeleton.js.map +1 -0
  247. package/@tencent/polaris/dist/utils.d.ts +36 -0
  248. package/@tencent/polaris/dist/utils.js +74 -0
  249. package/@tencent/polaris/dist/utils.js.map +1 -0
  250. package/@tencent/polaris/dist/weak.d.ts +11 -0
  251. package/@tencent/polaris/dist/weak.js +44 -0
  252. package/@tencent/polaris/dist/weak.js.map +1 -0
  253. package/@tencent/polaris/package.json +114 -0
  254. package/README.md +61 -0
  255. package/cursor-setting.png +0 -0
  256. package/index.js +16 -0
  257. package/index.js.map +1 -0
  258. package/mcp-server-prompt.png +0 -0
  259. package/mcp.json +8 -0
  260. package/package.json +49 -0
  261. package/resource/doc/tuicallkit/android/.gitkeep +0 -0
  262. package/resource/doc/tuicallkit/android/api_TUICallKit.md +610 -0
  263. package/resource/doc/tuicallkit/android/api_TUICallObserver.md +784 -0
  264. package/resource/doc/tuicallkit/android/how_to_integrated_android_callkit.md +286 -0
  265. package/resource/doc/tuicallkit/faq/faq.md +127 -0
  266. package/resource/doc/tuicallkit/flutter/api_TUICallDefine.md +938 -0
  267. package/resource/doc/tuicallkit/flutter/api_TUICallKit.md +469 -0
  268. package/resource/doc/tuicallkit/flutter/api_TUICallObserver.md +897 -0
  269. package/resource/doc/tuicallkit/flutter/how_to_integrated_flutter_callkit.md +226 -0
  270. package/resource/doc/tuicallkit/flutter/how_to_run_flutter_callkit_demo.md +101 -0
  271. package/resource/doc/tuicallkit/iOS/api_TUICallKit.md +398 -0
  272. package/resource/doc/tuicallkit/iOS/api_TUICallObserver.md +781 -0
  273. package/resource/doc/tuicallkit/iOS/how_to_integrated_iOS_callkit.md +268 -0
  274. package/resource/doc/tuicallkit/iOS/how_to_run_iOS_callkit_demo.md +98 -0
  275. package/resource/doc/tuicallkit/react/.gitkeep +0 -0
  276. package/resource/doc/tuicallkit/react/api_TUICallKit.md +354 -0
  277. package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +166 -0
  278. package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +61 -0
  279. package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
  280. package/resource/doc/tuicallkit/vue/api_TUICallKit.md +354 -0
  281. package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +187 -0
  282. package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +61 -0
  283. package/server.js +132 -0
  284. package/server.js.map +1 -0
  285. package/streamableHttp.js +74 -0
  286. package/streamableHttp.js.map +1 -0
@@ -0,0 +1,781 @@
1
+ ## TUICallObserver APIs
2
+
3
+ `TUICallObserver` is the callback class of `TUICallEngine`. You can use it to listen for events.
4
+
5
+ ## Overview
6
+ <table>
7
+ <tr>
8
+ <td rowspan="1" colSpan="1" >API</td>
9
+
10
+ <td rowspan="1" colSpan="1" >Description</td>
11
+ </tr>
12
+
13
+ <tr>
14
+ <td rowspan="1" colSpan="1" >[onError](https://www.tencentcloud.com/document/product/647/51013#onError)</td>
15
+
16
+ <td rowspan="1" colSpan="1" >An error occurred during the call.</td>
17
+ </tr>
18
+
19
+ <tr>
20
+ <td rowspan="1" colSpan="1" >[onCallReceived](https://www.tencentcloud.com/document/product/647/51013#onCallReceived)</td>
21
+
22
+ <td rowspan="1" colSpan="1" >A call was received.</td>
23
+ </tr>
24
+
25
+ <tr>
26
+ <td rowspan="1" colSpan="1" >[onCallBegin](https://www.tencentcloud.com/document/product/647/51013#onCallBegin)</td>
27
+
28
+ <td rowspan="1" colSpan="1" >The call was connected.</td>
29
+ </tr>
30
+
31
+ <tr>
32
+ <td rowspan="1" colSpan="1" >[onCallEnd](https://www.tencentcloud.com/document/product/647/51013#onCallEnd)</td>
33
+
34
+ <td rowspan="1" colSpan="1" >The call ended.</td>
35
+ </tr>
36
+
37
+ <tr>
38
+ <td rowspan="1" colSpan="1" >[onCallNotConnected](https://www.tencentcloud.com/document/product/647/51013#onCallNotConnected)</td>
39
+
40
+ <td rowspan="1" colSpan="1" >The call not connected.</td>
41
+ </tr>
42
+
43
+ <tr>
44
+ <td rowspan="1" colSpan="1" >[onUserReject](https://www.tencentcloud.com/document/product/647/51013#onUserReject)</td>
45
+
46
+ <td rowspan="1" colSpan="1" >A user declined the call.</td>
47
+ </tr>
48
+
49
+ <tr>
50
+ <td rowspan="1" colSpan="1" >[onUserNoResponse](https://www.tencentcloud.com/document/product/647/51013#onUserNoResponse)</td>
51
+
52
+ <td rowspan="1" colSpan="1" >A user didn't respond.</td>
53
+ </tr>
54
+
55
+ <tr>
56
+ <td rowspan="1" colSpan="1" >[onUserLineBusy](https://www.tencentcloud.com/document/product/647/51013#onUserLineBusy)</td>
57
+
58
+ <td rowspan="1" colSpan="1" >A user was busy.</td>
59
+ </tr>
60
+
61
+ <tr>
62
+ <td rowspan="1" colSpan="1" >[onUserInviting](https://www.tencentcloud.com/document/product/647/51013#onUserInviting)</td>
63
+
64
+ <td rowspan="1" colSpan="1" >A user is invited to join a call.</td>
65
+ </tr>
66
+
67
+ <tr>
68
+ <td rowspan="1" colSpan="1" >[onUserJoin](https://www.tencentcloud.com/document/product/647/51013#onUserJoin)</td>
69
+
70
+ <td rowspan="1" colSpan="1" >A user joined the call.</td>
71
+ </tr>
72
+
73
+ <tr>
74
+ <td rowspan="1" colSpan="1" >[onUserLeave](https://www.tencentcloud.com/document/product/647/51013#onUserLeave)</td>
75
+
76
+ <td rowspan="1" colSpan="1" >A user left the call.</td>
77
+ </tr>
78
+
79
+ <tr>
80
+ <td rowspan="1" colSpan="1" >[onUserVideoAvailable](https://www.tencentcloud.com/document/product/647/51013#onUserVideoAvailable)</td>
81
+
82
+ <td rowspan="1" colSpan="1" >Whether a user had a video stream.</td>
83
+ </tr>
84
+
85
+ <tr>
86
+ <td rowspan="1" colSpan="1" >[onUserAudioAvailable](https://www.tencentcloud.com/document/product/647/51013#onUserAudioAvailable)</td>
87
+
88
+ <td rowspan="1" colSpan="1" >Whether a user had an audio stream.</td>
89
+ </tr>
90
+
91
+ <tr>
92
+ <td rowspan="1" colSpan="1" >[onUserVoiceVolumeChanged](https://www.tencentcloud.com/document/product/647/51013#onUserVoiceVolumeChanged)</td>
93
+
94
+ <td rowspan="1" colSpan="1" >The volume levels of all users.</td>
95
+ </tr>
96
+
97
+ <tr>
98
+ <td rowspan="1" colSpan="1" >[onUserNetworkQualityChanged](https://www.tencentcloud.com/document/product/647/51013#onUserNetworkQualityChanged)</td>
99
+
100
+ <td rowspan="1" colSpan="1" >The network quality of all users.</td>
101
+ </tr>
102
+
103
+ <tr>
104
+ <td rowspan="1" colSpan="1" >[onKickedOffline](https://www.tencentcloud.com/document/product/647/51013#onKickedOffline)</td>
105
+
106
+ <td rowspan="1" colSpan="1" >The current user was kicked offline.</td>
107
+ </tr>
108
+
109
+ <tr>
110
+ <td rowspan="1" colSpan="1" >[onUserSigExpired](https://www.tencentcloud.com/document/product/647/51013#onUserSigExpired)</td>
111
+
112
+ <td rowspan="1" colSpan="1" >The user sig is expired.</td>
113
+ </tr>
114
+ </table>
115
+
116
+
117
+ ## Details
118
+
119
+ ### onError
120
+
121
+ An error occurred.
122
+
123
+ > **Note:**
124
+ >
125
+
126
+ > This callback indicates that the SDK encountered an unrecoverable error. Such errors must be listened for, and UI reminders should be sent to users if necessary.
127
+ >
128
+
129
+ ``` objc
130
+ - (void)onError:(int)code message:(NSString * _Nullable)message;
131
+ ```
132
+
133
+ The parameters are described below:
134
+ <table>
135
+ <tr>
136
+ <td rowspan="1" colSpan="1" >Parameter</td>
137
+
138
+ <td rowspan="1" colSpan="1" >Type</td>
139
+
140
+ <td rowspan="1" colSpan="1" >Description</td>
141
+ </tr>
142
+
143
+ <tr>
144
+ <td rowspan="1" colSpan="1" >code</td>
145
+
146
+ <td rowspan="1" colSpan="1" >int</td>
147
+
148
+ <td rowspan="1" colSpan="1" >The error code.</td>
149
+ </tr>
150
+
151
+ <tr>
152
+ <td rowspan="1" colSpan="1" >message</td>
153
+
154
+ <td rowspan="1" colSpan="1" >NSString</td>
155
+
156
+ <td rowspan="1" colSpan="1" >The error message.</td>
157
+ </tr>
158
+ </table>
159
+
160
+
161
+ ### onCallReceived
162
+
163
+ A call invitation was received. This callback is received by an invitee. You can listen for this event to determine whether to display the incoming call view.
164
+ ``` objc
165
+ - (void)onCallReceived:(NSString *)callId callerId:(NSString *)callerId calleeIdList:(NSArray<NSString *> *)calleeIdList mediaType:(TUICallMediaType)mediaType info:(TUICallObserverExtraInfo *)info;
166
+ ```
167
+
168
+ The parameters are described below:
169
+ <table>
170
+ <tr>
171
+ <td rowspan="1" colSpan="1" >Parameter</td>
172
+
173
+ <td rowspan="1" colSpan="1" >Type</td>
174
+
175
+ <td rowspan="1" colSpan="1" >Description</td>
176
+ </tr>
177
+
178
+ <tr>
179
+ <td rowspan="1" colSpan="1" >callId</td>
180
+
181
+ <td rowspan="1" colSpan="1" >NSString</td>
182
+
183
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
184
+ </tr>
185
+
186
+ <tr>
187
+ <td rowspan="1" colSpan="1" >callerId</td>
188
+
189
+ <td rowspan="1" colSpan="1" >NSString</td>
190
+
191
+ <td rowspan="1" colSpan="1" >Caller ID </td>
192
+ </tr>
193
+
194
+ <tr>
195
+ <td rowspan="1" colSpan="1" >calleeIdList</td>
196
+
197
+ <td rowspan="1" colSpan="1" >NSArray</td>
198
+
199
+ <td rowspan="1" colSpan="1" >Callee ID List</td>
200
+ </tr>
201
+
202
+ <tr>
203
+ <td rowspan="1" colSpan="1" >mediaType</td>
204
+
205
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
206
+
207
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
208
+ </tr>
209
+
210
+ <tr>
211
+ <td rowspan="1" colSpan="1" >info</td>
212
+
213
+ <td rowspan="1" colSpan="1" >[TUICallObserverExtraInfo](https://www.tencentcloud.com/document/product/647/54902#ObserverExtraInfo)</td>
214
+
215
+ <td rowspan="1" colSpan="1" >Extended information</td>
216
+ </tr>
217
+ </table>
218
+
219
+
220
+ ### onCallBegin
221
+
222
+ The call was connected. This callback is received by both the inviter and invitees. You can listen for this event to determine whether to start on-cloud recording, content moderation, or other tasks.
223
+ ``` swift
224
+ - (void)onCallBegin:(NSString *)callId mediaType:(TUICallMediaType)mediaType info:(TUICallObserverExtraInfo *)info;
225
+ ```
226
+
227
+ The parameters are described below:
228
+ <table>
229
+ <tr>
230
+ <td rowspan="1" colSpan="1" >Parameter</td>
231
+
232
+ <td rowspan="1" colSpan="1" >Type</td>
233
+
234
+ <td rowspan="1" colSpan="1" >Description</td>
235
+ </tr>
236
+
237
+ <tr>
238
+ <td rowspan="1" colSpan="1" >callId</td>
239
+
240
+ <td rowspan="1" colSpan="1" >NSString</td>
241
+
242
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
243
+ </tr>
244
+
245
+ <tr>
246
+ <td rowspan="1" colSpan="1" >mediaType</td>
247
+
248
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
249
+
250
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
251
+ </tr>
252
+
253
+ <tr>
254
+ <td rowspan="1" colSpan="1" >info</td>
255
+
256
+ <td rowspan="1" colSpan="1" >[TUICallObserverExtraInfo](https://www.tencentcloud.com/document/product/647/54902#ObserverExtraInfo)</td>
257
+
258
+ <td rowspan="1" colSpan="1" >Extended information</td>
259
+ </tr>
260
+ </table>
261
+
262
+
263
+ ### onCallEnd
264
+
265
+ The call ended. This callback is received by both the inviter and invitees. You can listen for this event to determine when to display call information such as call duration and call type, or stop on-cloud recording.
266
+ ``` swift
267
+ - (void)onCallEnd:(NSString *)callId mediaType:(TUICallMediaType)mediaType reason:(TUICallEndReason)reason userId:(NSString *)userId totalTime:(float)totalTime info:(TUICallObserverExtraInfo *)info;
268
+ ```
269
+
270
+ The parameters are described below:
271
+ <table>
272
+ <tr>
273
+ <td rowspan="1" colSpan="1" >Parameter</td>
274
+
275
+ <td rowspan="1" colSpan="1" >Type</td>
276
+
277
+ <td rowspan="1" colSpan="1" >Description</td>
278
+ </tr>
279
+
280
+ <tr>
281
+ <td rowspan="1" colSpan="1" >callId</td>
282
+
283
+ <td rowspan="1" colSpan="1" >NSString</td>
284
+
285
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
286
+ </tr>
287
+
288
+ <tr>
289
+ <td rowspan="1" colSpan="1" >mediaType</td>
290
+
291
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
292
+
293
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
294
+ </tr>
295
+
296
+ <tr>
297
+ <td rowspan="1" colSpan="1" >reason</td>
298
+
299
+ <td rowspan="1" colSpan="1" >[TUICallEndReason](https://www.tencentcloud.com/document/product/647/54902#EndReason)</td>
300
+
301
+ <td rowspan="1" colSpan="1" >Call end reason</td>
302
+ </tr>
303
+
304
+ <tr>
305
+ <td rowspan="1" colSpan="1" >userId</td>
306
+
307
+ <td rowspan="1" colSpan="1" >NSString</td>
308
+
309
+ <td rowspan="1" colSpan="1" >​​Ended by user ID</td>
310
+ </tr>
311
+
312
+ <tr>
313
+ <td rowspan="1" colSpan="1" >totalTime</td>
314
+
315
+ <td rowspan="1" colSpan="1" >float</td>
316
+
317
+ <td rowspan="1" colSpan="1" >The call duration.</td>
318
+ </tr>
319
+
320
+ <tr>
321
+ <td rowspan="1" colSpan="1" >info</td>
322
+
323
+ <td rowspan="1" colSpan="1" >[TUICallObserverExtraInfo](https://www.tencentcloud.com/document/product/647/54902#ObserverExtraInfo)</td>
324
+
325
+ <td rowspan="1" colSpan="1" >Extended information</td>
326
+ </tr>
327
+ </table>
328
+
329
+
330
+ > **Note:**
331
+ >
332
+
333
+ > Client-side callbacks are often lost when errors occur, for example, when the process is closed. If you need to measure the duration of a call for billing or other purposes, we recommend you use the RESTful API.
334
+ >
335
+
336
+
337
+ ### onCallNotConnected
338
+
339
+ This indicates that the call was canceled by the caller, timed out by the callee, rejected by the callee, or the callee was busy. There are multiple scenarios involved. You can listen to this event to achieve UI logic such as missed calls and resetting UI status.
340
+ - Call cancellation by the caller: The caller receives the callback (userId is himself); the callee receives the callback (userId is the ID of the caller)
341
+
342
+ - Callee timeout: the caller will simultaneously receive the [onUserNoResponse](https://www.tencentcloud.com/document/product/647/54902#onUserNoResponse) and onCallNotConnected callbacks (userId is his own ID); the callee receives the onCallNotConnected callback (userId is his own ID)
343
+
344
+ - Callee rejection: The caller will simultaneously receive the [onUserReject](https://www.tencentcloud.com/document/product/647/54902#onUserReject) and onCallNotConnected callbacks (userId is his own ID); the callee receives the onCallNotConnected callback (userId is his own ID)
345
+
346
+ - Callee busy: The caller will simultaneously receive the [onUserLineBusy](https://www.tencentcloud.com/document/product/647/54902#onUserLineBusy) and onCallNotConnected callbacks (userId is his own ID);
347
+
348
+ - Abnormal interruption: The callee failed to receive the call ,he receives this callback (userId is his own ID).
349
+
350
+ ``` objc
351
+ - (void)onCallNotConnected:(NSString *)callId mediaType:(TUICallMediaType)mediaType reason:(TUICallEndReason)reaso userId:(NSString *)userId info:(TUICallObserverExtraInfo *)info
352
+ ```
353
+
354
+ The parameters are described below:
355
+
356
+ <table>
357
+ <tr>
358
+ <td rowspan="1" colSpan="1" >Parameter</td>
359
+
360
+ <td rowspan="1" colSpan="1" >Type</td>
361
+
362
+ <td rowspan="1" colSpan="1" >Description</td>
363
+ </tr>
364
+
365
+ <tr>
366
+ <td rowspan="1" colSpan="1" >callId</td>
367
+
368
+ <td rowspan="1" colSpan="1" >NSString</td>
369
+
370
+ <td rowspan="1" colSpan="1" >Unique ID of this call</td>
371
+ </tr>
372
+
373
+ <tr>
374
+ <td rowspan="1" colSpan="1" >mediaType</td>
375
+
376
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
377
+
378
+ <td rowspan="1" colSpan="1" >The call type, which can be video or audio.</td>
379
+ </tr>
380
+
381
+ <tr>
382
+ <td rowspan="1" colSpan="1" >reason</td>
383
+
384
+ <td rowspan="1" colSpan="1" >[TUICallEndReason](https://www.tencentcloud.com/document/product/647/54902#TUICallEndReason)</td>
385
+
386
+ <td rowspan="1" colSpan="1" >Call not connected reason</td>
387
+ </tr>
388
+
389
+ <tr>
390
+ <td rowspan="1" colSpan="1" >userId</td>
391
+
392
+ <td rowspan="1" colSpan="1" >NSString</td>
393
+
394
+ <td rowspan="1" colSpan="1" >​​Not connected by user ID</td>
395
+ </tr>
396
+
397
+ <tr>
398
+ <td rowspan="1" colSpan="1" >info</td>
399
+
400
+ <td rowspan="1" colSpan="1" >[TUICallObserverExtraInfo](https://www.tencentcloud.com/document/product/647/54902#CallObserverExtraInfo)</td>
401
+
402
+ <td rowspan="1" colSpan="1" >Extended information</td>
403
+ </tr>
404
+ </table>
405
+
406
+
407
+ ### onUserReject
408
+
409
+ The call was rejected. In a one-to-one call, only the inviter will receive this callback. In a group call, all invitees will receive this callback.
410
+ ``` swift
411
+ - (void)onUserReject:(NSString *)userId;
412
+ ```
413
+
414
+ The parameters are described below:
415
+ <table>
416
+ <tr>
417
+ <td rowspan="1" colSpan="1" >Parameter</td>
418
+
419
+ <td rowspan="1" colSpan="1" >Type</td>
420
+
421
+ <td rowspan="1" colSpan="1" >Description</td>
422
+ </tr>
423
+
424
+ <tr>
425
+ <td rowspan="1" colSpan="1" >userId</td>
426
+
427
+ <td rowspan="1" colSpan="1" >NSString</td>
428
+
429
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who rejected the call.</td>
430
+ </tr>
431
+ </table>
432
+
433
+
434
+ ### onUserNoResponse
435
+
436
+ A user did not respond.
437
+ ``` swift
438
+ - (void)onUserNoResponse:(NSString *)userId;
439
+ ```
440
+
441
+ The parameters are described below:
442
+ <table>
443
+ <tr>
444
+ <td rowspan="1" colSpan="1" >Parameter</td>
445
+
446
+ <td rowspan="1" colSpan="1" >Type</td>
447
+
448
+ <td rowspan="1" colSpan="1" >Description</td>
449
+ </tr>
450
+
451
+ <tr>
452
+ <td rowspan="1" colSpan="1" >userId</td>
453
+
454
+ <td rowspan="1" colSpan="1" >NSString</td>
455
+
456
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who did not answer.</td>
457
+ </tr>
458
+ </table>
459
+
460
+
461
+ ### onUserLineBusy
462
+
463
+ A user is busy.
464
+ ``` swift
465
+ - (void)onUserLineBusy:(NSString *)userId;
466
+ ```
467
+
468
+ The parameters are described below:
469
+ <table>
470
+ <tr>
471
+ <td rowspan="1" colSpan="1" >Parameter</td>
472
+
473
+ <td rowspan="1" colSpan="1" >Type</td>
474
+
475
+ <td rowspan="1" colSpan="1" >Description</td>
476
+ </tr>
477
+
478
+ <tr>
479
+ <td rowspan="1" colSpan="1" >userId</td>
480
+
481
+ <td rowspan="1" colSpan="1" >NSString</td>
482
+
483
+ <td rowspan="1" colSpan="1" >The user ID of the invitee who is busy.</td>
484
+ </tr>
485
+ </table>
486
+
487
+
488
+ ### onUserInviting
489
+
490
+ A user is invited to join a call.
491
+ ``` objectivec
492
+ - (void)onUserInviting:(NSString *)userId;
493
+ ```
494
+
495
+ The parameters are described below:
496
+ <table>
497
+ <tr>
498
+ <td rowspan="1" colSpan="1" >Parameter</td>
499
+
500
+ <td rowspan="1" colSpan="1" >Type</td>
501
+
502
+ <td rowspan="1" colSpan="1" >Description</td>
503
+ </tr>
504
+
505
+ <tr>
506
+ <td rowspan="1" colSpan="1" >userId</td>
507
+
508
+ <td rowspan="1" colSpan="1" >NSString</td>
509
+
510
+ <td rowspan="1" colSpan="1" >The user ID of the invite.</td>
511
+ </tr>
512
+ </table>
513
+
514
+
515
+ ### onUserJoin
516
+
517
+ A user joined the call.
518
+ ``` swift
519
+ - (void)onUserJoin:(NSString *)userId;
520
+ ```
521
+
522
+ The parameters are described below:
523
+ <table>
524
+ <tr>
525
+ <td rowspan="1" colSpan="1" >Parameter</td>
526
+
527
+ <td rowspan="1" colSpan="1" >Type</td>
528
+
529
+ <td rowspan="1" colSpan="1" >Description</td>
530
+ </tr>
531
+
532
+ <tr>
533
+ <td rowspan="1" colSpan="1" >userId</td>
534
+
535
+ <td rowspan="1" colSpan="1" >NSString</td>
536
+
537
+ <td rowspan="1" colSpan="1" >The ID of the user who joined the call.</td>
538
+ </tr>
539
+ </table>
540
+
541
+
542
+ ### onUserLeave
543
+
544
+ A user left the call.
545
+ ``` swift
546
+ - (void)onUserLeave:(NSString *)userId;
547
+ ```
548
+
549
+ The parameters are described below:
550
+ <table>
551
+ <tr>
552
+ <td rowspan="1" colSpan="1" >Parameter</td>
553
+
554
+ <td rowspan="1" colSpan="1" >Type</td>
555
+
556
+ <td rowspan="1" colSpan="1" >Description</td>
557
+ </tr>
558
+
559
+ <tr>
560
+ <td rowspan="1" colSpan="1" >userId</td>
561
+
562
+ <td rowspan="1" colSpan="1" >NSString</td>
563
+
564
+ <td rowspan="1" colSpan="1" >The ID of the user who left the call.</td>
565
+ </tr>
566
+ </table>
567
+
568
+
569
+ ### onUserVideoAvailable
570
+
571
+ Whether a user is sending video.
572
+ ``` swift
573
+ - (void)onUserVideoAvailable:(NSString *)userId isVideoAvailable:(BOOL)isVideoAvailable;
574
+ ```
575
+
576
+ The parameters are described below:
577
+ <table>
578
+ <tr>
579
+ <td rowspan="1" colSpan="1" >Parameter</td>
580
+
581
+ <td rowspan="1" colSpan="1" >Type</td>
582
+
583
+ <td rowspan="1" colSpan="1" >Description</td>
584
+ </tr>
585
+
586
+ <tr>
587
+ <td rowspan="1" colSpan="1" >userId</td>
588
+
589
+ <td rowspan="1" colSpan="1" >NSString</td>
590
+
591
+ <td rowspan="1" colSpan="1" >The user ID.</td>
592
+ </tr>
593
+
594
+ <tr>
595
+ <td rowspan="1" colSpan="1" >isVideoAvailable</td>
596
+
597
+ <td rowspan="1" colSpan="1" >BOOL</td>
598
+
599
+ <td rowspan="1" colSpan="1" >Whether the user has video.</td>
600
+ </tr>
601
+ </table>
602
+
603
+
604
+ ### onUserAudioAvailable
605
+
606
+ Whether a user is sending audio.
607
+ ``` swift
608
+ - (void)onUserAudioAvailable:(NSString *)userId isAudioAvailable:(BOOL)isAudioAvailable;
609
+ ```
610
+
611
+ The parameters are described below:
612
+ <table>
613
+ <tr>
614
+ <td rowspan="1" colSpan="1" >Parameter</td>
615
+
616
+ <td rowspan="1" colSpan="1" >Type</td>
617
+
618
+ <td rowspan="1" colSpan="1" >Description</td>
619
+ </tr>
620
+
621
+ <tr>
622
+ <td rowspan="1" colSpan="1" >userId</td>
623
+
624
+ <td rowspan="1" colSpan="1" >NSString</td>
625
+
626
+ <td rowspan="1" colSpan="1" >The user ID.</td>
627
+ </tr>
628
+
629
+ <tr>
630
+ <td rowspan="1" colSpan="1" >isAudioAvailable</td>
631
+
632
+ <td rowspan="1" colSpan="1" >BOOL</td>
633
+
634
+ <td rowspan="1" colSpan="1" >Whether the user has audio.</td>
635
+ </tr>
636
+ </table>
637
+
638
+
639
+ ### onUserVoiceVolumeChanged
640
+
641
+ The volumes of all users.
642
+ ``` swift
643
+ - (void)onUserVoiceVolumeChanged:(NSDictionary <NSString *, NSNumber *> *)volumeMap;
644
+ ```
645
+
646
+ The parameters are described below:
647
+ <table>
648
+ <tr>
649
+ <td rowspan="1" colSpan="1" >Parameter</td>
650
+
651
+ <td rowspan="1" colSpan="1" >Type</td>
652
+
653
+ <td rowspan="1" colSpan="1" >Description</td>
654
+ </tr>
655
+
656
+ <tr>
657
+ <td rowspan="1" colSpan="1" >volumeMap</td>
658
+
659
+ <td rowspan="1" colSpan="1" >NSDictionary</td>
660
+
661
+ <td rowspan="1" colSpan="1" >The volume table, which includes the volume of each user (`userId`). Value range: 0-100.</td>
662
+ </tr>
663
+ </table>
664
+
665
+
666
+ ### onUserNetworkQualityChanged
667
+
668
+ The network quality of all users.
669
+ ``` swift
670
+ - (void)onUserNetworkQualityChanged:(NSArray<TUINetworkQualityInfo *> *)networkQualityList;
671
+ ```
672
+
673
+ The parameters are described below:
674
+ <table>
675
+ <tr>
676
+ <td rowspan="1" colSpan="1" >Parameter</td>
677
+
678
+ <td rowspan="1" colSpan="1" >Type</td>
679
+
680
+ <td rowspan="1" colSpan="1" >Description</td>
681
+ </tr>
682
+
683
+ <tr>
684
+ <td rowspan="1" colSpan="1" >networkQualityList</td>
685
+
686
+ <td rowspan="1" colSpan="1" >NSArray</td>
687
+
688
+ <td rowspan="1" colSpan="1" >The current network conditions for all users (`userId`).</td>
689
+ </tr>
690
+ </table>
691
+
692
+
693
+ ### onKickedOffline
694
+
695
+ The current user was kicked offline:At this time, you can prompt the user with a UI message and then invoke `init` again.
696
+ ``` objectivec
697
+ - (void)onKickedOffline;
698
+ ```
699
+
700
+ ### onUserSigExpired
701
+
702
+ The user sig is expired:At this time, you need to generate a new `userSig`, and then invoke `init` again.
703
+ ``` objectivec
704
+ - (void)onUserSigExpired;
705
+ ```
706
+
707
+ ## Deprecated Interface
708
+
709
+ ### onCallCancelled
710
+
711
+ The call was canceled by the inviter or timed out. This callback is received by an invitee. You can listen for this event to determine whether to show a missed call message.
712
+
713
+ This indicates that the call was canceled by the caller, timed out by the callee, rejected by the callee, or the callee was busy. There are multiple scenarios involved. You can listen to this event to achieve UI logic such as missed calls and resetting UI status.
714
+ - Call cancellation by the caller: The caller receives the callback (userId is himself); the callee receives the callback (userId is the ID of the caller)
715
+
716
+ - Callee timeout: the caller will simultaneously receive the [onUserNoResponse](https://www.tencentcloud.com/document/product/647/51013#onUserNoResponse) and onCallCancelled callbacks (userId is his own ID); the callee receives the onCallCancelled callback (userId is his own ID)
717
+
718
+ - Callee rejection: The caller will simultaneously receive the [onUserReject](https://www.tencentcloud.com/document/product/647/51013#onUserReject) and onCallCancelled callbacks (userId is his own ID); the callee receives the onCallCancelled callback (userId is his own ID)
719
+
720
+ - Callee busy: The caller will simultaneously receive the [onUserLineBusy](https://www.tencentcloud.com/document/product/647/51013#onUserLineBusy) and onCallCancelled callbacks (userId is his own ID);
721
+
722
+ - Abnormal interruption: The callee failed to receive the call ,he receives this callback (userId is his own ID).
723
+
724
+ ``` objc
725
+ - (void)onCallCancelled:(NSString *)callerId;
726
+ ```
727
+
728
+ The parameters are described below:
729
+
730
+ <table>
731
+ <tr>
732
+ <td rowspan="1" colSpan="1" >Parameter</td>
733
+
734
+ <td rowspan="1" colSpan="1" >Type</td>
735
+
736
+ <td rowspan="1" colSpan="1" >Description</td>
737
+ </tr>
738
+
739
+ <tr>
740
+ <td rowspan="1" colSpan="1" >callerId</td>
741
+
742
+ <td rowspan="1" colSpan="1" >NSString</td>
743
+
744
+ <td rowspan="1" colSpan="1" >The user ID of the inviter.</td>
745
+ </tr>
746
+ </table>
747
+
748
+
749
+ ### onCallMediaTypeChanged
750
+
751
+ The call type changed.
752
+ ``` swift
753
+ - (void)onCallMediaTypeChanged:(TUICallMediaType)oldCallMediaType newCallMediaType:(TUICallMediaType)newCallMediaType;
754
+ ```
755
+
756
+ The parameters are described below:
757
+ <table>
758
+ <tr>
759
+ <td rowspan="1" colSpan="1" >Parameter</td>
760
+
761
+ <td rowspan="1" colSpan="1" >Type</td>
762
+
763
+ <td rowspan="1" colSpan="1" >Description</td>
764
+ </tr>
765
+
766
+ <tr>
767
+ <td rowspan="1" colSpan="1" >oldCallMediaType</td>
768
+
769
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
770
+
771
+ <td rowspan="1" colSpan="1" >The call type before the change.</td>
772
+ </tr>
773
+
774
+ <tr>
775
+ <td rowspan="1" colSpan="1" >newCallMediaType</td>
776
+
777
+ <td rowspan="1" colSpan="1" >[TUICallMediaType](https://www.tencentcloud.com/document/product/647/54902#MediaType)</td>
778
+
779
+ <td rowspan="1" colSpan="1" >The call type after the change.</td>
780
+ </tr>
781
+ </table>