cyberdesk 2.1.6__py3-none-any.whl → 2.1.8__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
@@ -27,7 +27,7 @@ from .client import (
27
27
  AttachmentType,
28
28
  )
29
29
 
30
- __version__ = "2.1.6"
30
+ __version__ = "2.1.8"
31
31
 
32
32
  __all__ = [
33
33
  "CyberdeskClient",
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cyberdesk
3
- Version: 2.1.6
3
+ Version: 2.1.8
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=Rw283-Jd5SQp35m80AJj-y0ArPRm_cSPdfq5TFjpFrA,1157
1
+ cyberdesk/__init__.py,sha256=HxT7pnH4vMRvUSSUdLfVTbvf5a-a7Gw3TfvhYLt7b48,1157
2
2
  cyberdesk/client.py,sha256=QbOzRMrqAnCH7_13O0cU5HO0FpQFXbZOyCsfusaWXPc,65112
3
- cyberdesk-2.1.6.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
3
+ cyberdesk-2.1.8.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
@@ -70,7 +70,7 @@ openapi_client/cyberdesk_cloud_client/api/runs/create_run_chain_v1_runs_chain_po
70
70
  openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py,sha256=GhCe-A0JxVWvTgzA4AyKEJQOlem0uzttLmXBxRLlUys,5451
71
71
  openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py,sha256=dOGd7lAPd9SBn9-13zhTx-wTtM6YQvT3WspjIQjOhHg,4428
72
72
  openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py,sha256=4mPvnOtAICVqzyXbD5Gdtqq_f1ardg7WpseT8RI3mwQ,4594
73
- openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py,sha256=_xiQyKovzQOwvesQH1lwid0zh1ZCGIimsOdJFUB21BI,11398
73
+ openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py,sha256=aaKdDfjud7q_H4a2K7spWgv-Q-ldPtcBWLCz0AfKW3k,12335
74
74
  openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py,sha256=8m2VaIjCilDkmkzgZ1D7JfNScDqgNRheaaUcuMqPibQ,5182
75
75
  openapi_client/cyberdesk_cloud_client/api/test/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
76
76
  openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py,sha256=sxmvHugxdpK3jb8jmjUfo-pbzmmNU92C-Ze8quxSWC8,4642
@@ -172,7 +172,7 @@ openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data
172
172
  openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=EF-O37EgyVd9qmdMZk7frNFsSdiiWC7_ZWEoDGMxWnY,4916
173
173
  openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
174
174
  openapi_client/cyberdesk_cloud_client/models/validation_error.py,sha256=ZlK9hbhWr4zSC-dxZh9giERvMiYf9s2k8e1O9Rch_NI,2181
175
- openapi_client/cyberdesk_cloud_client/models/workflow_chain_create.py,sha256=Ll-4OOO5KJ_-npNtnqXlSLU97dGBATUTF_sw1XGIUEM,11945
175
+ openapi_client/cyberdesk_cloud_client/models/workflow_chain_create.py,sha256=SVFhPy0aNBgWWUJwCBhxUmMHfoJSOohbjgW-0_DYLy0,12580
176
176
  openapi_client/cyberdesk_cloud_client/models/workflow_chain_create_shared_inputs_type_0.py,sha256=DMyjLQZDdL4Ys9S04mswimHNeLowXu6HK4rwcy2EdfY,1340
177
177
  openapi_client/cyberdesk_cloud_client/models/workflow_chain_create_shared_sensitive_inputs_type_0.py,sha256=v-q9148uzXRexSOpGbXc1hOY_4qwESiHO8Xt2DSBf6M,1388
178
178
  openapi_client/cyberdesk_cloud_client/models/workflow_chain_response.py,sha256=mw3uh4xWu0ATK44f2Qa2xd_H0rWORBnIBERHqrw4gc4,2086
@@ -180,7 +180,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=d0bfNbNBF
180
180
  openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=k48mouJ6Dcisz2vyM7Rb_cbjU66JudGVPsq4UC7grHA,8977
181
181
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
182
182
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=TG2jEitXixS2thtz7lTxTZaE0RBVSWd-apVxWxsvnrg,5333
183
- cyberdesk-2.1.6.dist-info/METADATA,sha256=aVFDPkRJsaoGM-SoZNln7gvzVpEDJrY-HX1CGsrO_xI,6791
184
- cyberdesk-2.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
185
- cyberdesk-2.1.6.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
186
- cyberdesk-2.1.6.dist-info/RECORD,,
183
+ cyberdesk-2.1.8.dist-info/METADATA,sha256=VK2RbexaeUnezd3zj7DAAT24mPlfGD9mXSoKEFEfKx0,6791
184
+ cyberdesk-2.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
185
+ cyberdesk-2.1.8.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
186
+ cyberdesk-2.1.8.dist-info/RECORD,,
@@ -17,6 +17,7 @@ def _get_kwargs(
17
17
  *,
18
18
  workflow_id: Union[None, UUID, Unset] = UNSET,
19
19
  machine_id: Union[None, UUID, Unset] = UNSET,
20
+ session_id: Union[None, UUID, Unset] = UNSET,
20
21
  status: Union[None, RunStatus, Unset] = UNSET,
21
22
  created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
22
23
  created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
@@ -43,6 +44,15 @@ def _get_kwargs(
43
44
  json_machine_id = machine_id
44
45
  params["machine_id"] = json_machine_id
45
46
 
47
+ json_session_id: Union[None, Unset, str]
48
+ if isinstance(session_id, Unset):
49
+ json_session_id = UNSET
50
+ elif isinstance(session_id, UUID):
51
+ json_session_id = str(session_id)
52
+ else:
53
+ json_session_id = session_id
54
+ params["session_id"] = json_session_id
55
+
46
56
  json_status: Union[None, Unset, str]
47
57
  if isinstance(status, Unset):
48
58
  json_status = UNSET
@@ -118,6 +128,7 @@ def sync_detailed(
118
128
  client: AuthenticatedClient,
119
129
  workflow_id: Union[None, UUID, Unset] = UNSET,
120
130
  machine_id: Union[None, UUID, Unset] = UNSET,
131
+ session_id: Union[None, UUID, Unset] = UNSET,
121
132
  status: Union[None, RunStatus, Unset] = UNSET,
122
133
  created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
123
134
  created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
@@ -134,6 +145,7 @@ def sync_detailed(
134
145
  Args:
135
146
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
136
147
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
148
+ session_id (Union[None, UUID, Unset]): Filter by session ID
137
149
  status (Union[None, RunStatus, Unset]): Filter by run status
138
150
  created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
139
151
  this ISO timestamp (UTC)
@@ -153,6 +165,7 @@ def sync_detailed(
153
165
  kwargs = _get_kwargs(
154
166
  workflow_id=workflow_id,
155
167
  machine_id=machine_id,
168
+ session_id=session_id,
156
169
  status=status,
157
170
  created_at_from=created_at_from,
158
171
  created_at_to=created_at_to,
@@ -172,6 +185,7 @@ def sync(
172
185
  client: AuthenticatedClient,
173
186
  workflow_id: Union[None, UUID, Unset] = UNSET,
174
187
  machine_id: Union[None, UUID, Unset] = UNSET,
188
+ session_id: Union[None, UUID, Unset] = UNSET,
175
189
  status: Union[None, RunStatus, Unset] = UNSET,
176
190
  created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
177
191
  created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
@@ -188,6 +202,7 @@ def sync(
188
202
  Args:
189
203
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
190
204
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
205
+ session_id (Union[None, UUID, Unset]): Filter by session ID
191
206
  status (Union[None, RunStatus, Unset]): Filter by run status
192
207
  created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
193
208
  this ISO timestamp (UTC)
@@ -208,6 +223,7 @@ def sync(
208
223
  client=client,
209
224
  workflow_id=workflow_id,
210
225
  machine_id=machine_id,
226
+ session_id=session_id,
211
227
  status=status,
212
228
  created_at_from=created_at_from,
213
229
  created_at_to=created_at_to,
@@ -221,6 +237,7 @@ async def asyncio_detailed(
221
237
  client: AuthenticatedClient,
222
238
  workflow_id: Union[None, UUID, Unset] = UNSET,
223
239
  machine_id: Union[None, UUID, Unset] = UNSET,
240
+ session_id: Union[None, UUID, Unset] = UNSET,
224
241
  status: Union[None, RunStatus, Unset] = UNSET,
225
242
  created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
226
243
  created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
@@ -237,6 +254,7 @@ async def asyncio_detailed(
237
254
  Args:
238
255
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
239
256
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
257
+ session_id (Union[None, UUID, Unset]): Filter by session ID
240
258
  status (Union[None, RunStatus, Unset]): Filter by run status
241
259
  created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
242
260
  this ISO timestamp (UTC)
@@ -256,6 +274,7 @@ async def asyncio_detailed(
256
274
  kwargs = _get_kwargs(
257
275
  workflow_id=workflow_id,
258
276
  machine_id=machine_id,
277
+ session_id=session_id,
259
278
  status=status,
260
279
  created_at_from=created_at_from,
261
280
  created_at_to=created_at_to,
@@ -273,6 +292,7 @@ async def asyncio(
273
292
  client: AuthenticatedClient,
274
293
  workflow_id: Union[None, UUID, Unset] = UNSET,
275
294
  machine_id: Union[None, UUID, Unset] = UNSET,
295
+ session_id: Union[None, UUID, Unset] = UNSET,
276
296
  status: Union[None, RunStatus, Unset] = UNSET,
277
297
  created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
278
298
  created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
@@ -289,6 +309,7 @@ async def asyncio(
289
309
  Args:
290
310
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
291
311
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
312
+ session_id (Union[None, UUID, Unset]): Filter by session ID
292
313
  status (Union[None, RunStatus, Unset]): Filter by run status
293
314
  created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
294
315
  this ISO timestamp (UTC)
@@ -310,6 +331,7 @@ async def asyncio(
310
331
  client=client,
311
332
  workflow_id=workflow_id,
312
333
  machine_id=machine_id,
334
+ session_id=session_id,
313
335
  status=status,
314
336
  created_at_from=created_at_from,
315
337
  created_at_to=created_at_to,
@@ -30,7 +30,8 @@ class WorkflowChainCreate:
30
30
  shared_file_inputs (Union[None, Unset, list['FileInput']]):
31
31
  keep_session_after_completion (Union[None, Unset, bool]): Default: False.
32
32
  machine_id (Union[None, UUID, Unset]):
33
- pool_id (Union[None, UUID, Unset]):
33
+ pool_ids (Union[None, Unset, list[UUID]]): Pool IDs to filter available machines when starting a new session.
34
+ Machine must belong to ALL of these pools (intersection). Ignored when machine_id is provided.
34
35
  session_id (Union[None, UUID, Unset]):
35
36
  """
36
37
 
@@ -40,7 +41,7 @@ class WorkflowChainCreate:
40
41
  shared_file_inputs: Union[None, Unset, list["FileInput"]] = UNSET
41
42
  keep_session_after_completion: Union[None, Unset, bool] = False
42
43
  machine_id: Union[None, UUID, Unset] = UNSET
43
- pool_id: Union[None, UUID, Unset] = UNSET
44
+ pool_ids: Union[None, Unset, list[UUID]] = UNSET
44
45
  session_id: Union[None, UUID, Unset] = UNSET
45
46
  additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
46
47
 
@@ -97,13 +98,17 @@ class WorkflowChainCreate:
97
98
  else:
98
99
  machine_id = self.machine_id
99
100
 
100
- pool_id: Union[None, Unset, str]
101
- if isinstance(self.pool_id, Unset):
102
- pool_id = UNSET
103
- elif isinstance(self.pool_id, UUID):
104
- pool_id = str(self.pool_id)
101
+ pool_ids: Union[None, Unset, list[str]]
102
+ if isinstance(self.pool_ids, Unset):
103
+ pool_ids = UNSET
104
+ elif isinstance(self.pool_ids, list):
105
+ pool_ids = []
106
+ for pool_ids_type_0_item_data in self.pool_ids:
107
+ pool_ids_type_0_item = str(pool_ids_type_0_item_data)
108
+ pool_ids.append(pool_ids_type_0_item)
109
+
105
110
  else:
106
- pool_id = self.pool_id
111
+ pool_ids = self.pool_ids
107
112
 
108
113
  session_id: Union[None, Unset, str]
109
114
  if isinstance(self.session_id, Unset):
@@ -130,8 +135,8 @@ class WorkflowChainCreate:
130
135
  field_dict["keep_session_after_completion"] = keep_session_after_completion
131
136
  if machine_id is not UNSET:
132
137
  field_dict["machine_id"] = machine_id
133
- if pool_id is not UNSET:
134
- field_dict["pool_id"] = pool_id
138
+ if pool_ids is not UNSET:
139
+ field_dict["pool_ids"] = pool_ids
135
140
  if session_id is not UNSET:
136
141
  field_dict["session_id"] = session_id
137
142
 
@@ -240,22 +245,27 @@ class WorkflowChainCreate:
240
245
 
241
246
  machine_id = _parse_machine_id(d.pop("machine_id", UNSET))
242
247
 
243
- def _parse_pool_id(data: object) -> Union[None, UUID, Unset]:
248
+ def _parse_pool_ids(data: object) -> Union[None, Unset, list[UUID]]:
244
249
  if data is None:
245
250
  return data
246
251
  if isinstance(data, Unset):
247
252
  return data
248
253
  try:
249
- if not isinstance(data, str):
254
+ if not isinstance(data, list):
250
255
  raise TypeError()
251
- pool_id_type_0 = UUID(data)
256
+ pool_ids_type_0 = []
257
+ _pool_ids_type_0 = data
258
+ for pool_ids_type_0_item_data in _pool_ids_type_0:
259
+ pool_ids_type_0_item = UUID(pool_ids_type_0_item_data)
252
260
 
253
- return pool_id_type_0
261
+ pool_ids_type_0.append(pool_ids_type_0_item)
262
+
263
+ return pool_ids_type_0
254
264
  except: # noqa: E722
255
265
  pass
256
- return cast(Union[None, UUID, Unset], data)
266
+ return cast(Union[None, Unset, list[UUID]], data)
257
267
 
258
- pool_id = _parse_pool_id(d.pop("pool_id", UNSET))
268
+ pool_ids = _parse_pool_ids(d.pop("pool_ids", UNSET))
259
269
 
260
270
  def _parse_session_id(data: object) -> Union[None, UUID, Unset]:
261
271
  if data is None:
@@ -281,7 +291,7 @@ class WorkflowChainCreate:
281
291
  shared_file_inputs=shared_file_inputs,
282
292
  keep_session_after_completion=keep_session_after_completion,
283
293
  machine_id=machine_id,
284
- pool_id=pool_id,
294
+ pool_ids=pool_ids,
285
295
  session_id=session_id,
286
296
  )
287
297