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

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

export type WorkspacePaginationResponse = {
  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: WorkspacePaginationResponse
}

export type GetAllWorkspacesResponse = GetAllWorkspacesResponses[keyof GetAllWorkspacesResponses]
