@remnawave/backend-contract 0.0.80 → 0.0.82

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 (60) 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 +5 -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 +1 -0
  17. package/build/backend/commands/subscription/get-subscription-info-by-short-uuid.command.d.ts +7 -7
  18. package/build/backend/commands/users/create-user.command.d.ts +16 -8
  19. package/build/backend/commands/users/create-user.command.d.ts.map +1 -1
  20. package/build/backend/commands/users/create-user.command.js +1 -0
  21. package/build/backend/commands/users/disable-user.command.ts.d.ts +10 -5
  22. package/build/backend/commands/users/disable-user.command.ts.d.ts.map +1 -1
  23. package/build/backend/commands/users/enable-user.command.d.ts +10 -5
  24. package/build/backend/commands/users/enable-user.command.d.ts.map +1 -1
  25. package/build/backend/commands/users/get-all-users-v2.command.d.ts +14 -7
  26. package/build/backend/commands/users/get-all-users-v2.command.d.ts.map +1 -1
  27. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts +10 -5
  28. package/build/backend/commands/users/get-user-by-short-uuid.command.d.ts.map +1 -1
  29. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts +10 -5
  30. package/build/backend/commands/users/get-user-by-subscription-uuid.command.d.ts.map +1 -1
  31. package/build/backend/commands/users/get-user-by-username.command.d.ts +10 -5
  32. package/build/backend/commands/users/get-user-by-username.command.d.ts.map +1 -1
  33. package/build/backend/commands/users/get-user-by-uuid.command.d.ts +10 -5
  34. package/build/backend/commands/users/get-user-by-uuid.command.d.ts.map +1 -1
  35. package/build/backend/commands/users/reset-user-traffic.command.d.ts +10 -5
  36. package/build/backend/commands/users/reset-user-traffic.command.d.ts.map +1 -1
  37. package/build/backend/commands/users/revoke-user-subscription.command.d.ts +10 -5
  38. package/build/backend/commands/users/revoke-user-subscription.command.d.ts.map +1 -1
  39. package/build/backend/commands/users/update-user.command.d.ts +18 -9
  40. package/build/backend/commands/users/update-user.command.d.ts.map +1 -1
  41. package/build/backend/commands/users/update-user.command.js +1 -0
  42. package/build/backend/constants/events/events.d.ts +25 -21
  43. package/build/backend/constants/events/events.d.ts.map +1 -1
  44. package/build/backend/constants/events/events.js +2 -0
  45. package/build/backend/constants/nodes/status/status.constant.d.ts +1 -1
  46. package/build/backend/constants/users/status/status.constant.d.ts +1 -1
  47. package/build/backend/models/nodes.schema.d.ts +3 -0
  48. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  49. package/build/backend/models/nodes.schema.js +1 -0
  50. package/build/backend/models/users.schema.d.ts +6 -3
  51. package/build/backend/models/users.schema.d.ts.map +1 -1
  52. package/build/backend/models/users.schema.js +1 -0
  53. package/build/frontend/commands/nodes/create.command.js +5 -0
  54. package/build/frontend/commands/nodes/update.command.js +1 -0
  55. package/build/frontend/commands/users/create-user.command.js +1 -0
  56. package/build/frontend/commands/users/update-user.command.js +1 -0
  57. package/build/frontend/constants/events/events.js +2 -0
  58. package/build/frontend/models/nodes.schema.js +1 -0
  59. package/build/frontend/models/users.schema.js +1 -0
  60. package/package.json +1 -1
