/** * This file was auto-generated by Fern from our API Definition. */ import * as Flatfile from "../../../index"; /** * Data for updating an existing thread * * @example * { * status: Flatfile.ThreadStatus.Active * } * * @example * { * state: { * "lastMessage": "Hello there" * }, * stateUpdateStrategy: Flatfile.StateUpdateStrategy.Replace * } */ export interface ThreadApiUpdateData { /** Updated resource ID */ resourceId?: string; /** Updated metadata */ metadata?: Flatfile.ThreadMetadata; /** Updated source */ source?: string; /** Updated state information */ state?: Flatfile.ThreadState; /** Updated thread status */ status?: Flatfile.ThreadStatus; /** Strategy to use when updating state (defaults to upsert) */ stateUpdateStrategy?: Flatfile.StateUpdateStrategy; }