cyberdesk 1.7.0__py3-none-any.whl → 1.8.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.7.0"
24
+ __version__ = "1.8.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.7.0
3
+ Version: 1.8.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=Od91okTXd6EG5iyU47nr1fdcjxjYeNh-bdgvY1ixJVA,845
1
+ cyberdesk/__init__.py,sha256=YVzunEmic2iYsva79cKMkFGrrg5T_AmtBsRIWJsIs04,845
2
2
  cyberdesk/client.py,sha256=f3kT8v_ip5b49IYVoxNRgILd0SVLs_8MH5OiAkGF_IU,27713
3
- cyberdesk-1.7.0.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
3
+ cyberdesk-1.8.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=eQuwXEkHDJgkjfeMjwu2PLWz5K7jdp2JLA0C4qMZaSg,5195
63
+ openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=RluO9EWqHyLOQm-UGyLx3yDUN1cR0byhdfI-ejljubc,5499
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
@@ -99,11 +99,13 @@ openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=EY8zP-Dd3WgGNd
99
99
  openapi_client/cyberdesk_cloud_client/models/run_update_input_values_type_0.py,sha256=Dg_CSahXf_M8x7go8K0BoUrHWnoKpc6l-IFPeT15DNk,1282
100
100
  openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py,sha256=XyksD89ENT2TgzGiS7bU32rs1rHSFAhiamjz78nUft4,1277
101
101
  openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py,sha256=j-SrGOc1EgVNQlUk189qUzQLBYCgBvzR23yjvZ71LGw,1338
102
- openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=lG1t7OzXzwRPNgcFTA_2RTVqLhhiVq2NV7Ms3gYkojI,3109
102
+ openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=vd9Y1v4kU4QbtDw6qBR6uDYL6BVGrTw9H6Km-IYXrwY,5133
103
103
  openapi_client/cyberdesk_cloud_client/models/trajectory_create_dimensions.py,sha256=PRX7oM8sseKD0nhJsQ8SYP4aOzjkMtfcza7_jWFVl9Y,1324
104
+ openapi_client/cyberdesk_cloud_client/models/trajectory_create_original_input_values_type_0.py,sha256=Rz80esN5_oDA-dXeZ9WFhe6POtNJXWvZjoOqw1KUVJM,1360
104
105
  openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py,sha256=_8TzdjPWMx4YzsSTCiA_45R2TrNjWhu3nlknQ8KCy_U,1324
105
- openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=KXMuOWM7t75hl40QJSQAlu16gvF1qPvWmGVOXr6PkGI,4022
106
+ openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=Hc1aWkQKOfnQoLIaNZr6lUaxdkayKE9w0D2auNQC_Ho,6070
106
107
  openapi_client/cyberdesk_cloud_client/models/trajectory_response_dimensions.py,sha256=MG0Le6-JKmCF9oIymTWw1BSNYuk61CX8-EJCWhSRUjE,1334
108
+ openapi_client/cyberdesk_cloud_client/models/trajectory_response_original_input_values_type_0.py,sha256=ZzFZTF9Z3U8WJWrH8J5yaUOd9QN0v_T8wW9LQgYoEC8,1370
107
109
  openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py,sha256=h0JpPrd5qzo3ue4l9jBXk-R49ipVr75W_RsZw6e5cjk,1334
108
110
  openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=dzqD6zAT-jySWaASRi833gpHmahpkXd_r3LMD3-M8Lw,3568
109
111
  openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
@@ -112,7 +114,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=0W5E5fIw3
112
114
  openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=LS3QfsYFaBLwo5OyiOsDNJFn31B8L9mQTphdNwVybVw,6470
113
115
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
114
116
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=JF82Mw0QkYsfita6nWPBtfDHLduoz8Bf7pJw8VmDXbA,3506
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,,
117
+ cyberdesk-1.8.0.dist-info/METADATA,sha256=zoiYGTrQQ-ySZo5l1w093qcnZJBP5re-DyLuQKfnh88,6051
118
+ cyberdesk-1.8.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
119
+ cyberdesk-1.8.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
120
+ cyberdesk-1.8.0.dist-info/RECORD,,
@@ -48,9 +48,11 @@ from .run_update_output_data_type_0 import RunUpdateOutputDataType0
48
48
  from .run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
49
49
  from .trajectory_create import TrajectoryCreate
50
50
  from .trajectory_create_dimensions import TrajectoryCreateDimensions
51
+ from .trajectory_create_original_input_values_type_0 import TrajectoryCreateOriginalInputValuesType0
51
52
  from .trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
52
53
  from .trajectory_response import TrajectoryResponse
53
54
  from .trajectory_response_dimensions import TrajectoryResponseDimensions
55
+ from .trajectory_response_original_input_values_type_0 import TrajectoryResponseOriginalInputValuesType0
54
56
  from .trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
55
57
  from .trajectory_update import TrajectoryUpdate
56
58
  from .trajectory_update_trajectory_data_type_0_item import TrajectoryUpdateTrajectoryDataType0Item
