mirror of
https://github.com/langgenius/dify.git
synced 2026-05-26 04:00:39 -04:00
40 lines
1.1 KiB
TypeScript
40 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 { zGetAppPromptTemplatesQuery, zGetAppPromptTemplatesResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Get advanced prompt templates based on app mode and model configuration
|
|
*
|
|
* 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 get = oc
|
|
.route({
|
|
deprecated: true,
|
|
description:
|
|
'Get advanced prompt templates based on app mode and model configuration\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: 'GET',
|
|
operationId: 'getAppPromptTemplates',
|
|
path: '/app/prompt-templates',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetAppPromptTemplatesQuery }))
|
|
.output(zGetAppPromptTemplatesResponse)
|
|
|
|
export const promptTemplates = {
|
|
get,
|
|
}
|
|
|
|
export const app = {
|
|
promptTemplates,
|
|
}
|
|
|
|
export const contract = {
|
|
app,
|
|
}
|