cyberdesk 0.2.7__py3-none-any.whl → 1.0.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of cyberdesk might be problematic. Click here for more details.

Files changed (229) hide show
  1. cyberdesk/__init__.py +45 -7
  2. cyberdesk/client.py +779 -70
  3. cyberdesk-1.0.0.dist-info/METADATA +274 -0
  4. cyberdesk-1.0.0.dist-info/RECORD +114 -0
  5. {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.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 +107 -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/connection_update.py +145 -0
  68. openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +44 -0
  69. openapi_client/{api_reference_client/models/post_v1_desktop_id_bash_action_body.py → cyberdesk_cloud_client/models/display_dimensions.py} +67 -59
  70. openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +44 -0
  71. openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +44 -0
  72. openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +44 -0
  73. openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +75 -0
  74. openapi_client/{api_reference_client/models/post_v1_desktop_body.py → cyberdesk_cloud_client/models/keyboard_key_request.py} +59 -59
  75. openapi_client/{api_reference_client/models/post_v1_desktop_id_stop_response_200.py → cyberdesk_cloud_client/models/keyboard_type_request.py} +59 -62
  76. openapi_client/cyberdesk_cloud_client/models/machine_create.py +130 -0
  77. openapi_client/cyberdesk_cloud_client/models/machine_response.py +182 -0
  78. openapi_client/{api_reference_client/models/get_v1_desktop_id_response_403_status.py → cyberdesk_cloud_client/models/machine_status.py} +10 -8
  79. openapi_client/cyberdesk_cloud_client/models/machine_update.py +195 -0
  80. openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +109 -0
  81. 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
  82. 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
  83. openapi_client/cyberdesk_cloud_client/models/paginated_response.py +84 -0
  84. openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +97 -0
  85. openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +97 -0
  86. openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +97 -0
  87. openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +97 -0
  88. openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +97 -0
  89. openapi_client/cyberdesk_cloud_client/models/request_log_create.py +187 -0
  90. openapi_client/cyberdesk_cloud_client/models/request_log_response.py +230 -0
  91. openapi_client/cyberdesk_cloud_client/models/request_log_update.py +164 -0
  92. openapi_client/cyberdesk_cloud_client/models/run_create.py +94 -0
  93. openapi_client/cyberdesk_cloud_client/models/run_response.py +228 -0
  94. openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +44 -0
  95. openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +44 -0
  96. openapi_client/{api_reference_client/models/post_v1_desktop_response_200_status.py → cyberdesk_cloud_client/models/run_status.py} +12 -11
  97. openapi_client/cyberdesk_cloud_client/models/run_update.py +226 -0
  98. openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +44 -0
  99. openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +44 -0
  100. openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +83 -0
  101. openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +44 -0
  102. openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +117 -0
  103. openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +44 -0
  104. openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +99 -0
  105. openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +44 -0
  106. openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py → cyberdesk_cloud_client/models/validation_error.py} +88 -70
  107. openapi_client/cyberdesk_cloud_client/models/workflow_create.py +82 -0
  108. openapi_client/cyberdesk_cloud_client/models/workflow_response.py +164 -0
  109. openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +44 -0
  110. openapi_client/cyberdesk_cloud_client/models/workflow_update.py +92 -0
  111. openapi_client/{api_reference_client → cyberdesk_cloud_client}/types.py +54 -46
  112. cyberdesk/actions.py +0 -118
  113. cyberdesk/types.py +0 -50
  114. cyberdesk-0.2.7.dist-info/METADATA +0 -228
  115. cyberdesk-0.2.7.dist-info/RECORD +0 -136
  116. openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +0 -293
  117. openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +0 -294
  118. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +0 -307
  119. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +0 -419
  120. openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +0 -288
  121. openapi_client/api_reference_client/models/__init__.py +0 -249
  122. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +0 -104
  123. openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +0 -11
  124. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +0 -69
  125. openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +0 -8
  126. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +0 -69
  127. openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +0 -8
  128. openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +0 -69
  129. openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +0 -69
  130. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +0 -69
  131. openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +0 -8
  132. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +0 -69
  133. openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +0 -8
  134. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +0 -69
  135. openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +0 -8
  136. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +0 -69
  137. openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +0 -8
  138. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +0 -79
  139. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +0 -69
  140. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +0 -8
  141. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +0 -69
  142. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +0 -8
  143. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +0 -69
  144. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +0 -8
  145. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +0 -69
  146. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +0 -8
  147. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +0 -69
  148. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +0 -8
  149. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +0 -69
  150. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +0 -8
  151. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +0 -69
  152. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +0 -8
  153. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +0 -69
  154. openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +0 -8
  155. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +0 -133
  156. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +0 -10
  157. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +0 -10
  158. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +0 -8
  159. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +0 -98
  160. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +0 -8
  161. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +0 -64
  162. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +0 -8
  163. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +0 -80
  164. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +0 -8
  165. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +0 -109
  166. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +0 -10
  167. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +0 -8
  168. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +0 -79
  169. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +0 -71
  170. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +0 -8
  171. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +0 -71
  172. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +0 -8
  173. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +0 -71
  174. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +0 -8
  175. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +0 -71
  176. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +0 -8
  177. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +0 -71
  178. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +0 -8
  179. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +0 -71
  180. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +0 -8
  181. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +0 -71
  182. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +0 -8
  183. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +0 -71
  184. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +0 -8
  185. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +0 -63
  186. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +0 -8
  187. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +0 -81
  188. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +0 -11
  189. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +0 -8
  190. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +0 -71
  191. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +0 -8
  192. openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +0 -8
  193. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +0 -11
  194. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +0 -69
  195. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +0 -8
  196. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +0 -69
  197. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +0 -8
  198. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +0 -69
  199. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +0 -8
  200. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +0 -69
  201. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +0 -8
  202. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +0 -69
  203. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +0 -8
  204. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +0 -69
  205. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +0 -8
  206. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +0 -69
  207. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +0 -8
  208. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +0 -69
  209. openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +0 -8
  210. openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +0 -70
  211. openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +0 -69
  212. openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +0 -8
  213. openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +0 -69
  214. openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +0 -8
  215. openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +0 -69
  216. openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +0 -8
  217. openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +0 -69
  218. openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +0 -8
  219. openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +0 -69
  220. openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +0 -8
  221. openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +0 -69
  222. openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +0 -8
  223. openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +0 -69
  224. openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +0 -8
  225. openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +0 -69
  226. openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +0 -8
  227. {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.0.dist-info}/licenses/LICENSE +0 -0
  228. {cyberdesk-0.2.7.dist-info → cyberdesk-1.0.0.dist-info}/top_level.txt +0 -0
  229. /openapi_client/{api_reference_client → cyberdesk_cloud_client}/py.typed +0 -0
