Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(api): api update #763

Merged
merged 1 commit into from
Jan 16, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .stats.yml
Original file line number Diff line number Diff line change
@@ -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
8 changes: 4 additions & 4 deletions src/structify/resources/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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.
Expand Down Expand Up @@ -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,
Expand Down
2 changes: 1 addition & 1 deletion src/structify/types/admin/user_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
4 changes: 2 additions & 2 deletions tests/api_resources/admin/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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"])
Expand Down