cyberdesk 2.1.12__py3-none-any.whl → 2.1.13__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.12"
30
+ __version__ = "2.1.13"
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.12
3
+ Version: 2.1.13
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=JQJwCuDo4LrerM-RiblL77lxTVS5MAlmMQAfF1rZgcA,1158
1
+ cyberdesk/__init__.py,sha256=YPEZLZDuQwqyKWsEnkfhvy-C047mnQhX4TT9CQ8THP8,1158
2
2
  cyberdesk/client.py,sha256=72fhbiHZcvQl08ncoEArUZROECRfSkmf5MXY7do2KPM,68639
3
- cyberdesk-2.1.12.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
3
+ cyberdesk-2.1.13.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
@@ -153,7 +153,7 @@ openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=iSgRvNXZuKsHel
153
153
  openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py,sha256=APV4O0GduU3fhHoJHMMOBk-h92Hf21c1ZU-pIsJoZpg,1282
154
154
  openapi_client/cyberdesk_cloud_client/models/run_create_sensitive_input_values_type_0.py,sha256=gtmXorTEeOVv2fYJKkHCSFhKCRMvE-6-XjfNfNhiNMY,1330
155
155
  openapi_client/cyberdesk_cloud_client/models/run_field.py,sha256=XkEqI19aka8ap98dJ9AULywFPamjxXF1ZsvDm00fxNI,643
156
- openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=Pb3MGH1hdleAejryN2MAz5QXaEPJkzULrJ6bDI8BbR4,18385
156
+ openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=xMaeSkSjvRK5_JjR4UX8x7vZ63uwWyomxhM3Y3VVqSc,19944
157
157
  openapi_client/cyberdesk_cloud_client/models/run_response_input_values_type_0.py,sha256=NpMqT3qaMrLGA7mHBjvtS1fnMGc5zxwWLoFWunjjupA,1292
158
158
  openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py,sha256=rO4YJAa26G_83CFtBTQ_ZKCURAxNS7PcvdKbfuvDcrA,1287
159
159
  openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py,sha256=3x1N3yi3kyc1que3bizmHEuGBn5s7pEirEg4TgBV9FU,1348
@@ -185,7 +185,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=d0bfNbNBF
185
185
  openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=k48mouJ6Dcisz2vyM7Rb_cbjU66JudGVPsq4UC7grHA,8977
186
186
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
187
187
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=TG2jEitXixS2thtz7lTxTZaE0RBVSWd-apVxWxsvnrg,5333
188
- cyberdesk-2.1.12.dist-info/METADATA,sha256=yIe3Sgc1oGgMfwOo9KTvH9QSAj7Rus6zyHlgw604oq4,6792
189
- cyberdesk-2.1.12.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
190
- cyberdesk-2.1.12.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
191
- cyberdesk-2.1.12.dist-info/RECORD,,
188
+ cyberdesk-2.1.13.dist-info/METADATA,sha256=_Kn235EGIG2rCMgXEVjYWMY3YsUhrA5R8ew7mRMOvIU,6792
189
+ cyberdesk-2.1.13.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
190
+ cyberdesk-2.1.13.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
191
+ cyberdesk-2.1.13.dist-info/RECORD,,
@@ -29,15 +29,15 @@ class RunResponse:
29
29
  machine_id (Union[None, UUID]):
30
30
  id (UUID):
31
31
  status (RunStatus):
32
- error (Union[None, list[str]]):
33
- output_data (Union['RunResponseOutputDataType0', None]):
34
- input_attachment_ids (Union[None, list[str]]):
35
- output_attachment_ids (Union[None, list[str]]):
36
- run_message_history (Union[None, list['RunResponseRunMessageHistoryType0Item']]):
37
- input_values (Union['RunResponseInputValuesType0', None]):
38
32
  created_at (datetime.datetime):
39
33
  user_id (Union[None, UUID, Unset]):
40
34
  organization_id (Union[None, Unset, str]):
