Skip to main content

QuotaExplanation

@forge/monorepo


@forge/monorepo / backend/src / QuotaExplanation

Type Alias: QuotaExplanation

QuotaExplanation = object

Defined in: backend/src/usage/quota.ts:211

One limit, with what it allows, what has been used, and when that changes — #183.

Shaped for rendering: the window as words rather than a union to switch on, the scope as a word rather than an optional id to test for presence, and the fraction computed once here rather than in every client.

Properties

dimensions

readonly dimensions: readonly object[]

Defined in: backend/src/usage/quota.ts:218


modelId?

readonly optional modelId?: string

Defined in: backend/src/usage/quota.ts:213


resetNote

readonly resetNote: string

Defined in: backend/src/usage/quota.ts:217

The sentence a refusal would use — "It resets at T", or the sliding-window wording. Empty when neither.


resetsAt

readonly resetsAt: string

Defined in: backend/src/usage/quota.ts:215


scope

readonly scope: "workspace" | "personal"

Defined in: backend/src/usage/quota.ts:214


window

readonly window: string

Defined in: backend/src/usage/quota.ts:212