{ "kind": "open-flow-workflow", "version": 1, "name": "Hunter Email Verifier", "content": { "modelVersion": 14, "document": { "bindings": {}, "graph": { "nodes": { "n_3fdd292d3c534bb9": { "name": "Enter email to verify", "kind": "start", "inputDefs": [ { "jsonSchema": { "type": "string", "format": "email", "description": "The email address to verify." }, "nullable": false, "handle": "email" } ] }, "n_2ab3758e888ffbcf": { "inputs": { "email": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_3fdd292d3c534bb9", "output": "email" } ] } }, "name": "Request Hunter email verification", "kind": "task", "task": { "inputs": [ { "description": "The email address to verify.", "jsonSchema": { "type": "string", "format": "email", "description": "The email address to verify." }, "nullable": false, "handle": "email" } ], "outputs": [ { "description": "An arbitrary JSON object returned by Hunter.", "jsonSchema": { "type": "object", "properties": {}, "additionalProperties": true, "description": "An arbitrary JSON object returned by Hunter." }, "nullable": false, "handle": "output" } ], "name": "Request Hunter email verification", "executor": { "kind": "connector", "action": "hunter.email_verifier", "outputMode": "value" } } }, "n_c69eebbdae71fd0b": { "inputs": { "response": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_2ab3758e888ffbcf", "output": "output" } ] } }, "name": "Read completed email assessment", "kind": "task", "task": { "inputs": [ { "jsonSchema": { "type": "object", "properties": {}, "additionalProperties": true, "description": "An arbitrary JSON object returned by Hunter." }, "nullable": false, "handle": "response" } ], "outputs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "assessment" } ], "name": "Read completed email assessment", "moduleId": "n_11cf6a89ded8d9f4", "capabilities": [ { "kind": "connector", "mode": "independent", "actions": [] } ] } }, "n_4ec2958187bae4e9": { "name": "Hunter email assessment", "kind": "outputs", "outputDefs": [ { "jsonSchema": { "type": "object", "additionalProperties": true }, "nullable": false, "handle": "assessment" } ], "outputMappings": { "assessment": { "kind": "sources", "sources": [ { "kind": "node", "nodeId": "n_c69eebbdae71fd0b", "output": "assessment" } ] } } } }, "edges": [ { "source": "n_3fdd292d3c534bb9", "target": "n_2ab3758e888ffbcf" }, { "source": "n_2ab3758e888ffbcf", "target": "n_c69eebbdae71fd0b" }, { "source": "n_c69eebbdae71fd0b", "target": "n_4ec2958187bae4e9" } ] } }, "modules": { "n_11cf6a89ded8d9f4": { "name": "Read completed email assessment", "imports": [], "source": "function readHunterAssessment(assessment) {\n if (!assessment || typeof assessment !== 'object' || Array.isArray(assessment) || typeof assessment.email !== 'string' || assessment.email.length === 0 || !['valid', 'invalid', 'accept_all', 'webmail', 'disposable', 'unknown'].includes(assessment.status)) throw new Error('Hunter did not return a completed email assessment; verification may still be in progress');\n return assessment;\n}\nexport default function ({ response }) {\n if (!response || typeof response !== 'object' || Array.isArray(response) || response.errors) throw new Error('Hunter did not return a completed assessment; verification may be pending or rejected');\n return { assessment: readHunterAssessment(response.data) };\n}\n" } } }, "presentation": { "designer": { "version": 1, "flow": { "direction": "vertical" } } } }