cyberdesk 1.9.0__tar.gz → 1.11.0__tar.gz
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-1.9.0 → cyberdesk-1.11.0}/PKG-INFO +1 -1
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk/__init__.py +3 -1
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk/client.py +233 -5
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk.egg-info/PKG-INFO +1 -1
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk.egg-info/SOURCES.txt +6 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/download_run_attachment_v1_run_attachments_attachment_id_download_get.py +4 -4
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.py +209 -0
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_post.py +200 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/__init__.py +8 -0
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/models/run_attachment_download_url_response.py +68 -0
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py +181 -0
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/models/run_bulk_create_input_values_type_0.py +44 -0
- cyberdesk-1.11.0/openapi_client/cyberdesk_cloud_client/models/run_bulk_create_response.py +96 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/pyproject.toml +1 -1
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/LICENSE +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/README.md +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk.egg-info/dependency_links.txt +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk.egg-info/requires.txt +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/cyberdesk.egg-info/top_level.txt +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_list_v1_computer_machine_id_fs_list_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_read_v1_computer_machine_id_fs_read_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/fs_write_v1_computer_machine_id_fs_write_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_display_dimensions_v1_computer_machine_id_display_dimensions_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_mouse_position_v1_computer_machine_id_input_mouse_position_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/get_screenshot_v1_computer_machine_id_display_screenshot_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/keyboard_key_v1_computer_machine_id_input_keyboard_key_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/keyboard_type_v1_computer_machine_id_input_keyboard_type_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/mouse_click_v1_computer_machine_id_input_mouse_click_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/mouse_move_v1_computer_machine_id_input_mouse_move_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/computer/powershell_session_v1_computer_machine_id_shell_powershell_session_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/create_connection_v1_connections_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/delete_connection_v1_connections_connection_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/get_connection_v1_connections_connection_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/list_connections_v1_connections_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/connections/update_connection_v1_connections_connection_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/default/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/default/root_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/health/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/health/database_health_check_v1_health_db_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/health/health_check_v1_health_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/create_machine_v1_machines_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/delete_machine_v1_machines_machine_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/get_machine_v1_machines_machine_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/list_machines_v1_machines_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/machines/update_machine_v1_machines_machine_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/create_request_log_v1_request_logs_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/delete_request_log_v1_request_logs_log_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/get_request_log_v1_request_logs_log_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/list_request_logs_v1_request_logs_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/request_logs/update_request_log_v1_request_logs_log_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/create_run_attachment_v1_run_attachments_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/delete_run_attachment_v1_run_attachments_attachment_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_v1_run_attachments_attachment_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/run_attachments/update_run_attachment_v1_run_attachments_attachment_id_put.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/list_runs_v1_runs_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/runs/update_run_v1_runs_run_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/test/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/test/dummy_test_endpoint_v1_test_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/create_trajectory_v1_trajectories_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/delete_trajectory_v1_trajectories_trajectory_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/get_latest_trajectory_for_workflow_v1_workflows_workflow_id_latest_trajectory_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/get_trajectory_v1_trajectories_trajectory_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/list_trajectories_v1_trajectories_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/trajectories/update_trajectory_v1_trajectories_trajectory_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/__init__.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/create_workflow_v1_workflows_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/delete_workflow_v1_workflows_workflow_id_delete.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_v1_workflows_workflow_id_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/get_workflow_versions_v1_workflows_workflow_id_versions_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/list_workflows_v1_workflows_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/api/workflows/update_workflow_v1_workflows_workflow_id_patch.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/client.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/errors.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/attachment_type.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/connection_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/connection_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/connection_status.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/database_health_check_v1_health_db_get_response_database_health_check_v1_health_db_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/display_dimensions.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/dummy_test_endpoint_v1_test_post_response_dummy_test_endpoint_v1_test_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/file_input.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/file_write_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/fs_list_v1_computer_machine_id_fs_list_get_response_fs_list_v1_computer_machine_id_fs_list_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/fs_read_v1_computer_machine_id_fs_read_get_response_fs_read_v1_computer_machine_id_fs_read_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/fs_write_v1_computer_machine_id_fs_write_post_response_fs_write_v1_computer_machine_id_fs_write_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/get_workflow_versions_v1_workflows_workflow_id_versions_get_response_200_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/health_check_v1_health_get_response_health_check_v1_health_get.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/http_validation_error.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/keyboard_key_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/keyboard_type_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/machine_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/machine_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/machine_status.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/machine_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/mouse_click_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/mouse_move_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/mouse_position.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_connection_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_machine_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_run_attachment_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_run_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_trajectory_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/paginated_response_workflow_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/power_shell_exec_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/power_shell_session_request.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/powershell_exec_v1_computer_machine_id_shell_powershell_exec_post_response_powershell_exec_v1_computer_machine_id_shell_powershell_exec_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/powershell_session_v1_computer_machine_id_shell_powershell_session_post_response_powershell_session_v1_computer_machine_id_shell_powershell_session_post.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/request_log_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/request_log_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/request_log_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_attachment_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_response_input_values_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_response_output_data_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_response_run_message_history_type_0_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_status.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_update_input_values_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_update_output_data_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/run_update_run_message_history_type_0_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_dimensions.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_original_input_values_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_create_trajectory_data_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_dimensions.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_original_input_values_type_0.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_response_trajectory_data_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/trajectory_update_trajectory_data_type_0_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/validation_error.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/workflow_create.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/workflow_response.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/workflow_response_old_versions_type_0_item.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/models/workflow_update.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/py.typed +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/openapi_client/cyberdesk_cloud_client/types.py +0 -0
- {cyberdesk-1.9.0 → cyberdesk-1.11.0}/setup.cfg +0 -0
|
@@ -23,10 +23,11 @@ from .client import (
|
|
|
23
23
|
RunAttachmentCreate,
|
|
24
24
|
RunAttachmentUpdate,
|
|
25
25
|
RunAttachmentResponse,
|
|
26
|
+
RunAttachmentDownloadUrlResponse,
|
|
26
27
|
AttachmentType,
|
|
27
28
|
)
|
|
28
29
|
|
|
29
|
-
__version__ = "1.
|
|
30
|
+
__version__ = "1.11.0"
|
|
30
31
|
|
|
31
32
|
__all__ = [
|
|
32
33
|
"CyberdeskClient",
|
|
@@ -51,5 +52,6 @@ __all__ = [
|
|
|
51
52
|
"RunAttachmentCreate",
|
|
52
53
|
"RunAttachmentUpdate",
|
|
53
54
|
"RunAttachmentResponse",
|
|
55
|
+
"RunAttachmentDownloadUrlResponse",
|
|
54
56
|
"AttachmentType",
|
|
55
57
|
]
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"""Cyberdesk Python SDK Client."""
|
|
2
2
|
from typing import Optional, Dict, Any, Union
|
|
3
3
|
from uuid import UUID
|
|
4
|
+
from pathlib import Path
|
|
4
5
|
import httpx
|
|
5
6
|
from dataclasses import dataclass
|
|
6
7
|
|
|
@@ -27,6 +28,7 @@ from openapi_client.cyberdesk_cloud_client.api.runs import (
|
|
|
27
28
|
get_run_v1_runs_run_id_get,
|
|
28
29
|
update_run_v1_runs_run_id_patch,
|
|
29
30
|
delete_run_v1_runs_run_id_delete,
|
|
31
|
+
bulk_create_runs_v1_runs_bulk_post,
|
|
30
32
|
)
|
|
31
33
|
from openapi_client.cyberdesk_cloud_client.api.connections import (
|
|
32
34
|
list_connections_v1_connections_get,
|
|
@@ -45,6 +47,7 @@ from openapi_client.cyberdesk_cloud_client.api.run_attachments import (
|
|
|
45
47
|
create_run_attachment_v1_run_attachments_post,
|
|
46
48
|
get_run_attachment_v1_run_attachments_attachment_id_get,
|
|
47
49
|
download_run_attachment_v1_run_attachments_attachment_id_download_get,
|
|
50
|
+
get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get,
|
|
48
51
|
update_run_attachment_v1_run_attachments_attachment_id_put,
|
|
49
52
|
delete_run_attachment_v1_run_attachments_attachment_id_delete,
|
|
50
53
|
)
|
|
@@ -62,6 +65,8 @@ from openapi_client.cyberdesk_cloud_client.models import (
|
|
|
62
65
|
RunUpdate,
|
|
63
66
|
RunResponse,
|
|
64
67
|
RunStatus,
|
|
68
|
+
RunBulkCreate,
|
|
69
|
+
RunBulkCreateResponse,
|
|
65
70
|
FileInput,
|
|
66
71
|
ConnectionCreate,
|
|
67
72
|
ConnectionResponse,
|
|
@@ -72,6 +77,7 @@ from openapi_client.cyberdesk_cloud_client.models import (
|
|
|
72
77
|
RunAttachmentCreate,
|
|
73
78
|
RunAttachmentUpdate,
|
|
74
79
|
RunAttachmentResponse,
|
|
80
|
+
RunAttachmentDownloadUrlResponse,
|
|
75
81
|
AttachmentType,
|
|
76
82
|
PaginatedResponseMachineResponse,
|
|
77
83
|
PaginatedResponseWorkflowResponse,
|
|
@@ -95,6 +101,8 @@ __all__ = [
|
|
|
95
101
|
"RunUpdate",
|
|
96
102
|
"RunResponse",
|
|
97
103
|
"RunStatus",
|
|
104
|
+
"RunBulkCreate",
|
|
105
|
+
"RunBulkCreateResponse",
|
|
98
106
|
"FileInput",
|
|
99
107
|
"ConnectionCreate",
|
|
100
108
|
"ConnectionResponse",
|
|
@@ -105,6 +113,7 @@ __all__ = [
|
|
|
105
113
|
"RunAttachmentCreate",
|
|
106
114
|
"RunAttachmentUpdate",
|
|
107
115
|
"RunAttachmentResponse",
|
|
116
|
+
"RunAttachmentDownloadUrlResponse",
|
|
108
117
|
"AttachmentType",
|
|
109
118
|
]
|
|
110
119
|
|
|
@@ -523,6 +532,60 @@ class RunsAPI:
|
|
|
523
532
|
return ApiResponse(data={"success": True})
|
|
524
533
|
except Exception as e:
|
|
525
534
|
return ApiResponse(error=e)
|
|
535
|
+
|
|
536
|
+
async def bulk_create(self, data: RunBulkCreate) -> ApiResponse:
|
|
537
|
+
"""Create multiple runs with the same configuration.
|
|
538
|
+
|
|
539
|
+
This method efficiently creates multiple runs:
|
|
540
|
+
- All runs are created in a single database transaction
|
|
541
|
+
- Temporal workflows are started asynchronously
|
|
542
|
+
- Returns immediately with created run details
|
|
543
|
+
|
|
544
|
+
Args:
|
|
545
|
+
data: RunBulkCreate object containing workflow_id, machine_id,
|
|
546
|
+
input_values, file_inputs, and count (max 1000)
|
|
547
|
+
|
|
548
|
+
Returns:
|
|
549
|
+
ApiResponse with RunBulkCreateResponse containing:
|
|
550
|
+
- created_runs: List of created RunResponse objects
|
|
551
|
+
- failed_count: Number of runs that failed to create
|
|
552
|
+
- errors: List of error messages for failed runs
|
|
553
|
+
"""
|
|
554
|
+
try:
|
|
555
|
+
response = await bulk_create_runs_v1_runs_bulk_post.asyncio(
|
|
556
|
+
client=self.client,
|
|
557
|
+
body=data
|
|
558
|
+
)
|
|
559
|
+
return ApiResponse(data=response)
|
|
560
|
+
except Exception as e:
|
|
561
|
+
return ApiResponse(error=e)
|
|
562
|
+
|
|
563
|
+
def bulk_create_sync(self, data: RunBulkCreate) -> ApiResponse:
|
|
564
|
+
"""Create multiple runs with the same configuration (synchronous).
|
|
565
|
+
|
|
566
|
+
This method efficiently creates multiple runs:
|
|
567
|
+
- All runs are created in a single database transaction
|
|
568
|
+
- Temporal workflows are started asynchronously
|
|
569
|
+
- Returns immediately with created run details
|
|
570
|
+
|
|
571
|
+
Args:
|
|
572
|
+
data: RunBulkCreate object containing workflow_id, machine_id,
|
|
573
|
+
input_values, file_inputs, and count (max 1000)
|
|
574
|
+
|
|
575
|
+
Returns:
|
|
576
|
+
ApiResponse with RunBulkCreateResponse containing:
|
|
577
|
+
- created_runs: List of created RunResponse objects
|
|
578
|
+
- failed_count: Number of runs that failed to create
|
|
579
|
+
- errors: List of error messages for failed runs
|
|
580
|
+
"""
|
|
581
|
+
try:
|
|
582
|
+
response = bulk_create_runs_v1_runs_bulk_post.sync(
|
|
583
|
+
client=self.client,
|
|
584
|
+
body=data
|
|
585
|
+
)
|
|
586
|
+
return ApiResponse(data=response)
|
|
587
|
+
except Exception as e:
|
|
588
|
+
return ApiResponse(error=e)
|
|
526
589
|
|
|
527
590
|
|
|
528
591
|
class ConnectionsAPI:
|
|
@@ -847,14 +910,75 @@ class RunAttachmentsAPI:
|
|
|
847
910
|
except Exception as e:
|
|
848
911
|
return ApiResponse(error=e)
|
|
849
912
|
|
|
913
|
+
async def get_download_url(
|
|
914
|
+
self,
|
|
915
|
+
attachment_id: str,
|
|
916
|
+
expires_in: Optional[int] = None
|
|
917
|
+
) -> ApiResponse:
|
|
918
|
+
"""Get a signed download URL for a run attachment.
|
|
919
|
+
|
|
920
|
+
The returned URL will trigger an automatic download when accessed in a browser.
|
|
921
|
+
|
|
922
|
+
Args:
|
|
923
|
+
attachment_id: The ID of the attachment
|
|
924
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
925
|
+
|
|
926
|
+
Returns:
|
|
927
|
+
ApiResponse with RunAttachmentDownloadUrlResponse containing:
|
|
928
|
+
- url: The signed download URL
|
|
929
|
+
- expires_in: The expiration time in seconds
|
|
930
|
+
"""
|
|
931
|
+
try:
|
|
932
|
+
response = await get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.asyncio(
|
|
933
|
+
client=self.client,
|
|
934
|
+
attachment_id=_to_uuid(attachment_id),
|
|
935
|
+
expires_in=_to_unset_or_value(expires_in)
|
|
936
|
+
)
|
|
937
|
+
return ApiResponse(data=response)
|
|
938
|
+
except Exception as e:
|
|
939
|
+
return ApiResponse(error=e)
|
|
940
|
+
|
|
941
|
+
def get_download_url_sync(
|
|
942
|
+
self,
|
|
943
|
+
attachment_id: str,
|
|
944
|
+
expires_in: Optional[int] = None
|
|
945
|
+
) -> ApiResponse:
|
|
946
|
+
"""Get a signed download URL for a run attachment (synchronous).
|
|
947
|
+
|
|
948
|
+
The returned URL will trigger an automatic download when accessed in a browser.
|
|
949
|
+
|
|
950
|
+
Args:
|
|
951
|
+
attachment_id: The ID of the attachment
|
|
952
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
953
|
+
|
|
954
|
+
Returns:
|
|
955
|
+
ApiResponse with RunAttachmentDownloadUrlResponse containing:
|
|
956
|
+
- url: The signed download URL
|
|
957
|
+
- expires_in: The expiration time in seconds
|
|
958
|
+
"""
|
|
959
|
+
try:
|
|
960
|
+
response = get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.sync(
|
|
961
|
+
client=self.client,
|
|
962
|
+
attachment_id=_to_uuid(attachment_id),
|
|
963
|
+
expires_in=_to_unset_or_value(expires_in)
|
|
964
|
+
)
|
|
965
|
+
return ApiResponse(data=response)
|
|
966
|
+
except Exception as e:
|
|
967
|
+
return ApiResponse(error=e)
|
|
968
|
+
|
|
850
969
|
async def download(self, attachment_id: str) -> ApiResponse:
|
|
851
|
-
"""Download a run attachment file.
|
|
970
|
+
"""Download a run attachment file directly.
|
|
971
|
+
|
|
972
|
+
This method returns the raw file content as bytes. For a download URL instead,
|
|
973
|
+
use get_download_url().
|
|
974
|
+
|
|
975
|
+
Args:
|
|
976
|
+
attachment_id: The ID of the attachment to download
|
|
852
977
|
|
|
853
978
|
Returns:
|
|
854
|
-
ApiResponse with data containing the file bytes
|
|
979
|
+
ApiResponse with data containing the raw file bytes
|
|
855
980
|
"""
|
|
856
981
|
try:
|
|
857
|
-
# The download endpoint typically returns binary data or a redirect URL
|
|
858
982
|
response = await download_run_attachment_v1_run_attachments_attachment_id_download_get.asyncio(
|
|
859
983
|
client=self.client,
|
|
860
984
|
attachment_id=_to_uuid(attachment_id)
|
|
@@ -864,10 +988,16 @@ class RunAttachmentsAPI:
|
|
|
864
988
|
return ApiResponse(error=e)
|
|
865
989
|
|
|
866
990
|
def download_sync(self, attachment_id: str) -> ApiResponse:
|
|
867
|
-
"""Download a run attachment file (synchronous).
|
|
991
|
+
"""Download a run attachment file directly (synchronous).
|
|
992
|
+
|
|
993
|
+
This method returns the raw file content as bytes. For a download URL instead,
|
|
994
|
+
use get_download_url_sync().
|
|
995
|
+
|
|
996
|
+
Args:
|
|
997
|
+
attachment_id: The ID of the attachment to download
|
|
868
998
|
|
|
869
999
|
Returns:
|
|
870
|
-
ApiResponse with data containing the file bytes
|
|
1000
|
+
ApiResponse with data containing the raw file bytes
|
|
871
1001
|
"""
|
|
872
1002
|
try:
|
|
873
1003
|
response = download_run_attachment_v1_run_attachments_attachment_id_download_get.sync(
|
|
@@ -923,6 +1053,104 @@ class RunAttachmentsAPI:
|
|
|
923
1053
|
return ApiResponse(data={"success": True})
|
|
924
1054
|
except Exception as e:
|
|
925
1055
|
return ApiResponse(error=e)
|
|
1056
|
+
|
|
1057
|
+
async def save_to_file(
|
|
1058
|
+
self,
|
|
1059
|
+
attachment_id: str,
|
|
1060
|
+
output_path: Optional[Union[str, Path]] = None,
|
|
1061
|
+
use_original_filename: bool = True
|
|
1062
|
+
) -> ApiResponse:
|
|
1063
|
+
"""Download and save a run attachment to a file.
|
|
1064
|
+
|
|
1065
|
+
This is a convenience method that combines getting attachment info
|
|
1066
|
+
and downloading the file content.
|
|
1067
|
+
|
|
1068
|
+
Args:
|
|
1069
|
+
attachment_id: The ID of the attachment to download
|
|
1070
|
+
output_path: Path where to save the file. If None and use_original_filename
|
|
1071
|
+
is True, saves to current directory with original filename.
|
|
1072
|
+
use_original_filename: If True and output_path is a directory, uses the
|
|
1073
|
+
attachment's original filename.
|
|
1074
|
+
|
|
1075
|
+
Returns:
|
|
1076
|
+
ApiResponse with data containing the saved file path
|
|
1077
|
+
"""
|
|
1078
|
+
try:
|
|
1079
|
+
# Get attachment info for filename
|
|
1080
|
+
info_response = await self.get(attachment_id)
|
|
1081
|
+
if info_response.error:
|
|
1082
|
+
return info_response
|
|
1083
|
+
|
|
1084
|
+
attachment_info = info_response.data
|
|
1085
|
+
|
|
1086
|
+
# Download the file content
|
|
1087
|
+
download_response = await self.download(attachment_id)
|
|
1088
|
+
if download_response.error:
|
|
1089
|
+
return download_response
|
|
1090
|
+
|
|
1091
|
+
# Determine output path
|
|
1092
|
+
if output_path is None:
|
|
1093
|
+
output_path = Path(attachment_info.filename)
|
|
1094
|
+
else:
|
|
1095
|
+
output_path = Path(output_path)
|
|
1096
|
+
if output_path.is_dir() and use_original_filename:
|
|
1097
|
+
output_path = output_path / attachment_info.filename
|
|
1098
|
+
|
|
1099
|
+
# Save to file
|
|
1100
|
+
output_path.write_bytes(download_response.data)
|
|
1101
|
+
|
|
1102
|
+
return ApiResponse(data={"path": str(output_path), "size": len(download_response.data)})
|
|
1103
|
+
except Exception as e:
|
|
1104
|
+
return ApiResponse(error=e)
|
|
1105
|
+
|
|
1106
|
+
def save_to_file_sync(
|
|
1107
|
+
self,
|
|
1108
|
+
attachment_id: str,
|
|
1109
|
+
output_path: Optional[Union[str, Path]] = None,
|
|
1110
|
+
use_original_filename: bool = True
|
|
1111
|
+
) -> ApiResponse:
|
|
1112
|
+
"""Download and save a run attachment to a file (synchronous).
|
|
1113
|
+
|
|
1114
|
+
This is a convenience method that combines getting attachment info
|
|
1115
|
+
and downloading the file content.
|
|
1116
|
+
|
|
1117
|
+
Args:
|
|
1118
|
+
attachment_id: The ID of the attachment to download
|
|
1119
|
+
output_path: Path where to save the file. If None and use_original_filename
|
|
1120
|
+
is True, saves to current directory with original filename.
|
|
1121
|
+
use_original_filename: If True and output_path is a directory, uses the
|
|
1122
|
+
attachment's original filename.
|
|
1123
|
+
|
|
1124
|
+
Returns:
|
|
1125
|
+
ApiResponse with data containing the saved file path
|
|
1126
|
+
"""
|
|
1127
|
+
try:
|
|
1128
|
+
# Get attachment info for filename
|
|
1129
|
+
info_response = self.get_sync(attachment_id)
|
|
1130
|
+
if info_response.error:
|
|
1131
|
+
return info_response
|
|
1132
|
+
|
|
1133
|
+
attachment_info = info_response.data
|
|
1134
|
+
|
|
1135
|
+
# Download the file content
|
|
1136
|
+
download_response = self.download_sync(attachment_id)
|
|
1137
|
+
if download_response.error:
|
|
1138
|
+
return download_response
|
|
1139
|
+
|
|
1140
|
+
# Determine output path
|
|
1141
|
+
if output_path is None:
|
|
1142
|
+
output_path = Path(attachment_info.filename)
|
|
1143
|
+
else:
|
|
1144
|
+
output_path = Path(output_path)
|
|
1145
|
+
if output_path.is_dir() and use_original_filename:
|
|
1146
|
+
output_path = output_path / attachment_info.filename
|
|
1147
|
+
|
|
1148
|
+
# Save to file
|
|
1149
|
+
output_path.write_bytes(download_response.data)
|
|
1150
|
+
|
|
1151
|
+
return ApiResponse(data={"path": str(output_path), "size": len(download_response.data)})
|
|
1152
|
+
except Exception as e:
|
|
1153
|
+
return ApiResponse(error=e)
|
|
926
1154
|
|
|
927
1155
|
|
|
928
1156
|
class CyberdeskClient:
|
|
@@ -54,10 +54,12 @@ openapi_client/cyberdesk_cloud_client/api/run_attachments/__init__.py
|
|
|
54
54
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/create_run_attachment_v1_run_attachments_post.py
|
|
55
55
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/delete_run_attachment_v1_run_attachments_attachment_id_delete.py
|
|
56
56
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/download_run_attachment_v1_run_attachments_attachment_id_download_get.py
|
|
57
|
+
openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_download_url_v1_run_attachments_attachment_id_download_url_get.py
|
|
57
58
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/get_run_attachment_v1_run_attachments_attachment_id_get.py
|
|
58
59
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/list_run_attachments_v1_run_attachments_get.py
|
|
59
60
|
openapi_client/cyberdesk_cloud_client/api/run_attachments/update_run_attachment_v1_run_attachments_attachment_id_put.py
|
|
60
61
|
openapi_client/cyberdesk_cloud_client/api/runs/__init__.py
|
|
62
|
+
openapi_client/cyberdesk_cloud_client/api/runs/bulk_create_runs_v1_runs_bulk_post.py
|
|
61
63
|
openapi_client/cyberdesk_cloud_client/api/runs/create_run_v1_runs_post.py
|
|
62
64
|
openapi_client/cyberdesk_cloud_client/api/runs/delete_run_v1_runs_run_id_delete.py
|
|
63
65
|
openapi_client/cyberdesk_cloud_client/api/runs/get_run_v1_runs_run_id_get.py
|
|
@@ -119,8 +121,12 @@ openapi_client/cyberdesk_cloud_client/models/request_log_create.py
|
|
|
119
121
|
openapi_client/cyberdesk_cloud_client/models/request_log_response.py
|
|
120
122
|
openapi_client/cyberdesk_cloud_client/models/request_log_update.py
|
|
121
123
|
openapi_client/cyberdesk_cloud_client/models/run_attachment_create.py
|
|
124
|
+
openapi_client/cyberdesk_cloud_client/models/run_attachment_download_url_response.py
|
|
122
125
|
openapi_client/cyberdesk_cloud_client/models/run_attachment_response.py
|
|
123
126
|
openapi_client/cyberdesk_cloud_client/models/run_attachment_update.py
|
|
127
|
+
openapi_client/cyberdesk_cloud_client/models/run_bulk_create.py
|
|
128
|
+
openapi_client/cyberdesk_cloud_client/models/run_bulk_create_input_values_type_0.py
|
|
129
|
+
openapi_client/cyberdesk_cloud_client/models/run_bulk_create_response.py
|
|
124
130
|
openapi_client/cyberdesk_cloud_client/models/run_create.py
|
|
125
131
|
openapi_client/cyberdesk_cloud_client/models/run_create_input_values_type_0.py
|
|
126
132
|
openapi_client/cyberdesk_cloud_client/models/run_response.py
|
|
@@ -57,7 +57,7 @@ def sync_detailed(
|
|
|
57
57
|
|
|
58
58
|
Download a run attachment file.
|
|
59
59
|
|
|
60
|
-
Returns the file content as a streaming response.
|
|
60
|
+
Returns the raw file content as a streaming response.
|
|
61
61
|
|
|
62
62
|
Args:
|
|
63
63
|
attachment_id (UUID):
|
|
@@ -90,7 +90,7 @@ def sync(
|
|
|
90
90
|
|
|
91
91
|
Download a run attachment file.
|
|
92
92
|
|
|
93
|
-
Returns the file content as a streaming response.
|
|
93
|
+
Returns the raw file content as a streaming response.
|
|
94
94
|
|
|
95
95
|
Args:
|
|
96
96
|
attachment_id (UUID):
|
|
@@ -118,7 +118,7 @@ async def asyncio_detailed(
|
|
|
118
118
|
|
|
119
119
|
Download a run attachment file.
|
|
120
120
|
|
|
121
|
-
Returns the file content as a streaming response.
|
|
121
|
+
Returns the raw file content as a streaming response.
|
|
122
122
|
|
|
123
123
|
Args:
|
|
124
124
|
attachment_id (UUID):
|
|
@@ -149,7 +149,7 @@ async def asyncio(
|
|
|
149
149
|
|
|
150
150
|
Download a run attachment file.
|
|
151
151
|
|
|
152
|
-
Returns the file content as a streaming response.
|
|
152
|
+
Returns the raw file content as a streaming response.
|
|
153
153
|
|
|
154
154
|
Args:
|
|
155
155
|
attachment_id (UUID):
|
|
@@ -0,0 +1,209 @@
|
|
|
1
|
+
from http import HTTPStatus
|
|
2
|
+
from typing import Any, Optional, Union
|
|
3
|
+
from uuid import UUID
|
|
4
|
+
|
|
5
|
+
import httpx
|
|
6
|
+
|
|
7
|
+
from ... import errors
|
|
8
|
+
from ...client import AuthenticatedClient, Client
|
|
9
|
+
from ...models.http_validation_error import HTTPValidationError
|
|
10
|
+
from ...models.run_attachment_download_url_response import RunAttachmentDownloadUrlResponse
|
|
11
|
+
from ...types import UNSET, Response, Unset
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
def _get_kwargs(
|
|
15
|
+
attachment_id: UUID,
|
|
16
|
+
*,
|
|
17
|
+
expires_in: Union[Unset, int] = 300,
|
|
18
|
+
) -> dict[str, Any]:
|
|
19
|
+
params: dict[str, Any] = {}
|
|
20
|
+
|
|
21
|
+
params["expires_in"] = expires_in
|
|
22
|
+
|
|
23
|
+
params = {k: v for k, v in params.items() if v is not UNSET and v is not None}
|
|
24
|
+
|
|
25
|
+
_kwargs: dict[str, Any] = {
|
|
26
|
+
"method": "get",
|
|
27
|
+
"url": f"/v1/run-attachments/{attachment_id}/download-url",
|
|
28
|
+
"params": params,
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
return _kwargs
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
def _parse_response(
|
|
35
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
36
|
+
) -> Optional[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
37
|
+
if response.status_code == 200:
|
|
38
|
+
response_200 = RunAttachmentDownloadUrlResponse.from_dict(response.json())
|
|
39
|
+
|
|
40
|
+
return response_200
|
|
41
|
+
if response.status_code == 422:
|
|
42
|
+
response_422 = HTTPValidationError.from_dict(response.json())
|
|
43
|
+
|
|
44
|
+
return response_422
|
|
45
|
+
if client.raise_on_unexpected_status:
|
|
46
|
+
raise errors.UnexpectedStatus(response.status_code, response.content)
|
|
47
|
+
else:
|
|
48
|
+
return None
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
def _build_response(
|
|
52
|
+
*, client: Union[AuthenticatedClient, Client], response: httpx.Response
|
|
53
|
+
) -> Response[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
54
|
+
return Response(
|
|
55
|
+
status_code=HTTPStatus(response.status_code),
|
|
56
|
+
content=response.content,
|
|
57
|
+
headers=response.headers,
|
|
58
|
+
parsed=_parse_response(client=client, response=response),
|
|
59
|
+
)
|
|
60
|
+
|
|
61
|
+
|
|
62
|
+
def sync_detailed(
|
|
63
|
+
attachment_id: UUID,
|
|
64
|
+
*,
|
|
65
|
+
client: AuthenticatedClient,
|
|
66
|
+
expires_in: Union[Unset, int] = 300,
|
|
67
|
+
) -> Response[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
68
|
+
"""Get Run Attachment Download Url
|
|
69
|
+
|
|
70
|
+
Get a signed download URL for a run attachment file.
|
|
71
|
+
|
|
72
|
+
Returns a signed URL that triggers automatic download when accessed.
|
|
73
|
+
|
|
74
|
+
Args:
|
|
75
|
+
attachment_id: The ID of the attachment to download
|
|
76
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
77
|
+
|
|
78
|
+
Args:
|
|
79
|
+
attachment_id (UUID):
|
|
80
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds (10-3600) Default: 300.
|
|
81
|
+
|
|
82
|
+
Raises:
|
|
83
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
84
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
85
|
+
|
|
86
|
+
Returns:
|
|
87
|
+
Response[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]
|
|
88
|
+
"""
|
|
89
|
+
|
|
90
|
+
kwargs = _get_kwargs(
|
|
91
|
+
attachment_id=attachment_id,
|
|
92
|
+
expires_in=expires_in,
|
|
93
|
+
)
|
|
94
|
+
|
|
95
|
+
response = client.get_httpx_client().request(
|
|
96
|
+
**kwargs,
|
|
97
|
+
)
|
|
98
|
+
|
|
99
|
+
return _build_response(client=client, response=response)
|
|
100
|
+
|
|
101
|
+
|
|
102
|
+
def sync(
|
|
103
|
+
attachment_id: UUID,
|
|
104
|
+
*,
|
|
105
|
+
client: AuthenticatedClient,
|
|
106
|
+
expires_in: Union[Unset, int] = 300,
|
|
107
|
+
) -> Optional[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
108
|
+
"""Get Run Attachment Download Url
|
|
109
|
+
|
|
110
|
+
Get a signed download URL for a run attachment file.
|
|
111
|
+
|
|
112
|
+
Returns a signed URL that triggers automatic download when accessed.
|
|
113
|
+
|
|
114
|
+
Args:
|
|
115
|
+
attachment_id: The ID of the attachment to download
|
|
116
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
117
|
+
|
|
118
|
+
Args:
|
|
119
|
+
attachment_id (UUID):
|
|
120
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds (10-3600) Default: 300.
|
|
121
|
+
|
|
122
|
+
Raises:
|
|
123
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
124
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
125
|
+
|
|
126
|
+
Returns:
|
|
127
|
+
Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
return sync_detailed(
|
|
131
|
+
attachment_id=attachment_id,
|
|
132
|
+
client=client,
|
|
133
|
+
expires_in=expires_in,
|
|
134
|
+
).parsed
|
|
135
|
+
|
|
136
|
+
|
|
137
|
+
async def asyncio_detailed(
|
|
138
|
+
attachment_id: UUID,
|
|
139
|
+
*,
|
|
140
|
+
client: AuthenticatedClient,
|
|
141
|
+
expires_in: Union[Unset, int] = 300,
|
|
142
|
+
) -> Response[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
143
|
+
"""Get Run Attachment Download Url
|
|
144
|
+
|
|
145
|
+
Get a signed download URL for a run attachment file.
|
|
146
|
+
|
|
147
|
+
Returns a signed URL that triggers automatic download when accessed.
|
|
148
|
+
|
|
149
|
+
Args:
|
|
150
|
+
attachment_id: The ID of the attachment to download
|
|
151
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
152
|
+
|
|
153
|
+
Args:
|
|
154
|
+
attachment_id (UUID):
|
|
155
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds (10-3600) Default: 300.
|
|
156
|
+
|
|
157
|
+
Raises:
|
|
158
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
159
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
160
|
+
|
|
161
|
+
Returns:
|
|
162
|
+
Response[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]
|
|
163
|
+
"""
|
|
164
|
+
|
|
165
|
+
kwargs = _get_kwargs(
|
|
166
|
+
attachment_id=attachment_id,
|
|
167
|
+
expires_in=expires_in,
|
|
168
|
+
)
|
|
169
|
+
|
|
170
|
+
response = await client.get_async_httpx_client().request(**kwargs)
|
|
171
|
+
|
|
172
|
+
return _build_response(client=client, response=response)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
async def asyncio(
|
|
176
|
+
attachment_id: UUID,
|
|
177
|
+
*,
|
|
178
|
+
client: AuthenticatedClient,
|
|
179
|
+
expires_in: Union[Unset, int] = 300,
|
|
180
|
+
) -> Optional[Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]]:
|
|
181
|
+
"""Get Run Attachment Download Url
|
|
182
|
+
|
|
183
|
+
Get a signed download URL for a run attachment file.
|
|
184
|
+
|
|
185
|
+
Returns a signed URL that triggers automatic download when accessed.
|
|
186
|
+
|
|
187
|
+
Args:
|
|
188
|
+
attachment_id: The ID of the attachment to download
|
|
189
|
+
expires_in: URL expiration time in seconds (10-3600). Default: 300 (5 minutes)
|
|
190
|
+
|
|
191
|
+
Args:
|
|
192
|
+
attachment_id (UUID):
|
|
193
|
+
expires_in (Union[Unset, int]): URL expiration time in seconds (10-3600) Default: 300.
|
|
194
|
+
|
|
195
|
+
Raises:
|
|
196
|
+
errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
|
|
197
|
+
httpx.TimeoutException: If the request takes longer than Client.timeout.
|
|
198
|
+
|
|
199
|
+
Returns:
|
|
200
|
+
Union[HTTPValidationError, RunAttachmentDownloadUrlResponse]
|
|
201
|
+
"""
|
|
202
|
+
|
|
203
|
+
return (
|
|
204
|
+
await asyncio_detailed(
|
|
205
|
+
attachment_id=attachment_id,
|
|
206
|
+
client=client,
|
|
207
|
+
expires_in=expires_in,
|
|
208
|
+
)
|
|
209
|
+
).parsed
|