From 07461505d1b1d87752da69153aa32a03631212e0 Mon Sep 17 00:00:00 2001 From: speakeasybot Date: Wed, 26 Mar 2025 17:04:26 +0000 Subject: [PATCH 1/2] ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.523.2 --- .speakeasy/gen.lock | 53 +++++++------ .speakeasy/workflow.lock | 14 ++-- RELEASES.md | 12 ++- codeSamples.yaml | 8 +- ...request.md => downloadjoboutputrequest.md} | 2 +- ...sponse.md => downloadjoboutputresponse.md} | 2 +- docs/models/shared/config.md | 10 ++- .../shared/confluencesourceconnectorconfig.md | 2 +- .../couchbasesourceconnectorconfiginput.md | 2 +- .../shared/createsourceconnectorconfig.md | 22 ++++-- ...databricksvdtdestinationconnectorconfig.md | 7 +- ...ricksvdtdestinationconnectorconfiginput.md | 4 + .../databricksvolumesconnectorconfig.md | 4 +- .../databricksvolumesconnectorconfiginput.md | 4 +- .../databricksvolumessourceconnectorconfig.md | 14 ---- ...bricksvolumessourceconnectorconfiginput.md | 14 ---- .../destinationconnectorinformationconfig.md | 10 ++- .../models/shared/destinationconnectortype.md | 1 + .../shared/elasticsearchconnectorconfig.md | 2 +- .../elasticsearchconnectorconfiginput.md | 2 +- .../elasticsearchsourceconnectorconfig.md | 10 --- ...elasticsearchsourceconnectorconfiginput.md | 10 --- .../models/shared/gcssourceconnectorconfig.md | 1 + .../shared/gcssourceconnectorconfiginput.md | 3 +- .../kafkaclouddestinationconnectorconfig.md | 14 ++++ ...fkaclouddestinationconnectorconfiginput.md | 14 ++++ .../shared/mongodbsourceconnectorconfig.md | 10 --- .../mongodbsourceconnectorconfiginput.md | 10 --- .../shared/postgressourceconnectorconfig.md | 4 +- .../postgressourceconnectorconfiginput.md | 6 +- .../shared/salesforcesourceconnectorconfig.md | 12 +-- .../salesforcesourceconnectorconfiginput.md | 12 +-- .../shared/sharepointsourceconnectorconfig.md | 15 ++-- .../sharepointsourceconnectorconfiginput.md | 15 ++-- .../shared/snowflakesourceconnectorconfig.md | 23 +++--- .../snowflakesourceconnectorconfiginput.md | 23 +++--- .../sourceconnectorinformationconfig.md | 22 ++++-- docs/models/shared/sourceconnectortype.md | 3 +- .../updatedestinationconnectorconfig.md | 10 ++- .../shared/updatesourceconnectorconfig.md | 22 ++++-- .../shared/zendesksourceconnectorconfig.md | 12 +++ .../zendesksourceconnectorconfiginput.md | 12 +++ docs/sdks/jobs/README.md | 22 +++--- docs/sdks/sources/README.md | 4 +- gen.yaml | 2 +- pyproject.toml | 2 +- src/unstructured_client/_version.py | 6 +- src/unstructured_client/jobs.py | 44 +++++------ .../models/operations/__init__.py | 26 +++---- ...ayground_job.py => download_job_output.py} | 14 ++-- .../models/shared/__init__.py | 76 ++++++++----------- .../shared/confluencesourceconnectorconfig.py | 10 +-- .../couchbasesourceconnectorconfiginput.py | 9 +-- .../shared/createdestinationconnector.py | 32 ++++---- .../models/shared/createsourceconnector.py | 68 +++++++++-------- ...databricks_volumessourceconnectorconfig.py | 31 -------- ...ricks_volumessourceconnectorconfiginput.py | 31 -------- ...databricksvdtdestinationconnectorconfig.py | 30 +++++++- ...ricksvdtdestinationconnectorconfiginput.py | 24 +++++- .../databricksvolumesconnectorconfig.py | 9 ++- .../databricksvolumesconnectorconfiginput.py | 9 ++- .../shared/destinationconnectorinformation.py | 36 +++++---- .../models/shared/destinationconnectortype.py | 1 + .../shared/elasticsearchconnectorconfig.py | 5 +- .../elasticsearchconnectorconfiginput.py | 5 +- .../elasticsearchsourceconnectorconfig.py | 19 ----- ...elasticsearchsourceconnectorconfiginput.py | 19 ----- .../models/shared/gcssourceconnectorconfig.py | 3 + .../shared/gcssourceconnectorconfiginput.py | 6 +- .../kafkaclouddestinationconnectorconfig.py | 68 +++++++++++++++++ ...fkaclouddestinationconnectorconfiginput.py | 69 +++++++++++++++++ .../shared/mongodbsourceconnectorconfig.py | 19 ----- .../mongodbsourceconnectorconfiginput.py | 19 ----- .../shared/postgressourceconnectorconfig.py | 48 +++++++++++- .../postgressourceconnectorconfiginput.py | 55 ++++++++++++-- .../shared/salesforcesourceconnectorconfig.py | 56 +++----------- .../salesforcesourceconnectorconfiginput.py | 56 +++----------- .../shared/sharepointsourceconnectorconfig.py | 62 ++++++++++++--- .../sharepointsourceconnectorconfiginput.py | 63 ++++++++++++--- .../shared/snowflakesourceconnectorconfig.py | 65 ++++++---------- .../snowflakesourceconnectorconfiginput.py | 32 ++++++-- .../shared/sourceconnectorinformation.py | 64 +++++++++------- .../models/shared/sourceconnectortype.py | 1 + .../shared/updatedestinationconnector.py | 32 ++++---- .../models/shared/updatesourceconnector.py | 68 +++++++++-------- .../shared/zendesksourceconnectorconfig.py | 62 +++++++++++++++ .../zendesksourceconnectorconfiginput.py | 62 +++++++++++++++ 87 files changed, 1128 insertions(+), 768 deletions(-) rename docs/models/operations/{downloadplaygroundjobrequest.md => downloadjoboutputrequest.md} (97%) rename docs/models/operations/{downloadplaygroundjobresponse.md => downloadjoboutputresponse.md} (97%) delete mode 100644 docs/models/shared/databricksvolumessourceconnectorconfig.md delete mode 100644 docs/models/shared/databricksvolumessourceconnectorconfiginput.md delete mode 100644 docs/models/shared/elasticsearchsourceconnectorconfig.md delete mode 100644 docs/models/shared/elasticsearchsourceconnectorconfiginput.md create mode 100644 docs/models/shared/kafkaclouddestinationconnectorconfig.md create mode 100644 docs/models/shared/kafkaclouddestinationconnectorconfiginput.md delete mode 100644 docs/models/shared/mongodbsourceconnectorconfig.md delete mode 100644 docs/models/shared/mongodbsourceconnectorconfiginput.md create mode 100644 docs/models/shared/zendesksourceconnectorconfig.md create mode 100644 docs/models/shared/zendesksourceconnectorconfiginput.md rename src/unstructured_client/models/operations/{download_playground_job.py => download_job_output.py} (88%) delete mode 100644 src/unstructured_client/models/shared/databricks_volumessourceconnectorconfig.py delete mode 100644 src/unstructured_client/models/shared/databricks_volumessourceconnectorconfiginput.py delete mode 100644 src/unstructured_client/models/shared/elasticsearchsourceconnectorconfig.py delete mode 100644 src/unstructured_client/models/shared/elasticsearchsourceconnectorconfiginput.py create mode 100644 src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py create mode 100644 src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py delete mode 100644 src/unstructured_client/models/shared/mongodbsourceconnectorconfig.py delete mode 100644 src/unstructured_client/models/shared/mongodbsourceconnectorconfiginput.py create mode 100644 src/unstructured_client/models/shared/zendesksourceconnectorconfig.py create mode 100644 src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index 8de20045..dfa8699e 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: c4f3983b5eb89f59323e9fff5afa0acb + docChecksum: 46600a7b471a8b66237d0a37fb0c0286 docVersion: 1.0.81 - speakeasyVersion: 1.521.1 - generationVersion: 2.558.5 - releaseVersion: 0.31.3 - configChecksum: 04f975b0bdaad8df79df20dcb379d0b4 + speakeasyVersion: 1.523.2 + generationVersion: 2.560.1 + releaseVersion: 0.31.4 + configChecksum: 118a51b76b663b1fe71ffc9ffa63b747 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -58,8 +58,8 @@ generatedFiles: - docs/models/operations/deletesourceresponse.md - docs/models/operations/deleteworkflowrequest.md - docs/models/operations/deleteworkflowresponse.md - - docs/models/operations/downloadplaygroundjobrequest.md - - docs/models/operations/downloadplaygroundjobresponse.md + - docs/models/operations/downloadjoboutputrequest.md + - docs/models/operations/downloadjoboutputresponse.md - docs/models/operations/getdestinationrequest.md - docs/models/operations/getdestinationresponse.md - docs/models/operations/getjobrequest.md @@ -111,8 +111,6 @@ generatedFiles: - docs/models/shared/databricksvdtdestinationconnectorconfiginput.md - docs/models/shared/databricksvolumesconnectorconfig.md - docs/models/shared/databricksvolumesconnectorconfiginput.md - - docs/models/shared/databricksvolumessourceconnectorconfig.md - - docs/models/shared/databricksvolumessourceconnectorconfiginput.md - docs/models/shared/deltatableconnectorconfig.md - docs/models/shared/deltatableconnectorconfiginput.md - docs/models/shared/destinationconnectorinformation.md @@ -122,8 +120,6 @@ generatedFiles: - docs/models/shared/dropboxsourceconnectorconfiginput.md - docs/models/shared/elasticsearchconnectorconfig.md - docs/models/shared/elasticsearchconnectorconfiginput.md - - docs/models/shared/elasticsearchsourceconnectorconfig.md - - docs/models/shared/elasticsearchsourceconnectorconfiginput.md - docs/models/shared/files.md - docs/models/shared/gcsdestinationconnectorconfig.md - docs/models/shared/gcsdestinationconnectorconfiginput.md @@ -136,6 +132,8 @@ generatedFiles: - docs/models/shared/jirasourceconnectorconfiginput.md - docs/models/shared/jobinformation.md - docs/models/shared/jobstatus.md + - docs/models/shared/kafkaclouddestinationconnectorconfig.md + - docs/models/shared/kafkaclouddestinationconnectorconfiginput.md - docs/models/shared/kafkacloudsourceconnectorconfig.md - docs/models/shared/kafkacloudsourceconnectorconfiginput.md - docs/models/shared/loc.md @@ -143,8 +141,6 @@ generatedFiles: - docs/models/shared/milvusdestinationconnectorconfiginput.md - docs/models/shared/mongodbconnectorconfig.md - docs/models/shared/mongodbconnectorconfiginput.md - - docs/models/shared/mongodbsourceconnectorconfig.md - - docs/models/shared/mongodbsourceconnectorconfiginput.md - docs/models/shared/neo4jdestinationconnectorconfig.md - docs/models/shared/neo4jdestinationconnectorconfiginput.md - docs/models/shared/nodefilemetadata.md @@ -201,6 +197,8 @@ generatedFiles: - docs/models/shared/workflowschedule.md - docs/models/shared/workflowstate.md - docs/models/shared/workflowtype.md + - docs/models/shared/zendesksourceconnectorconfig.md + - docs/models/shared/zendesksourceconnectorconfiginput.md - docs/models/utils/retryconfig.md - docs/sdks/destinations/README.md - docs/sdks/general/README.md @@ -236,7 +234,7 @@ generatedFiles: - src/unstructured_client/models/operations/delete_destination.py - src/unstructured_client/models/operations/delete_source.py - src/unstructured_client/models/operations/delete_workflow.py - - src/unstructured_client/models/operations/download_playground_job.py + - src/unstructured_client/models/operations/download_job_output.py - src/unstructured_client/models/operations/get_destination.py - src/unstructured_client/models/operations/get_job.py - src/unstructured_client/models/operations/get_source.py @@ -270,8 +268,6 @@ generatedFiles: - src/unstructured_client/models/shared/createsourceconnector.py - src/unstructured_client/models/shared/createworkflow.py - src/unstructured_client/models/shared/crontabentry.py - - src/unstructured_client/models/shared/databricks_volumessourceconnectorconfig.py - - src/unstructured_client/models/shared/databricks_volumessourceconnectorconfiginput.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py - src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py @@ -284,8 +280,6 @@ generatedFiles: - src/unstructured_client/models/shared/dropboxsourceconnectorconfiginput.py - src/unstructured_client/models/shared/elasticsearchconnectorconfig.py - src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py - - src/unstructured_client/models/shared/elasticsearchsourceconnectorconfig.py - - src/unstructured_client/models/shared/elasticsearchsourceconnectorconfiginput.py - src/unstructured_client/models/shared/gcsdestinationconnectorconfig.py - src/unstructured_client/models/shared/gcsdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/gcssourceconnectorconfig.py @@ -296,14 +290,14 @@ generatedFiles: - src/unstructured_client/models/shared/jirasourceconnectorconfiginput.py - src/unstructured_client/models/shared/jobinformation.py - src/unstructured_client/models/shared/jobstatus.py + - src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py + - src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py - src/unstructured_client/models/shared/kafkacloudsourceconnectorconfig.py - src/unstructured_client/models/shared/kafkacloudsourceconnectorconfiginput.py - src/unstructured_client/models/shared/milvusdestinationconnectorconfig.py - src/unstructured_client/models/shared/milvusdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/mongodbconnectorconfig.py - src/unstructured_client/models/shared/mongodbconnectorconfiginput.py - - src/unstructured_client/models/shared/mongodbsourceconnectorconfig.py - - src/unstructured_client/models/shared/mongodbsourceconnectorconfiginput.py - src/unstructured_client/models/shared/neo4jdestinationconnectorconfig.py - src/unstructured_client/models/shared/neo4jdestinationconnectorconfiginput.py - src/unstructured_client/models/shared/nodefilemetadata.py @@ -351,6 +345,8 @@ generatedFiles: - src/unstructured_client/models/shared/workflowschedule.py - src/unstructured_client/models/shared/workflowstate.py - src/unstructured_client/models/shared/workflowtype.py + - src/unstructured_client/models/shared/zendesksourceconnectorconfig.py + - src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py - src/unstructured_client/py.typed - src/unstructured_client/sdk.py - src/unstructured_client/sdkconfiguration.py @@ -402,9 +398,9 @@ examples: header: {} responses: "200": - application/json: {"config": {"catalog": "", "database": "", "table_name": "", "volume": ""}, "created_at": "2024-10-14T19:54:11.006Z", "id": "42a89289-d2ad-4317-9f06-cb55de8b2b8c", "name": "", "type": "databricks_volumes"} + application/json: {"config": {"aws_access_key_id": "", "aws_region": "", "aws_secret_access_key": "", "table_uri": "https://similar-outlaw.com/"}, "created_at": "2024-10-14T19:54:11.006Z", "id": "42a89289-d2ad-4317-9f06-cb55de8b2b8c", "name": "", "type": "databricks_volumes"} "422": - application/json: {"detail": []} + application/json: {"detail": [{"loc": [673293, 205350], "msg": "", "type": ""}, {"loc": [892410, 956769, 161297], "msg": "", "type": ""}, {"loc": [107816], "msg": "", "type": ""}]} list_destinations: speakeasy-default-list-destinations: responses: @@ -592,5 +588,18 @@ examples: application/json: "" "422": application/json: {"detail": ""} + download_job_output: + speakeasy-default-download-job-output: + parameters: + path: + job_id: "bddbb621-2124-4cc2-9fa7-c6cdc21dac44" + query: + file_id: "" + header: {} + responses: + "200": + application/json: "" + "422": + application/json: {"detail": ""} examplesVersion: 1.0.0 generatedTests: {} diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index 9690af3f..87772f82 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.521.1 +speakeasyVersion: 1.523.2 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:c729b7c3e96441f37c558955fa9dd2d6401b25c7cdd776635fcb9b972060ec97 - sourceBlobDigest: sha256:5c6ce34332451057e7e4b373e3c6ca3222b85ba990052d3afe7ed5ef7e378259 + sourceRevisionDigest: sha256:5a58584b6a505a86a986c125b627a886cdfb2b2655e2a5afd1101b61fea0da83 + sourceBlobDigest: sha256:8782880b94bd48cee277e4627738e65fb2cb6092205ea01ae23ca37f738b93ad tags: - latest - - speakeasy-sdk-regen-1742509545 + - speakeasy-sdk-regen-1743008607 - 1.0.81 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:c729b7c3e96441f37c558955fa9dd2d6401b25c7cdd776635fcb9b972060ec97 - sourceBlobDigest: sha256:5c6ce34332451057e7e4b373e3c6ca3222b85ba990052d3afe7ed5ef7e378259 + sourceRevisionDigest: sha256:5a58584b6a505a86a986c125b627a886cdfb2b2655e2a5afd1101b61fea0da83 + sourceBlobDigest: sha256:8782880b94bd48cee277e4627738e65fb2cb6092205ea01ae23ca37f738b93ad codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:2764e948ee50d277f55fe2c55409941a8fbb095d210a5f571e0a8434b4f2da4f + codeSamplesRevisionDigest: sha256:761a4a501ade8b0f803d044236935d9bf4d8593eb1601c4e301fc50896ecb0cf workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index b65017e7..43c4d95e 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -875,4 +875,14 @@ Based on: ### Generated - [python v0.31.3] . ### Releases -- [PyPI v0.31.3] https://pypi.org/project/unstructured-client/0.31.3 - . \ No newline at end of file +- [PyPI v0.31.3] https://pypi.org/project/unstructured-client/0.31.3 - . + +## 2025-03-26 17:03:10 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.523.2 (2.560.1) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.31.4] . +### Releases +- [PyPI v0.31.4] https://pypi.org/project/unstructured-client/0.31.4 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index e8940ae6..e9e98aee 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -55,8 +55,8 @@ actions: update: "x-codeSamples": - "lang": "python" - "label": "download_playground_job" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_playground_job(request={\n \"job_id\": \"844a9b13-d032-43c7-8e81-b20a874c4c79\",\n \"file_id\": \"\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" + "label": "download_job_output" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.jobs.download_job_output(request={\n \"job_id\": \"bddbb621-2124-4cc2-9fa7-c6cdc21dac44\",\n \"file_id\": \"\",\n })\n\n assert res.any is not None\n\n # Handle response\n print(res.any)" - target: $["paths"]["/api/v1/sources/"]["get"] update: "x-codeSamples": @@ -68,7 +68,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "create_source" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"\",\n \"type\": shared.SourceConnectorType.SALESFORCE,\n \"config\": {\n \"client_id\": \"\",\n \"client_secret\": \"\",\n \"tenant_id\": \"\",\n \"site_url\": \"https://caring-cash.name/\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.create_source(request={\n \"create_source_connector\": {\n \"name\": \"\",\n \"type\": shared.SourceConnectorType.SHAREPOINT,\n \"config\": {\n \"account\": \"21158540\",\n \"role\": \"\",\n \"user\": \"Andrew_Ebert71\",\n \"password\": \"RKAX3jUtlnjWe9D\",\n \"host\": \"impractical-academics.net\",\n \"port\": 443,\n \"database\": \"\",\n \"schema_\": \"\",\n \"table_name\": \"\",\n \"batch_size\": 100,\n \"id_column\": \"\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/sources/{source_id}"]["delete"] update: "x-codeSamples": @@ -86,7 +86,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "update_source" - "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"2396edec-439e-48ef-a6c6-9c9e3ba7a841\",\n \"update_source_connector\": {\n \"config\": {\n \"host\": \"black-and-white-obesity.info\",\n \"database\": \"\",\n \"port\": 5432,\n \"username\": \"Rosendo_Kub3\",\n \"password\": \"L8K8WEZq1xvBpSw\",\n \"table_name\": \"\",\n \"batch_size\": 100,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.sources.update_source(request={\n \"source_id\": \"396edec4-39e8-4ef6-ac69-c9e3ba7a8418\",\n \"update_source_connector\": {\n \"config\": {\n \"host\": \"black-and-white-obesity.info\",\n \"database\": \"\",\n \"port\": 848106,\n \"username\": \"Bruce.Stracke19\",\n \"password\": \"L8K8WEZq1xvBpSw\",\n \"table_name\": \"\",\n \"batch_size\": 177849,\n \"id_column\": \"id\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/workflows/"]["get"] update: "x-codeSamples": diff --git a/docs/models/operations/downloadplaygroundjobrequest.md b/docs/models/operations/downloadjoboutputrequest.md similarity index 97% rename from docs/models/operations/downloadplaygroundjobrequest.md rename to docs/models/operations/downloadjoboutputrequest.md index bc132c9d..4a4680d0 100644 --- a/docs/models/operations/downloadplaygroundjobrequest.md +++ b/docs/models/operations/downloadjoboutputrequest.md @@ -1,4 +1,4 @@ -# DownloadPlaygroundJobRequest +# DownloadJobOutputRequest ## Fields diff --git a/docs/models/operations/downloadplaygroundjobresponse.md b/docs/models/operations/downloadjoboutputresponse.md similarity index 97% rename from docs/models/operations/downloadplaygroundjobresponse.md rename to docs/models/operations/downloadjoboutputresponse.md index 58982e13..04e6e975 100644 --- a/docs/models/operations/downloadplaygroundjobresponse.md +++ b/docs/models/operations/downloadjoboutputresponse.md @@ -1,4 +1,4 @@ -# DownloadPlaygroundJobResponse +# DownloadJobOutputResponse ## Fields diff --git a/docs/models/shared/config.md b/docs/models/shared/config.md index 2dcfa320..457e0fd7 100644 --- a/docs/models/shared/config.md +++ b/docs/models/shared/config.md @@ -51,6 +51,12 @@ value: shared.ElasticsearchConnectorConfigInput = /* values here */ value: shared.GCSDestinationConnectorConfigInput = /* values here */ ``` +### `shared.KafkaCloudDestinationConnectorConfigInput` + +```python +value: shared.KafkaCloudDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.MilvusDestinationConnectorConfigInput` ```python @@ -75,10 +81,10 @@ value: shared.Neo4jDestinationConnectorConfigInput = /* values here */ value: shared.OneDriveDestinationConnectorConfigInput = /* values here */ ``` -### `shared.PineconeDestinationConnectorConfig` +### `shared.PineconeDestinationConnectorConfigInput` ```python -value: shared.PineconeDestinationConnectorConfig = /* values here */ +value: shared.PineconeDestinationConnectorConfigInput = /* values here */ ``` ### `shared.PostgresDestinationConnectorConfigInput` diff --git a/docs/models/shared/confluencesourceconnectorconfig.md b/docs/models/shared/confluencesourceconnectorconfig.md index 5f9c5aa6..da78a529 100644 --- a/docs/models/shared/confluencesourceconnectorconfig.md +++ b/docs/models/shared/confluencesourceconnectorconfig.md @@ -8,8 +8,8 @@ | `cloud` | *bool* | :heavy_check_mark: | 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 | +| `spaces` | *Nullable[str]* | :heavy_check_mark: | N/A | | `url` | *str* | :heavy_check_mark: | N/A | | `username` | *str* | :heavy_check_mark: | N/A | | `password` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | -| `spaces` | *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/couchbasesourceconnectorconfiginput.md b/docs/models/shared/couchbasesourceconnectorconfiginput.md index d91f414c..93097cce 100644 --- a/docs/models/shared/couchbasesourceconnectorconfiginput.md +++ b/docs/models/shared/couchbasesourceconnectorconfiginput.md @@ -5,11 +5,11 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *int* | :heavy_check_mark: | N/A | | `bucket` | *str* | :heavy_check_mark: | 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 | | `username` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | 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/createsourceconnectorconfig.md b/docs/models/shared/createsourceconnectorconfig.md index 2ae529f9..f87aa464 100644 --- a/docs/models/shared/createsourceconnectorconfig.md +++ b/docs/models/shared/createsourceconnectorconfig.md @@ -27,10 +27,10 @@ value: shared.ConfluenceSourceConnectorConfigInput = /* values here */ value: shared.CouchbaseSourceConnectorConfigInput = /* values here */ ``` -### `shared.DatabricksVolumesSourceConnectorConfigInput` +### `shared.DatabricksVolumesConnectorConfigInput` ```python -value: shared.DatabricksVolumesSourceConnectorConfigInput = /* values here */ +value: shared.DatabricksVolumesConnectorConfigInput = /* values here */ ``` ### `shared.DropboxSourceConnectorConfigInput` @@ -39,10 +39,10 @@ value: shared.DatabricksVolumesSourceConnectorConfigInput = /* values here */ value: shared.DropboxSourceConnectorConfigInput = /* values here */ ``` -### `shared.ElasticsearchSourceConnectorConfigInput` +### `shared.ElasticsearchConnectorConfigInput` ```python -value: shared.ElasticsearchSourceConnectorConfigInput = /* values here */ +value: shared.ElasticsearchConnectorConfigInput = /* values here */ ``` ### `shared.GCSSourceConnectorConfigInput` @@ -63,10 +63,10 @@ value: shared.GoogleDriveSourceConnectorConfigInput = /* values here */ value: shared.KafkaCloudSourceConnectorConfigInput = /* values here */ ``` -### `shared.MongodbSourceConnectorConfigInput` +### `shared.MongoDBConnectorConfigInput` ```python -value: shared.MongodbSourceConnectorConfigInput = /* values here */ +value: shared.MongoDBConnectorConfigInput = /* values here */ ``` ### `shared.OneDriveSourceConnectorConfigInput` @@ -99,10 +99,10 @@ value: shared.S3SourceConnectorConfigInput = /* values here */ value: shared.SalesforceSourceConnectorConfigInput = /* values here */ ``` -### `shared.SharepointSourceConnectorConfigInput` +### `shared.SharePointSourceConnectorConfigInput` ```python -value: shared.SharepointSourceConnectorConfigInput = /* values here */ +value: shared.SharePointSourceConnectorConfigInput = /* values here */ ``` ### `shared.SnowflakeSourceConnectorConfigInput` @@ -117,3 +117,9 @@ value: shared.SnowflakeSourceConnectorConfigInput = /* values here */ value: shared.JiraSourceConnectorConfigInput = /* values here */ ``` +### `shared.ZendeskSourceConnectorConfigInput` + +```python +value: shared.ZendeskSourceConnectorConfigInput = /* values here */ +``` + diff --git a/docs/models/shared/databricksvdtdestinationconnectorconfig.md b/docs/models/shared/databricksvdtdestinationconnectorconfig.md index 2881173d..105089a2 100644 --- a/docs/models/shared/databricksvdtdestinationconnectorconfig.md +++ b/docs/models/shared/databricksvdtdestinationconnectorconfig.md @@ -7,7 +7,12 @@ | ----------------------- | ----------------------- | ----------------------- | ----------------------- | | `catalog` | *str* | :heavy_check_mark: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | +| `http_path` | *str* | :heavy_check_mark: | N/A | +| `server_hostname` | *str* | :heavy_check_mark: | N/A | | `table_name` | *str* | :heavy_check_mark: | N/A | | `volume` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `client_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `client_secret` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `token` | *OptionalNullable[str]* | :heavy_minus_sign: | 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 741997f3..f6ce2694 100644 --- a/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md +++ b/docs/models/shared/databricksvdtdestinationconnectorconfiginput.md @@ -5,10 +5,14 @@ | Field | Type | Required | Description | | ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `catalog` | *str* | :heavy_check_mark: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | | `http_path` | *str* | :heavy_check_mark: | N/A | | `server_hostname` | *str* | :heavy_check_mark: | N/A | +| `table_name` | *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 | +| `schema_` | *Optional[str]* | :heavy_minus_sign: | N/A | | `token` | *OptionalNullable[str]* | :heavy_minus_sign: | 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 f717e139..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_` | *str* | :heavy_check_mark: | 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 c513c05e..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_` | *str* | :heavy_check_mark: | 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/databricksvolumessourceconnectorconfig.md b/docs/models/shared/databricksvolumessourceconnectorconfig.md deleted file mode 100644 index 18aad2f6..00000000 --- a/docs/models/shared/databricksvolumessourceconnectorconfig.md +++ /dev/null @@ -1,14 +0,0 @@ -# DatabricksVolumesSourceConnectorConfig - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `catalog` | *str* | :heavy_check_mark: | N/A | -| `client_id` | *str* | :heavy_check_mark: | N/A | -| `client_secret` | *str* | :heavy_check_mark: | N/A | -| `host` | *str* | :heavy_check_mark: | N/A | -| `schema_name` | *str* | :heavy_check_mark: | N/A | -| `volume` | *str* | :heavy_check_mark: | N/A | -| `volume_path` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/databricksvolumessourceconnectorconfiginput.md b/docs/models/shared/databricksvolumessourceconnectorconfiginput.md deleted file mode 100644 index a6c42f87..00000000 --- a/docs/models/shared/databricksvolumessourceconnectorconfiginput.md +++ /dev/null @@ -1,14 +0,0 @@ -# DatabricksVolumesSourceConnectorConfigInput - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `catalog` | *str* | :heavy_check_mark: | N/A | -| `client_id` | *str* | :heavy_check_mark: | N/A | -| `client_secret` | *str* | :heavy_check_mark: | N/A | -| `host` | *str* | :heavy_check_mark: | N/A | -| `schema_name` | *str* | :heavy_check_mark: | N/A | -| `volume` | *str* | :heavy_check_mark: | N/A | -| `volume_path` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/destinationconnectorinformationconfig.md b/docs/models/shared/destinationconnectorinformationconfig.md index 41f78463..3a711755 100644 --- a/docs/models/shared/destinationconnectorinformationconfig.md +++ b/docs/models/shared/destinationconnectorinformationconfig.md @@ -51,6 +51,12 @@ value: shared.ElasticsearchConnectorConfig = /* values here */ value: shared.GCSDestinationConnectorConfig = /* values here */ ``` +### `shared.KafkaCloudDestinationConnectorConfig` + +```python +value: shared.KafkaCloudDestinationConnectorConfig = /* values here */ +``` + ### `shared.MilvusDestinationConnectorConfig` ```python @@ -75,10 +81,10 @@ value: shared.Neo4jDestinationConnectorConfig = /* values here */ value: shared.OneDriveDestinationConnectorConfig = /* values here */ ``` -### `shared.PineconeDestinationConnectorConfigInput` +### `shared.PineconeDestinationConnectorConfig` ```python -value: shared.PineconeDestinationConnectorConfigInput = /* values here */ +value: shared.PineconeDestinationConnectorConfig = /* values here */ ``` ### `shared.PostgresDestinationConnectorConfig` diff --git a/docs/models/shared/destinationconnectortype.md b/docs/models/shared/destinationconnectortype.md index f015c075..57c24960 100644 --- a/docs/models/shared/destinationconnectortype.md +++ b/docs/models/shared/destinationconnectortype.md @@ -13,6 +13,7 @@ | `DELTA_TABLE` | delta_table | | `ELASTICSEARCH` | elasticsearch | | `GCS` | gcs | +| `KAFKA_CLOUD` | kafka-cloud | | `MILVUS` | milvus | | `MONGODB` | mongodb | | `MOTHERDUCK` | motherduck | diff --git a/docs/models/shared/elasticsearchconnectorconfig.md b/docs/models/shared/elasticsearchconnectorconfig.md index 3314f49c..5a5ba0c4 100644 --- a/docs/models/shared/elasticsearchconnectorconfig.md +++ b/docs/models/shared/elasticsearchconnectorconfig.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `es_api_key` | *str* | :heavy_check_mark: | N/A | -| `hosts` | *str* | :heavy_check_mark: | N/A | +| `hosts` | List[*str*] | :heavy_check_mark: | N/A | | `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/elasticsearchconnectorconfiginput.md b/docs/models/shared/elasticsearchconnectorconfiginput.md index eb8cfb01..3405ecea 100644 --- a/docs/models/shared/elasticsearchconnectorconfiginput.md +++ b/docs/models/shared/elasticsearchconnectorconfiginput.md @@ -6,5 +6,5 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | | `es_api_key` | *str* | :heavy_check_mark: | N/A | -| `hosts` | *str* | :heavy_check_mark: | N/A | +| `hosts` | List[*str*] | :heavy_check_mark: | N/A | | `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/elasticsearchsourceconnectorconfig.md b/docs/models/shared/elasticsearchsourceconnectorconfig.md deleted file mode 100644 index a5e27991..00000000 --- a/docs/models/shared/elasticsearchsourceconnectorconfig.md +++ /dev/null @@ -1,10 +0,0 @@ -# ElasticsearchSourceConnectorConfig - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `es_api_key` | *str* | :heavy_check_mark: | N/A | -| `hosts` | *str* | :heavy_check_mark: | N/A | -| `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/elasticsearchsourceconnectorconfiginput.md b/docs/models/shared/elasticsearchsourceconnectorconfiginput.md deleted file mode 100644 index cf9e74a2..00000000 --- a/docs/models/shared/elasticsearchsourceconnectorconfiginput.md +++ /dev/null @@ -1,10 +0,0 @@ -# ElasticsearchSourceConnectorConfigInput - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `es_api_key` | *str* | :heavy_check_mark: | N/A | -| `hosts` | *str* | :heavy_check_mark: | N/A | -| `index_name` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/gcssourceconnectorconfig.md b/docs/models/shared/gcssourceconnectorconfig.md index c0ea47ba..5c11f529 100644 --- a/docs/models/shared/gcssourceconnectorconfig.md +++ b/docs/models/shared/gcssourceconnectorconfig.md @@ -5,5 +5,6 @@ | Field | Type | Required | Description | | --------------------- | --------------------- | --------------------- | --------------------- | +| `recursive` | *bool* | :heavy_check_mark: | 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 diff --git a/docs/models/shared/gcssourceconnectorconfiginput.md b/docs/models/shared/gcssourceconnectorconfiginput.md index 260fc868..bebee772 100644 --- a/docs/models/shared/gcssourceconnectorconfiginput.md +++ b/docs/models/shared/gcssourceconnectorconfiginput.md @@ -6,4 +6,5 @@ | Field | Type | Required | Description | | --------------------- | --------------------- | --------------------- | --------------------- | | `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/kafkaclouddestinationconnectorconfig.md b/docs/models/shared/kafkaclouddestinationconnectorconfig.md new file mode 100644 index 00000000..d0539c77 --- /dev/null +++ b/docs/models/shared/kafkaclouddestinationconnectorconfig.md @@ -0,0 +1,14 @@ +# KafkaCloudDestinationConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *int* | :heavy_check_mark: | N/A | +| `bootstrap_servers` | *str* | :heavy_check_mark: | 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 | +| `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 new file mode 100644 index 00000000..28a88ee7 --- /dev/null +++ b/docs/models/shared/kafkaclouddestinationconnectorconfiginput.md @@ -0,0 +1,14 @@ +# KafkaCloudDestinationConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `bootstrap_servers` | *str* | :heavy_check_mark: | N/A | +| `kafka_api_key` | *str* | :heavy_check_mark: | N/A | +| `secret` | *str* | :heavy_check_mark: | N/A | +| `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/mongodbsourceconnectorconfig.md b/docs/models/shared/mongodbsourceconnectorconfig.md deleted file mode 100644 index f15690b5..00000000 --- a/docs/models/shared/mongodbsourceconnectorconfig.md +++ /dev/null @@ -1,10 +0,0 @@ -# MongodbSourceConnectorConfig - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `collection` | *str* | :heavy_check_mark: | N/A | -| `database` | *str* | :heavy_check_mark: | N/A | -| `uri` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/mongodbsourceconnectorconfiginput.md b/docs/models/shared/mongodbsourceconnectorconfiginput.md deleted file mode 100644 index 4cb31295..00000000 --- a/docs/models/shared/mongodbsourceconnectorconfiginput.md +++ /dev/null @@ -1,10 +0,0 @@ -# MongodbSourceConnectorConfigInput - - -## Fields - -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `collection` | *str* | :heavy_check_mark: | N/A | -| `database` | *str* | :heavy_check_mark: | N/A | -| `uri` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/postgressourceconnectorconfig.md b/docs/models/shared/postgressourceconnectorconfig.md index 72dd6df3..d4a2fa1d 100644 --- a/docs/models/shared/postgressourceconnectorconfig.md +++ b/docs/models/shared/postgressourceconnectorconfig.md @@ -8,7 +8,9 @@ | `batch_size` | *int* | :heavy_check_mark: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | +| `id_column` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | | `port` | *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 0bd44c55..7ea82431 100644 --- a/docs/models/shared/postgressourceconnectorconfiginput.md +++ b/docs/models/shared/postgressourceconnectorconfiginput.md @@ -5,10 +5,12 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | +| `batch_size` | *int* | :heavy_check_mark: | N/A | | `database` | *str* | :heavy_check_mark: | N/A | | `host` | *str* | :heavy_check_mark: | N/A | | `password` | *str* | :heavy_check_mark: | N/A | +| `port` | *int* | :heavy_check_mark: | N/A | | `table_name` | *str* | :heavy_check_mark: | N/A | | `username` | *str* | :heavy_check_mark: | N/A | -| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | -| `port` | *Optional[int]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| `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/salesforcesourceconnectorconfig.md b/docs/models/shared/salesforcesourceconnectorconfig.md index f3731358..1ae5c40d 100644 --- a/docs/models/shared/salesforcesourceconnectorconfig.md +++ b/docs/models/shared/salesforcesourceconnectorconfig.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `password` | *str* | :heavy_check_mark: | N/A | -| `security_token` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | -| `domain` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `categories` | List[*str*] | :heavy_check_mark: | N/A | +| `consumer_key` | *str* | :heavy_check_mark: | N/A | +| `private_key` | *str* | :heavy_check_mark: | N/A | +| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/salesforcesourceconnectorconfiginput.md b/docs/models/shared/salesforcesourceconnectorconfiginput.md index 7b8ae51c..444977b2 100644 --- a/docs/models/shared/salesforcesourceconnectorconfiginput.md +++ b/docs/models/shared/salesforcesourceconnectorconfiginput.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `password` | *str* | :heavy_check_mark: | N/A | -| `security_token` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | -| `domain` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `categories` | List[*str*] | :heavy_check_mark: | N/A | +| `consumer_key` | *str* | :heavy_check_mark: | N/A | +| `private_key` | *str* | :heavy_check_mark: | N/A | +| `username` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/sharepointsourceconnectorconfig.md b/docs/models/shared/sharepointsourceconnectorconfig.md index 3a41d971..fdb9e7a3 100644 --- a/docs/models/shared/sharepointsourceconnectorconfig.md +++ b/docs/models/shared/sharepointsourceconnectorconfig.md @@ -1,11 +1,12 @@ -# SharepointSourceConnectorConfig +# SharePointSourceConnectorConfig ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `client_id` | *str* | :heavy_check_mark: | N/A | -| `client_secret` | *str* | :heavy_check_mark: | N/A | -| `site_url` | *str* | :heavy_check_mark: | N/A | -| `tenant_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `client_cred` | *str* | :heavy_check_mark: | N/A | +| `client_id` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *bool* | :heavy_check_mark: | N/A | +| `site` | *str* | :heavy_check_mark: | 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 1707deb5..1f2c2e4d 100644 --- a/docs/models/shared/sharepointsourceconnectorconfiginput.md +++ b/docs/models/shared/sharepointsourceconnectorconfiginput.md @@ -1,11 +1,12 @@ -# SharepointSourceConnectorConfigInput +# SharePointSourceConnectorConfigInput ## Fields -| Field | Type | Required | Description | -| ------------------ | ------------------ | ------------------ | ------------------ | -| `client_id` | *str* | :heavy_check_mark: | N/A | -| `client_secret` | *str* | :heavy_check_mark: | N/A | -| `site_url` | *str* | :heavy_check_mark: | N/A | -| `tenant_id` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `client_cred` | *str* | :heavy_check_mark: | N/A | +| `client_id` | *str* | :heavy_check_mark: | N/A | +| `site` | *str* | :heavy_check_mark: | 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/snowflakesourceconnectorconfig.md b/docs/models/shared/snowflakesourceconnectorconfig.md index a9d17b71..70f2f533 100644 --- a/docs/models/shared/snowflakesourceconnectorconfig.md +++ b/docs/models/shared/snowflakesourceconnectorconfig.md @@ -3,12 +3,17 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `account` | *str* | :heavy_check_mark: | N/A | -| `database` | *str* | :heavy_check_mark: | N/A | -| `password` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | -| `warehouse` | *str* | :heavy_check_mark: | N/A | -| `role` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `account` | *str* | :heavy_check_mark: | N/A | +| `batch_size` | *int* | :heavy_check_mark: | N/A | +| `database` | *str* | :heavy_check_mark: | N/A | +| `fields` | List[*str*] | :heavy_check_mark: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `id_column` | *str* | :heavy_check_mark: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `port` | *int* | :heavy_check_mark: | N/A | +| `role` | *str* | :heavy_check_mark: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | +| `table_name` | *str* | :heavy_check_mark: | N/A | +| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/snowflakesourceconnectorconfiginput.md b/docs/models/shared/snowflakesourceconnectorconfiginput.md index 7ad769ee..7f1dd837 100644 --- a/docs/models/shared/snowflakesourceconnectorconfiginput.md +++ b/docs/models/shared/snowflakesourceconnectorconfiginput.md @@ -3,12 +3,17 @@ ## Fields -| Field | Type | Required | Description | -| ----------------------- | ----------------------- | ----------------------- | ----------------------- | -| `account` | *str* | :heavy_check_mark: | N/A | -| `database` | *str* | :heavy_check_mark: | N/A | -| `password` | *str* | :heavy_check_mark: | N/A | -| `schema_` | *str* | :heavy_check_mark: | N/A | -| `username` | *str* | :heavy_check_mark: | N/A | -| `warehouse` | *str* | :heavy_check_mark: | N/A | -| `role` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `account` | *str* | :heavy_check_mark: | N/A | +| `database` | *str* | :heavy_check_mark: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `id_column` | *str* | :heavy_check_mark: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `role` | *str* | :heavy_check_mark: | N/A | +| `schema_` | *str* | :heavy_check_mark: | N/A | +| `table_name` | *str* | :heavy_check_mark: | N/A | +| `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 | \ No newline at end of file diff --git a/docs/models/shared/sourceconnectorinformationconfig.md b/docs/models/shared/sourceconnectorinformationconfig.md index f8fca0bd..25e68cb2 100644 --- a/docs/models/shared/sourceconnectorinformationconfig.md +++ b/docs/models/shared/sourceconnectorinformationconfig.md @@ -27,10 +27,10 @@ value: shared.ConfluenceSourceConnectorConfig = /* values here */ value: shared.CouchbaseSourceConnectorConfig = /* values here */ ``` -### `shared.DatabricksVolumesSourceConnectorConfig` +### `shared.DatabricksVolumesConnectorConfig` ```python -value: shared.DatabricksVolumesSourceConnectorConfig = /* values here */ +value: shared.DatabricksVolumesConnectorConfig = /* values here */ ``` ### `shared.DropboxSourceConnectorConfig` @@ -39,10 +39,10 @@ value: shared.DatabricksVolumesSourceConnectorConfig = /* values here */ value: shared.DropboxSourceConnectorConfig = /* values here */ ``` -### `shared.ElasticsearchSourceConnectorConfig` +### `shared.ElasticsearchConnectorConfig` ```python -value: shared.ElasticsearchSourceConnectorConfig = /* values here */ +value: shared.ElasticsearchConnectorConfig = /* values here */ ``` ### `shared.GCSSourceConnectorConfig` @@ -63,10 +63,10 @@ value: shared.GoogleDriveSourceConnectorConfig = /* values here */ value: shared.KafkaCloudSourceConnectorConfig = /* values here */ ``` -### `shared.MongodbSourceConnectorConfig` +### `shared.MongoDBConnectorConfig` ```python -value: shared.MongodbSourceConnectorConfig = /* values here */ +value: shared.MongoDBConnectorConfig = /* values here */ ``` ### `shared.OneDriveSourceConnectorConfig` @@ -99,10 +99,10 @@ value: shared.S3SourceConnectorConfig = /* values here */ value: shared.SalesforceSourceConnectorConfig = /* values here */ ``` -### `shared.SharepointSourceConnectorConfig` +### `shared.SharePointSourceConnectorConfig` ```python -value: shared.SharepointSourceConnectorConfig = /* values here */ +value: shared.SharePointSourceConnectorConfig = /* values here */ ``` ### `shared.SnowflakeSourceConnectorConfig` @@ -117,3 +117,9 @@ value: shared.SnowflakeSourceConnectorConfig = /* values here */ value: shared.JiraSourceConnectorConfig = /* values here */ ``` +### `shared.ZendeskSourceConnectorConfig` + +```python +value: shared.ZendeskSourceConnectorConfig = /* values here */ +``` + diff --git a/docs/models/shared/sourceconnectortype.md b/docs/models/shared/sourceconnectortype.md index 15b40e70..9d86bf87 100644 --- a/docs/models/shared/sourceconnectortype.md +++ b/docs/models/shared/sourceconnectortype.md @@ -23,4 +23,5 @@ | `SALESFORCE` | salesforce | | `SHAREPOINT` | sharepoint | | `SNOWFLAKE` | snowflake | -| `JIRA` | jira | \ No newline at end of file +| `JIRA` | jira | +| `ZENDESK` | zendesk | \ No newline at end of file diff --git a/docs/models/shared/updatedestinationconnectorconfig.md b/docs/models/shared/updatedestinationconnectorconfig.md index 392e2a16..78d91893 100644 --- a/docs/models/shared/updatedestinationconnectorconfig.md +++ b/docs/models/shared/updatedestinationconnectorconfig.md @@ -51,6 +51,12 @@ value: shared.ElasticsearchConnectorConfigInput = /* values here */ value: shared.GCSDestinationConnectorConfigInput = /* values here */ ``` +### `shared.KafkaCloudDestinationConnectorConfigInput` + +```python +value: shared.KafkaCloudDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.MilvusDestinationConnectorConfigInput` ```python @@ -75,10 +81,10 @@ value: shared.Neo4jDestinationConnectorConfigInput = /* values here */ value: shared.OneDriveDestinationConnectorConfigInput = /* values here */ ``` -### `shared.PineconeDestinationConnectorConfig` +### `shared.PineconeDestinationConnectorConfigInput` ```python -value: shared.PineconeDestinationConnectorConfig = /* values here */ +value: shared.PineconeDestinationConnectorConfigInput = /* values here */ ``` ### `shared.PostgresDestinationConnectorConfigInput` diff --git a/docs/models/shared/updatesourceconnectorconfig.md b/docs/models/shared/updatesourceconnectorconfig.md index 0832de00..06e4cf99 100644 --- a/docs/models/shared/updatesourceconnectorconfig.md +++ b/docs/models/shared/updatesourceconnectorconfig.md @@ -27,10 +27,10 @@ value: shared.ConfluenceSourceConnectorConfigInput = /* values here */ value: shared.CouchbaseSourceConnectorConfigInput = /* values here */ ``` -### `shared.DatabricksVolumesSourceConnectorConfigInput` +### `shared.DatabricksVolumesConnectorConfigInput` ```python -value: shared.DatabricksVolumesSourceConnectorConfigInput = /* values here */ +value: shared.DatabricksVolumesConnectorConfigInput = /* values here */ ``` ### `shared.DropboxSourceConnectorConfigInput` @@ -39,10 +39,10 @@ value: shared.DatabricksVolumesSourceConnectorConfigInput = /* values here */ value: shared.DropboxSourceConnectorConfigInput = /* values here */ ``` -### `shared.ElasticsearchSourceConnectorConfigInput` +### `shared.ElasticsearchConnectorConfigInput` ```python -value: shared.ElasticsearchSourceConnectorConfigInput = /* values here */ +value: shared.ElasticsearchConnectorConfigInput = /* values here */ ``` ### `shared.GCSSourceConnectorConfigInput` @@ -63,10 +63,10 @@ value: shared.GoogleDriveSourceConnectorConfigInput = /* values here */ value: shared.KafkaCloudSourceConnectorConfigInput = /* values here */ ``` -### `shared.MongodbSourceConnectorConfigInput` +### `shared.MongoDBConnectorConfigInput` ```python -value: shared.MongodbSourceConnectorConfigInput = /* values here */ +value: shared.MongoDBConnectorConfigInput = /* values here */ ``` ### `shared.OneDriveSourceConnectorConfigInput` @@ -99,10 +99,10 @@ value: shared.S3SourceConnectorConfigInput = /* values here */ value: shared.SalesforceSourceConnectorConfigInput = /* values here */ ``` -### `shared.SharepointSourceConnectorConfigInput` +### `shared.SharePointSourceConnectorConfigInput` ```python -value: shared.SharepointSourceConnectorConfigInput = /* values here */ +value: shared.SharePointSourceConnectorConfigInput = /* values here */ ``` ### `shared.SnowflakeSourceConnectorConfigInput` @@ -117,3 +117,9 @@ value: shared.SnowflakeSourceConnectorConfigInput = /* values here */ value: shared.JiraSourceConnectorConfigInput = /* values here */ ``` +### `shared.ZendeskSourceConnectorConfigInput` + +```python +value: shared.ZendeskSourceConnectorConfigInput = /* values here */ +``` + diff --git a/docs/models/shared/zendesksourceconnectorconfig.md b/docs/models/shared/zendesksourceconnectorconfig.md new file mode 100644 index 00000000..c091ec93 --- /dev/null +++ b/docs/models/shared/zendesksourceconnectorconfig.md @@ -0,0 +1,12 @@ +# ZendeskSourceConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `api_token` | *str* | :heavy_check_mark: | N/A | +| `email` | *str* | :heavy_check_mark: | N/A | +| `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 new file mode 100644 index 00000000..ad236618 --- /dev/null +++ b/docs/models/shared/zendesksourceconnectorconfiginput.md @@ -0,0 +1,12 @@ +# ZendeskSourceConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `api_token` | *str* | :heavy_check_mark: | N/A | +| `email` | *str* | :heavy_check_mark: | N/A | +| `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/jobs/README.md b/docs/sdks/jobs/README.md index 7b33f81b..195fb15d 100644 --- a/docs/sdks/jobs/README.md +++ b/docs/sdks/jobs/README.md @@ -6,7 +6,7 @@ ### Available Operations * [cancel_job](#cancel_job) - Cancel Job -* [download_playground_job](#download_playground_job) - Download Job output +* [download_job_output](#download_job_output) - Download Job output * [get_job](#get_job) - Get Job * [list_jobs](#list_jobs) - List Jobs @@ -52,9 +52,9 @@ with UnstructuredClient() as uc_client: | errors.HTTPValidationError | 422 | application/json | | errors.SDKError | 4XX, 5XX | \*/\* | -## download_playground_job +## download_job_output -Download the output of a playground job. +Download the output of a job from a local workflow. ### Example Usage @@ -64,9 +64,9 @@ from unstructured_client import UnstructuredClient with UnstructuredClient() as uc_client: - res = uc_client.jobs.download_playground_job(request={ + res = uc_client.jobs.download_job_output(request={ "file_id": "", - "job_id": "844a9b13-d032-43c7-8e81-b20a874c4c79", + "job_id": "bddbb621-2124-4cc2-9fa7-c6cdc21dac44", }) assert res.any is not None @@ -78,15 +78,15 @@ with UnstructuredClient() as uc_client: ### Parameters -| Parameter | Type | Required | Description | -| -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------- | -| `request` | [operations.DownloadPlaygroundJobRequest](../../models/operations/downloadplaygroundjobrequest.md) | :heavy_check_mark: | The request object to use for the request. | -| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | -| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | +| Parameter | Type | Required | Description | +| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | +| `request` | [operations.DownloadJobOutputRequest](../../models/operations/downloadjoboutputrequest.md) | :heavy_check_mark: | The request object to use for the request. | +| `retries` | [Optional[utils.RetryConfig]](../../models/utils/retryconfig.md) | :heavy_minus_sign: | Configuration to override the default retry behavior of the client. | +| `server_url` | *Optional[str]* | :heavy_minus_sign: | An optional server URL to use. | ### Response -**[operations.DownloadPlaygroundJobResponse](../../models/operations/downloadplaygroundjobresponse.md)** +**[operations.DownloadJobOutputResponse](../../models/operations/downloadjoboutputresponse.md)** ### Errors diff --git a/docs/sdks/sources/README.md b/docs/sdks/sources/README.md index 9249f44c..1cc5d1da 100644 --- a/docs/sdks/sources/README.md +++ b/docs/sdks/sources/README.md @@ -27,12 +27,12 @@ with UnstructuredClient() as uc_client: res = uc_client.sources.create_source(request={ "create_source_connector": { "config": { + "batch_size": 100, "bucket": "bucket-name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "username": "username", - "batch_size": 100, "collection": "collection_name", "scope": "scope_name", }, @@ -206,12 +206,12 @@ with UnstructuredClient() as uc_client: res = uc_client.sources.update_source(request={ "update_source_connector": { "config": { + "batch_size": 100, "bucket": "bucket-name", "collection_id": "type", "connection_string": "couchbases://cb.abcdefg.cloud.couchbase.com", "password": "password", "username": "username", - "batch_size": 100, "collection": "collection_name", "scope": "scope_name", }, diff --git a/gen.yaml b/gen.yaml index df2a919d..aefd8c69 100644 --- a/gen.yaml +++ b/gen.yaml @@ -12,7 +12,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.31.3 + version: 0.31.4 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pyproject.toml b/pyproject.toml index 9ed13e63..24518987 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.31.3" +version = "0.31.4" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index 0b6677f4..eece95c8 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.31.3" +__version__: str = "0.31.4" __openapi_doc_version__: str = "1.0.81" -__gen_version__: str = "2.558.5" -__user_agent__: str = "speakeasy-sdk/python 0.31.3 2.558.5 1.0.81 unstructured-client" +__gen_version__: str = "2.560.1" +__user_agent__: str = "speakeasy-sdk/python 0.31.4 2.560.1 1.0.81 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/jobs.py b/src/unstructured_client/jobs.py index 5852dba3..50eef1b4 100644 --- a/src/unstructured_client/jobs.py +++ b/src/unstructured_client/jobs.py @@ -229,21 +229,21 @@ async def cancel_job_async( http_res, ) - def download_playground_job( + def download_job_output( self, *, request: Union[ - operations.DownloadPlaygroundJobRequest, - operations.DownloadPlaygroundJobRequestTypedDict, + operations.DownloadJobOutputRequest, + operations.DownloadJobOutputRequestTypedDict, ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.DownloadPlaygroundJobResponse: + ) -> operations.DownloadJobOutputResponse: r"""Download Job output - Download the output of a playground job. + Download the output of a job from a local workflow. :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -259,13 +259,13 @@ def download_playground_job( if server_url is not None: base_url = server_url else: - base_url = operations.DOWNLOAD_PLAYGROUND_JOB_SERVERS[ - operations.DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API + base_url = operations.DOWNLOAD_JOB_OUTPUT_SERVERS[ + operations.DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API ] if not isinstance(request, BaseModel): - request = utils.unmarshal(request, operations.DownloadPlaygroundJobRequest) - request = cast(operations.DownloadPlaygroundJobRequest, request) + request = utils.unmarshal(request, operations.DownloadJobOutputRequest) + request = cast(operations.DownloadJobOutputRequest, request) req = self._build_request( method="GET", @@ -298,7 +298,7 @@ def download_playground_job( http_res = self.do_request( hook_ctx=HookContext( base_url=base_url or "", - operation_id="download_playground_job", + operation_id="download_job_output", oauth2_scopes=[], security_source=self.sdk_configuration.security, ), @@ -309,7 +309,7 @@ def download_playground_job( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return operations.DownloadPlaygroundJobResponse( + return operations.DownloadJobOutputResponse( any=utils.unmarshal_json(http_res.text, Optional[Any]), status_code=http_res.status_code, content_type=http_res.headers.get("Content-Type") or "", @@ -340,21 +340,21 @@ def download_playground_job( http_res, ) - async def download_playground_job_async( + async def download_job_output_async( self, *, request: Union[ - operations.DownloadPlaygroundJobRequest, - operations.DownloadPlaygroundJobRequestTypedDict, + operations.DownloadJobOutputRequest, + operations.DownloadJobOutputRequestTypedDict, ], retries: OptionalNullable[utils.RetryConfig] = UNSET, server_url: Optional[str] = None, timeout_ms: Optional[int] = None, http_headers: Optional[Mapping[str, str]] = None, - ) -> operations.DownloadPlaygroundJobResponse: + ) -> operations.DownloadJobOutputResponse: r"""Download Job output - Download the output of a playground job. + Download the output of a job from a local workflow. :param request: The request object to send. :param retries: Override the default retry configuration for this method @@ -370,13 +370,13 @@ async def download_playground_job_async( if server_url is not None: base_url = server_url else: - base_url = operations.DOWNLOAD_PLAYGROUND_JOB_SERVERS[ - operations.DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API + base_url = operations.DOWNLOAD_JOB_OUTPUT_SERVERS[ + operations.DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API ] if not isinstance(request, BaseModel): - request = utils.unmarshal(request, operations.DownloadPlaygroundJobRequest) - request = cast(operations.DownloadPlaygroundJobRequest, request) + request = utils.unmarshal(request, operations.DownloadJobOutputRequest) + request = cast(operations.DownloadJobOutputRequest, request) req = self._build_request_async( method="GET", @@ -409,7 +409,7 @@ async def download_playground_job_async( http_res = await self.do_request_async( hook_ctx=HookContext( base_url=base_url or "", - operation_id="download_playground_job", + operation_id="download_job_output", oauth2_scopes=[], security_source=self.sdk_configuration.security, ), @@ -420,7 +420,7 @@ async def download_playground_job_async( response_data: Any = None if utils.match_response(http_res, "200", "application/json"): - return operations.DownloadPlaygroundJobResponse( + return operations.DownloadJobOutputResponse( any=utils.unmarshal_json(http_res.text, Optional[Any]), status_code=http_res.status_code, content_type=http_res.headers.get("Content-Type") or "", diff --git a/src/unstructured_client/models/operations/__init__.py b/src/unstructured_client/models/operations/__init__.py index 5ebaccbc..9c3b7a53 100644 --- a/src/unstructured_client/models/operations/__init__.py +++ b/src/unstructured_client/models/operations/__init__.py @@ -56,13 +56,13 @@ DeleteWorkflowResponse, DeleteWorkflowResponseTypedDict, ) -from .download_playground_job import ( - DOWNLOAD_PLAYGROUND_JOB_SERVERS, - DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API, - DownloadPlaygroundJobRequest, - DownloadPlaygroundJobRequestTypedDict, - DownloadPlaygroundJobResponse, - DownloadPlaygroundJobResponseTypedDict, +from .download_job_output import ( + DOWNLOAD_JOB_OUTPUT_SERVERS, + DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API, + DownloadJobOutputRequest, + DownloadJobOutputRequestTypedDict, + DownloadJobOutputResponse, + DownloadJobOutputResponseTypedDict, ) from .get_destination import ( GET_DESTINATION_SERVERS, @@ -203,8 +203,8 @@ "DELETE_SOURCE_SERVER_PLATFORM_API", "DELETE_WORKFLOW_SERVERS", "DELETE_WORKFLOW_SERVER_PLATFORM_API", - "DOWNLOAD_PLAYGROUND_JOB_SERVERS", - "DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API", + "DOWNLOAD_JOB_OUTPUT_SERVERS", + "DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API", "DeleteDestinationRequest", "DeleteDestinationRequestTypedDict", "DeleteDestinationResponse", @@ -217,10 +217,10 @@ "DeleteWorkflowRequestTypedDict", "DeleteWorkflowResponse", "DeleteWorkflowResponseTypedDict", - "DownloadPlaygroundJobRequest", - "DownloadPlaygroundJobRequestTypedDict", - "DownloadPlaygroundJobResponse", - "DownloadPlaygroundJobResponseTypedDict", + "DownloadJobOutputRequest", + "DownloadJobOutputRequestTypedDict", + "DownloadJobOutputResponse", + "DownloadJobOutputResponseTypedDict", "GET_DESTINATION_SERVERS", "GET_DESTINATION_SERVER_PLATFORM_API", "GET_JOB_SERVERS", diff --git a/src/unstructured_client/models/operations/download_playground_job.py b/src/unstructured_client/models/operations/download_job_output.py similarity index 88% rename from src/unstructured_client/models/operations/download_playground_job.py rename to src/unstructured_client/models/operations/download_job_output.py index ec7ecb81..2e31035f 100644 --- a/src/unstructured_client/models/operations/download_playground_job.py +++ b/src/unstructured_client/models/operations/download_job_output.py @@ -20,15 +20,15 @@ QueryParamMetadata, ) -DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API = "platform-api" +DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API = "platform-api" r"""Unstructured Platform API""" -DOWNLOAD_PLAYGROUND_JOB_SERVERS = { - DOWNLOAD_PLAYGROUND_JOB_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", +DOWNLOAD_JOB_OUTPUT_SERVERS = { + DOWNLOAD_JOB_OUTPUT_SERVER_PLATFORM_API: "https://platform.unstructuredapp.io/", } -class DownloadPlaygroundJobRequestTypedDict(TypedDict): +class DownloadJobOutputRequestTypedDict(TypedDict): file_id: str r"""ID of the file to download""" job_id: str @@ -37,7 +37,7 @@ class DownloadPlaygroundJobRequestTypedDict(TypedDict): unstructured_api_key: NotRequired[Nullable[str]] -class DownloadPlaygroundJobRequest(BaseModel): +class DownloadJobOutputRequest(BaseModel): file_id: Annotated[ str, FieldMetadata(query=QueryParamMetadata(style="form", explode=True)) ] @@ -90,7 +90,7 @@ def serialize_model(self, handler): return m -class DownloadPlaygroundJobResponseTypedDict(TypedDict): +class DownloadJobOutputResponseTypedDict(TypedDict): content_type: str r"""HTTP response content type for this operation""" status_code: int @@ -101,7 +101,7 @@ class DownloadPlaygroundJobResponseTypedDict(TypedDict): r"""Successful Response""" -class DownloadPlaygroundJobResponse(BaseModel): +class DownloadJobOutputResponse(BaseModel): content_type: str r"""HTTP response content type for this operation""" diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index f671c8cf..32fc4ca0 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -76,14 +76,6 @@ ) from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule from .crontabentry import CronTabEntry, CronTabEntryTypedDict -from .databricks_volumessourceconnectorconfig import ( - DatabricksVolumesSourceConnectorConfig, - DatabricksVolumesSourceConnectorConfigTypedDict, -) -from .databricks_volumessourceconnectorconfiginput import ( - DatabricksVolumesSourceConnectorConfigInput, - DatabricksVolumesSourceConnectorConfigInputTypedDict, -) from .databricksvdtdestinationconnectorconfig import ( DatabricksVDTDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfigTypedDict, @@ -131,14 +123,6 @@ ElasticsearchConnectorConfigInput, ElasticsearchConnectorConfigInputTypedDict, ) -from .elasticsearchsourceconnectorconfig import ( - ElasticsearchSourceConnectorConfig, - ElasticsearchSourceConnectorConfigTypedDict, -) -from .elasticsearchsourceconnectorconfiginput import ( - ElasticsearchSourceConnectorConfigInput, - ElasticsearchSourceConnectorConfigInputTypedDict, -) from .gcsdestinationconnectorconfig import ( GCSDestinationConnectorConfig, GCSDestinationConnectorConfigTypedDict, @@ -173,6 +157,14 @@ ) from .jobinformation import JobInformation, JobInformationTypedDict from .jobstatus import JobStatus +from .kafkaclouddestinationconnectorconfig import ( + KafkaCloudDestinationConnectorConfig, + KafkaCloudDestinationConnectorConfigTypedDict, +) +from .kafkaclouddestinationconnectorconfiginput import ( + KafkaCloudDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInputTypedDict, +) from .kafkacloudsourceconnectorconfig import ( KafkaCloudSourceConnectorConfig, KafkaCloudSourceConnectorConfigTypedDict, @@ -197,14 +189,6 @@ MongoDBConnectorConfigInput, MongoDBConnectorConfigInputTypedDict, ) -from .mongodbsourceconnectorconfig import ( - MongodbSourceConnectorConfig, - MongodbSourceConnectorConfigTypedDict, -) -from .mongodbsourceconnectorconfiginput import ( - MongodbSourceConnectorConfigInput, - MongodbSourceConnectorConfigInputTypedDict, -) from .neo4jdestinationconnectorconfig import ( Neo4jDestinationConnectorConfig, Neo4jDestinationConnectorConfigTypedDict, @@ -314,12 +298,12 @@ ) from .security import Security, SecurityTypedDict from .sharepointsourceconnectorconfig import ( - SharepointSourceConnectorConfig, - SharepointSourceConnectorConfigTypedDict, + SharePointSourceConnectorConfig, + SharePointSourceConnectorConfigTypedDict, ) from .sharepointsourceconnectorconfiginput import ( - SharepointSourceConnectorConfigInput, - SharepointSourceConnectorConfigInputTypedDict, + SharePointSourceConnectorConfigInput, + SharePointSourceConnectorConfigInputTypedDict, ) from .snowflakedestinationconnectorconfig import ( SnowflakeDestinationConnectorConfig, @@ -381,6 +365,14 @@ from .workflowschedule import WorkflowSchedule, WorkflowScheduleTypedDict from .workflowstate import WorkflowState from .workflowtype import WorkflowType +from .zendesksourceconnectorconfig import ( + ZendeskSourceConnectorConfig, + ZendeskSourceConnectorConfigTypedDict, +) +from .zendesksourceconnectorconfiginput import ( + ZendeskSourceConnectorConfigInput, + ZendeskSourceConnectorConfigInputTypedDict, +) __all__ = [ @@ -434,10 +426,6 @@ "DatabricksVolumesConnectorConfigInput", "DatabricksVolumesConnectorConfigInputTypedDict", "DatabricksVolumesConnectorConfigTypedDict", - "DatabricksVolumesSourceConnectorConfig", - "DatabricksVolumesSourceConnectorConfigInput", - "DatabricksVolumesSourceConnectorConfigInputTypedDict", - "DatabricksVolumesSourceConnectorConfigTypedDict", "DeltaTableConnectorConfig", "DeltaTableConnectorConfigInput", "DeltaTableConnectorConfigInputTypedDict", @@ -455,10 +443,6 @@ "ElasticsearchConnectorConfigInput", "ElasticsearchConnectorConfigInputTypedDict", "ElasticsearchConnectorConfigTypedDict", - "ElasticsearchSourceConnectorConfig", - "ElasticsearchSourceConnectorConfigInput", - "ElasticsearchSourceConnectorConfigInputTypedDict", - "ElasticsearchSourceConnectorConfigTypedDict", "Files", "FilesTypedDict", "GCSDestinationConnectorConfig", @@ -482,6 +466,10 @@ "JobInformation", "JobInformationTypedDict", "JobStatus", + "KafkaCloudDestinationConnectorConfig", + "KafkaCloudDestinationConnectorConfigInput", + "KafkaCloudDestinationConnectorConfigInputTypedDict", + "KafkaCloudDestinationConnectorConfigTypedDict", "KafkaCloudSourceConnectorConfig", "KafkaCloudSourceConnectorConfigInput", "KafkaCloudSourceConnectorConfigInputTypedDict", @@ -496,10 +484,6 @@ "MongoDBConnectorConfigInput", "MongoDBConnectorConfigInputTypedDict", "MongoDBConnectorConfigTypedDict", - "MongodbSourceConnectorConfig", - "MongodbSourceConnectorConfigInput", - "MongodbSourceConnectorConfigInputTypedDict", - "MongodbSourceConnectorConfigTypedDict", "Neo4jDestinationConnectorConfig", "Neo4jDestinationConnectorConfigInput", "Neo4jDestinationConnectorConfigInputTypedDict", @@ -556,10 +540,10 @@ "Schedule", "Security", "SecurityTypedDict", - "SharepointSourceConnectorConfig", - "SharepointSourceConnectorConfigInput", - "SharepointSourceConnectorConfigInputTypedDict", - "SharepointSourceConnectorConfigTypedDict", + "SharePointSourceConnectorConfig", + "SharePointSourceConnectorConfigInput", + "SharePointSourceConnectorConfigInputTypedDict", + "SharePointSourceConnectorConfigTypedDict", "SnowflakeDestinationConnectorConfig", "SnowflakeDestinationConnectorConfigInput", "SnowflakeDestinationConnectorConfigInputTypedDict", @@ -602,4 +586,8 @@ "WorkflowScheduleTypedDict", "WorkflowState", "WorkflowType", + "ZendeskSourceConnectorConfig", + "ZendeskSourceConnectorConfigInput", + "ZendeskSourceConnectorConfigInputTypedDict", + "ZendeskSourceConnectorConfigTypedDict", ] diff --git a/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py b/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py index 2f0e9006..1fe9023a 100644 --- a/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/confluencesourceconnectorconfig.py @@ -16,10 +16,10 @@ class ConfluenceSourceConnectorConfigTypedDict(TypedDict): cloud: bool max_num_of_docs_from_each_space: int max_num_of_spaces: int + spaces: Nullable[str] url: str username: str password: NotRequired[Nullable[str]] - spaces: NotRequired[Nullable[str]] token: NotRequired[Nullable[str]] @@ -30,20 +30,20 @@ class ConfluenceSourceConnectorConfig(BaseModel): max_num_of_spaces: int + spaces: Nullable[str] + url: str username: str password: OptionalNullable[str] = UNSET - spaces: OptionalNullable[str] = UNSET - token: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["password", "spaces", "token"] - nullable_fields = ["password", "spaces", "token"] + optional_fields = ["password", "token"] + nullable_fields = ["spaces", "password", "token"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py index f981f7ef..f36e379c 100644 --- a/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py @@ -2,7 +2,6 @@ from __future__ import annotations from pydantic import model_serializer -from typing import Optional from typing_extensions import NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -14,17 +13,19 @@ class CouchbaseSourceConnectorConfigInputTypedDict(TypedDict): + batch_size: int bucket: str collection_id: str connection_string: str password: str username: str - batch_size: NotRequired[int] collection: NotRequired[Nullable[str]] scope: NotRequired[Nullable[str]] class CouchbaseSourceConnectorConfigInput(BaseModel): + batch_size: int + bucket: str collection_id: str @@ -35,15 +36,13 @@ class CouchbaseSourceConnectorConfigInput(BaseModel): username: str - batch_size: Optional[int] = 50 - collection: OptionalNullable[str] = UNSET scope: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["batch_size", "collection", "scope"] + optional_fields = ["collection", "scope"] nullable_fields = ["collection", "scope"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/createdestinationconnector.py b/src/unstructured_client/models/shared/createdestinationconnector.py index dcf7aecc..79525294 100644 --- a/src/unstructured_client/models/shared/createdestinationconnector.py +++ b/src/unstructured_client/models/shared/createdestinationconnector.py @@ -34,6 +34,10 @@ GCSDestinationConnectorConfigInput, GCSDestinationConnectorConfigInputTypedDict, ) +from .kafkaclouddestinationconnectorconfiginput import ( + KafkaCloudDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInputTypedDict, +) from .milvusdestinationconnectorconfiginput import ( MilvusDestinationConnectorConfigInput, MilvusDestinationConnectorConfigInputTypedDict, @@ -50,9 +54,9 @@ OneDriveDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInputTypedDict, ) -from .pineconedestinationconnectorconfig import ( - PineconeDestinationConnectorConfig, - PineconeDestinationConnectorConfigTypedDict, +from .pineconedestinationconnectorconfiginput import ( + PineconeDestinationConnectorConfigInput, + PineconeDestinationConnectorConfigInputTypedDict, ) from .postgresdestinationconnectorconfiginput import ( PostgresDestinationConnectorConfigInput, @@ -87,23 +91,24 @@ "ConfigTypedDict", Union[ GCSDestinationConnectorConfigInputTypedDict, + ElasticsearchConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, - ElasticsearchConnectorConfigInputTypedDict, MongoDBConnectorConfigInputTypedDict, - PineconeDestinationConnectorConfigTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, + PineconeDestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, - S3DestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, - DatabricksVDTDestinationConnectorConfigInputTypedDict, - PostgresDestinationConnectorConfigInputTypedDict, + S3DestinationConnectorConfigInputTypedDict, MilvusDestinationConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + PostgresDestinationConnectorConfigInputTypedDict, + KafkaCloudDestinationConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, + DatabricksVDTDestinationConnectorConfigInputTypedDict, SnowflakeDestinationConnectorConfigInputTypedDict, ], ) @@ -113,23 +118,24 @@ "Config", Union[ GCSDestinationConnectorConfigInput, + ElasticsearchConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, - ElasticsearchConnectorConfigInput, MongoDBConnectorConfigInput, - PineconeDestinationConnectorConfig, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, + PineconeDestinationConnectorConfigInput, AstraDBConnectorConfigInput, Neo4jDestinationConnectorConfigInput, - S3DestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, - DatabricksVDTDestinationConnectorConfigInput, - PostgresDestinationConnectorConfigInput, + S3DestinationConnectorConfigInput, MilvusDestinationConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + PostgresDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, + DatabricksVDTDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInput, ], ) diff --git a/src/unstructured_client/models/shared/createsourceconnector.py b/src/unstructured_client/models/shared/createsourceconnector.py index 81bd61f9..bd296e1e 100644 --- a/src/unstructured_client/models/shared/createsourceconnector.py +++ b/src/unstructured_client/models/shared/createsourceconnector.py @@ -17,17 +17,17 @@ CouchbaseSourceConnectorConfigInput, CouchbaseSourceConnectorConfigInputTypedDict, ) -from .databricks_volumessourceconnectorconfiginput import ( - DatabricksVolumesSourceConnectorConfigInput, - DatabricksVolumesSourceConnectorConfigInputTypedDict, +from .databricksvolumesconnectorconfiginput import ( + DatabricksVolumesConnectorConfigInput, + DatabricksVolumesConnectorConfigInputTypedDict, ) from .dropboxsourceconnectorconfiginput import ( DropboxSourceConnectorConfigInput, DropboxSourceConnectorConfigInputTypedDict, ) -from .elasticsearchsourceconnectorconfiginput import ( - ElasticsearchSourceConnectorConfigInput, - ElasticsearchSourceConnectorConfigInputTypedDict, +from .elasticsearchconnectorconfiginput import ( + ElasticsearchConnectorConfigInput, + ElasticsearchConnectorConfigInputTypedDict, ) from .gcssourceconnectorconfiginput import ( GCSSourceConnectorConfigInput, @@ -45,9 +45,9 @@ KafkaCloudSourceConnectorConfigInput, KafkaCloudSourceConnectorConfigInputTypedDict, ) -from .mongodbsourceconnectorconfiginput import ( - MongodbSourceConnectorConfigInput, - MongodbSourceConnectorConfigInputTypedDict, +from .mongodbconnectorconfiginput import ( + MongoDBConnectorConfigInput, + MongoDBConnectorConfigInputTypedDict, ) from .onedrivesourceconnectorconfiginput import ( OneDriveSourceConnectorConfigInput, @@ -70,14 +70,18 @@ SalesforceSourceConnectorConfigInputTypedDict, ) from .sharepointsourceconnectorconfiginput import ( - SharepointSourceConnectorConfigInput, - SharepointSourceConnectorConfigInputTypedDict, + SharePointSourceConnectorConfigInput, + SharePointSourceConnectorConfigInputTypedDict, ) from .snowflakesourceconnectorconfiginput import ( SnowflakeSourceConnectorConfigInput, SnowflakeSourceConnectorConfigInputTypedDict, ) from .sourceconnectortype import SourceConnectorType +from .zendesksourceconnectorconfiginput import ( + ZendeskSourceConnectorConfigInput, + ZendeskSourceConnectorConfigInputTypedDict, +) from typing import Union from typing_extensions import TypeAliasType, TypedDict from unstructured_client.types import BaseModel @@ -86,25 +90,26 @@ CreateSourceConnectorConfigTypedDict = TypeAliasType( "CreateSourceConnectorConfigTypedDict", Union[ - GCSSourceConnectorConfigInputTypedDict, - MongodbSourceConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, BoxSourceConnectorConfigInputTypedDict, + GCSSourceConnectorConfigInputTypedDict, + ElasticsearchConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, - ElasticsearchSourceConnectorConfigInputTypedDict, - SharepointSourceConnectorConfigInputTypedDict, SalesforceSourceConnectorConfigInputTypedDict, GoogleDriveSourceConnectorConfigInputTypedDict, + ZendeskSourceConnectorConfigInputTypedDict, + SharePointSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - DatabricksVolumesSourceConnectorConfigInputTypedDict, - KafkaCloudSourceConnectorConfigInputTypedDict, + S3SourceConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, - PostgresSourceConnectorConfigInputTypedDict, - S3SourceConnectorConfigInputTypedDict, - SnowflakeSourceConnectorConfigInputTypedDict, - CouchbaseSourceConnectorConfigInputTypedDict, + KafkaCloudSourceConnectorConfigInputTypedDict, ConfluenceSourceConnectorConfigInputTypedDict, JiraSourceConnectorConfigInputTypedDict, + CouchbaseSourceConnectorConfigInputTypedDict, + PostgresSourceConnectorConfigInputTypedDict, + SnowflakeSourceConnectorConfigInputTypedDict, ], ) @@ -112,25 +117,26 @@ CreateSourceConnectorConfig = TypeAliasType( "CreateSourceConnectorConfig", Union[ - GCSSourceConnectorConfigInput, - MongodbSourceConnectorConfigInput, + MongoDBConnectorConfigInput, BoxSourceConnectorConfigInput, + GCSSourceConnectorConfigInput, + ElasticsearchConnectorConfigInput, DropboxSourceConnectorConfigInput, - ElasticsearchSourceConnectorConfigInput, - SharepointSourceConnectorConfigInput, SalesforceSourceConnectorConfigInput, GoogleDriveSourceConnectorConfigInput, + ZendeskSourceConnectorConfigInput, + SharePointSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - DatabricksVolumesSourceConnectorConfigInput, - KafkaCloudSourceConnectorConfigInput, + S3SourceConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, OneDriveSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, - PostgresSourceConnectorConfigInput, - S3SourceConnectorConfigInput, - SnowflakeSourceConnectorConfigInput, - CouchbaseSourceConnectorConfigInput, + KafkaCloudSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInput, JiraSourceConnectorConfigInput, + CouchbaseSourceConnectorConfigInput, + PostgresSourceConnectorConfigInput, + SnowflakeSourceConnectorConfigInput, ], ) diff --git a/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfig.py b/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfig.py deleted file mode 100644 index a2010951..00000000 --- a/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfig.py +++ /dev/null @@ -1,31 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class DatabricksVolumesSourceConnectorConfigTypedDict(TypedDict): - catalog: str - client_id: str - client_secret: str - host: str - schema_name: str - volume: str - volume_path: str - - -class DatabricksVolumesSourceConnectorConfig(BaseModel): - catalog: str - - client_id: str - - client_secret: str - - host: str - - schema_name: str - - volume: str - - volume_path: str diff --git a/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfiginput.py b/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfiginput.py deleted file mode 100644 index 1e7edf25..00000000 --- a/src/unstructured_client/models/shared/databricks_volumessourceconnectorconfiginput.py +++ /dev/null @@ -1,31 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class DatabricksVolumesSourceConnectorConfigInputTypedDict(TypedDict): - catalog: str - client_id: str - client_secret: str - host: str - schema_name: str - volume: str - volume_path: str - - -class DatabricksVolumesSourceConnectorConfigInput(BaseModel): - catalog: str - - client_id: str - - client_secret: str - - host: str - - schema_name: str - - volume: str - - volume_path: str diff --git a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py index e1403ea2..aef17601 100644 --- a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py +++ b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfig.py @@ -3,6 +3,7 @@ from __future__ import annotations import pydantic from pydantic import model_serializer +from typing import Optional from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -16,9 +17,14 @@ class DatabricksVDTDestinationConnectorConfigTypedDict(TypedDict): catalog: str database: str + http_path: str + server_hostname: str table_name: str volume: str - schema_: NotRequired[Nullable[str]] + client_id: NotRequired[Nullable[str]] + client_secret: NotRequired[Nullable[str]] + schema_: NotRequired[str] + token: NotRequired[Nullable[str]] volume_path: NotRequired[Nullable[str]] @@ -27,18 +33,34 @@ class DatabricksVDTDestinationConnectorConfig(BaseModel): database: str + http_path: str + + server_hostname: str + table_name: str volume: str - schema_: Annotated[OptionalNullable[str], pydantic.Field(alias="schema")] = UNSET + client_id: OptionalNullable[str] = UNSET + + client_secret: OptionalNullable[str] = UNSET + + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = "default" + + token: OptionalNullable[str] = UNSET volume_path: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["schema", "volume_path"] - nullable_fields = ["schema", "volume_path"] + optional_fields = [ + "client_id", + "client_secret", + "schema", + "token", + "volume_path", + ] + nullable_fields = ["client_id", "client_secret", "token", "volume_path"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py index 88ff88d3..e12eb64d 100644 --- a/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/databricksvdtdestinationconnectorconfiginput.py @@ -1,8 +1,10 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +import pydantic from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import ( BaseModel, Nullable, @@ -13,33 +15,51 @@ class DatabricksVDTDestinationConnectorConfigInputTypedDict(TypedDict): + catalog: str database: str http_path: str server_hostname: str + table_name: str + volume: str client_id: NotRequired[Nullable[str]] client_secret: NotRequired[Nullable[str]] + schema_: NotRequired[str] token: NotRequired[Nullable[str]] volume_path: NotRequired[Nullable[str]] class DatabricksVDTDestinationConnectorConfigInput(BaseModel): + catalog: str + database: str http_path: str server_hostname: str + table_name: str + + volume: str + client_id: OptionalNullable[str] = UNSET client_secret: OptionalNullable[str] = UNSET + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None + token: OptionalNullable[str] = UNSET volume_path: OptionalNullable[str] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["client_id", "client_secret", "token", "volume_path"] + optional_fields = [ + "client_id", + "client_secret", + "schema", + "token", + "volume_path", + ] nullable_fields = ["client_id", "client_secret", "token", "volume_path"] null_default_fields = [] diff --git a/src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py b/src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py index b97ef415..8e13e3d7 100644 --- a/src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py +++ b/src/unstructured_client/models/shared/databricksvolumesconnectorconfig.py @@ -2,7 +2,8 @@ from __future__ import annotations import pydantic -from typing_extensions import Annotated, TypedDict +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import BaseModel @@ -11,9 +12,9 @@ class DatabricksVolumesConnectorConfigTypedDict(TypedDict): client_id: str client_secret: str host: str - schema_: str volume: str volume_path: str + schema_: NotRequired[str] class DatabricksVolumesConnectorConfig(BaseModel): @@ -25,8 +26,8 @@ class DatabricksVolumesConnectorConfig(BaseModel): host: str - schema_: Annotated[str, pydantic.Field(alias="schema")] - volume: str volume_path: str + + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = "default" diff --git a/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py b/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py index 1c6e76c6..f516bde4 100644 --- a/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/databricksvolumesconnectorconfiginput.py @@ -2,7 +2,8 @@ from __future__ import annotations import pydantic -from typing_extensions import Annotated, TypedDict +from typing import Optional +from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import BaseModel @@ -11,9 +12,9 @@ class DatabricksVolumesConnectorConfigInputTypedDict(TypedDict): client_id: str client_secret: str host: str - schema_: str volume: str volume_path: str + schema_: NotRequired[str] class DatabricksVolumesConnectorConfigInput(BaseModel): @@ -25,8 +26,8 @@ class DatabricksVolumesConnectorConfigInput(BaseModel): host: str - schema_: Annotated[str, pydantic.Field(alias="schema")] - volume: str volume_path: str + + schema_: Annotated[Optional[str], pydantic.Field(alias="schema")] = None diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index 9f08de98..781e1525 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -34,6 +34,10 @@ GCSDestinationConnectorConfig, GCSDestinationConnectorConfigTypedDict, ) +from .kafkaclouddestinationconnectorconfig import ( + KafkaCloudDestinationConnectorConfig, + KafkaCloudDestinationConnectorConfigTypedDict, +) from .milvusdestinationconnectorconfig import ( MilvusDestinationConnectorConfig, MilvusDestinationConnectorConfigTypedDict, @@ -50,9 +54,9 @@ OneDriveDestinationConnectorConfig, OneDriveDestinationConnectorConfigTypedDict, ) -from .pineconedestinationconnectorconfiginput import ( - PineconeDestinationConnectorConfigInput, - PineconeDestinationConnectorConfigInputTypedDict, +from .pineconedestinationconnectorconfig import ( + PineconeDestinationConnectorConfig, + PineconeDestinationConnectorConfigTypedDict, ) from .postgresdestinationconnectorconfig import ( PostgresDestinationConnectorConfig, @@ -95,23 +99,24 @@ "DestinationConnectorInformationConfigTypedDict", Union[ GCSDestinationConnectorConfigTypedDict, + ElasticsearchConnectorConfigTypedDict, AzureAISearchConnectorConfigTypedDict, WeaviateDestinationConnectorConfigTypedDict, - ElasticsearchConnectorConfigTypedDict, MongoDBConnectorConfigTypedDict, - QdrantCloudDestinationConnectorConfigTypedDict, DeltaTableConnectorConfigTypedDict, - PineconeDestinationConnectorConfigInputTypedDict, - Neo4jDestinationConnectorConfigTypedDict, + QdrantCloudDestinationConnectorConfigTypedDict, + PineconeDestinationConnectorConfigTypedDict, AstraDBConnectorConfigTypedDict, - DatabricksVDTDestinationConnectorConfigTypedDict, + Neo4jDestinationConnectorConfigTypedDict, OneDriveDestinationConnectorConfigTypedDict, S3DestinationConnectorConfigTypedDict, MilvusDestinationConnectorConfigTypedDict, - PostgresDestinationConnectorConfigTypedDict, DatabricksVolumesConnectorConfigTypedDict, + PostgresDestinationConnectorConfigTypedDict, + KafkaCloudDestinationConnectorConfigTypedDict, CouchbaseDestinationConnectorConfigTypedDict, RedisDestinationConnectorConfigTypedDict, + DatabricksVDTDestinationConnectorConfigTypedDict, SnowflakeDestinationConnectorConfigTypedDict, ], ) @@ -121,23 +126,24 @@ "DestinationConnectorInformationConfig", Union[ GCSDestinationConnectorConfig, + ElasticsearchConnectorConfig, AzureAISearchConnectorConfig, WeaviateDestinationConnectorConfig, - ElasticsearchConnectorConfig, MongoDBConnectorConfig, - QdrantCloudDestinationConnectorConfig, DeltaTableConnectorConfig, - PineconeDestinationConnectorConfigInput, - Neo4jDestinationConnectorConfig, + QdrantCloudDestinationConnectorConfig, + PineconeDestinationConnectorConfig, AstraDBConnectorConfig, - DatabricksVDTDestinationConnectorConfig, + Neo4jDestinationConnectorConfig, OneDriveDestinationConnectorConfig, S3DestinationConnectorConfig, MilvusDestinationConnectorConfig, - PostgresDestinationConnectorConfig, DatabricksVolumesConnectorConfig, + PostgresDestinationConnectorConfig, + KafkaCloudDestinationConnectorConfig, CouchbaseDestinationConnectorConfig, RedisDestinationConnectorConfig, + DatabricksVDTDestinationConnectorConfig, SnowflakeDestinationConnectorConfig, ], ) diff --git a/src/unstructured_client/models/shared/destinationconnectortype.py b/src/unstructured_client/models/shared/destinationconnectortype.py index 39cedd02..098a3b38 100644 --- a/src/unstructured_client/models/shared/destinationconnectortype.py +++ b/src/unstructured_client/models/shared/destinationconnectortype.py @@ -13,6 +13,7 @@ class DestinationConnectorType(str, Enum): DELTA_TABLE = "delta_table" ELASTICSEARCH = "elasticsearch" GCS = "gcs" + KAFKA_CLOUD = "kafka-cloud" MILVUS = "milvus" MONGODB = "mongodb" MOTHERDUCK = "motherduck" diff --git a/src/unstructured_client/models/shared/elasticsearchconnectorconfig.py b/src/unstructured_client/models/shared/elasticsearchconnectorconfig.py index 465819b2..a4c4fb15 100644 --- a/src/unstructured_client/models/shared/elasticsearchconnectorconfig.py +++ b/src/unstructured_client/models/shared/elasticsearchconnectorconfig.py @@ -1,19 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from typing import List from typing_extensions import TypedDict from unstructured_client.types import BaseModel class ElasticsearchConnectorConfigTypedDict(TypedDict): es_api_key: str - hosts: str + hosts: List[str] index_name: str class ElasticsearchConnectorConfig(BaseModel): es_api_key: str - hosts: str + hosts: List[str] index_name: str diff --git a/src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py b/src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py index 4841d114..a17a3a40 100644 --- a/src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/elasticsearchconnectorconfiginput.py @@ -1,19 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations +from typing import List from typing_extensions import TypedDict from unstructured_client.types import BaseModel class ElasticsearchConnectorConfigInputTypedDict(TypedDict): es_api_key: str - hosts: str + hosts: List[str] index_name: str class ElasticsearchConnectorConfigInput(BaseModel): es_api_key: str - hosts: str + hosts: List[str] index_name: str diff --git a/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfig.py b/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfig.py deleted file mode 100644 index 5c58abba..00000000 --- a/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfig.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class ElasticsearchSourceConnectorConfigTypedDict(TypedDict): - es_api_key: str - hosts: str - index_name: str - - -class ElasticsearchSourceConnectorConfig(BaseModel): - es_api_key: str - - hosts: str - - index_name: str diff --git a/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfiginput.py deleted file mode 100644 index 98f1f975..00000000 --- a/src/unstructured_client/models/shared/elasticsearchsourceconnectorconfiginput.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class ElasticsearchSourceConnectorConfigInputTypedDict(TypedDict): - es_api_key: str - hosts: str - index_name: str - - -class ElasticsearchSourceConnectorConfigInput(BaseModel): - es_api_key: str - - hosts: str - - index_name: str diff --git a/src/unstructured_client/models/shared/gcssourceconnectorconfig.py b/src/unstructured_client/models/shared/gcssourceconnectorconfig.py index a0d1d03c..f272af3e 100644 --- a/src/unstructured_client/models/shared/gcssourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/gcssourceconnectorconfig.py @@ -6,11 +6,14 @@ class GCSSourceConnectorConfigTypedDict(TypedDict): + recursive: bool remote_url: str service_account_key: str class GCSSourceConnectorConfig(BaseModel): + recursive: bool + remote_url: str service_account_key: str diff --git a/src/unstructured_client/models/shared/gcssourceconnectorconfiginput.py b/src/unstructured_client/models/shared/gcssourceconnectorconfiginput.py index 649af30a..a68f5b1c 100644 --- a/src/unstructured_client/models/shared/gcssourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/gcssourceconnectorconfiginput.py @@ -1,16 +1,20 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from typing_extensions import TypedDict +from typing import Optional +from typing_extensions import NotRequired, TypedDict from unstructured_client.types import BaseModel class GCSSourceConnectorConfigInputTypedDict(TypedDict): remote_url: str service_account_key: str + recursive: NotRequired[bool] class GCSSourceConnectorConfigInput(BaseModel): remote_url: str service_account_key: str + + recursive: Optional[bool] = True diff --git a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py new file mode 100644 index 00000000..ad0e937a --- /dev/null +++ b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfig.py @@ -0,0 +1,68 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class KafkaCloudDestinationConnectorConfigTypedDict(TypedDict): + batch_size: int + bootstrap_servers: str + kafka_api_key: str + port: int + secret: str + topic: str + group_id: NotRequired[Nullable[str]] + + +class KafkaCloudDestinationConnectorConfig(BaseModel): + batch_size: int + + bootstrap_servers: str + + kafka_api_key: str + + port: int + + secret: str + + topic: str + + group_id: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["group_id"] + nullable_fields = ["group_id"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py new file mode 100644 index 00000000..bc9b1a48 --- /dev/null +++ b/src/unstructured_client/models/shared/kafkaclouddestinationconnectorconfiginput.py @@ -0,0 +1,69 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class KafkaCloudDestinationConnectorConfigInputTypedDict(TypedDict): + bootstrap_servers: str + kafka_api_key: str + secret: str + topic: str + batch_size: NotRequired[int] + group_id: NotRequired[Nullable[str]] + port: NotRequired[int] + + +class KafkaCloudDestinationConnectorConfigInput(BaseModel): + bootstrap_servers: str + + kafka_api_key: str + + secret: str + + topic: str + + batch_size: Optional[int] = 100 + + group_id: OptionalNullable[str] = UNSET + + port: Optional[int] = 9092 + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["batch_size", "group_id", "port"] + nullable_fields = ["group_id"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/mongodbsourceconnectorconfig.py b/src/unstructured_client/models/shared/mongodbsourceconnectorconfig.py deleted file mode 100644 index df7ba7f7..00000000 --- a/src/unstructured_client/models/shared/mongodbsourceconnectorconfig.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class MongodbSourceConnectorConfigTypedDict(TypedDict): - collection: str - database: str - uri: str - - -class MongodbSourceConnectorConfig(BaseModel): - collection: str - - database: str - - uri: str diff --git a/src/unstructured_client/models/shared/mongodbsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/mongodbsourceconnectorconfiginput.py deleted file mode 100644 index 6a7457fe..00000000 --- a/src/unstructured_client/models/shared/mongodbsourceconnectorconfiginput.py +++ /dev/null @@ -1,19 +0,0 @@ -"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" - -from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel - - -class MongodbSourceConnectorConfigInputTypedDict(TypedDict): - collection: str - database: str - uri: str - - -class MongodbSourceConnectorConfigInput(BaseModel): - collection: str - - database: str - - uri: str diff --git a/src/unstructured_client/models/shared/postgressourceconnectorconfig.py b/src/unstructured_client/models/shared/postgressourceconnectorconfig.py index 5d514a28..67bd4b39 100644 --- a/src/unstructured_client/models/shared/postgressourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/postgressourceconnectorconfig.py @@ -1,18 +1,28 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel +from pydantic import model_serializer +from typing import List +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) class PostgresSourceConnectorConfigTypedDict(TypedDict): batch_size: int database: str host: str + id_column: str password: str port: int table_name: str username: str + fields: NotRequired[Nullable[List[str]]] class PostgresSourceConnectorConfig(BaseModel): @@ -22,6 +32,8 @@ class PostgresSourceConnectorConfig(BaseModel): host: str + id_column: str + password: str port: int @@ -29,3 +41,35 @@ class PostgresSourceConnectorConfig(BaseModel): table_name: str username: str + + fields: OptionalNullable[List[str]] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["fields"] + nullable_fields = ["fields"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py b/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py index d2f1311f..e093fb63 100644 --- a/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/postgressourceconnectorconfiginput.py @@ -1,32 +1,75 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from typing import Optional +from pydantic import model_serializer +from typing import List, Optional from typing_extensions import NotRequired, TypedDict -from unstructured_client.types import BaseModel +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) class PostgresSourceConnectorConfigInputTypedDict(TypedDict): + batch_size: int database: str host: str password: str + port: int table_name: str username: str - batch_size: NotRequired[int] - port: NotRequired[int] + fields: NotRequired[Nullable[List[str]]] + id_column: NotRequired[str] class PostgresSourceConnectorConfigInput(BaseModel): + batch_size: int + database: str host: str password: str + port: int + table_name: str username: str - batch_size: Optional[int] = 100 + fields: OptionalNullable[List[str]] = UNSET + + id_column: Optional[str] = "id" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["fields", "id_column"] + nullable_fields = ["fields"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val - port: Optional[int] = 5432 + return m diff --git a/src/unstructured_client/models/shared/salesforcesourceconnectorconfig.py b/src/unstructured_client/models/shared/salesforcesourceconnectorconfig.py index 71b4a288..0c45cbf7 100644 --- a/src/unstructured_client/models/shared/salesforcesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/salesforcesourceconnectorconfig.py @@ -1,59 +1,23 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from typing import List +from typing_extensions import TypedDict +from unstructured_client.types import BaseModel class SalesforceSourceConnectorConfigTypedDict(TypedDict): - password: str - security_token: str + categories: List[str] + consumer_key: str + private_key: str username: str - domain: NotRequired[Nullable[str]] class SalesforceSourceConnectorConfig(BaseModel): - password: str + categories: List[str] - security_token: str + consumer_key: str - username: str - - domain: OptionalNullable[str] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["domain"] - nullable_fields = ["domain"] - null_default_fields = [] - - serialized = handler(self) - - m = {} + private_key: str - for n, f in self.model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m + username: str diff --git a/src/unstructured_client/models/shared/salesforcesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/salesforcesourceconnectorconfiginput.py index a745f4ee..90b93ebd 100644 --- a/src/unstructured_client/models/shared/salesforcesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/salesforcesourceconnectorconfiginput.py @@ -1,59 +1,23 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from pydantic import model_serializer -from typing_extensions import NotRequired, TypedDict -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from typing import List +from typing_extensions import TypedDict +from unstructured_client.types import BaseModel class SalesforceSourceConnectorConfigInputTypedDict(TypedDict): - password: str - security_token: str + categories: List[str] + consumer_key: str + private_key: str username: str - domain: NotRequired[Nullable[str]] class SalesforceSourceConnectorConfigInput(BaseModel): - password: str + categories: List[str] - security_token: str + consumer_key: str - username: str - - domain: OptionalNullable[str] = UNSET - - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["domain"] - nullable_fields = ["domain"] - null_default_fields = [] - - serialized = handler(self) - - m = {} + private_key: str - for n, f in self.model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) - - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member - - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val - - return m + username: str diff --git a/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py b/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py index 385aa0af..742e7ba5 100644 --- a/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/sharepointsourceconnectorconfig.py @@ -1,22 +1,62 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class SharePointSourceConnectorConfigTypedDict(TypedDict): + client_cred: str + client_id: str + recursive: bool + site: str + path: NotRequired[Nullable[str]] + +class SharePointSourceConnectorConfig(BaseModel): + client_cred: str -class SharepointSourceConnectorConfigTypedDict(TypedDict): client_id: str - client_secret: str - site_url: str - tenant_id: str + recursive: bool -class SharepointSourceConnectorConfig(BaseModel): - client_id: str + site: str + + path: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["path"] + nullable_fields = ["path"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) - client_secret: str + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member - site_url: str + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val - tenant_id: str + return m diff --git a/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py index 2af480b0..2f1ebff6 100644 --- a/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/sharepointsourceconnectorconfiginput.py @@ -1,22 +1,63 @@ """Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" from __future__ import annotations -from typing_extensions import TypedDict -from unstructured_client.types import BaseModel +from pydantic import model_serializer +from typing import Optional +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class SharePointSourceConnectorConfigInputTypedDict(TypedDict): + client_cred: str + client_id: str + site: str + path: NotRequired[Nullable[str]] + recursive: NotRequired[bool] + +class SharePointSourceConnectorConfigInput(BaseModel): + client_cred: str -class SharepointSourceConnectorConfigInputTypedDict(TypedDict): client_id: str - client_secret: str - site_url: str - tenant_id: str + site: str -class SharepointSourceConnectorConfigInput(BaseModel): - client_id: str + path: OptionalNullable[str] = UNSET + + recursive: Optional[bool] = False + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["path", "recursive"] + nullable_fields = ["path"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) - client_secret: str + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member - site_url: str + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val - tenant_id: str + return m diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py index 6e8d67c6..b61f13c9 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfig.py @@ -2,68 +2,47 @@ from __future__ import annotations import pydantic -from pydantic import model_serializer -from typing_extensions import Annotated, NotRequired, TypedDict -from unstructured_client.types import ( - BaseModel, - Nullable, - OptionalNullable, - UNSET, - UNSET_SENTINEL, -) +from typing import List +from typing_extensions import Annotated, TypedDict +from unstructured_client.types import BaseModel class SnowflakeSourceConnectorConfigTypedDict(TypedDict): account: str + batch_size: int database: str + fields: List[str] + host: str + id_column: str password: str + port: int + role: str schema_: str - username: str - warehouse: str - role: NotRequired[Nullable[str]] + table_name: str + user: str class SnowflakeSourceConnectorConfig(BaseModel): account: str - database: str - - password: str - - schema_: Annotated[str, pydantic.Field(alias="schema")] + batch_size: int - username: str + database: str - warehouse: str + fields: List[str] - role: OptionalNullable[str] = UNSET + host: str - @model_serializer(mode="wrap") - def serialize_model(self, handler): - optional_fields = ["role"] - nullable_fields = ["role"] - null_default_fields = [] + id_column: str - serialized = handler(self) + password: str - m = {} + port: int - for n, f in self.model_fields.items(): - k = f.alias or n - val = serialized.get(k) - serialized.pop(k, None) + role: str - optional_nullable = k in optional_fields and k in nullable_fields - is_set = ( - self.__pydantic_fields_set__.intersection({n}) - or k in null_default_fields - ) # pylint: disable=no-member + schema_: Annotated[str, pydantic.Field(alias="schema")] - if val is not None and val != UNSET_SENTINEL: - m[k] = val - elif val != UNSET_SENTINEL and ( - not k in optional_fields or (optional_nullable and is_set) - ): - m[k] = val + table_name: str - return m + user: str diff --git a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py index 0ace8fc9..81959991 100644 --- a/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/snowflakesourceconnectorconfiginput.py @@ -3,6 +3,7 @@ from __future__ import annotations import pydantic from pydantic import model_serializer +from typing import List, Optional from typing_extensions import Annotated, NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -16,11 +17,16 @@ class SnowflakeSourceConnectorConfigInputTypedDict(TypedDict): account: str database: str + host: str + id_column: str password: str + role: str schema_: str - username: str - warehouse: str - role: NotRequired[Nullable[str]] + table_name: str + user: str + batch_size: NotRequired[int] + fields: NotRequired[Nullable[List[str]]] + port: NotRequired[int] class SnowflakeSourceConnectorConfigInput(BaseModel): @@ -28,20 +34,30 @@ class SnowflakeSourceConnectorConfigInput(BaseModel): database: str + host: str + + id_column: str + password: str + role: str + schema_: Annotated[str, pydantic.Field(alias="schema")] - username: str + table_name: str + + user: str + + batch_size: Optional[int] = 100 - warehouse: str + fields: OptionalNullable[List[str]] = UNSET - role: OptionalNullable[str] = UNSET + port: Optional[int] = 443 @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["role"] - nullable_fields = ["role"] + optional_fields = ["batch_size", "fields", "port"] + nullable_fields = ["fields"] null_default_fields = [] serialized = handler(self) diff --git a/src/unstructured_client/models/shared/sourceconnectorinformation.py b/src/unstructured_client/models/shared/sourceconnectorinformation.py index 7f76f5cb..998a3cd9 100644 --- a/src/unstructured_client/models/shared/sourceconnectorinformation.py +++ b/src/unstructured_client/models/shared/sourceconnectorinformation.py @@ -17,17 +17,17 @@ CouchbaseSourceConnectorConfig, CouchbaseSourceConnectorConfigTypedDict, ) -from .databricks_volumessourceconnectorconfig import ( - DatabricksVolumesSourceConnectorConfig, - DatabricksVolumesSourceConnectorConfigTypedDict, +from .databricksvolumesconnectorconfig import ( + DatabricksVolumesConnectorConfig, + DatabricksVolumesConnectorConfigTypedDict, ) from .dropboxsourceconnectorconfig import ( DropboxSourceConnectorConfig, DropboxSourceConnectorConfigTypedDict, ) -from .elasticsearchsourceconnectorconfig import ( - ElasticsearchSourceConnectorConfig, - ElasticsearchSourceConnectorConfigTypedDict, +from .elasticsearchconnectorconfig import ( + ElasticsearchConnectorConfig, + ElasticsearchConnectorConfigTypedDict, ) from .gcssourceconnectorconfig import ( GCSSourceConnectorConfig, @@ -45,9 +45,9 @@ KafkaCloudSourceConnectorConfig, KafkaCloudSourceConnectorConfigTypedDict, ) -from .mongodbsourceconnectorconfig import ( - MongodbSourceConnectorConfig, - MongodbSourceConnectorConfigTypedDict, +from .mongodbconnectorconfig import ( + MongoDBConnectorConfig, + MongoDBConnectorConfigTypedDict, ) from .onedrivesourceconnectorconfig import ( OneDriveSourceConnectorConfig, @@ -70,14 +70,18 @@ SalesforceSourceConnectorConfigTypedDict, ) from .sharepointsourceconnectorconfig import ( - SharepointSourceConnectorConfig, - SharepointSourceConnectorConfigTypedDict, + SharePointSourceConnectorConfig, + SharePointSourceConnectorConfigTypedDict, ) from .snowflakesourceconnectorconfig import ( SnowflakeSourceConnectorConfig, SnowflakeSourceConnectorConfigTypedDict, ) from .sourceconnectortype import SourceConnectorType +from .zendesksourceconnectorconfig import ( + ZendeskSourceConnectorConfig, + ZendeskSourceConnectorConfigTypedDict, +) from datetime import datetime from pydantic import model_serializer from typing import Union @@ -95,24 +99,25 @@ "SourceConnectorInformationConfigTypedDict", Union[ BoxSourceConnectorConfigTypedDict, - GCSSourceConnectorConfigTypedDict, - MongodbSourceConnectorConfigTypedDict, + MongoDBConnectorConfigTypedDict, DropboxSourceConnectorConfigTypedDict, - ElasticsearchSourceConnectorConfigTypedDict, - SharepointSourceConnectorConfigTypedDict, + ElasticsearchConnectorConfigTypedDict, + GCSSourceConnectorConfigTypedDict, SalesforceSourceConnectorConfigTypedDict, GoogleDriveSourceConnectorConfigTypedDict, + ZendeskSourceConnectorConfigTypedDict, + SharePointSourceConnectorConfigTypedDict, AzureSourceConnectorConfigTypedDict, - DatabricksVolumesSourceConnectorConfigTypedDict, - KafkaCloudSourceConnectorConfigTypedDict, OneDriveSourceConnectorConfigTypedDict, + DatabricksVolumesConnectorConfigTypedDict, OutlookSourceConnectorConfigTypedDict, - PostgresSourceConnectorConfigTypedDict, S3SourceConnectorConfigTypedDict, - SnowflakeSourceConnectorConfigTypedDict, - CouchbaseSourceConnectorConfigTypedDict, + KafkaCloudSourceConnectorConfigTypedDict, ConfluenceSourceConnectorConfigTypedDict, JiraSourceConnectorConfigTypedDict, + CouchbaseSourceConnectorConfigTypedDict, + PostgresSourceConnectorConfigTypedDict, + SnowflakeSourceConnectorConfigTypedDict, ], ) @@ -121,24 +126,25 @@ "SourceConnectorInformationConfig", Union[ BoxSourceConnectorConfig, - GCSSourceConnectorConfig, - MongodbSourceConnectorConfig, + MongoDBConnectorConfig, DropboxSourceConnectorConfig, - ElasticsearchSourceConnectorConfig, - SharepointSourceConnectorConfig, + ElasticsearchConnectorConfig, + GCSSourceConnectorConfig, SalesforceSourceConnectorConfig, GoogleDriveSourceConnectorConfig, + ZendeskSourceConnectorConfig, + SharePointSourceConnectorConfig, AzureSourceConnectorConfig, - DatabricksVolumesSourceConnectorConfig, - KafkaCloudSourceConnectorConfig, OneDriveSourceConnectorConfig, + DatabricksVolumesConnectorConfig, OutlookSourceConnectorConfig, - PostgresSourceConnectorConfig, S3SourceConnectorConfig, - SnowflakeSourceConnectorConfig, - CouchbaseSourceConnectorConfig, + KafkaCloudSourceConnectorConfig, ConfluenceSourceConnectorConfig, JiraSourceConnectorConfig, + CouchbaseSourceConnectorConfig, + PostgresSourceConnectorConfig, + SnowflakeSourceConnectorConfig, ], ) diff --git a/src/unstructured_client/models/shared/sourceconnectortype.py b/src/unstructured_client/models/shared/sourceconnectortype.py index dcf04070..2df7004b 100644 --- a/src/unstructured_client/models/shared/sourceconnectortype.py +++ b/src/unstructured_client/models/shared/sourceconnectortype.py @@ -24,3 +24,4 @@ class SourceConnectorType(str, Enum): SHAREPOINT = "sharepoint" SNOWFLAKE = "snowflake" JIRA = "jira" + ZENDESK = "zendesk" diff --git a/src/unstructured_client/models/shared/updatedestinationconnector.py b/src/unstructured_client/models/shared/updatedestinationconnector.py index 5018b678..7abac038 100644 --- a/src/unstructured_client/models/shared/updatedestinationconnector.py +++ b/src/unstructured_client/models/shared/updatedestinationconnector.py @@ -33,6 +33,10 @@ GCSDestinationConnectorConfigInput, GCSDestinationConnectorConfigInputTypedDict, ) +from .kafkaclouddestinationconnectorconfiginput import ( + KafkaCloudDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInputTypedDict, +) from .milvusdestinationconnectorconfiginput import ( MilvusDestinationConnectorConfigInput, MilvusDestinationConnectorConfigInputTypedDict, @@ -49,9 +53,9 @@ OneDriveDestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInputTypedDict, ) -from .pineconedestinationconnectorconfig import ( - PineconeDestinationConnectorConfig, - PineconeDestinationConnectorConfigTypedDict, +from .pineconedestinationconnectorconfiginput import ( + PineconeDestinationConnectorConfigInput, + PineconeDestinationConnectorConfigInputTypedDict, ) from .postgresdestinationconnectorconfiginput import ( PostgresDestinationConnectorConfigInput, @@ -86,23 +90,24 @@ "UpdateDestinationConnectorConfigTypedDict", Union[ GCSDestinationConnectorConfigInputTypedDict, + ElasticsearchConnectorConfigInputTypedDict, AzureAISearchConnectorConfigInputTypedDict, WeaviateDestinationConnectorConfigInputTypedDict, - ElasticsearchConnectorConfigInputTypedDict, MongoDBConnectorConfigInputTypedDict, - PineconeDestinationConnectorConfigTypedDict, DeltaTableConnectorConfigInputTypedDict, QdrantCloudDestinationConnectorConfigInputTypedDict, + PineconeDestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, Neo4jDestinationConnectorConfigInputTypedDict, - S3DestinationConnectorConfigInputTypedDict, OneDriveDestinationConnectorConfigInputTypedDict, - DatabricksVDTDestinationConnectorConfigInputTypedDict, - PostgresDestinationConnectorConfigInputTypedDict, + S3DestinationConnectorConfigInputTypedDict, MilvusDestinationConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + PostgresDestinationConnectorConfigInputTypedDict, + KafkaCloudDestinationConnectorConfigInputTypedDict, CouchbaseDestinationConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, + DatabricksVDTDestinationConnectorConfigInputTypedDict, SnowflakeDestinationConnectorConfigInputTypedDict, ], ) @@ -112,23 +117,24 @@ "UpdateDestinationConnectorConfig", Union[ GCSDestinationConnectorConfigInput, + ElasticsearchConnectorConfigInput, AzureAISearchConnectorConfigInput, WeaviateDestinationConnectorConfigInput, - ElasticsearchConnectorConfigInput, MongoDBConnectorConfigInput, - PineconeDestinationConnectorConfig, DeltaTableConnectorConfigInput, QdrantCloudDestinationConnectorConfigInput, + PineconeDestinationConnectorConfigInput, AstraDBConnectorConfigInput, Neo4jDestinationConnectorConfigInput, - S3DestinationConnectorConfigInput, OneDriveDestinationConnectorConfigInput, - DatabricksVDTDestinationConnectorConfigInput, - PostgresDestinationConnectorConfigInput, + S3DestinationConnectorConfigInput, MilvusDestinationConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + PostgresDestinationConnectorConfigInput, + KafkaCloudDestinationConnectorConfigInput, CouchbaseDestinationConnectorConfigInput, RedisDestinationConnectorConfigInput, + DatabricksVDTDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInput, ], ) diff --git a/src/unstructured_client/models/shared/updatesourceconnector.py b/src/unstructured_client/models/shared/updatesourceconnector.py index 73602e94..bae5ee7a 100644 --- a/src/unstructured_client/models/shared/updatesourceconnector.py +++ b/src/unstructured_client/models/shared/updatesourceconnector.py @@ -17,17 +17,17 @@ CouchbaseSourceConnectorConfigInput, CouchbaseSourceConnectorConfigInputTypedDict, ) -from .databricks_volumessourceconnectorconfiginput import ( - DatabricksVolumesSourceConnectorConfigInput, - DatabricksVolumesSourceConnectorConfigInputTypedDict, +from .databricksvolumesconnectorconfiginput import ( + DatabricksVolumesConnectorConfigInput, + DatabricksVolumesConnectorConfigInputTypedDict, ) from .dropboxsourceconnectorconfiginput import ( DropboxSourceConnectorConfigInput, DropboxSourceConnectorConfigInputTypedDict, ) -from .elasticsearchsourceconnectorconfiginput import ( - ElasticsearchSourceConnectorConfigInput, - ElasticsearchSourceConnectorConfigInputTypedDict, +from .elasticsearchconnectorconfiginput import ( + ElasticsearchConnectorConfigInput, + ElasticsearchConnectorConfigInputTypedDict, ) from .gcssourceconnectorconfiginput import ( GCSSourceConnectorConfigInput, @@ -45,9 +45,9 @@ KafkaCloudSourceConnectorConfigInput, KafkaCloudSourceConnectorConfigInputTypedDict, ) -from .mongodbsourceconnectorconfiginput import ( - MongodbSourceConnectorConfigInput, - MongodbSourceConnectorConfigInputTypedDict, +from .mongodbconnectorconfiginput import ( + MongoDBConnectorConfigInput, + MongoDBConnectorConfigInputTypedDict, ) from .onedrivesourceconnectorconfiginput import ( OneDriveSourceConnectorConfigInput, @@ -70,13 +70,17 @@ SalesforceSourceConnectorConfigInputTypedDict, ) from .sharepointsourceconnectorconfiginput import ( - SharepointSourceConnectorConfigInput, - SharepointSourceConnectorConfigInputTypedDict, + SharePointSourceConnectorConfigInput, + SharePointSourceConnectorConfigInputTypedDict, ) from .snowflakesourceconnectorconfiginput import ( SnowflakeSourceConnectorConfigInput, SnowflakeSourceConnectorConfigInputTypedDict, ) +from .zendesksourceconnectorconfiginput import ( + ZendeskSourceConnectorConfigInput, + ZendeskSourceConnectorConfigInputTypedDict, +) from typing import Union from typing_extensions import TypeAliasType, TypedDict from unstructured_client.types import BaseModel @@ -85,25 +89,26 @@ UpdateSourceConnectorConfigTypedDict = TypeAliasType( "UpdateSourceConnectorConfigTypedDict", Union[ - GCSSourceConnectorConfigInputTypedDict, - MongodbSourceConnectorConfigInputTypedDict, + MongoDBConnectorConfigInputTypedDict, BoxSourceConnectorConfigInputTypedDict, + GCSSourceConnectorConfigInputTypedDict, + ElasticsearchConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, - ElasticsearchSourceConnectorConfigInputTypedDict, - SharepointSourceConnectorConfigInputTypedDict, SalesforceSourceConnectorConfigInputTypedDict, GoogleDriveSourceConnectorConfigInputTypedDict, + ZendeskSourceConnectorConfigInputTypedDict, + SharePointSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - DatabricksVolumesSourceConnectorConfigInputTypedDict, - KafkaCloudSourceConnectorConfigInputTypedDict, + S3SourceConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, - PostgresSourceConnectorConfigInputTypedDict, - S3SourceConnectorConfigInputTypedDict, - SnowflakeSourceConnectorConfigInputTypedDict, - CouchbaseSourceConnectorConfigInputTypedDict, + KafkaCloudSourceConnectorConfigInputTypedDict, ConfluenceSourceConnectorConfigInputTypedDict, JiraSourceConnectorConfigInputTypedDict, + CouchbaseSourceConnectorConfigInputTypedDict, + PostgresSourceConnectorConfigInputTypedDict, + SnowflakeSourceConnectorConfigInputTypedDict, ], ) @@ -111,25 +116,26 @@ UpdateSourceConnectorConfig = TypeAliasType( "UpdateSourceConnectorConfig", Union[ - GCSSourceConnectorConfigInput, - MongodbSourceConnectorConfigInput, + MongoDBConnectorConfigInput, BoxSourceConnectorConfigInput, + GCSSourceConnectorConfigInput, + ElasticsearchConnectorConfigInput, DropboxSourceConnectorConfigInput, - ElasticsearchSourceConnectorConfigInput, - SharepointSourceConnectorConfigInput, SalesforceSourceConnectorConfigInput, GoogleDriveSourceConnectorConfigInput, + ZendeskSourceConnectorConfigInput, + SharePointSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - DatabricksVolumesSourceConnectorConfigInput, - KafkaCloudSourceConnectorConfigInput, + S3SourceConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, OneDriveSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, - PostgresSourceConnectorConfigInput, - S3SourceConnectorConfigInput, - SnowflakeSourceConnectorConfigInput, - CouchbaseSourceConnectorConfigInput, + KafkaCloudSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInput, JiraSourceConnectorConfigInput, + CouchbaseSourceConnectorConfigInput, + PostgresSourceConnectorConfigInput, + SnowflakeSourceConnectorConfigInput, ], ) diff --git a/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py b/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py new file mode 100644 index 00000000..5b0419b0 --- /dev/null +++ b/src/unstructured_client/models/shared/zendesksourceconnectorconfig.py @@ -0,0 +1,62 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class ZendeskSourceConnectorConfigTypedDict(TypedDict): + api_token: str + email: str + subdomain: str + batch_size: NotRequired[Nullable[int]] + item_type: NotRequired[Nullable[str]] + + +class ZendeskSourceConnectorConfig(BaseModel): + api_token: str + + email: str + + subdomain: str + + batch_size: OptionalNullable[int] = UNSET + + item_type: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["batch_size", "item_type"] + nullable_fields = ["batch_size", "item_type"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py b/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py new file mode 100644 index 00000000..57124521 --- /dev/null +++ b/src/unstructured_client/models/shared/zendesksourceconnectorconfiginput.py @@ -0,0 +1,62 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class ZendeskSourceConnectorConfigInputTypedDict(TypedDict): + api_token: str + email: str + subdomain: str + batch_size: NotRequired[Nullable[int]] + item_type: NotRequired[Nullable[str]] + + +class ZendeskSourceConnectorConfigInput(BaseModel): + api_token: str + + email: str + + subdomain: str + + batch_size: OptionalNullable[int] = UNSET + + item_type: OptionalNullable[str] = UNSET + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["batch_size", "item_type"] + nullable_fields = ["batch_size", "item_type"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in self.model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m From f54c3ea17d6dad3d41495585c2fa0900c22b2bb5 Mon Sep 17 00:00:00 2001 From: Austin Walker Date: Wed, 26 Mar 2025 15:53:14 -0400 Subject: [PATCH 2/2] Remove some overlay fixes for schemas that changed on the backend --- .../onedrivesourceconnectorconfiginput.md | 6 +- docs/models/shared/sourceconnectortype.md | 2 +- docs/models/shared/workflownode.md | 1 + overlay_client.yaml | 273 +----------------- .../onedrivesourceconnectorconfiginput.py | 12 +- .../models/shared/sourceconnectortype.py | 2 +- .../models/shared/workflownode.py | 7 +- 7 files changed, 18 insertions(+), 285 deletions(-) diff --git a/docs/models/shared/onedrivesourceconnectorconfiginput.md b/docs/models/shared/onedrivesourceconnectorconfiginput.md index a6225c24..a1a34863 100644 --- a/docs/models/shared/onedrivesourceconnectorconfiginput.md +++ b/docs/models/shared/onedrivesourceconnectorconfiginput.md @@ -5,10 +5,10 @@ | Field | Type | Required | Description | | ------------------ | ------------------ | ------------------ | ------------------ | +| `authority_url` | *str* | :heavy_check_mark: | N/A | | `client_cred` | *str* | :heavy_check_mark: | N/A | | `client_id` | *str* | :heavy_check_mark: | N/A | | `path` | *str* | :heavy_check_mark: | N/A | +| `tenant` | *str* | :heavy_check_mark: | N/A | | `user_pname` | *str* | :heavy_check_mark: | N/A | -| `authority_url` | *Optional[str]* | :heavy_minus_sign: | N/A | -| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | -| `tenant` | *Optional[str]* | :heavy_minus_sign: | 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/sourceconnectortype.md b/docs/models/shared/sourceconnectortype.md index 9d86bf87..0dfaf5ce 100644 --- a/docs/models/shared/sourceconnectortype.md +++ b/docs/models/shared/sourceconnectortype.md @@ -14,7 +14,7 @@ | `ELASTICSEARCH` | elasticsearch | | `GCS` | gcs | | `GOOGLE_DRIVE` | google_drive | -| `KAFKA_CLOUD` | kafka_cloud | +| `KAFKA_CLOUD` | kafka-cloud | | `MONGODB` | mongodb | | `ONEDRIVE` | onedrive | | `OUTLOOK` | outlook | diff --git a/docs/models/shared/workflownode.md b/docs/models/shared/workflownode.md index 378657bd..1471c9a4 100644 --- a/docs/models/shared/workflownode.md +++ b/docs/models/shared/workflownode.md @@ -8,4 +8,5 @@ | `name` | *str* | :heavy_check_mark: | N/A | | `subtype` | *str* | :heavy_check_mark: | N/A | | `type` | [shared.WorkflowNodeType](../../models/shared/workflownodetype.md) | :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/overlay_client.yaml b/overlay_client.yaml index f7d58de1..dcc35fee 100644 --- a/overlay_client.yaml +++ b/overlay_client.yaml @@ -69,275 +69,4 @@ actions: - target: $["components"]["schemas"]["partition_parameters"]["properties"][*].anyOf[0] description: Add a null default to all optional parameters. Prevents the sdk from sending a default string when param is not specified. update: - "default": null - - target: $["components"]["schemas"]["CreateSourceConnector"]["properties"]["config"]["anyOf"][7]["$ref"] - update: "#/components/schemas/GCSSourceConnectorConfigInput" - - target: $["components"]["schemas"]["CreateSourceConnector"]["properties"]["config"]["anyOf"][8]["$ref"] - update: "#/components/schemas/GoogleDriveSourceConnectorConfigInput" - - target: $["components"]["schemas"]["CreateSourceConnector"]["properties"]["config"]["anyOf"][9]["$ref"] - update: "#/components/schemas/KafkaCloudSourceConnectorConfigInput" - - target: $["components"]["schemas"]["CreateSourceConnector"]["properties"]["config"]["anyOf"][11]["$ref"] - update: "#/components/schemas/OneDriveSourceConnectorConfigInput" - - target: $["components"]["schemas"] - update: - "GCSSourceConnectorConfig": - type: "object" - properties: - "remote_url": - type: "string" - title: "Remote Url" - "service_account_key": - type: "string" - title: "Service Account Key" - title: "GCSSourceConnectorConfig" - required: - - "remote_url" - - "service_account_key" - - target: $["components"]["schemas"] - update: - "GCSSourceConnectorConfigInput": - type: "object" - properties: - "remote_url": - type: "string" - title: "Remote Url" - pattern: "^(gs|gcs):\\/\\/" - "service_account_key": - type: "string" - title: "Service Account Key" - title: "GCSSourceConnectorConfigInput" - required: - - "remote_url" - - "service_account_key" - - target: $["components"]["schemas"] - update: - "GoogleDriveSourceConnectorConfig": - type: "object" - properties: - "drive_id": - type: "string" - title: "Drive Id" - "service_account_key": - type: "string" - title: "Service Account Key" - "extensions": - anyOf: - - type: "string" - - type: "null" - title: "Extensions" - "recursive": - type: "boolean" - title: "Recursive" - title: "GoogleDriveSourceConnectorConfig" - required: - - "drive_id" - - "service_account_key" - - "recursive" - - target: $["components"]["schemas"] - update: - "GoogleDriveSourceConnectorConfigInput": - type: "object" - properties: - "drive_id": - type: "string" - title: "Drive Id" - "service_account_key": - type: "string" - title: "Service Account Key" - "extensions": - anyOf: - - type: "string" - - type: "null" - title: "Extensions" - "recursive": - type: "boolean" - title: "Recursive" - default: true - title: "GoogleDriveSourceConnectorConfigInput" - required: - - "drive_id" - - "service_account_key" - - target: $["components"]["schemas"] - update: - "KafkaCloudSourceConnectorConfig": - type: "object" - properties: - "bootstrap_servers": - type: "string" - title: "Bootstrap Servers" - "port": - type: "integer" - title: "Port" - "group_id": - anyOf: - - type: "string" - - type: "null" - title: "Group Id" - "topic": - type: "string" - title: "Topic" - "kafka_api_key": - type: "string" - title: "Kafka Api Key" - "secret": - type: "string" - title: "Secret" - "num_messages_to_consume": - type: "integer" - title: "Num Messages To Consume" - title: "KafkaCloudSourceConnectorConfig" - required: - - "bootstrap_servers" - - "port" - - "topic" - - "kafka_api_key" - - "secret" - - "num_messages_to_consume" - - target: $["components"]["schemas"] - update: - "KafkaCloudSourceConnectorConfigInput": - type: "object" - properties: - "bootstrap_servers": - type: "string" - title: "Bootstrap Servers" - "port": - type: "integer" - title: "Port" - default: 9092 - "group_id": - anyOf: - - type: "string" - - type: "null" - title: "Group Id" - "topic": - type: "string" - title: "Topic" - "kafka_api_key": - type: "string" - title: "Kafka Api Key" - "secret": - type: "string" - title: "Secret" - "num_messages_to_consume": - type: "integer" - title: "Num Messages To Consume" - default: 100 - title: "KafkaCloudSourceConnectorConfigInput" - required: - - "bootstrap_servers" - - "topic" - - "kafka_api_key" - - "secret" - - target: $["components"]["schemas"] - update: - "OneDriveSourceConnectorConfig": - type: "object" - properties: - "client_id": - type: "string" - title: "Client Id" - "tenant": - type: "string" - title: "Tenant" - "authority_url": - type: "string" - title: "Authority Url" - "user_pname": - type: "string" - title: "User Pname" - "client_cred": - type: "string" - title: "Client Cred" - "recursive": - type: "boolean" - title: "Recursive" - "path": - type: "string" - title: "Path" - title: "OneDriveSourceConnectorConfig" - required: - - "client_id" - - "tenant" - - "authority_url" - - "user_pname" - - "client_cred" - - "recursive" - - "path" - - target: $["components"]["schemas"] - update: - "OneDriveSourceConnectorConfigInput": - type: "object" - properties: - "client_id": - type: "string" - title: "Client Id" - "tenant": - type: "string" - title: "Tenant" - default: "common" - "authority_url": - type: "string" - title: "Authority Url" - default: "https://login.microsoftonline.com" - "user_pname": - type: "string" - title: "User Pname" - "client_cred": - type: "string" - title: "Client Cred" - "recursive": - type: "boolean" - title: "Recursive" - default: false - "path": - type: "string" - title: "Path" - title: "OneDriveSourceConnectorConfigInput" - required: - - "client_id" - - "user_pname" - - "client_cred" - - "path" - - target: $["components"]["schemas"]["SourceConnectorInformation"]["properties"]["config"]["anyOf"][7]["$ref"] - update: "#/components/schemas/GCSSourceConnectorConfig" - - target: $["components"]["schemas"]["SourceConnectorInformation"]["properties"]["config"]["anyOf"][8]["$ref"] - update: "#/components/schemas/GoogleDriveSourceConnectorConfig" - - target: $["components"]["schemas"]["SourceConnectorInformation"]["properties"]["config"]["anyOf"][9]["$ref"] - update: "#/components/schemas/KafkaCloudSourceConnectorConfig" - - target: $["components"]["schemas"]["SourceConnectorInformation"]["properties"]["config"]["anyOf"][11]["$ref"] - update: "#/components/schemas/OneDriveSourceConnectorConfig" - - target: $["components"]["schemas"]["SourceConnectorType"]["enum"][9] - update: "kafka_cloud" - - target: $["components"]["schemas"]["UpdateSourceConnector"]["properties"]["config"]["anyOf"][7]["$ref"] - update: "#/components/schemas/GCSSourceConnectorConfigInput" - - target: $["components"]["schemas"]["UpdateSourceConnector"]["properties"]["config"]["anyOf"][8]["$ref"] - update: "#/components/schemas/GoogleDriveSourceConnectorConfigInput" - - target: $["components"]["schemas"]["UpdateSourceConnector"]["properties"]["config"]["anyOf"][9]["$ref"] - update: "#/components/schemas/KafkaCloudSourceConnectorConfigInput" - - target: $["components"]["schemas"]["UpdateSourceConnector"]["properties"]["config"]["anyOf"][11]["$ref"] - update: "#/components/schemas/OneDriveSourceConnectorConfigInput" - - target: $["components"]["schemas"]["GcsSourceConnectorConfig"] - remove: true - - target: $["components"]["schemas"]["GcsSourceConnectorConfigInput"] - remove: true - - target: $["components"]["schemas"]["Google_driveSourceConnectorConfig"] - remove: true - - target: $["components"]["schemas"]["Google_driveSourceConnectorConfigInput"] - remove: true - - target: $["components"]["schemas"]["Kafka-cloudSourceConnectorConfig"] - remove: true - - target: $["components"]["schemas"]["Kafka-cloudSourceConnectorConfigInput"] - remove: true - - target: $["components"]["schemas"]["OnedriveSourceConnectorConfig"] - remove: true - - target: $["components"]["schemas"]["OnedriveSourceConnectorConfigInput"] - remove: true - - target: $["components"]["schemas"]["CreateWorkflow"]["properties"]["workflow_nodes"]["anyOf"][0]["items"]["$ref"] - update: "#/components/schemas/WorkflowNode" - - target: $["components"]["schemas"]["UpdateWorkflow"]["properties"]["workflow_nodes"]["anyOf"][0]["items"]["$ref"] - update: "#/components/schemas/WorkflowNode" - - target: $["components"]["schemas"]["WorkflowNode"]["properties"]["id"] - remove: true - - target: $["components"]["schemas"]["CreateWorkflowNode"] - remove: true + "default": null diff --git a/src/unstructured_client/models/shared/onedrivesourceconnectorconfiginput.py b/src/unstructured_client/models/shared/onedrivesourceconnectorconfiginput.py index d48c0d4f..3a3dc351 100644 --- a/src/unstructured_client/models/shared/onedrivesourceconnectorconfiginput.py +++ b/src/unstructured_client/models/shared/onedrivesourceconnectorconfiginput.py @@ -7,26 +7,26 @@ class OneDriveSourceConnectorConfigInputTypedDict(TypedDict): + authority_url: str client_cred: str client_id: str path: str + tenant: str user_pname: str - authority_url: NotRequired[str] recursive: NotRequired[bool] - tenant: NotRequired[str] class OneDriveSourceConnectorConfigInput(BaseModel): + authority_url: str + client_cred: str client_id: str path: str - user_pname: str + tenant: str - authority_url: Optional[str] = "https://login.microsoftonline.com" + user_pname: str recursive: Optional[bool] = False - - tenant: Optional[str] = "common" diff --git a/src/unstructured_client/models/shared/sourceconnectortype.py b/src/unstructured_client/models/shared/sourceconnectortype.py index 2df7004b..4c074ed0 100644 --- a/src/unstructured_client/models/shared/sourceconnectortype.py +++ b/src/unstructured_client/models/shared/sourceconnectortype.py @@ -14,7 +14,7 @@ class SourceConnectorType(str, Enum): ELASTICSEARCH = "elasticsearch" GCS = "gcs" GOOGLE_DRIVE = "google_drive" - KAFKA_CLOUD = "kafka_cloud" + KAFKA_CLOUD = "kafka-cloud" MONGODB = "mongodb" ONEDRIVE = "onedrive" OUTLOOK = "outlook" diff --git a/src/unstructured_client/models/shared/workflownode.py b/src/unstructured_client/models/shared/workflownode.py index 8fc31532..3f70e2e1 100644 --- a/src/unstructured_client/models/shared/workflownode.py +++ b/src/unstructured_client/models/shared/workflownode.py @@ -18,6 +18,7 @@ class WorkflowNodeTypedDict(TypedDict): name: str subtype: str type: WorkflowNodeType + id: NotRequired[Nullable[str]] settings: NotRequired[Nullable[Dict[str, Any]]] @@ -28,12 +29,14 @@ class WorkflowNode(BaseModel): type: WorkflowNodeType + id: OptionalNullable[str] = UNSET + settings: OptionalNullable[Dict[str, Any]] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler): - optional_fields = ["settings"] - nullable_fields = ["settings"] + optional_fields = ["id", "settings"] + nullable_fields = ["id", "settings"] null_default_fields = [] serialized = handler(self)