import { z } from "zod"; // generated from json-schema-to-zod export const WidgetRequest = z.object({ type: z.string().regex(new RegExp("create|delete|update")), requestId: z.string(), widgetId: z.string(), owner: z.string().regex(new RegExp("[A-Za-z ]+")), label: z.string().optional(), description: z.string().optional(), otherAttributes: z .array(z.object({ name: z.string(), value: z.string() })) .optional(), }); export type WidgetRequestT = z.infer;