Skip to content

Commit ab94fdc

Browse files
authored
Merge pull request #23 from Unstructured-IO/speakeasy-sdk-regen-1704500371
chore: 🐝 Update SDK - Generate
2 parents e4efe01 + 1c75271 commit ab94fdc

File tree

9 files changed

+29
-12
lines changed

9 files changed

+29
-12
lines changed

Diff for: .speakeasy/gen.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: bf57420eebd40f2b1d166092f01e3927
4+
docChecksum: 559aacf6828c62bd379326645382b3ba
55
docVersion: 0.0.1
66
speakeasyVersion: internal
7-
generationVersion: 2.225.2
8-
releaseVersion: 0.15.1
9-
configChecksum: 522a54d9ee1c9007d9986dcf21cb7fd1
7+
generationVersion: 2.228.1
8+
releaseVersion: 0.15.2
9+
configChecksum: c7f5587d10f16ad71c809e8627e64175
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1313
published: true
1414
features:
1515
python:
16-
core: 4.4.0
16+
core: 4.4.1
1717
examples: 2.81.3
1818
globalSecurity: 2.83.1
1919
globalServerURLs: 2.82.1

Diff for: README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ s = unstructured_client.UnstructuredClient(
9494
<!-- Start Custom HTTP Client [http-client] -->
9595
## Custom HTTP Client
9696

97-
The Python SDK makes API calls using the (requests)[https://pypi.org/project/requests/] HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
97+
The Python SDK makes API calls using the [requests](https://pypi.org/project/requests/) HTTP library. In order to provide a convenient way to configure timeouts, cookies, proxies, custom headers, and other low-level configuration, you can initialize the SDK client with a custom `requests.Session` object.
9898

9999
For example, you could specify a header for every request that this sdk makes as follows:
100100
```python

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -324,4 +324,14 @@ Based on:
324324
### Generated
325325
- [python v0.15.1] .
326326
### Releases
327-
- [PyPI v0.15.1] https://pypi.org/project/unstructured-client/0.15.1 - .
327+
- [PyPI v0.15.1] https://pypi.org/project/unstructured-client/0.15.1 - .
328+
329+
## 2024-01-06 00:19:29
330+
### Changes
331+
Based on:
332+
- OpenAPI Doc 0.0.1
333+
- Speakeasy CLI 1.133.1 (2.228.1) https://github.com/speakeasy-api/speakeasy
334+
### Generated
335+
- [python v0.15.2] .
336+
### Releases
337+
- [PyPI v0.15.2] https://pypi.org/project/unstructured-client/0.15.2 - .

Diff for: USAGE.md

+4
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,10 @@ req = shared.PartitionParameters(
1111
chunking_strategy='by_title',
1212
combine_under_n_chars=500,
1313
encoding='utf-8',
14+
extract_image_block_types=[
15+
'image',
16+
'table',
17+
],
1418
files=shared.Files(
1519
content='0x2cC94b2FEF'.encode(),
1620
file_name='um.shtml',

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

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
| `combine_under_n_chars` | *Optional[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | 500 |
1010
| `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If true, return coordinates for each element. Default: false | |
1111
| `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | utf-8 |
12+
| `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields | ["image","table"] |
1213
| `files` | [Optional[shared.Files]](../../models/shared/files.md) | :heavy_minus_sign: | The file to extract | |
1314
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
1415
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |

Diff for: gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ generation:
66
fixes:
77
nameResolutionDec2023: false
88
python:
9-
version: 0.15.1
9+
version: 0.15.2
1010
author: Unstructured
1111
clientServerStatusCodesAsErrors: true
1212
description: Python Client SDK for Unstructured API

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.15.1",
13+
version="0.15.2",
1414
author="Unstructured",
1515
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,

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

+2
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,8 @@ class PartitionParameters:
2323
r"""If true, return coordinates for each element. Default: false"""
2424
encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }})
2525
r"""The encoding method used to decode the text input. Default: utf-8"""
26+
extract_image_block_types: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'extract_image_block_types' }})
27+
r"""The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields"""
2628
files: Optional[Files] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }})
2729
r"""The file to extract"""
2830
gz_uncompressed_content_type: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'gz_uncompressed_content_type' }})

Diff for: src/unstructured_client/sdkconfiguration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,9 @@ class SDKConfiguration:
2727
server: str = ''
2828
language: str = 'python'
2929
openapi_doc_version: str = '0.0.1'
30-
sdk_version: str = '0.15.1'
31-
gen_version: str = '2.225.2'
32-
user_agent: str = 'speakeasy-sdk/python 0.15.1 2.225.2 0.0.1 unstructured-client'
30+
sdk_version: str = '0.15.2'
31+
gen_version: str = '2.228.1'
32+
user_agent: str = 'speakeasy-sdk/python 0.15.2 2.228.1 0.0.1 unstructured-client'
3333
retry_config: RetryConfig = None
3434

3535
def get_server_details(self) -> Tuple[str, Dict[str, str]]:

0 commit comments

Comments
 (0)