> ## Documentation Index
> Fetch the complete documentation index at: https://botmesh.afaya.com.co/llms.txt
> Use this file to discover all available pages before exploring further.

# KvMutation

> Type alias exported by @botmesh/core/spi.

```ts theme={null}
type KvMutation = 
  | {
  op: "insert" | "replace";
  table: DurableTable;
  id: string;
  value: string;
  version: string;
  index: DurableKvIndex;
}
  | {
  op: "remove";
  table: DurableTable;
  id: string;
};
```

Defined in: [durability/kv.ts:50](https://github.com/andresayac/botmesh/blob/main/packages/core/src/durability/kv.ts#L50)

One committed write, as handed to `MemoryKv.changed()`. Append-only file backends record
it in a log instead of rewriting the whole snapshot; the version it carries is what the
next reader must see (the store's opaque version, here the numeric counter as a string).


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.