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

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

export type EmailPayload = {
  email: string
  language?: string | null
}

export type SimpleResultDataResponse = {
  data: string
  result: string
}

export type EmailCodeLoginPayload = {
  code: string
  email: string
  language?: string | null
  timezone?: string | null
  token: string
}

export type SimpleResultResponse = {
  result: string
}

export type PostEmailCodeLoginData = {
  body: EmailPayload
  path?: never
  query?: never
  url: '/email-code-login'
}

export type PostEmailCodeLoginResponses = {
  200: SimpleResultDataResponse
}

export type PostEmailCodeLoginResponse =
  PostEmailCodeLoginResponses[keyof PostEmailCodeLoginResponses]

export type PostEmailCodeLoginValidityData = {
  body: EmailCodeLoginPayload
  path?: never
  query?: never
  url: '/email-code-login/validity'
}

export type PostEmailCodeLoginValidityResponses = {
  200: SimpleResultResponse
}

export type PostEmailCodeLoginValidityResponse =
  PostEmailCodeLoginValidityResponses[keyof PostEmailCodeLoginValidityResponses]
