context.dev 1.34.0 → 1.35.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +8 -0
- data/README.md +1 -1
- data/lib/context_dev/models/web_screenshot_params.rb +14 -1
- data/lib/context_dev/resources/web.rb +4 -1
- data/lib/context_dev/version.rb +1 -1
- data/rbi/context_dev/models/web_screenshot_params.rbi +21 -0
- data/rbi/context_dev/resources/web.rbi +8 -0
- data/sig/context_dev/models/web_screenshot_params.rbs +7 -0
- data/sig/context_dev/resources/web.rbs +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 12348955c0c5a23df571d7e8ed5ad7ed9ffe1ce398efc745609f1551ea823a2a
|
|
4
|
+
data.tar.gz: 5b310506b1fe3d72bb764c16e5f7e708cc0c5e8b14fa8088ff4faeae0a6ede88
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6e3c90c1ce996d0b6c25da97407393bc4719e56d06cfbadcc10714a66ba4dcc03f9d1f8a82d3cc54557dc4c2c95deae355ec767be4973c7f69f898f74b938ee5
|
|
7
|
+
data.tar.gz: 9ba3951f2458cc8a19653a344bf86b26725798dc8e4d2276a467431267c446012f5b37b832064115c00dfcd23981fd0d837d1b3c6fdd22037944fc15f0800f18
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 1.35.0 (2026-06-25)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v1.34.0...v1.35.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.34.0...v1.35.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([26f4358](https://github.com/context-dot-dev/context-ruby-sdk/commit/26f43582d8d63b9ebd98f0ba04c64e93d61b185f))
|
|
10
|
+
|
|
3
11
|
## 1.34.0 (2026-06-19)
|
|
4
12
|
|
|
5
13
|
Full Changelog: [v1.33.0...v1.34.0](https://github.com/context-dot-dev/context-ruby-sdk/compare/v1.33.0...v1.34.0)
|
data/README.md
CHANGED
|
@@ -57,6 +57,17 @@ module ContextDev
|
|
|
57
57
|
# @return [Symbol, ContextDev::Models::WebScreenshotParams::Page, nil]
|
|
58
58
|
optional :page, enum: -> { ContextDev::WebScreenshotParams::Page }
|
|
59
59
|
|
|
60
|
+
# @!attribute scroll_offset
|
|
61
|
+
# Optional vertical scroll offset in pixels for capturing a long page in
|
|
62
|
+
# viewport-sized chunks. When provided, the full page is captured once and the
|
|
63
|
+
# returned image is the viewport-sized slice that begins at this Y offset (e.g.
|
|
64
|
+
# request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
|
|
65
|
+
# top to bottom). The final slice may be shorter than the viewport height. Takes
|
|
66
|
+
# precedence over fullScreenshot. Max: 100000.
|
|
67
|
+
#
|
|
68
|
+
# @return [Integer, nil]
|
|
69
|
+
optional :scroll_offset, Integer
|
|
70
|
+
|
|
60
71
|
# @!attribute timeout_ms
|
|
61
72
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
62
73
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
@@ -79,7 +90,7 @@ module ContextDev
|
|
|
79
90
|
# @return [Integer, nil]
|
|
80
91
|
optional :wait_for_ms, Integer
|
|
81
92
|
|
|
82
|
-
# @!method initialize(direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, max_age_ms: nil, page: nil, timeout_ms: nil, viewport: nil, wait_for_ms: nil, request_options: {})
|
|
93
|
+
# @!method initialize(direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, max_age_ms: nil, page: nil, scroll_offset: nil, timeout_ms: nil, viewport: nil, wait_for_ms: nil, request_options: {})
|
|
83
94
|
# Some parameter documentations has been truncated, see
|
|
84
95
|
# {ContextDev::Models::WebScreenshotParams} for more details.
|
|
85
96
|
#
|
|
@@ -95,6 +106,8 @@ module ContextDev
|
|
|
95
106
|
#
|
|
96
107
|
# @param page [Symbol, ContextDev::Models::WebScreenshotParams::Page] Optional parameter to specify which page type to screenshot. If provided, the sy
|
|
97
108
|
#
|
|
109
|
+
# @param scroll_offset [Integer] Optional vertical scroll offset in pixels for capturing a long page in viewport-
|
|
110
|
+
#
|
|
98
111
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
99
112
|
#
|
|
100
113
|
# @param viewport [ContextDev::Models::WebScreenshotParams::Viewport] Optional browser viewport dimensions for the screenshot. Defaults to 1920x1080.
|
|
@@ -163,7 +163,7 @@ module ContextDev
|
|
|
163
163
|
#
|
|
164
164
|
# Capture a screenshot of a website.
|
|
165
165
|
#
|
|
166
|
-
# @overload screenshot(direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, max_age_ms: nil, page: nil, timeout_ms: nil, viewport: nil, wait_for_ms: nil, request_options: {})
|
|
166
|
+
# @overload screenshot(direct_url: nil, domain: nil, full_screenshot: nil, handle_cookie_popup: nil, max_age_ms: nil, page: nil, scroll_offset: nil, timeout_ms: nil, viewport: nil, wait_for_ms: nil, request_options: {})
|
|
167
167
|
#
|
|
168
168
|
# @param direct_url [String] A specific URL to screenshot directly, bypassing domain resolution (e.g., 'https
|
|
169
169
|
#
|
|
@@ -177,6 +177,8 @@ module ContextDev
|
|
|
177
177
|
#
|
|
178
178
|
# @param page [Symbol, ContextDev::Models::WebScreenshotParams::Page] Optional parameter to specify which page type to screenshot. If provided, the sy
|
|
179
179
|
#
|
|
180
|
+
# @param scroll_offset [Integer] Optional vertical scroll offset in pixels for capturing a long page in viewport-
|
|
181
|
+
#
|
|
180
182
|
# @param timeout_ms [Integer] Optional timeout in milliseconds for the request. If the request takes longer th
|
|
181
183
|
#
|
|
182
184
|
# @param viewport [ContextDev::Models::WebScreenshotParams::Viewport] Optional browser viewport dimensions for the screenshot. Defaults to 1920x1080.
|
|
@@ -199,6 +201,7 @@ module ContextDev
|
|
|
199
201
|
full_screenshot: "fullScreenshot",
|
|
200
202
|
handle_cookie_popup: "handleCookiePopup",
|
|
201
203
|
max_age_ms: "maxAgeMs",
|
|
204
|
+
scroll_offset: "scrollOffset",
|
|
202
205
|
timeout_ms: "timeoutMS",
|
|
203
206
|
wait_for_ms: "waitForMs"
|
|
204
207
|
),
|
data/lib/context_dev/version.rb
CHANGED
|
@@ -89,6 +89,18 @@ module ContextDev
|
|
|
89
89
|
sig { params(page: ContextDev::WebScreenshotParams::Page::OrSymbol).void }
|
|
90
90
|
attr_writer :page
|
|
91
91
|
|
|
92
|
+
# Optional vertical scroll offset in pixels for capturing a long page in
|
|
93
|
+
# viewport-sized chunks. When provided, the full page is captured once and the
|
|
94
|
+
# returned image is the viewport-sized slice that begins at this Y offset (e.g.
|
|
95
|
+
# request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
|
|
96
|
+
# top to bottom). The final slice may be shorter than the viewport height. Takes
|
|
97
|
+
# precedence over fullScreenshot. Max: 100000.
|
|
98
|
+
sig { returns(T.nilable(Integer)) }
|
|
99
|
+
attr_reader :scroll_offset
|
|
100
|
+
|
|
101
|
+
sig { params(scroll_offset: Integer).void }
|
|
102
|
+
attr_writer :scroll_offset
|
|
103
|
+
|
|
92
104
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
93
105
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
94
106
|
# value is 300000ms (5 minutes).
|
|
@@ -126,6 +138,7 @@ module ContextDev
|
|
|
126
138
|
ContextDev::WebScreenshotParams::HandleCookiePopup::OrSymbol,
|
|
127
139
|
max_age_ms: Integer,
|
|
128
140
|
page: ContextDev::WebScreenshotParams::Page::OrSymbol,
|
|
141
|
+
scroll_offset: Integer,
|
|
129
142
|
timeout_ms: Integer,
|
|
130
143
|
viewport: ContextDev::WebScreenshotParams::Viewport::OrHash,
|
|
131
144
|
wait_for_ms: Integer,
|
|
@@ -159,6 +172,13 @@ module ContextDev
|
|
|
159
172
|
# provided, screenshots the main domain landing page. Only applicable when using
|
|
160
173
|
# 'domain', not 'directUrl'.
|
|
161
174
|
page: nil,
|
|
175
|
+
# Optional vertical scroll offset in pixels for capturing a long page in
|
|
176
|
+
# viewport-sized chunks. When provided, the full page is captured once and the
|
|
177
|
+
# returned image is the viewport-sized slice that begins at this Y offset (e.g.
|
|
178
|
+
# request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
|
|
179
|
+
# top to bottom). The final slice may be shorter than the viewport height. Takes
|
|
180
|
+
# precedence over fullScreenshot. Max: 100000.
|
|
181
|
+
scroll_offset: nil,
|
|
162
182
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
163
183
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
164
184
|
# value is 300000ms (5 minutes).
|
|
@@ -184,6 +204,7 @@ module ContextDev
|
|
|
184
204
|
ContextDev::WebScreenshotParams::HandleCookiePopup::OrSymbol,
|
|
185
205
|
max_age_ms: Integer,
|
|
186
206
|
page: ContextDev::WebScreenshotParams::Page::OrSymbol,
|
|
207
|
+
scroll_offset: Integer,
|
|
187
208
|
timeout_ms: Integer,
|
|
188
209
|
viewport: ContextDev::WebScreenshotParams::Viewport,
|
|
189
210
|
wait_for_ms: Integer,
|
|
@@ -170,6 +170,7 @@ module ContextDev
|
|
|
170
170
|
ContextDev::WebScreenshotParams::HandleCookiePopup::OrSymbol,
|
|
171
171
|
max_age_ms: Integer,
|
|
172
172
|
page: ContextDev::WebScreenshotParams::Page::OrSymbol,
|
|
173
|
+
scroll_offset: Integer,
|
|
173
174
|
timeout_ms: Integer,
|
|
174
175
|
viewport: ContextDev::WebScreenshotParams::Viewport::OrHash,
|
|
175
176
|
wait_for_ms: Integer,
|
|
@@ -203,6 +204,13 @@ module ContextDev
|
|
|
203
204
|
# provided, screenshots the main domain landing page. Only applicable when using
|
|
204
205
|
# 'domain', not 'directUrl'.
|
|
205
206
|
page: nil,
|
|
207
|
+
# Optional vertical scroll offset in pixels for capturing a long page in
|
|
208
|
+
# viewport-sized chunks. When provided, the full page is captured once and the
|
|
209
|
+
# returned image is the viewport-sized slice that begins at this Y offset (e.g.
|
|
210
|
+
# request scrollOffset=0, then 1080, then 2160 to walk a 1920x1080 landing page
|
|
211
|
+
# top to bottom). The final slice may be shorter than the viewport height. Takes
|
|
212
|
+
# precedence over fullScreenshot. Max: 100000.
|
|
213
|
+
scroll_offset: nil,
|
|
206
214
|
# Optional timeout in milliseconds for the request. If the request takes longer
|
|
207
215
|
# than this value, it will be aborted with a 408 status code. Maximum allowed
|
|
208
216
|
# value is 300000ms (5 minutes).
|
|
@@ -8,6 +8,7 @@ module ContextDev
|
|
|
8
8
|
handle_cookie_popup: ContextDev::Models::WebScreenshotParams::handle_cookie_popup,
|
|
9
9
|
max_age_ms: Integer,
|
|
10
10
|
page: ContextDev::Models::WebScreenshotParams::page,
|
|
11
|
+
scroll_offset: Integer,
|
|
11
12
|
timeout_ms: Integer,
|
|
12
13
|
viewport: ContextDev::WebScreenshotParams::Viewport,
|
|
13
14
|
wait_for_ms: Integer
|
|
@@ -48,6 +49,10 @@ module ContextDev
|
|
|
48
49
|
ContextDev::Models::WebScreenshotParams::page
|
|
49
50
|
) -> ContextDev::Models::WebScreenshotParams::page
|
|
50
51
|
|
|
52
|
+
attr_reader scroll_offset: Integer?
|
|
53
|
+
|
|
54
|
+
def scroll_offset=: (Integer) -> Integer
|
|
55
|
+
|
|
51
56
|
attr_reader timeout_ms: Integer?
|
|
52
57
|
|
|
53
58
|
def timeout_ms=: (Integer) -> Integer
|
|
@@ -69,6 +74,7 @@ module ContextDev
|
|
|
69
74
|
?handle_cookie_popup: ContextDev::Models::WebScreenshotParams::handle_cookie_popup,
|
|
70
75
|
?max_age_ms: Integer,
|
|
71
76
|
?page: ContextDev::Models::WebScreenshotParams::page,
|
|
77
|
+
?scroll_offset: Integer,
|
|
72
78
|
?timeout_ms: Integer,
|
|
73
79
|
?viewport: ContextDev::WebScreenshotParams::Viewport,
|
|
74
80
|
?wait_for_ms: Integer,
|
|
@@ -82,6 +88,7 @@ module ContextDev
|
|
|
82
88
|
handle_cookie_popup: ContextDev::Models::WebScreenshotParams::handle_cookie_popup,
|
|
83
89
|
max_age_ms: Integer,
|
|
84
90
|
page: ContextDev::Models::WebScreenshotParams::page,
|
|
91
|
+
scroll_offset: Integer,
|
|
85
92
|
timeout_ms: Integer,
|
|
86
93
|
viewport: ContextDev::WebScreenshotParams::Viewport,
|
|
87
94
|
wait_for_ms: Integer,
|
|
@@ -48,6 +48,7 @@ module ContextDev
|
|
|
48
48
|
?handle_cookie_popup: ContextDev::Models::WebScreenshotParams::handle_cookie_popup,
|
|
49
49
|
?max_age_ms: Integer,
|
|
50
50
|
?page: ContextDev::Models::WebScreenshotParams::page,
|
|
51
|
+
?scroll_offset: Integer,
|
|
51
52
|
?timeout_ms: Integer,
|
|
52
53
|
?viewport: ContextDev::WebScreenshotParams::Viewport,
|
|
53
54
|
?wait_for_ms: Integer,
|
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.
|
|
4
|
+
version: 1.35.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-06-
|
|
11
|
+
date: 2026-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: cgi
|