@remnawave/backend-contract 2.6.53 → 2.6.55

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.
Files changed (57) hide show
  1. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +20 -0
  2. package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
  3. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +20 -0
  4. package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
  5. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +20 -0
  6. package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
  7. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +20 -0
  8. package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
  9. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +30 -20
  10. package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
  11. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +30 -20
  12. package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
  13. package/build/backend/commands/nodes/actions/disable.command.d.ts +18 -0
  14. package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
  15. package/build/backend/commands/nodes/actions/enable.command.d.ts +18 -0
  16. package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
  17. package/build/backend/commands/nodes/actions/reorder.command.d.ts +28 -0
  18. package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
  19. package/build/backend/commands/nodes/create.command.d.ts +18 -0
  20. package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
  21. package/build/backend/commands/nodes/get-all.command.d.ts +18 -0
  22. package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
  23. package/build/backend/commands/nodes/get-one.command.d.ts +18 -0
  24. package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
  25. package/build/backend/commands/nodes/update.command.d.ts +28 -0
  26. package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
  27. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +878 -348
  28. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
  29. package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +2 -59
  30. package/build/backend/constants/metrics/metric-names.constant.d.ts +10 -0
  31. package/build/backend/constants/metrics/metric-names.constant.d.ts.map +1 -1
  32. package/build/backend/constants/metrics/metric-names.constant.js +11 -0
  33. package/build/backend/models/index.d.ts +1 -0
  34. package/build/backend/models/index.d.ts.map +1 -1
  35. package/build/backend/models/index.js +1 -0
  36. package/build/backend/models/infra-billing-available-node.schema.d.ts +10 -0
  37. package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
  38. package/build/backend/models/infra-billing-node.schema.d.ts +10 -0
  39. package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
  40. package/build/backend/models/node-system.schema.d.ts +16 -0
  41. package/build/backend/models/node-system.schema.d.ts.map +1 -1
  42. package/build/backend/models/node-system.schema.js +2 -0
  43. package/build/backend/models/nodes.schema.d.ts +14 -0
  44. package/build/backend/models/nodes.schema.d.ts.map +1 -1
  45. package/build/backend/models/resolved-proxy-config.schema.d.ts +1422 -0
  46. package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -0
  47. package/build/backend/models/resolved-proxy-config.schema.js +219 -0
  48. package/build/backend/models/torrent-blocker-report.schema.d.ts +22 -12
  49. package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
  50. package/build/backend/models/webhook/webhook.schema.d.ts +112 -32
  51. package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
  52. package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +2 -59
  53. package/build/frontend/constants/metrics/metric-names.constant.js +11 -0
  54. package/build/frontend/models/index.js +1 -0
  55. package/build/frontend/models/node-system.schema.js +2 -0
  56. package/build/frontend/models/resolved-proxy-config.schema.js +219 -0
  57. package/package.json +1 -1
