We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 425a4ac commit 9d0fb48Copy full SHA for 9d0fb48
packages/frontend/src/pages/AiBuilder/schema.ts
@@ -0,0 +1,13 @@
1
+import z from 'zod'
2
+
3
+export const AI_FORM_SCHEMA = z.object({
4
+ flowName: z.string().trim().min(1, 'Flow name is required'),
5
+ trigger: z.string().trim(),
6
+ actions: z
7
+ .string()
8
+ .trim()
9
+ .min(30, 'Description must be at least 30 characters')
10
+ .max(3000, 'Description must not exceed 3000 characters'),
11
+})
12
13
+export type AiFormData = z.infer<typeof AI_FORM_SCHEMA>
0 commit comments