Briyah SDK - v2.0.18
    Preparing search index...

    Interface CreditSummary

    What a user can spend: the allowance, then purchased credit. All in dollars.

    interface CreditSummary {
        allowance: AllowanceState & { remaining: number };
        purchased: number;
        total: number;
    }
    Index
    allowance: AllowanceState & { remaining: number }
    purchased: number

    Bought credit, kept until used. Negative only when the last call overdrew it.

    total: number

    What the next call can draw on: allowance remaining plus purchased.