cyberdesk 0.2.6__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.
- cyberdesk/__init__.py +45 -7
- cyberdesk/client.py +779 -70
- cyberdesk-1.0.0.dist-info/METADATA +274 -0
- cyberdesk-1.0.0.dist-info/RECORD +114 -0
- {cyberdesk-0.2.6.dist-info → cyberdesk-1.0.0.dist-info}/WHEEL +1 -1
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/__init__.py +8 -8
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/api/__init__.py +1 -1
- openapi_client/{api_reference_client/api/desktop → cyberdesk_cloud_client/api/computer}/__init__.py +1 -1
- openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +163 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +163 -0
- openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +158 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +187 -0
- openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +183 -0
- openapi_client/cyberdesk_cloud_client/api/connections/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +244 -0
- openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/default/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/default/root_get.py +83 -0
- openapi_client/cyberdesk_cloud_client/api/health/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +146 -0
- openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +144 -0
- openapi_client/cyberdesk_cloud_client/api/machines/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +174 -0
- openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +217 -0
- openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +184 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +257 -0
- openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +202 -0
- openapi_client/cyberdesk_cloud_client/api/runs/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +188 -0
- openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +266 -0
- openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +202 -0
- openapi_client/cyberdesk_cloud_client/api/test/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +156 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +184 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +170 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +176 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +221 -0
- openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +198 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py +1 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +180 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +174 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +172 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +185 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +194 -0
- openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +202 -0
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/client.py +268 -268
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/errors.py +16 -16
- openapi_client/cyberdesk_cloud_client/models/__init__.py +107 -0
- openapi_client/cyberdesk_cloud_client/models/connection_create.py +111 -0
- openapi_client/cyberdesk_cloud_client/models/connection_response.py +171 -0
- openapi_client/{api_reference_client/models/get_v1_desktop_id_response_404_status.py → cyberdesk_cloud_client/models/connection_status.py} +10 -8
- openapi_client/cyberdesk_cloud_client/models/connection_update.py +145 -0
- openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_id_bash_action_body.py → cyberdesk_cloud_client/models/display_dimensions.py} +67 -59
- openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +75 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_body.py → cyberdesk_cloud_client/models/keyboard_key_request.py} +59 -59
- openapi_client/{api_reference_client/models/post_v1_desktop_id_stop_response_200.py → cyberdesk_cloud_client/models/keyboard_type_request.py} +59 -62
- openapi_client/cyberdesk_cloud_client/models/machine_create.py +130 -0
- openapi_client/cyberdesk_cloud_client/models/machine_response.py +182 -0
- openapi_client/{api_reference_client/models/get_v1_desktop_id_response_403_status.py → cyberdesk_cloud_client/models/machine_status.py} +10 -8
- openapi_client/cyberdesk_cloud_client/models/machine_update.py +195 -0
- openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +109 -0
- 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
- 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
- openapi_client/cyberdesk_cloud_client/models/paginated_response.py +84 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +97 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_create.py +187 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_response.py +230 -0
- openapi_client/cyberdesk_cloud_client/models/request_log_update.py +164 -0
- openapi_client/cyberdesk_cloud_client/models/run_create.py +94 -0
- openapi_client/cyberdesk_cloud_client/models/run_response.py +228 -0
- openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_response_200_status.py → cyberdesk_cloud_client/models/run_status.py} +12 -11
- openapi_client/cyberdesk_cloud_client/models/run_update.py +226 -0
- openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +83 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +117 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +99 -0
- openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +44 -0
- openapi_client/{api_reference_client/models/post_v1_desktop_id_computer_action_wait_action.py → cyberdesk_cloud_client/models/validation_error.py} +88 -70
- openapi_client/cyberdesk_cloud_client/models/workflow_create.py +82 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_response.py +164 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +44 -0
- openapi_client/cyberdesk_cloud_client/models/workflow_update.py +92 -0
- openapi_client/{api_reference_client → cyberdesk_cloud_client}/types.py +54 -46
- cyberdesk/actions.py +0 -38
- cyberdesk/types.py +0 -50
- cyberdesk-0.2.6.dist-info/METADATA +0 -226
- cyberdesk-0.2.6.dist-info/RECORD +0 -136
- openapi_client/api_reference_client/api/desktop/get_v1_desktop_id.py +0 -293
- openapi_client/api_reference_client/api/desktop/post_v1_desktop.py +0 -294
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_bash_action.py +0 -307
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_computer_action.py +0 -419
- openapi_client/api_reference_client/api/desktop/post_v1_desktop_id_stop.py +0 -288
- openapi_client/api_reference_client/models/__init__.py +0 -249
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200.py +0 -104
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_200_status.py +0 -11
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_403.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_404.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502.py +0 -69
- openapi_client/api_reference_client/models/get_v1_desktop_id_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_200.py +0 -79
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_bash_action_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action.py +0 -133
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_button.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_click_type.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_click_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action.py +0 -98
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_drag_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action.py +0 -64
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_get_cursor_position_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action.py +0 -80
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_move_mouse_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action.py +0 -109
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_key_action_type.py +0 -10
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_press_keys_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_200.py +0 -79
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action.py +0 -63
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_screenshot_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action.py +0 -81
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_direction.py +0 -11
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_scroll_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action.py +0 -71
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_type_text_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_computer_action_wait_action_type.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_200_status.py +0 -11
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_id_stop_response_502_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_200.py +0 -70
- openapi_client/api_reference_client/models/post_v1_desktop_response_400.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_400_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_401.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_401_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_403.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_403_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_404.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_404_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_409.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_409_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_429.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_429_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_500.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_500_status.py +0 -8
- openapi_client/api_reference_client/models/post_v1_desktop_response_502.py +0 -69
- openapi_client/api_reference_client/models/post_v1_desktop_response_502_status.py +0 -8
- {cyberdesk-0.2.6.dist-info → cyberdesk-1.0.0.dist-info}/licenses/LICENSE +0 -0
- {cyberdesk-0.2.6.dist-info → cyberdesk-1.0.0.dist-info}/top_level.txt +0 -0
- /openapi_client/{api_reference_client → cyberdesk_cloud_client}/py.typed +0 -0
|
@@ -0,0 +1,274 @@
|
|
|
1
|
+
Metadata-Version: 2.4
|
|
2
|
+
Name: cyberdesk
|
|
3
|
+
Version: 1.0.0
|
|
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 Python SDK
|
|
18
|
+
|
|
19
|
+
The official Python SDK for Cyberdesk API. This SDK provides a clean, type-safe interface for interacting with all Cyberdesk resources including machines, workflows, runs, connections, and trajectories.
|
|
20
|
+
|
|
21
|
+
## Installation
|
|
22
|
+
|
|
23
|
+
```bash
|
|
24
|
+
pip install cyberdesk
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Quick Start
|
|
28
|
+
|
|
29
|
+
```python
|
|
30
|
+
from cyberdesk import CyberdeskClient
|
|
31
|
+
|
|
32
|
+
# Initialize the client
|
|
33
|
+
client = CyberdeskClient(api_key="your-api-key")
|
|
34
|
+
|
|
35
|
+
# List machines
|
|
36
|
+
response = client.machines.list_sync()
|
|
37
|
+
if response.data:
|
|
38
|
+
for machine in response.data.items:
|
|
39
|
+
print(f"Machine: {machine.name} - Status: {machine.status}")
|
|
40
|
+
|
|
41
|
+
# Create a workflow
|
|
42
|
+
from cyberdesk import WorkflowCreate
|
|
43
|
+
|
|
44
|
+
workflow_data = WorkflowCreate(
|
|
45
|
+
name="My Workflow",
|
|
46
|
+
description="Automated task workflow"
|
|
47
|
+
)
|
|
48
|
+
response = client.workflows.create_sync(workflow_data)
|
|
49
|
+
if response.data:
|
|
50
|
+
print(f"Created workflow: {response.data.id}")
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
## Async Support
|
|
54
|
+
|
|
55
|
+
The SDK provides both synchronous and asynchronous methods for all operations:
|
|
56
|
+
|
|
57
|
+
```python
|
|
58
|
+
import asyncio
|
|
59
|
+
from cyberdesk import CyberdeskClient
|
|
60
|
+
|
|
61
|
+
async def main():
|
|
62
|
+
client = CyberdeskClient(api_key="your-api-key")
|
|
63
|
+
|
|
64
|
+
# Async method
|
|
65
|
+
response = await client.machines.list()
|
|
66
|
+
if response.data:
|
|
67
|
+
for machine in response.data.items:
|
|
68
|
+
print(f"Machine: {machine.name}")
|
|
69
|
+
|
|
70
|
+
asyncio.run(main())
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
## Resources
|
|
74
|
+
|
|
75
|
+
### Machines
|
|
76
|
+
|
|
77
|
+
```python
|
|
78
|
+
# List machines
|
|
79
|
+
response = client.machines.list_sync(
|
|
80
|
+
skip=0,
|
|
81
|
+
limit=10,
|
|
82
|
+
status=MachineStatus.ACTIVE
|
|
83
|
+
)
|
|
84
|
+
|
|
85
|
+
# Get a specific machine
|
|
86
|
+
response = client.machines.get_sync("machine-id")
|
|
87
|
+
|
|
88
|
+
# Create a machine
|
|
89
|
+
from cyberdesk import MachineCreate
|
|
90
|
+
|
|
91
|
+
machine = MachineCreate(
|
|
92
|
+
name="My Machine",
|
|
93
|
+
provider="azure",
|
|
94
|
+
region="eastus"
|
|
95
|
+
)
|
|
96
|
+
response = client.machines.create_sync(machine)
|
|
97
|
+
|
|
98
|
+
# Update a machine
|
|
99
|
+
from cyberdesk import MachineUpdate
|
|
100
|
+
|
|
101
|
+
update = MachineUpdate(name="Updated Name")
|
|
102
|
+
response = client.machines.update_sync("machine-id", update)
|
|
103
|
+
|
|
104
|
+
# Delete a machine
|
|
105
|
+
response = client.machines.delete_sync("machine-id")
|
|
106
|
+
```
|
|
107
|
+
|
|
108
|
+
### Workflows
|
|
109
|
+
|
|
110
|
+
```python
|
|
111
|
+
# List workflows
|
|
112
|
+
response = client.workflows.list_sync()
|
|
113
|
+
|
|
114
|
+
# Get a workflow
|
|
115
|
+
response = client.workflows.get_sync("workflow-id")
|
|
116
|
+
|
|
117
|
+
# Create a workflow
|
|
118
|
+
from cyberdesk import WorkflowCreate
|
|
119
|
+
|
|
120
|
+
workflow = WorkflowCreate(
|
|
121
|
+
name="My Workflow",
|
|
122
|
+
description="Description"
|
|
123
|
+
)
|
|
124
|
+
response = client.workflows.create_sync(workflow)
|
|
125
|
+
|
|
126
|
+
# Update a workflow
|
|
127
|
+
from cyberdesk import WorkflowUpdate
|
|
128
|
+
|
|
129
|
+
update = WorkflowUpdate(description="New description")
|
|
130
|
+
response = client.workflows.update_sync("workflow-id", update)
|
|
131
|
+
|
|
132
|
+
# Delete a workflow
|
|
133
|
+
response = client.workflows.delete_sync("workflow-id")
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
### Runs
|
|
137
|
+
|
|
138
|
+
```python
|
|
139
|
+
# List runs with filtering
|
|
140
|
+
response = client.runs.list_sync(
|
|
141
|
+
workflow_id="workflow-id",
|
|
142
|
+
machine_id="machine-id",
|
|
143
|
+
status=RunStatus.RUNNING
|
|
144
|
+
)
|
|
145
|
+
|
|
146
|
+
# Create a run
|
|
147
|
+
from cyberdesk import RunCreate
|
|
148
|
+
|
|
149
|
+
run = RunCreate(
|
|
150
|
+
workflow_id="workflow-id",
|
|
151
|
+
machine_id="machine-id"
|
|
152
|
+
)
|
|
153
|
+
response = client.runs.create_sync(run)
|
|
154
|
+
|
|
155
|
+
# Get run details
|
|
156
|
+
response = client.runs.get_sync("run-id")
|
|
157
|
+
|
|
158
|
+
# Update run status
|
|
159
|
+
from cyberdesk import RunUpdate
|
|
160
|
+
|
|
161
|
+
update = RunUpdate(status=RunStatus.COMPLETED)
|
|
162
|
+
response = client.runs.update_sync("run-id", update)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
### Connections
|
|
166
|
+
|
|
167
|
+
```python
|
|
168
|
+
# List connections
|
|
169
|
+
response = client.connections.list_sync(
|
|
170
|
+
machine_id="machine-id",
|
|
171
|
+
status=ConnectionStatus.ACTIVE
|
|
172
|
+
)
|
|
173
|
+
|
|
174
|
+
# Create a connection
|
|
175
|
+
from cyberdesk import ConnectionCreate
|
|
176
|
+
|
|
177
|
+
connection = ConnectionCreate(
|
|
178
|
+
machine_id="machine-id",
|
|
179
|
+
connection_type="vnc"
|
|
180
|
+
)
|
|
181
|
+
response = client.connections.create_sync(connection)
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
### Trajectories
|
|
185
|
+
|
|
186
|
+
```python
|
|
187
|
+
# List trajectories
|
|
188
|
+
response = client.trajectories.list_sync(workflow_id="workflow-id")
|
|
189
|
+
|
|
190
|
+
# Create a trajectory
|
|
191
|
+
from cyberdesk import TrajectoryCreate
|
|
192
|
+
|
|
193
|
+
trajectory = TrajectoryCreate(
|
|
194
|
+
workflow_id="workflow-id",
|
|
195
|
+
trajectory_data=[{"action": "click", "x": 100, "y": 200}]
|
|
196
|
+
)
|
|
197
|
+
response = client.trajectories.create_sync(trajectory)
|
|
198
|
+
|
|
199
|
+
# Get latest trajectory for a workflow
|
|
200
|
+
response = client.trajectories.get_latest_for_workflow_sync("workflow-id")
|
|
201
|
+
|
|
202
|
+
# Update a trajectory
|
|
203
|
+
from cyberdesk import TrajectoryUpdate
|
|
204
|
+
|
|
205
|
+
update = TrajectoryUpdate(
|
|
206
|
+
trajectory_data=[{"action": "type", "text": "Hello"}]
|
|
207
|
+
)
|
|
208
|
+
response = client.trajectories.update_sync("trajectory-id", update)
|
|
209
|
+
```
|
|
210
|
+
|
|
211
|
+
## Error Handling
|
|
212
|
+
|
|
213
|
+
All methods return an `ApiResponse` object with `data` and `error` attributes:
|
|
214
|
+
|
|
215
|
+
```python
|
|
216
|
+
response = client.machines.get_sync("invalid-id")
|
|
217
|
+
if response.error:
|
|
218
|
+
print(f"Error: {response.error}")
|
|
219
|
+
else:
|
|
220
|
+
print(f"Machine: {response.data.name}")
|
|
221
|
+
```
|
|
222
|
+
|
|
223
|
+
## Context Manager
|
|
224
|
+
|
|
225
|
+
The client can be used as a context manager:
|
|
226
|
+
|
|
227
|
+
```python
|
|
228
|
+
with CyberdeskClient(api_key="your-api-key") as client:
|
|
229
|
+
response = client.machines.list_sync()
|
|
230
|
+
# Client will be properly closed when exiting the context
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
## Configuration
|
|
234
|
+
|
|
235
|
+
You can specify a custom API base URL:
|
|
236
|
+
|
|
237
|
+
```python
|
|
238
|
+
client = CyberdeskClient(
|
|
239
|
+
api_key="your-api-key",
|
|
240
|
+
base_url="https://custom-api.cyberdesk.io"
|
|
241
|
+
)
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
## Type Safety
|
|
245
|
+
|
|
246
|
+
The SDK is fully typed and exports all request/response models:
|
|
247
|
+
|
|
248
|
+
```python
|
|
249
|
+
from cyberdesk import (
|
|
250
|
+
MachineCreate,
|
|
251
|
+
MachineUpdate,
|
|
252
|
+
MachineResponse,
|
|
253
|
+
MachineStatus,
|
|
254
|
+
WorkflowCreate,
|
|
255
|
+
WorkflowResponse,
|
|
256
|
+
RunCreate,
|
|
257
|
+
RunStatus,
|
|
258
|
+
# ... and more
|
|
259
|
+
)
|
|
260
|
+
```
|
|
261
|
+
|
|
262
|
+
## Limitations
|
|
263
|
+
|
|
264
|
+
- **Screenshot API**: The `/v1/computer/{machine_id}/display/screenshot` endpoint is not included in the generated client due to limitations with binary (PNG) responses in the openapi-python-client generator. This can be added manually if needed - see the TODO comment in `client.py`.
|
|
265
|
+
|
|
266
|
+
## Requirements
|
|
267
|
+
|
|
268
|
+
- Python 3.8+
|
|
269
|
+
- httpx
|
|
270
|
+
- pydantic
|
|
271
|
+
|
|
272
|
+
## License
|
|
273
|
+
|
|
274
|
+
MIT License - see LICENSE file for details.
|
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
cyberdesk/__init__.py,sha256=0fE2OVSVOA8OSj1m1yrctC0IW19lb-xqN86GM4qSeZo,845
|
|
2
|
+
cyberdesk/client.py,sha256=f3kT8v_ip5b49IYVoxNRgILd0SVLs_8MH5OiAkGF_IU,27713
|
|
3
|
+
cyberdesk-1.0.0.dist-info/licenses/LICENSE,sha256=06Op63FCwGhuUOz__M8IZW5sxd29WxyGC4X5-Uih7IQ,1071
|
|
4
|
+
openapi_client/cyberdesk_cloud_client/__init__.py,sha256=r_uVkNUL-SOK8j7-KiGMIKdinES5X8K1Q250ySX2F-A,158
|
|
5
|
+
openapi_client/cyberdesk_cloud_client/client.py,sha256=o_mdLqyBCQstu5tS1WZFwqIEbGwkvWQ7eQjuCJw_5VY,12419
|
|
6
|
+
openapi_client/cyberdesk_cloud_client/errors.py,sha256=gO8GBmKqmSNgAg-E5oT-oOyxztvp7V_6XG7OUTT15q0,546
|
|
7
|
+
openapi_client/cyberdesk_cloud_client/py.typed,sha256=8ZJUsxZiuOy1oJeVhsTWQhTG_6pTVHVXk5hJL79ebTk,25
|
|
8
|
+
openapi_client/cyberdesk_cloud_client/types.py,sha256=AX4orxQZQJat3vZrgjJ-TYb2sNBL8kNo9yqYDT-n8y8,1391
|
|
9
|
+
openapi_client/cyberdesk_cloud_client/api/__init__.py,sha256=zTSiG_ujSjAqWPyc435YXaX9XTlpMjiJWBbV-f-YtdA,45
|
|
10
|
+
openapi_client/cyberdesk_cloud_client/api/computer/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
11
|
+
openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py,sha256=aHCgck_f0IvtoNtmIF91mFrmNW4jSfh-lQkUFbgZbrY,4356
|
|
12
|
+
openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py,sha256=6vl34SKSBiRqeuHJrzQIS1hVSrIcQn4UaRejfDq4HvM,4274
|
|
13
|
+
openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py,sha256=aXmTIvBfyMR279Qjot6zvyFQovUJs3bI1oFNR8Zcq4Q,3888
|
|
14
|
+
openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py,sha256=14iKQ2Pj9YCc4YgbNhsmIM8y4hO_xMzm2aOFMIFE4j8,4948
|
|
15
|
+
openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py,sha256=tVBv4T6cg5UscdZtFuZpV4WJFF1Lqg7jDP97dbpoPnk,4664
|
|
16
|
+
openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py,sha256=_b8dCyAI0W3Fr0Ra5vo35yJuMb36cS0o41SSlLT1xf8,4984
|
|
17
|
+
openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py,sha256=CNfIj6oTs8QSRo4674pmHw9kJQIBw7D-u7mKT62tMDg,4704
|
|
18
|
+
openapi_client/cyberdesk_cloud_client/api/connections/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
19
|
+
openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py,sha256=063OBpx_Hgn5A9kKINc9kD4emMDLPR23acamQ8sBGBY,5046
|
|
20
|
+
openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py,sha256=-eiGKQa9Y2RW3zKsdygsAt636YyCVoy30DUdu6ce6yE,4653
|
|
21
|
+
openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py,sha256=_UbfT-6fcRM5l-pg66T9knVYWsPA4IOLr8ykF60Euh0,4678
|
|
22
|
+
openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py,sha256=1w9ZUJEn_2S3YqjAUZF-pN-BchDD2P7CWXTTeIIVzP8,7872
|
|
23
|
+
openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py,sha256=Qiu9ku2NEtLNk3PNgcRz5TDFg56M57gwi76fhYxvkKM,5703
|
|
24
|
+
openapi_client/cyberdesk_cloud_client/api/default/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
25
|
+
openapi_client/cyberdesk_cloud_client/api/default/root_get.py,sha256=Wba5aa7-F_8KDoW6hjr4yRWtftT42lTUrNzMlhmBc8A,2153
|
|
26
|
+
openapi_client/cyberdesk_cloud_client/api/health/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
27
|
+
openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py,sha256=uxeoQZ9HTbG-MsUC4iod-IbF3Zg0fhcRSanN0fu5krc,4464
|
|
28
|
+
openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py,sha256=Lv0XTq99x8W9suZ-haArPlEfzNGNw99rfY-VJmXbSss,4111
|
|
29
|
+
openapi_client/cyberdesk_cloud_client/api/machines/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
30
|
+
openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py,sha256=Z8IRAgihoV6t8w_sigNwSbhTNBYJusS5kXf6Jj4nOvQ,4763
|
|
31
|
+
openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py,sha256=JJLXjt0b27W_nXTgc_7hu9rLmG_2595c0UvOYQ3mwKk,4552
|
|
32
|
+
openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py,sha256=gCg0S4-ofZXTEJr0LZnVyVQZINxJzfT-uwlP3w0Vwoo,4470
|
|
33
|
+
openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py,sha256=B5QGXMfIMLa_0_JJdKWFAS6pVZnhGPxF91cO0RrkxG0,6467
|
|
34
|
+
openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py,sha256=qWlvxsepE1dOcISrzb4NSdK_EpTQdzgUaPX6HP9Lil0,5414
|
|
35
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
36
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py,sha256=d7i7FsfCdOTLn5JPTx_jyqfToEa7Kkym1EO6RYhP_Xc,5125
|
|
37
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py,sha256=tn8aMwAuNTcCUy5MeCynyTRvjhcP1Qiz9je0QaIc88Q,4468
|
|
38
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py,sha256=ooWgn9o_AGVP2EEPQjCAkOmcy4-jF42s2ocTKPU4O2o,4534
|
|
39
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py,sha256=_CpUhLbesyefEaC5X_NeKWe3DTjILMDmn28eWrUYvVE,8076
|
|
40
|
+
openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py,sha256=7PGcu1GnN3EEkPo6cAZO45qRqd5cxK2Ge_rBp0__nfQ,5880
|
|
41
|
+
openapi_client/cyberdesk_cloud_client/api/runs/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
42
|
+
openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py,sha256=WarcoB_UIzZsTcvFGWAYZhjA0LsIY4wcP89wILtsTZs,5343
|
|
43
|
+
openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py,sha256=ux5K74BTi5jarECVfTc5AxgAhDPfuFkt1XmaWWmRdLE,4116
|
|
44
|
+
openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py,sha256=tWXVlLtiWl3XmAPQf4_V0SzPoenVKazWSiL4afDEmwE,4562
|
|
45
|
+
openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py,sha256=PJwEgUNMCIBceQ1SajDk5TWTMxbVZMaO3dr2Ujd22MU,8598
|
|
46
|
+
openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py,sha256=chYVZetLivmzG_E95TNZ_CYgrfamN9kRv3n1DqKj25M,5538
|
|
47
|
+
openapi_client/cyberdesk_cloud_client/api/test/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
48
|
+
openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py,sha256=sxmvHugxdpK3jb8jmjUfo-pbzmmNU92C-Ze8quxSWC8,4642
|
|
49
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
50
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py,sha256=9a0H8wVXCTD9NU9aHIu25uRv38ukhf8Mtc9PEblYUYU,5167
|
|
51
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py,sha256=A9l3PVeIys8PcGKxlTVC3ynIIBaWDLeit--aF3fEEx0,4334
|
|
52
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py,sha256=JuV5Uk34xp4jXNv-Av3g9VRTLPEpZpAqZqwgMQXh_xQ,4994
|
|
53
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py,sha256=TDC94aElIe-vgCMPe6HAHxs9cXbJMKx7EhxPBRmxLnA,4851
|
|
54
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py,sha256=kkQUtDgInYDMJJ5TRVorzYSnzsR1jX9fQ624AzOEn2w,6801
|
|
55
|
+
openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py,sha256=WRORvssODbwPiSxoIWbqbr7vnou8MXmJ-jVrw5EGxsU,5564
|
|
56
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py,sha256=5vd9uJWAjRqa9xzxzYkLD1yoZ12Ld_bAaNB5WX4fbE8,56
|
|
57
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py,sha256=0ptBDTpsYfjvy8PkA-pFtdnu1UW1l1GD8eA37qMqe70,4804
|
|
58
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py,sha256=slpa1XsN02Sfo8fFqZ7BNkxuwYKhDUXa7vj7jRB3cDo,4527
|
|
59
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py,sha256=qwQ8pv1RbNPhDpzBQwOyDgYeJCZw-4q2STWu57RLQVA,4514
|
|
60
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py,sha256=jBJJwJQfKBBYTX1FhSe7qWFxK0ZvYD_QKcrxTgo361U,5857
|
|
61
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py,sha256=xM1Ex78PdeJK2IrQ10ghKqk93FwNGOnVOPt666hUhwE,5626
|
|
62
|
+
openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py,sha256=G6l9aClbapqjCmDsjK01447iqRKhRFp9CnJDLHV8OBc,5705
|
|
63
|
+
openapi_client/cyberdesk_cloud_client/models/__init__.py,sha256=0ARk5hCz4_Nep82ctdSYzVerG3YwcNIn1t5h_PeuVt4,4740
|
|
64
|
+
openapi_client/cyberdesk_cloud_client/models/connection_create.py,sha256=gCI36DmjJDZxzGFPbykyYw9k4QEf_4dVNz9b-xZfLo4,3288
|
|
65
|
+
openapi_client/cyberdesk_cloud_client/models/connection_response.py,sha256=aFxqJX75wSEw5dZ-kvh3Wgv_haJ6xYJ7o72vSAbEtHY,5247
|
|
66
|
+
openapi_client/cyberdesk_cloud_client/models/connection_status.py,sha256=XTpa-W0TinYhypU7P-LaJEI3I2JsEaT3voUZQ3zoJO0,203
|
|
67
|
+
openapi_client/cyberdesk_cloud_client/models/connection_update.py,sha256=nNSzlOF6Z_1szRipoWjU33wESqcxeuo48d1qv_Dzm50,4870
|
|
68
|
+
openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py,sha256=ubG8Qi6xR4BBxLB9fZYfWZ0AqZr3_ywj9-MkWJcOZSM,1544
|
|
69
|
+
openapi_client/cyberdesk_cloud_client/models/display_dimensions.py,sha256=_YjSuYuJIzETS5QzOUxsUJvgrOuvScDlUSUp36sr5Dk,1640
|
|
70
|
+
openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py,sha256=9z2ys68FDs76-xnXgUTB76gFEIss6qOKwTekFbBiGA4,1488
|
|
71
|
+
openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py,sha256=awMbgNS26JsLsyyRMKYHP_BGi9g5VKSVK65z-v4p35g,1505
|
|
72
|
+
openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py,sha256=xiy1oRClleq7BPHm8Ud_qd03gVkN9uI23PCm0PkLRNY,1432
|
|
73
|
+
openapi_client/cyberdesk_cloud_client/models/http_validation_error.py,sha256=OvQ-alRPbtXXwrQunI1Cp1-BWf7ZkVHkigk-YVMFXN0,2213
|
|
74
|
+
openapi_client/cyberdesk_cloud_client/models/keyboard_key_request.py,sha256=iZ2uFo_pgZ59xX04hJZpl49dfVLqTchtAYVUWZX8MEM,1475
|
|
75
|
+
openapi_client/cyberdesk_cloud_client/models/keyboard_type_request.py,sha256=Jgzt14kcl8kfdEJYI3BSnHgxVbFnUIUjBQDF1ly-vIY,1480
|
|
76
|
+
openapi_client/cyberdesk_cloud_client/models/machine_create.py,sha256=kl5nlMlT_q5XsAvZo5iJ3BhYRKj76bPL-DQcX3amZ_U,3831
|
|
77
|
+
openapi_client/cyberdesk_cloud_client/models/machine_response.py,sha256=1bz4gcACOw3dsYZ-C_zTtrClTvoym3R8tikfh4439IE,5207
|
|
78
|
+
openapi_client/cyberdesk_cloud_client/models/machine_status.py,sha256=mqKyXgK1wcaA2fI6iTo_tS7AMeuVrRN4yE21d2Lsq1I,200
|
|
79
|
+
openapi_client/cyberdesk_cloud_client/models/machine_update.py,sha256=B-Aj3GJTUZxI1Tn7sjnFJPJprpGg5IgLCDqZIfD_PD4,6355
|
|
80
|
+
openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py,sha256=BejXDmpRainLcult1SHUxaMfktXPA7rWY-MESEy7tSo,2988
|
|
81
|
+
openapi_client/cyberdesk_cloud_client/models/mouse_move_request.py,sha256=D5sWQwnRvs_IvRocctMeE2czciI-KvuuYh73PLutkPo,1548
|
|
82
|
+
openapi_client/cyberdesk_cloud_client/models/mouse_position.py,sha256=t8PW-7xKfyHb3LVnZQglSu4Hrlp7W_xmoqS-UYOqG2U,1530
|
|
83
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response.py,sha256=P9bt0Koea8rODsULodX8dDAwm-uP2KRE1mRi8AK-VBY,1988
|
|
84
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py,sha256=2WxYXSS1RoBeh2ealxdQeEBSv0pBpllar1m98toeYHs,2527
|
|
85
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py,sha256=m_bJGQwSQkqPeJwcQ2UnXglhdmPqsj_tjjx_3S-YZyE,2491
|
|
86
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py,sha256=UFk93224AiT0TkMlxxy5UiTUP94JeCxy1EYx55wECWk,2443
|
|
87
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py,sha256=gOdLxB8NSEualTnfJ8ww7M7evX8HpPlRgtUS8cgJHy8,2527
|
|
88
|
+
openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py,sha256=vjx7RtvrVv9hiE1CPNMdReyc4kKbbTdSEMfU0Z-jhK0,2503
|
|
89
|
+
openapi_client/cyberdesk_cloud_client/models/request_log_create.py,sha256=6CNnBvl9oyGs0J0R994eFn-TIdl6ohsofvCc2SXVfWc,6072
|
|
90
|
+
openapi_client/cyberdesk_cloud_client/models/request_log_response.py,sha256=mU3lUdbLRFg9XppHnO-GjKcvt4M_BCG5CynWwU7ivZE,7445
|
|
91
|
+
openapi_client/cyberdesk_cloud_client/models/request_log_update.py,sha256=VcXBNffDOoEYYBjwvdkuSWPz04BW3c8YTcqzlZRb0ns,5677
|
|
92
|
+
openapi_client/cyberdesk_cloud_client/models/run_create.py,sha256=hy7l-UY-EFCjEbu-tonhPAq04pNTVY_vlgv9vcNjXS4,2756
|
|
93
|
+
openapi_client/cyberdesk_cloud_client/models/run_response.py,sha256=P_fivmHXXGU81ScgjR72hOnBlXUqe4WPTKzgXm5z9wU,7771
|
|
94
|
+
openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py,sha256=rO4YJAa26G_83CFtBTQ_ZKCURAxNS7PcvdKbfuvDcrA,1287
|
|
95
|
+
openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py,sha256=3x1N3yi3kyc1que3bizmHEuGBn5s7pEirEg4TgBV9FU,1348
|
|
96
|
+
openapi_client/cyberdesk_cloud_client/models/run_status.py,sha256=Qbsj-KKplPDamvoJvyOK_sZp7XKj6SPf8J9WnRwOhXk,240
|
|
97
|
+
openapi_client/cyberdesk_cloud_client/models/run_update.py,sha256=A69KAYxs3lFvVBUmt6t7QjO0HNxd8JgyeQOIeZXxuBU,8460
|
|
98
|
+
openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py,sha256=XyksD89ENT2TgzGiS7bU32rs1rHSFAhiamjz78nUft4,1277
|
|
99
|
+
openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py,sha256=j-SrGOc1EgVNQlUk189qUzQLBYCgBvzR23yjvZ71LGw,1338
|
|
100
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_create.py,sha256=QjHAxRCoKHwpfxXaoHQXFYo-UQbjj8XQ-p8YF_1TflQ,2596
|
|
101
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py,sha256=_8TzdjPWMx4YzsSTCiA_45R2TrNjWhu3nlknQ8KCy_U,1324
|
|
102
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_response.py,sha256=_2Xy41bw3OHyEuK-rKOYX2dkNVlLci2hH93M_6L4Rqk,3495
|
|
103
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py,sha256=h0JpPrd5qzo3ue4l9jBXk-R49ipVr75W_RsZw6e5cjk,1334
|
|
104
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_update.py,sha256=dzqD6zAT-jySWaASRi833gpHmahpkXd_r3LMD3-M8Lw,3568
|
|
105
|
+
openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py,sha256=3Zt8-nV3ZHjXzL1y5xKQdrHb-7ILG4EjHvtA4xabde4,1355
|
|
106
|
+
openapi_client/cyberdesk_cloud_client/models/validation_error.py,sha256=ZlK9hbhWr4zSC-dxZh9giERvMiYf9s2k8e1O9Rch_NI,2181
|
|
107
|
+
openapi_client/cyberdesk_cloud_client/models/workflow_create.py,sha256=sAFW17R2QPJY_h9HaKFrBP8NonT9OpuwwnSX7vqxdxY,2378
|
|
108
|
+
openapi_client/cyberdesk_cloud_client/models/workflow_response.py,sha256=5cUseglGVDybsDvpyxFPBu43Lkcc8ZTGbtfD_gxr9ak,5362
|
|
109
|
+
openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py,sha256=W9AxxlBlN3rUwLDcoUx5H7MUiYA9UztfX9iEpNGlgAs,1340
|
|
110
|
+
openapi_client/cyberdesk_cloud_client/models/workflow_update.py,sha256=Y9DX6Es4mWk-jPKrbumT9qv3Zi1zQWJNVO1o_PVt0rM,2861
|
|
111
|
+
cyberdesk-1.0.0.dist-info/METADATA,sha256=RGurtpoouTsdbf8rhrWV5hFpnHGtB0Qj-9KEKsDjkNA,6051
|
|
112
|
+
cyberdesk-1.0.0.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
113
|
+
cyberdesk-1.0.0.dist-info/top_level.txt,sha256=qTYHZHVHh3VClNPQsiFFA8p8tmJgFGhq9G1COd-pX_A,25
|
|
114
|
+
cyberdesk-1.0.0.dist-info/RECORD,,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
"""A client library for accessing
|
|
2
|
-
|
|
3
|
-
from .client import AuthenticatedClient, Client
|
|
4
|
-
|
|
5
|
-
__all__ = (
|
|
6
|
-
"AuthenticatedClient",
|
|
7
|
-
"Client",
|
|
8
|
-
)
|
|
1
|
+
"""A client library for accessing Cyberdesk Cloud"""
|
|
2
|
+
|
|
3
|
+
from .client import AuthenticatedClient, Client
|
|
4
|
+
|
|
5
|
+
__all__ = (
|
|
6
|
+
"AuthenticatedClient",
|
|
7
|
+
"Client",
|
|
8
|
+
)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
"""Contains methods for accessing the API"""
|
|
1
|
+
"""Contains methods for accessing the API"""
|
openapi_client/{api_reference_client/api/desktop → cyberdesk_cloud_client/api/computer}/__init__.py
RENAMED
|
@@ -1 +1 @@
|
|
|
1
|
-
"""Contains endpoint functions for accessing the API"""
|
|
1
|
+
"""Contains endpoint functions for accessing the API"""
|
|
@@ -0,0 +1,163 @@
|
|
|
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.display_dimensions import DisplayDimensions
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...types import Response
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
def _get_kwargs(
|
|
14
|
+
machine_id: str,
|
|
15
|
+
) -> dict[str, Any]:
|
|
16
|
+
_kwargs: dict[str, Any] = {
|
|
17
|
+
"method": "get",
|
|
18
|
+
"url": f"/v1/computer/{machine_id}/display/dimensions",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
return _kwargs
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
def _parse_response(
|
|
25
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
26
|
+
) -> Optional[Union[DisplayDimensions, HTTPValidationError]]:
|
|
27
|
+
if response.status_code == 200:
|
|
28
|
+
response_200 = DisplayDimensions.from_dict(response.json())
|
|
29
|
+
|
|
30
|
+
return response_200
|
|
31
|
+
if response.status_code == 422:
|
|
32
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
33
|
+
|
|
34
|
+
return response_422
|
|
35
|
+
if client.raise_on_unexpected_status:
|
|
36
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
37
|
+
else:
|
|
38
|
+
return None
|
|
39
|
+
|
|
40
|
+
|
|
41
|
+
def _build_response(
|
|
42
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
43
|
+
) -> Response[Union[DisplayDimensions, HTTPValidationError]]:
|
|
44
|
+
return Response(
|
|
45
|
+
status_code=HTTPStatus(response.status_code),
|
|
46
|
+
content=response.content,
|
|
47
|
+
headers=response.headers,
|
|
48
|
+
parsed=_parse_response(client=client, response=response),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
52
|
+
def sync_detailed(
|
|
53
|
+
machine_id: str,
|
|
54
|
+
*,
|
|
55
|
+
client: AuthenticatedClient,
|
|
56
|
+
) -> Response[Union[DisplayDimensions, HTTPValidationError]]:
|
|
57
|
+
"""Get display dimensions
|
|
58
|
+
|
|
59
|
+
Get the display dimensions of the machine.
|
|
60
|
+
|
|
61
|
+
Args:
|
|
62
|
+
machine_id (str):
|
|
63
|
+
|
|
64
|
+
Raises:
|
|
65
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
66
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
67
|
+
|
|
68
|
+
Returns:
|
|
69
|
+
Response[Union[DisplayDimensions, HTTPValidationError]]
|
|
70
|
+
"""
|
|
71
|
+
|
|
72
|
+
kwargs = _get_kwargs(
|
|
73
|
+
machine_id=machine_id,
|
|
74
|
+
)
|
|
75
|
+
|
|
76
|
+
response = client.get_httpx_client().request(
|
|
77
|
+
**kwargs,
|
|
78
|
+
)
|
|
79
|
+
|
|
80
|
+
return _build_response(client=client, response=response)
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
def sync(
|
|
84
|
+
machine_id: str,
|
|
85
|
+
*,
|
|
86
|
+
client: AuthenticatedClient,
|
|
87
|
+
) -> Optional[Union[DisplayDimensions, HTTPValidationError]]:
|
|
88
|
+
"""Get display dimensions
|
|
89
|
+
|
|
90
|
+
Get the display dimensions of the machine.
|
|
91
|
+
|
|
92
|
+
Args:
|
|
93
|
+
machine_id (str):
|
|
94
|
+
|
|
95
|
+
Raises:
|
|
96
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
97
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
98
|
+
|
|
99
|
+
Returns:
|
|
100
|
+
Union[DisplayDimensions, HTTPValidationError]
|
|
101
|
+
"""
|
|
102
|
+
|
|
103
|
+
return sync_detailed(
|
|
104
|
+
machine_id=machine_id,
|
|
105
|
+
client=client,
|
|
106
|
+
).parsed
|
|
107
|
+
|
|
108
|
+
|
|
109
|
+
async def asyncio_detailed(
|
|
110
|
+
machine_id: str,
|
|
111
|
+
*,
|
|
112
|
+
client: AuthenticatedClient,
|
|
113
|
+
) -> Response[Union[DisplayDimensions, HTTPValidationError]]:
|
|
114
|
+
"""Get display dimensions
|
|
115
|
+
|
|
116
|
+
Get the display dimensions of the machine.
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
machine_id (str):
|
|
120
|
+
|
|
121
|
+
Raises:
|
|
122
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
123
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
124
|
+
|
|
125
|
+
Returns:
|
|
126
|
+
Response[Union[DisplayDimensions, HTTPValidationError]]
|
|
127
|
+
"""
|
|
128
|
+
|
|
129
|
+
kwargs = _get_kwargs(
|
|
130
|
+
machine_id=machine_id,
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
134
|
+
|
|
135
|
+
return _build_response(client=client, response=response)
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
async def asyncio(
|
|
139
|
+
machine_id: str,
|
|
140
|
+
*,
|
|
141
|
+
client: AuthenticatedClient,
|
|
142
|
+
) -> Optional[Union[DisplayDimensions, HTTPValidationError]]:
|
|
143
|
+
"""Get display dimensions
|
|
144
|
+
|
|
145
|
+
Get the display dimensions of the machine.
|
|
146
|
+
|
|
147
|
+
Args:
|
|
148
|
+
machine_id (str):
|
|
149
|
+
|
|
150
|
+
Raises:
|
|
151
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
152
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
153
|
+
|
|
154
|
+
Returns:
|
|
155
|
+
Union[DisplayDimensions, HTTPValidationError]
|
|
156
|
+
"""
|
|
157
|
+
|
|
158
|
+
return (
|
|
159
|
+
await asyncio_detailed(
|
|
160
|
+
machine_id=machine_id,
|
|
161
|
+
client=client,
|
|
162
|
+
)
|
|
163
|
+
).parsed
|