@remnawave/xtls-sdk 0.6.3 → 0.8.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/index.d.ts +1 -1
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1 -1
- package/build/src/common/utils/decode-user/constants/account-types.d.ts +2 -2
- 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 +9 -7
- package/build/src/common/utils/decode-user/decode-user.d.ts.map +1 -1
- package/build/src/common/utils/decode-user/decode-user.js +1 -2
- package/build/src/handler/handler.service.d.ts +2 -3
- package/build/src/handler/handler.service.d.ts.map +1 -1
- package/build/src/handler/handler.service.js +17 -18
- package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts.map +1 -1
- package/build/src/router/models/index.d.ts +1 -0
- package/build/src/router/models/index.d.ts.map +1 -1
- package/build/src/router/models/index.js +1 -0
- package/build/src/router/router.service.d.ts +2 -3
- package/build/src/router/router.service.d.ts.map +1 -1
- package/build/src/router/router.service.js +3 -4
- package/build/src/stats/stats.service.d.ts +1 -1
- package/build/src/stats/stats.service.d.ts.map +1 -1
- package/build/src/stats/stats.service.js +1 -1
- package/build/src/xray-protos/app/commander/config.js +3 -3
- package/build/src/xray-protos/app/dispatcher/config.js +3 -3
- package/build/src/xray-protos/app/log/command/config.d.ts +1 -1
- package/build/src/xray-protos/app/log/command/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/log/command/config.js +4 -4
- package/build/src/xray-protos/app/log/config.js +2 -2
- package/build/src/xray-protos/app/metrics/config.js +2 -2
- package/build/src/xray-protos/app/policy/config.js +10 -10
- package/build/src/xray-protos/app/proxyman/command/command.d.ts +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/command/command.js +23 -23
- package/build/src/xray-protos/app/proxyman/config.d.ts +0 -37
- package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/proxyman/config.js +16 -284
- package/build/src/xray-protos/app/reverse/config.js +5 -5
- package/build/src/xray-protos/app/router/command/command.d.ts +1 -1
- package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/command/command.js +17 -17
- package/build/src/xray-protos/app/router/config.d.ts +0 -2
- package/build/src/xray-protos/app/router/config.d.ts.map +1 -1
- package/build/src/xray-protos/app/router/config.js +14 -21
- package/build/src/xray-protos/app/stats/command/command.d.ts +1 -1
- package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -1
- package/build/src/xray-protos/app/stats/command/command.js +11 -11
- package/build/src/xray-protos/app/stats/config.js +3 -3
- package/build/src/xray-protos/app/version/config.js +2 -2
- package/build/src/xray-protos/common/log/log.js +1 -1
- package/build/src/xray-protos/common/net/address.js +2 -2
- package/build/src/xray-protos/common/net/destination.js +2 -2
- package/build/src/xray-protos/common/net/network.js +2 -2
- package/build/src/xray-protos/common/net/port.js +3 -3
- package/build/src/xray-protos/common/protocol/headers.js +2 -2
- package/build/src/xray-protos/common/protocol/server_spec.d.ts +1 -1
- package/build/src/xray-protos/common/protocol/server_spec.d.ts.map +1 -1
- package/build/src/xray-protos/common/protocol/server_spec.js +10 -10
- package/build/src/xray-protos/common/protocol/user.js +2 -2
- package/build/src/xray-protos/common/serial/typed_message.js +2 -2
- package/build/src/xray-protos/core/config.js +4 -4
- package/build/src/xray-protos/proxy/blackhole/config.js +4 -4
- package/build/src/xray-protos/proxy/dns/config.js +2 -2
- package/build/src/xray-protos/proxy/dokodemo/config.js +3 -3
- package/build/src/xray-protos/proxy/freedom/config.js +5 -5
- package/build/src/xray-protos/proxy/http/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/http/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/http/config.js +16 -14
- package/build/src/xray-protos/proxy/loopback/config.js +2 -2
- package/build/src/xray-protos/proxy/shadowsocks/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/shadowsocks/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/shadowsocks/config.js +14 -12
- package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +7 -7
- package/build/src/xray-protos/proxy/socks/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/socks/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/socks/config.js +15 -13
- package/build/src/xray-protos/proxy/trojan/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/trojan/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/trojan/config.js +15 -13
- package/build/src/xray-protos/proxy/vless/account.d.ts +2 -0
- package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/account.js +44 -3
- package/build/src/xray-protos/proxy/vless/encoding/addons.js +2 -2
- package/build/src/xray-protos/proxy/vless/inbound/config.js +3 -3
- package/build/src/xray-protos/proxy/vless/outbound/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/vless/outbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vless/outbound/config.js +15 -13
- package/build/src/xray-protos/proxy/vmess/account.js +2 -2
- package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts +0 -2
- package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vmess/inbound/config.js +5 -22
- package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts +1 -1
- package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts.map +1 -1
- package/build/src/xray-protos/proxy/vmess/outbound/config.js +15 -12
- package/build/src/xray-protos/proxy/wireguard/config.js +3 -3
- package/build/src/xray-protos/transport/internet/config.d.ts +1 -0
- package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
- package/build/src/xray-protos/transport/internet/config.js +25 -7
- package/build/src/xray-protos/typeRegistry.d.ts +1 -1
- package/build/src/xray-protos/typeRegistry.d.ts.map +1 -1
- package/build/src/xray-protos/typeRegistry.js +1 -1
- package/package.json +22 -14
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/blackhole/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -21,7 +21,7 @@ exports.NoneResponse = {
|
|
|
21
21
|
},
|
|
22
22
|
decode(input, length) {
|
|
23
23
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
24
|
-
|
|
24
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
25
25
|
const message = createBaseNoneResponse();
|
|
26
26
|
while (reader.pos < end) {
|
|
27
27
|
const tag = reader.uint32();
|
|
@@ -60,7 +60,7 @@ exports.HTTPResponse = {
|
|
|
60
60
|
},
|
|
61
61
|
decode(input, length) {
|
|
62
62
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
63
|
-
|
|
63
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
64
64
|
const message = createBaseHTTPResponse();
|
|
65
65
|
while (reader.pos < end) {
|
|
66
66
|
const tag = reader.uint32();
|
|
@@ -102,7 +102,7 @@ exports.Config = {
|
|
|
102
102
|
},
|
|
103
103
|
decode(input, length) {
|
|
104
104
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
105
|
-
|
|
105
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
106
106
|
const message = createBaseConfig();
|
|
107
107
|
while (reader.pos < end) {
|
|
108
108
|
const tag = reader.uint32();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/dns/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -35,7 +35,7 @@ exports.Config = {
|
|
|
35
35
|
},
|
|
36
36
|
decode(input, length) {
|
|
37
37
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
38
|
-
|
|
38
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
39
39
|
const message = createBaseConfig();
|
|
40
40
|
while (reader.pos < end) {
|
|
41
41
|
const tag = reader.uint32();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/dokodemo/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -50,7 +50,7 @@ exports.Config = {
|
|
|
50
50
|
},
|
|
51
51
|
decode(input, length) {
|
|
52
52
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
53
|
-
|
|
53
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
54
54
|
const message = createBaseConfig();
|
|
55
55
|
while (reader.pos < end) {
|
|
56
56
|
const tag = reader.uint32();
|
|
@@ -197,7 +197,7 @@ exports.Config_PortMapEntry = {
|
|
|
197
197
|
},
|
|
198
198
|
decode(input, length) {
|
|
199
199
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
200
|
-
|
|
200
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
201
201
|
const message = createBaseConfig_PortMapEntry();
|
|
202
202
|
while (reader.pos < end) {
|
|
203
203
|
const tag = reader.uint32();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/freedom/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -25,7 +25,7 @@ exports.DestinationOverride = {
|
|
|
25
25
|
},
|
|
26
26
|
decode(input, length) {
|
|
27
27
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
28
|
-
|
|
28
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
29
29
|
const message = createBaseDestinationOverride();
|
|
30
30
|
while (reader.pos < end) {
|
|
31
31
|
const tag = reader.uint32();
|
|
@@ -114,7 +114,7 @@ exports.Fragment = {
|
|
|
114
114
|
},
|
|
115
115
|
decode(input, length) {
|
|
116
116
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
117
|
-
|
|
117
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
118
118
|
const message = createBaseFragment();
|
|
119
119
|
while (reader.pos < end) {
|
|
120
120
|
const tag = reader.uint32();
|
|
@@ -277,7 +277,7 @@ exports.Noise = {
|
|
|
277
277
|
},
|
|
278
278
|
decode(input, length) {
|
|
279
279
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
280
|
-
|
|
280
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
281
281
|
const message = createBaseNoise();
|
|
282
282
|
while (reader.pos < end) {
|
|
283
283
|
const tag = reader.uint32();
|
|
@@ -416,7 +416,7 @@ exports.Config = {
|
|
|
416
416
|
},
|
|
417
417
|
decode(input, length) {
|
|
418
418
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
419
|
-
|
|
419
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
420
420
|
const message = createBaseConfig();
|
|
421
421
|
while (reader.pos < end) {
|
|
422
422
|
const tag = reader.uint32();
|
|
@@ -29,7 +29,7 @@ export interface Header {
|
|
|
29
29
|
export interface ClientConfig {
|
|
30
30
|
$type: "xray.proxy.http.ClientConfig";
|
|
31
31
|
/** Sever is a list of HTTP server addresses. */
|
|
32
|
-
server: ServerEndpoint
|
|
32
|
+
server: ServerEndpoint | undefined;
|
|
33
33
|
header: Header[];
|
|
34
34
|
}
|
|
35
35
|
export declare const Account: MessageFns<Account, "xray.proxy.http.Account">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/http/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,eAAO,MAAM,eAAe,oBAAoB,CAAC;AAEjD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,yBAAyB,CAAC;IACjC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,oCAAoC;AACpC,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,8BAA8B,CAAC;IACtC,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,gBAAgB,EAAE,OAAO,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,0BAA0B;IACzC,KAAK,EAAE,4CAA4C,CAAC;IACpD,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,wBAAwB,CAAC;IAChC,GAAG,EAAE,MAAM,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AG,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/http/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -27,7 +27,7 @@ exports.Account = {
|
|
|
27
27
|
},
|
|
28
28
|
decode(input, length) {
|
|
29
29
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
30
|
-
|
|
30
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
31
31
|
const message = createBaseAccount();
|
|
32
32
|
while (reader.pos < end) {
|
|
33
33
|
const tag = reader.uint32();
|
|
@@ -101,7 +101,7 @@ exports.ServerConfig = {
|
|
|
101
101
|
},
|
|
102
102
|
decode(input, length) {
|
|
103
103
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
104
|
-
|
|
104
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
105
105
|
const message = createBaseServerConfig();
|
|
106
106
|
while (reader.pos < end) {
|
|
107
107
|
const tag = reader.uint32();
|
|
@@ -203,7 +203,7 @@ exports.ServerConfig_AccountsEntry = {
|
|
|
203
203
|
},
|
|
204
204
|
decode(input, length) {
|
|
205
205
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
206
|
-
|
|
206
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
207
207
|
const message = createBaseServerConfig_AccountsEntry();
|
|
208
208
|
while (reader.pos < end) {
|
|
209
209
|
const tag = reader.uint32();
|
|
@@ -274,7 +274,7 @@ exports.Header = {
|
|
|
274
274
|
},
|
|
275
275
|
decode(input, length) {
|
|
276
276
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
277
|
-
|
|
277
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
278
278
|
const message = createBaseHeader();
|
|
279
279
|
while (reader.pos < end) {
|
|
280
280
|
const tag = reader.uint32();
|
|
@@ -330,13 +330,13 @@ exports.Header = {
|
|
|
330
330
|
};
|
|
331
331
|
typeRegistry_1.messageTypeRegistry.set(exports.Header.$type, exports.Header);
|
|
332
332
|
function createBaseClientConfig() {
|
|
333
|
-
return { $type: "xray.proxy.http.ClientConfig", server:
|
|
333
|
+
return { $type: "xray.proxy.http.ClientConfig", server: undefined, header: [] };
|
|
334
334
|
}
|
|
335
335
|
exports.ClientConfig = {
|
|
336
336
|
$type: "xray.proxy.http.ClientConfig",
|
|
337
337
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
338
|
-
|
|
339
|
-
server_spec_1.ServerEndpoint.encode(
|
|
338
|
+
if (message.server !== undefined) {
|
|
339
|
+
server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(10).fork()).join();
|
|
340
340
|
}
|
|
341
341
|
for (const v of message.header) {
|
|
342
342
|
exports.Header.encode(v, writer.uint32(18).fork()).join();
|
|
@@ -345,7 +345,7 @@ exports.ClientConfig = {
|
|
|
345
345
|
},
|
|
346
346
|
decode(input, length) {
|
|
347
347
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
348
|
-
|
|
348
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
349
349
|
const message = createBaseClientConfig();
|
|
350
350
|
while (reader.pos < end) {
|
|
351
351
|
const tag = reader.uint32();
|
|
@@ -354,7 +354,7 @@ exports.ClientConfig = {
|
|
|
354
354
|
if (tag !== 10) {
|
|
355
355
|
break;
|
|
356
356
|
}
|
|
357
|
-
message.server
|
|
357
|
+
message.server = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
|
|
358
358
|
continue;
|
|
359
359
|
}
|
|
360
360
|
case 2: {
|
|
@@ -375,14 +375,14 @@ exports.ClientConfig = {
|
|
|
375
375
|
fromJSON(object) {
|
|
376
376
|
return {
|
|
377
377
|
$type: exports.ClientConfig.$type,
|
|
378
|
-
server:
|
|
378
|
+
server: isSet(object.server) ? server_spec_1.ServerEndpoint.fromJSON(object.server) : undefined,
|
|
379
379
|
header: globalThis.Array.isArray(object?.header) ? object.header.map((e) => exports.Header.fromJSON(e)) : [],
|
|
380
380
|
};
|
|
381
381
|
},
|
|
382
382
|
toJSON(message) {
|
|
383
383
|
const obj = {};
|
|
384
|
-
if (message.server
|
|
385
|
-
obj.server =
|
|
384
|
+
if (message.server !== undefined) {
|
|
385
|
+
obj.server = server_spec_1.ServerEndpoint.toJSON(message.server);
|
|
386
386
|
}
|
|
387
387
|
if (message.header?.length) {
|
|
388
388
|
obj.header = message.header.map((e) => exports.Header.toJSON(e));
|
|
@@ -394,7 +394,9 @@ exports.ClientConfig = {
|
|
|
394
394
|
},
|
|
395
395
|
fromPartial(object) {
|
|
396
396
|
const message = createBaseClientConfig();
|
|
397
|
-
message.server = object.server
|
|
397
|
+
message.server = (object.server !== undefined && object.server !== null)
|
|
398
|
+
? server_spec_1.ServerEndpoint.fromPartial(object.server)
|
|
399
|
+
: undefined;
|
|
398
400
|
message.header = object.header?.map((e) => exports.Header.fromPartial(e)) || [];
|
|
399
401
|
return message;
|
|
400
402
|
},
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/loopback/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -23,7 +23,7 @@ exports.Config = {
|
|
|
23
23
|
},
|
|
24
24
|
decode(input, length) {
|
|
25
25
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
26
|
-
|
|
26
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
27
27
|
const message = createBaseConfig();
|
|
28
28
|
while (reader.pos < end) {
|
|
29
29
|
const tag = reader.uint32();
|
|
@@ -27,7 +27,7 @@ export interface ServerConfig {
|
|
|
27
27
|
}
|
|
28
28
|
export interface ClientConfig {
|
|
29
29
|
$type: "xray.proxy.shadowsocks.ClientConfig";
|
|
30
|
-
server: ServerEndpoint
|
|
30
|
+
server: ServerEndpoint | undefined;
|
|
31
31
|
}
|
|
32
32
|
export declare const Account: MessageFns<Account, "xray.proxy.shadowsocks.Account">;
|
|
33
33
|
export declare const ServerConfig: MessageFns<ServerConfig, "xray.proxy.shadowsocks.ServerConfig">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/shadowsocks/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,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,eAAO,MAAM,eAAe,2BAA2B,CAAC;AAExD,oBAAY,UAAU;IACpB,OAAO,IAAI;IACX,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,kBAAkB,IAAI;IACtB,IAAI,IAAI;IACR,YAAY,KAAK;CAClB;AAED,wBAAgB,kBAAkB,CA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AE,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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/shadowsocks/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -89,7 +89,7 @@ exports.Account = {
|
|
|
89
89
|
},
|
|
90
90
|
decode(input, length) {
|
|
91
91
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
92
|
-
|
|
92
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
93
93
|
const message = createBaseAccount();
|
|
94
94
|
while (reader.pos < end) {
|
|
95
95
|
const tag = reader.uint32();
|
|
@@ -174,7 +174,7 @@ exports.ServerConfig = {
|
|
|
174
174
|
},
|
|
175
175
|
decode(input, length) {
|
|
176
176
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
177
|
-
|
|
177
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
178
178
|
const message = createBaseServerConfig();
|
|
179
179
|
while (reader.pos < end) {
|
|
180
180
|
const tag = reader.uint32();
|
|
@@ -237,19 +237,19 @@ exports.ServerConfig = {
|
|
|
237
237
|
};
|
|
238
238
|
typeRegistry_1.messageTypeRegistry.set(exports.ServerConfig.$type, exports.ServerConfig);
|
|
239
239
|
function createBaseClientConfig() {
|
|
240
|
-
return { $type: "xray.proxy.shadowsocks.ClientConfig", server:
|
|
240
|
+
return { $type: "xray.proxy.shadowsocks.ClientConfig", server: undefined };
|
|
241
241
|
}
|
|
242
242
|
exports.ClientConfig = {
|
|
243
243
|
$type: "xray.proxy.shadowsocks.ClientConfig",
|
|
244
244
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
245
|
-
|
|
246
|
-
server_spec_1.ServerEndpoint.encode(
|
|
245
|
+
if (message.server !== undefined) {
|
|
246
|
+
server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(10).fork()).join();
|
|
247
247
|
}
|
|
248
248
|
return writer;
|
|
249
249
|
},
|
|
250
250
|
decode(input, length) {
|
|
251
251
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
252
|
-
|
|
252
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
253
253
|
const message = createBaseClientConfig();
|
|
254
254
|
while (reader.pos < end) {
|
|
255
255
|
const tag = reader.uint32();
|
|
@@ -258,7 +258,7 @@ exports.ClientConfig = {
|
|
|
258
258
|
if (tag !== 10) {
|
|
259
259
|
break;
|
|
260
260
|
}
|
|
261
|
-
message.server
|
|
261
|
+
message.server = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
|
|
262
262
|
continue;
|
|
263
263
|
}
|
|
264
264
|
}
|
|
@@ -272,13 +272,13 @@ exports.ClientConfig = {
|
|
|
272
272
|
fromJSON(object) {
|
|
273
273
|
return {
|
|
274
274
|
$type: exports.ClientConfig.$type,
|
|
275
|
-
server:
|
|
275
|
+
server: isSet(object.server) ? server_spec_1.ServerEndpoint.fromJSON(object.server) : undefined,
|
|
276
276
|
};
|
|
277
277
|
},
|
|
278
278
|
toJSON(message) {
|
|
279
279
|
const obj = {};
|
|
280
|
-
if (message.server
|
|
281
|
-
obj.server =
|
|
280
|
+
if (message.server !== undefined) {
|
|
281
|
+
obj.server = server_spec_1.ServerEndpoint.toJSON(message.server);
|
|
282
282
|
}
|
|
283
283
|
return obj;
|
|
284
284
|
},
|
|
@@ -287,7 +287,9 @@ exports.ClientConfig = {
|
|
|
287
287
|
},
|
|
288
288
|
fromPartial(object) {
|
|
289
289
|
const message = createBaseClientConfig();
|
|
290
|
-
message.server = object.server
|
|
290
|
+
message.server = (object.server !== undefined && object.server !== null)
|
|
291
|
+
? server_spec_1.ServerEndpoint.fromPartial(object.server)
|
|
292
|
+
: undefined;
|
|
291
293
|
return message;
|
|
292
294
|
},
|
|
293
295
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/shadowsocks_2022/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -40,7 +40,7 @@ exports.ServerConfig = {
|
|
|
40
40
|
},
|
|
41
41
|
decode(input, length) {
|
|
42
42
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
43
|
-
|
|
43
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
44
44
|
const message = createBaseServerConfig();
|
|
45
45
|
while (reader.pos < end) {
|
|
46
46
|
const tag = reader.uint32();
|
|
@@ -162,7 +162,7 @@ exports.MultiUserServerConfig = {
|
|
|
162
162
|
},
|
|
163
163
|
decode(input, length) {
|
|
164
164
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
165
|
-
|
|
165
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
166
166
|
const message = createBaseMultiUserServerConfig();
|
|
167
167
|
while (reader.pos < end) {
|
|
168
168
|
const tag = reader.uint32();
|
|
@@ -280,7 +280,7 @@ exports.RelayDestination = {
|
|
|
280
280
|
},
|
|
281
281
|
decode(input, length) {
|
|
282
282
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
283
|
-
|
|
283
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
284
284
|
const message = createBaseRelayDestination();
|
|
285
285
|
while (reader.pos < end) {
|
|
286
286
|
const tag = reader.uint32();
|
|
@@ -397,7 +397,7 @@ exports.RelayServerConfig = {
|
|
|
397
397
|
},
|
|
398
398
|
decode(input, length) {
|
|
399
399
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
400
|
-
|
|
400
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
401
401
|
const message = createBaseRelayServerConfig();
|
|
402
402
|
while (reader.pos < end) {
|
|
403
403
|
const tag = reader.uint32();
|
|
@@ -498,7 +498,7 @@ exports.Account = {
|
|
|
498
498
|
},
|
|
499
499
|
decode(input, length) {
|
|
500
500
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
501
|
-
|
|
501
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
502
502
|
const message = createBaseAccount();
|
|
503
503
|
while (reader.pos < end) {
|
|
504
504
|
const tag = reader.uint32();
|
|
@@ -574,7 +574,7 @@ exports.ClientConfig = {
|
|
|
574
574
|
},
|
|
575
575
|
decode(input, length) {
|
|
576
576
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
577
|
-
|
|
577
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
578
578
|
const message = createBaseClientConfig();
|
|
579
579
|
while (reader.pos < end) {
|
|
580
580
|
const tag = reader.uint32();
|
|
@@ -38,7 +38,7 @@ export interface ServerConfig_AccountsEntry {
|
|
|
38
38
|
export interface ClientConfig {
|
|
39
39
|
$type: "xray.proxy.socks.ClientConfig";
|
|
40
40
|
/** Sever is a list of Socks server addresses. */
|
|
41
|
-
server: ServerEndpoint
|
|
41
|
+
server: ServerEndpoint | undefined;
|
|
42
42
|
}
|
|
43
43
|
export declare const Account: MessageFns<Account, "xray.proxy.socks.Account">;
|
|
44
44
|
export declare const ServerConfig: MessageFns<ServerConfig, "xray.proxy.socks.ServerConfig">;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/socks/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,cAAc,EAAE,MAAM,mCAAmC,CAAC;AAGnE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,0DAA0D;AAC1D,oBAAY,QAAQ;IAClB,yDAAyD;IACzD,OAAO,IAAI;IACX,mEAAmE;IACnE,QAAQ,IAAI;IACZ,YAAY,KAAK;CAClB;AAED,wBAAgB,gBAAgB,CAAC,MAAM,EAAE,GAAG,GAAG,QAAQ,CAatD;AAED,wBAAgB,cAAc,CAAC,MAAM,EAAE,QAAQ,GAAG,MAAM,CAUvD;AAED,0CAA0C;AAC1C,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,QAAQ,EAAE,MAAM,CAAC;IACjB,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,4DAA4D;AAC5D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,+BAA+B,CAAC;IACvC,QAAQ,EAAE,QAAQ,CAAC;IACnB,QAAQ,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAC;IACpC,OAAO,EAAE,UAAU,GAAG,SAAS,CAAC;IAChC,UAAU,E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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"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
|
|
3
3
|
// versions:
|
|
4
|
-
// protoc-gen-ts_proto v2.
|
|
4
|
+
// protoc-gen-ts_proto v2.8.3
|
|
5
5
|
// protoc v5.29.3
|
|
6
6
|
// source: proxy/socks/config.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -64,7 +64,7 @@ exports.Account = {
|
|
|
64
64
|
},
|
|
65
65
|
decode(input, length) {
|
|
66
66
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
67
|
-
|
|
67
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
68
68
|
const message = createBaseAccount();
|
|
69
69
|
while (reader.pos < end) {
|
|
70
70
|
const tag = reader.uint32();
|
|
@@ -155,7 +155,7 @@ exports.ServerConfig = {
|
|
|
155
155
|
},
|
|
156
156
|
decode(input, length) {
|
|
157
157
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
158
|
-
|
|
158
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
159
159
|
const message = createBaseServerConfig();
|
|
160
160
|
while (reader.pos < end) {
|
|
161
161
|
const tag = reader.uint32();
|
|
@@ -283,7 +283,7 @@ exports.ServerConfig_AccountsEntry = {
|
|
|
283
283
|
},
|
|
284
284
|
decode(input, length) {
|
|
285
285
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
286
|
-
|
|
286
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
287
287
|
const message = createBaseServerConfig_AccountsEntry();
|
|
288
288
|
while (reader.pos < end) {
|
|
289
289
|
const tag = reader.uint32();
|
|
@@ -339,19 +339,19 @@ exports.ServerConfig_AccountsEntry = {
|
|
|
339
339
|
};
|
|
340
340
|
typeRegistry_1.messageTypeRegistry.set(exports.ServerConfig_AccountsEntry.$type, exports.ServerConfig_AccountsEntry);
|
|
341
341
|
function createBaseClientConfig() {
|
|
342
|
-
return { $type: "xray.proxy.socks.ClientConfig", server:
|
|
342
|
+
return { $type: "xray.proxy.socks.ClientConfig", server: undefined };
|
|
343
343
|
}
|
|
344
344
|
exports.ClientConfig = {
|
|
345
345
|
$type: "xray.proxy.socks.ClientConfig",
|
|
346
346
|
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
347
|
-
|
|
348
|
-
server_spec_1.ServerEndpoint.encode(
|
|
347
|
+
if (message.server !== undefined) {
|
|
348
|
+
server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(10).fork()).join();
|
|
349
349
|
}
|
|
350
350
|
return writer;
|
|
351
351
|
},
|
|
352
352
|
decode(input, length) {
|
|
353
353
|
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
354
|
-
|
|
354
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
355
355
|
const message = createBaseClientConfig();
|
|
356
356
|
while (reader.pos < end) {
|
|
357
357
|
const tag = reader.uint32();
|
|
@@ -360,7 +360,7 @@ exports.ClientConfig = {
|
|
|
360
360
|
if (tag !== 10) {
|
|
361
361
|
break;
|
|
362
362
|
}
|
|
363
|
-
message.server
|
|
363
|
+
message.server = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
|
|
364
364
|
continue;
|
|
365
365
|
}
|
|
366
366
|
}
|
|
@@ -374,13 +374,13 @@ exports.ClientConfig = {
|
|
|
374
374
|
fromJSON(object) {
|
|
375
375
|
return {
|
|
376
376
|
$type: exports.ClientConfig.$type,
|
|
377
|
-
server:
|
|
377
|
+
server: isSet(object.server) ? server_spec_1.ServerEndpoint.fromJSON(object.server) : undefined,
|
|
378
378
|
};
|
|
379
379
|
},
|
|
380
380
|
toJSON(message) {
|
|
381
381
|
const obj = {};
|
|
382
|
-
if (message.server
|
|
383
|
-
obj.server =
|
|
382
|
+
if (message.server !== undefined) {
|
|
383
|
+
obj.server = server_spec_1.ServerEndpoint.toJSON(message.server);
|
|
384
384
|
}
|
|
385
385
|
return obj;
|
|
386
386
|
},
|
|
@@ -389,7 +389,9 @@ exports.ClientConfig = {
|
|
|
389
389
|
},
|
|
390
390
|
fromPartial(object) {
|
|
391
391
|
const message = createBaseClientConfig();
|
|
392
|
-
message.server = object.server
|
|
392
|
+
message.server = (object.server !== undefined && object.server !== null)
|
|
393
|
+
? server_spec_1.ServerEndpoint.fromPartial(object.server)
|
|
394
|
+
: undefined;
|
|
393
395
|
return message;
|
|
394
396
|
},
|
|
395
397
|
};
|
|
@@ -17,7 +17,7 @@ export interface Fallback {
|
|
|
17
17
|
}
|
|
18
18
|
export interface ClientConfig {
|
|
19
19
|
$type: "xray.proxy.trojan.ClientConfig";
|
|
20
|
-
server: ServerEndpoint
|
|
20
|
+
server: ServerEndpoint | undefined;
|
|
21
21
|
}
|
|
22
22
|
export interface ServerConfig {
|
|
23
23
|
$type: "xray.proxy.trojan.ServerConfig";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/trojan/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,2BAA2B,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,4BAA4B,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,gCAAgC,CAAC;IACxC,MAAM,EAAE,cAAc,
|
|
1
|
+
{"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/trojan/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAE,IAAI,EAAE,MAAM,4BAA4B,CAAC;AAGlD,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAEnD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,2BAA2B,CAAC;IACnC,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,WAAW,QAAQ;IACvB,KAAK,EAAE,4BAA4B,CAAC;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,I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