Skip to content

Interface: MutationEnvelope

Defined in: core/src/protocol/sync.ts:30

A single client mutation the client wants the server to canonicalize. args is opaque JSON — the mutator function on the server destructures it, so its shape is enforced by the mutator’s own input type (typically a Zod schema in the mutator definition).

readonly id: number

Defined in: core/src/protocol/sync.ts:31


readonly name: string

Defined in: core/src/protocol/sync.ts:32


readonly args: unknown

Defined in: core/src/protocol/sync.ts:33


readonly timestamp: number

Defined in: core/src/protocol/sync.ts:34