import { z } from 'zod';

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

// --- USER CODE START ---

export const loginInputSchema = z.object({
  email: z.string().email('Please enter a valid email address'),
  password: z.string().min(1, 'Password is required'),
});

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

export type LoginInput = z.infer<typeof loginInputSchema>;
export type LoginOutput = z.infer<typeof loginOutputSchema>;

// --- USER CODE END ---
