Skip to content

Commit 42a9a24

Browse files
github-actions[bot]speakeasybotawalker4
authored
chore: 🐝 Update SDK - Generate (#121)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/5969e484e45b07f1c14c78f621ee718a> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/f72de0f38cd597a806a71502c5287fb1> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.322.1 (2.354.2) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (264:12) ├─┬Paths │ └─┬/general/v0/general │ └──POST ├──Servers ├──Servers ├─┬Components │ ├─┬partition_parameters │ │ ├──files │ │ ├─┬output_format │ │ │ ├──[➕] enum (177:15) │ │ │ ├──[➕] enum (178:15) │ │ │ ├──[➖] enum (1:4212)❌ │ │ │ └──[➖] enum (1:4232)❌ │ │ ├─┬chunking_strategy │ │ │ └─┬ANYOF │ │ │ ├──[➕] enum (68:19) │ │ │ ├──[➕] enum (69:19) │ │ │ ├──[➕] enum (70:19) │ │ │ ├──[➕] enum (71:19) │ │ │ ├──[➖] enum (1:6248)❌ │ │ │ ├──[➖] enum (1:6257)❌ │ │ │ ├──[➖] enum (1:6268)❌ │ │ │ └──[➖] enum (1:6285)❌ │ │ └─┬strategy │ │ ├──[➕] enum (232:15) │ │ ├──[➕] enum (233:15) │ │ ├──[➕] enum (234:15) │ │ ├──[➕] enum (235:15) │ │ ├──[➖] enum (1:5403)❌ │ │ ├──[➖] enum (1:5377)❌ │ │ ├──[➖] enum (1:5385)❌ │ │ └──[➖] enum (1:5395)❌ │ ├─┬Element │ │ └──[🔀] example (6:9) │ ├─┬ServerError │ │ └──[🔀] example (36:9) │ ├─┬HTTPValidationError │ │ └──[🔀] example (19:9) │ └──ApiKeyAuth └─┬Extensions └──[🔀] x-speakeasy-retries (325:3) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | paths | 0 | 0 | | servers | 0 | 0 | | components | 23 | 10 | | info | 1 | 0 | ## PYTHON CHANGELOG ## core: 4.6.13 - 2024-06-21 ### 🔧 Chores - update contribution section wording *(commit by [@disintegrator](https://github.com/disintegrator))* ## core: 0.2.4 - 2024-06-21 ### 🔧 Chores - update contribution section wording *(commit by [@disintegrator](https://github.com/disintegrator))* ## core: 4.6.12 - 2024-06-20 ### 🐛 Bug Fixes - test response status codes in sdk methods in order of specificity *(commit by [@disintegrator](https://github.com/disintegrator))* ## core: 0.2.3 - 2024-06-20 ### 🐛 Bug Fixes - test response status codes in sdk methods in order of specificity *(commit by [@disintegrator](https://github.com/disintegrator))* ## core: 0.2.2 - 2024-06-19 ### 🐛 Bug Fixes - various fixes for field naming, typedict serialization and tests *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## core: 0.2.1 - 2024-06-19 ### 🐛 Bug Fixes - generation of reserved field names *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* ## core: 0.2.0 - 2024-06-18 ### 🐝 New Features - added support for structural typing *(commit by [@TristanSpeakEasy](https://github.com/tristanspeakeasy))* Co-authored-by: speakeasybot <[email protected]> Co-authored-by: Austin Walker <[email protected]>
1 parent 1dd7794 commit 42a9a24

File tree

9 files changed

+50
-27
lines changed

9 files changed

+50
-27
lines changed

Diff for: .speakeasy/gen.lock

+7-7
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: c7e23b3b8242eb21eccb2091bcc57c72
5-
docVersion: 1.0.35
6-
speakeasyVersion: 1.308.1
7-
generationVersion: 2.342.6
8-
releaseVersion: 0.23.7
9-
configChecksum: ace5c1ec7268837cec676d31f07d8337
4+
docChecksum: 7f66a0b37f7c9410adfa767ab853be37
5+
docVersion: 1.0.39
6+
speakeasyVersion: 1.322.1
7+
generationVersion: 2.354.2
8+
releaseVersion: 0.23.8
9+
configChecksum: f3dd7a4511cf2bc22ddb479fa03effba
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: 0.1.0
1717
constsAndDefaults: 0.1.3
18-
core: 4.6.11
18+
core: 4.6.13
1919
examples: 2.81.3
2020
globalSecurity: 2.83.5
2121
globalSecurityCallbacks: 0.1.0

Diff for: .speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.308.1
1+
speakeasyVersion: 1.322.1
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:5491f0ed917385a6505e2da173e898a2039fb131bf9cf5209426106b1efd09d5
6-
sourceBlobDigest: sha256:6f719e554e4b4829020cad9fe3db0747f49029d4961ea73b48ed0b94a9e9368e
5+
sourceRevisionDigest: sha256:03a5b2400a0c666b000349883823d4ac9ab293b11599805156c54efe31325e6b
6+
sourceBlobDigest: sha256:0fa8b3f2439934e2a1215d907f07b794569954dd381d7412f9f17627c4d46b67
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:5491f0ed917385a6505e2da173e898a2039fb131bf9cf5209426106b1efd09d5
15-
sourceBlobDigest: sha256:6f719e554e4b4829020cad9fe3db0747f49029d4961ea73b48ed0b94a9e9368e
14+
sourceRevisionDigest: sha256:03a5b2400a0c666b000349883823d4ac9ab293b11599805156c54efe31325e6b
15+
sourceBlobDigest: sha256:0fa8b3f2439934e2a1215d907f07b794569954dd381d7412f9f17627c4d46b67
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -544,4 +544,14 @@ Based on:
544544
### Generated
545545
- [python v0.23.7] .
546546
### Releases
547-
- [PyPI v0.23.7] https://pypi.org/project/unstructured-client/0.23.7 - .
547+
- [PyPI v0.23.7] https://pypi.org/project/unstructured-client/0.23.7 - .
548+
549+
## 2024-06-28 00:20:41
550+
### Changes
551+
Based on:
552+
- OpenAPI Doc
553+
- Speakeasy CLI 1.322.1 (2.354.2) https://github.com/speakeasy-api/speakeasy
554+
### Generated
555+
- [python v0.23.8] .
556+
### Releases
557+
- [PyPI v0.23.8] https://pypi.org/project/unstructured-client/0.23.8 - .

Diff for: docs/models/errors/detail.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
## Supported Types
55

6-
###
6+
### `List[shared.ValidationError]`
77

88
```python
9-
detail: List[shared.ValidationError] = /* values here */
9+
value: List[shared.ValidationError] = /* values here */
1010
```
1111

12-
###
12+
### `str`
1313

1414
```python
15-
detail: str = /* values here */
15+
value: str = /* values here */
1616
```
1717

Diff for: docs/models/shared/loc.md

+4-4
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,15 @@
33

44
## Supported Types
55

6-
###
6+
### `str`
77

88
```python
9-
loc: str = /* values here */
9+
value: str = /* values here */
1010
```
1111

12-
###
12+
### `int`
1313

1414
```python
15-
loc: int = /* values here */
15+
value: int = /* values here */
1616
```
1717

Diff for: gen.yaml

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.23.7
13+
version: 0.23.8
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'
@@ -40,3 +40,4 @@ python:
4040
packageName: unstructured-client
4141
projectUrls: {}
4242
responseFormat: envelope
43+
templateVersion: v1

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

Diff for: 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.35'
32-
sdk_version: str = '0.23.7'
33-
gen_version: str = '2.342.6'
34-
user_agent: str = 'speakeasy-sdk/python 0.23.7 2.342.6 1.0.35 unstructured-client'
31+
openapi_doc_version: str = '1.0.39'
32+
sdk_version: str = '0.23.8'
33+
gen_version: str = '2.354.2'
34+
user_agent: str = 'speakeasy-sdk/python 0.23.8 2.354.2 1.0.39 unstructured-client'
3535
retry_config: Optional[RetryConfig] = None
3636

3737
def __post_init__(self):

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

+12
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,9 @@ def bigintencode(val: int):
904904

905905

906906
def bigintdecoder(val):
907+
if val is None:
908+
return None
909+
907910
if isinstance(val, float):
908911
raise ValueError(f"{val} is a float")
909912
return int(val)
@@ -918,6 +921,9 @@ def integerstrencode(val: int):
918921

919922

920923
def integerstrdecoder(val):
924+
if val is None:
925+
return None
926+
921927
if isinstance(val, float):
922928
raise ValueError(f"{val} is a float")
923929
return int(val)
@@ -933,6 +939,9 @@ def numberstrencode(val: float):
933939

934940

935941
def numberstrdecoder(val):
942+
if val is None:
943+
return None
944+
936945
return float(val)
937946

938947

@@ -950,6 +959,9 @@ def decimalencode(val: Decimal):
950959

951960

952961
def decimaldecoder(val):
962+
if val is None:
963+
return None
964+
953965
return Decimal(str(val))
954966

955967

0 commit comments

Comments
 (0)