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

export interface UserMessage {
    /** The role of the user in the conversation. */
    role: string;
    /** The message content from the user. */
    message: string;
    /** The timestamp when the message was sent. */
    time: number;
    /** The timestamp when the message ended. */
    endTime: number;
    /** The number of seconds from the start of the conversation. */
    secondsFromStart: number;
    /** The duration of the message in seconds. */
    duration?: number | undefined;
    /** Indicates if the message was filtered for security reasons. */
    isFiltered?: boolean | undefined;
    /** List of detected security threats if the message was filtered. */
    detectedThreats?: string[] | undefined;
    /** The original message before filtering (only included if content was filtered). */
    originalMessage?: string | undefined;
    /** The metadata associated with the message. Currently used to store the transcriber's word level confidence. */
    metadata?: Record<string, unknown> | undefined;
    /** Stable speaker label for diarized user speakers (e.g., "Speaker 1"). */
    speakerLabel?: string | undefined;
}
