Skip to content

Commit b888172

Browse files
authored
Merge pull request #14 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.11.0
2 parents 664c8be + 451723b commit b888172

14 files changed

Lines changed: 122 additions & 37 deletions

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
.prism.log
2-
.vscode
32
_dev
43

54
__pycache__

.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.10.1"
2+
".": "1.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: 9
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-70f44e886c51bd700af031ad9b5c8f0042ef15fde038ba83ed08f61cd9d05266.yml
3-
openapi_spec_hash: 9b834ba9e373689a8e2fbd8312b1f2de
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-a41dc66f0aa3dbc9e8fe1da75f1101cbcb2fac79f728de42e4877cfe1bde3b6e.yml
3+
openapi_spec_hash: 63c1a53e0899fb63a514dad395fd48f9
44
config_hash: 4b10254ea5b8e26ce632222b94a918aa

.vscode/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"python.analysis.importFormat": "relative",
3+
}

CHANGELOG.md

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

3+
## 1.11.0 (2025-07-31)
4+
5+
Full Changelog: [v1.10.1...v1.11.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.10.1...v1.11.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([59f9ac6](https://github.com/brand-dot-dev/python-sdk/commit/59f9ac61748a337bcbec52a0034f06cac9e1b3d9))
10+
* **api:** manual updates ([59002c5](https://github.com/brand-dot-dev/python-sdk/commit/59002c5632848838141179929202e55c3c53d6a9))
11+
* **client:** support file upload requests ([5a700a4](https://github.com/brand-dot-dev/python-sdk/commit/5a700a45169a4bf3e13f7d27fd1eb0698db48b53))
12+
13+
14+
### Chores
15+
16+
* **project:** add settings file for vscode ([5218747](https://github.com/brand-dot-dev/python-sdk/commit/5218747ee50439e600cfb756f14364d9a7e7aef3))
17+
318
## 1.10.1 (2025-07-23)
419

520
Full Changelog: [v1.10.0...v1.10.1](https://github.com/brand-dot-dev/python-sdk/compare/v1.10.0...v1.10.1)

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.10.1"
3+
version = "1.11.0"
44
description = "The official Python library for the brand.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/brand/dev/_base_client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -532,7 +532,10 @@ def _build_request(
532532
is_body_allowed = options.method.lower() != "get"
533533

534534
if is_body_allowed:
535-
kwargs["json"] = json_data if is_given(json_data) else None
535+
if isinstance(json_data, bytes):
536+
kwargs["content"] = json_data
537+
else:
538+
kwargs["json"] = json_data if is_given(json_data) else None
536539
kwargs["files"] = files
537540
else:
538541
headers.pop("Content-Type", None)

src/brand/dev/_files.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -69,12 +69,12 @@ def _transform_file(file: FileTypes) -> HttpxFileTypes:
6969
return file
7070

7171
if is_tuple_t(file):
72-
return (file[0], _read_file_content(file[1]), *file[2:])
72+
return (file[0], read_file_content(file[1]), *file[2:])
7373

7474
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
7575

7676

77-
def _read_file_content(file: FileContent) -> HttpxFileContent:
77+
def read_file_content(file: FileContent) -> HttpxFileContent:
7878
if isinstance(file, os.PathLike):
7979
return pathlib.Path(file).read_bytes()
8080
return file
@@ -111,12 +111,12 @@ async def _async_transform_file(file: FileTypes) -> HttpxFileTypes:
111111
return file
112112

113113
if is_tuple_t(file):
114-
return (file[0], await _async_read_file_content(file[1]), *file[2:])
114+
return (file[0], await async_read_file_content(file[1]), *file[2:])
115115

116116
raise TypeError(f"Expected file types input to be a FileContent type or to be a tuple")
117117

118118

119-
async def _async_read_file_content(file: FileContent) -> HttpxFileContent:
119+
async def async_read_file_content(file: FileContent) -> HttpxFileContent:
120120
if isinstance(file, os.PathLike):
121121
return await anyio.Path(file).read_bytes()
122122

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

src/brand/dev/types/brand_ai_query_response.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,5 +22,8 @@ class BrandAIQueryResponse(BaseModel):
2222
domain: Optional[str] = None
2323
"""The domain that was analyzed"""
2424

25+
status: Optional[str] = None
26+
"""Status of the response, e.g., 'ok'"""
27+
2528
urls_analyzed: Optional[List[str]] = None
2629
"""List of URLs that were analyzed"""

0 commit comments

Comments
 (0)