@remnawave/backend-contract 0.7.1 → 0.7.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/users/actions/activate-all-inbounds.command.d.ts +10 -0
  2. package/build/backend/commands/users/actions/activate-all-inbounds.command.d.ts.map +1 -1
  3. package/build/backend/commands/users/actions/disable-user.command.d.ts +10 -0
  4. package/build/backend/commands/users/actions/disable-user.command.d.ts.map +1 -1
  5. package/build/backend/commands/users/actions/enable-user.command.d.ts +10 -0
  6. package/build/backend/commands/users/actions/enable-user.command.d.ts.map +1 -1
  7. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts +10 -0
  8. package/build/backend/commands/users/actions/reset-user-traffic.command.d.ts.map +1 -1
  9. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts +20 -0
  10. package/build/backend/commands/users/actions/revoke-user-subscription.command.d.ts.map +1 -1
  11. package/build/backend/commands/users/actions/revoke-user-subscription.command.js +7 -0
  12. package/build/backend/commands/users/create-user.command.d.ts +10 -0
  13. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  14. package/build/backend/commands/users/get-all-users.command.d.ts +14 -0
  15. package/build/backend/commands/users/get-all-users.command.d.ts.map +1 -1
  16. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts +10 -0
  17. package/build/backend/commands/users/get-by/get-user-by-email.command.d.ts.map +1 -1
  18. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts +10 -0
  19. package/build/backend/commands/users/get-by/get-user-by-short-uuid.command.d.ts.map +1 -1
  20. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts +10 -0
  21. package/build/backend/commands/users/get-by/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  22. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts +10 -0
  23. package/build/backend/commands/users/get-by/get-user-by-tag.command.d.ts.map +1 -1
  24. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts +10 -0
  25. package/build/backend/commands/users/get-by/get-user-by-telegram-id.command.d.ts.map +1 -1
  26. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts +10 -0
  27. package/build/backend/commands/users/get-by/get-user-by-username.command.d.ts.map +1 -1
  28. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +10 -0
  29. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  30. package/build/backend/commands/users/update-user.command.d.ts +12 -0
  31. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  32. package/build/backend/constants/errors/errors.d.ts +5 -0
  33. package/build/backend/constants/errors/errors.d.ts.map +1 -1
  34. package/build/backend/constants/errors/errors.js +5 -0
  35. package/build/backend/constants/events/events.d.ts +8 -0
  36. package/build/backend/constants/events/events.d.ts.map +1 -1
  37. package/build/backend/constants/events/events.js +7 -0
  38. package/build/backend/models/extented-users.schema.d.ts +6 -0
  39. package/build/backend/models/extented-users.schema.d.ts.map +1 -1
  40. package/build/backend/models/users.schema.d.ts +6 -0
  41. package/build/backend/models/users.schema.d.ts.map +1 -1
  42. package/build/backend/models/users.schema.js +5 -0
  43. package/build/frontend/commands/users/actions/revoke-user-subscription.command.js +7 -0
  44. package/build/frontend/constants/errors/errors.js +5 -0
  45. package/build/frontend/constants/events/events.js +7 -0
  46. package/build/frontend/models/users.schema.js +5 -0
  47. package/package.json +1 -1
@@ -46,6 +46,8 @@ export declare namespace ActivateAllInboundsCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace ActivateAllInboundsCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace ActivateAllInboundsCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace ActivateAllInboundsCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace ActivateAllInboundsCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace ActivateAllInboundsCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace ActivateAllInboundsCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  };
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"activate-all-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/activate-all-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAA+C,CAAC;IACzD,MAAM,OAAO,QAAe,CAAC;IAE7B,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":"activate-all-inbounds.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/activate-all-inbounds.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,0BAA0B,CAAC;IACjC,MAAM,GAAG,0BAA+C,CAAC;IACzD,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
@@ -46,6 +46,8 @@ export declare namespace DisableUserCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace DisableUserCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace DisableUserCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace DisableUserCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace DisableUserCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace DisableUserCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace DisableUserCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  };
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,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":"disable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/disable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
@@ -46,6 +46,8 @@ export declare namespace EnableUserCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace EnableUserCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace EnableUserCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace EnableUserCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace EnableUserCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace EnableUserCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace EnableUserCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  };
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,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":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAgC,CAAC;IAC1C,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
@@ -46,6 +46,8 @@ export declare namespace ResetUserTrafficCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace ResetUserTrafficCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace ResetUserTrafficCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace ResetUserTrafficCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace ResetUserTrafficCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace ResetUserTrafficCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace ResetUserTrafficCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  };
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -11,6 +11,16 @@ export declare namespace RevokeUserSubscriptionCommand {
11
11
  uuid: string;
12
12
  }>;
