import type * as Pinnacle from "../index.mjs"; export interface Message { content: Pinnacle.MessageContent; /** * Total cost charged for sending the message.
* * Null means the message incurred no cost or has not been charged yet. */ cost: number | null; /** * Timestamp indicating when the message was successfully delivered to the recipient.
* * Null indicates the message has not yet been delivered. */ deliveredAt: string | null; /** * Detailed explanation of any errors that occurred while delivering the message.
* * Null indicates no errors. */ error: string | null; /** Unique identifier of the message. This identifier is a string that always begins with the prefix `msg_`, for example: `msg_1234567890`. */ id: string; method: Pinnacle.MessageMethodEnum; /** Number of segments the message was split into for delivery. */ numSegments: number; /** Phone number that received the message in E.164 format. */ receiver: string; /** Phone number or agent that sent the message. */ sender: string; /** * Timestamp indicating when the message was submitted for delivery.
* * Null indicates the message is still in the queue. */ sentAt: string | null; status: Pinnacle.MessageStatusEnum; type: Pinnacle.MessageProtocolEnum; }