mirror of
https://github.com/langgenius/dify.git
synced 2026-05-06 21:01:18 -04:00
34 lines
793 B
TypeScript
34 lines
793 B
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
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Get advanced prompt templates based on app mode and model configuration',
|
|
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,
|
|
}
|