# space.ziran.checkpoint

> Published by [lexicons.pds.ziran.space](https://lexicon.garden/identity/did:plc:axdexdy7p7yvuunn2mvuvy32)

✓ This is the authoritative definition for this NSID.

## Links

- [View on Lexicon Garden](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.checkpoint)
- [Documentation](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.checkpoint/docs)
- [Examples](https://lexicon.garden/lexicon/did:plc:axdexdy7p7yvuunn2mvuvy32/space.ziran.checkpoint/examples)

## Definitions

### `space.ziran.checkpoint`

**Type**: `record`

An atile-style published snapshot of a document, written by any member into their own repo (rkey = the doc's rkey; putRecord replaces the author's previous checkpoint). Carries the tile manifest with every resource's src replaced by an atproto blob ref, so an invitee can instantiate the document without replaying history, then apply ops past the frontier. Checkpoints are rare: go-live, a size threshold, or an explicit publish.

**Key**: `tid`

| Property | Type | Required | Description |
|----------|------|----------|-------------|
| `cid` | `string` (cid) | No | DRISL CID of the manifest, for end-to-end integrity verification. |
| `doc` | `string` (tid) | Yes | rkey of the space.ziran.doc record this checkpoint snapshots. |
| `tile` | `unknown` | Yes | The tile manifest, with each resource's src replaced by an atproto blob ref. |
| `frontier` | `unknown` | Yes | Map from member DID to the last repo rev whose ops this checkpoint incorporates. |
| `createdAt` | `string` (datetime) | Yes |  |

## Raw Schema

```json
{
  "id": "space.ziran.checkpoint",
  "defs": {
    "main": {
      "key": "tid",
      "type": "record",
      "record": {
        "type": "object",
        "required": [
          "doc",
          "tile",
          "frontier",
          "createdAt"
        ],
        "properties": {
          "cid": {
            "type": "string",
            "format": "cid",
            "description": "DRISL CID of the manifest, for end-to-end integrity verification."
          },
          "doc": {
            "type": "string",
            "format": "tid",
            "description": "rkey of the space.ziran.doc record this checkpoint snapshots."
          },
          "tile": {
            "type": "unknown",
            "description": "The tile manifest, with each resource's src replaced by an atproto blob ref."
          },
          "frontier": {
            "type": "unknown",
            "description": "Map from member DID to the last repo rev whose ops this checkpoint incorporates."
          },
          "createdAt": {
            "type": "string",
            "format": "datetime"
          }
        }
      },
      "description": "An atile-style published snapshot of a document, written by any member into their own repo (rkey = the doc's rkey; putRecord replaces the author's previous checkpoint). Carries the tile manifest with every resource's src replaced by an atproto blob ref, so an invitee can instantiate the document without replaying history, then apply ops past the frontier. Checkpoints are rare: go-live, a size threshold, or an explicit publish."
    }
  },
  "$type": "com.atproto.lexicon.schema",
  "lexicon": 1
}
```
