Expand description
Anthropic OAuth usage API response shapes.
Type-only - the HTTP fetcher lives in the forge-gateway backends. These are the JSON wire shapes; the fetcher deserializes into them.
Re-exports§
use serde::Deserialize;🔒use serde::Deserialize;🔒use serde::Serialize;🔒use serde::Serialize;🔒
Structs§
- Oauth
Extra Usage - “Extra usage” pay-as-you-go credit balance.
- Oauth
Usage - Top-level OAuth usage payload. All fields are optional because the API can omit any window for accounts that don’t qualify (free tier, new account, etc.).
- Oauth
Usage Window - Per-window utilisation.
utilizationis a percentage (0-100);resets_atis whatever the API emits (ISO-8601 string or numeric epoch). Consumers parse it themselves.
Enums§
- Oauth
Usage Error - Failure modes for the OAuth usage fetcher.