e2b 2.62.1__tar.gz → 2.64.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.
Files changed (267) hide show
  1. {e2b-2.62.1 → e2b-2.64.0}/PKG-INFO +1 -1
  2. {e2b-2.62.1 → e2b-2.64.0}/e2b/__init__.py +8 -0
  3. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/__init__.py +26 -4
  4. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/delete_sandboxes_sandbox_id.py +4 -0
  5. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_sandboxes.py +8 -4
  6. e2b-2.64.0/e2b/api/client/api/sandboxes/get_unstable_sandboxes_sandbox_id_record.py +191 -0
  7. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_connect.py +12 -4
  8. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_pause.py +12 -4
  9. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_resume.py +16 -4
  10. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_snapshots.py +4 -0
  11. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_v_2_sandboxes_sandbox_id_connect.py +12 -4
  12. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates.py +12 -4
  13. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/__init__.py +2 -0
  14. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/connect_sandbox.py +2 -1
  15. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/connect_sandbox_v2.py +2 -1
  16. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/error.py +5 -1
  17. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/listed_sandbox.py +13 -0
  18. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/new_sandbox.py +9 -0
  19. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/new_sandbox_v2.py +9 -0
  20. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/resumed_sandbox.py +11 -1
  21. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_detail.py +13 -0
  22. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_pause_request.py +14 -0
  23. e2b-2.64.0/e2b/api/client/models/sandbox_record.py +180 -0
  24. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template.py +9 -0
  25. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build.py +9 -0
  26. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_request_v3.py +9 -0
  27. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_with_builds.py +9 -0
  28. {e2b-2.62.1 → e2b-2.64.0}/e2b/exceptions.py +16 -0
  29. e2b-2.64.0/e2b/sandbox/commands/main.py +62 -0
  30. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/sandbox_api.py +7 -2
  31. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/commands/command.py +28 -4
  32. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/main.py +16 -0
  33. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/sandbox_api.py +9 -16
  34. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/commands/command.py +18 -3
  35. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/main.py +16 -0
  36. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/sandbox_api.py +9 -16
  37. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/types.py +92 -0
  38. {e2b-2.62.1 → e2b-2.64.0}/e2b/template_async/build_api.py +30 -0
  39. {e2b-2.62.1 → e2b-2.64.0}/e2b/template_async/main.py +66 -0
  40. e2b-2.64.0/e2b/template_async/paginator.py +62 -0
  41. {e2b-2.62.1 → e2b-2.64.0}/e2b/template_sync/build_api.py +28 -0
  42. {e2b-2.62.1 → e2b-2.64.0}/e2b/template_sync/main.py +66 -0
  43. e2b-2.64.0/e2b/template_sync/paginator.py +62 -0
  44. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/delete_volumecontent_volume_id_path.py +4 -0
  45. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_dir.py +4 -0
  46. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_file.py +4 -0
  47. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/get_volumecontent_volume_id_path.py +4 -0
  48. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/patch_volumecontent_volume_id_path.py +15 -10
  49. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/post_volumecontent_volume_id_dir.py +4 -0
  50. {e2b-2.62.1 → e2b-2.64.0}/pyproject.toml +1 -1
  51. {e2b-2.62.1 → e2b-2.64.0}/pyproject.toml.orig +1 -1
  52. e2b-2.62.1/e2b/sandbox/commands/main.py +0 -39
  53. {e2b-2.62.1 → e2b-2.64.0}/README.md +0 -0
  54. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/__init__.py +0 -0
  55. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/__init__.py +0 -0
  56. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/__init__.py +0 -0
  57. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_sandboxes_metrics.py +0 -0
  58. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id.py +0 -0
  59. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_logs.py +0 -0
  60. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_sandboxes_sandbox_id_metrics.py +0 -0
  61. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_v2_sandboxes.py +0 -0
  62. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/get_v_2_sandboxes_sandbox_id_logs.py +0 -0
  63. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes.py +0 -0
  64. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_fork.py +0 -0
  65. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_refreshes.py +0 -0
  66. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_sandboxes_sandbox_id_timeout.py +0 -0
  67. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/post_v2_sandboxes.py +0 -0
  68. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/sandboxes/put_sandboxes_sandbox_id_network.py +0 -0
  69. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/__init__.py +0 -0
  70. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/delete_secrets_secret_id.py +0 -0
  71. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/get_secrets.py +0 -0
  72. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/get_secrets_secret_id.py +0 -0
  73. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/post_secrets.py +0 -0
  74. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/secrets/post_secrets_secret_id.py +0 -0
  75. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/snapshots/__init__.py +0 -0
  76. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/snapshots/get_snapshots.py +0 -0
  77. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/__init__.py +0 -0
  78. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/delete_templates_tags.py +0 -0
  79. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/get_templates_template_id_tags.py +0 -0
  80. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/get_templates_template_id_tags_count.py +0 -0
  81. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/get_templates_template_id_tags_exists.py +0 -0
  82. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/get_templates_template_id_tags_groups.py +0 -0
  83. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/get_templates_template_id_tags_tag_assignments.py +0 -0
  84. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/tags/post_templates_tags.py +0 -0
  85. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/__init__.py +0 -0
  86. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/delete_templates_template_id.py +0 -0
  87. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_default_templates.py +0 -0
  88. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates_aliases_alias.py +0 -0
  89. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates_template_id.py +0 -0
  90. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_logs.py +0 -0
  91. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates_template_id_builds_build_id_status.py +0 -0
  92. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_templates_template_id_files_hash.py +0 -0
  93. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/get_v2_templates.py +0 -0
  94. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/patch_templates_template_id.py +0 -0
  95. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/patch_v_2_templates_template_id.py +0 -0
  96. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/post_v3_templates.py +0 -0
  97. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/templates/post_v_2_templates_template_id_builds_build_id.py +0 -0
  98. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/volumes/__init__.py +0 -0
  99. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/volumes/delete_volumes_volume_id.py +0 -0
  100. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/volumes/get_volumes.py +0 -0
  101. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/volumes/get_volumes_volume_id.py +0 -0
  102. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/api/volumes/post_volumes.py +0 -0
  103. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/client.py +0 -0
  104. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/errors.py +0 -0
  105. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/assign_template_tags_request.py +0 -0
  106. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/assigned_template_tags.py +0 -0
  107. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/aws_registry.py +0 -0
  108. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/aws_registry_type.py +0 -0
  109. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/build_log_entry.py +0 -0
  110. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/build_status_reason.py +0 -0
  111. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/delete_template_tags_request.py +0 -0
  112. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/gcp_registry.py +0 -0
  113. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/gcp_registry_type.py +0 -0
  114. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/general_registry.py +0 -0
  115. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/general_registry_type.py +0 -0
  116. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/get_templates_template_id_tags_groups_sort.py +0 -0
  117. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/log_level.py +0 -0
  118. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/logs_direction.py +0 -0
  119. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/logs_source.py +0 -0
  120. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/mcp_type_0.py +0 -0
  121. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/new_secret.py +0 -0
  122. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/new_volume.py +0 -0
  123. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/order_direction.py +0 -0
  124. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox.py +0 -0
  125. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_auto_resume_config.py +0 -0
  126. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_egress_proxy_config_type_0.py +0 -0
  127. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_egress_proxy_tls_config_type_0.py +0 -0
  128. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_fork_request.py +0 -0
  129. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_fork_result.py +0 -0
  130. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_iam.py +0 -0
  131. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_iam_token.py +0 -0
  132. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_iam_tokens.py +0 -0
  133. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_lifecycle.py +0 -0
  134. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_log.py +0 -0
  135. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_log_entry.py +0 -0
  136. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_log_entry_fields.py +0 -0
  137. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_logs.py +0 -0
  138. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_logs_v2_response.py +0 -0
  139. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_metric.py +0 -0
  140. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_config.py +0 -0
  141. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_config_rules.py +0 -0
  142. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_rule.py +0 -0
  143. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_transform.py +0 -0
  144. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_transform_headers.py +0 -0
  145. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_update_config.py +0 -0
  146. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_network_update_config_rules.py +0 -0
  147. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_on_timeout.py +0 -0
  148. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_pause_mode.py +0 -0
  149. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_refresh_request.py +0 -0
  150. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_snapshot_request.py +0 -0
  151. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_state.py +0 -0
  152. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_timeout_request.py +0 -0
  153. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandbox_volume_mount.py +0 -0
  154. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/sandboxes_with_metrics.py +0 -0
  155. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/secret.py +0 -0
  156. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/secret_metadata.py +0 -0
  157. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/secret_update.py +0 -0
  158. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/snapshot_info.py +0 -0
  159. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/team_user.py +0 -0
  160. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_alias_response.py +0 -0
  161. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_file_upload.py +0 -0
  162. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_file_upload_headers.py +0 -0
  163. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_info.py +0 -0
  164. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_logs_response.py +0 -0
  165. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_start_v2.py +0 -0
  166. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_build_status.py +0 -0
  167. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_request_response_v3.py +0 -0
  168. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_step.py +0 -0
  169. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag.py +0 -0
  170. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag_assignment.py +0 -0
  171. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag_assignments_response.py +0 -0
  172. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag_exists_response.py +0 -0
  173. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag_group.py +0 -0
  174. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tag_groups_response.py +0 -0
  175. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_tags_count_response.py +0 -0
  176. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_update_request.py +0 -0
  177. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/template_update_response.py +0 -0
  178. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/volume.py +0 -0
  179. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/models/volume_and_token.py +0 -0
  180. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/py.typed +0 -0
  181. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client/types.py +0 -0
  182. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client_async/__init__.py +0 -0
  183. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/client_sync/__init__.py +0 -0
  184. {e2b-2.62.1 → e2b-2.64.0}/e2b/api/metadata.py +0 -0
  185. {e2b-2.62.1 → e2b-2.64.0}/e2b/client.py +0 -0
  186. {e2b-2.62.1 → e2b-2.64.0}/e2b/connection_config.py +0 -0
  187. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/__init__.py +0 -0
  188. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/api.py +0 -0
  189. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/client_async/__init__.py +0 -0
  190. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/client_shared.py +0 -0
  191. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/client_sync/__init__.py +0 -0
  192. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/filesystem/__init__.py +0 -0
  193. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/filesystem/filesystem_connect.py +0 -0
  194. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/filesystem/filesystem_pb.py +0 -0
  195. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/interceptors.py +0 -0
  196. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/process/__init__.py +0 -0
  197. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/process/process_connect.py +0 -0
  198. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/process/process_pb.py +0 -0
  199. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/rpc.py +0 -0
  200. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/utils.py +0 -0
  201. {e2b-2.62.1 → e2b-2.64.0}/e2b/envd/versions.py +0 -0
  202. {e2b-2.62.1 → e2b-2.64.0}/e2b/io_utils.py +0 -0
  203. {e2b-2.62.1 → e2b-2.64.0}/e2b/paginator.py +0 -0
  204. {e2b-2.62.1 → e2b-2.64.0}/e2b/py.typed +0 -0
  205. {e2b-2.62.1 → e2b-2.64.0}/e2b/retry.py +0 -0
  206. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/__init__.py +0 -0
  207. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/args.py +0 -0
  208. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/auth.py +0 -0
  209. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/config.py +0 -0
  210. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/parse.py +0 -0
  211. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/_git/types.py +0 -0
  212. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/commands/command_handle.py +0 -0
  213. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/commands/stream_input.py +0 -0
  214. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/filesystem/filesystem.py +0 -0
  215. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/filesystem/watch_handle.py +0 -0
  216. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/iam.py +0 -0
  217. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/main.py +0 -0
  218. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/mcp.py +0 -0
  219. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/network.py +0 -0
  220. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/signature.py +0 -0
  221. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox/utils.py +0 -0
  222. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/commands/command_handle.py +0 -0
  223. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/commands/command_input_handle.py +0 -0
  224. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/commands/pty.py +0 -0
  225. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/filesystem/filesystem.py +0 -0
  226. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/filesystem/watch_handle.py +0 -0
  227. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/git.py +0 -0
  228. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/paginator.py +0 -0
  229. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_async/utils.py +0 -0
  230. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_domains.py +0 -0
  231. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/commands/command_handle.py +0 -0
  232. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/commands/pty.py +0 -0
  233. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/filesystem/filesystem.py +0 -0
  234. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/filesystem/watch_handle.py +0 -0
  235. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/git.py +0 -0
  236. {e2b-2.62.1 → e2b-2.64.0}/e2b/sandbox_sync/paginator.py +0 -0
  237. {e2b-2.62.1 → e2b-2.64.0}/e2b/secret/__init__.py +0 -0
  238. {e2b-2.62.1 → e2b-2.64.0}/e2b/secret/base.py +0 -0
  239. {e2b-2.62.1 → e2b-2.64.0}/e2b/secret/secret_async.py +0 -0
  240. {e2b-2.62.1 → e2b-2.64.0}/e2b/secret/secret_sync.py +0 -0
  241. {e2b-2.62.1 → e2b-2.64.0}/e2b/secret/types.py +0 -0
  242. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/consts.py +0 -0
  243. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/dockerfile_parser.py +0 -0
  244. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/logger.py +0 -0
  245. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/main.py +0 -0
  246. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/readycmd.py +0 -0
  247. {e2b-2.62.1 → e2b-2.64.0}/e2b/template/utils.py +0 -0
  248. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/__init__.py +0 -0
  249. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/__init__.py +0 -0
  250. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/__init__.py +0 -0
  251. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/api/volumes/put_volumecontent_volume_id_file.py +0 -0
  252. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/client.py +0 -0
  253. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/errors.py +0 -0
  254. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/models/__init__.py +0 -0
  255. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/models/error.py +0 -0
  256. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/models/patch_volumecontent_volume_id_path_body.py +0 -0
  257. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/models/volume_entry_stat.py +0 -0
  258. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/models/volume_entry_stat_type.py +0 -0
  259. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/py.typed +0 -0
  260. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client/types.py +0 -0
  261. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client_async/__init__.py +0 -0
  262. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/client_sync/__init__.py +0 -0
  263. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/connection_config.py +0 -0
  264. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/types.py +0 -0
  265. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/utils.py +0 -0
  266. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/volume_async.py +0 -0
  267. {e2b-2.62.1 → e2b-2.64.0}/e2b/volume/volume_sync.py +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: e2b
