blaxel 0.2.33__py3-none-any.whl → 0.2.35__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 (278) hide show
  1. blaxel/__init__.py +2 -2
  2. blaxel/core/__init__.py +2 -1
  3. blaxel/core/client/api/agents/create_agent.py +64 -19
  4. blaxel/core/client/api/agents/delete_agent.py +44 -15
  5. blaxel/core/client/api/agents/get_agent.py +43 -14
  6. blaxel/core/client/api/agents/list_agents.py +40 -11
  7. blaxel/core/client/api/agents/update_agent.py +60 -19
  8. blaxel/core/client/api/compute/create_sandbox.py +60 -23
  9. blaxel/core/client/api/compute/delete_sandbox.py +40 -19
  10. blaxel/core/client/api/compute/get_sandbox.py +39 -18
  11. blaxel/core/client/api/compute/list_sandboxes.py +40 -19
  12. blaxel/core/client/api/compute/update_sandbox.py +56 -23
  13. blaxel/core/client/api/configurations/get_configuration.py +16 -4
  14. blaxel/core/client/api/customdomains/create_custom_domain.py +12 -0
  15. blaxel/core/client/api/customdomains/list_custom_domains.py +16 -4
  16. blaxel/core/client/api/default/get_template.py +8 -4
  17. blaxel/core/client/api/functions/create_function.py +62 -19
  18. blaxel/core/client/api/functions/delete_function.py +46 -15
  19. blaxel/core/client/api/functions/get_function.py +45 -14
  20. blaxel/core/client/api/functions/list_functions.py +44 -15
  21. blaxel/core/client/api/functions/update_function.py +62 -19
  22. blaxel/core/client/api/images/cleanup_images.py +12 -12
  23. blaxel/core/client/api/images/delete_image.py +12 -8
  24. blaxel/core/client/api/images/delete_image_tag.py +12 -8
  25. blaxel/core/client/api/images/get_image.py +12 -8
  26. blaxel/core/client/api/images/list_images.py +12 -8
  27. blaxel/core/client/api/integrations/create_integration_connection.py +56 -23
  28. blaxel/core/client/api/integrations/delete_integration_connection.py +48 -19
  29. blaxel/core/client/api/integrations/get_integration.py +12 -8
  30. blaxel/core/client/api/integrations/get_integration_connection.py +44 -19
  31. blaxel/core/client/api/integrations/get_integration_connection_model.py +2 -2
  32. blaxel/core/client/api/integrations/list_integration_connections.py +36 -19
  33. blaxel/core/client/api/integrations/update_integration_connection.py +52 -19
  34. blaxel/core/client/api/jobs/create_job.py +20 -12
  35. blaxel/core/client/api/jobs/create_job_execution.py +22 -16
  36. blaxel/core/client/api/jobs/delete_job.py +12 -8
  37. blaxel/core/client/api/jobs/delete_job_execution.py +12 -8
  38. blaxel/core/client/api/jobs/get_job.py +24 -20
  39. blaxel/core/client/api/jobs/get_job_execution.py +8 -4
  40. blaxel/core/client/api/jobs/list_job_executions.py +8 -4
  41. blaxel/core/client/api/jobs/list_jobs.py +12 -8
  42. blaxel/core/client/api/jobs/update_job.py +20 -12
  43. blaxel/core/client/api/locations/list_locations.py +12 -8
  44. blaxel/core/client/api/{default → mcphub}/list_mcp_hub_definitions.py +20 -4
  45. blaxel/core/client/api/models/create_model.py +52 -23
  46. blaxel/core/client/api/models/delete_model.py +40 -19
  47. blaxel/core/client/api/models/get_model.py +40 -19
  48. blaxel/core/client/api/models/list_models.py +40 -19
  49. blaxel/core/client/api/models/update_model.py +52 -23
  50. blaxel/core/client/api/policies/create_policy.py +12 -8
  51. blaxel/core/client/api/policies/delete_policy.py +12 -8
  52. blaxel/core/client/api/policies/get_policy.py +12 -8
  53. blaxel/core/client/api/policies/list_policies.py +12 -8
  54. blaxel/core/client/api/policies/update_policy.py +12 -8
  55. blaxel/core/client/api/public_ipslist/list_public_ips.py +37 -5
  56. blaxel/core/client/api/sandboxhub/__init__.py +0 -0
  57. blaxel/core/client/api/{default → sandboxhub}/list_sandbox_hub_definitions.py +20 -4
  58. blaxel/core/client/api/service_accounts/create_api_key_for_service_account.py +12 -8
  59. blaxel/core/client/api/service_accounts/create_workspace_service_account.py +12 -8
  60. blaxel/core/client/api/service_accounts/delete_api_key_for_service_account.py +6 -4
  61. blaxel/core/client/api/service_accounts/delete_workspace_service_account.py +12 -8
  62. blaxel/core/client/api/service_accounts/get_workspace_service_accounts.py +12 -8
  63. blaxel/core/client/api/service_accounts/list_api_keys_for_service_account.py +12 -8
  64. blaxel/core/client/api/service_accounts/update_workspace_service_account.py +8 -8
  65. blaxel/core/client/api/templates/list_templates.py +12 -8
  66. blaxel/core/client/api/volume_templates/create_volume_template.py +8 -4
  67. blaxel/core/client/api/volume_templates/list_volume_templates.py +8 -4
  68. blaxel/core/client/api/volumes/create_volume.py +56 -23
  69. blaxel/core/client/api/volumes/delete_volume.py +44 -19
  70. blaxel/core/client/api/volumes/get_volume.py +40 -19
  71. blaxel/core/client/api/volumes/list_volumes.py +40 -19
  72. blaxel/core/client/api/workspaces/create_workspace.py +54 -23
  73. blaxel/core/client/api/workspaces/delete_workspace.py +42 -19
  74. blaxel/core/client/api/workspaces/get_workspace.py +42 -19
  75. blaxel/core/client/api/workspaces/invite_workspace_user.py +8 -4
  76. blaxel/core/client/api/workspaces/list_workspace_users.py +12 -8
  77. blaxel/core/client/api/workspaces/list_workspaces.py +36 -19
  78. blaxel/core/client/api/workspaces/update_workspace.py +50 -19
  79. blaxel/core/client/models/__init__.py +76 -146
  80. blaxel/core/client/models/agent.py +43 -47
  81. blaxel/core/client/models/agent_runtime.py +139 -0
  82. blaxel/core/client/models/agent_runtime_generation.py +18 -0
  83. blaxel/core/client/models/agent_spec.py +33 -110
  84. blaxel/core/client/models/api_key.py +5 -4
  85. blaxel/core/client/models/core_event.py +5 -5
  86. blaxel/core/client/models/create_api_key_for_service_account_body.py +2 -1
  87. blaxel/core/client/models/create_job_execution_request.py +1 -1
  88. blaxel/core/client/models/create_job_execution_response.py +13 -9
  89. blaxel/core/client/models/custom_domain.py +19 -36
  90. blaxel/core/client/models/custom_domain_metadata.py +4 -3
  91. blaxel/core/client/models/custom_domain_spec.py +14 -5
  92. blaxel/core/client/models/custom_domain_spec_status.py +19 -0
  93. blaxel/core/client/models/entrypoint.py +39 -13
  94. blaxel/core/client/models/{workspace_labels.py → entrypoint_args_item.py} +6 -6
  95. blaxel/core/client/models/entrypoint_env.py +3 -3
  96. blaxel/core/client/models/{job_metrics_executions_total.py → entrypoint_super_gateway_args_item.py} +6 -6
  97. blaxel/core/client/models/{spec_configuration.py → env.py} +17 -8
  98. blaxel/core/{sandbox/client/models/welcome_response.py → client/models/error.py} +26 -23
  99. blaxel/core/client/models/expiration_policy.py +30 -11
  100. blaxel/core/client/models/expiration_policy_action.py +17 -0
  101. blaxel/core/client/models/expiration_policy_type.py +19 -0
  102. blaxel/core/client/models/flavor.py +13 -5
  103. blaxel/core/client/models/flavor_type.py +18 -0
  104. blaxel/core/client/models/form.py +6 -6
  105. blaxel/core/client/models/function.py +43 -47
  106. blaxel/core/client/models/function_runtime.py +138 -0
  107. blaxel/core/client/models/function_runtime_generation.py +18 -0
  108. blaxel/core/client/models/function_spec.py +27 -73
  109. blaxel/core/client/models/function_spec_transport.py +18 -0
  110. blaxel/core/client/models/image.py +19 -36
  111. blaxel/core/client/models/integration_connection.py +25 -39
  112. blaxel/core/client/models/integration_connection_spec.py +8 -5
  113. blaxel/core/client/models/integration_connection_spec_config.py +1 -1
  114. blaxel/core/client/models/integration_connection_spec_secret.py +1 -1
  115. blaxel/core/client/models/integration_endpoint.py +41 -11
  116. blaxel/core/client/models/integration_endpoint_ignore_models_item.py +45 -0
  117. blaxel/core/client/models/{mcp_definition_entrypoint.py → integration_endpoint_models_item.py} +6 -6
  118. blaxel/core/client/models/job.py +43 -47
  119. blaxel/core/client/models/job_execution.py +30 -37
  120. blaxel/core/client/models/job_execution_metadata.py +3 -3
  121. blaxel/core/client/models/job_execution_spec.py +2 -2
  122. blaxel/core/client/models/job_execution_stats.py +5 -5
  123. blaxel/core/client/models/job_execution_status.py +24 -0
  124. blaxel/core/client/models/job_execution_task.py +12 -4
  125. blaxel/core/client/models/job_execution_task_metadata.py +1 -1
  126. blaxel/core/client/models/job_execution_task_spec.py +2 -2
  127. blaxel/core/client/models/job_execution_task_status.py +23 -0
  128. blaxel/core/client/models/job_runtime.py +172 -0
  129. blaxel/core/client/models/job_runtime_generation.py +18 -0
  130. blaxel/core/client/models/job_spec.py +20 -88
  131. blaxel/core/client/models/location_response.py +5 -5
  132. blaxel/core/client/models/mcp_definition.py +30 -17
  133. blaxel/core/client/models/{job_metrics_tasks_total.py → mcp_definition_categories_item.py} +6 -6
  134. blaxel/core/client/models/metadata.py +23 -17
  135. blaxel/core/client/models/metadata_labels.py +4 -1
  136. blaxel/core/client/models/model.py +43 -47
  137. blaxel/core/client/models/model_runtime.py +99 -0
  138. blaxel/core/client/models/model_runtime_type.py +34 -0
  139. blaxel/core/client/models/model_spec.py +12 -58
  140. blaxel/core/client/models/o_auth.py +23 -6
  141. blaxel/core/client/models/{form_oauth.py → o_auth_scope_item.py} +6 -6
  142. blaxel/core/client/models/pending_invitation_accept.py +2 -1
  143. blaxel/core/client/models/pending_invitation_workspace_details.py +27 -6
  144. blaxel/core/client/models/{metrics_request_total_per_code.py → pending_invitation_workspace_details_emails_item.py} +6 -6
  145. blaxel/core/client/models/policy.py +20 -36
  146. blaxel/core/client/models/policy_location.py +13 -5
  147. blaxel/core/client/models/policy_location_type.py +19 -0
  148. blaxel/core/client/models/policy_max_tokens.py +6 -6
  149. blaxel/core/client/models/policy_resource_type.py +20 -0
  150. blaxel/core/client/models/policy_spec.py +31 -10
  151. blaxel/core/client/models/policy_spec_type.py +19 -0
  152. blaxel/core/client/models/port.py +25 -15
  153. blaxel/core/client/models/port_protocol.py +19 -0
  154. blaxel/core/client/models/preview.py +19 -36
  155. blaxel/core/client/models/preview_metadata.py +12 -10
  156. blaxel/core/client/models/preview_token.py +19 -36
  157. blaxel/core/client/models/preview_token_metadata.py +8 -6
  158. blaxel/core/client/models/repository.py +2 -2
  159. blaxel/core/client/models/revision_configuration.py +3 -3
  160. blaxel/core/client/models/sandbox.py +45 -58
  161. blaxel/core/client/models/sandbox_definition.py +37 -22
  162. blaxel/core/client/models/sandbox_definition_categories_item.py +45 -0
  163. blaxel/core/client/models/sandbox_error.py +148 -0
  164. blaxel/core/client/models/sandbox_error_details.py +45 -0
  165. blaxel/core/client/models/sandbox_lifecycle.py +3 -2
  166. blaxel/core/client/models/sandbox_runtime.py +145 -0
  167. blaxel/core/client/models/sandbox_spec.py +33 -134
  168. blaxel/core/client/models/status.py +25 -0
  169. blaxel/core/client/models/template.py +8 -7
  170. blaxel/core/client/models/template_variable.py +5 -5
  171. blaxel/core/client/models/trigger.py +14 -6
  172. blaxel/core/client/models/trigger_configuration.py +7 -6
  173. blaxel/core/client/models/trigger_type.py +19 -0
  174. blaxel/core/client/models/volume.py +35 -47
  175. blaxel/core/client/models/volume_attachment.py +6 -4
  176. blaxel/core/client/models/volume_spec.py +7 -4
  177. blaxel/core/client/models/volume_state.py +3 -3
  178. blaxel/core/client/models/volume_template.py +19 -33
  179. blaxel/core/client/models/volume_template_state.py +12 -4
  180. blaxel/core/client/models/volume_template_state_status.py +19 -0
  181. blaxel/core/client/models/volume_template_version.py +12 -4
  182. blaxel/core/client/models/volume_template_version_status.py +19 -0
  183. blaxel/core/client/models/workspace.py +35 -25
  184. blaxel/core/client/models/workspace_runtime.py +3 -2
  185. blaxel/core/client/models/workspace_status.py +22 -0
  186. blaxel/core/common/__init__.py +1 -1
  187. blaxel/core/jobs/__init__.py +0 -1
  188. blaxel/core/sandbox/__init__.py +2 -0
  189. blaxel/core/sandbox/client/api/process/post_process.py +8 -4
  190. blaxel/core/sandbox/client/models/__init__.py +0 -2
  191. blaxel/core/sandbox/client/models/process_response.py +16 -0
  192. blaxel/core/sandbox/client/models/process_response_status.py +9 -0
  193. blaxel/core/sandbox/default/__init__.py +2 -0
  194. blaxel/core/sandbox/default/interpreter.py +5 -1
  195. blaxel/core/sandbox/default/preview.py +3 -1
  196. blaxel/core/sandbox/default/sandbox.py +85 -26
  197. blaxel/core/sandbox/sync/process.py +2 -1
  198. blaxel/core/sandbox/sync/sandbox.py +68 -23
  199. blaxel/core/sandbox/types.py +3 -0
  200. blaxel/core/tools/common.py +16 -2
  201. blaxel/core/volume/__init__.py +2 -2
  202. blaxel/core/volume/volume.py +227 -11
  203. blaxel/langgraph/tools.py +34 -2
  204. blaxel/openai/tools.py +33 -1
  205. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/METADATA +3 -3
  206. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/RECORD +209 -248
  207. blaxel/core/client/models/acl.py +0 -133
  208. blaxel/core/client/models/billable_time_metric.py +0 -89
  209. blaxel/core/client/models/core_spec.py +0 -194
  210. blaxel/core/client/models/core_spec_configurations.py +0 -77
  211. blaxel/core/client/models/histogram_bucket.py +0 -79
  212. blaxel/core/client/models/histogram_stats.py +0 -88
  213. blaxel/core/client/models/integration_model.py +0 -162
  214. blaxel/core/client/models/job_execution_config.py +0 -79
  215. blaxel/core/client/models/job_metrics.py +0 -262
  216. blaxel/core/client/models/jobs_chart_value.py +0 -70
  217. blaxel/core/client/models/jobs_network_chart.py +0 -102
  218. blaxel/core/client/models/jobs_success_failed_chart.py +0 -147
  219. blaxel/core/client/models/jobs_total.py +0 -88
  220. blaxel/core/client/models/last_n_requests_metric.py +0 -97
  221. blaxel/core/client/models/latency_metric.py +0 -148
  222. blaxel/core/client/models/logs_response.py +0 -63
  223. blaxel/core/client/models/logs_response_data.py +0 -99
  224. blaxel/core/client/models/mcp_definition_form.py +0 -45
  225. blaxel/core/client/models/memory_allocation_by_name.py +0 -70
  226. blaxel/core/client/models/memory_allocation_metric.py +0 -61
  227. blaxel/core/client/models/metric.py +0 -79
  228. blaxel/core/client/models/metrics.py +0 -273
  229. blaxel/core/client/models/metrics_models.py +0 -45
  230. blaxel/core/client/models/metrics_rps_per_code.py +0 -45
  231. blaxel/core/client/models/pod_template_spec.py +0 -45
  232. blaxel/core/client/models/request_duration_over_time_metric.py +0 -97
  233. blaxel/core/client/models/request_duration_over_time_metrics.py +0 -84
  234. blaxel/core/client/models/request_total_by_origin_metric.py +0 -129
  235. blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin.py +0 -45
  236. blaxel/core/client/models/request_total_by_origin_metric_request_total_by_origin_and_code.py +0 -45
  237. blaxel/core/client/models/request_total_metric.py +0 -155
  238. blaxel/core/client/models/request_total_metric_request_total_per_code.py +0 -45
  239. blaxel/core/client/models/request_total_metric_rps_per_code.py +0 -45
  240. blaxel/core/client/models/request_total_response_data.py +0 -97
  241. blaxel/core/client/models/resource.py +0 -99
  242. blaxel/core/client/models/resource_log.py +0 -88
  243. blaxel/core/client/models/resource_log_chart.py +0 -133
  244. blaxel/core/client/models/resource_log_response.py +0 -83
  245. blaxel/core/client/models/resource_metrics.py +0 -618
  246. blaxel/core/client/models/resource_metrics_request_total_per_code.py +0 -45
  247. blaxel/core/client/models/resource_metrics_request_total_per_code_previous.py +0 -45
  248. blaxel/core/client/models/resource_metrics_rps_per_code.py +0 -45
  249. blaxel/core/client/models/resource_metrics_rps_per_code_previous.py +0 -45
  250. blaxel/core/client/models/resource_trace.py +0 -97
  251. blaxel/core/client/models/runtime.py +0 -317
  252. blaxel/core/client/models/runtime_configuration.py +0 -45
  253. blaxel/core/client/models/runtime_startup_probe.py +0 -45
  254. blaxel/core/client/models/sandbox_metrics.py +0 -88
  255. blaxel/core/client/models/serverless_config.py +0 -117
  256. blaxel/core/client/models/serverless_config_configuration.py +0 -45
  257. blaxel/core/client/models/start_sandbox.py +0 -98
  258. blaxel/core/client/models/stop_sandbox.py +0 -98
  259. blaxel/core/client/models/store_agent.py +0 -181
  260. blaxel/core/client/models/store_agent_labels.py +0 -45
  261. blaxel/core/client/models/store_configuration.py +0 -156
  262. blaxel/core/client/models/store_configuration_option.py +0 -79
  263. blaxel/core/client/models/time_to_first_token_over_time_metrics.py +0 -87
  264. blaxel/core/client/models/token_rate_metric.py +0 -106
  265. blaxel/core/client/models/token_rate_metrics.py +0 -124
  266. blaxel/core/client/models/token_total_metric.py +0 -112
  267. blaxel/core/client/models/trace_ids_response.py +0 -45
  268. blaxel/core/client/models/websocket_channel.py +0 -97
  269. blaxel/core/client/models/websocket_message.py +0 -106
  270. blaxel/core/sandbox/client/api/root/delete.py +0 -130
  271. blaxel/core/sandbox/client/api/root/get.py +0 -130
  272. blaxel/core/sandbox/client/api/root/options.py +0 -130
  273. blaxel/core/sandbox/client/api/root/patch.py +0 -130
  274. blaxel/core/sandbox/client/api/root/post.py +0 -130
  275. blaxel/core/sandbox/client/api/root/put.py +0 -130
  276. /blaxel/core/{sandbox/client/api/root → client/api/mcphub}/__init__.py +0 -0
  277. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/WHEEL +0 -0
  278. {blaxel-0.2.33.dist-info → blaxel-0.2.35.dist-info}/licenses/LICENSE +0 -0
