76c91f8325
* priority notif settings in bsync * lint * priority notifications lexicon update * codegen * putNotificationPreferences -> putPreferences * bsync: reorg around notif "priority", fix build, add validation & tests * bsync: notif channel fix, tests fix * bsky: update protos for priority notifs * api prerelease * add priority notif to actor state table * dataplane impl * appview: wire-up notif priority params * appview: notif priority tests * dataplane impl * fix up tests * tidy * add changeset --------- Co-authored-by: Samuel Newman <10959775+mozzius@users.noreply.github.com> Co-authored-by: Devin Ivy <devinivy@gmail.com>
28 lines
672 B
JSON
28 lines
672 B
JSON
{
|
|
"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": {
|
|
"priority": { "type": "boolean" },
|
|
"seenAt": { "type": "string", "format": "datetime" }
|
|
}
|
|
},
|
|
"output": {
|
|
"encoding": "application/json",
|
|
"schema": {
|
|
"type": "object",
|
|
"required": ["count"],
|
|
"properties": {
|
|
"count": { "type": "integer" }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|