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

export type ClientOptions = {
  baseUrl: `${string}://${string}/console/api` | (string & {})
}

export type NotificationResponse = {
  notifications: Array<NotificationItemResponse>
  should_show: boolean
}

export type DismissNotificationPayload = {
  notification_id: string
}

export type SimpleResultResponse = {
  result: string
}

export type NotificationItemResponse = {
  body: string
  frequency?: string | null
  lang: string
  notification_id?: string | null
  subtitle: string
  title: string
  title_pic_url: string
}

export type GetNotificationData = {
  body?: never
  path?: never
  query?: never
  url: '/notification'
}

export type GetNotificationErrors = {
  401: unknown
}

export type GetNotificationResponses = {
  200: NotificationResponse
}

export type GetNotificationResponse = GetNotificationResponses[keyof GetNotificationResponses]

export type PostNotificationDismissData = {
  body: DismissNotificationPayload
  path?: never
  query?: never
  url: '/notification/dismiss'
}

export type PostNotificationDismissErrors = {
  401: unknown
}

export type PostNotificationDismissResponses = {
  200: SimpleResultResponse
}

export type PostNotificationDismissResponse
  = PostNotificationDismissResponses[keyof PostNotificationDismissResponses]
