secreq-rule

The AssemblyScript SDK for writing a programmable rule — for the decisions that pattern matching cannot express. A rule is one file exporting decide(ctx: RuleCtx): Decision: read the request through the RuleCtx you are handed, then return approve(), pass() to leave it to the human, or deny(reason).

import from "secreq-rule"Source on GitHub