/** * Bandwidth * Bandwidth\'s Communication APIs * * The version of the OpenAPI document: 1.0.0 * Contact: letstalk@bandwidth.com * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import type { ListMessageDirectionEnum } from './list-message-direction-enum'; import type { MessageStatusEnum } from './message-status-enum'; import type { MessageTypeEnum } from './message-type-enum'; export interface ListMessageItem { /** * The message id */ 'messageId'?: string; /** * The account id associated with this message. */ 'accountId'?: string; /** * The source phone number of the message. */ 'sourceTn'?: string; /** * The recipient phone number of the message. */ 'destinationTn'?: string; 'messageStatus'?: MessageStatusEnum; 'messageDirection'?: ListMessageDirectionEnum; 'messageType'?: MessageTypeEnum; /** * The number of segments the user\'s message is broken into before sending over carrier networks. */ 'segmentCount'?: number; /** * The numeric error code of the message. */ 'errorCode'?: number; /** * The ISO 8601 datetime of the message. */ 'receiveTime'?: string; /** * The name of the carrier. Not currently supported for MMS coming soon. */ 'carrierName'?: string | null; /** * The size of the message including message content and headers. */ 'messageSize'?: number | null; /** * The length of the message content. */ 'messageLength'?: number; /** * The number of attachments the message has. */ 'attachmentCount'?: number | null; /** * The number of recipients the message has. */ 'recipientCount'?: number | null; /** * The campaign class of the message if it has one. */ 'campaignClass'?: string | null; /** * The campaign ID of the message if it has one. */ 'campaignId'?: string | null; /** * The Bandwidth latency of the message in seconds. Only available for accounts with the Advanced Quality Metrics feature enabled. */ 'bwLatency'?: number | null; /** * The carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. */ 'carrierLatency'?: number | null; /** * The A3 country code of the calling number. */ 'callingNumberCountryA3'?: string | null; /** * The A3 country code of the called number. */ 'calledNumberCountryA3'?: string | null; /** * The messaging product associated with the message. */ 'product'?: string | null; /** * The location ID associated with this message. */ 'location'?: string | null; }