Skip to content

Commit c9996a1

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.90.0
1 parent 4ab131b commit c9996a1

File tree

10 files changed

+93
-13
lines changed

10 files changed

+93
-13
lines changed

Diff for: README.md

+70
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,76 @@ s.config_server_url("https://my-hosted-api")
7373

7474
<!-- End Dev Containers -->
7575

76+
77+
78+
## SDK Example Usage
79+
<!-- Start SDK Example Usage -->
80+
81+
82+
```python
83+
import unstructured_client
84+
from unstructured_client.models import shared
85+
86+
s = unstructured_client.UnstructuredClient(
87+
security=shared.Security(
88+
api_key_auth="YOUR_API_KEY",
89+
),
90+
)
91+
92+
req = shared.PartitionParameters(
93+
coordinates=False,
94+
encoding='utf-8',
95+
files=shared.PartitionParametersFiles(
96+
content='distinctio'.encode(),
97+
files='quibusdam',
98+
),
99+
gz_uncompressed_content_type='application/pdf',
100+
hi_res_model_name='yolox',
101+
include_page_breaks=False,
102+
ocr_languages=[
103+
'eng',
104+
],
105+
output_format='application/json',
106+
pdf_infer_table_structure=False,
107+
skip_infer_table_types=[
108+
'pdf',
109+
],
110+
strategy='hi_res',
111+
xml_keep_tags=False,
112+
)
113+
114+
res = s.general.partition(req)
115+
116+
if res.elements is not None:
117+
# handle response
118+
```
119+
<!-- End SDK Example Usage -->
120+
121+
122+
123+
<!-- Start SDK Available Operations -->
124+
## Available Resources and Operations
125+
126+
127+
### [General](docs/sdks/general/README.md)
128+
129+
* [partition](docs/sdks/general/README.md#partition) - Pipeline 1
130+
<!-- End SDK Available Operations -->
131+
132+
133+
134+
<!-- Start Pagination -->
135+
# Pagination
136+
137+
Some of the endpoints in this SDK support pagination. To use pagination, you make your SDK calls as usual, but the
138+
returned response object will have a `Next` method that can be called to pull down the next group of results. If the
139+
return value of `Next` is `None`, then there are no more pages to be fetched.
140+
141+
Here's an example of one such pagination call:
142+
143+
144+
<!-- End Pagination -->
145+
76146
<!-- Placeholder for Future Speakeasy SDK Sections -->
77147

78148
### Maturity

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -84,4 +84,14 @@ Based on:
8484
### Generated
8585
- [python v0.5.0] .
8686
### Releases
87-
- [PyPI v0.5.0] https://pypi.org/project/unstructured-client/0.5.0 - .
87+
- [PyPI v0.5.0] https://pypi.org/project/unstructured-client/0.5.0 - .
88+
89+
## 2023-09-22 18:07:49
90+
### Changes
91+
Based on:
92+
- OpenAPI Doc 0.0.1
93+
- Speakeasy CLI 1.90.0 (2.125.1) https://github.com/speakeasy-api/speakeasy
94+
### Generated
95+
- [python v0.5.1] .
96+
### Releases
97+
- [PyPI v0.5.1] https://pypi.org/project/unstructured-client/0.5.1 - .

Diff for: USAGE.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ req = shared.PartitionParameters(
3535

3636
res = s.general.partition(req)
3737

38-
if res.partition_200_application_json_any is not None:
38+
if res.elements is not None:
3939
# handle response
4040
```
4141
<!-- End SDK Example Usage -->

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,6 @@
66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
88
| `content_type` | *str* | :heavy_check_mark: | N/A |
9+
| `elements` | list[*Any*] | :heavy_minus_sign: | Successful Response |
910
| `status_code` | *int* | :heavy_check_mark: | N/A |
10-
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11-
| `partition_200_application_json_any` | *Optional[Any]* | :heavy_minus_sign: | Successful Response |
11+
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |

Diff for: docs/sdks/general/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ req = shared.PartitionParameters(
4444

4545
res = s.general.partition(req)
4646

47-
if res.partition_200_application_json_any is not None:
47+
if res.elements is not None:
4848
# handle response
4949
```
5050

Diff for: gen.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: cc03d89cb6fb271665ed6c9eff312ff0
3+
docChecksum: f332d5b484fbeb4689b0c548694f5a69
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.89.0
5+
speakeasyVersion: 1.90.0
66
generationVersion: 2.125.1
77
generation:
88
comments:
@@ -23,7 +23,7 @@ features:
2323
retries: 2.82.0
2424
serverIDs: 2.81.1
2525
python:
26-
version: 0.5.0
26+
version: 0.5.1
2727
author: Unstructured
2828
clientServerStatusCodesAsErrors: true
2929
description: Python Client SDK Generated by Speakeasy

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.5.0",
13+
version="0.5.1",
1414
author="Unstructured",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

Diff for: src/unstructured_client/general.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -46,8 +46,8 @@ def do_request():
4646

4747
if http_res.status_code == 200:
4848
if utils.match_content_type(content_type, 'application/json'):
49-
out = utils.unmarshal_json(http_res.text, Optional[Any])
50-
res.partition_200_application_json_any = out
49+
out = utils.unmarshal_json(http_res.text, Optional[list[Any]])
50+
res.elements = out
5151
else:
5252
raise errors.SDKError(f'unknown content-type received: {content_type}', http_res.status_code, http_res.text, http_res)
5353
elif http_res.status_code == 422:

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
class PartitionResponse:
1212
content_type: str = dataclasses.field()
1313
status_code: int = dataclasses.field()
14-
partition_200_application_json_any: Optional[Any] = dataclasses.field(default=None)
14+
elements: Optional[list[Any]] = dataclasses.field(default=None)
1515
r"""Successful Response"""
1616
raw_response: Optional[requests_http.Response] = dataclasses.field(default=None)
1717

Diff for: src/unstructured_client/sdkconfiguration.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ class SDKConfiguration:
2525
server: str = ''
2626
language: str = 'python'
2727
openapi_doc_version: str = '0.0.1'
28-
sdk_version: str = '0.5.0'
28+
sdk_version: str = '0.5.1'
2929
gen_version: str = '2.125.1'
3030
retry_config: RetryConfig = None
3131

0 commit comments

Comments
 (0)