@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,13 +1,11 @@
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: app/proxyman/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.MultiplexingConfig = exports.SenderConfig = exports.OutboundConfig = exports.InboundHandlerConfig = exports.ReceiverConfig = exports.SniffingConfig = exports.AllocationStrategy_AllocationStrategyRefresh = exports.AllocationStrategy_AllocationStrategyConcurrency = exports.AllocationStrategy = exports.InboundConfig = exports.AllocationStrategy_Type = exports.protobufPackage = void 0;
9
- exports.allocationStrategy_TypeFromJSON = allocationStrategy_TypeFromJSON;
10
- exports.allocationStrategy_TypeToJSON = allocationStrategy_TypeToJSON;
8
+ exports.MultiplexingConfig = exports.SenderConfig = exports.OutboundConfig = exports.InboundHandlerConfig = exports.ReceiverConfig = exports.SniffingConfig = exports.InboundConfig = exports.protobufPackage = void 0;
11
9
  /* eslint-disable */
12
10
  const wire_1 = require("@bufbuild/protobuf/wire");
13
11
  const address_1 = require("../../common/net/address");
@@ -16,46 +14,6 @@ const typed_message_1 = require("../../common/serial/typed_message");
16
14
  const config_1 = require("../../transport/internet/config");
17
15
  const typeRegistry_1 = require("../../typeRegistry");
18
16
  exports.protobufPackage = "xray.app.proxyman";
