Skip to content

feat(dealport): add Dealport integration - #10467

Open
rkmasiello wants to merge 2 commits into
simstudioai:stagingfrom
Dealport-HQ:feat/dealport-integration
Open

rkmasiello wants to merge 2 commits into
simstudioai:stagingfrom
Dealport-HQ:feat/dealport-integration

Conversation

@rkmasiello

Copy link
Copy Markdown

Summary

  • Adds a native Dealport integration (dealport): 6 tools mapped against Dealport's OpenAPI v1 specification (https://app.dealport.com/openapi/v1.json), the Dealport workflow block (DealportBlock + DealportBlockMeta), saved API key credential support, and integration documentation (apps/docs/content/docs/integrations/dealport.mdx).
  • Tools cover Dealport's V4 REST API (https://app.dealport.com/api/v1):
    • dealport_preview_companies (POST /api/v1/companies/preview, effect: 'read'): free ($0.00) US private company market sizing count and up to 5 sample companies across geography, NAICS, revenue, headcount, and regulatory filters
    • dealport_search_companies (GET /api/v1/companies, effect: 'read'): cursor-paginated search across 28M+ US private companies with primary public-filing basis metadata
    • dealport_search_buildings (GET /api/v1/buildings, effect: 'read'): cursor-paginated search across NYC commercial and multifamily buildings by borough, unit count, ACRIS loan maturity, mortgage holder category, and distress signals
    • dealport_get_record (GET /api/v1/records/{id}, effect: 'read'): open a cited company Record (UUID) or NYC building Record (10-digit BBL) with filed, observed, and estimated facts, principals, identifiers, and primary source citations
    • dealport_match_companies (POST /api/v1/companies/match, effect: 'write'): match 1 to 250 external company rows (items JSON array or raw csv) at $0.00 via domain and fuzzy entity resolution, with optional Dealport Project attachment (project_id, project_name) and weekly Project monitoring (watch)
    • dealport_find_owner (POST /api/v1/owners, effect: 'write'): resolve the verified human principal behind a private company, US LLC, or property address with direct phones, emails, and professional profile
  • Saved token credential (dealport-service-account, registered in tokenCredentialIntegrationTypes):
    • Sends workspace dp_live_ keys via Authorization: Bearer <token>
    • Validates saved keys against GET /api/v1/balance ($0.00), accepting 200 for read-scoped keys and 403 coded insufficient_key_scope for valid keys restricted to another scope (such as owners), while rejecting 401 or generic 403 responses
  • Explicit per-operation parameter mapping in DealportBlock:
    • Clears shared parameters left behind by inactive operations during workflow execution
    • Preserves agent tool-call arguments supplied under tool parameter names when context.operation is present
    • Enforces mutual exclusion (items vs csv), batch bounds (1..250), owner target presence, and safeUrlPathSegment traversal protection on Record IDs

Type of Change

  • New feature

Testing

  • Unit tests passing (vitest run):
    • apps/sim/blocks/blocks/dealport.test.ts (shared-field clearing across workflow operations, numeric/boolean coercion, and agent tool-call argument retention)
    • apps/sim/tools/dealport/request_contracts.test.ts (match_companies mutual exclusion and 1..250 bounds, find_owner target validation, get_record path-segment traversal protection, and response normalization across all 6 endpoints)
    • apps/sim/lib/credentials/token-service-accounts/validators/token-checks.test.ts (Dealport saved API key verification: 200 read key, 403 insufficient_key_scope scoped key, 401/403 bad key rejection, and 502 outage handling)
    • Registry, OAuth, and availability suites: blocks.test.ts, metadata.test.ts, param-shape.test.ts, availability.server.test.ts, oauth.test.ts, token-resolution.test.ts, service-account-provider-ids.test.ts, display-name.test.ts (11 test files, 359/359 tests passing)
  • Integration & repository audits passing:
    • check-canvas-sentences.ts --block=dealport --require-coverage (6/6 operations, 100%)
    • check-block-registry.ts upstream/staging
    • check:integration-catalog, check:docs, check:deployment-config, check:tool-metadata, check:sdk-names
    • check:tool-effects, check:tool-registry-boundary, check:tool-param-reachability, check:tool-request-boundary
    • check:bare-icons, check:icon-paths, check:icon-path-precision, check:mapper-operation, check:utils, check:explicit-any, check:comment-hygiene, check:test-patterns

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)

@vercel

vercel Bot commented Nov 27, 2026

Copy link
Copy Markdown

@rkmasiello is attempting to deploy a commit to the Sim Team on Vercel.

A member of the Team first needs to authorize it.

@greptile-apps

greptile-apps Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Confidence Score: 5/5 · The PR appears safe to merge, with the existing non-blocking concern about the monitoring switch’s wording still open.RetriggerView in GreptileConfidence Score: 5/5

[Medium impact] The PR appears safe to merge, with the existing non-blocking concern about the monitoring switch’s wording still open.

Findings

  1. P2 Monitoring schedule is misleading ▶

Summary

Adds Dealport with six tools for company previews, company and building searches, Record lookups, company matching, and owner lookups.

  • Dealport adds company and building research, matching, and owner lookup to Sim.
  • Workspaces can save Dealport API keys for authenticated calls.
  • The registry boundary baseline reflects the added Dealport integration.

Reviews (2) · Last reviewed commit: "feat(dealport): add Dealport integration" · Reviewed by Greptile

Comment thread apps/sim/blocks/blocks/dealport.ts Outdated
},
{
id: 'watch',
title: 'Watch Matched Companies Monthly',

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Monitoring schedule is misleading

The watch switch says “Watch Matched Companies Monthly,” but it enables weekly monitoring billed at $0.05 per company per month. Users cannot see the actual schedule or recurring price when turning it on. Rename the label to weekly monitoring and add the monthly price as help text.

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Addressed in 482acde: renamed the watch switch title to Watch Matched Companies Weekly and added help text stating the weekly monitoring schedule and $0.05 per newly watched company per month rate.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant