import { z } from "zod";
import { type Invite } from "../src/prisma";

export const ZInvite = z.object({
  id: z.string(),
  email: z.email(),
  name: z.string().nullable(),
  organizationId: z.string(),
  creatorId: z.string(),
  acceptorId: z.string().nullable(),
  createdAt: z.date(),
  expiresAt: z.date(),
  role: z.enum(["owner", "manager", "member", "billing", "dashboard_viewer"]),
  teamIds: z.array(z.string()),
}) satisfies z.ZodType<Omit<Invite, "deprecatedRole">>;
