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

/**
 * Request serializer for subscribing to push notifications.
 */
export const SubscribeRequestRequestSchema = z.object({
  endpoint: z.union([z.url(), z.literal('')]),
  keys: z.record(z.string(), z.string().min(1)),
})

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