@upcrawl/sdk 1.4.0 → 1.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -1,262 +1,283 @@
1
+ import { z } from 'zod';
1
2
  import { AxiosInstance } from 'axios';
2
3
 
3
4
  /**
4
5
  * Upcrawl SDK Types
5
6
  * Type definitions for all API requests and responses
7
+ * Powered by Zod schemas — single source of truth for types, validation, and docs
6
8
  */
7
- interface UpcrawlConfig {
8
- apiKey?: string;
9
- baseUrl?: string;
10
- timeout?: number;
11
- }
12
- interface SummaryQuery {
13
- /** Query/instruction for content summarization */
14
- query: string;
15
- }
16
- interface ScrapeOptions {
17
- /** URL to scrape (required) */
18
- url: string;
19
- /** Output format: html or markdown. Defaults to "html" */
20
- type?: 'html' | 'markdown';
21
- /** Extract only main content (removes nav, ads, footers). Defaults to true */
22
- onlyMainContent?: boolean;
23
- /** Whether to extract page metadata */
24
- extractMetadata?: boolean;
25
- /** Summary query for LLM summarization */
26
- summary?: SummaryQuery;
27
- /** Custom timeout in milliseconds (1000-120000) */
28
- timeoutMs?: number;
29
- /** Wait strategy for page load */
30
- waitUntil?: 'load' | 'domcontentloaded' | 'networkidle';
31
- }
32
- interface ScrapeMetadata {
33
- title?: string;
34
- description?: string;
35
- canonicalUrl?: string;
36
- finalUrl?: string;
37
- contentType?: string;
38
- contentLength?: number;
39
- }
40
- interface ScrapeResponse {
41
- /** Original URL that was scraped */
42
- url: string;
43
- /** Rendered HTML content (when type is html) */
44
- html?: string | null;
45
- /** Content converted to Markdown (when type is markdown) */
46
- markdown?: string | null;
47
- /** HTTP status code */
48
- statusCode: number | null;
49
- /** Whether scraping was successful */
50
- success: boolean;
51
- /** Error message if scraping failed */
52
- error?: string;
53
- /** ISO timestamp when scraping completed */
54
- timestamp: string;
55
- /** Time taken to load and render the page in milliseconds */
56
- loadTimeMs: number;
57
- /** Additional page metadata */
58
- metadata?: ScrapeMetadata;
59
- /** Number of retry attempts made */
60
- retryCount: number;
61
- /** Cost in USD for this scrape operation */
62
- cost?: number;
63
- /** Content after summarization (when summary query provided) */
64
- content?: string | null;
65
- }
66
- interface BatchScrapeOptions {
67
- /** Array of URLs to scrape (strings or detailed request objects) */
68
- urls: (string | ScrapeOptions)[];
69
- /** Output format: html or markdown */
70
- type?: 'html' | 'markdown';
71
- /** Extract only main content (removes nav, ads, footers) */
72
- onlyMainContent?: boolean;
73
- /** Summary query for LLM summarization */
74
- summary?: SummaryQuery;
75
- /** Global timeout for entire batch operation in milliseconds (10000-600000) */
76
- batchTimeoutMs?: number;
77
- /** Whether to stop on first error */
78
- failFast?: boolean;
79
- }
80
- interface BatchScrapeResponse {
81
- /** Array of scrape results */
82
- results: ScrapeResponse[];
83
- /** Total number of URLs processed */
84
- total: number;
85
- /** Number of successful scrapes */
86
- successful: number;
87
- /** Number of failed scrapes */
88
- failed: number;
89
- /** Total time taken for batch operation in milliseconds */
90
- totalTimeMs: number;
91
- /** Timestamp when batch operation completed */
92
- timestamp: string;
93
- /** Total cost in USD for all scrape operations */
94
- cost?: number;
95
- }
96
- interface SearchOptions {
97
- /** Array of search queries to execute (1-20) */
98
- queries: string[];
99
- /** Number of results per query (1-100). Defaults to 10 */
100
- limit?: number;
101
- /** Location for search (e.g., "IN", "US") */
102
- location?: string;
103
- /** Domains to include (will add site: to query) */
104
- includeDomains?: string[];
105
- /** Domains to exclude (will add -site: to query) */
106
- excludeDomains?: string[];
107
- }
108
- interface SearchResultWeb {
109
- /** URL of the search result */
110
- url: string;
111
- /** Title of the search result */
112
- title: string;
113
- /** Description/snippet of the search result */
114
- description: string;
115
- }
116
- interface SearchResultItem {
117
- /** The search query */
118
- query: string;
119
- /** Whether the search was successful */
120
- success: boolean;
121
- /** Parsed search result links */
122
- results: SearchResultWeb[];
123
- /** Error message if failed */
124
- error?: string;
125
- /** Time taken in milliseconds */
126
- loadTimeMs?: number;
127
- /** Cost in USD for this query */
128
- cost?: number;
129
- }
130
- interface SearchResponse {
131
- /** Array of search results per query */
132
- results: SearchResultItem[];
133
- /** Total number of queries */
134
- total: number;
135
- /** Number of successful searches */
136
- successful: number;
137
- /** Number of failed searches */
138
- failed: number;
139
- /** Total time in milliseconds */
140
- totalTimeMs: number;
141
- /** ISO timestamp */
142
- timestamp: string;
143
- /** Total cost in USD */
144
- cost?: number;
145
- }
146
- interface PdfMargin {
147
- top?: string;
148
- right?: string;
149
- bottom?: string;
150
- left?: string;
151
- }
152
- interface GeneratePdfOptions {
153
- /** Complete HTML content to convert to PDF (required) */
154
- html: string;
155
- /** Title used for the exported filename */
156
- title?: string;
157
- /** Page size. Defaults to "A4" */
158
- pageSize?: 'A4' | 'Letter' | 'Legal';
159
- /** Landscape orientation. Defaults to false */
160
- landscape?: boolean;
161
- /** Page margins (e.g., { top: '20mm', right: '20mm', bottom: '20mm', left: '20mm' }) */
162
- margin?: PdfMargin;
163
- /** Print background graphics and colors. Defaults to true */
164
- printBackground?: boolean;
165
- /** Skip waiting for chart rendering signal. Defaults to false */
166
- skipChartWait?: boolean;
167
- /** Timeout in milliseconds (5000-120000). Defaults to 30000 */
168
- timeoutMs?: number;
169
- }
170
- interface GeneratePdfFromUrlOptions {
171
- /** URL to navigate to and convert to PDF (required) */
172
- url: string;
173
- /** Title used for the exported filename */
174
- title?: string;
175
- /** Page size. Defaults to "A4" */
176
- pageSize?: 'A4' | 'Letter' | 'Legal';
177
- /** Landscape orientation. Defaults to false */
178
- landscape?: boolean;
179
- /** Page margins */
180
- margin?: PdfMargin;
181
- /** Print background graphics and colors. Defaults to true */
182
- printBackground?: boolean;
183
- /** Timeout in milliseconds (5000-120000). Defaults to 30000 */
184
- timeoutMs?: number;
185
- }
186
- interface PdfResponse {
187
- /** Whether PDF generation succeeded */
188
- success: boolean;
189
- /** Public URL of the generated PDF */
190
- url?: string;
191
- /** Generated filename */
192
- filename?: string;
193
- /** Blob storage path */
194
- blobName?: string;
195
- /** Error message on failure */
196
- error?: string;
197
- /** Total time taken in milliseconds */
198
- durationMs: number;
199
- }
200
- interface ExecuteCodeOptions {
201
- /** Code to execute (required) */
202
- code: string;
203
- /** Language runtime. Defaults to "python" */
204
- language?: 'python';
205
- }
206
- interface ExecuteCodeResponse {
207
- /** Standard output from the executed code */
208
- stdout: string;
209
- /** Standard error from the executed code */
210
- stderr: string;
211
- /** Process exit code (0 = success, 124 = timeout) */
212
- exitCode: number;
213
- /** Execution time in milliseconds */
214
- executionTimeMs: number;
215
- /** Whether execution was killed due to timeout */
216
- timedOut: boolean;
217
- /** Peak memory usage in megabytes */
218
- memoryUsageMb?: number;
219
- /** Error message if execution infrastructure failed */
220
- error?: string;
221
- /** Cost in USD for this execution */
222
- cost?: number;
223
- }
224
- interface UpcrawlErrorResponse {
225
- error: {
226
- code: string;
227
- message: string;
228
- };
229
- statusCode?: number;
230
- }
9
+
10
+ declare const UpcrawlConfigSchema: z.ZodObject<{
11
+ apiKey: z.ZodOptional<z.ZodString>;
12
+ baseUrl: z.ZodOptional<z.ZodString>;
13
+ timeout: z.ZodOptional<z.ZodNumber>;
14
+ }, z.core.$strip>;
15
+ type UpcrawlConfig = z.infer<typeof UpcrawlConfigSchema>;
16
+ declare const SummaryQuerySchema: z.ZodObject<{
17
+ query: z.ZodString;
18
+ }, z.core.$strip>;
19
+ type SummaryQuery = z.infer<typeof SummaryQuerySchema>;
20
+ declare const ScrapeOptionsSchema: z.ZodObject<{
21
+ url: z.ZodString;
22
+ type: z.ZodOptional<z.ZodEnum<{
23
+ html: "html";
24
+ markdown: "markdown";
25
+ }>>;
26
+ onlyMainContent: z.ZodOptional<z.ZodBoolean>;
27
+ extractMetadata: z.ZodOptional<z.ZodBoolean>;
28
+ summary: z.ZodOptional<z.ZodObject<{
29
+ query: z.ZodString;
30
+ }, z.core.$strip>>;
31
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
32
+ waitUntil: z.ZodOptional<z.ZodEnum<{
33
+ load: "load";
34
+ domcontentloaded: "domcontentloaded";
35
+ networkidle: "networkidle";
36
+ }>>;
37
+ }, z.core.$strip>;
38
+ type ScrapeOptions = z.infer<typeof ScrapeOptionsSchema>;
39
+ declare const ScrapeMetadataSchema: z.ZodObject<{
40
+ title: z.ZodOptional<z.ZodString>;
41
+ description: z.ZodOptional<z.ZodString>;
42
+ canonicalUrl: z.ZodOptional<z.ZodString>;
43
+ finalUrl: z.ZodOptional<z.ZodString>;
44
+ contentType: z.ZodOptional<z.ZodString>;
45
+ contentLength: z.ZodOptional<z.ZodNumber>;
46
+ }, z.core.$strip>;
47
+ type ScrapeMetadata = z.infer<typeof ScrapeMetadataSchema>;
48
+ declare const ScrapeResponseSchema: z.ZodObject<{
49
+ url: z.ZodString;
50
+ html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
51
+ markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
52
+ statusCode: z.ZodNullable<z.ZodNumber>;
53
+ success: z.ZodBoolean;
54
+ error: z.ZodOptional<z.ZodString>;
55
+ timestamp: z.ZodString;
56
+ loadTimeMs: z.ZodNumber;
57
+ metadata: z.ZodOptional<z.ZodObject<{
58
+ title: z.ZodOptional<z.ZodString>;
59
+ description: z.ZodOptional<z.ZodString>;
60
+ canonicalUrl: z.ZodOptional<z.ZodString>;
61
+ finalUrl: z.ZodOptional<z.ZodString>;
62
+ contentType: z.ZodOptional<z.ZodString>;
63
+ contentLength: z.ZodOptional<z.ZodNumber>;
64
+ }, z.core.$strip>>;
65
+ retryCount: z.ZodNumber;
66
+ cost: z.ZodOptional<z.ZodNumber>;
67
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
68
+ }, z.core.$strip>;
69
+ type ScrapeResponse = z.infer<typeof ScrapeResponseSchema>;
70
+ declare const BatchScrapeOptionsSchema: z.ZodObject<{
71
+ urls: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodObject<{
72
+ url: z.ZodString;
73
+ type: z.ZodOptional<z.ZodEnum<{
74
+ html: "html";
75
+ markdown: "markdown";
76
+ }>>;
77
+ onlyMainContent: z.ZodOptional<z.ZodBoolean>;
78
+ extractMetadata: z.ZodOptional<z.ZodBoolean>;
79
+ summary: z.ZodOptional<z.ZodObject<{
80
+ query: z.ZodString;
81
+ }, z.core.$strip>>;
82
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
83
+ waitUntil: z.ZodOptional<z.ZodEnum<{
84
+ load: "load";
85
+ domcontentloaded: "domcontentloaded";
86
+ networkidle: "networkidle";
87
+ }>>;
88
+ }, z.core.$strip>]>>;
89
+ type: z.ZodOptional<z.ZodEnum<{
90
+ html: "html";
91
+ markdown: "markdown";
92
+ }>>;
93
+ onlyMainContent: z.ZodOptional<z.ZodBoolean>;
94
+ summary: z.ZodOptional<z.ZodObject<{
95
+ query: z.ZodString;
96
+ }, z.core.$strip>>;
97
+ batchTimeoutMs: z.ZodOptional<z.ZodNumber>;
98
+ failFast: z.ZodOptional<z.ZodBoolean>;
99
+ }, z.core.$strip>;
100
+ type BatchScrapeOptions = z.infer<typeof BatchScrapeOptionsSchema>;
101
+ declare const BatchScrapeResponseSchema: z.ZodObject<{
102
+ results: z.ZodArray<z.ZodObject<{
103
+ url: z.ZodString;
104
+ html: z.ZodOptional<z.ZodNullable<z.ZodString>>;
105
+ markdown: z.ZodOptional<z.ZodNullable<z.ZodString>>;
106
+ statusCode: z.ZodNullable<z.ZodNumber>;
107
+ success: z.ZodBoolean;
108
+ error: z.ZodOptional<z.ZodString>;
109
+ timestamp: z.ZodString;
110
+ loadTimeMs: z.ZodNumber;
111
+ metadata: z.ZodOptional<z.ZodObject<{
112
+ title: z.ZodOptional<z.ZodString>;
113
+ description: z.ZodOptional<z.ZodString>;
114
+ canonicalUrl: z.ZodOptional<z.ZodString>;
115
+ finalUrl: z.ZodOptional<z.ZodString>;
116
+ contentType: z.ZodOptional<z.ZodString>;
117
+ contentLength: z.ZodOptional<z.ZodNumber>;
118
+ }, z.core.$strip>>;
119
+ retryCount: z.ZodNumber;
120
+ cost: z.ZodOptional<z.ZodNumber>;
121
+ content: z.ZodOptional<z.ZodNullable<z.ZodString>>;
122
+ }, z.core.$strip>>;
123
+ total: z.ZodNumber;
124
+ successful: z.ZodNumber;
125
+ failed: z.ZodNumber;
126
+ totalTimeMs: z.ZodNumber;
127
+ timestamp: z.ZodString;
128
+ cost: z.ZodOptional<z.ZodNumber>;
129
+ }, z.core.$strip>;
130
+ type BatchScrapeResponse = z.infer<typeof BatchScrapeResponseSchema>;
131
+ declare const SearchOptionsSchema: z.ZodObject<{
132
+ queries: z.ZodArray<z.ZodString>;
133
+ limit: z.ZodOptional<z.ZodNumber>;
134
+ location: z.ZodOptional<z.ZodString>;
135
+ includeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
136
+ excludeDomains: z.ZodOptional<z.ZodArray<z.ZodString>>;
137
+ }, z.core.$strip>;
138
+ type SearchOptions = z.infer<typeof SearchOptionsSchema>;
139
+ declare const SearchResultWebSchema: z.ZodObject<{
140
+ url: z.ZodString;
141
+ title: z.ZodString;
142
+ description: z.ZodString;
143
+ }, z.core.$strip>;
144
+ type SearchResultWeb = z.infer<typeof SearchResultWebSchema>;
145
+ declare const SearchResultItemSchema: z.ZodObject<{
146
+ query: z.ZodString;
147
+ success: z.ZodBoolean;
148
+ results: z.ZodArray<z.ZodObject<{
149
+ url: z.ZodString;
150
+ title: z.ZodString;
151
+ description: z.ZodString;
152
+ }, z.core.$strip>>;
153
+ error: z.ZodOptional<z.ZodString>;
154
+ loadTimeMs: z.ZodOptional<z.ZodNumber>;
155
+ cost: z.ZodOptional<z.ZodNumber>;
156
+ }, z.core.$strip>;
157
+ type SearchResultItem = z.infer<typeof SearchResultItemSchema>;
158
+ declare const SearchResponseSchema: z.ZodObject<{
159
+ results: z.ZodArray<z.ZodObject<{
160
+ query: z.ZodString;
161
+ success: z.ZodBoolean;
162
+ results: z.ZodArray<z.ZodObject<{
163
+ url: z.ZodString;
164
+ title: z.ZodString;
165
+ description: z.ZodString;
166
+ }, z.core.$strip>>;
167
+ error: z.ZodOptional<z.ZodString>;
168
+ loadTimeMs: z.ZodOptional<z.ZodNumber>;
169
+ cost: z.ZodOptional<z.ZodNumber>;
170
+ }, z.core.$strip>>;
171
+ total: z.ZodNumber;
172
+ successful: z.ZodNumber;
173
+ failed: z.ZodNumber;
174
+ totalTimeMs: z.ZodNumber;
175
+ timestamp: z.ZodString;
176
+ cost: z.ZodOptional<z.ZodNumber>;
177
+ }, z.core.$strip>;
178
+ type SearchResponse = z.infer<typeof SearchResponseSchema>;
179
+ declare const PdfMarginSchema: z.ZodObject<{
180
+ top: z.ZodOptional<z.ZodString>;
181
+ right: z.ZodOptional<z.ZodString>;
182
+ bottom: z.ZodOptional<z.ZodString>;
183
+ left: z.ZodOptional<z.ZodString>;
184
+ }, z.core.$strip>;
185
+ type PdfMargin = z.infer<typeof PdfMarginSchema>;
186
+ declare const GeneratePdfOptionsSchema: z.ZodObject<{
187
+ html: z.ZodString;
188
+ title: z.ZodOptional<z.ZodString>;
189
+ pageSize: z.ZodOptional<z.ZodEnum<{
190
+ A4: "A4";
191
+ Letter: "Letter";
192
+ Legal: "Legal";
193
+ }>>;
194
+ landscape: z.ZodOptional<z.ZodBoolean>;
195
+ margin: z.ZodOptional<z.ZodObject<{
196
+ top: z.ZodOptional<z.ZodString>;
197
+ right: z.ZodOptional<z.ZodString>;
198
+ bottom: z.ZodOptional<z.ZodString>;
199
+ left: z.ZodOptional<z.ZodString>;
200
+ }, z.core.$strip>>;
201
+ printBackground: z.ZodOptional<z.ZodBoolean>;
202
+ skipChartWait: z.ZodOptional<z.ZodBoolean>;
203
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
204
+ }, z.core.$strip>;
205
+ type GeneratePdfOptions = z.infer<typeof GeneratePdfOptionsSchema>;
206
+ declare const GeneratePdfFromUrlOptionsSchema: z.ZodObject<{
207
+ url: z.ZodString;
208
+ title: z.ZodOptional<z.ZodString>;
209
+ pageSize: z.ZodOptional<z.ZodEnum<{
210
+ A4: "A4";
211
+ Letter: "Letter";
212
+ Legal: "Legal";
213
+ }>>;
214
+ landscape: z.ZodOptional<z.ZodBoolean>;
215
+ margin: z.ZodOptional<z.ZodObject<{
216
+ top: z.ZodOptional<z.ZodString>;
217
+ right: z.ZodOptional<z.ZodString>;
218
+ bottom: z.ZodOptional<z.ZodString>;
219
+ left: z.ZodOptional<z.ZodString>;
220
+ }, z.core.$strip>>;
221
+ printBackground: z.ZodOptional<z.ZodBoolean>;
222
+ timeoutMs: z.ZodOptional<z.ZodNumber>;
223
+ }, z.core.$strip>;
224
+ type GeneratePdfFromUrlOptions = z.infer<typeof GeneratePdfFromUrlOptionsSchema>;
225
+ declare const PdfResponseSchema: z.ZodObject<{
226
+ success: z.ZodBoolean;
227
+ url: z.ZodOptional<z.ZodString>;
228
+ filename: z.ZodOptional<z.ZodString>;
229
+ blobName: z.ZodOptional<z.ZodString>;
230
+ error: z.ZodOptional<z.ZodString>;
231
+ durationMs: z.ZodNumber;
232
+ }, z.core.$strip>;
233
+ type PdfResponse = z.infer<typeof PdfResponseSchema>;
234
+ declare const ExecuteCodeOptionsSchema: z.ZodObject<{
235
+ code: z.ZodString;
236
+ language: z.ZodOptional<z.ZodEnum<{
237
+ python: "python";
238
+ }>>;
239
+ }, z.core.$strip>;
240
+ type ExecuteCodeOptions = z.infer<typeof ExecuteCodeOptionsSchema>;
241
+ declare const ExecuteCodeResponseSchema: z.ZodObject<{
242
+ stdout: z.ZodString;
243
+ stderr: z.ZodString;
244
+ exitCode: z.ZodNumber;
245
+ executionTimeMs: z.ZodNumber;
246
+ timedOut: z.ZodBoolean;
247
+ memoryUsageMb: z.ZodOptional<z.ZodNumber>;
248
+ error: z.ZodOptional<z.ZodString>;
249
+ cost: z.ZodOptional<z.ZodNumber>;
250
+ }, z.core.$strip>;
251
+ type ExecuteCodeResponse = z.infer<typeof ExecuteCodeResponseSchema>;
252
+ declare const UpcrawlErrorResponseSchema: z.ZodObject<{
253
+ error: z.ZodObject<{
254
+ code: z.ZodString;
255
+ message: z.ZodString;
256
+ }, z.core.$strip>;
257
+ statusCode: z.ZodOptional<z.ZodNumber>;
258
+ }, z.core.$strip>;
259
+ type UpcrawlErrorResponse = z.infer<typeof UpcrawlErrorResponseSchema>;
231
260
  declare class UpcrawlError extends Error {
232
261
  readonly status: number;
233
262
  readonly code: string;
234
263
  constructor(message: string, status: number, code?: string);
235
264
  }
