{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "listView": {
      "properties": {
        "count": {
          "minimum": 0,
          "type": "integer"
        },
        "name": {
          "type": "string"
        },
        "owner": {
          "format": "did",
          "type": "string"
        },
        "previews": {
          "items": {
            "format": "uri",
            "type": "string"
          },
          "maxLength": 3,
          "type": "array"
        },
        "updatedAt": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "owner",
        "uri",
        "name",
        "count",
        "previews"
      ],
      "type": "object"
    },
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "lists": {
              "items": {
                "ref": "#listView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "lists"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actors": {
            "items": {
              "format": "did",
              "type": "string"
            },
            "maxLength": 50,
            "type": "array"
          },
          "name": {
            "description": "The list name to match for owners with no sidecar yet, e.g. \"Gift List 2026\".",
            "type": "string"
          }
        },
        "required": [
          "actors"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Which of the given accounts have a current gift list (the collection their newest com.tynanpurdy.giftlist.list sidecar marks, or for owners with none yet, their newest collection with the given name), with a summary of each.",
  "id": "com.tynanpurdy.giftlist.getLists",
  "lexicon": 1
}
