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

Diff for: README.md

+4-1
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

Diff for: RELEASES.md

+21-1
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 - .

Diff for: USAGE.md

+3-3
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',

Diff for: docs/models/errors/httpvalidationerror.md

+3-3
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 |

Diff for: docs/models/errors/loc.md

+17
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+

Diff for: docs/models/errors/validationerror.md

+5-5
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 |

Diff for: docs/models/errors/validationerrorloc.md

-17
This file was deleted.
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 |

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

+1-1
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 | |

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

+8-3
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 | */* |

Diff for: files.gen

+6-6
Original file line numberDiff line numberDiff line change
@@ -4,25 +4,25 @@ src/unstructured_client/sdk.py
44
pylintrc
55
setup.py
66
src/unstructured_client/__init__.py
7-
src/unstructured_client/models/__init__.py
8-
src/unstructured_client/models/errors/sdkerror.py
97
src/unstructured_client/utils/__init__.py
108
src/unstructured_client/utils/retries.py
119
src/unstructured_client/utils/utils.py
10+
src/unstructured_client/models/errors/sdkerror.py
1211
src/unstructured_client/models/operations/partition.py
13-
src/unstructured_client/models/operations/__init__.py
1412
src/unstructured_client/models/errors/httpvalidationerror.py
1513
src/unstructured_client/models/errors/validationerror.py
16-
src/unstructured_client/models/errors/__init__.py
1714
src/unstructured_client/models/shared/partition_parameters.py
1815
src/unstructured_client/models/shared/security.py
16+
src/unstructured_client/models/__init__.py
17+
src/unstructured_client/models/errors/__init__.py
18+
src/unstructured_client/models/operations/__init__.py
1919
src/unstructured_client/models/shared/__init__.py
2020
USAGE.md
2121
docs/models/operations/partitionresponse.md
2222
docs/models/errors/httpvalidationerror.md
23-
docs/models/errors/validationerrorloc.md
23+
docs/models/errors/loc.md
2424
docs/models/errors/validationerror.md
25-
docs/models/shared/partitionparametersfiles.md
25+
docs/models/shared/files.md
2626
docs/models/shared/partitionparameters.md
2727
docs/models/shared/security.md
2828
docs/sdks/unstructuredclient/README.md

Diff for: gen.yaml

+17-12
Original file line numberDiff line numberDiff line change
@@ -2,34 +2,39 @@ configVersion: 1.0.0
22
management:
33
docChecksum: bf57420eebd40f2b1d166092f01e3927
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.109.2
6-
generationVersion: 2.173.0
5+
speakeasyVersion: 1.116.0
6+
generationVersion: 2.185.0
77
generation:
8-
comments:
9-
disableComments: false
10-
omitDescriptionIfSummaryPresent: false
11-
baseServerURL: ""
12-
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
8+
comments: {}
139
sdkClassName: unstructured_client
14-
singleTagPerOp: false
15-
tagNamespacingDisabled: false
10+
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1611
features:
1712
python:
18-
core: 3.3.1
13+
core: 4.1.2
1914
examples: 2.81.3
20-
globalSecurity: 2.82.0
15+
globalSecurity: 2.83.0
2116
globalServerURLs: 2.82.0
2217
nameOverrides: 2.81.1
2318
retries: 2.82.0
2419
serverIDs: 2.81.1
2520
python:
26-
version: 0.12.2
21+
version: 0.14.0
2722
author: Unstructured
2823
clientServerStatusCodesAsErrors: true
2924
description: Python Client SDK for Unstructured API
3025
flattenGlobalSecurity: true
26+
imports:
27+
option: openapi
28+
paths:
29+
callbacks: models/callbacks
30+
errors: models/errors
31+
operations: models/operations
32+
shared: models/shared
33+
webhooks: models/webhooks
34+
inputModelSuffix: input
3135
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
3236
maxMethodParams: 0
37+
outputModelSuffix: output
3338
packageName: unstructured-client
3439
published: true
3540
repoSubDirectory: .

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.12.2",
13+
version="0.14.0",
1414
author="Unstructured",
1515
description="Python Client SDK for Unstructured API",
1616
long_description=long_description,

0 commit comments

Comments
 (0)