From f927744b49fad05bfdb5056e1c4777928acc4ff5 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 6 Aug 2024 01:36:16 +0000 Subject: [PATCH] =?UTF-8?q?chore:=20=F0=9F=90=9D=20Update=20SDK=20-=20Gene?= =?UTF-8?q?rate=200.25.3=20(#144)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > [!IMPORTANT] > Linting report available at: > OpenAPI Change report available at: # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy ## OpenAPI Change Summary ``` ├─┬Info │ └──[🔀] version (4:14) └─┬Components └─┬partition_parameters └──[➕] properties (103:17) ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | info | 1 | 0 | | components | 1 | 0 | Co-authored-by: speakeasybot --- .speakeasy/gen.lock | 14 +++++++------- .speakeasy/workflow.lock | 10 +++++----- RELEASES.md | 12 +++++++++++- docs/models/shared/partitionparameters.md | 1 + gen.yaml | 2 +- setup.py | 2 +- .../models/shared/partition_parameters.py | 2 ++ src/unstructured_client/sdkconfiguration.py | 8 ++++---- 8 files changed, 32 insertions(+), 19 deletions(-) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index a8ada2e4..bc0ac3a6 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 8b5fa338-9106-4734-abf0-e30d67044a90 management: - docChecksum: 47b6fa4630fd66b59c0579ce79bc6ce3 - docVersion: 1.0.42 - speakeasyVersion: 1.352.1 - generationVersion: 2.385.1 - releaseVersion: 0.25.2 - configChecksum: a9359082a36d964c3b4ca401770510ea + docChecksum: f4daf2a82fa5421160b71b44ed12f0b9 + docVersion: 1.0.43 + speakeasyVersion: 1.352.2 + generationVersion: 2.385.2 + releaseVersion: 0.25.3 + configChecksum: ddc7435caf130892c3dee03e0f26840a repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -17,7 +17,7 @@ features: constsAndDefaults: 0.1.3 core: 4.8.4 examples: 2.81.3 - globalSecurity: 2.83.5 + globalSecurity: 2.83.6 globalSecurityCallbacks: 0.1.0 globalSecurityFlattening: 0.1.0 globalServerURLs: 2.82.2 diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 98342105..65c3c75c 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,9 +1,9 @@ -speakeasyVersion: 1.352.1 +speakeasyVersion: 1.352.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:204ce6bd0666235fd0364d4befe342a0a3ef1de2c7efb26c8c7347fb73c8de0e - sourceBlobDigest: sha256:29f4b5735bb7a333f2efcf0f1453e6c8281f7a04302837c07a92dc0e7b0115c4 + sourceRevisionDigest: sha256:0016df31d8fd1ddee8895c62863313e3ff9a03e1aecca43c7b7fa995d357d80a + sourceBlobDigest: sha256:1d359865a4c9fed527678b686ca7e41b09bdb44f22e05c5dd7d81079a9e3dfe3 tags: - latest - main @@ -11,8 +11,8 @@ targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:204ce6bd0666235fd0364d4befe342a0a3ef1de2c7efb26c8c7347fb73c8de0e - sourceBlobDigest: sha256:29f4b5735bb7a333f2efcf0f1453e6c8281f7a04302837c07a92dc0e7b0115c4 + sourceRevisionDigest: sha256:0016df31d8fd1ddee8895c62863313e3ff9a03e1aecca43c7b7fa995d357d80a + sourceBlobDigest: sha256:1d359865a4c9fed527678b686ca7e41b09bdb44f22e05c5dd7d81079a9e3dfe3 outLocation: /github/workspace/repo workflow: workflowVersion: 1.0.0 diff --git a/RELEASES.md b/RELEASES.md index 0d34daab..2cbac2ed 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -614,4 +614,14 @@ Based on: ### Generated - [python v0.25.2] . ### Releases -- [PyPI v0.25.2] https://pypi.org/project/unstructured-client/0.25.2 - . \ No newline at end of file +- [PyPI v0.25.2] https://pypi.org/project/unstructured-client/0.25.2 - . + +## 2024-08-06 00:40:16 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.352.2 (2.385.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.25.3] . +### Releases +- [PyPI v0.25.3] https://pypi.org/project/unstructured-client/0.25.3 - . \ No newline at end of file diff --git a/docs/models/shared/partitionparameters.md b/docs/models/shared/partitionparameters.md index adfc1db9..1f8369a7 100644 --- a/docs/models/shared/partitionparameters.md +++ b/docs/models/shared/partitionparameters.md @@ -8,6 +8,7 @@ | `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | | | `chunking_strategy` | [Optional[shared.ChunkingStrategy]](../../models/shared/chunkingstrategy.md) | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | by_title | | `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 | | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype. | | | `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | | | `encoding` | *Optional[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | | | `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. | | diff --git a/gen.yaml b/gen.yaml index 11db7b72..eb1e3829 100644 --- a/gen.yaml +++ b/gen.yaml @@ -10,7 +10,7 @@ generation: auth: oAuth2ClientCredentialsEnabled: false python: - version: 0.25.2 + version: 0.25.3 additionalDependencies: dependencies: deepdiff: '>=6.0' diff --git a/setup.py b/setup.py index dcc3ac79..5f25c594 100644 --- a/setup.py +++ b/setup.py @@ -19,7 +19,7 @@ setuptools.setup( name='unstructured-client', - version='0.25.2', + version='0.25.3', author='Unstructured', description='Python Client SDK for Unstructured API', license = 'MIT', diff --git a/src/unstructured_client/models/shared/partition_parameters.py b/src/unstructured_client/models/shared/partition_parameters.py index 0c967a83..69cbcf8d 100644 --- a/src/unstructured_client/models/shared/partition_parameters.py +++ b/src/unstructured_client/models/shared/partition_parameters.py @@ -45,6 +45,8 @@ class PartitionParameters: r"""Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title'""" combine_under_n_chars: Optional[int] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'combine_under_n_chars' }}) r"""If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500""" + content_type: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'content_type' }}) + r"""A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype.""" coordinates: Optional[bool] = dataclasses.field(default=False, metadata={'multipart_form': { 'field_name': 'coordinates' }}) r"""If `True`, return coordinates for each element extracted via OCR. Default: `False`""" encoding: Optional[str] = dataclasses.field(default=None, metadata={'multipart_form': { 'field_name': 'encoding' }}) diff --git a/src/unstructured_client/sdkconfiguration.py b/src/unstructured_client/sdkconfiguration.py index f627a5df..53a61b10 100644 --- a/src/unstructured_client/sdkconfiguration.py +++ b/src/unstructured_client/sdkconfiguration.py @@ -31,10 +31,10 @@ class SDKConfiguration: server_url: Optional[str] = '' server: Optional[str] = '' language: str = 'python' - openapi_doc_version: str = '1.0.42' - sdk_version: str = '0.25.2' - gen_version: str = '2.385.1' - user_agent: str = 'speakeasy-sdk/python 0.25.2 2.385.1 1.0.42 unstructured-client' + openapi_doc_version: str = '1.0.43' + sdk_version: str = '0.25.3' + gen_version: str = '2.385.2' + user_agent: str = 'speakeasy-sdk/python 0.25.3 2.385.2 1.0.43 unstructured-client' retry_config: Optional[RetryConfig] = None def __post_init__(self):