Anchorage API reference
    Preparing search index...
    interface CreateApprovalInput {
        connectors?: string[];
        payload?: unknown;
        priority?: ApprovalPriority;
        requestedBy?: string;
        resumeCount?: number;
        resumedAt?: number;
        runId: string;
        runScoped?: boolean;
        slaSeconds?: number;
        stepPath?: string[];
        summary?: string;
        suspendedAt?: number;
        title: string;
        workflowId: string;
    }
    Index

    Properties

    connectors?: string[]
    payload?: unknown
    priority?: ApprovalPriority
    requestedBy?: string
    resumeCount?: number

    Runtime resume ordinal of that suspension, observed from RunSummary.resumeCount by the same bridge — undefined for a first suspension, 1,2,… on re-suspensions. Pairs with suspendedAt as the collision-free grant-binding tie-breaker.

    resumedAt?: number

    Epoch-ms resumedAt of that suspension, observed from RunSummary.resumedAt by the same bridge. INFORMATIONAL only — not the grant tie-breaker.

    runId: string
    runScoped?: boolean

    Opt in to a run-scoped standing grant (mints on every leg). Create-time only — see ApprovalRecord.runScoped. Never settable over HTTP.

    slaSeconds?: number

    Seconds from creation to the SLA deadline; overrides the service default.

    stepPath?: string[]
    summary?: string
    suspendedAt?: number

    Epoch-ms suspendedAt of the suspension this approval binds to, observed from RunSummary.suspendedAt by the creating bridge (core clock, so grant minting is clock-free: mint requires record.suspendedAt to EXACTLY match the resumed leg's suspension). Step-keyed approvals created without it fall back to the same-clock decidedAt-after-suspension comparison.

    title: string
    workflowId: string