@@ -101,9 +103,11 @@ __all__ = (
101
103
  "RunUpdateRunMessageHistoryType0Item",
102
104
  "TrajectoryCreate",
103
105
  "TrajectoryCreateDimensions",
106
+ "TrajectoryCreateOriginalInputValuesType0",
104
107
  "TrajectoryCreateTrajectoryDataItem",
105
108
  "TrajectoryResponse",
106
109
  "TrajectoryResponseDimensions",
110
+ "TrajectoryResponseOriginalInputValuesType0",
107
111
  "TrajectoryResponseTrajectoryDataItem",
108
112
  "TrajectoryUpdate",
109
113
  "TrajectoryUpdateTrajectoryDataType0Item",
@@ -1,12 +1,15 @@
1
1
  from collections.abc import Mapping
2
- from typing import TYPE_CHECKING, Any, TypeVar
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
6
6
  from attrs import field as _attrs_field
7
7
 
8
+ from ..types import UNSET, Unset
9
+
8
10
  if TYPE_CHECKING:
9
11
  from ..models.trajectory_create_dimensions import TrajectoryCreateDimensions
12
+ from ..models.trajectory_create_original_input_values_type_0 import TrajectoryCreateOriginalInputValuesType0
10
13
  from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
11
14
 
12
15
 
@@ -21,14 +24,19 @@ class TrajectoryCreate:
21
24
  workflow_id (UUID):
22
25
  trajectory_data (list['TrajectoryCreateTrajectoryDataItem']):
23
26
  dimensions (TrajectoryCreateDimensions): Display dimensions when trajectory was recorded
27
+ original_input_values (Union['TrajectoryCreateOriginalInputValuesType0', None, Unset]): Original input values
28
+ used when trajectory was created
24
29
  """
25
30
 
26
31
  workflow_id: UUID
27
32
  trajectory_data: list["TrajectoryCreateTrajectoryDataItem"]
28
33
  dimensions: "TrajectoryCreateDimensions"
34
+ original_input_values: Union["TrajectoryCreateOriginalInputValuesType0", None, Unset] = UNSET
29
35
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
30
36
 
31
37
  def to_dict(self) -> dict[str, Any]:
38
+ from ..models.trajectory_create_original_input_values_type_0 import TrajectoryCreateOriginalInputValuesType0
39
+
32
40
  workflow_id = str(self.workflow_id)
33
41
 
34
42
  trajectory_data = []
@@ -38,6 +46,14 @@ class TrajectoryCreate:
38
46
 
39
47
  dimensions = self.dimensions.to_dict()
40
48
 
49
+ original_input_values: Union[None, Unset, dict[str, Any]]
50
+ if isinstance(self.original_input_values, Unset):
51
+ original_input_values = UNSET
52
+ elif isinstance(self.original_input_values, TrajectoryCreateOriginalInputValuesType0):
53
+ original_input_values = self.original_input_values.to_dict()
54
+ else:
55
+ original_input_values = self.original_input_values
56
+
41
57
  field_dict: dict[str, Any] = {}
42
58
  field_dict.update(self.additional_properties)
43
59
  field_dict.update(
@@ -47,12 +63,15 @@ class TrajectoryCreate:
47
63
  "dimensions": dimensions,
48
64
  }
49
65
  )
66
+ if original_input_values is not UNSET:
67
+ field_dict["original_input_values"] = original_input_values
50
68
 
51
69
  return field_dict
52
70
 
53
71
  @classmethod
54
72
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
55
73
  from ..models.trajectory_create_dimensions import TrajectoryCreateDimensions
74
+ from ..models.trajectory_create_original_input_values_type_0 import TrajectoryCreateOriginalInputValuesType0
56
75
  from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
57
76
 
58
77
  d = dict(src_dict)
@@ -67,10 +86,30 @@ class TrajectoryCreate:
67
86
 
68
87
  dimensions = TrajectoryCreateDimensions.from_dict(d.pop("dimensions"))
69
88
 
89
+ def _parse_original_input_values(
90
+ data: object,
91
+ ) -> Union["TrajectoryCreateOriginalInputValuesType0", None, Unset]:
92
+ if data is None:
93
+ return data
94
+ if isinstance(data, Unset):
95
+ return data
96
+ try:
97
+ if not isinstance(data, dict):
98
+ raise TypeError()
99
+ original_input_values_type_0 = TrajectoryCreateOriginalInputValuesType0.from_dict(data)
100
+
101
+ return original_input_values_type_0
102
+ except: # noqa: E722
103
+ pass
104
+ return cast(Union["TrajectoryCreateOriginalInputValuesType0", None, Unset], data)
105
+
106
+ original_input_values = _parse_original_input_values(d.pop("original_input_values", UNSET))
107
+
70
108
  trajectory_create = cls(
71
109
  workflow_id=workflow_id,
72
110
  trajectory_data=trajectory_data,
73
111
  dimensions=dimensions,
112
+ original_input_values=original_input_values,
74
113
  )
75
114
 
76
115
  trajectory_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="TrajectoryCreateOriginalInputValuesType0")
8
+
9
+
10
+ @_attrs_define
11
+ class TrajectoryCreateOriginalInputValuesType0:
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
+ trajectory_create_original_input_values_type_0 = cls()
26
+
27
+ trajectory_create_original_input_values_type_0.additional_properties = d
28
+ return trajectory_create_original_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
@@ -1,14 +1,17 @@
1
1
  import datetime
2
2
  from collections.abc import Mapping
3
- from typing import TYPE_CHECKING, Any, TypeVar
3
+ from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
4
4
  from uuid import UUID
5
5
 
6
6
  from attrs import define as _attrs_define
7
7
  from attrs import field as _attrs_field
8
8
  from dateutil.parser import isoparse
9
9
 
10
+ from ..types import UNSET, Unset
11
+
10
12
  if TYPE_CHECKING:
11
13
  from ..models.trajectory_response_dimensions import TrajectoryResponseDimensions
14
+ from ..models.trajectory_response_original_input_values_type_0 import TrajectoryResponseOriginalInputValuesType0
12
15
  from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
13
16
 
14
17
 
@@ -27,6 +30,8 @@ class TrajectoryResponse:
27
30
  user_id (UUID):
28
31
  created_at (datetime.datetime):
29
32
  updated_at (datetime.datetime):
33
+ original_input_values (Union['TrajectoryResponseOriginalInputValuesType0', None, Unset]): Original input values
34
+ used when trajectory was created
30
35
  """
31
36
 
32
37
  workflow_id: UUID
@@ -36,9 +41,12 @@ class TrajectoryResponse:
36
41
  user_id: UUID
37
42
  created_at: datetime.datetime
38
43
  updated_at: datetime.datetime
44
+ original_input_values: Union["TrajectoryResponseOriginalInputValuesType0", None, Unset] = UNSET
39
45
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
40
46
 
41
47
  def to_dict(self) -> dict[str, Any]:
48
+ from ..models.trajectory_response_original_input_values_type_0 import TrajectoryResponseOriginalInputValuesType0
49
+
42
50
  workflow_id = str(self.workflow_id)
43
51
 
44
52
  trajectory_data = []
@@ -56,6 +64,14 @@ class TrajectoryResponse:
56
64
 
57
65
  updated_at = self.updated_at.isoformat()
58
66
 
67
+ original_input_values: Union[None, Unset, dict[str, Any]]
68
+ if isinstance(self.original_input_values, Unset):
69
+ original_input_values = UNSET
70
+ elif isinstance(self.original_input_values, TrajectoryResponseOriginalInputValuesType0):
71
+ original_input_values = self.original_input_values.to_dict()
72
+ else:
73
+ original_input_values = self.original_input_values
74
+
59
75
  field_dict: dict[str, Any] = {}
60
76
  field_dict.update(self.additional_properties)
61
77
  field_dict.update(
@@ -69,12 +85,15 @@ class TrajectoryResponse:
69
85
  "updated_at": updated_at,
70
86
  }
71
87
  )
