diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index db945e25..111c7ce3 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: d16fe72a4dedf521ed38d340b69e914f - docVersion: 1.2.28 + docChecksum: 95e0d95fc5a19198241ad624fea71454 + docVersion: 1.2.31 speakeasyVersion: 1.601.0 generationVersion: 2.680.0 - releaseVersion: 0.42.9 - configChecksum: 9ce3853dc79759623054c060ed5d5a4d + releaseVersion: 0.42.10 + configChecksum: 484ddd3001b469841e13f86b9762bb51 repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -128,6 +128,7 @@ generatedFiles: - docs/models/shared/createdestinationconnector.md - docs/models/shared/createsourceconnector.md - docs/models/shared/createsourceconnectorconfig.md + - docs/models/shared/createsourceconnectortype.md - docs/models/shared/createworkflow.md - docs/models/shared/crontabentry.md - docs/models/shared/dagnodeconnectioncheck.md @@ -139,6 +140,7 @@ generatedFiles: - docs/models/shared/deltatableconnectorconfiginput.md - docs/models/shared/destinationconnectorinformation.md - docs/models/shared/destinationconnectorinformationconfig.md + - docs/models/shared/destinationconnectorinformationtype.md - docs/models/shared/destinationconnectortype.md - docs/models/shared/dropboxsourceconnectorconfig.md - docs/models/shared/dropboxsourceconnectorconfiginput.md @@ -216,11 +218,17 @@ generatedFiles: - docs/models/shared/sortdirection.md - docs/models/shared/sourceconnectorinformation.md - docs/models/shared/sourceconnectorinformationconfig.md + - docs/models/shared/sourceconnectorinformationtype.md - docs/models/shared/sourceconnectortype.md - docs/models/shared/strategy.md - docs/models/shared/templatedetail.md - docs/models/shared/templatelistitem.md - docs/models/shared/templatenode.md + - docs/models/shared/teradatadestinationconnectorconfig.md + - docs/models/shared/teradatadestinationconnectorconfiginput.md + - docs/models/shared/teradatasourceconnectorconfig.md + - docs/models/shared/teradatasourceconnectorconfiginput.md + - docs/models/shared/type.md - docs/models/shared/updatedestinationconnector.md - docs/models/shared/updatedestinationconnectorconfig.md - docs/models/shared/updatesourceconnector.md @@ -406,6 +414,10 @@ generatedFiles: - src/unstructured_client/models/shared/templatedetail.py - src/unstructured_client/models/shared/templatelistitem.py - src/unstructured_client/models/shared/templatenode.py + - src/unstructured_client/models/shared/teradatadestinationconnectorconfig.py + - src/unstructured_client/models/shared/teradatadestinationconnectorconfiginput.py + - src/unstructured_client/models/shared/teradatasourceconnectorconfig.py + - src/unstructured_client/models/shared/teradatasourceconnectorconfiginput.py - src/unstructured_client/models/shared/updatedestinationconnector.py - src/unstructured_client/models/shared/updatesourceconnector.py - src/unstructured_client/models/shared/updateworkflow.py @@ -926,7 +938,7 @@ trackedFiles: docs/models/shared/boxsourceconnectorconfiginput.md: last_write_checksum: sha1:e75625a2d8e1092d752dec9d6416ca2dc7ece940 docs/models/shared/config.md: - last_write_checksum: sha1:921b555dc3b2f4c796f265958e1e497bc2c2c221 + last_write_checksum: sha1:2eeba15a4cde3e56bb33bca6f552aebdba3abedd docs/models/shared/confluencesourceconnectorconfig.md: last_write_checksum: sha1:f0fc3f07b8dfe0af11928df4f8246168500ec3bb docs/models/shared/confluencesourceconnectorconfiginput.md: @@ -942,11 +954,13 @@ trackedFiles: docs/models/shared/couchbasesourceconnectorconfiginput.md: last_write_checksum: sha1:11c20ae7633c07a8e12d80d60ef57c0e79799d79 docs/models/shared/createdestinationconnector.md: - last_write_checksum: sha1:22cf73e4cf6ca7e97adb7973b2a83ae900039269 + last_write_checksum: sha1:5a7ecba32e71dfcc071f9fc2338548f377ac0945 docs/models/shared/createsourceconnector.md: - last_write_checksum: sha1:006ad810becfd9f2d7c8e8ff5de3cb0d0815bf72 + last_write_checksum: sha1:845bbd83afa5b77a8eebcaf2878d2a9c43e7c882 docs/models/shared/createsourceconnectorconfig.md: - last_write_checksum: sha1:8021615bdecc4203ff24a7663bc51928687771fc + last_write_checksum: sha1:a9d01fc1f0149716ff22d792ed36af868167f279 + docs/models/shared/createsourceconnectortype.md: + last_write_checksum: sha1:d059c96cd894a50237f090b77faaa62366373466 docs/models/shared/createworkflow.md: last_write_checksum: sha1:8aaf8738ef81e5c333b21e0052015755d21fdb1a docs/models/shared/crontabentry.md: @@ -966,11 +980,13 @@ trackedFiles: docs/models/shared/deltatableconnectorconfiginput.md: last_write_checksum: sha1:fd4a2cc65ff8276774e8b4c335863c082e140d2b docs/models/shared/destinationconnectorinformation.md: - last_write_checksum: sha1:3ee4e344b304ba428401ae1c74f1aa5bcdc556da + last_write_checksum: sha1:b2b58bd6315ccac9c0c18436c1396641a0616e1b docs/models/shared/destinationconnectorinformationconfig.md: - last_write_checksum: sha1:a2d78a4773c889d1e189a8f6f31e2a1e234a0b19 + last_write_checksum: sha1:36eb745751ce3e6a9c7e7c66845ece156d980987 + docs/models/shared/destinationconnectorinformationtype.md: + last_write_checksum: sha1:6ea9f4f79319530601232b47afee080c532d3c8a docs/models/shared/destinationconnectortype.md: - last_write_checksum: sha1:85ba31b2dfb9d633b795ba98eb58304bdbd1fef5 + last_write_checksum: sha1:16840ff65097322a9a3bdfb196c9acc817964e52 docs/models/shared/dropboxsourceconnectorconfig.md: last_write_checksum: sha1:dd236db60bdbbda1422cc81ec574fe9f3f7f4ce3 docs/models/shared/dropboxsourceconnectorconfiginput.md: @@ -1120,11 +1136,13 @@ trackedFiles: docs/models/shared/sortdirection.md: last_write_checksum: sha1:18885c3283c4e2214739bd2f87b879e13defd9bb docs/models/shared/sourceconnectorinformation.md: - last_write_checksum: sha1:635fbe720ba6de5d875a2ae26a18aba49c118353 + last_write_checksum: sha1:303c121f222ddaef02daf19215a91d805c6a3e51 docs/models/shared/sourceconnectorinformationconfig.md: - last_write_checksum: sha1:9de17090c726544aacd1844e86a4f8336174a12f + last_write_checksum: sha1:f14ddef7e80b810cc392672d97b823b511b1136f + docs/models/shared/sourceconnectorinformationtype.md: + last_write_checksum: sha1:2f0c483fef70d7e4c537eaca8587e40ec6a7327b docs/models/shared/sourceconnectortype.md: - last_write_checksum: sha1:a9a430ea130db8da8fc88af4039e411a680684d7 + last_write_checksum: sha1:4142d2e4f27282d41ab6bc0926cbce2dff57c6f8 docs/models/shared/strategy.md: last_write_checksum: sha1:07155e281d43ece3d6970b315ca1761ea18cce9f docs/models/shared/templatedetail.md: @@ -1133,14 +1151,24 @@ trackedFiles: last_write_checksum: sha1:4faa1971a0ee68512a9c8be9ba30088726ba92ca docs/models/shared/templatenode.md: last_write_checksum: sha1:0900ecbd8ebdb0261dc0078d5c4a7423c732aae6 + docs/models/shared/teradatadestinationconnectorconfig.md: + last_write_checksum: sha1:c3cb809bb968cae3c1842aee3942da434c720428 + docs/models/shared/teradatadestinationconnectorconfiginput.md: + last_write_checksum: sha1:2b2c39b55932d4791556bc3ab361973be6d2f536 + docs/models/shared/teradatasourceconnectorconfig.md: + last_write_checksum: sha1:03548e95ddd37a672b0ade413e922b221a856cd8 + docs/models/shared/teradatasourceconnectorconfiginput.md: + last_write_checksum: sha1:20f8b8b6e285418342fde5a0541bb81b3182c942 + docs/models/shared/type.md: + last_write_checksum: sha1:020f067e52b901867f3e7b64e21a3c0e7cfbfb43 docs/models/shared/updatedestinationconnector.md: last_write_checksum: sha1:37c58c6b362551502eabf5eca98e99575d642677 docs/models/shared/updatedestinationconnectorconfig.md: - last_write_checksum: sha1:8b87feb4b95b89e93685f7817cb97396a4537d0f + last_write_checksum: sha1:0514524c697ae12132718da1ab76cd2b16eb42d5 docs/models/shared/updatesourceconnector.md: last_write_checksum: sha1:c13569bb40dcaee8f13e077eb5b53d95098ea34d docs/models/shared/updatesourceconnectorconfig.md: - last_write_checksum: sha1:33c4d78aa6733a8151b0a8b7558e8b018cd59307 + last_write_checksum: sha1:1409612ba63ddf456702535483e41ffe958c1c2b docs/models/shared/updateworkflow.md: last_write_checksum: sha1:94e95e0b8746baf81b33fab234ee5d320a3fae2e docs/models/shared/updateworkflowschedule.md: @@ -1204,7 +1232,7 @@ trackedFiles: src/unstructured_client/_hooks/types.py: last_write_checksum: sha1:ac25bc33fba97274c6554d0e735b4c90c2650a88 src/unstructured_client/_version.py: - last_write_checksum: sha1:58106d46f8d0262fe4c68d0ed473a24bfe224956 + last_write_checksum: sha1:a67fde69f90e41efa55db96a040d5e50dc0a2eab src/unstructured_client/basesdk.py: last_write_checksum: sha1:96b11011fa4af657d7decae17dda0b8ddcecfa32 src/unstructured_client/destinations.py: @@ -1292,7 +1320,7 @@ trackedFiles: src/unstructured_client/models/operations/update_workflow.py: last_write_checksum: sha1:bc89c27c8a0d44d9336c80d8cbbc5bb5b0d749ae src/unstructured_client/models/shared/__init__.py: - last_write_checksum: sha1:c2ad5956b789b46b0f2f4d630d11171cd4da7550 + last_write_checksum: sha1:2ba9270eae339106a52473e48af670798bf8aa6f src/unstructured_client/models/shared/astradbconnectorconfig.py: last_write_checksum: sha1:6bdbb68c97994cef73a656c84fbfe7e32b3d6277 src/unstructured_client/models/shared/astradbconnectorconfiginput.py: @@ -1332,9 +1360,9 @@ trackedFiles: src/unstructured_client/models/shared/couchbasesourceconnectorconfiginput.py: last_write_checksum: sha1:0dba4f21a305d1e44aee5da0a299ce87db83609e src/unstructured_client/models/shared/createdestinationconnector.py: - last_write_checksum: sha1:4dedef674cf9097567f20d04fa26af5a1f8c7785 + last_write_checksum: sha1:52cb8aa101dc5660379c9ed93380db6419893d2d src/unstructured_client/models/shared/createsourceconnector.py: - last_write_checksum: sha1:46a5ce3a43766c4408602dd55a86eb2c3bd86512 + last_write_checksum: sha1:88ddbafc58f5ccba0a799771d6ab7e47d284e166 src/unstructured_client/models/shared/createworkflow.py: last_write_checksum: sha1:54d100957d5a30fe7f310bd0f8d6658de71a9888 src/unstructured_client/models/shared/crontabentry.py: @@ -1354,9 +1382,9 @@ trackedFiles: src/unstructured_client/models/shared/deltatableconnectorconfiginput.py: last_write_checksum: sha1:42ebe9712bc0f083b890cd7ff78208d9e838dfb8 src/unstructured_client/models/shared/destinationconnectorinformation.py: - last_write_checksum: sha1:e6b03a2a074d3ac1c612835c4c088c7dca0ce9e7 + last_write_checksum: sha1:acbf053c60a0cec595d696a34c0e9df371667174 src/unstructured_client/models/shared/destinationconnectortype.py: - last_write_checksum: sha1:8a535b852261fe20bcdcd5e7ebfc07524270b934 + last_write_checksum: sha1:3daf320784e62c0ff3ea8c6628020c429975d663 src/unstructured_client/models/shared/dropboxsourceconnectorconfig.py: last_write_checksum: sha1:975b665d4a1280a04558b963d7564dafaa04afc1 src/unstructured_client/models/shared/dropboxsourceconnectorconfiginput.py: @@ -1492,19 +1520,27 @@ trackedFiles: src/unstructured_client/models/shared/sortdirection.py: last_write_checksum: sha1:316a46717625825ea3a622089df62f1c02be1482 src/unstructured_client/models/shared/sourceconnectorinformation.py: - last_write_checksum: sha1:64259e76331e196105bf958bea191749d6d31a1a + last_write_checksum: sha1:518b93f4254adde32294d56b3304f14e6e07ea33 src/unstructured_client/models/shared/sourceconnectortype.py: - last_write_checksum: sha1:cc3f9e479b10403211055f781aec66a5a918a169 + last_write_checksum: sha1:4c857bd3d21ab40b9f5cc938558de9b8cfbfecf8 src/unstructured_client/models/shared/templatedetail.py: last_write_checksum: sha1:05292e12a45407c2cb6c500386f2d28298e2129f src/unstructured_client/models/shared/templatelistitem.py: last_write_checksum: sha1:8aeb58b48884855d75b0eab458cd20298816f17b src/unstructured_client/models/shared/templatenode.py: last_write_checksum: sha1:c9e94f8ab03141cf4de36e366f729228ea1d45ca + src/unstructured_client/models/shared/teradatadestinationconnectorconfig.py: + last_write_checksum: sha1:2e88eb8fd9402a2a11b21206f75d6e3e1ebf2d9f + src/unstructured_client/models/shared/teradatadestinationconnectorconfiginput.py: + last_write_checksum: sha1:09687f2b9b10a0246a901dc7e4c59ddf30b23f4f + src/unstructured_client/models/shared/teradatasourceconnectorconfig.py: + last_write_checksum: sha1:7422e9fe2bf654031dbdb7db50ff4a04dbdfcdc8 + src/unstructured_client/models/shared/teradatasourceconnectorconfiginput.py: + last_write_checksum: sha1:3030753e0dbb74b84b2fc8100f14d1c705a70f2e src/unstructured_client/models/shared/updatedestinationconnector.py: - last_write_checksum: sha1:5046b8cd7f5e480f26cb5ef8a1d0f3dd606c0673 + last_write_checksum: sha1:45bacda18313511e2214765c865943c788acb390 src/unstructured_client/models/shared/updatesourceconnector.py: - last_write_checksum: sha1:66a29ca6427816cdb1846d63e3d466296dbd3abb + last_write_checksum: sha1:f481600a222f1df53a4edfef6a044730fec23f6b src/unstructured_client/models/shared/updateworkflow.py: last_write_checksum: sha1:7a2f60d70b0f7f36ef2e6b2fc64c687ca260048d src/unstructured_client/models/shared/validationerror.py: diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d9cd3c31..3adc81bf 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -2,20 +2,20 @@ speakeasyVersion: 1.601.0 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306 - sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e + sourceRevisionDigest: sha256:e81fdc9fd900cbffb66d18c01546535437903e87067e850a2b8024bf99582368 + sourceBlobDigest: sha256:b808d52bfed3be0156d5fd84985e1b6300a265eede9a8250f229f2b9b1381587 tags: - latest - - speakeasy-sdk-regen-1768522382 - - 1.2.28 + - speakeasy-sdk-regen-1769040835 + - 1.2.31 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:bb294c5acf766035792f752ed036cc8e4183e5f23b75fa5cb885b7499dcf6306 - sourceBlobDigest: sha256:555b59cc03c5a4e9bfb3817e48dec67a8b8e13a6a46712cf5e23a6230fec359e + sourceRevisionDigest: sha256:e81fdc9fd900cbffb66d18c01546535437903e87067e850a2b8024bf99582368 + sourceBlobDigest: sha256:b808d52bfed3be0156d5fd84985e1b6300a265eede9a8250f229f2b9b1381587 codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:4dd3dc9d9824533e6a8e70ef4a0db808b125deb8c266a62a99a11c64162b7595 + codeSamplesRevisionDigest: sha256:f440253837f248b3b912c26b3c170a52461c3f3b2951169d2b4e343d8201b868 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index f1b5ba73..c6be0076 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -1180,4 +1180,14 @@ Based on: ### Generated - [python v0.42.9] . ### Releases -- [PyPI v0.42.9] https://pypi.org/project/unstructured-client/0.42.9 - . \ No newline at end of file +- [PyPI v0.42.9] https://pypi.org/project/unstructured-client/0.42.9 - . + +## 2026-01-29 00:14:23 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.601.0 (2.680.0) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.42.10] . +### Releases +- [PyPI v0.42.10] https://pypi.org/project/unstructured-client/0.42.10 - . \ No newline at end of file diff --git a/codeSamples.yaml b/codeSamples.yaml index 2d4c4d41..13e88f1c 100644 --- a/codeSamples.yaml +++ b/codeSamples.yaml @@ -14,7 +14,7 @@ actions: "x-codeSamples": - "lang": "python" "label": "create_destination" - "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\"\",\n type=shared.DestinationConnectorType.MOTHERDUCK,\n config={\n \"hosts\": [],\n \"index_name\": \"\",\n },\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import operations, shared\n\n\nwith UnstructuredClient() as uc_client:\n\n res = uc_client.destinations.create_destination(request=operations.CreateDestinationRequest(\n create_destination_connector=shared.CreateDestinationConnector(\n name=\"\",\n type=\"\",\n config=shared.PineconeDestinationConnectorConfigInput(\n index_name=\"\",\n api_key=\"\",\n namespace=\"\",\n batch_size=50,\n ),\n ),\n ))\n\n assert res.destination_connector_information is not None\n\n # Handle response\n print(res.destination_connector_information)" - target: $["paths"]["/api/v1/destinations/{destination_id}"]["delete"] update: "x-codeSamples": @@ -98,7 +98,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.DROPBOX,\n \"config\": {\n \"box_app_config\": \"\",\n \"remote_url\": \"https://ugly-ribbon.info\",\n \"recursive\": True,\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" + "source": "from unstructured_client import UnstructuredClient\nfrom unstructured_client.models import 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.BOX,\n \"config\": {\n \"host\": \"ugly-ribbon.info\",\n \"database\": \"\",\n \"port\": 526676,\n \"username\": \"Albertha_Senger\",\n \"password\": \"jIalrq2izU8rFxd\",\n \"table_name\": \"\",\n \"batch_size\": 637100,\n \"id_column\": \"id\",\n },\n },\n })\n\n assert res.source_connector_information is not None\n\n # Handle response\n print(res.source_connector_information)" - target: $["paths"]["/api/v1/sources/{source_id}"]["delete"] update: "x-codeSamples": diff --git a/docs/models/shared/config.md b/docs/models/shared/config.md index 7e3a09c7..48ef64d3 100644 --- a/docs/models/shared/config.md +++ b/docs/models/shared/config.md @@ -129,6 +129,12 @@ value: shared.S3DestinationConnectorConfigInput = /* values here */ value: shared.SnowflakeDestinationConnectorConfigInput = /* values here */ ``` +### `shared.TeradataDestinationConnectorConfigInput` + +```python +value: shared.TeradataDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.WeaviateDestinationConnectorConfigInput` ```python diff --git a/docs/models/shared/createdestinationconnector.md b/docs/models/shared/createdestinationconnector.md index 7b852157..9e096547 100644 --- a/docs/models/shared/createdestinationconnector.md +++ b/docs/models/shared/createdestinationconnector.md @@ -3,8 +3,8 @@ ## Fields -| Field | Type | Required | Description | -| ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | -| `config` | [shared.Config](../../models/shared/config.md) | :heavy_check_mark: | N/A | -| `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [shared.DestinationConnectorType](../../models/shared/destinationconnectortype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | ---------------------------------------------- | +| `config` | [shared.Config](../../models/shared/config.md) | :heavy_check_mark: | N/A | +| `name` | *str* | :heavy_check_mark: | N/A | +| `type` | [shared.Type](../../models/shared/type.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/createsourceconnector.md b/docs/models/shared/createsourceconnector.md index 9b714a6a..a02ef2be 100644 --- a/docs/models/shared/createsourceconnector.md +++ b/docs/models/shared/createsourceconnector.md @@ -7,4 +7,4 @@ | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------- | | `config` | [shared.CreateSourceConnectorConfig](../../models/shared/createsourceconnectorconfig.md) | :heavy_check_mark: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [shared.SourceConnectorType](../../models/shared/sourceconnectortype.md) | :heavy_check_mark: | N/A | \ No newline at end of file +| `type` | [shared.CreateSourceConnectorType](../../models/shared/createsourceconnectortype.md) | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/createsourceconnectorconfig.md b/docs/models/shared/createsourceconnectorconfig.md index c4965b66..52dc7806 100644 --- a/docs/models/shared/createsourceconnectorconfig.md +++ b/docs/models/shared/createsourceconnectorconfig.md @@ -117,6 +117,12 @@ value: shared.SharePointSourceConnectorConfigInput = /* values here */ value: shared.SnowflakeSourceConnectorConfigInput = /* values here */ ``` +### `shared.TeradataSourceConnectorConfigInput` + +```python +value: shared.TeradataSourceConnectorConfigInput = /* values here */ +``` + ### `shared.JiraSourceConnectorConfigInput` ```python diff --git a/docs/models/shared/createsourceconnectortype.md b/docs/models/shared/createsourceconnectortype.md new file mode 100644 index 00000000..5bb087a7 --- /dev/null +++ b/docs/models/shared/createsourceconnectortype.md @@ -0,0 +1,17 @@ +# CreateSourceConnectorType + + +## Supported Types + +### `shared.SourceConnectorType` + +```python +value: shared.SourceConnectorType = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/shared/destinationconnectorinformation.md b/docs/models/shared/destinationconnectorinformation.md index bf84767d..46e25648 100644 --- a/docs/models/shared/destinationconnectorinformation.md +++ b/docs/models/shared/destinationconnectorinformation.md @@ -9,5 +9,5 @@ | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `id` | *str* | :heavy_check_mark: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [shared.DestinationConnectorType](../../models/shared/destinationconnectortype.md) | :heavy_check_mark: | N/A | +| `type` | [shared.DestinationConnectorInformationType](../../models/shared/destinationconnectorinformationtype.md) | :heavy_check_mark: | N/A | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/destinationconnectorinformationconfig.md b/docs/models/shared/destinationconnectorinformationconfig.md index 45e3cf24..cc5ab8f1 100644 --- a/docs/models/shared/destinationconnectorinformationconfig.md +++ b/docs/models/shared/destinationconnectorinformationconfig.md @@ -129,6 +129,12 @@ value: shared.S3DestinationConnectorConfig = /* values here */ value: shared.SnowflakeDestinationConnectorConfig = /* values here */ ``` +### `shared.TeradataDestinationConnectorConfig` + +```python +value: shared.TeradataDestinationConnectorConfig = /* values here */ +``` + ### `shared.WeaviateDestinationConnectorConfig` ```python diff --git a/docs/models/shared/destinationconnectorinformationtype.md b/docs/models/shared/destinationconnectorinformationtype.md new file mode 100644 index 00000000..ffc4db83 --- /dev/null +++ b/docs/models/shared/destinationconnectorinformationtype.md @@ -0,0 +1,17 @@ +# DestinationConnectorInformationType + + +## Supported Types + +### `shared.DestinationConnectorType` + +```python +value: shared.DestinationConnectorType = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/shared/destinationconnectortype.md b/docs/models/shared/destinationconnectortype.md index 9c6893ac..479f8acf 100644 --- a/docs/models/shared/destinationconnectortype.md +++ b/docs/models/shared/destinationconnectortype.md @@ -27,5 +27,6 @@ | `QDRANT_CLOUD` | qdrant-cloud | | `S3` | s3 | | `SNOWFLAKE` | snowflake | +| `TERADATA` | teradata | | `WEAVIATE_CLOUD` | weaviate-cloud | | `IBM_WATSONX_S3` | ibm_watsonx_s3 | \ No newline at end of file diff --git a/docs/models/shared/sourceconnectorinformation.md b/docs/models/shared/sourceconnectorinformation.md index 4cb8f438..6e393595 100644 --- a/docs/models/shared/sourceconnectorinformation.md +++ b/docs/models/shared/sourceconnectorinformation.md @@ -9,5 +9,5 @@ | `created_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_check_mark: | N/A | | `id` | *str* | :heavy_check_mark: | N/A | | `name` | *str* | :heavy_check_mark: | N/A | -| `type` | [shared.SourceConnectorType](../../models/shared/sourceconnectortype.md) | :heavy_check_mark: | N/A | +| `type` | [shared.SourceConnectorInformationType](../../models/shared/sourceconnectorinformationtype.md) | :heavy_check_mark: | N/A | | `updated_at` | [date](https://docs.python.org/3/library/datetime.html#date-objects) | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/sourceconnectorinformationconfig.md b/docs/models/shared/sourceconnectorinformationconfig.md index e5454919..0972a855 100644 --- a/docs/models/shared/sourceconnectorinformationconfig.md +++ b/docs/models/shared/sourceconnectorinformationconfig.md @@ -117,6 +117,12 @@ value: shared.SharePointSourceConnectorConfig = /* values here */ value: shared.SnowflakeSourceConnectorConfig = /* values here */ ``` +### `shared.TeradataSourceConnectorConfig` + +```python +value: shared.TeradataSourceConnectorConfig = /* values here */ +``` + ### `shared.JiraSourceConnectorConfig` ```python diff --git a/docs/models/shared/sourceconnectorinformationtype.md b/docs/models/shared/sourceconnectorinformationtype.md new file mode 100644 index 00000000..b9fcd6d3 --- /dev/null +++ b/docs/models/shared/sourceconnectorinformationtype.md @@ -0,0 +1,17 @@ +# SourceConnectorInformationType + + +## Supported Types + +### `shared.SourceConnectorType` + +```python +value: shared.SourceConnectorType = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/shared/sourceconnectortype.md b/docs/models/shared/sourceconnectortype.md index e5c4b636..94f9b3b1 100644 --- a/docs/models/shared/sourceconnectortype.md +++ b/docs/models/shared/sourceconnectortype.md @@ -25,5 +25,6 @@ | `SHAREPOINT` | sharepoint | | `SLACK` | slack | | `SNOWFLAKE` | snowflake | +| `TERADATA` | teradata | | `JIRA` | jira | | `ZENDESK` | zendesk | \ No newline at end of file diff --git a/docs/models/shared/teradatadestinationconnectorconfig.md b/docs/models/shared/teradatadestinationconnectorconfig.md new file mode 100644 index 00000000..831fef26 --- /dev/null +++ b/docs/models/shared/teradatadestinationconnectorconfig.md @@ -0,0 +1,15 @@ +# TeradataDestinationConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `database` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dbs_port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `record_id_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/teradatadestinationconnectorconfiginput.md b/docs/models/shared/teradatadestinationconnectorconfiginput.md new file mode 100644 index 00000000..aaf768bd --- /dev/null +++ b/docs/models/shared/teradatadestinationconnectorconfiginput.md @@ -0,0 +1,15 @@ +# TeradataDestinationConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `database` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dbs_port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `record_id_key` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `table_name` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `user` | *str* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/teradatasourceconnectorconfig.md b/docs/models/shared/teradatasourceconnectorconfig.md new file mode 100644 index 00000000..c752abb4 --- /dev/null +++ b/docs/models/shared/teradatasourceconnectorconfig.md @@ -0,0 +1,16 @@ +# TeradataSourceConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `database` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dbs_port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `id_column` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `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/teradatasourceconnectorconfiginput.md b/docs/models/shared/teradatasourceconnectorconfiginput.md new file mode 100644 index 00000000..e39f419d --- /dev/null +++ b/docs/models/shared/teradatasourceconnectorconfiginput.md @@ -0,0 +1,16 @@ +# TeradataSourceConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ----------------------- | ----------------------- | ----------------------- | ----------------------- | +| `batch_size` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `database` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A | +| `dbs_port` | *Optional[int]* | :heavy_minus_sign: | N/A | +| `fields` | List[*str*] | :heavy_minus_sign: | N/A | +| `host` | *str* | :heavy_check_mark: | N/A | +| `id_column` | *Optional[str]* | :heavy_minus_sign: | N/A | +| `password` | *str* | :heavy_check_mark: | N/A | +| `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/type.md b/docs/models/shared/type.md new file mode 100644 index 00000000..f6f55dda --- /dev/null +++ b/docs/models/shared/type.md @@ -0,0 +1,17 @@ +# Type + + +## Supported Types + +### `shared.DestinationConnectorType` + +```python +value: shared.DestinationConnectorType = /* values here */ +``` + +### `str` + +```python +value: str = /* values here */ +``` + diff --git a/docs/models/shared/updatedestinationconnectorconfig.md b/docs/models/shared/updatedestinationconnectorconfig.md index 1ec8f735..c0623b44 100644 --- a/docs/models/shared/updatedestinationconnectorconfig.md +++ b/docs/models/shared/updatedestinationconnectorconfig.md @@ -129,6 +129,12 @@ value: shared.S3DestinationConnectorConfigInput = /* values here */ value: shared.SnowflakeDestinationConnectorConfigInput = /* values here */ ``` +### `shared.TeradataDestinationConnectorConfigInput` + +```python +value: shared.TeradataDestinationConnectorConfigInput = /* values here */ +``` + ### `shared.WeaviateDestinationConnectorConfigInput` ```python diff --git a/docs/models/shared/updatesourceconnectorconfig.md b/docs/models/shared/updatesourceconnectorconfig.md index e917cc98..ec676813 100644 --- a/docs/models/shared/updatesourceconnectorconfig.md +++ b/docs/models/shared/updatesourceconnectorconfig.md @@ -117,6 +117,12 @@ value: shared.SharePointSourceConnectorConfigInput = /* values here */ value: shared.SnowflakeSourceConnectorConfigInput = /* values here */ ``` +### `shared.TeradataSourceConnectorConfigInput` + +```python +value: shared.TeradataSourceConnectorConfigInput = /* values here */ +``` + ### `shared.JiraSourceConnectorConfigInput` ```python diff --git a/gen.yaml b/gen.yaml index 1f073287..fc086804 100644 --- a/gen.yaml +++ b/gen.yaml @@ -23,7 +23,7 @@ generation: schemas: allOfMergeStrategy: shallowMerge python: - version: 0.42.9 + version: 0.42.10 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pyproject.toml b/pyproject.toml index 8d2c879f..66c223a8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,7 +1,7 @@ [project] name = "unstructured-client" -version = "0.42.9" +version = "0.42.10" 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 699b7dfc..e17f20f9 100644 --- a/src/unstructured_client/_version.py +++ b/src/unstructured_client/_version.py @@ -3,10 +3,10 @@ import importlib.metadata __title__: str = "unstructured-client" -__version__: str = "0.42.9" -__openapi_doc_version__: str = "1.2.28" +__version__: str = "0.42.10" +__openapi_doc_version__: str = "1.2.31" __gen_version__: str = "2.680.0" -__user_agent__: str = "speakeasy-sdk/python 0.42.9 2.680.0 1.2.28 unstructured-client" +__user_agent__: str = "speakeasy-sdk/python 0.42.10 2.680.0 1.2.31 unstructured-client" try: if __package__ is not None: diff --git a/src/unstructured_client/models/shared/__init__.py b/src/unstructured_client/models/shared/__init__.py index aac23db6..20727b6c 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -87,11 +87,15 @@ ConfigTypedDict, CreateDestinationConnector, CreateDestinationConnectorTypedDict, + Type, + TypeTypedDict, ) from .createsourceconnector import ( CreateSourceConnector, CreateSourceConnectorConfig, CreateSourceConnectorConfigTypedDict, + CreateSourceConnectorType, + CreateSourceConnectorTypeTypedDict, CreateSourceConnectorTypedDict, ) from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule @@ -128,6 +132,8 @@ DestinationConnectorInformation, DestinationConnectorInformationConfig, DestinationConnectorInformationConfigTypedDict, + DestinationConnectorInformationType, + DestinationConnectorInformationTypeTypedDict, DestinationConnectorInformationTypedDict, ) from .destinationconnectortype import DestinationConnectorType @@ -376,12 +382,30 @@ SourceConnectorInformation, SourceConnectorInformationConfig, SourceConnectorInformationConfigTypedDict, + SourceConnectorInformationType, + SourceConnectorInformationTypeTypedDict, SourceConnectorInformationTypedDict, ) from .sourceconnectortype import SourceConnectorType from .templatedetail import TemplateDetail, TemplateDetailTypedDict from .templatelistitem import TemplateListItem, TemplateListItemTypedDict from .templatenode import TemplateNode, TemplateNodeTypedDict + from .teradatadestinationconnectorconfig import ( + TeradataDestinationConnectorConfig, + TeradataDestinationConnectorConfigTypedDict, + ) + from .teradatadestinationconnectorconfiginput import ( + TeradataDestinationConnectorConfigInput, + TeradataDestinationConnectorConfigInputTypedDict, + ) + from .teradatasourceconnectorconfig import ( + TeradataSourceConnectorConfig, + TeradataSourceConnectorConfigTypedDict, + ) + from .teradatasourceconnectorconfiginput import ( + TeradataSourceConnectorConfigInput, + TeradataSourceConnectorConfigInputTypedDict, + ) from .updatedestinationconnector import ( UpdateDestinationConnector, UpdateDestinationConnectorConfig, @@ -475,6 +499,8 @@ "CreateSourceConnector", "CreateSourceConnectorConfig", "CreateSourceConnectorConfigTypedDict", + "CreateSourceConnectorType", + "CreateSourceConnectorTypeTypedDict", "CreateSourceConnectorTypedDict", "CreateWorkflow", "CreateWorkflowTypedDict", @@ -497,6 +523,8 @@ "DestinationConnectorInformation", "DestinationConnectorInformationConfig", "DestinationConnectorInformationConfigTypedDict", + "DestinationConnectorInformationType", + "DestinationConnectorInformationTypeTypedDict", "DestinationConnectorInformationTypedDict", "DestinationConnectorType", "DropboxSourceConnectorConfig", @@ -644,6 +672,8 @@ "SourceConnectorInformation", "SourceConnectorInformationConfig", "SourceConnectorInformationConfigTypedDict", + "SourceConnectorInformationType", + "SourceConnectorInformationTypeTypedDict", "SourceConnectorInformationTypedDict", "SourceConnectorType", "Strategy", @@ -653,6 +683,16 @@ "TemplateListItemTypedDict", "TemplateNode", "TemplateNodeTypedDict", + "TeradataDestinationConnectorConfig", + "TeradataDestinationConnectorConfigInput", + "TeradataDestinationConnectorConfigInputTypedDict", + "TeradataDestinationConnectorConfigTypedDict", + "TeradataSourceConnectorConfig", + "TeradataSourceConnectorConfigInput", + "TeradataSourceConnectorConfigInputTypedDict", + "TeradataSourceConnectorConfigTypedDict", + "Type", + "TypeTypedDict", "UpdateDestinationConnector", "UpdateDestinationConnectorConfig", "UpdateDestinationConnectorConfigTypedDict", @@ -732,9 +772,13 @@ "ConfigTypedDict": ".createdestinationconnector", "CreateDestinationConnector": ".createdestinationconnector", "CreateDestinationConnectorTypedDict": ".createdestinationconnector", + "Type": ".createdestinationconnector", + "TypeTypedDict": ".createdestinationconnector", "CreateSourceConnector": ".createsourceconnector", "CreateSourceConnectorConfig": ".createsourceconnector", "CreateSourceConnectorConfigTypedDict": ".createsourceconnector", + "CreateSourceConnectorType": ".createsourceconnector", + "CreateSourceConnectorTypeTypedDict": ".createsourceconnector", "CreateSourceConnectorTypedDict": ".createsourceconnector", "CreateWorkflow": ".createworkflow", "CreateWorkflowTypedDict": ".createworkflow", @@ -758,6 +802,8 @@ "DestinationConnectorInformation": ".destinationconnectorinformation", "DestinationConnectorInformationConfig": ".destinationconnectorinformation", "DestinationConnectorInformationConfigTypedDict": ".destinationconnectorinformation", + "DestinationConnectorInformationType": ".destinationconnectorinformation", + "DestinationConnectorInformationTypeTypedDict": ".destinationconnectorinformation", "DestinationConnectorInformationTypedDict": ".destinationconnectorinformation", "DestinationConnectorType": ".destinationconnectortype", "DropboxSourceConnectorConfig": ".dropboxsourceconnectorconfig", @@ -902,6 +948,8 @@ "SourceConnectorInformation": ".sourceconnectorinformation", "SourceConnectorInformationConfig": ".sourceconnectorinformation", "SourceConnectorInformationConfigTypedDict": ".sourceconnectorinformation", + "SourceConnectorInformationType": ".sourceconnectorinformation", + "SourceConnectorInformationTypeTypedDict": ".sourceconnectorinformation", "SourceConnectorInformationTypedDict": ".sourceconnectorinformation", "SourceConnectorType": ".sourceconnectortype", "TemplateDetail": ".templatedetail", @@ -910,6 +958,14 @@ "TemplateListItemTypedDict": ".templatelistitem", "TemplateNode": ".templatenode", "TemplateNodeTypedDict": ".templatenode", + "TeradataDestinationConnectorConfig": ".teradatadestinationconnectorconfig", + "TeradataDestinationConnectorConfigTypedDict": ".teradatadestinationconnectorconfig", + "TeradataDestinationConnectorConfigInput": ".teradatadestinationconnectorconfiginput", + "TeradataDestinationConnectorConfigInputTypedDict": ".teradatadestinationconnectorconfiginput", + "TeradataSourceConnectorConfig": ".teradatasourceconnectorconfig", + "TeradataSourceConnectorConfigTypedDict": ".teradatasourceconnectorconfig", + "TeradataSourceConnectorConfigInput": ".teradatasourceconnectorconfiginput", + "TeradataSourceConnectorConfigInputTypedDict": ".teradatasourceconnectorconfiginput", "UpdateDestinationConnector": ".updatedestinationconnector", "UpdateDestinationConnectorConfig": ".updatedestinationconnector", "UpdateDestinationConnectorConfigTypedDict": ".updatedestinationconnector", diff --git a/src/unstructured_client/models/shared/createdestinationconnector.py b/src/unstructured_client/models/shared/createdestinationconnector.py index 92edf53b..91cb6614 100644 --- a/src/unstructured_client/models/shared/createdestinationconnector.py +++ b/src/unstructured_client/models/shared/createdestinationconnector.py @@ -90,6 +90,10 @@ SnowflakeDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInputTypedDict, ) +from .teradatadestinationconnectorconfiginput import ( + TeradataDestinationConnectorConfigInput, + TeradataDestinationConnectorConfigInputTypedDict, +) from .weaviatedestinationconnectorconfiginput import ( WeaviateDestinationConnectorConfigInput, WeaviateDestinationConnectorConfigInputTypedDict, @@ -123,6 +127,7 @@ DatabricksVolumesConnectorConfigInputTypedDict, OpenSearchConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, + TeradataDestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, SnowflakeDestinationConnectorConfigInputTypedDict, @@ -154,6 +159,7 @@ DatabricksVolumesConnectorConfigInput, OpenSearchConnectorConfigInput, RedisDestinationConnectorConfigInput, + TeradataDestinationConnectorConfigInput, AstraDBConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInput, @@ -163,10 +169,22 @@ ) +TypeTypedDict = TypeAliasType("TypeTypedDict", Union[DestinationConnectorType, str]) + + +Type = TypeAliasType( + "Type", + Union[ + Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))], + str, + ], +) + + class CreateDestinationConnectorTypedDict(TypedDict): config: ConfigTypedDict name: str - type: DestinationConnectorType + type: TypeTypedDict class CreateDestinationConnector(BaseModel): @@ -174,4 +192,4 @@ class CreateDestinationConnector(BaseModel): name: str - type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))] + type: Type diff --git a/src/unstructured_client/models/shared/createsourceconnector.py b/src/unstructured_client/models/shared/createsourceconnector.py index d781619a..d666a377 100644 --- a/src/unstructured_client/models/shared/createsourceconnector.py +++ b/src/unstructured_client/models/shared/createsourceconnector.py @@ -82,6 +82,10 @@ SnowflakeSourceConnectorConfigInputTypedDict, ) from .sourceconnectortype import SourceConnectorType +from .teradatasourceconnectorconfiginput import ( + TeradataSourceConnectorConfigInput, + TeradataSourceConnectorConfigInputTypedDict, +) from .zendesksourceconnectorconfiginput import ( ZendeskSourceConnectorConfigInput, ZendeskSourceConnectorConfigInputTypedDict, @@ -98,22 +102,23 @@ Union[ MongoDBConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, - BoxSourceConnectorConfigInputTypedDict, GCSSourceConnectorConfigInputTypedDict, + BoxSourceConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, - SalesforceSourceConnectorConfigInputTypedDict, GoogleDriveSourceConnectorConfigInputTypedDict, + SalesforceSourceConnectorConfigInputTypedDict, ZendeskSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - S3SourceConnectorConfigInputTypedDict, - DatabricksVolumesConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, KafkaCloudSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, - OpenSearchConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, + S3SourceConnectorConfigInputTypedDict, SharePointSourceConnectorConfigInputTypedDict, + OpenSearchConnectorConfigInputTypedDict, CouchbaseSourceConnectorConfigInputTypedDict, PostgresSourceConnectorConfigInputTypedDict, + TeradataSourceConnectorConfigInputTypedDict, JiraSourceConnectorConfigInputTypedDict, ConfluenceSourceConnectorConfigInputTypedDict, SnowflakeSourceConnectorConfigInputTypedDict, @@ -127,22 +132,23 @@ Union[ MongoDBConnectorConfigInput, DropboxSourceConnectorConfigInput, - BoxSourceConnectorConfigInput, GCSSourceConnectorConfigInput, + BoxSourceConnectorConfigInput, ElasticsearchConnectorConfigInput, - SalesforceSourceConnectorConfigInput, GoogleDriveSourceConnectorConfigInput, + SalesforceSourceConnectorConfigInput, ZendeskSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - S3SourceConnectorConfigInput, - DatabricksVolumesConnectorConfigInput, OneDriveSourceConnectorConfigInput, KafkaCloudSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, - OpenSearchConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, + S3SourceConnectorConfigInput, SharePointSourceConnectorConfigInput, + OpenSearchConnectorConfigInput, CouchbaseSourceConnectorConfigInput, PostgresSourceConnectorConfigInput, + TeradataSourceConnectorConfigInput, JiraSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInput, SnowflakeSourceConnectorConfigInput, @@ -151,10 +157,23 @@ ) +CreateSourceConnectorTypeTypedDict = TypeAliasType( + "CreateSourceConnectorTypeTypedDict", Union[SourceConnectorType, str] +) + + +CreateSourceConnectorType = TypeAliasType( + "CreateSourceConnectorType", + Union[ + Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))], str + ], +) + + class CreateSourceConnectorTypedDict(TypedDict): config: CreateSourceConnectorConfigTypedDict name: str - type: SourceConnectorType + type: CreateSourceConnectorTypeTypedDict class CreateSourceConnector(BaseModel): @@ -162,4 +181,4 @@ class CreateSourceConnector(BaseModel): name: str - type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))] + type: CreateSourceConnectorType diff --git a/src/unstructured_client/models/shared/destinationconnectorinformation.py b/src/unstructured_client/models/shared/destinationconnectorinformation.py index 30264d3e..7de94415 100644 --- a/src/unstructured_client/models/shared/destinationconnectorinformation.py +++ b/src/unstructured_client/models/shared/destinationconnectorinformation.py @@ -90,6 +90,10 @@ SnowflakeDestinationConnectorConfig, SnowflakeDestinationConnectorConfigTypedDict, ) +from .teradatadestinationconnectorconfig import ( + TeradataDestinationConnectorConfig, + TeradataDestinationConnectorConfigTypedDict, +) from .weaviatedestinationconnectorconfig import ( WeaviateDestinationConnectorConfig, WeaviateDestinationConnectorConfigTypedDict, @@ -132,6 +136,7 @@ AstraDBConnectorConfigTypedDict, OpenSearchConnectorConfigTypedDict, RedisDestinationConnectorConfigTypedDict, + TeradataDestinationConnectorConfigTypedDict, DatabricksVDTDestinationConnectorConfigTypedDict, SnowflakeDestinationConnectorConfigTypedDict, IBMWatsonxS3DestinationConnectorConfigTypedDict, @@ -163,6 +168,7 @@ AstraDBConnectorConfig, OpenSearchConnectorConfig, RedisDestinationConnectorConfig, + TeradataDestinationConnectorConfig, DatabricksVDTDestinationConnectorConfig, SnowflakeDestinationConnectorConfig, IBMWatsonxS3DestinationConnectorConfig, @@ -171,12 +177,26 @@ ) +DestinationConnectorInformationTypeTypedDict = TypeAliasType( + "DestinationConnectorInformationTypeTypedDict", Union[DestinationConnectorType, str] +) + + +DestinationConnectorInformationType = TypeAliasType( + "DestinationConnectorInformationType", + Union[ + Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))], + str, + ], +) + + class DestinationConnectorInformationTypedDict(TypedDict): config: DestinationConnectorInformationConfigTypedDict created_at: datetime id: str name: str - type: DestinationConnectorType + type: DestinationConnectorInformationTypeTypedDict updated_at: NotRequired[Nullable[datetime]] @@ -189,7 +209,7 @@ class DestinationConnectorInformation(BaseModel): name: str - type: Annotated[DestinationConnectorType, PlainValidator(validate_open_enum(False))] + type: DestinationConnectorInformationType updated_at: OptionalNullable[datetime] = UNSET diff --git a/src/unstructured_client/models/shared/destinationconnectortype.py b/src/unstructured_client/models/shared/destinationconnectortype.py index b01ceb60..524f0297 100644 --- a/src/unstructured_client/models/shared/destinationconnectortype.py +++ b/src/unstructured_client/models/shared/destinationconnectortype.py @@ -28,5 +28,6 @@ class DestinationConnectorType(str, Enum, metaclass=utils.OpenEnumMeta): QDRANT_CLOUD = "qdrant-cloud" S3 = "s3" SNOWFLAKE = "snowflake" + TERADATA = "teradata" WEAVIATE_CLOUD = "weaviate-cloud" IBM_WATSONX_S3 = "ibm_watsonx_s3" diff --git a/src/unstructured_client/models/shared/sourceconnectorinformation.py b/src/unstructured_client/models/shared/sourceconnectorinformation.py index a1298793..66b1f1bc 100644 --- a/src/unstructured_client/models/shared/sourceconnectorinformation.py +++ b/src/unstructured_client/models/shared/sourceconnectorinformation.py @@ -82,6 +82,10 @@ SnowflakeSourceConnectorConfigTypedDict, ) from .sourceconnectortype import SourceConnectorType +from .teradatasourceconnectorconfig import ( + TeradataSourceConnectorConfig, + TeradataSourceConnectorConfigTypedDict, +) from .zendesksourceconnectorconfig import ( ZendeskSourceConnectorConfig, ZendeskSourceConnectorConfigTypedDict, @@ -122,6 +126,7 @@ SharePointSourceConnectorConfigTypedDict, CouchbaseSourceConnectorConfigTypedDict, PostgresSourceConnectorConfigTypedDict, + TeradataSourceConnectorConfigTypedDict, JiraSourceConnectorConfigTypedDict, ConfluenceSourceConnectorConfigTypedDict, SnowflakeSourceConnectorConfigTypedDict, @@ -151,6 +156,7 @@ SharePointSourceConnectorConfig, CouchbaseSourceConnectorConfig, PostgresSourceConnectorConfig, + TeradataSourceConnectorConfig, JiraSourceConnectorConfig, ConfluenceSourceConnectorConfig, SnowflakeSourceConnectorConfig, @@ -159,12 +165,25 @@ ) +SourceConnectorInformationTypeTypedDict = TypeAliasType( + "SourceConnectorInformationTypeTypedDict", Union[SourceConnectorType, str] +) + + +SourceConnectorInformationType = TypeAliasType( + "SourceConnectorInformationType", + Union[ + Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))], str + ], +) + + class SourceConnectorInformationTypedDict(TypedDict): config: SourceConnectorInformationConfigTypedDict created_at: datetime id: str name: str - type: SourceConnectorType + type: SourceConnectorInformationTypeTypedDict updated_at: NotRequired[Nullable[datetime]] @@ -177,7 +196,7 @@ class SourceConnectorInformation(BaseModel): name: str - type: Annotated[SourceConnectorType, PlainValidator(validate_open_enum(False))] + type: SourceConnectorInformationType updated_at: OptionalNullable[datetime] = UNSET diff --git a/src/unstructured_client/models/shared/sourceconnectortype.py b/src/unstructured_client/models/shared/sourceconnectortype.py index dcd65a77..6c7fadd1 100644 --- a/src/unstructured_client/models/shared/sourceconnectortype.py +++ b/src/unstructured_client/models/shared/sourceconnectortype.py @@ -26,5 +26,6 @@ class SourceConnectorType(str, Enum, metaclass=utils.OpenEnumMeta): SHAREPOINT = "sharepoint" SLACK = "slack" SNOWFLAKE = "snowflake" + TERADATA = "teradata" JIRA = "jira" ZENDESK = "zendesk" diff --git a/src/unstructured_client/models/shared/teradatadestinationconnectorconfig.py b/src/unstructured_client/models/shared/teradatadestinationconnectorconfig.py new file mode 100644 index 00000000..906a7d1a --- /dev/null +++ b/src/unstructured_client/models/shared/teradatadestinationconnectorconfig.py @@ -0,0 +1,78 @@ +"""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 TeradataDestinationConnectorConfigTypedDict(TypedDict): + host: str + password: str + user: str + batch_size: NotRequired[int] + database: NotRequired[Nullable[str]] + dbs_port: NotRequired[int] + record_id_key: NotRequired[Nullable[str]] + table_name: NotRequired[str] + + +class TeradataDestinationConnectorConfig(BaseModel): + host: str + + password: str + + user: str + + batch_size: Optional[int] = 50 + + database: OptionalNullable[str] = UNSET + + dbs_port: Optional[int] = 1025 + + record_id_key: OptionalNullable[str] = UNSET + + table_name: Optional[str] = "elements" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "batch_size", + "database", + "dbs_port", + "record_id_key", + "table_name", + ] + nullable_fields = ["database", "record_id_key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/teradatadestinationconnectorconfiginput.py b/src/unstructured_client/models/shared/teradatadestinationconnectorconfiginput.py new file mode 100644 index 00000000..7d70a9d5 --- /dev/null +++ b/src/unstructured_client/models/shared/teradatadestinationconnectorconfiginput.py @@ -0,0 +1,78 @@ +"""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 TeradataDestinationConnectorConfigInputTypedDict(TypedDict): + host: str + password: str + user: str + batch_size: NotRequired[int] + database: NotRequired[Nullable[str]] + dbs_port: NotRequired[int] + record_id_key: NotRequired[Nullable[str]] + table_name: NotRequired[str] + + +class TeradataDestinationConnectorConfigInput(BaseModel): + host: str + + password: str + + user: str + + batch_size: Optional[int] = 50 + + database: OptionalNullable[str] = UNSET + + dbs_port: Optional[int] = 1025 + + record_id_key: OptionalNullable[str] = UNSET + + table_name: Optional[str] = "elements" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = [ + "batch_size", + "database", + "dbs_port", + "record_id_key", + "table_name", + ] + nullable_fields = ["database", "record_id_key"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/teradatasourceconnectorconfig.py b/src/unstructured_client/models/shared/teradatasourceconnectorconfig.py new file mode 100644 index 00000000..a78088ef --- /dev/null +++ b/src/unstructured_client/models/shared/teradatasourceconnectorconfig.py @@ -0,0 +1,75 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing import List, Optional +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class TeradataSourceConnectorConfigTypedDict(TypedDict): + host: str + password: str + table_name: str + user: str + batch_size: NotRequired[int] + database: NotRequired[Nullable[str]] + dbs_port: NotRequired[int] + fields: NotRequired[Nullable[List[str]]] + id_column: NotRequired[str] + + +class TeradataSourceConnectorConfig(BaseModel): + host: str + + password: str + + table_name: str + + user: str + + batch_size: Optional[int] = 100 + + database: OptionalNullable[str] = UNSET + + dbs_port: Optional[int] = 1025 + + fields: OptionalNullable[List[str]] = UNSET + + id_column: Optional[str] = "id" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["batch_size", "database", "dbs_port", "fields", "id_column"] + nullable_fields = ["database", "fields"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/teradatasourceconnectorconfiginput.py b/src/unstructured_client/models/shared/teradatasourceconnectorconfiginput.py new file mode 100644 index 00000000..182f5241 --- /dev/null +++ b/src/unstructured_client/models/shared/teradatasourceconnectorconfiginput.py @@ -0,0 +1,75 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from pydantic import model_serializer +from typing import List, Optional +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import ( + BaseModel, + Nullable, + OptionalNullable, + UNSET, + UNSET_SENTINEL, +) + + +class TeradataSourceConnectorConfigInputTypedDict(TypedDict): + host: str + password: str + table_name: str + user: str + batch_size: NotRequired[int] + database: NotRequired[Nullable[str]] + dbs_port: NotRequired[int] + fields: NotRequired[Nullable[List[str]]] + id_column: NotRequired[str] + + +class TeradataSourceConnectorConfigInput(BaseModel): + host: str + + password: str + + table_name: str + + user: str + + batch_size: Optional[int] = 100 + + database: OptionalNullable[str] = UNSET + + dbs_port: Optional[int] = 1025 + + fields: OptionalNullable[List[str]] = UNSET + + id_column: Optional[str] = "id" + + @model_serializer(mode="wrap") + def serialize_model(self, handler): + optional_fields = ["batch_size", "database", "dbs_port", "fields", "id_column"] + nullable_fields = ["database", "fields"] + null_default_fields = [] + + serialized = handler(self) + + m = {} + + for n, f in type(self).model_fields.items(): + k = f.alias or n + val = serialized.get(k) + serialized.pop(k, None) + + optional_nullable = k in optional_fields and k in nullable_fields + is_set = ( + self.__pydantic_fields_set__.intersection({n}) + or k in null_default_fields + ) # pylint: disable=no-member + + if val is not None and val != UNSET_SENTINEL: + m[k] = val + elif val != UNSET_SENTINEL and ( + not k in optional_fields or (optional_nullable and is_set) + ): + m[k] = val + + return m diff --git a/src/unstructured_client/models/shared/updatedestinationconnector.py b/src/unstructured_client/models/shared/updatedestinationconnector.py index e338a48d..6aa5c5ce 100644 --- a/src/unstructured_client/models/shared/updatedestinationconnector.py +++ b/src/unstructured_client/models/shared/updatedestinationconnector.py @@ -89,6 +89,10 @@ SnowflakeDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInputTypedDict, ) +from .teradatadestinationconnectorconfiginput import ( + TeradataDestinationConnectorConfigInput, + TeradataDestinationConnectorConfigInputTypedDict, +) from .weaviatedestinationconnectorconfiginput import ( WeaviateDestinationConnectorConfigInput, WeaviateDestinationConnectorConfigInputTypedDict, @@ -120,6 +124,7 @@ DatabricksVolumesConnectorConfigInputTypedDict, OpenSearchConnectorConfigInputTypedDict, RedisDestinationConnectorConfigInputTypedDict, + TeradataDestinationConnectorConfigInputTypedDict, AstraDBConnectorConfigInputTypedDict, DatabricksVDTDestinationConnectorConfigInputTypedDict, SnowflakeDestinationConnectorConfigInputTypedDict, @@ -151,6 +156,7 @@ DatabricksVolumesConnectorConfigInput, OpenSearchConnectorConfigInput, RedisDestinationConnectorConfigInput, + TeradataDestinationConnectorConfigInput, AstraDBConnectorConfigInput, DatabricksVDTDestinationConnectorConfigInput, SnowflakeDestinationConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/updatesourceconnector.py b/src/unstructured_client/models/shared/updatesourceconnector.py index d975e671..272e4981 100644 --- a/src/unstructured_client/models/shared/updatesourceconnector.py +++ b/src/unstructured_client/models/shared/updatesourceconnector.py @@ -81,6 +81,10 @@ SnowflakeSourceConnectorConfigInput, SnowflakeSourceConnectorConfigInputTypedDict, ) +from .teradatasourceconnectorconfiginput import ( + TeradataSourceConnectorConfigInput, + TeradataSourceConnectorConfigInputTypedDict, +) from .zendesksourceconnectorconfiginput import ( ZendeskSourceConnectorConfigInput, ZendeskSourceConnectorConfigInputTypedDict, @@ -95,22 +99,23 @@ Union[ MongoDBConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, - BoxSourceConnectorConfigInputTypedDict, GCSSourceConnectorConfigInputTypedDict, + BoxSourceConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, - SalesforceSourceConnectorConfigInputTypedDict, GoogleDriveSourceConnectorConfigInputTypedDict, + SalesforceSourceConnectorConfigInputTypedDict, ZendeskSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - S3SourceConnectorConfigInputTypedDict, - DatabricksVolumesConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, KafkaCloudSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, - OpenSearchConnectorConfigInputTypedDict, + DatabricksVolumesConnectorConfigInputTypedDict, + S3SourceConnectorConfigInputTypedDict, SharePointSourceConnectorConfigInputTypedDict, + OpenSearchConnectorConfigInputTypedDict, CouchbaseSourceConnectorConfigInputTypedDict, PostgresSourceConnectorConfigInputTypedDict, + TeradataSourceConnectorConfigInputTypedDict, JiraSourceConnectorConfigInputTypedDict, ConfluenceSourceConnectorConfigInputTypedDict, SnowflakeSourceConnectorConfigInputTypedDict, @@ -124,22 +129,23 @@ Union[ MongoDBConnectorConfigInput, DropboxSourceConnectorConfigInput, - BoxSourceConnectorConfigInput, GCSSourceConnectorConfigInput, + BoxSourceConnectorConfigInput, ElasticsearchConnectorConfigInput, - SalesforceSourceConnectorConfigInput, GoogleDriveSourceConnectorConfigInput, + SalesforceSourceConnectorConfigInput, ZendeskSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - S3SourceConnectorConfigInput, - DatabricksVolumesConnectorConfigInput, OneDriveSourceConnectorConfigInput, KafkaCloudSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, - OpenSearchConnectorConfigInput, + DatabricksVolumesConnectorConfigInput, + S3SourceConnectorConfigInput, SharePointSourceConnectorConfigInput, + OpenSearchConnectorConfigInput, CouchbaseSourceConnectorConfigInput, PostgresSourceConnectorConfigInput, + TeradataSourceConnectorConfigInput, JiraSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInput, SnowflakeSourceConnectorConfigInput,