Skip to content
Français

WorkflowDecisionSigningOptions

import type { WorkflowDecisionSigningOptions } from "@elie-laloum/outpost";
  • decisionRequired
    Omit<WorkflowDecision, "proof">
    Exact execution, pending request, task, actor, action and reason to sign, without an existing proof.
  • keyIdRequired
    string
    Identifier of the matching trusted public key, nonblank and at most 512 characters; signed with the decision and copied into the proof.
  • privateKeyRequired
    KeyObject
    Ed25519 private KeyObject owned by your application; any other key type throws. Outpost never stores it.
  • expiresAtRequired
    string
    Proof expiry, parseable by Date.parse and later than now; the exact string is signed.
import type { KeyObject } from "node:crypto";

export interface WorkflowDecisionSigningOptions {
  readonly decision: Omit<WorkflowDecision, "proof">;
  readonly keyId: string;
  readonly privateKey: KeyObject;
  readonly expiresAt: string;
}