mirror of
https://github.com/langgenius/dify.git
synced 2026-06-13 20:24:18 +08:00
30 lines
718 B
TypeScript
30 lines
718 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import { zPostWorkflowGenerateBody, zPostWorkflowGenerateResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Generate a Dify workflow graph from natural language
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
description: 'Generate a Dify workflow graph from natural language',
|
|
inputStructure: 'detailed',
|
|
method: 'POST',
|
|
operationId: 'postWorkflowGenerate',
|
|
path: '/workflow-generate',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ body: zPostWorkflowGenerateBody }))
|
|
.output(zPostWorkflowGenerateResponse)
|
|
|
|
export const workflowGenerate = {
|
|
post,
|
|
}
|
|
|
|
export const contract = {
|
|
workflowGenerate,
|
|
}
|