@remnawave/backend-contract 2.9.1 → 2.9.2

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 (30) hide show
  1. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +0 -218
  2. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
  3. package/build/backend/commands/hosts/bulk/delete-many-hosts.command.js +0 -4
  4. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +0 -218
  5. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -1
  6. package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
  7. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +0 -218
  8. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -1
  9. package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
  10. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +0 -218
  11. package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
  12. package/build/backend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
  13. package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
  14. package/build/backend/commands/hosts/create.command.js +5 -22
  15. package/build/backend/commands/hosts/get-host.command.d.ts.map +1 -1
  16. package/build/backend/commands/hosts/get-host.command.js +2 -4
  17. package/build/backend/commands/hosts/host.response.d.ts +219 -0
  18. package/build/backend/commands/hosts/host.response.d.ts.map +1 -0
  19. package/build/backend/commands/hosts/host.response.js +8 -0
  20. package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
  21. package/build/backend/commands/hosts/update.command.js +5 -22
  22. package/build/frontend/commands/hosts/bulk/delete-many-hosts.command.js +0 -4
  23. package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +0 -4
  24. package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +0 -4
  25. package/build/frontend/commands/hosts/bulk/update-many-hosts.command.js +0 -4
  26. package/build/frontend/commands/hosts/create.command.js +5 -22
  27. package/build/frontend/commands/hosts/get-host.command.js +2 -4
  28. package/build/frontend/commands/hosts/host.response.js +8 -0
  29. package/build/frontend/commands/hosts/update.command.js +5 -22
  30. package/package.json +1 -1
@@ -10,224 +10,6 @@ export declare namespace BulkEnableHostsCommand {
10
10
  }, {
11
11
  uuids: string[];
12
12
  }>;
