Skip to content

chore: 🐝 Update SDK - Generate 0.37.4 #281

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 1, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 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: 940cbfd3d076c56d2c04a8413abb0e1d
docVersion: 1.1.25
speakeasyVersion: 1.568.0
generationVersion: 2.632.2
releaseVersion: 0.37.2
configChecksum: c18311f5449d4c3ab52058b6c2ab8715
docChecksum: b83a55777bc5d3b1bda7cdfe7ee07a04
docVersion: 1.1.30
speakeasyVersion: 1.552.0
generationVersion: 2.610.0
releaseVersion: 0.37.4
configChecksum: e25743f343bf001c8363d5a665e685d5
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand All @@ -16,7 +16,7 @@ features:
acceptHeaders: 3.0.0
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.19.3
core: 5.19.0
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
envVarSecurityUsage: 0.3.2
Expand All @@ -32,7 +32,7 @@ features:
openEnums: 1.0.1
responseFormat: 1.0.1
retries: 3.0.2
sdkHooks: 1.1.0
sdkHooks: 1.0.1
serverIDs: 3.0.0
unions: 3.0.4
uploadStreams: 1.0.0
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,20 @@ speakeasyVersion: 1.552.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd
sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7
tags:
- latest
- speakeasy-sdk-regen-1750778809
- 1.1.25
- speakeasy-sdk-regen-1751381120
- 1.1.30
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd
sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:a50f51859ef75df1e6875cbaf24765f1fdad97a569e90b04084015fc6a98029c
codeSamplesRevisionDigest: sha256:881506df7bd3dc39018398887eb4b2914e0f22f7be5b7c6418810213af6d1546
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
20 changes: 16 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -410,18 +410,30 @@ Certain SDK methods accept file objects as part of a request body or multi-part

```python
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared


with UnstructuredClient() as uc_client:

res = uc_client.workflows.run_workflow(request={
"workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
res = uc_client.general.partition(request={
"partition_parameters": {
"files": {
"content": open("example.file", "rb"),
"file_name": "example.file",
},
"split_pdf_page_range": [
1,
10,
],
"vlm_model": shared.VLMModel.GPT_4O,
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
},
})

assert res.job_information is not None
assert res.elements is not None

# Handle response
print(res.job_information)
print(res.elements)

```
<!-- End File uploads [file-upload] -->
Expand Down
11 changes: 11 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1028,3 +1028,14 @@ Based on:
- [python v0.37.2] .
### Releases
- [PyPI v0.37.2] https://pypi.org/project/unstructured-client/0.37.2 - .


## 2025-07-01 14:45:04
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.37.4] .
### Releases
- [PyPI v0.37.4] https://pypi.org/project/unstructured-client/0.37.4 - .
1 change: 1 addition & 0 deletions docs/models/shared/vlmmodel.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ The VLM Model to use.
| `GEMINI_1_5_PRO` | gemini-1.5-pro |
| `US_AMAZON_NOVA_PRO_V1_0` | us.amazon.nova-pro-v1:0 |
| `US_AMAZON_NOVA_LITE_V1_0` | us.amazon.nova-lite-v1:0 |
| `US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0` | us.anthropic.claude-3-7-sonnet-20250219-v1:0 |
| `US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0` | us.anthropic.claude-3-5-sonnet-20241022-v2:0 |
| `US_ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0` | us.anthropic.claude-3-opus-20240229-v1:0 |
| `US_ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0` | us.anthropic.claude-3-haiku-20240307-v1:0 |
Expand Down
3 changes: 0 additions & 3 deletions docs/sdks/general/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,17 +22,14 @@ with UnstructuredClient() as uc_client:

res = uc_client.general.partition(request={
"partition_parameters": {
"chunking_strategy": "by_title",
"files": {
"content": open("example.file", "rb"),
"file_name": "example.file",
},
"split_pdf_cache_tmp_data_dir": "<value>",
"split_pdf_page_range": [
1,
10,
],
"strategy": shared.Strategy.AUTO,
"vlm_model": shared.VLMModel.GPT_4O,
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
},
Expand Down
2 changes: 1 addition & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ generation:
oAuth2ClientCredentialsEnabled: false
oAuth2PasswordEnabled: false
python:
version: 0.37.3
version: 0.37.4
additionalDependencies:
dev:
deepdiff: '>=6.0'
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[project]
name = "unstructured-client"
version = "0.37.3"
version = "0.37.4"
description = "Python Client SDK for Unstructured API"
authors = [{ name = "Unstructured" },]
readme = "README-PYPI.md"
Expand Down Expand Up @@ -52,8 +52,6 @@ pythonpath = ["src"]

[tool.mypy]
disable_error_code = "misc"
explicit_package_bases = true
mypy_path = "src"

[[tool.mypy.overrides]]
module = "typing_inspect"
Expand Down
8 changes: 4 additions & 4 deletions src/unstructured_client/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "unstructured-client"
__version__: str = "0.37.2"
__openapi_doc_version__: str = "1.1.25"
__gen_version__: str = "2.632.2"
__user_agent__: str = "speakeasy-sdk/python 0.37.2 2.632.2 1.1.25 unstructured-client"
__version__: str = "0.37.4"
__openapi_doc_version__: str = "1.1.30"
__gen_version__: str = "2.610.0"
__user_agent__: str = "speakeasy-sdk/python 0.37.4 2.610.0 1.1.30 unstructured-client"

try:
if __package__ is not None:
Expand Down
3 changes: 3 additions & 0 deletions src/unstructured_client/models/shared/partition_parameters.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ class VLMModel(str, Enum, metaclass=utils.OpenEnumMeta):
GEMINI_1_5_PRO = "gemini-1.5-pro"
US_AMAZON_NOVA_PRO_V1_0 = "us.amazon.nova-pro-v1:0"
US_AMAZON_NOVA_LITE_V1_0 = "us.amazon.nova-lite-v1:0"
US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0 = (
"us.anthropic.claude-3-7-sonnet-20250219-v1:0"
)
US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = (
"us.anthropic.claude-3-5-sonnet-20241022-v2:0"
)
Expand Down