Skip to content

Commit d667db8

Browse files
committed
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.508.0
1 parent c3cf0a4 commit d667db8

File tree

20 files changed

+198
-75
lines changed

20 files changed

+198
-75
lines changed

.speakeasy/gen.lock

Lines changed: 8 additions & 8 deletions
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: 83f88cfa4bd77e1d3065b11a97119361
4+
docChecksum: 05b52a7105c586797340defcb58dc573
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.508.0
7+
generationVersion: 2.536.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.1
2020
defaultEnabledRetries: 0.2.0
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
@@ -27,11 +27,11 @@ features:
2727
methodServerURLs: 3.1.1
2828
multipartFileContentType: 1.0.0
2929
nameOverrides: 3.0.1
30-
nullables: 1.0.0
30+
nullables: 1.0.1
3131
openEnums: 1.0.0
3232
responseFormat: 1.0.1
3333
retries: 3.0.2
34-
sdkHooks: 1.0.0
34+
sdkHooks: 1.0.1
3535
serverIDs: 3.0.0
3636
unions: 3.0.4
3737
uploadStreams: 1.0.0

.speakeasy/workflow.lock

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,29 @@
1-
speakeasyVersion: 1.505.0
1+
speakeasyVersion: 1.508.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:8cba0cf748e247efccefbb5d1839dbeb6e2e3210bb2c90f7b75b9034c22ae24a
6-
sourceBlobDigest: sha256:69fef8ed681f1d68013e71f67927821d64fc1045d3956ace3775fe62ed76b8bb
5+
sourceRevisionDigest: sha256:807be0a9dea419a66c54f7b073b96fef228c9991996eb7faab57915d96d14298
6+
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1740605410
10-
- 1.0.68
9+
- speakeasy-sdk-regen-1740701396
10+
- 1.0.78
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:8cba0cf748e247efccefbb5d1839dbeb6e2e3210bb2c90f7b75b9034c22ae24a
16-
sourceBlobDigest: sha256:69fef8ed681f1d68013e71f67927821d64fc1045d3956ace3775fe62ed76b8bb
15+
sourceRevisionDigest: sha256:807be0a9dea419a66c54f7b073b96fef228c9991996eb7faab57915d96d14298
16+
sourceBlobDigest: sha256:49a96e011be598dc1667da0d814c547d9544305f503cb992018176bcf78f3817
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:d7a20fe1c8d687f377099cdb412c6d0dd733dd982ec4662052df0894da211da2
18+
codeSamplesRevisionDigest: sha256:b3ab6f3bec3f43fd73f807f9d389aab450876e5d631ad4b424907a3a3cfd8bde
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest
2222
sources:
2323
my-source:
2424
inputs:
2525
- location: https://platform.unstructuredapp.io/openapi.json
26-
- location: https://api.unstructured.io/general/openapi.json
26+
- location: https://api.unstructuredapp.io/general/openapi.json
2727
overlays:
2828
- location: ./overlay_client.yaml
2929
registry:

README.md

Lines changed: 31 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,10 @@ from unstructured_client import UnstructuredClient
113113
from unstructured_client.models import shared
114114
from unstructured_client.utils import BackoffStrategy, RetryConfig
115115

116-
with UnstructuredClient() as uc_client:
116+
117+
with UnstructuredClient(
118+
server_url="https://api.example.com",
119+
) as uc_client:
117120

