Skip to content

Commit f620075

Browse files
chore: 🐝 Update SDK - Generate (Unstructured-IO#75)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/f16e366b8042c0c85542d48401e4fa7e> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/632f70cdfe396026966b2ff85fdda16d> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy ## PYTHON CHANGELOG ## unions: 2.82.6 - 2024-02-29 ### 🐛 Bug Fixes - null-enums are treated as switch a oneOf field to nullable *(commit by [@disintegrator](https://github.com/disintegrator))* ## globalServerURLs: 2.82.2 - 2024-03-06 ### 🔧 Chores - expand server selection test coverage *(commit by [@2ynn](https://github.com/2ynn))* ## constsAndDefaults: 0.1.3 - 2024-03-01 ### 🐛 Bug Fixes - null enums are coerced into null consts *(commit by [@disintegrator](https://github.com/disintegrator))* ## examples: 2.81.3 - 2023-10-17 ### 🔧 Chores - remove multi word generated examples *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## nameOverrides: 2.81.2 - 2024-03-25 ### 🐛 Bug Fixes - x-speakeasy-name-overrides being missed when used under an allOf *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## core: 4.6.7 - 2024-04-30 ### 🐛 Bug Fixes - handling of errors returned from after_error hook *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## globalSecurity: 2.83.5 - 2024-03-15 ### 🐛 Bug Fixes - fixed hoisting of operation security *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## responseFormat: 0.1.0 - 2024-03-02 ### 🐝 New Features - add support for response formats and flat responses *(commit by [@TristanSpeakEasy](https://github.com/TristanSpeakeasy))* ## retries: 2.82.2 - 2024-04-10 ### 🐛 Bug Fixes - add method to correctly case retryConnectionErrors *bool for Python generation *(commit by [@AshGodfrey](https://github.com/AshGodfrey))* Co-authored-by: speakeasybot <[email protected]>
1 parent 5a14dd4 commit f620075

File tree

8 files changed

+30
-81
lines changed

8 files changed

+30
-81
lines changed

.speakeasy/gen.lock

+5-6
Original file line numberDiff line numberDiff line change
@@ -3,18 +3,18 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
44
docChecksum: f6998ca683cdb4062d02e5e9308c4c75
55
docVersion: 1.0.25
6-
speakeasyVersion: 1.277.4
7-
generationVersion: 2.318.3
8-
releaseVersion: 0.24.0
9-
configChecksum: b7f7f456fc43b49fe96ef995812b1f3d
6+
speakeasyVersion: 1.277.8
7+
generationVersion: 2.319.10
8+
releaseVersion: 0.24.1
9+
configChecksum: ec00b0343aebdd16e57e67bcbfeacc64
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1313
published: true
1414
features:
1515
python:
1616
constsAndDefaults: 0.1.3
17-
core: 4.6.5
17+
core: 4.6.7
1818
examples: 2.81.3
1919
globalSecurity: 2.83.5
2020
globalServerURLs: 2.82.2
@@ -35,7 +35,6 @@ generatedFiles:
3535
- src/unstructured_client/utils/retries.py
3636
- src/unstructured_client/utils/utils.py
3737
- src/unstructured_client/models/errors/sdkerror.py
38-
- tests/helpers.py
3938
- src/unstructured_client/models/operations/partition.py
4039
- src/unstructured_client/models/shared/element.py
4140
- src/unstructured_client/models/shared/validationerror.py

.speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
speakeasyVersion: 1.277.4
1+
speakeasyVersion: 1.277.8
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:2cdcca9104196029e8767d3ac942bdab59a10bc70f0ca20ee5f1c6d80599a298
6-
sourceBlobDigest: sha256:6183911555010d6d2a654aa1923db737b87677cacfb2046f286575d48b993006
5+
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
6+
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
77
tags:
88
- latest
99
targets:
1010
unstructured-python:
1111
source: my-source
1212
sourceNamespace: my-source
13-
sourceRevisionDigest: sha256:2cdcca9104196029e8767d3ac942bdab59a10bc70f0ca20ee5f1c6d80599a298
14-
sourceBlobDigest: sha256:6183911555010d6d2a654aa1923db737b87677cacfb2046f286575d48b993006
13+
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
14+
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
1515
outLocation: /github/workspace/repo
1616
workflow:
1717
workflowVersion: 1.0.0

RELEASES.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -498,4 +498,12 @@ Based on:
498498
- OpenAPI Doc
499499
- Speakeasy CLI 1.277.4 (2.318.3) https://github.com/speakeasy-api/speakeasy
500500
### Generated
501-
- [python v0.24.0] .
501+
- [python v0.24.0] .
502+
503+
## 2024-05-03 00:19:27
504+
### Changes
505+
Based on:
506+
- OpenAPI Doc
507+
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
508+
### Generated
509+
- [python v0.24.1] .

gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.24.0
13+
version: 0.24.1
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='unstructured-client',
22-
version='0.24.0',
22+
version='0.24.1',
2323
author='Unstructured',
2424
description='Python Client SDK for Unstructured API',
2525
license = 'MIT',

src/unstructured_client/general.py

+6-3
Original file line numberDiff line numberDiff line change
@@ -55,16 +55,19 @@ def do_request():
5555
req = self.sdk_configuration.get_hooks().before_request(BeforeRequestContext(hook_ctx), req)
5656
http_res = client.send(req)
5757
except Exception as e:
58-
_, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), None, e)
59-
if e is not None:
60-
raise e
58+
_, err = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), None, e)
59+
if err is not None:
60+
raise err from e
61+
raise e
6162

6263
if utils.match_status_codes(['422','4XX','5XX'], http_res.status_code):
6364
result, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), http_res, None)
6465
if e is not None:
6566
raise e
6667
if result is not None:
6768
http_res = result
69+
else:
70+
raise errors.SDKError('Unexpected error occurred', -1, '', None)
6871
else:
6972
http_res = self.sdk_configuration.get_hooks().after_success(AfterSuccessContext(hook_ctx), http_res)
7073

src/unstructured_client/sdkconfiguration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,9 @@ class SDKConfiguration:
2929
server: Optional[str] = ''
3030
language: str = 'python'
3131
openapi_doc_version: str = '1.0.25'
32-
sdk_version: str = '0.24.0'
33-
gen_version: str = '2.318.3'
34-
user_agent: str = 'speakeasy-sdk/python 0.24.0 2.318.3 1.0.25 unstructured-client'
32+
sdk_version: str = '0.24.1'
33+
gen_version: str = '2.319.10'
34+
user_agent: str = 'speakeasy-sdk/python 0.24.1 2.319.10 1.0.25 unstructured-client'
3535
retry_config: Optional[RetryConfig] = None
3636

3737
def __post_init__(self):

tests/helpers.py

-61
This file was deleted.

0 commit comments

Comments
 (0)