{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Bidirectional game session. Server->client messages are below; client->server frames are games.cavu.clientFrame.",
      "errors": [
        {
          "name": "UnknownGame"
        },
        {
          "name": "InvalidJoin"
        },
        {
          "name": "RoomInitFailed"
        },
        {
          "name": "ReduceFailed"
        },
        {
          "name": "InvalidFrame"
        },
        {
          "name": "UnknownFrame"
        }
      ],
      "message": {
        "schema": {
          "refs": [
            "#world"
          ],
          "type": "union"
        }
      },
      "parameters": {
        "properties": {},
        "type": "params"
      },
      "type": "subscription"
    },
    "world": {
      "description": "This viewer's projections of the entities that changed since its last #world frame. The first frame on a connection is a reset (every entity it can see). Never contains other players' secrets.",
      "properties": {
        "ack": {
          "description": "Highest intent seq from this viewer that the world reflects.",
          "minimum": 0,
          "type": "integer"
        },
        "del": {
          "description": "Entities gone, or no longer visible to this viewer.",
          "items": {
            "type": "string"
          },
          "type": "array"
        },
        "reset": {
          "description": "Replace the whole mirror with `set` (the connection's first frame).",
          "type": "boolean"
        },
        "set": {
          "description": "Map of entity id to its projection: { id, kind, parent?, children, ...fields } (typed by the game).",
          "type": "unknown"
        }
      },
      "required": [
        "ack",
        "set",
        "del"
      ],
      "type": "object"
    }
  },
  "id": "games.cavu.subscribeSession",
  "lexicon": 1
}
