UNPKG

n8n-nodes-selfhosthub

Version:

Collection of n8n nodes for self-hosted AI services, including Leonardo.ai integration for AI image and content generation capabilities.

48 lines 1.59 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Json2VideoApiCredentials = void 0; class Json2VideoApiCredentials { constructor() { this.name = 'json2VideoApiCredentials'; this.displayName = 'JSON2Video API'; this.documentationUrl = 'https://json2video.com/docs/api/'; this.properties = [ { displayName: 'API Key', name: 'apiKey', type: 'string', typeOptions: { password: true }, default: '', required: true, description: 'The API key from your JSON2Video account (Settings > API Keys)', }, ]; this.authenticate = { type: 'generic', properties: { headers: { 'x-api-key': '={{$credentials.apiKey}}', }, }, }; this.test = { request: { baseURL: 'https://api.json2video.com/v2', url: '/movies', method: 'POST', body: { data: { id: `test-${Date.now()}`, width: 640, height: 360, fps: 25, scenes: [{ elements: [] }] }, quality: 'low' }, }, }; } } exports.Json2VideoApiCredentials = Json2VideoApiCredentials; //# sourceMappingURL=Json2VideoApiCredentials.credentials.js.map