@remnawave/node-contract 2.7.0 → 2.9.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (100) hide show
  1. package/build/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 +21 -336
  68. package/build/commands/xray/start.command.d.ts.map +1 -1
  69. package/build/commands/xray/start.command.js +3 -2
  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/index.d.ts +1 -0
  76. package/build/models/index.d.ts.map +1 -1
  77. package/build/models/index.js +1 -0
  78. package/build/models/node-metadata.schema.d.ts +10 -0
  79. package/build/models/node-metadata.schema.d.ts.map +1 -0
  80. package/build/models/node-metadata.schema.js +11 -0
  81. package/build/models/node-system.schema.d.ts +14 -194
  82. package/build/models/node-system.schema.d.ts.map +1 -1
  83. package/build/models/node-system.schema.js +1 -1
  84. package/build/models/torrent-blocker.report.schema.d.ts +5 -95
  85. package/build/models/torrent-blocker.report.schema.d.ts.map +1 -1
  86. package/build/models/xray-webhook.schema.d.ts +1 -29
  87. package/build/models/xray-webhook.schema.d.ts.map +1 -1
  88. package/package.json +17 -17
  89. package/build/api/controllers/vision.d.ts +0 -6
  90. package/build/api/controllers/vision.d.ts.map +0 -1
  91. package/build/api/controllers/vision.js +0 -8
  92. package/build/commands/vision/block-ip.command.d.ts +0 -39
  93. package/build/commands/vision/block-ip.command.d.ts.map +0 -1
  94. package/build/commands/vision/block-ip.command.js +0 -19
  95. package/build/commands/vision/index.d.ts +0 -3
  96. package/build/commands/vision/index.d.ts.map +0 -1
  97. package/build/commands/vision/index.js +0 -18
  98. package/build/commands/vision/unblock-ip.command.d.ts +0 -39
  99. package/build/commands/vision/unblock-ip.command.d.ts.map +0 -1
  100. package/build/commands/vision/unblock-ip.command.js +0 -19
@@ -5,22 +5,10 @@ export declare const NetworkInterfaceSchema: z.ZodObject<{
5
5
  txBytesPerSec: z.ZodNumber;
6
6
  rxTotal: z.ZodNumber;
7
7
  txTotal: z.ZodNumber;
8
- }, "strip", z.ZodTypeAny, {
9
- interface: string;
10
- rxBytesPerSec: number;
11
- txBytesPerSec: number;
12
- rxTotal: number;
13
- txTotal: number;
14
- }, {
15
- interface: string;
16
- rxBytesPerSec: number;
17
- txBytesPerSec: number;
18
- rxTotal: number;
19
- txTotal: number;
20
- }>;
8
+ }, z.core.$strip>;
21
9
  export declare const NodeSystemInfoSchema: z.ZodObject<{
22
10
  arch: z.ZodString;
23
- cpus: z.ZodNumber;
11
+ cpus: z.ZodInt;
24
12
  cpuModel: z.ZodString;
25
13
  memoryTotal: z.ZodNumber;
26
14
  hostname: z.ZodString;
@@ -28,84 +16,26 @@ export declare const NodeSystemInfoSchema: z.ZodObject<{
28
16
  release: z.ZodString;
29
17
  type: z.ZodString;
30
18
  version: z.ZodString;
31
- networkInterfaces: z.ZodArray<z.ZodString, "many">;
32
- }, "strip", z.ZodTypeAny, {
33
- type: string;
34
- arch: string;
35
- cpus: number;
36
- cpuModel: string;
37
- memoryTotal: number;
38
- hostname: string;
39
- platform: string;
40
- release: string;
41
- version: string;
42
- networkInterfaces: string[];
43
- }, {
44
- type: string;
45
- arch: string;
46
- cpus: number;
47
- cpuModel: string;
48
- memoryTotal: number;
49
- hostname: string;
50
- platform: string;
51
- release: string;
52
- version: string;
53
- networkInterfaces: string[];
54
- }>;
19
+ networkInterfaces: z.ZodArray<z.ZodString>;
20
+ }, z.core.$strip>;
55
21
  export declare const NodeSystemStatsSchema: z.ZodObject<{
56
22
  memoryFree: z.ZodNumber;
57
23
  memoryUsed: z.ZodNumber;
58
24
  uptime: z.ZodNumber;
59
- loadAvg: z.ZodArray<z.ZodNumber, "many">;
25
+ loadAvg: z.ZodArray<z.ZodNumber>;
60
26
  interface: z.ZodNullable<z.ZodObject<{
61
27
  interface: z.ZodString;
62
28
  rxBytesPerSec: z.ZodNumber;
63
29
  txBytesPerSec: z.ZodNumber;
64
30
  rxTotal: z.ZodNumber;
65
31
  txTotal: z.ZodNumber;
66
- }, "strip", z.ZodTypeAny, {
67
- interface: string;
68
- rxBytesPerSec: number;
69
- txBytesPerSec: number;
70
- rxTotal: number;
71
- txTotal: number;
72
- }, {
73
- interface: string;
74
- rxBytesPerSec: number;
75
- txBytesPerSec: number;
76
- rxTotal: number;
77
- txTotal: number;
78
- }>>;
79
- }, "strip", z.ZodTypeAny, {
80
- interface: {
81
- interface: string;
82
- rxBytesPerSec: number;
83
- txBytesPerSec: number;
84
- rxTotal: number;
85
- txTotal: number;
86
- } | null;
87
- memoryFree: number;
88
- memoryUsed: number;
89
- uptime: number;
90
- loadAvg: number[];
91
- }, {
92
- interface: {
93
- interface: string;
94
- rxBytesPerSec: number;
95
- txBytesPerSec: number;
96
- rxTotal: number;
97
- txTotal: number;
98
- } | null;
99
- memoryFree: number;
100
- memoryUsed: number;
101
- uptime: number;
102
- loadAvg: number[];
103
- }>;
32
+ }, z.core.$strip>>;
33
+ }, z.core.$strip>;
104
34
  export type TNodeSystemStats = z.infer<typeof NodeSystemStatsSchema>;
