LiveNotification
type LiveNotification = {
[key: string]: unknown;
assignedByUid?: string;
createdAt: string;
fromUid: string;
fromUser?: {
email: string;
fullName: string;
id: string;
imageId: string | null;
};
id: string;
invitationId?: string;
invitationSecret?: string;
isDeleted?: boolean;
isUnread: boolean;
itemContent?: string;
itemId?: string;
notificationType: string;
projectId?: string;
projectName?: string;
responsibleUid?: string;
};
Live notification resource from the Sync API.
Uses a base schema with commonly-present fields plus .passthrough() for
forward compatibility. The Sync API returns 20+ notification variants;
fully typing each is too fragile for a library, so we validate the common
shape and preserve all extra fields.
Type Declaration
Index Signature
[key: string]: unknown