@remnawave/backend-contract 2.3.1 → 2.3.3

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 (47) hide show
  1. package/build/backend/commands/internal-squads/get-internal-squad-accessible-nodes.command.d.ts +6 -6
  2. package/build/backend/commands/nodes/stats/get-nodes-usage-by-range.command.d.ts +4 -4
  3. package/build/backend/commands/nodes/stats/get-realtime-usage.command.d.ts +4 -4
  4. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +52 -71
  5. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  6. package/build/backend/commands/system/get-nodes-metrics.command.d.ts +6 -6
  7. package/build/backend/commands/system/get-stats.command.d.ts +0 -7
  8. package/build/backend/commands/system/get-stats.command.d.ts.map +1 -1
  9. package/build/backend/commands/system/get-stats.command.js +0 -1
  10. package/build/backend/commands/users/actions/disable-user.command.d.ts +40 -53
  11. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  12. package/build/backend/commands/users/actions/enable-user.command.d.ts +40 -53
  13. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  14. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +40 -53
  15. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  16. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +40 -53
  17. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  18. package/build/backend/commands/users/create-user.command.d.ts +40 -53
  19. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  20. package/build/backend/commands/users/get-all-users.command.d.ts +52 -71
  21. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  22. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +40 -53
  23. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
  24. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +40 -53
  25. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  26. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +40 -53
  27. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
  28. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +40 -53
  29. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
  30. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +40 -53
  31. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  32. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +6 -6
  33. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +40 -53
  34. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  35. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  36. package/build/backend/commands/users/update-user.command.d.ts +40 -53
  37. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  38. package/build/backend/models/extended-users.schema.d.ts +28 -35
  39. package/build/backend/models/extended-users.schema.d.ts.map +1 -1
  40. package/build/backend/models/extended-users.schema.js +12 -2
  41. package/build/backend/models/users.schema.d.ts +0 -12
  42. package/build/backend/models/users.schema.d.ts.map +1 -1
  43. package/build/backend/models/users.schema.js +0 -10
  44. package/build/frontend/commands/system/get-stats.command.js +0 -1
  45. package/build/frontend/models/extended-users.schema.js +12 -2
  46. package/build/frontend/models/users.schema.js +0 -10
  47. package/package.json +1 -1
@@ -24,16 +24,16 @@ export declare namespace GetInternalSquadAccessibleNodesCommand {
24
24
  }, "strip", z.ZodTypeAny, {
25
25
  uuid: string;
26
26
  countryCode: string;
27
- nodeName: string;
28
27
  configProfileUuid: string;
29
28
  activeInbounds: string[];
29
+ nodeName: string;
30
30
  configProfileName: string;
31
31
  }, {
32
32
  uuid: string;
33
33
  countryCode: string;
34
- nodeName: string;
35
34
  configProfileUuid: string;
36
35
  activeInbounds: string[];
36
+ nodeName: string;
37
37
  configProfileName: string;
38
38
  }>, "many">;
