diff --git a/.stats.yml b/.stats.yml index 08ecc2f1..7577c607 100644 --- a/.stats.yml +++ b/.stats.yml @@ -1,2 +1,2 @@ configured_endpoints: 71 -openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-f5cfaeeb69240b108d9dff719288da12df91a5a2e4ad4ee19078f4c6af9b48bb.yml +openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-7487ddc697d498c49b82a77b5f56b89334b1835707a3be751da509acf7afe995.yml diff --git a/src/structify/resources/admin/users.py b/src/structify/resources/admin/users.py index f7b00974..fead4e1b 100644 --- a/src/structify/resources/admin/users.py +++ b/src/structify/resources/admin/users.py @@ -54,7 +54,7 @@ def create( credit_count: Optional[int] | NotGiven = NOT_GIVEN, email: Optional[str] | NotGiven = NOT_GIVEN, is_admin: bool | NotGiven = NOT_GIVEN, - permission: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] | NotGiven = NOT_GIVEN, + permissions: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] | 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. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -82,7 +82,7 @@ def create( "credit_count": credit_count, "email": email, "is_admin": is_admin, - "permission": permission, + "permissions": permissions, "test": test, }, user_create_params.UserCreateParams, @@ -139,7 +139,7 @@ async def create( credit_count: Optional[int] | NotGiven = NOT_GIVEN, email: Optional[str] | NotGiven = NOT_GIVEN, is_admin: bool | NotGiven = NOT_GIVEN, - permission: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] | NotGiven = NOT_GIVEN, + permissions: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] | 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. # The extra values given here take precedence over values defined on the client or passed to this method. @@ -167,7 +167,7 @@ async def create( "credit_count": credit_count, "email": email, "is_admin": is_admin, - "permission": permission, + "permissions": permissions, "test": test, }, user_create_params.UserCreateParams, diff --git a/src/structify/types/admin/user_create_params.py b/src/structify/types/admin/user_create_params.py index b45ccb66..aa26e28e 100644 --- a/src/structify/types/admin/user_create_params.py +++ b/src/structify/types/admin/user_create_params.py @@ -15,6 +15,6 @@ class UserCreateParams(TypedDict, total=False): is_admin: bool - permission: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] + permissions: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] test: bool diff --git a/tests/api_resources/admin/test_users.py b/tests/api_resources/admin/test_users.py index cd29fe01..14dcbd9d 100644 --- a/tests/api_resources/admin/test_users.py +++ b/tests/api_resources/admin/test_users.py @@ -29,7 +29,7 @@ def test_method_create_with_all_params(self, client: Structify) -> None: credit_count=0, email="email", is_admin=True, - permission=["pdf_parsing"], + permissions=["pdf_parsing"], test=True, ) assert_matches_type(TokenResponse, user, path=["response"]) @@ -94,7 +94,7 @@ async def test_method_create_with_all_params(self, async_client: AsyncStructify) credit_count=0, email="email", is_admin=True, - permission=["pdf_parsing"], + permissions=["pdf_parsing"], test=True, ) assert_matches_type(TokenResponse, user, path=["response"])