118121
res = uc_client.destinations.create_destination(request={
119122
"create_destination_connector": {
@@ -141,7 +144,9 @@ from unstructured_client import UnstructuredClient
141144
from unstructured_client.models import shared
142145
from unstructured_client.utils import BackoffStrategy, RetryConfig
143146

147+
144148
with UnstructuredClient(
149+
server_url="https://api.example.com",
145150
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
146151
) as uc_client:
147152

@@ -193,7 +198,10 @@ When custom error responses are specified for an operation, the SDK may also rai
193198
from unstructured_client import UnstructuredClient
194199
from unstructured_client.models import errors, shared
195200

196-
with UnstructuredClient() as uc_client:
201+
202+
with UnstructuredClient(
203+
server_url="https://api.example.com",
204+
) as uc_client:
197205
res = None
198206
try:
199207

@@ -325,7 +333,10 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
325333
from unstructured_client import UnstructuredClient
326334
from unstructured_client.models import shared
327335

328-
with UnstructuredClient() as uc_client:
336+
337+
with UnstructuredClient(
338+
server_url="https://api.example.com",
339+
) as uc_client:
329340

330341
res = uc_client.destinations.create_destination(request={
331342
"create_destination_connector": {
@@ -355,7 +366,10 @@ from unstructured_client import UnstructuredClient
355366
from unstructured_client.models import shared
356367

357368
async def main():
358-
async with UnstructuredClient() as uc_client:
369+
370+
async with UnstructuredClient(
371+
server_url="https://api.example.com",
372+
) as uc_client:
359373

360374
res = await uc_client.destinations.create_destination_async(request={
361375
"create_destination_connector": {
@@ -451,7 +465,10 @@ Certain SDK methods accept file objects as part of a request body or multi-part
451465
from unstructured_client import UnstructuredClient
452466
from unstructured_client.models import shared
453467

454-
with UnstructuredClient() as uc_client:
468+
469+
with UnstructuredClient(
470+
server_url="https://api.example.com",
471+
) as uc_client:
455472

456473
res = uc_client.general.partition(request={
457474
"partition_parameters": {
@@ -486,13 +503,19 @@ The `UnstructuredClient` class implements the context manager protocol and regis
486503
```python
487504
from unstructured_client import UnstructuredClient
488505
def main():
489-
with UnstructuredClient() as uc_client:
506+
507+
with UnstructuredClient(
508+
server_url="https://api.example.com",
509+
) as uc_client:
490510
# Rest of application here...
491511

492512

493513
# Or when using async:
494514
async def amain():
495-
async with UnstructuredClient() as uc_client:
515+
516+
async with UnstructuredClient(
517+
server_url="https://api.example.com",
518+
) as uc_client:
496519
# Rest of application here...
497520
```
498521
<!-- End Resource Management [resource-management] -->
@@ -508,7 +531,7 @@ from unstructured_client import UnstructuredClient
508531
import logging
509532

510533
logging.basicConfig(level=logging.DEBUG)
511-
s = UnstructuredClient(debug_logger=logging.getLogger("unstructured_client"))
534+
s = UnstructuredClient(server_url="https://example.com", debug_logger=logging.getLogger("unstructured_client"))
512535
```
513536
<!-- End Debugging [debug] -->
514537

RELEASES.md

Lines changed: 11 additions & 0 deletions
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-01 00:10:39
841+
### Changes
842+
Based on:
843+
- OpenAPI Doc
844+
- Speakeasy CLI 1.508.0 (2.536.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 - .

USAGE.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,10 @@
44
from unstructured_client import UnstructuredClient
55
from unstructured_client.models import shared
66

7-
with UnstructuredClient() as uc_client:
7+
8+
with UnstructuredClient(
9+
server_url="https://api.example.com",
10+
) as uc_client:
811

912
res = uc_client.destinations.create_destination(request={
1013
"create_destination_connector": {
@@ -34,7 +37,10 @@ from unstructured_client import UnstructuredClient
3437
from unstructured_client.models import shared
3538

3639
async def main():
37-
async with UnstructuredClient() as uc_client:
40+
41+
async with UnstructuredClient(
42+
server_url="https://api.example.com",
43+
) as uc_client:
3844

3945
res = await uc_client.destinations.create_destination_async(request={
4046
"create_destination_connector": {

codeSamples.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,4 +122,4 @@ actions:
122122
"x-codeSamples":
123123
- "lang": "python"
124124
"label": "partition"
125-
"source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient(\n server_url=\"https://api.example.com\",\n) as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"
125+
"source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient(\n server_url=\"https://api.example.com\",\n) as uc_client:\n\n res = uc_client.general.partition(request={\n \"partition_parameters\": {\n \"files\": {\n \"file_name\": \"example.file\",\n \"content\": open(\"example.file\", \"rb\"),\n },\n \"vlm_model_provider\": shared.PartitionParametersStrategy.OPENAI,\n \"vlm_model\": shared.PartitionParametersSchemasStrategy.GPT_4O,\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)"

docs/sdks/destinations/README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ Create a new destination connector using the provided configuration and name.
2121
from unstructured_client import UnstructuredClient
2222
from unstructured_client.models import shared
2323

24-
with UnstructuredClient() as uc_client:
24+
25+
with UnstructuredClient(
26+
server_url="https://api.example.com",
27+
) as uc_client:
2528

2629
res = uc_client.destinations.create_destination(request={
2730
"create_destination_connector": {
@@ -70,7 +73,10 @@ Delete a specific destination connector by its ID.
7073
```python
7174
from unstructured_client import UnstructuredClient
7275

73-
with UnstructuredClient() as uc_client:
76+
77+
with UnstructuredClient(
78+
server_url="https://api.example.com",
79+
) as uc_client:
7480

7581
res = uc_client.destinations.delete_destination(request={
7682
"destination_id": "10a88d76-65fb-4c88-8488-9e7d272c6373",
@@ -111,7 +117,10 @@ Retrieve detailed information for a specific destination connector by its ID.
111117
```python
112118
from unstructured_client import UnstructuredClient
113119

114-
with UnstructuredClient() as uc_client:
120+
121+
with UnstructuredClient(
122+
server_url="https://api.example.com",
123+
) as uc_client:
115124

116125
res = uc_client.destinations.get_destination(request={
117126
"destination_id": "41ba03fb-faa3-4e9e-8cfb-27f133c4198a",
@@ -152,7 +161,10 @@ Retrieve a list of available destination connectors.
152161
```python
153162
from unstructured_client import UnstructuredClient
154163

155-
with UnstructuredClient() as uc_client:
164+
165+
with UnstructuredClient(
166+
server_url="https://api.example.com",
167+
) as uc_client:
156168

157169
res = uc_client.destinations.list_destinations(request={})
158170

@@ -191,7 +203,10 @@ Update the configuration of an existing destination connector.
191203
```python
192204
from unstructured_client import UnstructuredClient
193205

194-
with UnstructuredClient() as uc_client:
206+
207+
with UnstructuredClient(
208+
server_url="https://api.example.com",
209+
) as uc_client:
195210

196211
res = uc_client.destinations.update_destination(request={
197212
"update_destination_connector": {

docs/sdks/general/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,10 @@ Description
1717
from unstructured_client import UnstructuredClient
1818
from unstructured_client.models import shared
1919

20-
with UnstructuredClient() as uc_client:
20+
21+
with UnstructuredClient(
22+
server_url="https://api.example.com",
23+
) as uc_client:
2124

2225
res = uc_client.general.partition(request={
2326
"partition_parameters": {

docs/sdks/jobs/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,10 @@ Cancel the specified job.
1818
```python
1919
from unstructured_client import UnstructuredClient
2020

21-
with UnstructuredClient() as uc_client:
21+
22+
with UnstructuredClient(
23+
server_url="https://api.example.com",
24+
) as uc_client:
2225

2326
res = uc_client.jobs.cancel_job(request={
2427
"job_id": "ec29bf67-0f30-4793-b5ee-8fc0da196032",
@@ -59,7 +62,10 @@ Retrieve detailed information for a specific job by its ID.
5962
```python
6063
from unstructured_client import UnstructuredClient
6164

62-
with UnstructuredClient() as uc_client:
65+
66+
with UnstructuredClient(
67+
server_url="https://api.example.com",
68+
) as uc_client:
6369

6470
res = uc_client.jobs.get_job(request={
6571
"job_id": "6bb4cb72-a072-4398-9de3-194e59352a3c",
@@ -100,7 +106,10 @@ Retrieve a list of jobs with optional filtering by workflow ID or job status.
100106
```python
101107
from unstructured_client import UnstructuredClient
102108

103-
with UnstructuredClient() as uc_client:
109+
110+
with UnstructuredClient(
111+
server_url="https://api.example.com",
112+
) as uc_client:
104113

105114
res = uc_client.jobs.list_jobs(request={})
106115

docs/sdks/sources/README.md

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,10 @@ Create a new source connector using the provided configuration and name.
2121
from unstructured_client import UnstructuredClient
2222
from unstructured_client.models import shared
2323

24-
with UnstructuredClient() as uc_client:
24+
25+
with UnstructuredClient(
26+
server_url="https://api.example.com",
27+
) as uc_client:
2528

2629
res = uc_client.sources.create_source(request={
2730
"create_source_connector": {
@@ -75,7 +78,10 @@ Delete a specific source connector identified by its ID.
7578
```python
7679
from unstructured_client import UnstructuredClient
7780

78-
with UnstructuredClient() as uc_client:
81+
82+
with UnstructuredClient(
83+
server_url="https://api.example.com",
84+
) as uc_client:
7985

8086
res = uc_client.sources.delete_source(request={
8187
"source_id": "8a24d7ae-5524-45e9-83f9-b0adba5303d4",
@@ -116,7 +122,10 @@ Retrieve detailed information for a specific source connector by its ID.
116122
```python
117123
from unstructured_client import UnstructuredClient
118124

119-
with UnstructuredClient() as uc_client:
125+
126+
with UnstructuredClient(
127+
server_url="https://api.example.com",
128+
) as uc_client:
120129

121130
res = uc_client.sources.get_source(request={
122131
"source_id": "e02d8147-b614-4e4c-9c6d-0cd9c4492ea0",
@@ -157,7 +166,10 @@ Retrieve a list of available source connectors.
157166
```python
158167
from unstructured_client import UnstructuredClient
159168

160-
with UnstructuredClient() as uc_client:
169+
170+
with UnstructuredClient(
171+
server_url="https://api.example.com",
172+
) as uc_client:
161173

162174
res = uc_client.sources.list_sources(request={})
163175

@@ -196,7 +208,10 @@ Update the configuration of an existing source connector.
196208
```python
197209
from unstructured_client import UnstructuredClient
198210

199-
with UnstructuredClient() as uc_client:
211+
212+
with UnstructuredClient(
213+
server_url="https://api.example.com",
214+
) as uc_client:
200215

201216
res = uc_client.sources.update_source(request={
202217
"update_source_connector": {

0 commit comments

Comments
 (0)