Type Alias: CreditEventType
CreditEventType =
"credits.deducted"|"credits.deduct_failed"|"credits.added"|"credits.refunded"|"credits.refund_failed"|"credits.expired"|"credits.low_balance"|"credits.plan_changed"|"credits.reserved"|"credits.reservation_released"|"credits.lease_expired"|"credits.overdraft"|"credits.cycle_renewed"|"credits.revoked"|"credits.quota_blocked"|"credits.quota_threshold"
Defined in: javascript/src/credits/events.ts:27
All credit lifecycle event types.
Success events (credits.deducted/credits.refunded/…) are emitted by
CreditsService only after the underlying store operation committed without
an error. Failure events (credits.deduct_failed /
credits.refund_failed) carry the store's business-error code in
data.error for observability/fraud monitoring.