interface ResolveBatchItemParams {
    assertClaim?: string;
    id?: string;
    itemKey: string;
    metadata?: Record<string, unknown>;
    namespace?: string;
    payload: Record<string, unknown>;
    resolvedBy?: ResolvedByIdentity;
    signalKey?: string;
}

Properties

assertClaim?: string

Claim-lock assertion inside the same guarded UPDATE. Batch fills are claim-agnostic without it (multiple contributors are the norm). See ResolveEscalationParams.assertClaim.

id?: string

Row selector — exactly one of id | signalKey.

itemKey: string

The declared batch key this submission fills.

metadata?: Record<string, unknown>

Merge patch applied to the row's GIN-indexed metadata in the same atomic UPDATE. See ResolveEscalationParams.metadata.

namespace?: string
payload: Record<string, unknown>

The item's payload — stored under envelope.batch_items[itemKey] and, on completion, delivered as collection[itemKey] to the waiter.

resolvedBy?: ResolvedByIdentity

Resolver identity. Delivered under $resolution ONLY on the completing item's signal. See ResolveEscalationParams.resolvedBy.

signalKey?: string

Row selector — the value passed to condition().