import { client, normalizePage, pageQuery, type Page, type PageParams } from "../client"; import type { ChatbotThread } from "./types"; export async function getChatbotThreads(params?: PageParams): Promise> { return normalizePage(await client(`/chatbot/threads${pageQuery(params)}`)); }