diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 14ac5042..b7f765ae 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: c7e23b3b8242eb21eccb2091bcc57c72 - docVersion: 1.0.35 - speakeasyVersion: 1.308.1 - generationVersion: 2.342.6 - releaseVersion: 0.23.7 - configChecksum: ace5c1ec7268837cec676d31f07d8337 + docChecksum: 7f66a0b37f7c9410adfa767ab853be37 + docVersion: 1.0.39 + speakeasyVersion: 1.322.1 + generationVersion: 2.354.2 + releaseVersion: 0.23.8 + configChecksum: f3dd7a4511cf2bc22ddb479fa03effba repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -15,7 +15,7 @@ features: python: additionalDependencies: 0.1.0 constsAndDefaults: 0.1.3 - core: 4.6.11 + core: 4.6.13 examples: 2.81.3 globalSecurity: 2.83.5 globalSecurityCallbacks: 0.1.0 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 4f547a9b..ec1f470b 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.308.1 +speakeasyVersion: 1.322.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:5491f0ed917385a6505e2da173e898a2039fb131bf9cf5209426106b1efd09d5 - sourceBlobDigest: sha256:6f719e554e4b4829020cad9fe3db0747f49029d4961ea73b48ed0b94a9e9368e + sourceRevisionDigest: sha256:03a5b2400a0c666b000349883823d4ac9ab293b11599805156c54efe31325e6b + sourceBlobDigest: sha256:0fa8b3f2439934e2a1215d907f07b794569954dd381d7412f9f17627c4d46b67 tags: - latest - main @@ -11,8 +11,8 @@ targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:5491f0ed917385a6505e2da173e898a2039fb131bf9cf5209426106b1efd09d5 - sourceBlobDigest: sha256:6f719e554e4b4829020cad9fe3db0747f49029d4961ea73b48ed0b94a9e9368e + sourceRevisionDigest: sha256:03a5b2400a0c666b000349883823d4ac9ab293b11599805156c54efe31325e6b + sourceBlobDigest: sha256:0fa8b3f2439934e2a1215d907f07b794569954dd381d7412f9f17627c4d46b67 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index c9686eb4..b19e11d6 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -544,4 +544,14 @@ Based on: ### Generated - [python v0.23.7] . ### Releases -- [PyPI v0.23.7] https://pypi.org/project/unstructured-client/0.23.7 - . \ No newline at end of file +- [PyPI v0.23.7] https://pypi.org/project/unstructured-client/0.23.7 - . + +## 2024-06-28 00:20:41 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.322.1 (2.354.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.23.8] . +### Releases +- [PyPI v0.23.8] https://pypi.org/project/unstructured-client/0.23.8 - . \ No newline at end of file diff --git a/docs/models/errors/detail.md b/docs/models/errors/detail.md index c4220216..adbeae70 100644 --- a/docs/models/errors/detail.md +++ b/docs/models/errors/detail.md @@ -3,15 +3,15 @@ ## Supported Types -### +### `List[shared.ValidationError]` ```python -detail: List[shared.ValidationError] = /* values here */ +value: List[shared.ValidationError] = /* values here */ ``` -### +### `str` ```python -detail: str = /* values here */ +value: str = /* values here */ ``` diff --git a/docs/models/shared/loc.md b/docs/models/shared/loc.md index cfb10450..d6094ac2 100644 --- a/docs/models/shared/loc.md +++ b/docs/models/shared/loc.md @@ -3,15 +3,15 @@ ## Supported Types -### +### `str` ```python -loc: str = /* values here */ +value: str = /* values here */ ``` -### +### `int` ```python -loc: int = /* values here */ +value: int = /* values here */ ``` diff --git a/gen.yaml b/gen.yaml index 732d10b6..3e124e21 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 0.23.7 + version: 0.23.8 additionalDependencies: dependencies: deepdiff: '>=6.0' @@ -40,3 +40,4 @@ python: packageName: unstructured-client projectUrls: {} responseFormat: envelope + templateVersion: v1 diff --git a/setup.py b/setup.py index 37b0f9a6..0cbb40b6 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setuptools.setup( name='unstructured-client', - version='0.23.7', + version='0.23.8', author='Unstructured', description='Python Client SDK for Unstructured API', license = 'MIT', diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py index 4a00d494..eb01e907 100644 --- a/src/unstructured_client/sdkconfiguration.py +++ b/src/unstructured_client/sdkconfiguration.py @@ -28,10 +28,10 @@ class SDKConfiguration: server_url: Optional[str] = '' server: Optional[str] = '' language: str = 'python' - openapi_doc_version: str = '1.0.35' - sdk_version: str = '0.23.7' - gen_version: str = '2.342.6' - user_agent: str = 'speakeasy-sdk/python 0.23.7 2.342.6 1.0.35 unstructured-client' + openapi_doc_version: str = '1.0.39' + sdk_version: str = '0.23.8' + gen_version: str = '2.354.2' + user_agent: str = 'speakeasy-sdk/python 0.23.8 2.354.2 1.0.39 unstructured-client' retry_config: Optional[RetryConfig] = None def __post_init__(self): diff --git a/src/unstructured_client/utils/utils.py b/src/unstructured_client/utils/utils.py index b6a55429..497c3a6e 100644 --- a/src/unstructured_client/utils/utils.py +++ b/src/unstructured_client/utils/utils.py @@ -904,6 +904,9 @@ def bigintencode(val: int): def bigintdecoder(val): + if val is None: + return None + if isinstance(val, float): raise ValueError(f"{val} is a float") return int(val) @@ -918,6 +921,9 @@ def integerstrencode(val: int): def integerstrdecoder(val): + if val is None: + return None + if isinstance(val, float): raise ValueError(f"{val} is a float") return int(val) @@ -933,6 +939,9 @@ def numberstrencode(val: float): def numberstrdecoder(val): + if val is None: + return None + return float(val) @@ -950,6 +959,9 @@ def decimalencode(val: Decimal): def decimaldecoder(val): + if val is None: + return None + return Decimal(str(val))