@tencent-rtc/mcp 1.0.7 → 1.1.6
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/README.md +8 -4
- package/index.js +2 -0
- package/index.js.map +1 -1
- package/libs/TLSSigAPIv2.d.ts +134 -0
- package/libs/TLSSigAPIv2.js +243 -0
- package/package.json +1 -1
- package/resource/doc/chatuikit/react/chat_window_integration.md +92 -0
- package/resource/doc/chatuikit/react/components/chat.md +44 -0
- package/resource/doc/chatuikit/react/components/chatheader.md +189 -0
- package/resource/doc/chatuikit/react/components/conversation-list.md +1017 -0
- package/resource/doc/chatuikit/react/components/message-input.md +950 -0
- package/resource/doc/chatuikit/react/components/message-list.md +485 -0
- package/resource/doc/chatuikit/react/components/tuikit.md +80 -0
- package/resource/doc/chatuikit/react/create-group.md +23 -0
- package/resource/doc/chatuikit/react/init.md +26 -0
- package/resource/doc/chatuikit/react/integration.md +14 -10
- package/resource/doc/chatuikit/vue/chat_window_integration.md +155 -0
- package/resource/doc/chatuikit/vue/components/chat.md +50 -0
- package/resource/doc/chatuikit/{vue3 → vue}/components/chatheader.md +1 -1
- package/resource/doc/chatuikit/vue/components/conversation-list.md +770 -0
- package/resource/doc/chatuikit/{vue3/components/MessageInput.md → vue/components/message-input.md} +4 -1
- package/resource/doc/chatuikit/vue/components/message-list.md +662 -0
- package/resource/doc/chatuikit/vue/components/tuikit.md +45 -0
- package/resource/doc/chatuikit/vue/create-group.md +25 -0
- package/resource/doc/chatuikit/vue/init.md +40 -0
- package/resource/doc/chatuikit/{vue3 → vue}/integration.md +34 -74
- package/resource/doc/livekit/vue/components/barrage.md +616 -0
- package/resource/doc/livekit/vue/components/broadcast.md +595 -0
- package/resource/doc/livekit/vue/components/co-guest-panel.md +130 -0
- package/resource/doc/livekit/vue/components/live-audience-list.md +282 -0
- package/resource/doc/livekit/vue/components/live-list.md +200 -0
- package/resource/doc/livekit/vue/components/live-player.md +269 -0
- package/resource/doc/livekit/vue/components/live-scene-panel.md +175 -0
- package/resource/doc/livekit/vue/components/live-view.md +398 -0
- package/resource/doc/livekit/vue/components/stream-mixer.md +446 -0
- package/resource/doc/livekit/vue/states/live-state.md +3591 -0
- package/resource/doc/roomkit/vue/states/device-state.md +369 -0
- package/resource/doc/roomkit/vue/states/login-state.md +59 -0
- package/resource/doc/roomkit/vue/states/room-list-state.md +355 -0
- package/resource/doc/roomkit/vue/states/room-participant-state.md +388 -0
- package/server-config.js +35 -0
- package/server-config.js.map +1 -0
- package/tools/call/{get-native-call-integration-guide.js → get-native-call-integration.js} +5 -6
- package/tools/call/get-native-call-integration.js.map +1 -0
- package/tools/call/{get-web-call-integration-guide.js → get-web-call-integration.js} +7 -7
- package/tools/call/get-web-call-integration.js.map +1 -0
- package/tools/chat/create-group.js +30 -0
- package/tools/chat/create-group.js.map +1 -0
- package/tools/chat/get-chat-faq.js +3 -3
- package/tools/chat/get-chat-faq.js.map +1 -1
- package/tools/chat/get-native-chat-integration.js +34 -0
- package/tools/chat/get-native-chat-integration.js.map +1 -0
- package/tools/chat/get-web-chat-component-detail.js +9 -5
- package/tools/chat/get-web-chat-component-detail.js.map +1 -1
- package/tools/chat/get-web-chat-integration.js +37 -0
- package/tools/chat/get-web-chat-integration.js.map +1 -0
- package/tools/chat/get-web-chat-uikit-init.js +30 -0
- package/tools/chat/get-web-chat-uikit-init.js.map +1 -0
- package/tools/chat/get-web-chat-window-integration.js +37 -0
- package/tools/chat/get-web-chat-window-integration.js.map +1 -0
- package/tools/common/get-usersig.js +31 -26
- package/tools/common/get-usersig.js.map +1 -1
- package/tools/common/present-framework-choice.js +9 -19
- package/tools/common/present-framework-choice.js.map +1 -1
- package/tools/common/record-prompt.js +7 -8
- package/tools/common/record-prompt.js.map +1 -1
- package/tools/common/record-result.js +9 -8
- package/tools/common/record-result.js.map +1 -1
- package/tools/index.js +32 -13
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-component-detail.js +34 -0
- package/tools/live/get-web-live-component-detail.js.map +1 -0
- package/tools/live/get-web-live-state-detail.js +34 -0
- package/tools/live/get-web-live-state-detail.js.map +1 -0
- package/tools/room/get-web-room-state-detail.js +34 -0
- package/tools/room/get-web-room-state-detail.js.map +1 -0
- package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js +35 -0
- package/tools/rtcengine/get-rtcengine-web-sdk-integration-guide.js.map +1 -0
- package/tools/rtcengine/{get-rtcenigne-faq.js → get-trtc-web-sdk-faq.js} +5 -5
- package/tools/rtcengine/get-trtc-web-sdk-faq.js.map +1 -0
- package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js +36 -0
- package/tools/rtcengine/get-trtc-web-sdk-integration-guide.js.map +1 -0
- package/utils/generate-usersig.js +7 -9
- package/utils/generate-usersig.js.map +1 -1
- package/utils/handle-component-name.js +57 -0
- package/utils/handle-component-name.js.map +1 -0
- package/utils/handle-framework.js +9 -0
- package/utils/handle-framework.js.map +1 -0
- package/utils/handle-state-name.js +29 -0
- package/utils/handle-state-name.js.map +1 -0
- package/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
- package/@tencent/aegis-node-sdk/LICENSE +0 -21
- package/@tencent/aegis-node-sdk/README.md +0 -562
- package/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
- package/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
- package/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
- 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 +0 -2
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
- package/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
- package/@tencent/aegis-node-sdk/package.json +0 -19
- package/@tencent/polaris/README.md +0 -407
- package/@tencent/polaris/dist/consumer/health.d.ts +0 -126
- package/@tencent/polaris/dist/consumer/health.js +0 -283
- package/@tencent/polaris/dist/consumer/health.js.map +0 -1
- package/@tencent/polaris/dist/consumer/index.d.ts +0 -120
- package/@tencent/polaris/dist/consumer/index.js +0 -348
- package/@tencent/polaris/dist/consumer/index.js.map +0 -1
- package/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
- package/@tencent/polaris/dist/consumer/monitor.js +0 -343
- package/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
- package/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
- package/@tencent/polaris/dist/consumer/selector.js +0 -316
- package/@tencent/polaris/dist/consumer/selector.js.map +0 -1
- package/@tencent/polaris/dist/errors.d.ts +0 -373
- package/@tencent/polaris/dist/errors.js +0 -154
- package/@tencent/polaris/dist/errors.js.map +0 -1
- package/@tencent/polaris/dist/global.d.ts +0 -16
- package/@tencent/polaris/dist/global.js +0 -18
- package/@tencent/polaris/dist/global.js.map +0 -1
- package/@tencent/polaris/dist/index.d.ts +0 -62
- package/@tencent/polaris/dist/index.js +0 -145
- package/@tencent/polaris/dist/index.js.map +0 -1
- package/@tencent/polaris/dist/instance.d.ts +0 -109
- package/@tencent/polaris/dist/instance.js +0 -38
- package/@tencent/polaris/dist/instance.js.map +0 -1
- package/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
- package/@tencent/polaris/dist/limiter/bucket.js +0 -152
- package/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
- package/@tencent/polaris/dist/limiter/index.d.ts +0 -73
- package/@tencent/polaris/dist/limiter/index.js +0 -149
- package/@tencent/polaris/dist/limiter/index.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
- package/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
- package/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
- package/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
- package/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
- package/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
- package/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
- package/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
- package/@tencent/polaris/dist/location.d.ts +0 -48
- package/@tencent/polaris/dist/location.js +0 -67
- package/@tencent/polaris/dist/location.js.map +0 -1
- package/@tencent/polaris/dist/logging.d.ts +0 -106
- package/@tencent/polaris/dist/logging.js +0 -130
- package/@tencent/polaris/dist/logging.js.map +0 -1
- package/@tencent/polaris/dist/metadata.d.ts +0 -78
- package/@tencent/polaris/dist/metadata.js +0 -119
- package/@tencent/polaris/dist/metadata.js.map +0 -1
- package/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
- package/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
- package/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/base.js +0 -32
- package/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
- package/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
- package/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
- package/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
- package/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
- package/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
- package/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
- package/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
- package/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
- package/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
- package/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
- package/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
- package/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/logging/console.js +0 -38
- package/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
- package/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
- package/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
- package/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
- package/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
- package/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
- package/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
- package/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
- package/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
- package/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
- package/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
- package/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
- package/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
- package/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
- package/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
- package/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
- package/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
- package/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
- package/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
- package/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
- package/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
- package/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
- package/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
- package/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
- package/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
- package/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
- package/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
- package/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
- package/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
- package/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
- package/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
- package/@tencent/polaris/dist/plugins.d.ts +0 -619
- package/@tencent/polaris/dist/plugins.js +0 -91
- package/@tencent/polaris/dist/plugins.js.map +0 -1
- package/@tencent/polaris/dist/polaris.d.ts +0 -33
- package/@tencent/polaris/dist/polaris.js +0 -59
- package/@tencent/polaris/dist/polaris.js.map +0 -1
- package/@tencent/polaris/dist/provider/index.d.ts +0 -102
- package/@tencent/polaris/dist/provider/index.js +0 -168
- package/@tencent/polaris/dist/provider/index.js.map +0 -1
- package/@tencent/polaris/dist/registry.d.ts +0 -174
- package/@tencent/polaris/dist/registry.js +0 -660
- package/@tencent/polaris/dist/registry.js.map +0 -1
- package/@tencent/polaris/dist/rules.d.ts +0 -163
- package/@tencent/polaris/dist/rules.js +0 -24
- package/@tencent/polaris/dist/rules.js.map +0 -1
- package/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
- package/@tencent/polaris/dist/scripts/postinstall.js +0 -71
- package/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
- package/@tencent/polaris/dist/service.d.ts +0 -18
- package/@tencent/polaris/dist/service.js +0 -3
- package/@tencent/polaris/dist/service.js.map +0 -1
- package/@tencent/polaris/dist/skeleton.d.ts +0 -87
- package/@tencent/polaris/dist/skeleton.js +0 -282
- package/@tencent/polaris/dist/skeleton.js.map +0 -1
- package/@tencent/polaris/dist/utils.d.ts +0 -36
- package/@tencent/polaris/dist/utils.js +0 -74
- package/@tencent/polaris/dist/utils.js.map +0 -1
- package/@tencent/polaris/dist/weak.d.ts +0 -11
- package/@tencent/polaris/dist/weak.js +0 -44
- package/@tencent/polaris/dist/weak.js.map +0 -1
- package/@tencent/polaris/package.json +0 -114
- package/libs/lib-generate-test-usersig-es.min.d.ts +0 -6
- package/libs/lib-generate-test-usersig-es.min.js +0 -2
- package/resource/doc/chatuikit/react/generate_UserSig.md +0 -306
- package/resource/doc/chatuikit/react/integrate_tuichat_only_react.md +0 -202
- package/resource/doc/chatuikit/react/integrate_tuichat_react.md +0 -279
- package/resource/doc/chatuikit/vue/generate_UserSig.md +0 -306
- package/resource/doc/chatuikit/vue/integrate_only_tuichat_Vue_web.md +0 -124
- package/resource/doc/chatuikit/vue/integrate_tuikit_Vue_web.md +0 -552
- package/streamableHttp.js +0 -74
- package/streamableHttp.js.map +0 -1
- package/tools/call/get-native-call-integration-guide.js.map +0 -1
- package/tools/call/get-web-call-integration-guide.js.map +0 -1
- package/tools/chat/get-native-chat-integration-guide.js +0 -34
- package/tools/chat/get-native-chat-integration-guide.js.map +0 -1
- package/tools/chat/get-web-chat-integration-guide.js +0 -35
- package/tools/chat/get-web-chat-integration-guide.js.map +0 -1
- package/tools/rtcengine/get-rtcengine-integration-guide.js +0 -33
- package/tools/rtcengine/get-rtcengine-integration-guide.js.map +0 -1
- package/tools/rtcengine/get-rtcenigne-faq.js.map +0 -1
- /package/resource/doc/chatuikit/{vue3 → vue}/components/avatar.md +0 -0
- /package/resource/doc/chatuikit/{vue3 → vue}/components/component-list.md +0 -0
- /package/resource/doc/chatuikit/{vue3 → vue}/components/userpicker.md +0 -0
|
@@ -0,0 +1,369 @@
|
|
|
1
|
+
# Device State Documentation
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
## Install dependency
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
You can choose any method below for dependency installation:
|
|
8
|
+
[npm]
|
|
9
|
+
``` bash
|
|
10
|
+
npm install tuikit-atomicx-vue3@latest --save
|
|
11
|
+
```
|
|
12
|
+
[pnpm]
|
|
13
|
+
``` bash
|
|
14
|
+
pnpm add tuikit-atomicx-vue3@latest
|
|
15
|
+
```
|
|
16
|
+
[yarn]
|
|
17
|
+
``` bash
|
|
18
|
+
yarn add tuikit-atomicx-vue3@latest
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## Enums
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
### DeviceError
|
|
26
|
+
Device error enumeration
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
```typescript
|
|
30
|
+
export enum DeviceError {
|
|
31
|
+
NoError = 0, // No error
|
|
32
|
+
NoDeviceDetected = 1, // No device detected
|
|
33
|
+
NoSystemPermission = 2, // No system permission
|
|
34
|
+
NotSupportCapture = 3, // Capture not supported
|
|
35
|
+
OccupiedError = 4, // Device occupied
|
|
36
|
+
UnknownError = 5, // Unknown error
|
|
37
|
+
}
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
### AudioRoute
|
|
42
|
+
Audio route enumeration
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
```typescript
|
|
46
|
+
export enum AudioRoute {
|
|
47
|
+
Speakerphone = 0, // Speaker
|
|
48
|
+
Earpiece = 1, // Earpiece
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
### MirrorType
|
|
54
|
+
Image Type Enumeration
|
|
55
|
+
|
|
56
|
+
|
|
57
|
+
```typescript
|
|
58
|
+
export enum MirrorType {
|
|
59
|
+
Auto = 0, // Automatic
|
|
60
|
+
Enable = 1, // Enable
|
|
61
|
+
Disable = 2, // Disable
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
|
|
66
|
+
### DeviceType
|
|
67
|
+
Device Type enumeration
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
```typescript
|
|
71
|
+
export enum DeviceType {
|
|
72
|
+
Microphone = 'Microphone', // Microphone
|
|
73
|
+
Camera = 'Camera', // Camera
|
|
74
|
+
ScreenShare = 'ScreenShare', // Screen sharing
|
|
75
|
+
}
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
### VideoQuality
|
|
80
|
+
Video quality enumeration
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
```typescript
|
|
84
|
+
export enum VideoQuality {
|
|
85
|
+
Quality360P = 1, // 360P resolution
|
|
86
|
+
Quality540P = 2, // 540P resolution
|
|
87
|
+
Quality720P = 3, // 720P resolution
|
|
88
|
+
Quality1080P = 4, // 1080P resolution
|
|
89
|
+
}
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
### DevicePermission
|
|
94
|
+
Device permission enumeration
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
```typescript
|
|
98
|
+
export enum DevicePermission {
|
|
99
|
+
PublishAudio = 'PublishAudio', // Publish audio permission
|
|
100
|
+
PublishVideo = 'PublishVideo', // Publish video permission
|
|
101
|
+
ScreenShare = 'ScreenShare', // Screen sharing permission
|
|
102
|
+
}
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
### MediaSettingDisplayMode
|
|
107
|
+
Media settings display mode enumerate
|
|
108
|
+
|
|
109
|
+
|
|
110
|
+
```typescript
|
|
111
|
+
export enum MediaSettingDisplayMode {
|
|
112
|
+
Icon = 'Icon', // Icon mode only
|
|
113
|
+
IconWithPanel = 'IconWithPanel', // Icon with panel mode
|
|
114
|
+
Panel = 'Panel', // Panel mode only
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
|
|
119
|
+
### DeviceStatus
|
|
120
|
+
Device status enumeration
|
|
121
|
+
|
|
122
|
+
|
|
123
|
+
```typescript
|
|
124
|
+
export enum DeviceStatus {
|
|
125
|
+
Off = 0, // Off
|
|
126
|
+
On = 1, // On
|
|
127
|
+
}
|
|
128
|
+
```
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
### NetworkQuality
|
|
132
|
+
Network quality enumeration
|
|
133
|
+
|
|
134
|
+
|
|
135
|
+
```typescript
|
|
136
|
+
export enum NetworkQuality {
|
|
137
|
+
Unknown = 0, // Unknown
|
|
138
|
+
Excellent = 1, // Excellent
|
|
139
|
+
Good = 2, // Good
|
|
140
|
+
Poor = 3, // Poor
|
|
141
|
+
Bad = 4, // Bad
|
|
142
|
+
VeryBad = 5, // Poor
|
|
143
|
+
Down = 6, // Disconnected
|
|
144
|
+
}
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
|
|
148
|
+
## Interfaces
|
|
149
|
+
|
|
150
|
+
|
|
151
|
+
### VideoSettingProps
|
|
152
|
+
Video settings property API
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
```typescript
|
|
156
|
+
export interface VideoSettingProps {
|
|
157
|
+
displayMode: MediaSettingDisplayMode; // Display mode (required)
|
|
158
|
+
supportSwitchCamera?: boolean; // Whether switching camera is supported (optional)
|
|
159
|
+
supportSwitchResolution?: boolean; // Whether switching resolution is supported (optional)
|
|
160
|
+
supportVideoPreview?: boolean; // Whether video preview is supported (optional)
|
|
161
|
+
supportSwitchMirror?: boolean; // Whether switching mirror is supported (optional)
|
|
162
|
+
}
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
|
|
166
|
+
Attribute description
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
-**displayMode**: Set the display mode to determine the UI presentation form
|
|
170
|
+
- **supportSwitchCamera**: Whether to allow user access to switch between front and rear cameras
|
|
171
|
+
- **supportSwitchResolution**: Whether to allow user access to switch video resolution
|
|
172
|
+
- **supportVideoPreview**: Whether to display video preview
|
|
173
|
+
- **supportSwitchMirror**: Whether to allow user access to toggle the video mirror effect
|
|
174
|
+
|
|
175
|
+
|
|
176
|
+
### AudioSettingProps
|
|
177
|
+
Audio settings property API
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
```typescript
|
|
181
|
+
export interface AudioSettingProps {
|
|
182
|
+
displayMode: MediaSettingDisplayMode; // Display mode (required)
|
|
183
|
+
supportSwitchMicrophone?: boolean; // Whether switching microphone is supported (optional)
|
|
184
|
+
supportSwitchSpeaker?: boolean; // Whether switching speaker is supported (optional)
|
|
185
|
+
supportAudioLevel?: boolean; // Whether audio level display is supported (optional)
|
|
186
|
+
}
|
|
187
|
+
```
|
|
188
|
+
|
|
189
|
+
|
|
190
|
+
Attribute description
|
|
191
|
+
|
|
192
|
+
|
|
193
|
+
-**displayMode**: Set the display mode to determine the UI presentation form
|
|
194
|
+
- **supportSwitchMicrophone**: Whether to allow user access to switch microphone device
|
|
195
|
+
- **supportSwitchSpeaker**: Whether to allow user access to switch speaker device
|
|
196
|
+
- **supportAudioLevel**: Whether to display the audio level indicator
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
### NetworkInfo
|
|
200
|
+
Network information API
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
```typescript
|
|
204
|
+
export interface NetworkInfo {
|
|
205
|
+
quality: NetworkQuality; // Network quality level
|
|
206
|
+
upLoss: number; // Upstream packet loss rate (percentage)
|
|
207
|
+
downLoss: number; // Downstream packet loss rate (percentage)
|
|
208
|
+
delay: number; // Network delay (ms)
|
|
209
|
+
}
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
|
|
213
|
+
Attribute description
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
-**quality**: Network quality level, for quick network condition judgment
|
|
217
|
+
- **upLoss**: Uplink packet loss rate, typically ranging from 0-100
|
|
218
|
+
- **downLoss**: Downlink packet loss rate, typically ranging from 0-100
|
|
219
|
+
- **delay**: Network round-trip delay time (milliseconds)
|
|
220
|
+
|
|
221
|
+
|
|
222
|
+
## Example
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
Video Settings Configuration Example
|
|
226
|
+
|
|
227
|
+
|
|
228
|
+
```typescript
|
|
229
|
+
const videoSettings: VideoSettingProps = {
|
|
230
|
+
displayMode: MediaSettingDisplayMode.IconWithPanel,
|
|
231
|
+
supportSwitchCamera: true,
|
|
232
|
+
supportSwitchResolution: true,
|
|
233
|
+
supportVideoPreview: true,
|
|
234
|
+
supportSwitchMirror: false
|
|
235
|
+
};
|
|
236
|
+
```
|
|
237
|
+
|
|
238
|
+
|
|
239
|
+
Audio Settings Configuration Example
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
```typescript
|
|
243
|
+
const audioSettings: AudioSettingProps = {
|
|
244
|
+
displayMode: MediaSettingDisplayMode.Panel,
|
|
245
|
+
supportSwitchMicrophone: true,
|
|
246
|
+
supportSwitchSpeaker: true,
|
|
247
|
+
supportAudioLevel: true
|
|
248
|
+
};
|
|
249
|
+
```
|
|
250
|
+
|
|
251
|
+
|
|
252
|
+
Network information usage example
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
```typescript
|
|
256
|
+
const networkInfo: NetworkInfo = {
|
|
257
|
+
quality: NetworkQuality.Good,
|
|
258
|
+
upLoss: 2.5,
|
|
259
|
+
downLoss: 1.8,
|
|
260
|
+
delay: 45
|
|
261
|
+
};
|
|
262
|
+
|
|
263
|
+
|
|
264
|
+
// Display notification based on network quality
|
|
265
|
+
function getNetworkStatusText(info: NetworkInfo): string {
|
|
266
|
+
switch (info.quality) {
|
|
267
|
+
case NetworkQuality.Excellent:
|
|
268
|
+
return "Network condition is excellent";
|
|
269
|
+
case NetworkQuality.Good:
|
|
270
|
+
return "Network condition is good";
|
|
271
|
+
case NetworkQuality.Poor:
|
|
272
|
+
return "Network condition is poor";
|
|
273
|
+
default:
|
|
274
|
+
return "Network condition is unknown";
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
```
|
|
278
|
+
|
|
279
|
+
|
|
280
|
+
## Must-Knows
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
1. **Device permission**: Ensure you obtain appropriate system permission before using the camera and microphone.
|
|
284
|
+
2. **Error handling**: It is recommended to provide corresponding user notifications based on the `DeviceError` enumeration value.
|
|
285
|
+
3. **Network monitoring**: Perform periodic checks on `NetworkInfo` to optimize user experience.
|
|
286
|
+
4. **Device compatibility**: Video quality and features may vary by device.
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
## API and event usage example
|
|
290
|
+
```typescript
|
|
291
|
+
import { useDeviceState } from 'tuikit-atomicx-vue3';
|
|
292
|
+
const {
|
|
293
|
+
Microphone data
|
|
294
|
+
microphoneStatus,
|
|
295
|
+
microphoneList,
|
|
296
|
+
currentMicrophone,
|
|
297
|
+
microphoneLastError,
|
|
298
|
+
isMicrophoneTesting,
|
|
299
|
+
currentMicVolume,
|
|
300
|
+
captureVolume,
|
|
301
|
+
testingMicVolume,
|
|
302
|
+
|
|
303
|
+
|
|
304
|
+
camera data
|
|
305
|
+
cameraStatus,
|
|
306
|
+
cameraList,
|
|
307
|
+
currentCamera,
|
|
308
|
+
cameraLastError,
|
|
309
|
+
isCameraTesting,
|
|
310
|
+
isCameraTestLoading,
|
|
311
|
+
isFrontCamera,
|
|
312
|
+
localMirrorType,
|
|
313
|
+
localVideoQuality,
|
|
314
|
+
|
|
315
|
+
|
|
316
|
+
speaker data
|
|
317
|
+
speakerList,
|
|
318
|
+
currentSpeaker,
|
|
319
|
+
outputVolume,
|
|
320
|
+
currentAudioRoute,
|
|
321
|
+
isSpeakerTesting,
|
|
322
|
+
|
|
323
|
+
|
|
324
|
+
screen sharing data
|
|
325
|
+
screenStatus,
|
|
326
|
+
|
|
327
|
+
|
|
328
|
+
Local network data
|
|
329
|
+
networkInfo,
|
|
330
|
+
|
|
331
|
+
|
|
332
|
+
// Microphone operation
|
|
333
|
+
openLocalMicrophone,
|
|
334
|
+
closeLocalMicrophone,
|
|
335
|
+
muteLocalAudio,
|
|
336
|
+
unmuteLocalAudio,
|
|
337
|
+
getMicrophoneList,
|
|
338
|
+
setCurrentMicrophone,
|
|
339
|
+
startMicrophoneTest,
|
|
340
|
+
stopMicrophoneTest,
|
|
341
|
+
setCaptureVolume,
|
|
342
|
+
|
|
343
|
+
|
|
344
|
+
// Speaker operation
|
|
345
|
+
getSpeakerList,
|
|
346
|
+
setCurrentSpeaker,
|
|
347
|
+
setAudioRoute,
|
|
348
|
+
startSpeakerTest,
|
|
349
|
+
stopSpeakerTest,
|
|
350
|
+
setOutputVolume,
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
camera operation
|
|
354
|
+
openLocalCamera,
|
|
355
|
+
closeLocalCamera,
|
|
356
|
+
getCameraList,
|
|
357
|
+
setCurrentCamera,
|
|
358
|
+
switchCamera,
|
|
359
|
+
switchMirror,
|
|
360
|
+
updateVideoQuality,
|
|
361
|
+
startCameraDeviceTest,
|
|
362
|
+
stopCameraDeviceTest,
|
|
363
|
+
|
|
364
|
+
|
|
365
|
+
Screen Sharing
|
|
366
|
+
startScreenShare,
|
|
367
|
+
stopScreenShare,
|
|
368
|
+
} = useDeviceState();
|
|
369
|
+
```
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
# Room LoginState Documentation
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
Room component login API document.
|
|
5
|
+
|
|
6
|
+
## Install dependency
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
you can choose any method below for dependency installation:
|
|
10
|
+
[npm]
|
|
11
|
+
``` bash
|
|
12
|
+
npm install tuikit-atomicx-vue3@latest --save
|
|
13
|
+
```
|
|
14
|
+
[pnpm]
|
|
15
|
+
``` bash
|
|
16
|
+
pnpm add tuikit-atomicx-vue3@latest
|
|
17
|
+
```
|
|
18
|
+
[yarn]
|
|
19
|
+
``` bash
|
|
20
|
+
yarn add tuikit-atomicx-vue3@latest
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
## API usage example
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
```typescript
|
|
28
|
+
import { useLoginState } from 'tuikit-atomicx-vue3';
|
|
29
|
+
const {
|
|
30
|
+
loginUserInfo,
|
|
31
|
+
login,
|
|
32
|
+
logout,
|
|
33
|
+
setSelfInfo,
|
|
34
|
+
} = useLoginState();
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
// Log in.
|
|
38
|
+
login({
|
|
39
|
+
userId: 'xxx';
|
|
40
|
+
userSig: 'xxx';
|
|
41
|
+
sdkAppId: 0;
|
|
42
|
+
}).then(() => {
|
|
43
|
+
// Get logged-in user info after successful login
|
|
44
|
+
const { userId, userName, avatarUrl, customInfo } = loginUserInfo;
|
|
45
|
+
})
|
|
46
|
+
|
|
47
|
+
|
|
48
|
+
// Log out
|
|
49
|
+
logout();
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
// Set user information
|
|
53
|
+
setSelfInfo({
|
|
54
|
+
userName: 'xxx',
|
|
55
|
+
avatarUrl: 'xxx',
|
|
56
|
+
});
|
|
57
|
+
|
|
58
|
+
|
|
59
|
+
```
|