export validators

This commit is contained in:
Robert 2024-03-09 03:14:54 +07:00
parent 5ff78c461b
commit e4a2ed92b2
No known key found for this signature in database
GPG Key ID: F631C7FD957D5F22

View File

@ -1,11 +1,11 @@
import { z } from "zod";
const waitActionSchema = z.object({
export const waitActionSchema = z.object({
actionType: z.literal("wait"),
waitFor: z.number(),
});
const commentActionSchema = z.object({
export const commentActionSchema = z.object({
actionType: z.literal("comment"),
text: z.string().nullable(),
fileUrls: z.array(z.string()),