Skip to content

Commit 9b54cc0

Browse files
committed
## Python SDK Changes:
* `unstructured_client.sources.create_source()`: * `request.create_source_connector` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.create_destination()`: * `request.create_destination_connector` **Changed** (Breaking ⚠️) * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.run_workflow()`: * `request.body_run_workflow.input_files` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.update_source()`: * `request.update_source_connector.config` **Changed** * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.get_destination()`: * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.list_destinations()`: * `request.destination_type` **Changed** * `response.[]` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.update_destination()`: * `request.update_destination_connector.config` **Changed** * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.list_sources()`: * `request.source_type` **Changed** * `response.[]` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.create_job()`: * `request.body_create_job.input_files` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.get_source()`: * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.create_connection_check_sources()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.cancel_job()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.get_job_failed_files()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.list_jobs()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.create_connection_check_destinations()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.get_job()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.delete_source()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.sources.get_connection_check_sources()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.download_job_output()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.get_job_details()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.get_connection_check_destinations()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.templates.get_template()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.templates.list_templates()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.create_workflow()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.delete_workflow()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.get_workflow()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.list_workflows()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.delete_destination()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.update_workflow()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.general.partition()`: * `request.partition_parameters` **Changed** * `error.detail.union(Array<ValidationError>)[]` **Changed**
1 parent 0571f93 commit 9b54cc0

File tree

75 files changed

+1301
-490
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

75 files changed

+1301
-490
lines changed

.speakeasy/gen.lock

Lines changed: 250 additions & 209 deletions
Large diffs are not rendered by default.

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.601.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
6-
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
5+
sourceRevisionDigest: sha256:51daebbf170229171f8abd131ac74d6d5c5afd082a5ff5c4dafd2fb7e01b594e
6+
sourceBlobDigest: sha256:ca26c3040d26949b88658c45a2fec69bec166839c470e924f2f04d98e473eb1d
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768522382
10-
- 1.2.28
9+
- speakeasy-sdk-regen-1770164039
10+
- 1.5.12
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
16-
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
15+
sourceRevisionDigest: sha256:51daebbf170229171f8abd131ac74d6d5c5afd082a5ff5c4dafd2fb7e01b594e
16+
sourceBlobDigest: sha256:ca26c3040d26949b88658c45a2fec69bec166839c470e924f2f04d98e473eb1d
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:4dd3dc9d9824533e6a8e70ef4a0db808b125deb8c266a62a99a11c64162b7595
18+
codeSamplesRevisionDigest: sha256:f3bfbd4fdc929a4e437b9164e5abd389cf2846499ad17a62d2f8929e0ca4106a
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -439,20 +439,33 @@ Certain SDK methods accept file objects as part of a request body or multi-part
439439
440440
```python
441441
from unstructured_client import UnstructuredClient
442+
from unstructured_client.models import shared
442443

443444

444445
with UnstructuredClient() as uc_client:
445446

446-
res = uc_client.jobs.create_job(request={
447-
"body_create_job": {
448-
"request_data": "<value>",
447+
res = uc_client.general.partition(request={
448+
"partition_parameters": {
449+
"chunking_strategy": "by_title",
450+
"files": {
451+
"content": open("example.file", "rb"),
452+
"file_name": "example.file",
453+
},
454+
"split_pdf_cache_tmp_data_dir": "<value>",
455+
"split_pdf_page_range": [
456+
1,
457+
10,
458+
],
459+
"strategy": shared.Strategy.AUTO,
460+
"vlm_model": "gpt-4o",
461+
"vlm_model_provider": shared.VLMModelProvider.OPENAI,
449462
},
450463
})
451464

452-
assert res.job_information is not None
465+
assert res.elements is not None
453466

454467
# Handle response
455-
print(res.job_information)
468+
print(res.elements)
456469

457470
```
458471
<!-- End File uploads [file-upload] -->

RELEASES.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1211,3 +1211,14 @@ Based on:
12111211
- [python v0.42.12] .
12121212
### Releases
12131213
- [PyPI v0.42.12] https://pypi.org/project/unstructured-client/0.42.12 - .
1214+
1215+
1216+
## 2026-03-27 00:18:50
1217+
### Changes
1218+
Based on:
1219+
- OpenAPI Doc
1220+
- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy
1221+
### Generated
1222+
- [python v0.42.12] .
1223+
### Releases
1224+
- [PyPI v0.42.12] https://pypi.org/project/unstructured-client/0.42.12 - .

