Skip to main content

Interface: GetUserPlanResult

Defined in: javascript/src/types.ts:240

Result of fetching a user's current plan.

Carries the plan's financial-safety policy (defaultBillingMode, perOperation, maxConcurrent, overdraftFloor) so the manager can resolve admission policy without a second round-trip (interface plan §1).

Properties

allowancePeriod?

optional allowancePeriod?: AllowancePeriod

Defined in: javascript/src/types.ts:253

Free-allowance reset window mode (WS9). Absent/omitted means "calendar_month".


defaultBillingMode?

optional defaultBillingMode?: BillingMode

Defined in: javascript/src/types.ts:248


featureLimits?

optional featureLimits?: Record<string, FeatureLimit>

Defined in: javascript/src/types.ts:247

Per-feature invocation-count limits, keyed by feature name. Empty when none configured.


features

features: Record<string, unknown>

Defined in: javascript/src/types.ts:245


freeAllowance

freeAllowance: Decimal

Defined in: javascript/src/types.ts:244


maxConcurrent?

optional maxConcurrent?: number | null

Defined in: javascript/src/types.ts:250


overdraftFloor?

optional overdraftFloor?: Decimal | null

Defined in: javascript/src/types.ts:251


perOperation?

optional perOperation?: Record<string, OperationPolicy>

Defined in: javascript/src/types.ts:249


planAssignedAt?

optional planAssignedAt?: Date | null

Defined in: javascript/src/types.ts:255

Timestamp the current plan was assigned — the anchor for non-calendar periods.


planId

planId: string | null

Defined in: javascript/src/types.ts:242


planName

planName: string | null

Defined in: javascript/src/types.ts:243


userId

userId: string

Defined in: javascript/src/types.ts:241