Skip to main content

ActivityNotificationsRequest

@gravity-rail/sdk


@gravity-rail/sdk / ActivityNotificationsRequest

Interface: ActivityNotificationsRequest

The global feed: notification-worthy occurrences, newest first.

This is the account mount's feed, not a second one. The rows are compiled from the same :func:~lib.db.activities.feed_predicates.event_visibility_clause the account feed uses, narrowed to the :func:~lib.activity.notifications.notification_worthy_types — the types whose outcome is not ok. "This workspace" is the same query with scope.workspaceUuids=[current]; "All" omits it. There is no second authorization path: a workspace UUID the caller cannot see stays in the narrowing, so the query returns nothing rather than widening.

The window is required, unlike the count's. A traversal has to have fixed bounds: a cursor is bound to the request that issued it, and a window resolved from "now" on each page would move underneath a page-two request. The client names the span once and pages through it.

Properties​

cursor?​

optional cursor: string | null


eventTypes?​

optional eventTypes: ActivityEventType[]


includeDismissed?​

optional includeDismissed: boolean


pageSize?​

optional pageSize: number

Minimum​

1

Maximum​

200


scope?​

optional scope: ActivityQueryScope


window​

window: ActivityWindow