2121from .....types .api .v1 .users .gender import Gender
2222from .....types .api .v1 .users .profile_me_response import ProfileMeResponse
2323from .....types .api .v1 .users .profile_update_response import ProfileUpdateResponse
24- from .....types .api .v1 .users .profile_retrieve_response import ProfileRetrieveResponse
2524
2625__all__ = ["ProfileResource" , "AsyncProfileResource" ]
2726
@@ -46,25 +45,6 @@ def with_streaming_response(self) -> ProfileResourceWithStreamingResponse:
4645 """
4746 return ProfileResourceWithStreamingResponse (self )
4847
49- def retrieve (
50- self ,
51- * ,
52- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
53- # The extra values given here take precedence over values defined on the client or passed to this method.
54- extra_headers : Headers | None = None ,
55- extra_query : Query | None = None ,
56- extra_body : Body | None = None ,
57- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
58- ) -> ProfileRetrieveResponse :
59- """Get current user profile."""
60- return self ._get (
61- "/api/v1/users/profile" ,
62- options = make_request_options (
63- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
64- ),
65- cast_to = ProfileRetrieveResponse ,
66- )
67-
6848 def update (
6949 self ,
7050 * ,
@@ -85,7 +65,7 @@ def update(
8565 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
8666 ) -> ProfileUpdateResponse :
8767 """
88- Update current user profile.
68+ Update current user profile, support avatar update
8969
9070 Args:
9171 gender: 性别
@@ -160,25 +140,6 @@ def with_streaming_response(self) -> AsyncProfileResourceWithStreamingResponse:
160140 """
161141 return AsyncProfileResourceWithStreamingResponse (self )
162142
163- async def retrieve (
164- self ,
165- * ,
166- # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
167- # The extra values given here take precedence over values defined on the client or passed to this method.
168- extra_headers : Headers | None = None ,
169- extra_query : Query | None = None ,
170- extra_body : Body | None = None ,
171- timeout : float | httpx .Timeout | None | NotGiven = not_given ,
172- ) -> ProfileRetrieveResponse :
173- """Get current user profile."""
174- return await self ._get (
175- "/api/v1/users/profile" ,
176- options = make_request_options (
177- extra_headers = extra_headers , extra_query = extra_query , extra_body = extra_body , timeout = timeout
178- ),
179- cast_to = ProfileRetrieveResponse ,
180- )
181-
182143 async def update (
183144 self ,
184145 * ,
@@ -199,7 +160,7 @@ async def update(
199160 timeout : float | httpx .Timeout | None | NotGiven = not_given ,
200161 ) -> ProfileUpdateResponse :
201162 """
202- Update current user profile.
163+ Update current user profile, support avatar update
203164
204165 Args:
205166 gender: 性别
@@ -258,9 +219,6 @@ class ProfileResourceWithRawResponse:
258219 def __init__ (self , profile : ProfileResource ) -> None :
259220 self ._profile = profile
260221
261- self .retrieve = to_raw_response_wrapper (
262- profile .retrieve ,
263- )
264222 self .update = to_raw_response_wrapper (
265223 profile .update ,
266224 )
@@ -273,9 +231,6 @@ class AsyncProfileResourceWithRawResponse:
273231 def __init__ (self , profile : AsyncProfileResource ) -> None :
274232 self ._profile = profile
275233
276- self .retrieve = async_to_raw_response_wrapper (
277- profile .retrieve ,
278- )
279234 self .update = async_to_raw_response_wrapper (
280235 profile .update ,
281236 )
@@ -288,9 +243,6 @@ class ProfileResourceWithStreamingResponse:
288243 def __init__ (self , profile : ProfileResource ) -> None :
289244 self ._profile = profile
290245
291- self .retrieve = to_streamed_response_wrapper (
292- profile .retrieve ,
293- )
294246 self .update = to_streamed_response_wrapper (
295247 profile .update ,
296248 )
@@ -303,9 +255,6 @@ class AsyncProfileResourceWithStreamingResponse:
303255 def __init__ (self , profile : AsyncProfileResource ) -> None :
304256 self ._profile = profile
305257
306- self .retrieve = async_to_streamed_response_wrapper (
307- profile .retrieve ,
308- )
309258 self .update = async_to_streamed_response_wrapper (
310259 profile .update ,
311260 )
0 commit comments