Graphorin API reference v0.15.1
Graphorin API reference / @graphorin/workflow / / ApprovalPauseValue
Interface: ApprovalPauseValue
Defined in: packages/core/dist/channels/durable.d.ts
Pause value carried by a persisted-approval suspension.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
kind | readonly | "graphorin.approval" | - | packages/core/dist/channels/durable.d.ts |
name | readonly | string | Caller-chosen name targeted by workflow.approve(...). | packages/core/dist/channels/durable.d.ts |
payload? | readonly | unknown | Free-form payload surfaced to the approver (what is being approved). | packages/core/dist/channels/durable.d.ts |
timeoutDecision? | readonly | unknown | JSON-safe decision delivered when the deadline fires. Defaults to DEFAULT_APPROVAL_TIMEOUT_DECISION (an auto-deny). The timeout VALUE itself (how long to wait) is caller policy. | packages/core/dist/channels/durable.d.ts |
wakeAt? | readonly | number | Defer-timeout: epoch-ms deadline. An approval carrying one joins the durable-timer enumeration (the suspended checkpoint's wakeAt metadata, which the workflow timer daemon already scans); once due, workflow.tick(threadId) resolves the approval with ApprovalPauseValue.timeoutDecision instead of waiting for a human - the auto-deny composition for deferred permission decisions. Absent ⇒ the approval waits indefinitely (the historical behaviour). | packages/core/dist/channels/durable.d.ts |