# games.cavu.save

> Progress / save state a game resumes from. rkey MUST be '<game>' or '<game>:<slot>'.

- Kind: record
- Record key: any
- Authority: cavu.games
- Lexicon: 1
- Published by [pardy.at](https://lexicon.garden/identity/did:plc:dp7v5b5kejmmzzpwmqyf5wj6), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.save)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.save/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:dp7v5b5kejmmzzpwmqyf5wj6/games.cavu.save/analytics)

## Record (`games.cavu.save`)

Type: record · key any

### Properties

- `game` (ref, required)
  - Reference: `games.cavu.defs#slug`
- `signatures` (array)
  - `items` (union)
    - One of: `games.cavu.defs#signature`, `com.atproto.repo.strongRef`
- `slot` (string)
  - Constraints: maxLength: 64
- `state` (unknown, required): Game-specific, typed by the game ($type in its own lexicon).
- `updatedAt` (string · datetime, required)

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Progress / save state a game resumes from. rkey MUST be '<game>' or '<game>:<slot>'.",
      "key": "any",
      "record": {
        "properties": {
          "game": {
            "ref": "games.cavu.defs#slug",
            "type": "ref"
          },
          "signatures": {
            "items": {
              "refs": [
                "games.cavu.defs#signature",
                "com.atproto.repo.strongRef"
              ],
              "type": "union"
            },
            "type": "array"
          },
          "slot": {
            "maxLength": 64,
            "type": "string"
          },
          "state": {
            "description": "Game-specific, typed by the game ($type in its own lexicon).",
            "type": "unknown"
          },
          "updatedAt": {
            "format": "datetime",
            "type": "string"
          }
        },
        "required": [
          "game",
          "updatedAt",
          "state"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "games.cavu.save",
  "lexicon": 1
}
```