@@ -53,9 +53,10 @@ def sync_detailed(
53
53
  *,
54
54
  client: Client,
55
55
  ) -> Response[Union[Any, Image]]:
56
- """Delete image by name
56
+ """Delete container image
57
57
 
58
- Deletes an image by name.
58
+ Deletes a container image and all its tags from the workspace registry. Will fail if the image is
59
+ currently in use by an active deployment.
59
60
 
60
61
  Args:
61
62
  resource_type (str):
@@ -87,9 +88,10 @@ def sync(
87
88
  *,
88
89
  client: Client,
89
90
  ) -> Union[Any, Image] | None:
90
- """Delete image by name
91
+ """Delete container image
91
92
 
92
- Deletes an image by name.
93
+ Deletes a container image and all its tags from the workspace registry. Will fail if the image is
94
+ currently in use by an active deployment.
93
95
 
94
96
  Args:
95
97
  resource_type (str):
@@ -116,9 +118,10 @@ async def asyncio_detailed(
116
118
  *,
117
119
  client: Client,
118
120
  ) -> Response[Union[Any, Image]]:
119
- """Delete image by name
121
+ """Delete container image
120
122
 
121
- Deletes an image by name.
123
+ Deletes a container image and all its tags from the workspace registry. Will fail if the image is
124
+ currently in use by an active deployment.
122
125
 
