Skip to content
Open
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
287 changes: 163 additions & 124 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:08676788e329df4dcbe55ebb5d601853a8ada606fc7b53e94975ca63b55fdd48
sourceBlobDigest: sha256:db627ec52354a97dfcc2ddff8745dc77d7a966d203f46dac913e655652fdbff6
tags:
- latest
- speakeasy-sdk-regen-1768522382
- 1.2.28
- speakeasy-sdk-regen-1770164039
- 1.5.3
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306
sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e
sourceRevisionDigest: sha256:08676788e329df4dcbe55ebb5d601853a8ada606fc7b53e94975ca63b55fdd48
sourceBlobDigest: sha256:db627ec52354a97dfcc2ddff8745dc77d7a966d203f46dac913e655652fdbff6
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:4dd3dc9d9824533e6a8e70ef4a0db808b125deb8c266a62a99a11c64162b7595
codeSamplesRevisionDigest: sha256:489cf8fc218e3efced020d79d12139679006fac4b436e781d0f97a3effeccc49
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
23 changes: 18 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
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
10 changes: 10 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1190,4 +1190,14 @@ Based on:
### Generated
- [python v0.42.10] .
### Releases
- [PyPI v0.42.10] https://pypi.org/project/unstructured-client/0.42.10 - .

## 2026-03-05 00:15:51
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.42.10] .
### Releases
- [PyPI v0.42.10] https://pypi.org/project/unstructured-client/0.42.10 - .
6 changes: 3 additions & 3 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "create_destination"
"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)"
"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)"
- target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -98,7 +98,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "create_source"
"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)"
"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)"
- target: $["paths"]["/api/v1/sources/{source_id}"]["delete"]
update:
"x-codeSamples":
Expand All @@ -116,7 +116,7 @@ actions:
"x-codeSamples":
- "lang": "python"
"label": "update_source"
"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)"
"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)"
- target: $["paths"]["/api/v1/sources/{source_id}/connection-check"]["get"]
update:
"x-codeSamples":
Expand Down
8 changes: 4 additions & 4 deletions docs/models/shared/bodycreatejob.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
| `input_files` | List[[shared.InputFiles](../../models/shared/inputfiles.md)] | :heavy_minus_sign: | N/A |
| `request_data` | *str* | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `input_files` | List[*str*] | :heavy_minus_sign: | N/A |
| `request_data` | *str* | :heavy_check_mark: | N/A |
6 changes: 3 additions & 3 deletions docs/models/shared/bodyrunworkflow.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,6 @@

## Fields

| Field | Type | Required | Description |
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
| `input_files` | List[[shared.BodyRunWorkflowInputFiles](../../models/shared/bodyrunworkflowinputfiles.md)] | :heavy_minus_sign: | N/A |
| Field | Type | Required | Description |
| ------------------ | ------------------ | ------------------ | ------------------ |
| `input_files` | List[*str*] | :heavy_minus_sign: | N/A |
10 changes: 0 additions & 10 deletions docs/models/shared/bodyrunworkflowinputfiles.md

This file was deleted.

6 changes: 6 additions & 0 deletions docs/models/shared/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,12 @@ value: shared.S3DestinationConnectorConfigInput = /* values here */
value: shared.SnowflakeDestinationConnectorConfigInput = /* values here */
```

### `shared.TeradataDestinationConnectorConfigInput`

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

### `shared.WeaviateDestinationConnectorConfigInput`

```python
Expand Down
7 changes: 7 additions & 0 deletions docs/models/shared/context.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# Context


## Fields

| Field | Type | Required | Description |
| ----------- | ----------- | ----------- | ----------- |
10 changes: 5 additions & 5 deletions docs/models/shared/createdestinationconnector.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@

## Fields

| Field | Type | Required | Description |
| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- |
| `config` | [shared.Config](../../models/shared/config.md) | :heavy_check_mark: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `type` | [shared.DestinationConnectorType](../../models/shared/destinationconnectortype.md) | :heavy_check_mark: | N/A |
| Field | Type | Required | Description |
| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- |
| `config` | [shared.Config](../../models/shared/config.md) | :heavy_check_mark: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `type` | [shared.Type](../../models/shared/type.md) | :heavy_check_mark: | N/A |
2 changes: 1 addition & 1 deletion docs/models/shared/createsourceconnector.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,4 @@
| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- |
| `config` | [shared.CreateSourceConnectorConfig](../../models/shared/createsourceconnectorconfig.md) | :heavy_check_mark: | N/A |
| `name` | *str* | :heavy_check_mark: | N/A |
| `type` | [shared.SourceConnectorType](../../models/shared/sourceconnectortype.md) | :heavy_check_mark: | N/A |
| `type` | [shared.CreateSourceConnectorType](../../models/shared/createsourceconnectortype.md) | :heavy_check_mark: | N/A |
6 changes: 6 additions & 0 deletions docs/models/shared/createsourceconnectorconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ value: shared.SharePointSourceConnectorConfigInput = /* values here */
value: shared.SnowflakeSourceConnectorConfigInput = /* values here */
```

### `shared.TeradataSourceConnectorConfigInput`

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

### `shared.JiraSourceConnectorConfigInput`

```python
Expand Down
17 changes: 17 additions & 0 deletions docs/models/shared/createsourceconnectortype.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# CreateSourceConnectorType


## Supported Types

### `shared.SourceConnectorType`

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

### `str`

```python
value: str = /* values here */
```

Loading