@remnawave/backend-contract 2.6.36 → 2.6.38

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,41 @@ 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
+ countryCode: z.ZodString;
43
+ color: z.ZodString;
44
+ name: z.ZodString;
45
+ total: z.ZodNumber;
46
+ }, "strip", z.ZodTypeAny, {
47
+ uuid: string;
48
+ total: number;
49
+ countryCode: string;
50
+ color: string;
51
+ name: string;
52
+ }, {
53
+ uuid: string;
54
+ total: number;
55
+ countryCode: string;
56
+ color: string;
57
+ name: string;
58
+ }>, "many">;
24
59
  }, "strip", z.ZodTypeAny, {
25
60
  stats: {
26
61
  distinctNodes: number;
@@ -28,6 +63,19 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
28
63
  totalReports: number;
29
64
  reportsLast24Hours: number;
30
65
  };
66
+ topUsers: {
67
+ uuid: string;
68
+ username: string;
69
+ total: number;
70
+ color: string;
71
+ }[];
72
+ topNodes: {
73
+ uuid: string;
74
+ total: number;
75
+ countryCode: string;
76
+ color: string;
77
+ name: string;
78
+ }[];
31
79
  }, {
32
80
  stats: {
33
81
  distinctNodes: number;
@@ -35,6 +83,19 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
35
83
  totalReports: number;
36
84
  reportsLast24Hours: number;
37
85
  };
86
+ topUsers: {
87
+ uuid: string;
88
+ username: string;
89
+ total: number;
90
+ color: string;
91
+ }[];
92
+ topNodes: {
93
+ uuid: string;
94
+ total: number;
95
+ countryCode: string;
96
+ color: string;
97
+ name: string;
98
+ }[];
38
99
  }>;
39
100
  }, "strip", z.ZodTypeAny, {
40
101
  response: {
@@ -44,6 +105,19 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
44
105
  totalReports: number;
45
106
  reportsLast24Hours: number;
46
107
  };
108
+ topUsers: {
109
+ uuid: string;
110
+ username: string;
111
+ total: number;
112
+ color: string;
113
+ }[];
114
+ topNodes: {
115
+ uuid: string;
116
+ total: number;
117
+ countryCode: string;
118
+ color: string;
119
+ name: string;
120
+ }[];
47
121
  };
48
122
  }, {
49
123
  response: {
@@ -53,6 +127,19 @@ export declare namespace GetTorrentBlockerReportsStatsCommand {
53
127
  totalReports: number;
54
128
  reportsLast24Hours: number;
55
129
  };
130
+ topUsers: {
131
+ uuid: string;
132
+ username: string;
133
+ total: number;
134
+ color: string;
135
+ }[];
136
+ topNodes: {
137
+ uuid: string;
138
+ total: number;
139
+ countryCode: string;
140
+ color: string;
141
+ name: string;
142
+ }[];
56
143
  };
57
144
  }>;
58
145
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -17,6 +17,19 @@ 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
+ countryCode: zod_1.z.string(),
29
+ color: zod_1.z.string(),
30
+ name: zod_1.z.string(),
31
+ total: zod_1.z.number(),
32
+ })),
20
33
  }),
21
34
  });
22
35
  })(GetTorrentBlockerReportsStatsCommand || (exports.GetTorrentBlockerReportsStatsCommand = GetTorrentBlockerReportsStatsCommand = {}));
@@ -17,6 +17,19 @@ 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
+ countryCode: zod_1.z.string(),
29
+ color: zod_1.z.string(),
30
+ name: zod_1.z.string(),
31
+ total: zod_1.z.number(),
32
+ })),
20
33
  }),
21
34
  });
22
35
  })(GetTorrentBlockerReportsStatsCommand || (exports.GetTorrentBlockerReportsStatsCommand = GetTorrentBlockerReportsStatsCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "2.6.36",
3
+ "version": "2.6.38",
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.",