openvibe-sdk/insights
Generated at from
openvibe-contracts v0.454.0 and
openvibe-sdk v0.193.0.
From types/insights.d.ts (both). Declarations are shown verbatim.
interface CallOptions
export interface CallOptions { signal?: AbortSignal }type Days
export type Days = 1 | 7 | 30 | 90;interface InsightsClient
export interface InsightsClient {
metrics: {
query(o?: CallOptions & { metric?: 'stats' | 'traffic'; days?: Days }): Promise<Record<string, unknown>>;
};
ratings: {
kinds(o?: CallOptions): Promise<{ count: number; kinds: Array<{ id: string; name?: string; [k: string]: unknown }> }>;
get(kind: string, o?: CallOptions & { category?: string }): Promise<{ board: { schema: 'bench.ratings@1'; kind_id: string; rows: Array<Record<string, unknown>>; [k: string]: unknown } }>;
};
offers: {
find(model: string, o?: CallOptions): Promise<Record<string, unknown>>;
};
}export export function createInsightsClient(client: { json(opts: Re
export function createInsightsClient(client: { json(opts: Record<string, unknown>): Promise<any> }, urls?: { reportUrl?: string; compareUrl?: string; exchangeUrl?: string }): InsightsClient;export export const DAYS: readonly Days[];
export const DAYS: readonly Days[];export export const METRICS: Readonly<{ stats: string; traffic: str
export const METRICS: Readonly<{ stats: string; traffic: string }>;export export const REPORT_URL: string;
export const REPORT_URL: string;export export const COMPARE_URL: string;
export const COMPARE_URL: string;export export const EXCHANGE_URL: string;
export const EXCHANGE_URL: string;