{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "An invitation to play a game, with everything needed to execute it",
      "key": "tid",
      "record": {
        "properties": {
          "game": {
            "ref": "games.atplay.game.release",
            "type": "ref"
          },
          "otherPlayers": {
            "description": "Array of DIDs for other players in the game",
            "items": {
              "format": "did",
              "type": "string"
            },
            "minLength": 1,
            "type": "array"
          },
          "parameters": {
            "description": "Any parameters of play used by the game logic",
            "properties": {},
            "type": "object"
          },
          "state": {
            "ref": "games.atplay.game.state",
            "type": "ref"
          }
        },
        "required": [
          "game",
          "otherPlayers",
          "state"
        ],
        "type": "object"
      },
      "type": "record"
    }
  },
  "id": "games.atplay.game.invitation",
  "lexicon": 1
}
