site.mochott.notification.getUnreadCount

Counts what listNotifications would list as unread for the same types, after notification settings and mutes.

Repository @tokimeki.blue did:plc:4tr5dqti7nmu6g2czpthntak namespace authority
Details · query
Kindquery
Authoritynotification.mochott.site
Indexed
cid bafyreihd7cx6yrsqebzm6nqo4waoefjcadrjuinmntiiyvjq2eptkxf6ua

Checks

Valid
  • unlimited-string defs.main.parameters.properties.types.itemsNo maxLength, maxGraphemes or format limits this string.
JSONDownload
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Counts what listNotifications would list as unread for the same types, after notification settings and mutes.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "count": {
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "count"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "types": {
            "description": "Only count these notification types. Comic types are only counted when named here.",
            "items": {
              "knownValues": [
                "new_article",
                "like",
                "subscription",
                "comment",
                "reply",
                "import_completed",
                "import_failed",
                "new_comic",
                "comic_like",
                "comic_comment",
                "comic_reply",
                "comic_subscription"
              ],
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "description": "Count unread notifications of the requesting account. Requires auth.",
  "id": "site.mochott.notification.getUnreadCount",
  "lexicon": 1,
  "revision": 1
}