Skip to content

chore: 🐝 Update SDK - Generate #121

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jun 28, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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