mirror of
https://github.com/langgenius/dify.git
synced 2026-05-05 18:00:59 -04:00
30 lines
725 B
TypeScript
30 lines
725 B
TypeScript
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import { oc } from '@orpc/contract'
|
|
import * as z from 'zod'
|
|
|
|
import { zGetCodeBasedExtensionQuery, zGetCodeBasedExtensionResponse } from './zod.gen'
|
|
|
|
/**
|
|
* Get code-based extension data by module name
|
|
*/
|
|
export const get = oc
|
|
.route({
|
|
description: 'Get code-based extension data by module name',
|
|
inputStructure: 'detailed',
|
|
method: 'GET',
|
|
operationId: 'getCodeBasedExtension',
|
|
path: '/code-based-extension',
|
|
tags: ['console'],
|
|
})
|
|
.input(z.object({ query: zGetCodeBasedExtensionQuery.optional() }))
|
|
.output(zGetCodeBasedExtensionResponse)
|
|
|
|
export const codeBasedExtension = {
|
|
get,
|
|
}
|
|
|
|
export const contract = {
|
|
codeBasedExtension,
|
|
}
|