105
35
  export declare const NodeSystemSchema: z.ZodObject<{
106
36
  info: z.ZodObject<{
107
37
  arch: z.ZodString;
108
- cpus: z.ZodNumber;
38
+ cpus: z.ZodInt;
109
39
  cpuModel: z.ZodString;
110
40
  memoryTotal: z.ZodNumber;
111
41
  hostname: z.ZodString;
@@ -113,132 +43,22 @@ export declare const NodeSystemSchema: z.ZodObject<{
113
43
  release: z.ZodString;
114
44
  type: z.ZodString;
115
45
  version: z.ZodString;
116
- networkInterfaces: z.ZodArray<z.ZodString, "many">;
117
- }, "strip", z.ZodTypeAny, {
118
- type: string;
119
- arch: string;
120
- cpus: number;
121
- cpuModel: string;
122
- memoryTotal: number;
123
- hostname: string;
124
- platform: string;
125
- release: string;
126
- version: string;
127
- networkInterfaces: string[];
128
- }, {
129
- type: string;
130
- arch: string;
131
- cpus: number;
132
- cpuModel: string;
133
- memoryTotal: number;
134
- hostname: string;
135
- platform: string;
136
- release: string;
137
- version: string;
138
- networkInterfaces: string[];
139
- }>;
46
+ networkInterfaces: z.ZodArray<z.ZodString>;
47
+ }, z.core.$strip>;
140
48
  stats: z.ZodObject<{
141
49
  memoryFree: z.ZodNumber;
142
50
  memoryUsed: z.ZodNumber;
143
51
  uptime: z.ZodNumber;
144
- loadAvg: z.ZodArray<z.ZodNumber, "many">;
52
+ loadAvg: z.ZodArray<z.ZodNumber>;
145
53
  interface: z.ZodNullable<z.ZodObject<{
146
54
  interface: z.ZodString;
147
55
  rxBytesPerSec: z.ZodNumber;
148
56
  txBytesPerSec: z.ZodNumber;
149
57
  rxTotal: z.ZodNumber;
150
58
  txTotal: z.ZodNumber;
151
- }, "strip", z.ZodTypeAny, {
152
- interface: string;
153
- rxBytesPerSec: number;
154
- txBytesPerSec: number;
155
- rxTotal: number;
156
- txTotal: number;
157
- }, {
158
- interface: string;
159
- rxBytesPerSec: number;
160
- txBytesPerSec: number;
161
- rxTotal: number;
162
- txTotal: number;
163
- }>>;
164
- }, "strip", z.ZodTypeAny, {
165
- interface: {
166
- interface: string;
167
- rxBytesPerSec: number;
168
- txBytesPerSec: number;
169
- rxTotal: number;
170
- txTotal: number;
171
- } | null;
172
- memoryFree: number;
173
- memoryUsed: number;
174
- uptime: number;
175
- loadAvg: number[];
176
- }, {
177
- interface: {
178
- interface: string;
179
- rxBytesPerSec: number;
180
- txBytesPerSec: number;
181
- rxTotal: number;
182
- txTotal: number;
183
- } | null;
184
- memoryFree: number;
185
- memoryUsed: number;
186
- uptime: number;
187
- loadAvg: number[];
188
- }>;
189
- }, "strip", z.ZodTypeAny, {
190
- stats: {
191
- interface: {
192
- interface: string;
193
- rxBytesPerSec: number;
194
- txBytesPerSec: number;
195
- rxTotal: number;
196
- txTotal: number;
197
- } | null;
198
- memoryFree: number;
199
- memoryUsed: number;
200
- uptime: number;
201
- loadAvg: number[];
202
- };
203
- info: {
204
- type: string;
205
- arch: string;
206
- cpus: number;
207
- cpuModel: string;
208
- memoryTotal: number;
209
- hostname: string;
210
- platform: string;
211
- release: string;
212
- version: string;
213
- networkInterfaces: string[];
214
- };
215
- }, {
216
- stats: {
217
- interface: {
218
- interface: string;
219
- rxBytesPerSec: number;
220
- txBytesPerSec: number;
221
- rxTotal: number;
222
- txTotal: number;
223
- } | null;
224
- memoryFree: number;
225
- memoryUsed: number;
226
- uptime: number;
227
- loadAvg: number[];
228
- };
229
- info: {
230
- type: string;
231
- arch: string;
232
- cpus: number;
233
- cpuModel: string;
234
- memoryTotal: number;
235
- hostname: string;
236
- platform: string;
237
- release: string;
238
- version: string;
239
- networkInterfaces: string[];
240
- };
241
- }>;
59
+ }, z.core.$strip>>;
60
+ }, z.core.$strip>;
61
+ }, z.core.$strip>;
242
62
  export type TNetworkInterface = z.infer<typeof NetworkInterfaceSchema>;
