import type * as ElevenLabs from "../index"; export interface LeadDetailResponse { leadId: string; /** The `id` given to this recipient when the campaign was created. */ recipientId?: string; /** The number the lead's next call dials. It changes when the lead moves on to another listed number or the contact asks to be called on a different one. */ phoneNumber: string; /** The lead's listed numbers, in calling order. */ phoneNumbers?: string[]; /** The position in `phone_numbers` of the number being called. */ phoneNumbersIndex: number; /** The timezone the recipient's calling windows are read in; unset when the lead follows the campaign's. */ timezoneOverride?: string; /** The contact's identity: the `user_id` submitted in `conversation_initiation_client_data`, else the lead's phone number. */ userId: string; /** Calls placed, counted against the policy's `max_total_calls`. */ attemptCount: number; /** Failed calls to the current number; resets on a new number. */ failureCount: number; /** Callbacks the contact asked for. */ callbackCount: number; /** Times the contact asked to be called on another number. */ redirectCount: number; /** Set when the contact asked not to be called, the lead was removed, or the campaign stopped. The lead isn't called again. */ doNotCall: boolean; /** Why the lead won't be called again; unset while it may be. */ terminalDisposition?: ElevenLabs.TerminalDisposition; /** When the lead joined the campaign; unset on older leads. */ createdAtUnix?: number; updatedAtUnix: number; /** The dynamic variables submitted for the lead, with secrets redacted. */ dynamicVariables: Record; /** The conversation overrides submitted for the lead. */ overrides: ElevenLabs.FlattenedConfigOverrides; /** The lead's latest message delivery; set on message campaigns. */ delivery?: ElevenLabs.LeadDeliveryView; }