Skip to content

Commit 8cbe0d8

Browse files
chore: 🐝 Update SDK - Generate 0.42.2 (#305)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/0a5f5e6fa72220658eebd2029258b3f1> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/ab67ee934e789814b24e905291d94612> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.598.3 (2.674.3) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [patch] - 🤖 (automated) ## PYTHON CHANGELOG ## core: 5.19.7 - 2025-08-06 ### 🐛 Bug Fixes - add return type hint for methods returning None *(commit by [@AshGodfrey](https://github.com/AshGodfrey))* Co-authored-by: speakeasybot <bot@speakeasyapi.dev>
1 parent 9464074 commit 8cbe0d8

13 files changed

+70
-32
lines changed

.speakeasy/gen.lock

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: 1e625384a184f21d27f5afa31f705ada
4+
docChecksum: 4b5ce002d18e5f4df26dc25dca205ad2
55
docVersion: 1.1.45
6-
speakeasyVersion: 1.598.0
7-
generationVersion: 2.674.1
8-
releaseVersion: 0.42.1
9-
configChecksum: 93d86f1b261131a5f65615eab5147b8a
6+
speakeasyVersion: 1.598.3
7+
generationVersion: 2.674.3
8+
releaseVersion: 0.42.2
9+
configChecksum: 3f589c7483451e1a99a5cdaf066e319a
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.19.6
19+
core: 5.19.7
2020
customCodeRegions: 0.1.1
2121
defaultEnabledRetries: 0.2.0
2222
enumUnions: 0.1.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.598.0
1+
speakeasyVersion: 1.598.3
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
6-
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
5+
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
6+
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1754439127
9+
- speakeasy-sdk-regen-1754525536
1010
- 1.1.45
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
16-
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
15+
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
16+
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:589a66ad970bec88d190b8fa4af02a27274967553ea68a347b8e50a43422fad5
18+
codeSamplesRevisionDigest: sha256:2519fac5f22f4b3c34fe2cb753bb092bed5cc6d8cfb86f5959370073ced015b1
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1099,4 +1099,14 @@ Based on:
10991099
### Generated
11001100
- [python v0.42.1] .
11011101
### Releases
1102-
- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - .
1102+
- [PyPI v0.42.1] https://pypi.org/project/unstructured-client/0.42.1 - .
1103+
1104+
## 2025-08-07 00:11:58
1105+
### Changes
1106+
Based on:
1107+
- OpenAPI Doc
1108+
- Speakeasy CLI 1.598.3 (2.674.3) https://github.com/speakeasy-api/speakeasy
1109+
### Generated
1110+
- [python v0.42.2] .
1111+
### Releases
1112+
- [PyPI v0.42.2] https://pypi.org/project/unstructured-client/0.42.2 - .

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unstructured-client"
3-
version = "0.42.1"
3+
version = "0.42.2"
44
description = "Python Client SDK for Unstructured API"
55
authors = [{ name = "Unstructured" },]
66
readme = "README-PYPI.md"

src/unstructured_client/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "unstructured-client"
6-
__version__: str = "0.42.1"
6+
__version__: str = "0.42.2"
77
__openapi_doc_version__: str = "1.1.45"
8-
__gen_version__: str = "2.674.1"
9-
__user_agent__: str = "speakeasy-sdk/python 0.42.1 2.674.1 1.1.45 unstructured-client"
8+
__gen_version__: str = "2.674.3"
9+
__user_agent__: str = "speakeasy-sdk/python 0.42.2 2.674.3 1.1.45 unstructured-client"
1010

1111
try:
1212
if __package__ is not None:

src/unstructured_client/models/operations/list_destinations.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import httpx
55
import pydantic
66
from pydantic import model_serializer
7+
from pydantic.functional_validators import PlainValidator
78
from typing import List, Optional
89
from typing_extensions import Annotated, NotRequired, TypedDict
910
from unstructured_client.models.shared import (
@@ -17,7 +18,12 @@
1718
UNSET,
1819
UNSET_SENTINEL,
1920
)
20-
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
21+
from unstructured_client.utils import (
22+
FieldMetadata,
23+
HeaderMetadata,
24+
QueryParamMetadata,
25+
validate_open_enum,
26+
)
2127

2228

2329
class ListDestinationsRequestTypedDict(TypedDict):
@@ -29,7 +35,10 @@ class ListDestinationsRequestTypedDict(TypedDict):
2935

3036
class ListDestinationsRequest(BaseModel):
3137
destination_type: Annotated[
32-
OptionalNullable[shared_destinationconnectortype.DestinationConnectorType],
38+
Annotated[
39+
OptionalNullable[shared_destinationconnectortype.DestinationConnectorType],
40+
PlainValidator(validate_open_enum(False)),
41+
],
3342
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
3443
] = UNSET
3544

src/unstructured_client/models/operations/list_sources.py

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import httpx
55
import pydantic
66
from pydantic import model_serializer
7+
from pydantic.functional_validators import PlainValidator
78
from typing import List, Optional
89
from typing_extensions import Annotated, NotRequired, TypedDict
910
from unstructured_client.models.shared import (
@@ -17,7 +18,12 @@
1718
UNSET,
1819
UNSET_SENTINEL,
1920
)
20-
from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata
21+
from unstructured_client.utils import (
22+
FieldMetadata,
23+
HeaderMetadata,
24+
QueryParamMetadata,
25+
validate_open_enum,
26+
)
2127

2228

2329
class ListSourcesRequestTypedDict(TypedDict):
@@ -27,7 +33,10 @@ class ListSourcesRequestTypedDict(TypedDict):
2733

2834
class ListSourcesRequest(BaseModel):
2935
source_type: Annotated[
30-
OptionalNullable[shared_sourceconnectortype.SourceConnectorType],
36+
Annotated[
37+
OptionalNullable[shared_sourceconnectortype.SourceConnectorType],
38+
PlainValidator(validate_open_enum(False)),
39+
],
3140
FieldMetadata(query=QueryParamMetadata(style="form", explode=True)),
3241
] = UNSET
3342

src/unstructured_client/models/shared/createdestinationconnector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,11 @@
8686
WeaviateDestinationConnectorConfigInput,
8787
WeaviateDestinationConnectorConfigInputTypedDict,
8888
)
89+
from pydantic.functional_validators import PlainValidator
8990
from typing import Union
90-
from typing_extensions import TypeAliasType, TypedDict
91+
from typing_extensions import Annotated, TypeAliasType, TypedDict
9192
from unstructured_client.types import BaseModel
93+
from unstructured_client.utils import validate_open_enum
9294

