@remnawave/node-contract 2.7.0 → 2.9.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 (94) hide show
  1. package/build/api/controllers/index.d.ts +0 -1
  2. package/build/api/controllers/index.d.ts.map +1 -1
  3. package/build/api/controllers/index.js +0 -1
  4. package/build/api/routes.d.ts +0 -4
  5. package/build/api/routes.d.ts.map +1 -1
  6. package/build/api/routes.js +0 -4
  7. package/build/commands/handler/add-user.command.d.ts +17 -160
  8. package/build/commands/handler/add-user.command.d.ts.map +1 -1
  9. package/build/commands/handler/add-user.command.js +3 -3
  10. package/build/commands/handler/add-users.command.d.ts +18 -181
  11. package/build/commands/handler/add-users.command.d.ts.map +1 -1
  12. package/build/commands/handler/add-users.command.js +2 -2
  13. package/build/commands/handler/drop-ips.command.d.ts +4 -20
  14. package/build/commands/handler/drop-ips.command.d.ts.map +1 -1
  15. package/build/commands/handler/drop-users-connections.command.d.ts +4 -20
  16. package/build/commands/handler/drop-users-connections.command.d.ts.map +1 -1
  17. package/build/commands/handler/get-inbound-users-count.command.d.ts +3 -19
  18. package/build/commands/handler/get-inbound-users-count.command.d.ts.map +1 -1
  19. package/build/commands/handler/get-inbound-users.command.d.ts +4 -44
  20. package/build/commands/handler/get-inbound-users.command.d.ts.map +1 -1
  21. package/build/commands/handler/remove-user.command.d.ts +5 -35
  22. package/build/commands/handler/remove-user.command.d.ts.map +1 -1
  23. package/build/commands/handler/remove-user.command.js +1 -1
  24. package/build/commands/handler/remove-users.command.d.ts +5 -37
  25. package/build/commands/handler/remove-users.command.d.ts.map +1 -1
  26. package/build/commands/handler/remove-users.command.js +1 -1
  27. package/build/commands/index.d.ts +0 -1
  28. package/build/commands/index.d.ts.map +1 -1
  29. package/build/commands/index.js +0 -1
  30. package/build/commands/plugin/nftables/block-ips.schema.d.ts +5 -33
  31. package/build/commands/plugin/nftables/block-ips.schema.d.ts.map +1 -1
  32. package/build/commands/plugin/nftables/block-ips.schema.js +1 -1
  33. package/build/commands/plugin/nftables/recreate-tables.schema.d.ts +2 -14
  34. package/build/commands/plugin/nftables/recreate-tables.schema.d.ts.map +1 -1
  35. package/build/commands/plugin/nftables/unblock-ips.schema.d.ts +4 -20
  36. package/build/commands/plugin/nftables/unblock-ips.schema.d.ts.map +1 -1
  37. package/build/commands/plugin/nftables/unblock-ips.schema.js +1 -1
  38. package/build/commands/plugin/sync.command.d.ts +5 -37
  39. package/build/commands/plugin/sync.command.d.ts.map +1 -1
  40. package/build/commands/plugin/sync.command.js +2 -2
  41. package/build/commands/plugin/torrent-blocker/collect-reports.schema.d.ts +7 -205
  42. package/build/commands/plugin/torrent-blocker/collect-reports.schema.d.ts.map +1 -1
  43. package/build/commands/stats/get-all-inbounds-stats.command.d.ts +4 -44
  44. package/build/commands/stats/get-all-inbounds-stats.command.d.ts.map +1 -1
  45. package/build/commands/stats/get-all-outbounds-stats.command.d.ts +4 -44
  46. package/build/commands/stats/get-all-outbounds-stats.command.d.ts.map +1 -1
  47. package/build/commands/stats/get-combined-stats.command.d.ts +5 -73
  48. package/build/commands/stats/get-combined-stats.command.d.ts.map +1 -1
  49. package/build/commands/stats/get-inbound-stats.command.d.ts +3 -29
  50. package/build/commands/stats/get-inbound-stats.command.d.ts.map +1 -1
  51. package/build/commands/stats/get-outbound-stats.command.d.ts +3 -29
  52. package/build/commands/stats/get-outbound-stats.command.d.ts.map +1 -1
  53. package/build/commands/stats/get-system-stats.command.d.ts +9 -243
  54. package/build/commands/stats/get-system-stats.command.d.ts.map +1 -1
  55. package/build/commands/stats/get-user-ip-list.command.d.ts +5 -39
  56. package/build/commands/stats/get-user-ip-list.command.d.ts.map +1 -1
  57. package/build/commands/stats/get-user-ip-list.command.js +2 -3
  58. package/build/commands/stats/get-user-online-status.command.d.ts +3 -19
  59. package/build/commands/stats/get-user-online-status.command.d.ts.map +1 -1
  60. package/build/commands/stats/get-users-ip-list.command.d.ts +5 -59
  61. package/build/commands/stats/get-users-ip-list.command.d.ts.map +1 -1
  62. package/build/commands/stats/get-users-ip-list.command.js +1 -2
  63. package/build/commands/stats/get-users-stats.command.d.ts +4 -44
  64. package/build/commands/stats/get-users-stats.command.d.ts.map +1 -1
  65. package/build/commands/xray/get-node-health-check.command.d.ts +2 -26
  66. package/build/commands/xray/get-node-health-check.command.d.ts.map +1 -1
  67. package/build/commands/xray/start.command.d.ts +14 -336
  68. package/build/commands/xray/start.command.d.ts.map +1 -1
  69. package/build/commands/xray/start.command.js +1 -1
  70. package/build/commands/xray/stop.command.d.ts +2 -14
  71. package/build/commands/xray/stop.command.d.ts.map +1 -1
  72. package/build/constants/xray/stats.d.ts +4 -27
  73. package/build/constants/xray/stats.d.ts.map +1 -1
  74. package/build/constants/xray/stats.js +3 -35
  75. package/build/models/node-system.schema.d.ts +14 -194
  76. package/build/models/node-system.schema.d.ts.map +1 -1
  77. package/build/models/node-system.schema.js +1 -1
  78. package/build/models/torrent-blocker.report.schema.d.ts +5 -95
  79. package/build/models/torrent-blocker.report.schema.d.ts.map +1 -1
  80. package/build/models/xray-webhook.schema.d.ts +1 -29
  81. package/build/models/xray-webhook.schema.d.ts.map +1 -1
  82. package/package.json +17 -17
  83. package/build/api/controllers/vision.d.ts +0 -6
  84. package/build/api/controllers/vision.d.ts.map +0 -1
  85. package/build/api/controllers/vision.js +0 -8
  86. package/build/commands/vision/block-ip.command.d.ts +0 -39
  87. package/build/commands/vision/block-ip.command.d.ts.map +0 -1
  88. package/build/commands/vision/block-ip.command.js +0 -19
  89. package/build/commands/vision/index.d.ts +0 -3
  90. package/build/commands/vision/index.d.ts.map +0 -1
  91. package/build/commands/vision/index.js +0 -18
  92. package/build/commands/vision/unblock-ip.command.d.ts +0 -39
  93. package/build/commands/vision/unblock-ip.command.d.ts.map +0 -1
  94. package/build/commands/vision/unblock-ip.command.js +0 -19
