Self-improving AI Employees for everyone
Python ai-agentsai-employeeai-employeesassistantautonomous-agentsco-employeescompanygrok-botinstinctloop-agentsmuseown-your-datapersonalself-hosted
feat: full node-type coverage + delete sampleSchemas map from InputSection
trohitg4a4a43927ef1
diff --git a/client/src/components/parameterPanel/InputSection.tsx b/client/src/components/parameterPanel/InputSection.tsxindex 6e1e1d8b..7e1465f8 100644--- a/client/src/components/parameterPanel/InputSection.tsx+++ b/client/src/components/parameterPanel/InputSection.tsx@@ -248,8 +248,7 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =// docs-internal/schema_source_of_truth_rfc.md):// 1. real run data (handled above in the `if` branch)// 2. backend-declared schema via get_node_output_schema- // 3. legacy sampleSchemas map (removed when coverage complete)- // 4. `{ data: 'any' }` empty fallback+ // 3. `{ data: 'any' }` empty fallback//// `start` is special-cased: its shape is authored inline by the// user as initialData JSON, so there's no backend schema to@@ -267,711 +266,26 @@ const InputSection: React.FC<InputSectionProps> = ({ nodeId, visible = true }) =}} else if (backendSchema) {outputSchema = backendSchema;- } else {- const sampleSchemas: Record<string, Record<string, any>> = {- location: { latitude: 'number', longitude: 'number', accuracy: 'number', provider: 'string', altitude: 'number' },- ai: { response: 'string', thinking: 'string', model: 'string', provider: 'string', finish_reason: 'string', timestamp: 'string' },- file: { fileName: 'string', fileSize: 'number' },- whatsapp: {- message_id: 'string',- sender: 'string',- sender_phone: 'string',- chat_id: 'string',- message_type: 'string',- text: 'string',- timestamp: 'string',- is_group: 'boolean',- is_from_me: 'boolean',- push_name: 'string',- media: 'object',- group_info: {- group_jid: 'string',- sender_jid: 'string',- sender_phone: 'string',- sender_name: 'string'- },- newsletter_meta: {- edit_ts: 'number',- original_ts: 'number'- }- },- whatsappDb: {- // Output varies by operation - this shows chat_history output- operation: 'string',- // chat_history output- messages: [- {- text: 'string',- sender: 'string',- sender_phone: 'string',- message_type: 'string',- timestamp: 'string',- message_id: 'string',- is_from_me: 'boolean',- is_group: 'boolean',- push_name: 'string',- index: 'number'- }- ],- total: 'number',- has_more: 'boolean',- count: 'number',- chat_type: 'string',- // search_groups / list_contacts output- groups: [{ jid: 'string', name: 'string', participant_count: 'number' }],- contacts: [{ jid: 'string', phone: 'string', name: 'string', push_name: 'string' }],- // get_group_info output- participants: [{ jid: 'string', phone: 'string', name: 'string', is_admin: 'boolean' }],- // get_contact_info output- jid: 'string',- phone: 'string',- name: 'string',- push_name: 'string',- business_name: 'string',- is_business: 'boolean',- is_contact: 'boolean',- profile_pic: 'string',- // channel operations output- channels: [{ jid: 'string', name: 'string', subscriber_count: 'number' }],- channel_jid: 'string',- timestamp: 'string',- // channel_mute / channel_mark_viewed / follow / unfollow output- muted: 'boolean',- server_ids: 'string',- status: 'string'- },- telegram: {- message_id: 'number',- chat_id: 'number',- chat_type: 'string',- chat_title: 'string',- from_id: 'number',- from_username: 'string',- from_first_name: 'string',- from_last_name: 'string',- is_bot: 'boolean',- text: 'string',- content_type: 'string',- date: 'string',- reply_to_message_id: 'number',- photo: {- file_id: 'string',- file_unique_id: 'string',- width: 'number',- height: 'number',- file_size: 'number'- },- document: {- file_id: 'string',- file_name: 'string',- mime_type: 'string',- file_size: 'number'- },- location: {- latitude: 'number',- longitude: 'number'- },- contact: {- phone_number: 'string',- first_name: 'string',- last_name: 'string',- user_id: 'number'- }- },- webhook: {- method: 'string',- path: 'string',- headers: 'object',- query: 'object',- body: 'string',- json: 'object'- },- // Twitter node output schemas- twitter: {- tweet_id: 'string',- text: 'string',- author_id: 'string',- created_at: 'string',- action: 'string'- },- twitterSearch: {- tweets: [{- id: 'string',- text: 'string',- author_id: 'string',- created_at: 'string'- }],- count: 'number',- query: 'string'- },- twitterUser: {- id: 'string',- username: 'string',- name: 'string',- profile_image_url: 'string',- verified: 'boolean'- },- // Google Workspace consolidated node output schemas- // Gmail (operation: send, search, read)- gmail: {- operation: 'string',- message_id: 'string',- thread_id: 'string',- from: 'string',- to: 'string',- cc: 'string',- subject: 'string',- date: 'string',- snippet: 'string',- body: 'string',- labels: 'array',- attachments: 'array',- messages: 'array',- count: 'number'- },- // Gmail Receive trigger- gmailReceive: {- message_id: 'string',- thread_id: 'string',- from: 'string',- to: 'string',- subject: 'string',- date: 'string',- snippet: 'string',- body: 'string',- labels: 'array',- attachments: 'array'- },- // Google Calendar (operation: create, list, update, delete)- calendar: {- operation: 'string',- event_id: 'string',- title: 'string',- start: 'string',- end: 'string',- description: 'string',- location: 'string',- html_link: 'string',- status: 'string',- events: 'array',- count: 'number',- deleted: 'boolean'- },- // Google Drive (operation: upload, download, list, share)- drive: {- operation: 'string',- file_id: 'string',- name: 'string',- mime_type: 'string',- web_view_link: 'string',- web_content_link: 'string',- size: 'number',- content: 'string',- files: 'array',- count: 'number',- next_page_token: 'string',- permission_id: 'string',- role: 'string',- email: 'string'- },- // Google Sheets (operation: read, write, append)- sheets: {- operation: 'string',- values: 'array',- range: 'string',- rows: 'number',- columns: 'number',- major_dimension: 'string',- updated_range: 'string',- updated_rows: 'number',- updated_columns: 'number',- updated_cells: 'number',- table_range: 'string'- },- // Google Tasks (operation: create, list, complete, update, delete)- tasks: {- operation: 'string',- task_id: 'string',- title: 'string',- notes: 'string',- due: 'string',- status: 'string',- completed: 'string',- tasks: 'array',- count: 'number',- deleted: 'boolean'- },- // Google Contacts (operation: create, list, search, get, update, delete)- contacts: {- operation: 'string',- resource_name: 'string',- display_name: 'string',- given_name: 'string',- family_name: 'string',- email: 'string',- phone: 'string',- company: 'string',- job_title: 'string',- contacts: 'array',- count: 'number',- total_people: 'number',- next_page_token: 'string',- deleted: 'boolean'- },- httpRequest: {- status: 'number',- data: 'any',- headers: 'object',- url: 'string',- method: 'string'- },- python: { output: 'any' },- javascript: { output: 'any' },- memory: {- session_id: 'string',- messages: 'array',- message_count: 'number',- memory_type: 'string',- window_size: 'number'- },- cronScheduler: {- timestamp: 'string',- iteration: 'number',- start_mode: 'string',- frequency: 'string',- timezone: 'string',- schedule: 'string',- scheduled_time: 'string',- triggered_at: 'string',- waited_seconds: 'number',- message: 'string'- },- // Android service schemas- android: {- service_id: 'string',- action: 'string',- data: 'object',- success: 'boolean'- },- batteryMonitor: {- battery_level: 'number',- is_charging: 'boolean',- temperature_celsius: 'number',- health: 'string',- voltage: 'number'- },- systemInfo: {- device_model: 'string',- android_version: 'string',- api_level: 'number',- manufacturer: 'string',- total_memory: 'number',- available_memory: 'number'- },- networkMonitor: {- connected: 'boolean',- type: 'string',- wifi_ssid: 'string',- ip_address: 'string'- },- wifiAutomation: {- wifi_enabled: 'boolean',- ssid: 'string',- ip_address: 'string',- signal_strength: 'number'- },- bluetoothAutomation: {- bluetooth_enabled: 'boolean',- paired_devices: 'array',- connected_devices: 'array'- },- audioAutomation: {- music_volume: 'number',- ring_volume: 'number',- muted: 'boolean'- },- androidLocation: {- latitude: 'number',- longitude: 'number',- accuracy: 'number',- provider: 'string',- altitude: 'number',- speed: 'number',- bearing: 'number'- },- appLauncher: {- package_name: 'string',- launched: 'boolean',- app_name: 'string'- },- appList: {- apps: 'array',- count: 'number'- },- deviceStateAutomation: {- airplane_mode: 'boolean',- screen_on: 'boolean',- brightness: 'number'- },- screenControlAutomation: {- brightness: 'number',- auto_brightness: 'boolean',- screen_timeout: 'number'- },- airplaneModeControl: {- airplane_mode_enabled: 'boolean'- },- motionDetection: {- accelerometer: { x: 'number', y: 'number', z: 'number' },- gyroscope: { x: 'number', y: 'number', z: 'number' },- motion_detected: 'boolean'- },- environmentalSensors: {- temperature: 'number',- humidity: 'number',- pressure: 'number',- light_level: 'number'- },- cameraControl: {- cameras: 'array',- photo_path: 'string',- success: 'boolean'- },- mediaControl: {- volume: 'number',- is_playing: 'boolean',- current_track: 'string'- },- chatTrigger: {- message: 'string',- timestamp: 'string',- session_id: 'string'- },- taskTrigger: {- task_id: 'string',- status: 'string', // 'completed' or 'error'- agent_name: 'string',- agent_node_id: 'string',- parent_node_id: 'string',- result: 'string', // Present when status='completed'- error: 'string', // Present when status='error'- workflow_id: 'string',- },- // Social nodes schema (4 output handles)- social: {- // Output 1: message text for LLM input- message: 'string',- // Output 2: media data- media: {- url: 'string',- type: 'string',- mimetype: 'string',- caption: 'string',- size: 'number',- thumbnail: 'string',- filename: 'string'- },- // Output 3: contact/sender info- contact: {- sender: 'string',- sender_phone: 'string',- sender_name: 'string',- sender_username: 'string',- channel: 'string',- is_group: 'boolean',- group_info: 'object',- chat_title: 'string'- },- // Output 4: message metadata- metadata: {- message_id: 'string',- chat_id: 'string',- timestamp: 'string',- message_type: 'string',- is_from_me: 'boolean',- is_forwarded: 'boolean',- reply_to: 'object',- thread_id: 'string'- },- // Backwards compatibility - also available at top level- message_id: 'string',- sender: 'string',- sender_phone: 'string',- sender_name: 'string',- chat_id: 'string',- channel: 'string',- text: 'string',- timestamp: 'string',- is_group: 'boolean',- is_from_me: 'boolean'- },- socialSend: {- success: 'boolean',- message_id: 'string',- channel: 'string',- recipient: 'string',- message_type: 'string',- timestamp: 'string'- },- // Search node schema (shared by braveSearch, serperSearch, perplexitySearch)- search: {- query: 'string',- results: [{- title: 'string',- snippet: 'string',- url: 'string',- }],- result_count: 'number',- answer: 'string',- citations: 'array',- provider: 'string',- },- // Document processing schemas- httpScraper: {- items: 'array',- item_count: 'number',- errors: 'array'- },- fileDownloader: {- downloaded: 'number',- skipped: 'number',- failed: 'number',- files: 'array',- output_dir: 'string'- },- documentParser: {- documents: 'array',- parsed_count: 'number',- failed: 'array'- },- textChunker: {- chunks: 'array',- chunk_count: 'number'- },- embeddingGenerator: {- embeddings: 'array',- embedding_count: 'number',- dimensions: 'number',- chunks: 'array'- },- vectorStore: {- stored_count: 'number',- matches: 'array',- collection_name: 'string',- backend: 'string'- },- // Apify web scraping schema- apify: {- run_id: 'string',- actor_id: 'string',- status: 'string',- dataset_id: 'string',- items: 'array',- item_count: 'number',- compute_units: 'number',- started_at: 'string',- finished_at: 'string'- },- // Proxy node schemas- proxyRequest: {- status: 'number',- data: 'any',- headers: 'object',- url: 'string',- method: 'string',- proxy_provider: 'string',- latency_ms: 'number',- bytes_transferred: 'number',- attempt: 'number'- },- proxyStatus: {- enabled: 'boolean',- providers: 'array',- stats: 'object'- },- proxyConfig: {- operation: 'string',- success: 'boolean',- data: 'any'- },- // Browser automation schema- browser: {- operation: 'string',- data: 'any',- session: 'string'- },- // Crawlee web scraping schema- crawlee: {- pages: [{- url: 'string',- title: 'string',- content: 'string',- links: 'array',- screenshot: 'string'- }],- page_count: 'number',- crawler_type: 'string',- mode: 'string',- proxied: 'boolean'- },- // Filesystem & shell node schemas- fileRead: {- content: 'string',- file_path: 'string',- encoding: 'string'- },- fileModify: {- operation: 'string',- file_path: 'string',- occurrences: 'number'- },- shell: {- stdout: 'string',- exit_code: 'number',- truncated: 'boolean',- command: 'string'- },- fsSearch: {- path: 'string',- entries: 'array',- matches: 'array',- pattern: 'string',- count: 'number'- },- // Email node schemas (Himalaya CLI)- emailSend: {- from: 'string',- to: 'string',- subject: 'string'- },- emailRead: {- operation: 'string',- folder: 'string',- data: 'any'- },- emailReceive: {- message_id: 'string',- from: 'string',- to: 'string',- subject: 'string',- date: 'string',- body: 'string',- folder: 'string'- }- };-- // Node type detection- const isMemory = nodeType === 'simpleMemory';- const nodeTypeLower = nodeType.toLowerCase();- // AI agent types that use the AI output schema- const aiAgentTypes = ['aiAgent', 'chatAgent', 'android_agent', 'coding_agent', 'web_agent', 'task_agent', 'social_agent', 'travel_agent', 'tool_agent', 'productivity_agent', 'payments_agent', 'consumer_agent', 'autonomous_agent', 'orchestrator_agent', 'ai_employee', 'rlm_agent', 'claude_code_agent', 'deep_agent'];- const isAI = !isMemory && (nodeTypeLower.includes('chatmodel') || aiAgentTypes.includes(nodeType));- const isFile = nodeType.includes('file');- const isWhatsAppDb = nodeType === 'whatsappDb';- const isWhatsApp = !isWhatsAppDb && (nodeType.includes('whatsapp') || nodeType.includes('Whatsapp'));- const isWebhook = nodeType === 'webhookTrigger';- const isHttpRequest = nodeType === 'httpRequest';- const isPython = nodeType.includes('python') || nodeType.includes('Python');- const isJavaScript = nodeType.includes('javascript') || nodeType.includes('Javascript');- const isCodeExecutor = isPython || isJavaScript;- const isCronScheduler = nodeType === 'cronScheduler';- const isChatTrigger = nodeType === 'chatTrigger';- const isTaskTrigger = nodeType === 'taskTrigger';- const isTelegramReceive = nodeType === 'telegramReceive';- const isSocialReceive = nodeType === 'socialReceive';- const isSocialSend = nodeType === 'socialSend';- const isSearchNode = nodeType === 'braveSearch' || nodeType === 'serperSearch' || nodeType === 'perplexitySearch';-- // Google Workspace consolidated nodes detection- const googleWorkspaceNodeTypes = ['gmail', 'gmailReceive', 'calendar', 'drive', 'sheets', 'tasks', 'contacts'];- const isGoogleWorkspaceNode = googleWorkspaceNodeTypes.includes(nodeType);-- // Document processing node detection- const documentNodeTypes = ['httpScraper', 'fileDownloader', 'documentParser', 'textChunker', 'embeddingGenerator', 'vectorStore'];- const isDocumentNode = documentNodeTypes.includes(nodeType);-- // Android service node detection - check for specific Android node types- const androidNodeTypes = [- 'batteryMonitor', 'systemInfo', 'networkMonitor',- 'wifiAutomation', 'bluetoothAutomation', 'audioAutomation',- 'deviceStateAutomation', 'screenControlAutomation', 'airplaneModeControl',- 'motionDetection', 'environmentalSensors', 'cameraControl', 'mediaControl',- 'appLauncher', 'appList'- ];- const isAndroidNode = androidNodeTypes.includes(nodeType);- const isAndroidLocation = nodeType === 'location';-- // Location nodes (Google Maps, not Android location)- const isLocationNode = nodeType.includes('location') && !isAndroidLocation;- const isGoogleMaps = nodeType === 'gmaps_create' || nodeType === 'gmaps_locations' || nodeType === 'gmaps_nearby_places';-- // Apify web scraping node detection- const isApify = nodeType === 'apifyActor';- // Proxy node detection- const proxyNodeTypes = ['proxyRequest', 'proxyStatus', 'proxyConfig'];- const isProxyNode = proxyNodeTypes.includes(nodeType);-- // Browser automation node detection- const isBrowser = nodeType === 'browser';-- // Crawlee web scraping node detection- const isCrawlee = nodeType === 'crawleeScraper';-- // Filesystem & shell node detection- const isFilesystemNode = ['fileRead', 'fileModify', 'shell', 'fsSearch'].includes(nodeType);-- // Email node detection (Himalaya CLI)- const isEmailNode = ['emailSend', 'emailRead', 'emailReceive'].includes(nodeType);-- // Select appropriate schema- if (isAndroidLocation) {- outputSchema = sampleSchemas.androidLocation;- } else if (isAndroidNode && sampleSchemas[nodeType as keyof typeof sampleSchemas]) {- outputSchema = sampleSchemas[nodeType as keyof typeof sampleSchemas];- } else if (isDocumentNode && sampleSchemas[nodeType as keyof typeof sampleSchemas]) {- outputSchema = sampleSchemas[nodeType as keyof typeof sampleSchemas];- } else if (isGoogleWorkspaceNode && sampleSchemas[nodeType as keyof typeof sampleSchemas]) {- outputSchema = sampleSchemas[nodeType as keyof typeof sampleSchemas];- } else if (isProxyNode && sampleSchemas[nodeType as keyof typeof sampleSchemas]) {- outputSchema = sampleSchemas[nodeType as keyof typeof sampleSchemas];- } else {- outputSchema = isLocationNode || isGoogleMaps ? sampleSchemas.location :- isMemory ? sampleSchemas.memory :- isAI ? sampleSchemas.ai :- isFile ? sampleSchemas.file :- isWhatsAppDb ? sampleSchemas.whatsappDb :- isWhatsApp ? sampleSchemas.whatsapp :- isWebhook ? sampleSchemas.webhook :- isHttpRequest ? sampleSchemas.httpRequest :- isCodeExecutor ? sampleSchemas.python :- isCronScheduler ? sampleSchemas.cronScheduler :- isChatTrigger ? sampleSchemas.chatTrigger :- isTaskTrigger ? sampleSchemas.taskTrigger :- isTelegramReceive ? sampleSchemas.telegram :- isSocialReceive ? sampleSchemas.social :- isSocialSend ? sampleSchemas.socialSend :- isApify ? sampleSchemas.apify :- isSearchNode ? sampleSchemas.search :- isBrowser ? sampleSchemas.browser :- isCrawlee ? sampleSchemas.crawlee :- isFilesystemNode ? (sampleSchemas[nodeType as keyof typeof sampleSchemas] || { data: 'any' }) :- isEmailNode ? (sampleSchemas[nodeType as keyof typeof sampleSchemas] || { data: 'any' }) :- { data: 'any' };- }-- // Filter schema for multi-output nodes based on connected handle- // When connected via specific output handle, show only that handle's schema- if (isSocialReceive && edge.sourceHandle && edge.sourceHandle.startsWith('output-')) {+ // socialReceive multi-output dispatch: when the downstream edge+ // connects via a specific output-* handle, show only that+ // handle's nested schema. The backend schema surfaces all four+ // nested objects (message / media / contact / metadata) plus+ // top-level flat fields; we slice the right nested object+ // here. Colocated with the multi-output consumer.+ if (nodeType === 'socialReceive' && edge.sourceHandle?.startsWith('output-')) {const handleName = edge.sourceHandle.replace('output-', '');- const socialSchema = sampleSchemas.social as Record<string, any>;- if (handleName && socialSchema[handleName]) {- // Show only the specific output's schema- outputSchema = typeof socialSchema[handleName] === 'object'- ? socialSchema[handleName]- : { [handleName]: socialSchema[handleName] };+ const nested = handleName && (backendSchema as Record<string, any>)[handleName];+ if (nested !== undefined) {+ outputSchema = typeof nested === 'object' && nested !== null+ ? nested+ : { [handleName]: nested };}}+ } else {+ // No backend schema declared and no run data -> empty fallback.+ // Frontend never guesses shapes.+ outputSchema = { data: 'any' };}}diff --git a/server/services/node_output_schemas.py b/server/services/node_output_schemas.pyindex 9d7537f1..bc706989 100644--- a/server/services/node_output_schemas.py+++ b/server/services/node_output_schemas.py@@ -292,6 +292,438 @@ class FsSearchOutput(_OutputBase):count: Optional[int] = None+# ---------------------------------------------------------------------------+# Scheduler+# ---------------------------------------------------------------------------+++class CronSchedulerOutput(_OutputBase):+ timestamp: Optional[str] = None+ iteration: Optional[int] = None+ start_mode: Optional[str] = None+ frequency: Optional[str] = None+ timezone: Optional[str] = None+ schedule: Optional[str] = None+ scheduled_time: Optional[str] = None+ triggered_at: Optional[str] = None+ waited_seconds: Optional[float] = None+ message: Optional[str] = None+++# ---------------------------------------------------------------------------+# Google Workspace — remaining+# ---------------------------------------------------------------------------+++class DriveOutput(_OutputBase):+ operation: Optional[str] = None+ file_id: Optional[str] = None+ name: Optional[str] = None+ mime_type: Optional[str] = None+ web_view_link: Optional[str] = None+ web_content_link: Optional[str] = None+ size: Optional[int] = None+ content: Optional[str] = None+ files: Optional[list] = None+ count: Optional[int] = None+ next_page_token: Optional[str] = None+ permission_id: Optional[str] = None+ role: Optional[str] = None+ email: Optional[str] = None+++class SheetsOutput(_OutputBase):+ operation: Optional[str] = None+ values: Optional[list] = None+ range: Optional[str] = None+ rows: Optional[int] = None+ columns: Optional[int] = None+ major_dimension: Optional[str] = None+ updated_range: Optional[str] = None+ updated_rows: Optional[int] = None+ updated_columns: Optional[int] = None+ updated_cells: Optional[int] = None+ table_range: Optional[str] = None+++class TasksOutput(_OutputBase):+ operation: Optional[str] = None+ task_id: Optional[str] = None+ title: Optional[str] = None+ notes: Optional[str] = None+ due: Optional[str] = None+ status: Optional[str] = None+ completed: Optional[str] = None+ tasks: Optional[list] = None+ count: Optional[int] = None+ deleted: Optional[bool] = None+++class ContactsOutput(_OutputBase):+ operation: Optional[str] = None+ resource_name: Optional[str] = None+ display_name: Optional[str] = None+ given_name: Optional[str] = None+ family_name: Optional[str] = None+ email: Optional[str] = None+ phone: Optional[str] = None+ company: Optional[str] = None+ job_title: Optional[str] = None+ contacts: Optional[list] = None+ count: Optional[int] = None+ total_people: Optional[int] = None+ next_page_token: Optional[str] = None+ deleted: Optional[bool] = None+++# ---------------------------------------------------------------------------+# Messaging: Telegram, WhatsApp DB, Social+# ---------------------------------------------------------------------------+++class TelegramReceiveOutput(_OutputBase):+ message_id: Optional[int] = None+ chat_id: Optional[int] = None+ chat_type: Optional[str] = None+ chat_title: Optional[str] = None+ from_id: Optional[int] = None+ from_username: Optional[str] = None+ from_first_name: Optional[str] = None+ from_last_name: Optional[str] = None+ is_bot: Optional[bool] = None+ text: Optional[str] = None+ content_type: Optional[str] = None+ date: Optional[str] = None+ reply_to_message_id: Optional[int] = None+ photo: Optional[dict] = None+ document: Optional[dict] = None+ location: Optional[dict] = None+ contact: Optional[dict] = None+++class WhatsAppDbOutput(_OutputBase):+ """Composite — different operations surface different subsets of these+ fields. We keep them all optional so the variable panel shows the union."""++ operation: Optional[str] = None+ messages: Optional[list] = None+ total: Optional[int] = None+ has_more: Optional[bool] = None+ count: Optional[int] = None+ chat_type: Optional[str] = None+ groups: Optional[list] = None+ contacts: Optional[list] = None+ participants: Optional[list] = None+ jid: Optional[str] = None+ phone: Optional[str] = None+ name: Optional[str] = None+ push_name: Optional[str] = None+ business_name: Optional[str] = None+ is_business: Optional[bool] = None+ is_contact: Optional[bool] = None+ profile_pic: Optional[str] = None+ channels: Optional[list] = None+ channel_jid: Optional[str] = None+ timestamp: Optional[str] = None+ muted: Optional[bool] = None+ server_ids: Optional[str] = None+ status: Optional[str] = None+++class SocialReceiveOutput(_OutputBase):+ """socialReceive has four output handles (message / media / contact /+ metadata) plus top-level fields for backwards compatibility. The+ variable panel dispatches per-handle via edge.sourceHandle, reading+ the nested object at the matching key."""++ message: Optional[str] = None+ media: Optional[dict] = None+ contact: Optional[dict] = None+ metadata: Optional[dict] = None+ # backwards-compat top-level fields:+ message_id: Optional[str] = None+ sender: Optional[str] = None+ sender_phone: Optional[str] = None+ sender_name: Optional[str] = None+ chat_id: Optional[str] = None+ channel: Optional[str] = None+ text: Optional[str] = None+ timestamp: Optional[str] = None+ is_group: Optional[bool] = None+ is_from_me: Optional[bool] = None+++class SocialSendOutput(_OutputBase):+ success: Optional[bool] = None+ message_id: Optional[str] = None+ channel: Optional[str] = None+ recipient: Optional[str] = None+ message_type: Optional[str] = None+ timestamp: Optional[str] = None+++# ---------------------------------------------------------------------------+# Twitter / X+# ---------------------------------------------------------------------------+++class TwitterSendOutput(_OutputBase):+ tweet_id: Optional[str] = None+ text: Optional[str] = None+ author_id: Optional[str] = None+ created_at: Optional[str] = None+ action: Optional[str] = None+++class TwitterSearchOutput(_OutputBase):+ tweets: Optional[list] = None+ count: Optional[int] = None+ query: Optional[str] = None+++class TwitterUserOutput(_OutputBase):+ id: Optional[str] = None+ username: Optional[str] = None+ name: Optional[str] = None+ profile_image_url: Optional[str] = None+ verified: Optional[bool] = None+++# ---------------------------------------------------------------------------+# Document processing+# ---------------------------------------------------------------------------+++class HttpScraperOutput(_OutputBase):+ items: Optional[list] = None+ item_count: Optional[int] = None+ errors: Optional[list] = None+++class FileDownloaderOutput(_OutputBase):+ downloaded: Optional[int] = None+ skipped: Optional[int] = None+ failed: Optional[int] = None+ files: Optional[list] = None+ output_dir: Optional[str] = None+++class DocumentParserOutput(_OutputBase):+ documents: Optional[list] = None+ parsed_count: Optional[int] = None+ failed: Optional[list] = None+++class TextChunkerOutput(_OutputBase):+ chunks: Optional[list] = None+ chunk_count: Optional[int] = None+++class EmbeddingGeneratorOutput(_OutputBase):+ embeddings: Optional[list] = None+ embedding_count: Optional[int] = None+ dimensions: Optional[int] = None+ chunks: Optional[list] = None+++class VectorStoreOutput(_OutputBase):+ stored_count: Optional[int] = None+ matches: Optional[list] = None+ collection_name: Optional[str] = None+ backend: Optional[str] = None+++# ---------------------------------------------------------------------------+# Web scrapers / browser+# ---------------------------------------------------------------------------+++class ApifyOutput(_OutputBase):+ run_id: Optional[str] = None+ actor_id: Optional[str] = None+ status: Optional[str] = None+ dataset_id: Optional[str] = None+ items: Optional[list] = None+ item_count: Optional[int] = None+ compute_units: Optional[float] = None+ started_at: Optional[str] = None+ finished_at: Optional[str] = None+++class BrowserOutput(_OutputBase):+ operation: Optional[str] = None+ data: Optional[Any] = None+ session: Optional[str] = None+++class CrawleeOutput(_OutputBase):+ pages: Optional[list] = None+ page_count: Optional[int] = None+ crawler_type: Optional[str] = None+ mode: Optional[str] = None+ proxied: Optional[bool] = None+++# ---------------------------------------------------------------------------+# Proxy nodes+# ---------------------------------------------------------------------------+++class ProxyRequestOutput(_OutputBase):+ status: Optional[int] = None+ data: Optional[Any] = None+ headers: Optional[dict] = None+ url: Optional[str] = None+ method: Optional[str] = None+ proxy_provider: Optional[str] = None+ latency_ms: Optional[float] = None+ bytes_transferred: Optional[int] = None+ attempt: Optional[int] = None+++class ProxyStatusOutput(_OutputBase):+ enabled: Optional[bool] = None+ providers: Optional[list] = None+ stats: Optional[dict] = None+++class ProxyConfigOutput(_OutputBase):+ operation: Optional[str] = None+ success: Optional[bool] = None+ data: Optional[Any] = None+++# ---------------------------------------------------------------------------+# Email (Himalaya)+# ---------------------------------------------------------------------------+++class EmailSendOutput(_OutputBase):+ from_: Optional[str] = Field(None, alias="from")+ to: Optional[str] = None+ subject: Optional[str] = None++ model_config = ConfigDict(populate_by_name=True, extra="allow")+++class EmailReadOutput(_OutputBase):+ operation: Optional[str] = None+ folder: Optional[str] = None+ data: Optional[Any] = None+++class EmailReceiveOutput(_OutputBase):+ message_id: Optional[str] = None+ from_: Optional[str] = Field(None, alias="from")+ to: Optional[str] = None+ subject: Optional[str] = None+ date: Optional[str] = None+ body: Optional[str] = None+ folder: Optional[str] = None++ model_config = ConfigDict(populate_by_name=True, extra="allow")+++# ---------------------------------------------------------------------------+# Android services (remaining — monitoring / apps / automation / sensors / media)+# ---------------------------------------------------------------------------+++class BatteryMonitorOutput(_OutputBase):+ battery_level: Optional[float] = None+ is_charging: Optional[bool] = None+ temperature_celsius: Optional[float] = None+ health: Optional[str] = None+ voltage: Optional[float] = None+++class SystemInfoOutput(_OutputBase):+ device_model: Optional[str] = None+ android_version: Optional[str] = None+ api_level: Optional[int] = None+ manufacturer: Optional[str] = None+ total_memory: Optional[int] = None+ available_memory: Optional[int] = None+++class NetworkMonitorOutput(_OutputBase):+ connected: Optional[bool] = None+ type: Optional[str] = None+ wifi_ssid: Optional[str] = None+ ip_address: Optional[str] = None+++class WifiAutomationOutput(_OutputBase):+ wifi_enabled: Optional[bool] = None+ ssid: Optional[str] = None+ ip_address: Optional[str] = None+ signal_strength: Optional[float] = None+++class BluetoothAutomationOutput(_OutputBase):+ bluetooth_enabled: Optional[bool] = None+ paired_devices: Optional[list] = None+ connected_devices: Optional[list] = None+++class AudioAutomationOutput(_OutputBase):+ music_volume: Optional[float] = None+ ring_volume: Optional[float] = None+ muted: Optional[bool] = None+++class AppLauncherOutput(_OutputBase):+ package_name: Optional[str] = None+ launched: Optional[bool] = None+ app_name: Optional[str] = None+++class AppListOutput(_OutputBase):+ apps: Optional[list] = None+ count: Optional[int] = None+++class DeviceStateAutomationOutput(_OutputBase):+ airplane_mode: Optional[bool] = None+ screen_on: Optional[bool] = None+ brightness: Optional[float] = None+++class ScreenControlAutomationOutput(_OutputBase):+ brightness: Optional[float] = None+ auto_brightness: Optional[bool] = None+ screen_timeout: Optional[int] = None+++class AirplaneModeControlOutput(_OutputBase):+ airplane_mode_enabled: Optional[bool] = None+++class MotionDetectionOutput(_OutputBase):+ accelerometer: Optional[dict] = None+ gyroscope: Optional[dict] = None+ motion_detected: Optional[bool] = None+++class EnvironmentalSensorsOutput(_OutputBase):+ temperature: Optional[float] = None+ humidity: Optional[float] = None+ pressure: Optional[float] = None+ light_level: Optional[float] = None+++class CameraControlOutput(_OutputBase):+ cameras: Optional[list] = None+ photo_path: Optional[str] = None+ success: Optional[bool] = None+++class MediaControlOutput(_OutputBase):+ volume: Optional[float] = None+ is_playing: Optional[bool] = None+ current_track: Optional[str] = None++# ---------------------------------------------------------------------------# Registry# ---------------------------------------------------------------------------@@ -345,6 +777,7 @@ NODE_OUTPUT_SCHEMAS: dict[str, type[BaseModel]] = {"chatTrigger": ChatTriggerOutput,"taskTrigger": TaskTriggerOutput,"webhookTrigger": WebhookTriggerOutput,+ "cronScheduler": CronSchedulerOutput,# AI**{t: AIAgentOutput for t in _AGENT_TYPES},**{t: AIAgentOutput for t in _CHAT_MODEL_TYPES},@@ -356,10 +789,26 @@ NODE_OUTPUT_SCHEMAS: dict[str, type[BaseModel]] = {"whatsappReceive": WhatsAppReceiveOutput,"whatsappSend": WhatsAppSendOutput,+ "whatsappDb": WhatsAppDbOutput,+ # telegram / twitter+ "telegramReceive": TelegramReceiveOutput,+ "telegram": TelegramReceiveOutput, # legacy alias+ "twitterSend": TwitterSendOutput,+ "twitter": TwitterSendOutput, # legacy alias+ "twitterSearch": TwitterSearchOutput,+ "twitterUser": TwitterUserOutput,+ # social+ "socialReceive": SocialReceiveOutput,+ "social": SocialReceiveOutput, # legacy alias+ "socialSend": SocialSendOutput,# google workspace"gmail": GmailOutput,"gmailReceive": GmailReceiveOutput,"calendar": CalendarOutput,+ "drive": DriveOutput,+ "sheets": SheetsOutput,+ "tasks": TasksOutput,+ "contacts": ContactsOutput,# search**{t: SearchOutput for t in _SEARCH_TYPES},# location@@ -371,6 +820,46 @@ NODE_OUTPUT_SCHEMAS: dict[str, type[BaseModel]] = {"fileModify": FileModifyOutput,"shell": ShellOutput,"fsSearch": FsSearchOutput,+ # document processing+ "httpScraper": HttpScraperOutput,+ "fileDownloader": FileDownloaderOutput,+ "documentParser": DocumentParserOutput,+ "textChunker": TextChunkerOutput,+ "embeddingGenerator": EmbeddingGeneratorOutput,+ "vectorStore": VectorStoreOutput,+ # web scrapers / browser+ "apifyActor": ApifyOutput,+ "apify": ApifyOutput, # legacy alias+ "browser": BrowserOutput,+ "crawleeScraper": CrawleeOutput,+ "crawlee": CrawleeOutput, # legacy alias+ # proxy+ "proxyRequest": ProxyRequestOutput,+ "proxyStatus": ProxyStatusOutput,+ "proxyConfig": ProxyConfigOutput,+ "emailSend": EmailSendOutput,+ "emailRead": EmailReadOutput,+ "emailReceive": EmailReceiveOutput,+ # android (monitoring)+ "batteryMonitor": BatteryMonitorOutput,+ "systemInfo": SystemInfoOutput,+ "networkMonitor": NetworkMonitorOutput,+ # android (apps)+ "appLauncher": AppLauncherOutput,+ "appList": AppListOutput,+ # android (automation)+ "wifiAutomation": WifiAutomationOutput,+ "bluetoothAutomation": BluetoothAutomationOutput,+ "audioAutomation": AudioAutomationOutput,+ "deviceStateAutomation": DeviceStateAutomationOutput,+ "screenControlAutomation": ScreenControlAutomationOutput,+ "airplaneModeControl": AirplaneModeControlOutput,+ # android (sensors / media)+ "motionDetection": MotionDetectionOutput,+ "environmentalSensors": EnvironmentalSensorsOutput,+ "cameraControl": CameraControlOutput,+ "mediaControl": MediaControlOutput,}