Skip to content

Commit ab1db57

Browse files
committed
Revert server_url changes, use 0.30.4 as new version
1 parent 59c8c69 commit ab1db57

File tree

15 files changed

+63
-117
lines changed

15 files changed

+63
-117
lines changed

.speakeasy/gen.lock

Lines changed: 13 additions & 13 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: eb050201e8bfff645042e3b2847104cc
4+
docChecksum: 622461ba121cc2a105e29eab97b6bee3
55
docVersion: 1.0.68
6-
speakeasyVersion: 1.501.0
7-
generationVersion: 2.522.1
8-
releaseVersion: 0.31.0
9-
configChecksum: faf5191e78f1597b78cd7600af4f1d96
6+
speakeasyVersion: 1.490.0
7+
generationVersion: 2.512.0
8+
releaseVersion: 0.30.4
9+
configChecksum: 87e53f0ca57296c4cae62d4792edc2cf
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.12.1
19+
core: 5.11.0
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.1
30+
nullables: 1.0.0
3131
openEnums: 1.0.0
3232
responseFormat: 1.0.1
3333
retries: 3.0.2
34-
sdkHooks: 1.0.1
34+
sdkHooks: 1.0.0
3535
serverIDs: 3.0.0
3636
unions: 3.0.4
3737
uploadStreams: 1.0.0
@@ -367,14 +367,14 @@ examples:
367367
"200":
368368
application/json: {"config": {"catalog": "<value>", "database": "<value>", "table_name": "<value>", "volume": "<value>"}, "created_at": "2024-10-14T19:54:11.006Z", "id": "42a89289-d2ad-4317-9f06-cb55de8b2b8c", "name": "<value>", "type": "databricks_volumes"}
369369
"422":
370-
application/json: {"detail": [{"loc": ["<value>", "<value>"], "msg": "<value>", "type": "<value>"}, {"loc": [939869, 667498, "<value>"], "msg": "<value>", "type": "<value>"}]}
370+
application/json: {"detail": []}
371371
list_destinations:
372372
speakeasy-default-list-destinations:
373373
responses:
374374
"200":
375375
application/json: [{"config": {"aws_access_key_id": "<id>", "aws_region": "<value>", "aws_secret_access_key": "<value>", "table_uri": "https://authorized-saw.biz"}, "created_at": "2023-02-24T01:08:17.980Z", "id": "c363dec3-c705-4ee0-a414-81044a6e1cc3", "name": "<value>", "type": "snowflake"}]
376376
"422":
377-
application/json: {"detail": []}
377+
application/json: {"detail": [{"loc": [], "msg": "<value>", "type": "<value>"}, {"loc": ["<value>", "<value>", "<value>"], "msg": "<value>", "type": "<value>"}, {"loc": [800205, "<value>", 473062], "msg": "<value>", "type": "<value>"}]}
378378
update_destination:
379379
speakeasy-default-update-destination:
380380
parameters:
@@ -498,14 +498,14 @@ examples:
498498
"200":
499499
application/json: {"created_at": "2023-05-27T02:17:56.472Z", "destinations": [], "id": "5781a90a-c5ba-41a1-ac38-4b031d1d247d", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["1ecf852c-a41e-4193-b8ae-7afe4e642c1d", "73825739-ddfe-44a7-b2e9-6adc9e5972ee", "32976128-e157-4711-b160-6c7e63baa0cb"], "status": "inactive", "workflow_nodes": [], "workflow_type": "platinum"}
500500
"422":
501-
application/json: {"detail": []}
501+
application/json: {"detail": [{"loc": [], "msg": "<value>", "type": "<value>"}]}
502502
list_workflows:
503503
speakeasy-default-list-workflows:
504504
responses:
505505
"200":
506506
application/json: [{"created_at": "2025-06-22T11:37:21.648Z", "destinations": ["aeebecc7-9d8e-4625-bf1d-815c2f084869", "01866db9-54f2-4be7-93c3-062b8107d001", "fcdc4994-eea5-425c-91fa-e03f2bd8030d"], "id": "16b80fee-64dc-472d-8f26-1d7729b6423d", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": [], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "embed"}], "workflow_type": "advanced"}]
507507
"422":
508-
application/json: {"detail": "<value>"}
508+
application/json: {"detail": [{"loc": [931730, 730320, 769892], "msg": "<value>", "type": "<value>"}, {"loc": ["<value>", 862351, 882715], "msg": "<value>", "type": "<value>"}, {"loc": ["<value>"], "msg": "<value>", "type": "<value>"}]}
509509
run_workflow:
510510
speakeasy-default-run-workflow:
511511
parameters:
@@ -516,7 +516,7 @@ examples:
516516
"202":
517517
application/json: {"created_at": "2024-08-04T10:06:22.481Z", "destinations": [], "id": "6c4f327c-7ca2-4933-a68d-2ebe9d9f1445", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["a9593964-92eb-496f-84ac-c8f067ba24c3"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "chunk"}], "workflow_type": "custom"}
518518
"422":
519-
application/json: {"detail": [{"loc": [397022, 604524], "msg": "<value>", "type": "<value>"}]}
519+
application/json: {"detail": [{"loc": ["<value>"], "msg": "<value>", "type": "<value>"}, {"loc": [397022, 604524], "msg": "<value>", "type": "<value>"}]}
520520
update_workflow:
521521
speakeasy-default-update-workflow:
522522
parameters:

README.md

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

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

120118
res = uc_client.destinations.create_destination(request={
121119
"create_destination_connector": {
@@ -144,7 +142,6 @@ from unstructured_client.models import shared
144142
from unstructured_client.utils import BackoffStrategy, RetryConfig
145143

146144
with UnstructuredClient(
147-
server_url="https://api.example.com",
148145
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
149146
) as uc_client:
150147

@@ -196,9 +193,7 @@ When custom error responses are specified for an operation, the SDK may also rai
196193
from unstructured_client import UnstructuredClient
197194
from unstructured_client.models import errors, shared
198195

199-
with UnstructuredClient(
200-
server_url="https://api.example.com",
201-
) as uc_client:
196+
with UnstructuredClient() as uc_client:
202197
res = None
203198
try:
204199

@@ -330,9 +325,7 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
330325
from unstructured_client import UnstructuredClient
331326
from unstructured_client.models import shared
332327

333-
with UnstructuredClient(
334-
server_url="https://api.example.com",
335-
) as uc_client:
328+
with UnstructuredClient() as uc_client:
336329

337330
res = uc_client.destinations.create_destination(request={
338331
"create_destination_connector": {
@@ -362,9 +355,7 @@ from unstructured_client import UnstructuredClient
362355
from unstructured_client.models import shared
363356

364357
async def main():
365-
async with UnstructuredClient(
366-
server_url="https://api.example.com",
367-
) as uc_client:
358+
async with UnstructuredClient() as uc_client:
368359

369360
res = await uc_client.destinations.create_destination_async(request={
370361
"create_destination_connector": {
@@ -459,9 +450,7 @@ Certain SDK methods accept file objects as part of a request body or multi-part
459450
```python
460451
from unstructured_client import UnstructuredClient
461452

462-
with UnstructuredClient(
463-
server_url="https://api.example.com",
464-
) as uc_client:
453+
with UnstructuredClient() as uc_client:
465454

466455
res = uc_client.general.partition(request={
467456
"partition_parameters": {
@@ -494,17 +483,13 @@ The `UnstructuredClient` class implements the context manager protocol and regis
494483
```python
495484
from unstructured_client import UnstructuredClient
496485
def main():
497-
with UnstructuredClient(
498-
server_url="https://api.example.com",
499-
) as uc_client:
486+
with UnstructuredClient() as uc_client:
500487
# Rest of application here...
501488

502489

503490
# Or when using async:
504491
async def amain():
505-
async with UnstructuredClient(
506-
server_url="https://api.example.com",
507-
) as uc_client:
492+
async with UnstructuredClient() as uc_client:
508493
# Rest of application here...
509494
```
510495
<!-- End Resource Management [resource-management] -->
@@ -520,7 +505,7 @@ from unstructured_client import UnstructuredClient
520505
import logging
521506

522507
logging.basicConfig(level=logging.DEBUG)
523-
s = UnstructuredClient(server_url="https://example.com", debug_logger=logging.getLogger("unstructured_client"))
508+
s = UnstructuredClient(debug_logger=logging.getLogger("unstructured_client"))
524509
```
525510
<!-- End Debugging [debug] -->
526511

USAGE.md

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

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

119
res = uc_client.destinations.create_destination(request={
1210
"create_destination_connector": {
@@ -36,9 +34,7 @@ from unstructured_client import UnstructuredClient
3634
from unstructured_client.models import shared
3735

3836
async def main():
39-
async with UnstructuredClient(
40-
server_url="https://api.example.com",
41-
) as uc_client:
37+
async with UnstructuredClient() as uc_client:
4238

4339
res = await uc_client.destinations.create_destination_async(request={
4440
"create_destination_connector": {

docs/sdks/destinations/README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ 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(
25-
server_url="https://api.example.com",
26-
) as uc_client:
24+
with UnstructuredClient() as uc_client:
2725

2826
res = uc_client.destinations.create_destination(request={
2927
"create_destination_connector": {
@@ -72,9 +70,7 @@ Delete a specific destination connector by its ID.
7270
```python
7371
from unstructured_client import UnstructuredClient
7472

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

7975
res = uc_client.destinations.delete_destination(request={
8076
"destination_id": "10a88d76-65fb-4c88-8488-9e7d272c6373",
@@ -115,9 +111,7 @@ Retrieve detailed information for a specific destination connector by its ID.
115111
```python
116112
from unstructured_client import UnstructuredClient
117113

118-
with UnstructuredClient(
119-
server_url="https://api.example.com",
120-
) as uc_client:
114+
with UnstructuredClient() as uc_client:
121115

122116
res = uc_client.destinations.get_destination(request={
123117
"destination_id": "41ba03fb-faa3-4e9e-8cfb-27f133c4198a",
@@ -158,9 +152,7 @@ Retrieve a list of available destination connectors.
158152
```python
159153
from unstructured_client import UnstructuredClient
160154

161-
with UnstructuredClient(
162-
server_url="https://api.example.com",
163-
) as uc_client:
155+
with UnstructuredClient() as uc_client:
164156

165157
res = uc_client.destinations.list_destinations(request={})
166158

@@ -199,9 +191,7 @@ Update the configuration of an existing destination connector.
199191
```python
200192
from unstructured_client import UnstructuredClient
201193

202-
with UnstructuredClient(
203-
server_url="https://api.example.com",
204-
) as uc_client:
194+
with UnstructuredClient() as uc_client:
205195

206196
res = uc_client.destinations.update_destination(request={
207197
"update_destination_connector": {

docs/sdks/general/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,7 @@ Description
1616
```python
1717
from unstructured_client import UnstructuredClient
1818

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

2321
res = uc_client.general.partition(request={
2422
"partition_parameters": {

docs/sdks/jobs/README.md

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

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

2523
res = uc_client.jobs.cancel_job(request={
2624
"job_id": "ec29bf67-0f30-4793-b5ee-8fc0da196032",
@@ -61,9 +59,7 @@ Retrieve detailed information for a specific job by its ID.
6159
```python
6260
from unstructured_client import UnstructuredClient
6361

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

6864
res = uc_client.jobs.get_job(request={
6965
"job_id": "6bb4cb72-a072-4398-9de3-194e59352a3c",
@@ -104,9 +100,7 @@ Retrieve a list of jobs with optional filtering by workflow ID or job status.
104100
```python
105101
from unstructured_client import UnstructuredClient
106102

107-
with UnstructuredClient(
108-
server_url="https://api.example.com",
109-
) as uc_client:
103+
with UnstructuredClient() as uc_client:
110104

111105
res = uc_client.jobs.list_jobs(request={})
112106

docs/sdks/sources/README.md

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,7 @@ 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(
25-
server_url="https://api.example.com",
26-
) as uc_client:
24+
with UnstructuredClient() as uc_client:
2725

2826
res = uc_client.sources.create_source(request={
2927
"create_source_connector": {
@@ -77,9 +75,7 @@ Delete a specific source connector identified by its ID.
7775
```python
7876
from unstructured_client import UnstructuredClient
7977

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

8480
res = uc_client.sources.delete_source(request={
8581
"source_id": "8a24d7ae-5524-45e9-83f9-b0adba5303d4",
@@ -120,9 +116,7 @@ Retrieve detailed information for a specific source connector by its ID.
120116
```python
121117
from unstructured_client import UnstructuredClient
122118

123-
with UnstructuredClient(
124-
server_url="https://api.example.com",
125-
) as uc_client:
119+
with UnstructuredClient() as uc_client:
126120

127121
res = uc_client.sources.get_source(request={
128122
"source_id": "e02d8147-b614-4e4c-9c6d-0cd9c4492ea0",
@@ -163,9 +157,7 @@ Retrieve a list of available source connectors.
163157
```python
164158
from unstructured_client import UnstructuredClient
165159

166-
with UnstructuredClient(
167-
server_url="https://api.example.com",
168-
) as uc_client:
160+
with UnstructuredClient() as uc_client:
169161

170162
res = uc_client.sources.list_sources(request={})
171163

@@ -204,9 +196,7 @@ Update the configuration of an existing source connector.
204196
```python
205197
from unstructured_client import UnstructuredClient
206198

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

211201
res = uc_client.sources.update_source(request={
212202
"update_source_connector": {

0 commit comments

Comments
 (0)