import type { InterfaceDefinition, ObjectTypeDefinition, Osdk } from "@osdk/client"; export interface Notification { platformNotification: PlatformNotification; emailNotification: EmailNotification; } export interface EmailNotification { subject: string; body: string; links: NotificationLink[]; } export interface PlatformNotification { heading: string; content: string; links: NotificationLink[]; } export interface NotificationLink { label: string; linkTarget: NotificationLinkTarget; } export interface RidLinkTarget { type: "rid"; rid: string; } export interface ObjectLinkTarget { type: "object"; object: Osdk.Instance; } export interface UrlLinkTarget { type: "url"; url: string; } export type NotificationLinkTarget = RidLinkTarget | ObjectLinkTarget | UrlLinkTarget;