form content

This commit is contained in:
JzoNg
2025-08-12 13:59:28 +08:00
parent 36acd0b9dd
commit bdf1e9ed3b
5 changed files with 206 additions and 12 deletions

View File

@ -50,6 +50,11 @@ export type FormInputItem = {
output_variable_name: string
// only text-input and paragraph support placeholder
placeholder?: FormInputItemPlaceholder
options: any[]
max_length: number
allowed_file_extensions?: string[]
allowed_file_types?: string[]
allowed_file_upload_methods?: string[]
}
export enum UserActionButtonType {
@ -64,3 +69,15 @@ export type UserAction = {
title: string
button_style: UserActionButtonType
}
export type GeneratedFormInputItem = {
type: InputVarType
output_variable_name: string
// only text-input and paragraph support placeholder
placeholder?: string
options: any[]
max_length: number
allowed_file_extensions?: string[]
allowed_file_types?: string[]
allowed_file_upload_methods?: string[]
}