@remnawave/backend-contract 2.9.1 → 2.9.3

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 (88) hide show
  1. package/build/backend/api/controllers/connections.d.ts +9 -0
  2. package/build/backend/api/controllers/connections.d.ts.map +1 -0
  3. package/build/backend/api/controllers/connections.js +16 -0
  4. package/build/backend/api/controllers/index.d.ts +1 -1
  5. package/build/backend/api/controllers/index.d.ts.map +1 -1
  6. package/build/backend/api/controllers/index.js +1 -1
  7. package/build/backend/api/controllers-info.d.ts +4 -4
  8. package/build/backend/api/controllers-info.js +4 -4
  9. package/build/backend/api/routes.d.ts +6 -6
  10. package/build/backend/api/routes.d.ts.map +1 -1
  11. package/build/backend/api/routes.js +6 -6
  12. package/build/backend/commands/{ip-control/fetch-users-ips-result.command.d.ts → connections/connections-by-node-result.command.d.ts} +2 -2
  13. package/build/backend/commands/connections/connections-by-node-result.command.d.ts.map +1 -0
  14. package/build/backend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +9 -9
  15. package/build/backend/commands/{ip-control/fetch-users-ips.command.d.ts → connections/connections-by-node.command.d.ts} +3 -3
  16. package/build/backend/commands/connections/connections-by-node.command.d.ts.map +1 -0
  17. package/build/backend/commands/connections/connections-by-node.command.js +20 -0
  18. package/build/backend/commands/{ip-control/fetch-ips-result.command.d.ts → connections/connections-by-user-result.command.d.ts} +2 -2
  19. package/build/backend/commands/connections/connections-by-user-result.command.d.ts.map +1 -0
  20. package/build/{frontend/commands/ip-control/fetch-ips-result.command.js → backend/commands/connections/connections-by-user-result.command.js} +9 -9
  21. package/build/backend/commands/{ip-control/fetch-ips.command.d.ts → connections/connections-by-user.command.d.ts} +2 -2
  22. package/build/backend/commands/connections/connections-by-user.command.d.ts.map +1 -0
  23. package/build/backend/commands/connections/connections-by-user.command.js +20 -0
  24. package/build/backend/commands/{ip-control → connections}/drop-connections.command.d.ts +2 -2
  25. package/build/backend/commands/connections/drop-connections.command.d.ts.map +1 -0
  26. package/build/backend/commands/{ip-control → connections}/drop-connections.command.js +2 -2
  27. package/build/backend/commands/connections/index.d.ts +6 -0
  28. package/build/backend/commands/connections/index.d.ts.map +1 -0
  29. package/build/backend/commands/{ip-control → connections}/index.js +4 -4
  30. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +0 -218
  31. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  32. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +0 -4
  33. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +0 -218
  34. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  35. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
  36. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +0 -218
  37. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  38. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
  39. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +0 -218
  40. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
  41. package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
  42. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  43. package/build/backend/commands/hosts/create.command.js +5 -22
  44. package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
  45. package/build/backend/commands/hosts/get-host.command.js +2 -4
  46. package/build/backend/commands/hosts/host.response.d.ts +219 -0
  47. package/build/backend/commands/hosts/host.response.d.ts.map +1 -0
  48. package/build/backend/commands/hosts/host.response.js +8 -0
  49. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  50. package/build/backend/commands/hosts/update.command.js +5 -22
  51. package/build/backend/commands/index.d.ts +1 -1
  52. package/build/backend/commands/index.d.ts.map +1 -1
  53. package/build/backend/commands/index.js +1 -1
  54. package/build/frontend/api/controllers/connections.js +16 -0
  55. package/build/frontend/api/controllers/index.js +1 -1
  56. package/build/frontend/api/controllers-info.js +4 -4
  57. package/build/frontend/api/routes.js +6 -6
  58. package/build/frontend/commands/{ip-control/fetch-users-ips-result.command.js → connections/connections-by-node-result.command.js} +9 -9
  59. package/build/frontend/commands/connections/connections-by-node.command.js +20 -0
  60. package/build/{backend/commands/ip-control/fetch-ips-result.command.js → frontend/commands/connections/connections-by-user-result.command.js} +9 -9
  61. package/build/frontend/commands/connections/connections-by-user.command.js +20 -0
  62. package/build/frontend/commands/{ip-control → connections}/drop-connections.command.js +2 -2
  63. package/build/frontend/commands/{ip-control → connections}/index.js +4 -4
  64. package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +0 -4
  65. package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
  66. package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
  67. package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
  68. package/build/frontend/commands/hosts/create.command.js +5 -22
  69. package/build/frontend/commands/hosts/get-host.command.js +2 -4
  70. package/build/frontend/commands/hosts/host.response.js +8 -0
  71. package/build/frontend/commands/hosts/update.command.js +5 -22
  72. package/build/frontend/commands/index.js +1 -1
  73. package/package.json +1 -1
  74. package/build/backend/api/controllers/ip-control.d.ts +0 -9
  75. package/build/backend/api/controllers/ip-control.d.ts.map +0 -1
  76. package/build/backend/api/controllers/ip-control.js +0 -16
  77. package/build/backend/commands/ip-control/drop-connections.command.d.ts.map +0 -1
  78. package/build/backend/commands/ip-control/fetch-ips-result.command.d.ts.map +0 -1
  79. package/build/backend/commands/ip-control/fetch-ips.command.d.ts.map +0 -1
  80. package/build/backend/commands/ip-control/fetch-ips.command.js +0 -20
  81. package/build/backend/commands/ip-control/fetch-users-ips-result.command.d.ts.map +0 -1
  82. package/build/backend/commands/ip-control/fetch-users-ips.command.d.ts.map +0 -1
  83. package/build/backend/commands/ip-control/fetch-users-ips.command.js +0 -20
  84. package/build/backend/commands/ip-control/index.d.ts +0 -6
  85. package/build/backend/commands/ip-control/index.d.ts.map +0 -1
  86. package/build/frontend/api/controllers/ip-control.js +0 -16
  87. package/build/frontend/commands/ip-control/fetch-ips.command.js +0 -20
  88. package/build/frontend/commands/ip-control/fetch-users-ips.command.js +0 -20
