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,99 @@
|
|
|
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 ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
if TYPE_CHECKING:
|
|
10
|
+
from ..models.trajectory_update_trajectory_data_type_0_item import TrajectoryUpdateTrajectoryDataType0Item
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
T = TypeVar("T", bound="TrajectoryUpdate")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
@_attrs_define
|
|
17
|
+
class TrajectoryUpdate:
|
|
18
|
+
"""Schema for updating a trajectory
|
|
19
|
+
|
|
20
|
+
Attributes:
|
|
21
|
+
trajectory_data (Union[None, Unset, list['TrajectoryUpdateTrajectoryDataType0Item']]):
|
|
22
|
+
"""
|
|
23
|
+
|
|
24
|
+
trajectory_data: Union[None, Unset, list["TrajectoryUpdateTrajectoryDataType0Item"]] = UNSET
|
|
25
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
26
|
+
|
|
27
|
+
def to_dict(self) -> dict[str, Any]:
|
|
28
|
+
trajectory_data: Union[None, Unset, list[dict[str, Any]]]
|
|
29
|
+
if isinstance(self.trajectory_data, Unset):
|
|
30
|
+
trajectory_data = UNSET
|
|
31
|
+
elif isinstance(self.trajectory_data, list):
|
|
32
|
+
trajectory_data = []
|
|
33
|
+
for trajectory_data_type_0_item_data in self.trajectory_data:
|
|
34
|
+
trajectory_data_type_0_item = trajectory_data_type_0_item_data.to_dict()
|
|
35
|
+
trajectory_data.append(trajectory_data_type_0_item)
|
|
36
|
+
|
|
37
|
+
else:
|
|
38
|
+
trajectory_data = self.trajectory_data
|
|
39
|
+
|
|
40
|
+
field_dict: dict[str, Any] = {}
|
|
41
|
+
field_dict.update(self.additional_properties)
|
|
42
|
+
field_dict.update({})
|
|
43
|
+
if trajectory_data is not UNSET:
|
|
44
|
+
field_dict["trajectory_data"] = trajectory_data
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
from ..models.trajectory_update_trajectory_data_type_0_item import TrajectoryUpdateTrajectoryDataType0Item
|
|
51
|
+
|
|
52
|
+
d = dict(src_dict)
|
|
53
|
+
|
|
54
|
+
def _parse_trajectory_data(data: object) -> Union[None, Unset, list["TrajectoryUpdateTrajectoryDataType0Item"]]:
|
|
55
|
+
if data is None:
|
|
56
|
+
return data
|
|
57
|
+
if isinstance(data, Unset):
|
|
58
|
+
return data
|
|
59
|
+
try:
|
|
60
|
+
if not isinstance(data, list):
|
|
61
|
+
raise TypeError()
|
|
62
|
+
trajectory_data_type_0 = []
|
|
63
|
+
_trajectory_data_type_0 = data
|
|
64
|
+
for trajectory_data_type_0_item_data in _trajectory_data_type_0:
|
|
65
|
+
trajectory_data_type_0_item = TrajectoryUpdateTrajectoryDataType0Item.from_dict(
|
|
66
|
+
trajectory_data_type_0_item_data
|
|
67
|
+
)
|
|
68
|
+
|
|
69
|
+
trajectory_data_type_0.append(trajectory_data_type_0_item)
|
|
70
|
+
|
|
71
|
+
return trajectory_data_type_0
|
|
72
|
+
except: # noqa: E722
|
|
73
|
+
pass
|
|
74
|
+
return cast(Union[None, Unset, list["TrajectoryUpdateTrajectoryDataType0Item"]], data)
|
|
75
|
+
|
|
76
|
+
trajectory_data = _parse_trajectory_data(d.pop("trajectory_data", UNSET))
|
|
77
|
+
|
|
78
|
+
trajectory_update = cls(
|
|
79
|
+
trajectory_data=trajectory_data,
|
|
80
|
+
)
|
|
81
|
+
|
|
82
|
+
trajectory_update.additional_properties = d
|
|
83
|
+
return trajectory_update
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def additional_keys(self) -> list[str]:
|
|
87
|
+
return list(self.additional_properties.keys())
|
|
88
|
+
|
|
89
|
+
def __getitem__(self, key: str) -> Any:
|
|
90
|
+
return self.additional_properties[key]
|
|
91
|
+
|
|
92
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
93
|
+
self.additional_properties[key] = value
|
|
94
|
+
|
|
95
|
+
def __delitem__(self, key: str) -> None:
|
|
96
|
+
del self.additional_properties[key]
|
|
97
|
+
|
|
98
|
+
def __contains__(self, key: str) -> bool:
|
|
99
|
+
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="TrajectoryUpdateTrajectoryDataType0Item")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class TrajectoryUpdateTrajectoryDataType0Item:
|
|
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_update_trajectory_data_type_0_item = cls()
|
|
26
|
+
|
|
27
|
+
trajectory_update_trajectory_data_type_0_item.additional_properties = d
|
|
28
|
+
return trajectory_update_trajectory_data_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
|
|
@@ -1,70 +1,88 @@
|
|
|
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
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
type_ (
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
type_:
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
)
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
T = TypeVar("T", bound="ValidationError")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class ValidationError:
|
|
12
|
+
"""
|
|
13
|
+
Attributes:
|
|
14
|
+
loc (list[Union[int, str]]):
|
|
15
|
+
msg (str):
|
|
16
|
+
type_ (str):
|
|
17
|
+
"""
|
|
18
|
+
|
|
19
|
+
loc: list[Union[int, str]]
|
|
20
|
+
msg: str
|
|
21
|
+
type_: str
|
|
22
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
23
|
+
|
|
24
|
+
def to_dict(self) -> dict[str, Any]:
|
|
25
|
+
loc = []
|
|
26
|
+
for loc_item_data in self.loc:
|
|
27
|
+
loc_item: Union[int, str]
|
|
28
|
+
loc_item = loc_item_data
|
|
29
|
+
loc.append(loc_item)
|
|
30
|
+
|
|
31
|
+
msg = self.msg
|
|
32
|
+
|
|
33
|
+
type_ = self.type_
|
|
34
|
+
|
|
35
|
+
field_dict: dict[str, Any] = {}
|
|
36
|
+
field_dict.update(self.additional_properties)
|
|
37
|
+
field_dict.update(
|
|
38
|
+
{
|
|
39
|
+
"loc": loc,
|
|
40
|
+
"msg": msg,
|
|
41
|
+
"type": type_,
|
|
42
|
+
}
|
|
43
|
+
)
|
|
44
|
+
|
|
45
|
+
return field_dict
|
|
46
|
+
|
|
47
|
+
@classmethod
|
|
48
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
49
|
+
d = dict(src_dict)
|
|
50
|
+
loc = []
|
|
51
|
+
_loc = d.pop("loc")
|
|
52
|
+
for loc_item_data in _loc:
|
|
53
|
+
|
|
54
|
+
def _parse_loc_item(data: object) -> Union[int, str]:
|
|
55
|
+
return cast(Union[int, str], data)
|
|
56
|
+
|
|
57
|
+
loc_item = _parse_loc_item(loc_item_data)
|
|
58
|
+
|
|
59
|
+
loc.append(loc_item)
|
|
60
|
+
|
|
61
|
+
msg = d.pop("msg")
|
|
62
|
+
|
|
63
|
+
type_ = d.pop("type")
|
|
64
|
+
|
|
65
|
+
validation_error = cls(
|
|
66
|
+
loc=loc,
|
|
67
|
+
msg=msg,
|
|
68
|
+
type_=type_,
|
|
69
|
+
)
|
|
70
|
+
|
|
71
|
+
validation_error.additional_properties = d
|
|
72
|
+
return validation_error
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def additional_keys(self) -> list[str]:
|
|
76
|
+
return list(self.additional_properties.keys())
|
|
77
|
+
|
|
78
|
+
def __getitem__(self, key: str) -> Any:
|
|
79
|
+
return self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
82
|
+
self.additional_properties[key] = value
|
|
83
|
+
|
|
84
|
+
def __delitem__(self, key: str) -> None:
|
|
85
|
+
del self.additional_properties[key]
|
|
86
|
+
|
|
87
|
+
def __contains__(self, key: str) -> bool:
|
|
88
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="WorkflowCreate")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class WorkflowCreate:
|
|
14
|
+
"""Schema for creating a workflow
|
|
15
|
+
|
|
16
|
+
Attributes:
|
|
17
|
+
main_prompt (str):
|
|
18
|
+
cleanup_prompt (Union[None, Unset, str]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
main_prompt: str
|
|
22
|
+
cleanup_prompt: Union[None, Unset, str] = UNSET
|
|
23
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> dict[str, Any]:
|
|
26
|
+
main_prompt = self.main_prompt
|
|
27
|
+
|
|
28
|
+
cleanup_prompt: Union[None, Unset, str]
|
|
29
|
+
if isinstance(self.cleanup_prompt, Unset):
|
|
30
|
+
cleanup_prompt = UNSET
|
|
31
|
+
else:
|
|
32
|
+
cleanup_prompt = self.cleanup_prompt
|
|
33
|
+
|
|
34
|
+
field_dict: dict[str, Any] = {}
|
|
35
|
+
field_dict.update(self.additional_properties)
|
|
36
|
+
field_dict.update(
|
|
37
|
+
{
|
|
38
|
+
"main_prompt": main_prompt,
|
|
39
|
+
}
|
|
40
|
+
)
|
|
41
|
+
if cleanup_prompt is not UNSET:
|
|
42
|
+
field_dict["cleanup_prompt"] = cleanup_prompt
|
|
43
|
+
|
|
44
|
+
return field_dict
|
|
45
|
+
|
|
46
|
+
@classmethod
|
|
47
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
48
|
+
d = dict(src_dict)
|
|
49
|
+
main_prompt = d.pop("main_prompt")
|
|
50
|
+
|
|
51
|
+
def _parse_cleanup_prompt(data: object) -> Union[None, Unset, str]:
|
|
52
|
+
if data is None:
|
|
53
|
+
return data
|
|
54
|
+
if isinstance(data, Unset):
|
|
55
|
+
return data
|
|
56
|
+
return cast(Union[None, Unset, str], data)
|
|
57
|
+
|
|
58
|
+
cleanup_prompt = _parse_cleanup_prompt(d.pop("cleanup_prompt", UNSET))
|
|
59
|
+
|
|
60
|
+
workflow_create = cls(
|
|
61
|
+
main_prompt=main_prompt,
|
|
62
|
+
cleanup_prompt=cleanup_prompt,
|
|
63
|
+
)
|
|
64
|
+
|
|
65
|
+
workflow_create.additional_properties = d
|
|
66
|
+
return workflow_create
|
|
67
|
+
|
|
68
|
+
@property
|
|
69
|
+
def additional_keys(self) -> list[str]:
|
|
70
|
+
return list(self.additional_properties.keys())
|
|
71
|
+
|
|
72
|
+
def __getitem__(self, key: str) -> Any:
|
|
73
|
+
return self.additional_properties[key]
|
|
74
|
+
|
|
75
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
76
|
+
self.additional_properties[key] = value
|
|
77
|
+
|
|
78
|
+
def __delitem__(self, key: str) -> None:
|
|
79
|
+
del self.additional_properties[key]
|
|
80
|
+
|
|
81
|
+
def __contains__(self, key: str) -> bool:
|
|
82
|
+
return key in self.additional_properties
|
|
@@ -0,0 +1,164 @@
|
|
|
1
|
+
import datetime
|
|
2
|
+
from collections.abc import Mapping
|
|
3
|
+
from typing import TYPE_CHECKING, Any, TypeVar, Union, cast
|
|
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
|
+
from ..types import UNSET, Unset
|
|
11
|
+
|
|
12
|
+
if TYPE_CHECKING:
|
|
13
|
+
from ..models.workflow_response_old_versions_type_0_item import WorkflowResponseOldVersionsType0Item
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
T = TypeVar("T", bound="WorkflowResponse")
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
@_attrs_define
|
|
20
|
+
class WorkflowResponse:
|
|
21
|
+
"""Workflow response schema
|
|
22
|
+
|
|
23
|
+
Attributes:
|
|
24
|
+
main_prompt (str):
|
|
25
|
+
id (UUID):
|
|
26
|
+
user_id (UUID):
|
|
27
|
+
created_at (datetime.datetime):
|
|
28
|
+
updated_at (datetime.datetime):
|
|
29
|
+
cleanup_prompt (Union[None, Unset, str]):
|
|
30
|
+
old_versions (Union[None, Unset, list['WorkflowResponseOldVersionsType0Item']]):
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
main_prompt: str
|
|
34
|
+
id: UUID
|
|
35
|
+
user_id: UUID
|
|
36
|
+
created_at: datetime.datetime
|
|
37
|
+
updated_at: datetime.datetime
|
|
38
|
+
cleanup_prompt: Union[None, Unset, str] = UNSET
|
|
39
|
+
old_versions: Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]] = UNSET
|
|
40
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
41
|
+
|
|
42
|
+
def to_dict(self) -> dict[str, Any]:
|
|
43
|
+
main_prompt = self.main_prompt
|
|
44
|
+
|
|
45
|
+
id = str(self.id)
|
|
46
|
+
|
|
47
|
+
user_id = str(self.user_id)
|
|
48
|
+
|
|
49
|
+
created_at = self.created_at.isoformat()
|
|
50
|
+
|
|
51
|
+
updated_at = self.updated_at.isoformat()
|
|
52
|
+
|
|
53
|
+
cleanup_prompt: Union[None, Unset, str]
|
|
54
|
+
if isinstance(self.cleanup_prompt, Unset):
|
|
55
|
+
cleanup_prompt = UNSET
|
|
56
|
+
else:
|
|
57
|
+
cleanup_prompt = self.cleanup_prompt
|
|
58
|
+
|
|
59
|
+
old_versions: Union[None, Unset, list[dict[str, Any]]]
|
|
60
|
+
if isinstance(self.old_versions, Unset):
|
|
61
|
+
old_versions = UNSET
|
|
62
|
+
elif isinstance(self.old_versions, list):
|
|
63
|
+
old_versions = []
|
|
64
|
+
for old_versions_type_0_item_data in self.old_versions:
|
|
65
|
+
old_versions_type_0_item = old_versions_type_0_item_data.to_dict()
|
|
66
|
+
old_versions.append(old_versions_type_0_item)
|
|
67
|
+
|
|
68
|
+
else:
|
|
69
|
+
old_versions = self.old_versions
|
|
70
|
+
|
|
71
|
+
field_dict: dict[str, Any] = {}
|
|
72
|
+
field_dict.update(self.additional_properties)
|
|
73
|
+
field_dict.update(
|
|
74
|
+
{
|
|
75
|
+
"main_prompt": main_prompt,
|
|
76
|
+
"id": id,
|
|
77
|
+
"user_id": user_id,
|
|
78
|
+
"created_at": created_at,
|
|
79
|
+
"updated_at": updated_at,
|
|
80
|
+
}
|
|
81
|
+
)
|
|
82
|
+
if cleanup_prompt is not UNSET:
|
|
83
|
+
field_dict["cleanup_prompt"] = cleanup_prompt
|
|
84
|
+
if old_versions is not UNSET:
|
|
85
|
+
field_dict["old_versions"] = old_versions
|
|
86
|
+
|
|
87
|
+
return field_dict
|
|
88
|
+
|
|
89
|
+
@classmethod
|
|
90
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
91
|
+
from ..models.workflow_response_old_versions_type_0_item import WorkflowResponseOldVersionsType0Item
|
|
92
|
+
|
|
93
|
+
d = dict(src_dict)
|
|
94
|
+
main_prompt = d.pop("main_prompt")
|
|
95
|
+
|
|
96
|
+
id = UUID(d.pop("id"))
|
|
97
|
+
|
|
98
|
+
user_id = UUID(d.pop("user_id"))
|
|
99
|
+
|
|
100
|
+
created_at = isoparse(d.pop("created_at"))
|
|
101
|
+
|
|
102
|
+
updated_at = isoparse(d.pop("updated_at"))
|
|
103
|
+
|
|
104
|
+
def _parse_cleanup_prompt(data: object) -> Union[None, Unset, str]:
|
|
105
|
+
if data is None:
|
|
106
|
+
return data
|
|
107
|
+
if isinstance(data, Unset):
|
|
108
|
+
return data
|
|
109
|
+
return cast(Union[None, Unset, str], data)
|
|
110
|
+
|
|
111
|
+
cleanup_prompt = _parse_cleanup_prompt(d.pop("cleanup_prompt", UNSET))
|
|
112
|
+
|
|
113
|
+
def _parse_old_versions(data: object) -> Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]]:
|
|
114
|
+
if data is None:
|
|
115
|
+
return data
|
|
116
|
+
if isinstance(data, Unset):
|
|
117
|
+
return data
|
|
118
|
+
try:
|
|
119
|
+
if not isinstance(data, list):
|
|
120
|
+
raise TypeError()
|
|
121
|
+
old_versions_type_0 = []
|
|
122
|
+
_old_versions_type_0 = data
|
|
123
|
+
for old_versions_type_0_item_data in _old_versions_type_0:
|
|
124
|
+
old_versions_type_0_item = WorkflowResponseOldVersionsType0Item.from_dict(
|
|
125
|
+
old_versions_type_0_item_data
|
|
126
|
+
)
|
|
127
|
+
|
|
128
|
+
old_versions_type_0.append(old_versions_type_0_item)
|
|
129
|
+
|
|
130
|
+
return old_versions_type_0
|
|
131
|
+
except: # noqa: E722
|
|
132
|
+
pass
|
|
133
|
+
return cast(Union[None, Unset, list["WorkflowResponseOldVersionsType0Item"]], data)
|
|
134
|
+
|
|
135
|
+
old_versions = _parse_old_versions(d.pop("old_versions", UNSET))
|
|
136
|
+
|
|
137
|
+
workflow_response = cls(
|
|
138
|
+
main_prompt=main_prompt,
|
|
139
|
+
id=id,
|
|
140
|
+
user_id=user_id,
|
|
141
|
+
created_at=created_at,
|
|
142
|
+
updated_at=updated_at,
|
|
143
|
+
cleanup_prompt=cleanup_prompt,
|
|
144
|
+
old_versions=old_versions,
|
|
145
|
+
)
|
|
146
|
+
|
|
147
|
+
workflow_response.additional_properties = d
|
|
148
|
+
return workflow_response
|
|
149
|
+
|
|
150
|
+
@property
|
|
151
|
+
def additional_keys(self) -> list[str]:
|
|
152
|
+
return list(self.additional_properties.keys())
|
|
153
|
+
|
|
154
|
+
def __getitem__(self, key: str) -> Any:
|
|
155
|
+
return self.additional_properties[key]
|
|
156
|
+
|
|
157
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
158
|
+
self.additional_properties[key] = value
|
|
159
|
+
|
|
160
|
+
def __delitem__(self, key: str) -> None:
|
|
161
|
+
del self.additional_properties[key]
|
|
162
|
+
|
|
163
|
+
def __contains__(self, key: str) -> bool:
|
|
164
|
+
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="WorkflowResponseOldVersionsType0Item")
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
@_attrs_define
|
|
11
|
+
class WorkflowResponseOldVersionsType0Item:
|
|
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
|
+
workflow_response_old_versions_type_0_item = cls()
|
|
26
|
+
|
|
27
|
+
workflow_response_old_versions_type_0_item.additional_properties = d
|
|
28
|
+
return workflow_response_old_versions_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,92 @@
|
|
|
1
|
+
from collections.abc import Mapping
|
|
2
|
+
from typing import Any, TypeVar, Union, cast
|
|
3
|
+
|
|
4
|
+
from attrs import define as _attrs_define
|
|
5
|
+
from attrs import field as _attrs_field
|
|
6
|
+
|
|
7
|
+
from ..types import UNSET, Unset
|
|
8
|
+
|
|
9
|
+
T = TypeVar("T", bound="WorkflowUpdate")
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
@_attrs_define
|
|
13
|
+
class WorkflowUpdate:
|
|
14
|
+
"""Schema for updating a workflow
|
|
15
|
+
|
|
16
|
+
Attributes:
|
|
17
|
+
main_prompt (Union[None, Unset, str]):
|
|
18
|
+
cleanup_prompt (Union[None, Unset, str]):
|
|
19
|
+
"""
|
|
20
|
+
|
|
21
|
+
main_prompt: Union[None, Unset, str] = UNSET
|
|
22
|
+
cleanup_prompt: Union[None, Unset, str] = UNSET
|
|
23
|
+
additional_properties: dict[str, Any] = _attrs_field(init=False, factory=dict)
|
|
24
|
+
|
|
25
|
+
def to_dict(self) -> dict[str, Any]:
|
|
26
|
+
main_prompt: Union[None, Unset, str]
|
|
27
|
+
if isinstance(self.main_prompt, Unset):
|
|
28
|
+
main_prompt = UNSET
|
|
29
|
+
else:
|
|
30
|
+
main_prompt = self.main_prompt
|
|
31
|
+
|
|
32
|
+
cleanup_prompt: Union[None, Unset, str]
|
|
33
|
+
if isinstance(self.cleanup_prompt, Unset):
|
|
34
|
+
cleanup_prompt = UNSET
|
|
35
|
+
else:
|
|
36
|
+
cleanup_prompt = self.cleanup_prompt
|
|
37
|
+
|
|
38
|
+
field_dict: dict[str, Any] = {}
|
|
39
|
+
field_dict.update(self.additional_properties)
|
|
40
|
+
field_dict.update({})
|
|
41
|
+
if main_prompt is not UNSET:
|
|
42
|
+
field_dict["main_prompt"] = main_prompt
|
|
43
|
+
if cleanup_prompt is not UNSET:
|
|
44
|
+
field_dict["cleanup_prompt"] = cleanup_prompt
|
|
45
|
+
|
|
46
|
+
return field_dict
|
|
47
|
+
|
|
48
|
+
@classmethod
|
|
49
|
+
def from_dict(cls: type[T], src_dict: Mapping[str, Any]) -> T:
|
|
50
|
+
d = dict(src_dict)
|
|
51
|
+
|
|
52
|
+
def _parse_main_prompt(data: object) -> Union[None, Unset, str]:
|
|
53
|
+
if data is None:
|
|
54
|
+
return data
|
|
55
|
+
if isinstance(data, Unset):
|
|
56
|
+
return data
|
|
57
|
+
return cast(Union[None, Unset, str], data)
|
|
58
|
+
|
|
59
|
+
main_prompt = _parse_main_prompt(d.pop("main_prompt", UNSET))
|
|
60
|
+
|
|
61
|
+
def _parse_cleanup_prompt(data: object) -> Union[None, Unset, str]:
|
|
62
|
+
if data is None:
|
|
63
|
+
return data
|
|
64
|
+
if isinstance(data, Unset):
|
|
65
|
+
return data
|
|
66
|
+
return cast(Union[None, Unset, str], data)
|
|
67
|
+
|
|
68
|
+
cleanup_prompt = _parse_cleanup_prompt(d.pop("cleanup_prompt", UNSET))
|
|
69
|
+
|
|
70
|
+
workflow_update = cls(
|
|
71
|
+
main_prompt=main_prompt,
|
|
72
|
+
cleanup_prompt=cleanup_prompt,
|
|
73
|
+
)
|
|
74
|
+
|
|
75
|
+
workflow_update.additional_properties = d
|
|
76
|
+
return workflow_update
|
|
77
|
+
|
|
78
|
+
@property
|
|
79
|
+
def additional_keys(self) -> list[str]:
|
|
80
|
+
return list(self.additional_properties.keys())
|
|
81
|
+
|
|
82
|
+
def __getitem__(self, key: str) -> Any:
|
|
83
|
+
return self.additional_properties[key]
|
|
84
|
+
|
|
85
|
+
def __setitem__(self, key: str, value: Any) -> None:
|
|
86
|
+
self.additional_properties[key] = value
|
|
87
|
+
|
|
88
|
+
def __delitem__(self, key: str) -> None:
|
|
89
|
+
del self.additional_properties[key]
|
|
90
|
+
|
|
91
|
+
def __contains__(self, key: str) -> bool:
|
|
92
|
+
return key in self.additional_properties
|