{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get trending Zeens photos ranked by engagement within a time window.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "category": {
            "description": "Optional category filter.",
            "type": "string"
          },
          "cursor": {
            "description": "Pagination cursor.",
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "window": {
            "default": "24h",
            "description": "Time window: 24h, 7d, 30d.",
            "knownValues": [
              "24h",
              "7d",
              "30d"
            ],
            "type": "string"
          }
        },
        "type": "params"
      },
      "target_collection": "app.zeens.postMeta",
      "type": "query"
    }
  },
  "id": "app.zeens.getTrending",
  "lexicon": 1
}
