Notification types
uploadPushSummary
Delayed push-notification summary of assets uploaded to a project by one user.
Delivered as the
notification socket event with type set to uploadPushSummary.Delayed push-notification summary of assets uploaded to a project by one user. Primarily consumed by the push worker (sent after scheduledSendAt) but also broadcast on the project visibility channels when created.
Created directly (bypasses template validation) and grouped per creator/project while pushStatus is pending; later uploads are appended to tokens.assets and the timer is reset. Not intended for UI rendering.
Payload for the uploadPushSummary event.
Payload
| Property | Type | Required | Description |
|---|---|---|---|
type | string | yes | The specific type of notification event (matches the top-level key, e.g., 'workspaceCreate'). Every value in notificationTemplates (config/notifications.js) is documented in this tag. |
initiatorId | string (uuid) | no | ID of the user or system that initiated the event. Null if initiatorType is 'system'. |
initiatorType | "user" | "system" | yes | Type of initiator (user or system). |
initiator | object | null | no | Populated initiator user object (if initiatorType is 'user'). |
resourceId | string (uuid) | yes | ID of the primary resource this notification pertains to. |
resourceType | string | yes | Type of the primary resource this notification pertains to. |
channels | string[] | no | The specific channels this notification was published on. Present on notification objects returned by the REST API only; the socket 'notification' payload omits it (and id). |
createdAt | string (date-time) | yes | Timestamp when the notification was created. |
tokens | object | no | |
changes | object | no | Not populated for this event (the notification is created without a changes object). |
tokens
| Property | Type | Required | Description |
|---|---|---|---|
creatorId | string | yes | ID of the uploader. |
creator | object | no | Public user snapshot of the uploader (present in the payload although not part of the template). |
projectId | string | yes | |
projectName | string | yes | |
assets | object[] | yes | Minimal asset summaries: { _id, mediaType, name }. |