OneTimeApproval
@forge/monorepo / backend/src / OneTimeApproval
Type Alias: OneTimeApproval
OneTimeApproval =
object
Defined in: backend/src/hitl/service.ts:291
A single approved execution, presented at the moment of the call.
The ticket is just the interaction id, and it is not a credential — the gate below verifies it
against the stored interaction rather than believing it. That is deliberate: the alternative to a
ticket was issuing a grant for allow-once, and a grant is standing by definition, so a one-time
decision would have silently become a permanent one.
Per-call rather than carried on the ExecutionContext: a context is reused for every call in a
turn, so an approval living on it would authorise all of them.
Properties
interactionId
readonlyinteractionId:InteractionId|string
Defined in: backend/src/hitl/service.ts:291