{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$defs": {},
  "operationId": "changes.snapshot",
  "schemas": {
    "input": {
      "type": "object",
      "properties": {
        "includeState": {
          "type": "boolean",
          "description": "Include the base64 Yjs v1 state update, deleted content included."
        }
      },
      "additionalProperties": false
    },
    "output": {
      "type": "object",
      "properties": {
        "revision": {
          "type": "string"
        },
        "cursor": {
          "type": [
            "string",
            "null"
          ]
        },
        "lastChangeId": {
          "type": [
            "string",
            "null"
          ]
        },
        "stateVector": {
          "type": "string",
          "description": "Base64 Yjs state vector. Empty when the session has no room document."
        },
        "state": {
          "type": "string"
        },
        "at": {
          "type": "string"
        }
      },
      "additionalProperties": false,
      "required": [
        "revision",
        "cursor",
        "lastChangeId",
        "stateVector",
        "at"
      ]
    }
  }
}
