{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "One record in a community space the viewer can read: a post with its thread, a poll, document or listing with its view and the thread of its replies, an event with its RSVPs, or any other record. A deleted post, document or listing with replies or a deleted event with RSVPs the viewer may see answers its tombstone with them.",
      "errors": [
        {
          "name": "NotFound"
        },
        {
          "name": "NotSpaceMember"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "item": {
              "refs": [
                "us.off-the-clock.defs#postView",
                "us.off-the-clock.defs#eventView",
                "us.off-the-clock.defs#rsvpView",
                "us.off-the-clock.defs#profileView",
                "us.off-the-clock.defs#recordView",
                "us.off-the-clock.defs#bookmarkView",
                "us.off-the-clock.defs#documentView",
                "us.off-the-clock.defs#listingView",
                "us.off-the-clock.polls.pollView",
                "us.off-the-clock.defs#tombstoneView"
              ],
              "type": "union"
            },
            "rsvps": {
              "items": {
                "ref": "us.off-the-clock.defs#rsvpView",
                "type": "ref"
              },
              "type": "array"
            },
            "thread": {
              "refs": [
                "app.bsky.feed.defs#threadViewPost",
                "app.bsky.feed.defs#notFoundPost",
                "app.bsky.feed.defs#blockedPost",
                "us.off-the-clock.defs#tombstoneView",
                "us.off-the-clock.polls.threadViewPoll",
                "us.off-the-clock.defs#threadViewDocument",
                "us.off-the-clock.defs#threadViewListing"
              ],
              "type": "union"
            }
          },
          "required": [
            "item"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "depth": {
            "default": 6,
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "parentHeight": {
            "default": 80,
            "maximum": 1000,
            "minimum": 0,
            "type": "integer"
          },
          "uri": {
            "format": "at-uri",
            "type": "string"
          }
        },
        "required": [
          "uri"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "us.off-the-clock.getRecord",
  "lexicon": 1
}
