surgio 3.7.1 → 3.8.1
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/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.d.ts +1 -1
- package/build/utils/index.js +11 -10
- 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 +4 -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 +66 -48
- package/build/validators/common.js +3 -0
- package/build/validators/common.js.map +1 -1
- package/build/validators/http.d.ts +124 -106
- package/build/validators/http.js.map +1 -1
- package/build/validators/hysteria2.d.ts +63 -54
- package/build/validators/hysteria2.js.map +1 -1
- package/build/validators/provider.js.map +1 -1
- package/build/validators/shadowsocks.d.ts +59 -50
- package/build/validators/shadowsocks.js.map +1 -1
- package/build/validators/shadowsocksr.d.ts +59 -50
- package/build/validators/shadowsocksr.js.map +1 -1
- package/build/validators/snell.d.ts +57 -48
- package/build/validators/snell.js.map +1 -1
- package/build/validators/socks5.d.ts +61 -52
- 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 -54
- package/build/validators/trojan.js.map +1 -1
- package/build/validators/tuic.d.ts +248 -212
- package/build/validators/tuic.js.map +1 -1
- package/build/validators/vless.d.ts +60 -51
- package/build/validators/vless.js.map +1 -1
- package/build/validators/vmess.d.ts +57 -48
- package/build/validators/vmess.js.map +1 -1
- package/build/validators/wireguard.d.ts +63 -54
- package/build/validators/wireguard.js.map +1 -1
- package/package.json +3 -1
|
@@ -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,31 +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
|
-
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
71
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
72
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
73
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
72
74
|
hostname: z.ZodString;
|
|
75
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
73
76
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
74
77
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
75
78
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -81,11 +84,25 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
81
84
|
}, "strip", z.ZodTypeAny, {
|
|
82
85
|
port: string | number;
|
|
83
86
|
type: NodeTypeEnum.Tuic;
|
|
84
|
-
password: string;
|
|
85
87
|
nodeName: string;
|
|
86
88
|
version: string | number;
|
|
89
|
+
password: string;
|
|
87
90
|
hostname: string;
|
|
88
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;
|
|
89
106
|
surgeConfig?: {
|
|
90
107
|
resolveHostname?: boolean | undefined;
|
|
91
108
|
vmessAEAD?: boolean | undefined;
|
|
@@ -103,21 +120,10 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
103
120
|
enableVless?: boolean | undefined;
|
|
104
121
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
105
122
|
} | undefined;
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
110
|
-
underlyingProxy?: string | undefined;
|
|
123
|
+
hostnameIp?: readonly string[] | undefined;
|
|
124
|
+
binPath?: string | undefined;
|
|
125
|
+
localPort?: number | undefined;
|
|
111
126
|
tls13?: boolean | undefined;
|
|
112
|
-
enable?: boolean | undefined;
|
|
113
|
-
sni?: string | undefined;
|
|
114
|
-
shadowTls?: {
|
|
115
|
-
password: string;
|
|
116
|
-
sni: string;
|
|
117
|
-
version?: string | number | undefined;
|
|
118
|
-
} | undefined;
|
|
119
|
-
testUrl?: string | undefined;
|
|
120
|
-
testTimeout?: number | undefined;
|
|
121
127
|
skipCertVerify?: boolean | undefined;
|
|
122
128
|
alpn?: [string, ...string[]] | undefined;
|
|
123
129
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -125,11 +131,25 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
125
131
|
}, {
|
|
126
132
|
port: string | number;
|
|
127
133
|
type: NodeTypeEnum.Tuic;
|
|
128
|
-
password: string;
|
|
129
134
|
nodeName: string;
|
|
130
135
|
version: string | number;
|
|
136
|
+
password: string;
|
|
131
137
|
hostname: string;
|
|
132
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;
|
|
133
153
|
surgeConfig?: {
|
|
134
154
|
resolveHostname?: boolean | undefined;
|
|
135
155
|
vmessAEAD?: boolean | undefined;
|
|
@@ -147,21 +167,10 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
147
167
|
enableVless?: boolean | undefined;
|
|
148
168
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
149
169
|
} | undefined;
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
154
|
-
underlyingProxy?: string | undefined;
|
|
170
|
+
hostnameIp?: string[] | undefined;
|
|
171
|
+
binPath?: string | undefined;
|
|
172
|
+
localPort?: number | undefined;
|
|
155
173
|
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
|
-
testTimeout?: number | undefined;
|
|
165
174
|
skipCertVerify?: boolean | undefined;
|
|
166
175
|
alpn?: [string, ...string[]] | undefined;
|
|
167
176
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -169,6 +178,29 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
169
178
|
}>;
|
|
170
179
|
export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
171
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>;
|
|
172
204
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
173
205
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
174
206
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -212,31 +244,11 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
212
244
|
enableVless?: boolean | undefined;
|
|
213
245
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
214
246
|
}>>;
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
219
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
220
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
221
|
-
nodeName: z.ZodString;
|
|
222
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
223
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
224
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
225
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
226
|
-
password: z.ZodString;
|
|
227
|
-
sni: z.ZodString;
|
|
228
|
-
}, "strip", z.ZodTypeAny, {
|
|
229
|
-
password: string;
|
|
230
|
-
sni: string;
|
|
231
|
-
version?: string | number | undefined;
|
|
232
|
-
}, {
|
|
233
|
-
password: string;
|
|
234
|
-
sni: string;
|
|
235
|
-
version?: string | number | undefined;
|
|
236
|
-
}>>;
|
|
237
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
238
|
-
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
247
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
248
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
249
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
239
250
|
hostname: z.ZodString;
|
|
251
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
240
252
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
241
253
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
242
254
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -249,6 +261,20 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
249
261
|
nodeName: string;
|
|
250
262
|
hostname: string;
|
|
251
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;
|
|
252
278
|
surgeConfig?: {
|
|
253
279
|
resolveHostname?: boolean | undefined;
|
|
254
280
|
vmessAEAD?: boolean | undefined;
|
|
@@ -266,21 +292,10 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
266
292
|
enableVless?: boolean | undefined;
|
|
267
293
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
268
294
|
} | undefined;
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
273
|
-
underlyingProxy?: string | undefined;
|
|
295
|
+
hostnameIp?: readonly string[] | undefined;
|
|
296
|
+
binPath?: string | undefined;
|
|
297
|
+
localPort?: number | undefined;
|
|
274
298
|
tls13?: boolean | undefined;
|
|
275
|
-
enable?: boolean | undefined;
|
|
276
|
-
sni?: string | undefined;
|
|
277
|
-
shadowTls?: {
|
|
278
|
-
password: string;
|
|
279
|
-
sni: string;
|
|
280
|
-
version?: string | number | undefined;
|
|
281
|
-
} | undefined;
|
|
282
|
-
testUrl?: string | undefined;
|
|
283
|
-
testTimeout?: number | undefined;
|
|
284
299
|
skipCertVerify?: boolean | undefined;
|
|
285
300
|
alpn?: [string, ...string[]] | undefined;
|
|
286
301
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -291,6 +306,20 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
291
306
|
nodeName: string;
|
|
292
307
|
hostname: string;
|
|
293
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;
|
|
294
323
|
surgeConfig?: {
|
|
295
324
|
resolveHostname?: boolean | undefined;
|
|
296
325
|
vmessAEAD?: boolean | undefined;
|
|
@@ -308,21 +337,10 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
308
337
|
enableVless?: boolean | undefined;
|
|
309
338
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
310
339
|
} | undefined;
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
315
|
-
underlyingProxy?: string | undefined;
|
|
340
|
+
hostnameIp?: string[] | undefined;
|
|
341
|
+
binPath?: string | undefined;
|
|
342
|
+
localPort?: number | undefined;
|
|
316
343
|
tls13?: boolean | undefined;
|
|
317
|
-
enable?: boolean | undefined;
|
|
318
|
-
sni?: string | undefined;
|
|
319
|
-
shadowTls?: {
|
|
320
|
-
password: string;
|
|
321
|
-
sni: string;
|
|
322
|
-
version?: string | number | undefined;
|
|
323
|
-
} | undefined;
|
|
324
|
-
testUrl?: string | undefined;
|
|
325
|
-
testTimeout?: number | undefined;
|
|
326
344
|
skipCertVerify?: boolean | undefined;
|
|
327
345
|
alpn?: [string, ...string[]] | undefined;
|
|
328
346
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -330,6 +348,29 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
330
348
|
}>;
|
|
331
349
|
export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
332
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>;
|
|
333
374
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
334
375
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
335
376
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -373,31 +414,11 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
373
414
|
enableVless?: boolean | undefined;
|
|
374
415
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
375
416
|
}>>;
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
380
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
381
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
382
|
-
nodeName: z.ZodString;
|
|
383
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
384
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
385
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
386
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
387
|
-
password: z.ZodString;
|
|
388
|
-
sni: z.ZodString;
|
|
389
|
-
}, "strip", z.ZodTypeAny, {
|
|
390
|
-
password: string;
|
|
391
|
-
sni: string;
|
|
392
|
-
version?: string | number | undefined;
|
|
393
|
-
}, {
|
|
394
|
-
password: string;
|
|
395
|
-
sni: string;
|
|
396
|
-
version?: string | number | undefined;
|
|
397
|
-
}>>;
|
|
398
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
399
|
-
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
417
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
418
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
419
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
400
420
|
hostname: z.ZodString;
|
|
421
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
401
422
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
402
423
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
403
424
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -410,6 +431,20 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
410
431
|
nodeName: string;
|
|
411
432
|
hostname: string;
|
|
412
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;
|
|
413
448
|
surgeConfig?: {
|
|
414
449
|
resolveHostname?: boolean | undefined;
|
|
415
450
|
vmessAEAD?: boolean | undefined;
|
|
@@ -427,21 +462,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
427
462
|
enableVless?: boolean | undefined;
|
|
428
463
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
429
464
|
} | undefined;
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
434
|
-
underlyingProxy?: string | undefined;
|
|
465
|
+
hostnameIp?: readonly string[] | undefined;
|
|
466
|
+
binPath?: string | undefined;
|
|
467
|
+
localPort?: number | undefined;
|
|
435
468
|
tls13?: boolean | undefined;
|
|
436
|
-
enable?: boolean | undefined;
|
|
437
|
-
sni?: string | undefined;
|
|
438
|
-
shadowTls?: {
|
|
439
|
-
password: string;
|
|
440
|
-
sni: string;
|
|
441
|
-
version?: string | number | undefined;
|
|
442
|
-
} | undefined;
|
|
443
|
-
testUrl?: string | undefined;
|
|
444
|
-
testTimeout?: number | undefined;
|
|
445
469
|
skipCertVerify?: boolean | undefined;
|
|
446
470
|
alpn?: [string, ...string[]] | undefined;
|
|
447
471
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -452,6 +476,20 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
452
476
|
nodeName: string;
|
|
453
477
|
hostname: string;
|
|
454
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;
|
|
455
493
|
surgeConfig?: {
|
|
456
494
|
resolveHostname?: boolean | undefined;
|
|
457
495
|
vmessAEAD?: boolean | undefined;
|
|
@@ -469,27 +507,39 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
469
507
|
enableVless?: boolean | undefined;
|
|
470
508
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
471
509
|
} | undefined;
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
476
|
-
underlyingProxy?: string | undefined;
|
|
510
|
+
hostnameIp?: string[] | undefined;
|
|
511
|
+
binPath?: string | undefined;
|
|
512
|
+
localPort?: number | undefined;
|
|
477
513
|
tls13?: boolean | undefined;
|
|
478
|
-
enable?: boolean | undefined;
|
|
479
|
-
sni?: string | undefined;
|
|
480
|
-
shadowTls?: {
|
|
481
|
-
password: string;
|
|
482
|
-
sni: string;
|
|
483
|
-
version?: string | number | undefined;
|
|
484
|
-
} | undefined;
|
|
485
|
-
testUrl?: string | undefined;
|
|
486
|
-
testTimeout?: number | undefined;
|
|
487
514
|
skipCertVerify?: boolean | undefined;
|
|
488
515
|
alpn?: [string, ...string[]] | undefined;
|
|
489
516
|
serverCertFingerprintSha256?: string | undefined;
|
|
490
517
|
clientFingerprint?: string | undefined;
|
|
491
518
|
}>, z.ZodObject<{
|
|
492
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>;
|
|
493
543
|
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
494
544
|
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
495
545
|
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -533,31 +583,11 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
533
583
|
enableVless?: boolean | undefined;
|
|
534
584
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
535
585
|
}>>;
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
blockQuic: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"auto">, z.ZodLiteral<"on">, z.ZodLiteral<"off">]>>;
|
|
540
|
-
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
541
|
-
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
542
|
-
nodeName: z.ZodString;
|
|
543
|
-
enable: z.ZodOptional<z.ZodBoolean>;
|
|
544
|
-
sni: z.ZodOptional<z.ZodString>;
|
|
545
|
-
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
546
|
-
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
547
|
-
password: z.ZodString;
|
|
548
|
-
sni: z.ZodString;
|
|
549
|
-
}, "strip", z.ZodTypeAny, {
|
|
550
|
-
password: string;
|
|
551
|
-
sni: string;
|
|
552
|
-
version?: string | number | undefined;
|
|
553
|
-
}, {
|
|
554
|
-
password: string;
|
|
555
|
-
sni: string;
|
|
556
|
-
version?: string | number | undefined;
|
|
557
|
-
}>>;
|
|
558
|
-
testUrl: z.ZodOptional<z.ZodString>;
|
|
559
|
-
testTimeout: z.ZodOptional<z.ZodNumber>;
|
|
586
|
+
hostnameIp: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString, "many">>>;
|
|
587
|
+
binPath: z.ZodOptional<z.ZodString>;
|
|
588
|
+
localPort: z.ZodOptional<z.ZodNumber>;
|
|
560
589
|
hostname: z.ZodString;
|
|
590
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
561
591
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
562
592
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
563
593
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -569,11 +599,25 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
569
599
|
}, "strip", z.ZodTypeAny, {
|
|
570
600
|
port: string | number;
|
|
571
601
|
type: NodeTypeEnum.Tuic;
|
|
572
|
-
password: string;
|
|
573
602
|
nodeName: string;
|
|
574
603
|
version: string | number;
|
|
604
|
+
password: string;
|
|
575
605
|
hostname: string;
|
|
576
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;
|
|
577
621
|
surgeConfig?: {
|
|
578
622
|
resolveHostname?: boolean | undefined;
|
|
579
623
|
vmessAEAD?: boolean | undefined;
|
|
@@ -591,21 +635,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
591
635
|
enableVless?: boolean | undefined;
|
|
592
636
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
593
637
|
} | undefined;
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
598
|
-
underlyingProxy?: string | undefined;
|
|
638
|
+
hostnameIp?: readonly string[] | undefined;
|
|
639
|
+
binPath?: string | undefined;
|
|
640
|
+
localPort?: number | undefined;
|
|
599
641
|
tls13?: boolean | undefined;
|
|
600
|
-
enable?: boolean | undefined;
|
|
601
|
-
sni?: string | undefined;
|
|
602
|
-
shadowTls?: {
|
|
603
|
-
password: string;
|
|
604
|
-
sni: string;
|
|
605
|
-
version?: string | number | undefined;
|
|
606
|
-
} | undefined;
|
|
607
|
-
testUrl?: string | undefined;
|
|
608
|
-
testTimeout?: number | undefined;
|
|
609
642
|
skipCertVerify?: boolean | undefined;
|
|
610
643
|
alpn?: [string, ...string[]] | undefined;
|
|
611
644
|
serverCertFingerprintSha256?: string | undefined;
|
|
@@ -613,11 +646,25 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
613
646
|
}, {
|
|
614
647
|
port: string | number;
|
|
615
648
|
type: NodeTypeEnum.Tuic;
|
|
616
|
-
password: string;
|
|
617
649
|
nodeName: string;
|
|
618
650
|
version: string | number;
|
|
651
|
+
password: string;
|
|
619
652
|
hostname: string;
|
|
620
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;
|
|
621
668
|
surgeConfig?: {
|
|
622
669
|
resolveHostname?: boolean | undefined;
|
|
623
670
|
vmessAEAD?: boolean | undefined;
|
|
@@ -635,21 +682,10 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
635
682
|
enableVless?: boolean | undefined;
|
|
636
683
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
637
684
|
} | undefined;
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
blockQuic?: "auto" | "on" | "off" | undefined;
|
|
642
|
-
underlyingProxy?: string | undefined;
|
|
685
|
+
hostnameIp?: string[] | undefined;
|
|
686
|
+
binPath?: string | undefined;
|
|
687
|
+
localPort?: number | undefined;
|
|
643
688
|
tls13?: boolean | undefined;
|
|
644
|
-
enable?: boolean | undefined;
|
|
645
|
-
sni?: string | undefined;
|
|
646
|
-
shadowTls?: {
|
|
647
|
-
password: string;
|
|
648
|
-
sni: string;
|
|
649
|
-
version?: string | number | undefined;
|
|
650
|
-
} | undefined;
|
|
651
|
-
testUrl?: string | undefined;
|
|
652
|
-
testTimeout?: number | undefined;
|
|
653
689
|
skipCertVerify?: boolean | undefined;
|
|
654
690
|
alpn?: [string, ...string[]] | undefined;
|
|
655
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"}
|