@remnawave/backend-contract 2.0.0-alpha.20 → 2.0.0-alpha.22

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 (63) hide show
  1. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +26 -10
  2. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  3. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +26 -10
  4. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  5. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +26 -10
  6. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  7. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts +26 -10
  8. package/build/backend/commands/hosts/bulk/set-inbound-to-many-hosts.command.d.ts.map +1 -1
  9. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts +26 -10
  10. package/build/backend/commands/hosts/bulk/set-port-to-many-hosts.command.d.ts.map +1 -1
  11. package/build/backend/commands/hosts/create.command.d.ts +44 -19
  12. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  13. package/build/backend/commands/hosts/create.command.js +7 -13
  14. package/build/backend/commands/hosts/get-all.command.d.ts +26 -10
  15. package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/get-one.command.d.ts +26 -10
  17. package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
  18. package/build/backend/commands/hosts/reorder.command.d.ts +10 -2
  19. package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
  20. package/build/backend/commands/hosts/update.command.d.ts +54 -21
  21. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  22. package/build/backend/commands/hosts/update.command.js +4 -11
  23. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +106 -54
  24. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  25. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +106 -54
  26. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  27. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts +106 -54
  28. package/build/backend/commands/infra-billing/get-blling-nodes.command.d.ts.map +1 -1
  29. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +106 -54
  30. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  31. package/build/backend/commands/nodes/actions/disable.command.d.ts +105 -71
  32. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  33. package/build/backend/commands/nodes/actions/enable.command.d.ts +105 -71
  34. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  35. package/build/backend/commands/nodes/actions/reorder.command.d.ts +158 -98
  36. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  37. package/build/backend/commands/nodes/create.command.d.ts +123 -77
  38. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  39. package/build/backend/commands/nodes/create.command.js +6 -4
  40. package/build/backend/commands/nodes/get-all.command.d.ts +105 -71
  41. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  42. package/build/backend/commands/nodes/get-one.command.d.ts +105 -71
  43. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  44. package/build/backend/commands/nodes/update.command.d.ts +176 -104
  45. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  46. package/build/backend/commands/nodes/update.command.js +8 -4
  47. package/build/backend/models/hosts.schema.d.ts +18 -6
  48. package/build/backend/models/hosts.schema.d.ts.map +1 -1
  49. package/build/backend/models/hosts.schema.js +4 -2
  50. package/build/backend/models/infra-billing-available-node.schema.d.ts +53 -27
  51. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  52. package/build/backend/models/infra-billing-node.schema.d.ts +53 -27
  53. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  54. package/build/backend/models/nodes.schema.d.ts +79 -49
  55. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  56. package/build/backend/models/nodes.schema.js +4 -2
  57. package/build/frontend/commands/hosts/create.command.js +7 -13
  58. package/build/frontend/commands/hosts/update.command.js +4 -11
  59. package/build/frontend/commands/nodes/create.command.js +6 -4
  60. package/build/frontend/commands/nodes/update.command.js +8 -4
  61. package/build/frontend/models/hosts.schema.js +4 -2
  62. package/build/frontend/models/nodes.schema.js +4 -2
  63. package/package.json +1 -1
