northrays 0.1.0__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (711) hide show
  1. northrays/__init__.py +245 -0
  2. northrays/_async/__init__.py +2 -0
  3. northrays/_async/code_interpreter.py +302 -0
  4. northrays/_async/computer_use.py +930 -0
  5. northrays/_async/filesystem.py +1240 -0
  6. northrays/_async/git.py +391 -0
  7. northrays/_async/lsp_server.py +256 -0
  8. northrays/_async/northrays.py +819 -0
  9. northrays/_async/object_storage.py +190 -0
  10. northrays/_async/process.py +781 -0
  11. northrays/_async/sandbox.py +904 -0
  12. northrays/_async/snapshot.py +262 -0
  13. northrays/_async/volume.py +94 -0
  14. northrays/_sync/__init__.py +2 -0
  15. northrays/_sync/code_interpreter.py +271 -0
  16. northrays/_sync/computer_use.py +929 -0
  17. northrays/_sync/filesystem.py +1063 -0
  18. northrays/_sync/git.py +389 -0
  19. northrays/_sync/lsp_server.py +256 -0
  20. northrays/_sync/northrays.py +704 -0
  21. northrays/_sync/object_storage.py +184 -0
  22. northrays/_sync/process.py +778 -0
  23. northrays/_sync/sandbox.py +919 -0
  24. northrays/_sync/snapshot.py +262 -0
  25. northrays/_sync/volume.py +94 -0
  26. northrays/_utils/__init__.py +2 -0
  27. northrays/_utils/deprecation.py +95 -0
  28. northrays/_utils/docs_ignore.py +11 -0
  29. northrays/_utils/enum.py +27 -0
  30. northrays/_utils/env.py +38 -0
  31. northrays/_utils/environment.py +23 -0
  32. northrays/_utils/errors.py +298 -0
  33. northrays/_utils/otel_decorator.py +331 -0
  34. northrays/_utils/stream.py +368 -0
  35. northrays/_utils/timeout.py +484 -0
  36. northrays/_utils/types.py +16 -0
  37. northrays/common/__init__.py +2 -0
  38. northrays/common/charts.py +118 -0
  39. northrays/common/code_interpreter.py +44 -0
  40. northrays/common/computer_use.py +44 -0
  41. northrays/common/errors.py +187 -0
  42. northrays/common/file_transfer.py +69 -0
  43. northrays/common/filesystem.py +177 -0
  44. northrays/common/git.py +13 -0
  45. northrays/common/image.py +700 -0
  46. northrays/common/lsp_server.py +45 -0
  47. northrays/common/northrays.py +202 -0
  48. northrays/common/process.py +140 -0
  49. northrays/common/protocols.py +14 -0
  50. northrays/common/pty.py +65 -0
  51. northrays/common/sandbox.py +99 -0
  52. northrays/common/snapshot.py +84 -0
  53. northrays/common/volume.py +39 -0
  54. northrays/handle/async_pty_handle.py +323 -0
  55. northrays/handle/pty_handle.py +341 -0
  56. northrays/internal/__init__.py +2 -0
  57. northrays/internal/api_client_proxy.py +22 -0
  58. northrays/internal/http_client.py +99 -0
  59. northrays/internal/pool_tracker.py +44 -0
  60. northrays/internal/shared_session.py +262 -0
  61. northrays/internal/toolbox_api_client_proxy.py +114 -0
  62. northrays/internal/urllib3_retry.py +53 -0
  63. northrays/py.typed +0 -0
  64. northrays-0.1.0.dist-info/METADATA +211 -0
  65. northrays-0.1.0.dist-info/RECORD +711 -0
  66. northrays-0.1.0.dist-info/WHEEL +5 -0
  67. northrays-0.1.0.dist-info/licenses/LICENSE +191 -0
  68. northrays-0.1.0.dist-info/licenses/NOTICE +46 -0
  69. northrays-0.1.0.dist-info/top_level.txt +5 -0
  70. northrays_api_client/__init__.py +684 -0
  71. northrays_api_client/api/__init__.py +64 -0
  72. northrays_api_client/api/admin_api.py +5998 -0
  73. northrays_api_client/api/api_keys_api.py +1672 -0
  74. northrays_api_client/api/audit_api.py +402 -0
  75. northrays_api_client/api/config_api.py +278 -0
  76. northrays_api_client/api/docker_registry_api.py +1707 -0
  77. northrays_api_client/api/health_api.py +517 -0
  78. northrays_api_client/api/jobs_api.py +1185 -0
  79. northrays_api_client/api/object_storage_api.py +298 -0
  80. northrays_api_client/api/organizations_api.py +10857 -0
  81. northrays_api_client/api/preview_api.py +1104 -0
  82. northrays_api_client/api/regions_api.py +279 -0
  83. northrays_api_client/api/runners_api.py +2987 -0
  84. northrays_api_client/api/sandbox_api.py +12813 -0
  85. northrays_api_client/api/snapshots_api.py +2331 -0
  86. northrays_api_client/api/toolbox_api.py +20758 -0
  87. northrays_api_client/api/users_api.py +1304 -0
  88. northrays_api_client/api/volumes_api.py +1421 -0
  89. northrays_api_client/api/webhooks_api.py +1135 -0
  90. northrays_api_client/api_client.py +810 -0
  91. northrays_api_client/api_response.py +21 -0
  92. northrays_api_client/configuration.py +607 -0
  93. northrays_api_client/exceptions.py +219 -0
  94. northrays_api_client/models/__init__.py +405 -0
  95. northrays_api_client/models/account_provider.py +105 -0
  96. northrays_api_client/models/admin_create_runner.py +131 -0
  97. northrays_api_client/models/admin_get_webhook_status200_response.py +103 -0
  98. northrays_api_client/models/announcement.py +105 -0
  99. northrays_api_client/models/api_key_list.py +126 -0
  100. northrays_api_client/models/api_key_response.py +117 -0
  101. northrays_api_client/models/audit_log.py +134 -0
  102. northrays_api_client/models/build_info.py +112 -0
  103. northrays_api_client/models/command.py +107 -0
  104. northrays_api_client/models/completion_context.py +105 -0
  105. northrays_api_client/models/completion_item.py +115 -0
  106. northrays_api_client/models/completion_list.py +113 -0
  107. northrays_api_client/models/compressed_screenshot_response.py +107 -0
  108. northrays_api_client/models/computer_use_start_response.py +105 -0
  109. northrays_api_client/models/computer_use_status_response.py +103 -0
  110. northrays_api_client/models/computer_use_stop_response.py +105 -0
  111. northrays_api_client/models/create_api_key.py +113 -0
  112. northrays_api_client/models/create_build_info.py +105 -0
  113. northrays_api_client/models/create_docker_registry.py +111 -0
  114. northrays_api_client/models/create_linked_account.py +105 -0
  115. northrays_api_client/models/create_organization.py +105 -0
  116. northrays_api_client/models/create_organization_invitation.py +110 -0
  117. northrays_api_client/models/create_organization_quota.py +119 -0
  118. northrays_api_client/models/create_organization_region_quota.py +169 -0
  119. northrays_api_client/models/create_organization_role.py +107 -0
  120. northrays_api_client/models/create_region.py +124 -0
  121. northrays_api_client/models/create_region_response.py +131 -0
  122. northrays_api_client/models/create_runner.py +107 -0
  123. northrays_api_client/models/create_runner_response.py +105 -0
  124. northrays_api_client/models/create_sandbox.py +156 -0
  125. northrays_api_client/models/create_sandbox_snapshot.py +105 -0
  126. northrays_api_client/models/create_session_request.py +103 -0
  127. northrays_api_client/models/create_snapshot.py +129 -0
  128. northrays_api_client/models/create_user.py +119 -0
  129. northrays_api_client/models/create_volume.py +103 -0
  130. northrays_api_client/models/display_info_response.py +103 -0
  131. northrays_api_client/models/docker_registry.py +118 -0
  132. northrays_api_client/models/download_files.py +103 -0
  133. northrays_api_client/models/execute_request.py +107 -0
  134. northrays_api_client/models/execute_response.py +105 -0
  135. northrays_api_client/models/file_info.py +117 -0
  136. northrays_api_client/models/file_status.py +109 -0
  137. northrays_api_client/models/fork_sandbox.py +103 -0
  138. northrays_api_client/models/git_add_request.py +105 -0
  139. northrays_api_client/models/git_branch_request.py +105 -0
  140. northrays_api_client/models/git_checkout_request.py +105 -0
  141. northrays_api_client/models/git_clone_request.py +113 -0
  142. northrays_api_client/models/git_commit_info.py +111 -0
  143. northrays_api_client/models/git_commit_request.py +111 -0
  144. northrays_api_client/models/git_commit_response.py +103 -0
  145. northrays_api_client/models/git_delete_branch_request.py +105 -0
  146. northrays_api_client/models/git_repo_request.py +107 -0
  147. northrays_api_client/models/git_status.py +119 -0
  148. northrays_api_client/models/gpu_type.py +43 -0
  149. northrays_api_client/models/health_controller_check200_response.py +156 -0
  150. northrays_api_client/models/health_controller_check200_response_info_value.py +103 -0
  151. northrays_api_client/models/health_controller_check503_response.py +156 -0
  152. northrays_api_client/models/job.py +123 -0
  153. northrays_api_client/models/job_status.py +45 -0
  154. northrays_api_client/models/job_type.py +56 -0
  155. northrays_api_client/models/keyboard_hotkey_request.py +103 -0
  156. northrays_api_client/models/keyboard_press_request.py +105 -0
  157. northrays_api_client/models/keyboard_type_request.py +105 -0
  158. northrays_api_client/models/list_branch_response.py +103 -0
  159. northrays_api_client/models/list_sandboxes_response.py +118 -0
  160. northrays_api_client/models/log_entry.py +119 -0
  161. northrays_api_client/models/lsp_completion_params.py +119 -0
  162. northrays_api_client/models/lsp_document_request.py +107 -0
  163. northrays_api_client/models/lsp_location.py +109 -0
  164. northrays_api_client/models/lsp_server_request.py +105 -0
  165. northrays_api_client/models/lsp_symbol.py +111 -0
  166. northrays_api_client/models/match.py +107 -0
  167. northrays_api_client/models/metric_data_point.py +105 -0
  168. northrays_api_client/models/metric_series.py +113 -0
  169. northrays_api_client/models/metrics_response.py +111 -0
  170. northrays_api_client/models/mouse_click_request.py +109 -0
  171. northrays_api_client/models/mouse_click_response.py +105 -0
  172. northrays_api_client/models/mouse_drag_request.py +111 -0
  173. northrays_api_client/models/mouse_drag_response.py +105 -0
  174. northrays_api_client/models/mouse_move_request.py +105 -0
  175. northrays_api_client/models/mouse_move_response.py +105 -0
  176. northrays_api_client/models/mouse_position.py +105 -0
  177. northrays_api_client/models/mouse_scroll_request.py +109 -0
  178. northrays_api_client/models/mouse_scroll_response.py +103 -0
  179. northrays_api_client/models/northrays_configuration.py +162 -0
  180. northrays_api_client/models/oidc_config.py +107 -0
  181. northrays_api_client/models/organization.py +191 -0
  182. northrays_api_client/models/organization_invitation.py +132 -0
  183. northrays_api_client/models/organization_role.py +116 -0
  184. northrays_api_client/models/organization_sandbox_default_limited_network_egress.py +103 -0
  185. northrays_api_client/models/organization_suspension.py +109 -0
  186. northrays_api_client/models/organization_usage_overview.py +119 -0
  187. northrays_api_client/models/organization_user.py +126 -0
  188. northrays_api_client/models/otel_config.py +110 -0
  189. northrays_api_client/models/paginated_audit_logs.py +119 -0
  190. northrays_api_client/models/paginated_jobs.py +117 -0
  191. northrays_api_client/models/paginated_logs.py +117 -0
  192. northrays_api_client/models/paginated_sandboxes_deprecated.py +117 -0
  193. northrays_api_client/models/paginated_snapshots.py +117 -0
  194. northrays_api_client/models/paginated_traces.py +117 -0
  195. northrays_api_client/models/poll_jobs_response.py +111 -0
  196. northrays_api_client/models/port_preview_url.py +107 -0
  197. northrays_api_client/models/position.py +105 -0
  198. northrays_api_client/models/posthog_config.py +105 -0
  199. northrays_api_client/models/process_errors_response.py +105 -0
  200. northrays_api_client/models/process_logs_response.py +105 -0
  201. northrays_api_client/models/process_restart_response.py +105 -0
  202. northrays_api_client/models/process_status_response.py +105 -0
  203. northrays_api_client/models/project_dir_response.py +103 -0
  204. northrays_api_client/models/pty_create_request.py +113 -0
  205. northrays_api_client/models/pty_create_response.py +103 -0
  206. northrays_api_client/models/pty_list_response.py +111 -0
  207. northrays_api_client/models/pty_resize_request.py +105 -0
  208. northrays_api_client/models/pty_session_info.py +117 -0
  209. northrays_api_client/models/range.py +112 -0
  210. northrays_api_client/models/rate_limit_config.py +122 -0
  211. northrays_api_client/models/rate_limit_entry.py +105 -0
  212. northrays_api_client/models/regenerate_api_key_response.py +103 -0
  213. northrays_api_client/models/region.py +140 -0
  214. northrays_api_client/models/region_quota.py +168 -0
  215. northrays_api_client/models/region_screenshot_response.py +107 -0
  216. northrays_api_client/models/region_type.py +44 -0
  217. northrays_api_client/models/region_usage_overview.py +174 -0
  218. northrays_api_client/models/registry_push_access_dto.py +113 -0
  219. northrays_api_client/models/replace_request.py +107 -0
  220. northrays_api_client/models/replace_result.py +107 -0
  221. northrays_api_client/models/resize_sandbox.py +108 -0
  222. northrays_api_client/models/runner.py +166 -0
  223. northrays_api_client/models/runner_class.py +42 -0
  224. northrays_api_client/models/runner_full.py +171 -0
  225. northrays_api_client/models/runner_health_metrics.py +129 -0
  226. northrays_api_client/models/runner_healthcheck.py +125 -0
  227. northrays_api_client/models/runner_service_health.py +107 -0
  228. northrays_api_client/models/runner_snapshot_dto.py +107 -0
  229. northrays_api_client/models/runner_state.py +46 -0
  230. northrays_api_client/models/sandbox.py +188 -0
  231. northrays_api_client/models/sandbox_class.py +45 -0
  232. northrays_api_client/models/sandbox_desired_state.py +47 -0
  233. northrays_api_client/models/sandbox_labels.py +103 -0
  234. northrays_api_client/models/sandbox_list_item.py +161 -0
  235. northrays_api_client/models/sandbox_list_sort_direction.py +43 -0
  236. northrays_api_client/models/sandbox_list_sort_field.py +47 -0
  237. northrays_api_client/models/sandbox_state.py +63 -0
  238. northrays_api_client/models/sandbox_volume.py +107 -0
  239. northrays_api_client/models/screenshot_response.py +107 -0
  240. northrays_api_client/models/search_files_response.py +103 -0
  241. northrays_api_client/models/send_webhook_dto.py +108 -0
  242. northrays_api_client/models/session.py +118 -0
  243. northrays_api_client/models/session_execute_request.py +107 -0
  244. northrays_api_client/models/session_execute_response.py +107 -0
  245. northrays_api_client/models/set_snapshot_general_status_dto.py +103 -0
  246. northrays_api_client/models/signed_port_preview_url.py +109 -0
  247. northrays_api_client/models/snapshot_dto.py +172 -0
  248. northrays_api_client/models/snapshot_manager_credentials.py +105 -0
  249. northrays_api_client/models/snapshot_state.py +49 -0
  250. northrays_api_client/models/ssh_access_dto.py +116 -0
  251. northrays_api_client/models/ssh_access_validation_dto.py +105 -0
  252. northrays_api_client/models/storage_access_dto.py +113 -0
  253. northrays_api_client/models/toolbox_proxy_url.py +103 -0
  254. northrays_api_client/models/trace_span.py +119 -0
  255. northrays_api_client/models/trace_summary.py +115 -0
  256. northrays_api_client/models/update_docker_registry.py +111 -0
  257. northrays_api_client/models/update_job_status.py +108 -0
  258. northrays_api_client/models/update_organization_default_region.py +103 -0
  259. northrays_api_client/models/update_organization_invitation.py +108 -0
  260. northrays_api_client/models/update_organization_member_access.py +105 -0
  261. northrays_api_client/models/update_organization_quota.py +192 -0
  262. northrays_api_client/models/update_organization_region_quota.py +189 -0
  263. northrays_api_client/models/update_organization_role.py +107 -0
  264. northrays_api_client/models/update_region.py +122 -0
  265. northrays_api_client/models/update_sandbox_network_settings.py +107 -0
  266. northrays_api_client/models/update_sandbox_state_dto.py +107 -0
  267. northrays_api_client/models/url.py +103 -0
  268. northrays_api_client/models/user.py +120 -0
  269. northrays_api_client/models/user_home_dir_response.py +103 -0
  270. northrays_api_client/models/user_public_key.py +105 -0
  271. northrays_api_client/models/volume_dto.py +128 -0
  272. northrays_api_client/models/volume_state.py +48 -0
  273. northrays_api_client/models/webhook_app_portal_access.py +105 -0
  274. northrays_api_client/models/webhook_event.py +48 -0
  275. northrays_api_client/models/webhook_initialization_status.py +123 -0
  276. northrays_api_client/models/windows_response.py +105 -0
  277. northrays_api_client/models/work_dir_response.py +103 -0
  278. northrays_api_client/py.typed +0 -0
  279. northrays_api_client/rest.py +264 -0
  280. northrays_api_client_async/__init__.py +684 -0
  281. northrays_api_client_async/api/__init__.py +64 -0
  282. northrays_api_client_async/api/admin_api.py +5998 -0
  283. northrays_api_client_async/api/api_keys_api.py +1672 -0
  284. northrays_api_client_async/api/audit_api.py +402 -0
  285. northrays_api_client_async/api/config_api.py +278 -0
  286. northrays_api_client_async/api/docker_registry_api.py +1707 -0
  287. northrays_api_client_async/api/health_api.py +517 -0
  288. northrays_api_client_async/api/jobs_api.py +1185 -0
  289. northrays_api_client_async/api/object_storage_api.py +298 -0
  290. northrays_api_client_async/api/organizations_api.py +10857 -0
  291. northrays_api_client_async/api/preview_api.py +1104 -0
  292. northrays_api_client_async/api/regions_api.py +279 -0
  293. northrays_api_client_async/api/runners_api.py +2987 -0
  294. northrays_api_client_async/api/sandbox_api.py +12813 -0
  295. northrays_api_client_async/api/snapshots_api.py +2331 -0
  296. northrays_api_client_async/api/toolbox_api.py +20758 -0
  297. northrays_api_client_async/api/users_api.py +1304 -0
  298. northrays_api_client_async/api/volumes_api.py +1421 -0
  299. northrays_api_client_async/api/webhooks_api.py +1135 -0
  300. northrays_api_client_async/api_client.py +813 -0
  301. northrays_api_client_async/api_response.py +21 -0
  302. northrays_api_client_async/configuration.py +605 -0
  303. northrays_api_client_async/exceptions.py +219 -0
  304. northrays_api_client_async/models/__init__.py +405 -0
  305. northrays_api_client_async/models/account_provider.py +105 -0
  306. northrays_api_client_async/models/admin_create_runner.py +131 -0
  307. northrays_api_client_async/models/admin_get_webhook_status200_response.py +103 -0
  308. northrays_api_client_async/models/announcement.py +105 -0
  309. northrays_api_client_async/models/api_key_list.py +126 -0
  310. northrays_api_client_async/models/api_key_response.py +117 -0
  311. northrays_api_client_async/models/audit_log.py +134 -0
  312. northrays_api_client_async/models/build_info.py +112 -0
  313. northrays_api_client_async/models/command.py +107 -0
  314. northrays_api_client_async/models/completion_context.py +105 -0
  315. northrays_api_client_async/models/completion_item.py +115 -0
  316. northrays_api_client_async/models/completion_list.py +113 -0
  317. northrays_api_client_async/models/compressed_screenshot_response.py +107 -0
  318. northrays_api_client_async/models/computer_use_start_response.py +105 -0
  319. northrays_api_client_async/models/computer_use_status_response.py +103 -0
  320. northrays_api_client_async/models/computer_use_stop_response.py +105 -0
  321. northrays_api_client_async/models/create_api_key.py +113 -0
  322. northrays_api_client_async/models/create_build_info.py +105 -0
  323. northrays_api_client_async/models/create_docker_registry.py +111 -0
  324. northrays_api_client_async/models/create_linked_account.py +105 -0
  325. northrays_api_client_async/models/create_organization.py +105 -0
  326. northrays_api_client_async/models/create_organization_invitation.py +110 -0
  327. northrays_api_client_async/models/create_organization_quota.py +119 -0
  328. northrays_api_client_async/models/create_organization_region_quota.py +169 -0
  329. northrays_api_client_async/models/create_organization_role.py +107 -0
  330. northrays_api_client_async/models/create_region.py +124 -0
  331. northrays_api_client_async/models/create_region_response.py +131 -0
  332. northrays_api_client_async/models/create_runner.py +107 -0
  333. northrays_api_client_async/models/create_runner_response.py +105 -0
  334. northrays_api_client_async/models/create_sandbox.py +156 -0
  335. northrays_api_client_async/models/create_sandbox_snapshot.py +105 -0
  336. northrays_api_client_async/models/create_session_request.py +103 -0
  337. northrays_api_client_async/models/create_snapshot.py +129 -0
  338. northrays_api_client_async/models/create_user.py +119 -0
  339. northrays_api_client_async/models/create_volume.py +103 -0
  340. northrays_api_client_async/models/display_info_response.py +103 -0
  341. northrays_api_client_async/models/docker_registry.py +118 -0
  342. northrays_api_client_async/models/download_files.py +103 -0
  343. northrays_api_client_async/models/execute_request.py +107 -0
  344. northrays_api_client_async/models/execute_response.py +105 -0
  345. northrays_api_client_async/models/file_info.py +117 -0
  346. northrays_api_client_async/models/file_status.py +109 -0
  347. northrays_api_client_async/models/fork_sandbox.py +103 -0
  348. northrays_api_client_async/models/git_add_request.py +105 -0
  349. northrays_api_client_async/models/git_branch_request.py +105 -0
  350. northrays_api_client_async/models/git_checkout_request.py +105 -0
  351. northrays_api_client_async/models/git_clone_request.py +113 -0
  352. northrays_api_client_async/models/git_commit_info.py +111 -0
  353. northrays_api_client_async/models/git_commit_request.py +111 -0
  354. northrays_api_client_async/models/git_commit_response.py +103 -0
  355. northrays_api_client_async/models/git_delete_branch_request.py +105 -0
  356. northrays_api_client_async/models/git_repo_request.py +107 -0
  357. northrays_api_client_async/models/git_status.py +119 -0
  358. northrays_api_client_async/models/gpu_type.py +43 -0
  359. northrays_api_client_async/models/health_controller_check200_response.py +156 -0
  360. northrays_api_client_async/models/health_controller_check200_response_info_value.py +103 -0
  361. northrays_api_client_async/models/health_controller_check503_response.py +156 -0
  362. northrays_api_client_async/models/job.py +123 -0
  363. northrays_api_client_async/models/job_status.py +45 -0
  364. northrays_api_client_async/models/job_type.py +56 -0
  365. northrays_api_client_async/models/keyboard_hotkey_request.py +103 -0
  366. northrays_api_client_async/models/keyboard_press_request.py +105 -0
  367. northrays_api_client_async/models/keyboard_type_request.py +105 -0
  368. northrays_api_client_async/models/list_branch_response.py +103 -0
  369. northrays_api_client_async/models/list_sandboxes_response.py +118 -0
  370. northrays_api_client_async/models/log_entry.py +119 -0
  371. northrays_api_client_async/models/lsp_completion_params.py +119 -0
  372. northrays_api_client_async/models/lsp_document_request.py +107 -0
  373. northrays_api_client_async/models/lsp_location.py +109 -0
  374. northrays_api_client_async/models/lsp_server_request.py +105 -0
  375. northrays_api_client_async/models/lsp_symbol.py +111 -0
  376. northrays_api_client_async/models/match.py +107 -0
  377. northrays_api_client_async/models/metric_data_point.py +105 -0
  378. northrays_api_client_async/models/metric_series.py +113 -0
  379. northrays_api_client_async/models/metrics_response.py +111 -0
  380. northrays_api_client_async/models/mouse_click_request.py +109 -0
  381. northrays_api_client_async/models/mouse_click_response.py +105 -0
  382. northrays_api_client_async/models/mouse_drag_request.py +111 -0
  383. northrays_api_client_async/models/mouse_drag_response.py +105 -0
  384. northrays_api_client_async/models/mouse_move_request.py +105 -0
  385. northrays_api_client_async/models/mouse_move_response.py +105 -0
  386. northrays_api_client_async/models/mouse_position.py +105 -0
  387. northrays_api_client_async/models/mouse_scroll_request.py +109 -0
  388. northrays_api_client_async/models/mouse_scroll_response.py +103 -0
  389. northrays_api_client_async/models/northrays_configuration.py +162 -0
  390. northrays_api_client_async/models/oidc_config.py +107 -0
  391. northrays_api_client_async/models/organization.py +191 -0
  392. northrays_api_client_async/models/organization_invitation.py +132 -0
  393. northrays_api_client_async/models/organization_role.py +116 -0
  394. northrays_api_client_async/models/organization_sandbox_default_limited_network_egress.py +103 -0
  395. northrays_api_client_async/models/organization_suspension.py +109 -0
  396. northrays_api_client_async/models/organization_usage_overview.py +119 -0
  397. northrays_api_client_async/models/organization_user.py +126 -0
  398. northrays_api_client_async/models/otel_config.py +110 -0
  399. northrays_api_client_async/models/paginated_audit_logs.py +119 -0
  400. northrays_api_client_async/models/paginated_jobs.py +117 -0
  401. northrays_api_client_async/models/paginated_logs.py +117 -0
  402. northrays_api_client_async/models/paginated_sandboxes_deprecated.py +117 -0
  403. northrays_api_client_async/models/paginated_snapshots.py +117 -0
  404. northrays_api_client_async/models/paginated_traces.py +117 -0
  405. northrays_api_client_async/models/poll_jobs_response.py +111 -0
  406. northrays_api_client_async/models/port_preview_url.py +107 -0
  407. northrays_api_client_async/models/position.py +105 -0
  408. northrays_api_client_async/models/posthog_config.py +105 -0
  409. northrays_api_client_async/models/process_errors_response.py +105 -0
  410. northrays_api_client_async/models/process_logs_response.py +105 -0
  411. northrays_api_client_async/models/process_restart_response.py +105 -0
  412. northrays_api_client_async/models/process_status_response.py +105 -0
  413. northrays_api_client_async/models/project_dir_response.py +103 -0
  414. northrays_api_client_async/models/pty_create_request.py +113 -0
  415. northrays_api_client_async/models/pty_create_response.py +103 -0
  416. northrays_api_client_async/models/pty_list_response.py +111 -0
  417. northrays_api_client_async/models/pty_resize_request.py +105 -0
  418. northrays_api_client_async/models/pty_session_info.py +117 -0
  419. northrays_api_client_async/models/range.py +112 -0
  420. northrays_api_client_async/models/rate_limit_config.py +122 -0
  421. northrays_api_client_async/models/rate_limit_entry.py +105 -0
  422. northrays_api_client_async/models/regenerate_api_key_response.py +103 -0
  423. northrays_api_client_async/models/region.py +140 -0
  424. northrays_api_client_async/models/region_quota.py +168 -0
  425. northrays_api_client_async/models/region_screenshot_response.py +107 -0
  426. northrays_api_client_async/models/region_type.py +44 -0
  427. northrays_api_client_async/models/region_usage_overview.py +174 -0
  428. northrays_api_client_async/models/registry_push_access_dto.py +113 -0
  429. northrays_api_client_async/models/replace_request.py +107 -0
  430. northrays_api_client_async/models/replace_result.py +107 -0
  431. northrays_api_client_async/models/resize_sandbox.py +108 -0
  432. northrays_api_client_async/models/runner.py +166 -0
  433. northrays_api_client_async/models/runner_class.py +42 -0
  434. northrays_api_client_async/models/runner_full.py +171 -0
  435. northrays_api_client_async/models/runner_health_metrics.py +129 -0
  436. northrays_api_client_async/models/runner_healthcheck.py +125 -0
  437. northrays_api_client_async/models/runner_service_health.py +107 -0
  438. northrays_api_client_async/models/runner_snapshot_dto.py +107 -0
  439. northrays_api_client_async/models/runner_state.py +46 -0
  440. northrays_api_client_async/models/sandbox.py +188 -0
  441. northrays_api_client_async/models/sandbox_class.py +45 -0
  442. northrays_api_client_async/models/sandbox_desired_state.py +47 -0
  443. northrays_api_client_async/models/sandbox_labels.py +103 -0
  444. northrays_api_client_async/models/sandbox_list_item.py +161 -0
  445. northrays_api_client_async/models/sandbox_list_sort_direction.py +43 -0
  446. northrays_api_client_async/models/sandbox_list_sort_field.py +47 -0
  447. northrays_api_client_async/models/sandbox_state.py +63 -0
  448. northrays_api_client_async/models/sandbox_volume.py +107 -0
  449. northrays_api_client_async/models/screenshot_response.py +107 -0
  450. northrays_api_client_async/models/search_files_response.py +103 -0
  451. northrays_api_client_async/models/send_webhook_dto.py +108 -0
  452. northrays_api_client_async/models/session.py +118 -0
  453. northrays_api_client_async/models/session_execute_request.py +107 -0
  454. northrays_api_client_async/models/session_execute_response.py +107 -0
  455. northrays_api_client_async/models/set_snapshot_general_status_dto.py +103 -0
  456. northrays_api_client_async/models/signed_port_preview_url.py +109 -0
  457. northrays_api_client_async/models/snapshot_dto.py +172 -0
  458. northrays_api_client_async/models/snapshot_manager_credentials.py +105 -0
  459. northrays_api_client_async/models/snapshot_state.py +49 -0
  460. northrays_api_client_async/models/ssh_access_dto.py +116 -0
  461. northrays_api_client_async/models/ssh_access_validation_dto.py +105 -0
  462. northrays_api_client_async/models/storage_access_dto.py +113 -0
  463. northrays_api_client_async/models/toolbox_proxy_url.py +103 -0
  464. northrays_api_client_async/models/trace_span.py +119 -0
  465. northrays_api_client_async/models/trace_summary.py +115 -0
  466. northrays_api_client_async/models/update_docker_registry.py +111 -0
  467. northrays_api_client_async/models/update_job_status.py +108 -0
  468. northrays_api_client_async/models/update_organization_default_region.py +103 -0
  469. northrays_api_client_async/models/update_organization_invitation.py +108 -0
  470. northrays_api_client_async/models/update_organization_member_access.py +105 -0
  471. northrays_api_client_async/models/update_organization_quota.py +192 -0
  472. northrays_api_client_async/models/update_organization_region_quota.py +189 -0
  473. northrays_api_client_async/models/update_organization_role.py +107 -0
  474. northrays_api_client_async/models/update_region.py +122 -0
  475. northrays_api_client_async/models/update_sandbox_network_settings.py +107 -0
  476. northrays_api_client_async/models/update_sandbox_state_dto.py +107 -0
  477. northrays_api_client_async/models/url.py +103 -0
  478. northrays_api_client_async/models/user.py +120 -0
  479. northrays_api_client_async/models/user_home_dir_response.py +103 -0
  480. northrays_api_client_async/models/user_public_key.py +105 -0
  481. northrays_api_client_async/models/volume_dto.py +128 -0
  482. northrays_api_client_async/models/volume_state.py +48 -0
  483. northrays_api_client_async/models/webhook_app_portal_access.py +105 -0
  484. northrays_api_client_async/models/webhook_event.py +48 -0
  485. northrays_api_client_async/models/webhook_initialization_status.py +123 -0
  486. northrays_api_client_async/models/windows_response.py +105 -0
  487. northrays_api_client_async/models/work_dir_response.py +103 -0
  488. northrays_api_client_async/py.typed +0 -0
  489. northrays_api_client_async/rest.py +227 -0
  490. northrays_toolbox_api_client/__init__.py +386 -0
  491. northrays_toolbox_api_client/api/__init__.py +46 -0
  492. northrays_toolbox_api_client/api/computer_use_api.py +9075 -0
  493. northrays_toolbox_api_client/api/file_system_api.py +3583 -0
  494. northrays_toolbox_api_client/api/git_api.py +2969 -0
  495. northrays_toolbox_api_client/api/info_api.py +773 -0
  496. northrays_toolbox_api_client/api/interpreter_api.py +1075 -0
  497. northrays_toolbox_api_client/api/lsp_api.py +1971 -0
  498. northrays_toolbox_api_client/api/port_api.py +543 -0
  499. northrays_toolbox_api_client/api/process_api.py +4865 -0
  500. northrays_toolbox_api_client/api/server_api.py +298 -0
  501. northrays_toolbox_api_client/api_client.py +809 -0
  502. northrays_toolbox_api_client/api_response.py +21 -0
  503. northrays_toolbox_api_client/configuration.py +626 -0
  504. northrays_toolbox_api_client/exceptions.py +218 -0
  505. northrays_toolbox_api_client/models/__init__.py +224 -0
  506. northrays_toolbox_api_client/models/accessibility_bounds.py +108 -0
  507. northrays_toolbox_api_client/models/accessibility_invoke_request.py +104 -0
  508. northrays_toolbox_api_client/models/accessibility_node_request.py +102 -0
  509. northrays_toolbox_api_client/models/accessibility_nodes_response.py +112 -0
  510. northrays_toolbox_api_client/models/accessibility_set_value_request.py +104 -0
  511. northrays_toolbox_api_client/models/accessibility_tree_response.py +108 -0
  512. northrays_toolbox_api_client/models/chart.py +132 -0
  513. northrays_toolbox_api_client/models/chart_element.py +134 -0
  514. northrays_toolbox_api_client/models/code_run_artifacts.py +110 -0
  515. northrays_toolbox_api_client/models/code_run_request.py +110 -0
  516. northrays_toolbox_api_client/models/code_run_response.py +110 -0
  517. northrays_toolbox_api_client/models/command.py +106 -0
  518. northrays_toolbox_api_client/models/completion_context.py +104 -0
  519. northrays_toolbox_api_client/models/completion_item.py +114 -0
  520. northrays_toolbox_api_client/models/completion_list.py +112 -0
  521. northrays_toolbox_api_client/models/computer_use_accessibility_node.py +129 -0
  522. northrays_toolbox_api_client/models/computer_use_start_response.py +117 -0
  523. northrays_toolbox_api_client/models/computer_use_status_response.py +102 -0
  524. northrays_toolbox_api_client/models/computer_use_stop_response.py +117 -0
  525. northrays_toolbox_api_client/models/create_context_request.py +104 -0
  526. northrays_toolbox_api_client/models/create_session_request.py +102 -0
  527. northrays_toolbox_api_client/models/display_info.py +112 -0
  528. northrays_toolbox_api_client/models/display_info_response.py +110 -0
  529. northrays_toolbox_api_client/models/execute_request.py +108 -0
  530. northrays_toolbox_api_client/models/execute_response.py +104 -0
  531. northrays_toolbox_api_client/models/file_info.py +118 -0
  532. northrays_toolbox_api_client/models/file_status.py +109 -0
  533. northrays_toolbox_api_client/models/files_download_request.py +102 -0
  534. northrays_toolbox_api_client/models/find_accessibility_nodes_request.py +114 -0
  535. northrays_toolbox_api_client/models/git_add_request.py +104 -0
  536. northrays_toolbox_api_client/models/git_branch_request.py +104 -0
  537. northrays_toolbox_api_client/models/git_checkout_request.py +104 -0
  538. northrays_toolbox_api_client/models/git_clone_request.py +114 -0
  539. northrays_toolbox_api_client/models/git_commit_info.py +110 -0
  540. northrays_toolbox_api_client/models/git_commit_request.py +110 -0
  541. northrays_toolbox_api_client/models/git_commit_response.py +102 -0
  542. northrays_toolbox_api_client/models/git_delete_branch_request.py +104 -0
  543. northrays_toolbox_api_client/models/git_repo_request.py +106 -0
  544. northrays_toolbox_api_client/models/git_status.py +118 -0
  545. northrays_toolbox_api_client/models/initialize_request.py +102 -0
  546. northrays_toolbox_api_client/models/interpreter_context.py +110 -0
  547. northrays_toolbox_api_client/models/is_port_in_use_response.py +102 -0
  548. northrays_toolbox_api_client/models/keyboard_hotkey_request.py +102 -0
  549. northrays_toolbox_api_client/models/keyboard_press_request.py +104 -0
  550. northrays_toolbox_api_client/models/keyboard_type_request.py +104 -0
  551. northrays_toolbox_api_client/models/list_branch_response.py +102 -0
  552. northrays_toolbox_api_client/models/list_contexts_response.py +110 -0
  553. northrays_toolbox_api_client/models/list_recordings_response.py +110 -0
  554. northrays_toolbox_api_client/models/lsp_completion_params.py +118 -0
  555. northrays_toolbox_api_client/models/lsp_document_request.py +106 -0
  556. northrays_toolbox_api_client/models/lsp_location.py +108 -0
  557. northrays_toolbox_api_client/models/lsp_position.py +104 -0
  558. northrays_toolbox_api_client/models/lsp_range.py +111 -0
  559. northrays_toolbox_api_client/models/lsp_server_request.py +104 -0
  560. northrays_toolbox_api_client/models/lsp_symbol.py +110 -0
  561. northrays_toolbox_api_client/models/match.py +106 -0
  562. northrays_toolbox_api_client/models/mouse_click_request.py +108 -0
  563. northrays_toolbox_api_client/models/mouse_click_response.py +104 -0
  564. northrays_toolbox_api_client/models/mouse_drag_request.py +110 -0
  565. northrays_toolbox_api_client/models/mouse_drag_response.py +104 -0
  566. northrays_toolbox_api_client/models/mouse_move_request.py +104 -0
  567. northrays_toolbox_api_client/models/mouse_position_response.py +104 -0
  568. northrays_toolbox_api_client/models/mouse_scroll_request.py +109 -0
  569. northrays_toolbox_api_client/models/port_list.py +102 -0
  570. northrays_toolbox_api_client/models/position.py +104 -0
  571. northrays_toolbox_api_client/models/process_errors_response.py +104 -0
  572. northrays_toolbox_api_client/models/process_logs_response.py +104 -0
  573. northrays_toolbox_api_client/models/process_restart_response.py +104 -0
  574. northrays_toolbox_api_client/models/process_status.py +108 -0
  575. northrays_toolbox_api_client/models/process_status_response.py +104 -0
  576. northrays_toolbox_api_client/models/pty_create_request.py +112 -0
  577. northrays_toolbox_api_client/models/pty_create_response.py +102 -0
  578. northrays_toolbox_api_client/models/pty_list_response.py +110 -0
  579. northrays_toolbox_api_client/models/pty_resize_request.py +105 -0
  580. northrays_toolbox_api_client/models/pty_session_info.py +116 -0
  581. northrays_toolbox_api_client/models/recording.py +116 -0
  582. northrays_toolbox_api_client/models/replace_request.py +106 -0
  583. northrays_toolbox_api_client/models/replace_result.py +106 -0
  584. northrays_toolbox_api_client/models/screenshot_response.py +110 -0
  585. northrays_toolbox_api_client/models/scroll_response.py +102 -0
  586. northrays_toolbox_api_client/models/search_files_response.py +102 -0
  587. northrays_toolbox_api_client/models/session.py +112 -0
  588. northrays_toolbox_api_client/models/session_command_logs_response.py +106 -0
  589. northrays_toolbox_api_client/models/session_execute_request.py +108 -0
  590. northrays_toolbox_api_client/models/session_execute_response.py +110 -0
  591. northrays_toolbox_api_client/models/session_send_input_request.py +102 -0
  592. northrays_toolbox_api_client/models/start_recording_request.py +102 -0
  593. northrays_toolbox_api_client/models/status.py +48 -0
  594. northrays_toolbox_api_client/models/stop_recording_request.py +102 -0
  595. northrays_toolbox_api_client/models/user_home_dir_response.py +102 -0
  596. northrays_toolbox_api_client/models/window_info.py +114 -0
  597. northrays_toolbox_api_client/models/windows_response.py +110 -0
  598. northrays_toolbox_api_client/models/work_dir_response.py +102 -0
  599. northrays_toolbox_api_client/py.typed +0 -0
  600. northrays_toolbox_api_client/rest.py +263 -0
  601. northrays_toolbox_api_client_async/__init__.py +386 -0
  602. northrays_toolbox_api_client_async/api/__init__.py +46 -0
  603. northrays_toolbox_api_client_async/api/computer_use_api.py +9075 -0
  604. northrays_toolbox_api_client_async/api/file_system_api.py +3583 -0
  605. northrays_toolbox_api_client_async/api/git_api.py +2969 -0
  606. northrays_toolbox_api_client_async/api/info_api.py +773 -0
  607. northrays_toolbox_api_client_async/api/interpreter_api.py +1075 -0
  608. northrays_toolbox_api_client_async/api/lsp_api.py +1971 -0
  609. northrays_toolbox_api_client_async/api/port_api.py +543 -0
  610. northrays_toolbox_api_client_async/api/process_api.py +4865 -0
  611. northrays_toolbox_api_client_async/api/server_api.py +298 -0
  612. northrays_toolbox_api_client_async/api_client.py +812 -0
  613. northrays_toolbox_api_client_async/api_response.py +21 -0
  614. northrays_toolbox_api_client_async/configuration.py +624 -0
  615. northrays_toolbox_api_client_async/exceptions.py +218 -0
  616. northrays_toolbox_api_client_async/models/__init__.py +224 -0
  617. northrays_toolbox_api_client_async/models/accessibility_bounds.py +108 -0
  618. northrays_toolbox_api_client_async/models/accessibility_invoke_request.py +104 -0
  619. northrays_toolbox_api_client_async/models/accessibility_node_request.py +102 -0
  620. northrays_toolbox_api_client_async/models/accessibility_nodes_response.py +112 -0
  621. northrays_toolbox_api_client_async/models/accessibility_set_value_request.py +104 -0
  622. northrays_toolbox_api_client_async/models/accessibility_tree_response.py +108 -0
  623. northrays_toolbox_api_client_async/models/chart.py +132 -0
  624. northrays_toolbox_api_client_async/models/chart_element.py +134 -0
  625. northrays_toolbox_api_client_async/models/code_run_artifacts.py +110 -0
  626. northrays_toolbox_api_client_async/models/code_run_request.py +110 -0
  627. northrays_toolbox_api_client_async/models/code_run_response.py +110 -0
  628. northrays_toolbox_api_client_async/models/command.py +106 -0
  629. northrays_toolbox_api_client_async/models/completion_context.py +104 -0
  630. northrays_toolbox_api_client_async/models/completion_item.py +114 -0
  631. northrays_toolbox_api_client_async/models/completion_list.py +112 -0
  632. northrays_toolbox_api_client_async/models/computer_use_accessibility_node.py +129 -0
  633. northrays_toolbox_api_client_async/models/computer_use_start_response.py +117 -0
  634. northrays_toolbox_api_client_async/models/computer_use_status_response.py +102 -0
  635. northrays_toolbox_api_client_async/models/computer_use_stop_response.py +117 -0
  636. northrays_toolbox_api_client_async/models/create_context_request.py +104 -0
  637. northrays_toolbox_api_client_async/models/create_session_request.py +102 -0
  638. northrays_toolbox_api_client_async/models/display_info.py +112 -0
  639. northrays_toolbox_api_client_async/models/display_info_response.py +110 -0
  640. northrays_toolbox_api_client_async/models/execute_request.py +108 -0
  641. northrays_toolbox_api_client_async/models/execute_response.py +104 -0
  642. northrays_toolbox_api_client_async/models/file_info.py +118 -0
  643. northrays_toolbox_api_client_async/models/file_status.py +109 -0
  644. northrays_toolbox_api_client_async/models/files_download_request.py +102 -0
  645. northrays_toolbox_api_client_async/models/find_accessibility_nodes_request.py +114 -0
  646. northrays_toolbox_api_client_async/models/git_add_request.py +104 -0
  647. northrays_toolbox_api_client_async/models/git_branch_request.py +104 -0
  648. northrays_toolbox_api_client_async/models/git_checkout_request.py +104 -0
  649. northrays_toolbox_api_client_async/models/git_clone_request.py +114 -0
  650. northrays_toolbox_api_client_async/models/git_commit_info.py +110 -0
  651. northrays_toolbox_api_client_async/models/git_commit_request.py +110 -0
  652. northrays_toolbox_api_client_async/models/git_commit_response.py +102 -0
  653. northrays_toolbox_api_client_async/models/git_delete_branch_request.py +104 -0
  654. northrays_toolbox_api_client_async/models/git_repo_request.py +106 -0
  655. northrays_toolbox_api_client_async/models/git_status.py +118 -0
  656. northrays_toolbox_api_client_async/models/initialize_request.py +102 -0
  657. northrays_toolbox_api_client_async/models/interpreter_context.py +110 -0
  658. northrays_toolbox_api_client_async/models/is_port_in_use_response.py +102 -0
  659. northrays_toolbox_api_client_async/models/keyboard_hotkey_request.py +102 -0
  660. northrays_toolbox_api_client_async/models/keyboard_press_request.py +104 -0
  661. northrays_toolbox_api_client_async/models/keyboard_type_request.py +104 -0
  662. northrays_toolbox_api_client_async/models/list_branch_response.py +102 -0
  663. northrays_toolbox_api_client_async/models/list_contexts_response.py +110 -0
  664. northrays_toolbox_api_client_async/models/list_recordings_response.py +110 -0
  665. northrays_toolbox_api_client_async/models/lsp_completion_params.py +118 -0
  666. northrays_toolbox_api_client_async/models/lsp_document_request.py +106 -0
  667. northrays_toolbox_api_client_async/models/lsp_location.py +108 -0
  668. northrays_toolbox_api_client_async/models/lsp_position.py +104 -0
  669. northrays_toolbox_api_client_async/models/lsp_range.py +111 -0
  670. northrays_toolbox_api_client_async/models/lsp_server_request.py +104 -0
  671. northrays_toolbox_api_client_async/models/lsp_symbol.py +110 -0
  672. northrays_toolbox_api_client_async/models/match.py +106 -0
  673. northrays_toolbox_api_client_async/models/mouse_click_request.py +108 -0
  674. northrays_toolbox_api_client_async/models/mouse_click_response.py +104 -0
  675. northrays_toolbox_api_client_async/models/mouse_drag_request.py +110 -0
  676. northrays_toolbox_api_client_async/models/mouse_drag_response.py +104 -0
  677. northrays_toolbox_api_client_async/models/mouse_move_request.py +104 -0
  678. northrays_toolbox_api_client_async/models/mouse_position_response.py +104 -0
  679. northrays_toolbox_api_client_async/models/mouse_scroll_request.py +109 -0
  680. northrays_toolbox_api_client_async/models/port_list.py +102 -0
  681. northrays_toolbox_api_client_async/models/position.py +104 -0
  682. northrays_toolbox_api_client_async/models/process_errors_response.py +104 -0
  683. northrays_toolbox_api_client_async/models/process_logs_response.py +104 -0
  684. northrays_toolbox_api_client_async/models/process_restart_response.py +104 -0
  685. northrays_toolbox_api_client_async/models/process_status.py +108 -0
  686. northrays_toolbox_api_client_async/models/process_status_response.py +104 -0
  687. northrays_toolbox_api_client_async/models/pty_create_request.py +112 -0
  688. northrays_toolbox_api_client_async/models/pty_create_response.py +102 -0
  689. northrays_toolbox_api_client_async/models/pty_list_response.py +110 -0
  690. northrays_toolbox_api_client_async/models/pty_resize_request.py +105 -0
  691. northrays_toolbox_api_client_async/models/pty_session_info.py +116 -0
  692. northrays_toolbox_api_client_async/models/recording.py +116 -0
  693. northrays_toolbox_api_client_async/models/replace_request.py +106 -0
  694. northrays_toolbox_api_client_async/models/replace_result.py +106 -0
  695. northrays_toolbox_api_client_async/models/screenshot_response.py +110 -0
  696. northrays_toolbox_api_client_async/models/scroll_response.py +102 -0
  697. northrays_toolbox_api_client_async/models/search_files_response.py +102 -0
  698. northrays_toolbox_api_client_async/models/session.py +112 -0
  699. northrays_toolbox_api_client_async/models/session_command_logs_response.py +106 -0
  700. northrays_toolbox_api_client_async/models/session_execute_request.py +108 -0
  701. northrays_toolbox_api_client_async/models/session_execute_response.py +110 -0
  702. northrays_toolbox_api_client_async/models/session_send_input_request.py +102 -0
  703. northrays_toolbox_api_client_async/models/start_recording_request.py +102 -0
  704. northrays_toolbox_api_client_async/models/status.py +48 -0
  705. northrays_toolbox_api_client_async/models/stop_recording_request.py +102 -0
  706. northrays_toolbox_api_client_async/models/user_home_dir_response.py +102 -0
  707. northrays_toolbox_api_client_async/models/window_info.py +114 -0
  708. northrays_toolbox_api_client_async/models/windows_response.py +110 -0
  709. northrays_toolbox_api_client_async/models/work_dir_response.py +102 -0
  710. northrays_toolbox_api_client_async/py.typed +0 -0
  711. northrays_toolbox_api_client_async/rest.py +226 -0
