Skip to content

fix(hunter): align tools, block, and outputs with Hunter.io v2 API spec#4511

Merged
waleedlatif1 merged 2 commits into
stagingfrom
waleedlatif1/validate-hunter-io
May 8, 2026
Merged

fix(hunter): align tools, block, and outputs with Hunter.io v2 API spec#4511
waleedlatif1 merged 2 commits into
stagingfrom
waleedlatif1/validate-hunter-io

Conversation

@waleedlatif1
Copy link
Copy Markdown
Collaborator

Summary

  • Audit Hunter.io integration against v2 docs; remove phantom output fields and add missing ones across domain_search, email_finder, discover, companies_find
  • Fix discover response path (companies array, not data.data) and wrap headcount/company_type/technology in include arrays per docs
  • Flatten companies_find response, fix nested paths (category/metrics/geo/linkedin handle)
  • Mark optional filters as advanced mode; rename block to "Hunter.io"
  • Add transformResponse tests for all four tools

Type of Change

  • Bug fix

Testing

  • 11 unit tests covering transformResponse for domain_search, email_finder, discover, companies_find
  • Lint, typecheck, and api-validation pass

Checklist

  • Code follows project style guidelines
  • Self-reviewed my changes
  • Tests added/updated and passing
  • No new warnings introduced
  • I confirm that I have read and agree to the terms outlined in the Contributor License Agreement (CLA)