// 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 { UserSchema } from "./User";

export const OTPVerifyResponseSchema = z.object({
  requires_2fa: z.boolean().default(false).optional(),
  session_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).nullable().optional(),
  refresh: z.string().nullable().optional(),
  access: z.string().nullable().optional(),
  user: UserSchema.nullable().optional(),
  should_prompt_2fa: z.boolean().optional(),
});

export type OTPVerifyResponse = z.infer<typeof OTPVerifyResponseSchema>;