@@ -0,0 +1,1104 @@
1
+ """
2
+ Northrays
3
+
4
+ Northrays AI platform API Docs
5
+
6
+ The version of the OpenAPI document: 1.0
7
+ Contact: support@northrays.com
8
+ Generated by OpenAPI Generator (https://openapi-generator.tech)
9
+
10
+ Do not edit the class manually.
11
+ """ # noqa: E501
12
+
13
+
14
+ import warnings
15
+ from pydantic import validate_call, Field, StrictFloat, StrictStr, StrictInt
16
+ from typing import Any, Dict, List, Optional, Tuple, Union
17
+ from typing_extensions import Annotated
18
+
19
+ from pydantic import Field, StrictBool, StrictFloat, StrictInt, StrictStr
20
+ from typing import Union
21
+ from typing_extensions import Annotated
22
+
23
+ from northrays_api_client.api_client import ApiClient, RequestSerialized
24
+ from northrays_api_client.api_response import ApiResponse
25
+ from northrays_api_client.rest import RESTResponseType
26
+
27
+
28
+ class PreviewApi:
29
+ """NOTE: This class is auto generated by OpenAPI Generator
30
+ Ref: https://openapi-generator.tech
31
+
32
+ Do not edit the class manually.
33
+ """
34
+
35
+ def __init__(self, api_client=None) -> None:
36
+ if api_client is None:
37
+ api_client = ApiClient.get_default()
38
+ self.api_client = api_client
39
+
40
+
41
+ @validate_call
42
+ def get_sandbox_id_from_signed_preview_url_token(
43
+ self,
44
+ signed_preview_token: Annotated[StrictStr, Field(description="Signed preview URL token")],
45
+ port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get sandbox ID from signed preview URL token")],
46
+ _request_timeout: Union[
47
+ None,
48
+ Annotated[StrictFloat, Field(gt=0)],
49
+ Tuple[
50
+ Annotated[StrictFloat, Field(gt=0)],
51
+ Annotated[StrictFloat, Field(gt=0)]
52
+ ]
53
+ ] = None,
54
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
55
+ _content_type: Optional[StrictStr] = None,
56
+ _headers: Optional[Dict[StrictStr, Any]] = None,
57
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
58
+ ) -> str:
59
+ """Get sandbox ID from signed preview URL token
60
+
61
+
62
+ :param signed_preview_token: Signed preview URL token (required)
63
+ :type signed_preview_token: str
64
+ :param port: Port number to get sandbox ID from signed preview URL token (required)
65
+ :type port: float
66
+ :param _request_timeout: timeout setting for this request. If one
67
+ number provided, it will be total request
68
+ timeout. It can also be a pair (tuple) of
69
+ (connection, read) timeouts.
70
+ :type _request_timeout: int, tuple(int, int), optional
71
+ :param _request_auth: set to override the auth_settings for an a single
72
+ request; this effectively ignores the
73
+ authentication in the spec for a single request.
74
+ :type _request_auth: dict, optional
75
+ :param _content_type: force content-type for the request.
76
+ :type _content_type: str, Optional
77
+ :param _headers: set to override the headers for a single
78
+ request; this effectively ignores the headers
79
+ in the spec for a single request.
80
+ :type _headers: dict, optional
81
+ :param _host_index: set to override the host_index for a single
82
+ request; this effectively ignores the host_index
83
+ in the spec for a single request.
84
+ :type _host_index: int, optional
85
+ :return: Returns the result object.
86
+ """ # noqa: E501
87
+
88
+ _param = self._get_sandbox_id_from_signed_preview_url_token_serialize(
89
+ signed_preview_token=signed_preview_token,
90
+ port=port,
91
+ _request_auth=_request_auth,
92
+ _content_type=_content_type,
93
+ _headers=_headers,
94
+ _host_index=_host_index
95
+ )
96
+
97
+ _response_types_map: Dict[str, Optional[str]] = {
98
+ '200': "str",
99
+ }
100
+ response_data = self.api_client.call_api(
101
+ *_param,
102
+ _request_timeout=_request_timeout
103
+ )
104
+ response_data.read()
105
+ return self.api_client.response_deserialize(
106
+ response_data=response_data,
107
+ response_types_map=_response_types_map,
108
+ ).data
109
+
110
+
111
+ @validate_call
112
+ def get_sandbox_id_from_signed_preview_url_token_with_http_info(
113
+ self,
114
+ signed_preview_token: Annotated[StrictStr, Field(description="Signed preview URL token")],
115
+ port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get sandbox ID from signed preview URL token")],
116
+ _request_timeout: Union[
117
+ None,
118
+ Annotated[StrictFloat, Field(gt=0)],
119
+ Tuple[
120
+ Annotated[StrictFloat, Field(gt=0)],
121
+ Annotated[StrictFloat, Field(gt=0)]
122
+ ]
123
+ ] = None,
124
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
125
+ _content_type: Optional[StrictStr] = None,
126
+ _headers: Optional[Dict[StrictStr, Any]] = None,
127
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
128
+ ) -> ApiResponse[str]:
129
+ """Get sandbox ID from signed preview URL token
130
+
131
+
132
+ :param signed_preview_token: Signed preview URL token (required)
133
+ :type signed_preview_token: str
134
+ :param port: Port number to get sandbox ID from signed preview URL token (required)
135
+ :type port: float
136
+ :param _request_timeout: timeout setting for this request. If one
137
+ number provided, it will be total request
138
+ timeout. It can also be a pair (tuple) of
139
+ (connection, read) timeouts.
140
+ :type _request_timeout: int, tuple(int, int), optional
141
+ :param _request_auth: set to override the auth_settings for an a single
142
+ request; this effectively ignores the
143
+ authentication in the spec for a single request.
144
+ :type _request_auth: dict, optional
145
+ :param _content_type: force content-type for the request.
146
+ :type _content_type: str, Optional
147
+ :param _headers: set to override the headers for a single
148
+ request; this effectively ignores the headers
149
+ in the spec for a single request.
150
+ :type _headers: dict, optional
151
+ :param _host_index: set to override the host_index for a single
152
+ request; this effectively ignores the host_index
153
+ in the spec for a single request.
154
+ :type _host_index: int, optional
155
+ :return: Returns the result object.
156
+ """ # noqa: E501
157
+
158
+ _param = self._get_sandbox_id_from_signed_preview_url_token_serialize(
159
+ signed_preview_token=signed_preview_token,
160
+ port=port,
161
+ _request_auth=_request_auth,
162
+ _content_type=_content_type,
163
+ _headers=_headers,
164
+ _host_index=_host_index
165
+ )
166
+
167
+ _response_types_map: Dict[str, Optional[str]] = {
168
+ '200': "str",
169
+ }
170
+ response_data = self.api_client.call_api(
171
+ *_param,
172
+ _request_timeout=_request_timeout
173
+ )
174
+ response_data.read()
175
+ return self.api_client.response_deserialize(
176
+ response_data=response_data,
177
+ response_types_map=_response_types_map,
178
+ )
179
+
180
+
181
+ @validate_call
182
+ def get_sandbox_id_from_signed_preview_url_token_without_preload_content(
183
+ self,
184
+ signed_preview_token: Annotated[StrictStr, Field(description="Signed preview URL token")],
185
+ port: Annotated[Union[StrictFloat, StrictInt], Field(description="Port number to get sandbox ID from signed preview URL token")],
186
+ _request_timeout: Union[
187
+ None,
188
+ Annotated[StrictFloat, Field(gt=0)],
189
+ Tuple[
190
+ Annotated[StrictFloat, Field(gt=0)],
191
+ Annotated[StrictFloat, Field(gt=0)]
192
+ ]
193
+ ] = None,
194
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
195
+ _content_type: Optional[StrictStr] = None,
196
+ _headers: Optional[Dict[StrictStr, Any]] = None,
197
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
198
+ ) -> RESTResponseType:
199
+ """Get sandbox ID from signed preview URL token
200
+
201
+
202
+ :param signed_preview_token: Signed preview URL token (required)
203
+ :type signed_preview_token: str
204
+ :param port: Port number to get sandbox ID from signed preview URL token (required)
205
+ :type port: float
206
+ :param _request_timeout: timeout setting for this request. If one
207
+ number provided, it will be total request
208
+ timeout. It can also be a pair (tuple) of
209
+ (connection, read) timeouts.
210
+ :type _request_timeout: int, tuple(int, int), optional
211
+ :param _request_auth: set to override the auth_settings for an a single
212
+ request; this effectively ignores the
213
+ authentication in the spec for a single request.
214
+ :type _request_auth: dict, optional
215
+ :param _content_type: force content-type for the request.
216
+ :type _content_type: str, Optional
217
+ :param _headers: set to override the headers for a single
218
+ request; this effectively ignores the headers
219
+ in the spec for a single request.
220
+ :type _headers: dict, optional
221
+ :param _host_index: set to override the host_index for a single
222
+ request; this effectively ignores the host_index
223
+ in the spec for a single request.
224
+ :type _host_index: int, optional
225
+ :return: Returns the result object.
226
+ """ # noqa: E501
227
+
228
+ _param = self._get_sandbox_id_from_signed_preview_url_token_serialize(
229
+ signed_preview_token=signed_preview_token,
230
+ port=port,
231
+ _request_auth=_request_auth,
232
+ _content_type=_content_type,
233
+ _headers=_headers,
234
+ _host_index=_host_index
235
+ )
236
+
237
+ _response_types_map: Dict[str, Optional[str]] = {
238
+ '200': "str",
239
+ }
240
+ response_data = self.api_client.call_api(
241
+ *_param,
242
+ _request_timeout=_request_timeout
243
+ )
244
+ return response_data.response
245
+
246
+
247
+ def _get_sandbox_id_from_signed_preview_url_token_serialize(
248
+ self,
249
+ signed_preview_token,
250
+ port,
251
+ _request_auth,
252
+ _content_type,
253
+ _headers,
254
+ _host_index,
255
+ ) -> RequestSerialized:
256
+
257
+ _host = None
258
+
259
+ _collection_formats: Dict[str, str] = {
260
+ }
261
+
262
+ _path_params: Dict[str, str] = {}
263
+ _query_params: List[Tuple[str, str]] = []
264
+ _header_params: Dict[str, Optional[str]] = _headers or {}
265
+ _form_params: List[Tuple[str, str]] = []
266
+ _files: Dict[
267
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
268
+ ] = {}
269
+ _body_params: Optional[bytes] = None
270
+
271
+ # process the path parameters
272
+ if signed_preview_token is not None:
273
+ _path_params['signedPreviewToken'] = signed_preview_token
274
+ if port is not None:
275
+ _path_params['port'] = port
276
+ # process the query parameters
277
+ # process the header parameters
278
+ # process the form parameters
279
+ # process the body parameter
280
+
281
+
282
+ # set the HTTP header `Accept`
283
+ if 'Accept' not in _header_params:
284
+ _header_params['Accept'] = self.api_client.select_header_accept(
285
+ [
286
+ 'application/json'
287
+ ]
288
+ )
289
+
290
+
291
+ # authentication setting
292
+ _auth_settings: List[str] = [
293
+ 'bearer',
294
+ 'oauth2'
295
+ ]
296
+
297
+ return self.api_client.param_serialize(
298
+ method='GET',
299
+ resource_path='/preview/{signedPreviewToken}/{port}/sandbox-id',
300
+ path_params=_path_params,
301
+ query_params=_query_params,
302
+ header_params=_header_params,
303
+ body=_body_params,
304
+ post_params=_form_params,
305
+ files=_files,
306
+ auth_settings=_auth_settings,
307
+ collection_formats=_collection_formats,
308
+ _host=_host,
309
+ _request_auth=_request_auth
310
+ )
311
+
312
+
313
+
314
+
315
+ @validate_call
316
+ def has_sandbox_access(
317
+ self,
318
+ sandbox_id: StrictStr,
319
+ _request_timeout: Union[
320
+ None,
321
+ Annotated[StrictFloat, Field(gt=0)],
322
+ Tuple[
323
+ Annotated[StrictFloat, Field(gt=0)],
324
+ Annotated[StrictFloat, Field(gt=0)]
325
+ ]
326
+ ] = None,
327
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
328
+ _content_type: Optional[StrictStr] = None,
329
+ _headers: Optional[Dict[StrictStr, Any]] = None,
330
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
331
+ ) -> bool:
332
+ """Check if user has access to the sandbox
333
+
334
+
335
+ :param sandbox_id: (required)
336
+ :type sandbox_id: str
337
+ :param _request_timeout: timeout setting for this request. If one
338
+ number provided, it will be total request
339
+ timeout. It can also be a pair (tuple) of
340
+ (connection, read) timeouts.
341
+ :type _request_timeout: int, tuple(int, int), optional
342
+ :param _request_auth: set to override the auth_settings for an a single
343
+ request; this effectively ignores the
344
+ authentication in the spec for a single request.
345
+ :type _request_auth: dict, optional
346
+ :param _content_type: force content-type for the request.
347
+ :type _content_type: str, Optional
348
+ :param _headers: set to override the headers for a single
349
+ request; this effectively ignores the headers
350
+ in the spec for a single request.
351
+ :type _headers: dict, optional
352
+ :param _host_index: set to override the host_index for a single
353
+ request; this effectively ignores the host_index
354
+ in the spec for a single request.
355
+ :type _host_index: int, optional
356
+ :return: Returns the result object.
357
+ """ # noqa: E501
358
+
359
+ _param = self._has_sandbox_access_serialize(
360
+ sandbox_id=sandbox_id,
361
+ _request_auth=_request_auth,
362
+ _content_type=_content_type,
363
+ _headers=_headers,
364
+ _host_index=_host_index
365
+ )
366
+
367
+ _response_types_map: Dict[str, Optional[str]] = {
368
+ '200': "bool",
369
+ }
370
+ response_data = self.api_client.call_api(
371
+ *_param,
372
+ _request_timeout=_request_timeout
373
+ )
374
+ response_data.read()
375
+ return self.api_client.response_deserialize(
376
+ response_data=response_data,
377
+ response_types_map=_response_types_map,
378
+ ).data
379
+
380
+
381
+ @validate_call
382
+ def has_sandbox_access_with_http_info(
383
+ self,
384
+ sandbox_id: StrictStr,
385
+ _request_timeout: Union[
386
+ None,
387
+ Annotated[StrictFloat, Field(gt=0)],
388
+ Tuple[
389
+ Annotated[StrictFloat, Field(gt=0)],
390
+ Annotated[StrictFloat, Field(gt=0)]
391
+ ]
392
+ ] = None,
393
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
394
+ _content_type: Optional[StrictStr] = None,
395
+ _headers: Optional[Dict[StrictStr, Any]] = None,
396
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
397
+ ) -> ApiResponse[bool]:
398
+ """Check if user has access to the sandbox
399
+
400
+
401
+ :param sandbox_id: (required)
402
+ :type sandbox_id: str
403
+ :param _request_timeout: timeout setting for this request. If one
404
+ number provided, it will be total request
405
+ timeout. It can also be a pair (tuple) of
406
+ (connection, read) timeouts.
407
+ :type _request_timeout: int, tuple(int, int), optional
408
+ :param _request_auth: set to override the auth_settings for an a single
409
+ request; this effectively ignores the
410
+ authentication in the spec for a single request.
411
+ :type _request_auth: dict, optional
412
+ :param _content_type: force content-type for the request.
413
+ :type _content_type: str, Optional
414
+ :param _headers: set to override the headers for a single
415
+ request; this effectively ignores the headers
416
+ in the spec for a single request.
417
+ :type _headers: dict, optional
418
+ :param _host_index: set to override the host_index for a single
419
+ request; this effectively ignores the host_index
420
+ in the spec for a single request.
421
+ :type _host_index: int, optional
422
+ :return: Returns the result object.
423
+ """ # noqa: E501
424
+
425
+ _param = self._has_sandbox_access_serialize(
426
+ sandbox_id=sandbox_id,
427
+ _request_auth=_request_auth,
428
+ _content_type=_content_type,
429
+ _headers=_headers,
430
+ _host_index=_host_index
431
+ )
432
+
433
+ _response_types_map: Dict[str, Optional[str]] = {
434
+ '200': "bool",
435
+ }
436
+ response_data = self.api_client.call_api(
437
+ *_param,
438
+ _request_timeout=_request_timeout
439
+ )
440
+ response_data.read()
441
+ return self.api_client.response_deserialize(
442
+ response_data=response_data,
443
+ response_types_map=_response_types_map,
444
+ )
445
+
446
+
447
+ @validate_call
448
+ def has_sandbox_access_without_preload_content(
449
+ self,
450
+ sandbox_id: StrictStr,
451
+ _request_timeout: Union[
452
+ None,
453
+ Annotated[StrictFloat, Field(gt=0)],
454
+ Tuple[
455
+ Annotated[StrictFloat, Field(gt=0)],
456
+ Annotated[StrictFloat, Field(gt=0)]
457
+ ]
458
+ ] = None,
459
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
460
+ _content_type: Optional[StrictStr] = None,
461
+ _headers: Optional[Dict[StrictStr, Any]] = None,
462
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
463
+ ) -> RESTResponseType:
464
+ """Check if user has access to the sandbox
465
+
466
+
467
+ :param sandbox_id: (required)
468
+ :type sandbox_id: str
469
+ :param _request_timeout: timeout setting for this request. If one
470
+ number provided, it will be total request
471
+ timeout. It can also be a pair (tuple) of
472
+ (connection, read) timeouts.
473
+ :type _request_timeout: int, tuple(int, int), optional
474
+ :param _request_auth: set to override the auth_settings for an a single
475
+ request; this effectively ignores the
476
+ authentication in the spec for a single request.
477
+ :type _request_auth: dict, optional
478
+ :param _content_type: force content-type for the request.
479
+ :type _content_type: str, Optional
480
+ :param _headers: set to override the headers for a single
481
+ request; this effectively ignores the headers
482
+ in the spec for a single request.
483
+ :type _headers: dict, optional
484
+ :param _host_index: set to override the host_index for a single
485
+ request; this effectively ignores the host_index
486
+ in the spec for a single request.
487
+ :type _host_index: int, optional
488
+ :return: Returns the result object.
489
+ """ # noqa: E501
490
+
491
+ _param = self._has_sandbox_access_serialize(
492
+ sandbox_id=sandbox_id,
493
+ _request_auth=_request_auth,
494
+ _content_type=_content_type,
495
+ _headers=_headers,
496
+ _host_index=_host_index
497
+ )
498
+
499
+ _response_types_map: Dict[str, Optional[str]] = {
500
+ '200': "bool",
501
+ }
502
+ response_data = self.api_client.call_api(
503
+ *_param,
504
+ _request_timeout=_request_timeout
505
+ )
506
+ return response_data.response
507
+
508
+
509
+ def _has_sandbox_access_serialize(
510
+ self,
511
+ sandbox_id,
512
+ _request_auth,
513
+ _content_type,
514
+ _headers,
515
+ _host_index,
516
+ ) -> RequestSerialized:
517
+
518
+ _host = None
519
+
520
+ _collection_formats: Dict[str, str] = {
521
+ }
522
+
523
+ _path_params: Dict[str, str] = {}
524
+ _query_params: List[Tuple[str, str]] = []
525
+ _header_params: Dict[str, Optional[str]] = _headers or {}
526
+ _form_params: List[Tuple[str, str]] = []
527
+ _files: Dict[
528
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
529
+ ] = {}
530
+ _body_params: Optional[bytes] = None
531
+
532
+ # process the path parameters
533
+ if sandbox_id is not None:
534
+ _path_params['sandboxId'] = sandbox_id
535
+ # process the query parameters
536
+ # process the header parameters
537
+ # process the form parameters
538
+ # process the body parameter
539
+
540
+
541
+ # set the HTTP header `Accept`
542
+ if 'Accept' not in _header_params:
543
+ _header_params['Accept'] = self.api_client.select_header_accept(
544
+ [
545
+ 'application/json'
546
+ ]
547
+ )
548
+
549
+
550
+ # authentication setting
551
+ _auth_settings: List[str] = [
552
+ 'bearer',
553
+ 'oauth2'
554
+ ]
555
+
556
+ return self.api_client.param_serialize(
557
+ method='GET',
558
+ resource_path='/preview/{sandboxId}/access',
559
+ path_params=_path_params,
560
+ query_params=_query_params,
561
+ header_params=_header_params,
562
+ body=_body_params,
563
+ post_params=_form_params,
564
+ files=_files,
565
+ auth_settings=_auth_settings,
566
+ collection_formats=_collection_formats,
567
+ _host=_host,
568
+ _request_auth=_request_auth
569
+ )
570
+
571
+
572
+
573
+
574
+ @validate_call
575
+ def is_sandbox_public(
576
+ self,
577
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
578
+ _request_timeout: Union[
579
+ None,
580
+ Annotated[StrictFloat, Field(gt=0)],
581
+ Tuple[
582
+ Annotated[StrictFloat, Field(gt=0)],
583
+ Annotated[StrictFloat, Field(gt=0)]
584
+ ]
585
+ ] = None,
586
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
587
+ _content_type: Optional[StrictStr] = None,
588
+ _headers: Optional[Dict[StrictStr, Any]] = None,
589
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
590
+ ) -> bool:
591
+ """Check if sandbox is public
592
+
593
+
594
+ :param sandbox_id: ID of the sandbox (required)
595
+ :type sandbox_id: str
596
+ :param _request_timeout: timeout setting for this request. If one
597
+ number provided, it will be total request
598
+ timeout. It can also be a pair (tuple) of
599
+ (connection, read) timeouts.
600
+ :type _request_timeout: int, tuple(int, int), optional
601
+ :param _request_auth: set to override the auth_settings for an a single
602
+ request; this effectively ignores the
603
+ authentication in the spec for a single request.
604
+ :type _request_auth: dict, optional
605
+ :param _content_type: force content-type for the request.
606
+ :type _content_type: str, Optional
607
+ :param _headers: set to override the headers for a single
608
+ request; this effectively ignores the headers
609
+ in the spec for a single request.
610
+ :type _headers: dict, optional
611
+ :param _host_index: set to override the host_index for a single
612
+ request; this effectively ignores the host_index
613
+ in the spec for a single request.
614
+ :type _host_index: int, optional
615
+ :return: Returns the result object.
616
+ """ # noqa: E501
617
+
618
+ _param = self._is_sandbox_public_serialize(
619
+ sandbox_id=sandbox_id,
620
+ _request_auth=_request_auth,
621
+ _content_type=_content_type,
622
+ _headers=_headers,
623
+ _host_index=_host_index
624
+ )
625
+
626
+ _response_types_map: Dict[str, Optional[str]] = {
627
+ '200': "bool",
628
+ }
629
+ response_data = self.api_client.call_api(
630
+ *_param,
631
+ _request_timeout=_request_timeout
632
+ )
633
+ response_data.read()
634
+ return self.api_client.response_deserialize(
635
+ response_data=response_data,
636
+ response_types_map=_response_types_map,
637
+ ).data
638
+
639
+
640
+ @validate_call
641
+ def is_sandbox_public_with_http_info(
642
+ self,
643
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
644
+ _request_timeout: Union[
645
+ None,
646
+ Annotated[StrictFloat, Field(gt=0)],
647
+ Tuple[
648
+ Annotated[StrictFloat, Field(gt=0)],
649
+ Annotated[StrictFloat, Field(gt=0)]
650
+ ]
651
+ ] = None,
652
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
653
+ _content_type: Optional[StrictStr] = None,
654
+ _headers: Optional[Dict[StrictStr, Any]] = None,
655
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
656
+ ) -> ApiResponse[bool]:
657
+ """Check if sandbox is public
658
+
659
+
660
+ :param sandbox_id: ID of the sandbox (required)
661
+ :type sandbox_id: str
662
+ :param _request_timeout: timeout setting for this request. If one
663
+ number provided, it will be total request
664
+ timeout. It can also be a pair (tuple) of
665
+ (connection, read) timeouts.
666
+ :type _request_timeout: int, tuple(int, int), optional
667
+ :param _request_auth: set to override the auth_settings for an a single
668
+ request; this effectively ignores the
669
+ authentication in the spec for a single request.
670
+ :type _request_auth: dict, optional
671
+ :param _content_type: force content-type for the request.
672
+ :type _content_type: str, Optional
673
+ :param _headers: set to override the headers for a single
674
+ request; this effectively ignores the headers
675
+ in the spec for a single request.
676
+ :type _headers: dict, optional
677
+ :param _host_index: set to override the host_index for a single
678
+ request; this effectively ignores the host_index
679
+ in the spec for a single request.
680
+ :type _host_index: int, optional
681
+ :return: Returns the result object.
682
+ """ # noqa: E501
683
+
684
+ _param = self._is_sandbox_public_serialize(
685
+ sandbox_id=sandbox_id,
686
+ _request_auth=_request_auth,
687
+ _content_type=_content_type,
688
+ _headers=_headers,
689
+ _host_index=_host_index
690
+ )
691
+
692
+ _response_types_map: Dict[str, Optional[str]] = {
693
+ '200': "bool",
694
+ }
695
+ response_data = self.api_client.call_api(
696
+ *_param,
697
+ _request_timeout=_request_timeout
698
+ )
699
+ response_data.read()
700
+ return self.api_client.response_deserialize(
701
+ response_data=response_data,
702
+ response_types_map=_response_types_map,
703
+ )
704
+
705
+
706
+ @validate_call
707
+ def is_sandbox_public_without_preload_content(
708
+ self,
709
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
710
+ _request_timeout: Union[
711
+ None,
712
+ Annotated[StrictFloat, Field(gt=0)],
713
+ Tuple[
714
+ Annotated[StrictFloat, Field(gt=0)],
715
+ Annotated[StrictFloat, Field(gt=0)]
716
+ ]
717
+ ] = None,
718
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
719
+ _content_type: Optional[StrictStr] = None,
720
+ _headers: Optional[Dict[StrictStr, Any]] = None,
721
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
722
+ ) -> RESTResponseType:
723
+ """Check if sandbox is public
724
+
725
+
726
+ :param sandbox_id: ID of the sandbox (required)
727
+ :type sandbox_id: str
728
+ :param _request_timeout: timeout setting for this request. If one
729
+ number provided, it will be total request
730
+ timeout. It can also be a pair (tuple) of
731
+ (connection, read) timeouts.
732
+ :type _request_timeout: int, tuple(int, int), optional
733
+ :param _request_auth: set to override the auth_settings for an a single
734
+ request; this effectively ignores the
735
+ authentication in the spec for a single request.
736
+ :type _request_auth: dict, optional
737
+ :param _content_type: force content-type for the request.
738
+ :type _content_type: str, Optional
739
+ :param _headers: set to override the headers for a single
740
+ request; this effectively ignores the headers
741
+ in the spec for a single request.
742
+ :type _headers: dict, optional
743
+ :param _host_index: set to override the host_index for a single
744
+ request; this effectively ignores the host_index
745
+ in the spec for a single request.
746
+ :type _host_index: int, optional
747
+ :return: Returns the result object.
748
+ """ # noqa: E501
749
+
750
+ _param = self._is_sandbox_public_serialize(
751
+ sandbox_id=sandbox_id,
752
+ _request_auth=_request_auth,
753
+ _content_type=_content_type,
754
+ _headers=_headers,
755
+ _host_index=_host_index
756
+ )
757
+
758
+ _response_types_map: Dict[str, Optional[str]] = {
759
+ '200': "bool",
760
+ }
761
+ response_data = self.api_client.call_api(
762
+ *_param,
763
+ _request_timeout=_request_timeout
764
+ )
765
+ return response_data.response
766
+
767
+
768
+ def _is_sandbox_public_serialize(
769
+ self,
770
+ sandbox_id,
771
+ _request_auth,
772
+ _content_type,
773
+ _headers,
774
+ _host_index,
775
+ ) -> RequestSerialized:
776
+
777
+ _host = None
778
+
779
+ _collection_formats: Dict[str, str] = {
780
+ }
781
+
782
+ _path_params: Dict[str, str] = {}
783
+ _query_params: List[Tuple[str, str]] = []
784
+ _header_params: Dict[str, Optional[str]] = _headers or {}
785
+ _form_params: List[Tuple[str, str]] = []
786
+ _files: Dict[
787
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
788
+ ] = {}
789
+ _body_params: Optional[bytes] = None
790
+
791
+ # process the path parameters
792
+ if sandbox_id is not None:
793
+ _path_params['sandboxId'] = sandbox_id
794
+ # process the query parameters
795
+ # process the header parameters
796
+ # process the form parameters
797
+ # process the body parameter
798
+
799
+
800
+ # set the HTTP header `Accept`
801
+ if 'Accept' not in _header_params:
802
+ _header_params['Accept'] = self.api_client.select_header_accept(
803
+ [
804
+ 'application/json'
805
+ ]
806
+ )
807
+
808
+
809
+ # authentication setting
810
+ _auth_settings: List[str] = [
811
+ 'bearer',
812
+ 'oauth2'
813
+ ]
814
+
815
+ return self.api_client.param_serialize(
816
+ method='GET',
817
+ resource_path='/preview/{sandboxId}/public',
818
+ path_params=_path_params,
819
+ query_params=_query_params,
820
+ header_params=_header_params,
821
+ body=_body_params,
822
+ post_params=_form_params,
823
+ files=_files,
824
+ auth_settings=_auth_settings,
825
+ collection_formats=_collection_formats,
826
+ _host=_host,
827
+ _request_auth=_request_auth
828
+ )
829
+
830
+
831
+
832
+
833
+ @validate_call
834
+ def is_valid_auth_token(
835
+ self,
836
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
837
+ auth_token: Annotated[StrictStr, Field(description="Auth token of the sandbox")],
838
+ _request_timeout: Union[
839
+ None,
840
+ Annotated[StrictFloat, Field(gt=0)],
841
+ Tuple[
842
+ Annotated[StrictFloat, Field(gt=0)],
843
+ Annotated[StrictFloat, Field(gt=0)]
844
+ ]
845
+ ] = None,
846
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
847
+ _content_type: Optional[StrictStr] = None,
848
+ _headers: Optional[Dict[StrictStr, Any]] = None,
849
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
850
+ ) -> bool:
851
+ """Check if sandbox auth token is valid
852
+
853
+
854
+ :param sandbox_id: ID of the sandbox (required)
855
+ :type sandbox_id: str
856
+ :param auth_token: Auth token of the sandbox (required)
857
+ :type auth_token: str
858
+ :param _request_timeout: timeout setting for this request. If one
859
+ number provided, it will be total request
860
+ timeout. It can also be a pair (tuple) of
861
+ (connection, read) timeouts.
862
+ :type _request_timeout: int, tuple(int, int), optional
863
+ :param _request_auth: set to override the auth_settings for an a single
864
+ request; this effectively ignores the
865
+ authentication in the spec for a single request.
866
+ :type _request_auth: dict, optional
867
+ :param _content_type: force content-type for the request.
868
+ :type _content_type: str, Optional
869
+ :param _headers: set to override the headers for a single
870
+ request; this effectively ignores the headers
871
+ in the spec for a single request.
872
+ :type _headers: dict, optional
873
+ :param _host_index: set to override the host_index for a single
874
+ request; this effectively ignores the host_index
875
+ in the spec for a single request.
876
+ :type _host_index: int, optional
877
+ :return: Returns the result object.
878
+ """ # noqa: E501
879
+
880
+ _param = self._is_valid_auth_token_serialize(
881
+ sandbox_id=sandbox_id,
882
+ auth_token=auth_token,
883
+ _request_auth=_request_auth,
884
+ _content_type=_content_type,
885
+ _headers=_headers,
886
+ _host_index=_host_index
887
+ )
888
+
889
+ _response_types_map: Dict[str, Optional[str]] = {
890
+ '200': "bool",
891
+ }
892
+ response_data = self.api_client.call_api(
893
+ *_param,
894
+ _request_timeout=_request_timeout
895
+ )
896
+ response_data.read()
897
+ return self.api_client.response_deserialize(
898
+ response_data=response_data,
899
+ response_types_map=_response_types_map,
900
+ ).data
901
+
902
+
903
+ @validate_call
904
+ def is_valid_auth_token_with_http_info(
905
+ self,
906
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
907
+ auth_token: Annotated[StrictStr, Field(description="Auth token of the sandbox")],
908
+ _request_timeout: Union[
909
+ None,
910
+ Annotated[StrictFloat, Field(gt=0)],
911
+ Tuple[
912
+ Annotated[StrictFloat, Field(gt=0)],
913
+ Annotated[StrictFloat, Field(gt=0)]
914
+ ]
915
+ ] = None,
916
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
917
+ _content_type: Optional[StrictStr] = None,
918
+ _headers: Optional[Dict[StrictStr, Any]] = None,
919
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
920
+ ) -> ApiResponse[bool]:
921
+ """Check if sandbox auth token is valid
922
+
923
+
924
+ :param sandbox_id: ID of the sandbox (required)
925
+ :type sandbox_id: str
926
+ :param auth_token: Auth token of the sandbox (required)
927
+ :type auth_token: str
928
+ :param _request_timeout: timeout setting for this request. If one
929
+ number provided, it will be total request
930
+ timeout. It can also be a pair (tuple) of
931
+ (connection, read) timeouts.
932
+ :type _request_timeout: int, tuple(int, int), optional
933
+ :param _request_auth: set to override the auth_settings for an a single
934
+ request; this effectively ignores the
935
+ authentication in the spec for a single request.
936
+ :type _request_auth: dict, optional
937
+ :param _content_type: force content-type for the request.
938
+ :type _content_type: str, Optional
939
+ :param _headers: set to override the headers for a single
940
+ request; this effectively ignores the headers
941
+ in the spec for a single request.
942
+ :type _headers: dict, optional
943
+ :param _host_index: set to override the host_index for a single
944
+ request; this effectively ignores the host_index
945
+ in the spec for a single request.
946
+ :type _host_index: int, optional
947
+ :return: Returns the result object.
948
+ """ # noqa: E501
949
+
950
+ _param = self._is_valid_auth_token_serialize(
951
+ sandbox_id=sandbox_id,
952
+ auth_token=auth_token,
953
+ _request_auth=_request_auth,
954
+ _content_type=_content_type,
955
+ _headers=_headers,
956
+ _host_index=_host_index
957
+ )
958
+
959
+ _response_types_map: Dict[str, Optional[str]] = {
960
+ '200': "bool",
961
+ }
962
+ response_data = self.api_client.call_api(
963
+ *_param,
964
+ _request_timeout=_request_timeout
965
+ )
966
+ response_data.read()
967
+ return self.api_client.response_deserialize(
968
+ response_data=response_data,
969
+ response_types_map=_response_types_map,
970
+ )
971
+
972
+
973
+ @validate_call
974
+ def is_valid_auth_token_without_preload_content(
975
+ self,
976
+ sandbox_id: Annotated[StrictStr, Field(description="ID of the sandbox")],
977
+ auth_token: Annotated[StrictStr, Field(description="Auth token of the sandbox")],
978
+ _request_timeout: Union[
979
+ None,
980
+ Annotated[StrictFloat, Field(gt=0)],
981
+ Tuple[
982
+ Annotated[StrictFloat, Field(gt=0)],
983
+ Annotated[StrictFloat, Field(gt=0)]
984
+ ]
985
+ ] = None,
986
+ _request_auth: Optional[Dict[StrictStr, Any]] = None,
987
+ _content_type: Optional[StrictStr] = None,
988
+ _headers: Optional[Dict[StrictStr, Any]] = None,
989
+ _host_index: Annotated[StrictInt, Field(ge=0, le=0)] = 0,
990
+ ) -> RESTResponseType:
991
+ """Check if sandbox auth token is valid
992
+
993
+
994
+ :param sandbox_id: ID of the sandbox (required)
995
+ :type sandbox_id: str
996
+ :param auth_token: Auth token of the sandbox (required)
997
+ :type auth_token: str
998
+ :param _request_timeout: timeout setting for this request. If one
999
+ number provided, it will be total request
1000
+ timeout. It can also be a pair (tuple) of
1001
+ (connection, read) timeouts.
1002
+ :type _request_timeout: int, tuple(int, int), optional
1003
+ :param _request_auth: set to override the auth_settings for an a single
1004
+ request; this effectively ignores the
1005
+ authentication in the spec for a single request.
1006
+ :type _request_auth: dict, optional
1007
+ :param _content_type: force content-type for the request.
1008
+ :type _content_type: str, Optional
1009
+ :param _headers: set to override the headers for a single
1010
+ request; this effectively ignores the headers
1011
+ in the spec for a single request.
1012
+ :type _headers: dict, optional
1013
+ :param _host_index: set to override the host_index for a single
1014
+ request; this effectively ignores the host_index
1015
+ in the spec for a single request.
1016
+ :type _host_index: int, optional
1017
+ :return: Returns the result object.
1018
+ """ # noqa: E501
1019
+
1020
+ _param = self._is_valid_auth_token_serialize(
1021
+ sandbox_id=sandbox_id,
1022
+ auth_token=auth_token,
1023
+ _request_auth=_request_auth,
1024
+ _content_type=_content_type,
1025
+ _headers=_headers,
1026
+ _host_index=_host_index
1027
+ )
1028
+
1029
+ _response_types_map: Dict[str, Optional[str]] = {
1030
+ '200': "bool",
1031
+ }
1032
+ response_data = self.api_client.call_api(
1033
+ *_param,
1034
+ _request_timeout=_request_timeout
1035
+ )
1036
+ return response_data.response
1037
+
1038
+
1039
+ def _is_valid_auth_token_serialize(
1040
+ self,
1041
+ sandbox_id,
1042
+ auth_token,
1043
+ _request_auth,
1044
+ _content_type,
1045
+ _headers,
1046
+ _host_index,
1047
+ ) -> RequestSerialized:
1048
+
1049
+ _host = None
1050
+
1051
+ _collection_formats: Dict[str, str] = {
1052
+ }
1053
+
1054
+ _path_params: Dict[str, str] = {}
1055
+ _query_params: List[Tuple[str, str]] = []
1056
+ _header_params: Dict[str, Optional[str]] = _headers or {}
1057
+ _form_params: List[Tuple[str, str]] = []
1058
+ _files: Dict[
1059
+ str, Union[str, bytes, List[str], List[bytes], List[Tuple[str, bytes]]]
1060
+ ] = {}
1061
+ _body_params: Optional[bytes] = None
1062
+
1063
+ # process the path parameters
1064
+ if sandbox_id is not None:
1065
+ _path_params['sandboxId'] = sandbox_id
1066
+ if auth_token is not None:
1067
+ _path_params['authToken'] = auth_token
1068
+ # process the query parameters
1069
+ # process the header parameters
1070
+ # process the form parameters
1071
+ # process the body parameter
1072
+
1073
+
1074
+ # set the HTTP header `Accept`
1075
+ if 'Accept' not in _header_params:
1076
+ _header_params['Accept'] = self.api_client.select_header_accept(
1077
+ [
1078
+ 'application/json'
1079
+ ]
1080
+ )
1081
+
1082
+
1083
+ # authentication setting
1084
+ _auth_settings: List[str] = [
1085
+ 'bearer',
1086
+ 'oauth2'
1087
+ ]
1088
+
1089
+ return self.api_client.param_serialize(
1090
+ method='GET',
1091
+ resource_path='/preview/{sandboxId}/validate/{authToken}',
1092
+ path_params=_path_params,
1093
+ query_params=_query_params,
1094
+ header_params=_header_params,
1095
+ body=_body_params,
1096
+ post_params=_form_params,
1097
+ files=_files,
1098
+ auth_settings=_auth_settings,
1099
+ collection_formats=_collection_formats,
1100
+ _host=_host,
1101
+ _request_auth=_request_auth
1102
+ )
1103
+
1104
+