@remnawave/node-contract 2.6.3 → 2.6.5

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.
@@ -6,24 +6,24 @@ export declare namespace CollectReportsCommand {
6
6
  reports: z.ZodArray<z.ZodObject<{
7
7
  actionReport: z.ZodObject<{
8
8
  blocked: z.ZodBoolean;
9
- whitelisted: z.ZodBoolean;
10
9
  ip: z.ZodString;
11
10
  blockDuration: z.ZodNumber;
11
+ willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
12
12
  userId: z.ZodString;
13
13
  processedAt: z.ZodEffects<z.ZodString, Date, string>;
14
14
  }, "strip", z.ZodTypeAny, {
15
15
  userId: string;
16
16
  blocked: boolean;
17
- whitelisted: boolean;
18
17
  ip: string;
19
18
  blockDuration: number;
19
+ willUnblockAt: Date;
20
20
  processedAt: Date;
21
21
  }, {
22
22
  userId: string;
23
23
  blocked: boolean;
24
- whitelisted: boolean;
25
24
  ip: string;
26
25
  blockDuration: number;
26
+ willUnblockAt: string;
27
27
  processedAt: string;
28
28
  }>;
29
29
  xrayReport: z.ZodObject<{
@@ -73,9 +73,9 @@ export declare namespace CollectReportsCommand {
73
73
  actionReport: {
74
74
  userId: string;
75
75
  blocked: boolean;
76
- whitelisted: boolean;
77
76
  ip: string;
78
77
  blockDuration: number;
78
+ willUnblockAt: Date;
79
79
  processedAt: Date;
80
80
  };
81
81
  xrayReport: {
@@ -97,9 +97,9 @@ export declare namespace CollectReportsCommand {
97
97
  actionReport: {
98
98
  userId: string;
99
99
  blocked: boolean;
100
- whitelisted: boolean;
101
100
  ip: string;
102
101
  blockDuration: number;
102
+ willUnblockAt: string;
103
103
  processedAt: string;
104
104
  };
105
105
  xrayReport: {
@@ -123,9 +123,9 @@ export declare namespace CollectReportsCommand {
123
123
  actionReport: {
124
124
  userId: string;
125
125
  blocked: boolean;
126
- whitelisted: boolean;
127
126
  ip: string;
128
127
  blockDuration: number;
128
+ willUnblockAt: Date;
129
129
  processedAt: Date;
130
130
  };
131
131
  xrayReport: {
@@ -149,9 +149,9 @@ export declare namespace CollectReportsCommand {
149
149
  actionReport: {
150
150
  userId: string;
151
151
  blocked: boolean;
152
- whitelisted: boolean;
153
152
  ip: string;
154
153
  blockDuration: number;
154
+ willUnblockAt: string;
155
155
  processedAt: string;
156
156
  };
157
157
  xrayReport: {
@@ -177,9 +177,9 @@ export declare namespace CollectReportsCommand {
177
177
  actionReport: {
178
178
  userId: string;
179
179
  blocked: boolean;
180
- whitelisted: boolean;
181
180
  ip: string;
182
181
  blockDuration: number;
182
+ willUnblockAt: Date;
183
183
  processedAt: Date;
184
184
  };
185
185
  xrayReport: {
@@ -205,9 +205,9 @@ export declare namespace CollectReportsCommand {
205
205
  actionReport: {
206
206
  userId: string;
207
207
  blocked: boolean;
208
- whitelisted: boolean;
209
208
  ip: string;
210
209
  blockDuration: number;
210
+ willUnblockAt: string;
211
211
  processedAt: string;
212
212
  };
213
213
  xrayReport: {
@@ -13,6 +13,7 @@ export declare namespace GetSystemStatsCommand {
13
13
  liveObjects: z.ZodNumber;
14
14
  pauseTotalNs: z.ZodNumber;
15
15
  uptime: z.ZodNumber;
16
+ reportsCount: z.ZodOptional<z.ZodNumber>;
16
17
  }, "strip", z.ZodTypeAny, {
17
18
  numGoroutine: number;
18
19
  numGC: number;
@@ -24,6 +25,7 @@ export declare namespace GetSystemStatsCommand {
24
25
  liveObjects: number;
25
26
  pauseTotalNs: number;
26
27
  uptime: number;
28
+ reportsCount?: number | undefined;
27
29
  }, {
28
30
  numGoroutine: number;
29
31
  numGC: number;
@@ -35,6 +37,7 @@ export declare namespace GetSystemStatsCommand {
35
37
  liveObjects: number;
36
38
  pauseTotalNs: number;
37
39
  uptime: number;
40
+ reportsCount?: number | undefined;
38
41
  }>;
39
42
  }, "strip", z.ZodTypeAny, {
40
43
  response: {
@@ -48,6 +51,7 @@ export declare namespace GetSystemStatsCommand {
48
51
  liveObjects: number;
49
52
  pauseTotalNs: number;
50
53
  uptime: number;
54
+ reportsCount?: number | undefined;
51
55
  };
52
56
  }, {
53
57
  response: {
@@ -61,6 +65,7 @@ export declare namespace GetSystemStatsCommand {
61
65
  liveObjects: number;
62
66
  pauseTotalNs: number;
63
67
  uptime: number;
68
+ reportsCount?: number | undefined;
64
69
  };
65
70
  }>;
66
71
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAazB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-system-stats.command.d.ts","sourceRoot":"","sources":["../../../commands/stats/get-system-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAczB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -18,6 +18,7 @@ var GetSystemStatsCommand;
18
18
  liveObjects: zod_1.z.number(),
19
19
  pauseTotalNs: zod_1.z.number(),
20
20
  uptime: zod_1.z.number(),
21
+ reportsCount: zod_1.z.number().optional(),
21
22
  }),
22
23
  });
23
24
  })(GetSystemStatsCommand || (exports.GetSystemStatsCommand = GetSystemStatsCommand = {}));
@@ -2,24 +2,24 @@ import z from 'zod';
2
2
  export declare const TorrentBlockerReportSchema: z.ZodObject<{
3
3
  actionReport: z.ZodObject<{
4
4
  blocked: z.ZodBoolean;
5
- whitelisted: z.ZodBoolean;
6
5
  ip: z.ZodString;
7
6
  blockDuration: z.ZodNumber;
7
+ willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
8
8
  userId: z.ZodString;
9
9
  processedAt: z.ZodEffects<z.ZodString, Date, string>;
10
10
  }, "strip", z.ZodTypeAny, {
11
11
  userId: string;
12
12
  blocked: boolean;
13
- whitelisted: boolean;
14
13
  ip: string;
15
14
  blockDuration: number;
15
+ willUnblockAt: Date;
16
16
  processedAt: Date;
17
17
  }, {
18
18
  userId: string;
19
19
  blocked: boolean;
20
- whitelisted: boolean;
21
20
  ip: string;
22
21
  blockDuration: number;
22
+ willUnblockAt: string;
23
23
  processedAt: string;
24
24
  }>;
25
25
  xrayReport: z.ZodObject<{
@@ -69,9 +69,9 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
69
69
  actionReport: {
70
70
  userId: string;
71
71
  blocked: boolean;
72
- whitelisted: boolean;
73
72
  ip: string;
74
73
  blockDuration: number;
74
+ willUnblockAt: Date;
75
75
  processedAt: Date;
76
76
  };
77
77
  xrayReport: {
@@ -93,9 +93,9 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
93
93
  actionReport: {
94
94
  userId: string;
95
95
  blocked: boolean;
96
- whitelisted: boolean;
97
96
  ip: string;
98
97
  blockDuration: number;
98
+ willUnblockAt: string;
99
99
  processedAt: string;
100
100
  };
101
101
  xrayReport: {
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAcrC,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgBrC,CAAC;AAEH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
@@ -9,9 +9,12 @@ const xray_webhook_schema_1 = require("./xray-webhook.schema");
9
9
  exports.TorrentBlockerReportSchema = zod_1.default.object({
10
10
  actionReport: zod_1.default.object({
11
11
  blocked: zod_1.default.boolean(),
12
- whitelisted: zod_1.default.boolean(),
13
12
  ip: zod_1.default.string(),
14
13
  blockDuration: zod_1.default.number(),
14
+ willUnblockAt: zod_1.default
15
+ .string()
16
+ .datetime({ offset: true, local: true })
17
+ .transform((str) => new Date(str)),
15
18
  userId: zod_1.default.string(),
16
19
  processedAt: zod_1.default
17
20
  .string()
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/node-contract",
3
- "version": "2.6.3",
3
+ "version": "2.6.5",
4
4
  "description": "A node-contract library for Remnawave Panel",
5
5
  "main": "build/index.js",
6
6
  "types": "build/index.d.ts",