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
@@ -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
@@ -1,294 +0,0 @@
1
- from http import HTTPStatus
2
- from typing import Any, Optional, Union
3
-
4
- import httpx
5
-
6
- from ... import errors
7
- from ...client import AuthenticatedClient, Client
8
- from ...models.post_v1_desktop_body import PostV1DesktopBody
9
- from ...models.post_v1_desktop_response_200 import PostV1DesktopResponse200
10
- from ...models.post_v1_desktop_response_400 import PostV1DesktopResponse400
11
- from ...models.post_v1_desktop_response_401 import PostV1DesktopResponse401
12
- from ...models.post_v1_desktop_response_403 import PostV1DesktopResponse403
13
- from ...models.post_v1_desktop_response_404 import PostV1DesktopResponse404
14
- from ...models.post_v1_desktop_response_409 import PostV1DesktopResponse409
15
- from ...models.post_v1_desktop_response_429 import PostV1DesktopResponse429
16
- from ...models.post_v1_desktop_response_500 import PostV1DesktopResponse500
17
- from ...models.post_v1_desktop_response_502 import PostV1DesktopResponse502
18
- from ...types import Response
19
-
20
-
21
- def _get_kwargs(
22
- *,
23
- body: PostV1DesktopBody,
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": "post",
31
- "url": "/v1/desktop",
32
- }
33
-
34
- _body = body.to_dict()
35
-
36
- _kwargs["json"] = _body
37
- headers["Content-Type"] = "application/json"
38
-
39
- _kwargs["headers"] = headers
40
- return _kwargs
41
-
42
-
43
- def _parse_response(
44
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
45
- ) -> Optional[
46
- Union[
47
- PostV1DesktopResponse200,
48
- PostV1DesktopResponse400,
49
- PostV1DesktopResponse401,
50
- PostV1DesktopResponse403,
51
- PostV1DesktopResponse404,
52
- PostV1DesktopResponse409,
53
- PostV1DesktopResponse429,
54
- PostV1DesktopResponse500,
55
- PostV1DesktopResponse502,
56
- ]
57
- ]:
58
- if response.status_code == 200:
59
- response_200 = PostV1DesktopResponse200.from_dict(response.json())
60
-
61
- return response_200
62
- if response.status_code == 400:
63
- response_400 = PostV1DesktopResponse400.from_dict(response.json())
64
-
65
- return response_400
66
- if response.status_code == 401:
67
- response_401 = PostV1DesktopResponse401.from_dict(response.json())
68
-
69
- return response_401
70
- if response.status_code == 403:
71
- response_403 = PostV1DesktopResponse403.from_dict(response.json())
72
-
73
- return response_403
74
- if response.status_code == 404:
75
- response_404 = PostV1DesktopResponse404.from_dict(response.json())
76
-
77
- return response_404
78
- if response.status_code == 409:
79
- response_409 = PostV1DesktopResponse409.from_dict(response.json())
80
-
81
- return response_409
82
- if response.status_code == 429:
83
- response_429 = PostV1DesktopResponse429.from_dict(response.json())
84
-
85
- return response_429
86
- if response.status_code == 500:
87
- response_500 = PostV1DesktopResponse500.from_dict(response.json())
88
-
89
- return response_500
90
- if response.status_code == 502:
91
- response_502 = PostV1DesktopResponse502.from_dict(response.json())
92
-
93
- return response_502
94
- if client.raise_on_unexpected_status:
95
- raise errors.UnexpectedStatus(response.status_code, response.content)
96
- else:
97
- return None
98
-
99
-
100
- def _build_response(
101
- *, client: Union[AuthenticatedClient, Client], response: httpx.Response
102
- ) -> Response[
103
- Union[
104
- PostV1DesktopResponse200,
105
- PostV1DesktopResponse400,
106
- PostV1DesktopResponse401,
107
- PostV1DesktopResponse403,
108
- PostV1DesktopResponse404,
109
- PostV1DesktopResponse409,
110
- PostV1DesktopResponse429,
111
- PostV1DesktopResponse500,
112
- PostV1DesktopResponse502,
113
- ]
114
- ]:
115
- return Response(
116
- status_code=HTTPStatus(response.status_code),
117
- content=response.content,
118
- headers=response.headers,
119
- parsed=_parse_response(client=client, response=response),
120
- )
121
-
122
-
123
- def sync_detailed(
124
- *,
125
- client: Union[AuthenticatedClient, Client],
126
- body: PostV1DesktopBody,
127
- x_api_key: str,
128
- ) -> Response[
129
- Union[
130
- PostV1DesktopResponse200,
131
- PostV1DesktopResponse400,
132
- PostV1DesktopResponse401,
133
- PostV1DesktopResponse403,
134
- PostV1DesktopResponse404,
135
- PostV1DesktopResponse409,
136
- PostV1DesktopResponse429,
137
- PostV1DesktopResponse500,
138
- PostV1DesktopResponse502,
139
- ]
140
- ]:
141
- """Create a new virtual desktop instance
142
-
143
- Creates a new virtual desktop instance and returns its ID and stream URL
144
-
145
- Args:
146
- x_api_key (str): API key for authentication Example: api_12345.
147
- body (PostV1DesktopBody):
148
-
149
- Raises:
150
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
151
- httpx.TimeoutException: If the request takes longer than Client.timeout.
152
-
153
- Returns:
154
- Response[Union[PostV1DesktopResponse200, PostV1DesktopResponse400, PostV1DesktopResponse401, PostV1DesktopResponse403, PostV1DesktopResponse404, PostV1DesktopResponse409, PostV1DesktopResponse429, PostV1DesktopResponse500, PostV1DesktopResponse502]]
155
- """
156
-
157
- kwargs = _get_kwargs(
158
- body=body,
159
- x_api_key=x_api_key,
160
- )
161
-
162
- response = client.get_httpx_client().request(
163
- **kwargs,
164
- )
165
-
166
- return _build_response(client=client, response=response)
167
-
168
-
169
- def sync(
170
- *,
171
- client: Union[AuthenticatedClient, Client],
172
- body: PostV1DesktopBody,
173
- x_api_key: str,
174
- ) -> Optional[
175
- Union[
176
- PostV1DesktopResponse200,
177
- PostV1DesktopResponse400,
178
- PostV1DesktopResponse401,
179
- PostV1DesktopResponse403,
180
- PostV1DesktopResponse404,
181
- PostV1DesktopResponse409,
182
- PostV1DesktopResponse429,
183
- PostV1DesktopResponse500,
184
- PostV1DesktopResponse502,
185
- ]
186
- ]:
187
- """Create a new virtual desktop instance
188
-
189
- Creates a new virtual desktop instance and returns its ID and stream URL
190
-
191
- Args:
192
- x_api_key (str): API key for authentication Example: api_12345.
193
- body (PostV1DesktopBody):
194
-
195
- Raises:
196
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
197
- httpx.TimeoutException: If the request takes longer than Client.timeout.
198
-
199
- Returns:
200
- Union[PostV1DesktopResponse200, PostV1DesktopResponse400, PostV1DesktopResponse401, PostV1DesktopResponse403, PostV1DesktopResponse404, PostV1DesktopResponse409, PostV1DesktopResponse429, PostV1DesktopResponse500, PostV1DesktopResponse502]
201
- """
202
-
203
- return sync_detailed(
204
- client=client,
205
- body=body,
206
- x_api_key=x_api_key,
207
- ).parsed
208
-
209
-
210
- async def asyncio_detailed(
211
- *,
212
- client: Union[AuthenticatedClient, Client],
213
- body: PostV1DesktopBody,
214
- x_api_key: str,
215
- ) -> Response[
216
- Union[
217
- PostV1DesktopResponse200,
218
- PostV1DesktopResponse400,
219
- PostV1DesktopResponse401,
220
- PostV1DesktopResponse403,
221
- PostV1DesktopResponse404,
222
- PostV1DesktopResponse409,
223
- PostV1DesktopResponse429,
224
- PostV1DesktopResponse500,
225
- PostV1DesktopResponse502,
226
- ]
227
- ]:
228
- """Create a new virtual desktop instance
229
-
230
- Creates a new virtual desktop instance and returns its ID and stream URL
231
-
232
- Args:
233
- x_api_key (str): API key for authentication Example: api_12345.
234
- body (PostV1DesktopBody):
235
-
236
- Raises:
237
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
238
- httpx.TimeoutException: If the request takes longer than Client.timeout.
239
-
240
- Returns:
241
- Response[Union[PostV1DesktopResponse200, PostV1DesktopResponse400, PostV1DesktopResponse401, PostV1DesktopResponse403, PostV1DesktopResponse404, PostV1DesktopResponse409, PostV1DesktopResponse429, PostV1DesktopResponse500, PostV1DesktopResponse502]]
242
- """
243
-
244
- kwargs = _get_kwargs(
245
- body=body,
246
- x_api_key=x_api_key,
247
- )
248
-
249
- response = await client.get_async_httpx_client().request(**kwargs)
250
-
251
- return _build_response(client=client, response=response)
252
-
253
-
254
- async def asyncio(
255
- *,
256
- client: Union[AuthenticatedClient, Client],
257
- body: PostV1DesktopBody,
258
- x_api_key: str,
259
- ) -> Optional[
260
- Union[
261
- PostV1DesktopResponse200,
262
- PostV1DesktopResponse400,
263
- PostV1DesktopResponse401,
264
- PostV1DesktopResponse403,
265
- PostV1DesktopResponse404,
266
- PostV1DesktopResponse409,
267
- PostV1DesktopResponse429,
268
- PostV1DesktopResponse500,
269
- PostV1DesktopResponse502,
270
- ]
271
- ]:
272
- """Create a new virtual desktop instance
273
-
274
- Creates a new virtual desktop instance and returns its ID and stream URL
275
-
276
- Args:
277
- x_api_key (str): API key for authentication Example: api_12345.
278
- body (PostV1DesktopBody):
279
-
280
- Raises:
281
- errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
282
- httpx.TimeoutException: If the request takes longer than Client.timeout.
283
-
284
- Returns:
285
- Union[PostV1DesktopResponse200, PostV1DesktopResponse400, PostV1DesktopResponse401, PostV1DesktopResponse403, PostV1DesktopResponse404, PostV1DesktopResponse409, PostV1DesktopResponse429, PostV1DesktopResponse500, PostV1DesktopResponse502]
286
- """
287
-
288
- return (
289
- await asyncio_detailed(
290
- client=client,
291
- body=body,
292
- x_api_key=x_api_key,
293
- )
294
- ).parsed