9395

9496
ConfigTypedDict = TypeAliasType(
@@ -158,4 +160,4 @@ class CreateDestinationConnector(BaseModel):
158160

159161
name: str
160162

161-
type: DestinationConnectorType
163+
type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))]

src/unstructured_client/models/shared/createsourceconnector.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,11 @@
8282
ZendeskSourceConnectorConfigInput,
8383
ZendeskSourceConnectorConfigInputTypedDict,
8484
)
85+
from pydantic.functional_validators import PlainValidator
8586
from typing import Union
86-
from typing_extensions import TypeAliasType, TypedDict
87+
from typing_extensions import Annotated, TypeAliasType, TypedDict
8788
from unstructured_client.types import BaseModel
89+
from unstructured_client.utils import validate_open_enum
8890

8991

9092
CreateSourceConnectorConfigTypedDict = TypeAliasType(
@@ -152,4 +154,4 @@ class CreateSourceConnector(BaseModel):
152154

153155
name: str
154156

155-
type: SourceConnectorType
157+
type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))]

src/unstructured_client/models/shared/destinationconnectorinformation.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -88,15 +88,17 @@
8888
)
8989
from datetime import datetime
9090
from pydantic import model_serializer
91+
from pydantic.functional_validators import PlainValidator
9192
from typing import Union
92-
from typing_extensions import NotRequired, TypeAliasType, TypedDict
93+
from typing_extensions import Annotated, NotRequired, TypeAliasType, TypedDict
9394
from unstructured_client.types import (
9495
BaseModel,
9596
Nullable,
9697
OptionalNullable,
9798
UNSET,
9899
UNSET_SENTINEL,
99100
)
101+
from unstructured_client.utils import validate_open_enum
100102

101103

102104
DestinationConnectorInformationConfigTypedDict = TypeAliasType(
@@ -173,7 +175,7 @@ class DestinationConnectorInformation(BaseModel):
173175

174176
name: str
175177

176-
type: DestinationConnectorType
178+
type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))]
177179

178180
updated_at: OptionalNullable[datetime] = UNSET
179181

0 commit comments

Comments
 (0)