Skip to content

Migrate to api.context.dev/v1#7

Open
nikhil-mat wants to merge 5 commits into
context-dot-dev:mainfrom
nikhil-mat:context-dev-migration
Open

Migrate to api.context.dev/v1#7
nikhil-mat wants to merge 5 commits into
context-dot-dev:mainfrom
nikhil-mat:context-dev-migration

Conversation

@nikhil-mat

Copy link
Copy Markdown

Full migration to api.context.dev/v1 with feature parity against the TypeScript SDK.

Based on context-dot-dev/context-typescript-sdk — v1.29.0, commit 1e6724f (2026-06-01).

Operations (12 → 25)

Resource Operations
Brand Intelligence retrieve, retrieveByEmail, retrieveByName, retrieveByTicker, retrieveByIsin, retrieveSimplified, identifyFromTransaction
Web Scraping scrapeMd, scrapeHtml, scrapeImages, scrapeSitemap, screenshot, extractStyleguide, extractFonts, extractCompetitors, search, crawl, extract
Industry Classification retrieveNaics, retrieveSic
AI Data Extraction aiQuery, extractProducts, extractProduct
Utility prefetch, prefetchByEmail

Tests

246 unit tests covering every operation, URL, HTTP method, required fields, and routing direction.

All 25 endpoints hit against the live API prior to submission:

  • ✅ 23/25 — reachable, response shape verified
  • ⚠️ prefetch, prefetch-by-email — endpoint reachable, 403 (not available on free plan)

Correctness fixes

  • Industry classification re-routed to /web/naics and /web/sic
  • GET vs POST routing splits for shared optional params (maxAgeMs, timeoutMS, waitForMs, includeFrames, includeLinks, includeImages, useMainContentOnly) — each gets the right qs vs body routing per operation
  • Removed non-SDK fields from identifyFromTransaction
  • markdownOptions.enabled fixed with send: { type: 'body', property: 'markdownOptions.enabled' }
  • maxSpeed used instead of removed speed_optimized
  • Subtitle order: resource: operation

Structure

  • Web resource split into scraping.ts / brand.ts / searchExtract.ts for reviewability
  • Old nodes/Branddev/ and credentials/BranddevApi.credentials.ts removed
  • Credential updated: correct baseURL, integration_name: 'n8n' header, test request hits real endpoint
  • agents.md added — navigation guide for agents

nikhil-mat and others added 5 commits June 6, 2026 22:26
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@nikhil-mat

Copy link
Copy Markdown
Author

Updated to match TypeScript SDK v1.34.0 commit 0e0d6d4 (2026-06-11).

Now includes 268 unit tests

@nikhil-mat

Copy link
Copy Markdown
Author

verified compatibility till TypeScript SDK v1.36.0 commit d2c231a (2026-06-19)

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