/** * This file was auto-generated by Fern from our API Definition. */ /** * @example * { * name: "My Updated Automation", * workflow: [{ * kind: "nsfw" * }, { * kind: "description" * }, { * kind: "image", * ref: "big_thumbnail" * }, { * kind: "video", * next: [{ * kind: "subtitle", * ref: "subtitle" * }] * }], * status: "active" * } */ export interface AutomationsUpdateRequest { name?: string; description?: string; trigger?: AutomationsUpdateRequest.Trigger; workflow?: AutomationsUpdateRequest.Workflow.Item[]; status?: AutomationsUpdateRequest.Status; } export declare namespace AutomationsUpdateRequest { interface Trigger { kind: "event"; event: "media.created"; } type Workflow = Workflow.Item[]; namespace Workflow { interface Item { kind: Item.Kind; ref?: string; next?: Item.Next.Item[]; } namespace Item { type Kind = "video" | "image" | "audio" | "chapters" | "subtitles" | "thumbnails" | "nsfw" | "speech" | "description" | "outline" | "prompt" | "http"; const Kind: { readonly Video: "video"; readonly Image: "image"; readonly Audio: "audio"; readonly Chapters: "chapters"; readonly Subtitles: "subtitles"; readonly Thumbnails: "thumbnails"; readonly Nsfw: "nsfw"; readonly Speech: "speech"; readonly Description: "description"; readonly Outline: "outline"; readonly Prompt: "prompt"; readonly Http: "http"; }; type Next = Next.Item[]; namespace Next { interface Item { kind?: string; ref?: string; } } } } type Status = "active" | "paused"; const Status: { readonly Active: "active"; readonly Paused: "paused"; }; }