Skip to content

Commit 1ecb837

Browse files
authored
Merge pull request #10 from Unstructured-IO/speakeasy-sdk-regen-1699316313
chore: 🐝 Update SDK - Generate
2 parents 0ab27cf + 9353e41 commit 1ecb837

22 files changed

+115
-82
lines changed

README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ s = unstructured_client.UnstructuredClient(
104104
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.
105105

106106

107-
For example, you could specify a header for every request that your sdk makes as follows:
107+
For example, you could specify a header for every request that this sdk makes as follows:
108108

109109
```python
110110
import unstructured_client
@@ -116,6 +116,9 @@ s = unstructured_client.UnstructuredClient(client: http_client)
116116
```
117117
<!-- End Custom HTTP Client -->
118118

119+
<!-- No Retries -->
120+
<!-- No Authentication -->
121+
119122
<!-- Placeholder for Future Speakeasy SDK Sections -->
120123

121124
### Maturity

RELEASES.md

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,4 +234,24 @@ Based on:
234234
### Generated
235235
- [python v0.12.2] .
236236
### Releases
237-
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .
237+
- [PyPI v0.12.2] https://pypi.org/project/unstructured-client/0.12.2 - .
238+
239+
## 2023-11-07 00:18:31
240+
### Changes
241+
Based on:
242+
- OpenAPI Doc 0.0.1
243+
- Speakeasy CLI 1.114.1 (2.181.1) https://github.com/speakeasy-api/speakeasy
244+
### Generated
245+
- [python v0.13.0] .
246+
### Releases
247+
- [PyPI v0.13.0] https://pypi.org/project/unstructured-client/0.13.0 - .
248+
249+
## 2023-11-09 00:18:03
250+
### Changes
251+
Based on:
252+
- OpenAPI Doc 0.0.1
253+
- Speakeasy CLI 1.116.0 (2.185.0) https://github.com/speakeasy-api/speakeasy
254+
### Generated
255+
- [python v0.14.0] .
256+
### Releases
257+
- [PyPI v0.14.0] https://pypi.org/project/unstructured-client/0.14.0 - .

USAGE.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,9 @@ req = shared.PartitionParameters(
1313
chunking_strategy='by_title',
1414
combine_under_n_chars=500,
1515
encoding='utf-8',
16-
files=shared.PartitionParametersFiles(
17-
content='+WmI5Q)|yy'.encode(),
18-
files='string',
16+
files=shared.Files(
17+
content='0x2cC94b2FEF'.encode(),
18+
file_name='um.shtml',
1919
),
2020
gz_uncompressed_content_type='application/pdf',
2121
hi_res_model_name='yolox',

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[[ValidationError](../../models/errors/validationerror.md)] | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- |
8+
| `detail` | List[[errors.ValidationError](../../models/errors/validationerror.md)] | :heavy_minus_sign: | N/A |

docs/models/errors/loc.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Loc
2+
3+
4+
## Supported Types
5+
6+
###
7+
8+
```python
9+
loc: str = /* values here */
10+
```
11+
12+
###
13+
14+
```python
15+
loc: int = /* values here */
16+
```
17+

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]](../../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 |
6+
| Field | Type | Required | Description |
7+
| --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- | --------------------------------------------------- |
8+
| `loc` | List[[Union[str, int]](../../models/errors/loc.md)] | :heavy_check_mark: | N/A |
9+
| `msg` | *str* | :heavy_check_mark: | N/A |
10+
| `type` | *str* | :heavy_check_mark: | N/A |

docs/models/errors/validationerrorloc.md

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
# PartitionParametersFiles
1+
# Files
22

33

44
## Fields
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
88
| `content` | *bytes* | :heavy_check_mark: | N/A |
9-
| `files` | *str* | :heavy_check_mark: | N/A |
9+
| `file_name` | *str* | :heavy_check_mark: | N/A |

docs/models/shared/partitionparameters.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +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-
| `files` | [Optional[PartitionParametersFiles]](../../models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
12+
| `files` | [Optional[shared.Files]](../../models/shared/files.md) | :heavy_minus_sign: | The file to extract | |
1313
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
1414
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
1515
| `include_page_breaks` | *Optional[bool]* | :heavy_minus_sign: | If True, the output will include page breaks if the filetype supports it. Default: false | |

docs/sdks/general/README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,9 @@ req = shared.PartitionParameters(
2323
chunking_strategy='by_title',
2424
combine_under_n_chars=500,
2525
encoding='utf-8',
26-
files=shared.PartitionParametersFiles(
27-
content='+WmI5Q)|yy'.encode(),
28-
files='string',
26+
files=shared.Files(
27+
content='0x2cC94b2FEF'.encode(),
28+
file_name='um.shtml',
2929
),
3030
gz_uncompressed_content_type='application/pdf',
3131
hi_res_model_name='yolox',
@@ -65,4 +65,9 @@ if res.elements is not None:
6565
### Response
6666

6767
**[operations.PartitionResponse](../../models/operations/partitionresponse.md)**
68+
### Errors
6869

70+
| Error Object | Status Code | Content Type |
71+
| -------------------------- | -------------------------- | -------------------------- |
72+
| errors.HTTPValidationError | 422 | application/json |
73+
| errors.SDKError | 400-600 | */* |

0 commit comments

Comments
 (0)