# ai.dennery.game.state

> Periodic authoritative snapshot of a session.

- Kind: record
- Record key: tid
- Authority: game.dennery.ai
- Lexicon: 1
- Published by [game.dennery.ai](https://lexicon.garden/identity/did:plc:com7beprxcim4u4ezzroudpc), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.state)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.state/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.state/analytics)

## Record (`ai.dennery.game.state`)

Type: record · key tid

### Properties

- `art` (blob): Optional rendered board image.
- `createdAt` (string · datetime, required)
- `seq` (integer, required)
  - Constraints: minimum: 0
- `session` (ref, required)
  - Reference: `com.atproto.repo.strongRef`
- `snapshot` (union, required)
  - One of: `ai.dennery.game.chess#state`, `ai.dennery.game.wordGrid#state`, `ai.dennery.game.jigsaw#state`

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Periodic authoritative snapshot of a session.",
      "key": "tid",
      "record": {
        "properties": {
          "art": {
            "description": "Optional rendered board image.",
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "seq": {
            "minimum": 0,
            "type": "integer"
          },
          "session": {
            "ref": "com.atproto.repo.strongRef",
            "type": "ref"
          },
          "snapshot": {
            "refs": [
              "ai.dennery.game.chess#state",
              "ai.dennery.game.wordGrid#state",
              "ai.dennery.game.jigsaw#state"
            ],
            "type": "union"
          }
        },
        "required": [
          "createdAt",
          "session",
          "seq",
          "snapshot"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.dennery.game.state",
  "lexicon": 1
}
```
