{
  "$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
}
