Skip to content
This repository was archived by the owner on Nov 2, 2025. It is now read-only.

Commit a3862d6

Browse files
feat(api): manual updates
1 parent 829740f commit a3862d6

File tree

14 files changed

+34
-387
lines changed

14 files changed

+34
-387
lines changed

.stats.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
configured_endpoints: 44
2-
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/inty%2Finty-795555ec3f57171d5ad528ffee370f5d345580197b3141547d604d297109e164.yml
3-
openapi_spec_hash: a82ba2bde7cf360c8b8fee06e421be02
4-
config_hash: 91f08aa33957c420c9a7eabc6951d3ff
1+
configured_endpoints: 43
2+
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/inty%2Finty-89127d31b5fad61c910a682f7f88d7252ec3fd1d202ec1d89d377061d543a600.yml
3+
openapi_spec_hash: fd18c276ce08b3119804fd5f2d27bfcc
4+
config_hash: b89b885fbfc8304f6687a90b818606b2

api.md

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -62,18 +62,6 @@ Methods:
6262
- <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/profile_update_response.py">ProfileUpdateResponse</a></code>
6363
- <code title="get /api/v1/users/me">client.api.v1.users.profile.<a href="./src/inty/resources/api/v1/users/profile.py">me</a>() -> <a href="./src/inty/types/api/v1/users/profile_me_response.py">ProfileMeResponse</a></code>
6464

65-
#### Device
66-
67-
Types:
68-
69-
```python
70-
from inty.types.api.v1.users import APIResponse
71-
```
72-
73-
Methods:
74-
75-
- <code title="post /api/v1/users/device/register">client.api.v1.users.device.<a href="./src/inty/resources/api/v1/users/device.py">register</a>(\*\*<a href="src/inty/types/api/v1/users/device_register_params.py">params</a>) -> <a href="./src/inty/types/api/v1/users/api_response.py">APIResponse</a></code>
76-
7765
#### Deletion
7866

7967
Types:
@@ -91,12 +79,12 @@ Methods:
9179
Types:
9280

9381
```python
94-
from inty.types.api.v1 import APIResponseDict
82+
from inty.types.api.v1 import APIResponseDict, ReportCreateResponse
9583
```
9684

9785
Methods:
9886

99-
- <code title="post /api/v1/report/">client.api.v1.report.<a href="./src/inty/resources/api/v1/report.py">create</a>(\*\*<a href="src/inty/types/api/v1/report_create_params.py">params</a>) -> <a href="./src/inty/types/api/v1/users/api_response.py">APIResponse</a></code>
87+
- <code title="post /api/v1/report/">client.api.v1.report.<a href="./src/inty/resources/api/v1/report.py">create</a>(\*\*<a href="src/inty/types/api/v1/report_create_params.py">params</a>) -> <a href="./src/inty/types/api/v1/report_create_response.py">ReportCreateResponse</a></code>
10088

10189
### AI
10290

src/inty/resources/api/v1/report.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
)
2020
from ...._base_client import make_request_options
2121
from ....types.api.v1 import report_create_params
22-
from ....types.api.v1.users.api_response import APIResponse
22+
from ....types.api.v1.report_create_response import ReportCreateResponse
2323

2424
__all__ = ["ReportResource", "AsyncReportResource"]
2525

@@ -59,7 +59,7 @@ def create(
5959
extra_query: Query | None = None,
6060
extra_body: Body | None = None,
6161
timeout: float | httpx.Timeout | None | NotGiven = not_given,
62-
) -> APIResponse:
62+
) -> ReportCreateResponse:
6363
"""
6464
Submit report
6565
@@ -88,7 +88,7 @@ def create(
8888
options=make_request_options(
8989
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
9090
),
91-
cast_to=APIResponse,
91+
cast_to=ReportCreateResponse,
9292
)
9393

9494

@@ -127,7 +127,7 @@ async def create(
127127
extra_query: Query | None = None,
128128
extra_body: Body | None = None,
129129
timeout: float | httpx.Timeout | None | NotGiven = not_given,
130-
) -> APIResponse:
130+
) -> ReportCreateResponse:
131131
"""
132132
Submit report
133133
@@ -156,7 +156,7 @@ async def create(
156156
options=make_request_options(
157157
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
158158
),
159-
cast_to=APIResponse,
159+
cast_to=ReportCreateResponse,
160160
)
161161

