UNPKG

@n8n/n8n-nodes-langchain

Version:

![Banner image](https://user-images.githubusercontent.com/10284570/173569848-c624317f-42b1-45a6-ab09-f0ea3c247648.png)

61 lines 2.06 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.ZepApi = void 0; class ZepApi { constructor() { this.name = 'zepApi'; this.displayName = 'Zep Api'; this.documentationUrl = 'zep'; this.properties = [ { displayName: 'This Zep integration is deprecated and will be removed in a future version.', name: 'deprecationNotice', type: 'notice', default: '', }, { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, required: false, default: '', }, { displayName: 'Cloud', description: 'Whether you are adding credentials for Zep Cloud instead of Zep Open Source', name: 'cloud', type: 'boolean', default: false, }, { displayName: 'API URL', name: 'apiUrl', required: false, type: 'string', default: 'http://localhost:8000', displayOptions: { show: { cloud: [false], }, }, }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{$credentials.apiKey && !$credentials.cloud ? "Bearer " + $credentials.apiKey : "Api-Key " + $credentials.apiKey }}', }, }, }; this.test = { request: { baseURL: '={{!$credentials.cloud ? $credentials.apiUrl : "https://api.getzep.com"}}', url: '={{!$credentials.cloud ? "/api/v1/collection" : "/api/v2/collections"}}', }, }; } } exports.ZepApi = ZepApi; //# sourceMappingURL=ZepApi.credentials.js.map