@trubrics/trubrics
Version:
A Trubrics SDK for JavaScript applications
14 lines (13 loc) • 704 B
TypeScript
import { EventToPublish } from "../../types/types.js";
export declare const validateResponse: (response: Response) => boolean;
export declare const validateRequest: (strings: (string | null | undefined)[], numbers: (number | null | undefined)[], dates: (Date | null | undefined)[], mandatory: any[]) => void;
export declare const checkAuth: (apiKey: string) => void;
export declare const flushQueue: (queue: EventToPublish[], host: string, apiKey: string, isVerbose: boolean) => Promise<void>;
export declare enum TrubricsEventTypes {
EVENT = "event",
LLM_EVENT = "llm_event"
}
export declare enum TrubricsIngestionEndpoints {
EVENT = "publish_events",
LLM_EVENT = "publish_llm_events"
}