@@ -0,0 +1,170 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union, cast
3
+ from uuid import UUID
4
+
5
+ import httpx
6
+
7
+ from ... import errors
8
+ from ...client import AuthenticatedClient, Client
9
+ from ...models.http_validation_error import HTTPValidationError
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ log_id: UUID,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "delete",
18
+ "url": f"/v1/request-logs/{log_id}",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[Any, HTTPValidationError]]:
27
+ if response.status_code == 204:
28
+ response_204 = cast(Any, None)
29
+ return response_204
30
+ if response.status_code == 422:
31
+ response_422 = HTTPValidationError.from_dict(response.json())
32
+
33
+ return response_422
34
+ if client.raise_on_unexpected_status:
35
+ raise errors.UnexpectedStatus(response.status_code, response.content)
36
+ else:
37
+ return None
38
+
39
+
40
+ def _build_response(
41
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
42
+ ) -> Response[Union[Any, HTTPValidationError]]:
43
+ return Response(
44
+ status_code=HTTPStatus(response.status_code),
45
+ content=response.content,
46
+ headers=response.headers,
47
+ parsed=_parse_response(client=client, response=response),
48
+ )
49
+
50
+
51
+ def sync_detailed(
52
+ log_id: UUID,
53
+ *,
54
+ client: AuthenticatedClient,
55
+ ) -> Response[Union[Any, HTTPValidationError]]:
56
+ """Delete Request Log
57
+
58
+ Delete a request log (not typically used - logs are kept for analytics).
59
+
60
+ The log must belong to a machine owned by the authenticated user.
61
+
62
+ Args:
63
+ log_id (UUID):
64
+
65
+ Raises:
66
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
67
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
68
+
69
+ Returns:
70
+ Response[Union[Any, HTTPValidationError]]
71
+ """
72
+
73
+ kwargs = _get_kwargs(
74
+ log_id=log_id,
75
+ )
76
+
77
+ response = client.get_httpx_client().request(
78
+ **kwargs,
79
+ )
80
+
81
+ return _build_response(client=client, response=response)
82
+
83
+
84
+ def sync(
85
+ log_id: UUID,
86
+ *,
87
+ client: AuthenticatedClient,
88
+ ) -> Optional[Union[Any, HTTPValidationError]]:
89
+ """Delete Request Log
90
+
91
+ Delete a request log (not typically used - logs are kept for analytics).
92
+
93
+ The log must belong to a machine owned by the authenticated user.
94
+
95
+ Args:
96
+ log_id (UUID):
97
+
98
+ Raises:
99
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
100
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
101
+
102
+ Returns:
103
+ Union[Any, HTTPValidationError]
104
+ """
105
+
106
+ return sync_detailed(
107
+ log_id=log_id,
108
+ client=client,
109
+ ).parsed
110
+
111
+
112
+ async def asyncio_detailed(
113
+ log_id: UUID,
114
+ *,
115
+ client: AuthenticatedClient,
116
+ ) -> Response[Union[Any, HTTPValidationError]]:
117
+ """Delete Request Log
118
+
119
+ Delete a request log (not typically used - logs are kept for analytics).
120
+
121
+ The log must belong to a machine owned by the authenticated user.
122
+
123
+ Args:
124
+ log_id (UUID):
125
+
126
+ Raises:
127
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
128
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
129
+
130
+ Returns:
131
+ Response[Union[Any, HTTPValidationError]]
132
+ """
133
+
134
+ kwargs = _get_kwargs(
135
+ log_id=log_id,
136
+ )
137
+
138
+ response = await client.get_async_httpx_client().request(**kwargs)
139
+
140
+ return _build_response(client=client, response=response)
141
+
142
+
143
+ async def asyncio(
144
+ log_id: UUID,
145
+ *,
146
+ client: AuthenticatedClient,
147
+ ) -> Optional[Union[Any, HTTPValidationError]]:
148
+ """Delete Request Log
149
+
150
+ Delete a request log (not typically used - logs are kept for analytics).
151
+
152
+ The log must belong to a machine owned by the authenticated user.
153
+
154
+ Args:
155
+ log_id (UUID):
156
+
157
+ Raises:
158
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
159
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
160
+
161
+ Returns:
162
+ Union[Any, HTTPValidationError]
163
+ """
164
+
165
+ return (
166
+ await asyncio_detailed(
167
+ log_id=log_id,
168
+ client=client,
169
+ )
170
+ ).parsed
@@ -0,0 +1,172 @@
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.http_validation_error import HTTPValidationError
10
+ from ...models.request_log_response import RequestLogResponse
11
+ from ...types import Response
12
+
13
+
14
+ def _get_kwargs(
15
+ log_id: UUID,
16
+ ) -> dict[str, Any]:
17
+ _kwargs: dict[str, Any] = {
18
+ "method": "get",
19
+ "url": f"/v1/request-logs/{log_id}",
20
+ }
21
+
22
+ return _kwargs
23
+
24
+
25
+ def _parse_response(
26
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
27
+ ) -> Optional[Union[HTTPValidationError, RequestLogResponse]]:
28
+ if response.status_code == 200:
29
+ response_200 = RequestLogResponse.from_dict(response.json())
30
+
31
+ return response_200
32
+ if response.status_code == 422:
33
+ response_422 = HTTPValidationError.from_dict(response.json())
34
+
35
+ return response_422
36
+ if client.raise_on_unexpected_status:
37
+ raise errors.UnexpectedStatus(response.status_code, response.content)
38
+ else:
39
+ return None
40
+
41
+
42
+ def _build_response(
43
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
44
+ ) -> Response[Union[HTTPValidationError, RequestLogResponse]]:
45
+ return Response(
46
+ status_code=HTTPStatus(response.status_code),
47
+ content=response.content,
48
+ headers=response.headers,
49
+ parsed=_parse_response(client=client, response=response),
50
+ )
51
+
52
+
53
+ def sync_detailed(
54
+ log_id: UUID,
55
+ *,
56
+ client: AuthenticatedClient,
57
+ ) -> Response[Union[HTTPValidationError, RequestLogResponse]]:
58
+ """Get Request Log
59
+
60
+ Get a specific request log by ID.
61
+
62
+ The log must belong to a machine owned by the authenticated user.
63
+
64
+ Args:
65
+ log_id (UUID):
66
+
67
+ Raises:
68
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
69
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
70
+
71
+ Returns:
72
+ Response[Union[HTTPValidationError, RequestLogResponse]]
73
+ """
74
+
75
+ kwargs = _get_kwargs(
76
+ log_id=log_id,
77
+ )
78
+
79
+ response = client.get_httpx_client().request(
80
+ **kwargs,
81
+ )
82
+
83
+ return _build_response(client=client, response=response)
84
+
85
+
86
+ def sync(
87
+ log_id: UUID,
88
+ *,
89
+ client: AuthenticatedClient,
90
+ ) -> Optional[Union[HTTPValidationError, RequestLogResponse]]:
91
+ """Get Request Log
92
+
93
+ Get a specific request log by ID.
94
+
95
+ The log must belong to a machine owned by the authenticated user.
96
+
97
+ Args:
98
+ log_id (UUID):
99
+
100
+ Raises:
101
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
102
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
103
+
104
+ Returns:
105
+ Union[HTTPValidationError, RequestLogResponse]
106
+ """
107
+
108
+ return sync_detailed(
109
+ log_id=log_id,
110
+ client=client,
111
+ ).parsed
112
+
113
+
114
+ async def asyncio_detailed(
115
+ log_id: UUID,
116
+ *,
117
+ client: AuthenticatedClient,
118
+ ) -> Response[Union[HTTPValidationError, RequestLogResponse]]:
119
+ """Get Request Log
120
+
121
+ Get a specific request log by ID.
122
+
123
+ The log must belong to a machine owned by the authenticated user.
124
+
125
+ Args:
126
+ log_id (UUID):
127
+
128
+ Raises:
129
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
130
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
131
+
132
+ Returns:
133
+ Response[Union[HTTPValidationError, RequestLogResponse]]
134
+ """
135
+
136
+ kwargs = _get_kwargs(
137
+ log_id=log_id,
138
+ )
139
+
140
+ response = await client.get_async_httpx_client().request(**kwargs)
141
+
142
+ return _build_response(client=client, response=response)
143
+
144
+
145
+ async def asyncio(
146
+ log_id: UUID,
147
+ *,
148
+ client: AuthenticatedClient,
149
+ ) -> Optional[Union[HTTPValidationError, RequestLogResponse]]:
150
+ """Get Request Log
151
+
152
+ Get a specific request log by ID.
153
+
154
+ The log must belong to a machine owned by the authenticated user.
155
+
156
+ Args:
157
+ log_id (UUID):
158
+
159
+ Raises:
160
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
161
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
162
+
163
+ Returns:
164
+ Union[HTTPValidationError, RequestLogResponse]
165
+ """
166
+
167
+ return (
168
+ await asyncio_detailed(
169
+ log_id=log_id,
170
+ client=client,
171
+ )
172
+ ).parsed
@@ -0,0 +1,257 @@
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.http_validation_error import HTTPValidationError
10
+ from ...models.paginated_response import PaginatedResponse
11
+ from ...types import UNSET, Response, Unset
12
+
13
+
14
+ def _get_kwargs(
15
+ *,
16
+ machine_id: Union[None, UUID, Unset] = UNSET,
17
+ method: Union[None, Unset, str] = UNSET,
18
+ status_code: Union[None, Unset, int] = UNSET,
19
+ skip: Union[Unset, int] = 0,
20
+ limit: Union[Unset, int] = 100,
21
+ ) -> dict[str, Any]:
22
+ params: dict[str, Any] = {}
23
+
24
+ json_machine_id: Union[None, Unset, str]
25
+ if isinstance(machine_id, Unset):
26
+ json_machine_id = UNSET
27
+ elif isinstance(machine_id, UUID):
28
+ json_machine_id = str(machine_id)
29
+ else:
30
+ json_machine_id = machine_id
31
+ params["machine_id"] = json_machine_id
32
+
33
+ json_method: Union[None, Unset, str]
34
+ if isinstance(method, Unset):
35
+ json_method = UNSET
36
+ else:
37
+ json_method = method
38
+ params["method"] = json_method
39
+
40
+ json_status_code: Union[None, Unset, int]
41
+ if isinstance(status_code, Unset):
42
+ json_status_code = UNSET
43
+ else:
44
+ json_status_code = status_code
45
+ params["status_code"] = json_status_code
46
+
47
+ params["skip"] = skip
48
+
49
+ params["limit"] = limit
50
+
51
+ params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
52
+
53
+ _kwargs: dict[str, Any] = {
54
+ "method": "get",
55
+ "url": "/v1/request-logs",
56
+ "params": params,
57
+ }
58
+
59
+ return _kwargs
60
+
61
+
62
+ def _parse_response(
63
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
64
+ ) -> Optional[Union[HTTPValidationError, PaginatedResponse]]:
65
+ if response.status_code == 200:
66
+ response_200 = PaginatedResponse.from_dict(response.json())
67
+
68
+ return response_200
69
+ if response.status_code == 422:
70
+ response_422 = HTTPValidationError.from_dict(response.json())
71
+
72
+ return response_422
73
+ if client.raise_on_unexpected_status:
74
+ raise errors.UnexpectedStatus(response.status_code, response.content)
75
+ else:
76
+ return None
77
+
78
+
79
+ def _build_response(
80
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
81
+ ) -> Response[Union[HTTPValidationError, PaginatedResponse]]:
82
+ return Response(
83
+ status_code=HTTPStatus(response.status_code),
84
+ content=response.content,
85
+ headers=response.headers,
86
+ parsed=_parse_response(client=client, response=response),
87
+ )
88
+
89
+
90
+ def sync_detailed(
91
+ *,
92
+ client: AuthenticatedClient,
93
+ machine_id: Union[None, UUID, Unset] = UNSET,
94
+ method: Union[None, Unset, str] = UNSET,
95
+ status_code: Union[None, Unset, int] = UNSET,
96
+ skip: Union[Unset, int] = 0,
97
+ limit: Union[Unset, int] = 100,
98
+ ) -> Response[Union[HTTPValidationError, PaginatedResponse]]:
99
+ """List Request Logs
100
+
101
+ List all request logs for the authenticated user's machines.
102
+
103
+ Supports pagination and filtering by machine, HTTP method, and status code.
104
+
105
+ Args:
106
+ machine_id (Union[None, UUID, Unset]): Filter by machine ID
107
+ method (Union[None, Unset, str]): Filter by HTTP method
108
+ status_code (Union[None, Unset, int]): Filter by status code
109
+ skip (Union[Unset, int]): Default: 0.
110
+ limit (Union[Unset, int]): Default: 100.
111
+
112
+ Raises:
113
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
114
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
115
+
116
+ Returns:
117
+ Response[Union[HTTPValidationError, PaginatedResponse]]
118
+ """
119
+
120
+ kwargs = _get_kwargs(
121
+ machine_id=machine_id,
122
+ method=method,
123
+ status_code=status_code,
124
+ skip=skip,
125
+ limit=limit,
126
+ )
127
+
128
+ response = client.get_httpx_client().request(
129
+ **kwargs,
130
+ )
131
+
132
+ return _build_response(client=client, response=response)
133
+
134
+
135
+ def sync(
136
+ *,
137
+ client: AuthenticatedClient,
138
+ machine_id: Union[None, UUID, Unset] = UNSET,
139
+ method: Union[None, Unset, str] = UNSET,
140
+ status_code: Union[None, Unset, int] = UNSET,
141
+ skip: Union[Unset, int] = 0,
142
+ limit: Union[Unset, int] = 100,
143
+ ) -> Optional[Union[HTTPValidationError, PaginatedResponse]]:
144
+ """List Request Logs
145
+
146
+ List all request logs for the authenticated user's machines.
147
+
148
+ Supports pagination and filtering by machine, HTTP method, and status code.
149
+
150
+ Args:
151
+ machine_id (Union[None, UUID, Unset]): Filter by machine ID
152
+ method (Union[None, Unset, str]): Filter by HTTP method
153
+ status_code (Union[None, Unset, int]): Filter by status code
154
+ skip (Union[Unset, int]): Default: 0.
155
+ limit (Union[Unset, int]): Default: 100.
156
+
157
+ Raises:
158
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
159
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
160
+
161
+ Returns:
162
+ Union[HTTPValidationError, PaginatedResponse]
163
+ """
164
+
165
+ return sync_detailed(
166
+ client=client,
167
+ machine_id=machine_id,
168
+ method=method,
169
+ status_code=status_code,
170
+ skip=skip,
171
+ limit=limit,
172
+ ).parsed
173
+
174
+
175
+ async def asyncio_detailed(
176
+ *,
177
+ client: AuthenticatedClient,
178
+ machine_id: Union[None, UUID, Unset] = UNSET,
179
+ method: Union[None, Unset, str] = UNSET,
180
+ status_code: Union[None, Unset, int] = UNSET,
181
+ skip: Union[Unset, int] = 0,
182
+ limit: Union[Unset, int] = 100,
183
+ ) -> Response[Union[HTTPValidationError, PaginatedResponse]]:
184
+ """List Request Logs
185
+
186
+ List all request logs for the authenticated user's machines.
187
+
188
+ Supports pagination and filtering by machine, HTTP method, and status code.
189
+
190
+ Args:
191
+ machine_id (Union[None, UUID, Unset]): Filter by machine ID
192
+ method (Union[None, Unset, str]): Filter by HTTP method
193
+ status_code (Union[None, Unset, int]): Filter by status code
194
+ skip (Union[Unset, int]): Default: 0.
195
+ limit (Union[Unset, int]): Default: 100.
196
+
197
+ Raises:
198
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
199
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
200
+
201
+ Returns:
202
+ Response[Union[HTTPValidationError, PaginatedResponse]]
203
+ """
204
+
205
+ kwargs = _get_kwargs(
206
+ machine_id=machine_id,
207
+ method=method,
208
+ status_code=status_code,
209
+ skip=skip,
210
+ limit=limit,
211
+ )
212
+
213
+ response = await client.get_async_httpx_client().request(**kwargs)
214
+
215
+ return _build_response(client=client, response=response)
216
+
217
+
218
+ async def asyncio(
219
+ *,
220
+ client: AuthenticatedClient,
221
+ machine_id: Union[None, UUID, Unset] = UNSET,
222
+ method: Union[None, Unset, str] = UNSET,
223
+ status_code: Union[None, Unset, int] = UNSET,
224
+ skip: Union[Unset, int] = 0,
225
+ limit: Union[Unset, int] = 100,
226
+ ) -> Optional[Union[HTTPValidationError, PaginatedResponse]]:
227
+ """List Request Logs
228
+
229
+ List all request logs for the authenticated user's machines.
230
+
231
+ Supports pagination and filtering by machine, HTTP method, and status code.
232
+
233
+ Args:
234
+ machine_id (Union[None, UUID, Unset]): Filter by machine ID
235
+ method (Union[None, Unset, str]): Filter by HTTP method
236
+ status_code (Union[None, Unset, int]): Filter by status code
237
+ skip (Union[Unset, int]): Default: 0.
238
+ limit (Union[Unset, int]): Default: 100.
239
+
240
+ Raises:
241
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
242
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
243
+
244
+ Returns:
245
+ Union[HTTPValidationError, PaginatedResponse]
246
+ """
247
+
248
+ return (
249
+ await asyncio_detailed(
250
+ client=client,
251
+ machine_id=machine_id,
252
+ method=method,
253
+ status_code=status_code,
254
+ skip=skip,
255
+ limit=limit,
256
+ )
257
+ ).parsed