{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get a feed of posts from a specific community",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 500,
              "type": "string"
            },
            "feed": {
              "items": {
                "ref": "social.coves.feed.defs#feedViewPost",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "feed"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "community": {
            "description": "Get community feed for specific community (DID, handle, name@origin, or bare local name)",
            "maxLength": 320,
            "type": "string"
          },
          "cursor": {
            "maxLength": 500,
            "type": "string"
          },
          "limit": {
            "default": 15,
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "sort": {
            "default": "hot",
            "description": "Sort order for community feed",
            "knownValues": [
              "hot",
              "top",
              "new"
            ],
            "maxLength": 64,
            "type": "string"
          },
          "timeframe": {
            "default": "day",
            "description": "Timeframe for top sorting (only applies when sort=top)",
            "knownValues": [
              "hour",
              "day",
              "week",
              "month",
              "year",
              "all"
            ],
            "maxLength": 64,
            "type": "string"
          }
        },
        "required": [
          "community"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.coves.feed.getCommunity",
  "lexicon": 1
}
