@tencentcloud/sdk-mcp 1.2.6 → 1.2.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/resource/doc/chatuikit/faq/common/server_error_code.md +74 -0
- package/resource/doc/chatuikit/faq/{freq_qa.md → native_sdk/faq.md} +2 -1
- package/resource/doc/chatuikit/faq/web_sdk/error_code.md +47 -0
- package/resource/doc/chatuikit/faq/web_sdk/faq.md +115 -0
- package/resource/doc/chatuikit/flutter/faq.md +117 -0
- package/resource/doc/chatuikit/iOS/faq.md +117 -0
- package/resource/doc/chatuikit/react/faq.md +26 -0
- package/resource/doc/chatuikit/vue/faq.md +35 -0
- package/resource/doc/livekit/faq/common/error_code.md +89 -0
- package/resource/doc/roomkit/common/error_code.md +67 -0
- package/resource/doc/rtcengine/faq/web_sdk/.gitkeep +0 -0
- package/resource/doc/tuicallkit/android/faq.md +1000 -0
- package/resource/doc/tuicallkit/faq/common/error_code.md +47 -0
- package/resource/doc/tuicallkit/flutter/faq.md +981 -0
- package/resource/doc/tuicallkit/{faq → iOS}/faq.md +0 -72
- package/resource/doc/tuicallkit/react/faq.md +986 -0
- package/resource/doc/tuicallkit/vue/faq.md +986 -0
- package/tools/call/get-native-call-integration.js +4 -10
- package/tools/call/get-native-call-integration.js.map +1 -1
- package/tools/call/get-web-call-api.js +4 -7
- package/tools/call/get-web-call-api.js.map +1 -1
- package/tools/call/get-web-call-integration.js +4 -9
- package/tools/call/get-web-call-integration.js.map +1 -1
- package/tools/chat/get-native-chat-integration.js +4 -8
- package/tools/chat/get-native-chat-integration.js.map +1 -1
- package/tools/chat/get-web-chat-component-detail.js +5 -10
- package/tools/chat/get-web-chat-component-detail.js.map +1 -1
- package/tools/chat/get-web-chat-integration.js +4 -12
- package/tools/chat/get-web-chat-integration.js.map +1 -1
- package/tools/chat/get-web-chat-uikit-init.js +5 -6
- package/tools/chat/get-web-chat-uikit-init.js.map +1 -1
- package/tools/chat/get-web-chat-window-integration.js +4 -12
- package/tools/chat/get-web-chat-window-integration.js.map +1 -1
- package/tools/chat/{create-group.js → get-web-create-group-doc.js} +5 -6
- package/tools/chat/get-web-create-group-doc.js.map +1 -0
- package/tools/common/get-faq.js +93 -0
- package/tools/common/get-faq.js.map +1 -0
- package/tools/common/get-usersig.js +9 -18
- package/tools/common/get-usersig.js.map +1 -1
- package/tools/common/present-framework-choice.js +3 -10
- package/tools/common/present-framework-choice.js.map +1 -1
- package/tools/common/record-prompt.js +5 -12
- package/tools/common/record-prompt.js.map +1 -1
- package/tools/common/record-result.js +7 -11
- package/tools/common/record-result.js.map +1 -1
- package/tools/definitions/get_faq_def.js +28 -0
- package/tools/definitions/get_faq_def.js.map +1 -0
- package/tools/definitions/get_native_call_uikit_integration_def.js +21 -0
- package/tools/definitions/get_native_call_uikit_integration_def.js.map +1 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js +21 -0
- package/tools/definitions/get_native_chat_uikit_integration_def.js.map +1 -0
- package/tools/definitions/get_usersig_def.js +34 -0
- package/tools/definitions/get_usersig_def.js.map +1 -0
- package/tools/definitions/get_web_call_uikit_api_def.js +23 -0
- package/tools/definitions/get_web_call_uikit_api_def.js.map +1 -0
- package/tools/definitions/get_web_call_uikit_integration_def.js +20 -0
- package/tools/definitions/get_web_call_uikit_integration_def.js.map +1 -0
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js +24 -0
- package/tools/definitions/get_web_chat_uikit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_chat_uikit_init_def.js +23 -0
- package/tools/definitions/get_web_chat_uikit_init_def.js.map +1 -0
- package/tools/definitions/get_web_chat_uikit_integration_def.js +26 -0
- package/tools/definitions/get_web_chat_uikit_integration_def.js.map +1 -0
- package/tools/definitions/get_web_chat_window_integration_def.js +26 -0
- package/tools/definitions/get_web_chat_window_integration_def.js.map +1 -0
- package/tools/definitions/get_web_create_group_doc_def.js +18 -0
- package/tools/definitions/get_web_create_group_doc_def.js.map +1 -0
- package/tools/definitions/get_web_live_state_detail_def.js +19 -0
- package/tools/definitions/get_web_live_state_detail_def.js.map +1 -0
- package/tools/definitions/get_web_live_uikit_component_detail_def.js +21 -0
- package/tools/definitions/get_web_live_uikit_component_detail_def.js.map +1 -0
- package/tools/definitions/get_web_room_state_detail_def.js +19 -0
- package/tools/definitions/get_web_room_state_detail_def.js.map +1 -0
- package/tools/definitions/present_framework_choice_def.js +24 -0
- package/tools/definitions/present_framework_choice_def.js.map +1 -0
- package/tools/definitions/record_prompt_def.js +22 -0
- package/tools/definitions/record_prompt_def.js.map +1 -0
- package/tools/definitions/record_result_def.js +22 -0
- package/tools/definitions/record_result_def.js.map +1 -0
- package/tools/index.js +7 -9
- package/tools/index.js.map +1 -1
- package/tools/live/get-web-live-component-detail.js +5 -7
- package/tools/live/get-web-live-component-detail.js.map +1 -1
- package/tools/live/get-web-live-state-detail.js +5 -7
- package/tools/live/get-web-live-state-detail.js.map +1 -1
- package/tools/room/get-web-room-state-detail.js +5 -7
- package/tools/room/get-web-room-state-detail.js.map +1 -1
- package/utils/report-cls-client.js +1 -1
- package/utils/report-es-client.js +1 -1
- package/libs/@tencent/aegis-node-sdk/CHANGELOG.md +0 -8
- package/libs/@tencent/aegis-node-sdk/LICENSE +0 -21
- package/libs/@tencent/aegis-node-sdk/README.md +0 -562
- package/libs/@tencent/aegis-node-sdk/lib/aegis.min.js +0 -1
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/config.d.ts +0 -14
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/global.d.ts +0 -1
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/index.d.ts +0 -9
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/constant/report-ignore.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/core.d.ts +0 -85
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/afterRequestHooks.d.ts +0 -3
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/beforeRequestHooks.d.ts +0 -9
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/hooks/modifyRequestHooks.d.ts +0 -3
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/index.d.ts +0 -9
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/config.d.ts +0 -62
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/env.d.ts +0 -11
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/index.d.ts +0 -4
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/log.d.ts +0 -130
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/interface/send.d.ts +0 -34
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/format.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/index.d.ts +0 -18
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/length-limit.d.ts +0 -8
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/pv.d.ts +0 -8
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/remove-payload.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/repeat-limit.d.ts +0 -4
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/report.d.ts +0 -10
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/sample.d.ts +0 -3
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/throttle.d.ts +0 -3
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/index.d.ts +0 -34
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/jwt.d.ts +0 -12
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/ot-js.d.ts +0 -14
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/trace/uuid.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/whitelist.d.ts +0 -12
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/pipes/write-before.d.ts +0 -3
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/plugin.d.ts +0 -33
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/destroy.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/event-emitter.d.ts +0 -18
- package/libs/@tencent/aegis-node-sdk/lib/packages/core/src/util/index.d.ts +0 -60
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/index.d.ts +0 -15
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/interface/selector.d.ts +0 -5
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/pipes/batch-report-pipe.d.ts +0 -6
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_base.d.ts +0 -18
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/protocol/protocol_http.d.ts +0 -12
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/ip_selector.d.ts +0 -10
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/polaris_selector.d.ts +0 -20
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/selector/selector_base.d.ts +0 -27
- package/libs/@tencent/aegis-node-sdk/lib/packages/node-sdk/src/util/eval_require.d.ts +0 -2
- package/libs/@tencent/aegis-node-sdk/package.json +0 -19
- package/libs/@tencent/polaris/README.md +0 -407
- package/libs/@tencent/polaris/dist/consumer/health.d.ts +0 -126
- package/libs/@tencent/polaris/dist/consumer/health.js +0 -283
- package/libs/@tencent/polaris/dist/consumer/health.js.map +0 -1
- package/libs/@tencent/polaris/dist/consumer/index.d.ts +0 -120
- package/libs/@tencent/polaris/dist/consumer/index.js +0 -348
- package/libs/@tencent/polaris/dist/consumer/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/consumer/monitor.d.ts +0 -145
- package/libs/@tencent/polaris/dist/consumer/monitor.js +0 -343
- package/libs/@tencent/polaris/dist/consumer/monitor.js.map +0 -1
- package/libs/@tencent/polaris/dist/consumer/selector.d.ts +0 -73
- package/libs/@tencent/polaris/dist/consumer/selector.js +0 -316
- package/libs/@tencent/polaris/dist/consumer/selector.js.map +0 -1
- package/libs/@tencent/polaris/dist/errors.d.ts +0 -373
- package/libs/@tencent/polaris/dist/errors.js +0 -154
- package/libs/@tencent/polaris/dist/errors.js.map +0 -1
- package/libs/@tencent/polaris/dist/global.d.ts +0 -16
- package/libs/@tencent/polaris/dist/global.js +0 -18
- package/libs/@tencent/polaris/dist/global.js.map +0 -1
- package/libs/@tencent/polaris/dist/index.d.ts +0 -62
- package/libs/@tencent/polaris/dist/index.js +0 -145
- package/libs/@tencent/polaris/dist/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/instance.d.ts +0 -109
- package/libs/@tencent/polaris/dist/instance.js +0 -38
- package/libs/@tencent/polaris/dist/instance.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/bucket.d.ts +0 -51
- package/libs/@tencent/polaris/dist/limiter/bucket.js +0 -152
- package/libs/@tencent/polaris/dist/limiter/bucket.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/index.d.ts +0 -73
- package/libs/@tencent/polaris/dist/limiter/index.js +0 -149
- package/libs/@tencent/polaris/dist/limiter/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/ratelimit.d.ts +0 -27
- package/libs/@tencent/polaris/dist/limiter/ratelimit.js +0 -134
- package/libs/@tencent/polaris/dist/limiter/ratelimit.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.d.ts +0 -17
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js +0 -15
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/base.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.d.ts +0 -59
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js +0 -397
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/global.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.d.ts +0 -3
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js +0 -19
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.d.ts +0 -17
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js +0 -52
- package/libs/@tencent/polaris/dist/limiter/ratelimiter/local.js.map +0 -1
- package/libs/@tencent/polaris/dist/location.d.ts +0 -48
- package/libs/@tencent/polaris/dist/location.js +0 -67
- package/libs/@tencent/polaris/dist/location.js.map +0 -1
- package/libs/@tencent/polaris/dist/logging.d.ts +0 -106
- package/libs/@tencent/polaris/dist/logging.js +0 -130
- package/libs/@tencent/polaris/dist/logging.js.map +0 -1
- package/libs/@tencent/polaris/dist/metadata.d.ts +0 -78
- package/libs/@tencent/polaris/dist/metadata.js +0 -119
- package/libs/@tencent/polaris/dist/metadata.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.d.ts +0 -47
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js +0 -162
- package/libs/@tencent/polaris/dist/plugins/breaker/polaris.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/base.d.ts +0 -24
- package/libs/@tencent/polaris/dist/plugins/lb/base.js +0 -32
- package/libs/@tencent/polaris/dist/plugins/lb/base.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/edf.d.ts +0 -24
- package/libs/@tencent/polaris/dist/plugins/lb/edf.js +0 -77
- package/libs/@tencent/polaris/dist/plugins/lb/edf.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.d.ts +0 -24
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.js +0 -53
- package/libs/@tencent/polaris/dist/plugins/lb/hashring.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.d.ts +0 -31
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.js +0 -88
- package/libs/@tencent/polaris/dist/plugins/lb/sticky.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.d.ts +0 -25
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.js +0 -72
- package/libs/@tencent/polaris/dist/plugins/lb/swrr.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/wr.d.ts +0 -17
- package/libs/@tencent/polaris/dist/plugins/lb/wr.js +0 -50
- package/libs/@tencent/polaris/dist/plugins/lb/wr.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.d.ts +0 -19
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.js +0 -81
- package/libs/@tencent/polaris/dist/plugins/lb/wrr.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/logging/console.d.ts +0 -10
- package/libs/@tencent/polaris/dist/plugins/logging/console.js +0 -38
- package/libs/@tencent/polaris/dist/plugins/logging/console.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.d.ts +0 -32
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js +0 -88
- package/libs/@tencent/polaris/dist/plugins/naming/local-server/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.d.ts +0 -124
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js +0 -398
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/base.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.d.ts +0 -27
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js +0 -287
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/discover.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.d.ts +0 -15
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js +0 -43
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.d.ts +0 -28
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js +0 -249
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/monitor.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.d.ts +0 -19
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js +0 -222
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/adapter/ratelimit.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.d.ts +0 -26
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js +0 -99
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/bidi.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.d.ts +0 -60
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js +0 -259
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/discover.proto +0 -24
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/monitor.proto +0 -18
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/grpc/pb/ratelimit.proto +0 -12
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.d.ts +0 -39
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js +0 -115
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/connector/http/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/api.proto +0 -24
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/client.proto +0 -22
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/model.proto +0 -28
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/ratelimit.proto +0 -80
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/request.proto +0 -18
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/response.proto +0 -65
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/routing.proto +0 -66
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/service.proto +0 -95
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/discover-pb/types.d.ts +0 -1568
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.d.ts +0 -36
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js +0 -51
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/api.proto +0 -18
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/circuitbreak.proto +0 -67
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/request.proto +0 -82
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/response.proto +0 -11
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkcache.proto +0 -46
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdkconfiguration.proto +0 -16
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/sdktoken.proto +0 -10
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/monitor-pb/types.d.ts +0 -1102
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.d.ts +0 -29
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js +0 -77
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/pool.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/api.proto +0 -12
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/ratelimit.proto +0 -28
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/ratelimit-pb/types.d.ts +0 -395
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.d.ts +0 -13
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js +0 -116
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/rules.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.d.ts +0 -67
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js +0 -67
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/types.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.d.ts +0 -99
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js +0 -217
- package/libs/@tencent/polaris/dist/plugins/naming/polaris-server/utils.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/registry/memory.d.ts +0 -10
- package/libs/@tencent/polaris/dist/plugins/registry/memory.js +0 -50
- package/libs/@tencent/polaris/dist/plugins/registry/memory.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.d.ts +0 -51
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js +0 -145
- package/libs/@tencent/polaris/dist/plugins/router/polaris/nearby.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.d.ts +0 -11
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js +0 -174
- package/libs/@tencent/polaris/dist/plugins/router/polaris/rule.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.d.ts +0 -25
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js +0 -36
- package/libs/@tencent/polaris/dist/plugins/router/trpc/canary.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.d.ts +0 -10
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js +0 -34
- package/libs/@tencent/polaris/dist/plugins/router/trpc/env.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.d.ts +0 -56
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js +0 -106
- package/libs/@tencent/polaris/dist/plugins/router/trpc/set.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.d.ts +0 -31
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js +0 -124
- package/libs/@tencent/polaris/dist/plugins/shaping/unirate.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.d.ts +0 -61
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js +0 -171
- package/libs/@tencent/polaris/dist/plugins/shaping/warmup.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.d.ts +0 -23
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.js +0 -159
- package/libs/@tencent/polaris/dist/plugins/weight/polaris.js.map +0 -1
- package/libs/@tencent/polaris/dist/plugins.d.ts +0 -619
- package/libs/@tencent/polaris/dist/plugins.js +0 -91
- package/libs/@tencent/polaris/dist/plugins.js.map +0 -1
- package/libs/@tencent/polaris/dist/polaris.d.ts +0 -33
- package/libs/@tencent/polaris/dist/polaris.js +0 -59
- package/libs/@tencent/polaris/dist/polaris.js.map +0 -1
- package/libs/@tencent/polaris/dist/provider/index.d.ts +0 -102
- package/libs/@tencent/polaris/dist/provider/index.js +0 -168
- package/libs/@tencent/polaris/dist/provider/index.js.map +0 -1
- package/libs/@tencent/polaris/dist/registry.d.ts +0 -174
- package/libs/@tencent/polaris/dist/registry.js +0 -660
- package/libs/@tencent/polaris/dist/registry.js.map +0 -1
- package/libs/@tencent/polaris/dist/rules.d.ts +0 -163
- package/libs/@tencent/polaris/dist/rules.js +0 -24
- package/libs/@tencent/polaris/dist/rules.js.map +0 -1
- package/libs/@tencent/polaris/dist/scripts/postinstall.d.ts +0 -1
- package/libs/@tencent/polaris/dist/scripts/postinstall.js +0 -71
- package/libs/@tencent/polaris/dist/scripts/postinstall.js.map +0 -1
- package/libs/@tencent/polaris/dist/service.d.ts +0 -18
- package/libs/@tencent/polaris/dist/service.js +0 -3
- package/libs/@tencent/polaris/dist/service.js.map +0 -1
- package/libs/@tencent/polaris/dist/skeleton.d.ts +0 -87
- package/libs/@tencent/polaris/dist/skeleton.js +0 -282
- package/libs/@tencent/polaris/dist/skeleton.js.map +0 -1
- package/libs/@tencent/polaris/dist/utils.d.ts +0 -36
- package/libs/@tencent/polaris/dist/utils.js +0 -74
- package/libs/@tencent/polaris/dist/utils.js.map +0 -1
- package/libs/@tencent/polaris/dist/weak.d.ts +0 -11
- package/libs/@tencent/polaris/dist/weak.js +0 -44
- package/libs/@tencent/polaris/dist/weak.js.map +0 -1
- package/libs/@tencent/polaris/package.json +0 -114
- package/resource/doc/chatuikit/faq/web_qa.md +0 -118
- package/tools/call/get-call-faq.js +0 -29
- package/tools/call/get-call-faq.js.map +0 -1
- package/tools/chat/create-group.js.map +0 -1
- package/tools/chat/get-chat-faq.js +0 -29
- package/tools/chat/get-chat-faq.js.map +0 -1
- /package/resource/doc/chatuikit/{faq/sdk_qa.md → android/faq.md} +0 -0
- /package/{libs/@tencent/aegis-node-sdk/lib/packages/core/src/polyfill.d.ts → resource/doc/livekit/vue/faq.md} +0 -0
- /package/resource/doc/{chatuikit/faq/vue_qa.md → roomkit/vue/faq.md} +0 -0
|
@@ -1,619 +0,0 @@
|
|
|
1
|
-
import { ApiStatKey, ApiStatValue, CacheStat, ComputedStat, Logger, Instance, InstanceStatus, Location, LocationMatchLevel, LogVerbosity, Metadata, MetadataCondition, RatelimitRule, RoutingRules, Service, StatusChangelog, StatusChangeRequest } from ".";
|
|
2
|
-
import { QuotaConfig } from "./rules";
|
|
3
|
-
import { RequireKeys } from "./utils";
|
|
4
|
-
/**
|
|
5
|
-
* 数据存储结构
|
|
6
|
-
*/
|
|
7
|
-
export declare type DataWithRevision<T> = T extends unknown ? {
|
|
8
|
-
/**
|
|
9
|
-
* 数据列表
|
|
10
|
-
*/
|
|
11
|
-
data: T;
|
|
12
|
-
/**
|
|
13
|
-
* 当前列表版本号
|
|
14
|
-
*/
|
|
15
|
-
revision: string;
|
|
16
|
-
} : never;
|
|
17
|
-
/**
|
|
18
|
-
* 全量服务数据集合
|
|
19
|
-
*/
|
|
20
|
-
export declare type ServiceDataSet<T> = Partial<Record<string, Partial<Record<string, T>>>>;
|
|
21
|
-
/**
|
|
22
|
-
* 插件类型
|
|
23
|
-
*/
|
|
24
|
-
export declare enum PluginType {
|
|
25
|
-
/** 服务发现 */
|
|
26
|
-
NamingService = 1,
|
|
27
|
-
/** 本地名字服务 */
|
|
28
|
-
LocalRegistry = 2,
|
|
29
|
-
/** 服务路由 */
|
|
30
|
-
ServiceRouter = 4,
|
|
31
|
-
/** 负载均衡 */
|
|
32
|
-
LoadBalancer = 8,
|
|
33
|
-
/** 健康探测 */
|
|
34
|
-
OutlierDetector = 16,
|
|
35
|
-
/** 节点熔断 */
|
|
36
|
-
CircuitBreaker = 32,
|
|
37
|
-
/** 动态权重调整 */
|
|
38
|
-
WeightAdjuster = 64,
|
|
39
|
-
/** 统计上报 */
|
|
40
|
-
StatReporter = 128,
|
|
41
|
-
/** 日志跟踪 */
|
|
42
|
-
TraceLogging = 256,
|
|
43
|
-
/** 限流服务 */
|
|
44
|
-
RatelimitService = 512,
|
|
45
|
-
/** 流量整型 */
|
|
46
|
-
TrafficShaping = 1024 /** 1 << 10 */
|
|
47
|
-
}
|
|
48
|
-
/**
|
|
49
|
-
* 插件列表
|
|
50
|
-
*/
|
|
51
|
-
export interface PluginList {
|
|
52
|
-
/** 服务发现 */
|
|
53
|
-
[PluginType.NamingService]: NamingServicePlugin;
|
|
54
|
-
/** 本地名字服务 */
|
|
55
|
-
[PluginType.LocalRegistry]: LocalRegistryPlugin;
|
|
56
|
-
/** 服务路由 */
|
|
57
|
-
[PluginType.ServiceRouter]: ServiceRouterPlugin[];
|
|
58
|
-
/** 负载均衡 */
|
|
59
|
-
[PluginType.LoadBalancer]: LoadBalancerPlugin;
|
|
60
|
-
/** 健康探测 */
|
|
61
|
-
[PluginType.OutlierDetector]: OutlierDetectorPlugin[];
|
|
62
|
-
/** 节点熔断 */
|
|
63
|
-
[PluginType.CircuitBreaker]: CircuitBreakerPlugin;
|
|
64
|
-
/** 动态权重调整 */
|
|
65
|
-
[PluginType.WeightAdjuster]: WeightAdjusterPlugin[];
|
|
66
|
-
/** 统计上报 */
|
|
67
|
-
[PluginType.StatReporter]: StatReporterPlugin[];
|
|
68
|
-
/** 日志跟踪 */
|
|
69
|
-
[PluginType.TraceLogging]: TraceLoggingPlugin[];
|
|
70
|
-
/** 限流服务 */
|
|
71
|
-
[PluginType.RatelimitService]: RatelimitServicePlugin;
|
|
72
|
-
/** 流量整型 */
|
|
73
|
-
[PluginType.TrafficShaping]: TrafficShapingPlugin[];
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* 插件
|
|
77
|
-
*/
|
|
78
|
-
export interface Plugin {
|
|
79
|
-
/**
|
|
80
|
-
* 插件类型
|
|
81
|
-
* 此为 `PluginType` 组成的位域,
|
|
82
|
-
* 允许单个实例实现多种不同类型插件
|
|
83
|
-
*/
|
|
84
|
-
readonly type: number;
|
|
85
|
-
/**
|
|
86
|
-
* 插件名
|
|
87
|
-
* 尽量避免插件重名
|
|
88
|
-
*/
|
|
89
|
-
readonly name: string;
|
|
90
|
-
/**
|
|
91
|
-
* 是否已销毁(释放)
|
|
92
|
-
*/
|
|
93
|
-
readonly isDisposed?: boolean;
|
|
94
|
-
/**
|
|
95
|
-
* 销毁(释放)所占资源
|
|
96
|
-
* 被调用后插件不可重入
|
|
97
|
-
*/
|
|
98
|
-
dispose?(): void;
|
|
99
|
-
/**
|
|
100
|
-
* 设置日志输出模块
|
|
101
|
-
* @param logger 日志输出模块
|
|
102
|
-
*/
|
|
103
|
-
setLogger?(logger: Logger): void;
|
|
104
|
-
/**
|
|
105
|
-
* 设置全局变量
|
|
106
|
-
* @param variables 全局变量列表
|
|
107
|
-
*/
|
|
108
|
-
setVariables?(variables: Record<string, string>): void;
|
|
109
|
-
/**
|
|
110
|
-
* 获取当前插件配置
|
|
111
|
-
* 如插件无配置项,可不实现此接口
|
|
112
|
-
* @returns 当前插件配置
|
|
113
|
-
*/
|
|
114
|
-
getConfig?(): unknown;
|
|
115
|
-
}
|
|
116
|
-
/**
|
|
117
|
-
* 统计上报接口
|
|
118
|
-
*/
|
|
119
|
-
export interface StatReporterPlugin extends Plugin {
|
|
120
|
-
/**
|
|
121
|
-
* 上报 API 调用统计
|
|
122
|
-
* @param key 维度
|
|
123
|
-
* @param value 指标
|
|
124
|
-
* @returns 是否上报成功
|
|
125
|
-
*/
|
|
126
|
-
apiStatistics?(key: ApiStatKey, value: ApiStatValue): Promise<boolean>;
|
|
127
|
-
/**
|
|
128
|
-
* 上报服务间调用统计信息
|
|
129
|
-
* @param namespace 命名空间
|
|
130
|
-
* @param service 服务名
|
|
131
|
-
* @param stat 周期汇总统计信息
|
|
132
|
-
* @returns 是否上报成功
|
|
133
|
-
*/
|
|
134
|
-
serviceStatistics?(namespace: string, service: string, stat: ComputedStat): Promise<boolean>;
|
|
135
|
-
/**
|
|
136
|
-
* 上报本地仓库中服务状态
|
|
137
|
-
* @param namespace 命名空间
|
|
138
|
-
* @param service 服务名
|
|
139
|
-
* @param stat 周期汇总服务信息
|
|
140
|
-
* @returns 是否上报成功
|
|
141
|
-
*/
|
|
142
|
-
registryCache?(namespace: string, service: string, stat: CacheStat): Promise<boolean>;
|
|
143
|
-
/**
|
|
144
|
-
* 上报当前系统配置信息
|
|
145
|
-
* @param config 收集的配置信息
|
|
146
|
-
* @returns 是否上报成功
|
|
147
|
-
*/
|
|
148
|
-
systemConfig?(config: unknown): Promise<boolean>;
|
|
149
|
-
/**
|
|
150
|
-
* 上报实例状态变化情况
|
|
151
|
-
* @param namespace 命名空间
|
|
152
|
-
* @param service 服务名
|
|
153
|
-
* @param stat 周期汇总状态变更信息
|
|
154
|
-
* @returns 是否上报成功
|
|
155
|
-
*/
|
|
156
|
-
statusChangelog?(namespace: string, service: string, stat: StatusChangelog): Promise<boolean>;
|
|
157
|
-
}
|
|
158
|
-
/**
|
|
159
|
-
* 节点熔断插件
|
|
160
|
-
*/
|
|
161
|
-
export interface CircuitBreakerPlugin extends Plugin {
|
|
162
|
-
/**
|
|
163
|
-
* 周期熔断
|
|
164
|
-
*
|
|
165
|
-
* 统计周期结束时,判断节点熔断
|
|
166
|
-
*
|
|
167
|
-
* @param namespace 命名空间
|
|
168
|
-
* @param service 服务名
|
|
169
|
-
* @param instances 服务列表
|
|
170
|
-
* @param stat 周期汇总统计信息
|
|
171
|
-
* @returns 状态变更请求(只需包含需要变更状态的实例)
|
|
172
|
-
*/
|
|
173
|
-
period(namespace: string, service: string, instances: Instance[], stat: ComputedStat): Map<Instance, StatusChangeRequest>;
|
|
174
|
-
/**
|
|
175
|
-
* 实时熔断
|
|
176
|
-
*
|
|
177
|
-
* 用户上报时,判断节点熔断
|
|
178
|
-
*
|
|
179
|
-
* @param namespace 命名空间
|
|
180
|
-
* @param service 服务名
|
|
181
|
-
* @param instance 当前实例
|
|
182
|
-
* @param success 是否调用成功
|
|
183
|
-
* @param code 返回码(可选)
|
|
184
|
-
* @returns 状态变更请求(如需熔断)
|
|
185
|
-
*/
|
|
186
|
-
realtime(namespace: string, service: string, instance: Instance, success: boolean, code?: string): StatusChangeRequest | undefined;
|
|
187
|
-
}
|
|
188
|
-
/**
|
|
189
|
-
* 探测结果
|
|
190
|
-
*/
|
|
191
|
-
export declare const enum DetectResult {
|
|
192
|
-
/** 成功 */
|
|
193
|
-
Success = 0,
|
|
194
|
-
/** 失败 */
|
|
195
|
-
Failure = 1,
|
|
196
|
-
/** 其他 */
|
|
197
|
-
Other = 2
|
|
198
|
-
}
|
|
199
|
-
/**
|
|
200
|
-
* 健康探测插件
|
|
201
|
-
*/
|
|
202
|
-
export interface OutlierDetectorPlugin extends Plugin {
|
|
203
|
-
/**
|
|
204
|
-
* 主动健康探测
|
|
205
|
-
* @param instance 需探测的实例
|
|
206
|
-
* @returns 探测结果
|
|
207
|
-
*/
|
|
208
|
-
detect(instance: Instance): Promise<DetectResult>;
|
|
209
|
-
}
|
|
210
|
-
/**
|
|
211
|
-
* 权重类型
|
|
212
|
-
*/
|
|
213
|
-
export declare const enum WeightType {
|
|
214
|
-
/** 动态权重 */
|
|
215
|
-
Dynamic = 0,
|
|
216
|
-
/** 静态权重 */
|
|
217
|
-
Static = 1,
|
|
218
|
-
/** 无 */
|
|
219
|
-
None = 2
|
|
220
|
-
}
|
|
221
|
-
/**
|
|
222
|
-
* 负载均衡插件
|
|
223
|
-
*/
|
|
224
|
-
export interface LoadBalancerPlugin extends Plugin {
|
|
225
|
-
/**
|
|
226
|
-
* 支持的权重类型
|
|
227
|
-
*/
|
|
228
|
-
supportedWeightType: WeightType;
|
|
229
|
-
/**
|
|
230
|
-
* 通过特定负载均衡规则选取一个特定实例
|
|
231
|
-
* @param namespace 命名空间
|
|
232
|
-
* @param service 服务名
|
|
233
|
-
* @param instances 可选择的实例列表
|
|
234
|
-
* @param args 本次调用附加参数(可选)
|
|
235
|
-
* @returns 被选出的实例
|
|
236
|
-
*/
|
|
237
|
-
choose<AdditionalArgs>(namespace: string, service: string, instances: Instance[], args?: AdditionalArgs): Instance;
|
|
238
|
-
/**
|
|
239
|
-
* 当实例状态发生改变时调用
|
|
240
|
-
* @param namespace 命名空间
|
|
241
|
-
* @param service 服务名
|
|
242
|
-
* @param instance 发生状态改变的实例
|
|
243
|
-
* @param prevStatus 实例前序状态
|
|
244
|
-
*/
|
|
245
|
-
onStatusChange?(namespace: string, service: string, instance: Instance, prevStatus: InstanceStatus): void;
|
|
246
|
-
}
|
|
247
|
-
/**
|
|
248
|
-
* 动态权重调整插件
|
|
249
|
-
*/
|
|
250
|
-
export interface WeightAdjusterPlugin extends Plugin {
|
|
251
|
-
/**
|
|
252
|
-
* 权重调整
|
|
253
|
-
* @param namespace 命名空间
|
|
254
|
-
* @param service 服务名
|
|
255
|
-
* @param instances 实例列表
|
|
256
|
-
* @param stat 周期统计信息
|
|
257
|
-
*/
|
|
258
|
-
adjust(namespace: string, service: string, instances: Instance[], stat: ComputedStat): void;
|
|
259
|
-
}
|
|
260
|
-
/**
|
|
261
|
-
* 路由条件
|
|
262
|
-
*/
|
|
263
|
-
export declare enum RoutingCondition {
|
|
264
|
-
Found = 0,
|
|
265
|
-
NotFound = 1
|
|
266
|
-
}
|
|
267
|
-
/**
|
|
268
|
-
* 路由行为
|
|
269
|
-
*/
|
|
270
|
-
export declare enum RoutingAction {
|
|
271
|
-
/** 中断,不再查询本插件 */
|
|
272
|
-
Break = 0,
|
|
273
|
-
/** 旁通,旁通路由链上特定插件(可包含本插件) */
|
|
274
|
-
Bypass = 1
|
|
275
|
-
}
|
|
276
|
-
/** 中断行为 */
|
|
277
|
-
export declare type BreakAction = Record<RoutingAction.Break, boolean>;
|
|
278
|
-
/** 旁通行为 */
|
|
279
|
-
export declare type BypassAction = Record<RoutingAction.Bypass, string[]>;
|
|
280
|
-
/**
|
|
281
|
-
* 目标查询规则
|
|
282
|
-
*/
|
|
283
|
-
export interface DestinationQuery {
|
|
284
|
-
/**
|
|
285
|
-
* 控制器,可根据匹配结果控制后续处理方式
|
|
286
|
-
* 如不填则以缺省方式处理
|
|
287
|
-
*/
|
|
288
|
-
controller: Partial<Record<RoutingCondition, Partial<BreakAction & BypassAction>>>;
|
|
289
|
-
/**
|
|
290
|
-
* 目标信息
|
|
291
|
-
*/
|
|
292
|
-
destination: Partial<DestinationInfo>;
|
|
293
|
-
/**
|
|
294
|
-
* 源信息
|
|
295
|
-
*/
|
|
296
|
-
source?: Partial<SourceInfo>;
|
|
297
|
-
}
|
|
298
|
-
export interface SourceInfo {
|
|
299
|
-
/**
|
|
300
|
-
* 主调方元数据所匹配出的参数列表
|
|
301
|
-
*/
|
|
302
|
-
parameters: Record<string, string>;
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* 目标信息
|
|
306
|
-
*/
|
|
307
|
-
export interface DestinationInfo {
|
|
308
|
-
/**
|
|
309
|
-
* 被转发服务名
|
|
310
|
-
*/
|
|
311
|
-
transfer: string;
|
|
312
|
-
/**
|
|
313
|
-
* 被调方服务名
|
|
314
|
-
*/
|
|
315
|
-
service: string;
|
|
316
|
-
/**
|
|
317
|
-
* 被调方元数据匹配条件
|
|
318
|
-
*/
|
|
319
|
-
metadata: MetadataCondition;
|
|
320
|
-
/**
|
|
321
|
-
* 位置信息比较级别
|
|
322
|
-
*/
|
|
323
|
-
level: LocationMatchLevel;
|
|
324
|
-
}
|
|
325
|
-
/**
|
|
326
|
-
* 二次过滤结果
|
|
327
|
-
*/
|
|
328
|
-
export interface FilteredResult {
|
|
329
|
-
/**
|
|
330
|
-
* 匹配的实例
|
|
331
|
-
*/
|
|
332
|
-
filtered: Instance[];
|
|
333
|
-
/**
|
|
334
|
-
* 路由行为(可选)
|
|
335
|
-
*/
|
|
336
|
-
action?: Partial<BreakAction & BypassAction>;
|
|
337
|
-
}
|
|
338
|
-
/**
|
|
339
|
-
* 前置要求
|
|
340
|
-
*/
|
|
341
|
-
export declare enum RequisiteBitfield {
|
|
342
|
-
/** 无 */
|
|
343
|
-
None = 0,
|
|
344
|
-
/** 规则 */
|
|
345
|
-
Rule = 1
|
|
346
|
-
}
|
|
347
|
-
/**
|
|
348
|
-
* 路由插件
|
|
349
|
-
*/
|
|
350
|
-
export interface ServiceRouterPlugin extends Plugin {
|
|
351
|
-
/**
|
|
352
|
-
* 前置要求
|
|
353
|
-
* 此为 `RequisiteBitfield` 组成的位域
|
|
354
|
-
*/
|
|
355
|
-
requisite: number;
|
|
356
|
-
/**
|
|
357
|
-
* 通用查询
|
|
358
|
-
* @param callee 被调方服务信息
|
|
359
|
-
* @param rules 全量路由规则(可选)
|
|
360
|
-
* @param caller 主调方服务信息(可选)
|
|
361
|
-
* @param args 本次调用附加参数(可选)
|
|
362
|
-
* @returns 目标查询规则
|
|
363
|
-
*/
|
|
364
|
-
query<AdditionalArgs>(callee: Service, rules?: RoutingRules[], caller?: Service, args?: AdditionalArgs): Iterable<Partial<DestinationQuery>>;
|
|
365
|
-
/**
|
|
366
|
-
* 二次过滤
|
|
367
|
-
* @description 通用查询的每个迭代均会调用此方法,用于通用查询给出的结果的二次过滤,以满足通用查询无法支持的特定需求
|
|
368
|
-
* @param instances 待过滤的实例
|
|
369
|
-
* @param query 目标查询规则
|
|
370
|
-
* @param args 本次调用附加参数(可选)
|
|
371
|
-
* @returns 过滤结果
|
|
372
|
-
*/
|
|
373
|
-
filter?<AdditionalArgs>(instances: Instance[], query: Partial<DestinationQuery>, args?: AdditionalArgs): FilteredResult;
|
|
374
|
-
}
|
|
375
|
-
/**
|
|
376
|
-
* 数据存取接口
|
|
377
|
-
*/
|
|
378
|
-
export interface RegistryData<T> {
|
|
379
|
-
/**
|
|
380
|
-
* 获取数据
|
|
381
|
-
* @param namespace 命名空间
|
|
382
|
-
* @param service 服务名
|
|
383
|
-
* @returns 带版本号的数据(可为空)
|
|
384
|
-
*/
|
|
385
|
-
get(namespace: string, service: string): DataWithRevision<T> | null;
|
|
386
|
-
/**
|
|
387
|
-
* 设置数据
|
|
388
|
-
* @param namespace 命名空间
|
|
389
|
-
* @param service 服务名
|
|
390
|
-
* @param data 带版本号的数据
|
|
391
|
-
*/
|
|
392
|
-
set(namespace: string, service: string, data: DataWithRevision<T>): void;
|
|
393
|
-
/**
|
|
394
|
-
* 删除数据
|
|
395
|
-
* @param namespace 命名空间
|
|
396
|
-
* @param service 服务名
|
|
397
|
-
* @returns 删除是否成功(数据是否存在)
|
|
398
|
-
*/
|
|
399
|
-
delete(namespace: string, service: string): boolean;
|
|
400
|
-
/**
|
|
401
|
-
* 获取全部数据
|
|
402
|
-
* @returns 当前存储的全部数据,数据组织结构为:`namespace(命名空间)`.`service(服务名)` = DataWithRevision<T>
|
|
403
|
-
*/
|
|
404
|
-
all(): ServiceDataSet<DataWithRevision<T>>;
|
|
405
|
-
}
|
|
406
|
-
/**
|
|
407
|
-
* 数据存储类别
|
|
408
|
-
*/
|
|
409
|
-
export declare enum RegistryCategory {
|
|
410
|
-
/** 实例 */
|
|
411
|
-
Instance = "Instance",
|
|
412
|
-
/** 规则 */
|
|
413
|
-
Rule = "Rule",
|
|
414
|
-
/** 流控 */
|
|
415
|
-
Ratelimit = "Ratelimit"
|
|
416
|
-
}
|
|
417
|
-
/**
|
|
418
|
-
* 本地名字服务插件
|
|
419
|
-
*/
|
|
420
|
-
export interface LocalRegistryPlugin extends Plugin {
|
|
421
|
-
/**
|
|
422
|
-
* 实例
|
|
423
|
-
*/
|
|
424
|
-
[RegistryCategory.Instance]: RegistryData<Instance[]>;
|
|
425
|
-
/**
|
|
426
|
-
* 规则
|
|
427
|
-
*/
|
|
428
|
-
[RegistryCategory.Rule]: RegistryData<ServiceRules>;
|
|
429
|
-
/**
|
|
430
|
-
* 流控
|
|
431
|
-
*/
|
|
432
|
-
[RegistryCategory.Ratelimit]: RegistryData<RatelimitRule[]>;
|
|
433
|
-
}
|
|
434
|
-
/**
|
|
435
|
-
* 健康检查类型
|
|
436
|
-
*/
|
|
437
|
-
export declare enum HealthCheckType {
|
|
438
|
-
UNKNOWN = 0,
|
|
439
|
-
HEARTBEAT = 1
|
|
440
|
-
}
|
|
441
|
-
/**
|
|
442
|
-
* 注册选项
|
|
443
|
-
*/
|
|
444
|
-
export interface RegisterOptions {
|
|
445
|
-
/**
|
|
446
|
-
* 是否开启健康检查
|
|
447
|
-
*/
|
|
448
|
-
enableHealthCheck: boolean;
|
|
449
|
-
/**
|
|
450
|
-
* 实例健康检查类型
|
|
451
|
-
*/
|
|
452
|
-
healthCheckType: HealthCheckType;
|
|
453
|
-
/**
|
|
454
|
-
* 超时时间(秒)
|
|
455
|
-
*/
|
|
456
|
-
healthCheckTTL: number;
|
|
457
|
-
}
|
|
458
|
-
/**
|
|
459
|
-
* 服务规则
|
|
460
|
-
*/
|
|
461
|
-
export interface ServiceRules {
|
|
462
|
-
/**
|
|
463
|
-
* 入站规则
|
|
464
|
-
*/
|
|
465
|
-
in: RoutingRules[];
|
|
466
|
-
/**
|
|
467
|
-
* 出站规则
|
|
468
|
-
*/
|
|
469
|
-
out: RoutingRules[];
|
|
470
|
-
}
|
|
471
|
-
/**
|
|
472
|
-
* 待服务注册的实例类型
|
|
473
|
-
*/
|
|
474
|
-
export declare type RegistrationInstance = RequireKeys<Partial<Omit<Instance, "dynamicWeight">>, "host" | "port">;
|
|
475
|
-
/**
|
|
476
|
-
* 运行模式
|
|
477
|
-
*/
|
|
478
|
-
export declare enum OperatingMode {
|
|
479
|
-
/** 内部 */
|
|
480
|
-
Internal = 0,
|
|
481
|
-
/** 外部 */
|
|
482
|
-
External = 1
|
|
483
|
-
}
|
|
484
|
-
/**
|
|
485
|
-
* 名字服务插件
|
|
486
|
-
*/
|
|
487
|
-
export interface NamingServicePlugin extends Plugin {
|
|
488
|
-
/**
|
|
489
|
-
* 运行模式
|
|
490
|
-
*/
|
|
491
|
-
readonly mode: OperatingMode;
|
|
492
|
-
/**
|
|
493
|
-
* 客户端位置信息
|
|
494
|
-
*/
|
|
495
|
-
readonly location?: Location;
|
|
496
|
-
/**
|
|
497
|
-
* 获取单个服务实例
|
|
498
|
-
* @param namespace 命名空间
|
|
499
|
-
* @param service 服务名
|
|
500
|
-
* @param metadata 元数据信息,用于过滤服务实例,可选
|
|
501
|
-
* @returns 选出的实例(可为空)
|
|
502
|
-
*/
|
|
503
|
-
select?(namespace: string, service: string, metadata?: Metadata): Promise<Instance | null>;
|
|
504
|
-
/**
|
|
505
|
-
* 获取全部服务实例
|
|
506
|
-
* @note 返回的每个实例中的字段 `id` | `host` | `port` | `staticWeight` | `status` 不能为假值
|
|
507
|
-
* @param namespace 命名空间
|
|
508
|
-
* @param service 服务名
|
|
509
|
-
* @param revision 修订版本号
|
|
510
|
-
* @returns 带版本号的实例列表
|
|
511
|
-
*/
|
|
512
|
-
list(namespace: string, service: string, revision?: string): Promise<DataWithRevision<Instance[]>>;
|
|
513
|
-
/**
|
|
514
|
-
* 获取路由规则
|
|
515
|
-
* @param namespace 命名空间
|
|
516
|
-
* @param service 服务名
|
|
517
|
-
* @param revision 修订版本号
|
|
518
|
-
* @returns 服务规则
|
|
519
|
-
*/
|
|
520
|
-
routingRules(namespace: string, service: string, revision?: string): Promise<DataWithRevision<ServiceRules>>;
|
|
521
|
-
/**
|
|
522
|
-
* 服务注册
|
|
523
|
-
* @param namespace 命名空间
|
|
524
|
-
* @param service 服务名
|
|
525
|
-
* @param token 服务 Token 用来鉴权
|
|
526
|
-
* @param instance 待注册的实例
|
|
527
|
-
* @param options 注册选项
|
|
528
|
-
* @returns 实例唯一 ID
|
|
529
|
-
*/
|
|
530
|
-
register(namespace: string, service: string, token: string, instance: RegistrationInstance, options?: RegisterOptions): Promise<string>;
|
|
531
|
-
/**
|
|
532
|
-
* 服务注销
|
|
533
|
-
* @param id 实例唯一 ID
|
|
534
|
-
* @param token 服务 Token 用来鉴权
|
|
535
|
-
* @returns 是否注销成功
|
|
536
|
-
*/
|
|
537
|
-
unregister(id: string, token: string): Promise<boolean>;
|
|
538
|
-
/**
|
|
539
|
-
* 服务注销
|
|
540
|
-
* @param namespace 命名空间
|
|
541
|
-
* @param service 服务名
|
|
542
|
-
* @param host 节点 IP 或者域名
|
|
543
|
-
* @param port 节点端口号
|
|
544
|
-
* @param token 服务 Token 用来鉴权
|
|
545
|
-
* @returns 是否注销成功
|
|
546
|
-
*/
|
|
547
|
-
unregister(namespace: string, service: string, host: string, port: number, token: string): Promise<boolean>;
|
|
548
|
-
/**
|
|
549
|
-
* 服务心跳上报
|
|
550
|
-
* @param id 实例唯一 ID
|
|
551
|
-
* @param token 服务 Token 用来鉴权
|
|
552
|
-
* @returns 是否发送成功
|
|
553
|
-
*/
|
|
554
|
-
heartbeat(id: string, token: string): Promise<boolean>;
|
|
555
|
-
/**
|
|
556
|
-
* 服务心跳上报
|
|
557
|
-
* @param namespace 命名空间
|
|
558
|
-
* @param service 服务名
|
|
559
|
-
* @param host 节点 IP 或者域名
|
|
560
|
-
* @param port 节点端口号
|
|
561
|
-
* @param token 服务 Token 用来鉴权
|
|
562
|
-
* @returns 是否发送成功
|
|
563
|
-
*/
|
|
564
|
-
heartbeat(namespace: string, service: string, host: string, port: number, token: string): Promise<boolean>;
|
|
565
|
-
}
|
|
566
|
-
/**
|
|
567
|
-
* 限流服务插件
|
|
568
|
-
*/
|
|
569
|
-
export interface RatelimitServicePlugin extends Plugin {
|
|
570
|
-
/**
|
|
571
|
-
* 获取限流规则
|
|
572
|
-
* @param namespace 命名空间
|
|
573
|
-
* @param service 服务名
|
|
574
|
-
* @returns 限流规则
|
|
575
|
-
*/
|
|
576
|
-
ratelimitRules(namespace: string, service: string, revision?: string): Promise<DataWithRevision<RatelimitRule[]>>;
|
|
577
|
-
/**
|
|
578
|
-
* 获取限流配额
|
|
579
|
-
* @param namespace 命名空间
|
|
580
|
-
* @param service 服务名
|
|
581
|
-
* @param rule 限流规则
|
|
582
|
-
* @param used 周期已使用的配额
|
|
583
|
-
* @returns 当前周期所使用的配额总量
|
|
584
|
-
*/
|
|
585
|
-
acquireQuota(namespace: string, service: string, rule: RatelimitRule, used: QuotaConfig[]): Promise<QuotaConfig[]>;
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* 日志跟踪插件
|
|
589
|
-
*/
|
|
590
|
-
export interface TraceLoggingPlugin extends Omit<Plugin, "setLogger"> {
|
|
591
|
-
/**
|
|
592
|
-
* 输出普通日志
|
|
593
|
-
* @param severity 日志级别
|
|
594
|
-
* @param prefix 前缀(可选)
|
|
595
|
-
* @param message 日志内容(可选)
|
|
596
|
-
* @param optionalParams 附加参数
|
|
597
|
-
*/
|
|
598
|
-
log(severity: LogVerbosity, prefix?: unknown, message?: unknown, ...optionalParams: unknown[]): void;
|
|
599
|
-
/**
|
|
600
|
-
* 输出跟踪日志
|
|
601
|
-
* @param tracer 发起者
|
|
602
|
-
* @param transaction 跟踪 ID(可选)
|
|
603
|
-
* @param message 日志内容(可选)
|
|
604
|
-
* @param optionalParams 附加参数
|
|
605
|
-
*/
|
|
606
|
-
trace(tracer: string, transaction?: unknown, message?: unknown, ...optionalParams: unknown[]): void;
|
|
607
|
-
}
|
|
608
|
-
/**
|
|
609
|
-
* 流量整型插件
|
|
610
|
-
*/
|
|
611
|
-
export interface TrafficShapingPlugin extends Plugin {
|
|
612
|
-
/**
|
|
613
|
-
* 流量控制
|
|
614
|
-
* @param rule 限流规则
|
|
615
|
-
* @param partition 当前限流规则分区数
|
|
616
|
-
* @returns 返回当前申请配额的 {Promise} 对象
|
|
617
|
-
*/
|
|
618
|
-
inFlow(rule: RatelimitRule, partition: number): Promise<void>;
|
|
619
|
-
}
|
|
@@ -1,91 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
/* eslint-disable max-len */
|
|
3
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.OperatingMode = exports.HealthCheckType = exports.RegistryCategory = exports.RequisiteBitfield = exports.RoutingAction = exports.RoutingCondition = exports.PluginType = void 0;
|
|
5
|
-
/**
|
|
6
|
-
* 插件类型
|
|
7
|
-
*/
|
|
8
|
-
var PluginType;
|
|
9
|
-
(function (PluginType) {
|
|
10
|
-
/** 服务发现 */
|
|
11
|
-
PluginType[PluginType["NamingService"] = 1] = "NamingService";
|
|
12
|
-
/** 本地名字服务 */
|
|
13
|
-
PluginType[PluginType["LocalRegistry"] = 2] = "LocalRegistry";
|
|
14
|
-
/** 服务路由 */
|
|
15
|
-
PluginType[PluginType["ServiceRouter"] = 4] = "ServiceRouter";
|
|
16
|
-
/** 负载均衡 */
|
|
17
|
-
PluginType[PluginType["LoadBalancer"] = 8] = "LoadBalancer";
|
|
18
|
-
/** 健康探测 */
|
|
19
|
-
PluginType[PluginType["OutlierDetector"] = 16] = "OutlierDetector";
|
|
20
|
-
/** 节点熔断 */
|
|
21
|
-
PluginType[PluginType["CircuitBreaker"] = 32] = "CircuitBreaker";
|
|
22
|
-
/** 动态权重调整 */
|
|
23
|
-
PluginType[PluginType["WeightAdjuster"] = 64] = "WeightAdjuster";
|
|
24
|
-
/** 统计上报 */
|
|
25
|
-
PluginType[PluginType["StatReporter"] = 128] = "StatReporter";
|
|
26
|
-
/** 日志跟踪 */
|
|
27
|
-
PluginType[PluginType["TraceLogging"] = 256] = "TraceLogging";
|
|
28
|
-
/** 限流服务 */
|
|
29
|
-
PluginType[PluginType["RatelimitService"] = 512] = "RatelimitService";
|
|
30
|
-
/** 流量整型 */
|
|
31
|
-
PluginType[PluginType["TrafficShaping"] = 1024] = "TrafficShaping"; /** 1 << 10 */
|
|
32
|
-
})(PluginType = exports.PluginType || (exports.PluginType = {}));
|
|
33
|
-
/**
|
|
34
|
-
* 路由条件
|
|
35
|
-
*/
|
|
36
|
-
var RoutingCondition;
|
|
37
|
-
(function (RoutingCondition) {
|
|
38
|
-
RoutingCondition[RoutingCondition["Found"] = 0] = "Found";
|
|
39
|
-
RoutingCondition[RoutingCondition["NotFound"] = 1] = "NotFound";
|
|
40
|
-
})(RoutingCondition = exports.RoutingCondition || (exports.RoutingCondition = {}));
|
|
41
|
-
/**
|
|
42
|
-
* 路由行为
|
|
43
|
-
*/
|
|
44
|
-
var RoutingAction;
|
|
45
|
-
(function (RoutingAction) {
|
|
46
|
-
/** 中断,不再查询本插件 */
|
|
47
|
-
RoutingAction[RoutingAction["Break"] = 0] = "Break";
|
|
48
|
-
/** 旁通,旁通路由链上特定插件(可包含本插件) */
|
|
49
|
-
RoutingAction[RoutingAction["Bypass"] = 1] = "Bypass";
|
|
50
|
-
})(RoutingAction = exports.RoutingAction || (exports.RoutingAction = {}));
|
|
51
|
-
/**
|
|
52
|
-
* 前置要求
|
|
53
|
-
*/
|
|
54
|
-
var RequisiteBitfield;
|
|
55
|
-
(function (RequisiteBitfield) {
|
|
56
|
-
/** 无 */
|
|
57
|
-
RequisiteBitfield[RequisiteBitfield["None"] = 0] = "None";
|
|
58
|
-
/** 规则 */
|
|
59
|
-
RequisiteBitfield[RequisiteBitfield["Rule"] = 1] = "Rule";
|
|
60
|
-
})(RequisiteBitfield = exports.RequisiteBitfield || (exports.RequisiteBitfield = {}));
|
|
61
|
-
/**
|
|
62
|
-
* 数据存储类别
|
|
63
|
-
*/
|
|
64
|
-
var RegistryCategory;
|
|
65
|
-
(function (RegistryCategory) {
|
|
66
|
-
/** 实例 */
|
|
67
|
-
RegistryCategory["Instance"] = "Instance";
|
|
68
|
-
/** 规则 */
|
|
69
|
-
RegistryCategory["Rule"] = "Rule";
|
|
70
|
-
/** 流控 */
|
|
71
|
-
RegistryCategory["Ratelimit"] = "Ratelimit";
|
|
72
|
-
})(RegistryCategory = exports.RegistryCategory || (exports.RegistryCategory = {}));
|
|
73
|
-
/**
|
|
74
|
-
* 健康检查类型
|
|
75
|
-
*/
|
|
76
|
-
var HealthCheckType;
|
|
77
|
-
(function (HealthCheckType) {
|
|
78
|
-
HealthCheckType[HealthCheckType["UNKNOWN"] = 0] = "UNKNOWN";
|
|
79
|
-
HealthCheckType[HealthCheckType["HEARTBEAT"] = 1] = "HEARTBEAT";
|
|
80
|
-
})(HealthCheckType = exports.HealthCheckType || (exports.HealthCheckType = {}));
|
|
81
|
-
/**
|
|
82
|
-
* 运行模式
|
|
83
|
-
*/
|
|
84
|
-
var OperatingMode;
|
|
85
|
-
(function (OperatingMode) {
|
|
86
|
-
/** 内部 */
|
|
87
|
-
OperatingMode[OperatingMode["Internal"] = 0] = "Internal";
|
|
88
|
-
/** 外部 */
|
|
89
|
-
OperatingMode[OperatingMode["External"] = 1] = "External";
|
|
90
|
-
})(OperatingMode = exports.OperatingMode || (exports.OperatingMode = {}));
|
|
91
|
-
//# sourceMappingURL=plugins.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"plugins.js","sourceRoot":"","sources":["../src/plugins.ts"],"names":[],"mappings":";AAAA,4BAA4B;;;AA0B5B;;GAEG;AACH,IAAY,UAuBX;AAvBD,WAAY,UAAU;IACpB,WAAW;IACX,6DAAiB,CAAA;IACjB,aAAa;IACb,6DAAiB,CAAA;IACjB,WAAW;IACX,6DAAiB,CAAA;IACjB,WAAW;IACX,2DAAgB,CAAA;IAChB,WAAW;IACX,kEAAoB,CAAA;IACpB,WAAW;IACX,gEAAmB,CAAA;IACnB,aAAa;IACb,gEAAmB,CAAA;IACnB,WAAW;IACX,6DAAkB,CAAA;IAClB,WAAW;IACX,6DAAkB,CAAA;IAClB,WAAW;IACX,qEAAsB,CAAA;IACtB,WAAW;IACX,kEAAqB,CAAA,CAAG,cAAc;AACxC,CAAC,EAvBW,UAAU,GAAV,kBAAU,KAAV,kBAAU,QAuBrB;AA4OD;;GAEG;AACH,IAAY,gBAGX;AAHD,WAAY,gBAAgB;IAC1B,yDAAK,CAAA;IACL,+DAAQ,CAAA;AACV,CAAC,EAHW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAG3B;AAED;;GAEG;AACH,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,iBAAiB;IACjB,mDAAK,CAAA;IACL,4BAA4B;IAC5B,qDAAM,CAAA;AACR,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB;AA2ED;;GAEG;AACH,IAAY,iBAKX;AALD,WAAY,iBAAiB;IAC3B,QAAQ;IACR,yDAAQ,CAAA;IACR,SAAS;IACT,yDAAa,CAAA;AACf,CAAC,EALW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAK5B;AAoED;;GAEG;AACH,IAAY,gBAOX;AAPD,WAAY,gBAAgB;IAC1B,SAAS;IACT,yCAAqB,CAAA;IACrB,SAAS;IACT,iCAAa,CAAA;IACb,SAAS;IACT,2CAAuB,CAAA;AACzB,CAAC,EAPW,gBAAgB,GAAhB,wBAAgB,KAAhB,wBAAgB,QAO3B;AAsBD;;GAEG;AACH,IAAY,eAGX;AAHD,WAAY,eAAe;IACzB,2DAAW,CAAA;IACX,+DAAa,CAAA;AACf,CAAC,EAHW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAG1B;AA0CD;;GAEG;AACH,IAAY,aAKX;AALD,WAAY,aAAa;IACvB,SAAS;IACT,yDAAQ,CAAA;IACR,SAAS;IACT,yDAAQ,CAAA;AACV,CAAC,EALW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAKxB"}
|