/**
 * Zod schema for VerifyResponse
 *
 * This schema provides runtime validation and type inference.
 *  * Response serializer for successful 2FA verification.
 *  */
import { z } from 'zod'

/**
 * Response serializer for successful 2FA verification.
 */
export const VerifyResponseSchema = z.object({
  message: z.string(),
  access_token: z.string(),
  refresh_token: z.string(),
  user: z.record(z.string(), z.any()),
  remaining_backup_codes: z.int().optional(),
  warning: z.string().optional(),
})

/**
 * Infer TypeScript type from Zod schema
 */
export type VerifyResponse = z.infer<typeof VerifyResponseSchema>