Skip to content

chore: 🐝 Update SDK - Generate 0.37.1 #275

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 2 commits into from
Jun 23, 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
83 changes: 79 additions & 4 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: 1305a6771cbde39530fd78e1b8acb938
docVersion: 1.1.17
docChecksum: bac3524113e4b9ed02bfae0e65ccb42b
docVersion: 1.1.25
speakeasyVersion: 1.552.0
generationVersion: 2.610.0
releaseVersion: 0.36.0
configChecksum: e1d52979607afacfb892d70fedc250fb
releaseVersion: 0.37.1
configChecksum: 995e2ded80d15617a1661ac4be288219
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
repoSubDirectory: .
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
Expand Down Expand Up @@ -70,6 +70,10 @@ generatedFiles:
- docs/models/operations/getconnectionchecksourcesresponse.md
- docs/models/operations/getdestinationrequest.md
- docs/models/operations/getdestinationresponse.md
- docs/models/operations/getjobdetailsrequest.md
- docs/models/operations/getjobdetailsresponse.md
- docs/models/operations/getjobfailedfilesrequest.md
- docs/models/operations/getjobfailedfilesresponse.md
- docs/models/operations/getjobrequest.md
- docs/models/operations/getjobresponse.md
- docs/models/operations/getsourcerequest.md
Expand All @@ -86,8 +90,12 @@ generatedFiles:
- docs/models/operations/listworkflowsresponse.md
- docs/models/operations/partitionrequest.md
- docs/models/operations/partitionresponse.md
- docs/models/operations/retrieverequest.md
- docs/models/operations/retrieveresponse.md
- docs/models/operations/runworkflowrequest.md
- docs/models/operations/runworkflowresponse.md
- docs/models/operations/storesecretrequest.md
- docs/models/operations/storesecretresponse.md
- docs/models/operations/updatedestinationrequest.md
- docs/models/operations/updatedestinationresponse.md
- docs/models/operations/updatesourcerequest.md
Expand Down Expand Up @@ -130,19 +138,27 @@ generatedFiles:
- docs/models/shared/dropboxsourceconnectorconfiginput.md
- docs/models/shared/elasticsearchconnectorconfig.md
- docs/models/shared/elasticsearchconnectorconfiginput.md
- docs/models/shared/encryptedsecret.md
- docs/models/shared/encryptiontype.md
- docs/models/shared/failedfile.md
- docs/models/shared/files.md
- docs/models/shared/gcsdestinationconnectorconfig.md
- docs/models/shared/gcsdestinationconnectorconfiginput.md
- docs/models/shared/gcssourceconnectorconfig.md
- docs/models/shared/gcssourceconnectorconfiginput.md
- docs/models/shared/googledrivesourceconnectorconfig.md
- docs/models/shared/googledrivesourceconnectorconfiginput.md
- docs/models/shared/googledrivesourceconnectorconfiginputserviceaccountkey.md
- docs/models/shared/ibmwatsonxs3destinationconnectorconfig.md
- docs/models/shared/ibmwatsonxs3destinationconnectorconfiginput.md
- docs/models/shared/inputfiles.md
- docs/models/shared/jirasourceconnectorconfig.md
- docs/models/shared/jirasourceconnectorconfiginput.md
- docs/models/shared/jobdetails.md
- docs/models/shared/jobfailedfiles.md
- docs/models/shared/jobinformation.md
- docs/models/shared/jobnodedetails.md
- docs/models/shared/jobprocessingstatus.md
- docs/models/shared/jobstatus.md
- docs/models/shared/kafkaclouddestinationconnectorconfig.md
- docs/models/shared/kafkaclouddestinationconnectorconfiginput.md
Expand All @@ -164,6 +180,7 @@ generatedFiles:
- docs/models/shared/outlooksourceconnectorconfiginput.md
- docs/models/shared/outputformat.md
- docs/models/shared/partitionparameters.md
- docs/models/shared/pemauthresponse.md
- docs/models/shared/pineconedestinationconnectorconfig.md
- docs/models/shared/pineconedestinationconnectorconfiginput.md
- docs/models/shared/postgresdestinationconnectorconfig.md
Expand All @@ -181,13 +198,16 @@ generatedFiles:
- docs/models/shared/salesforcesourceconnectorconfig.md
- docs/models/shared/salesforcesourceconnectorconfiginput.md
- docs/models/shared/schedule.md
- docs/models/shared/secretreference.md
- docs/models/shared/security.md
- docs/models/shared/serviceaccountkey.md
- docs/models/shared/sharepointsourceconnectorconfig.md
- docs/models/shared/sharepointsourceconnectorconfiginput.md
- docs/models/shared/snowflakedestinationconnectorconfig.md
- docs/models/shared/snowflakedestinationconnectorconfiginput.md
- docs/models/shared/snowflakesourceconnectorconfig.md
- docs/models/shared/snowflakesourceconnectorconfiginput.md
- docs/models/shared/sortdirection.md
- docs/models/shared/sourceconnectorinformation.md
- docs/models/shared/sourceconnectorinformationconfig.md
- docs/models/shared/sourceconnectortype.md
Expand Down Expand Up @@ -217,6 +237,7 @@ generatedFiles:
- docs/sdks/jobs/README.md
- docs/sdks/sources/README.md
- docs/sdks/unstructuredclient/README.md
- docs/sdks/users/README.md
- docs/sdks/workflows/README.md
- poetry.toml
- py.typed
Expand Down Expand Up @@ -251,14 +272,18 @@ generatedFiles:
- src/unstructured_client/models/operations/get_connection_check_sources.py
- src/unstructured_client/models/operations/get_destination.py
- src/unstructured_client/models/operations/get_job.py
- src/unstructured_client/models/operations/get_job_details.py
- src/unstructured_client/models/operations/get_job_failed_files.py
- src/unstructured_client/models/operations/get_source.py
- src/unstructured_client/models/operations/get_workflow.py
- src/unstructured_client/models/operations/list_destinations.py
- src/unstructured_client/models/operations/list_jobs.py
- src/unstructured_client/models/operations/list_sources.py
- src/unstructured_client/models/operations/list_workflows.py
- src/unstructured_client/models/operations/partition.py
- src/unstructured_client/models/operations/retrieve.py
- src/unstructured_client/models/operations/run_workflow.py
- src/unstructured_client/models/operations/store_secret.py
- src/unstructured_client/models/operations/update_destination.py
- src/unstructured_client/models/operations/update_source.py
- src/unstructured_client/models/operations/update_workflow.py
Expand Down Expand Up @@ -296,6 +321,9 @@ generatedFiles:
- src/unstructured_client/models/shared/dropboxsourceconnectorconfiginput.py
- src/unstructured_client/models/shared/elasticsearchconnectorconfig.py
- src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py
- src/unstructured_client/models/shared/encryptedsecret.py
- src/unstructured_client/models/shared/encryptiontype.py
- src/unstructured_client/models/shared/failedfile.py
- src/unstructured_client/models/shared/gcsdestinationconnectorconfig.py
- src/unstructured_client/models/shared/gcsdestinationconnectorconfiginput.py
- src/unstructured_client/models/shared/gcssourceconnectorconfig.py
Expand All @@ -306,7 +334,11 @@ generatedFiles:
- src/unstructured_client/models/shared/ibmwatsonxs3destinationconnectorconfiginput.py
- src/unstructured_client/models/shared/jirasourceconnectorconfig.py
- src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py
- src/unstructured_client/models/shared/jobdetails.py
- src/unstructured_client/models/shared/jobfailedfiles.py
- src/unstructured_client/models/shared/jobinformation.py
- src/unstructured_client/models/shared/jobnodedetails.py
- src/unstructured_client/models/shared/jobprocessingstatus.py
- src/unstructured_client/models/shared/jobstatus.py
- src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py
- src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py
Expand All @@ -326,6 +358,7 @@ generatedFiles:
- src/unstructured_client/models/shared/outlooksourceconnectorconfig.py
- src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py
- src/unstructured_client/models/shared/partition_parameters.py
- src/unstructured_client/models/shared/pemauthresponse.py
- src/unstructured_client/models/shared/pineconedestinationconnectorconfig.py
- src/unstructured_client/models/shared/pineconedestinationconnectorconfiginput.py
- src/unstructured_client/models/shared/postgresdestinationconnectorconfig.py
Expand All @@ -342,13 +375,15 @@ generatedFiles:
- src/unstructured_client/models/shared/s3sourceconnectorconfiginput.py
- src/unstructured_client/models/shared/salesforcesourceconnectorconfig.py
- src/unstructured_client/models/shared/salesforcesourceconnectorconfiginput.py
- src/unstructured_client/models/shared/secretreference.py
- src/unstructured_client/models/shared/security.py
- src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py
- src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py
- src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py
- src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py
- src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py
- src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py
- src/unstructured_client/models/shared/sortdirection.py
- src/unstructured_client/models/shared/sourceconnectorinformation.py
- src/unstructured_client/models/shared/sourceconnectortype.py
- src/unstructured_client/models/shared/updatedestinationconnector.py
Expand All @@ -370,6 +405,7 @@ generatedFiles:
- src/unstructured_client/sdkconfiguration.py
- src/unstructured_client/types/__init__.py
- src/unstructured_client/types/basemodel.py
- src/unstructured_client/users.py
- src/unstructured_client/utils/__init__.py
- src/unstructured_client/utils/annotations.py
- src/unstructured_client/utils/datetimes.py
Expand Down Expand Up @@ -594,6 +630,9 @@ examples:
application/json: {"detail": "<value>"}
list_workflows:
speakeasy-default-list-workflows:
parameters:
query:
sort_by: "id"
responses:
"200":
application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}]
Expand Down Expand Up @@ -633,5 +672,41 @@ examples:
application/json: {"detail": "<value>"}
5XX:
application/json: {"detail": "An error occurred"}
get_job_details:
speakeasy-default-get-job-details:
parameters:
path:
job_id: "14cc95f9-4174-46b3-81f5-7089b87a4787"
responses:
"200":
application/json: {"id": "39a8d74e-66d2-40a4-a9b0-25ee4f08f855", "node_stats": [], "processing_status": "STOPPED"}
"422":
application/json: {"detail": "<value>"}
get_job_failed_files:
speakeasy-default-get-job-failed-files:
parameters:
path:
job_id: "ad262041-3530-40a9-9f83-b004e947a203"
responses:
"200":
application/json: {"failed_files": []}
"422":
application/json: {"detail": "<value>"}
retrieve:
speakeasy-default-retrieve:
responses:
"200":
application/json: {"pem_key": "<value>", "tenant_id": "<id>"}
"422":
application/json: {"detail": "<value>"}
store_secret:
speakeasy-default-store-secret:
requestBody:
application/json: {"encrypted_value": "<value>"}
responses:
"200":
application/json: {"id": "<id>"}
"422":
application/json: {"detail": []}
examplesVersion: 1.0.2
generatedTests: {}
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.552.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:7ceb514059ca48d6851ea7eacc84aa4177b0299d9fc01e71a891f6bc6244b089
sourceBlobDigest: sha256:20af3cb02fd412795707dc692fcfdb11f412c27d8095ee4197ea318ea31c7bfe
sourceRevisionDigest: sha256:d14d57547ad78fb9de555d53df7316688897fcfde70597ebae236e093686ac64
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
tags:
- latest
- speakeasy-sdk-regen-1748459387
- 1.1.17
- speakeasy-sdk-regen-1749082267
- 1.1.25
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:7ceb514059ca48d6851ea7eacc84aa4177b0299d9fc01e71a891f6bc6244b089
sourceBlobDigest: sha256:20af3cb02fd412795707dc692fcfdb11f412c27d8095ee4197ea318ea31c7bfe
sourceRevisionDigest: sha256:d14d57547ad78fb9de555d53df7316688897fcfde70597ebae236e093686ac64
sourceBlobDigest: sha256:344e0d1a73221fe624794cb7c74290201da4093a73b6897fcbadea1d1cc99447
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:8dd8b645e1112de59bfed16856623f891e44b10d8af11e4f48877b08541e246f
codeSamplesRevisionDigest: sha256:0d9d8872a992b8f4dc480ccfd3fe65d9966f22cfbc3e69668ab15922d75a6c4c
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1007,4 +1007,14 @@ Based on:
### Generated
- [python v0.36.0] .
### Releases
- [PyPI v0.36.0] https://pypi.org/project/unstructured-client/0.36.0 - .
- [PyPI v0.36.0] https://pypi.org/project/unstructured-client/0.36.0 - .

