memofai
Version:
Official JavaScript/TypeScript SDK for Memory-of-Agents (MOA) - AI memory infrastructure for intelligent applications
166 lines • 6 kB
TypeScript
import { HttpMethod } from './types';
export interface EndpointConfig {
path: string;
method: HttpMethod;
description?: string;
}
export declare const WORKSPACE_ENDPOINTS: {
readonly listWorkspaces: {
readonly path: "/api/workspaces/workspaces";
readonly method: HttpMethod;
readonly description: "List all user workspaces";
};
readonly createWorkspace: {
readonly path: "/api/workspaces/workspace/create";
readonly method: HttpMethod;
readonly description: "Create a new workspace";
};
readonly retrieveWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id";
readonly method: HttpMethod;
readonly description: "Get workspace details";
};
readonly updateWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id/update";
readonly method: HttpMethod;
readonly description: "Update workspace";
};
readonly deleteWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id/delete";
readonly method: HttpMethod;
readonly description: "Delete workspace";
};
};
export declare const BOT_ENDPOINTS: {
readonly listBots: {
readonly path: "/api/bots/bots";
readonly method: HttpMethod;
readonly description: "List all user bots";
};
readonly createBot: {
readonly path: "/api/bots/bot/create";
readonly method: HttpMethod;
readonly description: "Create a new bot";
};
readonly retrieveBot: {
readonly path: "/api/bots/bot/:bot_id";
readonly method: HttpMethod;
readonly description: "Get bot details";
};
readonly updateBot: {
readonly path: "/api/bots/bot/:bot_id/update";
readonly method: HttpMethod;
readonly description: "Update bot";
};
readonly deleteBot: {
readonly path: "/api/bots/bot/:bot_id/delete";
readonly method: HttpMethod;
readonly description: "Delete bot";
};
};
export declare const MEMORY_ENDPOINTS: {
readonly storeMemory: {
readonly path: "/api/integrations/memory/store";
readonly method: HttpMethod;
readonly description: "Store a new memory";
};
readonly listMemory: {
readonly path: "/api/integrations/memory/:bot_id/list";
readonly method: HttpMethod;
readonly description: "List memories for a specific bot";
};
readonly reprocessMemory: {
readonly path: "/api/integrations/memory/:memory_id/reprocess";
readonly method: HttpMethod;
readonly description: "Reprocess a memory";
};
readonly deleteMemory: {
readonly path: "/api/integrations/memory/:memory_id/delete";
readonly method: HttpMethod;
readonly description: "Delete a memory";
};
readonly searchMemories: {
readonly path: "/api/integrations/memory/search";
readonly method: HttpMethod;
readonly description: "Search memories with natural language query";
};
};
export declare const API_ENDPOINTS: {
readonly storeMemory: {
readonly path: "/api/integrations/memory/store";
readonly method: HttpMethod;
readonly description: "Store a new memory";
};
readonly listMemory: {
readonly path: "/api/integrations/memory/:bot_id/list";
readonly method: HttpMethod;
readonly description: "List memories for a specific bot";
};
readonly reprocessMemory: {
readonly path: "/api/integrations/memory/:memory_id/reprocess";
readonly method: HttpMethod;
readonly description: "Reprocess a memory";
};
readonly deleteMemory: {
readonly path: "/api/integrations/memory/:memory_id/delete";
readonly method: HttpMethod;
readonly description: "Delete a memory";
};
readonly searchMemories: {
readonly path: "/api/integrations/memory/search";
readonly method: HttpMethod;
readonly description: "Search memories with natural language query";
};
readonly listBots: {
readonly path: "/api/bots/bots";
readonly method: HttpMethod;
readonly description: "List all user bots";
};
readonly createBot: {
readonly path: "/api/bots/bot/create";
readonly method: HttpMethod;
readonly description: "Create a new bot";
};
readonly retrieveBot: {
readonly path: "/api/bots/bot/:bot_id";
readonly method: HttpMethod;
readonly description: "Get bot details";
};
readonly updateBot: {
readonly path: "/api/bots/bot/:bot_id/update";
readonly method: HttpMethod;
readonly description: "Update bot";
};
readonly deleteBot: {
readonly path: "/api/bots/bot/:bot_id/delete";
readonly method: HttpMethod;
readonly description: "Delete bot";
};
readonly listWorkspaces: {
readonly path: "/api/workspaces/workspaces";
readonly method: HttpMethod;
readonly description: "List all user workspaces";
};
readonly createWorkspace: {
readonly path: "/api/workspaces/workspace/create";
readonly method: HttpMethod;
readonly description: "Create a new workspace";
};
readonly retrieveWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id";
readonly method: HttpMethod;
readonly description: "Get workspace details";
};
readonly updateWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id/update";
readonly method: HttpMethod;
readonly description: "Update workspace";
};
readonly deleteWorkspace: {
readonly path: "/api/workspaces/workspace/:workspace_id/delete";
readonly method: HttpMethod;
readonly description: "Delete workspace";
};
};
export type EndpointName = keyof typeof API_ENDPOINTS;
//# sourceMappingURL=endpoints.d.ts.map