import { z } from "zod";
const dashboardWidgetIdSchema = z.string().min(1);
const dashboardLayoutItemSchema = z.object({
  id: z.string().uuid(),
  widgetId: dashboardWidgetIdSchema,
  order: z.number().int().min(0),
  priority: z.number().int().min(0).optional(),
  size: z.enum(["sm", "md", "lg"]).optional(),
  settings: z.unknown().optional()
});
const dashboardLayoutSchema = z.object({
  items: z.array(dashboardLayoutItemSchema)
});
const dashboardLayoutItemPatchSchema = z.object({
  id: z.string().uuid(),
  size: z.enum(["sm", "md", "lg"]).optional(),
  settings: z.unknown().optional()
});
const roleWidgetSettingsSchema = z.object({
  roleId: z.string().uuid(),
  widgetIds: z.array(dashboardWidgetIdSchema)
});
const userWidgetSettingsSchema = z.object({
  userId: z.string().uuid(),
  mode: z.enum(["inherit", "override"]).default("inherit"),
  widgetIds: z.array(dashboardWidgetIdSchema)
});
export {
  dashboardLayoutItemPatchSchema,
  dashboardLayoutItemSchema,
  dashboardLayoutSchema,
  dashboardWidgetIdSchema,
  roleWidgetSettingsSchema,
  userWidgetSettingsSchema
};
//# sourceMappingURL=validators.js.map
