@remnawave/node-contract 0.3.1 → 0.3.3

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 (58) hide show
  1. package/build/api/controllers/handler.d.ts.map +1 -1
  2. package/build/api/controllers/index.d.ts +1 -1
  3. package/build/api/controllers/index.d.ts.map +1 -1
  4. package/build/api/controllers/index.js +1 -1
  5. package/build/api/controllers/stats.d.ts.map +1 -1
  6. package/build/api/controllers/xray.d.ts.map +1 -1
  7. package/build/api/index.d.ts +1 -1
  8. package/build/api/index.d.ts.map +1 -1
  9. package/build/api/index.js +1 -1
  10. package/build/api/routes.d.ts.map +1 -1
  11. package/build/api/routes.js +17 -7
  12. package/build/commands/handler/add-user.command.d.ts +7 -7
  13. package/build/commands/handler/add-user.command.d.ts.map +1 -1
  14. package/build/commands/handler/add-user.command.js +2 -2
  15. package/build/commands/handler/get-inbound-users-count.command.d.ts.map +1 -1
  16. package/build/commands/handler/get-inbound-users.command.d.ts.map +1 -1
  17. package/build/commands/handler/index.d.ts +1 -1
  18. package/build/commands/handler/index.d.ts.map +1 -1
  19. package/build/commands/handler/index.js +1 -1
  20. package/build/commands/handler/remove-user.command.d.ts +4 -4
  21. package/build/commands/handler/remove-user.command.d.ts.map +1 -1
  22. package/build/commands/index.d.ts +2 -2
  23. package/build/commands/index.d.ts.map +1 -1
  24. package/build/commands/index.js +2 -2
  25. package/build/commands/stats/get-all-inbounds-stats.command.d.ts.map +1 -1
  26. package/build/commands/stats/get-all-outbounds-stats.command.d.ts.map +1 -1
  27. package/build/commands/stats/get-inbound-stats.command.d.ts +2 -2
  28. package/build/commands/stats/get-inbound-stats.command.d.ts.map +1 -1
  29. package/build/commands/stats/get-outbound-stats.command.d.ts +2 -2
  30. package/build/commands/stats/get-outbound-stats.command.d.ts.map +1 -1
  31. package/build/commands/stats/get-system-stats.command.d.ts.map +1 -1
  32. package/build/commands/stats/get-user-online-status.command.d.ts.map +1 -1
  33. package/build/commands/stats/get-users-stats.command.d.ts +6 -6
  34. package/build/commands/stats/get-users-stats.command.d.ts.map +1 -1
  35. package/build/commands/xray/get-status-and-version.command.d.ts +4 -4
  36. package/build/commands/xray/get-status-and-version.command.d.ts.map +1 -1
  37. package/build/commands/xray/index.d.ts +1 -1
  38. package/build/commands/xray/index.d.ts.map +1 -1
  39. package/build/commands/xray/index.js +1 -1
  40. package/build/commands/xray/start.command.d.ts +8 -8
  41. package/build/commands/xray/start.command.d.ts.map +1 -1
  42. package/build/commands/xray/stop.command.d.ts.map +1 -1
  43. package/build/constants/index.d.ts +1 -0
  44. package/build/constants/index.d.ts.map +1 -1
  45. package/build/constants/index.js +1 -0
  46. package/build/constants/internal/index.d.ts +2 -0
  47. package/build/constants/internal/index.d.ts.map +1 -0
  48. package/build/constants/internal/index.js +17 -0
  49. package/build/constants/internal/internal.constants.d.ts +5 -0
  50. package/build/constants/internal/internal.constants.d.ts.map +1 -0
  51. package/build/constants/internal/internal.constants.js +7 -0
  52. package/build/constants/xray/stats.d.ts +19 -2
  53. package/build/constants/xray/stats.d.ts.map +1 -1
  54. package/build/constants/xray/stats.js +20 -17
  55. package/build/index.d.ts +2 -2
  56. package/build/index.d.ts.map +1 -1
  57. package/build/index.js +2 -2
  58. package/package.json +9 -1
