@@ -59,8 +59,8 @@ type ScrapeConfigOptions = {
59
59
proxy_pool ?: string ;
60
60
session ?: string ;
61
61
tags ?: string [ ] ;
62
- format ?: string | Format ;
63
- format_options ?: string [ ] | FormatOption [ ] ;
62
+ format ?: 'json' | 'text' | 'markdown' | 'clean_html' | 'raw' | Format ;
63
+ format_options ?: ( 'no_links' | 'no_images' | 'only_content' ) [ ] | FormatOption [ ] ;
64
64
correlation_id ?: string ;
65
65
cookies ?: Rec < string > ;
66
66
body ?: string ;
@@ -70,7 +70,7 @@ type ScrapeConfigOptions = {
70
70
rendering_wait ?: number ;
71
71
wait_for_selector ?: string ;
72
72
screenshots ?: Rec < any > ;
73
- screenshot_flags ?: string [ ] | ScreenshotFlags [ ] ;
73
+ screenshot_flags ?: ( 'load_images' | 'dark_mode' | 'block_banners' | 'print_media_format' | 'high_quality' ) [ ] | ScreenshotFlags [ ] ;
74
74
session_sticky_proxy ?: boolean ;
75
75
webhook ?: string ;
76
76
timeout ?: number ;
@@ -101,8 +101,8 @@ export class ScrapeConfig {
101
101
proxy_pool ?: string ;
102
102
session ?: string ;
103
103
tags : Set < string > = new Set < string > ( ) ;
104
- format ?: Format | string ; // raw(unchanged)
105
- format_options ?: string [ ] | FormatOption [ ] ;
104
+ format ?: 'json' | 'text' | 'markdown' | 'clean_html' | ' raw' | Format ;
105
+ format_options ?: ( 'no_links' | 'no_images' | 'only_content' ) [ ] | FormatOption [ ] ;
106
106
correlation_id ?: string ;
107
107
cookies ?: Rec < string > ;
108
108
body ?: string ;
@@ -113,7 +113,7 @@ export class ScrapeConfig {
113
113
wait_for_selector ?: string ;
114
114
session_sticky_proxy = false ;
115
115
screenshots ?: Rec < any > ;
116
- screenshot_flags ?: ScreenshotFlags [ ] | string [ ] ;
116
+ screenshot_flags ?: ( 'load_images' | 'dark_mode' | 'block_banners' | 'print_media_format' | 'high_quality' ) [ ] | ScreenshotFlags [ ] ;
117
117
webhook ?: string ;
118
118
timeout ?: number ; // in milliseconds
119
119
js_scenario ?: Rec < any > ;
0 commit comments