{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "cameraItem": {
      "properties": {
        "camera": {
          "type": "string"
        },
        "photoCount": {
          "type": "integer"
        },
        "thumbs": {
          "description": "Up to four representative photo thumbnails, most recent first. Lets the index render without a feed request per camera.",
          "items": {
            "format": "uri",
            "type": "string"
          },
          "maxLength": 4,
          "type": "array"
        }
      },
      "required": [
        "camera",
        "photoCount"
      ],
      "type": "object"
    },
    "main": {
      "description": "Get top cameras by photo count.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cameras": {
              "items": {
                "ref": "social.grain.unspecced.getCameras#cameraItem",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "type": "object"
        }
      },
      "type": "query"
    }
  },
  "id": "social.grain.unspecced.getCameras",
  "lexicon": 1
}
