@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.
Files changed (56) hide show
  1. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +160 -6
  2. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  3. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +160 -6
  4. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  5. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +160 -6
  6. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  7. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +160 -6
  8. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  9. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +80 -3
  10. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
  11. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +80 -3
  12. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
  13. package/build/backend/commands/nodes/actions/disable.command.d.ts +152 -15
  14. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  15. package/build/backend/commands/nodes/actions/enable.command.d.ts +152 -15
  16. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  17. package/build/backend/commands/nodes/actions/reorder.command.d.ts +232 -18
  18. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  19. package/build/backend/commands/nodes/create.command.d.ts +152 -15
  20. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/nodes/get-all.command.d.ts +152 -15
  22. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  23. package/build/backend/commands/nodes/get-one.command.d.ts +152 -15
  24. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  25. package/build/backend/commands/nodes/update.command.d.ts +232 -18
  26. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  27. package/build/backend/commands/system/get-remnawave-health.command.d.ts +6 -6
  28. package/build/backend/commands/system/get-stats.command.d.ts +4 -25
  29. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  30. package/build/backend/commands/system/get-stats.command.js +0 -3
  31. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +6 -5
  32. package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
  33. package/build/backend/constants/cache-keys/cache-keys.constants.js +6 -5
  34. package/build/backend/models/index.d.ts +1 -0
  35. package/build/backend/models/index.d.ts.map +1 -1
  36. package/build/backend/models/index.js +1 -0
  37. package/build/backend/models/infra-billing-available-node.schema.d.ts +80 -3
  38. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  39. package/build/backend/models/infra-billing-node.schema.d.ts +80 -3
  40. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  41. package/build/backend/models/node-system.schema.d.ts +129 -0
  42. package/build/backend/models/node-system.schema.d.ts.map +1 -0
  43. package/build/backend/models/node-system.schema.js +24 -0
  44. package/build/backend/models/nodes.schema.d.ts +116 -9
  45. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  46. package/build/backend/models/nodes.schema.js +2 -3
  47. package/build/backend/models/torrent-blocker-report.schema.d.ts +80 -3
  48. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
  49. package/build/backend/models/webhook/webhook.schema.d.ts +680 -72
  50. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  51. package/build/frontend/commands/system/get-stats.command.js +0 -3
  52. package/build/frontend/constants/cache-keys/cache-keys.constants.js +6 -5
  53. package/build/frontend/models/index.js +1 -0
  54. package/build/frontend/models/node-system.schema.js +24 -0
  55. package/build/frontend/models/nodes.schema.js +2 -3
  56. package/package.json +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -26,9 +26,6 @@ export declare namespace UpdateNodeCommand {
26
26
  countryCode: z.ZodString;
27
27
  consumptionMultiplier: z.ZodNumber;
28
28
  tags: z.ZodArray<z.ZodString, "many">;
29
- cpuCount: z.ZodNullable<z.ZodNumber>;
30
- cpuModel: z.ZodNullable<z.ZodString>;
31
- totalRam: z.ZodNullable<z.ZodString>;
32
29
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
30
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
31
  configProfile: z.ZodObject<{
@@ -110,6 +107,86 @@ export declare namespace UpdateNodeCommand {
110
107
  loginUrl: string | null;
111
108
  }>>;
112
109
  activePluginUuid: z.ZodNullable<z.ZodString>;
110
+ system: z.ZodNullable<z.ZodObject<{
111
+ info: z.ZodObject<{
112
+ arch: z.ZodString;
113
+ cpus: z.ZodNumber;
114
+ cpuModel: z.ZodString;
115
+ memoryTotal: z.ZodNumber;
116
+ hostname: z.ZodString;
117
+ platform: z.ZodString;
118
+ release: z.ZodString;
119
+ type: z.ZodString;
120
+ version: z.ZodString;
121
+ networkInterfaces: z.ZodArray<z.ZodString, "many">;
122
+ }, "strip", z.ZodTypeAny, {
123
+ type: string;
124
+ version: string;
125
+ platform: string;
126
+ arch: string;
127
+ cpus: number;
128
+ cpuModel: string;
129
+ memoryTotal: number;
130
+ hostname: string;
131
+ release: string;
132
+ networkInterfaces: string[];
133
+ }, {
134
+ type: string;
135
+ version: string;
136
+ platform: string;
137
+ arch: string;
138
+ cpus: number;
139
+ cpuModel: string;
140
+ memoryTotal: number;
141
+ hostname: string;
142
+ release: string;
143
+ networkInterfaces: string[];
144
+ }>;
145
+ stats: z.ZodObject<{
146
+ memoryFree: z.ZodNumber;
147
+ uptime: z.ZodNumber;
148
+ }, "strip", z.ZodTypeAny, {
149
+ memoryFree: number;
150
+ uptime: number;
151
+ }, {
152
+ memoryFree: number;
153
+ uptime: number;
154
+ }>;
155
+ }, "strip", z.ZodTypeAny, {
156
+ stats: {
157
+ memoryFree: number;
158
+ uptime: number;
159
+ };
160
+ info: {
161
+ type: string;
162
+ version: string;
163
+ platform: string;
164
+ arch: string;
165
+ cpus: number;
166
+ cpuModel: string;
167
+ memoryTotal: number;
168
+ hostname: string;
169
+ release: string;
170
+ networkInterfaces: string[];
171
+ };
172
+ }, {
173
+ stats: {
174
+ memoryFree: number;
175
+ uptime: number;
176
+ };
177
+ info: {
178
+ type: string;
179
+ version: string;
180
+ platform: string;
181
+ arch: string;
182
+ cpus: number;
183
+ cpuModel: string;
184
+ memoryTotal: number;
185
+ hostname: string;
186
+ release: string;
187
+ networkInterfaces: string[];
188
+ };
189
+ }>>;
113
190
  }, "uuid"> & {
114
191
  name: z.ZodOptional<z.ZodString>;
115
192
  address: z.ZodOptional<z.ZodString>;
@@ -195,9 +272,6 @@ export declare namespace UpdateNodeCommand {
195
272
  countryCode: z.ZodString;
196
273
  consumptionMultiplier: z.ZodNumber;
197
274
  tags: z.ZodArray<z.ZodString, "many">;
198
- cpuCount: z.ZodNullable<z.ZodNumber>;
199
- cpuModel: z.ZodNullable<z.ZodString>;
200
- totalRam: z.ZodNullable<z.ZodString>;
201
275
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
202
276
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
203
277
  configProfile: z.ZodObject<{
@@ -279,8 +353,106 @@ export declare namespace UpdateNodeCommand {
279
353
  loginUrl: string | null;
280
354
  }>>;
281
355
  activePluginUuid: z.ZodNullable<z.ZodString>;
356
+ system: z.ZodNullable<z.ZodObject<{
357
+ info: z.ZodObject<{
358
+ arch: z.ZodString;
359
+ cpus: z.ZodNumber;
360
+ cpuModel: z.ZodString;
361
+ memoryTotal: z.ZodNumber;
362
+ hostname: z.ZodString;
363
+ platform: z.ZodString;
364
+ release: z.ZodString;
365
+ type: z.ZodString;
366
+ version: z.ZodString;
367
+ networkInterfaces: z.ZodArray<z.ZodString, "many">;
368
+ }, "strip", z.ZodTypeAny, {
369
+ type: string;
370
+ version: string;
371
+ platform: string;
372
+ arch: string;
373
+ cpus: number;
374
+ cpuModel: string;
375
+ memoryTotal: number;
376
+ hostname: string;
377
+ release: string;
378
+ networkInterfaces: string[];
379
+ }, {
380
+ type: string;
381
+ version: string;
382
+ platform: string;
383
+ arch: string;
384
+ cpus: number;
385
+ cpuModel: string;
386
+ memoryTotal: number;
387
+ hostname: string;
388
+ release: string;
389
+ networkInterfaces: string[];
390
+ }>;
391
+ stats: z.ZodObject<{
392
+ memoryFree: z.ZodNumber;
393
+ uptime: z.ZodNumber;
394
+ }, "strip", z.ZodTypeAny, {
395
+ memoryFree: number;
396
+ uptime: number;
397
+ }, {
398
+ memoryFree: number;
399
+ uptime: number;
400
+ }>;
401
+ }, "strip", z.ZodTypeAny, {
402
+ stats: {
403
+ memoryFree: number;
404
+ uptime: number;
405
+ };
406
+ info: {
407
+ type: string;
408
+ version: string;
409
+ platform: string;
410
+ arch: string;
411
+ cpus: number;
412
+ cpuModel: string;
413
+ memoryTotal: number;
414
+ hostname: string;
415
+ release: string;
416
+ networkInterfaces: string[];
417
+ };
418
+ }, {
419
+ stats: {
420
+ memoryFree: number;
421
+ uptime: number;
422
+ };
423
+ info: {
424
+ type: string;
425
+ version: string;
426
+ platform: string;
427
+ arch: string;
428
+ cpus: number;
429
+ cpuModel: string;
430
+ memoryTotal: number;
431
+ hostname: string;
432
+ release: string;
433
+ networkInterfaces: string[];
434
+ };
435
+ }>>;
282
436
  }, "strip", z.ZodTypeAny, {
283
437
  tags: string[];
438
+ system: {
439
+ stats: {
440
+ memoryFree: number;
441
+ uptime: number;
442
+ };
443
+ info: {
444
+ type: string;
445
+ version: string;
446
+ platform: string;
447
+ arch: string;
448
+ cpus: number;
449
+ cpuModel: string;
450
+ memoryTotal: number;
451
+ hostname: string;
452
+ release: string;
453
+ networkInterfaces: string[];
454
+ };
455
+ } | null;
284
456
  uuid: string;
285
457
  createdAt: Date;
286
458
  updatedAt: Date;
@@ -312,9 +484,6 @@ export declare namespace UpdateNodeCommand {
312
484
  notifyPercent: number | null;
313
485
  usersOnline: number | null;
314
486
  consumptionMultiplier: number;
315
- cpuCount: number | null;
316
- cpuModel: string | null;
317
- totalRam: string | null;
318
487
  configProfile: {
319
488
  activeConfigProfileUuid: string | null;
320
489
  activeInbounds: {
@@ -332,6 +501,24 @@ export declare namespace UpdateNodeCommand {
332
501
  activePluginUuid: string | null;
333
502
  }, {
334
503
  tags: string[];
504
+ system: {
505
+ stats: {
506
+ memoryFree: number;
507
+ uptime: number;
508
+ };
509
+ info: {
510
+ type: string;
511
+ version: string;
512
+ platform: string;
513
+ arch: string;
514
+ cpus: number;
515
+ cpuModel: string;
516
+ memoryTotal: number;
517
+ hostname: string;
518
+ release: string;
519
+ networkInterfaces: string[];
520
+ };
521
+ } | null;
335
522
  uuid: string;
336
523
  createdAt: string;
337
524
  updatedAt: string;
@@ -363,9 +550,6 @@ export declare namespace UpdateNodeCommand {
363
550
  notifyPercent: number | null;
364
551
  usersOnline: number | null;
365
552
  consumptionMultiplier: number;
366
- cpuCount: number | null;
367
- cpuModel: string | null;
368
- totalRam: string | null;
369
553
  configProfile: {
370
554
  activeConfigProfileUuid: string | null;
371
555
  activeInbounds: {
@@ -385,6 +569,24 @@ export declare namespace UpdateNodeCommand {
385
569
  }, "strip", z.ZodTypeAny, {
386
570
  response: {
387
571
  tags: string[];
572
+ system: {
573
+ stats: {
574
+ memoryFree: number;
575
+ uptime: number;
576
+ };
577
+ info: {
578
+ type: string;
579
+ version: string;
580
+ platform: string;
581
+ arch: string;
582
+ cpus: number;
583
+ cpuModel: string;
584
+ memoryTotal: number;
585
+ hostname: string;
586
+ release: string;
587
+ networkInterfaces: string[];
588
+ };
589
+ } | null;
388
590
  uuid: string;
389
591
  createdAt: Date;
390
592
  updatedAt: Date;
@@ -416,9 +618,6 @@ export declare namespace UpdateNodeCommand {
416
618
  notifyPercent: number | null;
417
619
  usersOnline: number | null;
418
620
  consumptionMultiplier: number;
419
- cpuCount: number | null;
420
- cpuModel: string | null;
421
- totalRam: string | null;
422
621
  configProfile: {
423
622
  activeConfigProfileUuid: string | null;
424
623
  activeInbounds: {
@@ -438,6 +637,24 @@ export declare namespace UpdateNodeCommand {
438
637
  }, {
439
638
  response: {
440
639
  tags: string[];
640
+ system: {
641
+ stats: {
642
+ memoryFree: number;
643
+ uptime: number;
644
+ };
645
+ info: {
646
+ type: string;
647
+ version: string;
648
+ platform: string;
649
+ arch: string;
650
+ cpus: number;
651
+ cpuModel: string;
652
+ memoryTotal: number;
653
+ hostname: string;
654
+ release: string;
655
+ networkInterfaces: string[];
656
+ };
657
+ } | null;
441
658
  uuid: string;
442
659
  createdAt: string;
443
660
  updatedAt: string;
@@ -469,9 +686,6 @@ export declare namespace UpdateNodeCommand {
469
686
  notifyPercent: number | null;
470
687
  usersOnline: number | null;
471
688
  consumptionMultiplier: number;
472
- cpuCount: number | null;
473
- cpuModel: string | null;
474
- totalRam: string | null;
475
689
  configProfile: {
476
690
  activeConfigProfileUuid: string | null;
477
691
  activeInbounds: {
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2DxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -20,6 +20,7 @@ export declare namespace GetRemnawaveHealthCommand {
20
20
  instanceId: z.ZodString;
21
21
  instanceType: z.ZodString;
22
22
  }, "strip", z.ZodTypeAny, {
23
+ uptime: number;
23
24
  timestamp: number;
24
25
  rss: number;
25
26
  heapUsed: number;
@@ -29,11 +30,11 @@ export declare namespace GetRemnawaveHealthCommand {
29
30
  eventLoopDelayMs: number;
30
31
  eventLoopP99Ms: number;
31
32
  activeHandles: number;
32
- uptime: number;
33
33
  pid: number;
34
34
  instanceId: string;
35
35
  instanceType: string;
36
36
  }, {
37
+ uptime: number;
37
38
  timestamp: number;
38
39
  rss: number;
39
40
  heapUsed: number;
@@ -43,13 +44,13 @@ export declare namespace GetRemnawaveHealthCommand {
43
44
  eventLoopDelayMs: number;
44
45
  eventLoopP99Ms: number;
45
46
  activeHandles: number;
46
- uptime: number;
47
47
  pid: number;
48
48
  instanceId: string;
49
49
  instanceType: string;
50
50
  }>, "many">;
51
51
  }, "strip", z.ZodTypeAny, {
52
52
  runtimeMetrics: {
53
+ uptime: number;
53
54
  timestamp: number;
54
55
  rss: number;
55
56
  heapUsed: number;
@@ -59,13 +60,13 @@ export declare namespace GetRemnawaveHealthCommand {
59
60
  eventLoopDelayMs: number;
60
61
  eventLoopP99Ms: number;
61
62
  activeHandles: number;
62
- uptime: number;
63
63
  pid: number;
64
64
  instanceId: string;
65
65
  instanceType: string;
66
66
  }[];
67
67
  }, {
68
68
  runtimeMetrics: {
69
+ uptime: number;
69
70
  timestamp: number;
70
71
  rss: number;
71
72
  heapUsed: number;
@@ -75,7 +76,6 @@ export declare namespace GetRemnawaveHealthCommand {
75
76
  eventLoopDelayMs: number;
76
77
  eventLoopP99Ms: number;
77
78
  activeHandles: number;
78
- uptime: number;
79
79
  pid: number;
80
80
  instanceId: string;
81
81
  instanceType: string;
@@ -84,6 +84,7 @@ export declare namespace GetRemnawaveHealthCommand {
84
84
  }, "strip", z.ZodTypeAny, {
85
85
  response: {
86
86
  runtimeMetrics: {
87
+ uptime: number;
87
88
  timestamp: number;
88
89
  rss: number;
89
90
  heapUsed: number;
@@ -93,7 +94,6 @@ export declare namespace GetRemnawaveHealthCommand {
93
94
  eventLoopDelayMs: number;
94
95
  eventLoopP99Ms: number;
95
96
  activeHandles: number;
96
- uptime: number;
97
97
  pid: number;
98
98
  instanceId: string;
99
99
  instanceType: string;
@@ -102,6 +102,7 @@ export declare namespace GetRemnawaveHealthCommand {
102
102
  }, {
103
103
  response: {
104
104
  runtimeMetrics: {
105
+ uptime: number;
105
106
  timestamp: number;
106
107
  rss: number;
107
108
  heapUsed: number;
@@ -111,7 +112,6 @@ export declare namespace GetRemnawaveHealthCommand {
111
112
  eventLoopDelayMs: number;
112
113
  eventLoopP99Ms: number;
113
114
  activeHandles: number;
114
- uptime: number;
115
115
  pid: number;
116
116
  instanceId: string;
117
117
  instanceType: string;
@@ -15,32 +15,23 @@ export declare namespace GetStatsCommand {
15
15
  response: z.ZodObject<{
16
16
  cpu: z.ZodObject<{
17
17
  cores: z.ZodNumber;
18
- physicalCores: z.ZodNumber;
19
18
  }, "strip", z.ZodTypeAny, {
20
19
  cores: number;
21
- physicalCores: number;
22
20
  }, {
23
21
  cores: number;
24
- physicalCores: number;
25
22
  }>;
26
23
  memory: z.ZodObject<{
27
24
  total: z.ZodNumber;
28
25
  free: z.ZodNumber;
29
26
  used: z.ZodNumber;
30
- active: z.ZodNumber;
31
- available: z.ZodNumber;
32
27
  }, "strip", z.ZodTypeAny, {
33
28
  total: number;
34
29
  free: number;
35
30
  used: number;
36
- active: number;
37
- available: number;
38
31
  }, {
39
32
  total: number;
40
33
  free: number;
41
34
  used: number;
42
- active: number;
43
- available: number;
44
35
  }>;
45
36
  uptime: z.ZodNumber;
46
37
  timestamp: z.ZodNumber;
@@ -89,18 +80,15 @@ export declare namespace GetStatsCommand {
89
80
  statusCounts: Record<string, number>;
90
81
  totalUsers: number;
91
82
  };
92
- timestamp: number;
93
83
  uptime: number;
84
+ timestamp: number;
94
85
  cpu: {
95
86
  cores: number;
96
- physicalCores: number;
97
87
  };
98
88
  memory: {
99
89
  total: number;
100
90
  free: number;
101
91
  used: number;
102
- active: number;
103
- available: number;
104
92
  };
105
93
  onlineStats: {
106
94
  lastDay: number;
@@ -117,18 +105,15 @@ export declare namespace GetStatsCommand {
117
105
  statusCounts: Record<string, number>;
118
106
  totalUsers: number;
119
107
  };
120
- timestamp: number;
121
108
  uptime: number;
109
+ timestamp: number;
122
110
  cpu: {
123
111
  cores: number;
124
- physicalCores: number;
125
112
  };
126
113
  memory: {
127
114
  total: number;
128
115
  free: number;
129
116
  used: number;
130
- active: number;
131
- available: number;
132
117
  };
133
118
  onlineStats: {
134
119
  lastDay: number;
@@ -147,18 +132,15 @@ export declare namespace GetStatsCommand {
147
132
  statusCounts: Record<string, number>;
148
133
  totalUsers: number;
149
134
  };
150
- timestamp: number;
151
135
  uptime: number;
136
+ timestamp: number;
152
137
  cpu: {
153
138
  cores: number;
154
- physicalCores: number;
155
139
  };
156
140
  memory: {
157
141
  total: number;
158
142
  free: number;
159
143
  used: number;
160
- active: number;
161
- available: number;
162
144
  };
163
145
  onlineStats: {
164
146
  lastDay: number;
@@ -177,18 +159,15 @@ export declare namespace GetStatsCommand {
177
159
  statusCounts: Record<string, number>;
178
160
  totalUsers: number;
179
161
  };
180
- timestamp: number;
181
162
  uptime: number;
163
+ timestamp: number;
182
164
  cpu: {
183
165
  cores: number;
184
- physicalCores: number;
185
166
  };
186
167
  memory: {
187
168
  total: number;
188
169
  free: number;
189
170
  used: number;
190
- active: number;
191
- available: number;
192
171
  };
193
172
  onlineStats: {
194
173
  lastDay: number;
@@ -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;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,qBAAqC,CAAC;IAC/C,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAElD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiCzB,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;AAMxB,yBAAiB,eAAe,CAAC;IACtB,MAAM,GAAG,qBAAqC,CAAC;IAC/C,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,eAAe,2CAI3B,CAAC;IAEK,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"}
@@ -17,14 +17,11 @@ var GetStatsCommand;
17
17
  response: zod_1.z.object({
18
18
  cpu: zod_1.z.object({
19
19
  cores: zod_1.z.number(),
20
- physicalCores: zod_1.z.number(),
21
20
  }),
22
21
  memory: zod_1.z.object({
23
22
  total: zod_1.z.number(),
24
23
  free: zod_1.z.number(),
25
24
  used: zod_1.z.number(),
26
- active: zod_1.z.number(),
27
- available: zod_1.z.number(),
28
25
  }),
29
26
  uptime: zod_1.z.number(),
30
27
  timestamp: zod_1.z.number(),
@@ -6,13 +6,14 @@ export declare const CACHE_KEYS: {
6
6
  readonly PASSKEY_REGISTRATION_OPTIONS: (uuid: string) => string;
7
7
  readonly PASSKEY_AUTHENTICATION_OPTIONS: (uuid: string) => string;
8
8
  readonly REMNAWAVE_SETTINGS: "remnawave_settings";
9
- readonly SHORT_UUID_RANGE: "short_uuid_range";
9
+ readonly NODE_SYSTEM_INFO: (uuid: string) => string;
10
+ readonly NODE_SYSTEM_STATS: (uuid: string) => string;
10
11
  };
11
12
  export declare const CACHE_KEYS_TTL: {
12
- readonly REMNAWAVE_SETTINGS: 86400000;
13
- readonly EXTERNAL_SQUAD_SETTINGS: 3600000;
14
- readonly SUBSCRIPTION_SETTINGS: 3600000;
15
- readonly SHORT_UUID_RANGE: 86400000;
13
+ readonly REMNAWAVE_SETTINGS: 86400;
14
+ readonly EXTERNAL_SQUAD_SETTINGS: 3600;
15
+ readonly SUBSCRIPTION_SETTINGS: 3600;
16
+ readonly NODE_SYSTEM_STATS: 30;
16
17
  };
17
18
  export declare const INTERNAL_CACHE_KEYS: {
18
19
  readonly NODE_USER_USAGE_PREFIX: "node_user_usage:";
@@ -1 +1 @@
1
- {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;;CAGvC,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;uCAEF,MAAM;;;;CAK1B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;CAE1B,CAAC"}
1
+ {"version":3,"file":"cache-keys.constants.d.ts","sourceRoot":"","sources":["../../../../constants/cache-keys/cache-keys.constants.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,yBAAyB,EAAE,MAAM,0BAA0B,CAAC;AAErE,eAAO,MAAM,UAAU;;6CAEa,MAAM;2CACR,MAAM,QAAQ,yBAAyB;kDAEhC,MAAM;oDACJ,MAAM;;sCAEpB,MAAM;uCACL,MAAM;CAC1B,CAAC;AAEX,eAAO,MAAM,cAAc;;;;;CAKjB,CAAC;AAEX,eAAO,MAAM,mBAAmB;;uCAEF,MAAM;;;;CAK1B,CAAC;AAEX,eAAO,MAAM,uBAAuB;;CAE1B,CAAC"}
@@ -8,13 +8,14 @@ exports.CACHE_KEYS = {
8
8
  PASSKEY_REGISTRATION_OPTIONS: (uuid) => `passkey_registration_options:${uuid}`,
9
9
  PASSKEY_AUTHENTICATION_OPTIONS: (uuid) => `passkey_authentication_options:${uuid}`,
10
10
  REMNAWAVE_SETTINGS: 'remnawave_settings',
11
- SHORT_UUID_RANGE: 'short_uuid_range',
11
+ NODE_SYSTEM_INFO: (uuid) => `node_system_info:${uuid}`,
12
+ NODE_SYSTEM_STATS: (uuid) => `node_system_stats:${uuid}`,
12
13
  };
13
14
  exports.CACHE_KEYS_TTL = {
14
- REMNAWAVE_SETTINGS: 86400000, // 1 day
15
- EXTERNAL_SQUAD_SETTINGS: 3600000, // 1 hour
16
- SUBSCRIPTION_SETTINGS: 3600000, // 1 hour
17
- SHORT_UUID_RANGE: 86400000, // 1 day
15
+ REMNAWAVE_SETTINGS: 86400, // 1 day
16
+ EXTERNAL_SQUAD_SETTINGS: 3600, // 1 hour
17
+ SUBSCRIPTION_SETTINGS: 3600, // 1 hour
18
+ NODE_SYSTEM_STATS: 30, // 30 seconds
18
19
  };
19
20
  exports.INTERNAL_CACHE_KEYS = {
20
21
  NODE_USER_USAGE_PREFIX: 'node_user_usage:',
@@ -16,6 +16,7 @@ export * from './infra-provider.schema';
16
16
  export * from './internal-squad.schema';
17
17
  export * from './last-connected-node.schema';
18
18
  export * from './node-plugin.schema';
19
+ export * from './node-system.schema';
19
20
  export * from './nodes.schema';
20
21
  export * from './remnawave-settings';
21
22
  export * from './response-rules';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../models/index.ts"],"names":[],"mappings":"AAAA,cAAc,qBAAqB,CAAC;AACpC,cAAc,eAAe,CAAC;AAC9B,cAAc,8BAA8B,CAAC;AAC7C,cAAc,oBAAoB,CAAC;AACnC,cAAc,kCAAkC,CAAC;AACjD,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uCAAuC,CAAC;AACtD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,sBAAsB,CAAC;AACrC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC;AACjC,cAAc,mBAAmB,CAAC;AAClC,cAAc,kCAAkC,CAAC;AACjD,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,yBAAyB,CAAC;AACxC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iCAAiC,CAAC;AAChD,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,sBAAsB,CAAC"}
@@ -32,6 +32,7 @@ __exportStar(require("./infra-provider.schema"), exports);
32
32
  __exportStar(require("./internal-squad.schema"), exports);
33
33
  __exportStar(require("./last-connected-node.schema"), exports);
34
34
  __exportStar(require("./node-plugin.schema"), exports);
35
+ __exportStar(require("./node-system.schema"), exports);
35
36
  __exportStar(require("./nodes.schema"), exports);
36
37
  __exportStar(require("./remnawave-settings"), exports);
37
38
  __exportStar(require("./response-rules"), exports);