@@ -1 +1 @@
1
- {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,WAAqB,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
1
+ {"version":3,"file":"handler.d.ts","sourceRoot":"","sources":["../../../api/controllers/handler.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,kBAAkB,EAAG,SAAkB,CAAC;AAErD,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC"}
@@ -1,4 +1,4 @@
1
+ export * from './handler';
1
2
  export * from './stats';
2
3
  export * from './xray';
3
- export * from './handler';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../api/controllers/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./handler"), exports);
17
18
  __exportStar(require("./stats"), exports);
18
19
  __exportStar(require("./xray"), exports);
19
- __exportStar(require("./handler"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,SAAmB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;CAUf,CAAC"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../api/controllers/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,gBAAgB,EAAG,OAAgB,CAAC;AAEjD,eAAO,MAAM,YAAY;;;;;;;;CAUf,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,QAAkB,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
1
+ {"version":3,"file":"xray.d.ts","sourceRoot":"","sources":["../../../api/controllers/xray.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,eAAe,EAAG,MAAe,CAAC;AAE/C,eAAO,MAAM,WAAW;;;;CAId,CAAC"}
@@ -1,3 +1,3 @@
1
- export * from './routes';
2
1
  export * from './controllers';
2
+ export * from './routes';
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../api/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC"}
@@ -14,5 +14,5 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./routes"), exports);
18
17
  __exportStar(require("./controllers"), exports);
18
+ __exportStar(require("./routes"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,SAAmB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;CAqBX,CAAC"}
1
+ {"version":3,"file":"routes.d.ts","sourceRoot":"","sources":["../../api/routes.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,IAAI,EAAG,OAAgB,CAAC;AAErC,eAAO,MAAM,QAAQ;;;;;;;;;;;;;;;;;;;;;CAqBX,CAAC"}
@@ -15,13 +15,23 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
15
15
  }) : function(o, v) {
16
16
  o["default"] = v;
17
17
  });
18
- var __importStar = (this && this.__importStar) || function (mod) {
19
- if (mod && mod.__esModule) return mod;
20
- var result = {};
21
- if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
22
- __setModuleDefault(result, mod);
23
- return result;
24
- };
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
25
35
  Object.defineProperty(exports, "__esModule", { value: true });
26
36
  exports.REST_API = exports.ROOT = void 0;
27
37
  const CONTROLLERS = __importStar(require("./controllers"));
@@ -1,12 +1,12 @@
1
1
  import { z } from 'zod';
2
2
  export declare enum CipherType {
3
- UNKNOWN = 0,
4
3
  AES_128_GCM = 5,
5
4
  AES_256_GCM = 6,
6
5
  CHACHA20_POLY1305 = 7,
7
- XCHACHA20_POLY1305 = 8,
8
6
  NONE = 9,
9
- UNRECOGNIZED = -1
7
+ UNKNOWN = 0,
8
+ UNRECOGNIZED = -1,
9
+ XCHACHA20_POLY1305 = 8
10
10
  }
11
11
  export declare namespace AddUserCommand {
12
12
  const url: "/node/handler/add-user";
@@ -228,21 +228,21 @@ export declare namespace AddUserCommand {
228
228
  success: z.ZodBoolean;
229
229
  error: z.ZodNullable<z.ZodString>;
230
230
  }, "strip", z.ZodTypeAny, {
231
- error: string | null;
232
231
  success: boolean;
233
- }, {
234
232
  error: string | null;
233
+ }, {
235
234
  success: boolean;
235
+ error: string | null;
236
236
  }>;
237
237
  }, "strip", z.ZodTypeAny, {
238
238
  response: {
239
- error: string | null;
240
239
  success: boolean;
240
+ error: string | null;
241
241
  };
242
242
  }, {
243
243
  response: {
244
- error: string | null;
245
244
  success: boolean;
245
+ error: string | null;
246
246
  };
247
247
  }>;
248
248
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,oBAAY,UAAU;IAClB,OAAO,IAAI;IACX,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,kBAAkB,IAAI;IACtB,IAAI,IAAI;IACR,YAAY,KAAK;CACpB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAuDtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"add-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/add-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,oBAAY,UAAU;IAClB,WAAW,IAAI;IACf,WAAW,IAAI;IACf,iBAAiB,IAAI;IACrB,IAAI,IAAI;IACR,OAAO,IAAI;IACX,YAAY,KAAK;IACjB,kBAAkB,IAAI;CACzB;AAED,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA4B,CAAC;IAuDtC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAWxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,13 +5,13 @@ const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  var CipherType;
7
7
  (function (CipherType) {
8
- CipherType[CipherType["UNKNOWN"] = 0] = "UNKNOWN";
9
8
  CipherType[CipherType["AES_128_GCM"] = 5] = "AES_128_GCM";
10
9
  CipherType[CipherType["AES_256_GCM"] = 6] = "AES_256_GCM";
11
10
  CipherType[CipherType["CHACHA20_POLY1305"] = 7] = "CHACHA20_POLY1305";
12
- CipherType[CipherType["XCHACHA20_POLY1305"] = 8] = "XCHACHA20_POLY1305";
13
11
  CipherType[CipherType["NONE"] = 9] = "NONE";
12
+ CipherType[CipherType["UNKNOWN"] = 0] = "UNKNOWN";
14
13
  CipherType[CipherType["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
14
+ CipherType[CipherType["XCHACHA20_POLY1305"] = 8] = "XCHACHA20_POLY1305";
15
15
  })(CipherType || (exports.CipherType = CipherType = {}));
16
16
  var AddUserCommand;
17
17
  (function (AddUserCommand) {
@@ -1 +1 @@
1
- {"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,yCAA2C,CAAC;IAErD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-inbound-users-count.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users-count.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,yCAA2C,CAAC;IAErD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,mCAAqC,CAAC;IAC/C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-inbound-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/get-inbound-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,mCAAqC,CAAC;IAC/C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,5 +1,5 @@
1
1
  export * from './add-user.command';
2
- export * from './get-inbound-users.command';
3
2
  export * from './get-inbound-users-count.command';
3
+ export * from './get-inbound-users.command';
4
4
  export * from './remove-user.command';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,uBAAuB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/handler/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC"}
@@ -15,6 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./add-user.command"), exports);
18
- __exportStar(require("./get-inbound-users.command"), exports);
19
18
  __exportStar(require("./get-inbound-users-count.command"), exports);
19
+ __exportStar(require("./get-inbound-users.command"), exports);
20
20
  __exportStar(require("./remove-user.command"), exports);
@@ -17,21 +17,21 @@ export declare namespace RemoveUserCommand {
17
17
  success: z.ZodBoolean;
18
18
  error: z.ZodNullable<z.ZodString>;
19
19
  }, "strip", z.ZodTypeAny, {
20
- error: string | null;
21
20
  success: boolean;
22
- }, {
23
21
  error: string | null;
22
+ }, {
24
23
  success: boolean;
24
+ error: string | null;
25
25
  }>;
26
26
  }, "strip", z.ZodTypeAny, {
27
27
  response: {
28
- error: string | null;
29
28
  success: boolean;
29
+ error: string | null;
30
30
  };
31
31
  }, {
32
32
  response: {
33
- error: string | null;
34
33
  success: boolean;
34
+ error: string | null;
35
35
  };
36
36
  }>;
37
37
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"remove-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,6BAA+B,CAAC;IAEzC,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"remove-user.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,6BAA+B,CAAC;IAEzC,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,4 +1,4 @@
1
- export * from './xray';
2
- export * from './stats';
3
1
  export * from './handler';
2
+ export * from './stats';
3
+ export * from './xray';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,WAAW,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./xray"), exports);
18
- __exportStar(require("./stats"), exports);
19
17
  __exportStar(require("./handler"), exports);
18
+ __exportStar(require("./stats"), exports);
19
+ __exportStar(require("./xray"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-inbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-inbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAElD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all-inbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-inbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAElD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-outbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-outbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,uCAAyC,CAAC;IAEnD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all-outbounds-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-all-outbounds-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,2BAA2B,CAAC;IAClC,MAAM,GAAG,uCAAyC,CAAC;IAEnD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,11 +5,11 @@ export declare namespace GetInboundStatsCommand {
5
5
  tag: z.ZodString;
6
6
  reset: z.ZodBoolean;
7
7
  }, "strip", z.ZodTypeAny, {
8
- reset: boolean;
9
8
  tag: string;
10
- }, {
11
9
  reset: boolean;
10
+ }, {
12
11
  tag: string;
12
+ reset: boolean;
13
13
  }>;
14
14
  type Request = z.infer<typeof RequestSchema>;
15
15
  const ResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"get-inbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-inbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,iCAAmC,CAAC;IAE7C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-inbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-inbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,iCAAmC,CAAC;IAE7C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,11 +5,11 @@ export declare namespace GetOutboundStatsCommand {
5
5
  tag: z.ZodString;
6
6
  reset: z.ZodBoolean;
7
7
  }, "strip", z.ZodTypeAny, {
8
- reset: boolean;
9
8
  tag: string;
10
- }, {
11
9
  reset: boolean;
10
+ }, {
12
11
  tag: string;
12
+ reset: boolean;
13
13
  }>;
14
14
  type Request = z.infer<typeof RequestSchema>;
15
15
  const ResponseSchema: z.ZodObject<{
@@ -1 +1 @@
1
- {"version":3,"file":"get-outbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-outbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAAoC,CAAC;IAE9C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-outbound-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-outbound-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,kCAAoC,CAAC;IAE9C,MAAM,aAAa;;;;;;;;;MAGxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;MAMzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-online-status.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-online-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAClD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-user-online-status.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-user-online-status.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,sCAAwC,CAAC;IAClD,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -16,41 +16,41 @@ export declare namespace GetUsersStatsCommand {
16
16
  downlink: z.ZodNumber;
17
17
  uplink: z.ZodNumber;
18
18
  }, "strip", z.ZodTypeAny, {
19
+ username: string;
19
20
  downlink: number;
20
21
  uplink: number;
21
- username: string;
22
22
  }, {
23
+ username: string;
23
24
  downlink: number;
24
25
  uplink: number;
25
- username: string;
26
26
  }>, "many">;
27
27
  }, "strip", z.ZodTypeAny, {
28
28
  users: {
29
+ username: string;
29
30
  downlink: number;
30
31
  uplink: number;
31
- username: string;
32
32
  }[];
33
33
  }, {
34
34
  users: {
35
+ username: string;
35
36
  downlink: number;
36
37
  uplink: number;
37
- username: string;
38
38
  }[];
39
39
  }>;
40
40
  }, "strip", z.ZodTypeAny, {
41
41
  response: {
42
42
  users: {
43
+ username: string;
43
44
  downlink: number;
44
45
  uplink: number;
45
- username: string;
46
46
  }[];
47
47
  };
48
48
  }, {
49
49
  response: {
50
50
  users: {
51
+ username: string;
51
52
  downlink: number;
52
53
  uplink: number;
53
- username: string;
54
54
  }[];
55
55
  };
56
56
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-users-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-users-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,+BAAiC,CAAC;IAE3C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-users-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-users-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,+BAAiC,CAAC;IAE3C,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -6,21 +6,21 @@ export declare namespace GetStatusAndVersionCommand {
6
6
  isRunning: z.ZodBoolean;
7
7
  version: z.ZodNullable<z.ZodString>;
8
8
  }, "strip", z.ZodTypeAny, {
9
- version: string | null;
10
9
  isRunning: boolean;
11
- }, {
12
10
  version: string | null;
11
+ }, {
13
12
  isRunning: boolean;
13
+ version: string | null;
14
14
  }>;
15
15
  }, "strip", z.ZodTypeAny, {
16
16
  response: {
17
- version: string | null;
18
17
  isRunning: boolean;
18
+ version: string | null;
19
19
  };
20
20
  }, {
21
21
  response: {
22
- version: string | null;
23
22
  isRunning: boolean;
23
+ version: string | null;
24
24
  };
25
25
  }>;
26
26
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,qBAAuB,CAAC;IAEjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-status-and-version.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/get-status-and-version.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,qBAAuB,CAAC;IAEjC,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,4 +1,4 @@
1
+ export * from './get-status-and-version.command';
1
2
  export * from './start.command';
2
3
  export * from './stop.command';
3
- export * from './get-status-and-version.command';
4
4
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,kCAAkC,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/xray/index.ts"],"names":[],"mappings":"AAAA,cAAc,kCAAkC,CAAC;AACjD,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC"}
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./get-status-and-version.command"), exports);
17
18
  __exportStar(require("./start.command"), exports);
18
19
  __exportStar(require("./stop.command"), exports);
19
- __exportStar(require("./get-status-and-version.command"), exports);
@@ -22,18 +22,18 @@ export declare namespace StartXrayCommand {
22
22
  memoryTotal: string;
23
23
  }>>;
24
24
  }, "strip", z.ZodTypeAny, {
25
- isStarted: boolean;
26
- version: string | null;
27
25
  error: string | null;
26
+ version: string | null;
27
+ isStarted: boolean;
28
28
  systemInformation: {
29
29
  cpuCores: number;
30
30
  cpuModel: string;
31
31
  memoryTotal: string;
32
32
  } | null;
33
33
  }, {
34
- isStarted: boolean;
35
- version: string | null;
36
34
  error: string | null;
35
+ version: string | null;
36
+ isStarted: boolean;
37
37
  systemInformation: {
38
38
  cpuCores: number;
39
39
  cpuModel: string;
@@ -42,9 +42,9 @@ export declare namespace StartXrayCommand {
42
42
  }>;
43
43
  }, "strip", z.ZodTypeAny, {
44
44
  response: {
45
- isStarted: boolean;
46
- version: string | null;
47
45
  error: string | null;
46
+ version: string | null;
47
+ isStarted: boolean;
48
48
  systemInformation: {
49
49
  cpuCores: number;
50
50
  cpuModel: string;
@@ -53,9 +53,9 @@ export declare namespace StartXrayCommand {
53
53
  };
54
54
  }, {
55
55
  response: {
56
- isStarted: boolean;
57
- version: string | null;
58
56
  error: string | null;
57
+ version: string | null;
58
+ isStarted: boolean;
59
59
  systemInformation: {
60
60
  cpuCores: number;
61
61
  cpuModel: string;
@@ -1 +1 @@
1
- {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa,wCAAwB,CAAC;IAEnD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa,wCAAwB,CAAC;IAEnD,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1 +1 @@
1
- {"version":3,"file":"stop.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/stop.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,mBAAqB,CAAC;IAE/B,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"stop.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/stop.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,mBAAqB,CAAC;IAE/B,MAAM,cAAc;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -1,4 +1,5 @@
1
1
  export * from './errors';
2
+ export * from './internal';
2
3
  export * from './roles';
3
4
  export * from './xray';
4
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../constants/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -15,5 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./errors"), exports);
18
+ __exportStar(require("./internal"), exports);
18
19
  __exportStar(require("./roles"), exports);
19
20
  __exportStar(require("./xray"), exports);
@@ -0,0 +1,2 @@
1
+ export * from './internal.constants';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../constants/internal/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC"}
@@ -0,0 +1,17 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ __exportStar(require("./internal.constants"), exports);
@@ -0,0 +1,5 @@
1
+ export declare const XRAY_INTERNAL_API_PORT = 61001;
2
+ export declare const XRAY_INTERNAL_API_CONTROLLER = "internal";
3
+ export declare const XRAY_INTERNAL_API_PATH = "/get-config";
4
+ export declare const XRAY_INTERNAL_FULL_PATH = "/internal/get-config";
5
+ //# sourceMappingURL=internal.constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"internal.constants.d.ts","sourceRoot":"","sources":["../../../constants/internal/internal.constants.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,sBAAsB,QAAQ,CAAC;AAC5C,eAAO,MAAM,4BAA4B,aAAa,CAAC;AACvD,eAAO,MAAM,sBAAsB,gBAAgB,CAAC;AACpD,eAAO,MAAM,uBAAuB,yBAA8D,CAAC"}
@@ -0,0 +1,7 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.XRAY_INTERNAL_FULL_PATH = exports.XRAY_INTERNAL_API_PATH = exports.XRAY_INTERNAL_API_CONTROLLER = exports.XRAY_INTERNAL_API_PORT = void 0;
4
+ exports.XRAY_INTERNAL_API_PORT = 61001;
5
+ exports.XRAY_INTERNAL_API_CONTROLLER = 'internal';
6
+ exports.XRAY_INTERNAL_API_PATH = '/get-config';
7
+ exports.XRAY_INTERNAL_FULL_PATH = `/${exports.XRAY_INTERNAL_API_CONTROLLER}${exports.XRAY_INTERNAL_API_PATH}`;
@@ -8,8 +8,8 @@ export declare const XRAY_DEFAULT_POLICY_MODEL: {
8
8
  };
9
9
  };
10
10
  readonly system: {
11
- readonly statsInboundDownlink: true;
12
- readonly statsInboundUplink: true;
11
+ readonly statsInboundDownlink: false;
12
+ readonly statsInboundUplink: false;
13
13
  readonly statsOutboundDownlink: true;
14
14
  readonly statsOutboundUplink: true;
15
15
  };
@@ -24,5 +24,22 @@ export declare const XRAY_DEFAULT_API_MODEL: {
24
24
  readonly listen: "127.0.0.1:61000";
25
25
  readonly tag: "API";
26
26
  };
27
+ readonly metrics: {
28
+ readonly tag: "metrics_out";
29
+ };
30
+ };
31
+ export declare const XRAY_ROUTING_RULES_MODEL: {
32
+ readonly type: "field";
33
+ readonly inboundTag: readonly ["metrics_in"];
34
+ readonly outboundTag: "metrics_out";
35
+ };
36
+ export declare const XRAY_API_INBOUND_MODEL: {
37
+ readonly listen: "127.0.0.1";
38
+ readonly port: 61002;
39
+ readonly protocol: "dokodemo-door";
40
+ readonly settings: {
41
+ readonly address: "localhost";
42
+ };
43
+ readonly tag: "metrics_in";
27
44
  };
28
45
  //# sourceMappingURL=stats.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;CAMzB,CAAC"}
1
+ {"version":3,"file":"stats.d.ts","sourceRoot":"","sources":["../../../constants/xray/stats.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;CAgB5B,CAAC;AAEX,eAAO,MAAM,wBAAwB;;CAE3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;;CASzB,CAAC;AAEX,eAAO,MAAM,wBAAwB;;;;CAI3B,CAAC;AAEX,eAAO,MAAM,sBAAsB;;;;;;;;CAQzB,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
3
+ exports.XRAY_API_INBOUND_MODEL = exports.XRAY_ROUTING_RULES_MODEL = exports.XRAY_DEFAULT_API_MODEL = exports.XRAY_DEFAULT_STATS_MODEL = exports.XRAY_DEFAULT_POLICY_MODEL = void 0;
4
4
  exports.XRAY_DEFAULT_POLICY_MODEL = {
5
5
  policy: {
6
6
  levels: {
@@ -11,8 +11,8 @@ exports.XRAY_DEFAULT_POLICY_MODEL = {
11
11
  },
12
12
  },
13
13
  system: {
14
- statsInboundDownlink: true,
15
- statsInboundUplink: true,
14
+ statsInboundDownlink: false,
15
+ statsInboundUplink: false,
16
16
  statsOutboundDownlink: true,
17
17
  statsOutboundUplink: true,
18
18
  },
@@ -27,18 +27,21 @@ exports.XRAY_DEFAULT_API_MODEL = {
27
27
  listen: '127.0.0.1:61000',
28
28
  tag: 'API',
29
29
  },
30
+ metrics: {
31
+ tag: 'metrics_out',
32
+ },
33
+ };
34
+ exports.XRAY_ROUTING_RULES_MODEL = {
35
+ type: 'field',
36
+ inboundTag: ['metrics_in'],
37
+ outboundTag: 'metrics_out',
38
+ };
39
+ exports.XRAY_API_INBOUND_MODEL = {
40
+ listen: '127.0.0.1',
41
+ port: 61002,
42
+ protocol: 'dokodemo-door',
43
+ settings: {
44
+ address: 'localhost',
45
+ },
46
+ tag: 'metrics_in',
30
47
  };
31
- // export const XRAY_ROUTING_RULES_MODEL = {
32
- // inboundTag: ['API_INBOUND'],
33
- // outboundTag: 'API',
34
- // type: 'field',
35
- // } as const;
36
- // export const XRAY_API_INBOUND_MODEL = {
37
- // listen: '127.0.0.1',
38
- // port: 61000,
39
- // protocol: 'dokodemo-door',
40
- // settings: {
41
- // address: '0.0.0.0',
42
- // },
43
- // tag: 'API_INBOUND',
44
- // } as const;
package/build/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export * from './constants';
2
- export * from './commands';
3
1
  export * from './api';
2
+ export * from './commands';
3
+ export * from './constants';
4
4
  export * from './models';
5
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,aAAa,CAAC;AAC5B,cAAc,YAAY,CAAC;AAC3B,cAAc,OAAO,CAAC;AACtB,cAAc,UAAU,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC;AACtB,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC"}
package/build/index.js CHANGED
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- __exportStar(require("./constants"), exports);
18
- __exportStar(require("./commands"), exports);
19
17
  __exportStar(require("./api"), exports);
18
+ __exportStar(require("./commands"), exports);
19
+ __exportStar(require("./constants"), exports);
20
20
  __exportStar(require("./models"), exports);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "0.3.1",
3
+ "version": "0.3.3",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",
@@ -13,6 +13,14 @@
13
13
  },
14
14
  "keywords": [],
15
15
  "author": "REMNAWAVE",
16
+ "homepage": "https://github.com/remnawave",
17
+ "repository": {
18
+ "type": "git",
19
+ "url": "https://github.com/remnawave/node"
20
+ },
21
+ "bugs": {
22
+ "url": "https://github.com/remnawave/node/issues"
23
+ },
16
24
  "license": "MIT",
17
25
  "dependencies": {
18
26
  "zod": "^3.22.4"