* 创建 Workflow * @param definition Workflow 定义 * @returns Workflow 信息
(definition: WorkflowDefinition)
| 38 | * @returns Workflow 信息 |
| 39 | */ |
| 40 | async create(definition: WorkflowDefinition): Promise<WorkflowInfo> { |
| 41 | return this.request<WorkflowInfo>("/v1/workflows", { |
| 42 | method: "POST", |
| 43 | body: definition, |
| 44 | }); |
| 45 | } |
| 46 | |
| 47 | /** |
| 48 | * 获取 Workflow 详情 |