export type CreateApiBytemineV1AppsMeetingPrepArgs = {body: {domain: string, your_domain?: string | undefined, contact_email?: string | undefined, contact_linkedin?: string | undefined}}; export type CreateApiBytemineV1AppsMeetingPrepOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Generate a comprehensive meeting prep brief with company intel, contacts, talking points, objections, ice breakers, and pain points. 10 credits. * * POST /bytemine/v1/apps/meeting-prep */ export const createApiBytemineV1AppsMeetingPrep = async (args: CreateApiBytemineV1AppsMeetingPrepArgs, options?: CreateApiBytemineV1AppsMeetingPrepOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('content-type', "application/json") const url = `${baseUrl.replace(/\/+$/, '')}/bytemine/v1/apps/meeting-prep${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers, body: JSON.stringify(args.body)}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };