cyberdesk 2.1.0__py3-none-any.whl → 2.1.2__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.0"
30
+ __version__ = "2.1.2"
31
31
 
32
32
  __all__ = [
33
33
  "CyberdeskClient",
cyberdesk/client.py CHANGED
@@ -4,6 +4,7 @@ from uuid import UUID
4
4
  from pathlib import Path
5
5
  import httpx
6
6
  from dataclasses import dataclass
7
+ from datetime import datetime, timezone
7
8
 
8
9
  # Import the generated client
9
10
  from openapi_client.cyberdesk_cloud_client import AuthenticatedClient
@@ -163,6 +164,26 @@ def _to_unset_or_value(value: Optional[Any]) -> Union[Unset, Any]:
163
164
  return UNSET if value is None else value
164
165
 
165
166
 
167
+ def _to_iso_utc_str(value: Optional[Union[str, datetime]]) -> Optional[str]:
168
+ """Convert a datetime or string to an ISO8601 UTC string.
169
+
170
+ - If value is a string, it is returned unchanged (assumed to be ISO8601)
171
+ - If value is a timezone-aware datetime, it is converted to UTC ISO string
172
+ - If value is a naive datetime, it is treated as UTC and suffixed accordingly
173
+ - If value is None, returns None
174
+ """
175
+ if value is None:
176
+ return None
177
+ if isinstance(value, str):
178
+ return value
179
+ if isinstance(value, datetime):
180
+ if value.tzinfo is None:
181
+ return value.replace(tzinfo=timezone.utc).isoformat()
182
+ return value.astimezone(timezone.utc).isoformat()
183
+ return None
184
+
185
+
186
+
166
187
  class MachinesAPI:
167
188
  """Machines API endpoints."""
168
189
 
@@ -173,15 +194,28 @@ class MachinesAPI:
173
194
  self,
174
195
  skip: Optional[int] = None,
175
196
  limit: Optional[int] = None,
176
- status: Optional[MachineStatus] = None
197
+ status: Optional[MachineStatus] = None,
198
+ *,
199
+ created_at_from: Optional[Union[str, datetime]] = None,
200
+ created_at_to: Optional[Union[str, datetime]] = None,
177
201
  ) -> ApiResponse:
178
- """List machines with optional filtering."""
202
+ """List machines with optional filtering.
203
+
204
+ Args:
205
+ skip: Pagination skip
206
+ limit: Pagination limit
207
+ status: Machine status filter
208
+ created_at_from: Optional start datetime (UTC or ISO string)
209
+ created_at_to: Optional end datetime (UTC or ISO string)
210
+ """
179
211
  try:
180
212
  response = await list_machines_v1_machines_get.asyncio(
181
213
  client=self.client,
182
214
  skip=_to_unset_or_value(skip),
183
215
  limit=_to_unset_or_value(limit),
184
- status=status
216
+ status=status,
217
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
218
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
185
219
  )
186
220
  return ApiResponse(data=response)
187
221
  except Exception as e:
@@ -191,7 +225,10 @@ class MachinesAPI:
191
225
  self,
192
226
  skip: Optional[int] = None,
193
227
  limit: Optional[int] = None,
194
- status: Optional[MachineStatus] = None
228
+ status: Optional[MachineStatus] = None,
229
+ *,
230
+ created_at_from: Optional[Union[str, datetime]] = None,
231
+ created_at_to: Optional[Union[str, datetime]] = None,
195
232
  ) -> ApiResponse:
196
233
  """List machines with optional filtering (synchronous)."""
197
234
  try:
@@ -199,7 +236,9 @@ class MachinesAPI:
199
236
  client=self.client,
200
237
  skip=_to_unset_or_value(skip),
201
238
  limit=_to_unset_or_value(limit),
202
- status=status
239
+ status=status,
240
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
241
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
203
242
  )
204
243
  return ApiResponse(data=response)
205
244
  except Exception as e:
@@ -595,25 +634,60 @@ class WorkflowsAPI:
595
634
  def __init__(self, client: AuthenticatedClient):
596
635
  self.client = client
597
636
 
598
- async def list(self, skip: Optional[int] = None, limit: Optional[int] = None) -> ApiResponse:
599
- """List workflows."""
637
+ async def list(
638
+ self,
639
+ skip: Optional[int] = None,
640
+ limit: Optional[int] = None,
641
+ *,
642
+ created_at_from: Optional[Union[str, datetime]] = None,
643
+ created_at_to: Optional[Union[str, datetime]] = None,
644
+ updated_at_from: Optional[Union[str, datetime]] = None,
645
+ updated_at_to: Optional[Union[str, datetime]] = None,
646
+ ) -> ApiResponse:
647
+ """List workflows with optional date-time filtering.
648
+
649
+ Args:
650
+ skip: Pagination skip
651
+ limit: Pagination limit
652
+ created_at_from: Start datetime for created_at filter (UTC or ISO)
653
+ created_at_to: End datetime for created_at filter (UTC or ISO)
654
+ updated_at_from: Start datetime for updated_at filter (UTC or ISO)
655
+ updated_at_to: End datetime for updated_at filter (UTC or ISO)
656
+ """
600
657
  try:
601
658
  response = await list_workflows_v1_workflows_get.asyncio(
602
659
  client=self.client,
603
660
  skip=_to_unset_or_value(skip),
604
- limit=_to_unset_or_value(limit)
661
+ limit=_to_unset_or_value(limit),
662
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
663
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
664
+ updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
665
+ updated_at_to=_to_unset_or_value(_to_iso_utc_str(updated_at_to)),
605
666
  )
606
667
  return ApiResponse(data=response)
607
668
  except Exception as e:
608
669
  return ApiResponse(error=e)
609
670
 
610
- def list_sync(self, skip: Optional[int] = None, limit: Optional[int] = None) -> ApiResponse:
611
- """List workflows (synchronous)."""
671
+ def list_sync(
672
+ self,
673
+ skip: Optional[int] = None,
674
+ limit: Optional[int] = None,
675
+ *,
676
+ created_at_from: Optional[Union[str, datetime]] = None,
677
+ created_at_to: Optional[Union[str, datetime]] = None,
678
+ updated_at_from: Optional[Union[str, datetime]] = None,
679
+ updated_at_to: Optional[Union[str, datetime]] = None,
680
+ ) -> ApiResponse:
681
+ """List workflows (synchronous) with optional date-time filtering."""
612
682
  try:
613
683
  response = list_workflows_v1_workflows_get.sync(
614
684
  client=self.client,
615
685
  skip=_to_unset_or_value(skip),
616
- limit=_to_unset_or_value(limit)
686
+ limit=_to_unset_or_value(limit),
687
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
688
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
689
+ updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
690
+ updated_at_to=_to_unset_or_value(_to_iso_utc_str(updated_at_to)),
617
691
  )
618
692
  return ApiResponse(data=response)
619
693
  except Exception as e:
@@ -722,7 +796,10 @@ class RunsAPI:
722
796
  limit: Optional[int] = None,
723
797
  status: Optional[RunStatus] = None,
724
798
  workflow_id: Optional[str] = None,
725
- machine_id: Optional[str] = None
799
+ machine_id: Optional[str] = None,
800
+ *,
801
+ created_at_from: Optional[Union[str, datetime]] = None,
802
+ created_at_to: Optional[Union[str, datetime]] = None,
726
803
  ) -> ApiResponse:
727
804
  """List runs with optional filtering."""
728
805
  try:
@@ -732,7 +809,9 @@ class RunsAPI:
732
809
  limit=_to_unset_or_value(limit),
733
810
  status=status,
734
811
  workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
735
- machine_id=_to_uuid(machine_id) if machine_id else UNSET
812
+ machine_id=_to_uuid(machine_id) if machine_id else UNSET,
813
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
814
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
736
815
  )
737
816
  return ApiResponse(data=response)
738
817
  except Exception as e:
@@ -744,7 +823,10 @@ class RunsAPI:
744
823
  limit: Optional[int] = None,
745
824
  status: Optional[RunStatus] = None,
746
825
  workflow_id: Optional[str] = None,
747
- machine_id: Optional[str] = None
826
+ machine_id: Optional[str] = None,
827
+ *,
828
+ created_at_from: Optional[Union[str, datetime]] = None,
829
+ created_at_to: Optional[Union[str, datetime]] = None,
748
830
  ) -> ApiResponse:
749
831
  """List runs with optional filtering (synchronous)."""
750
832
  try:
@@ -754,7 +836,9 @@ class RunsAPI:
754
836
  limit=_to_unset_or_value(limit),
755
837
  status=status,
756
838
  workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
757
- machine_id=_to_uuid(machine_id) if machine_id else UNSET
839
+ machine_id=_to_uuid(machine_id) if machine_id else UNSET,
840
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
841
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
758
842
  )
759
843
  return ApiResponse(data=response)
760
844
  except Exception as e:
@@ -1026,7 +1110,12 @@ class TrajectoriesAPI:
1026
1110
  self,
1027
1111
  skip: Optional[int] = None,
1028
1112
  limit: Optional[int] = None,
1029
- workflow_id: Optional[str] = None
1113
+ workflow_id: Optional[str] = None,
1114
+ *,
1115
+ created_at_from: Optional[Union[str, datetime]] = None,
1116
+ created_at_to: Optional[Union[str, datetime]] = None,
1117
+ updated_at_from: Optional[Union[str, datetime]] = None,
1118
+ updated_at_to: Optional[Union[str, datetime]] = None,
1030
1119
  ) -> ApiResponse:
1031
1120
  """List trajectories with optional filtering."""
1032
1121
  try:
@@ -1034,7 +1123,11 @@ class TrajectoriesAPI:
1034
1123
  client=self.client,
1035
1124
  skip=_to_unset_or_value(skip),
1036
1125
  limit=_to_unset_or_value(limit),
1037
- workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET
1126
+ workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
1127
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
1128
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
1129
+ updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
1130
+ updated_at_to=_to_unset_or_value(_to_iso_utc_str(updated_at_to)),
1038
1131
  )
1039
1132
  return ApiResponse(data=response)
1040
1133
  except Exception as e:
@@ -1044,7 +1137,12 @@ class TrajectoriesAPI:
1044
1137
  self,
1045
1138
  skip: Optional[int] = None,
1046
1139
  limit: Optional[int] = None,
1047
- workflow_id: Optional[str] = None
1140
+ workflow_id: Optional[str] = None,
1141
+ *,
1142
+ created_at_from: Optional[Union[str, datetime]] = None,
1143
+ created_at_to: Optional[Union[str, datetime]] = None,
1144
+ updated_at_from: Optional[Union[str, datetime]] = None,
1145
+ updated_at_to: Optional[Union[str, datetime]] = None,
1048
1146
  ) -> ApiResponse:
1049
1147
  """List trajectories with optional filtering (synchronous)."""
1050
1148
  try:
@@ -1052,7 +1150,11 @@ class TrajectoriesAPI:
1052
1150
  client=self.client,
1053
1151
  skip=_to_unset_or_value(skip),
1054
1152
  limit=_to_unset_or_value(limit),
1055
- workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET
1153
+ workflow_id=_to_uuid(workflow_id) if workflow_id else UNSET,
1154
+ created_at_from=_to_unset_or_value(_to_iso_utc_str(created_at_from)),
1155
+ created_at_to=_to_unset_or_value(_to_iso_utc_str(created_at_to)),
1156
+ updated_at_from=_to_unset_or_value(_to_iso_utc_str(updated_at_from)),
1157
+ updated_at_to=_to_unset_or_value(_to_iso_utc_str(updated_at_to)),
1056
1158
  )
1057
1159
  return ApiResponse(data=response)
1058
1160
  except Exception as e:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: cyberdesk
3
- Version: 2.1.0
3
+ Version: 2.1.2
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=LDnOjNlOAyCgJyfbi3tJb33gX4LZd6fWsl4u1Lbi9Uk,1157
2
- cyberdesk/client.py,sha256=GJdoZ8XS2xaQt6zMJY0JlYVpk_CDhmPRusFBvGuE0uk,56793
3
- cyberdesk-2.1.0.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
1
+ cyberdesk/__init__.py,sha256=gDbfuhUTvj2DG0bjveDGBwULcF29nyGiI0mgq6oG4tw,1157
2
+ cyberdesk/client.py,sha256=uRclPvQCGqpToajKZxDoam_97H3edH1SDMeui2HiN6Y,62002
3
+ cyberdesk-2.1.2.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
@@ -36,7 +36,7 @@ openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_po
36
36
  openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py,sha256=-P8TqtFvPBL47vjx6cpaFNugHGOWirzSHPMzJxHCT1w,4584
