Files
clawdbot/src/infra/provider-usage.types.ts
2026-01-14 09:57:32 +00:00

28 lines
499 B
TypeScript

export type UsageWindow = {
label: string;
usedPercent: number;
resetAt?: number;
};
export type ProviderUsageSnapshot = {
provider: UsageProviderId;
displayName: string;
windows: UsageWindow[];
plan?: string;
error?: string;
};
export type UsageSummary = {
updatedAt: number;
providers: ProviderUsageSnapshot[];
};
export type UsageProviderId =
| "anthropic"
| "github-copilot"
| "google-gemini-cli"
| "google-antigravity"
| "minimax"
| "openai-codex"
| "zai";