@@ -3,11 +3,7 @@ export declare namespace GetInboundUsersCommand {
3
3
  const url: "/node/handler/get-inbound-users";
4
4
  const RequestSchema: z.ZodObject<{
5
5
  tag: z.ZodString;
6
- }, "strip", z.ZodTypeAny, {
7
- tag: string;
8
- }, {
9
- tag: string;
10
- }>;
6
+ }, z.core.$strip>;
11
7
  type Request = z.infer<typeof RequestSchema>;
12
8
  const ResponseSchema: z.ZodObject<{
13
9
  response: z.ZodObject<{
@@ -15,45 +11,9 @@ export declare namespace GetInboundUsersCommand {
15
11
  username: z.ZodString;
16
12
  email: z.ZodOptional<z.ZodString>;
17
13
  level: z.ZodOptional<z.ZodNumber>;
18
- }, "strip", z.ZodTypeAny, {
19
- username: string;
20
- email?: string | undefined;
21
- level?: number | undefined;
22
- }, {
23
- username: string;
24
- email?: string | undefined;
25
- level?: number | undefined;
26
- }>, "many">;
27
- }, "strip", z.ZodTypeAny, {
28
- users: {
29
- username: string;
30
- email?: string | undefined;
31
- level?: number | undefined;
32
- }[];
33
- }, {
34
- users: {
35
- username: string;
36
- email?: string | undefined;
37
- level?: number | undefined;
38
- }[];
39
- }>;
40
- }, "strip", z.ZodTypeAny, {
41
- response: {
42
- users: {
43
- username: string;
44
- email?: string | undefined;
45
- level?: number | undefined;
46
- }[];
47
- };
48
- }, {
49
- response: {
50
- users: {
51
- username: string;
52
- email?: string | undefined;
53
- level?: number | undefined;
54
- }[];
55
- };
56
- }>;
14
+ }, z.core.$strip>>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
57
17
  type Response = z.infer<typeof ResponseSchema>;