37
37
  openapi_client/cyberdesk_cloud_client/api/machines/get_machine_pools_v1_machines_machine_id_pools_get.py,sha256=oqAf2YGONto0zV9pB3fnBX3B9S6fSKGmO5Y7V0nI6jY,4548
38
38
  openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py,sha256=ygavJyYWH59YYO9nwjWItmjYxNf3-jer138RUqscFpM,4502
39
- openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py,sha256=fD9qvJ4MwjrZPqCDRwLO0dy7emSNSczXTSrplx_TjWE,6499
39
+ openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py,sha256=Viw1xwNcnPMi1hdt_g2zlh_ayRpOYJmz8cm2NYKYHls,9299
40
40
  openapi_client/cyberdesk_cloud_client/api/machines/update_machine_pools_v1_machines_machine_id_pools_put.py,sha256=L7EUPJh-f3fLlIp7j7D6TDriKG2SzjlT7XCkhx3HkrU,5363
41
41
  openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py,sha256=8dqEUZaTMLAIbDSrZ7lzAHsU_CecWkzpoSwVoZ5aTMk,5446
42
42
  openapi_client/cyberdesk_cloud_client/api/pools/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
@@ -66,7 +66,7 @@ openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_pos
66
66
  openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py,sha256=GhCe-A0JxVWvTgzA4AyKEJQOlem0uzttLmXBxRLlUys,5451
67
67
  openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py,sha256=dOGd7lAPd9SBn9-13zhTx-wTtM6YQvT3WspjIQjOhHg,4428
68
68
  openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py,sha256=4mPvnOtAICVqzyXbD5Gdtqq_f1ardg7WpseT8RI3mwQ,4594
69
- openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py,sha256=CXGk9-yOCaB1tlqa6VXhmi9IghXGi_MYTZJ5zzW6NdQ,8630
69
+ openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py,sha256=_xiQyKovzQOwvesQH1lwid0zh1ZCGIimsOdJFUB21BI,11398
70
70
  openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py,sha256=8m2VaIjCilDkmkzgZ1D7JfNScDqgNRheaaUcuMqPibQ,5182
71
71
  openapi_client/cyberdesk_cloud_client/api/test/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
72
72
  openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py,sha256=sxmvHugxdpK3jb8jmjUfo-pbzmmNU92C-Ze8quxSWC8,4642
@@ -75,14 +75,14 @@ openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_traj
75
75
  openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py,sha256=uvWcVq-VsklflJd47OKsYszIXNFPu0YCAADo8NHmTR4,4366
76
76
  openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py,sha256=kFsYg3Jx13x56TrHCVuM7yzPBWKVBwZPklSxqELx1Fc,5026
77
77
  openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py,sha256=d3cTp_hEThXejqxsdnRg1QhVoSMGMO1cLdeUG1vy7oo,4883
78
- openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py,sha256=1Px0RjH7Bjse4yXKjGJ04fa5RvFioy2XVyAvI5QBdFo,6833
78
+ openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py,sha256=kcpnHm4rOpocEE90PibDFRlOIQhgVYl96IjY4bdHh9k,12481
79
79
  openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py,sha256=s3S6I24Tsf1nTByOf3bNw88WAfo6ogdo_PG7AjDbl-Q,5596
80
80
  openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
81
81
  openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py,sha256=b_N1b5ujzuKuhgnlqRQdU4LB_aBSBcR0kl06ZZOJaJc,4836
82
82
  openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py,sha256=-bCfjktthEwKL73PpLWb8qVjFPpBcqhjOcVii3wULGs,4559
83
83
  openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py,sha256=a2avmbv5jnLkN98aPymmnUSBWk5ub-e-7Zq0BJkgqnQ,4546
84
84
  openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py,sha256=ax_5V-lIClvOxr50eXSIAPbyhWP-cS4a4DXzwdxkVYs,5889
85
- openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py,sha256=uubsZpnk8T9NGpx0IFmSkPOpIg3ozBCeZ_ms2D1yZ2c,5658
85
+ openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py,sha256=Aszxh1BlUuRqMHjT7lvZf8g6kDCcNUZtuwoJqhDOwlQ,11258
86
86
  openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py,sha256=K_tuO6s_FyM8MUOck5AuX_RNIeYqCQcfYx1aDg9xwhE,5737
87
87
  openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=0ugs0zih1w9kwt_QLTVvvaEsPMioEojAgMJ0RfLKRS0,8891
88
88
  openapi_client/cyberdesk_cloud_client/models/attachment_type.py,sha256=zqPOsSd2AmxGNqb5HQ6ZYBAYL8k-0UbWHhfAJYNHoro,161
@@ -134,10 +134,10 @@ openapi_client/cyberdesk_cloud_client/models/run_attachment_create.py,sha256=w58
134
134
  openapi_client/cyberdesk_cloud_client/models/run_attachment_download_url_response.py,sha256=CUeh3Zas29uwfpH5oMbQ_hhkpsZ_RH7ZA_RyfRsf8mY,1864
135
135
  openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py,sha256=_K4POw4eH_5wYbu8lqH1sHc3oMXFBDPtcqWfkBx3z68,7371
136
136
  openapi_client/cyberdesk_cloud_client/models/run_attachment_update.py,sha256=rGXcB21waSTXG0-mt0XhNcwoJI1PhBpBDUkLfp8mM-0,2573
137
- openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py,sha256=nSMhD62M0kKgpSUTYq0l5WUHytB-p2a3-2Q4RHmxK-s,7908
137
+ openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py,sha256=CyZJONbhXWLndS_Mh1tx53eGh9qSz4qoiaI53N-CvJs,7951
138
138
  openapi_client/cyberdesk_cloud_client/models/run_bulk_create_input_values_type_0.py,sha256=JxGOOYKueFx5NtvnXgf9z_sXbMByQrsjjQ3AmU8qG30,1305
139
139
  openapi_client/cyberdesk_cloud_client/models/run_bulk_create_response.py,sha256=N9sMykvm6pC2fMMH_XVQI8wVc6-53qAHMb_qbNBo9-c,2886
140
- openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=LPu8C9Ug65ZA2YKTwIWtJFpa7FXGp4OOYeQ7DN2WVDQ,7641
140
+ openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=C_l48nK5DhWNNdjZ7pGQkiquP57lmNj4KI1pklpwhco,7684
141
141
  openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py,sha256=APV4O0GduU3fhHoJHMMOBk-h92Hf21c1ZU-pIsJoZpg,1282
