@remnawave/backend-contract 2.6.21 → 2.6.23
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/ip-control/fetch-ips-result.command.d.ts +6 -6
- package/build/backend/commands/subscriptions/get-by/get-raw-subscription-by-short-uuid.command.d.ts +6 -6
- package/build/backend/constants/events/events.d.ts +7 -1
- package/build/backend/constants/events/events.d.ts.map +1 -1
- package/build/backend/constants/events/events.js +5 -0
- package/build/backend/models/webhook/webhook.schema.d.ts +2030 -136
- package/build/backend/models/webhook/webhook.schema.d.ts.map +1 -1
- package/build/backend/models/webhook/webhook.schema.js +45 -1
- package/build/frontend/constants/events/events.js +5 -0
- package/build/frontend/models/webhook/webhook.schema.js +45 -1
- package/package.json +1 -1
|
@@ -1117,6 +1117,953 @@ export declare const RemnawaveWebhookCrmEvents: z.ZodObject<{
|
|
|
1117
1117
|
event: "crm.infra_billing_node_payment_in_7_days" | "crm.infra_billing_node_payment_in_48hrs" | "crm.infra_billing_node_payment_in_24hrs" | "crm.infra_billing_node_payment_due_today" | "crm.infra_billing_node_payment_overdue_24hrs" | "crm.infra_billing_node_payment_overdue_48hrs" | "crm.infra_billing_node_payment_overdue_7_days";
|
|
1118
1118
|
timestamp: string;
|
|
1119
1119
|
}>;
|
|
1120
|
+
export declare const RemnawaveWebhookTorrentBlockerEvents: z.ZodObject<{
|
|
1121
|
+
scope: z.ZodLiteral<"torrent_blocker">;
|
|
1122
|
+
event: z.ZodEnum<["torrent_blocker.report", ..."torrent_blocker.report"[]]>;
|
|
1123
|
+
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
1124
|
+
data: z.ZodObject<{
|
|
1125
|
+
node: z.ZodObject<{
|
|
1126
|
+
uuid: z.ZodString;
|
|
1127
|
+
name: z.ZodString;
|
|
1128
|
+
address: z.ZodString;
|
|
1129
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
1130
|
+
isConnected: z.ZodBoolean;
|
|
1131
|
+
isDisabled: z.ZodBoolean;
|
|
1132
|
+
isConnecting: z.ZodBoolean;
|
|
1133
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1134
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
|
1135
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
|
1136
|
+
nodeVersion: z.ZodNullable<z.ZodString>;
|
|
1137
|
+
xrayUptime: z.ZodString;
|
|
1138
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
|
1139
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
|
1140
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
|
1141
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
|
1142
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
|
1143
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
|
1144
|
+
viewPosition: z.ZodNumber;
|
|
1145
|
+
countryCode: z.ZodString;
|
|
1146
|
+
consumptionMultiplier: z.ZodNumber;
|
|
1147
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
1148
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
1149
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
|
1150
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
|
1151
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1152
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1153
|
+
configProfile: z.ZodObject<{
|
|
1154
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
|
1155
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
|
1156
|
+
uuid: z.ZodString;
|
|
1157
|
+
profileUuid: z.ZodString;
|
|
1158
|
+
tag: z.ZodString;
|
|
1159
|
+
type: z.ZodString;
|
|
1160
|
+
network: z.ZodNullable<z.ZodString>;
|
|
1161
|
+
security: z.ZodNullable<z.ZodString>;
|
|
1162
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
1163
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
1164
|
+
}, "strip", z.ZodTypeAny, {
|
|
1165
|
+
type: string;
|
|
1166
|
+
uuid: string;
|
|
1167
|
+
profileUuid: string;
|
|
1168
|
+
tag: string;
|
|
1169
|
+
network: string | null;
|
|
1170
|
+
security: string | null;
|
|
1171
|
+
port: number | null;
|
|
1172
|
+
rawInbound?: unknown;
|
|
1173
|
+
}, {
|
|
1174
|
+
type: string;
|
|
1175
|
+
uuid: string;
|
|
1176
|
+
profileUuid: string;
|
|
1177
|
+
tag: string;
|
|
1178
|
+
network: string | null;
|
|
1179
|
+
security: string | null;
|
|
1180
|
+
port: number | null;
|
|
1181
|
+
rawInbound?: unknown;
|
|
1182
|
+
}>, "many">;
|
|
1183
|
+
}, "strip", z.ZodTypeAny, {
|
|
1184
|
+
activeConfigProfileUuid: string | null;
|
|
1185
|
+
activeInbounds: {
|
|
1186
|
+
type: string;
|
|
1187
|
+
uuid: string;
|
|
1188
|
+
profileUuid: string;
|
|
1189
|
+
tag: string;
|
|
1190
|
+
network: string | null;
|
|
1191
|
+
security: string | null;
|
|
1192
|
+
port: number | null;
|
|
1193
|
+
rawInbound?: unknown;
|
|
1194
|
+
}[];
|
|
1195
|
+
}, {
|
|
1196
|
+
activeConfigProfileUuid: string | null;
|
|
1197
|
+
activeInbounds: {
|
|
1198
|
+
type: string;
|
|
1199
|
+
uuid: string;
|
|
1200
|
+
profileUuid: string;
|
|
1201
|
+
tag: string;
|
|
1202
|
+
network: string | null;
|
|
1203
|
+
security: string | null;
|
|
1204
|
+
port: number | null;
|
|
1205
|
+
rawInbound?: unknown;
|
|
1206
|
+
}[];
|
|
1207
|
+
}>;
|
|
1208
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
|
1209
|
+
provider: z.ZodNullable<z.ZodObject<{
|
|
1210
|
+
uuid: z.ZodString;
|
|
1211
|
+
name: z.ZodString;
|
|
1212
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
|
1213
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
|
1214
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1215
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1216
|
+
}, "strip", z.ZodTypeAny, {
|
|
1217
|
+
uuid: string;
|
|
1218
|
+
createdAt: Date;
|
|
1219
|
+
updatedAt: Date;
|
|
1220
|
+
name: string;
|
|
1221
|
+
faviconLink: string | null;
|
|
1222
|
+
loginUrl: string | null;
|
|
1223
|
+
}, {
|
|
1224
|
+
uuid: string;
|
|
1225
|
+
createdAt: string;
|
|
1226
|
+
updatedAt: string;
|
|
1227
|
+
name: string;
|
|
1228
|
+
faviconLink: string | null;
|
|
1229
|
+
loginUrl: string | null;
|
|
1230
|
+
}>>;
|
|
1231
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
1232
|
+
}, "strip", z.ZodTypeAny, {
|
|
1233
|
+
tags: string[];
|
|
1234
|
+
uuid: string;
|
|
1235
|
+
createdAt: Date;
|
|
1236
|
+
updatedAt: Date;
|
|
1237
|
+
provider: {
|
|
1238
|
+
uuid: string;
|
|
1239
|
+
createdAt: Date;
|
|
1240
|
+
updatedAt: Date;
|
|
1241
|
+
name: string;
|
|
1242
|
+
faviconLink: string | null;
|
|
1243
|
+
loginUrl: string | null;
|
|
1244
|
+
} | null;
|
|
1245
|
+
countryCode: string;
|
|
1246
|
+
name: string;
|
|
1247
|
+
port: number | null;
|
|
1248
|
+
viewPosition: number;
|
|
1249
|
+
trafficLimitBytes: number | null;
|
|
1250
|
+
address: string;
|
|
1251
|
+
isDisabled: boolean;
|
|
1252
|
+
isConnected: boolean;
|
|
1253
|
+
isConnecting: boolean;
|
|
1254
|
+
lastStatusChange: Date | null;
|
|
1255
|
+
lastStatusMessage: string | null;
|
|
1256
|
+
xrayVersion: string | null;
|
|
1257
|
+
nodeVersion: string | null;
|
|
1258
|
+
xrayUptime: string;
|
|
1259
|
+
isTrafficTrackingActive: boolean;
|
|
1260
|
+
trafficResetDay: number | null;
|
|
1261
|
+
trafficUsedBytes: number | null;
|
|
1262
|
+
notifyPercent: number | null;
|
|
1263
|
+
usersOnline: number | null;
|
|
1264
|
+
consumptionMultiplier: number;
|
|
1265
|
+
cpuCount: number | null;
|
|
1266
|
+
cpuModel: string | null;
|
|
1267
|
+
totalRam: string | null;
|
|
1268
|
+
configProfile: {
|
|
1269
|
+
activeConfigProfileUuid: string | null;
|
|
1270
|
+
activeInbounds: {
|
|
1271
|
+
type: string;
|
|
1272
|
+
uuid: string;
|
|
1273
|
+
profileUuid: string;
|
|
1274
|
+
tag: string;
|
|
1275
|
+
network: string | null;
|
|
1276
|
+
security: string | null;
|
|
1277
|
+
port: number | null;
|
|
1278
|
+
rawInbound?: unknown;
|
|
1279
|
+
}[];
|
|
1280
|
+
};
|
|
1281
|
+
providerUuid: string | null;
|
|
1282
|
+
activePluginUuid: string | null;
|
|
1283
|
+
}, {
|
|
1284
|
+
tags: string[];
|
|
1285
|
+
uuid: string;
|
|
1286
|
+
createdAt: string;
|
|
1287
|
+
updatedAt: string;
|
|
1288
|
+
provider: {
|
|
1289
|
+
uuid: string;
|
|
1290
|
+
createdAt: string;
|
|
1291
|
+
updatedAt: string;
|
|
1292
|
+
name: string;
|
|
1293
|
+
faviconLink: string | null;
|
|
1294
|
+
loginUrl: string | null;
|
|
1295
|
+
} | null;
|
|
1296
|
+
countryCode: string;
|
|
1297
|
+
name: string;
|
|
1298
|
+
port: number | null;
|
|
1299
|
+
viewPosition: number;
|
|
1300
|
+
trafficLimitBytes: number | null;
|
|
1301
|
+
address: string;
|
|
1302
|
+
isDisabled: boolean;
|
|
1303
|
+
isConnected: boolean;
|
|
1304
|
+
isConnecting: boolean;
|
|
1305
|
+
lastStatusChange: string | null;
|
|
1306
|
+
lastStatusMessage: string | null;
|
|
1307
|
+
xrayVersion: string | null;
|
|
1308
|
+
nodeVersion: string | null;
|
|
1309
|
+
xrayUptime: string;
|
|
1310
|
+
isTrafficTrackingActive: boolean;
|
|
1311
|
+
trafficResetDay: number | null;
|
|
1312
|
+
trafficUsedBytes: number | null;
|
|
1313
|
+
notifyPercent: number | null;
|
|
1314
|
+
usersOnline: number | null;
|
|
1315
|
+
consumptionMultiplier: number;
|
|
1316
|
+
cpuCount: number | null;
|
|
1317
|
+
cpuModel: string | null;
|
|
1318
|
+
totalRam: string | null;
|
|
1319
|
+
configProfile: {
|
|
1320
|
+
activeConfigProfileUuid: string | null;
|
|
1321
|
+
activeInbounds: {
|
|
1322
|
+
type: string;
|
|
1323
|
+
uuid: string;
|
|
1324
|
+
profileUuid: string;
|
|
1325
|
+
tag: string;
|
|
1326
|
+
network: string | null;
|
|
1327
|
+
security: string | null;
|
|
1328
|
+
port: number | null;
|
|
1329
|
+
rawInbound?: unknown;
|
|
1330
|
+
}[];
|
|
1331
|
+
};
|
|
1332
|
+
providerUuid: string | null;
|
|
1333
|
+
activePluginUuid: string | null;
|
|
1334
|
+
}>;
|
|
1335
|
+
user: z.ZodObject<{
|
|
1336
|
+
uuid: z.ZodString;
|
|
1337
|
+
id: z.ZodNumber;
|
|
1338
|
+
shortUuid: z.ZodString;
|
|
1339
|
+
username: z.ZodString;
|
|
1340
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
|
1341
|
+
readonly ACTIVE: "ACTIVE";
|
|
1342
|
+
readonly DISABLED: "DISABLED";
|
|
1343
|
+
readonly LIMITED: "LIMITED";
|
|
1344
|
+
readonly EXPIRED: "EXPIRED";
|
|
1345
|
+
}>>;
|
|
1346
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
1347
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
1348
|
+
readonly NO_RESET: "NO_RESET";
|
|
1349
|
+
readonly DAY: "DAY";
|
|
1350
|
+
readonly WEEK: "WEEK";
|
|
1351
|
+
readonly MONTH: "MONTH";
|
|
1352
|
+
}>>;
|
|
1353
|
+
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1354
|
+
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
1355
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1356
|
+
description: z.ZodNullable<z.ZodString>;
|
|
1357
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
1358
|
+
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
1359
|
+
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
1360
|
+
trojanPassword: z.ZodString;
|
|
1361
|
+
vlessUuid: z.ZodString;
|
|
1362
|
+
ssPassword: z.ZodString;
|
|
1363
|
+
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
1364
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1365
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
1366
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1367
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1368
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1369
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1370
|
+
} & {
|
|
1371
|
+
subscriptionUrl: z.ZodString;
|
|
1372
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
|
1373
|
+
uuid: z.ZodString;
|
|
1374
|
+
name: z.ZodString;
|
|
1375
|
+
}, "strip", z.ZodTypeAny, {
|
|
1376
|
+
uuid: string;
|
|
1377
|
+
name: string;
|
|
1378
|
+
}, {
|
|
1379
|
+
uuid: string;
|
|
1380
|
+
name: string;
|
|
1381
|
+
}>, "many">;
|
|
1382
|
+
userTraffic: z.ZodObject<{
|
|
1383
|
+
usedTrafficBytes: z.ZodNumber;
|
|
1384
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
1385
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1386
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
1387
|
+
lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
|
|
1388
|
+
}, "strip", z.ZodTypeAny, {
|
|
1389
|
+
usedTrafficBytes: number;
|
|
1390
|
+
lifetimeUsedTrafficBytes: number;
|
|
1391
|
+
onlineAt: Date | null;
|
|
1392
|
+
firstConnectedAt: Date | null;
|
|
1393
|
+
lastConnectedNodeUuid: string | null;
|
|
1394
|
+
}, {
|
|
1395
|
+
usedTrafficBytes: number;
|
|
1396
|
+
lifetimeUsedTrafficBytes: number;
|
|
1397
|
+
onlineAt: string | null;
|
|
1398
|
+
firstConnectedAt: string | null;
|
|
1399
|
+
lastConnectedNodeUuid: string | null;
|
|
1400
|
+
}>;
|
|
1401
|
+
}, "strip", z.ZodTypeAny, {
|
|
1402
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
1403
|
+
uuid: string;
|
|
1404
|
+
createdAt: Date;
|
|
1405
|
+
updatedAt: Date;
|
|
1406
|
+
username: string;
|
|
1407
|
+
id: number;
|
|
1408
|
+
tag: string | null;
|
|
1409
|
+
shortUuid: string;
|
|
1410
|
+
trafficLimitBytes: number;
|
|
1411
|
+
description: string | null;
|
|
1412
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
1413
|
+
expireAt: Date;
|
|
1414
|
+
telegramId: number | null;
|
|
1415
|
+
email: string | null;
|
|
1416
|
+
hwidDeviceLimit: number | null;
|
|
1417
|
+
externalSquadUuid: string | null;
|
|
1418
|
+
trojanPassword: string;
|
|
1419
|
+
vlessUuid: string;
|
|
1420
|
+
ssPassword: string;
|
|
1421
|
+
lastTriggeredThreshold: number;
|
|
1422
|
+
subRevokedAt: Date | null;
|
|
1423
|
+
subLastUserAgent: string | null;
|
|
1424
|
+
subLastOpenedAt: Date | null;
|
|
1425
|
+
lastTrafficResetAt: Date | null;
|
|
1426
|
+
subscriptionUrl: string;
|
|
1427
|
+
activeInternalSquads: {
|
|
1428
|
+
uuid: string;
|
|
1429
|
+
name: string;
|
|
1430
|
+
}[];
|
|
1431
|
+
userTraffic: {
|
|
1432
|
+
usedTrafficBytes: number;
|
|
1433
|
+
lifetimeUsedTrafficBytes: number;
|
|
1434
|
+
onlineAt: Date | null;
|
|
1435
|
+
firstConnectedAt: Date | null;
|
|
1436
|
+
lastConnectedNodeUuid: string | null;
|
|
1437
|
+
};
|
|
1438
|
+
}, {
|
|
1439
|
+
uuid: string;
|
|
1440
|
+
createdAt: string;
|
|
1441
|
+
updatedAt: string;
|
|
1442
|
+
username: string;
|
|
1443
|
+
id: number;
|
|
1444
|
+
tag: string | null;
|
|
1445
|
+
shortUuid: string;
|
|
1446
|
+
description: string | null;
|
|
1447
|
+
expireAt: string;
|
|
1448
|
+
telegramId: number | null;
|
|
1449
|
+
email: string | null;
|
|
1450
|
+
hwidDeviceLimit: number | null;
|
|
1451
|
+
externalSquadUuid: string | null;
|
|
1452
|
+
trojanPassword: string;
|
|
1453
|
+
vlessUuid: string;
|
|
1454
|
+
ssPassword: string;
|
|
1455
|
+
subRevokedAt: string | null;
|
|
1456
|
+
subLastUserAgent: string | null;
|
|
1457
|
+
subLastOpenedAt: string | null;
|
|
1458
|
+
lastTrafficResetAt: string | null;
|
|
1459
|
+
subscriptionUrl: string;
|
|
1460
|
+
activeInternalSquads: {
|
|
1461
|
+
uuid: string;
|
|
1462
|
+
name: string;
|
|
1463
|
+
}[];
|
|
1464
|
+
userTraffic: {
|
|
1465
|
+
usedTrafficBytes: number;
|
|
1466
|
+
lifetimeUsedTrafficBytes: number;
|
|
1467
|
+
onlineAt: string | null;
|
|
1468
|
+
firstConnectedAt: string | null;
|
|
1469
|
+
lastConnectedNodeUuid: string | null;
|
|
1470
|
+
};
|
|
1471
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
1472
|
+
trafficLimitBytes?: number | undefined;
|
|
1473
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
1474
|
+
lastTriggeredThreshold?: number | undefined;
|
|
1475
|
+
}>;
|
|
1476
|
+
report: z.ZodObject<{
|
|
1477
|
+
actionReport: z.ZodObject<{
|
|
1478
|
+
blocked: z.ZodBoolean;
|
|
1479
|
+
ip: z.ZodString;
|
|
1480
|
+
blockDuration: z.ZodNumber;
|
|
1481
|
+
willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1482
|
+
userId: z.ZodString;
|
|
1483
|
+
processedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
1484
|
+
}, "strip", z.ZodTypeAny, {
|
|
1485
|
+
ip: string;
|
|
1486
|
+
blocked: boolean;
|
|
1487
|
+
blockDuration: number;
|
|
1488
|
+
willUnblockAt: Date;
|
|
1489
|
+
userId: string;
|
|
1490
|
+
processedAt: Date;
|
|
1491
|
+
}, {
|
|
1492
|
+
ip: string;
|
|
1493
|
+
blocked: boolean;
|
|
1494
|
+
blockDuration: number;
|
|
1495
|
+
willUnblockAt: string;
|
|
1496
|
+
userId: string;
|
|
1497
|
+
processedAt: string;
|
|
1498
|
+
}>;
|
|
1499
|
+
xrayReport: z.ZodObject<{
|
|
1500
|
+
email: z.ZodNullable<z.ZodString>;
|
|
1501
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
1502
|
+
protocol: z.ZodNullable<z.ZodString>;
|
|
1503
|
+
network: z.ZodString;
|
|
1504
|
+
source: z.ZodNullable<z.ZodString>;
|
|
1505
|
+
destination: z.ZodString;
|
|
1506
|
+
routeTarget: z.ZodNullable<z.ZodString>;
|
|
1507
|
+
originalTarget: z.ZodNullable<z.ZodString>;
|
|
1508
|
+
inboundTag: z.ZodNullable<z.ZodString>;
|
|
1509
|
+
inboundName: z.ZodNullable<z.ZodString>;
|
|
1510
|
+
inboundLocal: z.ZodNullable<z.ZodString>;
|
|
1511
|
+
outboundTag: z.ZodNullable<z.ZodString>;
|
|
1512
|
+
ts: z.ZodNumber;
|
|
1513
|
+
}, "strip", z.ZodTypeAny, {
|
|
1514
|
+
network: string;
|
|
1515
|
+
email: string | null;
|
|
1516
|
+
level: number | null;
|
|
1517
|
+
protocol: string | null;
|
|
1518
|
+
source: string | null;
|
|
1519
|
+
destination: string;
|
|
1520
|
+
routeTarget: string | null;
|
|
1521
|
+
originalTarget: string | null;
|
|
1522
|
+
inboundTag: string | null;
|
|
1523
|
+
inboundName: string | null;
|
|
1524
|
+
inboundLocal: string | null;
|
|
1525
|
+
outboundTag: string | null;
|
|
1526
|
+
ts: number;
|
|
1527
|
+
}, {
|
|
1528
|
+
network: string;
|
|
1529
|
+
email: string | null;
|
|
1530
|
+
level: number | null;
|
|
1531
|
+
protocol: string | null;
|
|
1532
|
+
source: string | null;
|
|
1533
|
+
destination: string;
|
|
1534
|
+
routeTarget: string | null;
|
|
1535
|
+
originalTarget: string | null;
|
|
1536
|
+
inboundTag: string | null;
|
|
1537
|
+
inboundName: string | null;
|
|
1538
|
+
inboundLocal: string | null;
|
|
1539
|
+
outboundTag: string | null;
|
|
1540
|
+
ts: number;
|
|
1541
|
+
}>;
|
|
1542
|
+
}, "strip", z.ZodTypeAny, {
|
|
1543
|
+
actionReport: {
|
|
1544
|
+
ip: string;
|
|
1545
|
+
blocked: boolean;
|
|
1546
|
+
blockDuration: number;
|
|
1547
|
+
willUnblockAt: Date;
|
|
1548
|
+
userId: string;
|
|
1549
|
+
processedAt: Date;
|
|
1550
|
+
};
|
|
1551
|
+
xrayReport: {
|
|
1552
|
+
network: string;
|
|
1553
|
+
email: string | null;
|
|
1554
|
+
level: number | null;
|
|
1555
|
+
protocol: string | null;
|
|
1556
|
+
source: string | null;
|
|
1557
|
+
destination: string;
|
|
1558
|
+
routeTarget: string | null;
|
|
1559
|
+
originalTarget: string | null;
|
|
1560
|
+
inboundTag: string | null;
|
|
1561
|
+
inboundName: string | null;
|
|
1562
|
+
inboundLocal: string | null;
|
|
1563
|
+
outboundTag: string | null;
|
|
1564
|
+
ts: number;
|
|
1565
|
+
};
|
|
1566
|
+
}, {
|
|
1567
|
+
actionReport: {
|
|
1568
|
+
ip: string;
|
|
1569
|
+
blocked: boolean;
|
|
1570
|
+
blockDuration: number;
|
|
1571
|
+
willUnblockAt: string;
|
|
1572
|
+
userId: string;
|
|
1573
|
+
processedAt: string;
|
|
1574
|
+
};
|
|
1575
|
+
xrayReport: {
|
|
1576
|
+
network: string;
|
|
1577
|
+
email: string | null;
|
|
1578
|
+
level: number | null;
|
|
1579
|
+
protocol: string | null;
|
|
1580
|
+
source: string | null;
|
|
1581
|
+
destination: string;
|
|
1582
|
+
routeTarget: string | null;
|
|
1583
|
+
originalTarget: string | null;
|
|
1584
|
+
inboundTag: string | null;
|
|
1585
|
+
inboundName: string | null;
|
|
1586
|
+
inboundLocal: string | null;
|
|
1587
|
+
outboundTag: string | null;
|
|
1588
|
+
ts: number;
|
|
1589
|
+
};
|
|
1590
|
+
}>;
|
|
1591
|
+
}, "strip", z.ZodTypeAny, {
|
|
1592
|
+
user: {
|
|
1593
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
1594
|
+
uuid: string;
|
|
1595
|
+
createdAt: Date;
|
|
1596
|
+
updatedAt: Date;
|
|
1597
|
+
username: string;
|
|
1598
|
+
id: number;
|
|
1599
|
+
tag: string | null;
|
|
1600
|
+
shortUuid: string;
|
|
1601
|
+
trafficLimitBytes: number;
|
|
1602
|
+
description: string | null;
|
|
1603
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
1604
|
+
expireAt: Date;
|
|
1605
|
+
telegramId: number | null;
|
|
1606
|
+
email: string | null;
|
|
1607
|
+
hwidDeviceLimit: number | null;
|
|
1608
|
+
externalSquadUuid: string | null;
|
|
1609
|
+
trojanPassword: string;
|
|
1610
|
+
vlessUuid: string;
|
|
1611
|
+
ssPassword: string;
|
|
1612
|
+
lastTriggeredThreshold: number;
|
|
1613
|
+
subRevokedAt: Date | null;
|
|
1614
|
+
subLastUserAgent: string | null;
|
|
1615
|
+
subLastOpenedAt: Date | null;
|
|
1616
|
+
lastTrafficResetAt: Date | null;
|
|
1617
|
+
subscriptionUrl: string;
|
|
1618
|
+
activeInternalSquads: {
|
|
1619
|
+
uuid: string;
|
|
1620
|
+
name: string;
|
|
1621
|
+
}[];
|
|
1622
|
+
userTraffic: {
|
|
1623
|
+
usedTrafficBytes: number;
|
|
1624
|
+
lifetimeUsedTrafficBytes: number;
|
|
1625
|
+
onlineAt: Date | null;
|
|
1626
|
+
firstConnectedAt: Date | null;
|
|
1627
|
+
lastConnectedNodeUuid: string | null;
|
|
1628
|
+
};
|
|
1629
|
+
};
|
|
1630
|
+
node: {
|
|
1631
|
+
tags: string[];
|
|
1632
|
+
uuid: string;
|
|
1633
|
+
createdAt: Date;
|
|
1634
|
+
updatedAt: Date;
|
|
1635
|
+
provider: {
|
|
1636
|
+
uuid: string;
|
|
1637
|
+
createdAt: Date;
|
|
1638
|
+
updatedAt: Date;
|
|
1639
|
+
name: string;
|
|
1640
|
+
faviconLink: string | null;
|
|
1641
|
+
loginUrl: string | null;
|
|
1642
|
+
} | null;
|
|
1643
|
+
countryCode: string;
|
|
1644
|
+
name: string;
|
|
1645
|
+
port: number | null;
|
|
1646
|
+
viewPosition: number;
|
|
1647
|
+
trafficLimitBytes: number | null;
|
|
1648
|
+
address: string;
|
|
1649
|
+
isDisabled: boolean;
|
|
1650
|
+
isConnected: boolean;
|
|
1651
|
+
isConnecting: boolean;
|
|
1652
|
+
lastStatusChange: Date | null;
|
|
1653
|
+
lastStatusMessage: string | null;
|
|
1654
|
+
xrayVersion: string | null;
|
|
1655
|
+
nodeVersion: string | null;
|
|
1656
|
+
xrayUptime: string;
|
|
1657
|
+
isTrafficTrackingActive: boolean;
|
|
1658
|
+
trafficResetDay: number | null;
|
|
1659
|
+
trafficUsedBytes: number | null;
|
|
1660
|
+
notifyPercent: number | null;
|
|
1661
|
+
usersOnline: number | null;
|
|
1662
|
+
consumptionMultiplier: number;
|
|
1663
|
+
cpuCount: number | null;
|
|
1664
|
+
cpuModel: string | null;
|
|
1665
|
+
totalRam: string | null;
|
|
1666
|
+
configProfile: {
|
|
1667
|
+
activeConfigProfileUuid: string | null;
|
|
1668
|
+
activeInbounds: {
|
|
1669
|
+
type: string;
|
|
1670
|
+
uuid: string;
|
|
1671
|
+
profileUuid: string;
|
|
1672
|
+
tag: string;
|
|
1673
|
+
network: string | null;
|
|
1674
|
+
security: string | null;
|
|
1675
|
+
port: number | null;
|
|
1676
|
+
rawInbound?: unknown;
|
|
1677
|
+
}[];
|
|
1678
|
+
};
|
|
1679
|
+
providerUuid: string | null;
|
|
1680
|
+
activePluginUuid: string | null;
|
|
1681
|
+
};
|
|
1682
|
+
report: {
|
|
1683
|
+
actionReport: {
|
|
1684
|
+
ip: string;
|
|
1685
|
+
blocked: boolean;
|
|
1686
|
+
blockDuration: number;
|
|
1687
|
+
willUnblockAt: Date;
|
|
1688
|
+
userId: string;
|
|
1689
|
+
processedAt: Date;
|
|
1690
|
+
};
|
|
1691
|
+
xrayReport: {
|
|
1692
|
+
network: string;
|
|
1693
|
+
email: string | null;
|
|
1694
|
+
level: number | null;
|
|
1695
|
+
protocol: string | null;
|
|
1696
|
+
source: string | null;
|
|
1697
|
+
destination: string;
|
|
1698
|
+
routeTarget: string | null;
|
|
1699
|
+
originalTarget: string | null;
|
|
1700
|
+
inboundTag: string | null;
|
|
1701
|
+
inboundName: string | null;
|
|
1702
|
+
inboundLocal: string | null;
|
|
1703
|
+
outboundTag: string | null;
|
|
1704
|
+
ts: number;
|
|
1705
|
+
};
|
|
1706
|
+
};
|
|
1707
|
+
}, {
|
|
1708
|
+
user: {
|
|
1709
|
+
uuid: string;
|
|
1710
|
+
createdAt: string;
|
|
1711
|
+
updatedAt: string;
|
|
1712
|
+
username: string;
|
|
1713
|
+
id: number;
|
|
1714
|
+
tag: string | null;
|
|
1715
|
+
shortUuid: string;
|
|
1716
|
+
description: string | null;
|
|
1717
|
+
expireAt: string;
|
|
1718
|
+
telegramId: number | null;
|
|
1719
|
+
email: string | null;
|
|
1720
|
+
hwidDeviceLimit: number | null;
|
|
1721
|
+
externalSquadUuid: string | null;
|
|
1722
|
+
trojanPassword: string;
|
|
1723
|
+
vlessUuid: string;
|
|
1724
|
+
ssPassword: string;
|
|
1725
|
+
subRevokedAt: string | null;
|
|
1726
|
+
subLastUserAgent: string | null;
|
|
1727
|
+
subLastOpenedAt: string | null;
|
|
1728
|
+
lastTrafficResetAt: string | null;
|
|
1729
|
+
subscriptionUrl: string;
|
|
1730
|
+
activeInternalSquads: {
|
|
1731
|
+
uuid: string;
|
|
1732
|
+
name: string;
|
|
1733
|
+
}[];
|
|
1734
|
+
userTraffic: {
|
|
1735
|
+
usedTrafficBytes: number;
|
|
1736
|
+
lifetimeUsedTrafficBytes: number;
|
|
1737
|
+
onlineAt: string | null;
|
|
1738
|
+
firstConnectedAt: string | null;
|
|
1739
|
+
lastConnectedNodeUuid: string | null;
|
|
1740
|
+
};
|
|
1741
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
1742
|
+
trafficLimitBytes?: number | undefined;
|
|
1743
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
1744
|
+
lastTriggeredThreshold?: number | undefined;
|
|
1745
|
+
};
|
|
1746
|
+
node: {
|
|
1747
|
+
tags: string[];
|
|
1748
|
+
uuid: string;
|
|
1749
|
+
createdAt: string;
|
|
1750
|
+
updatedAt: string;
|
|
1751
|
+
provider: {
|
|
1752
|
+
uuid: string;
|
|
1753
|
+
createdAt: string;
|
|
1754
|
+
updatedAt: string;
|
|
1755
|
+
name: string;
|
|
1756
|
+
faviconLink: string | null;
|
|
1757
|
+
loginUrl: string | null;
|
|
1758
|
+
} | null;
|
|
1759
|
+
countryCode: string;
|
|
1760
|
+
name: string;
|
|
1761
|
+
port: number | null;
|
|
1762
|
+
viewPosition: number;
|
|
1763
|
+
trafficLimitBytes: number | null;
|
|
1764
|
+
address: string;
|
|
1765
|
+
isDisabled: boolean;
|
|
1766
|
+
isConnected: boolean;
|
|
1767
|
+
isConnecting: boolean;
|
|
1768
|
+
lastStatusChange: string | null;
|
|
1769
|
+
lastStatusMessage: string | null;
|
|
1770
|
+
xrayVersion: string | null;
|
|
1771
|
+
nodeVersion: string | null;
|
|
1772
|
+
xrayUptime: string;
|
|
1773
|
+
isTrafficTrackingActive: boolean;
|
|
1774
|
+
trafficResetDay: number | null;
|
|
1775
|
+
trafficUsedBytes: number | null;
|
|
1776
|
+
notifyPercent: number | null;
|
|
1777
|
+
usersOnline: number | null;
|
|
1778
|
+
consumptionMultiplier: number;
|
|
1779
|
+
cpuCount: number | null;
|
|
1780
|
+
cpuModel: string | null;
|
|
1781
|
+
totalRam: string | null;
|
|
1782
|
+
configProfile: {
|
|
1783
|
+
activeConfigProfileUuid: string | null;
|
|
1784
|
+
activeInbounds: {
|
|
1785
|
+
type: string;
|
|
1786
|
+
uuid: string;
|
|
1787
|
+
profileUuid: string;
|
|
1788
|
+
tag: string;
|
|
1789
|
+
network: string | null;
|
|
1790
|
+
security: string | null;
|
|
1791
|
+
port: number | null;
|
|
1792
|
+
rawInbound?: unknown;
|
|
1793
|
+
}[];
|
|
1794
|
+
};
|
|
1795
|
+
providerUuid: string | null;
|
|
1796
|
+
activePluginUuid: string | null;
|
|
1797
|
+
};
|
|
1798
|
+
report: {
|
|
1799
|
+
actionReport: {
|
|
1800
|
+
ip: string;
|
|
1801
|
+
blocked: boolean;
|
|
1802
|
+
blockDuration: number;
|
|
1803
|
+
willUnblockAt: string;
|
|
1804
|
+
userId: string;
|
|
1805
|
+
processedAt: string;
|
|
1806
|
+
};
|
|
1807
|
+
xrayReport: {
|
|
1808
|
+
network: string;
|
|
1809
|
+
email: string | null;
|
|
1810
|
+
level: number | null;
|
|
1811
|
+
protocol: string | null;
|
|
1812
|
+
source: string | null;
|
|
1813
|
+
destination: string;
|
|
1814
|
+
routeTarget: string | null;
|
|
1815
|
+
originalTarget: string | null;
|
|
1816
|
+
inboundTag: string | null;
|
|
1817
|
+
inboundName: string | null;
|
|
1818
|
+
inboundLocal: string | null;
|
|
1819
|
+
outboundTag: string | null;
|
|
1820
|
+
ts: number;
|
|
1821
|
+
};
|
|
1822
|
+
};
|
|
1823
|
+
}>;
|
|
1824
|
+
}, "strip", z.ZodTypeAny, {
|
|
1825
|
+
data: {
|
|
1826
|
+
user: {
|
|
1827
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
1828
|
+
uuid: string;
|
|
1829
|
+
createdAt: Date;
|
|
1830
|
+
updatedAt: Date;
|
|
1831
|
+
username: string;
|
|
1832
|
+
id: number;
|
|
1833
|
+
tag: string | null;
|
|
1834
|
+
shortUuid: string;
|
|
1835
|
+
trafficLimitBytes: number;
|
|
1836
|
+
description: string | null;
|
|
1837
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
1838
|
+
expireAt: Date;
|
|
1839
|
+
telegramId: number | null;
|
|
1840
|
+
email: string | null;
|
|
1841
|
+
hwidDeviceLimit: number | null;
|
|
1842
|
+
externalSquadUuid: string | null;
|
|
1843
|
+
trojanPassword: string;
|
|
1844
|
+
vlessUuid: string;
|
|
1845
|
+
ssPassword: string;
|
|
1846
|
+
lastTriggeredThreshold: number;
|
|
1847
|
+
subRevokedAt: Date | null;
|
|
1848
|
+
subLastUserAgent: string | null;
|
|
1849
|
+
subLastOpenedAt: Date | null;
|
|
1850
|
+
lastTrafficResetAt: Date | null;
|
|
1851
|
+
subscriptionUrl: string;
|
|
1852
|
+
activeInternalSquads: {
|
|
1853
|
+
uuid: string;
|
|
1854
|
+
name: string;
|
|
1855
|
+
}[];
|
|
1856
|
+
userTraffic: {
|
|
1857
|
+
usedTrafficBytes: number;
|
|
1858
|
+
lifetimeUsedTrafficBytes: number;
|
|
1859
|
+
onlineAt: Date | null;
|
|
1860
|
+
firstConnectedAt: Date | null;
|
|
1861
|
+
lastConnectedNodeUuid: string | null;
|
|
1862
|
+
};
|
|
1863
|
+
};
|
|
1864
|
+
node: {
|
|
1865
|
+
tags: string[];
|
|
1866
|
+
uuid: string;
|
|
1867
|
+
createdAt: Date;
|
|
1868
|
+
updatedAt: Date;
|
|
1869
|
+
provider: {
|
|
1870
|
+
uuid: string;
|
|
1871
|
+
createdAt: Date;
|
|
1872
|
+
updatedAt: Date;
|
|
1873
|
+
name: string;
|
|
1874
|
+
faviconLink: string | null;
|
|
1875
|
+
loginUrl: string | null;
|
|
1876
|
+
} | null;
|
|
1877
|
+
countryCode: string;
|
|
1878
|
+
name: string;
|
|
1879
|
+
port: number | null;
|
|
1880
|
+
viewPosition: number;
|
|
1881
|
+
trafficLimitBytes: number | null;
|
|
1882
|
+
address: string;
|
|
1883
|
+
isDisabled: boolean;
|
|
1884
|
+
isConnected: boolean;
|
|
1885
|
+
isConnecting: boolean;
|
|
1886
|
+
lastStatusChange: Date | null;
|
|
1887
|
+
lastStatusMessage: string | null;
|
|
1888
|
+
xrayVersion: string | null;
|
|
1889
|
+
nodeVersion: string | null;
|
|
1890
|
+
xrayUptime: string;
|
|
1891
|
+
isTrafficTrackingActive: boolean;
|
|
1892
|
+
trafficResetDay: number | null;
|
|
1893
|
+
trafficUsedBytes: number | null;
|
|
1894
|
+
notifyPercent: number | null;
|
|
1895
|
+
usersOnline: number | null;
|
|
1896
|
+
consumptionMultiplier: number;
|
|
1897
|
+
cpuCount: number | null;
|
|
1898
|
+
cpuModel: string | null;
|
|
1899
|
+
totalRam: string | null;
|
|
1900
|
+
configProfile: {
|
|
1901
|
+
activeConfigProfileUuid: string | null;
|
|
1902
|
+
activeInbounds: {
|
|
1903
|
+
type: string;
|
|
1904
|
+
uuid: string;
|
|
1905
|
+
profileUuid: string;
|
|
1906
|
+
tag: string;
|
|
1907
|
+
network: string | null;
|
|
1908
|
+
security: string | null;
|
|
1909
|
+
port: number | null;
|
|
1910
|
+
rawInbound?: unknown;
|
|
1911
|
+
}[];
|
|
1912
|
+
};
|
|
1913
|
+
providerUuid: string | null;
|
|
1914
|
+
activePluginUuid: string | null;
|
|
1915
|
+
};
|
|
1916
|
+
report: {
|
|
1917
|
+
actionReport: {
|
|
1918
|
+
ip: string;
|
|
1919
|
+
blocked: boolean;
|
|
1920
|
+
blockDuration: number;
|
|
1921
|
+
willUnblockAt: Date;
|
|
1922
|
+
userId: string;
|
|
1923
|
+
processedAt: Date;
|
|
1924
|
+
};
|
|
1925
|
+
xrayReport: {
|
|
1926
|
+
network: string;
|
|
1927
|
+
email: string | null;
|
|
1928
|
+
level: number | null;
|
|
1929
|
+
protocol: string | null;
|
|
1930
|
+
source: string | null;
|
|
1931
|
+
destination: string;
|
|
1932
|
+
routeTarget: string | null;
|
|
1933
|
+
originalTarget: string | null;
|
|
1934
|
+
inboundTag: string | null;
|
|
1935
|
+
inboundName: string | null;
|
|
1936
|
+
inboundLocal: string | null;
|
|
1937
|
+
outboundTag: string | null;
|
|
1938
|
+
ts: number;
|
|
1939
|
+
};
|
|
1940
|
+
};
|
|
1941
|
+
};
|
|
1942
|
+
scope: "torrent_blocker";
|
|
1943
|
+
event: "torrent_blocker.report";
|
|
1944
|
+
timestamp: Date;
|
|
1945
|
+
}, {
|
|
1946
|
+
data: {
|
|
1947
|
+
user: {
|
|
1948
|
+
uuid: string;
|
|
1949
|
+
createdAt: string;
|
|
1950
|
+
updatedAt: string;
|
|
1951
|
+
username: string;
|
|
1952
|
+
id: number;
|
|
1953
|
+
tag: string | null;
|
|
1954
|
+
shortUuid: string;
|
|
1955
|
+
description: string | null;
|
|
1956
|
+
expireAt: string;
|
|
1957
|
+
telegramId: number | null;
|
|
1958
|
+
email: string | null;
|
|
1959
|
+
hwidDeviceLimit: number | null;
|
|
1960
|
+
externalSquadUuid: string | null;
|
|
1961
|
+
trojanPassword: string;
|
|
1962
|
+
vlessUuid: string;
|
|
1963
|
+
ssPassword: string;
|
|
1964
|
+
subRevokedAt: string | null;
|
|
1965
|
+
subLastUserAgent: string | null;
|
|
1966
|
+
subLastOpenedAt: string | null;
|
|
1967
|
+
lastTrafficResetAt: string | null;
|
|
1968
|
+
subscriptionUrl: string;
|
|
1969
|
+
activeInternalSquads: {
|
|
1970
|
+
uuid: string;
|
|
1971
|
+
name: string;
|
|
1972
|
+
}[];
|
|
1973
|
+
userTraffic: {
|
|
1974
|
+
usedTrafficBytes: number;
|
|
1975
|
+
lifetimeUsedTrafficBytes: number;
|
|
1976
|
+
onlineAt: string | null;
|
|
1977
|
+
firstConnectedAt: string | null;
|
|
1978
|
+
lastConnectedNodeUuid: string | null;
|
|
1979
|
+
};
|
|
1980
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
1981
|
+
trafficLimitBytes?: number | undefined;
|
|
1982
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
1983
|
+
lastTriggeredThreshold?: number | undefined;
|
|
1984
|
+
};
|
|
1985
|
+
node: {
|
|
1986
|
+
tags: string[];
|
|
1987
|
+
uuid: string;
|
|
1988
|
+
createdAt: string;
|
|
1989
|
+
updatedAt: string;
|
|
1990
|
+
provider: {
|
|
1991
|
+
uuid: string;
|
|
1992
|
+
createdAt: string;
|
|
1993
|
+
updatedAt: string;
|
|
1994
|
+
name: string;
|
|
1995
|
+
faviconLink: string | null;
|
|
1996
|
+
loginUrl: string | null;
|
|
1997
|
+
} | null;
|
|
1998
|
+
countryCode: string;
|
|
1999
|
+
name: string;
|
|
2000
|
+
port: number | null;
|
|
2001
|
+
viewPosition: number;
|
|
2002
|
+
trafficLimitBytes: number | null;
|
|
2003
|
+
address: string;
|
|
2004
|
+
isDisabled: boolean;
|
|
2005
|
+
isConnected: boolean;
|
|
2006
|
+
isConnecting: boolean;
|
|
2007
|
+
lastStatusChange: string | null;
|
|
2008
|
+
lastStatusMessage: string | null;
|
|
2009
|
+
xrayVersion: string | null;
|
|
2010
|
+
nodeVersion: string | null;
|
|
2011
|
+
xrayUptime: string;
|
|
2012
|
+
isTrafficTrackingActive: boolean;
|
|
2013
|
+
trafficResetDay: number | null;
|
|
2014
|
+
trafficUsedBytes: number | null;
|
|
2015
|
+
notifyPercent: number | null;
|
|
2016
|
+
usersOnline: number | null;
|
|
2017
|
+
consumptionMultiplier: number;
|
|
2018
|
+
cpuCount: number | null;
|
|
2019
|
+
cpuModel: string | null;
|
|
2020
|
+
totalRam: string | null;
|
|
2021
|
+
configProfile: {
|
|
2022
|
+
activeConfigProfileUuid: string | null;
|
|
2023
|
+
activeInbounds: {
|
|
2024
|
+
type: string;
|
|
2025
|
+
uuid: string;
|
|
2026
|
+
profileUuid: string;
|
|
2027
|
+
tag: string;
|
|
2028
|
+
network: string | null;
|
|
2029
|
+
security: string | null;
|
|
2030
|
+
port: number | null;
|
|
2031
|
+
rawInbound?: unknown;
|
|
2032
|
+
}[];
|
|
2033
|
+
};
|
|
2034
|
+
providerUuid: string | null;
|
|
2035
|
+
activePluginUuid: string | null;
|
|
2036
|
+
};
|
|
2037
|
+
report: {
|
|
2038
|
+
actionReport: {
|
|
2039
|
+
ip: string;
|
|
2040
|
+
blocked: boolean;
|
|
2041
|
+
blockDuration: number;
|
|
2042
|
+
willUnblockAt: string;
|
|
2043
|
+
userId: string;
|
|
2044
|
+
processedAt: string;
|
|
2045
|
+
};
|
|
2046
|
+
xrayReport: {
|
|
2047
|
+
network: string;
|
|
2048
|
+
email: string | null;
|
|
2049
|
+
level: number | null;
|
|
2050
|
+
protocol: string | null;
|
|
2051
|
+
source: string | null;
|
|
2052
|
+
destination: string;
|
|
2053
|
+
routeTarget: string | null;
|
|
2054
|
+
originalTarget: string | null;
|
|
2055
|
+
inboundTag: string | null;
|
|
2056
|
+
inboundName: string | null;
|
|
2057
|
+
inboundLocal: string | null;
|
|
2058
|
+
outboundTag: string | null;
|
|
2059
|
+
ts: number;
|
|
2060
|
+
};
|
|
2061
|
+
};
|
|
2062
|
+
};
|
|
2063
|
+
scope: "torrent_blocker";
|
|
2064
|
+
event: "torrent_blocker.report";
|
|
2065
|
+
timestamp: string;
|
|
2066
|
+
}>;
|
|
1120
2067
|
export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope", [z.ZodObject<{
|
|
1121
2068
|
scope: z.ZodLiteral<"user">;
|
|
1122
2069
|
event: z.ZodEnum<["user.created" | "user.modified" | "user.deleted" | "user.revoked" | "user.disabled" | "user.enabled" | "user.limited" | "user.expired" | "user.traffic_reset" | "user.expires_in_72_hours" | "user.expires_in_48_hours" | "user.expires_in_24_hours" | "user.expired_24_hours_ago" | "user.first_connected" | "user.bandwidth_usage_threshold_reached" | "user.not_connected", ...("user.created" | "user.modified" | "user.deleted" | "user.revoked" | "user.disabled" | "user.enabled" | "user.limited" | "user.expired" | "user.traffic_reset" | "user.expires_in_72_hours" | "user.expires_in_48_hours" | "user.expires_in_24_hours" | "user.expired_24_hours_ago" | "user.first_connected" | "user.bandwidth_usage_threshold_reached" | "user.not_connected")[]]>;
|
|
@@ -2063,171 +3010,1117 @@ export declare const RemnawaveWebhookEventSchema: z.ZodDiscriminatedUnion<"scope
|
|
|
2063
3010
|
providerUuid: string | null;
|
|
2064
3011
|
activePluginUuid: string | null;
|
|
2065
3012
|
};
|
|
2066
|
-
scope: "node";
|
|
2067
|
-
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
3013
|
+
scope: "node";
|
|
3014
|
+
event: "node.created" | "node.modified" | "node.disabled" | "node.enabled" | "node.deleted" | "node.connection_lost" | "node.connection_restored" | "node.traffic_notify";
|
|
3015
|
+
timestamp: string;
|
|
3016
|
+
}>, z.ZodObject<{
|
|
3017
|
+
scope: z.ZodLiteral<"service">;
|
|
3018
|
+
event: z.ZodEnum<["service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed", ...("service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed")[]]>;
|
|
3019
|
+
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
3020
|
+
data: z.ZodObject<{
|
|
3021
|
+
loginAttempt: z.ZodOptional<z.ZodObject<{
|
|
3022
|
+
username: z.ZodString;
|
|
3023
|
+
ip: z.ZodString;
|
|
3024
|
+
userAgent: z.ZodString;
|
|
3025
|
+
description: z.ZodOptional<z.ZodString>;
|
|
3026
|
+
password: z.ZodOptional<z.ZodString>;
|
|
3027
|
+
}, "strip", z.ZodTypeAny, {
|
|
3028
|
+
username: string;
|
|
3029
|
+
ip: string;
|
|
3030
|
+
userAgent: string;
|
|
3031
|
+
password?: string | undefined;
|
|
3032
|
+
description?: string | undefined;
|
|
3033
|
+
}, {
|
|
3034
|
+
username: string;
|
|
3035
|
+
ip: string;
|
|
3036
|
+
userAgent: string;
|
|
3037
|
+
password?: string | undefined;
|
|
3038
|
+
description?: string | undefined;
|
|
3039
|
+
}>>;
|
|
3040
|
+
panelVersion: z.ZodOptional<z.ZodString>;
|
|
3041
|
+
subpageConfig: z.ZodOptional<z.ZodObject<{
|
|
3042
|
+
action: z.ZodEnum<["CREATED" | "UPDATED" | "DELETED", ...("CREATED" | "UPDATED" | "DELETED")[]]>;
|
|
3043
|
+
uuid: z.ZodString;
|
|
3044
|
+
}, "strip", z.ZodTypeAny, {
|
|
3045
|
+
uuid: string;
|
|
3046
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3047
|
+
}, {
|
|
3048
|
+
uuid: string;
|
|
3049
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3050
|
+
}>>;
|
|
3051
|
+
}, "strip", z.ZodTypeAny, {
|
|
3052
|
+
loginAttempt?: {
|
|
3053
|
+
username: string;
|
|
3054
|
+
ip: string;
|
|
3055
|
+
userAgent: string;
|
|
3056
|
+
password?: string | undefined;
|
|
3057
|
+
description?: string | undefined;
|
|
3058
|
+
} | undefined;
|
|
3059
|
+
panelVersion?: string | undefined;
|
|
3060
|
+
subpageConfig?: {
|
|
3061
|
+
uuid: string;
|
|
3062
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3063
|
+
} | undefined;
|
|
3064
|
+
}, {
|
|
3065
|
+
loginAttempt?: {
|
|
3066
|
+
username: string;
|
|
3067
|
+
ip: string;
|
|
3068
|
+
userAgent: string;
|
|
3069
|
+
password?: string | undefined;
|
|
3070
|
+
description?: string | undefined;
|
|
3071
|
+
} | undefined;
|
|
3072
|
+
panelVersion?: string | undefined;
|
|
3073
|
+
subpageConfig?: {
|
|
3074
|
+
uuid: string;
|
|
3075
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3076
|
+
} | undefined;
|
|
3077
|
+
}>;
|
|
3078
|
+
}, "strip", z.ZodTypeAny, {
|
|
3079
|
+
data: {
|
|
3080
|
+
loginAttempt?: {
|
|
3081
|
+
username: string;
|
|
3082
|
+
ip: string;
|
|
3083
|
+
userAgent: string;
|
|
3084
|
+
password?: string | undefined;
|
|
3085
|
+
description?: string | undefined;
|
|
3086
|
+
} | undefined;
|
|
3087
|
+
panelVersion?: string | undefined;
|
|
3088
|
+
subpageConfig?: {
|
|
3089
|
+
uuid: string;
|
|
3090
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3091
|
+
} | undefined;
|
|
3092
|
+
};
|
|
3093
|
+
scope: "service";
|
|
3094
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
3095
|
+
timestamp: Date;
|
|
3096
|
+
}, {
|
|
3097
|
+
data: {
|
|
3098
|
+
loginAttempt?: {
|
|
3099
|
+
username: string;
|
|
3100
|
+
ip: string;
|
|
3101
|
+
userAgent: string;
|
|
3102
|
+
password?: string | undefined;
|
|
3103
|
+
description?: string | undefined;
|
|
3104
|
+
} | undefined;
|
|
3105
|
+
panelVersion?: string | undefined;
|
|
3106
|
+
subpageConfig?: {
|
|
3107
|
+
uuid: string;
|
|
3108
|
+
action: "CREATED" | "UPDATED" | "DELETED";
|
|
3109
|
+
} | undefined;
|
|
3110
|
+
};
|
|
3111
|
+
scope: "service";
|
|
3112
|
+
event: "service.panel_started" | "service.login_attempt_failed" | "service.login_attempt_success" | "service.subpage_config_changed";
|
|
3113
|
+
timestamp: string;
|
|
3114
|
+
}>, z.ZodObject<{
|
|
3115
|
+
scope: z.ZodLiteral<"errors">;
|
|
3116
|
+
event: z.ZodEnum<["errors.bandwidth_usage_threshold_reached_max_notifications", ..."errors.bandwidth_usage_threshold_reached_max_notifications"[]]>;
|
|
3117
|
+
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
3118
|
+
data: z.ZodObject<{
|
|
3119
|
+
description: z.ZodString;
|
|
3120
|
+
}, "strip", z.ZodTypeAny, {
|
|
3121
|
+
description: string;
|
|
3122
|
+
}, {
|
|
3123
|
+
description: string;
|
|
3124
|
+
}>;
|
|
3125
|
+
}, "strip", z.ZodTypeAny, {
|
|
3126
|
+
data: {
|
|
3127
|
+
description: string;
|
|
3128
|
+
};
|
|
3129
|
+
scope: "errors";
|
|
3130
|
+
event: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
|
3131
|
+
timestamp: Date;
|
|
3132
|
+
}, {
|
|
3133
|
+
data: {
|
|
3134
|
+
description: string;
|
|
3135
|
+
};
|
|
3136
|
+
scope: "errors";
|
|
3137
|
+
event: "errors.bandwidth_usage_threshold_reached_max_notifications";
|
|
3138
|
+
timestamp: string;
|
|
3139
|
+
}>, z.ZodObject<{
|
|
3140
|
+
scope: z.ZodLiteral<"crm">;
|
|
3141
|
+
event: z.ZodEnum<["crm.infra_billing_node_payment_in_7_days" | "crm.infra_billing_node_payment_in_48hrs" | "crm.infra_billing_node_payment_in_24hrs" | "crm.infra_billing_node_payment_due_today" | "crm.infra_billing_node_payment_overdue_24hrs" | "crm.infra_billing_node_payment_overdue_48hrs" | "crm.infra_billing_node_payment_overdue_7_days", ...("crm.infra_billing_node_payment_in_7_days" | "crm.infra_billing_node_payment_in_48hrs" | "crm.infra_billing_node_payment_in_24hrs" | "crm.infra_billing_node_payment_due_today" | "crm.infra_billing_node_payment_overdue_24hrs" | "crm.infra_billing_node_payment_overdue_48hrs" | "crm.infra_billing_node_payment_overdue_7_days")[]]>;
|
|
3142
|
+
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
3143
|
+
data: z.ZodObject<{
|
|
3144
|
+
providerName: z.ZodString;
|
|
3145
|
+
nodeName: z.ZodString;
|
|
3146
|
+
nextBillingAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3147
|
+
loginUrl: z.ZodString;
|
|
3148
|
+
}, "strip", z.ZodTypeAny, {
|
|
3149
|
+
nodeName: string;
|
|
3150
|
+
loginUrl: string;
|
|
3151
|
+
nextBillingAt: Date;
|
|
3152
|
+
providerName: string;
|
|
3153
|
+
}, {
|
|
3154
|
+
nodeName: string;
|
|
3155
|
+
loginUrl: string;
|
|
3156
|
+
nextBillingAt: string;
|
|
3157
|
+
providerName: string;
|
|
3158
|
+
}>;
|
|
3159
|
+
}, "strip", z.ZodTypeAny, {
|
|
3160
|
+
data: {
|
|
3161
|
+
nodeName: string;
|
|
3162
|
+
loginUrl: string;
|
|
3163
|
+
nextBillingAt: Date;
|
|
3164
|
+
providerName: string;
|
|
3165
|
+
};
|
|
3166
|
+
scope: "crm";
|
|
3167
|
+
event: "crm.infra_billing_node_payment_in_7_days" | "crm.infra_billing_node_payment_in_48hrs" | "crm.infra_billing_node_payment_in_24hrs" | "crm.infra_billing_node_payment_due_today" | "crm.infra_billing_node_payment_overdue_24hrs" | "crm.infra_billing_node_payment_overdue_48hrs" | "crm.infra_billing_node_payment_overdue_7_days";
|
|
3168
|
+
timestamp: Date;
|
|
3169
|
+
}, {
|
|
3170
|
+
data: {
|
|
3171
|
+
nodeName: string;
|
|
3172
|
+
loginUrl: string;
|
|
3173
|
+
nextBillingAt: string;
|
|
3174
|
+
providerName: string;
|
|
3175
|
+
};
|
|
3176
|
+
scope: "crm";
|
|
3177
|
+
event: "crm.infra_billing_node_payment_in_7_days" | "crm.infra_billing_node_payment_in_48hrs" | "crm.infra_billing_node_payment_in_24hrs" | "crm.infra_billing_node_payment_due_today" | "crm.infra_billing_node_payment_overdue_24hrs" | "crm.infra_billing_node_payment_overdue_48hrs" | "crm.infra_billing_node_payment_overdue_7_days";
|
|
2068
3178
|
timestamp: string;
|
|
2069
3179
|
}>, z.ZodObject<{
|
|
2070
|
-
scope: z.ZodLiteral<"
|
|
2071
|
-
event: z.ZodEnum<["
|
|
3180
|
+
scope: z.ZodLiteral<"torrent_blocker">;
|
|
3181
|
+
event: z.ZodEnum<["torrent_blocker.report", ..."torrent_blocker.report"[]]>;
|
|
2072
3182
|
timestamp: z.ZodEffects<z.ZodString, Date, string>;
|
|
2073
3183
|
data: z.ZodObject<{
|
|
2074
|
-
|
|
2075
|
-
|
|
2076
|
-
|
|
2077
|
-
|
|
2078
|
-
|
|
2079
|
-
|
|
3184
|
+
node: z.ZodObject<{
|
|
3185
|
+
uuid: z.ZodString;
|
|
3186
|
+
name: z.ZodString;
|
|
3187
|
+
address: z.ZodString;
|
|
3188
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
3189
|
+
isConnected: z.ZodBoolean;
|
|
3190
|
+
isDisabled: z.ZodBoolean;
|
|
3191
|
+
isConnecting: z.ZodBoolean;
|
|
3192
|
+
lastStatusChange: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3193
|
+
lastStatusMessage: z.ZodNullable<z.ZodString>;
|
|
3194
|
+
xrayVersion: z.ZodNullable<z.ZodString>;
|
|
3195
|
+
nodeVersion: z.ZodNullable<z.ZodString>;
|
|
3196
|
+
xrayUptime: z.ZodString;
|
|
3197
|
+
isTrafficTrackingActive: z.ZodBoolean;
|
|
3198
|
+
trafficResetDay: z.ZodNullable<z.ZodNumber>;
|
|
3199
|
+
trafficLimitBytes: z.ZodNullable<z.ZodNumber>;
|
|
3200
|
+
trafficUsedBytes: z.ZodNullable<z.ZodNumber>;
|
|
3201
|
+
notifyPercent: z.ZodNullable<z.ZodNumber>;
|
|
3202
|
+
usersOnline: z.ZodNullable<z.ZodNumber>;
|
|
3203
|
+
viewPosition: z.ZodNumber;
|
|
3204
|
+
countryCode: z.ZodString;
|
|
3205
|
+
consumptionMultiplier: z.ZodNumber;
|
|
3206
|
+
tags: z.ZodArray<z.ZodString, "many">;
|
|
3207
|
+
cpuCount: z.ZodNullable<z.ZodNumber>;
|
|
3208
|
+
cpuModel: z.ZodNullable<z.ZodString>;
|
|
3209
|
+
totalRam: z.ZodNullable<z.ZodString>;
|
|
3210
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3211
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3212
|
+
configProfile: z.ZodObject<{
|
|
3213
|
+
activeConfigProfileUuid: z.ZodNullable<z.ZodString>;
|
|
3214
|
+
activeInbounds: z.ZodArray<z.ZodObject<{
|
|
3215
|
+
uuid: z.ZodString;
|
|
3216
|
+
profileUuid: z.ZodString;
|
|
3217
|
+
tag: z.ZodString;
|
|
3218
|
+
type: z.ZodString;
|
|
3219
|
+
network: z.ZodNullable<z.ZodString>;
|
|
3220
|
+
security: z.ZodNullable<z.ZodString>;
|
|
3221
|
+
port: z.ZodNullable<z.ZodNumber>;
|
|
3222
|
+
rawInbound: z.ZodNullable<z.ZodUnknown>;
|
|
3223
|
+
}, "strip", z.ZodTypeAny, {
|
|
3224
|
+
type: string;
|
|
3225
|
+
uuid: string;
|
|
3226
|
+
profileUuid: string;
|
|
3227
|
+
tag: string;
|
|
3228
|
+
network: string | null;
|
|
3229
|
+
security: string | null;
|
|
3230
|
+
port: number | null;
|
|
3231
|
+
rawInbound?: unknown;
|
|
3232
|
+
}, {
|
|
3233
|
+
type: string;
|
|
3234
|
+
uuid: string;
|
|
3235
|
+
profileUuid: string;
|
|
3236
|
+
tag: string;
|
|
3237
|
+
network: string | null;
|
|
3238
|
+
security: string | null;
|
|
3239
|
+
port: number | null;
|
|
3240
|
+
rawInbound?: unknown;
|
|
3241
|
+
}>, "many">;
|
|
3242
|
+
}, "strip", z.ZodTypeAny, {
|
|
3243
|
+
activeConfigProfileUuid: string | null;
|
|
3244
|
+
activeInbounds: {
|
|
3245
|
+
type: string;
|
|
3246
|
+
uuid: string;
|
|
3247
|
+
profileUuid: string;
|
|
3248
|
+
tag: string;
|
|
3249
|
+
network: string | null;
|
|
3250
|
+
security: string | null;
|
|
3251
|
+
port: number | null;
|
|
3252
|
+
rawInbound?: unknown;
|
|
3253
|
+
}[];
|
|
3254
|
+
}, {
|
|
3255
|
+
activeConfigProfileUuid: string | null;
|
|
3256
|
+
activeInbounds: {
|
|
3257
|
+
type: string;
|
|
3258
|
+
uuid: string;
|
|
3259
|
+
profileUuid: string;
|
|
3260
|
+
tag: string;
|
|
3261
|
+
network: string | null;
|
|
3262
|
+
security: string | null;
|
|
3263
|
+
port: number | null;
|
|
3264
|
+
rawInbound?: unknown;
|
|
3265
|
+
}[];
|
|
3266
|
+
}>;
|
|
3267
|
+
providerUuid: z.ZodNullable<z.ZodString>;
|
|
3268
|
+
provider: z.ZodNullable<z.ZodObject<{
|
|
3269
|
+
uuid: z.ZodString;
|
|
3270
|
+
name: z.ZodString;
|
|
3271
|
+
faviconLink: z.ZodNullable<z.ZodString>;
|
|
3272
|
+
loginUrl: z.ZodNullable<z.ZodString>;
|
|
3273
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3274
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3275
|
+
}, "strip", z.ZodTypeAny, {
|
|
3276
|
+
uuid: string;
|
|
3277
|
+
createdAt: Date;
|
|
3278
|
+
updatedAt: Date;
|
|
3279
|
+
name: string;
|
|
3280
|
+
faviconLink: string | null;
|
|
3281
|
+
loginUrl: string | null;
|
|
3282
|
+
}, {
|
|
3283
|
+
uuid: string;
|
|
3284
|
+
createdAt: string;
|
|
3285
|
+
updatedAt: string;
|
|
3286
|
+
name: string;
|
|
3287
|
+
faviconLink: string | null;
|
|
3288
|
+
loginUrl: string | null;
|
|
3289
|
+
}>>;
|
|
3290
|
+
activePluginUuid: z.ZodNullable<z.ZodString>;
|
|
2080
3291
|
}, "strip", z.ZodTypeAny, {
|
|
2081
|
-
|
|
2082
|
-
|
|
2083
|
-
|
|
2084
|
-
|
|
2085
|
-
|
|
3292
|
+
tags: string[];
|
|
3293
|
+
uuid: string;
|
|
3294
|
+
createdAt: Date;
|
|
3295
|
+
updatedAt: Date;
|
|
3296
|
+
provider: {
|
|
3297
|
+
uuid: string;
|
|
3298
|
+
createdAt: Date;
|
|
3299
|
+
updatedAt: Date;
|
|
3300
|
+
name: string;
|
|
3301
|
+
faviconLink: string | null;
|
|
3302
|
+
loginUrl: string | null;
|
|
3303
|
+
} | null;
|
|
3304
|
+
countryCode: string;
|
|
3305
|
+
name: string;
|
|
3306
|
+
port: number | null;
|
|
3307
|
+
viewPosition: number;
|
|
3308
|
+
trafficLimitBytes: number | null;
|
|
3309
|
+
address: string;
|
|
3310
|
+
isDisabled: boolean;
|
|
3311
|
+
isConnected: boolean;
|
|
3312
|
+
isConnecting: boolean;
|
|
3313
|
+
lastStatusChange: Date | null;
|
|
3314
|
+
lastStatusMessage: string | null;
|
|
3315
|
+
xrayVersion: string | null;
|
|
3316
|
+
nodeVersion: string | null;
|
|
3317
|
+
xrayUptime: string;
|
|
3318
|
+
isTrafficTrackingActive: boolean;
|
|
3319
|
+
trafficResetDay: number | null;
|
|
3320
|
+
trafficUsedBytes: number | null;
|
|
3321
|
+
notifyPercent: number | null;
|
|
3322
|
+
usersOnline: number | null;
|
|
3323
|
+
consumptionMultiplier: number;
|
|
3324
|
+
cpuCount: number | null;
|
|
3325
|
+
cpuModel: string | null;
|
|
3326
|
+
totalRam: string | null;
|
|
3327
|
+
configProfile: {
|
|
3328
|
+
activeConfigProfileUuid: string | null;
|
|
3329
|
+
activeInbounds: {
|
|
3330
|
+
type: string;
|
|
3331
|
+
uuid: string;
|
|
3332
|
+
profileUuid: string;
|
|
3333
|
+
tag: string;
|
|
3334
|
+
network: string | null;
|
|
3335
|
+
security: string | null;
|
|
3336
|
+
port: number | null;
|
|
3337
|
+
rawInbound?: unknown;
|
|
3338
|
+
}[];
|
|
3339
|
+
};
|
|
3340
|
+
providerUuid: string | null;
|
|
3341
|
+
activePluginUuid: string | null;
|
|
2086
3342
|
}, {
|
|
2087
|
-
|
|
2088
|
-
|
|
2089
|
-
|
|
2090
|
-
|
|
2091
|
-
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2095
|
-
|
|
3343
|
+
tags: string[];
|
|
3344
|
+
uuid: string;
|
|
3345
|
+
createdAt: string;
|
|
3346
|
+
updatedAt: string;
|
|
3347
|
+
provider: {
|
|
3348
|
+
uuid: string;
|
|
3349
|
+
createdAt: string;
|
|
3350
|
+
updatedAt: string;
|
|
3351
|
+
name: string;
|
|
3352
|
+
faviconLink: string | null;
|
|
3353
|
+
loginUrl: string | null;
|
|
3354
|
+
} | null;
|
|
3355
|
+
countryCode: string;
|
|
3356
|
+
name: string;
|
|
3357
|
+
port: number | null;
|
|
3358
|
+
viewPosition: number;
|
|
3359
|
+
trafficLimitBytes: number | null;
|
|
3360
|
+
address: string;
|
|
3361
|
+
isDisabled: boolean;
|
|
3362
|
+
isConnected: boolean;
|
|
3363
|
+
isConnecting: boolean;
|
|
3364
|
+
lastStatusChange: string | null;
|
|
3365
|
+
lastStatusMessage: string | null;
|
|
3366
|
+
xrayVersion: string | null;
|
|
3367
|
+
nodeVersion: string | null;
|
|
3368
|
+
xrayUptime: string;
|
|
3369
|
+
isTrafficTrackingActive: boolean;
|
|
3370
|
+
trafficResetDay: number | null;
|
|
3371
|
+
trafficUsedBytes: number | null;
|
|
3372
|
+
notifyPercent: number | null;
|
|
3373
|
+
usersOnline: number | null;
|
|
3374
|
+
consumptionMultiplier: number;
|
|
3375
|
+
cpuCount: number | null;
|
|
3376
|
+
cpuModel: string | null;
|
|
3377
|
+
totalRam: string | null;
|
|
3378
|
+
configProfile: {
|
|
3379
|
+
activeConfigProfileUuid: string | null;
|
|
3380
|
+
activeInbounds: {
|
|
3381
|
+
type: string;
|
|
3382
|
+
uuid: string;
|
|
3383
|
+
profileUuid: string;
|
|
3384
|
+
tag: string;
|
|
3385
|
+
network: string | null;
|
|
3386
|
+
security: string | null;
|
|
3387
|
+
port: number | null;
|
|
3388
|
+
rawInbound?: unknown;
|
|
3389
|
+
}[];
|
|
3390
|
+
};
|
|
3391
|
+
providerUuid: string | null;
|
|
3392
|
+
activePluginUuid: string | null;
|
|
3393
|
+
}>;
|
|
3394
|
+
user: z.ZodObject<{
|
|
2096
3395
|
uuid: z.ZodString;
|
|
3396
|
+
id: z.ZodNumber;
|
|
3397
|
+
shortUuid: z.ZodString;
|
|
3398
|
+
username: z.ZodString;
|
|
3399
|
+
status: z.ZodDefault<z.ZodNativeEnum<{
|
|
3400
|
+
readonly ACTIVE: "ACTIVE";
|
|
3401
|
+
readonly DISABLED: "DISABLED";
|
|
3402
|
+
readonly LIMITED: "LIMITED";
|
|
3403
|
+
readonly EXPIRED: "EXPIRED";
|
|
3404
|
+
}>>;
|
|
3405
|
+
trafficLimitBytes: z.ZodDefault<z.ZodNumber>;
|
|
3406
|
+
trafficLimitStrategy: z.ZodDefault<z.ZodNativeEnum<{
|
|
3407
|
+
readonly NO_RESET: "NO_RESET";
|
|
3408
|
+
readonly DAY: "DAY";
|
|
3409
|
+
readonly WEEK: "WEEK";
|
|
3410
|
+
readonly MONTH: "MONTH";
|
|
3411
|
+
}>>;
|
|
3412
|
+
expireAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3413
|
+
telegramId: z.ZodNullable<z.ZodNumber>;
|
|
3414
|
+
email: z.ZodNullable<z.ZodString>;
|
|
3415
|
+
description: z.ZodNullable<z.ZodString>;
|
|
3416
|
+
tag: z.ZodNullable<z.ZodString>;
|
|
3417
|
+
hwidDeviceLimit: z.ZodNullable<z.ZodNumber>;
|
|
3418
|
+
externalSquadUuid: z.ZodNullable<z.ZodString>;
|
|
3419
|
+
trojanPassword: z.ZodString;
|
|
3420
|
+
vlessUuid: z.ZodString;
|
|
3421
|
+
ssPassword: z.ZodString;
|
|
3422
|
+
lastTriggeredThreshold: z.ZodDefault<z.ZodNumber>;
|
|
3423
|
+
subRevokedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3424
|
+
subLastUserAgent: z.ZodNullable<z.ZodString>;
|
|
3425
|
+
subLastOpenedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3426
|
+
lastTrafficResetAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3427
|
+
createdAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3428
|
+
updatedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3429
|
+
} & {
|
|
3430
|
+
subscriptionUrl: z.ZodString;
|
|
3431
|
+
activeInternalSquads: z.ZodArray<z.ZodObject<{
|
|
3432
|
+
uuid: z.ZodString;
|
|
3433
|
+
name: z.ZodString;
|
|
3434
|
+
}, "strip", z.ZodTypeAny, {
|
|
3435
|
+
uuid: string;
|
|
3436
|
+
name: string;
|
|
3437
|
+
}, {
|
|
3438
|
+
uuid: string;
|
|
3439
|
+
name: string;
|
|
3440
|
+
}>, "many">;
|
|
3441
|
+
userTraffic: z.ZodObject<{
|
|
3442
|
+
usedTrafficBytes: z.ZodNumber;
|
|
3443
|
+
lifetimeUsedTrafficBytes: z.ZodNumber;
|
|
3444
|
+
onlineAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3445
|
+
firstConnectedAt: z.ZodNullable<z.ZodEffects<z.ZodString, Date, string>>;
|
|
3446
|
+
lastConnectedNodeUuid: z.ZodNullable<z.ZodString>;
|
|
3447
|
+
}, "strip", z.ZodTypeAny, {
|
|
3448
|
+
usedTrafficBytes: number;
|
|
3449
|
+
lifetimeUsedTrafficBytes: number;
|
|
3450
|
+
onlineAt: Date | null;
|
|
3451
|
+
firstConnectedAt: Date | null;
|
|
3452
|
+
lastConnectedNodeUuid: string | null;
|
|
3453
|
+
}, {
|
|
3454
|
+
usedTrafficBytes: number;
|
|
3455
|
+
lifetimeUsedTrafficBytes: number;
|
|
3456
|
+
onlineAt: string | null;
|
|
3457
|
+
firstConnectedAt: string | null;
|
|
3458
|
+
lastConnectedNodeUuid: string | null;
|
|
3459
|
+
}>;
|
|
2097
3460
|
}, "strip", z.ZodTypeAny, {
|
|
3461
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
2098
3462
|
uuid: string;
|
|
2099
|
-
|
|
3463
|
+
createdAt: Date;
|
|
3464
|
+
updatedAt: Date;
|
|
3465
|
+
username: string;
|
|
3466
|
+
id: number;
|
|
3467
|
+
tag: string | null;
|
|
3468
|
+
shortUuid: string;
|
|
3469
|
+
trafficLimitBytes: number;
|
|
3470
|
+
description: string | null;
|
|
3471
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
3472
|
+
expireAt: Date;
|
|
3473
|
+
telegramId: number | null;
|
|
3474
|
+
email: string | null;
|
|
3475
|
+
hwidDeviceLimit: number | null;
|
|
3476
|
+
externalSquadUuid: string | null;
|
|
3477
|
+
trojanPassword: string;
|
|
3478
|
+
vlessUuid: string;
|
|
3479
|
+
ssPassword: string;
|
|
3480
|
+
lastTriggeredThreshold: number;
|
|
3481
|
+
subRevokedAt: Date | null;
|
|
3482
|
+
subLastUserAgent: string | null;
|
|
3483
|
+
subLastOpenedAt: Date | null;
|
|
3484
|
+
lastTrafficResetAt: Date | null;
|
|
3485
|
+
subscriptionUrl: string;
|
|
3486
|
+
activeInternalSquads: {
|
|
3487
|
+
uuid: string;
|
|
3488
|
+
name: string;
|
|
3489
|
+
}[];
|
|
3490
|
+
userTraffic: {
|
|
3491
|
+
usedTrafficBytes: number;
|
|
3492
|
+
lifetimeUsedTrafficBytes: number;
|
|
3493
|
+
onlineAt: Date | null;
|
|
3494
|
+
firstConnectedAt: Date | null;
|
|
3495
|
+
lastConnectedNodeUuid: string | null;
|
|
3496
|
+
};
|
|
2100
3497
|
}, {
|
|
2101
3498
|
uuid: string;
|
|
2102
|
-
|
|
2103
|
-
|
|
3499
|
+
createdAt: string;
|
|
3500
|
+
updatedAt: string;
|
|
3501
|
+
username: string;
|
|
3502
|
+
id: number;
|
|
3503
|
+
tag: string | null;
|
|
3504
|
+
shortUuid: string;
|
|
3505
|
+
description: string | null;
|
|
3506
|
+
expireAt: string;
|
|
3507
|
+
telegramId: number | null;
|
|
3508
|
+
email: string | null;
|
|
3509
|
+
hwidDeviceLimit: number | null;
|
|
3510
|
+
externalSquadUuid: string | null;
|
|
3511
|
+
trojanPassword: string;
|
|
3512
|
+
vlessUuid: string;
|
|
3513
|
+
ssPassword: string;
|
|
3514
|
+
subRevokedAt: string | null;
|
|
3515
|
+
subLastUserAgent: string | null;
|
|
3516
|
+
subLastOpenedAt: string | null;
|
|
3517
|
+
lastTrafficResetAt: string | null;
|
|
3518
|
+
subscriptionUrl: string;
|
|
3519
|
+
activeInternalSquads: {
|
|
3520
|
+
uuid: string;
|
|
3521
|
+
name: string;
|
|
3522
|
+
}[];
|
|
3523
|
+
userTraffic: {
|
|
3524
|
+
usedTrafficBytes: number;
|
|
3525
|
+
lifetimeUsedTrafficBytes: number;
|
|
3526
|
+
onlineAt: string | null;
|
|
3527
|
+
firstConnectedAt: string | null;
|
|
3528
|
+
lastConnectedNodeUuid: string | null;
|
|
3529
|
+
};
|
|
3530
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
3531
|
+
trafficLimitBytes?: number | undefined;
|
|
3532
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
3533
|
+
lastTriggeredThreshold?: number | undefined;
|
|
3534
|
+
}>;
|
|
3535
|
+
report: z.ZodObject<{
|
|
3536
|
+
actionReport: z.ZodObject<{
|
|
3537
|
+
blocked: z.ZodBoolean;
|
|
3538
|
+
ip: z.ZodString;
|
|
3539
|
+
blockDuration: z.ZodNumber;
|
|
3540
|
+
willUnblockAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3541
|
+
userId: z.ZodString;
|
|
3542
|
+
processedAt: z.ZodEffects<z.ZodString, Date, string>;
|
|
3543
|
+
}, "strip", z.ZodTypeAny, {
|
|
3544
|
+
ip: string;
|
|
3545
|
+
blocked: boolean;
|
|
3546
|
+
blockDuration: number;
|
|
3547
|
+
willUnblockAt: Date;
|
|
3548
|
+
userId: string;
|
|
3549
|
+
processedAt: Date;
|
|
3550
|
+
}, {
|
|
3551
|
+
ip: string;
|
|
3552
|
+
blocked: boolean;
|
|
3553
|
+
blockDuration: number;
|
|
3554
|
+
willUnblockAt: string;
|
|
3555
|
+
userId: string;
|
|
3556
|
+
processedAt: string;
|
|
3557
|
+
}>;
|
|
3558
|
+
xrayReport: z.ZodObject<{
|
|
3559
|
+
email: z.ZodNullable<z.ZodString>;
|
|
3560
|
+
level: z.ZodNullable<z.ZodNumber>;
|
|
3561
|
+
protocol: z.ZodNullable<z.ZodString>;
|
|
3562
|
+
network: z.ZodString;
|
|
3563
|
+
source: z.ZodNullable<z.ZodString>;
|
|
3564
|
+
destination: z.ZodString;
|
|
3565
|
+
routeTarget: z.ZodNullable<z.ZodString>;
|
|
3566
|
+
originalTarget: z.ZodNullable<z.ZodString>;
|
|
3567
|
+
inboundTag: z.ZodNullable<z.ZodString>;
|
|
3568
|
+
inboundName: z.ZodNullable<z.ZodString>;
|
|
3569
|
+
inboundLocal: z.ZodNullable<z.ZodString>;
|
|
3570
|
+
outboundTag: z.ZodNullable<z.ZodString>;
|
|
3571
|
+
ts: z.ZodNumber;
|
|
3572
|
+
}, "strip", z.ZodTypeAny, {
|
|
3573
|
+
network: string;
|
|
3574
|
+
email: string | null;
|
|
3575
|
+
level: number | null;
|
|
3576
|
+
protocol: string | null;
|
|
3577
|
+
source: string | null;
|
|
3578
|
+
destination: string;
|
|
3579
|
+
routeTarget: string | null;
|
|
3580
|
+
originalTarget: string | null;
|
|
3581
|
+
inboundTag: string | null;
|
|
3582
|
+
inboundName: string | null;
|
|
3583
|
+
inboundLocal: string | null;
|
|
3584
|
+
outboundTag: string | null;
|
|
3585
|
+
ts: number;
|
|
3586
|
+
}, {
|
|
3587
|
+
network: string;
|
|
3588
|
+
email: string | null;
|
|
3589
|
+
level: number | null;
|
|
3590
|
+
protocol: string | null;
|
|
3591
|
+
source: string | null;
|
|
3592
|
+
destination: string;
|
|
3593
|
+
routeTarget: string | null;
|
|
3594
|
+
originalTarget: string | null;
|
|
3595
|
+
inboundTag: string | null;
|
|
3596
|
+
inboundName: string | null;
|
|
3597
|
+
inboundLocal: string | null;
|
|
3598
|
+
outboundTag: string | null;
|
|
3599
|
+
ts: number;
|
|
3600
|
+
}>;
|
|
3601
|
+
}, "strip", z.ZodTypeAny, {
|
|
3602
|
+
actionReport: {
|
|
3603
|
+
ip: string;
|
|
3604
|
+
blocked: boolean;
|
|
3605
|
+
blockDuration: number;
|
|
3606
|
+
willUnblockAt: Date;
|
|
3607
|
+
userId: string;
|
|
3608
|
+
processedAt: Date;
|
|
3609
|
+
};
|
|
3610
|
+
xrayReport: {
|
|
3611
|
+
network: string;
|
|
3612
|
+
email: string | null;
|
|
3613
|
+
level: number | null;
|
|
3614
|
+
protocol: string | null;
|
|
3615
|
+
source: string | null;
|
|
3616
|
+
destination: string;
|
|
3617
|
+
routeTarget: string | null;
|
|
3618
|
+
originalTarget: string | null;
|
|
3619
|
+
inboundTag: string | null;
|
|
3620
|
+
inboundName: string | null;
|
|
3621
|
+
inboundLocal: string | null;
|
|
3622
|
+
outboundTag: string | null;
|
|
3623
|
+
ts: number;
|
|
3624
|
+
};
|
|
3625
|
+
}, {
|
|
3626
|
+
actionReport: {
|
|
3627
|
+
ip: string;
|
|
3628
|
+
blocked: boolean;
|
|
3629
|
+
blockDuration: number;
|
|
3630
|
+
willUnblockAt: string;
|
|
3631
|
+
userId: string;
|
|
3632
|
+
processedAt: string;
|
|
3633
|
+
};
|
|
3634
|
+
xrayReport: {
|
|
3635
|
+
network: string;
|
|
3636
|
+
email: string | null;
|
|
3637
|
+
level: number | null;
|
|
3638
|
+
protocol: string | null;
|
|
3639
|
+
source: string | null;
|
|
3640
|
+
destination: string;
|
|
3641
|
+
routeTarget: string | null;
|
|
3642
|
+
originalTarget: string | null;
|
|
3643
|
+
inboundTag: string | null;
|
|
3644
|
+
inboundName: string | null;
|
|
3645
|
+
inboundLocal: string | null;
|
|
3646
|
+
outboundTag: string | null;
|
|
3647
|
+
ts: number;
|
|
3648
|
+
};
|
|
3649
|
+
}>;
|
|
2104
3650
|
}, "strip", z.ZodTypeAny, {
|
|
2105
|
-
|
|
3651
|
+
user: {
|
|
3652
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
3653
|
+
uuid: string;
|
|
3654
|
+
createdAt: Date;
|
|
3655
|
+
updatedAt: Date;
|
|
2106
3656
|
username: string;
|
|
2107
|
-
|
|
2108
|
-
|
|
2109
|
-
|
|
2110
|
-
|
|
2111
|
-
|
|
2112
|
-
|
|
2113
|
-
|
|
3657
|
+
id: number;
|
|
3658
|
+
tag: string | null;
|
|
3659
|
+
shortUuid: string;
|
|
3660
|
+
trafficLimitBytes: number;
|
|
3661
|
+
description: string | null;
|
|
3662
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
3663
|
+
expireAt: Date;
|
|
3664
|
+
telegramId: number | null;
|
|
3665
|
+
email: string | null;
|
|
3666
|
+
hwidDeviceLimit: number | null;
|
|
3667
|
+
externalSquadUuid: string | null;
|
|
3668
|
+
trojanPassword: string;
|
|
3669
|
+
vlessUuid: string;
|
|
3670
|
+
ssPassword: string;
|
|
3671
|
+
lastTriggeredThreshold: number;
|
|
3672
|
+
subRevokedAt: Date | null;
|
|
3673
|
+
subLastUserAgent: string | null;
|
|
3674
|
+
subLastOpenedAt: Date | null;
|
|
3675
|
+
lastTrafficResetAt: Date | null;
|
|
3676
|
+
subscriptionUrl: string;
|
|
3677
|
+
activeInternalSquads: {
|
|
3678
|
+
uuid: string;
|
|
3679
|
+
name: string;
|
|
3680
|
+
}[];
|
|
3681
|
+
userTraffic: {
|
|
3682
|
+
usedTrafficBytes: number;
|
|
3683
|
+
lifetimeUsedTrafficBytes: number;
|
|
3684
|
+
onlineAt: Date | null;
|
|
3685
|
+
firstConnectedAt: Date | null;
|
|
3686
|
+
lastConnectedNodeUuid: string | null;
|
|
3687
|
+
};
|
|
3688
|
+
};
|
|
3689
|
+
node: {
|
|
3690
|
+
tags: string[];
|
|
2114
3691
|
uuid: string;
|
|
2115
|
-
|
|
2116
|
-
|
|
3692
|
+
createdAt: Date;
|
|
3693
|
+
updatedAt: Date;
|
|
3694
|
+
provider: {
|
|
3695
|
+
uuid: string;
|
|
3696
|
+
createdAt: Date;
|
|
3697
|
+
updatedAt: Date;
|
|
3698
|
+
name: string;
|
|
3699
|
+
faviconLink: string | null;
|
|
3700
|
+
loginUrl: string | null;
|
|
3701
|
+
} | null;
|
|
3702
|
+
countryCode: string;
|
|
3703
|
+
name: string;
|
|
3704
|
+
port: number | null;
|
|
3705
|
+
viewPosition: number;
|
|
3706
|
+
trafficLimitBytes: number | null;
|
|
3707
|
+
address: string;
|
|
3708
|
+
isDisabled: boolean;
|
|
3709
|
+
isConnected: boolean;
|
|
3710
|
+
isConnecting: boolean;
|
|
3711
|
+
lastStatusChange: Date | null;
|
|
3712
|
+
lastStatusMessage: string | null;
|
|
3713
|
+
xrayVersion: string | null;
|
|
3714
|
+
nodeVersion: string | null;
|
|
3715
|
+
xrayUptime: string;
|
|
3716
|
+
isTrafficTrackingActive: boolean;
|
|
3717
|
+
trafficResetDay: number | null;
|
|
3718
|
+
trafficUsedBytes: number | null;
|
|
3719
|
+
notifyPercent: number | null;
|
|
3720
|
+
usersOnline: number | null;
|
|
3721
|
+
consumptionMultiplier: number;
|
|
3722
|
+
cpuCount: number | null;
|
|
3723
|
+
cpuModel: string | null;
|
|
3724
|
+
totalRam: string | null;
|
|
3725
|
+
configProfile: {
|
|
3726
|
+
activeConfigProfileUuid: string | null;
|
|
3727
|
+
activeInbounds: {
|
|
3728
|
+
type: string;
|
|
3729
|
+
uuid: string;
|
|
3730
|
+
profileUuid: string;
|
|
3731
|
+
tag: string;
|
|
3732
|
+
network: string | null;
|
|
3733
|
+
security: string | null;
|
|
3734
|
+
port: number | null;
|
|
3735
|
+
rawInbound?: unknown;
|
|
3736
|
+
}[];
|
|
3737
|
+
};
|
|
3738
|
+
providerUuid: string | null;
|
|
3739
|
+
activePluginUuid: string | null;
|
|
3740
|
+
};
|
|
3741
|
+
report: {
|
|
3742
|
+
actionReport: {
|
|
3743
|
+
ip: string;
|
|
3744
|
+
blocked: boolean;
|
|
3745
|
+
blockDuration: number;
|
|
3746
|
+
willUnblockAt: Date;
|
|
3747
|
+
userId: string;
|
|
3748
|
+
processedAt: Date;
|
|
3749
|
+
};
|
|
3750
|
+
xrayReport: {
|
|
3751
|
+
network: string;
|
|
3752
|
+
email: string | null;
|
|
3753
|
+
level: number | null;
|
|
3754
|
+
protocol: string | null;
|
|
3755
|
+
source: string | null;
|
|
3756
|
+
destination: string;
|
|
3757
|
+
routeTarget: string | null;
|
|
3758
|
+
originalTarget: string | null;
|
|
3759
|
+
inboundTag: string | null;
|
|
3760
|
+
inboundName: string | null;
|
|
3761
|
+
inboundLocal: string | null;
|
|
3762
|
+
outboundTag: string | null;
|
|
3763
|
+
ts: number;
|
|
3764
|
+
};
|
|
3765
|
+
};
|
|
2117
3766
|
}, {
|
|
2118
|
-
|
|
3767
|
+
user: {
|
|
3768
|
+
uuid: string;
|
|
3769
|
+
createdAt: string;
|
|
3770
|
+
updatedAt: string;
|
|
2119
3771
|
username: string;
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
description
|
|
2124
|
-
|
|
2125
|
-
|
|
2126
|
-
|
|
3772
|
+
id: number;
|
|
3773
|
+
tag: string | null;
|
|
3774
|
+
shortUuid: string;
|
|
3775
|
+
description: string | null;
|
|
3776
|
+
expireAt: string;
|
|
3777
|
+
telegramId: number | null;
|
|
3778
|
+
email: string | null;
|
|
3779
|
+
hwidDeviceLimit: number | null;
|
|
3780
|
+
externalSquadUuid: string | null;
|
|
3781
|
+
trojanPassword: string;
|
|
3782
|
+
vlessUuid: string;
|
|
3783
|
+
ssPassword: string;
|
|
3784
|
+
subRevokedAt: string | null;
|
|
3785
|
+
subLastUserAgent: string | null;
|
|
3786
|
+
subLastOpenedAt: string | null;
|
|
3787
|
+
lastTrafficResetAt: string | null;
|
|
3788
|
+
subscriptionUrl: string;
|
|
3789
|
+
activeInternalSquads: {
|
|
3790
|
+
uuid: string;
|
|
3791
|
+
name: string;
|
|
3792
|
+
}[];
|
|
3793
|
+
userTraffic: {
|
|
3794
|
+
usedTrafficBytes: number;
|
|
3795
|
+
lifetimeUsedTrafficBytes: number;
|
|
3796
|
+
onlineAt: string | null;
|
|
3797
|
+
firstConnectedAt: string | null;
|
|
3798
|
+
lastConnectedNodeUuid: string | null;
|
|
3799
|
+
};
|
|
3800
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
3801
|
+
trafficLimitBytes?: number | undefined;
|
|
3802
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
3803
|
+
lastTriggeredThreshold?: number | undefined;
|
|
3804
|
+
};
|
|
3805
|
+
node: {
|
|
3806
|
+
tags: string[];
|
|
2127
3807
|
uuid: string;
|
|
2128
|
-
|
|
2129
|
-
|
|
3808
|
+
createdAt: string;
|
|
3809
|
+
updatedAt: string;
|
|
3810
|
+
provider: {
|
|
3811
|
+
uuid: string;
|
|
3812
|
+
createdAt: string;
|
|
3813
|
+
updatedAt: string;
|
|
3814
|
+
name: string;
|
|
3815
|
+
faviconLink: string | null;
|
|
3816
|
+
loginUrl: string | null;
|
|
3817
|
+
} | null;
|
|
3818
|
+
countryCode: string;
|
|
3819
|
+
name: string;
|
|
3820
|
+
port: number | null;
|
|
3821
|
+
viewPosition: number;
|
|
3822
|
+
trafficLimitBytes: number | null;
|
|
3823
|
+
address: string;
|
|
3824
|
+
isDisabled: boolean;
|
|
3825
|
+
isConnected: boolean;
|
|
3826
|
+
isConnecting: boolean;
|
|
3827
|
+
lastStatusChange: string | null;
|
|
3828
|
+
lastStatusMessage: string | null;
|
|
3829
|
+
xrayVersion: string | null;
|
|
3830
|
+
nodeVersion: string | null;
|
|
3831
|
+
xrayUptime: string;
|
|
3832
|
+
isTrafficTrackingActive: boolean;
|
|
3833
|
+
trafficResetDay: number | null;
|
|
3834
|
+
trafficUsedBytes: number | null;
|
|
3835
|
+
notifyPercent: number | null;
|
|
3836
|
+
usersOnline: number | null;
|
|
3837
|
+
consumptionMultiplier: number;
|
|
3838
|
+
cpuCount: number | null;
|
|
3839
|
+
cpuModel: string | null;
|
|
3840
|
+
totalRam: string | null;
|
|
3841
|
+
configProfile: {
|
|
3842
|
+
activeConfigProfileUuid: string | null;
|
|
3843
|
+
activeInbounds: {
|
|
3844
|
+
type: string;
|
|
3845
|
+
uuid: string;
|
|
3846
|
+
profileUuid: string;
|
|
3847
|
+
tag: string;
|
|
3848
|
+
network: string | null;
|
|
3849
|
+
security: string | null;
|
|
3850
|
+
port: number | null;
|
|
3851
|
+
rawInbound?: unknown;
|
|
3852
|
+
}[];
|
|
3853
|
+
};
|
|
3854
|
+
providerUuid: string | null;
|
|
3855
|
+
activePluginUuid: string | null;
|
|
3856
|
+
};
|
|
3857
|
+
report: {
|
|
3858
|
+
actionReport: {
|
|
3859
|
+
ip: string;
|
|
3860
|
+
blocked: boolean;
|
|
3861
|
+
blockDuration: number;
|
|
3862
|
+
willUnblockAt: string;
|
|
3863
|
+
userId: string;
|
|
3864
|
+
processedAt: string;
|
|
3865
|
+
};
|
|
3866
|
+
xrayReport: {
|
|
3867
|
+
network: string;
|
|
3868
|
+
email: string | null;
|
|
3869
|
+
level: number | null;
|
|
3870
|
+
protocol: string | null;
|
|
3871
|
+
source: string | null;
|
|
3872
|
+
destination: string;
|
|
3873
|
+
routeTarget: string | null;
|
|
3874
|
+
originalTarget: string | null;
|
|
3875
|
+
inboundTag: string | null;
|
|
3876
|
+
inboundName: string | null;
|
|
3877
|
+
inboundLocal: string | null;
|
|
3878
|
+
outboundTag: string | null;
|
|
3879
|
+
ts: number;
|
|
3880
|
+
};
|
|
3881
|
+
};
|
|
2130
3882
|
}>;
|
|
2131
3883
|
}, "strip", z.ZodTypeAny, {
|
|
2132
3884
|
data: {
|
|
2133
|
-
|
|
3885
|
+
user: {
|
|
3886
|
+
status: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE";
|
|
3887
|
+
uuid: string;
|
|
3888
|
+
createdAt: Date;
|
|
3889
|
+
updatedAt: Date;
|
|
2134
3890
|
username: string;
|
|
2135
|
-
|
|
2136
|
-
|
|
2137
|
-
|
|
2138
|
-
|
|
2139
|
-
|
|
2140
|
-
|
|
2141
|
-
|
|
3891
|
+
id: number;
|
|
3892
|
+
tag: string | null;
|
|
3893
|
+
shortUuid: string;
|
|
3894
|
+
trafficLimitBytes: number;
|
|
3895
|
+
description: string | null;
|
|
3896
|
+
trafficLimitStrategy: "MONTH" | "NO_RESET" | "DAY" | "WEEK";
|
|
3897
|
+
expireAt: Date;
|
|
3898
|
+
telegramId: number | null;
|
|
3899
|
+
email: string | null;
|
|
3900
|
+
hwidDeviceLimit: number | null;
|
|
3901
|
+
externalSquadUuid: string | null;
|
|
3902
|
+
trojanPassword: string;
|
|
3903
|
+
vlessUuid: string;
|
|
3904
|
+
ssPassword: string;
|
|
3905
|
+
lastTriggeredThreshold: number;
|
|
3906
|
+
subRevokedAt: Date | null;
|
|
3907
|
+
subLastUserAgent: string | null;
|
|
3908
|
+
subLastOpenedAt: Date | null;
|
|
3909
|
+
lastTrafficResetAt: Date | null;
|
|
3910
|
+
subscriptionUrl: string;
|
|
3911
|
+
activeInternalSquads: {
|
|
3912
|
+
uuid: string;
|
|
3913
|
+
name: string;
|
|
3914
|
+
}[];
|
|
3915
|
+
userTraffic: {
|
|
3916
|
+
usedTrafficBytes: number;
|
|
3917
|
+
lifetimeUsedTrafficBytes: number;
|
|
3918
|
+
onlineAt: Date | null;
|
|
3919
|
+
firstConnectedAt: Date | null;
|
|
3920
|
+
lastConnectedNodeUuid: string | null;
|
|
3921
|
+
};
|
|
3922
|
+
};
|
|
3923
|
+
node: {
|
|
3924
|
+
tags: string[];
|
|
2142
3925
|
uuid: string;
|
|
2143
|
-
|
|
2144
|
-
|
|
3926
|
+
createdAt: Date;
|
|
3927
|
+
updatedAt: Date;
|
|
3928
|
+
provider: {
|
|
3929
|
+
uuid: string;
|
|
3930
|
+
createdAt: Date;
|
|
3931
|
+
updatedAt: Date;
|
|
3932
|
+
name: string;
|
|
3933
|
+
faviconLink: string | null;
|
|
3934
|
+
loginUrl: string | null;
|
|
3935
|
+
} | null;
|
|
3936
|
+
countryCode: string;
|
|
3937
|
+
name: string;
|
|
3938
|
+
port: number | null;
|
|
3939
|
+
viewPosition: number;
|
|
3940
|
+
trafficLimitBytes: number | null;
|
|
3941
|
+
address: string;
|
|
3942
|
+
isDisabled: boolean;
|
|
3943
|
+
isConnected: boolean;
|
|
3944
|
+
isConnecting: boolean;
|
|
3945
|
+
lastStatusChange: Date | null;
|
|
3946
|
+
lastStatusMessage: string | null;
|
|
3947
|
+
xrayVersion: string | null;
|
|
3948
|
+
nodeVersion: string | null;
|
|
3949
|
+
xrayUptime: string;
|
|
3950
|
+
isTrafficTrackingActive: boolean;
|
|
3951
|
+
trafficResetDay: number | null;
|
|
3952
|
+
trafficUsedBytes: number | null;
|
|
3953
|
+
notifyPercent: number | null;
|
|
3954
|
+
usersOnline: number | null;
|
|
3955
|
+
consumptionMultiplier: number;
|
|
3956
|
+
cpuCount: number | null;
|
|
3957
|
+
cpuModel: string | null;
|
|
3958
|
+
totalRam: string | null;
|
|
3959
|
+
configProfile: {
|
|
3960
|
+
activeConfigProfileUuid: string | null;
|
|
3961
|
+
activeInbounds: {
|
|
3962
|
+
type: string;
|
|
3963
|
+
uuid: string;
|
|
3964
|
+
profileUuid: string;
|
|
3965
|
+
tag: string;
|
|
3966
|
+
network: string | null;
|
|
3967
|
+
security: string | null;
|
|
3968
|
+
port: number | null;
|
|
3969
|
+
rawInbound?: unknown;
|
|
3970
|
+
}[];
|
|
3971
|
+
};
|
|
3972
|
+
providerUuid: string | null;
|
|
3973
|
+
activePluginUuid: string | null;
|
|
3974
|
+
};
|
|
3975
|
+
report: {
|
|
3976
|
+
actionReport: {
|
|
3977
|
+
ip: string;
|
|
3978
|
+
blocked: boolean;
|
|
3979
|
+
blockDuration: number;
|
|
3980
|
+
willUnblockAt: Date;
|
|
3981
|
+
userId: string;
|
|
3982
|
+
processedAt: Date;
|
|
3983
|
+
};
|
|
3984
|
+
xrayReport: {
|
|
3985
|
+
network: string;
|
|
3986
|
+
email: string | null;
|
|
3987
|
+
level: number | null;
|
|
3988
|
+
protocol: string | null;
|
|
3989
|
+
source: string | null;
|
|
3990
|
+
destination: string;
|
|
3991
|
+
routeTarget: string | null;
|
|
3992
|
+
originalTarget: string | null;
|
|
3993
|
+
inboundTag: string | null;
|
|
3994
|
+
inboundName: string | null;
|
|
3995
|
+
inboundLocal: string | null;
|
|
3996
|
+
outboundTag: string | null;
|
|
3997
|
+
ts: number;
|
|
3998
|
+
};
|
|
3999
|
+
};
|
|
2145
4000
|
};
|
|
2146
|
-
scope: "
|
|
2147
|
-
event: "
|
|
4001
|
+
scope: "torrent_blocker";
|
|
4002
|
+
event: "torrent_blocker.report";
|
|
2148
4003
|
timestamp: Date;
|
|
2149
4004
|
}, {
|
|
2150
4005
|
data: {
|
|
2151
|
-
|
|
4006
|
+
user: {
|
|
4007
|
+
uuid: string;
|
|
4008
|
+
createdAt: string;
|
|
4009
|
+
updatedAt: string;
|
|
2152
4010
|
username: string;
|
|
2153
|
-
|
|
2154
|
-
|
|
2155
|
-
|
|
2156
|
-
description
|
|
2157
|
-
|
|
2158
|
-
|
|
2159
|
-
|
|
4011
|
+
id: number;
|
|
4012
|
+
tag: string | null;
|
|
4013
|
+
shortUuid: string;
|
|
4014
|
+
description: string | null;
|
|
4015
|
+
expireAt: string;
|
|
4016
|
+
telegramId: number | null;
|
|
4017
|
+
email: string | null;
|
|
4018
|
+
hwidDeviceLimit: number | null;
|
|
4019
|
+
externalSquadUuid: string | null;
|
|
4020
|
+
trojanPassword: string;
|
|
4021
|
+
vlessUuid: string;
|
|
4022
|
+
ssPassword: string;
|
|
4023
|
+
subRevokedAt: string | null;
|
|
4024
|
+
subLastUserAgent: string | null;
|
|
4025
|
+
subLastOpenedAt: string | null;
|
|
4026
|
+
lastTrafficResetAt: string | null;
|
|
4027
|
+
subscriptionUrl: string;
|
|
4028
|
+
activeInternalSquads: {
|
|
4029
|
+
uuid: string;
|
|
4030
|
+
name: string;
|
|
4031
|
+
}[];
|
|
4032
|
+
userTraffic: {
|
|
4033
|
+
usedTrafficBytes: number;
|
|
4034
|
+
lifetimeUsedTrafficBytes: number;
|
|
4035
|
+
onlineAt: string | null;
|
|
4036
|
+
firstConnectedAt: string | null;
|
|
4037
|
+
lastConnectedNodeUuid: string | null;
|
|
4038
|
+
};
|
|
4039
|
+
status?: "DISABLED" | "LIMITED" | "EXPIRED" | "ACTIVE" | undefined;
|
|
4040
|
+
trafficLimitBytes?: number | undefined;
|
|
4041
|
+
trafficLimitStrategy?: "MONTH" | "NO_RESET" | "DAY" | "WEEK" | undefined;
|
|
4042
|
+
lastTriggeredThreshold?: number | undefined;
|
|
4043
|
+
};
|
|
4044
|
+
node: {
|
|
4045
|
+
tags: string[];
|
|
2160
4046
|
uuid: string;
|
|
2161
|
-
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2180
|
-
|
|
2181
|
-
|
|
2182
|
-
|
|
2183
|
-
|
|
2184
|
-
|
|
2185
|
-
|
|
2186
|
-
|
|
2187
|
-
|
|
2188
|
-
|
|
2189
|
-
|
|
2190
|
-
|
|
2191
|
-
|
|
2192
|
-
|
|
2193
|
-
|
|
2194
|
-
|
|
2195
|
-
|
|
2196
|
-
|
|
2197
|
-
|
|
2198
|
-
|
|
2199
|
-
|
|
2200
|
-
|
|
2201
|
-
|
|
2202
|
-
|
|
2203
|
-
|
|
2204
|
-
|
|
2205
|
-
|
|
2206
|
-
|
|
2207
|
-
|
|
2208
|
-
|
|
2209
|
-
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2220
|
-
|
|
2221
|
-
|
|
2222
|
-
|
|
2223
|
-
|
|
2224
|
-
|
|
2225
|
-
|
|
2226
|
-
|
|
2227
|
-
|
|
4047
|
+
createdAt: string;
|
|
4048
|
+
updatedAt: string;
|
|
4049
|
+
provider: {
|
|
4050
|
+
uuid: string;
|
|
4051
|
+
createdAt: string;
|
|
4052
|
+
updatedAt: string;
|
|
4053
|
+
name: string;
|
|
4054
|
+
faviconLink: string | null;
|
|
4055
|
+
loginUrl: string | null;
|
|
4056
|
+
} | null;
|
|
4057
|
+
countryCode: string;
|
|
4058
|
+
name: string;
|
|
4059
|
+
port: number | null;
|
|
4060
|
+
viewPosition: number;
|
|
4061
|
+
trafficLimitBytes: number | null;
|
|
4062
|
+
address: string;
|
|
4063
|
+
isDisabled: boolean;
|
|
4064
|
+
isConnected: boolean;
|
|
4065
|
+
isConnecting: boolean;
|
|
4066
|
+
lastStatusChange: string | null;
|
|
4067
|
+
lastStatusMessage: string | null;
|
|
4068
|
+
xrayVersion: string | null;
|
|
4069
|
+
nodeVersion: string | null;
|
|
4070
|
+
xrayUptime: string;
|
|
4071
|
+
isTrafficTrackingActive: boolean;
|
|
4072
|
+
trafficResetDay: number | null;
|
|
4073
|
+
trafficUsedBytes: number | null;
|
|
4074
|
+
notifyPercent: number | null;
|
|
4075
|
+
usersOnline: number | null;
|
|
4076
|
+
consumptionMultiplier: number;
|
|
4077
|
+
cpuCount: number | null;
|
|
4078
|
+
cpuModel: string | null;
|
|
4079
|
+
totalRam: string | null;
|
|
4080
|
+
configProfile: {
|
|
4081
|
+
activeConfigProfileUuid: string | null;
|
|
4082
|
+
activeInbounds: {
|
|
4083
|
+
type: string;
|
|
4084
|
+
uuid: string;
|
|
4085
|
+
profileUuid: string;
|
|
4086
|
+
tag: string;
|
|
4087
|
+
network: string | null;
|
|
4088
|
+
security: string | null;
|
|
4089
|
+
port: number | null;
|
|
4090
|
+
rawInbound?: unknown;
|
|
4091
|
+
}[];
|
|
4092
|
+
};
|
|
4093
|
+
providerUuid: string | null;
|
|
4094
|
+
activePluginUuid: string | null;
|
|
4095
|
+
};
|
|
4096
|
+
report: {
|
|
4097
|
+
actionReport: {
|
|
4098
|
+
ip: string;
|
|
4099
|
+
blocked: boolean;
|
|
4100
|
+
blockDuration: number;
|
|
4101
|
+
willUnblockAt: string;
|
|
4102
|
+
userId: string;
|
|
4103
|
+
processedAt: string;
|
|
4104
|
+
};
|
|
4105
|
+
xrayReport: {
|
|
4106
|
+
network: string;
|
|
4107
|
+
email: string | null;
|
|
4108
|
+
level: number | null;
|
|
4109
|
+
protocol: string | null;
|
|
4110
|
+
source: string | null;
|
|
4111
|
+
destination: string;
|
|
4112
|
+
routeTarget: string | null;
|
|
4113
|
+
originalTarget: string | null;
|
|
4114
|
+
inboundTag: string | null;
|
|
4115
|
+
inboundName: string | null;
|
|
4116
|
+
inboundLocal: string | null;
|
|
4117
|
+
outboundTag: string | null;
|
|
4118
|
+
ts: number;
|
|
4119
|
+
};
|
|
4120
|
+
};
|
|
2228
4121
|
};
|
|
2229
|
-
scope: "
|
|
2230
|
-
event: "
|
|
4122
|
+
scope: "torrent_blocker";
|
|
4123
|
+
event: "torrent_blocker.report";
|
|
2231
4124
|
timestamp: string;
|
|
2232
4125
|
}>]>;
|
|
2233
4126
|
export type TRemnawaveWebhookEvent = z.infer<typeof RemnawaveWebhookEventSchema>;
|
|
@@ -2237,4 +4130,5 @@ export type TRemnawaveWebhookServiceEvent = z.infer<typeof RemnawaveWebhookServi
|
|
|
2237
4130
|
export type TRemnawaveWebhookErrorsEvent = z.infer<typeof RemnawaveWebhookErrorsEvents>;
|
|
2238
4131
|
export type TRemnawaveWebhookCrmEvent = z.infer<typeof RemnawaveWebhookCrmEvents>;
|
|
2239
4132
|
export type TRemnawaveWebhookUserHwidDevicesEvent = z.infer<typeof RemnawaveWebhookUserHwidDevicesEvents>;
|
|
4133
|
+
export type TRemnawaveWebhookTorrentBlockerEvent = z.infer<typeof RemnawaveWebhookTorrentBlockerEvents>;
|
|
2240
4134
|
//# sourceMappingURL=webhook.schema.d.ts.map
|