// ── Debrid auth & addon URL session models ──

export interface DebridAuthSession {
  code: string;
  service: string;
  authType: "oauth" | "apikey";
  status: "pending" | "active" | "completed" | "cancelled" | "error";
  deviceCode?: string;
  userCode?: string;
  verificationUrl?: string;
  interval?: number;
  apiKey?: string;
  token?: string;
  error?: string;
  createdAt: number;
  expiresAt: number;
  pollCount: number;
}

export interface AddonUrlSession {
  code: string;
  status: "pending" | "active" | "completed" | "cancelled";
  manifestUrl?: string;
  validatedManifestOk?: boolean;
  manifestName?: string;
  error?: string;
  createdAt: number;
  expiresAt: number;
  pollCount: number;
}
