diff --git a/.stats.yml b/.stats.yml index 9ec752bc..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-9826c75ffb14d490923e03420eda5651ba07786b7d393709d91f6529f79f71e8.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 59a0a908..ac9c9c33 100644 --- a/src/structify/resources/admin/users.py +++ b/src/structify/resources/admin/users.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import List, Optional import httpx @@ -52,6 +52,7 @@ def create( *, credit_count: Optional[int] | NotGiven = NOT_GIVEN, email: Optional[str] | NotGiven = NOT_GIVEN, + feature_flags: Optional[List[str]] | NotGiven = NOT_GIVEN, is_admin: bool | NotGiven = NOT_GIVEN, test: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -84,6 +85,7 @@ def create( { "credit_count": credit_count, "email": email, + "feature_flags": feature_flags, "is_admin": is_admin, "test": test, }, @@ -138,6 +140,7 @@ async def create( *, credit_count: Optional[int] | NotGiven = NOT_GIVEN, email: Optional[str] | NotGiven = NOT_GIVEN, + feature_flags: Optional[List[str]] | NotGiven = NOT_GIVEN, is_admin: bool | NotGiven = NOT_GIVEN, test: bool | NotGiven = NOT_GIVEN, # Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs. @@ -170,6 +173,7 @@ async def create( { "credit_count": credit_count, "email": email, + "feature_flags": feature_flags, "is_admin": is_admin, "test": test, }, diff --git a/src/structify/types/admin/user.py b/src/structify/types/admin/user.py index 7d5d3ea2..89676794 100644 --- a/src/structify/types/admin/user.py +++ b/src/structify/types/admin/user.py @@ -1,6 +1,6 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. -from typing import Optional +from typing import List, Optional from typing_extensions import Literal from ..._models import BaseModel @@ -11,4 +11,6 @@ class User(BaseModel): email: str + feature_flags: Optional[List[str]] = None + user_type: Optional[Literal["Admin", "Public", "EndUser"]] = None diff --git a/src/structify/types/admin/user_create_params.py b/src/structify/types/admin/user_create_params.py index 16989fed..7564af56 100644 --- a/src/structify/types/admin/user_create_params.py +++ b/src/structify/types/admin/user_create_params.py @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Optional +from typing import List, Optional from typing_extensions import TypedDict __all__ = ["UserCreateParams"] @@ -13,6 +13,8 @@ class UserCreateParams(TypedDict, total=False): email: Optional[str] + feature_flags: Optional[List[str]] + is_admin: bool test: bool diff --git a/tests/api_resources/admin/test_users.py b/tests/api_resources/admin/test_users.py index 82b0c59e..1f82c57b 100644 --- a/tests/api_resources/admin/test_users.py +++ b/tests/api_resources/admin/test_users.py @@ -28,6 +28,7 @@ def test_method_create_with_all_params(self, client: Structify) -> None: user = client.admin.users.create( credit_count=0, email="email", + feature_flags=["string"], is_admin=True, test=True, ) @@ -92,6 +93,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncStructify) user = await async_client.admin.users.create( credit_count=0, email="email", + feature_flags=["string"], is_admin=True, test=True, )