surgio 3.2.1 → 3.2.3
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.d.ts +1 -0
- package/build/base-command.js +8 -1
- package/build/base-command.js.map +1 -1
- package/build/commands/check.js +1 -2
- package/build/commands/check.js.map +1 -1
- package/build/commands/clean-cache.js +1 -2
- package/build/commands/clean-cache.js.map +1 -1
- package/build/commands/doctor.js +1 -2
- package/build/commands/doctor.js.map +1 -1
- package/build/commands/generate.js +1 -2
- package/build/commands/generate.js.map +1 -1
- package/build/commands/lint.js +1 -0
- package/build/commands/lint.js.map +1 -1
- package/build/commands/new.js +3 -2
- package/build/commands/new.js.map +1 -1
- package/build/commands/subscriptions.js +1 -2
- package/build/commands/subscriptions.js.map +1 -1
- package/build/commands/upload.js +1 -3
- package/build/commands/upload.js.map +1 -1
- package/build/configurables.d.ts +1 -1
- package/build/utils/cache.d.ts +1 -1
- package/build/utils/loon.js +6 -0
- package/build/utils/loon.js.map +1 -1
- package/build/utils/remote-snippet.js +1 -0
- package/build/utils/remote-snippet.js.map +1 -1
- package/build/utils/surge.js +5 -6
- package/build/utils/surge.js.map +1 -1
- package/build/validators/common.d.ts +146 -2
- package/build/validators/common.js +5 -0
- package/build/validators/common.js.map +1 -1
- package/build/validators/http.d.ts +149 -5
- package/build/validators/hysteria2.d.ts +75 -3
- package/build/validators/shadowsocks.d.ts +74 -2
- package/build/validators/shadowsocksr.d.ts +74 -2
- package/build/validators/snell.d.ts +74 -2
- package/build/validators/socks5.d.ts +74 -2
- package/build/validators/surgio-config.d.ts +44 -4
- package/build/validators/surgio-config.js +23 -31
- package/build/validators/surgio-config.js.map +1 -1
- package/build/validators/trojan.d.ts +75 -3
- package/build/validators/tuic.d.ts +300 -12
- package/build/validators/vmess.d.ts +74 -2
- package/build/validators/wireguard.d.ts +72 -0
- package/hygen-template/artifact/new/index.js +2 -2
- package/hygen-template/provider/new/index.js +10 -5
- package/hygen-template/provider/new/template.ejs.t +2 -2
- package/package.json +1 -1
|
@@ -26,6 +26,46 @@ export declare const SimpleNodeConfigValidator: z.ZodObject<{
|
|
|
26
26
|
}>>;
|
|
27
27
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
28
28
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
29
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
}, "strip", z.ZodTypeAny, {
|
|
33
|
+
resolveHostname?: boolean | undefined;
|
|
34
|
+
vmessAEAD?: boolean | undefined;
|
|
35
|
+
}, {
|
|
36
|
+
resolveHostname?: boolean | undefined;
|
|
37
|
+
vmessAEAD?: boolean | undefined;
|
|
38
|
+
}>>;
|
|
39
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
40
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
41
|
+
}, "strip", z.ZodTypeAny, {
|
|
42
|
+
vmessAEAD?: boolean | undefined;
|
|
43
|
+
}, {
|
|
44
|
+
vmessAEAD?: boolean | undefined;
|
|
45
|
+
}>>;
|
|
46
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
47
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
48
|
+
}, "strip", z.ZodTypeAny, {
|
|
49
|
+
vmessAEAD?: boolean | undefined;
|
|
50
|
+
}, {
|
|
51
|
+
vmessAEAD?: boolean | undefined;
|
|
52
|
+
}>>;
|
|
53
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
54
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
55
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
56
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
57
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
58
|
+
}, "strip", z.ZodTypeAny, {
|
|
59
|
+
enableTuic?: boolean | undefined;
|
|
60
|
+
enableShadowTls?: boolean | undefined;
|
|
61
|
+
enableHysteria2?: boolean | undefined;
|
|
62
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
enableTuic?: boolean | undefined;
|
|
65
|
+
enableShadowTls?: boolean | undefined;
|
|
66
|
+
enableHysteria2?: boolean | undefined;
|
|
67
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
68
|
+
}>>;
|
|
29
69
|
}, "strip", z.ZodTypeAny, {
|
|
30
70
|
type: NodeTypeEnum;
|
|
31
71
|
nodeName: string;
|
|
@@ -40,6 +80,22 @@ export declare const SimpleNodeConfigValidator: z.ZodObject<{
|
|
|
40
80
|
} | undefined;
|
|
41
81
|
underlyingProxy?: string | undefined;
|
|
42
82
|
testUrl?: string | undefined;
|
|
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
|
}, {
|
|
44
100
|
type: NodeTypeEnum;
|
|
45
101
|
nodeName: string;
|
|
@@ -54,9 +110,65 @@ export declare const SimpleNodeConfigValidator: z.ZodObject<{
|
|
|
54
110
|
} | undefined;
|
|
55
111
|
underlyingProxy?: string | undefined;
|
|
56
112
|
testUrl?: string | undefined;
|
|
113
|
+
surgeConfig?: {
|
|
114
|
+
resolveHostname?: boolean | undefined;
|
|
115
|
+
vmessAEAD?: boolean | undefined;
|
|
116
|
+
} | undefined;
|
|
117
|
+
surfboardConfig?: {
|
|
118
|
+
vmessAEAD?: boolean | undefined;
|
|
119
|
+
} | undefined;
|
|
120
|
+
quantumultXConfig?: {
|
|
121
|
+
vmessAEAD?: boolean | undefined;
|
|
122
|
+
} | undefined;
|
|
123
|
+
clashConfig?: {
|
|
124
|
+
enableTuic?: boolean | undefined;
|
|
125
|
+
enableShadowTls?: boolean | undefined;
|
|
126
|
+
enableHysteria2?: boolean | undefined;
|
|
127
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
128
|
+
} | undefined;
|
|
57
129
|
}>;
|
|
58
130
|
export declare const TlsNodeConfigValidator: z.ZodObject<{
|
|
59
131
|
type: z.ZodNativeEnum<typeof NodeTypeEnum>;
|
|
132
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
133
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
134
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
135
|
+
}, "strip", z.ZodTypeAny, {
|
|
136
|
+
resolveHostname?: boolean | undefined;
|
|
137
|
+
vmessAEAD?: boolean | undefined;
|
|
138
|
+
}, {
|
|
139
|
+
resolveHostname?: boolean | undefined;
|
|
140
|
+
vmessAEAD?: boolean | undefined;
|
|
141
|
+
}>>;
|
|
142
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
143
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
144
|
+
}, "strip", z.ZodTypeAny, {
|
|
145
|
+
vmessAEAD?: boolean | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
vmessAEAD?: boolean | undefined;
|
|
148
|
+
}>>;
|
|
149
|
+
quantumultXConfig: 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
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
157
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
158
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
160
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
161
|
+
}, "strip", z.ZodTypeAny, {
|
|
162
|
+
enableTuic?: boolean | undefined;
|
|
163
|
+
enableShadowTls?: boolean | undefined;
|
|
164
|
+
enableHysteria2?: boolean | undefined;
|
|
165
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
166
|
+
}, {
|
|
167
|
+
enableTuic?: boolean | undefined;
|
|
168
|
+
enableShadowTls?: boolean | undefined;
|
|
169
|
+
enableHysteria2?: boolean | undefined;
|
|
170
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
171
|
+
}>>;
|
|
60
172
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
61
173
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
62
174
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -85,10 +197,26 @@ export declare const TlsNodeConfigValidator: z.ZodObject<{
|
|
|
85
197
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
86
198
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
87
199
|
}, "strip", z.ZodTypeAny, {
|
|
200
|
+
port: string | number;
|
|
88
201
|
type: NodeTypeEnum;
|
|
89
202
|
nodeName: string;
|
|
90
203
|
hostname: string;
|
|
91
|
-
|
|
204
|
+
surgeConfig?: {
|
|
205
|
+
resolveHostname?: boolean | undefined;
|
|
206
|
+
vmessAEAD?: boolean | undefined;
|
|
207
|
+
} | undefined;
|
|
208
|
+
surfboardConfig?: {
|
|
209
|
+
vmessAEAD?: boolean | undefined;
|
|
210
|
+
} | undefined;
|
|
211
|
+
quantumultXConfig?: {
|
|
212
|
+
vmessAEAD?: boolean | undefined;
|
|
213
|
+
} | undefined;
|
|
214
|
+
clashConfig?: {
|
|
215
|
+
enableTuic?: boolean | undefined;
|
|
216
|
+
enableShadowTls?: boolean | undefined;
|
|
217
|
+
enableHysteria2?: boolean | undefined;
|
|
218
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
219
|
+
} | undefined;
|
|
92
220
|
mptcp?: boolean | undefined;
|
|
93
221
|
tfo?: boolean | undefined;
|
|
94
222
|
underlyingProxy?: string | undefined;
|
|
@@ -106,10 +234,26 @@ export declare const TlsNodeConfigValidator: z.ZodObject<{
|
|
|
106
234
|
alpn?: [string, ...string[]] | undefined;
|
|
107
235
|
serverCertFingerprintSha256?: string | undefined;
|
|
108
236
|
}, {
|
|
237
|
+
port: string | number;
|
|
109
238
|
type: NodeTypeEnum;
|
|
110
239
|
nodeName: string;
|
|
111
240
|
hostname: string;
|
|
112
|
-
|
|
241
|
+
surgeConfig?: {
|
|
242
|
+
resolveHostname?: boolean | undefined;
|
|
243
|
+
vmessAEAD?: boolean | undefined;
|
|
244
|
+
} | undefined;
|
|
245
|
+
surfboardConfig?: {
|
|
246
|
+
vmessAEAD?: boolean | undefined;
|
|
247
|
+
} | undefined;
|
|
248
|
+
quantumultXConfig?: {
|
|
249
|
+
vmessAEAD?: boolean | undefined;
|
|
250
|
+
} | undefined;
|
|
251
|
+
clashConfig?: {
|
|
252
|
+
enableTuic?: boolean | undefined;
|
|
253
|
+
enableShadowTls?: boolean | undefined;
|
|
254
|
+
enableHysteria2?: boolean | undefined;
|
|
255
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
256
|
+
} | undefined;
|
|
113
257
|
mptcp?: boolean | undefined;
|
|
114
258
|
tfo?: boolean | undefined;
|
|
115
259
|
underlyingProxy?: string | undefined;
|
|
@@ -3,6 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.TlsNodeConfigValidator = exports.SimpleNodeConfigValidator = exports.IntegersVersionValidator = exports.AlterIdValiator = exports.PortValidator = exports.getPositiveIntegersNumberValidatior = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const types_1 = require("../types");
|
|
6
|
+
const surgio_config_1 = require("./surgio-config");
|
|
6
7
|
const getPositiveIntegersNumberValidatior = (validator, message) => zod_1.z.union([zod_1.z.string(), zod_1.z.number()]).transform((v, ctx) => {
|
|
7
8
|
const num = Number(v);
|
|
8
9
|
const isInputString = typeof v === 'string';
|
|
@@ -54,6 +55,10 @@ exports.SimpleNodeConfigValidator = zod_1.z.object({
|
|
|
54
55
|
// Misc
|
|
55
56
|
underlyingProxy: zod_1.z.string().optional(),
|
|
56
57
|
testUrl: zod_1.z.string().optional(),
|
|
58
|
+
surgeConfig: surgio_config_1.SurgeConfigValidator.optional(),
|
|
59
|
+
surfboardConfig: surgio_config_1.SurfboardConfigValidator.optional(),
|
|
60
|
+
quantumultXConfig: surgio_config_1.QuantumultXConfigValidator.optional(),
|
|
61
|
+
clashConfig: surgio_config_1.ClashConfigValidator.optional(),
|
|
57
62
|
});
|
|
58
63
|
exports.TlsNodeConfigValidator = exports.SimpleNodeConfigValidator.extend({
|
|
59
64
|
hostname: zod_1.z.string(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/validators/common.ts"],"names":[],"mappings":";;;AAAA,6BAAuB;AAEvB,oCAAuC;
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../src/validators/common.ts"],"names":[],"mappings":"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"}
|
|
@@ -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>;
|
|
@@ -27,12 +67,28 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
27
67
|
username: z.ZodString;
|
|
28
68
|
password: z.ZodString;
|
|
29
69
|
}, "strip", z.ZodTypeAny, {
|
|
70
|
+
port: string | number;
|
|
30
71
|
type: NodeTypeEnum.HTTP;
|
|
31
72
|
username: string;
|
|
32
73
|
password: string;
|
|
33
74
|
nodeName: string;
|
|
34
75
|
hostname: string;
|
|
35
|
-
|
|
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;
|
|
@@ -45,12 +101,28 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
45
101
|
} | undefined;
|
|
46
102
|
testUrl?: string | undefined;
|
|
47
103
|
}, {
|
|
104
|
+
port: string | number;
|
|
48
105
|
type: NodeTypeEnum.HTTP;
|
|
49
106
|
username: string;
|
|
50
107
|
password: string;
|
|
51
108
|
nodeName: string;
|
|
52
109
|
hostname: string;
|
|
53
|
-
|
|
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,47 @@ export declare const HttpNodeConfigValidator: z.ZodObject<{
|
|
|
64
136
|
testUrl?: string | undefined;
|
|
65
137
|
}>;
|
|
66
138
|
export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
139
|
+
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
140
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
141
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
142
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
143
|
+
}, "strip", z.ZodTypeAny, {
|
|
144
|
+
resolveHostname?: boolean | undefined;
|
|
145
|
+
vmessAEAD?: boolean | undefined;
|
|
146
|
+
}, {
|
|
147
|
+
resolveHostname?: boolean | undefined;
|
|
148
|
+
vmessAEAD?: boolean | undefined;
|
|
149
|
+
}>>;
|
|
150
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
151
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
152
|
+
}, "strip", z.ZodTypeAny, {
|
|
153
|
+
vmessAEAD?: boolean | undefined;
|
|
154
|
+
}, {
|
|
155
|
+
vmessAEAD?: boolean | undefined;
|
|
156
|
+
}>>;
|
|
157
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
158
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
159
|
+
}, "strip", z.ZodTypeAny, {
|
|
160
|
+
vmessAEAD?: boolean | undefined;
|
|
161
|
+
}, {
|
|
162
|
+
vmessAEAD?: boolean | undefined;
|
|
163
|
+
}>>;
|
|
164
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
166
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
167
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
168
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
169
|
+
}, "strip", z.ZodTypeAny, {
|
|
170
|
+
enableTuic?: boolean | undefined;
|
|
171
|
+
enableShadowTls?: boolean | undefined;
|
|
172
|
+
enableHysteria2?: boolean | undefined;
|
|
173
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
174
|
+
}, {
|
|
175
|
+
enableTuic?: boolean | undefined;
|
|
176
|
+
enableShadowTls?: boolean | undefined;
|
|
177
|
+
enableHysteria2?: boolean | undefined;
|
|
178
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
179
|
+
}>>;
|
|
67
180
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
68
181
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
69
182
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -87,7 +200,6 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
87
200
|
}>>;
|
|
88
201
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
89
202
|
hostname: z.ZodString;
|
|
90
|
-
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
91
203
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
92
204
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
93
205
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -95,12 +207,28 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
95
207
|
username: z.ZodString;
|
|
96
208
|
password: z.ZodString;
|
|
97
209
|
}, "strip", z.ZodTypeAny, {
|
|
210
|
+
port: string | number;
|
|
98
211
|
type: NodeTypeEnum.HTTPS;
|
|
99
212
|
username: string;
|
|
100
213
|
password: string;
|
|
101
214
|
nodeName: string;
|
|
102
215
|
hostname: string;
|
|
103
|
-
|
|
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;
|
|
@@ -118,12 +246,28 @@ export declare const HttpsNodeConfigValidator: z.ZodObject<{
|
|
|
118
246
|
alpn?: [string, ...string[]] | undefined;
|
|
119
247
|
serverCertFingerprintSha256?: string | undefined;
|
|
120
248
|
}, {
|
|
249
|
+
port: string | number;
|
|
121
250
|
type: NodeTypeEnum.HTTPS;
|
|
122
251
|
username: string;
|
|
123
252
|
password: string;
|
|
124
253
|
nodeName: string;
|
|
125
254
|
hostname: string;
|
|
126
|
-
|
|
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,47 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { NodeTypeEnum } from '../types';
|
|
3
3
|
export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
4
|
+
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
5
|
+
surgeConfig: z.ZodOptional<z.ZodObject<{
|
|
6
|
+
resolveHostname: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, "strip", z.ZodTypeAny, {
|
|
9
|
+
resolveHostname?: boolean | undefined;
|
|
10
|
+
vmessAEAD?: boolean | undefined;
|
|
11
|
+
}, {
|
|
12
|
+
resolveHostname?: boolean | undefined;
|
|
13
|
+
vmessAEAD?: boolean | undefined;
|
|
14
|
+
}>>;
|
|
15
|
+
surfboardConfig: z.ZodOptional<z.ZodObject<{
|
|
16
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
}, "strip", z.ZodTypeAny, {
|
|
18
|
+
vmessAEAD?: boolean | undefined;
|
|
19
|
+
}, {
|
|
20
|
+
vmessAEAD?: boolean | undefined;
|
|
21
|
+
}>>;
|
|
22
|
+
quantumultXConfig: z.ZodOptional<z.ZodObject<{
|
|
23
|
+
vmessAEAD: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
vmessAEAD?: boolean | undefined;
|
|
26
|
+
}, {
|
|
27
|
+
vmessAEAD?: boolean | undefined;
|
|
28
|
+
}>>;
|
|
29
|
+
clashConfig: z.ZodOptional<z.ZodObject<{
|
|
30
|
+
enableTuic: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
enableShadowTls: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
enableHysteria2: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
clashCore: z.ZodOptional<z.ZodUnion<[z.ZodLiteral<"clash">, z.ZodLiteral<"clash.meta">, z.ZodLiteral<"stash">]>>;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
35
|
+
enableTuic?: boolean | undefined;
|
|
36
|
+
enableShadowTls?: boolean | undefined;
|
|
37
|
+
enableHysteria2?: boolean | undefined;
|
|
38
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
39
|
+
}, {
|
|
40
|
+
enableTuic?: boolean | undefined;
|
|
41
|
+
enableShadowTls?: boolean | undefined;
|
|
42
|
+
enableHysteria2?: boolean | undefined;
|
|
43
|
+
clashCore?: "clash" | "clash.meta" | "stash" | undefined;
|
|
44
|
+
}>>;
|
|
4
45
|
mptcp: z.ZodOptional<z.ZodBoolean>;
|
|
5
46
|
tfo: z.ZodOptional<z.ZodBoolean>;
|
|
6
47
|
underlyingProxy: z.ZodOptional<z.ZodString>;
|
|
@@ -24,7 +65,6 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
24
65
|
}>>;
|
|
25
66
|
testUrl: z.ZodOptional<z.ZodString>;
|
|
26
67
|
hostname: z.ZodString;
|
|
27
|
-
port: z.ZodEffects<z.ZodUnion<[z.ZodString, z.ZodNumber]>, string | number, string | number>;
|
|
28
68
|
skipCertVerify: z.ZodOptional<z.ZodBoolean>;
|
|
29
69
|
alpn: z.ZodOptional<z.ZodArray<z.ZodString, "atleastone">>;
|
|
30
70
|
serverCertFingerprintSha256: z.ZodOptional<z.ZodString>;
|
|
@@ -35,11 +75,27 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
35
75
|
obfs: z.ZodOptional<z.ZodLiteral<"salamander">>;
|
|
36
76
|
obfsPassword: z.ZodOptional<z.ZodString>;
|
|
37
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
port: string | number;
|
|
38
79
|
type: NodeTypeEnum.Hysteria2;
|
|
39
80
|
password: string;
|
|
40
81
|
nodeName: string;
|
|
41
82
|
hostname: string;
|
|
42
|
-
|
|
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;
|
|
@@ -61,11 +117,27 @@ export declare const Hysteria2NodeConfigValidator: z.ZodObject<{
|
|
|
61
117
|
obfs?: "salamander" | undefined;
|
|
62
118
|
obfsPassword?: string | undefined;
|
|
63
119
|
}, {
|
|
120
|
+
port: string | number;
|
|
64
121
|
type: NodeTypeEnum.Hysteria2;
|
|
65
122
|
password: string;
|
|
66
123
|
nodeName: string;
|
|
67
124
|
hostname: string;
|
|
68
|
-
|
|
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;
|
|
@@ -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>;
|
|
@@ -35,12 +75,28 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
35
75
|
tls13: z.ZodOptional<z.ZodBoolean>;
|
|
36
76
|
mux: z.ZodOptional<z.ZodBoolean>;
|
|
37
77
|
}, "strip", z.ZodTypeAny, {
|
|
78
|
+
port: string | number;
|
|
38
79
|
type: NodeTypeEnum.Shadowsocks;
|
|
39
80
|
password: string;
|
|
40
81
|
nodeName: string;
|
|
41
82
|
hostname: string;
|
|
42
|
-
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;
|
|
@@ -61,12 +117,28 @@ export declare const ShadowsocksNodeConfigValidator: z.ZodObject<{
|
|
|
61
117
|
tls13?: boolean | undefined;
|
|
62
118
|
mux?: boolean | undefined;
|
|
63
119
|
}, {
|
|
120
|
+
port: string | number;
|
|
64
121
|
type: NodeTypeEnum.Shadowsocks;
|
|
65
122
|
password: string;
|
|
66
123
|
nodeName: string;
|
|
67
124
|
hostname: string;
|
|
68
|
-
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;
|