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

release: 1.73.0 #758

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open
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 .release-please-manifest.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
{
".": "1.72.0"
".": "1.73.0"
}
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-1d9e75129793e68b316a1e185b6fbfa934ef5ac774d1e2453f6a86d8964eeb22.yml
openapi_spec_url: https://storage.googleapis.com/stainless-sdk-openapi-specs/structify%2Fstructify-7487ddc697d498c49b82a77b5f56b89334b1835707a3be751da509acf7afe995.yml
17 changes: 17 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,22 @@
# Changelog

## 1.73.0 (2025-01-16)

Full Changelog: [v1.72.0...v1.73.0](https://github.com/StructifyAI/structify-python/compare/v1.72.0...v1.73.0)

### Features

* **api:** api update ([#759](https://github.com/StructifyAI/structify-python/issues/759)) ([e5feac3](https://github.com/StructifyAI/structify-python/commit/e5feac301e9cc097ba50fc81e5bc506446775ced))
* **api:** api update ([#760](https://github.com/StructifyAI/structify-python/issues/760)) ([c898d59](https://github.com/StructifyAI/structify-python/commit/c898d59c0fd4f6cb4e15b1d08718dca313050db7))
* **api:** api update ([#761](https://github.com/StructifyAI/structify-python/issues/761)) ([ec353f8](https://github.com/StructifyAI/structify-python/commit/ec353f8aa88a0c19ca59b0b267bdb1345832b619))
* **api:** api update ([#762](https://github.com/StructifyAI/structify-python/issues/762)) ([703c4cc](https://github.com/StructifyAI/structify-python/commit/703c4cc2dee5692d29cd3d118042429d3130001b))
* **api:** api update ([#763](https://github.com/StructifyAI/structify-python/issues/763)) ([48561eb](https://github.com/StructifyAI/structify-python/commit/48561eb1935db7cf64284714f3b988fa6eb43799))


### Chores

* **internal:** version bump ([#757](https://github.com/StructifyAI/structify-python/issues/757)) ([23bd217](https://github.com/StructifyAI/structify-python/commit/23bd2171c0bc0559221ac89424bfc19c23080357))

## 1.72.0 (2025-01-14)

Full Changelog: [v1.71.0...v1.72.0](https://github.com/StructifyAI/structify-python/compare/v1.71.0...v1.72.0)
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "structifyai"
version = "1.72.0"
version = "1.73.0"
description = "The official Python library for the structify API"
dynamic = ["readme"]
license = "Apache-2.0"
Expand Down
2 changes: 1 addition & 1 deletion src/structify/_version.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

__title__ = "structify"
__version__ = "1.72.0" # x-release-please-version
__version__ = "1.73.0" # x-release-please-version
4 changes: 2 additions & 2 deletions src/structify/resources/admin/training_datasets.py
Original file line number Diff line number Diff line change
Expand Up @@ -462,7 +462,7 @@ def switch_dataset(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Removes a training datum from the specified dataset.
Switches a training datum to a new dataset.
Args:
extra_headers: Send extra headers
Expand Down Expand Up @@ -1035,7 +1035,7 @@ async def switch_dataset(
timeout: float | httpx.Timeout | None | NotGiven = NOT_GIVEN,
) -> None:
"""
Removes a training datum from the specified dataset.
Switches a training datum to a new dataset.
Args:
extra_headers: Send extra headers
Expand Down
8 changes: 4 additions & 4 deletions src/structify/resources/admin/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,8 +53,8 @@ def create(
*,
credit_count: Optional[int] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
feature_flags: Optional[List[Literal["pdf_parsing", "labeler", "none"]]] | NotGiven = NOT_GIVEN,
is_admin: bool | 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 All @@ -81,8 +81,8 @@ def create(
{
"credit_count": credit_count,
"email": email,
"feature_flags": feature_flags,
"is_admin": is_admin,
"permissions": permissions,
"test": test,
},
user_create_params.UserCreateParams,
Expand Down Expand Up @@ -138,8 +138,8 @@ async def create(
*,
credit_count: Optional[int] | NotGiven = NOT_GIVEN,
email: Optional[str] | NotGiven = NOT_GIVEN,
feature_flags: Optional[List[Literal["pdf_parsing", "labeler", "none"]]] | NotGiven = NOT_GIVEN,
is_admin: bool | 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 All @@ -166,8 +166,8 @@ async def create(
{
"credit_count": credit_count,
"email": email,
"feature_flags": feature_flags,
"is_admin": is_admin,
"permissions": permissions,
"test": test,
},
user_create_params.UserCreateParams,
Expand Down
2 changes: 1 addition & 1 deletion src/structify/types/admin/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,6 @@
class User(BaseModel):
email: str

feature_flags: Optional[List[Literal["pdf_parsing", "labeler", "none"]]] = None
permissions: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]] = None

user_type: Optional[Literal["Admin", "Public", "EndUser"]] = None
4 changes: 2 additions & 2 deletions src/structify/types/admin/user_create_params.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ class UserCreateParams(TypedDict, total=False):

email: Optional[str]

feature_flags: Optional[List[Literal["pdf_parsing", "labeler", "none"]]]

is_admin: bool

permissions: Optional[List[Literal["pdf_parsing", "labeler", "debug", "none"]]]

test: bool
4 changes: 4 additions & 0 deletions src/structify/types/token_response.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List
from typing_extensions import Literal

from .._models import BaseModel

Expand All @@ -8,3 +10,5 @@

class TokenResponse(BaseModel):
token: str

permissions: List[Literal["pdf_parsing", "labeler", "debug", "none"]]
4 changes: 4 additions & 0 deletions src/structify/types/user_info.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.

from typing import List
from typing_extensions import Literal

from .._models import BaseModel

Expand All @@ -13,4 +15,6 @@ class UserInfo(BaseModel):

is_admin: bool

permissions: List[Literal["pdf_parsing", "labeler", "debug", "none"]]

username: str
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 @@ -28,8 +28,8 @@ def test_method_create_with_all_params(self, client: Structify) -> None:
user = client.admin.users.create(
credit_count=0,
email="email",
feature_flags=["pdf_parsing"],
is_admin=True,
permissions=["pdf_parsing"],
test=True,
)
assert_matches_type(TokenResponse, user, path=["response"])
Expand Down Expand Up @@ -93,8 +93,8 @@ 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=["pdf_parsing"],
is_admin=True,
permissions=["pdf_parsing"],
test=True,
)
assert_matches_type(TokenResponse, user, path=["response"])
Expand Down
Loading