Skip to content

Commit c04e5de

Browse files
refactor(types): drop Api prefix, align names with python sdk
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>
1 parent 3f87301 commit c04e5de

4 files changed

Lines changed: 432 additions & 394 deletions

File tree

src/index.ts

Lines changed: 105 additions & 47 deletions
Original file line numberDiff line numberDiff line change
@@ -13,55 +13,113 @@ export {
1313
} from "./scrapegraphai.js";
1414

1515
export type {
16-
ApiFetchConfig,
17-
ApiFetchContentType,
18-
ApiHtmlMode,
19-
ApiScrapeFormatEntry,
20-
ApiScrapeRequest,
21-
ApiScrapeResponse,
22-
ApiScrapeFormat,
23-
ApiScrapeResultMap,
24-
ApiExtractRequest,
25-
ApiExtractResponse,
26-
ApiSearchRequest,
27-
ApiSearchResponse,
28-
ApiSearchResult,
29-
ApiCrawlRequest,
30-
ApiCrawlResponse,
31-
ApiCrawlResult,
32-
ApiCrawlPage,
33-
ApiCrawlStatus,
34-
ApiCrawlPageStatus,
35-
ApiMonitorCreateInput,
36-
ApiMonitorUpdateInput,
37-
ApiMonitorResponse,
38-
ApiMonitorResult,
39-
ApiMonitorDiffs,
40-
ApiMonitorActivityParams,
41-
ApiMonitorActivityResponse,
42-
ApiMonitorTickEntry,
43-
ApiMonitorTickStatus,
44-
ApiHistoryFilter,
45-
ApiHistoryEntry,
46-
ApiHistoryPage,
47-
ApiHistoryService,
48-
ApiHistoryStatus,
49-
ApiCreditsResponse,
50-
ApiHealthResponse,
5116
ApiResult,
52-
ApiTokenUsage,
53-
ApiChunkerMetadata,
54-
ApiBranding,
17+
Branding,
18+
BrandingColors,
19+
BrandingFontEntry,
20+
BrandingImages,
21+
BrandingMetadata,
22+
BrandingPersonality,
23+
BrandingTypography,
24+
ChunkerMetadata,
25+
ContentPageMetadata,
26+
CrawlHistoryEntry,
27+
CrawlPage,
28+
CrawlPageStatus,
29+
CrawlRequest,
30+
CrawlResponse,
31+
CrawlResult,
32+
CrawlStatus,
33+
CreditsJobs,
34+
CreditsResponse,
35+
ExtractHistoryEntry,
36+
ExtractRequest,
37+
ExtractResponse,
38+
FetchConfig,
39+
FetchContentType,
40+
FetchMode,
41+
FetchWarning,
42+
FetchWarningReason,
43+
FormatConfig,
44+
FormatError,
45+
FormatMetadataMap,
46+
FormatResponseMap,
47+
FormatType,
48+
HealthResponse,
49+
HealthServices,
50+
HistoryEntry,
51+
HistoryFilter,
52+
HistoryPage,
53+
HistoryPagination,
54+
HistoryStatus,
55+
HtmlMode,
56+
ImageChange,
57+
ImageContentType,
58+
JobsStatus,
59+
JsonChange,
60+
MarkdownFormatConfig,
61+
HtmlFormatConfig,
62+
ScreenshotFormatConfig,
63+
JsonFormatConfig,
64+
LinksFormatConfig,
65+
ImagesFormatConfig,
66+
SummaryFormatConfig,
67+
BrandingFormatConfig,
68+
MockConfig,
69+
MonitorActivityRequest,
70+
MonitorActivityResponse,
71+
MonitorCreateRequest,
72+
MonitorDiffs,
73+
MonitorHistoryEntry,
74+
MonitorRefs,
75+
MonitorResponse,
76+
MonitorResult,
77+
MonitorTickEntry,
78+
MonitorTickStatus,
79+
MonitorUpdateRequest,
80+
PageResponse,
81+
ScrapeHistoryEntry,
82+
ScrapeMetadata,
83+
ScrapeRequest,
84+
ScrapeResponse,
85+
ScrapeResultMap,
86+
ScreenshotData,
87+
SearchHistoryEntry,
88+
SearchMetadata,
89+
SearchRequest,
90+
SearchResponse,
91+
SearchResult,
92+
Service,
93+
SetChange,
94+
TextChange,
95+
TimeRange,
96+
TokenUsage,
97+
WebhookStatus,
5598
} from "./types.js";
5699

57100
export {
58-
apiScrapeRequestSchema,
59-
apiExtractRequestBaseSchema,
60-
apiSearchRequestSchema,
61-
apiCrawlRequestSchema,
62-
apiMonitorCreateSchema,
63-
apiMonitorUpdateSchema,
64-
apiHistoryFilterSchema,
65-
apiFetchConfigSchema,
66-
apiScrapeFormatEntrySchema,
101+
brandingFormatConfigSchema,
102+
crawlRequestSchema,
103+
extractRequestSchema,
104+
fetchConfigSchema,
105+
fetchContentTypeSchema,
106+
fetchModeSchema,
107+
formatConfigSchema,
108+
historyFilterSchema,
109+
htmlFormatConfigSchema,
110+
htmlModeSchema,
111+
imagesFormatConfigSchema,
112+
jsonFormatConfigSchema,
113+
linksFormatConfigSchema,
114+
markdownFormatConfigSchema,
115+
mockConfigSchema,
116+
monitorActivityRequestSchema,
117+
monitorCreateRequestSchema,
118+
monitorUpdateRequestSchema,
119+
scrapeRequestSchema,
120+
screenshotFormatConfigSchema,
121+
searchRequestSchema,
122+
serviceSchema,
123+
summaryFormatConfigSchema,
124+
timeRangeSchema,
67125
} from "./schemas.js";

0 commit comments

Comments
 (0)