surgio 3.2.0 → 3.2.2
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 +2 -0
- package/build/config.js.map +1 -1
- package/build/configurables.d.ts +1 -0
- package/build/constant/constant.d.ts +0 -1
- package/build/constant/constant.js +1 -2
- package/build/constant/constant.js.map +1 -1
- package/build/generator/artifact.d.ts +1 -1
- package/build/generator/artifact.js +16 -4
- package/build/generator/artifact.js.map +1 -1
- package/build/provider/ClashProvider.js +1 -1
- package/build/provider/ClashProvider.js.map +1 -1
- package/build/utils/clash.d.ts +1 -1
- package/build/utils/clash.js +2 -2
- package/build/utils/clash.js.map +1 -1
- package/build/utils/relayable-url.d.ts +1 -1
- package/build/utils/relayable-url.js +1 -5
- package/build/utils/relayable-url.js.map +1 -1
- package/build/validators/common.d.ts +144 -0
- package/build/validators/common.js +5 -0
- package/build/validators/common.js.map +1 -1
- package/build/validators/http.d.ts +144 -0
- package/build/validators/hysteria2.d.ts +72 -0
- package/build/validators/provider.d.ts +3 -3
- package/build/validators/provider.js +1 -1
- package/build/validators/provider.js.map +1 -1
- package/build/validators/shadowsocks.d.ts +72 -0
- package/build/validators/shadowsocksr.d.ts +72 -0
- package/build/validators/snell.d.ts +72 -0
- package/build/validators/socks5.d.ts +72 -0
- package/build/validators/surgio-config.d.ts +45 -0
- package/build/validators/surgio-config.js +23 -24
- package/build/validators/surgio-config.js.map +1 -1
- package/build/validators/trojan.d.ts +72 -0
- package/build/validators/tuic.d.ts +288 -0
- package/build/validators/vmess.d.ts +72 -0
- package/build/validators/wireguard.d.ts +72 -0
- package/package.json +1 -1
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
resolveHostname?: boolean | undefined;
|
|
9
|
+
vmessAEAD?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
resolveHostname?: boolean | undefined;
|
|
12
|
+
vmessAEAD?: boolean | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
vmessAEAD?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
vmessAEAD?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
vmessAEAD?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
enableTuic?: boolean | undefined;
|
|
35
|
+
enableShadowTls?: boolean | undefined;
|
|
36
|
+
enableHysteria2?: boolean | undefined;
|
|
37
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
enableTuic?: boolean | undefined;
|
|
40
|
+
enableShadowTls?: boolean | undefined;
|
|
41
|
+
enableHysteria2?: boolean | undefined;
|
|
42
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
|
+
}>>;
|
|
4
44
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
45
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
46
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -33,6 +73,22 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
33
73
|
nodeName: string;
|
|
34
74
|
hostname: string;
|
|
35
75
|
port: string | number;
|
|
76
|
+
surgeConfig?: {
|
|
77
|
+
resolveHostname?: boolean | undefined;
|
|
78
|
+
vmessAEAD?: boolean | undefined;
|
|
79
|
+
} | undefined;
|
|
80
|
+
surfboardConfig?: {
|
|
81
|
+
vmessAEAD?: boolean | undefined;
|
|
82
|
+
} | undefined;
|
|
83
|
+
quantumultXConfig?: {
|
|
84
|
+
vmessAEAD?: boolean | undefined;
|
|
85
|
+
} | undefined;
|
|
86
|
+
clashConfig?: {
|
|
87
|
+
enableTuic?: boolean | undefined;
|
|
88
|
+
enableShadowTls?: boolean | undefined;
|
|
89
|
+
enableHysteria2?: boolean | undefined;
|
|
90
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
91
|
+
} | undefined;
|
|
36
92
|
mptcp?: boolean | undefined;
|
|
37
93
|
tfo?: boolean | undefined;
|
|
38
94
|
underlyingProxy?: string | undefined;
|
|
@@ -51,6 +107,22 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
51
107
|
nodeName: string;
|
|
52
108
|
hostname: string;
|
|
53
109
|
port: string | number;
|
|
110
|
+
surgeConfig?: {
|
|
111
|
+
resolveHostname?: boolean | undefined;
|
|
112
|
+
vmessAEAD?: boolean | undefined;
|
|
113
|
+
} | undefined;
|
|
114
|
+
surfboardConfig?: {
|
|
115
|
+
vmessAEAD?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
quantumultXConfig?: {
|
|
118
|
+
vmessAEAD?: boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
clashConfig?: {
|
|
121
|
+
enableTuic?: boolean | undefined;
|
|
122
|
+
enableShadowTls?: boolean | undefined;
|
|
123
|
+
enableHysteria2?: boolean | undefined;
|
|
124
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
125
|
+
} | undefined;
|
|
54
126
|
mptcp?: boolean | undefined;
|
|
55
127
|
tfo?: boolean | undefined;
|
|
56
128
|
underlyingProxy?: string | undefined;
|
|
@@ -64,6 +136,46 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
64
136
|
testUrl?: string | undefined;
|
|
65
137
|
}>;
|
|
66
138
|
export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
139
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
140
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
141
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
}, "strip", z.ZodTypeAny, {
|
|
143
|
+
resolveHostname?: boolean | undefined;
|
|
144
|
+
vmessAEAD?: boolean | undefined;
|
|
145
|
+
}, {
|
|
146
|
+
resolveHostname?: boolean | undefined;
|
|
147
|
+
vmessAEAD?: boolean | undefined;
|
|
148
|
+
}>>;
|
|
149
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
150
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
151
|
+
}, "strip", z.ZodTypeAny, {
|
|
152
|
+
vmessAEAD?: boolean | undefined;
|
|
153
|
+
}, {
|
|
154
|
+
vmessAEAD?: boolean | undefined;
|
|
155
|
+
}>>;
|
|
156
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
}, "strip", z.ZodTypeAny, {
|
|
159
|
+
vmessAEAD?: boolean | undefined;
|
|
160
|
+
}, {
|
|
161
|
+
vmessAEAD?: boolean | undefined;
|
|
162
|
+
}>>;
|
|
163
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
164
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
165
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
168
|
+
}, "strip", z.ZodTypeAny, {
|
|
169
|
+
enableTuic?: boolean | undefined;
|
|
170
|
+
enableShadowTls?: boolean | undefined;
|
|
171
|
+
enableHysteria2?: boolean | undefined;
|
|
172
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
173
|
+
}, {
|
|
174
|
+
enableTuic?: boolean | undefined;
|
|
175
|
+
enableShadowTls?: boolean | undefined;
|
|
176
|
+
enableHysteria2?: boolean | undefined;
|
|
177
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
178
|
+
}>>;
|
|
67
179
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
68
180
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
69
181
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -101,6 +213,22 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
101
213
|
nodeName: string;
|
|
102
214
|
hostname: string;
|
|
103
215
|
port: string | number;
|
|
216
|
+
surgeConfig?: {
|
|
217
|
+
resolveHostname?: boolean | undefined;
|
|
218
|
+
vmessAEAD?: boolean | undefined;
|
|
219
|
+
} | undefined;
|
|
220
|
+
surfboardConfig?: {
|
|
221
|
+
vmessAEAD?: boolean | undefined;
|
|
222
|
+
} | undefined;
|
|
223
|
+
quantumultXConfig?: {
|
|
224
|
+
vmessAEAD?: boolean | undefined;
|
|
225
|
+
} | undefined;
|
|
226
|
+
clashConfig?: {
|
|
227
|
+
enableTuic?: boolean | undefined;
|
|
228
|
+
enableShadowTls?: boolean | undefined;
|
|
229
|
+
enableHysteria2?: boolean | undefined;
|
|
230
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
231
|
+
} | undefined;
|
|
104
232
|
mptcp?: boolean | undefined;
|
|
105
233
|
tfo?: boolean | undefined;
|
|
106
234
|
underlyingProxy?: string | undefined;
|
|
@@ -124,6 +252,22 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
124
252
|
nodeName: string;
|
|
125
253
|
hostname: string;
|
|
126
254
|
port: string | number;
|
|
255
|
+
surgeConfig?: {
|
|
256
|
+
resolveHostname?: boolean | undefined;
|
|
257
|
+
vmessAEAD?: boolean | undefined;
|
|
258
|
+
} | undefined;
|
|
259
|
+
surfboardConfig?: {
|
|
260
|
+
vmessAEAD?: boolean | undefined;
|
|
261
|
+
} | undefined;
|
|
262
|
+
quantumultXConfig?: {
|
|
263
|
+
vmessAEAD?: boolean | undefined;
|
|
264
|
+
} | undefined;
|
|
265
|
+
clashConfig?: {
|
|
266
|
+
enableTuic?: boolean | undefined;
|
|
267
|
+
enableShadowTls?: boolean | undefined;
|
|
268
|
+
enableHysteria2?: boolean | undefined;
|
|
269
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
270
|
+
} | undefined;
|
|
127
271
|
mptcp?: boolean | undefined;
|
|
128
272
|
tfo?: boolean | undefined;
|
|
129
273
|
underlyingProxy?: string | undefined;
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
4
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
resolveHostname?: boolean | undefined;
|
|
9
|
+
vmessAEAD?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
resolveHostname?: boolean | undefined;
|
|
12
|
+
vmessAEAD?: boolean | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
vmessAEAD?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
vmessAEAD?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
vmessAEAD?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
enableTuic?: boolean | undefined;
|
|
35
|
+
enableShadowTls?: boolean | undefined;
|
|
36
|
+
enableHysteria2?: boolean | undefined;
|
|
37
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
enableTuic?: boolean | undefined;
|
|
40
|
+
enableShadowTls?: boolean | undefined;
|
|
41
|
+
enableHysteria2?: boolean | undefined;
|
|
42
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
|
+
}>>;
|
|
4
44
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
45
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
46
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -40,6 +80,22 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
40
80
|
nodeName: string;
|
|
41
81
|
hostname: string;
|
|
42
82
|
port: string | number;
|
|
83
|
+
surgeConfig?: {
|
|
84
|
+
resolveHostname?: boolean | undefined;
|
|
85
|
+
vmessAEAD?: boolean | undefined;
|
|
86
|
+
} | undefined;
|
|
87
|
+
surfboardConfig?: {
|
|
88
|
+
vmessAEAD?: boolean | undefined;
|
|
89
|
+
} | undefined;
|
|
90
|
+
quantumultXConfig?: {
|
|
91
|
+
vmessAEAD?: boolean | undefined;
|
|
92
|
+
} | undefined;
|
|
93
|
+
clashConfig?: {
|
|
94
|
+
enableTuic?: boolean | undefined;
|
|
95
|
+
enableShadowTls?: boolean | undefined;
|
|
96
|
+
enableHysteria2?: boolean | undefined;
|
|
97
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
98
|
+
} | undefined;
|
|
43
99
|
mptcp?: boolean | undefined;
|
|
44
100
|
tfo?: boolean | undefined;
|
|
45
101
|
underlyingProxy?: string | undefined;
|
|
@@ -66,6 +122,22 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
66
122
|
nodeName: string;
|
|
67
123
|
hostname: string;
|
|
68
124
|
port: string | number;
|
|
125
|
+
surgeConfig?: {
|
|
126
|
+
resolveHostname?: boolean | undefined;
|
|
127
|
+
vmessAEAD?: boolean | undefined;
|
|
128
|
+
} | undefined;
|
|
129
|
+
surfboardConfig?: {
|
|
130
|
+
vmessAEAD?: boolean | undefined;
|
|
131
|
+
} | undefined;
|
|
132
|
+
quantumultXConfig?: {
|
|
133
|
+
vmessAEAD?: boolean | undefined;
|
|
134
|
+
} | undefined;
|
|
135
|
+
clashConfig?: {
|
|
136
|
+
enableTuic?: boolean | undefined;
|
|
137
|
+
enableShadowTls?: boolean | undefined;
|
|
138
|
+
enableHysteria2?: boolean | undefined;
|
|
139
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
140
|
+
} | undefined;
|
|
69
141
|
mptcp?: boolean | undefined;
|
|
70
142
|
tfo?: boolean | undefined;
|
|
71
143
|
underlyingProxy?: string | undefined;
|
|
@@ -8,7 +8,7 @@ export declare const ProviderValidator: z.ZodObject<{
|
|
|
8
8
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
9
9
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
10
10
|
startPort: z.ZodOptional<z.ZodNumber>;
|
|
11
|
-
relayUrl: z.ZodOptional<z.
|
|
11
|
+
relayUrl: z.ZodOptional<z.ZodString>;
|
|
12
12
|
requestUserAgent: z.ZodOptional<z.ZodString>;
|
|
13
13
|
renameNode: z.ZodOptional<z.ZodFunction<z.ZodTuple<[z.ZodString], z.ZodUnknown>, z.ZodUnion<[z.ZodString, z.ZodUndefined, z.ZodVoid]>>>;
|
|
14
14
|
customFilters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnion<[z.ZodType<(nodeConfig: import("../types").PossibleNodeConfigType) => boolean, z.ZodTypeDef, (nodeConfig: import("../types").PossibleNodeConfigType) => boolean>, z.ZodType<{
|
|
@@ -57,7 +57,7 @@ export declare const ProviderValidator: z.ZodObject<{
|
|
|
57
57
|
tfo?: boolean | undefined;
|
|
58
58
|
underlyingProxy?: string | undefined;
|
|
59
59
|
startPort?: number | undefined;
|
|
60
|
-
relayUrl?: string |
|
|
60
|
+
relayUrl?: string | undefined;
|
|
61
61
|
requestUserAgent?: string | undefined;
|
|
62
62
|
renameNode?: ((args_0: string, ...args_1: unknown[]) => string | void | undefined) | undefined;
|
|
63
63
|
customFilters?: Record<string, ((nodeConfig: import("../types").PossibleNodeConfigType) => boolean) | {
|
|
@@ -88,7 +88,7 @@ export declare const ProviderValidator: z.ZodObject<{
|
|
|
88
88
|
tfo?: boolean | undefined;
|
|
89
89
|
underlyingProxy?: string | undefined;
|
|
90
90
|
startPort?: number | undefined;
|
|
91
|
-
relayUrl?: string |
|
|
91
|
+
relayUrl?: string | undefined;
|
|
92
92
|
requestUserAgent?: string | undefined;
|
|
93
93
|
renameNode?: ((args_0: string, ...args_1: unknown[]) => string | void | undefined) | undefined;
|
|
94
94
|
customFilters?: Record<string, ((nodeConfig: import("../types").PossibleNodeConfigType) => boolean) | {
|
|
@@ -13,7 +13,7 @@ exports.ProviderValidator = zod_1.z.object({
|
|
|
13
13
|
tfo: zod_1.z.oboolean(),
|
|
14
14
|
underlyingProxy: zod_1.z.ostring(),
|
|
15
15
|
startPort: zod_1.z.number().min(1024).max(65535).optional(),
|
|
16
|
-
relayUrl: zod_1.z.
|
|
16
|
+
relayUrl: zod_1.z.string().url().optional(),
|
|
17
17
|
requestUserAgent: zod_1.z.ostring(),
|
|
18
18
|
renameNode: zod_1.z
|
|
19
19
|
.function()
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/validators/provider.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAA8C;AAC9C,qCAGiB;AACjB,mCAGgB;AAEH,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,QAAQ,EAAE;IACrB,kBAAkB,EAAE,OAAC,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,QAAQ,EAAE;IACnB,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,OAAC,CAAC,
|
|
1
|
+
{"version":3,"file":"provider.js","sourceRoot":"","sources":["../../src/validators/provider.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAA8C;AAC9C,qCAGiB;AACjB,mCAGgB;AAEH,QAAA,iBAAiB,GAAG,OAAC,CAAC,MAAM,CAAC;IACxC,IAAI,EAAE,OAAC,CAAC,UAAU,CAAC,2BAAmB,CAAC;IACvC,OAAO,EAAE,OAAC,CAAC,QAAQ,EAAE;IACrB,kBAAkB,EAAE,OAAC,CAAC,QAAQ,EAAE;IAChC,KAAK,EAAE,OAAC,CAAC,QAAQ,EAAE;IACnB,GAAG,EAAE,OAAC,CAAC,QAAQ,EAAE;IACjB,eAAe,EAAE,OAAC,CAAC,OAAO,EAAE;IAC5B,SAAS,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,QAAQ,EAAE;IACrD,QAAQ,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACrC,gBAAgB,EAAE,OAAC,CAAC,OAAO,EAAE;IAC7B,UAAU,EAAE,OAAC;SACV,QAAQ,EAAE;SACV,IAAI,CAAC,OAAC,CAAC,MAAM,EAAE,CAAC;SAChB,OAAO,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,OAAC,CAAC,MAAM,EAAE,EAAE,OAAC,CAAC,SAAS,EAAE,EAAE,OAAC,CAAC,IAAI,EAAE,CAAC,CAAC,CAAC;SACvD,QAAQ,EAAE;IACb,aAAa,EAAE,OAAC;SACb,MAAM,CAAC,OAAC,CAAC,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC,CAAC;SACzE,QAAQ,EAAE;IACb,UAAU,EAAE,OAAC;SACV,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,aAAa,EAAE,OAAC;SACb,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,oBAAoB,EAAE,OAAC;SACpB,KAAK,CAAC,CAAC,gCAAuB,EAAE,sCAA6B,CAAC,CAAC;SAC/D,QAAQ,EAAE;IACb,KAAK,EAAE,OAAC;SACL,MAAM,CAAC;QACN,qBAAqB,EAAE,0CAAkC,CAAC,QAAQ,EAAE;QACpE,OAAO,EAAE,4BAAoB,CAAC,QAAQ,EAAE;KACzC,CAAC;SACD,QAAQ,EAAE;CACd,CAAC,CAAA"}
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
resolveHostname?: boolean | undefined;
|
|
9
|
+
vmessAEAD?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
resolveHostname?: boolean | undefined;
|
|
12
|
+
vmessAEAD?: boolean | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
vmessAEAD?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
vmessAEAD?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
vmessAEAD?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
enableTuic?: boolean | undefined;
|
|
35
|
+
enableShadowTls?: boolean | undefined;
|
|
36
|
+
enableHysteria2?: boolean | undefined;
|
|
37
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
enableTuic?: boolean | undefined;
|
|
40
|
+
enableShadowTls?: boolean | undefined;
|
|
41
|
+
enableHysteria2?: boolean | undefined;
|
|
42
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
|
+
}>>;
|
|
4
44
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
45
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
46
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -41,6 +81,22 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
41
81
|
hostname: string;
|
|
42
82
|
port: string | number;
|
|
43
83
|
method: string;
|
|
84
|
+
surgeConfig?: {
|
|
85
|
+
resolveHostname?: boolean | undefined;
|
|
86
|
+
vmessAEAD?: boolean | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
surfboardConfig?: {
|
|
89
|
+
vmessAEAD?: boolean | undefined;
|
|
90
|
+
} | undefined;
|
|
91
|
+
quantumultXConfig?: {
|
|
92
|
+
vmessAEAD?: boolean | undefined;
|
|
93
|
+
} | undefined;
|
|
94
|
+
clashConfig?: {
|
|
95
|
+
enableTuic?: boolean | undefined;
|
|
96
|
+
enableShadowTls?: boolean | undefined;
|
|
97
|
+
enableHysteria2?: boolean | undefined;
|
|
98
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
99
|
+
} | undefined;
|
|
44
100
|
mptcp?: boolean | undefined;
|
|
45
101
|
tfo?: boolean | undefined;
|
|
46
102
|
underlyingProxy?: string | undefined;
|
|
@@ -67,6 +123,22 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
67
123
|
hostname: string;
|
|
68
124
|
port: string | number;
|
|
69
125
|
method: string;
|
|
126
|
+
surgeConfig?: {
|
|
127
|
+
resolveHostname?: boolean | undefined;
|
|
128
|
+
vmessAEAD?: boolean | undefined;
|
|
129
|
+
} | undefined;
|
|
130
|
+
surfboardConfig?: {
|
|
131
|
+
vmessAEAD?: boolean | undefined;
|
|
132
|
+
} | undefined;
|
|
133
|
+
quantumultXConfig?: {
|
|
134
|
+
vmessAEAD?: boolean | undefined;
|
|
135
|
+
} | undefined;
|
|
136
|
+
clashConfig?: {
|
|
137
|
+
enableTuic?: boolean | undefined;
|
|
138
|
+
enableShadowTls?: boolean | undefined;
|
|
139
|
+
enableHysteria2?: boolean | undefined;
|
|
140
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
141
|
+
} | undefined;
|
|
70
142
|
mptcp?: boolean | undefined;
|
|
71
143
|
tfo?: boolean | undefined;
|
|
72
144
|
underlyingProxy?: string | undefined;
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const ShadowsocksrNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
resolveHostname?: boolean | undefined;
|
|
9
|
+
vmessAEAD?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
resolveHostname?: boolean | undefined;
|
|
12
|
+
vmessAEAD?: boolean | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
vmessAEAD?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
vmessAEAD?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
vmessAEAD?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
enableTuic?: boolean | undefined;
|
|
35
|
+
enableShadowTls?: boolean | undefined;
|
|
36
|
+
enableHysteria2?: boolean | undefined;
|
|
37
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
enableTuic?: boolean | undefined;
|
|
40
|
+
enableShadowTls?: boolean | undefined;
|
|
41
|
+
enableHysteria2?: boolean | undefined;
|
|
42
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
|
+
}>>;
|
|
4
44
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
45
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
46
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -42,6 +82,22 @@ export declare const ShadowsocksrNodeConfigValidator: z.ZodObject<{
|
|
|
42
82
|
obfsparam: string;
|
|
43
83
|
protocol: string;
|
|
44
84
|
protoparam: string;
|
|
85
|
+
surgeConfig?: {
|
|
86
|
+
resolveHostname?: boolean | undefined;
|
|
87
|
+
vmessAEAD?: boolean | undefined;
|
|
88
|
+
} | undefined;
|
|
89
|
+
surfboardConfig?: {
|
|
90
|
+
vmessAEAD?: boolean | undefined;
|
|
91
|
+
} | undefined;
|
|
92
|
+
quantumultXConfig?: {
|
|
93
|
+
vmessAEAD?: boolean | undefined;
|
|
94
|
+
} | undefined;
|
|
95
|
+
clashConfig?: {
|
|
96
|
+
enableTuic?: boolean | undefined;
|
|
97
|
+
enableShadowTls?: boolean | undefined;
|
|
98
|
+
enableHysteria2?: boolean | undefined;
|
|
99
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
100
|
+
} | undefined;
|
|
45
101
|
mptcp?: boolean | undefined;
|
|
46
102
|
tfo?: boolean | undefined;
|
|
47
103
|
underlyingProxy?: string | undefined;
|
|
@@ -65,6 +121,22 @@ export declare const ShadowsocksrNodeConfigValidator: z.ZodObject<{
|
|
|
65
121
|
obfsparam: string;
|
|
66
122
|
protocol: string;
|
|
67
123
|
protoparam: string;
|
|
124
|
+
surgeConfig?: {
|
|
125
|
+
resolveHostname?: boolean | undefined;
|
|
126
|
+
vmessAEAD?: boolean | undefined;
|
|
127
|
+
} | undefined;
|
|
128
|
+
surfboardConfig?: {
|
|
129
|
+
vmessAEAD?: boolean | undefined;
|
|
130
|
+
} | undefined;
|
|
131
|
+
quantumultXConfig?: {
|
|
132
|
+
vmessAEAD?: boolean | undefined;
|
|
133
|
+
} | undefined;
|
|
134
|
+
clashConfig?: {
|
|
135
|
+
enableTuic?: boolean | undefined;
|
|
136
|
+
enableShadowTls?: boolean | undefined;
|
|
137
|
+
enableHysteria2?: boolean | undefined;
|
|
138
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
139
|
+
} | undefined;
|
|
68
140
|
mptcp?: boolean | undefined;
|
|
69
141
|
tfo?: boolean | undefined;
|
|
70
142
|
underlyingProxy?: string | undefined;
|
|
@@ -1,6 +1,46 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const SnellNodeConfigValidator: z.ZodObject<{
|
|
4
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
6
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
resolveHostname?: boolean | undefined;
|
|
9
|
+
vmessAEAD?: boolean | undefined;
|
|
10
|
+
}, {
|
|
11
|
+
resolveHostname?: boolean | undefined;
|
|
12
|
+
vmessAEAD?: boolean | undefined;
|
|
13
|
+
}>>;
|
|
14
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
15
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
16
|
+
}, "strip", z.ZodTypeAny, {
|
|
17
|
+
vmessAEAD?: boolean | undefined;
|
|
18
|
+
}, {
|
|
19
|
+
vmessAEAD?: boolean | undefined;
|
|
20
|
+
}>>;
|
|
21
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
22
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
}, "strip", z.ZodTypeAny, {
|
|
24
|
+
vmessAEAD?: boolean | undefined;
|
|
25
|
+
}, {
|
|
26
|
+
vmessAEAD?: boolean | undefined;
|
|
27
|
+
}>>;
|
|
28
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
29
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
33
|
+
}, "strip", z.ZodTypeAny, {
|
|
34
|
+
enableTuic?: boolean | undefined;
|
|
35
|
+
enableShadowTls?: boolean | undefined;
|
|
36
|
+
enableHysteria2?: boolean | undefined;
|
|
37
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
38
|
+
}, {
|
|
39
|
+
enableTuic?: boolean | undefined;
|
|
40
|
+
enableShadowTls?: boolean | undefined;
|
|
41
|
+
enableHysteria2?: boolean | undefined;
|
|
42
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
43
|
+
}>>;
|
|
4
44
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
45
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
46
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -35,6 +75,22 @@ export declare const SnellNodeConfigValidator: z.ZodObject<{
|
|
|
35
75
|
hostname: string;
|
|
36
76
|
port: string | number;
|
|
37
77
|
psk: string;
|
|
78
|
+
surgeConfig?: {
|
|
79
|
+
resolveHostname?: boolean | undefined;
|
|
80
|
+
vmessAEAD?: boolean | undefined;
|
|
81
|
+
} | undefined;
|
|
82
|
+
surfboardConfig?: {
|
|
83
|
+
vmessAEAD?: boolean | undefined;
|
|
84
|
+
} | undefined;
|
|
85
|
+
quantumultXConfig?: {
|
|
86
|
+
vmessAEAD?: boolean | undefined;
|
|
87
|
+
} | undefined;
|
|
88
|
+
clashConfig?: {
|
|
89
|
+
enableTuic?: boolean | undefined;
|
|
90
|
+
enableShadowTls?: boolean | undefined;
|
|
91
|
+
enableHysteria2?: boolean | undefined;
|
|
92
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
93
|
+
} | undefined;
|
|
38
94
|
mptcp?: boolean | undefined;
|
|
39
95
|
tfo?: boolean | undefined;
|
|
40
96
|
underlyingProxy?: string | undefined;
|
|
@@ -56,6 +112,22 @@ export declare const SnellNodeConfigValidator: z.ZodObject<{
|
|
|
56
112
|
hostname: string;
|
|
57
113
|
port: string | number;
|
|
58
114
|
psk: string;
|
|
115
|
+
surgeConfig?: {
|
|
116
|
+
resolveHostname?: boolean | undefined;
|
|
117
|
+
vmessAEAD?: boolean | undefined;
|
|
118
|
+
} | undefined;
|
|
119
|
+
surfboardConfig?: {
|
|
120
|
+
vmessAEAD?: boolean | undefined;
|
|
121
|
+
} | undefined;
|
|
122
|
+
quantumultXConfig?: {
|
|
123
|
+
vmessAEAD?: boolean | undefined;
|
|
124
|
+
} | undefined;
|
|
125
|
+
clashConfig?: {
|
|
126
|
+
enableTuic?: boolean | undefined;
|
|
127
|
+
enableShadowTls?: boolean | undefined;
|
|
128
|
+
enableHysteria2?: boolean | undefined;
|
|
129
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
130
|
+
} | undefined;
|
|
59
131
|
mptcp?: boolean | undefined;
|
|
60
132
|
tfo?: boolean | undefined;
|
|
61
133
|
underlyingProxy?: string | undefined;
|