Skip to content

js-bao-wss-client


js-bao-wss-client / PendingApply

Interface: PendingApply ​

One pending (or reclaimable) workflow apply, as returned by workflows.getPendingApplies. Concrete shape mirroring the server element — it carries no output, so there is no output generic here.

Properties ​

applyLeaseTimeoutMs ​

applyLeaseTimeoutMs: number

Apply-lease timeout in milliseconds.


claimedAt? ​

optional claimedAt?: string | null

ISO timestamp the apply was claimed, or null once claimed and released. Absent (the key is omitted) for a run that has never been claimed, so this property is optional.


claimedBy? ​

optional claimedBy?: string | null

Connection id that holds/held the apply claim, or null. Absent for a run that has never been claimed, so this property is optional.


contextDocId ​

contextDocId: string


instanceId ​

instanceId: string


meta ​

meta: unknown

Parsed workflow run metadata, or null when none was set. Typed as unknown because the server accepts and round-trips any JSON value here: normalizeMeta stores whatever was passed (object, array, string, number, boolean) and parseMeta returns that same shape. Narrow before use — do not assume an object.


runId ​

runId: string


runKey ​

runKey: string


startedByUserId ​

startedByUserId: string


status ​

status: "apply_pending" | "apply_claimed"

"apply_pending", or "apply_claimed" for a run whose apply lease expired.


workflowId ​

workflowId: string


workflowKey ​

workflowKey: string

Documentation validated against js-bao-wss-client 3.4.0 · js-bao 0.11.0 · primitive-admin 1.0.62 · primitive-app 3.1.0 — 2026-09-30