@remnawave/backend-contract 2.6.32 → 2.6.34

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 (54) hide show
  1. package/build/backend/api/controllers/node-plugins.d.ts +5 -0
  2. package/build/backend/api/controllers/node-plugins.d.ts.map +1 -1
  3. package/build/backend/api/controllers/node-plugins.js +6 -0
  4. package/build/backend/api/controllers/subscription.d.ts +0 -1
  5. package/build/backend/api/controllers/subscription.d.ts.map +1 -1
  6. package/build/backend/api/controllers/subscription.js +0 -1
  7. package/build/backend/api/routes.d.ts +5 -1
  8. package/build/backend/api/routes.d.ts.map +1 -1
  9. package/build/backend/api/routes.js +5 -1
  10. package/build/backend/commands/node-plugins/index.d.ts +1 -0
  11. package/build/backend/commands/node-plugins/index.d.ts.map +1 -1
  12. package/build/backend/commands/node-plugins/index.js +1 -0
  13. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts +60 -0
  14. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.d.ts.map +1 -0
  15. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +22 -0
  16. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +626 -0
  17. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -0
  18. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +20 -0
  19. package/build/backend/commands/node-plugins/torrent-blocker/index.d.ts +3 -0
  20. package/build/backend/commands/node-plugins/torrent-blocker/index.d.ts.map +1 -0
  21. package/build/backend/commands/node-plugins/torrent-blocker/index.js +18 -0
  22. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +573 -0
  23. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -0
  24. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +19 -0
  25. package/build/backend/commands/subscription/index.d.ts +0 -1
  26. package/build/backend/commands/subscription/index.d.ts.map +1 -1
  27. package/build/backend/commands/subscription/index.js +0 -1
  28. package/build/backend/constants/errors/errors.d.ts +5 -0
  29. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  30. package/build/backend/constants/errors/errors.js +5 -0
  31. package/build/backend/models/index.d.ts +1 -0
  32. package/build/backend/models/index.d.ts.map +1 -1
  33. package/build/backend/models/index.js +1 -0
  34. package/build/backend/models/torrent-blocker-report.schema.d.ts +390 -0
  35. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -0
  36. package/build/backend/models/torrent-blocker-report.schema.js +55 -0
  37. package/build/backend/models/webhook/webhook.schema.d.ts +16 -16
  38. package/build/frontend/api/controllers/node-plugins.js +6 -0
  39. package/build/frontend/api/controllers/subscription.js +0 -1
  40. package/build/frontend/api/routes.js +5 -1
  41. package/build/frontend/commands/node-plugins/index.js +1 -0
  42. package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.js +22 -0
  43. package/build/frontend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.js +20 -0
  44. package/build/frontend/commands/node-plugins/torrent-blocker/index.js +18 -0
  45. package/build/frontend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.js +19 -0
  46. package/build/frontend/commands/subscription/index.js +0 -1
  47. package/build/frontend/constants/errors/errors.js +5 -0
  48. package/build/frontend/models/index.js +1 -0
  49. package/build/frontend/models/torrent-blocker-report.schema.js +55 -0
  50. package/package.json +1 -1
  51. package/build/backend/commands/subscription/get-outline-subscription-by-short-uuid.command.d.ts +0 -20
  52. package/build/backend/commands/subscription/get-outline-subscription-by-short-uuid.command.d.ts.map +0 -1
  53. package/build/backend/commands/subscription/get-outline-subscription-by-short-uuid.command.js +0 -15
  54. package/build/frontend/commands/subscription/get-outline-subscription-by-short-uuid.command.js +0 -15
