dify/packages/contracts/generated/api/console/form/zod.gen.ts
Stephen Zhou 5d77c0af08
refactor: fix OpenAPI contract generation schemas (#37387)
Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
2026-06-12 14:25:53 +00:00

43 lines
1.0 KiB
TypeScript

// This file is auto-generated by @hey-api/openapi-ts
import * as z from 'zod'
/**
* ConsoleHumanInputFormDefinitionResponse
*/
export const zConsoleHumanInputFormDefinitionResponse = z.record(z.string(), z.unknown())
/**
* HumanInputFormSubmitPayload
*/
export const zHumanInputFormSubmitPayload = z.object({
action: z.string(),
form_inputs: z.record(z.string(), z.unknown()),
inputs: z.record(z.string(), z.unknown()),
})
/**
* ConsoleHumanInputFormSubmitResponse
*/
export const zConsoleHumanInputFormSubmitResponse = z.record(z.string(), z.unknown())
export const zGetFormHumanInputByFormTokenPath = z.object({
form_token: z.string(),
})
/**
* Success
*/
export const zGetFormHumanInputByFormTokenResponse = zConsoleHumanInputFormDefinitionResponse
export const zPostFormHumanInputByFormTokenBody = zHumanInputFormSubmitPayload
export const zPostFormHumanInputByFormTokenPath = z.object({
form_token: z.string(),
})
/**
* Success
*/
export const zPostFormHumanInputByFormTokenResponse = zConsoleHumanInputFormSubmitResponse