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

import * as z from 'zod'

/**
 * ActivatePayload
 */
export const zActivatePayload = z.object({
  email: z.string().nullish(),
  interface_language: z.string(),
  name: z.string().max(30),
  timezone: z.string(),
  token: z.string(),
  workspace_id: z.string().nullish(),
})

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

/**
 * ActivationCheckData
 */
export const zActivationCheckData = z.object({
  email: z.string().nullable(),
  workspace_id: z.string().nullable(),
  workspace_name: z.string().nullable(),
})

/**
 * ActivationCheckResponse
 */
export const zActivationCheckResponse = z.object({
  data: zActivationCheckData.nullish(),
  is_valid: z.boolean(),
})

export const zPostActivateBody = zActivatePayload

/**
 * Account activated successfully
 */
export const zPostActivateResponse = zActivationResponse

export const zGetActivateCheckQuery = z.object({
  email: z.string().optional(),
  token: z.string(),
  workspace_id: z.string().optional(),
})

/**
 * Success
 */
export const zGetActivateCheckResponse = zActivationCheckResponse
