@remnawave/backend-contract 2.3.2 → 2.3.4

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 (43) 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 +61 -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/users/actions/disable-user.command.d.ts +47 -53
  8. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  9. package/build/backend/commands/users/actions/enable-user.command.d.ts +47 -53
  10. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  11. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +47 -53
  12. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  13. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +47 -53
  14. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  15. package/build/backend/commands/users/create-user.command.d.ts +47 -53
  16. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  17. package/build/backend/commands/users/get-all-users.command.d.ts +61 -71
  18. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  19. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +47 -53
  20. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
  21. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +47 -53
  22. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  23. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +47 -53
  24. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
  25. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +47 -53
  26. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
  27. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +47 -53
  28. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  29. package/build/backend/commands/users/get-user-accessible-nodes.command.d.ts +6 -6
  30. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +47 -53
  31. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  32. package/build/backend/commands/users/get-user-usage-by-range.command.d.ts +4 -4
  33. package/build/backend/commands/users/update-user.command.d.ts +47 -53
  34. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  35. package/build/backend/models/extended-users.schema.d.ts +33 -35
  36. package/build/backend/models/extended-users.schema.d.ts.map +1 -1
  37. package/build/backend/models/extended-users.schema.js +13 -2
  38. package/build/backend/models/users.schema.d.ts +0 -12
  39. package/build/backend/models/users.schema.d.ts.map +1 -1
  40. package/build/backend/models/users.schema.js +0 -10
  41. package/build/frontend/models/extended-users.schema.js +13 -2
  42. package/build/frontend/models/users.schema.js +0 -10
  43. package/package.json +1 -1
@@ -22,8 +22,6 @@ export declare namespace GetUserByUsernameCommand {
22
22
  readonly LIMITED: "LIMITED";
23
23
  readonly EXPIRED: "EXPIRED";
24
24
  }>>;
25
- usedTrafficBytes: z.ZodNumber;
26
- lifetimeUsedTrafficBytes: z.ZodNumber;
27
25
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
28
26
  trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
27
  readonly NO_RESET: "NO_RESET";
