{
"id": "app.bsky.notification.listNotifications",
"defs": {
"main": {
"type": "query",
"output": {
"schema": {
"type": "object",
"required": [
"notifications"
],
"properties": {
"cursor": {
"type": "string"
},
"seenAt": {
"type": "string",
"format": "datetime"
},
"priority": {
"type": "boolean"
},
"notifications": {
"type": "array",
"items": {
"ref": "#notification",
"type": "ref"
}
}
}
},
"encoding": "application/json"
},
"parameters": {
"type": "params",
"properties": {
"limit": {
"type": "integer",
"default": 50,
"maximum": 100,
"minimum": 1
},
"cursor": {
"type": "string"
},
"seenAt": {
"type": "string",
"format": "datetime"
},
"reasons": {
"type": "array",
"items": {
"type": "string",
"description": "A reason that matches the reason property of #notification."
},
"description": "Notification reasons to include in response."
},
"priority": {
"type": "boolean"
}
}
},
"description": "Enumerate notifications for the requesting account. Requires auth."
},
"notification": {
"type": "object",
"required": [
"uri",
"cid",
"author",
"reason",
"record",
"isRead",
"indexedAt"
],
"properties": {
"cid": {
"type": "string",
"format": "cid"
},
"uri": {
"type": "string",
"format": "at-uri"
},
"author": {
"ref": "app.bsky.actor.defs#profileView",
"type": "ref"
},
"isRead": {
"type": "boolean"
},
"labels": {
"type": "array",
"items": {
"ref": "com.atproto.label.defs#label",
"type": "ref"
}
},
"reason": {
"type": "string",
"description": "The reason why this notification was delivered - e.g. your post was liked, or you received a new follower.",
"knownValues": [
"like",
"repost",
"follow",
"mention",
"reply",
"quote",
"starterpack-joined",
"verified",
"unverified",
"like-via-repost",
"repost-via-repost",
"subscribed-post",
"contact-match"
]
},
"record": {
"type": "unknown"
},
"indexedAt": {
"type": "string",
"format": "datetime"
},
"reasonSubject": {
"type": "string",
"format": "at-uri"
}
}
}
},
"$type": "com.atproto.lexicon.schema",
"lexicon": 1
}