import { AxiosInstance, AxiosRequestConfig } from 'axios'; import * as Models from './models/conversations'; /** * Conversations Service * Documentation for Conversations API */ export declare class Conversations { private client; constructor(httpClient: AxiosInstance); /** * Search Conversations * Returns a list of all conversations matching the search criteria along with the sort and filter options selected. */ searchConversation(params: { locationId: string; contactId?: string; assignedTo?: string; followers?: string; mentions?: string; query?: string; sort?: string; startAfterDate?: any; id?: string; limit?: number; lastMessageType?: string; lastMessageAction?: string; lastMessageDirection?: string; status?: string; sortBy?: string; sortScoreProfile?: string; scoreProfile?: string; scoreProfileMin?: number; scoreProfileMax?: number; startDate?: number; endDate?: number; }, options?: AxiosRequestConfig): Promise; /** * Get Conversation * Get the conversation details based on the conversation ID */ getConversation(params: { conversationId: string; }, options?: AxiosRequestConfig): Promise; /** * Update Conversation * Update the conversation details based on the conversation ID */ updateConversation(params: { conversationId: string; }, requestBody: Models.UpdateConversationDto, options?: AxiosRequestConfig): Promise; /** * Delete Conversation * Delete the conversation details based on the conversation ID */ deleteConversation(params: { conversationId: string; }, options?: AxiosRequestConfig): Promise; /** * Get All Custom Subtypes * Get all custom subtypes for a location */ getAllCustomSubtypes(params: { locationId: string; }, options?: AxiosRequestConfig): Promise; /** * Create Custom Subtype * Create a new custom subtype for a location. Requires agency or account admin role. */ createCustomSubtype(params: { locationId: string; }, requestBody: Models.CreateCustomSubtypeDto, options?: AxiosRequestConfig): Promise; /** * Update Custom Subtype * Update or archive a custom subtype. Requires agency or account admin role. */ updateCustomSubtype(params: { id: string; locationId: string; }, requestBody: Models.UpdateCustomSubtypeDto, options?: AxiosRequestConfig): Promise; /** * Get Contact Unsubscription Status * Get all subscription statuses for a contact (all emails or specific email) */ getContactUnsubscriptionStatus(params: { locationId: string; contactId: string; email?: string; }, options?: AxiosRequestConfig): Promise; /** * User Subscription Change * Process subscription change initiated by a user (admin/agent). Supports individual custom subscription changes and resub all functionality. Legal forms are automatically created for user-initiated resubscribe actions on custom subscriptions. */ userSubscriptionChange(requestBody: Models.UserSubscriptionChangeDto, options?: AxiosRequestConfig): Promise; /** * Get email by Id * Get email by Id */ getEmailById(params: { id: string; }, options?: AxiosRequestConfig): Promise; /** * Cancel a scheduled email message. * Post the messageId for the API to delete a scheduled email message. <br /> */ cancelScheduledEmailMessage(params: { emailMessageId: string; }, options?: AxiosRequestConfig): Promise; /** * Export messages by location ID * Export messages for a specific location with cursor-based pagination support. Response includes messageType (string), source, and subType fields. The channel parameter is optional - if not provided, all non-email message types will be returned including activity messages (opportunity updates, appointments, etc.). */ exportMessagesByLocation(params: { locationId: string; limit?: number; cursor?: string; sortBy?: string; sortOrder?: string; conversationId?: string; contactId?: string; channel?: string; startDate?: string; endDate?: string; }, options?: AxiosRequestConfig): Promise; /** * Get message by message id * Get message by message id. */ getMessage(params: { id: string; }, options?: AxiosRequestConfig): Promise; /** * Get messages by conversation id * Get messages by conversation id. */ getMessages(params: { conversationId: string; lastMessageId?: string; limit?: number; type?: string; }, options?: AxiosRequestConfig): Promise; /** * Send a new message * Post the necessary fields for the API to send a new message. */ sendANewMessage(requestBody: Models.SendMessageBodyDto, options?: AxiosRequestConfig): Promise; /** * Add an inbound message * Post the necessary fields for the API to add a new inbound message. <br /> */ addAnInboundMessage(requestBody: Models.ProcessMessageBodyDto, options?: AxiosRequestConfig): Promise; /** * Add an external outbound call * Post the necessary fields for the API to add a new outbound call. */ addAnOutboundMessage(requestBody: Models.ProcessOutboundMessageBodyDto, options?: AxiosRequestConfig): Promise; /** * Send a review reply to Google My Business * Post a reply to a customer review on Google My Business */ sendReviewReply(requestBody: Models.SendReviewReplyDto, options?: AxiosRequestConfig): Promise; /** * Cancel a scheduled message. * Post the messageId for the API to delete a scheduled message. <br /> */ cancelScheduledMessage(params: { messageId: string; }, options?: AxiosRequestConfig): Promise; /** * Upload file attachments * Post the necessary fields for the API to upload files. The files need to be a buffer with the key "fileAttachment". <br /><br /> The allowed file types are: <br/> <ul><li>JPG</li><li>JPEG</li><li>PNG</li><li>MP4</li><li>MPEG</li><li>ZIP</li><li>RAR</li><li>PDF</li><li>DOC</li><li>DOCX</li><li>TXT</li><li>MP3</li><li>WAV</li></ul> <br /><br /> The API will return an object with the URLs */ uploadFileAttachments(requestBody: any, options?: AxiosRequestConfig): Promise; /** * Initiate file upload to GCS * Generates a signed URL for direct file upload to Google Cloud Storage. Returns a signed URL valid for 15 minutes. Upload file via PUT request, then call /complete to finalize. */ initiateFileUpload(requestBody: Models.InitiateFileUploadDto, options?: AxiosRequestConfig): Promise; /** * Complete file upload * Validates the uploaded file in GCS and returns the public URL. Call this endpoint after successfully uploading the file to the signed URL. */ completeFileUpload(requestBody: Models.CompleteFileUploadDto, options?: AxiosRequestConfig): Promise; /** * Update message status * Post the necessary fields for the API to update message status. */ updateMessageStatus(params: { messageId: string; }, requestBody: Models.UpdateMessageStatusDto, options?: AxiosRequestConfig): Promise; /** * Add message attachments * Set attachments on an existing message (replaces existing). Maximum 5 URLs. Supported for TYPE_CUSTOM_CALL (34) and TYPE_CALL (1) with subType EXTERNAL_CALL. */ addMessageAttachments(params: { messageId: string; }, requestBody: Models.AddMessageAttachmentsDto, options?: AxiosRequestConfig): Promise; /** * Get Recording by Message ID * Get the recording for a message by passing the message id */ getMessageRecording(params: { locationId: string; messageId: string; }, options?: AxiosRequestConfig): Promise; /** * Get transcription by Message ID * Get the recording transcription for a message by passing the message id */ getMessageTranscription(params: { locationId: string; messageId: string; }, options?: AxiosRequestConfig): Promise; /** * Download transcription by Message ID * Download the recording transcription for a message by passing the message id */ downloadMessageTranscription(params: { locationId: string; messageId: string; }, options?: AxiosRequestConfig): Promise; /** * Agent/Ai-Bot is typing a message indicator for live chat * Agent/AI-Bot will call this when they are typing a message in live chat message */ liveChatAgentTyping(requestBody: Models.UserTypingBody, options?: AxiosRequestConfig): Promise; /** * Create Conversation * Creates a new conversation with the data provided */ createConversation(requestBody: Models.CreateConversationDto, options?: AxiosRequestConfig): Promise; } export default Conversations; //# sourceMappingURL=conversations.d.ts.map