surgio 3.5.1 → 3.6.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/build/config.js +1 -0
- package/build/config.js.map +1 -1
- package/build/configurables.d.ts +1 -0
- package/build/filters/filters.d.ts +2 -0
- package/build/filters/filters.js +10 -1
- package/build/filters/filters.js.map +1 -1
- package/build/generator/artifact.d.ts +2 -0
- package/build/index.d.ts +2 -0
- package/build/provider/ClashProvider.d.ts +2 -2
- package/build/provider/ClashProvider.js +47 -5
- package/build/provider/ClashProvider.js.map +1 -1
- package/build/types.d.ts +4 -1
- package/build/types.js +1 -0
- package/build/types.js.map +1 -1
- package/build/utils/clash.js +38 -18
- package/build/utils/clash.js.map +1 -1
- package/build/utils/loon.js +9 -6
- package/build/utils/loon.js.map +1 -1
- package/build/utils/quantumult.js +7 -4
- package/build/utils/quantumult.js.map +1 -1
- package/build/utils/surge.js +7 -2
- package/build/utils/surge.js.map +1 -1
- package/build/validators/common.d.ts +10 -0
- package/build/validators/http.d.ts +10 -0
- package/build/validators/hysteria2.d.ts +5 -0
- package/build/validators/shadowsocks.d.ts +5 -0
- package/build/validators/shadowsocksr.d.ts +5 -0
- package/build/validators/snell.d.ts +5 -0
- package/build/validators/socks5.d.ts +5 -0
- package/build/validators/surgio-config.d.ts +8 -0
- package/build/validators/surgio-config.js +1 -0
- package/build/validators/surgio-config.js.map +1 -1
- package/build/validators/trojan.d.ts +5 -0
- package/build/validators/tuic.d.ts +20 -0
- package/build/validators/vless.d.ts +266 -0
- package/build/validators/vless.js +27 -0
- package/build/validators/vless.js.map +1 -0
- package/build/validators/vmess.d.ts +10 -5
- package/build/validators/vmess.js +3 -6
- package/build/validators/vmess.js.map +1 -1
- package/build/validators/wireguard.d.ts +5 -0
- package/package.json +1 -1
|
@@ -30,16 +30,19 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
30
30
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
32
32
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
33
34
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
34
35
|
}, "strip", z.ZodTypeAny, {
|
|
35
36
|
enableTuic?: boolean | undefined;
|
|
36
37
|
enableShadowTls?: boolean | undefined;
|
|
37
38
|
enableHysteria2?: boolean | undefined;
|
|
39
|
+
enableVless?: boolean | undefined;
|
|
38
40
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
39
41
|
}, {
|
|
40
42
|
enableTuic?: boolean | undefined;
|
|
41
43
|
enableShadowTls?: boolean | undefined;
|
|
42
44
|
enableHysteria2?: boolean | undefined;
|
|
45
|
+
enableVless?: boolean | undefined;
|
|
43
46
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
44
47
|
}>>;
|
|
45
48
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -94,6 +97,7 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
94
97
|
enableTuic?: boolean | undefined;
|
|
95
98
|
enableShadowTls?: boolean | undefined;
|
|
96
99
|
enableHysteria2?: boolean | undefined;
|
|
100
|
+
enableVless?: boolean | undefined;
|
|
97
101
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
98
102
|
} | undefined;
|
|
99
103
|
mptcp?: boolean | undefined;
|
|
@@ -134,6 +138,7 @@ export declare const TuicNodeV5ConfigValidator: z.ZodObject<{
|
|
|
134
138
|
enableTuic?: boolean | undefined;
|
|
135
139
|
enableShadowTls?: boolean | undefined;
|
|
136
140
|
enableHysteria2?: boolean | undefined;
|
|
141
|
+
enableVless?: boolean | undefined;
|
|
137
142
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
138
143
|
} | undefined;
|
|
139
144
|
mptcp?: boolean | undefined;
|
|
@@ -183,16 +188,19 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
183
188
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
184
189
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
185
190
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
191
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
186
192
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
187
193
|
}, "strip", z.ZodTypeAny, {
|
|
188
194
|
enableTuic?: boolean | undefined;
|
|
189
195
|
enableShadowTls?: boolean | undefined;
|
|
190
196
|
enableHysteria2?: boolean | undefined;
|
|
197
|
+
enableVless?: boolean | undefined;
|
|
191
198
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
192
199
|
}, {
|
|
193
200
|
enableTuic?: boolean | undefined;
|
|
194
201
|
enableShadowTls?: boolean | undefined;
|
|
195
202
|
enableHysteria2?: boolean | undefined;
|
|
203
|
+
enableVless?: boolean | undefined;
|
|
196
204
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
197
205
|
}>>;
|
|
198
206
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -243,6 +251,7 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
243
251
|
enableTuic?: boolean | undefined;
|
|
244
252
|
enableShadowTls?: boolean | undefined;
|
|
245
253
|
enableHysteria2?: boolean | undefined;
|
|
254
|
+
enableVless?: boolean | undefined;
|
|
246
255
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
247
256
|
} | undefined;
|
|
248
257
|
mptcp?: boolean | undefined;
|
|
@@ -281,6 +290,7 @@ export declare const TuicNodeV4ConfigValidator: z.ZodObject<{
|
|
|
281
290
|
enableTuic?: boolean | undefined;
|
|
282
291
|
enableShadowTls?: boolean | undefined;
|
|
283
292
|
enableHysteria2?: boolean | undefined;
|
|
293
|
+
enableVless?: boolean | undefined;
|
|
284
294
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
285
295
|
} | undefined;
|
|
286
296
|
mptcp?: boolean | undefined;
|
|
@@ -330,16 +340,19 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
330
340
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
331
341
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
332
342
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
343
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
333
344
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
334
345
|
}, "strip", z.ZodTypeAny, {
|
|
335
346
|
enableTuic?: boolean | undefined;
|
|
336
347
|
enableShadowTls?: boolean | undefined;
|
|
337
348
|
enableHysteria2?: boolean | undefined;
|
|
349
|
+
enableVless?: boolean | undefined;
|
|
338
350
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
339
351
|
}, {
|
|
340
352
|
enableTuic?: boolean | undefined;
|
|
341
353
|
enableShadowTls?: boolean | undefined;
|
|
342
354
|
enableHysteria2?: boolean | undefined;
|
|
355
|
+
enableVless?: boolean | undefined;
|
|
343
356
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
344
357
|
}>>;
|
|
345
358
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -390,6 +403,7 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
390
403
|
enableTuic?: boolean | undefined;
|
|
391
404
|
enableShadowTls?: boolean | undefined;
|
|
392
405
|
enableHysteria2?: boolean | undefined;
|
|
406
|
+
enableVless?: boolean | undefined;
|
|
393
407
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
394
408
|
} | undefined;
|
|
395
409
|
mptcp?: boolean | undefined;
|
|
@@ -428,6 +442,7 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
428
442
|
enableTuic?: boolean | undefined;
|
|
429
443
|
enableShadowTls?: boolean | undefined;
|
|
430
444
|
enableHysteria2?: boolean | undefined;
|
|
445
|
+
enableVless?: boolean | undefined;
|
|
431
446
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
432
447
|
} | undefined;
|
|
433
448
|
mptcp?: boolean | undefined;
|
|
@@ -476,16 +491,19 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
476
491
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
477
492
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
478
493
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
494
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
479
495
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
480
496
|
}, "strip", z.ZodTypeAny, {
|
|
481
497
|
enableTuic?: boolean | undefined;
|
|
482
498
|
enableShadowTls?: boolean | undefined;
|
|
483
499
|
enableHysteria2?: boolean | undefined;
|
|
500
|
+
enableVless?: boolean | undefined;
|
|
484
501
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
485
502
|
}, {
|
|
486
503
|
enableTuic?: boolean | undefined;
|
|
487
504
|
enableShadowTls?: boolean | undefined;
|
|
488
505
|
enableHysteria2?: boolean | undefined;
|
|
506
|
+
enableVless?: boolean | undefined;
|
|
489
507
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
490
508
|
}>>;
|
|
491
509
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -540,6 +558,7 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
540
558
|
enableTuic?: boolean | undefined;
|
|
541
559
|
enableShadowTls?: boolean | undefined;
|
|
542
560
|
enableHysteria2?: boolean | undefined;
|
|
561
|
+
enableVless?: boolean | undefined;
|
|
543
562
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
544
563
|
} | undefined;
|
|
545
564
|
mptcp?: boolean | undefined;
|
|
@@ -580,6 +599,7 @@ export declare const TuicNodeConfigValidator: z.ZodUnion<[z.ZodObject<{
|
|
|
580
599
|
enableTuic?: boolean | undefined;
|
|
581
600
|
enableShadowTls?: boolean | undefined;
|
|
582
601
|
enableHysteria2?: boolean | undefined;
|
|
602
|
+
enableVless?: boolean | undefined;
|
|
583
603
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
584
604
|
} | undefined;
|
|
585
605
|
mptcp?: boolean | undefined;
|
|
@@ -0,0 +1,266 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { NodeTypeEnum } from '../types';
|
|
3
|
+
export declare const VlessRealityOptsValidator: z.ZodObject<{
|
|
4
|
+
publicKey: z.ZodString;
|
|
5
|
+
shortId: z.ZodOptional<z.ZodString>;
|
|
6
|
+
}, "strip", z.ZodTypeAny, {
|
|
7
|
+
publicKey: string;
|
|
8
|
+
shortId?: string | undefined;
|
|
9
|
+
}, {
|
|
10
|
+
publicKey: string;
|
|
11
|
+
shortId?: string | undefined;
|
|
12
|
+
}>;
|
|
13
|
+
export declare const VlessNodeConfigValidator: z.ZodObject<{
|
|
14
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
resolveHostname?: boolean | undefined;
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}, {
|
|
21
|
+
resolveHostname?: boolean | undefined;
|
|
22
|
+
vmessAEAD?: boolean | undefined;
|
|
23
|
+
}>>;
|
|
24
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
25
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
}, "strip", z.ZodTypeAny, {
|
|
27
|
+
vmessAEAD?: boolean | undefined;
|
|
28
|
+
}, {
|
|
29
|
+
vmessAEAD?: boolean | undefined;
|
|
30
|
+
}>>;
|
|
31
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
32
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
vmessAEAD?: boolean | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
vmessAEAD?: boolean | undefined;
|
|
37
|
+
}>>;
|
|
38
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
39
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
43
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
45
|
+
enableTuic?: boolean | undefined;
|
|
46
|
+
enableShadowTls?: boolean | undefined;
|
|
47
|
+
enableHysteria2?: boolean | undefined;
|
|
48
|
+
enableVless?: boolean | undefined;
|
|
49
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
enableTuic?: boolean | undefined;
|
|
52
|
+
enableShadowTls?: boolean | undefined;
|
|
53
|
+
enableHysteria2?: boolean | undefined;
|
|
54
|
+
enableVless?: boolean | undefined;
|
|
55
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
56
|
+
}>>;
|
|
57
|
+
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
58
|
+
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
59
|
+
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
60
|
+
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
61
|
+
nodeName: z.ZodString;
|
|
62
|
+
enable: z.ZodOptional<z.ZodBoolean>;
|
|
63
|
+
ecn: z.ZodOptional<z.ZodBoolean>;
|
|
64
|
+
sni: z.ZodOptional<z.ZodString>;
|
|
65
|
+
shadowTls: z.ZodOptional<z.ZodObject<{
|
|
66
|
+
version: z.ZodOptional<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>;
|
|
67
|
+
password: z.ZodString;
|
|
68
|
+
sni: z.ZodString;
|
|
69
|
+
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
password: string;
|
|
71
|
+
sni: string;
|
|
72
|
+
version?: string | number | undefined;
|
|
73
|
+
}, {
|
|
74
|
+
password: string;
|
|
75
|
+
sni: string;
|
|
76
|
+
version?: string | number | undefined;
|
|
77
|
+
}>>;
|
|
78
|
+
testUrl: z.ZodOptional<z.ZodString>;
|
|
79
|
+
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
80
|
+
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
81
|
+
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
82
|
+
type: z.ZodLiteral<NodeTypeEnum.Vless>;
|
|
83
|
+
hostname: z.ZodString;
|
|
84
|
+
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
85
|
+
method: z.ZodLiteral<"none">;
|
|
86
|
+
uuid: z.ZodString;
|
|
87
|
+
network: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"tcp">, z.ZodLiteral<"ws">, z.ZodLiteral<"h2">, z.ZodLiteral<"http">, z.ZodLiteral<"grpc">]>>;
|
|
88
|
+
udpRelay: z.ZodOptional<z.ZodBoolean>;
|
|
89
|
+
flow: z.ZodOptional<z.ZodString>;
|
|
90
|
+
wsOpts: z.ZodOptional<z.ZodObject<{
|
|
91
|
+
path: z.ZodString;
|
|
92
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
path: string;
|
|
95
|
+
headers?: Record<string, string> | undefined;
|
|
96
|
+
}, {
|
|
97
|
+
path: string;
|
|
98
|
+
headers?: Record<string, string> | undefined;
|
|
99
|
+
}>>;
|
|
100
|
+
h2Opts: z.ZodOptional<z.ZodObject<{
|
|
101
|
+
path: z.ZodString;
|
|
102
|
+
host: z.ZodArray<z.ZodString, "atleastone">;
|
|
103
|
+
}, "strip", z.ZodTypeAny, {
|
|
104
|
+
host: [string, ...string[]];
|
|
105
|
+
path: string;
|
|
106
|
+
}, {
|
|
107
|
+
host: [string, ...string[]];
|
|
108
|
+
path: string;
|
|
109
|
+
}>>;
|
|
110
|
+
httpOpts: z.ZodOptional<z.ZodObject<{
|
|
111
|
+
path: z.ZodArray<z.ZodString, "many">;
|
|
112
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
113
|
+
method: z.ZodDefault<z.ZodOptional<z.ZodString>>;
|
|
114
|
+
}, "strip", z.ZodTypeAny, {
|
|
115
|
+
path: string[];
|
|
116
|
+
method: string;
|
|
117
|
+
headers?: Record<string, string> | undefined;
|
|
118
|
+
}, {
|
|
119
|
+
path: string[];
|
|
120
|
+
headers?: Record<string, string> | undefined;
|
|
121
|
+
method?: string | undefined;
|
|
122
|
+
}>>;
|
|
123
|
+
grpcOpts: z.ZodOptional<z.ZodObject<{
|
|
124
|
+
serviceName: z.ZodString;
|
|
125
|
+
}, "strip", z.ZodTypeAny, {
|
|
126
|
+
serviceName: string;
|
|
127
|
+
}, {
|
|
128
|
+
serviceName: string;
|
|
129
|
+
}>>;
|
|
130
|
+
realityOpts: z.ZodOptional<z.ZodObject<{
|
|
131
|
+
publicKey: z.ZodString;
|
|
132
|
+
shortId: z.ZodOptional<z.ZodString>;
|
|
133
|
+
}, "strip", z.ZodTypeAny, {
|
|
134
|
+
publicKey: string;
|
|
135
|
+
shortId?: string | undefined;
|
|
136
|
+
}, {
|
|
137
|
+
publicKey: string;
|
|
138
|
+
shortId?: string | undefined;
|
|
139
|
+
}>>;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
141
|
+
port: string | number;
|
|
142
|
+
type: NodeTypeEnum.Vless;
|
|
143
|
+
nodeName: string;
|
|
144
|
+
hostname: string;
|
|
145
|
+
method: "none";
|
|
146
|
+
uuid: string;
|
|
147
|
+
network: "tcp" | "http" | "ws" | "h2" | "grpc";
|
|
148
|
+
surgeConfig?: {
|
|
149
|
+
resolveHostname?: boolean | undefined;
|
|
150
|
+
vmessAEAD?: boolean | undefined;
|
|
151
|
+
} | undefined;
|
|
152
|
+
surfboardConfig?: {
|
|
153
|
+
vmessAEAD?: boolean | undefined;
|
|
154
|
+
} | undefined;
|
|
155
|
+
quantumultXConfig?: {
|
|
156
|
+
vmessAEAD?: boolean | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
clashConfig?: {
|
|
159
|
+
enableTuic?: boolean | undefined;
|
|
160
|
+
enableShadowTls?: boolean | undefined;
|
|
161
|
+
enableHysteria2?: boolean | undefined;
|
|
162
|
+
enableVless?: boolean | undefined;
|
|
163
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
164
|
+
} | undefined;
|
|
165
|
+
mptcp?: boolean | undefined;
|
|
166
|
+
tfo?: boolean | undefined;
|
|
167
|
+
underlyingProxy?: string | undefined;
|
|
168
|
+
tls13?: boolean | undefined;
|
|
169
|
+
enable?: boolean | undefined;
|
|
170
|
+
ecn?: boolean | undefined;
|
|
171
|
+
sni?: string | undefined;
|
|
172
|
+
shadowTls?: {
|
|
173
|
+
password: string;
|
|
174
|
+
sni: string;
|
|
175
|
+
version?: string | number | undefined;
|
|
176
|
+
} | undefined;
|
|
177
|
+
testUrl?: string | undefined;
|
|
178
|
+
skipCertVerify?: boolean | undefined;
|
|
179
|
+
alpn?: [string, ...string[]] | undefined;
|
|
180
|
+
serverCertFingerprintSha256?: string | undefined;
|
|
181
|
+
udpRelay?: boolean | undefined;
|
|
182
|
+
flow?: string | undefined;
|
|
183
|
+
wsOpts?: {
|
|
184
|
+
path: string;
|
|
185
|
+
headers?: Record<string, string> | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
h2Opts?: {
|
|
188
|
+
host: [string, ...string[]];
|
|
189
|
+
path: string;
|
|
190
|
+
} | undefined;
|
|
191
|
+
httpOpts?: {
|
|
192
|
+
path: string[];
|
|
193
|
+
method: string;
|
|
194
|
+
headers?: Record<string, string> | undefined;
|
|
195
|
+
} | undefined;
|
|
196
|
+
grpcOpts?: {
|
|
197
|
+
serviceName: string;
|
|
198
|
+
} | undefined;
|
|
199
|
+
realityOpts?: {
|
|
200
|
+
publicKey: string;
|
|
201
|
+
shortId?: string | undefined;
|
|
202
|
+
} | undefined;
|
|
203
|
+
}, {
|
|
204
|
+
port: string | number;
|
|
205
|
+
type: NodeTypeEnum.Vless;
|
|
206
|
+
nodeName: string;
|
|
207
|
+
hostname: string;
|
|
208
|
+
method: "none";
|
|
209
|
+
uuid: string;
|
|
210
|
+
surgeConfig?: {
|
|
211
|
+
resolveHostname?: boolean | undefined;
|
|
212
|
+
vmessAEAD?: boolean | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
surfboardConfig?: {
|
|
215
|
+
vmessAEAD?: boolean | undefined;
|
|
216
|
+
} | undefined;
|
|
217
|
+
quantumultXConfig?: {
|
|
218
|
+
vmessAEAD?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
clashConfig?: {
|
|
221
|
+
enableTuic?: boolean | undefined;
|
|
222
|
+
enableShadowTls?: boolean | undefined;
|
|
223
|
+
enableHysteria2?: boolean | undefined;
|
|
224
|
+
enableVless?: boolean | undefined;
|
|
225
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
226
|
+
} | undefined;
|
|
227
|
+
mptcp?: boolean | undefined;
|
|
228
|
+
tfo?: boolean | undefined;
|
|
229
|
+
underlyingProxy?: string | undefined;
|
|
230
|
+
tls13?: boolean | undefined;
|
|
231
|
+
enable?: boolean | undefined;
|
|
232
|
+
ecn?: boolean | undefined;
|
|
233
|
+
sni?: string | undefined;
|
|
234
|
+
shadowTls?: {
|
|
235
|
+
password: string;
|
|
236
|
+
sni: string;
|
|
237
|
+
version?: string | number | undefined;
|
|
238
|
+
} | undefined;
|
|
239
|
+
testUrl?: string | undefined;
|
|
240
|
+
skipCertVerify?: boolean | undefined;
|
|
241
|
+
alpn?: [string, ...string[]] | undefined;
|
|
242
|
+
serverCertFingerprintSha256?: string | undefined;
|
|
243
|
+
network?: "tcp" | "http" | "ws" | "h2" | "grpc" | undefined;
|
|
244
|
+
udpRelay?: boolean | undefined;
|
|
245
|
+
flow?: string | undefined;
|
|
246
|
+
wsOpts?: {
|
|
247
|
+
path: string;
|
|
248
|
+
headers?: Record<string, string> | undefined;
|
|
249
|
+
} | undefined;
|
|
250
|
+
h2Opts?: {
|
|
251
|
+
host: [string, ...string[]];
|
|
252
|
+
path: string;
|
|
253
|
+
} | undefined;
|
|
254
|
+
httpOpts?: {
|
|
255
|
+
path: string[];
|
|
256
|
+
headers?: Record<string, string> | undefined;
|
|
257
|
+
method?: string | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
grpcOpts?: {
|
|
260
|
+
serviceName: string;
|
|
261
|
+
} | undefined;
|
|
262
|
+
realityOpts?: {
|
|
263
|
+
publicKey: string;
|
|
264
|
+
shortId?: string | undefined;
|
|
265
|
+
} | undefined;
|
|
266
|
+
}>;
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.VlessNodeConfigValidator = exports.VlessRealityOptsValidator = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const types_1 = require("../types");
|
|
6
|
+
const common_1 = require("./common");
|
|
7
|
+
const vmess_1 = require("./vmess");
|
|
8
|
+
exports.VlessRealityOptsValidator = zod_1.z.object({
|
|
9
|
+
publicKey: zod_1.z.string(),
|
|
10
|
+
shortId: zod_1.z.ostring(),
|
|
11
|
+
});
|
|
12
|
+
exports.VlessNodeConfigValidator = common_1.TlsNodeConfigValidator.extend({
|
|
13
|
+
type: zod_1.z.literal(types_1.NodeTypeEnum.Vless),
|
|
14
|
+
hostname: zod_1.z.string(),
|
|
15
|
+
port: common_1.PortValidator,
|
|
16
|
+
method: zod_1.z.literal('none'),
|
|
17
|
+
uuid: zod_1.z.string().uuid(),
|
|
18
|
+
network: vmess_1.VmessNetworkValidator.default('tcp'),
|
|
19
|
+
udpRelay: zod_1.z.oboolean(),
|
|
20
|
+
flow: zod_1.z.ostring(),
|
|
21
|
+
wsOpts: vmess_1.VmessWSOptsValidator.optional(),
|
|
22
|
+
h2Opts: vmess_1.VmessH2OptsValidator.optional(),
|
|
23
|
+
httpOpts: vmess_1.VmessHttpOptsValidator.optional(),
|
|
24
|
+
grpcOpts: vmess_1.VmessGRPCOptsValidator.optional(),
|
|
25
|
+
realityOpts: exports.VlessRealityOptsValidator.optional(),
|
|
26
|
+
});
|
|
27
|
+
//# sourceMappingURL=vless.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"vless.js","sourceRoot":"","sources":["../../src/validators/vless.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AACvC,qCAAgE;AAChE,mCAMgB;AAEH,QAAA,yBAAyB,GAAG,OAAC,CAAC,MAAM,CAAC;IAChD,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE;IACrB,OAAO,EAAE,OAAC,CAAC,OAAO,EAAE;CACrB,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,IAAI,EAAE,sBAAa;IACnB,MAAM,EAAE,OAAC,CAAC,OAAO,CAAC,MAAM,CAAC;IACzB,IAAI,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACvB,OAAO,EAAE,6BAAqB,CAAC,OAAO,CAAC,KAAK,CAAC;IAC7C,QAAQ,EAAE,OAAC,CAAC,QAAQ,EAAE;IACtB,IAAI,EAAE,OAAC,CAAC,OAAO,EAAE;IAEjB,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,MAAM,EAAE,4BAAoB,CAAC,QAAQ,EAAE;IACvC,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,QAAQ,EAAE,8BAAsB,CAAC,QAAQ,EAAE;IAC3C,WAAW,EAAE,iCAAyB,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
|
-
export declare const VmessNetworkValidator: z.
|
|
4
|
-
export declare const VmessMethodValidator: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"aes-128-gcm">, z.ZodLiteral<"chacha20-
|
|
3
|
+
export declare const VmessNetworkValidator: z.ZodUnion<[z.ZodLiteral<"tcp">, z.ZodLiteral<"ws">, z.ZodLiteral<"h2">, z.ZodLiteral<"http">, z.ZodLiteral<"grpc">]>;
|
|
4
|
+
export declare const VmessMethodValidator: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"aes-128-gcm">, z.ZodLiteral<"chacha20-poly1305">, z.ZodLiteral<"auto">]>;
|
|
5
5
|
export declare const VmessWSOptsValidator: z.ZodObject<{
|
|
6
6
|
path: z.ZodString;
|
|
7
7
|
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
@@ -75,16 +75,19 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
75
75
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
76
76
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
77
77
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
78
79
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
79
80
|
}, "strip", z.ZodTypeAny, {
|
|
80
81
|
enableTuic?: boolean | undefined;
|
|
81
82
|
enableShadowTls?: boolean | undefined;
|
|
82
83
|
enableHysteria2?: boolean | undefined;
|
|
84
|
+
enableVless?: boolean | undefined;
|
|
83
85
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
84
86
|
}, {
|
|
85
87
|
enableTuic?: boolean | undefined;
|
|
86
88
|
enableShadowTls?: boolean | undefined;
|
|
87
89
|
enableHysteria2?: boolean | undefined;
|
|
90
|
+
enableVless?: boolean | undefined;
|
|
88
91
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
89
92
|
}>>;
|
|
90
93
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -110,7 +113,7 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
110
113
|
type: z.ZodLiteral<NodeTypeEnum.Vmess>;
|
|
111
114
|
hostname: z.ZodString;
|
|
112
115
|
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
113
|
-
method: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"aes-128-gcm">, z.ZodLiteral<"chacha20-
|
|
116
|
+
method: z.ZodUnion<[z.ZodLiteral<"none">, z.ZodLiteral<"aes-128-gcm">, z.ZodLiteral<"chacha20-poly1305">, z.ZodLiteral<"auto">]>;
|
|
114
117
|
uuid: z.ZodString;
|
|
115
118
|
alterId: z.ZodOptional<z.ZodDefault<z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>>>;
|
|
116
119
|
network: z.ZodDefault<z.ZodUnion<[z.ZodLiteral<"tcp">, z.ZodLiteral<"ws">, z.ZodLiteral<"h2">, z.ZodLiteral<"http">, z.ZodLiteral<"grpc">]>>;
|
|
@@ -169,7 +172,7 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
169
172
|
type: NodeTypeEnum.Vmess;
|
|
170
173
|
nodeName: string;
|
|
171
174
|
hostname: string;
|
|
172
|
-
method: "none" | "aes-128-gcm" | "chacha20-
|
|
175
|
+
method: "none" | "aes-128-gcm" | "chacha20-poly1305" | "auto";
|
|
173
176
|
uuid: string;
|
|
174
177
|
network: "tcp" | "http" | "ws" | "h2" | "grpc";
|
|
175
178
|
surgeConfig?: {
|
|
@@ -186,6 +189,7 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
186
189
|
enableTuic?: boolean | undefined;
|
|
187
190
|
enableShadowTls?: boolean | undefined;
|
|
188
191
|
enableHysteria2?: boolean | undefined;
|
|
192
|
+
enableVless?: boolean | undefined;
|
|
189
193
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
190
194
|
} | undefined;
|
|
191
195
|
mptcp?: boolean | undefined;
|
|
@@ -231,7 +235,7 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
231
235
|
type: NodeTypeEnum.Vmess;
|
|
232
236
|
nodeName: string;
|
|
233
237
|
hostname: string;
|
|
234
|
-
method: "none" | "aes-128-gcm" | "chacha20-
|
|
238
|
+
method: "none" | "aes-128-gcm" | "chacha20-poly1305" | "auto";
|
|
235
239
|
uuid: string;
|
|
236
240
|
surgeConfig?: {
|
|
237
241
|
resolveHostname?: boolean | undefined;
|
|
@@ -247,6 +251,7 @@ export declare const VmessNodeConfigValidator: z.ZodObject<{
|
|
|
247
251
|
enableTuic?: boolean | undefined;
|
|
248
252
|
enableShadowTls?: boolean | undefined;
|
|
249
253
|
enableHysteria2?: boolean | undefined;
|
|
254
|
+
enableVless?: boolean | undefined;
|
|
250
255
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
251
256
|
} | undefined;
|
|
252
257
|
mptcp?: boolean | undefined;
|
|
@@ -4,19 +4,16 @@ exports.VmessNodeConfigValidator = exports.VmessGRPCOptsValidator = exports.Vmes
|
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
6
|
const common_1 = require("./common");
|
|
7
|
-
exports.VmessNetworkValidator = zod_1.z
|
|
8
|
-
.union([
|
|
7
|
+
exports.VmessNetworkValidator = zod_1.z.union([
|
|
9
8
|
zod_1.z.literal('tcp'),
|
|
10
9
|
zod_1.z.literal('ws'),
|
|
11
10
|
zod_1.z.literal('h2'),
|
|
12
11
|
zod_1.z.literal('http'),
|
|
13
12
|
zod_1.z.literal('grpc'),
|
|
14
|
-
])
|
|
15
|
-
.default('tcp');
|
|
13
|
+
]);
|
|
16
14
|
exports.VmessMethodValidator = zod_1.z.union([
|
|
17
15
|
zod_1.z.literal('none'),
|
|
18
16
|
zod_1.z.literal('aes-128-gcm'),
|
|
19
|
-
zod_1.z.literal('chacha20-ietf-poly1305'),
|
|
20
17
|
zod_1.z.literal('chacha20-poly1305'),
|
|
21
18
|
zod_1.z.literal('auto'),
|
|
22
19
|
]);
|
|
@@ -47,7 +44,7 @@ exports.VmessNodeConfigValidator = common_1.SimpleNodeConfigValidator.extend({
|
|
|
47
44
|
method: exports.VmessMethodValidator,
|
|
48
45
|
uuid: zod_1.z.string().uuid(),
|
|
49
46
|
alterId: common_1.AlterIdValiator.optional(),
|
|
50
|
-
network: exports.VmessNetworkValidator,
|
|
47
|
+
network: exports.VmessNetworkValidator.default('tcp'),
|
|
51
48
|
udpRelay: zod_1.z.oboolean(),
|
|
52
49
|
wsOpts: exports.VmessWSOptsValidator.optional(),
|
|
53
50
|
h2Opts: exports.VmessH2OptsValidator.optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"vmess.js","sourceRoot":"","sources":["../../src/validators/vmess.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;AACvC,qCAIiB;AAEJ,QAAA,qBAAqB,GAAG,OAAC
|
|
1
|
+
{"version":3,"file":"vmess.js","sourceRoot":"","sources":["../../src/validators/vmess.ts"],"names":[],"mappings":"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"}
|
|
@@ -29,16 +29,19 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
29
29
|
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
30
|
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
31
|
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
enableVless: z.ZodOptional<z.ZodBoolean>;
|
|
32
33
|
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
34
|
}, "strip", z.ZodTypeAny, {
|
|
34
35
|
enableTuic?: boolean | undefined;
|
|
35
36
|
enableShadowTls?: boolean | undefined;
|
|
36
37
|
enableHysteria2?: boolean | undefined;
|
|
38
|
+
enableVless?: boolean | undefined;
|
|
37
39
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
40
|
}, {
|
|
39
41
|
enableTuic?: boolean | undefined;
|
|
40
42
|
enableShadowTls?: boolean | undefined;
|
|
41
43
|
enableHysteria2?: boolean | undefined;
|
|
44
|
+
enableVless?: boolean | undefined;
|
|
42
45
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
46
|
}>>;
|
|
44
47
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -125,6 +128,7 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
125
128
|
enableTuic?: boolean | undefined;
|
|
126
129
|
enableShadowTls?: boolean | undefined;
|
|
127
130
|
enableHysteria2?: boolean | undefined;
|
|
131
|
+
enableVless?: boolean | undefined;
|
|
128
132
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
129
133
|
} | undefined;
|
|
130
134
|
mptcp?: boolean | undefined;
|
|
@@ -177,6 +181,7 @@ export declare const WireguardNodeConfigValidator: z.ZodObject<{
|
|
|
177
181
|
enableTuic?: boolean | undefined;
|
|
178
182
|
enableShadowTls?: boolean | undefined;
|
|
179
183
|
enableHysteria2?: boolean | undefined;
|
|
184
|
+
enableVless?: boolean | undefined;
|
|
180
185
|
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
181
186
|
} | undefined;
|
|
182
187
|
mptcp?: boolean | undefined;
|