appNotifications module exposes the in-app notification feed for the authenticated user — read notifications, count unread ones, and mark them as read.
fetchNotifications
Fetches a paginated list of the user’s notifications.The page of results to fetch.
The number of notifications to return per page.
Promise<PaginatedResponse<UnifiedAppNotification>>
A notification is a discriminated union on a
type field, spanning system, entity/comment comments and replies, mentions, upvotes, reactions, reaction milestones, new-follow, connection-request, connection-accepted, and space-membership-approved. Each notification has id, type, isRead, metadata, and createdAt.countUnreadNotifications
Returns the number of unread notifications.Promise<number>
markNotificationAsRead
Marks a single notification as read.The ID of the notification to mark as read.
Promise<void>
markAllNotificationsAsRead
Marks all the user’s notifications as read.Promise<{ markedAsRead: number }>