13
13
  type Request = z.infer<typeof RequestSchema>;
14
+ const RequestBodySchema: z.ZodEffects<z.ZodObject<{
15
+ shortUuid: z.ZodOptional<z.ZodString>;
16
+ }, "strip", z.ZodTypeAny, {
17
+ shortUuid?: string | undefined;
18
+ }, {
19
+ shortUuid?: string | undefined;
20
+ }>, {
21
+ shortUuid?: string | undefined;
22
+ }, unknown>;
23
+ type RequestBody = z.infer<typeof RequestBodySchema>;
14
24
  const ResponseSchema: z.ZodObject<{
15
25
  response: z.ZodObject<{
16
26
  uuid: z.ZodString;
@@ -46,6 +56,8 @@ export declare namespace RevokeUserSubscriptionCommand {
46
56
  telegramId: z.ZodNullable<z.ZodNumber>;
47
57
  email: z.ZodNullable<z.ZodString>;
48
58
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
59
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
60
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
61
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
62
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
63
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +124,8 @@ export declare namespace RevokeUserSubscriptionCommand {
112
124
  telegramId: number | null;
113
125
  email: string | null;
114
126
  hwidDeviceLimit: number | null;
127
+ firstConnectedAt: Date | null;
128
+ lastTriggeredThreshold: number;
115
129
  activeUserInbounds: {
116
130
  type: string;
117
131
  uuid: string;
@@ -150,6 +164,7 @@ export declare namespace RevokeUserSubscriptionCommand {
150
164
  telegramId: number | null;
151
165
  email: string | null;
152
166
  hwidDeviceLimit: number | null;
167
+ firstConnectedAt: string | null;
153
168
  activeUserInbounds: {
154
169
  type: string;
155
170
  uuid: string;
@@ -168,6 +183,7 @@ export declare namespace RevokeUserSubscriptionCommand {
168
183
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
184
  trafficLimitBytes?: number | undefined;
170
185
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
186
+ lastTriggeredThreshold?: number | undefined;
171
187
  }>;
172
188
  }, "strip", z.ZodTypeAny, {
173
189
  response: {
@@ -196,6 +212,8 @@ export declare namespace RevokeUserSubscriptionCommand {
196
212
  telegramId: number | null;
197
213
  email: string | null;
198
214
  hwidDeviceLimit: number | null;
215
+ firstConnectedAt: Date | null;
216
+ lastTriggeredThreshold: number;
199
217
  activeUserInbounds: {
200
218
  type: string;
201
219
  uuid: string;
@@ -236,6 +254,7 @@ export declare namespace RevokeUserSubscriptionCommand {
236
254
  telegramId: number | null;
237
255
  email: string | null;
238
256
  hwidDeviceLimit: number | null;
257
+ firstConnectedAt: string | null;
239
258
  activeUserInbounds: {
240
259
  type: string;
241
260
  uuid: string;
@@ -254,6 +273,7 @@ export declare namespace RevokeUserSubscriptionCommand {
254
273
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
274
  trafficLimitBytes?: number | undefined;
256
275
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
276
+ lastTriggeredThreshold?: number | undefined;
257
277
  };
258
278
  }>;
259
279
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,MAAM,OAAO,QAAe,CAAC;IAE7B,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":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/actions/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAA6C,CAAC;IACvD,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,iBAAiB;;;;;;;;eAa7B,CAAC;IAEF,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAErD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -13,6 +13,13 @@ var RevokeUserSubscriptionCommand;
13
13
  RevokeUserSubscriptionCommand.RequestSchema = zod_1.z.object({
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  });
16
+ RevokeUserSubscriptionCommand.RequestBodySchema = zod_1.z.preprocess((val) => val || {}, zod_1.z.object({
17
+ shortUuid: zod_1.z.optional(zod_1.z
18
+ .string()
19
+ .min(6, { message: 'Short UUID must be at least 6 characters' })
20
+ .max(48, { message: 'Short UUID must be at most 48 characters' })
21
+ .describe('Optional. If not provided, a new short UUID will be generated by Remnawave. Please note that it is strongly recommended to allow Remnawave to generate the short UUID.')),
22
+ }));
16
23
  RevokeUserSubscriptionCommand.ResponseSchema = zod_1.z.object({
17
24
  response: models_1.ExtendedUsersSchema,
18
25
  });
@@ -110,6 +110,8 @@ export declare namespace CreateUserCommand {
110
110
  telegramId: z.ZodNullable<z.ZodNumber>;
111
111
  email: z.ZodNullable<z.ZodString>;
112
112
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
113
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
114
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
113
115
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
114
116
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
115
117
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -176,6 +178,8 @@ export declare namespace CreateUserCommand {
176
178
  telegramId: number | null;
177
179
  email: string | null;
178
180
  hwidDeviceLimit: number | null;
181
+ firstConnectedAt: Date | null;
182
+ lastTriggeredThreshold: number;
179
183
  activeUserInbounds: {
180
184
  type: string;
181
185
  uuid: string;
@@ -214,6 +218,7 @@ export declare namespace CreateUserCommand {
214
218
  telegramId: number | null;
215
219
  email: string | null;
216
220
  hwidDeviceLimit: number | null;
221
+ firstConnectedAt: string | null;
217
222
  activeUserInbounds: {
218
223
  type: string;
219
224
  uuid: string;
@@ -232,6 +237,7 @@ export declare namespace CreateUserCommand {
232
237
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
233
238
  trafficLimitBytes?: number | undefined;
234
239
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
240
+ lastTriggeredThreshold?: number | undefined;
235
241
  }>;
236
242
  }, "strip", z.ZodTypeAny, {
237
243
  response: {
@@ -260,6 +266,8 @@ export declare namespace CreateUserCommand {
260
266
  telegramId: number | null;
261
267
  email: string | null;
262
268
  hwidDeviceLimit: number | null;
269
+ firstConnectedAt: Date | null;
270
+ lastTriggeredThreshold: number;
263
271
  activeUserInbounds: {
264
272
  type: string;
265
273
  uuid: string;
@@ -300,6 +308,7 @@ export declare namespace CreateUserCommand {
300
308
  telegramId: number | null;
301
309
  email: string | null;
302
310
  hwidDeviceLimit: number | null;
311
+ firstConnectedAt: string | null;
303
312
  activeUserInbounds: {
304
313
  type: string;
305
314
  uuid: string;
@@ -318,6 +327,7 @@ export declare namespace CreateUserCommand {
318
327
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
319
328
  trafficLimitBytes?: number | undefined;
320
329
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
330
+ lastTriggeredThreshold?: number | undefined;
321
331
  };
322
332
  }>;
323
333
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAA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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -92,6 +92,8 @@ export declare namespace GetAllUsersCommand {
92
92
  telegramId: z.ZodNullable<z.ZodNumber>;
93
93
  email: z.ZodNullable<z.ZodString>;
94
94
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
95
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
96
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
95
97
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
96
98
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
97
99
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -158,6 +160,8 @@ export declare namespace GetAllUsersCommand {
158
160
  telegramId: number | null;
159
161
  email: string | null;
160
162
  hwidDeviceLimit: number | null;
163
+ firstConnectedAt: Date | null;
164
+ lastTriggeredThreshold: number;
161
165
  activeUserInbounds: {
162
166
  type: string;
163
167
  uuid: string;
@@ -196,6 +200,7 @@ export declare namespace GetAllUsersCommand {
196
200
  telegramId: number | null;
197
201
  email: string | null;
198
202
  hwidDeviceLimit: number | null;
203
+ firstConnectedAt: string | null;
199
204
  activeUserInbounds: {
200
205
  type: string;
201
206
  uuid: string;
@@ -214,6 +219,7 @@ export declare namespace GetAllUsersCommand {
214
219
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
215
220
  trafficLimitBytes?: number | undefined;
216
221
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
222
+ lastTriggeredThreshold?: number | undefined;
217
223
  }>, "many">;
218
224
  total: z.ZodNumber;
219
225
  }, "strip", z.ZodTypeAny, {
@@ -243,6 +249,8 @@ export declare namespace GetAllUsersCommand {
243
249
  telegramId: number | null;
244
250
  email: string | null;
245
251
  hwidDeviceLimit: number | null;
252
+ firstConnectedAt: Date | null;
253
+ lastTriggeredThreshold: number;
246
254
  activeUserInbounds: {
247
255
  type: string;
248
256
  uuid: string;
@@ -284,6 +292,7 @@ export declare namespace GetAllUsersCommand {
284
292
  telegramId: number | null;
285
293
  email: string | null;
286
294
  hwidDeviceLimit: number | null;
295
+ firstConnectedAt: string | null;
287
296
  activeUserInbounds: {
288
297
  type: string;
289
298
  uuid: string;
@@ -302,6 +311,7 @@ export declare namespace GetAllUsersCommand {
302
311
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
303
312
  trafficLimitBytes?: number | undefined;
304
313
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
314
+ lastTriggeredThreshold?: number | undefined;
305
315
  }[];
306
316
  total: number;
307
317
  }>;
@@ -333,6 +343,8 @@ export declare namespace GetAllUsersCommand {
333
343
  telegramId: number | null;
334
344
  email: string | null;
335
345
  hwidDeviceLimit: number | null;
346
+ firstConnectedAt: Date | null;
347
+ lastTriggeredThreshold: number;
336
348
  activeUserInbounds: {
337
349
  type: string;
338
350
  uuid: string;
@@ -376,6 +388,7 @@ export declare namespace GetAllUsersCommand {
376
388
  telegramId: number | null;
377
389
  email: string | null;
378
390
  hwidDeviceLimit: number | null;
391
+ firstConnectedAt: string | null;
379
392
  activeUserInbounds: {
380
393
  type: string;
381
394
  uuid: string;
@@ -394,6 +407,7 @@ export declare namespace GetAllUsersCommand {
394
407
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
395
408
  trafficLimitBytes?: number | undefined;
396
409
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
410
+ lastTriggeredThreshold?: number | undefined;
397
411
  }[];
398
412
  total: number;
399
413
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAYrF,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiC7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all-users.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,eAAqB,CAAC;IAC/B,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAA+D,CAAC;IAYrF,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAiC7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAKzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -46,6 +46,8 @@ export declare namespace GetUserByEmailCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace GetUserByEmailCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace GetUserByEmailCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace GetUserByEmailCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>, "many">;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace GetUserByEmailCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace GetUserByEmailCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace GetUserByEmailCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  }[];
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-email.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-email.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,2BAA8B,CAAC;IACxC,MAAM,OAAO,QAAgB,CAAC;IAE9B,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-email.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-email.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,qBAAqB,CAAC;IAC5B,MAAM,GAAG,2BAA8B,CAAC;IACxC,MAAM,OAAO,QAAgB,CAAC;IAE9B,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"}
@@ -46,6 +46,8 @@ export declare namespace GetUserByShortUuidCommand {
46
46
  telegramId: z.ZodNullable<z.ZodNumber>;
47
47
  email: z.ZodNullable<z.ZodString>;
48
48
  hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
49
+ firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
50
+ lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
49
51
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
50
52
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
51
53
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -112,6 +114,8 @@ export declare namespace GetUserByShortUuidCommand {
112
114
  telegramId: number | null;
113
115
  email: string | null;
114
116
  hwidDeviceLimit: number | null;
117
+ firstConnectedAt: Date | null;
118
+ lastTriggeredThreshold: number;
115
119
  activeUserInbounds: {
116
120
  type: string;
117
121
  uuid: string;
@@ -150,6 +154,7 @@ export declare namespace GetUserByShortUuidCommand {
150
154
  telegramId: number | null;
151
155
  email: string | null;
152
156
  hwidDeviceLimit: number | null;
157
+ firstConnectedAt: string | null;
153
158
  activeUserInbounds: {
154
159
  type: string;
155
160
  uuid: string;
@@ -168,6 +173,7 @@ export declare namespace GetUserByShortUuidCommand {
168
173
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
174
  trafficLimitBytes?: number | undefined;
170
175
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
176
+ lastTriggeredThreshold?: number | undefined;
171
177
  }>;
172
178
  }, "strip", z.ZodTypeAny, {
173
179
  response: {
@@ -196,6 +202,8 @@ export declare namespace GetUserByShortUuidCommand {
196
202
  telegramId: number | null;
197
203
  email: string | null;
198
204
  hwidDeviceLimit: number | null;
205
+ firstConnectedAt: Date | null;
206
+ lastTriggeredThreshold: number;
199
207
  activeUserInbounds: {
200
208
  type: string;
201
209
  uuid: string;
@@ -236,6 +244,7 @@ export declare namespace GetUserByShortUuidCommand {
236
244
  telegramId: number | null;
237
245
  email: string | null;
238
246
  hwidDeviceLimit: number | null;
247
+ firstConnectedAt: string | null;
239
248
  activeUserInbounds: {
240
249
  type: string;
241
250
  uuid: string;
@@ -254,6 +263,7 @@ export declare namespace GetUserByShortUuidCommand {
254
263
  status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
255
264
  trafficLimitBytes?: number | undefined;
256
265
  trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
266
+ lastTriggeredThreshold?: number | undefined;
257
267
  };
258
268
  }>;
259
269
  type Response = z.infer<typeof ResponseSchema>;
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/users/get-by/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,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,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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