58
18
  }
59
19
  //# sourceMappingURL=get-inbound-users.command.d.ts.map
@@ -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;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
+ {"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;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;qBAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,46 +4,16 @@ export declare namespace RemoveUserCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  username: z.ZodString;
6
6
  hashData: z.ZodObject<{
7
- vlessUuid: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- vlessUuid: string;
10
- }, {
11
- vlessUuid: string;
12
- }>;
13
- }, "strip", z.ZodTypeAny, {
14
- username: string;
15
- hashData: {
16
- vlessUuid: string;
17
- };
18
- }, {
19
- username: string;
20
- hashData: {
21
- vlessUuid: string;
22
- };
23
- }>;
7
+ vlessUuid: z.ZodUUID;
8
+ }, z.core.$strip>;
9
+ }, z.core.$strip>;
24
10
  type Request = z.infer<typeof RequestSchema>;
25
11
  const ResponseSchema: z.ZodObject<{
26
12
  response: z.ZodObject<{
27
13
  success: z.ZodBoolean;
28
14
  error: z.ZodNullable<z.ZodString>;
29
- }, "strip", z.ZodTypeAny, {
30
- success: boolean;
31
- error: string | null;
32
- }, {
33
- success: boolean;
34
- error: string | null;
35
- }>;
36
- }, "strip", z.ZodTypeAny, {
37
- response: {
38
- success: boolean;
39
- error: string | null;
40
- };
41
- }, {
42
- response: {
43
- success: boolean;
44
- error: string | null;
45
- };
46
- }>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
47
17
  type Response = z.infer<typeof ResponseSchema>;
48
18
  }
49
19
  //# sourceMappingURL=remove-user.command.d.ts.map
@@ -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;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,6BAA+B,CAAC;IAEzC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;MAKxB,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;;;;;qBAKxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;qBAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,7 +9,7 @@ var RemoveUserCommand;
9
9
  RemoveUserCommand.RequestSchema = zod_1.z.object({
10
10
  username: zod_1.z.string(),
11
11
  hashData: zod_1.z.object({
12
- vlessUuid: zod_1.z.string().uuid(),
12
+ vlessUuid: zod_1.z.uuid(),
13
13
  }),
14
14
  });
