dify/packages/contracts/generated/api/console/workflow-generate/orpc.gen.ts
Stephen Zhou 5d77c0af08
refactor: fix OpenAPI contract generation schemas (#37387)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 14:25:53 +00:00

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,
}