{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://hyprune.com/schema/v0.2/ipc.schema.json",
  "title": "Hyprune 0.2 ipc",
  "oneOf": [
    {
      "$ref": "#/$defs/request"
    },
    {
      "$ref": "#/$defs/response"
    },
    {
      "$ref": "#/$defs/notification"
    },
    {
      "$ref": "#/$defs/error"
    }
  ],
  "$defs": {
    "state": {
      "type": "object",
      "properties": {
        "runtime": {
          "type": "object",
          "properties": {
            "active": {
              "type": "boolean"
            },
            "outputs": {
              "type": "array",
              "items": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "minItems": 0,
              "uniqueItems": true
            }
          },
          "required": [
            "active",
            "outputs"
          ],
          "additionalProperties": false
        },
        "world": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "object",
              "properties": {
                "id": {
                  "$ref": "common.schema.json#/$defs/id"
                },
                "spawnId": {
                  "$ref": "common.schema.json#/$defs/slug"
                }
              },
              "required": [
                "id",
                "spawnId"
              ],
              "additionalProperties": false
            }
          ]
        },
        "surfaces": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string",
                "minLength": 1,
                "maxLength": 128
              },
              "kind": {
                "enum": [
                  "window",
                  "workspace",
                  "layer",
                  "web",
                  "custom"
                ]
              },
              "title": {
                "type": "string",
                "minLength": 0,
                "maxLength": 512
              },
              "logicalSize": {
                "type": "array",
                "items": {
                  "type": "number",
                  "exclusiveMinimum": 0
                },
                "minItems": 2,
                "maxItems": 2
              },
              "focused": {
                "type": "boolean"
              }
            },
            "required": [
              "id",
              "kind",
              "title",
              "logicalSize",
              "focused"
            ],
            "additionalProperties": false
          },
          "minItems": 0
        },
        "movement": {
          "type": "object",
          "properties": {
            "modeId": {
              "$ref": "common.schema.json#/$defs/id"
            },
            "position": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 3,
              "maxItems": 3
            },
            "orientation": {
              "type": "array",
              "items": {
                "type": "number"
              },
              "minItems": 4,
              "maxItems": 4
            }
          },
          "required": [
            "modeId",
            "position",
            "orientation"
          ],
          "additionalProperties": false
        },
        "shell": {
          "type": "object",
          "properties": {
            "leases": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "id": {
                    "type": "string",
                    "minLength": 1,
                    "maxLength": 128
                  },
                  "outputs": {
                    "type": "array",
                    "items": {
                      "type": "string",
                      "minLength": 1,
                      "maxLength": 128
                    },
                    "minItems": 1,
                    "uniqueItems": true
                  },
                  "overlays": {
                    "type": "array",
                    "items": {
                      "type": "object",
                      "properties": {
                        "outputId": {
                          "type": "string",
                          "minLength": 1,
                          "maxLength": 128
                        },
                        "visible": {
                          "type": "boolean"
                        },
                        "exclusiveInput": {
                          "type": "boolean"
                        }
                      },
                      "required": [
                        "outputId",
                        "visible",
                        "exclusiveInput"
                      ],
                      "additionalProperties": false
                    },
                    "minItems": 0
                  }
                },
                "required": [
                  "id",
                  "outputs",
                  "overlays"
                ],
                "additionalProperties": false
              },
              "minItems": 0
            }
          },
          "required": [
            "leases"
          ],
          "additionalProperties": false
        },
        "location": {
          "$ref": "#/$defs/location"
        },
        "integrations": {
          "$ref": "#/$defs/integrations"
        }
      },
      "required": [
        "runtime",
        "world",
        "surfaces",
        "movement",
        "shell",
        "location",
        "integrations"
      ],
      "additionalProperties": false
    },
    "snapshot": {
      "type": "object",
      "properties": {
        "sessionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        },
        "state": {
          "$ref": "#/$defs/state"
        }
      },
      "required": [
        "sessionId",
        "revision",
        "state"
      ],
      "additionalProperties": false
    },
    "session.hello.params": {
      "type": "object",
      "properties": {
        "protocols": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 256
          },
          "minItems": 1,
          "uniqueItems": true
        },
        "client": {
          "type": "object",
          "properties": {
            "id": {
              "$ref": "common.schema.json#/$defs/id"
            },
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            }
          },
          "required": [
            "id",
            "name"
          ],
          "additionalProperties": false
        },
        "capabilities": {
          "type": "array",
          "items": {
            "$ref": "common.schema.json#/$defs/capability"
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "token": {
          "type": "string",
          "minLength": 64,
          "maxLength": 64,
          "pattern": "^[a-f0-9]{64}$"
        }
      },
      "required": [
        "protocols",
        "client",
        "capabilities"
      ],
      "additionalProperties": false
    },
    "session.hello.result": {
      "type": "object",
      "properties": {
        "protocol": {
          "const": "0.2"
        },
        "sessionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "capabilities": {
          "type": "array",
          "items": {
            "$ref": "common.schema.json#/$defs/capability"
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "methods": {
          "type": "array",
          "items": {
            "enum": [
              "session.hello",
              "session.ping",
              "state.subscribe",
              "state.snapshot",
              "state.unsubscribe",
              "world.load",
              "surface.focus",
              "movement.set",
              "shell.claim",
              "shell.release",
              "shell.overlay",
              "runtime.exit",
              "camera.get",
              "camera.set",
              "waypoint.set",
              "waypoint.clear",
              "route.set",
              "route.clear",
              "travel.start",
              "travel.cancel",
              "autodrive.start",
              "autodrive.stop",
              "ui.open",
              "ui.close",
              "data.publish",
              "data.remove"
            ]
          },
          "minItems": 0,
          "uniqueItems": true
        },
        "events": {
          "type": "array",
          "items": {
            "enum": [
              "state.delta",
              "runtime.notice",
              "session.revoked",
              "location.transition",
              "ui.opened",
              "ui.closed",
              "data.updated"
            ]
          },
          "minItems": 0,
          "uniqueItems": true
        }
      },
      "required": [
        "protocol",
        "sessionId",
        "capabilities",
        "methods",
        "events"
      ],
      "additionalProperties": false
    },
    "session.hello.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "session.hello"
        },
        "params": {
          "$ref": "#/$defs/session.hello.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "session.hello.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/session.hello.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "session.ping.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "session.ping.result": {
      "type": "object",
      "properties": {
        "monotonicMs": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "monotonicMs"
      ],
      "additionalProperties": false
    },
    "session.ping.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "session.ping"
        },
        "params": {
          "$ref": "#/$defs/session.ping.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "session.ping.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/session.ping.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "state.subscribe.params": {
      "type": "object",
      "properties": {
        "topics": {
          "const": [
            "state"
          ]
        }
      },
      "required": [
        "topics"
      ],
      "additionalProperties": false
    },
    "state.subscribe.result": {
      "type": "object",
      "properties": {
        "subscriptionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "snapshot": {
          "$ref": "#/$defs/snapshot"
        }
      },
      "required": [
        "subscriptionId",
        "snapshot"
      ],
      "additionalProperties": false
    },
    "state.subscribe.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "state.subscribe"
        },
        "params": {
          "$ref": "#/$defs/state.subscribe.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "state.subscribe.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/state.subscribe.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "state.snapshot.params": {
      "type": "object",
      "properties": {
        "subscriptionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "required": [
        "subscriptionId"
      ],
      "additionalProperties": false
    },
    "state.snapshot.result": {
      "type": "object",
      "properties": {
        "snapshot": {
          "$ref": "#/$defs/snapshot"
        }
      },
      "required": [
        "snapshot"
      ],
      "additionalProperties": false
    },
    "state.snapshot.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "state.snapshot"
        },
        "params": {
          "$ref": "#/$defs/state.snapshot.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "state.snapshot.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/state.snapshot.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "state.unsubscribe.params": {
      "type": "object",
      "properties": {
        "subscriptionId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "required": [
        "subscriptionId"
      ],
      "additionalProperties": false
    },
    "state.unsubscribe.result": {
      "type": "object",
      "properties": {
        "ok": {
          "const": true
        }
      },
      "required": [
        "ok"
      ],
      "additionalProperties": false
    },
    "state.unsubscribe.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "state.unsubscribe"
        },
        "params": {
          "$ref": "#/$defs/state.unsubscribe.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "state.unsubscribe.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/state.unsubscribe.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "world.load.params": {
      "type": "object",
      "properties": {
        "worldId": {
          "$ref": "common.schema.json#/$defs/id"
        },
        "spawnId": {
          "$ref": "common.schema.json#/$defs/slug"
        }
      },
      "required": [
        "worldId"
      ],
      "additionalProperties": false
    },
    "world.load.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "world.load.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "world.load"
        },
        "params": {
          "$ref": "#/$defs/world.load.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "world.load.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/world.load.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "surface.focus.params": {
      "type": "object",
      "properties": {
        "surfaceId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "intent": {
          "enum": [
            "pointer",
            "keyboard"
          ]
        }
      },
      "required": [
        "surfaceId",
        "intent"
      ],
      "additionalProperties": false
    },
    "surface.focus.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "surface.focus.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "surface.focus"
        },
        "params": {
          "$ref": "#/$defs/surface.focus.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "surface.focus.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/surface.focus.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "movement.set.params": {
      "type": "object",
      "properties": {
        "modeId": {
          "$ref": "common.schema.json#/$defs/id"
        }
      },
      "required": [
        "modeId"
      ],
      "additionalProperties": false
    },
    "movement.set.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "movement.set.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "movement.set"
        },
        "params": {
          "$ref": "#/$defs/movement.set.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "movement.set.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/movement.set.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "shell.claim.params": {
      "type": "object",
      "properties": {
        "outputs": {
          "type": "array",
          "items": {
            "type": "string",
            "minLength": 1,
            "maxLength": 128
          },
          "minItems": 1,
          "uniqueItems": true
        }
      },
      "required": [
        "outputs"
      ],
      "additionalProperties": false
    },
    "shell.claim.result": {
      "type": "object",
      "properties": {
        "leaseId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "leaseId",
        "revision"
      ],
      "additionalProperties": false
    },
    "shell.claim.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "shell.claim"
        },
        "params": {
          "$ref": "#/$defs/shell.claim.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "shell.claim.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/shell.claim.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "shell.release.params": {
      "type": "object",
      "properties": {
        "leaseId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "required": [
        "leaseId"
      ],
      "additionalProperties": false
    },
    "shell.release.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "shell.release.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "shell.release"
        },
        "params": {
          "$ref": "#/$defs/shell.release.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "shell.release.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/shell.release.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "shell.overlay.params": {
      "type": "object",
      "properties": {
        "leaseId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "outputId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "visible": {
          "type": "boolean"
        },
        "exclusiveInput": {
          "type": "boolean"
        }
      },
      "required": [
        "leaseId",
        "outputId",
        "visible",
        "exclusiveInput"
      ],
      "additionalProperties": false
    },
    "shell.overlay.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "shell.overlay.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "shell.overlay"
        },
        "params": {
          "$ref": "#/$defs/shell.overlay.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "shell.overlay.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/shell.overlay.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "runtime.exit.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "runtime.exit.result": {
      "type": "object",
      "properties": {
        "revision": {
          "$ref": "common.schema.json#/$defs/revision"
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "runtime.exit.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "runtime.exit"
        },
        "params": {
          "$ref": "#/$defs/runtime.exit.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "runtime.exit.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/runtime.exit.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "state.delta.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "state.delta"
        },
        "params": {
          "type": "object",
          "properties": {
            "subscriptionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "baseRevision": {
              "$ref": "common.schema.json#/$defs/revision"
            },
            "revision": {
              "$ref": "common.schema.json#/$defs/revision"
            },
            "changes": {
              "type": "object",
              "properties": {
                "runtime": {
                  "type": "object",
                  "properties": {
                    "active": {
                      "type": "boolean"
                    },
                    "outputs": {
                      "type": "array",
                      "items": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "minItems": 0,
                      "uniqueItems": true
                    }
                  },
                  "required": [
                    "active",
                    "outputs"
                  ],
                  "additionalProperties": false
                },
                "world": {
                  "anyOf": [
                    {
                      "type": "null"
                    },
                    {
                      "type": "object",
                      "properties": {
                        "id": {
                          "$ref": "common.schema.json#/$defs/id"
                        },
                        "spawnId": {
                          "$ref": "common.schema.json#/$defs/slug"
                        }
                      },
                      "required": [
                        "id",
                        "spawnId"
                      ],
                      "additionalProperties": false
                    }
                  ]
                },
                "surfaces": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "properties": {
                      "id": {
                        "type": "string",
                        "minLength": 1,
                        "maxLength": 128
                      },
                      "kind": {
                        "enum": [
                          "window",
                          "workspace",
                          "layer",
                          "web",
                          "custom"
                        ]
                      },
                      "title": {
                        "type": "string",
                        "minLength": 0,
                        "maxLength": 512
                      },
                      "logicalSize": {
                        "type": "array",
                        "items": {
                          "type": "number",
                          "exclusiveMinimum": 0
                        },
                        "minItems": 2,
                        "maxItems": 2
                      },
                      "focused": {
                        "type": "boolean"
                      }
                    },
                    "required": [
                      "id",
                      "kind",
                      "title",
                      "logicalSize",
                      "focused"
                    ],
                    "additionalProperties": false
                  },
                  "minItems": 0
                },
                "movement": {
                  "type": "object",
                  "properties": {
                    "modeId": {
                      "$ref": "common.schema.json#/$defs/id"
                    },
                    "position": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 3,
                      "maxItems": 3
                    },
                    "orientation": {
                      "type": "array",
                      "items": {
                        "type": "number"
                      },
                      "minItems": 4,
                      "maxItems": 4
                    }
                  },
                  "required": [
                    "modeId",
                    "position",
                    "orientation"
                  ],
                  "additionalProperties": false
                },
                "shell": {
                  "type": "object",
                  "properties": {
                    "leases": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string",
                            "minLength": 1,
                            "maxLength": 128
                          },
                          "outputs": {
                            "type": "array",
                            "items": {
                              "type": "string",
                              "minLength": 1,
                              "maxLength": 128
                            },
                            "minItems": 1,
                            "uniqueItems": true
                          },
                          "overlays": {
                            "type": "array",
                            "items": {
                              "type": "object",
                              "properties": {
                                "outputId": {
                                  "type": "string",
                                  "minLength": 1,
                                  "maxLength": 128
                                },
                                "visible": {
                                  "type": "boolean"
                                },
                                "exclusiveInput": {
                                  "type": "boolean"
                                }
                              },
                              "required": [
                                "outputId",
                                "visible",
                                "exclusiveInput"
                              ],
                              "additionalProperties": false
                            },
                            "minItems": 0
                          }
                        },
                        "required": [
                          "id",
                          "outputs",
                          "overlays"
                        ],
                        "additionalProperties": false
                      },
                      "minItems": 0
                    }
                  },
                  "required": [
                    "leases"
                  ],
                  "additionalProperties": false
                },
                "location": {
                  "$ref": "#/$defs/location"
                },
                "integrations": {
                  "$ref": "#/$defs/integrations"
                }
              },
              "required": [],
              "additionalProperties": false,
              "minProperties": 1
            }
          },
          "required": [
            "subscriptionId",
            "sessionId",
            "baseRevision",
            "revision",
            "changes"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "runtime.notice.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "runtime.notice"
        },
        "params": {
          "type": "object",
          "properties": {
            "level": {
              "enum": [
                "info",
                "warning",
                "error"
              ]
            },
            "code": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "message": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          "required": [
            "level",
            "code",
            "message"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "session.revoked.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "session.revoked"
        },
        "params": {
          "type": "object",
          "properties": {
            "reason": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            }
          },
          "required": [
            "reason"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "error": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "anyOf": [
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            {
              "type": "null"
            }
          ]
        },
        "error": {
          "type": "object",
          "properties": {
            "code": {
              "enum": [
                -32700,
                -32600,
                -32601,
                -32602,
                -32603,
                -32008,
                -32007,
                -32006,
                -32005,
                -32004,
                -32003,
                -32002,
                -32001
              ]
            },
            "message": {
              "type": "string",
              "minLength": 1,
              "maxLength": 4096
            },
            "data": {
              "type": "object",
              "properties": {
                "retryable": {
                  "type": "boolean"
                }
              },
              "required": [
                "retryable"
              ],
              "additionalProperties": false
            }
          },
          "required": [
            "code",
            "message"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "error"
      ],
      "additionalProperties": false
    },
    "request": {
      "oneOf": [
        {
          "$ref": "#/$defs/session.hello.request"
        },
        {
          "$ref": "#/$defs/session.ping.request"
        },
        {
          "$ref": "#/$defs/state.subscribe.request"
        },
        {
          "$ref": "#/$defs/state.snapshot.request"
        },
        {
          "$ref": "#/$defs/state.unsubscribe.request"
        },
        {
          "$ref": "#/$defs/world.load.request"
        },
        {
          "$ref": "#/$defs/surface.focus.request"
        },
        {
          "$ref": "#/$defs/movement.set.request"
        },
        {
          "$ref": "#/$defs/shell.claim.request"
        },
        {
          "$ref": "#/$defs/shell.release.request"
        },
        {
          "$ref": "#/$defs/shell.overlay.request"
        },
        {
          "$ref": "#/$defs/runtime.exit.request"
        },
        {
          "$ref": "#/$defs/camera.get.request"
        },
        {
          "$ref": "#/$defs/camera.set.request"
        },
        {
          "$ref": "#/$defs/waypoint.set.request"
        },
        {
          "$ref": "#/$defs/waypoint.clear.request"
        },
        {
          "$ref": "#/$defs/route.set.request"
        },
        {
          "$ref": "#/$defs/route.clear.request"
        },
        {
          "$ref": "#/$defs/travel.start.request"
        },
        {
          "$ref": "#/$defs/travel.cancel.request"
        },
        {
          "$ref": "#/$defs/autodrive.start.request"
        },
        {
          "$ref": "#/$defs/autodrive.stop.request"
        },
        {
          "$ref": "#/$defs/ui.open.request"
        },
        {
          "$ref": "#/$defs/ui.close.request"
        },
        {
          "$ref": "#/$defs/data.publish.request"
        },
        {
          "$ref": "#/$defs/data.remove.request"
        }
      ]
    },
    "response": {
      "anyOf": [
        {
          "$ref": "#/$defs/session.hello.response"
        },
        {
          "$ref": "#/$defs/session.ping.response"
        },
        {
          "$ref": "#/$defs/state.subscribe.response"
        },
        {
          "$ref": "#/$defs/state.snapshot.response"
        },
        {
          "$ref": "#/$defs/state.unsubscribe.response"
        },
        {
          "$ref": "#/$defs/world.load.response"
        },
        {
          "$ref": "#/$defs/surface.focus.response"
        },
        {
          "$ref": "#/$defs/movement.set.response"
        },
        {
          "$ref": "#/$defs/shell.release.response"
        },
        {
          "$ref": "#/$defs/shell.overlay.response"
        },
        {
          "$ref": "#/$defs/runtime.exit.response"
        },
        {
          "$ref": "#/$defs/shell.claim.response"
        },
        {
          "$ref": "#/$defs/camera.get.response"
        },
        {
          "$ref": "#/$defs/camera.set.response"
        },
        {
          "$ref": "#/$defs/waypoint.set.response"
        },
        {
          "$ref": "#/$defs/waypoint.clear.response"
        },
        {
          "$ref": "#/$defs/route.set.response"
        },
        {
          "$ref": "#/$defs/route.clear.response"
        },
        {
          "$ref": "#/$defs/travel.start.response"
        },
        {
          "$ref": "#/$defs/travel.cancel.response"
        },
        {
          "$ref": "#/$defs/autodrive.start.response"
        },
        {
          "$ref": "#/$defs/autodrive.stop.response"
        },
        {
          "$ref": "#/$defs/ui.open.response"
        },
        {
          "$ref": "#/$defs/ui.close.response"
        },
        {
          "$ref": "#/$defs/data.publish.response"
        },
        {
          "$ref": "#/$defs/data.remove.response"
        }
      ]
    },
    "notification": {
      "oneOf": [
        {
          "$ref": "#/$defs/state.delta.notification"
        },
        {
          "$ref": "#/$defs/runtime.notice.notification"
        },
        {
          "$ref": "#/$defs/session.revoked.notification"
        },
        {
          "$ref": "#/$defs/location.transition.notification"
        },
        {
          "$ref": "#/$defs/ui.opened.notification"
        },
        {
          "$ref": "#/$defs/ui.closed.notification"
        },
        {
          "$ref": "#/$defs/data.updated.notification"
        }
      ]
    },
    "target": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "position": {
              "type": "array",
              "items": {
                "type": "number",
                "minimum": -100000,
                "maximum": 100000
              },
              "minItems": 3,
              "maxItems": 3
            }
          },
          "required": [
            "position"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "zoneId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          },
          "required": [
            "zoneId"
          ],
          "additionalProperties": false
        }
      ]
    },
    "transition": {
      "type": "object",
      "properties": {
        "phase": {
          "enum": [
            "departing",
            "travelling",
            "arrived",
            "cancelled",
            "loading",
            "failed"
          ]
        },
        "progress": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "number",
              "minimum": 0,
              "maximum": 1
            }
          ]
        },
        "to": {
          "$ref": "#/$defs/destination"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "outputId": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            }
          ]
        },
        "monotonicMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "phase",
        "progress",
        "to",
        "id",
        "outputId",
        "monotonicMs"
      ],
      "additionalProperties": false
    },
    "waypoint": {
      "type": "object",
      "properties": {
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "label": {
          "type": "string",
          "minLength": 1,
          "maxLength": 256
        },
        "target": {
          "$ref": "#/$defs/target"
        },
        "position": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -100000,
            "maximum": 100000
          },
          "minItems": 3,
          "maxItems": 3
        }
      },
      "required": [
        "id",
        "label",
        "target",
        "position"
      ],
      "additionalProperties": false
    },
    "routePoint": {
      "type": "object",
      "properties": {
        "target": {
          "$ref": "#/$defs/target"
        },
        "position": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -100000,
            "maximum": 100000
          },
          "minItems": 3,
          "maxItems": 3
        }
      },
      "required": [
        "target",
        "position"
      ],
      "additionalProperties": false
    },
    "source": {
      "type": "object",
      "properties": {
        "sourceId": {
          "$ref": "common.schema.json#/$defs/id"
        },
        "values": {
          "type": "object",
          "maxProperties": 32,
          "propertyNames": {
            "maxLength": 128
          },
          "additionalProperties": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "string",
                "maxLength": 256
              }
            ]
          }
        },
        "sequence": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "monotonicMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "ttlMs": {
          "type": "integer",
          "minimum": 100,
          "maximum": 60000
        }
      },
      "required": [
        "sourceId",
        "values",
        "sequence",
        "monotonicMs",
        "ttlMs"
      ],
      "additionalProperties": false
    },
    "location": {
      "type": "object",
      "properties": {
        "zones": {
          "$ref": "world.schema.json#/properties/zones"
        },
        "waypoint": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/waypoint"
            }
          ]
        },
        "route": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/routePoint"
          },
          "minItems": 0,
          "maxItems": 64
        },
        "autodrive": {
          "type": "boolean"
        },
        "transition": {
          "anyOf": [
            {
              "type": "null"
            },
            {
              "$ref": "#/$defs/transition"
            }
          ]
        }
      },
      "required": [
        "zones",
        "waypoint",
        "route",
        "autodrive",
        "transition"
      ],
      "additionalProperties": false
    },
    "integrations": {
      "type": "object",
      "properties": {
        "sources": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/source"
          },
          "minItems": 0,
          "maxItems": 32
        }
      },
      "required": [
        "sources"
      ],
      "additionalProperties": false
    },
    "camera.get.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "camera.get.result": {
      "type": "object",
      "properties": {
        "position": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -100000,
            "maximum": 100000
          },
          "minItems": 3,
          "maxItems": 3
        },
        "orientation": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 4,
          "maxItems": 4
        }
      },
      "required": [
        "position",
        "orientation"
      ],
      "additionalProperties": false
    },
    "camera.get.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "camera.get"
        },
        "params": {
          "$ref": "#/$defs/camera.get.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "camera.get.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/camera.get.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "camera.set.params": {
      "type": "object",
      "properties": {
        "position": {
          "type": "array",
          "items": {
            "type": "number",
            "minimum": -100000,
            "maximum": 100000
          },
          "minItems": 3,
          "maxItems": 3
        },
        "orientation": {
          "type": "array",
          "items": {
            "type": "number"
          },
          "minItems": 4,
          "maxItems": 4
        }
      },
      "required": [
        "position",
        "orientation"
      ],
      "additionalProperties": false
    },
    "camera.set.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "camera.set.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "camera.set"
        },
        "params": {
          "$ref": "#/$defs/camera.set.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "camera.set.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/camera.set.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "waypoint.set.params": {
      "oneOf": [
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "label": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "target": {
              "$ref": "#/$defs/target"
            }
          },
          "required": [
            "id",
            "label",
            "target"
          ],
          "additionalProperties": false
        },
        {
          "type": "object",
          "properties": {
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "label": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "position": {
              "type": "array",
              "items": {
                "type": "number",
                "minimum": -100000,
                "maximum": 100000
              },
              "minItems": 3,
              "maxItems": 3
            }
          },
          "required": [
            "id",
            "label",
            "position"
          ],
          "additionalProperties": false
        }
      ]
    },
    "waypoint.set.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "waypoint.set.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "waypoint.set"
        },
        "params": {
          "$ref": "#/$defs/waypoint.set.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "waypoint.set.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/waypoint.set.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "waypoint.clear.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "waypoint.clear.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "waypoint.clear.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "waypoint.clear"
        },
        "params": {
          "$ref": "#/$defs/waypoint.clear.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "waypoint.clear.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/waypoint.clear.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "route.set.params": {
      "type": "object",
      "properties": {
        "points": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/target"
          },
          "minItems": 1,
          "maxItems": 64
        }
      },
      "required": [
        "points"
      ],
      "additionalProperties": false
    },
    "route.set.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "route.set.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "route.set"
        },
        "params": {
          "$ref": "#/$defs/route.set.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "route.set.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/route.set.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "route.clear.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "route.clear.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "route.clear.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "route.clear"
        },
        "params": {
          "$ref": "#/$defs/route.clear.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "route.clear.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/route.clear.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "travel.start.params": {
      "type": "object",
      "properties": {
        "to": {
          "$ref": "#/$defs/target"
        },
        "durationMs": {
          "type": "integer",
          "minimum": 0,
          "maximum": 10000
        }
      },
      "required": [
        "to"
      ],
      "additionalProperties": false
    },
    "travel.start.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "travel.start.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "travel.start"
        },
        "params": {
          "$ref": "#/$defs/travel.start.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "travel.start.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/travel.start.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "travel.cancel.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "travel.cancel.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "travel.cancel.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "travel.cancel"
        },
        "params": {
          "$ref": "#/$defs/travel.cancel.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "travel.cancel.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/travel.cancel.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "autodrive.start.params": {
      "type": "object",
      "properties": {
        "speed": {
          "type": "number",
          "minimum": 0.1,
          "maximum": 10
        }
      },
      "required": [],
      "additionalProperties": false
    },
    "autodrive.start.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "autodrive.start.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "autodrive.start"
        },
        "params": {
          "$ref": "#/$defs/autodrive.start.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "autodrive.start.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/autodrive.start.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "autodrive.stop.params": {
      "type": "object",
      "properties": {},
      "required": [],
      "additionalProperties": false
    },
    "autodrive.stop.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "autodrive.stop.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "autodrive.stop"
        },
        "params": {
          "$ref": "#/$defs/autodrive.stop.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "autodrive.stop.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/autodrive.stop.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "ui.open.params": {
      "type": "object",
      "properties": {
        "leaseId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "outputId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "panel": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "required": [
        "leaseId",
        "outputId",
        "panel"
      ],
      "additionalProperties": false
    },
    "ui.open.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "ui.open.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "ui.open"
        },
        "params": {
          "$ref": "#/$defs/ui.open.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "ui.open.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/ui.open.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "ui.close.params": {
      "type": "object",
      "properties": {
        "leaseId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "outputId": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        }
      },
      "required": [
        "leaseId",
        "outputId"
      ],
      "additionalProperties": false
    },
    "ui.close.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "ui.close.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "ui.close"
        },
        "params": {
          "$ref": "#/$defs/ui.close.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "ui.close.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/ui.close.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "data.publish.params": {
      "type": "object",
      "properties": {
        "sourceId": {
          "$ref": "common.schema.json#/$defs/id"
        },
        "values": {
          "type": "object",
          "maxProperties": 32,
          "propertyNames": {
            "maxLength": 128
          },
          "additionalProperties": {
            "anyOf": [
              {
                "type": "number"
              },
              {
                "type": "boolean"
              },
              {
                "type": "string",
                "maxLength": 256
              }
            ]
          }
        },
        "sequence": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        },
        "ttlMs": {
          "type": "integer",
          "minimum": 100,
          "maximum": 60000
        }
      },
      "required": [
        "sourceId",
        "values",
        "sequence"
      ],
      "additionalProperties": false
    },
    "data.publish.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "data.publish.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "data.publish"
        },
        "params": {
          "$ref": "#/$defs/data.publish.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "data.publish.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/data.publish.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "data.remove.params": {
      "type": "object",
      "properties": {
        "sourceId": {
          "$ref": "common.schema.json#/$defs/id"
        }
      },
      "required": [
        "sourceId"
      ],
      "additionalProperties": false
    },
    "data.remove.result": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "integer",
          "minimum": 0,
          "maximum": 9007199254740991
        }
      },
      "required": [
        "revision"
      ],
      "additionalProperties": false
    },
    "data.remove.request": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "method": {
          "const": "data.remove"
        },
        "params": {
          "$ref": "#/$defs/data.remove.params"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "data.remove.response": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "id": {
          "type": "string",
          "minLength": 1,
          "maxLength": 128
        },
        "result": {
          "$ref": "#/$defs/data.remove.result"
        }
      },
      "required": [
        "jsonrpc",
        "id",
        "result"
      ],
      "additionalProperties": false
    },
    "location.transition.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "location.transition"
        },
        "params": {
          "type": "object",
          "properties": {
            "phase": {
              "enum": [
                "departing",
                "travelling",
                "arrived",
                "cancelled",
                "loading",
                "failed"
              ]
            },
            "progress": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "number",
                  "minimum": 0,
                  "maximum": 1
                }
              ]
            },
            "to": {
              "$ref": "#/$defs/destination"
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "id": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "outputId": {
              "anyOf": [
                {
                  "type": "null"
                },
                {
                  "type": "string",
                  "minLength": 1,
                  "maxLength": 128
                }
              ]
            },
            "monotonicMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "phase",
            "progress",
            "to",
            "sessionId",
            "revision",
            "id",
            "outputId",
            "monotonicMs"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "ui.opened.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "ui.opened"
        },
        "params": {
          "type": "object",
          "properties": {
            "leaseId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "outputId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "panel": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "leaseId",
            "outputId",
            "panel",
            "sessionId",
            "revision"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "ui.closed.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "ui.closed"
        },
        "params": {
          "type": "object",
          "properties": {
            "leaseId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "outputId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "leaseId",
            "outputId",
            "sessionId",
            "revision"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "data.updated.notification": {
      "type": "object",
      "properties": {
        "jsonrpc": {
          "const": "2.0"
        },
        "method": {
          "const": "data.updated"
        },
        "params": {
          "type": "object",
          "properties": {
            "sourceId": {
              "$ref": "common.schema.json#/$defs/id"
            },
            "values": {
              "type": "object",
              "maxProperties": 32,
              "propertyNames": {
                "maxLength": 128
              },
              "additionalProperties": {
                "anyOf": [
                  {
                    "type": "number"
                  },
                  {
                    "type": "boolean"
                  },
                  {
                    "type": "string",
                    "maxLength": 256
                  }
                ]
              }
            },
            "sequence": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "monotonicMs": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            },
            "ttlMs": {
              "type": "integer",
              "minimum": 100,
              "maximum": 60000
            },
            "sessionId": {
              "type": "string",
              "minLength": 1,
              "maxLength": 128
            },
            "revision": {
              "type": "integer",
              "minimum": 0,
              "maximum": 9007199254740991
            }
          },
          "required": [
            "sourceId",
            "values",
            "sequence",
            "monotonicMs",
            "ttlMs",
            "sessionId",
            "revision"
          ],
          "additionalProperties": false
        }
      },
      "required": [
        "jsonrpc",
        "method",
        "params"
      ],
      "additionalProperties": false
    },
    "destination": {
      "oneOf": [
        {
          "$ref": "#/$defs/target"
        },
        {
          "type": "object",
          "properties": {
            "worldId": {
              "$ref": "common.schema.json#/$defs/id"
            },
            "spawnId": {
              "$ref": "common.schema.json#/$defs/slug"
            }
          },
          "required": [
            "worldId"
          ],
          "additionalProperties": false
        }
      ]
    }
  }
}
