/* generated using openapi-typescript-codegen -- do not edit */ /* istanbul ignore file */ /* tslint:disable */ /* eslint-disable */ /** * Serializer for Workflow CRUD operations. * * Provides basic ReactFlow JSON validation (Phase 1) to ensure definitions * are renderable, while allowing draft workflows that may not be executable. * * Comprehensive execution validation (Phase 2) is available via the * validate action endpoint. * * Fields: * - All model fields are exposed * - Platform and creator are set automatically from URL context * - Read-only fields: id, unique_id, created_at, updated_at * - Chat settings (chat_name, chat_greeting, etc.) update the entry_mentor */ export type Workflow = { readonly id: number; readonly unique_id: string; name: string; description?: string; /** * Workflow definition in ReactFlow format */ definition: any; is_active?: boolean; is_template?: boolean; /** * Parent workflow if this is a template variant */ parent_workflow?: number | null; readonly platform: number; readonly platform_key: string; readonly platform_name: string; /** * edX user ID */ readonly created_by: number; readonly created_by_username: string; readonly created_at: string; readonly updated_at: string; /** * Get the number of nodes in the workflow definition. */ readonly node_count: number; /** * Get the number of edges in the workflow definition. */ readonly edge_count: number; readonly entry_mentor_id: string; /** * Display name for chat (updates entry_mentor.name) */ chat_name?: string; /** * Proactive greeting message for chat (updates entry_mentor.proactive_response) */ chat_proactive_response?: string; };