123
126
  Args:
124
127
  resource_type (str):
@@ -148,9 +151,10 @@ async def asyncio(
148
151
  *,
149
152
  client: Client,
150
153
  ) -> Union[Any, Image] | None:
151
- """Delete image by name
154
+ """Delete container image
152
155
 
153
- Deletes an image by name.
156
+ Deletes a container image and all its tags from the workspace registry. Will fail if the image is
157
+ currently in use by an active deployment.
154
158
 
155
159
  Args:
156
160
  resource_type (str):
@@ -55,9 +55,10 @@ def sync_detailed(
55
55
  *,
56
56
  client: Client,
57
57
  ) -> Response[Union[Any, Image]]:
58
- """Delete image tag
58
+ """Delete container image tag
59
59
 
60
- Deletes a specific tag from an image.
60
+ Deletes a specific tag from a container image. The underlying image layers are kept if other tags
61
+ reference them. Will fail if the tag is currently in use.
61
62
 
62
63
  Args:
63
64
  resource_type (str):
@@ -92,9 +93,10 @@ def sync(
92
93
  *,
93
94
  client: Client,
94
95
  ) -> Union[Any, Image] | None:
95
- """Delete image tag
96
+ """Delete container image tag
96
97
 
97
- Deletes a specific tag from an image.
98
+ Deletes a specific tag from a container image. The underlying image layers are kept if other tags
99
+ reference them. Will fail if the tag is currently in use.
98
100
 
