{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List items inside a collection. Returns 404 if the collection is private and viewer != owner. Items are returned newest-first by addedAt.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "collection": {
            "description": "AT-URI of the parent app.zeens.collection record.",
            "format": "at-uri",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "collection"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collectionItem",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollectionItems",
  "lexicon": 1
}
