Skip to content

Commit 5d55729

Browse files
release: 0.10.0 (#11)
Automated Release PR --- ## 0.10.0 (2025-09-17) Full Changelog: [v0.9.1...v0.10.0](v0.9.1...v0.10.0) ### Features * update user profile api ([aa05a68](aa05a68)) --- This pull request is managed by Stainless's [GitHub App](https://github.com/apps/stainless-app). The [semver version number](https://semver.org/#semantic-versioning-specification-semver) is based on included [commit messages](https://www.conventionalcommits.org/en/v1.0.0/). Alternatively, you can manually set the version number in the title of this pull request. For a better experience, it is recommended to use either rebase-merge or squash-merge when merging this pull request. 🔗 Stainless [website](https://www.stainlessapi.com) 📚 Read the [docs](https://app.stainlessapi.com/docs) 🙋 [Reach out](mailto:[email protected]) for help or questions --------- Co-authored-by: stainless-app[bot] <142633134+stainless-app[bot]@users.noreply.github.com>
1 parent a9d332a commit 5d55729

File tree

10 files changed

+45
-18
lines changed

10 files changed

+45
-18
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.9.1"
2+
".": "0.10.0"
33
}

.stats.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
configured_endpoints: 42
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/inty%2Finty-05767e62959c326f3eab2c646f94c83a82c6021b0cb33cc8b0c38bf04685f5d1.yml
3-
openapi_spec_hash: df2248cd40e8f9f8bd6c8598281afc2f
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/inty%2Finty-916715c69c041edbeb9db261b5d2b1868533ded289c610da7f59269e77248862.yml
3+
openapi_spec_hash: baa8670b8a4d191d88bb47af28152f7f
44
config_hash: fde7781016bf2ab663db1ce7bae8100f

CHANGELOG.md

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