99
101
  Args:
100
102
  resource_type (str):
@@ -124,9 +126,10 @@ async def asyncio_detailed(
124
126
  *,
125
127
  client: Client,
126
128
  ) -> Response[Union[Any, Image]]:
127
- """Delete image tag
129
+ """Delete container image tag
128
130
 
129
- Deletes a specific tag from an image.
131
+ Deletes a specific tag from a container image. The underlying image layers are kept if other tags
132
+ reference them. Will fail if the tag is currently in use.
130
133
 
131
134
  Args:
132
135
  resource_type (str):
@@ -159,9 +162,10 @@ async def asyncio(
159
162
  *,
160
163
  client: Client,
161
164
  ) -> Union[Any, Image] | None:
162
- """Delete image tag
165
+ """Delete container image tag
163
166
 
164
- Deletes a specific tag from an image.
167
+ Deletes a specific tag from a container image. The underlying image layers are kept if other tags
168
+ reference them. Will fail if the tag is currently in use.
165
169
 
166
170
  Args:
167
171
  resource_type (str):
@@ -47,9 +47,10 @@ def sync_detailed(
47
47
  *,
48
48
  client: Client,
49
49
  ) -> Response[Image]:
50
- """Get image by name
50
+ """Get container image
51
51
 
52
- Returns an image by name.
52
+ Returns detailed information about a container image including all available tags, creation dates,
53
+ and size information.
53
54
 
