// Billing — the plan catalogue (what plans tenants can be on). Per-tenant plan // assignment lives on the tenant detail page; this is the platform-level view // of what's on offer. Backend: /api/v1/billing/plans. import type { ArcadiaClient } from "@crema/arcadia-core-client" export interface PlanMeter { meter_key: string included_units: number | null overage_price_cents: number | null } export interface Plan { name: string slug: string description: string | null meters: PlanMeter[] pricing: unknown[] billing_track: string trial_days: number } export async function listPlans(arcadia: ArcadiaClient): Promise { const res = await arcadia.GET<{ data: Plan[] }>("/api/v1/billing/plans") return res.data }