88
+ if original_input_values is not UNSET:
89
+ field_dict["original_input_values"] = original_input_values
72
90
 
73
91
  return field_dict
74
92
 
75
93
  @classmethod
76
94
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
77
95
  from ..models.trajectory_response_dimensions import TrajectoryResponseDimensions
96
+ from ..models.trajectory_response_original_input_values_type_0 import TrajectoryResponseOriginalInputValuesType0
78
97
  from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
79
98
 
80
99
  d = dict(src_dict)
@@ -97,6 +116,25 @@ class TrajectoryResponse:
97
116
 
98
117
  updated_at = isoparse(d.pop("updated_at"))
99
118
 
119
+ def _parse_original_input_values(
120
+ data: object,
121
+ ) -> Union["TrajectoryResponseOriginalInputValuesType0", None, Unset]:
122
+ if data is None:
123
+ return data
124
+ if isinstance(data, Unset):
125
+ return data
126
+ try:
127
+ if not isinstance(data, dict):
128
+ raise TypeError()
129
+ original_input_values_type_0 = TrajectoryResponseOriginalInputValuesType0.from_dict(data)
130
+
131
+ return original_input_values_type_0
132
+ except: # noqa: E722
133
+ pass
134
+ return cast(Union["TrajectoryResponseOriginalInputValuesType0", None, Unset], data)
135
+
136
+ original_input_values = _parse_original_input_values(d.pop("original_input_values", UNSET))
137
+
100
138
  trajectory_response = cls(
101
139
  workflow_id=workflow_id,
102
140
  trajectory_data=trajectory_data,
@@ -105,6 +143,7 @@ class TrajectoryResponse:
105
143
  user_id=user_id,
106
144
  created_at=created_at,
107
145
  updated_at=updated_at,
146
+ original_input_values=original_input_values,
108
147
  )
109
148
 
110
149
  trajectory_response.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="TrajectoryResponseOriginalInputValuesType0")
8
+
9
+
10
+ @_attrs_define
11
+ class TrajectoryResponseOriginalInputValuesType0:
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
+ trajectory_response_original_input_values_type_0 = cls()
26
+
27
+ trajectory_response_original_input_values_type_0.additional_properties = d
28
+ return trajectory_response_original_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