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