@@ -34,7 +32,6 @@ export declare namespace GetUserByUsernameCommand {
34
32
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
33
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
34
  expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
- onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
35
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
36
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
40
37
  trojanPassword: z.ZodString;
@@ -45,7 +42,6 @@ export declare namespace GetUserByUsernameCommand {
45
42
  telegramId: z.ZodNullable<z.ZodNumber>;
46
43
  email: z.ZodNullable<z.ZodString>;
47
44
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
48
- firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
49
45
  lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
50
46
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
51
47
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -62,19 +58,6 @@ export declare namespace GetUserByUsernameCommand {
62
58
  externalSquadUuid: z.ZodNullable<z.ZodString>;
63
59
  } & {
64
60
  subscriptionUrl: z.ZodString;
65
- lastConnectedNode: z.ZodNullable<z.ZodObject<{
66
- connectedAt: z.ZodEffects<z.ZodString, Date, string>;
67
- nodeName: z.ZodString;
68
- countryCode: z.ZodString;
69
- }, "strip", z.ZodTypeAny, {
70
- countryCode: string;
71
- connectedAt: Date;
72
- nodeName: string;
73
- }, {
74
- countryCode: string;
75
- connectedAt: string;
76
- nodeName: string;
77
- }>>;
78
61
  happ: z.ZodObject<{
79
62
  cryptoLink: z.ZodString;
80
63
  }, "strip", z.ZodTypeAny, {
@@ -82,6 +65,25 @@ export declare namespace GetUserByUsernameCommand {
82
65
  }, {
83
66
  cryptoLink: string;
84
67
  }>;
68
+ userTraffic: z.ZodObject<{
69
+ usedTrafficBytes: z.ZodNumber;
70
+ lifetimeUsedTrafficBytes: z.ZodNumber;
71
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
72
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
73
+ lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ usedTrafficBytes: number;
76
+ lifetimeUsedTrafficBytes: number;
77
+ onlineAt: Date | null;
78
+ firstConnectedAt: Date | null;
79
+ lastConnectedNodeUuid: string | null;
80
+ }, {
81
+ usedTrafficBytes: number;
82
+ lifetimeUsedTrafficBytes: number;
83
+ onlineAt: string | null;
84
+ firstConnectedAt: string | null;
85
+ lastConnectedNodeUuid: string | null;
86
+ }>;
85
87
  }, "strip", z.ZodTypeAny, {
86
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
87
89
  uuid: string;
@@ -90,15 +92,12 @@ export declare namespace GetUserByUsernameCommand {
90
92
  username: string;
91
93
  tag: string | null;
92
94
  shortUuid: string;
93
- usedTrafficBytes: number;
94
- lifetimeUsedTrafficBytes: number;
95
95
  trafficLimitBytes: number;
96
96
  description: string | null;
97
97
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
98
98
  subLastUserAgent: string | null;
99
99
  subLastOpenedAt: Date | null;
100
100
  expireAt: Date;
101
- onlineAt: Date | null;
102
101
  subRevokedAt: Date | null;
103
102
  lastTrafficResetAt: Date | null;
104
103
  trojanPassword: string;
@@ -107,7 +106,6 @@ export declare namespace GetUserByUsernameCommand {
107
106
  telegramId: number | null;
108
107
  email: string | null;
109
108
  hwidDeviceLimit: number | null;
110
- firstConnectedAt: Date | null;
111
109
  lastTriggeredThreshold: number;
112
110
  activeInternalSquads: {
113
111
  uuid: string;
@@ -115,14 +113,16 @@ export declare namespace GetUserByUsernameCommand {
115
113
  }[];
116
114
  externalSquadUuid: string | null;
117
115
  subscriptionUrl: string;
118
- lastConnectedNode: {
119
- countryCode: string;
120
- connectedAt: Date;
121
- nodeName: string;
122
- } | null;
123
116
  happ: {
124
117
  cryptoLink: string;
125
118
  };
119
+ userTraffic: {
120
+ usedTrafficBytes: number;
121
+ lifetimeUsedTrafficBytes: number;
122
+ onlineAt: Date | null;
123
+ firstConnectedAt: Date | null;
124
+ lastConnectedNodeUuid: string | null;
125
+ };
126
126
  }, {
127
127
  uuid: string;
128
128
  createdAt: string;
@@ -130,13 +130,10 @@ export declare namespace GetUserByUsernameCommand {
130
130
  username: string;
131
131
  tag: string | null;
132
132
  shortUuid: string;
133
- usedTrafficBytes: number;
134
- lifetimeUsedTrafficBytes: number;
135
133
  description: string | null;
136
134
  subLastUserAgent: string | null;
137
135
  subLastOpenedAt: string | null;
138
136
  expireAt: string;
139
- onlineAt: string | null;
140
137
  subRevokedAt: string | null;
141
138
  lastTrafficResetAt: string | null;
142
139
  trojanPassword: string;
@@ -145,21 +142,22 @@ export declare namespace GetUserByUsernameCommand {
145
142
  telegramId: number | null;
146
143
  email: string | null;
147
144
  hwidDeviceLimit: number | null;
148
- firstConnectedAt: string | null;
149
145
  activeInternalSquads: {
150
146
  uuid: string;
151
147
  name: string;
152
148
  }[];
153
149
  externalSquadUuid: string | null;
154
150
  subscriptionUrl: string;
155
- lastConnectedNode: {
156
- countryCode: string;
157
- connectedAt: string;
158
- nodeName: string;
159
- } | null;
160
151
  happ: {
161
152
  cryptoLink: string;
162
153
  };
154
+ userTraffic: {
155
+ usedTrafficBytes: number;
156
+ lifetimeUsedTrafficBytes: number;
157
+ onlineAt: string | null;
158
+ firstConnectedAt: string | null;
159
+ lastConnectedNodeUuid: string | null;
160
+ };
163
161
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
164
162
  trafficLimitBytes?: number | undefined;
165
163
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -174,15 +172,12 @@ export declare namespace GetUserByUsernameCommand {
174
172
  username: string;
175
173
  tag: string | null;
176
174
  shortUuid: string;
177
- usedTrafficBytes: number;
178
- lifetimeUsedTrafficBytes: number;
179
175
  trafficLimitBytes: number;
180
176
  description: string | null;
181
177
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
182
178
  subLastUserAgent: string | null;
183
179
  subLastOpenedAt: Date | null;
184
180
  expireAt: Date;
185
- onlineAt: Date | null;
186
181
  subRevokedAt: Date | null;
187
182
  lastTrafficResetAt: Date | null;
188
183
  trojanPassword: string;
@@ -191,7 +186,6 @@ export declare namespace GetUserByUsernameCommand {
191
186
  telegramId: number | null;
192
187
  email: string | null;
193
188
  hwidDeviceLimit: number | null;
194
- firstConnectedAt: Date | null;
195
189
  lastTriggeredThreshold: number;
196
190
  activeInternalSquads: {
197
191
  uuid: string;
@@ -199,14 +193,16 @@ export declare namespace GetUserByUsernameCommand {
199
193
  }[];
200
194
  externalSquadUuid: string | null;
201
195
  subscriptionUrl: string;
202
- lastConnectedNode: {
203
- countryCode: string;
204
- connectedAt: Date;
205
- nodeName: string;
206
- } | null;
207
196
  happ: {
208
197
  cryptoLink: string;
209
198
  };
199
+ userTraffic: {
200
+ usedTrafficBytes: number;
201
+ lifetimeUsedTrafficBytes: number;
202
+ onlineAt: Date | null;
203
+ firstConnectedAt: Date | null;
204
+ lastConnectedNodeUuid: string | null;
205
+ };
210
206
  };
211
207
  }, {
212
208
  response: {
@@ -216,13 +212,10 @@ export declare namespace GetUserByUsernameCommand {
216
212
  username: string;
217
213
  tag: string | null;
218
214
  shortUuid: string;
219
- usedTrafficBytes: number;
220
- lifetimeUsedTrafficBytes: number;
221
215
  description: string | null;
222
216
  subLastUserAgent: string | null;
223
217
  subLastOpenedAt: string | null;
224
218
  expireAt: string;
225
- onlineAt: string | null;
226
219
  subRevokedAt: string | null;
227
220
  lastTrafficResetAt: string | null;
228
221
  trojanPassword: string;
@@ -231,21 +224,22 @@ export declare namespace GetUserByUsernameCommand {
231
224
  telegramId: number | null;
232
225
  email: string | null;
233
226
  hwidDeviceLimit: number | null;
234
- firstConnectedAt: string | null;
235
227
  activeInternalSquads: {
236
228
  uuid: string;
237
229
  name: string;
238
230
  }[];
239
231
  externalSquadUuid: string | null;
240
232
  subscriptionUrl: string;
241
- lastConnectedNode: {
242
- countryCode: string;
243
- connectedAt: string;
244
- nodeName: string;
245
- } | null;
246
233
  happ: {
247
234
  cryptoLink: string;
248
235
  };
236
+ userTraffic: {
237
+ usedTrafficBytes: number;
238
+ lifetimeUsedTrafficBytes: number;
239
+ onlineAt: string | null;
240
+ firstConnectedAt: string | null;
241
+ lastConnectedNodeUuid: string | null;
242
+ };
249
243
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
250
244
  trafficLimitBytes?: number | undefined;
251
245
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAI3B,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-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,MAAM,eAAe,8CAI3B,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"}
@@ -33,8 +33,8 @@ export declare namespace GetUserAccessibleNodesCommand {
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  uuid: string;
35
35
  countryCode: string;
36
- nodeName: string;
37
36
  configProfileUuid: string;
37
+ nodeName: string;
38
38
  activeSquads: {
39
39
  activeInbounds: string[];
40
40
  squadName: string;
@@ -43,8 +43,8 @@ export declare namespace GetUserAccessibleNodesCommand {
43
43
  }, {
44
44
  uuid: string;
45
45
  countryCode: string;
46
- nodeName: string;
47
46
  configProfileUuid: string;
47
+ nodeName: string;
48
48
  activeSquads: {
49
49
  activeInbounds: string[];
50
50
  squadName: string;
@@ -56,8 +56,8 @@ export declare namespace GetUserAccessibleNodesCommand {
56
56
  activeNodes: {
57
57
  uuid: string;
58
58
  countryCode: string;
59
- nodeName: string;
60
59
  configProfileUuid: string;
60
+ nodeName: string;
61
61
  activeSquads: {
62
62
  activeInbounds: string[];
63
63
  squadName: string;
@@ -69,8 +69,8 @@ export declare namespace GetUserAccessibleNodesCommand {
69
69
  activeNodes: {
70
70
  uuid: string;
71
71
  countryCode: string;
72
- nodeName: string;
73
72
  configProfileUuid: string;
73
+ nodeName: string;
74
74
  activeSquads: {
75
75
  activeInbounds: string[];
76
76
  squadName: string;
@@ -84,8 +84,8 @@ export declare namespace GetUserAccessibleNodesCommand {
84
84
  activeNodes: {
85
85
  uuid: string;
86
86
  countryCode: string;
87
- nodeName: string;
88
87
  configProfileUuid: string;
88
+ nodeName: string;
89
89
  activeSquads: {
90
90
  activeInbounds: string[];
91
91
  squadName: string;
@@ -99,8 +99,8 @@ export declare namespace GetUserAccessibleNodesCommand {
99
99
  activeNodes: {
100
100
  uuid: string;
101
101
  countryCode: string;
102
- nodeName: string;
103
102
  configProfileUuid: string;
103
+ nodeName: string;
104
104
  activeSquads: {
105
105
  activeInbounds: string[];
106
106
  squadName: string;
@@ -22,8 +22,6 @@ export declare namespace GetUserByUuidCommand {
22
22
  readonly LIMITED: "LIMITED";
23
23
  readonly EXPIRED: "EXPIRED";
24
24
  }>>;
25
- usedTrafficBytes: z.ZodNumber;
26
- lifetimeUsedTrafficBytes: z.ZodNumber;
27
25
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
28
26
  trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
27
  readonly NO_RESET: "NO_RESET";
@@ -34,7 +32,6 @@ export declare namespace GetUserByUuidCommand {
34
32
  subLastUserAgent: z.ZodNullable<z.ZodString>;
35
33
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
36
34
  expireAt: z.ZodEffects<z.ZodString, Date, string>;
37
- onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
38
35
  subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
39
36
  lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
40
37
  trojanPassword: z.ZodString;
@@ -45,7 +42,6 @@ export declare namespace GetUserByUuidCommand {
45
42
  telegramId: z.ZodNullable<z.ZodNumber>;
46
43
  email: z.ZodNullable<z.ZodString>;
47
44
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
48
- firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
49
45
  lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
50
46
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
51
47
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
@@ -62,19 +58,6 @@ export declare namespace GetUserByUuidCommand {
62
58
  externalSquadUuid: z.ZodNullable<z.ZodString>;
63
59
  } & {
64
60
  subscriptionUrl: z.ZodString;
65
- lastConnectedNode: z.ZodNullable<z.ZodObject<{
66
- connectedAt: z.ZodEffects<z.ZodString, Date, string>;
67
- nodeName: z.ZodString;
68
- countryCode: z.ZodString;
69
- }, "strip", z.ZodTypeAny, {
70
- countryCode: string;
71
- connectedAt: Date;
72
- nodeName: string;
73
- }, {
74
- countryCode: string;
75
- connectedAt: string;
76
- nodeName: string;
77
- }>>;
78
61
  happ: z.ZodObject<{
79
62
  cryptoLink: z.ZodString;
80
63
  }, "strip", z.ZodTypeAny, {
@@ -82,6 +65,25 @@ export declare namespace GetUserByUuidCommand {
82
65
  }, {
83
66
  cryptoLink: string;
84
67
  }>;
68
+ userTraffic: z.ZodObject<{
69
+ usedTrafficBytes: z.ZodNumber;
70
+ lifetimeUsedTrafficBytes: z.ZodNumber;
71
+ onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
72
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
73
+ lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ usedTrafficBytes: number;
76
+ lifetimeUsedTrafficBytes: number;
77
+ onlineAt: Date | null;
78
+ firstConnectedAt: Date | null;
79
+ lastConnectedNodeUuid: string | null;
80
+ }, {
81
+ usedTrafficBytes: number;
82
+ lifetimeUsedTrafficBytes: number;
83
+ onlineAt: string | null;
84
+ firstConnectedAt: string | null;
85
+ lastConnectedNodeUuid: string | null;
86
+ }>;
85
87
  }, "strip", z.ZodTypeAny, {
86
88
  status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
87
89
  uuid: string;
@@ -90,15 +92,12 @@ export declare namespace GetUserByUuidCommand {
90
92
  username: string;
91
93
  tag: string | null;
92
94
  shortUuid: string;
93
- usedTrafficBytes: number;
94
- lifetimeUsedTrafficBytes: number;
95
95
  trafficLimitBytes: number;
96
96
  description: string | null;
97
97
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
98
98
  subLastUserAgent: string | null;
99
99
  subLastOpenedAt: Date | null;
100
100
  expireAt: Date;
101
- onlineAt: Date | null;
102
101
  subRevokedAt: Date | null;
103
102
  lastTrafficResetAt: Date | null;
104
103
  trojanPassword: string;
@@ -107,7 +106,6 @@ export declare namespace GetUserByUuidCommand {
107
106
  telegramId: number | null;
108
107
  email: string | null;
109
108
  hwidDeviceLimit: number | null;
110
- firstConnectedAt: Date | null;
111
109
  lastTriggeredThreshold: number;
112
110
  activeInternalSquads: {
113
111
  uuid: string;
@@ -115,14 +113,16 @@ export declare namespace GetUserByUuidCommand {
115
113
  }[];
116
114
  externalSquadUuid: string | null;
117
115
  subscriptionUrl: string;
118
- lastConnectedNode: {
119
- countryCode: string;
120
- connectedAt: Date;
121
- nodeName: string;
122
- } | null;
123
116
  happ: {
124
117
  cryptoLink: string;
125
118
  };
119
+ userTraffic: {
120
+ usedTrafficBytes: number;
121
+ lifetimeUsedTrafficBytes: number;
122
+ onlineAt: Date | null;
123
+ firstConnectedAt: Date | null;
124
+ lastConnectedNodeUuid: string | null;
125
+ };
126
126
  }, {
127
127
  uuid: string;
128
128
  createdAt: string;
@@ -130,13 +130,10 @@ export declare namespace GetUserByUuidCommand {
130
130
  username: string;
131
131
  tag: string | null;
132
132
  shortUuid: string;
133
- usedTrafficBytes: number;
134
- lifetimeUsedTrafficBytes: number;
135
133
  description: string | null;
136
134
  subLastUserAgent: string | null;
137
135
  subLastOpenedAt: string | null;
138
136
  expireAt: string;
139
- onlineAt: string | null;
140
137
  subRevokedAt: string | null;
141
138
  lastTrafficResetAt: string | null;
142
139
  trojanPassword: string;
@@ -145,21 +142,22 @@ export declare namespace GetUserByUuidCommand {
145
142
  telegramId: number | null;
146
143
  email: string | null;
147
144
  hwidDeviceLimit: number | null;
148
- firstConnectedAt: string | null;
149
145
  activeInternalSquads: {
150
146
  uuid: string;
151
147
  name: string;
152
148
  }[];
153
149
  externalSquadUuid: string | null;
154
150
  subscriptionUrl: string;
155
- lastConnectedNode: {
156
- countryCode: string;
157
- connectedAt: string;
158
- nodeName: string;
159
- } | null;
160
151
  happ: {
161
152
  cryptoLink: string;
162
153
  };
154
+ userTraffic: {
155
+ usedTrafficBytes: number;
156
+ lifetimeUsedTrafficBytes: number;
157
+ onlineAt: string | null;
158
+ firstConnectedAt: string | null;
159
+ lastConnectedNodeUuid: string | null;
160
+ };
163
161
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
164
162
  trafficLimitBytes?: number | undefined;
165
163
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -174,15 +172,12 @@ export declare namespace GetUserByUuidCommand {
174
172
  username: string;
175
173
  tag: string | null;
176
174
  shortUuid: string;
177
- usedTrafficBytes: number;
178
- lifetimeUsedTrafficBytes: number;
179
175
  trafficLimitBytes: number;
180
176
  description: string | null;
181
177
  trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
182
178
  subLastUserAgent: string | null;
183
179
  subLastOpenedAt: Date | null;
184
180
  expireAt: Date;
185
- onlineAt: Date | null;
186
181
  subRevokedAt: Date | null;
187
182
  lastTrafficResetAt: Date | null;
188
183
  trojanPassword: string;
@@ -191,7 +186,6 @@ export declare namespace GetUserByUuidCommand {
191
186
  telegramId: number | null;
192
187
  email: string | null;
193
188
  hwidDeviceLimit: number | null;
194
- firstConnectedAt: Date | null;
195
189
  lastTriggeredThreshold: number;
196
190
  activeInternalSquads: {
197
191
  uuid: string;
@@ -199,14 +193,16 @@ export declare namespace GetUserByUuidCommand {
199
193
  }[];
200
194
  externalSquadUuid: string | null;
201
195
  subscriptionUrl: string;
202
- lastConnectedNode: {
203
- countryCode: string;
204
- connectedAt: Date;
205
- nodeName: string;
206
- } | null;
207
196
  happ: {
208
197
  cryptoLink: string;
209
198
  };
199
+ userTraffic: {
200
+ usedTrafficBytes: number;
201
+ lifetimeUsedTrafficBytes: number;
202
+ onlineAt: Date | null;
203
+ firstConnectedAt: Date | null;
204
+ lastConnectedNodeUuid: string | null;
205
+ };
210
206
  };
211
207
  }, {
212
208
  response: {
@@ -216,13 +212,10 @@ export declare namespace GetUserByUuidCommand {
216
212
  username: string;
217
213
  tag: string | null;
218
214
  shortUuid: string;
219
- usedTrafficBytes: number;
220
- lifetimeUsedTrafficBytes: number;
221
215
  description: string | null;
222
216
  subLastUserAgent: string | null;
223
217
  subLastOpenedAt: string | null;
224
218
  expireAt: string;
225
- onlineAt: string | null;
226
219
  subRevokedAt: string | null;
227
220
  lastTrafficResetAt: string | null;
228
221
  trojanPassword: string;
@@ -231,21 +224,22 @@ export declare namespace GetUserByUuidCommand {
231
224
  telegramId: number | null;
232
225
  email: string | null;
233
226
  hwidDeviceLimit: number | null;
234
- firstConnectedAt: string | null;
235
227
  activeInternalSquads: {
236
228
  uuid: string;
237
229
  name: string;
238
230
  }[];
239
231
  externalSquadUuid: string | null;
240
232
  subscriptionUrl: string;
241
- lastConnectedNode: {
242
- countryCode: string;
243
- connectedAt: string;
244
- nodeName: string;
245
- } | null;
246
233
  happ: {
247
234
  cryptoLink: string;
248
235
  };
236
+ userTraffic: {
237
+ usedTrafficBytes: number;
238
+ lifetimeUsedTrafficBytes: number;
239
+ onlineAt: string | null;
240
+ firstConnectedAt: string | null;
241
+ lastConnectedNodeUuid: string | null;
242
+ };
249
243
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
250
244
  trafficLimitBytes?: number | undefined;
251
245
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,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-user-by-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oBAAoB,CAAC;IAC3B,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"}
@@ -33,34 +33,34 @@ export declare namespace GetUserUsageByRangeCommand {
33
33
  }, "strip", z.ZodTypeAny, {
34
34
  date: Date;
35
35
  countryCode: string;
36
- nodeName: string;
37
36
  userUuid: string;
38
37
  nodeUuid: string;
38
+ nodeName: string;
39
39
  total: number;
40
40
  }, {
41
41
  date: string;
42
42
  countryCode: string;
43
- nodeName: string;
44
43
  userUuid: string;
45
44
  nodeUuid: string;
45
+ nodeName: string;
46
46
  total: number;
47
47
  }>, "many">;
48
48
  }, "strip", z.ZodTypeAny, {
49
49
  response: {
50
50
  date: Date;
51
51
  countryCode: string;
52
- nodeName: string;
53
52
  userUuid: string;
54
53
  nodeUuid: string;
54
+ nodeName: string;
55
55
  total: number;
56
56
  }[];
57
57
  }, {
58
58
  response: {
59
59
  date: string;
60
60
  countryCode: string;
61
- nodeName: string;
62
61
  userUuid: string;
63
62
  nodeUuid: string;
63
+ nodeName: string;
64
64
  total: number;
65
65
  }[];
66
66
  }>;