UNPKG

n8n-nodes-velatir

Version:

n8n community node for Velatir - Human-in-the-loop AI function approval

44 lines (43 loc) 1.32 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.VelatirApi = void 0; class VelatirApi { constructor() { this.name = 'velatirApi'; this.displayName = 'Velatir API'; this.documentationUrl = 'https://www.velatir.com/docs'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Your Velatir API key. You can find this in your Velatir dashboard.', }, { displayName: 'Domain', name: 'domain', type: 'string', default: 'https://api.velatir.com', } ]; // Configure authentication method this.authenticate = { type: 'generic', properties: { headers: { 'X-API-Key': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.domain}}', url: '/api/v1/project', }, }; } } exports.VelatirApi = VelatirApi;