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

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

export interface Campaign {
    /** This is the status of the campaign. */
    status: Vapi.CampaignStatus;
    /** This is the explanation for how the campaign ended. */
    endedReason?: Vapi.CampaignEndedReason | undefined;
    /** This is the name of the campaign. This is just for your own reference. */
    name: string;
    /** This is the assistant ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used. */
    assistantId?: string | undefined;
    /** This is the workflow ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used. */
    workflowId?: string | undefined;
    /** This is the squad ID that will be used for the campaign calls. Note: Only one of assistantId, workflowId, or squadId can be used. */
    squadId?: string | undefined;
    /** This is the phone number ID that will be used for the campaign calls. Required if dialPlan is not provided. Note: phoneNumberId and dialPlan are mutually exclusive. */
    phoneNumberId?: string | undefined;
    /** This is a list of dial entries, each specifying a phone number and the customers to call using that number. Use this when you want different phone numbers to call different sets of customers. Note: phoneNumberId and dialPlan are mutually exclusive. */
    dialPlan?: Vapi.DialPlanEntry[] | undefined;
    /** This is the schedule plan for the campaign. Calls will start at startedAt and continue until your organization’s concurrency limit is reached. Any remaining calls will be retried for up to one hour as capacity becomes available. After that hour or after latestAt, whichever comes first, any calls that couldn’t be placed won’t be retried. */
    schedulePlan?: Vapi.SchedulePlan | undefined;
    /** These are the customers that will be called in the campaign. Required if dialPlan is not provided. */
    customers?: Vapi.CreateCustomerDto[] | undefined;
    /** This is the unique identifier for the campaign. */
    id: string;
    /** This is the unique identifier for the org that this campaign belongs to. */
    orgId: string;
    /** This is the ISO 8601 date-time string of when the campaign was created. */
    createdAt: string;
    /** This is the ISO 8601 date-time string of when the campaign was last updated. */
    updatedAt: string;
    /** This is a map of call IDs to campaign call details. */
    calls: Record<string, unknown>;
    /** This is the number of calls that have been scheduled. */
    callsCounterScheduled: number;
    /** This is the number of calls that have been queued. */
    callsCounterQueued: number;
    /** This is the number of calls that have been in progress. */
    callsCounterInProgress: number;
    /** This is the number of calls whose ended reason is 'voicemail'. */
    callsCounterEndedVoicemail: number;
    /** This is the number of calls that have ended. */
    callsCounterEnded: number;
}
