{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get the count of unread notifications for a Zeens user (count newer than the user's seenAt cursor).",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "actors": {
            "description": "Required comma-separated allowlist of author DIDs (the Zeens membership set). Only notifications authored by one of these DIDs are counted, so activity from Bluesky or another atproto client never drives the badge. An empty list counts zero.",
            "type": "string"
          },
          "recipient": {
            "format": "did",
            "type": "string"
          }
        },
        "required": [
          "recipient",
          "actors"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "app.zeens.notification.getUnreadCount",
  "lexicon": 1
}
