@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.
Files changed (100) hide show
  1. package/build/index.d.ts +1 -1
  2. package/build/index.d.ts.map +1 -1
  3. package/build/index.js +1 -1
  4. package/build/src/common/utils/decode-user/constants/account-types.d.ts +2 -2
  5. package/build/src/common/utils/decode-user/constants/account-types.d.ts.map +1 -1
  6. package/build/src/common/utils/decode-user/constants/account-types.js +9 -7
  7. package/build/src/common/utils/decode-user/decode-user.d.ts.map +1 -1
  8. package/build/src/common/utils/decode-user/decode-user.js +1 -2
  9. package/build/src/handler/handler.service.d.ts +2 -3
  10. package/build/src/handler/handler.service.d.ts.map +1 -1
  11. package/build/src/handler/handler.service.js +17 -18
  12. package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts.map +1 -1
  13. package/build/src/router/models/index.d.ts +1 -0
  14. package/build/src/router/models/index.d.ts.map +1 -1
  15. package/build/src/router/models/index.js +1 -0
  16. package/build/src/router/router.service.d.ts +2 -3
  17. package/build/src/router/router.service.d.ts.map +1 -1
  18. package/build/src/router/router.service.js +3 -4
  19. package/build/src/stats/stats.service.d.ts +1 -1
  20. package/build/src/stats/stats.service.d.ts.map +1 -1
  21. package/build/src/stats/stats.service.js +1 -1
  22. package/build/src/xray-protos/app/commander/config.js +3 -3
  23. package/build/src/xray-protos/app/dispatcher/config.js +3 -3
  24. package/build/src/xray-protos/app/log/command/config.d.ts +1 -1
  25. package/build/src/xray-protos/app/log/command/config.d.ts.map +1 -1
  26. package/build/src/xray-protos/app/log/command/config.js +4 -4
  27. package/build/src/xray-protos/app/log/config.js +2 -2
  28. package/build/src/xray-protos/app/metrics/config.js +2 -2
  29. package/build/src/xray-protos/app/policy/config.js +10 -10
  30. package/build/src/xray-protos/app/proxyman/command/command.d.ts +1 -1
  31. package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
  32. package/build/src/xray-protos/app/proxyman/command/command.js +23 -23
  33. package/build/src/xray-protos/app/proxyman/config.d.ts +0 -37
  34. package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -1
  35. package/build/src/xray-protos/app/proxyman/config.js +16 -284
  36. package/build/src/xray-protos/app/reverse/config.js +5 -5
  37. package/build/src/xray-protos/app/router/command/command.d.ts +1 -1
  38. package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -1
  39. package/build/src/xray-protos/app/router/command/command.js +17 -17
  40. package/build/src/xray-protos/app/router/config.d.ts +0 -2
  41. package/build/src/xray-protos/app/router/config.d.ts.map +1 -1
  42. package/build/src/xray-protos/app/router/config.js +14 -21
  43. package/build/src/xray-protos/app/stats/command/command.d.ts +1 -1
  44. package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -1
  45. package/build/src/xray-protos/app/stats/command/command.js +11 -11
  46. package/build/src/xray-protos/app/stats/config.js +3 -3
  47. package/build/src/xray-protos/app/version/config.js +2 -2
  48. package/build/src/xray-protos/common/log/log.js +1 -1
  49. package/build/src/xray-protos/common/net/address.js +2 -2
  50. package/build/src/xray-protos/common/net/destination.js +2 -2
  51. package/build/src/xray-protos/common/net/network.js +2 -2
  52. package/build/src/xray-protos/common/net/port.js +3 -3
  53. package/build/src/xray-protos/common/protocol/headers.js +2 -2
  54. package/build/src/xray-protos/common/protocol/server_spec.d.ts +1 -1
  55. package/build/src/xray-protos/common/protocol/server_spec.d.ts.map +1 -1
  56. package/build/src/xray-protos/common/protocol/server_spec.js +10 -10
  57. package/build/src/xray-protos/common/protocol/user.js +2 -2
  58. package/build/src/xray-protos/common/serial/typed_message.js +2 -2
  59. package/build/src/xray-protos/core/config.js +4 -4
  60. package/build/src/xray-protos/proxy/blackhole/config.js +4 -4
  61. package/build/src/xray-protos/proxy/dns/config.js +2 -2
  62. package/build/src/xray-protos/proxy/dokodemo/config.js +3 -3
  63. package/build/src/xray-protos/proxy/freedom/config.js +5 -5
  64. package/build/src/xray-protos/proxy/http/config.d.ts +1 -1
  65. package/build/src/xray-protos/proxy/http/config.d.ts.map +1 -1
  66. package/build/src/xray-protos/proxy/http/config.js +16 -14
  67. package/build/src/xray-protos/proxy/loopback/config.js +2 -2
  68. package/build/src/xray-protos/proxy/shadowsocks/config.d.ts +1 -1
  69. package/build/src/xray-protos/proxy/shadowsocks/config.d.ts.map +1 -1
  70. package/build/src/xray-protos/proxy/shadowsocks/config.js +14 -12
  71. package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +7 -7
  72. package/build/src/xray-protos/proxy/socks/config.d.ts +1 -1
  73. package/build/src/xray-protos/proxy/socks/config.d.ts.map +1 -1
  74. package/build/src/xray-protos/proxy/socks/config.js +15 -13
  75. package/build/src/xray-protos/proxy/trojan/config.d.ts +1 -1
  76. package/build/src/xray-protos/proxy/trojan/config.d.ts.map +1 -1
  77. package/build/src/xray-protos/proxy/trojan/config.js +15 -13
  78. package/build/src/xray-protos/proxy/vless/account.d.ts +2 -0
  79. package/build/src/xray-protos/proxy/vless/account.d.ts.map +1 -1
  80. package/build/src/xray-protos/proxy/vless/account.js +44 -3
  81. package/build/src/xray-protos/proxy/vless/encoding/addons.js +2 -2
  82. package/build/src/xray-protos/proxy/vless/inbound/config.js +3 -3
  83. package/build/src/xray-protos/proxy/vless/outbound/config.d.ts +1 -1
  84. package/build/src/xray-protos/proxy/vless/outbound/config.d.ts.map +1 -1
  85. package/build/src/xray-protos/proxy/vless/outbound/config.js +15 -13
  86. package/build/src/xray-protos/proxy/vmess/account.js +2 -2
  87. package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts +0 -2
  88. package/build/src/xray-protos/proxy/vmess/inbound/config.d.ts.map +1 -1
  89. package/build/src/xray-protos/proxy/vmess/inbound/config.js +5 -22
  90. package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts +1 -1
  91. package/build/src/xray-protos/proxy/vmess/outbound/config.d.ts.map +1 -1
  92. package/build/src/xray-protos/proxy/vmess/outbound/config.js +15 -12
  93. package/build/src/xray-protos/proxy/wireguard/config.js +3 -3
  94. package/build/src/xray-protos/transport/internet/config.d.ts +1 -0
  95. package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
  96. package/build/src/xray-protos/transport/internet/config.js +25 -7
  97. package/build/src/xray-protos/typeRegistry.d.ts +1 -1
  98. package/build/src/xray-protos/typeRegistry.d.ts.map +1 -1
  99. package/build/src/xray-protos/typeRegistry.js +1 -1
  100. 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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/trojan/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -25,7 +25,7 @@ exports.Account = {
25
25
  },
