Skip to content

Voice-to-text dictation app with local (Nvidia Parakeet/Whisper) and cloud models (BYOK). Privacy-first and available cross-platform.

580 B
Raw Blame
import { api } from '@/lib/apiClient';

export interface UsageInfo {
  billingUserId: string;
  wordsUsed: number;
  wordsRemaining: number;
  limit: number;
  plan: string;
  status: string;
  isSubscribed: boolean;
  isTrial: boolean;
  trialDaysLeft: number | null;
  currentPeriodEnd: string | null;
  billingInterval: 'monthly' | 'annual' | null;
  resetAt: string;
  entitlementSources?: {
    personal: boolean;
    provider: boolean;
    workspaceIds: string[];
  };
}

export async function fetchUsage(): Promise<UsageInfo> {
  return api.get<UsageInfo>('/api/usage');
}