/**
 * Minimal OAuth/billing types that used to live in the deleted
 * `services/oauth/types.ts`. Kept here so remaining call sites can compile
 * while the subscription/OAuth surface is stripped in later phases.
 */

export type OAuthTokens = {
  accessToken: string
  refreshToken?: string
  expiresAt?: number
  scopes?: string[]
  subscriptionType?: SubscriptionType
}

export type SubscriptionType = 'pro' | 'max5x' | 'max20x' | 'team' | 'enterprise' | 'none'

export type BillingType = 'api' | 'subscription' | 'none'

export type ReferralEligibilityResponse = {
  eligible: boolean
  referralCode?: string
  referralUrl?: string
}
