@remnawave/backend-contract 2.6.54 → 2.6.56
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/api/controllers-info.d.ts +1 -1
- package/build/backend/api/controllers-info.js +1 -1
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/create-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/delete-billing-node-by-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/get-billing-nodes.command.d.ts.map +1 -1
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts +24 -8
- package/build/backend/commands/infra-billing/update-billing-node.command.d.ts.map +1 -1
- package/build/backend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts +32 -24
- package/build/backend/commands/node-plugins/torrent-blocker/get-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts +32 -24
- package/build/backend/commands/node-plugins/torrent-blocker/truncate-torrent-blocker-reports.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/disable.command.d.ts +36 -20
- package/build/backend/commands/nodes/actions/disable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/enable.command.d.ts +36 -20
- package/build/backend/commands/nodes/actions/enable.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/actions/reorder.command.d.ts +48 -24
- package/build/backend/commands/nodes/actions/reorder.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/create.command.d.ts +36 -20
- package/build/backend/commands/nodes/create.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-all.command.d.ts +36 -20
- package/build/backend/commands/nodes/get-all.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/get-one.command.d.ts +36 -20
- package/build/backend/commands/nodes/get-one.command.d.ts.map +1 -1
- package/build/backend/commands/nodes/update.command.d.ts +48 -24
- package/build/backend/commands/nodes/update.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +878 -348
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts.map +1 -1
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +2 -59
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts +5 -0
- package/build/backend/constants/cache-keys/cache-keys.constants.d.ts.map +1 -1
- package/build/backend/constants/cache-keys/cache-keys.constants.js +5 -0
- package/build/backend/models/index.d.ts +1 -0
- package/build/backend/models/index.d.ts.map +1 -1
- package/build/backend/models/index.js +1 -0
- package/build/backend/models/infra-billing-available-node.schema.d.ts +12 -4
- package/build/backend/models/infra-billing-available-node.schema.d.ts.map +1 -1
- package/build/backend/models/infra-billing-node.schema.d.ts +12 -4
- package/build/backend/models/infra-billing-node.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.d.ts +24 -12
- package/build/backend/models/nodes.schema.d.ts.map +1 -1
- package/build/backend/models/nodes.schema.js +6 -4
- package/build/backend/models/resolved-proxy-config.schema.d.ts +1422 -0
- package/build/backend/models/resolved-proxy-config.schema.d.ts.map +1 -0
- package/build/backend/models/resolved-proxy-config.schema.js +219 -0
- package/build/backend/models/torrent-blocker-report.schema.d.ts +24 -16
- package/build/backend/models/torrent-blocker-report.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.d.ts +200 -128
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/frontend/api/controllers-info.js +1 -1
- package/build/frontend/commands/keygen/get-pubkey.command.js +1 -1
- package/build/frontend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.js +2 -59
- package/build/frontend/constants/cache-keys/cache-keys.constants.js +5 -0
- package/build/frontend/models/index.js +1 -0
- package/build/frontend/models/nodes.schema.js +6 -4
- package/build/frontend/models/resolved-proxy-config.schema.js +219 -0
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"resolved-proxy-config.schema.d.ts","sourceRoot":"","sources":["../../../models/resolved-proxy-config.schema.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,219 @@
|
|
|
1
|
+
"use strict";
|
|
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;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
const constants_1 = require("../constants");
|
|
6
|
+
exports.VlessProtocolOptionsSchema = zod_1.z.object({
|
|
7
|
+
encryption: zod_1.z.string(),
|
|
8
|
+
id: zod_1.z.string(),
|
|
9
|
+
flow: zod_1.z.enum(['', 'xtls-rprx-vision', 'xtls-rprx-vision-udp443']),
|
|
10
|
+
});
|
|
11
|
+
exports.TrojanProtocolOptionsSchema = zod_1.z.object({
|
|
12
|
+
password: zod_1.z.string(),
|
|
13
|
+
});
|
|
14
|
+
exports.ShadowsocksProtocolOptionsSchema = zod_1.z.object({
|
|
15
|
+
method: zod_1.z.string(),
|
|
16
|
+
password: zod_1.z.string(),
|
|
17
|
+
uot: zod_1.z.boolean(),
|
|
18
|
+
uotVersion: zod_1.z.number().int(),
|
|
19
|
+
});
|
|
20
|
+
const TcpHeaderNoneSchema = zod_1.z.object({
|
|
21
|
+
type: zod_1.z.literal('none'),
|
|
22
|
+
});
|
|
23
|
+
const TcpHeaderHttpRequestSchema = zod_1.z.object({
|
|
24
|
+
version: zod_1.z.string().optional(),
|
|
25
|
+
method: zod_1.z.string().optional(),
|
|
26
|
+
path: zod_1.z.array(zod_1.z.string()).optional(),
|
|
27
|
+
headers: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
28
|
+
});
|
|
29
|
+
const TcpHeaderHttpResponseSchema = zod_1.z.object({
|
|
30
|
+
version: zod_1.z.string().optional(),
|
|
31
|
+
status: zod_1.z.string().optional(),
|
|
32
|
+
reason: zod_1.z.string().optional(),
|
|
33
|
+
headers: zod_1.z.record(zod_1.z.unknown()).optional(),
|
|
34
|
+
});
|
|
35
|
+
const TcpHeaderHttpSchema = zod_1.z.object({
|
|
36
|
+
type: zod_1.z.literal('http'),
|
|
37
|
+
request: TcpHeaderHttpRequestSchema.optional(),
|
|
38
|
+
response: TcpHeaderHttpResponseSchema.optional(),
|
|
39
|
+
});
|
|
40
|
+
const TcpHeaderSchema = zod_1.z.discriminatedUnion('type', [TcpHeaderNoneSchema, TcpHeaderHttpSchema]);
|
|
41
|
+
exports.TcpTransportOptionsSchema = zod_1.z.object({
|
|
42
|
+
header: TcpHeaderSchema.nullable(),
|
|
43
|
+
});
|
|
44
|
+
exports.XhttpTransportOptionsSchema = zod_1.z.object({
|
|
45
|
+
path: zod_1.z.string().nullable(),
|
|
46
|
+
host: zod_1.z.string().nullable(),
|
|
47
|
+
mode: zod_1.z.enum(['auto', 'packet-up', 'stream-up', 'stream-one']),
|
|
48
|
+
extra: zod_1.z.record(zod_1.z.unknown()).nullable(),
|
|
49
|
+
});
|
|
50
|
+
exports.WsTransportOptionsSchema = zod_1.z.object({
|
|
51
|
+
path: zod_1.z.string().nullable(),
|
|
52
|
+
host: zod_1.z.string().nullable(),
|
|
53
|
+
headers: zod_1.z.record(zod_1.z.string()).nullable(),
|
|
54
|
+
heartbeatPeriod: zod_1.z.number().nullable(),
|
|
55
|
+
});
|
|
56
|
+
exports.HttpUpgradeTransportOptionsSchema = zod_1.z.object({
|
|
57
|
+
path: zod_1.z.string().nullable(),
|
|
58
|
+
host: zod_1.z.string().nullable(),
|
|
59
|
+
headers: zod_1.z.record(zod_1.z.string()).nullable(),
|
|
60
|
+
});
|
|
61
|
+
exports.GrpcTransportOptionsSchema = zod_1.z.object({
|
|
62
|
+
authority: zod_1.z.string().nullable(),
|
|
63
|
+
serviceName: zod_1.z.string().nullable(),
|
|
64
|
+
multiMode: zod_1.z.boolean(),
|
|
65
|
+
});
|
|
66
|
+
exports.KcpTransportOptionsSchema = zod_1.z.object({
|
|
67
|
+
clientMtu: zod_1.z.number().int(),
|
|
68
|
+
tti: zod_1.z.number().int(),
|
|
69
|
+
congestion: zod_1.z.boolean(),
|
|
70
|
+
});
|
|
71
|
+
exports.HysteriaProtocolOptionsSchema = zod_1.z.object({
|
|
72
|
+
version: zod_1.z.number().int(),
|
|
73
|
+
});
|
|
74
|
+
exports.HysteriaTransportOptionsSchema = zod_1.z.object({
|
|
75
|
+
version: zod_1.z.number().int(),
|
|
76
|
+
auth: zod_1.z.string(),
|
|
77
|
+
});
|
|
78
|
+
exports.TlsSecurityOptionsSchema = zod_1.z.object({
|
|
79
|
+
allowInsecure: zod_1.z.boolean(),
|
|
80
|
+
alpn: zod_1.z.string().nullable(),
|
|
81
|
+
enableSessionResumption: zod_1.z.boolean(),
|
|
82
|
+
fingerprint: zod_1.z.string().nullable(),
|
|
83
|
+
serverName: zod_1.z.string().nullable(),
|
|
84
|
+
echConfigList: zod_1.z.string().nullable(),
|
|
85
|
+
echForceQuery: zod_1.z.string().nullable(),
|
|
86
|
+
});
|
|
87
|
+
exports.RealitySecurityOptionsSchema = zod_1.z.object({
|
|
88
|
+
fingerprint: zod_1.z.string(),
|
|
89
|
+
publicKey: zod_1.z.string(),
|
|
90
|
+
shortId: zod_1.z.string().nullable(),
|
|
91
|
+
serverName: zod_1.z.string(),
|
|
92
|
+
spiderX: zod_1.z.string().nullable(),
|
|
93
|
+
mldsa65Verify: zod_1.z.string().nullable(),
|
|
94
|
+
});
|
|
95
|
+
const VlessProtocolSchema = zod_1.z.object({
|
|
96
|
+
protocol: zod_1.z.literal('vless'),
|
|
97
|
+
protocolOptions: exports.VlessProtocolOptionsSchema,
|
|
98
|
+
});
|
|
99
|
+
const TrojanProtocolSchema = zod_1.z.object({
|
|
100
|
+
protocol: zod_1.z.literal('trojan'),
|
|
101
|
+
protocolOptions: exports.TrojanProtocolOptionsSchema,
|
|
102
|
+
});
|
|
103
|
+
const ShadowsocksProtocolSchema = zod_1.z.object({
|
|
104
|
+
protocol: zod_1.z.literal('shadowsocks'),
|
|
105
|
+
protocolOptions: exports.ShadowsocksProtocolOptionsSchema,
|
|
106
|
+
});
|
|
107
|
+
const HysteriaProtocolSchema = zod_1.z.object({
|
|
108
|
+
protocol: zod_1.z.literal('hysteria'),
|
|
109
|
+
protocolOptions: exports.HysteriaProtocolOptionsSchema,
|
|
110
|
+
});
|
|
111
|
+
exports.ProtocolVariantSchema = zod_1.z.discriminatedUnion('protocol', [
|
|
112
|
+
VlessProtocolSchema,
|
|
113
|
+
TrojanProtocolSchema,
|
|
114
|
+
ShadowsocksProtocolSchema,
|
|
115
|
+
HysteriaProtocolSchema,
|
|
116
|
+
]);
|
|
117
|
+
const TcpTransportSchema = zod_1.z.object({
|
|
118
|
+
transport: zod_1.z.literal('tcp'),
|
|
119
|
+
transportOptions: exports.TcpTransportOptionsSchema,
|
|
120
|
+
});
|
|
121
|
+
const XHttpTransportSchema = zod_1.z.object({
|
|
122
|
+
transport: zod_1.z.literal('xhttp'),
|
|
123
|
+
transportOptions: exports.XhttpTransportOptionsSchema,
|
|
124
|
+
});
|
|
125
|
+
const WsTransportSchema = zod_1.z.object({
|
|
126
|
+
transport: zod_1.z.literal('ws'),
|
|
127
|
+
transportOptions: exports.WsTransportOptionsSchema,
|
|
128
|
+
});
|
|
129
|
+
const HttpUpgradeTransportSchema = zod_1.z.object({
|
|
130
|
+
transport: zod_1.z.literal('httpupgrade'),
|
|
131
|
+
transportOptions: exports.HttpUpgradeTransportOptionsSchema,
|
|
132
|
+
});
|
|
133
|
+
const GrpcTransportSchema = zod_1.z.object({
|
|
134
|
+
transport: zod_1.z.literal('grpc'),
|
|
135
|
+
transportOptions: exports.GrpcTransportOptionsSchema,
|
|
136
|
+
});
|
|
137
|
+
const KcpTransportSchema = zod_1.z.object({
|
|
138
|
+
transport: zod_1.z.literal('kcp'),
|
|
139
|
+
transportOptions: exports.KcpTransportOptionsSchema,
|
|
140
|
+
});
|
|
141
|
+
const HysteriaTransportSchema = zod_1.z.object({
|
|
142
|
+
transport: zod_1.z.literal('hysteria'),
|
|
143
|
+
transportOptions: exports.HysteriaTransportOptionsSchema,
|
|
144
|
+
});
|
|
145
|
+
exports.TransportVariantSchema = zod_1.z.discriminatedUnion('transport', [
|
|
146
|
+
TcpTransportSchema,
|
|
147
|
+
XHttpTransportSchema,
|
|
148
|
+
WsTransportSchema,
|
|
149
|
+
HttpUpgradeTransportSchema,
|
|
150
|
+
GrpcTransportSchema,
|
|
151
|
+
KcpTransportSchema,
|
|
152
|
+
HysteriaTransportSchema,
|
|
153
|
+
]);
|
|
154
|
+
const TlsSecuritySchema = zod_1.z.object({
|
|
155
|
+
security: zod_1.z.literal('tls'),
|
|
156
|
+
securityOptions: exports.TlsSecurityOptionsSchema,
|
|
157
|
+
});
|
|
158
|
+
const RealitySecuritySchema = zod_1.z.object({
|
|
159
|
+
security: zod_1.z.literal('reality'),
|
|
160
|
+
securityOptions: exports.RealitySecurityOptionsSchema,
|
|
161
|
+
});
|
|
162
|
+
const NoneSecuritySchema = zod_1.z.object({
|
|
163
|
+
security: zod_1.z.literal('none'),
|
|
164
|
+
});
|
|
165
|
+
exports.SecurityVariantSchema = zod_1.z.discriminatedUnion('security', [
|
|
166
|
+
TlsSecuritySchema,
|
|
167
|
+
RealitySecuritySchema,
|
|
168
|
+
NoneSecuritySchema,
|
|
169
|
+
]);
|
|
170
|
+
exports.ProxyEntryMetadataSchema = zod_1.z.object({
|
|
171
|
+
uuid: zod_1.z.string().uuid(),
|
|
172
|
+
tag: zod_1.z.string().nullable(),
|
|
173
|
+
excludeFromSubscriptionTypes: zod_1.z.array(zod_1.z.nativeEnum(constants_1.SUBSCRIPTION_TEMPLATE_TYPE)),
|
|
174
|
+
inboundTag: zod_1.z.string(),
|
|
175
|
+
configProfileUuid: zod_1.z.string().uuid().nullable(),
|
|
176
|
+
configProfileInboundUuid: zod_1.z.string().uuid().nullable(),
|
|
177
|
+
isDisabled: zod_1.z.boolean(),
|
|
178
|
+
isHidden: zod_1.z.boolean(),
|
|
179
|
+
viewPosition: zod_1.z.number().int(),
|
|
180
|
+
remark: zod_1.z.string(),
|
|
181
|
+
vlessRouteId: zod_1.z.number().int().nullable(),
|
|
182
|
+
rawInbound: zod_1.z.nullable(zod_1.z.unknown()),
|
|
183
|
+
});
|
|
184
|
+
exports.ResolvedProxyConfigSchema = zod_1.z.object({
|
|
185
|
+
finalRemark: zod_1.z.string(),
|
|
186
|
+
address: zod_1.z.string(),
|
|
187
|
+
port: zod_1.z.number().int().positive(),
|
|
188
|
+
protocol: zod_1.z.enum(['vless', 'trojan', 'shadowsocks', 'hysteria']),
|
|
189
|
+
protocolOptions: zod_1.z.union([
|
|
190
|
+
exports.VlessProtocolOptionsSchema,
|
|
191
|
+
exports.TrojanProtocolOptionsSchema,
|
|
192
|
+
exports.ShadowsocksProtocolOptionsSchema,
|
|
193
|
+
exports.HysteriaProtocolOptionsSchema,
|
|
194
|
+
]),
|
|
195
|
+
transport: zod_1.z.enum(['tcp', 'xhttp', 'ws', 'httpupgrade', 'grpc', 'kcp', 'hysteria']),
|
|
196
|
+
transportOptions: zod_1.z.union([
|
|
197
|
+
exports.TcpTransportOptionsSchema,
|
|
198
|
+
exports.XhttpTransportOptionsSchema,
|
|
199
|
+
exports.WsTransportOptionsSchema,
|
|
200
|
+
exports.HttpUpgradeTransportOptionsSchema,
|
|
201
|
+
exports.GrpcTransportOptionsSchema,
|
|
202
|
+
exports.KcpTransportOptionsSchema,
|
|
203
|
+
exports.HysteriaTransportOptionsSchema,
|
|
204
|
+
]),
|
|
205
|
+
security: zod_1.z.enum(['tls', 'reality', 'none']),
|
|
206
|
+
securityOptions: zod_1.z.union([exports.TlsSecurityOptionsSchema, exports.RealitySecurityOptionsSchema]).optional(),
|
|
207
|
+
streamOverrides: zod_1.z.object({
|
|
208
|
+
finalMask: zod_1.z.nullable(zod_1.z.unknown()),
|
|
209
|
+
sockopt: zod_1.z.nullable(zod_1.z.unknown()),
|
|
210
|
+
}),
|
|
211
|
+
mux: zod_1.z.nullable(zod_1.z.unknown()),
|
|
212
|
+
clientOverrides: zod_1.z.object({
|
|
213
|
+
shuffleHost: zod_1.z.boolean(),
|
|
214
|
+
mihomoX25519: zod_1.z.boolean(),
|
|
215
|
+
serverDescription: zod_1.z.string().nullable(),
|
|
216
|
+
xrayJsonTemplate: zod_1.z.nullable(zod_1.z.unknown()),
|
|
217
|
+
}),
|
|
218
|
+
metadata: exports.ProxyEntryMetadataSchema,
|
|
219
|
+
});
|
|
@@ -85,15 +85,11 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
85
85
|
isConnecting: z.ZodBoolean;
|
|
86
86
|
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
87
87
|
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
|
88
|
-
xrayVersion: z.ZodNullable<z.ZodString>;
|
|
89
|
-
nodeVersion: z.ZodNullable<z.ZodString>;
|
|
90
|
-
xrayUptime: z.ZodString;
|
|
91
88
|
isTrafficTrackingActive: z.ZodBoolean;
|
|
92
89
|
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
|
93
90
|
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
|
94
91
|
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
|
95
92
|
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
|
96
|
-
usersOnline: z.ZodNullable<z.ZodNumber>;
|
|
97
93
|
viewPosition: z.ZodNumber;
|
|
98
94
|
countryCode: z.ZodString;
|
|
99
95
|
consumptionMultiplier: z.ZodNumber;
|
|
@@ -316,6 +312,18 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
316
312
|
networkInterfaces: string[];
|
|
317
313
|
};
|
|
318
314
|
}>>;
|
|
315
|
+
versions: z.ZodNullable<z.ZodObject<{
|
|
316
|
+
xray: z.ZodString;
|
|
317
|
+
node: z.ZodString;
|
|
318
|
+
}, "strip", z.ZodTypeAny, {
|
|
319
|
+
node: string;
|
|
320
|
+
xray: string;
|
|
321
|
+
}, {
|
|
322
|
+
node: string;
|
|
323
|
+
xray: string;
|
|
324
|
+
}>>;
|
|
325
|
+
xrayUptime: z.ZodNumber;
|
|
326
|
+
usersOnline: z.ZodNumber;
|
|
319
327
|
}, "uuid" | "countryCode" | "name">, "strip", z.ZodTypeAny, {
|
|
320
328
|
uuid: string;
|
|
321
329
|
countryCode: string;
|
|
@@ -365,13 +373,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
365
373
|
}, "strip", z.ZodTypeAny, {
|
|
366
374
|
network: string;
|
|
367
375
|
email: string | null;
|
|
368
|
-
level: number | null;
|
|
369
376
|
protocol: string | null;
|
|
377
|
+
inboundTag: string | null;
|
|
378
|
+
level: number | null;
|
|
370
379
|
source: string | null;
|
|
371
380
|
destination: string;
|
|
372
381
|
routeTarget: string | null;
|
|
373
382
|
originalTarget: string | null;
|
|
374
|
-
inboundTag: string | null;
|
|
375
383
|
inboundName: string | null;
|
|
376
384
|
inboundLocal: string | null;
|
|
377
385
|
outboundTag: string | null;
|
|
@@ -379,13 +387,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
379
387
|
}, {
|
|
380
388
|
network: string;
|
|
381
389
|
email: string | null;
|
|
382
|
-
level: number | null;
|
|
383
390
|
protocol: string | null;
|
|
391
|
+
inboundTag: string | null;
|
|
392
|
+
level: number | null;
|
|
384
393
|
source: string | null;
|
|
385
394
|
destination: string;
|
|
386
395
|
routeTarget: string | null;
|
|
387
396
|
originalTarget: string | null;
|
|
388
|
-
inboundTag: string | null;
|
|
389
397
|
inboundName: string | null;
|
|
390
398
|
inboundLocal: string | null;
|
|
391
399
|
outboundTag: string | null;
|
|
@@ -403,13 +411,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
403
411
|
xrayReport: {
|
|
404
412
|
network: string;
|
|
405
413
|
email: string | null;
|
|
406
|
-
level: number | null;
|
|
407
414
|
protocol: string | null;
|
|
415
|
+
inboundTag: string | null;
|
|
416
|
+
level: number | null;
|
|
408
417
|
source: string | null;
|
|
409
418
|
destination: string;
|
|
410
419
|
routeTarget: string | null;
|
|
411
420
|
originalTarget: string | null;
|
|
412
|
-
inboundTag: string | null;
|
|
413
421
|
inboundName: string | null;
|
|
414
422
|
inboundLocal: string | null;
|
|
415
423
|
outboundTag: string | null;
|
|
@@ -427,13 +435,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
427
435
|
xrayReport: {
|
|
428
436
|
network: string;
|
|
429
437
|
email: string | null;
|
|
430
|
-
level: number | null;
|
|
431
438
|
protocol: string | null;
|
|
439
|
+
inboundTag: string | null;
|
|
440
|
+
level: number | null;
|
|
432
441
|
source: string | null;
|
|
433
442
|
destination: string;
|
|
434
443
|
routeTarget: string | null;
|
|
435
444
|
originalTarget: string | null;
|
|
436
|
-
inboundTag: string | null;
|
|
437
445
|
inboundName: string | null;
|
|
438
446
|
inboundLocal: string | null;
|
|
439
447
|
outboundTag: string | null;
|
|
@@ -467,13 +475,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
467
475
|
xrayReport: {
|
|
468
476
|
network: string;
|
|
469
477
|
email: string | null;
|
|
470
|
-
level: number | null;
|
|
471
478
|
protocol: string | null;
|
|
479
|
+
inboundTag: string | null;
|
|
480
|
+
level: number | null;
|
|
472
481
|
source: string | null;
|
|
473
482
|
destination: string;
|
|
474
483
|
routeTarget: string | null;
|
|
475
484
|
originalTarget: string | null;
|
|
476
|
-
inboundTag: string | null;
|
|
477
485
|
inboundName: string | null;
|
|
478
486
|
inboundLocal: string | null;
|
|
479
487
|
outboundTag: string | null;
|
|
@@ -506,13 +514,13 @@ export declare const TorrentBlockerReportSchema: z.ZodObject<{
|
|
|
506
514
|
xrayReport: {
|
|
507
515
|
network: string;
|
|
508
516
|
email: string | null;
|
|
509
|
-
level: number | null;
|
|
510
517
|
protocol: string | null;
|
|
518
|
+
inboundTag: string | null;
|
|
519
|
+
level: number | null;
|
|
511
520
|
source: string | null;
|
|
512
521
|
destination: string;
|
|
513
522
|
routeTarget: string | null;
|
|
514
523
|
originalTarget: string | null;
|
|
515
|
-
inboundTag: string | null;
|
|
516
524
|
inboundName: string | null;
|
|
517
525
|
inboundLocal: string | null;
|
|
518
526
|
outboundTag: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"torrent-blocker-report.schema.d.ts","sourceRoot":"","sources":["../../../models/torrent-blocker-report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B
|
|
1
|
+
{"version":3,"file":"torrent-blocker-report.schema.d.ts","sourceRoot":"","sources":["../../../models/torrent-blocker-report.schema.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAKxB,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDrC,CAAC"}
|