Skip to content

Commit 6d680a2

Browse files
chore: 🐝 Update SDK - Generate 0.31.0 (#242)
> [!IMPORTANT] > Linting report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/linting-report/cb4a32f647c14226a0c66fca45552c85> > OpenAPI Change report available at: <https://app.speakeasy.com/org/unstructured/unstructured5xr/changes-report/c845237d463636e77284b4542ec6442a> # SDK update Based on: - OpenAPI Doc - Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy ## Versioning Version Bump Type: [minor] - 🤖 (automated) ## OpenAPI Change Summary ``` ├─┬Servers │ └──[➕] servers (5892:14) └─┬Components ├──[➕] schemas (3108:20) └─┬JobInformation └─┬status └──[🔀] $ref (3109:17)❌ ``` | Document Element | Total Changes | Breaking Changes | |------------------|---------------|------------------| | components | 2 | 1 | | servers | 1 | 0 | ## PYTHON CHANGELOG ## core: 5.12.2 - 2025-03-02 ### 🐛 Bug Fixes - handle indirect circular references *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 5.12.1 - 2025-02-21 ### 🐛 Bug Fixes - handle usage snippet templating when no servers are defined in the spec *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## core: 5.12.0 - 2025-02-12 ### 🐝 New Features - support openapi specs without server urls *(commit by [@vishalg0wda](https://github.com/vishalg0wda))* ## nullables: 1.0.1 - 2025-02-17 ### 🐛 Bug Fixes - represent maps/arrays that can contain null *(commit by [@disintegrator](https://github.com/disintegrator))* ## sdkHooks: 1.0.1 - 2025-02-18 ### 🐛 Bug Fixes - Ensure base_url is set with global or client instantiation server URL *(commit by [@bflad](https://github.com/bflad))* Co-authored-by: speakeasybot <[email protected]>
1 parent 4a30e9b commit 6d680a2

25 files changed

+159
-56
lines changed

Diff for: .speakeasy/gen.lock

+14-12
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
lockVersion: 2.0.0
22
id: 8b5fa338-9106-4734-abf0-e30d67044a90
33
management:
4-
docChecksum: de9f013dc09f5ad50eaa7dd5716106ca
4+
docChecksum: 8befe9665bd102e8cc2241c80080859a
55
docVersion: 1.0.78
6-
speakeasyVersion: 1.490.0
7-
generationVersion: 2.512.0
8-
releaseVersion: 0.30.6
9-
configChecksum: c946e26d3a3b2fe2756ff169416b448c
6+
speakeasyVersion: 1.509.0
7+
generationVersion: 2.539.0
8+
releaseVersion: 0.31.0
9+
configChecksum: faf5191e78f1597b78cd7600af4f1d96
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -16,7 +16,7 @@ features:
1616
acceptHeaders: 3.0.0
1717
additionalDependencies: 1.0.0
1818
constsAndDefaults: 1.0.5
19-
core: 5.11.0
19+
core: 5.12.2
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
@@ -28,11 +28,11 @@ features:
2828
methodServerURLs: 3.1.1
2929
multipartFileContentType: 1.0.0
3030
nameOverrides: 3.0.1
31-
nullables: 1.0.0
31+
nullables: 1.0.1
3232
openEnums: 1.0.0
3333
responseFormat: 1.0.1
3434
retries: 3.0.2
35-
sdkHooks: 1.0.0
35+
sdkHooks: 1.0.1
3636
serverIDs: 3.0.0
3737
unions: 3.0.4
3838
uploadStreams: 1.0.0
@@ -125,6 +125,7 @@ generatedFiles:
125125
- docs/models/shared/googledrivesourceconnectorconfig.md
126126
- docs/models/shared/googledrivesourceconnectorconfiginput.md
127127
- docs/models/shared/jobinformation.md
128+
- docs/models/shared/jobstatus.md
128129
- docs/models/shared/kafkaclouddestinationconnectorconfig.md
129130
- docs/models/shared/kafkaclouddestinationconnectorconfiginput.md
130131
- docs/models/shared/kafkacloudsourceconnectorconfig.md
@@ -270,6 +271,7 @@ generatedFiles:
270271
- src/unstructured_client/models/shared/googledrivesourceconnectorconfig.py
271272
- src/unstructured_client/models/shared/googledrivesourceconnectorconfiginput.py
272273
- src/unstructured_client/models/shared/jobinformation.py
274+
- src/unstructured_client/models/shared/jobstatus.py
273275
- src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py
274276
- src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py
275277
- src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py
@@ -413,16 +415,16 @@ examples:
413415
header: {}
414416
responses:
415417
"200":
416-
application/json: {"created_at": "2025-01-14T00:09:32.358Z", "id": "d18f330b-506f-455c-9cb8-0cee2386ac29", "runtime": "<value>", "status": "<value>", "workflow_id": "136fd799-4c45-4417-a632-f460d8ebb2a2", "workflow_name": "<value>"}
418+
application/json: {"created_at": "2025-01-14T00:09:32.358Z", "id": "d18f330b-506f-455c-9cb8-0cee2386ac29", "runtime": "<value>", "status": "IN_PROGRESS", "workflow_id": "136fd799-4c45-4417-a632-f460d8ebb2a2", "workflow_name": "<value>"}
417419
"422":
418-
application/json: {"detail": [{"loc": ["<value>", 701982], "msg": "<value>", "type": "<value>"}, {"loc": ["<value>"], "msg": "<value>", "type": "<value>"}]}
420+
application/json: {"detail": "<value>"}
419421
list_jobs:
420422
speakeasy-default-list-jobs:
421423
responses:
422424
"200":
423-
application/json: [{"created_at": "2023-09-01T17:59:19.211Z", "id": "7098ff76-419f-4a5a-a313-d159507b629d", "runtime": "<value>", "status": "<value>", "workflow_id": "75cf761e-8c10-48e4-b3d7-6ae90ad4fd3e", "workflow_name": "<value>"}]
425+
application/json: [{"created_at": "2023-09-01T17:59:19.211Z", "id": "7098ff76-419f-4a5a-a313-d159507b629d", "runtime": "<value>", "status": "SCHEDULED", "workflow_id": "75cf761e-8c10-48e4-b3d7-6ae90ad4fd3e", "workflow_name": "<value>"}]
424426
"422":
425-
application/json: {"detail": []}
427+
application/json: {"detail": [{"loc": [], "msg": "<value>", "type": "<value>"}]}
426428
create_source:
427429
speakeasy-default-create-source:
428430
requestBody:

Diff for: .speakeasy/workflow.lock

+7-6
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,21 @@
1-
speakeasyVersion: 1.508.1
1+
speakeasyVersion: 1.509.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:7c3885b2b10e35c3ce714ade8cf040b7af2d30c631aa9469af14c647e4eebd4c
6-
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
5+
sourceRevisionDigest: sha256:b62d80c1b902f285b4eaeaf67a4b1d2edb21053eded12c247daecbfeea1d8a30
6+
sourceBlobDigest: sha256:8d5c6a31539e2e1047e529fb6561fd4172fa80506241bc25dcf51d7c76f8b6e6
77
tags:
88
- latest
9+
- speakeasy-sdk-regen-1741046993
910
- 1.0.78
1011
targets:
1112
unstructured-python:
1213
source: my-source
1314
sourceNamespace: my-source
14-
sourceRevisionDigest: sha256:7c3885b2b10e35c3ce714ade8cf040b7af2d30c631aa9469af14c647e4eebd4c
15-
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
15+
sourceRevisionDigest: sha256:b62d80c1b902f285b4eaeaf67a4b1d2edb21053eded12c247daecbfeea1d8a30
16+
sourceBlobDigest: sha256:8d5c6a31539e2e1047e529fb6561fd4172fa80506241bc25dcf51d7c76f8b6e6
1617
codeSamplesNamespace: my-source-code-samples
17-
codeSamplesRevisionDigest: sha256:5f12b0195d8ed16e87269dc286ef0b48ba59a6c95b2ad935f85ec95e417394ae
18+
codeSamplesRevisionDigest: sha256:77255b7d9241b11e147927beb6e60a27654bd6089e121356a3d5ca06e5f0f2f1
1819
workflow:
1920
workflowVersion: 1.0.0
2021
speakeasyVersion: latest

Diff for: README.md

+8
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ from unstructured_client import UnstructuredClient
113113
from unstructured_client.models import shared
114114
from unstructured_client.utils import BackoffStrategy, RetryConfig
115115

116+
116117
with UnstructuredClient() as uc_client:
117118

118119
res = uc_client.destinations.create_destination(request={
@@ -141,6 +142,7 @@ from unstructured_client import UnstructuredClient
141142
from unstructured_client.models import shared
142143
from unstructured_client.utils import BackoffStrategy, RetryConfig
143144

145+
144146
with UnstructuredClient(
145147
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
146148
) as uc_client:
@@ -193,6 +195,7 @@ When custom error responses are specified for an operation, the SDK may also rai
193195
from unstructured_client import UnstructuredClient
194196
from unstructured_client.models import errors, shared
195197

198+
196199
with UnstructuredClient() as uc_client:
197200
res = None
198201
try:
@@ -325,6 +328,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
325328
from unstructured_client import UnstructuredClient
326329
from unstructured_client.models import shared
327330

331+
328332
with UnstructuredClient() as uc_client:
329333

330334
res = uc_client.destinations.create_destination(request={
@@ -355,6 +359,7 @@ from unstructured_client import UnstructuredClient
355359
from unstructured_client.models import shared
356360

357361
async def main():
362+
358363
async with UnstructuredClient() as uc_client:
359364

360365
res = await uc_client.destinations.create_destination_async(request={
@@ -451,6 +456,7 @@ Certain SDK methods accept file objects as part of a request body or multi-part
451456
from unstructured_client import UnstructuredClient
452457
from unstructured_client.models import shared
453458

459+
454460
with UnstructuredClient() as uc_client:
455461

456462
res = uc_client.general.partition(request={
@@ -486,12 +492,14 @@ The `UnstructuredClient` class implements the context manager protocol and regis
486492
```python
487493
from unstructured_client import UnstructuredClient
488494
def main():
495+
489496
with UnstructuredClient() as uc_client:
490497
# Rest of application here...
491498

492499

493500
# Or when using async:
494501
async def amain():
502+
495503
async with UnstructuredClient() as uc_client:
496504
# Rest of application here...
497505
```

Diff for: RELEASES.md

+11
Original file line numberDiff line numberDiff line change
@@ -835,3 +835,14 @@ Based on:
835835
- [python v0.30.6] .
836836
### Releases
837837
- [PyPI v0.30.6] https://pypi.org/project/unstructured-client/0.30.6 - .
838+
839+
840+
## 2025-03-04 00:09:38
841+
### Changes
842+
Based on:
843+
- OpenAPI Doc
844+
- Speakeasy CLI 1.509.0 (2.539.0) https://github.com/speakeasy-api/speakeasy
845+
### Generated
846+
- [python v0.31.0] .
847+
### Releases
848+
- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - .

Diff for: USAGE.md

+2
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from unstructured_client import UnstructuredClient
55
from unstructured_client.models import shared
66

7+
78
with UnstructuredClient() as uc_client:
89

910
res = uc_client.destinations.create_destination(request={
@@ -34,6 +35,7 @@ from unstructured_client import UnstructuredClient
3435
from unstructured_client.models import shared
3536

3637
async def main():
38+
3739
async with UnstructuredClient() as uc_client:
3840

3941
res = await uc_client.destinations.create_destination_async(request={

0 commit comments

Comments
 (0)