import type * as ElevenLabs from "../index"; /** * Payload containing the full conversation history sent by ElevenLabs each time * the user finishes speaking. */ export interface UserTranscriptPayload { /** The message type identifier. */ type: "user_transcript"; /** * Full conversation history up to and including the latest user turn, ordered * chronologically. Contains both `user` and `agent` turns. */ userTranscript: ElevenLabs.TranscriptMessage[]; /** * Monotonically increasing identifier for this transcript event. Pass this value * back in every `agent_response` message so ElevenLabs can correlate responses and * discard any that belong to an interrupted turn. */ eventId?: number; }