import type { HttpClient, RequestOptions } from "../http.js"; import { Paginated } from "../pagination.js"; import type { Conflict, Entity, EntityMemoriesParams, EntityMention, GraphResponse, ListConflictsParams, ListEntitiesParams, ResolveConflictParams, TraverseParams } from "../types.js"; /** * The people, places and things memories are about. * * Entities are RESOLVED rather than stored as strings: "Sam", "Sam Patel" and * "sam@work.com" are one person, and a system that treats them as three cannot * answer "what do I know about Sam" - the most obvious question anyone asks a * memory system. */ export declare class Entities { #private; constructor(http: HttpClient); list(params?: ListEntitiesParams, options?: RequestOptions): Paginated; get(id: string, options?: RequestOptions): Promise; /** * Which memories mention this entity, and how. * * Returns MENTIONS - a memory id, a role and a confidence - not the memories * themselves. "Memories about Sam" and "memories Sam appears in" are * different questions, and `role` is what separates them. * * Like the Space membership list, this endpoint answers with a `pagination` * block that carries no cursor, so it yields one page and stops. */ memories(id: string, params?: EntityMemoriesParams, options?: RequestOptions): Paginated; } /** * Walking the graph out from an entity. * * Every bound has a server-side ceiling, and that is the point: an unbounded * traversal on a well-connected graph visits everything, and the request that * does it is indistinguishable from a denial of service. Read `truncated` - * silence would read as "this is the whole graph", and a conclusion drawn from * a subset nobody knew was a subset is worse than no answer. */ export declare class Graph { #private; constructor(http: HttpClient); traverse(params: TraverseParams, options?: RequestOptions): Promise; } /** * Two things the system believes that cannot both be true. * * Surfaced rather than settled silently, because the automatic answer is often * wrong: "I moved to Berlin" superseding "I live in London" is right, and "the * deadline is Friday" against "the deadline is Monday" is a question only the * user can answer. */ export declare class Conflicts { #private; constructor(http: HttpClient); list(params?: ListConflictsParams, options?: RequestOptions): Paginated; get(id: string, options?: RequestOptions): Promise; /** * Settles one. * * `keep` names the winner and supersedes the loser; it does not delete it. * `dismiss` records that the detector was wrong, which is worth knowing when * the same pair trips it again. * * The parameter type is a union, so `keep` without a `keepId` does not * compile. The server rejects it too - this just moves the failure from a * 400 in production to a red squiggle. */ resolve(id: string, params: ResolveConflictParams, options?: RequestOptions): Promise<{ status: string; } & Record>; }