// For upsert export type AxDBUpsertRequest = { id: string; text?: string; values?: readonly number[]; metadata?: Record; table: string; namespace?: string; }; export type AxDBUpsertResponse = { ids: string[]; }; // For query export type AxDBQueryRequest = { id?: string; text?: string; values?: readonly number[]; table: string; columns?: string[]; limit?: number; namespace?: string; }; export type AxDBQueryResponse = { matches: { id: string; score: number; metadata?: Record; table?: string; }[]; }; export interface AxDBService extends AxDBQueryService { upsert( req: Readonly, update?: boolean ): Promise; batchUpsert( batchReq: Readonly, update?: boolean ): Promise; } export interface AxDBQueryService { query(req: Readonly): Promise; }