cyberdesk 1.6.0__py3-none-any.whl → 1.7.0__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 cyberdesk might be problematic. Click here for more details.

cyberdesk/__init__.py CHANGED
@@ -21,7 +21,7 @@ from .client import (
21
21
  TrajectoryResponse,
22
22
  )
23
23
 
24
- __version__ = "1.6.0"
24
+ __version__ = "1.7.0"
25
25
 
26
26
  __all__ = [
27
27
  "CyberdeskClient",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cyberdesk
3
- Version: 1.6.0
3
+ Version: 1.7.0
4
4
  Summary: The official Python SDK for Cyberdesk
5
5
  Author-email: Cyberdesk Team <dev@cyberdesk.io>
6
6
  License-Expression: MIT
@@ -1,6 +1,6 @@
1
- cyberdesk/__init__.py,sha256=rZSaWsW0sO2ws2Qw0oej6w8jMSctMRX3zasojGE4l2c,845
1
+ cyberdesk/__init__.py,sha256=Od91okTXd6EG5iyU47nr1fdcjxjYeNh-bdgvY1ixJVA,845
2
2
  cyberdesk/client.py,sha256=f3kT8v_ip5b49IYVoxNRgILd0SVLs_8MH5OiAkGF_IU,27713
3
- cyberdesk-1.6.0.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
3
+ cyberdesk-1.7.0.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
4
4
  openapi_client/cyberdesk_cloud_client/__init__.py,sha256=r_uVkNUL-SOK8j7-KiGMIKdinES5X8K1Q250ySX2F-A,158
5
5
  openapi_client/cyberdesk_cloud_client/client.py,sha256=o_mdLqyBCQstu5tS1WZFwqIEbGwkvWQ7eQjuCJw_5VY,12419
6
6
  openapi_client/cyberdesk_cloud_client/errors.py,sha256=gO8GBmKqmSNgAg-E5oT-oOyxztvp7V_6XG7OUTT15q0,546
@@ -60,7 +60,7 @@ openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_wo
60
60
  openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py,sha256=jBJJwJQfKBBYTX1FhSe7qWFxK0ZvYD_QKcrxTgo361U,5857
61
61
  openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py,sha256=xM1Ex78PdeJK2IrQ10ghKqk93FwNGOnVOPt666hUhwE,5626
62
62
  openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py,sha256=G6l9aClbapqjCmDsjK01447iqRKhRFp9CnJDLHV8OBc,5705
63
- openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=lC06Pp9tUGUzqtQE8doxeAY_Zx-IrKDP8KFr-FVQFWw,4880
63
+ openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=eQuwXEkHDJgkjfeMjwu2PLWz5K7jdp2JLA0C4qMZaSg,5195
64
64
  openapi_client/cyberdesk_cloud_client/models/connection_create.py,sha256=gCI36DmjJDZxzGFPbykyYw9k4QEf_4dVNz9b-xZfLo4,3288
65
65
  openapi_client/cyberdesk_cloud_client/models/connection_response.py,sha256=aFxqJX75wSEw5dZ-kvh3Wgv_haJ6xYJ7o72vSAbEtHY,5247
66
66
  openapi_client/cyberdesk_cloud_client/models/connection_status.py,sha256=XTpa-W0TinYhypU7P-LaJEI3I2JsEaT3voUZQ3zoJO0,203
@@ -88,12 +88,15 @@ openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_respons
88
88
  openapi_client/cyberdesk_cloud_client/models/request_log_create.py,sha256=6CNnBvl9oyGs0J0R994eFn-TIdl6ohsofvCc2SXVfWc,6072
89
89
  openapi_client/cyberdesk_cloud_client/models/request_log_response.py,sha256=mU3lUdbLRFg9XppHnO-GjKcvt4M_BCG5CynWwU7ivZE,7445
90
90
  openapi_client/cyberdesk_cloud_client/models/request_log_update.py,sha256=VcXBNffDOoEYYBjwvdkuSWPz04BW3c8YTcqzlZRb0ns,5677
91
- openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=hy7l-UY-EFCjEbu-tonhPAq04pNTVY_vlgv9vcNjXS4,2756
92
- openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=MP15YuLzEIklDD3WEX4PXu4ns3rbHLI2_R3_NHQsPZs,8370
91
+ openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=MtO_9PWVPgeimH-zqtxD6GDEHyGnnneobVOtWIQGoYc,4343
92
+ openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py,sha256=APV4O0GduU3fhHoJHMMOBk-h92Hf21c1ZU-pIsJoZpg,1282
93
+ openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=JtUerG8he5GjGqwrU914kKvBsxO9HKPzD7LSvWf67nA,9660
94
+ openapi_client/cyberdesk_cloud_client/models/run_response_input_values_type_0.py,sha256=NpMqT3qaMrLGA7mHBjvtS1fnMGc5zxwWLoFWunjjupA,1292
93
95
  openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py,sha256=rO4YJAa26G_83CFtBTQ_ZKCURAxNS7PcvdKbfuvDcrA,1287
94
96
  openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py,sha256=3x1N3yi3kyc1que3bizmHEuGBn5s7pEirEg4TgBV9FU,1348
95
97
  openapi_client/cyberdesk_cloud_client/models/run_status.py,sha256=Qbsj-KKplPDamvoJvyOK_sZp7XKj6SPf8J9WnRwOhXk,240
96
- openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=A69KAYxs3lFvVBUmt6t7QjO0HNxd8JgyeQOIeZXxuBU,8460
98
+ openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=EY8zP-Dd3WgGNdUVDy1QUM6UPAZH4rNMEOPYjVej-Mo,9974
99
+ openapi_client/cyberdesk_cloud_client/models/run_update_input_values_type_0.py,sha256=Dg_CSahXf_M8x7go8K0BoUrHWnoKpc6l-IFPeT15DNk,1282
97
100
  openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py,sha256=XyksD89ENT2TgzGiS7bU32rs1rHSFAhiamjz78nUft4,1277
98
101
  openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py,sha256=j-SrGOc1EgVNQlUk189qUzQLBYCgBvzR23yjvZ71LGw,1338
99
102
  openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=lG1t7OzXzwRPNgcFTA_2RTVqLhhiVq2NV7Ms3gYkojI,3109
@@ -106,10 +109,10 @@ openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=dzqD6zA
106
109
  openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
107
110
  openapi_client/cyberdesk_cloud_client/models/validation_error.py,sha256=ZlK9hbhWr4zSC-dxZh9giERvMiYf9s2k8e1O9Rch_NI,2181
108
111
  openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=0W5E5fIw3P0c7hR2XKBsGsa7jvUS2dQXWfWxPfjAGXE,3023
109
- openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=y8T9gO3Hwo9PhA5cvuNVfDPw5SbJD76u-SuUDqR1WQk,6007
112
+ openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=LS3QfsYFaBLwo5OyiOsDNJFn31B8L9mQTphdNwVybVw,6470
110
113
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
111
114
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=JF82Mw0QkYsfita6nWPBtfDHLduoz8Bf7pJw8VmDXbA,3506
112
- cyberdesk-1.6.0.dist-info/METADATA,sha256=4P3D3BO3r0E8qs9Y_eVHI3XIJHykUfLN2w4TCG1cOY4,6051
113
- cyberdesk-1.6.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
114
- cyberdesk-1.6.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
115
- cyberdesk-1.6.0.dist-info/RECORD,,
115
+ cyberdesk-1.7.0.dist-info/METADATA,sha256=lSDGrAM6xlVYkaIZBpTIaFJLjoenaywsP1bnKjDuv0k,6051
116
+ cyberdesk-1.7.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
117
+ cyberdesk-1.7.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
118
+ cyberdesk-1.7.0.dist-info/RECORD,,
@@ -36,11 +36,14 @@ from .request_log_create import RequestLogCreate
36
36
  from .request_log_response import RequestLogResponse
37
37
  from .request_log_update import RequestLogUpdate
38
38
  from .run_create import RunCreate
39
+ from .run_create_input_values_type_0 import RunCreateInputValuesType0
39
40
  from .run_response import RunResponse
41
+ from .run_response_input_values_type_0 import RunResponseInputValuesType0
40
42
  from .run_response_output_data_type_0 import RunResponseOutputDataType0
41
43
  from .run_response_run_message_history_type_0_item import RunResponseRunMessageHistoryType0Item
42
44
  from .run_status import RunStatus
43
45
  from .run_update import RunUpdate
46
+ from .run_update_input_values_type_0 import RunUpdateInputValuesType0
44
47
  from .run_update_output_data_type_0 import RunUpdateOutputDataType0
45
48
  from .run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
46
49
  from .trajectory_create import TrajectoryCreate
@@ -86,11 +89,14 @@ __all__ = (
86
89
  "RequestLogResponse",
87
90
  "RequestLogUpdate",
88
91
  "RunCreate",
92
+ "RunCreateInputValuesType0",
89
93
  "RunResponse",
94
+ "RunResponseInputValuesType0",
90
95
  "RunResponseOutputDataType0",
91
96
  "RunResponseRunMessageHistoryType0Item",
92
97
  "RunStatus",
93
98
  "RunUpdate",
99
+ "RunUpdateInputValuesType0",
94
100
  "RunUpdateOutputDataType0",
95
101
  "RunUpdateRunMessageHistoryType0Item",
96
102
  "TrajectoryCreate",
@@ -1,5 +1,5 @@
1
1
  from collections.abc import Mapping
2
- from typing import Any, TypeVar, Union, cast
2
+ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
3
3
  from uuid import UUID
4
4
 
5
5
  from attrs import define as _attrs_define
@@ -7,6 +7,10 @@ from attrs import field as _attrs_field
7
7
 
8
8
  from ..types import UNSET, Unset
9
9
 
10
+ if TYPE_CHECKING:
11
+ from ..models.run_create_input_values_type_0 import RunCreateInputValuesType0
12
+
13
+
10
14
  T = TypeVar("T", bound="RunCreate")
11
15
 
12
16
 
@@ -18,13 +22,17 @@ class RunCreate:
18
22
  workflow_id (UUID):
19
23
  machine_id (Union[None, UUID, Unset]): Machine ID. If not provided, an available machine will be automatically
20
24
  selected.
25
+ input_values (Union['RunCreateInputValuesType0', None, Unset]): Input values for workflow variables
21
26
  """
22
27
 
23
28
  workflow_id: UUID
24
29
  machine_id: Union[None, UUID, Unset] = UNSET
30
+ input_values: Union["RunCreateInputValuesType0", None, Unset] = UNSET
25
31
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
26
32
 
27
33
  def to_dict(self) -> dict[str, Any]:
34
+ from ..models.run_create_input_values_type_0 import RunCreateInputValuesType0
35
+
28
36
  workflow_id = str(self.workflow_id)
29
37
 
30
38
  machine_id: Union[None, Unset, str]
@@ -35,6 +43,14 @@ class RunCreate:
35
43
  else:
36
44
  machine_id = self.machine_id
37
45
 
46
+ input_values: Union[None, Unset, dict[str, Any]]
47
+ if isinstance(self.input_values, Unset):
48
+ input_values = UNSET
49
+ elif isinstance(self.input_values, RunCreateInputValuesType0):
50
+ input_values = self.input_values.to_dict()
51
+ else:
52
+ input_values = self.input_values
53
+
38
54
  field_dict: dict[str, Any] = {}
39
55
  field_dict.update(self.additional_properties)
40
56
  field_dict.update(
@@ -44,11 +60,15 @@ class RunCreate:
44
60
  )
45
61
  if machine_id is not UNSET:
46
62
  field_dict["machine_id"] = machine_id
63
+ if input_values is not UNSET:
64
+ field_dict["input_values"] = input_values
47
65
 
48
66
  return field_dict
49
67
 
50
68
  @classmethod
51
69
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
70
+ from ..models.run_create_input_values_type_0 import RunCreateInputValuesType0
71
+
52
72
  d = dict(src_dict)
53
73
  workflow_id = UUID(d.pop("workflow_id"))
54
74
 
@@ -69,9 +89,27 @@ class RunCreate:
69
89
 
70
90
  machine_id = _parse_machine_id(d.pop("machine_id", UNSET))
71
91
 
92
+ def _parse_input_values(data: object) -> Union["RunCreateInputValuesType0", None, Unset]:
93
+ if data is None:
94
+ return data
95
+ if isinstance(data, Unset):
96
+ return data
97
+ try:
98
+ if not isinstance(data, dict):
99
+ raise TypeError()
100
+ input_values_type_0 = RunCreateInputValuesType0.from_dict(data)
101
+
102
+ return input_values_type_0
103
+ except: # noqa: E722
104
+ pass
105
+ return cast(Union["RunCreateInputValuesType0", None, Unset], data)
106
+
107
+ input_values = _parse_input_values(d.pop("input_values", UNSET))
108
+
72
109
  run_create = cls(
73
110
  workflow_id=workflow_id,
74
111
  machine_id=machine_id,
112
+ input_values=input_values,
75
113
  )
76
114
 
77
115
  run_create.additional_properties = d
@@ -0,0 +1,44 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="RunCreateInputValuesType0")
8
+
9
+
10
+ @_attrs_define
11
+ class RunCreateInputValuesType0:
12
+ """ """
13
+
14
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
+
16
+ def to_dict(self) -> dict[str, Any]:
17
+ field_dict: dict[str, Any] = {}
18
+ field_dict.update(self.additional_properties)
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
+ d = dict(src_dict)
25
+ run_create_input_values_type_0 = cls()
26
+
27
+ run_create_input_values_type_0.additional_properties = d
28
+ return run_create_input_values_type_0
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> Any:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: Any) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -10,6 +10,7 @@ from dateutil.parser import isoparse
10
10
  from ..models.run_status import RunStatus
11
11
 
12
12
  if TYPE_CHECKING:
13
+ from ..models.run_response_input_values_type_0 import RunResponseInputValuesType0
13
14
  from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
14
15
  from ..models.run_response_run_message_history_type_0_item import RunResponseRunMessageHistoryType0Item
15
16
 
@@ -31,6 +32,7 @@ class RunResponse:
31
32
  output_data (Union['RunResponseOutputDataType0', None]):
32
33
  output_attachment_ids (Union[None, list[str]]):
33
34
  run_message_history (Union[None, list['RunResponseRunMessageHistoryType0Item']]):
35
+ input_values (Union['RunResponseInputValuesType0', None]):
34
36
  created_at (datetime.datetime):
35
37
  """
36
38
 
@@ -43,10 +45,12 @@ class RunResponse:
43
45
  output_data: Union["RunResponseOutputDataType0", None]
44
46
  output_attachment_ids: Union[None, list[str]]
45
47
  run_message_history: Union[None, list["RunResponseRunMessageHistoryType0Item"]]
48
+ input_values: Union["RunResponseInputValuesType0", None]
46
49
  created_at: datetime.datetime
47
50
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
48
51
 
49
52
  def to_dict(self) -> dict[str, Any]:
53
+ from ..models.run_response_input_values_type_0 import RunResponseInputValuesType0
50
54
  from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
51
55
 
52
56
  workflow_id = str(self.workflow_id)
@@ -93,6 +97,12 @@ class RunResponse:
93
97
  else:
94
98
  run_message_history = self.run_message_history
95
99
 
100
+ input_values: Union[None, dict[str, Any]]
101
+ if isinstance(self.input_values, RunResponseInputValuesType0):
102
+ input_values = self.input_values.to_dict()
103
+ else:
104
+ input_values = self.input_values
105
+
96
106
  created_at = self.created_at.isoformat()
97
107
 
98
108
  field_dict: dict[str, Any] = {}
@@ -108,6 +118,7 @@ class RunResponse:
108
118
  "output_data": output_data,
109
119
  "output_attachment_ids": output_attachment_ids,
110
120
  "run_message_history": run_message_history,
121
+ "input_values": input_values,
111
122
  "created_at": created_at,
112
123
  }
113
124
  )
