@remnawave/backend-contract 0.0.80 → 0.0.81

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.
@@ -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,
@@ -19,6 +19,7 @@ export declare const NodesSchema: z.ZodObject<{
19
19
  notifyPercent: z.ZodNullable<z.ZodNumber>;
20
20
  usersOnline: z.ZodNullable<z.ZodNumber>;
21
21
  viewPosition: z.ZodNumber;
22
+ countryCode: z.ZodString;
22
23
  cpuCount: z.ZodNullable<z.ZodNumber>;
23
24
  cpuModel: z.ZodNullable<z.ZodString>;
24
25
  totalRam: z.ZodNullable<z.ZodString>;
@@ -59,6 +60,7 @@ export declare const NodesSchema: z.ZodObject<{
59
60
  trafficUsedBytes: number | null;
60
61
  notifyPercent: number | null;
61
62
  usersOnline: number | null;
63
+ countryCode: string;
62
64
  cpuCount: number | null;
63
65
  cpuModel: string | null;
64
66
  totalRam: string | null;
@@ -89,6 +91,7 @@ export declare const NodesSchema: z.ZodObject<{
89
91
  trafficUsedBytes: number | null;
90
92
  notifyPercent: number | null;
91
93
  usersOnline: number | null;
94
+ countryCode: string;
92
95
  cpuCount: number | null;
93
96
  cpuModel: string | null;
94
97
  totalRam: string | null;
@@ -1 +1 @@
1
- {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8BtB,CAAC"}
1
+ {"version":3,"file":"nodes.schema.d.ts","sourceRoot":"","sources":["../../../models/nodes.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+BtB,CAAC"}
@@ -23,6 +23,7 @@ exports.NodesSchema = zod_1.z.object({
23
23
  notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
24
24
  usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
25
25
  viewPosition: zod_1.z.number().int(),
26
+ countryCode: zod_1.z.string(),
26
27
  cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
27
28
  cpuModel: zod_1.z.nullable(zod_1.z.string()),
28
29
  totalRam: zod_1.z.nullable(zod_1.z.string()),
@@ -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,
@@ -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,
@@ -23,6 +23,7 @@ exports.NodesSchema = zod_1.z.object({
23
23
  notifyPercent: zod_1.z.nullable(zod_1.z.number().int()),
24
24
  usersOnline: zod_1.z.nullable(zod_1.z.number().int()),
25
25
  viewPosition: zod_1.z.number().int(),
26
+ countryCode: zod_1.z.string(),
26
27
  cpuCount: zod_1.z.nullable(zod_1.z.number().int()),
27
28
  cpuModel: zod_1.z.nullable(zod_1.z.string()),
28
29
  totalRam: zod_1.z.nullable(zod_1.z.string()),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remnawave/backend-contract",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
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.",