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
|
@@ -2,6 +2,29 @@ import { z } from 'zod';
|
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const TuicNodeV5ConfigValidator: 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 TuicNodeV5ConfigValidator: 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>;
|
|
@@ -80,11 +84,25 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
80
84
|
}, "strip", z.ZodTypeAny, {
|
|
81
85
|
port: string | number;
|
|
82
86
|
type: NodeTypeEnum.Tuic;
|
|
83
|
-
password: string;
|
|
84
87
|
nodeName: string;
|
|
85
88
|
version: string | number;
|
|
89
|
+
password: string;
|
|
86
90
|
hostname: string;
|
|
87
91
|
uuid: 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 TuicNodeV5ConfigValidator: 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;
|
|
@@ -123,11 +131,25 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
123
131
|
}, {
|
|
124
132
|
port: string | number;
|
|
125
133
|
type: NodeTypeEnum.Tuic;
|
|
126
|
-
password: string;
|
|
127
134
|
nodeName: string;
|
|
128
135
|
version: string | number;
|
|
136
|
+
password: string;
|
|
129
137
|
hostname: string;
|
|
130
138
|
uuid: string;
|
|
139
|
+
enable?: boolean | undefined;
|
|
140
|
+
tfo?: boolean | undefined;
|
|
141
|
+
mptcp?: boolean | undefined;
|
|
142
|
+
ecn?: boolean | undefined;
|
|
143
|
+
sni?: string | undefined;
|
|
144
|
+
shadowTls?: {
|
|
145
|
+
password: string;
|
|
146
|
+
sni: string;
|
|
147
|
+
version?: string | number | undefined;
|
|
148
|
+
} | undefined;
|
|
149
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
150
|
+
underlyingProxy?: string | undefined;
|
|
151
|
+
testUrl?: string | undefined;
|
|
152
|
+
testTimeout?: number | undefined;
|
|
131
153
|
surgeConfig?: {
|
|
132
154
|
resolveHostname?: boolean | undefined;
|
|
133
155
|
vmessAEAD?: boolean | undefined;
|
|
@@ -145,20 +167,10 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
145
167
|
enableVless?: boolean | undefined;
|
|
146
168
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
147
169
|
} | undefined;
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
152
|
-
underlyingProxy?: string | undefined;
|
|
170
|
+
hostnameIp?: string[] | undefined;
|
|
171
|
+
binPath?: string | undefined;
|
|
172
|
+
localPort?: number | undefined;
|
|
153
173
|
tls13?: boolean | undefined;
|
|
154
|
-
enable?: boolean | undefined;
|
|
155
|
-
sni?: string | undefined;
|
|
156
|
-
shadowTls?: {
|
|
157
|
-
password: string;
|
|
158
|
-
sni: string;
|
|
159
|
-
version?: string | number | undefined;
|
|
160
|
-
} | undefined;
|
|
161
|
-
testUrl?: string | undefined;
|
|
162
174
|
skipCertVerify?: boolean | undefined;
|
|
163
175
|
alpn?: [string, ...string[]] | undefined;
|
|
164
176
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -166,6 +178,29 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
166
178
|
}>;
|
|
167
179
|
export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
168
180
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
181
|
+
nodeName: z.ZodString;
|
|
182
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
183
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
184
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
185
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
186
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
187
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
188
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
189
|
+
password: z.ZodString;
|
|
190
|
+
sni: z.ZodString;
|
|
191
|
+
}, "strip", z.ZodTypeAny, {
|
|
192
|
+
password: string;
|
|
193
|
+
sni: string;
|
|
194
|
+
version?: string | number | undefined;
|
|
195
|
+
}, {
|
|
196
|
+
password: string;
|
|
197
|
+
sni: string;
|
|
198
|
+
version?: string | number | undefined;
|
|
199
|
+
}>>;
|
|
200
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
201
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
202
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
203
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
169
204
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
170
205
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
171
206
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -209,30 +244,11 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
209
244
|
enableVless?: boolean | undefined;
|
|
210
245
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
211
246
|
}>>;
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
216
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
217
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
218
|
-
nodeName: z.ZodString;
|
|
219
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
220
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
221
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
222
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
223
|
-
password: z.ZodString;
|
|
224
|
-
sni: z.ZodString;
|
|
225
|
-
}, "strip", z.ZodTypeAny, {
|
|
226
|
-
password: string;
|
|
227
|
-
sni: string;
|
|
228
|
-
version?: string | number | undefined;
|
|
229
|
-
}, {
|
|
230
|
-
password: string;
|
|
231
|
-
sni: string;
|
|
232
|
-
version?: string | number | undefined;
|
|
233
|
-
}>>;
|
|
234
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
247
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
248
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
249
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
235
250
|
hostname: z.ZodString;
|
|
251
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
236
252
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
237
253
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
238
254
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -245,6 +261,20 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
245
261
|
nodeName: string;
|
|
246
262
|
hostname: string;
|
|
247
263
|
token: string;
|
|
264
|
+
enable?: boolean | undefined;
|
|
265
|
+
tfo?: boolean | undefined;
|
|
266
|
+
mptcp?: boolean | undefined;
|
|
267
|
+
ecn?: boolean | undefined;
|
|
268
|
+
sni?: string | undefined;
|
|
269
|
+
shadowTls?: {
|
|
270
|
+
password: string;
|
|
271
|
+
sni: string;
|
|
272
|
+
version?: string | number | undefined;
|
|
273
|
+
} | undefined;
|
|
274
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
275
|
+
underlyingProxy?: string | undefined;
|
|
276
|
+
testUrl?: string | undefined;
|
|
277
|
+
testTimeout?: number | undefined;
|
|
248
278
|
surgeConfig?: {
|
|
249
279
|
resolveHostname?: boolean | undefined;
|
|
250
280
|
vmessAEAD?: boolean | undefined;
|
|
@@ -262,20 +292,10 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
262
292
|
enableVless?: boolean | undefined;
|
|
263
293
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
264
294
|
} | undefined;
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
269
|
-
underlyingProxy?: string | undefined;
|
|
295
|
+
hostnameIp?: readonly string[] | undefined;
|
|
296
|
+
binPath?: string | undefined;
|
|
297
|
+
localPort?: number | undefined;
|
|
270
298
|
tls13?: boolean | undefined;
|
|
271
|
-
enable?: boolean | undefined;
|
|
272
|
-
sni?: string | undefined;
|
|
273
|
-
shadowTls?: {
|
|
274
|
-
password: string;
|
|
275
|
-
sni: string;
|
|
276
|
-
version?: string | number | undefined;
|
|
277
|
-
} | undefined;
|
|
278
|
-
testUrl?: string | undefined;
|
|
279
299
|
skipCertVerify?: boolean | undefined;
|
|
280
300
|
alpn?: [string, ...string[]] | undefined;
|
|
281
301
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -286,6 +306,20 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
286
306
|
nodeName: string;
|
|
287
307
|
hostname: string;
|
|
288
308
|
token: string;
|
|
309
|
+
enable?: boolean | undefined;
|
|
310
|
+
tfo?: boolean | undefined;
|
|
311
|
+
mptcp?: boolean | undefined;
|
|
312
|
+
ecn?: boolean | undefined;
|
|
313
|
+
sni?: string | undefined;
|
|
314
|
+
shadowTls?: {
|
|
315
|
+
password: string;
|
|
316
|
+
sni: string;
|
|
317
|
+
version?: string | number | undefined;
|
|
318
|
+
} | undefined;
|
|
319
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
320
|
+
underlyingProxy?: string | undefined;
|
|
321
|
+
testUrl?: string | undefined;
|
|
322
|
+
testTimeout?: number | undefined;
|
|
289
323
|
surgeConfig?: {
|
|
290
324
|
resolveHostname?: boolean | undefined;
|
|
291
325
|
vmessAEAD?: boolean | undefined;
|
|
@@ -303,20 +337,10 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
303
337
|
enableVless?: boolean | undefined;
|
|
304
338
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
305
339
|
} | undefined;
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
310
|
-
underlyingProxy?: string | undefined;
|
|
340
|
+
hostnameIp?: string[] | undefined;
|
|
341
|
+
binPath?: string | undefined;
|
|
342
|
+
localPort?: number | undefined;
|
|
311
343
|
tls13?: boolean | undefined;
|
|
312
|
-
enable?: boolean | undefined;
|
|
313
|
-
sni?: string | undefined;
|
|
314
|
-
shadowTls?: {
|
|
315
|
-
password: string;
|
|
316
|
-
sni: string;
|
|
317
|
-
version?: string | number | undefined;
|
|
318
|
-
} | undefined;
|
|
319
|
-
testUrl?: string | undefined;
|
|
320
344
|
skipCertVerify?: boolean | undefined;
|
|
321
345
|
alpn?: [string, ...string[]] | undefined;
|
|
322
346
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -324,6 +348,29 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
324
348
|
}>;
|
|
325
349
|
export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
326
350
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
351
|
+
nodeName: z.ZodString;
|
|
352
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
353
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
354
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
355
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
356
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
357
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
358
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
359
|
+
password: z.ZodString;
|
|
360
|
+
sni: z.ZodString;
|
|
361
|
+
}, "strip", z.ZodTypeAny, {
|
|
362
|
+
password: string;
|
|
363
|
+
sni: string;
|
|
364
|
+
version?: string | number | undefined;
|
|
365
|
+
}, {
|
|
366
|
+
password: string;
|
|
367
|
+
sni: string;
|
|
368
|
+
version?: string | number | undefined;
|
|
369
|
+
}>>;
|
|
370
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
371
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
372
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
373
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
327
374
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
328
375
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
329
376
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -367,30 +414,11 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
367
414
|
enableVless?: boolean | undefined;
|
|
368
415
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
369
416
|
}>>;
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
374
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
375
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
376
|
-
nodeName: z.ZodString;
|
|
377
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
378
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
379
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
380
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
381
|
-
password: z.ZodString;
|
|
382
|
-
sni: z.ZodString;
|
|
383
|
-
}, "strip", z.ZodTypeAny, {
|
|
384
|
-
password: string;
|
|
385
|
-
sni: string;
|
|
386
|
-
version?: string | number | undefined;
|
|
387
|
-
}, {
|
|
388
|
-
password: string;
|
|
389
|
-
sni: string;
|
|
390
|
-
version?: string | number | undefined;
|
|
391
|
-
}>>;
|
|
392
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
417
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
418
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
419
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
393
420
|
hostname: z.ZodString;
|
|
421
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
394
422
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
395
423
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
396
424
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -403,6 +431,20 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
403
431
|
nodeName: string;
|
|
404
432
|
hostname: string;
|
|
405
433
|
token: string;
|
|
434
|
+
enable?: boolean | undefined;
|
|
435
|
+
tfo?: boolean | undefined;
|
|
436
|
+
mptcp?: boolean | undefined;
|
|
437
|
+
ecn?: boolean | undefined;
|
|
438
|
+
sni?: string | undefined;
|
|
439
|
+
shadowTls?: {
|
|
440
|
+
password: string;
|
|
441
|
+
sni: string;
|
|
442
|
+
version?: string | number | undefined;
|
|
443
|
+
} | undefined;
|
|
444
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
445
|
+
underlyingProxy?: string | undefined;
|
|
446
|
+
testUrl?: string | undefined;
|
|
447
|
+
testTimeout?: number | undefined;
|
|
406
448
|
surgeConfig?: {
|
|
407
449
|
resolveHostname?: boolean | undefined;
|
|
408
450
|
vmessAEAD?: boolean | undefined;
|
|
@@ -420,20 +462,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
420
462
|
enableVless?: boolean | undefined;
|
|
421
463
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
422
464
|
} | undefined;
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
427
|
-
underlyingProxy?: string | undefined;
|
|
465
|
+
hostnameIp?: readonly string[] | undefined;
|
|
466
|
+
binPath?: string | undefined;
|
|
467
|
+
localPort?: number | undefined;
|
|
428
468
|
tls13?: boolean | undefined;
|
|
429
|
-
enable?: boolean | undefined;
|
|
430
|
-
sni?: string | undefined;
|
|
431
|
-
shadowTls?: {
|
|
432
|
-
password: string;
|
|
433
|
-
sni: string;
|
|
434
|
-
version?: string | number | undefined;
|
|
435
|
-
} | undefined;
|
|
436
|
-
testUrl?: string | undefined;
|
|
437
469
|
skipCertVerify?: boolean | undefined;
|
|
438
470
|
alpn?: [string, ...string[]] | undefined;
|
|
439
471
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -444,6 +476,20 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
444
476
|
nodeName: string;
|
|
445
477
|
hostname: string;
|
|
446
478
|
token: string;
|
|
479
|
+
enable?: boolean | undefined;
|
|
480
|
+
tfo?: boolean | undefined;
|
|
481
|
+
mptcp?: boolean | undefined;
|
|
482
|
+
ecn?: boolean | undefined;
|
|
483
|
+
sni?: string | undefined;
|
|
484
|
+
shadowTls?: {
|
|
485
|
+
password: string;
|
|
486
|
+
sni: string;
|
|
487
|
+
version?: string | number | undefined;
|
|
488
|
+
} | undefined;
|
|
489
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
490
|
+
underlyingProxy?: string | undefined;
|
|
491
|
+
testUrl?: string | undefined;
|
|
492
|
+
testTimeout?: number | undefined;
|
|
447
493
|
surgeConfig?: {
|
|
448
494
|
resolveHostname?: boolean | undefined;
|
|
449
495
|
vmessAEAD?: boolean | undefined;
|
|
@@ -461,26 +507,39 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
461
507
|
enableVless?: boolean | undefined;
|
|
462
508
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
463
509
|
} | undefined;
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
468
|
-
underlyingProxy?: string | undefined;
|
|
510
|
+
hostnameIp?: string[] | undefined;
|
|
511
|
+
binPath?: string | undefined;
|
|
512
|
+
localPort?: number | undefined;
|
|
469
513
|
tls13?: boolean | undefined;
|
|
470
|
-
enable?: boolean | undefined;
|
|
471
|
-
sni?: string | undefined;
|
|
472
|
-
shadowTls?: {
|
|
473
|
-
password: string;
|
|
474
|
-
sni: string;
|
|
475
|
-
version?: string | number | undefined;
|
|
476
|
-
} | undefined;
|
|
477
|
-
testUrl?: string | undefined;
|
|
478
514
|
skipCertVerify?: boolean | undefined;
|
|
479
515
|
alpn?: [string, ...string[]] | undefined;
|
|
480
516
|
serverCertFingerprintSha256?: string | undefined;
|
|
481
517
|
clientFingerprint?: string | undefined;
|
|
482
518
|
}>, z.ZodObject<{
|
|
483
519
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
520
|
+
nodeName: z.ZodString;
|
|
521
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
522
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
523
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
524
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
525
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
526
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
527
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
528
|
+
password: z.ZodString;
|
|
529
|
+
sni: z.ZodString;
|
|
530
|
+
}, "strip", z.ZodTypeAny, {
|
|
531
|
+
password: string;
|
|
532
|
+
sni: string;
|
|
533
|
+
version?: string | number | undefined;
|
|
534
|
+
}, {
|
|
535
|
+
password: string;
|
|
536
|
+
sni: string;
|
|
537
|
+
version?: string | number | undefined;
|
|
538
|
+
}>>;
|
|
539
|
+
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
540
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
541
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
542
|
+
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
484
543
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
485
544
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
486
545
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -524,30 +583,11 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
524
583
|
enableVless?: boolean | undefined;
|
|
525
584
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
526
585
|
}>>;
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
531
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
532
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
533
|
-
nodeName: z.ZodString;
|
|
534
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
535
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
536
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
537
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
538
|
-
password: z.ZodString;
|
|
539
|
-
sni: z.ZodString;
|
|
540
|
-
}, "strip", z.ZodTypeAny, {
|
|
541
|
-
password: string;
|
|
542
|
-
sni: string;
|
|
543
|
-
version?: string | number | undefined;
|
|
544
|
-
}, {
|
|
545
|
-
password: string;
|
|
546
|
-
sni: string;
|
|
547
|
-
version?: string | number | undefined;
|
|
548
|
-
}>>;
|
|
549
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
586
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
587
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
588
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
550
589
|
hostname: z.ZodString;
|
|
590
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
551
591
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
552
592
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
553
593
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -559,11 +599,25 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
559
599
|
}, "strip", z.ZodTypeAny, {
|
|
560
600
|
port: string | number;
|
|
561
601
|
type: NodeTypeEnum.Tuic;
|
|
562
|
-
password: string;
|
|
563
602
|
nodeName: string;
|
|
564
603
|
version: string | number;
|
|
604
|
+
password: string;
|
|
565
605
|
hostname: string;
|
|
566
606
|
uuid: string;
|
|
607
|
+
enable?: boolean | undefined;
|
|
608
|
+
tfo?: boolean | undefined;
|
|
609
|
+
mptcp?: boolean | undefined;
|
|
610
|
+
ecn?: boolean | undefined;
|
|
611
|
+
sni?: string | undefined;
|
|
612
|
+
shadowTls?: {
|
|
613
|
+
password: string;
|
|
614
|
+
sni: string;
|
|
615
|
+
version?: string | number | undefined;
|
|
616
|
+
} | undefined;
|
|
617
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
618
|
+
underlyingProxy?: string | undefined;
|
|
619
|
+
testUrl?: string | undefined;
|
|
620
|
+
testTimeout?: number | undefined;
|
|
567
621
|
surgeConfig?: {
|
|
568
622
|
resolveHostname?: boolean | undefined;
|
|
569
623
|
vmessAEAD?: boolean | undefined;
|
|
@@ -581,20 +635,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
581
635
|
enableVless?: boolean | undefined;
|
|
582
636
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
583
637
|
} | undefined;
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
588
|
-
underlyingProxy?: string | undefined;
|
|
638
|
+
hostnameIp?: readonly string[] | undefined;
|
|
639
|
+
binPath?: string | undefined;
|
|
640
|
+
localPort?: number | undefined;
|
|
589
641
|
tls13?: boolean | undefined;
|
|
590
|
-
enable?: boolean | undefined;
|
|
591
|
-
sni?: string | undefined;
|
|
592
|
-
shadowTls?: {
|
|
593
|
-
password: string;
|
|
594
|
-
sni: string;
|
|
595
|
-
version?: string | number | undefined;
|
|
596
|
-
} | undefined;
|
|
597
|
-
testUrl?: string | undefined;
|
|
598
642
|
skipCertVerify?: boolean | undefined;
|
|
599
643
|
alpn?: [string, ...string[]] | undefined;
|
|
600
644
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -602,11 +646,25 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
602
646
|
}, {
|
|
603
647
|
port: string | number;
|
|
604
648
|
type: NodeTypeEnum.Tuic;
|
|
605
|
-
password: string;
|
|
606
649
|
nodeName: string;
|
|
607
650
|
version: string | number;
|
|
651
|
+
password: string;
|
|
608
652
|
hostname: string;
|
|
609
653
|
uuid: string;
|
|
654
|
+
enable?: boolean | undefined;
|
|
655
|
+
tfo?: boolean | undefined;
|
|
656
|
+
mptcp?: boolean | undefined;
|
|
657
|
+
ecn?: boolean | undefined;
|
|
658
|
+
sni?: string | undefined;
|
|
659
|
+
shadowTls?: {
|
|
660
|
+
password: string;
|
|
661
|
+
sni: string;
|
|
662
|
+
version?: string | number | undefined;
|
|
663
|
+
} | undefined;
|
|
664
|
+
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
665
|
+
underlyingProxy?: string | undefined;
|
|
666
|
+
testUrl?: string | undefined;
|
|
667
|
+
testTimeout?: number | undefined;
|
|
610
668
|
surgeConfig?: {
|
|
611
669
|
resolveHostname?: boolean | undefined;
|
|
612
670
|
vmessAEAD?: boolean | undefined;
|
|
@@ -624,20 +682,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
624
682
|
enableVless?: boolean | undefined;
|
|
625
683
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
626
684
|
} | undefined;
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
631
|
-
underlyingProxy?: string | undefined;
|
|
685
|
+
hostnameIp?: string[] | undefined;
|
|
686
|
+
binPath?: string | undefined;
|
|
687
|
+
localPort?: number | undefined;
|
|
632
688
|
tls13?: boolean | undefined;
|
|
633
|
-
enable?: boolean | undefined;
|
|
634
|
-
sni?: string | undefined;
|
|
635
|
-
shadowTls?: {
|
|
636
|
-
password: string;
|
|
637
|
-
sni: string;
|
|
638
|
-
version?: string | number | undefined;
|
|
639
|
-
} | undefined;
|
|
640
|
-
testUrl?: string | undefined;
|
|
641
689
|
skipCertVerify?: boolean | undefined;
|
|
642
690
|
alpn?: [string, ...string[]] | undefined;
|
|
643
691
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"tuic.js","sourceRoot":"","sources":["../../src/validators/tuic.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"tuic.js","sourceRoot":"","sources":["../../src/validators/tuic.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AAEvC,qCAA2E;AAE9D,QAAA,yBAAyB,GAAG,+BAAsB,CAAC,MAAM,CAAC;IACrE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,IAAI,CAAC;IAClC,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,iCAAwB;CAClC,CAAC,CAAA;AAEW,QAAA,yBAAyB,GAAG,+BAAsB,CAAC,MAAM,CAAC;IACrE,IAAI,EAAE,OAAC,CAAC,OAAO,CAAC,oBAAY,CAAC,IAAI,CAAC;IAClC,KAAK,EAAE,OAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAA;AAEW,QAAA,uBAAuB,GAAG,OAAC,CAAC,KAAK,CAAC;IAC7C,iCAAyB;IACzB,iCAAyB;CAC1B,CAAC,CAAA"}
|