// This file is auto-generated by @hey-api/openapi-ts

import * as z from 'zod'

/**
 * DismissNotificationPayload
 */
export const zDismissNotificationPayload = z.object({
  notification_id: z.string(),
})

/**
 * SimpleResultResponse
 */
export const zSimpleResultResponse = z.object({
  result: z.string(),
})

/**
 * NotificationItemResponse
 */
export const zNotificationItemResponse = z.object({
  body: z.string(),
  frequency: z.string().nullish(),
  lang: z.string(),
  notification_id: z.string().nullish(),
  subtitle: z.string(),
  title: z.string(),
  title_pic_url: z.string(),
})

/**
 * NotificationResponse
 */
export const zNotificationResponse = z.object({
  notifications: z.array(zNotificationItemResponse),
  should_show: z.boolean(),
})

/**
 * Success — inspect should_show to decide whether to render the modal
 */
export const zGetNotificationResponse = zNotificationResponse

export const zPostNotificationDismissBody = zDismissNotificationPayload

/**
 * Success
 */
export const zPostNotificationDismissResponse = zSimpleResultResponse