142
142
  openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=H9rKD3JYcOy8Lp_IB6eOYXw5Nx7K11wRNVi4xJZ_NuU,13779
143
143
  openapi_client/cyberdesk_cloud_client/models/run_response_input_values_type_0.py,sha256=NpMqT3qaMrLGA7mHBjvtS1fnMGc5zxwWLoFWunjjupA,1292
@@ -163,7 +163,7 @@ openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=Z7XG8k1js
163
163
  openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=Z4ABOHurTjNfQh1odBbEZ5YW3agm63QklKdE-gzu6dQ,8539
164
164
  openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
165
165
  openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=_zMo2mJbYdKILygBXwebAD37SJJCUZOTkJkMOCzeNTA,4439
166
- cyberdesk-2.1.0.dist-info/METADATA,sha256=M6-y0V107h3PXcoxREbAilLffXT9lsO4NxVsdB8F7vY,6791
167
- cyberdesk-2.1.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
168
- cyberdesk-2.1.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
169
- cyberdesk-2.1.0.dist-info/RECORD,,
166
+ cyberdesk-2.1.2.dist-info/METADATA,sha256=n8OWVXska1HdRSVA-n27qw07AgNyPCDoMe56BGJDNZk,6791
167
+ cyberdesk-2.1.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
168
+ cyberdesk-2.1.2.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
169
+ cyberdesk-2.1.2.dist-info/RECORD,,
@@ -1,3 +1,4 @@
1
+ import datetime
1
2
  from http import HTTPStatus
2
3
  from typing import Any, Optional, Union
3
4
 
@@ -14,6 +15,8 @@ from ...types import UNSET, Response, Unset
14
15
  def _get_kwargs(
15
16
  *,
16
17
  status: Union[MachineStatus, None, Unset] = UNSET,
18
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
19
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
17
20
  skip: Union[Unset, int] = 0,
18
21
  limit: Union[Unset, int] = 100,
19
22
  ) -> dict[str, Any]:
