// This file was auto-generated by Fern from our API Definition.

import type * as Intercom from "../../../index.js";

/**
 * Represents a phone call in Intercom
 */
export interface Call {
    /** String representing the object's type. Always has the value `call`. */
    type?: string;
    /** The id of the call. */
    id?: string;
    /** The id of the conversation associated with the call, if any. */
    conversation_id?: string;
    /** The id of the admin associated with the call, if any. */
    admin_id?: string;
    /** The id of the contact associated with the call, if any. */
    contact_id?: string;
    /** The current state of the call. */
    state?: string;
    initiated_at?: Intercom.Datetime;
    answered_at?: Intercom.Datetime;
    ended_at?: Intercom.Datetime;
    created_at?: Intercom.Datetime;
    updated_at?: Intercom.Datetime;
    /** API URL to download or redirect to the call recording if available. */
    recording_url?: string;
    /** API URL to download or redirect to the call transcript if available. */
    transcription_url?: string;
    /** The type of call. */
    call_type?: string;
    /** The direction of the call. */
    direction?: string;
    /** The reason for the call end, if applicable. */
    ended_reason?: string;
    /** The phone number involved in the call, in E.164 format. */
    phone?: string;
    /** API URL to the AI Agent (Fin) call recording if available. */
    fin_recording_url?: string;
    /** API URL to the AI Agent (Fin) call transcript if available. */
    fin_transcription_url?: string;
}