@@ -140,224 +140,6 @@ export declare namespace UpdateManyHostsCommand {
140
140
  excludedInternalSquads?: string[] | undefined;
141
141
  excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
142
142
  }>;
143
- const ResponseSchema: z.ZodObject<{
144
- response: z.ZodArray<z.ZodObject<{
145
- uuid: z.ZodString;
146
- viewPosition: z.ZodNumber;
147
- remark: z.ZodString;
148
- address: z.ZodString;
149
- port: z.ZodNumber;
150
- path: z.ZodNullable<z.ZodString>;
151
- sni: z.ZodNullable<z.ZodString>;
152
- host: z.ZodNullable<z.ZodString>;
153
- alpn: z.ZodNullable<z.ZodNativeEnum<{
154
- readonly H3: "h3";
155
- readonly H2: "h2";
156
- readonly HTTP_1_1: "http/1.1";
157
- readonly H_COMBINED: "h2,http/1.1";
158
- readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
159
- readonly H3_H2_COMBINED: "h3,h2";
160
- }>>;
161
- fingerprint: z.ZodNullable<z.ZodString>;
162
- isDisabled: z.ZodBoolean;
163
- securityLayer: z.ZodDefault<z.ZodNativeEnum<{
164
- readonly DEFAULT: "DEFAULT";
165
- readonly TLS: "TLS";
166
- readonly NONE: "NONE";
167
- }>>;
168
- xhttpExtraParams: z.ZodNullable<z.ZodUnknown>;
169
- muxParams: z.ZodNullable<z.ZodUnknown>;
170
- sockoptParams: z.ZodNullable<z.ZodUnknown>;
171
- finalMask: z.ZodNullable<z.ZodUnknown>;
172
- inbound: z.ZodObject<{
173
- configProfileUuid: z.ZodNullable<z.ZodString>;
174
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
175
- }, "strip", z.ZodTypeAny, {
176
- configProfileUuid: string | null;
177
- configProfileInboundUuid: string | null;
178
- }, {
179
- configProfileUuid: string | null;
180
- configProfileInboundUuid: string | null;
181
- }>;
182
- serverDescription: z.ZodNullable<z.ZodString>;
183
- tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
184
- isHidden: z.ZodDefault<z.ZodBoolean>;
185
- overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
186
- keepSniBlank: z.ZodDefault<z.ZodBoolean>;
187
- vlessRouteId: z.ZodNullable<z.ZodNumber>;
188
- pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
189
- verifyPeerCertByName: z.ZodNullable<z.ZodString>;
190
- shuffleHost: z.ZodBoolean;
191
- mihomoX25519: z.ZodBoolean;
192
- mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
193
- readonly DUAL: "dual";
194
- readonly IPV4: "ipv4";
195
- readonly IPV6: "ipv6";
196
- readonly IPV4_PREFER: "ipv4-prefer";
197
- readonly IPV6_PREFER: "ipv6-prefer";
198
- }>>;
199
- nodes: z.ZodArray<z.ZodString, "many">;
200
- xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
201
- excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
202
- excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
203
- readonly XRAY_JSON: "XRAY_JSON";
204
- readonly XRAY_BASE64: "XRAY_BASE64";
205
- readonly MIHOMO: "MIHOMO";
206
- readonly STASH: "STASH";
207
- readonly CLASH: "CLASH";
208
- readonly SINGBOX: "SINGBOX";
209
- }>, "many">;
210
- }, "strip", z.ZodTypeAny, {
211
- nodes: string[];
212
- tags: string[];
213
- uuid: string;
214
- path: string | null;
215
- port: number;
216
- viewPosition: number;
217
- remark: string;
218
- address: string;
219
- sni: string | null;
220
- host: string | null;
221
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
222
- fingerprint: string | null;
223
- isDisabled: boolean;
224
- securityLayer: "DEFAULT" | "TLS" | "NONE";
225
- inbound: {
226
- configProfileUuid: string | null;
227
- configProfileInboundUuid: string | null;
228
- };
229
- serverDescription: string | null;
230
- isHidden: boolean;
231
- overrideSniFromAddress: boolean;
232
- keepSniBlank: boolean;
233
- vlessRouteId: number | null;
234
- pinnedPeerCertSha256: string | null;
235
- verifyPeerCertByName: string | null;
236
- shuffleHost: boolean;
237
- mihomoX25519: boolean;
238
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
239
- xrayJsonTemplateUuid: string | null;
240
- excludedInternalSquads: string[];
241
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
242
- xhttpExtraParams?: unknown;
243
- muxParams?: unknown;
244
- sockoptParams?: unknown;
245
- finalMask?: unknown;
246
- }, {
247
- nodes: string[];
248
- uuid: string;
249
- path: string | null;
250
- port: number;
251
- viewPosition: number;
252
- remark: string;
253
- address: string;
254
- sni: string | null;
255
- host: string | null;
256
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
257
- fingerprint: string | null;
258
- isDisabled: boolean;
259
- inbound: {
260
- configProfileUuid: string | null;
261
- configProfileInboundUuid: string | null;
262
- };
263
- serverDescription: string | null;
264
- vlessRouteId: number | null;
265
- pinnedPeerCertSha256: string | null;
266
- verifyPeerCertByName: string | null;
267
- shuffleHost: boolean;
268
- mihomoX25519: boolean;
269
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
270
- xrayJsonTemplateUuid: string | null;
271
- excludedInternalSquads: string[];
272
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
273
- tags?: string[] | undefined;
274
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
275
- xhttpExtraParams?: unknown;
276
- muxParams?: unknown;
277
- sockoptParams?: unknown;
278
- finalMask?: unknown;
279
- isHidden?: boolean | undefined;
280
- overrideSniFromAddress?: boolean | undefined;
281
- keepSniBlank?: boolean | undefined;
282
- }>, "many">;
283
- }, "strip", z.ZodTypeAny, {
284
- response: {
285
- nodes: string[];
286
- tags: string[];
287
- uuid: string;
288
- path: string | null;
289
- port: number;
290
- viewPosition: number;
291
- remark: string;
292
- address: string;
293
- sni: string | null;
294
- host: string | null;
295
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
296
- fingerprint: string | null;
297
- isDisabled: boolean;
298
- securityLayer: "DEFAULT" | "TLS" | "NONE";
299
- inbound: {
300
- configProfileUuid: string | null;
301
- configProfileInboundUuid: string | null;
302
- };
303
- serverDescription: string | null;
304
- isHidden: boolean;
305
- overrideSniFromAddress: boolean;
306
- keepSniBlank: boolean;
307
- vlessRouteId: number | null;
308
- pinnedPeerCertSha256: string | null;
309
- verifyPeerCertByName: string | null;
310
- shuffleHost: boolean;
311
- mihomoX25519: boolean;
312
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
313
- xrayJsonTemplateUuid: string | null;
314
- excludedInternalSquads: string[];
315
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
316
- xhttpExtraParams?: unknown;
317
- muxParams?: unknown;
318
- sockoptParams?: unknown;
319
- finalMask?: unknown;
320
- }[];
321
- }, {
322
- response: {
323
- nodes: string[];
324
- uuid: string;
325
- path: string | null;
326
- port: number;
327
- viewPosition: number;
328
- remark: string;
329
- address: string;
330
- sni: string | null;
331
- host: string | null;
332
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
333
- fingerprint: string | null;
334
- isDisabled: boolean;
335
- inbound: {
336
- configProfileUuid: string | null;
337
- configProfileInboundUuid: string | null;
338
- };
339
- serverDescription: string | null;
340
- vlessRouteId: number | null;
341
- pinnedPeerCertSha256: string | null;
342
- verifyPeerCertByName: string | null;
343
- shuffleHost: boolean;
344
- mihomoX25519: boolean;
345
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
346
- xrayJsonTemplateUuid: string | null;
347
- excludedInternalSquads: string[];
348
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
349
- tags?: string[] | undefined;
350
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
351
- xhttpExtraParams?: unknown;
352
- muxParams?: unknown;
353
- sockoptParams?: unknown;
354
- finalMask?: unknown;
355
- isHidden?: boolean | undefined;
356
- overrideSniFromAddress?: boolean | undefined;
357
- keepSniBlank?: boolean | undefined;
358
- }[];
359
- }>;
360
143
  type RequestBody = z.infer<typeof RequestBodySchema>;
