Skip to content

Commit

Permalink
feat(api): api update (#732)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Dec 20, 2024
1 parent 58be274 commit 111b884
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 29 deletions.
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
configured_endpoints: 69
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-ba96a4f49e6eb2c6a60b5a452b7c60a50ab373ad44818fba7921dc842e20e56a.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-f3209b903a708d713a30c384f8c2bcbec38426785f7cca5fb3482966a36b4412.yml
50 changes: 22 additions & 28 deletions src/structify/resources/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,21 +76,18 @@ 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,
query=maybe_transform(
{
"credit_count": credit_count,
"email": email,
"feature_flags": feature_flags,
"is_admin": is_admin,
"test": test,
},
user_create_params.UserCreateParams,
),
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=TokenResponse,
)
Expand Down Expand Up @@ -164,21 +161,18 @@ 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,
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,
),
extra_headers=extra_headers, extra_query=extra_query, extra_body=extra_body, timeout=timeout
),
cast_to=TokenResponse,
)
Expand Down

0 comments on commit 111b884

Please sign in to comment.