cyberdesk 1.11.0__py3-none-any.whl → 2.0.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.

Files changed (45) hide show
  1. cyberdesk/__init__.py +1 -1
  2. {cyberdesk-1.11.0.dist-info → cyberdesk-2.0.0.dist-info}/METADATA +1 -1
  3. {cyberdesk-1.11.0.dist-info → cyberdesk-2.0.0.dist-info}/RECORD +45 -45
  4. openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +4 -4
  5. openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +4 -4
  6. openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +4 -4
  7. openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +4 -4
  8. openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +4 -4
  9. openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +4 -4
  10. openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +4 -4
  11. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +4 -4
  12. openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +4 -4
  13. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +4 -4
  14. openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +4 -4
  15. openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +4 -4
  16. openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +4 -4
  17. openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +4 -4
  18. openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +4 -4
  19. openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +4 -4
  20. openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +12 -8
  21. openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +8 -4
  22. openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +4 -4
  23. openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +4 -4
  24. openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +8 -12
  25. openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +4 -4
  26. openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +4 -4
  27. openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +4 -4
  28. openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +4 -4
  29. openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +4 -4
  30. openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +4 -4
  31. openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +4 -4
  32. openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +4 -4
  33. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +4 -4
  34. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +4 -4
  35. openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +4 -4
  36. openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +4 -4
  37. openapi_client/cyberdesk_cloud_client/models/machine_response.py +50 -8
  38. openapi_client/cyberdesk_cloud_client/models/request_log_response.py +20 -0
  39. openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py +50 -8
  40. openapi_client/cyberdesk_cloud_client/models/run_response.py +51 -8
  41. openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +50 -8
  42. openapi_client/cyberdesk_cloud_client/models/workflow_response.py +50 -8
  43. {cyberdesk-1.11.0.dist-info → cyberdesk-2.0.0.dist-info}/WHEEL +0 -0
  44. {cyberdesk-1.11.0.dist-info → cyberdesk-2.0.0.dist-info}/licenses/LICENSE +0 -0
  45. {cyberdesk-1.11.0.dist-info → cyberdesk-2.0.0.dist-info}/top_level.txt +0 -0
@@ -27,21 +27,23 @@ class TrajectoryResponse:
27
27
  trajectory_data (list['TrajectoryResponseTrajectoryDataItem']):
28
28
  dimensions (TrajectoryResponseDimensions): Display dimensions when trajectory was recorded
29
29
  id (UUID):
30
- user_id (UUID):
31
30
  created_at (datetime.datetime):
32
31
  updated_at (datetime.datetime):
33
32
  original_input_values (Union['TrajectoryResponseOriginalInputValuesType0', None, Unset]): Original input values
34
33
  used when trajectory was created
