cyberdesk 0.2.7__py3-none-any.whl → 1.2.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 (228) hide show
  1. cyberdesk/__init__.py +45 -7
  2. cyberdesk/client.py +779 -70
  3. cyberdesk-1.2.0.dist-info/METADATA +274 -0
  4. cyberdesk-1.2.0.dist-info/RECORD +113 -0
  5. {cyberdesk-0.2.7.dist-info → cyberdesk-1.2.0.dist-info}/WHEEL +1 -1
  6. openapi_client/{api_reference_client → cyberdesk_cloud_client}/__init__.py +8 -8
  7. openapi_client/{api_reference_client → cyberdesk_cloud_client}/api/__init__.py +1 -1
  8. openapi_client/{api_reference_client/api/desktop → cyberdesk_cloud_client/api/computer}/__init__.py +1 -1
  9. openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +163 -0
  10. openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +163 -0
  11. openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +158 -0
  12. openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +183 -0
  13. openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +183 -0
  14. openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +187 -0
  15. openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +183 -0
  16. openapi_client/cyberdesk_cloud_client/api/connections/__init__.py +1 -0
  17. openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +180 -0
  18. openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +170 -0
  19. openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +172 -0
  20. openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +244 -0
  21. openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +198 -0
  22. openapi_client/cyberdesk_cloud_client/api/default/__init__.py +1 -0
  23. openapi_client/cyberdesk_cloud_client/api/default/root_get.py +83 -0
  24. openapi_client/cyberdesk_cloud_client/api/health/__init__.py +1 -0
  25. openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +146 -0
  26. openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +144 -0
  27. openapi_client/cyberdesk_cloud_client/api/machines/__init__.py +1 -0
  28. openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +180 -0
  29. openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +174 -0
  30. openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +172 -0
  31. openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +217 -0
  32. openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +198 -0
  33. openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py +1 -0
  34. openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +184 -0
  35. openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +170 -0
  36. openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +172 -0
  37. openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +257 -0
  38. openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +202 -0
  39. openapi_client/cyberdesk_cloud_client/api/runs/__init__.py +1 -0
  40. openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +188 -0
  41. openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +170 -0
  42. openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +176 -0
  43. openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +266 -0
  44. openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +202 -0
  45. openapi_client/cyberdesk_cloud_client/api/test/__init__.py +1 -0
  46. openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +156 -0
  47. openapi_client/cyberdesk_cloud_client/api/trajectories/__init__.py +1 -0
  48. openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +184 -0
  49. openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +170 -0
  50. openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +176 -0
  51. openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +176 -0
  52. openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +221 -0
  53. openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +198 -0
  54. openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py +1 -0
  55. openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +180 -0
  56. openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +174 -0
  57. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +172 -0
  58. openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +185 -0
  59. openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +194 -0
  60. openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +202 -0
  61. openapi_client/{api_reference_client → cyberdesk_cloud_client}/client.py +268 -268
  62. openapi_client/{api_reference_client → cyberdesk_cloud_client}/errors.py +16 -16
  63. openapi_client/cyberdesk_cloud_client/models/__init__.py +105 -0
  64. openapi_client/cyberdesk_cloud_client/models/connection_create.py +111 -0
  65. openapi_client/cyberdesk_cloud_client/models/connection_response.py +171 -0
  66. openapi_client/{api_reference_client/models/get_v1_desktop_id_response_404_status.py → cyberdesk_cloud_client/models/connection_status.py} +10 -8
  67. openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +44 -0
  68. openapi_client/{api_reference_client/models/post_v1_desktop_id_bash_action_body.py → cyberdesk_cloud_client/models/display_dimensions.py} +67 -59
  69. openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +44 -0
  70. openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +44 -0
  71. openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +44 -0
  72. openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +75 -0
  73. openapi_client/{api_reference_client/models/post_v1_desktop_body.py → cyberdesk_cloud_client/models/keyboard_key_request.py} +59 -59
  74. openapi_client/{api_reference_client/models/post_v1_desktop_id_stop_response_200.py → cyberdesk_cloud_client/models/keyboard_type_request.py} +59 -62
  75. openapi_client/cyberdesk_cloud_client/models/machine_create.py +130 -0
  76. openapi_client/cyberdesk_cloud_client/models/machine_response.py +182 -0
  77. openapi_client/{api_reference_client/models/get_v1_desktop_id_response_403_status.py → cyberdesk_cloud_client/models/machine_status.py} +10 -8
  78. openapi_client/cyberdesk_cloud_client/models/machine_update.py +195 -0
  79. openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +109 -0
  80. openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_end.py → cyberdesk_cloud_client/models/mouse_move_request.py} +67 -71
  81. openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_start.py → cyberdesk_cloud_client/models/mouse_position.py} +67 -71
  82. openapi_client/cyberdesk_cloud_client/models/paginated_response.py +84 -0
  83. openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +97 -0
  84. openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +97 -0
  85. openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +97 -0
  86. openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +97 -0
  87. openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +97 -0
  88. openapi_client/cyberdesk_cloud_client/models/request_log_create.py +187 -0
  89. openapi_client/cyberdesk_cloud_client/models/request_log_response.py +230 -0
  90. openapi_client/cyberdesk_cloud_client/models/request_log_update.py +164 -0
  91. openapi_client/cyberdesk_cloud_client/models/run_create.py +94 -0
  92. openapi_client/cyberdesk_cloud_client/models/run_response.py +245 -0
  93. openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +44 -0
  94. openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +44 -0
  95. openapi_client/{api_reference_client/models/post_v1_desktop_response_200_status.py → cyberdesk_cloud_client/models/run_status.py} +12 -11
  96. openapi_client/cyberdesk_cloud_client/models/run_update.py +226 -0
  97. openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +44 -0
  98. openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +44 -0
  99. openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +83 -0
  100. openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +44 -0
  101. openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +117 -0
  102. openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +44 -0
  103. openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +99 -0
  104. openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +44 -0
  105. openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py → cyberdesk_cloud_client/models/validation_error.py} +88 -70
  106. openapi_client/cyberdesk_cloud_client/models/workflow_create.py +82 -0
  107. openapi_client/cyberdesk_cloud_client/models/workflow_response.py +164 -0
  108. openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +44 -0
  109. openapi_client/cyberdesk_cloud_client/models/workflow_update.py +92 -0
  110. openapi_client/{api_reference_client → cyberdesk_cloud_client}/types.py +54 -46
  111. cyberdesk/actions.py +0 -118
  112. cyberdesk/types.py +0 -50
  113. cyberdesk-0.2.7.dist-info/METADATA +0 -228
  114. cyberdesk-0.2.7.dist-info/RECORD +0 -136
  115. openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +0 -293
  116. openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +0 -294
  117. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +0 -307
  118. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +0 -419
  119. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +0 -288
  120. openapi_client/api_reference_client/models/__init__.py +0 -249
  121. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +0 -104
  122. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +0 -11
  123. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +0 -69
  124. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +0 -8
  125. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +0 -69
  126. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +0 -8
  127. openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +0 -69
  128. openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +0 -69
  129. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +0 -69
  130. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +0 -8
  131. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +0 -69
  132. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +0 -8
  133. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +0 -69
  134. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +0 -8
  135. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +0 -69
  136. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +0 -8
  137. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +0 -79
  138. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +0 -69
  139. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +0 -8
  140. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +0 -69
  141. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +0 -8
  142. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +0 -69
  143. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +0 -8
  144. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +0 -69
  145. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +0 -8
  146. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +0 -69
  147. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +0 -8
  148. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +0 -69
  149. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +0 -8
  150. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +0 -69
  151. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +0 -8
  152. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +0 -69
  153. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +0 -8
  154. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +0 -133
  155. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +0 -10
  156. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +0 -10
  157. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +0 -8
  158. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +0 -98
  159. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +0 -8
  160. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +0 -64
  161. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +0 -8
  162. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +0 -80
  163. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +0 -8
  164. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +0 -109
  165. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +0 -10
  166. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +0 -8
  167. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +0 -79
  168. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +0 -71
  169. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +0 -8
  170. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +0 -71
  171. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +0 -8
  172. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +0 -71
  173. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +0 -8
  174. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +0 -71
  175. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +0 -8
  176. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +0 -71
  177. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +0 -8
  178. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +0 -71
  179. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +0 -8
  180. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +0 -71
  181. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +0 -8
  182. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +0 -71
  183. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +0 -8
  184. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +0 -63
  185. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +0 -8
  186. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +0 -81
  187. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +0 -11
  188. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +0 -8
  189. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +0 -71
  190. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +0 -8
  191. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +0 -8
  192. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +0 -11
  193. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +0 -69
  194. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +0 -8
  195. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +0 -69
  196. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +0 -8
  197. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +0 -69
  198. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +0 -8
  199. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +0 -69
  200. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +0 -8
  201. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +0 -69
  202. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +0 -8
  203. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +0 -69
  204. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +0 -8
  205. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +0 -69
  206. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +0 -8
  207. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +0 -69
  208. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +0 -8
  209. openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +0 -70
  210. openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +0 -69
  211. openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +0 -8
  212. openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +0 -69
  213. openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +0 -8
  214. openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +0 -69
  215. openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +0 -8
  216. openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +0 -69
  217. openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +0 -8
  218. openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +0 -69
  219. openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +0 -8
  220. openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +0 -69
  221. openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +0 -8
  222. openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +0 -69
  223. openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +0 -8
  224. openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +0 -69
  225. openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +0 -8
  226. {cyberdesk-0.2.7.dist-info → cyberdesk-1.2.0.dist-info}/licenses/LICENSE +0 -0
  227. {cyberdesk-0.2.7.dist-info → cyberdesk-1.2.0.dist-info}/top_level.txt +0 -0
  228. /openapi_client/{api_reference_client → cyberdesk_cloud_client}/py.typed +0 -0
