From bb1bf90daf24a834121f2656741b1bce3e611588 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:17:34 +0000 Subject: [PATCH 1/2] feat(api): manual updates --- .stats.yml | 4 ++-- src/brand/dev/resources/brand.py | 12 ++++++++++++ src/brand/dev/types/brand_retrieve_params.py | 12 +++++++++++- tests/api_resources/test_brand.py | 2 ++ 4 files changed, 27 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 91105ad..8c0b71c 100644 --- a/.stats.yml +++ b/.stats.yml @@ -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 diff --git a/src/brand/dev/resources/brand.py b/src/brand/dev/resources/brand.py index 7428064..3820062 100644 --- a/src/brand/dev/resources/brand.py +++ b/src/brand/dev/resources/brand.py @@ -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, @@ -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 @@ -151,6 +156,7 @@ def retrieve( { "domain": domain, "force_language": force_language, + "max_speed": max_speed, }, brand_retrieve_params.BrandRetrieveParams, ), @@ -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, @@ -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 @@ -514,6 +525,7 @@ async def retrieve( { "domain": domain, "force_language": force_language, + "max_speed": max_speed, }, brand_retrieve_params.BrandRetrieveParams, ), diff --git a/src/brand/dev/types/brand_retrieve_params.py b/src/brand/dev/types/brand_retrieve_params.py index e28d2db..cba5f6d 100644 --- a/src/brand/dev/types/brand_retrieve_params.py +++ b/src/brand/dev/types/brand_retrieve_params.py @@ -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"] @@ -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. + """ diff --git a/tests/api_resources/test_brand.py b/tests/api_resources/test_brand.py index 78704e4..d0e5640 100644 --- a/tests/api_resources/test_brand.py +++ b/tests/api_resources/test_brand.py @@ -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"]) @@ -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"]) From 042b7d35497cea9851b2e806b4787d143c8209e5 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 6 Jun 2025 15:17:50 +0000 Subject: [PATCH 2/2] release: 1.3.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/brand/dev/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index d0ab664..2a8f4ff 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.2.0" + ".": "1.3.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index ea0ee24..0ef8e30 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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) diff --git a/pyproject.toml b/pyproject.toml index e3bee89..847f359 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -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" diff --git a/src/brand/dev/_version.py b/src/brand/dev/_version.py index f500d38..8ce81b0 100644 --- a/src/brand/dev/_version.py +++ b/src/brand/dev/_version.py @@ -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