UNPKG

n8n-nodes-zep-v3

Version:

Community node: Zep Memory (v3) - AI Agent Memory for n8n

50 lines 1.79 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZepApiV3 = void 0; class ZepApiV3 { constructor() { this.name = 'zepApiV3'; this.displayName = 'Zep API (v3)'; this.documentationUrl = 'https://docs.getzep.com'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Zep API key. Header format: <code>Authorization: Api-Key &lt;token&gt;</code>', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.getzep.com', placeholder: 'https://api.getzep.com', required: true, description: 'Base URL for Zep API (e.g., https://api.getzep.com for cloud or your self-hosted instance)', }, ]; // Attach default headers for all HTTP requests using these credentials this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Api-Key {{$credentials.apiKey}}', 'Content-Type': 'application/json', }, }, }; // Simple connectivity test: list threads (works with Zep Cloud & self-hosted) this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/api/v2/threads', method: 'GET', }, }; } } exports.ZepApiV3 = ZepApiV3; //# sourceMappingURL=ZepApiV3.credentials.js.map