2
0
Files
bot/packages/schemas/features/collaborators.ts
Baptiste Arnaud 454d320c6b (api) Add CRUD typebot endpoints
Closes #320, closes #696
2023-08-17 09:39:11 +02:00

11 lines
332 B
TypeScript

import { CollaborationType, CollaboratorsOnTypebots } from '@typebot.io/prisma'
import { z } from 'zod'
export const collaboratorSchema = z.object({
type: z.nativeEnum(CollaborationType),
userId: z.string(),
typebotId: z.string(),
createdAt: z.date(),
updatedAt: z.date(),
}) satisfies z.ZodType<CollaboratorsOnTypebots>