interface EscalationEntry {
    app_id: string;
    assigned_to: string;
    assigned_until: Date;
    available?: boolean;
    claim_expires_at: Date;
    claimed_at: Date;
    created_at: Date;
    created_by: string;
    description: string;
    entity: string;
    envelope: Record<string, unknown>;
    escalation_payload: Record<string, unknown>;
    expires_at: Date;
    id: string;
    initiated_by: string;
    metadata: Record<string, unknown>;
    milestones: unknown[];
    namespace: string;
    origin_id: string;
    parent_id: string;
    priority: number;
    resolved_at: Date;
    resolver_payload: Record<string, unknown>;
    role: string;
    signal_key: string;
    span_id: string;
    status:
        | "pending"
        | "resolved"
        | "cancelled"
        | "expired";
    subtype: string;
    task_id: string;
    task_queue: string;
    topic: string;
    trace_id: string;
    type: string;
    updated_at: Date;
    workflow_id: string;
    workflow_type: string;
}

Properties

app_id: string
assigned_to: string
assigned_until: Date
available?: boolean

Computed by list(): true when the row is claimable (no active assignee or expired claim).

claim_expires_at: Date
claimed_at: Date
created_at: Date
created_by: string
description: string
entity: string
envelope: Record<string, unknown>
escalation_payload: Record<string, unknown>
expires_at: Date
id: string
initiated_by: string
metadata: Record<string, unknown>
milestones: unknown[]
namespace: string
origin_id: string
parent_id: string
priority: number
resolved_at: Date
resolver_payload: Record<string, unknown>
role: string
signal_key: string

Job ID / Durable signalId; NULL for standalone (no-signal) escalations

span_id: string
status:
    | "pending"
    | "resolved"
    | "cancelled"
    | "expired"

Lifecycle status. Claims are implicit: status='pending' + assigned_to IS NOT NULL + assigned_until > NOW().

subtype: string
task_id: string

Nullable passthrough column — populated when downstream needs task-level context.

task_queue: string
topic: string

Hook topic for signal delivery

trace_id: string
type: string
updated_at: Date
workflow_id: string
workflow_type: string