diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c0c0c3..f3dbfd2 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.25.0" + ".": "1.26.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 8d4f11d..b3da672 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 13 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-143086f8200f34e6ace805070e2a3ddccf15e30ed7ac3a7193f6a984f2413fa2.yml -openapi_spec_hash: f15bf2b836aee764c02a4fc185f13586 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-849e1b7b4e2aeff45d6762768c497da63f605cb80fdbfc0207f7e7555b994b5a.yml +openapi_spec_hash: 9d2ef7a402cb9eaa80cbae645aa8d2f0 config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 55ba02f..ac410ec 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.26.0 (2025-12-14) + +Full Changelog: [v1.25.0...v1.26.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.25.0...v1.26.0) + +### Features + +* **api:** api update ([08ca403](https://github.com/brand-dot-dev/python-sdk/commit/08ca403530f9057d25b443c0c8b02fe821fef14f)) + ## 1.25.0 (2025-12-11) Full Changelog: [v1.24.0...v1.25.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.24.0...v1.25.0) diff --git a/pyproject.toml b/pyproject.toml index 819c093..6cc4b45 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "brand.dev" -version = "1.25.0" +version = "1.26.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 0e1f632..b7aace9 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.25.0" # x-release-please-version +__version__ = "1.26.0" # x-release-please-version diff --git a/src/brand/dev/resources/brand.py b/src/brand/dev/resources/brand.py index 4dfdb9d..b39a766 100644 --- a/src/brand/dev/resources/brand.py +++ b/src/brand/dev/resources/brand.py @@ -1256,6 +1256,8 @@ def retrieve_naics( self, *, input: str, + max_results: int | Omit = omit, + min_results: int | Omit = omit, timeout_ms: int | Omit = omit, # 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. @@ -1272,6 +1274,11 @@ def retrieve_naics( in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title. + max_results: Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults + to 5. + + min_results: Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1. + timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes). @@ -1294,6 +1301,8 @@ def retrieve_naics( query=maybe_transform( { "input": input, + "max_results": max_results, + "min_results": min_results, "timeout_ms": timeout_ms, }, brand_retrieve_naics_params.BrandRetrieveNaicsParams, @@ -2683,6 +2692,8 @@ async def retrieve_naics( self, *, input: str, + max_results: int | Omit = omit, + min_results: int | Omit = omit, timeout_ms: int | Omit = omit, # 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. @@ -2699,6 +2710,11 @@ async def retrieve_naics( in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title. + max_results: Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults + to 5. + + min_results: Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1. + timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer than this value, it will be aborted with a 408 status code. Maximum allowed value is 300000ms (5 minutes). @@ -2721,6 +2737,8 @@ async def retrieve_naics( query=await async_maybe_transform( { "input": input, + "max_results": max_results, + "min_results": min_results, "timeout_ms": timeout_ms, }, brand_retrieve_naics_params.BrandRetrieveNaicsParams, diff --git a/src/brand/dev/types/brand_retrieve_naics_params.py b/src/brand/dev/types/brand_retrieve_naics_params.py index 95ad345..2803c13 100644 --- a/src/brand/dev/types/brand_retrieve_naics_params.py +++ b/src/brand/dev/types/brand_retrieve_naics_params.py @@ -17,6 +17,15 @@ class BrandRetrieveNaicsParams(TypedDict, total=False): otherwise, we will search for the brand using the provided title. """ + max_results: Annotated[int, PropertyInfo(alias="maxResults")] + """Maximum number of NAICS codes to return. + + Must be between 1 and 10. Defaults to 5. + """ + + min_results: Annotated[int, PropertyInfo(alias="minResults")] + """Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.""" + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] """Optional timeout in milliseconds for the request. diff --git a/src/brand/dev/types/brand_retrieve_naics_response.py b/src/brand/dev/types/brand_retrieve_naics_response.py index 5aa467d..a53da5e 100644 --- a/src/brand/dev/types/brand_retrieve_naics_response.py +++ b/src/brand/dev/types/brand_retrieve_naics_response.py @@ -1,6 +1,7 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. from typing import List, Optional +from typing_extensions import Literal from .._models import BaseModel @@ -8,10 +9,13 @@ class Code(BaseModel): - code: Optional[str] = None + code: str """NAICS code""" - title: Optional[str] = None + confidence: Literal["high", "medium", "low"] + """Confidence level for how well this NAICS code matches the company description""" + + name: str """NAICS title""" diff --git a/tests/api_resources/test_brand.py b/tests/api_resources/test_brand.py index 09aaa86..75673d4 100644 --- a/tests/api_resources/test_brand.py +++ b/tests/api_resources/test_brand.py @@ -490,6 +490,8 @@ def test_method_retrieve_naics(self, client: BrandDev) -> None: def test_method_retrieve_naics_with_all_params(self, client: BrandDev) -> None: brand = client.brand.retrieve_naics( input="input", + max_results=1, + min_results=1, timeout_ms=1, ) assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"]) @@ -1117,6 +1119,8 @@ async def test_method_retrieve_naics(self, async_client: AsyncBrandDev) -> None: async def test_method_retrieve_naics_with_all_params(self, async_client: AsyncBrandDev) -> None: brand = await async_client.brand.retrieve_naics( input="input", + max_results=1, + min_results=1, timeout_ms=1, ) assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"])