Skip to content

Commit bcf3ab6

Browse files
authored
Merge pull request #57 from context-dot-dev/release-please--branches--main--changes--next
release: 2.11.0
2 parents 3b02200 + 0116872 commit bcf3ab6

11 files changed

Lines changed: 106 additions & 6 deletions

‎.release-please-manifest.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "2.10.0"
2+
".": "2.11.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: 41
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-5dbe631ce516ca688273053ddcb58870561bd6dc76fa75df354c954d7af65a3c.yml
3-
openapi_spec_hash: 53a74c4cccbdec8590db38183840a446
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-b0c72d2fe5911c9ce155275b954198bf2152e915a7e5b9f719aad50e222b9ef8.yml
3+
openapi_spec_hash: 5cf943ea5718059b7975417b012cee28
44
config_hash: 0fb0ceca5946298c416cec0cca5260c7

‎CHANGELOG.md‎

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

3+
## 2.11.0 (2026-08-18)
4+
5+
Full Changelog: [v2.10.0...v2.11.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.10.0...v2.11.0)
6+
7+
### Features
8+
9+
* **api:** api update ([2bdb356](https://github.com/context-dot-dev/context-python-sdk/commit/2bdb356049b2611469b28d34c9ddcc990a629525))
10+
* **api:** api update ([2ac4e0c](https://github.com/context-dot-dev/context-python-sdk/commit/2ac4e0c1b06711b284477705f83d20e0c1dd83f5))
11+
* **api:** api update ([68cb98c](https://github.com/context-dot-dev/context-python-sdk/commit/68cb98ca3b510157f56d34ed0cf598d7cae3b988))
12+
313
## 2.10.0 (2026-08-17)
414

515
Full Changelog: [v2.9.0...v2.10.0](https://github.com/context-dot-dev/context-python-sdk/compare/v2.9.0...v2.10.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 = "2.10.0"
3+
version = "2.11.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__ = "2.10.0" # x-release-please-version
4+
__version__ = "2.11.0" # x-release-please-version

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

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -386,6 +386,7 @@ def extract_styleguide(
386386
def screenshot(
387387
self,
388388
*,
389+
clear_popups: bool | Omit = omit,
389390
color_scheme: Literal["light", "dark"] | Omit = omit,
390391
country: Literal[
391392
"ad",
@@ -617,6 +618,12 @@ def screenshot(
617618
Capture a screenshot of a website.
618619
619620
Args:
621+
clear_popups: Optional parameter for comprehensive popup cleanup. If 'true', the browser
622+
dismisses detected cookie/consent UI and clears other detected obstructive
623+
popups and overlays before capture. If 'false' or not provided, this parameter
624+
requests no cleanup; handleCookiePopup can still request cookie/consent handling
625+
independently.
626+
620627
color_scheme: Optional parameter to choose the site's visual theme in the screenshot. Use
621628
'light' or 'dark' when the site offers both appearances.
622629
@@ -692,6 +699,7 @@ def screenshot(
692699
timeout=timeout,
693700
query=maybe_transform(
694701
{
702+
"clear_popups": clear_popups,
695703
"color_scheme": color_scheme,
696704
"country": country,
697705
"direct_url": direct_url,
@@ -2616,6 +2624,7 @@ async def extract_styleguide(
26162624
async def screenshot(
26172625
self,
26182626
*,
2627+
clear_popups: bool | Omit = omit,
26192628
color_scheme: Literal["light", "dark"] | Omit = omit,
26202629
country: Literal[
26212630
"ad",
@@ -2847,6 +2856,12 @@ async def screenshot(
28472856
Capture a screenshot of a website.
28482857
28492858
Args:
2859+
clear_popups: Optional parameter for comprehensive popup cleanup. If 'true', the browser
2860+
dismisses detected cookie/consent UI and clears other detected obstructive
2861+
popups and overlays before capture. If 'false' or not provided, this parameter
2862+
requests no cleanup; handleCookiePopup can still request cookie/consent handling
2863+
independently.
2864+
28502865
color_scheme: Optional parameter to choose the site's visual theme in the screenshot. Use
28512866
'light' or 'dark' when the site offers both appearances.
28522867
@@ -2922,6 +2937,7 @@ async def screenshot(
29222937
timeout=timeout,
29232938
query=await async_maybe_transform(
29242939
{
2940+
"clear_popups": clear_popups,
29252941
"color_scheme": color_scheme,
29262942
"country": country,
29272943
"direct_url": direct_url,

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,13 @@ class BrandColor(BaseModel):
9090
name: Optional[str] = None
9191
"""Name of the color"""
9292

93+
source: Optional[Literal["site", "logo"]] = None
94+
"""
95+
Where the color was observed: 'site' colors come from the website's own theme
96+
signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
97+
logo image pixels.
98+
"""
99+
93100

94101
class BrandEmployees(BaseModel):
95102
"""Employee headcount information for the brand (will be null if unknown)"""

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,13 @@ class BrandColor(BaseModel):
5858
name: Optional[str] = None
5959
"""Name of the color"""
6060

61+
source: Optional[Literal["site", "logo"]] = None
62+
"""
63+
Where the color was observed: 'site' colors come from the website's own theme
64+
signals (rendered page colors, manifest, theme-color meta), 'logo' colors from
65+
logo image pixels.
66+
"""
67+
6168

6269
class BrandLogoColor(BaseModel):
6370
hex: Optional[str] = None

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

Lines changed: 50 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,49 +10,91 @@
1010

1111

1212
class DataMatch(BaseModel):
13+
"""How the article relates to the company you searched for."""
14+
1315
confidence: Optional[float] = None
16+
"""How confident the match is, from 0 to 1. Null when a score is unavailable."""
1417

1518
level: Literal["primary", "secondary"]
19+
"""
20+
primary when the article is mainly about the company, secondary when the company
21+
is mentioned but is not the main subject.
22+
"""
1623

1724

1825
class DataSource(BaseModel):
26+
"""The publication that published the article."""
27+
1928
direct: bool
2029
"""True when Context observed this article in the publisher-owned feed."""
2130

2231
domain: str
32+
"""Website domain of the publication."""
2333

2434
name: str
35+
"""Name of the publication, such as Reuters."""
2536

2637

2738
class Data(BaseModel):
2839
id: str
40+
"""Stable unique identifier for this article.
41+
42+
Use it to deduplicate or reference an article across requests.
43+
"""
2944

3045
authors: List[str]
46+
"""Bylined authors. Empty when no byline is available."""
3147

3248
description: Optional[str] = None
49+
"""Short summary or excerpt of the article, when the publisher provides one."""
3350

3451
image_url: Optional[str] = None
52+
"""Lead image for the article, when one is available."""
3553

3654
language: Optional[str] = None
55+
"""Language the article is written in, as a lowercase ISO 639-1 code such as en.
56+
57+
Null when unknown.
58+
"""
3759

3860
match: DataMatch
61+
"""How the article relates to the company you searched for."""
3962

4063
published_at: Optional[datetime] = None
64+
"""When the article was published, as an ISO 8601 timestamp.
65+
66+
Null when the publisher does not state a reliable date.
67+
"""
4168

4269
source: DataSource
70+
"""The publication that published the article."""
4371

4472
story_id: str
45-
"""Groups matching normalized headlines published on the same UTC day."""
73+
"""Shared by articles covering the same story on the same day.
74+
75+
Use it to group or collapse syndicated copies of one announcement across
76+
outlets.
77+
"""
4678

4779
title: str
80+
"""Article headline."""
4881

4982
type: Literal["editorial", "press_release", "regulatory_filing", "advisory"]
83+
"""Kind of coverage.
84+
85+
Use it to separate independent reporting (editorial) from company-issued content
86+
(press_release, regulatory_filing, advisory).
87+
"""
5088

5189
url: str
90+
"""Link to the article on the publisher site."""
5291

5392

5493
class Meta(BaseModel):
94+
"""Summary information about this response."""
95+
5596
count: int
97+
"""Number of articles in this page."""
5698

5799

58100
class KeyMetadata(BaseModel):
@@ -70,12 +112,19 @@ class KeyMetadata(BaseModel):
70112

71113
class NewsSearchResponse(BaseModel):
72114
data: List[Data]
115+
"""Articles matching the search, in the requested order."""
73116

74117
has_more: bool
118+
"""True when more results are available beyond this page."""
75119

76120
meta: Meta
121+
"""Summary information about this response."""
77122

78123
next_cursor: Optional[str] = None
124+
"""Pass as cursor in the next request to fetch the following page.
125+
126+
Null when there are no more results.
127+
"""
79128

80129
key_metadata: Optional[KeyMetadata] = None
81130
"""Metadata about the API key used for the request.

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

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,15 @@
1212

1313

1414
class WebScreenshotParams(TypedDict, total=False):
15+
clear_popups: Annotated[bool, PropertyInfo(alias="clearPopups")]
16+
"""Optional parameter for comprehensive popup cleanup.
17+
18+
If 'true', the browser dismisses detected cookie/consent UI and clears other
19+
detected obstructive popups and overlays before capture. If 'false' or not
20+
provided, this parameter requests no cleanup; handleCookiePopup can still
21+
request cookie/consent handling independently.
22+
"""
23+
1524
color_scheme: Annotated[Literal["light", "dark"], PropertyInfo(alias="colorScheme")]
1625
"""Optional parameter to choose the site's visual theme in the screenshot.
1726

0 commit comments

Comments
 (0)