Skip to content

Commit e83609d

Browse files
authored
Merge pull request #42 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.36.0
2 parents 7c62b70 + 26b9d3d commit e83609d

File tree

12 files changed

+82
-8
lines changed

12 files changed

+82
-8
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.35.0"
2+
".": "1.36.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-3614380ba4315687bbaf6561e9872fd72dd876f9230ce690c35d7efc1250e808.yml
3-
openapi_spec_hash: f1aa17e08d0379766a61de68714c7c21
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-584d3486a6c5bf7b68dcaacb0bde2ef5f648c158e5c5ebccc7a7684d95abc832.yml
3+
openapi_spec_hash: 29a53e1f96a2c5d9407f1a0938e301bf
44
config_hash: 4cd3173ea1cce7183640aae49cfbb374

CHANGELOG.md

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

3+
## 1.36.0 (2026-03-01)
4+
5+
Full Changelog: [v1.35.0...v1.36.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.35.0...v1.36.0)
6+
7+
### Features
8+
9+
* **api:** api update ([06eeb90](https://github.com/brand-dot-dev/python-sdk/commit/06eeb901097ef65fc3bd748262ee0535fedbd41f))
10+
* **api:** api update ([99080ad](https://github.com/brand-dot-dev/python-sdk/commit/99080ade4047eba1c61b35aa5244ca139d259b2b))
11+
12+
13+
### Chores
14+
15+
* **internal:** add request options to SSE classes ([2c7a465](https://github.com/brand-dot-dev/python-sdk/commit/2c7a465cd6c6af51ee31c51e654197c5b2f2141c))
16+
* **internal:** make `test_proxy_environment_variables` more resilient ([481029b](https://github.com/brand-dot-dev/python-sdk/commit/481029be8d533936b4078d6eeecf135b102463c3))
17+
* **internal:** make `test_proxy_environment_variables` more resilient to env ([b7ecf85](https://github.com/brand-dot-dev/python-sdk/commit/b7ecf85a40b0f93e742349f13b986f1263a2cc73))
18+
319
## 1.35.0 (2026-02-24)
420

521
Full Changelog: [v1.34.0...v1.35.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.34.0...v1.35.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.35.0"
3+
version = "1.36.0"
44
description = "The official Python library for the brand.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/brand/dev/_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -152,6 +152,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
152152
),
153153
response=self.http_response,
154154
client=cast(Any, self._client),
155+
options=self._options,
155156
),
156157
)
157158

@@ -162,6 +163,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
162163
cast_to=extract_stream_chunk_type(self._stream_cls),
163164
response=self.http_response,
164165
client=cast(Any, self._client),
166+
options=self._options,
165167
),
166168
)
167169

@@ -175,6 +177,7 @@ def _parse(self, *, to: type[_T] | None = None) -> R | _T:
175177
cast_to=cast_to,
176178
response=self.http_response,
177179
client=cast(Any, self._client),
180+
options=self._options,
178181
),
179182
)
180183

src/brand/dev/_streaming.py

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import json
55
import inspect
66
from types import TracebackType
7-
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, AsyncIterator, cast
7+
from typing import TYPE_CHECKING, Any, Generic, TypeVar, Iterator, Optional, AsyncIterator, cast
88
from typing_extensions import Self, Protocol, TypeGuard, override, get_origin, runtime_checkable
99

1010
import httpx
@@ -13,6 +13,7 @@
1313

1414
if TYPE_CHECKING:
1515
from ._client import BrandDev, AsyncBrandDev
16+
from ._models import FinalRequestOptions
1617

1718

1819
_T = TypeVar("_T")
@@ -22,7 +23,7 @@ class Stream(Generic[_T]):
2223
"""Provides the core interface to iterate over a synchronous stream response."""
2324

2425
response: httpx.Response
25-
26+
_options: Optional[FinalRequestOptions] = None
2627
_decoder: SSEBytesDecoder
2728

2829
def __init__(
@@ -31,10 +32,12 @@ def __init__(
3132
cast_to: type[_T],
3233
response: httpx.Response,
3334
client: BrandDev,
35+
options: Optional[FinalRequestOptions] = None,
3436
) -> None:
3537
self.response = response
3638
self._cast_to = cast_to
3739
self._client = client
40+
self._options = options
3841
self._decoder = client._make_sse_decoder()
3942
self._iterator = self.__stream__()
4043

@@ -85,7 +88,7 @@ class AsyncStream(Generic[_T]):
8588
"""Provides the core interface to iterate over an asynchronous stream response."""
8689

8790
response: httpx.Response
88-
91+
_options: Optional[FinalRequestOptions] = None
8992
_decoder: SSEDecoder | SSEBytesDecoder
9093

9194
def __init__(
@@ -94,10 +97,12 @@ def __init__(
9497
cast_to: type[_T],
9598
response: httpx.Response,
9699
client: AsyncBrandDev,
100+
options: Optional[FinalRequestOptions] = None,
97101
) -> None:
98102
self.response = response
99103
self._cast_to = cast_to
100104
self._client = client
105+
self._options = options
101106
self._decoder = client._make_sse_decoder()
102107
self._iterator = self.__stream__()
103108

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.35.0" # x-release-please-version
4+
__version__ = "1.36.0" # x-release-please-version

src/brand/dev/resources/brand.py

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -762,6 +762,7 @@ def identify_from_transaction(
762762
"welsh",
763763
]
764764
| Omit = omit,
765+
high_confidence_only: bool | Omit = omit,
765766
max_speed: bool | Omit = omit,
766767
mcc: str | Omit = omit,
767768
phone: float | Omit = omit,
@@ -787,6 +788,10 @@ def identify_from_transaction(
787788
788789
force_language: Optional parameter to force the language of the retrieved brand data.
789790
791+
high_confidence_only: When set to true, the API will perform an additional verification steps to
792+
ensure the identified brand matches the transaction with high confidence.
793+
Defaults to false.
794+
790795
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
791796
the API will skip time-consuming operations for faster response at the cost of
792797
less comprehensive data.
@@ -821,6 +826,7 @@ def identify_from_transaction(
821826
"city": city,
822827
"country_gl": country_gl,
823828
"force_language": force_language,
829+
"high_confidence_only": high_confidence_only,
824830
"max_speed": max_speed,
825831
"mcc": mcc,
826832
"phone": phone,
@@ -1797,6 +1803,7 @@ def web_scrape_md(
17971803
url: str,
17981804
include_images: bool | Omit = omit,
17991805
include_links: bool | Omit = omit,
1806+
shorten_base64_images: bool | Omit = omit,
18001807
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
18011808
# The extra values given here take precedence over values defined on the client or passed to this method.
18021809
extra_headers: Headers | None = None,
@@ -1817,6 +1824,8 @@ def web_scrape_md(
18171824
18181825
include_links: Preserve hyperlinks in Markdown output
18191826
1827+
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
1828+
18201829
extra_headers: Send extra headers
18211830
18221831
extra_query: Add additional query parameters to the request
@@ -1837,6 +1846,7 @@ def web_scrape_md(
18371846
"url": url,
18381847
"include_images": include_images,
18391848
"include_links": include_links,
1849+
"shorten_base64_images": shorten_base64_images,
18401850
},
18411851
brand_web_scrape_md_params.BrandWebScrapeMdParams,
18421852
),
@@ -2583,6 +2593,7 @@ async def identify_from_transaction(
25832593
"welsh",
25842594
]
25852595
| Omit = omit,
2596+
high_confidence_only: bool | Omit = omit,
25862597
max_speed: bool | Omit = omit,
25872598
mcc: str | Omit = omit,
25882599
phone: float | Omit = omit,
@@ -2608,6 +2619,10 @@ async def identify_from_transaction(
26082619
26092620
force_language: Optional parameter to force the language of the retrieved brand data.
26102621
2622+
high_confidence_only: When set to true, the API will perform an additional verification steps to
2623+
ensure the identified brand matches the transaction with high confidence.
2624+
Defaults to false.
2625+
26112626
max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
26122627
the API will skip time-consuming operations for faster response at the cost of
26132628
less comprehensive data.
@@ -2642,6 +2657,7 @@ async def identify_from_transaction(
26422657
"city": city,
26432658
"country_gl": country_gl,
26442659
"force_language": force_language,
2660+
"high_confidence_only": high_confidence_only,
26452661
"max_speed": max_speed,
26462662
"mcc": mcc,
26472663
"phone": phone,
@@ -3620,6 +3636,7 @@ async def web_scrape_md(
36203636
url: str,
36213637
include_images: bool | Omit = omit,
36223638
include_links: bool | Omit = omit,
3639+
shorten_base64_images: bool | Omit = omit,
36233640
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
36243641
# The extra values given here take precedence over values defined on the client or passed to this method.
36253642
extra_headers: Headers | None = None,
@@ -3640,6 +3657,8 @@ async def web_scrape_md(
36403657
36413658
include_links: Preserve hyperlinks in Markdown output
36423659
3660+
shorten_base64_images: Shorten base64-encoded image data in the Markdown output
3661+
36433662
extra_headers: Send extra headers
36443663
36453664
extra_query: Add additional query parameters to the request
@@ -3660,6 +3679,7 @@ async def web_scrape_md(
36603679
"url": url,
36613680
"include_images": include_images,
36623681
"include_links": include_links,
3682+
"shorten_base64_images": shorten_base64_images,
36633683
},
36643684
brand_web_scrape_md_params.BrandWebScrapeMdParams,
36653685
),

src/brand/dev/types/brand_identify_from_transaction_params.py

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -318,6 +318,13 @@ class BrandIdentifyFromTransactionParams(TypedDict, total=False):
318318
]
319319
"""Optional parameter to force the language of the retrieved brand data."""
320320

321+
high_confidence_only: bool
322+
"""
323+
When set to true, the API will perform an additional verification steps to
324+
ensure the identified brand matches the transaction with high confidence.
325+
Defaults to false.
326+
"""
327+
321328
max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")]
322329
"""Optional parameter to optimize the API call for maximum speed.
323330

src/brand/dev/types/brand_web_scrape_md_params.py

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

2222
include_links: Annotated[bool, PropertyInfo(alias="includeLinks")]
2323
"""Preserve hyperlinks in Markdown output"""
24+
25+
shorten_base64_images: Annotated[bool, PropertyInfo(alias="shortenBase64Images")]
26+
"""Shorten base64-encoded image data in the Markdown output"""

0 commit comments

Comments
 (0)