API client for billing status, plan, and email preferences.
// Source: https://github.com/mnfst/llm-gateway | License: MIT | Copyright 2026 MNFST, Inc
// Provided via justclaw.it.com; keep this notice with the code.
import { fetchJson, fetchMutate, type FetchJsonOptions } from './core';
import type { BillingEmailPreferences, BillingPlanStatus, BillingStatus } from 'manifest-shared';
// Re-export so UI components can import the type from the API module they
// already use, instead of reaching across package boundaries for it.
export type { BillingEmailPreferences, BillingPlanStatus, BillingStatus };
export function getBillingStatus(options?: FetchJsonOptions): Promise<BillingStatus> {
if (options) {
return fetchJson<BillingStatus>('/billing/status', undefined, options);
}
return fetchJson<BillingStatus>('/billing/status');
}
/**
* Ligh
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key