{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "WebSocket sessions and recovery evaluation inputs",
  "description": "Inspect application protocol decisions after a WebSocket session is established. Decision codes below describe this reference contract, not WebSocket close codes.",
  "type": "object",
  "required": [
    "subscription_allowed",
    "cursor_retained",
    "queued_events",
    "buffer_limit"
  ],
  "properties": {
    "subscription_allowed": {
      "type": "boolean",
      "description": "Current permission for the requested stream."
    },
    "cursor_retained": {
      "type": "boolean",
      "description": "Whether the replay position is still available."
    },
    "queued_events": {
      "type": "integer",
      "description": "Application events waiting to be applied.",
      "minimum": 0
    },
    "buffer_limit": {
      "type": "integer",
      "description": "Configured application queue budget.",
      "minimum": 1
    }
  },
  "additionalProperties": false
}