34
+ user_id (Union[None, UUID, Unset]):
35
+ organization_id (Union[None, Unset, str]):
35
36
  """
36
37
 
37
38
  workflow_id: UUID
38
39
  trajectory_data: list["TrajectoryResponseTrajectoryDataItem"]
39
40
  dimensions: "TrajectoryResponseDimensions"
40
41
  id: UUID
41
- user_id: UUID
42
42
  created_at: datetime.datetime
43
43
  updated_at: datetime.datetime
44
44
  original_input_values: Union["TrajectoryResponseOriginalInputValuesType0", None, Unset] = UNSET
45
+ user_id: Union[None, UUID, Unset] = UNSET
46
+ organization_id: Union[None, Unset, str] = 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]:
@@ -58,8 +60,6 @@ class TrajectoryResponse:
58
60
 
59
61
  id = str(self.id)
60
62
 
61
- user_id = str(self.user_id)
62
-
63
63
  created_at = self.created_at.isoformat()
64
64
 
65
65
  updated_at = self.updated_at.isoformat()
@@ -72,6 +72,20 @@ class TrajectoryResponse:
72
72
  else:
73
73
  original_input_values = self.original_input_values
74
74
 
75
+ user_id: Union[None, Unset, str]
76
+ if isinstance(self.user_id, Unset):
77
+ user_id = UNSET
78
+ elif isinstance(self.user_id, UUID):
79
+ user_id = str(self.user_id)
80
+ else:
81
+ user_id = self.user_id
82
+
83
+ organization_id: Union[None, Unset, str]
84
+ if isinstance(self.organization_id, Unset):
85
+ organization_id = UNSET
86
+ else:
87
+ organization_id = self.organization_id
88
+
75
89
  field_dict: dict[str, Any] = {}
76
90
  field_dict.update(self.additional_properties)
77
91
  field_dict.update(
@@ -80,13 +94,16 @@ class TrajectoryResponse:
80
94
  "trajectory_data": trajectory_data,
81
95
  "dimensions": dimensions,
82
96
  "id": id,
83
- "user_id": user_id,
84
97
  "created_at": created_at,
85
98
  "updated_at": updated_at,
86
99
  }
87
100
  )
88
101
  if original_input_values is not UNSET:
89
102
  field_dict["original_input_values"] = original_input_values
103
+ if user_id is not UNSET:
104
+ field_dict["user_id"] = user_id
105
+ if organization_id is not UNSET:
106
+ field_dict["organization_id"] = organization_id
90
107
 
91
108
  return field_dict
92
109
 
@@ -110,8 +127,6 @@ class TrajectoryResponse:
110
127
 
111
128
  id = UUID(d.pop("id"))
112
129
 
113
- user_id = UUID(d.pop("user_id"))
114
-
115
130
  created_at = isoparse(d.pop("created_at"))
116
131
 
117
132
  updated_at = isoparse(d.pop("updated_at"))
@@ -135,15 +150,42 @@ class TrajectoryResponse:
135
150
 
136
151
  original_input_values = _parse_original_input_values(d.pop("original_input_values", UNSET))
137
152
 
153
+ def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
154
+ if data is None:
155
+ return data
156
+ if isinstance(data, Unset):
157
+ return data
158
+ try:
159
+ if not isinstance(data, str):
160
+ raise TypeError()
161
+ user_id_type_0 = UUID(data)
162
+
163
+ return user_id_type_0
164
+ except: # noqa: E722
165
+ pass
166
+ return cast(Union[None, UUID, Unset], data)
167
+
168
+ user_id = _parse_user_id(d.pop("user_id", UNSET))
169
+
170
+ def _parse_organization_id(data: object) -> Union[None, Unset, str]:
171
+ if data is None:
172
+ return data
173
+ if isinstance(data, Unset):
174
+ return data
175
+ return cast(Union[None, Unset, str], data)
176
+
177
+ organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
178
+
138
179
  trajectory_response = cls(
139
180
  workflow_id=workflow_id,
140
181
  trajectory_data=trajectory_data,
141
182
  dimensions=dimensions,
142
183
  id=id,
143
- user_id=user_id,
144
184
  created_at=created_at,
145
185
  updated_at=updated_at,
146
186
  original_input_values=original_input_values,
187
+ user_id=user_id,
188
+ organization_id=organization_id,
147
189
  )
148
190
 
149
191
  trajectory_response.additional_properties = d
@@ -23,24 +23,26 @@ class WorkflowResponse:
23
23
  Attributes:
24
24
  main_prompt (str):
25
25
  id (UUID):
26
- user_id (UUID):
27
26
  created_at (datetime.datetime):
28
27
  updated_at (datetime.datetime):
29
28
  name (Union[None, Unset, str]):
30
29
  output_schema (Union[None, Unset, str]): JSON schema for output data transformation
31
30
  includes_file_exports (Union[Unset, bool]): Enable AI-based file export detection Default: False.
31
+ user_id (Union[None, UUID, Unset]):
32
+ organization_id (Union[None, Unset, str]):
32
33
  includes_input_variables (Union[Unset, bool]): Default: False.
33
34
  old_versions (Union[None, Unset, list['WorkflowResponseOldVersionsType0Item']]):
34
35
  """
35
36
 
36
37
  main_prompt: str
37
38
  id: UUID
38
- user_id: UUID
39
39
  created_at: datetime.datetime
40
40
  updated_at: datetime.datetime
41
41
  name: Union[None, Unset, str] = UNSET
42
42
  output_schema: Union[None, Unset, str] = UNSET
43
43
  includes_file_exports: Union[Unset, bool] = False
44
+ user_id: Union[None, UUID, Unset] = UNSET
45
+ organization_id: Union[None, Unset, str] = UNSET
44
46
  includes_input_variables: Union[Unset, bool] = False
