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.2.0"
".": "1.3.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: 7
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-1f1bc5d70a89b56425a3bafbc06a80c233300b5d5d64438aa633597085a45974.yml
openapi_spec_hash: e87e758c5f59476e0ec486fa59455d60
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-194e1804daeb0a1bcd2443be8893ab999d428dcacaab17cf355097942627439a.yml
openapi_spec_hash: de3391b2db78e2fb0aaa03d30ec9a0f3
config_hash: bb3f3ba0dca413263e40968648f9a1a6
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# Changelog

## 1.3.0 (2025-06-06)

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

### Features

* **api:** manual updates ([bb1bf90](https://github.com/brand-dot-dev/python-sdk/commit/bb1bf90daf24a834121f2656741b1bce3e611588))

## 1.2.0 (2025-06-06)

Full Changelog: [v1.1.0...v1.2.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.1.0...v1.2.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.2.0"
version = "1.3.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.2.0" # x-release-please-version
__version__ = "1.3.0" # x-release-please-version
12 changes: 12 additions & 0 deletions src/brand/dev/resources/brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,7 @@ def retrieve(
"welsh",
]
| NotGiven = NOT_GIVEN,
max_speed: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -132,6 +133,10 @@ def retrieve(

force_language: Optional parameter to force the language of the retrieved brand data

max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
the API will skip social media data extraction and external service calls (like
Crunchbase) to return results faster with basic brand information only.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -151,6 +156,7 @@ def retrieve(
{
"domain": domain,
"force_language": force_language,
"max_speed": max_speed,
},
brand_retrieve_params.BrandRetrieveParams,
),
Expand Down Expand Up @@ -480,6 +486,7 @@ async def retrieve(
"welsh",
]
| NotGiven = NOT_GIVEN,
max_speed: bool | NotGiven = NOT_GIVEN,
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
# The extra values given here take precedence over values defined on the client or passed to this method.
extra_headers: Headers | None = None,
Expand All @@ -495,6 +502,10 @@ async def retrieve(

force_language: Optional parameter to force the language of the retrieved brand data

max_speed: Optional parameter to optimize the API call for maximum speed. When set to true,
the API will skip social media data extraction and external service calls (like
Crunchbase) to return results faster with basic brand information only.

extra_headers: Send extra headers

extra_query: Add additional query parameters to the request
Expand All @@ -514,6 +525,7 @@ async def retrieve(
{
"domain": domain,
"force_language": force_language,
"max_speed": max_speed,
},
brand_retrieve_params.BrandRetrieveParams,
),
Expand Down
12 changes: 11 additions & 1 deletion src/brand/dev/types/brand_retrieve_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

from __future__ import annotations

from typing_extensions import Literal, Required, TypedDict
from typing_extensions import Literal, Required, Annotated, TypedDict

from .._utils import PropertyInfo

__all__ = ["BrandRetrieveParams"]

Expand Down Expand Up @@ -66,3 +68,11 @@ class BrandRetrieveParams(TypedDict, total=False):
"welsh",
]
"""Optional parameter to force the language of the retrieved brand data"""

max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")]
"""Optional parameter to optimize the API call for maximum speed.

When set to true, the API will skip social media data extraction and external
service calls (like Crunchbase) to return results faster with basic brand
information only.
"""
2 changes: 2 additions & 0 deletions tests/api_resources/test_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ def test_method_retrieve_with_all_params(self, client: BrandDev) -> None:
brand = client.brand.retrieve(
domain="domain",
force_language="albanian",
max_speed=True,
)
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])

Expand Down Expand Up @@ -340,6 +341,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncBrandDev
brand = await async_client.brand.retrieve(
domain="domain",
force_language="albanian",
max_speed=True,
)
assert_matches_type(BrandRetrieveResponse, brand, path=["response"])

Expand Down