mirror of
https://github.com/remnawave/node.git
synced 2026-10-24 11:50:59 +00:00
19 lines
598 B
TypeScript
19 lines
598 B
TypeScript
import { z } from 'zod';
|
|
|
|
export const XrayWebhookSchema = z.object({
|
|
email: z.string().nullable(),
|
|
level: z.number().nullable(),
|
|
protocol: z.string().nullable(),
|
|
network: z.string(),
|
|
source: z.string().nullable(),
|
|
destination: z.string(),
|
|
routeTarget: z.string().nullable(),
|
|
originalTarget: z.string().nullable(),
|
|
inboundTag: z.string().nullable(),
|
|
inboundName: z.string().nullable(),
|
|
inboundLocal: z.string().nullable(),
|
|
outboundTag: z.string().nullable(),
|
|
ts: z.number(),
|
|
});
|
|
|
|
export type XrayWebhookModel = z.infer<typeof XrayWebhookSchema>;
|