Skip to content

Commit

Permalink
chore: 🐝 Update SDK - Generate 0.25.1 (#141)
Browse files Browse the repository at this point in the history
> [!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]>
  • Loading branch information
github-actions[bot] and speakeasybot authored Jul 31, 2024
1 parent 40c4443 commit 22fb177
Show file tree
Hide file tree
Showing 9 changed files with 60 additions and 50 deletions.
10 changes: 5 additions & 5 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: c20db13bfb07ee6d97a80d72980a238c
docChecksum: 10d6e50c2142f9d44bc03cb74664a2c4
docVersion: 1.0.41
speakeasyVersion: 1.348.1
generationVersion: 2.380.1
releaseVersion: 0.25.0
configChecksum: 6112a5356b8deb50b10d38a5e7e3bcd8
speakeasyVersion: 1.349.0
generationVersion: 2.382.0
releaseVersion: 0.25.1
configChecksum: 83450d02d23f7ebc3d13eb098b07b583
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand Down
10 changes: 5 additions & 5 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
speakeasyVersion: 1.348.1
speakeasyVersion: 1.349.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:f6db3da28a6004b2ea693aaf918e6e18ee9e2b6c5c4cae993fe02ebdd7ac324d
sourceBlobDigest: sha256:81bfa48cb6f236c114c84a4defe907ea07e1a87b12797274112e754dd847c324
sourceRevisionDigest: sha256:6316cd6a8ea4254edfce7c25db49f21d835e0f0bfc4017caf81b1ba69551bc8b
sourceBlobDigest: sha256:1fe4394ff6a8c82e9eb10bc20c5bcec7537fb1b30229401b175a0dadf6767251
tags:
- latest
- main
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:f6db3da28a6004b2ea693aaf918e6e18ee9e2b6c5c4cae993fe02ebdd7ac324d
sourceBlobDigest: sha256:81bfa48cb6f236c114c84a4defe907ea07e1a87b12797274112e754dd847c324
sourceRevisionDigest: sha256:6316cd6a8ea4254edfce7c25db49f21d835e0f0bfc4017caf81b1ba69551bc8b
sourceBlobDigest: sha256:1fe4394ff6a8c82e9eb10bc20c5bcec7537fb1b30229401b175a0dadf6767251
outLocation: /github/workspace/repo
workflow:
workflowVersion: 1.0.0
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -594,4 +594,14 @@ Based on:
### Generated
- [python v0.25.0] .
### Releases
- [PyPI v0.25.0] https://pypi.org/project/unstructured-client/0.25.0 - .
- [PyPI v0.25.0] https://pypi.org/project/unstructured-client/0.25.0 - .

## 2024-07-31 00:17:53
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.349.0 (2.382.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.25.1] .
### Releases
- [PyPI v0.25.1] https://pypi.org/project/unstructured-client/0.25.1 - .
1 change: 0 additions & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@ res = s.general.partition(request=operations.PartitionRequest(
1,
10,
],
split_pdf_allow_failed=False,
strategy=shared.Strategy.HI_RES,
),
))
Expand Down
63 changes: 32 additions & 31 deletions docs/models/shared/partitionparameters.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
python:
version: 0.25.0
version: 0.25.1
additionalDependencies:
dependencies:
deepdiff: '>=6.0'
Expand Down
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@

setuptools.setup(
name='unstructured-client',
version='0.25.0',
version='0.25.1',
author='Unstructured',
description='Python Client SDK for Unstructured API',
license = 'MIT',
Expand Down
4 changes: 2 additions & 2 deletions src/unstructured_client/models/shared/partition_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -81,14 +81,14 @@ class PartitionParameters:
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."""
skip_infer_table_types: Optional[List[str]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'skip_infer_table_types' }})
r"""The document types that you want to skip table extraction with. Default: []"""
split_pdf_allow_failed: Optional[bool] = dataclasses.field(default=False, metadata={'multipart_form': { 'field_name': 'split_pdf_allow_failed' }})
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."""
split_pdf_concurrency_level: Optional[int] = dataclasses.field(default=5, metadata={'multipart_form': { 'field_name': 'split_pdf_concurrency_level' }})
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."""
split_pdf_page: Optional[bool] = dataclasses.field(default=True, metadata={'multipart_form': { 'field_name': 'split_pdf_page' }})
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."""
split_pdf_page_range: Optional[List[int]] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'split_pdf_page_range' }})
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."""
split_pdf_allow_failed: Optional[bool] = dataclasses.field(default=False, metadata={'multipart_form': { 'field_name': 'split_pdf_allow_failed' }})
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."""
starting_page_number: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'starting_page_number' }})
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."""
strategy: Optional[Strategy] = dataclasses.field(default=Strategy.AUTO, metadata={'multipart_form': { 'field_name': 'strategy' }})
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/sdkconfiguration.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@ class SDKConfiguration:
server: Optional[str] = ''
language: str = 'python'
openapi_doc_version: str = '1.0.41'
sdk_version: str = '0.25.0'
gen_version: str = '2.380.1'
user_agent: str = 'speakeasy-sdk/python 0.25.0 2.380.1 1.0.41 unstructured-client'
sdk_version: str = '0.25.1'
gen_version: str = '2.382.0'
user_agent: str = 'speakeasy-sdk/python 0.25.1 2.382.0 1.0.41 unstructured-client'
retry_config: Optional[RetryConfig] = None

def __post_init__(self):
Expand Down

0 comments on commit 22fb177

Please sign in to comment.