3
- Version: 2.62.1
3
+ Version: 2.64.0
4
4
  Summary: E2B SDK that give agents cloud environments
5
5
  Author: e2b
6
6
  Author-email: e2b <hello@e2b.dev>
@@ -44,6 +44,7 @@ from .exceptions import (
44
44
  GitUpstreamException,
45
45
  BuildException,
46
46
  FileUploadException,
47
+ GuestUnresponsiveException,
47
48
  InvalidArgumentException,
48
49
  NotEnoughSpaceException,
49
50
  NotFoundException,
@@ -159,11 +160,14 @@ from .template.types import (
159
160
  CopyItem,
160
161
  TemplateBuildStatus,
161
162
  TemplateBuildStatusResponse,
163
+ TemplateInfo,
162
164
  TemplateTag,
163
165
  TemplateTagInfo,
164
166
  )
165
167
  from .template_async.main import AsyncTemplate
168
+ from .template_async.paginator import AsyncTemplatePaginator
166
169
  from .template_sync.main import Template
170
+ from .template_sync.paginator import TemplatePaginator
167
171
 
168
172
  from .volume.volume_sync import Volume
169
173
  from .volume.volume_async import AsyncVolume
@@ -208,6 +212,7 @@ __all__ = [
208
212
  "DockerfileSyntaxError",
209
213
  "BuildException",
210
214
  "FileUploadException",
215
+ "GuestUnresponsiveException",
211
216
  "RateLimitException",
212
217
  "VolumeException",
213
218
  "VolumeNotFoundException",
@@ -300,6 +305,9 @@ __all__ = [
300
305
  "BuildStatusReason",
301
306
  "TemplateBuildStatus",
302
307
  "TemplateBuildStatusResponse",
308
+ "TemplateInfo",
309
+ "TemplatePaginator",
310
+ "AsyncTemplatePaginator",
303
311
  "TemplateTag",
304
312
  "TemplateTagInfo",
305
313
  "ReadyCmd",
@@ -22,6 +22,7 @@ from e2b.api.metadata import default_headers
22
22
  from e2b.connection_config import ConnectionConfig, ProxyTypes
23
23
  from e2b.exceptions import (
24
24
  AuthenticationException,
25
+ GuestUnresponsiveException,
25
26
  InvalidArgumentException,
26
27
  RateLimitException,
27
28
  ServiceBusyException,
@@ -199,6 +200,11 @@ def handle_api_exception(
199
200
  body = {}
200
201
 
201
202
  message = body["message"] if "message" in body else None
203
+ if body.get("error_code") == GuestUnresponsiveException.code:
204
+ return GuestUnresponsiveException(
205
+ f'{message}. Resume the sandbox with on_resume="reboot".'
206
+ ).with_traceback(stack_trace)
207
+
202
208
  if message is None and e.status_code not in (401, 429, 503):
203
209
  err = default_exception_class(f"{e.status_code}: {e.content}").with_traceback(
204
210
  stack_trace
@@ -240,15 +246,31 @@ class ApiClient(AuthenticatedClient):
240
246
  ):
241
247
  self._proxy = config.proxy
242
248
 
243
- if config.api_key is None:
249
+ # An `Authorization` header (e.g. an OAuth access token passed through
250
+ # `api_headers`) authenticates the request in place of an API key.
251
+ authorization = next(
252
+ (
253
+ (name, value)
254
+ for name, value in (config.headers or {}).items()
255
+ if name.lower() == "authorization"
256
+ ),
257
+ None,
258
+ )
259
+
260
+ # Like the JS SDK, an empty E2B_API_KEY counts as unset.
261
+ if config.api_key:
262
+ token = config.api_key
263
+ auth_header_name = "X-API-KEY"
264
+ elif authorization is not None:
265
+ # The generated client always writes `token` to `auth_header_name`;
266
+ # point it at the caller's own header so it isn't sent twice.
267
+ auth_header_name, token = authorization
268
+ else:
244
269
  raise AuthenticationException(
245
270
  "API key is required, please visit the API Keys tab at https://e2b.dev/dashboard?tab=keys to get your API key. "
246
271
  "You can either set the environment variable `E2B_API_KEY` "
247
272
  'or you can pass it directly to the method like api_key="e2b_..."',
248
273
  )
249
-
250
- token = config.api_key
251
- auth_header_name = "X-API-KEY"
252
274
  prefix = ""
253
275
 
254
276
  self._logger = config.logger
@@ -34,6 +34,10 @@ def _parse_response(
34
34
  response_404 = Error.from_dict(response.json())
35
35
 
36
36
  return response_404
37
+ if response.status_code == 409:
38
+ response_409 = Error.from_dict(response.json())
39
+
40
+ return response_409
37
41
  if response.status_code == 429:
38
42
  response_429 = Error.from_dict(response.json())
39
43
 
@@ -81,7 +81,8 @@ def sync_detailed(
81
81
  ) -> Response[Union[Error, list["ListedSandbox"]]]:
82
82
  """List running sandboxes
83
83
 
84
- List all running sandboxes. Use GET /v2/sandboxes instead.
84
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
85
+ /v2/sandboxes to page through them.
85
86
 
86
87
  Args:
87
88
  metadata (Union[Unset, str]):
@@ -112,7 +113,8 @@ def sync(
112
113
  ) -> Optional[Union[Error, list["ListedSandbox"]]]:
113
114
  """List running sandboxes
114
115
 
115
- List all running sandboxes. Use GET /v2/sandboxes instead.
116
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
117
+ /v2/sandboxes to page through them.
116
118
 
117
119
  Args:
118
120
  metadata (Union[Unset, str]):
@@ -138,7 +140,8 @@ async def asyncio_detailed(
138
140
  ) -> Response[Union[Error, list["ListedSandbox"]]]:
139
141
  """List running sandboxes
140
142
 
141
- List all running sandboxes. Use GET /v2/sandboxes instead.
143
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
144
+ /v2/sandboxes to page through them.
142
145
 
143
146
  Args:
144
147
  metadata (Union[Unset, str]):
@@ -167,7 +170,8 @@ async def asyncio(
167
170
  ) -> Optional[Union[Error, list["ListedSandbox"]]]:
168
171
  """List running sandboxes
169
172
 
170
- List all running sandboxes. Use GET /v2/sandboxes instead.
173
+ List all running sandboxes. Returns 400 when more than 5000 running sandboxes match; use GET
174
+ /v2/sandboxes to page through them.
171
175
 
172
176
  Args:
173
177
  metadata (Union[Unset, str]):
@@ -0,0 +1,191 @@
1
+ from http import HTTPStatus
2
+ from typing import Any, Optional, Union
3
+
4
+ import httpx
5
+
6
+ from ... import errors
7
+ from ...client import AuthenticatedClient, Client
8
+ from ...models.error import Error
9
+ from ...models.sandbox_record import SandboxRecord
10
+ from ...types import Response
11
+
12
+
13
+ def _get_kwargs(
14
+ sandbox_id: str,
15
+ ) -> dict[str, Any]:
16
+ _kwargs: dict[str, Any] = {
17
+ "method": "get",
18
+ "url": f"/unstable/sandboxes/{sandbox_id}/record",
19
+ }
20
+
21
+ return _kwargs
22
+
23
+
24
+ def _parse_response(
25
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
26
+ ) -> Optional[Union[Error, SandboxRecord]]:
27
+ if response.status_code == 200:
28
+ response_200 = SandboxRecord.from_dict(response.json())
29
+
30
+ return response_200
31
+ if response.status_code == 400:
32
+ response_400 = Error.from_dict(response.json())
33
+
34
+ return response_400
35
+ if response.status_code == 401:
36
+ response_401 = Error.from_dict(response.json())
37
+
38
+ return response_401
39
+ if response.status_code == 403:
40
+ response_403 = Error.from_dict(response.json())
41
+
42
+ return response_403
43
+ if response.status_code == 404:
44
+ response_404 = Error.from_dict(response.json())
45
+
46
+ return response_404
47
+ if response.status_code == 429:
48
+ response_429 = Error.from_dict(response.json())
49
+
50
+ return response_429
51
+ if response.status_code == 500:
52
+ response_500 = Error.from_dict(response.json())
53
+
54
+ return response_500
55
+ if client.raise_on_unexpected_status:
56
+ raise errors.UnexpectedStatus(response.status_code, response.content)
57
+ else:
58
+ return None
59
+
60
+
61
+ def _build_response(
62
+ *, client: Union[AuthenticatedClient, Client], response: httpx.Response
63
+ ) -> Response[Union[Error, SandboxRecord]]:
64
+ return Response(
65
+ status_code=HTTPStatus(response.status_code),
66
+ content=response.content,
67
+ headers=response.headers,
68
+ parsed=_parse_response(client=client, response=response),
69
+ )
70
+
71
+
72
+ def sync_detailed(
73
+ sandbox_id: str,
74
+ *,
75
+ client: AuthenticatedClient,
76
+ ) -> Response[Union[Error, SandboxRecord]]:
77
+ """Sandbox record
78
+
79
+ Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
80
+ whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
81
+ recorded run of the sandbox.
82
+
83
+ Args:
84
+ sandbox_id (str):
85
+
86
+ Raises:
87
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
88
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
89
+
90
+ Returns:
91
+ Response[Union[Error, SandboxRecord]]
92
+ """
93
+
94
+ kwargs = _get_kwargs(
95
+ sandbox_id=sandbox_id,
96
+ )
97
+
98
+ response = client.get_httpx_client().request(
99
+ **kwargs,
100
+ )
101
+
102
+ return _build_response(client=client, response=response)
103
+
104
+
105
+ def sync(
106
+ sandbox_id: str,
107
+ *,
108
+ client: AuthenticatedClient,
109
+ ) -> Optional[Union[Error, SandboxRecord]]:
110
+ """Sandbox record
111
+
112
+ Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
113
+ whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
114
+ recorded run of the sandbox.
115
+
116
+ Args:
117
+ sandbox_id (str):
118
+
119
+ Raises:
120
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
121
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
122
+
123
+ Returns:
124
+ Union[Error, SandboxRecord]
125
+ """
126
+
127
+ return sync_detailed(
128
+ sandbox_id=sandbox_id,
129
+ client=client,
130
+ ).parsed
131
+
132
+
133
+ async def asyncio_detailed(
134
+ sandbox_id: str,
135
+ *,
136
+ client: AuthenticatedClient,
137
+ ) -> Response[Union[Error, SandboxRecord]]:
138
+ """Sandbox record
139
+
140
+ Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
141
+ whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
142
+ recorded run of the sandbox.
143
+
144
+ Args:
145
+ sandbox_id (str):
146
+
147
+ Raises:
148
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
149
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
150
+
151
+ Returns:
152
+ Response[Union[Error, SandboxRecord]]
153
+ """
154
+
155
+ kwargs = _get_kwargs(
156
+ sandbox_id=sandbox_id,
157
+ )
158
+
159
+ response = await client.get_async_httpx_client().request(**kwargs)
160
+
161
+ return _build_response(client=client, response=response)
162
+
163
+
164
+ async def asyncio(
165
+ sandbox_id: str,
166
+ *,
167
+ client: AuthenticatedClient,
168
+ ) -> Optional[Union[Error, SandboxRecord]]:
169
+ """Sandbox record
170
+
171
+ Returns the team's latest recorded run of the sandbox, including runs that have already ended, and
172
+ whether its monitoring, logs and events data are still retained. Returns 404 when the team has no
173
+ recorded run of the sandbox.
174
+
175
+ Args:
176
+ sandbox_id (str):
177
+
178
+ Raises:
179
+ errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
180
+ httpx.TimeoutException: If the request takes longer than Client.timeout.
181
+
182
+ Returns:
183
+ Union[Error, SandboxRecord]
184
+ """
185
+
186
+ return (
187
+ await asyncio_detailed(
188
+ sandbox_id=sandbox_id,
189
+ client=client,
190
+ )
191
+ ).parsed
@@ -100,7 +100,9 @@ def sync_detailed(
100
100
  """Connect sandbox
101
101
 
102
102
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
103
- POST /v2/sandboxes/{sandboxID}/connect instead.
103
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
104
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
105
+ guest agent was not responding and the request did not ask for `memory: false`.
104
106
 
105
107
  Args:
106
108
  sandbox_id (str):
@@ -135,7 +137,9 @@ def sync(
135
137
  """Connect sandbox
136
138
 
137
139
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
138
- POST /v2/sandboxes/{sandboxID}/connect instead.
140
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
141
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
142
+ guest agent was not responding and the request did not ask for `memory: false`.
139
143
 
140
144
  Args:
141
145
  sandbox_id (str):
@@ -165,7 +169,9 @@ async def asyncio_detailed(
165
169
  """Connect sandbox
166
170
 
167
171
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
168
- POST /v2/sandboxes/{sandboxID}/connect instead.
172
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
173
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
174
+ guest agent was not responding and the request did not ask for `memory: false`.
169
175
 
170
176
  Args:
171
177
  sandbox_id (str):
@@ -198,7 +204,9 @@ async def asyncio(
198
204
  """Connect sandbox
199
205
 
200
206
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. Use
201
- POST /v2/sandboxes/{sandboxID}/connect instead.
207
+ POST /v2/sandboxes/{sandboxID}/connect instead. Answers 409 with error_code
208
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
209
+ guest agent was not responding and the request did not ask for `memory: false`.
202
210
 
203
211
  Args:
204
212
  sandbox_id (str):
@@ -85,7 +85,9 @@ def sync_detailed(
85
85
  ) -> Response[Union[Any, Error]]:
86
86
  """Pause sandbox
87
87
 
88
- Pause the sandbox
88
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
89
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
90
+ agent is not responding; retry later.
89
91
 
90
92
  Args:
91
93
  sandbox_id (str):
@@ -119,7 +121,9 @@ def sync(
119
121
  ) -> Optional[Union[Any, Error]]:
120
122
  """Pause sandbox
121
123
 
122
- Pause the sandbox
124
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
125
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
126
+ agent is not responding; retry later.
123
127
 
124
128
  Args:
125
129
  sandbox_id (str):
@@ -148,7 +152,9 @@ async def asyncio_detailed(
148
152
  ) -> Response[Union[Any, Error]]:
149
153
  """Pause sandbox
150
154
 
151
- Pause the sandbox
155
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
156
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
157
+ agent is not responding; retry later.
152
158
 
153
159
  Args:
154
160
  sandbox_id (str):
@@ -180,7 +186,9 @@ async def asyncio(
180
186
  ) -> Optional[Union[Any, Error]]:
181
187
  """Pause sandbox
182
188
 
183
- Pause the sandbox
189
+ Pause the sandbox. Answers 503 and leaves the sandbox running when it cannot be paused right now:
190
+ its node is busy, it is being snapshotted, or `requireHealthyGuest` was set and the sandbox guest
191
+ agent is not responding; retry later.
184
192
 
185
193
  Args:
186
194
  sandbox_id (str):
@@ -95,7 +95,10 @@ def sync_detailed(
95
95
  ) -> Response[Union[Error, Sandbox]]:
96
96
  """Resume sandbox
97
97
 
98
- Resume the sandbox
98
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
99
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
100
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
101
+ (`memory: false`).
99
102
 
100
103
  Args:
101
104
  sandbox_id (str):
@@ -129,7 +132,10 @@ def sync(
129
132
  ) -> Optional[Union[Error, Sandbox]]:
130
133
  """Resume sandbox
131
134
 
132
- Resume the sandbox
135
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
136
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
137
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
138
+ (`memory: false`).
133
139
 
134
140
  Args:
135
141
  sandbox_id (str):
@@ -158,7 +164,10 @@ async def asyncio_detailed(
158
164
  ) -> Response[Union[Error, Sandbox]]:
159
165
  """Resume sandbox
160
166
 
161
- Resume the sandbox
167
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
168
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
169
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
170
+ (`memory: false`).
162
171
 
163
172
  Args:
164
173
  sandbox_id (str):
@@ -190,7 +199,10 @@ async def asyncio(
190
199
  ) -> Optional[Union[Error, Sandbox]]:
191
200
  """Resume sandbox
192
201
 
193
- Resume the sandbox
202
+ Resume the sandbox. Answers 409 when the sandbox is already running, or when its snapshot was taken
203
+ while the sandbox guest agent was not responding and a plain resume would restore that memory
204
+ (error_code sandbox_snapshot_guest_agent_unresponsive); resume such a sandbox without memory
205
+ (`memory: false`).
194
206
 
195
207
  Args:
196
208
  sandbox_id (str):
@@ -58,6 +58,10 @@ def _parse_response(
58
58
  response_500 = Error.from_dict(response.json())
59
59
 
60
60
  return response_500
61
+ if response.status_code == 503:
62
+ response_503 = Error.from_dict(response.json())
63
+
64
+ return response_503
61
65
  if client.raise_on_unexpected_status:
62
66
  raise errors.UnexpectedStatus(response.status_code, response.content)
63
67
  else:
@@ -100,7 +100,9 @@ def sync_detailed(
100
100
  """Connect sandbox (v2)
101
101
 
102
102
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
103
- request body is optional; an omitted timeout defaults to 300 seconds.
103
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
104
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
105
+ guest agent was not responding and the request did not ask for `memory: false`.
104
106
 
105
107
  Args:
106
108
  sandbox_id (str):
@@ -135,7 +137,9 @@ def sync(
135
137
  """Connect sandbox (v2)
136
138
 
137
139
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
138
- request body is optional; an omitted timeout defaults to 300 seconds.
140
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
141
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
142
+ guest agent was not responding and the request did not ask for `memory: false`.
139
143
 
140
144
  Args:
141
145
  sandbox_id (str):
@@ -165,7 +169,9 @@ async def asyncio_detailed(
165
169
  """Connect sandbox (v2)
166
170
 
167
171
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
168
- request body is optional; an omitted timeout defaults to 300 seconds.
172
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
173
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
174
+ guest agent was not responding and the request did not ask for `memory: false`.
169
175
 
170
176
  Args:
171
177
  sandbox_id (str):
@@ -198,7 +204,9 @@ async def asyncio(
198
204
  """Connect sandbox (v2)
199
205
 
200
206
  Returns sandbox details. If the sandbox is paused, it will be resumed. TTL is only extended. The
201
- request body is optional; an omitted timeout defaults to 300 seconds.
207
+ request body is optional; an omitted timeout defaults to 300 seconds. Answers 409 with error_code
208
+ sandbox_snapshot_guest_agent_unresponsive when the paused sandbox's snapshot was taken while its
209
+ guest agent was not responding and the request did not ask for `memory: false`.
202
210
 
203
211
  Args:
204
212
  sandbox_id (str):
@@ -41,6 +41,10 @@ def _parse_response(
41
41
  response_200.append(response_200_item)
42
42
 
43
43
  return response_200
44
+ if response.status_code == 400:
45
+ response_400 = Error.from_dict(response.json())
46
+
47
+ return response_400
44
48
  if response.status_code == 401:
45
49
  response_401 = Error.from_dict(response.json())
46
50
 
@@ -77,7 +81,8 @@ def sync_detailed(
77
81
  ) -> Response[Union[Error, list["Template"]]]:
78
82
  """List templates
79
83
 
80
- List all templates
84
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
85
+ page through them.
81
86
 
82
87
  Args:
83
88
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -109,7 +114,8 @@ def sync(
109
114
  ) -> Optional[Union[Error, list["Template"]]]:
110
115
  """List templates
111
116
 
112
- List all templates
117
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
118
+ page through them.
113
119
 
114
120
  Args:
115
121
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -136,7 +142,8 @@ async def asyncio_detailed(
136
142
  ) -> Response[Union[Error, list["Template"]]]:
137
143
  """List templates
138
144
 
139
- List all templates
145
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
146
+ page through them.
140
147
 
141
148
  Args:
142
149
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -166,7 +173,8 @@ async def asyncio(
166
173
  ) -> Optional[Union[Error, list["Template"]]]:
167
174
  """List templates
168
175
 
169
- List all templates
176
+ List all templates. Returns 400 when the team has more than 5000 templates; use /v2/templates to
177
+ page through them.
170
178
 
171
179
  Args:
172
180
  team_id (Union[Unset, str]): Identifier of the team, as its UUID or its public project ID
@@ -55,6 +55,7 @@ from .sandbox_network_update_config_rules import SandboxNetworkUpdateConfigRules
55
55
  from .sandbox_on_timeout import SandboxOnTimeout
56
56
  from .sandbox_pause_mode import SandboxPauseMode
57
57
  from .sandbox_pause_request import SandboxPauseRequest
58
+ from .sandbox_record import SandboxRecord
58
59
  from .sandbox_refresh_request import SandboxRefreshRequest
59
60
  from .sandbox_snapshot_request import SandboxSnapshotRequest
60
61
  from .sandbox_state import SandboxState
@@ -146,6 +147,7 @@ __all__ = (
146
147
  "SandboxOnTimeout",
147
148
  "SandboxPauseMode",
148
149
  "SandboxPauseRequest",
150
+ "SandboxRecord",
149
151
  "SandboxRefreshRequest",
150
152
  "SandboxSnapshotRequest",
151
153
  "SandboxState",
@@ -18,7 +18,8 @@ class ConnectSandbox:
18
18
  only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
19
19
  state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
20
20
  contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
21
- downgraded to a memory restore.
21
+ downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
22
+ (envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
22
23
  """
23
24
 
24
25
  timeout: int
@@ -19,7 +19,8 @@ class ConnectSandboxV2:
19
19
  only: the sandbox cold-boots fresh and any memory in the snapshot is ignored, never modified or deleted. Disk
20
20
  state has crash-recovery semantics — writes not flushed before the pause may be lost. A no-op for snapshots that
21
21
  contain no memory. Rejected with an error in environments where this capability is not enabled, never silently
22
- downgraded to a memory restore.
22
+ downgraded to a memory restore. A snapshot taken while the sandbox guest agent was not responding
23
+ (envdUnresponsiveAtPause) can only be resumed this way, and needs no enablement.
23
24
  """
24
25
 
25
26
  timeout: Union[Unset, int] = 300
@@ -20,7 +20,11 @@ class Error:
20
20
  node could not create the sandbox this time; retry), sandbox_create_refused (a node refused the sandbox for a
21
21
  reason no retry changes, such as a vcpu count out of bounds in the stored build; a server error, since no
22
22
  request field reaches that check), internal_server_error, secret_limit_reached, idempotency_request_mismatch,
23
- idempotency_in_progress, idempotency_outcome_unknown.
23
+ idempotency_in_progress, idempotency_outcome_unknown, cluster_registration_invalid,
24
+ cluster_registration_conflict, cluster_assignment_invalid, cluster_assignment_project_not_found,
25
+ cluster_assignment_cluster_not_found, cluster_assignment_already_assigned, cluster_assignment_cluster_deleting,
26
+ sandbox_snapshot_guest_agent_unresponsive (a plain resume of a snapshot taken while the sandbox guest agent was
27
+ not responding; resume it with memory: false).
24
28
  """
25
29
 
26
30
  code: int