{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "A photo of a track or review (com.hikeratlas.temp.defs#photo), as an image: a thumbnail, or the photo itself, from its author's PDS through a cache. Only photos of records the indexer has, and hasn't hidden. Served by Hiker Atlas's indexer (https://github.com/hikeratlas/atproto-indexer). In beta: may change.",
      "errors": [
        {
          "description": "Not a photo of a record the indexer has, or hidden.",
          "name": "NotFound"
        }
      ],
      "output": {
        "encoding": "*/*"
      },
      "parameters": {
        "properties": {
          "cid": {
            "description": "The photo's image blob (its ref).",
            "format": "cid",
            "type": "string"
          },
          "did": {
            "description": "The photo's author.",
            "format": "did",
            "type": "string"
          },
          "size": {
            "default": "thumbnail",
            "description": "thumbnail: at most 640 pixels a side; fullsize: the photo as uploaded.",
            "knownValues": [
              "thumbnail",
              "fullsize"
            ],
            "type": "string"
          }
        },
        "required": [
          "did",
          "cid"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "com.hikeratlas.temp.getPhoto",
  "lexicon": 1
}
