appBskyNotificationGetUnreadCount top-level constant

Map<String, dynamic> const appBskyNotificationGetUnreadCount

app.bsky.notification.getUnreadCount

Implementation

const appBskyNotificationGetUnreadCount = <String, dynamic>{
  "lexicon": 1,
  "id": "app.bsky.notification.getUnreadCount",
  "defs": {
    "main": {
      "type": "query",
      "description":
          "Count the number of unread notifications for the requesting account. Requires auth.",
      "parameters": {
        "type": "params",
        "properties": {
          "seenAt": {"type": "string", "format": "datetime"}
        }
      },
      "output": {
        "encoding": "application/json",
        "schema": {
          "type": "object",
          "required": ["count"],
          "properties": {
            "count": {"type": "integer"}
          }
        }
      }
    }
  }
};