Skip to content

Type Alias: ApprovalPolicy

ApprovalPolicy = { mode: "none"; } | { mode: "always"; } | { mode: "urls"; patterns: readonly string[]; }

The normalized form of an ApprovalGate: which calls pause for a human. "none" runs every call straight through, "always" gates all of them, and "urls" gates only calls whose URL matches one of patterns.