Skip to content

Commit f6952f7

Browse files
committed
Revert CreateWorkflow schema changes
1 parent 4282a19 commit f6952f7

File tree

7 files changed

+7
-83
lines changed

7 files changed

+7
-83
lines changed

docs/models/shared/createworkflow.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,4 @@
1010
| `destination_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
1111
| `schedule` | [OptionalNullable[shared.Schedule]](../../models/shared/schedule.md) | :heavy_minus_sign: | N/A |
1212
| `source_id` | *OptionalNullable[str]* | :heavy_minus_sign: | N/A |
13-
| `workflow_nodes` | List[[shared.CreateWorkflowNode](../../models/shared/createworkflownode.md)] | :heavy_minus_sign: | N/A |
13+
| `workflow_nodes` | List[[shared.WorkflowNode](../../models/shared/workflownode.md)] | :heavy_minus_sign: | N/A |

docs/models/shared/createworkflownode.md

Lines changed: 0 additions & 11 deletions
This file was deleted.

src/unstructured_client/models/shared/__init__.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@
7575
CreateSourceConnectorTypedDict,
7676
)
7777
from .createworkflow import CreateWorkflow, CreateWorkflowTypedDict, Schedule
78-
from .createworkflownode import CreateWorkflowNode, CreateWorkflowNodeTypedDict
7978
from .crontabentry import CronTabEntry, CronTabEntryTypedDict
8079
from .databricks_volumessourceconnectorconfig import (
8180
DatabricksVolumesSourceConnectorConfig,

src/unstructured_client/models/shared/createworkflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

33
from __future__ import annotations
4-
from .createworkflownode import CreateWorkflowNode, CreateWorkflowNodeTypedDict
4+
from .workflownode import WorkflowNode, WorkflowNodeTypedDict
55
from .workflowtype import WorkflowType
66
from enum import Enum
77
from pydantic import model_serializer
@@ -36,7 +36,7 @@ class CreateWorkflowTypedDict(TypedDict):
3636
destination_id: NotRequired[Nullable[str]]
3737
schedule: NotRequired[Nullable[Schedule]]
3838
source_id: NotRequired[Nullable[str]]
39-
workflow_nodes: NotRequired[Nullable[List[CreateWorkflowNodeTypedDict]]]
39+
workflow_nodes: NotRequired[Nullable[List[WorkflowNodeTypedDict]]]
4040

4141

4242
class CreateWorkflow(BaseModel):
@@ -50,7 +50,7 @@ class CreateWorkflow(BaseModel):
5050

5151
source_id: OptionalNullable[str] = UNSET
5252

53-
workflow_nodes: OptionalNullable[List[CreateWorkflowNode]] = UNSET
53+
workflow_nodes: OptionalNullable[List[WorkflowNode]] = UNSET
5454

5555
@model_serializer(mode="wrap")
5656
def serialize_model(self, handler):

src/unstructured_client/models/shared/createworkflownode.py

Lines changed: 0 additions & 61 deletions
This file was deleted.

src/unstructured_client/models/shared/updateworkflow.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
"""Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT."""
22

33
from __future__ import annotations
4-
from .createworkflownode import CreateWorkflowNode, CreateWorkflowNodeTypedDict
4+
from .workflownode import WorkflowNode, WorkflowNodeTypedDict
55
from .workflowtype import WorkflowType
66
from enum import Enum
77
from pydantic import model_serializer
@@ -35,7 +35,7 @@ class UpdateWorkflowTypedDict(TypedDict):
3535
name: NotRequired[Nullable[str]]
3636
schedule: NotRequired[Nullable[UpdateWorkflowSchedule]]
3737
source_id: NotRequired[Nullable[str]]
38-
workflow_nodes: NotRequired[Nullable[List[CreateWorkflowNodeTypedDict]]]
38+
workflow_nodes: NotRequired[Nullable[List[WorkflowNodeTypedDict]]]
3939
workflow_type: NotRequired[Nullable[WorkflowType]]
4040

4141

@@ -48,7 +48,7 @@ class UpdateWorkflow(BaseModel):
4848

4949
source_id: OptionalNullable[str] = UNSET
5050

51-
workflow_nodes: OptionalNullable[List[CreateWorkflowNode]] = UNSET
51+
workflow_nodes: OptionalNullable[List[WorkflowNode]] = UNSET
5252

5353
workflow_type: OptionalNullable[WorkflowType] = UNSET
5454

src/unstructured_client/models/shared/workflownode.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,13 @@
1515

1616

1717
class WorkflowNodeTypedDict(TypedDict):
18-
id: str
1918
name: str
2019
subtype: str
2120
type: WorkflowNodeType
2221
settings: NotRequired[Nullable[Dict[str, Any]]]
2322

2423

2524
class WorkflowNode(BaseModel):
26-
id: str
27-
2825
name: str
2926

3027
subtype: str

0 commit comments

Comments
 (0)