codeSamples.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ actions:
1414
"x-codeSamples":
1515
- "lang": "python"
1616
"label": "create_destination"
17-
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\"<value>\",\n type=shared.DestinationConnectorType.MOTHERDUCK,\n config={\n \"hosts\": [],\n \"index_name\": \"<value>\",\n },\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
17+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\"<value>\",\n type=\"<value>\",\n config=shared.PineconeDestinationConnectorConfigInput(\n index_name=\"<value>\",\n api_key=\"<value>\",\n namespace=\"<value>\",\n batch_size=50,\n ),\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
1818
- target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"]
1919
update:
2020
"x-codeSamples":
@@ -98,7 +98,7 @@ actions:
9898
"x-codeSamples":
9999
- "lang": "python"
100100
"label": "create_source"
101-
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"<value>\",\n \"type\": shared.SourceConnectorType.DROPBOX,\n \"config\": {\n \"box_app_config\": \"<value>\",\n \"remote_url\": \"https://ugly-ribbon.info\",\n \"recursive\": True,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
101+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request=operations.CreateSourceRequest(\n create_source_connector=shared.CreateSourceConnector(\n name=\"<value>\",\n type=shared.SourceConnectorType.BOX,\n config={\n \"host\": \"ugly-ribbon.info\",\n \"database\": \"<value>\",\n \"port\": 526676,\n \"username\": \"Albertha_Senger\",\n \"password\": \"jIalrq2izU8rFxd\",\n \"table_name\": \"<value>\",\n \"batch_size\": 637100,\n \"id_column\": \"id\",\n },\n ),\n ))\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
102102
- target: $["paths"]["/api/v1/sources/{source_id}"]["delete"]
103103
update:
104104
"x-codeSamples":
@@ -116,7 +116,7 @@ actions:
116116
"x-codeSamples":
117117
- "lang": "python"
118118
"label": "update_source"
119-
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"6ddfe201-42c1-4097-a271-1fc2801d1903\",\n \"update_source_connector\": {\n \"config\": {\n \"bucket\": \"<value>\",\n \"connection_string\": \"<value>\",\n \"batch_size\": 615322,\n \"username\": \"Lue.Murphy87\",\n \"password\": \"qfyDYveMwvwoQEV\",\n \"collection_id\": \"<id>\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
119+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request=operations.UpdateSourceRequest(\n source_id=\"6ddfe201-42c1-4097-a271-1fc2801d1903\",\n update_source_connector=shared.UpdateSourceConnector(\n config={\n \"bucket\": \"<value>\",\n \"connection_string\": \"<value>\",\n \"batch_size\": 615322,\n \"username\": \"Lue.Murphy87\",\n \"password\": \"qfyDYveMwvwoQEV\",\n \"collection_id\": \"<id>\",\n },\n ),\n ))\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)"
120120
- target: $["paths"]["/api/v1/sources/{source_id}/connection-check"]["get"]
121121
update:
122122
"x-codeSamples":

docs/models/shared/bodycreatejob.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
8-
| `input_files` | List[[shared.InputFiles](../../models/shared/inputfiles.md)] | :heavy_minus_sign: | N/A |
9-
| `request_data` | *str* | :heavy_check_mark: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `input_files` | List[*str*] | :heavy_minus_sign: | N/A |
9+
| `request_data` | *str* | :heavy_check_mark: | N/A |

docs/models/shared/bodyrunworkflow.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@
33

44
## Fields
55

6-
| Field | Type | Required | Description |
7-
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
8-
| `input_files` | List[[shared.BodyRunWorkflowInputFiles](../../models/shared/bodyrunworkflowinputfiles.md)] | :heavy_minus_sign: | N/A |
6+
| Field | Type | Required | Description |
7+
| ------------------ | ------------------ | ------------------ | ------------------ |
8+
| `input_files` | List[*str*] | :heavy_minus_sign: | N/A |

docs/models/shared/bodyrunworkflowinputfiles.md

Lines changed: 0 additions & 10 deletions
This file was deleted.

docs/models/shared/config.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,12 @@ value: shared.S3DestinationConnectorConfigInput = /* values here */
129129
value: shared.SnowflakeDestinationConnectorConfigInput = /* values here */
130130
```
131131

132+
### `shared.TeradataDestinationConnectorConfigInput`
133+
134+
```python
135+
value: shared.TeradataDestinationConnectorConfigInput = /* values here */
136+
```
137+
132138
### `shared.WeaviateDestinationConnectorConfigInput`
133139

134140
```python

docs/models/shared/context.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Context
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ----------- | ----------- | ----------- | ----------- |

0 commit comments

Comments
 (0)