{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "item": {
      "properties": {
        "addedAt": {
          "type": "string"
        },
        "card": {
          "description": "The network.cosmik.card record, as stored.",
          "type": "unknown"
        },
        "cardUri": {
          "format": "at-uri",
          "type": "string"
        },
        "linkUri": {
          "format": "at-uri",
          "type": "string"
        },
        "note": {
          "description": "The owner's newest note on the card.",
          "type": "string"
        }
      },
      "required": [
        "cardUri",
        "card",
        "addedAt"
      ],
      "type": "object"
    },
    "list": {
      "properties": {
        "cid": {
          "type": "string"
        },
        "createdAt": {
          "type": "string"
        },
        "description": {
          "type": "string"
        },
        "marked": {
          "description": "Whether a sidecar marks this list. False for a list found by name, whose owner should add one.",
          "type": "boolean"
        },
        "name": {
          "type": "string"
        },
        "uri": {
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "uri",
        "cid",
        "name"
      ],
      "type": "object"
    },
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "items": {
              "items": {
                "ref": "#item",
                "type": "ref"
              },
              "type": "array"
            },
            "list": {
              "ref": "#list",
              "type": "ref"
            }
          },
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "did",
            "type": "string"
          },
          "name": {
            "description": "Fallback for owners with no sidecar yet: the collection name to look for.",
            "maxLength": 100,
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Someone's current gift list: the collection their newest com.tynanpurdy.giftlist.list sidecar marks (or, for owners with no sidecar yet, their newest collection with the given name), and the gifts on it, newest first.",
  "id": "com.tynanpurdy.giftlist.getList",
  "lexicon": 1
}
