/** * requestEvents.ts * * Fire-and-forget insert of per-request telemetry into the Supabase * `request_events` table. Uses the same raw-fetch / service-role-key * pattern as PostgresTokenStore and PostgresSearchIndex — no extra SDK. * * When SUPABASE_URL or SUPABASE_SERVICE_ROLE_KEY are absent the insert * is skipped entirely and the caller sees no error. * * Table schema: scripts/request-events.sql */ export interface RequestEvent { method: string; path: string; status: number; duration_ms: number; backend?: string; query_ms?: number; sync_ms?: number; result_count?: number; query_text?: string; tool?: string; page_count?: number; } /** * Insert a single request event row into `request_events`. * Throws on HTTP error so callers can decide how to handle failures. */ export declare function insertRequestEvent(supabaseUrl: string, serviceRoleKey: string, event: RequestEvent): Promise; //# sourceMappingURL=requestEvents.d.ts.map