`UsageDetails` in `types.ts`: Logic duplicated with `ai-gateway/src/providers/usage/ingestion.rs`. Keep logic in sync.
