Add a content matcher to the firewall config.
The content matcher to append.
Reset config to defaultConfig() and counters to createState(), then persist empty.
Evaluate an observation against the current firewall config and counters. CRITICAL: advances the in-memory counter state on each call.
Normalized observation extracted from the napplet message envelope.
The full EvaluateResult (decision, action, ruleId, reason, newState).
Return the current firewall config.
Load previously persisted firewall config. Counters are NOT restored.
Persist the current firewall config via the persistence hook. Best-effort.
Set a global rate limit applied to all op-classes that have no specific entry.
The napplet dTag.
The global fallback rate limit.
Set a per-napplet policy override (allow / deny / ask).
The napplet dTag (version-agnostic identity key).
Hard policy override for this napplet.
Set a per-(napplet, opClass) token-bucket rate limit.
The napplet dTag.
The operation class string.
The rate limit to apply.
Stateful firewall container — wraps @kehto/firewall's pure functions with persistence and a convenient imperative API.
Mirrors AclStateContainer from acl-state.ts in structure and naming.
Example