This module is types only — no runtime code, no dependencies. It is safe to
import from the request-path evaluator and the OpenFeature provider. Runtime
validation (which pulls in valibot) lives in validation.
A flag’s active time window. Both bounds optional (open-ended). The flag is “live” only within [enableAt, disableAt]; outside it serves its default variant. ISO-8601 instants.
A flag’s stale-detection policy. expiry says when it’s overdue. For a duration expiry the flag is only flagged once it’s also been idle longer than idle (default 7 days) — so an actively-edited flag isn’t nagged. A datetime expiry is a hard deadline (idle is ignored).
A dependency on another flag: this flag is only “live” when the prerequisite flag resolves to the required variant for the same context. Otherwise the dependent flag serves its default variant (reason PREREQUISITE_FAILED). The dependency graph is validated acyclic at publish time.
A named, reusable audience — a tree of conditions (top-level AND, with nested AND/OR/NOT groups) referenced by targeting rules via the inSegment operator. Segments are an authoring convenience: a single-key inSegment is resolved (inlined) into rules at compile time; array inSegment and notInSegment are embedded in the snapshot and evaluated at runtime.
A node in a rule/segment’s conditions: either a leaf Condition or a boolean ConditionGroup. The top-level conditions array is an implicit AND of its nodes (so a flat list of leaves behaves exactly as before).