import type { BaseClientOptions, BaseRequestOptions } from "../../../../BaseClient.js"; import { type NormalizedClientOptionsWithAuth } from "../../../../BaseClient.js"; import * as core from "../../../../core/index.js"; import * as Supermemory from "../../../index.js"; export declare namespace NamespacesClient { type Options = BaseClientOptions; interface RequestOptions extends BaseRequestOptions { } } /** * List and manage isolated namespaces and their settings */ export declare class NamespacesClient { protected readonly _options: NormalizedClientOptionsWithAuth; constructor(options?: NamespacesClient.Options); /** * Discover every namespace available to the caller, including its purpose, document volume, memory count, and lifecycle timestamps. * * @param {Supermemory.ListNamespacesRequest} request * @param {NamespacesClient.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.namespaces.list() */ list(request?: Supermemory.ListNamespacesRequest, requestOptions?: NamespacesClient.RequestOptions): core.HttpResponsePromise; private __list; /** * Read the supporting context that helps Supermemory understand content and form better memories inside this namespace. * * @param {string} namespace - Namespace identifier. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope documents and memories. * @param {Supermemory.GetNamespacesRequest} request * @param {NamespacesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.NotFoundError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.namespaces.get("user_alex") */ get(namespace: string, request?: Supermemory.GetNamespacesRequest, requestOptions?: NamespacesClient.RequestOptions): core.HttpResponsePromise; private __get; /** * Retire a namespace by permanently deleting its content, or preserve that knowledge by moving everything into another namespace first. Moves are queued and complete asynchronously. * * @param {string} namespace - Namespace identifier. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope documents and memories. * @param {Supermemory.DeleteNamespacesRequest} request * @param {NamespacesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.NotFoundError} * @throws {@link Supermemory.ConflictError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.namespaces.delete("user_alex", { * moveTo: "project_archive" * }) */ delete(namespace: string, request?: Supermemory.DeleteNamespacesRequest, requestOptions?: NamespacesClient.RequestOptions): core.HttpResponsePromise; private __delete; /** * Shape how Supermemory understands an existing namespace by updating the background context used during ingestion and memory formation. * * @param {string} namespace - Namespace identifier. This can be an ID for your user, a project ID, or any other identifier you wish to use to scope documents and memories. * @param {Supermemory.UpdateNamespacesRequest} request * @param {NamespacesClient.RequestOptions} requestOptions - Request-specific configuration. * * @throws {@link Supermemory.BadRequestError} * @throws {@link Supermemory.UnauthorizedError} * @throws {@link Supermemory.ForbiddenError} * @throws {@link Supermemory.NotFoundError} * @throws {@link Supermemory.InternalServerError} * @throws {@link errors.SupermemoryError} * @throws {@link errors.SupermemoryTimeoutError} * * @example * await client.namespaces.update("user_alex") */ update(namespace: string, request?: Supermemory.UpdateNamespacesRequest, requestOptions?: NamespacesClient.RequestOptions): core.HttpResponsePromise; private __update; } //# sourceMappingURL=Client.d.ts.map