@remnawave/xtls-sdk 0.4.1 → 0.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/src/common/utils/decode-user/constants/account-types.d.ts.map +1 -1
- package/build/src/common/utils/decode-user/constants/account-types.js +3 -0
- package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-inbounds-stats/get-all-inbounds-stats.response.model.js +8 -8
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-outbounds-stats/get-all-outbounds-stats.response.model.js +8 -8
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-all-users-stats/get-all-users-stats.response.model.js +8 -8
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-inbound-stats/get-inbound-stats.response.model.js +8 -8
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-outbound-stats/get-outbound-stats.response.model.js +8 -8
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.d.ts.map +1 -1
- package/build/src/stats/models/get-user-stats/get-user-stats.response.model.js +8 -8
- package/build/src/xray-protos/app/commander/config.js +1 -1
- package/build/src/xray-protos/app/dispatcher/config.js +1 -1
- package/build/src/xray-protos/app/log/command/config.js +1 -1
- package/build/src/xray-protos/app/log/config.js +1 -1
- package/build/src/xray-protos/app/metrics/config.js +1 -1
- package/build/src/xray-protos/app/policy/config.js +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.d.ts +1 -0
- package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.js +24 -7
- package/build/src/xray-protos/app/proxyman/config.d.ts +2 -1
- package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/config.js +17 -1
- package/build/src/xray-protos/app/reverse/config.js +1 -1
- package/build/src/xray-protos/app/router/command/command.d.ts +3 -0
- package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/command/command.js +49 -1
- package/build/src/xray-protos/app/router/config.d.ts +3 -1
- package/build/src/xray-protos/app/router/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/config.js +50 -12
- package/build/src/xray-protos/app/stats/command/command.js +1 -1
- package/build/src/xray-protos/app/stats/config.js +1 -1
- package/build/src/xray-protos/app/version/config.d.ts +24 -0
- package/build/src/xray-protos/app/version/config.d.ts.map +1 -0
- package/build/src/xray-protos/app/version/config.js +101 -0
- package/build/src/xray-protos/common/log/log.js +1 -1
- package/build/src/xray-protos/common/net/address.js +1 -1
- package/build/src/xray-protos/common/net/destination.js +1 -1
- package/build/src/xray-protos/common/net/network.js +1 -1
- package/build/src/xray-protos/common/net/port.js +1 -1
- package/build/src/xray-protos/common/protocol/headers.js +1 -1
- package/build/src/xray-protos/common/protocol/server_spec.js +1 -1
- package/build/src/xray-protos/common/protocol/user.js +1 -1
- package/build/src/xray-protos/common/serial/typed_message.js +1 -1
- package/build/src/xray-protos/core/config.js +1 -1
- package/build/src/xray-protos/proxy/blackhole/config.js +1 -1
- package/build/src/xray-protos/proxy/dns/config.js +1 -1
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts +9 -0
- package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/dokodemo/config.js +111 -2
- package/build/src/xray-protos/proxy/freedom/config.d.ts +5 -17
- package/build/src/xray-protos/proxy/freedom/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/freedom/config.js +53 -91
- package/build/src/xray-protos/proxy/http/config.js +1 -1
- package/build/src/xray-protos/proxy/loopback/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks/config.js +1 -1
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +1 -1
- package/build/src/xray-protos/proxy/socks/config.js +1 -1
- package/build/src/xray-protos/proxy/trojan/config.js +1 -1
- package/build/src/xray-protos/proxy/vless/account.d.ts +3 -1
- package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/account.js +47 -2
- package/build/src/xray-protos/proxy/vless/encoding/addons.js +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts +4 -5
- package/build/src/xray-protos/proxy/vless/inbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/inbound/config.js +64 -11
- package/build/src/xray-protos/proxy/vless/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/account.js +1 -1
- package/build/src/xray-protos/proxy/vmess/inbound/config.js +1 -1
- package/build/src/xray-protos/proxy/vmess/outbound/config.js +1 -1
- package/build/src/xray-protos/proxy/wireguard/config.js +1 -1
- package/build/src/xray-protos/transport/internet/config.js +1 -1
- package/build/src/xray-protos/typeRegistry.js +1 -1
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: app/router/command/command.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.RoutingServiceDefinition = exports.Config = exports.RemoveRuleResponse = exports.RemoveRuleRequest = exports.AddRuleResponse = exports.AddRuleRequest = exports.OverrideBalancerTargetResponse = exports.OverrideBalancerTargetRequest = exports.GetBalancerInfoResponse = exports.GetBalancerInfoRequest = exports.BalancerMsg = exports.OverrideInfo = exports.PrincipleTargetInfo = exports.TestRouteRequest = exports.SubscribeRoutingStatsRequest = exports.RoutingContext_AttributesEntry = exports.RoutingContext = exports.protobufPackage = void 0;
|
|
@@ -27,6 +27,9 @@ function createBaseRoutingContext() {
|
|
|
27
27
|
Attributes: {},
|
|
28
28
|
OutboundGroupTags: [],
|
|
29
29
|
OutboundTag: "",
|
|
30
|
+
LocalIPs: [],
|
|
31
|
+
LocalPort: 0,
|
|
32
|
+
VlessRoute: 0,
|
|
30
33
|
};
|
|
31
34
|
}
|
|
32
35
|
exports.RoutingContext = {
|
|
@@ -72,6 +75,15 @@ exports.RoutingContext = {
|
|
|
72
75
|
if (message.OutboundTag !== "") {
|
|
73
76
|
writer.uint32(98).string(message.OutboundTag);
|
|
74
77
|
}
|
|
78
|
+
for (const v of message.LocalIPs) {
|
|
79
|
+
writer.uint32(106).bytes(v);
|
|
80
|
+
}
|
|
81
|
+
if (message.LocalPort !== 0) {
|
|
82
|
+
writer.uint32(112).uint32(message.LocalPort);
|
|
83
|
+
}
|
|
84
|
+
if (message.VlessRoute !== 0) {
|
|
85
|
+
writer.uint32(120).uint32(message.VlessRoute);
|
|
86
|
+
}
|
|
75
87
|
return writer;
|
|
76
88
|
},
|
|
77
89
|
decode(input, length) {
|
|
@@ -168,6 +180,27 @@ exports.RoutingContext = {
|
|
|
168
180
|
message.OutboundTag = reader.string();
|
|
169
181
|
continue;
|
|
170
182
|
}
|
|
183
|
+
case 13: {
|
|
184
|
+
if (tag !== 106) {
|
|
185
|
+
break;
|
|
186
|
+
}
|
|
187
|
+
message.LocalIPs.push(reader.bytes());
|
|
188
|
+
continue;
|
|
189
|
+
}
|
|
190
|
+
case 14: {
|
|
191
|
+
if (tag !== 112) {
|
|
192
|
+
break;
|
|
193
|
+
}
|
|
194
|
+
message.LocalPort = reader.uint32();
|
|
195
|
+
continue;
|
|
196
|
+
}
|
|
197
|
+
case 15: {
|
|
198
|
+
if (tag !== 120) {
|
|
199
|
+
break;
|
|
200
|
+
}
|
|
201
|
+
message.VlessRoute = reader.uint32();
|
|
202
|
+
continue;
|
|
203
|
+
}
|
|
171
204
|
}
|
|
172
205
|
if ((tag & 7) === 4 || tag === 0) {
|
|
173
206
|
break;
|
|
@@ -202,6 +235,9 @@ exports.RoutingContext = {
|
|
|
202
235
|
? object.OutboundGroupTags.map((e) => globalThis.String(e))
|
|
203
236
|
: [],
|
|
204
237
|
OutboundTag: isSet(object.OutboundTag) ? globalThis.String(object.OutboundTag) : "",
|
|
238
|
+
LocalIPs: globalThis.Array.isArray(object?.LocalIPs) ? object.LocalIPs.map((e) => bytesFromBase64(e)) : [],
|
|
239
|
+
LocalPort: isSet(object.LocalPort) ? globalThis.Number(object.LocalPort) : 0,
|
|
240
|
+
VlessRoute: isSet(object.VlessRoute) ? globalThis.Number(object.VlessRoute) : 0,
|
|
205
241
|
};
|
|
206
242
|
},
|
|
207
243
|
toJSON(message) {
|
|
@@ -248,6 +284,15 @@ exports.RoutingContext = {
|
|
|
248
284
|
if (message.OutboundTag !== "") {
|
|
249
285
|
obj.OutboundTag = message.OutboundTag;
|
|
250
286
|
}
|
|
287
|
+
if (message.LocalIPs?.length) {
|
|
288
|
+
obj.LocalIPs = message.LocalIPs.map((e) => base64FromBytes(e));
|
|
289
|
+
}
|
|
290
|
+
if (message.LocalPort !== 0) {
|
|
291
|
+
obj.LocalPort = Math.round(message.LocalPort);
|
|
292
|
+
}
|
|
293
|
+
if (message.VlessRoute !== 0) {
|
|
294
|
+
obj.VlessRoute = Math.round(message.VlessRoute);
|
|
295
|
+
}
|
|
251
296
|
return obj;
|
|
252
297
|
},
|
|
253
298
|
create(base) {
|
|
@@ -272,6 +317,9 @@ exports.RoutingContext = {
|
|
|
272
317
|
}, {});
|
|
273
318
|
message.OutboundGroupTags = object.OutboundGroupTags?.map((e) => e) || [];
|
|
274
319
|
message.OutboundTag = object.OutboundTag ?? "";
|
|
320
|
+
message.LocalIPs = object.LocalIPs?.map((e) => e) || [];
|
|
321
|
+
message.LocalPort = object.LocalPort ?? 0;
|
|
322
|
+
message.VlessRoute = object.VlessRoute ?? 0;
|
|
275
323
|
return message;
|
|
276
324
|
},
|
|
277
325
|
};
|
|
@@ -93,7 +93,9 @@ export interface RoutingRule {
|
|
|
93
93
|
attributes: {
|
|
94
94
|
[key: string]: string;
|
|
95
95
|
};
|
|
96
|
-
|
|
96
|
+
localGeoip: GeoIP[];
|
|
97
|
+
localPortList: PortList | undefined;
|
|
98
|
+
vlessRouteList: PortList | undefined;
|
|
97
99
|
}
|
|
98
100
|
export interface RoutingRule_AttributesEntry {
|
|
99
101
|
$type: "xray.app.router.RoutingRule.AttributesEntry";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/app/router/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,OAAO,EAAkC,MAAM,0BAA0B,CAAC;AACnF,OAAO,EAAE,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,mCAAmC;AACnC,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,wBAAwB,CAAC;IAChC,4BAA4B;IAC5B,IAAI,EAAE,WAAW,CAAC;IAClB,oBAAoB;IACpB,KAAK,EAAE,MAAM,CAAC;IACd,4DAA4D;IAC5D,SAAS,EAAE,gBAAgB,EAAE,CAAC;CAC/B;AAED,4BAA4B;AAC5B,oBAAY,WAAW;IACrB,uCAAuC;IACvC,KAAK,IAAI;IACT,yDAAyD;IACzD,KAAK,IAAI;IACT,2CAA2C;IAC3C,MAAM,IAAI;IACV,oCAAoC;IACpC,IAAI,IAAI;IACR,YAAY,KAAK;CAClB;AAED,wBAAgB,mBAAmB,CAAC,MAAM,EAAE,GAAG,GAAG,WAAW,CAmB5D;AAED,wBAAgB,iBAAiB,CAAC,MAAM,EAAE,WAAW,GAAG,MAAM,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AAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: app/router/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Config = exports.StrategyLeastLoadConfig = exports.StrategyWeight = exports.BalancingRule = exports.RoutingRule_AttributesEntry = exports.RoutingRule = exports.GeoSiteList = exports.GeoSite = exports.GeoIPList = exports.GeoIP = exports.CIDR = exports.Domain_Attribute = exports.Domain = exports.Config_DomainStrategy = exports.Domain_Type = exports.protobufPackage = void 0;
|
|
@@ -642,7 +642,9 @@ function createBaseRoutingRule() {
|
|
|
642
642
|
inboundTag: [],
|
|
643
643
|
protocol: [],
|
|
644
644
|
attributes: {},
|
|
645
|
-
|
|
645
|
+
localGeoip: [],
|
|
646
|
+
localPortList: undefined,
|
|
647
|
+
vlessRouteList: undefined,
|
|
646
648
|
};
|
|
647
649
|
}
|
|
648
650
|
exports.RoutingRule = {
|
|
@@ -655,7 +657,7 @@ exports.RoutingRule = {
|
|
|
655
657
|
writer.uint32(98).string(message.balancingTag);
|
|
656
658
|
}
|
|
657
659
|
if (message.ruleTag !== "") {
|
|
658
|
-
writer.uint32(
|
|
660
|
+
writer.uint32(154).string(message.ruleTag);
|
|
659
661
|
}
|
|
660
662
|
for (const v of message.domain) {
|
|
661
663
|
exports.Domain.encode(v, writer.uint32(18).fork()).join();
|
|
@@ -693,8 +695,14 @@ exports.RoutingRule = {
|
|
|
693
695
|
value,
|
|
694
696
|
}, writer.uint32(122).fork()).join();
|
|
695
697
|
});
|
|
696
|
-
|
|
697
|
-
writer.uint32(138).
|
|
698
|
+
for (const v of message.localGeoip) {
|
|
699
|
+
exports.GeoIP.encode(v, writer.uint32(138).fork()).join();
|
|
700
|
+
}
|
|
701
|
+
if (message.localPortList !== undefined) {
|
|
702
|
+
port_1.PortList.encode(message.localPortList, writer.uint32(146).fork()).join();
|
|
703
|
+
}
|
|
704
|
+
if (message.vlessRouteList !== undefined) {
|
|
705
|
+
port_1.PortList.encode(message.vlessRouteList, writer.uint32(162).fork()).join();
|
|
698
706
|
}
|
|
699
707
|
return writer;
|
|
700
708
|
},
|
|
@@ -719,8 +727,8 @@ exports.RoutingRule = {
|
|
|
719
727
|
message.balancingTag = reader.string();
|
|
720
728
|
continue;
|
|
721
729
|
}
|
|
722
|
-
case
|
|
723
|
-
if (tag !==
|
|
730
|
+
case 19: {
|
|
731
|
+
if (tag !== 154) {
|
|
724
732
|
break;
|
|
725
733
|
}
|
|
726
734
|
message.ruleTag = reader.string();
|
|
@@ -810,7 +818,21 @@ exports.RoutingRule = {
|
|
|
810
818
|
if (tag !== 138) {
|
|
811
819
|
break;
|
|
812
820
|
}
|
|
813
|
-
message.
|
|
821
|
+
message.localGeoip.push(exports.GeoIP.decode(reader, reader.uint32()));
|
|
822
|
+
continue;
|
|
823
|
+
}
|
|
824
|
+
case 18: {
|
|
825
|
+
if (tag !== 146) {
|
|
826
|
+
break;
|
|
827
|
+
}
|
|
828
|
+
message.localPortList = port_1.PortList.decode(reader, reader.uint32());
|
|
829
|
+
continue;
|
|
830
|
+
}
|
|
831
|
+
case 20: {
|
|
832
|
+
if (tag !== 162) {
|
|
833
|
+
break;
|
|
834
|
+
}
|
|
835
|
+
message.vlessRouteList = port_1.PortList.decode(reader, reader.uint32());
|
|
814
836
|
continue;
|
|
815
837
|
}
|
|
816
838
|
}
|
|
@@ -848,7 +870,11 @@ exports.RoutingRule = {
|
|
|
848
870
|
return acc;
|
|
849
871
|
}, {})
|
|
850
872
|
: {},
|
|
851
|
-
|
|
873
|
+
localGeoip: globalThis.Array.isArray(object?.localGeoip)
|
|
874
|
+
? object.localGeoip.map((e) => exports.GeoIP.fromJSON(e))
|
|
875
|
+
: [],
|
|
876
|
+
localPortList: isSet(object.localPortList) ? port_1.PortList.fromJSON(object.localPortList) : undefined,
|
|
877
|
+
vlessRouteList: isSet(object.vlessRouteList) ? port_1.PortList.fromJSON(object.vlessRouteList) : undefined,
|
|
852
878
|
};
|
|
853
879
|
},
|
|
854
880
|
toJSON(message) {
|
|
@@ -898,8 +924,14 @@ exports.RoutingRule = {
|
|
|
898
924
|
});
|
|
899
925
|
}
|
|
900
926
|
}
|
|
901
|
-
if (message.
|
|
902
|
-
obj.
|
|
927
|
+
if (message.localGeoip?.length) {
|
|
928
|
+
obj.localGeoip = message.localGeoip.map((e) => exports.GeoIP.toJSON(e));
|
|
929
|
+
}
|
|
930
|
+
if (message.localPortList !== undefined) {
|
|
931
|
+
obj.localPortList = port_1.PortList.toJSON(message.localPortList);
|
|
932
|
+
}
|
|
933
|
+
if (message.vlessRouteList !== undefined) {
|
|
934
|
+
obj.vlessRouteList = port_1.PortList.toJSON(message.vlessRouteList);
|
|
903
935
|
}
|
|
904
936
|
return obj;
|
|
905
937
|
},
|
|
@@ -930,7 +962,13 @@ exports.RoutingRule = {
|
|
|
930
962
|
}
|
|
931
963
|
return acc;
|
|
932
964
|
}, {});
|
|
933
|
-
message.
|
|
965
|
+
message.localGeoip = object.localGeoip?.map((e) => exports.GeoIP.fromPartial(e)) || [];
|
|
966
|
+
message.localPortList = (object.localPortList !== undefined && object.localPortList !== null)
|
|
967
|
+
? port_1.PortList.fromPartial(object.localPortList)
|
|
968
|
+
: undefined;
|
|
969
|
+
message.vlessRouteList = (object.vlessRouteList !== undefined && object.vlessRouteList !== null)
|
|
970
|
+
? port_1.PortList.fromPartial(object.vlessRouteList)
|
|
971
|
+
: undefined;
|
|
934
972
|
return message;
|
|
935
973
|
},
|
|
936
974
|
};
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: app/stats/command/command.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.StatsServiceDefinition = exports.Config = exports.GetStatsOnlineIpListResponse_IpsEntry = exports.GetStatsOnlineIpListResponse = exports.SysStatsResponse = exports.SysStatsRequest = exports.QueryStatsResponse = exports.QueryStatsRequest = exports.GetStatsResponse = exports.Stat = exports.GetStatsRequest = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: app/stats/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ChannelConfig = exports.Config = exports.protobufPackage = void 0;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
+
export declare const protobufPackage = "xray.app.version";
|
|
3
|
+
export interface Config {
|
|
4
|
+
$type: "xray.app.version.Config";
|
|
5
|
+
coreVersion: string;
|
|
6
|
+
minVersion: string;
|
|
7
|
+
maxVersion: string;
|
|
8
|
+
}
|
|
9
|
+
export declare const Config: MessageFns<Config, "xray.app.version.Config">;
|
|
10
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
11
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
12
|
+
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
|
|
13
|
+
} : Partial<T>;
|
|
14
|
+
export interface MessageFns<T, V extends string> {
|
|
15
|
+
readonly $type: V;
|
|
16
|
+
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
17
|
+
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
18
|
+
fromJSON(object: any): T;
|
|
19
|
+
toJSON(message: T): unknown;
|
|
20
|
+
create(base?: DeepPartial<T>): T;
|
|
21
|
+
fromPartial(object: DeepPartial<T>): T;
|
|
22
|
+
}
|
|
23
|
+
export {};
|
|
24
|
+
//# sourceMappingURL=config.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/app/version/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,yBAAyB,CAAC;IACjC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC;CACpB;AAMD,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,yBAAyB,CAyFhE,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEpF,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI,CAAC,SAAS,OAAO,GAAG,CAAC,GAC9C,CAAC,SAAS,UAAU,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
|
|
@@ -0,0 +1,101 @@
|
|
|
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.29.3
|
|
6
|
+
// source: app/version/config.proto
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.Config = exports.protobufPackage = void 0;
|
|
9
|
+
/* eslint-disable */
|
|
10
|
+
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
|
+
const typeRegistry_1 = require("../../typeRegistry");
|
|
12
|
+
exports.protobufPackage = "xray.app.version";
|
|
13
|
+
function createBaseConfig() {
|
|
14
|
+
return { $type: "xray.app.version.Config", coreVersion: "", minVersion: "", maxVersion: "" };
|
|
15
|
+
}
|
|
16
|
+
exports.Config = {
|
|
17
|
+
$type: "xray.app.version.Config",
|
|
18
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
19
|
+
if (message.coreVersion !== "") {
|
|
20
|
+
writer.uint32(10).string(message.coreVersion);
|
|
21
|
+
}
|
|
22
|
+
if (message.minVersion !== "") {
|
|
23
|
+
writer.uint32(18).string(message.minVersion);
|
|
24
|
+
}
|
|
25
|
+
if (message.maxVersion !== "") {
|
|
26
|
+
writer.uint32(26).string(message.maxVersion);
|
|
27
|
+
}
|
|
28
|
+
return writer;
|
|
29
|
+
},
|
|
30
|
+
decode(input, length) {
|
|
31
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
32
|
+
let end = length === undefined ? reader.len : reader.pos + length;
|
|
33
|
+
const message = createBaseConfig();
|
|
34
|
+
while (reader.pos < end) {
|
|
35
|
+
const tag = reader.uint32();
|
|
36
|
+
switch (tag >>> 3) {
|
|
37
|
+
case 1: {
|
|
38
|
+
if (tag !== 10) {
|
|
39
|
+
break;
|
|
40
|
+
}
|
|
41
|
+
message.coreVersion = reader.string();
|
|
42
|
+
continue;
|
|
43
|
+
}
|
|
44
|
+
case 2: {
|
|
45
|
+
if (tag !== 18) {
|
|
46
|
+
break;
|
|
47
|
+
}
|
|
48
|
+
message.minVersion = reader.string();
|
|
49
|
+
continue;
|
|
50
|
+
}
|
|
51
|
+
case 3: {
|
|
52
|
+
if (tag !== 26) {
|
|
53
|
+
break;
|
|
54
|
+
}
|
|
55
|
+
message.maxVersion = reader.string();
|
|
56
|
+
continue;
|
|
57
|
+
}
|
|
58
|
+
}
|
|
59
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
60
|
+
break;
|
|
61
|
+
}
|
|
62
|
+
reader.skip(tag & 7);
|
|
63
|
+
}
|
|
64
|
+
return message;
|
|
65
|
+
},
|
|
66
|
+
fromJSON(object) {
|
|
67
|
+
return {
|
|
68
|
+
$type: exports.Config.$type,
|
|
69
|
+
coreVersion: isSet(object.coreVersion) ? globalThis.String(object.coreVersion) : "",
|
|
70
|
+
minVersion: isSet(object.minVersion) ? globalThis.String(object.minVersion) : "",
|
|
71
|
+
maxVersion: isSet(object.maxVersion) ? globalThis.String(object.maxVersion) : "",
|
|
72
|
+
};
|
|
73
|
+
},
|
|
74
|
+
toJSON(message) {
|
|
75
|
+
const obj = {};
|
|
76
|
+
if (message.coreVersion !== "") {
|
|
77
|
+
obj.coreVersion = message.coreVersion;
|
|
78
|
+
}
|
|
79
|
+
if (message.minVersion !== "") {
|
|
80
|
+
obj.minVersion = message.minVersion;
|
|
81
|
+
}
|
|
82
|
+
if (message.maxVersion !== "") {
|
|
83
|
+
obj.maxVersion = message.maxVersion;
|
|
84
|
+
}
|
|
85
|
+
return obj;
|
|
86
|
+
},
|
|
87
|
+
create(base) {
|
|
88
|
+
return exports.Config.fromPartial(base ?? {});
|
|
89
|
+
},
|
|
90
|
+
fromPartial(object) {
|
|
91
|
+
const message = createBaseConfig();
|
|
92
|
+
message.coreVersion = object.coreVersion ?? "";
|
|
93
|
+
message.minVersion = object.minVersion ?? "";
|
|
94
|
+
message.maxVersion = object.maxVersion ?? "";
|
|
95
|
+
return message;
|
|
96
|
+
},
|
|
97
|
+
};
|
|
98
|
+
typeRegistry_1.messageTypeRegistry.set(exports.Config.$type, exports.Config);
|
|
99
|
+
function isSet(value) {
|
|
100
|
+
return value !== null && value !== undefined;
|
|
101
|
+
}
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/log/log.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Severity = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/net/address.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.IPOrDomain = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/net/destination.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Endpoint = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/net/network.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.NetworkList = exports.Network = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/net/port.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.PortList = exports.PortRange = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/protocol/headers.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.SecurityConfig = exports.SecurityType = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/protocol/server_spec.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.ServerEndpoint = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/protocol/user.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.User = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: common/serial/typed_message.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.TypedMessage = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: core/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.OutboundHandlerConfig = exports.InboundHandlerConfig = exports.Config = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/blackhole/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Config = exports.HTTPResponse = exports.NoneResponse = exports.protobufPackage = void 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
4
|
// protoc-gen-ts_proto v2.2.7
|
|
5
|
-
// protoc v5.
|
|
5
|
+
// protoc v5.29.3
|
|
6
6
|
// source: proxy/dns/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
8
|
exports.Config = exports.protobufPackage = void 0;
|
|
@@ -6,12 +6,21 @@ export interface Config {
|
|
|
6
6
|
$type: "xray.proxy.dokodemo.Config";
|
|
7
7
|
address: IPOrDomain | undefined;
|
|
8
8
|
port: number;
|
|
9
|
+
portMap: {
|
|
10
|
+
[key: string]: string;
|
|
11
|
+
};
|
|
9
12
|
/** List of networks that the Dokodemo accepts. */
|
|
10
13
|
networks: Network[];
|
|
11
14
|
followRedirect: boolean;
|
|
12
15
|
userLevel: number;
|
|
13
16
|
}
|
|
17
|
+
export interface Config_PortMapEntry {
|
|
18
|
+
$type: "xray.proxy.dokodemo.Config.PortMapEntry";
|
|
19
|
+
key: string;
|
|
20
|
+
value: string;
|
|
21
|
+
}
|
|
14
22
|
export declare const Config: MessageFns<Config, "xray.proxy.dokodemo.Config">;
|
|
23
|
+
export declare const Config_PortMapEntry: MessageFns<Config_PortMapEntry, "xray.proxy.dokodemo.Config.PortMapEntry">;
|
|
15
24
|
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
16
25
|
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
17
26
|
[K in Exclude<keyof T, "$type">]?: DeepPartial<T[K]>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/dokodemo/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAkC,MAAM,0BAA0B,CAAC;AAGnF,eAAO,MAAM,eAAe,wBAAwB,CAAC;AAErD,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,4BAA4B,CAAC;IACpC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,kDAAkD;IAClD,QAAQ,EAAE,OAAO,EAAE,CAAC;IACpB,cAAc,EAAE,OAAO,CAAC;IACxB,SAAS,EAAE,MAAM,CAAC;CACnB;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/dokodemo/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,OAAO,EAAkC,MAAM,0BAA0B,CAAC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