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
4 changes: 4 additions & 0 deletions .genignore
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,10 @@ _test_unstructured_client
# ignore Makefile
Makefile

# No active endpoints in here, but we don't want to delete it
# Hold onto the custom regions until these endpoints come back
src/unstructured_client/users.py

# Ignore general.py so we can patch in our partitioning url
# If we ever have a new endpoint under /general, we need to:
# - Comment out this ignore line
Expand Down
26 changes: 7 additions & 19 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: ae9cd2cec2edbde7b002c0a127c7aa84
docVersion: 1.1.42
speakeasyVersion: 1.589.0
generationVersion: 2.664.0
releaseVersion: 0.41.0
configChecksum: b2d39b13446f595978a73e31a796dbe7
docChecksum: 1e625384a184f21d27f5afa31f705ada
docVersion: 1.1.45
speakeasyVersion: 1.595.0
generationVersion: 2.670.1
releaseVersion: 0.42.0
configChecksum: cd0ffde4496a99df26b7766acfe9c43d
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.4
core: 5.19.5
customCodeRegions: 0.1.1
defaultEnabledRetries: 0.2.0
enumUnions: 0.1.0
Expand Down Expand Up @@ -69,8 +69,6 @@ generatedFiles:
- docs/models/operations/getconnectionchecksourcesresponse.md
- docs/models/operations/getdestinationrequest.md
- docs/models/operations/getdestinationresponse.md
- docs/models/operations/getencryptioncertificaterequest.md
- docs/models/operations/getencryptioncertificateresponse.md
- docs/models/operations/getjobdetailsrequest.md
- docs/models/operations/getjobdetailsresponse.md
- docs/models/operations/getjobfailedfilesrequest.md
Expand All @@ -93,8 +91,6 @@ generatedFiles:
- docs/models/operations/partitionresponse.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 @@ -137,8 +133,6 @@ generatedFiles:
- docs/models/shared/dropboxsourceconnectorconfiginput.md
- docs/models/shared/elasticsearchconnectorconfig.md
- docs/models/shared/elasticsearchconnectorconfiginput.md
- docs/models/shared/encryptedsecret.md
- docs/models/shared/encryptioncertificateresponse.md
- docs/models/shared/encryptiontype.md
- docs/models/shared/failedfile.md
- docs/models/shared/files.md
Expand Down Expand Up @@ -236,7 +230,6 @@ 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 @@ -275,7 +268,6 @@ generatedFiles:
- src/unstructured_client/models/operations/get_connection_check_destinations.py
- src/unstructured_client/models/operations/get_connection_check_sources.py
- src/unstructured_client/models/operations/get_destination.py
- src/unstructured_client/models/operations/get_encryption_certificate.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
Expand All @@ -287,7 +279,6 @@ generatedFiles:
- src/unstructured_client/models/operations/list_workflows.py
- src/unstructured_client/models/operations/partition.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 @@ -325,8 +316,6 @@ 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/encryptioncertificateresponse.py
- src/unstructured_client/models/shared/encryptiontype.py
- src/unstructured_client/models/shared/failedfile.py
- src/unstructured_client/models/shared/gcsdestinationconnectorconfig.py
Expand Down Expand Up @@ -410,7 +399,6 @@ generatedFiles:
- src/unstructured_client/sources.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
16 changes: 8 additions & 8 deletions .speakeasy/workflow.lock
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
speakeasyVersion: 1.589.0
speakeasyVersion: 1.595.0
sources:
my-source:
sourceNamespace: my-source
sourceRevisionDigest: sha256:dc1c7c974419187404b25cb443e0d2497aa8b3ab71c95f27054eb5cd87b02ed0
sourceBlobDigest: sha256:538ee1e259eb1db25ba57b09ba271636bad0015a794517bf6f910315e7ecaac3
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
tags:
- latest
- speakeasy-sdk-regen-1753403247
- 1.1.42
- speakeasy-sdk-regen-1754007218
- 1.1.45
targets:
unstructured-python:
source: my-source
sourceNamespace: my-source
sourceRevisionDigest: sha256:dc1c7c974419187404b25cb443e0d2497aa8b3ab71c95f27054eb5cd87b02ed0
sourceBlobDigest: sha256:538ee1e259eb1db25ba57b09ba271636bad0015a794517bf6f910315e7ecaac3
sourceRevisionDigest: sha256:fbae2a3d20d8dc0210e15a73e96e96325b1f38e080c97a1f893a843cd0a723e8
sourceBlobDigest: sha256:71012d02fdfa3ce10a9dd1b7152af158ad50029dca56ed47c15480e76d977261
codeSamplesNamespace: my-source-code-samples
codeSamplesRevisionDigest: sha256:1e8db4a01c54f1f99e27cc80d3f5283192aa2a6a68001f80424fbf9bdface495
codeSamplesRevisionDigest: sha256:244db79d394b3d7a4e244006d91bdadeb850c019a9a7c5d80d3dc3550447019a
workflow:
workflowVersion: 1.0.0
speakeasyVersion: latest
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@

