cyberdesk 1.4.1__py3-none-any.whl → 1.5.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.4.1"
24
+ __version__ = "1.5.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.4.1
3
+ Version: 1.5.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=iIZoes3-D5lhSQJ6WmwZ62dogfbIqjrcFKNIMxxD4bU,845
1
+ cyberdesk/__init__.py,sha256=A2h5lao2_0-iLerMfgTfbD6uU32bfrD4tz0dUrGmHZk,845
2
2
  cyberdesk/client.py,sha256=f3kT8v_ip5b49IYVoxNRgILd0SVLs_8MH5OiAkGF_IU,27713
3
- cyberdesk-1.4.1.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
3
+ cyberdesk-1.5.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=XRuOmb_uwBDbL5zOBB2OC8IPXxURbE1UUuD9cl2ruyA,4668
63
+ openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=lC06Pp9tUGUzqtQE8doxeAY_Zx-IrKDP8KFr-FVQFWw,4880
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
@@ -96,9 +96,11 @@ openapi_client/cyberdesk_cloud_client/models/run_status.py,sha256=Qbsj-KKplPDamv
96
96
  openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=A69KAYxs3lFvVBUmt6t7QjO0HNxd8JgyeQOIeZXxuBU,8460
97
97
  openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py,sha256=XyksD89ENT2TgzGiS7bU32rs1rHSFAhiamjz78nUft4,1277
98
98
  openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py,sha256=j-SrGOc1EgVNQlUk189qUzQLBYCgBvzR23yjvZ71LGw,1338
99
- openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=QjHAxRCoKHwpfxXaoHQXFYo-UQbjj8XQ-p8YF_1TflQ,2596
99
+ openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=lG1t7OzXzwRPNgcFTA_2RTVqLhhiVq2NV7Ms3gYkojI,3109
100
+ openapi_client/cyberdesk_cloud_client/models/trajectory_create_dimensions.py,sha256=PRX7oM8sseKD0nhJsQ8SYP4aOzjkMtfcza7_jWFVl9Y,1324
100
101
  openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py,sha256=_8TzdjPWMx4YzsSTCiA_45R2TrNjWhu3nlknQ8KCy_U,1324
101
- openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=_2Xy41bw3OHyEuK-rKOYX2dkNVlLci2hH93M_6L4Rqk,3495
102
+ openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=KXMuOWM7t75hl40QJSQAlu16gvF1qPvWmGVOXr6PkGI,4022
103
+ openapi_client/cyberdesk_cloud_client/models/trajectory_response_dimensions.py,sha256=MG0Le6-JKmCF9oIymTWw1BSNYuk61CX8-EJCWhSRUjE,1334
102
104
  openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py,sha256=h0JpPrd5qzo3ue4l9jBXk-R49ipVr75W_RsZw6e5cjk,1334
103
105
  openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=dzqD6zAT-jySWaASRi833gpHmahpkXd_r3LMD3-M8Lw,3568
104
106
  openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
@@ -107,7 +109,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=g01H1M3JR
107
109
  openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=eWesCwciGVA-4VKyMatKoFLqlKIrSCVXynKysZFmPKA,5202
108
110
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
109
111
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=vDI_iEhOV5beb9GJ0GD3XcV7KiutaKAUOOEFKEsRx-k,2701
110
- cyberdesk-1.4.1.dist-info/METADATA,sha256=IhSaFFDOWi4N-tjDkHSQ0QbNJMtBB8H6sY3FggenzoA,6051
111
- cyberdesk-1.4.1.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
112
- cyberdesk-1.4.1.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
113
- cyberdesk-1.4.1.dist-info/RECORD,,
112
+ cyberdesk-1.5.0.dist-info/METADATA,sha256=xRfrVUfA92Fgh9vyNlzK-bGpKH6icnWG_l663DoZB0o,6051
113
+ cyberdesk-1.5.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
114
+ cyberdesk-1.5.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
115
+ cyberdesk-1.5.0.dist-info/RECORD,,
@@ -44,8 +44,10 @@ from .run_update import RunUpdate
44
44
  from .run_update_output_data_type_0 import RunUpdateOutputDataType0
