From a0385da9c97c454bf4d8df999fe31a2c2d4cc224 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Thu, 17 Apr 2025 00:11:21 +0000 Subject: [PATCH 1/3] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.533.0 --- .speakeasy/gen.lock | 82 ++- .speakeasy/workflow.lock | 14 +- README.md | 98 +--- RELEASES.md | 12 +- USAGE.md | 38 +- codeSamples.yaml | 26 +- ...urcessourceidconnectioncheckpostrequest.md | 9 + ...rcessourceidconnectioncheckpostresponse.md | 11 + ...destinationidconnectioncheckpostrequest.md | 9 + ...estinationidconnectioncheckpostresponse.md | 11 + ...ourcessourceidconnectioncheckgetrequest.md | 9 + ...urcessourceidconnectioncheckgetresponse.md | 11 + ...sdestinationidconnectioncheckgetrequest.md | 9 + ...destinationidconnectioncheckgetresponse.md | 11 + .../shared/azuredestinationconnectorconfig.md | 12 - .../azuredestinationconnectorconfiginput.md | 12 - docs/models/shared/config.md | 6 - docs/models/shared/connectioncheckstatus.md | 10 + docs/models/shared/createworkflow.md | 1 + docs/models/shared/dagnodeconnectioncheck.md | 12 + .../destinationconnectorinformationconfig.md | 6 - .../models/shared/destinationconnectortype.md | 1 - .../snowflakedestinationconnectorconfig.md | 26 +- ...nowflakedestinationconnectorconfiginput.md | 4 +- .../shared/snowflakesourceconnectorconfig.md | 6 +- .../updatedestinationconnectorconfig.md | 6 - docs/models/shared/updateworkflow.md | 1 + docs/models/shared/workflowinformation.md | 1 + docs/models/shared/workflownode.md | 14 +- docs/models/shared/workflownodetype.md | 11 - docs/sdks/destinations/README.md | 108 +++- docs/sdks/sources/README.md | 106 ++++ gen.yaml | 2 +- poetry.lock | 292 +++++----- pyproject.toml | 6 +- src/unstructured_client/_version.py | 6 +- src/unstructured_client/destinations.py | 516 ++++++++++++++++++ .../models/operations/__init__.py | 56 ++ ...sources_source_id_connection_check_post.py | 106 ++++ ...ns_destination_id_connection_check_post.py | 110 ++++ ..._sources_source_id_connection_check_get.py | 106 ++++ ...ons_destination_id_connection_check_get.py | 110 ++++ .../models/shared/__init__.py | 22 +- .../azuredestinationconnectorconfiginput.py | 72 --- ...ownodetype.py => connectioncheckstatus.py} | 9 +- .../shared/createdestinationconnector.py | 18 +- .../models/shared/createworkflow.py | 19 +- ...torconfig.py => dagnodeconnectioncheck.py} | 40 +- .../shared/destinationconnectorinformation.py | 18 +- .../models/shared/destinationconnectortype.py | 1 - .../snowflakedestinationconnectorconfig.py | 67 ++- ...nowflakedestinationconnectorconfiginput.py | 24 +- .../shared/snowflakesourceconnectorconfig.py | 57 +- .../shared/updatedestinationconnector.py | 18 +- .../models/shared/updateworkflow.py | 5 + .../models/shared/workflowinformation.py | 7 +- .../models/shared/workflownode.py | 5 +- src/unstructured_client/sources.py | 516 ++++++++++++++++++ src/unstructured_client/types/basemodel.py | 6 +- 59 files changed, 2345 insertions(+), 562 deletions(-) create mode 100644 docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md create mode 100644 docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md create mode 100644 docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md create mode 100644 docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md create mode 100644 docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md create mode 100644 docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md create mode 100644 docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md create mode 100644 docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md delete mode 100644 docs/models/shared/azuredestinationconnectorconfig.md delete mode 100644 docs/models/shared/azuredestinationconnectorconfiginput.md create mode 100644 docs/models/shared/connectioncheckstatus.md create mode 100644 docs/models/shared/dagnodeconnectioncheck.md delete mode 100644 docs/models/shared/workflownodetype.md create mode 100644 src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py create mode 100644 src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py create mode 100644 src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py create mode 100644 src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py delete mode 100644 src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py rename src/unstructured_client/models/shared/{workflownodetype.py => connectioncheckstatus.py} (50%) rename src/unstructured_client/models/shared/{azuredestinationconnectorconfig.py => dagnodeconnectioncheck.py} (58%) diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 01627686..8d35dea0 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: 3aa362e60bfd40fded2c230b83285656 + docChecksum: e3c8da4d880f93f1bf483a45d1fe2016 docVersion: 1.1.7 - speakeasyVersion: 1.531.0 - generationVersion: 2.568.2 - releaseVersion: 0.32.3 - configChecksum: af0d8669486cc7faf305ae45ca484a80 + speakeasyVersion: 1.533.0 + generationVersion: 2.578.0 + releaseVersion: 0.33.0 + configChecksum: d3a6fe7f2ae7f430c8fff9c158af4f46 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -16,7 +16,7 @@ features: acceptHeaders: 3.0.0 additionalDependencies: 1.0.0 constsAndDefaults: 1.0.5 - core: 5.12.6 + core: 5.14.0 defaultEnabledRetries: 0.2.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.3.2 @@ -46,6 +46,10 @@ generatedFiles: - docs/models/errors/servererror.md - docs/models/operations/canceljobrequest.md - docs/models/operations/canceljobresponse.md + - docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md + - docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md + - docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md + - docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md - docs/models/operations/createdestinationrequest.md - docs/models/operations/createdestinationresponse.md - docs/models/operations/createsourcerequest.md @@ -60,6 +64,10 @@ generatedFiles: - docs/models/operations/deleteworkflowresponse.md - docs/models/operations/downloadjoboutputrequest.md - docs/models/operations/downloadjoboutputresponse.md + - docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md + - docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md + - docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md + - docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md - docs/models/operations/getdestinationrequest.md - docs/models/operations/getdestinationresponse.md - docs/models/operations/getjobrequest.md @@ -90,8 +98,6 @@ generatedFiles: - docs/models/shared/astradbconnectorconfiginput.md - docs/models/shared/azureaisearchconnectorconfig.md - docs/models/shared/azureaisearchconnectorconfiginput.md - - docs/models/shared/azuredestinationconnectorconfig.md - - docs/models/shared/azuredestinationconnectorconfiginput.md - docs/models/shared/azuresourceconnectorconfig.md - docs/models/shared/azuresourceconnectorconfiginput.md - docs/models/shared/bodyrunworkflow.md @@ -100,6 +106,7 @@ generatedFiles: - docs/models/shared/config.md - docs/models/shared/confluencesourceconnectorconfig.md - docs/models/shared/confluencesourceconnectorconfiginput.md + - docs/models/shared/connectioncheckstatus.md - docs/models/shared/couchbasedestinationconnectorconfig.md - docs/models/shared/couchbasedestinationconnectorconfiginput.md - docs/models/shared/couchbasesourceconnectorconfig.md @@ -109,6 +116,7 @@ generatedFiles: - docs/models/shared/createsourceconnectorconfig.md - docs/models/shared/createworkflow.md - docs/models/shared/crontabentry.md + - docs/models/shared/dagnodeconnectioncheck.md - docs/models/shared/databricksvdtdestinationconnectorconfig.md - docs/models/shared/databricksvdtdestinationconnectorconfiginput.md - docs/models/shared/databricksvolumesconnectorconfig.md @@ -195,7 +203,6 @@ generatedFiles: - docs/models/shared/weaviatedestinationconnectorconfiginput.md - docs/models/shared/workflowinformation.md - docs/models/shared/workflownode.md - - docs/models/shared/workflownodetype.md - docs/models/shared/workflowschedule.md - docs/models/shared/workflowstate.md - docs/models/shared/workflowtype.md @@ -230,6 +237,8 @@ generatedFiles: - src/unstructured_client/models/errors/servererror.py - src/unstructured_client/models/operations/__init__.py - src/unstructured_client/models/operations/cancel_job.py + - src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py + - src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py - src/unstructured_client/models/operations/create_destination.py - src/unstructured_client/models/operations/create_source.py - src/unstructured_client/models/operations/create_workflow.py @@ -237,7 +246,9 @@ generatedFiles: - src/unstructured_client/models/operations/delete_source.py - src/unstructured_client/models/operations/delete_workflow.py - src/unstructured_client/models/operations/download_job_output.py + - src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py - src/unstructured_client/models/operations/get_destination.py + - src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py - src/unstructured_client/models/operations/get_job.py - src/unstructured_client/models/operations/get_source.py - src/unstructured_client/models/operations/get_workflow.py @@ -255,8 +266,6 @@ generatedFiles: - src/unstructured_client/models/shared/astradbconnectorconfiginput.py - src/unstructured_client/models/shared/azureaisearchconnectorconfig.py - src/unstructured_client/models/shared/azureaisearchconnectorconfiginput.py - - src/unstructured_client/models/shared/azuredestinationconnectorconfig.py - - src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py - src/unstructured_client/models/shared/azuresourceconnectorconfig.py - src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py - src/unstructured_client/models/shared/body_run_workflow.py @@ -264,6 +273,7 @@ generatedFiles: - src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py - src/unstructured_client/models/shared/confluencesourceconnectorconfig.py - src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py + - src/unstructured_client/models/shared/connectioncheckstatus.py - src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py - src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py - src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py @@ -272,6 +282,7 @@ generatedFiles: - src/unstructured_client/models/shared/createsourceconnector.py - src/unstructured_client/models/shared/createworkflow.py - src/unstructured_client/models/shared/crontabentry.py + - src/unstructured_client/models/shared/dagnodeconnectioncheck.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py @@ -345,7 +356,6 @@ generatedFiles: - src/unstructured_client/models/shared/weaviatedestinationconnectorconfiginput.py - src/unstructured_client/models/shared/workflowinformation.py - src/unstructured_client/models/shared/workflownode.py - - src/unstructured_client/models/shared/workflownodetype.py - src/unstructured_client/models/shared/workflowschedule.py - src/unstructured_client/models/shared/workflowstate.py - src/unstructured_client/models/shared/workflowtype.py @@ -377,12 +387,12 @@ examples: create_destination: speakeasy-default-create-destination: requestBody: - application/json: {"config": {"api_endpoint": "", "batch_size": 20, "collection_name": "", "flatten_metadata": false, "token": ""}, "name": "", "type": "azure"} + application/json: {"config": {"api_endpoint": "", "batch_size": 20, "collection_name": "", "flatten_metadata": false, "token": ""}, "name": "", "type": "azure_ai_search"} responses: "200": application/json: {"config": {"api_key": "", "batch_size": 290189, "collection_name": "", "url": "https://gray-rawhide.name/"}, "created_at": "2023-10-16T03:44:52.760Z", "id": "b3cbed99-76f0-4238-9635-119a590e2345", "name": "", "type": "postgres"} "422": - application/json: {"detail": []} + application/json: {"detail": [{"loc": [""], "msg": "", "type": ""}, {"loc": [623109], "msg": "", "type": ""}, {"loc": [218326], "msg": "", "type": ""}]} delete_destination: speakeasy-default-delete-destination: parameters: @@ -592,5 +602,49 @@ examples: application/json: {"detail": []} 5XX: application/json: {"detail": "An error occurred"} + check_destination_connection_api_v1_destinations__destination_id__connection_check_post: + speakeasy-default-check-destination-connection-api-v1-destinations-destination-id-connection-check-post: + parameters: + path: + destination_id: "b65169f5-79ba-4464-918f-b0be2c07b962" + header: {} + responses: + "202": + application/json: {"created_at": "2024-12-11T22:17:57.402Z", "id": "337e8f13-6b28-466e-a173-b8a939d2c047", "status": "SUCCESS"} + "422": + application/json: {"detail": [{"loc": [], "msg": "", "type": ""}, {"loc": ["", 580213], "msg": "", "type": ""}]} + get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get: + speakeasy-default-get-destination-connection-check-api-v1-destinations-destination-id-connection-check-get: + parameters: + path: + destination_id: "3c48df35-2b2c-46f2-9aa2-d7eae993797c" + header: {} + responses: + "200": + application/json: {"created_at": "2023-08-18T13:08:22.968Z", "id": "d3ed5db0-557c-45b6-b496-8d8ddcf95c3a", "status": "SCHEDULED"} + "422": + application/json: {"detail": [{"loc": [""], "msg": "", "type": ""}, {"loc": ["", ""], "msg": "", "type": ""}, {"loc": ["", 661733, ""], "msg": "", "type": ""}]} + check_connection_api_v1_sources__source_id__connection_check_post: + speakeasy-default-check-connection-api-v1-sources-source-id-connection-check-post: + parameters: + path: + source_id: "8cb54f13-5652-423e-889c-1df1f8147126" + header: {} + responses: + "202": + application/json: {"created_at": "2023-08-17T02:17:54.227Z", "id": "12f4c45a-e6b2-4d0f-849d-2ab042bf13d2", "status": "SUCCESS"} + "422": + application/json: {"detail": [{"loc": [], "msg": "", "type": ""}, {"loc": [], "msg": "", "type": ""}]} + get_connection_check_api_v1_sources__source_id__connection_check_get: + speakeasy-default-get-connection-check-api-v1-sources-source-id-connection-check-get: + parameters: + path: + source_id: "d9c3daec-ddf9-4cef-ae8d-3a989813cc7b" + header: {} + responses: + "200": + application/json: {"created_at": "2025-01-25T05:08:46.547Z", "id": "7cc92d68-dc16-49f9-a119-c651a18a978d", "status": "SCHEDULED"} + "422": + application/json: {"detail": [{"loc": [146117], "msg": "", "type": ""}, {"loc": [417709], "msg": "", "type": ""}]} examplesVersion: 1.0.1 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9ce5c67e..bd8f6556 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.531.0 +speakeasyVersion: 1.533.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:4103407f55cdd4f14098251bb2a0dd327ad0c64bc84db4f334d9efbe32448a96 - sourceBlobDigest: sha256:8fa40f4129f20fa6f9fdb519340a3eb88dbd9c315613d187653ae752c308ebc4 + sourceRevisionDigest: sha256:a8e522e14e6e4dcd554243ec05cd244661f123d20a034f554450fde6ac22df5d + sourceBlobDigest: sha256:1549523a97b9ebd09012362367f313beb08069f42290a5186a65854ceff2ecd1 tags: - latest - - speakeasy-sdk-regen-1744059303 + - speakeasy-sdk-regen-1744330218 - 1.1.7 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:4103407f55cdd4f14098251bb2a0dd327ad0c64bc84db4f334d9efbe32448a96 - sourceBlobDigest: sha256:8fa40f4129f20fa6f9fdb519340a3eb88dbd9c315613d187653ae752c308ebc4 + sourceRevisionDigest: sha256:a8e522e14e6e4dcd554243ec05cd244661f123d20a034f554450fde6ac22df5d + sourceBlobDigest: sha256:1549523a97b9ebd09012362367f313beb08069f42290a5186a65854ceff2ecd1 codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:a4d79caa739dc0dc37a4a6b1769fb3ab52f4dfd5f5bda7902c777659182be1d7 + codeSamplesRevisionDigest: sha256:c2682243f39e191854da0810e5ebd887bb5fd4efc65079432c521644f0ee2945 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/README.md b/README.md index bf0b554c..b01df1f7 100755 --- a/README.md +++ b/README.md @@ -110,38 +110,26 @@ 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 shared from unstructured_client.utils import BackoffStrategy, RetryConfig with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_destination(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) ``` 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 shared from unstructured_client.utils import BackoffStrategy, RetryConfig @@ -149,24 +137,14 @@ with UnstructuredClient( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), ) as uc_client: - res = uc_client.destinations.create_destination(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) ``` @@ -186,7 +164,7 @@ By default, an API error will raise a errors.SDKError exception, which has the f | `.raw_response` | *httpx.Response* | The raw HTTP response | | `.body` | *str* | The response content | -When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_destination_async` method may raise the following exceptions: +When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async` method may raise the following exceptions: | Error Type | Status Code | Content Type | | -------------------------- | ----------- | ---------------- | @@ -197,31 +175,21 @@ When custom error responses are specified for an operation, the SDK may also rai ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import errors, shared +from unstructured_client.models import errors with UnstructuredClient() as uc_client: res = None try: - res = uc_client.destinations.create_destination(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) except errors.HTTPValidationError as e: # handle e.data: errors.HTTPValidationErrorData @@ -332,29 +300,18 @@ 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 shared with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_destination(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) ```
@@ -364,30 +321,19 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient -from unstructured_client.models import shared async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.create_destination_async(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) asyncio.run(main()) ``` diff --git a/RELEASES.md b/RELEASES.md index 879a0b82..8c3d0843 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -945,4 +945,14 @@ Based on: ### Generated - [python v0.32.3] . ### Releases -- [PyPI v0.32.3] https://pypi.org/project/unstructured-client/0.32.3 - . \ No newline at end of file +- [PyPI v0.32.3] https://pypi.org/project/unstructured-client/0.32.3 - . + +## 2025-04-17 00:10:08 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.533.0 (2.578.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.33.0] . +### Releases +- [PyPI v0.33.0] https://pypi.org/project/unstructured-client/0.33.0 - . \ No newline at end of file diff --git a/USAGE.md b/USAGE.md index e08d5e01..984a513c 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,29 +2,18 @@ ```python # Synchronous Example from unstructured_client import UnstructuredClient -from unstructured_client.models import shared with UnstructuredClient() as uc_client: - res = uc_client.destinations.create_destination(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) ```
@@ -34,30 +23,19 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient -from unstructured_client.models import shared async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.create_destination_async(request={ - "create_destination_connector": { - "config": { - "api_endpoint": "", - "batch_size": 20, - "collection_name": "", - "flatten_metadata": False, - "token": "", - }, - "name": "", - "type": shared.DestinationConnectorType.AZURE, - }, + res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", }) - assert res.destination_connector_information is not None + assert res.dag_node_connection_check is not None # Handle response - print(res.destination_connector_information) + print(res.dag_node_connection_check) asyncio.run(main()) ``` diff --git a/codeSamples.yaml b/codeSamples.yaml index cb83c5a6..59130d07 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -14,7 +14,7 @@ actions: "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.ASTRADB,\n \"config\": {\n \"remote_url\": \"https://fortunate-appliance.info\",\n \"anonymous\": False,\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 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.AZURE_AI_SEARCH,\n \"config\": {\n \"collection_name\": \"\",\n \"batch_size\": 20,\n \"api_endpoint\": \"\",\n \"token\": \"\",\n \"flatten_metadata\": False,\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": @@ -33,6 +33,18 @@ actions: - "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\": \"9ea9d27c-4e2e-4cb5-9a69-71bd7ec9d226\",\n \"update_destination_connector\": {\n \"config\": {\n \"host\": \"acidic-patroller.com\",\n \"database\": \"\",\n \"port\": 832931,\n \"username\": \"Salvador.Walsh-Thiel\",\n \"password\": \"vIMqbllzrdJBExE\",\n \"table_name\": \"\",\n \"batch_size\": 977983,\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_destination_connection_check_api_v1_destinations__destination_id__connection_check_get" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get(request={\n \"destination_id\": \"3c48df35-2b2c-46f2-9aa2-d7eae993797c\",\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": "check_destination_connection_api_v1_destinations__destination_id__connection_check_post" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={\n \"destination_id\": \"b65169f5-79ba-4464-918f-b0be2c07b962\",\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": @@ -87,6 +99,18 @@ actions: - "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\": \"396edec4-39e8-4ef6-ac69-c9e3ba7a8418\",\n \"update_source_connector\": {\n \"config\": {\n \"host\": \"black-and-white-obesity.info\",\n \"database\": \"\",\n \"port\": 848106,\n \"username\": \"Bruce.Stracke19\",\n \"password\": \"L8K8WEZq1xvBpSw\",\n \"table_name\": \"\",\n \"batch_size\": 177849,\n \"id_column\": \"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_api_v1_sources__source_id__connection_check_get" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_connection_check_api_v1_sources_source_id_connection_check_get(request={\n \"source_id\": \"d9c3daec-ddf9-4cef-ae8d-3a989813cc7b\",\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": "check_connection_api_v1_sources__source_id__connection_check_post" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.check_connection_api_v1_sources_source_id_connection_check_post(request={\n \"source_id\": \"8cb54f13-5652-423e-889c-1df1f8147126\",\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": diff --git a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md new file mode 100644 index 00000000..a0e6af23 --- /dev/null +++ b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md @@ -0,0 +1,9 @@ +# CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md new file mode 100644 index 00000000..7c8db3ae --- /dev/null +++ b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md @@ -0,0 +1,11 @@ +# CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md new file mode 100644 index 00000000..7115b82d --- /dev/null +++ b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md @@ -0,0 +1,9 @@ +# CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `destination_id` | *str* | :heavy_check_mark: | N/A | +| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md new file mode 100644 index 00000000..94f1c669 --- /dev/null +++ b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md @@ -0,0 +1,11 @@ +# CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md new file mode 100644 index 00000000..6479759d --- /dev/null +++ b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md @@ -0,0 +1,9 @@ +# GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `source_id` | *str* | :heavy_check_mark: | N/A | +| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md new file mode 100644 index 00000000..0baf5669 --- /dev/null +++ b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md @@ -0,0 +1,11 @@ +# GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md new file mode 100644 index 00000000..f7c37eeb --- /dev/null +++ b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md @@ -0,0 +1,9 @@ +# GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `destination_id` | *str* | :heavy_check_mark: | N/A | +| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md new file mode 100644 index 00000000..a4a9413f --- /dev/null +++ b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md @@ -0,0 +1,11 @@ +# GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | +| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | +| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/shared/azuredestinationconnectorconfig.md b/docs/models/shared/azuredestinationconnectorconfig.md deleted file mode 100644 index 2845b6b9..00000000 --- a/docs/models/shared/azuredestinationconnectorconfig.md +++ /dev/null @@ -1,12 +0,0 @@ -# AzureDestinationConnectorConfig - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | -| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/azuredestinationconnectorconfiginput.md b/docs/models/shared/azuredestinationconnectorconfiginput.md deleted file mode 100644 index d560f1ee..00000000 --- a/docs/models/shared/azuredestinationconnectorconfiginput.md +++ /dev/null @@ -1,12 +0,0 @@ -# AzureDestinationConnectorConfigInput - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | -| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/config.md b/docs/models/shared/config.md index cd0363d3..457e0fd7 100644 --- a/docs/models/shared/config.md +++ b/docs/models/shared/config.md @@ -3,12 +3,6 @@ ## Supported Types -### `shared.AzureDestinationConnectorConfigInput` - -```python -value: shared.AzureDestinationConnectorConfigInput = /* values here */ -``` - ### `shared.AstraDBConnectorConfigInput` ```python diff --git a/docs/models/shared/connectioncheckstatus.md b/docs/models/shared/connectioncheckstatus.md new file mode 100644 index 00000000..08715d17 --- /dev/null +++ b/docs/models/shared/connectioncheckstatus.md @@ -0,0 +1,10 @@ +# ConnectionCheckStatus + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `SCHEDULED` | SCHEDULED | +| `SUCCESS` | SUCCESS | +| `FAILURE` | FAILURE | \ No newline at end of file diff --git a/docs/models/shared/createworkflow.md b/docs/models/shared/createworkflow.md index 4c02f8cb..b87f290f 100644 --- a/docs/models/shared/createworkflow.md +++ b/docs/models/shared/createworkflow.md @@ -7,6 +7,7 @@ | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | `destination_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | +| `reprocess_all` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `schedule` | [OptionalNullable[shared.Schedule]](../../models/shared/schedule.md) | :heavy_minus_sign: | N/A | | `source_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `workflow_nodes` | List[[shared.WorkflowNode](../../models/shared/workflownode.md)] | :heavy_minus_sign: | N/A | diff --git a/docs/models/shared/dagnodeconnectioncheck.md b/docs/models/shared/dagnodeconnectioncheck.md new file mode 100644 index 00000000..23a8fe06 --- /dev/null +++ b/docs/models/shared/dagnodeconnectioncheck.md @@ -0,0 +1,12 @@ +# DagNodeConnectionCheck + + +## Fields + +| Field | Type | Required | Description | +| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | +| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | +| `id` | *str* | :heavy_check_mark: | N/A | +| `reason` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `reported_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | +| `status` | [shared.ConnectionCheckStatus](../../models/shared/connectioncheckstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/destinationconnectorinformationconfig.md b/docs/models/shared/destinationconnectorinformationconfig.md index f18f6d71..3a711755 100644 --- a/docs/models/shared/destinationconnectorinformationconfig.md +++ b/docs/models/shared/destinationconnectorinformationconfig.md @@ -3,12 +3,6 @@ ## Supported Types -### `shared.AzureDestinationConnectorConfig` - -```python -value: shared.AzureDestinationConnectorConfig = /* values here */ -``` - ### `shared.AstraDBConnectorConfig` ```python diff --git a/docs/models/shared/destinationconnectortype.md b/docs/models/shared/destinationconnectortype.md index 7137af3e..57c24960 100644 --- a/docs/models/shared/destinationconnectortype.md +++ b/docs/models/shared/destinationconnectortype.md @@ -5,7 +5,6 @@ | Name | Value | | -------------------------------- | -------------------------------- | -| `AZURE` | azure | | `ASTRADB` | astradb | | `AZURE_AI_SEARCH` | azure_ai_search | | `COUCHBASE` | couchbase | diff --git a/docs/models/shared/snowflakedestinationconnectorconfig.md b/docs/models/shared/snowflakedestinationconnectorconfig.md index 57339f64..c2a06ae2 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfig.md +++ b/docs/models/shared/snowflakedestinationconnectorconfig.md @@ -3,16 +3,16 @@ ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `account` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *int* | :heavy_check_mark: | N/A | -| `database` | *str* | :heavy_check_mark: | N/A | -| `host` | *str* | :heavy_check_mark: | N/A | -| `password` | *str* | :heavy_check_mark: | N/A | -| `port` | *int* | :heavy_check_mark: | N/A | -| `record_id_key` | *str* | :heavy_check_mark: | N/A | -| `role` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `table_name` | *str* | :heavy_check_mark: | N/A | -| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `account` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `database` | *str* | :heavy_check_mark: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `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 | +| `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 6f48b7f0..1948fc3d 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfiginput.md +++ b/docs/models/shared/snowflakedestinationconnectorconfiginput.md @@ -8,13 +8,11 @@ | `account` | *str* | :heavy_check_mark: | N/A | | `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | -| `fields` | List[*str*] | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | -| `id_column` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | | `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 | -| `table_name` | *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 a72ad953..0b996f6c 100644 --- a/docs/models/shared/snowflakesourceconnectorconfig.md +++ b/docs/models/shared/snowflakesourceconnectorconfig.md @@ -6,13 +6,13 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `account` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *int* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | -| `fields` | List[*str*] | :heavy_check_mark: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | | `id_column` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | -| `port` | *int* | :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 | | `table_name` | *str* | :heavy_check_mark: | N/A | diff --git a/docs/models/shared/updatedestinationconnectorconfig.md b/docs/models/shared/updatedestinationconnectorconfig.md index a7f36d4c..78d91893 100644 --- a/docs/models/shared/updatedestinationconnectorconfig.md +++ b/docs/models/shared/updatedestinationconnectorconfig.md @@ -3,12 +3,6 @@ ## Supported Types -### `shared.AzureDestinationConnectorConfigInput` - -```python -value: shared.AzureDestinationConnectorConfigInput = /* values here */ -``` - ### `shared.AstraDBConnectorConfigInput` ```python diff --git a/docs/models/shared/updateworkflow.md b/docs/models/shared/updateworkflow.md index 8c3fdf59..370b773c 100644 --- a/docs/models/shared/updateworkflow.md +++ b/docs/models/shared/updateworkflow.md @@ -7,6 +7,7 @@ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `destination_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `reprocess_all` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `schedule` | [OptionalNullable[shared.UpdateWorkflowSchedule]](../../models/shared/updateworkflowschedule.md) | :heavy_minus_sign: | N/A | | `source_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `workflow_nodes` | List[[shared.WorkflowNode](../../models/shared/workflownode.md)] | :heavy_minus_sign: | N/A | diff --git a/docs/models/shared/workflowinformation.md b/docs/models/shared/workflowinformation.md index 027d9326..d9fe6c77 100644 --- a/docs/models/shared/workflowinformation.md +++ b/docs/models/shared/workflowinformation.md @@ -9,6 +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 | | | `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/models/shared/workflownode.md b/docs/models/shared/workflownode.md index 8a4809c3..0fa04000 100644 --- a/docs/models/shared/workflownode.md +++ b/docs/models/shared/workflownode.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | -| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `subtype` | *str* | :heavy_check_mark: | N/A | -| `type` | [shared.WorkflowNodeType](../../models/shared/workflownodetype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `subtype` | *str* | :heavy_check_mark: | N/A | +| `type` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/workflownodetype.md b/docs/models/shared/workflownodetype.md deleted file mode 100644 index e1da7b02..00000000 --- a/docs/models/shared/workflownodetype.md +++ /dev/null @@ -1,11 +0,0 @@ -# WorkflowNodeType - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `PARTITION` | partition | -| `PROMPTER` | prompter | -| `CHUNK` | chunk | -| `EMBED` | embed | \ No newline at end of file diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 4ae26ac7..5c9bcf7d 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -5,12 +5,66 @@ ### Available Operations +* [check_destination_connection_api_v1_destinations_destination_id_connection_check_post](#check_destination_connection_api_v1_destinations_destination_id_connection_check_post) - Check Destination Connection * [create_destination](#create_destination) - Create destination connector * [delete_destination](#delete_destination) - Delete destination connector * [get_destination](#get_destination) - Get destination connector +* [get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get](#get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get) - Get Destination Connection Check * [list_destinations](#list_destinations) - List destination connectors * [update_destination](#update_destination) - Update destination connector +## check_destination_connection_api_v1_destinations_destination_id_connection_check_post + +Check Destination Connection + +Initiates a connection check for the specified destination connector. + +**Parameters:** +- **destination_id**: The UUID of the destination connector. +- **db_session**: Database session dependency. +- **user_data**: Information about the authenticated user. + +**Returns:** +- The result of the connection check. + +### Example Usage + +```python +from unstructured_client import UnstructuredClient + + +with UnstructuredClient() as uc_client: + + res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ + "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + }) + + assert res.dag_node_connection_check is not None + + # Handle response + print(res.dag_node_connection_check) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest](../../models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.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. | +| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse](../../models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## create_destination Create a new destination connector using the provided configuration and name. @@ -34,7 +88,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE, + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, }, }) @@ -148,6 +202,58 @@ with UnstructuredClient() as uc_client: | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get + +Get Destination Connection Check + +Retrieves the most recent connection check for the specified destination connector. + +**Parameters:** +- **destination_id**: The UUID of the destination connector. +- **db_session**: Database session dependency. +- **user_data**: Information about the authenticated user. + +**Returns:** +- Connection check results. + +### Example Usage + +```python +from unstructured_client import UnstructuredClient + + +with UnstructuredClient() as uc_client: + + res = uc_client.destinations.get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get(request={ + "destination_id": "3c48df35-2b2c-46f2-9aa2-d7eae993797c", + }) + + assert res.dag_node_connection_check is not None + + # Handle response + print(res.dag_node_connection_check) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest](../../models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.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. | +| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse](../../models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## list_destinations Retrieve a list of available destination connectors. diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 54452ead..c3dec73f 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -5,12 +5,66 @@ ### Available Operations +* [check_connection_api_v1_sources_source_id_connection_check_post](#check_connection_api_v1_sources_source_id_connection_check_post) - Check Connection * [create_source](#create_source) - Create source connector * [delete_source](#delete_source) - Delete source connector +* [get_connection_check_api_v1_sources_source_id_connection_check_get](#get_connection_check_api_v1_sources_source_id_connection_check_get) - Get Connection Check * [get_source](#get_source) - Get source connector * [list_sources](#list_sources) - List available source connectors * [update_source](#update_source) - Update source connector +## check_connection_api_v1_sources_source_id_connection_check_post + +Check Connection + +Initiates a connection check for the specified source connector. + +**Parameters:** +- **source_id**: The UUID of the source connector. +- **db_session**: Database session dependency. +- **user_data**: Information about the authenticated user. + +**Returns:** +- The result of the connection check. + +### Example Usage + +```python +from unstructured_client import UnstructuredClient + + +with UnstructuredClient() as uc_client: + + res = uc_client.sources.check_connection_api_v1_sources_source_id_connection_check_post(request={ + "source_id": "8cb54f13-5652-423e-889c-1df1f8147126", + }) + + assert res.dag_node_connection_check is not None + + # Handle response + print(res.dag_node_connection_check) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `request` | [operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest](../../models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.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. | +| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse](../../models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## create_source Create a new source connector using the provided configuration and name. @@ -108,6 +162,58 @@ with UnstructuredClient() as uc_client: | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | +## get_connection_check_api_v1_sources_source_id_connection_check_get + +Get Connection Checks + +Retrieves the most recent connection check for the specified source connector. + +**Parameters:** +- **source_id**: The UUID of the source connector. +- **db_session**: Database session dependency. +- **user_data**: Information about the authenticated user. + +**Returns:** +- Connection check results. + +### Example Usage + +```python +from unstructured_client import UnstructuredClient + + +with UnstructuredClient() as uc_client: + + res = uc_client.sources.get_connection_check_api_v1_sources_source_id_connection_check_get(request={ + "source_id": "d9c3daec-ddf9-4cef-ae8d-3a989813cc7b", + }) + + assert res.dag_node_connection_check is not None + + # Handle response + print(res.dag_node_connection_check) + +``` + +### Parameters + +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| `request` | [operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest](../../models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.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. | +| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | + +### Response + +**[operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse](../../models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md)** + +### Errors + +| Error Type | Status Code | Content Type | +| -------------------------- | -------------------------- | -------------------------- | +| errors.HTTPValidationError | 422 | application/json | +| errors.SDKError | 4XX, 5XX | \*/\* | + ## get_source Retrieve detailed information for a specific source connector by its ID. diff --git a/gen.yaml b/gen.yaml index 72151a19..bd93d4c5 100644 --- a/gen.yaml +++ b/gen.yaml @@ -12,7 +12,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.32.3 + version: 0.33.0 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/poetry.lock b/poetry.lock index 07d36a70..16b71d96 100644 --- a/poetry.lock +++ b/poetry.lock @@ -1,4 +1,4 @@ -# This file is automatically @generated by Poetry 2.1.1 and should not be changed by hand. +# This file is automatically @generated by Poetry 2.1.2 and should not be changed by hand. [[package]] name = "aiofiles" @@ -530,50 +530,44 @@ files = [ [[package]] name = "mypy" -version = "1.14.1" +version = "1.15.0" description = "Optional static typing for Python" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["dev"] files = [ - {file = "mypy-1.14.1-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:52686e37cf13d559f668aa398dd7ddf1f92c5d613e4f8cb262be2fb4fedb0fcb"}, - {file = "mypy-1.14.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:1fb545ca340537d4b45d3eecdb3def05e913299ca72c290326be19b3804b39c0"}, - {file = "mypy-1.14.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:90716d8b2d1f4cd503309788e51366f07c56635a3309b0f6a32547eaaa36a64d"}, - {file = "mypy-1.14.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:2ae753f5c9fef278bcf12e1a564351764f2a6da579d4a81347e1d5a15819997b"}, - {file = "mypy-1.14.1-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:e0fe0f5feaafcb04505bcf439e991c6d8f1bf8b15f12b05feeed96e9e7bf1427"}, - {file = "mypy-1.14.1-cp310-cp310-win_amd64.whl", hash = "sha256:7d54bd85b925e501c555a3227f3ec0cfc54ee8b6930bd6141ec872d1c572f81f"}, - {file = "mypy-1.14.1-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:f995e511de847791c3b11ed90084a7a0aafdc074ab88c5a9711622fe4751138c"}, - {file = "mypy-1.14.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:d64169ec3b8461311f8ce2fd2eb5d33e2d0f2c7b49116259c51d0d96edee48d1"}, - {file = "mypy-1.14.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ba24549de7b89b6381b91fbc068d798192b1b5201987070319889e93038967a8"}, - {file = "mypy-1.14.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:183cf0a45457d28ff9d758730cd0210419ac27d4d3f285beda038c9083363b1f"}, - {file = "mypy-1.14.1-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:f2a0ecc86378f45347f586e4163d1769dd81c5a223d577fe351f26b179e148b1"}, - {file = "mypy-1.14.1-cp311-cp311-win_amd64.whl", hash = "sha256:ad3301ebebec9e8ee7135d8e3109ca76c23752bac1e717bc84cd3836b4bf3eae"}, - {file = "mypy-1.14.1-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:30ff5ef8519bbc2e18b3b54521ec319513a26f1bba19a7582e7b1f58a6e69f14"}, - {file = "mypy-1.14.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:cb9f255c18052343c70234907e2e532bc7e55a62565d64536dbc7706a20b78b9"}, - {file = "mypy-1.14.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8b4e3413e0bddea671012b063e27591b953d653209e7a4fa5e48759cda77ca11"}, - {file = "mypy-1.14.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:553c293b1fbdebb6c3c4030589dab9fafb6dfa768995a453d8a5d3b23784af2e"}, - {file = "mypy-1.14.1-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:fad79bfe3b65fe6a1efaed97b445c3d37f7be9fdc348bdb2d7cac75579607c89"}, - {file = "mypy-1.14.1-cp312-cp312-win_amd64.whl", hash = "sha256:8fa2220e54d2946e94ab6dbb3ba0a992795bd68b16dc852db33028df2b00191b"}, - {file = "mypy-1.14.1-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:92c3ed5afb06c3a8e188cb5da4984cab9ec9a77ba956ee419c68a388b4595255"}, - {file = "mypy-1.14.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:dbec574648b3e25f43d23577309b16534431db4ddc09fda50841f1e34e64ed34"}, - {file = "mypy-1.14.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:8c6d94b16d62eb3e947281aa7347d78236688e21081f11de976376cf010eb31a"}, - {file = "mypy-1.14.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:d4b19b03fdf54f3c5b2fa474c56b4c13c9dbfb9a2db4370ede7ec11a2c5927d9"}, - {file = "mypy-1.14.1-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:0c911fde686394753fff899c409fd4e16e9b294c24bfd5e1ea4675deae1ac6fd"}, - {file = "mypy-1.14.1-cp313-cp313-win_amd64.whl", hash = "sha256:8b21525cb51671219f5307be85f7e646a153e5acc656e5cebf64bfa076c50107"}, - {file = "mypy-1.14.1-cp38-cp38-macosx_10_9_x86_64.whl", hash = "sha256:7084fb8f1128c76cd9cf68fe5971b37072598e7c31b2f9f95586b65c741a9d31"}, - {file = "mypy-1.14.1-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:8f845a00b4f420f693f870eaee5f3e2692fa84cc8514496114649cfa8fd5e2c6"}, - {file = "mypy-1.14.1-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:44bf464499f0e3a2d14d58b54674dee25c031703b2ffc35064bd0df2e0fac319"}, - {file = "mypy-1.14.1-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c99f27732c0b7dc847adb21c9d47ce57eb48fa33a17bc6d7d5c5e9f9e7ae5bac"}, - {file = "mypy-1.14.1-cp38-cp38-musllinux_1_2_x86_64.whl", hash = "sha256:bce23c7377b43602baa0bd22ea3265c49b9ff0b76eb315d6c34721af4cdf1d9b"}, - {file = "mypy-1.14.1-cp38-cp38-win_amd64.whl", hash = "sha256:8edc07eeade7ebc771ff9cf6b211b9a7d93687ff892150cb5692e4f4272b0837"}, - {file = "mypy-1.14.1-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:3888a1816d69f7ab92092f785a462944b3ca16d7c470d564165fe703b0970c35"}, - {file = "mypy-1.14.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:46c756a444117c43ee984bd055db99e498bc613a70bbbc120272bd13ca579fbc"}, - {file = "mypy-1.14.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:27fc248022907e72abfd8e22ab1f10e903915ff69961174784a3900a8cba9ad9"}, - {file = "mypy-1.14.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:499d6a72fb7e5de92218db961f1a66d5f11783f9ae549d214617edab5d4dbdbb"}, - {file = "mypy-1.14.1-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:57961db9795eb566dc1d1b4e9139ebc4c6b0cb6e7254ecde69d1552bf7613f60"}, - {file = "mypy-1.14.1-cp39-cp39-win_amd64.whl", hash = "sha256:07ba89fdcc9451f2ebb02853deb6aaaa3d2239a236669a63ab3801bbf923ef5c"}, - {file = "mypy-1.14.1-py3-none-any.whl", hash = "sha256:b66a60cc4073aeb8ae00057f9c1f64d49e90f918fbcef9a977eb121da8b8f1d1"}, - {file = "mypy-1.14.1.tar.gz", hash = "sha256:7ec88144fe9b510e8475ec2f5f251992690fcf89ccb4500b214b4226abcd32d6"}, + {file = "mypy-1.15.0-cp310-cp310-macosx_10_9_x86_64.whl", hash = "sha256:979e4e1a006511dacf628e36fadfecbcc0160a8af6ca7dad2f5025529e082c13"}, + {file = "mypy-1.15.0-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:c4bb0e1bd29f7d34efcccd71cf733580191e9a264a2202b0239da95984c5b559"}, + {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:be68172e9fd9ad8fb876c6389f16d1c1b5f100ffa779f77b1fb2176fcc9ab95b"}, + {file = "mypy-1.15.0-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c7be1e46525adfa0d97681432ee9fcd61a3964c2446795714699a998d193f1a3"}, + {file = "mypy-1.15.0-cp310-cp310-musllinux_1_2_x86_64.whl", hash = "sha256:2e2c2e6d3593f6451b18588848e66260ff62ccca522dd231cd4dd59b0160668b"}, + {file = "mypy-1.15.0-cp310-cp310-win_amd64.whl", hash = "sha256:6983aae8b2f653e098edb77f893f7b6aca69f6cffb19b2cc7443f23cce5f4828"}, + {file = "mypy-1.15.0-cp311-cp311-macosx_10_9_x86_64.whl", hash = "sha256:2922d42e16d6de288022e5ca321cd0618b238cfc5570e0263e5ba0a77dbef56f"}, + {file = "mypy-1.15.0-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:2ee2d57e01a7c35de00f4634ba1bbf015185b219e4dc5909e281016df43f5ee5"}, + {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:973500e0774b85d9689715feeffcc980193086551110fd678ebe1f4342fb7c5e"}, + {file = "mypy-1.15.0-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:5a95fb17c13e29d2d5195869262f8125dfdb5c134dc8d9a9d0aecf7525b10c2c"}, + {file = "mypy-1.15.0-cp311-cp311-musllinux_1_2_x86_64.whl", hash = "sha256:1905f494bfd7d85a23a88c5d97840888a7bd516545fc5aaedff0267e0bb54e2f"}, + {file = "mypy-1.15.0-cp311-cp311-win_amd64.whl", hash = "sha256:c9817fa23833ff189db061e6d2eff49b2f3b6ed9856b4a0a73046e41932d744f"}, + {file = "mypy-1.15.0-cp312-cp312-macosx_10_13_x86_64.whl", hash = "sha256:aea39e0583d05124836ea645f412e88a5c7d0fd77a6d694b60d9b6b2d9f184fd"}, + {file = "mypy-1.15.0-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:2f2147ab812b75e5b5499b01ade1f4a81489a147c01585cda36019102538615f"}, + {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:ce436f4c6d218a070048ed6a44c0bbb10cd2cc5e272b29e7845f6a2f57ee4464"}, + {file = "mypy-1.15.0-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8023ff13985661b50a5928fc7a5ca15f3d1affb41e5f0a9952cb68ef090b31ee"}, + {file = "mypy-1.15.0-cp312-cp312-musllinux_1_2_x86_64.whl", hash = "sha256:1124a18bc11a6a62887e3e137f37f53fbae476dc36c185d549d4f837a2a6a14e"}, + {file = "mypy-1.15.0-cp312-cp312-win_amd64.whl", hash = "sha256:171a9ca9a40cd1843abeca0e405bc1940cd9b305eaeea2dda769ba096932bb22"}, + {file = "mypy-1.15.0-cp313-cp313-macosx_10_13_x86_64.whl", hash = "sha256:93faf3fdb04768d44bf28693293f3904bbb555d076b781ad2530214ee53e3445"}, + {file = "mypy-1.15.0-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:811aeccadfb730024c5d3e326b2fbe9249bb7413553f15499a4050f7c30e801d"}, + {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:98b7b9b9aedb65fe628c62a6dc57f6d5088ef2dfca37903a7d9ee374d03acca5"}, + {file = "mypy-1.15.0-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:c43a7682e24b4f576d93072216bf56eeff70d9140241f9edec0c104d0c515036"}, + {file = "mypy-1.15.0-cp313-cp313-musllinux_1_2_x86_64.whl", hash = "sha256:baefc32840a9f00babd83251560e0ae1573e2f9d1b067719479bfb0e987c6357"}, + {file = "mypy-1.15.0-cp313-cp313-win_amd64.whl", hash = "sha256:b9378e2c00146c44793c98b8d5a61039a048e31f429fb0eb546d93f4b000bedf"}, + {file = "mypy-1.15.0-cp39-cp39-macosx_10_9_x86_64.whl", hash = "sha256:e601a7fa172c2131bff456bb3ee08a88360760d0d2f8cbd7a75a65497e2df078"}, + {file = "mypy-1.15.0-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:712e962a6357634fef20412699a3655c610110e01cdaa6180acec7fc9f8513ba"}, + {file = "mypy-1.15.0-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.manylinux_2_28_aarch64.whl", hash = "sha256:f95579473af29ab73a10bada2f9722856792a36ec5af5399b653aa28360290a5"}, + {file = "mypy-1.15.0-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.manylinux_2_28_x86_64.whl", hash = "sha256:8f8722560a14cde92fdb1e31597760dc35f9f5524cce17836c0d22841830fd5b"}, + {file = "mypy-1.15.0-cp39-cp39-musllinux_1_2_x86_64.whl", hash = "sha256:1fbb8da62dc352133d7d7ca90ed2fb0e9d42bb1a32724c287d3c76c58cbaa9c2"}, + {file = "mypy-1.15.0-cp39-cp39-win_amd64.whl", hash = "sha256:d10d994b41fb3497719bbf866f227b3489048ea4bbbb5015357db306249f7980"}, + {file = "mypy-1.15.0-py3-none-any.whl", hash = "sha256:5469affef548bd1895d86d3bf10ce2b44e33d86923c29e4d675b3e323437ea3e"}, + {file = "mypy-1.15.0.tar.gz", hash = "sha256:404534629d51d3efea5c800ee7c42b72a6554d6c400e6a79eafe15d11341fd43"}, ] [package.dependencies] @@ -684,20 +678,21 @@ files = [ [[package]] name = "pydantic" -version = "2.10.5" +version = "2.11.3" description = "Data validation using Python type hints" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pydantic-2.10.5-py3-none-any.whl", hash = "sha256:4dd4e322dbe55472cb7ca7e73f4b63574eecccf2835ffa2af9021ce113c83c53"}, - {file = "pydantic-2.10.5.tar.gz", hash = "sha256:278b38dbbaec562011d659ee05f63346951b3a248a6f3642e1bc68894ea2b4ff"}, + {file = "pydantic-2.11.3-py3-none-any.whl", hash = "sha256:a082753436a07f9ba1289c6ffa01cd93db3548776088aa917cc43b63f68fa60f"}, + {file = "pydantic-2.11.3.tar.gz", hash = "sha256:7471657138c16adad9322fe3070c0116dd6c3ad8d649300e3cbdfe91f4db4ec3"}, ] [package.dependencies] annotated-types = ">=0.6.0" -pydantic-core = "2.27.2" +pydantic-core = "2.33.1" typing-extensions = ">=4.12.2" +typing-inspection = ">=0.4.0" [package.extras] email = ["email-validator (>=2.0.0)"] @@ -705,112 +700,111 @@ timezone = ["tzdata ; python_version >= \"3.9\" and platform_system == \"Windows [[package]] name = "pydantic-core" -version = "2.27.2" +version = "2.33.1" description = "Core functionality for Pydantic validation and serialization" optional = false -python-versions = ">=3.8" +python-versions = ">=3.9" groups = ["main"] files = [ - {file = "pydantic_core-2.27.2-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:2d367ca20b2f14095a8f4fa1210f5a7b78b8a20009ecced6b12818f455b1e9fa"}, - {file = "pydantic_core-2.27.2-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:491a2b73db93fab69731eaee494f320faa4e093dbed776be1a829c2eb222c34c"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7969e133a6f183be60e9f6f56bfae753585680f3b7307a8e555a948d443cc05a"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3de9961f2a346257caf0aa508a4da705467f53778e9ef6fe744c038119737ef5"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:e2bb4d3e5873c37bb3dd58714d4cd0b0e6238cebc4177ac8fe878f8b3aa8e74c"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:280d219beebb0752699480fe8f1dc61ab6615c2046d76b7ab7ee38858de0a4e7"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:47956ae78b6422cbd46f772f1746799cbb862de838fd8d1fbd34a82e05b0983a"}, - {file = "pydantic_core-2.27.2-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:14d4a5c49d2f009d62a2a7140d3064f686d17a5d1a268bc641954ba181880236"}, - {file = "pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:337b443af21d488716f8d0b6164de833e788aa6bd7e3a39c005febc1284f4962"}, - {file = "pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:03d0f86ea3184a12f41a2d23f7ccb79cdb5a18e06993f8a45baa8dfec746f0e9"}, - {file = "pydantic_core-2.27.2-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:7041c36f5680c6e0f08d922aed302e98b3745d97fe1589db0a3eebf6624523af"}, - {file = "pydantic_core-2.27.2-cp310-cp310-win32.whl", hash = "sha256:50a68f3e3819077be2c98110c1f9dcb3817e93f267ba80a2c05bb4f8799e2ff4"}, - {file = "pydantic_core-2.27.2-cp310-cp310-win_amd64.whl", hash = "sha256:e0fd26b16394ead34a424eecf8a31a1f5137094cabe84a1bcb10fa6ba39d3d31"}, - {file = "pydantic_core-2.27.2-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:8e10c99ef58cfdf2a66fc15d66b16c4a04f62bca39db589ae8cba08bc55331bc"}, - {file = "pydantic_core-2.27.2-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:26f32e0adf166a84d0cb63be85c562ca8a6fa8de28e5f0d92250c6b7e9e2aff7"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:8c19d1ea0673cd13cc2f872f6c9ab42acc4e4f492a7ca9d3795ce2b112dd7e15"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:5e68c4446fe0810e959cdff46ab0a41ce2f2c86d227d96dc3847af0ba7def306"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:d9640b0059ff4f14d1f37321b94061c6db164fbe49b334b31643e0528d100d99"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:40d02e7d45c9f8af700f3452f329ead92da4c5f4317ca9b896de7ce7199ea459"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:1c1fd185014191700554795c99b347d64f2bb637966c4cfc16998a0ca700d048"}, - {file = "pydantic_core-2.27.2-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d81d2068e1c1228a565af076598f9e7451712700b673de8f502f0334f281387d"}, - {file = "pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:1a4207639fb02ec2dbb76227d7c751a20b1a6b4bc52850568e52260cae64ca3b"}, - {file = "pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:3de3ce3c9ddc8bbd88f6e0e304dea0e66d843ec9de1b0042b0911c1663ffd474"}, - {file = "pydantic_core-2.27.2-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:30c5f68ded0c36466acede341551106821043e9afaad516adfb6e8fa80a4e6a6"}, - {file = "pydantic_core-2.27.2-cp311-cp311-win32.whl", hash = "sha256:c70c26d2c99f78b125a3459f8afe1aed4d9687c24fd677c6a4436bc042e50d6c"}, - {file = "pydantic_core-2.27.2-cp311-cp311-win_amd64.whl", hash = "sha256:08e125dbdc505fa69ca7d9c499639ab6407cfa909214d500897d02afb816e7cc"}, - {file = "pydantic_core-2.27.2-cp311-cp311-win_arm64.whl", hash = "sha256:26f0d68d4b235a2bae0c3fc585c585b4ecc51382db0e3ba402a22cbc440915e4"}, - {file = "pydantic_core-2.27.2-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:9e0c8cfefa0ef83b4da9588448b6d8d2a2bf1a53c3f1ae5fca39eb3061e2f0b0"}, - {file = "pydantic_core-2.27.2-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:83097677b8e3bd7eaa6775720ec8e0405f1575015a463285a92bfdfe254529ef"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:172fce187655fece0c90d90a678424b013f8fbb0ca8b036ac266749c09438cb7"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:519f29f5213271eeeeb3093f662ba2fd512b91c5f188f3bb7b27bc5973816934"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:05e3a55d124407fffba0dd6b0c0cd056d10e983ceb4e5dbd10dda135c31071d6"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:9c3ed807c7b91de05e63930188f19e921d1fe90de6b4f5cd43ee7fcc3525cb8c"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:6fb4aadc0b9a0c063206846d603b92030eb6f03069151a625667f982887153e2"}, - {file = "pydantic_core-2.27.2-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:28ccb213807e037460326424ceb8b5245acb88f32f3d2777427476e1b32c48c4"}, - {file = "pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:de3cd1899e2c279b140adde9357c4495ed9d47131b4a4eaff9052f23398076b3"}, - {file = "pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:220f892729375e2d736b97d0e51466252ad84c51857d4d15f5e9692f9ef12be4"}, - {file = "pydantic_core-2.27.2-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:a0fcd29cd6b4e74fe8ddd2c90330fd8edf2e30cb52acda47f06dd615ae72da57"}, - {file = "pydantic_core-2.27.2-cp312-cp312-win32.whl", hash = "sha256:1e2cb691ed9834cd6a8be61228471d0a503731abfb42f82458ff27be7b2186fc"}, - {file = "pydantic_core-2.27.2-cp312-cp312-win_amd64.whl", hash = "sha256:cc3f1a99a4f4f9dd1de4fe0312c114e740b5ddead65bb4102884b384c15d8bc9"}, - {file = "pydantic_core-2.27.2-cp312-cp312-win_arm64.whl", hash = "sha256:3911ac9284cd8a1792d3cb26a2da18f3ca26c6908cc434a18f730dc0db7bfa3b"}, - {file = "pydantic_core-2.27.2-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:7d14bd329640e63852364c306f4d23eb744e0f8193148d4044dd3dacdaacbd8b"}, - {file = "pydantic_core-2.27.2-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:82f91663004eb8ed30ff478d77c4d1179b3563df6cdb15c0817cd1cdaf34d154"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:71b24c7d61131bb83df10cc7e687433609963a944ccf45190cfc21e0887b08c9"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:fa8e459d4954f608fa26116118bb67f56b93b209c39b008277ace29937453dc9"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:ce8918cbebc8da707ba805b7fd0b382816858728ae7fe19a942080c24e5b7cd1"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:eda3f5c2a021bbc5d976107bb302e0131351c2ba54343f8a496dc8783d3d3a6a"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bd8086fa684c4775c27f03f062cbb9eaa6e17f064307e86b21b9e0abc9c0f02e"}, - {file = "pydantic_core-2.27.2-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:8d9b3388db186ba0c099a6d20f0604a44eabdeef1777ddd94786cdae158729e4"}, - {file = "pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:7a66efda2387de898c8f38c0cf7f14fca0b51a8ef0b24bfea5849f1b3c95af27"}, - {file = "pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:18a101c168e4e092ab40dbc2503bdc0f62010e95d292b27827871dc85450d7ee"}, - {file = "pydantic_core-2.27.2-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ba5dd002f88b78a4215ed2f8ddbdf85e8513382820ba15ad5ad8955ce0ca19a1"}, - {file = "pydantic_core-2.27.2-cp313-cp313-win32.whl", hash = "sha256:1ebaf1d0481914d004a573394f4be3a7616334be70261007e47c2a6fe7e50130"}, - {file = "pydantic_core-2.27.2-cp313-cp313-win_amd64.whl", hash = "sha256:953101387ecf2f5652883208769a79e48db18c6df442568a0b5ccd8c2723abee"}, - {file = "pydantic_core-2.27.2-cp313-cp313-win_arm64.whl", hash = "sha256:ac4dbfd1691affb8f48c2c13241a2e3b60ff23247cbcf981759c768b6633cf8b"}, - {file = "pydantic_core-2.27.2-cp38-cp38-macosx_10_12_x86_64.whl", hash = "sha256:d3e8d504bdd3f10835468f29008d72fc8359d95c9c415ce6e767203db6127506"}, - {file = "pydantic_core-2.27.2-cp38-cp38-macosx_11_0_arm64.whl", hash = "sha256:521eb9b7f036c9b6187f0b47318ab0d7ca14bd87f776240b90b21c1f4f149320"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:85210c4d99a0114f5a9481b44560d7d1e35e32cc5634c656bc48e590b669b145"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:d716e2e30c6f140d7560ef1538953a5cd1a87264c737643d481f2779fc247fe1"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:f66d89ba397d92f840f8654756196d93804278457b5fbede59598a1f9f90b228"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:669e193c1c576a58f132e3158f9dfa9662969edb1a250c54d8fa52590045f046"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9fdbe7629b996647b99c01b37f11170a57ae675375b14b8c13b8518b8320ced5"}, - {file = "pydantic_core-2.27.2-cp38-cp38-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d262606bf386a5ba0b0af3b97f37c83d7011439e3dc1a9298f21efb292e42f1a"}, - {file = "pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_aarch64.whl", hash = "sha256:cabb9bcb7e0d97f74df8646f34fc76fbf793b7f6dc2438517d7a9e50eee4f14d"}, - {file = "pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_armv7l.whl", hash = "sha256:d2d63f1215638d28221f664596b1ccb3944f6e25dd18cd3b86b0a4c408d5ebb9"}, - {file = "pydantic_core-2.27.2-cp38-cp38-musllinux_1_1_x86_64.whl", hash = "sha256:bca101c00bff0adb45a833f8451b9105d9df18accb8743b08107d7ada14bd7da"}, - {file = "pydantic_core-2.27.2-cp38-cp38-win32.whl", hash = "sha256:f6f8e111843bbb0dee4cb6594cdc73e79b3329b526037ec242a3e49012495b3b"}, - {file = "pydantic_core-2.27.2-cp38-cp38-win_amd64.whl", hash = "sha256:fd1aea04935a508f62e0d0ef1f5ae968774a32afc306fb8545e06f5ff5cdf3ad"}, - {file = "pydantic_core-2.27.2-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:c10eb4f1659290b523af58fa7cffb452a61ad6ae5613404519aee4bfbf1df993"}, - {file = "pydantic_core-2.27.2-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:ef592d4bad47296fb11f96cd7dc898b92e795032b4894dfb4076cfccd43a9308"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c61709a844acc6bf0b7dce7daae75195a10aac96a596ea1b776996414791ede4"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:42c5f762659e47fdb7b16956c71598292f60a03aa92f8b6351504359dbdba6cf"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:4c9775e339e42e79ec99c441d9730fccf07414af63eac2f0e48e08fd38a64d76"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:57762139821c31847cfb2df63c12f725788bd9f04bc2fb392790959b8f70f118"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:0d1e85068e818c73e048fe28cfc769040bb1f475524f4745a5dc621f75ac7630"}, - {file = "pydantic_core-2.27.2-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:097830ed52fd9e427942ff3b9bc17fab52913b2f50f2880dc4a5611446606a54"}, - {file = "pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:044a50963a614ecfae59bb1eaf7ea7efc4bc62f49ed594e18fa1e5d953c40e9f"}, - {file = "pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:4e0b4220ba5b40d727c7f879eac379b822eee5d8fff418e9d3381ee45b3b0362"}, - {file = "pydantic_core-2.27.2-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:5e4f4bb20d75e9325cc9696c6802657b58bc1dbbe3022f32cc2b2b632c3fbb96"}, - {file = "pydantic_core-2.27.2-cp39-cp39-win32.whl", hash = "sha256:cca63613e90d001b9f2f9a9ceb276c308bfa2a43fafb75c8031c4f66039e8c6e"}, - {file = "pydantic_core-2.27.2-cp39-cp39-win_amd64.whl", hash = "sha256:77d1bca19b0f7021b3a982e6f903dcd5b2b06076def36a652e3907f596e29f67"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:2bf14caea37e91198329b828eae1618c068dfb8ef17bb33287a7ad4b61ac314e"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:b0cb791f5b45307caae8810c2023a184c74605ec3bcbb67d13846c28ff731ff8"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:688d3fd9fcb71f41c4c015c023d12a79d1c4c0732ec9eb35d96e3388a120dcf3"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:3d591580c34f4d731592f0e9fe40f9cc1b430d297eecc70b962e93c5c668f15f"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:82f986faf4e644ffc189a7f1aafc86e46ef70372bb153e7001e8afccc6e54133"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:bec317a27290e2537f922639cafd54990551725fc844249e64c523301d0822fc"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:0296abcb83a797db256b773f45773da397da75a08f5fcaef41f2044adec05f50"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:0d75070718e369e452075a6017fbf187f788e17ed67a3abd47fa934d001863d9"}, - {file = "pydantic_core-2.27.2-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:7e17b560be3c98a8e3aa66ce828bdebb9e9ac6ad5466fba92eb74c4c95cb1151"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:c33939a82924da9ed65dab5a65d427205a73181d8098e79b6b426bdf8ad4e656"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:00bad2484fa6bda1e216e7345a798bd37c68fb2d97558edd584942aa41b7d278"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:c817e2b40aba42bac6f457498dacabc568c3b7a986fc9ba7c8d9d260b71485fb"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:251136cdad0cb722e93732cb45ca5299fb56e1344a833640bf93b2803f8d1bfd"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d2088237af596f0a524d3afc39ab3b036e8adb054ee57cbb1dcf8e09da5b29cc"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:d4041c0b966a84b4ae7a09832eb691a35aec90910cd2dbe7a208de59be77965b"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:8083d4e875ebe0b864ffef72a4304827015cff328a1be6e22cc850753bfb122b"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:f141ee28a0ad2123b6611b6ceff018039df17f32ada8b534e6aa039545a3efb2"}, - {file = "pydantic_core-2.27.2-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:7d0c8399fcc1848491f00e0314bd59fb34a9c008761bcb422a057670c3f65e35"}, - {file = "pydantic_core-2.27.2.tar.gz", hash = "sha256:eb026e5a4c1fee05726072337ff51d1efb6f59090b7da90d30ea58625b1ffb39"}, + {file = "pydantic_core-2.33.1-cp310-cp310-macosx_10_12_x86_64.whl", hash = "sha256:3077cfdb6125cc8dab61b155fdd714663e401f0e6883f9632118ec12cf42df26"}, + {file = "pydantic_core-2.33.1-cp310-cp310-macosx_11_0_arm64.whl", hash = "sha256:8ffab8b2908d152e74862d276cf5017c81a2f3719f14e8e3e8d6b83fda863927"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:5183e4f6a2d468787243ebcd70cf4098c247e60d73fb7d68d5bc1e1beaa0c4db"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:398a38d323f37714023be1e0285765f0a27243a8b1506b7b7de87b647b517e48"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:87d3776f0001b43acebfa86f8c64019c043b55cc5a6a2e313d728b5c95b46969"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:c566dd9c5f63d22226409553531f89de0cac55397f2ab8d97d6f06cfce6d947e"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:a0d5f3acc81452c56895e90643a625302bd6be351e7010664151cc55b7b97f89"}, + {file = "pydantic_core-2.33.1-cp310-cp310-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:d3a07fadec2a13274a8d861d3d37c61e97a816beae717efccaa4b36dfcaadcde"}, + {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_aarch64.whl", hash = "sha256:f99aeda58dce827f76963ee87a0ebe75e648c72ff9ba1174a253f6744f518f65"}, + {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_armv7l.whl", hash = "sha256:902dbc832141aa0ec374f4310f1e4e7febeebc3256f00dc359a9ac3f264a45dc"}, + {file = "pydantic_core-2.33.1-cp310-cp310-musllinux_1_1_x86_64.whl", hash = "sha256:fe44d56aa0b00d66640aa84a3cbe80b7a3ccdc6f0b1ca71090696a6d4777c091"}, + {file = "pydantic_core-2.33.1-cp310-cp310-win32.whl", hash = "sha256:ed3eb16d51257c763539bde21e011092f127a2202692afaeaccb50db55a31383"}, + {file = "pydantic_core-2.33.1-cp310-cp310-win_amd64.whl", hash = "sha256:694ad99a7f6718c1a498dc170ca430687a39894a60327f548e02a9c7ee4b6504"}, + {file = "pydantic_core-2.33.1-cp311-cp311-macosx_10_12_x86_64.whl", hash = "sha256:6e966fc3caaf9f1d96b349b0341c70c8d6573bf1bac7261f7b0ba88f96c56c24"}, + {file = "pydantic_core-2.33.1-cp311-cp311-macosx_11_0_arm64.whl", hash = "sha256:bfd0adeee563d59c598ceabddf2c92eec77abcb3f4a391b19aa7366170bd9e30"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:91815221101ad3c6b507804178a7bb5cb7b2ead9ecd600041669c8d805ebd595"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:9fea9c1869bb4742d174a57b4700c6dadea951df8b06de40c2fedb4f02931c2e"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:1d20eb4861329bb2484c021b9d9a977566ab16d84000a57e28061151c62b349a"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:0fb935c5591573ae3201640579f30128ccc10739b45663f93c06796854405505"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:c964fd24e6166420d18fb53996d8c9fd6eac9bf5ae3ec3d03015be4414ce497f"}, + {file = "pydantic_core-2.33.1-cp311-cp311-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:681d65e9011f7392db5aa002b7423cc442d6a673c635668c227c6c8d0e5a4f77"}, + {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_aarch64.whl", hash = "sha256:e100c52f7355a48413e2999bfb4e139d2977a904495441b374f3d4fb4a170961"}, + {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_armv7l.whl", hash = "sha256:048831bd363490be79acdd3232f74a0e9951b11b2b4cc058aeb72b22fdc3abe1"}, + {file = "pydantic_core-2.33.1-cp311-cp311-musllinux_1_1_x86_64.whl", hash = "sha256:bdc84017d28459c00db6f918a7272a5190bec3090058334e43a76afb279eac7c"}, + {file = "pydantic_core-2.33.1-cp311-cp311-win32.whl", hash = "sha256:32cd11c5914d1179df70406427097c7dcde19fddf1418c787540f4b730289896"}, + {file = "pydantic_core-2.33.1-cp311-cp311-win_amd64.whl", hash = "sha256:2ea62419ba8c397e7da28a9170a16219d310d2cf4970dbc65c32faf20d828c83"}, + {file = "pydantic_core-2.33.1-cp311-cp311-win_arm64.whl", hash = "sha256:fc903512177361e868bc1f5b80ac8c8a6e05fcdd574a5fb5ffeac5a9982b9e89"}, + {file = "pydantic_core-2.33.1-cp312-cp312-macosx_10_12_x86_64.whl", hash = "sha256:1293d7febb995e9d3ec3ea09caf1a26214eec45b0f29f6074abb004723fc1de8"}, + {file = "pydantic_core-2.33.1-cp312-cp312-macosx_11_0_arm64.whl", hash = "sha256:99b56acd433386c8f20be5c4000786d1e7ca0523c8eefc995d14d79c7a081498"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:35a5ec3fa8c2fe6c53e1b2ccc2454398f95d5393ab398478f53e1afbbeb4d939"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:b172f7b9d2f3abc0efd12e3386f7e48b576ef309544ac3a63e5e9cdd2e24585d"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:9097b9f17f91eea659b9ec58148c0747ec354a42f7389b9d50701610d86f812e"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:cc77ec5b7e2118b152b0d886c7514a4653bcb58c6b1d760134a9fab915f777b3"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:d5e3d15245b08fa4a84cefc6c9222e6f37c98111c8679fbd94aa145f9a0ae23d"}, + {file = "pydantic_core-2.33.1-cp312-cp312-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:ef99779001d7ac2e2461d8ab55d3373fe7315caefdbecd8ced75304ae5a6fc6b"}, + {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_aarch64.whl", hash = "sha256:fc6bf8869e193855e8d91d91f6bf59699a5cdfaa47a404e278e776dd7f168b39"}, + {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_armv7l.whl", hash = "sha256:b1caa0bc2741b043db7823843e1bde8aaa58a55a58fda06083b0569f8b45693a"}, + {file = "pydantic_core-2.33.1-cp312-cp312-musllinux_1_1_x86_64.whl", hash = "sha256:ec259f62538e8bf364903a7d0d0239447059f9434b284f5536e8402b7dd198db"}, + {file = "pydantic_core-2.33.1-cp312-cp312-win32.whl", hash = "sha256:e14f369c98a7c15772b9da98987f58e2b509a93235582838bd0d1d8c08b68fda"}, + {file = "pydantic_core-2.33.1-cp312-cp312-win_amd64.whl", hash = "sha256:1c607801d85e2e123357b3893f82c97a42856192997b95b4d8325deb1cd0c5f4"}, + {file = "pydantic_core-2.33.1-cp312-cp312-win_arm64.whl", hash = "sha256:8d13f0276806ee722e70a1c93da19748594f19ac4299c7e41237fc791d1861ea"}, + {file = "pydantic_core-2.33.1-cp313-cp313-macosx_10_12_x86_64.whl", hash = "sha256:70af6a21237b53d1fe7b9325b20e65cbf2f0a848cf77bed492b029139701e66a"}, + {file = "pydantic_core-2.33.1-cp313-cp313-macosx_11_0_arm64.whl", hash = "sha256:282b3fe1bbbe5ae35224a0dbd05aed9ccabccd241e8e6b60370484234b456266"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:4b315e596282bbb5822d0c7ee9d255595bd7506d1cb20c2911a4da0b970187d3"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:1dfae24cf9921875ca0ca6a8ecb4bb2f13c855794ed0d468d6abbec6e6dcd44a"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:6dd8ecfde08d8bfadaea669e83c63939af76f4cf5538a72597016edfa3fad516"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:2f593494876eae852dc98c43c6f260f45abdbfeec9e4324e31a481d948214764"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:948b73114f47fd7016088e5186d13faf5e1b2fe83f5e320e371f035557fd264d"}, + {file = "pydantic_core-2.33.1-cp313-cp313-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e11f3864eb516af21b01e25fac915a82e9ddad3bb0fb9e95a246067398b435a4"}, + {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_aarch64.whl", hash = "sha256:549150be302428b56fdad0c23c2741dcdb5572413776826c965619a25d9c6bde"}, + {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_armv7l.whl", hash = "sha256:495bc156026efafd9ef2d82372bd38afce78ddd82bf28ef5276c469e57c0c83e"}, + {file = "pydantic_core-2.33.1-cp313-cp313-musllinux_1_1_x86_64.whl", hash = "sha256:ec79de2a8680b1a67a07490bddf9636d5c2fab609ba8c57597e855fa5fa4dacd"}, + {file = "pydantic_core-2.33.1-cp313-cp313-win32.whl", hash = "sha256:ee12a7be1742f81b8a65b36c6921022301d466b82d80315d215c4c691724986f"}, + {file = "pydantic_core-2.33.1-cp313-cp313-win_amd64.whl", hash = "sha256:ede9b407e39949d2afc46385ce6bd6e11588660c26f80576c11c958e6647bc40"}, + {file = "pydantic_core-2.33.1-cp313-cp313-win_arm64.whl", hash = "sha256:aa687a23d4b7871a00e03ca96a09cad0f28f443690d300500603bd0adba4b523"}, + {file = "pydantic_core-2.33.1-cp313-cp313t-macosx_11_0_arm64.whl", hash = "sha256:401d7b76e1000d0dd5538e6381d28febdcacb097c8d340dde7d7fc6e13e9f95d"}, + {file = "pydantic_core-2.33.1-cp313-cp313t-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7aeb055a42d734c0255c9e489ac67e75397d59c6fbe60d155851e9782f276a9c"}, + {file = "pydantic_core-2.33.1-cp313-cp313t-win_amd64.whl", hash = "sha256:338ea9b73e6e109f15ab439e62cb3b78aa752c7fd9536794112e14bee02c8d18"}, + {file = "pydantic_core-2.33.1-cp39-cp39-macosx_10_12_x86_64.whl", hash = "sha256:5ab77f45d33d264de66e1884fca158bc920cb5e27fd0764a72f72f5756ae8bdb"}, + {file = "pydantic_core-2.33.1-cp39-cp39-macosx_11_0_arm64.whl", hash = "sha256:e7aaba1b4b03aaea7bb59e1b5856d734be011d3e6d98f5bcaa98cb30f375f2ad"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:7fb66263e9ba8fea2aa85e1e5578980d127fb37d7f2e292773e7bc3a38fb0c7b"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_armv7l.manylinux2014_armv7l.whl", hash = "sha256:3f2648b9262607a7fb41d782cc263b48032ff7a03a835581abbf7a3bec62bcf5"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_ppc64le.manylinux2014_ppc64le.whl", hash = "sha256:723c5630c4259400818b4ad096735a829074601805d07f8cafc366d95786d331"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_s390x.manylinux2014_s390x.whl", hash = "sha256:d100e3ae783d2167782391e0c1c7a20a31f55f8015f3293647544df3f9c67824"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:177d50460bc976a0369920b6c744d927b0ecb8606fb56858ff542560251b19e5"}, + {file = "pydantic_core-2.33.1-cp39-cp39-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:a3edde68d1a1f9af1273b2fe798997b33f90308fb6d44d8550c89fc6a3647cf6"}, + {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_aarch64.whl", hash = "sha256:a62c3c3ef6a7e2c45f7853b10b5bc4ddefd6ee3cd31024754a1a5842da7d598d"}, + {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_armv7l.whl", hash = "sha256:c91dbb0ab683fa0cd64a6e81907c8ff41d6497c346890e26b23de7ee55353f96"}, + {file = "pydantic_core-2.33.1-cp39-cp39-musllinux_1_1_x86_64.whl", hash = "sha256:9f466e8bf0a62dc43e068c12166281c2eca72121dd2adc1040f3aa1e21ef8599"}, + {file = "pydantic_core-2.33.1-cp39-cp39-win32.whl", hash = "sha256:ab0277cedb698749caada82e5d099dc9fed3f906a30d4c382d1a21725777a1e5"}, + {file = "pydantic_core-2.33.1-cp39-cp39-win_amd64.whl", hash = "sha256:5773da0ee2d17136b1f1c6fbde543398d452a6ad2a7b54ea1033e2daa739b8d2"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_10_12_x86_64.whl", hash = "sha256:5c834f54f8f4640fd7e4b193f80eb25a0602bba9e19b3cd2fc7ffe8199f5ae02"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-macosx_11_0_arm64.whl", hash = "sha256:049e0de24cf23766f12cc5cc71d8abc07d4a9deb9061b334b62093dedc7cb068"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:1a28239037b3d6f16916a4c831a5a0eadf856bdd6d2e92c10a0da3a59eadcf3e"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:9d3da303ab5f378a268fa7d45f37d7d85c3ec19769f28d2cc0c61826a8de21fe"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:25626fb37b3c543818c14821afe0fd3830bc327a43953bc88db924b68c5723f1"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3ab2d36e20fbfcce8f02d73c33a8a7362980cff717926bbae030b93ae46b56c7"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:2f9284e11c751b003fd4215ad92d325d92c9cb19ee6729ebd87e3250072cdcde"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:048c01eee07d37cbd066fc512b9d8b5ea88ceeb4e629ab94b3e56965ad655add"}, + {file = "pydantic_core-2.33.1-pp310-pypy310_pp73-win_amd64.whl", hash = "sha256:5ccd429694cf26af7997595d627dd2637e7932214486f55b8a357edaac9dae8c"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_10_12_x86_64.whl", hash = "sha256:3a371dc00282c4b84246509a5ddc808e61b9864aa1eae9ecc92bb1268b82db4a"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-macosx_11_0_arm64.whl", hash = "sha256:f59295ecc75a1788af8ba92f2e8c6eeaa5a94c22fc4d151e8d9638814f85c8fc"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:08530b8ac922003033f399128505f513e30ca770527cc8bbacf75a84fcc2c74b"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:bae370459da6a5466978c0eacf90690cb57ec9d533f8e63e564ef3822bfa04fe"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:e3de2777e3b9f4d603112f78006f4ae0acb936e95f06da6cb1a45fbad6bdb4b5"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:3a64e81e8cba118e108d7126362ea30e021291b7805d47e4896e52c791be2761"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:52928d8c1b6bda03cc6d811e8923dffc87a2d3c8b3bfd2ce16471c7147a24850"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:1b30d92c9412beb5ac6b10a3eb7ef92ccb14e3f2a8d7732e2d739f58b3aa7544"}, + {file = "pydantic_core-2.33.1-pp311-pypy311_pp73-win_amd64.whl", hash = "sha256:f995719707e0e29f0f41a8aa3bcea6e761a36c9136104d3189eafb83f5cec5e5"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-macosx_10_12_x86_64.whl", hash = "sha256:7edbc454a29fc6aeae1e1eecba4f07b63b8d76e76a748532233c4c167b4cb9ea"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-macosx_11_0_arm64.whl", hash = "sha256:ad05b683963f69a1d5d2c2bdab1274a31221ca737dbbceaa32bcb67359453cdd"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_17_aarch64.manylinux2014_aarch64.whl", hash = "sha256:df6a94bf9452c6da9b5d76ed229a5683d0306ccb91cca8e1eea883189780d568"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_17_x86_64.manylinux2014_x86_64.whl", hash = "sha256:7965c13b3967909a09ecc91f21d09cfc4576bf78140b988904e94f130f188396"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-manylinux_2_5_i686.manylinux1_i686.whl", hash = "sha256:3f1fdb790440a34f6ecf7679e1863b825cb5ffde858a9197f851168ed08371e5"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_aarch64.whl", hash = "sha256:5277aec8d879f8d05168fdd17ae811dd313b8ff894aeeaf7cd34ad28b4d77e33"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_armv7l.whl", hash = "sha256:8ab581d3530611897d863d1a649fb0644b860286b4718db919bfd51ece41f10b"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-musllinux_1_1_x86_64.whl", hash = "sha256:0483847fa9ad5e3412265c1bd72aad35235512d9ce9d27d81a56d935ef489672"}, + {file = "pydantic_core-2.33.1-pp39-pypy39_pp73-win_amd64.whl", hash = "sha256:de9e06abe3cc5ec6a2d5f75bc99b0bdca4f5c719a5b34026f8c57efbdecd2ee3"}, + {file = "pydantic_core-2.33.1.tar.gz", hash = "sha256:bcc9c6fdb0ced789245b02b7d6603e17d1563064ddcfc36f046b61c0c05dd9df"}, ] [package.dependencies] @@ -1155,4 +1149,4 @@ test = ["aiohttp (>=3.10.5)", "flake8 (>=5.0,<6.0)", "mypy (>=0.800)", "psutil", [metadata] lock-version = "2.1" python-versions = ">=3.9" -content-hash = "d33ff88a314bc0862b75a1f69a6e8bfe62770c47f7bedd14be00348bda942cd1" +content-hash = "73969f5008660fe0c90c961d9d7cfca0e108f73a2dd6fe6a647cab04ca1f66e3" diff --git a/pyproject.toml b/pyproject.toml index d812e8fa..23a1a66a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.32.3" +version = "0.33.0" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" @@ -11,7 +11,7 @@ dependencies = [ "eval-type-backport >=0.2.0", "httpx >=0.27.0", "nest-asyncio >=1.6.0", - "pydantic >=2.10.3", + "pydantic >=2.11.2", "pypdf >=4.0", "python-dateutil >=2.8.2", "requests-toolbelt >=1.0.0", @@ -35,7 +35,7 @@ in-project = true [tool.poetry.group.dev.dependencies] deepdiff = ">=6.0" freezegun = ">=1.5.1" -mypy = "==1.14.1" +mypy = "==1.15.0" pylint = "==3.2.3" pytest = ">=8.3.3" pytest-asyncio = ">=0.24.0" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index 7a2137de..e546e0cc 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.32.3" +__version__: str = "0.33.0" __openapi_doc_version__: str = "1.1.7" -__gen_version__: str = "2.568.2" -__user_agent__: str = "speakeasy-sdk/python 0.32.3 2.568.2 1.1.7 unstructured-client" +__gen_version__: str = "2.578.0" +__user_agent__: str = "speakeasy-sdk/python 0.33.0 2.578.0 1.1.7 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/destinations.py b/src/unstructured_client/destinations.py index 6eba26da..0d4e7bef 100644 --- a/src/unstructured_client/destinations.py +++ b/src/unstructured_client/destinations.py @@ -9,6 +9,264 @@ class Destinations(BaseSDK): + def check_destination_connection_api_v1_destinations_destination_id_connection_check_post( + self, + *, + request: Union[ + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse: + r"""Check Destination Connection + + Check Destination Connection + + Initiates a connection check for the specified destination connector. + + **Parameters:** + - **destination_id**: The UUID of the destination connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - The result of the connection check. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS[ + operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + ) + request = cast( + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + request, + ) + + req = self._build_request( + method="POST", + path="/api/v1/destinations/{destination_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = self.do_request( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="check_destination_connection_api_v1_destinations__destination_id__connection_check_post", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "202", "application/json"): + return operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + + async def check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async( + self, + *, + request: Union[ + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse: + r"""Check Destination Connection + + Check Destination Connection + + Initiates a connection check for the specified destination connector. + + **Parameters:** + - **destination_id**: The UUID of the destination connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - The result of the connection check. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS[ + operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + ) + request = cast( + operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + request, + ) + + req = self._build_request_async( + method="POST", + path="/api/v1/destinations/{destination_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="check_destination_connection_api_v1_destinations__destination_id__connection_check_post", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "202", "application/json"): + return operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + def create_destination( self, *, @@ -695,6 +953,264 @@ async def get_destination_async( http_res, ) + def get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get( + self, + *, + request: Union[ + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse: + r"""Get Destination Connection Check + + Get Destination Connection Check + + Retrieves the most recent connection check for the specified destination connector. + + **Parameters:** + - **destination_id**: The UUID of the destination connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - Connection check results. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS[ + operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + ) + request = cast( + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + request, + ) + + req = self._build_request( + method="GET", + path="/api/v1/destinations/{destination_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = self.do_request( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + + async def get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get_async( + self, + *, + request: Union[ + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse: + r"""Get Destination Connection Check + + Get Destination Connection Check + + Retrieves the most recent connection check for the specified destination connector. + + **Parameters:** + - **destination_id**: The UUID of the destination connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - Connection check results. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS[ + operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + ) + request = cast( + operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + request, + ) + + req = self._build_request_async( + method="GET", + path="/api/v1/destinations/{destination_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + def list_destinations( self, *, diff --git a/src/unstructured_client/models/operations/__init__.py b/src/unstructured_client/models/operations/__init__.py index 7a02a0ac..7391c8d1 100644 --- a/src/unstructured_client/models/operations/__init__.py +++ b/src/unstructured_client/models/operations/__init__.py @@ -8,6 +8,22 @@ CancelJobResponse, CancelJobResponseTypedDict, ) +from .check_connection_api_v1_sources_source_id_connection_check_post import ( + CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS, + CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API, + CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, + CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse, + CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict, +) +from .check_destination_connection_api_v1_destinations_destination_id_connection_check_post import ( + CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS, + CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API, + CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, + CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, + CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse, + CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict, +) from .create_destination import ( CREATE_DESTINATION_SERVERS, CREATE_DESTINATION_SERVER_PLATFORM_API, @@ -64,6 +80,14 @@ DownloadJobOutputResponse, DownloadJobOutputResponseTypedDict, ) +from .get_connection_check_api_v1_sources_source_id_connection_check_get import ( + GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS, + GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API, + GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, + GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse, + GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict, +) from .get_destination import ( GET_DESTINATION_SERVERS, GET_DESTINATION_SERVER_PLATFORM_API, @@ -72,6 +96,14 @@ GetDestinationResponse, GetDestinationResponseTypedDict, ) +from .get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get import ( + GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS, + GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API, + GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, + GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, + GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse, + GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict, +) from .get_job import ( GET_JOB_SERVERS, GET_JOB_SERVER_PLATFORM_API, @@ -174,6 +206,10 @@ __all__ = [ "CANCEL_JOB_SERVERS", "CANCEL_JOB_SERVER_PLATFORM_API", + "CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS", + "CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API", + "CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS", + "CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API", "CREATE_DESTINATION_SERVERS", "CREATE_DESTINATION_SERVER_PLATFORM_API", "CREATE_SOURCE_SERVERS", @@ -184,6 +220,14 @@ "CancelJobRequestTypedDict", "CancelJobResponse", "CancelJobResponseTypedDict", + "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest", + "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict", + "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse", + "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict", + "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest", + "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict", + "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse", + "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict", "CreateDestinationRequest", "CreateDestinationRequestTypedDict", "CreateDestinationResponse", @@ -220,6 +264,10 @@ "DownloadJobOutputRequestTypedDict", "DownloadJobOutputResponse", "DownloadJobOutputResponseTypedDict", + "GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS", + "GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API", + "GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS", + "GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API", "GET_DESTINATION_SERVERS", "GET_DESTINATION_SERVER_PLATFORM_API", "GET_JOB_SERVERS", @@ -228,6 +276,14 @@ "GET_SOURCE_SERVER_PLATFORM_API", "GET_WORKFLOW_SERVERS", "GET_WORKFLOW_SERVER_PLATFORM_API", + "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest", + "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict", + "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse", + "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict", + "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest", + "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict", + "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse", + "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict", "GetDestinationRequest", "GetDestinationRequestTypedDict", "GetDestinationResponse", diff --git a/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py b/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py new file mode 100644 index 00000000..6902c8db --- /dev/null +++ b/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py @@ -0,0 +1,106 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import httpx +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict +from unstructured_client.models.shared import ( + dagnodeconnectioncheck as shared_dagnodeconnectioncheck, +) +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata + +CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API = ( + "platform-api" +) +r"""Unstructured Platform API""" + +CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS = { + CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", +} + + +class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict(TypedDict): + source_id: str + unstructured_api_key: NotRequired[Nullable[str]] + + +class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest(BaseModel): + source_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + unstructured_api_key: Annotated[ + OptionalNullable[str], + pydantic.Field(alias="unstructured-api-key"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["unstructured-api-key"] + nullable_fields = ["unstructured-api-key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict( + TypedDict +): + content_type: str + r"""HTTP response content type for this operation""" + status_code: int + r"""HTTP response status code for this operation""" + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + dag_node_connection_check: NotRequired[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict + ] + r"""Successful Response""" + + +class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse(BaseModel): + content_type: str + r"""HTTP response content type for this operation""" + + status_code: int + r"""HTTP response status code for this operation""" + + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + + dag_node_connection_check: Optional[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheck + ] = None + r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py b/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py new file mode 100644 index 00000000..b1c76d82 --- /dev/null +++ b/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py @@ -0,0 +1,110 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import httpx +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict +from unstructured_client.models.shared import ( + dagnodeconnectioncheck as shared_dagnodeconnectioncheck, +) +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata + +CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API = "platform-api" +r"""Unstructured Platform API""" + +CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS = { + CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", +} + + +class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict( + TypedDict +): + destination_id: str + unstructured_api_key: NotRequired[Nullable[str]] + + +class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest( + BaseModel +): + destination_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + unstructured_api_key: Annotated[ + OptionalNullable[str], + pydantic.Field(alias="unstructured-api-key"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["unstructured-api-key"] + nullable_fields = ["unstructured-api-key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict( + TypedDict +): + content_type: str + r"""HTTP response content type for this operation""" + status_code: int + r"""HTTP response status code for this operation""" + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + dag_node_connection_check: NotRequired[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict + ] + r"""Successful Response""" + + +class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( + BaseModel +): + content_type: str + r"""HTTP response content type for this operation""" + + status_code: int + r"""HTTP response status code for this operation""" + + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + + dag_node_connection_check: Optional[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheck + ] = None + r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py b/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py new file mode 100644 index 00000000..46f44e76 --- /dev/null +++ b/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py @@ -0,0 +1,106 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import httpx +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict +from unstructured_client.models.shared import ( + dagnodeconnectioncheck as shared_dagnodeconnectioncheck, +) +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata + +GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API = "platform-api" +r"""Unstructured Platform API""" + +GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS = { + GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", +} + + +class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict( + TypedDict +): + source_id: str + unstructured_api_key: NotRequired[Nullable[str]] + + +class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest(BaseModel): + source_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + unstructured_api_key: Annotated[ + OptionalNullable[str], + pydantic.Field(alias="unstructured-api-key"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["unstructured-api-key"] + nullable_fields = ["unstructured-api-key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict( + TypedDict +): + content_type: str + r"""HTTP response content type for this operation""" + status_code: int + r"""HTTP response status code for this operation""" + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + dag_node_connection_check: NotRequired[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict + ] + r"""Successful Response""" + + +class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse(BaseModel): + content_type: str + r"""HTTP response content type for this operation""" + + status_code: int + r"""HTTP response status code for this operation""" + + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + + dag_node_connection_check: Optional[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheck + ] = None + r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py b/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py new file mode 100644 index 00000000..be37612c --- /dev/null +++ b/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py @@ -0,0 +1,110 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +import httpx +import pydantic +from pydantic import model_serializer +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict +from unstructured_client.models.shared import ( + dagnodeconnectioncheck as shared_dagnodeconnectioncheck, +) +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) +from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata + +GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API = "platform-api" +r"""Unstructured Platform API""" + +GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS = { + GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", +} + + +class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict( + TypedDict +): + destination_id: str + unstructured_api_key: NotRequired[Nullable[str]] + + +class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest( + BaseModel +): + destination_id: Annotated[ + str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) + ] + + unstructured_api_key: Annotated[ + OptionalNullable[str], + pydantic.Field(alias="unstructured-api-key"), + FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), + ] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["unstructured-api-key"] + nullable_fields = ["unstructured-api-key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m + + +class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict( + TypedDict +): + content_type: str + r"""HTTP response content type for this operation""" + status_code: int + r"""HTTP response status code for this operation""" + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + dag_node_connection_check: NotRequired[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict + ] + r"""Successful Response""" + + +class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( + BaseModel +): + content_type: str + r"""HTTP response content type for this operation""" + + status_code: int + r"""HTTP response status code for this operation""" + + raw_response: httpx.Response + r"""Raw HTTP response; suitable for custom response parsing""" + + dag_node_connection_check: Optional[ + shared_dagnodeconnectioncheck.DagNodeConnectionCheck + ] = None + r"""Successful Response""" diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index a69961fa..26e65b5c 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -16,14 +16,6 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) -from .azuredestinationconnectorconfig import ( - AzureDestinationConnectorConfig, - AzureDestinationConnectorConfigTypedDict, -) -from .azuredestinationconnectorconfiginput import ( - AzureDestinationConnectorConfigInput, - AzureDestinationConnectorConfigInputTypedDict, -) from .azuresourceconnectorconfig import ( AzureSourceConnectorConfig, AzureSourceConnectorConfigTypedDict, @@ -54,6 +46,7 @@ ConfluenceSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInputTypedDict, ) +from .connectioncheckstatus import ConnectionCheckStatus from .couchbasedestinationconnectorconfig import ( CouchbaseDestinationConnectorConfig, CouchbaseDestinationConnectorConfigTypedDict, @@ -84,6 +77,10 @@ ) from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule from .crontabentry import CronTabEntry, CronTabEntryTypedDict +from .dagnodeconnectioncheck import ( + DagNodeConnectionCheck, + DagNodeConnectionCheckTypedDict, +) from .databricksvdtdestinationconnectorconfig import ( DatabricksVDTDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfigTypedDict, @@ -369,7 +366,6 @@ ) from .workflowinformation import WorkflowInformation, WorkflowInformationTypedDict from .workflownode import WorkflowNode, WorkflowNodeTypedDict -from .workflownodetype import WorkflowNodeType from .workflowschedule import WorkflowSchedule, WorkflowScheduleTypedDict from .workflowstate import WorkflowState from .workflowtype import WorkflowType @@ -392,10 +388,6 @@ "AzureAISearchConnectorConfigInput", "AzureAISearchConnectorConfigInputTypedDict", "AzureAISearchConnectorConfigTypedDict", - "AzureDestinationConnectorConfig", - "AzureDestinationConnectorConfigInput", - "AzureDestinationConnectorConfigInputTypedDict", - "AzureDestinationConnectorConfigTypedDict", "AzureSourceConnectorConfig", "AzureSourceConnectorConfigInput", "AzureSourceConnectorConfigInputTypedDict", @@ -412,6 +404,7 @@ "ConfluenceSourceConnectorConfigInput", "ConfluenceSourceConnectorConfigInputTypedDict", "ConfluenceSourceConnectorConfigTypedDict", + "ConnectionCheckStatus", "CouchbaseDestinationConnectorConfig", "CouchbaseDestinationConnectorConfigInput", "CouchbaseDestinationConnectorConfigInputTypedDict", @@ -430,6 +423,8 @@ "CreateWorkflowTypedDict", "CronTabEntry", "CronTabEntryTypedDict", + "DagNodeConnectionCheck", + "DagNodeConnectionCheckTypedDict", "DatabricksVDTDestinationConnectorConfig", "DatabricksVDTDestinationConnectorConfigInput", "DatabricksVDTDestinationConnectorConfigInputTypedDict", @@ -592,7 +587,6 @@ "WorkflowInformation", "WorkflowInformationTypedDict", "WorkflowNode", - "WorkflowNodeType", "WorkflowNodeTypedDict", "WorkflowSchedule", "WorkflowScheduleTypedDict", diff --git a/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py deleted file mode 100644 index caebb2c0..00000000 --- a/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py +++ /dev/null @@ -1,72 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) - - -class AzureDestinationConnectorConfigInputTypedDict(TypedDict): - remote_url: str - account_key: NotRequired[Nullable[str]] - account_name: NotRequired[Nullable[str]] - connection_string: NotRequired[Nullable[str]] - sas_token: NotRequired[Nullable[str]] - - -class AzureDestinationConnectorConfigInput(BaseModel): - remote_url: str - - account_key: OptionalNullable[str] = UNSET - - account_name: OptionalNullable[str] = UNSET - - connection_string: OptionalNullable[str] = UNSET - - sas_token: OptionalNullable[str] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = [ - "account_key", - "account_name", - "connection_string", - "sas_token", - ] - nullable_fields = [ - "account_key", - "account_name", - "connection_string", - "sas_token", - ] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/unstructured_client/models/shared/workflownodetype.py b/src/unstructured_client/models/shared/connectioncheckstatus.py similarity index 50% rename from src/unstructured_client/models/shared/workflownodetype.py rename to src/unstructured_client/models/shared/connectioncheckstatus.py index 7addfdb3..a2f6477f 100644 --- a/src/unstructured_client/models/shared/workflownodetype.py +++ b/src/unstructured_client/models/shared/connectioncheckstatus.py @@ -4,8 +4,7 @@ from enum import Enum -class WorkflowNodeType(str, Enum): - PARTITION = "partition" - PROMPTER = "prompter" - CHUNK = "chunk" - EMBED = "embed" +class ConnectionCheckStatus(str, Enum): + SCHEDULED = "SCHEDULED" + SUCCESS = "SUCCESS" + FAILURE = "FAILURE" diff --git a/src/unstructured_client/models/shared/createdestinationconnector.py b/src/unstructured_client/models/shared/createdestinationconnector.py index 2a3cbbe2..a6699c29 100644 --- a/src/unstructured_client/models/shared/createdestinationconnector.py +++ b/src/unstructured_client/models/shared/createdestinationconnector.py @@ -9,10 +9,6 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) -from .azuredestinationconnectorconfiginput import ( - AzureDestinationConnectorConfigInput, - AzureDestinationConnectorConfigInputTypedDict, -) from .couchbasedestinationconnectorconfiginput import ( CouchbaseDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInputTypedDict, @@ -96,21 +92,20 @@ Union[ GCSDestinationConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, - MongoDBConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, PineconeDestinationConnectorConfigInputTypedDict, - AzureDestinationConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, S3DestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, - PostgresDestinationConnectorConfigInputTypedDict, MilvusDestinationConnectorConfigInputTypedDict, - KafkaCloudDestinationConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + PostgresDestinationConnectorConfigInputTypedDict, + KafkaCloudDestinationConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, @@ -124,21 +119,20 @@ Union[ GCSDestinationConnectorConfigInput, ElasticsearchConnectorConfigInput, - MongoDBConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, + MongoDBConnectorConfigInput, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, PineconeDestinationConnectorConfigInput, - AzureDestinationConnectorConfigInput, Neo4jDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, S3DestinationConnectorConfigInput, AstraDBConnectorConfigInput, - PostgresDestinationConnectorConfigInput, MilvusDestinationConnectorConfigInput, - KafkaCloudDestinationConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + PostgresDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/createworkflow.py b/src/unstructured_client/models/shared/createworkflow.py index f2892c60..782aa0b1 100644 --- a/src/unstructured_client/models/shared/createworkflow.py +++ b/src/unstructured_client/models/shared/createworkflow.py @@ -34,6 +34,7 @@ class CreateWorkflowTypedDict(TypedDict): name: str workflow_type: WorkflowType destination_id: NotRequired[Nullable[str]] + reprocess_all: NotRequired[Nullable[bool]] schedule: NotRequired[Nullable[Schedule]] source_id: NotRequired[Nullable[str]] workflow_nodes: NotRequired[Nullable[List[WorkflowNodeTypedDict]]] @@ -46,6 +47,8 @@ class CreateWorkflow(BaseModel): destination_id: OptionalNullable[str] = UNSET + reprocess_all: OptionalNullable[bool] = UNSET + schedule: OptionalNullable[Schedule] = UNSET source_id: OptionalNullable[str] = UNSET @@ -54,8 +57,20 @@ class CreateWorkflow(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["destination_id", "schedule", "source_id", "workflow_nodes"] - nullable_fields = ["destination_id", "schedule", "source_id", "workflow_nodes"] + optional_fields = [ + "destination_id", + "reprocess_all", + "schedule", + "source_id", + "workflow_nodes", + ] + nullable_fields = [ + "destination_id", + "reprocess_all", + "schedule", + "source_id", + "workflow_nodes", + ] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/azuredestinationconnectorconfig.py b/src/unstructured_client/models/shared/dagnodeconnectioncheck.py similarity index 58% rename from src/unstructured_client/models/shared/azuredestinationconnectorconfig.py rename to src/unstructured_client/models/shared/dagnodeconnectioncheck.py index 31075deb..fade6b96 100644 --- a/src/unstructured_client/models/shared/azuredestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/dagnodeconnectioncheck.py @@ -1,6 +1,8 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .connectioncheckstatus import ConnectionCheckStatus +from datetime import datetime from pydantic import model_serializer from typing_extensions import NotRequired, TypedDict from unstructured_client.types import ( @@ -12,39 +14,29 @@ ) -class AzureDestinationConnectorConfigTypedDict(TypedDict): - remote_url: str - account_key: NotRequired[Nullable[str]] - account_name: NotRequired[Nullable[str]] - connection_string: NotRequired[Nullable[str]] - sas_token: NotRequired[Nullable[str]] +class DagNodeConnectionCheckTypedDict(TypedDict): + created_at: datetime + id: str + status: ConnectionCheckStatus + reason: NotRequired[Nullable[str]] + reported_at: NotRequired[Nullable[datetime]] -class AzureDestinationConnectorConfig(BaseModel): - remote_url: str +class DagNodeConnectionCheck(BaseModel): + created_at: datetime - account_key: OptionalNullable[str] = UNSET + id: str - account_name: OptionalNullable[str] = UNSET + status: ConnectionCheckStatus - connection_string: OptionalNullable[str] = UNSET + reason: OptionalNullable[str] = UNSET - sas_token: OptionalNullable[str] = UNSET + reported_at: OptionalNullable[datetime] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = [ - "account_key", - "account_name", - "connection_string", - "sas_token", - ] - nullable_fields = [ - "account_key", - "account_name", - "connection_string", - "sas_token", - ] + optional_fields = ["reason", "reported_at"] + nullable_fields = ["reason", "reported_at"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index 5dbc0e58..e25b50af 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -9,10 +9,6 @@ AzureAISearchConnectorConfig, AzureAISearchConnectorConfigTypedDict, ) -from .azuredestinationconnectorconfig import ( - AzureDestinationConnectorConfig, - AzureDestinationConnectorConfigTypedDict, -) from .couchbasedestinationconnectorconfig import ( CouchbaseDestinationConnectorConfig, CouchbaseDestinationConnectorConfigTypedDict, @@ -104,21 +100,20 @@ Union[ GCSDestinationConnectorConfigTypedDict, ElasticsearchConnectorConfigTypedDict, - MongoDBConnectorConfigTypedDict, AzureAISearchConnectorConfigTypedDict, WeaviateDestinationConnectorConfigTypedDict, + MongoDBConnectorConfigTypedDict, DeltaTableConnectorConfigTypedDict, QdrantCloudDestinationConnectorConfigTypedDict, PineconeDestinationConnectorConfigTypedDict, - AzureDestinationConnectorConfigTypedDict, AstraDBConnectorConfigTypedDict, Neo4jDestinationConnectorConfigTypedDict, OneDriveDestinationConnectorConfigTypedDict, S3DestinationConnectorConfigTypedDict, - PostgresDestinationConnectorConfigTypedDict, MilvusDestinationConnectorConfigTypedDict, - KafkaCloudDestinationConnectorConfigTypedDict, DatabricksVolumesConnectorConfigTypedDict, + PostgresDestinationConnectorConfigTypedDict, + KafkaCloudDestinationConnectorConfigTypedDict, CouchbaseDestinationConnectorConfigTypedDict, RedisDestinationConnectorConfigTypedDict, DatabricksVDTDestinationConnectorConfigTypedDict, @@ -132,21 +127,20 @@ Union[ GCSDestinationConnectorConfig, ElasticsearchConnectorConfig, - MongoDBConnectorConfig, AzureAISearchConnectorConfig, WeaviateDestinationConnectorConfig, + MongoDBConnectorConfig, DeltaTableConnectorConfig, QdrantCloudDestinationConnectorConfig, PineconeDestinationConnectorConfig, - AzureDestinationConnectorConfig, AstraDBConnectorConfig, Neo4jDestinationConnectorConfig, OneDriveDestinationConnectorConfig, S3DestinationConnectorConfig, - PostgresDestinationConnectorConfig, MilvusDestinationConnectorConfig, - KafkaCloudDestinationConnectorConfig, DatabricksVolumesConnectorConfig, + PostgresDestinationConnectorConfig, + KafkaCloudDestinationConnectorConfig, CouchbaseDestinationConnectorConfig, RedisDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfig, diff --git a/src/unstructured_client/models/shared/destinationconnectortype.py b/src/unstructured_client/models/shared/destinationconnectortype.py index f61c4a77..098a3b38 100644 --- a/src/unstructured_client/models/shared/destinationconnectortype.py +++ b/src/unstructured_client/models/shared/destinationconnectortype.py @@ -5,7 +5,6 @@ class DestinationConnectorType(str, Enum): - AZURE = "azure" ASTRADB = "astradb" AZURE_AI_SEARCH = "azure_ai_search" COUCHBASE = "couchbase" diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py index 0ea4aa0e..47e74cd5 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py @@ -2,44 +2,87 @@ from __future__ import annotations import pydantic +from pydantic import model_serializer from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.types import BaseModel +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) class SnowflakeDestinationConnectorConfigTypedDict(TypedDict): account: str - batch_size: int database: str host: str password: str - port: int - record_id_key: str role: str - table_name: str user: str + batch_size: NotRequired[int] + port: NotRequired[int] + record_id_key: NotRequired[Nullable[str]] schema_: NotRequired[str] + table_name: NotRequired[str] class SnowflakeDestinationConnectorConfig(BaseModel): account: str - batch_size: int - database: str host: str password: str - port: int + role: str - record_id_key: str + user: str - role: str + batch_size: Optional[int] = 50 - table_name: str + port: Optional[int] = 443 - user: str + 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", + ] + nullable_fields = ["record_id_key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py index eceda64c..3c9040c9 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py @@ -3,7 +3,7 @@ from __future__ import annotations import pydantic from pydantic import model_serializer -from typing import List, Optional +from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -17,17 +17,15 @@ class SnowflakeDestinationConnectorConfigInputTypedDict(TypedDict): account: str database: str - fields: List[str] host: str - id_column: str password: str role: str - table_name: str user: str batch_size: NotRequired[int] port: NotRequired[int] record_id_key: NotRequired[Nullable[str]] schema_: NotRequired[str] + table_name: NotRequired[str] class SnowflakeDestinationConnectorConfigInput(BaseModel): @@ -35,21 +33,15 @@ class SnowflakeDestinationConnectorConfigInput(BaseModel): database: str - fields: List[str] - host: str - id_column: str - password: str role: str - table_name: str - user: str - batch_size: Optional[int] = 100 + batch_size: Optional[int] = 50 port: Optional[int] = 443 @@ -57,9 +49,17 @@ class SnowflakeDestinationConnectorConfigInput(BaseModel): 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"] + optional_fields = [ + "batch_size", + "port", + "record_id_key", + "schema", + "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 44cf176c..0fafc35f 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py @@ -2,47 +2,84 @@ from __future__ import annotations import pydantic +from pydantic import model_serializer from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.types import BaseModel +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) class SnowflakeSourceConnectorConfigTypedDict(TypedDict): account: str - batch_size: int database: str - fields: List[str] host: str id_column: str password: str - port: int role: str table_name: str user: str + batch_size: NotRequired[int] + fields: NotRequired[Nullable[List[str]]] + port: NotRequired[int] schema_: NotRequired[str] class SnowflakeSourceConnectorConfig(BaseModel): account: str - batch_size: int - database: str - fields: List[str] - host: str id_column: str password: str - port: int - role: str table_name: str user: str + batch_size: Optional[int] = 100 + + fields: OptionalNullable[List[str]] = UNSET + + 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"] + nullable_fields = ["fields"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/updatedestinationconnector.py b/src/unstructured_client/models/shared/updatedestinationconnector.py index fd446c49..c0499187 100644 --- a/src/unstructured_client/models/shared/updatedestinationconnector.py +++ b/src/unstructured_client/models/shared/updatedestinationconnector.py @@ -9,10 +9,6 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) -from .azuredestinationconnectorconfiginput import ( - AzureDestinationConnectorConfigInput, - AzureDestinationConnectorConfigInputTypedDict, -) from .couchbasedestinationconnectorconfiginput import ( CouchbaseDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInputTypedDict, @@ -95,21 +91,20 @@ Union[ GCSDestinationConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, - MongoDBConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, PineconeDestinationConnectorConfigInputTypedDict, - AzureDestinationConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, S3DestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, - PostgresDestinationConnectorConfigInputTypedDict, MilvusDestinationConnectorConfigInputTypedDict, - KafkaCloudDestinationConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + PostgresDestinationConnectorConfigInputTypedDict, + KafkaCloudDestinationConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, @@ -123,21 +118,20 @@ Union[ GCSDestinationConnectorConfigInput, ElasticsearchConnectorConfigInput, - MongoDBConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, + MongoDBConnectorConfigInput, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, PineconeDestinationConnectorConfigInput, - AzureDestinationConnectorConfigInput, Neo4jDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, S3DestinationConnectorConfigInput, AstraDBConnectorConfigInput, - PostgresDestinationConnectorConfigInput, MilvusDestinationConnectorConfigInput, - KafkaCloudDestinationConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + PostgresDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/updateworkflow.py b/src/unstructured_client/models/shared/updateworkflow.py index d4824c42..1198f32d 100644 --- a/src/unstructured_client/models/shared/updateworkflow.py +++ b/src/unstructured_client/models/shared/updateworkflow.py @@ -33,6 +33,7 @@ class UpdateWorkflowSchedule(str, Enum): class UpdateWorkflowTypedDict(TypedDict): destination_id: NotRequired[Nullable[str]] name: NotRequired[Nullable[str]] + reprocess_all: NotRequired[Nullable[bool]] schedule: NotRequired[Nullable[UpdateWorkflowSchedule]] source_id: NotRequired[Nullable[str]] workflow_nodes: NotRequired[Nullable[List[WorkflowNodeTypedDict]]] @@ -44,6 +45,8 @@ class UpdateWorkflow(BaseModel): name: OptionalNullable[str] = UNSET + reprocess_all: OptionalNullable[bool] = UNSET + schedule: OptionalNullable[UpdateWorkflowSchedule] = UNSET source_id: OptionalNullable[str] = UNSET @@ -57,6 +60,7 @@ def serialize_model(self, handler): optional_fields = [ "destination_id", "name", + "reprocess_all", "schedule", "source_id", "workflow_nodes", @@ -65,6 +69,7 @@ def serialize_model(self, handler): nullable_fields = [ "destination_id", "name", + "reprocess_all", "schedule", "source_id", "workflow_nodes", diff --git a/src/unstructured_client/models/shared/workflowinformation.py b/src/unstructured_client/models/shared/workflowinformation.py index 73bbce0b..599ce3f2 100644 --- a/src/unstructured_client/models/shared/workflowinformation.py +++ b/src/unstructured_client/models/shared/workflowinformation.py @@ -26,6 +26,7 @@ class WorkflowInformationTypedDict(TypedDict): sources: List[str] status: WorkflowState workflow_nodes: List[WorkflowNodeTypedDict] + reprocess_all: NotRequired[Nullable[bool]] schedule: NotRequired[Nullable[WorkflowScheduleTypedDict]] updated_at: NotRequired[Nullable[datetime]] workflow_type: NotRequired[Nullable[WorkflowType]] @@ -46,6 +47,8 @@ class WorkflowInformation(BaseModel): workflow_nodes: List[WorkflowNode] + reprocess_all: OptionalNullable[bool] = UNSET + schedule: OptionalNullable[WorkflowSchedule] = UNSET updated_at: OptionalNullable[datetime] = UNSET @@ -54,8 +57,8 @@ class WorkflowInformation(BaseModel): @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["schedule", "updated_at", "workflow_type"] - nullable_fields = ["schedule", "updated_at", "workflow_type"] + optional_fields = ["reprocess_all", "schedule", "updated_at", "workflow_type"] + nullable_fields = ["reprocess_all", "schedule", "updated_at", "workflow_type"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/workflownode.py b/src/unstructured_client/models/shared/workflownode.py index 87d22acc..86ca02a5 100644 --- a/src/unstructured_client/models/shared/workflownode.py +++ b/src/unstructured_client/models/shared/workflownode.py @@ -1,7 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from .workflownodetype import WorkflowNodeType from pydantic import model_serializer from typing import Any, Dict from typing_extensions import NotRequired, TypedDict @@ -17,7 +16,7 @@ class WorkflowNodeTypedDict(TypedDict): name: str subtype: str - type: WorkflowNodeType + type: str id: NotRequired[Nullable[str]] settings: NotRequired[Nullable[Dict[str, Any]]] @@ -27,7 +26,7 @@ class WorkflowNode(BaseModel): subtype: str - type: WorkflowNodeType + type: str id: OptionalNullable[str] = UNSET diff --git a/src/unstructured_client/sources.py b/src/unstructured_client/sources.py index 20d0d09d..4761ad85 100644 --- a/src/unstructured_client/sources.py +++ b/src/unstructured_client/sources.py @@ -9,6 +9,264 @@ class Sources(BaseSDK): + def check_connection_api_v1_sources_source_id_connection_check_post( + self, + *, + request: Union[ + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse: + r"""Check Connection + + Check Connection + + Initiates a connection check for the specified source connector. + + **Parameters:** + - **source_id**: The UUID of the source connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - The result of the connection check. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS[ + operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + ) + request = cast( + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + request, + ) + + req = self._build_request( + method="POST", + path="/api/v1/sources/{source_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = self.do_request( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="check_connection_api_v1_sources__source_id__connection_check_post", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "202", "application/json"): + return operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + + async def check_connection_api_v1_sources_source_id_connection_check_post_async( + self, + *, + request: Union[ + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse: + r"""Check Connection + + Check Connection + + Initiates a connection check for the specified source connector. + + **Parameters:** + - **source_id**: The UUID of the source connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - The result of the connection check. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS[ + operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + ) + request = cast( + operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, + request, + ) + + req = self._build_request_async( + method="POST", + path="/api/v1/sources/{source_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="check_connection_api_v1_sources__source_id__connection_check_post", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "202", "application/json"): + return operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + def create_source( self, *, @@ -467,6 +725,264 @@ async def delete_source_async( http_res, ) + def get_connection_check_api_v1_sources_source_id_connection_check_get( + self, + *, + request: Union[ + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse: + r"""Get Connection Check + + Get Connection Checks + + Retrieves the most recent connection check for the specified source connector. + + **Parameters:** + - **source_id**: The UUID of the source connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - Connection check results. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS[ + operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + ) + request = cast( + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + request, + ) + + req = self._build_request( + method="GET", + path="/api/v1/sources/{source_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = self.do_request( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="get_connection_check_api_v1_sources__source_id__connection_check_get", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = utils.stream_to_text(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + + async def get_connection_check_api_v1_sources_source_id_connection_check_get_async( + self, + *, + request: Union[ + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, + ], + retries: OptionalNullable[utils.RetryConfig] = UNSET, + server_url: Optional[str] = None, + timeout_ms: Optional[int] = None, + http_headers: Optional[Mapping[str, str]] = None, + ) -> operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse: + r"""Get Connection Check + + Get Connection Checks + + Retrieves the most recent connection check for the specified source connector. + + **Parameters:** + - **source_id**: The UUID of the source connector. + - **db_session**: Database session dependency. + - **user_data**: Information about the authenticated user. + + **Returns:** + - Connection check results. + + :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 + :param timeout_ms: Override the default request timeout configuration for this method in milliseconds + :param http_headers: Additional headers to set or replace on requests. + """ + base_url = None + url_variables = None + if timeout_ms is None: + timeout_ms = self.sdk_configuration.timeout_ms + + if server_url is not None: + base_url = server_url + else: + base_url = operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS[ + operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API + ] + + if not isinstance(request, BaseModel): + request = utils.unmarshal( + request, + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + ) + request = cast( + operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, + request, + ) + + req = self._build_request_async( + method="GET", + path="/api/v1/sources/{source_id}/connection-check", + base_url=base_url, + url_variables=url_variables, + request=request, + request_body_required=False, + request_has_path_params=True, + request_has_query_params=True, + user_agent_header="user-agent", + accept_header_value="application/json", + http_headers=http_headers, + security=self.sdk_configuration.security, + timeout_ms=timeout_ms, + ) + + if retries == UNSET: + if self.sdk_configuration.retry_config is not UNSET: + retries = self.sdk_configuration.retry_config + else: + retries = utils.RetryConfig( + "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True + ) + + retry_config = None + if isinstance(retries, utils.RetryConfig): + retry_config = (retries, ["5xx"]) + + http_res = await self.do_request_async( + hook_ctx=HookContext( + base_url=base_url or "", + operation_id="get_connection_check_api_v1_sources__source_id__connection_check_get", + oauth2_scopes=[], + security_source=self.sdk_configuration.security, + ), + request=req, + error_status_codes=["422", "4XX", "5XX"], + retry_config=retry_config, + ) + + response_data: Any = None + if utils.match_response(http_res, "200", "application/json"): + return operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse( + dag_node_connection_check=utils.unmarshal_json( + http_res.text, Optional[shared.DagNodeConnectionCheck] + ), + status_code=http_res.status_code, + content_type=http_res.headers.get("Content-Type") or "", + raw_response=http_res, + ) + if utils.match_response(http_res, "422", "application/json"): + response_data = utils.unmarshal_json( + http_res.text, errors.HTTPValidationErrorData + ) + raise errors.HTTPValidationError(data=response_data) + if utils.match_response(http_res, "4XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + if utils.match_response(http_res, "5XX", "*"): + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + "API error occurred", http_res.status_code, http_res_text, http_res + ) + + content_type = http_res.headers.get("Content-Type") + http_res_text = await utils.stream_to_text_async(http_res) + raise errors.SDKError( + f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", + http_res.status_code, + http_res_text, + http_res, + ) + def get_source( self, *, diff --git a/src/unstructured_client/types/basemodel.py b/src/unstructured_client/types/basemodel.py index a6187efa..231c2e37 100644 --- a/src/unstructured_client/types/basemodel.py +++ b/src/unstructured_client/types/basemodel.py @@ -2,7 +2,7 @@ from pydantic import ConfigDict, model_serializer from pydantic import BaseModel as PydanticBaseModel -from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType +from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union from typing_extensions import TypeAliasType, TypeAlias @@ -35,5 +35,5 @@ def __bool__(self) -> Literal[False]: "OptionalNullable", Union[Optional[Nullable[T]], Unset], type_params=(T,) ) -UnrecognizedInt = NewType("UnrecognizedInt", int) -UnrecognizedStr = NewType("UnrecognizedStr", str) +UnrecognizedInt: TypeAlias = int +UnrecognizedStr: TypeAlias = str From ccbaffc49317725f948374d997b0708b9b6381e0 Mon Sep 17 00:00:00 2001 From: Austin Walker Date: Thu, 17 Apr 2025 13:09:47 -0400 Subject: [PATCH 2/3] Remove connection check endpoints --- .speakeasy/gen.lock | 36 +- README.md | 98 +++- RELEASES.md | 4 +- USAGE.md | 38 +- ...urcessourceidconnectioncheckpostrequest.md | 9 - ...rcessourceidconnectioncheckpostresponse.md | 11 - ...destinationidconnectioncheckpostrequest.md | 9 - ...estinationidconnectioncheckpostresponse.md | 11 - ...ourcessourceidconnectioncheckgetrequest.md | 9 - ...urcessourceidconnectioncheckgetresponse.md | 11 - ...sdestinationidconnectioncheckgetrequest.md | 9 - ...destinationidconnectioncheckgetresponse.md | 11 - docs/models/shared/connectioncheckstatus.md | 10 - docs/models/shared/dagnodeconnectioncheck.md | 12 - docs/sdks/destinations/README.md | 106 ---- docs/sdks/sources/README.md | 106 ---- gen.yaml | 2 +- pyproject.toml | 2 +- src/unstructured_client/_version.py | 6 +- src/unstructured_client/destinations.py | 516 ------------------ .../models/operations/__init__.py | 56 -- ...sources_source_id_connection_check_post.py | 106 ---- ...ns_destination_id_connection_check_post.py | 110 ---- ..._sources_source_id_connection_check_get.py | 106 ---- ...ons_destination_id_connection_check_get.py | 110 ---- .../models/shared/__init__.py | 8 - .../models/shared/connectioncheckstatus.py | 10 - .../models/shared/dagnodeconnectioncheck.py | 64 --- src/unstructured_client/sources.py | 516 ------------------ 29 files changed, 123 insertions(+), 1979 deletions(-) delete mode 100644 docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md delete mode 100644 docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md delete mode 100644 docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md delete mode 100644 docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md delete mode 100644 docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md delete mode 100644 docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md delete mode 100644 docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md delete mode 100644 docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md delete mode 100644 docs/models/shared/connectioncheckstatus.md delete mode 100644 docs/models/shared/dagnodeconnectioncheck.md delete mode 100644 src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py delete mode 100644 src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py delete mode 100644 src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py delete mode 100644 src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py delete mode 100644 src/unstructured_client/models/shared/connectioncheckstatus.py delete mode 100644 src/unstructured_client/models/shared/dagnodeconnectioncheck.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8d35dea0..db48ee55 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: e3c8da4d880f93f1bf483a45d1fe2016 + docChecksum: a22c1e202b7ac1f3305521fb7827a79d docVersion: 1.1.7 - speakeasyVersion: 1.533.0 - generationVersion: 2.578.0 - releaseVersion: 0.33.0 - configChecksum: d3a6fe7f2ae7f430c8fff9c158af4f46 + speakeasyVersion: 1.534.0 + generationVersion: 2.585.0 + releaseVersion: 0.32.4 + configChecksum: cb28766c7ee08012d26a252eff80b540 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -46,10 +46,6 @@ generatedFiles: - docs/models/errors/servererror.md - docs/models/operations/canceljobrequest.md - docs/models/operations/canceljobresponse.md - - docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md - - docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md - - docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md - - docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md - docs/models/operations/createdestinationrequest.md - docs/models/operations/createdestinationresponse.md - docs/models/operations/createsourcerequest.md @@ -64,10 +60,6 @@ generatedFiles: - docs/models/operations/deleteworkflowresponse.md - docs/models/operations/downloadjoboutputrequest.md - docs/models/operations/downloadjoboutputresponse.md - - docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md - - docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md - - docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md - - docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md - docs/models/operations/getdestinationrequest.md - docs/models/operations/getdestinationresponse.md - docs/models/operations/getjobrequest.md @@ -106,7 +98,6 @@ generatedFiles: - docs/models/shared/config.md - docs/models/shared/confluencesourceconnectorconfig.md - docs/models/shared/confluencesourceconnectorconfiginput.md - - docs/models/shared/connectioncheckstatus.md - docs/models/shared/couchbasedestinationconnectorconfig.md - docs/models/shared/couchbasedestinationconnectorconfiginput.md - docs/models/shared/couchbasesourceconnectorconfig.md @@ -116,7 +107,6 @@ generatedFiles: - docs/models/shared/createsourceconnectorconfig.md - docs/models/shared/createworkflow.md - docs/models/shared/crontabentry.md - - docs/models/shared/dagnodeconnectioncheck.md - docs/models/shared/databricksvdtdestinationconnectorconfig.md - docs/models/shared/databricksvdtdestinationconnectorconfiginput.md - docs/models/shared/databricksvolumesconnectorconfig.md @@ -237,8 +227,6 @@ generatedFiles: - src/unstructured_client/models/errors/servererror.py - src/unstructured_client/models/operations/__init__.py - src/unstructured_client/models/operations/cancel_job.py - - src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py - - src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py - src/unstructured_client/models/operations/create_destination.py - src/unstructured_client/models/operations/create_source.py - src/unstructured_client/models/operations/create_workflow.py @@ -246,9 +234,7 @@ generatedFiles: - src/unstructured_client/models/operations/delete_source.py - src/unstructured_client/models/operations/delete_workflow.py - src/unstructured_client/models/operations/download_job_output.py - - src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py - src/unstructured_client/models/operations/get_destination.py - - src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py - src/unstructured_client/models/operations/get_job.py - src/unstructured_client/models/operations/get_source.py - src/unstructured_client/models/operations/get_workflow.py @@ -273,7 +259,6 @@ generatedFiles: - src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py - src/unstructured_client/models/shared/confluencesourceconnectorconfig.py - src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py - - src/unstructured_client/models/shared/connectioncheckstatus.py - src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py - src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py - src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py @@ -282,7 +267,6 @@ generatedFiles: - src/unstructured_client/models/shared/createsourceconnector.py - src/unstructured_client/models/shared/createworkflow.py - src/unstructured_client/models/shared/crontabentry.py - - src/unstructured_client/models/shared/dagnodeconnectioncheck.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py @@ -392,7 +376,7 @@ examples: "200": application/json: {"config": {"api_key": "", "batch_size": 290189, "collection_name": "", "url": "https://gray-rawhide.name/"}, "created_at": "2023-10-16T03:44:52.760Z", "id": "b3cbed99-76f0-4238-9635-119a590e2345", "name": "", "type": "postgres"} "422": - application/json: {"detail": [{"loc": [""], "msg": "", "type": ""}, {"loc": [623109], "msg": "", "type": ""}, {"loc": [218326], "msg": "", "type": ""}]} + application/json: {"detail": []} delete_destination: speakeasy-default-delete-destination: parameters: @@ -612,7 +596,7 @@ examples: "202": application/json: {"created_at": "2024-12-11T22:17:57.402Z", "id": "337e8f13-6b28-466e-a173-b8a939d2c047", "status": "SUCCESS"} "422": - application/json: {"detail": [{"loc": [], "msg": "", "type": ""}, {"loc": ["", 580213], "msg": "", "type": ""}]} + application/json: {"detail": ""} get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get: speakeasy-default-get-destination-connection-check-api-v1-destinations-destination-id-connection-check-get: parameters: @@ -623,7 +607,7 @@ examples: "200": application/json: {"created_at": "2023-08-18T13:08:22.968Z", "id": "d3ed5db0-557c-45b6-b496-8d8ddcf95c3a", "status": "SCHEDULED"} "422": - application/json: {"detail": [{"loc": [""], "msg": "", "type": ""}, {"loc": ["", ""], "msg": "", "type": ""}, {"loc": ["", 661733, ""], "msg": "", "type": ""}]} + application/json: {"detail": [{"loc": [855847], "msg": "", "type": ""}, {"loc": ["", "", ""], "msg": "", "type": ""}, {"loc": ["", 411199], "msg": "", "type": ""}]} check_connection_api_v1_sources__source_id__connection_check_post: speakeasy-default-check-connection-api-v1-sources-source-id-connection-check-post: parameters: @@ -634,7 +618,7 @@ examples: "202": application/json: {"created_at": "2023-08-17T02:17:54.227Z", "id": "12f4c45a-e6b2-4d0f-849d-2ab042bf13d2", "status": "SUCCESS"} "422": - application/json: {"detail": [{"loc": [], "msg": "", "type": ""}, {"loc": [], "msg": "", "type": ""}]} + application/json: {"detail": ""} get_connection_check_api_v1_sources__source_id__connection_check_get: speakeasy-default-get-connection-check-api-v1-sources-source-id-connection-check-get: parameters: @@ -645,6 +629,6 @@ examples: "200": application/json: {"created_at": "2025-01-25T05:08:46.547Z", "id": "7cc92d68-dc16-49f9-a119-c651a18a978d", "status": "SCHEDULED"} "422": - application/json: {"detail": [{"loc": [146117], "msg": "", "type": ""}, {"loc": [417709], "msg": "", "type": ""}]} + application/json: {"detail": ""} examplesVersion: 1.0.1 generatedTests: {} diff --git a/README.md b/README.md index b01df1f7..c2b0b7f3 100755 --- a/README.md +++ b/README.md @@ -110,26 +110,38 @@ 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 shared from unstructured_client.utils import BackoffStrategy, RetryConfig with UnstructuredClient() as uc_client: - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = uc_client.destinations.create_destination(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) ``` 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 shared from unstructured_client.utils import BackoffStrategy, RetryConfig @@ -137,14 +149,24 @@ with UnstructuredClient( retry_config=RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False), ) as uc_client: - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = uc_client.destinations.create_destination(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) ``` @@ -164,7 +186,7 @@ By default, an API error will raise a errors.SDKError exception, which has the f | `.raw_response` | *httpx.Response* | The raw HTTP response | | `.body` | *str* | The response content | -When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async` method may raise the following exceptions: +When custom error responses are specified for an operation, the SDK may also raise their associated exceptions. You can refer to respective *Errors* tables in SDK docs for more details on possible exception types for each operation. For example, the `create_destination_async` method may raise the following exceptions: | Error Type | Status Code | Content Type | | -------------------------- | ----------- | ---------------- | @@ -175,21 +197,31 @@ When custom error responses are specified for an operation, the SDK may also rai ```python from unstructured_client import UnstructuredClient -from unstructured_client.models import errors +from unstructured_client.models import errors, shared with UnstructuredClient() as uc_client: res = None try: - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = uc_client.destinations.create_destination(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) except errors.HTTPValidationError as e: # handle e.data: errors.HTTPValidationErrorData @@ -300,18 +332,29 @@ 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 shared with UnstructuredClient() as uc_client: - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = uc_client.destinations.create_destination(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) ```
@@ -321,19 +364,30 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient +from unstructured_client.models import shared async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = await uc_client.destinations.create_destination_async(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) asyncio.run(main()) ``` diff --git a/RELEASES.md b/RELEASES.md index 8c3d0843..56081551 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -953,6 +953,6 @@ Based on: - OpenAPI Doc - Speakeasy CLI 1.533.0 (2.578.0) https://github.com/speakeasy-api/speakeasy ### Generated -- [python v0.33.0] . +- [python v0.32.4] . ### Releases -- [PyPI v0.33.0] https://pypi.org/project/unstructured-client/0.33.0 - . \ No newline at end of file +- [PyPI v0.32.4] https://pypi.org/project/unstructured-client/0.32.4 - . diff --git a/USAGE.md b/USAGE.md index 984a513c..27e85212 100644 --- a/USAGE.md +++ b/USAGE.md @@ -2,18 +2,29 @@ ```python # Synchronous Example from unstructured_client import UnstructuredClient +from unstructured_client.models import shared with UnstructuredClient() as uc_client: - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = uc_client.destinations.create_destination(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) ```
@@ -23,19 +34,30 @@ The same SDK client can also be used to make asychronous requests by importing a # Asynchronous Example import asyncio from unstructured_client import UnstructuredClient +from unstructured_client.models import shared async def main(): async with UnstructuredClient() as uc_client: - res = await uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", + res = await uc_client.destinations.create_destination_async(request={ + "create_destination_connector": { + "config": { + "api_endpoint": "", + "batch_size": 20, + "collection_name": "", + "flatten_metadata": False, + "token": "", + }, + "name": "", + "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + }, }) - assert res.dag_node_connection_check is not None + assert res.destination_connector_information is not None # Handle response - print(res.dag_node_connection_check) + print(res.destination_connector_information) asyncio.run(main()) ``` diff --git a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md deleted file mode 100644 index a0e6af23..00000000 --- a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `source_id` | *str* | :heavy_check_mark: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md b/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md deleted file mode 100644 index 7c8db3ae..00000000 --- a/docs/models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md deleted file mode 100644 index 7115b82d..00000000 --- a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `destination_id` | *str* | :heavy_check_mark: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md b/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md deleted file mode 100644 index 94f1c669..00000000 --- a/docs/models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md deleted file mode 100644 index 6479759d..00000000 --- a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `source_id` | *str* | :heavy_check_mark: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md b/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md deleted file mode 100644 index 0baf5669..00000000 --- a/docs/models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md deleted file mode 100644 index f7c37eeb..00000000 --- a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.md +++ /dev/null @@ -1,9 +0,0 @@ -# GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest - - -## Fields - -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `destination_id` | *str* | :heavy_check_mark: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md b/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md deleted file mode 100644 index a4a9413f..00000000 --- a/docs/models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md +++ /dev/null @@ -1,11 +0,0 @@ -# GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | -| `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | -| `status_code` | *int* | :heavy_check_mark: | HTTP response status code for this operation | -| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | \ No newline at end of file diff --git a/docs/models/shared/connectioncheckstatus.md b/docs/models/shared/connectioncheckstatus.md deleted file mode 100644 index 08715d17..00000000 --- a/docs/models/shared/connectioncheckstatus.md +++ /dev/null @@ -1,10 +0,0 @@ -# ConnectionCheckStatus - - -## Values - -| Name | Value | -| ----------- | ----------- | -| `SCHEDULED` | SCHEDULED | -| `SUCCESS` | SUCCESS | -| `FAILURE` | FAILURE | \ No newline at end of file diff --git a/docs/models/shared/dagnodeconnectioncheck.md b/docs/models/shared/dagnodeconnectioncheck.md deleted file mode 100644 index 23a8fe06..00000000 --- a/docs/models/shared/dagnodeconnectioncheck.md +++ /dev/null @@ -1,12 +0,0 @@ -# DagNodeConnectionCheck - - -## Fields - -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | -| `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | -| `id` | *str* | :heavy_check_mark: | N/A | -| `reason` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `reported_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | -| `status` | [shared.ConnectionCheckStatus](../../models/shared/connectioncheckstatus.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 5c9bcf7d..8a847af8 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -5,66 +5,12 @@ ### Available Operations -* [check_destination_connection_api_v1_destinations_destination_id_connection_check_post](#check_destination_connection_api_v1_destinations_destination_id_connection_check_post) - Check Destination Connection * [create_destination](#create_destination) - Create destination connector * [delete_destination](#delete_destination) - Delete destination connector * [get_destination](#get_destination) - Get destination connector -* [get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get](#get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get) - Get Destination Connection Check * [list_destinations](#list_destinations) - List destination connectors * [update_destination](#update_destination) - Update destination connector -## check_destination_connection_api_v1_destinations_destination_id_connection_check_post - -Check Destination Connection - -Initiates a connection check for the specified destination connector. - -**Parameters:** -- **destination_id**: The UUID of the destination connector. -- **db_session**: Database session dependency. -- **user_data**: Information about the authenticated user. - -**Returns:** -- The result of the connection check. - -### Example Usage - -```python -from unstructured_client import UnstructuredClient - - -with UnstructuredClient() as uc_client: - - res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={ - "destination_id": "b65169f5-79ba-4464-918f-b0be2c07b962", - }) - - assert res.dag_node_connection_check is not None - - # Handle response - print(res.dag_node_connection_check) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `request` | [operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest](../../models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostrequest.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. | -| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | - -### Response - -**[operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse](../../models/operations/checkdestinationconnectionapiv1destinationsdestinationidconnectioncheckpostresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## create_destination Create a new destination connector using the provided configuration and name. @@ -202,58 +148,6 @@ with UnstructuredClient() as uc_client: | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get - -Get Destination Connection Check - -Retrieves the most recent connection check for the specified destination connector. - -**Parameters:** -- **destination_id**: The UUID of the destination connector. -- **db_session**: Database session dependency. -- **user_data**: Information about the authenticated user. - -**Returns:** -- Connection check results. - -### Example Usage - -```python -from unstructured_client import UnstructuredClient - - -with UnstructuredClient() as uc_client: - - res = uc_client.destinations.get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get(request={ - "destination_id": "3c48df35-2b2c-46f2-9aa2-d7eae993797c", - }) - - assert res.dag_node_connection_check is not None - - # Handle response - print(res.dag_node_connection_check) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest](../../models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetrequest.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. | -| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | - -### Response - -**[operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse](../../models/operations/getdestinationconnectioncheckapiv1destinationsdestinationidconnectioncheckgetresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## list_destinations Retrieve a list of available destination connectors. diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index c3dec73f..54452ead 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -5,66 +5,12 @@ ### Available Operations -* [check_connection_api_v1_sources_source_id_connection_check_post](#check_connection_api_v1_sources_source_id_connection_check_post) - Check Connection * [create_source](#create_source) - Create source connector * [delete_source](#delete_source) - Delete source connector -* [get_connection_check_api_v1_sources_source_id_connection_check_get](#get_connection_check_api_v1_sources_source_id_connection_check_get) - Get Connection Check * [get_source](#get_source) - Get source connector * [list_sources](#list_sources) - List available source connectors * [update_source](#update_source) - Update source connector -## check_connection_api_v1_sources_source_id_connection_check_post - -Check Connection - -Initiates a connection check for the specified source connector. - -**Parameters:** -- **source_id**: The UUID of the source connector. -- **db_session**: Database session dependency. -- **user_data**: Information about the authenticated user. - -**Returns:** -- The result of the connection check. - -### Example Usage - -```python -from unstructured_client import UnstructuredClient - - -with UnstructuredClient() as uc_client: - - res = uc_client.sources.check_connection_api_v1_sources_source_id_connection_check_post(request={ - "source_id": "8cb54f13-5652-423e-889c-1df1f8147126", - }) - - assert res.dag_node_connection_check is not None - - # Handle response - print(res.dag_node_connection_check) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -| `request` | [operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest](../../models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostrequest.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. | -| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | - -### Response - -**[operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse](../../models/operations/checkconnectionapiv1sourcessourceidconnectioncheckpostresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## create_source Create a new source connector using the provided configuration and name. @@ -162,58 +108,6 @@ with UnstructuredClient() as uc_client: | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## get_connection_check_api_v1_sources_source_id_connection_check_get - -Get Connection Checks - -Retrieves the most recent connection check for the specified source connector. - -**Parameters:** -- **source_id**: The UUID of the source connector. -- **db_session**: Database session dependency. -- **user_data**: Information about the authenticated user. - -**Returns:** -- Connection check results. - -### Example Usage - -```python -from unstructured_client import UnstructuredClient - - -with UnstructuredClient() as uc_client: - - res = uc_client.sources.get_connection_check_api_v1_sources_source_id_connection_check_get(request={ - "source_id": "d9c3daec-ddf9-4cef-ae8d-3a989813cc7b", - }) - - assert res.dag_node_connection_check is not None - - # Handle response - print(res.dag_node_connection_check) - -``` - -### Parameters - -| Parameter | Type | Required | Description | -| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | -| `request` | [operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest](../../models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetrequest.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. | -| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | - -### Response - -**[operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse](../../models/operations/getconnectioncheckapiv1sourcessourceidconnectioncheckgetresponse.md)** - -### Errors - -| Error Type | Status Code | Content Type | -| -------------------------- | -------------------------- | -------------------------- | -| errors.HTTPValidationError | 422 | application/json | -| errors.SDKError | 4XX, 5XX | \*/\* | - ## get_source Retrieve detailed information for a specific source connector by its ID. diff --git a/gen.yaml b/gen.yaml index bd93d4c5..f4ce8dcf 100644 --- a/gen.yaml +++ b/gen.yaml @@ -12,7 +12,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.33.0 + version: 0.32.4 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pyproject.toml b/pyproject.toml index 23a1a66a..33347cda 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.33.0" +version = "0.32.4" 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 e546e0cc..d73a07b8 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.33.0" +__version__: str = "0.32.4" __openapi_doc_version__: str = "1.1.7" -__gen_version__: str = "2.578.0" -__user_agent__: str = "speakeasy-sdk/python 0.33.0 2.578.0 1.1.7 unstructured-client" +__gen_version__: str = "2.585.0" +__user_agent__: str = "speakeasy-sdk/python 0.32.4 2.585.0 1.1.7 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/destinations.py b/src/unstructured_client/destinations.py index 0d4e7bef..6eba26da 100644 --- a/src/unstructured_client/destinations.py +++ b/src/unstructured_client/destinations.py @@ -9,264 +9,6 @@ class Destinations(BaseSDK): - def check_destination_connection_api_v1_destinations_destination_id_connection_check_post( - self, - *, - request: Union[ - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse: - r"""Check Destination Connection - - Check Destination Connection - - Initiates a connection check for the specified destination connector. - - **Parameters:** - - **destination_id**: The UUID of the destination connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - The result of the connection check. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS[ - operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - ) - request = cast( - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - request, - ) - - req = self._build_request( - method="POST", - path="/api/v1/destinations/{destination_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = self.do_request( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="check_destination_connection_api_v1_destinations__destination_id__connection_check_post", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "202", "application/json"): - return operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - - async def check_destination_connection_api_v1_destinations_destination_id_connection_check_post_async( - self, - *, - request: Union[ - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse: - r"""Check Destination Connection - - Check Destination Connection - - Initiates a connection check for the specified destination connector. - - **Parameters:** - - **destination_id**: The UUID of the destination connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - The result of the connection check. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS[ - operations.CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - ) - request = cast( - operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - request, - ) - - req = self._build_request_async( - method="POST", - path="/api/v1/destinations/{destination_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="check_destination_connection_api_v1_destinations__destination_id__connection_check_post", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "202", "application/json"): - return operations.CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - def create_destination( self, *, @@ -953,264 +695,6 @@ async def get_destination_async( http_res, ) - def get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get( - self, - *, - request: Union[ - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse: - r"""Get Destination Connection Check - - Get Destination Connection Check - - Retrieves the most recent connection check for the specified destination connector. - - **Parameters:** - - **destination_id**: The UUID of the destination connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - Connection check results. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS[ - operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - ) - request = cast( - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - request, - ) - - req = self._build_request( - method="GET", - path="/api/v1/destinations/{destination_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = self.do_request( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - - async def get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get_async( - self, - *, - request: Union[ - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse: - r"""Get Destination Connection Check - - Get Destination Connection Check - - Retrieves the most recent connection check for the specified destination connector. - - **Parameters:** - - **destination_id**: The UUID of the destination connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - Connection check results. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS[ - operations.GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - ) - request = cast( - operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - request, - ) - - req = self._build_request_async( - method="GET", - path="/api/v1/destinations/{destination_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="get_destination_connection_check_api_v1_destinations__destination_id__connection_check_get", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return operations.GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - def list_destinations( self, *, diff --git a/src/unstructured_client/models/operations/__init__.py b/src/unstructured_client/models/operations/__init__.py index 7391c8d1..7a02a0ac 100644 --- a/src/unstructured_client/models/operations/__init__.py +++ b/src/unstructured_client/models/operations/__init__.py @@ -8,22 +8,6 @@ CancelJobResponse, CancelJobResponseTypedDict, ) -from .check_connection_api_v1_sources_source_id_connection_check_post import ( - CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS, - CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API, - CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, - CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse, - CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict, -) -from .check_destination_connection_api_v1_destinations_destination_id_connection_check_post import ( - CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS, - CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API, - CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest, - CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict, - CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse, - CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict, -) from .create_destination import ( CREATE_DESTINATION_SERVERS, CREATE_DESTINATION_SERVER_PLATFORM_API, @@ -80,14 +64,6 @@ DownloadJobOutputResponse, DownloadJobOutputResponseTypedDict, ) -from .get_connection_check_api_v1_sources_source_id_connection_check_get import ( - GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS, - GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API, - GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, - GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse, - GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict, -) from .get_destination import ( GET_DESTINATION_SERVERS, GET_DESTINATION_SERVER_PLATFORM_API, @@ -96,14 +72,6 @@ GetDestinationResponse, GetDestinationResponseTypedDict, ) -from .get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get import ( - GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS, - GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API, - GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest, - GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict, - GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse, - GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict, -) from .get_job import ( GET_JOB_SERVERS, GET_JOB_SERVER_PLATFORM_API, @@ -206,10 +174,6 @@ __all__ = [ "CANCEL_JOB_SERVERS", "CANCEL_JOB_SERVER_PLATFORM_API", - "CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS", - "CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API", - "CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS", - "CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API", "CREATE_DESTINATION_SERVERS", "CREATE_DESTINATION_SERVER_PLATFORM_API", "CREATE_SOURCE_SERVERS", @@ -220,14 +184,6 @@ "CancelJobRequestTypedDict", "CancelJobResponse", "CancelJobResponseTypedDict", - "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest", - "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict", - "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse", - "CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict", - "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest", - "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict", - "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse", - "CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict", "CreateDestinationRequest", "CreateDestinationRequestTypedDict", "CreateDestinationResponse", @@ -264,10 +220,6 @@ "DownloadJobOutputRequestTypedDict", "DownloadJobOutputResponse", "DownloadJobOutputResponseTypedDict", - "GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS", - "GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API", - "GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS", - "GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API", "GET_DESTINATION_SERVERS", "GET_DESTINATION_SERVER_PLATFORM_API", "GET_JOB_SERVERS", @@ -276,14 +228,6 @@ "GET_SOURCE_SERVER_PLATFORM_API", "GET_WORKFLOW_SERVERS", "GET_WORKFLOW_SERVER_PLATFORM_API", - "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest", - "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict", - "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse", - "GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict", - "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest", - "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict", - "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse", - "GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict", "GetDestinationRequest", "GetDestinationRequestTypedDict", "GetDestinationResponse", diff --git a/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py b/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py deleted file mode 100644 index 6902c8db..00000000 --- a/src/unstructured_client/models/operations/check_connection_api_v1_sources_source_id_connection_check_post.py +++ /dev/null @@ -1,106 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -import httpx -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.models.shared import ( - dagnodeconnectioncheck as shared_dagnodeconnectioncheck, -) -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata - -CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API = ( - "platform-api" -) -r"""Unstructured Platform API""" - -CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS = { - CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", -} - - -class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict(TypedDict): - source_id: str - unstructured_api_key: NotRequired[Nullable[str]] - - -class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest(BaseModel): - source_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - unstructured_api_key: Annotated[ - OptionalNullable[str], - pydantic.Field(alias="unstructured-api-key"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["unstructured-api-key"] - nullable_fields = ["unstructured-api-key"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m - - -class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponseTypedDict( - TypedDict -): - content_type: str - r"""HTTP response content type for this operation""" - status_code: int - r"""HTTP response status code for this operation""" - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - dag_node_connection_check: NotRequired[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict - ] - r"""Successful Response""" - - -class CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse(BaseModel): - content_type: str - r"""HTTP response content type for this operation""" - - status_code: int - r"""HTTP response status code for this operation""" - - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - - dag_node_connection_check: Optional[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheck - ] = None - r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py b/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py deleted file mode 100644 index b1c76d82..00000000 --- a/src/unstructured_client/models/operations/check_destination_connection_api_v1_destinations_destination_id_connection_check_post.py +++ /dev/null @@ -1,110 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -import httpx -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.models.shared import ( - dagnodeconnectioncheck as shared_dagnodeconnectioncheck, -) -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata - -CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API = "platform-api" -r"""Unstructured Platform API""" - -CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVERS = { - CHECK_DESTINATION_CONNECTION_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", -} - - -class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequestTypedDict( - TypedDict -): - destination_id: str - unstructured_api_key: NotRequired[Nullable[str]] - - -class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostRequest( - BaseModel -): - destination_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - unstructured_api_key: Annotated[ - OptionalNullable[str], - pydantic.Field(alias="unstructured-api-key"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["unstructured-api-key"] - nullable_fields = ["unstructured-api-key"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m - - -class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponseTypedDict( - TypedDict -): - content_type: str - r"""HTTP response content type for this operation""" - status_code: int - r"""HTTP response status code for this operation""" - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - dag_node_connection_check: NotRequired[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict - ] - r"""Successful Response""" - - -class CheckDestinationConnectionAPIV1DestinationsDestinationIDConnectionCheckPostResponse( - BaseModel -): - content_type: str - r"""HTTP response content type for this operation""" - - status_code: int - r"""HTTP response status code for this operation""" - - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - - dag_node_connection_check: Optional[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheck - ] = None - r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py b/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py deleted file mode 100644 index 46f44e76..00000000 --- a/src/unstructured_client/models/operations/get_connection_check_api_v1_sources_source_id_connection_check_get.py +++ /dev/null @@ -1,106 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -import httpx -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.models.shared import ( - dagnodeconnectioncheck as shared_dagnodeconnectioncheck, -) -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata - -GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API = "platform-api" -r"""Unstructured Platform API""" - -GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS = { - GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", -} - - -class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict( - TypedDict -): - source_id: str - unstructured_api_key: NotRequired[Nullable[str]] - - -class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest(BaseModel): - source_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - unstructured_api_key: Annotated[ - OptionalNullable[str], - pydantic.Field(alias="unstructured-api-key"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["unstructured-api-key"] - nullable_fields = ["unstructured-api-key"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m - - -class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponseTypedDict( - TypedDict -): - content_type: str - r"""HTTP response content type for this operation""" - status_code: int - r"""HTTP response status code for this operation""" - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - dag_node_connection_check: NotRequired[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict - ] - r"""Successful Response""" - - -class GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse(BaseModel): - content_type: str - r"""HTTP response content type for this operation""" - - status_code: int - r"""HTTP response status code for this operation""" - - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - - dag_node_connection_check: Optional[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheck - ] = None - r"""Successful Response""" diff --git a/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py b/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py deleted file mode 100644 index be37612c..00000000 --- a/src/unstructured_client/models/operations/get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get.py +++ /dev/null @@ -1,110 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -import httpx -import pydantic -from pydantic import model_serializer -from typing import Optional -from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.models.shared import ( - dagnodeconnectioncheck as shared_dagnodeconnectioncheck, -) -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) -from unstructured_client.utils import FieldMetadata, HeaderMetadata, PathParamMetadata - -GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API = "platform-api" -r"""Unstructured Platform API""" - -GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVERS = { - GET_DESTINATION_CONNECTION_CHECK_API_V1_DESTINATIONS_DESTINATION_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", -} - - -class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequestTypedDict( - TypedDict -): - destination_id: str - unstructured_api_key: NotRequired[Nullable[str]] - - -class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetRequest( - BaseModel -): - destination_id: Annotated[ - str, FieldMetadata(path=PathParamMetadata(style="simple", explode=False)) - ] - - unstructured_api_key: Annotated[ - OptionalNullable[str], - pydantic.Field(alias="unstructured-api-key"), - FieldMetadata(header=HeaderMetadata(style="simple", explode=False)), - ] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["unstructured-api-key"] - nullable_fields = ["unstructured-api-key"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m - - -class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponseTypedDict( - TypedDict -): - content_type: str - r"""HTTP response content type for this operation""" - status_code: int - r"""HTTP response status code for this operation""" - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - dag_node_connection_check: NotRequired[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheckTypedDict - ] - r"""Successful Response""" - - -class GetDestinationConnectionCheckAPIV1DestinationsDestinationIDConnectionCheckGetResponse( - BaseModel -): - content_type: str - r"""HTTP response content type for this operation""" - - status_code: int - r"""HTTP response status code for this operation""" - - raw_response: httpx.Response - r"""Raw HTTP response; suitable for custom response parsing""" - - dag_node_connection_check: Optional[ - shared_dagnodeconnectioncheck.DagNodeConnectionCheck - ] = None - r"""Successful Response""" diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index 26e65b5c..25e37417 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -46,7 +46,6 @@ ConfluenceSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInputTypedDict, ) -from .connectioncheckstatus import ConnectionCheckStatus from .couchbasedestinationconnectorconfig import ( CouchbaseDestinationConnectorConfig, CouchbaseDestinationConnectorConfigTypedDict, @@ -77,10 +76,6 @@ ) from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule from .crontabentry import CronTabEntry, CronTabEntryTypedDict -from .dagnodeconnectioncheck import ( - DagNodeConnectionCheck, - DagNodeConnectionCheckTypedDict, -) from .databricksvdtdestinationconnectorconfig import ( DatabricksVDTDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfigTypedDict, @@ -404,7 +399,6 @@ "ConfluenceSourceConnectorConfigInput", "ConfluenceSourceConnectorConfigInputTypedDict", "ConfluenceSourceConnectorConfigTypedDict", - "ConnectionCheckStatus", "CouchbaseDestinationConnectorConfig", "CouchbaseDestinationConnectorConfigInput", "CouchbaseDestinationConnectorConfigInputTypedDict", @@ -423,8 +417,6 @@ "CreateWorkflowTypedDict", "CronTabEntry", "CronTabEntryTypedDict", - "DagNodeConnectionCheck", - "DagNodeConnectionCheckTypedDict", "DatabricksVDTDestinationConnectorConfig", "DatabricksVDTDestinationConnectorConfigInput", "DatabricksVDTDestinationConnectorConfigInputTypedDict", diff --git a/src/unstructured_client/models/shared/connectioncheckstatus.py b/src/unstructured_client/models/shared/connectioncheckstatus.py deleted file mode 100644 index a2f6477f..00000000 --- a/src/unstructured_client/models/shared/connectioncheckstatus.py +++ /dev/null @@ -1,10 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from enum import Enum - - -class ConnectionCheckStatus(str, Enum): - SCHEDULED = "SCHEDULED" - SUCCESS = "SUCCESS" - FAILURE = "FAILURE" diff --git a/src/unstructured_client/models/shared/dagnodeconnectioncheck.py b/src/unstructured_client/models/shared/dagnodeconnectioncheck.py deleted file mode 100644 index fade6b96..00000000 --- a/src/unstructured_client/models/shared/dagnodeconnectioncheck.py +++ /dev/null @@ -1,64 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from .connectioncheckstatus import ConnectionCheckStatus -from datetime import datetime -from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) - - -class DagNodeConnectionCheckTypedDict(TypedDict): - created_at: datetime - id: str - status: ConnectionCheckStatus - reason: NotRequired[Nullable[str]] - reported_at: NotRequired[Nullable[datetime]] - - -class DagNodeConnectionCheck(BaseModel): - created_at: datetime - - id: str - - status: ConnectionCheckStatus - - reason: OptionalNullable[str] = UNSET - - reported_at: OptionalNullable[datetime] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["reason", "reported_at"] - nullable_fields = ["reason", "reported_at"] - null_default_fields = [] - - serialized = handler(self) - - m = {} - - for n, f in type(self).model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m diff --git a/src/unstructured_client/sources.py b/src/unstructured_client/sources.py index 4761ad85..20d0d09d 100644 --- a/src/unstructured_client/sources.py +++ b/src/unstructured_client/sources.py @@ -9,264 +9,6 @@ class Sources(BaseSDK): - def check_connection_api_v1_sources_source_id_connection_check_post( - self, - *, - request: Union[ - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse: - r"""Check Connection - - Check Connection - - Initiates a connection check for the specified source connector. - - **Parameters:** - - **source_id**: The UUID of the source connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - The result of the connection check. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS[ - operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - ) - request = cast( - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - request, - ) - - req = self._build_request( - method="POST", - path="/api/v1/sources/{source_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = self.do_request( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="check_connection_api_v1_sources__source_id__connection_check_post", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "202", "application/json"): - return operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - - async def check_connection_api_v1_sources_source_id_connection_check_post_async( - self, - *, - request: Union[ - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse: - r"""Check Connection - - Check Connection - - Initiates a connection check for the specified source connector. - - **Parameters:** - - **source_id**: The UUID of the source connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - The result of the connection check. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVERS[ - operations.CHECK_CONNECTION_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_POST_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - ) - request = cast( - operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostRequest, - request, - ) - - req = self._build_request_async( - method="POST", - path="/api/v1/sources/{source_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="check_connection_api_v1_sources__source_id__connection_check_post", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "202", "application/json"): - return operations.CheckConnectionAPIV1SourcesSourceIDConnectionCheckPostResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - def create_source( self, *, @@ -725,264 +467,6 @@ async def delete_source_async( http_res, ) - def get_connection_check_api_v1_sources_source_id_connection_check_get( - self, - *, - request: Union[ - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse: - r"""Get Connection Check - - Get Connection Checks - - Retrieves the most recent connection check for the specified source connector. - - **Parameters:** - - **source_id**: The UUID of the source connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - Connection check results. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS[ - operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - ) - request = cast( - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - request, - ) - - req = self._build_request( - method="GET", - path="/api/v1/sources/{source_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = self.do_request( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="get_connection_check_api_v1_sources__source_id__connection_check_get", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = utils.stream_to_text(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - - async def get_connection_check_api_v1_sources_source_id_connection_check_get_async( - self, - *, - request: Union[ - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequestTypedDict, - ], - retries: OptionalNullable[utils.RetryConfig] = UNSET, - server_url: Optional[str] = None, - timeout_ms: Optional[int] = None, - http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse: - r"""Get Connection Check - - Get Connection Checks - - Retrieves the most recent connection check for the specified source connector. - - **Parameters:** - - **source_id**: The UUID of the source connector. - - **db_session**: Database session dependency. - - **user_data**: Information about the authenticated user. - - **Returns:** - - Connection check results. - - :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 - :param timeout_ms: Override the default request timeout configuration for this method in milliseconds - :param http_headers: Additional headers to set or replace on requests. - """ - base_url = None - url_variables = None - if timeout_ms is None: - timeout_ms = self.sdk_configuration.timeout_ms - - if server_url is not None: - base_url = server_url - else: - base_url = operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVERS[ - operations.GET_CONNECTION_CHECK_API_V1_SOURCES_SOURCE_ID_CONNECTION_CHECK_GET_SERVER_PLATFORM_API - ] - - if not isinstance(request, BaseModel): - request = utils.unmarshal( - request, - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - ) - request = cast( - operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetRequest, - request, - ) - - req = self._build_request_async( - method="GET", - path="/api/v1/sources/{source_id}/connection-check", - base_url=base_url, - url_variables=url_variables, - request=request, - request_body_required=False, - request_has_path_params=True, - request_has_query_params=True, - user_agent_header="user-agent", - accept_header_value="application/json", - http_headers=http_headers, - security=self.sdk_configuration.security, - timeout_ms=timeout_ms, - ) - - if retries == UNSET: - if self.sdk_configuration.retry_config is not UNSET: - retries = self.sdk_configuration.retry_config - else: - retries = utils.RetryConfig( - "backoff", utils.BackoffStrategy(3000, 720000, 1.88, 1800000), True - ) - - retry_config = None - if isinstance(retries, utils.RetryConfig): - retry_config = (retries, ["5xx"]) - - http_res = await self.do_request_async( - hook_ctx=HookContext( - base_url=base_url or "", - operation_id="get_connection_check_api_v1_sources__source_id__connection_check_get", - oauth2_scopes=[], - security_source=self.sdk_configuration.security, - ), - request=req, - error_status_codes=["422", "4XX", "5XX"], - retry_config=retry_config, - ) - - response_data: Any = None - if utils.match_response(http_res, "200", "application/json"): - return operations.GetConnectionCheckAPIV1SourcesSourceIDConnectionCheckGetResponse( - dag_node_connection_check=utils.unmarshal_json( - http_res.text, Optional[shared.DagNodeConnectionCheck] - ), - status_code=http_res.status_code, - content_type=http_res.headers.get("Content-Type") or "", - raw_response=http_res, - ) - if utils.match_response(http_res, "422", "application/json"): - response_data = utils.unmarshal_json( - http_res.text, errors.HTTPValidationErrorData - ) - raise errors.HTTPValidationError(data=response_data) - if utils.match_response(http_res, "4XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - if utils.match_response(http_res, "5XX", "*"): - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - "API error occurred", http_res.status_code, http_res_text, http_res - ) - - content_type = http_res.headers.get("Content-Type") - http_res_text = await utils.stream_to_text_async(http_res) - raise errors.SDKError( - f"Unexpected response received (code: {http_res.status_code}, type: {content_type})", - http_res.status_code, - http_res_text, - http_res, - ) - def get_source( self, *, From 1081911f93f2a087504da155205922cee14c7385 Mon Sep 17 00:00:00 2001 From: Austin Walker Date: Thu, 17 Apr 2025 13:27:04 -0400 Subject: [PATCH 3/3] Revert AzureDestination and WorkflowNode changes --- README.md | 10 +-- USAGE.md | 4 +- codeSamples.yaml | 26 +------ .../shared/azuredestinationconnectorconfig.md | 12 ++++ .../azuredestinationconnectorconfiginput.md | 12 ++++ docs/models/shared/config.md | 6 ++ .../destinationconnectorinformationconfig.md | 6 ++ .../models/shared/destinationconnectortype.md | 1 + .../updatedestinationconnectorconfig.md | 6 ++ docs/models/shared/workflownode.md | 14 ++-- docs/models/shared/workflownodetype.md | 11 +++ docs/sdks/destinations/README.md | 2 +- .../models/shared/__init__.py | 14 ++++ .../shared/azuredestinationconnectorconfig.py | 72 +++++++++++++++++++ .../azuredestinationconnectorconfiginput.py | 72 +++++++++++++++++++ .../shared/createdestinationconnector.py | 18 +++-- .../shared/destinationconnectorinformation.py | 18 +++-- .../models/shared/destinationconnectortype.py | 1 + .../shared/updatedestinationconnector.py | 18 +++-- .../models/shared/workflownode.py | 5 +- .../models/shared/workflownodetype.py | 11 +++ 21 files changed, 279 insertions(+), 60 deletions(-) create mode 100644 docs/models/shared/azuredestinationconnectorconfig.md create mode 100644 docs/models/shared/azuredestinationconnectorconfiginput.md create mode 100644 docs/models/shared/workflownodetype.md create mode 100644 src/unstructured_client/models/shared/azuredestinationconnectorconfig.py create mode 100644 src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py create mode 100644 src/unstructured_client/models/shared/workflownodetype.py diff --git a/README.md b/README.md index c2b0b7f3..bf0b554c 100755 --- a/README.md +++ b/README.md @@ -126,7 +126,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }, RetryConfig("backoff", BackoffStrategy(1, 50, 1.1, 100), False)) @@ -159,7 +159,7 @@ with UnstructuredClient( "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) @@ -214,7 +214,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) @@ -347,7 +347,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) @@ -380,7 +380,7 @@ async def main(): "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) diff --git a/USAGE.md b/USAGE.md index 27e85212..e08d5e01 100644 --- a/USAGE.md +++ b/USAGE.md @@ -17,7 +17,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) @@ -50,7 +50,7 @@ async def main(): "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) diff --git a/codeSamples.yaml b/codeSamples.yaml index 59130d07..cb83c5a6 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -14,7 +14,7 @@ actions: "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.AZURE_AI_SEARCH,\n \"config\": {\n \"collection_name\": \"\",\n \"batch_size\": 20,\n \"api_endpoint\": \"\",\n \"token\": \"\",\n \"flatten_metadata\": False,\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 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.ASTRADB,\n \"config\": {\n \"remote_url\": \"https://fortunate-appliance.info\",\n \"anonymous\": False,\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": @@ -33,18 +33,6 @@ actions: - "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\": \"9ea9d27c-4e2e-4cb5-9a69-71bd7ec9d226\",\n \"update_destination_connector\": {\n \"config\": {\n \"host\": \"acidic-patroller.com\",\n \"database\": \"\",\n \"port\": 832931,\n \"username\": \"Salvador.Walsh-Thiel\",\n \"password\": \"vIMqbllzrdJBExE\",\n \"table_name\": \"\",\n \"batch_size\": 977983,\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_destination_connection_check_api_v1_destinations__destination_id__connection_check_get" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.get_destination_connection_check_api_v1_destinations_destination_id_connection_check_get(request={\n \"destination_id\": \"3c48df35-2b2c-46f2-9aa2-d7eae993797c\",\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": "check_destination_connection_api_v1_destinations__destination_id__connection_check_post" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.check_destination_connection_api_v1_destinations_destination_id_connection_check_post(request={\n \"destination_id\": \"b65169f5-79ba-4464-918f-b0be2c07b962\",\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": @@ -99,18 +87,6 @@ actions: - "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\": \"396edec4-39e8-4ef6-ac69-c9e3ba7a8418\",\n \"update_source_connector\": {\n \"config\": {\n \"host\": \"black-and-white-obesity.info\",\n \"database\": \"\",\n \"port\": 848106,\n \"username\": \"Bruce.Stracke19\",\n \"password\": \"L8K8WEZq1xvBpSw\",\n \"table_name\": \"\",\n \"batch_size\": 177849,\n \"id_column\": \"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_api_v1_sources__source_id__connection_check_get" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.get_connection_check_api_v1_sources_source_id_connection_check_get(request={\n \"source_id\": \"d9c3daec-ddf9-4cef-ae8d-3a989813cc7b\",\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": "check_connection_api_v1_sources__source_id__connection_check_post" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.check_connection_api_v1_sources_source_id_connection_check_post(request={\n \"source_id\": \"8cb54f13-5652-423e-889c-1df1f8147126\",\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": diff --git a/docs/models/shared/azuredestinationconnectorconfig.md b/docs/models/shared/azuredestinationconnectorconfig.md new file mode 100644 index 00000000..2845b6b9 --- /dev/null +++ b/docs/models/shared/azuredestinationconnectorconfig.md @@ -0,0 +1,12 @@ +# AzureDestinationConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `remote_url` | *str* | :heavy_check_mark: | N/A | +| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/azuredestinationconnectorconfiginput.md b/docs/models/shared/azuredestinationconnectorconfiginput.md new file mode 100644 index 00000000..d560f1ee --- /dev/null +++ b/docs/models/shared/azuredestinationconnectorconfiginput.md @@ -0,0 +1,12 @@ +# AzureDestinationConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `account_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `account_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `connection_string` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `remote_url` | *str* | :heavy_check_mark: | N/A | +| `sas_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/config.md b/docs/models/shared/config.md index 457e0fd7..cd0363d3 100644 --- a/docs/models/shared/config.md +++ b/docs/models/shared/config.md @@ -3,6 +3,12 @@ ## Supported Types +### `shared.AzureDestinationConnectorConfigInput` + +```python +value: shared.AzureDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.AstraDBConnectorConfigInput` ```python diff --git a/docs/models/shared/destinationconnectorinformationconfig.md b/docs/models/shared/destinationconnectorinformationconfig.md index 3a711755..f18f6d71 100644 --- a/docs/models/shared/destinationconnectorinformationconfig.md +++ b/docs/models/shared/destinationconnectorinformationconfig.md @@ -3,6 +3,12 @@ ## Supported Types +### `shared.AzureDestinationConnectorConfig` + +```python +value: shared.AzureDestinationConnectorConfig = /* values here */ +``` + ### `shared.AstraDBConnectorConfig` ```python diff --git a/docs/models/shared/destinationconnectortype.md b/docs/models/shared/destinationconnectortype.md index 57c24960..7137af3e 100644 --- a/docs/models/shared/destinationconnectortype.md +++ b/docs/models/shared/destinationconnectortype.md @@ -5,6 +5,7 @@ | Name | Value | | -------------------------------- | -------------------------------- | +| `AZURE` | azure | | `ASTRADB` | astradb | | `AZURE_AI_SEARCH` | azure_ai_search | | `COUCHBASE` | couchbase | diff --git a/docs/models/shared/updatedestinationconnectorconfig.md b/docs/models/shared/updatedestinationconnectorconfig.md index 78d91893..a7f36d4c 100644 --- a/docs/models/shared/updatedestinationconnectorconfig.md +++ b/docs/models/shared/updatedestinationconnectorconfig.md @@ -3,6 +3,12 @@ ## Supported Types +### `shared.AzureDestinationConnectorConfigInput` + +```python +value: shared.AzureDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.AstraDBConnectorConfigInput` ```python diff --git a/docs/models/shared/workflownode.md b/docs/models/shared/workflownode.md index 0fa04000..8a4809c3 100644 --- a/docs/models/shared/workflownode.md +++ b/docs/models/shared/workflownode.md @@ -3,10 +3,10 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | -| `subtype` | *str* | :heavy_check_mark: | N/A | -| `type` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | +| `subtype` | *str* | :heavy_check_mark: | N/A | +| `type` | [shared.WorkflowNodeType](../../models/shared/workflownodetype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/workflownodetype.md b/docs/models/shared/workflownodetype.md new file mode 100644 index 00000000..e1da7b02 --- /dev/null +++ b/docs/models/shared/workflownodetype.md @@ -0,0 +1,11 @@ +# WorkflowNodeType + + +## Values + +| Name | Value | +| ----------- | ----------- | +| `PARTITION` | partition | +| `PROMPTER` | prompter | +| `CHUNK` | chunk | +| `EMBED` | embed | \ No newline at end of file diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 8a847af8..4ae26ac7 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -34,7 +34,7 @@ with UnstructuredClient() as uc_client: "token": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.AZURE, }, }) diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index 25e37417..a69961fa 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -16,6 +16,14 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) +from .azuredestinationconnectorconfig import ( + AzureDestinationConnectorConfig, + AzureDestinationConnectorConfigTypedDict, +) +from .azuredestinationconnectorconfiginput import ( + AzureDestinationConnectorConfigInput, + AzureDestinationConnectorConfigInputTypedDict, +) from .azuresourceconnectorconfig import ( AzureSourceConnectorConfig, AzureSourceConnectorConfigTypedDict, @@ -361,6 +369,7 @@ ) from .workflowinformation import WorkflowInformation, WorkflowInformationTypedDict from .workflownode import WorkflowNode, WorkflowNodeTypedDict +from .workflownodetype import WorkflowNodeType from .workflowschedule import WorkflowSchedule, WorkflowScheduleTypedDict from .workflowstate import WorkflowState from .workflowtype import WorkflowType @@ -383,6 +392,10 @@ "AzureAISearchConnectorConfigInput", "AzureAISearchConnectorConfigInputTypedDict", "AzureAISearchConnectorConfigTypedDict", + "AzureDestinationConnectorConfig", + "AzureDestinationConnectorConfigInput", + "AzureDestinationConnectorConfigInputTypedDict", + "AzureDestinationConnectorConfigTypedDict", "AzureSourceConnectorConfig", "AzureSourceConnectorConfigInput", "AzureSourceConnectorConfigInputTypedDict", @@ -579,6 +592,7 @@ "WorkflowInformation", "WorkflowInformationTypedDict", "WorkflowNode", + "WorkflowNodeType", "WorkflowNodeTypedDict", "WorkflowSchedule", "WorkflowScheduleTypedDict", diff --git a/src/unstructured_client/models/shared/azuredestinationconnectorconfig.py b/src/unstructured_client/models/shared/azuredestinationconnectorconfig.py new file mode 100644 index 00000000..31075deb --- /dev/null +++ b/src/unstructured_client/models/shared/azuredestinationconnectorconfig.py @@ -0,0 +1,72 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class AzureDestinationConnectorConfigTypedDict(TypedDict): + remote_url: str + account_key: NotRequired[Nullable[str]] + account_name: NotRequired[Nullable[str]] + connection_string: NotRequired[Nullable[str]] + sas_token: NotRequired[Nullable[str]] + + +class AzureDestinationConnectorConfig(BaseModel): + remote_url: str + + account_key: OptionalNullable[str] = UNSET + + account_name: OptionalNullable[str] = UNSET + + connection_string: OptionalNullable[str] = UNSET + + sas_token: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "account_key", + "account_name", + "connection_string", + "sas_token", + ] + nullable_fields = [ + "account_key", + "account_name", + "connection_string", + "sas_token", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py new file mode 100644 index 00000000..caebb2c0 --- /dev/null +++ b/src/unstructured_client/models/shared/azuredestinationconnectorconfiginput.py @@ -0,0 +1,72 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class AzureDestinationConnectorConfigInputTypedDict(TypedDict): + remote_url: str + account_key: NotRequired[Nullable[str]] + account_name: NotRequired[Nullable[str]] + connection_string: NotRequired[Nullable[str]] + sas_token: NotRequired[Nullable[str]] + + +class AzureDestinationConnectorConfigInput(BaseModel): + remote_url: str + + account_key: OptionalNullable[str] = UNSET + + account_name: OptionalNullable[str] = UNSET + + connection_string: OptionalNullable[str] = UNSET + + sas_token: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "account_key", + "account_name", + "connection_string", + "sas_token", + ] + nullable_fields = [ + "account_key", + "account_name", + "connection_string", + "sas_token", + ] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/createdestinationconnector.py b/src/unstructured_client/models/shared/createdestinationconnector.py index a6699c29..2a3cbbe2 100644 --- a/src/unstructured_client/models/shared/createdestinationconnector.py +++ b/src/unstructured_client/models/shared/createdestinationconnector.py @@ -9,6 +9,10 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) +from .azuredestinationconnectorconfiginput import ( + AzureDestinationConnectorConfigInput, + AzureDestinationConnectorConfigInputTypedDict, +) from .couchbasedestinationconnectorconfiginput import ( CouchbaseDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInputTypedDict, @@ -92,20 +96,21 @@ Union[ GCSDestinationConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, - MongoDBConnectorConfigInputTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, PineconeDestinationConnectorConfigInputTypedDict, + AzureDestinationConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, S3DestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, - MilvusDestinationConnectorConfigInputTypedDict, - DatabricksVolumesConnectorConfigInputTypedDict, PostgresDestinationConnectorConfigInputTypedDict, + MilvusDestinationConnectorConfigInputTypedDict, KafkaCloudDestinationConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, @@ -119,20 +124,21 @@ Union[ GCSDestinationConnectorConfigInput, ElasticsearchConnectorConfigInput, + MongoDBConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, - MongoDBConnectorConfigInput, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, PineconeDestinationConnectorConfigInput, + AzureDestinationConnectorConfigInput, Neo4jDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, S3DestinationConnectorConfigInput, AstraDBConnectorConfigInput, - MilvusDestinationConnectorConfigInput, - DatabricksVolumesConnectorConfigInput, PostgresDestinationConnectorConfigInput, + MilvusDestinationConnectorConfigInput, KafkaCloudDestinationConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index e25b50af..5dbc0e58 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -9,6 +9,10 @@ AzureAISearchConnectorConfig, AzureAISearchConnectorConfigTypedDict, ) +from .azuredestinationconnectorconfig import ( + AzureDestinationConnectorConfig, + AzureDestinationConnectorConfigTypedDict, +) from .couchbasedestinationconnectorconfig import ( CouchbaseDestinationConnectorConfig, CouchbaseDestinationConnectorConfigTypedDict, @@ -100,20 +104,21 @@ Union[ GCSDestinationConnectorConfigTypedDict, ElasticsearchConnectorConfigTypedDict, + MongoDBConnectorConfigTypedDict, AzureAISearchConnectorConfigTypedDict, WeaviateDestinationConnectorConfigTypedDict, - MongoDBConnectorConfigTypedDict, DeltaTableConnectorConfigTypedDict, QdrantCloudDestinationConnectorConfigTypedDict, PineconeDestinationConnectorConfigTypedDict, + AzureDestinationConnectorConfigTypedDict, AstraDBConnectorConfigTypedDict, Neo4jDestinationConnectorConfigTypedDict, OneDriveDestinationConnectorConfigTypedDict, S3DestinationConnectorConfigTypedDict, - MilvusDestinationConnectorConfigTypedDict, - DatabricksVolumesConnectorConfigTypedDict, PostgresDestinationConnectorConfigTypedDict, + MilvusDestinationConnectorConfigTypedDict, KafkaCloudDestinationConnectorConfigTypedDict, + DatabricksVolumesConnectorConfigTypedDict, CouchbaseDestinationConnectorConfigTypedDict, RedisDestinationConnectorConfigTypedDict, DatabricksVDTDestinationConnectorConfigTypedDict, @@ -127,20 +132,21 @@ Union[ GCSDestinationConnectorConfig, ElasticsearchConnectorConfig, + MongoDBConnectorConfig, AzureAISearchConnectorConfig, WeaviateDestinationConnectorConfig, - MongoDBConnectorConfig, DeltaTableConnectorConfig, QdrantCloudDestinationConnectorConfig, PineconeDestinationConnectorConfig, + AzureDestinationConnectorConfig, AstraDBConnectorConfig, Neo4jDestinationConnectorConfig, OneDriveDestinationConnectorConfig, S3DestinationConnectorConfig, - MilvusDestinationConnectorConfig, - DatabricksVolumesConnectorConfig, PostgresDestinationConnectorConfig, + MilvusDestinationConnectorConfig, KafkaCloudDestinationConnectorConfig, + DatabricksVolumesConnectorConfig, CouchbaseDestinationConnectorConfig, RedisDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfig, diff --git a/src/unstructured_client/models/shared/destinationconnectortype.py b/src/unstructured_client/models/shared/destinationconnectortype.py index 098a3b38..f61c4a77 100644 --- a/src/unstructured_client/models/shared/destinationconnectortype.py +++ b/src/unstructured_client/models/shared/destinationconnectortype.py @@ -5,6 +5,7 @@ class DestinationConnectorType(str, Enum): + AZURE = "azure" ASTRADB = "astradb" AZURE_AI_SEARCH = "azure_ai_search" COUCHBASE = "couchbase" diff --git a/src/unstructured_client/models/shared/updatedestinationconnector.py b/src/unstructured_client/models/shared/updatedestinationconnector.py index c0499187..fd446c49 100644 --- a/src/unstructured_client/models/shared/updatedestinationconnector.py +++ b/src/unstructured_client/models/shared/updatedestinationconnector.py @@ -9,6 +9,10 @@ AzureAISearchConnectorConfigInput, AzureAISearchConnectorConfigInputTypedDict, ) +from .azuredestinationconnectorconfiginput import ( + AzureDestinationConnectorConfigInput, + AzureDestinationConnectorConfigInputTypedDict, +) from .couchbasedestinationconnectorconfiginput import ( CouchbaseDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInputTypedDict, @@ -91,20 +95,21 @@ Union[ GCSDestinationConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, - MongoDBConnectorConfigInputTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, PineconeDestinationConnectorConfigInputTypedDict, + AzureDestinationConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, S3DestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, - MilvusDestinationConnectorConfigInputTypedDict, - DatabricksVolumesConnectorConfigInputTypedDict, PostgresDestinationConnectorConfigInputTypedDict, + MilvusDestinationConnectorConfigInputTypedDict, KafkaCloudDestinationConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, @@ -118,20 +123,21 @@ Union[ GCSDestinationConnectorConfigInput, ElasticsearchConnectorConfigInput, + MongoDBConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, - MongoDBConnectorConfigInput, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, PineconeDestinationConnectorConfigInput, + AzureDestinationConnectorConfigInput, Neo4jDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, S3DestinationConnectorConfigInput, AstraDBConnectorConfigInput, - MilvusDestinationConnectorConfigInput, - DatabricksVolumesConnectorConfigInput, PostgresDestinationConnectorConfigInput, + MilvusDestinationConnectorConfigInput, KafkaCloudDestinationConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/workflownode.py b/src/unstructured_client/models/shared/workflownode.py index 86ca02a5..87d22acc 100644 --- a/src/unstructured_client/models/shared/workflownode.py +++ b/src/unstructured_client/models/shared/workflownode.py @@ -1,6 +1,7 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from .workflownodetype import WorkflowNodeType from pydantic import model_serializer from typing import Any, Dict from typing_extensions import NotRequired, TypedDict @@ -16,7 +17,7 @@ class WorkflowNodeTypedDict(TypedDict): name: str subtype: str - type: str + type: WorkflowNodeType id: NotRequired[Nullable[str]] settings: NotRequired[Nullable[Dict[str, Any]]] @@ -26,7 +27,7 @@ class WorkflowNode(BaseModel): subtype: str - type: str + type: WorkflowNodeType id: OptionalNullable[str] = UNSET diff --git a/src/unstructured_client/models/shared/workflownodetype.py b/src/unstructured_client/models/shared/workflownodetype.py new file mode 100644 index 00000000..7addfdb3 --- /dev/null +++ b/src/unstructured_client/models/shared/workflownodetype.py @@ -0,0 +1,11 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from enum import Enum + + +class WorkflowNodeType(str, Enum): + PARTITION = "partition" + PROMPTER = "prompter" + CHUNK = "chunk" + EMBED = "embed"