atproto/lexicons/app/bsky/notification/getUnreadCount.json
Daniel Holmgren 76c91f8325
Priority notification setting (#2648)
* 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>
2024-07-23 12:33:01 -07:00

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" }
}
}
}
}
}
}