export interface CodexAuth {
  accessToken: string;
  accountId?: string;
}

export interface UsageWindow {
  used_percent: number;
  reset_at: number;
  limit_window_seconds: number;
}

export interface CodexUsageResponse {
  plan_type: string;
  rate_limit: {
    primary_window: UsageWindow;
    secondary_window: UsageWindow;
  };
  credits: {
    has_credits: boolean;
    unlimited: boolean;
    balance: number;
  };
}