15
15
  RemoveUserCommand.ResponseSchema = zod_1.z.object({
@@ -4,48 +4,16 @@ export declare namespace RemoveUsersCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  users: z.ZodArray<z.ZodObject<{
6
6
  userId: z.ZodString;
7
- hashUuid: z.ZodString;
8
- }, "strip", z.ZodTypeAny, {
9
- userId: string;
10
- hashUuid: string;
11
- }, {
12
- userId: string;
13
- hashUuid: string;
14
- }>, "many">;
15
- }, "strip", z.ZodTypeAny, {
16
- users: {
17
- userId: string;
18
- hashUuid: string;
19
- }[];
20
- }, {
21
- users: {
22
- userId: string;
23
- hashUuid: string;
24
- }[];
25
- }>;
7
+ hashUuid: z.ZodUUID;
8
+ }, z.core.$strip>>;
9
+ }, z.core.$strip>;
26
10
  type Request = z.infer<typeof RequestSchema>;
27
11
  const ResponseSchema: z.ZodObject<{
28
12
  response: z.ZodObject<{
29
13
  success: z.ZodBoolean;
30
14
  error: z.ZodNullable<z.ZodString>;
31
- }, "strip", z.ZodTypeAny, {
32
- success: boolean;
33
- error: string | null;
34
- }, {
35
- success: boolean;
36
- error: string | null;
37
- }>;
38
- }, "strip", z.ZodTypeAny, {
39
- response: {
40
- success: boolean;
41
- error: string | null;
42
- };
43
- }, {
44
- response: {
45
- success: boolean;
46
- error: string | null;
47
- };
48
- }>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
49
17
  type Response = z.infer<typeof ResponseSchema>;
50
18
  }
51
19
  //# sourceMappingURL=remove-users.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"remove-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAgC,CAAC;IAE1C,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAOxB,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-users.command.d.ts","sourceRoot":"","sources":["../../../commands/handler/remove-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,8BAAgC,CAAC;IAE1C,MAAM,aAAa;;;;;qBAOxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;qBAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,7 +9,7 @@ var RemoveUsersCommand;
9
9
  RemoveUsersCommand.RequestSchema = zod_1.z.object({
10
10
  users: zod_1.z.array(zod_1.z.object({
11
11
  userId: zod_1.z.string(),
12
- hashUuid: zod_1.z.string().uuid(),
12
+ hashUuid: zod_1.z.uuid(),
13
13
  })),
14
14
  });
15
15
  RemoveUsersCommand.ResponseSchema = zod_1.z.object({
@@ -1,6 +1,5 @@
1
1
  export * from './handler';
2
2
  export * from './plugin';
3
3
  export * from './stats';
4
- export * from './vision';
5
4
  export * from './xray';
6
5
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,WAAW,CAAC;AAC1B,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC"}
@@ -17,5 +17,4 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  __exportStar(require("./handler"), exports);
18
18
  __exportStar(require("./plugin"), exports);
19
19
  __exportStar(require("./stats"), exports);
20
- __exportStar(require("./vision"), exports);
21
20
  __exportStar(require("./xray"), exports);
@@ -3,44 +3,16 @@ export declare namespace BlockIpsCommand {
3
3
  const url: "/node/plugin/nftables/block-ips";
4
4
  const RequestSchema: z.ZodObject<{
5
5
  ips: z.ZodArray<z.ZodObject<{
6
- ip: z.ZodString;
6
+ ip: z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>;
7
7
  timeout: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
- ip: string;
10
- timeout: number;
11
- }, {
12
- ip: string;
13
- timeout: number;
14
- }>, "many">;
15
- }, "strip", z.ZodTypeAny, {
16
- ips: {
17
- ip: string;
18
- timeout: number;
19
- }[];
20
- }, {
21
- ips: {
22
- ip: string;
23
- timeout: number;
24
- }[];
25
- }>;
8
+ }, z.core.$strip>>;
9
+ }, z.core.$strip>;
26
10
  type Request = z.infer<typeof RequestSchema>;
27
11
  const ResponseSchema: z.ZodObject<{
28
12
  response: z.ZodObject<{
29
13
  accepted: z.ZodBoolean;
30
- }, "strip", z.ZodTypeAny, {
31
- accepted: boolean;
32
- }, {
33
- accepted: boolean;
34
- }>;
35
- }, "strip", z.ZodTypeAny, {
36
- response: {
37
- accepted: boolean;
38
- };
39
- }, {
40
- response: {
41
- accepted: boolean;
42
- };
43
- }>;
14
+ }, z.core.$strip>;
15
+ }, z.core.$strip>;
44
16
  type Response = z.infer<typeof ResponseSchema>;
