Skip to content

Commit 4265550

Browse files
committed
Bump to 0.30.0b
1 parent c79a3f6 commit 4265550

File tree

10 files changed

+75
-21
lines changed

10 files changed

+75
-21
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: b78eae8dbe173e2848e2a257a406845e
4+
docChecksum: 3e6bb7582e05075b42a34cbc507599a3
55
docVersion: 1.0.0
6-
speakeasyVersion: 1.488.0
7-
generationVersion: 2.506.0
8-
releaseVersion: 0.30.0
9-
configChecksum: 70d22efea7630be13da1b2e83e04e772
6+
speakeasyVersion: 1.490.0
7+
generationVersion: 2.512.0
8+
releaseVersion: 0.30.0b
9+
configChecksum: cf1f9a507e398edc1222ab95bbf9b244
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -21,7 +21,7 @@ features:
2121
enumUnions: 0.1.0
2222
envVarSecurityUsage: 0.3.2
2323
examples: 3.0.1
24-
globalSecurity: 3.0.2
24+
globalSecurity: 3.0.3
2525
globalSecurityCallbacks: 1.0.0
2626
globalSecurityFlattening: 1.0.0
2727
methodServerURLs: 3.1.1
@@ -209,7 +209,7 @@ examples:
209209
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "name": "<value>", "type": "astradb"}
210210
responses:
211211
"200":
212-
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2023-11-15T01:07:46.428Z", "id": "05b94b3c-bed9-4976-bf02-38635119a590", "name": "<value>", "type": "databricks_volumes"}
212+
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2023-11-15T01:07:46.428Z", "id": "05b94b3c-bed9-4976-bf02-38635119a590", "name": "<value>", "type": "databricks_volumes"}
213213
"422":
214214
application/json: {}
215215
delete_destination:
@@ -231,14 +231,14 @@ examples:
231231
header: {}
232232
responses:
233233
"200":
234-
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2024-10-14T19:54:11.006Z", "id": "42a89289-d2ad-4317-9f06-cb55de8b2b8c", "name": "<value>", "type": "databricks_volumes"}
234+
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2024-10-14T19:54:11.006Z", "id": "42a89289-d2ad-4317-9f06-cb55de8b2b8c", "name": "<value>", "type": "databricks_volumes"}
235235
"422":
236236
application/json: {}
237237
list_destinations:
238238
speakeasy-default-list-destinations:
239239
responses:
240240
"200":
241-
application/json: [{"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2023-02-24T01:08:17.980Z", "id": "c363dec3-c705-4ee0-a414-81044a6e1cc3", "name": "<value>", "type": "snowflake"}]
241+
application/json: [{"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2023-02-24T01:08:17.980Z", "id": "c363dec3-c705-4ee0-a414-81044a6e1cc3", "name": "<value>", "type": "snowflake"}]
242242
"422":
243243
application/json: {}
244244
update_destination:
@@ -251,7 +251,7 @@ examples:
251251
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}}
252252
responses:
253253
"200":
254-
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2025-01-09T05:32:50.655Z", "id": "9d27c4e2-ecb5-4a69-971b-d7ec9d2266e1", "name": "<value>", "type": "postgres"}
254+
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2025-01-09T05:32:50.655Z", "id": "9d27c4e2-ecb5-4a69-971b-d7ec9d2266e1", "name": "<value>", "type": "postgres"}
255255
"422":
256256
application/json: {}
257257
cancel_job:
@@ -289,7 +289,7 @@ examples:
289289
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "name": "<value>", "type": "salesforce"}
290290
responses:
291291
"200":
292-
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2023-04-25T02:02:10.136Z", "id": "18d86009-3eb2-422a-a875-93c814e4cdc9", "name": "<value>", "type": "dropbox"}
292+
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2023-04-25T02:02:10.136Z", "id": "18d86009-3eb2-422a-a875-93c814e4cdc9", "name": "<value>", "type": "dropbox"}
293293
"422":
294294
application/json: {}
295295
delete_source:
@@ -311,7 +311,7 @@ examples:
311311
header: {}
312312
responses:
313313
"200":
314-
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2023-05-26T11:39:22.869Z", "id": "24daedf6-4f76-49d1-a6af-bb58044f8cfd", "name": "<value>", "type": "sharepoint"}
314+
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2023-05-26T11:39:22.869Z", "id": "24daedf6-4f76-49d1-a6af-bb58044f8cfd", "name": "<value>", "type": "sharepoint"}
315315
"422":
316316
application/json: {}
317317
list_sources:
@@ -331,7 +331,7 @@ examples:
331331
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}}
332332
responses:
333333
"200":
334-
application/json: {"config": {"batch_size": 100, "bucket": "bucket-name", "collection": "collection_name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "scope": "scope_name", "username": "username"}, "created_at": "2025-05-26T03:32:19.957Z", "id": "439e8ef6-c69c-49e3-9ba7-a8418be7cbe9", "name": "<value>", "type": "snowflake"}
334+
application/json: {"config": {"account_key": "azure_account_key", "account_name": "azure_account_name", "anonymous": false, "recursive": true, "remote_url": "az://<path></path></container-name>"}, "created_at": "2025-05-26T03:32:19.957Z", "id": "439e8ef6-c69c-49e3-9ba7-a8418be7cbe9", "name": "<value>", "type": "snowflake"}
335335
"422":
336336
application/json: {}
337337
create_workflow:

gen.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,12 @@ generation:
77
nameResolutionDec2023: false
88
parameterOrderingFeb2024: false
99
requestResponseComponentNamesFeb2024: false
10+
securityFeb2025: false
1011
auth:
1112
oAuth2ClientCredentialsEnabled: false
1213
oAuth2PasswordEnabled: false
1314
python:
14-
version: 0.30.0
15+
version: 0.30.0b
1516
additionalDependencies:
1617
dev:
1718
deepdiff: '>=6.0'
@@ -54,5 +55,6 @@ python:
5455
outputModelSuffix: output
5556
packageName: unstructured-client
5657
projectUrls: {}
58+
pytestTimeout: 0
5759
responseFormat: envelope
5860
templateVersion: v2

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "unstructured-client"
3-
version = "0.30.0"
3+
version = "0.30.0b"
44
description = "Python Client SDK for Unstructured API"
55
authors = [{ name = "Unstructured" },]
66
readme = "README-PYPI.md"

src/unstructured_client/_hooks/types.py

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@
77

88

99
class HookContext:
10+
base_url: str
1011
operation_id: str
1112
oauth2_scopes: Optional[List[str]] = None
1213
security_source: Optional[Union[Any, Callable[[], Any]]] = None
1314

1415
def __init__(
1516
self,
17+
base_url: str,
1618
operation_id: str,
1719
oauth2_scopes: Optional[List[str]],
1820
security_source: Optional[Union[Any, Callable[[], Any]]],
1921
):
22+
self.base_url = base_url
2023
self.operation_id = operation_id
2124
self.oauth2_scopes = oauth2_scopes
2225
self.security_source = security_source
@@ -25,21 +28,30 @@ def __init__(
2528
class BeforeRequestContext(HookContext):
2629
def __init__(self, hook_ctx: HookContext):
2730
super().__init__(
28-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
31+
hook_ctx.base_url,
32+
hook_ctx.operation_id,
33+
hook_ctx.oauth2_scopes,
34+
hook_ctx.security_source,
2935
)
3036

3137

3238
class AfterSuccessContext(HookContext):
3339
def __init__(self, hook_ctx: HookContext):
3440
super().__init__(
35-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
41+
hook_ctx.base_url,
42+
hook_ctx.operation_id,
43+
hook_ctx.oauth2_scopes,
44+
hook_ctx.security_source,
3645
)
3746

3847

3948
class AfterErrorContext(HookContext):
4049
def __init__(self, hook_ctx: HookContext):
4150
super().__init__(
42-
hook_ctx.operation_id, hook_ctx.oauth2_scopes, hook_ctx.security_source
51+
hook_ctx.base_url,
52+
hook_ctx.operation_id,
53+
hook_ctx.oauth2_scopes,
54+
hook_ctx.security_source,
4355
)
4456

4557

src/unstructured_client/_version.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,10 @@
33
import importlib.metadata
44

55
__title__: str = "unstructured-client"
6-
__version__: str = "0.30.0"
6+
__version__: str = "0.30.0b"
77
__openapi_doc_version__: str = "1.0.0"
8-
__gen_version__: str = "2.506.0"
9-
__user_agent__: str = "speakeasy-sdk/python 0.30.0 2.506.0 1.0.0 unstructured-client"
8+
__gen_version__: str = "2.512.0"
9+
__user_agent__: str = "speakeasy-sdk/python 0.30.0b 2.512.0 1.0.0 unstructured-client"
1010

1111
try:
1212
if __package__ is not None:

src/unstructured_client/destinations.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,7 @@ def create_destination(
8282

8383
http_res = self.do_request(
8484
hook_ctx=HookContext(
85+
base_url=base_url or "",
8586
operation_id="create_destination",
8687
oauth2_scopes=[],
8788
security_source=self.sdk_configuration.security,
@@ -199,6 +200,7 @@ async def create_destination_async(
199200

200201
http_res = await self.do_request_async(
201202
hook_ctx=HookContext(
203+
base_url=base_url or "",
202204
operation_id="create_destination",
203205
oauth2_scopes=[],
204206
security_source=self.sdk_configuration.security,
@@ -309,6 +311,7 @@ def delete_destination(
309311

310312
http_res = self.do_request(
311313
hook_ctx=HookContext(
314+
base_url=base_url or "",
312315
operation_id="delete_destination",
313316
oauth2_scopes=[],
314317
security_source=self.sdk_configuration.security,
@@ -417,6 +420,7 @@ async def delete_destination_async(
417420

418421
http_res = await self.do_request_async(
419422
hook_ctx=HookContext(
423+
base_url=base_url or "",
420424
operation_id="delete_destination",
421425
oauth2_scopes=[],
422426
security_source=self.sdk_configuration.security,
@@ -524,6 +528,7 @@ def get_destination(
524528

525529
http_res = self.do_request(
526530
hook_ctx=HookContext(
531+
base_url=base_url or "",
527532
operation_id="get_destination",
528533
oauth2_scopes=[],
529534
security_source=self.sdk_configuration.security,
@@ -633,6 +638,7 @@ async def get_destination_async(
633638

634639
http_res = await self.do_request_async(
635640
hook_ctx=HookContext(
641+
base_url=base_url or "",
636642
operation_id="get_destination",
637643
oauth2_scopes=[],
638644
security_source=self.sdk_configuration.security,
@@ -743,6 +749,7 @@ def list_destinations(
743749

744750
http_res = self.do_request(
745751
hook_ctx=HookContext(
752+
base_url=base_url or "",
746753
operation_id="list_destinations",
747754
oauth2_scopes=[],
748755
security_source=self.sdk_configuration.security,
@@ -854,6 +861,7 @@ async def list_destinations_async(
854861

855862
http_res = await self.do_request_async(
856863
hook_ctx=HookContext(
864+
base_url=base_url or "",
857865
operation_id="list_destinations",
858866
oauth2_scopes=[],
859867
security_source=self.sdk_configuration.security,
@@ -972,6 +980,7 @@ def update_destination(
972980

973981
http_res = self.do_request(
974982
hook_ctx=HookContext(
983+
base_url=base_url or "",
975984
operation_id="update_destination",
976985
oauth2_scopes=[],
977986
security_source=self.sdk_configuration.security,
@@ -1089,6 +1098,7 @@ async def update_destination_async(
10891098

10901099
http_res = await self.do_request_async(
10911100
hook_ctx=HookContext(
1101+
base_url=base_url or "",
10921102
operation_id="update_destination",
10931103
oauth2_scopes=[],
10941104
security_source=self.sdk_configuration.security,

src/unstructured_client/general.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ def partition(
9393

9494
http_res = self.do_request(
9595
hook_ctx=HookContext(
96+
base_url=base_url or "",
9697
operation_id="partition",
9798
oauth2_scopes=[],
9899
security_source=self.sdk_configuration.security,
@@ -220,6 +221,7 @@ async def partition_async(
220221

221222
http_res = await self.do_request_async(
222223
hook_ctx=HookContext(
224+
base_url=base_url or "",
223225
operation_id="partition",
224226
oauth2_scopes=[],
225227
security_source=self.sdk_configuration.security,

src/unstructured_client/jobs.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,7 @@ def cancel_job(
7474

7575
http_res = self.do_request(
7676
hook_ctx=HookContext(
77+
base_url=base_url or "",
7778
operation_id="cancel_job",
7879
oauth2_scopes=[],
7980
security_source=self.sdk_configuration.security,
@@ -181,6 +182,7 @@ async def cancel_job_async(
181182

182183
http_res = await self.do_request_async(
183184
hook_ctx=HookContext(
185+
base_url=base_url or "",
184186
operation_id="cancel_job",
185187
oauth2_scopes=[],
186188
security_source=self.sdk_configuration.security,
@@ -286,6 +288,7 @@ def get_job(
286288

287289
http_res = self.do_request(
288290
hook_ctx=HookContext(
291+
base_url=base_url or "",
289292
operation_id="get_job",
290293
oauth2_scopes=[],
291294
security_source=self.sdk_configuration.security,
@@ -393,6 +396,7 @@ async def get_job_async(
393396

394397
http_res = await self.do_request_async(
395398
hook_ctx=HookContext(
399+
base_url=base_url or "",
396400
operation_id="get_job",
397401
oauth2_scopes=[],
398402
security_source=self.sdk_configuration.security,
@@ -500,6 +504,7 @@ def list_jobs(
500504

501505
http_res = self.do_request(
502506
hook_ctx=HookContext(
507+
base_url=base_url or "",
503508
operation_id="list_jobs",
504509
oauth2_scopes=[],
505510
security_source=self.sdk_configuration.security,
@@ -607,6 +612,7 @@ async def list_jobs_async(
607612

608613
http_res = await self.do_request_async(
609614
hook_ctx=HookContext(
615+
base_url=base_url or "",
610616
operation_id="list_jobs",
611617
oauth2_scopes=[],
612618
security_source=self.sdk_configuration.security,

0 commit comments

Comments
 (0)