Skip to content

Commit e72b7c7

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

File tree

11 files changed

+48
-16
lines changed

11 files changed

+48
-16
lines changed

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -134,4 +134,14 @@ Based on:
134134
### Generated
135135
- [python v0.7.2] .
136136
### Releases
137-
- [PyPI v0.7.2] https://pypi.org/project/unstructured-client/0.7.2 - .
137+
- [PyPI v0.7.2] https://pypi.org/project/unstructured-client/0.7.2 - .
138+
139+
## 2023-09-29 16:55:23
140+
### Changes
141+
Based on:
142+
- OpenAPI Doc 0.0.1
143+
- Speakeasy CLI 1.91.4 (2.139.2) https://github.com/speakeasy-api/speakeasy
144+
### Generated
145+
- [python v0.7.3] .
146+
### Releases
147+
- [PyPI v0.7.3] https://pypi.org/project/unstructured-client/0.7.3 - .

Diff for: USAGE.md

+4-3
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,10 @@ req = shared.PartitionParameters(
1616
combine_under_n_chars=500,
1717
coordinates=False,
1818
encoding='utf-8',
19-
files=[
20-
'+WmI5Q)|yy'.encode(),
21-
],
19+
files=shared.PartitionParametersFiles(
20+
content='+WmI5Q)|yy'.encode(),
21+
files='um',
22+
),
2223
gz_uncompressed_content_type='application/pdf',
2324
hi_res_model_name='yolox',
2425
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` | list[*bytes*] | :heavy_minus_sign: | The file(s) to extract | |
12+
| `files` | [Optional[shared.PartitionParametersFiles]](undefined/models/shared/partitionparametersfiles.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/models/shared/partitionparametersfiles.md

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# PartitionParametersFiles
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `content` | *Optional[bytes]* | :heavy_check_mark: | N/A |
9+
| `files` | *Optional[str]* | :heavy_check_mark: | N/A |

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

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

Diff for: files.gen

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ 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
2526
docs/models/shared/partitionparameters.md
2627
docs/models/shared/security.md
2728
docs/sdks/unstructuredclient/README.md

Diff for: gen.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
configVersion: 1.0.0
22
management:
3-
docChecksum: c2feacd7346b5a78a2db180c2c404fe2
3+
docChecksum: 25324f1821b1070aa4a416ec8ddca590
44
docVersion: 0.0.1
55
speakeasyVersion: 1.91.4
66
generationVersion: 2.139.2
@@ -15,14 +15,15 @@ generation:
1515
features:
1616
python:
1717
core: 2.87.0
18+
downloadStreams: 0.0.1
1819
examples: 2.81.2
1920
globalSecurity: 2.81.1
2021
globalServerURLs: 2.82.0
2122
nameOverrides: 2.81.1
2223
retries: 2.82.0
2324
serverIDs: 2.81.1
2425
python:
25-
version: 0.7.2
26+
version: 0.7.3
2627
author: Unstructured
2728
clientServerStatusCodesAsErrors: true
2829
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.2",
13+
version="0.7.3",
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","Security"]
6+
__all__ = ["PartitionParameters","PartitionParametersFiles","Security"]

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

+11-2
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,15 @@
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+
918
@dataclasses.dataclass
1019
class PartitionParameters:
1120
chunking_strategy: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'chunking_strategy' }})
@@ -16,8 +25,8 @@ class PartitionParameters:
1625
r"""If true, return coordinates for each element. Default: false"""
1726
encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }})
1827
r"""The encoding method used to decode the text input. Default: utf-8"""
19-
files: Optional[list[bytes]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'files', 'json': True }})
20-
r"""The file(s) to extract"""
28+
files: Optional[PartitionParametersFiles] = dataclasses.field(default=None, metadata={'multipart_form': { 'file': True }})
29+
r"""The file to extract"""
2130
gz_uncompressed_content_type: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'gz_uncompressed_content_type' }})
2231
r"""If file is gzipped, use this content type after unzipping"""
2332
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.2'
28+
sdk_version: str = '0.7.3'
2929
gen_version: str = '2.139.2'
30-
user_agent: str = 'speakeasy-sdk/python 0.7.2 2.139.2 0.0.1 unstructured-client'
30+
user_agent: str = 'speakeasy-sdk/python 0.7.3 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)