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

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

export interface SimulationRunItem {
    /** This is the unique identifier for the simulation run item. */
    id: string;
    /** This is the unique identifier for the organization. */
    orgId: string;
    /** This is the ID of the simulation this run belongs to. */
    simulationId: string;
    /** This is the current status of the run. */
    status: Vapi.SimulationRunItemStatus;
    /** This is the ISO 8601 date-time string of when the run was queued. */
    queuedAt: string;
    /** This is the ISO 8601 date-time string of when the run started. */
    startedAt?: string | undefined;
    /** This is the ISO 8601 date-time string of when the run completed. */
    completedAt?: string | undefined;
    /** This is the ISO 8601 date-time string of when the run failed. */
    failedAt?: string | undefined;
    /** This is the ISO 8601 date-time string of when the run was canceled. */
    canceledAt?: string | undefined;
    /** This is the reason for failure. */
    failureReason?: string | undefined;
    /** This is the ID of the target Vapi call (the assistant being tested). */
    callId?: string | undefined;
    /** This is the ISO 8601 date-time string of when the run item was created. */
    createdAt: string;
    /** This is the ISO 8601 date-time string of when the run item was last updated. */
    updatedAt: string;
    /** This is the ID of the parent run (batch/group). */
    runId?: string | undefined;
    /** Hooks configured for this simulation run item */
    hooks?: Vapi.SimulationRunItemHooksItem[] | undefined;
    /** This is the iteration number (1-indexed) when run with iterations > 1. */
    iterationNumber?: number | undefined;
    /** This is the session ID for chat-based simulations (webchat transport). */
    sessionId?: string | undefined;
    /** This is the scenario ID at run creation time. */
    scenarioId?: string | undefined;
    /** This is the personality ID at run creation time. */
    personalityId?: string | undefined;
    /** This is the metadata containing snapshots and call data. */
    metadata?: Vapi.SimulationRunItemMetadata | undefined;
    /** This is the results of the simulation run. */
    results?: Vapi.SimulationRunItemResults | undefined;
    /** This is the AI-generated improvement suggestions for failed runs. */
    improvementSuggestions?: Vapi.SimulationRunItemImprovements | undefined;
    /** This is the configuration for how this simulation run executes. */
    configurations?: Vapi.SimulationRunConfiguration | undefined;
}