@@ -11,10 +11,12 @@ export declare namespace CreateNodeCommand {
11
11
  notifyPercent: z.ZodOptional<z.ZodNumber>;
12
12
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
13
13
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
14
+ countryCode: z.ZodDefault<z.ZodString>;
14
15
  }, "strip", z.ZodTypeAny, {
15
16
  address: string;
16
17
  name: string;
17
18
  isTrafficTrackingActive: boolean;
19
+ countryCode: string;
18
20
  port?: number | undefined;
19
21
  trafficResetDay?: number | undefined;
20
22
  trafficLimitBytes?: number | undefined;
@@ -28,6 +30,7 @@ export declare namespace CreateNodeCommand {
28
30
  trafficResetDay?: number | undefined;
29
31
  trafficLimitBytes?: number | undefined;
30
32
  notifyPercent?: number | undefined;
33
+ countryCode?: string | undefined;
31
34
  excludedInbounds?: string[] | undefined;
32
35
  }>;
33
36
  type Request = z.infer<typeof RequestSchema>;
@@ -52,6 +55,7 @@ export declare namespace CreateNodeCommand {
52
55
  notifyPercent: z.ZodNullable<z.ZodNumber>;
53
56
  usersOnline: z.ZodNullable<z.ZodNumber>;
54
57
  viewPosition: z.ZodNumber;
58
+ countryCode: z.ZodString;
55
59
  cpuCount: z.ZodNullable<z.ZodNumber>;
56
60
  cpuModel: z.ZodNullable<z.ZodString>;
57
61
  totalRam: z.ZodNullable<z.ZodString>;
@@ -92,6 +96,7 @@ export declare namespace CreateNodeCommand {
92
96
  trafficUsedBytes: number | null;
93
97
  notifyPercent: number | null;
94
98
  usersOnline: number | null;
99
+ countryCode: string;
95
100
  cpuCount: number | null;
96
101
  cpuModel: string | null;
97
102
  totalRam: string | null;
@@ -122,6 +127,7 @@ export declare namespace CreateNodeCommand {
122
127
  trafficUsedBytes: number | null;
123
128
  notifyPercent: number | null;
124
129
  usersOnline: number | null;
130
+ countryCode: string;
125
131
  cpuCount: number | null;
126
132
  cpuModel: string | null;
127
133
  totalRam: string | null;
@@ -154,6 +160,7 @@ export declare namespace CreateNodeCommand {
154
160
  trafficUsedBytes: number | null;
155
161
  notifyPercent: number | null;
156
162
  usersOnline: number | null;
163
+ countryCode: string;
157
164
  cpuCount: number | null;
158
165
  cpuModel: string | null;
159
166
  totalRam: string | null;
@@ -186,6 +193,7 @@ export declare namespace CreateNodeCommand {
186
193
  trafficUsedBytes: number | null;
187
194
  notifyPercent: number | null;
188
195
  usersOnline: number | null;
196
+ countryCode: string;
189
197
  cpuCount: number | null;
190
198
  cpuModel: string | null;
191
199
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2BxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -27,6 +27,11 @@ var CreateNodeCommand;
27
27
  excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
28
  invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
29
  })),
30
+ countryCode: zod_1.z
31
+ .string()
32
+ .max(2, 'Country code must be 2 characters')
33
+ .toUpperCase()
34
+ .default('XX'),
30
35
  });
31
36
  CreateNodeCommand.ResponseSchema = zod_1.z.object({
32
37
  response: models_1.NodesSchema,
@@ -31,6 +31,7 @@ export declare namespace DisableNodeCommand {
31
31
  notifyPercent: z.ZodNullable<z.ZodNumber>;
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
+ countryCode: z.ZodString;
34
35
  cpuCount: z.ZodNullable<z.ZodNumber>;
35
36
  cpuModel: z.ZodNullable<z.ZodString>;
36
37
  totalRam: z.ZodNullable<z.ZodString>;
@@ -71,6 +72,7 @@ export declare namespace DisableNodeCommand {
71
72
  trafficUsedBytes: number | null;
72
73
  notifyPercent: number | null;
73
74
  usersOnline: number | null;
75
+ countryCode: string;
74
76
  cpuCount: number | null;
75
77
  cpuModel: string | null;
76
78
  totalRam: string | null;
@@ -101,6 +103,7 @@ export declare namespace DisableNodeCommand {
101
103
  trafficUsedBytes: number | null;
102
104
  notifyPercent: number | null;
103
105
  usersOnline: number | null;
106
+ countryCode: string;
104
107
  cpuCount: number | null;
105
108
  cpuModel: string | null;
106
109
  totalRam: string | null;
@@ -133,6 +136,7 @@ export declare namespace DisableNodeCommand {
133
136
  trafficUsedBytes: number | null;
134
137
  notifyPercent: number | null;
135
138
  usersOnline: number | null;
139
+ countryCode: string;
136
140
  cpuCount: number | null;
137
141
  cpuModel: string | null;
138
142
  totalRam: string | null;
@@ -165,6 +169,7 @@ export declare namespace DisableNodeCommand {
165
169
  trafficUsedBytes: number | null;
166
170
  notifyPercent: number | null;
167
171
  usersOnline: number | null;
172
+ countryCode: string;
168
173
  cpuCount: number | null;
169
174
  cpuModel: string | null;
170
175
  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"}
@@ -31,6 +31,7 @@ export declare namespace EnableNodeCommand {
31
31
  notifyPercent: z.ZodNullable<z.ZodNumber>;
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
+ countryCode: z.ZodString;
34
35
  cpuCount: z.ZodNullable<z.ZodNumber>;
35
36
  cpuModel: z.ZodNullable<z.ZodString>;
36
37
  totalRam: z.ZodNullable<z.ZodString>;
@@ -71,6 +72,7 @@ export declare namespace EnableNodeCommand {
71
72
  trafficUsedBytes: number | null;
72
73
  notifyPercent: number | null;
73
74
  usersOnline: number | null;
75
+ countryCode: string;
74
76
  cpuCount: number | null;
75
77
  cpuModel: string | null;
76
78
  totalRam: string | null;
@@ -101,6 +103,7 @@ export declare namespace EnableNodeCommand {
101
103
  trafficUsedBytes: number | null;
102
104
  notifyPercent: number | null;
103
105
  usersOnline: number | null;
106
+ countryCode: string;
104
107
  cpuCount: number | null;
105
108
  cpuModel: string | null;
106
109
  totalRam: string | null;
@@ -133,6 +136,7 @@ export declare namespace EnableNodeCommand {
133
136
  trafficUsedBytes: number | null;
134
137
  notifyPercent: number | null;
135
138
  usersOnline: number | null;
139
+ countryCode: string;
136
140
  cpuCount: number | null;
137
141
  cpuModel: string | null;
138
142
  totalRam: string | null;
@@ -165,6 +169,7 @@ export declare namespace EnableNodeCommand {
165
169
  trafficUsedBytes: number | null;
166
170
  notifyPercent: number | null;
167
171
  usersOnline: number | null;
172
+ countryCode: string;
168
173
  cpuCount: number | null;
169
174
  cpuModel: string | null;
170
175
  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"}
@@ -23,6 +23,7 @@ export declare namespace GetAllNodesCommand {
23
23
  notifyPercent: z.ZodNullable<z.ZodNumber>;
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
+ countryCode: z.ZodString;
26
27
  cpuCount: z.ZodNullable<z.ZodNumber>;
27
28
  cpuModel: z.ZodNullable<z.ZodString>;
28
29
  totalRam: z.ZodNullable<z.ZodString>;
@@ -63,6 +64,7 @@ export declare namespace GetAllNodesCommand {
63
64
  trafficUsedBytes: number | null;
64
65
  notifyPercent: number | null;
65
66
  usersOnline: number | null;
67
+ countryCode: string;
66
68
  cpuCount: number | null;
67
69
  cpuModel: string | null;
68
70
  totalRam: string | null;
@@ -93,6 +95,7 @@ export declare namespace GetAllNodesCommand {
93
95
  trafficUsedBytes: number | null;
94
96
  notifyPercent: number | null;
95
97
  usersOnline: number | null;
98
+ countryCode: string;
96
99
  cpuCount: number | null;
97
100
  cpuModel: string | null;
98
101
  totalRam: string | null;
@@ -125,6 +128,7 @@ export declare namespace GetAllNodesCommand {
125
128
  trafficUsedBytes: number | null;
126
129
  notifyPercent: number | null;
127
130
  usersOnline: number | null;
131
+ countryCode: string;
128
132
  cpuCount: number | null;
129
133
  cpuModel: string | null;
130
134
  totalRam: string | null;
@@ -157,6 +161,7 @@ export declare namespace GetAllNodesCommand {
157
161
  trafficUsedBytes: number | null;
158
162
  notifyPercent: number | null;
159
163
  usersOnline: number | null;
164
+ countryCode: string;
160
165
  cpuCount: number | null;
161
166
  cpuModel: string | null;
162
167
  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"}
@@ -31,6 +31,7 @@ export declare namespace GetOneNodeCommand {
31
31
  notifyPercent: z.ZodNullable<z.ZodNumber>;
32
32
  usersOnline: z.ZodNullable<z.ZodNumber>;
33
33
  viewPosition: z.ZodNumber;
34
+ countryCode: z.ZodString;
34
35
  cpuCount: z.ZodNullable<z.ZodNumber>;
35
36
  cpuModel: z.ZodNullable<z.ZodString>;
36
37
  totalRam: z.ZodNullable<z.ZodString>;
@@ -71,6 +72,7 @@ export declare namespace GetOneNodeCommand {
71
72
  trafficUsedBytes: number | null;
72
73
  notifyPercent: number | null;
73
74
  usersOnline: number | null;
75
+ countryCode: string;
74
76
  cpuCount: number | null;
75
77
  cpuModel: string | null;
76
78
  totalRam: string | null;
@@ -101,6 +103,7 @@ export declare namespace GetOneNodeCommand {
101
103
  trafficUsedBytes: number | null;
102
104
  notifyPercent: number | null;
103
105
  usersOnline: number | null;
106
+ countryCode: string;
104
107
  cpuCount: number | null;
105
108
  cpuModel: string | null;
106
109
  totalRam: string | null;
@@ -133,6 +136,7 @@ export declare namespace GetOneNodeCommand {
133
136
  trafficUsedBytes: number | null;
134
137
  notifyPercent: number | null;
135
138
  usersOnline: number | null;
139
+ countryCode: string;
136
140
  cpuCount: number | null;
137
141
  cpuModel: string | null;
138
142
  totalRam: string | null;
@@ -165,6 +169,7 @@ export declare namespace GetOneNodeCommand {
165
169
  trafficUsedBytes: number | null;
166
170
  notifyPercent: number | null;
167
171
  usersOnline: number | null;
172
+ countryCode: string;
168
173
  cpuCount: number | null;
169
174
  cpuModel: string | null;
170
175
  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"}
@@ -23,6 +23,7 @@ export declare namespace ReorderNodeCommand {
23
23
  notifyPercent: z.ZodNullable<z.ZodNumber>;
24
24
  usersOnline: z.ZodNullable<z.ZodNumber>;
25
25
  viewPosition: z.ZodNumber;
26
+ countryCode: z.ZodString;
26
27
  cpuCount: z.ZodNullable<z.ZodNumber>;
27
28
  cpuModel: z.ZodNullable<z.ZodString>;
28
29
  totalRam: z.ZodNullable<z.ZodString>;
@@ -81,6 +82,7 @@ export declare namespace ReorderNodeCommand {
81
82
  notifyPercent: z.ZodNullable<z.ZodNumber>;
82
83
  usersOnline: z.ZodNullable<z.ZodNumber>;
83
84
  viewPosition: z.ZodNumber;
85
+ countryCode: z.ZodString;
84
86
  cpuCount: z.ZodNullable<z.ZodNumber>;
85
87
  cpuModel: z.ZodNullable<z.ZodString>;
86
88
  totalRam: z.ZodNullable<z.ZodString>;
@@ -121,6 +123,7 @@ export declare namespace ReorderNodeCommand {
121
123
  trafficUsedBytes: number | null;
122
124
  notifyPercent: number | null;
123
125
  usersOnline: number | null;
126
+ countryCode: string;
124
127
  cpuCount: number | null;
125
128
  cpuModel: string | null;
126
129
  totalRam: string | null;
@@ -151,6 +154,7 @@ export declare namespace ReorderNodeCommand {
151
154
  trafficUsedBytes: number | null;
152
155
  notifyPercent: number | null;
153
156
  usersOnline: number | null;
157
+ countryCode: string;
154
158
  cpuCount: number | null;
155
159
  cpuModel: string | null;
156
160
  totalRam: string | null;
@@ -183,6 +187,7 @@ export declare namespace ReorderNodeCommand {
183
187
  trafficUsedBytes: number | null;
184
188
  notifyPercent: number | null;
185
189
  usersOnline: number | null;
190
+ countryCode: string;
186
191
  cpuCount: number | null;
187
192
  cpuModel: string | null;
188
193
  totalRam: string | null;
@@ -215,6 +220,7 @@ export declare namespace ReorderNodeCommand {
215
220
  trafficUsedBytes: number | null;
216
221
  notifyPercent: number | null;
217
222
  usersOnline: number | null;
223
+ countryCode: string;
218
224
  cpuCount: number | null;
219
225
  cpuModel: string | null;
220
226
  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"}
@@ -22,6 +22,7 @@ export declare namespace UpdateNodeCommand {
22
22
  notifyPercent: z.ZodNullable<z.ZodNumber>;
23
23
  usersOnline: z.ZodNullable<z.ZodNumber>;
24
24
  viewPosition: z.ZodNumber;
25
+ countryCode: z.ZodString;
25
26
  cpuCount: z.ZodNullable<z.ZodNumber>;
26
27
  cpuModel: z.ZodNullable<z.ZodString>;
27
28
  totalRam: z.ZodNullable<z.ZodString>;
@@ -49,6 +50,7 @@ export declare namespace UpdateNodeCommand {
49
50
  notifyPercent: z.ZodOptional<z.ZodNumber>;
50
51
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
51
52
  excludedInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
53
+ countryCode: z.ZodOptional<z.ZodString>;
52
54
  }>, "strip", z.ZodTypeAny, {
53
55
  uuid: string;
54
56
  address?: string | undefined;
@@ -58,6 +60,7 @@ export declare namespace UpdateNodeCommand {
58
60
  trafficResetDay?: number | undefined;
59
61
  trafficLimitBytes?: number | undefined;
60
62
  notifyPercent?: number | undefined;
63
+ countryCode?: string | undefined;
61
64
  excludedInbounds?: string[] | undefined;
62
65
  }, {
63
66
  uuid: string;
@@ -68,6 +71,7 @@ export declare namespace UpdateNodeCommand {
68
71
  trafficResetDay?: number | undefined;
69
72
  trafficLimitBytes?: number | undefined;
70
73
  notifyPercent?: number | undefined;
74
+ countryCode?: string | undefined;
71
75
  excludedInbounds?: string[] | undefined;
72
76
  }>;
73
77
  type Request = z.infer<typeof RequestSchema>;
@@ -92,6 +96,7 @@ export declare namespace UpdateNodeCommand {
92
96
  notifyPercent: z.ZodNullable<z.ZodNumber>;
93
97
  usersOnline: z.ZodNullable<z.ZodNumber>;
94
98
  viewPosition: z.ZodNumber;
99
+ countryCode: z.ZodString;
95
100
  cpuCount: z.ZodNullable<z.ZodNumber>;
96
101
  cpuModel: z.ZodNullable<z.ZodString>;
97
102
  totalRam: z.ZodNullable<z.ZodString>;
@@ -132,6 +137,7 @@ export declare namespace UpdateNodeCommand {
132
137
  trafficUsedBytes: number | null;
133
138
  notifyPercent: number | null;
134
139
  usersOnline: number | null;
140
+ countryCode: string;
135
141
  cpuCount: number | null;
136
142
  cpuModel: string | null;
137
143
  totalRam: string | null;
@@ -162,6 +168,7 @@ export declare namespace UpdateNodeCommand {
162
168
  trafficUsedBytes: number | null;
163
169
  notifyPercent: number | null;
164
170
  usersOnline: number | null;
171
+ countryCode: string;
165
172
  cpuCount: number | null;
166
173
  cpuModel: string | null;
167
174
  totalRam: string | null;
@@ -194,6 +201,7 @@ export declare namespace UpdateNodeCommand {
194
201
  trafficUsedBytes: number | null;
195
202
  notifyPercent: number | null;
196
203
  usersOnline: number | null;
204
+ countryCode: string;
197
205
  cpuCount: number | null;
198
206
  cpuModel: string | null;
199
207
  totalRam: string | null;
@@ -226,6 +234,7 @@ export declare namespace UpdateNodeCommand {
226
234
  trafficUsedBytes: number | null;
227
235
  notifyPercent: number | null;
228
236
  usersOnline: number | null;
237
+ countryCode: string;
229
238
  cpuCount: number | null;
230
239
  cpuModel: string | null;
231
240
  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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyBxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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"}
@@ -27,6 +27,7 @@ var UpdateNodeCommand;
27
27
  excludedInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
28
28
  invalid_type_error: 'Excluded inbounds must be an array of UUIDs',
29
29
  })),
30
+ countryCode: zod_1.z.optional(zod_1.z.string().max(2, 'Country code must be 2 characters').toUpperCase()),
30
31
  });
31
32
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
32
33
  response: models_1.NodesSchema,
@@ -21,7 +21,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
21
21
  username: z.ZodString;
22
22
  expiresAt: z.ZodEffects<z.ZodString, Date, string>;
23
23
  isActive: z.ZodBoolean;
24
- userStatus: z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>;
24
+ userStatus: z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>;
25
25
  }, "strip", z.ZodTypeAny, {
26
26
  username: string;
27
27
  shortUuid: string;
@@ -30,7 +30,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
30
30
  trafficLimit: string;
31
31
  expiresAt: Date;
32
32
  isActive: boolean;
33
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
33
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
34
34
  }, {
35
35
  username: string;
36
36
  shortUuid: string;
@@ -39,7 +39,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
39
39
  trafficLimit: string;
40
40
  expiresAt: string;
41
41
  isActive: boolean;
42
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
42
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
43
43
  }>;
44
44
  }, "strip", z.ZodTypeAny, {
45
45
  isFound: boolean;
@@ -51,7 +51,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
51
51
  trafficLimit: string;
52
52
  expiresAt: Date;
53
53
  isActive: boolean;
54
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
54
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
55
55
  };
56
56
  }, {
57
57
  isFound: boolean;
@@ -63,7 +63,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
63
63
  trafficLimit: string;
64
64
  expiresAt: string;
65
65
  isActive: boolean;
66
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
66
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
67
67
  };
68
68
  }>;
69
69
  }, "strip", z.ZodTypeAny, {
@@ -77,7 +77,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
77
77
  trafficLimit: string;
78
78
  expiresAt: Date;
79
79
  isActive: boolean;
80
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
80
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
81
81
  };
82
82
  };
83
83
  }, {
@@ -91,7 +91,7 @@ export declare namespace GetSubscriptionInfoByShortUuidCommand {
91
91
  trafficLimit: string;
92
92
  expiresAt: string;
93
93
  isActive: boolean;
94
- userStatus: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
94
+ userStatus: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
95
95
  };
96
96
  };
97
97
  }>;
@@ -4,7 +4,7 @@ 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" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>>>;
7
+ status: z.ZodDefault<z.ZodOptional<z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>>>;
8
8
  subscriptionUuid: z.ZodOptional<z.ZodString>;
9
9
  shortUuid: z.ZodOptional<z.ZodString>;
10
10
  trojanPassword: z.ZodOptional<z.ZodString>;
@@ -16,15 +16,17 @@ export declare namespace CreateUserCommand {
16
16
  expireAt: z.ZodEffects<z.ZodDate, Date, Date>;
17
17
  createdAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
18
18
  lastTrafficResetAt: z.ZodOptional<z.ZodEffects<z.ZodDate, Date, Date>>;
19
+ description: z.ZodOptional<z.ZodString>;
19
20
  }, "strip", z.ZodTypeAny, {
20
21
  username: string;
21
- status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
22
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
22
23
  trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
23
24
  expireAt: Date;
24
25
  createdAt?: Date | undefined;
25
26
  trafficLimitBytes?: number | undefined;
26
27
  subscriptionUuid?: string | undefined;
27
28
  shortUuid?: string | undefined;
29
+ description?: string | undefined;
28
30
  lastTrafficResetAt?: Date | undefined;
29
31
  trojanPassword?: string | undefined;
30
32
  vlessUuid?: string | undefined;
@@ -33,11 +35,12 @@ export declare namespace CreateUserCommand {
33
35
  }, {
34
36
  username: string;
35
37
  expireAt: Date;
36
- status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
38
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
37
39
  createdAt?: Date | undefined;
38
40
  trafficLimitBytes?: number | undefined;
39
41
  subscriptionUuid?: string | undefined;
40
42
  shortUuid?: string | undefined;
43
+ description?: string | undefined;
41
44
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
42
45
  lastTrafficResetAt?: Date | undefined;
43
46
  trojanPassword?: string | undefined;
@@ -52,7 +55,7 @@ export declare namespace CreateUserCommand {
52
55
  subscriptionUuid: z.ZodString;
53
56
  shortUuid: z.ZodString;
54
57
  username: z.ZodString;
55
- status: z.ZodDefault<z.ZodEnum<["DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED", ...("DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED")[]]>>;
58
+ status: z.ZodDefault<z.ZodEnum<["DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE", ...("DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE")[]]>>;
56
59
  usedTrafficBytes: z.ZodNumber;
57
60
  lifetimeUsedTrafficBytes: z.ZodNumber;
58
61
  trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
@@ -66,6 +69,7 @@ export declare namespace CreateUserCommand {
66
69
  trojanPassword: z.ZodString;
67
70
  vlessUuid: z.ZodString;
68
71
  ssPassword: z.ZodString;
72
+ description: z.ZodNullable<z.ZodString>;
69
73
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
70
74
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
71
75
  activeUserInbounds: z.ZodArray<z.ZodObject<{
@@ -84,7 +88,7 @@ export declare namespace CreateUserCommand {
84
88
  }, "strip", z.ZodTypeAny, {
85
89
  uuid: string;
86
90
  username: string;
87
- status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
91
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
88
92
  createdAt: Date;
89
93
  updatedAt: Date;
90
94
  trafficLimitBytes: number;
@@ -92,6 +96,7 @@ export declare namespace CreateUserCommand {
92
96
  shortUuid: string;
93
97
  usedTrafficBytes: number;
94
98
  lifetimeUsedTrafficBytes: number;
99
+ description: string | null;
95
100
  trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
96
101
  subLastUserAgent: string | null;
97
102
  subLastOpenedAt: Date | null;
@@ -116,6 +121,7 @@ export declare namespace CreateUserCommand {
116
121
  shortUuid: string;
117
122
  usedTrafficBytes: number;
118
123
  lifetimeUsedTrafficBytes: number;
124
+ description: string | null;
119
125
  subLastUserAgent: string | null;
120
126
  subLastOpenedAt: string | null;
121
127
  expireAt: string | null;
@@ -130,7 +136,7 @@ export declare namespace CreateUserCommand {
130
136
  type: string;
131
137
  tag: string;
132
138
  }[];
133
- status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
139
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
134
140
  trafficLimitBytes?: number | undefined;
135
141
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
136
142
  }>;
@@ -138,7 +144,7 @@ export declare namespace CreateUserCommand {
138
144
  response: {
139
145
  uuid: string;
140
146
  username: string;
141
- status: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED";
147
+ status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
142
148
  createdAt: Date;
143
149
  updatedAt: Date;
144
150
  trafficLimitBytes: number;
@@ -146,6 +152,7 @@ export declare namespace CreateUserCommand {
146
152
  shortUuid: string;
147
153
  usedTrafficBytes: number;
148
154
  lifetimeUsedTrafficBytes: number;
155
+ description: string | null;
149
156
  trafficLimitStrategy: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH";
150
157
  subLastUserAgent: string | null;
151
158
  subLastOpenedAt: Date | null;
@@ -172,6 +179,7 @@ export declare namespace CreateUserCommand {
172
179
  shortUuid: string;
173
180
  usedTrafficBytes: number;
174
181
  lifetimeUsedTrafficBytes: number;
182
+ description: string | null;
175
183
  subLastUserAgent: string | null;
176
184
  subLastOpenedAt: string | null;
177
185
  expireAt: string | null;
@@ -186,7 +194,7 @@ export declare namespace CreateUserCommand {
186
194
  type: string;
187
195
  tag: string;
188
196
  }[];
189
- status?: "DISABLED" | "ACTIVE" | "LIMITED" | "EXPIRED" | undefined;
197
+ status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
190
198
  trafficLimitBytes?: number | undefined;
191
199
  trafficLimitStrategy?: "MONTH" | "YEAR" | "NO_RESET" | "DAY" | "WEEK" | "CALENDAR_MONTH" | undefined;
192
200
  };
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAkGxB,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAmGxB,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"}
@@ -104,6 +104,7 @@ var CreateUserCommand;
104
104
  message: 'Expiration date cannot be in the past',
105
105
  })
106
106
  .optional(),
107
+ description: zod_1.z.string().optional(),
107
108
  });
108
109
  CreateUserCommand.ResponseSchema = zod_1.z.object({
109
110
  response: models_1.UsersSchema,