Skip to content

Commit 5f58f8e

Browse files
committed
## Python SDK Changes Detected:
* `unstructured_client.workflows.create_workflow()`: `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.get_workflow()`: `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.list_workflows()`: `response.[].reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.update_workflow()`: `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.general.partition()`: * `request.partition_parameters.vlm_model` **Changed** **Breaking** ⚠️ * `unstructured_client.destinations.create_destination()`: * `request.create_destination_connector.config.[azure_destination_connector_config_input]` **Added** * `response.config.[azure_destination_connector_config]` **Added** * `unstructured_client.destinations.get_destination()`: `response.config.[azure_destination_connector_config]` **Added** * `unstructured_client.destinations.list_destinations()`: * `request.destination_type` **Changed** * `response.[].config.[azure_destination_connector_config]` **Added** * `unstructured_client.destinations.update_destination()`: * `request.update_destination_connector.config.[azure_destination_connector_config_input]` **Added** * `response.config.[azure_destination_connector_config]` **Added**
1 parent d288c14 commit 5f58f8e

Some content is hidden

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

45 files changed

+346
-203
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env.local
12
**/__pycache__/
23
**/.speakeasy/temp/
34
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 18 additions & 15 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: 8038a5b9e376d44bad2fd4c117922954
5-
docVersion: 1.1.45
6-
speakeasyVersion: 1.601.0
7-
generationVersion: 2.680.0
8-
releaseVersion: 0.42.3
9-
configChecksum: 3d02dd7ca437781b3d721fab5d7b9adc
4+
docChecksum: eff33997163fd685e0bdbb2f53f0082e
5+
docVersion: 1.2.0
6+
speakeasyVersion: 1.637.0
7+
generationVersion: 2.727.4
8+
releaseVersion: 0.43.0
9+
configChecksum: f58c0bd4b0a676689c655d7d4b5fd350
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,13 +16,13 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.19.8
19+
core: 5.23.0
2020
customCodeRegions: 0.1.1
2121
defaultEnabledRetries: 0.2.0
2222
enumUnions: 0.1.0
2323
envVarSecurityUsage: 0.3.2
2424
examples: 3.0.2
25-
globalSecurity: 3.0.3
25+
globalSecurity: 3.0.4
2626
globalSecurityCallbacks: 1.0.0
2727
globalSecurityFlattening: 1.0.0
2828
globalServerURLs: 3.1.1
@@ -34,7 +34,7 @@ features:
3434
retries: 3.0.2
3535
sdkHooks: 1.1.0
3636
serverIDs: 3.0.0
37-
unions: 3.0.4
37+
unions: 3.1.0
3838
uploadStreams: 1.0.0
3939
generatedFiles:
4040
- .gitattributes
@@ -101,6 +101,8 @@ generatedFiles:
101101
- docs/models/shared/astradbconnectorconfiginput.md
102102
- docs/models/shared/azureaisearchconnectorconfig.md
103103
- docs/models/shared/azureaisearchconnectorconfiginput.md
104+
- docs/models/shared/azuredestinationconnectorconfig.md
105+
- docs/models/shared/azuredestinationconnectorconfiginput.md
104106
- docs/models/shared/azuresourceconnectorconfig.md
105107
- docs/models/shared/azuresourceconnectorconfiginput.md
106108
- docs/models/shared/bodyrunworkflow.md
@@ -212,7 +214,6 @@ generatedFiles:
212214
- docs/models/shared/updateworkflow.md
213215
- docs/models/shared/updateworkflowschedule.md
214216
- docs/models/shared/validationerror.md
215-
- docs/models/shared/vlmmodel.md
216217
- docs/models/shared/vlmmodelprovider.md
217218
- docs/models/shared/weaviatedestinationconnectorconfig.md
218219
- docs/models/shared/weaviatedestinationconnectorconfiginput.md
@@ -229,7 +230,6 @@ generatedFiles:
229230
- docs/sdks/general/README.md
230231
- docs/sdks/jobs/README.md
231232
- docs/sdks/sources/README.md
232-
- docs/sdks/unstructuredclient/README.md
233233
- docs/sdks/workflows/README.md
234234
- poetry.toml
235235
- py.typed
@@ -287,6 +287,8 @@ generatedFiles:
287287
- src/unstructured_client/models/shared/astradbconnectorconfiginput.py
288288
- src/unstructured_client/models/shared/azureaisearchconnectorconfig.py
289289
- src/unstructured_client/models/shared/azureaisearchconnectorconfiginput.py
290+
- src/unstructured_client/models/shared/azuredestinationconnectorconfig.py
291+
- src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py
290292
- src/unstructured_client/models/shared/azuresourceconnectorconfig.py
291293
- src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py
292294
- src/unstructured_client/models/shared/body_run_workflow.py
@@ -600,7 +602,7 @@ examples:
600602
application/json: {"name": "<value>", "workflow_type": "advanced"}
601603
responses:
602604
"200":
603-
application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
605+
application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
604606
"422":
605607
application/json: {"detail": "<value>"}
606608
delete_workflow:
@@ -620,7 +622,7 @@ examples:
620622
workflow_id: "d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76"
621623
responses:
622624
"200":
623-
application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["349ed27a-eeda-4851-866a-8ce3a65a2957", "9aa34544-3278-446f-a265-efcaa55f9c4a"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
625+
application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["349ed27a-eeda-4851-866a-8ce3a65a2957", "9aa34544-3278-446f-a265-efcaa55f9c4a"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
624626
"422":
625627
application/json: {"detail": "<value>"}
626628
list_workflows:
@@ -630,7 +632,7 @@ examples:
630632
sort_by: "id"
631633
responses:
632634
"200":
633-
application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}]
635+
application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}]
634636
"422":
635637
application/json: {"detail": [{"loc": ["<value>", 864403], "msg": "<value>", "type": "<value>"}]}
636638
run_workflow:
@@ -652,7 +654,7 @@ examples:
652654
application/json: {}
653655
responses:
654656
"200":
655-
application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["0957eb7f-57d3-4705-bc49-03de6ad3794d", "a8b88099-9065-4458-a824-b37da7a9bccf", "a024c482-10ba-433a-9100-e6471e9d3db0"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
657+
application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["0957eb7f-57d3-4705-bc49-03de6ad3794d", "a8b88099-9065-4458-a824-b37da7a9bccf", "a024c482-10ba-433a-9100-e6471e9d3db0"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
656658
"422":
657659
application/json: {"detail": "<value>"}
658660
partition:
@@ -712,3 +714,4 @@ examples:
712714
application/json: {"detail": []}
713715
examplesVersion: 1.0.2
714716
generatedTests: {}
717+
releaseNotes: "## Python SDK Changes Detected:\n* `unstructured_client.workflows.create_workflow()`: `response.reprocess_all` **Changed** **Breaking** :warning:\n* `unstructured_client.workflows.get_workflow()`: `response.reprocess_all` **Changed** **Breaking** :warning:\n* `unstructured_client.workflows.list_workflows()`: `response.[].reprocess_all` **Changed** **Breaking** :warning:\n* `unstructured_client.workflows.update_workflow()`: `response.reprocess_all` **Changed** **Breaking** :warning:\n* `unstructured_client.general.partition()`: \n * `request.partition_parameters.vlm_model` **Changed** **Breaking** :warning:\n* `unstructured_client.destinations.create_destination()`: \n * `request.create_destination_connector.config.[azure_destination_connector_config_input]` **Added**\n * `response.config.[azure_destination_connector_config]` **Added**\n* `unstructured_client.destinations.get_destination()`: `response.config.[azure_destination_connector_config]` **Added**\n* `unstructured_client.destinations.list_destinations()`: \n * `request.destination_type` **Changed**\n * `response.[].config.[azure_destination_connector_config]` **Added**\n* `unstructured_client.destinations.update_destination()`: \n * `request.update_destination_connector.config.[azure_destination_connector_config_input]` **Added**\n * `response.config.[azure_destination_connector_config]` **Added**\n"

.speakeasy/workflow.lock

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
speakeasyVersion: 1.601.0
1+
speakeasyVersion: 1.637.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
6-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
5+
sourceRevisionDigest: sha256:dfb2c25f81c0e24abf5ba399b0f836aa0e25fe89ca1734c05e458cdf941f17d9
6+
sourceBlobDigest: sha256:ffe4ddcbb6545c6054557cb8d6afa56c64ac81e267b502a3ca83e104dfaef195
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1754698272
10-
- 1.1.45
9+
- speakeasy-sdk-regen-1756339855
10+
- 1.2.0
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
16-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
15+
sourceRevisionDigest: sha256:dfb2c25f81c0e24abf5ba399b0f836aa0e25fe89ca1734c05e458cdf941f17d9
16+
sourceBlobDigest: sha256:ffe4ddcbb6545c6054557cb8d6afa56c64ac81e267b502a3ca83e104dfaef195
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:a5e11972bfb15e43b7fcb2647b3a7b3e129e9303294f9110670280971b10780a
18+
codeSamplesRevisionDigest: sha256:7c16d73cd265c979e746ffcb3c753ea3a1ca0930c00d182e32fc0c0ef4e72d82
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -346,6 +346,7 @@ with UnstructuredClient() as uc_client:
346346
</br>
347347

348348
The same SDK client can also be used to make asynchronous requests by importing asyncio.
349+
349350
```python
350351
# Asynchronous Example
351352
import asyncio

RELEASES.md

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1119,4 +1119,14 @@ Based on:
11191119
### Generated
11201120
- [python v0.42.3] .
11211121
### Releases
1122-
- [PyPI v0.42.3] https://pypi.org/project/unstructured-client/0.42.3 - .
1122+
- [PyPI v0.42.3] https://pypi.org/project/unstructured-client/0.42.3 - .
1123+
1124+
## 2025-10-19 00:11:48
1125+
### Changes
1126+
Based on:
1127+
- OpenAPI Doc
1128+
- Speakeasy CLI 1.637.0 (2.727.4) https://github.com/speakeasy-api/speakeasy
1129+
### Generated
1130+
- [python v0.43.0] .
1131+
### Releases
1132+
- [PyPI v0.43.0] https://pypi.org/project/unstructured-client/0.43.0 - .

USAGE.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ with UnstructuredClient() as uc_client:
1919
</br>
2020

2121
The same SDK client can also be used to make asynchronous requests by importing asyncio.
22+
2223
```python
2324
# Asynchronous Example
2425
import asyncio

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 shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request={\n \"create_destination_connector\": {\n \"name\": \"<value>\",\n \"type\": shared.DestinationConnectorType.MOTHERDUCK,\n \"config\": {\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)"
17+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request={\n \"create_destination_connector\": {\n \"name\": \"<value>\",\n \"type\": shared.DestinationConnectorType.MONGODB,\n \"config\": {\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":
@@ -32,7 +32,7 @@ actions:
3232
"x-codeSamples":
3333
- "lang": "python"
3434
"label": "update_destination"
35-
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.update_destination(request={\n \"destination_id\": \"9726962d-9d1e-4f84-8787-c7313d183927\",\n \"update_destination_connector\": {\n \"config\": {\n \"bootstrap_servers\": \"<value>\",\n \"port\": 9092,\n \"topic\": \"<value>\",\n \"kafka_api_key\": \"<value>\",\n \"secret\": \"<value>\",\n \"batch_size\": 100,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
35+
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.update_destination(request={\n \"destination_id\": \"962d9d1e-f847-487c-a731-3d18392716fb\",\n \"update_destination_connector\": {\n \"config\": {\n \"remote_url\": \"https://lined-clamp.info\",\n \"service_account_key\": \"<value>\",\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)"
3636
- target: $["paths"]["/api/v1/destinations/{destination_id}/connection-check"]["get"]
3737
update:
3838
"x-codeSamples":
@@ -164,4 +164,4 @@ actions:
164164
"x-codeSamples":
165165
- "lang": "python"
166166
"label": "partition"
167-
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"strategy\": shared.Strategy.AUTO,\n \"vlm_model_provider\": shared.VLMModelProvider.OPENAI,\n \"vlm_model\": shared.VLMModel.GPT_4O,\n \"chunking_strategy\": \"by_title\",\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n \"split_pdf_cache_tmp_data_dir\": \"<value>\",\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
167+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"strategy\": shared.Strategy.AUTO,\n \"vlm_model_provider\": shared.VLMModelProvider.OPENAI,\n \"vlm_model\": \"gpt-4o\",\n \"chunking_strategy\": \"by_title\",\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n \"split_pdf_cache_tmp_data_dir\": \"<value>\",\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"

docs/models/shared/config.md

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

44
## Supported Types
55

6+
### `shared.AzureDestinationConnectorConfigInput`
7+
8+
```python
9+
value: shared.AzureDestinationConnectorConfigInput = /* values here */
10+
```
11+
612
### `shared.AstraDBConnectorConfigInput`
713

814
```python

docs/models/shared/destinationconnectorinformationconfig.md

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

44
## Supported Types
55

6+
### `shared.AzureDestinationConnectorConfig`
7+
8+
```python
9+
value: shared.AzureDestinationConnectorConfig = /* values here */
10+
```
11+
612
### `shared.AstraDBConnectorConfig`
713

814
```python

docs/models/shared/destinationconnectortype.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
| Name | Value |
77
| -------------------------------- | -------------------------------- |
8+
| `AZURE` | azure |
89
| `ASTRADB` | astradb |
910
| `AZURE_AI_SEARCH` | azure_ai_search |
1011
| `COUCHBASE` | couchbase |

0 commit comments

Comments
 (0)