361
- type Response = z.infer<typeof ResponseSchema>;
362
144
  }
363
145
  //# sourceMappingURL=update-many-hosts.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"update-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/update-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAOxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEA,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/update-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIxB,CAAC;IAEP,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
@@ -4,7 +4,6 @@ exports.UpdateManyHostsCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../../api");
6
6
  const constants_1 = require("../../../constants");
7
- const models_1 = require("../../../models");
8
7
  const update_command_1 = require("../update.command");
9
8
  var UpdateManyHostsCommand;
10
9
  (function (UpdateManyHostsCommand) {
@@ -16,7 +15,4 @@ var UpdateManyHostsCommand;
16
15
  .extend({
17
16
  uuids: zod_1.z.array(zod_1.z.string().uuid()).min(1, 'Must be at least 1 host UUID'),
18
17
  });
19
- UpdateManyHostsCommand.ResponseSchema = zod_1.z.object({
20
- response: zod_1.z.array(models_1.HostsSchema),
21
- });
22
18
  })(UpdateManyHostsCommand || (exports.UpdateManyHostsCommand = UpdateManyHostsCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAwE5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"create.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/create.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAyD5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.CreateHostCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
7
+ const host_response_1 = require("./host.response");
8
8
  var CreateHostCommand;
9
9
  (function (CreateHostCommand) {
10
10
  CreateHostCommand.url = api_1.REST_API.HOSTS.CREATE;
@@ -15,24 +15,9 @@ var CreateHostCommand;
15
15
  configProfileUuid: zod_1.z.string().uuid(),
16
16
  configProfileInboundUuid: zod_1.z.string().uuid(),
17
17
  }),
18
- remark: zod_1.z
19
- .string({
20
- invalid_type_error: 'Remark must be a string',
21
- })
22
- .min(1, {
23
- message: 'Remark must be at least 1 character',
24
- })
25
- .max(40, {
26
- message: 'Remark must be less than 40 characters',
27
- }),
28
- address: zod_1.z.string({
29
- invalid_type_error: 'Address must be a string',
30
- }),
31
- port: zod_1.z
32
- .number({
33
- invalid_type_error: 'Port must be an integer',
34
- })
35
- .int(),
18
+ remark: zod_1.z.string().min(1).max(100),
19
+ address: zod_1.z.string(),
20
+ port: zod_1.z.number().int(),
36
21
  path: zod_1.z.string().nullish(),
37
22
  sni: zod_1.z.string().nullish(),
38
23
  host: zod_1.z.string().nullish(),
@@ -74,7 +59,5 @@ var CreateHostCommand;
74
59
  .optional(zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
75
60
  .describe('Optional. Subscription types from which the host will be excluded from.'),
76
61
  });
77
- CreateHostCommand.ResponseSchema = zod_1.z.object({
78
- response: models_1.HostsSchema,
79
- });
62
+ CreateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
80
63
  })(CreateHostCommand || (exports.CreateHostCommand = CreateHostCommand = {}));
