atproto blogging
1{
2 "lexicon": 1,
3 "id": "sh.weaver.notification.listNotifications",
4 "defs": {
5 "main": {
6 "type": "query",
7 "description": "Get notifications for the authenticated user.",
8 "parameters": {
9 "type": "params",
10 "properties": {
11 "reasons": {
12 "type": "array",
13 "items": {
14 "type": "string",
15 "knownValues": [
16 "like",
17 "bookmark",
18 "follow",
19 "followAccept",
20 "subscribe",
21 "subscribeAccept",
22 "collaborationInvite",
23 "collaborationAccept",
24 "newEntry",
25 "entryUpdate",
26 "mention",
27 "tag",
28 "comment"
29 ]
30 },
31 "description": "Filter by notification reasons."
32 },
33 "seenAt": {
34 "type": "string",
35 "format": "datetime",
36 "description": "Only show notifications after this timestamp."
37 },
38 "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 },
39 "cursor": { "type": "string" }
40 }
41 },
42 "output": {
43 "encoding": "application/json",
44 "schema": {
45 "type": "object",
46 "required": ["notifications"],
47 "properties": {
48 "notifications": {
49 "type": "array",
50 "items": { "type": "ref", "ref": "sh.weaver.notification.defs#notification" }
51 },
52 "cursor": { "type": "string" },
53 "seenAt": { "type": "string", "format": "datetime" }
54 }
55 }
56 }
57 }
58 }
59}