35
+ error (Union[None, Unset, list[str]]):
36
+ output_data (Union['RunResponseOutputDataType0', None, Unset]):
37
+ input_attachment_ids (Union[None, Unset, list[str]]):
38
+ output_attachment_ids (Union[None, Unset, list[str]]):
39
+ run_message_history (Union[None, Unset, list['RunResponseRunMessageHistoryType0Item']]):
40
+ input_values (Union['RunResponseInputValuesType0', None, Unset]):
41
41
  pool_ids (Union[None, Unset, list[UUID]]):
42
42
  sensitive_input_aliases (Union['RunResponseSensitiveInputAliasesType0', None, Unset]):
43
43
  session_id (Union[None, UUID, Unset]):
@@ -49,15 +49,15 @@ class RunResponse:
49
49
  machine_id: Union[None, UUID]
50
50
  id: UUID
51
51
  status: RunStatus
52
- error: Union[None, list[str]]
53
- output_data: Union["RunResponseOutputDataType0", None]
54
- input_attachment_ids: Union[None, list[str]]
55
- output_attachment_ids: Union[None, list[str]]
56
- run_message_history: Union[None, list["RunResponseRunMessageHistoryType0Item"]]
57
- input_values: Union["RunResponseInputValuesType0", None]
58
52
  created_at: datetime.datetime
59
53
  user_id: Union[None, UUID, Unset] = UNSET
60
54
  organization_id: Union[None, Unset, str] = UNSET
55
+ error: Union[None, Unset, list[str]] = UNSET
56
+ output_data: Union["RunResponseOutputDataType0", None, Unset] = UNSET
57
+ input_attachment_ids: Union[None, Unset, list[str]] = UNSET
58
+ output_attachment_ids: Union[None, Unset, list[str]] = UNSET
59
+ run_message_history: Union[None, Unset, list["RunResponseRunMessageHistoryType0Item"]] = UNSET
60
+ input_values: Union["RunResponseInputValuesType0", None, Unset] = UNSET
61
61
  pool_ids: Union[None, Unset, list[UUID]] = UNSET
62
62
  sensitive_input_aliases: Union["RunResponseSensitiveInputAliasesType0", None, Unset] = UNSET
63
63
  session_id: Union[None, UUID, Unset] = UNSET
@@ -82,35 +82,61 @@ class RunResponse:
82
82
 
83
83
  status = self.status.value
84
84
 
85
- error: Union[None, list[str]]
86
- if isinstance(self.error, list):
85
+ created_at = self.created_at.isoformat()
86
+
87
+ user_id: Union[None, Unset, str]
88
+ if isinstance(self.user_id, Unset):
89
+ user_id = UNSET
90
+ elif isinstance(self.user_id, UUID):
91
+ user_id = str(self.user_id)
92
+ else:
93
+ user_id = self.user_id
94
+
95
+ organization_id: Union[None, Unset, str]
96
+ if isinstance(self.organization_id, Unset):
97
+ organization_id = UNSET
98
+ else:
99
+ organization_id = self.organization_id
100
+
101
+ error: Union[None, Unset, list[str]]
102
+ if isinstance(self.error, Unset):
103
+ error = UNSET
104
+ elif isinstance(self.error, list):
87
105
  error = self.error
88
106
 
89
107
  else:
90
108
  error = self.error
91
109
 
92
- output_data: Union[None, dict[str, Any]]
93
- if isinstance(self.output_data, RunResponseOutputDataType0):
110
+ output_data: Union[None, Unset, dict[str, Any]]
111
+ if isinstance(self.output_data, Unset):
112
+ output_data = UNSET
113
+ elif isinstance(self.output_data, RunResponseOutputDataType0):
94
114
  output_data = self.output_data.to_dict()
95
115
  else:
96
116
  output_data = self.output_data
97
117
 
98
- input_attachment_ids: Union[None, list[str]]
99
- if isinstance(self.input_attachment_ids, list):
118
+ input_attachment_ids: Union[None, Unset, list[str]]
119
+ if isinstance(self.input_attachment_ids, Unset):
120
+ input_attachment_ids = UNSET
121
+ elif isinstance(self.input_attachment_ids, list):
100
122
  input_attachment_ids = self.input_attachment_ids
101
123
 
