mirror of
https://github.com/langgenius/dify.git
synced 2026-11-13 23:06:40 +08:00
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
46 lines
1.1 KiB
TypeScript
Generated
46 lines
1.1 KiB
TypeScript
Generated
// This file is auto-generated by @hey-api/openapi-ts
|
|
|
|
import * as z from 'zod'
|
|
|
|
/**
|
|
* ErrorResponse
|
|
*
|
|
* Documented non-2xx body emitted by ``register_external_error_handlers``.
|
|
*
|
|
* ``params`` and ``details`` appear only on the errors that set them. The schema
|
|
* stays open because ``HTTPException.data`` may carry extra keys.
|
|
*/
|
|
export const zErrorResponse = z.object({
|
|
code: z.string(),
|
|
details: z.record(z.string(), z.unknown()).optional(),
|
|
message: z.string(),
|
|
params: z.string().optional(),
|
|
status: z.int(),
|
|
})
|
|
|
|
/**
|
|
* CodeBasedExtensionItemResponse
|
|
*/
|
|
export const zCodeBasedExtensionItemResponse = z.object({
|
|
form_schema: z.array(z.record(z.string(), z.unknown())).nullish(),
|
|
label: z.record(z.string(), z.unknown()).nullish(),
|
|
name: z.string(),
|
|
})
|
|
|
|
/**
|
|
* CodeBasedExtensionResponse
|
|
*/
|
|
export const zCodeBasedExtensionResponse = z.object({
|
|
data: z.array(zCodeBasedExtensionItemResponse),
|
|
module: z.string(),
|
|
})
|
|
|
|
export const zGetCodeBasedExtensionQuery = z.object({
|
|
module: z.string(),
|
|
})
|
|
|
|
/**
|
|
* Success
|
|
*/
|
|
export const zGetCodeBasedExtensionResponse = zCodeBasedExtensionResponse
|