@remnawave/xtls-sdk 0.0.81-dev.1.8.6 → 0.1.2

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 (119) hide show
  1. package/LICENCE +661 -0
  2. package/build/index.d.ts +2 -0
  3. package/build/index.d.ts.map +1 -1
  4. package/build/index.js +2 -0
  5. package/build/src/common/errors/router/index.d.ts +2 -0
  6. package/build/src/common/errors/router/index.d.ts.map +1 -0
  7. package/build/src/common/errors/router/index.js +17 -0
  8. package/build/src/common/errors/router/router.errors.d.ts +15 -0
  9. package/build/src/common/errors/router/router.errors.d.ts.map +1 -0
  10. package/build/src/common/errors/router/router.errors.js +14 -0
  11. package/build/src/common/utils/decode-user/constants/account-types.d.ts +18 -0
  12. package/build/src/common/utils/decode-user/constants/account-types.d.ts.map +1 -1
  13. package/build/src/common/utils/decode-user/constants/account-types.js +28 -1
  14. package/build/src/common/utils/decode-user/types/decoded-user.type.d.ts +4 -0
  15. package/build/src/common/utils/decode-user/types/decoded-user.type.d.ts.map +1 -1
  16. package/build/src/handler/handler.service.d.ts +60 -2
  17. package/build/src/handler/handler.service.d.ts.map +1 -1
  18. package/build/src/handler/handler.service.js +207 -2
  19. package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts +7 -0
  20. package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.d.ts.map +1 -0
  21. package/build/src/handler/models/get-inbound-users/get-inbound-users.response.model.js +10 -0
  22. package/build/src/handler/models/get-inbound-users/index.d.ts +2 -0
  23. package/build/src/handler/models/get-inbound-users/index.d.ts.map +1 -0
  24. package/build/src/handler/models/get-inbound-users/index.js +17 -0
  25. package/build/src/handler/models/index.d.ts +1 -0
  26. package/build/src/handler/models/index.d.ts.map +1 -1
  27. package/build/src/handler/models/index.js +1 -0
  28. package/build/src/router/interfaces/add-source-ip-rule.interface.d.ts +8 -0
  29. package/build/src/router/interfaces/add-source-ip-rule.interface.d.ts.map +1 -0
  30. package/build/src/router/interfaces/add-source-ip-rule.interface.js +2 -0
  31. package/build/src/router/interfaces/index.d.ts +3 -0
  32. package/build/src/router/interfaces/index.d.ts.map +1 -0
  33. package/build/src/router/interfaces/index.js +18 -0
  34. package/build/src/router/interfaces/remove-rule-by-rule-tag.interface.d.ts +4 -0
  35. package/build/src/router/interfaces/remove-rule-by-rule-tag.interface.d.ts.map +1 -0
  36. package/build/src/router/interfaces/remove-rule-by-rule-tag.interface.js +2 -0
  37. package/build/src/router/models/add-source-ip-rule/add-source-ip-rule.response.model.d.ts +5 -0
  38. package/build/src/router/models/add-source-ip-rule/add-source-ip-rule.response.model.d.ts.map +1 -0
  39. package/build/src/router/models/add-source-ip-rule/add-source-ip-rule.response.model.js +9 -0
  40. package/build/src/router/models/add-source-ip-rule/index.d.ts +2 -0
  41. package/build/src/router/models/add-source-ip-rule/index.d.ts.map +1 -0
  42. package/build/src/router/models/add-source-ip-rule/index.js +17 -0
  43. package/build/src/router/models/index.d.ts +2 -0
  44. package/build/src/router/models/index.d.ts.map +1 -0
  45. package/build/src/router/models/index.js +17 -0
  46. package/build/src/router/models/remove-rule-by-rule-tag/index.d.ts +2 -0
  47. package/build/src/router/models/remove-rule-by-rule-tag/index.d.ts.map +1 -0
  48. package/build/src/router/models/remove-rule-by-rule-tag/index.js +17 -0
  49. package/build/src/router/models/remove-rule-by-rule-tag/remove-rule-by-rule-tag.response.model.d.ts +5 -0
  50. package/build/src/router/models/remove-rule-by-rule-tag/remove-rule-by-rule-tag.response.model.d.ts.map +1 -0
  51. package/build/src/router/models/remove-rule-by-rule-tag/remove-rule-by-rule-tag.response.model.js +9 -0
  52. package/build/src/router/router.service.d.ts +37 -0
  53. package/build/src/router/router.service.d.ts.map +1 -0
  54. package/build/src/router/router.service.js +96 -0
  55. package/build/src/stats/stats.service.d.ts +27 -1
  56. package/build/src/stats/stats.service.d.ts.map +1 -1
  57. package/build/src/stats/stats.service.js +53 -0
  58. package/build/src/xray-protos/app/commander/config.d.ts +2 -0
  59. package/build/src/xray-protos/app/commander/config.d.ts.map +1 -1
  60. package/build/src/xray-protos/app/commander/config.js +16 -1
  61. package/build/src/xray-protos/app/log/config.d.ts +1 -0
  62. package/build/src/xray-protos/app/log/config.d.ts.map +1 -1
  63. package/build/src/xray-protos/app/log/config.js +16 -0
  64. package/build/src/xray-protos/app/policy/config.d.ts +1 -0
  65. package/build/src/xray-protos/app/policy/config.d.ts.map +1 -1
  66. package/build/src/xray-protos/app/policy/config.js +16 -1
  67. package/build/src/xray-protos/app/proxyman/command/command.d.ts +36 -0
  68. package/build/src/xray-protos/app/proxyman/command/command.d.ts.map +1 -1
  69. package/build/src/xray-protos/app/proxyman/command/command.js +210 -1
  70. package/build/src/xray-protos/app/proxyman/config.d.ts +1 -14
  71. package/build/src/xray-protos/app/proxyman/config.d.ts.map +1 -1
  72. package/build/src/xray-protos/app/proxyman/config.js +19 -63
  73. package/build/src/xray-protos/app/router/command/command.d.ts +222 -0
  74. package/build/src/xray-protos/app/router/command/command.d.ts.map +1 -0
  75. package/build/src/xray-protos/app/router/command/command.js +1235 -0
  76. package/build/src/xray-protos/app/router/config.d.ts +176 -0
  77. package/build/src/xray-protos/app/router/config.d.ts.map +1 -0
  78. package/build/src/xray-protos/app/router/config.js +1484 -0
  79. package/build/src/xray-protos/app/stats/command/command.d.ts +10 -0
  80. package/build/src/xray-protos/app/stats/command/command.d.ts.map +1 -1
  81. package/build/src/xray-protos/app/stats/command/command.js +8 -0
  82. package/build/src/xray-protos/common/net/network.d.ts +0 -2
  83. package/build/src/xray-protos/common/net/network.d.ts.map +1 -1
  84. package/build/src/xray-protos/common/net/network.js +0 -7
  85. package/build/src/xray-protos/common/protocol/user.d.ts +1 -1
  86. package/build/src/xray-protos/core/config.d.ts +0 -9
  87. package/build/src/xray-protos/core/config.d.ts.map +1 -1
  88. package/build/src/xray-protos/core/config.js +1 -19
  89. package/build/src/xray-protos/proxy/dns/config.d.ts +1 -0
  90. package/build/src/xray-protos/proxy/dns/config.d.ts.map +1 -1
  91. package/build/src/xray-protos/proxy/dns/config.js +27 -1
  92. package/build/src/xray-protos/proxy/dokodemo/config.d.ts +1 -10
  93. package/build/src/xray-protos/proxy/dokodemo/config.d.ts.map +1 -1
  94. package/build/src/xray-protos/proxy/dokodemo/config.js +0 -34
  95. package/build/src/xray-protos/proxy/freedom/config.d.ts +11 -2
  96. package/build/src/xray-protos/proxy/freedom/config.d.ts.map +1 -1
  97. package/build/src/xray-protos/proxy/freedom/config.js +181 -17
  98. package/build/src/xray-protos/proxy/http/config.d.ts +0 -2
  99. package/build/src/xray-protos/proxy/http/config.d.ts.map +1 -1
  100. package/build/src/xray-protos/proxy/http/config.js +1 -16
  101. package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts +4 -5
  102. package/build/src/xray-protos/proxy/shadowsocks_2022/config.d.ts.map +1 -1
  103. package/build/src/xray-protos/proxy/shadowsocks_2022/config.js +16 -48
  104. package/build/src/xray-protos/proxy/socks/config.d.ts +1 -12
  105. package/build/src/xray-protos/proxy/socks/config.d.ts.map +1 -1
  106. package/build/src/xray-protos/proxy/socks/config.js +3 -73
  107. package/build/src/xray-protos/proxy/wireguard/config.d.ts +1 -1
  108. package/build/src/xray-protos/proxy/wireguard/config.d.ts.map +1 -1
  109. package/build/src/xray-protos/proxy/wireguard/config.js +8 -8
  110. package/build/src/xray-protos/transport/internet/config.d.ts +15 -27
  111. package/build/src/xray-protos/transport/internet/config.d.ts.map +1 -1
  112. package/build/src/xray-protos/transport/internet/config.js +150 -84
  113. package/package.json +4 -25
  114. package/build/index-local.d.ts +0 -10
  115. package/build/index-local.d.ts.map +0 -1
  116. package/build/index-local.js +0 -21
  117. package/build/src/xray-protos/transport/global/config.d.ts +0 -29
  118. package/build/src/xray-protos/transport/global/config.d.ts.map +0 -1
  119. package/build/src/xray-protos/transport/global/config.js +0 -71
