diff --git a/.speakeasy/gen.lock b/.speakeasy/gen.lock index c868cefc..ef835b94 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: 622461ba121cc2a105e29eab97b6bee3 + docChecksum: 0f9100e28d13105be2af4e576ea4572c docVersion: 1.0.68 speakeasyVersion: 1.490.0 generationVersion: 2.512.0 - releaseVersion: 0.30.4 - configChecksum: 87e53f0ca57296c4cae62d4792edc2cf + releaseVersion: 0.30.5 + configChecksum: 25a75f7add3305b685de164ad454cb9a repoURL: https://github.com/Unstructured-IO/unstructured-python-client.git repoSubDirectory: . installationURL: https://github.com/Unstructured-IO/unstructured-python-client.git @@ -89,6 +89,8 @@ generatedFiles: - docs/models/shared/azureaisearchconnectorconfiginput.md - docs/models/shared/azuresourceconnectorconfig.md - docs/models/shared/azuresourceconnectorconfiginput.md + - docs/models/shared/boxsourceconnectorconfig.md + - docs/models/shared/boxsourceconnectorconfiginput.md - docs/models/shared/config.md - docs/models/shared/confluencesourceconnectorconfig.md - docs/models/shared/confluencesourceconnectorconfiginput.md @@ -155,7 +157,6 @@ generatedFiles: - docs/models/shared/salesforcesourceconnectorconfiginput.md - docs/models/shared/schedule.md - docs/models/shared/security.md - - docs/models/shared/settings.md - docs/models/shared/sharepointsourceconnectorconfig.md - docs/models/shared/sharepointsourceconnectorconfiginput.md - docs/models/shared/snowflakedestinationconnectorconfig.md @@ -235,6 +236,8 @@ generatedFiles: - src/unstructured_client/models/shared/azureaisearchconnectorconfiginput.py - src/unstructured_client/models/shared/azuresourceconnectorconfig.py - src/unstructured_client/models/shared/azuresourceconnectorconfiginput.py + - src/unstructured_client/models/shared/boxsourceconnectorconfig.py + - src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py - src/unstructured_client/models/shared/confluencesourceconnectorconfig.py - src/unstructured_client/models/shared/confluencesourceconnectorconfiginput.py - src/unstructured_client/models/shared/couchbasedestinationconnectorconfig.py diff --git a/.speakeasy/workflow.lock b/.speakeasy/workflow.lock index d2a0e0e9..b5b27aa7 100644 --- a/.speakeasy/workflow.lock +++ b/.speakeasy/workflow.lock @@ -1,21 +1,21 @@ -speakeasyVersion: 1.501.0 +speakeasyVersion: 1.504.1 sources: my-source: sourceNamespace: my-source - sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140 + sourceRevisionDigest: sha256:4f63229dca06781c54905bcb9c2769ef714dccbd7b347d72ed6b9c0a57f768f9 sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be tags: - latest - - speakeasy-sdk-regen-1740182957 + - speakeasy-sdk-regen-1740499439 - 1.0.68 targets: unstructured-python: source: my-source sourceNamespace: my-source - sourceRevisionDigest: sha256:aafca097133621c9d805647795672de6a443518d28ccff1ba4ad207084ada140 + sourceRevisionDigest: sha256:4f63229dca06781c54905bcb9c2769ef714dccbd7b347d72ed6b9c0a57f768f9 sourceBlobDigest: sha256:24d7c75ebda9119f02eec391b4ac5697e7f909341f1694177d9d164ff90e39be codeSamplesNamespace: my-source-code-samples - codeSamplesRevisionDigest: sha256:45129928113c916a9525093bb2e25021b8e62477fa2b86de2af2dc369294a555 + codeSamplesRevisionDigest: sha256:c7f49ae4ef636cb4f1f872f62dbec7312d7cff92d59e1de774428843f0474b91 workflow: workflowVersion: 1.0.0 speakeasyVersion: latest diff --git a/RELEASES.md b/RELEASES.md index 20a2b015..24787505 100644 --- a/RELEASES.md +++ b/RELEASES.md @@ -814,4 +814,14 @@ Based on: ### Generated - [python v0.31.0] . ### Releases +- [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - . + +## 2025-02-26 00:09:36 +### Changes +Based on: +- OpenAPI Doc +- Speakeasy CLI 1.504.1 (2.529.2) https://github.com/speakeasy-api/speakeasy +### Generated +- [python v0.31.0] . +### Releases - [PyPI v0.31.0] https://pypi.org/project/unstructured-client/0.31.0 - . \ No newline at end of file diff --git a/docs/models/shared/boxsourceconnectorconfig.md b/docs/models/shared/boxsourceconnectorconfig.md new file mode 100644 index 00000000..37497ee9 --- /dev/null +++ b/docs/models/shared/boxsourceconnectorconfig.md @@ -0,0 +1,9 @@ +# BoxSourceConnectorConfig + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `box_app_config` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *bool* | :heavy_check_mark: | N/A | \ No newline at end of file diff --git a/docs/models/shared/boxsourceconnectorconfiginput.md b/docs/models/shared/boxsourceconnectorconfiginput.md new file mode 100644 index 00000000..bca0c2c3 --- /dev/null +++ b/docs/models/shared/boxsourceconnectorconfiginput.md @@ -0,0 +1,10 @@ +# BoxSourceConnectorConfigInput + + +## Fields + +| Field | Type | Required | Description | +| ------------------ | ------------------ | ------------------ | ------------------ | +| `box_app_config` | *str* | :heavy_check_mark: | N/A | +| `remote_url` | *str* | :heavy_check_mark: | N/A | +| `recursive` | *Optional[bool]* | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/docs/models/shared/createsourceconnectorconfig.md b/docs/models/shared/createsourceconnectorconfig.md index f439be7e..3d302e5c 100644 --- a/docs/models/shared/createsourceconnectorconfig.md +++ b/docs/models/shared/createsourceconnectorconfig.md @@ -9,6 +9,12 @@ value: shared.AzureSourceConnectorConfigInput = /* values here */ ``` +### `shared.BoxSourceConnectorConfigInput` + +```python +value: shared.BoxSourceConnectorConfigInput = /* values here */ +``` + ### `shared.ConfluenceSourceConnectorConfigInput` ```python diff --git a/docs/models/shared/settings.md b/docs/models/shared/settings.md deleted file mode 100644 index a1173742..00000000 --- a/docs/models/shared/settings.md +++ /dev/null @@ -1,7 +0,0 @@ -# Settings - - -## Fields - -| Field | Type | Required | Description | -| ----------- | ----------- | ----------- | ----------- | \ No newline at end of file diff --git a/docs/models/shared/sourceconnectorinformationconfig.md b/docs/models/shared/sourceconnectorinformationconfig.md index e6c3bb9a..4752b840 100644 --- a/docs/models/shared/sourceconnectorinformationconfig.md +++ b/docs/models/shared/sourceconnectorinformationconfig.md @@ -9,6 +9,12 @@ value: shared.AzureSourceConnectorConfig = /* values here */ ``` +### `shared.BoxSourceConnectorConfig` + +```python +value: shared.BoxSourceConnectorConfig = /* values here */ +``` + ### `shared.ConfluenceSourceConnectorConfig` ```python diff --git a/docs/models/shared/sourceconnectortype.md b/docs/models/shared/sourceconnectortype.md index b98d389b..acd81831 100644 --- a/docs/models/shared/sourceconnectortype.md +++ b/docs/models/shared/sourceconnectortype.md @@ -6,6 +6,7 @@ | Name | Value | | -------------------- | -------------------- | | `AZURE` | azure | +| `BOX` | box | | `CONFLUENCE` | confluence | | `COUCHBASE` | couchbase | | `DATABRICKS_VOLUMES` | databricks_volumes | diff --git a/docs/models/shared/updatesourceconnectorconfig.md b/docs/models/shared/updatesourceconnectorconfig.md index d557f03d..43ad9588 100644 --- a/docs/models/shared/updatesourceconnectorconfig.md +++ b/docs/models/shared/updatesourceconnectorconfig.md @@ -9,6 +9,12 @@ value: shared.AzureSourceConnectorConfigInput = /* values here */ ``` +### `shared.BoxSourceConnectorConfigInput` + +```python +value: shared.BoxSourceConnectorConfigInput = /* values here */ +``` + ### `shared.ConfluenceSourceConnectorConfigInput` ```python diff --git a/docs/models/shared/workflownode.md b/docs/models/shared/workflownode.md index 192770e4..378657bd 100644 --- a/docs/models/shared/workflownode.md +++ b/docs/models/shared/workflownode.md @@ -3,9 +3,9 @@ ## Fields -| Field | Type | Required | Description | -| -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -------------------------------------------------------------------- | -| `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 | -| `settings` | [OptionalNullable[shared.Settings]](../../models/shared/settings.md) | :heavy_minus_sign: | N/A | \ No newline at end of file +| Field | Type | Required | Description | +| ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | ------------------------------------------------------------------ | +| `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 | +| `settings` | Dict[str, *Any*] | :heavy_minus_sign: | N/A | \ No newline at end of file diff --git a/gen.yaml b/gen.yaml index 74a52973..0b16d552 100644 --- a/gen.yaml +++ b/gen.yaml @@ -13,7 +13,7 @@ generation: oAuth2ClientCredentialsEnabled: false oAuth2PasswordEnabled: false python: - version: 0.30.4 + version: 0.30.5 additionalDependencies: dev: deepdiff: '>=6.0' diff --git a/pyproject.toml b/pyproject.toml index 2f73c51d..c2ad1c3f 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "unstructured-client" -version = "0.30.4" +version = "0.30.5" description = "Python Client SDK for Unstructured API" authors = [{ name = "Unstructured" },] readme = "README-PYPI.md" diff --git a/src/unstructured_client/_version.py b/src/unstructured_client/_version.py index c59772f1..e157e7e2 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.30.4" +__version__: str = "0.30.5" __openapi_doc_version__: str = "1.0.68" __gen_version__: str = "2.512.0" -__user_agent__: str = "speakeasy-sdk/python 0.30.4 2.512.0 1.0.68 unstructured-client" +__user_agent__: str = "speakeasy-sdk/python 0.30.5 2.512.0 1.0.68 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 e4b08e08..f12f7a47 100644 --- a/src/unstructured_client/models/shared/__init__.py +++ b/src/unstructured_client/models/shared/__init__.py @@ -24,6 +24,14 @@ AzureSourceConnectorConfigInput, AzureSourceConnectorConfigInputTypedDict, ) +from .boxsourceconnectorconfig import ( + BoxSourceConnectorConfig, + BoxSourceConnectorConfigTypedDict, +) +from .boxsourceconnectorconfiginput import ( + BoxSourceConnectorConfigInput, + BoxSourceConnectorConfigInputTypedDict, +) from .confluencesourceconnectorconfig import ( ConfluenceSourceConnectorConfig, ConfluenceSourceConnectorConfigTypedDict, @@ -318,12 +326,7 @@ WeaviateDestinationConnectorConfigInputTypedDict, ) from .workflowinformation import WorkflowInformation, WorkflowInformationTypedDict -from .workflownode import ( - Settings, - SettingsTypedDict, - WorkflowNode, - WorkflowNodeTypedDict, -) +from .workflownode import WorkflowNode, WorkflowNodeTypedDict from .workflownodetype import WorkflowNodeType from .workflowschedule import WorkflowSchedule, WorkflowScheduleTypedDict from .workflowstate import WorkflowState @@ -343,6 +346,10 @@ "AzureSourceConnectorConfigInput", "AzureSourceConnectorConfigInputTypedDict", "AzureSourceConnectorConfigTypedDict", + "BoxSourceConnectorConfig", + "BoxSourceConnectorConfigInput", + "BoxSourceConnectorConfigInputTypedDict", + "BoxSourceConnectorConfigTypedDict", "Config", "ConfigTypedDict", "ConfluenceSourceConnectorConfig", @@ -472,8 +479,6 @@ "Schedule", "Security", "SecurityTypedDict", - "Settings", - "SettingsTypedDict", "SharePointSourceConnectorConfig", "SharePointSourceConnectorConfigInput", "SharePointSourceConnectorConfigInputTypedDict", diff --git a/src/unstructured_client/models/shared/boxsourceconnectorconfig.py b/src/unstructured_client/models/shared/boxsourceconnectorconfig.py new file mode 100644 index 00000000..6c787038 --- /dev/null +++ b/src/unstructured_client/models/shared/boxsourceconnectorconfig.py @@ -0,0 +1,16 @@ +"""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 BoxSourceConnectorConfigTypedDict(TypedDict): + box_app_config: str + recursive: bool + + +class BoxSourceConnectorConfig(BaseModel): + box_app_config: str + + recursive: bool diff --git a/src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py b/src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py new file mode 100644 index 00000000..13572316 --- /dev/null +++ b/src/unstructured_client/models/shared/boxsourceconnectorconfiginput.py @@ -0,0 +1,20 @@ +"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.""" + +from __future__ import annotations +from typing import Optional +from typing_extensions import NotRequired, TypedDict +from unstructured_client.types import BaseModel + + +class BoxSourceConnectorConfigInputTypedDict(TypedDict): + box_app_config: str + remote_url: str + recursive: NotRequired[bool] + + +class BoxSourceConnectorConfigInput(BaseModel): + box_app_config: str + + remote_url: str + + recursive: Optional[bool] = True diff --git a/src/unstructured_client/models/shared/createsourceconnector.py b/src/unstructured_client/models/shared/createsourceconnector.py index c0b51d19..db53d233 100644 --- a/src/unstructured_client/models/shared/createsourceconnector.py +++ b/src/unstructured_client/models/shared/createsourceconnector.py @@ -5,6 +5,10 @@ AzureSourceConnectorConfigInput, AzureSourceConnectorConfigInputTypedDict, ) +from .boxsourceconnectorconfiginput import ( + BoxSourceConnectorConfigInput, + BoxSourceConnectorConfigInputTypedDict, +) from .confluencesourceconnectorconfiginput import ( ConfluenceSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInputTypedDict, @@ -75,6 +79,7 @@ "CreateSourceConnectorConfigTypedDict", Union[ MongoDBConnectorConfigInputTypedDict, + BoxSourceConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, GCSSourceConnectorConfigInputTypedDict, @@ -82,8 +87,8 @@ GoogleDriveSourceConnectorConfigInputTypedDict, SharePointSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - KafkaCloudSourceConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + KafkaCloudSourceConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, S3SourceConnectorConfigInputTypedDict, @@ -98,6 +103,7 @@ "CreateSourceConnectorConfig", Union[ MongoDBConnectorConfigInput, + BoxSourceConnectorConfigInput, DropboxSourceConnectorConfigInput, ElasticsearchConnectorConfigInput, GCSSourceConnectorConfigInput, @@ -105,8 +111,8 @@ GoogleDriveSourceConnectorConfigInput, SharePointSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - KafkaCloudSourceConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + KafkaCloudSourceConnectorConfigInput, OneDriveSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, S3SourceConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/sourceconnectorinformation.py b/src/unstructured_client/models/shared/sourceconnectorinformation.py index ea84e656..2b879bdc 100644 --- a/src/unstructured_client/models/shared/sourceconnectorinformation.py +++ b/src/unstructured_client/models/shared/sourceconnectorinformation.py @@ -5,6 +5,10 @@ AzureSourceConnectorConfig, AzureSourceConnectorConfigTypedDict, ) +from .boxsourceconnectorconfig import ( + BoxSourceConnectorConfig, + BoxSourceConnectorConfigTypedDict, +) from .confluencesourceconnectorconfig import ( ConfluenceSourceConnectorConfig, ConfluenceSourceConnectorConfigTypedDict, @@ -82,6 +86,7 @@ SourceConnectorInformationConfigTypedDict = TypeAliasType( "SourceConnectorInformationConfigTypedDict", Union[ + BoxSourceConnectorConfigTypedDict, MongoDBConnectorConfigTypedDict, DropboxSourceConnectorConfigTypedDict, ElasticsearchConnectorConfigTypedDict, @@ -90,8 +95,8 @@ GoogleDriveSourceConnectorConfigTypedDict, SharePointSourceConnectorConfigTypedDict, AzureSourceConnectorConfigTypedDict, - KafkaCloudSourceConnectorConfigTypedDict, DatabricksVolumesConnectorConfigTypedDict, + KafkaCloudSourceConnectorConfigTypedDict, OneDriveSourceConnectorConfigTypedDict, OutlookSourceConnectorConfigTypedDict, S3SourceConnectorConfigTypedDict, @@ -105,6 +110,7 @@ SourceConnectorInformationConfig = TypeAliasType( "SourceConnectorInformationConfig", Union[ + BoxSourceConnectorConfig, MongoDBConnectorConfig, DropboxSourceConnectorConfig, ElasticsearchConnectorConfig, @@ -113,8 +119,8 @@ GoogleDriveSourceConnectorConfig, SharePointSourceConnectorConfig, AzureSourceConnectorConfig, - KafkaCloudSourceConnectorConfig, DatabricksVolumesConnectorConfig, + KafkaCloudSourceConnectorConfig, OneDriveSourceConnectorConfig, OutlookSourceConnectorConfig, S3SourceConnectorConfig, diff --git a/src/unstructured_client/models/shared/sourceconnectortype.py b/src/unstructured_client/models/shared/sourceconnectortype.py index 5eef21f3..26e7b123 100644 --- a/src/unstructured_client/models/shared/sourceconnectortype.py +++ b/src/unstructured_client/models/shared/sourceconnectortype.py @@ -6,6 +6,7 @@ class SourceConnectorType(str, Enum): AZURE = "azure" + BOX = "box" CONFLUENCE = "confluence" COUCHBASE = "couchbase" DATABRICKS_VOLUMES = "databricks_volumes" diff --git a/src/unstructured_client/models/shared/updatesourceconnector.py b/src/unstructured_client/models/shared/updatesourceconnector.py index c8286a9c..5e28ab2e 100644 --- a/src/unstructured_client/models/shared/updatesourceconnector.py +++ b/src/unstructured_client/models/shared/updatesourceconnector.py @@ -5,6 +5,10 @@ AzureSourceConnectorConfigInput, AzureSourceConnectorConfigInputTypedDict, ) +from .boxsourceconnectorconfiginput import ( + BoxSourceConnectorConfigInput, + BoxSourceConnectorConfigInputTypedDict, +) from .confluencesourceconnectorconfiginput import ( ConfluenceSourceConnectorConfigInput, ConfluenceSourceConnectorConfigInputTypedDict, @@ -74,6 +78,7 @@ "UpdateSourceConnectorConfigTypedDict", Union[ MongoDBConnectorConfigInputTypedDict, + BoxSourceConnectorConfigInputTypedDict, DropboxSourceConnectorConfigInputTypedDict, ElasticsearchConnectorConfigInputTypedDict, GCSSourceConnectorConfigInputTypedDict, @@ -81,8 +86,8 @@ GoogleDriveSourceConnectorConfigInputTypedDict, SharePointSourceConnectorConfigInputTypedDict, AzureSourceConnectorConfigInputTypedDict, - KafkaCloudSourceConnectorConfigInputTypedDict, DatabricksVolumesConnectorConfigInputTypedDict, + KafkaCloudSourceConnectorConfigInputTypedDict, OneDriveSourceConnectorConfigInputTypedDict, OutlookSourceConnectorConfigInputTypedDict, S3SourceConnectorConfigInputTypedDict, @@ -97,6 +102,7 @@ "UpdateSourceConnectorConfig", Union[ MongoDBConnectorConfigInput, + BoxSourceConnectorConfigInput, DropboxSourceConnectorConfigInput, ElasticsearchConnectorConfigInput, GCSSourceConnectorConfigInput, @@ -104,8 +110,8 @@ GoogleDriveSourceConnectorConfigInput, SharePointSourceConnectorConfigInput, AzureSourceConnectorConfigInput, - KafkaCloudSourceConnectorConfigInput, DatabricksVolumesConnectorConfigInput, + KafkaCloudSourceConnectorConfigInput, OneDriveSourceConnectorConfigInput, OutlookSourceConnectorConfigInput, S3SourceConnectorConfigInput, diff --git a/src/unstructured_client/models/shared/workflownode.py b/src/unstructured_client/models/shared/workflownode.py index 464d62d2..8fc31532 100644 --- a/src/unstructured_client/models/shared/workflownode.py +++ b/src/unstructured_client/models/shared/workflownode.py @@ -3,6 +3,7 @@ from __future__ import annotations from .workflownodetype import WorkflowNodeType from pydantic import model_serializer +from typing import Any, Dict from typing_extensions import NotRequired, TypedDict from unstructured_client.types import ( BaseModel, @@ -13,19 +14,11 @@ ) -class SettingsTypedDict(TypedDict): - pass - - -class Settings(BaseModel): - pass - - class WorkflowNodeTypedDict(TypedDict): name: str subtype: str type: WorkflowNodeType - settings: NotRequired[Nullable[SettingsTypedDict]] + settings: NotRequired[Nullable[Dict[str, Any]]] class WorkflowNode(BaseModel): @@ -35,7 +28,7 @@ class WorkflowNode(BaseModel): type: WorkflowNodeType - settings: OptionalNullable[Settings] = UNSET + settings: OptionalNullable[Dict[str, Any]] = UNSET @model_serializer(mode="wrap") def serialize_model(self, handler):