import { z } from 'zod';

// --- ASA GENERATED START ---
// Validation schemas for auth/register slice.
// --- ASA GENERATED END ---

// --- USER CODE START ---

export const registerInputSchema = z.object({
  email: z.string().email('Please enter a valid email address'),
  password: z
    .string()
    .min(8, 'Password must be at least 8 characters')
    .max(72, 'Password must be at most 72 characters'),
  display_name: z
    .string()
    .min(1, 'Display name is required')
    .max(100, 'Display name must be at most 100 characters'),
});

export const registerOutputSchema = z.object({
  success: z.boolean(),
  error: z.string().nullable(),
});

export type RegisterInput = z.infer<typeof registerInputSchema>;
export type RegisterOutput = z.infer<typeof registerOutputSchema>;

// --- USER CODE END ---
