surgio 3.7.0 → 3.8.0
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/bin/dev +0 -0
- package/build/base-command.js +1 -1
- package/build/base-command.js.map +1 -1
- package/build/commands/check.js +1 -1
- package/build/commands/check.js.map +1 -1
- package/build/commands/clean-cache.js +1 -1
- package/build/commands/clean-cache.js.map +1 -1
- package/build/commands/generate.js +1 -1
- package/build/commands/generate.js.map +1 -1
- package/build/commands/new.js +1 -1
- package/build/commands/new.js.map +1 -1
- package/build/commands/upload.js +1 -1
- package/build/commands/upload.js.map +1 -1
- package/build/config.d.ts +1 -1
- package/build/config.js +3 -2
- package/build/config.js.map +1 -1
- package/build/configurables.d.ts +1 -0
- package/build/filters/filters.js.map +1 -1
- package/build/filters/utils.js.map +1 -1
- package/build/generator/artifact.js +20 -10
- package/build/generator/artifact.js.map +1 -1
- package/build/generator/json-template.js +1 -1
- package/build/generator/json-template.js.map +1 -1
- package/build/generator/template.js +1 -1
- package/build/generator/template.js.map +1 -1
- package/build/provider/BlackSSLProvider.js +1 -1
- package/build/provider/BlackSSLProvider.js.map +1 -1
- package/build/provider/ClashProvider.js.map +1 -1
- package/build/provider/CustomProvider.js +1 -1
- package/build/provider/CustomProvider.js.map +1 -1
- package/build/provider/Provider.js.map +1 -1
- package/build/provider/ShadowsocksJsonSubscribeProvider.js.map +1 -1
- package/build/provider/ShadowsocksSubscribeProvider.js.map +1 -1
- package/build/provider/ShadowsocksrSubscribeProvider.js +1 -1
- package/build/provider/ShadowsocksrSubscribeProvider.js.map +1 -1
- package/build/provider/SsdProvider.js +1 -1
- package/build/provider/SsdProvider.js.map +1 -1
- package/build/provider/TrojanProvider.js.map +1 -1
- package/build/provider/V2rayNSubscribeProvider.js +1 -1
- package/build/provider/V2rayNSubscribeProvider.js.map +1 -1
- package/build/provider/index.js.map +1 -1
- package/build/types.d.ts +1 -8
- package/build/types.js.map +1 -1
- package/build/utils/cache.js.map +1 -1
- package/build/utils/clash.js.map +1 -1
- package/build/utils/dns.js +1 -1
- package/build/utils/doctor.js +2 -2
- package/build/utils/doctor.js.map +1 -1
- package/build/utils/error-helper.js.map +1 -1
- package/build/utils/http-client.js.map +1 -1
- package/build/utils/index.js +5 -5
- package/build/utils/index.js.map +1 -1
- package/build/utils/loon.js +1 -1
- package/build/utils/loon.js.map +1 -1
- package/build/utils/quantumult.js.map +1 -1
- package/build/utils/remote-snippet.js +1 -1
- package/build/utils/remote-snippet.js.map +1 -1
- package/build/utils/singbox.js +1 -1
- package/build/utils/singbox.js.map +1 -1
- package/build/utils/ss.js +1 -1
- package/build/utils/ss.js.map +1 -1
- package/build/utils/ssr.js.map +1 -1
- package/build/utils/surfboard.js +1 -1
- package/build/utils/surfboard.js.map +1 -1
- package/build/utils/surge.js +5 -2
- package/build/utils/surge.js.map +1 -1
- package/build/utils/tmp-helper.js +1 -1
- package/build/utils/tmp-helper.js.map +1 -1
- package/build/utils/trojan.js +1 -1
- package/build/utils/trojan.js.map +1 -1
- package/build/validators/common.d.ts +69 -45
- package/build/validators/common.js +4 -0
- package/build/validators/common.js.map +1 -1
- package/build/validators/http.d.ts +125 -101
- package/build/validators/http.js.map +1 -1
- package/build/validators/hysteria2.d.ts +63 -51
- package/build/validators/hysteria2.js.map +1 -1
- package/build/validators/provider.js.map +1 -1
- package/build/validators/shadowsocks.d.ts +59 -47
- package/build/validators/shadowsocks.js.map +1 -1
- package/build/validators/shadowsocksr.d.ts +59 -47
- package/build/validators/shadowsocksr.js.map +1 -1
- package/build/validators/snell.d.ts +57 -45
- package/build/validators/snell.js.map +1 -1
- package/build/validators/socks5.d.ts +61 -49
- package/build/validators/socks5.js.map +1 -1
- package/build/validators/surgio-config.d.ts +3 -0
- package/build/validators/surgio-config.js +1 -0
- package/build/validators/surgio-config.js.map +1 -1
- package/build/validators/trojan.d.ts +63 -51
- package/build/validators/trojan.js.map +1 -1
- package/build/validators/tuic.d.ts +248 -200
- package/build/validators/tuic.js.map +1 -1
- package/build/validators/vless.d.ts +60 -48
- package/build/validators/vless.js.map +1 -1
- package/build/validators/vmess.d.ts +57 -45
- package/build/validators/vmess.js.map +1 -1
- package/build/validators/wireguard.d.ts +63 -51
- package/build/validators/wireguard.js.map +1 -1
- package/package.json +26 -25
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
nodeName: z.ZodString;
|
|
5
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
11
|
+
password: z.ZodString;
|
|
12
|
+
sni: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
password: string;
|
|
15
|
+
sni: string;
|
|
16
|
+
version?: string | number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
password: string;
|
|
19
|
+
sni: string;
|
|
20
|
+
version?: string | number | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
23
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
24
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
4
26
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
27
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
28
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -44,27 +66,9 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
44
66
|
enableVless?: boolean | undefined;
|
|
45
67
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
46
68
|
}>>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
51
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
52
|
-
nodeName: z.ZodString;
|
|
53
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
56
|
-
password: z.ZodString;
|
|
57
|
-
sni: z.ZodString;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
password: string;
|
|
60
|
-
sni: string;
|
|
61
|
-
version?: string | number | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
password: string;
|
|
64
|
-
sni: string;
|
|
65
|
-
version?: string | number | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
70
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
71
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
68
72
|
type: z.ZodLiteral<NodeTypeEnum.HTTP>;
|
|
69
73
|
hostname: z.ZodString;
|
|
70
74
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
@@ -75,10 +79,23 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
75
79
|
}, "strip", z.ZodTypeAny, {
|
|
76
80
|
port: string | number;
|
|
77
81
|
type: NodeTypeEnum.HTTP;
|
|
78
|
-
username: string;
|
|
79
|
-
password: string;
|
|
80
82
|
nodeName: string;
|
|
83
|
+
password: string;
|
|
81
84
|
hostname: string;
|
|
85
|
+
username: string;
|
|
86
|
+
enable?: boolean | undefined;
|
|
87
|
+
tfo?: boolean | undefined;
|
|
88
|
+
mptcp?: boolean | undefined;
|
|
89
|
+
ecn?: boolean | undefined;
|
|
90
|
+
shadowTls?: {
|
|
91
|
+
password: string;
|
|
92
|
+
sni: string;
|
|
93
|
+
version?: string | number | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
96
|
+
underlyingProxy?: string | undefined;
|
|
97
|
+
testUrl?: string | undefined;
|
|
98
|
+
testTimeout?: number | undefined;
|
|
82
99
|
surgeConfig?: {
|
|
83
100
|
resolveHostname?: boolean | undefined;
|
|
84
101
|
vmessAEAD?: boolean | undefined;
|
|
@@ -96,27 +113,31 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
96
113
|
enableVless?: boolean | undefined;
|
|
97
114
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
98
115
|
} | undefined;
|
|
99
|
-
|
|
116
|
+
hostnameIp?: readonly string[] | undefined;
|
|
117
|
+
binPath?: string | undefined;
|
|
118
|
+
localPort?: number | undefined;
|
|
119
|
+
path?: string | undefined;
|
|
120
|
+
headers?: Record<string, string> | undefined;
|
|
121
|
+
}, {
|
|
122
|
+
port: string | number;
|
|
123
|
+
type: NodeTypeEnum.HTTP;
|
|
124
|
+
nodeName: string;
|
|
125
|
+
password: string;
|
|
126
|
+
hostname: string;
|
|
127
|
+
username: string;
|
|
128
|
+
enable?: boolean | undefined;
|
|
100
129
|
tfo?: boolean | undefined;
|
|
130
|
+
mptcp?: boolean | undefined;
|
|
101
131
|
ecn?: boolean | undefined;
|
|
102
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
103
|
-
underlyingProxy?: string | undefined;
|
|
104
|
-
enable?: boolean | undefined;
|
|
105
132
|
shadowTls?: {
|
|
106
133
|
password: string;
|
|
107
134
|
sni: string;
|
|
108
135
|
version?: string | number | undefined;
|
|
109
136
|
} | undefined;
|
|
137
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
138
|
+
underlyingProxy?: string | undefined;
|
|
110
139
|
testUrl?: string | undefined;
|
|
111
|
-
|
|
112
|
-
headers?: Record<string, string> | undefined;
|
|
113
|
-
}, {
|
|
114
|
-
port: string | number;
|
|
115
|
-
type: NodeTypeEnum.HTTP;
|
|
116
|
-
username: string;
|
|
117
|
-
password: string;
|
|
118
|
-
nodeName: string;
|
|
119
|
-
hostname: string;
|
|
140
|
+
testTimeout?: number | undefined;
|
|
120
141
|
surgeConfig?: {
|
|
121
142
|
resolveHostname?: boolean | undefined;
|
|
122
143
|
vmessAEAD?: boolean | undefined;
|
|
@@ -134,23 +155,37 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
134
155
|
enableVless?: boolean | undefined;
|
|
135
156
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
136
157
|
} | undefined;
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
141
|
-
underlyingProxy?: string | undefined;
|
|
142
|
-
enable?: boolean | undefined;
|
|
143
|
-
shadowTls?: {
|
|
144
|
-
password: string;
|
|
145
|
-
sni: string;
|
|
146
|
-
version?: string | number | undefined;
|
|
147
|
-
} | undefined;
|
|
148
|
-
testUrl?: string | undefined;
|
|
158
|
+
hostnameIp?: string[] | undefined;
|
|
159
|
+
binPath?: string | undefined;
|
|
160
|
+
localPort?: number | undefined;
|
|
149
161
|
path?: string | undefined;
|
|
150
162
|
headers?: Record<string, string> | undefined;
|
|
151
163
|
}>;
|
|
152
164
|
export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
153
165
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
166
|
+
nodeName: z.ZodString;
|
|
167
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
169
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
170
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
171
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
172
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
173
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
174
|
+
password: z.ZodString;
|
|
175
|
+
sni: z.ZodString;
|
|
176
|
+
}, "strip", z.ZodTypeAny, {
|
|
177
|
+
password: string;
|
|
178
|
+
sni: string;
|
|
179
|
+
version?: string | number | undefined;
|
|
180
|
+
}, {
|
|
181
|
+
password: string;
|
|
182
|
+
sni: string;
|
|
183
|
+
version?: string | number | undefined;
|
|
184
|
+
}>>;
|
|
185
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
186
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
187
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
188
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
154
189
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
155
190
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
156
191
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -194,30 +229,11 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
194
229
|
enableVless?: boolean | undefined;
|
|
195
230
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
196
231
|
}>>;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
201
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
202
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
203
|
-
nodeName: z.ZodString;
|
|
204
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
206
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
207
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
208
|
-
password: z.ZodString;
|
|
209
|
-
sni: z.ZodString;
|
|
210
|
-
}, "strip", z.ZodTypeAny, {
|
|
211
|
-
password: string;
|
|
212
|
-
sni: string;
|
|
213
|
-
version?: string | number | undefined;
|
|
214
|
-
}, {
|
|
215
|
-
password: string;
|
|
216
|
-
sni: string;
|
|
217
|
-
version?: string | number | undefined;
|
|
218
|
-
}>>;
|
|
219
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
232
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
233
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
234
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
220
235
|
hostname: z.ZodString;
|
|
236
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
221
237
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
222
238
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
223
239
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -230,10 +246,24 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
230
246
|
}, "strip", z.ZodTypeAny, {
|
|
231
247
|
port: string | number;
|
|
232
248
|
type: NodeTypeEnum.HTTPS;
|
|
233
|
-
username: string;
|
|
234
|
-
password: string;
|
|
235
249
|
nodeName: string;
|
|
250
|
+
password: string;
|
|
236
251
|
hostname: string;
|
|
252
|
+
username: string;
|
|
253
|
+
enable?: boolean | undefined;
|
|
254
|
+
tfo?: boolean | undefined;
|
|
255
|
+
mptcp?: boolean | undefined;
|
|
256
|
+
ecn?: boolean | undefined;
|
|
257
|
+
sni?: string | undefined;
|
|
258
|
+
shadowTls?: {
|
|
259
|
+
password: string;
|
|
260
|
+
sni: string;
|
|
261
|
+
version?: string | number | undefined;
|
|
262
|
+
} | undefined;
|
|
263
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
264
|
+
underlyingProxy?: string | undefined;
|
|
265
|
+
testUrl?: string | undefined;
|
|
266
|
+
testTimeout?: number | undefined;
|
|
237
267
|
surgeConfig?: {
|
|
238
268
|
resolveHostname?: boolean | undefined;
|
|
239
269
|
vmessAEAD?: boolean | undefined;
|
|
@@ -251,20 +281,10 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
251
281
|
enableVless?: boolean | undefined;
|
|
252
282
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
253
283
|
} | undefined;
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
258
|
-
underlyingProxy?: string | undefined;
|
|
284
|
+
hostnameIp?: readonly string[] | undefined;
|
|
285
|
+
binPath?: string | undefined;
|
|
286
|
+
localPort?: number | undefined;
|
|
259
287
|
tls13?: boolean | undefined;
|
|
260
|
-
enable?: boolean | undefined;
|
|
261
|
-
sni?: string | undefined;
|
|
262
|
-
shadowTls?: {
|
|
263
|
-
password: string;
|
|
264
|
-
sni: string;
|
|
265
|
-
version?: string | number | undefined;
|
|
266
|
-
} | undefined;
|
|
267
|
-
testUrl?: string | undefined;
|
|
268
288
|
skipCertVerify?: boolean | undefined;
|
|
269
289
|
alpn?: [string, ...string[]] | undefined;
|
|
270
290
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -274,10 +294,24 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
274
294
|
}, {
|
|
275
295
|
port: string | number;
|
|
276
296
|
type: NodeTypeEnum.HTTPS;
|
|
277
|
-
username: string;
|
|
278
|
-
password: string;
|
|
279
297
|
nodeName: string;
|
|
298
|
+
password: string;
|
|
280
299
|
hostname: string;
|
|
300
|
+
username: string;
|
|
301
|
+
enable?: boolean | undefined;
|
|
302
|
+
tfo?: boolean | undefined;
|
|
303
|
+
mptcp?: boolean | undefined;
|
|
304
|
+
ecn?: boolean | undefined;
|
|
305
|
+
sni?: string | undefined;
|
|
306
|
+
shadowTls?: {
|
|
307
|
+
password: string;
|
|
308
|
+
sni: string;
|
|
309
|
+
version?: string | number | undefined;
|
|
310
|
+
} | undefined;
|
|
311
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
312
|
+
underlyingProxy?: string | undefined;
|
|
313
|
+
testUrl?: string | undefined;
|
|
314
|
+
testTimeout?: number | undefined;
|
|
281
315
|
surgeConfig?: {
|
|
282
316
|
resolveHostname?: boolean | undefined;
|
|
283
317
|
vmessAEAD?: boolean | undefined;
|
|
@@ -295,20 +329,10 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
295
329
|
enableVless?: boolean | undefined;
|
|
296
330
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
297
331
|
} | undefined;
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
302
|
-
underlyingProxy?: string | undefined;
|
|
332
|
+
hostnameIp?: string[] | undefined;
|
|
333
|
+
binPath?: string | undefined;
|
|
334
|
+
localPort?: number | undefined;
|
|
303
335
|
tls13?: boolean | undefined;
|
|
304
|
-
enable?: boolean | undefined;
|
|
305
|
-
sni?: string | undefined;
|
|
306
|
-
shadowTls?: {
|
|
307
|
-
password: string;
|
|
308
|
-
sni: string;
|
|
309
|
-
version?: string | number | undefined;
|
|
310
|
-
} | undefined;
|
|
311
|
-
testUrl?: string | undefined;
|
|
312
336
|
skipCertVerify?: boolean | undefined;
|
|
313
337
|
alpn?: [string, ...string[]] | undefined;
|
|
314
338
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/validators/http.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"http.js","sourceRoot":"","sources":["../../src/validators/http.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAIiB;AAEJ,QAAA,uBAAuB,GAAG,kCAAyB,CAAC,MAAM,CAAC;IACtE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,IAAI,CAAC;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sBAAa;IACnB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA;AAEW,QAAA,wBAAwB,GAAG,+BAAsB,CAAC,MAAM,CAAC;IACpE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,KAAK,CAAC;IACnC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|
|
@@ -2,6 +2,29 @@ import { z } from 'zod';
|
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
4
4
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
5
|
+
nodeName: z.ZodString;
|
|
6
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
10
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
11
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
13
|
+
password: z.ZodString;
|
|
14
|
+
sni: z.ZodString;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
password: string;
|
|
17
|
+
sni: string;
|
|
18
|
+
version?: string | number | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
password: string;
|
|
21
|
+
sni: string;
|
|
22
|
+
version?: string | number | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
25
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
26
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
27
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
5
28
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
6
29
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
7
30
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -45,30 +68,11 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
45
68
|
enableVless?: boolean | undefined;
|
|
46
69
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
47
70
|
}>>;
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
52
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
53
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
nodeName: z.ZodString;
|
|
55
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
57
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
58
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
59
|
-
password: z.ZodString;
|
|
60
|
-
sni: z.ZodString;
|
|
61
|
-
}, "strip", z.ZodTypeAny, {
|
|
62
|
-
password: string;
|
|
63
|
-
sni: string;
|
|
64
|
-
version?: string | number | undefined;
|
|
65
|
-
}, {
|
|
66
|
-
password: string;
|
|
67
|
-
sni: string;
|
|
68
|
-
version?: string | number | undefined;
|
|
69
|
-
}>>;
|
|
70
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
71
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
73
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
71
74
|
hostname: z.ZodString;
|
|
75
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
72
76
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
73
77
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
74
78
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -82,9 +86,23 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
82
86
|
}, "strip", z.ZodTypeAny, {
|
|
83
87
|
port: string | number;
|
|
84
88
|
type: NodeTypeEnum.Hysteria2;
|
|
85
|
-
password: string;
|
|
86
89
|
nodeName: string;
|
|
90
|
+
password: string;
|
|
87
91
|
hostname: string;
|
|
92
|
+
enable?: boolean | undefined;
|
|
93
|
+
tfo?: boolean | undefined;
|
|
94
|
+
mptcp?: boolean | undefined;
|
|
95
|
+
ecn?: boolean | undefined;
|
|
96
|
+
sni?: string | undefined;
|
|
97
|
+
shadowTls?: {
|
|
98
|
+
password: string;
|
|
99
|
+
sni: string;
|
|
100
|
+
version?: string | number | undefined;
|
|
101
|
+
} | undefined;
|
|
102
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
103
|
+
underlyingProxy?: string | undefined;
|
|
104
|
+
testUrl?: string | undefined;
|
|
105
|
+
testTimeout?: number | undefined;
|
|
88
106
|
surgeConfig?: {
|
|
89
107
|
resolveHostname?: boolean | undefined;
|
|
90
108
|
vmessAEAD?: boolean | undefined;
|
|
@@ -102,20 +120,10 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
102
120
|
enableVless?: boolean | undefined;
|
|
103
121
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
104
122
|
} | undefined;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
109
|
-
underlyingProxy?: string | undefined;
|
|
123
|
+
hostnameIp?: readonly string[] | undefined;
|
|
124
|
+
binPath?: string | undefined;
|
|
125
|
+
localPort?: number | undefined;
|
|
110
126
|
tls13?: boolean | undefined;
|
|
111
|
-
enable?: boolean | undefined;
|
|
112
|
-
sni?: string | undefined;
|
|
113
|
-
shadowTls?: {
|
|
114
|
-
password: string;
|
|
115
|
-
sni: string;
|
|
116
|
-
version?: string | number | undefined;
|
|
117
|
-
} | undefined;
|
|
118
|
-
testUrl?: string | undefined;
|
|
119
127
|
skipCertVerify?: boolean | undefined;
|
|
120
128
|
alpn?: [string, ...string[]] | undefined;
|
|
121
129
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -127,9 +135,23 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
127
135
|
}, {
|
|
128
136
|
port: string | number;
|
|
129
137
|
type: NodeTypeEnum.Hysteria2;
|
|
130
|
-
password: string;
|
|
131
138
|
nodeName: string;
|
|
139
|
+
password: string;
|
|
132
140
|
hostname: string;
|
|
141
|
+
enable?: boolean | undefined;
|
|
142
|
+
tfo?: boolean | undefined;
|
|
143
|
+
mptcp?: boolean | undefined;
|
|
144
|
+
ecn?: boolean | undefined;
|
|
145
|
+
sni?: string | undefined;
|
|
146
|
+
shadowTls?: {
|
|
147
|
+
password: string;
|
|
148
|
+
sni: string;
|
|
149
|
+
version?: string | number | undefined;
|
|
150
|
+
} | undefined;
|
|
151
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
152
|
+
underlyingProxy?: string | undefined;
|
|
153
|
+
testUrl?: string | undefined;
|
|
154
|
+
testTimeout?: number | undefined;
|
|
133
155
|
surgeConfig?: {
|
|
134
156
|
resolveHostname?: boolean | undefined;
|
|
135
157
|
vmessAEAD?: boolean | undefined;
|
|
@@ -147,20 +169,10 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
147
169
|
enableVless?: boolean | undefined;
|
|
148
170
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
149
171
|
} | undefined;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
154
|
-
underlyingProxy?: string | undefined;
|
|
172
|
+
hostnameIp?: string[] | undefined;
|
|
173
|
+
binPath?: string | undefined;
|
|
174
|
+
localPort?: number | undefined;
|
|
155
175
|
tls13?: boolean | undefined;
|
|
156
|
-
enable?: boolean | undefined;
|
|
157
|
-
sni?: string | undefined;
|
|
158
|
-
shadowTls?: {
|
|
159
|
-
password: string;
|
|
160
|
-
sni: string;
|
|
161
|
-
version?: string | number | undefined;
|
|
162
|
-
} | undefined;
|
|
163
|
-
testUrl?: string | undefined;
|
|
164
176
|
skipCertVerify?: boolean | undefined;
|
|
165
177
|
alpn?: [string, ...string[]] | undefined;
|
|
166
178
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"hysteria2.js","sourceRoot":"","sources":["../../src/validators/hysteria2.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"hysteria2.js","sourceRoot":"","sources":["../../src/validators/hysteria2.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAAiD;AAEpC,QAAA,4BAA4B,GAAG,+BAAsB,CAAC,MAAM,CAAC;IACxE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,SAAS,CAAC;IACvC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,iBAAiB,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACxC,eAAe,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACtC,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,YAAY,CAAC,CAAC,QAAQ,EAAE;IACxC,YAAY,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/validators/provider.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAA8C;
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/validators/provider.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAA8C;AAE9C,qCAGiB;AACjB,mCAGgB;AAEH,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,QAAQ,EAAE;IACrB,kBAAkB,EAAE,OAAC,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,QAAQ,EAAE;IACnB,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,SAAS,EAAE,OAAC;SACT,KAAK,CAAC,CAAC,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC,EAAE,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,CAAC;SAC7D,QAAQ,EAAE;IACb,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC7B,UAAU,EAAE,OAAC;SACV,QAAQ,EAAE;SACV,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SAChB,OAAO,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACvD,QAAQ,EAAE;IACb,aAAa,EAAE,OAAC;SACb,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;IACb,UAAU,EAAE,OAAC;SACV,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,oBAAoB,EAAE,OAAC;SACpB,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,qBAAqB,EAAE,0CAAkC,CAAC,QAAQ,EAAE;QACpE,OAAO,EAAE,4BAAoB,CAAC,QAAQ,EAAE;KACzC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1,6 +1,28 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
nodeName: z.ZodString;
|
|
5
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
9
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
10
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
11
|
+
password: z.ZodString;
|
|
12
|
+
sni: z.ZodString;
|
|
13
|
+
}, "strip", z.ZodTypeAny, {
|
|
14
|
+
password: string;
|
|
15
|
+
sni: string;
|
|
16
|
+
version?: string | number | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
password: string;
|
|
19
|
+
sni: string;
|
|
20
|
+
version?: string | number | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
23
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
24
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
25
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
4
26
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
27
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
28
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -44,27 +66,9 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
44
66
|
enableVless?: boolean | undefined;
|
|
45
67
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
46
68
|
}>>;
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
51
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
52
|
-
nodeName: z.ZodString;
|
|
53
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
54
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
55
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
56
|
-
password: z.ZodString;
|
|
57
|
-
sni: z.ZodString;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
password: string;
|
|
60
|
-
sni: string;
|
|
61
|
-
version?: string | number | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
password: string;
|
|
64
|
-
sni: string;
|
|
65
|
-
version?: string | number | undefined;
|
|
66
|
-
}>>;
|
|
67
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
69
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
70
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
71
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
68
72
|
type: z.ZodLiteral<NodeTypeEnum.Shadowsocks>;
|
|
69
73
|
hostname: z.ZodString;
|
|
70
74
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
@@ -118,10 +122,23 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
118
122
|
}, "strip", z.ZodTypeAny, {
|
|
119
123
|
port: string | number;
|
|
120
124
|
type: NodeTypeEnum.Shadowsocks;
|
|
121
|
-
password: string;
|
|
122
125
|
nodeName: string;
|
|
126
|
+
password: string;
|
|
123
127
|
hostname: string;
|
|
124
128
|
method: string;
|
|
129
|
+
enable?: boolean | undefined;
|
|
130
|
+
tfo?: boolean | undefined;
|
|
131
|
+
mptcp?: boolean | undefined;
|
|
132
|
+
ecn?: boolean | undefined;
|
|
133
|
+
shadowTls?: {
|
|
134
|
+
password: string;
|
|
135
|
+
sni: string;
|
|
136
|
+
version?: string | number | undefined;
|
|
137
|
+
} | undefined;
|
|
138
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
139
|
+
underlyingProxy?: string | undefined;
|
|
140
|
+
testUrl?: string | undefined;
|
|
141
|
+
testTimeout?: number | undefined;
|
|
125
142
|
surgeConfig?: {
|
|
126
143
|
resolveHostname?: boolean | undefined;
|
|
127
144
|
vmessAEAD?: boolean | undefined;
|
|
@@ -139,18 +156,9 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
139
156
|
enableVless?: boolean | undefined;
|
|
140
157
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
141
158
|
} | undefined;
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
146
|
-
underlyingProxy?: string | undefined;
|
|
147
|
-
enable?: boolean | undefined;
|
|
148
|
-
shadowTls?: {
|
|
149
|
-
password: string;
|
|
150
|
-
sni: string;
|
|
151
|
-
version?: string | number | undefined;
|
|
152
|
-
} | undefined;
|
|
153
|
-
testUrl?: string | undefined;
|
|
159
|
+
hostnameIp?: readonly string[] | undefined;
|
|
160
|
+
binPath?: string | undefined;
|
|
161
|
+
localPort?: number | undefined;
|
|
154
162
|
udpRelay?: boolean | undefined;
|
|
155
163
|
obfs?: "http" | "ws" | "tls" | "wss" | "quic" | undefined;
|
|
156
164
|
obfsHost?: string | undefined;
|
|
@@ -173,10 +181,23 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
173
181
|
}, {
|
|
174
182
|
port: string | number;
|
|
175
183
|
type: NodeTypeEnum.Shadowsocks;
|
|
176
|
-
password: string;
|
|
177
184
|
nodeName: string;
|
|
185
|
+
password: string;
|
|
178
186
|
hostname: string;
|
|
179
187
|
method: string;
|
|
188
|
+
enable?: boolean | undefined;
|
|
189
|
+
tfo?: boolean | undefined;
|
|
190
|
+
mptcp?: boolean | undefined;
|
|
191
|
+
ecn?: boolean | undefined;
|
|
192
|
+
shadowTls?: {
|
|
193
|
+
password: string;
|
|
194
|
+
sni: string;
|
|
195
|
+
version?: string | number | undefined;
|
|
196
|
+
} | undefined;
|
|
197
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
198
|
+
underlyingProxy?: string | undefined;
|
|
199
|
+
testUrl?: string | undefined;
|
|
200
|
+
testTimeout?: number | undefined;
|
|
180
201
|
surgeConfig?: {
|
|
181
202
|
resolveHostname?: boolean | undefined;
|
|
182
203
|
vmessAEAD?: boolean | undefined;
|
|
@@ -194,18 +215,9 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
194
215
|
enableVless?: boolean | undefined;
|
|
195
216
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
196
217
|
} | undefined;
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
201
|
-
underlyingProxy?: string | undefined;
|
|
202
|
-
enable?: boolean | undefined;
|
|
203
|
-
shadowTls?: {
|
|
204
|
-
password: string;
|
|
205
|
-
sni: string;
|
|
206
|
-
version?: string | number | undefined;
|
|
207
|
-
} | undefined;
|
|
208
|
-
testUrl?: string | undefined;
|
|
218
|
+
hostnameIp?: string[] | undefined;
|
|
219
|
+
binPath?: string | undefined;
|
|
220
|
+
localPort?: number | undefined;
|
|
209
221
|
udpRelay?: boolean | undefined;
|
|
210
222
|
obfs?: "http" | "ws" | "tls" | "wss" | "quic" | undefined;
|
|
211
223
|
obfsHost?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shadowsocks.js","sourceRoot":"","sources":["../../src/validators/shadowsocks.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"shadowsocks.js","sourceRoot":"","sources":["../../src/validators/shadowsocks.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAIiB;AAEJ,QAAA,8BAA8B,GAAG,kCAAyB,CAAC,MAAM,CAAC;IAC7E,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,WAAW,CAAC;IACzC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,sBAAa;IACnB,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE;IAClB,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,OAAC,CAAC,QAAQ,EAAE;IACtB,IAAI,EAAE,OAAC;SACJ,KAAK,CAAC;QACL,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAChB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;QACjB,OAAC,CAAC,OAAO,CAAC,IAAI,CAAC;QACf,OAAC,CAAC,OAAO,CAAC,KAAK,CAAC;QAChB,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;KAClB,CAAC;SACD,QAAQ,EAAE;IACb,QAAQ,EAAE,OAAC,CAAC,OAAO,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;IACpB,cAAc,EAAE,OAAC,CAAC,QAAQ,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC1C,KAAK,EAAE,OAAC,CAAC,QAAQ,EAAE;IACnB,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,SAAS,EAAE,2BAAkB,CAAC,QAAQ,EAAE;CACzC,CAAC,CAAA"}
|