45
17
  }
46
18
  //# sourceMappingURL=block-ips.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"block-ips.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/block-ips.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,mCAAqC,CAAC;IAE/C,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;MAOxB,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":"block-ips.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/block-ips.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,mCAAqC,CAAC;IAE/C,MAAM,aAAa;;;;;qBAOxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -8,7 +8,7 @@ var BlockIpsCommand;
8
8
  BlockIpsCommand.url = api_1.REST_API.PLUGIN.NFTABLES.BLOCK_IPS;
9
9
  BlockIpsCommand.RequestSchema = zod_1.z.object({
10
10
  ips: zod_1.z.array(zod_1.z.object({
11
- ip: zod_1.z.string().ip(),
11
+ ip: zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()]),
12
12
  timeout: zod_1.z.number(),
13
13
  })),
14
14
  });
@@ -4,20 +4,8 @@ export declare namespace RecreateTablesCommand {
4
4
  const ResponseSchema: z.ZodObject<{
5
5
  response: z.ZodObject<{
6
6
  accepted: z.ZodBoolean;
7
- }, "strip", z.ZodTypeAny, {
8
- accepted: boolean;
9
- }, {
10
- accepted: boolean;
11
- }>;
12
- }, "strip", z.ZodTypeAny, {
13
- response: {
14
- accepted: boolean;
15
- };
16
- }, {
17
- response: {
18
- accepted: boolean;
19
- };
20
- }>;
7
+ }, z.core.$strip>;
8
+ }, z.core.$strip>;
21
9
  type Response = z.infer<typeof ResponseSchema>;
22
10
  }
23
11
  //# sourceMappingURL=recreate-tables.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"recreate-tables.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/recreate-tables.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,yCAA2C,CAAC;IAErD,MAAM,cAAc;;;;;;;;;;;;;;;;MAA8D,CAAC;IAC1F,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"recreate-tables.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/recreate-tables.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,yCAA2C,CAAC;IAErD,MAAM,cAAc;;;;qBAA8D,CAAC;IAC1F,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -2,30 +2,14 @@ import { z } from 'zod';
2
2
  export declare namespace UnblockIpsCommand {
3
3
  const url: "/node/plugin/nftables/unblock-ips";
4
4
  const RequestSchema: z.ZodObject<{
5
- ips: z.ZodArray<z.ZodString, "many">;
6
- }, "strip", z.ZodTypeAny, {
7
- ips: string[];
8
- }, {
9
- ips: string[];
10
- }>;
5
+ ips: z.ZodArray<z.ZodUnion<readonly [z.ZodIPv4, z.ZodIPv6]>>;
6
+ }, z.core.$strip>;
11
7
  type Request = z.infer<typeof RequestSchema>;
12
8
  const ResponseSchema: z.ZodObject<{
13
9
  response: z.ZodObject<{
14
10
  accepted: z.ZodBoolean;
15
- }, "strip", z.ZodTypeAny, {
16
- accepted: boolean;
17
- }, {
18
- accepted: boolean;
19
- }>;
20
- }, "strip", z.ZodTypeAny, {
21
- response: {
22
- accepted: boolean;
23
- };
24
- }, {
25
- response: {
26
- accepted: boolean;
27
- };
28
- }>;
11
+ }, z.core.$strip>;
12
+ }, z.core.$strip>;
29
13
  type Response = z.infer<typeof ResponseSchema>;
30
14
  }
