mirror of
https://github.com/documenso/documenso.git
synced 2025-11-13 08:13:56 +10:00
13 lines
353 B
TypeScript
13 lines
353 B
TypeScript
import { z } from 'zod';
|
|
|
|
import { WebhookTriggerEvents } from '@documenso/prisma/client';
|
|
|
|
export const ZTriggerWebhookBodySchema = z.object({
|
|
event: z.nativeEnum(WebhookTriggerEvents),
|
|
data: z.unknown(),
|
|
userId: z.number(),
|
|
teamId: z.number().optional(),
|
|
});
|
|
|
|
export type TTriggerWebhookBodySchema = z.infer<typeof ZTriggerWebhookBodySchema>;
|