/**
 * Zod schema for DeviceListResponse
 *
 * This schema provides runtime validation and type inference.
 *  * Response serializer for device list endpoint.
 *  */
import { z } from 'zod'
import { DeviceListSchema } from './DeviceList.schema'

/**
 * Response serializer for device list endpoint.
 */
export const DeviceListResponseSchema = z.object({
  devices: z.array(DeviceListSchema),
  has_2fa_enabled: z.boolean(),
})

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