Skip to content

Commit a93c2f3

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.3
1 parent ee5a074 commit a93c2f3

18 files changed

+140
-43
lines changed

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -104,4 +104,14 @@ Based on:
104104
### Generated
105105
- [python v0.6.0] .
106106
### Releases
107-
- [PyPI v0.6.0] https://pypi.org/project/unstructured-client/0.6.0 - .
107+
- [PyPI v0.6.0] https://pypi.org/project/unstructured-client/0.6.0 - .
108+
109+
## 2023-09-29 00:18:11
110+
### Changes
111+
Based on:
112+
- OpenAPI Doc 0.0.1
113+
- Speakeasy CLI 1.91.3 (2.139.1) https://github.com/speakeasy-api/speakeasy
114+
### Generated
115+
- [python v0.7.0] .
116+
### Releases
117+
- [PyPI v0.7.0] https://pypi.org/project/unstructured-client/0.7.0 - .

Diff for: USAGE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ req = shared.PartitionParameters(
1515
coordinates=False,
1616
encoding='utf-8',
1717
files=shared.PartitionParametersFiles(
18-
content='corrupti'.encode(),
19-
files='provident',
18+
content='+WmI5Q)|yy'.encode(),
19+
files='um',
2020
),
2121
gz_uncompressed_content_type='application/pdf',
2222
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*] | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------------------ | ------------------------------ | ------------------------------ | ------------------------------ |
8+
| `detail` | list[*errors.ValidationError*] | :heavy_minus_sign: | N/A |

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[*Any*] | :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]](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 |

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
| Field | Type | Required | Description |
77
| ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------- |
8-
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
8+
| `content_type` | *Optional[str]* | :heavy_check_mark: | HTTP response content type for this operation |
99
| `elements` | list[*Any*] | :heavy_minus_sign: | Successful Response |
10-
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
10+
| `status_code` | *Optional[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 |

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
| --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
88
| `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If true, return coordinates for each element. Default: false | |
99
| `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | utf-8 |
10-
| `files` | [Optional[PartitionParametersFiles]](../../models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
10+
| `files` | [Optional[shared.PartitionParametersFiles]](undefined/models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
1111
| `gz_uncompressed_content_type` | *Optional[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping | application/pdf |
1212
| `hi_res_model_name` | *Optional[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | yolox |
1313
| `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/models/shared/partitionparametersfiles.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,5 +5,5 @@
55

66
| Field | Type | Required | Description |
77
| ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `content` | *bytes* | :heavy_check_mark: | N/A |
9-
| `files` | *str* | :heavy_check_mark: | N/A |
8+
| `content` | *Optional[bytes]* | :heavy_check_mark: | N/A |
9+
| `files` | *Optional[str]* | :heavy_check_mark: | N/A |

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,4 @@
55

66
| Field | Type | Required | Description | Example |
77
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
8-
| `api_key_auth` | *str* | :heavy_check_mark: | N/A | YOUR_API_KEY |
8+
| `api_key_auth` | *Optional[str]* | :heavy_check_mark: | N/A | YOUR_API_KEY |

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

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

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ req = shared.PartitionParameters(
2525
coordinates=False,
2626
encoding='utf-8',
2727
files=shared.PartitionParametersFiles(
28-
content='unde'.encode(),
29-
files='nulla',
28+
content='+WmI5Q)|yy'.encode(),
29+
files='um',
3030
),
3131
gz_uncompressed_content_type='application/pdf',
3232
hi_res_model_name='yolox',

Diff for: files.gen

+1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ USAGE.md
2121
docs/models/operations/partitionresponse.md
2222
docs/models/errors/httpvalidationerror.md
2323
docs/models/errors/validationerror.md
24+
docs/models/shared/validationerrorloc.md
2425
docs/models/shared/partitionparametersfiles.md
2526
docs/models/shared/partitionparameters.md
2627
docs/models/shared/security.md

Diff for: gen.yaml

+5-4
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ configVersion: 1.0.0
22
management:
33
docChecksum: f332d5b484fbeb4689b0c548694f5a69
44
docVersion: 0.0.1
5-
speakeasyVersion: 1.91.1
6-
generationVersion: 2.130.1
5+
speakeasyVersion: 1.91.3
6+
generationVersion: 2.139.1
77
generation:
88
comments:
99
disableComments: false
@@ -14,7 +14,8 @@ generation:
1414
tagNamespacingDisabled: false
1515
features:
1616
python:
17-
core: 2.86.1
17+
core: 2.87.0
18+
downloadStreams: 0.0.1
1819
examples: 2.81.2
1920
globalSecurity: 2.81.1
2021
globalServerURLs: 2.82.0
@@ -23,7 +24,7 @@ features:
2324
retries: 2.82.0
2425
serverIDs: 2.81.1
2526
python:
26-
version: 0.6.0
27+
version: 0.7.0
2728
author: Unstructured
2829
clientServerStatusCodesAsErrors: true
2930
description: Python Client SDK Generated by Speakeasy

Diff for: pylintrc

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,12 +116,12 @@ argument-naming-style=snake_case
116116
#argument-rgx=
117117

118118
# Naming style matching correct attribute names.
119-
attr-naming-style=snake_case
119+
#attr-naming-style=snake_case
120120

121121
# Regular expression matching correct attribute names. Overrides attr-naming-
122122
# style. If left empty, attribute names will be checked with the set naming
123123
# style.
124-
#attr-rgx=
124+
attr-rgx=[^\W\d][^\W]*|__.*__$
125125

126126
# Bad variable names which should always be refused, separated by a comma.
127127
bad-names=

Diff for: setup.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
setuptools.setup(
1212
name="unstructured-client",
13-
version="0.6.0",
13+
version="0.7.0",
1414
author="Unstructured",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,
@@ -19,7 +19,7 @@
1919
install_requires=[
2020
"certifi>=2022.12.7",
2121
"charset-normalizer>=2.1.1",
22-
"dataclasses-json>=0.5.12",
22+
"dataclasses-json>=0.6.1",
2323
"idna>=3.3",
2424
"jsonpath-python>=1.0.6 ",
2525
"marshmallow>=3.17.1",

Diff for: src/unstructured_client/general.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ def partition(self, request: shared.PartitionParameters, retries: Optional[utils
1818

1919
url = base_url + '/general/v0/general'
2020
headers = {}
21-
req_content_type, data, form = utils.serialize_request_body(request, "request", 'multipart')
21+
req_content_type, data, form = utils.serialize_request_body(request, "request", False, True, 'multipart')
2222
if req_content_type not in ('multipart/form-data', 'multipart/mixed'):
2323
headers['content-type'] = req_content_type
2424
headers['Accept'] = 'application/json'
25-
headers['user-agent'] = f'speakeasy-sdk/{self.sdk_configuration.language} {self.sdk_configuration.sdk_version} {self.sdk_configuration.gen_version} {self.sdk_configuration.openapi_doc_version}'
25+
headers['user-agent'] = self.sdk_configuration.user_agent
2626

2727
client = self.sdk_configuration.security_client
2828

@@ -36,7 +36,7 @@ def partition(self, request: shared.PartitionParameters, retries: Optional[utils
3636

3737
def do_request():
3838
return client.request('POST', url, data=data, files=form, headers=headers)
39-
39+
4040
http_res = utils.retry(do_request, utils.Retries(retry_config, [
4141
'5xx'
4242
]))

0 commit comments

Comments
 (0)