### Fixes
* Fix some environments failing to split pdfs with `Can't patch loop of type <class 'uvloop.Loop'>`, remove usage of `nest-asyncio`
* Remove some operations under `client.users` that are not fully ready yet

## 0.41.0

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,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 29 methods.*
* [`ServerError`](./src/unstructured_client/models/errors/servererror.py): Server Error. Status code `5XX`. Applicable to 1 of 27 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
12 changes: 11 additions & 1 deletion RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -1079,4 +1079,14 @@ Based on:
### Generated
- [python v0.41.0] .
### Releases
- [PyPI v0.41.0] https://pypi.org/project/unstructured-client/0.41.0 - .
- [PyPI v0.41.0] https://pypi.org/project/unstructured-client/0.41.0 - .

## 2025-08-01 00:13:22
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.595.0 (2.670.1) https://github.com/speakeasy-api/speakeasy
### Generated
- [python v0.42.0] .
### Releases
- [PyPI v0.42.0] https://pypi.org/project/unstructured-client/0.42.0 - .
3 changes: 3 additions & 0 deletions _test_unstructured_client/unit/test_encryption.py
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ def rsa_key_pair():

return private_key_pem, public_key_pem

@pytest.mark.skip(reason="Encryption is not in the SDK yet")
def test_encrypt_rsa(rsa_key_pair):
private_key_pem, public_key_pem = rsa_key_pair

Expand All @@ -55,6 +56,7 @@ def test_encrypt_rsa(rsa_key_pair):
assert decrypted_text == plaintext


@pytest.mark.skip(reason="Encryption is not in the SDK yet")
def test_encrypt_rsa_aes(rsa_key_pair):
private_key_pem, public_key_pem = rsa_key_pair

Expand All @@ -80,6 +82,7 @@ def test_encrypt_rsa_aes(rsa_key_pair):
rsa_key_size_bytes = 2048 // 8
max_payload_size = rsa_key_size_bytes - 66 # OAEP SHA256 overhead

@pytest.mark.skip(reason="Encryption is not in the SDK yet")
@pytest.mark.parametrize(("plaintext", "secret_type"), [
("Short message", "rsa"),
("A" * (max_payload_size), "rsa"), # Just at the RSA limit
Expand Down
12 changes: 0 additions & 12 deletions codeSamples.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -123,18 +123,6 @@ 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/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/users/secrets/encryption-certificate"]["get"]
update:
"x-codeSamples":
- "lang": "python"
"label": "get_encryption_certificate"
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.users.get_encryption_certificate(request={})\n\n assert res.encryption_certificate_response is not None\n\n # Handle response\n print(res.encryption_certificate_response)"
- target: $["paths"]["/api/v1/workflows/"]["get"]
update:
"x-codeSamples":
Expand Down
8 changes: 0 additions & 8 deletions docs/models/operations/getencryptioncertificaterequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/models/operations/getencryptioncertificateresponse.md

This file was deleted.

9 changes: 0 additions & 9 deletions docs/models/operations/storesecretrequest.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/models/operations/storesecretresponse.md

This file was deleted.

11 changes: 0 additions & 11 deletions docs/models/shared/encryptedsecret.md

This file was deleted.

13 changes: 0 additions & 13 deletions docs/models/shared/encryptioncertificateresponse.md

This file was deleted.

Loading