import type * as Samsara from "../index.js"; /** * Full detail of a voice agent session. */ export interface AgentStudioVoiceSessionDetailResponseBody { /** Identifier of the Agent Studio agent that handled the session. */ agentId: string; /** Display name of the agent that handled the session. */ agentName: string; /** Lifecycle events that occurred during the session, ordered by time ascending. */ callEvents: Samsara.AgentStudioVoiceSessionCallEventResponseBody[]; /** Duration of the session, in milliseconds. */ durationMilliseconds: number; /** Time at which the session started, in RFC 3339 format. */ happenedAtTime: string; /** Unique identifier for the voice session. */ id: string; /** Human-readable name of the call recipient (driver name, dashboard user name, or phone number). Empty string when the recipient could not be resolved. */ recipient: string; /** Presigned URL for the call recording. Empty string when no recording is available (e.g. the session has not completed). Expires at recordingUrlExpiresAtTime. */ recordingUrl: string; /** Time at which recordingUrl stops working, in RFC 3339 format. Empty string when recordingUrl is empty. */ recordingUrlExpiresAtTime: string; /** Lifecycle status of the session. Valid values: `completed`, `running`, `failed`, `unknown` */ sessionStatus: AgentStudioVoiceSessionDetailResponseBody.SessionStatus; /** Tool calls made by the agent during the session, ordered by start time ascending. */ toolCalls: Samsara.AgentStudioVoiceSessionToolCallResponseBody[]; /** Conversation transcript, ordered by start time ascending. */ transcript: Samsara.AgentStudioVoiceSessionTranscriptEntryResponseBody[]; /** Human-readable name of the trigger that initiated the session, as configured in Automations. Empty string when no trigger is associated with the session. */ triggerType: string; /** Time at which the session was last updated, in RFC 3339 format. */ updatedAtTime: string; } export declare namespace AgentStudioVoiceSessionDetailResponseBody { /** Lifecycle status of the session. Valid values: `completed`, `running`, `failed`, `unknown` */ const SessionStatus: { readonly Completed: "completed"; readonly Running: "running"; readonly Failed: "failed"; readonly Unknown: "unknown"; }; type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus]; }