import type * as Whop from "../index.mjs"; export interface Notification { /** Account the notification belongs to. `null` when the notification is not associated with an account. */ account: Whop.NotificationAccount | null; /** Image displayed alongside the notification — the sender's avatar, or the default notification image. */ attachment_url: string; /** The body text of the notification displayed to the user. */ content: string; /** When the notification was created, as an ISO 8601 timestamp. */ created_at: string; /** Experience the notification is related to. `null` when not tied to a specific experience. */ experience: Whop.NotificationExperience | null; /** Notification ID. Feed rows carry a composite id that doubles as the list cursor. */ id: string; /** The same destination on the app's own domain, which the Whop web and mobile clients embed instead of navigating to it. Only relevant if you render Whop apps yourself. `null` when the notification carries its own `link`. */ iframe_link: string | null; /** The whop.com page the notification opens, as a normal top-level navigation. This is the link to use unless you host Whop apps yourself. `null` when the notification has no click-through destination. */ link: string | null; /** Whether the authenticated user was directly mentioned in this notification. */ mentions_me: boolean; /** Additional path information appended to the notification's deep link, if any. */ rest_path: string | null; /** User who triggered the notification. `null` when it was system-generated. */ sender: Whop.NotificationSender | null; /** The title line of the notification displayed to the user. */ subject: string; /** Topic category the notification belongs to, used for grouping and preference management. `null` when uncategorized. */ topic: Whop.NotificationTopicSummary | null; }