13
- const ResponseSchema: z.ZodObject<{
14
- response: z.ZodArray<z.ZodObject<{
15
- uuid: z.ZodString;
16
- viewPosition: z.ZodNumber;
17
- remark: z.ZodString;
18
- address: z.ZodString;
19
- port: z.ZodNumber;
20
- path: z.ZodNullable<z.ZodString>;
21
- sni: z.ZodNullable<z.ZodString>;
22
- host: z.ZodNullable<z.ZodString>;
23
- alpn: z.ZodNullable<z.ZodNativeEnum<{
24
- readonly H3: "h3";
25
- readonly H2: "h2";
26
- readonly HTTP_1_1: "http/1.1";
27
- readonly H_COMBINED: "h2,http/1.1";
28
- readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
29
- readonly H3_H2_COMBINED: "h3,h2";
30
- }>>;
31
- fingerprint: z.ZodNullable<z.ZodString>;
32
- isDisabled: z.ZodBoolean;
33
- securityLayer: z.ZodDefault<z.ZodNativeEnum<{
34
- readonly DEFAULT: "DEFAULT";
35
- readonly TLS: "TLS";
36
- readonly NONE: "NONE";
37
- }>>;
38
- xhttpExtraParams: z.ZodNullable<z.ZodUnknown>;
39
- muxParams: z.ZodNullable<z.ZodUnknown>;
40
- sockoptParams: z.ZodNullable<z.ZodUnknown>;
41
- finalMask: z.ZodNullable<z.ZodUnknown>;
42
- inbound: z.ZodObject<{
43
- configProfileUuid: z.ZodNullable<z.ZodString>;
44
- configProfileInboundUuid: z.ZodNullable<z.ZodString>;
45
- }, "strip", z.ZodTypeAny, {
46
- configProfileUuid: string | null;
47
- configProfileInboundUuid: string | null;
48
- }, {
49
- configProfileUuid: string | null;
50
- configProfileInboundUuid: string | null;
51
- }>;
52
- serverDescription: z.ZodNullable<z.ZodString>;
53
- tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
54
- isHidden: z.ZodDefault<z.ZodBoolean>;
55
- overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
56
- keepSniBlank: z.ZodDefault<z.ZodBoolean>;
57
- vlessRouteId: z.ZodNullable<z.ZodNumber>;
58
- pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
59
- verifyPeerCertByName: z.ZodNullable<z.ZodString>;
60
- shuffleHost: z.ZodBoolean;
61
- mihomoX25519: z.ZodBoolean;
62
- mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
63
- readonly DUAL: "dual";
64
- readonly IPV4: "ipv4";
65
- readonly IPV6: "ipv6";
66
- readonly IPV4_PREFER: "ipv4-prefer";
67
- readonly IPV6_PREFER: "ipv6-prefer";
68
- }>>;
69
- nodes: z.ZodArray<z.ZodString, "many">;
70
- xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
71
- excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
72
- excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
73
- readonly XRAY_JSON: "XRAY_JSON";
74
- readonly XRAY_BASE64: "XRAY_BASE64";
75
- readonly MIHOMO: "MIHOMO";
76
- readonly STASH: "STASH";
77
- readonly CLASH: "CLASH";
78
- readonly SINGBOX: "SINGBOX";
79
- }>, "many">;
80
- }, "strip", z.ZodTypeAny, {
81
- nodes: string[];
82
- tags: string[];
83
- uuid: string;
84
- path: string | null;
85
- port: number;
86
- viewPosition: number;
87
- remark: string;
88
- address: string;
89
- sni: string | null;
90
- host: string | null;
91
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
92
- fingerprint: string | null;
93
- isDisabled: boolean;
94
- securityLayer: "DEFAULT" | "TLS" | "NONE";
95
- inbound: {
96
- configProfileUuid: string | null;
97
- configProfileInboundUuid: string | null;
98
- };
99
- serverDescription: string | null;
100
- isHidden: boolean;
101
- overrideSniFromAddress: boolean;
102
- keepSniBlank: boolean;
103
- vlessRouteId: number | null;
104
- pinnedPeerCertSha256: string | null;
105
- verifyPeerCertByName: string | null;
106
- shuffleHost: boolean;
107
- mihomoX25519: boolean;
108
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
109
- xrayJsonTemplateUuid: string | null;
110
- excludedInternalSquads: string[];
111
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
112
- xhttpExtraParams?: unknown;
113
- muxParams?: unknown;
114
- sockoptParams?: unknown;
115
- finalMask?: unknown;
116
- }, {
117
- nodes: string[];
118
- uuid: string;
119
- path: string | null;
120
- port: number;
121
- viewPosition: number;
122
- remark: string;
123
- address: string;
124
- sni: string | null;
125
- host: string | null;
126
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
127
- fingerprint: string | null;
128
- isDisabled: boolean;
129
- inbound: {
130
- configProfileUuid: string | null;
131
- configProfileInboundUuid: string | null;
132
- };
133
- serverDescription: string | null;
134
- vlessRouteId: number | null;
135
- pinnedPeerCertSha256: string | null;
136
- verifyPeerCertByName: string | null;
137
- shuffleHost: boolean;
138
- mihomoX25519: boolean;
139
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
140
- xrayJsonTemplateUuid: string | null;
141
- excludedInternalSquads: string[];
142
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
143
- tags?: string[] | undefined;
144
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
145
- xhttpExtraParams?: unknown;
146
- muxParams?: unknown;
147
- sockoptParams?: unknown;
148
- finalMask?: unknown;
149
- isHidden?: boolean | undefined;
150
- overrideSniFromAddress?: boolean | undefined;
151
- keepSniBlank?: boolean | undefined;
152
- }>, "many">;
153
- }, "strip", z.ZodTypeAny, {
154
- response: {
155
- nodes: string[];
156
- tags: string[];
157
- uuid: string;
158
- path: string | null;
159
- port: number;
160
- viewPosition: number;
161
- remark: string;
162
- address: string;
163
- sni: string | null;
164
- host: string | null;
165
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
166
- fingerprint: string | null;
167
- isDisabled: boolean;
168
- securityLayer: "DEFAULT" | "TLS" | "NONE";
169
- inbound: {
170
- configProfileUuid: string | null;
171
- configProfileInboundUuid: string | null;
172
- };
173
- serverDescription: string | null;
174
- isHidden: boolean;
175
- overrideSniFromAddress: boolean;
176
- keepSniBlank: boolean;
177
- vlessRouteId: number | null;
178
- pinnedPeerCertSha256: string | null;
179
- verifyPeerCertByName: string | null;
180
- shuffleHost: boolean;
181
- mihomoX25519: boolean;
182
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
183
- xrayJsonTemplateUuid: string | null;
184
- excludedInternalSquads: string[];
185
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
186
- xhttpExtraParams?: unknown;
187
- muxParams?: unknown;
188
- sockoptParams?: unknown;
189
- finalMask?: unknown;
190
- }[];
191
- }, {
192
- response: {
193
- nodes: string[];
194
- uuid: string;
195
- path: string | null;
196
- port: number;
197
- viewPosition: number;
198
- remark: string;
199
- address: string;
200
- sni: string | null;
201
- host: string | null;
202
- alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
203
- fingerprint: string | null;
204
- isDisabled: boolean;
205
- inbound: {
206
- configProfileUuid: string | null;
207
- configProfileInboundUuid: string | null;
208
- };
209
- serverDescription: string | null;
210
- vlessRouteId: number | null;
211
- pinnedPeerCertSha256: string | null;
212
- verifyPeerCertByName: string | null;
213
- shuffleHost: boolean;
214
- mihomoX25519: boolean;
215
- mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
216
- xrayJsonTemplateUuid: string | null;
217
- excludedInternalSquads: string[];
218
- excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
219
- tags?: string[] | undefined;
220
- securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
221
- xhttpExtraParams?: unknown;
222
- muxParams?: unknown;
223
- sockoptParams?: unknown;
224
- finalMask?: unknown;
225
- isHidden?: boolean | undefined;
226
- overrideSniFromAddress?: boolean | undefined;
227
- keepSniBlank?: boolean | undefined;
228
- }[];
229
- }>;
230
13
  type RequestBody = z.infer<typeof RequestBodySchema>;
231
- type Response = z.infer<typeof ResponseSchema>;
232
14
  }
233
15
  //# sourceMappingURL=enable-many-hosts.command.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;MAE5B,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":"enable-many-hosts.command.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/enable-many-hosts.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,yBAAiB,sBAAsB,CAAC;IAC7B,MAAM,GAAG,0BAAmC,CAAC;IAC7C,MAAM,OAAO,0BAAM,CAAC;IAEpB,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,iBAAiB;;;;;;MAE5B,CAAC;IAEH,KAAY,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;CAC/D"}
@@ -4,7 +4,6 @@ exports.BulkEnableHostsCommand = 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
  var BulkEnableHostsCommand;
9
8
  (function (BulkEnableHostsCommand) {
10
9
  BulkEnableHostsCommand.url = api_1.REST_API.HOSTS.BULK.ENABLE_HOSTS;
@@ -13,7 +12,4 @@ var BulkEnableHostsCommand;
13
12
  BulkEnableHostsCommand.RequestBodySchema = zod_1.z.object({
14
13
  uuids: zod_1.z.array(zod_1.z.string().uuid()),
15
14
  });
16
- BulkEnableHostsCommand.ResponseSchema = zod_1.z.object({
17
- response: zod_1.z.array(models_1.HostsSchema),
18
- });
19
15
  })(BulkEnableHostsCommand || (exports.BulkEnableHostsCommand = BulkEnableHostsCommand = {}));
@@ -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 = {}));