From ec5f97338107ae64be0e174dda3ec4dda5903918 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 14:32:08 +0000 Subject: [PATCH 1/2] feat(api): api update --- .stats.yml | 4 ++-- README.md | 8 ++++---- src/hyperspell/types/memory_status.py | 3 --- 3 files changed, 6 insertions(+), 9 deletions(-) diff --git a/.stats.yml b/.stats.yml index 70f6684..9f25f61 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,4 +1,4 @@ configured_endpoints: 13 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-e8dc461bfd68745a68eddc289ac15c0c5d222f20e81a5c61b11ee3807a75d839.yml -openapi_spec_hash: 24eece3c79152b96c2cc0f398cf9d6af +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-14d23949fc9a5cf375c542a7a2bda08334079fab55f43b80a3d94ede34244da3.yml +openapi_spec_hash: b80c4f0e0311ff9125dfe27a5a405395 config_hash: bf6196b98ec72829d458bc45ccd5a5f9 diff --git a/README.md b/README.md index 9a5f7b4..41ec77f 100644 --- a/README.md +++ b/README.md @@ -35,7 +35,7 @@ client = Hyperspell( memory_status = client.memories.add( text="text", ) -print(memory_status.id) +print(memory_status.resource_id) ``` While you can provide an `api_key` keyword argument, @@ -61,7 +61,7 @@ async def main() -> None: memory_status = await client.memories.add( text="text", ) - print(memory_status.id) + print(memory_status.resource_id) asyncio.run(main()) @@ -96,7 +96,7 @@ async def main() -> None: memory_status = await client.memories.add( text="text", ) - print(memory_status.id) + print(memory_status.resource_id) asyncio.run(main()) @@ -350,7 +350,7 @@ response = client.memories.with_raw_response.add( print(response.headers.get('X-My-Header')) memory = response.parse() # get the object that `memories.add()` would have returned -print(memory.id) +print(memory.resource_id) ``` These methods return an [`APIResponse`](https://github.com/hyperspell/python-sdk/tree/main/src/hyperspell/_response.py) object. diff --git a/src/hyperspell/types/memory_status.py b/src/hyperspell/types/memory_status.py index 6d061f7..3473d66 100644 --- a/src/hyperspell/types/memory_status.py +++ b/src/hyperspell/types/memory_status.py @@ -8,9 +8,6 @@ class MemoryStatus(BaseModel): - id: int - """Deprecated: refer to documents by source and resource_id instead""" - resource_id: str source: Literal[ From 46ac294081b726d71a6a21ba2794a65c98368c52 Mon Sep 17 00:00:00 2001 From: "stainless-app[bot]" <142633134+stainless-app[bot]@users.noreply.github.com> Date: Tue, 5 Aug 2025 14:32:30 +0000 Subject: [PATCH 2/2] release: 0.21.0 --- .release-please-manifest.json | 2 +- CHANGELOG.md | 8 ++++++++ pyproject.toml | 2 +- src/hyperspell/_version.py | 2 +- 4 files changed, 11 insertions(+), 3 deletions(-) diff --git a/.release-please-manifest.json b/.release-please-manifest.json index 0c2ecec..86b0e83 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.20.0" + ".": "0.21.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index fe1e190..01fe0a4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.21.0 (2025-08-05) + +Full Changelog: [v0.20.0...v0.21.0](https://github.com/hyperspell/python-sdk/compare/v0.20.0...v0.21.0) + +### Features + +* **api:** api update ([ec5f973](https://github.com/hyperspell/python-sdk/commit/ec5f97338107ae64be0e174dda3ec4dda5903918)) + ## 0.20.0 (2025-08-01) Full Changelog: [v0.19.0...v0.20.0](https://github.com/hyperspell/python-sdk/compare/v0.19.0...v0.20.0) diff --git a/pyproject.toml b/pyproject.toml index 3a9b3f0..540ac08 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "hyperspell" -version = "0.20.0" +version = "0.21.0" description = "The official Python library for the hyperspell API" dynamic = ["readme"] license = "MIT" diff --git a/src/hyperspell/_version.py b/src/hyperspell/_version.py index b381fc8..c436a1d 100644 --- a/src/hyperspell/_version.py +++ b/src/hyperspell/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "hyperspell" -__version__ = "0.20.0" # x-release-please-version +__version__ = "0.21.0" # x-release-please-version