@@ -116,6 +127,7 @@ class RunResponse:
116
127
 
117
128
  @classmethod
118
129
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
130
+ from ..models.run_response_input_values_type_0 import RunResponseInputValuesType0
119
131
  from ..models.run_response_output_data_type_0 import RunResponseOutputDataType0
120
132
  from ..models.run_response_run_message_history_type_0_item import RunResponseRunMessageHistoryType0Item
121
133
 
@@ -210,6 +222,21 @@ class RunResponse:
210
222
 
211
223
  run_message_history = _parse_run_message_history(d.pop("run_message_history"))
212
224
 
225
+ def _parse_input_values(data: object) -> Union["RunResponseInputValuesType0", None]:
226
+ if data is None:
227
+ return data
228
+ try:
229
+ if not isinstance(data, dict):
230
+ raise TypeError()
231
+ input_values_type_0 = RunResponseInputValuesType0.from_dict(data)
232
+
233
+ return input_values_type_0
234
+ except: # noqa: E722
235
+ pass
236
+ return cast(Union["RunResponseInputValuesType0", None], data)
237
+
238
+ input_values = _parse_input_values(d.pop("input_values"))
239
+
213
240
  created_at = isoparse(d.pop("created_at"))
214
241
 
215
242
  run_response = cls(
@@ -222,6 +249,7 @@ class RunResponse:
222
249
  output_data=output_data,
223
250
  output_attachment_ids=output_attachment_ids,
224
251
  run_message_history=run_message_history,
252
+ input_values=input_values,
225
253
  created_at=created_at,
226
254
  )
