Skip to content

Commit e3f6de6

Browse files
speakeasybotscanny
authored andcommitted
ci: regenerated with OpenAPI Doc 0.0.1, Speakeasy CLI 1.189.0
1 parent d537579 commit e3f6de6

21 files changed

+129
-207
lines changed

.speakeasy/gen.lock

+11-17
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,18 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: 8e80e4d12e16961f9061ef746c01761a
5-
docVersion: 0.0.64
4+
docChecksum: 903444f359d1dfa6342c692ae3e5c7ff
5+
docVersion: 0.0.1
66
speakeasyVersion: internal
7-
generationVersion: 2.262.2
8-
releaseVersion: 0.19.0
9-
configChecksum: bcbf9e2848a6a837e9453f70dbc10b07
7+
generationVersion: 2.263.3
8+
releaseVersion: 0.20.0
9+
configChecksum: cc7d371a0d9a447399c02d889587222d
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-
constsAndDefaults: 0.1.2
1716
core: 4.4.6
1817
examples: 2.81.3
1918
globalSecurity: 2.83.2
@@ -34,26 +33,21 @@ generatedFiles:
3433
- src/unstructured_client/utils/utils.py
3534
- src/unstructured_client/models/errors/sdkerror.py
3635
- tests/helpers.py
37-
- src/unstructured_client/models/operations/partition_parameters.py
38-
- src/unstructured_client/models/shared/element.py
36+
- src/unstructured_client/models/operations/partition.py
37+
- src/unstructured_client/models/errors/httpvalidationerror.py
3938
- src/unstructured_client/models/shared/validationerror.py
40-
- src/unstructured_client/models/shared/body_partition_parameters.py
39+
- src/unstructured_client/models/shared/partition_parameters.py
4140
- src/unstructured_client/models/shared/security.py
42-
- src/unstructured_client/models/errors/httpvalidationerror.py
4341
- src/unstructured_client/models/__init__.py
4442
- src/unstructured_client/models/errors/__init__.py
4543
- src/unstructured_client/models/operations/__init__.py
4644
- src/unstructured_client/models/shared/__init__.py
47-
- docs/models/operations/partitionparametersrequest.md
48-
- docs/models/operations/partitionparametersresponse.md
49-
- docs/models/shared/metadata.md
50-
- docs/models/shared/element.md
45+
- docs/models/operations/partitionresponse.md
46+
- docs/models/errors/httpvalidationerror.md
5147
- docs/models/shared/loc.md
5248
- docs/models/shared/validationerror.md
5349
- docs/models/shared/files.md
54-
- docs/models/shared/strategy.md
55-
- docs/models/shared/bodypartitionparameters.md
50+
- docs/models/shared/partitionparameters.md
5651
- docs/models/shared/security.md
57-
- docs/models/errors/httpvalidationerror.md
5852
- USAGE.md
5953
- .gitattributes

RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -434,4 +434,14 @@ Based on:
434434
### Generated
435435
- [python v0.19.0] .
436436
### Releases
437-
- [PyPI v0.19.0] https://pypi.org/project/unstructured-client/0.19.0 - .
437+
- [PyPI v0.19.0] https://pypi.org/project/unstructured-client/0.19.0 - .
438+
439+
## 2024-02-22 00:18:37
440+
### Changes
441+
Based on:
442+
- OpenAPI Doc 0.0.1
443+
- Speakeasy CLI 1.189.0 (2.263.3) https://github.com/speakeasy-api/speakeasy
444+
### Generated
445+
- [python v0.20.0] .
446+
### Releases
447+
- [PyPI v0.20.0] https://pypi.org/project/unstructured-client/0.20.0 - .

USAGE.md

+23-10
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,38 @@
11
<!-- Start SDK Example Usage [usage] -->
22
```python
33
import unstructured_client
4-
from unstructured_client.models import operations, shared
4+
from unstructured_client.models import shared
55

66
s = unstructured_client.UnstructuredClient(
77
api_key_auth="YOUR_API_KEY",
88
)
99

10-
req = operations.PartitionParametersRequest(
11-
body_partition_parameters=shared.BodyPartitionParameters(
12-
files=shared.Files(
13-
content='0x2cC94b2FEF'.encode(),
14-
file_name='um.shtml',
15-
),
16-
strategy=shared.Strategy.HI_RES,
17-
),
10+
req = shared.PartitionParameters(
11+
chunking_strategy='by_title',
12+
combine_under_n_chars=500,
13+
encoding='utf-8',
14+
extract_image_block_types=[
15+
'image',
16+
'table',
17+
],
18+
gz_uncompressed_content_type='application/pdf',
19+
hi_res_model_name='yolox',
20+
languages=[
21+
'[',
22+
'e',
23+
'n',
24+
'g',
25+
']',
26+
],
27+
max_characters=1500,
28+
new_after_n_chars=1500,
29+
output_format='application/json',
30+
strategy='hi_res',
1831
)
1932

2033
res = s.general.partition(req)
2134

22-
if res.response_partition_parameters is not None:
35+
if res.elements is not None:
2336
# handle response
2437
pass
2538
```

docs/models/operations/partitionparametersrequest.md

-9
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# PartitionParametersResponse
1+
# PartitionResponse
22

33

44
## Fields
@@ -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-
| `response_partition_parameters` | List[[shared.Element](../../models/shared/element.md)] | :heavy_minus_sign: | Successful Response |
11+
| `elements` | List[*Any*] | :heavy_minus_sign: | Successful Response |

0 commit comments

Comments
 (0)