@@ -40,35 +40,61 @@ export declare namespace GetOneNodeCommand {
40
40
  totalRam: z.ZodNullable<z.ZodString>;
41
41
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
42
42
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
43
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
44
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
45
- uuid: z.ZodString;
46
- profileUuid: z.ZodString;
47
- tag: z.ZodString;
48
- type: z.ZodString;
49
- network: z.ZodNullable<z.ZodString>;
50
- security: z.ZodNullable<z.ZodString>;
51
- port: z.ZodNullable<z.ZodNumber>;
52
- rawInbound: z.ZodNullable<z.ZodUnknown>;
43
+ configProfile: z.ZodObject<{
44
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
45
+ activeInbounds: z.ZodArray<z.ZodObject<{
46
+ uuid: z.ZodString;
47
+ profileUuid: z.ZodString;
48
+ tag: z.ZodString;
49
+ type: z.ZodString;
50
+ network: z.ZodNullable<z.ZodString>;
51
+ security: z.ZodNullable<z.ZodString>;
52
+ port: z.ZodNullable<z.ZodNumber>;
53
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
54
+ }, "strip", z.ZodTypeAny, {
55
+ type: string;
56
+ uuid: string;
57
+ profileUuid: string;
58
+ tag: string;
59
+ network: string | null;
60
+ security: string | null;
61
+ port: number | null;
62
+ rawInbound?: unknown;
63
+ }, {
64
+ type: string;
65
+ uuid: string;
66
+ profileUuid: string;
67
+ tag: string;
68
+ network: string | null;
69
+ security: string | null;
70
+ port: number | null;
71
+ rawInbound?: unknown;
72
+ }>, "many">;
53
73
  }, "strip", z.ZodTypeAny, {
54
- type: string;
55
- uuid: string;
56
- profileUuid: string;
57
- tag: string;
58
- network: string | null;
59
- security: string | null;
60
- port: number | null;
61
- rawInbound?: unknown;
74
+ activeConfigProfileUuid: string | null;
75
+ activeInbounds: {
76
+ type: string;
77
+ uuid: string;
78
+ profileUuid: string;
79
+ tag: string;
80
+ network: string | null;
81
+ security: string | null;
82
+ port: number | null;
83
+ rawInbound?: unknown;
84
+ }[];
62
85
  }, {
63
- type: string;
64
- uuid: string;
65
- profileUuid: string;
66
- tag: string;
67
- network: string | null;
68
- security: string | null;
69
- port: number | null;
70
- rawInbound?: unknown;
71
- }>, "many">>;
86
+ activeConfigProfileUuid: string | null;
87
+ activeInbounds: {
88
+ type: string;
89
+ uuid: string;
90
+ profileUuid: string;
91
+ tag: string;
92
+ network: string | null;
93
+ security: string | null;
94
+ port: number | null;
95
+ rawInbound?: unknown;
96
+ }[];
97
+ }>;
72
98
  providerUuid: z.ZodNullable<z.ZodString>;
