UNPKG

@kaia-team/n8n-nodes-kaia

Version:

n8n node to interact with Kaia API for signal capture and security gating

45 lines (44 loc) 1.33 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.KaiaApi = void 0; class KaiaApi { constructor() { this.name = 'kaiaApi'; this.displayName = 'Kaia API'; this.documentationUrl = 'kaia'; this.properties = [ { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: '', required: true, description: 'The base URL of the Kaia API (e.g., https://api.kaia.com)', placeholder: 'https://api.kaia.com', }, { displayName: 'Bearer Token', name: 'token', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Bearer token for authentication', }, ]; this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/api/kaia/context/check', method: 'POST', body: { entity_id: 'test', relation: 'test', }, }, }; } } exports.KaiaApi = KaiaApi;