/**
 * Zod schema for SendPushRequestRequest
 *
 * This schema provides runtime validation and type inference.
 *  * Request serializer for sending push notifications.
 *  */
import { z } from 'zod'

/**
 * Request serializer for sending push notifications.
 */
export const SendPushRequestRequestSchema = z.object({
  title: z.string().min(1).max(255),
  body: z.string().min(1),
  icon: z.union([z.url(), z.literal('')]).nullable().optional(),
  url: z.union([z.url(), z.literal('')]).nullable().optional(),
})

/**
 * Infer TypeScript type from Zod schema
 */
export type SendPushRequestRequest = z.infer<typeof SendPushRequestRequestSchema>