feat(kiwi-fe): add getOrchUsage API call and OrchUsage type

This commit is contained in:
pyr0ball 2026-04-14 15:45:22 -07:00
parent 99e9cbb8c1
commit bdfbc963b7

View file

@ -807,6 +807,16 @@ export const mealPlanAPI = {
}, },
} }
// ========== Orch Usage Types ==========
export interface OrchUsage {
calls_used: number
topup_calls: number
calls_total: number
period_start: string // ISO date YYYY-MM-DD
resets_on: string // ISO date YYYY-MM-DD
}
// ========== Browser Types ========== // ========== Browser Types ==========
export interface BrowserDomain { export interface BrowserDomain {
@ -853,4 +863,11 @@ export const browserAPI = {
}, },
} }
// ── Orch Usage ────────────────────────────────────────────────────────────────
export async function getOrchUsage(): Promise<OrchUsage | null> {
const resp = await api.get<OrchUsage | null>('/orch-usage')
return resp.data
}
export default api export default api