@remnawave/backend-contract 0.0.86 → 0.0.87

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 (27) hide show
  1. package/build/backend/commands/users/create-user.command.d.ts +30 -6
  2. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  3. package/build/backend/commands/users/disable-user.command.ts.d.ts +16 -4
  4. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  5. package/build/backend/commands/users/enable-user.command.d.ts +16 -4
  6. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  7. package/build/backend/commands/users/get-all-users-v2.command.d.ts +17 -5
  8. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  9. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +16 -4
  10. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  11. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +16 -4
  12. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  13. package/build/backend/commands/users/get-user-by-username.command.d.ts +16 -4
  14. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  15. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +16 -4
  16. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  17. package/build/backend/commands/users/reset-user-traffic.command.d.ts +16 -4
  18. package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
  19. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +16 -4
  20. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  21. package/build/backend/commands/users/update-user.command.d.ts +44 -8
  22. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  23. package/build/backend/models/users.schema.d.ts +15 -3
  24. package/build/backend/models/users.schema.d.ts.map +1 -1
  25. package/build/backend/models/users.schema.js +2 -4
  26. package/build/frontend/models/users.schema.js +2 -4
  27. package/package.json +1 -1
@@ -4,14 +4,26 @@ export declare namespace CreateUserCommand {
4
4
  const TSQ_url: "/api/users/";
5
5
  const RequestSchema: z.ZodObject<{
6
6
  username: z.ZodString;
7
- status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>>>;
7
+ status: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
8
+ readonly ACTIVE: "ACTIVE";
9
+ readonly DISABLED: "DISABLED";
10
+ readonly LIMITED: "LIMITED";
11
+ readonly EXPIRED: "EXPIRED";
12
+ }>>>;
8
13
  subscriptionUuid: z.ZodOptional<z.ZodString>;
9
14
  shortUuid: z.ZodOptional<z.ZodString>;
10
15
  trojanPassword: z.ZodOptional<z.ZodString>;
11
16
  vlessUuid: z.ZodOptional<z.ZodString>;
12
17
  ssPassword: z.ZodOptional<z.ZodString>;
13
18
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
14
- trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>;
19
+ trafficLimitStrategy: z.ZodEffects<z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodNativeEnum<{
20
+ readonly NO_RESET: "NO_RESET";
21
+ readonly DAY: "DAY";
22
+ readonly WEEK: "WEEK";
23
+ readonly MONTH: "MONTH";
24
+ readonly YEAR: "YEAR";
25
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
26
+ }>>>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>;
15
27
  activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
16
28
  expireAt: z.ZodEffects<z.ZodDate, Date, Date>;
17
29
  createdAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
@@ -58,11 +70,23 @@ export declare namespace CreateUserCommand {
58
70
  subscriptionUuid: z.ZodString;
59
71
  shortUuid: z.ZodString;
60
72
  username: z.ZodString;
61
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
73
+ status: z.ZodNativeEnum<{
74
+ readonly ACTIVE: "ACTIVE";
75
+ readonly DISABLED: "DISABLED";
76
+ readonly LIMITED: "LIMITED";
77
+ readonly EXPIRED: "EXPIRED";
78
+ }>;
62
79
  usedTrafficBytes: z.ZodNumber;
63
80
  lifetimeUsedTrafficBytes: z.ZodNumber;
64
81
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
65
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
82
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
83
+ readonly NO_RESET: "NO_RESET";
84
+ readonly DAY: "DAY";
85
+ readonly WEEK: "WEEK";
86
+ readonly MONTH: "MONTH";
87
+ readonly YEAR: "YEAR";
88
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
89
+ }>>;
66
90
  subLastUserAgent: z.ZodNullable<z.ZodString>;
67
91
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
68
92
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -118,6 +142,7 @@ export declare namespace CreateUserCommand {
118
142
  }, {
119
143
  uuid: string;
120
144
  username: string;
145
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
121
146
  createdAt: string;
122
147
  updatedAt: string;
123
148
  subscriptionUuid: string;
@@ -139,7 +164,6 @@ export declare namespace CreateUserCommand {
139
164
  type: string;
140
165
  tag: string;
141
166
  }[];
142
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
143
167
  trafficLimitBytes?: number | undefined;
144
168
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
145
169
  }>;
@@ -176,6 +200,7 @@ export declare namespace CreateUserCommand {
176
200
  response: {
177
201
  uuid: string;
178
202
  username: string;
203
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
179
204
  createdAt: string;
180
205
  updatedAt: string;
181
206
  subscriptionUuid: string;
@@ -197,7 +222,6 @@ export declare namespace CreateUserCommand {
197
222
  type: string;
198
223
  tag: string;
199
224
  }[];
200
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
201
225
  trafficLimitBytes?: number | undefined;
202
226
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
203
227
  };
@@ -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,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoGxB,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":"create-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/create-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoGxB,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"}
@@ -16,11 +16,23 @@ export declare namespace DisableUserCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -79,6 +91,7 @@ export declare namespace DisableUserCommand {
79
91
  }, {
80
92
  uuid: string;
81
93
  username: string;
94
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
82
95
  createdAt: string;
83
96
  updatedAt: string;
84
97
  subscriptionUuid: string;
@@ -101,7 +114,6 @@ export declare namespace DisableUserCommand {
101
114
  tag: string;
102
115
  }[];
103
116
  subscriptionUrl: string;
104
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
105
117
  trafficLimitBytes?: number | undefined;
106
118
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
107
119
  }>;
@@ -139,6 +151,7 @@ export declare namespace DisableUserCommand {
139
151
  response: {
140
152
  uuid: string;
141
153
  username: string;
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
155
  createdAt: string;
143
156
  updatedAt: string;
144
157
  subscriptionUuid: string;
@@ -161,7 +174,6 @@ export declare namespace DisableUserCommand {
161
174
  tag: string;
162
175
  }[];
163
176
  subscriptionUrl: string;
164
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
165
177
  trafficLimitBytes?: number | undefined;
166
178
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
167
179
  };
@@ -1 +1 @@
1
- {"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"disable-user.command.ts.d.ts","sourceRoot":"","sources":["../../../../commands/users/disable-user.command.ts.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAA8B,CAAC;IACxC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -16,11 +16,23 @@ export declare namespace EnableUserCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -79,6 +91,7 @@ export declare namespace EnableUserCommand {
79
91
  }, {
80
92
  uuid: string;
81
93
  username: string;
94
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
82
95
  createdAt: string;
83
96
  updatedAt: string;
84
97
  subscriptionUuid: string;
@@ -101,7 +114,6 @@ export declare namespace EnableUserCommand {
101
114
  tag: string;
102
115
  }[];
103
116
  subscriptionUrl: string;
104
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
105
117
  trafficLimitBytes?: number | undefined;
106
118
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
107
119
  }>;
@@ -139,6 +151,7 @@ export declare namespace EnableUserCommand {
139
151
  response: {
140
152
  uuid: string;
141
153
  username: string;
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
155
  createdAt: string;
143
156
  updatedAt: string;
144
157
  subscriptionUuid: string;
@@ -161,7 +174,6 @@ export declare namespace EnableUserCommand {
161
174
  tag: string;
162
175
  }[];
163
176
  subscriptionUrl: string;
164
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
165
177
  trafficLimitBytes?: number | undefined;
166
178
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
167
179
  };
@@ -1 +1 @@
1
- {"version":3,"file":"enable-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,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/enable-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -62,11 +62,23 @@ export declare namespace GetAllUsersV2Command {
62
62
  subscriptionUuid: z.ZodString;
63
63
  shortUuid: z.ZodString;
64
64
  username: z.ZodString;
65
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
65
+ status: z.ZodNativeEnum<{
66
+ readonly ACTIVE: "ACTIVE";
67
+ readonly DISABLED: "DISABLED";
68
+ readonly LIMITED: "LIMITED";
69
+ readonly EXPIRED: "EXPIRED";
70
+ }>;
66
71
  usedTrafficBytes: z.ZodNumber;
67
72
  lifetimeUsedTrafficBytes: z.ZodNumber;
68
73
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
69
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
74
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
75
+ readonly NO_RESET: "NO_RESET";
76
+ readonly DAY: "DAY";
77
+ readonly WEEK: "WEEK";
78
+ readonly MONTH: "MONTH";
79
+ readonly YEAR: "YEAR";
80
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
81
+ }>>;
70
82
  subLastUserAgent: z.ZodNullable<z.ZodString>;
71
83
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
72
84
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -139,6 +151,7 @@ export declare namespace GetAllUsersV2Command {
139
151
  }, {
140
152
  uuid: string;
141
153
  username: string;
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
155
  createdAt: string;
143
156
  updatedAt: string;
144
157
  subscriptionUuid: string;
@@ -165,7 +178,6 @@ export declare namespace GetAllUsersV2Command {
165
178
  nodeName: string;
166
179
  connectedAt: string;
167
180
  } | null;
168
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
169
181
  trafficLimitBytes?: number | undefined;
170
182
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
171
183
  }>, "many">;
@@ -209,6 +221,7 @@ export declare namespace GetAllUsersV2Command {
209
221
  users: {
210
222
  uuid: string;
211
223
  username: string;
224
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
212
225
  createdAt: string;
213
226
  updatedAt: string;
214
227
  subscriptionUuid: string;
@@ -235,7 +248,6 @@ export declare namespace GetAllUsersV2Command {
235
248
  nodeName: string;
236
249
  connectedAt: string;
237
250
  } | null;
238
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
239
251
  trafficLimitBytes?: number | undefined;
240
252
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
241
253
  }[];
@@ -283,6 +295,7 @@ export declare namespace GetAllUsersV2Command {
283
295
  users: {
284
296
  uuid: string;
285
297
  username: string;
298
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
286
299
  createdAt: string;
287
300
  updatedAt: string;
288
301
  subscriptionUuid: string;
@@ -309,7 +322,6 @@ export declare namespace GetAllUsersV2Command {
309
322
  nodeName: string;
310
323
  connectedAt: string;
311
324
  } | null;
312
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
313
325
  trafficLimitBytes?: number | undefined;
314
326
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
315
327
  }[];
@@ -1 +1 @@
1
- {"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all-users-v2.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-all-users-v2.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,iBAA4B,CAAC;IACtC,MAAM,OAAO,iBAAM,CAAC;IAYpB,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyB7B,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAEvD,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgBzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -16,11 +16,23 @@ export declare namespace GetUserByShortUuidCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -76,6 +88,7 @@ export declare namespace GetUserByShortUuidCommand {
76
88
  }, {
77
89
  uuid: string;
78
90
  username: string;
91
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
79
92
  createdAt: string;
80
93
  updatedAt: string;
81
94
  subscriptionUuid: string;
@@ -97,7 +110,6 @@ export declare namespace GetUserByShortUuidCommand {
97
110
  type: string;
98
111
  tag: string;
99
112
  }[];
100
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
101
113
  trafficLimitBytes?: number | undefined;
102
114
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
103
115
  }>;
@@ -134,6 +146,7 @@ export declare namespace GetUserByShortUuidCommand {
134
146
  response: {
135
147
  uuid: string;
136
148
  username: string;
149
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
137
150
  createdAt: string;
138
151
  updatedAt: string;
139
152
  subscriptionUuid: string;
@@ -155,7 +168,6 @@ export declare namespace GetUserByShortUuidCommand {
155
168
  type: string;
156
169
  tag: string;
157
170
  }[];
158
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
159
171
  trafficLimitBytes?: number | undefined;
160
172
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
161
173
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,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-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,yBAAyB,CAAC;IAChC,MAAM,GAAG,+BAAmC,CAAC;IAC7C,MAAM,OAAO,QAAoB,CAAC;IAElC,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"}
@@ -16,11 +16,23 @@ export declare namespace GetUserBySubscriptionUuidCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -76,6 +88,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
76
88
  }, {
77
89
  uuid: string;
78
90
  username: string;
91
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
79
92
  createdAt: string;
80
93
  updatedAt: string;
81
94
  subscriptionUuid: string;
@@ -97,7 +110,6 @@ export declare namespace GetUserBySubscriptionUuidCommand {
97
110
  type: string;
98
111
  tag: string;
99
112
  }[];
100
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
101
113
  trafficLimitBytes?: number | undefined;
102
114
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
103
115
  }>;
@@ -134,6 +146,7 @@ export declare namespace GetUserBySubscriptionUuidCommand {
134
146
  response: {
135
147
  uuid: string;
136
148
  username: string;
149
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
137
150
  createdAt: string;
138
151
  updatedAt: string;
139
152
  subscriptionUuid: string;
@@ -155,7 +168,6 @@ export declare namespace GetUserBySubscriptionUuidCommand {
155
168
  type: string;
156
169
  tag: string;
157
170
  }[];
158
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
159
171
  trafficLimitBytes?: number | undefined;
160
172
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
161
173
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,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-subscription-uuid.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-subscription-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,gCAAgC,CAAC;IACvC,MAAM,GAAG,sCAA0C,CAAC;IACpD,MAAM,OAAO,QAA2B,CAAC;IAEzC,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"}
@@ -16,11 +16,23 @@ export declare namespace GetUserByUsernameCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -76,6 +88,7 @@ export declare namespace GetUserByUsernameCommand {
76
88
  }, {
77
89
  uuid: string;
78
90
  username: string;
91
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
79
92
  createdAt: string;
80
93
  updatedAt: string;
81
94
  subscriptionUuid: string;
@@ -97,7 +110,6 @@ export declare namespace GetUserByUsernameCommand {
97
110
  type: string;
98
111
  tag: string;
99
112
  }[];
100
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
101
113
  trafficLimitBytes?: number | undefined;
102
114
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
103
115
  }>;
@@ -134,6 +146,7 @@ export declare namespace GetUserByUsernameCommand {
134
146
  response: {
135
147
  uuid: string;
136
148
  username: string;
149
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
137
150
  createdAt: string;
138
151
  updatedAt: string;
139
152
  subscriptionUuid: string;
@@ -155,7 +168,6 @@ export declare namespace GetUserByUsernameCommand {
155
168
  type: string;
156
169
  tag: string;
157
170
  }[];
158
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
159
171
  trafficLimitBytes?: number | undefined;
160
172
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
161
173
  };
@@ -1 +1 @@
1
- {"version":3,"file":"get-user-by-username.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/get-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,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-user-by-username.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,wBAAwB,CAAC;IAC/B,MAAM,GAAG,8BAAiC,CAAC;IAC3C,MAAM,OAAO,QAAmB,CAAC;IAEjC,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"}
@@ -16,11 +16,23 @@ export declare namespace GetUserByUuidCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -79,6 +91,7 @@ export declare namespace GetUserByUuidCommand {
79
91
  }, {
80
92
  uuid: string;
81
93
  username: string;
94
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
82
95
  createdAt: string;
83
96
  updatedAt: string;
84
97
  subscriptionUuid: string;
@@ -101,7 +114,6 @@ export declare namespace GetUserByUuidCommand {
101
114
  tag: string;
102
115
  }[];
103
116
  subscriptionUrl: string;
104
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
105
117
  trafficLimitBytes?: number | undefined;
106
118
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
107
119
  }>;
@@ -139,6 +151,7 @@ export declare namespace GetUserByUuidCommand {
139
151
  response: {
140
152
  uuid: string;
141
153
  username: string;
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
155
  createdAt: string;
143
156
  updatedAt: string;
144
157
  subscriptionUuid: string;
@@ -161,7 +174,6 @@ export declare namespace GetUserByUuidCommand {
161
174
  tag: string;
162
175
  }[];
163
176
  subscriptionUrl: string;
164
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
165
177
  trafficLimitBytes?: number | undefined;
166
178
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
167
179
  };
@@ -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;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,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;AAKxB,yBAAiB,oBAAoB,CAAC;IAC3B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -16,11 +16,23 @@ export declare namespace ResetUserTrafficCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -76,6 +88,7 @@ export declare namespace ResetUserTrafficCommand {
76
88
  }, {
77
89
  uuid: string;
78
90
  username: string;
91
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
79
92
  createdAt: string;
80
93
  updatedAt: string;
81
94
  subscriptionUuid: string;
@@ -97,7 +110,6 @@ export declare namespace ResetUserTrafficCommand {
97
110
  type: string;
98
111
  tag: string;
99
112
  }[];
100
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
101
113
  trafficLimitBytes?: number | undefined;
102
114
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
103
115
  }>;
@@ -134,6 +146,7 @@ export declare namespace ResetUserTrafficCommand {
134
146
  response: {
135
147
  uuid: string;
136
148
  username: string;
149
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
137
150
  createdAt: string;
138
151
  updatedAt: string;
139
152
  subscriptionUuid: string;
@@ -155,7 +168,6 @@ export declare namespace ResetUserTrafficCommand {
155
168
  type: string;
156
169
  tag: string;
157
170
  }[];
158
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
159
171
  trafficLimitBytes?: number | undefined;
160
172
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
161
173
  };
@@ -1 +1 @@
1
- {"version":3,"file":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,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":"reset-user-traffic.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/reset-user-traffic.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,uBAAuB,CAAC;IAC9B,MAAM,GAAG,0BAAoC,CAAC;IAC9C,MAAM,OAAO,QAAe,CAAC;IAE7B,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"}
@@ -16,11 +16,23 @@ export declare namespace RevokeUserSubscriptionCommand {
16
16
  subscriptionUuid: z.ZodString;
17
17
  shortUuid: z.ZodString;
18
18
  username: z.ZodString;
19
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
19
+ status: z.ZodNativeEnum<{
20
+ readonly ACTIVE: "ACTIVE";
21
+ readonly DISABLED: "DISABLED";
22
+ readonly LIMITED: "LIMITED";
23
+ readonly EXPIRED: "EXPIRED";
24
+ }>;
20
25
  usedTrafficBytes: z.ZodNumber;
21
26
  lifetimeUsedTrafficBytes: z.ZodNumber;
22
27
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
23
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
28
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
29
+ readonly NO_RESET: "NO_RESET";
30
+ readonly DAY: "DAY";
31
+ readonly WEEK: "WEEK";
32
+ readonly MONTH: "MONTH";
33
+ readonly YEAR: "YEAR";
34
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
35
+ }>>;
24
36
  subLastUserAgent: z.ZodNullable<z.ZodString>;
25
37
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
26
38
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -79,6 +91,7 @@ export declare namespace RevokeUserSubscriptionCommand {
79
91
  }, {
80
92
  uuid: string;
81
93
  username: string;
94
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
82
95
  createdAt: string;
83
96
  updatedAt: string;
84
97
  subscriptionUuid: string;
@@ -101,7 +114,6 @@ export declare namespace RevokeUserSubscriptionCommand {
101
114
  tag: string;
102
115
  }[];
103
116
  subscriptionUrl: string;
104
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
105
117
  trafficLimitBytes?: number | undefined;
106
118
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
107
119
  }>;
@@ -139,6 +151,7 @@ export declare namespace RevokeUserSubscriptionCommand {
139
151
  response: {
140
152
  uuid: string;
141
153
  username: string;
154
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
155
  createdAt: string;
143
156
  updatedAt: string;
144
157
  subscriptionUuid: string;
@@ -161,7 +174,6 @@ export declare namespace RevokeUserSubscriptionCommand {
161
174
  tag: string;
162
175
  }[];
163
176
  subscriptionUrl: string;
164
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
165
177
  trafficLimitBytes?: number | undefined;
166
178
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
167
179
  };
@@ -1 +1 @@
1
- {"version":3,"file":"revoke-user-subscription.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,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/revoke-user-subscription.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,6BAA6B,CAAC;IACpC,MAAM,GAAG,0BAAqC,CAAC;IAC/C,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -7,11 +7,23 @@ export declare namespace UpdateUserCommand {
7
7
  subscriptionUuid: z.ZodString;
8
8
  shortUuid: z.ZodString;
9
9
  username: z.ZodString;
10
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
10
+ status: z.ZodNativeEnum<{
11
+ readonly ACTIVE: "ACTIVE";
12
+ readonly DISABLED: "DISABLED";
13
+ readonly LIMITED: "LIMITED";
14
+ readonly EXPIRED: "EXPIRED";
15
+ }>;
11
16
  usedTrafficBytes: z.ZodNumber;
12
17
  lifetimeUsedTrafficBytes: z.ZodNumber;
13
18
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
14
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
19
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
20
+ readonly NO_RESET: "NO_RESET";
21
+ readonly DAY: "DAY";
22
+ readonly WEEK: "WEEK";
23
+ readonly MONTH: "MONTH";
24
+ readonly YEAR: "YEAR";
25
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
26
+ }>>;
15
27
  subLastUserAgent: z.ZodNullable<z.ZodString>;
16
28
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
17
29
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -38,9 +50,21 @@ export declare namespace UpdateUserCommand {
38
50
  tag: string;
39
51
  }>, "many">;
40
52
  }, "uuid">, {
41
- status: z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>>;
53
+ status: z.ZodOptional<z.ZodNativeEnum<{
54
+ readonly ACTIVE: "ACTIVE";
55
+ readonly DISABLED: "DISABLED";
56
+ readonly LIMITED: "LIMITED";
57
+ readonly EXPIRED: "EXPIRED";
58
+ }>>;
42
59
  trafficLimitBytes: z.ZodOptional<z.ZodNumber>;
43
- trafficLimitStrategy: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>>;
60
+ trafficLimitStrategy: z.ZodOptional<z.ZodEffects<z.ZodDefault<z.ZodNativeEnum<{
61
+ readonly NO_RESET: "NO_RESET";
62
+ readonly DAY: "DAY";
63
+ readonly WEEK: "WEEK";
64
+ readonly MONTH: "MONTH";
65
+ readonly YEAR: "YEAR";
66
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
67
+ }>>, "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined>>;
44
68
  activeUserInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
45
69
  expireAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
46
70
  description: z.ZodOptional<z.ZodString>;
@@ -68,11 +92,23 @@ export declare namespace UpdateUserCommand {
68
92
  subscriptionUuid: z.ZodString;
69
93
  shortUuid: z.ZodString;
70
94
  username: z.ZodString;
71
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
95
+ status: z.ZodNativeEnum<{
96
+ readonly ACTIVE: "ACTIVE";
97
+ readonly DISABLED: "DISABLED";
98
+ readonly LIMITED: "LIMITED";
99
+ readonly EXPIRED: "EXPIRED";
100
+ }>;
72
101
  usedTrafficBytes: z.ZodNumber;
73
102
  lifetimeUsedTrafficBytes: z.ZodNumber;
74
103
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
75
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
104
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
105
+ readonly NO_RESET: "NO_RESET";
106
+ readonly DAY: "DAY";
107
+ readonly WEEK: "WEEK";
108
+ readonly MONTH: "MONTH";
109
+ readonly YEAR: "YEAR";
110
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
111
+ }>>;
76
112
  subLastUserAgent: z.ZodNullable<z.ZodString>;
77
113
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
78
114
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -131,6 +167,7 @@ export declare namespace UpdateUserCommand {
131
167
  }, {
132
168
  uuid: string;
133
169
  username: string;
170
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
134
171
  createdAt: string;
135
172
  updatedAt: string;
136
173
  subscriptionUuid: string;
@@ -153,7 +190,6 @@ export declare namespace UpdateUserCommand {
153
190
  tag: string;
154
191
  }[];
155
192
  subscriptionUrl: string;
156
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
157
193
  trafficLimitBytes?: number | undefined;
158
194
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
159
195
  }>;
@@ -191,6 +227,7 @@ export declare namespace UpdateUserCommand {
191
227
  response: {
192
228
  uuid: string;
193
229
  username: string;
230
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
194
231
  createdAt: string;
195
232
  updatedAt: string;
196
233
  subscriptionUuid: string;
@@ -213,7 +250,6 @@ export declare namespace UpdateUserCommand {
213
250
  tag: string;
214
251
  }[];
215
252
  subscriptionUrl: string;
216
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
217
253
  trafficLimitBytes?: number | undefined;
218
254
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
219
255
  };
@@ -1 +1 @@
1
- {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-user.command.d.ts","sourceRoot":"","sources":["../../../../commands/users/update-user.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA0CxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,11 +4,23 @@ export declare const UsersSchema: z.ZodObject<{
4
4
  subscriptionUuid: z.ZodString;
5
5
  shortUuid: z.ZodString;
6
6
  username: z.ZodString;
7
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
7
+ status: z.ZodNativeEnum<{
8
+ readonly ACTIVE: "ACTIVE";
9
+ readonly DISABLED: "DISABLED";
10
+ readonly LIMITED: "LIMITED";
11
+ readonly EXPIRED: "EXPIRED";
12
+ }>;
8
13
  usedTrafficBytes: z.ZodNumber;
9
14
  lifetimeUsedTrafficBytes: z.ZodNumber;
10
15
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
11
- trafficLimitStrategy: z.ZodDefault<z.ZodEnum<["MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH", ...("MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH")[]]>>;
16
+ trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
17
+ readonly NO_RESET: "NO_RESET";
18
+ readonly DAY: "DAY";
19
+ readonly WEEK: "WEEK";
20
+ readonly MONTH: "MONTH";
21
+ readonly YEAR: "YEAR";
22
+ readonly CALENDAR_MONTH: "CALENDAR_MONTH";
23
+ }>>;
12
24
  subLastUserAgent: z.ZodNullable<z.ZodString>;
13
25
  subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
14
26
  expireAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
@@ -64,6 +76,7 @@ export declare const UsersSchema: z.ZodObject<{
64
76
  }, {
65
77
  uuid: string;
66
78
  username: string;
79
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
67
80
  createdAt: string;
68
81
  updatedAt: string;
69
82
  subscriptionUuid: string;
@@ -85,7 +98,6 @@ export declare const UsersSchema: z.ZodObject<{
85
98
  type: string;
86
99
  tag: string;
87
100
  }[];
88
- status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
89
101
  trafficLimitBytes?: number | undefined;
90
102
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
91
103
  }>;
@@ -1 +1 @@
1
- {"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoCtB,CAAC"}
1
+ {"version":3,"file":"users.schema.d.ts","sourceRoot":"","sources":["../../../models/users.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAkCtB,CAAC"}
@@ -9,14 +9,12 @@ exports.UsersSchema = zod_1.z.object({
9
9
  subscriptionUuid: zod_1.z.string().uuid(),
10
10
  shortUuid: zod_1.z.string(),
11
11
  username: zod_1.z.string(),
12
- status: zod_1.z
13
- .enum([constants_1.USERS_STATUS_VALUES[0], ...constants_1.USERS_STATUS_VALUES])
14
- .default(constants_1.USERS_STATUS_VALUES[0]),
12
+ status: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
15
13
  usedTrafficBytes: zod_1.z.number(),
16
14
  lifetimeUsedTrafficBytes: zod_1.z.number(),
17
15
  trafficLimitBytes: zod_1.z.number().int().default(0),
18
16
  trafficLimitStrategy: zod_1.z
19
- .enum([constants_1.RESET_PERIODS_VALUES[0], ...constants_1.RESET_PERIODS_VALUES], {
17
+ .nativeEnum(constants_1.RESET_PERIODS, {
20
18
  description: 'Available reset periods',
21
19
  })
22
20
  .default(constants_1.RESET_PERIODS_VALUES[0]),
@@ -9,14 +9,12 @@ exports.UsersSchema = zod_1.z.object({
9
9
  subscriptionUuid: zod_1.z.string().uuid(),
10
10
  shortUuid: zod_1.z.string(),
11
11
  username: zod_1.z.string(),
12
- status: zod_1.z
13
- .enum([constants_1.USERS_STATUS_VALUES[0], ...constants_1.USERS_STATUS_VALUES])
14
- .default(constants_1.USERS_STATUS_VALUES[0]),
12
+ status: zod_1.z.nativeEnum(constants_1.USERS_STATUS),
15
13
  usedTrafficBytes: zod_1.z.number(),
16
14
  lifetimeUsedTrafficBytes: zod_1.z.number(),
17
15
  trafficLimitBytes: zod_1.z.number().int().default(0),
18
16
  trafficLimitStrategy: zod_1.z
19
- .enum([constants_1.RESET_PERIODS_VALUES[0], ...constants_1.RESET_PERIODS_VALUES], {
17
+ .nativeEnum(constants_1.RESET_PERIODS, {
20
18
  description: 'Available reset periods',
21
19
  })
22
20
  .default(constants_1.RESET_PERIODS_VALUES[0]),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.86",
3
+ "version": "0.0.87",
4
4
  "public": true,
5
5
  "license": "AGPL-3.0-only",
6
6
  "description": "A contract library for Remnawave Backend. It can be used in backend and frontend.",