236
- interface CreateBrowserSessionOptions {
237
- /** Browser viewport width (800-3840). Defaults to 1280 */
238
- width?: number;
239
- /** Browser viewport height (600-2160). Defaults to 720 */
240
- height?: number;
241
- /** Run browser in headless mode. Defaults to true */
242
- headless?: boolean;
243
- }
244
- interface BrowserSession {
245
- /** Unique session identifier */
246
- sessionId: string;
247
- /** WebSocket URL for connecting with Playwright/Puppeteer */
248
- wsEndpoint: string;
249
- /** VNC URL for viewing the browser (if available) */
250
- vncUrl: string | null;
251
- /** Affinity cookie for sticky session routing (format: SCRAPER_AFFINITY=xxx) - extracted from response headers */
252
- affinityCookie?: string;
253
- /** Session creation timestamp */
254
- createdAt: Date;
255
- /** Browser viewport width */
256
- width: number;
257
- /** Browser viewport height */
258
- height: number;
259
- }
265
+ declare const CreateBrowserSessionOptionsSchema: z.ZodObject<{
266
+ width: z.ZodOptional<z.ZodNumber>;
267
+ height: z.ZodOptional<z.ZodNumber>;
268
+ headless: z.ZodOptional<z.ZodBoolean>;
269
+ }, z.core.$strip>;
270
+ type CreateBrowserSessionOptions = z.infer<typeof CreateBrowserSessionOptionsSchema>;
271
+ declare const BrowserSessionSchema: z.ZodObject<{
272
+ sessionId: z.ZodString;
273
+ wsEndpoint: z.ZodString;
274
+ vncUrl: z.ZodNullable<z.ZodString>;
275
+ affinityCookie: z.ZodOptional<z.ZodString>;
276
+ createdAt: z.ZodDate;
277
+ width: z.ZodNumber;
278
+ height: z.ZodNumber;
279
+ }, z.core.$strip>;
280
+ type BrowserSession = z.infer<typeof BrowserSessionSchema>;
260
281
 
