summaryrefslogtreecommitdiff
path: root/apps/web/src/lib/schemas/waitlist.ts
diff options
context:
space:
mode:
Diffstat (limited to 'apps/web/src/lib/schemas/waitlist.ts')
-rw-r--r--apps/web/src/lib/schemas/waitlist.ts15
1 files changed, 15 insertions, 0 deletions
diff --git a/apps/web/src/lib/schemas/waitlist.ts b/apps/web/src/lib/schemas/waitlist.ts
new file mode 100644
index 00000000..c45540d5
--- /dev/null
+++ b/apps/web/src/lib/schemas/waitlist.ts
@@ -0,0 +1,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
+>;