// AUTO-GENERATED by cmdop_server / devtools.generator.ts_extras
// Source: OpenAPI 3.1 components.schemas
// DO NOT EDIT — re-run `make gen-clients`.

import { z } from "zod";
import { DeviceStatusEnumSchema } from "./DeviceStatusEnum";

export const DeviceListSchema = z.object({
  id: z.string().regex(/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i),
  name: z.string(),
  is_primary: z.boolean(),
  status: DeviceStatusEnumSchema,
  created_at: z.string().datetime({ offset: true }),
  confirmed_at: z.string().datetime({ offset: true }).nullable(),
  last_used_at: z.string().datetime({ offset: true }).nullable(),
});

export type DeviceList = z.infer<typeof DeviceListSchema>;