@@ -1 +1 @@
1
- {"version":3,"file":"get-host.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-host.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"get-host.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/get-host.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,cAAc,CAAC;IACrB,MAAM,GAAG,0BAA6B,CAAC;IACvC,MAAM,OAAO,QAAe,CAAC;IAE7B,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,kBAAkB;;;;;;MAE7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -4,7 +4,7 @@ exports.GetHostCommand = void 0;
4
4
  const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
- const models_1 = require("../../models");
7
+ const host_response_1 = require("./host.response");
8
8
  var GetHostCommand;
9
9
  (function (GetHostCommand) {
10
10
  GetHostCommand.url = api_1.REST_API.HOSTS.GET_BY_UUID;
@@ -13,7 +13,5 @@ var GetHostCommand;
13
13
  GetHostCommand.RequestParamSchema = zod_1.z.object({
14
14
  uuid: zod_1.z.string().uuid(),
15
15
  });
16
- GetHostCommand.ResponseSchema = zod_1.z.object({
17
- response: models_1.HostsSchema,
18
- });
16
+ GetHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
19
17
  })(GetHostCommand || (exports.GetHostCommand = GetHostCommand = {}));
@@ -0,0 +1,219 @@
1
+ import { z } from 'zod';
2
+ export declare const HostResponseSchema: z.ZodObject<{
3
+ response: z.ZodObject<{
4
+ uuid: z.ZodString;
5
+ viewPosition: z.ZodNumber;
6
+ remark: z.ZodString;
7
+ address: z.ZodString;
8
+ port: z.ZodNumber;
9
+ path: z.ZodNullable<z.ZodString>;
10
+ sni: z.ZodNullable<z.ZodString>;
11
+ host: z.ZodNullable<z.ZodString>;
12
+ alpn: z.ZodNullable<z.ZodNativeEnum<{
13
+ readonly H3: "h3";
14
+ readonly H2: "h2";
15
+ readonly HTTP_1_1: "http/1.1";
16
+ readonly H_COMBINED: "h2,http/1.1";
17
+ readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
18
+ readonly H3_H2_COMBINED: "h3,h2";
19
+ }>>;
20
+ fingerprint: z.ZodNullable<z.ZodString>;
21
+ isDisabled: z.ZodBoolean;
22
+ securityLayer: z.ZodDefault<z.ZodNativeEnum<{
23
+ readonly DEFAULT: "DEFAULT";
24
+ readonly TLS: "TLS";
25
+ readonly NONE: "NONE";
26
+ }>>;
27
+ xhttpExtraParams: z.ZodNullable<z.ZodUnknown>;
28
+ muxParams: z.ZodNullable<z.ZodUnknown>;
29
+ sockoptParams: z.ZodNullable<z.ZodUnknown>;
30
+ finalMask: z.ZodNullable<z.ZodUnknown>;
31
+ inbound: z.ZodObject<{
32
+ configProfileUuid: z.ZodNullable<z.ZodString>;
33
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
34
+ }, "strip", z.ZodTypeAny, {
35
+ configProfileUuid: string | null;
36
+ configProfileInboundUuid: string | null;
37
+ }, {
38
+ configProfileUuid: string | null;
39
+ configProfileInboundUuid: string | null;
40
+ }>;
41
+ serverDescription: z.ZodNullable<z.ZodString>;
42
+ tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
43
+ isHidden: z.ZodDefault<z.ZodBoolean>;
44
+ overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
45
+ keepSniBlank: z.ZodDefault<z.ZodBoolean>;
46
+ vlessRouteId: z.ZodNullable<z.ZodNumber>;
47
+ pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
48
+ verifyPeerCertByName: z.ZodNullable<z.ZodString>;
49
+ shuffleHost: z.ZodBoolean;
50
+ mihomoX25519: z.ZodBoolean;
51
+ mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
52
+ readonly DUAL: "dual";
53
+ readonly IPV4: "ipv4";
54
+ readonly IPV6: "ipv6";
55
+ readonly IPV4_PREFER: "ipv4-prefer";
56
+ readonly IPV6_PREFER: "ipv6-prefer";
57
+ }>>;
58
+ nodes: z.ZodArray<z.ZodString, "many">;
59
+ xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
60
+ excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
61
+ excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
62
+ readonly XRAY_JSON: "XRAY_JSON";
63
+ readonly XRAY_BASE64: "XRAY_BASE64";
64
+ readonly MIHOMO: "MIHOMO";
65
+ readonly STASH: "STASH";
66
+ readonly CLASH: "CLASH";
67
+ readonly SINGBOX: "SINGBOX";
68
+ }>, "many">;
69
+ }, "strip", z.ZodTypeAny, {
70
+ nodes: string[];
71
+ tags: string[];
72
+ uuid: string;
73
+ path: string | null;
74
+ port: number;
75
+ viewPosition: number;
76
+ remark: string;
77
+ address: string;
78
+ sni: string | null;
79
+ host: string | null;
80
+ alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
81
+ fingerprint: string | null;
82
+ isDisabled: boolean;
83
+ securityLayer: "DEFAULT" | "TLS" | "NONE";
84
+ inbound: {
85
+ configProfileUuid: string | null;
86
+ configProfileInboundUuid: string | null;
87
+ };
88
+ serverDescription: string | null;
89
+ isHidden: boolean;
90
+ overrideSniFromAddress: boolean;
91
+ keepSniBlank: boolean;
92
+ vlessRouteId: number | null;
93
+ pinnedPeerCertSha256: string | null;
94
+ verifyPeerCertByName: string | null;
95
+ shuffleHost: boolean;
96
+ mihomoX25519: boolean;
97
+ mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
98
+ xrayJsonTemplateUuid: string | null;
99
+ excludedInternalSquads: string[];
100
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
101
+ xhttpExtraParams?: unknown;
102
+ muxParams?: unknown;
103
+ sockoptParams?: unknown;
104
+ finalMask?: unknown;
105
+ }, {
106
+ nodes: string[];
107
+ uuid: string;
108
+ path: string | null;
109
+ port: number;
110
+ viewPosition: number;
111
+ remark: string;
112
+ address: string;
113
+ sni: string | null;
114
+ host: string | null;
115
+ alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
116
+ fingerprint: string | null;
117
+ isDisabled: boolean;
118
+ inbound: {
119
+ configProfileUuid: string | null;
120
+ configProfileInboundUuid: string | null;
121
+ };
122
+ serverDescription: string | null;
123
+ vlessRouteId: number | null;
124
+ pinnedPeerCertSha256: string | null;
125
+ verifyPeerCertByName: string | null;
126
+ shuffleHost: boolean;
127
+ mihomoX25519: boolean;
128
+ mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
129
+ xrayJsonTemplateUuid: string | null;
130
+ excludedInternalSquads: string[];
131
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
132
+ tags?: string[] | undefined;
133
+ securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
134
+ xhttpExtraParams?: unknown;
135
+ muxParams?: unknown;
136
+ sockoptParams?: unknown;
137
+ finalMask?: unknown;
138
+ isHidden?: boolean | undefined;
139
+ overrideSniFromAddress?: boolean | undefined;
140
+ keepSniBlank?: boolean | undefined;
141
+ }>;
142
+ }, "strip", z.ZodTypeAny, {
143
+ response: {
144
+ nodes: string[];
145
+ tags: string[];
146
+ uuid: string;
147
+ path: string | null;
148
+ port: number;
149
+ viewPosition: number;
150
+ remark: string;
151
+ address: string;
152
+ sni: string | null;
153
+ host: string | null;
154
+ alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
155
+ fingerprint: string | null;
156
+ isDisabled: boolean;
157
+ securityLayer: "DEFAULT" | "TLS" | "NONE";
158
+ inbound: {
159
+ configProfileUuid: string | null;
160
+ configProfileInboundUuid: string | null;
161
+ };
162
+ serverDescription: string | null;
163
+ isHidden: boolean;
164
+ overrideSniFromAddress: boolean;
165
+ keepSniBlank: boolean;
166
+ vlessRouteId: number | null;
167
+ pinnedPeerCertSha256: string | null;
168
+ verifyPeerCertByName: string | null;
169
+ shuffleHost: boolean;
170
+ mihomoX25519: boolean;
171
+ mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
172
+ xrayJsonTemplateUuid: string | null;
173
+ excludedInternalSquads: string[];
174
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
175
+ xhttpExtraParams?: unknown;
176
+ muxParams?: unknown;
177
+ sockoptParams?: unknown;
178
+ finalMask?: unknown;
179
+ };
180
+ }, {
181
+ response: {
182
+ nodes: string[];
183
+ uuid: string;
184
+ path: string | null;
185
+ port: number;
186
+ viewPosition: number;
187
+ remark: string;
188
+ address: string;
189
+ sni: string | null;
190
+ host: string | null;
191
+ alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
192
+ fingerprint: string | null;
193
+ isDisabled: boolean;
194
+ inbound: {
195
+ configProfileUuid: string | null;
196
+ configProfileInboundUuid: string | null;
197
+ };
198
+ serverDescription: string | null;
199
+ vlessRouteId: number | null;
200
+ pinnedPeerCertSha256: string | null;
201
+ verifyPeerCertByName: string | null;
202
+ shuffleHost: boolean;
203
+ mihomoX25519: boolean;
204
+ mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
205
+ xrayJsonTemplateUuid: string | null;
206
+ excludedInternalSquads: string[];
207
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
208
+ tags?: string[] | undefined;
209
+ securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
210
+ xhttpExtraParams?: unknown;
211
+ muxParams?: unknown;
212
+ sockoptParams?: unknown;
213
+ finalMask?: unknown;
214
+ isHidden?: boolean | undefined;
215
+ overrideSniFromAddress?: boolean | undefined;
216
+ keepSniBlank?: boolean | undefined;
217
+ };
218
+ }>;
219
+ //# sourceMappingURL=host.response.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"host.response.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/host.response.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAIxB,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAE7B,CAAC"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.HostResponseSchema = void 0;
4
+ const zod_1 = require("zod");
5
+ const hosts_schema_1 = require("../../models/hosts.schema");
6
+ exports.HostResponseSchema = zod_1.z.object({
7
+ response: hosts_schema_1.HostsSchema,
8
+ });
@@ -1 +1 @@
1
- {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAYxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2E5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAEzB,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
1
+ {"version":3,"file":"update.command.d.ts","sourceRoot":"","sources":["../../../../commands/hosts/update.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAaxB,yBAAiB,iBAAiB,CAAC;IACxB,MAAM,GAAG,eAAwB,CAAC;IAClC,MAAM,OAAO,eAAM,CAAC;IAEpB,MAAM,eAAe,2CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA2D5B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAAqB,CAAC;IAEjD,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;IAC5D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
@@ -5,6 +5,7 @@ const zod_1 = require("zod");
5
5
  const api_1 = require("../../api");
6
6
  const constants_1 = require("../../constants");
7
7
  const models_1 = require("../../models");
8
+ const host_response_1 = require("./host.response");
8
9
  var UpdateHostCommand;
9
10
  (function (UpdateHostCommand) {
10
11
  UpdateHostCommand.url = api_1.REST_API.HOSTS.UPDATE;
@@ -19,25 +20,9 @@ var UpdateHostCommand;
19
20
  configProfileInboundUuid: zod_1.z.string().uuid(),
20
21
  })
21
22
  .optional(),
22
- remark: zod_1.z
23
- .string({
24
- invalid_type_error: 'Remark must be a string',
25
- })
26
- .max(40, {
27
- message: 'Remark must be less than 40 characters',
28
- })
29
- .optional(),
30
- address: zod_1.z
31
- .string({
32
- invalid_type_error: 'Address must be a string',
33
- })
34
- .optional(),
35
- port: zod_1.z
36
- .number({
37
- invalid_type_error: 'Port must be an integer',
38
- })
39
- .int()
40
- .optional(),
23
+ remark: zod_1.z.string().min(1).max(100).optional(),
24
+ address: zod_1.z.string().optional(),
25
+ port: zod_1.z.number().int().optional(),
41
26
  path: zod_1.z.string().nullish(),
42
27
  sni: zod_1.z.string().nullish(),
43
28
  host: zod_1.z.string().nullish(),
@@ -79,7 +64,5 @@ var UpdateHostCommand;
79
64
  .optional(zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)))
80
65
  .describe('Optional. Subscription types from which the host will be excluded from.'),
81
66
  });
