Skip to content

SyncTransactionResult

Defined in: packages/client/src/index.ts:1238

The result of a SyncClient.transaction. A pessimistic block carries the authoritative server acks (each acked / conflicted / rejected); an optimistic block enqueues atomically and flushes in the background, so its acks are empty.

acks: object[]

Defined in: packages/client/src/index.ts:1239

optional conflictReason?: string

entityKey: Record<string, string> = entityKeySchema

optional httpStatus?: number

mutationId: string

mutationSeq: number

optional rejectionReason?: string

The typed reason a rejected ack carries (ADR-0022): the authoritative endpoint’s account of why the write-unit was declined (a capacity/quota/uniqueness rule — e.g. the DB constraint or trigger message). Surfaced to the app when the optimistic overlay is auto-discarded.

optional serverUpdatedAtUs?: string

status: "acked" | "rejected" | "failed" | "conflicted" = mutationAckStatusSchema

tableName: string