interface ConditionQueueConfig {
    description?: string;
    entity?: string;
    envelope?: Record<string, unknown>;
    expiresAt?: Date;
    initiatedBy?: string;
    metadata?: Record<string, unknown>;
    originId?: string;
    parentId?: string;
    priority?: number;
    role?: string;
    spanId?: string;
    subtype?: string;
    taskQueue?: string;
    timeout?: string;
    traceId?: string;
    type?: string;
    workflowType?: string;
}

Properties

description?: string
entity?: string
envelope?: Record<string, unknown>

Unindexed display/form context for resolver UIs

expiresAt?: Date
initiatedBy?: string
metadata?: Record<string, unknown>

GIN-indexed; put claim/filter keys here

originId?: string
parentId?: string
priority?: number
role?: string
spanId?: string
subtype?: string
taskQueue?: string
timeout?: string

SLA timer for the wait itself (e.g. '30m', '24h'). Arms the same resume timer as condition(signalId, '30m'): when it fires first, the workflow resumes with false and the escalation row transitions pending → expired (a later resolve fails as already-expired). A signal that arrives first resolves normally and the timer is inert.

traceId?: string
type?: string
workflowType?: string