From 84470238d4d3019e283c244c1c0e67df74012e4f Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Fri, 29 May 2026 00:12:48 +0000 Subject: [PATCH 1/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index a5eefde..ccf7ea3 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 23 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-65a744f4c7f4e0a4e92ff201092cf48901757824d7eb32e79cd6e36919284c10.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-53441ebf037f11ab2656b64a88e11d78d4b92f39b803ba62fe3ccf77cb6f84eb.yml openapi_spec_hash: 88c222227b33b3cba5898fd55782cce9 -config_hash: f481fca4de4b1657023180d4fc47ef22 +config_hash: ada0970327c433e075b4ceef583e0755 From cd6cf45c0dbc402fa7c4d5b8625ec16b5ad35390 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 30 May 2026 18:05:29 +0000 Subject: [PATCH 2/3] feat(api): api update --- .stats.yml | 4 +-- src/context/dev/resources/web.py | 28 +++++++++++++++++++ .../dev/types/web_extract_fonts_params.py | 8 ++++++ .../types/web_extract_styleguide_params.py | 8 ++++++ tests/api_resources/test_web.py | 4 +++ 5 files changed, 50 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index ccf7ea3..af82291 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 23 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-53441ebf037f11ab2656b64a88e11d78d4b92f39b803ba62fe3ccf77cb6f84eb.yml -openapi_spec_hash: 88c222227b33b3cba5898fd55782cce9 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/context-dev/context.dev-079e4949baaeab93254aa8a651f4e9976e95387b1633002e925114ce36f29013.yml +openapi_spec_hash: 331f27b62376aaf9c311af03a21d31b8 config_hash: ada0970327c433e075b4ceef583e0755 diff --git a/src/context/dev/resources/web.py b/src/context/dev/resources/web.py index a9dfaaa..32c357c 100644 --- a/src/context/dev/resources/web.py +++ b/src/context/dev/resources/web.py @@ -66,6 +66,7 @@ def extract_fonts( *, direct_url: str | Omit = omit, domain: str | Omit = omit, + 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. @@ -87,6 +88,11 @@ def extract_fonts( domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both. + max_age_ms: Maximum age in milliseconds for cached 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). @@ -110,6 +116,7 @@ def extract_fonts( { "direct_url": direct_url, "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, web_extract_fonts_params.WebExtractFontsParams, @@ -123,6 +130,7 @@ def extract_styleguide( *, direct_url: str | Omit = omit, domain: str | Omit = omit, + 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. @@ -145,6 +153,11 @@ def extract_styleguide( domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both. + max_age_ms: Maximum age in milliseconds for cached 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). @@ -168,6 +181,7 @@ def extract_styleguide( { "direct_url": direct_url, "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, web_extract_styleguide_params.WebExtractStyleguideParams, @@ -749,6 +763,7 @@ async def extract_fonts( *, direct_url: str | Omit = omit, domain: str | Omit = omit, + 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. @@ -770,6 +785,11 @@ async def extract_fonts( domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both. + max_age_ms: Maximum age in milliseconds for cached 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). @@ -793,6 +813,7 @@ async def extract_fonts( { "direct_url": direct_url, "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, web_extract_fonts_params.WebExtractFontsParams, @@ -806,6 +827,7 @@ async def extract_styleguide( *, direct_url: str | Omit = omit, domain: str | Omit = omit, + 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. @@ -828,6 +850,11 @@ async def extract_styleguide( domain will be automatically normalized and validated. You must provide either 'domain' or 'directUrl', but not both. + max_age_ms: Maximum age in milliseconds for cached 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). @@ -851,6 +878,7 @@ async def extract_styleguide( { "direct_url": direct_url, "domain": domain, + "max_age_ms": max_age_ms, "timeout_ms": timeout_ms, }, web_extract_styleguide_params.WebExtractStyleguideParams, diff --git a/src/context/dev/types/web_extract_fonts_params.py b/src/context/dev/types/web_extract_fonts_params.py index 9bdc46e..86d8c7c 100644 --- a/src/context/dev/types/web_extract_fonts_params.py +++ b/src/context/dev/types/web_extract_fonts_params.py @@ -24,6 +24,14 @@ class WebExtractFontsParams(TypedDict, total=False): either 'domain' or 'directUrl', but not both. """ + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached 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_extract_styleguide_params.py b/src/context/dev/types/web_extract_styleguide_params.py index 42b6d88..3ccd09f 100644 --- a/src/context/dev/types/web_extract_styleguide_params.py +++ b/src/context/dev/types/web_extract_styleguide_params.py @@ -25,6 +25,14 @@ class WebExtractStyleguideParams(TypedDict, total=False): either 'domain' or 'directUrl', but not both. """ + max_age_ms: Annotated[int, PropertyInfo(alias="maxAgeMs")] + """ + Maximum age in milliseconds for cached 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/tests/api_resources/test_web.py b/tests/api_resources/test_web.py index ddb16a2..46cbe44 100644 --- a/tests/api_resources/test_web.py +++ b/tests/api_resources/test_web.py @@ -39,6 +39,7 @@ def test_method_extract_fonts_with_all_params(self, client: ContextDev) -> None: web = client.web.extract_fonts( direct_url="https://example.com", domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(WebExtractFontsResponse, web, path=["response"]) @@ -77,6 +78,7 @@ def test_method_extract_styleguide_with_all_params(self, client: ContextDev) -> web = client.web.extract_styleguide( direct_url="https://example.com", domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(WebExtractStyleguideResponse, web, path=["response"]) @@ -493,6 +495,7 @@ async def test_method_extract_fonts_with_all_params(self, async_client: AsyncCon web = await async_client.web.extract_fonts( direct_url="https://example.com", domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(WebExtractFontsResponse, web, path=["response"]) @@ -531,6 +534,7 @@ async def test_method_extract_styleguide_with_all_params(self, async_client: Asy web = await async_client.web.extract_styleguide( direct_url="https://example.com", domain="domain", + max_age_ms=86400000, timeout_ms=1000, ) assert_matches_type(WebExtractStyleguideResponse, web, path=["response"]) From 7dd61915e2087a0a71aebba1e6a0cf6347068870 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sat, 30 May 2026 18:05:51 +0000 Subject: [PATCH 3/3] release: 0.26.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 a36746b..caf5ca3 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.25.0" + ".": "0.26.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 374ff7a..7167d47 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.26.0 (2026-05-30) + +Full Changelog: [v0.25.0...v0.26.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.25.0...v0.26.0) + +### Features + +* **api:** api update ([cd6cf45](https://github.com/context-dot-dev/context-python-sdk/commit/cd6cf45c0dbc402fa7c4d5b8625ec16b5ad35390)) + ## 0.25.0 (2026-05-19) Full Changelog: [v0.24.0...v0.25.0](https://github.com/context-dot-dev/context-python-sdk/compare/v0.24.0...v0.25.0) diff --git a/pyproject.toml b/pyproject.toml index 1b4979a..1aabc9e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "context.dev" -version = "0.25.0" +version = "0.26.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 3b75fc0..e7fc5fd 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.25.0" # x-release-please-version +__version__ = "0.26.0" # x-release-please-version