261
282
  /**
262
283
  * Upcrawl Browser Namespace
@@ -640,4 +661,4 @@ declare const Upcrawl: {
640
661
  readonly UpcrawlError: typeof UpcrawlError;
641
662
  };
642
663
 
643
- export { type BatchScrapeOptions, type BatchScrapeResponse, Browser, type BrowserSession, type CreateBrowserSessionOptions, type ExecuteCodeOptions, type ExecuteCodeResponse, type GeneratePdfFromUrlOptions, type GeneratePdfOptions, type PdfMargin, type PdfResponse, type ScrapeMetadata, type ScrapeOptions, type ScrapeResponse, type SearchOptions, type SearchResponse, type SearchResultItem, type SearchResultWeb, type SummaryQuery, type UpcrawlConfig, UpcrawlError, type UpcrawlErrorResponse, batchScrape, configure, Upcrawl as default, executeCode, generatePdf, generatePdfFromUrl, getConfig, resetConfig, scrape, search, setApiKey, setBaseUrl, setTimeout };
664
+ export { type BatchScrapeOptions, BatchScrapeOptionsSchema, type BatchScrapeResponse, BatchScrapeResponseSchema, Browser, type BrowserSession, BrowserSessionSchema, type CreateBrowserSessionOptions, CreateBrowserSessionOptionsSchema, type ExecuteCodeOptions, ExecuteCodeOptionsSchema, type ExecuteCodeResponse, ExecuteCodeResponseSchema, type GeneratePdfFromUrlOptions, GeneratePdfFromUrlOptionsSchema, type GeneratePdfOptions, GeneratePdfOptionsSchema, type PdfMargin, PdfMarginSchema, type PdfResponse, PdfResponseSchema, type ScrapeMetadata, ScrapeMetadataSchema, type ScrapeOptions, ScrapeOptionsSchema, type ScrapeResponse, ScrapeResponseSchema, type SearchOptions, SearchOptionsSchema, type SearchResponse, SearchResponseSchema, type SearchResultItem, SearchResultItemSchema, type SearchResultWeb, SearchResultWebSchema, type SummaryQuery, SummaryQuerySchema, type UpcrawlConfig, UpcrawlConfigSchema, UpcrawlError, type UpcrawlErrorResponse, UpcrawlErrorResponseSchema, batchScrape, configure, Upcrawl as default, executeCode, generatePdf, generatePdfFromUrl, getConfig, resetConfig, scrape, search, setApiKey, setBaseUrl, setTimeout };