@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.
- package/@tencent/aegis-node-sdk/CHANGELOG.md +8 -0
- package/@tencent/aegis-node-sdk/LICENSE +21 -0
- package/@tencent/aegis-node-sdk/README.md +562 -0
- package/@tencent/aegis-node-sdk/lib/aegis.min.js +1 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +14 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +1 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +9 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +2 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +85 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +3 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +9 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +3 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +9 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +62 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +11 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +4 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +130 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +34 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +2 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +18 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +8 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +8 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +2 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +4 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +10 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +3 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +3 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +34 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +12 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +14 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +2 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +12 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +3 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +33 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts +0 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +2 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +18 -0
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +60 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +15 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +5 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +6 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +18 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +12 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +10 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +20 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +27 -0
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +2 -0
- package/@tencent/aegis-node-sdk/package.json +19 -0
- package/@tencent/polaris/README.md +407 -0
- package/@tencent/polaris/dist/consumer/health.d.ts +126 -0
- package/@tencent/polaris/dist/consumer/health.js +283 -0
- package/@tencent/polaris/dist/consumer/health.js.map +1 -0
- package/@tencent/polaris/dist/consumer/index.d.ts +120 -0
- package/@tencent/polaris/dist/consumer/index.js +348 -0
- package/@tencent/polaris/dist/consumer/index.js.map +1 -0
- package/@tencent/polaris/dist/consumer/monitor.d.ts +145 -0
- package/@tencent/polaris/dist/consumer/monitor.js +343 -0
- package/@tencent/polaris/dist/consumer/monitor.js.map +1 -0
- package/@tencent/polaris/dist/consumer/selector.d.ts +73 -0
- package/@tencent/polaris/dist/consumer/selector.js +316 -0
- package/@tencent/polaris/dist/consumer/selector.js.map +1 -0
- package/@tencent/polaris/dist/errors.d.ts +373 -0
- package/@tencent/polaris/dist/errors.js +154 -0
- package/@tencent/polaris/dist/errors.js.map +1 -0
- package/@tencent/polaris/dist/global.d.ts +16 -0
- package/@tencent/polaris/dist/global.js +18 -0
- package/@tencent/polaris/dist/global.js.map +1 -0
- package/@tencent/polaris/dist/index.d.ts +62 -0
- package/@tencent/polaris/dist/index.js +145 -0
- package/@tencent/polaris/dist/index.js.map +1 -0
- package/@tencent/polaris/dist/instance.d.ts +109 -0
- package/@tencent/polaris/dist/instance.js +38 -0
- package/@tencent/polaris/dist/instance.js.map +1 -0
- package/@tencent/polaris/dist/limiter/bucket.d.ts +51 -0
- package/@tencent/polaris/dist/limiter/bucket.js +152 -0
- package/@tencent/polaris/dist/limiter/bucket.js.map +1 -0
- package/@tencent/polaris/dist/limiter/index.d.ts +73 -0
- package/@tencent/polaris/dist/limiter/index.js +149 -0
- package/@tencent/polaris/dist/limiter/index.js.map +1 -0
- package/@tencent/polaris/dist/limiter/ratelimit.d.ts +27 -0
- package/@tencent/polaris/dist/limiter/ratelimit.js +134 -0
- package/@tencent/polaris/dist/limiter/ratelimit.js.map +1 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +17 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js +15 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +1 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +59 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js +397 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +1 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +3 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js +19 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +1 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +17 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js +52 -0
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +1 -0
- package/@tencent/polaris/dist/location.d.ts +48 -0
- package/@tencent/polaris/dist/location.js +67 -0
- package/@tencent/polaris/dist/location.js.map +1 -0
- package/@tencent/polaris/dist/logging.d.ts +106 -0
- package/@tencent/polaris/dist/logging.js +130 -0
- package/@tencent/polaris/dist/logging.js.map +1 -0
- package/@tencent/polaris/dist/metadata.d.ts +78 -0
- package/@tencent/polaris/dist/metadata.js +119 -0
- package/@tencent/polaris/dist/metadata.js.map +1 -0
- package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +47 -0
- package/@tencent/polaris/dist/plugins/breaker/polaris.js +162 -0
- package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/base.d.ts +24 -0
- package/@tencent/polaris/dist/plugins/lb/base.js +32 -0
- package/@tencent/polaris/dist/plugins/lb/base.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/edf.d.ts +24 -0
- package/@tencent/polaris/dist/plugins/lb/edf.js +77 -0
- package/@tencent/polaris/dist/plugins/lb/edf.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +24 -0
- package/@tencent/polaris/dist/plugins/lb/hashring.js +53 -0
- package/@tencent/polaris/dist/plugins/lb/hashring.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +31 -0
- package/@tencent/polaris/dist/plugins/lb/sticky.js +88 -0
- package/@tencent/polaris/dist/plugins/lb/sticky.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +25 -0
- package/@tencent/polaris/dist/plugins/lb/swrr.js +72 -0
- package/@tencent/polaris/dist/plugins/lb/swrr.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/wr.d.ts +17 -0
- package/@tencent/polaris/dist/plugins/lb/wr.js +50 -0
- package/@tencent/polaris/dist/plugins/lb/wr.js.map +1 -0
- package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +19 -0
- package/@tencent/polaris/dist/plugins/lb/wrr.js +81 -0
- package/@tencent/polaris/dist/plugins/lb/wrr.js.map +1 -0
- package/@tencent/polaris/dist/plugins/logging/console.d.ts +10 -0
- package/@tencent/polaris/dist/plugins/logging/console.js +38 -0
- package/@tencent/polaris/dist/plugins/logging/console.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +32 -0
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js +88 -0
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +124 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +398 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +27 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +287 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +15 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +43 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +28 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +249 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +19 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +222 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +26 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +99 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +60 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +259 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +24 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +18 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +12 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +39 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +115 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +24 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +22 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +28 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +80 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +18 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +65 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +66 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +95 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +1568 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +36 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +51 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +18 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +67 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +82 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +11 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +46 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +16 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +10 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +1102 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +29 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +77 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +12 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +28 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +395 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +13 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +116 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +67 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +67 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +1 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +99 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +217 -0
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +1 -0
- package/@tencent/polaris/dist/plugins/registry/memory.d.ts +10 -0
- package/@tencent/polaris/dist/plugins/registry/memory.js +50 -0
- package/@tencent/polaris/dist/plugins/registry/memory.js.map +1 -0
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +51 -0
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +145 -0
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +1 -0
- package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +11 -0
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js +174 -0
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +1 -0
- package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +25 -0
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js +36 -0
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +1 -0
- package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +10 -0
- package/@tencent/polaris/dist/plugins/router/trpc/env.js +34 -0
- package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +1 -0
- package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +56 -0
- package/@tencent/polaris/dist/plugins/router/trpc/set.js +106 -0
- package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +1 -0
- package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +31 -0
- package/@tencent/polaris/dist/plugins/shaping/unirate.js +124 -0
- package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +1 -0
- package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +61 -0
- package/@tencent/polaris/dist/plugins/shaping/warmup.js +171 -0
- package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +1 -0
- package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +23 -0
- package/@tencent/polaris/dist/plugins/weight/polaris.js +159 -0
- package/@tencent/polaris/dist/plugins/weight/polaris.js.map +1 -0
- package/@tencent/polaris/dist/plugins.d.ts +619 -0
- package/@tencent/polaris/dist/plugins.js +91 -0
- package/@tencent/polaris/dist/plugins.js.map +1 -0
- package/@tencent/polaris/dist/polaris.d.ts +33 -0
- package/@tencent/polaris/dist/polaris.js +59 -0
- package/@tencent/polaris/dist/polaris.js.map +1 -0
- package/@tencent/polaris/dist/provider/index.d.ts +102 -0
- package/@tencent/polaris/dist/provider/index.js +168 -0
- package/@tencent/polaris/dist/provider/index.js.map +1 -0
- package/@tencent/polaris/dist/registry.d.ts +174 -0
- package/@tencent/polaris/dist/registry.js +660 -0
- package/@tencent/polaris/dist/registry.js.map +1 -0
- package/@tencent/polaris/dist/rules.d.ts +163 -0
- package/@tencent/polaris/dist/rules.js +24 -0
- package/@tencent/polaris/dist/rules.js.map +1 -0
- package/@tencent/polaris/dist/scripts/postinstall.d.ts +1 -0
- package/@tencent/polaris/dist/scripts/postinstall.js +71 -0
- package/@tencent/polaris/dist/scripts/postinstall.js.map +1 -0
- package/@tencent/polaris/dist/service.d.ts +18 -0
- package/@tencent/polaris/dist/service.js +3 -0
- package/@tencent/polaris/dist/service.js.map +1 -0
- package/@tencent/polaris/dist/skeleton.d.ts +87 -0
- package/@tencent/polaris/dist/skeleton.js +282 -0
- package/@tencent/polaris/dist/skeleton.js.map +1 -0
- package/@tencent/polaris/dist/utils.d.ts +36 -0
- package/@tencent/polaris/dist/utils.js +74 -0
- package/@tencent/polaris/dist/utils.js.map +1 -0
- package/@tencent/polaris/dist/weak.d.ts +11 -0
- package/@tencent/polaris/dist/weak.js +44 -0
- package/@tencent/polaris/dist/weak.js.map +1 -0
- package/@tencent/polaris/package.json +114 -0
- package/README.md +61 -0
- package/cursor-setting.png +0 -0
- package/index.js +16 -0
- package/index.js.map +1 -0
- package/mcp-server-prompt.png +0 -0
- package/mcp.json +8 -0
- package/package.json +49 -0
- package/resource/doc/tuicallkit/android/.gitkeep +0 -0
- package/resource/doc/tuicallkit/android/api_TUICallKit.md +610 -0
- package/resource/doc/tuicallkit/android/api_TUICallObserver.md +784 -0
- package/resource/doc/tuicallkit/android/how_to_integrated_android_callkit.md +286 -0
- package/resource/doc/tuicallkit/faq/faq.md +127 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallDefine.md +938 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallKit.md +469 -0
- package/resource/doc/tuicallkit/flutter/api_TUICallObserver.md +897 -0
- package/resource/doc/tuicallkit/flutter/how_to_integrated_flutter_callkit.md +226 -0
- package/resource/doc/tuicallkit/flutter/how_to_run_flutter_callkit_demo.md +101 -0
- package/resource/doc/tuicallkit/iOS/api_TUICallKit.md +398 -0
- package/resource/doc/tuicallkit/iOS/api_TUICallObserver.md +781 -0
- package/resource/doc/tuicallkit/iOS/how_to_integrated_iOS_callkit.md +268 -0
- package/resource/doc/tuicallkit/iOS/how_to_run_iOS_callkit_demo.md +98 -0
- package/resource/doc/tuicallkit/react/.gitkeep +0 -0
- package/resource/doc/tuicallkit/react/api_TUICallKit.md +354 -0
- package/resource/doc/tuicallkit/react/how_to_integrated_react_callkit.md +166 -0
- package/resource/doc/tuicallkit/react/how_to_run_react_callkit_demo.md +61 -0
- package/resource/doc/tuicallkit/vue/.gitkeep +0 -0
- package/resource/doc/tuicallkit/vue/api_TUICallKit.md +354 -0
- package/resource/doc/tuicallkit/vue/how_to_integrated_vue_callkit.md +187 -0
- package/resource/doc/tuicallkit/vue/how_to_run_vue_callkit_demo.md +61 -0
- package/server.js +132 -0
- package/server.js.map +1 -0
- package/streamableHttp.js +74 -0
- package/streamableHttp.js.map +1 -0
|
@@ -0,0 +1,286 @@
|
|
|
1
|
+
This article will guide you through the quick integration of the TUICallKit component. You will complete several key steps within 10 minutes, ultimately obtaining a video call feature with a complete UI interface.
|
|
2
|
+
<table>
|
|
3
|
+
<tr>
|
|
4
|
+
<td rowspan="1" colSpan="1" >1v1 Video Call</td>
|
|
5
|
+
|
|
6
|
+
<td rowspan="1" colSpan="1" >Group call</td>
|
|
7
|
+
</tr>
|
|
8
|
+
|
|
9
|
+
<tr>
|
|
10
|
+
<td rowspan="1" colSpan="1" ></td>
|
|
11
|
+
|
|
12
|
+
<td rowspan="1" colSpan="1" ></td>
|
|
13
|
+
</tr>
|
|
14
|
+
</table>
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
## Environment Preparations
|
|
18
|
+
- Android 5.0 (SDK API level 21) or later.
|
|
19
|
+
|
|
20
|
+
- Gradle 4.2.1 or later
|
|
21
|
+
|
|
22
|
+
- Mobile phone on Android 5.0 or later.
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
## Step 1. Activate the service
|
|
26
|
+
|
|
27
|
+
Before using the Audio and Video Services provided by Tencent Cloud, you need to go to the Console and activate the service for your application. For detailed steps, refer to [Activate Service](https://write.woa.com/document/140196392040579072). Please record the `SDKAppID` and `SDKSecretKey`, they will be used for the following steps.
|
|
28
|
+
|
|
29
|
+
## Step 2. Download and import the component
|
|
30
|
+
|
|
31
|
+
Go to [GitHub](https://github.com/tencentyun/TUICalling), clone or download the code, and copy the `tuicallkit-kt` subdirectory in the `Android` directory to the directory at the same level as `app` in your current project, as shown below.
|
|
32
|
+
|
|
33
|
+

|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
## Step 3. Configure the project
|
|
37
|
+
1. Find the `settings.gradle.kts(or settings.gradle)` file in the project root directory and add the following code to import the `tuicallkit-kt` component.
|
|
38
|
+
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
【setting.gradle.kts】
|
|
44
|
+
``` java
|
|
45
|
+
include(":tuicallkit-kt")
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
【settings.gradle】
|
|
50
|
+
``` java
|
|
51
|
+
include ':tuicallkit-kt'
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
2. Find the `build.gradle.kts`(or `build.gradle`) file in the `app` directory, add the following code to its `dependencies` section. This is to declare the current app's dependency on the newly added components.
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
【build.gradle.kts】
|
|
61
|
+
``` java
|
|
62
|
+
dependencies {
|
|
63
|
+
api(project(":tuicallkit-kt"))
|
|
64
|
+
}
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
|
|
68
|
+
【build.gradle】
|
|
69
|
+
``` java
|
|
70
|
+
dependencies {
|
|
71
|
+
api project(':tuicallkit-kt')
|
|
72
|
+
}
|
|
73
|
+
```
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
> **Note:**
|
|
77
|
+
>
|
|
78
|
+
|
|
79
|
+
> The `TUICallKit` project depends on `TRTC SDK`, `Chat SDK`, `tuicallengine`, and the `tuicore` public library internally by default. To upgrade the version, modify the version in `tuicallkit-kt/build.gradle` file.
|
|
80
|
+
>
|
|
81
|
+
|
|
82
|
+
3. Since the SDK uses Java's reflection feature internally, you need to add certain classes in the SDK to the obfuscation allowlist. Therefore, you should add the following code to the `proguard-rules.pro` file in the `app` directory. After adding, click on the upper right corner "**Sync Now**" to synchronize the code.
|
|
83
|
+
|
|
84
|
+
``` java
|
|
85
|
+
-keep class com.tencent.** { *; }
|
|
86
|
+
```
|
|
87
|
+
4. In the app directory, find the `AndroidManifest.xml` file and add `tools:replace="android:allowBackup"` within the application node to override the settings inside the components, using your own settings.
|
|
88
|
+
|
|
89
|
+
``` java
|
|
90
|
+
// app/src/main/AndroidManifest.xml
|
|
91
|
+
|
|
92
|
+
<application
|
|
93
|
+
android:name=".DemoApplication"
|
|
94
|
+
android:allowBackup="false"
|
|
95
|
+
android:icon="@drawable/app_ic_launcher"
|
|
96
|
+
android:label="@string/app_name"
|
|
97
|
+
android:largeHeap="true"
|
|
98
|
+
android:theme="@style/AppTheme"
|
|
99
|
+
tools:replace="android:allowBackup">
|
|
100
|
+
```
|
|
101
|
+
5. We suggest you compile and run once. If you encounter any issues, you may try our [Github demo](https://github.com/Tencent-RTC/TUICallKit/tree/main/Android). By comparison, you can identify potential differences and resolve encountered issues. During integration and use, if any issues arise, you are welcome to provide [feedback](https://github.com/Tencent-RTC/TUICallKit/issues) to us.
|
|
102
|
+
|
|
103
|
+
|
|
104
|
+
## Step 4. Log in to the TUICallKit component
|
|
105
|
+
|
|
106
|
+
Add the following code to your project. It works by calling the relevant interfaces in TUICore to complete the login to TUI Component. This step is very important, only after successfully logging in, you can normally use the features offered by TUICallKit.
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
【Kotlin】
|
|
111
|
+
``` java
|
|
112
|
+
import com.tencent.qcloud.tuicore.TUILogin
|
|
113
|
+
import com.tencent.qcloud.tuicore.interfaces.TUICallback
|
|
114
|
+
import com.tencent.qcloud.tuikit.tuicallkit.debug.GenerateTestUserSig
|
|
115
|
+
|
|
116
|
+
class MainActivity : ComponentActivity() {
|
|
117
|
+
override fun onCreate(savedInstanceState: Bundle?) {
|
|
118
|
+
super.onCreate(savedInstanceState)
|
|
119
|
+
|
|
120
|
+
// begin
|
|
121
|
+
val userID = "denny" // Please replace with your UserId
|
|
122
|
+
val sdkAppID = 0 // Please replace with the SDKAppID obtained from the console in step 1
|
|
123
|
+
val secretKey = "****" // Please replace with the SecretKey obtained from the console in step 1
|
|
124
|
+
|
|
125
|
+
val userSig = GenerateTestUserSig.genTestUserSig(userId, sdkAppId, secretKey)
|
|
126
|
+
|
|
127
|
+
TUILogin.login(this, sdkAppId, userId, userSig, object : TUICallback() {
|
|
128
|
+
override fun onSuccess() {
|
|
129
|
+
}
|
|
130
|
+
override fun onError(errorCode: Int, errorMessage: String) {
|
|
131
|
+
}
|
|
132
|
+
})
|
|
133
|
+
// end
|
|
134
|
+
}
|
|
135
|
+
}
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
【Java】
|
|
139
|
+
``` java
|
|
140
|
+
import com.tencent.qcloud.tuicore.TUILogin;
|
|
141
|
+
import com.tencent.qcloud.tuicore.interfaces.TUICallback;
|
|
142
|
+
import com.tencent.qcloud.tuikit.tuicallkit.debug.GenerateTestUserSig;
|
|
143
|
+
|
|
144
|
+
public class MainActivity extends AppCompatActivity {
|
|
145
|
+
@Override
|
|
146
|
+
public void onCreate(Bundle savedInstanceState) {
|
|
147
|
+
super.onCreate(savedInstanceState);
|
|
148
|
+
|
|
149
|
+
//begin
|
|
150
|
+
String userID = "denny"; // Please replace with your UserId
|
|
151
|
+
int sdkAppID = 0; // Please replace with the SDKAppID obtained from the console in step 1
|
|
152
|
+
String secretKey = "****"; // Please replace with the SecretKey obtained from the console in step 1
|
|
153
|
+
|
|
154
|
+
String userSig = GenerateTestUserSig.genTestUserSig(userId, sdkAppId, secretKey);
|
|
155
|
+
|
|
156
|
+
TUILogin.login(this, sdkAppId, userId, userSig, new TUICallback() {
|
|
157
|
+
@Override
|
|
158
|
+
public void onSuccess() {
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
@Override
|
|
162
|
+
public void onError(int errorCode, String errorMessage) {
|
|
163
|
+
}
|
|
164
|
+
});
|
|
165
|
+
//end
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
```
|
|
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" >userId</td>
|
|
180
|
+
|
|
181
|
+
<td rowspan="1" colSpan="1" >String</td>
|
|
182
|
+
|
|
183
|
+
<td rowspan="1" colSpan="1" >your own User ID based on your business. It can only include letters (a-z, A-Z), digits (0-9), underscores, and hyphens.</td>
|
|
184
|
+
</tr>
|
|
185
|
+
|
|
186
|
+
<tr>
|
|
187
|
+
<td rowspan="1" colSpan="1" >sdkAppId</td>
|
|
188
|
+
|
|
189
|
+
<td rowspan="1" colSpan="1" >int</td>
|
|
190
|
+
|
|
191
|
+
<td rowspan="1" colSpan="1" >The unique identifier SDKAppID for the audio and video application created in [Tencent RTC Console](https://console.trtc.io/).</td>
|
|
192
|
+
</tr>
|
|
193
|
+
|
|
194
|
+
<tr>
|
|
195
|
+
<td rowspan="1" colSpan="1" >secretKey</td>
|
|
196
|
+
|
|
197
|
+
<td rowspan="1" colSpan="1" >String</td>
|
|
198
|
+
|
|
199
|
+
<td rowspan="1" colSpan="1" >SDKSecretKey for the audio and video application created in [Tencent RTC Console](https://console.trtc.io/).</td>
|
|
200
|
+
</tr>
|
|
201
|
+
|
|
202
|
+
<tr>
|
|
203
|
+
<td rowspan="1" colSpan="1" >userSig</td>
|
|
204
|
+
|
|
205
|
+
<td rowspan="1" colSpan="1" >String</td>
|
|
206
|
+
|
|
207
|
+
<td rowspan="1" colSpan="1" >A security signature for user login to verify identity and prevent unauthorized access to cloud services.</td>
|
|
208
|
+
</tr>
|
|
209
|
+
</table>
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
> **Note:**
|
|
213
|
+
>
|
|
214
|
+
> - **Development Environment**: During local development and debugging, use the local `GenerateTestUserSig.genTestSig` function to create a userSig. But be careful, the SDKSecretKey can be decompiled and reverse-engineered. If leaked, it could allow theft of your Tencent Cloud traffic.
|
|
215
|
+
> - **Production Environment**: If your project is going to be launched, please adopt the method of [Server-side Generation of UserSig](https://www.tencentcloud.com/document/product/647/35166).
|
|
216
|
+
|
|
217
|
+
|
|
218
|
+
## Step 5. Make your first phone call
|
|
219
|
+
|
|
220
|
+
After user login success, invoke the [calls](https://write.woa.com/document/95824745037205504) method of TUICallKit, specifying the callee's userID and the type of call, to initiate an audio/video call. The callee will receive an incoming call invitation.
|
|
221
|
+
|
|
222
|
+
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
【Kotlin】
|
|
226
|
+
``` java
|
|
227
|
+
import com.tencent.qcloud.tuikit.tuicallengine.TUICallDefine
|
|
228
|
+
import com.tencent.qcloud.tuikit.tuicallkit.TUICallKit
|
|
229
|
+
|
|
230
|
+
val list = mutableListOf<String>()
|
|
231
|
+
list.add("mike")
|
|
232
|
+
TUICallKit.createInstance(context).calls(list, TUICallDefine.MediaType.Audio, null, null)
|
|
233
|
+
```
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
【Java】
|
|
237
|
+
``` java
|
|
238
|
+
import com.tencent.qcloud.tuikit.tuicallengine.TUICallDefine;
|
|
239
|
+
import com.tencent.qcloud.tuikit.tuicallkit.TUICallKit;
|
|
240
|
+
|
|
241
|
+
List<String> list = new ArrayList<>();
|
|
242
|
+
list.add("mike")
|
|
243
|
+
TUICallKit.createInstance(context).calls(list, TUICallDefine.MediaType.Audio, null, null);
|
|
244
|
+
```
|
|
245
|
+
<table>
|
|
246
|
+
<tr>
|
|
247
|
+
<td rowspan="1" colSpan="1" >Caller initiates an audio call</td>
|
|
248
|
+
|
|
249
|
+
<td rowspan="1" colSpan="1" >Callee receives an audio call request</td>
|
|
250
|
+
</tr>
|
|
251
|
+
|
|
252
|
+
<tr>
|
|
253
|
+
<td rowspan="1" colSpan="1" ></td>
|
|
254
|
+
|
|
255
|
+
<td rowspan="1" colSpan="1" ></td>
|
|
256
|
+
</tr>
|
|
257
|
+
</table>
|
|
258
|
+
|
|
259
|
+
|
|
260
|
+
##
|
|
261
|
+
|
|
262
|
+
## Additional Features
|
|
263
|
+
- [Setting Nickname, Avatar](https://write.woa.com/document/140283519901868032)
|
|
264
|
+
|
|
265
|
+
- [Customize Interface](https://write.woa.com/document/95821305653407744)
|
|
266
|
+
|
|
267
|
+
- [Offline Push](https://write.woa.com/document/95821638488313856)
|
|
268
|
+
|
|
269
|
+
- [Group Call](https://write.woa.com/document/140196498678116352)
|
|
270
|
+
|
|
271
|
+
- [Floating Window](https://write.woa.com/document/140196506800930816)
|
|
272
|
+
|
|
273
|
+
- [Custom Ringtone](https://write.woa.com/document/140196520174002176)
|
|
274
|
+
|
|
275
|
+
- [Call Status Monitoring](https://write.woa.com/document/140196527978475520)
|
|
276
|
+
|
|
277
|
+
- [Cloud Recording](https://write.woa.com/document/95824491274473472)
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
## FAQs
|
|
281
|
+
|
|
282
|
+
If you encounter any issues during integration and use, please refer to [Frequently Asked Questions](https://write.woa.com/document/145196717502525440).
|
|
283
|
+
|
|
284
|
+
## Suggestions and Feedback
|
|
285
|
+
|
|
286
|
+
If you have any suggestions or feedback, please contact `info_rtc@tencent.com`.
|
|
@@ -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
|
+
|