diff --git a/.gitignore b/.gitignore index 14e788bb..51b89173 100755 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ +.env.local **/__pycache__/ **/.speakeasy/temp/ **/.speakeasy/logs/ diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 578a0905..b00890f5 100755 --- a/.speakeasy/gen.lock +++ b/.speakeasy/gen.lock @@ -1,12 +1,12 @@ lockVersion: 2.0.0 id: 8b5fa338-9106-4734-abf0-e30d67044a90 management: - docChecksum: 8038a5b9e376d44bad2fd4c117922954 - docVersion: 1.1.45 + docChecksum: 7a349f081ce7703ab46bee35b64feb32 + docVersion: 1.2.10 speakeasyVersion: 1.601.0 generationVersion: 2.680.0 - releaseVersion: 0.42.3 - configChecksum: 3d02dd7ca437781b3d721fab5d7b9adc + releaseVersion: 0.42.5 + configChecksum: f65c47c497403c61234987cadd6fbbb9 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -26,6 +26,7 @@ features: globalSecurityCallbacks: 1.0.0 globalSecurityFlattening: 1.0.0 globalServerURLs: 3.1.1 + methodSecurity: 3.0.1 multipartFileContentType: 1.0.0 nameOverrides: 3.0.1 nullables: 1.0.1 @@ -45,58 +46,84 @@ generatedFiles: - docs/models/errors/servererror.md - docs/models/operations/canceljobrequest.md - docs/models/operations/canceljobresponse.md + - docs/models/operations/canceljobsecurity.md - docs/models/operations/createconnectioncheckdestinationsrequest.md - docs/models/operations/createconnectioncheckdestinationsresponse.md + - docs/models/operations/createconnectioncheckdestinationssecurity.md - docs/models/operations/createconnectionchecksourcesrequest.md - docs/models/operations/createconnectionchecksourcesresponse.md + - docs/models/operations/createconnectionchecksourcessecurity.md - docs/models/operations/createdestinationrequest.md - docs/models/operations/createdestinationresponse.md + - docs/models/operations/createdestinationsecurity.md - docs/models/operations/createsourcerequest.md - docs/models/operations/createsourceresponse.md + - docs/models/operations/createsourcesecurity.md - docs/models/operations/createworkflowrequest.md - docs/models/operations/createworkflowresponse.md + - docs/models/operations/createworkflowsecurity.md - docs/models/operations/deletedestinationrequest.md - docs/models/operations/deletedestinationresponse.md + - docs/models/operations/deletedestinationsecurity.md - docs/models/operations/deletesourcerequest.md - docs/models/operations/deletesourceresponse.md + - docs/models/operations/deletesourcesecurity.md - docs/models/operations/deleteworkflowrequest.md - docs/models/operations/deleteworkflowresponse.md + - docs/models/operations/deleteworkflowsecurity.md - docs/models/operations/downloadjoboutputrequest.md - docs/models/operations/downloadjoboutputresponse.md + - docs/models/operations/downloadjoboutputsecurity.md - docs/models/operations/getconnectioncheckdestinationsrequest.md - docs/models/operations/getconnectioncheckdestinationsresponse.md + - docs/models/operations/getconnectioncheckdestinationssecurity.md - docs/models/operations/getconnectionchecksourcesrequest.md - docs/models/operations/getconnectionchecksourcesresponse.md + - docs/models/operations/getconnectionchecksourcessecurity.md - docs/models/operations/getdestinationrequest.md - docs/models/operations/getdestinationresponse.md + - docs/models/operations/getdestinationsecurity.md - docs/models/operations/getjobdetailsrequest.md - docs/models/operations/getjobdetailsresponse.md + - docs/models/operations/getjobdetailssecurity.md - docs/models/operations/getjobfailedfilesrequest.md - docs/models/operations/getjobfailedfilesresponse.md + - docs/models/operations/getjobfailedfilessecurity.md - docs/models/operations/getjobrequest.md - docs/models/operations/getjobresponse.md + - docs/models/operations/getjobsecurity.md - docs/models/operations/getsourcerequest.md - docs/models/operations/getsourceresponse.md + - docs/models/operations/getsourcesecurity.md - docs/models/operations/getworkflowrequest.md - docs/models/operations/getworkflowresponse.md + - docs/models/operations/getworkflowsecurity.md - docs/models/operations/listdestinationsrequest.md - docs/models/operations/listdestinationsresponse.md + - docs/models/operations/listdestinationssecurity.md - docs/models/operations/listjobsrequest.md - docs/models/operations/listjobsresponse.md + - docs/models/operations/listjobssecurity.md - docs/models/operations/listsourcesrequest.md - docs/models/operations/listsourcesresponse.md + - docs/models/operations/listsourcessecurity.md - docs/models/operations/listworkflowsrequest.md - docs/models/operations/listworkflowsresponse.md + - docs/models/operations/listworkflowssecurity.md - docs/models/operations/partitionrequest.md - docs/models/operations/partitionresponse.md - docs/models/operations/runworkflowrequest.md - docs/models/operations/runworkflowresponse.md + - docs/models/operations/runworkflowsecurity.md - docs/models/operations/updatedestinationrequest.md - docs/models/operations/updatedestinationresponse.md + - docs/models/operations/updatedestinationsecurity.md - docs/models/operations/updatesourcerequest.md - docs/models/operations/updatesourceresponse.md + - docs/models/operations/updatesourcesecurity.md - docs/models/operations/updateworkflowrequest.md - docs/models/operations/updateworkflowresponse.md + - docs/models/operations/updateworkflowsecurity.md - docs/models/shared/astradbconnectorconfig.md - docs/models/shared/astradbconnectorconfiginput.md - docs/models/shared/azureaisearchconnectorconfig.md @@ -212,7 +239,6 @@ generatedFiles: - docs/models/shared/updateworkflow.md - docs/models/shared/updateworkflowschedule.md - docs/models/shared/validationerror.md - - docs/models/shared/vlmmodel.md - docs/models/shared/vlmmodelprovider.md - docs/models/shared/weaviatedestinationconnectorconfig.md - docs/models/shared/weaviatedestinationconnectorconfiginput.md @@ -600,7 +626,7 @@ examples: application/json: {"name": "", "workflow_type": "advanced"} responses: "200": - application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} + application/json: {"created_at": "2023-01-15T13:52:58.634Z", "destinations": [], "id": "80c8c72f-101a-4a39-974b-49aa299e80d3", "name": "", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["47678eb0-4958-4341-ad66-b1b822c1deb9"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": ""} delete_workflow: @@ -620,7 +646,7 @@ examples: workflow_id: "d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76" responses: "200": - application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["349ed27a-eeda-4851-866a-8ce3a65a2957", "9aa34544-3278-446f-a265-efcaa55f9c4a"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} + application/json: {"created_at": "2024-01-22T17:42:53.375Z", "destinations": ["624abbf1-dbce-4fe0-8d3f-0673956fc10e"], "id": "840c33c3-f30c-4908-9688-2682ed8eea3f", "name": "", "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": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": ""} list_workflows: @@ -630,7 +656,7 @@ examples: sort_by: "id" responses: "200": - application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]}] + application/json: [{"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]}, {"created_at": "2023-09-02T04:21:23.162Z", "destinations": [], "id": "1e4c63cf-6a6b-407b-b993-b2bc8b3bcefc", "name": "", "reprocess_all": false, "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["2e12d926-4caf-4cce-8b5c-3e16722c1c84"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]}] "422": application/json: {"detail": [{"loc": ["", 864403], "msg": "", "type": ""}]} run_workflow: @@ -652,13 +678,13 @@ examples: application/json: {} responses: "200": - application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "", "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": "", "subtype": "", "type": ""}]} + application/json: {"created_at": "2025-01-11T03:06:48.390Z", "destinations": [], "id": "88fd9cfe-ed29-4701-9d1f-8f26d4ea88d3", "name": "", "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": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": ""} partition: speakeasy-default-partition: requestBody: - 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": "", "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} + 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": "", "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} responses: "200": 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"}}] diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index ca7f6466..c5ebe77f 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.601.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e - sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93 + sourceRevisionDigest: sha256:bc4f7484e81f4693e54f4c871624f2145dd733cf70efda21172fac9c189cb2af + sourceBlobDigest: sha256:d4d659ed65d585c988dcc3b9a169535b81da0ea9dfe3fd713cee128c5492b155 tags: - latest - - speakeasy-sdk-regen-1754698272 - - 1.1.45 + - speakeasy-sdk-regen-1763165440 + - 1.2.10 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:8165f715321cd34bcebb6c9bb0734a1791777229937787b8e13707d519b05a5e - sourceBlobDigest: sha256:b4f8d9a6b0f4245c50b5e53298343df470978417248fa3988aeeb84ec9200c93 + sourceRevisionDigest: sha256:bc4f7484e81f4693e54f4c871624f2145dd733cf70efda21172fac9c189cb2af + sourceBlobDigest: sha256:d4d659ed65d585c988dcc3b9a169535b81da0ea9dfe3fd713cee128c5492b155 codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:a5e11972bfb15e43b7fcb2647b3a7b3e129e9303294f9110670280971b10780a + codeSamplesRevisionDigest: sha256:6ca89a508cad0cd0db461e5c79a783cfd24e2dd11758e036778af7e2621f4352 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index da29a17a..75ac4de1 100644 --- a/README.md +++ b/README.md @@ -118,12 +118,15 @@ Some of the endpoints in this SDK support retries. If you use the SDK without an To change the default retry strategy for a single API call, simply provide a `RetryConfig` object to the call: ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations from unstructured_client.utils import BackoffStrategy, RetryConfig with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) @@ -138,6 +141,7 @@ with UnstructuredClient() as uc_client: 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: ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations from unstructured_client.utils import BackoffStrategy, RetryConfig @@ -145,7 +149,9 @@ with UnstructuredClient( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), ) as uc_client: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -175,14 +181,16 @@ with UnstructuredClient( ### Example ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import errors +from unstructured_client.models import errors, operations with UnstructuredClient() as uc_client: res = None try: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -329,11 +337,14 @@ Generally, the SDK will work well with most IDEs out of the box. However, when u ```python # Synchronous Example from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -350,12 +361,15 @@ The same SDK client can also be used to make asynchronous requests by importing # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient +from unstructured_client.models import operations async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.create_connection_check_destinations_async(request={ + res = await uc_client.destinations.create_connection_check_destinations_async(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -439,11 +453,14 @@ Certain SDK methods accept file objects as part of a request body or multi-part ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.run_workflow(request={ + res = uc_client.workflows.run_workflow(security=operations.RunWorkflowSecurity( + http_bearer="", + ), request={ "workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013", }) diff --git a/RELEASES.md b/RELEASES.md index adc5b192..ee46d26d 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1130,3 +1130,14 @@ Based on: - [python v0.42.3] . ### Releases - [PyPI v0.42.4] https://pypi.org/project/unstructured-client/0.42.4 - . + + +## 2025-11-22 00:10:13 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.42.5] . +### Releases +- [PyPI v0.42.5] https://pypi.org/project/unstructured-client/0.42.5 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index 43ed3688..64c38976 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,11 +2,14 @@ ```python # Synchronous Example from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -23,12 +26,15 @@ The same SDK client can also be used to make asynchronous requests by importing # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient +from unstructured_client.models import operations async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.create_connection_check_destinations_async(request={ + res = await uc_client.destinations.create_connection_check_destinations_async(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) diff --git a/codeSamples.yaml b/codeSamples.yaml index f5eda8f2..5091e74d 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -8,160 +8,160 @@ actions: "x-codeSamples": - "lang": "python" "label": "list_destinations" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.list_destinations(request={})\n\n assert res.response_list_destinations is not None\n\n # Handle response\n print(res.response_list_destinations)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.list_destinations(security=operations.ListDestinationsSecurity(\n http_bearer=\"\",\n ), request={})\n\n assert res.response_list_destinations is not None\n\n # Handle response\n print(res.response_list_destinations)" - target: $["paths"]["/api/v1/destinations/"]["post"] update: "x-codeSamples": - "lang": "python" "label": "create_destination" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request={\n \"create_destination_connector\": {\n \"name\": \"\",\n \"type\": shared.DestinationConnectorType.MOTHERDUCK,\n \"config\": {\n \"index_name\": \"\",\n \"api_key\": \"\",\n \"namespace\": \"\",\n \"batch_size\": 50,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(security=operations.CreateDestinationSecurity(\n http_bearer=\"\",\n ), request={\n \"create_destination_connector\": {\n \"name\": \"\",\n \"type\": shared.DestinationConnectorType.MOTHERDUCK,\n \"config\": {\n \"index_name\": \"\",\n \"api_key\": \"\",\n \"namespace\": \"\",\n \"batch_size\": 50,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" - target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"] update: "x-codeSamples": - "lang": "python" "label": "delete_destination" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.delete_destination(request={\n \"destination_id\": \"f50b6b0c-1177-4edb-ae10-68199cd00ba6\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.delete_destination(security=operations.DeleteDestinationSecurity(\n http_bearer=\"\",\n ), request={\n \"destination_id\": \"f50b6b0c-1177-4edb-ae10-68199cd00ba6\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/destinations/{destination_id}"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_destination" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_destination(request={\n \"destination_id\": \"6352107c-44bd-4a20-a286-de73a4d9c9bd\",\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_destination(security=operations.GetDestinationSecurity(\n http_bearer=\"\",\n ), request={\n \"destination_id\": \"6352107c-44bd-4a20-a286-de73a4d9c9bd\",\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" - target: $["paths"]["/api/v1/destinations/{destination_id}"]["put"] update: "x-codeSamples": - "lang": "python" "label": "update_destination" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.update_destination(request={\n \"destination_id\": \"9726962d-9d1e-4f84-8787-c7313d183927\",\n \"update_destination_connector\": {\n \"config\": {\n \"bootstrap_servers\": \"\",\n \"port\": 9092,\n \"topic\": \"\",\n \"kafka_api_key\": \"\",\n \"secret\": \"\",\n \"batch_size\": 100,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.update_destination(security=operations.UpdateDestinationSecurity(\n http_bearer=\"\",\n ), request={\n \"destination_id\": \"9726962d-9d1e-4f84-8787-c7313d183927\",\n \"update_destination_connector\": {\n \"config\": {\n \"bootstrap_servers\": \"\",\n \"port\": 9092,\n \"topic\": \"\",\n \"kafka_api_key\": \"\",\n \"secret\": \"\",\n \"batch_size\": 100,\n },\n },\n })\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" - target: $["paths"]["/api/v1/destinations/{destination_id}/connection-check"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_connection_check_destinations" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_connection_check_destinations(request={\n \"destination_id\": \"c95687a3-239f-485c-946b-4c8fe314ef82\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_connection_check_destinations(security=operations.GetConnectionCheckDestinationsSecurity(\n http_bearer=\"\",\n ), request={\n \"destination_id\": \"c95687a3-239f-485c-946b-4c8fe314ef82\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" - target: $["paths"]["/api/v1/destinations/{destination_id}/connection-check"]["post"] update: "x-codeSamples": - "lang": "python" "label": "create_connection_check_destinations" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_connection_check_destinations(request={\n \"destination_id\": \"cb9e35c1-0b04-4d98-83fa-fa6241323f96\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity(\n http_bearer=\"\",\n ), request={\n \"destination_id\": \"cb9e35c1-0b04-4d98-83fa-fa6241323f96\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" - target: $["paths"]["/api/v1/jobs/"]["get"] update: "x-codeSamples": - "lang": "python" "label": "list_jobs" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.list_jobs(request={})\n\n assert res.response_list_jobs is not None\n\n # Handle response\n print(res.response_list_jobs)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.list_jobs(security=operations.ListJobsSecurity(\n http_bearer=\"\",\n ), request={})\n\n assert res.response_list_jobs is not None\n\n # Handle response\n print(res.response_list_jobs)" - target: $["paths"]["/api/v1/jobs/{job_id}"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_job" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job(request={\n \"job_id\": \"d95a05b3-3446-4f3d-806c-904b6a7ba40a\",\n })\n\n assert res.job_information is not None\n\n # Handle response\n print(res.job_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job(security=operations.GetJobSecurity(\n http_bearer=\"\",\n ), request={\n \"job_id\": \"d95a05b3-3446-4f3d-806c-904b6a7ba40a\",\n })\n\n assert res.job_information is not None\n\n # Handle response\n print(res.job_information)" - target: $["paths"]["/api/v1/jobs/{job_id}/cancel"]["post"] update: "x-codeSamples": - "lang": "python" "label": "cancel_job" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.cancel_job(request={\n \"job_id\": \"2fafd129-04f3-4201-a0e7-fe33e937b367\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.cancel_job(security=operations.CancelJobSecurity(\n http_bearer=\"\",\n ), request={\n \"job_id\": \"2fafd129-04f3-4201-a0e7-fe33e937b367\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/jobs/{job_id}/details"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_job_details" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_details(request={\n \"job_id\": \"14cc95f9-4174-46b3-81f5-7089b87a4787\",\n })\n\n assert res.job_details is not None\n\n # Handle response\n print(res.job_details)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_details(security=operations.GetJobDetailsSecurity(\n http_bearer=\"\",\n ), request={\n \"job_id\": \"14cc95f9-4174-46b3-81f5-7089b87a4787\",\n })\n\n assert res.job_details is not None\n\n # Handle response\n print(res.job_details)" - target: $["paths"]["/api/v1/jobs/{job_id}/download"]["get"] update: "x-codeSamples": - "lang": "python" "label": "download_job_output" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_job_output(request={\n \"job_id\": \"06d1b7b8-8642-4793-b37e-e45d97d53bc3\",\n \"file_id\": \"\",\n \"node_id\": \"7c8f2aa4-da13-4a04-a98d-0204ea55681e\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_job_output(security=operations.DownloadJobOutputSecurity(\n http_bearer=\"\",\n ), request={\n \"job_id\": \"06d1b7b8-8642-4793-b37e-e45d97d53bc3\",\n \"file_id\": \"\",\n \"node_id\": \"7c8f2aa4-da13-4a04-a98d-0204ea55681e\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/jobs/{job_id}/failed-files"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_job_failed_files" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_failed_files(request={\n \"job_id\": \"ad262041-3530-40a9-9f83-b004e947a203\",\n })\n\n assert res.job_failed_files is not None\n\n # Handle response\n print(res.job_failed_files)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.get_job_failed_files(security=operations.GetJobFailedFilesSecurity(\n http_bearer=\"\",\n ), request={\n \"job_id\": \"ad262041-3530-40a9-9f83-b004e947a203\",\n })\n\n assert res.job_failed_files is not None\n\n # Handle response\n print(res.job_failed_files)" - target: $["paths"]["/api/v1/sources/"]["get"] update: "x-codeSamples": - "lang": "python" "label": "list_sources" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.list_sources(request={})\n\n assert res.response_list_sources is not None\n\n # Handle response\n print(res.response_list_sources)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.list_sources(security=operations.ListSourcesSecurity(\n http_bearer=\"\",\n ), request={})\n\n assert res.response_list_sources is not None\n\n # Handle response\n print(res.response_list_sources)" - target: $["paths"]["/api/v1/sources/"]["post"] update: "x-codeSamples": - "lang": "python" "label": "create_source" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"\",\n \"type\": shared.SourceConnectorType.DROPBOX,\n \"config\": {\n \"remote_url\": \"https://ugly-ribbon.info\",\n \"recursive\": True,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(security=operations.CreateSourceSecurity(\n http_bearer=\"\",\n ), request={\n \"create_source_connector\": {\n \"name\": \"\",\n \"type\": shared.SourceConnectorType.DROPBOX,\n \"config\": {\n \"remote_url\": \"https://ugly-ribbon.info\",\n \"recursive\": True,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/sources/{source_id}"]["delete"] update: "x-codeSamples": - "lang": "python" "label": "delete_source" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.delete_source(request={\n \"source_id\": \"296c4009-7b81-4144-9c7c-e058204aeb93\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.delete_source(security=operations.DeleteSourceSecurity(\n http_bearer=\"\",\n ), request={\n \"source_id\": \"296c4009-7b81-4144-9c7c-e058204aeb93\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/sources/{source_id}"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_source" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_source(request={\n \"source_id\": \"df7d5ab1-bb15-4f1a-8dc0-c92a9a28a585\",\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_source(security=operations.GetSourceSecurity(\n http_bearer=\"\",\n ), request={\n \"source_id\": \"df7d5ab1-bb15-4f1a-8dc0-c92a9a28a585\",\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/sources/{source_id}"]["put"] update: "x-codeSamples": - "lang": "python" "label": "update_source" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"6ddfe201-42c1-4097-a271-1fc2801d1903\",\n \"update_source_connector\": {\n \"config\": {\n \"bucket\": \"\",\n \"connection_string\": \"\",\n \"batch_size\": 615322,\n \"username\": \"Lue.Murphy87\",\n \"password\": \"qfyDYveMwvwoQEV\",\n \"collection_id\": \"\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(security=operations.UpdateSourceSecurity(\n http_bearer=\"\",\n ), request={\n \"source_id\": \"6ddfe201-42c1-4097-a271-1fc2801d1903\",\n \"update_source_connector\": {\n \"config\": {\n \"bucket\": \"\",\n \"connection_string\": \"\",\n \"batch_size\": 615322,\n \"username\": \"Lue.Murphy87\",\n \"password\": \"qfyDYveMwvwoQEV\",\n \"collection_id\": \"\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/sources/{source_id}/connection-check"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_connection_check_sources" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_connection_check_sources(request={\n \"source_id\": \"4df23b66-dae2-44ea-8dd3-329184d5644a\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_connection_check_sources(security=operations.GetConnectionCheckSourcesSecurity(\n http_bearer=\"\",\n ), request={\n \"source_id\": \"4df23b66-dae2-44ea-8dd3-329184d5644a\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" - target: $["paths"]["/api/v1/sources/{source_id}/connection-check"]["post"] update: "x-codeSamples": - "lang": "python" "label": "create_connection_check_sources" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_connection_check_sources(request={\n \"source_id\": \"8d49e3f2-3e6d-4973-bc61-292af66829d7\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_connection_check_sources(security=operations.CreateConnectionCheckSourcesSecurity(\n http_bearer=\"\",\n ), request={\n \"source_id\": \"8d49e3f2-3e6d-4973-bc61-292af66829d7\",\n })\n\n assert res.dag_node_connection_check is not None\n\n # Handle response\n print(res.dag_node_connection_check)" - target: $["paths"]["/api/v1/workflows/"]["get"] update: "x-codeSamples": - "lang": "python" "label": "list_workflows" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.list_workflows(request={})\n\n assert res.response_list_workflows is not None\n\n # Handle response\n print(res.response_list_workflows)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.list_workflows(security=operations.ListWorkflowsSecurity(\n http_bearer=\"\",\n ), request={})\n\n assert res.response_list_workflows is not None\n\n # Handle response\n print(res.response_list_workflows)" - target: $["paths"]["/api/v1/workflows/"]["post"] update: "x-codeSamples": - "lang": "python" "label": "create_workflow" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.create_workflow(request={\n \"create_workflow\": {\n \"name\": \"\",\n \"workflow_type\": shared.WorkflowType.ADVANCED,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.create_workflow(security=operations.CreateWorkflowSecurity(\n http_bearer=\"\",\n ), request={\n \"create_workflow\": {\n \"name\": \"\",\n \"workflow_type\": shared.WorkflowType.ADVANCED,\n },\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" - target: $["paths"]["/api/v1/workflows/{workflow_id}"]["delete"] update: "x-codeSamples": - "lang": "python" "label": "delete_workflow" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.delete_workflow(request={\n \"workflow_id\": \"3e61b8a6-32b6-47cf-bce7-6d13357b30eb\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.delete_workflow(security=operations.DeleteWorkflowSecurity(\n http_bearer=\"\",\n ), request={\n \"workflow_id\": \"3e61b8a6-32b6-47cf-bce7-6d13357b30eb\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/workflows/{workflow_id}"]["get"] update: "x-codeSamples": - "lang": "python" "label": "get_workflow" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.get_workflow(request={\n \"workflow_id\": \"d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76\",\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.get_workflow(security=operations.GetWorkflowSecurity(\n http_bearer=\"\",\n ), request={\n \"workflow_id\": \"d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76\",\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" - target: $["paths"]["/api/v1/workflows/{workflow_id}"]["put"] update: "x-codeSamples": - "lang": "python" "label": "update_workflow" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.update_workflow(request={\n \"workflow_id\": \"b9b7e688-353f-4ff2-bcd7-a49b5fa5f6c7\",\n \"update_workflow\": {},\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.update_workflow(security=operations.UpdateWorkflowSecurity(\n http_bearer=\"\",\n ), request={\n \"workflow_id\": \"b9b7e688-353f-4ff2-bcd7-a49b5fa5f6c7\",\n \"update_workflow\": {},\n })\n\n assert res.workflow_information is not None\n\n # Handle response\n print(res.workflow_information)" - target: $["paths"]["/api/v1/workflows/{workflow_id}/run"]["post"] update: "x-codeSamples": - "lang": "python" "label": "run_workflow" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.run_workflow(request={\n \"workflow_id\": \"e7054f23-ce92-4bf1-a1d7-7cf9cb14d013\",\n })\n\n assert res.job_information is not None\n\n # Handle response\n print(res.job_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.workflows.run_workflow(security=operations.RunWorkflowSecurity(\n http_bearer=\"\",\n ), request={\n \"workflow_id\": \"e7054f23-ce92-4bf1-a1d7-7cf9cb14d013\",\n })\n\n assert res.job_information is not None\n\n # Handle response\n print(res.job_information)" - target: $["paths"]["/general/v0/general"]["post"] update: "x-codeSamples": - "lang": "python" "label": "partition" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() 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 \"strategy\": shared.Strategy.AUTO,\n \"vlm_model_provider\": shared.VLMModelProvider.OPENAI,\n \"vlm_model\": shared.VLMModel.GPT_4O,\n \"chunking_strategy\": \"by_title\",\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n \"split_pdf_cache_tmp_data_dir\": \"\",\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() 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 \"strategy\": shared.Strategy.AUTO,\n \"vlm_model_provider\": shared.VLMModelProvider.OPENAI,\n \"vlm_model\": \"gpt-4o\",\n \"chunking_strategy\": \"by_title\",\n \"split_pdf_page_range\": [\n 1,\n 10,\n ],\n \"split_pdf_cache_tmp_data_dir\": \"\",\n },\n })\n\n assert res.elements is not None\n\n # Handle response\n print(res.elements)" diff --git a/docs/models/operations/canceljobsecurity.md b/docs/models/operations/canceljobsecurity.md new file mode 100644 index 00000000..c3ee6068 --- /dev/null +++ b/docs/models/operations/canceljobsecurity.md @@ -0,0 +1,8 @@ +# CancelJobSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createconnectioncheckdestinationssecurity.md b/docs/models/operations/createconnectioncheckdestinationssecurity.md new file mode 100644 index 00000000..b43491e1 --- /dev/null +++ b/docs/models/operations/createconnectioncheckdestinationssecurity.md @@ -0,0 +1,8 @@ +# CreateConnectionCheckDestinationsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createconnectionchecksourcessecurity.md b/docs/models/operations/createconnectionchecksourcessecurity.md new file mode 100644 index 00000000..b269019b --- /dev/null +++ b/docs/models/operations/createconnectionchecksourcessecurity.md @@ -0,0 +1,8 @@ +# CreateConnectionCheckSourcesSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createdestinationsecurity.md b/docs/models/operations/createdestinationsecurity.md new file mode 100644 index 00000000..141b6f9d --- /dev/null +++ b/docs/models/operations/createdestinationsecurity.md @@ -0,0 +1,8 @@ +# CreateDestinationSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createsourcesecurity.md b/docs/models/operations/createsourcesecurity.md new file mode 100644 index 00000000..37d70182 --- /dev/null +++ b/docs/models/operations/createsourcesecurity.md @@ -0,0 +1,8 @@ +# CreateSourceSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/createworkflowsecurity.md b/docs/models/operations/createworkflowsecurity.md new file mode 100644 index 00000000..9dad4510 --- /dev/null +++ b/docs/models/operations/createworkflowsecurity.md @@ -0,0 +1,8 @@ +# CreateWorkflowSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletedestinationsecurity.md b/docs/models/operations/deletedestinationsecurity.md new file mode 100644 index 00000000..70db7723 --- /dev/null +++ b/docs/models/operations/deletedestinationsecurity.md @@ -0,0 +1,8 @@ +# DeleteDestinationSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deletesourcesecurity.md b/docs/models/operations/deletesourcesecurity.md new file mode 100644 index 00000000..73de799a --- /dev/null +++ b/docs/models/operations/deletesourcesecurity.md @@ -0,0 +1,8 @@ +# DeleteSourceSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/deleteworkflowsecurity.md b/docs/models/operations/deleteworkflowsecurity.md new file mode 100644 index 00000000..fefa9641 --- /dev/null +++ b/docs/models/operations/deleteworkflowsecurity.md @@ -0,0 +1,8 @@ +# DeleteWorkflowSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/downloadjoboutputsecurity.md b/docs/models/operations/downloadjoboutputsecurity.md new file mode 100644 index 00000000..bfbc6dd3 --- /dev/null +++ b/docs/models/operations/downloadjoboutputsecurity.md @@ -0,0 +1,8 @@ +# DownloadJobOutputSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getconnectioncheckdestinationssecurity.md b/docs/models/operations/getconnectioncheckdestinationssecurity.md new file mode 100644 index 00000000..567e4473 --- /dev/null +++ b/docs/models/operations/getconnectioncheckdestinationssecurity.md @@ -0,0 +1,8 @@ +# GetConnectionCheckDestinationsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getconnectionchecksourcessecurity.md b/docs/models/operations/getconnectionchecksourcessecurity.md new file mode 100644 index 00000000..594f6b6b --- /dev/null +++ b/docs/models/operations/getconnectionchecksourcessecurity.md @@ -0,0 +1,8 @@ +# GetConnectionCheckSourcesSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdestinationsecurity.md b/docs/models/operations/getdestinationsecurity.md new file mode 100644 index 00000000..3a894e64 --- /dev/null +++ b/docs/models/operations/getdestinationsecurity.md @@ -0,0 +1,8 @@ +# GetDestinationSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getjobdetailssecurity.md b/docs/models/operations/getjobdetailssecurity.md new file mode 100644 index 00000000..af55e7f8 --- /dev/null +++ b/docs/models/operations/getjobdetailssecurity.md @@ -0,0 +1,8 @@ +# GetJobDetailsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getjobfailedfilessecurity.md b/docs/models/operations/getjobfailedfilessecurity.md new file mode 100644 index 00000000..e1d1cf44 --- /dev/null +++ b/docs/models/operations/getjobfailedfilessecurity.md @@ -0,0 +1,8 @@ +# GetJobFailedFilesSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getjobsecurity.md b/docs/models/operations/getjobsecurity.md new file mode 100644 index 00000000..f48c85a8 --- /dev/null +++ b/docs/models/operations/getjobsecurity.md @@ -0,0 +1,8 @@ +# GetJobSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getsourcesecurity.md b/docs/models/operations/getsourcesecurity.md new file mode 100644 index 00000000..8a2bdafe --- /dev/null +++ b/docs/models/operations/getsourcesecurity.md @@ -0,0 +1,8 @@ +# GetSourceSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getworkflowsecurity.md b/docs/models/operations/getworkflowsecurity.md new file mode 100644 index 00000000..ba2fbc6d --- /dev/null +++ b/docs/models/operations/getworkflowsecurity.md @@ -0,0 +1,8 @@ +# GetWorkflowSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listdestinationssecurity.md b/docs/models/operations/listdestinationssecurity.md new file mode 100644 index 00000000..621eebe8 --- /dev/null +++ b/docs/models/operations/listdestinationssecurity.md @@ -0,0 +1,8 @@ +# ListDestinationsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listjobssecurity.md b/docs/models/operations/listjobssecurity.md new file mode 100644 index 00000000..cc823278 --- /dev/null +++ b/docs/models/operations/listjobssecurity.md @@ -0,0 +1,8 @@ +# ListJobsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listsourcessecurity.md b/docs/models/operations/listsourcessecurity.md new file mode 100644 index 00000000..ee7a1a64 --- /dev/null +++ b/docs/models/operations/listsourcessecurity.md @@ -0,0 +1,8 @@ +# ListSourcesSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/listworkflowssecurity.md b/docs/models/operations/listworkflowssecurity.md new file mode 100644 index 00000000..1eab3848 --- /dev/null +++ b/docs/models/operations/listworkflowssecurity.md @@ -0,0 +1,8 @@ +# ListWorkflowsSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/runworkflowsecurity.md b/docs/models/operations/runworkflowsecurity.md new file mode 100644 index 00000000..2e194023 --- /dev/null +++ b/docs/models/operations/runworkflowsecurity.md @@ -0,0 +1,8 @@ +# RunWorkflowSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatedestinationsecurity.md b/docs/models/operations/updatedestinationsecurity.md new file mode 100644 index 00000000..90337f1e --- /dev/null +++ b/docs/models/operations/updatedestinationsecurity.md @@ -0,0 +1,8 @@ +# UpdateDestinationSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updatesourcesecurity.md b/docs/models/operations/updatesourcesecurity.md new file mode 100644 index 00000000..f3567f4f --- /dev/null +++ b/docs/models/operations/updatesourcesecurity.md @@ -0,0 +1,8 @@ +# UpdateSourceSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/operations/updateworkflowsecurity.md b/docs/models/operations/updateworkflowsecurity.md new file mode 100644 index 00000000..58c9adfc --- /dev/null +++ b/docs/models/operations/updateworkflowsecurity.md @@ -0,0 +1,8 @@ +# UpdateWorkflowSecurity + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `http_bearer` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/partitionparameters.md b/docs/models/shared/partitionparameters.md index 75e52e5e..7202480f 100644 --- a/docs/models/shared/partitionparameters.md +++ b/docs/models/shared/partitionparameters.md @@ -9,6 +9,7 @@ | `combine_under_n_chars` | *OptionalNullable[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | | | `content_type` | *OptionalNullable[str]* | :heavy_minus_sign: | A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype. | | | `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | | +| `do_not_break_similarity_on_footer_header` | *Optional[bool]* | :heavy_minus_sign: | When `True`, footer, header, and page number are always considered similar to the text before them for chunk by similarity method. This allows chunk by similarity to connect contents across page better. | | | `encoding` | *OptionalNullable[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | | | `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. | | | `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | @@ -42,6 +43,6 @@ | `strategy` | [Optional[shared.Strategy]](../../models/shared/strategy.md) | :heavy_minus_sign: | The strategy to use for partitioning PDF/image. Options are fast, hi_res, auto. Default: hi_res | auto | | `table_ocr_agent` | *OptionalNullable[str]* | :heavy_minus_sign: | The OCR agent to use for table ocr inference. | | | `unique_element_ids` | *Optional[bool]* | :heavy_minus_sign: | When `True`, assign UUIDs to element IDs, which guarantees their uniqueness (useful when using them as primary keys in database). Otherwise a SHA-256 of element text is used. Default: `False` | | -| `vlm_model` | [Optional[shared.VLMModel]](../../models/shared/vlmmodel.md) | :heavy_minus_sign: | The VLM Model to use. | gpt-4o | +| `vlm_model` | *Optional[str]* | :heavy_minus_sign: | The VLM Model to use. | gpt-4o | | `vlm_model_provider` | [Optional[shared.VLMModelProvider]](../../models/shared/vlmmodelprovider.md) | :heavy_minus_sign: | The VLM Model provider to use. | openai | | `xml_keep_tags` | *Optional[bool]* | :heavy_minus_sign: | If `True`, will retain the XML tags in the output. Otherwise it will simply extract the text from within the tags. Only applies to XML documents. | | \ No newline at end of file diff --git a/docs/models/shared/snowflakedestinationconnectorconfig.md b/docs/models/shared/snowflakedestinationconnectorconfig.md index c2a06ae2..775df4cd 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfig.md +++ b/docs/models/shared/snowflakedestinationconnectorconfig.md @@ -13,6 +13,6 @@ | `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `record_id_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `role` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | | `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | | `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakedestinationconnectorconfiginput.md b/docs/models/shared/snowflakedestinationconnectorconfiginput.md index 1948fc3d..bc116e55 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfiginput.md +++ b/docs/models/shared/snowflakedestinationconnectorconfiginput.md @@ -13,6 +13,6 @@ | `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `record_id_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `role` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | | `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | | `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakesourceconnectorconfig.md b/docs/models/shared/snowflakesourceconnectorconfig.md index 0b996f6c..46642d67 100644 --- a/docs/models/shared/snowflakesourceconnectorconfig.md +++ b/docs/models/shared/snowflakesourceconnectorconfig.md @@ -14,6 +14,6 @@ | `password` | *str* | :heavy_check_mark: | N/A | | `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `role` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | | `table_name` | *str* | :heavy_check_mark: | N/A | | `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakesourceconnectorconfiginput.md b/docs/models/shared/snowflakesourceconnectorconfiginput.md index 4c65a507..adae4fec 100644 --- a/docs/models/shared/snowflakesourceconnectorconfiginput.md +++ b/docs/models/shared/snowflakesourceconnectorconfiginput.md @@ -14,6 +14,6 @@ | `password` | *str* | :heavy_check_mark: | N/A | | `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `role` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | | `table_name` | *str* | :heavy_check_mark: | N/A | | `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/vlmmodel.md b/docs/models/shared/vlmmodel.md deleted file mode 100644 index 0a2e7ab4..00000000 --- a/docs/models/shared/vlmmodel.md +++ /dev/null @@ -1,23 +0,0 @@ -# VLMModel - -The VLM Model to use. - - -## Values - -| Name | Value | -| ---------------------------------------------- | ---------------------------------------------- | -| `CLAUDE_3_5_SONNET_20241022` | claude-3-5-sonnet-20241022 | -| `CLAUDE_3_7_SONNET_20250219` | claude-3-7-sonnet-20250219 | -| `GPT_4O` | gpt-4o | -| `GEMINI_1_5_PRO` | gemini-1.5-pro | -| `US_AMAZON_NOVA_PRO_V1_0` | us.amazon.nova-pro-v1:0 | -| `US_AMAZON_NOVA_LITE_V1_0` | us.amazon.nova-lite-v1:0 | -| `US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0` | us.anthropic.claude-3-7-sonnet-20250219-v1:0 | -| `US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0` | us.anthropic.claude-3-5-sonnet-20241022-v2:0 | -| `US_ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0` | us.anthropic.claude-3-opus-20240229-v1:0 | -| `US_ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0` | us.anthropic.claude-3-haiku-20240307-v1:0 | -| `US_ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0` | us.anthropic.claude-3-sonnet-20240229-v1:0 | -| `US_META_LLAMA3_2_90B_INSTRUCT_V1_0` | us.meta.llama3-2-90b-instruct-v1:0 | -| `US_META_LLAMA3_2_11B_INSTRUCT_V1_0` | us.meta.llama3-2-11b-instruct-v1:0 | -| `GEMINI_2_0_FLASH_001` | gemini-2.0-flash-001 | \ No newline at end of file diff --git a/docs/models/shared/workflowinformation.md b/docs/models/shared/workflowinformation.md index d9fe6c77..f8c4b867 100644 --- a/docs/models/shared/workflowinformation.md +++ b/docs/models/shared/workflowinformation.md @@ -9,7 +9,7 @@ | `destinations` | List[*str*] | :heavy_check_mark: | N/A | | | `id` | *str* | :heavy_check_mark: | N/A | | | `name` | *str* | :heavy_check_mark: | N/A | | -| `reprocess_all` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | +| `reprocess_all` | *Optional[bool]* | :heavy_minus_sign: | N/A | | | `schedule` | [OptionalNullable[shared.WorkflowSchedule]](../../models/shared/workflowschedule.md) | :heavy_minus_sign: | N/A | {
"crontab_entries": [
{
"cron_expression": "0 0 * * *"
}
]
} | | `sources` | List[*str*] | :heavy_check_mark: | N/A | | | `status` | [shared.WorkflowState](../../models/shared/workflowstate.md) | :heavy_check_mark: | N/A | | diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 5b25549f..f5562a5a 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -22,11 +22,14 @@ Initiate a connection check for the destination connector ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_connection_check_destinations(request={ + res = uc_client.destinations.create_connection_check_destinations(security=operations.CreateConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "cb9e35c1-0b04-4d98-83fa-fa6241323f96", }) @@ -39,10 +42,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------- | -| `request` | [operations.CreateConnectionCheckDestinationsRequest](../../models/operations/createconnectioncheckdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateConnectionCheckDestinationsRequest](../../models/operations/createconnectioncheckdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateConnectionCheckDestinationsSecurity](../../models/operations/createconnectioncheckdestinationssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -64,12 +68,14 @@ Create a new destination connector using the provided configuration and name. ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import shared +from unstructured_client.models import operations, shared with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_destination(request={ + res = uc_client.destinations.create_destination(security=operations.CreateDestinationSecurity( + http_bearer="", + ), request={ "create_destination_connector": { "config": { "collection": "", @@ -90,10 +96,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.CreateDestinationRequest](../../models/operations/createdestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.CreateDestinationRequest](../../models/operations/createdestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateDestinationSecurity](../../models/operations/createdestinationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -115,11 +122,14 @@ Delete a specific destination connector by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.delete_destination(request={ + res = uc_client.destinations.delete_destination(security=operations.DeleteDestinationSecurity( + http_bearer="", + ), request={ "destination_id": "f50b6b0c-1177-4edb-ae10-68199cd00ba6", }) @@ -132,10 +142,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteDestinationRequest](../../models/operations/deletedestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.DeleteDestinationRequest](../../models/operations/deletedestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeleteDestinationSecurity](../../models/operations/deletedestinationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -157,11 +168,14 @@ Retrieves the most recent connection check for the specified destination connect ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.get_connection_check_destinations(request={ + res = uc_client.destinations.get_connection_check_destinations(security=operations.GetConnectionCheckDestinationsSecurity( + http_bearer="", + ), request={ "destination_id": "c95687a3-239f-485c-946b-4c8fe314ef82", }) @@ -174,10 +188,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------- | -| `request` | [operations.GetConnectionCheckDestinationsRequest](../../models/operations/getconnectioncheckdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.GetConnectionCheckDestinationsRequest](../../models/operations/getconnectioncheckdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetConnectionCheckDestinationsSecurity](../../models/operations/getconnectioncheckdestinationssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -199,11 +214,14 @@ Retrieve detailed information for a specific destination connector by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.get_destination(request={ + res = uc_client.destinations.get_destination(security=operations.GetDestinationSecurity( + http_bearer="", + ), request={ "destination_id": "6352107c-44bd-4a20-a286-de73a4d9c9bd", }) @@ -216,10 +234,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.GetDestinationRequest](../../models/operations/getdestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `request` | [operations.GetDestinationRequest](../../models/operations/getdestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetDestinationSecurity](../../models/operations/getdestinationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -241,11 +260,14 @@ Retrieve a list of available destination connectors. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.list_destinations(request={}) + res = uc_client.destinations.list_destinations(security=operations.ListDestinationsSecurity( + http_bearer="", + ), request={}) assert res.response_list_destinations is not None @@ -256,10 +278,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `request` | [operations.ListDestinationsRequest](../../models/operations/listdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `request` | [operations.ListDestinationsRequest](../../models/operations/listdestinationsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.ListDestinationsSecurity](../../models/operations/listdestinationssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -281,11 +304,14 @@ Update the configuration of an existing destination connector. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.destinations.update_destination(request={ + res = uc_client.destinations.update_destination(security=operations.UpdateDestinationSecurity( + http_bearer="", + ), request={ "update_destination_connector": { "config": { "batch_size": 100, @@ -308,10 +334,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateDestinationRequest](../../models/operations/updatedestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.UpdateDestinationRequest](../../models/operations/updatedestinationrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdateDestinationSecurity](../../models/operations/updatedestinationsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/general/README.md b/docs/sdks/general/README.md index 1eee2b9e..4d900e4e 100644 --- a/docs/sdks/general/README.md +++ b/docs/sdks/general/README.md @@ -34,7 +34,7 @@ with UnstructuredClient() as uc_client: 10, ], "strategy": shared.Strategy.AUTO, - "vlm_model": shared.VLMModel.GPT_4O, + "vlm_model": "gpt-4o", "vlm_model_provider": shared.VLMModelProvider.OPENAI, }, }) diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index feddfe3b..966890a0 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -21,11 +21,14 @@ Cancel the specified job. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.cancel_job(request={ + res = uc_client.jobs.cancel_job(security=operations.CancelJobSecurity( + http_bearer="", + ), request={ "job_id": "2fafd129-04f3-4201-a0e7-fe33e937b367", }) @@ -38,10 +41,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `request` | [operations.CancelJobRequest](../../models/operations/canceljobrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `request` | [operations.CancelJobRequest](../../models/operations/canceljobrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CancelJobSecurity](../../models/operations/canceljobsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -63,11 +67,14 @@ Download the output of a job from a workflow where the input file was provided a ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.download_job_output(request={ + res = uc_client.jobs.download_job_output(security=operations.DownloadJobOutputSecurity( + http_bearer="", + ), request={ "file_id": "", "job_id": "06d1b7b8-8642-4793-b37e-e45d97d53bc3", "node_id": "7c8f2aa4-da13-4a04-a98d-0204ea55681e", @@ -82,10 +89,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.DownloadJobOutputRequest](../../models/operations/downloadjoboutputrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.DownloadJobOutputRequest](../../models/operations/downloadjoboutputrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DownloadJobOutputSecurity](../../models/operations/downloadjoboutputsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -107,11 +115,14 @@ Retrieve detailed information for a specific job by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.get_job(request={ + res = uc_client.jobs.get_job(security=operations.GetJobSecurity( + http_bearer="", + ), request={ "job_id": "d95a05b3-3446-4f3d-806c-904b6a7ba40a", }) @@ -124,10 +135,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `request` | [operations.GetJobRequest](../../models/operations/getjobrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | ---------------------------------------------------------------------- | +| `request` | [operations.GetJobRequest](../../models/operations/getjobrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetJobSecurity](../../models/operations/getjobsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -149,11 +161,14 @@ Retrieve processing details for a specific job by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.get_job_details(request={ + res = uc_client.jobs.get_job_details(security=operations.GetJobDetailsSecurity( + http_bearer="", + ), request={ "job_id": "14cc95f9-4174-46b3-81f5-7089b87a4787", }) @@ -166,10 +181,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `request` | [operations.GetJobDetailsRequest](../../models/operations/getjobdetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.GetJobDetailsRequest](../../models/operations/getjobdetailsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetJobDetailsSecurity](../../models/operations/getjobdetailssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -191,11 +207,14 @@ Retrieve failed files for a specific job by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.get_job_failed_files(request={ + res = uc_client.jobs.get_job_failed_files(security=operations.GetJobFailedFilesSecurity( + http_bearer="", + ), request={ "job_id": "ad262041-3530-40a9-9f83-b004e947a203", }) @@ -208,10 +227,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | -| `request` | [operations.GetJobFailedFilesRequest](../../models/operations/getjobfailedfilesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | +| `request` | [operations.GetJobFailedFilesRequest](../../models/operations/getjobfailedfilesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetJobFailedFilesSecurity](../../models/operations/getjobfailedfilessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -233,11 +253,14 @@ Retrieve a list of jobs with optional filtering by workflow ID or job status. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.jobs.list_jobs(request={}) + res = uc_client.jobs.list_jobs(security=operations.ListJobsSecurity( + http_bearer="", + ), request={}) assert res.response_list_jobs is not None @@ -248,10 +271,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | -| `request` | [operations.ListJobsRequest](../../models/operations/listjobsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `request` | [operations.ListJobsRequest](../../models/operations/listjobsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.ListJobsSecurity](../../models/operations/listjobssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index dc0c748d..62db9c74 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -22,11 +22,14 @@ Initiates a connection check for the specified source connector. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.create_connection_check_sources(request={ + res = uc_client.sources.create_connection_check_sources(security=operations.CreateConnectionCheckSourcesSecurity( + http_bearer="", + ), request={ "source_id": "8d49e3f2-3e6d-4973-bc61-292af66829d7", }) @@ -39,10 +42,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------- | -| `request` | [operations.CreateConnectionCheckSourcesRequest](../../models/operations/createconnectionchecksourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.CreateConnectionCheckSourcesRequest](../../models/operations/createconnectionchecksourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateConnectionCheckSourcesSecurity](../../models/operations/createconnectionchecksourcessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -64,12 +68,14 @@ Create a new source connector using the provided configuration and name. ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import shared +from unstructured_client.models import operations, shared with UnstructuredClient() as uc_client: - res = uc_client.sources.create_source(request={ + res = uc_client.sources.create_source(security=operations.CreateSourceSecurity( + http_bearer="", + ), request={ "create_source_connector": { "config": { "catalog": "", @@ -93,10 +99,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `request` | [operations.CreateSourceRequest](../../models/operations/createsourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `request` | [operations.CreateSourceRequest](../../models/operations/createsourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateSourceSecurity](../../models/operations/createsourcesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -118,11 +125,14 @@ Delete a specific source connector identified by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.delete_source(request={ + res = uc_client.sources.delete_source(security=operations.DeleteSourceSecurity( + http_bearer="", + ), request={ "source_id": "296c4009-7b81-4144-9c7c-e058204aeb93", }) @@ -135,10 +145,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `request` | [operations.DeleteSourceRequest](../../models/operations/deletesourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `request` | [operations.DeleteSourceRequest](../../models/operations/deletesourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeleteSourceSecurity](../../models/operations/deletesourcesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -160,11 +171,14 @@ Retrieves the most recent connection check for the specified source connector. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.get_connection_check_sources(request={ + res = uc_client.sources.get_connection_check_sources(security=operations.GetConnectionCheckSourcesSecurity( + http_bearer="", + ), request={ "source_id": "4df23b66-dae2-44ea-8dd3-329184d5644a", }) @@ -177,10 +191,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | -| `request` | [operations.GetConnectionCheckSourcesRequest](../../models/operations/getconnectionchecksourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetConnectionCheckSourcesRequest](../../models/operations/getconnectionchecksourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetConnectionCheckSourcesSecurity](../../models/operations/getconnectionchecksourcessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -202,11 +217,14 @@ Retrieve detailed information for a specific source connector by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.get_source(request={ + res = uc_client.sources.get_source(security=operations.GetSourceSecurity( + http_bearer="", + ), request={ "source_id": "df7d5ab1-bb15-4f1a-8dc0-c92a9a28a585", }) @@ -219,10 +237,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -| `request` | [operations.GetSourceRequest](../../models/operations/getsourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `request` | [operations.GetSourceRequest](../../models/operations/getsourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetSourceSecurity](../../models/operations/getsourcesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -244,11 +263,14 @@ Retrieve a list of available source connectors. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.list_sources(request={}) + res = uc_client.sources.list_sources(security=operations.ListSourcesSecurity( + http_bearer="", + ), request={}) assert res.response_list_sources is not None @@ -259,10 +281,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [operations.ListSourcesRequest](../../models/operations/listsourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `request` | [operations.ListSourcesRequest](../../models/operations/listsourcesrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.ListSourcesSecurity](../../models/operations/listsourcessecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -284,11 +307,14 @@ Update the configuration of an existing source connector. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.sources.update_source(request={ + res = uc_client.sources.update_source(security=operations.UpdateSourceSecurity( + http_bearer="", + ), request={ "update_source_connector": { "config": { "batch_size": 615322, @@ -311,10 +337,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -| `request` | [operations.UpdateSourceRequest](../../models/operations/updatesourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | +| `request` | [operations.UpdateSourceRequest](../../models/operations/updatesourcerequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdateSourceSecurity](../../models/operations/updatesourcesecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/docs/sdks/workflows/README.md b/docs/sdks/workflows/README.md index a522bc31..08197a80 100644 --- a/docs/sdks/workflows/README.md +++ b/docs/sdks/workflows/README.md @@ -21,12 +21,14 @@ Create a new workflow, either custom or auto, and configure its settings. ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import shared +from unstructured_client.models import operations, shared with UnstructuredClient() as uc_client: - res = uc_client.workflows.create_workflow(request={ + res = uc_client.workflows.create_workflow(security=operations.CreateWorkflowSecurity( + http_bearer="", + ), request={ "create_workflow": { "name": "", "workflow_type": shared.WorkflowType.ADVANCED, @@ -42,10 +44,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.CreateWorkflowRequest](../../models/operations/createworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `request` | [operations.CreateWorkflowRequest](../../models/operations/createworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.CreateWorkflowSecurity](../../models/operations/createworkflowsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -67,11 +70,14 @@ Delete a workflow by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.delete_workflow(request={ + res = uc_client.workflows.delete_workflow(security=operations.DeleteWorkflowSecurity( + http_bearer="", + ), request={ "workflow_id": "3e61b8a6-32b6-47cf-bce7-6d13357b30eb", }) @@ -84,10 +90,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.DeleteWorkflowRequest](../../models/operations/deleteworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `request` | [operations.DeleteWorkflowRequest](../../models/operations/deleteworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.DeleteWorkflowSecurity](../../models/operations/deleteworkflowsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -109,11 +116,14 @@ Retrieve detailed information for a specific workflow by its ID. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.get_workflow(request={ + res = uc_client.workflows.get_workflow(security=operations.GetWorkflowSecurity( + http_bearer="", + ), request={ "workflow_id": "d031b0e5-7ca7-4a2b-b3cc-d869d2df3e76", }) @@ -126,10 +136,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [operations.GetWorkflowRequest](../../models/operations/getworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `request` | [operations.GetWorkflowRequest](../../models/operations/getworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.GetWorkflowSecurity](../../models/operations/getworkflowsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -151,11 +162,14 @@ Retrieve a list of workflows, optionally filtered by source, destination, state, ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.list_workflows(request={}) + res = uc_client.workflows.list_workflows(security=operations.ListWorkflowsSecurity( + http_bearer="", + ), request={}) assert res.response_list_workflows is not None @@ -166,10 +180,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `request` | [operations.ListWorkflowsRequest](../../models/operations/listworkflowsrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | +| `request` | [operations.ListWorkflowsRequest](../../models/operations/listworkflowsrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.ListWorkflowsSecurity](../../models/operations/listworkflowssecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -191,11 +206,14 @@ Run a workflow by triggering a new job if none is currently active. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.run_workflow(request={ + res = uc_client.workflows.run_workflow(security=operations.RunWorkflowSecurity( + http_bearer="", + ), request={ "workflow_id": "e7054f23-ce92-4bf1-a1d7-7cf9cb14d013", }) @@ -208,10 +226,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | -| `request` | [operations.RunWorkflowRequest](../../models/operations/runworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | -------------------------------------------------------------------------------- | +| `request` | [operations.RunWorkflowRequest](../../models/operations/runworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.RunWorkflowSecurity](../../models/operations/runworkflowsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response @@ -233,11 +252,14 @@ Update an existing workflow's name, connectors, schedule, or workflow type. ```python from unstructured_client import UnstructuredClient +from unstructured_client.models import operations with UnstructuredClient() as uc_client: - res = uc_client.workflows.update_workflow(request={ + res = uc_client.workflows.update_workflow(security=operations.UpdateWorkflowSecurity( + http_bearer="", + ), request={ "update_workflow": {}, "workflow_id": "b9b7e688-353f-4ff2-bcd7-a49b5fa5f6c7", }) @@ -251,10 +273,11 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------ | -| `request` | [operations.UpdateWorkflowRequest](../../models/operations/updateworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | +| `request` | [operations.UpdateWorkflowRequest](../../models/operations/updateworkflowrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `security` | [operations.UpdateWorkflowSecurity](../../models/operations/updateworkflowsecurity.md) | :heavy_check_mark: | The security requirements to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | ### Response diff --git a/gen.yaml b/gen.yaml index 7cfcae60..cb57bb5b 100644 --- a/gen.yaml +++ b/gen.yaml @@ -17,8 +17,11 @@ generation: generateTests: true generateNewTests: false skipResponseBodyAssertions: false + requestBodyFieldName: "" + schemas: + allOfMergeStrategy: shallowMerge python: - version: 0.42.4 + version: 0.42.5 additionalDependencies: dev: deepdiff: '>=6.0' @@ -36,6 +39,10 @@ python: httpx: '>=0.27.0' pypdf: '>= 6.2.0' requests-toolbelt: '>=1.0.0' + allowedRedefinedBuiltins: + - id + - object + asyncMode: both authors: - Unstructured baseErrorName: UnstructuredClientError @@ -69,4 +76,5 @@ python: pytestFilterWarnings: [] pytestTimeout: 0 responseFormat: envelope + sseFlatResponse: false templateVersion: v2 diff --git a/poetry.lock b/poetry.lock index ad4817bf..6e93a276 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.3 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.2.1 and should not be changed by hand. [[package]] name = "aiofiles" diff --git a/pyproject.toml b/pyproject.toml index dde0a3dd..5293755f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,7 @@ + [project] name = "unstructured-client" -version = "0.42.4" +version = "0.42.5" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index f319ac07..6904f63f 100644 --- a/src/unstructured_client/_version.py +++ b/src/unstructured_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "unstructured-client" -__version__: str = "0.42.4" +__version__: str = "0.42.5" __openapi_doc_version__: str = "1.2.10" -__gen_version__: str = "2.674.3" -__user_agent__: str = "speakeasy-sdk/python 0.42.4 2.674.3 1.2.10 unstructured-client" +__gen_version__: str = "2.680.0" +__user_agent__: str = "speakeasy-sdk/python 0.42.5 2.680.0 1.2.10 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/destinations.py b/src/unstructured_client/destinations.py index 9ad0a291..92416622 100644 --- a/src/unstructured_client/destinations.py +++ b/src/unstructured_client/destinations.py @@ -13,6 +13,10 @@ class Destinations(BaseSDK): def create_connection_check_destinations( self, *, + security: Union[ + operations.CreateConnectionCheckDestinationsSecurity, + operations.CreateConnectionCheckDestinationsSecurityTypedDict, + ], request: Union[ operations.CreateConnectionCheckDestinationsRequest, operations.CreateConnectionCheckDestinationsRequestTypedDict, @@ -26,6 +30,7 @@ def create_connection_check_destinations( Initiate a connection check for the destination connector + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -60,7 +65,9 @@ def create_connection_check_destinations( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateConnectionCheckDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -81,8 +88,8 @@ def create_connection_check_destinations( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_connection_check_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -116,6 +123,10 @@ def create_connection_check_destinations( async def create_connection_check_destinations_async( self, *, + security: Union[ + operations.CreateConnectionCheckDestinationsSecurity, + operations.CreateConnectionCheckDestinationsSecurityTypedDict, + ], request: Union[ operations.CreateConnectionCheckDestinationsRequest, operations.CreateConnectionCheckDestinationsRequestTypedDict, @@ -129,6 +140,7 @@ async def create_connection_check_destinations_async( Initiate a connection check for the destination connector + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -163,7 +175,9 @@ async def create_connection_check_destinations_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateConnectionCheckDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -184,8 +198,8 @@ async def create_connection_check_destinations_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_connection_check_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -219,6 +233,10 @@ async def create_connection_check_destinations_async( def create_destination( self, *, + security: Union[ + operations.CreateDestinationSecurity, + operations.CreateDestinationSecurityTypedDict, + ], request: Union[ operations.CreateDestinationRequest, operations.CreateDestinationRequestTypedDict, @@ -232,6 +250,7 @@ def create_destination( Create a new destination connector using the provided configuration and name. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -264,7 +283,9 @@ def create_destination( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateDestinationSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_destination_connector, False, @@ -292,8 +313,8 @@ def create_destination( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -327,6 +348,10 @@ def create_destination( async def create_destination_async( self, *, + security: Union[ + operations.CreateDestinationSecurity, + operations.CreateDestinationSecurityTypedDict, + ], request: Union[ operations.CreateDestinationRequest, operations.CreateDestinationRequestTypedDict, @@ -340,6 +365,7 @@ async def create_destination_async( Create a new destination connector using the provided configuration and name. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -372,7 +398,9 @@ async def create_destination_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateDestinationSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_destination_connector, False, @@ -400,8 +428,8 @@ async def create_destination_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -435,6 +463,10 @@ async def create_destination_async( def delete_destination( self, *, + security: Union[ + operations.DeleteDestinationSecurity, + operations.DeleteDestinationSecurityTypedDict, + ], request: Union[ operations.DeleteDestinationRequest, operations.DeleteDestinationRequestTypedDict, @@ -448,6 +480,7 @@ def delete_destination( Delete a specific destination connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -480,7 +513,9 @@ def delete_destination( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteDestinationSecurity + ), timeout_ms=timeout_ms, ) @@ -501,8 +536,8 @@ def delete_destination( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -534,6 +569,10 @@ def delete_destination( async def delete_destination_async( self, *, + security: Union[ + operations.DeleteDestinationSecurity, + operations.DeleteDestinationSecurityTypedDict, + ], request: Union[ operations.DeleteDestinationRequest, operations.DeleteDestinationRequestTypedDict, @@ -547,6 +586,7 @@ async def delete_destination_async( Delete a specific destination connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -579,7 +619,9 @@ async def delete_destination_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteDestinationSecurity + ), timeout_ms=timeout_ms, ) @@ -600,8 +642,8 @@ async def delete_destination_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -633,6 +675,10 @@ async def delete_destination_async( def get_connection_check_destinations( self, *, + security: Union[ + operations.GetConnectionCheckDestinationsSecurity, + operations.GetConnectionCheckDestinationsSecurityTypedDict, + ], request: Union[ operations.GetConnectionCheckDestinationsRequest, operations.GetConnectionCheckDestinationsRequestTypedDict, @@ -646,6 +692,7 @@ def get_connection_check_destinations( Retrieves the most recent connection check for the specified destination connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -680,7 +727,9 @@ def get_connection_check_destinations( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetConnectionCheckDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -701,8 +750,8 @@ def get_connection_check_destinations( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_connection_check_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -736,6 +785,10 @@ def get_connection_check_destinations( async def get_connection_check_destinations_async( self, *, + security: Union[ + operations.GetConnectionCheckDestinationsSecurity, + operations.GetConnectionCheckDestinationsSecurityTypedDict, + ], request: Union[ operations.GetConnectionCheckDestinationsRequest, operations.GetConnectionCheckDestinationsRequestTypedDict, @@ -749,6 +802,7 @@ async def get_connection_check_destinations_async( Retrieves the most recent connection check for the specified destination connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -783,7 +837,9 @@ async def get_connection_check_destinations_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetConnectionCheckDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -804,8 +860,8 @@ async def get_connection_check_destinations_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_connection_check_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -839,6 +895,10 @@ async def get_connection_check_destinations_async( def get_destination( self, *, + security: Union[ + operations.GetDestinationSecurity, + operations.GetDestinationSecurityTypedDict, + ], request: Union[ operations.GetDestinationRequest, operations.GetDestinationRequestTypedDict ], @@ -851,6 +911,7 @@ def get_destination( Retrieve detailed information for a specific destination connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -883,7 +944,9 @@ def get_destination( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetDestinationSecurity + ), timeout_ms=timeout_ms, ) @@ -904,8 +967,8 @@ def get_destination( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -939,6 +1002,10 @@ def get_destination( async def get_destination_async( self, *, + security: Union[ + operations.GetDestinationSecurity, + operations.GetDestinationSecurityTypedDict, + ], request: Union[ operations.GetDestinationRequest, operations.GetDestinationRequestTypedDict ], @@ -951,6 +1018,7 @@ async def get_destination_async( Retrieve detailed information for a specific destination connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -983,7 +1051,9 @@ async def get_destination_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetDestinationSecurity + ), timeout_ms=timeout_ms, ) @@ -1004,8 +1074,8 @@ async def get_destination_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1039,6 +1109,10 @@ async def get_destination_async( def list_destinations( self, *, + security: Union[ + operations.ListDestinationsSecurity, + operations.ListDestinationsSecurityTypedDict, + ], request: Union[ operations.ListDestinationsRequest, operations.ListDestinationsRequestTypedDict, @@ -1052,6 +1126,7 @@ def list_destinations( Retrieve a list of available destination connectors. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1084,7 +1159,9 @@ def list_destinations( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.ListDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -1105,8 +1182,8 @@ def list_destinations( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1140,6 +1217,10 @@ def list_destinations( async def list_destinations_async( self, *, + security: Union[ + operations.ListDestinationsSecurity, + operations.ListDestinationsSecurityTypedDict, + ], request: Union[ operations.ListDestinationsRequest, operations.ListDestinationsRequestTypedDict, @@ -1153,6 +1234,7 @@ async def list_destinations_async( Retrieve a list of available destination connectors. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1185,7 +1267,9 @@ async def list_destinations_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.ListDestinationsSecurity + ), timeout_ms=timeout_ms, ) @@ -1206,8 +1290,8 @@ async def list_destinations_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_destinations", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1241,6 +1325,10 @@ async def list_destinations_async( def update_destination( self, *, + security: Union[ + operations.UpdateDestinationSecurity, + operations.UpdateDestinationSecurityTypedDict, + ], request: Union[ operations.UpdateDestinationRequest, operations.UpdateDestinationRequestTypedDict, @@ -1254,6 +1342,7 @@ def update_destination( Update the configuration of an existing destination connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1286,7 +1375,9 @@ def update_destination( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateDestinationSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_destination_connector, False, @@ -1314,8 +1405,8 @@ def update_destination( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1349,6 +1440,10 @@ def update_destination( async def update_destination_async( self, *, + security: Union[ + operations.UpdateDestinationSecurity, + operations.UpdateDestinationSecurityTypedDict, + ], request: Union[ operations.UpdateDestinationRequest, operations.UpdateDestinationRequestTypedDict, @@ -1362,6 +1457,7 @@ async def update_destination_async( Update the configuration of an existing destination connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1394,7 +1490,9 @@ async def update_destination_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateDestinationSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_destination_connector, False, @@ -1422,8 +1520,8 @@ async def update_destination_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_destination", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], diff --git a/src/unstructured_client/jobs.py b/src/unstructured_client/jobs.py index ba620032..f646ac99 100644 --- a/src/unstructured_client/jobs.py +++ b/src/unstructured_client/jobs.py @@ -13,6 +13,9 @@ class Jobs(BaseSDK): def cancel_job( self, *, + security: Union[ + operations.CancelJobSecurity, operations.CancelJobSecurityTypedDict + ], request: Union[ operations.CancelJobRequest, operations.CancelJobRequestTypedDict ], @@ -25,6 +28,7 @@ def cancel_job( Cancel the specified job. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -57,7 +61,7 @@ def cancel_job( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.CancelJobSecurity), timeout_ms=timeout_ms, ) @@ -78,8 +82,8 @@ def cancel_job( config=self.sdk_configuration, base_url=base_url or "", operation_id="cancel_job", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -111,6 +115,9 @@ def cancel_job( async def cancel_job_async( self, *, + security: Union[ + operations.CancelJobSecurity, operations.CancelJobSecurityTypedDict + ], request: Union[ operations.CancelJobRequest, operations.CancelJobRequestTypedDict ], @@ -123,6 +130,7 @@ async def cancel_job_async( Cancel the specified job. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -155,7 +163,7 @@ async def cancel_job_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.CancelJobSecurity), timeout_ms=timeout_ms, ) @@ -176,8 +184,8 @@ async def cancel_job_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="cancel_job", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -209,6 +217,10 @@ async def cancel_job_async( def download_job_output( self, *, + security: Union[ + operations.DownloadJobOutputSecurity, + operations.DownloadJobOutputSecurityTypedDict, + ], request: Union[ operations.DownloadJobOutputRequest, operations.DownloadJobOutputRequestTypedDict, @@ -222,6 +234,7 @@ def download_job_output( Download the output of a job from a workflow where the input file was provided at runtime. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -254,7 +267,9 @@ def download_job_output( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DownloadJobOutputSecurity + ), timeout_ms=timeout_ms, ) @@ -275,8 +290,8 @@ def download_job_output( config=self.sdk_configuration, base_url=base_url or "", operation_id="download_job_output", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -308,6 +323,10 @@ def download_job_output( async def download_job_output_async( self, *, + security: Union[ + operations.DownloadJobOutputSecurity, + operations.DownloadJobOutputSecurityTypedDict, + ], request: Union[ operations.DownloadJobOutputRequest, operations.DownloadJobOutputRequestTypedDict, @@ -321,6 +340,7 @@ async def download_job_output_async( Download the output of a job from a workflow where the input file was provided at runtime. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -353,7 +373,9 @@ async def download_job_output_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DownloadJobOutputSecurity + ), timeout_ms=timeout_ms, ) @@ -374,8 +396,8 @@ async def download_job_output_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="download_job_output", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -407,6 +429,7 @@ async def download_job_output_async( def get_job( self, *, + security: Union[operations.GetJobSecurity, operations.GetJobSecurityTypedDict], request: Union[operations.GetJobRequest, operations.GetJobRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -417,6 +440,7 @@ def get_job( Retrieve detailed information for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -449,7 +473,7 @@ def get_job( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetJobSecurity), timeout_ms=timeout_ms, ) @@ -470,8 +494,8 @@ def get_job( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -505,6 +529,7 @@ def get_job( async def get_job_async( self, *, + security: Union[operations.GetJobSecurity, operations.GetJobSecurityTypedDict], request: Union[operations.GetJobRequest, operations.GetJobRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -515,6 +540,7 @@ async def get_job_async( Retrieve detailed information for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -547,7 +573,7 @@ async def get_job_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetJobSecurity), timeout_ms=timeout_ms, ) @@ -568,8 +594,8 @@ async def get_job_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -603,6 +629,9 @@ async def get_job_async( def get_job_details( self, *, + security: Union[ + operations.GetJobDetailsSecurity, operations.GetJobDetailsSecurityTypedDict + ], request: Union[ operations.GetJobDetailsRequest, operations.GetJobDetailsRequestTypedDict ], @@ -615,6 +644,7 @@ def get_job_details( Retrieve processing details for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -647,7 +677,9 @@ def get_job_details( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetJobDetailsSecurity + ), timeout_ms=timeout_ms, ) @@ -668,8 +700,8 @@ def get_job_details( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job_details", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -703,6 +735,9 @@ def get_job_details( async def get_job_details_async( self, *, + security: Union[ + operations.GetJobDetailsSecurity, operations.GetJobDetailsSecurityTypedDict + ], request: Union[ operations.GetJobDetailsRequest, operations.GetJobDetailsRequestTypedDict ], @@ -715,6 +750,7 @@ async def get_job_details_async( Retrieve processing details for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -747,7 +783,9 @@ async def get_job_details_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetJobDetailsSecurity + ), timeout_ms=timeout_ms, ) @@ -768,8 +806,8 @@ async def get_job_details_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job_details", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -803,6 +841,10 @@ async def get_job_details_async( def get_job_failed_files( self, *, + security: Union[ + operations.GetJobFailedFilesSecurity, + operations.GetJobFailedFilesSecurityTypedDict, + ], request: Union[ operations.GetJobFailedFilesRequest, operations.GetJobFailedFilesRequestTypedDict, @@ -816,6 +858,7 @@ def get_job_failed_files( Retrieve failed files for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -848,7 +891,9 @@ def get_job_failed_files( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetJobFailedFilesSecurity + ), timeout_ms=timeout_ms, ) @@ -869,8 +914,8 @@ def get_job_failed_files( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job_failed_files", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -904,6 +949,10 @@ def get_job_failed_files( async def get_job_failed_files_async( self, *, + security: Union[ + operations.GetJobFailedFilesSecurity, + operations.GetJobFailedFilesSecurityTypedDict, + ], request: Union[ operations.GetJobFailedFilesRequest, operations.GetJobFailedFilesRequestTypedDict, @@ -917,6 +966,7 @@ async def get_job_failed_files_async( Retrieve failed files for a specific job by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -949,7 +999,9 @@ async def get_job_failed_files_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetJobFailedFilesSecurity + ), timeout_ms=timeout_ms, ) @@ -970,8 +1022,8 @@ async def get_job_failed_files_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_job_failed_files", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1005,6 +1057,9 @@ async def get_job_failed_files_async( def list_jobs( self, *, + security: Union[ + operations.ListJobsSecurity, operations.ListJobsSecurityTypedDict + ], request: Union[operations.ListJobsRequest, operations.ListJobsRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1015,6 +1070,7 @@ def list_jobs( Retrieve a list of jobs with optional filtering by workflow ID or job status. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1047,7 +1103,7 @@ def list_jobs( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.ListJobsSecurity), timeout_ms=timeout_ms, ) @@ -1068,8 +1124,8 @@ def list_jobs( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_jobs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1103,6 +1159,9 @@ def list_jobs( async def list_jobs_async( self, *, + security: Union[ + operations.ListJobsSecurity, operations.ListJobsSecurityTypedDict + ], request: Union[operations.ListJobsRequest, operations.ListJobsRequestTypedDict], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, @@ -1113,6 +1172,7 @@ async def list_jobs_async( Retrieve a list of jobs with optional filtering by workflow ID or job status. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1145,7 +1205,7 @@ async def list_jobs_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.ListJobsSecurity), timeout_ms=timeout_ms, ) @@ -1166,8 +1226,8 @@ async def list_jobs_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_jobs", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], diff --git a/src/unstructured_client/models/operations/__init__.py b/src/unstructured_client/models/operations/__init__.py index 8c6fbfc2..16e50999 100644 --- a/src/unstructured_client/models/operations/__init__.py +++ b/src/unstructured_client/models/operations/__init__.py @@ -10,132 +10,176 @@ CancelJobRequestTypedDict, CancelJobResponse, CancelJobResponseTypedDict, + CancelJobSecurity, + CancelJobSecurityTypedDict, ) from .create_connection_check_destinations import ( CreateConnectionCheckDestinationsRequest, CreateConnectionCheckDestinationsRequestTypedDict, CreateConnectionCheckDestinationsResponse, CreateConnectionCheckDestinationsResponseTypedDict, + CreateConnectionCheckDestinationsSecurity, + CreateConnectionCheckDestinationsSecurityTypedDict, ) from .create_connection_check_sources import ( CreateConnectionCheckSourcesRequest, CreateConnectionCheckSourcesRequestTypedDict, CreateConnectionCheckSourcesResponse, CreateConnectionCheckSourcesResponseTypedDict, + CreateConnectionCheckSourcesSecurity, + CreateConnectionCheckSourcesSecurityTypedDict, ) from .create_destination import ( CreateDestinationRequest, CreateDestinationRequestTypedDict, CreateDestinationResponse, CreateDestinationResponseTypedDict, + CreateDestinationSecurity, + CreateDestinationSecurityTypedDict, ) from .create_source import ( CreateSourceRequest, CreateSourceRequestTypedDict, CreateSourceResponse, CreateSourceResponseTypedDict, + CreateSourceSecurity, + CreateSourceSecurityTypedDict, ) from .create_workflow import ( CreateWorkflowRequest, CreateWorkflowRequestTypedDict, CreateWorkflowResponse, CreateWorkflowResponseTypedDict, + CreateWorkflowSecurity, + CreateWorkflowSecurityTypedDict, ) from .delete_destination import ( DeleteDestinationRequest, DeleteDestinationRequestTypedDict, DeleteDestinationResponse, DeleteDestinationResponseTypedDict, + DeleteDestinationSecurity, + DeleteDestinationSecurityTypedDict, ) from .delete_source import ( DeleteSourceRequest, DeleteSourceRequestTypedDict, DeleteSourceResponse, DeleteSourceResponseTypedDict, + DeleteSourceSecurity, + DeleteSourceSecurityTypedDict, ) from .delete_workflow import ( DeleteWorkflowRequest, DeleteWorkflowRequestTypedDict, DeleteWorkflowResponse, DeleteWorkflowResponseTypedDict, + DeleteWorkflowSecurity, + DeleteWorkflowSecurityTypedDict, ) from .download_job_output import ( DownloadJobOutputRequest, DownloadJobOutputRequestTypedDict, DownloadJobOutputResponse, DownloadJobOutputResponseTypedDict, + DownloadJobOutputSecurity, + DownloadJobOutputSecurityTypedDict, ) from .get_connection_check_destinations import ( GetConnectionCheckDestinationsRequest, GetConnectionCheckDestinationsRequestTypedDict, GetConnectionCheckDestinationsResponse, GetConnectionCheckDestinationsResponseTypedDict, + GetConnectionCheckDestinationsSecurity, + GetConnectionCheckDestinationsSecurityTypedDict, ) from .get_connection_check_sources import ( GetConnectionCheckSourcesRequest, GetConnectionCheckSourcesRequestTypedDict, GetConnectionCheckSourcesResponse, GetConnectionCheckSourcesResponseTypedDict, + GetConnectionCheckSourcesSecurity, + GetConnectionCheckSourcesSecurityTypedDict, ) from .get_destination import ( GetDestinationRequest, GetDestinationRequestTypedDict, GetDestinationResponse, GetDestinationResponseTypedDict, + GetDestinationSecurity, + GetDestinationSecurityTypedDict, ) from .get_job import ( GetJobRequest, GetJobRequestTypedDict, GetJobResponse, GetJobResponseTypedDict, + GetJobSecurity, + GetJobSecurityTypedDict, ) from .get_job_details import ( GetJobDetailsRequest, GetJobDetailsRequestTypedDict, GetJobDetailsResponse, GetJobDetailsResponseTypedDict, + GetJobDetailsSecurity, + GetJobDetailsSecurityTypedDict, ) from .get_job_failed_files import ( GetJobFailedFilesRequest, GetJobFailedFilesRequestTypedDict, GetJobFailedFilesResponse, GetJobFailedFilesResponseTypedDict, + GetJobFailedFilesSecurity, + GetJobFailedFilesSecurityTypedDict, ) from .get_source import ( GetSourceRequest, GetSourceRequestTypedDict, GetSourceResponse, GetSourceResponseTypedDict, + GetSourceSecurity, + GetSourceSecurityTypedDict, ) from .get_workflow import ( GetWorkflowRequest, GetWorkflowRequestTypedDict, GetWorkflowResponse, GetWorkflowResponseTypedDict, + GetWorkflowSecurity, + GetWorkflowSecurityTypedDict, ) from .list_destinations import ( ListDestinationsRequest, ListDestinationsRequestTypedDict, ListDestinationsResponse, ListDestinationsResponseTypedDict, + ListDestinationsSecurity, + ListDestinationsSecurityTypedDict, ) from .list_jobs import ( ListJobsRequest, ListJobsRequestTypedDict, ListJobsResponse, ListJobsResponseTypedDict, + ListJobsSecurity, + ListJobsSecurityTypedDict, ) from .list_sources import ( ListSourcesRequest, ListSourcesRequestTypedDict, ListSourcesResponse, ListSourcesResponseTypedDict, + ListSourcesSecurity, + ListSourcesSecurityTypedDict, ) from .list_workflows import ( ListWorkflowsRequest, ListWorkflowsRequestTypedDict, ListWorkflowsResponse, ListWorkflowsResponseTypedDict, + ListWorkflowsSecurity, + ListWorkflowsSecurityTypedDict, ) from .partition import ( PartitionRequest, @@ -148,24 +192,32 @@ RunWorkflowRequestTypedDict, RunWorkflowResponse, RunWorkflowResponseTypedDict, + RunWorkflowSecurity, + RunWorkflowSecurityTypedDict, ) from .update_destination import ( UpdateDestinationRequest, UpdateDestinationRequestTypedDict, UpdateDestinationResponse, UpdateDestinationResponseTypedDict, + UpdateDestinationSecurity, + UpdateDestinationSecurityTypedDict, ) from .update_source import ( UpdateSourceRequest, UpdateSourceRequestTypedDict, UpdateSourceResponse, UpdateSourceResponseTypedDict, + UpdateSourceSecurity, + UpdateSourceSecurityTypedDict, ) from .update_workflow import ( UpdateWorkflowRequest, UpdateWorkflowRequestTypedDict, UpdateWorkflowResponse, UpdateWorkflowResponseTypedDict, + UpdateWorkflowSecurity, + UpdateWorkflowSecurityTypedDict, ) __all__ = [ @@ -173,90 +225,134 @@ "CancelJobRequestTypedDict", "CancelJobResponse", "CancelJobResponseTypedDict", + "CancelJobSecurity", + "CancelJobSecurityTypedDict", "CreateConnectionCheckDestinationsRequest", "CreateConnectionCheckDestinationsRequestTypedDict", "CreateConnectionCheckDestinationsResponse", "CreateConnectionCheckDestinationsResponseTypedDict", + "CreateConnectionCheckDestinationsSecurity", + "CreateConnectionCheckDestinationsSecurityTypedDict", "CreateConnectionCheckSourcesRequest", "CreateConnectionCheckSourcesRequestTypedDict", "CreateConnectionCheckSourcesResponse", "CreateConnectionCheckSourcesResponseTypedDict", + "CreateConnectionCheckSourcesSecurity", + "CreateConnectionCheckSourcesSecurityTypedDict", "CreateDestinationRequest", "CreateDestinationRequestTypedDict", "CreateDestinationResponse", "CreateDestinationResponseTypedDict", + "CreateDestinationSecurity", + "CreateDestinationSecurityTypedDict", "CreateSourceRequest", "CreateSourceRequestTypedDict", "CreateSourceResponse", "CreateSourceResponseTypedDict", + "CreateSourceSecurity", + "CreateSourceSecurityTypedDict", "CreateWorkflowRequest", "CreateWorkflowRequestTypedDict", "CreateWorkflowResponse", "CreateWorkflowResponseTypedDict", + "CreateWorkflowSecurity", + "CreateWorkflowSecurityTypedDict", "DeleteDestinationRequest", "DeleteDestinationRequestTypedDict", "DeleteDestinationResponse", "DeleteDestinationResponseTypedDict", + "DeleteDestinationSecurity", + "DeleteDestinationSecurityTypedDict", "DeleteSourceRequest", "DeleteSourceRequestTypedDict", "DeleteSourceResponse", "DeleteSourceResponseTypedDict", + "DeleteSourceSecurity", + "DeleteSourceSecurityTypedDict", "DeleteWorkflowRequest", "DeleteWorkflowRequestTypedDict", "DeleteWorkflowResponse", "DeleteWorkflowResponseTypedDict", + "DeleteWorkflowSecurity", + "DeleteWorkflowSecurityTypedDict", "DownloadJobOutputRequest", "DownloadJobOutputRequestTypedDict", "DownloadJobOutputResponse", "DownloadJobOutputResponseTypedDict", + "DownloadJobOutputSecurity", + "DownloadJobOutputSecurityTypedDict", "GetConnectionCheckDestinationsRequest", "GetConnectionCheckDestinationsRequestTypedDict", "GetConnectionCheckDestinationsResponse", "GetConnectionCheckDestinationsResponseTypedDict", + "GetConnectionCheckDestinationsSecurity", + "GetConnectionCheckDestinationsSecurityTypedDict", "GetConnectionCheckSourcesRequest", "GetConnectionCheckSourcesRequestTypedDict", "GetConnectionCheckSourcesResponse", "GetConnectionCheckSourcesResponseTypedDict", + "GetConnectionCheckSourcesSecurity", + "GetConnectionCheckSourcesSecurityTypedDict", "GetDestinationRequest", "GetDestinationRequestTypedDict", "GetDestinationResponse", "GetDestinationResponseTypedDict", + "GetDestinationSecurity", + "GetDestinationSecurityTypedDict", "GetJobDetailsRequest", "GetJobDetailsRequestTypedDict", "GetJobDetailsResponse", "GetJobDetailsResponseTypedDict", + "GetJobDetailsSecurity", + "GetJobDetailsSecurityTypedDict", "GetJobFailedFilesRequest", "GetJobFailedFilesRequestTypedDict", "GetJobFailedFilesResponse", "GetJobFailedFilesResponseTypedDict", + "GetJobFailedFilesSecurity", + "GetJobFailedFilesSecurityTypedDict", "GetJobRequest", "GetJobRequestTypedDict", "GetJobResponse", "GetJobResponseTypedDict", + "GetJobSecurity", + "GetJobSecurityTypedDict", "GetSourceRequest", "GetSourceRequestTypedDict", "GetSourceResponse", "GetSourceResponseTypedDict", + "GetSourceSecurity", + "GetSourceSecurityTypedDict", "GetWorkflowRequest", "GetWorkflowRequestTypedDict", "GetWorkflowResponse", "GetWorkflowResponseTypedDict", + "GetWorkflowSecurity", + "GetWorkflowSecurityTypedDict", "ListDestinationsRequest", "ListDestinationsRequestTypedDict", "ListDestinationsResponse", "ListDestinationsResponseTypedDict", + "ListDestinationsSecurity", + "ListDestinationsSecurityTypedDict", "ListJobsRequest", "ListJobsRequestTypedDict", "ListJobsResponse", "ListJobsResponseTypedDict", + "ListJobsSecurity", + "ListJobsSecurityTypedDict", "ListSourcesRequest", "ListSourcesRequestTypedDict", "ListSourcesResponse", "ListSourcesResponseTypedDict", + "ListSourcesSecurity", + "ListSourcesSecurityTypedDict", "ListWorkflowsRequest", "ListWorkflowsRequestTypedDict", "ListWorkflowsResponse", "ListWorkflowsResponseTypedDict", + "ListWorkflowsSecurity", + "ListWorkflowsSecurityTypedDict", "PartitionRequest", "PartitionRequestTypedDict", "PartitionResponse", @@ -265,18 +361,26 @@ "RunWorkflowRequestTypedDict", "RunWorkflowResponse", "RunWorkflowResponseTypedDict", + "RunWorkflowSecurity", + "RunWorkflowSecurityTypedDict", "UpdateDestinationRequest", "UpdateDestinationRequestTypedDict", "UpdateDestinationResponse", "UpdateDestinationResponseTypedDict", + "UpdateDestinationSecurity", + "UpdateDestinationSecurityTypedDict", "UpdateSourceRequest", "UpdateSourceRequestTypedDict", "UpdateSourceResponse", "UpdateSourceResponseTypedDict", + "UpdateSourceSecurity", + "UpdateSourceSecurityTypedDict", "UpdateWorkflowRequest", "UpdateWorkflowRequestTypedDict", "UpdateWorkflowResponse", "UpdateWorkflowResponseTypedDict", + "UpdateWorkflowSecurity", + "UpdateWorkflowSecurityTypedDict", ] _dynamic_imports: dict[str, str] = { @@ -284,90 +388,134 @@ "CancelJobRequestTypedDict": ".cancel_job", "CancelJobResponse": ".cancel_job", "CancelJobResponseTypedDict": ".cancel_job", + "CancelJobSecurity": ".cancel_job", + "CancelJobSecurityTypedDict": ".cancel_job", "CreateConnectionCheckDestinationsRequest": ".create_connection_check_destinations", "CreateConnectionCheckDestinationsRequestTypedDict": ".create_connection_check_destinations", "CreateConnectionCheckDestinationsResponse": ".create_connection_check_destinations", "CreateConnectionCheckDestinationsResponseTypedDict": ".create_connection_check_destinations", + "CreateConnectionCheckDestinationsSecurity": ".create_connection_check_destinations", + "CreateConnectionCheckDestinationsSecurityTypedDict": ".create_connection_check_destinations", "CreateConnectionCheckSourcesRequest": ".create_connection_check_sources", "CreateConnectionCheckSourcesRequestTypedDict": ".create_connection_check_sources", "CreateConnectionCheckSourcesResponse": ".create_connection_check_sources", "CreateConnectionCheckSourcesResponseTypedDict": ".create_connection_check_sources", + "CreateConnectionCheckSourcesSecurity": ".create_connection_check_sources", + "CreateConnectionCheckSourcesSecurityTypedDict": ".create_connection_check_sources", "CreateDestinationRequest": ".create_destination", "CreateDestinationRequestTypedDict": ".create_destination", "CreateDestinationResponse": ".create_destination", "CreateDestinationResponseTypedDict": ".create_destination", + "CreateDestinationSecurity": ".create_destination", + "CreateDestinationSecurityTypedDict": ".create_destination", "CreateSourceRequest": ".create_source", "CreateSourceRequestTypedDict": ".create_source", "CreateSourceResponse": ".create_source", "CreateSourceResponseTypedDict": ".create_source", + "CreateSourceSecurity": ".create_source", + "CreateSourceSecurityTypedDict": ".create_source", "CreateWorkflowRequest": ".create_workflow", "CreateWorkflowRequestTypedDict": ".create_workflow", "CreateWorkflowResponse": ".create_workflow", "CreateWorkflowResponseTypedDict": ".create_workflow", + "CreateWorkflowSecurity": ".create_workflow", + "CreateWorkflowSecurityTypedDict": ".create_workflow", "DeleteDestinationRequest": ".delete_destination", "DeleteDestinationRequestTypedDict": ".delete_destination", "DeleteDestinationResponse": ".delete_destination", "DeleteDestinationResponseTypedDict": ".delete_destination", + "DeleteDestinationSecurity": ".delete_destination", + "DeleteDestinationSecurityTypedDict": ".delete_destination", "DeleteSourceRequest": ".delete_source", "DeleteSourceRequestTypedDict": ".delete_source", "DeleteSourceResponse": ".delete_source", "DeleteSourceResponseTypedDict": ".delete_source", + "DeleteSourceSecurity": ".delete_source", + "DeleteSourceSecurityTypedDict": ".delete_source", "DeleteWorkflowRequest": ".delete_workflow", "DeleteWorkflowRequestTypedDict": ".delete_workflow", "DeleteWorkflowResponse": ".delete_workflow", "DeleteWorkflowResponseTypedDict": ".delete_workflow", + "DeleteWorkflowSecurity": ".delete_workflow", + "DeleteWorkflowSecurityTypedDict": ".delete_workflow", "DownloadJobOutputRequest": ".download_job_output", "DownloadJobOutputRequestTypedDict": ".download_job_output", "DownloadJobOutputResponse": ".download_job_output", "DownloadJobOutputResponseTypedDict": ".download_job_output", + "DownloadJobOutputSecurity": ".download_job_output", + "DownloadJobOutputSecurityTypedDict": ".download_job_output", "GetConnectionCheckDestinationsRequest": ".get_connection_check_destinations", "GetConnectionCheckDestinationsRequestTypedDict": ".get_connection_check_destinations", "GetConnectionCheckDestinationsResponse": ".get_connection_check_destinations", "GetConnectionCheckDestinationsResponseTypedDict": ".get_connection_check_destinations", + "GetConnectionCheckDestinationsSecurity": ".get_connection_check_destinations", + "GetConnectionCheckDestinationsSecurityTypedDict": ".get_connection_check_destinations", "GetConnectionCheckSourcesRequest": ".get_connection_check_sources", "GetConnectionCheckSourcesRequestTypedDict": ".get_connection_check_sources", "GetConnectionCheckSourcesResponse": ".get_connection_check_sources", "GetConnectionCheckSourcesResponseTypedDict": ".get_connection_check_sources", + "GetConnectionCheckSourcesSecurity": ".get_connection_check_sources", + "GetConnectionCheckSourcesSecurityTypedDict": ".get_connection_check_sources", "GetDestinationRequest": ".get_destination", "GetDestinationRequestTypedDict": ".get_destination", "GetDestinationResponse": ".get_destination", "GetDestinationResponseTypedDict": ".get_destination", + "GetDestinationSecurity": ".get_destination", + "GetDestinationSecurityTypedDict": ".get_destination", "GetJobRequest": ".get_job", "GetJobRequestTypedDict": ".get_job", "GetJobResponse": ".get_job", "GetJobResponseTypedDict": ".get_job", + "GetJobSecurity": ".get_job", + "GetJobSecurityTypedDict": ".get_job", "GetJobDetailsRequest": ".get_job_details", "GetJobDetailsRequestTypedDict": ".get_job_details", "GetJobDetailsResponse": ".get_job_details", "GetJobDetailsResponseTypedDict": ".get_job_details", + "GetJobDetailsSecurity": ".get_job_details", + "GetJobDetailsSecurityTypedDict": ".get_job_details", "GetJobFailedFilesRequest": ".get_job_failed_files", "GetJobFailedFilesRequestTypedDict": ".get_job_failed_files", "GetJobFailedFilesResponse": ".get_job_failed_files", "GetJobFailedFilesResponseTypedDict": ".get_job_failed_files", + "GetJobFailedFilesSecurity": ".get_job_failed_files", + "GetJobFailedFilesSecurityTypedDict": ".get_job_failed_files", "GetSourceRequest": ".get_source", "GetSourceRequestTypedDict": ".get_source", "GetSourceResponse": ".get_source", "GetSourceResponseTypedDict": ".get_source", + "GetSourceSecurity": ".get_source", + "GetSourceSecurityTypedDict": ".get_source", "GetWorkflowRequest": ".get_workflow", "GetWorkflowRequestTypedDict": ".get_workflow", "GetWorkflowResponse": ".get_workflow", "GetWorkflowResponseTypedDict": ".get_workflow", + "GetWorkflowSecurity": ".get_workflow", + "GetWorkflowSecurityTypedDict": ".get_workflow", "ListDestinationsRequest": ".list_destinations", "ListDestinationsRequestTypedDict": ".list_destinations", "ListDestinationsResponse": ".list_destinations", "ListDestinationsResponseTypedDict": ".list_destinations", + "ListDestinationsSecurity": ".list_destinations", + "ListDestinationsSecurityTypedDict": ".list_destinations", "ListJobsRequest": ".list_jobs", "ListJobsRequestTypedDict": ".list_jobs", "ListJobsResponse": ".list_jobs", "ListJobsResponseTypedDict": ".list_jobs", + "ListJobsSecurity": ".list_jobs", + "ListJobsSecurityTypedDict": ".list_jobs", "ListSourcesRequest": ".list_sources", "ListSourcesRequestTypedDict": ".list_sources", "ListSourcesResponse": ".list_sources", "ListSourcesResponseTypedDict": ".list_sources", + "ListSourcesSecurity": ".list_sources", + "ListSourcesSecurityTypedDict": ".list_sources", "ListWorkflowsRequest": ".list_workflows", "ListWorkflowsRequestTypedDict": ".list_workflows", "ListWorkflowsResponse": ".list_workflows", "ListWorkflowsResponseTypedDict": ".list_workflows", + "ListWorkflowsSecurity": ".list_workflows", + "ListWorkflowsSecurityTypedDict": ".list_workflows", "PartitionRequest": ".partition", "PartitionRequestTypedDict": ".partition", "PartitionResponse": ".partition", @@ -376,18 +524,26 @@ "RunWorkflowRequestTypedDict": ".run_workflow", "RunWorkflowResponse": ".run_workflow", "RunWorkflowResponseTypedDict": ".run_workflow", + "RunWorkflowSecurity": ".run_workflow", + "RunWorkflowSecurityTypedDict": ".run_workflow", "UpdateDestinationRequest": ".update_destination", "UpdateDestinationRequestTypedDict": ".update_destination", "UpdateDestinationResponse": ".update_destination", "UpdateDestinationResponseTypedDict": ".update_destination", + "UpdateDestinationSecurity": ".update_destination", + "UpdateDestinationSecurityTypedDict": ".update_destination", "UpdateSourceRequest": ".update_source", "UpdateSourceRequestTypedDict": ".update_source", "UpdateSourceResponse": ".update_source", "UpdateSourceResponseTypedDict": ".update_source", + "UpdateSourceSecurity": ".update_source", + "UpdateSourceSecurityTypedDict": ".update_source", "UpdateWorkflowRequest": ".update_workflow", "UpdateWorkflowRequestTypedDict": ".update_workflow", "UpdateWorkflowResponse": ".update_workflow", "UpdateWorkflowResponseTypedDict": ".update_workflow", + "UpdateWorkflowSecurity": ".update_workflow", + "UpdateWorkflowSecurityTypedDict": ".update_workflow", } diff --git a/src/unstructured_client/models/operations/cancel_job.py b/src/unstructured_client/models/operations/cancel_job.py index d019a11b..d481e364 100644 --- a/src/unstructured_client/models/operations/cancel_job.py +++ b/src/unstructured_client/models/operations/cancel_job.py @@ -13,7 +13,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class CancelJobSecurityTypedDict(TypedDict): + http_bearer: str + + +class CancelJobSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CancelJobRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/create_connection_check_destinations.py b/src/unstructured_client/models/operations/create_connection_check_destinations.py index 7d29fb0b..132a22a7 100644 --- a/src/unstructured_client/models/operations/create_connection_check_destinations.py +++ b/src/unstructured_client/models/operations/create_connection_check_destinations.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class CreateConnectionCheckDestinationsSecurityTypedDict(TypedDict): + http_bearer: str + + +class CreateConnectionCheckDestinationsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CreateConnectionCheckDestinationsRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/create_connection_check_sources.py b/src/unstructured_client/models/operations/create_connection_check_sources.py index 16a2a6a5..813bae15 100644 --- a/src/unstructured_client/models/operations/create_connection_check_sources.py +++ b/src/unstructured_client/models/operations/create_connection_check_sources.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class CreateConnectionCheckSourcesSecurityTypedDict(TypedDict): + http_bearer: str + + +class CreateConnectionCheckSourcesSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CreateConnectionCheckSourcesRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/create_destination.py b/src/unstructured_client/models/operations/create_destination.py index b2bc7e0b..3105ebb3 100644 --- a/src/unstructured_client/models/operations/create_destination.py +++ b/src/unstructured_client/models/operations/create_destination.py @@ -17,7 +17,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + SecurityMetadata, +) + + +class CreateDestinationSecurityTypedDict(TypedDict): + http_bearer: str + + +class CreateDestinationSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CreateDestinationRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/create_source.py b/src/unstructured_client/models/operations/create_source.py index 9856e6e7..ab6e2a2b 100644 --- a/src/unstructured_client/models/operations/create_source.py +++ b/src/unstructured_client/models/operations/create_source.py @@ -17,7 +17,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + SecurityMetadata, +) + + +class CreateSourceSecurityTypedDict(TypedDict): + http_bearer: str + + +class CreateSourceSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CreateSourceRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/create_workflow.py b/src/unstructured_client/models/operations/create_workflow.py index 7a0523a6..0de7feeb 100644 --- a/src/unstructured_client/models/operations/create_workflow.py +++ b/src/unstructured_client/models/operations/create_workflow.py @@ -17,7 +17,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, RequestMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + RequestMetadata, + SecurityMetadata, +) + + +class CreateWorkflowSecurityTypedDict(TypedDict): + http_bearer: str + + +class CreateWorkflowSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class CreateWorkflowRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/delete_destination.py b/src/unstructured_client/models/operations/delete_destination.py index 6e11a602..a3a10d1b 100644 --- a/src/unstructured_client/models/operations/delete_destination.py +++ b/src/unstructured_client/models/operations/delete_destination.py @@ -13,7 +13,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class DeleteDestinationSecurityTypedDict(TypedDict): + http_bearer: str + + +class DeleteDestinationSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class DeleteDestinationRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/delete_source.py b/src/unstructured_client/models/operations/delete_source.py index 490ea566..a0053dca 100644 --- a/src/unstructured_client/models/operations/delete_source.py +++ b/src/unstructured_client/models/operations/delete_source.py @@ -13,7 +13,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class DeleteSourceSecurityTypedDict(TypedDict): + http_bearer: str + + +class DeleteSourceSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class DeleteSourceRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/delete_workflow.py b/src/unstructured_client/models/operations/delete_workflow.py index 6813dcb6..d5aeed94 100644 --- a/src/unstructured_client/models/operations/delete_workflow.py +++ b/src/unstructured_client/models/operations/delete_workflow.py @@ -13,7 +13,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class DeleteWorkflowSecurityTypedDict(TypedDict): + http_bearer: str + + +class DeleteWorkflowSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class DeleteWorkflowRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/download_job_output.py b/src/unstructured_client/models/operations/download_job_output.py index c11e2837..5485aa46 100644 --- a/src/unstructured_client/models/operations/download_job_output.py +++ b/src/unstructured_client/models/operations/download_job_output.py @@ -18,9 +18,28 @@ HeaderMetadata, PathParamMetadata, QueryParamMetadata, + SecurityMetadata, ) +class DownloadJobOutputSecurityTypedDict(TypedDict): + http_bearer: str + + +class DownloadJobOutputSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class DownloadJobOutputRequestTypedDict(TypedDict): file_id: str r"""ID of the file to download""" diff --git a/src/unstructured_client/models/operations/get_connection_check_destinations.py b/src/unstructured_client/models/operations/get_connection_check_destinations.py index 23802f38..2e063f3c 100644 --- a/src/unstructured_client/models/operations/get_connection_check_destinations.py +++ b/src/unstructured_client/models/operations/get_connection_check_destinations.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetConnectionCheckDestinationsSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetConnectionCheckDestinationsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetConnectionCheckDestinationsRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_connection_check_sources.py b/src/unstructured_client/models/operations/get_connection_check_sources.py index 4c3d0a4c..db86b290 100644 --- a/src/unstructured_client/models/operations/get_connection_check_sources.py +++ b/src/unstructured_client/models/operations/get_connection_check_sources.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetConnectionCheckSourcesSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetConnectionCheckSourcesSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetConnectionCheckSourcesRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_destination.py b/src/unstructured_client/models/operations/get_destination.py index 0be0e568..1c6595b5 100644 --- a/src/unstructured_client/models/operations/get_destination.py +++ b/src/unstructured_client/models/operations/get_destination.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetDestinationSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetDestinationSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetDestinationRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_job.py b/src/unstructured_client/models/operations/get_job.py index 18224e47..778eabdb 100644 --- a/src/unstructured_client/models/operations/get_job.py +++ b/src/unstructured_client/models/operations/get_job.py @@ -14,7 +14,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetJobSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetJobSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetJobRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_job_details.py b/src/unstructured_client/models/operations/get_job_details.py index 325a64b8..662c8ff6 100644 --- a/src/unstructured_client/models/operations/get_job_details.py +++ b/src/unstructured_client/models/operations/get_job_details.py @@ -14,7 +14,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetJobDetailsSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetJobDetailsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetJobDetailsRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_job_failed_files.py b/src/unstructured_client/models/operations/get_job_failed_files.py index 4ecd2cb0..368aa2cf 100644 --- a/src/unstructured_client/models/operations/get_job_failed_files.py +++ b/src/unstructured_client/models/operations/get_job_failed_files.py @@ -14,7 +14,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetJobFailedFilesSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetJobFailedFilesSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetJobFailedFilesRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_source.py b/src/unstructured_client/models/operations/get_source.py index 2f003ad0..90103f3b 100644 --- a/src/unstructured_client/models/operations/get_source.py +++ b/src/unstructured_client/models/operations/get_source.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetSourceSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetSourceSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetSourceRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/get_workflow.py b/src/unstructured_client/models/operations/get_workflow.py index fac7080e..ea12bf75 100644 --- a/src/unstructured_client/models/operations/get_workflow.py +++ b/src/unstructured_client/models/operations/get_workflow.py @@ -16,7 +16,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + PathParamMetadata, + SecurityMetadata, +) + + +class GetWorkflowSecurityTypedDict(TypedDict): + http_bearer: str + + +class GetWorkflowSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class GetWorkflowRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/list_destinations.py b/src/unstructured_client/models/operations/list_destinations.py index 6b73c912..b08c965c 100644 --- a/src/unstructured_client/models/operations/list_destinations.py +++ b/src/unstructured_client/models/operations/list_destinations.py @@ -22,10 +22,29 @@ FieldMetadata, HeaderMetadata, QueryParamMetadata, + SecurityMetadata, validate_open_enum, ) +class ListDestinationsSecurityTypedDict(TypedDict): + http_bearer: str + + +class ListDestinationsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class ListDestinationsRequestTypedDict(TypedDict): destination_type: NotRequired[ Nullable[shared_destinationconnectortype.DestinationConnectorType] diff --git a/src/unstructured_client/models/operations/list_jobs.py b/src/unstructured_client/models/operations/list_jobs.py index 0e0b27ce..2b7e88a8 100644 --- a/src/unstructured_client/models/operations/list_jobs.py +++ b/src/unstructured_client/models/operations/list_jobs.py @@ -14,7 +14,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + QueryParamMetadata, + SecurityMetadata, +) + + +class ListJobsSecurityTypedDict(TypedDict): + http_bearer: str + + +class ListJobsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class ListJobsRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/list_sources.py b/src/unstructured_client/models/operations/list_sources.py index 4590be9d..bb20e90a 100644 --- a/src/unstructured_client/models/operations/list_sources.py +++ b/src/unstructured_client/models/operations/list_sources.py @@ -22,10 +22,29 @@ FieldMetadata, HeaderMetadata, QueryParamMetadata, + SecurityMetadata, validate_open_enum, ) +class ListSourcesSecurityTypedDict(TypedDict): + http_bearer: str + + +class ListSourcesSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class ListSourcesRequestTypedDict(TypedDict): source_type: NotRequired[Nullable[shared_sourceconnectortype.SourceConnectorType]] unstructured_api_key: NotRequired[Nullable[str]] diff --git a/src/unstructured_client/models/operations/list_workflows.py b/src/unstructured_client/models/operations/list_workflows.py index 40ecc050..f6450d62 100644 --- a/src/unstructured_client/models/operations/list_workflows.py +++ b/src/unstructured_client/models/operations/list_workflows.py @@ -19,7 +19,30 @@ UNSET, UNSET_SENTINEL, ) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, QueryParamMetadata +from unstructured_client.utils import ( + FieldMetadata, + HeaderMetadata, + QueryParamMetadata, + SecurityMetadata, +) + + +class ListWorkflowsSecurityTypedDict(TypedDict): + http_bearer: str + + +class ListWorkflowsSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] class ListWorkflowsRequestTypedDict(TypedDict): diff --git a/src/unstructured_client/models/operations/run_workflow.py b/src/unstructured_client/models/operations/run_workflow.py index 7828d0e3..29bd709a 100644 --- a/src/unstructured_client/models/operations/run_workflow.py +++ b/src/unstructured_client/models/operations/run_workflow.py @@ -22,9 +22,28 @@ HeaderMetadata, PathParamMetadata, RequestMetadata, + SecurityMetadata, ) +class RunWorkflowSecurityTypedDict(TypedDict): + http_bearer: str + + +class RunWorkflowSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class RunWorkflowRequestTypedDict(TypedDict): workflow_id: str body_run_workflow: NotRequired[shared_body_run_workflow.BodyRunWorkflowTypedDict] diff --git a/src/unstructured_client/models/operations/update_destination.py b/src/unstructured_client/models/operations/update_destination.py index 0aefa79f..27830f1e 100644 --- a/src/unstructured_client/models/operations/update_destination.py +++ b/src/unstructured_client/models/operations/update_destination.py @@ -22,9 +22,28 @@ HeaderMetadata, PathParamMetadata, RequestMetadata, + SecurityMetadata, ) +class UpdateDestinationSecurityTypedDict(TypedDict): + http_bearer: str + + +class UpdateDestinationSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class UpdateDestinationRequestTypedDict(TypedDict): update_destination_connector: ( shared_updatedestinationconnector.UpdateDestinationConnectorTypedDict diff --git a/src/unstructured_client/models/operations/update_source.py b/src/unstructured_client/models/operations/update_source.py index 9f5e9e31..6e8b537b 100644 --- a/src/unstructured_client/models/operations/update_source.py +++ b/src/unstructured_client/models/operations/update_source.py @@ -22,9 +22,28 @@ HeaderMetadata, PathParamMetadata, RequestMetadata, + SecurityMetadata, ) +class UpdateSourceSecurityTypedDict(TypedDict): + http_bearer: str + + +class UpdateSourceSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class UpdateSourceRequestTypedDict(TypedDict): update_source_connector: shared_updatesourceconnector.UpdateSourceConnectorTypedDict source_id: str diff --git a/src/unstructured_client/models/operations/update_workflow.py b/src/unstructured_client/models/operations/update_workflow.py index 8f127dbf..d46b2609 100644 --- a/src/unstructured_client/models/operations/update_workflow.py +++ b/src/unstructured_client/models/operations/update_workflow.py @@ -22,9 +22,28 @@ HeaderMetadata, PathParamMetadata, RequestMetadata, + SecurityMetadata, ) +class UpdateWorkflowSecurityTypedDict(TypedDict): + http_bearer: str + + +class UpdateWorkflowSecurity(BaseModel): + http_bearer: Annotated[ + str, + FieldMetadata( + security=SecurityMetadata( + scheme=True, + scheme_type="http", + sub_type="bearer", + field_name="Authorization", + ) + ), + ] + + class UpdateWorkflowRequestTypedDict(TypedDict): update_workflow: shared_updateworkflow.UpdateWorkflowTypedDict workflow_id: str diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index 0ab9d4af..5b718867 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -257,7 +257,6 @@ PartitionParameters, PartitionParametersTypedDict, Strategy, - VLMModel, VLMModelProvider, ) from .pineconedestinationconnectorconfig import ( @@ -622,7 +621,6 @@ "UpdateWorkflow", "UpdateWorkflowSchedule", "UpdateWorkflowTypedDict", - "VLMModel", "VLMModelProvider", "ValidationError", "ValidationErrorTypedDict", @@ -796,7 +794,6 @@ "PartitionParameters": ".partition_parameters", "PartitionParametersTypedDict": ".partition_parameters", "Strategy": ".partition_parameters", - "VLMModel": ".partition_parameters", "VLMModelProvider": ".partition_parameters", "PineconeDestinationConnectorConfig": ".pineconedestinationconnectorconfig", "PineconeDestinationConnectorConfigTypedDict": ".pineconedestinationconnectorconfig", diff --git a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py index 5ab64381..8ff672e0 100644 --- a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py @@ -43,7 +43,7 @@ class DatabricksVDTDestinationConnectorConfigInput(BaseModel): database: Optional[str] = "default" - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = "default" table_name: OptionalNullable[str] = UNSET diff --git a/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py b/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py index f516bde4..a056900b 100644 --- a/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py @@ -30,4 +30,4 @@ class DatabricksVolumesConnectorConfigInput(BaseModel): volume_path: str - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = "default" diff --git a/src/unstructured_client/models/shared/partition_parameters.py b/src/unstructured_client/models/shared/partition_parameters.py index e50ade3a..0098c0fe 100644 --- a/src/unstructured_client/models/shared/partition_parameters.py +++ b/src/unstructured_client/models/shared/partition_parameters.py @@ -64,35 +64,6 @@ class Strategy(str, Enum, metaclass=utils.OpenEnumMeta): VLM = "vlm" -class VLMModel(str, Enum, metaclass=utils.OpenEnumMeta): - r"""The VLM Model to use.""" - - CLAUDE_3_5_SONNET_20241022 = "claude-3-5-sonnet-20241022" - CLAUDE_3_7_SONNET_20250219 = "claude-3-7-sonnet-20250219" - GPT_4O = "gpt-4o" - GEMINI_1_5_PRO = "gemini-1.5-pro" - US_AMAZON_NOVA_PRO_V1_0 = "us.amazon.nova-pro-v1:0" - US_AMAZON_NOVA_LITE_V1_0 = "us.amazon.nova-lite-v1:0" - US_ANTHROPIC_CLAUDE_3_7_SONNET_20250219_V1_0 = ( - "us.anthropic.claude-3-7-sonnet-20250219-v1:0" - ) - US_ANTHROPIC_CLAUDE_3_5_SONNET_20241022_V2_0 = ( - "us.anthropic.claude-3-5-sonnet-20241022-v2:0" - ) - US_ANTHROPIC_CLAUDE_3_OPUS_20240229_V1_0 = ( - "us.anthropic.claude-3-opus-20240229-v1:0" - ) - US_ANTHROPIC_CLAUDE_3_HAIKU_20240307_V1_0 = ( - "us.anthropic.claude-3-haiku-20240307-v1:0" - ) - US_ANTHROPIC_CLAUDE_3_SONNET_20240229_V1_0 = ( - "us.anthropic.claude-3-sonnet-20240229-v1:0" - ) - US_META_LLAMA3_2_90B_INSTRUCT_V1_0 = "us.meta.llama3-2-90b-instruct-v1:0" - US_META_LLAMA3_2_11B_INSTRUCT_V1_0 = "us.meta.llama3-2-11b-instruct-v1:0" - GEMINI_2_0_FLASH_001 = "gemini-2.0-flash-001" - - class VLMModelProvider(str, Enum, metaclass=utils.OpenEnumMeta): r"""The VLM Model provider to use.""" @@ -116,6 +87,8 @@ class PartitionParametersTypedDict(TypedDict): r"""A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype.""" coordinates: NotRequired[bool] r"""If `True`, return coordinates for each element extracted via OCR. Default: `False`""" + do_not_break_similarity_on_footer_header: NotRequired[bool] + r"""When `True`, footer, header, and page number are always considered similar to the text before them for chunk by similarity method. This allows chunk by similarity to connect contents across page better.""" encoding: NotRequired[Nullable[str]] r"""The encoding method used to decode the text input. Default: utf-8""" extract_image_block_types: NotRequired[List[str]] @@ -180,7 +153,7 @@ class PartitionParametersTypedDict(TypedDict): r"""The OCR agent to use for table ocr inference.""" unique_element_ids: NotRequired[bool] r"""When `True`, assign UUIDs to element IDs, which guarantees their uniqueness (useful when using them as primary keys in database). Otherwise a SHA-256 of element text is used. Default: `False`""" - vlm_model: NotRequired[VLMModel] + vlm_model: NotRequired[str] r"""The VLM Model to use.""" vlm_model_provider: NotRequired[VLMModelProvider] r"""The VLM Model provider to use.""" @@ -208,6 +181,11 @@ class PartitionParameters(BaseModel): coordinates: Annotated[Optional[bool], FieldMetadata(multipart=True)] = False r"""If `True`, return coordinates for each element extracted via OCR. Default: `False`""" + do_not_break_similarity_on_footer_header: Annotated[ + Optional[bool], FieldMetadata(multipart=True) + ] = False + r"""When `True`, footer, header, and page number are always considered similar to the text before them for chunk by similarity method. This allows chunk by similarity to connect contents across page better.""" + encoding: Annotated[OptionalNullable[str], FieldMetadata(multipart=True)] = None r"""The encoding method used to decode the text input. Default: utf-8""" @@ -352,10 +330,7 @@ class PartitionParameters(BaseModel): unique_element_ids: Annotated[Optional[bool], FieldMetadata(multipart=True)] = False r"""When `True`, assign UUIDs to element IDs, which guarantees their uniqueness (useful when using them as primary keys in database). Otherwise a SHA-256 of element text is used. Default: `False`""" - vlm_model: Annotated[ - Annotated[Optional[VLMModel], PlainValidator(validate_open_enum(False))], - FieldMetadata(multipart=True), - ] = None + vlm_model: Annotated[Optional[str], FieldMetadata(multipart=True)] = None r"""The VLM Model to use.""" vlm_model_provider: Annotated[ @@ -376,6 +351,7 @@ def serialize_model(self, handler): "combine_under_n_chars", "content_type", "coordinates", + "do_not_break_similarity_on_footer_header", "encoding", "extract_image_block_types", "gz_uncompressed_content_type", diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py index 47e74cd5..a1798144 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py @@ -20,11 +20,11 @@ class SnowflakeDestinationConnectorConfigTypedDict(TypedDict): host: str password: str role: str + schema_: str user: str batch_size: NotRequired[int] port: NotRequired[int] record_id_key: NotRequired[Nullable[str]] - schema_: NotRequired[str] table_name: NotRequired[str] @@ -39,6 +39,8 @@ class SnowflakeDestinationConnectorConfig(BaseModel): role: str + schema_: Annotated[str, pydantic.Field(alias="schema")] + user: str batch_size: Optional[int] = 50 @@ -47,19 +49,11 @@ class SnowflakeDestinationConnectorConfig(BaseModel): record_id_key: OptionalNullable[str] = UNSET - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None - table_name: Optional[str] = "elements" @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "batch_size", - "port", - "record_id_key", - "schema", - "table_name", - ] + optional_fields = ["batch_size", "port", "record_id_key", "table_name"] nullable_fields = ["record_id_key"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py index 3c9040c9..105f197c 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py @@ -20,11 +20,11 @@ class SnowflakeDestinationConnectorConfigInputTypedDict(TypedDict): host: str password: str role: str + schema_: str user: str batch_size: NotRequired[int] port: NotRequired[int] record_id_key: NotRequired[Nullable[str]] - schema_: NotRequired[str] table_name: NotRequired[str] @@ -39,6 +39,8 @@ class SnowflakeDestinationConnectorConfigInput(BaseModel): role: str + schema_: Annotated[str, pydantic.Field(alias="schema")] + user: str batch_size: Optional[int] = 50 @@ -47,19 +49,11 @@ class SnowflakeDestinationConnectorConfigInput(BaseModel): record_id_key: OptionalNullable[str] = UNSET - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None - table_name: Optional[str] = "elements" @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "batch_size", - "port", - "record_id_key", - "schema", - "table_name", - ] + optional_fields = ["batch_size", "port", "record_id_key", "table_name"] nullable_fields = ["record_id_key"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py index 0fafc35f..e7aa07a5 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py @@ -21,12 +21,12 @@ class SnowflakeSourceConnectorConfigTypedDict(TypedDict): id_column: str password: str role: str + schema_: str table_name: str user: str batch_size: NotRequired[int] fields: NotRequired[Nullable[List[str]]] port: NotRequired[int] - schema_: NotRequired[str] class SnowflakeSourceConnectorConfig(BaseModel): @@ -42,6 +42,8 @@ class SnowflakeSourceConnectorConfig(BaseModel): role: str + schema_: Annotated[str, pydantic.Field(alias="schema")] + table_name: str user: str @@ -52,11 +54,9 @@ class SnowflakeSourceConnectorConfig(BaseModel): port: Optional[int] = 443 - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None - @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["batch_size", "fields", "port", "schema"] + optional_fields = ["batch_size", "fields", "port"] nullable_fields = ["fields"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py index 792d8462..e801d514 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py @@ -21,12 +21,12 @@ class SnowflakeSourceConnectorConfigInputTypedDict(TypedDict): id_column: str password: str role: str + schema_: str table_name: str user: str batch_size: NotRequired[int] fields: NotRequired[Nullable[List[str]]] port: NotRequired[int] - schema_: NotRequired[str] class SnowflakeSourceConnectorConfigInput(BaseModel): @@ -42,6 +42,8 @@ class SnowflakeSourceConnectorConfigInput(BaseModel): role: str + schema_: Annotated[str, pydantic.Field(alias="schema")] + table_name: str user: str @@ -52,11 +54,9 @@ class SnowflakeSourceConnectorConfigInput(BaseModel): port: Optional[int] = 443 - schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None - @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["batch_size", "fields", "port", "schema"] + optional_fields = ["batch_size", "fields", "port"] nullable_fields = ["fields"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/workflowinformation.py b/src/unstructured_client/models/shared/workflowinformation.py index 599ce3f2..2025fa84 100644 --- a/src/unstructured_client/models/shared/workflowinformation.py +++ b/src/unstructured_client/models/shared/workflowinformation.py @@ -7,7 +7,7 @@ from .workflowtype import WorkflowType from datetime import datetime from pydantic import model_serializer -from typing import List +from typing import List, Optional from typing_extensions import NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -26,7 +26,7 @@ class WorkflowInformationTypedDict(TypedDict): sources: List[str] status: WorkflowState workflow_nodes: List[WorkflowNodeTypedDict] - reprocess_all: NotRequired[Nullable[bool]] + reprocess_all: NotRequired[bool] schedule: NotRequired[Nullable[WorkflowScheduleTypedDict]] updated_at: NotRequired[Nullable[datetime]] workflow_type: NotRequired[Nullable[WorkflowType]] @@ -47,7 +47,7 @@ class WorkflowInformation(BaseModel): workflow_nodes: List[WorkflowNode] - reprocess_all: OptionalNullable[bool] = UNSET + reprocess_all: Optional[bool] = False schedule: OptionalNullable[WorkflowSchedule] = UNSET @@ -58,7 +58,7 @@ class WorkflowInformation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): optional_fields = ["reprocess_all", "schedule", "updated_at", "workflow_type"] - nullable_fields = ["reprocess_all", "schedule", "updated_at", "workflow_type"] + nullable_fields = ["schedule", "updated_at", "workflow_type"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/sources.py b/src/unstructured_client/sources.py index 48bd82da..a3d9c948 100644 --- a/src/unstructured_client/sources.py +++ b/src/unstructured_client/sources.py @@ -13,6 +13,10 @@ class Sources(BaseSDK): def create_connection_check_sources( self, *, + security: Union[ + operations.CreateConnectionCheckSourcesSecurity, + operations.CreateConnectionCheckSourcesSecurityTypedDict, + ], request: Union[ operations.CreateConnectionCheckSourcesRequest, operations.CreateConnectionCheckSourcesRequestTypedDict, @@ -26,6 +30,7 @@ def create_connection_check_sources( Initiates a connection check for the specified source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -60,7 +65,9 @@ def create_connection_check_sources( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateConnectionCheckSourcesSecurity + ), timeout_ms=timeout_ms, ) @@ -81,8 +88,8 @@ def create_connection_check_sources( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_connection_check_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -116,6 +123,10 @@ def create_connection_check_sources( async def create_connection_check_sources_async( self, *, + security: Union[ + operations.CreateConnectionCheckSourcesSecurity, + operations.CreateConnectionCheckSourcesSecurityTypedDict, + ], request: Union[ operations.CreateConnectionCheckSourcesRequest, operations.CreateConnectionCheckSourcesRequestTypedDict, @@ -129,6 +140,7 @@ async def create_connection_check_sources_async( Initiates a connection check for the specified source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -163,7 +175,9 @@ async def create_connection_check_sources_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateConnectionCheckSourcesSecurity + ), timeout_ms=timeout_ms, ) @@ -184,8 +198,8 @@ async def create_connection_check_sources_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_connection_check_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -219,6 +233,9 @@ async def create_connection_check_sources_async( def create_source( self, *, + security: Union[ + operations.CreateSourceSecurity, operations.CreateSourceSecurityTypedDict + ], request: Union[ operations.CreateSourceRequest, operations.CreateSourceRequestTypedDict ], @@ -231,6 +248,7 @@ def create_source( Create a new source connector using the provided configuration and name. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -263,7 +281,9 @@ def create_source( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateSourceSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_source_connector, False, @@ -291,8 +311,8 @@ def create_source( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -326,6 +346,9 @@ def create_source( async def create_source_async( self, *, + security: Union[ + operations.CreateSourceSecurity, operations.CreateSourceSecurityTypedDict + ], request: Union[ operations.CreateSourceRequest, operations.CreateSourceRequestTypedDict ], @@ -338,6 +361,7 @@ async def create_source_async( Create a new source connector using the provided configuration and name. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -370,7 +394,9 @@ async def create_source_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateSourceSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_source_connector, False, @@ -398,8 +424,8 @@ async def create_source_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -433,6 +459,9 @@ async def create_source_async( def delete_source( self, *, + security: Union[ + operations.DeleteSourceSecurity, operations.DeleteSourceSecurityTypedDict + ], request: Union[ operations.DeleteSourceRequest, operations.DeleteSourceRequestTypedDict ], @@ -445,6 +474,7 @@ def delete_source( Delete a specific source connector identified by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -477,7 +507,9 @@ def delete_source( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteSourceSecurity + ), timeout_ms=timeout_ms, ) @@ -498,8 +530,8 @@ def delete_source( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -531,6 +563,9 @@ def delete_source( async def delete_source_async( self, *, + security: Union[ + operations.DeleteSourceSecurity, operations.DeleteSourceSecurityTypedDict + ], request: Union[ operations.DeleteSourceRequest, operations.DeleteSourceRequestTypedDict ], @@ -543,6 +578,7 @@ async def delete_source_async( Delete a specific source connector identified by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -575,7 +611,9 @@ async def delete_source_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteSourceSecurity + ), timeout_ms=timeout_ms, ) @@ -596,8 +634,8 @@ async def delete_source_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -629,6 +667,10 @@ async def delete_source_async( def get_connection_check_sources( self, *, + security: Union[ + operations.GetConnectionCheckSourcesSecurity, + operations.GetConnectionCheckSourcesSecurityTypedDict, + ], request: Union[ operations.GetConnectionCheckSourcesRequest, operations.GetConnectionCheckSourcesRequestTypedDict, @@ -642,6 +684,7 @@ def get_connection_check_sources( Retrieves the most recent connection check for the specified source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -676,7 +719,9 @@ def get_connection_check_sources( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetConnectionCheckSourcesSecurity + ), timeout_ms=timeout_ms, ) @@ -697,8 +742,8 @@ def get_connection_check_sources( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_connection_check_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -732,6 +777,10 @@ def get_connection_check_sources( async def get_connection_check_sources_async( self, *, + security: Union[ + operations.GetConnectionCheckSourcesSecurity, + operations.GetConnectionCheckSourcesSecurityTypedDict, + ], request: Union[ operations.GetConnectionCheckSourcesRequest, operations.GetConnectionCheckSourcesRequestTypedDict, @@ -745,6 +794,7 @@ async def get_connection_check_sources_async( Retrieves the most recent connection check for the specified source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -779,7 +829,9 @@ async def get_connection_check_sources_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.GetConnectionCheckSourcesSecurity + ), timeout_ms=timeout_ms, ) @@ -800,8 +852,8 @@ async def get_connection_check_sources_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_connection_check_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -835,6 +887,9 @@ async def get_connection_check_sources_async( def get_source( self, *, + security: Union[ + operations.GetSourceSecurity, operations.GetSourceSecurityTypedDict + ], request: Union[ operations.GetSourceRequest, operations.GetSourceRequestTypedDict ], @@ -847,6 +902,7 @@ def get_source( Retrieve detailed information for a specific source connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -879,7 +935,7 @@ def get_source( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetSourceSecurity), timeout_ms=timeout_ms, ) @@ -900,8 +956,8 @@ def get_source( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -935,6 +991,9 @@ def get_source( async def get_source_async( self, *, + security: Union[ + operations.GetSourceSecurity, operations.GetSourceSecurityTypedDict + ], request: Union[ operations.GetSourceRequest, operations.GetSourceRequestTypedDict ], @@ -947,6 +1006,7 @@ async def get_source_async( Retrieve detailed information for a specific source connector by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -979,7 +1039,7 @@ async def get_source_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetSourceSecurity), timeout_ms=timeout_ms, ) @@ -1000,8 +1060,8 @@ async def get_source_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1035,6 +1095,9 @@ async def get_source_async( def list_sources( self, *, + security: Union[ + operations.ListSourcesSecurity, operations.ListSourcesSecurityTypedDict + ], request: Union[ operations.ListSourcesRequest, operations.ListSourcesRequestTypedDict ], @@ -1047,6 +1110,7 @@ def list_sources( Retrieve a list of available source connectors. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1079,7 +1143,7 @@ def list_sources( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.ListSourcesSecurity), timeout_ms=timeout_ms, ) @@ -1100,8 +1164,8 @@ def list_sources( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1135,6 +1199,9 @@ def list_sources( async def list_sources_async( self, *, + security: Union[ + operations.ListSourcesSecurity, operations.ListSourcesSecurityTypedDict + ], request: Union[ operations.ListSourcesRequest, operations.ListSourcesRequestTypedDict ], @@ -1147,6 +1214,7 @@ async def list_sources_async( Retrieve a list of available source connectors. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1179,7 +1247,7 @@ async def list_sources_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.ListSourcesSecurity), timeout_ms=timeout_ms, ) @@ -1200,8 +1268,8 @@ async def list_sources_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_sources", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1235,6 +1303,9 @@ async def list_sources_async( def update_source( self, *, + security: Union[ + operations.UpdateSourceSecurity, operations.UpdateSourceSecurityTypedDict + ], request: Union[ operations.UpdateSourceRequest, operations.UpdateSourceRequestTypedDict ], @@ -1247,6 +1318,7 @@ def update_source( Update the configuration of an existing source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1279,7 +1351,9 @@ def update_source( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateSourceSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_source_connector, False, @@ -1307,8 +1381,8 @@ def update_source( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1342,6 +1416,9 @@ def update_source( async def update_source_async( self, *, + security: Union[ + operations.UpdateSourceSecurity, operations.UpdateSourceSecurityTypedDict + ], request: Union[ operations.UpdateSourceRequest, operations.UpdateSourceRequestTypedDict ], @@ -1354,6 +1431,7 @@ async def update_source_async( Update the configuration of an existing source connector. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1386,7 +1464,9 @@ async def update_source_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateSourceSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_source_connector, False, @@ -1414,8 +1494,8 @@ async def update_source_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_source", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], diff --git a/src/unstructured_client/workflows.py b/src/unstructured_client/workflows.py index 7a2fc6bd..81522ebc 100644 --- a/src/unstructured_client/workflows.py +++ b/src/unstructured_client/workflows.py @@ -13,6 +13,10 @@ class Workflows(BaseSDK): def create_workflow( self, *, + security: Union[ + operations.CreateWorkflowSecurity, + operations.CreateWorkflowSecurityTypedDict, + ], request: Union[ operations.CreateWorkflowRequest, operations.CreateWorkflowRequestTypedDict ], @@ -25,6 +29,7 @@ def create_workflow( Create a new workflow, either custom or auto, and configure its settings. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -57,7 +62,9 @@ def create_workflow( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateWorkflowSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_workflow, False, False, "json", shared.CreateWorkflow ), @@ -81,8 +88,8 @@ def create_workflow( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -116,6 +123,10 @@ def create_workflow( async def create_workflow_async( self, *, + security: Union[ + operations.CreateWorkflowSecurity, + operations.CreateWorkflowSecurityTypedDict, + ], request: Union[ operations.CreateWorkflowRequest, operations.CreateWorkflowRequestTypedDict ], @@ -128,6 +139,7 @@ async def create_workflow_async( Create a new workflow, either custom or auto, and configure its settings. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -160,7 +172,9 @@ async def create_workflow_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.CreateWorkflowSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.create_workflow, False, False, "json", shared.CreateWorkflow ), @@ -184,8 +198,8 @@ async def create_workflow_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="create_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -219,6 +233,10 @@ async def create_workflow_async( def delete_workflow( self, *, + security: Union[ + operations.DeleteWorkflowSecurity, + operations.DeleteWorkflowSecurityTypedDict, + ], request: Union[ operations.DeleteWorkflowRequest, operations.DeleteWorkflowRequestTypedDict ], @@ -231,6 +249,7 @@ def delete_workflow( Delete a workflow by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -263,7 +282,9 @@ def delete_workflow( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteWorkflowSecurity + ), timeout_ms=timeout_ms, ) @@ -284,8 +305,8 @@ def delete_workflow( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -317,6 +338,10 @@ def delete_workflow( async def delete_workflow_async( self, *, + security: Union[ + operations.DeleteWorkflowSecurity, + operations.DeleteWorkflowSecurityTypedDict, + ], request: Union[ operations.DeleteWorkflowRequest, operations.DeleteWorkflowRequestTypedDict ], @@ -329,6 +354,7 @@ async def delete_workflow_async( Delete a workflow by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -361,7 +387,9 @@ async def delete_workflow_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.DeleteWorkflowSecurity + ), timeout_ms=timeout_ms, ) @@ -382,8 +410,8 @@ async def delete_workflow_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="delete_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -415,6 +443,9 @@ async def delete_workflow_async( def get_workflow( self, *, + security: Union[ + operations.GetWorkflowSecurity, operations.GetWorkflowSecurityTypedDict + ], request: Union[ operations.GetWorkflowRequest, operations.GetWorkflowRequestTypedDict ], @@ -427,6 +458,7 @@ def get_workflow( Retrieve detailed information for a specific workflow by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -459,7 +491,7 @@ def get_workflow( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetWorkflowSecurity), timeout_ms=timeout_ms, ) @@ -480,8 +512,8 @@ def get_workflow( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -515,6 +547,9 @@ def get_workflow( async def get_workflow_async( self, *, + security: Union[ + operations.GetWorkflowSecurity, operations.GetWorkflowSecurityTypedDict + ], request: Union[ operations.GetWorkflowRequest, operations.GetWorkflowRequestTypedDict ], @@ -527,6 +562,7 @@ async def get_workflow_async( Retrieve detailed information for a specific workflow by its ID. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -559,7 +595,7 @@ async def get_workflow_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.GetWorkflowSecurity), timeout_ms=timeout_ms, ) @@ -580,8 +616,8 @@ async def get_workflow_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="get_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -615,6 +651,9 @@ async def get_workflow_async( def list_workflows( self, *, + security: Union[ + operations.ListWorkflowsSecurity, operations.ListWorkflowsSecurityTypedDict + ], request: Union[ operations.ListWorkflowsRequest, operations.ListWorkflowsRequestTypedDict ], @@ -627,6 +666,7 @@ def list_workflows( Retrieve a list of workflows, optionally filtered by source, destination, state, name, date range, and supports pagination and sorting. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -659,7 +699,9 @@ def list_workflows( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.ListWorkflowsSecurity + ), timeout_ms=timeout_ms, ) @@ -680,8 +722,8 @@ def list_workflows( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_workflows", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -715,6 +757,9 @@ def list_workflows( async def list_workflows_async( self, *, + security: Union[ + operations.ListWorkflowsSecurity, operations.ListWorkflowsSecurityTypedDict + ], request: Union[ operations.ListWorkflowsRequest, operations.ListWorkflowsRequestTypedDict ], @@ -727,6 +772,7 @@ async def list_workflows_async( Retrieve a list of workflows, optionally filtered by source, destination, state, name, date range, and supports pagination and sorting. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -759,7 +805,9 @@ async def list_workflows_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.ListWorkflowsSecurity + ), timeout_ms=timeout_ms, ) @@ -780,8 +828,8 @@ async def list_workflows_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="list_workflows", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -815,6 +863,9 @@ async def list_workflows_async( def run_workflow( self, *, + security: Union[ + operations.RunWorkflowSecurity, operations.RunWorkflowSecurityTypedDict + ], request: Union[ operations.RunWorkflowRequest, operations.RunWorkflowRequestTypedDict ], @@ -827,6 +878,7 @@ def run_workflow( Run a workflow by triggering a new job if none is currently active. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -859,7 +911,7 @@ def run_workflow( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.RunWorkflowSecurity), get_serialized_body=lambda: utils.serialize_request_body( request.body_run_workflow, False, @@ -887,8 +939,8 @@ def run_workflow( config=self.sdk_configuration, base_url=base_url or "", operation_id="run_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -922,6 +974,9 @@ def run_workflow( async def run_workflow_async( self, *, + security: Union[ + operations.RunWorkflowSecurity, operations.RunWorkflowSecurityTypedDict + ], request: Union[ operations.RunWorkflowRequest, operations.RunWorkflowRequestTypedDict ], @@ -934,6 +989,7 @@ async def run_workflow_async( Run a workflow by triggering a new job if none is currently active. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -966,7 +1022,7 @@ async def run_workflow_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model(security, operations.RunWorkflowSecurity), get_serialized_body=lambda: utils.serialize_request_body( request.body_run_workflow, False, @@ -994,8 +1050,8 @@ async def run_workflow_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="run_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1029,6 +1085,10 @@ async def run_workflow_async( def update_workflow( self, *, + security: Union[ + operations.UpdateWorkflowSecurity, + operations.UpdateWorkflowSecurityTypedDict, + ], request: Union[ operations.UpdateWorkflowRequest, operations.UpdateWorkflowRequestTypedDict ], @@ -1041,6 +1101,7 @@ def update_workflow( Update an existing workflow's name, connectors, schedule, or workflow type. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1073,7 +1134,9 @@ def update_workflow( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateWorkflowSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_workflow, False, False, "json", shared.UpdateWorkflow ), @@ -1097,8 +1160,8 @@ def update_workflow( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"], @@ -1132,6 +1195,10 @@ def update_workflow( async def update_workflow_async( self, *, + security: Union[ + operations.UpdateWorkflowSecurity, + operations.UpdateWorkflowSecurityTypedDict, + ], request: Union[ operations.UpdateWorkflowRequest, operations.UpdateWorkflowRequestTypedDict ], @@ -1144,6 +1211,7 @@ async def update_workflow_async( Update an existing workflow's name, connectors, schedule, or workflow type. + :param security: :param request: The request object to send. :param retries: Override the default retry configuration for this method :param server_url: Override the default server URL for this method @@ -1176,7 +1244,9 @@ async def update_workflow_async( user_agent_header="user-agent", accept_header_value="application/json", http_headers=http_headers, - security=self.sdk_configuration.security, + security=utils.get_pydantic_model( + security, operations.UpdateWorkflowSecurity + ), get_serialized_body=lambda: utils.serialize_request_body( request.update_workflow, False, False, "json", shared.UpdateWorkflow ), @@ -1200,8 +1270,8 @@ async def update_workflow_async( config=self.sdk_configuration, base_url=base_url or "", operation_id="update_workflow", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, + oauth2_scopes=None, + security_source=security, ), request=req, error_status_codes=["422", "4XX", "5XX"],