UNPKG

n8n-nodes-binalyze-air

Version:

Binalyze AIR nodes for automating DFIR with n8n workflows

55 lines 1.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AirApi = void 0; class AirApi { constructor() { this.name = 'airApi'; this.displayName = 'AIR API'; this.documentationUrl = 'https://github.com/binalyze/n8n-nodes-binalyze-air?tab=readme-ov-file#configuration'; this.icon = { light: 'file:b-logo-dark.svg', dark: 'file:b-logo-light.svg', }; this.properties = [ { displayName: 'AIR Instance URL', name: 'instanceUrl', type: 'string', default: '', required: true, description: 'The URL of the AIR instance that you want to connect to. Example: https://my-air.binalyze.io.', validateType: 'url', }, { displayName: 'AIR API Token', name: 'token', type: 'string', default: '', typeOptions: { password: true, }, required: true, placeholder: '', description: 'The API token of the AIR instance that you want to connect to. You can create it from Integrations / API Tokens. Example: api_xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.', validateType: 'string', }, ]; this.authenticate = { type: 'generic', properties: { headers: { Authorization: '={{"Bearer " + $credentials.token}}', }, }, }; this.test = { request: { baseURL: '={{$credentials?.instanceUrl.trimEnd("/")}}', url: '/api/public/auth/check', disableFollowRedirect: true, }, }; } } exports.AirApi = AirApi; //# sourceMappingURL=AirApi.credentials.js.map