import { z } from "zod"; export const Widget = z.object({ id: 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 WidgetT = z.infer;