diff --git a/.release-please-manifest.json b/.release-please-manifest.json index e0dc5001..1f73031b 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.1.0" + ".": "3.2.0" } \ No newline at end of file diff --git a/.stats.yml b/.stats.yml index ebe1bcee..2de19c18 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 18 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-b7bf8402df5372a3fac3cb55e083d7c09867328639cb7e2ceb7826de125ccff7.yml -openapi_spec_hash: a91c06034ad9e8a7315927d6f2e18521 +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-f35c8c3182ef17698350347936848877f3ed8a8af8fcfdc3471506309ff0b9ce.yml +openapi_spec_hash: f58c1f9350390517a31e0f241245adc3 config_hash: 5deef1e3a49e3a7816348fbf7ba259bf diff --git a/CHANGELOG.md b/CHANGELOG.md index 065277d1..c9a48ef0 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.2.0 (2025-09-21) + +Full Changelog: [v3.1.0...v3.2.0](https://github.com/supermemoryai/python-sdk/compare/v3.1.0...v3.2.0) + +### Features + +* **api:** api update ([82b35f0](https://github.com/supermemoryai/python-sdk/commit/82b35f0447a67d089304d57f41d1d1527f6da7fb)) + ## 3.1.0 (2025-09-20) Full Changelog: [v3.0.0-alpha.30...v3.1.0](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.30...v3.1.0) diff --git a/pyproject.toml b/pyproject.toml index 46943a25..4123ee2f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "supermemory" -version = "3.1.0" +version = "3.2.0" description = "The official Python library for the supermemory API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/supermemory/_version.py b/src/supermemory/_version.py index 941e3486..b3b1703c 100644 --- a/src/supermemory/_version.py +++ b/src/supermemory/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "supermemory" -__version__ = "3.1.0" # x-release-please-version +__version__ = "3.2.0" # x-release-please-version diff --git a/src/supermemory/resources/settings.py b/src/supermemory/resources/settings.py index ff223f03..7d5f25d6 100644 --- a/src/supermemory/resources/settings.py +++ b/src/supermemory/resources/settings.py @@ -47,6 +47,7 @@ def with_streaming_response(self) -> SettingsResourceWithStreamingResponse: def update( self, *, + chunk_size: Optional[int] | Omit = omit, exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit, filter_prompt: Optional[str] | Omit = omit, google_drive_client_id: Optional[str] | Omit = omit, @@ -83,6 +84,7 @@ def update( "/v3/settings", body=maybe_transform( { + "chunk_size": chunk_size, "exclude_items": exclude_items, "filter_prompt": filter_prompt, "google_drive_client_id": google_drive_client_id, @@ -148,6 +150,7 @@ def with_streaming_response(self) -> AsyncSettingsResourceWithStreamingResponse: async def update( self, *, + chunk_size: Optional[int] | Omit = omit, exclude_items: Union[str, float, bool, Dict[str, object], Iterable[object], None] | Omit = omit, filter_prompt: Optional[str] | Omit = omit, google_drive_client_id: Optional[str] | Omit = omit, @@ -184,6 +187,7 @@ async def update( "/v3/settings", body=await async_maybe_transform( { + "chunk_size": chunk_size, "exclude_items": exclude_items, "filter_prompt": filter_prompt, "google_drive_client_id": google_drive_client_id, diff --git a/src/supermemory/types/setting_get_response.py b/src/supermemory/types/setting_get_response.py index 3b0c466a..ef447bbc 100644 --- a/src/supermemory/types/setting_get_response.py +++ b/src/supermemory/types/setting_get_response.py @@ -10,6 +10,8 @@ class SettingGetResponse(BaseModel): + chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None) + exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo( alias="excludeItems", default=None ) diff --git a/src/supermemory/types/setting_update_params.py b/src/supermemory/types/setting_update_params.py index 4bfbf1e7..6a252277 100644 --- a/src/supermemory/types/setting_update_params.py +++ b/src/supermemory/types/setting_update_params.py @@ -11,6 +11,8 @@ class SettingUpdateParams(TypedDict, total=False): + chunk_size: Annotated[Optional[int], PropertyInfo(alias="chunkSize")] + exclude_items: Annotated[ Union[str, float, bool, Dict[str, object], Iterable[object], None], PropertyInfo(alias="excludeItems") ] diff --git a/src/supermemory/types/setting_update_response.py b/src/supermemory/types/setting_update_response.py index 8b4bdb48..b2f70791 100644 --- a/src/supermemory/types/setting_update_response.py +++ b/src/supermemory/types/setting_update_response.py @@ -10,6 +10,8 @@ class Updated(BaseModel): + chunk_size: Optional[int] = FieldInfo(alias="chunkSize", default=None) + exclude_items: Union[str, float, bool, Dict[str, object], List[object], None] = FieldInfo( alias="excludeItems", default=None ) diff --git a/tests/api_resources/test_settings.py b/tests/api_resources/test_settings.py index 98e73268..3b9f98e9 100644 --- a/tests/api_resources/test_settings.py +++ b/tests/api_resources/test_settings.py @@ -27,6 +27,7 @@ def test_method_update(self, client: Supermemory) -> None: @parametrize def test_method_update_with_all_params(self, client: Supermemory) -> None: setting = client.settings.update( + chunk_size=-2147483648, exclude_items="string", filter_prompt="filterPrompt", google_drive_client_id="googleDriveClientId", @@ -109,6 +110,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None: setting = await async_client.settings.update( + chunk_size=-2147483648, exclude_items="string", filter_prompt="filterPrompt", google_drive_client_id="googleDriveClientId",