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

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

export type ActivatePayload = {
  email?: string | null
  interface_language?: string | null
  name?: string | null
  timezone?: string | null
  token: string
  workspace_id?: string | null
}

export type ActivationResponse = {
  result: string
}

export type ActivationCheckResponse = {
  data?: ActivationCheckData | null
  is_valid: boolean
}

export type ActivationCheckData = {
  account_status?: string | null
  email: string | null
  requires_setup?: boolean | null
  workspace_id: string | null
  workspace_name: string | null
}

export type PostActivateData = {
  body: ActivatePayload
  path?: never
  query?: never
  url: '/activate'
}

export type PostActivateErrors = {
  400: unknown
}

export type PostActivateResponses = {
  200: ActivationResponse
}

export type PostActivateResponse = PostActivateResponses[keyof PostActivateResponses]

export type GetActivateCheckData = {
  body?: never
  path?: never
  query: {
    email?: string
    token: string
    workspace_id?: string
  }
  url: '/activate/check'
}

export type GetActivateCheckResponses = {
  200: ActivationCheckResponse
}

export type GetActivateCheckResponse = GetActivateCheckResponses[keyof GetActivateCheckResponses]
