export interface MessageSummary { /** Unique identifier for the message. */ id: string; /** Current status of the message. */ status: MessageSummary.Status; /** Direction of the message. */ direction: MessageSummary.Direction; /** Protocol type of the message. */ type: MessageSummary.Type; /** Method used to send the message. */ method: MessageSummary.Method; /** Number of segments in the message. */ numSegments: number; /** Cost of the message. */ cost: number | null; /** Sender phone number (E.164) or RCS agent ID. */ from: string | null; /** Recipient phone number in E.164 format. */ to: string | null; /** Message content (SMS text, MMS media, or RCS rich content). */ content: Record; /** Error details if the message failed. */ error: Record | null; /** Whether this is a test message. */ isTest: boolean; /** ID of the blast this message belongs to, if any. */ blastId: string | null; /** ISO 8601 timestamp of when the message was sent. */ sentAt: string | null; /** ISO 8601 timestamp of when the message was delivered. */ deliveredAt: string | null; /** ISO 8601 timestamp of when the message was created. */ createdAt: string; /** ISO 8601 timestamp of when the message was last updated. */ updatedAt: string; } export declare namespace MessageSummary { /** Current status of the message. */ const Status: { readonly Pending: "PENDING"; readonly Sent: "SENT"; readonly SendFailed: "SEND_FAILED"; readonly Delivered: "DELIVERED"; readonly DeliveryFailed: "DELIVERY_FAILED"; readonly Received: "RECEIVED"; readonly Read: "READ"; readonly Queued: "QUEUED"; readonly FallbackSent: "FALLBACK_SENT"; }; type Status = (typeof Status)[keyof typeof Status]; /** Direction of the message. */ const Direction: { readonly Inbound: "INBOUND"; readonly Outbound: "OUTBOUND"; }; type Direction = (typeof Direction)[keyof typeof Direction]; /** Protocol type of the message. */ const Type: { readonly Sms: "SMS"; readonly Mms: "MMS"; readonly Rcs: "RCS"; }; type Type = (typeof Type)[keyof typeof Type]; /** Method used to send the message. */ const Method: { readonly Api: "API"; readonly Sdk: "SDK"; readonly Other: "OTHER"; }; type Method = (typeof Method)[keyof typeof Method]; }