windmill-api 1.553.0__py3-none-any.whl → 1.555.2__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of windmill-api might be problematic. Click here for more details.
- windmill_api/api/app/get_public_secret_of_latest_version_of_app.py +101 -0
- windmill_api/api/flow_conversation/__init__.py +0 -0
- windmill_api/api/flow_conversation/delete_flow_conversation.py +101 -0
- windmill_api/api/flow_conversation/list_conversation_messages.py +206 -0
- windmill_api/api/flow_conversation/list_flow_conversations.py +207 -0
- windmill_api/api/job/run_and_stream_flow_by_path.py +171 -0
- windmill_api/api/job/run_and_stream_flow_by_path_get.py +169 -0
- windmill_api/api/job/run_and_stream_script_by_hash.py +189 -0
- windmill_api/api/job/run_and_stream_script_by_hash_get.py +187 -0
- windmill_api/api/job/run_and_stream_script_by_path.py +189 -0
- windmill_api/api/job/run_and_stream_script_by_path_get.py +187 -0
- windmill_api/api/job/run_flow_by_path.py +9 -0
- windmill_api/api/job/run_wait_result_flow_by_path.py +9 -0
- windmill_api/models/completed_job_raw_flow.py +8 -0
- windmill_api/models/delete_completed_job_response_200_raw_flow.py +8 -0
- windmill_api/models/extended_jobs_jobs_item_type_0_raw_flow.py +8 -0
- windmill_api/models/extended_jobs_jobs_item_type_1_raw_flow.py +8 -0
- windmill_api/models/flow_conversation.py +107 -0
- windmill_api/models/flow_conversation_message.py +101 -0
- windmill_api/models/flow_conversation_message_message_type.py +10 -0
- windmill_api/models/flow_preview_value.py +8 -0
- windmill_api/models/get_completed_job_response_200_raw_flow.py +8 -0
- windmill_api/models/get_flow_by_path_response_200_value.py +8 -0
- windmill_api/models/get_flow_by_path_with_draft_response_200_draft_value.py +8 -0
- windmill_api/models/get_flow_version_response_200_value.py +8 -0
- windmill_api/models/get_hub_flow_by_id_response_200_flow_value.py +8 -0
- windmill_api/models/get_job_response_200_type_0_raw_flow.py +8 -0
- windmill_api/models/get_job_response_200_type_1_raw_flow.py +8 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_0_raw_flow.py +8 -0
- windmill_api/models/get_suspended_job_flow_response_200_job_type_1_raw_flow.py +8 -0
- windmill_api/models/list_completed_jobs_response_200_item_raw_flow.py +8 -0
- windmill_api/models/list_conversation_messages_response_200_item.py +103 -0
- windmill_api/models/list_conversation_messages_response_200_item_message_type.py +10 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_0_raw_flow.py +8 -0
- windmill_api/models/list_extended_jobs_response_200_jobs_item_type_1_raw_flow.py +8 -0
- windmill_api/models/list_flow_conversations_response_200_item.py +107 -0
- windmill_api/models/list_jobs_response_200_item_type_0_raw_flow.py +8 -0
- windmill_api/models/list_jobs_response_200_item_type_1_raw_flow.py +8 -0
- windmill_api/models/list_queue_response_200_item_raw_flow.py +8 -0
- windmill_api/models/list_user_workspaces_response_200_workspaces_item.py +7 -0
- windmill_api/models/open_flow_value.py +8 -0
- windmill_api/models/open_flow_w_path_value.py +8 -0
- windmill_api/models/queued_job_raw_flow.py +8 -0
- windmill_api/models/run_and_stream_flow_by_path_json_body.py +44 -0
- windmill_api/models/run_and_stream_script_by_hash_json_body.py +44 -0
- windmill_api/models/run_and_stream_script_by_path_json_body.py +44 -0
- windmill_api/models/run_flow_preview_and_wait_result_json_body_value.py +8 -0
- windmill_api/models/run_flow_preview_json_body_value.py +8 -0
- windmill_api/models/user_workspace_list_workspaces_item.py +7 -0
- {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/METADATA +1 -1
- {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/RECORD +53 -33
- {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/LICENSE +0 -0
- {windmill_api-1.553.0.dist-info → windmill_api-1.555.2.dist-info}/WHEEL +0 -0
|
@@ -29,6 +29,7 @@ class CompletedJobRawFlow:
|
|
|
29
29
|
cache_ttl (Union[Unset, float]):
|
|
30
30
|
priority (Union[Unset, float]):
|
|
31
31
|
early_return (Union[Unset, str]):
|
|
32
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
32
33
|
"""
|
|
33
34
|
|
|
34
35
|
modules: List["CompletedJobRawFlowModulesItem"]
|
|
@@ -42,6 +43,7 @@ class CompletedJobRawFlow:
|
|
|
42
43
|
cache_ttl: Union[Unset, float] = UNSET
|
|
43
44
|
priority: Union[Unset, float] = UNSET
|
|
44
45
|
early_return: Union[Unset, str] = UNSET
|
|
46
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
45
47
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
46
48
|
|
|
47
49
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -67,6 +69,7 @@ class CompletedJobRawFlow:
|
|
|
67
69
|
cache_ttl = self.cache_ttl
|
|
68
70
|
priority = self.priority
|
|
69
71
|
early_return = self.early_return
|
|
72
|
+
chat_input_enabled = self.chat_input_enabled
|
|
70
73
|
|
|
71
74
|
field_dict: Dict[str, Any] = {}
|
|
72
75
|
field_dict.update(self.additional_properties)
|
|
@@ -95,6 +98,8 @@ class CompletedJobRawFlow:
|
|
|
95
98
|
field_dict["priority"] = priority
|
|
96
99
|
if early_return is not UNSET:
|
|
97
100
|
field_dict["early_return"] = early_return
|
|
101
|
+
if chat_input_enabled is not UNSET:
|
|
102
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
98
103
|
|
|
99
104
|
return field_dict
|
|
100
105
|
|
|
@@ -142,6 +147,8 @@ class CompletedJobRawFlow:
|
|
|
142
147
|
|
|
143
148
|
early_return = d.pop("early_return", UNSET)
|
|
144
149
|
|
|
150
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
151
|
+
|
|
145
152
|
completed_job_raw_flow = cls(
|
|
146
153
|
modules=modules,
|
|
147
154
|
failure_module=failure_module,
|
|
@@ -154,6 +161,7 @@ class CompletedJobRawFlow:
|
|
|
154
161
|
cache_ttl=cache_ttl,
|
|
155
162
|
priority=priority,
|
|
156
163
|
early_return=early_return,
|
|
164
|
+
chat_input_enabled=chat_input_enabled,
|
|
157
165
|
)
|
|
158
166
|
|
|
159
167
|
completed_job_raw_flow.additional_properties = d
|
|
@@ -35,6 +35,7 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
35
35
|
cache_ttl (Union[Unset, float]):
|
|
36
36
|
priority (Union[Unset, float]):
|
|
37
37
|
early_return (Union[Unset, str]):
|
|
38
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
modules: List["DeleteCompletedJobResponse200RawFlowModulesItem"]
|
|
@@ -48,6 +49,7 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
48
49
|
cache_ttl: Union[Unset, float] = UNSET
|
|
49
50
|
priority: Union[Unset, float] = UNSET
|
|
50
51
|
early_return: Union[Unset, str] = UNSET
|
|
52
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
73
75
|
cache_ttl = self.cache_ttl
|
|
74
76
|
priority = self.priority
|
|
75
77
|
early_return = self.early_return
|
|
78
|
+
chat_input_enabled = self.chat_input_enabled
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -101,6 +104,8 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
101
104
|
field_dict["priority"] = priority
|
|
102
105
|
if early_return is not UNSET:
|
|
103
106
|
field_dict["early_return"] = early_return
|
|
107
|
+
if chat_input_enabled is not UNSET:
|
|
108
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
104
109
|
|
|
105
110
|
return field_dict
|
|
106
111
|
|
|
@@ -154,6 +159,8 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
154
159
|
|
|
155
160
|
early_return = d.pop("early_return", UNSET)
|
|
156
161
|
|
|
162
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
163
|
+
|
|
157
164
|
delete_completed_job_response_200_raw_flow = cls(
|
|
158
165
|
modules=modules,
|
|
159
166
|
failure_module=failure_module,
|
|
@@ -166,6 +173,7 @@ class DeleteCompletedJobResponse200RawFlow:
|
|
|
166
173
|
cache_ttl=cache_ttl,
|
|
167
174
|
priority=priority,
|
|
168
175
|
early_return=early_return,
|
|
176
|
+
chat_input_enabled=chat_input_enabled,
|
|
169
177
|
)
|
|
170
178
|
|
|
171
179
|
delete_completed_job_response_200_raw_flow.additional_properties = d
|
|
@@ -35,6 +35,7 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
35
35
|
cache_ttl (Union[Unset, float]):
|
|
36
36
|
priority (Union[Unset, float]):
|
|
37
37
|
early_return (Union[Unset, str]):
|
|
38
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
modules: List["ExtendedJobsJobsItemType0RawFlowModulesItem"]
|
|
@@ -48,6 +49,7 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
48
49
|
cache_ttl: Union[Unset, float] = UNSET
|
|
49
50
|
priority: Union[Unset, float] = UNSET
|
|
50
51
|
early_return: Union[Unset, str] = UNSET
|
|
52
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
73
75
|
cache_ttl = self.cache_ttl
|
|
74
76
|
priority = self.priority
|
|
75
77
|
early_return = self.early_return
|
|
78
|
+
chat_input_enabled = self.chat_input_enabled
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -101,6 +104,8 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
101
104
|
field_dict["priority"] = priority
|
|
102
105
|
if early_return is not UNSET:
|
|
103
106
|
field_dict["early_return"] = early_return
|
|
107
|
+
if chat_input_enabled is not UNSET:
|
|
108
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
104
109
|
|
|
105
110
|
return field_dict
|
|
106
111
|
|
|
@@ -154,6 +159,8 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
154
159
|
|
|
155
160
|
early_return = d.pop("early_return", UNSET)
|
|
156
161
|
|
|
162
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
163
|
+
|
|
157
164
|
extended_jobs_jobs_item_type_0_raw_flow = cls(
|
|
158
165
|
modules=modules,
|
|
159
166
|
failure_module=failure_module,
|
|
@@ -166,6 +173,7 @@ class ExtendedJobsJobsItemType0RawFlow:
|
|
|
166
173
|
cache_ttl=cache_ttl,
|
|
167
174
|
priority=priority,
|
|
168
175
|
early_return=early_return,
|
|
176
|
+
chat_input_enabled=chat_input_enabled,
|
|
169
177
|
)
|
|
170
178
|
|
|
171
179
|
extended_jobs_jobs_item_type_0_raw_flow.additional_properties = d
|
|
@@ -35,6 +35,7 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
35
35
|
cache_ttl (Union[Unset, float]):
|
|
36
36
|
priority (Union[Unset, float]):
|
|
37
37
|
early_return (Union[Unset, str]):
|
|
38
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
modules: List["ExtendedJobsJobsItemType1RawFlowModulesItem"]
|
|
@@ -48,6 +49,7 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
48
49
|
cache_ttl: Union[Unset, float] = UNSET
|
|
49
50
|
priority: Union[Unset, float] = UNSET
|
|
50
51
|
early_return: Union[Unset, str] = UNSET
|
|
52
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
73
75
|
cache_ttl = self.cache_ttl
|
|
74
76
|
priority = self.priority
|
|
75
77
|
early_return = self.early_return
|
|
78
|
+
chat_input_enabled = self.chat_input_enabled
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -101,6 +104,8 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
101
104
|
field_dict["priority"] = priority
|
|
102
105
|
if early_return is not UNSET:
|
|
103
106
|
field_dict["early_return"] = early_return
|
|
107
|
+
if chat_input_enabled is not UNSET:
|
|
108
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
104
109
|
|
|
105
110
|
return field_dict
|
|
106
111
|
|
|
@@ -154,6 +159,8 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
154
159
|
|
|
155
160
|
early_return = d.pop("early_return", UNSET)
|
|
156
161
|
|
|
162
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
163
|
+
|
|
157
164
|
extended_jobs_jobs_item_type_1_raw_flow = cls(
|
|
158
165
|
modules=modules,
|
|
159
166
|
failure_module=failure_module,
|
|
@@ -166,6 +173,7 @@ class ExtendedJobsJobsItemType1RawFlow:
|
|
|
166
173
|
cache_ttl=cache_ttl,
|
|
167
174
|
priority=priority,
|
|
168
175
|
early_return=early_return,
|
|
176
|
+
chat_input_enabled=chat_input_enabled,
|
|
169
177
|
)
|
|
170
178
|
|
|
171
179
|
extended_jobs_jobs_item_type_1_raw_flow.additional_properties = d
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
T = TypeVar("T", bound="FlowConversation")
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
@_attrs_define
|
|
14
|
+
class FlowConversation:
|
|
15
|
+
"""
|
|
16
|
+
Attributes:
|
|
17
|
+
id (str): Unique identifier for the conversation
|
|
18
|
+
workspace_id (str): The workspace ID where the conversation belongs
|
|
19
|
+
flow_path (str): Path of the flow this conversation is for
|
|
20
|
+
created_at (datetime.datetime): When the conversation was created
|
|
21
|
+
updated_at (datetime.datetime): When the conversation was last updated
|
|
22
|
+
created_by (str): Username who created the conversation
|
|
23
|
+
title (Union[Unset, None, str]): Optional title for the conversation
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
id: str
|
|
27
|
+
workspace_id: str
|
|
28
|
+
flow_path: str
|
|
29
|
+
created_at: datetime.datetime
|
|
30
|
+
updated_at: datetime.datetime
|
|
31
|
+
created_by: str
|
|
32
|
+
title: Union[Unset, None, str] = UNSET
|
|
33
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
34
|
+
|
|
35
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
36
|
+
id = self.id
|
|
37
|
+
workspace_id = self.workspace_id
|
|
38
|
+
flow_path = self.flow_path
|
|
39
|
+
created_at = self.created_at.isoformat()
|
|
40
|
+
|
|
41
|
+
updated_at = self.updated_at.isoformat()
|
|
42
|
+
|
|
43
|
+
created_by = self.created_by
|
|
44
|
+
title = self.title
|
|
45
|
+
|
|
46
|
+
field_dict: Dict[str, Any] = {}
|
|
47
|
+
field_dict.update(self.additional_properties)
|
|
48
|
+
field_dict.update(
|
|
49
|
+
{
|
|
50
|
+
"id": id,
|
|
51
|
+
"workspace_id": workspace_id,
|
|
52
|
+
"flow_path": flow_path,
|
|
53
|
+
"created_at": created_at,
|
|
54
|
+
"updated_at": updated_at,
|
|
55
|
+
"created_by": created_by,
|
|
56
|
+
}
|
|
57
|
+
)
|
|
58
|
+
if title is not UNSET:
|
|
59
|
+
field_dict["title"] = title
|
|
60
|
+
|
|
61
|
+
return field_dict
|
|
62
|
+
|
|
63
|
+
@classmethod
|
|
64
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
65
|
+
d = src_dict.copy()
|
|
66
|
+
id = d.pop("id")
|
|
67
|
+
|
|
68
|
+
workspace_id = d.pop("workspace_id")
|
|
69
|
+
|
|
70
|
+
flow_path = d.pop("flow_path")
|
|
71
|
+
|
|
72
|
+
created_at = isoparse(d.pop("created_at"))
|
|
73
|
+
|
|
74
|
+
updated_at = isoparse(d.pop("updated_at"))
|
|
75
|
+
|
|
76
|
+
created_by = d.pop("created_by")
|
|
77
|
+
|
|
78
|
+
title = d.pop("title", UNSET)
|
|
79
|
+
|
|
80
|
+
flow_conversation = cls(
|
|
81
|
+
id=id,
|
|
82
|
+
workspace_id=workspace_id,
|
|
83
|
+
flow_path=flow_path,
|
|
84
|
+
created_at=created_at,
|
|
85
|
+
updated_at=updated_at,
|
|
86
|
+
created_by=created_by,
|
|
87
|
+
title=title,
|
|
88
|
+
)
|
|
89
|
+
|
|
90
|
+
flow_conversation.additional_properties = d
|
|
91
|
+
return flow_conversation
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def additional_keys(self) -> List[str]:
|
|
95
|
+
return list(self.additional_properties.keys())
|
|
96
|
+
|
|
97
|
+
def __getitem__(self, key: str) -> Any:
|
|
98
|
+
return self.additional_properties[key]
|
|
99
|
+
|
|
100
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
101
|
+
self.additional_properties[key] = value
|
|
102
|
+
|
|
103
|
+
def __delitem__(self, key: str) -> None:
|
|
104
|
+
del self.additional_properties[key]
|
|
105
|
+
|
|
106
|
+
def __contains__(self, key: str) -> bool:
|
|
107
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from typing import Any, Dict, List, Type, TypeVar, Union
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
from dateutil.parser import isoparse
|
|
7
|
+
|
|
8
|
+
from ..models.flow_conversation_message_message_type import FlowConversationMessageMessageType
|
|
9
|
+
from ..types import UNSET, Unset
|
|
10
|
+
|
|
11
|
+
T = TypeVar("T", bound="FlowConversationMessage")
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
@_attrs_define
|
|
15
|
+
class FlowConversationMessage:
|
|
16
|
+
"""
|
|
17
|
+
Attributes:
|
|
18
|
+
id (str): Unique identifier for the message
|
|
19
|
+
conversation_id (str): The conversation this message belongs to
|
|
20
|
+
message_type (FlowConversationMessageMessageType): Type of the message
|
|
21
|
+
content (str): The message content
|
|
22
|
+
created_at (datetime.datetime): When the message was created
|
|
23
|
+
job_id (Union[Unset, None, str]): Associated job ID if this message came from a flow run
|
|
24
|
+
"""
|
|
25
|
+
|
|
26
|
+
id: str
|
|
27
|
+
conversation_id: str
|
|
28
|
+
message_type: FlowConversationMessageMessageType
|
|
29
|
+
content: str
|
|
30
|
+
created_at: datetime.datetime
|
|
31
|
+
job_id: Union[Unset, None, str] = UNSET
|
|
32
|
+
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
33
|
+
|
|
34
|
+
def to_dict(self) -> Dict[str, Any]:
|
|
35
|
+
id = self.id
|
|
36
|
+
conversation_id = self.conversation_id
|
|
37
|
+
message_type = self.message_type.value
|
|
38
|
+
|
|
39
|
+
content = self.content
|
|
40
|
+
created_at = self.created_at.isoformat()
|
|
41
|
+
|
|
42
|
+
job_id = self.job_id
|
|
43
|
+
|
|
44
|
+
field_dict: Dict[str, Any] = {}
|
|
45
|
+
field_dict.update(self.additional_properties)
|
|
46
|
+
field_dict.update(
|
|
47
|
+
{
|
|
48
|
+
"id": id,
|
|
49
|
+
"conversation_id": conversation_id,
|
|
50
|
+
"message_type": message_type,
|
|
51
|
+
"content": content,
|
|
52
|
+
"created_at": created_at,
|
|
53
|
+
}
|
|
54
|
+
)
|
|
55
|
+
if job_id is not UNSET:
|
|
56
|
+
field_dict["job_id"] = job_id
|
|
57
|
+
|
|
58
|
+
return field_dict
|
|
59
|
+
|
|
60
|
+
@classmethod
|
|
61
|
+
def from_dict(cls: Type[T], src_dict: Dict[str, Any]) -> T:
|
|
62
|
+
d = src_dict.copy()
|
|
63
|
+
id = d.pop("id")
|
|
64
|
+
|
|
65
|
+
conversation_id = d.pop("conversation_id")
|
|
66
|
+
|
|
67
|
+
message_type = FlowConversationMessageMessageType(d.pop("message_type"))
|
|
68
|
+
|
|
69
|
+
content = d.pop("content")
|
|
70
|
+
|
|
71
|
+
created_at = isoparse(d.pop("created_at"))
|
|
72
|
+
|
|
73
|
+
job_id = d.pop("job_id", UNSET)
|
|
74
|
+
|
|
75
|
+
flow_conversation_message = cls(
|
|
76
|
+
id=id,
|
|
77
|
+
conversation_id=conversation_id,
|
|
78
|
+
message_type=message_type,
|
|
79
|
+
content=content,
|
|
80
|
+
created_at=created_at,
|
|
81
|
+
job_id=job_id,
|
|
82
|
+
)
|
|
83
|
+
|
|
84
|
+
flow_conversation_message.additional_properties = d
|
|
85
|
+
return flow_conversation_message
|
|
86
|
+
|
|
87
|
+
@property
|
|
88
|
+
def additional_keys(self) -> List[str]:
|
|
89
|
+
return list(self.additional_properties.keys())
|
|
90
|
+
|
|
91
|
+
def __getitem__(self, key: str) -> Any:
|
|
92
|
+
return self.additional_properties[key]
|
|
93
|
+
|
|
94
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
95
|
+
self.additional_properties[key] = value
|
|
96
|
+
|
|
97
|
+
def __delitem__(self, key: str) -> None:
|
|
98
|
+
del self.additional_properties[key]
|
|
99
|
+
|
|
100
|
+
def __contains__(self, key: str) -> bool:
|
|
101
|
+
return key in self.additional_properties
|
|
@@ -29,6 +29,7 @@ class FlowPreviewValue:
|
|
|
29
29
|
cache_ttl (Union[Unset, float]):
|
|
30
30
|
priority (Union[Unset, float]):
|
|
31
31
|
early_return (Union[Unset, str]):
|
|
32
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
32
33
|
"""
|
|
33
34
|
|
|
34
35
|
modules: List["FlowPreviewValueModulesItem"]
|
|
@@ -42,6 +43,7 @@ class FlowPreviewValue:
|
|
|
42
43
|
cache_ttl: Union[Unset, float] = UNSET
|
|
43
44
|
priority: Union[Unset, float] = UNSET
|
|
44
45
|
early_return: Union[Unset, str] = UNSET
|
|
46
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
45
47
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
46
48
|
|
|
47
49
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -67,6 +69,7 @@ class FlowPreviewValue:
|
|
|
67
69
|
cache_ttl = self.cache_ttl
|
|
68
70
|
priority = self.priority
|
|
69
71
|
early_return = self.early_return
|
|
72
|
+
chat_input_enabled = self.chat_input_enabled
|
|
70
73
|
|
|
71
74
|
field_dict: Dict[str, Any] = {}
|
|
72
75
|
field_dict.update(self.additional_properties)
|
|
@@ -95,6 +98,8 @@ class FlowPreviewValue:
|
|
|
95
98
|
field_dict["priority"] = priority
|
|
96
99
|
if early_return is not UNSET:
|
|
97
100
|
field_dict["early_return"] = early_return
|
|
101
|
+
if chat_input_enabled is not UNSET:
|
|
102
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
98
103
|
|
|
99
104
|
return field_dict
|
|
100
105
|
|
|
@@ -142,6 +147,8 @@ class FlowPreviewValue:
|
|
|
142
147
|
|
|
143
148
|
early_return = d.pop("early_return", UNSET)
|
|
144
149
|
|
|
150
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
151
|
+
|
|
145
152
|
flow_preview_value = cls(
|
|
146
153
|
modules=modules,
|
|
147
154
|
failure_module=failure_module,
|
|
@@ -154,6 +161,7 @@ class FlowPreviewValue:
|
|
|
154
161
|
cache_ttl=cache_ttl,
|
|
155
162
|
priority=priority,
|
|
156
163
|
early_return=early_return,
|
|
164
|
+
chat_input_enabled=chat_input_enabled,
|
|
157
165
|
)
|
|
158
166
|
|
|
159
167
|
flow_preview_value.additional_properties = d
|
|
@@ -35,6 +35,7 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
35
35
|
cache_ttl (Union[Unset, float]):
|
|
36
36
|
priority (Union[Unset, float]):
|
|
37
37
|
early_return (Union[Unset, str]):
|
|
38
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
modules: List["GetCompletedJobResponse200RawFlowModulesItem"]
|
|
@@ -48,6 +49,7 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
48
49
|
cache_ttl: Union[Unset, float] = UNSET
|
|
49
50
|
priority: Union[Unset, float] = UNSET
|
|
50
51
|
early_return: Union[Unset, str] = UNSET
|
|
52
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
73
75
|
cache_ttl = self.cache_ttl
|
|
74
76
|
priority = self.priority
|
|
75
77
|
early_return = self.early_return
|
|
78
|
+
chat_input_enabled = self.chat_input_enabled
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -101,6 +104,8 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
101
104
|
field_dict["priority"] = priority
|
|
102
105
|
if early_return is not UNSET:
|
|
103
106
|
field_dict["early_return"] = early_return
|
|
107
|
+
if chat_input_enabled is not UNSET:
|
|
108
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
104
109
|
|
|
105
110
|
return field_dict
|
|
106
111
|
|
|
@@ -154,6 +159,8 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
154
159
|
|
|
155
160
|
early_return = d.pop("early_return", UNSET)
|
|
156
161
|
|
|
162
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
163
|
+
|
|
157
164
|
get_completed_job_response_200_raw_flow = cls(
|
|
158
165
|
modules=modules,
|
|
159
166
|
failure_module=failure_module,
|
|
@@ -166,6 +173,7 @@ class GetCompletedJobResponse200RawFlow:
|
|
|
166
173
|
cache_ttl=cache_ttl,
|
|
167
174
|
priority=priority,
|
|
168
175
|
early_return=early_return,
|
|
176
|
+
chat_input_enabled=chat_input_enabled,
|
|
169
177
|
)
|
|
170
178
|
|
|
171
179
|
get_completed_job_response_200_raw_flow.additional_properties = d
|
|
@@ -31,6 +31,7 @@ class GetFlowByPathResponse200Value:
|
|
|
31
31
|
cache_ttl (Union[Unset, float]):
|
|
32
32
|
priority (Union[Unset, float]):
|
|
33
33
|
early_return (Union[Unset, str]):
|
|
34
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
37
|
modules: List["GetFlowByPathResponse200ValueModulesItem"]
|
|
@@ -44,6 +45,7 @@ class GetFlowByPathResponse200Value:
|
|
|
44
45
|
cache_ttl: Union[Unset, float] = UNSET
|
|
45
46
|
priority: Union[Unset, float] = UNSET
|
|
46
47
|
early_return: Union[Unset, str] = UNSET
|
|
48
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
47
49
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
50
|
|
|
49
51
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -69,6 +71,7 @@ class GetFlowByPathResponse200Value:
|
|
|
69
71
|
cache_ttl = self.cache_ttl
|
|
70
72
|
priority = self.priority
|
|
71
73
|
early_return = self.early_return
|
|
74
|
+
chat_input_enabled = self.chat_input_enabled
|
|
72
75
|
|
|
73
76
|
field_dict: Dict[str, Any] = {}
|
|
74
77
|
field_dict.update(self.additional_properties)
|
|
@@ -97,6 +100,8 @@ class GetFlowByPathResponse200Value:
|
|
|
97
100
|
field_dict["priority"] = priority
|
|
98
101
|
if early_return is not UNSET:
|
|
99
102
|
field_dict["early_return"] = early_return
|
|
103
|
+
if chat_input_enabled is not UNSET:
|
|
104
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
100
105
|
|
|
101
106
|
return field_dict
|
|
102
107
|
|
|
@@ -148,6 +153,8 @@ class GetFlowByPathResponse200Value:
|
|
|
148
153
|
|
|
149
154
|
early_return = d.pop("early_return", UNSET)
|
|
150
155
|
|
|
156
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
157
|
+
|
|
151
158
|
get_flow_by_path_response_200_value = cls(
|
|
152
159
|
modules=modules,
|
|
153
160
|
failure_module=failure_module,
|
|
@@ -160,6 +167,7 @@ class GetFlowByPathResponse200Value:
|
|
|
160
167
|
cache_ttl=cache_ttl,
|
|
161
168
|
priority=priority,
|
|
162
169
|
early_return=early_return,
|
|
170
|
+
chat_input_enabled=chat_input_enabled,
|
|
163
171
|
)
|
|
164
172
|
|
|
165
173
|
get_flow_by_path_response_200_value.additional_properties = d
|
|
@@ -35,6 +35,7 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
35
35
|
cache_ttl (Union[Unset, float]):
|
|
36
36
|
priority (Union[Unset, float]):
|
|
37
37
|
early_return (Union[Unset, str]):
|
|
38
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
38
39
|
"""
|
|
39
40
|
|
|
40
41
|
modules: List["GetFlowByPathWithDraftResponse200DraftValueModulesItem"]
|
|
@@ -48,6 +49,7 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
48
49
|
cache_ttl: Union[Unset, float] = UNSET
|
|
49
50
|
priority: Union[Unset, float] = UNSET
|
|
50
51
|
early_return: Union[Unset, str] = UNSET
|
|
52
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
51
53
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
52
54
|
|
|
53
55
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -73,6 +75,7 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
73
75
|
cache_ttl = self.cache_ttl
|
|
74
76
|
priority = self.priority
|
|
75
77
|
early_return = self.early_return
|
|
78
|
+
chat_input_enabled = self.chat_input_enabled
|
|
76
79
|
|
|
77
80
|
field_dict: Dict[str, Any] = {}
|
|
78
81
|
field_dict.update(self.additional_properties)
|
|
@@ -101,6 +104,8 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
101
104
|
field_dict["priority"] = priority
|
|
102
105
|
if early_return is not UNSET:
|
|
103
106
|
field_dict["early_return"] = early_return
|
|
107
|
+
if chat_input_enabled is not UNSET:
|
|
108
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
104
109
|
|
|
105
110
|
return field_dict
|
|
106
111
|
|
|
@@ -156,6 +161,8 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
156
161
|
|
|
157
162
|
early_return = d.pop("early_return", UNSET)
|
|
158
163
|
|
|
164
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
165
|
+
|
|
159
166
|
get_flow_by_path_with_draft_response_200_draft_value = cls(
|
|
160
167
|
modules=modules,
|
|
161
168
|
failure_module=failure_module,
|
|
@@ -168,6 +175,7 @@ class GetFlowByPathWithDraftResponse200DraftValue:
|
|
|
168
175
|
cache_ttl=cache_ttl,
|
|
169
176
|
priority=priority,
|
|
170
177
|
early_return=early_return,
|
|
178
|
+
chat_input_enabled=chat_input_enabled,
|
|
171
179
|
)
|
|
172
180
|
|
|
173
181
|
get_flow_by_path_with_draft_response_200_draft_value.additional_properties = d
|
|
@@ -31,6 +31,7 @@ class GetFlowVersionResponse200Value:
|
|
|
31
31
|
cache_ttl (Union[Unset, float]):
|
|
32
32
|
priority (Union[Unset, float]):
|
|
33
33
|
early_return (Union[Unset, str]):
|
|
34
|
+
chat_input_enabled (Union[Unset, bool]): Whether this flow accepts chat-style input
|
|
34
35
|
"""
|
|
35
36
|
|
|
36
37
|
modules: List["GetFlowVersionResponse200ValueModulesItem"]
|
|
@@ -44,6 +45,7 @@ class GetFlowVersionResponse200Value:
|
|
|
44
45
|
cache_ttl: Union[Unset, float] = UNSET
|
|
45
46
|
priority: Union[Unset, float] = UNSET
|
|
46
47
|
early_return: Union[Unset, str] = UNSET
|
|
48
|
+
chat_input_enabled: Union[Unset, bool] = UNSET
|
|
47
49
|
additional_properties: Dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
48
50
|
|
|
49
51
|
def to_dict(self) -> Dict[str, Any]:
|
|
@@ -69,6 +71,7 @@ class GetFlowVersionResponse200Value:
|
|
|
69
71
|
cache_ttl = self.cache_ttl
|
|
70
72
|
priority = self.priority
|
|
71
73
|
early_return = self.early_return
|
|
74
|
+
chat_input_enabled = self.chat_input_enabled
|
|
72
75
|
|
|
73
76
|
field_dict: Dict[str, Any] = {}
|
|
74
77
|
field_dict.update(self.additional_properties)
|
|
@@ -97,6 +100,8 @@ class GetFlowVersionResponse200Value:
|
|
|
97
100
|
field_dict["priority"] = priority
|
|
98
101
|
if early_return is not UNSET:
|
|
99
102
|
field_dict["early_return"] = early_return
|
|
103
|
+
if chat_input_enabled is not UNSET:
|
|
104
|
+
field_dict["chat_input_enabled"] = chat_input_enabled
|
|
100
105
|
|
|
101
106
|
return field_dict
|
|
102
107
|
|
|
@@ -148,6 +153,8 @@ class GetFlowVersionResponse200Value:
|
|
|
148
153
|
|
|
149
154
|
early_return = d.pop("early_return", UNSET)
|
|
150
155
|
|
|
156
|
+
chat_input_enabled = d.pop("chat_input_enabled", UNSET)
|
|
157
|
+
|
|
151
158
|
get_flow_version_response_200_value = cls(
|
|
152
159
|
modules=modules,
|
|
153
160
|
failure_module=failure_module,
|
|
@@ -160,6 +167,7 @@ class GetFlowVersionResponse200Value:
|
|
|
160
167
|
cache_ttl=cache_ttl,
|
|
161
168
|
priority=priority,
|
|
162
169
|
early_return=early_return,
|
|
170
|
+
chat_input_enabled=chat_input_enabled,
|
|
163
171
|
)
|
|
164
172
|
|
|
165
173
|
get_flow_version_response_200_value.additional_properties = d
|