Configuring approval requirements for actions in your application
requireApproval
PatternrequireApproval
decorator (Python) or higher-order function (TypeScript), which transforms regular functions into approval-gated functions.
requireApproval
:
requireApproval
function accepts a configuration object with the following properties:
onApproved
and onRejected
callbacks: