Skip to content

Commit f4d2f52

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.86.0
1 parent 7f5a6b7 commit f4d2f52

24 files changed

+283
-288
lines changed

Diff for: README.md

+24-40
Original file line numberDiff line numberDiff line change
@@ -20,55 +20,39 @@ pip install unstructured-client
2020

2121
```python
2222
import unstructured
23-
from unstructured.models import operations, shared
23+
from unstructured.models import shared
2424

2525
s = unstructured.Unstructured(
2626
security=shared.Security(
2727
api_key_auth="YOUR_API_KEY",
2828
),
2929
)
3030

31-
req = operations.PartitionRequest(
32-
document_submission=shared.DocumentSubmission(
33-
coordinates=[
34-
'corrupti',
35-
],
36-
encoding=[
37-
'provident',
38-
],
39-
files=[
40-
'distinctio'.encode(),
41-
],
42-
gz_uncompressed_content_type='quibusdam',
43-
hi_res_model_name=[
44-
'unde',
45-
],
46-
include_page_breaks=[
47-
'nulla',
48-
],
49-
ocr_languages=[
50-
'corrupti',
51-
],
52-
output_format='illum',
53-
pdf_infer_table_structure=[
54-
'vel',
55-
],
56-
skip_infer_table_types=[
57-
'error',
58-
],
59-
strategy=[
60-
'deserunt',
61-
],
62-
xml_keep_tags=[
63-
'suscipit',
64-
],
31+
req = shared.PartitionParameters(
32+
coordinates=False,
33+
encoding='utf-8',
34+
files=shared.PartitionParametersFiles(
35+
content='corrupti'.encode(),
36+
files='provident',
6537
),
66-
unstructured_api_key='iure',
38+
gz_uncompressed_content_type='application/pdf',
39+
hi_res_model_name='yolox',
40+
include_page_breaks=False,
41+
ocr_languages=[
42+
'eng',
43+
],
44+
output_format='application/json',
45+
pdf_infer_table_structure=False,
46+
skip_infer_table_types=[
47+
'pdf',
48+
],
49+
strategy='hi_res',
50+
xml_keep_tags=False,
6751
)
6852

69-
res = s.document.partition(req)
53+
res = s.general.partition(req)
7054

71-
if res.success is not None:
55+
if res.partition_200_application_json_any is not None:
7256
# handle response
7357
```
7458
<!-- End SDK Example Usage -->
@@ -77,9 +61,9 @@ if res.success is not None:
7761
## Available Resources and Operations
7862

7963

80-
### [document](docs/sdks/document/README.md)
64+
### [General](docs/sdks/general/README.md)
8165

82-
* [partition](docs/sdks/document/README.md#partition) - Pipeline 1
66+
* [partition](docs/sdks/general/README.md#partition) - Pipeline 1
8367
<!-- End SDK Available Operations -->
8468

8569
### Maturity

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,14 @@ Based on:
2424
### Generated
2525
- [python v0.1.2] .
2626
### Releases
27-
- [PyPI v0.1.2] https://pypi.org/project/unstructured-client/0.1.2 - .
27+
- [PyPI v0.1.2] https://pypi.org/project/unstructured-client/0.1.2 - .
28+
29+
## 2023-09-15 21:39:17
30+
### Changes
31+
Based on:
32+
- OpenAPI Doc 0.0.1
33+
- Speakeasy CLI 1.86.0 (2.115.2) https://github.com/speakeasy-api/speakeasy
34+
### Generated
35+
- [python v0.1.3] .
36+
### Releases
37+
- [PyPI v0.1.3] https://pypi.org/project/unstructured-client/0.1.3 - .

Diff for: USAGE.md

+22-38
Original file line numberDiff line numberDiff line change
@@ -3,55 +3,39 @@
33

44
```python
55
import unstructured
6-
from unstructured.models import operations, shared
6+
from unstructured.models import shared
77

88
s = unstructured.Unstructured(
99
security=shared.Security(
1010
api_key_auth="YOUR_API_KEY",
1111
),
1212
)
1313

14-
req = operations.PartitionRequest(
15-
document_submission=shared.DocumentSubmission(
16-
coordinates=[
17-
'corrupti',
18-
],
19-
encoding=[
20-
'provident',
21-
],
22-
files=[
23-
'distinctio'.encode(),
24-
],
25-
gz_uncompressed_content_type='quibusdam',
26-
hi_res_model_name=[
27-
'unde',
28-
],
29-
include_page_breaks=[
30-
'nulla',
31-
],
32-
ocr_languages=[
33-
'corrupti',
34-
],
35-
output_format='illum',
36-
pdf_infer_table_structure=[
37-
'vel',
38-
],
39-
skip_infer_table_types=[
40-
'error',
41-
],
42-
strategy=[
43-
'deserunt',
44-
],
45-
xml_keep_tags=[
46-
'suscipit',
47-
],
14+
req = shared.PartitionParameters(
15+
coordinates=False,
16+
encoding='utf-8',
17+
files=shared.PartitionParametersFiles(
18+
content='corrupti'.encode(),
19+
files='provident',
4820
),
49-
unstructured_api_key='iure',
21+
gz_uncompressed_content_type='application/pdf',
22+
hi_res_model_name='yolox',
23+
include_page_breaks=False,
24+
ocr_languages=[
25+
'eng',
26+
],
27+
output_format='application/json',
28+
pdf_infer_table_structure=False,
29+
skip_infer_table_types=[
30+
'pdf',
31+
],
32+
strategy='hi_res',
33+
xml_keep_tags=False,
5034
)
5135

52-
res = s.document.partition(req)
36+
res = s.general.partition(req)
5337

54-
if res.success is not None:
38+
if res.partition_200_application_json_any is not None:
5539
# handle response
5640
```
5741
<!-- End SDK Example Usage -->

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

-9
This file was deleted.

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: | N/A |
99
| `status_code` | *int* | :heavy_check_mark: | N/A |
1010
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | N/A |
11-
| `success` | [Optional[shared.Success]](../../models/shared/success.md) | :heavy_minus_sign: | Successful Response |
11+
| `partition_200_application_json_any` | *Optional[Any]* | :heavy_minus_sign: | Successful Response |

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

-19
This file was deleted.

0 commit comments

Comments
 (0)