@remnawave/xtls-sdk 0.2.0 → 0.3.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/decode-user.d.ts.map +1 -1
- package/build/src/xray-protos/transport/internet/config.d.ts +13 -0
- package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
- package/build/src/xray-protos/transport/internet/config.js +82 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"decode-user.d.ts","sourceRoot":"","sources":["../../../../../src/common/utils/decode-user/decode-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"decode-user.d.ts","sourceRoot":"","sources":["../../../../../src/common/utils/decode-user/decode-user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,2CAA2C,CAAC;AAEjE,OAAO,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAEtC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AACH,eAAO,MAAM,UAAU,GAAI,MAAM,IAAI,KAAG,WAoBvC,CAAC"}
|
|
@@ -18,6 +18,18 @@ export declare enum DomainStrategy {
|
|
|
18
18
|
}
|
|
19
19
|
export declare function domainStrategyFromJSON(object: any): DomainStrategy;
|
|
20
20
|
export declare function domainStrategyToJSON(object: DomainStrategy): string;
|
|
21
|
+
export declare enum AddressPortStrategy {
|
|
22
|
+
None = 0,
|
|
23
|
+
SrvPortOnly = 1,
|
|
24
|
+
SrvAddressOnly = 2,
|
|
25
|
+
SrvPortAndAddress = 3,
|
|
26
|
+
TxtPortOnly = 4,
|
|
27
|
+
TxtAddressOnly = 5,
|
|
28
|
+
TxtPortAndAddress = 6,
|
|
29
|
+
UNRECOGNIZED = -1
|
|
30
|
+
}
|
|
31
|
+
export declare function addressPortStrategyFromJSON(object: any): AddressPortStrategy;
|
|
32
|
+
export declare function addressPortStrategyToJSON(object: AddressPortStrategy): string;
|
|
21
33
|
export interface TransportConfig {
|
|
22
34
|
$type: "xray.transport.internet.TransportConfig";
|
|
23
35
|
/** Transport protocol name. */
|
|
@@ -80,6 +92,7 @@ export interface SocketConfig {
|
|
|
80
92
|
penetrate: boolean;
|
|
81
93
|
tcpMptcp: boolean;
|
|
82
94
|
customSockopt: CustomSockopt[];
|
|
95
|
+
addressPortStrategy: AddressPortStrategy;
|
|
83
96
|
}
|
|
84
97
|
export declare enum SocketConfig_TProxyMode {
|
|
85
98
|
/** Off - TProxy is off. */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/transport/internet/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,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEzD,oBAAY,cAAc;IACxB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,SAAS,IAAI;IACb,UAAU,IAAI;IACd,UAAU,KAAK;IACf,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAwClE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CA4BnE;AAED,MAAM,WAAW,eAAe;IAC9B,KAAK,EAAE,yCAA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C7B,gBAAgB,EAAE,MAAM,CAAC;IACzB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,EAAE,MAAM,CAAC;IACvB,SAAS,EAAE,MAAM,CAAC;IAClB,SAAS,EAAE,OAAO,CAAC;IACnB,QAAQ,EAAE,OAAO,CAAC;IAClB,aAAa,EAAE,aAAa,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/transport/internet/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,YAAY,EAAE,MAAM,mCAAmC,CAAC;AAGjE,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEzD,oBAAY,cAAc;IACxB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,OAAO,IAAI;IACX,OAAO,IAAI;IACX,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,SAAS,IAAI;IACb,UAAU,IAAI;IACd,UAAU,KAAK;IACf,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAwClE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CA4BnE;AAED,oBAAY,mBAAmB;IAC7B,IAAI,IAAI;IACR,WAAW,IAAI;IACf,cAAc,IAAI;IAClB,iBAAiB,IAAI;IACrB,WAAW,IAAI;IACf,cAAc,IAAI;IAClB,iBAAiB,IAAI;IACrB,YAAY,KAAK;CAClB;AAED,wBAAgB,2BAA2B,CAAC,MAAM,EAAE,GAAG,GAAG,mBAAmB,CA4B5E;AAED,wBAAgB,yBA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pF,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"}
|
|
@@ -5,9 +5,11 @@
|
|
|
5
5
|
// protoc v5.28.3
|
|
6
6
|
// source: transport/internet/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.SocketConfig = exports.CustomSockopt = exports.ProxyConfig = exports.StreamConfig = exports.TransportConfig = exports.SocketConfig_TProxyMode = exports.DomainStrategy = exports.protobufPackage = void 0;
|
|
8
|
+
exports.SocketConfig = exports.CustomSockopt = exports.ProxyConfig = exports.StreamConfig = exports.TransportConfig = exports.SocketConfig_TProxyMode = exports.AddressPortStrategy = exports.DomainStrategy = exports.protobufPackage = void 0;
|
|
9
9
|
exports.domainStrategyFromJSON = domainStrategyFromJSON;
|
|
10
10
|
exports.domainStrategyToJSON = domainStrategyToJSON;
|
|
11
|
+
exports.addressPortStrategyFromJSON = addressPortStrategyFromJSON;
|
|
12
|
+
exports.addressPortStrategyToJSON = addressPortStrategyToJSON;
|
|
11
13
|
exports.socketConfig_TProxyModeFromJSON = socketConfig_TProxyModeFromJSON;
|
|
12
14
|
exports.socketConfig_TProxyModeToJSON = socketConfig_TProxyModeToJSON;
|
|
13
15
|
/* eslint-disable */
|
|
@@ -101,6 +103,67 @@ function domainStrategyToJSON(object) {
|
|
|
101
103
|
return "UNRECOGNIZED";
|
|
102
104
|
}
|
|
103
105
|
}
|
|
106
|
+
var AddressPortStrategy;
|
|
107
|
+
(function (AddressPortStrategy) {
|
|
108
|
+
AddressPortStrategy[AddressPortStrategy["None"] = 0] = "None";
|
|
109
|
+
AddressPortStrategy[AddressPortStrategy["SrvPortOnly"] = 1] = "SrvPortOnly";
|
|
110
|
+
AddressPortStrategy[AddressPortStrategy["SrvAddressOnly"] = 2] = "SrvAddressOnly";
|
|
111
|
+
AddressPortStrategy[AddressPortStrategy["SrvPortAndAddress"] = 3] = "SrvPortAndAddress";
|
|
112
|
+
AddressPortStrategy[AddressPortStrategy["TxtPortOnly"] = 4] = "TxtPortOnly";
|
|
113
|
+
AddressPortStrategy[AddressPortStrategy["TxtAddressOnly"] = 5] = "TxtAddressOnly";
|
|
114
|
+
AddressPortStrategy[AddressPortStrategy["TxtPortAndAddress"] = 6] = "TxtPortAndAddress";
|
|
115
|
+
AddressPortStrategy[AddressPortStrategy["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
|
|
116
|
+
})(AddressPortStrategy || (exports.AddressPortStrategy = AddressPortStrategy = {}));
|
|
117
|
+
function addressPortStrategyFromJSON(object) {
|
|
118
|
+
switch (object) {
|
|
119
|
+
case 0:
|
|
120
|
+
case "None":
|
|
121
|
+
return AddressPortStrategy.None;
|
|
122
|
+
case 1:
|
|
123
|
+
case "SrvPortOnly":
|
|
124
|
+
return AddressPortStrategy.SrvPortOnly;
|
|
125
|
+
case 2:
|
|
126
|
+
case "SrvAddressOnly":
|
|
127
|
+
return AddressPortStrategy.SrvAddressOnly;
|
|
128
|
+
case 3:
|
|
129
|
+
case "SrvPortAndAddress":
|
|
130
|
+
return AddressPortStrategy.SrvPortAndAddress;
|
|
131
|
+
case 4:
|
|
132
|
+
case "TxtPortOnly":
|
|
133
|
+
return AddressPortStrategy.TxtPortOnly;
|
|
134
|
+
case 5:
|
|
135
|
+
case "TxtAddressOnly":
|
|
136
|
+
return AddressPortStrategy.TxtAddressOnly;
|
|
137
|
+
case 6:
|
|
138
|
+
case "TxtPortAndAddress":
|
|
139
|
+
return AddressPortStrategy.TxtPortAndAddress;
|
|
140
|
+
case -1:
|
|
141
|
+
case "UNRECOGNIZED":
|
|
142
|
+
default:
|
|
143
|
+
return AddressPortStrategy.UNRECOGNIZED;
|
|
144
|
+
}
|
|
145
|
+
}
|
|
146
|
+
function addressPortStrategyToJSON(object) {
|
|
147
|
+
switch (object) {
|
|
148
|
+
case AddressPortStrategy.None:
|
|
149
|
+
return "None";
|
|
150
|
+
case AddressPortStrategy.SrvPortOnly:
|
|
151
|
+
return "SrvPortOnly";
|
|
152
|
+
case AddressPortStrategy.SrvAddressOnly:
|
|
153
|
+
return "SrvAddressOnly";
|
|
154
|
+
case AddressPortStrategy.SrvPortAndAddress:
|
|
155
|
+
return "SrvPortAndAddress";
|
|
156
|
+
case AddressPortStrategy.TxtPortOnly:
|
|
157
|
+
return "TxtPortOnly";
|
|
158
|
+
case AddressPortStrategy.TxtAddressOnly:
|
|
159
|
+
return "TxtAddressOnly";
|
|
160
|
+
case AddressPortStrategy.TxtPortAndAddress:
|
|
161
|
+
return "TxtPortAndAddress";
|
|
162
|
+
case AddressPortStrategy.UNRECOGNIZED:
|
|
163
|
+
default:
|
|
164
|
+
return "UNRECOGNIZED";
|
|
165
|
+
}
|
|
166
|
+
}
|
|
104
167
|
var SocketConfig_TProxyMode;
|
|
105
168
|
(function (SocketConfig_TProxyMode) {
|
|
106
169
|
/** Off - TProxy is off. */
|
|
@@ -572,6 +635,7 @@ function createBaseSocketConfig() {
|
|
|
572
635
|
penetrate: false,
|
|
573
636
|
tcpMptcp: false,
|
|
574
637
|
customSockopt: [],
|
|
638
|
+
addressPortStrategy: 0,
|
|
575
639
|
};
|
|
576
640
|
}
|
|
577
641
|
exports.SocketConfig = {
|
|
@@ -637,6 +701,9 @@ exports.SocketConfig = {
|
|
|
637
701
|
for (const v of message.customSockopt) {
|
|
638
702
|
exports.CustomSockopt.encode(v, writer.uint32(162).fork()).join();
|
|
639
703
|
}
|
|
704
|
+
if (message.addressPortStrategy !== 0) {
|
|
705
|
+
writer.uint32(168).int32(message.addressPortStrategy);
|
|
706
|
+
}
|
|
640
707
|
return writer;
|
|
641
708
|
},
|
|
642
709
|
decode(input, length) {
|
|
@@ -786,6 +853,13 @@ exports.SocketConfig = {
|
|
|
786
853
|
message.customSockopt.push(exports.CustomSockopt.decode(reader, reader.uint32()));
|
|
787
854
|
continue;
|
|
788
855
|
}
|
|
856
|
+
case 21: {
|
|
857
|
+
if (tag !== 168) {
|
|
858
|
+
break;
|
|
859
|
+
}
|
|
860
|
+
message.addressPortStrategy = reader.int32();
|
|
861
|
+
continue;
|
|
862
|
+
}
|
|
789
863
|
}
|
|
790
864
|
if ((tag & 7) === 4 || tag === 0) {
|
|
791
865
|
break;
|
|
@@ -821,6 +895,9 @@ exports.SocketConfig = {
|
|
|
821
895
|
customSockopt: globalThis.Array.isArray(object?.customSockopt)
|
|
822
896
|
? object.customSockopt.map((e) => exports.CustomSockopt.fromJSON(e))
|
|
823
897
|
: [],
|
|
898
|
+
addressPortStrategy: isSet(object.addressPortStrategy)
|
|
899
|
+
? addressPortStrategyFromJSON(object.addressPortStrategy)
|
|
900
|
+
: 0,
|
|
824
901
|
};
|
|
825
902
|
},
|
|
826
903
|
toJSON(message) {
|
|
@@ -885,6 +962,9 @@ exports.SocketConfig = {
|
|
|
885
962
|
if (message.customSockopt?.length) {
|
|
886
963
|
obj.customSockopt = message.customSockopt.map((e) => exports.CustomSockopt.toJSON(e));
|
|
887
964
|
}
|
|
965
|
+
if (message.addressPortStrategy !== 0) {
|
|
966
|
+
obj.addressPortStrategy = addressPortStrategyToJSON(message.addressPortStrategy);
|
|
967
|
+
}
|
|
888
968
|
return obj;
|
|
889
969
|
},
|
|
890
970
|
create(base) {
|
|
@@ -912,6 +992,7 @@ exports.SocketConfig = {
|
|
|
912
992
|
message.penetrate = object.penetrate ?? false;
|
|
913
993
|
message.tcpMptcp = object.tcpMptcp ?? false;
|
|
914
994
|
message.customSockopt = object.customSockopt?.map((e) => exports.CustomSockopt.fromPartial(e)) || [];
|
|
995
|
+
message.addressPortStrategy = object.addressPortStrategy ?? 0;
|
|
915
996
|
return message;
|
|
916
997
|
},
|
|
917
998
|
};
|