Skip to content
Merged
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
12 changes: 6 additions & 6 deletions .speakeasy/gen.lock
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
lockVersion: 2.0.0
id: 8b5fa338-9106-4734-abf0-e30d67044a90
management:
docChecksum: 4b5ce002d18e5f4df26dc25dca205ad2
docChecksum: 8038a5b9e376d44bad2fd4c117922954
docVersion: 1.1.45
speakeasyVersion: 1.598.3
generationVersion: 2.674.3
releaseVersion: 0.42.2
configChecksum: 3f589c7483451e1a99a5cdaf066e319a
speakeasyVersion: 1.601.0
generationVersion: 2.680.0
releaseVersion: 0.42.3
configChecksum: 3d02dd7ca437781b3d721fab5d7b9adc
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand All @@ -16,7 +16,7 @@ features:
acceptHeaders: 3.0.0
additionalDependencies: 1.0.0
constsAndDefaults: 1.0.5
core: 5.19.7
core: 5.19.8
customCodeRegions: 0.1.1
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
Expand Down
14 changes: 7 additions & 7 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.598.3
speakeasyVersion: 1.601.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
tags:
- latest
- speakeasy-sdk-regen-1754525536
- speakeasy-sdk-regen-1754698272
- 1.1.45
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:8f5b428c1907c847cd490c55161f4d6be0e9803ab6a519e054705afe092ac47b
sourceBlobDigest: sha256:6b5f3e775347a702d48357f9acd968c4ec89d1920dcef0f10e6fd84710aa5c41
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:2519fac5f22f4b3c34fe2cb753bb092bed5cc6d8cfb86f5959370073ced015b1
codeSamplesRevisionDigest: sha256:a5e11972bfb15e43b7fcb2647b3a7b3e129e9303294f9110670280971b10780a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
9 changes: 9 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,12 @@
## 0.42.3

### Enhancements

### Features
* Enable arbitrary dictionary inputs for `CreateSourceConnectorConfig` and `CreateDestinationConnectorConfig`. This decouples us from the backend schemas. Users can send new connector config fields without having to upgrade their client.

### Fixes

## 0.42.2

