import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ChannelTypeEnum } from "./channeltypeenum.js"; import { InboxActionDto } from "./inboxactiondto.js"; import { InboxSubscriberResponseDto } from "./inboxsubscriberresponsedto.js"; import { NotificationWorkflowDto } from "./notificationworkflowdto.js"; import { RedirectDto } from "./redirectdto.js"; import { SeverityLevelEnum } from "./severitylevelenum.js"; export type InboxNotificationDto = { /** * Unique identifier of the notification */ id: string; /** * Transaction identifier of the notification */ transactionId: string; /** * Subject of the notification */ subject?: string | undefined; /** * Body content of the notification */ body: string; /** * Subscriber this notification was sent to */ to: InboxSubscriberResponseDto; /** * Whether the notification has been read */ isRead: boolean; /** * Whether the notification has been seen */ isSeen: boolean; /** * Whether the notification has been archived */ isArchived: boolean; /** * Whether the notification is snoozed */ isSnoozed: boolean; /** * ISO timestamp when the notification will be unsnoozed */ snoozedUntil?: string | null | undefined; /** * Timestamps when the notification was delivered */ deliveredAt?: Array | undefined; /** * ISO timestamp when the notification was created */ createdAt: string; /** * ISO timestamp when the notification was read */ readAt?: string | null | undefined; /** * ISO timestamp when the notification was first seen */ firstSeenAt?: string | null | undefined; /** * ISO timestamp when the notification was archived */ archivedAt?: string | null | undefined; /** * Avatar URL for the notification */ avatar?: string | undefined; /** * Primary action button for the notification */ primaryAction?: InboxActionDto | undefined; /** * Secondary action button for the notification */ secondaryAction?: InboxActionDto | undefined; /** * Channel type through which the message is sent */ channelType: ChannelTypeEnum; /** * Tags associated with the notification */ tags?: Array | undefined; /** * Custom data payload of the notification */ data?: { [k: string]: any; } | undefined; /** * Redirect configuration for the notification */ redirect?: RedirectDto | undefined; /** * Workflow associated with the notification */ workflow?: NotificationWorkflowDto | undefined; /** * Severity of the workflow */ severity: SeverityLevelEnum; }; /** @internal */ export declare const InboxNotificationDto$inboundSchema: z.ZodType; export declare function inboxNotificationDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=inboxnotificationdto.d.ts.map