import type * as Pinnacle from "../index.mjs"; /** * Conversation that was found. */ export interface Conversation { /** The unique identifier of the brand associated with this conversation. This identifier is a string that always begins with the prefix `b_`, for example: `b_1234567890`. */ brandId: string | null; /** Campaign information if this conversation is part of a marketing campaign. This is an object that contains the campaign ID and type. */ campaign: Pinnacle.CampaignQuery | null; /** Contact information for the recipient in a conversation. */ contact: Conversation.Contact; /** ISO 8601 timestamp when the conversation was created. */ createdAt: string; /** Unique identifier for the conversation. This identifier is a string that always begins with the prefix `conv_`, for example: `conv_1234567890`. */ id: string; /** Free-form notes or comments about the conversation. */ notes: string; /** * The sender of messages in this conversation. Can be: * - A phone number with its capabilities and metadata * - An RCS agent with ID and name * - `null` if no sender is associated */ sender: Conversation.Sender | null; /** ISO 8601 timestamp when the conversation was last updated. */ updatedAt: string; } export declare namespace Conversation { /** * Contact information for the recipient in a conversation. */ interface Contact { /** Unique ID of the contact. This identifier is a string that always begins with the prefix `co_`, for example: `co_1234567890`. */ id: string; /** The contact's phone number in E.164 format. */ phoneNumber: string; } /** * The sender of messages in this conversation. Can be: * - A phone number with its capabilities and metadata * - An RCS agent with ID and name * - `null` if no sender is associated */ type Sender = /** * Information about a phone number sender in a conversation. */ { capabilities: Pinnacle.PhoneCapabilities; createdAt: string; isSandbox: boolean; phoneNumber: string; updatedAt: string; } /** * Information about an RCS agent sender in a conversation. */ | { agentId: string; agentName: string; }; }