{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get saves within a collection, hydrated with collection details, CDN image URLs, and metadata. Auth is optional; if provided, viewer-specific state is included in the collection and save views.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "collection": {
              "ref": "is.currents.feed.defs#collectionView",
              "type": "ref"
            },
            "cursor": {
              "type": "string"
            },
            "saves": {
              "items": {
                "ref": "is.currents.feed.defs#saveView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "collection",
            "saves"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "collection": {
            "description": "AT-URI of the collection record to fetch saves from.",
            "format": "at-uri",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "required": [
          "collection"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "is.currents.feed.getCollectionSaves",
  "lexicon": 1
}