@@ -0,0 +1,1422 @@
1
+ import { z } from 'zod';
2
+ export declare const VlessProtocolOptionsSchema: z.ZodObject<{
3
+ encryption: z.ZodString;
4
+ id: z.ZodString;
5
+ flow: z.ZodEnum<["", "xtls-rprx-vision", "xtls-rprx-vision-udp443"]>;
6
+ }, "strip", z.ZodTypeAny, {
7
+ id: string;
8
+ encryption: string;
9
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
10
+ }, {
11
+ id: string;
12
+ encryption: string;
13
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
14
+ }>;
15
+ export declare const TrojanProtocolOptionsSchema: z.ZodObject<{
16
+ password: z.ZodString;
17
+ }, "strip", z.ZodTypeAny, {
18
+ password: string;
19
+ }, {
20
+ password: string;
21
+ }>;
22
+ export declare const ShadowsocksProtocolOptionsSchema: z.ZodObject<{
23
+ method: z.ZodString;
24
+ password: z.ZodString;
25
+ uot: z.ZodBoolean;
26
+ uotVersion: z.ZodNumber;
27
+ }, "strip", z.ZodTypeAny, {
28
+ password: string;
29
+ method: string;
30
+ uot: boolean;
31
+ uotVersion: number;
32
+ }, {
33
+ password: string;
34
+ method: string;
35
+ uot: boolean;
36
+ uotVersion: number;
37
+ }>;
38
+ export declare const TcpTransportOptionsSchema: z.ZodObject<{
39
+ header: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
40
+ type: z.ZodLiteral<"none">;
41
+ }, "strip", z.ZodTypeAny, {
42
+ type: "none";
43
+ }, {
44
+ type: "none";
45
+ }>, z.ZodObject<{
46
+ type: z.ZodLiteral<"http">;
47
+ request: z.ZodOptional<z.ZodObject<{
48
+ version: z.ZodOptional<z.ZodString>;
49
+ method: z.ZodOptional<z.ZodString>;
50
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
51
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
52
+ }, "strip", z.ZodTypeAny, {
53
+ path?: string[] | undefined;
54
+ headers?: Record<string, unknown> | undefined;
55
+ version?: string | undefined;
56
+ method?: string | undefined;
57
+ }, {
58
+ path?: string[] | undefined;
59
+ headers?: Record<string, unknown> | undefined;
60
+ version?: string | undefined;
61
+ method?: string | undefined;
62
+ }>>;
63
+ response: z.ZodOptional<z.ZodObject<{
64
+ version: z.ZodOptional<z.ZodString>;
65
+ status: z.ZodOptional<z.ZodString>;
66
+ reason: z.ZodOptional<z.ZodString>;
67
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
68
+ }, "strip", z.ZodTypeAny, {
69
+ status?: string | undefined;
70
+ headers?: Record<string, unknown> | undefined;
71
+ version?: string | undefined;
72
+ reason?: string | undefined;
73
+ }, {
74
+ status?: string | undefined;
75
+ headers?: Record<string, unknown> | undefined;
76
+ version?: string | undefined;
77
+ reason?: string | undefined;
78
+ }>>;
79
+ }, "strip", z.ZodTypeAny, {
80
+ type: "http";
81
+ response?: {
82
+ status?: string | undefined;
83
+ headers?: Record<string, unknown> | undefined;
84
+ version?: string | undefined;
85
+ reason?: string | undefined;
86
+ } | undefined;
87
+ request?: {
88
+ path?: string[] | undefined;
89
+ headers?: Record<string, unknown> | undefined;
90
+ version?: string | undefined;
91
+ method?: string | undefined;
92
+ } | undefined;
93
+ }, {
94
+ type: "http";
95
+ response?: {
96
+ status?: string | undefined;
97
+ headers?: Record<string, unknown> | undefined;
98
+ version?: string | undefined;
99
+ reason?: string | undefined;
100
+ } | undefined;
101
+ request?: {
102
+ path?: string[] | undefined;
103
+ headers?: Record<string, unknown> | undefined;
104
+ version?: string | undefined;
105
+ method?: string | undefined;
106
+ } | undefined;
107
+ }>]>>;
108
+ }, "strip", z.ZodTypeAny, {
109
+ header: {
110
+ type: "none";
111
+ } | {
112
+ type: "http";
113
+ response?: {
114
+ status?: string | undefined;
115
+ headers?: Record<string, unknown> | undefined;
116
+ version?: string | undefined;
117
+ reason?: string | undefined;
118
+ } | undefined;
119
+ request?: {
120
+ path?: string[] | undefined;
121
+ headers?: Record<string, unknown> | undefined;
122
+ version?: string | undefined;
123
+ method?: string | undefined;
124
+ } | undefined;
125
+ } | null;
126
+ }, {
127
+ header: {
128
+ type: "none";
129
+ } | {
130
+ type: "http";
131
+ response?: {
132
+ status?: string | undefined;
133
+ headers?: Record<string, unknown> | undefined;
134
+ version?: string | undefined;
135
+ reason?: string | undefined;
136
+ } | undefined;
137
+ request?: {
138
+ path?: string[] | undefined;
139
+ headers?: Record<string, unknown> | undefined;
140
+ version?: string | undefined;
141
+ method?: string | undefined;
142
+ } | undefined;
143
+ } | null;
144
+ }>;
145
+ export declare const XhttpTransportOptionsSchema: z.ZodObject<{
146
+ path: z.ZodNullable<z.ZodString>;
147
+ host: z.ZodNullable<z.ZodString>;
148
+ mode: z.ZodEnum<["auto", "packet-up", "stream-up", "stream-one"]>;
149
+ extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
150
+ }, "strip", z.ZodTypeAny, {
151
+ path: string | null;
152
+ host: string | null;
153
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
154
+ extra: Record<string, unknown> | null;
155
+ }, {
156
+ path: string | null;
157
+ host: string | null;
158
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
159
+ extra: Record<string, unknown> | null;
160
+ }>;
161
+ export declare const WsTransportOptionsSchema: z.ZodObject<{
162
+ path: z.ZodNullable<z.ZodString>;
163
+ host: z.ZodNullable<z.ZodString>;
164
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
165
+ heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
166
+ }, "strip", z.ZodTypeAny, {
167
+ path: string | null;
168
+ host: string | null;
169
+ headers: Record<string, string> | null;
170
+ heartbeatPeriod: number | null;
171
+ }, {
172
+ path: string | null;
173
+ host: string | null;
174
+ headers: Record<string, string> | null;
175
+ heartbeatPeriod: number | null;
176
+ }>;
177
+ export declare const HttpUpgradeTransportOptionsSchema: z.ZodObject<{
178
+ path: z.ZodNullable<z.ZodString>;
179
+ host: z.ZodNullable<z.ZodString>;
180
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
181
+ }, "strip", z.ZodTypeAny, {
182
+ path: string | null;
183
+ host: string | null;
184
+ headers: Record<string, string> | null;
185
+ }, {
186
+ path: string | null;
187
+ host: string | null;
188
+ headers: Record<string, string> | null;
189
+ }>;
190
+ export declare const GrpcTransportOptionsSchema: z.ZodObject<{
191
+ authority: z.ZodNullable<z.ZodString>;
192
+ serviceName: z.ZodNullable<z.ZodString>;
193
+ multiMode: z.ZodBoolean;
194
+ }, "strip", z.ZodTypeAny, {
195
+ authority: string | null;
196
+ serviceName: string | null;
197
+ multiMode: boolean;
198
+ }, {
199
+ authority: string | null;
200
+ serviceName: string | null;
201
+ multiMode: boolean;
202
+ }>;
203
+ export declare const KcpTransportOptionsSchema: z.ZodObject<{
204
+ clientMtu: z.ZodNumber;
205
+ tti: z.ZodNumber;
206
+ congestion: z.ZodBoolean;
207
+ }, "strip", z.ZodTypeAny, {
208
+ clientMtu: number;
209
+ tti: number;
210
+ congestion: boolean;
211
+ }, {
212
+ clientMtu: number;
213
+ tti: number;
214
+ congestion: boolean;
215
+ }>;
216
+ export declare const HysteriaProtocolOptionsSchema: z.ZodObject<{
217
+ version: z.ZodNumber;
218
+ }, "strip", z.ZodTypeAny, {
219
+ version: number;
220
+ }, {
221
+ version: number;
222
+ }>;
223
+ export declare const HysteriaTransportOptionsSchema: z.ZodObject<{
224
+ version: z.ZodNumber;
225
+ auth: z.ZodString;
226
+ }, "strip", z.ZodTypeAny, {
227
+ auth: string;
228
+ version: number;
229
+ }, {
230
+ auth: string;
231
+ version: number;
232
+ }>;
233
+ export declare const TlsSecurityOptionsSchema: z.ZodObject<{
234
+ allowInsecure: z.ZodBoolean;
235
+ alpn: z.ZodNullable<z.ZodString>;
236
+ enableSessionResumption: z.ZodBoolean;
237
+ fingerprint: z.ZodNullable<z.ZodString>;
238
+ serverName: z.ZodNullable<z.ZodString>;
239
+ echConfigList: z.ZodNullable<z.ZodString>;
240
+ echForceQuery: z.ZodNullable<z.ZodString>;
241
+ }, "strip", z.ZodTypeAny, {
242
+ alpn: string | null;
243
+ fingerprint: string | null;
244
+ allowInsecure: boolean;
245
+ enableSessionResumption: boolean;
246
+ serverName: string | null;
247
+ echConfigList: string | null;
248
+ echForceQuery: string | null;
249
+ }, {
250
+ alpn: string | null;
251
+ fingerprint: string | null;
252
+ allowInsecure: boolean;
253
+ enableSessionResumption: boolean;
254
+ serverName: string | null;
255
+ echConfigList: string | null;
256
+ echForceQuery: string | null;
257
+ }>;
258
+ export declare const RealitySecurityOptionsSchema: z.ZodObject<{
259
+ fingerprint: z.ZodString;
260
+ publicKey: z.ZodString;
261
+ shortId: z.ZodNullable<z.ZodString>;
262
+ serverName: z.ZodString;
263
+ spiderX: z.ZodNullable<z.ZodString>;
264
+ mldsa65Verify: z.ZodNullable<z.ZodString>;
265
+ }, "strip", z.ZodTypeAny, {
266
+ fingerprint: string;
267
+ serverName: string;
268
+ publicKey: string;
269
+ shortId: string | null;
270
+ spiderX: string | null;
271
+ mldsa65Verify: string | null;
272
+ }, {
273
+ fingerprint: string;
274
+ serverName: string;
275
+ publicKey: string;
276
+ shortId: string | null;
277
+ spiderX: string | null;
278
+ mldsa65Verify: string | null;
279
+ }>;
280
+ export declare const ProtocolVariantSchema: z.ZodDiscriminatedUnion<"protocol", [z.ZodObject<{
281
+ protocol: z.ZodLiteral<"vless">;
282
+ protocolOptions: z.ZodObject<{
283
+ encryption: z.ZodString;
284
+ id: z.ZodString;
285
+ flow: z.ZodEnum<["", "xtls-rprx-vision", "xtls-rprx-vision-udp443"]>;
286
+ }, "strip", z.ZodTypeAny, {
287
+ id: string;
288
+ encryption: string;
289
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
290
+ }, {
291
+ id: string;
292
+ encryption: string;
293
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
294
+ }>;
295
+ }, "strip", z.ZodTypeAny, {
296
+ protocol: "vless";
297
+ protocolOptions: {
298
+ id: string;
299
+ encryption: string;
300
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
301
+ };
302
+ }, {
303
+ protocol: "vless";
304
+ protocolOptions: {
305
+ id: string;
306
+ encryption: string;
307
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
308
+ };
309
+ }>, z.ZodObject<{
310
+ protocol: z.ZodLiteral<"trojan">;
311
+ protocolOptions: z.ZodObject<{
312
+ password: z.ZodString;
313
+ }, "strip", z.ZodTypeAny, {
314
+ password: string;
315
+ }, {
316
+ password: string;
317
+ }>;
318
+ }, "strip", z.ZodTypeAny, {
319
+ protocol: "trojan";
320
+ protocolOptions: {
321
+ password: string;
322
+ };
323
+ }, {
324
+ protocol: "trojan";
325
+ protocolOptions: {
326
+ password: string;
327
+ };
328
+ }>, z.ZodObject<{
329
+ protocol: z.ZodLiteral<"shadowsocks">;
330
+ protocolOptions: z.ZodObject<{
331
+ method: z.ZodString;
332
+ password: z.ZodString;
333
+ uot: z.ZodBoolean;
334
+ uotVersion: z.ZodNumber;
335
+ }, "strip", z.ZodTypeAny, {
336
+ password: string;
337
+ method: string;
338
+ uot: boolean;
339
+ uotVersion: number;
340
+ }, {
341
+ password: string;
342
+ method: string;
343
+ uot: boolean;
344
+ uotVersion: number;
345
+ }>;
346
+ }, "strip", z.ZodTypeAny, {
347
+ protocol: "shadowsocks";
348
+ protocolOptions: {
349
+ password: string;
350
+ method: string;
351
+ uot: boolean;
352
+ uotVersion: number;
353
+ };
354
+ }, {
355
+ protocol: "shadowsocks";
356
+ protocolOptions: {
357
+ password: string;
358
+ method: string;
359
+ uot: boolean;
360
+ uotVersion: number;
361
+ };
362
+ }>, z.ZodObject<{
363
+ protocol: z.ZodLiteral<"hysteria">;
364
+ protocolOptions: z.ZodObject<{
365
+ version: z.ZodNumber;
366
+ }, "strip", z.ZodTypeAny, {
367
+ version: number;
368
+ }, {
369
+ version: number;
370
+ }>;
371
+ }, "strip", z.ZodTypeAny, {
372
+ protocol: "hysteria";
373
+ protocolOptions: {
374
+ version: number;
375
+ };
376
+ }, {
377
+ protocol: "hysteria";
378
+ protocolOptions: {
379
+ version: number;
380
+ };
381
+ }>]>;
382
+ export declare const TransportVariantSchema: z.ZodDiscriminatedUnion<"transport", [z.ZodObject<{
383
+ transport: z.ZodLiteral<"tcp">;
384
+ transportOptions: z.ZodObject<{
385
+ header: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
386
+ type: z.ZodLiteral<"none">;
387
+ }, "strip", z.ZodTypeAny, {
388
+ type: "none";
389
+ }, {
390
+ type: "none";
391
+ }>, z.ZodObject<{
392
+ type: z.ZodLiteral<"http">;
393
+ request: z.ZodOptional<z.ZodObject<{
394
+ version: z.ZodOptional<z.ZodString>;
395
+ method: z.ZodOptional<z.ZodString>;
396
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
397
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
398
+ }, "strip", z.ZodTypeAny, {
399
+ path?: string[] | undefined;
400
+ headers?: Record<string, unknown> | undefined;
401
+ version?: string | undefined;
402
+ method?: string | undefined;
403
+ }, {
404
+ path?: string[] | undefined;
405
+ headers?: Record<string, unknown> | undefined;
406
+ version?: string | undefined;
407
+ method?: string | undefined;
408
+ }>>;
409
+ response: z.ZodOptional<z.ZodObject<{
410
+ version: z.ZodOptional<z.ZodString>;
411
+ status: z.ZodOptional<z.ZodString>;
412
+ reason: z.ZodOptional<z.ZodString>;
413
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
414
+ }, "strip", z.ZodTypeAny, {
415
+ status?: string | undefined;
416
+ headers?: Record<string, unknown> | undefined;
417
+ version?: string | undefined;
418
+ reason?: string | undefined;
419
+ }, {
420
+ status?: string | undefined;
421
+ headers?: Record<string, unknown> | undefined;
422
+ version?: string | undefined;
423
+ reason?: string | undefined;
424
+ }>>;
425
+ }, "strip", z.ZodTypeAny, {
426
+ type: "http";
427
+ response?: {
428
+ status?: string | undefined;
429
+ headers?: Record<string, unknown> | undefined;
430
+ version?: string | undefined;
431
+ reason?: string | undefined;
432
+ } | undefined;
433
+ request?: {
434
+ path?: string[] | undefined;
435
+ headers?: Record<string, unknown> | undefined;
436
+ version?: string | undefined;
437
+ method?: string | undefined;
438
+ } | undefined;
439
+ }, {
440
+ type: "http";
441
+ response?: {
442
+ status?: string | undefined;
443
+ headers?: Record<string, unknown> | undefined;
444
+ version?: string | undefined;
445
+ reason?: string | undefined;
446
+ } | undefined;
447
+ request?: {
448
+ path?: string[] | undefined;
449
+ headers?: Record<string, unknown> | undefined;
450
+ version?: string | undefined;
451
+ method?: string | undefined;
452
+ } | undefined;
453
+ }>]>>;
454
+ }, "strip", z.ZodTypeAny, {
455
+ header: {
456
+ type: "none";
457
+ } | {
458
+ type: "http";
459
+ response?: {
460
+ status?: string | undefined;
461
+ headers?: Record<string, unknown> | undefined;
462
+ version?: string | undefined;
463
+ reason?: string | undefined;
464
+ } | undefined;
465
+ request?: {
466
+ path?: string[] | undefined;
467
+ headers?: Record<string, unknown> | undefined;
468
+ version?: string | undefined;
469
+ method?: string | undefined;
470
+ } | undefined;
471
+ } | null;
472
+ }, {
473
+ header: {
474
+ type: "none";
475
+ } | {
476
+ type: "http";
477
+ response?: {
478
+ status?: string | undefined;
479
+ headers?: Record<string, unknown> | undefined;
480
+ version?: string | undefined;
481
+ reason?: string | undefined;
482
+ } | undefined;
483
+ request?: {
484
+ path?: string[] | undefined;
485
+ headers?: Record<string, unknown> | undefined;
486
+ version?: string | undefined;
487
+ method?: string | undefined;
488
+ } | undefined;
489
+ } | null;
490
+ }>;
491
+ }, "strip", z.ZodTypeAny, {
492
+ transport: "tcp";
493
+ transportOptions: {
494
+ header: {
495
+ type: "none";
496
+ } | {
497
+ type: "http";
498
+ response?: {
499
+ status?: string | undefined;
500
+ headers?: Record<string, unknown> | undefined;
501
+ version?: string | undefined;
502
+ reason?: string | undefined;
503
+ } | undefined;
504
+ request?: {
505
+ path?: string[] | undefined;
506
+ headers?: Record<string, unknown> | undefined;
507
+ version?: string | undefined;
508
+ method?: string | undefined;
509
+ } | undefined;
510
+ } | null;
511
+ };
512
+ }, {
513
+ transport: "tcp";
514
+ transportOptions: {
515
+ header: {
516
+ type: "none";
517
+ } | {
518
+ type: "http";
519
+ response?: {
520
+ status?: string | undefined;
521
+ headers?: Record<string, unknown> | undefined;
522
+ version?: string | undefined;
523
+ reason?: string | undefined;
524
+ } | undefined;
525
+ request?: {
526
+ path?: string[] | undefined;
527
+ headers?: Record<string, unknown> | undefined;
528
+ version?: string | undefined;
529
+ method?: string | undefined;
530
+ } | undefined;
531
+ } | null;
532
+ };
533
+ }>, z.ZodObject<{
534
+ transport: z.ZodLiteral<"xhttp">;
535
+ transportOptions: z.ZodObject<{
536
+ path: z.ZodNullable<z.ZodString>;
537
+ host: z.ZodNullable<z.ZodString>;
538
+ mode: z.ZodEnum<["auto", "packet-up", "stream-up", "stream-one"]>;
539
+ extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
540
+ }, "strip", z.ZodTypeAny, {
541
+ path: string | null;
542
+ host: string | null;
543
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
544
+ extra: Record<string, unknown> | null;
545
+ }, {
546
+ path: string | null;
547
+ host: string | null;
548
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
549
+ extra: Record<string, unknown> | null;
550
+ }>;
551
+ }, "strip", z.ZodTypeAny, {
552
+ transport: "xhttp";
553
+ transportOptions: {
554
+ path: string | null;
555
+ host: string | null;
556
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
557
+ extra: Record<string, unknown> | null;
558
+ };
559
+ }, {
560
+ transport: "xhttp";
561
+ transportOptions: {
562
+ path: string | null;
563
+ host: string | null;
564
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
565
+ extra: Record<string, unknown> | null;
566
+ };
567
+ }>, z.ZodObject<{
568
+ transport: z.ZodLiteral<"ws">;
569
+ transportOptions: z.ZodObject<{
570
+ path: z.ZodNullable<z.ZodString>;
571
+ host: z.ZodNullable<z.ZodString>;
572
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
573
+ heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
574
+ }, "strip", z.ZodTypeAny, {
575
+ path: string | null;
576
+ host: string | null;
577
+ headers: Record<string, string> | null;
578
+ heartbeatPeriod: number | null;
579
+ }, {
580
+ path: string | null;
581
+ host: string | null;
582
+ headers: Record<string, string> | null;
583
+ heartbeatPeriod: number | null;
584
+ }>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ transport: "ws";
587
+ transportOptions: {
588
+ path: string | null;
589
+ host: string | null;
590
+ headers: Record<string, string> | null;
591
+ heartbeatPeriod: number | null;
592
+ };
593
+ }, {
594
+ transport: "ws";
595
+ transportOptions: {
596
+ path: string | null;
597
+ host: string | null;
598
+ headers: Record<string, string> | null;
599
+ heartbeatPeriod: number | null;
600
+ };
601
+ }>, z.ZodObject<{
602
+ transport: z.ZodLiteral<"httpupgrade">;
603
+ transportOptions: z.ZodObject<{
604
+ path: z.ZodNullable<z.ZodString>;
605
+ host: z.ZodNullable<z.ZodString>;
606
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
607
+ }, "strip", z.ZodTypeAny, {
608
+ path: string | null;
609
+ host: string | null;
610
+ headers: Record<string, string> | null;
611
+ }, {
612
+ path: string | null;
613
+ host: string | null;
614
+ headers: Record<string, string> | null;
615
+ }>;
616
+ }, "strip", z.ZodTypeAny, {
617
+ transport: "httpupgrade";
618
+ transportOptions: {
619
+ path: string | null;
620
+ host: string | null;
621
+ headers: Record<string, string> | null;
622
+ };
623
+ }, {
624
+ transport: "httpupgrade";
625
+ transportOptions: {
626
+ path: string | null;
627
+ host: string | null;
628
+ headers: Record<string, string> | null;
629
+ };
630
+ }>, z.ZodObject<{
631
+ transport: z.ZodLiteral<"grpc">;
632
+ transportOptions: z.ZodObject<{
633
+ authority: z.ZodNullable<z.ZodString>;
634
+ serviceName: z.ZodNullable<z.ZodString>;
635
+ multiMode: z.ZodBoolean;
636
+ }, "strip", z.ZodTypeAny, {
637
+ authority: string | null;
638
+ serviceName: string | null;
639
+ multiMode: boolean;
640
+ }, {
641
+ authority: string | null;
642
+ serviceName: string | null;
643
+ multiMode: boolean;
644
+ }>;
645
+ }, "strip", z.ZodTypeAny, {
646
+ transport: "grpc";
647
+ transportOptions: {
648
+ authority: string | null;
649
+ serviceName: string | null;
650
+ multiMode: boolean;
651
+ };
652
+ }, {
653
+ transport: "grpc";
654
+ transportOptions: {
655
+ authority: string | null;
656
+ serviceName: string | null;
657
+ multiMode: boolean;
658
+ };
659
+ }>, z.ZodObject<{
660
+ transport: z.ZodLiteral<"kcp">;
661
+ transportOptions: z.ZodObject<{
662
+ clientMtu: z.ZodNumber;
663
+ tti: z.ZodNumber;
664
+ congestion: z.ZodBoolean;
665
+ }, "strip", z.ZodTypeAny, {
666
+ clientMtu: number;
667
+ tti: number;
668
+ congestion: boolean;
669
+ }, {
670
+ clientMtu: number;
671
+ tti: number;
672
+ congestion: boolean;
673
+ }>;
674
+ }, "strip", z.ZodTypeAny, {
675
+ transport: "kcp";
676
+ transportOptions: {
677
+ clientMtu: number;
678
+ tti: number;
679
+ congestion: boolean;
680
+ };
681
+ }, {
682
+ transport: "kcp";
683
+ transportOptions: {
684
+ clientMtu: number;
685
+ tti: number;
686
+ congestion: boolean;
687
+ };
688
+ }>, z.ZodObject<{
689
+ transport: z.ZodLiteral<"hysteria">;
690
+ transportOptions: z.ZodObject<{
691
+ version: z.ZodNumber;
692
+ auth: z.ZodString;
693
+ }, "strip", z.ZodTypeAny, {
694
+ auth: string;
695
+ version: number;
696
+ }, {
697
+ auth: string;
698
+ version: number;
699
+ }>;
700
+ }, "strip", z.ZodTypeAny, {
701
+ transport: "hysteria";
702
+ transportOptions: {
703
+ auth: string;
704
+ version: number;
705
+ };
706
+ }, {
707
+ transport: "hysteria";
708
+ transportOptions: {
709
+ auth: string;
710
+ version: number;
711
+ };
712
+ }>]>;
713
+ export declare const SecurityVariantSchema: z.ZodDiscriminatedUnion<"security", [z.ZodObject<{
714
+ security: z.ZodLiteral<"tls">;
715
+ securityOptions: z.ZodObject<{
716
+ allowInsecure: z.ZodBoolean;
717
+ alpn: z.ZodNullable<z.ZodString>;
718
+ enableSessionResumption: z.ZodBoolean;
719
+ fingerprint: z.ZodNullable<z.ZodString>;
720
+ serverName: z.ZodNullable<z.ZodString>;
721
+ echConfigList: z.ZodNullable<z.ZodString>;
722
+ echForceQuery: z.ZodNullable<z.ZodString>;
723
+ }, "strip", z.ZodTypeAny, {
724
+ alpn: string | null;
725
+ fingerprint: string | null;
726
+ allowInsecure: boolean;
727
+ enableSessionResumption: boolean;
728
+ serverName: string | null;
729
+ echConfigList: string | null;
730
+ echForceQuery: string | null;
731
+ }, {
732
+ alpn: string | null;
733
+ fingerprint: string | null;
734
+ allowInsecure: boolean;
735
+ enableSessionResumption: boolean;
736
+ serverName: string | null;
737
+ echConfigList: string | null;
738
+ echForceQuery: string | null;
739
+ }>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ security: "tls";
742
+ securityOptions: {
743
+ alpn: string | null;
744
+ fingerprint: string | null;
745
+ allowInsecure: boolean;
746
+ enableSessionResumption: boolean;
747
+ serverName: string | null;
748
+ echConfigList: string | null;
749
+ echForceQuery: string | null;
750
+ };
751
+ }, {
752
+ security: "tls";
753
+ securityOptions: {
754
+ alpn: string | null;
755
+ fingerprint: string | null;
756
+ allowInsecure: boolean;
757
+ enableSessionResumption: boolean;
758
+ serverName: string | null;
759
+ echConfigList: string | null;
760
+ echForceQuery: string | null;
761
+ };
762
+ }>, z.ZodObject<{
763
+ security: z.ZodLiteral<"reality">;
764
+ securityOptions: z.ZodObject<{
765
+ fingerprint: z.ZodString;
766
+ publicKey: z.ZodString;
767
+ shortId: z.ZodNullable<z.ZodString>;
768
+ serverName: z.ZodString;
769
+ spiderX: z.ZodNullable<z.ZodString>;
770
+ mldsa65Verify: z.ZodNullable<z.ZodString>;
771
+ }, "strip", z.ZodTypeAny, {
772
+ fingerprint: string;
773
+ serverName: string;
774
+ publicKey: string;
775
+ shortId: string | null;
776
+ spiderX: string | null;
777
+ mldsa65Verify: string | null;
778
+ }, {
779
+ fingerprint: string;
780
+ serverName: string;
781
+ publicKey: string;
782
+ shortId: string | null;
783
+ spiderX: string | null;
784
+ mldsa65Verify: string | null;
785
+ }>;
786
+ }, "strip", z.ZodTypeAny, {
787
+ security: "reality";
788
+ securityOptions: {
789
+ fingerprint: string;
790
+ serverName: string;
791
+ publicKey: string;
792
+ shortId: string | null;
793
+ spiderX: string | null;
794
+ mldsa65Verify: string | null;
795
+ };
796
+ }, {
797
+ security: "reality";
798
+ securityOptions: {
799
+ fingerprint: string;
800
+ serverName: string;
801
+ publicKey: string;
802
+ shortId: string | null;
803
+ spiderX: string | null;
804
+ mldsa65Verify: string | null;
805
+ };
806
+ }>, z.ZodObject<{
807
+ security: z.ZodLiteral<"none">;
808
+ }, "strip", z.ZodTypeAny, {
809
+ security: "none";
810
+ }, {
811
+ security: "none";
812
+ }>]>;
813
+ export declare const ProxyEntryMetadataSchema: z.ZodObject<{
814
+ uuid: z.ZodString;
815
+ tag: z.ZodNullable<z.ZodString>;
816
+ excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
817
+ readonly XRAY_JSON: "XRAY_JSON";
818
+ readonly XRAY_BASE64: "XRAY_BASE64";
819
+ readonly MIHOMO: "MIHOMO";
820
+ readonly STASH: "STASH";
821
+ readonly CLASH: "CLASH";
822
+ readonly SINGBOX: "SINGBOX";
823
+ }>, "many">;
824
+ inboundTag: z.ZodString;
825
+ configProfileUuid: z.ZodNullable<z.ZodString>;
826
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
827
+ isDisabled: z.ZodBoolean;
828
+ isHidden: z.ZodBoolean;
829
+ viewPosition: z.ZodNumber;
830
+ remark: z.ZodString;
831
+ vlessRouteId: z.ZodNullable<z.ZodNumber>;
832
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
833
+ }, "strip", z.ZodTypeAny, {
834
+ uuid: string;
835
+ tag: string | null;
836
+ viewPosition: number;
837
+ remark: string;
838
+ isDisabled: boolean;
839
+ configProfileUuid: string | null;
840
+ configProfileInboundUuid: string | null;
841
+ isHidden: boolean;
842
+ vlessRouteId: number | null;
843
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
844
+ inboundTag: string;
845
+ rawInbound?: unknown;
846
+ }, {
847
+ uuid: string;
848
+ tag: string | null;
849
+ viewPosition: number;
850
+ remark: string;
851
+ isDisabled: boolean;
852
+ configProfileUuid: string | null;
853
+ configProfileInboundUuid: string | null;
854
+ isHidden: boolean;
855
+ vlessRouteId: number | null;
856
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
857
+ inboundTag: string;
858
+ rawInbound?: unknown;
859
+ }>;
860
+ export declare const ResolvedProxyConfigSchema: z.ZodObject<{
861
+ finalRemark: z.ZodString;
862
+ address: z.ZodString;
863
+ port: z.ZodNumber;
864
+ protocol: z.ZodEnum<["vless", "trojan", "shadowsocks", "hysteria"]>;
865
+ protocolOptions: z.ZodUnion<[z.ZodObject<{
866
+ encryption: z.ZodString;
867
+ id: z.ZodString;
868
+ flow: z.ZodEnum<["", "xtls-rprx-vision", "xtls-rprx-vision-udp443"]>;
869
+ }, "strip", z.ZodTypeAny, {
870
+ id: string;
871
+ encryption: string;
872
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
873
+ }, {
874
+ id: string;
875
+ encryption: string;
876
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
877
+ }>, z.ZodObject<{
878
+ password: z.ZodString;
879
+ }, "strip", z.ZodTypeAny, {
880
+ password: string;
881
+ }, {
882
+ password: string;
883
+ }>, z.ZodObject<{
884
+ method: z.ZodString;
885
+ password: z.ZodString;
886
+ uot: z.ZodBoolean;
887
+ uotVersion: z.ZodNumber;
888
+ }, "strip", z.ZodTypeAny, {
889
+ password: string;
890
+ method: string;
891
+ uot: boolean;
892
+ uotVersion: number;
893
+ }, {
894
+ password: string;
895
+ method: string;
896
+ uot: boolean;
897
+ uotVersion: number;
898
+ }>, z.ZodObject<{
899
+ version: z.ZodNumber;
900
+ }, "strip", z.ZodTypeAny, {
901
+ version: number;
902
+ }, {
903
+ version: number;
904
+ }>]>;
905
+ transport: z.ZodEnum<["tcp", "xhttp", "ws", "httpupgrade", "grpc", "kcp", "hysteria"]>;
906
+ transportOptions: z.ZodUnion<[z.ZodObject<{
907
+ header: z.ZodNullable<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
908
+ type: z.ZodLiteral<"none">;
909
+ }, "strip", z.ZodTypeAny, {
910
+ type: "none";
911
+ }, {
912
+ type: "none";
913
+ }>, z.ZodObject<{
914
+ type: z.ZodLiteral<"http">;
915
+ request: z.ZodOptional<z.ZodObject<{
916
+ version: z.ZodOptional<z.ZodString>;
917
+ method: z.ZodOptional<z.ZodString>;
918
+ path: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
919
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
920
+ }, "strip", z.ZodTypeAny, {
921
+ path?: string[] | undefined;
922
+ headers?: Record<string, unknown> | undefined;
923
+ version?: string | undefined;
924
+ method?: string | undefined;
925
+ }, {
926
+ path?: string[] | undefined;
927
+ headers?: Record<string, unknown> | undefined;
928
+ version?: string | undefined;
929
+ method?: string | undefined;
930
+ }>>;
931
+ response: z.ZodOptional<z.ZodObject<{
932
+ version: z.ZodOptional<z.ZodString>;
933
+ status: z.ZodOptional<z.ZodString>;
934
+ reason: z.ZodOptional<z.ZodString>;
935
+ headers: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
936
+ }, "strip", z.ZodTypeAny, {
937
+ status?: string | undefined;
938
+ headers?: Record<string, unknown> | undefined;
939
+ version?: string | undefined;
940
+ reason?: string | undefined;
941
+ }, {
942
+ status?: string | undefined;
943
+ headers?: Record<string, unknown> | undefined;
944
+ version?: string | undefined;
945
+ reason?: string | undefined;
946
+ }>>;
947
+ }, "strip", z.ZodTypeAny, {
948
+ type: "http";
949
+ response?: {
950
+ status?: string | undefined;
951
+ headers?: Record<string, unknown> | undefined;
952
+ version?: string | undefined;
953
+ reason?: string | undefined;
954
+ } | undefined;
955
+ request?: {
956
+ path?: string[] | undefined;
957
+ headers?: Record<string, unknown> | undefined;
958
+ version?: string | undefined;
959
+ method?: string | undefined;
960
+ } | undefined;
961
+ }, {
962
+ type: "http";
963
+ response?: {
964
+ status?: string | undefined;
965
+ headers?: Record<string, unknown> | undefined;
966
+ version?: string | undefined;
967
+ reason?: string | undefined;
968
+ } | undefined;
969
+ request?: {
970
+ path?: string[] | undefined;
971
+ headers?: Record<string, unknown> | undefined;
972
+ version?: string | undefined;
973
+ method?: string | undefined;
974
+ } | undefined;
975
+ }>]>>;
976
+ }, "strip", z.ZodTypeAny, {
977
+ header: {
978
+ type: "none";
979
+ } | {
980
+ type: "http";
981
+ response?: {
982
+ status?: string | undefined;
983
+ headers?: Record<string, unknown> | undefined;
984
+ version?: string | undefined;
985
+ reason?: string | undefined;
986
+ } | undefined;
987
+ request?: {
988
+ path?: string[] | undefined;
989
+ headers?: Record<string, unknown> | undefined;
990
+ version?: string | undefined;
991
+ method?: string | undefined;
992
+ } | undefined;
993
+ } | null;
994
+ }, {
995
+ header: {
996
+ type: "none";
997
+ } | {
998
+ type: "http";
999
+ response?: {
1000
+ status?: string | undefined;
1001
+ headers?: Record<string, unknown> | undefined;
1002
+ version?: string | undefined;
1003
+ reason?: string | undefined;
1004
+ } | undefined;
1005
+ request?: {
1006
+ path?: string[] | undefined;
1007
+ headers?: Record<string, unknown> | undefined;
1008
+ version?: string | undefined;
1009
+ method?: string | undefined;
1010
+ } | undefined;
1011
+ } | null;
1012
+ }>, z.ZodObject<{
1013
+ path: z.ZodNullable<z.ZodString>;
1014
+ host: z.ZodNullable<z.ZodString>;
1015
+ mode: z.ZodEnum<["auto", "packet-up", "stream-up", "stream-one"]>;
1016
+ extra: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1017
+ }, "strip", z.ZodTypeAny, {
1018
+ path: string | null;
1019
+ host: string | null;
1020
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
1021
+ extra: Record<string, unknown> | null;
1022
+ }, {
1023
+ path: string | null;
1024
+ host: string | null;
1025
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
1026
+ extra: Record<string, unknown> | null;
1027
+ }>, z.ZodObject<{
1028
+ path: z.ZodNullable<z.ZodString>;
1029
+ host: z.ZodNullable<z.ZodString>;
1030
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1031
+ heartbeatPeriod: z.ZodNullable<z.ZodNumber>;
1032
+ }, "strip", z.ZodTypeAny, {
1033
+ path: string | null;
1034
+ host: string | null;
1035
+ headers: Record<string, string> | null;
1036
+ heartbeatPeriod: number | null;
1037
+ }, {
1038
+ path: string | null;
1039
+ host: string | null;
1040
+ headers: Record<string, string> | null;
1041
+ heartbeatPeriod: number | null;
1042
+ }>, z.ZodObject<{
1043
+ path: z.ZodNullable<z.ZodString>;
1044
+ host: z.ZodNullable<z.ZodString>;
1045
+ headers: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
1046
+ }, "strip", z.ZodTypeAny, {
1047
+ path: string | null;
1048
+ host: string | null;
1049
+ headers: Record<string, string> | null;
1050
+ }, {
1051
+ path: string | null;
1052
+ host: string | null;
1053
+ headers: Record<string, string> | null;
1054
+ }>, z.ZodObject<{
1055
+ authority: z.ZodNullable<z.ZodString>;
1056
+ serviceName: z.ZodNullable<z.ZodString>;
1057
+ multiMode: z.ZodBoolean;
1058
+ }, "strip", z.ZodTypeAny, {
1059
+ authority: string | null;
1060
+ serviceName: string | null;
1061
+ multiMode: boolean;
1062
+ }, {
1063
+ authority: string | null;
1064
+ serviceName: string | null;
1065
+ multiMode: boolean;
1066
+ }>, z.ZodObject<{
1067
+ clientMtu: z.ZodNumber;
1068
+ tti: z.ZodNumber;
1069
+ congestion: z.ZodBoolean;
1070
+ }, "strip", z.ZodTypeAny, {
1071
+ clientMtu: number;
1072
+ tti: number;
1073
+ congestion: boolean;
1074
+ }, {
1075
+ clientMtu: number;
1076
+ tti: number;
1077
+ congestion: boolean;
1078
+ }>, z.ZodObject<{
1079
+ version: z.ZodNumber;
1080
+ auth: z.ZodString;
1081
+ }, "strip", z.ZodTypeAny, {
1082
+ auth: string;
1083
+ version: number;
1084
+ }, {
1085
+ auth: string;
1086
+ version: number;
1087
+ }>]>;
1088
+ security: z.ZodEnum<["tls", "reality", "none"]>;
1089
+ securityOptions: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
1090
+ allowInsecure: z.ZodBoolean;
1091
+ alpn: z.ZodNullable<z.ZodString>;
1092
+ enableSessionResumption: z.ZodBoolean;
1093
+ fingerprint: z.ZodNullable<z.ZodString>;
1094
+ serverName: z.ZodNullable<z.ZodString>;
1095
+ echConfigList: z.ZodNullable<z.ZodString>;
1096
+ echForceQuery: z.ZodNullable<z.ZodString>;
1097
+ }, "strip", z.ZodTypeAny, {
1098
+ alpn: string | null;
1099
+ fingerprint: string | null;
1100
+ allowInsecure: boolean;
1101
+ enableSessionResumption: boolean;
1102
+ serverName: string | null;
1103
+ echConfigList: string | null;
1104
+ echForceQuery: string | null;
1105
+ }, {
1106
+ alpn: string | null;
1107
+ fingerprint: string | null;
1108
+ allowInsecure: boolean;
1109
+ enableSessionResumption: boolean;
1110
+ serverName: string | null;
1111
+ echConfigList: string | null;
1112
+ echForceQuery: string | null;
1113
+ }>, z.ZodObject<{
1114
+ fingerprint: z.ZodString;
1115
+ publicKey: z.ZodString;
1116
+ shortId: z.ZodNullable<z.ZodString>;
1117
+ serverName: z.ZodString;
1118
+ spiderX: z.ZodNullable<z.ZodString>;
1119
+ mldsa65Verify: z.ZodNullable<z.ZodString>;
1120
+ }, "strip", z.ZodTypeAny, {
1121
+ fingerprint: string;
1122
+ serverName: string;
1123
+ publicKey: string;
1124
+ shortId: string | null;
1125
+ spiderX: string | null;
1126
+ mldsa65Verify: string | null;
1127
+ }, {
1128
+ fingerprint: string;
1129
+ serverName: string;
1130
+ publicKey: string;
1131
+ shortId: string | null;
1132
+ spiderX: string | null;
1133
+ mldsa65Verify: string | null;
1134
+ }>]>>;
1135
+ streamOverrides: z.ZodObject<{
1136
+ finalMask: z.ZodNullable<z.ZodUnknown>;
1137
+ sockopt: z.ZodNullable<z.ZodUnknown>;
1138
+ }, "strip", z.ZodTypeAny, {
1139
+ finalMask?: unknown;
1140
+ sockopt?: unknown;
1141
+ }, {
1142
+ finalMask?: unknown;
1143
+ sockopt?: unknown;
1144
+ }>;
1145
+ mux: z.ZodNullable<z.ZodUnknown>;
1146
+ clientOverrides: z.ZodObject<{
1147
+ shuffleHost: z.ZodBoolean;
1148
+ mihomoX25519: z.ZodBoolean;
1149
+ serverDescription: z.ZodNullable<z.ZodString>;
1150
+ xrayJsonTemplate: z.ZodNullable<z.ZodUnknown>;
1151
+ }, "strip", z.ZodTypeAny, {
1152
+ serverDescription: string | null;
1153
+ shuffleHost: boolean;
1154
+ mihomoX25519: boolean;
1155
+ xrayJsonTemplate?: unknown;
1156
+ }, {
1157
+ serverDescription: string | null;
1158
+ shuffleHost: boolean;
1159
+ mihomoX25519: boolean;
1160
+ xrayJsonTemplate?: unknown;
1161
+ }>;
1162
+ metadata: z.ZodObject<{
1163
+ uuid: z.ZodString;
1164
+ tag: z.ZodNullable<z.ZodString>;
1165
+ excludeFromSubscriptionTypes: z.ZodArray<z.ZodNativeEnum<{
1166
+ readonly XRAY_JSON: "XRAY_JSON";
1167
+ readonly XRAY_BASE64: "XRAY_BASE64";
1168
+ readonly MIHOMO: "MIHOMO";
1169
+ readonly STASH: "STASH";
1170
+ readonly CLASH: "CLASH";
1171
+ readonly SINGBOX: "SINGBOX";
1172
+ }>, "many">;
1173
+ inboundTag: z.ZodString;
1174
+ configProfileUuid: z.ZodNullable<z.ZodString>;
1175
+ configProfileInboundUuid: z.ZodNullable<z.ZodString>;
1176
+ isDisabled: z.ZodBoolean;
1177
+ isHidden: z.ZodBoolean;
1178
+ viewPosition: z.ZodNumber;
1179
+ remark: z.ZodString;
1180
+ vlessRouteId: z.ZodNullable<z.ZodNumber>;
1181
+ rawInbound: z.ZodNullable<z.ZodUnknown>;
1182
+ }, "strip", z.ZodTypeAny, {
1183
+ uuid: string;
1184
+ tag: string | null;
1185
+ viewPosition: number;
1186
+ remark: string;
1187
+ isDisabled: boolean;
1188
+ configProfileUuid: string | null;
1189
+ configProfileInboundUuid: string | null;
1190
+ isHidden: boolean;
1191
+ vlessRouteId: number | null;
1192
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
1193
+ inboundTag: string;
1194
+ rawInbound?: unknown;
1195
+ }, {
1196
+ uuid: string;
1197
+ tag: string | null;
1198
+ viewPosition: number;
1199
+ remark: string;
1200
+ isDisabled: boolean;
1201
+ configProfileUuid: string | null;
1202
+ configProfileInboundUuid: string | null;
1203
+ isHidden: boolean;
1204
+ vlessRouteId: number | null;
1205
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
1206
+ inboundTag: string;
1207
+ rawInbound?: unknown;
1208
+ }>;
1209
+ }, "strip", z.ZodTypeAny, {
1210
+ metadata: {
1211
+ uuid: string;
1212
+ tag: string | null;
1213
+ viewPosition: number;
1214
+ remark: string;
1215
+ isDisabled: boolean;
1216
+ configProfileUuid: string | null;
1217
+ configProfileInboundUuid: string | null;
1218
+ isHidden: boolean;
1219
+ vlessRouteId: number | null;
1220
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
1221
+ inboundTag: string;
1222
+ rawInbound?: unknown;
1223
+ };
1224
+ security: "none" | "tls" | "reality";
1225
+ port: number;
1226
+ address: string;
1227
+ protocol: "vless" | "trojan" | "shadowsocks" | "hysteria";
1228
+ protocolOptions: {
1229
+ id: string;
1230
+ encryption: string;
1231
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
1232
+ } | {
1233
+ password: string;
1234
+ } | {
1235
+ password: string;
1236
+ method: string;
1237
+ uot: boolean;
1238
+ uotVersion: number;
1239
+ } | {
1240
+ version: number;
1241
+ };
1242
+ transport: "hysteria" | "tcp" | "xhttp" | "ws" | "httpupgrade" | "grpc" | "kcp";
1243
+ transportOptions: {
1244
+ header: {
1245
+ type: "none";
1246
+ } | {
1247
+ type: "http";
1248
+ response?: {
1249
+ status?: string | undefined;
1250
+ headers?: Record<string, unknown> | undefined;
1251
+ version?: string | undefined;
1252
+ reason?: string | undefined;
1253
+ } | undefined;
1254
+ request?: {
1255
+ path?: string[] | undefined;
1256
+ headers?: Record<string, unknown> | undefined;
1257
+ version?: string | undefined;
1258
+ method?: string | undefined;
1259
+ } | undefined;
1260
+ } | null;
1261
+ } | {
1262
+ path: string | null;
1263
+ host: string | null;
1264
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
1265
+ extra: Record<string, unknown> | null;
1266
+ } | {
1267
+ path: string | null;
1268
+ host: string | null;
1269
+ headers: Record<string, string> | null;
1270
+ heartbeatPeriod: number | null;
1271
+ } | {
1272
+ path: string | null;
1273
+ host: string | null;
1274
+ headers: Record<string, string> | null;
1275
+ } | {
1276
+ authority: string | null;
1277
+ serviceName: string | null;
1278
+ multiMode: boolean;
1279
+ } | {
1280
+ clientMtu: number;
1281
+ tti: number;
1282
+ congestion: boolean;
1283
+ } | {
1284
+ auth: string;
1285
+ version: number;
1286
+ };
1287
+ finalRemark: string;
1288
+ streamOverrides: {
1289
+ finalMask?: unknown;
1290
+ sockopt?: unknown;
1291
+ };
1292
+ clientOverrides: {
1293
+ serverDescription: string | null;
1294
+ shuffleHost: boolean;
1295
+ mihomoX25519: boolean;
1296
+ xrayJsonTemplate?: unknown;
1297
+ };
1298
+ securityOptions?: {
1299
+ alpn: string | null;
1300
+ fingerprint: string | null;
1301
+ allowInsecure: boolean;
1302
+ enableSessionResumption: boolean;
1303
+ serverName: string | null;
1304
+ echConfigList: string | null;
1305
+ echForceQuery: string | null;
1306
+ } | {
1307
+ fingerprint: string;
1308
+ serverName: string;
1309
+ publicKey: string;
1310
+ shortId: string | null;
1311
+ spiderX: string | null;
1312
+ mldsa65Verify: string | null;
1313
+ } | undefined;
1314
+ mux?: unknown;
1315
+ }, {
1316
+ metadata: {
1317
+ uuid: string;
1318
+ tag: string | null;
1319
+ viewPosition: number;
1320
+ remark: string;
1321
+ isDisabled: boolean;
1322
+ configProfileUuid: string | null;
1323
+ configProfileInboundUuid: string | null;
1324
+ isHidden: boolean;
1325
+ vlessRouteId: number | null;
1326
+ excludeFromSubscriptionTypes: ("STASH" | "SINGBOX" | "MIHOMO" | "XRAY_JSON" | "CLASH" | "XRAY_BASE64")[];
1327
+ inboundTag: string;
1328
+ rawInbound?: unknown;
1329
+ };
1330
+ security: "none" | "tls" | "reality";
1331
+ port: number;
1332
+ address: string;
1333
+ protocol: "vless" | "trojan" | "shadowsocks" | "hysteria";
1334
+ protocolOptions: {
1335
+ id: string;
1336
+ encryption: string;
1337
+ flow: "" | "xtls-rprx-vision" | "xtls-rprx-vision-udp443";
1338
+ } | {
1339
+ password: string;
1340
+ } | {
1341
+ password: string;
1342
+ method: string;
1343
+ uot: boolean;
1344
+ uotVersion: number;
1345
+ } | {
1346
+ version: number;
1347
+ };
1348
+ transport: "hysteria" | "tcp" | "xhttp" | "ws" | "httpupgrade" | "grpc" | "kcp";
1349
+ transportOptions: {
1350
+ header: {
1351
+ type: "none";
1352
+ } | {
1353
+ type: "http";
1354
+ response?: {
1355
+ status?: string | undefined;
1356
+ headers?: Record<string, unknown> | undefined;
1357
+ version?: string | undefined;
1358
+ reason?: string | undefined;
1359
+ } | undefined;
1360
+ request?: {
1361
+ path?: string[] | undefined;
1362
+ headers?: Record<string, unknown> | undefined;
1363
+ version?: string | undefined;
1364
+ method?: string | undefined;
1365
+ } | undefined;
1366
+ } | null;
1367
+ } | {
1368
+ path: string | null;
1369
+ host: string | null;
1370
+ mode: "auto" | "packet-up" | "stream-up" | "stream-one";
1371
+ extra: Record<string, unknown> | null;
1372
+ } | {
1373
+ path: string | null;
1374
+ host: string | null;
1375
+ headers: Record<string, string> | null;
1376
+ heartbeatPeriod: number | null;
1377
+ } | {
1378
+ path: string | null;
1379
+ host: string | null;
1380
+ headers: Record<string, string> | null;
1381
+ } | {
1382
+ authority: string | null;
1383
+ serviceName: string | null;
1384
+ multiMode: boolean;
1385
+ } | {
1386
+ clientMtu: number;
1387
+ tti: number;
1388
+ congestion: boolean;
1389
+ } | {
1390
+ auth: string;
1391
+ version: number;
1392
+ };
1393
+ finalRemark: string;
1394
+ streamOverrides: {
1395
+ finalMask?: unknown;
1396
+ sockopt?: unknown;
1397
+ };
1398
+ clientOverrides: {
1399
+ serverDescription: string | null;
1400
+ shuffleHost: boolean;
1401
+ mihomoX25519: boolean;
1402
+ xrayJsonTemplate?: unknown;
1403
+ };
1404
+ securityOptions?: {
1405
+ alpn: string | null;
1406
+ fingerprint: string | null;
1407
+ allowInsecure: boolean;
1408
+ enableSessionResumption: boolean;
1409
+ serverName: string | null;
1410
+ echConfigList: string | null;
1411
+ echForceQuery: string | null;
1412
+ } | {
1413
+ fingerprint: string;
1414
+ serverName: string;
1415
+ publicKey: string;
1416
+ shortId: string | null;
1417
+ spiderX: string | null;
1418
+ mldsa65Verify: string | null;
1419
+ } | undefined;
1420
+ mux?: unknown;
1421
+ }>;
1422
+ //# sourceMappingURL=resolved-proxy-config.schema.d.ts.map