2
0

(buttons) Allow dynamic buttons from variable

Closes #237
This commit is contained in:
Baptiste Arnaud
2023-02-23 14:44:37 +01:00
parent 84628109d0
commit 2ff6991ca7
28 changed files with 290 additions and 116 deletions

View File

@@ -106,7 +106,12 @@ const scriptToExecuteSchema = z.object({
args: z.array(
z.object({
id: z.string(),
value: z.string().or(z.number()).or(z.boolean()).nullish(),
value: z
.string()
.or(z.number())
.or(z.boolean())
.or(z.array(z.string()))
.nullish(),
})
),
})