Skip to content

Commit 22fb177

Browse files
chore: 🐝 Update SDK - Generate 0.25.1 (#141)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/linting-report/71b44e40cb066dc55aa5e45b3e48d59d> > OpenAPI Change report available at: <https://app.speakeasyapi.dev/org/unstructured/unstructured5xr/changes-report/e55599ebf9e42a00dff8584ddcb9e210> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.349.0 (2.382.0) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` └─┬Components └─┬partition_parameters ├──[➕] properties (287:17) ├─┬hi_res_model_name │ ├─┬ANYOF │ │ ├──[🔀] type (128:33)❌ │ │ └──[➖] default (127:36)❌ │ └─┬ANYOF │ └──[🔀] type (126:33)❌ ├─┬similarity_threshold │ └─┬ANYOF │ └──[➖] default (264:36)❌ ├─┬starting_page_number │ ├─┬ANYOF │ │ ├──[🔀] type (175:33)❌ │ │ └──[➖] default (174:36)❌ │ └─┬ANYOF │ └──[🔀] type (173:33)❌ ├─┬combine_under_n_chars │ ├─┬ANYOF │ │ ├──[🔀] type (222:33)❌ │ │ └──[➖] default (221:36)❌ │ └─┬ANYOF │ └──[🔀] type (220:33)❌ ├─┬gz_uncompressed_content_type │ ├─┬ANYOF │ │ ├──[🔀] type (121:33)❌ │ │ └──[➖] default (120:36)❌ │ └─┬ANYOF │ └──[🔀] type (119:33)❌ ├─┬include_orig_elements │ ├─┬ANYOF │ │ └──[🔀] type (227:33)❌ │ └─┬ANYOF │ ├──[🔀] type (229:33)❌ │ └──[➖] default (228:36)❌ ├─┬max_characters │ ├─┬ANYOF │ │ ├──[🔀] type (236:33)❌ │ │ └──[➖] default (235:36)❌ │ └─┬ANYOF │ └──[🔀] type (234:33)❌ ├─┬new_after_n_chars │ ├─┬ANYOF │ │ ├──[🔀] type (248:33)❌ │ │ └──[➖] default (247:36)❌ │ └─┬ANYOF │ └──[🔀] type (246:33)❌ ├─┬chunking_strategy │ ├─┬ANYOF │ │ ├──[➕] enum (206:31) │ │ ├──[➕] enum (207:31) │ │ ├──[➕] enum (208:31) │ │ ├──[➕] enum (209:31) │ │ └──[🔀] type (204:33)❌ │ └─┬ANYOF │ ├──[➖] enum (206:31)❌ │ ├──[➖] enum (207:31)❌ │ ├──[➖] enum (208:31)❌ │ ├──[➖] enum (209:31)❌ │ ├──[🔀] type (211:33)❌ │ └──[➖] default (210:36)❌ └─┬encoding ├─┬ANYOF │ ├──[🔀] type (107:33)❌ │ └──[➖] default (106:36)❌ └─┬ANYOF └──[🔀] type (105:33)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 37 | 32 | Co-authored-by: speakeasybot <[email protected]>
1 parent 40c4443 commit 22fb177

File tree

9 files changed

+60
-50
lines changed

9 files changed

+60
-50
lines changed

Diff for: .speakeasy/gen.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: c20db13bfb07ee6d97a80d72980a238c
4+
docChecksum: 10d6e50c2142f9d44bc03cb74664a2c4
55
docVersion: 1.0.41
6-
speakeasyVersion: 1.348.1
7-
generationVersion: 2.380.1
8-
releaseVersion: 0.25.0
9-
configChecksum: 6112a5356b8deb50b10d38a5e7e3bcd8
6+
speakeasyVersion: 1.349.0
7+
generationVersion: 2.382.0
8+
releaseVersion: 0.25.1
9+
configChecksum: 83450d02d23f7ebc3d13eb098b07b583
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git

Diff for: .speakeasy/workflow.lock

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
speakeasyVersion: 1.348.1
1+
speakeasyVersion: 1.349.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:f6db3da28a6004b2ea693aaf918e6e18ee9e2b6c5c4cae993fe02ebdd7ac324d
6-
sourceBlobDigest: sha256:81bfa48cb6f236c114c84a4defe907ea07e1a87b12797274112e754dd847c324
5+
sourceRevisionDigest: sha256:6316cd6a8ea4254edfce7c25db49f21d835e0f0bfc4017caf81b1ba69551bc8b
6+
sourceBlobDigest: sha256:1fe4394ff6a8c82e9eb10bc20c5bcec7537fb1b30229401b175a0dadf6767251
77
tags:
88
- latest
99
- main
1010
targets:
1111
unstructured-python:
1212
source: my-source
1313
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:f6db3da28a6004b2ea693aaf918e6e18ee9e2b6c5c4cae993fe02ebdd7ac324d
15-
sourceBlobDigest: sha256:81bfa48cb6f236c114c84a4defe907ea07e1a87b12797274112e754dd847c324
14+
sourceRevisionDigest: sha256:6316cd6a8ea4254edfce7c25db49f21d835e0f0bfc4017caf81b1ba69551bc8b
15+
sourceBlobDigest: sha256:1fe4394ff6a8c82e9eb10bc20c5bcec7537fb1b30229401b175a0dadf6767251
1616
outLocation: /github/workspace/repo
1717
workflow:
1818
workflowVersion: 1.0.0

Diff for: RELEASES.md

+11-1
Original file line numberDiff line numberDiff line change
@@ -594,4 +594,14 @@ Based on:
594594
### Generated
595595
- [python v0.25.0] .
596596
### Releases
597-
- [PyPI v0.25.0] https://pypi.org/project/unstructured-client/0.25.0 - .
597+
- [PyPI v0.25.0] https://pypi.org/project/unstructured-client/0.25.0 - .
598+
599+
## 2024-07-31 00:17:53
600+
### Changes
601+
Based on:
602+
- OpenAPI Doc
603+
- Speakeasy CLI 1.349.0 (2.382.0) https://github.com/speakeasy-api/speakeasy
604+
### Generated
605+
- [python v0.25.1] .
606+
### Releases
607+
- [PyPI v0.25.1] https://pypi.org/project/unstructured-client/0.25.1 - .

Diff for: USAGE.md

-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@ res = s.general.partition(request=operations.PartitionRequest(
1919
1,
2020
10,
2121
],
22-
split_pdf_allow_failed=False,
2322
strategy=shared.Strategy.HI_RES,
2423
),
2524
))

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

+32-31
Large diffs are not rendered by default.

Diff for: gen.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ generation:
1010
auth:
1111
oAuth2ClientCredentialsEnabled: false
1212
python:
13-
version: 0.25.0
13+
version: 0.25.1
1414
additionalDependencies:
1515
dependencies:
1616
deepdiff: '>=6.0'

Diff for: setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020
setuptools.setup(
2121
name='unstructured-client',
22-
version='0.25.0',
22+
version='0.25.1',
2323
author='Unstructured',
2424
description='Python Client SDK for Unstructured API',
2525
license = 'MIT',

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,14 @@ class PartitionParameters:
8181
r"""A value between 0.0 and 1.0 describing the minimum similarity two elements must have to be included in the same chunk. Note that similar elements may be separated to meet chunk-size criteria; this value can only guarantees that two elements with similarity below the threshold will appear in separate chunks."""
8282
skip_infer_table_types: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'skip_infer_table_types' }})
8383
r"""The document types that you want to skip table extraction with. Default: []"""
84+
split_pdf_allow_failed: Optional[bool] = dataclasses.field(default=False, metadata={'multipart_form': { 'field_name': 'split_pdf_allow_failed' }})
85+
r"""When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resuling list of Elements will miss the data from errored pages."""
8486
split_pdf_concurrency_level: Optional[int] = dataclasses.field(default=5, metadata={'multipart_form': { 'field_name': 'split_pdf_concurrency_level' }})
8587
r"""When `split_pdf_page` is set to `True`, this parameter specifies the number of workers used for sending requests when the PDF is split on the client side. It's an internal parameter for the Python client and is not sent to the backend."""
8688
split_pdf_page: Optional[bool] = dataclasses.field(default=True, metadata={'multipart_form': { 'field_name': 'split_pdf_page' }})
8789
r"""This parameter determines if the PDF file should be split on the client side. It's an internal parameter for the Python client and is not sent to the backend."""
8890
split_pdf_page_range: Optional[List[int]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'split_pdf_page_range' }})
8991
r"""When `split_pdf_page is set to `True`, this parameter selects a subset of the pdf to send to the API. The parameter is a list of 2 integers within the range [1, length_of_pdf]. A ValueError is thrown if the given range is invalid. It's an internal parameter for the Python client and is not sent to the backend."""
90-
split_pdf_allow_failed: Optional[bool] = dataclasses.field(default=False, metadata={'multipart_form': { 'field_name': 'split_pdf_allow_failed' }})
91-
r"""When `split_pdf_page` is set to `True`, this parameter defines the behavior when some of the parallel requests fail. By default `split_pdf_allow_failed` is set to `False` and any failed request send to the API will make the whole process break and raise an Exception. If `split_pdf_allow_failed` is set to `True`, the errors encountered while sending parallel requests will not break the processing - the resuling list of Elements will miss the data from errored pages."""
9292
starting_page_number: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'starting_page_number' }})
9393
r"""When PDF is split into pages before sending it into the API, providing this information will allow the page number to be assigned correctly. Introduced in 1.0.27."""
9494
strategy: Optional[Strategy] = dataclasses.field(default=Strategy.AUTO, metadata={'multipart_form': { 'field_name': 'strategy' }})

Diff for: src/unstructured_client/sdkconfiguration.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,9 @@ class SDKConfiguration:
3232
server: Optional[str] = ''
3333
language: str = 'python'
3434
openapi_doc_version: str = '1.0.41'
35-
sdk_version: str = '0.25.0'
36-
gen_version: str = '2.380.1'
37-
user_agent: str = 'speakeasy-sdk/python 0.25.0 2.380.1 1.0.41 unstructured-client'
35+
sdk_version: str = '0.25.1'
36+
gen_version: str = '2.382.0'
37+
user_agent: str = 'speakeasy-sdk/python 0.25.1 2.382.0 1.0.41 unstructured-client'
3838
retry_config: Optional[RetryConfig] = None
3939

4040
def __post_init__(self):

0 commit comments

Comments
 (0)