/** * @example * {} */ export interface ListMessagesParams { pageIndex?: number; pageSize?: number; direction?: ListMessagesParams.Direction; status?: ListMessagesParams.Status; type?: ListMessagesParams.Type; /** Filter by the method used to send the message. */ method?: ListMessagesParams.Method; /** Filter by sender phone number (E.164 format) or agent id. */ from?: string; /** Filter by recipient phone number (E.164 format). */ to?: string; /** Search message content (partial match, case-insensitive). */ content?: string; /** Filter messages created on or after this date (ISO 8601 format). */ dateFrom?: string; /** Filter messages created on or before this date (ISO 8601 format). */ dateTo?: string; } export declare namespace ListMessagesParams { const Direction: { readonly Inbound: "INBOUND"; readonly Outbound: "OUTBOUND"; }; type Direction = (typeof Direction)[keyof typeof Direction]; 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]; const Type: { readonly Sms: "SMS"; readonly Mms: "MMS"; readonly Rcs: "RCS"; }; type Type = (typeof Type)[keyof typeof Type]; /** Filter by the method used to send the message. */ const Method: { readonly Api: "API"; readonly Sdk: "SDK"; readonly Other: "OTHER"; }; type Method = (typeof Method)[keyof typeof Method]; }