import { z } from "zod";

export const ZAttributeUpdateInput = z.object({
  environmentId: z.cuid2(),
  userId: z.string(),
  attributes: z.record(z.string(), z.union([z.string(), z.number()])),
});

export type TAttributeUpdateInput = z.infer<typeof ZAttributeUpdateInput>;

// Attributes can be string or number (Date objects are converted to ISO strings by SDK)
export const ZAttributes = z.record(z.string(), z.union([z.string(), z.number()]));
export type TAttributes = z.infer<typeof ZAttributes>;
