Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate (#121)
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/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]>
  • Loading branch information
3 people authored Jun 28, 2024
1 parent 1dd7794 commit 42a9a24
Show file tree
Hide file tree
Showing 9 changed files with 50 additions and 27 deletions.
14 changes: 7 additions & 7 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
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
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
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 - .
- [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 - .
8 changes: 4 additions & 4 deletions docs/models/errors/detail.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
```

8 changes: 4 additions & 4 deletions docs/models/shared/loc.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
```

3 changes: 2 additions & 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.23.7
version: 0.23.8
additionalDependencies:
dependencies:
deepdiff: '>=6.0'
Expand Down Expand Up @@ -40,3 +40,4 @@ python:
packageName: unstructured-client
projectUrls: {}
responseFormat: envelope
templateVersion: v1
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.23.7',
version='0.23.8',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand Down
8 changes: 4 additions & 4 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -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):
Expand Down
12 changes: 12 additions & 0 deletions src/unstructured_client/utils/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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)
Expand All @@ -933,6 +939,9 @@ def numberstrencode(val: float):


def numberstrdecoder(val):
if val is None:
return None

return float(val)


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


def decimaldecoder(val):
if val is None:
return None

return Decimal(str(val))


Expand Down

0 comments on commit 42a9a24

Please sign in to comment.