@remnawave/backend-contract 0.0.65 → 0.0.66

Sign up to get free protection for your applications and to get access to all the features.
@@ -44,24 +44,36 @@ export declare namespace GetStatsCommand {
44
44
  uptime: z.ZodNumber;
45
45
  timestamp: z.ZodNumber;
46
46
  users: z.ZodObject<{
47
- onlineLastMinute: z.ZodNumber;
48
47
  statusCounts: z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodNumber>;
49
48
  totalUsers: z.ZodNumber;
50
49
  totalTrafficBytes: z.ZodString;
51
50
  }, "strip", z.ZodTypeAny, {
52
- onlineLastMinute: number;
53
51
  statusCounts: Record<string, number>;
54
52
  totalUsers: number;
55
53
  totalTrafficBytes: string;
56
54
  }, {
57
- onlineLastMinute: number;
58
55
  statusCounts: Record<string, number>;
59
56
  totalUsers: number;
60
57
  totalTrafficBytes: string;
61
58
  }>;
59
+ onlineStats: z.ZodObject<{
60
+ lastDay: z.ZodNumber;
61
+ lastWeek: z.ZodNumber;
62
+ neverOnline: z.ZodNumber;
63
+ onlineNow: z.ZodNumber;
64
+ }, "strip", z.ZodTypeAny, {
65
+ lastDay: number;
66
+ lastWeek: number;
67
+ neverOnline: number;
68
+ onlineNow: number;
69
+ }, {
70
+ lastDay: number;
71
+ lastWeek: number;
72
+ neverOnline: number;
73
+ onlineNow: number;
74
+ }>;
62
75
  }, "strip", z.ZodTypeAny, {
63
76
  users: {
64
- onlineLastMinute: number;
65
77
  statusCounts: Record<string, number>;
66
78
  totalUsers: number;
67
79
  totalTrafficBytes: string;
@@ -79,9 +91,14 @@ export declare namespace GetStatsCommand {
79
91
  };
80
92
  uptime: number;
81
93
  timestamp: number;
94
+ onlineStats: {
95
+ lastDay: number;
96
+ lastWeek: number;
97
+ neverOnline: number;
98
+ onlineNow: number;
99
+ };
82
100
  }, {
83
101
  users: {
84
- onlineLastMinute: number;
85
102
  statusCounts: Record<string, number>;
86
103
  totalUsers: number;
87
104
  totalTrafficBytes: string;
@@ -99,11 +116,16 @@ export declare namespace GetStatsCommand {
99
116
  };
100
117
  uptime: number;
101
118
  timestamp: number;
119
+ onlineStats: {
120
+ lastDay: number;
121
+ lastWeek: number;
122
+ neverOnline: number;
123
+ onlineNow: number;
124
+ };
102
125
  }>;
103
126
  }, "strip", z.ZodTypeAny, {
104
127
  response: {
105
128
  users: {
106
- onlineLastMinute: number;
107
129
  statusCounts: Record<string, number>;
108
130
  totalUsers: number;
109
131
  totalTrafficBytes: string;
@@ -121,11 +143,16 @@ export declare namespace GetStatsCommand {
121
143
  };
122
144
  uptime: number;
123
145
  timestamp: number;
146
+ onlineStats: {
147
+ lastDay: number;
148
+ lastWeek: number;
149
+ neverOnline: number;
150
+ onlineNow: number;
151
+ };
124
152
  };
125
153
  }, {
126
154
  response: {
127
155
  users: {
128
- onlineLastMinute: number;
129
156
  statusCounts: Record<string, number>;
130
157
  totalUsers: number;
131
158
  totalTrafficBytes: string;
@@ -143,6 +170,12 @@ export declare namespace GetStatsCommand {
143
170
  };
144
171
  uptime: number;
145
172
  timestamp: number;
173
+ onlineStats: {
174
+ lastDay: number;
175
+ lastWeek: number;
176
+ neverOnline: number;
177
+ onlineNow: number;
178
+ };
146
179
  };
147
180
  }>;
148
181
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-stats.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAElD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-stats.command.d.ts","sourceRoot":"","sources":["../../../../commands/system/get-stats.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAElD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA8BzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -27,11 +27,16 @@ var GetStatsCommand;
27
27
  uptime: zod_1.z.number(),
28
28
  timestamp: zod_1.z.number(),
29
29
  users: zod_1.z.object({
30
- onlineLastMinute: zod_1.z.number(),
31
30
  statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_1.USERS_STATUS)), zod_1.z.number()),
32
31
  totalUsers: zod_1.z.number(),
33
32
  totalTrafficBytes: zod_1.z.string(),
34
33
  }),
34
+ onlineStats: zod_1.z.object({
35
+ lastDay: zod_1.z.number(),
36
+ lastWeek: zod_1.z.number(),
37
+ neverOnline: zod_1.z.number(),
38
+ onlineNow: zod_1.z.number(),
39
+ }),
35
40
  }),
36
41
  });
37
42
  })(GetStatsCommand || (exports.GetStatsCommand = GetStatsCommand = {}));
@@ -27,11 +27,16 @@ var GetStatsCommand;
27
27
  uptime: zod_1.z.number(),
28
28
  timestamp: zod_1.z.number(),
29
29
  users: zod_1.z.object({
30
- onlineLastMinute: zod_1.z.number(),
31
30
  statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_1.USERS_STATUS)), zod_1.z.number()),
32
31
  totalUsers: zod_1.z.number(),
33
32
  totalTrafficBytes: zod_1.z.string(),
34
33
  }),
34
+ onlineStats: zod_1.z.object({
35
+ lastDay: zod_1.z.number(),
36
+ lastWeek: zod_1.z.number(),
37
+ neverOnline: zod_1.z.number(),
38
+ onlineNow: zod_1.z.number(),
39
+ }),
35
40
  }),
36
41
  });
37
42
  })(GetStatsCommand || (exports.GetStatsCommand = GetStatsCommand = {}));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.65",
3
+ "version": "0.0.66",
4
4
  "description": "A contract library for Remnawave",
5
5
  "main": "build/backend/index.js",
6
6
  "browser": "build/frontend/index.js",