{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "List collections owned by an actor. Private collections are only returned when viewer == actor.",
      "output": {
        "encoding": "application/json"
      },
      "parameters": {
        "properties": {
          "actor": {
            "description": "DID of the collection owner.",
            "format": "did",
            "type": "string"
          },
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          },
          "viewer": {
            "description": "DID of the requester. When equal to actor, private collections are included.",
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "target_collection": "app.zeens.collection",
      "type": "query"
    }
  },
  "id": "app.zeens.getCollections",
  "lexicon": 1
}
