Skip to main content

Module oauth

Module oauth 

Source
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§

OauthExtraUsage
“Extra usage” pay-as-you-go credit balance.
OauthUsage
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.).
OauthUsageWindow
Per-window utilisation. utilization is a percentage (0-100); resets_at is whatever the API emits (ISO-8601 string or numeric epoch). Consumers parse it themselves.

Enums§

OauthUsageError
Failure modes for the OAuth usage fetcher.