UNPKG

n8n-nodes-fusionbrain

Version:
48 lines 1.56 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.FusionbrainAiCredentialsApi = void 0; class FusionbrainAiCredentialsApi { constructor() { this.name = 'hapheusFusionbrainAiCredentialsApi'; this.displayName = 'fusionbrain.ai API'; this.icon = 'file:fusionbrain.ai.png'; this.documentationUrl = 'https://fusionbrain.ai/docs/en/'; this.properties = [ { displayName: 'Api Key', name: 'apiKey', type: 'string', typeOptions: { password: false, }, default: '', }, { displayName: 'Secret Key', name: 'secretKey', type: 'string', typeOptions: { password: true, }, default: '', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'X-Key': '={{"Key " + $credentials.apiKey}}', 'X-Secret': '={{"Secret " + $credentials.secretKey}}', }, }, }; this.test = { request: { baseURL: 'https://api-key.fusionbrain.ai/key/api/v1/pipelines', url: 'models', }, }; } } exports.FusionbrainAiCredentialsApi = FusionbrainAiCredentialsApi; //# sourceMappingURL=FusionbrainAiCredentialsApi.credentials.js.map