import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { ActorFeedItemDto } from "./actorfeeditemdto.js"; import { ChannelTypeEnum } from "./channeltypeenum.js"; import { MessageCTA } from "./messagecta.js"; import { SubscriberFeedResponseDto } from "./subscriberfeedresponsedto.js"; /** * Current status of the notification. */ export declare const NotificationFeedItemDtoStatus: { readonly Sent: "sent"; readonly Error: "error"; readonly Warning: "warning"; }; /** * Current status of the notification. */ export type NotificationFeedItemDtoStatus = ClosedEnum; export type NotificationFeedItemDto = { /** * Unique identifier for the notification. */ id: string; /** * Identifier for the template used to generate the notification. */ templateId: string; /** * Identifier for the environment where the notification is sent. */ environmentId: string; /** * Identifier for the message template used. */ messageTemplateId?: string | undefined; /** * Identifier for the organization sending the notification. */ organizationId: string; /** * Unique identifier for the notification instance. */ notificationId: string; /** * Unique identifier for the subscriber receiving the notification. */ subscriberId: string; /** * Identifier for the feed associated with the notification. */ feedId?: string | null | undefined; /** * Identifier for the job that triggered the notification. */ jobId: string; /** * Timestamp indicating when the notification was created. */ createdAt?: Date | null | undefined; /** * Timestamp indicating when the notification was last updated. */ updatedAt?: Date | null | undefined; /** * Actor details related to the notification, if applicable. */ actor?: ActorFeedItemDto | undefined; /** * Subscriber details associated with this notification. */ subscriber?: SubscriberFeedResponseDto | undefined; /** * Unique identifier for the transaction associated with the notification. */ transactionId: string; /** * Identifier for the template used, if applicable. */ templateIdentifier?: string | null | undefined; /** * Identifier for the provider that sends the notification. */ providerId?: string | null | undefined; /** * The main content of the notification. */ content: string; /** * The subject line for email notifications, if applicable. */ subject?: string | null | undefined; /** * Channel type through which the message is sent */ channel: ChannelTypeEnum; /** * Indicates whether the notification has been read by the subscriber. */ read: boolean; /** * Indicates whether the notification has been seen by the subscriber. */ seen: boolean; /** * Indicates whether the notification has been archived by the subscriber. */ archived: boolean; /** * Device tokens for push notifications, if applicable. */ deviceTokens?: Array | null | undefined; /** * Call-to-action information associated with the notification. */ cta: MessageCTA; /** * Current status of the notification. */ status: NotificationFeedItemDtoStatus; /** * The payload that was used to send the notification trigger. */ payload?: { [k: string]: any; } | undefined; /** * The data sent with the notification. */ data?: { [k: string]: any; } | null | undefined; /** * Provider-specific overrides used when triggering the notification. */ overrides?: { [k: string]: any; } | undefined; /** * Tags associated with the workflow that triggered the notification. */ tags?: Array | null | undefined; }; /** @internal */ export declare const NotificationFeedItemDtoStatus$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const NotificationFeedItemDto$inboundSchema: z.ZodType; export declare function notificationFeedItemDtoFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=notificationfeeditemdto.d.ts.map