3+
## 0.10.0 (2025-09-17)
4+
5+
Full Changelog: [v0.9.1...v0.10.0](https://github.com/NascentCore/inty-python/compare/v0.9.1...v0.10.0)
6+
7+
### Features
8+
9+
* update user profile api ([aa05a68](https://github.com/NascentCore/inty-python/commit/aa05a689dc429f31634c966ce22ed16cf91ff849))
10+
311
## 0.9.1 (2025-09-17)
412

513
Full Changelog: [v0.9.0...v0.9.1](https://github.com/NascentCore/inty-python/compare/v0.9.0...v0.9.1)

api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,12 +54,12 @@ Methods:
5454
Types:
5555

5656
```python
57-
from inty.types.api.v1.users import Gender, User
57+
from inty.types.api.v1.users import Gender, User, ProfileRetrieveResponse
5858
```
5959

6060
Methods:
6161

62-
- <code title="get /api/v1/users/profile">client.api.v1.users.profile.<a href="./src/inty/resources/api/v1/users/profile.py">retrieve</a>() -> <a href="./src/inty/types/api/v1/users/user.py">User</a></code>
62+
- <code title="get /api/v1/users/profile">client.api.v1.users.profile.<a href="./src/inty/resources/api/v1/users/profile.py">retrieve</a>() -> <a href="./src/inty/types/api/v1/users/profile_retrieve_response.py">ProfileRetrieveResponse</a></code>
6363
- <code title="put /api/v1/users/profile">client.api.v1.users.profile.<a href="./src/inty/resources/api/v1/users/profile.py">update</a>(\*\*<a href="src/inty/types/api/v1/users/profile_update_params.py">params</a>) -> <a href="./src/inty/types/api/v1/users/user.py">User</a></code>
6464

6565
#### Device

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "inty"
3-
version = "0.9.1"
3+
version = "0.10.0"
44
description = "The official Python library for the inty API"
55
dynamic = ["readme"]
66
license = "Apache-2.0"

src/inty/_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__ = "inty"
4-
__version__ = "0.9.1" # x-release-please-version
4+
__version__ = "0.10.0" # x-release-please-version

src/inty/resources/api/v1/users/profile.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@
2020
from .....types.api.v1.users import Gender, profile_update_params
2121
from .....types.api.v1.users.user import User
2222
from .....types.api.v1.users.gender import Gender
23+
from .....types.api.v1.users.profile_retrieve_response import ProfileRetrieveResponse
2324

2425
__all__ = ["ProfileResource", "AsyncProfileResource"]
2526

@@ -53,14 +54,14 @@ def retrieve(
5354
extra_query: Query | None = None,
5455
extra_body: Body | None = None,
5556
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
56-
) -> User:
57+
) -> ProfileRetrieveResponse:
5758
"""Get current user profile."""
5859
return self._get(
5960
"/api/v1/users/profile",
6061
options=make_request_options(
6162
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
6263
),
63-
cast_to=User,
64+
cast_to=ProfileRetrieveResponse,
6465
)
6566

6667
def update(
@@ -146,14 +147,14 @@ async def retrieve(
146147
extra_query: Query | None = None,
147148
extra_body: Body | None = None,
148149
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
149-
) -> User:
150+
) -> ProfileRetrieveResponse:
150151
"""Get current user profile."""
151152
return await self._get(
152153
"/api/v1/users/profile",
153154
options=make_request_options(
154155
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
155156
),
156-
cast_to=User,
157+
cast_to=ProfileRetrieveResponse,
157158
)
158159

159160
async def update(

src/inty/types/api/v1/users/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,4 +7,5 @@
77
from .api_response import APIResponse as APIResponse
88
from .profile_update_params import ProfileUpdateParams as ProfileUpdateParams
99
from .device_register_params import DeviceRegisterParams as DeviceRegisterParams
10+
from .profile_retrieve_response import ProfileRetrieveResponse as ProfileRetrieveResponse
1011
from .deletion_check_eligibility_response import DeletionCheckEligibilityResponse as DeletionCheckEligibilityResponse
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2+
3+
from typing import Optional
4+
5+
from .user import User
6+
from ....._models import BaseModel
7+
8+
__all__ = ["ProfileRetrieveResponse"]
9+
10+
11+
class ProfileRetrieveResponse(BaseModel):
12+
code: Optional[int] = None
13+
14+
data: Optional[User] = None
15+
"""返回给客户端的用户信息"""
16+
17+
message: Optional[str] = None

tests/api_resources/api/v1/users/test_profile.py

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
from inty import Inty, AsyncInty
1111
from tests.utils import assert_matches_type
12-
from inty.types.api.v1.users import User
12+
from inty.types.api.v1.users import User, ProfileRetrieveResponse
1313

1414
base_url = os.environ.get("TEST_API_BASE_URL", "http://127.0.0.1:4010")
1515

@@ -21,7 +21,7 @@ class TestProfile:
2121
@parametrize
2222
def test_method_retrieve(self, client: Inty) -> None:
2323
profile = client.api.v1.users.profile.retrieve()
24-
assert_matches_type(User, profile, path=["response"])
24+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
2525

2626
@pytest.mark.skip(reason="Prism tests are disabled")
2727
@parametrize
@@ -31,7 +31,7 @@ def test_raw_response_retrieve(self, client: Inty) -> None:
3131
assert response.is_closed is True
3232
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
3333
profile = response.parse()
34-
assert_matches_type(User, profile, path=["response"])
34+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
3535

3636
@pytest.mark.skip(reason="Prism tests are disabled")
3737
@parametrize
@@ -41,7 +41,7 @@ def test_streaming_response_retrieve(self, client: Inty) -> None:
4141
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
4242

4343
profile = response.parse()
44-
assert_matches_type(User, profile, path=["response"])
44+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
4545

4646
assert cast(Any, response.is_closed) is True
4747

@@ -98,7 +98,7 @@ class TestAsyncProfile:
9898
@parametrize
9999
async def test_method_retrieve(self, async_client: AsyncInty) -> None:
100100
profile = await async_client.api.v1.users.profile.retrieve()
101-
assert_matches_type(User, profile, path=["response"])
101+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
102102

103103
@pytest.mark.skip(reason="Prism tests are disabled")
104104
@parametrize
@@ -108,7 +108,7 @@ async def test_raw_response_retrieve(self, async_client: AsyncInty) -> None:
108108
assert response.is_closed is True
109109
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
110110
profile = await response.parse()
111-
assert_matches_type(User, profile, path=["response"])
111+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
112112

113113
@pytest.mark.skip(reason="Prism tests are disabled")
114114
@parametrize
@@ -118,7 +118,7 @@ async def test_streaming_response_retrieve(self, async_client: AsyncInty) -> Non
118118
assert response.http_request.headers.get("X-Stainless-Lang") == "python"
119119

120120
profile = await response.parse()
121-
assert_matches_type(User, profile, path=["response"])
121+
assert_matches_type(ProfileRetrieveResponse, profile, path=["response"])
122122

123123
assert cast(Any, response.is_closed) is True
124124

0 commit comments

Comments
 (0)