102
124
  else:
103
125
  input_attachment_ids = self.input_attachment_ids
104
126
 
105
- output_attachment_ids: Union[None, list[str]]
106
- if isinstance(self.output_attachment_ids, list):
127
+ output_attachment_ids: Union[None, Unset, list[str]]
128
+ if isinstance(self.output_attachment_ids, Unset):
129
+ output_attachment_ids = UNSET
130
+ elif isinstance(self.output_attachment_ids, list):
107
131
  output_attachment_ids = self.output_attachment_ids
108
132
 
109
133
  else:
110
134
  output_attachment_ids = self.output_attachment_ids
111
135
 
112
- run_message_history: Union[None, list[dict[str, Any]]]
113
- if isinstance(self.run_message_history, list):
136
+ run_message_history: Union[None, Unset, list[dict[str, Any]]]
137
+ if isinstance(self.run_message_history, Unset):
138
+ run_message_history = UNSET
139
+ elif isinstance(self.run_message_history, list):
114
140
  run_message_history = []
115
141
  for run_message_history_type_0_item_data in self.run_message_history:
116
142
  run_message_history_type_0_item = run_message_history_type_0_item_data.to_dict()
@@ -119,28 +145,14 @@ class RunResponse:
119
145
  else:
120
146
  run_message_history = self.run_message_history
121
147
 
122
- input_values: Union[None, dict[str, Any]]
123
- if isinstance(self.input_values, RunResponseInputValuesType0):
148
+ input_values: Union[None, Unset, dict[str, Any]]
149
+ if isinstance(self.input_values, Unset):
150
+ input_values = UNSET
151
+ elif isinstance(self.input_values, RunResponseInputValuesType0):
124
152
  input_values = self.input_values.to_dict()
125
153
  else:
126
154
  input_values = self.input_values
127
155
 
128
- created_at = self.created_at.isoformat()
129
-
130
- user_id: Union[None, Unset, str]
131
- if isinstance(self.user_id, Unset):
132
- user_id = UNSET
133
- elif isinstance(self.user_id, UUID):
134
- user_id = str(self.user_id)
135
- else:
136
- user_id = self.user_id
137
-
138
- organization_id: Union[None, Unset, str]
139
- if isinstance(self.organization_id, Unset):
140
- organization_id = UNSET
141
- else:
142
- organization_id = self.organization_id
143
-
144
156
  pool_ids: Union[None, Unset, list[str]]
145
157
  if isinstance(self.pool_ids, Unset):
146
158
  pool_ids = UNSET
@@ -189,12 +201,6 @@ class RunResponse:
189
201
  "machine_id": machine_id,
190
202
  "id": id,
191
203
  "status": status,
192
- "error": error,
193
- "output_data": output_data,
194
- "input_attachment_ids": input_attachment_ids,
195
- "output_attachment_ids": output_attachment_ids,
196
- "run_message_history": run_message_history,
197
- "input_values": input_values,
198
204
  "created_at": created_at,
199
205
  }
200
206
  )
@@ -202,6 +208,18 @@ class RunResponse:
202
208
  field_dict["user_id"] = user_id
203
209
  if organization_id is not UNSET:
204
210
  field_dict["organization_id"] = organization_id
211
+ if error is not UNSET:
212
+ field_dict["error"] = error
213
+ if output_data is not UNSET:
214
+ field_dict["output_data"] = output_data
215
+ if input_attachment_ids is not UNSET:
216
+ field_dict["input_attachment_ids"] = input_attachment_ids
217
+ if output_attachment_ids is not UNSET:
218
+ field_dict["output_attachment_ids"] = output_attachment_ids
219
+ if run_message_history is not UNSET:
220
+ field_dict["run_message_history"] = run_message_history
221
+ if input_values is not UNSET:
222
+ field_dict["input_values"] = input_values
205
223
  if pool_ids is not UNSET:
206
224
  field_dict["pool_ids"] = pool_ids
207
225
  if sensitive_input_aliases is not UNSET:
@@ -244,9 +262,39 @@ class RunResponse:
244
262
 
245
263
  status = RunStatus(d.pop("status"))