@@ -1,228 +0,0 @@
1
- Metadata-Version: 2.4
2
- Name: cyberdesk
3
- Version: 0.2.7
4
- Summary: The official Python SDK for Cyberdesk
5
- Author-email: Cyberdesk Team <dev@cyberdesk.io>
6
- License-Expression: MIT
7
- Description-Content-Type: text/markdown
8
- License-File: LICENSE
9
- Requires-Dist: httpx
10
- Requires-Dist: attrs
11
- Provides-Extra: dev
12
- Requires-Dist: openapi-python-client; extra == "dev"
13
- Requires-Dist: build; extra == "dev"
14
- Requires-Dist: twine; extra == "dev"
15
- Dynamic: license-file
16
-
17
- # cyberdesk
18
-
19
- [![PyPI version](https://badge.fury.io/py/cyberdesk.svg)](https://badge.fury.io/py/cyberdesk)
20
-
21
- The official Python SDK for Cyberdesk.
22
-
23
- ## Installation
24
-
25
- ```bash
26
- pip install cyberdesk
27
- ```
28
-
29
- ## Usage
30
-
31
- First, create a Cyberdesk client instance with your API key:
32
-
33
- ```python
34
- from cyberdesk import CyberdeskClient
35
-
36
- client = CyberdeskClient(api_key="YOUR_API_KEY")
37
- ```
38
-
39
- ---
40
-
41
- ### Launch a Desktop
42
-
43
- ```python
44
- result = client.launch_desktop(timeout_ms=10000) # Optional: set a timeout for the desktop session
45
-
46
- # Error handling example
47
- if hasattr(result, 'error') and result.error:
48
- raise Exception('Failed to launch desktop: ' + str(result.error))
49
-
50
- # Success
51
- if hasattr(result, 'id'):
52
- desktop_id = result.id
53
- print('Launched desktop with ID:', desktop_id)
54
- ```
55
-
56
- ---
57
-
58
- ### Get Desktop Info
59
-
60
- ```python
61
- info = client.get_desktop("your-desktop-id")
62
-
63
- if hasattr(info, 'error') and info.error:
64
- raise Exception('Failed to get desktop info: ' + str(info.error))
65
-
66
- print('Desktop info:', info)
67
- ```
68
-
69
- ---
70
-
71
- ### Perform a Computer Action (e.g., Mouse Click)
72
-
73
- ```python
74
- from cyberdesk.actions import click_mouse, ClickMouseButton
75
-
76
- action = click_mouse(x=100, y=150, button=ClickMouseButton.LEFT)
77
- action_result = client.execute_computer_action("your-desktop-id", action)
78
-
79
- if hasattr(action_result, 'error') and action_result.error:
80
- raise Exception('Action failed: ' + str(action_result.error))
81
-
82
- print('Action result:', action_result)
83
- ```
84
-
85
- ---
86
-
87
- ### Run a Bash Command
88
-
89
- ```python
90
- bash_result = client.execute_bash_action(
91
- "your-desktop-id",
92
- "echo Hello, world!"
93
- )
94
-
95
- if hasattr(bash_result, 'error') and bash_result.error:
96
- raise Exception('Bash command failed: ' + str(bash_result.error))
97
-
98
- print('Bash output:', getattr(bash_result, 'output', bash_result))
99
- ```
100
-
101
- ---
102
-
103
- ## Ergonomic, Type-Safe Actions
104
-
105
- To create computer actions (mouse, keyboard, etc.), use the factory functions in `cyberdesk.actions`. These provide full type hints and IDE autocompletion for all required and optional fields.
106
-
107
- **Example:**
108
- ```python
109
- from cyberdesk.actions import click_mouse, type_text, ClickMouseButton
110
-
111
- action1 = click_mouse(x=100, y=200, button=ClickMouseButton.LEFT)
112
- action2 = type_text(text="Hello, world!")
113
-
114
- client.execute_computer_action("your-desktop-id", action1)
115
- client.execute_computer_action("your-desktop-id", action2)
116
- ```
117
-
118
- | Action | Factory Function | Description |
119
- |----------------|-------------------------|----------------------------|
120
- | Click Mouse | `click_mouse` | Mouse click at (x, y) |
121
- | Drag Mouse | `drag_mouse` | Mouse drag from/to (x, y) |
122
- | Move Mouse | `move_mouse` | Move mouse to (x, y) |
123
- | Scroll | `scroll` | Scroll by dx, dy |
124
- | Type Text | `type_text` | Type text |
125
- | Press Keys | `press_keys` | Press keyboard keys |
126
- | Screenshot | `screenshot` | Take a screenshot |
127
- | Wait | `wait` | Wait for ms milliseconds |
128
- | Get Cursor Pos | `get_cursor_position` | Get mouse cursor position |
129
-
130
- ---
131
-
132
- ## Async Usage
133
-
134
- All methods are also available as async variants (prefixed with `async_`). Example:
135
-
136
- ```python
137
- import asyncio
138
- from cyberdesk import CyberdeskClient
139
- from cyberdesk.actions import click_mouse, ClickMouseButton
140
-
141
- async def main():
142
- client = CyberdeskClient(api_key="YOUR_API_KEY")
143
- result = await client.async_launch_desktop(timeout_ms=10000)
144
- print(result)
145
- # Example async computer action
146
- action = click_mouse(x=100, y=200, button=ClickMouseButton.LEFT)
147
- await client.async_execute_computer_action("your-desktop-id", action)
148
- # ... use other async_ methods as needed
149
-
150
- asyncio.run(main())
151
- ```
152
-
153
- ---
154
-
155
- ## Type Hints and Models
156
-
157
- All request/response types are available from the generated models, and all computer actions are available as factory functions in `cyberdesk.actions` for ergonomic, type-safe usage.
158
-
159
- ```python
160
- from cyberdesk.actions import click_mouse, drag_mouse, type_text, wait, scroll, move_mouse, press_keys, screenshot, get_cursor_position, ClickMouseButton, ClickMouseActionType, PressKeyActionType, ScrollDirection
161
- ```
162
-
163
- # Note: All action enums (e.g., ClickMouseButton, ClickMouseActionType, PressKeyActionType, ScrollDirection, etc.) are available from cyberdesk.actions for type-safe usage.
164
-
165
- ---
166
-
167
- ## For Cyberdesk Team: Publishing to PyPI
168
-
169
- **Recommended:** Always use a [virtual environment](https://docs.python.org/3/library/venv.html) (venv) for building and publishing to avoid dependency conflicts.
170
-
171
- To build and publish this package to [PyPI](https://pypi.org/project/cyberdesk/):
172
-
173
- 1. **Log into PyPI** (get credentials from the Cyberdesk team).
174
-
175
- 2. **Install dev dependencies** (in a clean venv):
176
- ```bash
177
- pip install .[dev]
178
- # or
179
- uv pip install .[dev]
180
- ```
181
-
182
- 3. **Bump the version number** in `pyproject.toml` (e.g., `version = "0.2.4"`).
183
-
184
- 4. **Clean your `dist/` directory** before building to avoid 'File already exists' errors:
185
- ```bash
186
- rm -rf dist/*
187
- # On Windows PowerShell:
188
- Remove-Item dist\* -Force
189
- ```
190
-
191
- 5. **Build the package:**
192
- ```bash
193
- python -m build
194
- ```
195
- This creates a `dist/` directory with `.whl` and `.tar.gz` files.
196
-
197
- 6. **(Recommended) Set up a `.pypirc` file for easy publishing:**
198
- - Create a file named `.pypirc` in your home directory (e.g., `C:\Users\yourname\.pypirc` on Windows or `~/.pypirc` on Linux/macOS).
199
- - Add:
200
- ```ini
201
- [distutils]
202
- index-servers =
203
- pypi
204
-
205
- [pypi]
206
- username = __token__
207
- password = pypi-AgEIcH... # <-- paste your API token here
208
- ```
209
-
210
- 7. **Publish to PyPI:**
211
- ```bash
212
- twine upload dist/*
213
- ```
214
- - If you set up `.pypirc`, you won't be prompted for credentials.
215
- - If not, enter `__token__` as the username and paste your API token as the password.
216
-
217
- 8. **Verify:**
218
- - Visit https://pypi.org/project/cyberdesk/ to see your published package.
219
- - Try installing it in a fresh environment:
220
- ```bash
221
- pip install cyberdesk
222
- ```
223
-
224
- ---
225
-
226
- ## License
227
-
228
- [MIT](LICENSE)
@@ -1,136 +0,0 @@
1
- cyberdesk/__init__.py,sha256=36X_HPAXaE9dfr3OmHbTrRgpm3b90W5TiOf0eAg-cmw,163
2
- cyberdesk/actions.py,sha256=5simzCOs5xDNMm9DmuXQzpxBJlt8-H5ipU3COL8UBpo,4773
3
- cyberdesk/client.py,sha256=kxtkdh7AjNuXU8u2rAGhHQTuUKRLyXvX_h7jtdgLzrk,3807
4
- cyberdesk/types.py,sha256=5jJSShzk3G8DqT0uRc8NFMlSru46tP9q3KJXcZhNRhc,1975
5
- cyberdesk-0.2.7.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
6
- openapi_client/api_reference_client/__init__.py,sha256=AKzi7ml3W37ADpacR564Q0j8Vsls9eFRsccqBgVWUNk,164
7
- openapi_client/api_reference_client/client.py,sha256=fXqcOZ8-Gse8ibdNn29cB93rozF_LAmSuofr5fMH0bw,12687
8
- openapi_client/api_reference_client/errors.py,sha256=DqMs2X8xF-YlxOWUYdkm_1wiQyDOKtWzYSiETtsXGjg,562
9
- openapi_client/api_reference_client/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
10
- openapi_client/api_reference_client/types.py,sha256=4Noqx0va9oEOqpp6miwyq9Y-nW4lGrd_ClvJbEXi5To,1051
11
- openapi_client/api_reference_client/api/__init__.py,sha256=GCPQJE2iGdVomChl14_FL-DSQChE95io8x6OWHFkv5k,46
12
- openapi_client/api_reference_client/api/desktop/__init__.py,sha256=YhYv6-Rvm9iFFDhMpnqfNDGwKr5JI_J1tcUsLLUCWQg,57
13
- openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py,sha256=SYPQlmDLOOi8UmC6VVf2oG6uHpD96sH4ONp1iqzfuZ0,10032
14
- openapi_client/api_reference_client/api/desktop/post_v1_desktop.py,sha256=G2OqGf5FskGiS4k8Gnm5VsYYyXlJJXYjRcL-7m-bd9k,9670
15
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py,sha256=-JBAg42bRz3NNvclLOdxfVUKnMO2i07t0IeObxGPyBE,11704
16
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py,sha256=RH4FyPGj6TD01V8C_acn5cyQAhqlnuMvUsZ5iPvMAmI,18729
17
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py,sha256=aK0PNNBxe-NH8Uwq9QDXhRUkN-7ZvmeTvHyKDjTq2Os,10188
18
- openapi_client/api_reference_client/models/__init__.py,sha256=RqgWUcMXoZH3_dfeUfWusYiD7jUct0-VkD8JeeFxp6w,16250
19
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py,sha256=ZNonGXj2jOFPRY8rOCXTCrc5kOC_oCHCSeh9pe1I_Ps,3482
20
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py,sha256=4SIj8rUeXo2EvBs8IQb5QxwrR5K_2HTyGqNhUFz3phc,245
21
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py,sha256=Jqdv09BJBszJ1pmjDVweJNxmLWJpE7Q5zceJFBJhJQE,2050
22
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py,sha256=evpVIuhUbTRTdcGGegVzrA76DZ5CxgfA9zqTCEUJUB8,164
23
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py,sha256=eQwcrc5MVFXgKX19ZeIOee0_GHvthF-tE6y-0dgHsLg,2050
24
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py,sha256=4YzLZxe-kr_BBNNLKDCVv8TFN_P_dTHqiPjrmJrcgcA,164
25
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py,sha256=RanL7GnddFUfrePhQBNl1g5gkrl-DFsCHq4C2ZXrTBU,2050
26
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403_status.py,sha256=S2iCiA8Vo3qgw9zTWRWS-QXMeWgausqje9I4A5FOGH4,164
27
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py,sha256=chjs4fQaYJHn8jKSDADsc0GbqJjFXGz9VYAh3OZyxMg,2050
28
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404_status.py,sha256=vTNw_cX8-4xNsWB7GJwKqsE58SohSbXbSnl3BMnA8-0,164
29
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py,sha256=eYv54AMEYZYZuw5dpxYi69wW9jEDRn08n-pDO_mYyC8,2050
30
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py,sha256=Wurg3Q3Q9JI5WArXIxMBqZcC077Fxujvn0Zf5hBHuwE,164
31
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py,sha256=Ja7WFx2XysSk9W_meUyMEkuHGVaCHir9csR5ZQxYfvM,2050
32
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py,sha256=nxX_tOLSp-QaU0XUulzPLGEWHpwVr1DLxKxyrL2lI0M,164
33
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py,sha256=ZqOAxC7zscGRDtFdQCN6Q7gCLPBzuYab_JrH0P2wz_M,2050
34
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py,sha256=FsMTtKc7gx6S8X8E0mUQe6W98hCiOslun66OiiDbH-o,164
35
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py,sha256=BZzvf7F6qmZscvNQSAjzIdoIxYQUjfOB19YFAouBGfk,2050
36
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py,sha256=drloPhnHjtGZaCfXIsfzI5Xg9D39lw-X-rokQEbXQ5g,164
37
- openapi_client/api_reference_client/models/post_v1_desktop_body.py,sha256=tdGdaQnEUJHE8cr_rzsy54woGudpJez9GAxPR_QQR3Y,1751
38
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_body.py,sha256=y19nQCNlNqQBQhZSvtrfcPZTnOIrkbPxH9W-X7Ynu5Q,1686
39
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py,sha256=A1cSJfYiVtU-gQZkoVoYpQNR1-N-lew7-sFzknFQ_kg,2695
40
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py,sha256=kiW8Mp_ImyCQ1mMGVtMXzNZBllqBCqDlF6wBgvCZuIw,2168
41
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py,sha256=4ijaQBB3kuLjNAnJRhKQfWxvn5oLATusClSqSHyNgA0,175
42
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py,sha256=2QSdUyX_PNza1yzgDsjMWABByUt2W38UIHIXH8B2FMc,2168
43
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py,sha256=-iEWJuT1bDMC-qrKjt3IvkP2O0nhDuiipeujZOkHkT4,175
44
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py,sha256=OgSMuhOKht79hOlnvk7pchZBy42B7bbbQI5Sl9RJdtI,2168
45
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py,sha256=Wco_doJjpmsgyB99-Vy3num2gKj3gWPq44DB0AAMLJ4,175
46
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py,sha256=d7yKUQxGuUrdhoycGynM-ys4xBYHsLkKW7Vk6XvwJcs,2168
47
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py,sha256=5YlT8aa7mWxrLQxG9zwIZDFOPo8BBGjbsqfEOP9egw0,175
48
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py,sha256=bjzzJf9urzYlEcHxLHx7mXh2TLVos-66rriMQd4uiVI,2168
49
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py,sha256=GB907g-1LzhjhVMMLw1b2MVti01wKgA2QBiuaELIT2w,175
50
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py,sha256=4AwEEQ_i-Qouul89omd1V-TYkLKqLlpIULn4djFhmno,2168
51
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py,sha256=VSiGCwjgc_6FDJcbY5REt3m3UhU7ln96cfrYTOg__zc,175
52
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py,sha256=q0DZdB-lv1Rc6_4Y0vxoGu6Q35zDYuAia4x2njgETTY,2168
53
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py,sha256=sxGSxXCiiB7rRnP_43U3sySKHdl5SV1OVPR4WNwFqMI,175
54
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py,sha256=vPg_qbar9eYP-Fwji5iCqwDQi4i6oYOgC46GcfOhe1s,2168
55
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py,sha256=VaIm86WHFPvOM9dMu_f7fXs4Kgqtp0YNN6ujTXqeB1U,175
56
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py,sha256=rQ4Pwp-b7CyrXOsmgl5gZHQChcKeNpwl_Q1LvmfkbLw,5150
57
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py,sha256=I1aup2Ab9J6BD0a2ugh7vD0jFC-FvwWysTCmZsqp_o0,226
58
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py,sha256=uxO5n1yrvpRCoX_qVl-vwNz90KLqzoGHXtvWh0KAbYU,221
59
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py,sha256=fdO3Q2xQI1KNMsXRpbidEvWbj0_ec3MGBzp0F6kAbU4,194
60
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py,sha256=wJa2lP-XHZ1z50dfZh0opb5Acd6j8C7ODHspKWFW3ls,3529
61
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_end.py,sha256=xBHpxQFwnVag4I0NQQ9Tkdgjyrg7HoegZghysNyY5uc,1962
62
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_start.py,sha256=cEpRrgS-G-wBIhzXtzGO-1ERGOAn7oxalQ09iv7EDkg,1974
63
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py,sha256=8A7ePvmKD2E07gxSuOpfgb4j2u28PnphcoKmiTMVhPs,191
64
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py,sha256=Pw4u1eMMXUQeFr_IGxQdZjMS2R7ZHVwujqPouXk0Rek,2143
65
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py,sha256=N4olBYgiY-dXvtD89ifKPrD_VWcJBGbORPOtspSMnfA,217
66
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py,sha256=akQ1Cs7t4MKMU10VXN5bBIWd_fw6Rn2sD5cln6Ej9Io,2381
67
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py,sha256=Zr49qIpcHNPYOLl0uvkjm60X6xO6jY2yo64wAG91lVI,191
68
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py,sha256=7b9r8CdzOVebwhMxsjDxZXtekqQ1FnoehBJNCOQL7qY,4016
69
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py,sha256=DTWR50I3gdrOtr7e7MeUbzdCoRaatZ_Ult2etHQGaQw,224
70
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py,sha256=8y-C2AA-vlvkhPH6rRLXEo7Bx73r9bVV4g-xvKwVAek,191
71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py,sha256=EBSa-lq6HaZ_JaN6xQ3phfw2aT3-UfRpJYTOksSJsd8,2715
72
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py,sha256=_55AEUpTmBNm2PvRpPN2uQHoPk9jt2dpcvJIZIg8wHE,2219
73
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py,sha256=WISapM6v7WVcr5aBz10Ks7H-BDFaPBTLkXVehCBuCXs,179
74
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py,sha256=8D78FpAWOdARQqvwl0tCPLLgHq_Y51xugyAK-A9dTgQ,2219
75
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py,sha256=ikZeHX_xdRlgDg-2vGw0SkSEH0H1ZS7qS2nqFRjk65I,179
76
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py,sha256=K3WjGl8dPBLUZorqlan_i70g26ZROL9NoYBJEGUIzEI,2219
77
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py,sha256=juicM5d3_i5biULD6i_Zfml3Mcga-Ch9TSLFjEPSiUg,179
78
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py,sha256=lcdjOpM5bLSrWZLHB5YSFel1OdxhV6K1YSh5UQF5kWE,2219
79
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py,sha256=MCaIwhC2Wm7jTZis42y7elKU6_5Eainb_IT9Xunq9wI,179
80
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py,sha256=6aiOvksYcDBCwi3IQW-tEM9DMceqzRaMwEh2M4UJJV4,2219
81
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py,sha256=atVn3J20qFcN5jLFbqvkrXzN9AvQpaSocg2Is5adofM,179
82
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py,sha256=v1MqUi92gYIeFFL1FH64Nc2TvFdf_6oY_4grlqnG5zc,2219
83
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py,sha256=6HLwWt87ukxKwfIn3lqhhihi-VmWF1aJAsUipC9D23g,179
84
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py,sha256=cKmNuQmE1RJq4NXpesQWXBmmiZYDxwFgnFhb-6c2elQ,2219
85
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py,sha256=XvrxiDxxx3FrjnDnqdGC2IrEse3AEAf5O-9FJ-TXiaM,179
86
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py,sha256=fr710QIK6snS6xPDen8ccPpZ3422i_1JOJyc1g_ikdc,2219
87
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py,sha256=Bu5qUbIP5-IQ6Lv9_BOzIQWwrSGdyuFkuGpqPuOADZw,179
88
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py,sha256=9vNz0a3gCFKGSBKnOlZ98rzx3ah-WBudkT8b-HRNCMo,2038
89
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py,sha256=R1n84Hg1Rl13k7AmWj1cJz0_AA8zmMgbXDL40ptpL64,192
90
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py,sha256=X9WI8ZV55oKC2db2ddAhuwAzJA0AV2dZCn4b-PxQDtQ,2756
91
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py,sha256=0HNlAFw6UQEBZggnAdbYXd2Xjuxj4f_9OMgqdcPiJKM,236
92
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py,sha256=eN6a9-42xXIRlN1-SdhL6n6zIEsAj2MJCjVxVq-J4xM,180
93
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py,sha256=__M4hjolmCnGuxemNA9jf8WKoAYG04qhm8BgOMWwNVU,2212
94
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py,sha256=B5Z6vtmhb-K0-swluYU0TgjV94wOw3cPrTkElbVUR7M,178
95
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py,sha256=tZd_17bHaNlLQ0CfqnWqRP42E866n96JgW6bJcgKELM,2162
96
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py,sha256=Kd_PzKJJLWAkvs8mOchN3J3bhoULO-QxsUZOWvh4dEM,174
97
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200.py,sha256=IC5qBRxUNqfiKvqDUkMyZv0JyWjQCDMKdrdUlH-gkdg,1921
98
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py,sha256=IQF6suA1LVAXsuNZowH_-vdaFrKt5oigqwpgbTpShMs,250
99
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py,sha256=OU9pDpI2nFYdyhO1R3FfWugbUMP4T8z6ljUcun7YCAE,2104
100
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py,sha256=X72j3VKjM12j3WqQ7kP0IPRLq6dNK6iTJayL5uX6i5s,169
101
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py,sha256=bpWv1Lemm5S-nVt-CgN7Ck5dZL2DK_NqwJBpuyntbVk,2104
102
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py,sha256=DAv5PEucQt776pmKldRhDaEzns3Z_YtFrwy4NtTcIaQ,169
103
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py,sha256=AIAUtecvtoyWMssXjf2P9ulQ8Ly4ENGpGSSsRyogrXk,2104
104
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py,sha256=Ymk913fK00THmbhY0S_KyXWq8uhh9TMBRttJZXTKEkg,169
105
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py,sha256=7cP0upoV6JHVwiiWfdGOMfCiFxuT_fVLCYSN9D28XWk,2104
106
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py,sha256=ahAN0kLT76ztQri3sPoryxIAYY7z_8T-owdfk4VhG2A,169
107
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py,sha256=oCqpYAimrQvy-oR0y8WnHNufounywAb_HQ5Qy3btRT4,2104
108
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py,sha256=IY8JHFqt5HweQ50i2FiQLshqNigWgrCcDRGYgjIKqN8,169
109
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py,sha256=WjGQQZtRUx3omfBus4bEUZuKlUmK6g1JblT7PdA4-ZM,2104
110
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py,sha256=dCI1MDlA5-lDhqeRGbgEOARpWFgozZK9IEJqN9o2-X0,169
111
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py,sha256=L8Pdr_RHEStPKpdGfimZPjr7eTXGFjWBWJ62odPgMs8,2104
112
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py,sha256=9RYNrXQtdIIW14dVowIRdOARkqtXt_d4tx5TmM8XE9Y,169
113
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py,sha256=y_xRwz1kqbKcSYjmN9TopnrSLPaGd_vIEcmlEN3SXow,2104
114
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py,sha256=Cz_pLICgHdLenv1neoQain9vVLntaBoZXXC29N2vG1Y,169
115
- openapi_client/api_reference_client/models/post_v1_desktop_response_200.py,sha256=-2X5v0iGs0KuJC2xwmDa0r-5NstpfdJIRDNyx-6i-60,2064
116
- openapi_client/api_reference_client/models/post_v1_desktop_response_200_status.py,sha256=3VwEYlDQMjyd-fQZOXtuRWmPKgiTk70yX8bXXUPjqYQ,244
117
- openapi_client/api_reference_client/models/post_v1_desktop_response_400.py,sha256=wzc6GmzZDW8ViZSj68ta12_WmxaCghsDfQ7H1wJVDy0,2036
118
- openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py,sha256=l61VF8WXZyo4nWmajulCyxqNMBYTetOCQNwiZhti5Ug,163
119
- openapi_client/api_reference_client/models/post_v1_desktop_response_401.py,sha256=D1bj_w3efqWmuAobaK-a3LRxsVzInagSfNME_DGNAQU,2036
120
- openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py,sha256=TImthUQqaO_dRgGxAPyOnWA2LC9BYKiGaxp2BujcHZs,163
121
- openapi_client/api_reference_client/models/post_v1_desktop_response_403.py,sha256=8IL1Gk3gbS8gSHufKZ7J9smIDhwp0cmgaiw6p6sSV7w,2036
122
- openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py,sha256=0sJCC8Dgk-rG_M2pk_40zcAoz6oR6IqOa4wVGsRy3hc,163
123
- openapi_client/api_reference_client/models/post_v1_desktop_response_404.py,sha256=uC70-eGyWg-3HO4anzrnP5cxQ8a-KhTYRdsRzBxvK04,2036
124
- openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py,sha256=0l_mVRILdeims3VqqanAzqKsejF8AIIfWYgLzr9mHZc,163
125
- openapi_client/api_reference_client/models/post_v1_desktop_response_409.py,sha256=tRUhH8bKQJXmNygRE6uq0haDACeLuq9m6knE0wOBSyc,2036
126
- openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py,sha256=tvCMCpDfVBtdhdazQFraVsWlMgs7BkjRHUQwT8uoaV4,163
127
- openapi_client/api_reference_client/models/post_v1_desktop_response_429.py,sha256=8KoxMlDhpGTYGGuPHieIaWqD-SJYKwEXg_avob7JDN8,2036
128
- openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py,sha256=HJmqCSKbNurhsKQgWwlWPPxvssAQZK9h_huY3Sx3q9Y,163
129
- openapi_client/api_reference_client/models/post_v1_desktop_response_500.py,sha256=--be4PcUFAAZXBIuZDnRCd_ghymvHVW37IXrKtG1WQM,2036
130
- openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py,sha256=xZ16zTTNQmzXJ_kGwZ0Dpzgfb3pYAfXgvSybiTohs1M,163
131
- openapi_client/api_reference_client/models/post_v1_desktop_response_502.py,sha256=AtVm799Itz2A2-cQOwHu-1japGSXVvMDUTETLDvTrAI,2036
132
- openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py,sha256=y45sxeHU0bzaR2hkDQLLUN-NGr3OtJ_ofqdywlL6kZA,163
133
- cyberdesk-0.2.7.dist-info/METADATA,sha256=b_G-VoXyh3vzMoezQsmk19OnQ7qbAtMDrsPnTOSwSh8,6793
134
- cyberdesk-0.2.7.dist-info/WHEEL,sha256=DnLRTWE75wApRYVsjgc6wsVswC54sMSJhAEd4xhDpBk,91
135
- cyberdesk-0.2.7.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
136
- cyberdesk-0.2.7.dist-info/RECORD,,
@@ -1,293 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
- from uuid import UUID
4
-
5
- import httpx
6
-
7
- from ... import errors
8
- from ...client import AuthenticatedClient, Client
9
- from ...models.get_v1_desktop_id_response_200 import GetV1DesktopIdResponse200
10
- from ...models.get_v1_desktop_id_response_400 import GetV1DesktopIdResponse400
11
- from ...models.get_v1_desktop_id_response_401 import GetV1DesktopIdResponse401
12
- from ...models.get_v1_desktop_id_response_403 import GetV1DesktopIdResponse403
13
- from ...models.get_v1_desktop_id_response_404 import GetV1DesktopIdResponse404
14
- from ...models.get_v1_desktop_id_response_409 import GetV1DesktopIdResponse409
15
- from ...models.get_v1_desktop_id_response_429 import GetV1DesktopIdResponse429
16
- from ...models.get_v1_desktop_id_response_500 import GetV1DesktopIdResponse500
17
- from ...models.get_v1_desktop_id_response_502 import GetV1DesktopIdResponse502
18
- from ...types import Response
19
-
20
-
21
- def _get_kwargs(
22
- id: UUID,
23
- *,
24
- x_api_key: str,
25
- ) -> dict[str, Any]:
26
- headers: dict[str, Any] = {}
27
- headers["x-api-key"] = x_api_key
28
-
29
- _kwargs: dict[str, Any] = {
30
- "method": "get",
31
- "url": f"/v1/desktop/{id}",
32
- }
33
-
34
- _kwargs["headers"] = headers
35
- return _kwargs
36
-
37
-
38
- def _parse_response(
39
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
40
- ) -> Optional[
41
- Union[
42
- GetV1DesktopIdResponse200,
43
- GetV1DesktopIdResponse400,
44
- GetV1DesktopIdResponse401,
45
- GetV1DesktopIdResponse403,
46
- GetV1DesktopIdResponse404,
47
- GetV1DesktopIdResponse409,
48
- GetV1DesktopIdResponse429,
49
- GetV1DesktopIdResponse500,
50
- GetV1DesktopIdResponse502,
51
- ]
52
- ]:
53
- if response.status_code == 200:
54
- response_200 = GetV1DesktopIdResponse200.from_dict(response.json())
55
-
56
- return response_200
57
- if response.status_code == 400:
58
- response_400 = GetV1DesktopIdResponse400.from_dict(response.json())
59
-
60
- return response_400
61
- if response.status_code == 401:
62
- response_401 = GetV1DesktopIdResponse401.from_dict(response.json())
63
-
64
- return response_401
65
- if response.status_code == 403:
66
- response_403 = GetV1DesktopIdResponse403.from_dict(response.json())
67
-
68
- return response_403
69
- if response.status_code == 404:
70
- response_404 = GetV1DesktopIdResponse404.from_dict(response.json())
71
-
72
- return response_404
73
- if response.status_code == 409:
74
- response_409 = GetV1DesktopIdResponse409.from_dict(response.json())
75
-
76
- return response_409
77
- if response.status_code == 429:
78
- response_429 = GetV1DesktopIdResponse429.from_dict(response.json())
79
-
80
- return response_429
81
- if response.status_code == 500:
82
- response_500 = GetV1DesktopIdResponse500.from_dict(response.json())
83
-
84
- return response_500
85
- if response.status_code == 502:
86
- response_502 = GetV1DesktopIdResponse502.from_dict(response.json())
87
-
88
- return response_502
89
- if client.raise_on_unexpected_status:
90
- raise errors.UnexpectedStatus(response.status_code, response.content)
91
- else:
92
- return None
93
-
94
-
95
- def _build_response(
96
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
97
- ) -> Response[
98
- Union[
99
- GetV1DesktopIdResponse200,
100
- GetV1DesktopIdResponse400,
101
- GetV1DesktopIdResponse401,
102
- GetV1DesktopIdResponse403,
103
- GetV1DesktopIdResponse404,
104
- GetV1DesktopIdResponse409,
105
- GetV1DesktopIdResponse429,
106
- GetV1DesktopIdResponse500,
107
- GetV1DesktopIdResponse502,
108
- ]
109
- ]:
110
- return Response(
111
- status_code=HTTPStatus(response.status_code),
112
- content=response.content,
113
- headers=response.headers,
114
- parsed=_parse_response(client=client, response=response),
115
- )
116
-
117
-
118
- def sync_detailed(
119
- id: UUID,
120
- *,
121
- client: Union[AuthenticatedClient, Client],
122
- x_api_key: str,
123
- ) -> Response[
124
- Union[
125
- GetV1DesktopIdResponse200,
126
- GetV1DesktopIdResponse400,
127
- GetV1DesktopIdResponse401,
128
- GetV1DesktopIdResponse403,
129
- GetV1DesktopIdResponse404,
130
- GetV1DesktopIdResponse409,
131
- GetV1DesktopIdResponse429,
132
- GetV1DesktopIdResponse500,
133
- GetV1DesktopIdResponse502,
134
- ]
135
- ]:
136
- """Get details of a specific desktop instance
137
-
138
- Returns the ID, status, creation timestamp, and timeout timestamp for a given desktop instance.
139
-
140
- Args:
141
- id (UUID): The UUID of the desktop instance to retrieve Example:
142
- a1b2c3d4-e5f6-7890-1234-567890abcdef.
143
- x_api_key (str): API key for authentication Example: api_12345.
144
-
145
- Raises:
146
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
147
- httpx.TimeoutException: If the request takes longer than Client.timeout.
148
-
149
- Returns:
150
- Response[Union[GetV1DesktopIdResponse200, GetV1DesktopIdResponse400, GetV1DesktopIdResponse401, GetV1DesktopIdResponse403, GetV1DesktopIdResponse404, GetV1DesktopIdResponse409, GetV1DesktopIdResponse429, GetV1DesktopIdResponse500, GetV1DesktopIdResponse502]]
151
- """
152
-
153
- kwargs = _get_kwargs(
154
- id=id,
155
- x_api_key=x_api_key,
156
- )
157
-
158
- response = client.get_httpx_client().request(
159
- **kwargs,
160
- )
161
-
162
- return _build_response(client=client, response=response)
163
-
164
-
165
- def sync(
166
- id: UUID,
167
- *,
168
- client: Union[AuthenticatedClient, Client],
169
- x_api_key: str,
170
- ) -> Optional[
171
- Union[
172
- GetV1DesktopIdResponse200,
173
- GetV1DesktopIdResponse400,
174
- GetV1DesktopIdResponse401,
175
- GetV1DesktopIdResponse403,
176
- GetV1DesktopIdResponse404,
177
- GetV1DesktopIdResponse409,
178
- GetV1DesktopIdResponse429,
179
- GetV1DesktopIdResponse500,
180
- GetV1DesktopIdResponse502,
181
- ]
182
- ]:
183
- """Get details of a specific desktop instance
184
-
185
- Returns the ID, status, creation timestamp, and timeout timestamp for a given desktop instance.
186
-
187
- Args:
188
- id (UUID): The UUID of the desktop instance to retrieve Example:
189
- a1b2c3d4-e5f6-7890-1234-567890abcdef.
190
- x_api_key (str): API key for authentication Example: api_12345.
191
-
192
- Raises:
193
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
194
- httpx.TimeoutException: If the request takes longer than Client.timeout.
195
-
196
- Returns:
197
- Union[GetV1DesktopIdResponse200, GetV1DesktopIdResponse400, GetV1DesktopIdResponse401, GetV1DesktopIdResponse403, GetV1DesktopIdResponse404, GetV1DesktopIdResponse409, GetV1DesktopIdResponse429, GetV1DesktopIdResponse500, GetV1DesktopIdResponse502]
198
- """
199
-
200
- return sync_detailed(
201
- id=id,
202
- client=client,
203
- x_api_key=x_api_key,
204
- ).parsed
205
-
206
-
207
- async def asyncio_detailed(
208
- id: UUID,
209
- *,
210
- client: Union[AuthenticatedClient, Client],
211
- x_api_key: str,
212
- ) -> Response[
213
- Union[
214
- GetV1DesktopIdResponse200,
215
- GetV1DesktopIdResponse400,
216
- GetV1DesktopIdResponse401,
217
- GetV1DesktopIdResponse403,
218
- GetV1DesktopIdResponse404,
219
- GetV1DesktopIdResponse409,
220
- GetV1DesktopIdResponse429,
221
- GetV1DesktopIdResponse500,
222
- GetV1DesktopIdResponse502,
223
- ]
224
- ]:
225
- """Get details of a specific desktop instance
226
-
227
- Returns the ID, status, creation timestamp, and timeout timestamp for a given desktop instance.
228
-
229
- Args:
230
- id (UUID): The UUID of the desktop instance to retrieve Example:
231
- a1b2c3d4-e5f6-7890-1234-567890abcdef.
232
- x_api_key (str): API key for authentication Example: api_12345.
233
-
234
- Raises:
235
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
236
- httpx.TimeoutException: If the request takes longer than Client.timeout.
237
-
238
- Returns:
239
- Response[Union[GetV1DesktopIdResponse200, GetV1DesktopIdResponse400, GetV1DesktopIdResponse401, GetV1DesktopIdResponse403, GetV1DesktopIdResponse404, GetV1DesktopIdResponse409, GetV1DesktopIdResponse429, GetV1DesktopIdResponse500, GetV1DesktopIdResponse502]]
240
- """
241
-
242
- kwargs = _get_kwargs(
243
- id=id,
244
- x_api_key=x_api_key,
245
- )
246
-
247
- response = await client.get_async_httpx_client().request(**kwargs)
248
-
249
- return _build_response(client=client, response=response)
250
-
251
-
252
- async def asyncio(
253
- id: UUID,
254
- *,
255
- client: Union[AuthenticatedClient, Client],
256
- x_api_key: str,
257
- ) -> Optional[
258
- Union[
259
- GetV1DesktopIdResponse200,
260
- GetV1DesktopIdResponse400,
261
- GetV1DesktopIdResponse401,
262
- GetV1DesktopIdResponse403,
263
- GetV1DesktopIdResponse404,
264
- GetV1DesktopIdResponse409,
265
- GetV1DesktopIdResponse429,
266
- GetV1DesktopIdResponse500,
267
- GetV1DesktopIdResponse502,
268
- ]
269
- ]:
270
- """Get details of a specific desktop instance
271
-
272
- Returns the ID, status, creation timestamp, and timeout timestamp for a given desktop instance.
273
-
274
- Args:
275
- id (UUID): The UUID of the desktop instance to retrieve Example:
276
- a1b2c3d4-e5f6-7890-1234-567890abcdef.
277
- x_api_key (str): API key for authentication Example: api_12345.
278
-
279
- Raises:
280
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
281
- httpx.TimeoutException: If the request takes longer than Client.timeout.
282
-
283
- Returns:
284
- Union[GetV1DesktopIdResponse200, GetV1DesktopIdResponse400, GetV1DesktopIdResponse401, GetV1DesktopIdResponse403, GetV1DesktopIdResponse404, GetV1DesktopIdResponse409, GetV1DesktopIdResponse429, GetV1DesktopIdResponse500, GetV1DesktopIdResponse502]
285
- """
286
-
287
- return (
288
- await asyncio_detailed(
289
- id=id,
290
- client=client,
291
- x_api_key=x_api_key,
292
- )
293
- ).parsed