@remnawave/node-contract 2.6.11 → 2.6.12
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.
- package/build/commands/stats/get-system-stats.command.d.ts +39 -19
- package/build/commands/stats/get-system-stats.command.d.ts.map +1 -1
- package/build/commands/stats/get-system-stats.command.js +3 -1
- package/build/commands/xray/start.command.d.ts +40 -28
- package/build/commands/xray/start.command.d.ts.map +1 -1
- package/build/commands/xray/start.command.js +1 -2
- package/build/models/index.d.ts +1 -1
- package/build/models/index.d.ts.map +1 -1
- package/build/models/index.js +1 -1
- package/build/models/node-system.schema.d.ts +129 -0
- package/build/models/node-system.schema.d.ts.map +1 -0
- package/build/models/{host-info.schema.js → node-system.schema.js} +7 -3
- package/package.json +1 -1
- package/build/models/host-info.schema.d.ts +0 -48
- package/build/models/host-info.schema.d.ts.map +0 -1
|
@@ -54,15 +54,27 @@ export declare namespace GetSystemStatsCommand {
|
|
|
54
54
|
reportsCount: number;
|
|
55
55
|
};
|
|
56
56
|
}>;
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
57
|
+
system: z.ZodObject<{
|
|
58
|
+
stats: z.ZodObject<{
|
|
59
|
+
memoryFree: z.ZodNumber;
|
|
60
|
+
uptime: z.ZodNumber;
|
|
61
|
+
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
memoryFree: number;
|
|
63
|
+
uptime: number;
|
|
64
|
+
}, {
|
|
65
|
+
memoryFree: number;
|
|
66
|
+
uptime: number;
|
|
67
|
+
}>;
|
|
60
68
|
}, "strip", z.ZodTypeAny, {
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
stats: {
|
|
70
|
+
memoryFree: number;
|
|
71
|
+
uptime: number;
|
|
72
|
+
};
|
|
63
73
|
}, {
|
|
64
|
-
|
|
65
|
-
|
|
74
|
+
stats: {
|
|
75
|
+
memoryFree: number;
|
|
76
|
+
uptime: number;
|
|
77
|
+
};
|
|
66
78
|
}>;
|
|
67
79
|
}, "strip", z.ZodTypeAny, {
|
|
68
80
|
xrayInfo: {
|
|
@@ -82,9 +94,11 @@ export declare namespace GetSystemStatsCommand {
|
|
|
82
94
|
reportsCount: number;
|
|
83
95
|
};
|
|
84
96
|
};
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
97
|
+
system: {
|
|
98
|
+
stats: {
|
|
99
|
+
memoryFree: number;
|
|
100
|
+
uptime: number;
|
|
101
|
+
};
|
|
88
102
|
};
|
|
89
103
|
}, {
|
|
90
104
|
xrayInfo: {
|
|
@@ -104,9 +118,11 @@ export declare namespace GetSystemStatsCommand {
|
|
|
104
118
|
reportsCount: number;
|
|
105
119
|
};
|
|
106
120
|
};
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
121
|
+
system: {
|
|
122
|
+
stats: {
|
|
123
|
+
memoryFree: number;
|
|
124
|
+
uptime: number;
|
|
125
|
+
};
|
|
110
126
|
};
|
|
111
127
|
}>;
|
|
112
128
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -128,9 +144,11 @@ export declare namespace GetSystemStatsCommand {
|
|
|
128
144
|
reportsCount: number;
|
|
129
145
|
};
|
|
130
146
|
};
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
147
|
+
system: {
|
|
148
|
+
stats: {
|
|
149
|
+
memoryFree: number;
|
|
150
|
+
uptime: number;
|
|
151
|
+
};
|
|
134
152
|
};
|
|
135
153
|
};
|
|
136
154
|
}, {
|
|
@@ -152,9 +170,11 @@ export declare namespace GetSystemStatsCommand {
|
|
|
152
170
|
reportsCount: number;
|
|
153
171
|
};
|
|
154
172
|
};
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
173
|
+
system: {
|
|
174
|
+
stats: {
|
|
175
|
+
memoryFree: number;
|
|
176
|
+
uptime: number;
|
|
177
|
+
};
|
|
158
178
|
};
|
|
159
179
|
};
|
|
160
180
|
}>;
|
|
@@ -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;AAIxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc
|
|
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;AAIxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,gCAAkC,CAAC;IAE5C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -28,7 +28,9 @@ var GetSystemStatsCommand;
|
|
|
28
28
|
reportsCount: zod_1.z.number(),
|
|
29
29
|
}),
|
|
30
30
|
}),
|
|
31
|
-
|
|
31
|
+
system: zod_1.z.object({
|
|
32
|
+
stats: models_1.NodeSystemStatsSchema,
|
|
33
|
+
}),
|
|
32
34
|
}),
|
|
33
35
|
});
|
|
34
36
|
})(GetSystemStatsCommand || (exports.GetSystemStatsCommand = GetSystemStatsCommand = {}));
|
|
@@ -91,7 +91,13 @@ export declare namespace StartXrayCommand {
|
|
|
91
91
|
error: z.ZodNullable<z.ZodString>;
|
|
92
92
|
nodeInformation: z.ZodObject<{
|
|
93
93
|
version: z.ZodNullable<z.ZodString>;
|
|
94
|
-
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
version: string | null;
|
|
96
|
+
}, {
|
|
97
|
+
version: string | null;
|
|
98
|
+
}>;
|
|
99
|
+
system: z.ZodObject<{
|
|
100
|
+
info: z.ZodObject<{
|
|
95
101
|
arch: z.ZodString;
|
|
96
102
|
cpus: z.ZodNumber;
|
|
97
103
|
cpuModel: z.ZodString;
|
|
@@ -125,7 +131,7 @@ export declare namespace StartXrayCommand {
|
|
|
125
131
|
version: string;
|
|
126
132
|
networkInterfaces: string[];
|
|
127
133
|
}>;
|
|
128
|
-
|
|
134
|
+
stats: z.ZodObject<{
|
|
129
135
|
memoryFree: z.ZodNumber;
|
|
130
136
|
uptime: z.ZodNumber;
|
|
131
137
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -136,12 +142,11 @@ export declare namespace StartXrayCommand {
|
|
|
136
142
|
uptime: number;
|
|
137
143
|
}>;
|
|
138
144
|
}, "strip", z.ZodTypeAny, {
|
|
139
|
-
|
|
140
|
-
hotHostInfo: {
|
|
145
|
+
stats: {
|
|
141
146
|
memoryFree: number;
|
|
142
147
|
uptime: number;
|
|
143
148
|
};
|
|
144
|
-
|
|
149
|
+
info: {
|
|
145
150
|
type: string;
|
|
146
151
|
arch: string;
|
|
147
152
|
cpus: number;
|
|
@@ -154,12 +159,11 @@ export declare namespace StartXrayCommand {
|
|
|
154
159
|
networkInterfaces: string[];
|
|
155
160
|
};
|
|
156
161
|
}, {
|
|
157
|
-
|
|
158
|
-
hotHostInfo: {
|
|
162
|
+
stats: {
|
|
159
163
|
memoryFree: number;
|
|
160
164
|
uptime: number;
|
|
161
165
|
};
|
|
162
|
-
|
|
166
|
+
info: {
|
|
163
167
|
type: string;
|
|
164
168
|
arch: string;
|
|
165
169
|
cpus: number;
|
|
@@ -175,14 +179,12 @@ export declare namespace StartXrayCommand {
|
|
|
175
179
|
}, "strip", z.ZodTypeAny, {
|
|
176
180
|
error: string | null;
|
|
177
181
|
version: string | null;
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
version: string | null;
|
|
181
|
-
hotHostInfo: {
|
|
182
|
+
system: {
|
|
183
|
+
stats: {
|
|
182
184
|
memoryFree: number;
|
|
183
185
|
uptime: number;
|
|
184
186
|
};
|
|
185
|
-
|
|
187
|
+
info: {
|
|
186
188
|
type: string;
|
|
187
189
|
arch: string;
|
|
188
190
|
cpus: number;
|
|
@@ -195,17 +197,19 @@ export declare namespace StartXrayCommand {
|
|
|
195
197
|
networkInterfaces: string[];
|
|
196
198
|
};
|
|
197
199
|
};
|
|
198
|
-
}, {
|
|
199
|
-
error: string | null;
|
|
200
|
-
version: string | null;
|
|
201
200
|
isStarted: boolean;
|
|
202
201
|
nodeInformation: {
|
|
203
202
|
version: string | null;
|
|
204
|
-
|
|
203
|
+
};
|
|
204
|
+
}, {
|
|
205
|
+
error: string | null;
|
|
206
|
+
version: string | null;
|
|
207
|
+
system: {
|
|
208
|
+
stats: {
|
|
205
209
|
memoryFree: number;
|
|
206
210
|
uptime: number;
|
|
207
211
|
};
|
|
208
|
-
|
|
212
|
+
info: {
|
|
209
213
|
type: string;
|
|
210
214
|
arch: string;
|
|
211
215
|
cpus: number;
|
|
@@ -218,19 +222,21 @@ export declare namespace StartXrayCommand {
|
|
|
218
222
|
networkInterfaces: string[];
|
|
219
223
|
};
|
|
220
224
|
};
|
|
225
|
+
isStarted: boolean;
|
|
226
|
+
nodeInformation: {
|
|
227
|
+
version: string | null;
|
|
228
|
+
};
|
|
221
229
|
}>;
|
|
222
230
|
}, "strip", z.ZodTypeAny, {
|
|
223
231
|
response: {
|
|
224
232
|
error: string | null;
|
|
225
233
|
version: string | null;
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
version: string | null;
|
|
229
|
-
hotHostInfo: {
|
|
234
|
+
system: {
|
|
235
|
+
stats: {
|
|
230
236
|
memoryFree: number;
|
|
231
237
|
uptime: number;
|
|
232
238
|
};
|
|
233
|
-
|
|
239
|
+
info: {
|
|
234
240
|
type: string;
|
|
235
241
|
arch: string;
|
|
236
242
|
cpus: number;
|
|
@@ -243,19 +249,21 @@ export declare namespace StartXrayCommand {
|
|
|
243
249
|
networkInterfaces: string[];
|
|
244
250
|
};
|
|
245
251
|
};
|
|
252
|
+
isStarted: boolean;
|
|
253
|
+
nodeInformation: {
|
|
254
|
+
version: string | null;
|
|
255
|
+
};
|
|
246
256
|
};
|
|
247
257
|
}, {
|
|
248
258
|
response: {
|
|
249
259
|
error: string | null;
|
|
250
260
|
version: string | null;
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
version: string | null;
|
|
254
|
-
hotHostInfo: {
|
|
261
|
+
system: {
|
|
262
|
+
stats: {
|
|
255
263
|
memoryFree: number;
|
|
256
264
|
uptime: number;
|
|
257
265
|
};
|
|
258
|
-
|
|
266
|
+
info: {
|
|
259
267
|
type: string;
|
|
260
268
|
arch: string;
|
|
261
269
|
cpus: number;
|
|
@@ -268,6 +276,10 @@ export declare namespace StartXrayCommand {
|
|
|
268
276
|
networkInterfaces: string[];
|
|
269
277
|
};
|
|
270
278
|
};
|
|
279
|
+
isStarted: boolean;
|
|
280
|
+
nodeInformation: {
|
|
281
|
+
version: string | null;
|
|
282
|
+
};
|
|
271
283
|
};
|
|
272
284
|
}>;
|
|
273
285
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAexB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"start.command.d.ts","sourceRoot":"","sources":["../../../commands/xray/start.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gBAAgB,CAAC;IACvB,MAAM,GAAG,oBAAsB,CAAC;IAChC,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAexB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAUzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -28,9 +28,8 @@ var StartXrayCommand;
|
|
|
28
28
|
error: zod_1.z.string().nullable(),
|
|
29
29
|
nodeInformation: zod_1.z.object({
|
|
30
30
|
version: zod_1.z.string().nullable(),
|
|
31
|
-
hostInfo: models_1.HostInfoSchema,
|
|
32
|
-
hotHostInfo: models_1.HotHostInfoSchema,
|
|
33
31
|
}),
|
|
32
|
+
system: models_1.NodeSystemSchema,
|
|
34
33
|
}),
|
|
35
34
|
});
|
|
36
35
|
})(StartXrayCommand || (exports.StartXrayCommand = StartXrayCommand = {}));
|
package/build/models/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,uBAAuB,CAAC"}
|
package/build/models/index.js
CHANGED
|
@@ -14,6 +14,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
14
14
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
-
__exportStar(require("./
|
|
17
|
+
__exportStar(require("./node-system.schema"), exports);
|
|
18
18
|
__exportStar(require("./torrent-blocker.report.schema"), exports);
|
|
19
19
|
__exportStar(require("./xray-webhook.schema"), exports);
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const NodeSystemInfoSchema: z.ZodObject<{
|
|
3
|
+
arch: z.ZodString;
|
|
4
|
+
cpus: z.ZodNumber;
|
|
5
|
+
cpuModel: z.ZodString;
|
|
6
|
+
memoryTotal: z.ZodNumber;
|
|
7
|
+
hostname: z.ZodString;
|
|
8
|
+
platform: z.ZodString;
|
|
9
|
+
release: z.ZodString;
|
|
10
|
+
type: z.ZodString;
|
|
11
|
+
version: z.ZodString;
|
|
12
|
+
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
type: string;
|
|
15
|
+
arch: string;
|
|
16
|
+
cpus: number;
|
|
17
|
+
cpuModel: string;
|
|
18
|
+
memoryTotal: number;
|
|
19
|
+
hostname: string;
|
|
20
|
+
platform: string;
|
|
21
|
+
release: string;
|
|
22
|
+
version: string;
|
|
23
|
+
networkInterfaces: string[];
|
|
24
|
+
}, {
|
|
25
|
+
type: string;
|
|
26
|
+
arch: string;
|
|
27
|
+
cpus: number;
|
|
28
|
+
cpuModel: string;
|
|
29
|
+
memoryTotal: number;
|
|
30
|
+
hostname: string;
|
|
31
|
+
platform: string;
|
|
32
|
+
release: string;
|
|
33
|
+
version: string;
|
|
34
|
+
networkInterfaces: string[];
|
|
35
|
+
}>;
|
|
36
|
+
export type TNodeSystemInfo = z.infer<typeof NodeSystemInfoSchema>;
|
|
37
|
+
export declare const NodeSystemStatsSchema: z.ZodObject<{
|
|
38
|
+
memoryFree: z.ZodNumber;
|
|
39
|
+
uptime: z.ZodNumber;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
memoryFree: number;
|
|
42
|
+
uptime: number;
|
|
43
|
+
}, {
|
|
44
|
+
memoryFree: number;
|
|
45
|
+
uptime: number;
|
|
46
|
+
}>;
|
|
47
|
+
export type TNodeSystemStats = z.infer<typeof NodeSystemStatsSchema>;
|
|
48
|
+
export declare const NodeSystemSchema: z.ZodObject<{
|
|
49
|
+
info: z.ZodObject<{
|
|
50
|
+
arch: z.ZodString;
|
|
51
|
+
cpus: z.ZodNumber;
|
|
52
|
+
cpuModel: z.ZodString;
|
|
53
|
+
memoryTotal: z.ZodNumber;
|
|
54
|
+
hostname: z.ZodString;
|
|
55
|
+
platform: z.ZodString;
|
|
56
|
+
release: z.ZodString;
|
|
57
|
+
type: z.ZodString;
|
|
58
|
+
version: z.ZodString;
|
|
59
|
+
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
60
|
+
}, "strip", z.ZodTypeAny, {
|
|
61
|
+
type: string;
|
|
62
|
+
arch: string;
|
|
63
|
+
cpus: number;
|
|
64
|
+
cpuModel: string;
|
|
65
|
+
memoryTotal: number;
|
|
66
|
+
hostname: string;
|
|
67
|
+
platform: string;
|
|
68
|
+
release: string;
|
|
69
|
+
version: string;
|
|
70
|
+
networkInterfaces: string[];
|
|
71
|
+
}, {
|
|
72
|
+
type: string;
|
|
73
|
+
arch: string;
|
|
74
|
+
cpus: number;
|
|
75
|
+
cpuModel: string;
|
|
76
|
+
memoryTotal: number;
|
|
77
|
+
hostname: string;
|
|
78
|
+
platform: string;
|
|
79
|
+
release: string;
|
|
80
|
+
version: string;
|
|
81
|
+
networkInterfaces: string[];
|
|
82
|
+
}>;
|
|
83
|
+
stats: z.ZodObject<{
|
|
84
|
+
memoryFree: z.ZodNumber;
|
|
85
|
+
uptime: z.ZodNumber;
|
|
86
|
+
}, "strip", z.ZodTypeAny, {
|
|
87
|
+
memoryFree: number;
|
|
88
|
+
uptime: number;
|
|
89
|
+
}, {
|
|
90
|
+
memoryFree: number;
|
|
91
|
+
uptime: number;
|
|
92
|
+
}>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
stats: {
|
|
95
|
+
memoryFree: number;
|
|
96
|
+
uptime: number;
|
|
97
|
+
};
|
|
98
|
+
info: {
|
|
99
|
+
type: string;
|
|
100
|
+
arch: string;
|
|
101
|
+
cpus: number;
|
|
102
|
+
cpuModel: string;
|
|
103
|
+
memoryTotal: number;
|
|
104
|
+
hostname: string;
|
|
105
|
+
platform: string;
|
|
106
|
+
release: string;
|
|
107
|
+
version: string;
|
|
108
|
+
networkInterfaces: string[];
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
stats: {
|
|
112
|
+
memoryFree: number;
|
|
113
|
+
uptime: number;
|
|
114
|
+
};
|
|
115
|
+
info: {
|
|
116
|
+
type: string;
|
|
117
|
+
arch: string;
|
|
118
|
+
cpus: number;
|
|
119
|
+
cpuModel: string;
|
|
120
|
+
memoryTotal: number;
|
|
121
|
+
hostname: string;
|
|
122
|
+
platform: string;
|
|
123
|
+
release: string;
|
|
124
|
+
version: string;
|
|
125
|
+
networkInterfaces: string[];
|
|
126
|
+
};
|
|
127
|
+
}>;
|
|
128
|
+
export type TNodeSystem = z.infer<typeof NodeSystemSchema>;
|
|
129
|
+
//# sourceMappingURL=node-system.schema.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"node-system.schema.d.ts","sourceRoot":"","sources":["../../models/node-system.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW/B,CAAC;AAEH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAEnE,eAAO,MAAM,qBAAqB;;;;;;;;;EAGhC,CAAC;AAEH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAErE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAG3B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.NodeSystemSchema = exports.NodeSystemStatsSchema = exports.NodeSystemInfoSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
|
-
exports.
|
|
5
|
+
exports.NodeSystemInfoSchema = zod_1.z.object({
|
|
6
6
|
arch: zod_1.z.string(),
|
|
7
7
|
cpus: zod_1.z.number().int(),
|
|
8
8
|
cpuModel: zod_1.z.string(),
|
|
@@ -14,7 +14,11 @@ exports.HostInfoSchema = zod_1.z.object({
|
|
|
14
14
|
version: zod_1.z.string(),
|
|
15
15
|
networkInterfaces: zod_1.z.array(zod_1.z.string()),
|
|
16
16
|
});
|
|
17
|
-
exports.
|
|
17
|
+
exports.NodeSystemStatsSchema = zod_1.z.object({
|
|
18
18
|
memoryFree: zod_1.z.number(),
|
|
19
19
|
uptime: zod_1.z.number(),
|
|
20
20
|
});
|
|
21
|
+
exports.NodeSystemSchema = zod_1.z.object({
|
|
22
|
+
info: exports.NodeSystemInfoSchema,
|
|
23
|
+
stats: exports.NodeSystemStatsSchema,
|
|
24
|
+
});
|
package/package.json
CHANGED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const HostInfoSchema: z.ZodObject<{
|
|
3
|
-
arch: z.ZodString;
|
|
4
|
-
cpus: z.ZodNumber;
|
|
5
|
-
cpuModel: z.ZodString;
|
|
6
|
-
memoryTotal: z.ZodNumber;
|
|
7
|
-
hostname: z.ZodString;
|
|
8
|
-
platform: z.ZodString;
|
|
9
|
-
release: z.ZodString;
|
|
10
|
-
type: z.ZodString;
|
|
11
|
-
version: z.ZodString;
|
|
12
|
-
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
13
|
-
}, "strip", z.ZodTypeAny, {
|
|
14
|
-
type: string;
|
|
15
|
-
arch: string;
|
|
16
|
-
cpus: number;
|
|
17
|
-
cpuModel: string;
|
|
18
|
-
memoryTotal: number;
|
|
19
|
-
hostname: string;
|
|
20
|
-
platform: string;
|
|
21
|
-
release: string;
|
|
22
|
-
version: string;
|
|
23
|
-
networkInterfaces: string[];
|
|
24
|
-
}, {
|
|
25
|
-
type: string;
|
|
26
|
-
arch: string;
|
|
27
|
-
cpus: number;
|
|
28
|
-
cpuModel: string;
|
|
29
|
-
memoryTotal: number;
|
|
30
|
-
hostname: string;
|
|
31
|
-
platform: string;
|
|
32
|
-
release: string;
|
|
33
|
-
version: string;
|
|
34
|
-
networkInterfaces: string[];
|
|
35
|
-
}>;
|
|
36
|
-
export type THostInfo = z.infer<typeof HostInfoSchema>;
|
|
37
|
-
export declare const HotHostInfoSchema: z.ZodObject<{
|
|
38
|
-
memoryFree: z.ZodNumber;
|
|
39
|
-
uptime: z.ZodNumber;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
memoryFree: number;
|
|
42
|
-
uptime: number;
|
|
43
|
-
}, {
|
|
44
|
-
memoryFree: number;
|
|
45
|
-
uptime: number;
|
|
46
|
-
}>;
|
|
47
|
-
export type THotHostInfo = z.infer<typeof HotHostInfoSchema>;
|
|
48
|
-
//# sourceMappingURL=host-info.schema.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"host-info.schema.d.ts","sourceRoot":"","sources":["../../models/host-info.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWzB,CAAC;AAEH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEvD,eAAO,MAAM,iBAAiB;;;;;;;;;EAG5B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|