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

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

export type WorkspaceListResponse = {
  data: Array<WorkspaceListItemResponse>
  has_more: boolean
  limit: number
  page: number
  total: number
}

export type WorkspaceListItemResponse = {
  created_at?: number | null
  id: string
  name?: string | null
  status?: string | null
}

export type GetAllWorkspacesData = {
  body?: never
  path?: never
  query?: {
    limit?: number
    page?: number
  }
  url: '/all-workspaces'
}

export type GetAllWorkspacesResponses = {
  200: WorkspaceListResponse
}

export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses]
