diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 3e9af1b..fbd9082 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "1.4.0" + ".": "1.5.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index 950b0fd..fc24298 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-2df861cbe235900388f93a2e603090b713f6c5029e4daf2220bddface7882032.yml -openapi_spec_hash: d5a5643aea6c45631d7df49692cf9328 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/brand-dev%2Fbrand.dev-a960d67a89f2e62fcb3fb61f13e0cba71a803ff00b378730cf72a8209ae8e36a.yml +openapi_spec_hash: a2c7aa9e4b1e5265d502d3f005ffb5f9 config_hash: bb3f3ba0dca413263e40968648f9a1a6 diff --git a/CHANGELOG.md b/CHANGELOG.md index fd69a3c..45f62dd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 1.5.0 (2025-06-08) + +Full Changelog: [v1.4.0...v1.5.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.4.0...v1.5.0) + +### Features + +* **api:** manual updates ([8f3190c](https://github.com/brand-dot-dev/python-sdk/commit/8f3190c847269b9537c2000feadff81762171295)) + ## 1.4.0 (2025-06-06) Full Changelog: [v1.3.0...v1.4.0](https://github.com/brand-dot-dev/python-sdk/compare/v1.3.0...v1.4.0) diff --git a/pyproject.toml b/pyproject.toml index 838e554..84c87d5 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "brand.dev" -version = "1.4.0" +version = "1.5.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 74eaf26..929055c 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.4.0" # x-release-please-version +__version__ = "1.5.0" # x-release-please-version diff --git a/src/brand/dev/resources/brand.py b/src/brand/dev/resources/brand.py index 2b589dd..b3fd81a 100644 --- a/src/brand/dev/resources/brand.py +++ b/src/brand/dev/resources/brand.py @@ -118,6 +118,7 @@ def retrieve( ] | NotGiven = NOT_GIVEN, max_speed: bool | NotGiven = NOT_GIVEN, + timeout_ms: int | 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, @@ -137,6 +138,10 @@ def retrieve( the API will skip time-consuming operations for faster response at the cost of less comprehensive data. + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -157,6 +162,7 @@ def retrieve( "domain": domain, "force_language": force_language, "max_speed": max_speed, + "timeout_ms": timeout_ms, }, brand_retrieve_params.BrandRetrieveParams, ), @@ -170,6 +176,7 @@ def ai_query( data_to_extract: Iterable[brand_ai_query_params.DataToExtract], domain: str, specific_pages: brand_ai_query_params.SpecificPages | NotGiven = NOT_GIVEN, + timeout_ms: int | 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, @@ -190,6 +197,10 @@ def ai_query( specific_pages: Optional object specifying which pages to analyze + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -205,6 +216,7 @@ def ai_query( "data_to_extract": data_to_extract, "domain": domain, "specific_pages": specific_pages, + "timeout_ms": timeout_ms, }, brand_ai_query_params.BrandAIQueryParams, ), @@ -218,6 +230,7 @@ def identify_from_transaction( self, *, transaction_info: str, + timeout_ms: int | 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, @@ -232,6 +245,10 @@ def identify_from_transaction( Args: transaction_info: Transaction information to identify the brand + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -248,7 +265,10 @@ def identify_from_transaction( extra_body=extra_body, timeout=timeout, query=maybe_transform( - {"transaction_info": transaction_info}, + { + "transaction_info": transaction_info, + "timeout_ms": timeout_ms, + }, brand_identify_from_transaction_params.BrandIdentifyFromTransactionParams, ), ), @@ -259,6 +279,7 @@ def prefetch( self, *, domain: str, + timeout_ms: int | 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, @@ -275,6 +296,10 @@ def prefetch( Args: domain: Domain name to prefetch brand data for + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -285,7 +310,13 @@ def prefetch( """ return self._post( "/brand/prefetch", - body=maybe_transform({"domain": domain}, brand_prefetch_params.BrandPrefetchParams), + body=maybe_transform( + { + "domain": domain, + "timeout_ms": timeout_ms, + }, + brand_prefetch_params.BrandPrefetchParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), @@ -296,6 +327,7 @@ def retrieve_by_ticker( self, *, ticker: str, + timeout_ms: int | 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, @@ -310,6 +342,10 @@ def retrieve_by_ticker( Args: ticker: Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.) + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -325,7 +361,13 @@ def retrieve_by_ticker( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"ticker": ticker}, brand_retrieve_by_ticker_params.BrandRetrieveByTickerParams), + query=maybe_transform( + { + "ticker": ticker, + "timeout_ms": timeout_ms, + }, + brand_retrieve_by_ticker_params.BrandRetrieveByTickerParams, + ), ), cast_to=BrandRetrieveByTickerResponse, ) @@ -334,6 +376,7 @@ def retrieve_naics( self, *, input: str, + timeout_ms: int | 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, @@ -349,6 +392,10 @@ def retrieve_naics( in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title. + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -364,7 +411,13 @@ def retrieve_naics( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"input": input}, brand_retrieve_naics_params.BrandRetrieveNaicsParams), + query=maybe_transform( + { + "input": input, + "timeout_ms": timeout_ms, + }, + brand_retrieve_naics_params.BrandRetrieveNaicsParams, + ), ), cast_to=BrandRetrieveNaicsResponse, ) @@ -373,6 +426,7 @@ def search( self, *, query: str, + timeout_ms: int | 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, @@ -386,6 +440,10 @@ def search( Args: query: Query string to search brands + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -401,7 +459,13 @@ def search( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=maybe_transform({"query": query}, brand_search_params.BrandSearchParams), + query=maybe_transform( + { + "query": query, + "timeout_ms": timeout_ms, + }, + brand_search_params.BrandSearchParams, + ), ), cast_to=BrandSearchResponse, ) @@ -487,6 +551,7 @@ async def retrieve( ] | NotGiven = NOT_GIVEN, max_speed: bool | NotGiven = NOT_GIVEN, + timeout_ms: int | 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, @@ -506,6 +571,10 @@ async def retrieve( the API will skip time-consuming operations for faster response at the cost of less comprehensive data. + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -526,6 +595,7 @@ async def retrieve( "domain": domain, "force_language": force_language, "max_speed": max_speed, + "timeout_ms": timeout_ms, }, brand_retrieve_params.BrandRetrieveParams, ), @@ -539,6 +609,7 @@ async def ai_query( data_to_extract: Iterable[brand_ai_query_params.DataToExtract], domain: str, specific_pages: brand_ai_query_params.SpecificPages | NotGiven = NOT_GIVEN, + timeout_ms: int | 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, @@ -559,6 +630,10 @@ async def ai_query( specific_pages: Optional object specifying which pages to analyze + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -574,6 +649,7 @@ async def ai_query( "data_to_extract": data_to_extract, "domain": domain, "specific_pages": specific_pages, + "timeout_ms": timeout_ms, }, brand_ai_query_params.BrandAIQueryParams, ), @@ -587,6 +663,7 @@ async def identify_from_transaction( self, *, transaction_info: str, + timeout_ms: int | 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, @@ -601,6 +678,10 @@ async def identify_from_transaction( Args: transaction_info: Transaction information to identify the brand + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -617,7 +698,10 @@ async def identify_from_transaction( extra_body=extra_body, timeout=timeout, query=await async_maybe_transform( - {"transaction_info": transaction_info}, + { + "transaction_info": transaction_info, + "timeout_ms": timeout_ms, + }, brand_identify_from_transaction_params.BrandIdentifyFromTransactionParams, ), ), @@ -628,6 +712,7 @@ async def prefetch( self, *, domain: str, + timeout_ms: int | 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, @@ -644,6 +729,10 @@ async def prefetch( Args: domain: Domain name to prefetch brand data for + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -654,7 +743,13 @@ async def prefetch( """ return await self._post( "/brand/prefetch", - body=await async_maybe_transform({"domain": domain}, brand_prefetch_params.BrandPrefetchParams), + body=await async_maybe_transform( + { + "domain": domain, + "timeout_ms": timeout_ms, + }, + brand_prefetch_params.BrandPrefetchParams, + ), options=make_request_options( extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout ), @@ -665,6 +760,7 @@ async def retrieve_by_ticker( self, *, ticker: str, + timeout_ms: int | 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, @@ -679,6 +775,10 @@ async def retrieve_by_ticker( Args: ticker: Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.) + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -695,7 +795,11 @@ async def retrieve_by_ticker( extra_body=extra_body, timeout=timeout, query=await async_maybe_transform( - {"ticker": ticker}, brand_retrieve_by_ticker_params.BrandRetrieveByTickerParams + { + "ticker": ticker, + "timeout_ms": timeout_ms, + }, + brand_retrieve_by_ticker_params.BrandRetrieveByTickerParams, ), ), cast_to=BrandRetrieveByTickerResponse, @@ -705,6 +809,7 @@ async def retrieve_naics( self, *, input: str, + timeout_ms: int | 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, @@ -720,6 +825,10 @@ async def retrieve_naics( in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title. + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -736,7 +845,11 @@ async def retrieve_naics( extra_body=extra_body, timeout=timeout, query=await async_maybe_transform( - {"input": input}, brand_retrieve_naics_params.BrandRetrieveNaicsParams + { + "input": input, + "timeout_ms": timeout_ms, + }, + brand_retrieve_naics_params.BrandRetrieveNaicsParams, ), ), cast_to=BrandRetrieveNaicsResponse, @@ -746,6 +859,7 @@ async def search( self, *, query: str, + timeout_ms: int | 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, @@ -759,6 +873,10 @@ async def search( Args: query: Query string to search brands + 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). + extra_headers: Send extra headers extra_query: Add additional query parameters to the request @@ -774,7 +892,13 @@ async def search( extra_query=extra_query, extra_body=extra_body, timeout=timeout, - query=await async_maybe_transform({"query": query}, brand_search_params.BrandSearchParams), + query=await async_maybe_transform( + { + "query": query, + "timeout_ms": timeout_ms, + }, + brand_search_params.BrandSearchParams, + ), ), cast_to=BrandSearchResponse, ) diff --git a/src/brand/dev/types/brand_ai_query_params.py b/src/brand/dev/types/brand_ai_query_params.py index d199778..303a508 100644 --- a/src/brand/dev/types/brand_ai_query_params.py +++ b/src/brand/dev/types/brand_ai_query_params.py @@ -3,7 +3,9 @@ from __future__ import annotations from typing import Iterable -from typing_extensions import Literal, Required, TypedDict +from typing_extensions import Literal, Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandAIQueryParams", "DataToExtract", "SpecificPages"] @@ -18,6 +20,13 @@ class BrandAIQueryParams(TypedDict, total=False): specific_pages: SpecificPages """Optional object specifying which pages to analyze""" + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ + class DataToExtract(TypedDict, total=False): datapoint_description: Required[str] diff --git a/src/brand/dev/types/brand_identify_from_transaction_params.py b/src/brand/dev/types/brand_identify_from_transaction_params.py index 0112bdf..186f08f 100644 --- a/src/brand/dev/types/brand_identify_from_transaction_params.py +++ b/src/brand/dev/types/brand_identify_from_transaction_params.py @@ -2,7 +2,9 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandIdentifyFromTransactionParams"] @@ -10,3 +12,10 @@ class BrandIdentifyFromTransactionParams(TypedDict, total=False): transaction_info: Required[str] """Transaction information to identify the brand""" + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/src/brand/dev/types/brand_prefetch_params.py b/src/brand/dev/types/brand_prefetch_params.py index 2053c51..02c13f6 100644 --- a/src/brand/dev/types/brand_prefetch_params.py +++ b/src/brand/dev/types/brand_prefetch_params.py @@ -2,7 +2,9 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandPrefetchParams"] @@ -10,3 +12,10 @@ class BrandPrefetchParams(TypedDict, total=False): domain: Required[str] """Domain name to prefetch brand data for""" + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/src/brand/dev/types/brand_retrieve_by_ticker_params.py b/src/brand/dev/types/brand_retrieve_by_ticker_params.py index 4c63ed2..05d7c79 100644 --- a/src/brand/dev/types/brand_retrieve_by_ticker_params.py +++ b/src/brand/dev/types/brand_retrieve_by_ticker_params.py @@ -2,7 +2,9 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandRetrieveByTickerParams"] @@ -10,3 +12,10 @@ class BrandRetrieveByTickerParams(TypedDict, total=False): ticker: Required[str] """Stock ticker symbol to retrieve brand data for (e.g. AAPL, TSLA, etc.)""" + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/src/brand/dev/types/brand_retrieve_naics_params.py b/src/brand/dev/types/brand_retrieve_naics_params.py index 8d954fc..95ad345 100644 --- a/src/brand/dev/types/brand_retrieve_naics_params.py +++ b/src/brand/dev/types/brand_retrieve_naics_params.py @@ -2,7 +2,9 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandRetrieveNaicsParams"] @@ -14,3 +16,10 @@ class BrandRetrieveNaicsParams(TypedDict, total=False): If a valid domain is provided in `input`, it will be used for classification, otherwise, we will search for the brand using the provided title. """ + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/src/brand/dev/types/brand_retrieve_params.py b/src/brand/dev/types/brand_retrieve_params.py index 407f5e4..e5e8555 100644 --- a/src/brand/dev/types/brand_retrieve_params.py +++ b/src/brand/dev/types/brand_retrieve_params.py @@ -75,3 +75,10 @@ class BrandRetrieveParams(TypedDict, total=False): When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. """ + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/src/brand/dev/types/brand_search_params.py b/src/brand/dev/types/brand_search_params.py index 5181e54..2541682 100644 --- a/src/brand/dev/types/brand_search_params.py +++ b/src/brand/dev/types/brand_search_params.py @@ -2,7 +2,9 @@ from __future__ import annotations -from typing_extensions import Required, TypedDict +from typing_extensions import Required, Annotated, TypedDict + +from .._utils import PropertyInfo __all__ = ["BrandSearchParams"] @@ -10,3 +12,10 @@ class BrandSearchParams(TypedDict, total=False): query: Required[str] """Query string to search brands""" + + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] + """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). + """ diff --git a/tests/api_resources/test_brand.py b/tests/api_resources/test_brand.py index d0e5640..dcfe95d 100644 --- a/tests/api_resources/test_brand.py +++ b/tests/api_resources/test_brand.py @@ -40,6 +40,7 @@ def test_method_retrieve_with_all_params(self, client: BrandDev) -> None: domain="domain", force_language="albanian", max_speed=True, + timeout_ms=1, ) assert_matches_type(BrandRetrieveResponse, brand, path=["response"]) @@ -108,6 +109,7 @@ def test_method_ai_query_with_all_params(self, client: BrandDev) -> None: "privacy_policy": True, "terms_and_conditions": True, }, + timeout_ms=1, ) assert_matches_type(BrandAIQueryResponse, brand, path=["response"]) @@ -161,6 +163,15 @@ def test_method_identify_from_transaction(self, client: BrandDev) -> None: ) assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + def test_method_identify_from_transaction_with_all_params(self, client: BrandDev) -> None: + brand = client.brand.identify_from_transaction( + transaction_info="transaction_info", + timeout_ms=1, + ) + assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize def test_raw_response_identify_from_transaction(self, client: BrandDev) -> None: @@ -195,6 +206,15 @@ def test_method_prefetch(self, client: BrandDev) -> None: ) assert_matches_type(BrandPrefetchResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + def test_method_prefetch_with_all_params(self, client: BrandDev) -> None: + brand = client.brand.prefetch( + domain="domain", + timeout_ms=1, + ) + assert_matches_type(BrandPrefetchResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize def test_raw_response_prefetch(self, client: BrandDev) -> None: @@ -229,6 +249,15 @@ def test_method_retrieve_by_ticker(self, client: BrandDev) -> None: ) assert_matches_type(BrandRetrieveByTickerResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + def test_method_retrieve_by_ticker_with_all_params(self, client: BrandDev) -> None: + brand = client.brand.retrieve_by_ticker( + ticker="ticker", + timeout_ms=1, + ) + assert_matches_type(BrandRetrieveByTickerResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize def test_raw_response_retrieve_by_ticker(self, client: BrandDev) -> None: @@ -263,6 +292,15 @@ def test_method_retrieve_naics(self, client: BrandDev) -> None: ) assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + def test_method_retrieve_naics_with_all_params(self, client: BrandDev) -> None: + brand = client.brand.retrieve_naics( + input="input", + timeout_ms=1, + ) + assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize def test_raw_response_retrieve_naics(self, client: BrandDev) -> None: @@ -297,6 +335,15 @@ def test_method_search(self, client: BrandDev) -> None: ) assert_matches_type(BrandSearchResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + def test_method_search_with_all_params(self, client: BrandDev) -> None: + brand = client.brand.search( + query="query", + timeout_ms=1, + ) + assert_matches_type(BrandSearchResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize def test_raw_response_search(self, client: BrandDev) -> None: @@ -342,6 +389,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncBrandDev domain="domain", force_language="albanian", max_speed=True, + timeout_ms=1, ) assert_matches_type(BrandRetrieveResponse, brand, path=["response"]) @@ -410,6 +458,7 @@ async def test_method_ai_query_with_all_params(self, async_client: AsyncBrandDev "privacy_policy": True, "terms_and_conditions": True, }, + timeout_ms=1, ) assert_matches_type(BrandAIQueryResponse, brand, path=["response"]) @@ -463,6 +512,15 @@ async def test_method_identify_from_transaction(self, async_client: AsyncBrandDe ) assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + async def test_method_identify_from_transaction_with_all_params(self, async_client: AsyncBrandDev) -> None: + brand = await async_client.brand.identify_from_transaction( + transaction_info="transaction_info", + timeout_ms=1, + ) + assert_matches_type(BrandIdentifyFromTransactionResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize async def test_raw_response_identify_from_transaction(self, async_client: AsyncBrandDev) -> None: @@ -497,6 +555,15 @@ async def test_method_prefetch(self, async_client: AsyncBrandDev) -> None: ) assert_matches_type(BrandPrefetchResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + async def test_method_prefetch_with_all_params(self, async_client: AsyncBrandDev) -> None: + brand = await async_client.brand.prefetch( + domain="domain", + timeout_ms=1, + ) + assert_matches_type(BrandPrefetchResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize async def test_raw_response_prefetch(self, async_client: AsyncBrandDev) -> None: @@ -531,6 +598,15 @@ async def test_method_retrieve_by_ticker(self, async_client: AsyncBrandDev) -> N ) assert_matches_type(BrandRetrieveByTickerResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + async def test_method_retrieve_by_ticker_with_all_params(self, async_client: AsyncBrandDev) -> None: + brand = await async_client.brand.retrieve_by_ticker( + ticker="ticker", + timeout_ms=1, + ) + assert_matches_type(BrandRetrieveByTickerResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize async def test_raw_response_retrieve_by_ticker(self, async_client: AsyncBrandDev) -> None: @@ -565,6 +641,15 @@ async def test_method_retrieve_naics(self, async_client: AsyncBrandDev) -> None: ) assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + async def test_method_retrieve_naics_with_all_params(self, async_client: AsyncBrandDev) -> None: + brand = await async_client.brand.retrieve_naics( + input="input", + timeout_ms=1, + ) + assert_matches_type(BrandRetrieveNaicsResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize async def test_raw_response_retrieve_naics(self, async_client: AsyncBrandDev) -> None: @@ -599,6 +684,15 @@ async def test_method_search(self, async_client: AsyncBrandDev) -> None: ) assert_matches_type(BrandSearchResponse, brand, path=["response"]) + @pytest.mark.skip() + @parametrize + async def test_method_search_with_all_params(self, async_client: AsyncBrandDev) -> None: + brand = await async_client.brand.search( + query="query", + timeout_ms=1, + ) + assert_matches_type(BrandSearchResponse, brand, path=["response"]) + @pytest.mark.skip() @parametrize async def test_raw_response_search(self, async_client: AsyncBrandDev) -> None: