// Auto-generated by DjangoCFG - see CLAUDE.md
/**
 * Serializer for TOTP code verification during login.
 * 
 * Request model (no read-only fields).
 */
export interface VerifyRequest {
  /** 2FA session ID from login response */
  session_id: string;
  /** 6-digit TOTP code from authenticator app */
  code: string;
}

/**
 * Response serializer for successful 2FA verification.
 * 
 * Response model (includes read-only fields).
 */
export interface VerifyResponse {
  message: string;
  /** JWT access token */
  access_token: string;
  /** JWT refresh token */
  refresh_token: string;
  /** User profile data */
  user: Record<string, any>;
  /** Number of remaining backup codes (if backup code was used) */
  remaining_backup_codes?: number;
  /** Warning message (e.g., low backup codes) */
  warning?: string;
}

/**
 * Serializer for backup code verification during login.
 * 
 * Request model (no read-only fields).
 */
export interface VerifyBackupRequest {
  /** 2FA session ID from login response */
  session_id: string;
  /** 8-character backup recovery code */
  backup_code: string;
}

