// 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
  name: string
  timezone: string
  token: string
  workspace_id?: string | null
}

export type ActivationResponse = {
  result: string
}

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

export type ActivationCheckData = {
  email: string | null
  workspace_id: string | null
  workspace_name: string | null
}

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

export type PostActivateErrors = {
  400: {
    [key: string]: unknown
  }
}

export type PostActivateError = PostActivateErrors[keyof PostActivateErrors]

export type PostActivateResponses = {
  200: ActivationResponse
}

export type PostActivateResponse = PostActivateResponses[keyof PostActivateResponses]

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

export type GetActivateCheckResponses = {
  200: ActivationCheckResponse
}

export type GetActivateCheckResponse = GetActivateCheckResponses[keyof GetActivateCheckResponses]