227
255
 
@@ -0,0 +1,44 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="RunResponseInputValuesType0")
8
+
9
+
10
+ @_attrs_define
11
+ class RunResponseInputValuesType0:
12
+ """ """
13
+
14
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
+
16
+ def to_dict(self) -> dict[str, Any]:
17
+ field_dict: dict[str, Any] = {}
18
+ field_dict.update(self.additional_properties)
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
+ d = dict(src_dict)
25
+ run_response_input_values_type_0 = cls()
26
+
27
+ run_response_input_values_type_0.additional_properties = d
28
+ return run_response_input_values_type_0
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> Any:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: Any) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -8,6 +8,7 @@ from ..models.run_status import RunStatus
8
8
  from ..types import UNSET, Unset
9
9
 
10
10
  if TYPE_CHECKING:
11
+ from ..models.run_update_input_values_type_0 import RunUpdateInputValuesType0
11
12
  from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
12
13
  from ..models.run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
13
14
 
@@ -25,6 +26,7 @@ class RunUpdate:
25
26
  output_data (Union['RunUpdateOutputDataType0', None, Unset]):
26
27
  output_attachment_ids (Union[None, Unset, list[str]]):
27
28
  run_message_history (Union[None, Unset, list['RunUpdateRunMessageHistoryType0Item']]):
