Skip to content
Français

WorkflowGate

import type { WorkflowGate } from "@elie-laloum/outpost";
  • authenticationOptional
    "signed" | undefined
    signed requires every decision to carry a proof accepted by the decisionVerifier; when omitted, the actor named by your application is trusted. Part of checkpoint identity: adding or removing it makes a saved checkpoint incompatible.
  • kindRequired
    "approval" | "pause"
    approval waits for approve; pause waits for resume. Both accept rejection.
  • promptRequired
    string
    Question put to the actors, copied into the pending request.
  • actorsRequired
    readonly string[]
    Names allowed to decide this gate. A signed gate also requires a key bound to the chosen actor.
export interface WorkflowGate {
  readonly authentication?: "signed";
  readonly kind: "approval" | "pause";
  readonly prompt: string;
  readonly actors: readonly string[];
}