@remnawave/backend-contract 2.6.49 → 2.6.51
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/backend/commands/infra-billing/create-billing-node.command.d.ts +160 -6
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +160 -6
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +160 -6
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +160 -6
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +80 -3
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +80 -3
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +152 -15
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +152 -15
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +232 -18
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +152 -15
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +152 -15
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +152 -15
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +232 -18
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-remnawave-health.command.d.ts +6 -6
- package/build/backend/commands/system/get-stats.command.d.ts +4 -25
- package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
- package/build/backend/commands/system/get-stats.command.js +0 -3
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +6 -5
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -5
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +80 -3
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +80 -3
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/node-system.schema.d.ts +129 -0
- package/build/backend/models/node-system.schema.d.ts.map +1 -0
- package/build/backend/models/node-system.schema.js +24 -0
- package/build/backend/models/nodes.schema.d.ts +116 -9
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +2 -3
- package/build/backend/models/torrent-blocker-report.schema.d.ts +80 -3
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +680 -72
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/commands/system/get-stats.command.js +0 -3
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -5
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/node-system.schema.js +24 -0
- package/build/frontend/models/nodes.schema.js +2 -3
- package/package.json +1 -1
|
@@ -21,9 +21,6 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
|
21
21
|
countryCode: import("zod").ZodString;
|
|
22
22
|
consumptionMultiplier: import("zod").ZodNumber;
|
|
23
23
|
tags: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
24
|
-
cpuCount: import("zod").ZodNullable<import("zod").ZodNumber>;
|
|
25
|
-
cpuModel: import("zod").ZodNullable<import("zod").ZodString>;
|
|
26
|
-
totalRam: import("zod").ZodNullable<import("zod").ZodString>;
|
|
27
24
|
createdAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
28
25
|
updatedAt: import("zod").ZodEffects<import("zod").ZodString, Date, string>;
|
|
29
26
|
configProfile: import("zod").ZodObject<{
|
|
@@ -105,6 +102,86 @@ export declare const InfraBillingAvailableNodeSchema: import("zod").ZodObject<Pi
|
|
|
105
102
|
loginUrl: string | null;
|
|
106
103
|
}>>;
|
|
107
104
|
activePluginUuid: import("zod").ZodNullable<import("zod").ZodString>;
|
|
105
|
+
system: import("zod").ZodNullable<import("zod").ZodObject<{
|
|
106
|
+
info: import("zod").ZodObject<{
|
|
107
|
+
arch: import("zod").ZodString;
|
|
108
|
+
cpus: import("zod").ZodNumber;
|
|
109
|
+
cpuModel: import("zod").ZodString;
|
|
110
|
+
memoryTotal: import("zod").ZodNumber;
|
|
111
|
+
hostname: import("zod").ZodString;
|
|
112
|
+
platform: import("zod").ZodString;
|
|
113
|
+
release: import("zod").ZodString;
|
|
114
|
+
type: import("zod").ZodString;
|
|
115
|
+
version: import("zod").ZodString;
|
|
116
|
+
networkInterfaces: import("zod").ZodArray<import("zod").ZodString, "many">;
|
|
117
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
118
|
+
type: string;
|
|
119
|
+
version: string;
|
|
120
|
+
platform: string;
|
|
121
|
+
arch: string;
|
|
122
|
+
cpus: number;
|
|
123
|
+
cpuModel: string;
|
|
124
|
+
memoryTotal: number;
|
|
125
|
+
hostname: string;
|
|
126
|
+
release: string;
|
|
127
|
+
networkInterfaces: string[];
|
|
128
|
+
}, {
|
|
129
|
+
type: string;
|
|
130
|
+
version: string;
|
|
131
|
+
platform: string;
|
|
132
|
+
arch: string;
|
|
133
|
+
cpus: number;
|
|
134
|
+
cpuModel: string;
|
|
135
|
+
memoryTotal: number;
|
|
136
|
+
hostname: string;
|
|
137
|
+
release: string;
|
|
138
|
+
networkInterfaces: string[];
|
|
139
|
+
}>;
|
|
140
|
+
stats: import("zod").ZodObject<{
|
|
141
|
+
memoryFree: import("zod").ZodNumber;
|
|
142
|
+
uptime: import("zod").ZodNumber;
|
|
143
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
144
|
+
memoryFree: number;
|
|
145
|
+
uptime: number;
|
|
146
|
+
}, {
|
|
147
|
+
memoryFree: number;
|
|
148
|
+
uptime: number;
|
|
149
|
+
}>;
|
|
150
|
+
}, "strip", import("zod").ZodTypeAny, {
|
|
151
|
+
stats: {
|
|
152
|
+
memoryFree: number;
|
|
153
|
+
uptime: number;
|
|
154
|
+
};
|
|
155
|
+
info: {
|
|
156
|
+
type: string;
|
|
157
|
+
version: string;
|
|
158
|
+
platform: string;
|
|
159
|
+
arch: string;
|
|
160
|
+
cpus: number;
|
|
161
|
+
cpuModel: string;
|
|
162
|
+
memoryTotal: number;
|
|
163
|
+
hostname: string;
|
|
164
|
+
release: string;
|
|
165
|
+
networkInterfaces: string[];
|
|
166
|
+
};
|
|
167
|
+
}, {
|
|
168
|
+
stats: {
|
|
169
|
+
memoryFree: number;
|
|
170
|
+
uptime: number;
|
|
171
|
+
};
|
|
172
|
+
info: {
|
|
173
|
+
type: string;
|
|
174
|
+
version: string;
|
|
175
|
+
platform: string;
|
|
176
|
+
arch: string;
|
|
177
|
+
cpus: number;
|
|
178
|
+
cpuModel: string;
|
|
179
|
+
memoryTotal: number;
|
|
180
|
+
hostname: string;
|
|
181
|
+
release: string;
|
|
182
|
+
networkInterfaces: string[];
|
|
183
|
+
};
|
|
184
|
+
}>>;
|
|
108
185
|
}, "uuid" | "countryCode" | "name">, "strip", import("zod").ZodTypeAny, {
|
|
109
186
|
uuid: string;
|
|
110
187
|
countryCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B
|
|
1
|
+
{"version":3,"file":"infra-billing-available-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-available-node.schema.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAI1C,CAAC"}
|
|
@@ -44,9 +44,6 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
44
44
|
countryCode: z.ZodString;
|
|
45
45
|
consumptionMultiplier: z.ZodNumber;
|
|
46
46
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
47
|
-
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
48
|
-
cpuModel: z.ZodNullable<z.ZodString>;
|
|
49
|
-
totalRam: z.ZodNullable<z.ZodString>;
|
|
50
47
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
51
48
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
52
49
|
configProfile: z.ZodObject<{
|
|
@@ -128,6 +125,86 @@ export declare const InfraBillingNodeSchema: z.ZodObject<{
|
|
|
128
125
|
loginUrl: string | null;
|
|
129
126
|
}>>;
|
|
130
127
|
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
128
|
+
system: z.ZodNullable<z.ZodObject<{
|
|
129
|
+
info: z.ZodObject<{
|
|
130
|
+
arch: z.ZodString;
|
|
131
|
+
cpus: z.ZodNumber;
|
|
132
|
+
cpuModel: z.ZodString;
|
|
133
|
+
memoryTotal: z.ZodNumber;
|
|
134
|
+
hostname: z.ZodString;
|
|
135
|
+
platform: z.ZodString;
|
|
136
|
+
release: z.ZodString;
|
|
137
|
+
type: z.ZodString;
|
|
138
|
+
version: z.ZodString;
|
|
139
|
+
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
type: string;
|
|
142
|
+
version: string;
|
|
143
|
+
platform: string;
|
|
144
|
+
arch: string;
|
|
145
|
+
cpus: number;
|
|
146
|
+
cpuModel: string;
|
|
147
|
+
memoryTotal: number;
|
|
148
|
+
hostname: string;
|
|
149
|
+
release: string;
|
|
150
|
+
networkInterfaces: string[];
|
|
151
|
+
}, {
|
|
152
|
+
type: string;
|
|
153
|
+
version: string;
|
|
154
|
+
platform: string;
|
|
155
|
+
arch: string;
|
|
156
|
+
cpus: number;
|
|
157
|
+
cpuModel: string;
|
|
158
|
+
memoryTotal: number;
|
|
159
|
+
hostname: string;
|
|
160
|
+
release: string;
|
|
161
|
+
networkInterfaces: string[];
|
|
162
|
+
}>;
|
|
163
|
+
stats: z.ZodObject<{
|
|
164
|
+
memoryFree: z.ZodNumber;
|
|
165
|
+
uptime: z.ZodNumber;
|
|
166
|
+
}, "strip", z.ZodTypeAny, {
|
|
167
|
+
memoryFree: number;
|
|
168
|
+
uptime: number;
|
|
169
|
+
}, {
|
|
170
|
+
memoryFree: number;
|
|
171
|
+
uptime: number;
|
|
172
|
+
}>;
|
|
173
|
+
}, "strip", z.ZodTypeAny, {
|
|
174
|
+
stats: {
|
|
175
|
+
memoryFree: number;
|
|
176
|
+
uptime: number;
|
|
177
|
+
};
|
|
178
|
+
info: {
|
|
179
|
+
type: string;
|
|
180
|
+
version: string;
|
|
181
|
+
platform: string;
|
|
182
|
+
arch: string;
|
|
183
|
+
cpus: number;
|
|
184
|
+
cpuModel: string;
|
|
185
|
+
memoryTotal: number;
|
|
186
|
+
hostname: string;
|
|
187
|
+
release: string;
|
|
188
|
+
networkInterfaces: string[];
|
|
189
|
+
};
|
|
190
|
+
}, {
|
|
191
|
+
stats: {
|
|
192
|
+
memoryFree: number;
|
|
193
|
+
uptime: number;
|
|
194
|
+
};
|
|
195
|
+
info: {
|
|
196
|
+
type: string;
|
|
197
|
+
version: string;
|
|
198
|
+
platform: string;
|
|
199
|
+
arch: string;
|
|
200
|
+
cpus: number;
|
|
201
|
+
cpuModel: string;
|
|
202
|
+
memoryTotal: number;
|
|
203
|
+
hostname: string;
|
|
204
|
+
release: string;
|
|
205
|
+
networkInterfaces: string[];
|
|
206
|
+
};
|
|
207
|
+
}>>;
|
|
131
208
|
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
132
209
|
uuid: string;
|
|
133
210
|
countryCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB
|
|
1
|
+
{"version":3,"file":"infra-billing-node.schema.d.ts","sourceRoot":"","sources":["../../../models/infra-billing-node.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6BjC,CAAC"}
|
|
@@ -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
|
+
version: string;
|
|
16
|
+
platform: string;
|
|
17
|
+
arch: string;
|
|
18
|
+
cpus: number;
|
|
19
|
+
cpuModel: string;
|
|
20
|
+
memoryTotal: number;
|
|
21
|
+
hostname: string;
|
|
22
|
+
release: string;
|
|
23
|
+
networkInterfaces: string[];
|
|
24
|
+
}, {
|
|
25
|
+
type: string;
|
|
26
|
+
version: string;
|
|
27
|
+
platform: string;
|
|
28
|
+
arch: string;
|
|
29
|
+
cpus: number;
|
|
30
|
+
cpuModel: string;
|
|
31
|
+
memoryTotal: number;
|
|
32
|
+
hostname: string;
|
|
33
|
+
release: 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
|
+
version: string;
|
|
63
|
+
platform: string;
|
|
64
|
+
arch: string;
|
|
65
|
+
cpus: number;
|
|
66
|
+
cpuModel: string;
|
|
67
|
+
memoryTotal: number;
|
|
68
|
+
hostname: string;
|
|
69
|
+
release: string;
|
|
70
|
+
networkInterfaces: string[];
|
|
71
|
+
}, {
|
|
72
|
+
type: string;
|
|
73
|
+
version: string;
|
|
74
|
+
platform: string;
|
|
75
|
+
arch: string;
|
|
76
|
+
cpus: number;
|
|
77
|
+
cpuModel: string;
|
|
78
|
+
memoryTotal: number;
|
|
79
|
+
hostname: string;
|
|
80
|
+
release: 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
|
+
version: string;
|
|
101
|
+
platform: string;
|
|
102
|
+
arch: string;
|
|
103
|
+
cpus: number;
|
|
104
|
+
cpuModel: string;
|
|
105
|
+
memoryTotal: number;
|
|
106
|
+
hostname: string;
|
|
107
|
+
release: string;
|
|
108
|
+
networkInterfaces: string[];
|
|
109
|
+
};
|
|
110
|
+
}, {
|
|
111
|
+
stats: {
|
|
112
|
+
memoryFree: number;
|
|
113
|
+
uptime: number;
|
|
114
|
+
};
|
|
115
|
+
info: {
|
|
116
|
+
type: string;
|
|
117
|
+
version: string;
|
|
118
|
+
platform: string;
|
|
119
|
+
arch: string;
|
|
120
|
+
cpus: number;
|
|
121
|
+
cpuModel: string;
|
|
122
|
+
memoryTotal: number;
|
|
123
|
+
hostname: string;
|
|
124
|
+
release: 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"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.NodeSystemSchema = exports.NodeSystemStatsSchema = exports.NodeSystemInfoSchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.NodeSystemInfoSchema = zod_1.z.object({
|
|
6
|
+
arch: zod_1.z.string(),
|
|
7
|
+
cpus: zod_1.z.number().int(),
|
|
8
|
+
cpuModel: zod_1.z.string(),
|
|
9
|
+
memoryTotal: zod_1.z.number(),
|
|
10
|
+
hostname: zod_1.z.string(),
|
|
11
|
+
platform: zod_1.z.string(),
|
|
12
|
+
release: zod_1.z.string(),
|
|
13
|
+
type: zod_1.z.string(),
|
|
14
|
+
version: zod_1.z.string(),
|
|
15
|
+
networkInterfaces: zod_1.z.array(zod_1.z.string()),
|
|
16
|
+
});
|
|
17
|
+
exports.NodeSystemStatsSchema = zod_1.z.object({
|
|
18
|
+
memoryFree: zod_1.z.number(),
|
|
19
|
+
uptime: zod_1.z.number(),
|
|
20
|
+
});
|
|
21
|
+
exports.NodeSystemSchema = zod_1.z.object({
|
|
22
|
+
info: exports.NodeSystemInfoSchema,
|
|
23
|
+
stats: exports.NodeSystemStatsSchema,
|
|
24
|
+
});
|
|
@@ -22,9 +22,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
22
22
|
countryCode: z.ZodString;
|
|
23
23
|
consumptionMultiplier: z.ZodNumber;
|
|
24
24
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
25
|
-
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
26
|
-
cpuModel: z.ZodNullable<z.ZodString>;
|
|
27
|
-
totalRam: z.ZodNullable<z.ZodString>;
|
|
28
25
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
29
26
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
30
27
|
configProfile: z.ZodObject<{
|
|
@@ -106,8 +103,106 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
106
103
|
loginUrl: string | null;
|
|
107
104
|
}>>;
|
|
108
105
|
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
106
|
+
system: z.ZodNullable<z.ZodObject<{
|
|
107
|
+
info: z.ZodObject<{
|
|
108
|
+
arch: z.ZodString;
|
|
109
|
+
cpus: z.ZodNumber;
|
|
110
|
+
cpuModel: z.ZodString;
|
|
111
|
+
memoryTotal: z.ZodNumber;
|
|
112
|
+
hostname: z.ZodString;
|
|
113
|
+
platform: z.ZodString;
|
|
114
|
+
release: z.ZodString;
|
|
115
|
+
type: z.ZodString;
|
|
116
|
+
version: z.ZodString;
|
|
117
|
+
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
118
|
+
}, "strip", z.ZodTypeAny, {
|
|
119
|
+
type: string;
|
|
120
|
+
version: string;
|
|
121
|
+
platform: string;
|
|
122
|
+
arch: string;
|
|
123
|
+
cpus: number;
|
|
124
|
+
cpuModel: string;
|
|
125
|
+
memoryTotal: number;
|
|
126
|
+
hostname: string;
|
|
127
|
+
release: string;
|
|
128
|
+
networkInterfaces: string[];
|
|
129
|
+
}, {
|
|
130
|
+
type: string;
|
|
131
|
+
version: string;
|
|
132
|
+
platform: string;
|
|
133
|
+
arch: string;
|
|
134
|
+
cpus: number;
|
|
135
|
+
cpuModel: string;
|
|
136
|
+
memoryTotal: number;
|
|
137
|
+
hostname: string;
|
|
138
|
+
release: string;
|
|
139
|
+
networkInterfaces: string[];
|
|
140
|
+
}>;
|
|
141
|
+
stats: z.ZodObject<{
|
|
142
|
+
memoryFree: z.ZodNumber;
|
|
143
|
+
uptime: z.ZodNumber;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
memoryFree: number;
|
|
146
|
+
uptime: number;
|
|
147
|
+
}, {
|
|
148
|
+
memoryFree: number;
|
|
149
|
+
uptime: number;
|
|
150
|
+
}>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
stats: {
|
|
153
|
+
memoryFree: number;
|
|
154
|
+
uptime: number;
|
|
155
|
+
};
|
|
156
|
+
info: {
|
|
157
|
+
type: string;
|
|
158
|
+
version: string;
|
|
159
|
+
platform: string;
|
|
160
|
+
arch: string;
|
|
161
|
+
cpus: number;
|
|
162
|
+
cpuModel: string;
|
|
163
|
+
memoryTotal: number;
|
|
164
|
+
hostname: string;
|
|
165
|
+
release: string;
|
|
166
|
+
networkInterfaces: string[];
|
|
167
|
+
};
|
|
168
|
+
}, {
|
|
169
|
+
stats: {
|
|
170
|
+
memoryFree: number;
|
|
171
|
+
uptime: number;
|
|
172
|
+
};
|
|
173
|
+
info: {
|
|
174
|
+
type: string;
|
|
175
|
+
version: string;
|
|
176
|
+
platform: string;
|
|
177
|
+
arch: string;
|
|
178
|
+
cpus: number;
|
|
179
|
+
cpuModel: string;
|
|
180
|
+
memoryTotal: number;
|
|
181
|
+
hostname: string;
|
|
182
|
+
release: string;
|
|
183
|
+
networkInterfaces: string[];
|
|
184
|
+
};
|
|
185
|
+
}>>;
|
|
109
186
|
}, "strip", z.ZodTypeAny, {
|
|
110
187
|
tags: string[];
|
|
188
|
+
system: {
|
|
189
|
+
stats: {
|
|
190
|
+
memoryFree: number;
|
|
191
|
+
uptime: number;
|
|
192
|
+
};
|
|
193
|
+
info: {
|
|
194
|
+
type: string;
|
|
195
|
+
version: string;
|
|
196
|
+
platform: string;
|
|
197
|
+
arch: string;
|
|
198
|
+
cpus: number;
|
|
199
|
+
cpuModel: string;
|
|
200
|
+
memoryTotal: number;
|
|
201
|
+
hostname: string;
|
|
202
|
+
release: string;
|
|
203
|
+
networkInterfaces: string[];
|
|
204
|
+
};
|
|
205
|
+
} | null;
|
|
111
206
|
uuid: string;
|
|
112
207
|
createdAt: Date;
|
|
113
208
|
updatedAt: Date;
|
|
@@ -139,9 +234,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
139
234
|
notifyPercent: number | null;
|
|
140
235
|
usersOnline: number | null;
|
|
141
236
|
consumptionMultiplier: number;
|
|
142
|
-
cpuCount: number | null;
|
|
143
|
-
cpuModel: string | null;
|
|
144
|
-
totalRam: string | null;
|
|
145
237
|
configProfile: {
|
|
146
238
|
activeConfigProfileUuid: string | null;
|
|
147
239
|
activeInbounds: {
|
|
@@ -159,6 +251,24 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
159
251
|
activePluginUuid: string | null;
|
|
160
252
|
}, {
|
|
161
253
|
tags: string[];
|
|
254
|
+
system: {
|
|
255
|
+
stats: {
|
|
256
|
+
memoryFree: number;
|
|
257
|
+
uptime: number;
|
|
258
|
+
};
|
|
259
|
+
info: {
|
|
260
|
+
type: string;
|
|
261
|
+
version: string;
|
|
262
|
+
platform: string;
|
|
263
|
+
arch: string;
|
|
264
|
+
cpus: number;
|
|
265
|
+
cpuModel: string;
|
|
266
|
+
memoryTotal: number;
|
|
267
|
+
hostname: string;
|
|
268
|
+
release: string;
|
|
269
|
+
networkInterfaces: string[];
|
|
270
|
+
};
|
|
271
|
+
} | null;
|
|
162
272
|
uuid: string;
|
|
163
273
|
createdAt: string;
|
|
164
274
|
updatedAt: string;
|
|
@@ -190,9 +300,6 @@ export declare const NodesSchema: z.ZodObject<{
|
|
|
190
300
|
notifyPercent: number | null;
|
|
191
301
|
usersOnline: number | null;
|
|
192
302
|
consumptionMultiplier: number;
|
|
193
|
-
cpuCount: number | null;
|
|
194
|
-
cpuModel: string | null;
|
|
195
|
-
totalRam: string | null;
|
|
196
303
|
configProfile: {
|
|
197
304
|
activeConfigProfileUuid: string | null;
|
|
198
305
|
activeInbounds: {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;
|
|
1
|
+
{"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDtB,CAAC"}
|
|
@@ -4,6 +4,7 @@ exports.NodesSchema = void 0;
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const config_profile_inbounds_schema_1 = require("./config-profile-inbounds.schema");
|
|
6
6
|
const infra_provider_schema_1 = require("./infra-provider.schema");
|
|
7
|
+
const node_system_schema_1 = require("./node-system.schema");
|
|
7
8
|
exports.NodesSchema = zod_1.z.object({
|
|
8
9
|
uuid: zod_1.z.string().uuid(),
|
|
9
10
|
name: zod_1.z.string(),
|
|
@@ -30,9 +31,6 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
30
31
|
countryCode: zod_1.z.string(),
|
|
31
32
|
consumptionMultiplier: zod_1.z.number(),
|
|
32
33
|
tags: zod_1.z.array(zod_1.z.string()),
|
|
33
|
-
cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
|
|
34
|
-
cpuModel: zod_1.z.nullable(zod_1.z.string()),
|
|
35
|
-
totalRam: zod_1.z.nullable(zod_1.z.string()),
|
|
36
34
|
createdAt: zod_1.z
|
|
37
35
|
.string()
|
|
38
36
|
.datetime()
|
|
@@ -48,4 +46,5 @@ exports.NodesSchema = zod_1.z.object({
|
|
|
48
46
|
providerUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
|
49
47
|
provider: zod_1.z.nullable(infra_provider_schema_1.PartialInfraProviderSchema),
|
|
50
48
|
activePluginUuid: zod_1.z.nullable(zod_1.z.string().uuid()),
|
|
49
|
+
system: zod_1.z.nullable(node_system_schema_1.NodeSystemSchema),
|
|
51
50
|
});
|
|
@@ -98,9 +98,6 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
98
98
|
countryCode: z.ZodString;
|
|
99
99
|
consumptionMultiplier: z.ZodNumber;
|
|
100
100
|
tags: z.ZodArray<z.ZodString, "many">;
|
|
101
|
-
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
102
|
-
cpuModel: z.ZodNullable<z.ZodString>;
|
|
103
|
-
totalRam: z.ZodNullable<z.ZodString>;
|
|
104
101
|
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
105
102
|
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
106
103
|
configProfile: z.ZodObject<{
|
|
@@ -182,6 +179,86 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
182
179
|
loginUrl: string | null;
|
|
183
180
|
}>>;
|
|
184
181
|
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
182
|
+
system: z.ZodNullable<z.ZodObject<{
|
|
183
|
+
info: z.ZodObject<{
|
|
184
|
+
arch: z.ZodString;
|
|
185
|
+
cpus: z.ZodNumber;
|
|
186
|
+
cpuModel: z.ZodString;
|
|
187
|
+
memoryTotal: z.ZodNumber;
|
|
188
|
+
hostname: z.ZodString;
|
|
189
|
+
platform: z.ZodString;
|
|
190
|
+
release: z.ZodString;
|
|
191
|
+
type: z.ZodString;
|
|
192
|
+
version: z.ZodString;
|
|
193
|
+
networkInterfaces: z.ZodArray<z.ZodString, "many">;
|
|
194
|
+
}, "strip", z.ZodTypeAny, {
|
|
195
|
+
type: string;
|
|
196
|
+
version: string;
|
|
197
|
+
platform: string;
|
|
198
|
+
arch: string;
|
|
199
|
+
cpus: number;
|
|
200
|
+
cpuModel: string;
|
|
201
|
+
memoryTotal: number;
|
|
202
|
+
hostname: string;
|
|
203
|
+
release: string;
|
|
204
|
+
networkInterfaces: string[];
|
|
205
|
+
}, {
|
|
206
|
+
type: string;
|
|
207
|
+
version: string;
|
|
208
|
+
platform: string;
|
|
209
|
+
arch: string;
|
|
210
|
+
cpus: number;
|
|
211
|
+
cpuModel: string;
|
|
212
|
+
memoryTotal: number;
|
|
213
|
+
hostname: string;
|
|
214
|
+
release: string;
|
|
215
|
+
networkInterfaces: string[];
|
|
216
|
+
}>;
|
|
217
|
+
stats: z.ZodObject<{
|
|
218
|
+
memoryFree: z.ZodNumber;
|
|
219
|
+
uptime: z.ZodNumber;
|
|
220
|
+
}, "strip", z.ZodTypeAny, {
|
|
221
|
+
memoryFree: number;
|
|
222
|
+
uptime: number;
|
|
223
|
+
}, {
|
|
224
|
+
memoryFree: number;
|
|
225
|
+
uptime: number;
|
|
226
|
+
}>;
|
|
227
|
+
}, "strip", z.ZodTypeAny, {
|
|
228
|
+
stats: {
|
|
229
|
+
memoryFree: number;
|
|
230
|
+
uptime: number;
|
|
231
|
+
};
|
|
232
|
+
info: {
|
|
233
|
+
type: string;
|
|
234
|
+
version: string;
|
|
235
|
+
platform: string;
|
|
236
|
+
arch: string;
|
|
237
|
+
cpus: number;
|
|
238
|
+
cpuModel: string;
|
|
239
|
+
memoryTotal: number;
|
|
240
|
+
hostname: string;
|
|
241
|
+
release: string;
|
|
242
|
+
networkInterfaces: string[];
|
|
243
|
+
};
|
|
244
|
+
}, {
|
|
245
|
+
stats: {
|
|
246
|
+
memoryFree: number;
|
|
247
|
+
uptime: number;
|
|
248
|
+
};
|
|
249
|
+
info: {
|
|
250
|
+
type: string;
|
|
251
|
+
version: string;
|
|
252
|
+
platform: string;
|
|
253
|
+
arch: string;
|
|
254
|
+
cpus: number;
|
|
255
|
+
cpuModel: string;
|
|
256
|
+
memoryTotal: number;
|
|
257
|
+
hostname: string;
|
|
258
|
+
release: string;
|
|
259
|
+
networkInterfaces: string[];
|
|
260
|
+
};
|
|
261
|
+
}>>;
|
|
185
262
|
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
186
263
|
uuid: string;
|
|
187
264
|
countryCode: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"torrent-blocker-report.schema.d.ts","sourceRoot":"","sources":["../../../models/torrent-blocker-report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"torrent-blocker-report.schema.d.ts","sourceRoot":"","sources":["../../../models/torrent-blocker-report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDrC,CAAC"}
|