UNPKG

@emergentmethods/asknews-typescript-sdk

Version:
32 lines (31 loc) 1.79 kB
/** * AskNews API * AskNews API * * The version of the OpenAPI document: 0.19.10 * Contact: contact@emergentmethods.ai * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { BodyBuildGraph, GraphResponse } from '../models/index'; export interface BuildGraphRequest { bodyBuildGraph?: BodyBuildGraph; } /** * */ export declare class GraphApi extends runtime.BaseAPI { /** * Explore our mega-news-knowledge-graph at which ever level of resolution you need. Fully disambiguated and ready to be used in any downstream application. Pass a natural language query to get a graph of the latest news. Add parameters to build a graph from our archive, filter your graph by language, country, reporting voice, sentiment, provocative levels, and much more. * Build a custom mega-news-knowledge graph */ buildGraphRaw(requestParameters: BuildGraphRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GraphResponse> | runtime.StreamApiResponse>; /** * Explore our mega-news-knowledge-graph at which ever level of resolution you need. Fully disambiguated and ready to be used in any downstream application. Pass a natural language query to get a graph of the latest news. Add parameters to build a graph from our archive, filter your graph by language, country, reporting voice, sentiment, provocative levels, and much more. * Build a custom mega-news-knowledge graph */ buildGraph(requestParameters?: BuildGraphRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GraphResponse | ReadableStream<any>>; }