29
+ input_values (Union['RunUpdateInputValuesType0', None, Unset]):
28
30
  """
29
31
 
30
32
  status: Union[None, RunStatus, Unset] = UNSET
@@ -32,9 +34,11 @@ class RunUpdate:
32
34
  output_data: Union["RunUpdateOutputDataType0", None, Unset] = UNSET
33
35
  output_attachment_ids: Union[None, Unset, list[str]] = UNSET
34
36
  run_message_history: Union[None, Unset, list["RunUpdateRunMessageHistoryType0Item"]] = UNSET
37
+ input_values: Union["RunUpdateInputValuesType0", None, Unset] = UNSET
35
38
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
36
39
 
37
40
  def to_dict(self) -> dict[str, Any]:
41
+ from ..models.run_update_input_values_type_0 import RunUpdateInputValuesType0
38
42
  from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
39
43
 
40
44
  status: Union[None, Unset, str]
@@ -83,6 +87,14 @@ class RunUpdate:
83
87
  else:
84
88
  run_message_history = self.run_message_history
85
89
 
90
+ input_values: Union[None, Unset, dict[str, Any]]
91
+ if isinstance(self.input_values, Unset):
92
+ input_values = UNSET
93
+ elif isinstance(self.input_values, RunUpdateInputValuesType0):
94
+ input_values = self.input_values.to_dict()
95
+ else:
96
+ input_values = self.input_values
97
+
86
98
  field_dict: dict[str, Any] = {}
87
99
  field_dict.update(self.additional_properties)
88
100
  field_dict.update({})
@@ -96,11 +108,14 @@ class RunUpdate:
96
108
  field_dict["output_attachment_ids"] = output_attachment_ids
97
109
  if run_message_history is not UNSET:
98
110
  field_dict["run_message_history"] = run_message_history
111
+ if input_values is not UNSET:
112
+ field_dict["input_values"] = input_values
99
113
 
100
114
  return field_dict
101
115
 
102
116
  @classmethod
103
117
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
118
+ from ..models.run_update_input_values_type_0 import RunUpdateInputValuesType0
104
119
  from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
105
120
  from ..models.run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
106
121
 
@@ -198,12 +213,30 @@ class RunUpdate:
198
213
 
199
214
  run_message_history = _parse_run_message_history(d.pop("run_message_history", UNSET))
200
215
 
216
+ def _parse_input_values(data: object) -> Union["RunUpdateInputValuesType0", None, Unset]:
217
+ if data is None:
218
+ return data
219
+ if isinstance(data, Unset):
220
+ return data
221
+ try:
222
+ if not isinstance(data, dict):
223
+ raise TypeError()
224
+ input_values_type_0 = RunUpdateInputValuesType0.from_dict(data)
225
+
226
+ return input_values_type_0
227
+ except: # noqa: E722
228
+ pass
229
+ return cast(Union["RunUpdateInputValuesType0", None, Unset], data)
230
+
231
+ input_values = _parse_input_values(d.pop("input_values", UNSET))
232
+
201
233
  run_update = cls(
202
234
  status=status,
203
235
  error=error,
204
236
  output_data=output_data,
205
237
  output_attachment_ids=output_attachment_ids,
206
238
  run_message_history=run_message_history,
239
+ input_values=input_values,
207
240
  )
208
241
 
209
242
  run_update.additional_properties = d
@@ -0,0 +1,44 @@
1
+ from collections.abc import Mapping
2
+ from typing import Any, TypeVar
3
+
4
+ from attrs import define as _attrs_define
5
+ from attrs import field as _attrs_field
6
+
7
+ T = TypeVar("T", bound="RunUpdateInputValuesType0")
8
+
9
+
10
+ @_attrs_define
11
+ class RunUpdateInputValuesType0:
12
+ """ """
13
+
14
+ additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
15
+
16
+ def to_dict(self) -> dict[str, Any]:
17
+ field_dict: dict[str, Any] = {}
18
+ field_dict.update(self.additional_properties)
19
+
20
+ return field_dict
21
+
22
+ @classmethod
23
+ def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
24
+ d = dict(src_dict)
25
+ run_update_input_values_type_0 = cls()
26
+
27
+ run_update_input_values_type_0.additional_properties = d
28
+ return run_update_input_values_type_0
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> Any:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: Any) -> None:
38
+ self.additional_properties[key] = value
39
+
40
+ def __delitem__(self, key: str) -> None:
41
+ del self.additional_properties[key]
42
+
43
+ def __contains__(self, key: str) -> bool:
44
+ return key in self.additional_properties
@@ -28,6 +28,7 @@ class WorkflowResponse:
28
28
  updated_at (datetime.datetime):
29
29
  name (Union[None, Unset, str]):
30
30
  output_schema (Union[None, Unset, str]): JSON schema for output data transformation
31
+ includes_input_variables (Union[Unset, bool]): Default: False.
31
32
  old_versions (Union[None, Unset, list['WorkflowResponseOldVersionsType0Item']]):
32
33
  """
