import type * as ElevenLabs from "../index"; /** * A template run and its outputs. Every output exists from the moment the * run is created and reports its own `status`; the run's `status` rolls them * up, and the run is finished once it is `completed` or `failed`. */ export interface TemplateRunResponse { /** The unique identifier of the run. */ id: string; /** The template this run executed, so a webhook consumer running several templates can tell their runs apart without keeping a run-to-template map. */ templateId: string; /** The template version this run executed. Resolved when the run is created, so a run started with `latest` records the concrete version it ran. */ versionId: string; /** The run's status, rolled up from its outputs: `pending` until an output starts, `generating` while any output is unfinished, `completed` once every output has completed, and `failed` once every output has finished and at least one failed. `completed` and `failed` are terminal: the `flows_template_run` webhook fires once the run reaches either. */ status: ElevenLabs.TemplateRunStatus; /** The run's outputs, keyed by output port id. Each is a `TemplateOutput` discriminated on `type`, the `type` of its port's `content_schema`. */ outputs: Record; }