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?
optionalallowancePeriod?:AllowancePeriod
Defined in: javascript/src/types.ts:253
Free-allowance reset window mode (WS9). Absent/omitted means "calendar_month".
defaultBillingMode?
optionaldefaultBillingMode?:BillingMode
Defined in: javascript/src/types.ts:248
featureLimits?
optionalfeatureLimits?: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?
optionalmaxConcurrent?:number|null
Defined in: javascript/src/types.ts:250
overdraftFloor?
optionaloverdraftFloor?:Decimal|null
Defined in: javascript/src/types.ts:251
perOperation?
optionalperOperation?:Record<string,OperationPolicy>
Defined in: javascript/src/types.ts:249
planAssignedAt?
optionalplanAssignedAt?: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