@@ -0,0 +1,626 @@
1
+ import { z } from 'zod';
2
+ export declare namespace GetTorrentBlockerReportsCommand {
3
+ const url: "/api/node-plugins/torrent-blocker";
4
+ const TSQ_url: "/api/node-plugins/torrent-blocker";
5
+ const endpointDetails: import("../../../constants").EndpointDetails;
6
+ const RequestQuerySchema: z.ZodObject<{
7
+ start: z.ZodDefault<z.ZodNumber>;
8
+ size: z.ZodDefault<z.ZodNumber>;
9
+ filters: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
10
+ id: z.ZodString;
11
+ value: z.ZodUnknown;
12
+ }, "strip", z.ZodTypeAny, {
13
+ id: string;
14
+ value?: unknown;
15
+ }, {
16
+ id: string;
17
+ value?: unknown;
18
+ }>, "many">, {
19
+ id: string;
20
+ value?: unknown;
21
+ }[], unknown>>;
22
+ filterModes: z.ZodOptional<z.ZodEffects<z.ZodRecord<z.ZodString, z.ZodString>, Record<string, string>, unknown>>;
23
+ globalFilterMode: z.ZodOptional<z.ZodString>;
24
+ sorting: z.ZodOptional<z.ZodEffects<z.ZodArray<z.ZodObject<{
25
+ id: z.ZodString;
26
+ desc: z.ZodBoolean;
27
+ }, "strip", z.ZodTypeAny, {
28
+ id: string;
29
+ desc: boolean;
30
+ }, {
31
+ id: string;
32
+ desc: boolean;
33
+ }>, "many">, {
34
+ id: string;
35
+ desc: boolean;
36
+ }[], unknown>>;
37
+ }, "strip", z.ZodTypeAny, {
38
+ start: number;
39
+ size: number;
40
+ filters?: {
41
+ id: string;
42
+ value?: unknown;
43
+ }[] | undefined;
44
+ filterModes?: Record<string, string> | undefined;
45
+ globalFilterMode?: string | undefined;
46
+ sorting?: {
47
+ id: string;
48
+ desc: boolean;
49
+ }[] | undefined;
50
+ }, {
51
+ start?: number | undefined;
52
+ size?: number | undefined;
53
+ filters?: unknown;
54
+ filterModes?: unknown;
55
+ globalFilterMode?: string | undefined;
56
+ sorting?: unknown;
57
+ }>;
58
+ type RequestQuery = z.infer<typeof RequestQuerySchema>;
59
+ const ResponseSchema: z.ZodObject<{
60
+ response: z.ZodObject<{
61
+ records: z.ZodArray<z.ZodObject<{
62
+ id: z.ZodNumber;
63
+ userId: z.ZodNumber;
64
+ nodeId: z.ZodNumber;
65
+ user: z.ZodObject<Pick<{
66
+ uuid: z.ZodString;
67
+ id: z.ZodNumber;
68
+ shortUuid: z.ZodString;
69
+ username: z.ZodString;
70
+ status: z.ZodDefault<z.ZodNativeEnum<{
71
+ readonly ACTIVE: "ACTIVE";
72
+ readonly DISABLED: "DISABLED";
73
+ readonly LIMITED: "LIMITED";
74
+ readonly EXPIRED: "EXPIRED";
75
+ }>>;
76
+ trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
77
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
78
+ readonly NO_RESET: "NO_RESET";
79
+ readonly DAY: "DAY";
80
+ readonly WEEK: "WEEK";
81
+ readonly MONTH: "MONTH";
82
+ }>>;
83
+ expireAt: z.ZodEffects<z.ZodString, Date, string>;
84
+ telegramId: z.ZodNullable<z.ZodNumber>;
85
+ email: z.ZodNullable<z.ZodString>;
86
+ description: z.ZodNullable<z.ZodString>;
87
+ tag: z.ZodNullable<z.ZodString>;
88
+ hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
89
+ externalSquadUuid: z.ZodNullable<z.ZodString>;
90
+ trojanPassword: z.ZodString;
91
+ vlessUuid: z.ZodString;
92
+ ssPassword: z.ZodString;
93
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
94
+ subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
95
+ subLastUserAgent: z.ZodNullable<z.ZodString>;
96
+ subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
97
+ lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
98
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
99
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
100
+ } & {
101
+ subscriptionUrl: z.ZodString;
102
+ activeInternalSquads: z.ZodArray<z.ZodObject<{
103
+ uuid: z.ZodString;
104
+ name: z.ZodString;
105
+ }, "strip", z.ZodTypeAny, {
106
+ uuid: string;
107
+ name: string;
108
+ }, {
109
+ uuid: string;
110
+ name: string;
111
+ }>, "many">;
112
+ userTraffic: z.ZodObject<{
113
+ usedTrafficBytes: z.ZodNumber;
114
+ lifetimeUsedTrafficBytes: z.ZodNumber;
115
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
116
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
117
+ lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
118
+ }, "strip", z.ZodTypeAny, {
119
+ usedTrafficBytes: number;
120
+ lifetimeUsedTrafficBytes: number;
121
+ onlineAt: Date | null;
122
+ firstConnectedAt: Date | null;
123
+ lastConnectedNodeUuid: string | null;
124
+ }, {
125
+ usedTrafficBytes: number;
126
+ lifetimeUsedTrafficBytes: number;
127
+ onlineAt: string | null;
128
+ firstConnectedAt: string | null;
129
+ lastConnectedNodeUuid: string | null;
130
+ }>;
131
+ }, "uuid" | "username">, "strip", z.ZodTypeAny, {
132
+ uuid: string;
133
+ username: string;
134
+ }, {
135
+ uuid: string;
136
+ username: string;
137
+ }>;
138
+ node: z.ZodObject<Pick<{
139
+ uuid: z.ZodString;
140
+ name: z.ZodString;
141
+ address: z.ZodString;
142
+ port: z.ZodNullable<z.ZodNumber>;
143
+ isConnected: z.ZodBoolean;
144
+ isDisabled: z.ZodBoolean;
145
+ isConnecting: z.ZodBoolean;
146
+ lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
147
+ lastStatusMessage: z.ZodNullable<z.ZodString>;
148
+ xrayVersion: z.ZodNullable<z.ZodString>;
149
+ nodeVersion: z.ZodNullable<z.ZodString>;
150
+ xrayUptime: z.ZodString;
151
+ isTrafficTrackingActive: z.ZodBoolean;
152
+ trafficResetDay: z.ZodNullable<z.ZodNumber>;
153
+ trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
154
+ trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
155
+ notifyPercent: z.ZodNullable<z.ZodNumber>;
156
+ usersOnline: z.ZodNullable<z.ZodNumber>;
157
+ viewPosition: z.ZodNumber;
158
+ countryCode: z.ZodString;
159
+ consumptionMultiplier: z.ZodNumber;
160
+ tags: z.ZodArray<z.ZodString, "many">;
161
+ cpuCount: z.ZodNullable<z.ZodNumber>;
162
+ cpuModel: z.ZodNullable<z.ZodString>;
163
+ totalRam: z.ZodNullable<z.ZodString>;
164
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
165
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
166
+ configProfile: z.ZodObject<{
167
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
168
+ activeInbounds: z.ZodArray<z.ZodObject<{
169
+ uuid: z.ZodString;
170
+ profileUuid: z.ZodString;
171
+ tag: z.ZodString;
172
+ type: z.ZodString;
173
+ network: z.ZodNullable<z.ZodString>;
174
+ security: z.ZodNullable<z.ZodString>;
175
+ port: z.ZodNullable<z.ZodNumber>;
176
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
177
+ }, "strip", z.ZodTypeAny, {
178
+ type: string;
179
+ uuid: string;
180
+ profileUuid: string;
181
+ tag: string;
182
+ network: string | null;
183
+ security: string | null;
184
+ port: number | null;
185
+ rawInbound?: unknown;
186
+ }, {
187
+ type: string;
188
+ uuid: string;
189
+ profileUuid: string;
190
+ tag: string;
191
+ network: string | null;
192
+ security: string | null;
193
+ port: number | null;
194
+ rawInbound?: unknown;
195
+ }>, "many">;
196
+ }, "strip", z.ZodTypeAny, {
197
+ activeConfigProfileUuid: string | null;
198
+ activeInbounds: {
199
+ type: string;
200
+ uuid: string;
201
+ profileUuid: string;
202
+ tag: string;
203
+ network: string | null;
204
+ security: string | null;
205
+ port: number | null;
206
+ rawInbound?: unknown;
207
+ }[];
208
+ }, {
209
+ activeConfigProfileUuid: string | null;
210
+ activeInbounds: {
211
+ type: string;
212
+ uuid: string;
213
+ profileUuid: string;
214
+ tag: string;
215
+ network: string | null;
216
+ security: string | null;
217
+ port: number | null;
218
+ rawInbound?: unknown;
219
+ }[];
220
+ }>;
221
+ providerUuid: z.ZodNullable<z.ZodString>;
222
+ provider: z.ZodNullable<z.ZodObject<{
223
+ uuid: z.ZodString;
224
+ name: z.ZodString;
225
+ faviconLink: z.ZodNullable<z.ZodString>;
226
+ loginUrl: z.ZodNullable<z.ZodString>;
227
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
228
+ updatedAt: z.ZodEffects<z.ZodString, Date, string>;
229
+ }, "strip", z.ZodTypeAny, {
230
+ uuid: string;
231
+ createdAt: Date;
232
+ updatedAt: Date;
233
+ name: string;
234
+ faviconLink: string | null;
235
+ loginUrl: string | null;
236
+ }, {
237
+ uuid: string;
238
+ createdAt: string;
239
+ updatedAt: string;
240
+ name: string;
241
+ faviconLink: string | null;
242
+ loginUrl: string | null;
243
+ }>>;
244
+ activePluginUuid: z.ZodNullable<z.ZodString>;
245
+ }, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
246
+ uuid: string;
247
+ countryCode: string;
248
+ name: string;
249
+ }, {
250
+ uuid: string;
251
+ countryCode: string;
252
+ name: string;
253
+ }>;
254
+ report: z.ZodObject<{
255
+ actionReport: z.ZodObject<{
256
+ blocked: z.ZodBoolean;
257
+ ip: z.ZodString;
258
+ blockDuration: z.ZodNumber;
259
+ willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
260
+ userId: z.ZodString;
261
+ processedAt: z.ZodEffects<z.ZodString, Date, string>;
262
+ }, "strip", z.ZodTypeAny, {
263
+ ip: string;
264
+ userId: string;
265
+ blocked: boolean;
266
+ blockDuration: number;
267
+ willUnblockAt: Date;
268
+ processedAt: Date;
269
+ }, {
270
+ ip: string;
271
+ userId: string;
272
+ blocked: boolean;
273
+ blockDuration: number;
274
+ willUnblockAt: string;
275
+ processedAt: string;
276
+ }>;
277
+ xrayReport: z.ZodObject<{
278
+ email: z.ZodNullable<z.ZodString>;
279
+ level: z.ZodNullable<z.ZodNumber>;
280
+ protocol: z.ZodNullable<z.ZodString>;
281
+ network: z.ZodString;
282
+ source: z.ZodNullable<z.ZodString>;
283
+ destination: z.ZodString;
284
+ routeTarget: z.ZodNullable<z.ZodString>;
285
+ originalTarget: z.ZodNullable<z.ZodString>;
286
+ inboundTag: z.ZodNullable<z.ZodString>;
287
+ inboundName: z.ZodNullable<z.ZodString>;
288
+ inboundLocal: z.ZodNullable<z.ZodString>;
289
+ outboundTag: z.ZodNullable<z.ZodString>;
290
+ ts: z.ZodNumber;
291
+ }, "strip", z.ZodTypeAny, {
292
+ network: string;
293
+ email: string | null;
294
+ level: number | null;
295
+ protocol: string | null;
296
+ source: string | null;
297
+ destination: string;
298
+ routeTarget: string | null;
299
+ originalTarget: string | null;
300
+ inboundTag: string | null;
301
+ inboundName: string | null;
302
+ inboundLocal: string | null;
303
+ outboundTag: string | null;
304
+ ts: number;
305
+ }, {
306
+ network: string;
307
+ email: string | null;
308
+ level: number | null;
309
+ protocol: string | null;
310
+ source: string | null;
311
+ destination: string;
312
+ routeTarget: string | null;
313
+ originalTarget: string | null;
314
+ inboundTag: string | null;
315
+ inboundName: string | null;
316
+ inboundLocal: string | null;
317
+ outboundTag: string | null;
318
+ ts: number;
319
+ }>;
320
+ }, "strip", z.ZodTypeAny, {
321
+ actionReport: {
322
+ ip: string;
323
+ userId: string;
324
+ blocked: boolean;
325
+ blockDuration: number;
326
+ willUnblockAt: Date;
327
+ processedAt: Date;
328
+ };
329
+ xrayReport: {
330
+ network: string;
331
+ email: string | null;
332
+ level: number | null;
333
+ protocol: string | null;
334
+ source: string | null;
335
+ destination: string;
336
+ routeTarget: string | null;
337
+ originalTarget: string | null;
338
+ inboundTag: string | null;
339
+ inboundName: string | null;
340
+ inboundLocal: string | null;
341
+ outboundTag: string | null;
342
+ ts: number;
343
+ };
344
+ }, {
345
+ actionReport: {
346
+ ip: string;
347
+ userId: string;
348
+ blocked: boolean;
349
+ blockDuration: number;
350
+ willUnblockAt: string;
351
+ processedAt: string;
352
+ };
353
+ xrayReport: {
354
+ network: string;
355
+ email: string | null;
356
+ level: number | null;
357
+ protocol: string | null;
358
+ source: string | null;
359
+ destination: string;
360
+ routeTarget: string | null;
361
+ originalTarget: string | null;
362
+ inboundTag: string | null;
363
+ inboundName: string | null;
364
+ inboundLocal: string | null;
365
+ outboundTag: string | null;
366
+ ts: number;
367
+ };
368
+ }>;
369
+ createdAt: z.ZodEffects<z.ZodString, Date, string>;
370
+ }, "strip", z.ZodTypeAny, {
371
+ user: {
372
+ uuid: string;
373
+ username: string;
374
+ };
375
+ node: {
376
+ uuid: string;
377
+ countryCode: string;
378
+ name: string;
379
+ };
380
+ createdAt: Date;
381
+ id: number;
382
+ userId: number;
383
+ nodeId: number;
384
+ report: {
385
+ actionReport: {
386
+ ip: string;
387
+ userId: string;
388
+ blocked: boolean;
389
+ blockDuration: number;
390
+ willUnblockAt: Date;
391
+ processedAt: Date;
392
+ };
393
+ xrayReport: {
394
+ network: string;
395
+ email: string | null;
396
+ level: number | null;
397
+ protocol: string | null;
398
+ source: string | null;
399
+ destination: string;
400
+ routeTarget: string | null;
401
+ originalTarget: string | null;
402
+ inboundTag: string | null;
403
+ inboundName: string | null;
404
+ inboundLocal: string | null;
405
+ outboundTag: string | null;
406
+ ts: number;
407
+ };
408
+ };
409
+ }, {
410
+ user: {
411
+ uuid: string;
412
+ username: string;
413
+ };
414
+ node: {
415
+ uuid: string;
416
+ countryCode: string;
417
+ name: string;
418
+ };
419
+ createdAt: string;
420
+ id: number;
421
+ userId: number;
422
+ nodeId: number;
423
+ report: {
424
+ actionReport: {
425
+ ip: string;
426
+ userId: string;
427
+ blocked: boolean;
428
+ blockDuration: number;
429
+ willUnblockAt: string;
430
+ processedAt: string;
431
+ };
432
+ xrayReport: {
433
+ network: string;
434
+ email: string | null;
435
+ level: number | null;
436
+ protocol: string | null;
437
+ source: string | null;
438
+ destination: string;
439
+ routeTarget: string | null;
440
+ originalTarget: string | null;
441
+ inboundTag: string | null;
442
+ inboundName: string | null;
443
+ inboundLocal: string | null;
444
+ outboundTag: string | null;
445
+ ts: number;
446
+ };
447
+ };
448
+ }>, "many">;
449
+ total: z.ZodNumber;
450
+ }, "strip", z.ZodTypeAny, {
451
+ total: number;
452
+ records: {
453
+ user: {
454
+ uuid: string;
455
+ username: string;
456
+ };
457
+ node: {
458
+ uuid: string;
459
+ countryCode: string;
460
+ name: string;
461
+ };
462
+ createdAt: Date;
463
+ id: number;
464
+ userId: number;
465
+ nodeId: number;
466
+ report: {
467
+ actionReport: {
468
+ ip: string;
469
+ userId: string;
470
+ blocked: boolean;
471
+ blockDuration: number;
472
+ willUnblockAt: Date;
473
+ processedAt: Date;
474
+ };
475
+ xrayReport: {
476
+ network: string;
477
+ email: string | null;
478
+ level: number | null;
479
+ protocol: string | null;
480
+ source: string | null;
481
+ destination: string;
482
+ routeTarget: string | null;
483
+ originalTarget: string | null;
484
+ inboundTag: string | null;
485
+ inboundName: string | null;
486
+ inboundLocal: string | null;
487
+ outboundTag: string | null;
488
+ ts: number;
489
+ };
490
+ };
491
+ }[];
492
+ }, {
493
+ total: number;
494
+ records: {
495
+ user: {
496
+ uuid: string;
497
+ username: string;
498
+ };
499
+ node: {
500
+ uuid: string;
501
+ countryCode: string;
502
+ name: string;
503
+ };
504
+ createdAt: string;
505
+ id: number;
506
+ userId: number;
507
+ nodeId: number;
508
+ report: {
509
+ actionReport: {
510
+ ip: string;
511
+ userId: string;
512
+ blocked: boolean;
513
+ blockDuration: number;
514
+ willUnblockAt: string;
515
+ processedAt: string;
516
+ };
517
+ xrayReport: {
518
+ network: string;
519
+ email: string | null;
520
+ level: number | null;
521
+ protocol: string | null;
522
+ source: string | null;
523
+ destination: string;
524
+ routeTarget: string | null;
525
+ originalTarget: string | null;
526
+ inboundTag: string | null;
527
+ inboundName: string | null;
528
+ inboundLocal: string | null;
529
+ outboundTag: string | null;
530
+ ts: number;
531
+ };
532
+ };
533
+ }[];
534
+ }>;
535
+ }, "strip", z.ZodTypeAny, {
536
+ response: {
537
+ total: number;
538
+ records: {
539
+ user: {
540
+ uuid: string;
541
+ username: string;
542
+ };
543
+ node: {
544
+ uuid: string;
545
+ countryCode: string;
546
+ name: string;
547
+ };
548
+ createdAt: Date;
549
+ id: number;
550
+ userId: number;
551
+ nodeId: number;
552
+ report: {
553
+ actionReport: {
554
+ ip: string;
555
+ userId: string;
556
+ blocked: boolean;
557
+ blockDuration: number;
558
+ willUnblockAt: Date;
559
+ processedAt: Date;
560
+ };
561
+ xrayReport: {
562
+ network: string;
563
+ email: string | null;
564
+ level: number | null;
565
+ protocol: string | null;
566
+ source: string | null;
567
+ destination: string;
568
+ routeTarget: string | null;
569
+ originalTarget: string | null;
570
+ inboundTag: string | null;
571
+ inboundName: string | null;
572
+ inboundLocal: string | null;
573
+ outboundTag: string | null;
574
+ ts: number;
575
+ };
576
+ };
577
+ }[];
578
+ };
579
+ }, {
580
+ response: {
581
+ total: number;
582
+ records: {
583
+ user: {
584
+ uuid: string;
585
+ username: string;
586
+ };
587
+ node: {
588
+ uuid: string;
589
+ countryCode: string;
590
+ name: string;
591
+ };
592
+ createdAt: string;
593
+ id: number;
594
+ userId: number;
595
+ nodeId: number;
596
+ report: {
597
+ actionReport: {
598
+ ip: string;
599
+ userId: string;
600
+ blocked: boolean;
601
+ blockDuration: number;
602
+ willUnblockAt: string;
603
+ processedAt: string;
604
+ };
605
+ xrayReport: {
606
+ network: string;
607
+ email: string | null;
608
+ level: number | null;
609
+ protocol: string | null;
610
+ source: string | null;
611
+ destination: string;
612
+ routeTarget: string | null;
613
+ originalTarget: string | null;
614
+ inboundTag: string | null;
615
+ inboundName: string | null;
616
+ inboundLocal: string | null;
617
+ outboundTag: string | null;
618
+ ts: number;
619
+ };
620
+ };
621
+ }[];
622
+ };
623
+ }>;
624
+ type Response = z.infer<typeof ResponseSchema>;
625
+ }
626
+ //# sourceMappingURL=get-torrent-blocker-reports.command.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"get-torrent-blocker-reports.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,+BAA+B,CAAC;IACtC,MAAM,GAAG,qCAAoD,CAAC;IAC9D,MAAM,OAAO,qCAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAkC,CAAC;IAElE,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GetTorrentBlockerReportsCommand = void 0;
4
+ const zod_1 = require("zod");
5
+ const models_1 = require("../../../models");
6
+ const api_1 = require("../../../api");
7
+ const constants_1 = require("../../../constants");
8
+ var GetTorrentBlockerReportsCommand;
9
+ (function (GetTorrentBlockerReportsCommand) {
10
+ GetTorrentBlockerReportsCommand.url = api_1.REST_API.NODE_PLUGINS.TORRENT_BLOCKER.GET_REPORTS;
11
+ GetTorrentBlockerReportsCommand.TSQ_url = GetTorrentBlockerReportsCommand.url;
12
+ GetTorrentBlockerReportsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.NODE_PLUGINS_ROUTES.TORRENT_BLOCKER.GET_REPORTS, 'get', 'Get Torrent Blocker Reports');
13
+ GetTorrentBlockerReportsCommand.RequestQuerySchema = models_1.TanstackQueryRequestQuerySchema;
14
+ GetTorrentBlockerReportsCommand.ResponseSchema = zod_1.z.object({
15
+ response: zod_1.z.object({
16
+ records: zod_1.z.array(models_1.TorrentBlockerReportSchema),
17
+ total: zod_1.z.number(),
18
+ }),
19
+ });
20
+ })(GetTorrentBlockerReportsCommand || (exports.GetTorrentBlockerReportsCommand = GetTorrentBlockerReportsCommand = {}));
@@ -0,0 +1,3 @@
1
+ export * from './get-torrent-blocker-reports.command';
2
+ export * from './truncate-torrent-blocker-reports.command';
3
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,4CAA4C,CAAC"}
@@ -0,0 +1,18 @@
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("./get-torrent-blocker-reports.command"), exports);
18
+ __exportStar(require("./truncate-torrent-blocker-reports.command"), exports);