{ "lexicon": 1, "id": "sh.weaver.notification.listNotifications", "defs": { "main": { "type": "query", "description": "Get notifications for the authenticated user.", "parameters": { "type": "params", "properties": { "reasons": { "type": "array", "items": { "type": "string", "knownValues": [ "like", "bookmark", "follow", "followAccept", "subscribe", "subscribeAccept", "collaborationInvite", "collaborationAccept", "newEntry", "entryUpdate", "mention", "tag", "comment" ] }, "description": "Filter by notification reasons." }, "seenAt": { "type": "string", "format": "datetime", "description": "Only show notifications after this timestamp." }, "limit": { "type": "integer", "minimum": 1, "maximum": 100, "default": 50 }, "cursor": { "type": "string" } } }, "output": { "encoding": "application/json", "schema": { "type": "object", "required": ["notifications"], "properties": { "notifications": { "type": "array", "items": { "type": "ref", "ref": "sh.weaver.notification.defs#notification" } }, "cursor": { "type": "string" }, "seenAt": { "type": "string", "format": "datetime" } } } } } } }