@remnawave/backend-contract 3.3.2 → 3.3.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/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +126 -108
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.d.ts +207 -107
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -1
- package/build/backend/models/resolved-proxy-config.schema.js +19 -35
- package/build/frontend/models/resolved-proxy-config.schema.js +19 -35
- package/package.json +1 -1
package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts
CHANGED
|
@@ -70,116 +70,10 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
70
70
|
}, z.core.$strip>>;
|
|
71
71
|
}, z.core.$strip>;
|
|
72
72
|
headers: z.ZodRecord<z.ZodString, z.ZodOptional<z.ZodString>>;
|
|
73
|
-
resolvedProxyConfigs: z.ZodArray<z.ZodObject<{
|
|
73
|
+
resolvedProxyConfigs: z.ZodArray<z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
74
74
|
finalRemark: z.ZodString;
|
|
75
75
|
address: z.ZodString;
|
|
76
76
|
port: z.ZodInt;
|
|
77
|
-
protocol: z.ZodEnum<{
|
|
78
|
-
vless: "vless";
|
|
79
|
-
trojan: "trojan";
|
|
80
|
-
shadowsocks: "shadowsocks";
|
|
81
|
-
hysteria: "hysteria";
|
|
82
|
-
}>;
|
|
83
|
-
protocolOptions: z.ZodUnion<readonly [z.ZodObject<{
|
|
84
|
-
encryption: z.ZodString;
|
|
85
|
-
id: z.ZodString;
|
|
86
|
-
flow: z.ZodEnum<{
|
|
87
|
-
"": "";
|
|
88
|
-
"xtls-rprx-vision": "xtls-rprx-vision";
|
|
89
|
-
"xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
|
|
90
|
-
}>;
|
|
91
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
92
|
-
password: z.ZodString;
|
|
93
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
-
method: z.ZodString;
|
|
95
|
-
password: z.ZodString;
|
|
96
|
-
uot: z.ZodBoolean;
|
|
97
|
-
uotVersion: z.ZodInt;
|
|
98
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
99
|
-
version: z.ZodInt;
|
|
100
|
-
}, z.core.$strip>]>;
|
|
101
|
-
transport: z.ZodEnum<{
|
|
102
|
-
hysteria: "hysteria";
|
|
103
|
-
tcp: "tcp";
|
|
104
|
-
xhttp: "xhttp";
|
|
105
|
-
ws: "ws";
|
|
106
|
-
httpupgrade: "httpupgrade";
|
|
107
|
-
grpc: "grpc";
|
|
108
|
-
kcp: "kcp";
|
|
109
|
-
}>;
|
|
110
|
-
transportOptions: z.ZodUnion<readonly [z.ZodObject<{
|
|
111
|
-
header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
112
|
-
type: z.ZodLiteral<"none">;
|
|
113
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
114
|
-
type: z.ZodLiteral<"http">;
|
|
115
|
-
request: z.ZodOptional<z.ZodObject<{
|
|
116
|
-
version: z.ZodOptional<z.ZodString>;
|
|
117
|
-
method: z.ZodOptional<z.ZodString>;
|
|
118
|
-
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
119
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
120
|
-
}, z.core.$strip>>;
|
|
121
|
-
response: z.ZodOptional<z.ZodObject<{
|
|
122
|
-
version: z.ZodOptional<z.ZodString>;
|
|
123
|
-
status: z.ZodOptional<z.ZodString>;
|
|
124
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
125
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
126
|
-
}, z.core.$strip>>;
|
|
127
|
-
}, z.core.$strip>], "type">>;
|
|
128
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
129
|
-
path: z.ZodNullable<z.ZodString>;
|
|
130
|
-
host: z.ZodNullable<z.ZodString>;
|
|
131
|
-
mode: z.ZodEnum<{
|
|
132
|
-
auto: "auto";
|
|
133
|
-
"packet-up": "packet-up";
|
|
134
|
-
"stream-up": "stream-up";
|
|
135
|
-
"stream-one": "stream-one";
|
|
136
|
-
}>;
|
|
137
|
-
extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
138
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
139
|
-
path: z.ZodNullable<z.ZodString>;
|
|
140
|
-
host: z.ZodNullable<z.ZodString>;
|
|
141
|
-
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
142
|
-
heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
|
|
143
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
144
|
-
path: z.ZodNullable<z.ZodString>;
|
|
145
|
-
host: z.ZodNullable<z.ZodString>;
|
|
146
|
-
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
147
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
148
|
-
authority: z.ZodNullable<z.ZodString>;
|
|
149
|
-
serviceName: z.ZodNullable<z.ZodString>;
|
|
150
|
-
multiMode: z.ZodBoolean;
|
|
151
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
152
|
-
clientMtu: z.ZodInt;
|
|
153
|
-
clientTti: z.ZodInt;
|
|
154
|
-
congestion: z.ZodBoolean;
|
|
155
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
156
|
-
version: z.ZodInt;
|
|
157
|
-
auth: z.ZodString;
|
|
158
|
-
}, z.core.$strip>]>;
|
|
159
|
-
security: z.ZodEnum<{
|
|
160
|
-
none: "none";
|
|
161
|
-
tls: "tls";
|
|
162
|
-
reality: "reality";
|
|
163
|
-
}>;
|
|
164
|
-
securityOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
165
|
-
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
166
|
-
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
167
|
-
alpn: z.ZodNullable<z.ZodString>;
|
|
168
|
-
enableSessionResumption: z.ZodBoolean;
|
|
169
|
-
fingerprint: z.ZodNullable<z.ZodString>;
|
|
170
|
-
serverName: z.ZodNullable<z.ZodString>;
|
|
171
|
-
echConfigList: z.ZodNullable<z.ZodString>;
|
|
172
|
-
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
173
|
-
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
174
|
-
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
175
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
176
|
-
fingerprint: z.ZodString;
|
|
177
|
-
publicKey: z.ZodString;
|
|
178
|
-
shortId: z.ZodNullable<z.ZodString>;
|
|
179
|
-
serverName: z.ZodString;
|
|
180
|
-
spiderX: z.ZodNullable<z.ZodString>;
|
|
181
|
-
mldsa65Verify: z.ZodNullable<z.ZodString>;
|
|
182
|
-
}, z.core.$strip>]>>;
|
|
183
77
|
streamOverrides: z.ZodObject<{
|
|
184
78
|
finalMask: z.ZodNullable<z.ZodUnknown>;
|
|
185
79
|
sockopt: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -257,7 +151,131 @@ export declare namespace GetRawSubscriptionByShortUuidCommand {
|
|
|
257
151
|
vlessRouteId: z.ZodNullable<z.ZodInt>;
|
|
258
152
|
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
259
153
|
}, z.core.$strip>;
|
|
260
|
-
}, z.core.$strip
|
|
154
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
155
|
+
protocol: z.ZodLiteral<"vless">;
|
|
156
|
+
protocolOptions: z.ZodObject<{
|
|
157
|
+
encryption: z.ZodString;
|
|
158
|
+
id: z.ZodString;
|
|
159
|
+
flow: z.ZodEnum<{
|
|
160
|
+
"": "";
|
|
161
|
+
"xtls-rprx-vision": "xtls-rprx-vision";
|
|
162
|
+
"xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
|
|
163
|
+
}>;
|
|
164
|
+
}, z.core.$strip>;
|
|
165
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
166
|
+
protocol: z.ZodLiteral<"trojan">;
|
|
167
|
+
protocolOptions: z.ZodObject<{
|
|
168
|
+
password: z.ZodString;
|
|
169
|
+
}, z.core.$strip>;
|
|
170
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
171
|
+
protocol: z.ZodLiteral<"shadowsocks">;
|
|
172
|
+
protocolOptions: z.ZodObject<{
|
|
173
|
+
method: z.ZodString;
|
|
174
|
+
password: z.ZodString;
|
|
175
|
+
uot: z.ZodBoolean;
|
|
176
|
+
uotVersion: z.ZodInt;
|
|
177
|
+
}, z.core.$strip>;
|
|
178
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
179
|
+
protocol: z.ZodLiteral<"hysteria">;
|
|
180
|
+
protocolOptions: z.ZodObject<{
|
|
181
|
+
version: z.ZodInt;
|
|
182
|
+
}, z.core.$strip>;
|
|
183
|
+
}, z.core.$strip>], "protocol">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
184
|
+
transport: z.ZodLiteral<"tcp">;
|
|
185
|
+
transportOptions: z.ZodObject<{
|
|
186
|
+
header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
187
|
+
type: z.ZodLiteral<"none">;
|
|
188
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
189
|
+
type: z.ZodLiteral<"http">;
|
|
190
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
version: z.ZodOptional<z.ZodString>;
|
|
192
|
+
method: z.ZodOptional<z.ZodString>;
|
|
193
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
194
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
195
|
+
}, z.core.$strip>>;
|
|
196
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
197
|
+
version: z.ZodOptional<z.ZodString>;
|
|
198
|
+
status: z.ZodOptional<z.ZodString>;
|
|
199
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
200
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
201
|
+
}, z.core.$strip>>;
|
|
202
|
+
}, z.core.$strip>], "type">>;
|
|
203
|
+
}, z.core.$strip>;
|
|
204
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
205
|
+
transport: z.ZodLiteral<"xhttp">;
|
|
206
|
+
transportOptions: z.ZodObject<{
|
|
207
|
+
path: z.ZodNullable<z.ZodString>;
|
|
208
|
+
host: z.ZodNullable<z.ZodString>;
|
|
209
|
+
mode: z.ZodEnum<{
|
|
210
|
+
auto: "auto";
|
|
211
|
+
"packet-up": "packet-up";
|
|
212
|
+
"stream-up": "stream-up";
|
|
213
|
+
"stream-one": "stream-one";
|
|
214
|
+
}>;
|
|
215
|
+
extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
216
|
+
}, z.core.$strip>;
|
|
217
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
218
|
+
transport: z.ZodLiteral<"ws">;
|
|
219
|
+
transportOptions: z.ZodObject<{
|
|
220
|
+
path: z.ZodNullable<z.ZodString>;
|
|
221
|
+
host: z.ZodNullable<z.ZodString>;
|
|
222
|
+
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
223
|
+
heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
|
|
224
|
+
}, z.core.$strip>;
|
|
225
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
226
|
+
transport: z.ZodLiteral<"httpupgrade">;
|
|
227
|
+
transportOptions: z.ZodObject<{
|
|
228
|
+
path: z.ZodNullable<z.ZodString>;
|
|
229
|
+
host: z.ZodNullable<z.ZodString>;
|
|
230
|
+
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
231
|
+
}, z.core.$strip>;
|
|
232
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
233
|
+
transport: z.ZodLiteral<"grpc">;
|
|
234
|
+
transportOptions: z.ZodObject<{
|
|
235
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
236
|
+
serviceName: z.ZodNullable<z.ZodString>;
|
|
237
|
+
multiMode: z.ZodBoolean;
|
|
238
|
+
}, z.core.$strip>;
|
|
239
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
240
|
+
transport: z.ZodLiteral<"kcp">;
|
|
241
|
+
transportOptions: z.ZodObject<{
|
|
242
|
+
clientMtu: z.ZodInt;
|
|
243
|
+
clientTti: z.ZodInt;
|
|
244
|
+
congestion: z.ZodBoolean;
|
|
245
|
+
}, z.core.$strip>;
|
|
246
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
247
|
+
transport: z.ZodLiteral<"hysteria">;
|
|
248
|
+
transportOptions: z.ZodObject<{
|
|
249
|
+
version: z.ZodInt;
|
|
250
|
+
auth: z.ZodString;
|
|
251
|
+
}, z.core.$strip>;
|
|
252
|
+
}, z.core.$strip>], "transport">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
253
|
+
security: z.ZodLiteral<"tls">;
|
|
254
|
+
securityOptions: z.ZodObject<{
|
|
255
|
+
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
256
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
257
|
+
alpn: z.ZodNullable<z.ZodString>;
|
|
258
|
+
enableSessionResumption: z.ZodBoolean;
|
|
259
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
260
|
+
serverName: z.ZodNullable<z.ZodString>;
|
|
261
|
+
echConfigList: z.ZodNullable<z.ZodString>;
|
|
262
|
+
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
263
|
+
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
264
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
265
|
+
}, z.core.$strip>;
|
|
266
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
+
security: z.ZodLiteral<"reality">;
|
|
268
|
+
securityOptions: z.ZodObject<{
|
|
269
|
+
fingerprint: z.ZodString;
|
|
270
|
+
publicKey: z.ZodString;
|
|
271
|
+
shortId: z.ZodNullable<z.ZodString>;
|
|
272
|
+
serverName: z.ZodString;
|
|
273
|
+
spiderX: z.ZodNullable<z.ZodString>;
|
|
274
|
+
mldsa65Verify: z.ZodNullable<z.ZodString>;
|
|
275
|
+
}, z.core.$strip>;
|
|
276
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
277
|
+
security: z.ZodLiteral<"none">;
|
|
278
|
+
}, z.core.$strip>], "security">>>;
|
|
261
279
|
}, z.core.$strip>;
|
|
262
280
|
}, z.core.$strip>;
|
|
263
281
|
type RequestParam = z.infer<typeof RequestParamSchema>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"get-raw-subscription-by-short-uuid.command.d.ts","sourceRoot":"","sources":["../../../../../commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,yBAAiB,oCAAoC,CAAC;IAC3C,MAAM,GAAG,+BAA+C,CAAC;IACzD,MAAM,OAAO,QAAoB,CAAC;IAElC,MAAM,eAAe,8CAK3B,CAAC;IAEK,MAAM,kBAAkB;;qBAE7B,CAAC;IAEI,MAAM,kBAAkB;;qBAM7B,CAAC;IAEI,MAAM,cAAc;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;qBAoBzB,CAAC;IAEH,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;IAC9D,KAAY,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;CACzD"}
|
|
@@ -243,116 +243,10 @@ export declare const ProxyEntryMetadataSchema: z.ZodObject<{
|
|
|
243
243
|
vlessRouteId: z.ZodNullable<z.ZodInt>;
|
|
244
244
|
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
245
245
|
}, z.core.$strip>;
|
|
246
|
-
export declare const
|
|
246
|
+
export declare const ResolvedProxyConfigBaseSchema: z.ZodObject<{
|
|
247
247
|
finalRemark: z.ZodString;
|
|
248
248
|
address: z.ZodString;
|
|
249
249
|
port: z.ZodInt;
|
|
250
|
-
protocol: z.ZodEnum<{
|
|
251
|
-
vless: "vless";
|
|
252
|
-
trojan: "trojan";
|
|
253
|
-
shadowsocks: "shadowsocks";
|
|
254
|
-
hysteria: "hysteria";
|
|
255
|
-
}>;
|
|
256
|
-
protocolOptions: z.ZodUnion<readonly [z.ZodObject<{
|
|
257
|
-
encryption: z.ZodString;
|
|
258
|
-
id: z.ZodString;
|
|
259
|
-
flow: z.ZodEnum<{
|
|
260
|
-
"": "";
|
|
261
|
-
"xtls-rprx-vision": "xtls-rprx-vision";
|
|
262
|
-
"xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
|
|
263
|
-
}>;
|
|
264
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
265
|
-
password: z.ZodString;
|
|
266
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
267
|
-
method: z.ZodString;
|
|
268
|
-
password: z.ZodString;
|
|
269
|
-
uot: z.ZodBoolean;
|
|
270
|
-
uotVersion: z.ZodInt;
|
|
271
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
272
|
-
version: z.ZodInt;
|
|
273
|
-
}, z.core.$strip>]>;
|
|
274
|
-
transport: z.ZodEnum<{
|
|
275
|
-
hysteria: "hysteria";
|
|
276
|
-
tcp: "tcp";
|
|
277
|
-
xhttp: "xhttp";
|
|
278
|
-
ws: "ws";
|
|
279
|
-
httpupgrade: "httpupgrade";
|
|
280
|
-
grpc: "grpc";
|
|
281
|
-
kcp: "kcp";
|
|
282
|
-
}>;
|
|
283
|
-
transportOptions: z.ZodUnion<readonly [z.ZodObject<{
|
|
284
|
-
header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
285
|
-
type: z.ZodLiteral<"none">;
|
|
286
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
287
|
-
type: z.ZodLiteral<"http">;
|
|
288
|
-
request: z.ZodOptional<z.ZodObject<{
|
|
289
|
-
version: z.ZodOptional<z.ZodString>;
|
|
290
|
-
method: z.ZodOptional<z.ZodString>;
|
|
291
|
-
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
292
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
293
|
-
}, z.core.$strip>>;
|
|
294
|
-
response: z.ZodOptional<z.ZodObject<{
|
|
295
|
-
version: z.ZodOptional<z.ZodString>;
|
|
296
|
-
status: z.ZodOptional<z.ZodString>;
|
|
297
|
-
reason: z.ZodOptional<z.ZodString>;
|
|
298
|
-
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
299
|
-
}, z.core.$strip>>;
|
|
300
|
-
}, z.core.$strip>], "type">>;
|
|
301
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
302
|
-
path: z.ZodNullable<z.ZodString>;
|
|
303
|
-
host: z.ZodNullable<z.ZodString>;
|
|
304
|
-
mode: z.ZodEnum<{
|
|
305
|
-
auto: "auto";
|
|
306
|
-
"packet-up": "packet-up";
|
|
307
|
-
"stream-up": "stream-up";
|
|
308
|
-
"stream-one": "stream-one";
|
|
309
|
-
}>;
|
|
310
|
-
extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
311
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
312
|
-
path: z.ZodNullable<z.ZodString>;
|
|
313
|
-
host: z.ZodNullable<z.ZodString>;
|
|
314
|
-
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
315
|
-
heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
|
|
316
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
317
|
-
path: z.ZodNullable<z.ZodString>;
|
|
318
|
-
host: z.ZodNullable<z.ZodString>;
|
|
319
|
-
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
320
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
321
|
-
authority: z.ZodNullable<z.ZodString>;
|
|
322
|
-
serviceName: z.ZodNullable<z.ZodString>;
|
|
323
|
-
multiMode: z.ZodBoolean;
|
|
324
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
325
|
-
clientMtu: z.ZodInt;
|
|
326
|
-
clientTti: z.ZodInt;
|
|
327
|
-
congestion: z.ZodBoolean;
|
|
328
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
329
|
-
version: z.ZodInt;
|
|
330
|
-
auth: z.ZodString;
|
|
331
|
-
}, z.core.$strip>]>;
|
|
332
|
-
security: z.ZodEnum<{
|
|
333
|
-
none: "none";
|
|
334
|
-
tls: "tls";
|
|
335
|
-
reality: "reality";
|
|
336
|
-
}>;
|
|
337
|
-
securityOptions: z.ZodOptional<z.ZodUnion<readonly [z.ZodObject<{
|
|
338
|
-
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
339
|
-
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
340
|
-
alpn: z.ZodNullable<z.ZodString>;
|
|
341
|
-
enableSessionResumption: z.ZodBoolean;
|
|
342
|
-
fingerprint: z.ZodNullable<z.ZodString>;
|
|
343
|
-
serverName: z.ZodNullable<z.ZodString>;
|
|
344
|
-
echConfigList: z.ZodNullable<z.ZodString>;
|
|
345
|
-
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
346
|
-
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
347
|
-
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
348
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
349
|
-
fingerprint: z.ZodString;
|
|
350
|
-
publicKey: z.ZodString;
|
|
351
|
-
shortId: z.ZodNullable<z.ZodString>;
|
|
352
|
-
serverName: z.ZodString;
|
|
353
|
-
spiderX: z.ZodNullable<z.ZodString>;
|
|
354
|
-
mldsa65Verify: z.ZodNullable<z.ZodString>;
|
|
355
|
-
}, z.core.$strip>]>>;
|
|
356
250
|
streamOverrides: z.ZodObject<{
|
|
357
251
|
finalMask: z.ZodNullable<z.ZodUnknown>;
|
|
358
252
|
sockopt: z.ZodNullable<z.ZodUnknown>;
|
|
@@ -431,4 +325,210 @@ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
|
|
|
431
325
|
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
432
326
|
}, z.core.$strip>;
|
|
433
327
|
}, z.core.$strip>;
|
|
328
|
+
export declare const ResolvedProxyConfigSchema: z.ZodIntersection<z.ZodIntersection<z.ZodIntersection<z.ZodObject<{
|
|
329
|
+
finalRemark: z.ZodString;
|
|
330
|
+
address: z.ZodString;
|
|
331
|
+
port: z.ZodInt;
|
|
332
|
+
streamOverrides: z.ZodObject<{
|
|
333
|
+
finalMask: z.ZodNullable<z.ZodUnknown>;
|
|
334
|
+
sockopt: z.ZodNullable<z.ZodUnknown>;
|
|
335
|
+
}, z.core.$strip>;
|
|
336
|
+
mux: z.ZodNullable<z.ZodUnknown>;
|
|
337
|
+
clientOverrides: z.ZodObject<{
|
|
338
|
+
shuffleHost: z.ZodBoolean;
|
|
339
|
+
mihomoX25519: z.ZodBoolean;
|
|
340
|
+
mihomoIpVersion: z.ZodNullable<z.ZodEnum<{
|
|
341
|
+
readonly DUAL: "dual";
|
|
342
|
+
readonly IPV4: "ipv4";
|
|
343
|
+
readonly IPV6: "ipv6";
|
|
344
|
+
readonly IPV4_PREFER: "ipv4-prefer";
|
|
345
|
+
readonly IPV6_PREFER: "ipv6-prefer";
|
|
346
|
+
}>>;
|
|
347
|
+
serverDescription: z.ZodNullable<z.ZodString>;
|
|
348
|
+
xrayJsonTemplate: z.ZodNullable<z.ZodUnknown>;
|
|
349
|
+
mapper: z.ZodObject<{
|
|
350
|
+
xrayJson: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
351
|
+
op: z.ZodLiteral<"copy">;
|
|
352
|
+
from: z.ZodString;
|
|
353
|
+
to: z.ZodString;
|
|
354
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
355
|
+
op: z.ZodLiteral<"set">;
|
|
356
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
|
|
357
|
+
to: z.ZodString;
|
|
358
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
359
|
+
op: z.ZodLiteral<"unset">;
|
|
360
|
+
to: z.ZodString;
|
|
361
|
+
}, z.core.$strip>], "op">>>;
|
|
362
|
+
mihomo: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
363
|
+
op: z.ZodLiteral<"copy">;
|
|
364
|
+
from: z.ZodString;
|
|
365
|
+
to: z.ZodString;
|
|
366
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
367
|
+
op: z.ZodLiteral<"set">;
|
|
368
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
|
|
369
|
+
to: z.ZodString;
|
|
370
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
371
|
+
op: z.ZodLiteral<"unset">;
|
|
372
|
+
to: z.ZodString;
|
|
373
|
+
}, z.core.$strip>], "op">>>;
|
|
374
|
+
base64: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
375
|
+
op: z.ZodLiteral<"copy">;
|
|
376
|
+
from: z.ZodString;
|
|
377
|
+
to: z.ZodString;
|
|
378
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
379
|
+
op: z.ZodLiteral<"set">;
|
|
380
|
+
value: z.ZodUnion<readonly [z.ZodString, z.ZodNumber, z.ZodBoolean, z.ZodArray<z.ZodJSONSchema>, z.ZodRecord<z.ZodString, z.ZodJSONSchema>]>;
|
|
381
|
+
to: z.ZodString;
|
|
382
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
383
|
+
op: z.ZodLiteral<"unset">;
|
|
384
|
+
to: z.ZodString;
|
|
385
|
+
}, z.core.$strip>], "op">>>;
|
|
386
|
+
}, z.core.$strip>;
|
|
387
|
+
}, z.core.$strip>;
|
|
388
|
+
metadata: z.ZodObject<{
|
|
389
|
+
uuid: z.ZodUUID;
|
|
390
|
+
tags: z.ZodArray<z.ZodString>;
|
|
391
|
+
excludeFromSubscriptionTypes: z.ZodArray<z.ZodEnum<{
|
|
392
|
+
readonly XRAY_JSON: "XRAY_JSON";
|
|
393
|
+
readonly XRAY_BASE64: "XRAY_BASE64";
|
|
394
|
+
readonly MIHOMO: "MIHOMO";
|
|
395
|
+
readonly STASH: "STASH";
|
|
396
|
+
readonly CLASH: "CLASH";
|
|
397
|
+
readonly SINGBOX: "SINGBOX";
|
|
398
|
+
}>>;
|
|
399
|
+
inboundTag: z.ZodString;
|
|
400
|
+
configProfileUuid: z.ZodNullable<z.ZodUUID>;
|
|
401
|
+
configProfileInboundUuid: z.ZodNullable<z.ZodUUID>;
|
|
402
|
+
isDisabled: z.ZodBoolean;
|
|
403
|
+
isHidden: z.ZodBoolean;
|
|
404
|
+
viewPosition: z.ZodInt;
|
|
405
|
+
remark: z.ZodString;
|
|
406
|
+
vlessRouteId: z.ZodNullable<z.ZodInt>;
|
|
407
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
408
|
+
}, z.core.$strip>;
|
|
409
|
+
}, z.core.$strip>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
410
|
+
protocol: z.ZodLiteral<"vless">;
|
|
411
|
+
protocolOptions: z.ZodObject<{
|
|
412
|
+
encryption: z.ZodString;
|
|
413
|
+
id: z.ZodString;
|
|
414
|
+
flow: z.ZodEnum<{
|
|
415
|
+
"": "";
|
|
416
|
+
"xtls-rprx-vision": "xtls-rprx-vision";
|
|
417
|
+
"xtls-rprx-vision-udp443": "xtls-rprx-vision-udp443";
|
|
418
|
+
}>;
|
|
419
|
+
}, z.core.$strip>;
|
|
420
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
421
|
+
protocol: z.ZodLiteral<"trojan">;
|
|
422
|
+
protocolOptions: z.ZodObject<{
|
|
423
|
+
password: z.ZodString;
|
|
424
|
+
}, z.core.$strip>;
|
|
425
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
426
|
+
protocol: z.ZodLiteral<"shadowsocks">;
|
|
427
|
+
protocolOptions: z.ZodObject<{
|
|
428
|
+
method: z.ZodString;
|
|
429
|
+
password: z.ZodString;
|
|
430
|
+
uot: z.ZodBoolean;
|
|
431
|
+
uotVersion: z.ZodInt;
|
|
432
|
+
}, z.core.$strip>;
|
|
433
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
434
|
+
protocol: z.ZodLiteral<"hysteria">;
|
|
435
|
+
protocolOptions: z.ZodObject<{
|
|
436
|
+
version: z.ZodInt;
|
|
437
|
+
}, z.core.$strip>;
|
|
438
|
+
}, z.core.$strip>], "protocol">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
439
|
+
transport: z.ZodLiteral<"tcp">;
|
|
440
|
+
transportOptions: z.ZodObject<{
|
|
441
|
+
header: z.ZodNullable<z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
442
|
+
type: z.ZodLiteral<"none">;
|
|
443
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
444
|
+
type: z.ZodLiteral<"http">;
|
|
445
|
+
request: z.ZodOptional<z.ZodObject<{
|
|
446
|
+
version: z.ZodOptional<z.ZodString>;
|
|
447
|
+
method: z.ZodOptional<z.ZodString>;
|
|
448
|
+
path: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
449
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
450
|
+
}, z.core.$strip>>;
|
|
451
|
+
response: z.ZodOptional<z.ZodObject<{
|
|
452
|
+
version: z.ZodOptional<z.ZodString>;
|
|
453
|
+
status: z.ZodOptional<z.ZodString>;
|
|
454
|
+
reason: z.ZodOptional<z.ZodString>;
|
|
455
|
+
headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
456
|
+
}, z.core.$strip>>;
|
|
457
|
+
}, z.core.$strip>], "type">>;
|
|
458
|
+
}, z.core.$strip>;
|
|
459
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
460
|
+
transport: z.ZodLiteral<"xhttp">;
|
|
461
|
+
transportOptions: z.ZodObject<{
|
|
462
|
+
path: z.ZodNullable<z.ZodString>;
|
|
463
|
+
host: z.ZodNullable<z.ZodString>;
|
|
464
|
+
mode: z.ZodEnum<{
|
|
465
|
+
auto: "auto";
|
|
466
|
+
"packet-up": "packet-up";
|
|
467
|
+
"stream-up": "stream-up";
|
|
468
|
+
"stream-one": "stream-one";
|
|
469
|
+
}>;
|
|
470
|
+
extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
471
|
+
}, z.core.$strip>;
|
|
472
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
473
|
+
transport: z.ZodLiteral<"ws">;
|
|
474
|
+
transportOptions: z.ZodObject<{
|
|
475
|
+
path: z.ZodNullable<z.ZodString>;
|
|
476
|
+
host: z.ZodNullable<z.ZodString>;
|
|
477
|
+
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
478
|
+
heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
|
|
479
|
+
}, z.core.$strip>;
|
|
480
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
481
|
+
transport: z.ZodLiteral<"httpupgrade">;
|
|
482
|
+
transportOptions: z.ZodObject<{
|
|
483
|
+
path: z.ZodNullable<z.ZodString>;
|
|
484
|
+
host: z.ZodNullable<z.ZodString>;
|
|
485
|
+
headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
486
|
+
}, z.core.$strip>;
|
|
487
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
488
|
+
transport: z.ZodLiteral<"grpc">;
|
|
489
|
+
transportOptions: z.ZodObject<{
|
|
490
|
+
authority: z.ZodNullable<z.ZodString>;
|
|
491
|
+
serviceName: z.ZodNullable<z.ZodString>;
|
|
492
|
+
multiMode: z.ZodBoolean;
|
|
493
|
+
}, z.core.$strip>;
|
|
494
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
495
|
+
transport: z.ZodLiteral<"kcp">;
|
|
496
|
+
transportOptions: z.ZodObject<{
|
|
497
|
+
clientMtu: z.ZodInt;
|
|
498
|
+
clientTti: z.ZodInt;
|
|
499
|
+
congestion: z.ZodBoolean;
|
|
500
|
+
}, z.core.$strip>;
|
|
501
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
502
|
+
transport: z.ZodLiteral<"hysteria">;
|
|
503
|
+
transportOptions: z.ZodObject<{
|
|
504
|
+
version: z.ZodInt;
|
|
505
|
+
auth: z.ZodString;
|
|
506
|
+
}, z.core.$strip>;
|
|
507
|
+
}, z.core.$strip>], "transport">>, z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
508
|
+
security: z.ZodLiteral<"tls">;
|
|
509
|
+
securityOptions: z.ZodObject<{
|
|
510
|
+
pinnedPeerCertSha256: z.ZodNullable<z.ZodString>;
|
|
511
|
+
verifyPeerCertByName: z.ZodNullable<z.ZodString>;
|
|
512
|
+
alpn: z.ZodNullable<z.ZodString>;
|
|
513
|
+
enableSessionResumption: z.ZodBoolean;
|
|
514
|
+
fingerprint: z.ZodNullable<z.ZodString>;
|
|
515
|
+
serverName: z.ZodNullable<z.ZodString>;
|
|
516
|
+
echConfigList: z.ZodNullable<z.ZodString>;
|
|
517
|
+
echForceQuery: z.ZodNullable<z.ZodString>;
|
|
518
|
+
echSockopt: z.ZodNullable<z.ZodUnknown>;
|
|
519
|
+
cipherSuites: z.ZodNullable<z.ZodString>;
|
|
520
|
+
}, z.core.$strip>;
|
|
521
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
522
|
+
security: z.ZodLiteral<"reality">;
|
|
523
|
+
securityOptions: z.ZodObject<{
|
|
524
|
+
fingerprint: z.ZodString;
|
|
525
|
+
publicKey: z.ZodString;
|
|
526
|
+
shortId: z.ZodNullable<z.ZodString>;
|
|
527
|
+
serverName: z.ZodString;
|
|
528
|
+
spiderX: z.ZodNullable<z.ZodString>;
|
|
529
|
+
mldsa65Verify: z.ZodNullable<z.ZodString>;
|
|
530
|
+
}, z.core.$strip>;
|
|
531
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
532
|
+
security: z.ZodLiteral<"none">;
|
|
533
|
+
}, z.core.$strip>], "security">>;
|
|
434
534
|
//# sourceMappingURL=resolved-proxy-config.schema.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBAWnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAKhC,CAAC;AAqCH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAQjC,CAAC;AAgBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;+BAIhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAanC,CAAC;AAEH,eAAO,MAAM,yBAAyB
|
|
1
|
+
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;iBAEtC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;iBAK3C,CAAC;AA4BH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;iBAEpC,CAAC;AAEH,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAKtC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;iBAKnC,CAAC;AAEH,eAAO,MAAM,iCAAiC;;;;iBAI5C,CAAC;AAEH,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;iBAIpC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;iBAExC,CAAC;AAEH,eAAO,MAAM,8BAA8B;;;iBAGzC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;iBAWnC,CAAC;AAEH,eAAO,MAAM,4BAA4B;;;;;;;iBAOvC,CAAC;AAsBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;+BAKhC,CAAC;AAqCH,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAQjC,CAAC;AAgBH,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;+BAIhC,CAAC;AAEH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;iBAanC,CAAC;AAEH,eAAO,MAAM,6BAA6B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAsBxC,CAAC;AAEH,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;gCAEP,CAAC"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResolvedProxyConfigSchema = exports.ProxyEntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
|
|
3
|
+
exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema = exports.ProxyEntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const host_mapper_1 = require("./host-mapper");
|
|
@@ -113,10 +113,10 @@ const HysteriaProtocolSchema = zod_1.z.object({
|
|
|
113
113
|
protocolOptions: exports.HysteriaProtocolOptionsSchema,
|
|
114
114
|
});
|
|
115
115
|
exports.ProtocolVariantSchema = zod_1.z.discriminatedUnion('protocol', [
|
|
116
|
-
VlessProtocolSchema,
|
|
117
|
-
TrojanProtocolSchema,
|
|
118
|
-
ShadowsocksProtocolSchema,
|
|
119
|
-
HysteriaProtocolSchema,
|
|
116
|
+
VlessProtocolSchema.meta({ title: 'vless' }),
|
|
117
|
+
TrojanProtocolSchema.meta({ title: 'trojan' }),
|
|
118
|
+
ShadowsocksProtocolSchema.meta({ title: 'shadowsocks' }),
|
|
119
|
+
HysteriaProtocolSchema.meta({ title: 'hysteria' }),
|
|
120
120
|
]);
|
|
121
121
|
const TcpTransportSchema = zod_1.z.object({
|
|
122
122
|
transport: zod_1.z.literal('tcp'),
|
|
@@ -147,13 +147,13 @@ const HysteriaTransportSchema = zod_1.z.object({
|
|
|
147
147
|
transportOptions: exports.HysteriaTransportOptionsSchema,
|
|
148
148
|
});
|
|
149
149
|
exports.TransportVariantSchema = zod_1.z.discriminatedUnion('transport', [
|
|
150
|
-
TcpTransportSchema,
|
|
151
|
-
XHttpTransportSchema,
|
|
152
|
-
WsTransportSchema,
|
|
153
|
-
HttpUpgradeTransportSchema,
|
|
154
|
-
GrpcTransportSchema,
|
|
155
|
-
KcpTransportSchema,
|
|
156
|
-
HysteriaTransportSchema,
|
|
150
|
+
TcpTransportSchema.meta({ title: 'tcp' }),
|
|
151
|
+
XHttpTransportSchema.meta({ title: 'xhttp' }),
|
|
152
|
+
WsTransportSchema.meta({ title: 'ws' }),
|
|
153
|
+
HttpUpgradeTransportSchema.meta({ title: 'httpupgrade' }),
|
|
154
|
+
GrpcTransportSchema.meta({ title: 'grpc' }),
|
|
155
|
+
KcpTransportSchema.meta({ title: 'kcp' }),
|
|
156
|
+
HysteriaTransportSchema.meta({ title: 'hysteria' }),
|
|
157
157
|
]);
|
|
158
158
|
const TlsSecuritySchema = zod_1.z.object({
|
|
159
159
|
security: zod_1.z.literal('tls'),
|
|
@@ -167,9 +167,9 @@ const NoneSecuritySchema = zod_1.z.object({
|
|
|
167
167
|
security: zod_1.z.literal('none'),
|
|
168
168
|
});
|
|
169
169
|
exports.SecurityVariantSchema = zod_1.z.discriminatedUnion('security', [
|
|
170
|
-
TlsSecuritySchema,
|
|
171
|
-
RealitySecuritySchema,
|
|
172
|
-
NoneSecuritySchema,
|
|
170
|
+
TlsSecuritySchema.meta({ title: 'tls' }),
|
|
171
|
+
RealitySecuritySchema.meta({ title: 'reality' }),
|
|
172
|
+
NoneSecuritySchema.meta({ title: 'none' }),
|
|
173
173
|
]);
|
|
174
174
|
exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
175
175
|
uuid: zod_1.z.uuid(),
|
|
@@ -185,29 +185,10 @@ exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
|
185
185
|
vlessRouteId: zod_1.z.int().nullable(),
|
|
186
186
|
rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
|
|
187
187
|
});
|
|
188
|
-
exports.
|
|
188
|
+
exports.ResolvedProxyConfigBaseSchema = zod_1.z.object({
|
|
189
189
|
finalRemark: zod_1.z.string(),
|
|
190
190
|
address: zod_1.z.string(),
|
|
191
191
|
port: zod_1.z.int().positive(),
|
|
192
|
-
protocol: zod_1.z.enum(['vless', 'trojan', 'shadowsocks', 'hysteria']),
|
|
193
|
-
protocolOptions: zod_1.z.union([
|
|
194
|
-
exports.VlessProtocolOptionsSchema,
|
|
195
|
-
exports.TrojanProtocolOptionsSchema,
|
|
196
|
-
exports.ShadowsocksProtocolOptionsSchema,
|
|
197
|
-
exports.HysteriaProtocolOptionsSchema,
|
|
198
|
-
]),
|
|
199
|
-
transport: zod_1.z.enum(['tcp', 'xhttp', 'ws', 'httpupgrade', 'grpc', 'kcp', 'hysteria']),
|
|
200
|
-
transportOptions: zod_1.z.union([
|
|
201
|
-
exports.TcpTransportOptionsSchema,
|
|
202
|
-
exports.XhttpTransportOptionsSchema,
|
|
203
|
-
exports.WsTransportOptionsSchema,
|
|
204
|
-
exports.HttpUpgradeTransportOptionsSchema,
|
|
205
|
-
exports.GrpcTransportOptionsSchema,
|
|
206
|
-
exports.KcpTransportOptionsSchema,
|
|
207
|
-
exports.HysteriaTransportOptionsSchema,
|
|
208
|
-
]),
|
|
209
|
-
security: zod_1.z.enum(['tls', 'reality', 'none']),
|
|
210
|
-
securityOptions: zod_1.z.union([exports.TlsSecurityOptionsSchema, exports.RealitySecurityOptionsSchema]).optional(),
|
|
211
192
|
streamOverrides: zod_1.z.object({
|
|
212
193
|
finalMask: zod_1.z.nullable(zod_1.z.unknown()),
|
|
213
194
|
sockopt: zod_1.z.nullable(zod_1.z.unknown()),
|
|
@@ -223,3 +204,6 @@ exports.ResolvedProxyConfigSchema = zod_1.z.object({
|
|
|
223
204
|
}),
|
|
224
205
|
metadata: exports.ProxyEntryMetadataSchema,
|
|
225
206
|
});
|
|
207
|
+
exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema.and(exports.ProtocolVariantSchema)
|
|
208
|
+
.and(exports.TransportVariantSchema)
|
|
209
|
+
.and(exports.SecurityVariantSchema);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ResolvedProxyConfigSchema = exports.ProxyEntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
|
|
3
|
+
exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema = exports.ProxyEntryMetadataSchema = exports.SecurityVariantSchema = exports.TransportVariantSchema = exports.ProtocolVariantSchema = exports.RealitySecurityOptionsSchema = exports.TlsSecurityOptionsSchema = exports.HysteriaTransportOptionsSchema = exports.HysteriaProtocolOptionsSchema = exports.KcpTransportOptionsSchema = exports.GrpcTransportOptionsSchema = exports.HttpUpgradeTransportOptionsSchema = exports.WsTransportOptionsSchema = exports.XhttpTransportOptionsSchema = exports.TcpTransportOptionsSchema = exports.ShadowsocksProtocolOptionsSchema = exports.TrojanProtocolOptionsSchema = exports.VlessProtocolOptionsSchema = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const constants_1 = require("../constants");
|
|
6
6
|
const host_mapper_1 = require("./host-mapper");
|
|
@@ -113,10 +113,10 @@ const HysteriaProtocolSchema = zod_1.z.object({
|
|
|
113
113
|
protocolOptions: exports.HysteriaProtocolOptionsSchema,
|
|
114
114
|
});
|
|
115
115
|
exports.ProtocolVariantSchema = zod_1.z.discriminatedUnion('protocol', [
|
|
116
|
-
VlessProtocolSchema,
|
|
117
|
-
TrojanProtocolSchema,
|
|
118
|
-
ShadowsocksProtocolSchema,
|
|
119
|
-
HysteriaProtocolSchema,
|
|
116
|
+
VlessProtocolSchema.meta({ title: 'vless' }),
|
|
117
|
+
TrojanProtocolSchema.meta({ title: 'trojan' }),
|
|
118
|
+
ShadowsocksProtocolSchema.meta({ title: 'shadowsocks' }),
|
|
119
|
+
HysteriaProtocolSchema.meta({ title: 'hysteria' }),
|
|
120
120
|
]);
|
|
121
121
|
const TcpTransportSchema = zod_1.z.object({
|
|
122
122
|
transport: zod_1.z.literal('tcp'),
|
|
@@ -147,13 +147,13 @@ const HysteriaTransportSchema = zod_1.z.object({
|
|
|
147
147
|
transportOptions: exports.HysteriaTransportOptionsSchema,
|
|
148
148
|
});
|
|
149
149
|
exports.TransportVariantSchema = zod_1.z.discriminatedUnion('transport', [
|
|
150
|
-
TcpTransportSchema,
|
|
151
|
-
XHttpTransportSchema,
|
|
152
|
-
WsTransportSchema,
|
|
153
|
-
HttpUpgradeTransportSchema,
|
|
154
|
-
GrpcTransportSchema,
|
|
155
|
-
KcpTransportSchema,
|
|
156
|
-
HysteriaTransportSchema,
|
|
150
|
+
TcpTransportSchema.meta({ title: 'tcp' }),
|
|
151
|
+
XHttpTransportSchema.meta({ title: 'xhttp' }),
|
|
152
|
+
WsTransportSchema.meta({ title: 'ws' }),
|
|
153
|
+
HttpUpgradeTransportSchema.meta({ title: 'httpupgrade' }),
|
|
154
|
+
GrpcTransportSchema.meta({ title: 'grpc' }),
|
|
155
|
+
KcpTransportSchema.meta({ title: 'kcp' }),
|
|
156
|
+
HysteriaTransportSchema.meta({ title: 'hysteria' }),
|
|
157
157
|
]);
|
|
158
158
|
const TlsSecuritySchema = zod_1.z.object({
|
|
159
159
|
security: zod_1.z.literal('tls'),
|
|
@@ -167,9 +167,9 @@ const NoneSecuritySchema = zod_1.z.object({
|
|
|
167
167
|
security: zod_1.z.literal('none'),
|
|
168
168
|
});
|
|
169
169
|
exports.SecurityVariantSchema = zod_1.z.discriminatedUnion('security', [
|
|
170
|
-
TlsSecuritySchema,
|
|
171
|
-
RealitySecuritySchema,
|
|
172
|
-
NoneSecuritySchema,
|
|
170
|
+
TlsSecuritySchema.meta({ title: 'tls' }),
|
|
171
|
+
RealitySecuritySchema.meta({ title: 'reality' }),
|
|
172
|
+
NoneSecuritySchema.meta({ title: 'none' }),
|
|
173
173
|
]);
|
|
174
174
|
exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
175
175
|
uuid: zod_1.z.uuid(),
|
|
@@ -185,29 +185,10 @@ exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
|
185
185
|
vlessRouteId: zod_1.z.int().nullable(),
|
|
186
186
|
rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
|
|
187
187
|
});
|
|
188
|
-
exports.
|
|
188
|
+
exports.ResolvedProxyConfigBaseSchema = zod_1.z.object({
|
|
189
189
|
finalRemark: zod_1.z.string(),
|
|
190
190
|
address: zod_1.z.string(),
|
|
191
191
|
port: zod_1.z.int().positive(),
|
|
192
|
-
protocol: zod_1.z.enum(['vless', 'trojan', 'shadowsocks', 'hysteria']),
|
|
193
|
-
protocolOptions: zod_1.z.union([
|
|
194
|
-
exports.VlessProtocolOptionsSchema,
|
|
195
|
-
exports.TrojanProtocolOptionsSchema,
|
|
196
|
-
exports.ShadowsocksProtocolOptionsSchema,
|
|
197
|
-
exports.HysteriaProtocolOptionsSchema,
|
|
198
|
-
]),
|
|
199
|
-
transport: zod_1.z.enum(['tcp', 'xhttp', 'ws', 'httpupgrade', 'grpc', 'kcp', 'hysteria']),
|
|
200
|
-
transportOptions: zod_1.z.union([
|
|
201
|
-
exports.TcpTransportOptionsSchema,
|
|
202
|
-
exports.XhttpTransportOptionsSchema,
|
|
203
|
-
exports.WsTransportOptionsSchema,
|
|
204
|
-
exports.HttpUpgradeTransportOptionsSchema,
|
|
205
|
-
exports.GrpcTransportOptionsSchema,
|
|
206
|
-
exports.KcpTransportOptionsSchema,
|
|
207
|
-
exports.HysteriaTransportOptionsSchema,
|
|
208
|
-
]),
|
|
209
|
-
security: zod_1.z.enum(['tls', 'reality', 'none']),
|
|
210
|
-
securityOptions: zod_1.z.union([exports.TlsSecurityOptionsSchema, exports.RealitySecurityOptionsSchema]).optional(),
|
|
211
192
|
streamOverrides: zod_1.z.object({
|
|
212
193
|
finalMask: zod_1.z.nullable(zod_1.z.unknown()),
|
|
213
194
|
sockopt: zod_1.z.nullable(zod_1.z.unknown()),
|
|
@@ -223,3 +204,6 @@ exports.ResolvedProxyConfigSchema = zod_1.z.object({
|
|
|
223
204
|
}),
|
|
224
205
|
metadata: exports.ProxyEntryMetadataSchema,
|
|
225
206
|
});
|
|
207
|
+
exports.ResolvedProxyConfigSchema = exports.ResolvedProxyConfigBaseSchema.and(exports.ProtocolVariantSchema)
|
|
208
|
+
.and(exports.TransportVariantSchema)
|
|
209
|
+
.and(exports.SecurityVariantSchema);
|
package/package.json
CHANGED