// 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().nullish(),
  name: z.string().max(30).nullish(),
  timezone: z.string().nullish(),
  token: z.string(),
  workspace_id: z.string().nullish(),
})

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

/**
 * ActivationCheckData
 */
export const zActivationCheckData = z.object({
  account_status: z.string().nullish(),
  email: z.string().nullable(),
  requires_setup: z.boolean().nullish(),
  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
