n8n-nodes-selfhosthub
Version:
Collection of n8n nodes for self-hosted AI services, including Leonardo.ai integration for AI image and content generation capabilities.
20 lines (19 loc) • 703 B
TypeScript
import { IDataObject } from 'n8n-workflow';
/**
* Builds webhook object for JSON2Video API
* Returns undefined if no webhook URL is provided
*/
export declare function buildWebhookObject(webhookUrl: string): IDataObject | undefined;
/**
* Builds webhook object in exports format for JSON2Video API
* This is used in basic mode for some operations
*/
export declare function buildWebhookExports(webhookUrl: string): IDataObject[] | undefined;
/**
* Validates webhook URL format
*/
export declare function isValidWebhookUrl(url: string): boolean;
/**
* Sanitizes webhook URL by trimming whitespace and validating format
*/
export declare function sanitizeWebhookUrl(url: string): string | null;