162162

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

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,14 +8,6 @@
88
UsersResourceWithStreamingResponse,
99
AsyncUsersResourceWithStreamingResponse,
1010
)
11-
from .device import (
12-
DeviceResource,
13-
AsyncDeviceResource,
14-
DeviceResourceWithRawResponse,
15-
AsyncDeviceResourceWithRawResponse,
16-
DeviceResourceWithStreamingResponse,
17-
AsyncDeviceResourceWithStreamingResponse,
18-
)
1911
from .profile import (
2012
ProfileResource,
2113
AsyncProfileResource,
@@ -40,12 +32,6 @@
4032
"AsyncProfileResourceWithRawResponse",
4133
"ProfileResourceWithStreamingResponse",
4234
"AsyncProfileResourceWithStreamingResponse",
43-
"DeviceResource",
44-
"AsyncDeviceResource",
45-
"DeviceResourceWithRawResponse",
46-
"AsyncDeviceResourceWithRawResponse",
47-
"DeviceResourceWithStreamingResponse",
48-
"AsyncDeviceResourceWithStreamingResponse",
4935
"DeletionResource",
5036
"AsyncDeletionResource",
5137
"DeletionResourceWithRawResponse",

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

Lines changed: 0 additions & 179 deletions
This file was deleted.

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

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,6 @@
66

77
import httpx
88

9-
from .device import (
10-
DeviceResource,
11-
AsyncDeviceResource,
12-
DeviceResourceWithRawResponse,
13-
AsyncDeviceResourceWithRawResponse,
14-
DeviceResourceWithStreamingResponse,
15-
AsyncDeviceResourceWithStreamingResponse,
16-
)
179
from .profile import (
1810
ProfileResource,
1911
AsyncProfileResource,
@@ -52,10 +44,6 @@ class UsersResource(SyncAPIResource):
5244
def profile(self) -> ProfileResource:
5345
return ProfileResource(self._client)
5446

55-
@cached_property
56-
def device(self) -> DeviceResource:
57-
return DeviceResource(self._client)
58-
5947
@cached_property
6048
def deletion(self) -> DeletionResource:
6149
return DeletionResource(self._client)
@@ -126,10 +114,6 @@ class AsyncUsersResource(AsyncAPIResource):
126114
def profile(self) -> AsyncProfileResource:
127115
return AsyncProfileResource(self._client)
128116

129-
@cached_property
130-
def device(self) -> AsyncDeviceResource:
131-
return AsyncDeviceResource(self._client)
132-
133117
@cached_property
134118
def deletion(self) -> AsyncDeletionResource:
135119
return AsyncDeletionResource(self._client)
@@ -207,10 +191,6 @@ def __init__(self, users: UsersResource) -> None:
207191
def profile(self) -> ProfileResourceWithRawResponse:
208192
return ProfileResourceWithRawResponse(self._users.profile)
209193

210-
@cached_property
211-
def device(self) -> DeviceResourceWithRawResponse:
212-
return DeviceResourceWithRawResponse(self._users.device)
213-
214194
@cached_property
215195
def deletion(self) -> DeletionResourceWithRawResponse:
216196
return DeletionResourceWithRawResponse(self._users.deletion)
@@ -228,10 +208,6 @@ def __init__(self, users: AsyncUsersResource) -> None:
228208
def profile(self) -> AsyncProfileResourceWithRawResponse:
229209
return AsyncProfileResourceWithRawResponse(self._users.profile)
230210

231-
@cached_property
232-
def device(self) -> AsyncDeviceResourceWithRawResponse:
233-
return AsyncDeviceResourceWithRawResponse(self._users.device)
234-
235211
@cached_property
236212
def deletion(self) -> AsyncDeletionResourceWithRawResponse:
237213
return AsyncDeletionResourceWithRawResponse(self._users.deletion)
@@ -249,10 +225,6 @@ def __init__(self, users: UsersResource) -> None:
249225
def profile(self) -> ProfileResourceWithStreamingResponse:
250226
return ProfileResourceWithStreamingResponse(self._users.profile)
251227

252-
@cached_property
253-
def device(self) -> DeviceResourceWithStreamingResponse:
254-
return DeviceResourceWithStreamingResponse(self._users.device)
255-
256228
@cached_property
257229
def deletion(self) -> DeletionResourceWithStreamingResponse:
258230
return DeletionResourceWithStreamingResponse(self._users.deletion)
@@ -270,10 +242,6 @@ def __init__(self, users: AsyncUsersResource) -> None:
270242
def profile(self) -> AsyncProfileResourceWithStreamingResponse:
271243
return AsyncProfileResourceWithStreamingResponse(self._users.profile)
272244

273-
@cached_property
274-
def device(self) -> AsyncDeviceResourceWithStreamingResponse:
275-
return AsyncDeviceResourceWithStreamingResponse(self._users.device)
276-
277245
@cached_property
278246
def deletion(self) -> AsyncDeletionResourceWithStreamingResponse:
279247
return AsyncDeletionResourceWithStreamingResponse(self._users.deletion)

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
from .chat_list_response import ChatListResponse as ChatListResponse
1212
from .report_create_params import ReportCreateParams as ReportCreateParams
1313
from .setting_update_params import SettingUpdateParams as SettingUpdateParams
14+
from .report_create_response import ReportCreateResponse as ReportCreateResponse
1415
from .version_check_response import VersionCheckResponse as VersionCheckResponse
1516
from .auth_create_guest_params import AuthCreateGuestParams as AuthCreateGuestParams
1617
from .auth_create_guest_response import AuthCreateGuestResponse as AuthCreateGuestResponse

0 commit comments

Comments
 (0)