context.dev 1.17.0 → 1.19.0

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.
@@ -5,7 +5,7 @@ module ContextDev
5
5
  url: String,
6
6
  include_frames: bool,
7
7
  max_age_ms: Integer,
8
- parse_pdf: bool,
8
+ pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
9
9
  timeout_ms: Integer,
10
10
  wait_for_ms: Integer
11
11
  }
@@ -25,9 +25,11 @@ module ContextDev
25
25
 
26
26
  def max_age_ms=: (Integer) -> Integer
27
27
 
28
- attr_reader parse_pdf: bool?
28
+ attr_reader pdf: ContextDev::WebWebScrapeHTMLParams::Pdf?
29
29
 
30
- def parse_pdf=: (bool) -> bool
30
+ def pdf=: (
31
+ ContextDev::WebWebScrapeHTMLParams::Pdf
32
+ ) -> ContextDev::WebWebScrapeHTMLParams::Pdf
31
33
 
32
34
  attr_reader timeout_ms: Integer?
33
35
 
@@ -41,7 +43,7 @@ module ContextDev
41
43
  url: String,
42
44
  ?include_frames: bool,
43
45
  ?max_age_ms: Integer,
44
- ?parse_pdf: bool,
46
+ ?pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
45
47
  ?timeout_ms: Integer,
46
48
  ?wait_for_ms: Integer,
47
49
  ?request_options: ContextDev::request_opts
@@ -51,11 +53,35 @@ module ContextDev
51
53
  url: String,
52
54
  include_frames: bool,
53
55
  max_age_ms: Integer,
54
- parse_pdf: bool,
56
+ pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
55
57
  timeout_ms: Integer,
56
58
  wait_for_ms: Integer,
57
59
  request_options: ContextDev::RequestOptions
58
60
  }
61
+
62
+ type pdf = { end_: Integer, should_parse: bool, start: Integer }
63
+
64
+ class Pdf < ContextDev::Internal::Type::BaseModel
65
+ attr_reader end_: Integer?
66
+
67
+ def end_=: (Integer) -> Integer
68
+
69
+ attr_reader should_parse: bool?
70
+
71
+ def should_parse=: (bool) -> bool
72
+
73
+ attr_reader start: Integer?
74
+
75
+ def start=: (Integer) -> Integer
76
+
77
+ def initialize: (
78
+ ?end_: Integer,
79
+ ?should_parse: bool,
80
+ ?start: Integer
81
+ ) -> void
82
+
83
+ def to_hash: -> { end_: Integer, should_parse: bool, start: Integer }
84
+ end
59
85
  end
60
86
  end
61
87
  end
@@ -7,7 +7,7 @@ module ContextDev
7
7
  include_images: bool,
8
8
  include_links: bool,
9
9
  max_age_ms: Integer,
10
- parse_pdf: bool,
10
+ pdf: ContextDev::WebWebScrapeMdParams::Pdf,
11
11
  :shorten_base64_images => bool,
12
12
  timeout_ms: Integer,
13
13
  use_main_content_only: bool,
@@ -37,9 +37,11 @@ module ContextDev
37
37
 
38
38
  def max_age_ms=: (Integer) -> Integer
39
39
 
40
- attr_reader parse_pdf: bool?
40
+ attr_reader pdf: ContextDev::WebWebScrapeMdParams::Pdf?
41
41
 
42
- def parse_pdf=: (bool) -> bool
42
+ def pdf=: (
43
+ ContextDev::WebWebScrapeMdParams::Pdf
44
+ ) -> ContextDev::WebWebScrapeMdParams::Pdf
43
45
 
44
46
  attr_reader shorten_base64_images: bool?
45
47
 
@@ -63,7 +65,7 @@ module ContextDev
63
65
  ?include_images: bool,
64
66
  ?include_links: bool,
65
67
  ?max_age_ms: Integer,
66
- ?parse_pdf: bool,
68
+ ?pdf: ContextDev::WebWebScrapeMdParams::Pdf,
67
69
  ?shorten_base64_images: bool,
68
70
  ?timeout_ms: Integer,
69
71
  ?use_main_content_only: bool,
@@ -77,13 +79,37 @@ module ContextDev
77
79
  include_images: bool,
78
80
  include_links: bool,
79
81
  max_age_ms: Integer,
80
- parse_pdf: bool,
82
+ pdf: ContextDev::WebWebScrapeMdParams::Pdf,
81
83
  :shorten_base64_images => bool,
82
84
  timeout_ms: Integer,
83
85
  use_main_content_only: bool,
84
86
  wait_for_ms: Integer,
85
87
  request_options: ContextDev::RequestOptions
86
88
  }
89
+
90
+ type pdf = { end_: Integer, should_parse: bool, start: Integer }
91
+
92
+ class Pdf < ContextDev::Internal::Type::BaseModel
93
+ attr_reader end_: Integer?
94
+
95
+ def end_=: (Integer) -> Integer
96
+
97
+ attr_reader should_parse: bool?
98
+
99
+ def should_parse=: (bool) -> bool
100
+
101
+ attr_reader start: Integer?
102
+
103
+ def start=: (Integer) -> Integer
104
+
105
+ def initialize: (
106
+ ?end_: Integer,
107
+ ?should_parse: bool,
108
+ ?start: Integer
109
+ ) -> void
110
+
111
+ def to_hash: -> { end_: Integer, should_parse: bool, start: Integer }
112
+ end
87
113
  end
88
114
  end
89
115
  end
@@ -19,6 +19,7 @@ module ContextDev
19
19
  ?direct_url: String,
20
20
  ?domain: String,
21
21
  ?full_screenshot: ContextDev::Models::WebScreenshotParams::full_screenshot,
22
+ ?handle_cookie_popup: ContextDev::Models::WebScreenshotParams::handle_cookie_popup,
22
23
  ?max_age_ms: Integer,
23
24
  ?page: ContextDev::Models::WebScreenshotParams::page,
24
25
  ?timeout_ms: Integer,
@@ -36,8 +37,9 @@ module ContextDev
36
37
  ?max_age_ms: Integer,
37
38
  ?max_depth: Integer,
38
39
  ?max_pages: Integer,
39
- ?parse_pdf: bool,
40
+ ?pdf: ContextDev::WebWebCrawlMdParams::Pdf,
40
41
  ?shorten_base64_images: bool,
42
+ ?stop_after_ms: Integer,
41
43
  ?timeout_ms: Integer,
42
44
  ?url_regex: String,
43
45
  ?use_main_content_only: bool,
@@ -49,7 +51,7 @@ module ContextDev
49
51
  url: String,
50
52
  ?include_frames: bool,
51
53
  ?max_age_ms: Integer,
52
- ?parse_pdf: bool,
54
+ ?pdf: ContextDev::WebWebScrapeHTMLParams::Pdf,
53
55
  ?timeout_ms: Integer,
54
56
  ?wait_for_ms: Integer,
55
57
  ?request_options: ContextDev::request_opts
@@ -70,7 +72,7 @@ module ContextDev
70
72
  ?include_images: bool,
71
73
  ?include_links: bool,
72
74
  ?max_age_ms: Integer,
73
- ?parse_pdf: bool,
75
+ ?pdf: ContextDev::WebWebScrapeMdParams::Pdf,
74
76
  ?shorten_base64_images: bool,
75
77
  ?timeout_ms: Integer,
76
78
  ?use_main_content_only: bool,
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: context.dev
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.17.0
4
+ version: 1.19.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Context Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-05-09 00:00:00.000000000 Z
11
+ date: 2026-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cgi