Skip to content

Commit 8050e39

Browse files
authored
Merge pull request #4 from brand-dot-dev/release-please--branches--main--changes--next
release: 1.2.0
2 parents 27aa17a + 2bd63ea commit 8050e39

11 files changed

Lines changed: 206 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.1.0"
2+
".": "1.2.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 6
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-c921d60adf854da13dbb83d547cbd8a32fd86d625fb12a325b7d305da7f3a93a.yml
3-
openapi_spec_hash: c02b88f26faaf9fd04177b77d34fd5c3
4-
config_hash: 372b187172495fc2f76f05ba016b4a45
1+
configured_endpoints: 7
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-1f1bc5d70a89b56425a3bafbc06a80c233300b5d5d64438aa633597085a45974.yml
3+
openapi_spec_hash: e87e758c5f59476e0ec486fa59455d60
4+
config_hash: bb3f3ba0dca413263e40968648f9a1a6

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.2.0 (2025-06-06)
4+
5+
Full Changelog: [v1.1.0...v1.2.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.1.0...v1.2.0)
6+
7+
### Features
8+
9+
* **api:** manual updates ([9039f16](https://github.com/brand-dot-dev/python-sdk/commit/9039f1632ed997579d6ab4f55a83adcf2fbc3fce))
10+
311
## 1.1.0 (2025-06-03)
412

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

api.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ from brand.dev.types import (
77
BrandRetrieveResponse,
88
BrandAIQueryResponse,
99
BrandIdentifyFromTransactionResponse,
10+
BrandPrefetchResponse,
1011
BrandRetrieveByTickerResponse,
1112
BrandRetrieveNaicsResponse,
1213
BrandSearchResponse,
@@ -18,6 +19,7 @@ Methods:
1819
- <code title="get /brand/retrieve">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_response.py">BrandRetrieveResponse</a></code>
1920
- <code title="post /brand/ai/query">client.brand.<a href="./src/brand/dev/resources/brand.py">ai_query</a>(\*\*<a href="src/brand/dev/types/brand_ai_query_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_ai_query_response.py">BrandAIQueryResponse</a></code>
2021
- <code title="get /brand/transaction_identifier">client.brand.<a href="./src/brand/dev/resources/brand.py">identify_from_transaction</a>(\*\*<a href="src/brand/dev/types/brand_identify_from_transaction_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_identify_from_transaction_response.py">BrandIdentifyFromTransactionResponse</a></code>
22+
- <code title="post /brand/prefetch">client.brand.<a href="./src/brand/dev/resources/brand.py">prefetch</a>(\*\*<a href="src/brand/dev/types/brand_prefetch_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_prefetch_response.py">BrandPrefetchResponse</a></code>
2123
- <code title="get /brand/retrieve-by-ticker">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_by_ticker</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_by_ticker_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_by_ticker_response.py">BrandRetrieveByTickerResponse</a></code>
2224
- <code title="get /brand/naics">client.brand.<a href="./src/brand/dev/resources/brand.py">retrieve_naics</a>(\*\*<a href="src/brand/dev/types/brand_retrieve_naics_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_retrieve_naics_response.py">BrandRetrieveNaicsResponse</a></code>
2325
- <code title="get /brand/search">client.brand.<a href="./src/brand/dev/resources/brand.py">search</a>(\*\*<a href="src/brand/dev/types/brand_search_params.py">params</a>) -> <a href="./src/brand/dev/types/brand_search_response.py">BrandSearchResponse</a></code>

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.1.0"
3+
version = "1.2.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.1.0" # x-release-please-version
4+
__version__ = "1.2.0" # x-release-please-version

src/brand/dev/resources/brand.py

Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from ..types import (
1111
brand_search_params,
1212
brand_ai_query_params,
13+
brand_prefetch_params,
1314
brand_retrieve_params,
1415
brand_retrieve_naics_params,
1516
brand_retrieve_by_ticker_params,
@@ -28,6 +29,7 @@
2829
from .._base_client import make_request_options
2930
from ..types.brand_search_response import BrandSearchResponse
3031
from ..types.brand_ai_query_response import BrandAIQueryResponse
32+
from ..types.brand_prefetch_response import BrandPrefetchResponse
3133
from ..types.brand_retrieve_response import BrandRetrieveResponse
3234
from ..types.brand_retrieve_naics_response import BrandRetrieveNaicsResponse
3335
from ..types.brand_retrieve_by_ticker_response import BrandRetrieveByTickerResponse
@@ -247,6 +249,43 @@ def identify_from_transaction(
247249
cast_to=BrandIdentifyFromTransactionResponse,
248250
)
249251

252+
def prefetch(
253+
self,
254+
*,
255+
domain: str,
256+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
257+
# The extra values given here take precedence over values defined on the client or passed to this method.
258+
extra_headers: Headers | None = None,
259+
extra_query: Query | None = None,
260+
extra_body: Body | None = None,
261+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
262+
) -> BrandPrefetchResponse:
263+
"""
264+
Signal that you may fetch brand data for a particular domain soon to improve
265+
latency. This endpoint does not charge credits and is available for paid
266+
customers to optimize future requests. [You must be on a paid plan to use this
267+
endpoint]
268+
269+
Args:
270+
domain: Domain name to prefetch brand data for
271+
272+
extra_headers: Send extra headers
273+
274+
extra_query: Add additional query parameters to the request
275+
276+
extra_body: Add additional JSON properties to the request
277+
278+
timeout: Override the client-level default timeout for this request, in seconds
279+
"""
280+
return self._post(
281+
"/brand/prefetch",
282+
body=maybe_transform({"domain": domain}, brand_prefetch_params.BrandPrefetchParams),
283+
options=make_request_options(
284+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
285+
),
286+
cast_to=BrandPrefetchResponse,
287+
)
288+
250289
def retrieve_by_ticker(
251290
self,
252291
*,
@@ -573,6 +612,43 @@ async def identify_from_transaction(
573612
cast_to=BrandIdentifyFromTransactionResponse,
574613
)
575614

615+
async def prefetch(
616+
self,
617+
*,
618+
domain: str,
619+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
620+
# The extra values given here take precedence over values defined on the client or passed to this method.
621+
extra_headers: Headers | None = None,
622+
extra_query: Query | None = None,
623+
extra_body: Body | None = None,
624+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
625+
) -> BrandPrefetchResponse:
626+
"""
627+
Signal that you may fetch brand data for a particular domain soon to improve
628+
latency. This endpoint does not charge credits and is available for paid
629+
customers to optimize future requests. [You must be on a paid plan to use this
630+
endpoint]
631+
632+
Args:
633+
domain: Domain name to prefetch brand data for
634+
635+
extra_headers: Send extra headers
636+
637+
extra_query: Add additional query parameters to the request
638+
639+
extra_body: Add additional JSON properties to the request
640+
641+
timeout: Override the client-level default timeout for this request, in seconds
642+
"""
643+
return await self._post(
644+
"/brand/prefetch",
645+
body=await async_maybe_transform({"domain": domain}, brand_prefetch_params.BrandPrefetchParams),
646+
options=make_request_options(
647+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
648+
),
649+
cast_to=BrandPrefetchResponse,
650+
)
651+
576652
async def retrieve_by_ticker(
577653
self,
578654
*,
@@ -705,6 +781,9 @@ def __init__(self, brand: BrandResource) -> None:
705781
self.identify_from_transaction = to_raw_response_wrapper(
706782
brand.identify_from_transaction,
707783
)
784+
self.prefetch = to_raw_response_wrapper(
785+
brand.prefetch,
786+
)
708787
self.retrieve_by_ticker = to_raw_response_wrapper(
709788
brand.retrieve_by_ticker,
710789
)
@@ -729,6 +808,9 @@ def __init__(self, brand: AsyncBrandResource) -> None:
729808
self.identify_from_transaction = async_to_raw_response_wrapper(
730809
brand.identify_from_transaction,
731810
)
811+
self.prefetch = async_to_raw_response_wrapper(
812+
brand.prefetch,
813+
)
732814
self.retrieve_by_ticker = async_to_raw_response_wrapper(
733815
brand.retrieve_by_ticker,
734816
)
@@ -753,6 +835,9 @@ def __init__(self, brand: BrandResource) -> None:
753835
self.identify_from_transaction = to_streamed_response_wrapper(
754836
brand.identify_from_transaction,
755837
)
838+
self.prefetch = to_streamed_response_wrapper(
839+
brand.prefetch,
840+
)
756841
self.retrieve_by_ticker = to_streamed_response_wrapper(
757842
brand.retrieve_by_ticker,
758843
)
@@ -777,6 +862,9 @@ def __init__(self, brand: AsyncBrandResource) -> None:
777862
self.identify_from_transaction = async_to_streamed_response_wrapper(
778863
brand.identify_from_transaction,
779864
)
865+
self.prefetch = async_to_streamed_response_wrapper(
866+
brand.prefetch,
867+
)
780868
self.retrieve_by_ticker = async_to_streamed_response_wrapper(
781869
brand.retrieve_by_ticker,
782870
)

src/brand/dev/types/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44

55
from .brand_search_params import BrandSearchParams as BrandSearchParams
66
from .brand_ai_query_params import BrandAIQueryParams as BrandAIQueryParams
7+
from .brand_prefetch_params import BrandPrefetchParams as BrandPrefetchParams
78
from .brand_retrieve_params import BrandRetrieveParams as BrandRetrieveParams
89
from .brand_search_response import BrandSearchResponse as BrandSearchResponse
910
from .brand_ai_query_response import BrandAIQueryResponse as BrandAIQueryResponse
11+
from .brand_prefetch_response import BrandPrefetchResponse as BrandPrefetchResponse
1012
from .brand_retrieve_response import BrandRetrieveResponse as BrandRetrieveResponse
1113
from .brand_retrieve_naics_params import BrandRetrieveNaicsParams as BrandRetrieveNaicsParams
1214
from .brand_retrieve_naics_response import BrandRetrieveNaicsResponse as BrandRetrieveNaicsResponse
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from __future__ import annotations
4+
5+
from typing_extensions import Required, TypedDict
6+
7+
__all__ = ["BrandPrefetchParams"]
8+
9+
10+
class BrandPrefetchParams(TypedDict, total=False):
11+
domain: Required[str]
12+
"""Domain name to prefetch brand data for"""
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
5+
from .._models import BaseModel
6+
7+
__all__ = ["BrandPrefetchResponse"]
8+
9+
10+
class BrandPrefetchResponse(BaseModel):
11+
domain: Optional[str] = None
12+
"""The domain that was queued for prefetching"""
13+
14+
message: Optional[str] = None
15+
"""Success message"""
16+
17+
status: Optional[str] = None
18+
"""Status of the response, e.g., 'ok'"""

0 commit comments

Comments
 (0)