Skip to content

Commit 62fc6d0

Browse files
authored
Merge pull request #96 from hyperspell/release-please--branches--main--changes--next
release: 0.22.0
2 parents 3cfe298 + 9281091 commit 62fc6d0

File tree

11 files changed

+142
-10
lines changed

11 files changed

+142
-10
lines changed

.release-please-manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
{
2-
".": "0.21.0"
2+
".": "0.22.0"
33
}

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 13
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-14d23949fc9a5cf375c542a7a2bda08334079fab55f43b80a3d94ede34244da3.yml
3-
openapi_spec_hash: b80c4f0e0311ff9125dfe27a5a405395
4-
config_hash: bf6196b98ec72829d458bc45ccd5a5f9
1+
configured_endpoints: 14
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/hyperspell%2Fhyperspell-ec1420af27ac837f49a977cb95726af45a5ee5b5cd367e54b8a611de47ee3c84.yml
3+
openapi_spec_hash: 0fc5dd84801ee8f46a9b5d0941bdefda
4+
config_hash: 985dd1bd217ba3c5c5b614da08d43e5f

CHANGELOG.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,21 @@
11
# Changelog
22

3+
## 0.22.0 (2025-08-06)
4+
5+
Full Changelog: [v0.21.0...v0.22.0](https://github.com/hyperspell/python-sdk/compare/v0.21.0...v0.22.0)
6+
7+
### Features
8+
9+
* **api:** api update ([853645f](https://github.com/hyperspell/python-sdk/commit/853645f31184d6be577afe6ef7e872bca5198b3c))
10+
* **api:** api update ([e6c05cd](https://github.com/hyperspell/python-sdk/commit/e6c05cd496db6e9df09da720bd74e6c2f0f853b7))
11+
* **api:** update via SDK Studio ([5d3bc9c](https://github.com/hyperspell/python-sdk/commit/5d3bc9c68523ff572bb27e8d77e24a2819f6e6be))
12+
* **api:** update via SDK Studio ([37def01](https://github.com/hyperspell/python-sdk/commit/37def01e5290efee8228c0e81f6ef2c9e7fb2b0b))
13+
14+
15+
### Chores
16+
17+
* **internal:** fix ruff target version ([9454556](https://github.com/hyperspell/python-sdk/commit/945455659b4896b89be368476adeb8c062e8d520))
18+
319
## 0.21.0 (2025-08-05)
420

521
Full Changelog: [v0.20.0...v0.21.0](https://github.com/hyperspell/python-sdk/compare/v0.20.0...v0.21.0)

api.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,11 @@ Methods:
7575
Types:
7676

7777
```python
78-
from hyperspell.types import Token, AuthMeResponse
78+
from hyperspell.types import Token, AuthDeleteUserResponse, AuthMeResponse
7979
```
8080

8181
Methods:
8282

83+
- <code title="delete /auth/delete">client.auth.<a href="./src/hyperspell/resources/auth.py">delete_user</a>() -> <a href="./src/hyperspell/types/auth_delete_user_response.py">AuthDeleteUserResponse</a></code>
8384
- <code title="get /auth/me">client.auth.<a href="./src/hyperspell/resources/auth.py">me</a>() -> <a href="./src/hyperspell/types/auth_me_response.py">AuthMeResponse</a></code>
8485
- <code title="post /auth/user_token">client.auth.<a href="./src/hyperspell/resources/auth.py">user_token</a>(\*\*<a href="src/hyperspell/types/auth_user_token_params.py">params</a>) -> <a href="./src/hyperspell/types/token.py">Token</a></code>

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "hyperspell"
3-
version = "0.21.0"
3+
version = "0.22.0"
44
description = "The official Python library for the hyperspell API"
55
dynamic = ["readme"]
66
license = "MIT"
@@ -159,7 +159,7 @@ reportPrivateUsage = false
159159
[tool.ruff]
160160
line-length = 120
161161
output-format = "grouped"
162-
target-version = "py37"
162+
target-version = "py38"
163163

164164
[tool.ruff.format]
165165
docstring-code-format = true

src/hyperspell/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
22

33
__title__ = "hyperspell"
4-
__version__ = "0.21.0" # x-release-please-version
4+
__version__ = "0.22.0" # x-release-please-version

src/hyperspell/resources/auth.py

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from ..types.token import Token
2121
from .._base_client import make_request_options
2222
from ..types.auth_me_response import AuthMeResponse
23+
from ..types.auth_delete_user_response import AuthDeleteUserResponse
2324

2425
__all__ = ["AuthResource", "AsyncAuthResource"]
2526

@@ -44,6 +45,25 @@ def with_streaming_response(self) -> AuthResourceWithStreamingResponse:
4445
"""
4546
return AuthResourceWithStreamingResponse(self)
4647

48+
def delete_user(
49+
self,
50+
*,
51+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
52+
# The extra values given here take precedence over values defined on the client or passed to this method.
53+
extra_headers: Headers | None = None,
54+
extra_query: Query | None = None,
55+
extra_body: Body | None = None,
56+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
57+
) -> AuthDeleteUserResponse:
58+
"""Endpoint to delete user."""
59+
return self._delete(
60+
"/auth/delete",
61+
options=make_request_options(
62+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
63+
),
64+
cast_to=AuthDeleteUserResponse,
65+
)
66+
4767
def me(
4868
self,
4969
*,
@@ -127,6 +147,25 @@ def with_streaming_response(self) -> AsyncAuthResourceWithStreamingResponse:
127147
"""
128148
return AsyncAuthResourceWithStreamingResponse(self)
129149

150+
async def delete_user(
151+
self,
152+
*,
153+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
154+
# The extra values given here take precedence over values defined on the client or passed to this method.
155+
extra_headers: Headers | None = None,
156+
extra_query: Query | None = None,
157+
extra_body: Body | None = None,
158+
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
159+
) -> AuthDeleteUserResponse:
160+
"""Endpoint to delete user."""
161+
return await self._delete(
162+
"/auth/delete",
163+
options=make_request_options(
164+
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
165+
),
166+
cast_to=AuthDeleteUserResponse,
167+
)
168+
130169
async def me(
131170
self,
132171
*,
@@ -194,6 +233,9 @@ class AuthResourceWithRawResponse:
194233
def __init__(self, auth: AuthResource) -> None:
195234
self._auth = auth
196235

236+
self.delete_user = to_raw_response_wrapper(
237+
auth.delete_user,
238+
)
197239
self.me = to_raw_response_wrapper(
198240
auth.me,
199241
)
@@ -206,6 +248,9 @@ class AsyncAuthResourceWithRawResponse:
206248
def __init__(self, auth: AsyncAuthResource) -> None:
207249
self._auth = auth
208250

251+
self.delete_user = async_to_raw_response_wrapper(
252+
auth.delete_user,
253+
)
209254
self.me = async_to_raw_response_wrapper(
210255
auth.me,
211256
)
@@ -218,6 +263,9 @@ class AuthResourceWithStreamingResponse:
218263
def __init__(self, auth: AuthResource) -> None:
219264
self._auth = auth
220265

266+
self.delete_user = to_streamed_response_wrapper(
267+
auth.delete_user,
268+
)
221269
self.me = to_streamed_response_wrapper(
222270
auth.me,
223271
)
@@ -230,6 +278,9 @@ class AsyncAuthResourceWithStreamingResponse:
230278
def __init__(self, auth: AsyncAuthResource) -> None:
231279
self._auth = auth
232280

281+
self.delete_user = async_to_streamed_response_wrapper(
282+
auth.delete_user,
283+
)
233284
self.me = async_to_streamed_response_wrapper(
234285
auth.me,
235286
)

src/hyperspell/types/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,5 @@
1616
from .memory_delete_response import MemoryDeleteResponse as MemoryDeleteResponse
1717
from .memory_search_response import MemorySearchResponse as MemorySearchResponse
1818
from .memory_status_response import MemoryStatusResponse as MemoryStatusResponse
19+
from .auth_delete_user_response import AuthDeleteUserResponse as AuthDeleteUserResponse
1920
from .integration_revoke_response import IntegrationRevokeResponse as IntegrationRevokeResponse
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from .._models import BaseModel
4+
5+
__all__ = ["AuthDeleteUserResponse"]
6+
7+
8+
class AuthDeleteUserResponse(BaseModel):
9+
message: str
10+
11+
success: bool

src/hyperspell/types/memory.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,3 +96,5 @@ class Memory(BaseModel):
9696

9797
score: Optional[float] = None
9898
"""The relevance of the resource to the query"""
99+
100+
title: Optional[str] = None

0 commit comments

Comments
 (0)