import type { ClientOptions, RequestOptions } from "./http.js"; import { Memories } from "./resources/memories.js"; import { Search } from "./resources/search.js"; import { Spaces } from "./resources/spaces.js"; import { Documents, Jobs, Sources } from "./resources/ingestion.js"; import { Conflicts, Entities, Graph } from "./resources/knowledge.js"; import { Conversations } from "./resources/conversations.js"; import { Google } from "./resources/google.js"; import { Integrations } from "./resources/integrations.js"; import { Health } from "./resources/health.js"; import { Agent } from "./resources/agent.js"; /** * The client. * * const client = new PersistMemory({ apiKey: process.env.PERSISTMEMORY_API_KEY! }); * const found = await client.search.query({ query: "what did we decide about Postgres" }); * * One transport underneath every resource, so retries, timeouts, error mapping * and the credential are decided once. Resources are plain objects hanging off * this one; they hold a reference to the transport and no state of their own, * which is what makes a client safe to share across a process. */ export declare class PersistMemory { #private; readonly memories: Memories; readonly search: Search; readonly spaces: Spaces; readonly sources: Sources; readonly documents: Documents; readonly jobs: Jobs; readonly entities: Entities; readonly graph: Graph; readonly conflicts: Conflicts; readonly conversations: Conversations; readonly integrations: Integrations; /** Drive, mail and contacts on the user's connected Google account. */ readonly google: Google; readonly health: Health; readonly agent: Agent; constructor(options: ClientOptions); /** * An escape hatch for an endpoint this package has not caught up with. * * Typed as `unknown` on purpose: a caller reaching past the typed surface is * taking responsibility for the shape, and handing them `any` would let that * responsibility spread silently through their codebase. */ request(method: "GET" | "POST" | "PATCH" | "DELETE", path: string, body?: unknown, options?: RequestOptions): Promise; /** Never the key. See `HttpClient.toJSON`, which this delegates to. */ toJSON(): Record; }