diff --git a/.genignore b/.genignore index 81745f9c..da3ad23c 100644 --- a/.genignore +++ b/.genignore @@ -13,7 +13,7 @@ Makefile # - Comment out the ignore for the right file # - Generate locally, watch the new endpoint appear # - Bring back the ignore line and commit -src/unstructured_client/destinations.py +# src/unstructured_client/destinations.py src/unstructured_client/general.py src/unstructured_client/jobs.py src/unstructured_client/sources.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 914fde37..2959a8c3 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: f525a810cf1c08e0a1f75d631b085137 + docChecksum: f1b64cb8ed012353b4e553a7fa259047 docVersion: 1.1.13 - speakeasyVersion: 1.544.0 - generationVersion: 2.599.0 - releaseVersion: 0.35.0 - configChecksum: 4a04b453af70e9dafd8f5541d24840b5 + speakeasyVersion: 1.509.1 + generationVersion: 2.539.1 + releaseVersion: 0.35.2 + configChecksum: 4fa340ec26aa24527a8d1cef445726ae 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.18.0 + core: 5.12.2 defaultEnabledRetries: 0.2.0 enumUnions: 0.1.0 envVarSecurityUsage: 0.3.2 @@ -24,12 +24,12 @@ features: globalSecurity: 3.0.3 globalSecurityCallbacks: 1.0.0 globalSecurityFlattening: 1.0.0 - globalServerURLs: 3.1.1 + globalServerURLs: 3.1.0 methodServerURLs: 3.1.1 multipartFileContentType: 1.0.0 nameOverrides: 3.0.1 nullables: 1.0.1 - openEnums: 1.0.1 + openEnums: 1.0.0 responseFormat: 1.0.1 retries: 3.0.2 sdkHooks: 1.0.1 @@ -222,7 +222,7 @@ generatedFiles: - py.typed - pylintrc - pyproject.toml - - scripts/prepare_readme.py + - scripts/prepare-readme.py - scripts/publish.sh - src/unstructured_client/__init__.py - src/unstructured_client/_hooks/__init__.py @@ -230,8 +230,8 @@ generatedFiles: - src/unstructured_client/_hooks/types.py - src/unstructured_client/_version.py - src/unstructured_client/basesdk.py + - src/unstructured_client/destinations.py - src/unstructured_client/httpclient.py - - src/unstructured_client/models/__init__.py - src/unstructured_client/models/errors/__init__.py - src/unstructured_client/models/errors/httpvalidationerror.py - src/unstructured_client/models/errors/sdkerror.py @@ -372,7 +372,6 @@ generatedFiles: - src/unstructured_client/types/basemodel.py - src/unstructured_client/utils/__init__.py - src/unstructured_client/utils/annotations.py - - src/unstructured_client/utils/datetimes.py - src/unstructured_client/utils/enums.py - src/unstructured_client/utils/eventstreaming.py - src/unstructured_client/utils/forms.py @@ -387,13 +386,24 @@ generatedFiles: - src/unstructured_client/utils/url.py - src/unstructured_client/utils/values.py examples: + create_connection_check_destinations: + speakeasy-default-create-connection-check-destinations: + parameters: + path: + destination_id: "d9795fb7-2135-4e48-a51d-009dd6ca38a1" + header: {} + responses: + "202": + application/json: {"created_at": "2025-10-23T17:00:52.828Z", "id": "2b33c132-612e-425e-9ef0-4c89923fc202", "status": "SCHEDULED"} + "422": + application/json: {"detail": ""} create_destination: speakeasy-default-create-destination: requestBody: - application/json: {"config": {"api_endpoint": "", "batch_size": 20, "collection_name": "", "flatten_metadata": false, "token": ""}, "name": "", "type": "azure_ai_search"} + application/json: {"config": {"endpoint": "", "index": "", "key": ""}, "name": "", "type": "astradb"} 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"} + application/json: {"config": {"anonymous": true, "remote_url": "https://gray-rawhide.name/"}, "created_at": "2023-10-16T03:44:52.760Z", "id": "b3cbed99-76f0-4238-9635-119a590e2345", "name": "", "type": "redis"} "422": application/json: {"detail": []} delete_destination: @@ -407,6 +417,17 @@ examples: application/json: "" "422": application/json: {"detail": []} + get_connection_check_destinations: + speakeasy-default-get-connection-check-destinations: + parameters: + path: + destination_id: "eb6a7890-5661-44a2-840b-bc59e9bb3318" + header: {} + responses: + "200": + application/json: {"created_at": "2025-03-13T23:31:02.383Z", "id": "c3274f55-9861-4e4e-8526-4273aa4d2772", "status": "FAILURE"} + "422": + application/json: {"detail": ""} get_destination: speakeasy-default-get-destination: parameters: @@ -415,27 +436,27 @@ examples: header: {} responses: "200": - application/json: {"config": {"account": "52165515", "batch_size": 573742, "database": "", "host": "superb-community.net", "password": "t4MDigDpyPb0cVm", "port": 365686, "record_id_key": "", "role": "", "table_name": "", "user": "Chadd_Cruickshank1"}, "created_at": "2024-09-10T03:26:06.668Z", "id": "7c1c550a-e537-4636-936b-2eb555e41376", "name": "", "type": "weaviate-cloud"} + application/json: {"config": {"api_key": "", "cluster_url": "https://fat-cleaner.name"}, "created_at": "2024-08-16T15:45:23.059Z", "id": "9289d2ad-317f-406c-ab55-de8b2b8c5252", "name": "", "type": "astradb"} "422": application/json: {"detail": []} list_destinations: speakeasy-default-list-destinations: responses: "200": - application/json: [{"config": {"anonymous": true, "remote_url": "https://distorted-heating.biz"}, "created_at": "2025-08-15T11:14:14.367Z", "id": "ec3c705e-e041-4481-9044-a6e1cc3bfa02", "name": "", "type": "couchbase"}] + application/json: [{"config": {"account": "07242898", "batch_size": 50, "database": "", "host": "exalted-rosemary.info", "password": "tvS9bIvlh3d_H0g", "port": 443, "role": "", "table_name": "elements", "user": "Kasandra_Braun34"}, "created_at": "2024-04-07T01:55:58.720Z", "id": "9ae48d91-a370-4ccd-9ce2-005a8bd58f72", "name": "", "type": "gcs"}] "422": application/json: {"detail": [{"loc": [], "msg": "", "type": ""}, {"loc": ["", "", ""], "msg": "", "type": ""}, {"loc": [800205, "", 473062], "msg": "", "type": ""}]} update_destination: speakeasy-default-update-destination: parameters: path: - destination_id: "6f9ea9d2-7c4e-42ec-8b5a-6971bd7ec9d2" + destination_id: "ddfee087-e67d-4bcc-afdb-6451a6e6f9ea" header: {} requestBody: - application/json: {"config": {"batch_size": 7372, "database": "", "host": "pushy-apparatus.net", "password": "sxtPKvIMqbllzrd", "port": 432315, "table_name": "", "username": "Dulce38"}} + application/json: {"config": {"batch_size": 100, "database": 0, "host": "acidic-patroller.com", "port": 6379, "ssl": true}} responses: "200": - application/json: {"config": {"remote_url": "https://uneven-bran.biz/", "service_account_key": ""}, "created_at": "2025-03-22T01:32:26.801Z", "id": "8b523ecd-dab6-4d8b-bded-129027ab991f", "name": "", "type": "astradb"} + application/json: {"config": {"account": "14728187", "batch_size": 50, "database": "", "host": "shameful-formamide.net", "password": "IYKdoJtnZqGHtgU", "port": 443, "role": "", "table_name": "elements", "user": "Monique90"}, "created_at": "2025-06-26T23:10:34.382Z", "id": "dab6d8bd-ed12-4902-97ab-991fe18963fb", "name": "", "type": "postgres"} "422": application/json: {"detail": ""} cancel_job: @@ -456,7 +477,7 @@ examples: job_id: "bddbb621-2124-4cc2-9fa7-c6cdc21dac44" query: file_id: "" - node_id: "bddbb621-2124-4cc2-9fa7-c6cdc21dac44" + node_id: "a949c7ba-31b1-4a2b-b7df-f144e8cc5768" header: {} responses: "200": @@ -481,6 +502,17 @@ examples: application/json: [{"created_at": "2023-09-01T17:59:19.211Z", "id": "7098ff76-419f-4a5a-a313-d159507b629d", "status": "COMPLETED", "workflow_id": "5cf761e8-c108-4e43-8d76-ae90ad4fd3ef", "workflow_name": ""}] "422": application/json: {"detail": []} + create_connection_check_sources: + speakeasy-default-create-connection-check-sources: + parameters: + path: + source_id: "e5658517-3282-4845-9c22-88de48549d21" + header: {} + responses: + "202": + application/json: {"created_at": "2023-03-12T05:54:05.025Z", "id": "b5793adb-057f-470c-ae7e-309d786a99eb", "status": "SUCCESS"} + "422": + application/json: {"detail": ""} create_source: speakeasy-default-create-source: requestBody: @@ -501,6 +533,17 @@ examples: application/json: "" "422": application/json: {"detail": ""} + get_connection_check_sources: + speakeasy-default-get-connection-check-sources: + parameters: + path: + source_id: "b3b6b67d-aca9-4b1c-89c0-5788869c1383" + header: {} + responses: + "200": + application/json: {"created_at": "2023-09-12T00:38:55.692Z", "id": "f7d1d931-a753-4fe9-ae3f-671f188a9b55", "status": "SUCCESS"} + "422": + application/json: {"detail": ""} get_source: speakeasy-default-get-source: parameters: @@ -538,7 +581,7 @@ examples: application/json: {"name": "", "workflow_type": "platinum"} responses: "200": - application/json: {"created_at": "2024-01-04T07:01:39.451Z", "destinations": ["aba90bc8-8ea4-445f-be89-4788e3f38c0e", "a06124df-e11e-484d-bd7c-fa1e3fe9ec68"], "id": "a7a3141b-619c-45d0-bda5-f5edb0b22f19", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["e4d2c1c2-a0f5-404c-b37f-b0f07c5417c9", "2569dec8-72ff-4e46-b78b-ffe279bdaafc"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": "prompter"}]} + application/json: {"created_at": "2024-01-04T07:01:39.451Z", "destinations": ["aba90bc8-8ea4-445f-be89-4788e3f38c0e", "a06124df-e11e-484d-bd7c-fa1e3fe9ec68"], "id": "a7a3141b-619c-45d0-bda5-f5edb0b22f19", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["e4d2c1c2-a0f5-404c-b37f-b0f07c5417c9", "2569dec8-72ff-4e46-b78b-ffe279bdaafc"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": ""} delete_workflow: @@ -560,14 +603,14 @@ examples: header: {} responses: "200": - application/json: {"created_at": "2023-05-27T02:17:56.472Z", "destinations": [], "id": "5781a90a-c5ba-41a1-ac38-4b031d1d247d", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["1ecf852c-a41e-4193-b8ae-7afe4e642c1d", "73825739-ddfe-44a7-b2e9-6adc9e5972ee", "32976128-e157-4711-b160-6c7e63baa0cb"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": "embed"}, {"name": "", "subtype": "", "type": "embed"}]} + application/json: {"created_at": "2023-05-27T02:17:56.472Z", "destinations": [], "id": "5781a90a-c5ba-41a1-ac38-4b031d1d247d", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["1ecf852c-a41e-4193-b8ae-7afe4e642c1d", "73825739-ddfe-44a7-b2e9-6adc9e5972ee", "32976128-e157-4711-b160-6c7e63baa0cb"], "status": "inactive", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": [{"loc": [], "msg": "", "type": ""}]} list_workflows: speakeasy-default-list-workflows: responses: "200": - application/json: [{"created_at": "2025-06-22T11:37:21.648Z", "destinations": ["aeebecc7-9d8e-4625-bf1d-815c2f084869", "01866db9-54f2-4be7-93c3-062b8107d001", "fcdc4994-eea5-425c-91fa-e03f2bd8030d"], "id": "16b80fee-64dc-472d-8f26-1d7729b6423d", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": [], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": "partition"}]}] + application/json: [{"created_at": "2025-06-22T11:37:21.648Z", "destinations": ["aeebecc7-9d8e-4625-bf1d-815c2f084869", "01866db9-54f2-4be7-93c3-062b8107d001", "fcdc4994-eea5-425c-91fa-e03f2bd8030d"], "id": "16b80fee-64dc-472d-8f26-1d7729b6423d", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": [], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}]}] "422": application/json: {"detail": [{"loc": [931730, 730320, 769892], "msg": "", "type": ""}, {"loc": ["", 862351, 882715], "msg": "", "type": ""}, {"loc": [""], "msg": "", "type": ""}]} run_workflow: @@ -591,7 +634,7 @@ examples: application/json: {} responses: "200": - application/json: {"created_at": "2024-02-01T21:33:30.305Z", "destinations": [], "id": "4348c683-9378-4211-a7a6-ea9307f1cbb9", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["179309ff-51c8-4023-9475-af5f2a03511d"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": "partition"}, {"name": "", "subtype": "", "type": "embed"}]} + application/json: {"created_at": "2024-02-01T21:33:30.305Z", "destinations": [], "id": "4348c683-9378-4211-a7a6-ea9307f1cbb9", "name": "", "schedule": {"crontab_entries": [{"cron_expression": "0 0 * * *"}]}, "sources": ["179309ff-51c8-4023-9475-af5f2a03511d"], "status": "active", "workflow_nodes": [{"name": "", "subtype": "", "type": ""}, {"name": "", "subtype": "", "type": ""}]} "422": application/json: {"detail": ""} partition: @@ -606,93 +649,5 @@ 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": ""} - 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": [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: - 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": ""} - 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": ""} - create_connection_check_destinations: - speakeasy-default-create-connection-check-destinations: - parameters: - path: - destination_id: "d9795fb7-2135-4e48-a51d-009dd6ca38a1" - header: {} - responses: - "202": - application/json: {"created_at": "2025-10-23T17:00:52.828Z", "id": "2b33c132-612e-425e-9ef0-4c89923fc202", "status": "SCHEDULED"} - "422": - application/json: {"detail": ""} - get_connection_check_destinations: - speakeasy-default-get-connection-check-destinations: - parameters: - path: - destination_id: "eb6a7890-5661-44a2-840b-bc59e9bb3318" - header: {} - responses: - "200": - application/json: {"created_at": "2025-03-13T23:31:02.383Z", "id": "c3274f55-9861-4e4e-8526-4273aa4d2772", "status": "FAILURE"} - "422": - application/json: {"detail": ""} - create_connection_check_sources: - speakeasy-default-create-connection-check-sources: - parameters: - path: - source_id: "e5658517-3282-4845-9c22-88de48549d21" - header: {} - responses: - "202": - application/json: {"created_at": "2023-03-12T05:54:05.025Z", "id": "b5793adb-057f-470c-ae7e-309d786a99eb", "status": "SUCCESS"} - "422": - application/json: {"detail": ""} - get_connection_check_sources: - speakeasy-default-get-connection-check-sources: - parameters: - path: - source_id: "b3b6b67d-aca9-4b1c-89c0-5788869c1383" - header: {} - responses: - "200": - application/json: {"created_at": "2023-09-12T00:38:55.692Z", "id": "f7d1d931-a753-4fe9-ae3f-671f188a9b55", "status": "SUCCESS"} - "422": - application/json: {"detail": ""} -examplesVersion: 1.0.1 +examplesVersion: 1.0.0 generatedTests: {} diff --git a/docs/models/operations/createconnectioncheckdestinationsresponse.md b/docs/models/operations/createconnectioncheckdestinationsresponse.md index 4d29ed43..a2df8d48 100644 --- a/docs/models/operations/createconnectioncheckdestinationsresponse.md +++ b/docs/models/operations/createconnectioncheckdestinationsresponse.md @@ -6,6 +6,6 @@ | 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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/createconnectionchecksourcesresponse.md b/docs/models/operations/createconnectionchecksourcesresponse.md index 92da80e6..1739f25c 100644 --- a/docs/models/operations/createconnectionchecksourcesresponse.md +++ b/docs/models/operations/createconnectionchecksourcesresponse.md @@ -6,6 +6,6 @@ | 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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/createdestinationresponse.md b/docs/models/operations/createdestinationresponse.md index b2c0fc7a..f49dc2bd 100644 --- a/docs/models/operations/createdestinationresponse.md +++ b/docs/models/operations/createdestinationresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/createsourceresponse.md b/docs/models/operations/createsourceresponse.md index 22c4e29d..52dc366c 100644 --- a/docs/models/operations/createsourceresponse.md +++ b/docs/models/operations/createsourceresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/deleteworkflowrequest.md b/docs/models/operations/deleteworkflowrequest.md index f7f0ba0d..26b64526 100644 --- a/docs/models/operations/deleteworkflowrequest.md +++ b/docs/models/operations/deleteworkflowrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `workflow_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow_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/getconnectioncheckdestinationsresponse.md b/docs/models/operations/getconnectioncheckdestinationsresponse.md index 5e547344..b4160180 100644 --- a/docs/models/operations/getconnectioncheckdestinationsresponse.md +++ b/docs/models/operations/getconnectioncheckdestinationsresponse.md @@ -6,6 +6,6 @@ | 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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/getconnectionchecksourcesresponse.md b/docs/models/operations/getconnectionchecksourcesresponse.md index 4633b094..b4886e5d 100644 --- a/docs/models/operations/getconnectionchecksourcesresponse.md +++ b/docs/models/operations/getconnectionchecksourcesresponse.md @@ -6,6 +6,6 @@ | 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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `dag_node_connection_check` | [Optional[shared.DagNodeConnectionCheck]](../../models/shared/dagnodeconnectioncheck.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/getdestinationresponse.md b/docs/models/operations/getdestinationresponse.md index 7769745c..0844eb82 100644 --- a/docs/models/operations/getdestinationresponse.md +++ b/docs/models/operations/getdestinationresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/getjobresponse.md b/docs/models/operations/getjobresponse.md index f30ed64a..0d884449 100644 --- a/docs/models/operations/getjobresponse.md +++ b/docs/models/operations/getjobresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `job_information` | [Optional[shared.JobInformation]](../../models/shared/jobinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `job_information` | [Optional[shared.JobInformation]](../../models/shared/jobinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/getsourceresponse.md b/docs/models/operations/getsourceresponse.md index 0c9932be..66b6db9d 100644 --- a/docs/models/operations/getsourceresponse.md +++ b/docs/models/operations/getsourceresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/getworkflowrequest.md b/docs/models/operations/getworkflowrequest.md index cff93ec9..44757849 100644 --- a/docs/models/operations/getworkflowrequest.md +++ b/docs/models/operations/getworkflowrequest.md @@ -5,5 +5,5 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `workflow_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow_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/listdestinationsresponse.md b/docs/models/operations/listdestinationsresponse.md index 1f090f98..dda6ef1c 100644 --- a/docs/models/operations/listdestinationsresponse.md +++ b/docs/models/operations/listdestinationsresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `response_list_destinations` | List[[shared.DestinationConnectorInformation](../../models/shared/destinationconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `response_list_destinations` | List[[shared.DestinationConnectorInformation](../../models/shared/destinationconnectorinformation.md)] | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/listjobsresponse.md b/docs/models/operations/listjobsresponse.md index 208019f1..8bcbb37a 100644 --- a/docs/models/operations/listjobsresponse.md +++ b/docs/models/operations/listjobsresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `response_list_jobs` | List[[shared.JobInformation](../../models/shared/jobinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `response_list_jobs` | List[[shared.JobInformation](../../models/shared/jobinformation.md)] | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/listsourcesresponse.md b/docs/models/operations/listsourcesresponse.md index be632c8b..afdf90fb 100644 --- a/docs/models/operations/listsourcesresponse.md +++ b/docs/models/operations/listsourcesresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `response_list_sources` | List[[shared.SourceConnectorInformation](../../models/shared/sourceconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `response_list_sources` | List[[shared.SourceConnectorInformation](../../models/shared/sourceconnectorinformation.md)] | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/listworkflowsresponse.md b/docs/models/operations/listworkflowsresponse.md index e162b4ad..d927509a 100644 --- a/docs/models/operations/listworkflowsresponse.md +++ b/docs/models/operations/listworkflowsresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | ------------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `response_list_workflows` | List[[shared.WorkflowInformation](../../models/shared/workflowinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `response_list_workflows` | List[[shared.WorkflowInformation](../../models/shared/workflowinformation.md)] | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/runworkflowrequest.md b/docs/models/operations/runworkflowrequest.md index 419cc921..616bcefb 100644 --- a/docs/models/operations/runworkflowrequest.md +++ b/docs/models/operations/runworkflowrequest.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | +| `workflow_id` | *str* | :heavy_check_mark: | N/A | | `body_run_workflow` | [Optional[shared.BodyRunWorkflow]](../../models/shared/bodyrunworkflow.md) | :heavy_minus_sign: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `workflow_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/operations/runworkflowresponse.md b/docs/models/operations/runworkflowresponse.md index 6a0dd809..f2220b79 100644 --- a/docs/models/operations/runworkflowresponse.md +++ b/docs/models/operations/runworkflowresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | ------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `job_information` | [Optional[shared.JobInformation]](../../models/shared/jobinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `job_information` | [Optional[shared.JobInformation]](../../models/shared/jobinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/updatedestinationresponse.md b/docs/models/operations/updatedestinationresponse.md index c9131c33..ebd8eca1 100644 --- a/docs/models/operations/updatedestinationresponse.md +++ b/docs/models/operations/updatedestinationresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `destination_connector_information` | [Optional[shared.DestinationConnectorInformation]](../../models/shared/destinationconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/updatesourceresponse.md b/docs/models/operations/updatesourceresponse.md index cf1edd80..48d31f1f 100644 --- a/docs/models/operations/updatesourceresponse.md +++ b/docs/models/operations/updatesourceresponse.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------ | | `content_type` | *str* | :heavy_check_mark: | HTTP response content type for this operation | -| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.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 +| `raw_response` | [httpx.Response](https://www.python-httpx.org/api/#response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing | +| `source_connector_information` | [Optional[shared.SourceConnectorInformation]](../../models/shared/sourceconnectorinformation.md) | :heavy_minus_sign: | Successful Response | \ No newline at end of file diff --git a/docs/models/operations/updateworkflowrequest.md b/docs/models/operations/updateworkflowrequest.md index 9f683f68..0741e1c3 100644 --- a/docs/models/operations/updateworkflowrequest.md +++ b/docs/models/operations/updateworkflowrequest.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | -------------------------------------------------------------- | | `update_workflow` | [shared.UpdateWorkflow](../../models/shared/updateworkflow.md) | :heavy_check_mark: | N/A | -| `unstructured_api_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `workflow_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow_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/shared/astradbconnectorconfig.md b/docs/models/shared/astradbconnectorconfig.md index 39b64c01..d8578763 100644 --- a/docs/models/shared/astradbconnectorconfig.md +++ b/docs/models/shared/astradbconnectorconfig.md @@ -8,5 +8,5 @@ | `api_endpoint` | *str* | :heavy_check_mark: | N/A | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `collection_name` | *str* | :heavy_check_mark: | N/A | -| `keyspace` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `token` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `token` | *str* | :heavy_check_mark: | N/A | +| `keyspace` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/astradbconnectorconfiginput.md b/docs/models/shared/astradbconnectorconfiginput.md index 402be5fe..77d1eb54 100644 --- a/docs/models/shared/astradbconnectorconfiginput.md +++ b/docs/models/shared/astradbconnectorconfiginput.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `api_endpoint` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `collection_name` | *str* | :heavy_check_mark: | N/A | +| `token` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `flatten_metadata` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `keyspace` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `token` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `keyspace` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/azuresourceconnectorconfig.md b/docs/models/shared/azuresourceconnectorconfig.md index f2d6b636..ae77f774 100644 --- a/docs/models/shared/azuresourceconnectorconfig.md +++ b/docs/models/shared/azuresourceconnectorconfig.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `recursive` | *bool* | :heavy_check_mark: | N/A | +| `remote_url` | *str* | :heavy_check_mark: | N/A | | `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 | -| `recursive` | *bool* | :heavy_check_mark: | 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/azuresourceconnectorconfiginput.md b/docs/models/shared/azuresourceconnectorconfiginput.md index 2abfe8dc..d0b44d16 100644 --- a/docs/models/shared/azuresourceconnectorconfiginput.md +++ b/docs/models/shared/azuresourceconnectorconfiginput.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `remote_url` | *str* | :heavy_check_mark: | N/A | | `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 | | `recursive` | *Optional[bool]* | :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/boxsourceconnectorconfiginput.md b/docs/models/shared/boxsourceconnectorconfiginput.md index f56c4368..bca0c2c3 100644 --- a/docs/models/shared/boxsourceconnectorconfiginput.md +++ b/docs/models/shared/boxsourceconnectorconfiginput.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `box_app_config` | *str* | :heavy_check_mark: | N/A | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `remote_url` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/confluencesourceconnectorconfig.md b/docs/models/shared/confluencesourceconnectorconfig.md index db1cdab7..682883c8 100644 --- a/docs/models/shared/confluencesourceconnectorconfig.md +++ b/docs/models/shared/confluencesourceconnectorconfig.md @@ -5,14 +5,14 @@ | Field | Type | Required | Description | | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | -| `api_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `cloud` | *bool* | :heavy_check_mark: | N/A | -| `extract_files` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `extract_images` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `max_num_of_docs_from_each_space` | *int* | :heavy_check_mark: | N/A | | `max_num_of_spaces` | *int* | :heavy_check_mark: | N/A | -| `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `spaces` | List[*str*] | :heavy_check_mark: | N/A | -| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `url` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `api_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `extract_files` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `extract_images` | *Optional[bool]* | :heavy_minus_sign: | N/A | +| `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/confluencesourceconnectorconfiginput.md b/docs/models/shared/confluencesourceconnectorconfiginput.md index dcc6d40e..aaf6d1dd 100644 --- a/docs/models/shared/confluencesourceconnectorconfiginput.md +++ b/docs/models/shared/confluencesourceconnectorconfiginput.md @@ -5,6 +5,8 @@ | Field | Type | Required | Description | | --------------------------------- | --------------------------------- | --------------------------------- | --------------------------------- | +| `url` | *str* | :heavy_check_mark: | N/A | +| `username` | *str* | :heavy_check_mark: | N/A | | `api_token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `cloud` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `extract_files` | *Optional[bool]* | :heavy_minus_sign: | N/A | @@ -13,6 +15,4 @@ | `max_num_of_spaces` | *Optional[int]* | :heavy_minus_sign: | N/A | | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `spaces` | List[*str*] | :heavy_minus_sign: | N/A | -| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `url` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/couchbasedestinationconnectorconfig.md b/docs/models/shared/couchbasedestinationconnectorconfig.md index 95a9bb6c..05149748 100644 --- a/docs/models/shared/couchbasedestinationconnectorconfig.md +++ b/docs/models/shared/couchbasedestinationconnectorconfig.md @@ -7,8 +7,8 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `bucket` | *str* | :heavy_check_mark: | N/A | -| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `connection_string` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | -| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/couchbasedestinationconnectorconfiginput.md b/docs/models/shared/couchbasedestinationconnectorconfiginput.md index 52384433..b7958e18 100644 --- a/docs/models/shared/couchbasedestinationconnectorconfiginput.md +++ b/docs/models/shared/couchbasedestinationconnectorconfiginput.md @@ -7,8 +7,8 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `bucket` | *str* | :heavy_check_mark: | N/A | -| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `connection_string` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | -| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/couchbasesourceconnectorconfig.md b/docs/models/shared/couchbasesourceconnectorconfig.md index c3cbb0e9..38bd1636 100644 --- a/docs/models/shared/couchbasesourceconnectorconfig.md +++ b/docs/models/shared/couchbasesourceconnectorconfig.md @@ -7,9 +7,9 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `bucket` | *str* | :heavy_check_mark: | N/A | -| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `collection_id` | *str* | :heavy_check_mark: | N/A | | `connection_string` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | -| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/couchbasesourceconnectorconfiginput.md b/docs/models/shared/couchbasesourceconnectorconfiginput.md index 487d814a..93097cce 100644 --- a/docs/models/shared/couchbasesourceconnectorconfiginput.md +++ b/docs/models/shared/couchbasesourceconnectorconfiginput.md @@ -7,9 +7,9 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `bucket` | *str* | :heavy_check_mark: | N/A | -| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `collection_id` | *str* | :heavy_check_mark: | N/A | | `connection_string` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | -| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `collection` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `scope` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/createworkflow.md b/docs/models/shared/createworkflow.md index b87f290f..9a7eb3bc 100644 --- a/docs/models/shared/createworkflow.md +++ b/docs/models/shared/createworkflow.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `destination_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | +| `workflow_type` | [shared.WorkflowType](../../models/shared/workflowtype.md) | :heavy_check_mark: | N/A | +| `destination_id` | *OptionalNullable[str]* | :heavy_minus_sign: | 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 | -| `workflow_type` | [shared.WorkflowType](../../models/shared/workflowtype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `workflow_nodes` | List[[shared.WorkflowNode](../../models/shared/workflownode.md)] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/dagnodeconnectioncheck.md b/docs/models/shared/dagnodeconnectioncheck.md index 23a8fe06..c292bb88 100644 --- a/docs/models/shared/dagnodeconnectioncheck.md +++ b/docs/models/shared/dagnodeconnectioncheck.md @@ -7,6 +7,6 @@ | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------- | | `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 | +| `status` | [shared.ConnectionCheckStatus](../../models/shared/connectioncheckstatus.md) | :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 +| `reported_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/databricksvdtdestinationconnectorconfig.md b/docs/models/shared/databricksvdtdestinationconnectorconfig.md index c89299cb..8479af3d 100644 --- a/docs/models/shared/databricksvdtdestinationconnectorconfig.md +++ b/docs/models/shared/databricksvdtdestinationconnectorconfig.md @@ -6,13 +6,13 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `catalog` | *str* | :heavy_check_mark: | N/A | +| `http_path` | *str* | :heavy_check_mark: | N/A | +| `server_hostname` | *str* | :heavy_check_mark: | N/A | +| `volume` | *str* | :heavy_check_mark: | N/A | | `client_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `client_secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `database` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `http_path` | *str* | :heavy_check_mark: | N/A | | `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `server_hostname` | *str* | :heavy_check_mark: | N/A | | `table_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `volume` | *str* | :heavy_check_mark: | N/A | | `volume_path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md b/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md index 975c21c1..a251d834 100644 --- a/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md +++ b/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md @@ -6,13 +6,13 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `catalog` | *str* | :heavy_check_mark: | N/A | +| `http_path` | *str* | :heavy_check_mark: | N/A | +| `server_hostname` | *str* | :heavy_check_mark: | N/A | +| `volume` | *str* | :heavy_check_mark: | N/A | | `client_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `client_secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `database` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `http_path` | *str* | :heavy_check_mark: | N/A | | `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `server_hostname` | *str* | :heavy_check_mark: | N/A | | `table_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `volume` | *str* | :heavy_check_mark: | N/A | | `volume_path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/databricksvolumesconnectorconfig.md b/docs/models/shared/databricksvolumesconnectorconfig.md index 7a6ebd8d..7e8e03e2 100644 --- a/docs/models/shared/databricksvolumesconnectorconfig.md +++ b/docs/models/shared/databricksvolumesconnectorconfig.md @@ -9,6 +9,6 @@ | `client_id` | *str* | :heavy_check_mark: | N/A | | `client_secret` | *str* | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | | `volume` | *str* | :heavy_check_mark: | N/A | -| `volume_path` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `volume_path` | *str* | :heavy_check_mark: | N/A | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/databricksvolumesconnectorconfiginput.md b/docs/models/shared/databricksvolumesconnectorconfiginput.md index b5348fb6..aa05e7bd 100644 --- a/docs/models/shared/databricksvolumesconnectorconfiginput.md +++ b/docs/models/shared/databricksvolumesconnectorconfiginput.md @@ -9,6 +9,6 @@ | `client_id` | *str* | :heavy_check_mark: | N/A | | `client_secret` | *str* | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | | `volume` | *str* | :heavy_check_mark: | N/A | -| `volume_path` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `volume_path` | *str* | :heavy_check_mark: | N/A | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/dropboxsourceconnectorconfiginput.md b/docs/models/shared/dropboxsourceconnectorconfiginput.md index d9555c96..97f200d8 100644 --- a/docs/models/shared/dropboxsourceconnectorconfiginput.md +++ b/docs/models/shared/dropboxsourceconnectorconfiginput.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `remote_url` | *str* | :heavy_check_mark: | N/A | -| `token` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `token` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/files.md b/docs/models/shared/files.md index 2bdf3f8c..55964254 100644 --- a/docs/models/shared/files.md +++ b/docs/models/shared/files.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | Example | | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `content` | *Union[bytes, IO[bytes], io.BufferedReader]* | :heavy_check_mark: | N/A | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | -| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | | -| `file_name` | *str* | :heavy_check_mark: | N/A | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | \ No newline at end of file +| `file_name` | *str* | :heavy_check_mark: | N/A | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/gcssourceconnectorconfiginput.md b/docs/models/shared/gcssourceconnectorconfiginput.md index 6913d563..bebee772 100644 --- a/docs/models/shared/gcssourceconnectorconfiginput.md +++ b/docs/models/shared/gcssourceconnectorconfiginput.md @@ -5,6 +5,6 @@ | Field | Type | Required | Description | | --------------------- | --------------------- | --------------------- | --------------------- | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `remote_url` | *str* | :heavy_check_mark: | N/A | -| `service_account_key` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `service_account_key` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/googledrivesourceconnectorconfig.md b/docs/models/shared/googledrivesourceconnectorconfig.md index ea2ca8f4..407dfa51 100644 --- a/docs/models/shared/googledrivesourceconnectorconfig.md +++ b/docs/models/shared/googledrivesourceconnectorconfig.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | --------------------- | --------------------- | --------------------- | --------------------- | | `drive_id` | *str* | :heavy_check_mark: | N/A | -| `extensions` | List[*str*] | :heavy_minus_sign: | N/A | | `recursive` | *bool* | :heavy_check_mark: | N/A | -| `service_account_key` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `service_account_key` | *str* | :heavy_check_mark: | N/A | +| `extensions` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/googledrivesourceconnectorconfiginput.md b/docs/models/shared/googledrivesourceconnectorconfiginput.md index 240ef437..df69f291 100644 --- a/docs/models/shared/googledrivesourceconnectorconfiginput.md +++ b/docs/models/shared/googledrivesourceconnectorconfiginput.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | --------------------- | --------------------- | --------------------- | --------------------- | | `drive_id` | *str* | :heavy_check_mark: | N/A | +| `service_account_key` | *str* | :heavy_check_mark: | N/A | | `extensions` | List[*str*] | :heavy_minus_sign: | N/A | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `service_account_key` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/ibmwatsonxs3destinationconnectorconfiginput.md b/docs/models/shared/ibmwatsonxs3destinationconnectorconfiginput.md index 417e3827..26f49c4d 100644 --- a/docs/models/shared/ibmwatsonxs3destinationconnectorconfiginput.md +++ b/docs/models/shared/ibmwatsonxs3destinationconnectorconfiginput.md @@ -9,11 +9,11 @@ | `catalog` | *str* | :heavy_check_mark: | N/A | | `iam_api_key` | *str* | :heavy_check_mark: | N/A | | `iceberg_endpoint` | *str* | :heavy_check_mark: | N/A | -| `max_retries` | *Optional[int]* | :heavy_minus_sign: | Maximum number of retries to upload data | -| `max_retries_connection` | *Optional[int]* | :heavy_minus_sign: | Maximum number of retries in case of a connection error | | `namespace` | *str* | :heavy_check_mark: | N/A | | `object_storage_endpoint` | *str* | :heavy_check_mark: | N/A | | `object_storage_region` | *str* | :heavy_check_mark: | N/A | -| `record_id_key` | *Optional[str]* | :heavy_minus_sign: | Searchable key to find entries for the same record on previous runs | | `secret_access_key` | *str* | :heavy_check_mark: | N/A | -| `table` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `table` | *str* | :heavy_check_mark: | N/A | +| `max_retries` | *Optional[int]* | :heavy_minus_sign: | Maximum number of retries to upload data | +| `max_retries_connection` | *Optional[int]* | :heavy_minus_sign: | Maximum number of retries in case of a connection error | +| `record_id_key` | *Optional[str]* | :heavy_minus_sign: | Searchable key to find entries for the same record on previous runs | \ No newline at end of file diff --git a/docs/models/shared/inputfiles.md b/docs/models/shared/inputfiles.md index 08ffa4de..5c2764f1 100644 --- a/docs/models/shared/inputfiles.md +++ b/docs/models/shared/inputfiles.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | -------------------------------------------- | | `content` | *Union[bytes, IO[bytes], io.BufferedReader]* | :heavy_check_mark: | N/A | -| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `file_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `file_name` | *str* | :heavy_check_mark: | N/A | +| `content_type` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/jirasourceconnectorconfig.md b/docs/models/shared/jirasourceconnectorconfig.md index ff61a6c4..bab3278b 100644 --- a/docs/models/shared/jirasourceconnectorconfig.md +++ b/docs/models/shared/jirasourceconnectorconfig.md @@ -5,6 +5,8 @@ | Field | Type | Required | Description | | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `url` | *str* | :heavy_check_mark: | N/A | +| `username` | *str* | :heavy_check_mark: | N/A | | `boards` | List[*str*] | :heavy_minus_sign: | N/A | | `cloud` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `download_attachments` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | @@ -12,6 +14,4 @@ | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `projects` | List[*str*] | :heavy_minus_sign: | N/A | | `status_filters` | List[*str*] | :heavy_minus_sign: | N/A | -| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `url` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/jirasourceconnectorconfiginput.md b/docs/models/shared/jirasourceconnectorconfiginput.md index 962e3c0a..cd0f71be 100644 --- a/docs/models/shared/jirasourceconnectorconfiginput.md +++ b/docs/models/shared/jirasourceconnectorconfiginput.md @@ -5,6 +5,8 @@ | Field | Type | Required | Description | | ------------------------ | ------------------------ | ------------------------ | ------------------------ | +| `url` | *str* | :heavy_check_mark: | N/A | +| `username` | *str* | :heavy_check_mark: | N/A | | `boards` | List[*str*] | :heavy_minus_sign: | N/A | | `cloud` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | | `download_attachments` | *OptionalNullable[bool]* | :heavy_minus_sign: | N/A | @@ -12,6 +14,4 @@ | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `projects` | List[*str*] | :heavy_minus_sign: | N/A | | `status_filters` | List[*str*] | :heavy_minus_sign: | N/A | -| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `url` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/jobinformation.md b/docs/models/shared/jobinformation.md index 2578774c..64edb381 100644 --- a/docs/models/shared/jobinformation.md +++ b/docs/models/shared/jobinformation.md @@ -7,10 +7,10 @@ | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | -------------------------------------------------------------------------- | | `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 | +| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_check_mark: | N/A | +| `workflow_id` | *str* | :heavy_check_mark: | N/A | +| `workflow_name` | *str* | :heavy_check_mark: | N/A | | `input_file_ids` | List[*str*] | :heavy_minus_sign: | N/A | | `job_type` | [Optional[shared.WorkflowJobType]](../../models/shared/workflowjobtype.md) | :heavy_minus_sign: | N/A | | `output_node_files` | List[[shared.NodeFileMetadata](../../models/shared/nodefilemetadata.md)] | :heavy_minus_sign: | N/A | -| `runtime` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `status` | [shared.JobStatus](../../models/shared/jobstatus.md) | :heavy_check_mark: | N/A | -| `workflow_id` | *str* | :heavy_check_mark: | N/A | -| `workflow_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `runtime` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/kafkaclouddestinationconnectorconfig.md b/docs/models/shared/kafkaclouddestinationconnectorconfig.md index 1b6f79de..d0539c77 100644 --- a/docs/models/shared/kafkaclouddestinationconnectorconfig.md +++ b/docs/models/shared/kafkaclouddestinationconnectorconfig.md @@ -7,8 +7,8 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `bootstrap_servers` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `kafka_api_key` | *str* | :heavy_check_mark: | N/A | | `port` | *int* | :heavy_check_mark: | N/A | | `secret` | *str* | :heavy_check_mark: | N/A | -| `topic` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `topic` | *str* | :heavy_check_mark: | N/A | +| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/kafkaclouddestinationconnectorconfiginput.md b/docs/models/shared/kafkaclouddestinationconnectorconfiginput.md index c90c8d9d..28a88ee7 100644 --- a/docs/models/shared/kafkaclouddestinationconnectorconfiginput.md +++ b/docs/models/shared/kafkaclouddestinationconnectorconfiginput.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `bootstrap_servers` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `kafka_api_key` | *str* | :heavy_check_mark: | N/A | -| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `secret` | *str* | :heavy_check_mark: | N/A | -| `topic` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `topic` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/kafkacloudsourceconnectorconfig.md b/docs/models/shared/kafkacloudsourceconnectorconfig.md index ae5e3be1..dde8b4ff 100644 --- a/docs/models/shared/kafkacloudsourceconnectorconfig.md +++ b/docs/models/shared/kafkacloudsourceconnectorconfig.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ------------------------- | ------------------------- | ------------------------- | ------------------------- | | `bootstrap_servers` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `kafka_api_key` | *str* | :heavy_check_mark: | N/A | | `num_messages_to_consume` | *int* | :heavy_check_mark: | N/A | | `port` | *int* | :heavy_check_mark: | N/A | | `secret` | *str* | :heavy_check_mark: | N/A | -| `topic` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `topic` | *str* | :heavy_check_mark: | N/A | +| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/kafkacloudsourceconnectorconfiginput.md b/docs/models/shared/kafkacloudsourceconnectorconfiginput.md index 5b5a9a66..e831d031 100644 --- a/docs/models/shared/kafkacloudsourceconnectorconfiginput.md +++ b/docs/models/shared/kafkacloudsourceconnectorconfiginput.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ------------------------- | ------------------------- | ------------------------- | ------------------------- | | `bootstrap_servers` | *str* | :heavy_check_mark: | N/A | -| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `kafka_api_key` | *str* | :heavy_check_mark: | N/A | -| `num_messages_to_consume` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `secret` | *str* | :heavy_check_mark: | N/A | -| `topic` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `topic` | *str* | :heavy_check_mark: | N/A | +| `group_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `num_messages_to_consume` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/milvusdestinationconnectorconfig.md b/docs/models/shared/milvusdestinationconnectorconfig.md index 6ca92e7c..1c293908 100644 --- a/docs/models/shared/milvusdestinationconnectorconfig.md +++ b/docs/models/shared/milvusdestinationconnectorconfig.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `collection_name` | *str* | :heavy_check_mark: | N/A | +| `record_id_key` | *str* | :heavy_check_mark: | N/A | +| `uri` | *str* | :heavy_check_mark: | N/A | | `db_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `record_id_key` | *str* | :heavy_check_mark: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `uri` | *str* | :heavy_check_mark: | N/A | | `user` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/milvusdestinationconnectorconfiginput.md b/docs/models/shared/milvusdestinationconnectorconfiginput.md index cc8fe5dd..2a52a287 100644 --- a/docs/models/shared/milvusdestinationconnectorconfiginput.md +++ b/docs/models/shared/milvusdestinationconnectorconfiginput.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `collection_name` | *str* | :heavy_check_mark: | N/A | +| `record_id_key` | *str* | :heavy_check_mark: | N/A | +| `uri` | *str* | :heavy_check_mark: | N/A | | `db_name` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `record_id_key` | *str* | :heavy_check_mark: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `uri` | *str* | :heavy_check_mark: | N/A | | `user` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/neo4jdestinationconnectorconfiginput.md b/docs/models/shared/neo4jdestinationconnectorconfiginput.md index b0866545..cafe66b4 100644 --- a/docs/models/shared/neo4jdestinationconnectorconfiginput.md +++ b/docs/models/shared/neo4jdestinationconnectorconfiginput.md @@ -5,8 +5,8 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | | `uri` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/onedrivesourceconnectorconfiginput.md b/docs/models/shared/onedrivesourceconnectorconfiginput.md index 03c4d8e5..a1a34863 100644 --- a/docs/models/shared/onedrivesourceconnectorconfiginput.md +++ b/docs/models/shared/onedrivesourceconnectorconfiginput.md @@ -9,6 +9,6 @@ | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | | `path` | *str* | :heavy_check_mark: | N/A | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `tenant` | *str* | :heavy_check_mark: | N/A | -| `user_pname` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user_pname` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/outlooksourceconnectorconfig.md b/docs/models/shared/outlooksourceconnectorconfig.md index 06d6b2fd..999a87c5 100644 --- a/docs/models/shared/outlooksourceconnectorconfig.md +++ b/docs/models/shared/outlooksourceconnectorconfig.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `authority_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | -| `outlook_folders` | List[*str*] | :heavy_minus_sign: | N/A | | `recursive` | *bool* | :heavy_check_mark: | N/A | -| `tenant` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `user_email` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user_email` | *str* | :heavy_check_mark: | N/A | +| `authority_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `outlook_folders` | List[*str*] | :heavy_minus_sign: | N/A | +| `tenant` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/outlooksourceconnectorconfiginput.md b/docs/models/shared/outlooksourceconnectorconfiginput.md index 69df931d..c0811e19 100644 --- a/docs/models/shared/outlooksourceconnectorconfiginput.md +++ b/docs/models/shared/outlooksourceconnectorconfiginput.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `authority_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | +| `user_email` | *str* | :heavy_check_mark: | N/A | +| `authority_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `outlook_folders` | List[*str*] | :heavy_minus_sign: | N/A | | `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `tenant` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `user_email` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `tenant` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/partitionparameters.md b/docs/models/shared/partitionparameters.md index 75e52e5e..e7fd8e1a 100644 --- a/docs/models/shared/partitionparameters.md +++ b/docs/models/shared/partitionparameters.md @@ -5,13 +5,13 @@ | Field | Type | Required | Description | Example | | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | | `chunking_strategy` | *OptionalNullable[str]* | :heavy_minus_sign: | Use one of the supported strategies to chunk the returned elements after partitioning. When 'chunking_strategy' is not specified, no chunking is performed and any other chunking parameters provided are ignored. Supported strategies: 'basic', 'by_page', 'by_similarity', or 'by_title' | by_title | | `combine_under_n_chars` | *OptionalNullable[int]* | :heavy_minus_sign: | If chunking strategy is set, combine elements until a section reaches a length of n chars. Default: 500 | | | `content_type` | *OptionalNullable[str]* | :heavy_minus_sign: | A hint about the content type to use (such as text/markdown), when there are problems processing a specific file. This value is a MIME type in the format type/subtype. | | | `coordinates` | *Optional[bool]* | :heavy_minus_sign: | If `True`, return coordinates for each element extracted via OCR. Default: `False` | | | `encoding` | *OptionalNullable[str]* | :heavy_minus_sign: | The encoding method used to decode the text input. Default: utf-8 | | | `extract_image_block_types` | List[*str*] | :heavy_minus_sign: | The types of elements to extract, for use in extracting image blocks as base64 encoded data stored in metadata fields. | | -| `files` | [shared.Files](../../models/shared/files.md) | :heavy_check_mark: | The file to extract | {
"summary": "File to be partitioned",
"externalValue": "https://github.com/Unstructured-IO/unstructured/blob/98d3541909f64290b5efb65a226fc3ee8a7cc5ee/example-docs/layout-parser-paper.pdf"
} | | `gz_uncompressed_content_type` | *OptionalNullable[str]* | :heavy_minus_sign: | If file is gzipped, use this content type after unzipping. | | | `hi_res_model_name` | *OptionalNullable[str]* | :heavy_minus_sign: | The name of the inference model used when strategy is hi_res | | | `include_orig_elements` | *OptionalNullable[bool]* | :heavy_minus_sign: | When a chunking strategy is specified, each returned chunk will include the elements consolidated to form that chunk as `.metadata.orig_elements`. Default: true. | | diff --git a/docs/models/shared/pineconedestinationconnectorconfiginput.md b/docs/models/shared/pineconedestinationconnectorconfiginput.md index e8b97107..da151ab0 100644 --- a/docs/models/shared/pineconedestinationconnectorconfiginput.md +++ b/docs/models/shared/pineconedestinationconnectorconfiginput.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `api_key` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `index_name` | *str* | :heavy_check_mark: | N/A | -| `namespace` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `namespace` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/postgressourceconnectorconfig.md b/docs/models/shared/postgressourceconnectorconfig.md index 72352d59..d4a2fa1d 100644 --- a/docs/models/shared/postgressourceconnectorconfig.md +++ b/docs/models/shared/postgressourceconnectorconfig.md @@ -7,10 +7,10 @@ | ------------------ | ------------------ | ------------------ | ------------------ | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `database` | *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 | | `table_name` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/postgressourceconnectorconfiginput.md b/docs/models/shared/postgressourceconnectorconfiginput.md index 9d3f23f8..7ea82431 100644 --- a/docs/models/shared/postgressourceconnectorconfiginput.md +++ b/docs/models/shared/postgressourceconnectorconfiginput.md @@ -7,10 +7,10 @@ | ------------------ | ------------------ | ------------------ | ------------------ | | `batch_size` | *int* | :heavy_check_mark: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | -| `fields` | List[*str*] | :heavy_minus_sign: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | -| `id_column` | *Optional[str]* | :heavy_minus_sign: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | | `port` | *int* | :heavy_check_mark: | N/A | | `table_name` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `username` | *str* | :heavy_check_mark: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `id_column` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/qdrantclouddestinationconnectorconfiginput.md b/docs/models/shared/qdrantclouddestinationconnectorconfiginput.md index 8592257d..644b925b 100644 --- a/docs/models/shared/qdrantclouddestinationconnectorconfiginput.md +++ b/docs/models/shared/qdrantclouddestinationconnectorconfiginput.md @@ -6,6 +6,6 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `api_key` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `collection_name` | *str* | :heavy_check_mark: | N/A | -| `url` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `url` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/redisdestinationconnectorconfig.md b/docs/models/shared/redisdestinationconnectorconfig.md index c92a9be0..564938a5 100644 --- a/docs/models/shared/redisdestinationconnectorconfig.md +++ b/docs/models/shared/redisdestinationconnectorconfig.md @@ -8,8 +8,8 @@ | `batch_size` | *int* | :heavy_check_mark: | N/A | | `database` | *int* | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | -| `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `port` | *int* | :heavy_check_mark: | N/A | | `ssl` | *bool* | :heavy_check_mark: | N/A | +| `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `uri` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `username` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/redisdestinationconnectorconfiginput.md b/docs/models/shared/redisdestinationconnectorconfiginput.md index b3453407..1ab51bbe 100644 --- a/docs/models/shared/redisdestinationconnectorconfiginput.md +++ b/docs/models/shared/redisdestinationconnectorconfiginput.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `host` | *str* | :heavy_check_mark: | N/A | | `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | | `database` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `host` | *str* | :heavy_check_mark: | N/A | | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `port` | *Optional[int]* | :heavy_minus_sign: | N/A | | `ssl` | *Optional[bool]* | :heavy_minus_sign: | N/A | diff --git a/docs/models/shared/s3destinationconnectorconfig.md b/docs/models/shared/s3destinationconnectorconfig.md index 5e62f6b9..1d315ff1 100644 --- a/docs/models/shared/s3destinationconnectorconfig.md +++ b/docs/models/shared/s3destinationconnectorconfig.md @@ -6,8 +6,8 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `anonymous` | *bool* | :heavy_check_mark: | N/A | +| `remote_url` | *str* | :heavy_check_mark: | N/A | | `endpoint_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | | `secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/s3destinationconnectorconfiginput.md b/docs/models/shared/s3destinationconnectorconfiginput.md index 5a627e7f..56df5b74 100644 --- a/docs/models/shared/s3destinationconnectorconfiginput.md +++ b/docs/models/shared/s3destinationconnectorconfiginput.md @@ -5,9 +5,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `remote_url` | *str* | :heavy_check_mark: | N/A | | `anonymous` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `endpoint_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | | `secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/s3sourceconnectorconfig.md b/docs/models/shared/s3sourceconnectorconfig.md index 93172095..fb45649a 100644 --- a/docs/models/shared/s3sourceconnectorconfig.md +++ b/docs/models/shared/s3sourceconnectorconfig.md @@ -6,9 +6,9 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `anonymous` | *bool* | :heavy_check_mark: | N/A | -| `endpoint_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `recursive` | *bool* | :heavy_check_mark: | N/A | | `remote_url` | *str* | :heavy_check_mark: | N/A | +| `endpoint_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/s3sourceconnectorconfiginput.md b/docs/models/shared/s3sourceconnectorconfiginput.md index d231095c..9c0c37db 100644 --- a/docs/models/shared/s3sourceconnectorconfiginput.md +++ b/docs/models/shared/s3sourceconnectorconfiginput.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `remote_url` | *str* | :heavy_check_mark: | N/A | | `anonymous` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `endpoint_url` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `remote_url` | *str* | :heavy_check_mark: | N/A | | `secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/sharepointsourceconnectorconfig.md b/docs/models/shared/sharepointsourceconnectorconfig.md index 398302e5..493738f5 100644 --- a/docs/models/shared/sharepointsourceconnectorconfig.md +++ b/docs/models/shared/sharepointsourceconnectorconfig.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `authority_url` | *Optional[str]* | :heavy_minus_sign: | N/A | | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | -| `path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | | `recursive` | *bool* | :heavy_check_mark: | N/A | | `site` | *str* | :heavy_check_mark: | N/A | | `tenant` | *str* | :heavy_check_mark: | N/A | -| `user_pname` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user_pname` | *str* | :heavy_check_mark: | N/A | +| `authority_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/sharepointsourceconnectorconfiginput.md b/docs/models/shared/sharepointsourceconnectorconfiginput.md index 694854de..b67533c8 100644 --- a/docs/models/shared/sharepointsourceconnectorconfiginput.md +++ b/docs/models/shared/sharepointsourceconnectorconfiginput.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `authority_url` | *Optional[str]* | :heavy_minus_sign: | N/A | | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | -| `path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | | `site` | *str* | :heavy_check_mark: | N/A | | `tenant` | *str* | :heavy_check_mark: | N/A | -| `user_pname` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user_pname` | *str* | :heavy_check_mark: | N/A | +| `authority_url` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `path` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakedestinationconnectorconfig.md b/docs/models/shared/snowflakedestinationconnectorconfig.md index c2a06ae2..12b3b664 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfig.md +++ b/docs/models/shared/snowflakedestinationconnectorconfig.md @@ -6,13 +6,13 @@ | 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 | +| `role` | *str* | :heavy_check_mark: | N/A | +| `user` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | 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 +| `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakedestinationconnectorconfiginput.md b/docs/models/shared/snowflakedestinationconnectorconfiginput.md index 1948fc3d..2654c324 100644 --- a/docs/models/shared/snowflakedestinationconnectorconfiginput.md +++ b/docs/models/shared/snowflakedestinationconnectorconfiginput.md @@ -6,13 +6,13 @@ | 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 | +| `role` | *str* | :heavy_check_mark: | N/A | +| `user` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | 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 +| `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakesourceconnectorconfig.md b/docs/models/shared/snowflakesourceconnectorconfig.md index 0b996f6c..0dbcb803 100644 --- a/docs/models/shared/snowflakesourceconnectorconfig.md +++ b/docs/models/shared/snowflakesourceconnectorconfig.md @@ -6,14 +6,14 @@ | 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 | -| `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` | *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 | -| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakesourceconnectorconfiginput.md b/docs/models/shared/snowflakesourceconnectorconfiginput.md index 4c65a507..fb9e0406 100644 --- a/docs/models/shared/snowflakesourceconnectorconfiginput.md +++ b/docs/models/shared/snowflakesourceconnectorconfiginput.md @@ -6,14 +6,14 @@ | 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 | -| `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` | *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 | -| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `user` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/workflowinformation.md b/docs/models/shared/workflowinformation.md index d9fe6c77..cca78b57 100644 --- a/docs/models/shared/workflowinformation.md +++ b/docs/models/shared/workflowinformation.md @@ -9,10 +9,10 @@ | `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 | | -| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | | | `workflow_nodes` | List[[shared.WorkflowNode](../../models/shared/workflownode.md)] | :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 * * *"
}
]
} | +| `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | | | `workflow_type` | [OptionalNullable[shared.WorkflowType]](../../models/shared/workflowtype.md) | :heavy_minus_sign: | N/A | | \ No newline at end of file diff --git a/docs/models/shared/workflownode.md b/docs/models/shared/workflownode.md index 0fa04000..48004a47 100644 --- a/docs/models/shared/workflownode.md +++ b/docs/models/shared/workflownode.md @@ -5,8 +5,8 @@ | 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 +| `type` | *str* | :heavy_check_mark: | N/A | +| `id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/zendesksourceconnectorconfig.md b/docs/models/shared/zendesksourceconnectorconfig.md index 31b8fc13..c091ec93 100644 --- a/docs/models/shared/zendesksourceconnectorconfig.md +++ b/docs/models/shared/zendesksourceconnectorconfig.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `api_token` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `email` | *str* | :heavy_check_mark: | N/A | -| `item_type` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `subdomain` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `subdomain` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `item_type` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/zendesksourceconnectorconfiginput.md b/docs/models/shared/zendesksourceconnectorconfiginput.md index 9344d01a..ad236618 100644 --- a/docs/models/shared/zendesksourceconnectorconfiginput.md +++ b/docs/models/shared/zendesksourceconnectorconfiginput.md @@ -6,7 +6,7 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `api_token` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | | `email` | *str* | :heavy_check_mark: | N/A | -| `item_type` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `subdomain` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| `subdomain` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *OptionalNullable[int]* | :heavy_minus_sign: | N/A | +| `item_type` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/sdks/destinations/README.md b/docs/sdks/destinations/README.md index 2782b2c0..8cc1cbf1 100644 --- a/docs/sdks/destinations/README.md +++ b/docs/sdks/destinations/README.md @@ -71,14 +71,12 @@ 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": "", + "endpoint": "", + "index": "", + "key": "", }, "name": "", - "type": shared.DestinationConnectorType.AZURE_AI_SEARCH, + "type": shared.DestinationConnectorType.ASTRADB, }, }) @@ -289,16 +287,14 @@ with UnstructuredClient() as uc_client: res = uc_client.destinations.update_destination(request={ "update_destination_connector": { "config": { - "batch_size": 7372, - "database": "", - "host": "pushy-apparatus.net", - "password": "sxtPKvIMqbllzrd", - "port": 432315, - "table_name": "", - "username": "Dulce38", + "host": "acidic-patroller.com", + "batch_size": 100, + "database": 0, + "port": 6379, + "ssl": True, }, }, - "destination_id": "6f9ea9d2-7c4e-42ec-8b5a-6971bd7ec9d2", + "destination_id": "ddfee087-e67d-4bcc-afdb-6451a6e6f9ea", }) assert res.destination_connector_information is not None diff --git a/docs/sdks/jobs/README.md b/docs/sdks/jobs/README.md index 3fbd36e7..7134020b 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -67,7 +67,7 @@ with UnstructuredClient() as uc_client: res = uc_client.jobs.download_job_output(request={ "file_id": "", "job_id": "bddbb621-2124-4cc2-9fa7-c6cdc21dac44", - "node_id": "bddbb621-2124-4cc2-9fa7-c6cdc21dac44", + "node_id": "a949c7ba-31b1-4a2b-b7df-f144e8cc5768", }) assert res.any is not None diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index f4ad28d8..a52a98b7 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -71,13 +71,13 @@ with UnstructuredClient() as uc_client: res = uc_client.sources.create_source(request={ "create_source_connector": { "config": { - "authority_url": "https://login.microsoftonline.com", "client_cred": "", "client_id": "", - "recursive": False, "site": "", "tenant": "", "user_pname": "", + "authority_url": "https://login.microsoftonline.com", + "recursive": False, }, "name": "", "type": shared.SourceConnectorType.SNOWFLAKE, @@ -294,11 +294,11 @@ with UnstructuredClient() as uc_client: "batch_size": 69608, "database": "", "host": "pleasing-hammock.org", - "id_column": "id", "password": "Ns3L8K8WEZq1xvB", "port": 834056, "table_name": "", "username": "Justyn.Daugherty", + "id_column": "id", }, }, "source_id": "edec439e-8ef6-4c69-bc9e-3ba7a8418be7", diff --git a/gen.yaml b/gen.yaml index 0cd35235..c6fa7a08 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.35.0 + version: 0.35.2 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pylintrc b/pylintrc index e8cd3e85..f2385e87 100644 --- a/pylintrc +++ b/pylintrc @@ -454,11 +454,7 @@ disable=raw-checker-failed, bare-except, broad-exception-caught, fixme, - relative-beyond-top-level, - consider-using-with, - wildcard-import, - unused-wildcard-import, - too-many-return-statements + relative-beyond-top-level # Enable the message, report, category or checker with the given id(s). You can # either give multiple identifier separated by comma (,) or put this option @@ -659,4 +655,4 @@ init-import=no # List of qualified module names which can have objects that can redefine # builtins. -redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io \ No newline at end of file +redefining-builtins-modules=six.moves,past.builtins,future.builtins,builtins,io diff --git a/pyproject.toml b/pyproject.toml index 6b014a9a..bad1e2aa 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,18 +1,21 @@ [project] name = "unstructured-client" -version = "0.35.0" +version = "0.35.2" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" -requires-python = ">=3.9.2" +requires-python = ">=3.9" dependencies = [ "aiofiles >=24.1.0", "cryptography >=3.1", + "eval-type-backport >=0.2.0", "httpx >=0.27.0", "nest-asyncio >=1.6.0", - "pydantic >=2.11.2", + "pydantic >=2.10.3", "pypdf >=4.0", + "python-dateutil >=2.8.2", "requests-toolbelt >=1.0.0", + "typing-inspect >=0.9.0", ] [tool.poetry] @@ -32,7 +35,7 @@ in-project = true [tool.poetry.group.dev.dependencies] deepdiff = ">=6.0" freezegun = ">=1.5.1" -mypy = "==1.15.0" +mypy = "==1.14.1" pylint = "==3.2.3" pytest = ">=8.3.3" pytest-asyncio = ">=0.24.0" @@ -40,6 +43,7 @@ pytest-httpx = ">=0.35.0" pytest-mock = ">=3.14.0" pytest-xdist = "^3.5.0" types-aiofiles = ">=24.1.0" +types-python-dateutil = "^2.9.0.20240316" unstructured = ">= 0.17.2" uvloop = ">=0.20.0" diff --git a/scripts/prepare_readme.py b/scripts/prepare-readme.py similarity index 84% rename from scripts/prepare_readme.py rename to scripts/prepare-readme.py index 52e872a1..b5bf03ff 100644 --- a/scripts/prepare_readme.py +++ b/scripts/prepare-readme.py @@ -4,7 +4,7 @@ import shutil try: - with open("README.md", "r", encoding="utf-8") as rh: + with open("README.md", "r") as rh: readme_contents = rh.read() GITHUB_URL = "https://github.com/Unstructured-IO/unstructured-python-client.git" GITHUB_URL = ( @@ -21,13 +21,13 @@ readme_contents, ) - with open("README-PYPI.md", "w", encoding="utf-8") as wh: + with open("README-PYPI.md", "w") as wh: wh.write(readme_contents) except Exception as e: try: print("Failed to rewrite README.md to README-PYPI.md, copying original instead") print(e) shutil.copyfile("README.md", "README-PYPI.md") - except Exception as ie: + except Exception as e: print("Failed to copy README.md to README-PYPI.md") - print(ie) + print(e) diff --git a/scripts/publish.sh b/scripts/publish.sh index f2f2cf2c..ab45b1f9 100755 --- a/scripts/publish.sh +++ b/scripts/publish.sh @@ -2,6 +2,6 @@ export POETRY_PYPI_TOKEN_PYPI=${PYPI_TOKEN} -poetry run python scripts/prepare_readme.py +poetry run python scripts/prepare-readme.py poetry publish --build --skip-existing diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index 44778d15..e2598590 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.35.0" +__version__: str = "0.35.2" __openapi_doc_version__: str = "1.1.13" -__gen_version__: str = "2.599.0" -__user_agent__: str = "speakeasy-sdk/python 0.35.0 2.599.0 1.1.13 unstructured-client" +__gen_version__: str = "2.539.1" +__user_agent__: str = "speakeasy-sdk/python 0.35.2 2.539.1 1.1.13 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/destinations.py b/src/unstructured_client/destinations.py index e8cdedf4..6b38f480 100644 --- a/src/unstructured_client/destinations.py +++ b/src/unstructured_client/destinations.py @@ -1,5 +1,5 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" -from unstructured_client._hooks.custom.clean_server_url_hook import clean_server_url + from .basesdk import BaseSDK from typing import Any, List, Mapping, Optional, Union, cast from unstructured_client import utils @@ -7,11 +7,8 @@ from unstructured_client.models import errors, operations, shared from unstructured_client.types import BaseModel, OptionalNullable, UNSET -class Destinations(BaseSDK): - def get_default_server_url(self) -> str: - client_url, *_ = self.sdk_configuration.get_server_details() - return clean_server_url(client_url) +class Destinations(BaseSDK): def create_connection_check_destinations( self, *, @@ -34,11 +31,18 @@ def create_connection_check_destinations( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.CREATE_CONNECTION_CHECK_DESTINATIONS_SERVERS[ + operations.CREATE_CONNECTION_CHECK_DESTINATIONS_SERVER_PLATFORM_API + ] + if not isinstance(request, BaseModel): request = utils.unmarshal( request, operations.CreateConnectionCheckDestinationsRequest @@ -142,11 +146,17 @@ async def create_connection_check_destinations_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.CREATE_CONNECTION_CHECK_DESTINATIONS_SERVERS[ + operations.CREATE_CONNECTION_CHECK_DESTINATIONS_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -251,12 +261,18 @@ def create_destination( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() - + 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.CREATE_DESTINATION_SERVERS[ + operations.CREATE_DESTINATION_SERVER_PLATFORM_API + ] + if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateDestinationRequest) request = cast(operations.CreateDestinationRequest, request) @@ -365,11 +381,17 @@ async def create_destination_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.CREATE_DESTINATION_SERVERS[ + operations.CREATE_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.CreateDestinationRequest) @@ -479,12 +501,17 @@ def delete_destination( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.DELETE_DESTINATION_SERVERS[ + operations.DELETE_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteDestinationRequest) @@ -585,11 +612,17 @@ async def delete_destination_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.DELETE_DESTINATION_SERVERS[ + operations.DELETE_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.DeleteDestinationRequest) @@ -690,12 +723,17 @@ def get_connection_check_destinations( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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_DESTINATIONS_SERVERS[ + operations.GET_CONNECTION_CHECK_DESTINATIONS_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -800,11 +838,17 @@ async def get_connection_check_destinations_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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_DESTINATIONS_SERVERS[ + operations.GET_CONNECTION_CHECK_DESTINATIONS_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal( @@ -908,11 +952,17 @@ def get_destination( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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_SERVERS[ + operations.GET_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetDestinationRequest) @@ -1014,11 +1064,17 @@ async def get_destination_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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_SERVERS[ + operations.GET_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.GetDestinationRequest) @@ -1121,11 +1177,18 @@ def list_destinations( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.LIST_DESTINATIONS_SERVERS[ + operations.LIST_DESTINATIONS_SERVER_PLATFORM_API + ] + if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListDestinationsRequest) request = cast(operations.ListDestinationsRequest, request) @@ -1228,11 +1291,18 @@ async def list_destinations_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.LIST_DESTINATIONS_SERVERS[ + operations.LIST_DESTINATIONS_SERVER_PLATFORM_API + ] + if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.ListDestinationsRequest) request = cast(operations.ListDestinationsRequest, request) @@ -1335,11 +1405,17 @@ def update_destination( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.UPDATE_DESTINATION_SERVERS[ + operations.UPDATE_DESTINATION_SERVER_PLATFORM_API + ] if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateDestinationRequest) @@ -1449,11 +1525,18 @@ async def update_destination_async( :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 = clean_server_url(server_url) if server_url is not None else self.get_default_server_url() + 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.UPDATE_DESTINATION_SERVERS[ + operations.UPDATE_DESTINATION_SERVER_PLATFORM_API + ] + if not isinstance(request, BaseModel): request = utils.unmarshal(request, operations.UpdateDestinationRequest) request = cast(operations.UpdateDestinationRequest, request) diff --git a/src/unstructured_client/httpclient.py b/src/unstructured_client/httpclient.py index ad528d8d..1e426352 100644 --- a/src/unstructured_client/httpclient.py +++ b/src/unstructured_client/httpclient.py @@ -2,6 +2,7 @@ # pyright: reportReturnType = false import asyncio +from concurrent.futures import ThreadPoolExecutor from typing_extensions import Protocol, runtime_checkable import httpx from typing import Any, Optional, Union @@ -115,42 +116,21 @@ def close_clients( pass if async_client is not None and not async_client_supplied: - # First, try the simplest approach - use asyncio.run() - # This works when we're not in an async context + is_async = False try: - asyncio.run(async_client.aclose()) - except RuntimeError as e: - # If we get "RuntimeError: This event loop is already running", - # it means we're in an async context - if "already running" in str(e): - try: - # We're in an async context, so get the running loop - loop = asyncio.get_running_loop() - # Create a task but don't wait for it - loop.create_task(async_client.aclose()) - except Exception: - # If we can't get the loop or create a task, just ignore - # The GC will eventually clean up the resources - pass - # If we get "RuntimeError: There is no current event loop in thread", - # we're not in an async context, but asyncio.run() failed for some reason - # In this case, we can try to create a new event loop explicitly - elif "no current event loop" in str(e): - try: - # Create a new event loop and run the coroutine - loop = asyncio.new_event_loop() - asyncio.set_event_loop(loop) - try: - loop.run_until_complete(async_client.aclose()) - finally: - loop.close() - asyncio.set_event_loop(None) - except Exception: - # If this also fails, just ignore - pass - # For any other RuntimeError, just ignore + asyncio.get_running_loop() + is_async = True + except RuntimeError: + pass + + try: + # If this function is called in an async loop then start another + # loop in a separate thread to close the async http client. + if is_async: + with ThreadPoolExecutor(max_workers=1) as executor: + future = executor.submit(asyncio.run, async_client.aclose()) + future.result() else: - pass + asyncio.run(async_client.aclose()) except Exception: - # For any other exception, just ignore pass diff --git a/src/unstructured_client/models/__init__.py b/src/unstructured_client/models/__init__.py deleted file mode 100644 index cc53976c..00000000 --- a/src/unstructured_client/models/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -# package - diff --git a/src/unstructured_client/models/operations/cancel_job.py b/src/unstructured_client/models/operations/cancel_job.py index 9ebe33b4..4b3afc89 100644 --- a/src/unstructured_client/models/operations/cancel_job.py +++ b/src/unstructured_client/models/operations/cancel_job.py @@ -49,7 +49,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/create_connection_check_destinations.py b/src/unstructured_client/models/operations/create_connection_check_destinations.py index e2366bb6..84629c22 100644 --- a/src/unstructured_client/models/operations/create_connection_check_destinations.py +++ b/src/unstructured_client/models/operations/create_connection_check_destinations.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/create_connection_check_sources.py b/src/unstructured_client/models/operations/create_connection_check_sources.py index a7ab4713..00bbead5 100644 --- a/src/unstructured_client/models/operations/create_connection_check_sources.py +++ b/src/unstructured_client/models/operations/create_connection_check_sources.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/create_destination.py b/src/unstructured_client/models/operations/create_destination.py index 7f2b8589..605d828b 100644 --- a/src/unstructured_client/models/operations/create_destination.py +++ b/src/unstructured_client/models/operations/create_destination.py @@ -56,7 +56,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/create_source.py b/src/unstructured_client/models/operations/create_source.py index bceca31f..ececa828 100644 --- a/src/unstructured_client/models/operations/create_source.py +++ b/src/unstructured_client/models/operations/create_source.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/create_workflow.py b/src/unstructured_client/models/operations/create_workflow.py index d3fc1f49..a645e851 100644 --- a/src/unstructured_client/models/operations/create_workflow.py +++ b/src/unstructured_client/models/operations/create_workflow.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/delete_destination.py b/src/unstructured_client/models/operations/delete_destination.py index 0dca87ea..b26d57d1 100644 --- a/src/unstructured_client/models/operations/delete_destination.py +++ b/src/unstructured_client/models/operations/delete_destination.py @@ -49,7 +49,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/delete_source.py b/src/unstructured_client/models/operations/delete_source.py index 7a66281d..80ad6ac2 100644 --- a/src/unstructured_client/models/operations/delete_source.py +++ b/src/unstructured_client/models/operations/delete_source.py @@ -49,7 +49,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/delete_workflow.py b/src/unstructured_client/models/operations/delete_workflow.py index 1894134f..693e313e 100644 --- a/src/unstructured_client/models/operations/delete_workflow.py +++ b/src/unstructured_client/models/operations/delete_workflow.py @@ -49,7 +49,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/download_job_output.py b/src/unstructured_client/models/operations/download_job_output.py index 7d7c941b..937343eb 100644 --- a/src/unstructured_client/models/operations/download_job_output.py +++ b/src/unstructured_client/models/operations/download_job_output.py @@ -68,7 +68,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_connection_check_destinations.py b/src/unstructured_client/models/operations/get_connection_check_destinations.py index e80a2841..7eff1949 100644 --- a/src/unstructured_client/models/operations/get_connection_check_destinations.py +++ b/src/unstructured_client/models/operations/get_connection_check_destinations.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_connection_check_sources.py b/src/unstructured_client/models/operations/get_connection_check_sources.py index 55b9eb6a..326c5efd 100644 --- a/src/unstructured_client/models/operations/get_connection_check_sources.py +++ b/src/unstructured_client/models/operations/get_connection_check_sources.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_destination.py b/src/unstructured_client/models/operations/get_destination.py index fb7c1f65..cff521f2 100644 --- a/src/unstructured_client/models/operations/get_destination.py +++ b/src/unstructured_client/models/operations/get_destination.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_job.py b/src/unstructured_client/models/operations/get_job.py index 96c4dcb1..03dd278d 100644 --- a/src/unstructured_client/models/operations/get_job.py +++ b/src/unstructured_client/models/operations/get_job.py @@ -50,7 +50,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_source.py b/src/unstructured_client/models/operations/get_source.py index 746758fa..aefb9316 100644 --- a/src/unstructured_client/models/operations/get_source.py +++ b/src/unstructured_client/models/operations/get_source.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/get_workflow.py b/src/unstructured_client/models/operations/get_workflow.py index 6df4abb8..6563251f 100644 --- a/src/unstructured_client/models/operations/get_workflow.py +++ b/src/unstructured_client/models/operations/get_workflow.py @@ -52,7 +52,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/list_destinations.py b/src/unstructured_client/models/operations/list_destinations.py index 7244e1c7..693c4d0b 100644 --- a/src/unstructured_client/models/operations/list_destinations.py +++ b/src/unstructured_client/models/operations/list_destinations.py @@ -56,7 +56,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/list_jobs.py b/src/unstructured_client/models/operations/list_jobs.py index 042d4f98..ababd3f0 100644 --- a/src/unstructured_client/models/operations/list_jobs.py +++ b/src/unstructured_client/models/operations/list_jobs.py @@ -57,7 +57,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/list_sources.py b/src/unstructured_client/models/operations/list_sources.py index d3173496..4c53a5dd 100644 --- a/src/unstructured_client/models/operations/list_sources.py +++ b/src/unstructured_client/models/operations/list_sources.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/list_workflows.py b/src/unstructured_client/models/operations/list_workflows.py index 8c8975f3..051932df 100644 --- a/src/unstructured_client/models/operations/list_workflows.py +++ b/src/unstructured_client/models/operations/list_workflows.py @@ -76,7 +76,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/partition.py b/src/unstructured_client/models/operations/partition.py index 11ddfd70..250d1c57 100644 --- a/src/unstructured_client/models/operations/partition.py +++ b/src/unstructured_client/models/operations/partition.py @@ -57,7 +57,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/run_workflow.py b/src/unstructured_client/models/operations/run_workflow.py index ad6969ff..c615d0d1 100644 --- a/src/unstructured_client/models/operations/run_workflow.py +++ b/src/unstructured_client/models/operations/run_workflow.py @@ -64,7 +64,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/update_destination.py b/src/unstructured_client/models/operations/update_destination.py index 08acbfb0..7b2c0f99 100644 --- a/src/unstructured_client/models/operations/update_destination.py +++ b/src/unstructured_client/models/operations/update_destination.py @@ -66,7 +66,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/update_source.py b/src/unstructured_client/models/operations/update_source.py index 1ce7d5e2..bdd9944d 100644 --- a/src/unstructured_client/models/operations/update_source.py +++ b/src/unstructured_client/models/operations/update_source.py @@ -64,7 +64,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/operations/update_workflow.py b/src/unstructured_client/models/operations/update_workflow.py index 88003b5b..ba614fb9 100644 --- a/src/unstructured_client/models/operations/update_workflow.py +++ b/src/unstructured_client/models/operations/update_workflow.py @@ -64,7 +64,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/astradbconnectorconfig.py b/src/unstructured_client/models/shared/astradbconnectorconfig.py index 64c3f17c..d1a08fb4 100644 --- a/src/unstructured_client/models/shared/astradbconnectorconfig.py +++ b/src/unstructured_client/models/shared/astradbconnectorconfig.py @@ -41,7 +41,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/astradbconnectorconfiginput.py b/src/unstructured_client/models/shared/astradbconnectorconfiginput.py index a22dfe29..39eee29d 100644 --- a/src/unstructured_client/models/shared/astradbconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/astradbconnectorconfiginput.py @@ -45,7 +45,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/azuresourceconnectorconfig.py b/src/unstructured_client/models/shared/azuresourceconnectorconfig.py index adbee500..811b1acc 100644 --- a/src/unstructured_client/models/shared/azuresourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/azuresourceconnectorconfig.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py b/src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py index 70fa5e65..30f31bf7 100644 --- a/src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py @@ -56,7 +56,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/body_run_workflow.py b/src/unstructured_client/models/shared/body_run_workflow.py index 66f7f51b..9afa031a 100644 --- a/src/unstructured_client/models/shared/body_run_workflow.py +++ b/src/unstructured_client/models/shared/body_run_workflow.py @@ -59,7 +59,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py b/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py index b6d94277..58fbdd20 100644 --- a/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py @@ -59,14 +59,14 @@ def serialize_model(self, handler): "password", "token", ] - nullable_fields = ["api_token", "password", "spaces", "token"] + nullable_fields = ["spaces", "api_token", "password", "token"] null_default_fields = [] serialized = handler(self) m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py index 75b4b63e..882ff982 100644 --- a/src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py @@ -70,7 +70,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py b/src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py index 32150527..bfd2f7cd 100644 --- a/src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py index 27999cb1..2d4d9adf 100644 --- a/src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/couchbasedestinationconnectorconfiginput.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py b/src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py index 5a6d559a..e202f8b5 100644 --- a/src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/couchbasesourceconnectorconfig.py @@ -50,7 +50,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py index 58d9451b..f36e379c 100644 --- a/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py @@ -50,7 +50,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/createworkflow.py b/src/unstructured_client/models/shared/createworkflow.py index 782aa0b1..20532a65 100644 --- a/src/unstructured_client/models/shared/createworkflow.py +++ b/src/unstructured_client/models/shared/createworkflow.py @@ -77,7 +77,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/dagnodeconnectioncheck.py b/src/unstructured_client/models/shared/dagnodeconnectioncheck.py index fade6b96..a47684e3 100644 --- a/src/unstructured_client/models/shared/dagnodeconnectioncheck.py +++ b/src/unstructured_client/models/shared/dagnodeconnectioncheck.py @@ -43,7 +43,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py index a9ed8222..5c81f293 100644 --- a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py @@ -75,7 +75,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py index 5ab64381..9fda9438 100644 --- a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py @@ -75,7 +75,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index e913f9c0..ddaa6cbe 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -187,7 +187,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/googledrivesourceconnectorconfig.py b/src/unstructured_client/models/shared/googledrivesourceconnectorconfig.py index b8ab1385..9b888784 100644 --- a/src/unstructured_client/models/shared/googledrivesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/googledrivesourceconnectorconfig.py @@ -39,7 +39,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/googledrivesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/googledrivesourceconnectorconfiginput.py index 3d5c27dd..58b8f095 100644 --- a/src/unstructured_client/models/shared/googledrivesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/googledrivesourceconnectorconfiginput.py @@ -39,7 +39,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/jirasourceconnectorconfig.py b/src/unstructured_client/models/shared/jirasourceconnectorconfig.py index 5f683100..c2057d89 100644 --- a/src/unstructured_client/models/shared/jirasourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/jirasourceconnectorconfig.py @@ -75,7 +75,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py b/src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py index 84e19da2..1a2c1649 100644 --- a/src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py @@ -75,7 +75,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/jobinformation.py b/src/unstructured_client/models/shared/jobinformation.py index ee21007f..6e0b7ba2 100644 --- a/src/unstructured_client/models/shared/jobinformation.py +++ b/src/unstructured_client/models/shared/jobinformation.py @@ -58,7 +58,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py index 45a2f927..ad0e937a 100644 --- a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py index fa10cfb5..bc9b1a48 100644 --- a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py @@ -48,7 +48,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py b/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py index 4d975609..829e70cb 100644 --- a/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py index 599120d9..3eddd5d5 100644 --- a/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py @@ -48,7 +48,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/milvusdestinationconnectorconfig.py b/src/unstructured_client/models/shared/milvusdestinationconnectorconfig.py index ce2b0464..7f5d51c9 100644 --- a/src/unstructured_client/models/shared/milvusdestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/milvusdestinationconnectorconfig.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/milvusdestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/milvusdestinationconnectorconfiginput.py index b70e87dd..ebb77945 100644 --- a/src/unstructured_client/models/shared/milvusdestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/milvusdestinationconnectorconfiginput.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/outlooksourceconnectorconfig.py b/src/unstructured_client/models/shared/outlooksourceconnectorconfig.py index 11daa6d1..a65c5598 100644 --- a/src/unstructured_client/models/shared/outlooksourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/outlooksourceconnectorconfig.py @@ -48,7 +48,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py b/src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py index 2985423c..56cf211b 100644 --- a/src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/outlooksourceconnectorconfiginput.py @@ -48,7 +48,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/partition_parameters.py b/src/unstructured_client/models/shared/partition_parameters.py index f6bc59d3..f3e4d82d 100644 --- a/src/unstructured_client/models/shared/partition_parameters.py +++ b/src/unstructured_client/models/shared/partition_parameters.py @@ -450,7 +450,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/postgressourceconnectorconfig.py b/src/unstructured_client/models/shared/postgressourceconnectorconfig.py index beec5558..67bd4b39 100644 --- a/src/unstructured_client/models/shared/postgressourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/postgressourceconnectorconfig.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py b/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py index 54e8af3a..e093fb63 100644 --- a/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py @@ -54,7 +54,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/redisdestinationconnectorconfig.py b/src/unstructured_client/models/shared/redisdestinationconnectorconfig.py index 3ed5bd7c..0079acde 100644 --- a/src/unstructured_client/models/shared/redisdestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/redisdestinationconnectorconfig.py @@ -50,7 +50,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/redisdestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/redisdestinationconnectorconfiginput.py index a5aa50b5..5c92fd52 100644 --- a/src/unstructured_client/models/shared/redisdestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/redisdestinationconnectorconfiginput.py @@ -59,7 +59,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/s3destinationconnectorconfig.py b/src/unstructured_client/models/shared/s3destinationconnectorconfig.py index a9fe8a46..9fb23642 100644 --- a/src/unstructured_client/models/shared/s3destinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/s3destinationconnectorconfig.py @@ -44,7 +44,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/s3destinationconnectorconfiginput.py b/src/unstructured_client/models/shared/s3destinationconnectorconfiginput.py index dbdbb364..6f39a9fb 100644 --- a/src/unstructured_client/models/shared/s3destinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/s3destinationconnectorconfiginput.py @@ -45,7 +45,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/s3sourceconnectorconfig.py b/src/unstructured_client/models/shared/s3sourceconnectorconfig.py index 552f73fd..11b70658 100644 --- a/src/unstructured_client/models/shared/s3sourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/s3sourceconnectorconfig.py @@ -47,7 +47,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/s3sourceconnectorconfiginput.py b/src/unstructured_client/models/shared/s3sourceconnectorconfiginput.py index 7d796a91..c3150b07 100644 --- a/src/unstructured_client/models/shared/s3sourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/s3sourceconnectorconfiginput.py @@ -55,7 +55,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py b/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py index d56f5e57..1ec70918 100644 --- a/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py @@ -51,7 +51,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py index cfcadaf1..c9ce9003 100644 --- a/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py @@ -51,7 +51,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py index 47e74cd5..a7262d19 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfig.py @@ -67,7 +67,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py index 3c9040c9..bc5b7413 100644 --- a/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakedestinationconnectorconfiginput.py @@ -67,7 +67,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py index 0fafc35f..d409bcf0 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py @@ -64,7 +64,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py index 792d8462..7b7c1e97 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py @@ -64,7 +64,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/sourceconnectorinformation.py b/src/unstructured_client/models/shared/sourceconnectorinformation.py index b15ef981..5b5e8637 100644 --- a/src/unstructured_client/models/shared/sourceconnectorinformation.py +++ b/src/unstructured_client/models/shared/sourceconnectorinformation.py @@ -181,7 +181,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/updateworkflow.py b/src/unstructured_client/models/shared/updateworkflow.py index 1198f32d..e4a56642 100644 --- a/src/unstructured_client/models/shared/updateworkflow.py +++ b/src/unstructured_client/models/shared/updateworkflow.py @@ -81,7 +81,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/weaviatedestinationconnectorconfig.py b/src/unstructured_client/models/shared/weaviatedestinationconnectorconfig.py index 0058b6e7..3ec720e7 100644 --- a/src/unstructured_client/models/shared/weaviatedestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/weaviatedestinationconnectorconfig.py @@ -35,7 +35,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/weaviatedestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/weaviatedestinationconnectorconfiginput.py index 1f61f6dd..11ba52b0 100644 --- a/src/unstructured_client/models/shared/weaviatedestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/weaviatedestinationconnectorconfiginput.py @@ -35,7 +35,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/workflowinformation.py b/src/unstructured_client/models/shared/workflowinformation.py index 599ce3f2..abf8455f 100644 --- a/src/unstructured_client/models/shared/workflowinformation.py +++ b/src/unstructured_client/models/shared/workflowinformation.py @@ -65,7 +65,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/workflownode.py b/src/unstructured_client/models/shared/workflownode.py index 86ca02a5..7aea985a 100644 --- a/src/unstructured_client/models/shared/workflownode.py +++ b/src/unstructured_client/models/shared/workflownode.py @@ -42,7 +42,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py b/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py index f067ff5a..5b0419b0 100644 --- a/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py @@ -41,7 +41,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py b/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py index a7ac9860..57124521 100644 --- a/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py @@ -41,7 +41,7 @@ def serialize_model(self, handler): m = {} - for n, f in type(self).model_fields.items(): + for n, f in self.model_fields.items(): k = f.alias or n val = serialized.get(k) serialized.pop(k, None) diff --git a/src/unstructured_client/types/basemodel.py b/src/unstructured_client/types/basemodel.py index 231c2e37..a6187efa 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 +from typing import TYPE_CHECKING, Literal, Optional, TypeVar, Union, NewType 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: TypeAlias = int -UnrecognizedStr: TypeAlias = str +UnrecognizedInt = NewType("UnrecognizedInt", int) +UnrecognizedStr = NewType("UnrecognizedStr", str) diff --git a/src/unstructured_client/utils/__init__.py b/src/unstructured_client/utils/__init__.py index f2950eed..3cded8fe 100644 --- a/src/unstructured_client/utils/__init__.py +++ b/src/unstructured_client/utils/__init__.py @@ -1,7 +1,6 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from .annotations import get_discriminator -from .datetimes import parse_datetime from .enums import OpenEnumMeta from .headers import get_headers, get_response_headers from .metadata import ( diff --git a/src/unstructured_client/utils/datetimes.py b/src/unstructured_client/utils/datetimes.py deleted file mode 100644 index a6c52cd6..00000000 --- a/src/unstructured_client/utils/datetimes.py +++ /dev/null @@ -1,23 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from datetime import datetime -import sys - - -def parse_datetime(datetime_string: str) -> datetime: - """ - Convert a RFC 3339 / ISO 8601 formatted string into a datetime object. - Python versions 3.11 and later support parsing RFC 3339 directly with - datetime.fromisoformat(), but for earlier versions, this function - encapsulates the necessary extra logic. - """ - # Python 3.11 and later can parse RFC 3339 directly - if sys.version_info >= (3, 11): - return datetime.fromisoformat(datetime_string) - - # For Python 3.10 and earlier, a common ValueError is trailing 'Z' suffix, - # so fix that upfront. - if datetime_string.endswith("Z"): - datetime_string = datetime_string[:-1] + "+00:00" - - return datetime.fromisoformat(datetime_string) diff --git a/src/unstructured_client/utils/enums.py b/src/unstructured_client/utils/enums.py index c3bc13cf..c650b10c 100644 --- a/src/unstructured_client/utils/enums.py +++ b/src/unstructured_client/utils/enums.py @@ -1,74 +1,34 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" import enum -import sys -class OpenEnumMeta(enum.EnumMeta): - # The __call__ method `boundary` kwarg was added in 3.11 and must be present - # for pyright. Refer also: https://github.com/pylint-dev/pylint/issues/9622 - # pylint: disable=unexpected-keyword-arg - # The __call__ method `values` varg must be named for pyright. - # pylint: disable=keyword-arg-before-vararg - - if sys.version_info >= (3, 11): - def __call__( - cls, value, names=None, *values, module=None, qualname=None, type=None, start=1, boundary=None - ): - # The `type` kwarg also happens to be a built-in that pylint flags as - # redeclared. Safe to ignore this lint rule with this scope. - # pylint: disable=redefined-builtin - if names is not None: - return super().__call__( - value, - names=names, - *values, - module=module, - qualname=qualname, - type=type, - start=start, - boundary=boundary, - ) - - try: - return super().__call__( - value, - names=names, # pyright: ignore[reportArgumentType] - *values, - module=module, - qualname=qualname, - type=type, - start=start, - boundary=boundary, - ) - except ValueError: - return value - else: - def __call__( - cls, value, names=None, *, module=None, qualname=None, type=None, start=1 - ): - # The `type` kwarg also happens to be a built-in that pylint flags as - # redeclared. Safe to ignore this lint rule with this scope. - # pylint: disable=redefined-builtin +class OpenEnumMeta(enum.EnumMeta): + def __call__( + cls, value, names=None, *, module=None, qualname=None, type=None, start=1 + ): + # The `type` kwarg also happens to be a built-in that pylint flags as + # redeclared. Safe to ignore this lint rule with this scope. + # pylint: disable=redefined-builtin - if names is not None: - return super().__call__( - value, - names=names, - module=module, - qualname=qualname, - type=type, - start=start, - ) + if names is not None: + return super().__call__( + value, + names=names, + module=module, + qualname=qualname, + type=type, + start=start, + ) - try: - return super().__call__( - value, - names=names, # pyright: ignore[reportArgumentType] - module=module, - qualname=qualname, - type=type, - start=start, - ) - except ValueError: - return value + try: + return super().__call__( + value, + names=names, # pyright: ignore[reportArgumentType] + module=module, + qualname=qualname, + type=type, + start=start, + ) + except ValueError: + return value diff --git a/src/unstructured_client/utils/serializers.py b/src/unstructured_client/utils/serializers.py index 76e44d71..c5eb3659 100644 --- a/src/unstructured_client/utils/serializers.py +++ b/src/unstructured_client/utils/serializers.py @@ -1,24 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from decimal import Decimal -import functools import json -import typing -from typing import Any, Dict, List, Tuple, Union, get_args -import typing_extensions -from typing_extensions import get_origin - +from typing import Any, Dict, List, Union, get_args import httpx +from typing_extensions import get_origin from pydantic import ConfigDict, create_model from pydantic_core import from_json +from typing_inspect import is_optional_type from ..types.basemodel import BaseModel, Nullable, OptionalNullable, Unset def serialize_decimal(as_str: bool): def serialize(d): - # Optional[T] is a Union[T, None] - if is_union(type(d)) and type(None) in get_args(type(d)) and d is None: + if is_optional_type(type(d)) and d is None: return None if isinstance(d, Unset): return d @@ -46,8 +42,7 @@ def validate_decimal(d): def serialize_float(as_str: bool): def serialize(f): - # Optional[T] is a Union[T, None] - if is_union(type(f)) and type(None) in get_args(type(f)) and f is None: + if is_optional_type(type(f)) and f is None: return None if isinstance(f, Unset): return f @@ -75,8 +70,7 @@ def validate_float(f): def serialize_int(as_str: bool): def serialize(i): - # Optional[T] is a Union[T, None] - if is_union(type(i)) and type(None) in get_args(type(i)) and i is None: + if is_optional_type(type(i)) and i is None: return None if isinstance(i, Unset): return i @@ -124,8 +118,7 @@ def validate(e): def validate_const(v): def validate(c): - # Optional[T] is a Union[T, None] - if is_union(type(c)) and type(None) in get_args(type(c)) and c is None: + if is_optional_type(type(c)) and c is None: return None if v != c: @@ -170,7 +163,7 @@ def marshal_json(val, typ): if len(d) == 0: return "" - return json.dumps(d[next(iter(d))], separators=(",", ":")) + return json.dumps(d[next(iter(d))], separators=(",", ":"), sort_keys=True) def is_nullable(field): @@ -188,13 +181,6 @@ def is_nullable(field): return False -def is_union(obj: object) -> bool: - """ - Returns True if the given object is a typing.Union or typing_extensions.Union. - """ - return any(obj is typing_obj for typing_obj in _get_typing_objects_by_name_of("Union")) - - def stream_to_text(stream: httpx.Response) -> str: return "".join(stream.iter_text()) @@ -227,22 +213,3 @@ def _contains_pydantic_model(data: Any) -> bool: return any(_contains_pydantic_model(value) for value in data.values()) return False - - -@functools.cache -def _get_typing_objects_by_name_of(name: str) -> Tuple[Any, ...]: - """ - Get typing objects by name from typing and typing_extensions. - Reference: https://typing-extensions.readthedocs.io/en/latest/#runtime-use-of-types - """ - result = tuple( - getattr(module, name) - for module in (typing, typing_extensions) - if hasattr(module, name) - ) - if not result: - raise ValueError( - f"Neither typing nor typing_extensions has an object called {name!r}" - ) - return result -