UsageMeasurementCredit
Optimistic credit balance for a credit-backed feature
UsageMeasurementCreditFields
The credits this single reportUsage call deducted, in credit units — scoped to this one measurement (0 for idempotency duplicates). Contrast currentUsage, which is the wallet-wide running total shared across all features on this currency. Use it to reconcile expected per-call deductions.
The credit currency identifier
The wallet's total consumed credits for this currency (optimistic — includes not-yet-reconciled usage), shared across every feature that draws on the currency. This is the running balance, not this call's deduction — see consumed for that.
The grant-version timestamp of this balance, used by the SDK for last-write-wins reconciliation
The total credits granted
End of the current credit grant period (when recurring credits reset), if applicable