45
45
  from .run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
46
46
  from .trajectory_create import TrajectoryCreate
47
+ from .trajectory_create_dimensions import TrajectoryCreateDimensions
47
48
  from .trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
48
49
  from .trajectory_response import TrajectoryResponse
50
+ from .trajectory_response_dimensions import TrajectoryResponseDimensions
49
51
  from .trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
50
52
  from .trajectory_update import TrajectoryUpdate
51
53
  from .trajectory_update_trajectory_data_type_0_item import TrajectoryUpdateTrajectoryDataType0Item
@@ -92,8 +94,10 @@ __all__ = (
92
94
  "RunUpdateOutputDataType0",
93
95
  "RunUpdateRunMessageHistoryType0Item",
94
96
  "TrajectoryCreate",
97
+ "TrajectoryCreateDimensions",
95
98
  "TrajectoryCreateTrajectoryDataItem",
96
99
  "TrajectoryResponse",
100
+ "TrajectoryResponseDimensions",
97
101
  "TrajectoryResponseTrajectoryDataItem",
98
102
  "TrajectoryUpdate",
99
103
  "TrajectoryUpdateTrajectoryDataType0Item",
@@ -6,6 +6,7 @@ from attrs import define as _attrs_define
6
6
  from attrs import field as _attrs_field
7
7
 
8
8
  if TYPE_CHECKING:
9
+ from ..models.trajectory_create_dimensions import TrajectoryCreateDimensions
9
10
  from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
10
11
 
11
12
 
@@ -19,10 +20,12 @@ class TrajectoryCreate:
19
20
  Attributes:
20
21
  workflow_id (UUID):
21
22
  trajectory_data (list['TrajectoryCreateTrajectoryDataItem']):
23
+ dimensions (TrajectoryCreateDimensions): Display dimensions when trajectory was recorded
22
24
  """
23
25
 
24
26
  workflow_id: UUID
25
27
  trajectory_data: list["TrajectoryCreateTrajectoryDataItem"]
28
+ dimensions: "TrajectoryCreateDimensions"
26
29
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
27
30
 
28
31
  def to_dict(self) -> dict[str, Any]:
@@ -33,12 +36,15 @@ class TrajectoryCreate:
33
36
  trajectory_data_item = trajectory_data_item_data.to_dict()
34
37
  trajectory_data.append(trajectory_data_item)
35
38
 
39
+ dimensions = self.dimensions.to_dict()
40
+
36
41
  field_dict: dict[str, Any] = {}
37
42
  field_dict.update(self.additional_properties)
38
43
  field_dict.update(
39
44
  {
40
45
  "workflow_id": workflow_id,
41
46
  "trajectory_data": trajectory_data,
47
+ "dimensions": dimensions,
42
48
  }
43
49
  )
44
50
 
@@ -46,6 +52,7 @@ class TrajectoryCreate:
46
52
 
47
53
  @classmethod
48
54
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
55
+ from ..models.trajectory_create_dimensions import TrajectoryCreateDimensions
49
56
  from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
50
57
 
51
58
  d = dict(src_dict)
@@ -58,9 +65,12 @@ class TrajectoryCreate:
58
65
 
59
66
  trajectory_data.append(trajectory_data_item)
60
67
 
68
+ dimensions = TrajectoryCreateDimensions.from_dict(d.pop("dimensions"))
69
+
61
70
  trajectory_create = cls(
62
71
  workflow_id=workflow_id,
63
72
  trajectory_data=trajectory_data,
73
+ dimensions=dimensions,
64
74
  )
65
75
 
66
76
  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="TrajectoryCreateDimensions")
8
+
9
+
10
+ @_attrs_define
11
+ class TrajectoryCreateDimensions:
12
+ """Display dimensions when trajectory was recorded"""
13
+
14
+ additional_properties: dict[str, int] = _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_dimensions = cls()
26
+
27
+ trajectory_create_dimensions.additional_properties = d
28
+ return trajectory_create_dimensions
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> int:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: int) -> 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 attrs import field as _attrs_field
8
8
  from dateutil.parser import isoparse
9
9
 
10
10
  if TYPE_CHECKING:
11
+ from ..models.trajectory_response_dimensions import TrajectoryResponseDimensions
11
12
  from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
12
13
 
13
14
 
@@ -21,6 +22,7 @@ class TrajectoryResponse:
21
22
  Attributes:
22
23
  workflow_id (UUID):
23
24
  trajectory_data (list['TrajectoryResponseTrajectoryDataItem']):
25
+ dimensions (TrajectoryResponseDimensions): Display dimensions when trajectory was recorded
24
26
  id (UUID):
25
27
  user_id (UUID):
26
28
  created_at (datetime.datetime):
@@ -29,6 +31,7 @@ class TrajectoryResponse:
29
31
 
30
32
  workflow_id: UUID
31
33
  trajectory_data: list["TrajectoryResponseTrajectoryDataItem"]
34
+ dimensions: "TrajectoryResponseDimensions"
32
35
  id: UUID
33
36
  user_id: UUID
34
37
  created_at: datetime.datetime
@@ -43,6 +46,8 @@ class TrajectoryResponse:
43
46
  trajectory_data_item = trajectory_data_item_data.to_dict()
44
47
  trajectory_data.append(trajectory_data_item)
45
48
 
49
+ dimensions = self.dimensions.to_dict()
50
+
46
51
  id = str(self.id)
47
52
 
48
53
  user_id = str(self.user_id)
@@ -57,6 +62,7 @@ class TrajectoryResponse:
57
62
  {
58
63
  "workflow_id": workflow_id,
59
64
  "trajectory_data": trajectory_data,
65
+ "dimensions": dimensions,
60
66
  "id": id,
61
67
  "user_id": user_id,
62
68
  "created_at": created_at,
@@ -68,6 +74,7 @@ class TrajectoryResponse:
68
74
 
69
75
  @classmethod
70
76
  def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
77
+ from ..models.trajectory_response_dimensions import TrajectoryResponseDimensions
71
78
  from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
72
79
 
73
80
  d = dict(src_dict)
@@ -80,6 +87,8 @@ class TrajectoryResponse:
80
87
 
81
88
  trajectory_data.append(trajectory_data_item)
82
89
 
90
+ dimensions = TrajectoryResponseDimensions.from_dict(d.pop("dimensions"))
91
+
83
92
  id = UUID(d.pop("id"))
84
93
 
85
94
  user_id = UUID(d.pop("user_id"))
@@ -91,6 +100,7 @@ class TrajectoryResponse:
91
100
  trajectory_response = cls(
92
101
  workflow_id=workflow_id,
93
102
  trajectory_data=trajectory_data,
103
+ dimensions=dimensions,
94
104
  id=id,
95
105
  user_id=user_id,
96
106
  created_at=created_at,
@@ -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="TrajectoryResponseDimensions")
8
+
9
+
10
+ @_attrs_define
11
+ class TrajectoryResponseDimensions:
12
+ """Display dimensions when trajectory was recorded"""
13
+
14
+ additional_properties: dict[str, int] = _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_dimensions = cls()
26
+
27
+ trajectory_response_dimensions.additional_properties = d
28
+ return trajectory_response_dimensions
29
+
30
+ @property
31
+ def additional_keys(self) -> list[str]:
32
+ return list(self.additional_properties.keys())
33
+
34
+ def __getitem__(self, key: str) -> int:
35
+ return self.additional_properties[key]
36
+
37
+ def __setitem__(self, key: str, value: int) -> 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