Extend human input runtime data types

This commit is contained in:
JzoNg 2026-04-22 07:39:22 +08:00
parent 5faa4f9520
commit 37f79ee5d1

View File

@ -331,7 +331,7 @@ export type HumanInputFormData = {
inputs: FormInputItem[]
actions: UserAction[]
form_token: string
resolved_default_values: Record<string, string>
resolved_default_values: Record<string, HumanInputResolvedValue>
display_in_ui: boolean
expiration_time: number
}
@ -343,12 +343,17 @@ export type HumanInputRequiredResponse = {
data: HumanInputFormData
}
export type HumanInputFormValue = string | FileResponse | FileResponse[]
export type HumanInputResolvedValue = string | FileResponse | FileResponse[]
export type HumanInputFilledFormData = {
node_id: string
node_title: string
rendered_content: string
action_id: string
action_text: string
form_data?: Record<string, HumanInputFormValue>
}
export type HumanInputFormFilledResponse = {