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,226 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..models.run_status import RunStatus
|
|
8
|
+
from ..types import UNSET, Unset
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
|
|
12
|
+
from ..models.run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
T = TypeVar("T", bound="RunUpdate")
|
|
16
|
+
|
|
17
|
+
|
|
18
|
+
@_attrs_define
|
|
19
|
+
class RunUpdate:
|
|
20
|
+
"""Schema for updating a run
|
|
21
|
+
|
|
22
|
+
Attributes:
|
|
23
|
+
status (Union[None, RunStatus, Unset]):
|
|
24
|
+
error (Union[None, Unset, list[str]]):
|
|
25
|
+
output_data (Union['RunUpdateOutputDataType0', None, Unset]):
|
|
26
|
+
output_attachment_ids (Union[None, Unset, list[str]]):
|
|
27
|
+
run_message_history (Union[None, Unset, list['RunUpdateRunMessageHistoryType0Item']]):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
status: Union[None, RunStatus, Unset] = UNSET
|
|
31
|
+
error: Union[None, Unset, list[str]] = UNSET
|
|
32
|
+
output_data: Union["RunUpdateOutputDataType0", None, Unset] = UNSET
|
|
33
|
+
output_attachment_ids: Union[None, Unset, list[str]] = UNSET
|
|
34
|
+
run_message_history: Union[None, Unset, list["RunUpdateRunMessageHistoryType0Item"]] = UNSET
|
|
35
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
36
|
+
|
|
37
|
+
def to_dict(self) -> dict[str, Any]:
|
|
38
|
+
from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
|
|
39
|
+
|
|
40
|
+
status: Union[None, Unset, str]
|
|
41
|
+
if isinstance(self.status, Unset):
|
|
42
|
+
status = UNSET
|
|
43
|
+
elif isinstance(self.status, RunStatus):
|
|
44
|
+
status = self.status.value
|
|
45
|
+
else:
|
|
46
|
+
status = self.status
|
|
47
|
+
|
|
48
|
+
error: Union[None, Unset, list[str]]
|
|
49
|
+
if isinstance(self.error, Unset):
|
|
50
|
+
error = UNSET
|
|
51
|
+
elif isinstance(self.error, list):
|
|
52
|
+
error = self.error
|
|
53
|
+
|
|
54
|
+
else:
|
|
55
|
+
error = self.error
|
|
56
|
+
|
|
57
|
+
output_data: Union[None, Unset, dict[str, Any]]
|
|
58
|
+
if isinstance(self.output_data, Unset):
|
|
59
|
+
output_data = UNSET
|
|
60
|
+
elif isinstance(self.output_data, RunUpdateOutputDataType0):
|
|
61
|
+
output_data = self.output_data.to_dict()
|
|
62
|
+
else:
|
|
63
|
+
output_data = self.output_data
|
|
64
|
+
|
|
65
|
+
output_attachment_ids: Union[None, Unset, list[str]]
|
|
66
|
+
if isinstance(self.output_attachment_ids, Unset):
|
|
67
|
+
output_attachment_ids = UNSET
|
|
68
|
+
elif isinstance(self.output_attachment_ids, list):
|
|
69
|
+
output_attachment_ids = self.output_attachment_ids
|
|
70
|
+
|
|
71
|
+
else:
|
|
72
|
+
output_attachment_ids = self.output_attachment_ids
|
|
73
|
+
|
|
74
|
+
run_message_history: Union[None, Unset, list[dict[str, Any]]]
|
|
75
|
+
if isinstance(self.run_message_history, Unset):
|
|
76
|
+
run_message_history = UNSET
|
|
77
|
+
elif isinstance(self.run_message_history, list):
|
|
78
|
+
run_message_history = []
|
|
79
|
+
for run_message_history_type_0_item_data in self.run_message_history:
|
|
80
|
+
run_message_history_type_0_item = run_message_history_type_0_item_data.to_dict()
|
|
81
|
+
run_message_history.append(run_message_history_type_0_item)
|
|
82
|
+
|
|
83
|
+
else:
|
|
84
|
+
run_message_history = self.run_message_history
|
|
85
|
+
|
|
86
|
+
field_dict: dict[str, Any] = {}
|
|
87
|
+
field_dict.update(self.additional_properties)
|
|
88
|
+
field_dict.update({})
|
|
89
|
+
if status is not UNSET:
|
|
90
|
+
field_dict["status"] = status
|
|
91
|
+
if error is not UNSET:
|
|
92
|
+
field_dict["error"] = error
|
|
93
|
+
if output_data is not UNSET:
|
|
94
|
+
field_dict["output_data"] = output_data
|
|
95
|
+
if output_attachment_ids is not UNSET:
|
|
96
|
+
field_dict["output_attachment_ids"] = output_attachment_ids
|
|
97
|
+
if run_message_history is not UNSET:
|
|
98
|
+
field_dict["run_message_history"] = run_message_history
|
|
99
|
+
|
|
100
|
+
return field_dict
|
|
101
|
+
|
|
102
|
+
@classmethod
|
|
103
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
104
|
+
from ..models.run_update_output_data_type_0 import RunUpdateOutputDataType0
|
|
105
|
+
from ..models.run_update_run_message_history_type_0_item import RunUpdateRunMessageHistoryType0Item
|
|
106
|
+
|
|
107
|
+
d = dict(src_dict)
|
|
108
|
+
|
|
109
|
+
def _parse_status(data: object) -> Union[None, RunStatus, Unset]:
|
|
110
|
+
if data is None:
|
|
111
|
+
return data
|
|
112
|
+
if isinstance(data, Unset):
|
|
113
|
+
return data
|
|
114
|
+
try:
|
|
115
|
+
if not isinstance(data, str):
|
|
116
|
+
raise TypeError()
|
|
117
|
+
status_type_0 = RunStatus(data)
|
|
118
|
+
|
|
119
|
+
return status_type_0
|
|
120
|
+
except: # noqa: E722
|
|
121
|
+
pass
|
|
122
|
+
return cast(Union[None, RunStatus, Unset], data)
|
|
123
|
+
|
|
124
|
+
status = _parse_status(d.pop("status", UNSET))
|
|
125
|
+
|
|
126
|
+
def _parse_error(data: object) -> Union[None, Unset, list[str]]:
|
|
127
|
+
if data is None:
|
|
128
|
+
return data
|
|
129
|
+
if isinstance(data, Unset):
|
|
130
|
+
return data
|
|
131
|
+
try:
|
|
132
|
+
if not isinstance(data, list):
|
|
133
|
+
raise TypeError()
|
|
134
|
+
error_type_0 = cast(list[str], data)
|
|
135
|
+
|
|
136
|
+
return error_type_0
|
|
137
|
+
except: # noqa: E722
|
|
138
|
+
pass
|
|
139
|
+
return cast(Union[None, Unset, list[str]], data)
|
|
140
|
+
|
|
141
|
+
error = _parse_error(d.pop("error", UNSET))
|
|
142
|
+
|
|
143
|
+
def _parse_output_data(data: object) -> Union["RunUpdateOutputDataType0", None, Unset]:
|
|
144
|
+
if data is None:
|
|
145
|
+
return data
|
|
146
|
+
if isinstance(data, Unset):
|
|
147
|
+
return data
|
|
148
|
+
try:
|
|
149
|
+
if not isinstance(data, dict):
|
|
150
|
+
raise TypeError()
|
|
151
|
+
output_data_type_0 = RunUpdateOutputDataType0.from_dict(data)
|
|
152
|
+
|
|
153
|
+
return output_data_type_0
|
|
154
|
+
except: # noqa: E722
|
|
155
|
+
pass
|
|
156
|
+
return cast(Union["RunUpdateOutputDataType0", None, Unset], data)
|
|
157
|
+
|
|
158
|
+
output_data = _parse_output_data(d.pop("output_data", UNSET))
|
|
159
|
+
|
|
160
|
+
def _parse_output_attachment_ids(data: object) -> Union[None, Unset, list[str]]:
|
|
161
|
+
if data is None:
|
|
162
|
+
return data
|
|
163
|
+
if isinstance(data, Unset):
|
|
164
|
+
return data
|
|
165
|
+
try:
|
|
166
|
+
if not isinstance(data, list):
|
|
167
|
+
raise TypeError()
|
|
168
|
+
output_attachment_ids_type_0 = cast(list[str], data)
|
|
169
|
+
|
|
170
|
+
return output_attachment_ids_type_0
|
|
171
|
+
except: # noqa: E722
|
|
172
|
+
pass
|
|
173
|
+
return cast(Union[None, Unset, list[str]], data)
|
|
174
|
+
|
|
175
|
+
output_attachment_ids = _parse_output_attachment_ids(d.pop("output_attachment_ids", UNSET))
|
|
176
|
+
|
|
177
|
+
def _parse_run_message_history(data: object) -> Union[None, Unset, list["RunUpdateRunMessageHistoryType0Item"]]:
|
|
178
|
+
if data is None:
|
|
179
|
+
return data
|
|
180
|
+
if isinstance(data, Unset):
|
|
181
|
+
return data
|
|
182
|
+
try:
|
|
183
|
+
if not isinstance(data, list):
|
|
184
|
+
raise TypeError()
|
|
185
|
+
run_message_history_type_0 = []
|
|
186
|
+
_run_message_history_type_0 = data
|
|
187
|
+
for run_message_history_type_0_item_data in _run_message_history_type_0:
|
|
188
|
+
run_message_history_type_0_item = RunUpdateRunMessageHistoryType0Item.from_dict(
|
|
189
|
+
run_message_history_type_0_item_data
|
|
190
|
+
)
|
|
191
|
+
|
|
192
|
+
run_message_history_type_0.append(run_message_history_type_0_item)
|
|
193
|
+
|
|
194
|
+
return run_message_history_type_0
|
|
195
|
+
except: # noqa: E722
|
|
196
|
+
pass
|
|
197
|
+
return cast(Union[None, Unset, list["RunUpdateRunMessageHistoryType0Item"]], data)
|
|
198
|
+
|
|
199
|
+
run_message_history = _parse_run_message_history(d.pop("run_message_history", UNSET))
|
|
200
|
+
|
|
201
|
+
run_update = cls(
|
|
202
|
+
status=status,
|
|
203
|
+
error=error,
|
|
204
|
+
output_data=output_data,
|
|
205
|
+
output_attachment_ids=output_attachment_ids,
|
|
206
|
+
run_message_history=run_message_history,
|
|
207
|
+
)
|
|
208
|
+
|
|
209
|
+
run_update.additional_properties = d
|
|
210
|
+
return run_update
|
|
211
|
+
|
|
212
|
+
@property
|
|
213
|
+
def additional_keys(self) -> list[str]:
|
|
214
|
+
return list(self.additional_properties.keys())
|
|
215
|
+
|
|
216
|
+
def __getitem__(self, key: str) -> Any:
|
|
217
|
+
return self.additional_properties[key]
|
|
218
|
+
|
|
219
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
220
|
+
self.additional_properties[key] = value
|
|
221
|
+
|
|
222
|
+
def __delitem__(self, key: str) -> None:
|
|
223
|
+
del self.additional_properties[key]
|
|
224
|
+
|
|
225
|
+
def __contains__(self, key: str) -> bool:
|
|
226
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="RunUpdateOutputDataType0")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RunUpdateOutputDataType0:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
run_update_output_data_type_0 = cls()
|
|
26
|
+
|
|
27
|
+
run_update_output_data_type_0.additional_properties = d
|
|
28
|
+
return run_update_output_data_type_0
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="RunUpdateRunMessageHistoryType0Item")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class RunUpdateRunMessageHistoryType0Item:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
run_update_run_message_history_type_0_item = cls()
|
|
26
|
+
|
|
27
|
+
run_update_run_message_history_type_0_item.additional_properties = d
|
|
28
|
+
return run_update_run_message_history_type_0_item
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
from attrs import define as _attrs_define
|
|
6
|
+
from attrs import field as _attrs_field
|
|
7
|
+
|
|
8
|
+
if TYPE_CHECKING:
|
|
9
|
+
from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
T = TypeVar("T", bound="TrajectoryCreate")
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
@_attrs_define
|
|
16
|
+
class TrajectoryCreate:
|
|
17
|
+
"""Schema for creating a trajectory
|
|
18
|
+
|
|
19
|
+
Attributes:
|
|
20
|
+
workflow_id (UUID):
|
|
21
|
+
trajectory_data (list['TrajectoryCreateTrajectoryDataItem']):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
workflow_id: UUID
|
|
25
|
+
trajectory_data: list["TrajectoryCreateTrajectoryDataItem"]
|
|
26
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
27
|
+
|
|
28
|
+
def to_dict(self) -> dict[str, Any]:
|
|
29
|
+
workflow_id = str(self.workflow_id)
|
|
30
|
+
|
|
31
|
+
trajectory_data = []
|
|
32
|
+
for trajectory_data_item_data in self.trajectory_data:
|
|
33
|
+
trajectory_data_item = trajectory_data_item_data.to_dict()
|
|
34
|
+
trajectory_data.append(trajectory_data_item)
|
|
35
|
+
|
|
36
|
+
field_dict: dict[str, Any] = {}
|
|
37
|
+
field_dict.update(self.additional_properties)
|
|
38
|
+
field_dict.update(
|
|
39
|
+
{
|
|
40
|
+
"workflow_id": workflow_id,
|
|
41
|
+
"trajectory_data": trajectory_data,
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
49
|
+
from ..models.trajectory_create_trajectory_data_item import TrajectoryCreateTrajectoryDataItem
|
|
50
|
+
|
|
51
|
+
d = dict(src_dict)
|
|
52
|
+
workflow_id = UUID(d.pop("workflow_id"))
|
|
53
|
+
|
|
54
|
+
trajectory_data = []
|
|
55
|
+
_trajectory_data = d.pop("trajectory_data")
|
|
56
|
+
for trajectory_data_item_data in _trajectory_data:
|
|
57
|
+
trajectory_data_item = TrajectoryCreateTrajectoryDataItem.from_dict(trajectory_data_item_data)
|
|
58
|
+
|
|
59
|
+
trajectory_data.append(trajectory_data_item)
|
|
60
|
+
|
|
61
|
+
trajectory_create = cls(
|
|
62
|
+
workflow_id=workflow_id,
|
|
63
|
+
trajectory_data=trajectory_data,
|
|
64
|
+
)
|
|
65
|
+
|
|
66
|
+
trajectory_create.additional_properties = d
|
|
67
|
+
return trajectory_create
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def additional_keys(self) -> list[str]:
|
|
71
|
+
return list(self.additional_properties.keys())
|
|
72
|
+
|
|
73
|
+
def __getitem__(self, key: str) -> Any:
|
|
74
|
+
return self.additional_properties[key]
|
|
75
|
+
|
|
76
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
77
|
+
self.additional_properties[key] = value
|
|
78
|
+
|
|
79
|
+
def __delitem__(self, key: str) -> None:
|
|
80
|
+
del self.additional_properties[key]
|
|
81
|
+
|
|
82
|
+
def __contains__(self, key: str) -> bool:
|
|
83
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="TrajectoryCreateTrajectoryDataItem")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class TrajectoryCreateTrajectoryDataItem:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
trajectory_create_trajectory_data_item = cls()
|
|
26
|
+
|
|
27
|
+
trajectory_create_trajectory_data_item.additional_properties = d
|
|
28
|
+
return trajectory_create_trajectory_data_item
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,117 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar
|
|
4
|
+
from uuid import UUID
|
|
5
|
+
|
|
6
|
+
from attrs import define as _attrs_define
|
|
7
|
+
from attrs import field as _attrs_field
|
|
8
|
+
from dateutil.parser import isoparse
|
|
9
|
+
|
|
10
|
+
if TYPE_CHECKING:
|
|
11
|
+
from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
T = TypeVar("T", bound="TrajectoryResponse")
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
@_attrs_define
|
|
18
|
+
class TrajectoryResponse:
|
|
19
|
+
"""Trajectory response schema
|
|
20
|
+
|
|
21
|
+
Attributes:
|
|
22
|
+
workflow_id (UUID):
|
|
23
|
+
trajectory_data (list['TrajectoryResponseTrajectoryDataItem']):
|
|
24
|
+
id (UUID):
|
|
25
|
+
user_id (UUID):
|
|
26
|
+
created_at (datetime.datetime):
|
|
27
|
+
updated_at (datetime.datetime):
|
|
28
|
+
"""
|
|
29
|
+
|
|
30
|
+
workflow_id: UUID
|
|
31
|
+
trajectory_data: list["TrajectoryResponseTrajectoryDataItem"]
|
|
32
|
+
id: UUID
|
|
33
|
+
user_id: UUID
|
|
34
|
+
created_at: datetime.datetime
|
|
35
|
+
updated_at: datetime.datetime
|
|
36
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
37
|
+
|
|
38
|
+
def to_dict(self) -> dict[str, Any]:
|
|
39
|
+
workflow_id = str(self.workflow_id)
|
|
40
|
+
|
|
41
|
+
trajectory_data = []
|
|
42
|
+
for trajectory_data_item_data in self.trajectory_data:
|
|
43
|
+
trajectory_data_item = trajectory_data_item_data.to_dict()
|
|
44
|
+
trajectory_data.append(trajectory_data_item)
|
|
45
|
+
|
|
46
|
+
id = str(self.id)
|
|
47
|
+
|
|
48
|
+
user_id = str(self.user_id)
|
|
49
|
+
|
|
50
|
+
created_at = self.created_at.isoformat()
|
|
51
|
+
|
|
52
|
+
updated_at = self.updated_at.isoformat()
|
|
53
|
+
|
|
54
|
+
field_dict: dict[str, Any] = {}
|
|
55
|
+
field_dict.update(self.additional_properties)
|
|
56
|
+
field_dict.update(
|
|
57
|
+
{
|
|
58
|
+
"workflow_id": workflow_id,
|
|
59
|
+
"trajectory_data": trajectory_data,
|
|
60
|
+
"id": id,
|
|
61
|
+
"user_id": user_id,
|
|
62
|
+
"created_at": created_at,
|
|
63
|
+
"updated_at": updated_at,
|
|
64
|
+
}
|
|
65
|
+
)
|
|
66
|
+
|
|
67
|
+
return field_dict
|
|
68
|
+
|
|
69
|
+
@classmethod
|
|
70
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
71
|
+
from ..models.trajectory_response_trajectory_data_item import TrajectoryResponseTrajectoryDataItem
|
|
72
|
+
|
|
73
|
+
d = dict(src_dict)
|
|
74
|
+
workflow_id = UUID(d.pop("workflow_id"))
|
|
75
|
+
|
|
76
|
+
trajectory_data = []
|
|
77
|
+
_trajectory_data = d.pop("trajectory_data")
|
|
78
|
+
for trajectory_data_item_data in _trajectory_data:
|
|
79
|
+
trajectory_data_item = TrajectoryResponseTrajectoryDataItem.from_dict(trajectory_data_item_data)
|
|
80
|
+
|
|
81
|
+
trajectory_data.append(trajectory_data_item)
|
|
82
|
+
|
|
83
|
+
id = UUID(d.pop("id"))
|
|
84
|
+
|
|
85
|
+
user_id = UUID(d.pop("user_id"))
|
|
86
|
+
|
|
87
|
+
created_at = isoparse(d.pop("created_at"))
|
|
88
|
+
|
|
89
|
+
updated_at = isoparse(d.pop("updated_at"))
|
|
90
|
+
|
|
91
|
+
trajectory_response = cls(
|
|
92
|
+
workflow_id=workflow_id,
|
|
93
|
+
trajectory_data=trajectory_data,
|
|
94
|
+
id=id,
|
|
95
|
+
user_id=user_id,
|
|
96
|
+
created_at=created_at,
|
|
97
|
+
updated_at=updated_at,
|
|
98
|
+
)
|
|
99
|
+
|
|
100
|
+
trajectory_response.additional_properties = d
|
|
101
|
+
return trajectory_response
|
|
102
|
+
|
|
103
|
+
@property
|
|
104
|
+
def additional_keys(self) -> list[str]:
|
|
105
|
+
return list(self.additional_properties.keys())
|
|
106
|
+
|
|
107
|
+
def __getitem__(self, key: str) -> Any:
|
|
108
|
+
return self.additional_properties[key]
|
|
109
|
+
|
|
110
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
111
|
+
self.additional_properties[key] = value
|
|
112
|
+
|
|
113
|
+
def __delitem__(self, key: str) -> None:
|
|
114
|
+
del self.additional_properties[key]
|
|
115
|
+
|
|
116
|
+
def __contains__(self, key: str) -> bool:
|
|
117
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="TrajectoryResponseTrajectoryDataItem")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class TrajectoryResponseTrajectoryDataItem:
|
|
12
|
+
""" """
|
|
13
|
+
|
|
14
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
15
|
+
|
|
16
|
+
def to_dict(self) -> dict[str, Any]:
|
|
17
|
+
field_dict: dict[str, Any] = {}
|
|
18
|
+
field_dict.update(self.additional_properties)
|
|
19
|
+
|
|
20
|
+
return field_dict
|
|
21
|
+
|
|
22
|
+
@classmethod
|
|
23
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
24
|
+
d = dict(src_dict)
|
|
25
|
+
trajectory_response_trajectory_data_item = cls()
|
|
26
|
+
|
|
27
|
+
trajectory_response_trajectory_data_item.additional_properties = d
|
|
28
|
+
return trajectory_response_trajectory_data_item
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def additional_keys(self) -> list[str]:
|
|
32
|
+
return list(self.additional_properties.keys())
|
|
33
|
+
|
|
34
|
+
def __getitem__(self, key: str) -> Any:
|
|
35
|
+
return self.additional_properties[key]
|
|
36
|
+
|
|
37
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
38
|
+
self.additional_properties[key] = value
|
|
39
|
+
|
|
40
|
+
def __delitem__(self, key: str) -> None:
|
|
41
|
+
del self.additional_properties[key]
|
|
42
|
+
|
|
43
|
+
def __contains__(self, key: str) -> bool:
|
|
44
|
+
return key in self.additional_properties
|