feat: add default workflow definition endpoint and related functionality

This commit is contained in:
mlogclub
2026-06-25 18:50:38 +08:00
parent 34d70e769f
commit b7056b59b5
7 changed files with 48 additions and 245 deletions
+4
View File
@@ -821,6 +821,10 @@ export function fetchAIWorkflowNodeSpecs() {
return request<AIWorkflowNodeSpec[]>("/api/dashboard/ai-workflow/node-spec/list")
}
export function fetchAIWorkflowDefaultDefinition() {
return request<AIWorkflowDefinition>("/api/dashboard/ai-workflow/default-definition")
}
export function fetchAIWorkflowVersions(query?: Record<string, string | number | undefined>) {
return request<PageResult<AIWorkflowVersion>>(
`/api/dashboard/ai-workflow/version/list${toQueryString(query)}`