From 074526384ea43d5323feeb2101054e0515002169 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 22:07:11 +0000 Subject: [PATCH 1/3] feat(api): api update --- .stats.yml | 4 +-- src/supermemory/resources/memories.py | 32 ++++++++++++++++--- src/supermemory/types/memory_add_params.py | 11 +++++-- src/supermemory/types/memory_update_params.py | 11 +++++-- tests/api_resources/test_memories.py | 4 +++ 5 files changed, 52 insertions(+), 10 deletions(-) diff --git a/.stats.yml b/.stats.yml index a13515f2..9600e85a 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-3d4dd8ac24dba1f3cd5632eedbabafdac2ca7a2c4b99376d0896437497992861.yml -openapi_spec_hash: 2ae20c06f18b7be58fabcfd6db1b5acf +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-3d433760b7b5d907ec2118e8995a76a1713fe4e51665dc0890327a20cdaf4253.yml +openapi_spec_hash: 1871060463ca844ba70f8fc3eddc32ad config_hash: 9b9291a6c872b063900a46386729ba3c diff --git a/src/supermemory/resources/memories.py b/src/supermemory/resources/memories.py index 1cf1c08e..5fdec015 100644 --- a/src/supermemory/resources/memories.py +++ b/src/supermemory/resources/memories.py @@ -52,6 +52,7 @@ def update( self, id: str, *, + container_tag: str | NotGiven = NOT_GIVEN, container_tags: List[str] | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, custom_id: str | NotGiven = NOT_GIVEN, @@ -67,9 +68,13 @@ def update( Update a memory with any content type (text, url, file, etc.) and metadata Args: - container_tags: Optional tags this memory should be containerized by. This can be an ID for your + container_tag: Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. + container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + content: The content to extract and process into a memory. This can be a URL to a website, a PDF, an image, or a video. @@ -102,6 +107,7 @@ def update( f"/v3/memories/{id}", body=maybe_transform( { + "container_tag": container_tag, "container_tags": container_tags, "content": content, "custom_id": custom_id, @@ -212,6 +218,7 @@ def delete( def add( self, *, + container_tag: str | NotGiven = NOT_GIVEN, container_tags: List[str] | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, custom_id: str | NotGiven = NOT_GIVEN, @@ -227,9 +234,13 @@ def add( Add a memory with any content type (text, url, file, etc.) and metadata Args: - container_tags: Optional tags this memory should be containerized by. This can be an ID for your + container_tag: Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. + container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + content: The content to extract and process into a memory. This can be a URL to a website, a PDF, an image, or a video. @@ -260,6 +271,7 @@ def add( "/v3/memories", body=maybe_transform( { + "container_tag": container_tag, "container_tags": container_tags, "content": content, "custom_id": custom_id, @@ -376,6 +388,7 @@ async def update( self, id: str, *, + container_tag: str | NotGiven = NOT_GIVEN, container_tags: List[str] | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, custom_id: str | NotGiven = NOT_GIVEN, @@ -391,9 +404,13 @@ async def update( Update a memory with any content type (text, url, file, etc.) and metadata Args: - container_tags: Optional tags this memory should be containerized by. This can be an ID for your + container_tag: Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. + container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + content: The content to extract and process into a memory. This can be a URL to a website, a PDF, an image, or a video. @@ -426,6 +443,7 @@ async def update( f"/v3/memories/{id}", body=await async_maybe_transform( { + "container_tag": container_tag, "container_tags": container_tags, "content": content, "custom_id": custom_id, @@ -536,6 +554,7 @@ async def delete( async def add( self, *, + container_tag: str | NotGiven = NOT_GIVEN, container_tags: List[str] | NotGiven = NOT_GIVEN, content: str | NotGiven = NOT_GIVEN, custom_id: str | NotGiven = NOT_GIVEN, @@ -551,9 +570,13 @@ async def add( Add a memory with any content type (text, url, file, etc.) and metadata Args: - container_tags: Optional tags this memory should be containerized by. This can be an ID for your + container_tag: Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. + container_tags: (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + content: The content to extract and process into a memory. This can be a URL to a website, a PDF, an image, or a video. @@ -584,6 +607,7 @@ async def add( "/v3/memories", body=await async_maybe_transform( { + "container_tag": container_tag, "container_tags": container_tags, "content": content, "custom_id": custom_id, diff --git a/src/supermemory/types/memory_add_params.py b/src/supermemory/types/memory_add_params.py index d4837214..c822f78e 100644 --- a/src/supermemory/types/memory_add_params.py +++ b/src/supermemory/types/memory_add_params.py @@ -11,13 +11,20 @@ class MemoryAddParams(TypedDict, total=False): - container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")] - """Optional tags this memory should be containerized by. + container_tag: Annotated[str, PropertyInfo(alias="containerTag")] + """Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. """ + container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")] + """ + (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + """ + content: str """The content to extract and process into a memory. diff --git a/src/supermemory/types/memory_update_params.py b/src/supermemory/types/memory_update_params.py index 9bd1e71c..0faf4478 100644 --- a/src/supermemory/types/memory_update_params.py +++ b/src/supermemory/types/memory_update_params.py @@ -11,13 +11,20 @@ class MemoryUpdateParams(TypedDict, total=False): - container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")] - """Optional tags this memory should be containerized by. + container_tag: Annotated[str, PropertyInfo(alias="containerTag")] + """Optional tag this memory should be containerized by. This can be an ID for your user, a project ID, or any other identifier you wish to use to group memories. """ + container_tags: Annotated[List[str], PropertyInfo(alias="containerTags")] + """ + (DEPRECATED: Use containerTag instead) Optional tags this memory should be + containerized by. This can be an ID for your user, a project ID, or any other + identifier you wish to use to group memories. + """ + content: str """The content to extract and process into a memory. diff --git a/tests/api_resources/test_memories.py b/tests/api_resources/test_memories.py index f3d88303..2aec1fb9 100644 --- a/tests/api_resources/test_memories.py +++ b/tests/api_resources/test_memories.py @@ -36,6 +36,7 @@ def test_method_update(self, client: Supermemory) -> None: def test_method_update_with_all_params(self, client: Supermemory) -> None: memory = client.memories.update( id="id", + container_tag="user_123", container_tags=["user_123", "project_123"], content="This is a detailed article about machine learning concepts...", custom_id="mem_abc123", @@ -177,6 +178,7 @@ def test_method_add(self, client: Supermemory) -> None: @parametrize def test_method_add_with_all_params(self, client: Supermemory) -> None: memory = client.memories.add( + container_tag="user_123", container_tags=["user_123", "project_123"], content="This is a detailed article about machine learning concepts...", custom_id="mem_abc123", @@ -317,6 +319,7 @@ async def test_method_update(self, async_client: AsyncSupermemory) -> None: async def test_method_update_with_all_params(self, async_client: AsyncSupermemory) -> None: memory = await async_client.memories.update( id="id", + container_tag="user_123", container_tags=["user_123", "project_123"], content="This is a detailed article about machine learning concepts...", custom_id="mem_abc123", @@ -458,6 +461,7 @@ async def test_method_add(self, async_client: AsyncSupermemory) -> None: @parametrize async def test_method_add_with_all_params(self, async_client: AsyncSupermemory) -> None: memory = await async_client.memories.add( + container_tag="user_123", container_tags=["user_123", "project_123"], content="This is a detailed article about machine learning concepts...", custom_id="mem_abc123", From 7a8cbc20e371605c69beae27b379dffeb1a4c27c Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 22:14:23 +0000 Subject: [PATCH 2/3] codegen metadata --- .stats.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.stats.yml b/.stats.yml index 9600e85a..2b3c8908 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-3d433760b7b5d907ec2118e8995a76a1713fe4e51665dc0890327a20cdaf4253.yml -openapi_spec_hash: 1871060463ca844ba70f8fc3eddc32ad +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/supermemory--inc%2Fsupermemory-new-bc38a818a02d2611e24859c4fd59ce98a24499af22ac9d16fc93a3d1e0b3c94f.yml +openapi_spec_hash: e25323c2c0f792f2fafc664748774e46 config_hash: 9b9291a6c872b063900a46386729ba3c From c05b561196cb0495c8640c80ee8447fba24564ca Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Sun, 24 Aug 2025 22:14:40 +0000 Subject: [PATCH 3/3] release: 3.0.0-alpha.28 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/supermemory/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 03086f9d..093a7e5a 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "3.0.0-alpha.27" + ".": "3.0.0-alpha.28" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a1a58c08..7e3d4280 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 3.0.0-alpha.28 (2025-08-24) + +Full Changelog: [v3.0.0-alpha.27...v3.0.0-alpha.28](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.27...v3.0.0-alpha.28) + +### Features + +* **api:** api update ([0745263](https://github.com/supermemoryai/python-sdk/commit/074526384ea43d5323feeb2101054e0515002169)) + ## 3.0.0-alpha.27 (2025-08-24) Full Changelog: [v3.0.0-alpha.26...v3.0.0-alpha.27](https://github.com/supermemoryai/python-sdk/compare/v3.0.0-alpha.26...v3.0.0-alpha.27) diff --git a/pyproject.toml b/pyproject.toml index 134bc5d9..a5f32103 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "supermemory" -version = "3.0.0-alpha.27" +version = "3.0.0-alpha.28" 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 32bad122..06fa8e8c 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.0.0-alpha.27" # x-release-please-version +__version__ = "3.0.0-alpha.28" # x-release-please-version