utils/auth/feature_gates library

Feature gating and authorization utilities.

Provides plan-based feature access control, allowing features to be enabled or disabled per organization plan tier. Gates can be loaded from a remote endpoint or persisted locally.

Classes

AccessResult
Result of checking access to a feature gate.
FeatureGateConfig
Snapshot of evaluated feature gate configuration.
FeatureGateService
Service for managing feature gate state and access control.

Enums

FeatureGate
Available feature gates that can be toggled per plan or organization.
Plan
Subscription plan tiers.

Exceptions / Errors

FeatureGateException
Exception thrown when a required feature gate is not enabled.