243
63
  export type TNodeSystemInfo = z.infer<typeof NodeSystemInfoSchema>;
244
64
  export type TNodeSystem = z.infer<typeof NodeSystemSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"node-system.schema.d.ts","sourceRoot":"","sources":["../../models/node-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;EAMjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAMhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
1
+ {"version":3,"file":"node-system.schema.d.ts","sourceRoot":"","sources":["../../models/node-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;iBAMjC,CAAC;AAEH,eAAO,MAAM,oBAAoB;;;;;;;;;;;iBAW/B,CAAC;AAEH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;iBAMhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;iBAG3B,CAAC;AAEH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AACvE,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AACnE,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
@@ -11,7 +11,7 @@ exports.NetworkInterfaceSchema = zod_1.z.object({
11
11
  });
12
12
  exports.NodeSystemInfoSchema = zod_1.z.object({
13
13
  arch: zod_1.z.string(),
14
- cpus: zod_1.z.number().int(),
14
+ cpus: zod_1.z.int(),
15
15
  cpuModel: zod_1.z.string(),
16
16
  memoryTotal: zod_1.z.number(),
17
17
  hostname: zod_1.z.string(),
@@ -4,24 +4,10 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
4
4
  blocked: z.ZodBoolean;
5
5
  ip: z.ZodString;
6
6
  blockDuration: z.ZodNumber;
7
- willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
7
+ willUnblockAt: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
8
8
  userId: z.ZodString;
9
- processedAt: z.ZodEffects<z.ZodString, Date, string>;
10
- }, "strip", z.ZodTypeAny, {
11
- userId: string;
12
- ip: string;
13
- blocked: boolean;
14
- blockDuration: number;
15
- willUnblockAt: Date;
16
- processedAt: Date;
17
- }, {
18
- userId: string;
19
- ip: string;
20
- blocked: boolean;
21
- blockDuration: number;
22
- willUnblockAt: string;
23
- processedAt: string;
24
- }>;
9
+ processedAt: z.ZodPipe<z.ZodString, z.ZodTransform<Date, string>>;
10
+ }, z.core.$strip>;
25
11
  xrayReport: z.ZodObject<{
26
12
  email: z.ZodNullable<z.ZodString>;
27
13
  level: z.ZodNullable<z.ZodNumber>;
@@ -36,83 +22,7 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
36
22
  inboundLocal: z.ZodNullable<z.ZodString>;
37
23
  outboundTag: z.ZodNullable<z.ZodString>;
38
24
  ts: z.ZodNumber;
39
- }, "strip", z.ZodTypeAny, {
40
- email: string | null;
41
- level: number | null;
42
- protocol: string | null;
43
- network: string;
44
- source: string | null;
45
- destination: string;
46
- routeTarget: string | null;
47
- originalTarget: string | null;
48
- inboundTag: string | null;
49
- inboundName: string | null;
50
- inboundLocal: string | null;
51
- outboundTag: string | null;
52
- ts: number;
53
- }, {
54
- email: string | null;
55
- level: number | null;
56
- protocol: string | null;
57
- network: string;
58
- source: string | null;
59
- destination: string;
60
- routeTarget: string | null;
61
- originalTarget: string | null;
62
- inboundTag: string | null;
63
- inboundName: string | null;
64
- inboundLocal: string | null;
65
- outboundTag: string | null;
66
- ts: number;
67
- }>;
68
- }, "strip", z.ZodTypeAny, {
69
- actionReport: {
70
- userId: string;
71
- ip: string;
72
- blocked: boolean;
73
- blockDuration: number;
74
- willUnblockAt: Date;
75
- processedAt: Date;
76
- };
77
- xrayReport: {
78
- email: string | null;
79
- level: number | null;
80
- protocol: string | null;
81
- network: string;
82
- source: string | null;
83
- destination: string;
84
- routeTarget: string | null;
85
- originalTarget: string | null;
86
- inboundTag: string | null;
87
- inboundName: string | null;
88
- inboundLocal: string | null;
89
- outboundTag: string | null;
90
- ts: number;
91
- };
92
- }, {
93
- actionReport: {
94
- userId: string;
95
- ip: string;
96
- blocked: boolean;
97
- blockDuration: number;
98
- willUnblockAt: string;
99
- processedAt: string;
100
- };
101
- xrayReport: {
102
- email: string | null;
103
- level: number | null;
104
- protocol: string | null;
105
- network: string;
106
- source: string | null;
107
- destination: string;
108
- routeTarget: string | null;
109
- originalTarget: string | null;
110
- inboundTag: string | null;
111
- inboundName: string | null;
112
- inboundLocal: string | null;
113
- outboundTag: string | null;
114
- ts: number;
115
- };
116
- }>;
25
+ }, z.core.$strip>;
26
+ }, z.core.$strip>;
117
27
  export type TorrentBlockerReportModel = z.infer<typeof TorrentBlockerReportSchema>;