82
- UpdateHostCommand.ResponseSchema = zod_1.z.object({
83
- response: models_1.HostsSchema,
84
- });
67
+ UpdateHostCommand.ResponseSchema = host_response_1.HostResponseSchema;
85
68
  })(UpdateHostCommand || (exports.UpdateHostCommand = UpdateHostCommand = {}));
@@ -7,7 +7,7 @@ export * from './hosts';
7
7
  export * from './hwid';
8
8
  export * from './infra-billing';
9
9
  export * from './internal-squads';
10
- export * from './ip-control';
10
+ export * from './connections';
11
11
  export * from './keygen';
12
12
  export * from './metadata';
13
13
  export * from './node-plugins';
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../commands/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,QAAQ,CAAC;AACvB,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,SAAS,CAAC;AACxB,cAAc,QAAQ,CAAC;AACvB,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,UAAU,CAAC;AACzB,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,SAAS,CAAC;AACxB,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,6BAA6B,CAAC;AAC5C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,UAAU,CAAC;AACzB,cAAc,SAAS,CAAC"}
@@ -23,7 +23,7 @@ __exportStar(require("./hosts"), exports);
23
23
  __exportStar(require("./hwid"), exports);
24
24
  __exportStar(require("./infra-billing"), exports);
25
25
  __exportStar(require("./internal-squads"), exports);
26
- __exportStar(require("./ip-control"), exports);
26
+ __exportStar(require("./connections"), exports);
27
27
  __exportStar(require("./keygen"), exports);
28
28
  __exportStar(require("./metadata"), exports);
29
29
  __exportStar(require("./node-plugins"), exports);
@@ -0,0 +1,16 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CONNECTIONS_ROUTES = exports.CONNECTIONS_CONTROLLER = void 0;
4
+ exports.CONNECTIONS_CONTROLLER = 'connections';
5
+ exports.CONNECTIONS_ROUTES = {
6
+ // POST
7
+ CONNECTIONS_BY_USER: (uuid) => `by-user/${uuid}`,
8
+ // GET
9
+ CONNECTIONS_BY_USER_RESULT: (jobId) => `by-user/${jobId}`,
10
+ // POST
11
+ CONNECTIONS_BY_NODE: (uuid) => `by-node/${uuid}`,
12
+ // GET
13
+ CONNECTIONS_BY_NODE_RESULT: (jobId) => `by-node/${jobId}`,
14
+ // POST
15
+ DROP_CONNECTIONS: 'drop',
16
+ };