{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A window centred on a sequence, for opening a permalink to an old message. Paging backwards from the tail to reach something linked from months ago would be many round trips, which is the entire reason this is a separate method rather than a parameter.",
      "errors": [
        {
          "name": "ChannelNotFound"
        },
        {
          "name": "ChannelForbidden"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "chat.yakka.defs#timelinePage",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "channel": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "seq": {
            "description": "The sequence to centre on. It need not still exist — a deleted message keeps its sequence (ADR 0010), so a permalink to one still lands in the right place.",
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "channel",
          "seq"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "chat.yakka.getTimelineAround",
  "lexicon": 1
}
