Skip to content

Commit 9a4d589

Browse files
committed
## Python SDK Changes Detected:
* `unstructured_client.destinations.create_connection_check_destinations()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.destinations.create_destination()`: * `request` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_destination_connector_config].schema` **Changed** * `unstructured_client.destinations.delete_destination()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.destinations.get_connection_check_destinations()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.destinations.get_destination()`: * `request.security` **Added** **Breaking** ⚠️ * `response.config.[snowflake_destination_connector_config].schema` **Changed** * `unstructured_client.destinations.list_destinations()`: * `request.security` **Added** **Breaking** ⚠️ * `response.[].config.[snowflake_destination_connector_config].schema` **Changed** * `unstructured_client.destinations.update_destination()`: * `request` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_destination_connector_config].schema` **Changed** * `unstructured_client.jobs.cancel_job()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.jobs.download_job_output()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.jobs.get_job()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.jobs.get_job_details()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.jobs.get_job_failed_files()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.jobs.list_jobs()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.sources.create_connection_check_sources()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.sources.create_source()`: * `request` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.sources.delete_source()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.sources.get_connection_check_sources()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.sources.get_source()`: * `request.security` **Added** **Breaking** ⚠️ * `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.sources.list_sources()`: * `request.security` **Added** **Breaking** ⚠️ * `response.[].config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.sources.update_source()`: * `request` **Changed** **Breaking** ⚠️ * `response.config.[snowflake_source_connector_config].schema` **Changed** * `unstructured_client.workflows.create_workflow()`: * `request.security` **Added** **Breaking** ⚠️ * `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.delete_workflow()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.workflows.get_workflow()`: * `request.security` **Added** **Breaking** ⚠️ * `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.list_workflows()`: * `request.security` **Added** **Breaking** ⚠️ * `response.[].reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.workflows.run_workflow()`: `request.security` **Added** **Breaking** ⚠️ * `unstructured_client.workflows.update_workflow()`: * `request.security` **Added** **Breaking** ⚠️ * `response.reprocess_all` **Changed** **Breaking** ⚠️ * `unstructured_client.general.partition()`: * `request.partition_parameters` **Changed** **Breaking** ⚠️
1 parent 16a78c9 commit 9a4d589

File tree

89 files changed

+1820
-468
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+1820
-468
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
.env.local
12
**/__pycache__/
23
**/.speakeasy/temp/
34
**/.speakeasy/logs/

.speakeasy/gen.lock

Lines changed: 36 additions & 10 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: 8038a5b9e376d44bad2fd4c117922954
5-
docVersion: 1.1.45
4+
docChecksum: 7a349f081ce7703ab46bee35b64feb32
5+
docVersion: 1.2.10
66
speakeasyVersion: 1.601.0
77
generationVersion: 2.680.0
8-
releaseVersion: 0.42.3
9-
configChecksum: 3d02dd7ca437781b3d721fab5d7b9adc
8+
releaseVersion: 0.42.5
9+
configChecksum: f65c47c497403c61234987cadd6fbbb9
1010
repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git
1111
repoSubDirectory: .
1212
installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git
@@ -26,6 +26,7 @@ features:
2626
globalSecurityCallbacks: 1.0.0
2727
globalSecurityFlattening: 1.0.0
2828
globalServerURLs: 3.1.1
29+
methodSecurity: 3.0.1
2930
multipartFileContentType: 1.0.0
3031
nameOverrides: 3.0.1
3132
nullables: 1.0.1
@@ -45,58 +46,84 @@ generatedFiles:
4546
- docs/models/errors/servererror.md
4647
- docs/models/operations/canceljobrequest.md
4748
- docs/models/operations/canceljobresponse.md
49+
- docs/models/operations/canceljobsecurity.md
4850
- docs/models/operations/createconnectioncheckdestinationsrequest.md
4951
- docs/models/operations/createconnectioncheckdestinationsresponse.md
52+
- docs/models/operations/createconnectioncheckdestinationssecurity.md
5053
- docs/models/operations/createconnectionchecksourcesrequest.md
5154
- docs/models/operations/createconnectionchecksourcesresponse.md
55+
- docs/models/operations/createconnectionchecksourcessecurity.md
5256
- docs/models/operations/createdestinationrequest.md
5357
- docs/models/operations/createdestinationresponse.md
58+
- docs/models/operations/createdestinationsecurity.md
5459
- docs/models/operations/createsourcerequest.md
5560
- docs/models/operations/createsourceresponse.md
61+
- docs/models/operations/createsourcesecurity.md
5662
- docs/models/operations/createworkflowrequest.md
5763
- docs/models/operations/createworkflowresponse.md
64+
- docs/models/operations/createworkflowsecurity.md
5865
- docs/models/operations/deletedestinationrequest.md
5966
- docs/models/operations/deletedestinationresponse.md
67+
- docs/models/operations/deletedestinationsecurity.md
6068
- docs/models/operations/deletesourcerequest.md
6169
- docs/models/operations/deletesourceresponse.md
70+
- docs/models/operations/deletesourcesecurity.md
6271
- docs/models/operations/deleteworkflowrequest.md
6372
- docs/models/operations/deleteworkflowresponse.md
73+
- docs/models/operations/deleteworkflowsecurity.md
6474
- docs/models/operations/downloadjoboutputrequest.md
6575
- docs/models/operations/downloadjoboutputresponse.md
76+
- docs/models/operations/downloadjoboutputsecurity.md
6677
- docs/models/operations/getconnectioncheckdestinationsrequest.md
6778
- docs/models/operations/getconnectioncheckdestinationsresponse.md
79+
- docs/models/operations/getconnectioncheckdestinationssecurity.md
6880
- docs/models/operations/getconnectionchecksourcesrequest.md
6981
- docs/models/operations/getconnectionchecksourcesresponse.md
82+
- docs/models/operations/getconnectionchecksourcessecurity.md
7083
- docs/models/operations/getdestinationrequest.md
7184
- docs/models/operations/getdestinationresponse.md
85+
- docs/models/operations/getdestinationsecurity.md
7286
- docs/models/operations/getjobdetailsrequest.md
7387
- docs/models/operations/getjobdetailsresponse.md
88+
- docs/models/operations/getjobdetailssecurity.md
7489
- docs/models/operations/getjobfailedfilesrequest.md
7590
- docs/models/operations/getjobfailedfilesresponse.md
91+
- docs/models/operations/getjobfailedfilessecurity.md
7692
- docs/models/operations/getjobrequest.md
7793
- docs/models/operations/getjobresponse.md
94+
- docs/models/operations/getjobsecurity.md
7895
- docs/models/operations/getsourcerequest.md
7996
- docs/models/operations/getsourceresponse.md
97+
- docs/models/operations/getsourcesecurity.md
8098
- docs/models/operations/getworkflowrequest.md
8199
- docs/models/operations/getworkflowresponse.md
100+
- docs/models/operations/getworkflowsecurity.md
82101
- docs/models/operations/listdestinationsrequest.md
83102
- docs/models/operations/listdestinationsresponse.md
103+
- docs/models/operations/listdestinationssecurity.md
84104
- docs/models/operations/listjobsrequest.md
85105
- docs/models/operations/listjobsresponse.md
106+
- docs/models/operations/listjobssecurity.md
86107
- docs/models/operations/listsourcesrequest.md
87108
- docs/models/operations/listsourcesresponse.md
109+
- docs/models/operations/listsourcessecurity.md
88110
- docs/models/operations/listworkflowsrequest.md
89111
- docs/models/operations/listworkflowsresponse.md
112+
- docs/models/operations/listworkflowssecurity.md
90113
- docs/models/operations/partitionrequest.md
91114
- docs/models/operations/partitionresponse.md
92115
- docs/models/operations/runworkflowrequest.md
93116
- docs/models/operations/runworkflowresponse.md
117+
- docs/models/operations/runworkflowsecurity.md
94118
- docs/models/operations/updatedestinationrequest.md
95119
- docs/models/operations/updatedestinationresponse.md
120+
- docs/models/operations/updatedestinationsecurity.md
96121
- docs/models/operations/updatesourcerequest.md
97122
- docs/models/operations/updatesourceresponse.md
123+
- docs/models/operations/updatesourcesecurity.md
98124
- docs/models/operations/updateworkflowrequest.md
99125
- docs/models/operations/updateworkflowresponse.md
126+
- docs/models/operations/updateworkflowsecurity.md
100127
- docs/models/shared/astradbconnectorconfig.md
101128
- docs/models/shared/astradbconnectorconfiginput.md
102129
- docs/models/shared/azureaisearchconnectorconfig.md
@@ -212,7 +239,6 @@ generatedFiles:
212239
- docs/models/shared/updateworkflow.md
213240
- docs/models/shared/updateworkflowschedule.md
214241
- docs/models/shared/validationerror.md
215-
- docs/models/shared/vlmmodel.md
216242
- docs/models/shared/vlmmodelprovider.md
217243
- docs/models/shared/weaviatedestinationconnectorconfig.md
218244
- docs/models/shared/weaviatedestinationconnectorconfiginput.md
@@ -600,7 +626,7 @@ examples:
600626
application/json: {"name": "<value>", "workflow_type": "advanced"}
601627
responses:
602628
"200":
603-
application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
629+
application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
604630
"422":
605631
application/json: {"detail": "<value>"}
606632
delete_workflow:
@@ -620,7 +646,7 @@ examples:
620646
workflow_id: "d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76"
621647
responses:
622648
"200":
623-
application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["349ed27a-eeda-4851-866a-8ce3a65a2957", "9aa34544-3278-446f-a265-efcaa55f9c4a"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
649+
application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["349ed27a-eeda-4851-866a-8ce3a65a2957", "9aa34544-3278-446f-a265-efcaa55f9c4a"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
624650
"422":
625651
application/json: {"detail": "<value>"}
626652
list_workflows:
@@ -630,7 +656,7 @@ examples:
630656
sort_by: "id"
631657
responses:
632658
"200":
633-
application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}]
659+
application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}, {"name": "<value>", "subtype": "<value>", "type": "<value>"}]}]
634660
"422":
635661
application/json: {"detail": [{"loc": ["<value>", 864403], "msg": "<value>", "type": "<value>"}]}
636662
run_workflow:
@@ -652,13 +678,13 @@ examples:
652678
application/json: {}
653679
responses:
654680
"200":
655-
application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "<value>", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["0957eb7f-57d3-4705-bc49-03de6ad3794d", "a8b88099-9065-4458-a824-b37da7a9bccf", "a024c482-10ba-433a-9100-e6471e9d3db0"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
681+
application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "<value>", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["0957eb7f-57d3-4705-bc49-03de6ad3794d", "a8b88099-9065-4458-a824-b37da7a9bccf", "a024c482-10ba-433a-9100-e6471e9d3db0"], "status": "active", "workflow_nodes": [{"name": "<value>", "subtype": "<value>", "type": "<value>"}]}
656682
"422":
657683
application/json: {"detail": "<value>"}
658684
partition:
659685
speakeasy-default-partition:
660686
requestBody:
661-
multipart/form-data: {"chunking_strategy": "by_title", "combine_under_n_chars": null, "content_type": null, "coordinates": false, "encoding": null, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "gz_uncompressed_content_type": null, "hi_res_model_name": null, "include_orig_elements": null, "include_page_breaks": false, "include_slide_notes": true, "max_characters": null, "multipage_sections": true, "new_after_n_chars": null, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "pdfminer_char_margin": null, "pdfminer_line_margin": null, "pdfminer_line_overlap": null, "pdfminer_word_margin": null, "similarity_threshold": null, "split_pdf_allow_failed": false, "split_pdf_cache_tmp_data": false, "split_pdf_cache_tmp_data_dir": "<value>", "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "starting_page_number": null, "strategy": "auto", "table_ocr_agent": null, "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
687+
multipart/form-data: {"chunking_strategy": "by_title", "combine_under_n_chars": null, "content_type": null, "coordinates": false, "do_not_break_similarity_on_footer_header": false, "encoding": null, "files": {"": "{\"summary\":\"File to be partitioned\",\"externalValue\":\"https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf\"}"}, "gz_uncompressed_content_type": null, "hi_res_model_name": null, "include_orig_elements": null, "include_page_breaks": false, "include_slide_notes": true, "max_characters": null, "multipage_sections": true, "new_after_n_chars": null, "output_format": "application/json", "overlap": 0, "overlap_all": false, "pdf_infer_table_structure": true, "pdfminer_char_margin": null, "pdfminer_line_margin": null, "pdfminer_line_overlap": null, "pdfminer_word_margin": null, "similarity_threshold": null, "split_pdf_allow_failed": false, "split_pdf_cache_tmp_data": false, "split_pdf_cache_tmp_data_dir": "<value>", "split_pdf_concurrency_level": 5, "split_pdf_page": true, "split_pdf_page_range": [1, 10], "starting_page_number": null, "strategy": "auto", "table_ocr_agent": null, "unique_element_ids": false, "vlm_model": "gpt-4o", "vlm_model_provider": "openai", "xml_keep_tags": false}
662688
responses:
663689
"200":
664690
application/json: [{"type": "Title", "element_id": "6aa0ff22f91bbe7e26e8e25ca8052acd", "text": "LayoutParser: A Unified Toolkit for Deep Learning Based Document Image Analysis", "metadata": {"languages": ["eng"], "page_number": 1, "filename": "layout-parser-paper.pdf", "filetype": "application/pdf"}}]

.speakeasy/workflow.lock

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,20 @@ speakeasyVersion: 1.601.0
22
sources:
33
my-source:
44
sourceNamespace: my-source
5-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
6-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
5+
sourceRevisionDigest: sha256:bc4f7484e81f4693e54f4c871624f2145dd733cf70efda21172fac9c189cb2af
6+
sourceBlobDigest: sha256:d4d659ed65d585c988dcc3b9a169535b81da0ea9dfe3fd713cee128c5492b155
77
tags:
88
- latest
9-
- speakeasy-sdk-regen-1754698272
10-
- 1.1.45
9+
- speakeasy-sdk-regen-1763165440
10+
- 1.2.10
1111
targets:
1212
unstructured-python:
1313
source: my-source
1414
sourceNamespace: my-source
15-
sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e
16-
sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93
15+
sourceRevisionDigest: sha256:bc4f7484e81f4693e54f4c871624f2145dd733cf70efda21172fac9c189cb2af
16+
sourceBlobDigest: sha256:d4d659ed65d585c988dcc3b9a169535b81da0ea9dfe3fd713cee128c5492b155
1717
codeSamplesNamespace: my-source-code-samples
18-
codeSamplesRevisionDigest: sha256:a5e11972bfb15e43b7fcb2647b3a7b3e129e9303294f9110670280971b10780a
18+
codeSamplesRevisionDigest: sha256:6ca89a508cad0cd0db461e5c79a783cfd24e2dd11758e036778af7e2621f4352
1919
workflow:
2020
workflowVersion: 1.0.0
2121
speakeasyVersion: latest

README.md

Lines changed: 24 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,15 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an
118118
To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call:
119119
```python
120120
from unstructured_client import UnstructuredClient
121+
from unstructured_client.models import operations
121122
from unstructured_client.utils import BackoffStrategy, RetryConfig
122123

