Skip to content

Commit a316efc

Browse files
authored
Merge branch 'main' into feat/secret-encryption
2 parents f7a1625 + 7d6d402 commit a316efc

File tree

10 files changed

+52
-30
lines changed

10 files changed

+52
-30
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
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: 940cbfd3d076c56d2c04a8413abb0e1d
5-
docVersion: 1.1.25
6-
speakeasyVersion: 1.568.0
7-
generationVersion: 2.632.2
8-
releaseVersion: 0.37.2
9-
configChecksum: c18311f5449d4c3ab52058b6c2ab8715
4+
docChecksum: b83a55777bc5d3b1bda7cdfe7ee07a04
5+
docVersion: 1.1.30
6+
speakeasyVersion: 1.552.0
7+
generationVersion: 2.610.0
8+
releaseVersion: 0.37.4
9+
configChecksum: e25743f343bf001c8363d5a665e685d5
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.19.3
19+
core: 5.19.0
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
@@ -32,7 +32,7 @@ features:
3232
openEnums: 1.0.1
3333
responseFormat: 1.0.1
3434
retries: 3.0.2
35-
sdkHooks: 1.1.0
35+
sdkHooks: 1.0.1
3636
serverIDs: 3.0.0
3737
unions: 3.0.4
3838
uploadStreams: 1.0.0

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.552.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31
6-
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
5+
sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd
6+
sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1750778809
10-
- 1.1.25
9+
- speakeasy-sdk-regen-1751381120
10+
- 1.1.30
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:71b0c415bf2f060aae163e8321db207f2c3a5661e9fc4687f442ff1d7bf63a31
16-
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
15+
sourceRevisionDigest: sha256:eb89977003fa8188a88bc2996d243ca9385d4d6964330e201b0f76a0a4bb2dcd
16+
sourceBlobDigest: sha256:ebd768e737b62ea63eb80866cbb5520c544310d41e0960dad7f1b7f056e8e9c7
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:a50f51859ef75df1e6875cbaf24765f1fdad97a569e90b04084015fc6a98029c
18+
codeSamplesRevisionDigest: sha256:881506df7bd3dc39018398887eb4b2914e0f22f7be5b7c6418810213af6d1546
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -410,18 +410,30 @@ Certain SDK methods accept file objects as part of a request body or multi-part
410410
411411
```python
412412
from unstructured_client import UnstructuredClient
413+
from unstructured_client.models import shared
413414

414415

415416
with UnstructuredClient() as uc_client:
416417

417-
res = uc_client.workflows.run_workflow(request={
418-
"workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
418+
res = uc_client.general.partition(request={
419+
"partition_parameters": {
420+
"files": {
421+
"content": open("example.file", "rb"),
422+
"file_name": "example.file",
423+
},
424+
"split_pdf_page_range": [
425+
1,
426+
10,
427+
],
428+
"vlm_model": shared.VLMModel.GPT_4O,
429+
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
430+
},
419431
})
420432

421-
assert res.job_information is not None
433+
assert res.elements is not None
422434

423435
# Handle response
424-
print(res.job_information)
436+
print(res.elements)
425437

426438
```
427439
<!-- End File uploads [file-upload] -->

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,3 +1028,14 @@ Based on:
10281028
- [python v0.37.2] .
10291029
### Releases
10301030
- [PyPI v0.37.2] https://pypi.org/project/unstructured-client/0.37.2 - .
1031+
1032+
1033+
## 2025-07-01 14:45:04
1034+
### Changes
1035+
Based on:
1036+
- OpenAPI Doc
1037+
- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
1038+
### Generated
1039+
- [python v0.37.4] .
1040+
### Releases
1041+
- [PyPI v0.37.4] https://pypi.org/project/unstructured-client/0.37.4 - .

docs/models/shared/vlmmodel.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ The VLM Model to use.
1313
| `GEMINI_1_5_PRO` | gemini-1.5-pro |
1414
| `US_AMAZON_NOVA_PRO_V1_0` | us.amazon.nova-pro-v1:0 |
1515
| `US_AMAZON_NOVA_LITE_V1_0` | us.amazon.nova-lite-v1:0 |
16+
| `US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0` | us.anthropic.claude-3-7-sonnet-20250219-v1:0 |
1617
| `US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0` | us.anthropic.claude-3-5-sonnet-20241022-v2:0 |
1718
| `US_ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0` | us.anthropic.claude-3-opus-20240229-v1:0 |
1819
| `US_ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0` | us.anthropic.claude-3-haiku-20240307-v1:0 |

docs/sdks/general/README.md

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,17 +22,14 @@ with UnstructuredClient() as uc_client:
2222

2323
res = uc_client.general.partition(request={
2424
"partition_parameters": {
25-
"chunking_strategy": "by_title",
2625
"files": {
2726
"content": open("example.file", "rb"),
2827
"file_name": "example.file",
2928
},
30-
"split_pdf_cache_tmp_data_dir": "<value>",
3129
"split_pdf_page_range": [
3230
1,
3331
10,
3432
],
35-
"strategy": shared.Strategy.AUTO,
3633
"vlm_model": shared.VLMModel.GPT_4O,
3734
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
3835
},

gen.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ generation:
1414
oAuth2ClientCredentialsEnabled: false
1515
oAuth2PasswordEnabled: false
1616
python:
17-
version: 0.37.3
17+
version: 0.37.4
1818
additionalDependencies:
1919
dev:
2020
deepdiff: '>=6.0'

pyproject.toml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unstructured-client"
3-
version = "0.37.3"
3+
version = "0.37.4"
44
description = "Python Client SDK for Unstructured API"
55
authors = [{ name = "Unstructured" },]
66
readme = "README-PYPI.md"
@@ -52,8 +52,6 @@ pythonpath = ["src"]
5252

5353
[tool.mypy]
5454
disable_error_code = "misc"
55-
explicit_package_bases = true
56-
mypy_path = "src"
5755

5856
[[tool.mypy.overrides]]
5957
module = "typing_inspect"

src/unstructured_client/_version.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "unstructured-client"
6-
__version__: str = "0.37.2"
7-
__openapi_doc_version__: str = "1.1.25"
8-
__gen_version__: str = "2.632.2"
9-
__user_agent__: str = "speakeasy-sdk/python 0.37.2 2.632.2 1.1.25 unstructured-client"
6+
__version__: str = "0.37.4"
7+
__openapi_doc_version__: str = "1.1.30"
8+
__gen_version__: str = "2.610.0"
9+
__user_agent__: str = "speakeasy-sdk/python 0.37.4 2.610.0 1.1.30 unstructured-client"
1010

1111
try:
1212
if __package__ is not None:

src/unstructured_client/models/shared/partition_parameters.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,9 @@ class VLMModel(str, Enum, metaclass=utils.OpenEnumMeta):
7373
GEMINI_1_5_PRO = "gemini-1.5-pro"
7474
US_AMAZON_NOVA_PRO_V1_0 = "us.amazon.nova-pro-v1:0"
7575
US_AMAZON_NOVA_LITE_V1_0 = "us.amazon.nova-lite-v1:0"
76+
US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0 = (
77+
"us.anthropic.claude-3-7-sonnet-20250219-v1:0"
78+
)
7679
US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = (
7780
"us.anthropic.claude-3-5-sonnet-20241022-v2:0"
7881
)

0 commit comments

Comments
 (0)