runloop-api-client 0.22.0__tar.gz → 0.24.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.
- runloop_api_client-0.24.0/.release-please-manifest.json +3 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/CHANGELOG.md +42 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/PKG-INFO +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/README.md +1 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/api.md +17 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/pyproject.toml +1 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_base_client.py +9 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_constants.py +3 -3
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_models.py +7 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_sync.py +17 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_transform.py +11 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_version.py +1 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/pagination.py +144 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/benchmarks/benchmarks.py +17 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/__init__.py +14 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/browsers.py +78 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/computers.py +78 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/devboxes.py +155 -2
- runloop_api_client-0.24.0/src/runloop_api_client/resources/devboxes/disk_snapshots.py +421 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/scenarios/scenarios.py +29 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/scenarios/scorers.py +12 -12
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/__init__.py +1 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_create_params.py +4 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_run_view.py +7 -4
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_start_run_params.py +4 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_view.py +4 -1
- runloop_api_client-0.24.0/src/runloop_api_client/types/devbox_update_params.py +16 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/__init__.py +2 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/browser_view.py +3 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_view.py +6 -1
- runloop_api_client-0.24.0/src/runloop_api_client/types/devboxes/disk_snapshot_list_params.py +18 -0
- runloop_api_client-0.24.0/src/runloop_api_client/types/devboxes/disk_snapshot_update_params.py +16 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_create_params.py +11 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_environment.py +10 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_environment_param.py +11 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_run_view.py +4 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_start_run_params.py +4 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_view.py +11 -1
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_create_params.py +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_create_response.py +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_list_response.py +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_retrieve_response.py +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_update_params.py +2 -2
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_update_response.py +2 -2
- runloop_api_client-0.24.0/src/runloop_api_client/types/scoring_function.py +39 -0
- runloop_api_client-0.24.0/src/runloop_api_client/types/scoring_function_param.py +40 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scoring_function_result_view.py +4 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/test_browsers.py +76 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/test_computers.py +76 -0
- runloop_api_client-0.24.0/tests/api_resources/devboxes/test_disk_snapshots.py +261 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/scenarios/test_scorers.py +36 -14
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/test_benchmarks.py +4 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/test_devboxes.py +94 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/test_scenarios.py +38 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_client.py +34 -32
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_transform.py +10 -1
- runloop_api_client-0.22.0/.release-please-manifest.json +0 -3
- runloop_api_client-0.22.0/src/runloop_api_client/types/scoring_function.py +0 -25
- runloop_api_client-0.22.0/src/runloop_api_client/types/scoring_function_param.py +0 -26
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/.gitignore +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/CONTRIBUTING.md +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/LICENSE +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/SECURITY.md +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/bin/check-release-environment +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/bin/publish-pypi +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/examples/.keep +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/mypy.ini +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/noxfile.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/release-please-config.json +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/requirements-dev.lock +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/requirements.lock +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop/lib/.keep +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_client.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_compat.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_exceptions.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_files.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_qs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_resource.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_streaming.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_types.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_logs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_proxy.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_reflection.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_streams.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_typing.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_utils.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/lib/.keep +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/lib/polling.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/lib/polling_async.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/py.typed +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/benchmarks/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/benchmarks/runs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/blueprints.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/executions.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/logs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/devboxes/lsp.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/repositories.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/scenarios/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/resources/scenarios/runs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_list_public_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmark_run_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmarks/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/benchmarks/run_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_build_log.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_build_logs_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_build_parameters.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_create_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_preview_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_preview_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/blueprint_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_async_execution_detail_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_create_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_create_ssh_key_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_create_tunnel_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_download_file_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_execute_async_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_execute_sync_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_execution_detail_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_list_disk_snapshots_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_read_file_contents_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_read_file_contents_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_remove_tunnel_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_snapshot_disk_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_snapshot_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_snapshot_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_tunnel_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_upload_file_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devbox_write_file_contents_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_code_action.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_command.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_command_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_diagnostic.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_diagnostic_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_location.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_markup_content.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_parameter_information.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_range.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_range_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_signature.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_workspace_edit.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/base_workspace_edit_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/browser_create_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_action_application_result.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_action_context_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_action_kind.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_action_trigger_kind.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_actions_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_description_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/code_segment_info_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_create_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_keyboard_interaction_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_keyboard_interaction_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_mouse_interaction_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_mouse_interaction_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_screen_interaction_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/computer_screen_interaction_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/devbox_logs_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/diagnostic_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/diagnostic_related_information_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/diagnostic_severity.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/diagnostic_tag.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/diagnostics_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/document_symbol.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/document_symbol_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/document_uri.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/execution_execute_async_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/execution_execute_sync_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/execution_retrieve_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/file_contents_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/file_definition_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/file_path.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/file_uri.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/formatting_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/health_status_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/integer.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/l_sp_any_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/location_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/log_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_apply_code_action_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_code_actions_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_diagnostics_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_document_symbols_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_file_definition_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_file_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_files_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_formatting_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_get_code_actions_for_diagnostic_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_get_code_actions_for_diagnostic_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_get_code_segment_info_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_get_signature_help_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_references_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_set_watch_directory_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/lsp_set_watch_directory_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/position.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/position_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/range.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/range_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/record_string_text_edit_array.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/record_string_text_edit_array_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/references_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/signature_help_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/symbol_kind.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/symbol_tag.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/symbol_type.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/text_edit.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/text_edit_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/u_ri.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/uinteger.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/devboxes/watched_file_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/input_context.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/input_context_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_connection_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_connection_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_create_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_version_details.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/repository_version_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_list_public_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenario_run_list_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/run_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_list_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_validate_params.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scenarios/scorer_validate_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scoring_contract.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scoring_contract_param.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/scoring_contract_result_view.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared/after_idle.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared/code_mount_parameters.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared/launch_parameters.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared_params/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared_params/after_idle.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared_params/code_mount_parameters.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/types/shared_params/launch_parameters.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/benchmarks/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/benchmarks/test_runs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/test_executions.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/test_logs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/devboxes/test_lsp.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/scenarios/__init__.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/scenarios/test_runs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/test_blueprints.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/api_resources/test_repositories.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/conftest.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/sample_file.txt +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_deepcopy.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_extract_files.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_files.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_models.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_qs.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_required_args.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_response.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_streaming.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_utils/test_proxy.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/test_utils/test_typing.py +0 -0
- {runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/tests/utils.py +0 -0
|
@@ -1,5 +1,47 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.24.0 (2025-02-19)
|
|
4
|
+
|
|
5
|
+
Full Changelog: [v0.23.0...v0.24.0](https://github.com/runloopai/api-client-python/compare/v0.23.0...v0.24.0)
|
|
6
|
+
|
|
7
|
+
### Features
|
|
8
|
+
|
|
9
|
+
* **api:** api update ([#549](https://github.com/runloopai/api-client-python/issues/549)) ([3e19f41](https://github.com/runloopai/api-client-python/commit/3e19f41cf8e2b9cd225439d9df90f80b34d89660))
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
### Bug Fixes
|
|
13
|
+
|
|
14
|
+
* asyncify on non-asyncio runtimes ([#547](https://github.com/runloopai/api-client-python/issues/547)) ([8ce7003](https://github.com/runloopai/api-client-python/commit/8ce700397fc5d6755f0a95b637efad74d6dc3fe4))
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
### Chores
|
|
18
|
+
|
|
19
|
+
* **internal:** codegen related update ([#543](https://github.com/runloopai/api-client-python/issues/543)) ([5c44e84](https://github.com/runloopai/api-client-python/commit/5c44e84a8a029b22461df339c280885dc972fa96))
|
|
20
|
+
* **internal:** codegen related update ([#546](https://github.com/runloopai/api-client-python/issues/546)) ([d8b620d](https://github.com/runloopai/api-client-python/commit/d8b620d93c687d37a843262d5ac60fd4a9b815e8))
|
|
21
|
+
* **internal:** update client tests ([#545](https://github.com/runloopai/api-client-python/issues/545)) ([30307f4](https://github.com/runloopai/api-client-python/commit/30307f4b78ba76240793b851dd735a0beb835b75))
|
|
22
|
+
* **internal:** update client tests ([#548](https://github.com/runloopai/api-client-python/issues/548)) ([4e782f1](https://github.com/runloopai/api-client-python/commit/4e782f19bfa7e08ae318eca6f00fb4d5ffe5c9af))
|
|
23
|
+
|
|
24
|
+
## 0.23.0 (2025-02-11)
|
|
25
|
+
|
|
26
|
+
Full Changelog: [v0.22.0...v0.23.0](https://github.com/runloopai/api-client-python/compare/v0.22.0...v0.23.0)
|
|
27
|
+
|
|
28
|
+
### Features
|
|
29
|
+
|
|
30
|
+
* **api:** api update ([#540](https://github.com/runloopai/api-client-python/issues/540)) ([0f1ce28](https://github.com/runloopai/api-client-python/commit/0f1ce28e9137b52265666131ee0c7561e92cefd9))
|
|
31
|
+
* **client:** send `X-Stainless-Read-Timeout` header ([#536](https://github.com/runloopai/api-client-python/issues/536)) ([996da95](https://github.com/runloopai/api-client-python/commit/996da9596984be3962a3f1f81753c0617676988b))
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
### Bug Fixes
|
|
35
|
+
|
|
36
|
+
* **api:** remove recursive model for now ([#534](https://github.com/runloopai/api-client-python/issues/534)) ([748bd3d](https://github.com/runloopai/api-client-python/commit/748bd3d1c63587094c0c7ead108d670740052a0b))
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
### Chores
|
|
40
|
+
|
|
41
|
+
* **internal:** codegen related update ([#538](https://github.com/runloopai/api-client-python/issues/538)) ([b538d7c](https://github.com/runloopai/api-client-python/commit/b538d7c842fa8f2ebf5bcb61b9184d9171283c36))
|
|
42
|
+
* **internal:** fix type traversing dictionary params ([#537](https://github.com/runloopai/api-client-python/issues/537)) ([d6afc80](https://github.com/runloopai/api-client-python/commit/d6afc8051e30d19b2f011f3bcad85676d96c4a48))
|
|
43
|
+
* **internal:** minor type handling changes ([#539](https://github.com/runloopai/api-client-python/issues/539)) ([ecd4acd](https://github.com/runloopai/api-client-python/commit/ecd4acd4ac7e950ad5757a4f6adc08971135f7d3))
|
|
44
|
+
|
|
3
45
|
## 0.22.0 (2025-02-04)
|
|
4
46
|
|
|
5
47
|
Full Changelog: [v0.21.0...v0.22.0](https://github.com/runloopai/api-client-python/compare/v0.21.0...v0.22.0)
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
Metadata-Version: 2.4
|
|
2
2
|
Name: runloop_api_client
|
|
3
|
-
Version: 0.
|
|
3
|
+
Version: 0.24.0
|
|
4
4
|
Summary: The official Python library for the runloop API
|
|
5
5
|
Project-URL: Homepage, https://github.com/runloopai/api-client-python
|
|
6
6
|
Project-URL: Repository, https://github.com/runloopai/api-client-python
|
|
@@ -211,7 +211,7 @@ Error codes are as follows:
|
|
|
211
211
|
|
|
212
212
|
### Retries
|
|
213
213
|
|
|
214
|
-
Certain errors are automatically retried
|
|
214
|
+
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
|
|
215
215
|
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
|
216
216
|
429 Rate Limit, and >=500 Internal errors are all retried by default.
|
|
217
217
|
|
|
@@ -179,7 +179,7 @@ Error codes are as follows:
|
|
|
179
179
|
|
|
180
180
|
### Retries
|
|
181
181
|
|
|
182
|
-
Certain errors are automatically retried
|
|
182
|
+
Certain errors are automatically retried 0 times by default, with a short exponential backoff.
|
|
183
183
|
Connection errors (for example, due to a network connectivity problem), 408 Request Timeout, 409 Conflict,
|
|
184
184
|
429 Rate Limit, and >=500 Internal errors are all retried by default.
|
|
185
185
|
|
|
@@ -83,6 +83,7 @@ Methods:
|
|
|
83
83
|
|
|
84
84
|
- <code title="post /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create</a>(\*\*<a href="src/runloop_api_client/types/devbox_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
|
|
85
85
|
- <code title="get /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
|
|
86
|
+
- <code title="post /v1/devboxes/{id}">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">update</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_update_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_view.py">DevboxView</a></code>
|
|
86
87
|
- <code title="get /v1/devboxes">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">list</a>(\*\*<a href="src/runloop_api_client/types/devbox_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_view.py">SyncDevboxesCursorIDPage[DevboxView]</a></code>
|
|
87
88
|
- <code title="post /v1/devboxes/{id}/create_ssh_key">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create_ssh_key</a>(id) -> <a href="./src/runloop_api_client/types/devbox_create_ssh_key_response.py">DevboxCreateSSHKeyResponse</a></code>
|
|
88
89
|
- <code title="post /v1/devboxes/{id}/create_tunnel">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">create_tunnel</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_create_tunnel_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_tunnel_view.py">DevboxTunnelView</a></code>
|
|
@@ -101,6 +102,20 @@ Methods:
|
|
|
101
102
|
- <code title="post /v1/devboxes/{id}/upload_file">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">upload_file</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_upload_file_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_upload_file_response.py">object</a></code>
|
|
102
103
|
- <code title="post /v1/devboxes/{id}/write_file_contents">client.devboxes.<a href="./src/runloop_api_client/resources/devboxes/devboxes.py">write_file_contents</a>(id, \*\*<a href="src/runloop_api_client/types/devbox_write_file_contents_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_execution_detail_view.py">DevboxExecutionDetailView</a></code>
|
|
103
104
|
|
|
105
|
+
## DiskSnapshots
|
|
106
|
+
|
|
107
|
+
Types:
|
|
108
|
+
|
|
109
|
+
```python
|
|
110
|
+
from runloop_api_client.types.devboxes import DiskSnapshotDeleteResponse
|
|
111
|
+
```
|
|
112
|
+
|
|
113
|
+
Methods:
|
|
114
|
+
|
|
115
|
+
- <code title="post /v1/devboxes/disk_snapshots/{id}">client.devboxes.disk_snapshots.<a href="./src/runloop_api_client/resources/devboxes/disk_snapshots.py">update</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/disk_snapshot_update_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_snapshot_view.py">DevboxSnapshotView</a></code>
|
|
116
|
+
- <code title="get /v1/devboxes/disk_snapshots">client.devboxes.disk_snapshots.<a href="./src/runloop_api_client/resources/devboxes/disk_snapshots.py">list</a>(\*\*<a href="src/runloop_api_client/types/devboxes/disk_snapshot_list_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devbox_snapshot_view.py">SyncDiskSnapshotsCursorIDPage[DevboxSnapshotView]</a></code>
|
|
117
|
+
- <code title="post /v1/devboxes/disk_snapshots/{id}/delete">client.devboxes.disk_snapshots.<a href="./src/runloop_api_client/resources/devboxes/disk_snapshots.py">delete</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/disk_snapshot_delete_response.py">object</a></code>
|
|
118
|
+
|
|
104
119
|
## Browsers
|
|
105
120
|
|
|
106
121
|
Types:
|
|
@@ -112,6 +127,7 @@ from runloop_api_client.types.devboxes import BrowserView
|
|
|
112
127
|
Methods:
|
|
113
128
|
|
|
114
129
|
- <code title="post /v1/devboxes/browsers">client.devboxes.browsers.<a href="./src/runloop_api_client/resources/devboxes/browsers.py">create</a>(\*\*<a href="src/runloop_api_client/types/devboxes/browser_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/browser_view.py">BrowserView</a></code>
|
|
130
|
+
- <code title="get /v1/devboxes/browsers/{id}">client.devboxes.browsers.<a href="./src/runloop_api_client/resources/devboxes/browsers.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/browser_view.py">BrowserView</a></code>
|
|
115
131
|
|
|
116
132
|
## Computers
|
|
117
133
|
|
|
@@ -129,6 +145,7 @@ from runloop_api_client.types.devboxes import (
|
|
|
129
145
|
Methods:
|
|
130
146
|
|
|
131
147
|
- <code title="post /v1/devboxes/computers">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">create</a>(\*\*<a href="src/runloop_api_client/types/devboxes/computer_create_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_view.py">ComputerView</a></code>
|
|
148
|
+
- <code title="get /v1/devboxes/computers/{id}">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">retrieve</a>(id) -> <a href="./src/runloop_api_client/types/devboxes/computer_view.py">ComputerView</a></code>
|
|
132
149
|
- <code title="post /v1/devboxes/computers/{id}/keyboard_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">keyboard_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_keyboard_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_keyboard_interaction_response.py">ComputerKeyboardInteractionResponse</a></code>
|
|
133
150
|
- <code title="post /v1/devboxes/computers/{id}/mouse_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">mouse_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_mouse_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_mouse_interaction_response.py">ComputerMouseInteractionResponse</a></code>
|
|
134
151
|
- <code title="post /v1/devboxes/computers/{id}/screen_interaction">client.devboxes.computers.<a href="./src/runloop_api_client/resources/devboxes/computers.py">screen_interaction</a>(id, \*\*<a href="src/runloop_api_client/types/devboxes/computer_screen_interaction_params.py">params</a>) -> <a href="./src/runloop_api_client/types/devboxes/computer_screen_interaction_response.py">ComputerScreenInteractionResponse</a></code>
|
{runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_base_client.py
RENAMED
|
@@ -418,10 +418,17 @@ class BaseClient(Generic[_HttpxClientT, _DefaultStreamT]):
|
|
|
418
418
|
if idempotency_header and options.method.lower() != "get" and idempotency_header not in headers:
|
|
419
419
|
headers[idempotency_header] = options.idempotency_key or self._idempotency_key()
|
|
420
420
|
|
|
421
|
-
# Don't set
|
|
421
|
+
# Don't set these headers if they were already set or removed by the caller. We check
|
|
422
422
|
# `custom_headers`, which can contain `Omit()`, instead of `headers` to account for the removal case.
|
|
423
|
-
|
|
423
|
+
lower_custom_headers = [header.lower() for header in custom_headers]
|
|
424
|
+
if "x-stainless-retry-count" not in lower_custom_headers:
|
|
424
425
|
headers["x-stainless-retry-count"] = str(retries_taken)
|
|
426
|
+
if "x-stainless-read-timeout" not in lower_custom_headers:
|
|
427
|
+
timeout = self.timeout if isinstance(options.timeout, NotGiven) else options.timeout
|
|
428
|
+
if isinstance(timeout, Timeout):
|
|
429
|
+
timeout = timeout.read
|
|
430
|
+
if timeout is not None:
|
|
431
|
+
headers["x-stainless-read-timeout"] = str(timeout)
|
|
425
432
|
|
|
426
433
|
return headers
|
|
427
434
|
|
{runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_constants.py
RENAMED
|
@@ -7,8 +7,8 @@ OVERRIDE_CAST_TO_HEADER = "____stainless_override_cast_to"
|
|
|
7
7
|
|
|
8
8
|
# default timeout is 1 minute
|
|
9
9
|
DEFAULT_TIMEOUT = httpx.Timeout(timeout=60, connect=5.0)
|
|
10
|
-
DEFAULT_MAX_RETRIES =
|
|
10
|
+
DEFAULT_MAX_RETRIES = 0
|
|
11
11
|
DEFAULT_CONNECTION_LIMITS = httpx.Limits(max_connections=100, max_keepalive_connections=20)
|
|
12
12
|
|
|
13
|
-
INITIAL_RETRY_DELAY = 0
|
|
14
|
-
MAX_RETRY_DELAY =
|
|
13
|
+
INITIAL_RETRY_DELAY = 1.0
|
|
14
|
+
MAX_RETRY_DELAY = 10.0
|
|
@@ -426,10 +426,16 @@ def construct_type(*, value: object, type_: object) -> object:
|
|
|
426
426
|
|
|
427
427
|
If the given value does not match the expected type then it is returned as-is.
|
|
428
428
|
"""
|
|
429
|
+
|
|
430
|
+
# store a reference to the original type we were given before we extract any inner
|
|
431
|
+
# types so that we can properly resolve forward references in `TypeAliasType` annotations
|
|
432
|
+
original_type = None
|
|
433
|
+
|
|
429
434
|
# we allow `object` as the input type because otherwise, passing things like
|
|
430
435
|
# `Literal['value']` will be reported as a type error by type checkers
|
|
431
436
|
type_ = cast("type[object]", type_)
|
|
432
437
|
if is_type_alias_type(type_):
|
|
438
|
+
original_type = type_ # type: ignore[unreachable]
|
|
433
439
|
type_ = type_.__value__ # type: ignore[unreachable]
|
|
434
440
|
|
|
435
441
|
# unwrap `Annotated[T, ...]` -> `T`
|
|
@@ -446,7 +452,7 @@ def construct_type(*, value: object, type_: object) -> object:
|
|
|
446
452
|
|
|
447
453
|
if is_union(origin):
|
|
448
454
|
try:
|
|
449
|
-
return validate_type(type_=cast("type[object]", type_), value=value)
|
|
455
|
+
return validate_type(type_=cast("type[object]", original_type or type_), value=value)
|
|
450
456
|
except Exception:
|
|
451
457
|
pass
|
|
452
458
|
|
{runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_sync.py
RENAMED
|
@@ -7,16 +7,20 @@ import contextvars
|
|
|
7
7
|
from typing import Any, TypeVar, Callable, Awaitable
|
|
8
8
|
from typing_extensions import ParamSpec
|
|
9
9
|
|
|
10
|
+
import anyio
|
|
11
|
+
import sniffio
|
|
12
|
+
import anyio.to_thread
|
|
13
|
+
|
|
10
14
|
T_Retval = TypeVar("T_Retval")
|
|
11
15
|
T_ParamSpec = ParamSpec("T_ParamSpec")
|
|
12
16
|
|
|
13
17
|
|
|
14
18
|
if sys.version_info >= (3, 9):
|
|
15
|
-
|
|
19
|
+
_asyncio_to_thread = asyncio.to_thread
|
|
16
20
|
else:
|
|
17
21
|
# backport of https://docs.python.org/3/library/asyncio-task.html#asyncio.to_thread
|
|
18
22
|
# for Python 3.8 support
|
|
19
|
-
async def
|
|
23
|
+
async def _asyncio_to_thread(
|
|
20
24
|
func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs
|
|
21
25
|
) -> Any:
|
|
22
26
|
"""Asynchronously run function *func* in a separate thread.
|
|
@@ -34,6 +38,17 @@ else:
|
|
|
34
38
|
return await loop.run_in_executor(None, func_call)
|
|
35
39
|
|
|
36
40
|
|
|
41
|
+
async def to_thread(
|
|
42
|
+
func: Callable[T_ParamSpec, T_Retval], /, *args: T_ParamSpec.args, **kwargs: T_ParamSpec.kwargs
|
|
43
|
+
) -> T_Retval:
|
|
44
|
+
if sniffio.current_async_library() == "asyncio":
|
|
45
|
+
return await _asyncio_to_thread(func, *args, **kwargs)
|
|
46
|
+
|
|
47
|
+
return await anyio.to_thread.run_sync(
|
|
48
|
+
functools.partial(func, *args, **kwargs),
|
|
49
|
+
)
|
|
50
|
+
|
|
51
|
+
|
|
37
52
|
# inspired by `asyncer`, https://github.com/tiangolo/asyncer
|
|
38
53
|
def asyncify(function: Callable[T_ParamSpec, T_Retval]) -> Callable[T_ParamSpec, Awaitable[T_Retval]]:
|
|
39
54
|
"""
|
{runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/_utils/_transform.py
RENAMED
|
@@ -25,7 +25,7 @@ from ._typing import (
|
|
|
25
25
|
is_annotated_type,
|
|
26
26
|
strip_annotated_type,
|
|
27
27
|
)
|
|
28
|
-
from .._compat import model_dump, is_typeddict
|
|
28
|
+
from .._compat import get_origin, model_dump, is_typeddict
|
|
29
29
|
|
|
30
30
|
_T = TypeVar("_T")
|
|
31
31
|
|
|
@@ -164,9 +164,14 @@ def _transform_recursive(
|
|
|
164
164
|
inner_type = annotation
|
|
165
165
|
|
|
166
166
|
stripped_type = strip_annotated_type(inner_type)
|
|
167
|
+
origin = get_origin(stripped_type) or stripped_type
|
|
167
168
|
if is_typeddict(stripped_type) and is_mapping(data):
|
|
168
169
|
return _transform_typeddict(data, stripped_type)
|
|
169
170
|
|
|
171
|
+
if origin == dict and is_mapping(data):
|
|
172
|
+
items_type = get_args(stripped_type)[1]
|
|
173
|
+
return {key: _transform_recursive(value, annotation=items_type) for key, value in data.items()}
|
|
174
|
+
|
|
170
175
|
if (
|
|
171
176
|
# List[T]
|
|
172
177
|
(is_list_type(stripped_type) and is_list(data))
|
|
@@ -307,9 +312,14 @@ async def _async_transform_recursive(
|
|
|
307
312
|
inner_type = annotation
|
|
308
313
|
|
|
309
314
|
stripped_type = strip_annotated_type(inner_type)
|
|
315
|
+
origin = get_origin(stripped_type) or stripped_type
|
|
310
316
|
if is_typeddict(stripped_type) and is_mapping(data):
|
|
311
317
|
return await _async_transform_typeddict(data, stripped_type)
|
|
312
318
|
|
|
319
|
+
if origin == dict and is_mapping(data):
|
|
320
|
+
items_type = get_args(stripped_type)[1]
|
|
321
|
+
return {key: _transform_recursive(value, annotation=items_type) for key, value in data.items()}
|
|
322
|
+
|
|
313
323
|
if (
|
|
314
324
|
# List[T]
|
|
315
325
|
(is_list_type(stripped_type) and is_list(data))
|
{runloop_api_client-0.22.0 → runloop_api_client-0.24.0}/src/runloop_api_client/pagination.py
RENAMED
|
@@ -86,6 +86,14 @@ class SyncBlueprintsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
86
86
|
return []
|
|
87
87
|
return blueprints
|
|
88
88
|
|
|
89
|
+
@override
|
|
90
|
+
def has_next_page(self) -> bool:
|
|
91
|
+
has_more = self.has_more
|
|
92
|
+
if has_more is not None and has_more is False:
|
|
93
|
+
return False
|
|
94
|
+
|
|
95
|
+
return super().has_next_page()
|
|
96
|
+
|
|
89
97
|
@override
|
|
90
98
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
91
99
|
blueprints = self.blueprints
|
|
@@ -112,6 +120,14 @@ class AsyncBlueprintsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
112
120
|
return []
|
|
113
121
|
return blueprints
|
|
114
122
|
|
|
123
|
+
@override
|
|
124
|
+
def has_next_page(self) -> bool:
|
|
125
|
+
has_more = self.has_more
|
|
126
|
+
if has_more is not None and has_more is False:
|
|
127
|
+
return False
|
|
128
|
+
|
|
129
|
+
return super().has_next_page()
|
|
130
|
+
|
|
115
131
|
@override
|
|
116
132
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
117
133
|
blueprints = self.blueprints
|
|
@@ -138,6 +154,14 @@ class SyncDevboxesCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
138
154
|
return []
|
|
139
155
|
return devboxes
|
|
140
156
|
|
|
157
|
+
@override
|
|
158
|
+
def has_next_page(self) -> bool:
|
|
159
|
+
has_more = self.has_more
|
|
160
|
+
if has_more is not None and has_more is False:
|
|
161
|
+
return False
|
|
162
|
+
|
|
163
|
+
return super().has_next_page()
|
|
164
|
+
|
|
141
165
|
@override
|
|
142
166
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
143
167
|
devboxes = self.devboxes
|
|
@@ -164,6 +188,14 @@ class AsyncDevboxesCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
164
188
|
return []
|
|
165
189
|
return devboxes
|
|
166
190
|
|
|
191
|
+
@override
|
|
192
|
+
def has_next_page(self) -> bool:
|
|
193
|
+
has_more = self.has_more
|
|
194
|
+
if has_more is not None and has_more is False:
|
|
195
|
+
return False
|
|
196
|
+
|
|
197
|
+
return super().has_next_page()
|
|
198
|
+
|
|
167
199
|
@override
|
|
168
200
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
169
201
|
devboxes = self.devboxes
|
|
@@ -190,6 +222,14 @@ class SyncRepositoriesCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
190
222
|
return []
|
|
191
223
|
return repositories
|
|
192
224
|
|
|
225
|
+
@override
|
|
226
|
+
def has_next_page(self) -> bool:
|
|
227
|
+
has_more = self.has_more
|
|
228
|
+
if has_more is not None and has_more is False:
|
|
229
|
+
return False
|
|
230
|
+
|
|
231
|
+
return super().has_next_page()
|
|
232
|
+
|
|
193
233
|
@override
|
|
194
234
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
195
235
|
repositories = self.repositories
|
|
@@ -216,6 +256,14 @@ class AsyncRepositoriesCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]
|
|
|
216
256
|
return []
|
|
217
257
|
return repositories
|
|
218
258
|
|
|
259
|
+
@override
|
|
260
|
+
def has_next_page(self) -> bool:
|
|
261
|
+
has_more = self.has_more
|
|
262
|
+
if has_more is not None and has_more is False:
|
|
263
|
+
return False
|
|
264
|
+
|
|
265
|
+
return super().has_next_page()
|
|
266
|
+
|
|
219
267
|
@override
|
|
220
268
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
221
269
|
repositories = self.repositories
|
|
@@ -242,6 +290,14 @@ class SyncDiskSnapshotsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T])
|
|
|
242
290
|
return []
|
|
243
291
|
return snapshots
|
|
244
292
|
|
|
293
|
+
@override
|
|
294
|
+
def has_next_page(self) -> bool:
|
|
295
|
+
has_more = self.has_more
|
|
296
|
+
if has_more is not None and has_more is False:
|
|
297
|
+
return False
|
|
298
|
+
|
|
299
|
+
return super().has_next_page()
|
|
300
|
+
|
|
245
301
|
@override
|
|
246
302
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
247
303
|
snapshots = self.snapshots
|
|
@@ -268,6 +324,14 @@ class AsyncDiskSnapshotsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T
|
|
|
268
324
|
return []
|
|
269
325
|
return snapshots
|
|
270
326
|
|
|
327
|
+
@override
|
|
328
|
+
def has_next_page(self) -> bool:
|
|
329
|
+
has_more = self.has_more
|
|
330
|
+
if has_more is not None and has_more is False:
|
|
331
|
+
return False
|
|
332
|
+
|
|
333
|
+
return super().has_next_page()
|
|
334
|
+
|
|
271
335
|
@override
|
|
272
336
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
273
337
|
snapshots = self.snapshots
|
|
@@ -294,6 +358,14 @@ class SyncBenchmarksCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
294
358
|
return []
|
|
295
359
|
return benchmarks
|
|
296
360
|
|
|
361
|
+
@override
|
|
362
|
+
def has_next_page(self) -> bool:
|
|
363
|
+
has_more = self.has_more
|
|
364
|
+
if has_more is not None and has_more is False:
|
|
365
|
+
return False
|
|
366
|
+
|
|
367
|
+
return super().has_next_page()
|
|
368
|
+
|
|
297
369
|
@override
|
|
298
370
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
299
371
|
benchmarks = self.benchmarks
|
|
@@ -320,6 +392,14 @@ class AsyncBenchmarksCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
320
392
|
return []
|
|
321
393
|
return benchmarks
|
|
322
394
|
|
|
395
|
+
@override
|
|
396
|
+
def has_next_page(self) -> bool:
|
|
397
|
+
has_more = self.has_more
|
|
398
|
+
if has_more is not None and has_more is False:
|
|
399
|
+
return False
|
|
400
|
+
|
|
401
|
+
return super().has_next_page()
|
|
402
|
+
|
|
323
403
|
@override
|
|
324
404
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
325
405
|
benchmarks = self.benchmarks
|
|
@@ -346,6 +426,14 @@ class SyncBenchmarkRunsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T])
|
|
|
346
426
|
return []
|
|
347
427
|
return runs
|
|
348
428
|
|
|
429
|
+
@override
|
|
430
|
+
def has_next_page(self) -> bool:
|
|
431
|
+
has_more = self.has_more
|
|
432
|
+
if has_more is not None and has_more is False:
|
|
433
|
+
return False
|
|
434
|
+
|
|
435
|
+
return super().has_next_page()
|
|
436
|
+
|
|
349
437
|
@override
|
|
350
438
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
351
439
|
runs = self.runs
|
|
@@ -372,6 +460,14 @@ class AsyncBenchmarkRunsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T
|
|
|
372
460
|
return []
|
|
373
461
|
return runs
|
|
374
462
|
|
|
463
|
+
@override
|
|
464
|
+
def has_next_page(self) -> bool:
|
|
465
|
+
has_more = self.has_more
|
|
466
|
+
if has_more is not None and has_more is False:
|
|
467
|
+
return False
|
|
468
|
+
|
|
469
|
+
return super().has_next_page()
|
|
470
|
+
|
|
375
471
|
@override
|
|
376
472
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
377
473
|
runs = self.runs
|
|
@@ -398,6 +494,14 @@ class SyncScenariosCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
398
494
|
return []
|
|
399
495
|
return scenarios
|
|
400
496
|
|
|
497
|
+
@override
|
|
498
|
+
def has_next_page(self) -> bool:
|
|
499
|
+
has_more = self.has_more
|
|
500
|
+
if has_more is not None and has_more is False:
|
|
501
|
+
return False
|
|
502
|
+
|
|
503
|
+
return super().has_next_page()
|
|
504
|
+
|
|
401
505
|
@override
|
|
402
506
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
403
507
|
scenarios = self.scenarios
|
|
@@ -424,6 +528,14 @@ class AsyncScenariosCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
424
528
|
return []
|
|
425
529
|
return scenarios
|
|
426
530
|
|
|
531
|
+
@override
|
|
532
|
+
def has_next_page(self) -> bool:
|
|
533
|
+
has_more = self.has_more
|
|
534
|
+
if has_more is not None and has_more is False:
|
|
535
|
+
return False
|
|
536
|
+
|
|
537
|
+
return super().has_next_page()
|
|
538
|
+
|
|
427
539
|
@override
|
|
428
540
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
429
541
|
scenarios = self.scenarios
|
|
@@ -450,6 +562,14 @@ class SyncScenarioRunsCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T]):
|
|
|
450
562
|
return []
|
|
451
563
|
return runs
|
|
452
564
|
|
|
565
|
+
@override
|
|
566
|
+
def has_next_page(self) -> bool:
|
|
567
|
+
has_more = self.has_more
|
|
568
|
+
if has_more is not None and has_more is False:
|
|
569
|
+
return False
|
|
570
|
+
|
|
571
|
+
return super().has_next_page()
|
|
572
|
+
|
|
453
573
|
@override
|
|
454
574
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
455
575
|
runs = self.runs
|
|
@@ -476,6 +596,14 @@ class AsyncScenarioRunsCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[_T]
|
|
|
476
596
|
return []
|
|
477
597
|
return runs
|
|
478
598
|
|
|
599
|
+
@override
|
|
600
|
+
def has_next_page(self) -> bool:
|
|
601
|
+
has_more = self.has_more
|
|
602
|
+
if has_more is not None and has_more is False:
|
|
603
|
+
return False
|
|
604
|
+
|
|
605
|
+
return super().has_next_page()
|
|
606
|
+
|
|
479
607
|
@override
|
|
480
608
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
481
609
|
runs = self.runs
|
|
@@ -502,6 +630,14 @@ class SyncScenarioScorersCursorIDPage(BaseSyncPage[_T], BasePage[_T], Generic[_T
|
|
|
502
630
|
return []
|
|
503
631
|
return scorers
|
|
504
632
|
|
|
633
|
+
@override
|
|
634
|
+
def has_next_page(self) -> bool:
|
|
635
|
+
has_more = self.has_more
|
|
636
|
+
if has_more is not None and has_more is False:
|
|
637
|
+
return False
|
|
638
|
+
|
|
639
|
+
return super().has_next_page()
|
|
640
|
+
|
|
505
641
|
@override
|
|
506
642
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
507
643
|
scorers = self.scorers
|
|
@@ -528,6 +664,14 @@ class AsyncScenarioScorersCursorIDPage(BaseAsyncPage[_T], BasePage[_T], Generic[
|
|
|
528
664
|
return []
|
|
529
665
|
return scorers
|
|
530
666
|
|
|
667
|
+
@override
|
|
668
|
+
def has_next_page(self) -> bool:
|
|
669
|
+
has_more = self.has_more
|
|
670
|
+
if has_more is not None and has_more is False:
|
|
671
|
+
return False
|
|
672
|
+
|
|
673
|
+
return super().has_next_page()
|
|
674
|
+
|
|
531
675
|
@override
|
|
532
676
|
def next_page_info(self) -> Optional[PageInfo]:
|
|
533
677
|
scorers = self.scorers
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
from __future__ import annotations
|
|
4
4
|
|
|
5
|
-
from typing import List, Optional
|
|
5
|
+
from typing import Dict, List, Optional
|
|
6
6
|
|
|
7
7
|
import httpx
|
|
8
8
|
|
|
@@ -69,6 +69,7 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
69
69
|
self,
|
|
70
70
|
*,
|
|
71
71
|
name: str,
|
|
72
|
+
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
72
73
|
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
73
74
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
74
75
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -84,6 +85,8 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
84
85
|
Args:
|
|
85
86
|
name: The name of the Benchmark.
|
|
86
87
|
|
|
88
|
+
metadata: User defined metadata to attach to the benchmark for organization.
|
|
89
|
+
|
|
87
90
|
scenario_ids: The Scenario IDs that make up the Benchmark.
|
|
88
91
|
|
|
89
92
|
extra_headers: Send extra headers
|
|
@@ -101,6 +104,7 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
101
104
|
body=maybe_transform(
|
|
102
105
|
{
|
|
103
106
|
"name": name,
|
|
107
|
+
"metadata": metadata,
|
|
104
108
|
"scenario_ids": scenario_ids,
|
|
105
109
|
},
|
|
106
110
|
benchmark_create_params.BenchmarkCreateParams,
|
|
@@ -246,6 +250,7 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
246
250
|
self,
|
|
247
251
|
*,
|
|
248
252
|
benchmark_id: str,
|
|
253
|
+
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
249
254
|
run_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
250
255
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
251
256
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -261,6 +266,8 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
261
266
|
Args:
|
|
262
267
|
benchmark_id: ID of the Benchmark to run.
|
|
263
268
|
|
|
269
|
+
metadata: User defined metadata to attach to the benchmark run for organization.
|
|
270
|
+
|
|
264
271
|
run_name: Display name of the run.
|
|
265
272
|
|
|
266
273
|
extra_headers: Send extra headers
|
|
@@ -278,6 +285,7 @@ class BenchmarksResource(SyncAPIResource):
|
|
|
278
285
|
body=maybe_transform(
|
|
279
286
|
{
|
|
280
287
|
"benchmark_id": benchmark_id,
|
|
288
|
+
"metadata": metadata,
|
|
281
289
|
"run_name": run_name,
|
|
282
290
|
},
|
|
283
291
|
benchmark_start_run_params.BenchmarkStartRunParams,
|
|
@@ -321,6 +329,7 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
321
329
|
self,
|
|
322
330
|
*,
|
|
323
331
|
name: str,
|
|
332
|
+
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
324
333
|
scenario_ids: Optional[List[str]] | NotGiven = NOT_GIVEN,
|
|
325
334
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
326
335
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -336,6 +345,8 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
336
345
|
Args:
|
|
337
346
|
name: The name of the Benchmark.
|
|
338
347
|
|
|
348
|
+
metadata: User defined metadata to attach to the benchmark for organization.
|
|
349
|
+
|
|
339
350
|
scenario_ids: The Scenario IDs that make up the Benchmark.
|
|
340
351
|
|
|
341
352
|
extra_headers: Send extra headers
|
|
@@ -353,6 +364,7 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
353
364
|
body=await async_maybe_transform(
|
|
354
365
|
{
|
|
355
366
|
"name": name,
|
|
367
|
+
"metadata": metadata,
|
|
356
368
|
"scenario_ids": scenario_ids,
|
|
357
369
|
},
|
|
358
370
|
benchmark_create_params.BenchmarkCreateParams,
|
|
@@ -498,6 +510,7 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
498
510
|
self,
|
|
499
511
|
*,
|
|
500
512
|
benchmark_id: str,
|
|
513
|
+
metadata: Optional[Dict[str, str]] | NotGiven = NOT_GIVEN,
|
|
501
514
|
run_name: Optional[str] | NotGiven = NOT_GIVEN,
|
|
502
515
|
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
503
516
|
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
@@ -513,6 +526,8 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
513
526
|
Args:
|
|
514
527
|
benchmark_id: ID of the Benchmark to run.
|
|
515
528
|
|
|
529
|
+
metadata: User defined metadata to attach to the benchmark run for organization.
|
|
530
|
+
|
|
516
531
|
run_name: Display name of the run.
|
|
517
532
|
|
|
518
533
|
extra_headers: Send extra headers
|
|
@@ -530,6 +545,7 @@ class AsyncBenchmarksResource(AsyncAPIResource):
|
|
|
530
545
|
body=await async_maybe_transform(
|
|
531
546
|
{
|
|
532
547
|
"benchmark_id": benchmark_id,
|
|
548
|
+
"metadata": metadata,
|
|
533
549
|
"run_name": run_name,
|
|
534
550
|
},
|
|
535
551
|
benchmark_start_run_params.BenchmarkStartRunParams,
|