import { HttpMethod, RootAPIHelper } from './root-api'; export const getApiDocsPrompt = async (params: { apiKey: string; host: string }): Promise<{ prompt: string }> => { const { host, apiKey } = params; const rootApi = new RootAPIHelper({ host, apiKey }); const response = await rootApi.send({ method: HttpMethod.Get, path: `/cli/generate-apidocs-prompt`, }); if (response.error) { throw new Error(JSON.stringify(response.error)); } return response; };