CreateApprovalGateOptions
Defined in: src/mft/approvals.ts:204
Options accepted by createApprovalGate.
Properties
Section titled “Properties”| Property | Type | Description | Defined in |
|---|---|---|---|
approvalId | (input: { route: MftRoute; }) => string | Function that derives an approval id from each route invocation. | src/mft/approvals.ts:210 |
now? | () => Date | Optional clock used for requestedAt/resolvedAt. | src/mft/approvals.ts:212 |
onRequested? | (request: ApprovalRequest) => void | Observer fired when a new approval request is created. | src/mft/approvals.ts:214 |
registry | ApprovalRegistry | Registry that holds approval requests. | src/mft/approvals.ts:206 |
runner | ScheduleRouteRunner | Underlying runner that executes the route once approval is granted. | src/mft/approvals.ts:208 |