45
47
  old_versions: Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]] = UNSET
46
48
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
@@ -50,8 +52,6 @@ class WorkflowResponse:
50
52
 
51
53
  id = str(self.id)
52
54
 
53
- user_id = str(self.user_id)
54
-
55
55
  created_at = self.created_at.isoformat()
56
56
 
57
57
  updated_at = self.updated_at.isoformat()
@@ -70,6 +70,20 @@ class WorkflowResponse:
70
70
 
71
71
  includes_file_exports = self.includes_file_exports
72
72
 
73
+ user_id: Union[None, Unset, str]
74
+ if isinstance(self.user_id, Unset):
75
+ user_id = UNSET
76
+ elif isinstance(self.user_id, UUID):
77
+ user_id = str(self.user_id)
78
+ else:
79
+ user_id = self.user_id
80
+
81
+ organization_id: Union[None, Unset, str]
82
+ if isinstance(self.organization_id, Unset):
83
+ organization_id = UNSET
84
+ else:
85
+ organization_id = self.organization_id
86
+
73
87
  includes_input_variables = self.includes_input_variables
74
88
 
75
89
  old_versions: Union[None, Unset, list[dict[str, Any]]]
@@ -90,7 +104,6 @@ class WorkflowResponse:
90
104
  {
91
105
  "main_prompt": main_prompt,
92
106
  "id": id,
93
- "user_id": user_id,
94
107
  "created_at": created_at,
95
108
  "updated_at": updated_at,
96
109
  }
@@ -101,6 +114,10 @@ class WorkflowResponse:
101
114
  field_dict["output_schema"] = output_schema
102
115
  if includes_file_exports is not UNSET:
103
116
  field_dict["includes_file_exports"] = includes_file_exports
117
+ if user_id is not UNSET:
118
+ field_dict["user_id"] = user_id
119
+ if organization_id is not UNSET:
120
+ field_dict["organization_id"] = organization_id
104
121
  if includes_input_variables is not UNSET:
105
122
  field_dict["includes_input_variables"] = includes_input_variables
106
123
  if old_versions is not UNSET:
@@ -117,8 +134,6 @@ class WorkflowResponse:
117
134
 
118
135
  id = UUID(d.pop("id"))
119
136
 
120
- user_id = UUID(d.pop("user_id"))
121
-
122
137
  created_at = isoparse(d.pop("created_at"))
123
138
 
124
139
  updated_at = isoparse(d.pop("updated_at"))
@@ -143,6 +158,32 @@ class WorkflowResponse:
143
158
 
144
159
  includes_file_exports = d.pop("includes_file_exports", UNSET)
145
160
 
161
+ def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
162
+ if data is None:
163
+ return data
164
+ if isinstance(data, Unset):
165
+ return data
166
+ try:
167
+ if not isinstance(data, str):
168
+ raise TypeError()
169
+ user_id_type_0 = UUID(data)
170
+
171
+ return user_id_type_0
172
+ except: # noqa: E722
173
+ pass
174
+ return cast(Union[None, UUID, Unset], data)
175
+
176
+ user_id = _parse_user_id(d.pop("user_id", UNSET))
177
+
178
+ def _parse_organization_id(data: object) -> Union[None, Unset, str]:
179
+ if data is None:
180
+ return data
181
+ if isinstance(data, Unset):
182
+ return data
183
+ return cast(Union[None, Unset, str], data)
184
+
185
+ organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
186
+
146
187
  includes_input_variables = d.pop("includes_input_variables", UNSET)
147
188
 
148
189
  def _parse_old_versions(data: object) -> Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]]:
@@ -172,12 +213,13 @@ class WorkflowResponse:
172
213
  workflow_response = cls(
173
214
  main_prompt=main_prompt,
174
215
  id=id,
175
- user_id=user_id,
176
216
  created_at=created_at,
177
217
  updated_at=updated_at,
178
218
  name=name,
179
219
  output_schema=output_schema,
180
220
  includes_file_exports=includes_file_exports,
221
+ user_id=user_id,
222
+ organization_id=organization_id,
181
223
  includes_input_variables=includes_input_variables,
182
224
  old_versions=old_versions,
183
225
  )