Skip to content

Commit f19a667

Browse files
chore: 🐝 Update SDK - Generate (Unstructured-IO#79)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/2a0b1089aa3e7d0258a1437cf3a2adcd> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/6152a89e4db5d49ce891d6e9d07d94ac> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.280.1 (2.322.5) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` └─┬Info └──[🔀] version (1:80) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | ## PYTHON CHANGELOG ## 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))* ## globalServerURLs: 2.82.2 - 2024-03-06 ### 🔧 Chores - expand server selection test coverage *(commit by [@2ynn](https://github.com/2ynn))* ## 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))* ## responseFormat: 0.1.0 - 2024-03-02 ### 🐝 New Features - add support for response formats and flat responses *(commit by [@TristanSpeakEasy](https://github.com/TristanSpeakeasy))* ## 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))* ## examples: 2.81.3 - 2023-10-17 ### 🔧 Chores - remove multi word generated examples *(commit by [@ThomasRooney](https://github.com/ThomasRooney))* ## constsAndDefaults: 0.1.3 - 2024-03-01 ### 🐛 Bug Fixes - null enums are coerced into null consts *(commit by [@disintegrator](https://github.com/disintegrator))* ## globalSecurity: 2.83.5 - 2024-03-15 ### 🐛 Bug Fixes - fixed hoisting of operation security *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* Co-authored-by: speakeasybot <[email protected]>
1 parent 0665531 commit f19a667

File tree

7 files changed

+54
-18
lines changed

7 files changed

+54
-18
lines changed

.speakeasy/gen.lock

+6-6
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: f6998ca683cdb4062d02e5e9308c4c75
5-
docVersion: 1.0.25
6-
speakeasyVersion: 1.277.8
7-
generationVersion: 2.319.10
8-
releaseVersion: 0.24.1
9-
configChecksum: ec00b0343aebdd16e57e67bcbfeacc64
4+
docChecksum: 8c80286cc06f367a126edd92a615fdf5
5+
docVersion: 1.0.26
6+
speakeasyVersion: 1.280.1
7+
generationVersion: 2.322.5
8+
releaseVersion: 0.24.2
9+
configChecksum: 4e49bc747544dac3fae7a44c5c3e16b3
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git

.speakeasy/workflow.lock

+6-5
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,18 @@
1-
speakeasyVersion: 1.277.8
1+
speakeasyVersion: 1.280.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
6-
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
5+
sourceRevisionDigest: sha256:b4b040682a829d1b5599c3840b0e576319c743160f04e7ccde6185b723c651e4
6+
sourceBlobDigest: sha256:7562c49d5efef52b65c748e5d68cf8d21e14c8011b5653c4d48abed47f52e785
77
tags:
88
- latest
9+
- main
910
targets:
1011
unstructured-python:
1112
source: my-source
1213
sourceNamespace: my-source
13-
sourceRevisionDigest: sha256:9f7a8e891310d27b223505073edb2f2a9c97274004bc013caa1a38ebce0da615
14-
sourceBlobDigest: sha256:da064894d08172dcf69aa144bbca591e35afbe2b765bd6cf15fbe7ce54d0e389
14+
sourceRevisionDigest: sha256:b4b040682a829d1b5599c3840b0e576319c743160f04e7ccde6185b723c651e4
15+
sourceBlobDigest: sha256:7562c49d5efef52b65c748e5d68cf8d21e14c8011b5653c4d48abed47f52e785
1516
outLocation: /github/workspace/repo
1617
workflow:
1718
workflowVersion: 1.0.0

RELEASES.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -506,4 +506,12 @@ Based on:
506506
- OpenAPI Doc
507507
- Speakeasy CLI 1.277.8 (2.319.10) https://github.com/speakeasy-api/speakeasy
508508
### Generated
509-
- [python v0.24.1] .
509+
- [python v0.24.1] .
510+
511+
## 2024-05-07 00:19:38
512+
### Changes
513+
Based on:
514+
- OpenAPI Doc
515+
- Speakeasy CLI 1.280.1 (2.322.5) https://github.com/speakeasy-api/speakeasy
516+
### Generated
517+
- [python v0.24.2] .

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.1
13+
version: 0.24.2
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.1',
22+
version='0.24.2',
2323
author='Unstructured',
2424
description='Python Client SDK for Unstructured API',
2525
license = 'MIT',

src/unstructured_client/sdkconfiguration.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,10 @@ class SDKConfiguration:
2828
server_url: Optional[str] = ''
2929
server: Optional[str] = ''
3030
language: str = 'python'
31-
openapi_doc_version: str = '1.0.25'
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'
31+
openapi_doc_version: str = '1.0.26'
32+
sdk_version: str = '0.24.2'
33+
gen_version: str = '2.322.5'
34+
user_agent: str = 'speakeasy-sdk/python 0.24.2 2.322.5 1.0.26 unstructured-client'
3535
retry_config: Optional[RetryConfig] = None
3636

3737
def __post_init__(self):

src/unstructured_client/utils/utils.py

+27
Original file line numberDiff line numberDiff line change
@@ -908,6 +908,33 @@ def bigintdecoder(val):
908908
raise ValueError(f"{val} is a float")
909909
return int(val)
910910

911+
def integerstrencoder(optional: bool):
912+
def integerstrencode(val: int):
913+
if optional and val is None:
914+
return None
915+
return str(val)
916+
917+
return integerstrencode
918+
919+
920+
def integerstrdecoder(val):
921+
if isinstance(val, float):
922+
raise ValueError(f"{val} is a float")
923+
return int(val)
924+
925+
926+
def numberstrencoder(optional: bool):
927+
def numberstrencode(val: float):
928+
if optional and val is None:
929+
return None
930+
return str(val)
931+
932+
return numberstrencode
933+
934+
935+
def numberstrdecoder(val):
936+
return float(val)
937+
911938

912939
def decimalencoder(optional: bool, as_str: bool):
913940
def decimalencode(val: Decimal):

0 commit comments

Comments
 (0)