### Enhancements
Expand Down
12 changes: 10 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,15 @@ Please refer to the our documentation for a full guide on integrating the [Workf
>
> Once a Python version reaches its [official end of life date](https://devguide.python.org/versions/), a 3-month grace period is provided for users to upgrade. Following this grace period, the minimum python version supported in the SDK will be updated.

The SDK can be installed with either *pip* or *poetry* package managers.
The SDK can be installed with *uv*, *pip*, or *poetry* package managers.

### uv

*uv* is a fast Python package installer and resolver, designed as a drop-in replacement for pip and pip-tools. It's recommended for its speed and modern Python tooling capabilities.

```bash
uv add unstructured-client
```

### PIP

Expand Down Expand Up @@ -337,7 +345,7 @@ with UnstructuredClient() as uc_client:

</br>

The same SDK client can also be used to make asychronous requests by importing asyncio.
The same SDK client can also be used to make asynchronous requests by importing asyncio.
```python
# Asynchronous Example
import asyncio
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1109,4 +1109,14 @@ Based on:
### Generated
- [python v0.42.2] .
### Releases
- [PyPI v0.42.2] https://pypi.org/project/unstructured-client/0.42.2 - .
- [PyPI v0.42.2] https://pypi.org/project/unstructured-client/0.42.2 - .

## 2025-08-12 00:11:01
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.42.3] .
### Releases
- [PyPI v0.42.3] https://pypi.org/project/unstructured-client/0.42.3 - .
2 changes: 1 addition & 1 deletion USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ with UnstructuredClient() as uc_client:

</br>

The same SDK client can also be used to make asychronous requests by importing asyncio.
The same SDK client can also be used to make asynchronous requests by importing asyncio.
```python
# Asynchronous Example
import asyncio
Expand Down
2 changes: 1 addition & 1 deletion 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 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 \"client_id\": \"<id>\",\n \"user_pname\": \"<value>\",\n \"tenant\": \"<value>\",\n \"authority_url\": \"https://burdensome-bathhouse.biz/\",\n \"client_cred\": \"<value>\",\n \"remote_url\": \"https://cheerful-cheetah.com/\",\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 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)"
- target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"]
update:
"x-codeSamples":
Expand Down
6 changes: 6 additions & 0 deletions docs/models/shared/config.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ value: shared.WeaviateDestinationConnectorConfigInput = /* values here */
value: shared.IBMWatsonxS3DestinationConnectorConfigInput = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

6 changes: 6 additions & 0 deletions docs/models/shared/createsourceconnectorconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ value: shared.JiraSourceConnectorConfigInput = /* values here */
value: shared.ZendeskSourceConnectorConfigInput = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

6 changes: 6 additions & 0 deletions docs/models/shared/destinationconnectorinformationconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ value: shared.WeaviateDestinationConnectorConfig = /* values here */
value: shared.IBMWatsonxS3DestinationConnectorConfig = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

6 changes: 6 additions & 0 deletions docs/models/shared/sourceconnectorinformationconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ value: shared.JiraSourceConnectorConfig = /* values here */
value: shared.ZendeskSourceConnectorConfig = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

6 changes: 6 additions & 0 deletions docs/models/shared/updatedestinationconnectorconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -129,3 +129,9 @@ value: shared.WeaviateDestinationConnectorConfigInput = /* values here */
value: shared.IBMWatsonxS3DestinationConnectorConfigInput = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

6 changes: 6 additions & 0 deletions docs/models/shared/updatesourceconnectorconfig.md
Original file line number Diff line number Diff line change
Expand Up @@ -123,3 +123,9 @@ value: shared.JiraSourceConnectorConfigInput = /* values here */
value: shared.ZendeskSourceConnectorConfigInput = /* values here */
```

### `Dict[str, Any]`

```python
value: Dict[str, Any] = /* values here */
```

3 changes: 2 additions & 1 deletion gen.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ generation:
generateNewTests: false
skipResponseBodyAssertions: false
python:
version: 0.42.2
version: 0.42.3
additionalDependencies:
dev:
deepdiff: '>=6.0'
Expand Down Expand Up @@ -63,6 +63,7 @@ python:
methodArguments: require-security-and-request
moduleName: ""
outputModelSuffix: output
packageManager: poetry
packageName: unstructured-client
projectUrls: {}
pytestFilterWarnings: []
Expand Down
1 change: 1 addition & 0 deletions poetry.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@

[virtualenvs]
in-project = true
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@

[project]
name = "unstructured-client"
version = "0.42.2"
version = "0.42.3"
description = "Python Client SDK for Unstructured API"
authors = [{ name = "Unstructured" },]
readme = "README-PYPI.md"
Expand Down
1 change: 0 additions & 1 deletion scripts/publish.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
#!/usr/bin/env bash

export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN}

poetry run python scripts/prepare_readme.py
Expand Down
6 changes: 3 additions & 3 deletions src/unstructured_client/_version.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
import importlib.metadata

__title__: str = "unstructured-client"
__version__: str = "0.42.2"
__version__: str = "0.42.3"
__openapi_doc_version__: str = "1.1.45"
__gen_version__: str = "2.674.3"
__user_agent__: str = "speakeasy-sdk/python 0.42.2 2.674.3 1.1.45 unstructured-client"
__gen_version__: str = "2.680.0"
__user_agent__: str = "speakeasy-sdk/python 0.42.3 2.680.0 1.1.45 unstructured-client"

try:
if __package__ is not None:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
WeaviateDestinationConnectorConfigInputTypedDict,
)
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing import Any, Dict, Union
from typing_extensions import Annotated, TypeAliasType, TypedDict
from unstructured_client.types import BaseModel
from unstructured_client.utils import validate_open_enum
Expand All @@ -108,15 +108,16 @@
OneDriveDestinationConnectorConfigInputTypedDict,
S3DestinationConnectorConfigInputTypedDict,
AstraDBConnectorConfigInputTypedDict,
MilvusDestinationConnectorConfigInputTypedDict,
DatabricksVolumesConnectorConfigInputTypedDict,
PostgresDestinationConnectorConfigInputTypedDict,
DatabricksVolumesConnectorConfigInputTypedDict,
MilvusDestinationConnectorConfigInputTypedDict,
KafkaCloudDestinationConnectorConfigInputTypedDict,
CouchbaseDestinationConnectorConfigInputTypedDict,
RedisDestinationConnectorConfigInputTypedDict,
DatabricksVDTDestinationConnectorConfigInputTypedDict,
SnowflakeDestinationConnectorConfigInputTypedDict,
IBMWatsonxS3DestinationConnectorConfigInputTypedDict,
Dict[str, Any],
],
)

Expand All @@ -136,15 +137,16 @@
OneDriveDestinationConnectorConfigInput,
S3DestinationConnectorConfigInput,
AstraDBConnectorConfigInput,
MilvusDestinationConnectorConfigInput,
DatabricksVolumesConnectorConfigInput,
PostgresDestinationConnectorConfigInput,
DatabricksVolumesConnectorConfigInput,
MilvusDestinationConnectorConfigInput,
KafkaCloudDestinationConnectorConfigInput,
CouchbaseDestinationConnectorConfigInput,
RedisDestinationConnectorConfigInput,
DatabricksVDTDestinationConnectorConfigInput,
SnowflakeDestinationConnectorConfigInput,
IBMWatsonxS3DestinationConnectorConfigInput,
Dict[str, Any],
],
)

Expand Down
32 changes: 17 additions & 15 deletions src/unstructured_client/models/shared/createsourceconnector.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@
ZendeskSourceConnectorConfigInputTypedDict,
)
from pydantic.functional_validators import PlainValidator
from typing import Union
from typing import Any, Dict, Union
from typing_extensions import Annotated, TypeAliasType, TypedDict
from unstructured_client.types import BaseModel
from unstructured_client.utils import validate_open_enum
Expand All @@ -94,24 +94,25 @@
Union[
MongoDBConnectorConfigInputTypedDict,
BoxSourceConnectorConfigInputTypedDict,
GCSSourceConnectorConfigInputTypedDict,
ElasticsearchConnectorConfigInputTypedDict,
DropboxSourceConnectorConfigInputTypedDict,
GoogleDriveSourceConnectorConfigInputTypedDict,
ElasticsearchConnectorConfigInputTypedDict,
GCSSourceConnectorConfigInputTypedDict,
SalesforceSourceConnectorConfigInputTypedDict,
GoogleDriveSourceConnectorConfigInputTypedDict,
ZendeskSourceConnectorConfigInputTypedDict,
AzureSourceConnectorConfigInputTypedDict,
S3SourceConnectorConfigInputTypedDict,
DatabricksVolumesConnectorConfigInputTypedDict,
KafkaCloudSourceConnectorConfigInputTypedDict,
OneDriveSourceConnectorConfigInputTypedDict,
KafkaCloudSourceConnectorConfigInputTypedDict,
OutlookSourceConnectorConfigInputTypedDict,
SharePointSourceConnectorConfigInputTypedDict,
DatabricksVolumesConnectorConfigInputTypedDict,
S3SourceConnectorConfigInputTypedDict,
CouchbaseSourceConnectorConfigInputTypedDict,
SharePointSourceConnectorConfigInputTypedDict,
PostgresSourceConnectorConfigInputTypedDict,
JiraSourceConnectorConfigInputTypedDict,
ConfluenceSourceConnectorConfigInputTypedDict,
SnowflakeSourceConnectorConfigInputTypedDict,
Dict[str, Any],
],
)

Expand All @@ -121,24 +122,25 @@
Union[
MongoDBConnectorConfigInput,
BoxSourceConnectorConfigInput,
GCSSourceConnectorConfigInput,
ElasticsearchConnectorConfigInput,
DropboxSourceConnectorConfigInput,
GoogleDriveSourceConnectorConfigInput,
ElasticsearchConnectorConfigInput,
GCSSourceConnectorConfigInput,
SalesforceSourceConnectorConfigInput,
GoogleDriveSourceConnectorConfigInput,
ZendeskSourceConnectorConfigInput,
AzureSourceConnectorConfigInput,
S3SourceConnectorConfigInput,
DatabricksVolumesConnectorConfigInput,
KafkaCloudSourceConnectorConfigInput,
OneDriveSourceConnectorConfigInput,
KafkaCloudSourceConnectorConfigInput,
OutlookSourceConnectorConfigInput,
SharePointSourceConnectorConfigInput,
DatabricksVolumesConnectorConfigInput,
S3SourceConnectorConfigInput,
CouchbaseSourceConnectorConfigInput,
SharePointSourceConnectorConfigInput,
PostgresSourceConnectorConfigInput,
JiraSourceConnectorConfigInput,
ConfluenceSourceConnectorConfigInput,
SnowflakeSourceConnectorConfigInput,
Dict[str, Any],
],
)

Expand Down
Loading