2020from ..types .token import Token
2121from .._base_client import make_request_options
2222from ..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 )
0 commit comments