Skip to content

Commit 8843ba5

Browse files
authored
Merge pull request #3 from Unstructured-IO/speakeasy-sdk-regen-1697139797
chore: speakeasy sdk regeneration - Generate
2 parents 4722f75 + 0e700b4 commit 8843ba5

File tree

19 files changed

+83
-60
lines changed

19 files changed

+83
-60
lines changed

README.md

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,7 @@ from unstructured_client import UnstructuredClient
3232
from unstructured_client.models import shared
3333
from unstructured_client.models.errors import SDKError
3434

35-
# Note - in an upcoming release, the Security object is removed
36-
# You'll pass the api key directly
37-
s = UnstructuredClient(
38-
security=shared.Security(
39-
api_key_auth="YOUR_API_KEY",
40-
),
41-
)
35+
s = UnstructuredClient(api_key_auth="YOUR_API_KEY")
4236

4337
filename = "sample-docs/layout-parser-paper.pdf"
4438
file = open(filename, "rb")

RELEASES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,4 +164,24 @@ Based on:
164164
### Generated
165165
- [python v0.8.1] .
166166
### Releases
167-
- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
167+
- [PyPI v0.8.1] https://pypi.org/project/unstructured-client/0.8.1 - .
168+
169+
## 2023-10-12 19:43:15
170+
### Changes
171+
Based on:
172+
- OpenAPI Doc 0.0.1
173+
- Speakeasy CLI 1.98.1 (2.152.1) https://github.com/speakeasy-api/speakeasy
174+
### Generated
175+
- [python v0.9.0] .
176+
### Releases
177+
- [PyPI v0.9.0] https://pypi.org/project/unstructured-client/0.9.0 - .
178+
179+
## 2023-10-12 22:35:30
180+
### Changes
181+
Based on:
182+
- OpenAPI Doc 0.0.1
183+
- Speakeasy CLI 1.99.0 (2.154.1) https://github.com/speakeasy-api/speakeasy
184+
### Generated
185+
- [python v0.9.1] .
186+
### Releases
187+
- [PyPI v0.9.1] https://pypi.org/project/unstructured-client/0.9.1 - .

USAGE.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,40 +6,40 @@ import unstructured_client
66
from unstructured_client.models import shared
77

88
s = unstructured_client.UnstructuredClient(
9-
security=shared.Security(
10-
api_key_auth="YOUR_API_KEY",
11-
),
9+
api_key_auth="YOUR_API_KEY",
1210
)
1311

1412
req = shared.PartitionParameters(
1513
chunking_strategy='by_title',
1614
combine_under_n_chars=500,
17-
coordinates=False,
1815
encoding='utf-8',
1916
files=shared.PartitionParametersFiles(
2017
content='+WmI5Q)|yy'.encode(),
2118
files='um',
2219
),
2320
gz_uncompressed_content_type='application/pdf',
2421
hi_res_model_name='yolox',
25-
include_page_breaks=False,
2622
languages=[
27-
'eng',
23+
'[',
24+
'e',
25+
'n',
26+
'g',
27+
']',
2828
],
29-
multipage_sections=False,
3029
new_after_n_chars=1500,
3130
output_format='application/json',
32-
pdf_infer_table_structure=False,
3331
skip_infer_table_types=[
34-
'pdf',
32+
'p',
33+
'd',
34+
'f',
3535
],
3636
strategy='hi_res',
37-
xml_keep_tags=False,
3837
)
3938

4039
res = s.general.partition(req)
4140

4241
if res.elements is not None:
4342
# handle response
43+
pass
4444
```
4545
<!-- End SDK Example Usage -->

docs/models/errors/httpvalidationerror.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
8-
| `detail` | list[*errors.ValidationError*] | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ----------------------- | ----------------------- | ----------------------- | ----------------------- |
8+
| `detail` | list[*ValidationError*] | :heavy_minus_sign: | N/A |

docs/models/errors/validationerror.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
8-
| `loc` | list[[Union[str, int]](undefined/models/shared/validationerrorloc.md)] | :heavy_check_mark: | N/A |
9-
| `msg` | *Optional[str]* | :heavy_check_mark: | N/A |
10-
| `type` | *Optional[str]* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ |
8+
| `loc` | list[[Union[str, int]](../../models/errors/validationerrorloc.md)] | :heavy_check_mark: | N/A |
9+
| `msg` | *str* | :heavy_check_mark: | N/A |
10+
| `type` | *str* | :heavy_check_mark: | N/A |
File renamed without changes.

docs/models/operations/partitionresponse.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `elements` | list[*Any*] | :heavy_minus_sign: | Successful Response |
10-
| `status_code` | *Optional[int]* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
1111
| `raw_response` | [requests.Response](https://requests.readthedocs.io/en/latest/api/#requests.Response) | :heavy_minus_sign: | Raw HTTP response; suitable for custom response parsing |

0 commit comments

Comments
 (0)