246
264
 
247
- def _parse_error(data: object) -> Union[None, list[str]]:
265
+ created_at = isoparse(d.pop("created_at"))
266
+
267
+ def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
268
+ if data is None:
269
+ return data
270
+ if isinstance(data, Unset):
271
+ return data
272
+ try:
273
+ if not isinstance(data, str):
274
+ raise TypeError()
275
+ user_id_type_0 = UUID(data)
276
+
277
+ return user_id_type_0
278
+ except: # noqa: E722
279
+ pass
280
+ return cast(Union[None, UUID, Unset], data)
281
+
282
+ user_id = _parse_user_id(d.pop("user_id", UNSET))
283
+
284
+ def _parse_organization_id(data: object) -> Union[None, Unset, str]:
285
+ if data is None:
286
+ return data
287
+ if isinstance(data, Unset):
288
+ return data
289
+ return cast(Union[None, Unset, str], data)
290
+
291
+ organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
292
+
293
+ def _parse_error(data: object) -> Union[None, Unset, list[str]]:
248
294
  if data is None:
249
295
  return data
296
+ if isinstance(data, Unset):
297
+ return data
250
298
  try:
251
299
  if not isinstance(data, list):
252
300
  raise TypeError()
@@ -255,13 +303,15 @@ class RunResponse:
255
303
  return error_type_0
256
304
  except: # noqa: E722
257
305
  pass
258
- return cast(Union[None, list[str]], data)
306
+ return cast(Union[None, Unset, list[str]], data)
259
307
 
260
- error = _parse_error(d.pop("error"))
308
+ error = _parse_error(d.pop("error", UNSET))
261
309
 
262
- def _parse_output_data(data: object) -> Union["RunResponseOutputDataType0", None]:
310
+ def _parse_output_data(data: object) -> Union["RunResponseOutputDataType0", None, Unset]:
263
311
  if data is None:
264
312
  return data
313
+ if isinstance(data, Unset):
314
+ return data
265
315
  try:
266
316
  if not isinstance(data, dict):
267
317
  raise TypeError()
@@ -270,13 +320,15 @@ class RunResponse:
270
320
  return output_data_type_0
271
321
  except: # noqa: E722
272
322
  pass
273
- return cast(Union["RunResponseOutputDataType0", None], data)
323
+ return cast(Union["RunResponseOutputDataType0", None, Unset], data)
274
324
 
275
- output_data = _parse_output_data(d.pop("output_data"))
325
+ output_data = _parse_output_data(d.pop("output_data", UNSET))
276
326
 
277
- def _parse_input_attachment_ids(data: object) -> Union[None, list[str]]:
327
+ def _parse_input_attachment_ids(data: object) -> Union[None, Unset, list[str]]:
278
328
  if data is None:
279
329
  return data
330
+ if isinstance(data, Unset):
331
+ return data
280
332
  try:
281
333
  if not isinstance(data, list):
282
334
  raise TypeError()
@@ -285,13 +337,15 @@ class RunResponse:
285
337
  return input_attachment_ids_type_0
286
338
  except: # noqa: E722
287
339
  pass
288
- return cast(Union[None, list[str]], data)
340
+ return cast(Union[None, Unset, list[str]], data)
289
341
 
290
- input_attachment_ids = _parse_input_attachment_ids(d.pop("input_attachment_ids"))
342
+ input_attachment_ids = _parse_input_attachment_ids(d.pop("input_attachment_ids", UNSET))
291
343
 
292
- def _parse_output_attachment_ids(data: object) -> Union[None, list[str]]:
344
+ def _parse_output_attachment_ids(data: object) -> Union[None, Unset, list[str]]:
293
345
  if data is None:
294
346
  return data
347
+ if isinstance(data, Unset):
348
+ return data
295
349
  try:
296
350
  if not isinstance(data, list):
297
351
  raise TypeError()
@@ -300,13 +354,17 @@ class RunResponse:
300
354
  return output_attachment_ids_type_0
301
355
  except: # noqa: E722
302
356
  pass
