openvibe-sdk/news
Generated at from
openvibe-contracts v0.221.0 and
openvibe-sdk v0.65.0.
From types/news.d.ts (server only). Declarations are shown verbatim.
interface NewsClient
export interface NewsClient {
topics(opts?: Opts): Promise<{ topics: NewsJson[] }>;
stories: {
list(opts?: Opts & { topic?: string; limit?: number; offset?: number }): Promise<{ total: number; stories: NewsJson[] }>;
get(id: string, opts?: Opts): Promise<{ story: NewsJson }>;
};
}export export function createNewsClient(client: { json(opts: Record
export function createNewsClient(client: { json(opts: Record<string, unknown>): Promise<any> }, options?: { baseUrl?: string }): NewsClient;