Skip to content
Closed
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
920 changes: 708 additions & 212 deletions .speakeasy/gen.lock

Large diffs are not rendered by default.

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.601.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
sourceRevisionDigest: sha256:7f9abe09925a6b69c37ec3d528a0786f39420c09c8d8662a0919fc96611f2d33
sourceBlobDigest: sha256:0d078dcb15ff0ce19348e983c71fd72d76020c3ec3a56ef1001ade9c1f4378b8
tags:
- latest
- speakeasy-sdk-regen-1768522382
- 1.2.28
- speakeasy-sdk-regen-1770164039
- 1.5.19
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
sourceRevisionDigest: sha256:7f9abe09925a6b69c37ec3d528a0786f39420c09c8d8662a0919fc96611f2d33
sourceBlobDigest: sha256:0d078dcb15ff0ce19348e983c71fd72d76020c3ec3a56ef1001ade9c1f4378b8
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:4dd3dc9d9824533e6a8e70ef4a0db808b125deb8c266a62a99a11c64162b7595
codeSamplesRevisionDigest: sha256:5e9841151df690b49b6c733653812ca1a112ce061ddb53ae669f433bddedea0b
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
27 changes: 20 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ with UnstructuredClient() as uc_client:
### Error Classes
**Primary errors:**
* [`UnstructuredClientError`](./src/unstructured_client/models/errors/unstructuredclienterror.py): The base class for HTTP error responses.
* [`HTTPValidationError`](./src/unstructured_client/models/errors/httpvalidationerror.py): Validation Error. Status code `422`.
* [`HTTPValidationError`](./src/unstructured_client/models/errors/httpvalidationerror.py): Validation Error. Status code `422`. *

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

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


**Inherit from [`UnstructuredClientError`](./src/unstructured_client/models/errors/unstructuredclienterror.py)**:
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 30 methods.*
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 52 methods.*
* [`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.

</details>
Expand Down Expand Up @@ -439,20 +439,33 @@ 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.jobs.create_job(request={
"body_create_job": {
"request_data": "<value>",
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": "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 @@ -1211,3 +1211,14 @@ Based on:
- [python v0.42.12] .
### Releases
- [PyPI v0.42.12] https://pypi.org/project/unstructured-client/0.42.12 - .


## 2026-04-03 00:19:27
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.42.12] .
### Releases
- [PyPI v0.42.12] https://pypi.org/project/unstructured-client/0.42.12 - .
120 changes: 117 additions & 3 deletions codeSamples.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CreateChannelAPIV1NotificationsChannelsPostData


## Supported Types

### `shared.CreateEmailChannelRequest`

```python
value: shared.CreateEmailChannelRequest = /* values here */
```

### `shared.CreateWebhookChannelRequest`

```python
value: shared.CreateWebhookChannelRequest = /* values here */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# CreateChannelAPIV1NotificationsChannelsPostRequest


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------- |
| `request_body` | [operations.CreateChannelAPIV1NotificationsChannelsPostData](../../models/operations/createchannelapiv1notificationschannelspostdata.md) | :heavy_check_mark: | N/A |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# CreateChannelAPIV1NotificationsChannelsPostResponse


## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation |
| `response_create_channel_api_v1_notifications_channels_post` | [Optional[operations.CreateChannelAPIV1NotificationsChannelsPostResponseCreateChannelAPIV1NotificationsChannelsPost]](../../models/operations/createchannelapiv1notificationschannelspostresponsecreatechannelapiv1notificationschannelspost.md) | :heavy_minus_sign: | Successful Response |
| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation |
| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# CreateChannelAPIV1NotificationsChannelsPostResponseCreateChannelAPIV1NotificationsChannelsPost

Successful Response


## Supported Types

### `shared.EmailChannelResponse`

```python
value: shared.EmailChannelResponse = /* values here */
```

### `shared.WebhookChannelResponse`

```python
value: shared.WebhookChannelResponse = /* values here */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CreateWorkflowChannelAPIV1WorkflowsWorkflowIDNotificationsChannelsPostData


## Supported Types

### `shared.CreateEmailChannelRequest`

```python
value: shared.CreateEmailChannelRequest = /* values here */
```

### `shared.CreateWebhookChannelRequest`

```python
value: shared.CreateWebhookChannelRequest = /* values here */
```

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# CreateWorkflowChannelAPIV1WorkflowsWorkflowIDNotificationsChannelsPostRequest


## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `request_body` | [operations.CreateWorkflowChannelAPIV1WorkflowsWorkflowIDNotificationsChannelsPostData](../../models/operations/createworkflowchannelapiv1workflowsworkflowidnotificationschannelspostdata.md) | :heavy_check_mark: | N/A |
| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
| `workflow_id` | *str* | :heavy_check_mark: | N/A |
Loading
Loading