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

import * as z from 'zod'

/**
 * EmailPayload
 */
export const zEmailPayload = z.object({
  email: z.string(),
  language: z.string().nullish(),
})

/**
 * SimpleResultDataResponse
 */
export const zSimpleResultDataResponse = z.object({
  data: z.string(),
  result: z.string(),
})

/**
 * EmailCodeLoginPayload
 */
export const zEmailCodeLoginPayload = z.object({
  code: z.string(),
  email: z.string(),
  language: z.string().nullish(),
  timezone: z.string().nullish(),
  token: z.string(),
})

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

export const zPostEmailCodeLoginBody = zEmailPayload

/**
 * Success
 */
export const zPostEmailCodeLoginResponse = zSimpleResultDataResponse

export const zPostEmailCodeLoginValidityBody = zEmailCodeLoginPayload

/**
 * Success
 */
export const zPostEmailCodeLoginValidityResponse = zSimpleResultResponse
