( workflowId: string )
| 125 | * Workflows with no inputs or no active deployment use an empty object schema. |
| 126 | */ |
| 127 | export async function generateParameterSchemaForWorkflow( |
| 128 | workflowId: string |
| 129 | ): Promise<Record<string, unknown>> { |
| 130 | const deployed = await loadDeployedWorkflowState(workflowId) |
| 131 | if (!deployed?.blocks) return EMPTY_SCHEMA |
| 132 | return generateSchemaFromBlocks(deployed.blocks as Record<string, unknown>) |
| 133 | } |
| 134 | |
| 135 | /** |
| 136 | * Load a workflow's active deployed state and return its start-trigger input |
no test coverage detected