UNPKG

@trubrics/trubrics

Version:

A Trubrics SDK for JavaScript applications

15 lines (14 loc) 803 B
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 const addSourceProperty: (properties?: Record<string, any>) => Record<string, any>; export declare enum TrubricsEventTypes { EVENT = "event", LLM_EVENT = "llm_event" } export declare enum TrubricsIngestionEndpoints { EVENT = "publish_events", LLM_EVENT = "publish_llm_events" }