54
55
  Args:
55
56
  resource_type (str):
@@ -81,9 +82,10 @@ def sync(
81
82
  *,
82
83
  client: Client,
83
84
  ) -> Image | None:
84
- """Get image by name
85
+ """Get container image
85
86
 
86
- Returns an image by name.
87
+ Returns detailed information about a container image including all available tags, creation dates,
88
+ and size information.
87
89
 
88
90
  Args:
89
91
  resource_type (str):
@@ -110,9 +112,10 @@ async def asyncio_detailed(
110
112
  *,
111
113
  client: Client,
112
114
  ) -> Response[Image]:
113
- """Get image by name
115
+ """Get container image
114
116
 
115
- Returns an image by name.
117
+ Returns detailed information about a container image including all available tags, creation dates,
118
+ and size information.
116
119
 
117
120
  Args:
118
121
  resource_type (str):
@@ -142,9 +145,10 @@ async def asyncio(
142
145
  *,
143
146
  client: Client,
144
147
  ) -> Image | None:
145
- """Get image by name
148
+ """Get container image
146
149
 
147
- Returns an image by name.
150
+ Returns detailed information about a container image including all available tags, creation dates,
151
+ and size information.
148
152
 
149
153
  Args:
150
154
  resource_type (str):
@@ -47,9 +47,10 @@ def sync_detailed(
47
47
  *,
48
48
  client: Client,
49
49
  ) -> Response[list["Image"]]:
