import { z } from 'zod';

export const bridgeProvisionUserSchema = z.object({
  email: z.string().email(),
  displayName: z.string().max(256).optional(),
  postalCode: z.string().max(16).optional(),
  provenance: z
    .enum(['jsn-funnel', 'jsn-donate', 'jsn-organize', 'jsn-organic'])
    .optional(),
});

export type BridgeProvisionUserInput = z.infer<typeof bridgeProvisionUserSchema>;
