UNPKG

n8n-nodes-a2a

Version:

n8n community node for A2A (Account to Account) transfers, account management, and Google Agent2Agent protocol communication with advanced features including file upload, custom JSON fields, custom requests, and streaming support

94 lines 2.95 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.A2aApi = void 0; class A2aApi { constructor() { this.name = 'a2aApi'; this.displayName = 'A2A API'; this.documentationUrl = 'https://docs.a2a.com/api'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Your A2A API key', }, { displayName: 'API Secret', name: 'apiSecret', type: 'string', typeOptions: { password: true, }, default: '', required: true, description: 'Your A2A API secret', }, { displayName: 'Environment', name: 'environment', type: 'options', options: [ { name: 'Production', value: 'production', }, { name: 'Sandbox', value: 'sandbox', }, ], default: 'sandbox', description: 'The environment to connect to', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api.a2a.com', description: 'Base URL for the A2A API', displayOptions: { show: { environment: ['production'], }, }, }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://api-sandbox.a2a.com', description: 'Base URL for the A2A API', displayOptions: { show: { environment: ['sandbox'], }, }, }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'Authorization': '=Bearer {{$credentials.apiKey}}', 'X-API-Secret': '={{$credentials.apiSecret}}', 'Content-Type': 'application/json', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl}}', url: '/v1/auth/validate', method: 'GET', }, }; } } exports.A2aApi = A2aApi; //# sourceMappingURL=A2aApi.credentials.js.map