diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 120f5257..b4d13ce4 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 8b5fa338-9106-4734-abf0-e30d67044a90 management: - docChecksum: 1e625384a184f21d27f5afa31f705ada + docChecksum: 4b5ce002d18e5f4df26dc25dca205ad2 docVersion: 1.1.45 - speakeasyVersion: 1.598.0 - generationVersion: 2.674.1 - releaseVersion: 0.42.1 - configChecksum: 93d86f1b261131a5f65615eab5147b8a + speakeasyVersion: 1.598.3 + generationVersion: 2.674.3 + releaseVersion: 0.42.2 + configChecksum: 3f589c7483451e1a99a5cdaf066e319a repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -16,7 +16,7 @@ features: acceptHeaders: 3.0.0 additionalDependencies: 1.0.0 constsAndDefaults: 1.0.5 - core: 5.19.6 + core: 5.19.7 customCodeRegions: 0.1.1 defaultEnabledRetries: 0.2.0 enumUnions: 0.1.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 82c5964b..cc2e59ed 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.598.0 +speakeasyVersion: 1.598.3 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8 - sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261 + sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b + sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41 tags: - latest - - speakeasy-sdk-regen-1754439127 + - speakeasy-sdk-regen-1754525536 - 1.1.45 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8 - sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261 + sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b + sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41 codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:589a66ad970bec88d190b8fa4af02a27274967553ea68a347b8e50a43422fad5 + codeSamplesRevisionDigest: sha256:2519fac5f22f4b3c34fe2cb753bb092bed5cc6d8cfb86f5959370073ced015b1 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 4850858f..082c0ca3 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1099,4 +1099,14 @@ Based on: ### Generated - [python v0.42.1] . ### Releases -- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - . \ No newline at end of file +- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - . + +## 2025-08-07 00:11:58 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.598.3 (2.674.3) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.42.2] . +### Releases +- [PyPI v0.42.2] https://pypi.org/project/unstructured-client/0.42.2 - . \ No newline at end of file diff --git a/pyproject.toml b/pyproject.toml index a009217a..fe14bb26 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.42.1" +version = "0.42.2" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index f059a302..e63376fb 100644 --- a/src/unstructured_client/_version.py +++ b/src/unstructured_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "unstructured-client" -__version__: str = "0.42.1" +__version__: str = "0.42.2" __openapi_doc_version__: str = "1.1.45" -__gen_version__: str = "2.674.1" -__user_agent__: str = "speakeasy-sdk/python 0.42.1 2.674.1 1.1.45 unstructured-client" +__gen_version__: str = "2.674.3" +__user_agent__: str = "speakeasy-sdk/python 0.42.2 2.674.3 1.1.45 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/models/operations/list_destinations.py b/src/unstructured_client/models/operations/list_destinations.py index b7cd2310..6b73c912 100644 --- a/src/unstructured_client/models/operations/list_destinations.py +++ b/src/unstructured_client/models/operations/list_destinations.py @@ -4,6 +4,7 @@ import httpx import pydantic from pydantic import model_serializer +from pydantic.functional_validators import PlainValidator from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.models.shared import ( @@ -17,7 +18,12 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + QueryParamMetadata, + validate_open_enum, +) class ListDestinationsRequestTypedDict(TypedDict): @@ -29,7 +35,10 @@ class ListDestinationsRequestTypedDict(TypedDict): class ListDestinationsRequest(BaseModel): destination_type: Annotated[ - OptionalNullable[shared_destinationconnectortype.DestinationConnectorType], + Annotated[ + OptionalNullable[shared_destinationconnectortype.DestinationConnectorType], + PlainValidator(validate_open_enum(False)), + ], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET diff --git a/src/unstructured_client/models/operations/list_sources.py b/src/unstructured_client/models/operations/list_sources.py index 3695fc3b..4590be9d 100644 --- a/src/unstructured_client/models/operations/list_sources.py +++ b/src/unstructured_client/models/operations/list_sources.py @@ -4,6 +4,7 @@ import httpx import pydantic from pydantic import model_serializer +from pydantic.functional_validators import PlainValidator from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.models.shared import ( @@ -17,7 +18,12 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + QueryParamMetadata, + validate_open_enum, +) class ListSourcesRequestTypedDict(TypedDict): @@ -27,7 +33,10 @@ class ListSourcesRequestTypedDict(TypedDict): class ListSourcesRequest(BaseModel): source_type: Annotated[ - OptionalNullable[shared_sourceconnectortype.SourceConnectorType], + Annotated[ + OptionalNullable[shared_sourceconnectortype.SourceConnectorType], + PlainValidator(validate_open_enum(False)), + ], FieldMetadata(query=QueryParamMetadata(style="form", explode=True)), ] = UNSET diff --git a/src/unstructured_client/models/shared/createdestinationconnector.py b/src/unstructured_client/models/shared/createdestinationconnector.py index f187a067..e1baedc7 100644 --- a/src/unstructured_client/models/shared/createdestinationconnector.py +++ b/src/unstructured_client/models/shared/createdestinationconnector.py @@ -86,9 +86,11 @@ WeaviateDestinationConnectorConfigInput, WeaviateDestinationConnectorConfigInputTypedDict, ) +from pydantic.functional_validators import PlainValidator from typing import Union -from typing_extensions import TypeAliasType, TypedDict +from typing_extensions import Annotated, TypeAliasType, TypedDict from unstructured_client.types import BaseModel +from unstructured_client.utils import validate_open_enum ConfigTypedDict = TypeAliasType( @@ -158,4 +160,4 @@ class CreateDestinationConnector(BaseModel): name: str - type: DestinationConnectorType + type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))] diff --git a/src/unstructured_client/models/shared/createsourceconnector.py b/src/unstructured_client/models/shared/createsourceconnector.py index 55dc7546..ad2998d1 100644 --- a/src/unstructured_client/models/shared/createsourceconnector.py +++ b/src/unstructured_client/models/shared/createsourceconnector.py @@ -82,9 +82,11 @@ ZendeskSourceConnectorConfigInput, ZendeskSourceConnectorConfigInputTypedDict, ) +from pydantic.functional_validators import PlainValidator from typing import Union -from typing_extensions import TypeAliasType, TypedDict +from typing_extensions import Annotated, TypeAliasType, TypedDict from unstructured_client.types import BaseModel +from unstructured_client.utils import validate_open_enum CreateSourceConnectorConfigTypedDict = TypeAliasType( @@ -152,4 +154,4 @@ class CreateSourceConnector(BaseModel): name: str - type: SourceConnectorType + type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))] diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index e913f9c0..42a1f32f 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -88,8 +88,9 @@ ) from datetime import datetime from pydantic import model_serializer +from pydantic.functional_validators import PlainValidator from typing import Union -from typing_extensions import NotRequired, TypeAliasType, TypedDict +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict from unstructured_client.types import ( BaseModel, Nullable, @@ -97,6 +98,7 @@ UNSET, UNSET_SENTINEL, ) +from unstructured_client.utils import validate_open_enum DestinationConnectorInformationConfigTypedDict = TypeAliasType( @@ -173,7 +175,7 @@ class DestinationConnectorInformation(BaseModel): name: str - type: DestinationConnectorType + type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))] updated_at: OptionalNullable[datetime] = UNSET diff --git a/src/unstructured_client/models/shared/destinationconnectortype.py b/src/unstructured_client/models/shared/destinationconnectortype.py index ecfd12b4..6de4b97c 100644 --- a/src/unstructured_client/models/shared/destinationconnectortype.py +++ b/src/unstructured_client/models/shared/destinationconnectortype.py @@ -2,9 +2,10 @@ from __future__ import annotations from enum import Enum +from unstructured_client import utils -class DestinationConnectorType(str, Enum): +class DestinationConnectorType(str, Enum, metaclass=utils.OpenEnumMeta): ASTRADB = "astradb" AZURE_AI_SEARCH = "azure_ai_search" COUCHBASE = "couchbase" diff --git a/src/unstructured_client/models/shared/sourceconnectorinformation.py b/src/unstructured_client/models/shared/sourceconnectorinformation.py index b15ef981..40b38676 100644 --- a/src/unstructured_client/models/shared/sourceconnectorinformation.py +++ b/src/unstructured_client/models/shared/sourceconnectorinformation.py @@ -84,8 +84,9 @@ ) from datetime import datetime from pydantic import model_serializer +from pydantic.functional_validators import PlainValidator from typing import Union -from typing_extensions import NotRequired, TypeAliasType, TypedDict +from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict from unstructured_client.types import ( BaseModel, Nullable, @@ -93,6 +94,7 @@ UNSET, UNSET_SENTINEL, ) +from unstructured_client.utils import validate_open_enum SourceConnectorInformationConfigTypedDict = TypeAliasType( @@ -167,7 +169,7 @@ class SourceConnectorInformation(BaseModel): name: str - type: SourceConnectorType + type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))] updated_at: OptionalNullable[datetime] = UNSET diff --git a/src/unstructured_client/models/shared/sourceconnectortype.py b/src/unstructured_client/models/shared/sourceconnectortype.py index 2824f9ce..3e0bd03e 100644 --- a/src/unstructured_client/models/shared/sourceconnectortype.py +++ b/src/unstructured_client/models/shared/sourceconnectortype.py @@ -2,9 +2,10 @@ from __future__ import annotations from enum import Enum +from unstructured_client import utils -class SourceConnectorType(str, Enum): +class SourceConnectorType(str, Enum, metaclass=utils.OpenEnumMeta): AZURE = "azure" BOX = "box" CONFLUENCE = "confluence"