import { MessengerType } from '../Channels/Messenger/MessengerType.js'; import '../../enums/Messenger/MessengerCategory.js'; /** * Represents a request to send an audio message via the Messenger channel. * * @group Messenger * @category Requests * * @remarks * Vonage API's will return information using `snake_case`. This represents the * pure request structure before it's transformed into `snake_case` for the API call. */ type MessengerAudioRequest = { /** A client reference string for tracking the message. */ client_ref: string; /** The message type, which is set to 'audio' for an audio message. */ message_type: 'audio'; /** The audio content of the message, including the URL of the audio file. */ audio: { /** The URL of the audio file. */ url: string; }; /** The recipient of the message. */ to: string; /** The sender of the message. */ from: string; /** The channel for sending the message, which is set to 'messenger'. */ channel: 'messenger'; /** Additional details about the Messenger message type. */ messenger: MessengerType; }; export type { MessengerAudioRequest };