BatchItemOutcome:
    | "completed"
    | "accepted"
    | "duplicate-item"
    | "unknown-item"
    | "not-batch"
    | "not-found"
    | "already-resolved"
    | "already-cancelled"
    | "already-expired"
    | "claim-expired"
    | "claimed-by-other"

Outcome of a resolveBatchItem() call.

  • completed — this was the LAST item: the row resolved and the waiting workflow was woken with the full collection, in the same statement.
  • accepted — interim fill: the item landed, the row stays pending.
  • duplicate-item — the key was declared but already filled.
  • unknown-item — the key was never declared in batch_keys.
  • not-batch — the row carries no batch declaration.
  • Remaining values match ResolveEscalationResult semantics.