import { SdPlatformResponseModelBase } from "./SdPlatformResponseModel"; import { SdPlatformResponseDocument } from "./SdPlatformResponseDocument"; import { SdPlatformNotificationClass, SdPlatformNotificationCreator, SdPlatformNotificationLevel, SdPlatformNotificationType } from "../commons/SdPlatformNotificationCommons"; import { SdPlatformResponseOrganizationPublic } from "./SdPlatformResponseOrganization"; import { SdPlatformResponseSavedStateMinimal } from "./SdPlatformResponseSavedState"; import { SdPlatformResponseUserMinimal } from "./SdPlatformResponseUser"; import { SdPlatformPolicyCommonAliasesModel } from "../commons/SdPlatformPolicyCommons"; /** * Metadata related to a notification. */ export interface SdPlatformResponseNotificationMetadata { /** policies to be shared back in case of a model-transfer-request notification */ readonly policies?: Array; } /** * Notification. */ export interface SdPlatformResponseNotification { /** id of notification */ readonly id: string; /** description of notification */ readonly description?: string; /** epoch timestamp */ readonly created_at: number; /** epoch timestamp */ readonly updated_at: number; /** receiver of notification */ readonly receiver?: SdPlatformResponseUserMinimal; /** model related to notification */ readonly model?: SdPlatformResponseModelBase; /** user related to notification */ readonly user?: SdPlatformResponseUserMinimal; /** saved state related to notification */ readonly saved_state?: SdPlatformResponseSavedStateMinimal; /** organization related to notification */ readonly organization?: SdPlatformResponseOrganizationPublic; /** document related to notification */ readonly document?: SdPlatformResponseDocument; /** epoch timestamp until which the notification is valid */ readonly valid_until?: number; /** whether the notification has been marked as read */ readonly read: boolean; /** creator of notification */ readonly creator: SdPlatformNotificationCreator; /** level of notification */ readonly level: SdPlatformNotificationLevel; /** class of notification */ readonly class: SdPlatformNotificationClass; /** type of notification */ readonly type?: SdPlatformNotificationType; /** metadata according to type of notification */ readonly metadata?: SdPlatformResponseNotificationMetadata; /** links to additional data such as sdk documentation. */ readonly href?: string; /** email of notification, used for type organization-invitation */ readonly email?: string; } /** * Notification summary. */ export interface SdPlatformResponseNotificationSummary { /** total quantity */ readonly total: number; /** unread quantity */ readonly unread: number; } //# sourceMappingURL=SdPlatformResponseNotification.d.ts.map