50
- """List images
50
+ """List container images
51
51
 
52
- Returns a list of all images in the workspace grouped by repository with tags.
52
+ Returns all container images stored in the workspace registry, grouped by repository with their
53
+ available tags. Images are created during deployments of agents, functions, sandboxes, and jobs.
53
54
 
54
55
  Raises:
55
56
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -72,9 +73,10 @@ def sync(
72
73
  *,
73
74
  client: Client,
74
75
  ) -> list["Image"] | None:
75
- """List images
76
+ """List container images
76
77
 
77
- Returns a list of all images in the workspace grouped by repository with tags.
78
+ Returns all container images stored in the workspace registry, grouped by repository with their
79
+ available tags. Images are created during deployments of agents, functions, sandboxes, and jobs.
78
80
 
79
81
  Raises:
80
82
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -93,9 +95,10 @@ async def asyncio_detailed(
93
95
  *,
94
96
  client: Client,
95
97
  ) -> Response[list["Image"]]:
96
- """List images
98
+ """List container images
97
99
 
98
- Returns a list of all images in the workspace grouped by repository with tags.
100
+ Returns all container images stored in the workspace registry, grouped by repository with their
101
+ available tags. Images are created during deployments of agents, functions, sandboxes, and jobs.
99
102
 
100
103
  Raises:
101
104
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -116,9 +119,10 @@ async def asyncio(
116
119
  *,
117
120
  client: Client,
118
121
  ) -> list["Image"] | None:
119
- """List images
122
+ """List container images
120
123
 
121
- Returns a list of all images in the workspace grouped by repository with tags.
124
+ Returns all container images stored in the workspace registry, grouped by repository with their
125
+ available tags. Images are created during deployments of agents, functions, sandboxes, and jobs.
122
126
 
123
127
  Raises:
124
128
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -1,10 +1,11 @@
1
1
  from http import HTTPStatus
2
- from typing import Any
2
+ from typing import Any, Union
3
3
 
4
4
  import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import Client
8
+ from ...models.error import Error
8
9
  from ...models.integration_connection import IntegrationConnection
9
10
  from ...types import Response
10
11
 
