# ai.dennery.game.session

> One game session (challenge or live game).

- 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.session)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.session/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:com7beprxcim4u4ezzroudpc/ai.dennery.game.session/analytics)

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

Type: record · key tid

### Properties

- `art` (blob): Optional board artwork.
- `createdAt` (string · datetime, required)
- `dictionary` (string): WordGrid word-list id, e.g. wordgrid-en-v1.
  - Constraints: maxLength: 64
- `game` (string, required)
  - Constraints: knownValues: chess | wordGrid | jigsaw
- `mode` (string): versus or cooperative.
  - Constraints: knownValues: versus | cooperative
- `player` (array, required): Player DIDs, 1 for open/solo games, 2 when full.
  - Constraints: minLength: 1, maxLength: 2
  - `items` (string · did)
- `status` (string, required)
  - Constraints: knownValues: abandoned | active | finished | open
- `target` (integer): Co-op shared target score.
  - Constraints: minimum: 1
- `title` (string)
  - Constraints: maxLength: 140

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One game session (challenge or live game).",
      "key": "tid",
      "record": {
        "properties": {
          "art": {
            "description": "Optional board artwork.",
            "type": "blob"
          },
          "createdAt": {
            "format": "datetime",
            "type": "string"
          },
          "dictionary": {
            "description": "WordGrid word-list id, e.g. wordgrid-en-v1.",
            "maxLength": 64,
            "type": "string"
          },
          "game": {
            "knownValues": [
              "chess",
              "wordGrid",
              "jigsaw"
            ],
            "type": "string"
          },
          "mode": {
            "description": "versus or cooperative.",
            "knownValues": [
              "versus",
              "cooperative"
            ],
            "type": "string"
          },
          "player": {
            "description": "Player DIDs, 1 for open/solo games, 2 when full.",
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 2,
            "minLength": 1,
            "type": "array"
          },
          "status": {
            "knownValues": [
              "abandoned",
              "active",
              "finished",
              "open"
            ],
            "type": "string"
          },
          "target": {
            "description": "Co-op shared target score.",
            "minimum": 1,
            "type": "integer"
          },
          "title": {
            "maxLength": 140,
            "type": "string"
          }
        },
        "required": [
          "createdAt",
          "game",
          "status",
          "player"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "ai.dennery.game.session",
  "lexicon": 1
}
```
