refactor(types): drop Api prefix, align with python sdk#17
Merged
VinciGit00 merged 3 commits intomainfrom Apr 22, 2026
Merged
Conversation
rename types and schemas to match scrapegraph-py naming 1:1. only ApiResult<T> keeps its prefix. also: - apiExtractRequestBaseSchema -> extractRequestSchema (drop Base) - ApiMonitorCreateInput/UpdateInput -> MonitorCreateRequest/UpdateRequest - ApiMonitorActivityParams -> MonitorActivityRequest - ApiHistoryService -> Service - expose MockConfig, FetchMode, TimeRange, FetchWarningReason, CreditsJobs, HealthServices, HistoryPagination and the 8 individual FormatConfig variants - remove unused apiStatusEnumSchema Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
VinciGit00
approved these changes
Apr 22, 2026
Merged
4 tasks
VinciGit00
added a commit
to ScrapeGraphAI/docs-mintlify
that referenced
this pull request
Apr 22, 2026
Upstream PR ScrapeGraphAI/scrapegraph-js#17 drops the `Api` prefix from all exported TypeScript types and Zod schemas (only `ApiResult<T>` keeps it) and renames monitor `*Input`/`*Params` to `*Request`. Runtime surface is unchanged. - sdks/javascript.mdx: note the 2.1.0 type/schema rename, bump version requirement, rename `FormatEntry[]` -> `FormatConfig[]` in the scrape and crawl parameter tables. - services/{scrape,extract,search,crawl,monitor}.mdx + transition-from-v1-to-v2.mdx: bump `scrapegraph-js` version pin from >= 2.0.1 to >= 2.1.0. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
scrapegraph-py1:1 — onlyApiResult<T>keeps the prefixBasefromextractRequestSchema, rename monitor*Input/*Params→*Request,ApiHistoryService→ServiceMockConfig,FetchMode,TimeRange,FetchWarningReason,CreditsJobs,HealthServices,HistoryPagination, and the 8 individual*FormatConfigvariantsapiStatusEnumSchemaTest plan
bun run format/bun run lint/bunx tsc --noEmit/bun run build— all greensearchfails on test-level 5s timeout, endpoint-side slowness unrelated to rename)🤖 Generated with Claude Code