@@ -32,18 +33,42 @@ def _get_kwargs(
32
33
  return _kwargs
33
34
 
34
35
 
35
- def _parse_response(*, client: Client, response: httpx.Response) -> IntegrationConnection | None:
36
+ def _parse_response(
37
+ *, client: Client, response: httpx.Response
38
+ ) -> Union[Error, IntegrationConnection] | None:
36
39
  if response.status_code == 200:
37
40
  response_200 = IntegrationConnection.from_dict(response.json())
38
41
 
39
42
  return response_200
43
+ if response.status_code == 400:
44
+ response_400 = Error.from_dict(response.json())
45
+
46
+ return response_400
47
+ if response.status_code == 401:
48
+ response_401 = Error.from_dict(response.json())
49
+
50
+ return response_401
51
+ if response.status_code == 403:
52
+ response_403 = Error.from_dict(response.json())
53
+
54
+ return response_403
55
+ if response.status_code == 409:
56
+ response_409 = Error.from_dict(response.json())
57
+
58
+ return response_409
59
+ if response.status_code == 500:
60
+ response_500 = Error.from_dict(response.json())
61
+
62
+ return response_500
40
63
  if client.raise_on_unexpected_status:
41
64
  raise errors.UnexpectedStatus(response.status_code, response.content)
42
65
  else:
43
66
  return None
44
67
 
45
68
 
46
- def _build_response(*, client: Client, response: httpx.Response) -> Response[IntegrationConnection]:
69
+ def _build_response(
70
+ *, client: Client, response: httpx.Response
71
+ ) -> Response[Union[Error, IntegrationConnection]]:
47
72
  return Response(
48
73
  status_code=HTTPStatus(response.status_code),
49
74
  content=response.content,
@@ -56,20 +81,22 @@ def sync_detailed(
56
81
  *,
57
82
  client: Client,
58
83
  body: IntegrationConnection,
59
- ) -> Response[IntegrationConnection]:
60
- """Create integration
84
+ ) -> Response[Union[Error, IntegrationConnection]]:
85
+ """Create integration connection
61
86
 
62
- Create a connection for an integration.
87
+ Creates a new integration connection with credentials for an external service. The connection can
88
+ then be used by models, functions, and other resources to authenticate with the service.
63
89
 
64
90
  Args:
65
- body (IntegrationConnection): Integration Connection
91
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
92
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
66
93
 
67
94
  Raises:
68
95
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
69
96
  httpx.TimeoutException: If the request takes longer than Client.timeout.
70
97
 
71
98
  Returns:
72
- Response[IntegrationConnection]
99
+ Response[Union[Error, IntegrationConnection]]
73
100
  """
74
101
 
75
102
  kwargs = _get_kwargs(
@@ -87,20 +114,22 @@ def sync(
87
114
  *,
88
115
  client: Client,
89
116
  body: IntegrationConnection,
90
- ) -> IntegrationConnection | None:
91
- """Create integration
117
+ ) -> Union[Error, IntegrationConnection] | None:
118
+ """Create integration connection
92
119
 
93
- Create a connection for an integration.
120
+ Creates a new integration connection with credentials for an external service. The connection can
121
+ then be used by models, functions, and other resources to authenticate with the service.
94
122
 
95
123
  Args:
96
- body (IntegrationConnection): Integration Connection
124
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
125
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
97
126
 
98
127
  Raises:
99
128
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
100
129
  httpx.TimeoutException: If the request takes longer than Client.timeout.
101
130
 
102
131
  Returns:
103
- IntegrationConnection
132
+ Union[Error, IntegrationConnection]
104
133
  """
105
134
 
106
135
  return sync_detailed(
@@ -113,20 +142,22 @@ async def asyncio_detailed(
113
142
  *,
114
143
  client: Client,
115
144
  body: IntegrationConnection,
116
- ) -> Response[IntegrationConnection]:
117
- """Create integration
145
+ ) -> Response[Union[Error, IntegrationConnection]]:
146
+ """Create integration connection
118
147
 
119
- Create a connection for an integration.
148
+ Creates a new integration connection with credentials for an external service. The connection can
149
+ then be used by models, functions, and other resources to authenticate with the service.
120
150
 
121
151
  Args:
122
- body (IntegrationConnection): Integration Connection
152
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
153
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
123
154
 
124
155
  Raises:
125
156
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
126
157
  httpx.TimeoutException: If the request takes longer than Client.timeout.
127
158
 
128
159
  Returns:
129
- Response[IntegrationConnection]
160
+ Response[Union[Error, IntegrationConnection]]
130
161
  """
131
162
 
132
163
  kwargs = _get_kwargs(
@@ -142,20 +173,22 @@ async def asyncio(
142
173
  *,
143
174
  client: Client,
144
175
  body: IntegrationConnection,
145
- ) -> IntegrationConnection | None:
146
- """Create integration
176
+ ) -> Union[Error, IntegrationConnection] | None:
177
+ """Create integration connection
147
178
 
148
- Create a connection for an integration.
179
+ Creates a new integration connection with credentials for an external service. The connection can
180
+ then be used by models, functions, and other resources to authenticate with the service.
149
181
 
150
182
  Args:
151
- body (IntegrationConnection): Integration Connection
183
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
184
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
152
185
 
153
186
  Raises:
154
187
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
155
188
  httpx.TimeoutException: If the request takes longer than Client.timeout.
156
189
 
157
190
  Returns:
158
- IntegrationConnection
191
+ Union[Error, IntegrationConnection]
159
192
  """
160
193
 
161
194
  return (
@@ -1,10 +1,11 @@
1
1
  from http import HTTPStatus
2
- from typing import Any
2
+ from typing import Any, Union
3
3
 
4
4
  import httpx
5
5
 
6
6
  from ... import errors
7
7
  from ...client import Client
8
+ from ...models.error import Error
8
9
  from ...models.integration_connection import IntegrationConnection
9
10
  from ...types import Response
10
11
 
@@ -20,18 +21,42 @@ def _get_kwargs(
20
21
  return _kwargs
21
22
 
22
23
 
23
- def _parse_response(*, client: Client, response: httpx.Response) -> IntegrationConnection | None:
24
+ def _parse_response(
25
+ *, client: Client, response: httpx.Response
26
+ ) -> Union[Error, IntegrationConnection] | None:
24
27
  if response.status_code == 200:
25
28
  response_200 = IntegrationConnection.from_dict(response.json())
26
29
 
27
30
  return response_200
31
+ if response.status_code == 401:
32
+ response_401 = Error.from_dict(response.json())
33
+
34
+ return response_401
35
+ if response.status_code == 403:
36
+ response_403 = Error.from_dict(response.json())
37
+
38
+ return response_403
39
+ if response.status_code == 404:
40
+ response_404 = Error.from_dict(response.json())
41
+
42
+ return response_404
43
+ if response.status_code == 409:
44
+ response_409 = Error.from_dict(response.json())
45
+
46
+ return response_409
47
+ if response.status_code == 500:
48
+ response_500 = Error.from_dict(response.json())
49
+
50
+ return response_500
28
51
  if client.raise_on_unexpected_status:
29
52
  raise errors.UnexpectedStatus(response.status_code, response.content)
30
53
  else:
31
54
  return None
32
55
 
33
56
 
34
- def _build_response(*, client: Client, response: httpx.Response) -> Response[IntegrationConnection]:
57
+ def _build_response(
58
+ *, client: Client, response: httpx.Response
59
+ ) -> Response[Union[Error, IntegrationConnection]]:
35
60
  return Response(
36
61
  status_code=HTTPStatus(response.status_code),
37
62
  content=response.content,
@@ -44,10 +69,11 @@ def sync_detailed(
44
69
  connection_name: str,
45
70
  *,
46
71
  client: Client,
47
- ) -> Response[IntegrationConnection]:
48
- """Delete integration
72
+ ) -> Response[Union[Error, IntegrationConnection]]:
73
+ """Delete integration connection
49
74
 
50
- Deletes an integration connection by integration name and connection name.
75
+ Permanently deletes an integration connection. Any resources using this connection will lose access
76
+ to the external service.
51
77
 
52
78
  Args:
53
79
  connection_name (str):
@@ -57,7 +83,7 @@ def sync_detailed(
57
83
  httpx.TimeoutException: If the request takes longer than Client.timeout.
58
84
 
59
85
  Returns:
60
- Response[IntegrationConnection]
86
+ Response[Union[Error, IntegrationConnection]]
61
87
  """
62
88
 
63
89
  kwargs = _get_kwargs(
@@ -75,10 +101,11 @@ def sync(
75
101
  connection_name: str,
76
102
  *,
77
103
  client: Client,
78
- ) -> IntegrationConnection | None:
79
- """Delete integration
104
+ ) -> Union[Error, IntegrationConnection] | None:
105
+ """Delete integration connection
80
106
 
81
- Deletes an integration connection by integration name and connection name.
107
+ Permanently deletes an integration connection. Any resources using this connection will lose access
108
+ to the external service.
82
109
 
83
110
  Args:
84
111
  connection_name (str):
@@ -88,7 +115,7 @@ def sync(
88
115
  httpx.TimeoutException: If the request takes longer than Client.timeout.
89
116
 
90
117
  Returns:
91
- IntegrationConnection
118
+ Union[Error, IntegrationConnection]
92
119
  """
93
120
 
94
121
  return sync_detailed(
@@ -101,10 +128,11 @@ async def asyncio_detailed(
101
128
  connection_name: str,
102
129
  *,
103
130
  client: Client,
104
- ) -> Response[IntegrationConnection]:
105
- """Delete integration
131
+ ) -> Response[Union[Error, IntegrationConnection]]:
132
+ """Delete integration connection
106
133
 
107
- Deletes an integration connection by integration name and connection name.
134
+ Permanently deletes an integration connection. Any resources using this connection will lose access
135
+ to the external service.
108
136
 
109
137
  Args:
110
138
  connection_name (str):
@@ -114,7 +142,7 @@ async def asyncio_detailed(
114
142
  httpx.TimeoutException: If the request takes longer than Client.timeout.
115
143
 
116
144
  Returns:
117
- Response[IntegrationConnection]
145
+ Response[Union[Error, IntegrationConnection]]
118
146
  """
119
147
 
120
148
  kwargs = _get_kwargs(
@@ -130,10 +158,11 @@ async def asyncio(
130
158
  connection_name: str,
131
159
  *,
132
160
  client: Client,
133
- ) -> IntegrationConnection | None:
134
- """Delete integration
161
+ ) -> Union[Error, IntegrationConnection] | None:
162
+ """Delete integration connection
135
163
 
136
- Deletes an integration connection by integration name and connection name.
164
+ Permanently deletes an integration connection. Any resources using this connection will lose access
165
+ to the external service.
137
166
 
138
167
  Args:
139
168
  connection_name (str):
@@ -143,7 +172,7 @@ async def asyncio(
143
172
  httpx.TimeoutException: If the request takes longer than Client.timeout.
144
173
 
145
174
  Returns:
146
- IntegrationConnection
175
+ Union[Error, IntegrationConnection]
147
176
  """
148
177
 
149
178
  return (
@@ -45,9 +45,10 @@ def sync_detailed(
45
45
  *,
46
46
  client: Client,
47
47
  ) -> Response[Integration]:
48
- """List integrations connections
48
+ """Get integration provider info
49
49
 
50
- Returns integration information by name.
50
+ Returns metadata about an integration provider including available endpoints, authentication
51
+ methods, and supported models or features.
51
52
 
52
53
  Args:
53
54
  integration_name (str):
@@ -76,9 +77,10 @@ def sync(
76
77
  *,
77
78
  client: Client,
78
79
  ) -> Integration | None:
79
- """List integrations connections
80
+ """Get integration provider info
80
81
 
81
- Returns integration information by name.
82
+ Returns metadata about an integration provider including available endpoints, authentication
83
+ methods, and supported models or features.
82
84
 
83
85
  Args:
84
86
  integration_name (str):
@@ -102,9 +104,10 @@ async def asyncio_detailed(
102
104
  *,
103
105
  client: Client,
104
106
  ) -> Response[Integration]:
105
- """List integrations connections
107
+ """Get integration provider info
106
108
 
107
- Returns integration information by name.
109
+ Returns metadata about an integration provider including available endpoints, authentication
110
+ methods, and supported models or features.
108
111
 
109
112
  Args:
110
113
  integration_name (str):
@@ -131,9 +134,10 @@ async def asyncio(
131
134
  *,
132
135
  client: Client,
133
136
  ) -> Integration | None:
134
- """List integrations connections
137
+ """Get integration provider info
135
138
 
136
- Returns integration information by name.
139
+ Returns metadata about an integration provider including available endpoints, authentication
140
+ methods, and supported models or features.
137
141
 
138
142
  Args:
139
143
  integration_name (str):