Skip to content

Commit c520ade

Browse files
authored
Merge pull request #30 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.24.0
2 parents 1b97c47 + 273a4d5 commit c520ade

8 files changed

Lines changed: 48 additions & 8 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-
".": "1.23.0"
2+
".": "1.24.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: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-f69782c2c4296df9db6b41a3a7359a9e4910f59e34901b9f0e8045cec3f9ca69.yml
3-
openapi_spec_hash: f06c3956a6fc7e57614b120910339747
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e685328e362a28f152bcadfd1ca49680a80bfb7a3834fd422f2e459507305405.yml
3+
openapi_spec_hash: 475543f86e39715f76588de6ccf70beb
44
config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4

CHANGELOG.md

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

3+
## 1.24.0 (2025-12-01)
4+
5+
Full Changelog: [v1.23.0...v1.24.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.23.0...v1.24.0)
6+
7+
### Features
8+
9+
* **api:** api update ([6d6658c](https://github.com/brand-dot-dev/python-sdk/commit/6d6658cd07e8ac63eb3e8dabcdcacb9e9b434eac))
10+
311
## 1.23.0 (2025-11-29)
412

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

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

src/brand/dev/types/brand_ai_query_params.py

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
from __future__ import annotations
44

5-
from typing import Iterable
5+
from typing import Dict, Iterable
66
from typing_extensions import Literal, Required, Annotated, TypedDict
77

88
from .._utils import PropertyInfo
@@ -41,6 +41,19 @@ class DataToExtract(TypedDict, total=False):
4141
datapoint_type: Required[Literal["text", "number", "date", "boolean", "list", "url"]]
4242
"""Type of the data point"""
4343

44+
datapoint_list_type: Literal["string", "text", "number", "date", "boolean", "list", "url", "object"]
45+
"""Type of items in the list when datapoint_type is 'list'.
46+
47+
Defaults to 'string'. Use 'object' to extract an array of objects matching a
48+
schema.
49+
"""
50+
51+
datapoint_object_schema: Dict[str, Literal["string", "number", "date", "boolean"]]
52+
"""Schema definition for objects when datapoint_list_type is 'object'.
53+
54+
Provide a map of field names to their scalar types.
55+
"""
56+
4457

4558
class SpecificPages(TypedDict, total=False):
4659
about_us: bool
@@ -61,6 +74,9 @@ class SpecificPages(TypedDict, total=False):
6174
home_page: bool
6275
"""Whether to analyze the home page"""
6376

77+
pricing: bool
78+
"""Whether to analyze the pricing page"""
79+
6480
privacy_policy: bool
6581
"""Whether to analyze the privacy policy page"""
6682

src/brand/dev/types/brand_ai_query_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,12 @@ class DataExtracted(BaseModel):
1111
datapoint_name: Optional[str] = None
1212
"""Name of the extracted data point"""
1313

14-
datapoint_value: Union[str, float, bool, List[str], List[float], None] = None
15-
"""Value of the extracted data point"""
14+
datapoint_value: Union[str, float, bool, List[str], List[float], List[object], None] = None
15+
"""Value of the extracted data point.
16+
17+
Can be a primitive type, an array of primitives, or an array of objects when
18+
datapoint_list_type is 'object'.
19+
"""
1620

1721

1822
class BrandAIQueryResponse(BaseModel):

tests/api_resources/test_brand.py

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,11 @@ def test_method_ai_query_with_all_params(self, client: BrandDev) -> None:
9696
"datapoint_example": "datapoint_example",
9797
"datapoint_name": "datapoint_name",
9898
"datapoint_type": "text",
99+
"datapoint_list_type": "string",
100+
"datapoint_object_schema": {
101+
"testimonial_text": "string",
102+
"testimonial_author": "string",
103+
},
99104
}
100105
],
101106
domain="domain",
@@ -106,6 +111,7 @@ def test_method_ai_query_with_all_params(self, client: BrandDev) -> None:
106111
"contact_us": True,
107112
"faq": True,
108113
"home_page": True,
114+
"pricing": True,
109115
"privacy_policy": True,
110116
"terms_and_conditions": True,
111117
},
@@ -716,6 +722,11 @@ async def test_method_ai_query_with_all_params(self, async_client: AsyncBrandDev
716722
"datapoint_example": "datapoint_example",
717723
"datapoint_name": "datapoint_name",
718724
"datapoint_type": "text",
725+
"datapoint_list_type": "string",
726+
"datapoint_object_schema": {
727+
"testimonial_text": "string",
728+
"testimonial_author": "string",
729+
},
719730
}
720731
],
721732
domain="domain",
@@ -726,6 +737,7 @@ async def test_method_ai_query_with_all_params(self, async_client: AsyncBrandDev
726737
"contact_us": True,
727738
"faq": True,
728739
"home_page": True,
740+
"pricing": True,
729741
"privacy_policy": True,
730742
"terms_and_conditions": True,
731743
},

0 commit comments

Comments
 (0)