/**
 * Zod schema for SetupRequest
 *
 * This schema provides runtime validation and type inference.
 *  * Serializer for starting 2FA setup.
 *  */
import { z } from 'zod'

/**
 * Serializer for starting 2FA setup.
 */
export const SetupRequestSchema = z.object({
  device_name: z.string().min(1).max(100).optional(),
})

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