atproto blogging
at main 76 lines 1.9 kB view raw
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 "cursor": { 12 "type": "string" 13 }, 14 "limit": { 15 "type": "integer", 16 "default": 50, 17 "minimum": 1, 18 "maximum": 100 19 }, 20 "reasons": { 21 "type": "array", 22 "description": "Filter by notification reasons.", 23 "items": { 24 "type": "string", 25 "knownValues": [ 26 "like", 27 "bookmark", 28 "follow", 29 "followAccept", 30 "subscribe", 31 "subscribeAccept", 32 "collaborationInvite", 33 "collaborationAccept", 34 "newEntry", 35 "entryUpdate", 36 "mention", 37 "tag", 38 "comment" 39 ] 40 } 41 }, 42 "seenAt": { 43 "type": "string", 44 "description": "Only show notifications after this timestamp.", 45 "format": "datetime" 46 } 47 } 48 }, 49 "output": { 50 "encoding": "application/json", 51 "schema": { 52 "type": "object", 53 "required": [ 54 "notifications" 55 ], 56 "properties": { 57 "cursor": { 58 "type": "string" 59 }, 60 "notifications": { 61 "type": "array", 62 "items": { 63 "type": "ref", 64 "ref": "sh.weaver.notification.defs#notification" 65 } 66 }, 67 "seenAt": { 68 "type": "string", 69 "format": "datetime" 70 } 71 } 72 } 73 } 74 } 75 } 76}