Interface: FeatureLimit
Defined in: javascript/src/types.ts:191
Per-feature invocation-count limit (cadence-based rate limiting).
maxCalls bounds how many times a feature may be invoked within one
period window. Windows are calendar-aligned (see
resolveCalendarWindow in allowance.ts): "daily" resets at UTC
midnight, "weekly" on Monday (ISO week), "monthly" on the 1st,
"yearly" on Jan 1 — every user resets together, no per-user anchor.
action mirrors SpendCap.action: "deny" blocks the call (checked at
admission/deduction); "warn"/"notify" are non-blocking signals, checked
only on the immediate-charge and settle paths — admission
(reserve/createLease) only ever enforces "deny", exactly like spend
caps.
Properties
action
action:
"deny"|"warn"|"notify"
Defined in: javascript/src/types.ts:194
maxCalls
maxCalls:
number
Defined in: javascript/src/types.ts:192
period
period:
FeatureLimitPeriod
Defined in: javascript/src/types.ts:193