Skip to content

Commit 1f84096

Browse files
authored
Merge pull request #51 from context-dot-dev/release-please--branches--main--changes--next
release: 1.42.0
2 parents 30efe37 + d88b352 commit 1f84096

File tree

10 files changed

+38
-7
lines changed

10 files changed

+38
-7
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.41.0"
2+
".": "1.42.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: 20
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-fb4ca438793aa469ccc6d74266351ce4ad23b90521c62690755940dc7758225b.yml
3-
openapi_spec_hash: caaf8fcba98e886cef121c2845ecbc57
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-c91b0567307b069c250d073074b7c861b64e632a8380b24925e15d981846bb43.yml
3+
openapi_spec_hash: e479aa097b1283c2acf19d6360787449
44
config_hash: 91cf2dcefb99c39eb9cd3e98e15d6011

CHANGELOG.md

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

3+
## 1.42.0 (2026-03-28)
4+
5+
Full Changelog: [v1.41.0...v1.42.0](https://github.com/context-dot-dev/deprecated-brand-python-sdk/compare/v1.41.0...v1.42.0)
6+
7+
### Features
8+
9+
* **api:** api update ([390760b](https://github.com/context-dot-dev/deprecated-brand-python-sdk/commit/390760b95536c4c33df15159da8d5376971461c1))
10+
* **api:** api update ([6e85f32](https://github.com/context-dot-dev/deprecated-brand-python-sdk/commit/6e85f322b7317b82f7d400263f8980434351a8cd))
11+
* **internal:** implement indices array format for query and form serialization ([6e12fab](https://github.com/context-dot-dev/deprecated-brand-python-sdk/commit/6e12fab6f4d3a77719729ad86207903e600adcef))
12+
313
## 1.41.0 (2026-03-25)
414

515
Full Changelog: [v1.40.0...v1.41.0](https://github.com/context-dot-dev/deprecated-brand-python-sdk/compare/v1.40.0...v1.41.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 = "brand.dev"
3-
version = "1.41.0"
3+
version = "1.42.0"
44
description = "The official Python library for the brand.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/brand/dev/_qs.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,10 @@ def _stringify_item(
101101
items.extend(self._stringify_item(key, item, opts))
102102
return items
103103
elif array_format == "indices":
104-
raise NotImplementedError("The array indices format is not supported yet")
104+
items = []
105+
for i, item in enumerate(value):
106+
items.extend(self._stringify_item(f"{key}[{i}]", item, opts))
107+
return items
105108
elif array_format == "brackets":
106109
items = []
107110
key = key + "[]"

src/brand/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__ = "brand.dev"
4-
__version__ = "1.41.0" # x-release-please-version
4+
__version__ = "1.42.0" # x-release-please-version

src/brand/dev/resources/brand.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2066,6 +2066,7 @@ def web_scrape_md(
20662066
include_images: bool | Omit = omit,
20672067
include_links: bool | Omit = omit,
20682068
shorten_base64_images: bool | Omit = omit,
2069+
use_main_content_only: bool | Omit = omit,
20692070
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
20702071
# The extra values given here take precedence over values defined on the client or passed to this method.
20712072
extra_headers: Headers | None = None,
@@ -2087,6 +2088,9 @@ def web_scrape_md(
20872088
20882089
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
20892090
2091+
use_main_content_only: Extract only the main content of the page, excluding headers, footers, sidebars,
2092+
and navigation
2093+
20902094
extra_headers: Send extra headers
20912095
20922096
extra_query: Add additional query parameters to the request
@@ -2108,6 +2112,7 @@ def web_scrape_md(
21082112
"include_images": include_images,
21092113
"include_links": include_links,
21102114
"shorten_base64_images": shorten_base64_images,
2115+
"use_main_content_only": use_main_content_only,
21112116
},
21122117
brand_web_scrape_md_params.BrandWebScrapeMdParams,
21132118
),
@@ -4170,6 +4175,7 @@ async def web_scrape_md(
41704175
include_images: bool | Omit = omit,
41714176
include_links: bool | Omit = omit,
41724177
shorten_base64_images: bool | Omit = omit,
4178+
use_main_content_only: bool | Omit = omit,
41734179
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
41744180
# The extra values given here take precedence over values defined on the client or passed to this method.
41754181
extra_headers: Headers | None = None,
@@ -4191,6 +4197,9 @@ async def web_scrape_md(
41914197
41924198
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
41934199
4200+
use_main_content_only: Extract only the main content of the page, excluding headers, footers, sidebars,
4201+
and navigation
4202+
41944203
extra_headers: Send extra headers
41954204
41964205
extra_query: Add additional query parameters to the request
@@ -4212,6 +4221,7 @@ async def web_scrape_md(
42124221
"include_images": include_images,
42134222
"include_links": include_links,
42144223
"shorten_base64_images": shorten_base64_images,
4224+
"use_main_content_only": use_main_content_only,
42154225
},
42164226
brand_web_scrape_md_params.BrandWebScrapeMdParams,
42174227
),

src/brand/dev/types/brand_web_scrape_images_response.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ class Image(BaseModel):
1212
alt: Optional[str] = None
1313
"""Alt text of the image, or null if not present"""
1414

15-
element: Literal["img", "svg", "link", "source", "video"]
15+
element: Literal["img", "svg", "link", "source", "video", "css", "object", "meta", "background"]
1616
"""The HTML element the image was found in"""
1717

1818
src: str

src/brand/dev/types/brand_web_scrape_md_params.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,3 +24,9 @@ class BrandWebScrapeMdParams(TypedDict, total=False):
2424

2525
shorten_base64_images: Annotated[bool, PropertyInfo(alias="shortenBase64Images")]
2626
"""Shorten base64-encoded image data in the Markdown output"""
27+
28+
use_main_content_only: Annotated[bool, PropertyInfo(alias="useMainContentOnly")]
29+
"""
30+
Extract only the main content of the page, excluding headers, footers, sidebars,
31+
and navigation
32+
"""

tests/api_resources/test_brand.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -922,6 +922,7 @@ def test_method_web_scrape_md_with_all_params(self, client: BrandDev) -> None:
922922
include_images=True,
923923
include_links=True,
924924
shorten_base64_images=True,
925+
use_main_content_only=True,
925926
)
926927
assert_matches_type(BrandWebScrapeMdResponse, brand, path=["response"])
927928

@@ -1884,6 +1885,7 @@ async def test_method_web_scrape_md_with_all_params(self, async_client: AsyncBra
18841885
include_images=True,
18851886
include_links=True,
18861887
shorten_base64_images=True,
1888+
use_main_content_only=True,
18871889
)
18881890
assert_matches_type(BrandWebScrapeMdResponse, brand, path=["response"])
18891891

0 commit comments

Comments
 (0)