@remnawave/backend-contract 0.0.85 → 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 (49) hide show
  1. package/build/backend/commands/nodes/create.command.d.ts +8 -0
  2. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  3. package/build/backend/commands/nodes/create.command.js +4 -0
  4. package/build/backend/commands/nodes/disable.command.d.ts +5 -0
  5. package/build/backend/commands/nodes/disable.command.d.ts.map +1 -1
  6. package/build/backend/commands/nodes/enable.command.d.ts +5 -0
  7. package/build/backend/commands/nodes/enable.command.d.ts.map +1 -1
  8. package/build/backend/commands/nodes/get-all.command.d.ts +5 -0
  9. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  10. package/build/backend/commands/nodes/get-one.command.d.ts +5 -0
  11. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  12. package/build/backend/commands/nodes/reorder.command.d.ts +6 -0
  13. package/build/backend/commands/nodes/reorder.command.d.ts.map +1 -1
  14. package/build/backend/commands/nodes/update.command.d.ts +9 -0
  15. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  16. package/build/backend/commands/nodes/update.command.js +4 -0
  17. package/build/backend/commands/users/create-user.command.d.ts +30 -6
  18. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  19. package/build/backend/commands/users/disable-user.command.ts.d.ts +16 -4
  20. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  21. package/build/backend/commands/users/enable-user.command.d.ts +16 -4
  22. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  23. package/build/backend/commands/users/get-all-users-v2.command.d.ts +17 -5
  24. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  25. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +16 -4
  26. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  27. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +16 -4
  28. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  29. package/build/backend/commands/users/get-user-by-username.command.d.ts +16 -4
  30. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  31. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +16 -4
  32. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  33. package/build/backend/commands/users/reset-user-traffic.command.d.ts +16 -4
  34. package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
  35. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +16 -4
  36. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  37. package/build/backend/commands/users/update-user.command.d.ts +44 -8
  38. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  39. package/build/backend/models/nodes.schema.d.ts +3 -0
  40. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  41. package/build/backend/models/nodes.schema.js +1 -0
  42. package/build/backend/models/users.schema.d.ts +15 -3
  43. package/build/backend/models/users.schema.d.ts.map +1 -1
  44. package/build/backend/models/users.schema.js +2 -4
  45. package/build/frontend/commands/nodes/create.command.js +4 -0
  46. package/build/frontend/commands/nodes/update.command.js +4 -0
  47. package/build/frontend/models/nodes.schema.js +1 -0
  48. package/build/frontend/models/users.schema.js +2 -4
  49. package/package.json +1 -1
