mirror of
https://github.com/langgenius/dify.git
synced 2026-06-09 01:11:11 +08:00
Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com> Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
36 lines
1.1 KiB
TypeScript
36 lines
1.1 KiB
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
|
|
*
|
|
* Generated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
export const post = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Generate a Dify workflow graph from natural language\n\nGenerated contract types may be inaccurate because backend OpenAPI annotations are incomplete. Do not migrate callers until the generated contract is accurate.',
|
|
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,
|
|
}
|