export type CreateApiEdgesActionsLinkedinExtractJobRunLiveArgs = {body: {input: Record}}; export type CreateApiEdgesActionsLinkedinExtractJobRunLiveOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Extract detailed information from a LinkedIn job posting including title, company, description, requirements, and application details. * * POST /edges/actions/linkedin-extract-job/run/live */ export const createApiEdgesActionsLinkedinExtractJobRunLive = async (args: CreateApiEdgesActionsLinkedinExtractJobRunLiveArgs, options?: CreateApiEdgesActionsLinkedinExtractJobRunLiveOptions) => { 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(/\/+$/, '')}/edges/actions/linkedin-extract-job/run/live${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 };