Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.23.0"
".": "1.24.0"
}
4 changes: 2 additions & 2 deletions .stats.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
configured_endpoints: 13
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-f69782c2c4296df9db6b41a3a7359a9e4910f59e34901b9f0e8045cec3f9ca69.yml
openapi_spec_hash: f06c3956a6fc7e57614b120910339747
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-e685328e362a28f152bcadfd1ca49680a80bfb7a3834fd422f2e459507305405.yml
openapi_spec_hash: 475543f86e39715f76588de6ccf70beb
config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.24.0 (2025-12-01)

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

### Features

* **api:** api update ([6d6658c](https://github.com/brand-dot-dev/python-sdk/commit/6d6658cd07e8ac63eb3e8dabcdcacb9e9b434eac))

## 1.23.0 (2025-11-29)

Full Changelog: [v1.22.0...v1.23.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.22.0...v1.23.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "brand.dev"
version = "1.23.0"
version = "1.24.0"
description = "The official Python library for the brand.dev API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/brand/dev/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "brand.dev"
__version__ = "1.23.0" # x-release-please-version
__version__ = "1.24.0" # x-release-please-version
18 changes: 17 additions & 1 deletion src/brand/dev/types/brand_ai_query_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

from __future__ import annotations

from typing import Iterable
from typing import Dict, Iterable
from typing_extensions import Literal, Required, Annotated, TypedDict

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

datapoint_list_type: Literal["string", "text", "number", "date", "boolean", "list", "url", "object"]
"""Type of items in the list when datapoint_type is 'list'.

Defaults to 'string'. Use 'object' to extract an array of objects matching a
schema.
"""

datapoint_object_schema: Dict[str, Literal["string", "number", "date", "boolean"]]
"""Schema definition for objects when datapoint_list_type is 'object'.

Provide a map of field names to their scalar types.
"""


class SpecificPages(TypedDict, total=False):
about_us: bool
Expand All @@ -61,6 +74,9 @@ class SpecificPages(TypedDict, total=False):
home_page: bool
"""Whether to analyze the home page"""

pricing: bool
"""Whether to analyze the pricing page"""

privacy_policy: bool
"""Whether to analyze the privacy policy page"""

Expand Down
8 changes: 6 additions & 2 deletions src/brand/dev/types/brand_ai_query_response.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,12 @@ class DataExtracted(BaseModel):
datapoint_name: Optional[str] = None
"""Name of the extracted data point"""

datapoint_value: Union[str, float, bool, List[str], List[float], None] = None
"""Value of the extracted data point"""
datapoint_value: Union[str, float, bool, List[str], List[float], List[object], None] = None
"""Value of the extracted data point.

Can be a primitive type, an array of primitives, or an array of objects when
datapoint_list_type is 'object'.
"""


class BrandAIQueryResponse(BaseModel):
Expand Down
12 changes: 12 additions & 0 deletions tests/api_resources/test_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ def test_method_ai_query_with_all_params(self, client: BrandDev) -> None:
"datapoint_example": "datapoint_example",
"datapoint_name": "datapoint_name",
"datapoint_type": "text",
"datapoint_list_type": "string",
"datapoint_object_schema": {
"testimonial_text": "string",
"testimonial_author": "string",
},
}
],
domain="domain",
Expand All @@ -106,6 +111,7 @@ def test_method_ai_query_with_all_params(self, client: BrandDev) -> None:
"contact_us": True,
"faq": True,
"home_page": True,
"pricing": True,
"privacy_policy": True,
"terms_and_conditions": True,
},
Expand Down Expand Up @@ -716,6 +722,11 @@ async def test_method_ai_query_with_all_params(self, async_client: AsyncBrandDev
"datapoint_example": "datapoint_example",
"datapoint_name": "datapoint_name",
"datapoint_type": "text",
"datapoint_list_type": "string",
"datapoint_object_schema": {
"testimonial_text": "string",
"testimonial_author": "string",
},
}
],
domain="domain",
Expand All @@ -726,6 +737,7 @@ async def test_method_ai_query_with_all_params(self, async_client: AsyncBrandDev
"contact_us": True,
"faq": True,
"home_page": True,
"pricing": True,
"privacy_policy": True,
"terms_and_conditions": True,
},
Expand Down