Skip to content

Commit d024671

Browse files
chore: 🐝 Update SDK - Generate (#103)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/3e795a6256b831d5e06d88f7de6a2c8e> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/6e7a2cdf826d348d08b58a5bdc67ab94> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (1:80) └─┬Components ├─┬partition_parameters │ ├─┬include_orig_elements │ │ └─┬ANYOF │ │ └──[➖] default (1:6572)❌ │ ├─┬gz_uncompressed_content_type │ │ └─┬ANYOF │ │ └──[➖] default (1:3038)❌ │ ├─┬hi_res_model_name │ │ └─┬ANYOF │ │ └──[➖] default (1:3918)❌ │ ├─┬chunking_strategy │ │ └─┬ANYOF │ │ └──[➖] default (1:5933)❌ │ ├─┬new_after_n_chars │ │ ├─┬ANYOF │ │ │ └──[🔀] type (1:7552)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (1:7590)❌ │ │ └──[➖] default (1:7334)❌ │ ├─┬combine_under_n_chars │ │ ├─┬ANYOF │ │ │ └──[🔀] type (1:6539)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (1:6577)❌ │ │ └──[➖] default (1:6270)❌ │ ├─┬starting_page_number │ │ ├─┬ANYOF │ │ │ └──[🔀] type (1:5818)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (1:5856)❌ │ │ └──[➖] default (1:5515)❌ │ ├─┬similarity_threshold │ │ └─┬ANYOF │ │ └──[➖] default (1:8329)❌ │ ├─┬max_characters │ │ ├─┬ANYOF │ │ │ └──[🔀] type (1:7104)❌ │ │ └─┬ANYOF │ │ ├──[🔀] type (1:7142)❌ │ │ └──[➖] default (1:6869)❌ │ └─┬encoding │ └─┬ANYOF │ └──[➖] default (1:3707)❌ └─┬Element ├──[➕] additionalProperties (1:1799)❌ ├──[➖] required (1:9654)❌ ├──[➖] required (1:9662)❌ ├──[➖] required (1:9676)❌ ├──[➖] required (1:9688)❌ ├──[➕] example (1:1816) ├──[➖] properties (1:9467)❌ ├──[➖] properties (1:9524)❌ ├──[➖] properties (1:9577)❌ └──[➖] properties (1:9422)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 28 | 27 | ## PYTHON CHANGELOG ## core: 4.6.9 - 2024-06-03 ### 🐛 Bug Fixes - handle empty responses in webhooks *(commit by [@disintegrator](https://github.com/disintegrator))* Co-authored-by: speakeasybot <[email protected]>
1 parent 8e03f91 commit d024671

File tree

13 files changed

+36
-73
lines changed

13 files changed

+36
-73
lines changed

Diff for: .speakeasy/gen.lock

+9-12
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: 95cf473b65c812e2a731bc586e691f89
5-
docVersion: 1.0.32
6-
speakeasyVersion: 1.299.4
7-
generationVersion: 2.338.7
8-
releaseVersion: 0.27.0
9-
configChecksum: f30a94fe7726e498bf687d6aefa48ec4
4+
docChecksum: 2cabb51a37782b691a9f16fbbf8df52b
5+
docVersion: 1.0.33
6+
speakeasyVersion: 1.299.6
7+
generationVersion: 2.338.12
8+
releaseVersion: 0.27.1
9+
configChecksum: be7515df9b3a3a127ec54c60f405dc64
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.8
18+
core: 4.6.9
1919
examples: 2.81.3
2020
globalSecurity: 2.83.5
2121
globalSecurityCallbacks: 0.1.0
@@ -43,19 +43,17 @@ generatedFiles:
4343
- src/unstructured_client/utils/utils.py
4444
- src/unstructured_client/models/errors/sdkerror.py
4545
- src/unstructured_client/models/operations/partition.py
46-
- src/unstructured_client/models/shared/element.py
46+
- src/unstructured_client/models/errors/httpvalidationerror.py
4747
- src/unstructured_client/models/shared/validationerror.py
4848
- src/unstructured_client/models/shared/partition_parameters.py
4949
- src/unstructured_client/models/shared/security.py
50-
- src/unstructured_client/models/errors/httpvalidationerror.py
5150
- src/unstructured_client/models/__init__.py
5251
- src/unstructured_client/models/errors/__init__.py
5352
- src/unstructured_client/models/operations/__init__.py
5453
- src/unstructured_client/models/shared/__init__.py
5554
- docs/models/operations/partitionrequest.md
5655
- docs/models/operations/partitionresponse.md
57-
- docs/models/shared/metadata.md
58-
- docs/models/shared/element.md
56+
- docs/models/errors/httpvalidationerror.md
5957
- docs/models/shared/loc.md
6058
- docs/models/shared/validationerror.md
6159
- docs/models/shared/chunkingstrategy.md
@@ -64,7 +62,6 @@ generatedFiles:
6462
- docs/models/shared/strategy.md
6563
- docs/models/shared/partitionparameters.md
6664
- docs/models/shared/security.md
67-
- docs/models/errors/httpvalidationerror.md
6865
- USAGE.md
6966
- .gitattributes
7067
- src/unstructured_client/_hooks/sdkhooks.py

Diff for: .speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.299.4
1+
speakeasyVersion: 1.299.6
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:1f77ecb5a93c98a2666959cc431213df275eb3daf04c08c78f76b4d28579d765
6-
sourceBlobDigest: sha256:823dd5db79564693f9fe02a562840c3fe02a6cd546917e9bac7aecd60dd8c260
5+
sourceRevisionDigest: sha256:90bd16aaed9a9bfefbf815e309c927f19491bd472b7c1f7f56dab7bf4a4c2dc7
6+
sourceBlobDigest: sha256:6d2271499f0b5dd811144b3e1857443c6401e45229627f3078f88672f655334c
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:1f77ecb5a93c98a2666959cc431213df275eb3daf04c08c78f76b4d28579d765
15-
sourceBlobDigest: sha256:823dd5db79564693f9fe02a562840c3fe02a6cd546917e9bac7aecd60dd8c260
14+
sourceRevisionDigest: sha256:90bd16aaed9a9bfefbf815e309c927f19491bd472b7c1f7f56dab7bf4a4c2dc7
15+
sourceBlobDigest: sha256:6d2271499f0b5dd811144b3e1857443c6401e45229627f3078f88672f655334c
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

Diff for: RELEASES.md

+9-1
Original file line numberDiff line numberDiff line change
@@ -562,4 +562,12 @@ Based on:
562562
- OpenAPI Doc
563563
- Speakeasy CLI 1.299.4 (2.338.7) https://github.com/speakeasy-api/speakeasy
564564
### Generated
565-
- [python v0.27.0] .
565+
- [python v0.27.0] .
566+
567+
## 2024-06-04 02:44:17
568+
### Changes
569+
Based on:
570+
- OpenAPI Doc
571+
- Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy
572+
### Generated
573+
- [python v0.27.1] .

Diff for: docs/models/operations/partitionresponse.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,4 @@
88
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1010
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
11-
| `elements` | List[[shared.Element](../../models/shared/element.md)] | :heavy_minus_sign: | Successful Response |
11+
| `elements` | List[Dict[str, *Any*]] | :heavy_minus_sign: | Successful Response |

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

-11
This file was deleted.

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

-7
This file was deleted.

Diff for: 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.27.0
13+
version: 0.27.1
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

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

Diff for: src/unstructured_client/general.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,10 @@
22

33
import requests as requests_http
44
from .sdkconfiguration import SDKConfiguration
5-
from typing import List, Optional
5+
from typing import Any, Dict, List, Optional
66
from unstructured_client import utils
77
from unstructured_client._hooks import AfterErrorContext, AfterSuccessContext, BeforeRequestContext, HookContext
8-
from unstructured_client.models import errors, operations, shared
8+
from unstructured_client.models import errors, operations
99

1010
class General:
1111
sdk_configuration: SDKConfiguration
@@ -83,7 +83,7 @@ def do_request():
8383
if http_res.status_code == 200:
8484
# pylint: disable=no-else-return
8585
if utils.match_content_type(http_res.headers.get('Content-Type') or '', 'application/json'):
86-
out = utils.unmarshal_json(http_res.text, Optional[List[shared.Element]])
86+
out = utils.unmarshal_json(http_res.text, Optional[List[Dict[str, Any]]])
8787
res.elements = out
8888
else:
8989
content_type = http_res.headers.get('Content-Type')

Diff for: src/unstructured_client/models/operations/partition.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,8 @@
33
from __future__ import annotations
44
import dataclasses
55
import requests as requests_http
6-
from ...models.shared import element as shared_element
76
from ...models.shared import partition_parameters as shared_partition_parameters
8-
from typing import List, Optional
7+
from typing import Any, Dict, List, Optional
98

109

1110
@dataclasses.dataclass
@@ -25,7 +24,7 @@ class PartitionResponse:
2524
r"""HTTP response status code for this operation"""
2625
raw_response: requests_http.Response = dataclasses.field()
2726
r"""Raw HTTP response; suitable for custom response parsing"""
28-
elements: Optional[List[shared_element.Element]] = dataclasses.field(default=None)
27+
elements: Optional[List[Dict[str, Any]]] = dataclasses.field(default=None)
2928
r"""Successful Response"""
3029

3130

Diff for: src/unstructured_client/models/shared/__init__.py

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
"""Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT."""
22

3-
from .element import *
43
from .partition_parameters import *
54
from .security import *
65
from .validationerror import *
76

8-
__all__ = ["ChunkingStrategy","Element","Files","Loc","Metadata","OutputFormat","PartitionParameters","Security","Strategy","ValidationError"]
7+
__all__ = ["ChunkingStrategy","Files","Loc","OutputFormat","PartitionParameters","Security","Strategy","ValidationError"]

Diff for: src/unstructured_client/models/shared/element.py

-22
This file was deleted.

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.32'
32-
sdk_version: str = '0.27.0'
33-
gen_version: str = '2.338.7'
34-
user_agent: str = 'speakeasy-sdk/python 0.27.0 2.338.7 1.0.32 unstructured-client'
31+
openapi_doc_version: str = '1.0.33'
32+
sdk_version: str = '0.27.1'
33+
gen_version: str = '2.338.12'
34+
user_agent: str = 'speakeasy-sdk/python 0.27.1 2.338.12 1.0.33 unstructured-client'
3535
retry_config: Optional[RetryConfig] = None
3636

3737
def __post_init__(self):

0 commit comments

Comments
 (0)