// 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";

export const TotpVerifyUserSchema = z.object({
  id: z.number().int(),
  email: z.email(),
  first_name: z.string().max(50).nullable().optional(),
  last_name: z.string().max(50).nullable().optional(),
  full_name: z.string(),
  initials: z.string(),
  display_username: z.string(),
  company: z.string().max(100).nullable().optional(),
  phone: z.string().max(20).nullable().optional(),
  position: z.string().max(100).nullable().optional(),
  language: z.string().max(10).nullable().optional(),
  timezone: z.string().max(64).nullable().optional(),
  avatar: z.string().nullable(),
  is_staff: z.boolean(),
  is_superuser: z.boolean(),
  date_joined: z.string().datetime({ offset: true }),
  last_login: z.string().datetime({ offset: true }).nullable(),
  unanswered_messages_count: z.number().int().default(0),
  api_key: z.string().nullable(),
});

export type TotpVerifyUser = z.infer<typeof TotpVerifyUserSchema>;