@@ -12,6 +12,7 @@ export declare namespace CreateNodeCommand {
12
12
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
13
13
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
14
  countryCode: z.ZodDefault<z.ZodString>;
15
+ consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
15
16
  }, "strip", z.ZodTypeAny, {
16
17
  address: string;
17
18
  name: string;
@@ -21,6 +22,7 @@ export declare namespace CreateNodeCommand {
21
22
  trafficResetDay?: number | undefined;
22
23
  trafficLimitBytes?: number | undefined;
23
24
  notifyPercent?: number | undefined;
25
+ consumptionMultiplier?: number | undefined;
24
26
  excludedInbounds?: string[] | undefined;
25
27
  }, {
26
28
  address: string;
@@ -31,6 +33,7 @@ export declare namespace CreateNodeCommand {
31
33
  trafficLimitBytes?: number | undefined;
32
34
  notifyPercent?: number | undefined;
33
35
  countryCode?: string | undefined;
36
+ consumptionMultiplier?: number | undefined;
34
37
  excludedInbounds?: string[] | undefined;
35
38
  }>;
36
39
  type Request = z.infer<typeof RequestSchema>;
@@ -56,6 +59,7 @@ export declare namespace CreateNodeCommand {
56
59
  usersOnline: z.ZodNullable<z.ZodNumber>;
57
60
  viewPosition: z.ZodNumber;
58
61
  countryCode: z.ZodString;
62
+ consumptionMultiplier: z.ZodNumber;
59
63
  cpuCount: z.ZodNullable<z.ZodNumber>;
60
64
  cpuModel: z.ZodNullable<z.ZodString>;
61
65
  totalRam: z.ZodNullable<z.ZodString>;
@@ -97,6 +101,7 @@ export declare namespace CreateNodeCommand {
97
101
  notifyPercent: number | null;
98
102
  usersOnline: number | null;
99
103
  countryCode: string;
104
+ consumptionMultiplier: number;
100
105
  cpuCount: number | null;
101
106
  cpuModel: string | null;
102
107
  totalRam: string | null;
@@ -128,6 +133,7 @@ export declare namespace CreateNodeCommand {
128
133
  notifyPercent: number | null;
129
134
  usersOnline: number | null;
130
135
  countryCode: string;
136
+ consumptionMultiplier: number;
131
137
  cpuCount: number | null;
132
138
  cpuModel: string | null;
133
139
  totalRam: string | null;
@@ -161,6 +167,7 @@ export declare namespace CreateNodeCommand {
161
167
  notifyPercent: number | null;
162
168
  usersOnline: number | null;
163
169
  countryCode: string;
170
+ consumptionMultiplier: number;
164
171
  cpuCount: number | null;
165
172
  cpuModel: string | null;
166
173
  totalRam: string | null;
@@ -194,6 +201,7 @@ export declare namespace CreateNodeCommand {
194
201
  notifyPercent: number | null;
195
202
  usersOnline: number | null;
196
203
  countryCode: string;
204
+ consumptionMultiplier: number;
197
205
  cpuCount: number | null;
198
206
  cpuModel: string | null;
199
207
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAgCxB,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.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAsCxB,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"}
@@ -32,6 +32,10 @@ var CreateNodeCommand;
32
32
  .max(2, 'Country code must be 2 characters')
33
33
  .toUpperCase()
34
34
  .default('XX'),
35
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
36
+ .number()
37
+ .min(0.1, 'Consumption multiplier must be greater than 0')
38
+ .transform((n) => Number(n.toFixed(1)))),
35
39
  });
36
40
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
37
41
  response: models_1.NodesSchema,
@@ -32,6 +32,7 @@ export declare namespace DisableNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace DisableNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace DisableNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace DisableNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace DisableNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,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":"disable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/disable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,0BAAyB,CAAC;IACnC,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"}
@@ -32,6 +32,7 @@ export declare namespace EnableNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace EnableNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace EnableNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace EnableNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace EnableNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,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":"enable.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/enable.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAwB,CAAC;IAClC,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"}
@@ -24,6 +24,7 @@ export declare namespace GetAllNodesCommand {
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
26
  countryCode: z.ZodString;
27
+ consumptionMultiplier: z.ZodNumber;
27
28
  cpuCount: z.ZodNullable<z.ZodNumber>;
28
29
  cpuModel: z.ZodNullable<z.ZodString>;
29
30
  totalRam: z.ZodNullable<z.ZodString>;
@@ -65,6 +66,7 @@ export declare namespace GetAllNodesCommand {
65
66
  notifyPercent: number | null;
66
67
  usersOnline: number | null;
67
68
  countryCode: string;
69
+ consumptionMultiplier: number;
68
70
  cpuCount: number | null;
69
71
  cpuModel: string | null;
70
72
  totalRam: string | null;
@@ -96,6 +98,7 @@ export declare namespace GetAllNodesCommand {
96
98
  notifyPercent: number | null;
97
99
  usersOnline: number | null;
98
100
  countryCode: string;
101
+ consumptionMultiplier: number;
99
102
  cpuCount: number | null;
100
103
  cpuModel: string | null;
101
104
  totalRam: string | null;
@@ -129,6 +132,7 @@ export declare namespace GetAllNodesCommand {
129
132
  notifyPercent: number | null;
130
133
  usersOnline: number | null;
131
134
  countryCode: string;
135
+ consumptionMultiplier: number;
132
136
  cpuCount: number | null;
133
137
  cpuModel: string | null;
134
138
  totalRam: string | null;
@@ -162,6 +166,7 @@ export declare namespace GetAllNodesCommand {
162
166
  notifyPercent: number | null;
163
167
  usersOnline: number | null;
164
168
  countryCode: string;
169
+ consumptionMultiplier: number;
165
170
  cpuCount: number | null;
166
171
  cpuModel: string | null;
167
172
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-all.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-all.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -32,6 +32,7 @@ export declare namespace GetOneNodeCommand {
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
34
  countryCode: z.ZodString;
35
+ consumptionMultiplier: z.ZodNumber;
35
36
  cpuCount: z.ZodNullable<z.ZodNumber>;
36
37
  cpuModel: z.ZodNullable<z.ZodString>;
37
38
  totalRam: z.ZodNullable<z.ZodString>;
@@ -73,6 +74,7 @@ export declare namespace GetOneNodeCommand {
73
74
  notifyPercent: number | null;
74
75
  usersOnline: number | null;
75
76
  countryCode: string;
77
+ consumptionMultiplier: number;
76
78
  cpuCount: number | null;
77
79
  cpuModel: string | null;
78
80
  totalRam: string | null;
@@ -104,6 +106,7 @@ export declare namespace GetOneNodeCommand {
104
106
  notifyPercent: number | null;
105
107
  usersOnline: number | null;
106
108
  countryCode: string;
109
+ consumptionMultiplier: number;
107
110
  cpuCount: number | null;
108
111
  cpuModel: string | null;
109
112
  totalRam: string | null;
@@ -137,6 +140,7 @@ export declare namespace GetOneNodeCommand {
137
140
  notifyPercent: number | null;
138
141
  usersOnline: number | null;
139
142
  countryCode: string;
143
+ consumptionMultiplier: number;
140
144
  cpuCount: number | null;
141
145
  cpuModel: string | null;
142
146
  totalRam: string | null;
@@ -170,6 +174,7 @@ export declare namespace GetOneNodeCommand {
170
174
  notifyPercent: number | null;
171
175
  usersOnline: number | null;
172
176
  countryCode: string;
177
+ consumptionMultiplier: number;
173
178
  cpuCount: number | null;
174
179
  cpuModel: string | null;
175
180
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,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":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAAyB,CAAC;IACnC,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"}
@@ -24,6 +24,7 @@ export declare namespace ReorderNodeCommand {
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
26
  countryCode: z.ZodString;
27
+ consumptionMultiplier: z.ZodNumber;
27
28
  cpuCount: z.ZodNullable<z.ZodNumber>;
28
29
  cpuModel: z.ZodNullable<z.ZodString>;
29
30
  totalRam: z.ZodNullable<z.ZodString>;
@@ -83,6 +84,7 @@ export declare namespace ReorderNodeCommand {
83
84
  usersOnline: z.ZodNullable<z.ZodNumber>;
84
85
  viewPosition: z.ZodNumber;
85
86
  countryCode: z.ZodString;
87
+ consumptionMultiplier: z.ZodNumber;
86
88
  cpuCount: z.ZodNullable<z.ZodNumber>;
87
89
  cpuModel: z.ZodNullable<z.ZodString>;
88
90
  totalRam: z.ZodNullable<z.ZodString>;
@@ -124,6 +126,7 @@ export declare namespace ReorderNodeCommand {
124
126
  notifyPercent: number | null;
125
127
  usersOnline: number | null;
126
128
  countryCode: string;
129
+ consumptionMultiplier: number;
127
130
  cpuCount: number | null;
128
131
  cpuModel: string | null;
129
132
  totalRam: string | null;
@@ -155,6 +158,7 @@ export declare namespace ReorderNodeCommand {
155
158
  notifyPercent: number | null;
156
159
  usersOnline: number | null;
157
160
  countryCode: string;
161
+ consumptionMultiplier: number;
158
162
  cpuCount: number | null;
159
163
  cpuModel: string | null;
160
164
  totalRam: string | null;
@@ -188,6 +192,7 @@ export declare namespace ReorderNodeCommand {
188
192
  notifyPercent: number | null;
189
193
  usersOnline: number | null;
190
194
  countryCode: string;
195
+ consumptionMultiplier: number;
191
196
  cpuCount: number | null;
192
197
  cpuModel: string | null;
193
198
  totalRam: string | null;
@@ -221,6 +226,7 @@ export declare namespace ReorderNodeCommand {
221
226
  notifyPercent: number | null;
222
227
  usersOnline: number | null;
223
228
  countryCode: string;
229
+ consumptionMultiplier: number;
224
230
  cpuCount: number | null;
225
231
  cpuModel: string | null;
226
232
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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":"reorder.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/reorder.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,kBAAkB,CAAC;IACzB,MAAM,GAAG,sBAAyB,CAAC;IACnC,MAAM,OAAO,sBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAOxB,CAAC;IACH,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"}
@@ -23,6 +23,7 @@ export declare namespace UpdateNodeCommand {
23
23
  usersOnline: z.ZodNullable<z.ZodNumber>;
24
24
  viewPosition: z.ZodNumber;
25
25
  countryCode: z.ZodString;
26
+ consumptionMultiplier: z.ZodNumber;
26
27
  cpuCount: z.ZodNullable<z.ZodNumber>;
27
28
  cpuModel: z.ZodNullable<z.ZodString>;
28
29
  totalRam: z.ZodNullable<z.ZodString>;
@@ -51,6 +52,7 @@ export declare namespace UpdateNodeCommand {
51
52
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
52
53
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
54
  countryCode: z.ZodOptional<z.ZodString>;
55
+ consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
54
56
  }>, "strip", z.ZodTypeAny, {
55
57
  uuid: string;
56
58
  address?: string | undefined;
@@ -61,6 +63,7 @@ export declare namespace UpdateNodeCommand {
61
63
  trafficLimitBytes?: number | undefined;
62
64
  notifyPercent?: number | undefined;
63
65
  countryCode?: string | undefined;
66
+ consumptionMultiplier?: number | undefined;
64
67
  excludedInbounds?: string[] | undefined;
65
68
  }, {
66
69
  uuid: string;
@@ -72,6 +75,7 @@ export declare namespace UpdateNodeCommand {
72
75
  trafficLimitBytes?: number | undefined;
73
76
  notifyPercent?: number | undefined;
74
77
  countryCode?: string | undefined;
78
+ consumptionMultiplier?: number | undefined;
75
79
  excludedInbounds?: string[] | undefined;
76
80
  }>;
77
81
  type Request = z.infer<typeof RequestSchema>;
@@ -97,6 +101,7 @@ export declare namespace UpdateNodeCommand {
97
101
  usersOnline: z.ZodNullable<z.ZodNumber>;
98
102
  viewPosition: z.ZodNumber;
99
103
  countryCode: z.ZodString;
104
+ consumptionMultiplier: z.ZodNumber;
100
105
  cpuCount: z.ZodNullable<z.ZodNumber>;
101
106
  cpuModel: z.ZodNullable<z.ZodString>;
102
107
  totalRam: z.ZodNullable<z.ZodString>;
@@ -138,6 +143,7 @@ export declare namespace UpdateNodeCommand {
138
143
  notifyPercent: number | null;
139
144
  usersOnline: number | null;
140
145
  countryCode: string;
146
+ consumptionMultiplier: number;
141
147
  cpuCount: number | null;
142
148
  cpuModel: string | null;
143
149
  totalRam: string | null;
@@ -169,6 +175,7 @@ export declare namespace UpdateNodeCommand {
169
175
  notifyPercent: number | null;
170
176
  usersOnline: number | null;
171
177
  countryCode: string;
178
+ consumptionMultiplier: number;
172
179
  cpuCount: number | null;
173
180
  cpuModel: string | null;
174
181
  totalRam: string | null;
@@ -202,6 +209,7 @@ export declare namespace UpdateNodeCommand {
202
209
  notifyPercent: number | null;
203
210
  usersOnline: number | null;
204
211
  countryCode: string;
212
+ consumptionMultiplier: number;
205
213
  cpuCount: number | null;
206
214
  cpuModel: string | null;
207
215
  totalRam: string | null;
@@ -235,6 +243,7 @@ export declare namespace UpdateNodeCommand {
235
243
  notifyPercent: number | null;
236
244
  usersOnline: number | null;
237
245
  countryCode: string;
246
+ consumptionMultiplier: number;
238
247
  cpuCount: number | null;
239
248
  cpuModel: string | null;
240
249
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA4BxB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,qBAAwB,CAAC;IAClC,MAAM,OAAO,qBAAM,CAAC;IAEpB,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkCxB,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"}
@@ -28,6 +28,10 @@ var UpdateNodeCommand;
28
28
  invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
29
  })),
30
30
  countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
31
+ consumptionMultiplier: zod_1.z.optional(zod_1.z
32
+ .number()
33
+ .min(0.1, 'Consumption multiplier must be greater than 0')
34
+ .transform((n) => Number(n.toFixed(1)))),
31
35
  });
32
36
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
33
37
  response: models_1.NodesSchema,
@@ -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"}