303
- return cast(Union[None, list[str]], data)
357
+ return cast(Union[None, Unset, list[str]], data)
304
358
 
305
- output_attachment_ids = _parse_output_attachment_ids(d.pop("output_attachment_ids"))
359
+ output_attachment_ids = _parse_output_attachment_ids(d.pop("output_attachment_ids", UNSET))
306
360
 
307
- def _parse_run_message_history(data: object) -> Union[None, list["RunResponseRunMessageHistoryType0Item"]]:
361
+ def _parse_run_message_history(
362
+ data: object,
363
+ ) -> Union[None, Unset, list["RunResponseRunMessageHistoryType0Item"]]:
308
364
  if data is None:
309
365
  return data
366
+ if isinstance(data, Unset):
367
+ return data
310
368
  try:
311
369
  if not isinstance(data, list):
312
370
  raise TypeError()
@@ -322,13 +380,15 @@ class RunResponse:
322
380
  return run_message_history_type_0
323
381
  except: # noqa: E722
324
382
  pass
325
- return cast(Union[None, list["RunResponseRunMessageHistoryType0Item"]], data)
383
+ return cast(Union[None, Unset, list["RunResponseRunMessageHistoryType0Item"]], data)
326
384
 
327
- run_message_history = _parse_run_message_history(d.pop("run_message_history"))
385
+ run_message_history = _parse_run_message_history(d.pop("run_message_history", UNSET))
328
386
 
329
- def _parse_input_values(data: object) -> Union["RunResponseInputValuesType0", None]:
387
+ def _parse_input_values(data: object) -> Union["RunResponseInputValuesType0", None, Unset]:
330
388
  if data is None:
331
389
  return data
390
+ if isinstance(data, Unset):
391
+ return data
332
392
  try:
333
393
  if not isinstance(data, dict):
334
394
  raise TypeError()
@@ -337,37 +397,9 @@ class RunResponse:
337
397
  return input_values_type_0
338
398
  except: # noqa: E722
339
399
  pass
340
- return cast(Union["RunResponseInputValuesType0", None], data)
341
-
342
- input_values = _parse_input_values(d.pop("input_values"))
400
+ return cast(Union["RunResponseInputValuesType0", None, Unset], data)
343
401
 
344
- created_at = isoparse(d.pop("created_at"))
345
-
346
- def _parse_user_id(data: object) -> Union[None, UUID, Unset]:
347
- if data is None:
348
- return data
349
- if isinstance(data, Unset):
350
- return data
351
- try:
352
- if not isinstance(data, str):
353
- raise TypeError()
354
- user_id_type_0 = UUID(data)
355
-
356
- return user_id_type_0
357
- except: # noqa: E722
358
- pass
359
- return cast(Union[None, UUID, Unset], data)
360
-
361
- user_id = _parse_user_id(d.pop("user_id", UNSET))
362
-
363
- def _parse_organization_id(data: object) -> Union[None, Unset, str]:
364
- if data is None:
365
- return data
366
- if isinstance(data, Unset):
367
- return data
368
- return cast(Union[None, Unset, str], data)
369
-
370
- organization_id = _parse_organization_id(d.pop("organization_id", UNSET))
402
+ input_values = _parse_input_values(d.pop("input_values", UNSET))
371
403
 
372
404
  def _parse_pool_ids(data: object) -> Union[None, Unset, list[UUID]]:
373
405
  if data is None:
@@ -448,15 +480,15 @@ class RunResponse:
448
480
  machine_id=machine_id,
449
481
  id=id,
450
482
  status=status,
483
+ created_at=created_at,
484
+ user_id=user_id,
485
+ organization_id=organization_id,
451
486
  error=error,
452
487
  output_data=output_data,
453
488
  input_attachment_ids=input_attachment_ids,
454
489
  output_attachment_ids=output_attachment_ids,
455
490
  run_message_history=run_message_history,
456
491
  input_values=input_values,
457
- created_at=created_at,
458
- user_id=user_id,
459
- organization_id=organization_id,
460
492
  pool_ids=pool_ids,
461
493
  sensitive_input_aliases=sensitive_input_aliases,
462
494
  session_id=session_id,