@@ -28,6 +31,24 @@ def _get_kwargs(
28
31
  json_status = status
29
32
  params["status"] = json_status
30
33
 
34
+ json_created_at_from: Union[None, Unset, str]
35
+ if isinstance(created_at_from, Unset):
36
+ json_created_at_from = UNSET
37
+ elif isinstance(created_at_from, datetime.datetime):
38
+ json_created_at_from = created_at_from.isoformat()
39
+ else:
40
+ json_created_at_from = created_at_from
41
+ params["created_at_from"] = json_created_at_from
42
+
43
+ json_created_at_to: Union[None, Unset, str]
44
+ if isinstance(created_at_to, Unset):
45
+ json_created_at_to = UNSET
46
+ elif isinstance(created_at_to, datetime.datetime):
47
+ json_created_at_to = created_at_to.isoformat()
48
+ else:
49
+ json_created_at_to = created_at_to
50
+ params["created_at_to"] = json_created_at_to
51
+
31
52
  params["skip"] = skip
32
53
 
33
54
  params["limit"] = limit
@@ -75,6 +96,8 @@ def sync_detailed(
75
96
  *,
76
97
  client: AuthenticatedClient,
77
98
  status: Union[MachineStatus, None, Unset] = UNSET,
99
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
100
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
78
101
  skip: Union[Unset, int] = 0,
79
102
  limit: Union[Unset, int] = 100,
80
103
  ) -> Response[Union[HTTPValidationError, PaginatedResponseMachineResponse]]:
@@ -86,6 +109,10 @@ def sync_detailed(
86
109
 
87
110
  Args:
88
111
  status (Union[MachineStatus, None, Unset]): Filter by machine status
112
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter machines created at or
113
+ after this ISO timestamp (UTC)
114
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter machines created at or
115
+ before this ISO timestamp (UTC)
89
116
  skip (Union[Unset, int]): Default: 0.
90
117
  limit (Union[Unset, int]): Default: 100.
91
118
 
@@ -99,6 +126,8 @@ def sync_detailed(
99
126
 
100
127
  kwargs = _get_kwargs(
101
128
  status=status,
129
+ created_at_from=created_at_from,
130
+ created_at_to=created_at_to,
102
131
  skip=skip,
103
132
  limit=limit,
104
133
  )
@@ -114,6 +143,8 @@ def sync(
114
143
  *,
115
144
  client: AuthenticatedClient,
116
145
  status: Union[MachineStatus, None, Unset] = UNSET,
146
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
147
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
117
148
  skip: Union[Unset, int] = 0,
118
149
  limit: Union[Unset, int] = 100,
119
150
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseMachineResponse]]:
@@ -125,6 +156,10 @@ def sync(
125
156
 
126
157
  Args:
127
158
  status (Union[MachineStatus, None, Unset]): Filter by machine status
159
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter machines created at or
160
+ after this ISO timestamp (UTC)
161
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter machines created at or
162
+ before this ISO timestamp (UTC)
128
163
  skip (Union[Unset, int]): Default: 0.
129
164
  limit (Union[Unset, int]): Default: 100.
130
165
 
@@ -139,6 +174,8 @@ def sync(
139
174
  return sync_detailed(
140
175
  client=client,
141
176
  status=status,
177
+ created_at_from=created_at_from,
178
+ created_at_to=created_at_to,
142
179
  skip=skip,
143
180
  limit=limit,
144
181
  ).parsed
@@ -148,6 +185,8 @@ async def asyncio_detailed(
148
185
  *,
149
186
  client: AuthenticatedClient,
150
187
  status: Union[MachineStatus, None, Unset] = UNSET,
188
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
189
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
151
190
  skip: Union[Unset, int] = 0,
152
191
  limit: Union[Unset, int] = 100,
153
192
  ) -> Response[Union[HTTPValidationError, PaginatedResponseMachineResponse]]:
@@ -159,6 +198,10 @@ async def asyncio_detailed(
159
198
 
160
199
  Args:
161
200
  status (Union[MachineStatus, None, Unset]): Filter by machine status
201
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter machines created at or
202
+ after this ISO timestamp (UTC)
203
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter machines created at or
204
+ before this ISO timestamp (UTC)
162
205
  skip (Union[Unset, int]): Default: 0.
163
206
  limit (Union[Unset, int]): Default: 100.
164
207
 
@@ -172,6 +215,8 @@ async def asyncio_detailed(
172
215
 
173
216
  kwargs = _get_kwargs(
174
217
  status=status,
218
+ created_at_from=created_at_from,
219
+ created_at_to=created_at_to,
175
220
  skip=skip,
176
221
  limit=limit,
177
222
  )
@@ -185,6 +230,8 @@ async def asyncio(
185
230
  *,
186
231
  client: AuthenticatedClient,
187
232
  status: Union[MachineStatus, None, Unset] = UNSET,
233
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
234
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
188
235
  skip: Union[Unset, int] = 0,
189
236
  limit: Union[Unset, int] = 100,
190
237
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseMachineResponse]]:
@@ -196,6 +243,10 @@ async def asyncio(
196
243
 
197
244
  Args:
198
245
  status (Union[MachineStatus, None, Unset]): Filter by machine status
246
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter machines created at or
247
+ after this ISO timestamp (UTC)
248
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter machines created at or
249
+ before this ISO timestamp (UTC)
199
250
  skip (Union[Unset, int]): Default: 0.
200
251
  limit (Union[Unset, int]): Default: 100.
201
252
 
@@ -211,6 +262,8 @@ async def asyncio(
211
262
  await asyncio_detailed(
212
263
  client=client,
213
264
  status=status,
265
+ created_at_from=created_at_from,
266
+ created_at_to=created_at_to,
214
267
  skip=skip,
215
268
  limit=limit,
216
269
  )
@@ -1,3 +1,4 @@
1
+ import datetime
1
2
  from http import HTTPStatus
2
3
  from typing import Any, Optional, Union
3
4
  from uuid import UUID
@@ -17,6 +18,8 @@ def _get_kwargs(
17
18
  workflow_id: Union[None, UUID, Unset] = UNSET,
18
19
  machine_id: Union[None, UUID, Unset] = UNSET,
19
20
  status: Union[None, RunStatus, Unset] = UNSET,
21
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
22
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
20
23
  skip: Union[Unset, int] = 0,
21
24
  limit: Union[Unset, int] = 100,
22
25
  ) -> dict[str, Any]:
@@ -49,6 +52,24 @@ def _get_kwargs(
49
52
  json_status = status
50
53
  params["status"] = json_status
51
54
 
55
+ json_created_at_from: Union[None, Unset, str]
56
+ if isinstance(created_at_from, Unset):
57
+ json_created_at_from = UNSET
58
+ elif isinstance(created_at_from, datetime.datetime):
59
+ json_created_at_from = created_at_from.isoformat()
60
+ else:
61
+ json_created_at_from = created_at_from
62
+ params["created_at_from"] = json_created_at_from
63
+
64
+ json_created_at_to: Union[None, Unset, str]
65
+ if isinstance(created_at_to, Unset):
66
+ json_created_at_to = UNSET
67
+ elif isinstance(created_at_to, datetime.datetime):
68
+ json_created_at_to = created_at_to.isoformat()
69
+ else:
70
+ json_created_at_to = created_at_to
71
+ params["created_at_to"] = json_created_at_to
72
+
52
73
  params["skip"] = skip
53
74
 
54
75
  params["limit"] = limit
@@ -98,6 +119,8 @@ def sync_detailed(
98
119
  workflow_id: Union[None, UUID, Unset] = UNSET,
99
120
  machine_id: Union[None, UUID, Unset] = UNSET,
100
121
  status: Union[None, RunStatus, Unset] = UNSET,
122
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
123
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
101
124
  skip: Union[Unset, int] = 0,
102
125
  limit: Union[Unset, int] = 100,
103
126
  ) -> Response[Union[HTTPValidationError, PaginatedResponseRunResponse]]:
@@ -112,6 +135,10 @@ def sync_detailed(
112
135
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
113
136
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
114
137
  status (Union[None, RunStatus, Unset]): Filter by run status
138
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
139
+ this ISO timestamp (UTC)
140
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter runs created at or before
141
+ this ISO timestamp (UTC)
115
142
  skip (Union[Unset, int]): Default: 0.
116
143
  limit (Union[Unset, int]): Default: 100.
117
144
 
@@ -127,6 +154,8 @@ def sync_detailed(
127
154
  workflow_id=workflow_id,
128
155
  machine_id=machine_id,
129
156
  status=status,
157
+ created_at_from=created_at_from,
158
+ created_at_to=created_at_to,
130
159
  skip=skip,
131
160
  limit=limit,
132
161
  )
@@ -144,6 +173,8 @@ def sync(
144
173
  workflow_id: Union[None, UUID, Unset] = UNSET,
145
174
  machine_id: Union[None, UUID, Unset] = UNSET,
146
175
  status: Union[None, RunStatus, Unset] = UNSET,
176
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
177
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
147
178
  skip: Union[Unset, int] = 0,
148
179
  limit: Union[Unset, int] = 100,
149
180
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseRunResponse]]:
@@ -158,6 +189,10 @@ def sync(
158
189
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
159
190
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
160
191
  status (Union[None, RunStatus, Unset]): Filter by run status
192
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
193
+ this ISO timestamp (UTC)
194
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter runs created at or before
195
+ this ISO timestamp (UTC)
161
196
  skip (Union[Unset, int]): Default: 0.
162
197
  limit (Union[Unset, int]): Default: 100.
163
198
 
@@ -174,6 +209,8 @@ def sync(
174
209
  workflow_id=workflow_id,
175
210
  machine_id=machine_id,
176
211
  status=status,
212
+ created_at_from=created_at_from,
213
+ created_at_to=created_at_to,
177
214
  skip=skip,
178
215
  limit=limit,
179
216
  ).parsed
@@ -185,6 +222,8 @@ async def asyncio_detailed(
185
222
  workflow_id: Union[None, UUID, Unset] = UNSET,
186
223
  machine_id: Union[None, UUID, Unset] = UNSET,
187
224
  status: Union[None, RunStatus, Unset] = UNSET,
225
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
226
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
188
227
  skip: Union[Unset, int] = 0,
189
228
  limit: Union[Unset, int] = 100,
190
229
  ) -> Response[Union[HTTPValidationError, PaginatedResponseRunResponse]]:
@@ -199,6 +238,10 @@ async def asyncio_detailed(
199
238
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
200
239
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
201
240
  status (Union[None, RunStatus, Unset]): Filter by run status
241
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
242
+ this ISO timestamp (UTC)
243
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter runs created at or before
244
+ this ISO timestamp (UTC)
202
245
  skip (Union[Unset, int]): Default: 0.
203
246
  limit (Union[Unset, int]): Default: 100.
204
247
 
@@ -214,6 +257,8 @@ async def asyncio_detailed(
214
257
  workflow_id=workflow_id,
215
258
  machine_id=machine_id,
216
259
  status=status,
260
+ created_at_from=created_at_from,
261
+ created_at_to=created_at_to,
217
262
  skip=skip,
218
263
  limit=limit,
219
264
  )
@@ -229,6 +274,8 @@ async def asyncio(
229
274
  workflow_id: Union[None, UUID, Unset] = UNSET,
230
275
  machine_id: Union[None, UUID, Unset] = UNSET,
231
276
  status: Union[None, RunStatus, Unset] = UNSET,
277
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
278
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
232
279
  skip: Union[Unset, int] = 0,
233
280
  limit: Union[Unset, int] = 100,
234
281
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseRunResponse]]:
@@ -243,6 +290,10 @@ async def asyncio(
243
290
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
244
291
  machine_id (Union[None, UUID, Unset]): Filter by machine ID
245
292
  status (Union[None, RunStatus, Unset]): Filter by run status
293
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter runs created at or after
294
+ this ISO timestamp (UTC)
295
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter runs created at or before
296
+ this ISO timestamp (UTC)
246
297
  skip (Union[Unset, int]): Default: 0.
247
298
  limit (Union[Unset, int]): Default: 100.
248
299
 
@@ -260,6 +311,8 @@ async def asyncio(
260
311
  workflow_id=workflow_id,
261
312
  machine_id=machine_id,
262
313
  status=status,
314
+ created_at_from=created_at_from,
315
+ created_at_to=created_at_to,
263
316
  skip=skip,
264
317
  limit=limit,
265
318
  )
@@ -1,3 +1,4 @@
1
+ import datetime
1
2
  from http import HTTPStatus
2
3
  from typing import Any, Optional, Union
3
4
  from uuid import UUID
@@ -14,6 +15,10 @@ from ...types import UNSET, Response, Unset
14
15
  def _get_kwargs(
15
16
  *,
16
17
  workflow_id: Union[None, UUID, Unset] = UNSET,
18
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
19
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
20
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
21
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
17
22
  skip: Union[Unset, int] = 0,
18
23
  limit: Union[Unset, int] = 100,
19
24
  ) -> dict[str, Any]:
@@ -28,6 +33,42 @@ def _get_kwargs(
28
33
  json_workflow_id = workflow_id
29
34
  params["workflow_id"] = json_workflow_id
30
35
 
36
+ json_created_at_from: Union[None, Unset, str]
37
+ if isinstance(created_at_from, Unset):
38
+ json_created_at_from = UNSET
39
+ elif isinstance(created_at_from, datetime.datetime):
40
+ json_created_at_from = created_at_from.isoformat()
41
+ else:
42
+ json_created_at_from = created_at_from
43
+ params["created_at_from"] = json_created_at_from
44
+
45
+ json_created_at_to: Union[None, Unset, str]
46
+ if isinstance(created_at_to, Unset):
47
+ json_created_at_to = UNSET
48
+ elif isinstance(created_at_to, datetime.datetime):
49
+ json_created_at_to = created_at_to.isoformat()
50
+ else:
51
+ json_created_at_to = created_at_to
52
+ params["created_at_to"] = json_created_at_to
53
+
54
+ json_updated_at_from: Union[None, Unset, str]
55
+ if isinstance(updated_at_from, Unset):
56
+ json_updated_at_from = UNSET
57
+ elif isinstance(updated_at_from, datetime.datetime):
58
+ json_updated_at_from = updated_at_from.isoformat()
59
+ else:
60
+ json_updated_at_from = updated_at_from
61
+ params["updated_at_from"] = json_updated_at_from
62
+
63
+ json_updated_at_to: Union[None, Unset, str]
64
+ if isinstance(updated_at_to, Unset):
65
+ json_updated_at_to = UNSET
66
+ elif isinstance(updated_at_to, datetime.datetime):
67
+ json_updated_at_to = updated_at_to.isoformat()
68
+ else:
69
+ json_updated_at_to = updated_at_to
70
+ params["updated_at_to"] = json_updated_at_to
71
+
31
72
  params["skip"] = skip
32
73
 
33
74
  params["limit"] = limit
@@ -75,6 +116,10 @@ def sync_detailed(
75
116
  *,
76
117
  client: AuthenticatedClient,
77
118
  workflow_id: Union[None, UUID, Unset] = UNSET,
119
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
120
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
121
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
122
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
78
123
  skip: Union[Unset, int] = 0,
79
124
  limit: Union[Unset, int] = 100,
80
125
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
@@ -87,6 +132,14 @@ def sync_detailed(
87
132
 
88
133
  Args:
89
134
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
135
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
136
+ after this ISO timestamp (UTC)
137
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
138
+ before this ISO timestamp (UTC)
139
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
140
+ after this ISO timestamp (UTC)
141
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
142
+ before this ISO timestamp (UTC)
90
143
  skip (Union[Unset, int]): Default: 0.
91
144
  limit (Union[Unset, int]): Default: 100.
92
145
 
@@ -100,6 +153,10 @@ def sync_detailed(
100
153
 
101
154
  kwargs = _get_kwargs(
102
155
  workflow_id=workflow_id,
156
+ created_at_from=created_at_from,
157
+ created_at_to=created_at_to,
158
+ updated_at_from=updated_at_from,
159
+ updated_at_to=updated_at_to,
103
160
  skip=skip,
104
161
  limit=limit,
105
162
  )
@@ -115,6 +172,10 @@ def sync(
115
172
  *,
116
173
  client: AuthenticatedClient,
117
174
  workflow_id: Union[None, UUID, Unset] = UNSET,
175
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
176
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
177
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
178
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
118
179
  skip: Union[Unset, int] = 0,
119
180
  limit: Union[Unset, int] = 100,
120
181
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
@@ -127,6 +188,14 @@ def sync(
127
188
 
128
189
  Args:
129
190
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
191
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
192
+ after this ISO timestamp (UTC)
193
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
194
+ before this ISO timestamp (UTC)
195
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
196
+ after this ISO timestamp (UTC)
197
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
198
+ before this ISO timestamp (UTC)
130
199
  skip (Union[Unset, int]): Default: 0.
131
200
  limit (Union[Unset, int]): Default: 100.
132
201
 
@@ -141,6 +210,10 @@ def sync(
141
210
  return sync_detailed(
142
211
  client=client,
143
212
  workflow_id=workflow_id,
213
+ created_at_from=created_at_from,
214
+ created_at_to=created_at_to,
215
+ updated_at_from=updated_at_from,
216
+ updated_at_to=updated_at_to,
144
217
  skip=skip,
145
218
  limit=limit,
146
219
  ).parsed
@@ -150,6 +223,10 @@ async def asyncio_detailed(
150
223
  *,
151
224
  client: AuthenticatedClient,
152
225
  workflow_id: Union[None, UUID, Unset] = UNSET,
226
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
227
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
228
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
229
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
153
230
  skip: Union[Unset, int] = 0,
154
231
  limit: Union[Unset, int] = 100,
155
232
  ) -> Response[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
@@ -162,6 +239,14 @@ async def asyncio_detailed(
162
239
 
163
240
  Args:
164
241
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
242
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
243
+ after this ISO timestamp (UTC)
244
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
245
+ before this ISO timestamp (UTC)
246
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
247
+ after this ISO timestamp (UTC)
248
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
249
+ before this ISO timestamp (UTC)
165
250
  skip (Union[Unset, int]): Default: 0.
166
251
  limit (Union[Unset, int]): Default: 100.
167
252
 
@@ -175,6 +260,10 @@ async def asyncio_detailed(
175
260
 
176
261
  kwargs = _get_kwargs(
177
262
  workflow_id=workflow_id,
263
+ created_at_from=created_at_from,
264
+ created_at_to=created_at_to,
265
+ updated_at_from=updated_at_from,
266
+ updated_at_to=updated_at_to,
178
267
  skip=skip,
179
268
  limit=limit,
180
269
  )
@@ -188,6 +277,10 @@ async def asyncio(
188
277
  *,
189
278
  client: AuthenticatedClient,
190
279
  workflow_id: Union[None, UUID, Unset] = UNSET,
280
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
281
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
282
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
283
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
191
284
  skip: Union[Unset, int] = 0,
192
285
  limit: Union[Unset, int] = 100,
193
286
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseTrajectoryResponse]]:
@@ -200,6 +293,14 @@ async def asyncio(
200
293
 
201
294
  Args:
202
295
  workflow_id (Union[None, UUID, Unset]): Filter by workflow ID
296
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
297
+ after this ISO timestamp (UTC)
298
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories created at or
299
+ before this ISO timestamp (UTC)
300
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
301
+ after this ISO timestamp (UTC)
302
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter trajectories updated at or
303
+ before this ISO timestamp (UTC)
203
304
  skip (Union[Unset, int]): Default: 0.
204
305
  limit (Union[Unset, int]): Default: 100.
205
306
 
@@ -215,6 +316,10 @@ async def asyncio(
215
316
  await asyncio_detailed(
216
317
  client=client,
217
318
  workflow_id=workflow_id,
319
+ created_at_from=created_at_from,
320
+ created_at_to=created_at_to,
321
+ updated_at_from=updated_at_from,
322
+ updated_at_to=updated_at_to,
218
323
  skip=skip,
219
324
  limit=limit,
220
325
  )
@@ -1,3 +1,4 @@
1
+ import datetime
1
2
  from http import HTTPStatus
2
3
  from typing import Any, Optional, Union
3
4
 
@@ -12,11 +13,51 @@ from ...types import UNSET, Response, Unset
12
13
 
13
14
  def _get_kwargs(
14
15
  *,
16
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
17
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
18
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
19
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
15
20
  skip: Union[Unset, int] = 0,
16
21
  limit: Union[Unset, int] = 100,
17
22
  ) -> dict[str, Any]:
18
23
  params: dict[str, Any] = {}
19
24
 
25
+ json_created_at_from: Union[None, Unset, str]
26
+ if isinstance(created_at_from, Unset):
27
+ json_created_at_from = UNSET
28
+ elif isinstance(created_at_from, datetime.datetime):
29
+ json_created_at_from = created_at_from.isoformat()
30
+ else:
31
+ json_created_at_from = created_at_from
32
+ params["created_at_from"] = json_created_at_from
33
+
34
+ json_created_at_to: Union[None, Unset, str]
35
+ if isinstance(created_at_to, Unset):
36
+ json_created_at_to = UNSET
37
+ elif isinstance(created_at_to, datetime.datetime):
38
+ json_created_at_to = created_at_to.isoformat()
39
+ else:
40
+ json_created_at_to = created_at_to
41
+ params["created_at_to"] = json_created_at_to
42
+
43
+ json_updated_at_from: Union[None, Unset, str]
44
+ if isinstance(updated_at_from, Unset):
45
+ json_updated_at_from = UNSET
46
+ elif isinstance(updated_at_from, datetime.datetime):
47
+ json_updated_at_from = updated_at_from.isoformat()
48
+ else:
49
+ json_updated_at_from = updated_at_from
50
+ params["updated_at_from"] = json_updated_at_from
51
+
52
+ json_updated_at_to: Union[None, Unset, str]
53
+ if isinstance(updated_at_to, Unset):
54
+ json_updated_at_to = UNSET
55
+ elif isinstance(updated_at_to, datetime.datetime):
56
+ json_updated_at_to = updated_at_to.isoformat()
57
+ else:
58
+ json_updated_at_to = updated_at_to
59
+ params["updated_at_to"] = json_updated_at_to
60
+
20
61
  params["skip"] = skip
21
62
 
22
63
  params["limit"] = limit
@@ -63,6 +104,10 @@ def _build_response(
63
104
  def sync_detailed(
64
105
  *,
65
106
  client: AuthenticatedClient,
107
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
108
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
109
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
110
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
66
111
  skip: Union[Unset, int] = 0,
67
112
  limit: Union[Unset, int] = 100,
68
113
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
@@ -73,6 +118,14 @@ def sync_detailed(
73
118
  Supports pagination and returns workflows ordered by updated_at descending.
74
119
 
75
120
  Args:
121
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter workflows created at or
122
+ after this ISO timestamp (UTC)
123
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter workflows created at or
124
+ before this ISO timestamp (UTC)
125
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
126
+ after this ISO timestamp (UTC)
127
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
128
+ before this ISO timestamp (UTC)
76
129
  skip (Union[Unset, int]): Default: 0.
77
130
  limit (Union[Unset, int]): Default: 100.
78
131
 
@@ -85,6 +138,10 @@ def sync_detailed(
85
138
  """
86
139
 
87
140
  kwargs = _get_kwargs(
141
+ created_at_from=created_at_from,
142
+ created_at_to=created_at_to,
143
+ updated_at_from=updated_at_from,
144
+ updated_at_to=updated_at_to,
88
145
  skip=skip,
89
146
  limit=limit,
90
147
  )
@@ -99,6 +156,10 @@ def sync_detailed(
99
156
  def sync(
100
157
  *,
101
158
  client: AuthenticatedClient,
159
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
160
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
161
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
162
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
102
163
  skip: Union[Unset, int] = 0,
103
164
  limit: Union[Unset, int] = 100,
104
165
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
@@ -109,6 +170,14 @@ def sync(
109
170
  Supports pagination and returns workflows ordered by updated_at descending.
110
171
 
111
172
  Args:
173
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter workflows created at or
174
+ after this ISO timestamp (UTC)
175
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter workflows created at or
176
+ before this ISO timestamp (UTC)
177
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
178
+ after this ISO timestamp (UTC)
179
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
180
+ before this ISO timestamp (UTC)
112
181
  skip (Union[Unset, int]): Default: 0.
113
182
  limit (Union[Unset, int]): Default: 100.
114
183
 
@@ -122,6 +191,10 @@ def sync(
122
191
 
123
192
  return sync_detailed(
124
193
  client=client,
194
+ created_at_from=created_at_from,
195
+ created_at_to=created_at_to,
196
+ updated_at_from=updated_at_from,
197
+ updated_at_to=updated_at_to,
125
198
  skip=skip,
126
199
  limit=limit,
127
200
  ).parsed
@@ -130,6 +203,10 @@ def sync(
130
203
  async def asyncio_detailed(
131
204
  *,
132
205
  client: AuthenticatedClient,
206
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
207
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
208
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
209
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
133
210
  skip: Union[Unset, int] = 0,
134
211
  limit: Union[Unset, int] = 100,
135
212
  ) -> Response[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
@@ -140,6 +217,14 @@ async def asyncio_detailed(
140
217
  Supports pagination and returns workflows ordered by updated_at descending.
141
218
 
142
219
  Args:
220
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter workflows created at or
221
+ after this ISO timestamp (UTC)
222
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter workflows created at or
223
+ before this ISO timestamp (UTC)
224
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
225
+ after this ISO timestamp (UTC)
226
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
227
+ before this ISO timestamp (UTC)
143
228
  skip (Union[Unset, int]): Default: 0.
144
229
  limit (Union[Unset, int]): Default: 100.
145
230
 
@@ -152,6 +237,10 @@ async def asyncio_detailed(
152
237
  """
153
238
 
154
239
  kwargs = _get_kwargs(
240
+ created_at_from=created_at_from,
241
+ created_at_to=created_at_to,
242
+ updated_at_from=updated_at_from,
243
+ updated_at_to=updated_at_to,
155
244
  skip=skip,
156
245
  limit=limit,
157
246
  )
@@ -164,6 +253,10 @@ async def asyncio_detailed(
164
253
  async def asyncio(
165
254
  *,
166
255
  client: AuthenticatedClient,
256
+ created_at_from: Union[None, Unset, datetime.datetime] = UNSET,
257
+ created_at_to: Union[None, Unset, datetime.datetime] = UNSET,
258
+ updated_at_from: Union[None, Unset, datetime.datetime] = UNSET,
259
+ updated_at_to: Union[None, Unset, datetime.datetime] = UNSET,
167
260
  skip: Union[Unset, int] = 0,
168
261
  limit: Union[Unset, int] = 100,
169
262
  ) -> Optional[Union[HTTPValidationError, PaginatedResponseWorkflowResponse]]:
@@ -174,6 +267,14 @@ async def asyncio(
174
267
  Supports pagination and returns workflows ordered by updated_at descending.
175
268
 
176
269
  Args:
270
+ created_at_from (Union[None, Unset, datetime.datetime]): Filter workflows created at or
271
+ after this ISO timestamp (UTC)
272
+ created_at_to (Union[None, Unset, datetime.datetime]): Filter workflows created at or
273
+ before this ISO timestamp (UTC)
274
+ updated_at_from (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
275
+ after this ISO timestamp (UTC)
276
+ updated_at_to (Union[None, Unset, datetime.datetime]): Filter workflows updated at or
277
+ before this ISO timestamp (UTC)
177
278
  skip (Union[Unset, int]): Default: 0.
178
279
  limit (Union[Unset, int]): Default: 100.
179
280
 
@@ -188,6 +289,10 @@ async def asyncio(
188
289
  return (
189
290
  await asyncio_detailed(
190
291
  client=client,
292
+ created_at_from=created_at_from,
293
+ created_at_to=created_at_to,
294
+ updated_at_from=updated_at_from,
295
+ updated_at_to=updated_at_to,
191
296
  skip=skip,
192
297
  limit=limit,
193
298
  )
@@ -24,8 +24,8 @@ class RunBulkCreate:
24
24
  count (int): Number of runs to create (max 1000)
25
25
  machine_id (Union[None, UUID, Unset]): Machine ID. If not provided, an available machine will be automatically
26
26
  selected.
27
- pool_ids (Union[None, Unset, list[UUID]]): Pool IDs to filter available machines. Machine must belong to at
28
- least one of these pools.
27
+ pool_ids (Union[None, Unset, list[UUID]]): Pool IDs to filter available machines. Machine must belong to all of
28
+ these pools (intersection). Ignored when machine_id is provided.
29
29
  input_values (Union['RunBulkCreateInputValuesType0', None, Unset]): Input values for workflow variables
30
30
  file_inputs (Union[None, Unset, list['FileInput']]): Files to upload to the machine
31
31
  """
@@ -23,8 +23,8 @@ class RunCreate:
23
23
  workflow_id (UUID):
24
24
  machine_id (Union[None, UUID, Unset]): Machine ID. If not provided, an available machine will be automatically
25
25
  selected.
26
- pool_ids (Union[None, Unset, list[UUID]]): Pool IDs to filter available machines. Machine must belong to at
27
- least one of these pools.
26
+ pool_ids (Union[None, Unset, list[UUID]]): Pool IDs to filter available machines. Machine must belong to all of
27
+ these pools (intersection). Ignored when machine_id is provided.
28
28
  input_values (Union['RunCreateInputValuesType0', None, Unset]): Input values for workflow variables
29
29
  file_inputs (Union[None, Unset, list['FileInput']]): Files to upload to the machine
30
30
  """