73
99
  provider: z.ZodNullable<z.ZodObject<{
74
100
  uuid: z.ZodString;
@@ -120,17 +146,19 @@ export declare namespace GetOneNodeCommand {
120
146
  cpuCount: number | null;
121
147
  cpuModel: string | null;
122
148
  totalRam: string | null;
123
- activeConfigProfileUuid: string | null;
124
- activeInbounds: {
125
- type: string;
126
- uuid: string;
127
- profileUuid: string;
128
- tag: string;
129
- network: string | null;
130
- security: string | null;
131
- port: number | null;
132
- rawInbound?: unknown;
133
- }[] | null;
149
+ configProfile: {
150
+ activeConfigProfileUuid: string | null;
151
+ activeInbounds: {
152
+ type: string;
153
+ uuid: string;
154
+ profileUuid: string;
155
+ tag: string;
156
+ network: string | null;
157
+ security: string | null;
158
+ port: number | null;
159
+ rawInbound?: unknown;
160
+ }[];
161
+ };
134
162
  providerUuid: string | null;
135
163
  provider: {
136
164
  uuid: string;
@@ -168,17 +196,19 @@ export declare namespace GetOneNodeCommand {
168
196
  cpuCount: number | null;
169
197
  cpuModel: string | null;
170
198
  totalRam: string | null;
171
- activeConfigProfileUuid: string | null;
172
- activeInbounds: {
173
- type: string;
174
- uuid: string;
175
- profileUuid: string;
176
- tag: string;
177
- network: string | null;
178
- security: string | null;
179
- port: number | null;
180
- rawInbound?: unknown;
181
- }[] | null;
199
+ configProfile: {
200
+ activeConfigProfileUuid: string | null;
201
+ activeInbounds: {
202
+ type: string;
203
+ uuid: string;
204
+ profileUuid: string;
205
+ tag: string;
206
+ network: string | null;
207
+ security: string | null;
208
+ port: number | null;
209
+ rawInbound?: unknown;
210
+ }[];
211
+ };
182
212
  providerUuid: string | null;
183
213
  provider: {
184
214
  uuid: string;
@@ -218,17 +248,19 @@ export declare namespace GetOneNodeCommand {
218
248
  cpuCount: number | null;
219
249
  cpuModel: string | null;
220
250
  totalRam: string | null;
221
- activeConfigProfileUuid: string | null;
222
- activeInbounds: {
223
- type: string;
224
- uuid: string;
225
- profileUuid: string;
226
- tag: string;
227
- network: string | null;
228
- security: string | null;
229
- port: number | null;
230
- rawInbound?: unknown;
231
- }[] | null;
251
+ configProfile: {
252
+ activeConfigProfileUuid: string | null;
253
+ activeInbounds: {
254
+ type: string;
255
+ uuid: string;
256
+ profileUuid: string;
257
+ tag: string;
258
+ network: string | null;
259
+ security: string | null;
260
+ port: number | null;
261
+ rawInbound?: unknown;
262
+ }[];
263
+ };
232
264
  providerUuid: string | null;
233
265
  provider: {
234
266
  uuid: string;
@@ -268,17 +300,19 @@ export declare namespace GetOneNodeCommand {
268
300
  cpuCount: number | null;
269
301
  cpuModel: string | null;
270
302
  totalRam: string | null;
271
- activeConfigProfileUuid: string | null;
272
- activeInbounds: {
273
- type: string;
274
- uuid: string;
275
- profileUuid: string;
276
- tag: string;
277
- network: string | null;
278
- security: string | null;
279
- port: number | null;
280
- rawInbound?: unknown;
281
- }[] | null;
303
+ configProfile: {
304
+ activeConfigProfileUuid: string | null;
305
+ activeInbounds: {
306
+ type: string;
307
+ uuid: string;
308
+ profileUuid: string;
309
+ tag: string;
310
+ network: string | null;
311
+ security: string | null;
312
+ port: number | null;
313
+ rawInbound?: unknown;
314
+ }[];
315
+ };
282
316
  providerUuid: string | null;
283
317
  provider: {
284
318
  uuid: string;
@@ -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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-one.command.d.ts","sourceRoot":"","sources":["../../../../commands/nodes/get-one.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;MAExB,CAAC;IAEH,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -31,35 +31,61 @@ export declare namespace UpdateNodeCommand {
31
31
  totalRam: z.ZodNullable<z.ZodString>;
32
32
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
33
33
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
34
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
35
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
36
- uuid: z.ZodString;
37
- profileUuid: z.ZodString;
38
- tag: z.ZodString;
39
- type: z.ZodString;
40
- network: z.ZodNullable<z.ZodString>;
41
- security: z.ZodNullable<z.ZodString>;
42
- port: z.ZodNullable<z.ZodNumber>;
43
- rawInbound: z.ZodNullable<z.ZodUnknown>;
34
+ configProfile: z.ZodObject<{
35
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
36
+ activeInbounds: z.ZodArray<z.ZodObject<{
37
+ uuid: z.ZodString;
38
+ profileUuid: z.ZodString;
39
+ tag: z.ZodString;
40
+ type: z.ZodString;
41
+ network: z.ZodNullable<z.ZodString>;
42
+ security: z.ZodNullable<z.ZodString>;
43
+ port: z.ZodNullable<z.ZodNumber>;
44
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
45
+ }, "strip", z.ZodTypeAny, {
46
+ type: string;
47
+ uuid: string;
48
+ profileUuid: string;
49
+ tag: string;
50
+ network: string | null;
51
+ security: string | null;
52
+ port: number | null;
53
+ rawInbound?: unknown;
54
+ }, {
55
+ type: string;
56
+ uuid: string;
57
+ profileUuid: string;
58
+ tag: string;
59
+ network: string | null;
60
+ security: string | null;
61
+ port: number | null;
62
+ rawInbound?: unknown;
63
+ }>, "many">;
44
64
  }, "strip", z.ZodTypeAny, {
45
- type: string;
46
- uuid: string;
47
- profileUuid: string;
48
- tag: string;
49
- network: string | null;
50
- security: string | null;
51
- port: number | null;
52
- rawInbound?: unknown;
65
+ activeConfigProfileUuid: string | null;
66
+ activeInbounds: {
67
+ type: string;
68
+ uuid: string;
69
+ profileUuid: string;
70
+ tag: string;
71
+ network: string | null;
72
+ security: string | null;
73
+ port: number | null;
74
+ rawInbound?: unknown;
75
+ }[];
53
76
  }, {
54
- type: string;
55
- uuid: string;
56
- profileUuid: string;
57
- tag: string;
58
- network: string | null;
59
- security: string | null;
60
- port: number | null;
61
- rawInbound?: unknown;
62
- }>, "many">>;
77
+ activeConfigProfileUuid: string | null;
78
+ activeInbounds: {
79
+ type: string;
80
+ uuid: string;
81
+ profileUuid: string;
82
+ tag: string;
83
+ network: string | null;
84
+ security: string | null;
85
+ port: number | null;
86
+ rawInbound?: unknown;
87
+ }[];
88
+ }>;
63
89
  providerUuid: z.ZodNullable<z.ZodString>;
64
90
  provider: z.ZodNullable<z.ZodObject<{
65
91
  uuid: z.ZodString;
@@ -93,8 +119,16 @@ export declare namespace UpdateNodeCommand {
93
119
  trafficResetDay: z.ZodOptional<z.ZodNumber>;
94
120
  countryCode: z.ZodOptional<z.ZodString>;
95
121
  consumptionMultiplier: z.ZodOptional<z.ZodEffects<z.ZodNumber, number, number>>;
96
- activeConfigProfileUuid: z.ZodOptional<z.ZodString>;
97
- activeInbounds: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
122
+ configProfile: z.ZodOptional<z.ZodObject<{
123
+ activeConfigProfileUuid: z.ZodString;
124
+ activeInbounds: z.ZodArray<z.ZodString, "many">;
125
+ }, "strip", z.ZodTypeAny, {
126
+ activeConfigProfileUuid: string;
127
+ activeInbounds: string[];
128
+ }, {
129
+ activeConfigProfileUuid: string;
130
+ activeInbounds: string[];
131
+ }>>;
98
132
  providerUuid: z.ZodOptional<z.ZodNullable<z.ZodString>>;
99
133
  }, "strip", z.ZodTypeAny, {
100
134
  uuid: string;
@@ -107,8 +141,10 @@ export declare namespace UpdateNodeCommand {
107
141
  trafficResetDay?: number | undefined;
108
142
  notifyPercent?: number | undefined;
109
143
  consumptionMultiplier?: number | undefined;
110
- activeConfigProfileUuid?: string | undefined;
111
- activeInbounds?: string[] | undefined;
144
+ configProfile?: {
145
+ activeConfigProfileUuid: string;
146
+ activeInbounds: string[];
147
+ } | undefined;
112
148
  providerUuid?: string | null | undefined;
113
149
  }, {
114
150
  uuid: string;
@@ -121,8 +157,10 @@ export declare namespace UpdateNodeCommand {
121
157
  trafficResetDay?: number | undefined;
122
158
  notifyPercent?: number | undefined;
123
159
  consumptionMultiplier?: number | undefined;
124
- activeConfigProfileUuid?: string | undefined;
125
- activeInbounds?: string[] | undefined;
160
+ configProfile?: {
161
+ activeConfigProfileUuid: string;
162
+ activeInbounds: string[];
163
+ } | undefined;
126
164
  providerUuid?: string | null | undefined;
127
165
  }>;
128
166
  type Request = z.infer<typeof RequestSchema>;
@@ -155,35 +193,61 @@ export declare namespace UpdateNodeCommand {
155
193
  totalRam: z.ZodNullable<z.ZodString>;
156
194
  createdAt: z.ZodEffects<z.ZodString, Date, string>;
157
195
  updatedAt: z.ZodEffects<z.ZodString, Date, string>;
158
- activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
159
- activeInbounds: z.ZodNullable<z.ZodArray<z.ZodObject<{
160
- uuid: z.ZodString;
161
- profileUuid: z.ZodString;
162
- tag: z.ZodString;
163
- type: z.ZodString;
164
- network: z.ZodNullable<z.ZodString>;
165
- security: z.ZodNullable<z.ZodString>;
166
- port: z.ZodNullable<z.ZodNumber>;
167
- rawInbound: z.ZodNullable<z.ZodUnknown>;
196
+ configProfile: z.ZodObject<{
197
+ activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
198
+ activeInbounds: z.ZodArray<z.ZodObject<{
199
+ uuid: z.ZodString;
200
+ profileUuid: z.ZodString;
201
+ tag: z.ZodString;
202
+ type: z.ZodString;
203
+ network: z.ZodNullable<z.ZodString>;
204
+ security: z.ZodNullable<z.ZodString>;
205
+ port: z.ZodNullable<z.ZodNumber>;
206
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: string;
209
+ uuid: string;
210
+ profileUuid: string;
211
+ tag: string;
212
+ network: string | null;
213
+ security: string | null;
214
+ port: number | null;
215
+ rawInbound?: unknown;
216
+ }, {
217
+ type: string;
218
+ uuid: string;
219
+ profileUuid: string;
220
+ tag: string;
221
+ network: string | null;
222
+ security: string | null;
223
+ port: number | null;
224
+ rawInbound?: unknown;
225
+ }>, "many">;
168
226
  }, "strip", z.ZodTypeAny, {
169
- type: string;
170
- uuid: string;
171
- profileUuid: string;
172
- tag: string;
173
- network: string | null;
174
- security: string | null;
175
- port: number | null;
176
- rawInbound?: unknown;
227
+ activeConfigProfileUuid: string | null;
228
+ activeInbounds: {
229
+ type: string;
230
+ uuid: string;
231
+ profileUuid: string;
232
+ tag: string;
233
+ network: string | null;
234
+ security: string | null;
235
+ port: number | null;
236
+ rawInbound?: unknown;
237
+ }[];
177
238
  }, {
178
- type: string;
179
- uuid: string;
180
- profileUuid: string;
181
- tag: string;
182
- network: string | null;
183
- security: string | null;
184
- port: number | null;
185
- rawInbound?: unknown;
186
- }>, "many">>;
239
+ activeConfigProfileUuid: string | null;
240
+ activeInbounds: {
241
+ type: string;
242
+ uuid: string;
243
+ profileUuid: string;
244
+ tag: string;
245
+ network: string | null;
246
+ security: string | null;
247
+ port: number | null;
248
+ rawInbound?: unknown;
249
+ }[];
250
+ }>;
187
251
  providerUuid: z.ZodNullable<z.ZodString>;
188
252
  provider: z.ZodNullable<z.ZodObject<{
189
253
  uuid: z.ZodString;
@@ -235,17 +299,19 @@ export declare namespace UpdateNodeCommand {
235
299
  cpuCount: number | null;
236
300
  cpuModel: string | null;
237
301
  totalRam: string | null;
238
- activeConfigProfileUuid: string | null;
239
- activeInbounds: {
240
- type: string;
241
- uuid: string;
242
- profileUuid: string;
243
- tag: string;
244
- network: string | null;
245
- security: string | null;
246
- port: number | null;
247
- rawInbound?: unknown;
248
- }[] | null;
302
+ configProfile: {
303
+ activeConfigProfileUuid: string | null;
304
+ activeInbounds: {
305
+ type: string;
306
+ uuid: string;
307
+ profileUuid: string;
308
+ tag: string;
309
+ network: string | null;
310
+ security: string | null;
311
+ port: number | null;
312
+ rawInbound?: unknown;
313
+ }[];
314
+ };
249
315
  providerUuid: string | null;
250
316
  provider: {
251
317
  uuid: string;
@@ -283,17 +349,19 @@ export declare namespace UpdateNodeCommand {
283
349
  cpuCount: number | null;
284
350
  cpuModel: string | null;
285
351
  totalRam: string | null;
286
- activeConfigProfileUuid: string | null;
287
- activeInbounds: {
288
- type: string;
289
- uuid: string;
290
- profileUuid: string;
291
- tag: string;
292
- network: string | null;
293
- security: string | null;
294
- port: number | null;
295
- rawInbound?: unknown;
296
- }[] | null;
352
+ configProfile: {
353
+ activeConfigProfileUuid: string | null;
354
+ activeInbounds: {
355
+ type: string;
356
+ uuid: string;
357
+ profileUuid: string;
358
+ tag: string;
359
+ network: string | null;
360
+ security: string | null;
361
+ port: number | null;
362
+ rawInbound?: unknown;
363
+ }[];
364
+ };
297
365
  providerUuid: string | null;
298
366
  provider: {
299
367
  uuid: string;
@@ -333,17 +401,19 @@ export declare namespace UpdateNodeCommand {
333
401
  cpuCount: number | null;
334
402
  cpuModel: string | null;
335
403
  totalRam: string | null;
336
- activeConfigProfileUuid: string | null;
337
- activeInbounds: {
338
- type: string;
339
- uuid: string;
340
- profileUuid: string;
341
- tag: string;
342
- network: string | null;
343
- security: string | null;
344
- port: number | null;
345
- rawInbound?: unknown;
346
- }[] | null;
404
+ configProfile: {
405
+ activeConfigProfileUuid: string | null;
406
+ activeInbounds: {
407
+ type: string;
408
+ uuid: string;
409
+ profileUuid: string;
410
+ tag: string;
411
+ network: string | null;
412
+ security: string | null;
413
+ port: number | null;
414
+ rawInbound?: unknown;
415
+ }[];
416
+ };
347
417
  providerUuid: string | null;
348
418
  provider: {
349
419
  uuid: string;
@@ -383,17 +453,19 @@ export declare namespace UpdateNodeCommand {
383
453
  cpuCount: number | null;
384
454
  cpuModel: string | null;
385
455
  totalRam: string | null;
386
- activeConfigProfileUuid: string | null;
387
- activeInbounds: {
388
- type: string;
389
- uuid: string;
390
- profileUuid: string;
391
- tag: string;
392
- network: string | null;
393
- security: string | null;
394
- port: number | null;
395
- rawInbound?: unknown;
396
- }[] | null;
456
+ configProfile: {
457
+ activeConfigProfileUuid: string | null;
458
+ activeInbounds: {
459
+ type: string;
460
+ uuid: string;
461
+ profileUuid: string;
462
+ tag: string;
463
+ network: string | null;
464
+ security: string | null;
465
+ port: number | null;
466
+ rawInbound?: unknown;
467
+ }[];
468
+ };
397
469
  providerUuid: string | null;
398
470
  provider: {
399
471
  uuid: string;
@@ -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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAoCxB,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;AAMxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAAkE,CAAC;IAExF,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAuCxB,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,10 +31,14 @@ var UpdateNodeCommand;
31
31
  .number()
32
32
  .min(0.1, 'Consumption multiplier must be greater than 0')
33
33
  .transform((n) => Number(n.toFixed(1)))),
34
- activeConfigProfileUuid: zod_1.z.optional(zod_1.z.string().uuid()),
35
- activeInbounds: zod_1.z.optional(zod_1.z.array(zod_1.z.string().uuid(), {
36
- invalid_type_error: 'Active inbounds must be an array of UUIDs',
37
- })),
34
+ configProfile: zod_1.z
35
+ .object({
36
+ activeConfigProfileUuid: zod_1.z.string().uuid(),
37
+ activeInbounds: zod_1.z.array(zod_1.z.string().uuid(), {
38
+ invalid_type_error: 'Must be an array of UUIDs',
39
+ }),
40
+ })
41
+ .optional(),
38
42
  providerUuid: zod_1.z.optional(zod_1.z.nullable(zod_1.z.string().uuid())),
39
43
  });
40
44
  UpdateNodeCommand.ResponseSchema = zod_1.z.object({
@@ -17,8 +17,16 @@ export declare const HostsSchema: z.ZodObject<{
17
17
  readonly NONE: "NONE";
18
18
  }>>;
19
19
  xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
20
- configProfileUuid: z.ZodNullable<z.ZodString>;
21
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
20
+ inbound: z.ZodObject<{
21
+ configProfileUuid: z.ZodNullable<z.ZodString>;
22
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ configProfileUuid: string | null;
25
+ configProfileInboundUuid: string | null;
26
+ }, {
27
+ configProfileUuid: string | null;
28
+ configProfileInboundUuid: string | null;
29
+ }>;
22
30
  }, "strip", z.ZodTypeAny, {
23
31
  path: string | null;
24
32
  uuid: string;
@@ -32,8 +40,10 @@ export declare const HostsSchema: z.ZodObject<{
32
40
  fingerprint: string | null;
33
41
  isDisabled: boolean;
34
42
  securityLayer: "DEFAULT" | "TLS" | "NONE";
35
- configProfileUuid: string | null;
36
- configProfileInboundUuid: string | null;
43
+ inbound: {
44
+ configProfileUuid: string | null;
45
+ configProfileInboundUuid: string | null;
46
+ };
37
47
  xHttpExtraParams?: unknown;
38
48
  }, {
39
49
  path: string | null;
@@ -46,8 +56,10 @@ export declare const HostsSchema: z.ZodObject<{
46
56
  host: string | null;
47
57
  alpn: string | null;
48
58
  fingerprint: string | null;
49
- configProfileUuid: string | null;
50
- configProfileInboundUuid: string | null;
59
+ inbound: {
60
+ configProfileUuid: string | null;
61
+ configProfileInboundUuid: string | null;
62
+ };
51
63
  isDisabled?: boolean | undefined;
52
64
  securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
53
65
  xHttpExtraParams?: unknown;
@@ -1 +1 @@
1
- {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAiBtB,CAAC"}
1
+ {"version":3,"file":"hosts.schema.d.ts","sourceRoot":"","sources":["../../../models/hosts.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,WAAW;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAmBtB,CAAC"}
@@ -17,6 +17,8 @@ exports.HostsSchema = zod_1.z.object({
17
17
  isDisabled: zod_1.z.boolean().default(false),
18
18
  securityLayer: zod_1.z.nativeEnum(hosts_1.SECURITY_LAYERS).default(hosts_1.SECURITY_LAYERS.DEFAULT),
19
19
  xHttpExtraParams: zod_1.z.nullable(zod_1.z.unknown()),
20
- configProfileUuid: zod_1.z.string().uuid().nullable(),
21
- configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
20
+ inbound: zod_1.z.object({
21
+ configProfileUuid: zod_1.z.string().uuid().nullable(),
22
+ configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
23
+ }),
22
24
  });