118
28
  //# sourceMappingURL=torrent-blocker.report.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"torrent-blocker.report.schema.d.ts","sourceRoot":"","sources":["../../models/torrent-blocker.report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBrC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
1
+ {"version":3,"file":"torrent-blocker.report.schema.d.ts","sourceRoot":"","sources":["../../models/torrent-blocker.report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAIpB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;iBAgBrC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -13,34 +13,6 @@ export declare const XrayWebhookSchema: z.ZodObject<{
13
13
  inboundLocal: z.ZodNullable<z.ZodString>;
14
14
  outboundTag: z.ZodNullable<z.ZodString>;
15
15
  ts: z.ZodNumber;
16
- }, "strip", z.ZodTypeAny, {
17
- email: string | null;
18
- level: number | null;
19
- protocol: string | null;
20
- network: string;
21
- source: string | null;
22
- destination: string;
23
- routeTarget: string | null;
24
- originalTarget: string | null;
25
- inboundTag: string | null;
26
- inboundName: string | null;
27
- inboundLocal: string | null;
28
- outboundTag: string | null;
29
- ts: number;
30
- }, {
31
- email: string | null;
32
- level: number | null;
33
- protocol: string | null;
34
- network: string;
35
- source: string | null;
36
- destination: string;
37
- routeTarget: string | null;
38
- originalTarget: string | null;
39
- inboundTag: string | null;
40
- inboundName: string | null;
41
- inboundLocal: string | null;
42
- outboundTag: string | null;
43
- ts: number;
44
- }>;
16
+ }, z.core.$strip>;
45
17
  export type XrayWebhookModel = z.infer<typeof XrayWebhookSchema>;
