Skip to content

Commit 6cc6538

Browse files
committed
## Python SDK Changes:
* `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.sources.list_sources()`: * `request.source_type` **Changed** * `response.[]` **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_source()`: * `request.create_source_connector` **Changed** (Breaking ⚠️) * `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.destinations.update_destination()`: * `request.update_destination_connector.config` **Changed** * `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.get_destination()`: * `response` **Changed** (Breaking ⚠️) * `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.list_workflow_channels_api_v1_workflows_workflow_id_notifications_channels_get()`: **Added** * `unstructured_client.jobs.download_job_output()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.get_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_get()`: **Added** * `unstructured_client.notifications.get_notification_api_v1_notifications_notification_id_get()`: **Added** * `unstructured_client.workflows.update_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_patch()`: **Added** * `unstructured_client.workflows.verify_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_verify_post()`: **Added** * `unstructured_client.workflow_channels.create_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_post()`: **Added** * `unstructured_client.workflow_channels.delete_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_delete()`: **Added** * `unstructured_client.workflow_channels.get_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_get()`: **Added** * `unstructured_client.workflow_channels.list_workflow_channels_api_v1_workflows_workflow_id_notifications_channels_get()`: **Added** * `unstructured_client.workflow_channels.update_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_patch()`: **Added** * `unstructured_client.workflow_channels.verify_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_verify_post()`: **Added** * `unstructured_client.destinations.create_connection_check_destinations()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.workflows.create_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_post()`: **Added** * `unstructured_client.destinations.delete_destination()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.destinations.get_connection_check_destinations()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.channels.verify_channel_api_v1_notifications_channels_channel_id_verify_post()`: **Added** * `unstructured_client.channels.update_channel_api_v1_notifications_channels_channel_id_patch()`: **Added** * `unstructured_client.channels.list_channels_api_v1_notifications_channels_get()`: **Added** * `unstructured_client.jobs.cancel_job()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.channels.get_channel_api_v1_notifications_channels_channel_id_get()`: **Added** * `unstructured_client.workflows.delete_workflow_channel_api_v1_workflows_workflow_id_notifications_channels_channel_id_delete()`: **Added** * `unstructured_client.jobs.get_job()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.jobs.get_job_details()`: `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.sources.create_connection_check_sources()`: `error.detail.union(Array<ValidationError>)[]` **Changed** * `unstructured_client.channels.delete_channel_api_v1_notifications_channels_channel_id_delete()`: **Added** * `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.channels.create_channel_api_v1_notifications_channels_post()`: **Added** * `unstructured_client.notifications.mark_read_api_v1_notifications_mark_read_post()`: **Added** * `unstructured_client.notifications.list_notifications_api_v1_notifications_get()`: **Added** * `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.notifications.get_unread_count_api_v1_notifications_unread_count_get()`: **Added** * `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 6cc6538

File tree

177 files changed

+12132
-657
lines changed

Some content is hidden

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

177 files changed

+12132
-657
lines changed

.speakeasy/gen.lock

Lines changed: 708 additions & 212 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:7f9abe09925a6b69c37ec3d528a0786f39420c09c8d8662a0919fc96611f2d33
6+
sourceBlobDigest: sha256:0d078dcb15ff0ce19348e983c71fd72d76020c3ec3a56ef1001ade9c1f4378b8
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1768522382
10-
- 1.2.28
9+
- speakeasy-sdk-regen-1770164039
10+
- 1.5.19
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
16-
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
15+
sourceRevisionDigest: sha256:7f9abe09925a6b69c37ec3d528a0786f39420c09c8d8662a0919fc96611f2d33
16+
sourceBlobDigest: sha256:0d078dcb15ff0ce19348e983c71fd72d76020c3ec3a56ef1001ade9c1f4378b8
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:4dd3dc9d9824533e6a8e70ef4a0db808b125deb8c266a62a99a11c64162b7595
18+
codeSamplesRevisionDigest: sha256:5e9841151df690b49b6c733653812ca1a112ce061ddb53ae669f433bddedea0b
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 20 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,7 @@ with UnstructuredClient() as uc_client:
208208
### Error Classes
209209
**Primary errors:**
210210
* [`UnstructuredClientError`](./src/unstructured_client/models/errors/unstructuredclienterror.py): The base class for HTTP error responses.
211-
* [`HTTPValidationError`](./src/unstructured_client/models/errors/httpvalidationerror.py): Validation Error. Status code `422`.
211+
* [`HTTPValidationError`](./src/unstructured_client/models/errors/httpvalidationerror.py): Validation Error. Status code `422`. *
212212

213213
<details><summary>Less common errors (6)</summary>
214214

@@ -221,7 +221,7 @@ with UnstructuredClient() as uc_client:
221221

222222

223223
**Inherit from [`UnstructuredClientError`](./src/unstructured_client/models/errors/unstructuredclienterror.py)**:
224-
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 30 methods.*
224+
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 52 methods.*
225225
* [`ResponseValidationError`](./src/unstructured_client/models/errors/responsevalidationerror.py): Type mismatch between the response data and the expected Pydantic model. Provides access to the Pydantic validation error via the `cause` attribute.
226226

227227
</details>
@@ -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-04-03 00:19:27
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: 117 additions & 3 deletions
Large diffs are not rendered by default.
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CreateChannelAPIV1NotificationsChannelsPostData
2+
3+
4+
## Supported Types
5+
6+
### `shared.CreateEmailChannelRequest`
7+
8+
```python
9+
value: shared.CreateEmailChannelRequest = /* values here */
10+
```
11+
12+
### `shared.CreateWebhookChannelRequest`
13+
14+
```python
15+
value: shared.CreateWebhookChannelRequest = /* values here */
16+
```
17+
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# CreateChannelAPIV1NotificationsChannelsPostRequest
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
8+
| `request_body` | [operations.CreateChannelAPIV1NotificationsChannelsPostData](../../models/operations/createchannelapiv1notificationschannelspostdata.md) | :heavy_check_mark: | N/A |
9+
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# CreateChannelAPIV1NotificationsChannelsPostResponse
2+
3+
4+
## Fields
5+
6+
| Field | Type | Required | Description |
7+
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
8+
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
9+
| `response_create_channel_api_v1_notifications_channels_post` | [Optional[operations.CreateChannelAPIV1NotificationsChannelsPostResponseCreateChannelAPIV1NotificationsChannelsPost]](../../models/operations/createchannelapiv1notificationschannelspostresponsecreatechannelapiv1notificationschannelspost.md) | :heavy_minus_sign: | Successful Response |
10+
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
11+
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
# CreateChannelAPIV1NotificationsChannelsPostResponseCreateChannelAPIV1NotificationsChannelsPost
2+
3+
Successful Response
4+
5+
6+
## Supported Types
7+
8+
### `shared.EmailChannelResponse`
9+
10+
```python
11+
value: shared.EmailChannelResponse = /* values here */
12+
```
13+
14+
### `shared.WebhookChannelResponse`
15+
16+
```python
17+
value: shared.WebhookChannelResponse = /* values here */
18+
```
19+
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# CreateWorkflowChannelAPIV1WorkflowsWorkflowIDNotificationsChannelsPostData
2+
3+
4+
## Supported Types
5+
6+
### `shared.CreateEmailChannelRequest`
7+
8+
```python
9+
value: shared.CreateEmailChannelRequest = /* values here */
10+
```
11+
12+
### `shared.CreateWebhookChannelRequest`
13+
14+
```python
15+
value: shared.CreateWebhookChannelRequest = /* values here */
16+
```
17+

0 commit comments

Comments
 (0)