{
  "$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"
        },
        "policy": {
          "description": "For a policy_change notification, the Policy Version that was published. A Policy Version is not an AT Protocol repository record.",
          "ref": "#policyChange",
          "type": "ref"
        },
        "reason": {
          "knownValues": [
            "like",
            "comment",
            "follow",
            "commission_request",
            "commission_message",
            "commission_status",
            "quest_bid",
            "quest_bid_accepted",
            "quest_bid_not_selected",
            "commission_review",
            "collection_request",
            "collection_response",
            "policy_change"
          ],
          "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"
    },
    "policyChange": {
      "description": "The Policy Version a policy_change notification announces.",
      "properties": {
        "effectiveDate": {
          "description": "The Korean calendar date the version takes effect, as YYYY-MM-DD.",
          "type": "string"
        },
        "type": {
          "knownValues": [
            "terms",
            "privacy"
          ],
          "type": "string"
        },
        "version": {
          "description": "The Version Identifier the public policy page reads this version by.",
          "type": "string"
        }
      },
      "required": [
        "type",
        "version",
        "effectiveDate"
      ],
      "type": "object"
    }
  },
  "description": "Get the authenticated member's notifications, paginated by cursor.",
  "id": "app.bivri.notif.getNotifications",
  "lexicon": 1
}
