{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Aggregate distinct EXIF facet values (makes, models, lenses, apertures, focal lengths, camera/lens gear with counts) across all app.zeens.postMeta records. Powers the search UI's cascading filters and popular-gear chips without needing any client-side aggregation.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "make": {
            "description": "Optional substring match on exif.make. Used when listing models/lenses for a chosen make.",
            "type": "string"
          },
          "models": {
            "description": "Optional comma-separated list of exact exif.model values to restrict lens/aperture/focal facets. Takes precedence over make.",
            "type": "string"
          }
        },
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getExifFacets",
  "lexicon": 1
}
