UNPKG

memofai

Version:

Official JavaScript/TypeScript SDK for Memory-of-Agents (MOA) - AI memory infrastructure for intelligent applications

86 lines 2.67 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.API_ENDPOINTS = exports.MEMORY_ENDPOINTS = exports.BOT_ENDPOINTS = exports.WORKSPACE_ENDPOINTS = void 0; exports.WORKSPACE_ENDPOINTS = { listWorkspaces: { path: '/api/workspaces/workspaces', method: 'GET', description: 'List all user workspaces', }, createWorkspace: { path: '/api/workspaces/workspace/create', method: 'POST', description: 'Create a new workspace', }, retrieveWorkspace: { path: '/api/workspaces/workspace/:workspace_id', method: 'GET', description: 'Get workspace details', }, updateWorkspace: { path: '/api/workspaces/workspace/:workspace_id/update', method: 'PUT', description: 'Update workspace', }, deleteWorkspace: { path: '/api/workspaces/workspace/:workspace_id/delete', method: 'DELETE', description: 'Delete workspace', }, }; exports.BOT_ENDPOINTS = { listBots: { path: '/api/bots/bots', method: 'GET', description: 'List all user bots', }, createBot: { path: '/api/bots/bot/create', method: 'POST', description: 'Create a new bot', }, retrieveBot: { path: '/api/bots/bot/:bot_id', method: 'GET', description: 'Get bot details', }, updateBot: { path: '/api/bots/bot/:bot_id/update', method: 'PUT', description: 'Update bot', }, deleteBot: { path: '/api/bots/bot/:bot_id/delete', method: 'DELETE', description: 'Delete bot', }, }; exports.MEMORY_ENDPOINTS = { storeMemory: { path: '/api/integrations/memory/store', method: 'POST', description: 'Store a new memory', }, listMemory: { path: '/api/integrations/memory/:bot_id/list', method: 'GET', description: 'List memories for a specific bot', }, reprocessMemory: { path: '/api/integrations/memory/:memory_id/reprocess', method: 'PATCH', description: 'Reprocess a memory', }, deleteMemory: { path: '/api/integrations/memory/:memory_id/delete', method: 'DELETE', description: 'Delete a memory', }, searchMemories: { path: '/api/integrations/memory/search', method: 'POST', description: 'Search memories with natural language query', }, }; exports.API_ENDPOINTS = Object.assign(Object.assign(Object.assign({}, exports.WORKSPACE_ENDPOINTS), exports.BOT_ENDPOINTS), exports.MEMORY_ENDPOINTS); //# sourceMappingURL=endpoints.js.map