@remnawave/backend-contract 2.8.12 → 2.8.15
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.
- package/build/backend/api/controllers/hosts.d.ts +2 -0
- package/build/backend/api/controllers/hosts.d.ts.map +1 -1
- package/build/backend/api/controllers/hosts.js +2 -0
- package/build/backend/api/routes.d.ts +2 -0
- package/build/backend/api/routes.d.ts.map +1 -1
- package/build/backend/api/routes.js +2 -0
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts +21 -14
- package/build/backend/commands/hosts/bulk/delete-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts +233 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/bulk/disable-many-hosts.command.js +19 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts +233 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.d.ts.map +1 -0
- package/build/backend/commands/hosts/bulk/enable-many-hosts.command.js +19 -0
- package/build/backend/commands/hosts/bulk/index.d.ts +2 -0
- package/build/backend/commands/hosts/bulk/index.d.ts.map +1 -1
- package/build/backend/commands/hosts/bulk/index.js +2 -0
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts +31 -24
- package/build/backend/commands/hosts/bulk/update-many-hosts.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.d.ts +32 -25
- package/build/backend/commands/hosts/create.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/create.command.js +17 -17
- package/build/backend/commands/hosts/get-all.command.d.ts +21 -14
- package/build/backend/commands/hosts/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/get-one.command.d.ts +21 -14
- package/build/backend/commands/hosts/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/reorder.command.d.ts +11 -4
- package/build/backend/commands/hosts/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.d.ts +43 -29
- package/build/backend/commands/hosts/update.command.d.ts.map +1 -1
- package/build/backend/commands/hosts/update.command.js +16 -16
- package/build/backend/constants/errors/errors.d.ts +10 -0
- package/build/backend/constants/errors/errors.d.ts.map +1 -1
- package/build/backend/constants/errors/errors.js +10 -0
- package/build/backend/constants/hosts/alpn.d.ts +1 -0
- package/build/backend/constants/hosts/alpn.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.d.ts +16 -9
- package/build/backend/models/hosts.schema.d.ts.map +1 -1
- package/build/backend/models/hosts.schema.js +3 -3
- package/build/frontend/api/controllers/hosts.js +2 -0
- package/build/frontend/api/routes.js +2 -0
- package/build/frontend/commands/hosts/bulk/disable-many-hosts.command.js +19 -0
- package/build/frontend/commands/hosts/bulk/enable-many-hosts.command.js +19 -0
- package/build/frontend/commands/hosts/bulk/index.js +2 -0
- package/build/frontend/commands/hosts/create.command.js +17 -17
- package/build/frontend/commands/hosts/update.command.js +16 -16
- package/build/frontend/constants/errors/errors.js +10 -0
- package/build/frontend/models/hosts.schema.js +3 -3
- package/package.json +1 -1
|
@@ -0,0 +1,233 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare namespace BulkEnableHostsCommand {
|
|
3
|
+
const url: "/api/hosts/bulk/enable";
|
|
4
|
+
const TSQ_url: "/api/hosts/bulk/enable";
|
|
5
|
+
const endpointDetails: import("../../../constants").EndpointDetails;
|
|
6
|
+
const RequestSchema: z.ZodObject<{
|
|
7
|
+
uuids: z.ZodArray<z.ZodString, "many">;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
uuids: string[];
|
|
10
|
+
}, {
|
|
11
|
+
uuids: string[];
|
|
12
|
+
}>;
|
|
13
|
+
type Request = z.infer<typeof RequestSchema>;
|
|
14
|
+
const ResponseSchema: z.ZodObject<{
|
|
15
|
+
response: z.ZodArray<z.ZodObject<{
|
|
16
|
+
uuid: z.ZodString;
|
|
17
|
+
viewPosition: z.ZodNumber;
|
|
18
|
+
remark: z.ZodString;
|
|
19
|
+
address: z.ZodString;
|
|
20
|
+
port: z.ZodNumber;
|
|
21
|
+
path: z.ZodNullable<z.ZodString>;
|
|
22
|
+
sni: z.ZodNullable<z.ZodString>;
|
|
23
|
+
host: z.ZodNullable<z.ZodString>;
|
|
24
|
+
alpn: z.ZodNullable<z.ZodNativeEnum<{
|
|
25
|
+
readonly H3: "h3";
|
|
26
|
+
readonly H2: "h2";
|
|
27
|
+
readonly HTTP_1_1: "http/1.1";
|
|
28
|
+
readonly H_COMBINED: "h2,http/1.1";
|
|
29
|
+
readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
|
|
30
|
+
readonly H3_H2_COMBINED: "h3,h2";
|
|
31
|
+
}>>;
|
|
32
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
33
|
+
isDisabled: z.ZodBoolean;
|
|
34
|
+
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
|
35
|
+
readonly DEFAULT: "DEFAULT";
|
|
36
|
+
readonly TLS: "TLS";
|
|
37
|
+
readonly NONE: "NONE";
|
|
38
|
+
}>>;
|
|
39
|
+
xHttpExtraParams: z.ZodNullable<z.ZodUnknown>;
|
|
40
|
+
muxParams: z.ZodNullable<z.ZodUnknown>;
|
|
41
|
+
sockoptParams: z.ZodNullable<z.ZodUnknown>;
|
|
42
|
+
finalMask: z.ZodNullable<z.ZodUnknown>;
|
|
43
|
+
inbound: z.ZodObject<{
|
|
44
|
+
configProfileUuid: z.ZodNullable<z.ZodString>;
|
|
45
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodString>;
|
|
46
|
+
}, "strip", z.ZodTypeAny, {
|
|
47
|
+
configProfileUuid: string | null;
|
|
48
|
+
configProfileInboundUuid: string | null;
|
|
49
|
+
}, {
|
|
50
|
+
configProfileUuid: string | null;
|
|
51
|
+
configProfileInboundUuid: string | null;
|
|
52
|
+
}>;
|
|
53
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
|
54
|
+
tags: z.ZodDefault<z.ZodArray<z.ZodString, "many">>;
|
|
55
|
+
isHidden: z.ZodDefault<z.ZodBoolean>;
|
|
56
|
+
overrideSniFromAddress: z.ZodDefault<z.ZodBoolean>;
|
|
57
|
+
keepSniBlank: z.ZodDefault<z.ZodBoolean>;
|
|
58
|
+
vlessRouteId: z.ZodNullable<z.ZodNumber>;
|
|
59
|
+
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
60
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
61
|
+
shuffleHost: z.ZodBoolean;
|
|
62
|
+
mihomoX25519: z.ZodBoolean;
|
|
63
|
+
mihomoIpVersion: z.ZodNullable<z.ZodNativeEnum<{
|
|
64
|
+
readonly DUAL: "dual";
|
|
65
|
+
readonly IPV4: "ipv4";
|
|
66
|
+
readonly IPV6: "ipv6";
|
|
67
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
68
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
69
|
+
}>>;
|
|
70
|
+
nodes: z.ZodArray<z.ZodString, "many">;
|
|
71
|
+
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
72
|
+
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
73
|
+
excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
|
|
74
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
75
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
76
|
+
readonly MIHOMO: "MIHOMO";
|
|
77
|
+
readonly STASH: "STASH";
|
|
78
|
+
readonly CLASH: "CLASH";
|
|
79
|
+
readonly SINGBOX: "SINGBOX";
|
|
80
|
+
}>, "many">;
|
|
81
|
+
}, "strip", z.ZodTypeAny, {
|
|
82
|
+
nodes: string[];
|
|
83
|
+
tags: string[];
|
|
84
|
+
path: string | null;
|
|
85
|
+
uuid: string;
|
|
86
|
+
port: number;
|
|
87
|
+
viewPosition: number;
|
|
88
|
+
remark: string;
|
|
89
|
+
address: string;
|
|
90
|
+
sni: string | null;
|
|
91
|
+
host: string | null;
|
|
92
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
93
|
+
fingerprint: string | null;
|
|
94
|
+
isDisabled: boolean;
|
|
95
|
+
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
|
96
|
+
inbound: {
|
|
97
|
+
configProfileUuid: string | null;
|
|
98
|
+
configProfileInboundUuid: string | null;
|
|
99
|
+
};
|
|
100
|
+
serverDescription: string | null;
|
|
101
|
+
isHidden: boolean;
|
|
102
|
+
overrideSniFromAddress: boolean;
|
|
103
|
+
keepSniBlank: boolean;
|
|
104
|
+
vlessRouteId: number | null;
|
|
105
|
+
pinnedPeerCertSha256: string | null;
|
|
106
|
+
verifyPeerCertByName: string | null;
|
|
107
|
+
shuffleHost: boolean;
|
|
108
|
+
mihomoX25519: boolean;
|
|
109
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
110
|
+
xrayJsonTemplateUuid: string | null;
|
|
111
|
+
excludedInternalSquads: string[];
|
|
112
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
113
|
+
xHttpExtraParams?: unknown;
|
|
114
|
+
muxParams?: unknown;
|
|
115
|
+
sockoptParams?: unknown;
|
|
116
|
+
finalMask?: unknown;
|
|
117
|
+
}, {
|
|
118
|
+
nodes: string[];
|
|
119
|
+
path: string | null;
|
|
120
|
+
uuid: string;
|
|
121
|
+
port: number;
|
|
122
|
+
viewPosition: number;
|
|
123
|
+
remark: string;
|
|
124
|
+
address: string;
|
|
125
|
+
sni: string | null;
|
|
126
|
+
host: string | null;
|
|
127
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
128
|
+
fingerprint: string | null;
|
|
129
|
+
isDisabled: boolean;
|
|
130
|
+
inbound: {
|
|
131
|
+
configProfileUuid: string | null;
|
|
132
|
+
configProfileInboundUuid: string | null;
|
|
133
|
+
};
|
|
134
|
+
serverDescription: string | null;
|
|
135
|
+
vlessRouteId: number | null;
|
|
136
|
+
pinnedPeerCertSha256: string | null;
|
|
137
|
+
verifyPeerCertByName: string | null;
|
|
138
|
+
shuffleHost: boolean;
|
|
139
|
+
mihomoX25519: boolean;
|
|
140
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
141
|
+
xrayJsonTemplateUuid: string | null;
|
|
142
|
+
excludedInternalSquads: string[];
|
|
143
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
144
|
+
tags?: string[] | undefined;
|
|
145
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
146
|
+
xHttpExtraParams?: unknown;
|
|
147
|
+
muxParams?: unknown;
|
|
148
|
+
sockoptParams?: unknown;
|
|
149
|
+
finalMask?: unknown;
|
|
150
|
+
isHidden?: boolean | undefined;
|
|
151
|
+
overrideSniFromAddress?: boolean | undefined;
|
|
152
|
+
keepSniBlank?: boolean | undefined;
|
|
153
|
+
}>, "many">;
|
|
154
|
+
}, "strip", z.ZodTypeAny, {
|
|
155
|
+
response: {
|
|
156
|
+
nodes: string[];
|
|
157
|
+
tags: string[];
|
|
158
|
+
path: string | null;
|
|
159
|
+
uuid: string;
|
|
160
|
+
port: number;
|
|
161
|
+
viewPosition: number;
|
|
162
|
+
remark: string;
|
|
163
|
+
address: string;
|
|
164
|
+
sni: string | null;
|
|
165
|
+
host: string | null;
|
|
166
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
167
|
+
fingerprint: string | null;
|
|
168
|
+
isDisabled: boolean;
|
|
169
|
+
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
|
170
|
+
inbound: {
|
|
171
|
+
configProfileUuid: string | null;
|
|
172
|
+
configProfileInboundUuid: string | null;
|
|
173
|
+
};
|
|
174
|
+
serverDescription: string | null;
|
|
175
|
+
isHidden: boolean;
|
|
176
|
+
overrideSniFromAddress: boolean;
|
|
177
|
+
keepSniBlank: boolean;
|
|
178
|
+
vlessRouteId: number | null;
|
|
179
|
+
pinnedPeerCertSha256: string | null;
|
|
180
|
+
verifyPeerCertByName: string | null;
|
|
181
|
+
shuffleHost: boolean;
|
|
182
|
+
mihomoX25519: boolean;
|
|
183
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
184
|
+
xrayJsonTemplateUuid: string | null;
|
|
185
|
+
excludedInternalSquads: string[];
|
|
186
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
187
|
+
xHttpExtraParams?: unknown;
|
|
188
|
+
muxParams?: unknown;
|
|
189
|
+
sockoptParams?: unknown;
|
|
190
|
+
finalMask?: unknown;
|
|
191
|
+
}[];
|
|
192
|
+
}, {
|
|
193
|
+
response: {
|
|
194
|
+
nodes: string[];
|
|
195
|
+
path: string | null;
|
|
196
|
+
uuid: string;
|
|
197
|
+
port: number;
|
|
198
|
+
viewPosition: number;
|
|
199
|
+
remark: string;
|
|
200
|
+
address: string;
|
|
201
|
+
sni: string | null;
|
|
202
|
+
host: string | null;
|
|
203
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
204
|
+
fingerprint: string | null;
|
|
205
|
+
isDisabled: boolean;
|
|
206
|
+
inbound: {
|
|
207
|
+
configProfileUuid: string | null;
|
|
208
|
+
configProfileInboundUuid: string | null;
|
|
209
|
+
};
|
|
210
|
+
serverDescription: string | null;
|
|
211
|
+
vlessRouteId: number | null;
|
|
212
|
+
pinnedPeerCertSha256: string | null;
|
|
213
|
+
verifyPeerCertByName: string | null;
|
|
214
|
+
shuffleHost: boolean;
|
|
215
|
+
mihomoX25519: boolean;
|
|
216
|
+
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
217
|
+
xrayJsonTemplateUuid: string | null;
|
|
218
|
+
excludedInternalSquads: string[];
|
|
219
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
220
|
+
tags?: string[] | undefined;
|
|
221
|
+
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
222
|
+
xHttpExtraParams?: unknown;
|
|
223
|
+
muxParams?: unknown;
|
|
224
|
+
sockoptParams?: unknown;
|
|
225
|
+
finalMask?: unknown;
|
|
226
|
+
isHidden?: boolean | undefined;
|
|
227
|
+
overrideSniFromAddress?: boolean | undefined;
|
|
228
|
+
keepSniBlank?: boolean | undefined;
|
|
229
|
+
}[];
|
|
230
|
+
}>;
|
|
231
|
+
type Response = z.infer<typeof ResponseSchema>;
|
|
232
|
+
}
|
|
233
|
+
//# sourceMappingURL=enable-many-hosts.command.d.ts.map
|
|
@@ -0,0 +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,8CAI3B,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"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.BulkEnableHostsCommand = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../../../constants");
|
|
6
|
+
const api_1 = require("../../../api");
|
|
7
|
+
const models_1 = require("../../../models");
|
|
8
|
+
var BulkEnableHostsCommand;
|
|
9
|
+
(function (BulkEnableHostsCommand) {
|
|
10
|
+
BulkEnableHostsCommand.url = api_1.REST_API.HOSTS.BULK.ENABLE_HOSTS;
|
|
11
|
+
BulkEnableHostsCommand.TSQ_url = BulkEnableHostsCommand.url;
|
|
12
|
+
BulkEnableHostsCommand.endpointDetails = (0, constants_1.getEndpointDetails)(api_1.HOSTS_ROUTES.BULK.ENABLE_HOSTS, 'post', 'Enable hosts by UUIDs');
|
|
13
|
+
BulkEnableHostsCommand.RequestSchema = zod_1.z.object({
|
|
14
|
+
uuids: zod_1.z.array(zod_1.z.string().uuid()),
|
|
15
|
+
});
|
|
16
|
+
BulkEnableHostsCommand.ResponseSchema = zod_1.z.object({
|
|
17
|
+
response: zod_1.z.array(models_1.HostsSchema),
|
|
18
|
+
});
|
|
19
|
+
})(BulkEnableHostsCommand || (exports.BulkEnableHostsCommand = BulkEnableHostsCommand = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../commands/hosts/bulk/index.ts"],"names":[],"mappings":"AAAA,cAAc,6BAA6B,CAAC;AAC5C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,6BAA6B,CAAC"}
|
|
@@ -15,4 +15,6 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
15
15
|
};
|
|
16
16
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
17
|
__exportStar(require("./delete-many-hosts.command"), exports);
|
|
18
|
+
__exportStar(require("./disable-many-hosts.command"), exports);
|
|
19
|
+
__exportStar(require("./enable-many-hosts.command"), exports);
|
|
18
20
|
__exportStar(require("./update-many-hosts.command"), exports);
|
|
@@ -6,12 +6,12 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
6
6
|
const RequestSchema: z.ZodObject<{
|
|
7
7
|
nodes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
8
8
|
tags: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
9
|
-
path: z.ZodOptional<z.ZodOptional<z.ZodString
|
|
9
|
+
path: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
10
10
|
port: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
|
|
11
11
|
remark: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
12
12
|
address: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
13
|
-
sni: z.ZodOptional<z.ZodOptional<z.ZodString
|
|
14
|
-
host: z.ZodOptional<z.ZodOptional<z.ZodString
|
|
13
|
+
sni: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
14
|
+
host: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
15
15
|
alpn: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodNativeEnum<{
|
|
16
16
|
readonly H3: "h3";
|
|
17
17
|
readonly H2: "h2";
|
|
@@ -21,7 +21,7 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
21
21
|
readonly H3_H2_COMBINED: "h3,h2";
|
|
22
22
|
}>>>>;
|
|
23
23
|
fingerprint: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodString>>>;
|
|
24
|
-
isDisabled: z.ZodOptional<z.
|
|
24
|
+
isDisabled: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
|
|
25
25
|
securityLayer: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<{
|
|
26
26
|
readonly DEFAULT: "DEFAULT";
|
|
27
27
|
readonly TLS: "TLS";
|
|
@@ -73,12 +73,12 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
73
73
|
uuids: string[];
|
|
74
74
|
nodes?: string[] | undefined;
|
|
75
75
|
tags?: string[] | undefined;
|
|
76
|
-
path?: string | undefined;
|
|
76
|
+
path?: string | null | undefined;
|
|
77
77
|
port?: number | undefined;
|
|
78
78
|
remark?: string | undefined;
|
|
79
79
|
address?: string | undefined;
|
|
80
|
-
sni?: string | undefined;
|
|
81
|
-
host?: string | undefined;
|
|
80
|
+
sni?: string | null | undefined;
|
|
81
|
+
host?: string | null | undefined;
|
|
82
82
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
83
83
|
fingerprint?: string | null | undefined;
|
|
84
84
|
isDisabled?: boolean | undefined;
|
|
@@ -108,12 +108,12 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
108
108
|
uuids: string[];
|
|
109
109
|
nodes?: string[] | undefined;
|
|
110
110
|
tags?: string[] | undefined;
|
|
111
|
-
path?: string | undefined;
|
|
111
|
+
path?: string | null | undefined;
|
|
112
112
|
port?: number | undefined;
|
|
113
113
|
remark?: string | undefined;
|
|
114
114
|
address?: string | undefined;
|
|
115
|
-
sni?: string | undefined;
|
|
116
|
-
host?: string | undefined;
|
|
115
|
+
sni?: string | null | undefined;
|
|
116
|
+
host?: string | null | undefined;
|
|
117
117
|
alpn?: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null | undefined;
|
|
118
118
|
fingerprint?: string | null | undefined;
|
|
119
119
|
isDisabled?: boolean | undefined;
|
|
@@ -151,9 +151,16 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
151
151
|
path: z.ZodNullable<z.ZodString>;
|
|
152
152
|
sni: z.ZodNullable<z.ZodString>;
|
|
153
153
|
host: z.ZodNullable<z.ZodString>;
|
|
154
|
-
alpn: z.ZodNullable<z.
|
|
154
|
+
alpn: z.ZodNullable<z.ZodNativeEnum<{
|
|
155
|
+
readonly H3: "h3";
|
|
156
|
+
readonly H2: "h2";
|
|
157
|
+
readonly HTTP_1_1: "http/1.1";
|
|
158
|
+
readonly H_COMBINED: "h2,http/1.1";
|
|
159
|
+
readonly H3_H2_H1_COMBINED: "h3,h2,http/1.1";
|
|
160
|
+
readonly H3_H2_COMBINED: "h3,h2";
|
|
161
|
+
}>>;
|
|
155
162
|
fingerprint: z.ZodNullable<z.ZodString>;
|
|
156
|
-
isDisabled: z.
|
|
163
|
+
isDisabled: z.ZodBoolean;
|
|
157
164
|
securityLayer: z.ZodDefault<z.ZodNativeEnum<{
|
|
158
165
|
readonly DEFAULT: "DEFAULT";
|
|
159
166
|
readonly TLS: "TLS";
|
|
@@ -193,14 +200,14 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
193
200
|
nodes: z.ZodArray<z.ZodString, "many">;
|
|
194
201
|
xrayJsonTemplateUuid: z.ZodNullable<z.ZodString>;
|
|
195
202
|
excludedInternalSquads: z.ZodArray<z.ZodString, "many">;
|
|
196
|
-
excludeFromSubscriptionTypes: z.
|
|
203
|
+
excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
|
|
197
204
|
readonly XRAY_JSON: "XRAY_JSON";
|
|
198
205
|
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
199
206
|
readonly MIHOMO: "MIHOMO";
|
|
200
207
|
readonly STASH: "STASH";
|
|
201
208
|
readonly CLASH: "CLASH";
|
|
202
209
|
readonly SINGBOX: "SINGBOX";
|
|
203
|
-
}>, "many"
|
|
210
|
+
}>, "many">;
|
|
204
211
|
}, "strip", z.ZodTypeAny, {
|
|
205
212
|
nodes: string[];
|
|
206
213
|
tags: string[];
|
|
@@ -212,7 +219,7 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
212
219
|
address: string;
|
|
213
220
|
sni: string | null;
|
|
214
221
|
host: string | null;
|
|
215
|
-
alpn:
|
|
222
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
216
223
|
fingerprint: string | null;
|
|
217
224
|
isDisabled: boolean;
|
|
218
225
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
|
@@ -232,11 +239,11 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
232
239
|
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
233
240
|
xrayJsonTemplateUuid: string | null;
|
|
234
241
|
excludedInternalSquads: string[];
|
|
242
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
235
243
|
xHttpExtraParams?: unknown;
|
|
236
244
|
muxParams?: unknown;
|
|
237
245
|
sockoptParams?: unknown;
|
|
238
246
|
finalMask?: unknown;
|
|
239
|
-
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
240
247
|
}, {
|
|
241
248
|
nodes: string[];
|
|
242
249
|
path: string | null;
|
|
@@ -247,8 +254,9 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
247
254
|
address: string;
|
|
248
255
|
sni: string | null;
|
|
249
256
|
host: string | null;
|
|
250
|
-
alpn:
|
|
257
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
251
258
|
fingerprint: string | null;
|
|
259
|
+
isDisabled: boolean;
|
|
252
260
|
inbound: {
|
|
253
261
|
configProfileUuid: string | null;
|
|
254
262
|
configProfileInboundUuid: string | null;
|
|
@@ -262,8 +270,8 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
262
270
|
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
263
271
|
xrayJsonTemplateUuid: string | null;
|
|
264
272
|
excludedInternalSquads: string[];
|
|
273
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
265
274
|
tags?: string[] | undefined;
|
|
266
|
-
isDisabled?: boolean | undefined;
|
|
267
275
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
268
276
|
xHttpExtraParams?: unknown;
|
|
269
277
|
muxParams?: unknown;
|
|
@@ -272,7 +280,6 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
272
280
|
isHidden?: boolean | undefined;
|
|
273
281
|
overrideSniFromAddress?: boolean | undefined;
|
|
274
282
|
keepSniBlank?: boolean | undefined;
|
|
275
|
-
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
276
283
|
}>, "many">;
|
|
277
284
|
}, "strip", z.ZodTypeAny, {
|
|
278
285
|
response: {
|
|
@@ -286,7 +293,7 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
286
293
|
address: string;
|
|
287
294
|
sni: string | null;
|
|
288
295
|
host: string | null;
|
|
289
|
-
alpn:
|
|
296
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
290
297
|
fingerprint: string | null;
|
|
291
298
|
isDisabled: boolean;
|
|
292
299
|
securityLayer: "DEFAULT" | "TLS" | "NONE";
|
|
@@ -306,11 +313,11 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
306
313
|
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
307
314
|
xrayJsonTemplateUuid: string | null;
|
|
308
315
|
excludedInternalSquads: string[];
|
|
316
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
309
317
|
xHttpExtraParams?: unknown;
|
|
310
318
|
muxParams?: unknown;
|
|
311
319
|
sockoptParams?: unknown;
|
|
312
320
|
finalMask?: unknown;
|
|
313
|
-
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
314
321
|
}[];
|
|
315
322
|
}, {
|
|
316
323
|
response: {
|
|
@@ -323,8 +330,9 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
323
330
|
address: string;
|
|
324
331
|
sni: string | null;
|
|
325
332
|
host: string | null;
|
|
326
|
-
alpn:
|
|
333
|
+
alpn: "h3" | "h2" | "http/1.1" | "h2,http/1.1" | "h3,h2,http/1.1" | "h3,h2" | null;
|
|
327
334
|
fingerprint: string | null;
|
|
335
|
+
isDisabled: boolean;
|
|
328
336
|
inbound: {
|
|
329
337
|
configProfileUuid: string | null;
|
|
330
338
|
configProfileInboundUuid: string | null;
|
|
@@ -338,8 +346,8 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
338
346
|
mihomoIpVersion: "dual" | "ipv4" | "ipv6" | "ipv4-prefer" | "ipv6-prefer" | null;
|
|
339
347
|
xrayJsonTemplateUuid: string | null;
|
|
340
348
|
excludedInternalSquads: string[];
|
|
349
|
+
excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
|
|
341
350
|
tags?: string[] | undefined;
|
|
342
|
-
isDisabled?: boolean | undefined;
|
|
343
351
|
securityLayer?: "DEFAULT" | "TLS" | "NONE" | undefined;
|
|
344
352
|
xHttpExtraParams?: unknown;
|
|
345
353
|
muxParams?: unknown;
|
|
@@ -348,7 +356,6 @@ export declare namespace UpdateManyHostsCommand {
|
|
|
348
356
|
isHidden?: boolean | undefined;
|
|
349
357
|
overrideSniFromAddress?: boolean | undefined;
|
|
350
358
|
keepSniBlank?: boolean | undefined;
|
|
351
|
-
excludeFromSubscriptionTypes?: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[] | undefined;
|
|
352
359
|
}[];
|
|
353
360
|
}>;
|
|
354
361
|
type Response = z.infer<typeof ResponseSchema>;
|
|
@@ -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,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIpB,CAAC;IACP,KAAY,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;IAE7C,MAAM,cAAc
|
|
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,8CAI3B,CAAC;IAEK,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAIpB,CAAC;IACP,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"}
|