/** * This file was auto-generated by Fern from our API Definition. */ import * as Flatfile from "../../../index"; /** * Data required to create a new thread * * @example * { * resourceId: "us_sp_456def", * status: Flatfile.ThreadStatus.Ready, * metadata: { * "origin": "customer-chat" * } * } */ export interface ThreadApiCreateData { /** The resource ID this thread is associated with */ resourceId: string; /** Additional metadata for the thread */ metadata?: Flatfile.ThreadMetadata; /** The source/origin of this thread */ source?: string; /** Persistent state for the thread */ state?: Flatfile.ThreadState; /** Initial status of the thread */ status: Flatfile.ThreadStatus; }