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.25.0"
".": "1.26.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-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
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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)
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.25.0"
version = "1.26.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.25.0" # x-release-please-version
__version__ = "1.26.0" # x-release-please-version
18 changes: 18 additions & 0 deletions src/brand/dev/resources/brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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).
Expand All @@ -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,
Expand Down Expand Up @@ -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.
Expand All @@ -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).
Expand All @@ -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,
Expand Down
9 changes: 9 additions & 0 deletions src/brand/dev/types/brand_retrieve_naics_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.

Expand Down
8 changes: 6 additions & 2 deletions src/brand/dev/types/brand_retrieve_naics_response.py
Original file line number Diff line number Diff line change
@@ -1,17 +1,21 @@
# 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

__all__ = ["BrandRetrieveNaicsResponse", "Code"]


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"""


Expand Down
4 changes: 4 additions & 0 deletions tests/api_resources/test_brand.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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"])
Expand Down