UNPKG

n8n-nodes-pdf-accessibility

Version:

AI-powered PDF accessibility automation for N8N - comprehensive WCAG compliance analysis, intelligent remediation, and professional audit reporting with 5 integrated accessibility tools

56 lines (55 loc) 1.8 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.GoogleApi = void 0; class GoogleApi { constructor() { this.name = 'googleApi'; this.displayName = 'Google Gemini API'; this.documentationUrl = 'https://ai.google.dev/gemini-api/docs/api-key'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'Your Google AI Studio API key', }, { displayName: 'Base URL', name: 'baseUrl', type: 'string', default: 'https://generativelanguage.googleapis.com/v1beta', description: 'Base URL for Google Gemini API', }, ]; this.authenticate = { type: 'generic', properties: { qs: { key: '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: '={{$credentials.baseUrl || "https://generativelanguage.googleapis.com/v1beta"}}', url: '/models/gemini-pro:generateContent', method: 'POST', qs: { key: '={{$credentials.apiKey}}', }, body: { contents: [{ parts: [{ text: 'Hello' }] }], generationConfig: { maxOutputTokens: 10, } }, }, }; } } exports.GoogleApi = GoogleApi;