19
- var AllocationStrategy_Type;
20
- (function (AllocationStrategy_Type) {
21
- /** Always - Always allocate all connection handlers. */
22
- AllocationStrategy_Type[AllocationStrategy_Type["Always"] = 0] = "Always";
23
- /** Random - Randomly allocate specific range of handlers. */
24
- AllocationStrategy_Type[AllocationStrategy_Type["Random"] = 1] = "Random";
25
- /** External - External. Not supported yet. */
26
- AllocationStrategy_Type[AllocationStrategy_Type["External"] = 2] = "External";
27
- AllocationStrategy_Type[AllocationStrategy_Type["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
28
- })(AllocationStrategy_Type || (exports.AllocationStrategy_Type = AllocationStrategy_Type = {}));
29
- function allocationStrategy_TypeFromJSON(object) {
30
- switch (object) {
31
- case 0:
32
- case "Always":
33
- return AllocationStrategy_Type.Always;
34
- case 1:
35
- case "Random":
36
- return AllocationStrategy_Type.Random;
37
- case 2:
38
- case "External":
39
- return AllocationStrategy_Type.External;
40
- case -1:
41
- case "UNRECOGNIZED":
42
- default:
43
- return AllocationStrategy_Type.UNRECOGNIZED;
44
- }
45
- }
46
- function allocationStrategy_TypeToJSON(object) {
47
- switch (object) {
48
- case AllocationStrategy_Type.Always:
49
- return "Always";
50
- case AllocationStrategy_Type.Random:
51
- return "Random";
52
- case AllocationStrategy_Type.External:
53
- return "External";
54
- case AllocationStrategy_Type.UNRECOGNIZED:
55
- default:
56
- return "UNRECOGNIZED";
57
- }
58
- }
59
17
  function createBaseInboundConfig() {
60
18
  return { $type: "xray.app.proxyman.InboundConfig" };
61
19
  }
@@ -66,7 +24,7 @@ exports.InboundConfig = {
66
24
  },
67
25
  decode(input, length) {
68
26
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
69
- let end = length === undefined ? reader.len : reader.pos + length;
27
+ const end = length === undefined ? reader.len : reader.pos + length;
70
28
  const message = createBaseInboundConfig();
71
29
  while (reader.pos < end) {
72
30
  const tag = reader.uint32();
@@ -95,212 +53,6 @@ exports.InboundConfig = {
95
53
  },
96
54
  };
97
55
  typeRegistry_1.messageTypeRegistry.set(exports.InboundConfig.$type, exports.InboundConfig);
98
- function createBaseAllocationStrategy() {
99
- return { $type: "xray.app.proxyman.AllocationStrategy", type: 0, concurrency: undefined, refresh: undefined };
100
- }
101
- exports.AllocationStrategy = {
102
- $type: "xray.app.proxyman.AllocationStrategy",
103
- encode(message, writer = new wire_1.BinaryWriter()) {
104
- if (message.type !== 0) {
105
- writer.uint32(8).int32(message.type);
106
- }
107
- if (message.concurrency !== undefined) {
108
- exports.AllocationStrategy_AllocationStrategyConcurrency.encode(message.concurrency, writer.uint32(18).fork()).join();
109
- }
110
- if (message.refresh !== undefined) {
111
- exports.AllocationStrategy_AllocationStrategyRefresh.encode(message.refresh, writer.uint32(26).fork()).join();
112
- }
113
- return writer;
114
- },
115
- decode(input, length) {
116
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
117
- let end = length === undefined ? reader.len : reader.pos + length;
118
- const message = createBaseAllocationStrategy();
119
- while (reader.pos < end) {
120
- const tag = reader.uint32();
121
- switch (tag >>> 3) {
122
- case 1: {
123
- if (tag !== 8) {
124
- break;
125
- }
126
- message.type = reader.int32();
127
- continue;
128
- }
129
- case 2: {
130
- if (tag !== 18) {
131
- break;
132
- }
133
- message.concurrency = exports.AllocationStrategy_AllocationStrategyConcurrency.decode(reader, reader.uint32());
134
- continue;
135
- }
136
- case 3: {
137
- if (tag !== 26) {
138
- break;
139
- }
140
- message.refresh = exports.AllocationStrategy_AllocationStrategyRefresh.decode(reader, reader.uint32());
141
- continue;
142
- }
143
- }
144
- if ((tag & 7) === 4 || tag === 0) {
145
- break;
146
- }
147
- reader.skip(tag & 7);
148
- }
149
- return message;
150
- },
151
- fromJSON(object) {
152
- return {
153
- $type: exports.AllocationStrategy.$type,
154
- type: isSet(object.type) ? allocationStrategy_TypeFromJSON(object.type) : 0,
155
- concurrency: isSet(object.concurrency)
156
- ? exports.AllocationStrategy_AllocationStrategyConcurrency.fromJSON(object.concurrency)
157
- : undefined,
158
- refresh: isSet(object.refresh)
159
- ? exports.AllocationStrategy_AllocationStrategyRefresh.fromJSON(object.refresh)
160
- : undefined,
161
- };
162
- },
163
- toJSON(message) {
164
- const obj = {};
165
- if (message.type !== 0) {
166
- obj.type = allocationStrategy_TypeToJSON(message.type);
167
- }
168
- if (message.concurrency !== undefined) {
169
- obj.concurrency = exports.AllocationStrategy_AllocationStrategyConcurrency.toJSON(message.concurrency);
170
- }
171
- if (message.refresh !== undefined) {
172
- obj.refresh = exports.AllocationStrategy_AllocationStrategyRefresh.toJSON(message.refresh);
173
- }
174
- return obj;
175
- },
176
- create(base) {
177
- return exports.AllocationStrategy.fromPartial(base ?? {});
178
- },
179
- fromPartial(object) {
180
- const message = createBaseAllocationStrategy();
181
- message.type = object.type ?? 0;
182
- message.concurrency = (object.concurrency !== undefined && object.concurrency !== null)
183
- ? exports.AllocationStrategy_AllocationStrategyConcurrency.fromPartial(object.concurrency)
184
- : undefined;
185
- message.refresh = (object.refresh !== undefined && object.refresh !== null)
186
- ? exports.AllocationStrategy_AllocationStrategyRefresh.fromPartial(object.refresh)
187
- : undefined;
188
- return message;
189
- },
190
- };
191
- typeRegistry_1.messageTypeRegistry.set(exports.AllocationStrategy.$type, exports.AllocationStrategy);
192
- function createBaseAllocationStrategy_AllocationStrategyConcurrency() {
193
- return { $type: "xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency", value: 0 };
194
- }
195
- exports.AllocationStrategy_AllocationStrategyConcurrency = {
196
- $type: "xray.app.proxyman.AllocationStrategy.AllocationStrategyConcurrency",
197
- encode(message, writer = new wire_1.BinaryWriter()) {
198
- if (message.value !== 0) {
199
- writer.uint32(8).uint32(message.value);
200
- }
201
- return writer;
202
- },
203
- decode(input, length) {
204
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
205
- let end = length === undefined ? reader.len : reader.pos + length;
206
- const message = createBaseAllocationStrategy_AllocationStrategyConcurrency();
207
- while (reader.pos < end) {
208
- const tag = reader.uint32();
209
- switch (tag >>> 3) {
210
- case 1: {
211
- if (tag !== 8) {
212
- break;
213
- }
214
- message.value = reader.uint32();
215
- continue;
216
- }
217
- }
218
- if ((tag & 7) === 4 || tag === 0) {
219
- break;
220
- }
221
- reader.skip(tag & 7);
222
- }
223
- return message;
224
- },
225
- fromJSON(object) {
226
- return {
227
- $type: exports.AllocationStrategy_AllocationStrategyConcurrency.$type,
228
- value: isSet(object.value) ? globalThis.Number(object.value) : 0,
229
- };
230
- },
231
- toJSON(message) {
232
- const obj = {};
233
- if (message.value !== 0) {
234
- obj.value = Math.round(message.value);
235
- }
236
- return obj;
237
- },
238
- create(base) {
239
- return exports.AllocationStrategy_AllocationStrategyConcurrency.fromPartial(base ?? {});
240
- },
241
- fromPartial(object) {
242
- const message = createBaseAllocationStrategy_AllocationStrategyConcurrency();
243
- message.value = object.value ?? 0;
244
- return message;
245
- },
246
- };
247
- typeRegistry_1.messageTypeRegistry.set(exports.AllocationStrategy_AllocationStrategyConcurrency.$type, exports.AllocationStrategy_AllocationStrategyConcurrency);
248
- function createBaseAllocationStrategy_AllocationStrategyRefresh() {
249
- return { $type: "xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh", value: 0 };
250
- }
251
- exports.AllocationStrategy_AllocationStrategyRefresh = {
252
- $type: "xray.app.proxyman.AllocationStrategy.AllocationStrategyRefresh",
253
- encode(message, writer = new wire_1.BinaryWriter()) {
254
- if (message.value !== 0) {
255
- writer.uint32(8).uint32(message.value);
256
- }
257
- return writer;
258
- },
259
- decode(input, length) {
260
- const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
261
- let end = length === undefined ? reader.len : reader.pos + length;
262
- const message = createBaseAllocationStrategy_AllocationStrategyRefresh();
263
- while (reader.pos < end) {
264
- const tag = reader.uint32();
265
- switch (tag >>> 3) {
266
- case 1: {
267
- if (tag !== 8) {
268
- break;
269
- }
270
- message.value = reader.uint32();
271
- continue;
272
- }
273
- }
274
- if ((tag & 7) === 4 || tag === 0) {
275
- break;
276
- }
277
- reader.skip(tag & 7);
278
- }
279
- return message;
280
- },
281
- fromJSON(object) {
282
- return {
283
- $type: exports.AllocationStrategy_AllocationStrategyRefresh.$type,
284
- value: isSet(object.value) ? globalThis.Number(object.value) : 0,
285
- };
286
- },
287
- toJSON(message) {
288
- const obj = {};
289
- if (message.value !== 0) {
290
- obj.value = Math.round(message.value);
291
- }
292
- return obj;
293
- },
294
- create(base) {
295
- return exports.AllocationStrategy_AllocationStrategyRefresh.fromPartial(base ?? {});
296
- },
297
- fromPartial(object) {
298
- const message = createBaseAllocationStrategy_AllocationStrategyRefresh();
299
- message.value = object.value ?? 0;
300
- return message;
301
- },
302
- };
303
- typeRegistry_1.messageTypeRegistry.set(exports.AllocationStrategy_AllocationStrategyRefresh.$type, exports.AllocationStrategy_AllocationStrategyRefresh);
304
56
  function createBaseSniffingConfig() {
305
57
  return {
306
58
  $type: "xray.app.proxyman.SniffingConfig",
@@ -333,7 +85,7 @@ exports.SniffingConfig = {
333
85
  },
334
86
  decode(input, length) {
335
87
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
336
- let end = length === undefined ? reader.len : reader.pos + length;
88
+ const end = length === undefined ? reader.len : reader.pos + length;
337
89
  const message = createBaseSniffingConfig();
338
90
  while (reader.pos < end) {
339
91
  const tag = reader.uint32();
@@ -433,7 +185,6 @@ function createBaseReceiverConfig() {
433
185
  $type: "xray.app.proxyman.ReceiverConfig",
434
186
  portList: undefined,
435
187
  listen: undefined,
436
- allocationStrategy: undefined,
437
188
  streamSettings: undefined,
438
189
  receiveOriginalDestination: false,
439
190
  sniffingSettings: undefined,
@@ -448,23 +199,20 @@ exports.ReceiverConfig = {
448
199
  if (message.listen !== undefined) {
449
200
  address_1.IPOrDomain.encode(message.listen, writer.uint32(18).fork()).join();
450
201
  }
451
- if (message.allocationStrategy !== undefined) {
452
- exports.AllocationStrategy.encode(message.allocationStrategy, writer.uint32(26).fork()).join();
453
- }
454
202
  if (message.streamSettings !== undefined) {
455
- config_1.StreamConfig.encode(message.streamSettings, writer.uint32(34).fork()).join();
203
+ config_1.StreamConfig.encode(message.streamSettings, writer.uint32(26).fork()).join();
456
204
  }
457
205
  if (message.receiveOriginalDestination !== false) {
458
- writer.uint32(40).bool(message.receiveOriginalDestination);
206
+ writer.uint32(32).bool(message.receiveOriginalDestination);
459
207
  }
460
208
  if (message.sniffingSettings !== undefined) {
461
- exports.SniffingConfig.encode(message.sniffingSettings, writer.uint32(58).fork()).join();
209
+ exports.SniffingConfig.encode(message.sniffingSettings, writer.uint32(50).fork()).join();
462
210
  }
463
211
  return writer;
464
212
  },
465
213
  decode(input, length) {
466
214
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
467
- let end = length === undefined ? reader.len : reader.pos + length;
215
+ const end = length === undefined ? reader.len : reader.pos + length;
468
216
  const message = createBaseReceiverConfig();
469
217
  while (reader.pos < end) {
470
218
  const tag = reader.uint32();
@@ -487,25 +235,18 @@ exports.ReceiverConfig = {
487
235
  if (tag !== 26) {
488
236
  break;
489
237
  }
490
- message.allocationStrategy = exports.AllocationStrategy.decode(reader, reader.uint32());
491
- continue;
492
- }
493
- case 4: {
494
- if (tag !== 34) {
495
- break;
496
- }
497
238
  message.streamSettings = config_1.StreamConfig.decode(reader, reader.uint32());
498
239
  continue;
499
240
  }
500
- case 5: {
501
- if (tag !== 40) {
241
+ case 4: {
242
+ if (tag !== 32) {
502
243
  break;
503
244
  }
504
245
  message.receiveOriginalDestination = reader.bool();
505
246
  continue;
506
247
  }
507
- case 7: {
508
- if (tag !== 58) {
248
+ case 6: {
249
+ if (tag !== 50) {
509
250
  break;
510
251
  }
511
252
  message.sniffingSettings = exports.SniffingConfig.decode(reader, reader.uint32());
@@ -524,9 +265,6 @@ exports.ReceiverConfig = {
524
265
  $type: exports.ReceiverConfig.$type,
525
266
  portList: isSet(object.portList) ? port_1.PortList.fromJSON(object.portList) : undefined,
526
267
  listen: isSet(object.listen) ? address_1.IPOrDomain.fromJSON(object.listen) : undefined,
527
- allocationStrategy: isSet(object.allocationStrategy)
528
- ? exports.AllocationStrategy.fromJSON(object.allocationStrategy)
529
- : undefined,
530
268
  streamSettings: isSet(object.streamSettings) ? config_1.StreamConfig.fromJSON(object.streamSettings) : undefined,
531
269
  receiveOriginalDestination: isSet(object.receiveOriginalDestination)
532
270
  ? globalThis.Boolean(object.receiveOriginalDestination)
@@ -542,9 +280,6 @@ exports.ReceiverConfig = {
542
280
  if (message.listen !== undefined) {
543
281
  obj.listen = address_1.IPOrDomain.toJSON(message.listen);
544
282
  }
545
- if (message.allocationStrategy !== undefined) {
546
- obj.allocationStrategy = exports.AllocationStrategy.toJSON(message.allocationStrategy);
547
- }
548
283
  if (message.streamSettings !== undefined) {
549
284
  obj.streamSettings = config_1.StreamConfig.toJSON(message.streamSettings);
550
285
  }
@@ -567,9 +302,6 @@ exports.ReceiverConfig = {
567
302
  message.listen = (object.listen !== undefined && object.listen !== null)
568
303
  ? address_1.IPOrDomain.fromPartial(object.listen)
569
304
  : undefined;
570
- message.allocationStrategy = (object.allocationStrategy !== undefined && object.allocationStrategy !== null)
571
- ? exports.AllocationStrategy.fromPartial(object.allocationStrategy)
572
- : undefined;
573
305
  message.streamSettings = (object.streamSettings !== undefined && object.streamSettings !== null)
574
306
  ? config_1.StreamConfig.fromPartial(object.streamSettings)
575
307
  : undefined;
@@ -605,7 +337,7 @@ exports.InboundHandlerConfig = {
605
337
  },
606
338
  decode(input, length) {
607
339
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
608
- let end = length === undefined ? reader.len : reader.pos + length;
340
+ const end = length === undefined ? reader.len : reader.pos + length;
609
341
  const message = createBaseInboundHandlerConfig();
610
342
  while (reader.pos < end) {
611
343
  const tag = reader.uint32();
@@ -686,7 +418,7 @@ exports.OutboundConfig = {
686
418
  },
687
419
  decode(input, length) {
688
420
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
689
- let end = length === undefined ? reader.len : reader.pos + length;
421
+ const end = length === undefined ? reader.len : reader.pos + length;
690
422
  const message = createBaseOutboundConfig();
691
423
  while (reader.pos < end) {
692
424
  const tag = reader.uint32();
@@ -751,7 +483,7 @@ exports.SenderConfig = {
751
483
  },
752
484
  decode(input, length) {
753
485
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
754
- let end = length === undefined ? reader.len : reader.pos + length;
486
+ const end = length === undefined ? reader.len : reader.pos + length;
755
487
  const message = createBaseSenderConfig();
756
488
  while (reader.pos < end) {
757
489
  const tag = reader.uint32();
@@ -890,7 +622,7 @@ exports.MultiplexingConfig = {
890
622
  },
891
623
  decode(input, length) {
892
624
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
893
- let end = length === undefined ? reader.len : reader.pos + length;
625
+ const end = length === undefined ? reader.len : reader.pos + length;
894
626
  const message = createBaseMultiplexingConfig();
895
627
  while (reader.pos < end) {
896
628
  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: app/reverse/config.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -59,7 +59,7 @@ exports.Control = {
59
59
  },
60
60
  decode(input, length) {
61
61
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
62
- let end = length === undefined ? reader.len : reader.pos + length;
62
+ const end = length === undefined ? reader.len : reader.pos + length;
63
63
  const message = createBaseControl();
64
64
  while (reader.pos < end) {
65
65
  const tag = reader.uint32();
@@ -130,7 +130,7 @@ exports.BridgeConfig = {
130
130
  },
131
131
  decode(input, length) {
132
132
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
133
- let end = length === undefined ? reader.len : reader.pos + length;
133
+ const end = length === undefined ? reader.len : reader.pos + length;
134
134
  const message = createBaseBridgeConfig();
135
135
  while (reader.pos < end) {
136
136
  const tag = reader.uint32();
@@ -201,7 +201,7 @@ exports.PortalConfig = {
201
201
  },
202
202
  decode(input, length) {
203
203
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
204
- let end = length === undefined ? reader.len : reader.pos + length;
204
+ const end = length === undefined ? reader.len : reader.pos + length;
205
205
  const message = createBasePortalConfig();
206
206
  while (reader.pos < end) {
207
207
  const tag = reader.uint32();
@@ -272,7 +272,7 @@ exports.Config = {
272
272
  },
273
273
  decode(input, length) {
274
274
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
275
- let end = length === undefined ? reader.len : reader.pos + length;
275
+ const end = length === undefined ? reader.len : reader.pos + length;
276
276
  const message = createBaseConfig();
277
277
  while (reader.pos < end) {
278
278
  const tag = reader.uint32();
@@ -1,5 +1,5 @@
1
1
  import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
- import { type CallContext, type CallOptions } from "nice-grpc-common";
2
+ import type { CallContext, CallOptions } from "nice-grpc-common";
3
3
  import { Network } from "../../../common/net/network";
4
4
  import { TypedMessage } from "../../../common/serial/typed_message";
5
5
  export declare const protobufPackage = "xray.app.router.command";
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/app/router/command/command.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AACrE,OAAO,EAAE,KAAK,WAAW,EAAE,KAAK,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACtE,OAAO,EAAE,OAAO,EAAkC,MAAM,6BAA6B,CAAC;AACtF,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AAGpE,eAAO,MAAM,eAAe,4BAA4B,CAAC;AAEzD;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,wCAAwC,CAAC;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,OAAO,EAAE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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: app/router/command/command.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
@@ -88,7 +88,7 @@ exports.RoutingContext = {
88
88
  },
89
89
  decode(input, length) {
90
90
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
91
- let end = length === undefined ? reader.len : reader.pos + length;
91
+ const end = length === undefined ? reader.len : reader.pos + length;
92
92
  const message = createBaseRoutingContext();
93
93
  while (reader.pos < end) {
94
94
  const tag = reader.uint32();
@@ -340,7 +340,7 @@ exports.RoutingContext_AttributesEntry = {
340
340
  },
341
341
  decode(input, length) {
342
342
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
343
- let end = length === undefined ? reader.len : reader.pos + length;
343
+ const end = length === undefined ? reader.len : reader.pos + length;
344
344
  const message = createBaseRoutingContext_AttributesEntry();
345
345
  while (reader.pos < end) {
346
346
  const tag = reader.uint32();
@@ -408,7 +408,7 @@ exports.SubscribeRoutingStatsRequest = {
408
408
  },
409
409
  decode(input, length) {
410
410
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
411
- let end = length === undefined ? reader.len : reader.pos + length;
411
+ const end = length === undefined ? reader.len : reader.pos + length;
412
412
  const message = createBaseSubscribeRoutingStatsRequest();
413
413
  while (reader.pos < end) {
414
414
  const tag = reader.uint32();
@@ -477,7 +477,7 @@ exports.TestRouteRequest = {
477
477
  },
478
478
  decode(input, length) {
479
479
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
480
- let end = length === undefined ? reader.len : reader.pos + length;
480
+ const end = length === undefined ? reader.len : reader.pos + length;
481
481
  const message = createBaseTestRouteRequest();
482
482
  while (reader.pos < end) {
483
483
  const tag = reader.uint32();
@@ -561,7 +561,7 @@ exports.PrincipleTargetInfo = {
561
561
  },
562
562
  decode(input, length) {
563
563
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
564
- let end = length === undefined ? reader.len : reader.pos + length;
564
+ const end = length === undefined ? reader.len : reader.pos + length;
565
565
  const message = createBasePrincipleTargetInfo();
566
566
  while (reader.pos < end) {
567
567
  const tag = reader.uint32();
@@ -617,7 +617,7 @@ exports.OverrideInfo = {
617
617
  },
618
618
  decode(input, length) {
619
619
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
620
- let end = length === undefined ? reader.len : reader.pos + length;
620
+ const end = length === undefined ? reader.len : reader.pos + length;
621
621
  const message = createBaseOverrideInfo();
622
622
  while (reader.pos < end) {
623
623
  const tag = reader.uint32();
@@ -673,7 +673,7 @@ exports.BalancerMsg = {
673
673
  },
674
674
  decode(input, length) {
675
675
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
676
- let end = length === undefined ? reader.len : reader.pos + length;
676
+ const end = length === undefined ? reader.len : reader.pos + length;
677
677
  const message = createBaseBalancerMsg();
678
678
  while (reader.pos < end) {
679
679
  const tag = reader.uint32();
@@ -745,7 +745,7 @@ exports.GetBalancerInfoRequest = {
745
745
  },
746
746
  decode(input, length) {
747
747
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
748
- let end = length === undefined ? reader.len : reader.pos + length;
748
+ const end = length === undefined ? reader.len : reader.pos + length;
749
749
  const message = createBaseGetBalancerInfoRequest();
750
750
  while (reader.pos < end) {
751
751
  const tag = reader.uint32();
@@ -798,7 +798,7 @@ exports.GetBalancerInfoResponse = {
798
798
  },
799
799
  decode(input, length) {
800
800
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
801
- let end = length === undefined ? reader.len : reader.pos + length;
801
+ const end = length === undefined ? reader.len : reader.pos + length;
802
802
  const message = createBaseGetBalancerInfoResponse();
803
803
  while (reader.pos < end) {
804
804
  const tag = reader.uint32();
@@ -859,7 +859,7 @@ exports.OverrideBalancerTargetRequest = {
859
859
  },
860
860
  decode(input, length) {
861
861
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
862
- let end = length === undefined ? reader.len : reader.pos + length;
862
+ const end = length === undefined ? reader.len : reader.pos + length;
863
863
  const message = createBaseOverrideBalancerTargetRequest();
864
864
  while (reader.pos < end) {
865
865
  const tag = reader.uint32();
@@ -924,7 +924,7 @@ exports.OverrideBalancerTargetResponse = {
924
924
  },
925
925
  decode(input, length) {
926
926
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
927
- let end = length === undefined ? reader.len : reader.pos + length;
927
+ const end = length === undefined ? reader.len : reader.pos + length;
928
928
  const message = createBaseOverrideBalancerTargetResponse();
929
929
  while (reader.pos < end) {
930
930
  const tag = reader.uint32();
@@ -969,7 +969,7 @@ exports.AddRuleRequest = {
969
969
  },
970
970
  decode(input, length) {
971
971
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
972
- let end = length === undefined ? reader.len : reader.pos + length;
972
+ const end = length === undefined ? reader.len : reader.pos + length;
973
973
  const message = createBaseAddRuleRequest();
974
974
  while (reader.pos < end) {
975
975
  const tag = reader.uint32();
@@ -1036,7 +1036,7 @@ exports.AddRuleResponse = {
1036
1036
  },
1037
1037
  decode(input, length) {
1038
1038
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1039
- let end = length === undefined ? reader.len : reader.pos + length;
1039
+ const end = length === undefined ? reader.len : reader.pos + length;
1040
1040
  const message = createBaseAddRuleResponse();
1041
1041
  while (reader.pos < end) {
1042
1042
  const tag = reader.uint32();
@@ -1078,7 +1078,7 @@ exports.RemoveRuleRequest = {
1078
1078
  },
1079
1079
  decode(input, length) {
1080
1080
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1081
- let end = length === undefined ? reader.len : reader.pos + length;
1081
+ const end = length === undefined ? reader.len : reader.pos + length;
1082
1082
  const message = createBaseRemoveRuleRequest();
1083
1083
  while (reader.pos < end) {
1084
1084
  const tag = reader.uint32();
@@ -1128,7 +1128,7 @@ exports.RemoveRuleResponse = {
1128
1128
  },
1129
1129
  decode(input, length) {
1130
1130
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1131
- let end = length === undefined ? reader.len : reader.pos + length;
1131
+ const end = length === undefined ? reader.len : reader.pos + length;
1132
1132
  const message = createBaseRemoveRuleResponse();
1133
1133
  while (reader.pos < end) {
1134
1134
  const tag = reader.uint32();
@@ -1167,7 +1167,7 @@ exports.Config = {
1167
1167
  },
1168
1168
  decode(input, length) {
1169
1169
  const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
1170
- let end = length === undefined ? reader.len : reader.pos + length;
1170
+ const end = length === undefined ? reader.len : reader.pos + length;
1171
1171
  const message = createBaseConfig();
1172
1172
  while (reader.pos < end) {
1173
1173
  const tag = reader.uint32();
@@ -138,8 +138,6 @@ export interface Config {
138
138
  export declare enum Config_DomainStrategy {
139
139
  /** AsIs - Use domain as is. */
140
140
  AsIs = 0,
141
- /** UseIp - Always resolve IP for domains. */
142
- UseIp = 1,
143
141
  /** IpIfNonMatch - Resolve to IP if the domain doesn't match any rules. */
144
142
  IpIfNonMatch = 2,
145
143
  /** IpOnDemand - Resolve to IP if any rule requires IP matching. */