Skip to content

Commit 583d5a8

Browse files
authored
Merge pull request #24 from context-dot-dev/release-please--branches--main--changes--next
release: 0.21.0
2 parents c931375 + d59a8fc commit 583d5a8

8 files changed

Lines changed: 35 additions & 5 deletions

File tree

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.20.0"
2+
".": "0.21.0"
33
}

‎.stats.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 22
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-f27c9584f74632a8c9603fce7190e3f63275a4ec4030da2a9475efb619618b3f.yml
3-
openapi_spec_hash: 224cb935536a4d999d9683f8c03ea32f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-e8d4199dcf2a97bcd0858e18db7feb3bb4f5a64c9c2d0ee0105636d28c35227d.yml
3+
openapi_spec_hash: 8e825842065c24f11fd3f51fdd705337
44
config_hash: ff13935d1231ad44cd3822ffe39904b4

‎CHANGELOG.md‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.21.0 (2026-05-11)
4+
5+
Full Changelog: [v0.20.0...v0.21.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.20.0...v0.21.0)
6+
7+
### Features
8+
9+
* **api:** api update ([3758473](https://github.com/context-dot-dev/context-python-sdk/commit/3758473b755cd5624e8cdcdc63e30075f3b3860c))
10+
* **api:** api update ([d41b2b0](https://github.com/context-dot-dev/context-python-sdk/commit/d41b2b0e278d2c2b6a0d04e4890c2b5f0f518560))
11+
312
## 0.20.0 (2026-05-10)
413

514
Full Changelog: [v0.19.0...v0.20.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.19.0...v0.20.0)

‎pyproject.toml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "context.dev"
3-
version = "0.20.0"
3+
version = "0.21.0"
44
description = "The official Python library for the context.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

‎src/context/dev/_version.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "context.dev"
4-
__version__ = "0.20.0" # x-release-please-version
4+
__version__ = "0.21.0" # x-release-please-version

‎src/context/dev/resources/web.py‎

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -180,6 +180,7 @@ def screenshot(
180180
direct_url: str | Omit = omit,
181181
domain: str | Omit = omit,
182182
full_screenshot: Literal["true", "false"] | Omit = omit,
183+
handle_cookie_popup: Literal["true", "false"] | Omit = omit,
183184
max_age_ms: int | Omit = omit,
184185
page: Literal["login", "signup", "blog", "careers", "pricing", "terms", "privacy", "contact"] | Omit = omit,
185186
timeout_ms: int | Omit = omit,
@@ -208,6 +209,10 @@ def screenshot(
208209
screenshot capturing all content. If 'false' or not provided, takes a viewport
209210
screenshot (standard browser view).
210211
212+
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', we
213+
dismiss cookie banner before capture. If 'false' or not provided, captures the
214+
page without that step.
215+
211216
max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
212217
and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
213218
omitted. Max is 30 days (2592000000 ms). Set to 0 to always capture fresh.
@@ -248,6 +253,7 @@ def screenshot(
248253
"direct_url": direct_url,
249254
"domain": domain,
250255
"full_screenshot": full_screenshot,
256+
"handle_cookie_popup": handle_cookie_popup,
251257
"max_age_ms": max_age_ms,
252258
"page": page,
253259
"timeout_ms": timeout_ms,
@@ -790,6 +796,7 @@ async def screenshot(
790796
direct_url: str | Omit = omit,
791797
domain: str | Omit = omit,
792798
full_screenshot: Literal["true", "false"] | Omit = omit,
799+
handle_cookie_popup: Literal["true", "false"] | Omit = omit,
793800
max_age_ms: int | Omit = omit,
794801
page: Literal["login", "signup", "blog", "careers", "pricing", "terms", "privacy", "contact"] | Omit = omit,
795802
timeout_ms: int | Omit = omit,
@@ -818,6 +825,10 @@ async def screenshot(
818825
screenshot capturing all content. If 'false' or not provided, takes a viewport
819826
screenshot (standard browser view).
820827
828+
handle_cookie_popup: Optional parameter to control cookie/consent popup handling. If 'true', we
829+
dismiss cookie banner before capture. If 'false' or not provided, captures the
830+
page without that step.
831+
821832
max_age_ms: Return a cached screenshot if a prior screenshot for the same parameters exists
822833
and is younger than this many milliseconds. Defaults to 1 day (86400000 ms) when
823834
omitted. Max is 30 days (2592000000 ms). Set to 0 to always capture fresh.
@@ -858,6 +869,7 @@ async def screenshot(
858869
"direct_url": direct_url,
859870
"domain": domain,
860871
"full_screenshot": full_screenshot,
872+
"handle_cookie_popup": handle_cookie_popup,
861873
"max_age_ms": max_age_ms,
862874
"page": page,
863875
"timeout_ms": timeout_ms,

‎src/context/dev/types/web_screenshot_params.py‎

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,13 @@ class WebScreenshotParams(TypedDict, total=False):
3131
provided, takes a viewport screenshot (standard browser view).
3232
"""
3333

34+
handle_cookie_popup: Annotated[Literal["true", "false"], PropertyInfo(alias="handleCookiePopup")]
35+
"""Optional parameter to control cookie/consent popup handling.
36+
37+
If 'true', we dismiss cookie banner before capture. If 'false' or not provided,
38+
captures the page without that step.
39+
"""
40+
3441
max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")]
3542
"""
3643
Return a cached screenshot if a prior screenshot for the same parameters exists

‎tests/api_resources/test_web.py‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,7 @@ def test_method_screenshot_with_all_params(self, client: ContextDev) -> None:
115115
direct_url="https://example.com",
116116
domain="domain",
117117
full_screenshot="true",
118+
handle_cookie_popup="true",
118119
max_age_ms=0,
119120
page="login",
120121
timeout_ms=1000,
@@ -505,6 +506,7 @@ async def test_method_screenshot_with_all_params(self, async_client: AsyncContex
505506
direct_url="https://example.com",
506507
domain="domain",
507508
full_screenshot="true",
509+
handle_cookie_popup="true",
508510
max_age_ms=0,
509511
page="login",
510512
timeout_ms=1000,

0 commit comments

Comments
 (0)