39
39
  }, "strip", z.ZodTypeAny, {
@@ -41,9 +41,9 @@ export declare namespace GetInternalSquadAccessibleNodesCommand {
41
41
  accessibleNodes: {
42
42
  uuid: string;
43
43
  countryCode: string;
44
- nodeName: string;
45
44
  configProfileUuid: string;
46
45
  activeInbounds: string[];
46
+ nodeName: string;
47
47
  configProfileName: string;
48
48
  }[];
49
49
  }, {
@@ -51,9 +51,9 @@ export declare namespace GetInternalSquadAccessibleNodesCommand {
51
51
  accessibleNodes: {
52
52
  uuid: string;
53
53
  countryCode: string;
54
- nodeName: string;
55
54
  configProfileUuid: string;
56
55
  activeInbounds: string[];
56
+ nodeName: string;
57
57
  configProfileName: string;
58
58
  }[];
59
59
  }>;
@@ -63,9 +63,9 @@ export declare namespace GetInternalSquadAccessibleNodesCommand {
63
63
  accessibleNodes: {
64
64
  uuid: string;
65
65
  countryCode: string;
66
- nodeName: string;
67
66
  configProfileUuid: string;
68
67
  activeInbounds: string[];
68
+ nodeName: string;
69
69
  configProfileName: string;
70
70
  }[];
71
71
  };
@@ -75,9 +75,9 @@ export declare namespace GetInternalSquadAccessibleNodesCommand {
75
75
  accessibleNodes: {
76
76
  uuid: string;
77
77
  countryCode: string;
78
- nodeName: string;
79
78
  configProfileUuid: string;
80
79
  activeInbounds: string[];
80
+ nodeName: string;
81
81
  configProfileName: string;
82
82
  }[];
83
83
  };
@@ -28,8 +28,8 @@ export declare namespace GetNodesUsageByRangeCommand {
28
28
  date: z.ZodEffects<z.ZodString, Date, string>;
29
29
  }, "strip", z.ZodTypeAny, {
30
30
  date: Date;
31
- nodeName: string;
32
31
  nodeUuid: string;
32
+ nodeName: string;
33
33
  total: number;
34
34
  nodeCountryCode: string;
35
35
  totalDownload: number;
@@ -39,8 +39,8 @@ export declare namespace GetNodesUsageByRangeCommand {
39
39
  humanReadableTotalUpload: string;
40
40
  }, {
41
41
  date: string;
42
- nodeName: string;
43
42
  nodeUuid: string;
43
+ nodeName: string;
44
44
  total: number;
45
45
  nodeCountryCode: string;
46
46
  totalDownload: number;
@@ -52,8 +52,8 @@ export declare namespace GetNodesUsageByRangeCommand {
52
52
  }, "strip", z.ZodTypeAny, {
53
53
  response: {
54
54
  date: Date;
55
- nodeName: string;
56
55
  nodeUuid: string;
56
+ nodeName: string;
57
57
  total: number;
58
58
  nodeCountryCode: string;
59
59
  totalDownload: number;
@@ -65,8 +65,8 @@ export declare namespace GetNodesUsageByRangeCommand {
65
65
  }, {
66
66
  response: {
67
67
  date: string;
68
- nodeName: string;
69
68
  nodeUuid: string;
69
+ nodeName: string;
70
70
  total: number;
71
71
  nodeCountryCode: string;
72
72
  totalDownload: number;
@@ -16,8 +16,8 @@ export declare namespace GetNodesRealtimeUsageCommand {
16
16
  totalSpeedBps: z.ZodNumber;
17
17
  }, "strip", z.ZodTypeAny, {
18
18
  countryCode: string;
19
- nodeName: string;
20
19
  nodeUuid: string;
20
+ nodeName: string;
21
21
  downloadBytes: number;
22
22
  uploadBytes: number;
23
23
  totalBytes: number;
@@ -26,8 +26,8 @@ export declare namespace GetNodesRealtimeUsageCommand {
26
26
  totalSpeedBps: number;
27
27
  }, {
28
28
  countryCode: string;
29
- nodeName: string;
30
29
  nodeUuid: string;
30
+ nodeName: string;
31
31
  downloadBytes: number;
32
32
  uploadBytes: number;
33
33
  totalBytes: number;
@@ -38,8 +38,8 @@ export declare namespace GetNodesRealtimeUsageCommand {
38
38
  }, "strip", z.ZodTypeAny, {
39
39
  response: {
40
40
  countryCode: string;
41
- nodeName: string;
42
41
  nodeUuid: string;
42
+ nodeName: string;
43
43
  downloadBytes: number;
44
44
  uploadBytes: number;
45
45
  totalBytes: number;
@@ -50,8 +50,8 @@ export declare namespace GetNodesRealtimeUsageCommand {
50
50
  }, {
51
51
  response: {
52
52
  countryCode: string;
53
- nodeName: string;
54
53
  nodeUuid: string;
54
+ nodeName: string;
55
55
  downloadBytes: number;
56
56
  uploadBytes: number;
57
57
  totalBytes: number;
@@ -31,8 +31,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
31
31
  readonly LIMITED: "LIMITED";
32
32
  readonly EXPIRED: "EXPIRED";
33
33
  }>>;
34
- usedTrafficBytes: z.ZodNumber;
35
- lifetimeUsedTrafficBytes: z.ZodNumber;
36
34
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
37
35
  trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
38
36
  readonly NO_RESET: "NO_RESET";
@@ -43,7 +41,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
43
41
  subLastUserAgent: z.ZodNullable<z.ZodString>;
44
42
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
45
43
  expireAt: z.ZodEffects<z.ZodString, Date, string>;
46
- onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
47
44
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
48
45
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
49
46
  trojanPassword: z.ZodString;
@@ -54,7 +51,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
54
51
  telegramId: z.ZodNullable<z.ZodNumber>;
55
52
  email: z.ZodNullable<z.ZodString>;
56
53
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
57
- firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
58
54
  lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
59
55
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
60
56
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -71,19 +67,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
71
67
  externalSquadUuid: z.ZodNullable<z.ZodString>;
72
68
  } & {
73
69
  subscriptionUrl: z.ZodString;
74
- lastConnectedNode: z.ZodNullable<z.ZodObject<{
75
- connectedAt: z.ZodEffects<z.ZodString, Date, string>;
76
- nodeName: z.ZodString;
77
- countryCode: z.ZodString;
78
- }, "strip", z.ZodTypeAny, {
79
- countryCode: string;
80
- connectedAt: Date;
81
- nodeName: string;
82
- }, {
83
- countryCode: string;
84
- connectedAt: string;
85
- nodeName: string;
86
- }>>;
87
70
  happ: z.ZodObject<{
88
71
  cryptoLink: z.ZodString;
89
72
  }, "strip", z.ZodTypeAny, {
@@ -91,6 +74,22 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
91
74
  }, {
92
75
  cryptoLink: string;
93
76
  }>;
77
+ userTraffic: z.ZodObject<{
78
+ usedTrafficBytes: z.ZodNumber;
79
+ lifetimeUsedTrafficBytes: z.ZodNumber;
80
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
81
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
82
+ }, "strip", z.ZodTypeAny, {
83
+ usedTrafficBytes: number;
84
+ lifetimeUsedTrafficBytes: number;
85
+ onlineAt: Date | null;
86
+ firstConnectedAt: Date | null;
87
+ }, {
88
+ usedTrafficBytes: number;
89
+ lifetimeUsedTrafficBytes: number;
90
+ onlineAt: string | null;
91
+ firstConnectedAt: string | null;
92
+ }>;
94
93
  }, "strip", z.ZodTypeAny, {
95
94
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
96
95
  uuid: string;
@@ -99,15 +98,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
99
98
  username: string;
100
99
  tag: string | null;
101
100
  shortUuid: string;
102
- usedTrafficBytes: number;
103
- lifetimeUsedTrafficBytes: number;
104
101
  trafficLimitBytes: number;
105
102
  description: string | null;
106
103
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
107
104
  subLastUserAgent: string | null;
108
105
  subLastOpenedAt: Date | null;
109
106
  expireAt: Date;
110
- onlineAt: Date | null;
111
107
  subRevokedAt: Date | null;
112
108
  lastTrafficResetAt: Date | null;
113
109
  trojanPassword: string;
@@ -116,7 +112,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
116
112
  telegramId: number | null;
117
113
  email: string | null;
118
114
  hwidDeviceLimit: number | null;
119
- firstConnectedAt: Date | null;
120
115
  lastTriggeredThreshold: number;
121
116
  activeInternalSquads: {
122
117
  uuid: string;
@@ -124,14 +119,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
124
119
  }[];
125
120
  externalSquadUuid: string | null;
126
121
  subscriptionUrl: string;
127
- lastConnectedNode: {
128
- countryCode: string;
129
- connectedAt: Date;
130
- nodeName: string;
131
- } | null;
132
122
  happ: {
133
123
  cryptoLink: string;
134
124
  };
125
+ userTraffic: {
126
+ usedTrafficBytes: number;
127
+ lifetimeUsedTrafficBytes: number;
128
+ onlineAt: Date | null;
129
+ firstConnectedAt: Date | null;
130
+ };
135
131
  }, {
136
132
  uuid: string;
137
133
  createdAt: string;
@@ -139,13 +135,10 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
139
135
  username: string;
140
136
  tag: string | null;
141
137
  shortUuid: string;
142
- usedTrafficBytes: number;
143
- lifetimeUsedTrafficBytes: number;
144
138
  description: string | null;
145
139
  subLastUserAgent: string | null;
146
140
  subLastOpenedAt: string | null;
147
141
  expireAt: string;
148
- onlineAt: string | null;
149
142
  subRevokedAt: string | null;
150
143
  lastTrafficResetAt: string | null;
151
144
  trojanPassword: string;
@@ -154,21 +147,21 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
154
147
  telegramId: number | null;
155
148
  email: string | null;
156
149
  hwidDeviceLimit: number | null;
157
- firstConnectedAt: string | null;
158
150
  activeInternalSquads: {
159
151
  uuid: string;
160
152
  name: string;
161
153
  }[];
162
154
  externalSquadUuid: string | null;
163
155
  subscriptionUrl: string;
164
- lastConnectedNode: {
165
- countryCode: string;
166
- connectedAt: string;
167
- nodeName: string;
168
- } | null;
169
156
  happ: {
170
157
  cryptoLink: string;
171
158
  };
159
+ userTraffic: {
160
+ usedTrafficBytes: number;
161
+ lifetimeUsedTrafficBytes: number;
162
+ onlineAt: string | null;
163
+ firstConnectedAt: string | null;
164
+ };
172
165
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
173
166
  trafficLimitBytes?: number | undefined;
174
167
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -414,15 +407,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
414
407
  username: string;
415
408
  tag: string | null;
416
409
  shortUuid: string;
417
- usedTrafficBytes: number;
418
- lifetimeUsedTrafficBytes: number;
419
410
  trafficLimitBytes: number;
420
411
  description: string | null;
421
412
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
422
413
  subLastUserAgent: string | null;
423
414
  subLastOpenedAt: Date | null;
424
415
  expireAt: Date;
425
- onlineAt: Date | null;
426
416
  subRevokedAt: Date | null;
427
417
  lastTrafficResetAt: Date | null;
428
418
  trojanPassword: string;
@@ -431,7 +421,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
431
421
  telegramId: number | null;
432
422
  email: string | null;
433
423
  hwidDeviceLimit: number | null;
434
- firstConnectedAt: Date | null;
435
424
  lastTriggeredThreshold: number;
436
425
  activeInternalSquads: {
437
426
  uuid: string;
@@ -439,14 +428,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
439
428
  }[];
440
429
  externalSquadUuid: string | null;
441
430
  subscriptionUrl: string;
442
- lastConnectedNode: {
443
- countryCode: string;
444
- connectedAt: Date;
445
- nodeName: string;
446
- } | null;
447
431
  happ: {
448
432
  cryptoLink: string;
449
433
  };
434
+ userTraffic: {
435
+ usedTrafficBytes: number;
436
+ lifetimeUsedTrafficBytes: number;
437
+ onlineAt: Date | null;
438
+ firstConnectedAt: Date | null;
439
+ };
450
440
  };
451
441
  convertedUserInfo: {
452
442
  daysLeft: number;
@@ -518,13 +508,10 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
518
508
  username: string;
519
509
  tag: string | null;
520
510
  shortUuid: string;
521
- usedTrafficBytes: number;
522
- lifetimeUsedTrafficBytes: number;
523
511
  description: string | null;
524
512
  subLastUserAgent: string | null;
525
513
  subLastOpenedAt: string | null;
526
514
  expireAt: string;
527
- onlineAt: string | null;
528
515
  subRevokedAt: string | null;
529
516
  lastTrafficResetAt: string | null;
530
517
  trojanPassword: string;
@@ -533,21 +520,21 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
533
520
  telegramId: number | null;
534
521
  email: string | null;
535
522
  hwidDeviceLimit: number | null;
536
- firstConnectedAt: string | null;
537
523
  activeInternalSquads: {
538
524
  uuid: string;
539
525
  name: string;
540
526
  }[];
541
527
  externalSquadUuid: string | null;
542
528
  subscriptionUrl: string;
543
- lastConnectedNode: {
544
- countryCode: string;
545
- connectedAt: string;
546
- nodeName: string;
547
- } | null;
548
529
  happ: {
549
530
  cryptoLink: string;
550
531
  };
532
+ userTraffic: {
533
+ usedTrafficBytes: number;
534
+ lifetimeUsedTrafficBytes: number;
535
+ onlineAt: string | null;
536
+ firstConnectedAt: string | null;
537
+ };
551
538
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
552
539
  trafficLimitBytes?: number | undefined;
553
540
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -626,15 +613,12 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
626
613
  username: string;
627
614
  tag: string | null;
628
615
  shortUuid: string;
629
- usedTrafficBytes: number;
630
- lifetimeUsedTrafficBytes: number;
631
616
  trafficLimitBytes: number;
632
617
  description: string | null;
633
618
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
634
619
  subLastUserAgent: string | null;
635
620
  subLastOpenedAt: Date | null;
636
621
  expireAt: Date;
637
- onlineAt: Date | null;
638
622
  subRevokedAt: Date | null;
639
623
  lastTrafficResetAt: Date | null;
640
624
  trojanPassword: string;
@@ -643,7 +627,6 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
643
627
  telegramId: number | null;
644
628
  email: string | null;
645
629
  hwidDeviceLimit: number | null;
646
- firstConnectedAt: Date | null;
647
630
  lastTriggeredThreshold: number;
648
631
  activeInternalSquads: {
649
632
  uuid: string;
@@ -651,14 +634,15 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
651
634
  }[];
652
635
  externalSquadUuid: string | null;
653
636
  subscriptionUrl: string;
654
- lastConnectedNode: {
655
- countryCode: string;
656
- connectedAt: Date;
657
- nodeName: string;
658
- } | null;
659
637
  happ: {
660
638
  cryptoLink: string;
661
639
  };
640
+ userTraffic: {
641
+ usedTrafficBytes: number;
642
+ lifetimeUsedTrafficBytes: number;
643
+ onlineAt: Date | null;
644
+ firstConnectedAt: Date | null;
645
+ };
662
646
  };
663
647
  convertedUserInfo: {
664
648
  daysLeft: number;
@@ -732,13 +716,10 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
732
716
  username: string;
733
717
  tag: string | null;
734
718
  shortUuid: string;
735
- usedTrafficBytes: number;
736
- lifetimeUsedTrafficBytes: number;
737
719
  description: string | null;
738
720
  subLastUserAgent: string | null;
739
721
  subLastOpenedAt: string | null;
740
722
  expireAt: string;
741
- onlineAt: string | null;
742
723
  subRevokedAt: string | null;
743
724
  lastTrafficResetAt: string | null;
744
725
  trojanPassword: string;
@@ -747,21 +728,21 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
747
728
  telegramId: number | null;
748
729
  email: string | null;
749
730
  hwidDeviceLimit: number | null;
750
- firstConnectedAt: string | null;
751
731
  activeInternalSquads: {
752
732
  uuid: string;
753
733
  name: string;
754
734
  }[];
755
735
  externalSquadUuid: string | null;
756
736
  subscriptionUrl: string;
757
- lastConnectedNode: {
758
- countryCode: string;
759
- connectedAt: string;
760
- nodeName: string;
761
- } | null;
762
737
  happ: {
763
738
  cryptoLink: string;
764
739
  };
740
+ userTraffic: {
741
+ usedTrafficBytes: number;
742
+ lifetimeUsedTrafficBytes: number;
743
+ onlineAt: string | null;
744
+ firstConnectedAt: string | null;
745
+ };
765
746
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
766
747
  trafficLimitBytes?: number | undefined;
767
748
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkFzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,kBAAkB;;;;;;MAM7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkFzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -38,9 +38,9 @@ export declare namespace GetNodesMetricsCommand {
38
38
  download: string;
39
39
  }>, "many">;
40
40
  }, "strip", z.ZodTypeAny, {
41
- nodeName: string;
42
41
  nodeUuid: string;
43
42
  usersOnline: number;
43
+ nodeName: string;
44
44
  countryEmoji: string;
45
45
  providerName: string;
46
46
  inboundsStats: {
@@ -54,9 +54,9 @@ export declare namespace GetNodesMetricsCommand {
54
54
  download: string;
55
55
  }[];
56
56
  }, {
57
- nodeName: string;
58
57
  nodeUuid: string;
59
58
  usersOnline: number;
59
+ nodeName: string;
60
60
  countryEmoji: string;
61
61
  providerName: string;
62
62
  inboundsStats: {
@@ -72,9 +72,9 @@ export declare namespace GetNodesMetricsCommand {
72
72
  }>, "many">;
73
73
  }, "strip", z.ZodTypeAny, {
74
74
  nodes: {
75
- nodeName: string;
76
75
  nodeUuid: string;
77
76
  usersOnline: number;
77
+ nodeName: string;
78
78
  countryEmoji: string;
79
79
  providerName: string;
80
80
  inboundsStats: {
@@ -90,9 +90,9 @@ export declare namespace GetNodesMetricsCommand {
90
90
  }[];
91
91
  }, {
92
92
  nodes: {
93
- nodeName: string;
94
93
  nodeUuid: string;
95
94
  usersOnline: number;
95
+ nodeName: string;
96
96
  countryEmoji: string;
97
97
  providerName: string;
98
98
  inboundsStats: {
@@ -110,9 +110,9 @@ export declare namespace GetNodesMetricsCommand {
110
110
  }, "strip", z.ZodTypeAny, {
111
111
  response: {
112
112
  nodes: {
113
- nodeName: string;
114
113
  nodeUuid: string;
115
114
  usersOnline: number;
115
+ nodeName: string;
116
116
  countryEmoji: string;
117
117
  providerName: string;
118
118
  inboundsStats: {
@@ -130,9 +130,9 @@ export declare namespace GetNodesMetricsCommand {
130
130
  }, {
131
131
  response: {
132
132
  nodes: {
133
- nodeName: string;
134
133
  nodeUuid: string;
135
134
  usersOnline: number;
135
+ nodeName: string;
136
136
  countryEmoji: string;
137
137
  providerName: string;
138
138
  inboundsStats: {
@@ -47,15 +47,12 @@ export declare namespace GetStatsCommand {
47
47
  users: z.ZodObject<{
48
48
  statusCounts: z.ZodRecord<z.ZodEnum<[string, ...string[]]>, z.ZodNumber>;
49
49
  totalUsers: z.ZodNumber;
50
- totalTrafficBytes: z.ZodString;
51
50
  }, "strip", z.ZodTypeAny, {
52
51
  statusCounts: Record<string, number>;
53
52
  totalUsers: number;
54
- totalTrafficBytes: string;
55
53
  }, {
56
54
  statusCounts: Record<string, number>;
57
55
  totalUsers: number;
58
- totalTrafficBytes: string;
59
56
  }>;
60
57
  onlineStats: z.ZodObject<{
61
58
  lastDay: z.ZodNumber;
@@ -87,7 +84,6 @@ export declare namespace GetStatsCommand {
87
84
  users: {
88
85
  statusCounts: Record<string, number>;
89
86
  totalUsers: number;
90
- totalTrafficBytes: string;
91
87
  };
92
88
  memory: {
93
89
  total: number;
@@ -115,7 +111,6 @@ export declare namespace GetStatsCommand {
115
111
  users: {
116
112
  statusCounts: Record<string, number>;
117
113
  totalUsers: number;
118
- totalTrafficBytes: string;
119
114
  };
120
115
  memory: {
121
116
  total: number;
@@ -145,7 +140,6 @@ export declare namespace GetStatsCommand {
145
140
  users: {
146
141
  statusCounts: Record<string, number>;
147
142
  totalUsers: number;
148
- totalTrafficBytes: string;
149
143
  };
150
144
  memory: {
151
145
  total: number;
@@ -175,7 +169,6 @@ export declare namespace GetStatsCommand {
175
169
  users: {
176
170
  statusCounts: Record<string, number>;
177
171
  totalUsers: number;
178
- totalTrafficBytes: string;
179
172
  };
180
173
  memory: {
181
174
  total: 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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -31,7 +31,6 @@ var GetStatsCommand;
31
31
  users: zod_1.z.object({
32
32
  statusCounts: zod_1.z.record(zod_1.z.enum(Object.values(constants_2.USERS_STATUS)), zod_1.z.number()),
33
33
  totalUsers: zod_1.z.number(),
34
- totalTrafficBytes: zod_1.z.string(),
35
34
  }),
36
35
  onlineStats: zod_1.z.object({
37
36
  lastDay: zod_1.z.number(),