26
26
  decode(input, length) {
27
27
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
28
- let end = length === undefined ? reader.len : reader.pos + length;
28
+ const end = length === undefined ? reader.len : reader.pos + length;
29
29
  const message = createBaseAccount();
30
30
  while (reader.pos < end) {
31
31
  const tag = reader.uint32();
@@ -93,7 +93,7 @@ exports.Fallback = {
93
93
  },
94
94
  decode(input, length) {
95
95
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
96
- let end = length === undefined ? reader.len : reader.pos + length;
96
+ const end = length === undefined ? reader.len : reader.pos + length;
97
97
  const message = createBaseFallback();
98
98
  while (reader.pos < end) {
99
99
  const tag = reader.uint32();
@@ -197,19 +197,19 @@ exports.Fallback = {
197
197
  };
198
198
  typeRegistry_1.messageTypeRegistry.set(exports.Fallback.$type, exports.Fallback);
199
199
  function createBaseClientConfig() {
200
- return { $type: "xray.proxy.trojan.ClientConfig", server: [] };
200
+ return { $type: "xray.proxy.trojan.ClientConfig", server: undefined };
201
201
  }
202
202
  exports.ClientConfig = {
203
203
  $type: "xray.proxy.trojan.ClientConfig",
204
204
  encode(message, writer = new wire_1.BinaryWriter()) {
205
- for (const v of message.server) {
206
- server_spec_1.ServerEndpoint.encode(v, writer.uint32(10).fork()).join();
205
+ if (message.server !== undefined) {
206
+ server_spec_1.ServerEndpoint.encode(message.server, writer.uint32(10).fork()).join();
207
207
  }
208
208
  return writer;
209
209
  },
210
210
  decode(input, length) {
211
211
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
212
- let end = length === undefined ? reader.len : reader.pos + length;
212
+ const end = length === undefined ? reader.len : reader.pos + length;
213
213
  const message = createBaseClientConfig();
214
214
  while (reader.pos < end) {
215
215
  const tag = reader.uint32();
@@ -218,7 +218,7 @@ exports.ClientConfig = {
218
218
  if (tag !== 10) {
219
219
  break;
220
220
  }
221
- message.server.push(server_spec_1.ServerEndpoint.decode(reader, reader.uint32()));
221
+ message.server = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
222
222
  continue;
223
223
  }
224
224
  }
@@ -232,13 +232,13 @@ exports.ClientConfig = {
232
232
  fromJSON(object) {
233
233
  return {
234
234
  $type: exports.ClientConfig.$type,
235
- server: globalThis.Array.isArray(object?.server) ? object.server.map((e) => server_spec_1.ServerEndpoint.fromJSON(e)) : [],
235
+ server: isSet(object.server) ? server_spec_1.ServerEndpoint.fromJSON(object.server) : undefined,
236
236
  };
237
237
  },
238
238
  toJSON(message) {
239
239
  const obj = {};
240
- if (message.server?.length) {
241
- obj.server = message.server.map((e) => server_spec_1.ServerEndpoint.toJSON(e));
240
+ if (message.server !== undefined) {
241
+ obj.server = server_spec_1.ServerEndpoint.toJSON(message.server);
242
242
  }
243
243
  return obj;
244
244
  },
@@ -247,7 +247,9 @@ exports.ClientConfig = {
247
247
  },
248
248
  fromPartial(object) {
249
249
  const message = createBaseClientConfig();
250
- message.server = object.server?.map((e) => server_spec_1.ServerEndpoint.fromPartial(e)) || [];
250
+ message.server = (object.server !== undefined && object.server !== null)
251
+ ? server_spec_1.ServerEndpoint.fromPartial(object.server)
252
+ : undefined;
251
253
  return message;
252
254
  },
253
255
  };
@@ -268,7 +270,7 @@ exports.ServerConfig = {
268
270
  },
269
271
  decode(input, length) {
270
272
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
271
- let end = length === undefined ? reader.len : reader.pos + length;
273
+ const end = length === undefined ? reader.len : reader.pos + length;
272
274
  const message = createBaseServerConfig();
273
275
  while (reader.pos < end) {
274
276
  const tag = reader.uint32();
@@ -15,6 +15,8 @@ export interface Account {
15
15
  seconds: number;
16
16
  padding: string;
17
17
  reverse: Reverse | undefined;
18
+ testpre: number;
19
+ testseed: number[];
18
20
  }
19
21
  export declare const Reverse: MessageFns<Reverse, "xray.proxy.vless.Reverse">;
20
22
  export declare const Account: MessageFns<Account, "xray.proxy.vless.Account">;
@@ -1 +1 @@
1
- {"version":3,"file":"account.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/proxy/vless/account.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAGrE,eAAO,MAAM,eAAe,qBAAqB,CAAC;AAElD,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,GAAG,EAAE,MAAM,CAAC;CACb;AAED,MAAM,WAAW,OAAO;IACtB,KAAK,EAAE,0BAA0B,CAAC;IAClC,8FAA8F;IAC9F,EAAE,EAAE,MAAM,CAAC;IACX,gDAAgD;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,OAAO,GAAG,SAAS,CAAC;CAC9B;AAMD,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,0BAA0B,CAsDnE,CAAC;AAiBF,eAAO,MAAM,OAAO,EAAE,UAAU,CAAC,OAAO,EAAE,0BAA0B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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"}
@@ -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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vless/account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,7 +23,7 @@ exports.Reverse = {
23
23
  },
24
24
  decode(input, length) {
25
25
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
26
- let end = length === undefined ? reader.len : reader.pos + length;
26
+ const end = length === undefined ? reader.len : reader.pos + length;
27
27
  const message = createBaseReverse();
28
28
  while (reader.pos < end) {
29
29
  const tag = reader.uint32();
@@ -73,6 +73,8 @@ function createBaseAccount() {
73
73
  seconds: 0,
74
74
  padding: "",
75
75
  reverse: undefined,
76
+ testpre: 0,
77
+ testseed: [],
76
78
  };
77
79
  }
78
80
  exports.Account = {
@@ -99,11 +101,19 @@ exports.Account = {
99
101
  if (message.reverse !== undefined) {
100
102
  exports.Reverse.encode(message.reverse, writer.uint32(58).fork()).join();
101
103
  }
104
+ if (message.testpre !== 0) {
105
+ writer.uint32(64).uint32(message.testpre);
106
+ }
107
+ writer.uint32(74).fork();
108
+ for (const v of message.testseed) {
109
+ writer.uint32(v);
110
+ }
111
+ writer.join();
102
112
  return writer;
103
113
  },
104
114
  decode(input, length) {
105
115
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
106
- let end = length === undefined ? reader.len : reader.pos + length;
116
+ const end = length === undefined ? reader.len : reader.pos + length;
107
117
  const message = createBaseAccount();
108
118
  while (reader.pos < end) {
109
119
  const tag = reader.uint32();
@@ -157,6 +167,27 @@ exports.Account = {
157
167
  message.reverse = exports.Reverse.decode(reader, reader.uint32());
158
168
  continue;
159
169
  }
170
+ case 8: {
171
+ if (tag !== 64) {
172
+ break;
173
+ }
174
+ message.testpre = reader.uint32();
175
+ continue;
176
+ }
177
+ case 9: {
178
+ if (tag === 72) {
179
+ message.testseed.push(reader.uint32());
180
+ continue;
181
+ }
182
+ if (tag === 74) {
183
+ const end2 = reader.uint32() + reader.pos;
184
+ while (reader.pos < end2) {
185
+ message.testseed.push(reader.uint32());
186
+ }
187
+ continue;
188
+ }
189
+ break;
190
+ }
160
191
  }
161
192
  if ((tag & 7) === 4 || tag === 0) {
162
193
  break;
@@ -175,6 +206,8 @@ exports.Account = {
175
206
  seconds: isSet(object.seconds) ? globalThis.Number(object.seconds) : 0,
176
207
  padding: isSet(object.padding) ? globalThis.String(object.padding) : "",
177
208
  reverse: isSet(object.reverse) ? exports.Reverse.fromJSON(object.reverse) : undefined,
209
+ testpre: isSet(object.testpre) ? globalThis.Number(object.testpre) : 0,
210
+ testseed: globalThis.Array.isArray(object?.testseed) ? object.testseed.map((e) => globalThis.Number(e)) : [],
178
211
  };
179
212
  },
180
213
  toJSON(message) {
@@ -200,6 +233,12 @@ exports.Account = {
200
233
  if (message.reverse !== undefined) {
201
234
  obj.reverse = exports.Reverse.toJSON(message.reverse);
202
235
  }
236
+ if (message.testpre !== 0) {
237
+ obj.testpre = Math.round(message.testpre);
238
+ }
239
+ if (message.testseed?.length) {
240
+ obj.testseed = message.testseed.map((e) => Math.round(e));
241
+ }
203
242
  return obj;
204
243
  },
205
244
  create(base) {
@@ -216,6 +255,8 @@ exports.Account = {
216
255
  message.reverse = (object.reverse !== undefined && object.reverse !== null)
217
256
  ? exports.Reverse.fromPartial(object.reverse)
218
257
  : undefined;
258
+ message.testpre = object.testpre ?? 0;
259
+ message.testseed = object.testseed?.map((e) => e) || [];
219
260
  return message;
220
261
  },
221
262
  };
@@ -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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vless/encoding/addons.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -26,7 +26,7 @@ exports.Addons = {
26
26
  },
27
27
  decode(input, length) {
28
28
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
29
- let end = length === undefined ? reader.len : reader.pos + length;
29
+ const end = length === undefined ? reader.len : reader.pos + length;
30
30
  const message = createBaseAddons();
31
31
  while (reader.pos < end) {
32
32
  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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vless/inbound/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -39,7 +39,7 @@ exports.Fallback = {
39
39
  },
40
40
  decode(input, length) {
41
41
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
42
- let end = length === undefined ? reader.len : reader.pos + length;
42
+ const end = length === undefined ? reader.len : reader.pos + length;
43
43
  const message = createBaseFallback();
44
44
  while (reader.pos < end) {
45
45
  const tag = reader.uint32();
@@ -182,7 +182,7 @@ exports.Config = {
182
182
  },
183
183
  decode(input, length) {
184
184
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
185
- let end = length === undefined ? reader.len : reader.pos + length;
185
+ const end = length === undefined ? reader.len : reader.pos + length;
186
186
  const message = createBaseConfig();
187
187
  while (reader.pos < end) {
188
188
  const tag = reader.uint32();
@@ -3,7 +3,7 @@ import { ServerEndpoint } from "../../../common/protocol/server_spec";
3
3
  export declare const protobufPackage = "xray.proxy.vless.outbound";
4
4
  export interface Config {
5
5
  $type: "xray.proxy.vless.outbound.Config";
6
- vnext: ServerEndpoint[];
6
+ vnext: ServerEndpoint | undefined;
7
7
  }
8
8
  export declare const Config: MessageFns<Config, "xray.proxy.vless.outbound.Config">;
9
9
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vless/outbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,kCAAkC,CAAC;IAC1C,KAAK,EAAE,cAAc,EAAE,CAAC;CACzB;AAMD,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,kCAAkC,CAyDzE,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG,QAAQ,GAAG,UAAU,GAAG,MAAM,GAAG,MAAM,GAAG,OAAO,GAAG,SAAS,CAAC;AAEp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,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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vless/outbound/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,19 +12,19 @@ const server_spec_1 = require("../../../common/protocol/server_spec");
12
12
  const typeRegistry_1 = require("../../../typeRegistry");
13
13
  exports.protobufPackage = "xray.proxy.vless.outbound";
14
14
  function createBaseConfig() {
15
- return { $type: "xray.proxy.vless.outbound.Config", vnext: [] };
15
+ return { $type: "xray.proxy.vless.outbound.Config", vnext: undefined };
16
16
  }
17
17
  exports.Config = {
18
18
  $type: "xray.proxy.vless.outbound.Config",
19
19
  encode(message, writer = new wire_1.BinaryWriter()) {
20
- for (const v of message.vnext) {
21
- server_spec_1.ServerEndpoint.encode(v, writer.uint32(10).fork()).join();
20
+ if (message.vnext !== undefined) {
21
+ server_spec_1.ServerEndpoint.encode(message.vnext, writer.uint32(10).fork()).join();
22
22
  }
23
23
  return writer;
24
24
  },
25
25
  decode(input, length) {
26
26
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
27
+ const end = length === undefined ? reader.len : reader.pos + length;
28
28
  const message = createBaseConfig();
29
29
  while (reader.pos < end) {
30
30
  const tag = reader.uint32();
@@ -33,7 +33,7 @@ exports.Config = {
33
33
  if (tag !== 10) {
34
34
  break;
35
35
  }
36
- message.vnext.push(server_spec_1.ServerEndpoint.decode(reader, reader.uint32()));
36
+ message.vnext = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
37
37
  continue;
38
38
  }
39
39
  }
@@ -45,15 +45,12 @@ exports.Config = {
45
45
  return message;
46
46
  },
47
47
  fromJSON(object) {
48
- return {
49
- $type: exports.Config.$type,
50
- vnext: globalThis.Array.isArray(object?.vnext) ? object.vnext.map((e) => server_spec_1.ServerEndpoint.fromJSON(e)) : [],
51
- };
48
+ return { $type: exports.Config.$type, vnext: isSet(object.vnext) ? server_spec_1.ServerEndpoint.fromJSON(object.vnext) : undefined };
52
49
  },
53
50
  toJSON(message) {
54
51
  const obj = {};
55
- if (message.vnext?.length) {
56
- obj.vnext = message.vnext.map((e) => server_spec_1.ServerEndpoint.toJSON(e));
52
+ if (message.vnext !== undefined) {
53
+ obj.vnext = server_spec_1.ServerEndpoint.toJSON(message.vnext);
57
54
  }
58
55
  return obj;
59
56
  },
@@ -62,8 +59,13 @@ exports.Config = {
62
59
  },
63
60
  fromPartial(object) {
64
61
  const message = createBaseConfig();
65
- message.vnext = object.vnext?.map((e) => server_spec_1.ServerEndpoint.fromPartial(e)) || [];
62
+ message.vnext = (object.vnext !== undefined && object.vnext !== null)
63
+ ? server_spec_1.ServerEndpoint.fromPartial(object.vnext)
64
+ : undefined;
66
65
  return message;
67
66
  },
68
67
  };
69
68
  typeRegistry_1.messageTypeRegistry.set(exports.Config.$type, exports.Config);
69
+ function isSet(value) {
70
+ return value !== null && value !== undefined;
71
+ }
@@ -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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vmess/account.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -30,7 +30,7 @@ exports.Account = {
30
30
  },
31
31
  decode(input, length) {
32
32
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
33
- let end = length === undefined ? reader.len : reader.pos + length;
33
+ const end = length === undefined ? reader.len : reader.pos + length;
34
34
  const message = createBaseAccount();
35
35
  while (reader.pos < end) {
36
36
  const tag = reader.uint32();
@@ -13,8 +13,6 @@ export interface Config {
13
13
  $type: "xray.proxy.vmess.inbound.Config";
14
14
  user: User[];
15
15
  default: DefaultConfig | undefined;
16
- /** 4 is for legacy setting */
17
- detour: DetourConfig | undefined;
18
16
  }
19
17
  export declare const DetourConfig: MessageFns<DetourConfig, "xray.proxy.vmess.inbound.DetourConfig">;
20
18
  export declare const DefaultConfig: MessageFns<DefaultConfig, "xray.proxy.vmess.inbound.DefaultConfig">;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vmess/inbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,IAAI,EAAE,MAAM,+BAA+B,CAAC;AAGrD,eAAO,MAAM,eAAe,6BAA6B,CAAC;AAE1D,MAAM,WAAW,YAAY;IAC3B,KAAK,EAAE,uCAAuC,CAAC;IAC/C,EAAE,EAAE,MAAM,CAAC;CACZ;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,wCAAwC,CAAC;IAChD,KAAK,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,iCAAiC,CAAC;IACzC,IAAI,EAAE,IAAI,EAAE,CAAC;IACb,OAAO,EACH,aAAa,GACb,SAAS,CAAC;IACd,8BAA8B;IAC9B,MAAM,EAAE,YAAY,GAAG,SAAS,CAAC;CAClC;AAMD,eAAO,MAAM,YAAY,EAAE,UAAU,CAAC,YAAY,EAAE,uCAAuC,CAsD1F,CAAC;AAQF,eAAO,MAAM,aAAa,EAAE,UAAU,CAAC,aAAa,EAAE,wCAAwC,CAsD7F,CAAC;AAQF,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,iCAAiC,CA6FxE,CAAC;AA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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"}
@@ -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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vmess/inbound/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -24,7 +24,7 @@ exports.DetourConfig = {
24
24
  },
25
25
  decode(input, length) {
26
26
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
27
+ const end = length === undefined ? reader.len : reader.pos + length;
28
28
  const message = createBaseDetourConfig();
29
29
  while (reader.pos < end) {
30
30
  const tag = reader.uint32();
@@ -77,7 +77,7 @@ exports.DefaultConfig = {
77
77
  },
78
78
  decode(input, length) {
79
79
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
80
- let end = length === undefined ? reader.len : reader.pos + length;
80
+ const end = length === undefined ? reader.len : reader.pos + length;
81
81
  const message = createBaseDefaultConfig();
82
82
  while (reader.pos < end) {
83
83
  const tag = reader.uint32();
@@ -118,7 +118,7 @@ exports.DefaultConfig = {
118
118
  };
119
119
  typeRegistry_1.messageTypeRegistry.set(exports.DefaultConfig.$type, exports.DefaultConfig);
120
120
  function createBaseConfig() {
121
- return { $type: "xray.proxy.vmess.inbound.Config", user: [], default: undefined, detour: undefined };
121
+ return { $type: "xray.proxy.vmess.inbound.Config", user: [], default: undefined };
122
122
  }
123
123
  exports.Config = {
124
124
  $type: "xray.proxy.vmess.inbound.Config",
@@ -129,14 +129,11 @@ exports.Config = {
129
129
  if (message.default !== undefined) {
130
130
  exports.DefaultConfig.encode(message.default, writer.uint32(18).fork()).join();
131
131
  }
132
- if (message.detour !== undefined) {
133
- exports.DetourConfig.encode(message.detour, writer.uint32(26).fork()).join();
134
- }
135
132
  return writer;
136
133
  },
137
134
  decode(input, length) {
138
135
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
139
- let end = length === undefined ? reader.len : reader.pos + length;
136
+ const end = length === undefined ? reader.len : reader.pos + length;
140
137
  const message = createBaseConfig();
141
138
  while (reader.pos < end) {
142
139
  const tag = reader.uint32();
@@ -155,13 +152,6 @@ exports.Config = {
155
152
  message.default = exports.DefaultConfig.decode(reader, reader.uint32());
156
153
  continue;
157
154
  }
158
- case 3: {
159
- if (tag !== 26) {
160
- break;
161
- }
162
- message.detour = exports.DetourConfig.decode(reader, reader.uint32());
163
- continue;
164
- }
165
155
  }
166
156
  if ((tag & 7) === 4 || tag === 0) {
167
157
  break;
@@ -175,7 +165,6 @@ exports.Config = {
175
165
  $type: exports.Config.$type,
176
166
  user: globalThis.Array.isArray(object?.user) ? object.user.map((e) => user_1.User.fromJSON(e)) : [],
177
167
  default: isSet(object.default) ? exports.DefaultConfig.fromJSON(object.default) : undefined,
178
- detour: isSet(object.detour) ? exports.DetourConfig.fromJSON(object.detour) : undefined,
179
168
  };
180
169
  },
181
170
  toJSON(message) {
@@ -186,9 +175,6 @@ exports.Config = {
186
175
  if (message.default !== undefined) {
187
176
  obj.default = exports.DefaultConfig.toJSON(message.default);
188
177
  }
189
- if (message.detour !== undefined) {
190
- obj.detour = exports.DetourConfig.toJSON(message.detour);
191
- }
192
178
  return obj;
193
179
  },
194
180
  create(base) {
@@ -200,9 +186,6 @@ exports.Config = {
200
186
  message.default = (object.default !== undefined && object.default !== null)
201
187
  ? exports.DefaultConfig.fromPartial(object.default)
202
188
  : undefined;
203
- message.detour = (object.detour !== undefined && object.detour !== null)
204
- ? exports.DetourConfig.fromPartial(object.detour)
205
- : undefined;
206
189
  return message;
207
190
  },
208
191
  };
@@ -3,7 +3,7 @@ import { ServerEndpoint } from "../../../common/protocol/server_spec";
3
3
  export declare const protobufPackage = "xray.proxy.vmess.outbound";
4
4
  export interface Config {
5
5
  $type: "xray.proxy.vmess.outbound.Config";
6
- Receiver: ServerEndpoint[];
6
+ Receiver: ServerEndpoint | undefined;
7
7
  }
8
8
  export declare const Config: MessageFns<Config, "xray.proxy.vmess.outbound.Config">;
9
9
  type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/proxy/vmess/outbound/config.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,sCAAsC,CAAC;AAGtE,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,MAAM,WAAW,MAAM;IACrB,KAAK,EAAE,kCAAkC,CAAC;IAC1C,QAAQ,EAAE,cAAc,EAAE,CAAC;CAC5B;AAMD,eAAO,MAAM,MAAM,EAAE,UAAU,CAAC,MAAM,EAAE,kCAAkC,CA2DzE,CAAC;AAIF,KAAK,OAAO,GAAG,IAAI,GAAG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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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/vmess/outbound/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -12,19 +12,19 @@ const server_spec_1 = require("../../../common/protocol/server_spec");
12
12
  const typeRegistry_1 = require("../../../typeRegistry");
13
13
  exports.protobufPackage = "xray.proxy.vmess.outbound";
14
14
  function createBaseConfig() {
15
- return { $type: "xray.proxy.vmess.outbound.Config", Receiver: [] };
15
+ return { $type: "xray.proxy.vmess.outbound.Config", Receiver: undefined };
16
16
  }
17
17
  exports.Config = {
18
18
  $type: "xray.proxy.vmess.outbound.Config",
19
19
  encode(message, writer = new wire_1.BinaryWriter()) {
20
- for (const v of message.Receiver) {
21
- server_spec_1.ServerEndpoint.encode(v, writer.uint32(10).fork()).join();
20
+ if (message.Receiver !== undefined) {
21
+ server_spec_1.ServerEndpoint.encode(message.Receiver, writer.uint32(10).fork()).join();
22
22
  }
23
23
  return writer;
24
24
  },
25
25
  decode(input, length) {
26
26
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
27
- let end = length === undefined ? reader.len : reader.pos + length;
27
+ const end = length === undefined ? reader.len : reader.pos + length;
28
28
  const message = createBaseConfig();
29
29
  while (reader.pos < end) {
30
30
  const tag = reader.uint32();
@@ -33,7 +33,7 @@ exports.Config = {
33
33
  if (tag !== 10) {
34
34
  break;
35
35
  }
36
- message.Receiver.push(server_spec_1.ServerEndpoint.decode(reader, reader.uint32()));
36
+ message.Receiver = server_spec_1.ServerEndpoint.decode(reader, reader.uint32());
37
37
  continue;
38
38
  }
39
39
  }
@@ -47,15 +47,13 @@ exports.Config = {
47
47
  fromJSON(object) {
48
48
  return {
49
49
  $type: exports.Config.$type,
50
- Receiver: globalThis.Array.isArray(object?.Receiver)
51
- ? object.Receiver.map((e) => server_spec_1.ServerEndpoint.fromJSON(e))
52
- : [],
50
+ Receiver: isSet(object.Receiver) ? server_spec_1.ServerEndpoint.fromJSON(object.Receiver) : undefined,
53
51
  };
54
52
  },
55
53
  toJSON(message) {
56
54
  const obj = {};
57
- if (message.Receiver?.length) {
58
- obj.Receiver = message.Receiver.map((e) => server_spec_1.ServerEndpoint.toJSON(e));
55
+ if (message.Receiver !== undefined) {
56
+ obj.Receiver = server_spec_1.ServerEndpoint.toJSON(message.Receiver);
59
57
  }
60
58
  return obj;
61
59
  },
@@ -64,8 +62,13 @@ exports.Config = {
64
62
  },
65
63
  fromPartial(object) {
66
64
  const message = createBaseConfig();
67
- message.Receiver = object.Receiver?.map((e) => server_spec_1.ServerEndpoint.fromPartial(e)) || [];
65
+ message.Receiver = (object.Receiver !== undefined && object.Receiver !== null)
66
+ ? server_spec_1.ServerEndpoint.fromPartial(object.Receiver)
67
+ : undefined;
68
68
  return message;
69
69
  },
70
70
  };
71
71
  typeRegistry_1.messageTypeRegistry.set(exports.Config.$type, exports.Config);
72
+ function isSet(value) {
73
+ return value !== null && value !== undefined;
74
+ }
@@ -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.2.7
4
+ // protoc-gen-ts_proto v2.8.3
5
5
  // protoc v5.29.3
6
6
  // source: proxy/wireguard/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -93,7 +93,7 @@ exports.PeerConfig = {
93
93
  },
94
94
  decode(input, length) {
95
95
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
96
- let end = length === undefined ? reader.len : reader.pos + length;
96
+ const end = length === undefined ? reader.len : reader.pos + length;
97
97
  const message = createBasePeerConfig();
98
98
  while (reader.pos < end) {
99
99
  const tag = reader.uint32();
@@ -234,7 +234,7 @@ exports.DeviceConfig = {
234
234
  },
235
235
  decode(input, length) {
236
236
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
237
- let end = length === undefined ? reader.len : reader.pos + length;
237
+ const end = length === undefined ? reader.len : reader.pos + length;
238
238
  const message = createBaseDeviceConfig();
239
239
  while (reader.pos < end) {
240
240
  const tag = reader.uint32();
@@ -96,6 +96,7 @@ export interface SocketConfig {
96
96
  customSockopt: CustomSockopt[];
97
97
  addressPortStrategy: AddressPortStrategy;
98
98
  happyEyeballs: HappyEyeballsConfig | undefined;
99
+ trustedXForwardedFor: string[];
99
100
  }
100
101
  export declare enum SocketConfig_TProxyMode {
101
102
  /** 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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