import { z } from "zod";

export const sendNotificationSchema = z.object({
  userId: z.string().min(1),
  type: z.string().min(1).max(50),
  title: z.string().min(1).max(200),
  content: z.string().min(1),
  channel: z.string().max(20).optional(),
  metadata: z.record(z.unknown()).optional(),
});

export const sendNotificationBatchSchema = z.array(sendNotificationSchema);

export type SendNotificationDto = z.infer<typeof sendNotificationSchema>;
