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.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.Promise<void>
markAllNotificationsAsRead
Marks all the user’s notifications as read.Promise<{ markedAsRead: number }>