33
34
 
@@ -38,6 +39,7 @@ class WorkflowResponse:
38
39
  updated_at: datetime.datetime
39
40
  name: Union[None, Unset, str] = UNSET
40
41
  output_schema: Union[None, Unset, str] = UNSET
42
+ includes_input_variables: Union[Unset, bool] = False
41
43
  old_versions: Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]] = UNSET
42
44
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
43
45
 
@@ -64,6 +66,8 @@ class WorkflowResponse:
64
66
  else:
65
67
  output_schema = self.output_schema
66
68
 
69
+ includes_input_variables = self.includes_input_variables
70
+
67
71
  old_versions: Union[None, Unset, list[dict[str, Any]]]
68
72
  if isinstance(self.old_versions, Unset):
69
73
  old_versions = UNSET
@@ -91,6 +95,8 @@ class WorkflowResponse:
91
95
  field_dict["name"] = name
92
96
  if output_schema is not UNSET:
93
97
  field_dict["output_schema"] = output_schema
98
+ if includes_input_variables is not UNSET:
99
+ field_dict["includes_input_variables"] = includes_input_variables
94
100
  if old_versions is not UNSET:
95
101
  field_dict["old_versions"] = old_versions
96
102
 
@@ -129,6 +135,8 @@ class WorkflowResponse:
129
135
 
130
136
  output_schema = _parse_output_schema(d.pop("output_schema", UNSET))
131
137
 
138
+ includes_input_variables = d.pop("includes_input_variables", UNSET)
139
+
132
140
  def _parse_old_versions(data: object) -> Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]]:
133
141
  if data is None:
134
142
  return data
@@ -161,6 +169,7 @@ class WorkflowResponse:
161
169
  updated_at=updated_at,
162
170
  name=name,
163
171
  output_schema=output_schema,
172
+ includes_input_variables=includes_input_variables,
164
173
  old_versions=old_versions,
165
174
  )
166
175