Definition of a single feature flag.
readonly
enabled: boolean
Whether the flag is enabled by default.
readonly
optional
percentage: number
Optional percentage rollout (0-100).
readonly
optional
users: readonly string[]
Optional user allowlist — overrides enabled: false.
Since 0.2.0
readonly
optional
tenants: readonly string[]
Optional tenant restriction. When present and non-empty, the flag is
false for any context whose tenantId is not in this list — including a
context with no tenant — and this restriction is evaluated ahead of every
other rule (it is not an allowlist: it cannot be overridden by users).
When absent, evaluation is unchanged.