mirror of
https://github.com/documenso/documenso
synced 2026-04-28 16:37:20 +00:00
11 lines
331 B
TypeScript
11 lines
331 B
TypeScript
import { WebhookTriggerEvents } from '@prisma/client';
|
|
import { z } from 'zod';
|
|
|
|
export const ZTriggerWebhookBodySchema = z.object({
|
|
event: z.nativeEnum(WebhookTriggerEvents),
|
|
data: z.unknown(),
|
|
userId: z.number(),
|
|
teamId: z.number(),
|
|
});
|
|
|
|
export type TTriggerWebhookBodySchema = z.infer<typeof ZTriggerWebhookBodySchema>;
|