123124

124125
with UnstructuredClient() as uc_client:
125126

126-
res = uc_client.destinations.create_connection_check_destinations(request={
127+
res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity(
128+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
129+
), request={
127130
"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96",
128131
},
129132
RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False))
@@ -138,14 +141,17 @@ with UnstructuredClient() as uc_client:
138141
If you'd like to override the default retry strategy for all operations that support retries, you can use the `retry_config` optional parameter when initializing the SDK:
139142
```python
140143
from unstructured_client import UnstructuredClient
144+
from unstructured_client.models import operations
141145
from unstructured_client.utils import BackoffStrategy, RetryConfig
142146

143147

144148
with UnstructuredClient(
145149
retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False),
146150
) as uc_client:
147151

148-
res = uc_client.destinations.create_connection_check_destinations(request={
152+
res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity(
153+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
154+
), request={
149155
"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96",
150156
})
151157

@@ -175,14 +181,16 @@ with UnstructuredClient(
175181
### Example
176182
```python
177183
from unstructured_client import UnstructuredClient
178-
from unstructured_client.models import errors
184+
from unstructured_client.models import errors, operations
179185

180186

181187
with UnstructuredClient() as uc_client:
182188
res = None
183189
try:
184190

185-
res = uc_client.destinations.create_connection_check_destinations(request={
191+
res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity(
192+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
193+
), request={
186194
"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96",
187195
})
188196

@@ -329,11 +337,14 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u
329337
```python
330338
# Synchronous Example
331339
from unstructured_client import UnstructuredClient
340+
from unstructured_client.models import operations
332341

333342

334343
with UnstructuredClient() as uc_client:
335344

336-
res = uc_client.destinations.create_connection_check_destinations(request={
345+
res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity(
346+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
347+
), request={
337348
"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96",
338349
})
339350

@@ -350,12 +361,15 @@ The same SDK client can also be used to make asynchronous requests by importing
350361
# Asynchronous Example
351362
import asyncio
352363
from unstructured_client import UnstructuredClient
364+
from unstructured_client.models import operations
353365

354366
async def main():
355367

356368
async with UnstructuredClient() as uc_client:
357369

358-
res = await uc_client.destinations.create_connection_check_destinations_async(request={
370+
res = await uc_client.destinations.create_connection_check_destinations_async(security=operations.CreateConnectionCheckDestinationsSecurity(
371+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
372+
), request={
359373
"destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96",
360374
})
361375

@@ -439,11 +453,14 @@ Certain SDK methods accept file objects as part of a request body or multi-part
439453
440454
```python
441455
from unstructured_client import UnstructuredClient
456+
from unstructured_client.models import operations
442457

443458

444459
with UnstructuredClient() as uc_client:
445460

446-
res = uc_client.workflows.run_workflow(request={
461+
res = uc_client.workflows.run_workflow(security=operations.RunWorkflowSecurity(
462+
http_bearer="<YOUR_BEARER_TOKEN_HERE>",
463+
), request={
447464
"workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013",
448465
})
449466

0 commit comments

Comments
 (0)