@remnawave/backend-contract 2.6.35 → 2.6.37

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.
@@ -21,6 +21,38 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
21
21
  totalReports: number;
22
22
  reportsLast24Hours: number;
23
23
  }>;
24
+ topUsers: z.ZodArray<z.ZodObject<{
25
+ uuid: z.ZodString;
26
+ color: z.ZodString;
27
+ username: z.ZodString;
28
+ total: z.ZodNumber;
29
+ }, "strip", z.ZodTypeAny, {
30
+ uuid: string;
31
+ username: string;
32
+ total: number;
33
+ color: string;
34
+ }, {
35
+ uuid: string;
36
+ username: string;
37
+ total: number;
38
+ color: string;
39
+ }>, "many">;
40
+ topNodes: z.ZodArray<z.ZodObject<{
41
+ uuid: z.ZodString;
42
+ color: z.ZodString;
43
+ name: z.ZodString;
44
+ total: z.ZodNumber;
45
+ }, "strip", z.ZodTypeAny, {
46
+ uuid: string;
47
+ total: number;
48
+ color: string;
49
+ name: string;
50
+ }, {
51
+ uuid: string;
52
+ total: number;
53
+ color: string;
54
+ name: string;
55
+ }>, "many">;
24
56
  }, "strip", z.ZodTypeAny, {
25
57
  stats: {
26
58
  distinctNodes: number;
@@ -28,6 +60,18 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
28
60
  totalReports: number;
29
61
  reportsLast24Hours: number;
30
62
  };
63
+ topUsers: {
64
+ uuid: string;
65
+ username: string;
66
+ total: number;
67
+ color: string;
68
+ }[];
69
+ topNodes: {
70
+ uuid: string;
71
+ total: number;
72
+ color: string;
73
+ name: string;
74
+ }[];
31
75
  }, {
32
76
  stats: {
33
77
  distinctNodes: number;
@@ -35,6 +79,18 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
35
79
  totalReports: number;
36
80
  reportsLast24Hours: number;
37
81
  };
82
+ topUsers: {
83
+ uuid: string;
84
+ username: string;
85
+ total: number;
86
+ color: string;
87
+ }[];
88
+ topNodes: {
89
+ uuid: string;
90
+ total: number;
91
+ color: string;
92
+ name: string;
93
+ }[];
38
94
  }>;
39
95
  }, "strip", z.ZodTypeAny, {
40
96
  response: {
@@ -44,6 +100,18 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
44
100
  totalReports: number;
45
101
  reportsLast24Hours: number;
46
102
  };
103
+ topUsers: {
104
+ uuid: string;
105
+ username: string;
106
+ total: number;
107
+ color: string;
108
+ }[];
109
+ topNodes: {
110
+ uuid: string;
111
+ total: number;
112
+ color: string;
113
+ name: string;
114
+ }[];
47
115
  };
48
116
  }, {
49
117
  response: {
@@ -53,6 +121,18 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
53
121
  totalReports: number;
54
122
  reportsLast24Hours: number;
55
123
  };
124
+ topUsers: {
125
+ uuid: string;
126
+ username: string;
127
+ total: number;
128
+ color: string;
129
+ }[];
130
+ topNodes: {
131
+ uuid: string;
132
+ total: number;
133
+ color: string;
134
+ name: string;
135
+ }[];
56
136
  };
57
137
  }>;
58
138
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-torrent-blocker-reports-stats.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,2CAA0D,CAAC;IACpE,MAAM,OAAO,2CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MASzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-torrent-blocker-reports-stats.command.d.ts","sourceRoot":"","sources":["../../../../../commands/node-plugins/torrent-blocker/get-torrent-blocker-reports-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,2CAA0D,CAAC;IACpE,MAAM,OAAO,2CAAM,CAAC;IAEpB,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -17,6 +17,18 @@ var GetTorrentBlockerReportsStatsCommand;
17
17
  totalReports: zod_1.z.number(),
18
18
  reportsLast24Hours: zod_1.z.number(),
19
19
  }),
20
+ topUsers: zod_1.z.array(zod_1.z.object({
21
+ uuid: zod_1.z.string().uuid(),
22
+ color: zod_1.z.string(),
23
+ username: zod_1.z.string(),
24
+ total: zod_1.z.number(),
25
+ })),
26
+ topNodes: zod_1.z.array(zod_1.z.object({
27
+ uuid: zod_1.z.string().uuid(),
28
+ color: zod_1.z.string(),
29
+ name: zod_1.z.string(),
30
+ total: zod_1.z.number(),
31
+ })),
20
32
  }),
21
33
  });
22
34
  })(GetTorrentBlockerReportsStatsCommand || (exports.GetTorrentBlockerReportsStatsCommand = GetTorrentBlockerReportsStatsCommand = {}));
@@ -17,6 +17,18 @@ var GetTorrentBlockerReportsStatsCommand;
17
17
  totalReports: zod_1.z.number(),
18
18
  reportsLast24Hours: zod_1.z.number(),
19
19
  }),
20
+ topUsers: zod_1.z.array(zod_1.z.object({
21
+ uuid: zod_1.z.string().uuid(),
22
+ color: zod_1.z.string(),
23
+ username: zod_1.z.string(),
24
+ total: zod_1.z.number(),
25
+ })),
26
+ topNodes: zod_1.z.array(zod_1.z.object({
27
+ uuid: zod_1.z.string().uuid(),
28
+ color: zod_1.z.string(),
29
+ name: zod_1.z.string(),
30
+ total: zod_1.z.number(),
31
+ })),
20
32
  }),
21
33
  });
22
34
  })(GetTorrentBlockerReportsStatsCommand || (exports.GetTorrentBlockerReportsStatsCommand = GetTorrentBlockerReportsStatsCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.35",
3
+ "version": "2.6.37",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",