summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/schemas/waitlist.ts
blob: c45540d54bc498c84281bc99b14e5e7292e132b4 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
import { z } from "zod";

export const exportWaitlistSchema = z.object({
  email: z.string().email().max(320),
});

export const exportWaitlistResponseSchema = z.object({
  success: z.boolean(),
  alreadySubscribed: z.boolean().optional(),
});

export type ExportWaitlistInput = z.infer<typeof exportWaitlistSchema>;
export type ExportWaitlistResponse = z.infer<
  typeof exportWaitlistResponseSchema
>;