31
15
  //# sourceMappingURL=unblock-ips.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"unblock-ips.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/unblock-ips.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qCAAuC,CAAC;IAEjD,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":"unblock-ips.schema.d.ts","sourceRoot":"","sources":["../../../../commands/plugin/nftables/unblock-ips.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qCAAuC,CAAC;IAEjD,MAAM,aAAa;;qBAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -7,7 +7,7 @@ var UnblockIpsCommand;
7
7
  (function (UnblockIpsCommand) {
8
8
  UnblockIpsCommand.url = api_1.REST_API.PLUGIN.NFTABLES.UNBLOCK_IPS;
9
9
  UnblockIpsCommand.RequestSchema = zod_1.z.object({
10
- ips: zod_1.z.array(zod_1.z.string().ip()),
10
+ ips: zod_1.z.array(zod_1.z.union([zod_1.z.ipv4(), zod_1.z.ipv6()])),
11
11
  });
12
12
  UnblockIpsCommand.ResponseSchema = zod_1.z.object({
13
13
  response: zod_1.z.object({
@@ -4,48 +4,16 @@ export declare namespace SyncCommand {
4
4
  const RequestSchema: z.ZodObject<{
5
5
  plugin: z.ZodNullable<z.ZodObject<{
6
6
  config: z.ZodRecord<z.ZodString, z.ZodUnknown>;
7
- uuid: z.ZodString;
7
+ uuid: z.ZodUUID;
8
8
  name: z.ZodString;
9
- }, "strip", z.ZodTypeAny, {
10
- uuid: string;
11
- config: Record<string, unknown>;
12
- name: string;
13
- }, {
14
- uuid: string;
15
- config: Record<string, unknown>;
16
- name: string;
17
- }>>;
18
- }, "strip", z.ZodTypeAny, {
19
- plugin: {
20
- uuid: string;
21
- config: Record<string, unknown>;
22
- name: string;
23
- } | null;
24
- }, {
25
- plugin: {
26
- uuid: string;
27
- config: Record<string, unknown>;
28
- name: string;
29
- } | null;
30
- }>;
9
+ }, z.core.$strip>>;
10
+ }, z.core.$strip>;
31
11
  type Request = z.infer<typeof RequestSchema>;
32
12
  const ResponseSchema: z.ZodObject<{
33
13
  response: z.ZodObject<{
34
14
  accepted: z.ZodBoolean;
35
- }, "strip", z.ZodTypeAny, {
36
- accepted: boolean;
37
- }, {
38
- accepted: boolean;
39
- }>;
40
- }, "strip", z.ZodTypeAny, {
41
- response: {
42
- accepted: boolean;
43
- };
44
- }, {
45
- response: {
46
- accepted: boolean;
47
- };
48
- }>;
15
+ }, z.core.$strip>;
16
+ }, z.core.$strip>;
49
17
  type Response = z.infer<typeof ResponseSchema>;
50
18
  }
51
19
  //# sourceMappingURL=sync.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"sync.command.d.ts","sourceRoot":"","sources":["../../../commands/plugin/sync.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,WAAW,CAAC;IAClB,MAAM,GAAG,qBAAuB,CAAC;IACjC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;MAQxB,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":"sync.command.d.ts","sourceRoot":"","sources":["../../../commands/plugin/sync.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,WAAW,CAAC;IAClB,MAAM,GAAG,qBAAuB,CAAC;IACjC,MAAM,aAAa;;;;;;qBAQxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;qBAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -9,8 +9,8 @@ var SyncCommand;
9
9
  SyncCommand.RequestSchema = zod_1.z.object({
10
10
  plugin: zod_1.z
11
11
  .object({
12
- config: zod_1.z.record(zod_1.z.unknown()),
13
- uuid: zod_1.z.string().uuid(),
12
+ config: zod_1.z.record(zod_1.z.string(), zod_1.z.unknown()),
13
+ uuid: zod_1.z.uuid(),
14
14
  name: zod_1.z.string(),
15
15
  })
16
16
  .nullable(),