UNPKG

n8n-nodes-handit

Version:

n8n community nodes for Handit tracing and prompt management

47 lines 1.44 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.HanditApi = void 0; class HanditApi { constructor() { this.name = 'handitApi'; this.displayName = 'Handit API'; this.documentationUrl = 'https://docs.handit.com/api/authentication'; this.properties = [ { displayName: 'API Token', name: 'apiToken', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Your Handit API token', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.handit.com', description: 'The base URL of your Handit API instance', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '=Bearer {{$credentials.apiToken}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/health', method: 'GET', }, }; } } exports.HanditApi = HanditApi; //# sourceMappingURL=HanditApi.credentials.js.map