import { request } from "../../app/api.js";
export const loadAccountUsage = (accountId) => request(`/accounts/${encodeURIComponent(accountId)}/usage`);
export const loadAccountUsageHistory = (accountId, days) => request(`/accounts/${encodeURIComponent(accountId)}/usage/history?days=${encodeURIComponent(days)}`);
export const loadAccountTokenUsage = (accountId) => request(`/accounts/${encodeURIComponent(accountId)}/usage/tokens`);
export const useAccountResetCredit = (accountId) => request(`/accounts/${encodeURIComponent(accountId)}/usage/reset`, { method: "POST" });
