{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "type": "string"
            },
            "notifications": {
              "items": {
                "ref": "#notificationView",
                "type": "ref"
              },
              "type": "array"
            }
          },
          "required": [
            "notifications"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "cursor": {
            "type": "string"
          },
          "limit": {
            "default": 50,
            "maximum": 100,
            "minimum": 1,
            "type": "integer"
          }
        },
        "type": "params"
      },
      "type": "query"
    },
    "notificationView": {
      "properties": {
        "commentText": {
          "description": "For a comment notification, the comment's text while the artwork's comment list still shows that comment. Absent once the comment is deleted or its author is no longer served, and on every other reason.",
          "type": "string"
        },
        "commissionId": {
          "description": "The Bivri-local commission identifier for commission notifications. A commission is not an AT Protocol repository record.",
          "maxLength": 36,
          "minLength": 36,
          "type": "string"
        },
        "createdAt": {
          "format": "datetime",
          "type": "string"
        },
        "id": {
          "type": "integer"
        },
        "indexedAt": {
          "format": "datetime",
          "type": "string"
        },
        "isRead": {
          "type": "boolean"
        },
        "reason": {
          "knownValues": [
            "like",
            "comment",
            "follow",
            "commission_request",
            "commission_message",
            "commission_status"
          ],
          "type": "string"
        },
        "sender": {
          "ref": "app.bivri.actor.defs#profileView",
          "type": "ref"
        },
        "subjectUri": {
          "description": "The related AT Protocol record URI, when present. Bivri-local commissions use commissionId instead.",
          "format": "at-uri",
          "type": "string"
        }
      },
      "required": [
        "id",
        "reason",
        "isRead",
        "sender",
        "createdAt",
        "indexedAt"
      ],
      "type": "object"
    }
  },
  "description": "Get the authenticated member's notifications, paginated by cursor.",
  "id": "app.bivri.notif.getNotifications",
  "lexicon": 1
}
