From cd23fbc9f0b423246699f3cc78a9ce3b734f1acf Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 6 May 2026 23:07:20 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 +- src/context/dev/resources/brand.py | 84 +++++++++++++++++++ .../types/brand_retrieve_by_email_params.py | 8 ++ .../types/brand_retrieve_by_isin_params.py | 8 ++ .../types/brand_retrieve_by_name_params.py | 8 ++ .../types/brand_retrieve_by_ticker_params.py | 8 ++ .../dev/types/brand_retrieve_params.py | 8 ++ .../types/brand_retrieve_simplified_params.py | 8 ++ .../dev/types/web_web_scrape_images_params.py | 2 +- tests/api_resources/test_brand.py | 12 +++ 10 files changed, 147 insertions(+), 3 deletions(-) diff --git a/.stats.yml b/.stats.yml index 66f8c27..7ac6ab7 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 22 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-bfa54d26b675d92a0b3db3e3c2147dc98250fb1e4cb82bb6bd6f9af544763506.yml -openapi_spec_hash: 7d834a5553262d0a2538bc066f39d549 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-44904c513baa439f294b23964ea368ad52863e13328980f9cac5a8e78cbb58cb.yml +openapi_spec_hash: 9bb50ca838166fb474d28009a7edbd49 config_hash: 70354330f92ce169beabc98696ebb9a3 diff --git a/src/context/dev/resources/brand.py b/src/context/dev/resources/brand.py index 3373a27..0d2aa3e 100644 --- a/src/context/dev/resources/brand.py +++ b/src/context/dev/resources/brand.py @@ -184,6 +184,7 @@ def retrieve( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -203,6 +204,11 @@ def retrieve( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. Works with all three lookup methods. @@ -230,6 +236,7 @@ def retrieve( { "domain": domain, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -811,6 +818,7 @@ def retrieve_by_email( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -832,6 +840,11 @@ def retrieve_by_email( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -859,6 +872,7 @@ def retrieve_by_email( { "email": email, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -995,6 +1009,7 @@ def retrieve_by_isin( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -1015,6 +1030,11 @@ def retrieve_by_isin( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -1042,6 +1062,7 @@ def retrieve_by_isin( { "isin": isin, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -1420,6 +1441,7 @@ def retrieve_by_name( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -1441,6 +1463,11 @@ def retrieve_by_name( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -1469,6 +1496,7 @@ def retrieve_by_name( "name": name, "country_gl": country_gl, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -1605,6 +1633,7 @@ def retrieve_by_ticker( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | Omit = omit, ticker_exchange: Literal[ "AMEX", @@ -1698,6 +1727,11 @@ def retrieve_by_ticker( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -1727,6 +1761,7 @@ def retrieve_by_ticker( { "ticker": ticker, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "ticker_exchange": ticker_exchange, "timeout_ms": timeout_ms, @@ -1741,6 +1776,7 @@ def retrieve_simplified( self, *, domain: str, + max_age_ms: 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. @@ -1757,6 +1793,11 @@ def retrieve_simplified( Args: domain: Domain name to retrieve simplified brand data for + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + 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). @@ -1779,6 +1820,7 @@ def retrieve_simplified( query=maybe_transform( { "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, brand_retrieve_simplified_params.BrandRetrieveSimplifiedParams, @@ -1935,6 +1977,7 @@ async def retrieve( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -1954,6 +1997,11 @@ async def retrieve( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. Works with all three lookup methods. @@ -1981,6 +2029,7 @@ async def retrieve( { "domain": domain, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -2562,6 +2611,7 @@ async def retrieve_by_email( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -2583,6 +2633,11 @@ async def retrieve_by_email( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -2610,6 +2665,7 @@ async def retrieve_by_email( { "email": email, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -2746,6 +2802,7 @@ async def retrieve_by_isin( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -2766,6 +2823,11 @@ async def retrieve_by_isin( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -2793,6 +2855,7 @@ async def retrieve_by_isin( { "isin": isin, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -3171,6 +3234,7 @@ async def retrieve_by_name( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | 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. @@ -3192,6 +3256,11 @@ async def retrieve_by_name( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -3220,6 +3289,7 @@ async def retrieve_by_name( "name": name, "country_gl": country_gl, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "timeout_ms": timeout_ms, }, @@ -3356,6 +3426,7 @@ async def retrieve_by_ticker( "zulu", ] | Omit = omit, + max_age_ms: int | Omit = omit, max_speed: bool | Omit = omit, ticker_exchange: Literal[ "AMEX", @@ -3449,6 +3520,11 @@ async def retrieve_by_ticker( force_language: Optional parameter to force the language of the retrieved brand data. + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + max_speed: Optional parameter to optimize the API call for maximum speed. When set to true, the API will skip time-consuming operations for faster response at the cost of less comprehensive data. @@ -3478,6 +3554,7 @@ async def retrieve_by_ticker( { "ticker": ticker, "force_language": force_language, + "max_age_ms": max_age_ms, "max_speed": max_speed, "ticker_exchange": ticker_exchange, "timeout_ms": timeout_ms, @@ -3492,6 +3569,7 @@ async def retrieve_simplified( self, *, domain: str, + max_age_ms: 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. @@ -3508,6 +3586,11 @@ async def retrieve_simplified( Args: domain: Domain name to retrieve simplified brand data for + max_age_ms: Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + 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). @@ -3530,6 +3613,7 @@ async def retrieve_simplified( query=await async_maybe_transform( { "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, brand_retrieve_simplified_params.BrandRetrieveSimplifiedParams, diff --git a/src/context/dev/types/brand_retrieve_by_email_params.py b/src/context/dev/types/brand_retrieve_by_email_params.py index 84949e7..580b5c1 100644 --- a/src/context/dev/types/brand_retrieve_by_email_params.py +++ b/src/context/dev/types/brand_retrieve_by_email_params.py @@ -141,6 +141,14 @@ class BrandRetrieveByEmailParams(TypedDict, total=False): ] """Optional parameter to force the language of the retrieved brand data.""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")] """Optional parameter to optimize the API call for maximum speed. diff --git a/src/context/dev/types/brand_retrieve_by_isin_params.py b/src/context/dev/types/brand_retrieve_by_isin_params.py index 5be121e..630834f 100644 --- a/src/context/dev/types/brand_retrieve_by_isin_params.py +++ b/src/context/dev/types/brand_retrieve_by_isin_params.py @@ -141,6 +141,14 @@ class BrandRetrieveByIsinParams(TypedDict, total=False): ] """Optional parameter to force the language of the retrieved brand data.""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")] """Optional parameter to optimize the API call for maximum speed. diff --git a/src/context/dev/types/brand_retrieve_by_name_params.py b/src/context/dev/types/brand_retrieve_by_name_params.py index d774223..972fbd0 100644 --- a/src/context/dev/types/brand_retrieve_by_name_params.py +++ b/src/context/dev/types/brand_retrieve_by_name_params.py @@ -386,6 +386,14 @@ class BrandRetrieveByNameParams(TypedDict, total=False): ] """Optional parameter to force the language of the retrieved brand data.""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")] """Optional parameter to optimize the API call for maximum speed. diff --git a/src/context/dev/types/brand_retrieve_by_ticker_params.py b/src/context/dev/types/brand_retrieve_by_ticker_params.py index 9d1124f..8ba1731 100644 --- a/src/context/dev/types/brand_retrieve_by_ticker_params.py +++ b/src/context/dev/types/brand_retrieve_by_ticker_params.py @@ -140,6 +140,14 @@ class BrandRetrieveByTickerParams(TypedDict, total=False): ] """Optional parameter to force the language of the retrieved brand data.""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")] """Optional parameter to optimize the API call for maximum speed. diff --git a/src/context/dev/types/brand_retrieve_params.py b/src/context/dev/types/brand_retrieve_params.py index d25c4c0..2812ab5 100644 --- a/src/context/dev/types/brand_retrieve_params.py +++ b/src/context/dev/types/brand_retrieve_params.py @@ -140,6 +140,14 @@ class BrandRetrieveParams(TypedDict, total=False): ] """Optional parameter to force the language of the retrieved brand data.""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + max_speed: Annotated[bool, PropertyInfo(alias="maxSpeed")] """Optional parameter to optimize the API call for maximum speed. diff --git a/src/context/dev/types/brand_retrieve_simplified_params.py b/src/context/dev/types/brand_retrieve_simplified_params.py index b9d9cd3..4a60ba7 100644 --- a/src/context/dev/types/brand_retrieve_simplified_params.py +++ b/src/context/dev/types/brand_retrieve_simplified_params.py @@ -13,6 +13,14 @@ class BrandRetrieveSimplifiedParams(TypedDict, total=False): domain: Required[str] """Domain name to retrieve simplified brand data for""" + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached brand data before the API performs a hard + refresh. Defaults to 3 months (7776000000 ms). Values below 1 day (86400000 ms) + are clamped to 1 day; values above 1 year (31536000000 ms) are clamped to 1 + year. + """ + timeout_ms: Annotated[int, PropertyInfo(alias="timeoutMS")] """Optional timeout in milliseconds for the request. diff --git a/src/context/dev/types/web_web_scrape_images_params.py b/src/context/dev/types/web_web_scrape_images_params.py index c32eebf..cd2e438 100644 --- a/src/context/dev/types/web_web_scrape_images_params.py +++ b/src/context/dev/types/web_web_scrape_images_params.py @@ -42,7 +42,7 @@ class Enrichment(TypedDict, total=False): """ max_time_per_ms: Annotated[int, PropertyInfo(alias="maxTimePerMs")] - """Per-image enrichment timeout in milliseconds. Default: 6000. Maximum: 60000.""" + """Per-image enrichment timeout in milliseconds. Default: 30000. Maximum: 60000.""" resolution: bool """Measure image width and height when possible.""" diff --git a/tests/api_resources/test_brand.py b/tests/api_resources/test_brand.py index cc2de39..2a25909 100644 --- a/tests/api_resources/test_brand.py +++ b/tests/api_resources/test_brand.py @@ -39,6 +39,7 @@ def test_method_retrieve_with_all_params(self, client: ContextDev) -> None: brand = client.brand.retrieve( domain="domain", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -134,6 +135,7 @@ def test_method_retrieve_by_email_with_all_params(self, client: ContextDev) -> N brand = client.brand.retrieve_by_email( email="dev@stainless.com", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -179,6 +181,7 @@ def test_method_retrieve_by_isin_with_all_params(self, client: ContextDev) -> No brand = client.brand.retrieve_by_isin( isin="SE60513A9993", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -225,6 +228,7 @@ def test_method_retrieve_by_name_with_all_params(self, client: ContextDev) -> No name="xxx", country_gl="ad", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -270,6 +274,7 @@ def test_method_retrieve_by_ticker_with_all_params(self, client: ContextDev) -> brand = client.brand.retrieve_by_ticker( ticker="ticker", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, ticker_exchange="AMEX", timeout_ms=1000, @@ -315,6 +320,7 @@ def test_method_retrieve_simplified(self, client: ContextDev) -> None: def test_method_retrieve_simplified_with_all_params(self, client: ContextDev) -> None: brand = client.brand.retrieve_simplified( domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(BrandRetrieveSimplifiedResponse, brand, path=["response"]) @@ -365,6 +371,7 @@ async def test_method_retrieve_with_all_params(self, async_client: AsyncContextD brand = await async_client.brand.retrieve( domain="domain", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -460,6 +467,7 @@ async def test_method_retrieve_by_email_with_all_params(self, async_client: Asyn brand = await async_client.brand.retrieve_by_email( email="dev@stainless.com", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -505,6 +513,7 @@ async def test_method_retrieve_by_isin_with_all_params(self, async_client: Async brand = await async_client.brand.retrieve_by_isin( isin="SE60513A9993", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -551,6 +560,7 @@ async def test_method_retrieve_by_name_with_all_params(self, async_client: Async name="xxx", country_gl="ad", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, timeout_ms=1000, ) @@ -596,6 +606,7 @@ async def test_method_retrieve_by_ticker_with_all_params(self, async_client: Asy brand = await async_client.brand.retrieve_by_ticker( ticker="ticker", force_language="afrikaans", + max_age_ms=86400000, max_speed=True, ticker_exchange="AMEX", timeout_ms=1000, @@ -641,6 +652,7 @@ async def test_method_retrieve_simplified(self, async_client: AsyncContextDev) - async def test_method_retrieve_simplified_with_all_params(self, async_client: AsyncContextDev) -> None: brand = await async_client.brand.retrieve_simplified( domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(BrandRetrieveSimplifiedResponse, brand, path=["response"]) From 19df49b2002b3d16e136d14d24f9a926ea6a3653 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Wed, 6 May 2026 23:07:40 +0000 Subject: [PATCH 2/2] release: 0.17.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/context/dev/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index b4e9013..6db19b9 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.16.0" + ".": "0.17.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index e9693f5..71f455f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.17.0 (2026-05-06) + +Full Changelog: [v0.16.0...v0.17.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.16.0...v0.17.0) + +### Features + +* **api:** api update ([cd23fbc](https://github.com/context-dot-dev/context-python-sdk/commit/cd23fbc9f0b423246699f3cc78a9ce3b734f1acf)) + ## 0.16.0 (2026-05-06) Full Changelog: [v0.15.0...v0.16.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.15.0...v0.16.0) diff --git a/pyproject.toml b/pyproject.toml index 19d2e4b..c9d2c74 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "context.dev" -version = "0.16.0" +version = "0.17.0" description = "The official Python library for the context.dev API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/context/dev/_version.py b/src/context/dev/_version.py index 6141169..ef66ec4 100644 --- a/src/context/dev/_version.py +++ b/src/context/dev/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "context.dev" -__version__ = "0.16.0" # x-release-please-version +__version__ = "0.17.0" # x-release-please-version