46
18
  //# sourceMappingURL=xray-webhook.schema.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"xray-webhook.schema.d.ts","sourceRoot":"","sources":["../../models/xray-webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAc5B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"xray-webhook.schema.d.ts","sourceRoot":"","sources":["../../models/xray-webhook.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;iBAc5B,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
package/package.json CHANGED
@@ -1,31 +1,31 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.7.0",
3
+ "version": "2.9.1",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
- "main": "build/index.js",
6
- "types": "build/index.d.ts",
7
- "files": [
8
- "build/**/*"
9
- ],
10
- "scripts": {
11
- "prepublish": "rm -rf build && tsc",
12
- "build": "tsc"
13
- },
14
5
  "keywords": [],
15
- "author": "Remnawave",
16
6
  "homepage": "https://github.com/remnawave",
7
+ "bugs": {
8
+ "url": "https://github.com/remnawave/node/issues"
9
+ },
10
+ "license": "AGPL-3.0-only",
11
+ "author": "Remnawave",
17
12
  "repository": {
18
13
  "type": "git",
19
14
  "url": "https://github.com/remnawave/node"
20
15
  },
21
- "bugs": {
22
- "url": "https://github.com/remnawave/node/issues"
16
+ "files": [
17
+ "build/**/*"
18
+ ],
19
+ "main": "build/index.js",
20
+ "types": "build/index.d.ts",
21
+ "scripts": {
22
+ "prepublish": "rm -rf build && tsc",
23
+ "build": "tsc"
23
24
  },
24
- "license": "AGPL-3.0-only",
25
25
  "dependencies": {
26
- "zod": "^3.25.76"
26
+ "zod": "4.4.3"
27
27
  },
28
28
  "devDependencies": {
29
- "typescript": "5.9.3"
29
+ "typescript": "~5.9.3"
30
30
  }
31
- }
31
+ }
@@ -1,6 +0,0 @@
1
- export declare const VISION_CONTROLLER: "vision";
2
- export declare const VISION_ROUTES: {
3
- readonly BLOCK_IP: "block-ip";
4
- readonly UNBLOCK_IP: "unblock-ip";
5
- };
6
- //# sourceMappingURL=vision.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"vision.d.ts","sourceRoot":"","sources":["../../../api/controllers/vision.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,iBAAiB,EAAG,QAAiB,CAAC;AAEnD,eAAO,MAAM,aAAa;;;CAGhB,CAAC"}
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VISION_ROUTES = exports.VISION_CONTROLLER = void 0;
4
- exports.VISION_CONTROLLER = 'vision';
5
- exports.VISION_ROUTES = {
6
- BLOCK_IP: 'block-ip',
7
- UNBLOCK_IP: 'unblock-ip',
8
- };
@@ -1,39 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace BlockIpCommand {
3
- const url: "vision/block-ip";
4
- const RequestSchema: z.ZodObject<{
5
- ip: z.ZodString;
6
- username: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- username: string;
9
- ip: string;
10
- }, {
11
- username: string;
12
- ip: string;
13
- }>;
14
- type Request = z.infer<typeof RequestSchema>;
15
- const ResponseSchema: z.ZodObject<{
16
- response: z.ZodObject<{
17
- success: z.ZodBoolean;
18
- error: z.ZodNullable<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- success: boolean;
21
- error: string | null;
22
- }, {
23
- success: boolean;
24
- error: string | null;
25
- }>;
26
- }, "strip", z.ZodTypeAny, {
27
- response: {
28
- success: boolean;
29
- error: string | null;
30
- };
31
- }, {
32
- response: {
33
- success: boolean;
34
- error: string | null;
35
- };
36
- }>;
37
- type Response = z.infer<typeof ResponseSchema>;
38
- }
39
- //# sourceMappingURL=block-ip.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"block-ip.command.d.ts","sourceRoot":"","sources":["../../../commands/vision/block-ip.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,mBAA2B,CAAC;IAErC,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,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.BlockIpCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- var BlockIpCommand;
7
- (function (BlockIpCommand) {
8
- BlockIpCommand.url = api_1.REST_API.VISION.BLOCK_IP;
9
- BlockIpCommand.RequestSchema = zod_1.z.object({
10
- ip: zod_1.z.string(),
11
- username: zod_1.z.string(),
12
- });
13
- BlockIpCommand.ResponseSchema = zod_1.z.object({
14
- response: zod_1.z.object({
15
- success: zod_1.z.boolean(),
16
- error: zod_1.z.string().nullable(),
17
- }),
18
- });
19
- })(BlockIpCommand || (exports.BlockIpCommand = BlockIpCommand = {}));
@@ -1,3 +0,0 @@
1
- export * from './block-ip.command';
2
- export * from './unblock-ip.command';
3
- //# sourceMappingURL=index.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/vision/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC"}
@@ -1,18 +0,0 @@
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("./block-ip.command"), exports);
18
- __exportStar(require("./unblock-ip.command"), exports);
@@ -1,39 +0,0 @@
1
- import { z } from 'zod';
2
- export declare namespace UnblockIpCommand {
3
- const url: "vision/unblock-ip";
4
- const RequestSchema: z.ZodObject<{
5
- ip: z.ZodString;
6
- username: z.ZodString;
7
- }, "strip", z.ZodTypeAny, {
8
- username: string;
9
- ip: string;
10
- }, {
11
- username: string;
12
- ip: string;
13
- }>;
14
- type Request = z.infer<typeof RequestSchema>;
15
- const ResponseSchema: z.ZodObject<{
16
- response: z.ZodObject<{
17
- success: z.ZodBoolean;
18
- error: z.ZodNullable<z.ZodString>;
19
- }, "strip", z.ZodTypeAny, {
20
- success: boolean;
21
- error: string | null;
22
- }, {
23
- success: boolean;
24
- error: string | null;
25
- }>;
26
- }, "strip", z.ZodTypeAny, {
27
- response: {
28
- success: boolean;
29
- error: string | null;
30
- };
31
- }, {
32
- response: {
33
- success: boolean;
34
- error: string | null;
35
- };
36
- }>;
37
- type Response = z.infer<typeof ResponseSchema>;
38
- }
39
- //# sourceMappingURL=unblock-ip.command.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"unblock-ip.command.d.ts","sourceRoot":"","sources":["../../../commands/vision/unblock-ip.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,qBAA6B,CAAC;IAEvC,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,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.UnblockIpCommand = void 0;
4
- const zod_1 = require("zod");
5
- const api_1 = require("../../api");
6
- var UnblockIpCommand;
7
- (function (UnblockIpCommand) {
8
- UnblockIpCommand.url = api_1.REST_API.VISION.UNBLOCK_IP;
9
- UnblockIpCommand.RequestSchema = zod_1.z.object({
10
- ip: zod_1.z.string(),
11
- username: zod_1.z.string(),
12
- });
13
- UnblockIpCommand.ResponseSchema = zod_1.z.object({
14
- response: zod_1.z.object({
15
- success: zod_1.z.boolean(),
16
- error: zod_1.z.string().nullable(),
17
- }),
18
- });
19
- })(UnblockIpCommand || (exports.UnblockIpCommand = UnblockIpCommand = {}));