Skip to content

mutationRejectionSchema

const mutationRejectionSchema: ZodObject<{ mutationId: ZodUUID; mutationSeq: ZodNumber; reason: ZodString; tableName: ZodString; }, $strict>

Defined in: packages/contracts/src/mutation.ts:115

Per-mutation attribution for a structural batch rejection. The batch write is atomic — one structurally-invalid mutation rejects the whole POST with a single non-2xx — so the server names the offending mutation(s) here. That lets the client quarantine exactly those and keep the innocent siblings retryable, instead of dragging the whole offline queue to quarantine at the shared attempt cap.