Skip to content

Commit 287f1e8

Browse files
authored
Merge pull request #32 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.26.0
2 parents 8ef8154 + 16e6423 commit 287f1e8

9 files changed

Lines changed: 50 additions & 7 deletions

File tree

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "1.25.0"
2+
".": "1.26.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-143086f8200f34e6ace805070e2a3ddccf15e30ed7ac3a7193f6a984f2413fa2.yml
3-
openapi_spec_hash: f15bf2b836aee764c02a4fc185f13586
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-849e1b7b4e2aeff45d6762768c497da63f605cb80fdbfc0207f7e7555b994b5a.yml
3+
openapi_spec_hash: 9d2ef7a402cb9eaa80cbae645aa8d2f0
44
config_hash: 6aaf0fe6f8877c9c5d9af95597123cb4

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## 1.26.0 (2025-12-14)
4+
5+
Full Changelog: [v1.25.0...v1.26.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.25.0...v1.26.0)
6+
7+
### Features
8+
9+
* **api:** api update ([08ca403](https://github.com/brand-dot-dev/python-sdk/commit/08ca403530f9057d25b443c0c8b02fe821fef14f))
10+
311
## 1.25.0 (2025-12-11)
412

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

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "brand.dev"
3-
version = "1.25.0"
3+
version = "1.26.0"
44
description = "The official Python library for the brand.dev API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/brand/dev/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "brand.dev"
4-
__version__ = "1.25.0" # x-release-please-version
4+
__version__ = "1.26.0" # x-release-please-version

src/brand/dev/resources/brand.py

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,8 @@ def retrieve_naics(
12561256
self,
12571257
*,
12581258
input: str,
1259+
max_results: int | Omit = omit,
1260+
min_results: int | Omit = omit,
12591261
timeout_ms: int | Omit = omit,
12601262
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
12611263
# 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(
12721274
in `input`, it will be used for classification, otherwise, we will search for
12731275
the brand using the provided title.
12741276
1277+
max_results: Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
1278+
to 5.
1279+
1280+
min_results: Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
1281+
12751282
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
12761283
than this value, it will be aborted with a 408 status code. Maximum allowed
12771284
value is 300000ms (5 minutes).
@@ -1294,6 +1301,8 @@ def retrieve_naics(
12941301
query=maybe_transform(
12951302
{
12961303
"input": input,
1304+
"max_results": max_results,
1305+
"min_results": min_results,
12971306
"timeout_ms": timeout_ms,
12981307
},
12991308
brand_retrieve_naics_params.BrandRetrieveNaicsParams,
@@ -2683,6 +2692,8 @@ async def retrieve_naics(
26832692
self,
26842693
*,
26852694
input: str,
2695+
max_results: int | Omit = omit,
2696+
min_results: int | Omit = omit,
26862697
timeout_ms: int | Omit = omit,
26872698
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
26882699
# 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(
26992710
in `input`, it will be used for classification, otherwise, we will search for
27002711
the brand using the provided title.
27012712
2713+
max_results: Maximum number of NAICS codes to return. Must be between 1 and 10. Defaults
2714+
to 5.
2715+
2716+
min_results: Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1.
2717+
27022718
timeout_ms: Optional timeout in milliseconds for the request. If the request takes longer
27032719
than this value, it will be aborted with a 408 status code. Maximum allowed
27042720
value is 300000ms (5 minutes).
@@ -2721,6 +2737,8 @@ async def retrieve_naics(
27212737
query=await async_maybe_transform(
27222738
{
27232739
"input": input,
2740+
"max_results": max_results,
2741+
"min_results": min_results,
27242742
"timeout_ms": timeout_ms,
27252743
},
27262744
brand_retrieve_naics_params.BrandRetrieveNaicsParams,

src/brand/dev/types/brand_retrieve_naics_params.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,15 @@ class BrandRetrieveNaicsParams(TypedDict, total=False):
1717
otherwise, we will search for the brand using the provided title.
1818
"""
1919

20+
max_results: Annotated[int, PropertyInfo(alias="maxResults")]
21+
"""Maximum number of NAICS codes to return.
22+
23+
Must be between 1 and 10. Defaults to 5.
24+
"""
25+
26+
min_results: Annotated[int, PropertyInfo(alias="minResults")]
27+
"""Minimum number of NAICS codes to return. Must be at least 1. Defaults to 1."""
28+
2029
timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")]
2130
"""Optional timeout in milliseconds for the request.
2231

src/brand/dev/types/brand_retrieve_naics_response.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,21 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
from typing import List, Optional
4+
from typing_extensions import Literal
45

56
from .._models import BaseModel
67

78
__all__ = ["BrandRetrieveNaicsResponse", "Code"]
89

910

1011
class Code(BaseModel):
11-
code: Optional[str] = None
12+
code: str
1213
"""NAICS code"""
1314

14-
title: Optional[str] = None
15+
confidence: Literal["high", "medium", "low"]
16+
"""Confidence level for how well this NAICS code matches the company description"""
17+
18+
name: str
1519
"""NAICS title"""
1620

1721

tests/api_resources/test_brand.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -490,6 +490,8 @@ def test_method_retrieve_naics(self, client: BrandDev) -> None:
490490
def test_method_retrieve_naics_with_all_params(self, client: BrandDev) -> None:
491491
brand = client.brand.retrieve_naics(
492492
input="input",
493+
max_results=1,
494+
min_results=1,
493495
timeout_ms=1,
494496
)
495497
assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"])
@@ -1117,6 +1119,8 @@ async def test_method_retrieve_naics(self, async_client: AsyncBrandDev) -> None:
11171119
async def test_method_retrieve_naics_with_all_params(self, async_client: AsyncBrandDev) -> None:
11181120
brand = await async_client.brand.retrieve_naics(
11191121
input="input",
1122+
max_results=1,
1123+
min_results=1,
11201124
timeout_ms=1,
11211125
)
11221126
assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"])

0 commit comments

Comments
 (0)