import * as Supermemory from "./api/index.js"; import { ConnectorsClient } from "./api/resources/connectors/client/Client.js"; import { ContentManagementClient } from "./api/resources/contentManagement/client/Client.js"; import { DocumentsClient } from "./api/resources/documents/client/Client.js"; import { FeedbackClient } from "./api/resources/feedback/client/Client.js"; import { MemoriesClient } from "./api/resources/memories/client/Client.js"; import { NamespacesClient } from "./api/resources/namespaces/client/Client.js"; import { OrganizationClient } from "./api/resources/organization/client/Client.js"; import { ProfilesClient } from "./api/resources/profiles/client/Client.js"; import type { BaseClientOptions, BaseRequestOptions } from "./BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "./BaseClient.js"; import * as core from "./core/index.js"; export declare namespace SupermemoryClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } export declare class SupermemoryClient { protected readonly _options: NormalizedClientOptionsWithAuth; protected _documents: DocumentsClient | undefined; protected _profiles: ProfilesClient | undefined; protected _memories: MemoriesClient | undefined; protected _connectors: ConnectorsClient | undefined; protected _namespaces: NamespacesClient | undefined; protected _organization: OrganizationClient | undefined; protected _contentManagement: ContentManagementClient | undefined; protected _feedback: FeedbackClient | undefined; constructor(options?: SupermemoryClient.Options); get documents(): DocumentsClient; get profiles(): ProfilesClient; get memories(): MemoriesClient; get connectors(): ConnectorsClient; get namespaces(): NamespacesClient; get organization(): OrganizationClient; get contentManagement(): ContentManagementClient; get feedback(): FeedbackClient; /** * Turn text or a supported URL into searchable, evolving memory. Supply a new ID to create a document, or reuse an existing ID to append new information while preserving its history. * * @param {string} namespace - The isolated namespace. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope documents. * @param {Supermemory.AddRequest} request * @param {SupermemoryClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.PaymentRequiredError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.ConflictError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.add("user_alex", { * content: "Supermemory turns unstructured content into evolving memory." * }) */ add(namespace: string, request: Supermemory.AddRequest, requestOptions?: SupermemoryClient.RequestOptions): core.HttpResponsePromise; private __add; /** * Recall the most relevant learned context and source passages from a namespace. Hybrid search combines memories with document chunks by default, with optional query rewriting, reranking, and supporting context attachments. * * @param {string} namespace - The isolated namespace to search. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope memories. * @param {Supermemory.SearchRequest} request * @param {SupermemoryClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.PaymentRequiredError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.search("user_alex", { * query: "what are the API rate limits" * }) */ search(namespace: string, request: Supermemory.SearchRequest, requestOptions?: SupermemoryClient.RequestOptions): core.HttpResponsePromise; private __search; /** * Read a continuously maintained understanding of the subject represented by this namespace. Stable facts, evolving context, and selected custom buckets are returned together without requiring a search query. * * @param {string} namespace - The isolated namespace to search. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope memories. * @param {Supermemory.ProfileRequest} request * @param {SupermemoryClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.profile("user_alex") */ profile(namespace: string, request?: Supermemory.ProfileRequest, requestOptions?: SupermemoryClient.RequestOptions): core.HttpResponsePromise; private __profile; /** * Browse documents, source chunks, or learned memories through one predictable paginated contract. Choose the collection in the path; the other collection arrays remain empty for a stable response shape. When listing documents, set include.content to include the last published extracted text. * * @param {string} namespace - Namespace containing the resources to list. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope resources. * @param {Supermemory.ListRequestType} type - Resource collection to list: source documents, extracted chunks, or learned memories * @param {Supermemory.ListRequest} request * @param {SupermemoryClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.list("user_alex", "documents", { * page: 1, * limit: 10 * }) */ list(namespace: string, type: Supermemory.ListRequestType, request?: Supermemory.ListRequest, requestOptions?: SupermemoryClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Make a passthrough request using the SDK's configured auth, retry, logging, etc. * This is useful for making requests to endpoints not yet supported in the SDK. * The input can be a URL string, URL object, or Request object. Relative paths are resolved against the configured base URL. * * @param {Request | string | URL} input - The URL, path, or Request object. * @param {RequestInit} init - Standard fetch RequestInit options. * @param {core.PassthroughRequest.RequestOptions} requestOptions - Per-request overrides (timeout, retries, headers, abort signal). * @returns {Promise} A standard Response object. */ fetch(input: Request | string | URL, init?: RequestInit, requestOptions?: core.PassthroughRequest.RequestOptions): Promise; } //# sourceMappingURL=Client.d.ts.map