Skip to content

Commit 235f031

Browse files
committed
ci: regenerated with OpenAPI Doc 0.0.1, Speakeay CLI 1.91.4
1 parent 8394dd1 commit 235f031

File tree

11 files changed

+26
-38
lines changed

11 files changed

+26
-38
lines changed

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -124,4 +124,14 @@ Based on:
124124
### Generated
125125
- [python v0.7.1] .
126126
### Releases
127-
- [PyPI v0.7.1] https://pypi.org/project/unstructured-client/0.7.1 - .
127+
- [PyPI v0.7.1] https://pypi.org/project/unstructured-client/0.7.1 - .
128+
129+
## 2023-09-29 16:41:46
130+
### Changes
131+
Based on:
132+
- OpenAPI Doc 0.0.1
133+
- Speakeasy CLI 1.91.4 (2.139.2) https://github.com/speakeasy-api/speakeasy
134+
### Generated
135+
- [python v0.7.2] .
136+
### Releases
137+
- [PyPI v0.7.2] https://pypi.org/project/unstructured-client/0.7.2 - .

Diff for: USAGE.md

+3-4
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ req = shared.PartitionParameters(
1616
combine_under_n_chars=500,
1717
coordinates=False,
1818
encoding='utf-8',
19-
files=shared.PartitionParametersFiles(
20-
content='+WmI5Q)|yy'.encode(),
21-
files='um',
22-
),
19+
files=[
20+
'+WmI5Q)|yy'.encode(),
21+
],
2322
gz_uncompressed_content_type='application/pdf',
2423
hi_res_model_name='yolox',
2524
include_page_breaks=False,

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[shared.PartitionParametersFiles]](undefined/models/shared/partitionparametersfiles.md) | :heavy_minus_sign: | The file to extract | |
12+
| `files` | list[*bytes*] | :heavy_minus_sign: | The file(s) 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/models/shared/partitionparametersfiles.md

-9
This file was deleted.

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -26,10 +26,9 @@ req = shared.PartitionParameters(
2626
combine_under_n_chars=500,
2727
coordinates=False,
2828
encoding='utf-8',
29-
files=shared.PartitionParametersFiles(
30-
content='+WmI5Q)|yy'.encode(),
31-
files='um',
32-
),
29+
files=[
30+
'+WmI5Q)|yy'.encode(),
31+
],
3332
gz_uncompressed_content_type='application/pdf',
3433
hi_res_model_name='yolox',
3534
include_page_breaks=False,

Diff for: files.gen

-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@ docs/models/operations/partitionresponse.md
2222
docs/models/errors/httpvalidationerror.md
2323
docs/models/errors/validationerror.md
2424
docs/models/shared/validationerrorloc.md
25-
docs/models/shared/partitionparametersfiles.md
2625
docs/models/shared/partitionparameters.md
2726
docs/models/shared/security.md
2827
docs/sdks/unstructuredclient/README.md

Diff for: gen.yaml

+2-3
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: db54a5de41d76029233468ef472c9676
3+
docChecksum: c2feacd7346b5a78a2db180c2c404fe2
44
docVersion: 0.0.1
55
speakeasyVersion: 1.91.4
66
generationVersion: 2.139.2
@@ -15,15 +15,14 @@ generation:
1515
features:
1616
python:
1717
core: 2.87.0
18-
downloadStreams: 0.0.1
1918
examples: 2.81.2
2019
globalSecurity: 2.81.1
2120
globalServerURLs: 2.82.0
2221
nameOverrides: 2.81.1
2322
retries: 2.82.0
2423
serverIDs: 2.81.1
2524
python:
26-
version: 0.7.1
25+
version: 0.7.2
2726
author: Unstructured
2827
clientServerStatusCodesAsErrors: true
2928
description: Python Client SDK Generated by Speakeasy

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.7.1",
13+
version="0.7.2",
1414
author="Unstructured",
1515
description="Python Client SDK Generated by Speakeasy",
1616
long_description=long_description,

Diff for: src/unstructured_client/models/shared/__init__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
from .partition_parameters import *
44
from .security import *
55

6-
__all__ = ["PartitionParameters","PartitionParametersFiles","Security"]
6+
__all__ = ["PartitionParameters","Security"]

Diff for: src/unstructured_client/models/shared/partition_parameters.py

+2-11
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,6 @@
66

77

88

9-
@dataclasses.dataclass
10-
class PartitionParametersFiles:
11-
content: bytes = dataclasses.field(metadata={'multipart_form': { 'content': True }})
12-
files: str = dataclasses.field(metadata={'multipart_form': { 'field_name': 'files' }})
13-
14-
15-
16-
17-
189
@dataclasses.dataclass
1910
class PartitionParameters:
2011
chunking_strategy: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'chunking_strategy' }})
@@ -25,8 +16,8 @@ class PartitionParameters:
2516
r"""If true, return coordinates for each element. Default: false"""
2617
encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }})
2718
r"""The encoding method used to decode the text input. Default: utf-8"""
28-
files: Optional[PartitionParametersFiles] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }})
29-
r"""The file to extract"""
19+
files: Optional[list[bytes]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'files', 'json': True }})
20+
r"""The file(s) to extract"""
3021
gz_uncompressed_content_type: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'gz_uncompressed_content_type' }})
3122
r"""If file is gzipped, use this content type after unzipping"""
3223
hi_res_model_name: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'hi_res_model_name' }})

Diff for: src/unstructured_client/sdkconfiguration.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class SDKConfiguration:
2525
server: str = ''
2626
language: str = 'python'
2727
openapi_doc_version: str = '0.0.1'
28-
sdk_version: str = '0.7.1'
28+
sdk_version: str = '0.7.2'
2929
gen_version: str = '2.139.2'
30-
user_agent: str = 'speakeasy-sdk/python 0.7.1 2.139.2 0.0.1 unstructured-client'
30+
user_agent: str = 'speakeasy-sdk/python 0.7.2 2.139.2 0.0.1 unstructured-client'
3131
retry_config: RetryConfig = None
3232

3333
def get_server_details(self) -> tuple[str, dict[str, str]]:

0 commit comments

Comments
 (0)