@@ -34,6 +34,19 @@ export interface AlterInboundRequest {
34
34
  export interface AlterInboundResponse {
35
35
  $type: "xray.app.proxyman.command.AlterInboundResponse";
36
36
  }
37
+ export interface GetInboundUserRequest {
38
+ $type: "xray.app.proxyman.command.GetInboundUserRequest";
39
+ tag: string;
40
+ email: string;
41
+ }
42
+ export interface GetInboundUserResponse {
43
+ $type: "xray.app.proxyman.command.GetInboundUserResponse";
44
+ users: User[];
45
+ }
46
+ export interface GetInboundUsersCountResponse {
47
+ $type: "xray.app.proxyman.command.GetInboundUsersCountResponse";
48
+ count: number;
49
+ }
37
50
  export interface AddOutboundRequest {
38
51
  $type: "xray.app.proxyman.command.AddOutboundRequest";
39
52
  outbound: OutboundHandlerConfig | undefined;
@@ -67,6 +80,9 @@ export declare const RemoveInboundRequest: MessageFns<RemoveInboundRequest, "xra
67
80
  export declare const RemoveInboundResponse: MessageFns<RemoveInboundResponse, "xray.app.proxyman.command.RemoveInboundResponse">;
68
81
  export declare const AlterInboundRequest: MessageFns<AlterInboundRequest, "xray.app.proxyman.command.AlterInboundRequest">;
69
82
  export declare const AlterInboundResponse: MessageFns<AlterInboundResponse, "xray.app.proxyman.command.AlterInboundResponse">;
83
+ export declare const GetInboundUserRequest: MessageFns<GetInboundUserRequest, "xray.app.proxyman.command.GetInboundUserRequest">;
84
+ export declare const GetInboundUserResponse: MessageFns<GetInboundUserResponse, "xray.app.proxyman.command.GetInboundUserResponse">;
85
+ export declare const GetInboundUsersCountResponse: MessageFns<GetInboundUsersCountResponse, "xray.app.proxyman.command.GetInboundUsersCountResponse">;
70
86
  export declare const AddOutboundRequest: MessageFns<AddOutboundRequest, "xray.app.proxyman.command.AddOutboundRequest">;
71
87
  export declare const AddOutboundResponse: MessageFns<AddOutboundResponse, "xray.app.proxyman.command.AddOutboundResponse">;
72
88
  export declare const RemoveOutboundRequest: MessageFns<RemoveOutboundRequest, "xray.app.proxyman.command.RemoveOutboundRequest">;
@@ -103,6 +119,22 @@ export declare const HandlerServiceDefinition: {
103
119
  readonly responseStream: false;
104
120
  readonly options: {};
105
121
  };
122
+ readonly getInboundUsers: {
123
+ readonly name: "GetInboundUsers";
124
+ readonly requestType: MessageFns<GetInboundUserRequest, "xray.app.proxyman.command.GetInboundUserRequest">;
125
+ readonly requestStream: false;
126
+ readonly responseType: MessageFns<GetInboundUserResponse, "xray.app.proxyman.command.GetInboundUserResponse">;
127
+ readonly responseStream: false;
128
+ readonly options: {};
129
+ };
130
+ readonly getInboundUsersCount: {
131
+ readonly name: "GetInboundUsersCount";
132
+ readonly requestType: MessageFns<GetInboundUserRequest, "xray.app.proxyman.command.GetInboundUserRequest">;
133
+ readonly requestStream: false;
134
+ readonly responseType: MessageFns<GetInboundUsersCountResponse, "xray.app.proxyman.command.GetInboundUsersCountResponse">;
135
+ readonly responseStream: false;
136
+ readonly options: {};
137
+ };
106
138
  readonly addOutbound: {
107
139
  readonly name: "AddOutbound";
108
140
  readonly requestType: MessageFns<AddOutboundRequest, "xray.app.proxyman.command.AddOutboundRequest">;
@@ -133,6 +165,8 @@ export interface HandlerServiceImplementation<CallContextExt = {}> {
133
165
  addInbound(request: AddInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddInboundResponse>>;
134
166
  removeInbound(request: RemoveInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RemoveInboundResponse>>;
135
167
  alterInbound(request: AlterInboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AlterInboundResponse>>;
168
+ getInboundUsers(request: GetInboundUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetInboundUserResponse>>;
169
+ getInboundUsersCount(request: GetInboundUserRequest, context: CallContext & CallContextExt): Promise<DeepPartial<GetInboundUsersCountResponse>>;
136
170
  addOutbound(request: AddOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AddOutboundResponse>>;
137
171
  removeOutbound(request: RemoveOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<RemoveOutboundResponse>>;
138
172
  alterOutbound(request: AlterOutboundRequest, context: CallContext & CallContextExt): Promise<DeepPartial<AlterOutboundResponse>>;
@@ -141,6 +175,8 @@ export interface HandlerServiceClient<CallOptionsExt = {}> {
141
175
  addInbound(request: DeepPartial<AddInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AddInboundResponse>;
142
176
  removeInbound(request: DeepPartial<RemoveInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<RemoveInboundResponse>;
143
177
  alterInbound(request: DeepPartial<AlterInboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AlterInboundResponse>;
178
+ getInboundUsers(request: DeepPartial<GetInboundUserRequest>, options?: CallOptions & CallOptionsExt): Promise<GetInboundUserResponse>;
179
+ getInboundUsersCount(request: DeepPartial<GetInboundUserRequest>, options?: CallOptions & CallOptionsExt): Promise<GetInboundUsersCountResponse>;
144
180
  addOutbound(request: DeepPartial<AddOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AddOutboundResponse>;
145
181
  removeOutbound(request: DeepPartial<RemoveOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<RemoveOutboundResponse>;
146
182
  alterOutbound(request: DeepPartial<AlterOutboundRequest>, options?: CallOptions & CallOptionsExt): Promise<AlterOutboundResponse>;
@@ -1 +1 @@
1
- {"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../../../../../../src/xray-protos/app/proxyman/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,IAAI,EAAE,MAAM,+BAA+B,CAAC;AACrD,OAAO,EAAE,YAAY,EAAE,MAAM,sCAAsC,CAAC;AACpE,OAAO,EAAE,oBAAoB,EAAE,qBAAqB,EAAE,MAAM,sBAAsB,CAAC;AAGnF,eAAO,MAAM,eAAe,8BAA8B,CAAC;AAE3D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,EAAE,4CAA4C,CAAC;IACpD,IAAI,EAAE,IAAI,GAAG,SAAS,CAAC;CACxB;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M,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
@@ -5,7 +5,7 @@
5
5
  // protoc v5.28.3
6
6
  // source: app/proxyman/command/command.proto
7
7
  Object.defineProperty(exports, "__esModule", { value: true });
8
- exports.HandlerServiceDefinition = exports.Config = exports.AlterOutboundResponse = exports.AlterOutboundRequest = exports.RemoveOutboundResponse = exports.RemoveOutboundRequest = exports.AddOutboundResponse = exports.AddOutboundRequest = exports.AlterInboundResponse = exports.AlterInboundRequest = exports.RemoveInboundResponse = exports.RemoveInboundRequest = exports.AddInboundResponse = exports.AddInboundRequest = exports.RemoveUserOperation = exports.AddUserOperation = exports.protobufPackage = void 0;
8
+ exports.HandlerServiceDefinition = exports.Config = exports.AlterOutboundResponse = exports.AlterOutboundRequest = exports.RemoveOutboundResponse = exports.RemoveOutboundRequest = exports.AddOutboundResponse = exports.AddOutboundRequest = exports.GetInboundUsersCountResponse = exports.GetInboundUserResponse = exports.GetInboundUserRequest = exports.AlterInboundResponse = exports.AlterInboundRequest = exports.RemoveInboundResponse = exports.RemoveInboundRequest = exports.AddInboundResponse = exports.AddInboundRequest = exports.RemoveUserOperation = exports.AddUserOperation = exports.protobufPackage = void 0;
9
9
  /* eslint-disable */
10
10
  const wire_1 = require("@bufbuild/protobuf/wire");
11
11
  const user_1 = require("../../../common/protocol/user");
@@ -420,6 +420,189 @@ exports.AlterInboundResponse = {
420
420
  },
421
421
  };
422
422
  typeRegistry_1.messageTypeRegistry.set(exports.AlterInboundResponse.$type, exports.AlterInboundResponse);
423
+ function createBaseGetInboundUserRequest() {
424
+ return { $type: "xray.app.proxyman.command.GetInboundUserRequest", tag: "", email: "" };
425
+ }
426
+ exports.GetInboundUserRequest = {
427
+ $type: "xray.app.proxyman.command.GetInboundUserRequest",
428
+ encode(message, writer = new wire_1.BinaryWriter()) {
429
+ if (message.tag !== "") {
430
+ writer.uint32(10).string(message.tag);
431
+ }
432
+ if (message.email !== "") {
433
+ writer.uint32(18).string(message.email);
434
+ }
435
+ return writer;
436
+ },
437
+ decode(input, length) {
438
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
439
+ let end = length === undefined ? reader.len : reader.pos + length;
440
+ const message = createBaseGetInboundUserRequest();
441
+ while (reader.pos < end) {
442
+ const tag = reader.uint32();
443
+ switch (tag >>> 3) {
444
+ case 1: {
445
+ if (tag !== 10) {
446
+ break;
447
+ }
448
+ message.tag = reader.string();
449
+ continue;
450
+ }
451
+ case 2: {
452
+ if (tag !== 18) {
453
+ break;
454
+ }
455
+ message.email = reader.string();
456
+ continue;
457
+ }
458
+ }
459
+ if ((tag & 7) === 4 || tag === 0) {
460
+ break;
461
+ }
462
+ reader.skip(tag & 7);
463
+ }
464
+ return message;
465
+ },
466
+ fromJSON(object) {
467
+ return {
468
+ $type: exports.GetInboundUserRequest.$type,
469
+ tag: isSet(object.tag) ? globalThis.String(object.tag) : "",
470
+ email: isSet(object.email) ? globalThis.String(object.email) : "",
471
+ };
472
+ },
473
+ toJSON(message) {
474
+ const obj = {};
475
+ if (message.tag !== "") {
476
+ obj.tag = message.tag;
477
+ }
478
+ if (message.email !== "") {
479
+ obj.email = message.email;
480
+ }
481
+ return obj;
482
+ },
483
+ create(base) {
484
+ return exports.GetInboundUserRequest.fromPartial(base ?? {});
485
+ },
486
+ fromPartial(object) {
487
+ const message = createBaseGetInboundUserRequest();
488
+ message.tag = object.tag ?? "";
489
+ message.email = object.email ?? "";
490
+ return message;
491
+ },
492
+ };
493
+ typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUserRequest.$type, exports.GetInboundUserRequest);
494
+ function createBaseGetInboundUserResponse() {
495
+ return { $type: "xray.app.proxyman.command.GetInboundUserResponse", users: [] };
496
+ }
497
+ exports.GetInboundUserResponse = {
498
+ $type: "xray.app.proxyman.command.GetInboundUserResponse",
499
+ encode(message, writer = new wire_1.BinaryWriter()) {
500
+ for (const v of message.users) {
501
+ user_1.User.encode(v, writer.uint32(10).fork()).join();
502
+ }
503
+ return writer;
504
+ },
505
+ decode(input, length) {
506
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
507
+ let end = length === undefined ? reader.len : reader.pos + length;
508
+ const message = createBaseGetInboundUserResponse();
509
+ while (reader.pos < end) {
510
+ const tag = reader.uint32();
511
+ switch (tag >>> 3) {
512
+ case 1: {
513
+ if (tag !== 10) {
514
+ break;
515
+ }
516
+ message.users.push(user_1.User.decode(reader, reader.uint32()));
517
+ continue;
518
+ }
519
+ }
520
+ if ((tag & 7) === 4 || tag === 0) {
521
+ break;
522
+ }
523
+ reader.skip(tag & 7);
524
+ }
525
+ return message;
526
+ },
527
+ fromJSON(object) {
528
+ return {
529
+ $type: exports.GetInboundUserResponse.$type,
530
+ users: globalThis.Array.isArray(object?.users) ? object.users.map((e) => user_1.User.fromJSON(e)) : [],
531
+ };
532
+ },
533
+ toJSON(message) {
534
+ const obj = {};
535
+ if (message.users?.length) {
536
+ obj.users = message.users.map((e) => user_1.User.toJSON(e));
537
+ }
538
+ return obj;
539
+ },
540
+ create(base) {
541
+ return exports.GetInboundUserResponse.fromPartial(base ?? {});
542
+ },
543
+ fromPartial(object) {
544
+ const message = createBaseGetInboundUserResponse();
545
+ message.users = object.users?.map((e) => user_1.User.fromPartial(e)) || [];
546
+ return message;
547
+ },
548
+ };
549
+ typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUserResponse.$type, exports.GetInboundUserResponse);
550
+ function createBaseGetInboundUsersCountResponse() {
551
+ return { $type: "xray.app.proxyman.command.GetInboundUsersCountResponse", count: 0 };
552
+ }
553
+ exports.GetInboundUsersCountResponse = {
554
+ $type: "xray.app.proxyman.command.GetInboundUsersCountResponse",
555
+ encode(message, writer = new wire_1.BinaryWriter()) {
556
+ if (message.count !== 0) {
557
+ writer.uint32(8).int64(message.count);
558
+ }
559
+ return writer;
560
+ },
561
+ decode(input, length) {
562
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
563
+ let end = length === undefined ? reader.len : reader.pos + length;
564
+ const message = createBaseGetInboundUsersCountResponse();
565
+ while (reader.pos < end) {
566
+ const tag = reader.uint32();
567
+ switch (tag >>> 3) {
568
+ case 1: {
569
+ if (tag !== 8) {
570
+ break;
571
+ }
572
+ message.count = longToNumber(reader.int64());
573
+ continue;
574
+ }
575
+ }
576
+ if ((tag & 7) === 4 || tag === 0) {
577
+ break;
578
+ }
579
+ reader.skip(tag & 7);
580
+ }
581
+ return message;
582
+ },
583
+ fromJSON(object) {
584
+ return {
585
+ $type: exports.GetInboundUsersCountResponse.$type,
586
+ count: isSet(object.count) ? globalThis.Number(object.count) : 0,
587
+ };
588
+ },
589
+ toJSON(message) {
590
+ const obj = {};
591
+ if (message.count !== 0) {
592
+ obj.count = Math.round(message.count);
593
+ }
594
+ return obj;
595
+ },
596
+ create(base) {
597
+ return exports.GetInboundUsersCountResponse.fromPartial(base ?? {});
598
+ },
599
+ fromPartial(object) {
600
+ const message = createBaseGetInboundUsersCountResponse();
601
+ message.count = object.count ?? 0;
602
+ return message;
603
+ },
604
+ };
605
+ typeRegistry_1.messageTypeRegistry.set(exports.GetInboundUsersCountResponse.$type, exports.GetInboundUsersCountResponse);
423
606
  function createBaseAddOutboundRequest() {
424
607
  return { $type: "xray.app.proxyman.command.AddOutboundRequest", outbound: undefined };
425
608
  }
@@ -788,6 +971,22 @@ exports.HandlerServiceDefinition = {
788
971
  responseStream: false,
789
972
  options: {},
790
973
  },
974
+ getInboundUsers: {
975
+ name: "GetInboundUsers",
976
+ requestType: exports.GetInboundUserRequest,
977
+ requestStream: false,
978
+ responseType: exports.GetInboundUserResponse,
979
+ responseStream: false,
980
+ options: {},
981
+ },
982
+ getInboundUsersCount: {
983
+ name: "GetInboundUsersCount",
984
+ requestType: exports.GetInboundUserRequest,
985
+ requestStream: false,
986
+ responseType: exports.GetInboundUsersCountResponse,
987
+ responseStream: false,
988
+ options: {},
989
+ },
791
990
  addOutbound: {
792
991
  name: "AddOutbound",
793
992
  requestType: exports.AddOutboundRequest,
@@ -814,6 +1013,16 @@ exports.HandlerServiceDefinition = {
814
1013
  },
815
1014
  },
816
1015
  };
1016
+ function longToNumber(int64) {
1017
+ const num = globalThis.Number(int64.toString());
1018
+ if (num > globalThis.Number.MAX_SAFE_INTEGER) {
1019
+ throw new globalThis.Error("Value is larger than Number.MAX_SAFE_INTEGER");
1020
+ }
1021
+ if (num < globalThis.Number.MIN_SAFE_INTEGER) {
1022
+ throw new globalThis.Error("Value is smaller than Number.MIN_SAFE_INTEGER");
1023
+ }
1024
+ return num;
1025
+ }
817
1026
  function isSet(value) {
818
1027
  return value !== null && value !== undefined;
819
1028
  }
@@ -4,13 +4,6 @@ import { PortList } from "../../common/net/port";
4
4
  import { TypedMessage } from "../../common/serial/typed_message";
5
5
  import { ProxyConfig, StreamConfig } from "../../transport/internet/config";
6
6
  export declare const protobufPackage = "xray.app.proxyman";
7
- export declare enum KnownProtocols {
8
- HTTP = 0,
9
- TLS = 1,
10
- UNRECOGNIZED = -1
11
- }
12
- export declare function knownProtocolsFromJSON(object: any): KnownProtocols;
13
- export declare function knownProtocolsToJSON(object: KnownProtocols): string;
14
7
  export interface InboundConfig {
15
8
  $type: "xray.app.proxyman.InboundConfig";
16
9
  }
@@ -74,13 +67,6 @@ export interface ReceiverConfig {
74
67
  allocationStrategy: AllocationStrategy | undefined;
75
68
  streamSettings: StreamConfig | undefined;
76
69
  receiveOriginalDestination: boolean;
77
- /**
78
- * Override domains for the given protocol.
79
- * Deprecated. Use sniffing_settings.
80
- *
81
- * @deprecated
82
- */
83
- domainOverride: KnownProtocols[];
84
70
  sniffingSettings: SniffingConfig | undefined;
85
71
  }
86
72
  export interface InboundHandlerConfig {
@@ -99,6 +85,7 @@ export interface SenderConfig {
99
85
  streamSettings: StreamConfig | undefined;
100
86
  proxySettings: ProxyConfig | undefined;
101
87
  multiplexSettings: MultiplexingConfig | undefined;
88
+ viaCidr: string;
102
89
  }
103
90
  export interface MultiplexingConfig {
104
91
  $type: "xray.app.proxyman.MultiplexingConfig";
@@ -1 +1 @@
1
- {"version":3,"file":"config.d.ts","sourceRoot":"","sources":["../../../../../src/xray-protos/app/proxyman/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,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AACjD,OAAO,EAAE,YAAY,EAAE,MAAM,mCAAmC,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AAG5E,eAAO,MAAM,eAAe,sBAAsB,CAAC;AAEnD,oBAAY,cAAc;IACxB,IAAI,IAAI;IACR,GAAG,IAAI;IACP,YAAY,KAAK;CAClB;AAED,wBAAgB,sBAAsB,CAAC,MAAM,EAAE,GAAG,GAAG,cAAc,CAalE;AAED,wBAAgB,oBAAoB,CAAC,MAAM,EAAE,cAAc,GAAG,MAAM,CAUnE;AAED,MAAM,WAAW,aAAa;IAC5B,KAAK,EAAE,iCAAiC,CAAC;CAC1C;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,EAAE,sCAAsC,CAAC;IAC9C,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;;OAGG;IACH,WAAW,EACP,gDAAgD,GAChD,SAAS,CAAC;IACd;;;OAGG;IACH,OAAO,EAAE,4CAA4C,GAAG,SAAS,CAAC;CACnE;AAED,oBAAY,uBAAuB;IACjC,wDAAwD;IACxD,MAAM,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AC,WAAW,CAAC,CAAC,CAAC,CAAC,GACtE,CAAC,SAAS,aAAa,CAAC,MAAM,CAAC,CAAC,GAAG,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,GAChE,CAAC,SAAS,EAAE,GAAG;KAAG,CAAC,IAAI,OAAO,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;CAAE,GACvE,OAAO,CAAC,CAAC,CAAC,CAAC;AAMf,MAAM,WAAW,UAAU,CAAC,CAAC,EAAE,CAAC,SAAS,MAAM;IAC7C,QAAQ,CAAC,KAAK,EAAE,CAAC,CAAC;IAClB,MAAM,CAAC,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,EAAE,YAAY,GAAG,YAAY,CAAC;IACxD,MAAM,CAAC,KAAK,EAAE,YAAY,GAAG,UAAU,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,CAAC,CAAC;IAC7D,QAAQ,CAAC,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC;IACzB,MAAM,CAAC,OAAO,EAAE,CAAC,GAAG,OAAO,CAAC;IAC5B,MAAM,CAAC,IAAI,CAAC,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;IACjC,WAAW,CAAC,MAAM,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;CACxC"}
@@ -5,9 +5,7 @@
5
5
  // protoc v5.28.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.KnownProtocols = exports.protobufPackage = void 0;
9
- exports.knownProtocolsFromJSON = knownProtocolsFromJSON;
10
- exports.knownProtocolsToJSON = knownProtocolsToJSON;
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;
11
9
  exports.allocationStrategy_TypeFromJSON = allocationStrategy_TypeFromJSON;
12
10
  exports.allocationStrategy_TypeToJSON = allocationStrategy_TypeToJSON;
13
11
  /* eslint-disable */
@@ -18,37 +16,6 @@ const typed_message_1 = require("../../common/serial/typed_message");
18
16
  const config_1 = require("../../transport/internet/config");
19
17
  const typeRegistry_1 = require("../../typeRegistry");
20
18
  exports.protobufPackage = "xray.app.proxyman";
21
- var KnownProtocols;
22
- (function (KnownProtocols) {
23
- KnownProtocols[KnownProtocols["HTTP"] = 0] = "HTTP";
24
- KnownProtocols[KnownProtocols["TLS"] = 1] = "TLS";
25
- KnownProtocols[KnownProtocols["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
26
- })(KnownProtocols || (exports.KnownProtocols = KnownProtocols = {}));
27
- function knownProtocolsFromJSON(object) {
28
- switch (object) {
29
- case 0:
30
- case "HTTP":
31
- return KnownProtocols.HTTP;
32
- case 1:
33
- case "TLS":
34
- return KnownProtocols.TLS;
35
- case -1:
36
- case "UNRECOGNIZED":
37
- default:
38
- return KnownProtocols.UNRECOGNIZED;
39
- }
40
- }
41
- function knownProtocolsToJSON(object) {
42
- switch (object) {
43
- case KnownProtocols.HTTP:
44
- return "HTTP";
45
- case KnownProtocols.TLS:
46
- return "TLS";
47
- case KnownProtocols.UNRECOGNIZED:
48
- default:
49
- return "UNRECOGNIZED";
50
- }
51
- }
52
19
  var AllocationStrategy_Type;
53
20
  (function (AllocationStrategy_Type) {
54
21
  /** Always - Always allocate all connection handlers. */
@@ -469,7 +436,6 @@ function createBaseReceiverConfig() {
469
436
  allocationStrategy: undefined,
470
437
  streamSettings: undefined,
471
438
  receiveOriginalDestination: false,
472
- domainOverride: [],
473
439
  sniffingSettings: undefined,
474
440
  };
475
441
  }
@@ -491,13 +457,8 @@ exports.ReceiverConfig = {
491
457
  if (message.receiveOriginalDestination !== false) {
492
458
  writer.uint32(40).bool(message.receiveOriginalDestination);
493
459
  }
494
- writer.uint32(58).fork();
495
- for (const v of message.domainOverride) {
496
- writer.int32(v);
497
- }
498
- writer.join();
499
460
  if (message.sniffingSettings !== undefined) {
500
- exports.SniffingConfig.encode(message.sniffingSettings, writer.uint32(66).fork()).join();
461
+ exports.SniffingConfig.encode(message.sniffingSettings, writer.uint32(58).fork()).join();
501
462
  }
502
463
  return writer;
503
464
  },
@@ -544,21 +505,7 @@ exports.ReceiverConfig = {
544
505
  continue;
545
506
  }
546
507
  case 7: {
547
- if (tag === 56) {
548
- message.domainOverride.push(reader.int32());
549
- continue;
550
- }
551
- if (tag === 58) {
552
- const end2 = reader.uint32() + reader.pos;
553
- while (reader.pos < end2) {
554
- message.domainOverride.push(reader.int32());
555
- }
556
- continue;
557
- }
558
- break;
559
- }
560
- case 8: {
561
- if (tag !== 66) {
508
+ if (tag !== 58) {
562
509
  break;
563
510
  }
564
511
  message.sniffingSettings = exports.SniffingConfig.decode(reader, reader.uint32());
@@ -584,9 +531,6 @@ exports.ReceiverConfig = {
584
531
  receiveOriginalDestination: isSet(object.receiveOriginalDestination)
585
532
  ? globalThis.Boolean(object.receiveOriginalDestination)
586
533
  : false,
587
- domainOverride: globalThis.Array.isArray(object?.domainOverride)
588
- ? object.domainOverride.map((e) => knownProtocolsFromJSON(e))
589
- : [],
590
534
  sniffingSettings: isSet(object.sniffingSettings) ? exports.SniffingConfig.fromJSON(object.sniffingSettings) : undefined,
591
535
  };
592
536
  },
@@ -607,9 +551,6 @@ exports.ReceiverConfig = {
607
551
  if (message.receiveOriginalDestination !== false) {
608
552
  obj.receiveOriginalDestination = message.receiveOriginalDestination;
609
553
  }
610
- if (message.domainOverride?.length) {
611
- obj.domainOverride = message.domainOverride.map((e) => knownProtocolsToJSON(e));
612
- }
613
554
  if (message.sniffingSettings !== undefined) {
614
555
  obj.sniffingSettings = exports.SniffingConfig.toJSON(message.sniffingSettings);
615
556
  }
@@ -633,7 +574,6 @@ exports.ReceiverConfig = {
633
574
  ? config_1.StreamConfig.fromPartial(object.streamSettings)
634
575
  : undefined;
635
576
  message.receiveOriginalDestination = object.receiveOriginalDestination ?? false;
636
- message.domainOverride = object.domainOverride?.map((e) => e) || [];
637
577
  message.sniffingSettings = (object.sniffingSettings !== undefined && object.sniffingSettings !== null)
638
578
  ? exports.SniffingConfig.fromPartial(object.sniffingSettings)
639
579
  : undefined;
@@ -782,6 +722,7 @@ function createBaseSenderConfig() {
782
722
  streamSettings: undefined,
783
723
  proxySettings: undefined,
784
724
  multiplexSettings: undefined,
725
+ viaCidr: "",
785
726
  };
786
727
  }
787
728
  exports.SenderConfig = {
@@ -799,6 +740,9 @@ exports.SenderConfig = {
799
740
  if (message.multiplexSettings !== undefined) {
800
741
  exports.MultiplexingConfig.encode(message.multiplexSettings, writer.uint32(34).fork()).join();
801
742
  }
743
+ if (message.viaCidr !== "") {
744
+ writer.uint32(42).string(message.viaCidr);
745
+ }
802
746
  return writer;
803
747
  },
804
748
  decode(input, length) {
@@ -836,6 +780,13 @@ exports.SenderConfig = {
836
780
  message.multiplexSettings = exports.MultiplexingConfig.decode(reader, reader.uint32());
837
781
  continue;
838
782
  }
783
+ case 5: {
784
+ if (tag !== 42) {
785
+ break;
786
+ }
787
+ message.viaCidr = reader.string();
788
+ continue;
789
+ }
839
790
  }
840
791
  if ((tag & 7) === 4 || tag === 0) {
841
792
  break;
@@ -853,6 +804,7 @@ exports.SenderConfig = {
853
804
  multiplexSettings: isSet(object.multiplexSettings)
854
805
  ? exports.MultiplexingConfig.fromJSON(object.multiplexSettings)
855
806
  : undefined,
807
+ viaCidr: isSet(object.viaCidr) ? globalThis.String(object.viaCidr) : "",
856
808
  };
857
809
  },
858
810
  toJSON(message) {
@@ -869,6 +821,9 @@ exports.SenderConfig = {
869
821
  if (message.multiplexSettings !== undefined) {
870
822
  obj.multiplexSettings = exports.MultiplexingConfig.toJSON(message.multiplexSettings);
871
823
  }
824
+ if (message.viaCidr !== "") {
825
+ obj.viaCidr = message.viaCidr;
826
+ }
872
827
  return obj;
873
828
  },
874
829
  create(base) {
@@ -886,6 +841,7 @@ exports.SenderConfig = {
886
841
  message.multiplexSettings = (object.multiplexSettings !== undefined && object.multiplexSettings !== null)
887
842
  ? exports.MultiplexingConfig.fromPartial(object.multiplexSettings)
888
843
  : undefined;
844
+ message.viaCidr = object.viaCidr ?? "";
889
845
  return message;
890
846
  },
891
847
  };