Skip to content

Commit 529fe87

Browse files
chore: 🐝 Update SDK - Generate 0.26.1 (#193)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/fb0f893c12d346d83d09ed7a78ccd94c> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/f0aa82f260ce9d7abc2d45ed677576f2> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.418.1 (2.438.3) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary No specification changes Co-authored-by: speakeasybot <[email protected]>
1 parent eaa7619 commit 529fe87

File tree

8 files changed

+53
-15
lines changed

8 files changed

+53
-15
lines changed

Diff for: .speakeasy/gen.lock

+6-5
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
44
docChecksum: 21f469b38bb72725739ee9d9d0fc8780
55
docVersion: 1.0.51
6-
speakeasyVersion: 1.410.0
7-
generationVersion: 2.434.1
8-
releaseVersion: 0.26.0
9-
configChecksum: 0916704b547a0697b2ccf93c0d4becac
6+
speakeasyVersion: 1.418.1
7+
generationVersion: 2.438.3
8+
releaseVersion: 0.26.1
9+
configChecksum: 55ded3ef4f1b052725cdab6587da0ea4
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -15,7 +15,7 @@ features:
1515
python:
1616
additionalDependencies: 1.0.0
1717
constsAndDefaults: 1.0.4
18-
core: 5.5.8
18+
core: 5.6.0
1919
defaultEnabledRetries: 0.2.0
2020
enumUnions: 0.1.0
2121
envVarSecurityUsage: 0.3.1
@@ -64,6 +64,7 @@ generatedFiles:
6464
- src/unstructured_client/_hooks/__init__.py
6565
- src/unstructured_client/_hooks/sdkhooks.py
6666
- src/unstructured_client/_hooks/types.py
67+
- src/unstructured_client/_version.py
6768
- src/unstructured_client/basesdk.py
6869
- src/unstructured_client/general.py
6970
- src/unstructured_client/httpclient.py

Diff for: .speakeasy/workflow.lock

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
speakeasyVersion: 1.410.0
1+
speakeasyVersion: 1.418.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:4587b07d95e133a5fe806b02e4b82bb9e268499adeaa299139edf722073f5bb1
5+
sourceRevisionDigest: sha256:a820d523af3e56f0dd1fc84f4f29e15330edb26cc253e93981bddb4a5176ac3c
66
sourceBlobDigest: sha256:27e4879df402e924f9f65d336ea6d2fc8b16a00b87b4a802866238f7e9f639d3
77
tags:
88
- latest
@@ -11,7 +11,7 @@ targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:4587b07d95e133a5fe806b02e4b82bb9e268499adeaa299139edf722073f5bb1
14+
sourceRevisionDigest: sha256:a820d523af3e56f0dd1fc84f4f29e15330edb26cc253e93981bddb4a5176ac3c
1515
sourceBlobDigest: sha256:27e4879df402e924f9f65d336ea6d2fc8b16a00b87b4a802866238f7e9f639d3
1616
workflow:
1717
workflowVersion: 1.0.0

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -694,4 +694,14 @@ Based on:
694694
### Generated
695695
- [python v0.26.0] .
696696
### Releases
697-
- [PyPI v0.26.0] https://pypi.org/project/unstructured-client/0.26.0 - .
697+
- [PyPI v0.26.0] https://pypi.org/project/unstructured-client/0.26.0 - .
698+
699+
## 2024-10-12 17:36:38
700+
### Changes
701+
Based on:
702+
- OpenAPI Doc
703+
- Speakeasy CLI 1.418.1 (2.438.3) https://github.com/speakeasy-api/speakeasy
704+
### Generated
705+
- [python v0.26.1] .
706+
### Releases
707+
- [PyPI v0.26.1] https://pypi.org/project/unstructured-client/0.26.1 - .

Diff for: pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "unstructured-client"
3-
version = "0.26.0"
3+
version = "0.26.1"
44
description = "Python Client SDK for Unstructured API"
55
authors = ["Unstructured",]
66
readme = "README-PYPI.md"

Diff for: src/unstructured_client/__init__.py

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

3+
from ._version import __title__, __version__
34
from .sdk import *
45
from .sdkconfiguration import *
6+
7+
8+
VERSION: str = __version__

Diff for: src/unstructured_client/_version.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
2+
3+
import importlib.metadata
4+
5+
__title__: str = "unstructured-client"
6+
__version__: str = "0.26.1"
7+
8+
try:
9+
if __package__ is not None:
10+
__version__ = importlib.metadata.version(__package__)
11+
except importlib.metadata.PackageNotFoundError:
12+
pass

Diff for: src/unstructured_client/sdkconfiguration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,9 @@ class SDKConfiguration:
3434
server: Optional[str] = ""
3535
language: str = "python"
3636
openapi_doc_version: str = "1.0.51"
37-
sdk_version: str = "0.26.0"
38-
gen_version: str = "2.434.1"
39-
user_agent: str = "speakeasy-sdk/python 0.26.0 2.434.1 1.0.51 unstructured-client"
37+
sdk_version: str = "0.26.1"
38+
gen_version: str = "2.438.3"
39+
user_agent: str = "speakeasy-sdk/python 0.26.1 2.438.3 1.0.51 unstructured-client"
4040
retry_config: OptionalNullable[RetryConfig] = Field(default_factory=lambda: UNSET)
4141
timeout_ms: Optional[int] = None
4242

Diff for: src/unstructured_client/utils/annotations.py

+13-2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

3+
from enum import Enum
34
from typing import Any
45

56
def get_discriminator(model: Any, fieldname: str, key: str) -> str:
@@ -10,10 +11,20 @@ def get_discriminator(model: Any, fieldname: str, key: str) -> str:
1011
raise ValueError(f'Could not find discriminator key {key} in {model}') from e
1112

1213
if hasattr(model, fieldname):
13-
return f'{getattr(model, fieldname)}'
14+
attr = getattr(model, fieldname)
15+
16+
if isinstance(attr, Enum):
17+
return f'{attr.value}'
18+
19+
return f'{attr}'
1420

1521
fieldname = fieldname.upper()
1622
if hasattr(model, fieldname):
17-
return f'{getattr(model, fieldname)}'
23+
attr = getattr(model, fieldname)
24+
25+
if isinstance(attr, Enum):
26+
return f'{attr.value}'
27+
28+
return f'{attr}'
1829

1930
raise ValueError(f'Could not find discriminator field {fieldname} in {model}')

0 commit comments

Comments
 (0)