## 2025-06-23 18:31:52
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.552.0 (2.610.0) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.37.1] .
### Releases
- [PyPI v0.37.1] https://pypi.org/project/unstructured-client/0.37.1 - .
6 changes: 3 additions & 3 deletions _test_contract/platform_api/test_workflows.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@


def test_list_workflows(httpx_mock, platform_client: UnstructuredClient, platform_api_url: str):
url = f"{platform_api_url}/api/v1/workflows/"
url = f"{platform_api_url}/api/v1/workflows/?sort_by=id"

httpx_mock.add_response(
method="GET",
Expand Down Expand Up @@ -69,7 +69,7 @@ def test_list_workflows(httpx_mock, platform_client: UnstructuredClient, platfor
def test_list_workflows_empty(
httpx_mock, platform_client: UnstructuredClient, platform_api_url: str
):
url = f"{platform_api_url}/api/v1/workflows/"
url = f"{platform_api_url}/api/v1/workflows/?sort_by=id"

httpx_mock.add_response(
method="GET",
Expand Down Expand Up @@ -100,7 +100,7 @@ def test_list_workflows_error(
platform_api_url: str,
error_status_code: int,
):
url = f"{platform_api_url}/api/v1/workflows/"
url = f"{platform_api_url}/api/v1/workflows/?sort_by=id"

httpx_mock.add_response(
method="GET",
Expand Down
26 changes: 25 additions & 1 deletion codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,24 @@ actions:
- "lang": "python"
"label": "cancel_job"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.cancel_job(request={\n \"job_id\": \"2fafd129-04f3-4201-a0e7-fe33e937b367\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
- target: $["paths"]["/api/v1/jobs/{job_id}/details"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "get_job_details"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_details(request={\n \"job_id\": \"14cc95f9-4174-46b3-81f5-7089b87a4787\",\n })\n\n assert res.job_details is not None\n\n # Handle response\n print(res.job_details)"
- target: $["paths"]["/api/v1/jobs/{job_id}/download"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "download_job_output"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_job_output(request={\n \"job_id\": \"06d1b7b8-8642-4793-b37e-e45d97d53bc3\",\n \"file_id\": \"<id>\",\n \"node_id\": \"7c8f2aa4-da13-4a04-a98d-0204ea55681e\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)"
- target: $["paths"]["/api/v1/jobs/{job_id}/failed-files"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "get_job_failed_files"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_failed_files(request={\n \"job_id\": \"ad262041-3530-40a9-9f83-b004e947a203\",\n })\n\n assert res.job_failed_files is not None\n\n # Handle response\n print(res.job_failed_files)"
- target: $["paths"]["/api/v1/sources/"]["get"]
update:
"x-codeSamples":
Expand All @@ -80,7 +92,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.DATABRICKS_VOLUMES,\n \"config\": {\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 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 \"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)"
- target: $["paths"]["/api/v1/sources/{source_id}"]["delete"]
update:
"x-codeSamples":
Expand Down Expand Up @@ -111,6 +123,18 @@ actions:
- "lang": "python"
"label": "create_connection_check_sources"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_connection_check_sources(request={\n \"source_id\": \"8d49e3f2-3e6d-4973-bc61-292af66829d7\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)"
- target: $["paths"]["/api/v1/users/retrieve"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "retrieve"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.users.retrieve(request={})\n\n assert res.pem_auth_response is not None\n\n # Handle response\n print(res.pem_auth_response)"
- target: $["paths"]["/api/v1/users/secrets"]["post"]
update:
"x-codeSamples":
- "lang": "python"
"label": "store_secret"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.users.store_secret(request={\n \"encrypted_secret\": {\n \"encrypted_value\": \"<value>\",\n },\n })\n\n assert res.secret_reference is not None\n\n # Handle response\n print(res.secret_reference)"
- target: $["paths"]["/api/v1/workflows/"]["get"]
update:
"x-codeSamples":
Expand Down
Loading