Skip to content

feat(sdk): add MIME and PDF processor options - #21

Merged
VinciGit00 merged 6 commits into
mainfrom
marcovinciguerra/feat/search-content-types
Jul 30, 2026
Merged

feat(sdk): add MIME and PDF processor options#21
VinciGit00 merged 6 commits into
mainfrom
marcovinciguerra/feat/search-content-types

Conversation

@VinciGit00

@VinciGit00 VinciGit00 commented Jul 29, 2026

Copy link
Copy Markdown
Member

Aligns the JavaScript SDK with the current API and playground contract across Scrape, Extract, Search, and Crawl.

Changes

  • add allowedTypes and processors schemas to all four endpoints
  • replace the obsolete Crawl contentTypes field
  • validate PDF maxPages and non-empty allowlists/processors
  • update examples and request coverage

Verification

  • Biome passed
  • TypeScript passed
  • unit tests: 54 passed
  • live local calls through the JavaScript SDK: Scrape, Extract, Search, and Crawl all returned status: success
  • PDF Search with maxPages: 1 returned OCR metadata with exactly one processed page

Counterparts: ScrapeGraphAI/scrapegraph-py#101, ScrapeGraphAI/docs-mintlify#93, ScrapeGraphAI/sgai-stack#963.

Search now accepts contentTypes so callers can pick which content types get
fetched. Adds application/json and text/markdown to fetchContentTypeSchema to
match the API enum.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
@VinciGit00
VinciGit00 force-pushed the marcovinciguerra/feat/search-content-types branch from 7423665 to 783d96b Compare July 29, 2026 13:14
@VinciGit00 VinciGit00 changed the title feat(search): add contentTypes filter feat(search): add MIME and PDF processor options Jul 30, 2026
@VinciGit00 VinciGit00 changed the title feat(search): add MIME and PDF processor options feat(sdk): add MIME and PDF processor options Jul 30, 2026
@VinciGit00
VinciGit00 merged commit da7a25b into main Jul 30, 2026
3 checks passed
@VinciGit00
VinciGit00 deleted the marcovinciguerra/feat/search-content-types branch July 30, 2026 14:54
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