ClaimByMetadataResult: {
    candidatesExist: number;
    entry: EscalationEntry;
    isExtension: boolean;
    ok: true;
} | {
    candidatesExist: number;
    ok: false;
    reason: "not-found" | "conflict";
}

Result of claimByMetadata(). Includes candidatesExist and isExtension:

  • candidatesExist — total count of rows matching the filter regardless of claimability
  • isExtension — true when the same assignee re-claims a row they already hold (extends the expiry)