Skip to content

chore: 🐝 Update SDK - Generate 0.30.4 #230

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Feb 24, 2025
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
186 changes: 160 additions & 26 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
@@ -1,21 +1,21 @@
speakeasyVersion: 1.498.1
speakeasyVersion: 1.501.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:3a375218a87eae405feb875c8aae5606e30a806e429bb45a7bb9fe4ec3e93550
sourceBlobDigest: sha256:ee590e22c2420902e4013cdd462014c326a6be029ec482d38c24c55712280117
sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140
sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be
tags:
- latest
- speakeasy-sdk-regen-1740096591
- speakeasy-sdk-regen-1740182957
- 1.0.68
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:3a375218a87eae405feb875c8aae5606e30a806e429bb45a7bb9fe4ec3e93550
sourceBlobDigest: sha256:ee590e22c2420902e4013cdd462014c326a6be029ec482d38c24c55712280117
sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140
sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:2206c744b2aa7e0220f3046c49f3b1c491aa4e7bdf5937abe000a7dc0ec65a51
codeSamplesRevisionDigest: sha256:45129928113c916a9525093bb2e25021b8e62477fa2b86de2af2dc369294a555
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
40 changes: 15 additions & 25 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -118,11 +118,9 @@ with UnstructuredClient() as uc_client:
res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down Expand Up @@ -150,11 +148,9 @@ with UnstructuredClient(
res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down Expand Up @@ -204,11 +200,9 @@ with UnstructuredClient() as uc_client:
res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down Expand Up @@ -336,11 +330,9 @@ with UnstructuredClient() as uc_client:
res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down Expand Up @@ -368,11 +360,9 @@ async def main():
res = await uc_client.destinations.create_destination_async(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -804,4 +804,14 @@ Based on:
### Generated
- [python v0.30.3] .
### Releases
- [PyPI v0.30.3] https://pypi.org/project/unstructured-client/0.30.3 - .
- [PyPI v0.30.3] https://pypi.org/project/unstructured-client/0.30.3 - .

## 2025-02-24 00:09:35
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.501.0 (2.522.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.31.0] .
### Releases
- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - .
16 changes: 6 additions & 10 deletions USAGE.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,9 @@ with UnstructuredClient() as uc_client:
res = uc_client.destinations.create_destination(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down Expand Up @@ -41,11 +39,9 @@ async def main():
res = await uc_client.destinations.create_destination_async(request={
"create_destination_connector": {
"config": {
"account_key": "azure_account_key",
"account_name": "azure_account_name",
"anonymous": False,
"recursive": True,
"remote_url": "az://<path></path></container-name>",
"endpoint": "<value>",
"index": "<value>",
"key": "<key>",
},
"name": "<value>",
"type": shared.DestinationConnectorType.ASTRADB,
Expand Down
56 changes: 43 additions & 13 deletions _test_contract/platform_api/test_destinations.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
from unstructured_client import UnstructuredClient
from unstructured_client.models import shared, operations
from unstructured_client.models.errors import SDKError
from unstructured_client.models.shared import DestinationConnectorType



def test_list_destinations(
Expand All @@ -19,7 +17,14 @@ def test_list_destinations(
headers={"Content-Type": "application/json"},
json=[
{
"config": {},
"config": {
"remote_url": "s3://mock-s3-connector",
"anonymous": False,
"key": "**********",
"secret": "**********",
"token": None,
"endpoint_url": None,
},
"created_at": "2025-08-22T08:47:29.802Z",
"id": "0c363dec-3c70-45ee-8041-481044a6e1cc",
"name": "test_destination_name",
Expand All @@ -45,7 +50,7 @@ def test_list_destinations(
assert destination.id == "0c363dec-3c70-45ee-8041-481044a6e1cc"
assert destination.name == "test_destination_name"
assert destination.type == "s3"
assert destination.config == {}
assert isinstance(destination.config, shared.S3DestinationConnectorConfig)
assert destination.created_at == datetime.fromisoformat(
"2025-08-22T08:47:29.802+00:00"
)
Expand Down Expand Up @@ -115,7 +120,14 @@ def test_get_destination(httpx_mock, client: UnstructuredClient, platform_api_ur
method="GET",
headers={"Content-Type": "application/json"},
json={
"config": {},
"config": {
"remote_url": "s3://mock-s3-connector",
"anonymous": False,
"key": "**********",
"secret": "**********",
"token": None,
"endpoint_url": None,
},
"created_at": "2025-08-22T08:47:29.802Z",
"id": "0c363dec-3c70-45ee-8041-481044a6e1cc",
"name": "test_destination_name",
Expand All @@ -139,7 +151,7 @@ def test_get_destination(httpx_mock, client: UnstructuredClient, platform_api_ur
assert destination.id == "0c363dec-3c70-45ee-8041-481044a6e1cc"
assert destination.name == "test_destination_name"
assert destination.type == "s3"
assert destination.config == {}
assert isinstance(destination.config, shared.S3DestinationConnectorConfig)
assert destination.created_at == datetime.fromisoformat(
"2025-08-22T08:47:29.802+00:00"
)
Expand Down Expand Up @@ -178,7 +190,12 @@ def test_create_destination(
method="POST",
headers={"Content-Type": "application/json"},
json={
"config": {},
"config": {
"remote_url": "s3://mock-s3-connector",
"key": "blah",
"secret": "blah",
"anonymous": False,
},
"created_at": "2023-09-15T01:06:53.146Z",
"id": "b25d4161-77a0-4e08-b65e-86f398ce15ad",
"name": "test_destination_name",
Expand All @@ -191,8 +208,12 @@ def test_create_destination(
request=operations.CreateDestinationRequest(
create_destination_connector=shared.CreateDestinationConnector(
name="test_destination_name",
type=DestinationConnectorType.S3,
config={},
type=shared.DestinationConnectorType.S3,
config={
"remote_url": "s3://mock-s3-connector",
"key": "blah",
"secret": "blah",
},
)
)
)
Expand All @@ -208,7 +229,7 @@ def test_create_destination(
assert destination.id == "b25d4161-77a0-4e08-b65e-86f398ce15ad"
assert destination.name == "test_destination_name"
assert destination.type == "s3"
assert destination.config == {}
assert isinstance(destination.config, shared.S3DestinationConnectorConfig)
assert destination.created_at == datetime.fromisoformat(
"2023-09-15T01:06:53.146+00:00"
)
Expand All @@ -224,7 +245,12 @@ def test_update_destination(
method="PUT",
headers={"Content-Type": "application/json"},
json={
"config": {},
"config": {
"remote_url": "s3://mock-s3-connector",
"key": "blah",
"secret": "blah",
"anonymous": False,
},
"created_at": "2023-09-15T01:06:53.146Z",
"id": "b25d4161-77a0-4e08-b65e-86f398ce15ad",
"name": "test_destination_name",
Expand All @@ -237,7 +263,11 @@ def test_update_destination(
request=operations.UpdateDestinationRequest(
destination_id=dest_id,
update_destination_connector=shared.UpdateDestinationConnector(
config={}
config={
"remote_url": "s3://mock-s3-connector",
"key": "blah",
"secret": "blah",
},
),
)
)
Expand All @@ -254,7 +284,7 @@ def test_update_destination(
assert updated_destination.id == "b25d4161-77a0-4e08-b65e-86f398ce15ad"
assert updated_destination.name == "test_destination_name"
assert updated_destination.type == "s3"
assert updated_destination.config == {}
assert isinstance(updated_destination.config, shared.S3DestinationConnectorConfig)
assert updated_destination.created_at == datetime.fromisoformat(
"2023-09-15T01:06:53.146+00:00"
)
Expand Down
Loading