@remnawave/xtls-sdk 0.0.1
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 +104 -0
- package/build/index.d.ts +8 -0
- package/build/index.d.ts.map +1 -0
- package/build/index.js +13 -0
- package/build/scripts/export-protos.d.ts +2 -0
- package/build/scripts/export-protos.d.ts.map +1 -0
- package/build/scripts/export-protos.js +122 -0
- package/build/src/common/errors/index.d.ts +2 -0
- package/build/src/common/errors/index.d.ts.map +1 -0
- package/build/src/common/errors/index.js +17 -0
- package/build/src/common/errors/stats/index.d.ts +2 -0
- package/build/src/common/errors/stats/index.d.ts.map +1 -0
- package/build/src/common/errors/stats/index.js +17 -0
- package/build/src/common/errors/stats/stats.errors.d.ts +39 -0
- package/build/src/common/errors/stats/stats.errors.d.ts.map +1 -0
- package/build/src/common/errors/stats/stats.errors.js +38 -0
- package/build/src/common/types/index.d.ts +2 -0
- package/build/src/common/types/index.d.ts.map +1 -0
- package/build/src/common/types/index.js +17 -0
- package/build/src/common/types/sdk-response.d.ts +6 -0
- package/build/src/common/types/sdk-response.d.ts.map +1 -0
- package/build/src/common/types/sdk-response.js +2 -0
- package/build/src/handler/handler.service.d.ts +1 -0
- package/build/src/handler/handler.service.d.ts.map +1 -0
- package/build/src/handler/handler.service.js +1 -0
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.d.ts +21 -0
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.js +42 -0
- package/build/src/stats/models/get-all-inbounds-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-all-inbounds-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-inbounds-stats/index.js +17 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/inbound.interface.d.ts +6 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/inbound.interface.d.ts.map +1 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/inbound.interface.js +2 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-inbounds-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.d.ts +21 -0
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.js +42 -0
- package/build/src/stats/models/get-all-outbounds-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-all-outbounds-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-outbounds-stats/index.js +17 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/outbound.interface.d.ts +6 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/outbound.interface.d.ts.map +1 -0
- package/build/src/stats/models/get-all-outbounds-stats/interfaces/outbound.interface.js +2 -0
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.d.ts +21 -0
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.js +42 -0
- package/build/src/stats/models/get-all-users-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-all-users-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-users-stats/index.js +17 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/user.interface.d.ts +6 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/user.interface.d.ts.map +1 -0
- package/build/src/stats/models/get-all-users-stats/interfaces/user.interface.js +2 -0
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.d.ts +27 -0
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.js +46 -0
- package/build/src/stats/models/get-inbound-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-inbound-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-inbound-stats/index.js +17 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/inbound.interface.d.ts +6 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/inbound.interface.d.ts.map +1 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/inbound.interface.js +2 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-inbound-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.d.ts +27 -0
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.js +46 -0
- package/build/src/stats/models/get-outbound-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-outbound-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-outbound-stats/index.js +17 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/outbound.d.ts +6 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/outbound.d.ts.map +1 -0
- package/build/src/stats/models/get-outbound-stats/interfaces/outbound.js +2 -0
- package/build/src/stats/models/get-sys-stats/get-sys-stats.response.model.d.ts +15 -0
- package/build/src/stats/models/get-sys-stats/get-sys-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-sys-stats/get-sys-stats.response.model.js +22 -0
- package/build/src/stats/models/get-sys-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-sys-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-sys-stats/index.js +17 -0
- package/build/src/stats/models/get-user-online-status/get-user-online-status.response.model.d.ts +5 -0
- package/build/src/stats/models/get-user-online-status/get-user-online-status.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-user-online-status/get-user-online-status.response.model.js +9 -0
- package/build/src/stats/models/get-user-online-status/index.d.ts +2 -0
- package/build/src/stats/models/get-user-online-status/index.d.ts.map +1 -0
- package/build/src/stats/models/get-user-online-status/index.js +17 -0
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.d.ts +26 -0
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.d.ts.map +1 -0
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.js +46 -0
- package/build/src/stats/models/get-user-stats/index.d.ts +2 -0
- package/build/src/stats/models/get-user-stats/index.d.ts.map +1 -0
- package/build/src/stats/models/get-user-stats/index.js +17 -0
- package/build/src/stats/models/get-user-stats/interfaces/index.d.ts +2 -0
- package/build/src/stats/models/get-user-stats/interfaces/index.d.ts.map +1 -0
- package/build/src/stats/models/get-user-stats/interfaces/index.js +17 -0
- package/build/src/stats/models/get-user-stats/interfaces/user.interface.d.ts +6 -0
- package/build/src/stats/models/get-user-stats/interfaces/user.interface.d.ts.map +1 -0
- package/build/src/stats/models/get-user-stats/interfaces/user.interface.js +2 -0
- package/build/src/stats/models/index.d.ts +9 -0
- package/build/src/stats/models/index.d.ts.map +1 -0
- package/build/src/stats/models/index.js +24 -0
- package/build/src/stats/stats.service.d.ts +227 -0
- package/build/src/stats/stats.service.d.ts.map +1 -0
- package/build/src/stats/stats.service.js +399 -0
- package/build/src/xray-protos/app/commander/config.d.ts +37 -0
- package/build/src/xray-protos/app/commander/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/commander/config.js +143 -0
- package/build/src/xray-protos/app/dispatcher/config.d.ts +26 -0
- package/build/src/xray-protos/app/dispatcher/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/dispatcher/config.js +112 -0
- package/build/src/xray-protos/app/dns/config.d.ts +93 -0
- package/build/src/xray-protos/app/dns/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/dns/config.js +707 -0
- package/build/src/xray-protos/app/dns/fakedns/fakedns.d.ts +30 -0
- package/build/src/xray-protos/app/dns/fakedns/fakedns.d.ts.map +1 -0
- package/build/src/xray-protos/app/dns/fakedns/fakedns.js +152 -0
- package/build/src/xray-protos/app/log/command/config.d.ts +51 -0
- package/build/src/xray-protos/app/log/command/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/log/command/config.js +143 -0
- package/build/src/xray-protos/app/log/config.d.ts +38 -0
- package/build/src/xray-protos/app/log/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/log/config.js +216 -0
- package/build/src/xray-protos/app/metrics/config.d.ts +24 -0
- package/build/src/xray-protos/app/metrics/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/metrics/config.js +68 -0
- package/build/src/xray-protos/app/observatory/burst/config.d.ts +41 -0
- package/build/src/xray-protos/app/observatory/burst/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/observatory/burst/config.js +223 -0
- package/build/src/xray-protos/app/observatory/command/command.d.ts +53 -0
- package/build/src/xray-protos/app/observatory/command/command.d.ts.map +1 -0
- package/build/src/xray-protos/app/observatory/command/command.js +166 -0
- package/build/src/xray-protos/app/observatory/config.d.ts +106 -0
- package/build/src/xray-protos/app/observatory/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/observatory/config.js +628 -0
- package/build/src/xray-protos/app/policy/config.d.ts +78 -0
- package/build/src/xray-protos/app/policy/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/policy/config.js +750 -0
- package/build/src/xray-protos/app/proxyman/command/command.d.ts +198 -0
- package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -0
- package/build/src/xray-protos/app/proxyman/command/command.js +1028 -0
- package/build/src/xray-protos/app/proxyman/config.d.ts +125 -0
- package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/proxyman/config.js +958 -0
- package/build/src/xray-protos/app/reverse/config.d.ts +48 -0
- package/build/src/xray-protos/app/reverse/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/reverse/config.js +361 -0
- package/build/src/xray-protos/app/router/command/command.d.ts +222 -0
- package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -0
- package/build/src/xray-protos/app/router/command/command.js +1235 -0
- package/build/src/xray-protos/app/router/config.d.ts +176 -0
- package/build/src/xray-protos/app/router/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/router/config.js +1484 -0
- package/build/src/xray-protos/app/stats/command/command.d.ts +121 -0
- package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -0
- package/build/src/xray-protos/app/stats/command/command.js +666 -0
- package/build/src/xray-protos/app/stats/config.d.ts +28 -0
- package/build/src/xray-protos/app/stats/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/stats/config.js +140 -0
- package/build/src/xray-protos/common/log/log.d.ts +12 -0
- package/build/src/xray-protos/common/log/log.d.ts.map +1 -0
- package/build/src/xray-protos/common/log/log.js +61 -0
- package/build/src/xray-protos/common/net/address.d.ts +29 -0
- package/build/src/xray-protos/common/net/address.d.ts.map +1 -0
- package/build/src/xray-protos/common/net/address.js +111 -0
- package/build/src/xray-protos/common/net/destination.d.ts +27 -0
- package/build/src/xray-protos/common/net/destination.d.ts.map +1 -0
- package/build/src/xray-protos/common/net/destination.js +105 -0
- package/build/src/xray-protos/common/net/network.d.ts +32 -0
- package/build/src/xray-protos/common/net/network.d.ts.map +1 -0
- package/build/src/xray-protos/common/net/network.js +122 -0
- package/build/src/xray-protos/common/net/port.d.ts +32 -0
- package/build/src/xray-protos/common/net/port.d.ts.map +1 -0
- package/build/src/xray-protos/common/net/port.js +142 -0
- package/build/src/xray-protos/common/protocol/headers.d.ts +34 -0
- package/build/src/xray-protos/common/protocol/headers.d.ts.map +1 -0
- package/build/src/xray-protos/common/protocol/headers.js +126 -0
- package/build/src/xray-protos/common/protocol/server_spec.d.ts +26 -0
- package/build/src/xray-protos/common/protocol/server_spec.d.ts.map +1 -0
- package/build/src/xray-protos/common/protocol/server_spec.js +105 -0
- package/build/src/xray-protos/common/protocol/user.d.ts +30 -0
- package/build/src/xray-protos/common/protocol/user.d.ts.map +1 -0
- package/build/src/xray-protos/common/protocol/user.js +104 -0
- package/build/src/xray-protos/common/serial/typed_message.d.ts +26 -0
- package/build/src/xray-protos/common/serial/typed_message.d.ts.map +1 -0
- package/build/src/xray-protos/common/serial/typed_message.js +111 -0
- package/build/src/xray-protos/core/config.d.ts +74 -0
- package/build/src/xray-protos/core/config.d.ts.map +1 -0
- package/build/src/xray-protos/core/config.js +350 -0
- package/build/src/xray-protos/proxy/blackhole/config.d.ts +31 -0
- package/build/src/xray-protos/proxy/blackhole/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/blackhole/config.js +152 -0
- package/build/src/xray-protos/proxy/dns/config.d.ts +30 -0
- package/build/src/xray-protos/proxy/dns/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/dns/config.js +130 -0
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts +29 -0
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/dokodemo/config.js +151 -0
- package/build/src/xray-protos/proxy/freedom/config.d.ts +68 -0
- package/build/src/xray-protos/proxy/freedom/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/freedom/config.js +603 -0
- package/build/src/xray-protos/proxy/http/config.d.ts +54 -0
- package/build/src/xray-protos/proxy/http/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/http/config.js +408 -0
- package/build/src/xray-protos/proxy/loopback/config.d.ts +22 -0
- package/build/src/xray-protos/proxy/loopback/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/loopback/config.js +68 -0
- package/build/src/xray-protos/proxy/shadowsocks/config.d.ts +49 -0
- package/build/src/xray-protos/proxy/shadowsocks/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/shadowsocks/config.js +297 -0
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts +69 -0
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +684 -0
- package/build/src/xray-protos/proxy/socks/config.d.ts +61 -0
- package/build/src/xray-protos/proxy/socks/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/socks/config.js +402 -0
- package/build/src/xray-protos/proxy/trojan/config.d.ts +45 -0
- package/build/src/xray-protos/proxy/trojan/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/trojan/config.js +340 -0
- package/build/src/xray-protos/proxy/vless/account.d.ts +27 -0
- package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vless/account.js +101 -0
- package/build/src/xray-protos/proxy/vless/encoding/addons.d.ts +23 -0
- package/build/src/xray-protos/proxy/vless/encoding/addons.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vless/encoding/addons.js +111 -0
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +39 -0
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vless/inbound/config.js +245 -0
- package/build/src/xray-protos/proxy/vless/outbound/config.d.ts +23 -0
- package/build/src/xray-protos/proxy/vless/outbound/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vless/outbound/config.js +69 -0
- package/build/src/xray-protos/proxy/vmess/account.d.ts +31 -0
- package/build/src/xray-protos/proxy/vmess/account.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vmess/account.js +104 -0
- package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts +36 -0
- package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vmess/inbound/config.js +212 -0
- package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts +23 -0
- package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/vmess/outbound/config.js +71 -0
- package/build/src/xray-protos/proxy/wireguard/config.d.ts +49 -0
- package/build/src/xray-protos/proxy/wireguard/config.d.ts.map +1 -0
- package/build/src/xray-protos/proxy/wireguard/config.js +403 -0
- package/build/src/xray-protos/transport/internet/config.d.ts +114 -0
- package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/config.js +946 -0
- package/build/src/xray-protos/transport/internet/grpc/config.d.ts +29 -0
- package/build/src/xray-protos/transport/internet/grpc/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/grpc/config.js +186 -0
- package/build/src/xray-protos/transport/internet/grpc/encoding/stream.d.ts +62 -0
- package/build/src/xray-protos/transport/internet/grpc/encoding/stream.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/grpc/encoding/stream.js +164 -0
- package/build/src/xray-protos/transport/internet/headers/dns/config.d.ts +22 -0
- package/build/src/xray-protos/transport/internet/headers/dns/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/dns/config.js +68 -0
- package/build/src/xray-protos/transport/internet/headers/http/config.d.ts +80 -0
- package/build/src/xray-protos/transport/internet/headers/http/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/http/config.js +544 -0
- package/build/src/xray-protos/transport/internet/headers/noop/config.d.ts +25 -0
- package/build/src/xray-protos/transport/internet/headers/noop/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/noop/config.js +90 -0
- package/build/src/xray-protos/transport/internet/headers/srtp/config.d.ts +27 -0
- package/build/src/xray-protos/transport/internet/headers/srtp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/srtp/config.js +154 -0
- package/build/src/xray-protos/transport/internet/headers/tls/config.d.ts +21 -0
- package/build/src/xray-protos/transport/internet/headers/tls/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/tls/config.js +51 -0
- package/build/src/xray-protos/transport/internet/headers/utp/config.d.ts +22 -0
- package/build/src/xray-protos/transport/internet/headers/utp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/utp/config.js +68 -0
- package/build/src/xray-protos/transport/internet/headers/wechat/config.d.ts +21 -0
- package/build/src/xray-protos/transport/internet/headers/wechat/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/wechat/config.js +51 -0
- package/build/src/xray-protos/transport/internet/headers/wireguard/config.d.ts +21 -0
- package/build/src/xray-protos/transport/internet/headers/wireguard/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/headers/wireguard/config.js +51 -0
- package/build/src/xray-protos/transport/internet/http/config.d.ts +28 -0
- package/build/src/xray-protos/transport/internet/http/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/http/config.js +155 -0
- package/build/src/xray-protos/transport/internet/httpupgrade/config.d.ts +34 -0
- package/build/src/xray-protos/transport/internet/httpupgrade/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/httpupgrade/config.js +235 -0
- package/build/src/xray-protos/transport/internet/kcp/config.d.ts +82 -0
- package/build/src/xray-protos/transport/internet/kcp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/kcp/config.js +639 -0
- package/build/src/xray-protos/transport/internet/reality/config.d.ts +38 -0
- package/build/src/xray-protos/transport/internet/reality/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/reality/config.js +376 -0
- package/build/src/xray-protos/transport/internet/splithttp/config.d.ts +55 -0
- package/build/src/xray-protos/transport/internet/splithttp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/splithttp/config.js +536 -0
- package/build/src/xray-protos/transport/internet/tcp/config.d.ts +24 -0
- package/build/src/xray-protos/transport/internet/tcp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/tcp/config.js +89 -0
- package/build/src/xray-protos/transport/internet/tls/config.d.ts +87 -0
- package/build/src/xray-protos/transport/internet/tls/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/tls/config.js +555 -0
- package/build/src/xray-protos/transport/internet/udp/config.d.ts +21 -0
- package/build/src/xray-protos/transport/internet/udp/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/udp/config.js +51 -0
- package/build/src/xray-protos/transport/internet/websocket/config.d.ts +35 -0
- package/build/src/xray-protos/transport/internet/websocket/config.d.ts.map +1 -0
- package/build/src/xray-protos/transport/internet/websocket/config.js +235 -0
- package/build/src/xray-protos/typeRegistry.d.ts +19 -0
- package/build/src/xray-protos/typeRegistry.d.ts.map +1 -0
- package/build/src/xray-protos/typeRegistry.js +8 -0
- package/package.json +28 -0
|
@@ -0,0 +1,1028 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
|
+
// versions:
|
|
4
|
+
// protoc-gen-ts_proto v2.2.7
|
|
5
|
+
// protoc v5.28.3
|
|
6
|
+
// source: app/proxyman/command/command.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.HandlerServiceDefinition = exports.Config = exports.AlterOutboundResponse = exports.AlterOutboundRequest = exports.RemoveOutboundResponse = exports.RemoveOutboundRequest = exports.AddOutboundResponse = exports.AddOutboundRequest = exports.GetInboundUsersCountResponse = exports.GetInboundUserResponse = exports.GetInboundUserRequest = exports.AlterInboundResponse = exports.AlterInboundRequest = exports.RemoveInboundResponse = exports.RemoveInboundRequest = exports.AddInboundResponse = exports.AddInboundRequest = exports.RemoveUserOperation = exports.AddUserOperation = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const user_1 = require("../../../common/protocol/user");
|
|
12
|
+
const typed_message_1 = require("../../../common/serial/typed_message");
|
|
13
|
+
const config_1 = require("../../../core/config");
|
|
14
|
+
const typeRegistry_1 = require("../../../typeRegistry");
|
|
15
|
+
exports.protobufPackage = "xray.app.proxyman.command";
|
|
16
|
+
function createBaseAddUserOperation() {
|
|
17
|
+
return { $type: "xray.app.proxyman.command.AddUserOperation", user: undefined };
|
|
18
|
+
}
|
|
19
|
+
exports.AddUserOperation = {
|
|
20
|
+
$type: "xray.app.proxyman.command.AddUserOperation",
|
|
21
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
22
|
+
if (message.user !== undefined) {
|
|
23
|
+
user_1.User.encode(message.user, writer.uint32(10).fork()).join();
|
|
24
|
+
}
|
|
25
|
+
return writer;
|
|
26
|
+
},
|
|
27
|
+
decode(input, length) {
|
|
28
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
29
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
30
|
+
const message = createBaseAddUserOperation();
|
|
31
|
+
while (reader.pos < end) {
|
|
32
|
+
const tag = reader.uint32();
|
|
33
|
+
switch (tag >>> 3) {
|
|
34
|
+
case 1: {
|
|
35
|
+
if (tag !== 10) {
|
|
36
|
+
break;
|
|
37
|
+
}
|
|
38
|
+
message.user = user_1.User.decode(reader, reader.uint32());
|
|
39
|
+
continue;
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
43
|
+
break;
|
|
44
|
+
}
|
|
45
|
+
reader.skip(tag & 7);
|
|
46
|
+
}
|
|
47
|
+
return message;
|
|
48
|
+
},
|
|
49
|
+
fromJSON(object) {
|
|
50
|
+
return { $type: exports.AddUserOperation.$type, user: isSet(object.user) ? user_1.User.fromJSON(object.user) : undefined };
|
|
51
|
+
},
|
|
52
|
+
toJSON(message) {
|
|
53
|
+
const obj = {};
|
|
54
|
+
if (message.user !== undefined) {
|
|
55
|
+
obj.user = user_1.User.toJSON(message.user);
|
|
56
|
+
}
|
|
57
|
+
return obj;
|
|
58
|
+
},
|
|
59
|
+
create(base) {
|
|
60
|
+
return exports.AddUserOperation.fromPartial(base ?? {});
|
|
61
|
+
},
|
|
62
|
+
fromPartial(object) {
|
|
63
|
+
const message = createBaseAddUserOperation();
|
|
64
|
+
message.user = (object.user !== undefined && object.user !== null) ? user_1.User.fromPartial(object.user) : undefined;
|
|
65
|
+
return message;
|
|
66
|
+
},
|
|
67
|
+
};
|
|
68
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AddUserOperation.$type, exports.AddUserOperation);
|
|
69
|
+
function createBaseRemoveUserOperation() {
|
|
70
|
+
return { $type: "xray.app.proxyman.command.RemoveUserOperation", email: "" };
|
|
71
|
+
}
|
|
72
|
+
exports.RemoveUserOperation = {
|
|
73
|
+
$type: "xray.app.proxyman.command.RemoveUserOperation",
|
|
74
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
75
|
+
if (message.email !== "") {
|
|
76
|
+
writer.uint32(10).string(message.email);
|
|
77
|
+
}
|
|
78
|
+
return writer;
|
|
79
|
+
},
|
|
80
|
+
decode(input, length) {
|
|
81
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
82
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
83
|
+
const message = createBaseRemoveUserOperation();
|
|
84
|
+
while (reader.pos < end) {
|
|
85
|
+
const tag = reader.uint32();
|
|
86
|
+
switch (tag >>> 3) {
|
|
87
|
+
case 1: {
|
|
88
|
+
if (tag !== 10) {
|
|
89
|
+
break;
|
|
90
|
+
}
|
|
91
|
+
message.email = reader.string();
|
|
92
|
+
continue;
|
|
93
|
+
}
|
|
94
|
+
}
|
|
95
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
96
|
+
break;
|
|
97
|
+
}
|
|
98
|
+
reader.skip(tag & 7);
|
|
99
|
+
}
|
|
100
|
+
return message;
|
|
101
|
+
},
|
|
102
|
+
fromJSON(object) {
|
|
103
|
+
return { $type: exports.RemoveUserOperation.$type, email: isSet(object.email) ? globalThis.String(object.email) : "" };
|
|
104
|
+
},
|
|
105
|
+
toJSON(message) {
|
|
106
|
+
const obj = {};
|
|
107
|
+
if (message.email !== "") {
|
|
108
|
+
obj.email = message.email;
|
|
109
|
+
}
|
|
110
|
+
return obj;
|
|
111
|
+
},
|
|
112
|
+
create(base) {
|
|
113
|
+
return exports.RemoveUserOperation.fromPartial(base ?? {});
|
|
114
|
+
},
|
|
115
|
+
fromPartial(object) {
|
|
116
|
+
const message = createBaseRemoveUserOperation();
|
|
117
|
+
message.email = object.email ?? "";
|
|
118
|
+
return message;
|
|
119
|
+
},
|
|
120
|
+
};
|
|
121
|
+
typeRegistry_1.messageTypeRegistry.set(exports.RemoveUserOperation.$type, exports.RemoveUserOperation);
|
|
122
|
+
function createBaseAddInboundRequest() {
|
|
123
|
+
return { $type: "xray.app.proxyman.command.AddInboundRequest", inbound: undefined };
|
|
124
|
+
}
|
|
125
|
+
exports.AddInboundRequest = {
|
|
126
|
+
$type: "xray.app.proxyman.command.AddInboundRequest",
|
|
127
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
128
|
+
if (message.inbound !== undefined) {
|
|
129
|
+
config_1.InboundHandlerConfig.encode(message.inbound, writer.uint32(10).fork()).join();
|
|
130
|
+
}
|
|
131
|
+
return writer;
|
|
132
|
+
},
|
|
133
|
+
decode(input, length) {
|
|
134
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
135
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
136
|
+
const message = createBaseAddInboundRequest();
|
|
137
|
+
while (reader.pos < end) {
|
|
138
|
+
const tag = reader.uint32();
|
|
139
|
+
switch (tag >>> 3) {
|
|
140
|
+
case 1: {
|
|
141
|
+
if (tag !== 10) {
|
|
142
|
+
break;
|
|
143
|
+
}
|
|
144
|
+
message.inbound = config_1.InboundHandlerConfig.decode(reader, reader.uint32());
|
|
145
|
+
continue;
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
149
|
+
break;
|
|
150
|
+
}
|
|
151
|
+
reader.skip(tag & 7);
|
|
152
|
+
}
|
|
153
|
+
return message;
|
|
154
|
+
},
|
|
155
|
+
fromJSON(object) {
|
|
156
|
+
return {
|
|
157
|
+
$type: exports.AddInboundRequest.$type,
|
|
158
|
+
inbound: isSet(object.inbound) ? config_1.InboundHandlerConfig.fromJSON(object.inbound) : undefined,
|
|
159
|
+
};
|
|
160
|
+
},
|
|
161
|
+
toJSON(message) {
|
|
162
|
+
const obj = {};
|
|
163
|
+
if (message.inbound !== undefined) {
|
|
164
|
+
obj.inbound = config_1.InboundHandlerConfig.toJSON(message.inbound);
|
|
165
|
+
}
|
|
166
|
+
return obj;
|
|
167
|
+
},
|
|
168
|
+
create(base) {
|
|
169
|
+
return exports.AddInboundRequest.fromPartial(base ?? {});
|
|
170
|
+
},
|
|
171
|
+
fromPartial(object) {
|
|
172
|
+
const message = createBaseAddInboundRequest();
|
|
173
|
+
message.inbound = (object.inbound !== undefined && object.inbound !== null)
|
|
174
|
+
? config_1.InboundHandlerConfig.fromPartial(object.inbound)
|
|
175
|
+
: undefined;
|
|
176
|
+
return message;
|
|
177
|
+
},
|
|
178
|
+
};
|
|
179
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AddInboundRequest.$type, exports.AddInboundRequest);
|
|
180
|
+
function createBaseAddInboundResponse() {
|
|
181
|
+
return { $type: "xray.app.proxyman.command.AddInboundResponse" };
|
|
182
|
+
}
|
|
183
|
+
exports.AddInboundResponse = {
|
|
184
|
+
$type: "xray.app.proxyman.command.AddInboundResponse",
|
|
185
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
186
|
+
return writer;
|
|
187
|
+
},
|
|
188
|
+
decode(input, length) {
|
|
189
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
190
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
191
|
+
const message = createBaseAddInboundResponse();
|
|
192
|
+
while (reader.pos < end) {
|
|
193
|
+
const tag = reader.uint32();
|
|
194
|
+
switch (tag >>> 3) {
|
|
195
|
+
}
|
|
196
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
reader.skip(tag & 7);
|
|
200
|
+
}
|
|
201
|
+
return message;
|
|
202
|
+
},
|
|
203
|
+
fromJSON(_) {
|
|
204
|
+
return { $type: exports.AddInboundResponse.$type };
|
|
205
|
+
},
|
|
206
|
+
toJSON(_) {
|
|
207
|
+
const obj = {};
|
|
208
|
+
return obj;
|
|
209
|
+
},
|
|
210
|
+
create(base) {
|
|
211
|
+
return exports.AddInboundResponse.fromPartial(base ?? {});
|
|
212
|
+
},
|
|
213
|
+
fromPartial(_) {
|
|
214
|
+
const message = createBaseAddInboundResponse();
|
|
215
|
+
return message;
|
|
216
|
+
},
|
|
217
|
+
};
|
|
218
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AddInboundResponse.$type, exports.AddInboundResponse);
|
|
219
|
+
function createBaseRemoveInboundRequest() {
|
|
220
|
+
return { $type: "xray.app.proxyman.command.RemoveInboundRequest", tag: "" };
|
|
221
|
+
}
|
|
222
|
+
exports.RemoveInboundRequest = {
|
|
223
|
+
$type: "xray.app.proxyman.command.RemoveInboundRequest",
|
|
224
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
225
|
+
if (message.tag !== "") {
|
|
226
|
+
writer.uint32(10).string(message.tag);
|
|
227
|
+
}
|
|
228
|
+
return writer;
|
|
229
|
+
},
|
|
230
|
+
decode(input, length) {
|
|
231
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
232
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
+
const message = createBaseRemoveInboundRequest();
|
|
234
|
+
while (reader.pos < end) {
|
|
235
|
+
const tag = reader.uint32();
|
|
236
|
+
switch (tag >>> 3) {
|
|
237
|
+
case 1: {
|
|
238
|
+
if (tag !== 10) {
|
|
239
|
+
break;
|
|
240
|
+
}
|
|
241
|
+
message.tag = reader.string();
|
|
242
|
+
continue;
|
|
243
|
+
}
|
|
244
|
+
}
|
|
245
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
246
|
+
break;
|
|
247
|
+
}
|
|
248
|
+
reader.skip(tag & 7);
|
|
249
|
+
}
|
|
250
|
+
return message;
|
|
251
|
+
},
|
|
252
|
+
fromJSON(object) {
|
|
253
|
+
return { $type: exports.RemoveInboundRequest.$type, tag: isSet(object.tag) ? globalThis.String(object.tag) : "" };
|
|
254
|
+
},
|
|
255
|
+
toJSON(message) {
|
|
256
|
+
const obj = {};
|
|
257
|
+
if (message.tag !== "") {
|
|
258
|
+
obj.tag = message.tag;
|
|
259
|
+
}
|
|
260
|
+
return obj;
|
|
261
|
+
},
|
|
262
|
+
create(base) {
|
|
263
|
+
return exports.RemoveInboundRequest.fromPartial(base ?? {});
|
|
264
|
+
},
|
|
265
|
+
fromPartial(object) {
|
|
266
|
+
const message = createBaseRemoveInboundRequest();
|
|
267
|
+
message.tag = object.tag ?? "";
|
|
268
|
+
return message;
|
|
269
|
+
},
|
|
270
|
+
};
|
|
271
|
+
typeRegistry_1.messageTypeRegistry.set(exports.RemoveInboundRequest.$type, exports.RemoveInboundRequest);
|
|
272
|
+
function createBaseRemoveInboundResponse() {
|
|
273
|
+
return { $type: "xray.app.proxyman.command.RemoveInboundResponse" };
|
|
274
|
+
}
|
|
275
|
+
exports.RemoveInboundResponse = {
|
|
276
|
+
$type: "xray.app.proxyman.command.RemoveInboundResponse",
|
|
277
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
278
|
+
return writer;
|
|
279
|
+
},
|
|
280
|
+
decode(input, length) {
|
|
281
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
282
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
283
|
+
const message = createBaseRemoveInboundResponse();
|
|
284
|
+
while (reader.pos < end) {
|
|
285
|
+
const tag = reader.uint32();
|
|
286
|
+
switch (tag >>> 3) {
|
|
287
|
+
}
|
|
288
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
289
|
+
break;
|
|
290
|
+
}
|
|
291
|
+
reader.skip(tag & 7);
|
|
292
|
+
}
|
|
293
|
+
return message;
|
|
294
|
+
},
|
|
295
|
+
fromJSON(_) {
|
|
296
|
+
return { $type: exports.RemoveInboundResponse.$type };
|
|
297
|
+
},
|
|
298
|
+
toJSON(_) {
|
|
299
|
+
const obj = {};
|
|
300
|
+
return obj;
|
|
301
|
+
},
|
|
302
|
+
create(base) {
|
|
303
|
+
return exports.RemoveInboundResponse.fromPartial(base ?? {});
|
|
304
|
+
},
|
|
305
|
+
fromPartial(_) {
|
|
306
|
+
const message = createBaseRemoveInboundResponse();
|
|
307
|
+
return message;
|
|
308
|
+
},
|
|
309
|
+
};
|
|
310
|
+
typeRegistry_1.messageTypeRegistry.set(exports.RemoveInboundResponse.$type, exports.RemoveInboundResponse);
|
|
311
|
+
function createBaseAlterInboundRequest() {
|
|
312
|
+
return { $type: "xray.app.proxyman.command.AlterInboundRequest", tag: "", operation: undefined };
|
|
313
|
+
}
|
|
314
|
+
exports.AlterInboundRequest = {
|
|
315
|
+
$type: "xray.app.proxyman.command.AlterInboundRequest",
|
|
316
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
317
|
+
if (message.tag !== "") {
|
|
318
|
+
writer.uint32(10).string(message.tag);
|
|
319
|
+
}
|
|
320
|
+
if (message.operation !== undefined) {
|
|
321
|
+
typed_message_1.TypedMessage.encode(message.operation, writer.uint32(18).fork()).join();
|
|
322
|
+
}
|
|
323
|
+
return writer;
|
|
324
|
+
},
|
|
325
|
+
decode(input, length) {
|
|
326
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
327
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
328
|
+
const message = createBaseAlterInboundRequest();
|
|
329
|
+
while (reader.pos < end) {
|
|
330
|
+
const tag = reader.uint32();
|
|
331
|
+
switch (tag >>> 3) {
|
|
332
|
+
case 1: {
|
|
333
|
+
if (tag !== 10) {
|
|
334
|
+
break;
|
|
335
|
+
}
|
|
336
|
+
message.tag = reader.string();
|
|
337
|
+
continue;
|
|
338
|
+
}
|
|
339
|
+
case 2: {
|
|
340
|
+
if (tag !== 18) {
|
|
341
|
+
break;
|
|
342
|
+
}
|
|
343
|
+
message.operation = typed_message_1.TypedMessage.decode(reader, reader.uint32());
|
|
344
|
+
continue;
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
348
|
+
break;
|
|
349
|
+
}
|
|
350
|
+
reader.skip(tag & 7);
|
|
351
|
+
}
|
|
352
|
+
return message;
|
|
353
|
+
},
|
|
354
|
+
fromJSON(object) {
|
|
355
|
+
return {
|
|
356
|
+
$type: exports.AlterInboundRequest.$type,
|
|
357
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
358
|
+
operation: isSet(object.operation) ? typed_message_1.TypedMessage.fromJSON(object.operation) : undefined,
|
|
359
|
+
};
|
|
360
|
+
},
|
|
361
|
+
toJSON(message) {
|
|
362
|
+
const obj = {};
|
|
363
|
+
if (message.tag !== "") {
|
|
364
|
+
obj.tag = message.tag;
|
|
365
|
+
}
|
|
366
|
+
if (message.operation !== undefined) {
|
|
367
|
+
obj.operation = typed_message_1.TypedMessage.toJSON(message.operation);
|
|
368
|
+
}
|
|
369
|
+
return obj;
|
|
370
|
+
},
|
|
371
|
+
create(base) {
|
|
372
|
+
return exports.AlterInboundRequest.fromPartial(base ?? {});
|
|
373
|
+
},
|
|
374
|
+
fromPartial(object) {
|
|
375
|
+
const message = createBaseAlterInboundRequest();
|
|
376
|
+
message.tag = object.tag ?? "";
|
|
377
|
+
message.operation = (object.operation !== undefined && object.operation !== null)
|
|
378
|
+
? typed_message_1.TypedMessage.fromPartial(object.operation)
|
|
379
|
+
: undefined;
|
|
380
|
+
return message;
|
|
381
|
+
},
|
|
382
|
+
};
|
|
383
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AlterInboundRequest.$type, exports.AlterInboundRequest);
|
|
384
|
+
function createBaseAlterInboundResponse() {
|
|
385
|
+
return { $type: "xray.app.proxyman.command.AlterInboundResponse" };
|
|
386
|
+
}
|
|
387
|
+
exports.AlterInboundResponse = {
|
|
388
|
+
$type: "xray.app.proxyman.command.AlterInboundResponse",
|
|
389
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
390
|
+
return writer;
|
|
391
|
+
},
|
|
392
|
+
decode(input, length) {
|
|
393
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
394
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
395
|
+
const message = createBaseAlterInboundResponse();
|
|
396
|
+
while (reader.pos < end) {
|
|
397
|
+
const tag = reader.uint32();
|
|
398
|
+
switch (tag >>> 3) {
|
|
399
|
+
}
|
|
400
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
401
|
+
break;
|
|
402
|
+
}
|
|
403
|
+
reader.skip(tag & 7);
|
|
404
|
+
}
|
|
405
|
+
return message;
|
|
406
|
+
},
|
|
407
|
+
fromJSON(_) {
|
|
408
|
+
return { $type: exports.AlterInboundResponse.$type };
|
|
409
|
+
},
|
|
410
|
+
toJSON(_) {
|
|
411
|
+
const obj = {};
|
|
412
|
+
return obj;
|
|
413
|
+
},
|
|
414
|
+
create(base) {
|
|
415
|
+
return exports.AlterInboundResponse.fromPartial(base ?? {});
|
|
416
|
+
},
|
|
417
|
+
fromPartial(_) {
|
|
418
|
+
const message = createBaseAlterInboundResponse();
|
|
419
|
+
return message;
|
|
420
|
+
},
|
|
421
|
+
};
|
|
422
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AlterInboundResponse.$type, exports.AlterInboundResponse);
|
|
423
|
+
function createBaseGetInboundUserRequest() {
|
|
424
|
+
return { $type: "xray.app.proxyman.command.GetInboundUserRequest", tag: "", email: "" };
|
|
425
|
+
}
|
|
426
|
+
exports.GetInboundUserRequest = {
|
|
427
|
+
$type: "xray.app.proxyman.command.GetInboundUserRequest",
|
|
428
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
429
|
+
if (message.tag !== "") {
|
|
430
|
+
writer.uint32(10).string(message.tag);
|
|
431
|
+
}
|
|
432
|
+
if (message.email !== "") {
|
|
433
|
+
writer.uint32(18).string(message.email);
|
|
434
|
+
}
|
|
435
|
+
return writer;
|
|
436
|
+
},
|
|
437
|
+
decode(input, length) {
|
|
438
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
439
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
440
|
+
const message = createBaseGetInboundUserRequest();
|
|
441
|
+
while (reader.pos < end) {
|
|
442
|
+
const tag = reader.uint32();
|
|
443
|
+
switch (tag >>> 3) {
|
|
444
|
+
case 1: {
|
|
445
|
+
if (tag !== 10) {
|
|
446
|
+
break;
|
|
447
|
+
}
|
|
448
|
+
message.tag = reader.string();
|
|
449
|
+
continue;
|
|
450
|
+
}
|
|
451
|
+
case 2: {
|
|
452
|
+
if (tag !== 18) {
|
|
453
|
+
break;
|
|
454
|
+
}
|
|
455
|
+
message.email = reader.string();
|
|
456
|
+
continue;
|
|
457
|
+
}
|
|
458
|
+
}
|
|
459
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
460
|
+
break;
|
|
461
|
+
}
|
|
462
|
+
reader.skip(tag & 7);
|
|
463
|
+
}
|
|
464
|
+
return message;
|
|
465
|
+
},
|
|
466
|
+
fromJSON(object) {
|
|
467
|
+
return {
|
|
468
|
+
$type: exports.GetInboundUserRequest.$type,
|
|
469
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
470
|
+
email: isSet(object.email) ? globalThis.String(object.email) : "",
|
|
471
|
+
};
|
|
472
|
+
},
|
|
473
|
+
toJSON(message) {
|
|
474
|
+
const obj = {};
|
|
475
|
+
if (message.tag !== "") {
|
|
476
|
+
obj.tag = message.tag;
|
|
477
|
+
}
|
|
478
|
+
if (message.email !== "") {
|
|
479
|
+
obj.email = message.email;
|
|
480
|
+
}
|
|
481
|
+
return obj;
|
|
482
|
+
},
|
|
483
|
+
create(base) {
|
|
484
|
+
return exports.GetInboundUserRequest.fromPartial(base ?? {});
|
|
485
|
+
},
|
|
486
|
+
fromPartial(object) {
|
|
487
|
+
const message = createBaseGetInboundUserRequest();
|
|
488
|
+
message.tag = object.tag ?? "";
|
|
489
|
+
message.email = object.email ?? "";
|
|
490
|
+
return message;
|
|
491
|
+
},
|
|
492
|
+
};
|
|
493
|
+
typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUserRequest.$type, exports.GetInboundUserRequest);
|
|
494
|
+
function createBaseGetInboundUserResponse() {
|
|
495
|
+
return { $type: "xray.app.proxyman.command.GetInboundUserResponse", users: [] };
|
|
496
|
+
}
|
|
497
|
+
exports.GetInboundUserResponse = {
|
|
498
|
+
$type: "xray.app.proxyman.command.GetInboundUserResponse",
|
|
499
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
500
|
+
for (const v of message.users) {
|
|
501
|
+
user_1.User.encode(v, writer.uint32(10).fork()).join();
|
|
502
|
+
}
|
|
503
|
+
return writer;
|
|
504
|
+
},
|
|
505
|
+
decode(input, length) {
|
|
506
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
507
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
508
|
+
const message = createBaseGetInboundUserResponse();
|
|
509
|
+
while (reader.pos < end) {
|
|
510
|
+
const tag = reader.uint32();
|
|
511
|
+
switch (tag >>> 3) {
|
|
512
|
+
case 1: {
|
|
513
|
+
if (tag !== 10) {
|
|
514
|
+
break;
|
|
515
|
+
}
|
|
516
|
+
message.users.push(user_1.User.decode(reader, reader.uint32()));
|
|
517
|
+
continue;
|
|
518
|
+
}
|
|
519
|
+
}
|
|
520
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
521
|
+
break;
|
|
522
|
+
}
|
|
523
|
+
reader.skip(tag & 7);
|
|
524
|
+
}
|
|
525
|
+
return message;
|
|
526
|
+
},
|
|
527
|
+
fromJSON(object) {
|
|
528
|
+
return {
|
|
529
|
+
$type: exports.GetInboundUserResponse.$type,
|
|
530
|
+
users: globalThis.Array.isArray(object?.users) ? object.users.map((e) => user_1.User.fromJSON(e)) : [],
|
|
531
|
+
};
|
|
532
|
+
},
|
|
533
|
+
toJSON(message) {
|
|
534
|
+
const obj = {};
|
|
535
|
+
if (message.users?.length) {
|
|
536
|
+
obj.users = message.users.map((e) => user_1.User.toJSON(e));
|
|
537
|
+
}
|
|
538
|
+
return obj;
|
|
539
|
+
},
|
|
540
|
+
create(base) {
|
|
541
|
+
return exports.GetInboundUserResponse.fromPartial(base ?? {});
|
|
542
|
+
},
|
|
543
|
+
fromPartial(object) {
|
|
544
|
+
const message = createBaseGetInboundUserResponse();
|
|
545
|
+
message.users = object.users?.map((e) => user_1.User.fromPartial(e)) || [];
|
|
546
|
+
return message;
|
|
547
|
+
},
|
|
548
|
+
};
|
|
549
|
+
typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUserResponse.$type, exports.GetInboundUserResponse);
|
|
550
|
+
function createBaseGetInboundUsersCountResponse() {
|
|
551
|
+
return { $type: "xray.app.proxyman.command.GetInboundUsersCountResponse", count: 0 };
|
|
552
|
+
}
|
|
553
|
+
exports.GetInboundUsersCountResponse = {
|
|
554
|
+
$type: "xray.app.proxyman.command.GetInboundUsersCountResponse",
|
|
555
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
556
|
+
if (message.count !== 0) {
|
|
557
|
+
writer.uint32(8).int64(message.count);
|
|
558
|
+
}
|
|
559
|
+
return writer;
|
|
560
|
+
},
|
|
561
|
+
decode(input, length) {
|
|
562
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
563
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
564
|
+
const message = createBaseGetInboundUsersCountResponse();
|
|
565
|
+
while (reader.pos < end) {
|
|
566
|
+
const tag = reader.uint32();
|
|
567
|
+
switch (tag >>> 3) {
|
|
568
|
+
case 1: {
|
|
569
|
+
if (tag !== 8) {
|
|
570
|
+
break;
|
|
571
|
+
}
|
|
572
|
+
message.count = longToNumber(reader.int64());
|
|
573
|
+
continue;
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
577
|
+
break;
|
|
578
|
+
}
|
|
579
|
+
reader.skip(tag & 7);
|
|
580
|
+
}
|
|
581
|
+
return message;
|
|
582
|
+
},
|
|
583
|
+
fromJSON(object) {
|
|
584
|
+
return {
|
|
585
|
+
$type: exports.GetInboundUsersCountResponse.$type,
|
|
586
|
+
count: isSet(object.count) ? globalThis.Number(object.count) : 0,
|
|
587
|
+
};
|
|
588
|
+
},
|
|
589
|
+
toJSON(message) {
|
|
590
|
+
const obj = {};
|
|
591
|
+
if (message.count !== 0) {
|
|
592
|
+
obj.count = Math.round(message.count);
|
|
593
|
+
}
|
|
594
|
+
return obj;
|
|
595
|
+
},
|
|
596
|
+
create(base) {
|
|
597
|
+
return exports.GetInboundUsersCountResponse.fromPartial(base ?? {});
|
|
598
|
+
},
|
|
599
|
+
fromPartial(object) {
|
|
600
|
+
const message = createBaseGetInboundUsersCountResponse();
|
|
601
|
+
message.count = object.count ?? 0;
|
|
602
|
+
return message;
|
|
603
|
+
},
|
|
604
|
+
};
|
|
605
|
+
typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUsersCountResponse.$type, exports.GetInboundUsersCountResponse);
|
|
606
|
+
function createBaseAddOutboundRequest() {
|
|
607
|
+
return { $type: "xray.app.proxyman.command.AddOutboundRequest", outbound: undefined };
|
|
608
|
+
}
|
|
609
|
+
exports.AddOutboundRequest = {
|
|
610
|
+
$type: "xray.app.proxyman.command.AddOutboundRequest",
|
|
611
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
612
|
+
if (message.outbound !== undefined) {
|
|
613
|
+
config_1.OutboundHandlerConfig.encode(message.outbound, writer.uint32(10).fork()).join();
|
|
614
|
+
}
|
|
615
|
+
return writer;
|
|
616
|
+
},
|
|
617
|
+
decode(input, length) {
|
|
618
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
619
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
620
|
+
const message = createBaseAddOutboundRequest();
|
|
621
|
+
while (reader.pos < end) {
|
|
622
|
+
const tag = reader.uint32();
|
|
623
|
+
switch (tag >>> 3) {
|
|
624
|
+
case 1: {
|
|
625
|
+
if (tag !== 10) {
|
|
626
|
+
break;
|
|
627
|
+
}
|
|
628
|
+
message.outbound = config_1.OutboundHandlerConfig.decode(reader, reader.uint32());
|
|
629
|
+
continue;
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
633
|
+
break;
|
|
634
|
+
}
|
|
635
|
+
reader.skip(tag & 7);
|
|
636
|
+
}
|
|
637
|
+
return message;
|
|
638
|
+
},
|
|
639
|
+
fromJSON(object) {
|
|
640
|
+
return {
|
|
641
|
+
$type: exports.AddOutboundRequest.$type,
|
|
642
|
+
outbound: isSet(object.outbound) ? config_1.OutboundHandlerConfig.fromJSON(object.outbound) : undefined,
|
|
643
|
+
};
|
|
644
|
+
},
|
|
645
|
+
toJSON(message) {
|
|
646
|
+
const obj = {};
|
|
647
|
+
if (message.outbound !== undefined) {
|
|
648
|
+
obj.outbound = config_1.OutboundHandlerConfig.toJSON(message.outbound);
|
|
649
|
+
}
|
|
650
|
+
return obj;
|
|
651
|
+
},
|
|
652
|
+
create(base) {
|
|
653
|
+
return exports.AddOutboundRequest.fromPartial(base ?? {});
|
|
654
|
+
},
|
|
655
|
+
fromPartial(object) {
|
|
656
|
+
const message = createBaseAddOutboundRequest();
|
|
657
|
+
message.outbound = (object.outbound !== undefined && object.outbound !== null)
|
|
658
|
+
? config_1.OutboundHandlerConfig.fromPartial(object.outbound)
|
|
659
|
+
: undefined;
|
|
660
|
+
return message;
|
|
661
|
+
},
|
|
662
|
+
};
|
|
663
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AddOutboundRequest.$type, exports.AddOutboundRequest);
|
|
664
|
+
function createBaseAddOutboundResponse() {
|
|
665
|
+
return { $type: "xray.app.proxyman.command.AddOutboundResponse" };
|
|
666
|
+
}
|
|
667
|
+
exports.AddOutboundResponse = {
|
|
668
|
+
$type: "xray.app.proxyman.command.AddOutboundResponse",
|
|
669
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
670
|
+
return writer;
|
|
671
|
+
},
|
|
672
|
+
decode(input, length) {
|
|
673
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
674
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
675
|
+
const message = createBaseAddOutboundResponse();
|
|
676
|
+
while (reader.pos < end) {
|
|
677
|
+
const tag = reader.uint32();
|
|
678
|
+
switch (tag >>> 3) {
|
|
679
|
+
}
|
|
680
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
681
|
+
break;
|
|
682
|
+
}
|
|
683
|
+
reader.skip(tag & 7);
|
|
684
|
+
}
|
|
685
|
+
return message;
|
|
686
|
+
},
|
|
687
|
+
fromJSON(_) {
|
|
688
|
+
return { $type: exports.AddOutboundResponse.$type };
|
|
689
|
+
},
|
|
690
|
+
toJSON(_) {
|
|
691
|
+
const obj = {};
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
create(base) {
|
|
695
|
+
return exports.AddOutboundResponse.fromPartial(base ?? {});
|
|
696
|
+
},
|
|
697
|
+
fromPartial(_) {
|
|
698
|
+
const message = createBaseAddOutboundResponse();
|
|
699
|
+
return message;
|
|
700
|
+
},
|
|
701
|
+
};
|
|
702
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AddOutboundResponse.$type, exports.AddOutboundResponse);
|
|
703
|
+
function createBaseRemoveOutboundRequest() {
|
|
704
|
+
return { $type: "xray.app.proxyman.command.RemoveOutboundRequest", tag: "" };
|
|
705
|
+
}
|
|
706
|
+
exports.RemoveOutboundRequest = {
|
|
707
|
+
$type: "xray.app.proxyman.command.RemoveOutboundRequest",
|
|
708
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
709
|
+
if (message.tag !== "") {
|
|
710
|
+
writer.uint32(10).string(message.tag);
|
|
711
|
+
}
|
|
712
|
+
return writer;
|
|
713
|
+
},
|
|
714
|
+
decode(input, length) {
|
|
715
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
716
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
717
|
+
const message = createBaseRemoveOutboundRequest();
|
|
718
|
+
while (reader.pos < end) {
|
|
719
|
+
const tag = reader.uint32();
|
|
720
|
+
switch (tag >>> 3) {
|
|
721
|
+
case 1: {
|
|
722
|
+
if (tag !== 10) {
|
|
723
|
+
break;
|
|
724
|
+
}
|
|
725
|
+
message.tag = reader.string();
|
|
726
|
+
continue;
|
|
727
|
+
}
|
|
728
|
+
}
|
|
729
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
730
|
+
break;
|
|
731
|
+
}
|
|
732
|
+
reader.skip(tag & 7);
|
|
733
|
+
}
|
|
734
|
+
return message;
|
|
735
|
+
},
|
|
736
|
+
fromJSON(object) {
|
|
737
|
+
return { $type: exports.RemoveOutboundRequest.$type, tag: isSet(object.tag) ? globalThis.String(object.tag) : "" };
|
|
738
|
+
},
|
|
739
|
+
toJSON(message) {
|
|
740
|
+
const obj = {};
|
|
741
|
+
if (message.tag !== "") {
|
|
742
|
+
obj.tag = message.tag;
|
|
743
|
+
}
|
|
744
|
+
return obj;
|
|
745
|
+
},
|
|
746
|
+
create(base) {
|
|
747
|
+
return exports.RemoveOutboundRequest.fromPartial(base ?? {});
|
|
748
|
+
},
|
|
749
|
+
fromPartial(object) {
|
|
750
|
+
const message = createBaseRemoveOutboundRequest();
|
|
751
|
+
message.tag = object.tag ?? "";
|
|
752
|
+
return message;
|
|
753
|
+
},
|
|
754
|
+
};
|
|
755
|
+
typeRegistry_1.messageTypeRegistry.set(exports.RemoveOutboundRequest.$type, exports.RemoveOutboundRequest);
|
|
756
|
+
function createBaseRemoveOutboundResponse() {
|
|
757
|
+
return { $type: "xray.app.proxyman.command.RemoveOutboundResponse" };
|
|
758
|
+
}
|
|
759
|
+
exports.RemoveOutboundResponse = {
|
|
760
|
+
$type: "xray.app.proxyman.command.RemoveOutboundResponse",
|
|
761
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
762
|
+
return writer;
|
|
763
|
+
},
|
|
764
|
+
decode(input, length) {
|
|
765
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
766
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
767
|
+
const message = createBaseRemoveOutboundResponse();
|
|
768
|
+
while (reader.pos < end) {
|
|
769
|
+
const tag = reader.uint32();
|
|
770
|
+
switch (tag >>> 3) {
|
|
771
|
+
}
|
|
772
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
773
|
+
break;
|
|
774
|
+
}
|
|
775
|
+
reader.skip(tag & 7);
|
|
776
|
+
}
|
|
777
|
+
return message;
|
|
778
|
+
},
|
|
779
|
+
fromJSON(_) {
|
|
780
|
+
return { $type: exports.RemoveOutboundResponse.$type };
|
|
781
|
+
},
|
|
782
|
+
toJSON(_) {
|
|
783
|
+
const obj = {};
|
|
784
|
+
return obj;
|
|
785
|
+
},
|
|
786
|
+
create(base) {
|
|
787
|
+
return exports.RemoveOutboundResponse.fromPartial(base ?? {});
|
|
788
|
+
},
|
|
789
|
+
fromPartial(_) {
|
|
790
|
+
const message = createBaseRemoveOutboundResponse();
|
|
791
|
+
return message;
|
|
792
|
+
},
|
|
793
|
+
};
|
|
794
|
+
typeRegistry_1.messageTypeRegistry.set(exports.RemoveOutboundResponse.$type, exports.RemoveOutboundResponse);
|
|
795
|
+
function createBaseAlterOutboundRequest() {
|
|
796
|
+
return { $type: "xray.app.proxyman.command.AlterOutboundRequest", tag: "", operation: undefined };
|
|
797
|
+
}
|
|
798
|
+
exports.AlterOutboundRequest = {
|
|
799
|
+
$type: "xray.app.proxyman.command.AlterOutboundRequest",
|
|
800
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
801
|
+
if (message.tag !== "") {
|
|
802
|
+
writer.uint32(10).string(message.tag);
|
|
803
|
+
}
|
|
804
|
+
if (message.operation !== undefined) {
|
|
805
|
+
typed_message_1.TypedMessage.encode(message.operation, writer.uint32(18).fork()).join();
|
|
806
|
+
}
|
|
807
|
+
return writer;
|
|
808
|
+
},
|
|
809
|
+
decode(input, length) {
|
|
810
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
811
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
812
|
+
const message = createBaseAlterOutboundRequest();
|
|
813
|
+
while (reader.pos < end) {
|
|
814
|
+
const tag = reader.uint32();
|
|
815
|
+
switch (tag >>> 3) {
|
|
816
|
+
case 1: {
|
|
817
|
+
if (tag !== 10) {
|
|
818
|
+
break;
|
|
819
|
+
}
|
|
820
|
+
message.tag = reader.string();
|
|
821
|
+
continue;
|
|
822
|
+
}
|
|
823
|
+
case 2: {
|
|
824
|
+
if (tag !== 18) {
|
|
825
|
+
break;
|
|
826
|
+
}
|
|
827
|
+
message.operation = typed_message_1.TypedMessage.decode(reader, reader.uint32());
|
|
828
|
+
continue;
|
|
829
|
+
}
|
|
830
|
+
}
|
|
831
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
832
|
+
break;
|
|
833
|
+
}
|
|
834
|
+
reader.skip(tag & 7);
|
|
835
|
+
}
|
|
836
|
+
return message;
|
|
837
|
+
},
|
|
838
|
+
fromJSON(object) {
|
|
839
|
+
return {
|
|
840
|
+
$type: exports.AlterOutboundRequest.$type,
|
|
841
|
+
tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
|
|
842
|
+
operation: isSet(object.operation) ? typed_message_1.TypedMessage.fromJSON(object.operation) : undefined,
|
|
843
|
+
};
|
|
844
|
+
},
|
|
845
|
+
toJSON(message) {
|
|
846
|
+
const obj = {};
|
|
847
|
+
if (message.tag !== "") {
|
|
848
|
+
obj.tag = message.tag;
|
|
849
|
+
}
|
|
850
|
+
if (message.operation !== undefined) {
|
|
851
|
+
obj.operation = typed_message_1.TypedMessage.toJSON(message.operation);
|
|
852
|
+
}
|
|
853
|
+
return obj;
|
|
854
|
+
},
|
|
855
|
+
create(base) {
|
|
856
|
+
return exports.AlterOutboundRequest.fromPartial(base ?? {});
|
|
857
|
+
},
|
|
858
|
+
fromPartial(object) {
|
|
859
|
+
const message = createBaseAlterOutboundRequest();
|
|
860
|
+
message.tag = object.tag ?? "";
|
|
861
|
+
message.operation = (object.operation !== undefined && object.operation !== null)
|
|
862
|
+
? typed_message_1.TypedMessage.fromPartial(object.operation)
|
|
863
|
+
: undefined;
|
|
864
|
+
return message;
|
|
865
|
+
},
|
|
866
|
+
};
|
|
867
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AlterOutboundRequest.$type, exports.AlterOutboundRequest);
|
|
868
|
+
function createBaseAlterOutboundResponse() {
|
|
869
|
+
return { $type: "xray.app.proxyman.command.AlterOutboundResponse" };
|
|
870
|
+
}
|
|
871
|
+
exports.AlterOutboundResponse = {
|
|
872
|
+
$type: "xray.app.proxyman.command.AlterOutboundResponse",
|
|
873
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
874
|
+
return writer;
|
|
875
|
+
},
|
|
876
|
+
decode(input, length) {
|
|
877
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
878
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
879
|
+
const message = createBaseAlterOutboundResponse();
|
|
880
|
+
while (reader.pos < end) {
|
|
881
|
+
const tag = reader.uint32();
|
|
882
|
+
switch (tag >>> 3) {
|
|
883
|
+
}
|
|
884
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
885
|
+
break;
|
|
886
|
+
}
|
|
887
|
+
reader.skip(tag & 7);
|
|
888
|
+
}
|
|
889
|
+
return message;
|
|
890
|
+
},
|
|
891
|
+
fromJSON(_) {
|
|
892
|
+
return { $type: exports.AlterOutboundResponse.$type };
|
|
893
|
+
},
|
|
894
|
+
toJSON(_) {
|
|
895
|
+
const obj = {};
|
|
896
|
+
return obj;
|
|
897
|
+
},
|
|
898
|
+
create(base) {
|
|
899
|
+
return exports.AlterOutboundResponse.fromPartial(base ?? {});
|
|
900
|
+
},
|
|
901
|
+
fromPartial(_) {
|
|
902
|
+
const message = createBaseAlterOutboundResponse();
|
|
903
|
+
return message;
|
|
904
|
+
},
|
|
905
|
+
};
|
|
906
|
+
typeRegistry_1.messageTypeRegistry.set(exports.AlterOutboundResponse.$type, exports.AlterOutboundResponse);
|
|
907
|
+
function createBaseConfig() {
|
|
908
|
+
return { $type: "xray.app.proxyman.command.Config" };
|
|
909
|
+
}
|
|
910
|
+
exports.Config = {
|
|
911
|
+
$type: "xray.app.proxyman.command.Config",
|
|
912
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
913
|
+
return writer;
|
|
914
|
+
},
|
|
915
|
+
decode(input, length) {
|
|
916
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
917
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
918
|
+
const message = createBaseConfig();
|
|
919
|
+
while (reader.pos < end) {
|
|
920
|
+
const tag = reader.uint32();
|
|
921
|
+
switch (tag >>> 3) {
|
|
922
|
+
}
|
|
923
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
924
|
+
break;
|
|
925
|
+
}
|
|
926
|
+
reader.skip(tag & 7);
|
|
927
|
+
}
|
|
928
|
+
return message;
|
|
929
|
+
},
|
|
930
|
+
fromJSON(_) {
|
|
931
|
+
return { $type: exports.Config.$type };
|
|
932
|
+
},
|
|
933
|
+
toJSON(_) {
|
|
934
|
+
const obj = {};
|
|
935
|
+
return obj;
|
|
936
|
+
},
|
|
937
|
+
create(base) {
|
|
938
|
+
return exports.Config.fromPartial(base ?? {});
|
|
939
|
+
},
|
|
940
|
+
fromPartial(_) {
|
|
941
|
+
const message = createBaseConfig();
|
|
942
|
+
return message;
|
|
943
|
+
},
|
|
944
|
+
};
|
|
945
|
+
typeRegistry_1.messageTypeRegistry.set(exports.Config.$type, exports.Config);
|
|
946
|
+
exports.HandlerServiceDefinition = {
|
|
947
|
+
name: "HandlerService",
|
|
948
|
+
fullName: "xray.app.proxyman.command.HandlerService",
|
|
949
|
+
methods: {
|
|
950
|
+
addInbound: {
|
|
951
|
+
name: "AddInbound",
|
|
952
|
+
requestType: exports.AddInboundRequest,
|
|
953
|
+
requestStream: false,
|
|
954
|
+
responseType: exports.AddInboundResponse,
|
|
955
|
+
responseStream: false,
|
|
956
|
+
options: {},
|
|
957
|
+
},
|
|
958
|
+
removeInbound: {
|
|
959
|
+
name: "RemoveInbound",
|
|
960
|
+
requestType: exports.RemoveInboundRequest,
|
|
961
|
+
requestStream: false,
|
|
962
|
+
responseType: exports.RemoveInboundResponse,
|
|
963
|
+
responseStream: false,
|
|
964
|
+
options: {},
|
|
965
|
+
},
|
|
966
|
+
alterInbound: {
|
|
967
|
+
name: "AlterInbound",
|
|
968
|
+
requestType: exports.AlterInboundRequest,
|
|
969
|
+
requestStream: false,
|
|
970
|
+
responseType: exports.AlterInboundResponse,
|
|
971
|
+
responseStream: false,
|
|
972
|
+
options: {},
|
|
973
|
+
},
|
|
974
|
+
getInboundUsers: {
|
|
975
|
+
name: "GetInboundUsers",
|
|
976
|
+
requestType: exports.GetInboundUserRequest,
|
|
977
|
+
requestStream: false,
|
|
978
|
+
responseType: exports.GetInboundUserResponse,
|
|
979
|
+
responseStream: false,
|
|
980
|
+
options: {},
|
|
981
|
+
},
|
|
982
|
+
getInboundUsersCount: {
|
|
983
|
+
name: "GetInboundUsersCount",
|
|
984
|
+
requestType: exports.GetInboundUserRequest,
|
|
985
|
+
requestStream: false,
|
|
986
|
+
responseType: exports.GetInboundUsersCountResponse,
|
|
987
|
+
responseStream: false,
|
|
988
|
+
options: {},
|
|
989
|
+
},
|
|
990
|
+
addOutbound: {
|
|
991
|
+
name: "AddOutbound",
|
|
992
|
+
requestType: exports.AddOutboundRequest,
|
|
993
|
+
requestStream: false,
|
|
994
|
+
responseType: exports.AddOutboundResponse,
|
|
995
|
+
responseStream: false,
|
|
996
|
+
options: {},
|
|
997
|
+
},
|
|
998
|
+
removeOutbound: {
|
|
999
|
+
name: "RemoveOutbound",
|
|
1000
|
+
requestType: exports.RemoveOutboundRequest,
|
|
1001
|
+
requestStream: false,
|
|
1002
|
+
responseType: exports.RemoveOutboundResponse,
|
|
1003
|
+
responseStream: false,
|
|
1004
|
+
options: {},
|
|
1005
|
+
},
|
|
1006
|
+
alterOutbound: {
|
|
1007
|
+
name: "AlterOutbound",
|
|
1008
|
+
requestType: exports.AlterOutboundRequest,
|
|
1009
|
+
requestStream: false,
|
|
1010
|
+
responseType: exports.AlterOutboundResponse,
|
|
1011
|
+
responseStream: false,
|
|
1012
|
+
options: {},
|
|
1013
|
+
},
|
|
1014
|
+
},
|
|
1015
|
+
};
|
|
1016
|
+
function longToNumber(int64) {
|
|
1017
|
+
const num = globalThis.Number(int64.toString());
|
|
1018
|
+
if (num > globalThis.Number.MAX_SAFE_INTEGER) {
|
|
1019
|
+
throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
|
|
1020
|
+
}
|
|
1021
|
+
if (num < globalThis.Number.MIN_SAFE_INTEGER) {
|
|
1022
|
+
throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
|
|
1023
|
+
}
|
|
1024
|
+
return num;
|
|
1025
|
+
}
|
|
1026
|
+
function isSet(value) {
|
|
1027
|
+
return value !== null && value !== undefined;
|
|
1028
|
+
}
|