Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate (#75)
Browse files Browse the repository at this point in the history
> [!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]>
  • Loading branch information
github-actions[bot] and speakeasybot committed May 3, 2024
1 parent 5a14dd4 commit f620075
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 81 deletions.
11 changes: 5 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,18 @@ id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: f6998ca683cdb4062d02e5e9308c4c75
docVersion: 1.0.25
speakeasyVersion: 1.277.4
generationVersion: 2.318.3
releaseVersion: 0.24.0
configChecksum: b7f7f456fc43b49fe96ef995812b1f3d
speakeasyVersion: 1.277.8
generationVersion: 2.319.10
releaseVersion: 0.24.1
configChecksum: ec00b0343aebdd16e57e67bcbfeacc64
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
published: true
features:
python:
constsAndDefaults: 0.1.3
core: 4.6.5
core: 4.6.7
examples: 2.81.3
globalSecurity: 2.83.5
globalServerURLs: 2.82.2
Expand All @@ -35,7 +35,6 @@ generatedFiles:
- src/unstructured_client/utils/retries.py
- src/unstructured_client/utils/utils.py
- src/unstructured_client/models/errors/sdkerror.py
- tests/helpers.py
- src/unstructured_client/models/operations/partition.py
- src/unstructured_client/models/shared/element.py
- src/unstructured_client/models/shared/validationerror.py
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
speakeasyVersion: 1.277.4
speakeasyVersion: 1.277.8
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:2cdcca9104196029e8767d3ac942bdab59a10bc70f0ca20ee5f1c6d80599a298
sourceBlobDigest: sha256:6183911555010d6d2a654aa1923db737b87677cacfb2046f286575d48b993006
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
tags:
- latest
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:2cdcca9104196029e8767d3ac942bdab59a10bc70f0ca20ee5f1c6d80599a298
sourceBlobDigest: sha256:6183911555010d6d2a654aa1923db737b87677cacfb2046f286575d48b993006
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
10 changes: 9 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -498,4 +498,12 @@ Based on:
- OpenAPI Doc
- Speakeasy CLI 1.277.4 (2.318.3) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.24.0] .
- [python v0.24.0] .

## 2024-05-03 00:19:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.24.1] .
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.24.0
version: 0.24.1
additionalDependencies:
dependencies:
deepdiff: '>=6.0'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='unstructured-client',
version='0.24.0',
version='0.24.1',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand Down
9 changes: 6 additions & 3 deletions src/unstructured_client/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,16 +55,19 @@ def do_request():
req = self.sdk_configuration.get_hooks().before_request(BeforeRequestContext(hook_ctx), req)
http_res = client.send(req)
except Exception as e:
_, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), None, e)
if e is not None:
raise e
_, err = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), None, e)
if err is not None:
raise err from e
raise e

if utils.match_status_codes(['422','4XX','5XX'], http_res.status_code):
result, e = self.sdk_configuration.get_hooks().after_error(AfterErrorContext(hook_ctx), http_res, None)
if e is not None:
raise e
if result is not None:
http_res = result
else:
raise errors.SDKError('Unexpected error occurred', -1, '', None)
else:
http_res = self.sdk_configuration.get_hooks().after_success(AfterSuccessContext(hook_ctx), http_res)

Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ class SDKConfiguration:
server: Optional[str] = ''
language: str = 'python'
openapi_doc_version: str = '1.0.25'
sdk_version: str = '0.24.0'
gen_version: str = '2.318.3'
user_agent: str = 'speakeasy-sdk/python 0.24.0 2.318.3 1.0.25 unstructured-client'
sdk_version: str = '0.24.1'
gen_version: str = '2.319.10'
user_agent: str = 'speakeasy-sdk/python 0.24.1 2.319.10 1.0.25 unstructured-client'
retry_config: Optional[RetryConfig] = None

def __post_init__(self):
Expand Down
61 changes: 0 additions & 61 deletions tests/helpers.py

This file was deleted.

0 comments on commit f620075

Please sign in to comment.