Skip to content

Graphorin API reference v0.15.1


Graphorin API reference / @graphorin/core / / ApprovalPauseValue

Interface: ApprovalPauseValue

Defined in: packages/core/src/channels/durable.ts:52

Pause value carried by a persisted-approval suspension.

Properties

PropertyModifierTypeDescriptionDefined in
kindreadonly"graphorin.approval"-packages/core/src/channels/durable.ts:53
namereadonlystringCaller-chosen name targeted by workflow.approve(...).packages/core/src/channels/durable.ts:55
payload?readonlyunknownFree-form payload surfaced to the approver (what is being approved).packages/core/src/channels/durable.ts:57
timeoutDecision?readonlyunknownJSON-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/src/channels/durable.ts:74
wakeAt?readonlynumberDefer-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/src/channels/durable.ts:68