export type GetApiAktaProV1NewsByIdArgs = {news_ids: string}; export type GetApiAktaProV1NewsByIdOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * Retrieve complete article records for news IDs from News Signals, including full text, AI summary, sentiment, event tags, industries, named entities, company mentions and taxonomy codes. Use when a compact news result is not enough and you need full context, deal details or source verification. Pass only the IDs needed. Optimized for AI agents with focused full-text retrieval and low unnecessary token use. * * GET /akta-pro/v1/news/by-id/ */ export const getApiAktaProV1NewsById = async (args: GetApiAktaProV1NewsByIdArgs, options?: GetApiAktaProV1NewsByIdOptions) => { const {baseUrl = "https://api.orthogonal.com/mpp", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() if (args.news_ids != null) query.append("news_ids", String(args.news_ids)) const url = `${baseUrl.replace(/\/+$/, '')}/akta-pro/v1/news/by-id/${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return undefined };