diff --git a/.stats.yml b/.stats.yml index 91dd2a5d..6956f836 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 69 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-f3209b903a708d713a30c384f8c2bcbec38426785f7cca5fb3482966a36b4412.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-ba96a4f49e6eb2c6a60b5a452b7c60a50ab373ad44818fba7921dc842e20e56a.yml diff --git a/src/structify/resources/admin/users.py b/src/structify/resources/admin/users.py index d5c3041b..ac9c9c33 100644 --- a/src/structify/resources/admin/users.py +++ b/src/structify/resources/admin/users.py @@ -76,18 +76,21 @@ def create( """ return self._post( "/admin/users/create", - body=maybe_transform( - { - "credit_count": credit_count, - "email": email, - "feature_flags": feature_flags, - "is_admin": is_admin, - "test": test, - }, - user_create_params.UserCreateParams, - ), options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=maybe_transform( + { + "credit_count": credit_count, + "email": email, + "feature_flags": feature_flags, + "is_admin": is_admin, + "test": test, + }, + user_create_params.UserCreateParams, + ), ), cast_to=TokenResponse, ) @@ -161,18 +164,21 @@ async def create( """ return await self._post( "/admin/users/create", - body=await async_maybe_transform( - { - "credit_count": credit_count, - "email": email, - "feature_flags": feature_flags, - "is_admin": is_admin, - "test": test, - }, - user_create_params.UserCreateParams, - ), options=make_request_options( - extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout + extra_headers=extra_headers, + extra_query=extra_query, + extra_body=extra_body, + timeout=timeout, + query=await async_maybe_transform( + { + "credit_count": credit_count, + "email": email, + "feature_flags": feature_flags, + "is_admin": is_admin, + "test": test, + }, + user_create_params.UserCreateParams, + ), ), cast_to=TokenResponse, )