Mayson Monorepo Documentation
    Preparing search index...

    Interface UsageStatusResponse

    Usage status within current billing period

    interface UsageStatusResponse {
        totalUsageCost: number;
        includedCredits: number;
        remainingCredits: number;
        overageAmount: number;
        maxSpendingLimit: number;
        totalSpend: number;
        isAtSpendingLimit: boolean;
        alertThreshold: number;
        isAtAlertThreshold: boolean;
        periodStart?: string;
        periodEnd?: string;
    }
    Index

    Properties

    totalUsageCost: number

    Total AI usage cost in current period

    includedCredits: number

    Included credits for current plan

    remainingCredits: number

    Remaining credits (0 if over limit)

    overageAmount: number

    Overage amount (usage beyond included credits)

    maxSpendingLimit: number

    Maximum spending limit

    totalSpend: number

    Total potential spend (usage + plan price)

    isAtSpendingLimit: boolean

    Whether user has reached max spending limit

    alertThreshold: number

    Alert threshold percentage

    isAtAlertThreshold: boolean

    Whether user is at or above alert threshold

    periodStart?: string

    Billing period start

    periodEnd?: string

    Billing period end