dify/packages/contracts/generated/api/console/instruction-generate/orpc.gen.ts

67 lines
2.0 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import { oc } from '@orpc/contract'
import * as z from 'zod'
import {
zPostInstructionGenerateBody,
zPostInstructionGenerateResponse,
zPostInstructionGenerateTemplateBody,
zPostInstructionGenerateTemplateResponse,
} from './zod.gen'
/**
* Get instruction generation template
*
* 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:
'Get instruction generation template\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: 'postInstructionGenerateTemplate',
path: '/instruction-generate/template',
tags: ['console'],
})
.input(z.object({ body: zPostInstructionGenerateTemplateBody }))
.output(zPostInstructionGenerateTemplateResponse)
export const template = {
post,
}
/**
* Generate instruction for workflow nodes or general use
*
* 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 post2 = oc
.route({
deprecated: true,
description:
'Generate instruction for workflow nodes or general use\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: 'postInstructionGenerate',
path: '/instruction-generate',
tags: ['console'],
})
.input(z.object({ body: zPostInstructionGenerateBody }))
.output(zPostInstructionGenerateResponse)
export const instructionGenerate = {
post: post2,
template,
}
export const contract = {
instructionGenerate,
}