// 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 OAuthTokenResponseSchema = 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(),
  access: z.string().nullable().optional(),
  refresh: z.string().nullable().optional(),
  user: z.object({}).passthrough().nullable().optional(),
  is_new_user: z.boolean().default(false).optional(),
  is_new_connection: z.boolean().default(false).optional(),
  should_prompt_2fa: z.boolean().optional(),
});

export type OAuthTokenResponse = z.infer<typeof OAuthTokenResponseSchema>;
