mirror of
https://github.com/langgenius/dify.git
synced 2026-09-21 05:11:22 +08:00
refactor(api): remove remaining legacy field remnants (#37967)
This commit is contained in:
@@ -4,7 +4,15 @@ export type ClientOptions = {
|
||||
baseUrl: `${string}://${string}/console/api` | (string & {})
|
||||
}
|
||||
|
||||
export type SchemaDefinitionsResponse = unknown
|
||||
export type SchemaDefinitionsResponse = Array<SchemaDefinitionItemResponse>
|
||||
|
||||
export type SchemaDefinitionItemResponse = {
|
||||
label: string
|
||||
name: string
|
||||
schema: {
|
||||
[key: string]: unknown
|
||||
}
|
||||
}
|
||||
|
||||
export type GetSpecSchemaDefinitionsData = {
|
||||
body?: never
|
||||
|
||||
@@ -2,10 +2,19 @@
|
||||
|
||||
import * as z from 'zod'
|
||||
|
||||
/**
|
||||
* SchemaDefinitionItemResponse
|
||||
*/
|
||||
export const zSchemaDefinitionItemResponse = z.object({
|
||||
label: z.string(),
|
||||
name: z.string(),
|
||||
schema: z.record(z.string(), z.unknown()),
|
||||
})
|
||||
|
||||
/**
|
||||
* SchemaDefinitionsResponse
|
||||
*/
|
||||
export const zSchemaDefinitionsResponse = z.unknown()
|
||||
export const zSchemaDefinitionsResponse = z.array(zSchemaDefinitionItemResponse)
|
||||
|
||||
/**
|
||||
* Success
|
||||
|
||||
Reference in New Issue
Block a user