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
@@ -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,38 @@ 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 == 500:
44
+ response_500 = Error.from_dict(response.json())
45
+
46
+ return response_500
28
47
  if client.raise_on_unexpected_status:
29
48
  raise errors.UnexpectedStatus(response.status_code, response.content)
30
49
  else:
31
50
  return None
32
51
 
33
52
 
34
- def _build_response(*, client: Client, response: httpx.Response) -> Response[IntegrationConnection]:
53
+ def _build_response(
54
+ *, client: Client, response: httpx.Response
55
+ ) -> Response[Union[Error, IntegrationConnection]]:
35
56
  return Response(
36
57
  status_code=HTTPStatus(response.status_code),
37
58
  content=response.content,
@@ -44,10 +65,11 @@ def sync_detailed(
44
65
  connection_name: str,
45
66
  *,
46
67
  client: Client,
47
- ) -> Response[IntegrationConnection]:
48
- """Get integration
68
+ ) -> Response[Union[Error, IntegrationConnection]]:
69
+ """Get integration connection
49
70
 
50
- Returns an integration connection by integration name and connection name.
71
+ Returns detailed information about an integration connection including its provider type,
72
+ configuration (secrets are masked), and usage status.
51
73
 
52
74
  Args:
53
75
  connection_name (str):
@@ -57,7 +79,7 @@ def sync_detailed(
57
79
  httpx.TimeoutException: If the request takes longer than Client.timeout.
58
80
 
59
81
  Returns:
60
- Response[IntegrationConnection]
82
+ Response[Union[Error, IntegrationConnection]]
61
83
  """
62
84
 
63
85
  kwargs = _get_kwargs(
@@ -75,10 +97,11 @@ def sync(
75
97
  connection_name: str,
76
98
  *,
77
99
  client: Client,
78
- ) -> IntegrationConnection | None:
79
- """Get integration
100
+ ) -> Union[Error, IntegrationConnection] | None:
101
+ """Get integration connection
80
102
 
81
- Returns an integration connection by integration name and connection name.
103
+ Returns detailed information about an integration connection including its provider type,
104
+ configuration (secrets are masked), and usage status.
82
105
 
83
106
  Args:
84
107
  connection_name (str):
@@ -88,7 +111,7 @@ def sync(
88
111
  httpx.TimeoutException: If the request takes longer than Client.timeout.
89
112
 
90
113
  Returns:
91
- IntegrationConnection
114
+ Union[Error, IntegrationConnection]
92
115
  """
93
116
 
94
117
  return sync_detailed(
@@ -101,10 +124,11 @@ async def asyncio_detailed(
101
124
  connection_name: str,
102
125
  *,
103
126
  client: Client,
104
- ) -> Response[IntegrationConnection]:
105
- """Get integration
127
+ ) -> Response[Union[Error, IntegrationConnection]]:
128
+ """Get integration connection
106
129
 
107
- Returns an integration connection by integration name and connection name.
130
+ Returns detailed information about an integration connection including its provider type,
131
+ configuration (secrets are masked), and usage status.
108
132
 
109
133
  Args:
110
134
  connection_name (str):
@@ -114,7 +138,7 @@ async def asyncio_detailed(
114
138
  httpx.TimeoutException: If the request takes longer than Client.timeout.
115
139
 
116
140
  Returns:
117
- Response[IntegrationConnection]
141
+ Response[Union[Error, IntegrationConnection]]
118
142
  """
119
143
 
120
144
  kwargs = _get_kwargs(
@@ -130,10 +154,11 @@ async def asyncio(
130
154
  connection_name: str,
131
155
  *,
132
156
  client: Client,
133
- ) -> IntegrationConnection | None:
134
- """Get integration
157
+ ) -> Union[Error, IntegrationConnection] | None:
158
+ """Get integration connection
135
159
 
136
- Returns an integration connection by integration name and connection name.
160
+ Returns detailed information about an integration connection including its provider type,
161
+ configuration (secrets are masked), and usage status.
137
162
 
138
163
  Args:
139
164
  connection_name (str):
@@ -143,7 +168,7 @@ async def asyncio(
143
168
  httpx.TimeoutException: If the request takes longer than Client.timeout.
144
169
 
145
170
  Returns:
146
- IntegrationConnection
171
+ Union[Error, IntegrationConnection]
147
172
  """
148
173
 
149
174
  return (
@@ -44,7 +44,7 @@ def sync_detailed(
44
44
  *,
45
45
  client: Client,
46
46
  ) -> Response[Any]:
47
- """Get integration model endpoint configurations
47
+ """Get integration connection model
48
48
 
49
49
  Returns a model for an integration connection by ID.
50
50
 
@@ -78,7 +78,7 @@ async def asyncio_detailed(
78
78
  *,
79
79
  client: Client,
80
80
  ) -> Response[Any]:
81
- """Get integration model endpoint configurations
81
+ """Get integration connection model
82
82
 
83
83
  Returns a model for an integration connection by ID.
84
84
 
@@ -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,7 +21,7 @@ def _get_kwargs() -> dict[str, Any]:
20
21
 
21
22
  def _parse_response(
22
23
  *, client: Client, response: httpx.Response
23
- ) -> list["IntegrationConnection"] | None:
24
+ ) -> Union[Error, list["IntegrationConnection"]] | None:
24
25
  if response.status_code == 200:
25
26
  response_200 = []
26
27
  _response_200 = response.json()
@@ -30,6 +31,18 @@ def _parse_response(
30
31
  response_200.append(response_200_item)
31
32
 
32
33
  return response_200
34
+ if response.status_code == 401:
35
+ response_401 = Error.from_dict(response.json())
36
+
37
+ return response_401
38
+ if response.status_code == 403:
39
+ response_403 = Error.from_dict(response.json())
40
+
41
+ return response_403
42
+ if response.status_code == 500:
43
+ response_500 = Error.from_dict(response.json())
44
+
45
+ return response_500
33
46
  if client.raise_on_unexpected_status:
34
47
  raise errors.UnexpectedStatus(response.status_code, response.content)
35
48
  else:
@@ -38,7 +51,7 @@ def _parse_response(
38
51
 
39
52
  def _build_response(
40
53
  *, client: Client, response: httpx.Response
41
- ) -> Response[list["IntegrationConnection"]]:
54
+ ) -> Response[Union[Error, list["IntegrationConnection"]]]:
42
55
  return Response(
43
56
  status_code=HTTPStatus(response.status_code),
44
57
  content=response.content,
@@ -50,17 +63,18 @@ def _build_response(
50
63
  def sync_detailed(
51
64
  *,
52
65
  client: Client,
53
- ) -> Response[list["IntegrationConnection"]]:
54
- """List integrations connections
66
+ ) -> Response[Union[Error, list["IntegrationConnection"]]]:
67
+ """List integration connections
55
68
 
56
- Returns a list of all connections integrations in the workspace.
69
+ Returns all configured integration connections in the workspace. Each connection stores credentials
70
+ and settings for an external service (LLM provider, API, database).
57
71
 
58
72
  Raises:
59
73
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
60
74
  httpx.TimeoutException: If the request takes longer than Client.timeout.
61
75
 
62
76
  Returns:
63
- Response[list['IntegrationConnection']]
77
+ Response[Union[Error, list['IntegrationConnection']]]
64
78
  """
65
79
 
66
80
  kwargs = _get_kwargs()
@@ -75,17 +89,18 @@ def sync_detailed(
75
89
  def sync(
76
90
  *,
77
91
  client: Client,
78
- ) -> list["IntegrationConnection"] | None:
79
- """List integrations connections
92
+ ) -> Union[Error, list["IntegrationConnection"]] | None:
93
+ """List integration connections
80
94
 
81
- Returns a list of all connections integrations in the workspace.
95
+ Returns all configured integration connections in the workspace. Each connection stores credentials
96
+ and settings for an external service (LLM provider, API, database).
82
97
 
83
98
  Raises:
84
99
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
85
100
  httpx.TimeoutException: If the request takes longer than Client.timeout.
86
101
 
87
102
  Returns:
88
- list['IntegrationConnection']
103
+ Union[Error, list['IntegrationConnection']]
89
104
  """
90
105
 
91
106
  return sync_detailed(
@@ -96,17 +111,18 @@ def sync(
96
111
  async def asyncio_detailed(
97
112
  *,
98
113
  client: Client,
99
- ) -> Response[list["IntegrationConnection"]]:
100
- """List integrations connections
114
+ ) -> Response[Union[Error, list["IntegrationConnection"]]]:
115
+ """List integration connections
101
116
 
102
- Returns a list of all connections integrations in the workspace.
117
+ Returns all configured integration connections in the workspace. Each connection stores credentials
118
+ and settings for an external service (LLM provider, API, database).
103
119
 
104
120
  Raises:
105
121
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
122
  httpx.TimeoutException: If the request takes longer than Client.timeout.
107
123
 
108
124
  Returns:
109
- Response[list['IntegrationConnection']]
125
+ Response[Union[Error, list['IntegrationConnection']]]
110
126
  """
111
127
 
112
128
  kwargs = _get_kwargs()
@@ -119,17 +135,18 @@ async def asyncio_detailed(
119
135
  async def asyncio(
120
136
  *,
121
137
  client: Client,
122
- ) -> list["IntegrationConnection"] | None:
123
- """List integrations connections
138
+ ) -> Union[Error, list["IntegrationConnection"]] | None:
139
+ """List integration connections
124
140
 
125
- Returns a list of all connections integrations in the workspace.
141
+ Returns all configured integration connections in the workspace. Each connection stores credentials
142
+ and settings for an external service (LLM provider, API, database).
126
143
 
127
144
  Raises:
128
145
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
129
146
  httpx.TimeoutException: If the request takes longer than Client.timeout.
130
147
 
131
148
  Returns:
132
- list['IntegrationConnection']
149
+ Union[Error, list['IntegrationConnection']]
133
150
  """
134
151
 
135
152
  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
 
@@ -33,18 +34,42 @@ def _get_kwargs(
33
34
  return _kwargs
34
35
 
35
36
 
36
- def _parse_response(*, client: Client, response: httpx.Response) -> IntegrationConnection | None:
37
+ def _parse_response(
38
+ *, client: Client, response: httpx.Response
39
+ ) -> Union[Error, IntegrationConnection] | None:
37
40
  if response.status_code == 200:
38
41
  response_200 = IntegrationConnection.from_dict(response.json())
39
42
 
40
43
  return response_200
44
+ if response.status_code == 400:
45
+ response_400 = Error.from_dict(response.json())
46
+
47
+ return response_400
48
+ if response.status_code == 401:
49
+ response_401 = Error.from_dict(response.json())
50
+
51
+ return response_401
52
+ if response.status_code == 403:
53
+ response_403 = Error.from_dict(response.json())
54
+
55
+ return response_403
56
+ if response.status_code == 404:
57
+ response_404 = Error.from_dict(response.json())
58
+
59
+ return response_404
60
+ if response.status_code == 500:
61
+ response_500 = Error.from_dict(response.json())
62
+
63
+ return response_500
41
64
  if client.raise_on_unexpected_status:
42
65
  raise errors.UnexpectedStatus(response.status_code, response.content)
43
66
  else:
44
67
  return None
45
68
 
46
69
 
47
- def _build_response(*, client: Client, response: httpx.Response) -> Response[IntegrationConnection]:
70
+ def _build_response(
71
+ *, client: Client, response: httpx.Response
72
+ ) -> Response[Union[Error, IntegrationConnection]]:
48
73
  return Response(
49
74
  status_code=HTTPStatus(response.status_code),
50
75
  content=response.content,
@@ -58,21 +83,23 @@ def sync_detailed(
58
83
  *,
59
84
  client: Client,
60
85
  body: IntegrationConnection,
61
- ) -> Response[IntegrationConnection]:
86
+ ) -> Response[Union[Error, IntegrationConnection]]:
62
87
  """Update integration connection
63
88
 
64
- Update an integration connection by integration name and connection name.
89
+ Updates an integration connection's configuration or credentials. Changes take effect immediately
90
+ for all resources using this connection.
65
91
 
66
92
  Args:
67
93
  connection_name (str):
68
- body (IntegrationConnection): Integration Connection
94
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
95
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
69
96
 
70
97
  Raises:
71
98
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
72
99
  httpx.TimeoutException: If the request takes longer than Client.timeout.
73
100
 
74
101
  Returns:
75
- Response[IntegrationConnection]
102
+ Response[Union[Error, IntegrationConnection]]
76
103
  """
77
104
 
78
105
  kwargs = _get_kwargs(
@@ -92,21 +119,23 @@ def sync(
92
119
  *,
93
120
  client: Client,
94
121
  body: IntegrationConnection,
95
- ) -> IntegrationConnection | None:
122
+ ) -> Union[Error, IntegrationConnection] | None:
96
123
  """Update integration connection
97
124
 
98
- Update an integration connection by integration name and connection name.
125
+ Updates an integration connection's configuration or credentials. Changes take effect immediately
126
+ for all resources using this connection.
99
127
 
100
128
  Args:
101
129
  connection_name (str):
102
- body (IntegrationConnection): Integration Connection
130
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
131
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
103
132
 
104
133
  Raises:
105
134
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
106
135
  httpx.TimeoutException: If the request takes longer than Client.timeout.
107
136
 
108
137
  Returns:
109
- IntegrationConnection
138
+ Union[Error, IntegrationConnection]
110
139
  """
111
140
 
112
141
  return sync_detailed(
@@ -121,21 +150,23 @@ async def asyncio_detailed(
121
150
  *,
122
151
  client: Client,
123
152
  body: IntegrationConnection,
124
- ) -> Response[IntegrationConnection]:
153
+ ) -> Response[Union[Error, IntegrationConnection]]:
125
154
  """Update integration connection
126
155
 
127
- Update an integration connection by integration name and connection name.
156
+ Updates an integration connection's configuration or credentials. Changes take effect immediately
157
+ for all resources using this connection.
128
158
 
129
159
  Args:
130
160
  connection_name (str):
131
- body (IntegrationConnection): Integration Connection
161
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
162
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
132
163
 
133
164
  Raises:
134
165
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
135
166
  httpx.TimeoutException: If the request takes longer than Client.timeout.
136
167
 
137
168
  Returns:
138
- Response[IntegrationConnection]
169
+ Response[Union[Error, IntegrationConnection]]
139
170
  """
140
171
 
141
172
  kwargs = _get_kwargs(
@@ -153,21 +184,23 @@ async def asyncio(
153
184
  *,
154
185
  client: Client,
155
186
  body: IntegrationConnection,
156
- ) -> IntegrationConnection | None:
187
+ ) -> Union[Error, IntegrationConnection] | None:
157
188
  """Update integration connection
158
189
 
159
- Update an integration connection by integration name and connection name.
190
+ Updates an integration connection's configuration or credentials. Changes take effect immediately
191
+ for all resources using this connection.
160
192
 
161
193
  Args:
162
194
  connection_name (str):
163
- body (IntegrationConnection): Integration Connection
195
+ body (IntegrationConnection): Configured connection to an external service (LLM provider,
196
+ API, SaaS, database) storing credentials and settings for use by workspace resources.
164
197
 
165
198
  Raises:
166
199
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
167
200
  httpx.TimeoutException: If the request takes longer than Client.timeout.
168
201
 
169
202
  Returns:
170
- IntegrationConnection
203
+ Union[Error, IntegrationConnection]
171
204
  """
172
205
 
173
206
  return (
@@ -57,12 +57,14 @@ def sync_detailed(
57
57
  client: Client,
58
58
  body: Job,
59
59
  ) -> Response[Job]:
60
- """Create job
60
+ """Create batch job
61
61
 
62
- Creates a job.
62
+ Creates a new batch job definition for parallel AI task processing. Jobs can be triggered via API or
63
+ scheduled, and support configurable parallelism, timeouts, and retry logic.
63
64
 
64
65
  Args:
65
- body (Job): Job
66
+ body (Job): Batch processing job definition for running parallel AI tasks. Jobs can
67
+ execute multiple tasks concurrently with configurable parallelism, retries, and timeouts.
66
68
 
67
69
  Raises:
68
70
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -88,12 +90,14 @@ def sync(
88
90
  client: Client,
89
91
  body: Job,
90
92
  ) -> Job | None:
91
- """Create job
93
+ """Create batch job
92
94
 
93
- Creates a job.
95
+ Creates a new batch job definition for parallel AI task processing. Jobs can be triggered via API or
96
+ scheduled, and support configurable parallelism, timeouts, and retry logic.
94
97
 
95
98
  Args:
96
- body (Job): Job
99
+ body (Job): Batch processing job definition for running parallel AI tasks. Jobs can
100
+ execute multiple tasks concurrently with configurable parallelism, retries, and timeouts.
97
101
 
98
102
  Raises:
99
103
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -114,12 +118,14 @@ async def asyncio_detailed(
114
118
  client: Client,
115
119
  body: Job,
116
120
  ) -> Response[Job]:
117
- """Create job
121
+ """Create batch job
118
122
 
119
- Creates a job.
123
+ Creates a new batch job definition for parallel AI task processing. Jobs can be triggered via API or
124
+ scheduled, and support configurable parallelism, timeouts, and retry logic.
120
125
 
121
126
  Args:
122
- body (Job): Job
127
+ body (Job): Batch processing job definition for running parallel AI tasks. Jobs can
128
+ execute multiple tasks concurrently with configurable parallelism, retries, and timeouts.
123
129
 
124
130
  Raises:
125
131
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -143,12 +149,14 @@ async def asyncio(
143
149
  client: Client,
144
150
  body: Job,
145
151
  ) -> Job | None:
146
- """Create job
152
+ """Create batch job
147
153
 
148
- Creates a job.
154
+ Creates a new batch job definition for parallel AI task processing. Jobs can be triggered via API or
155
+ scheduled, and support configurable parallelism, timeouts, and retry logic.
149
156
 
150
157
  Args:
151
- body (Job): Job
158
+ body (Job): Batch processing job definition for running parallel AI tasks. Jobs can
159
+ execute multiple tasks concurrently with configurable parallelism, retries, and timeouts.
152
160
 
153
161
  Raises:
154
162
  errors.UnexpectedStatus: If the server returns an undocumented status code and Client.raise_on_unexpected_status is True.
@@ -6,7 +6,7 @@ import httpx
6
6
  from ... import errors
7
7
  from ...client import Client
8
8
  from ...models.create_job_execution_request import CreateJobExecutionRequest
9
- from ...models.job_execution import JobExecution
9
+ from ...models.create_job_execution_response import CreateJobExecutionResponse
10
10
  from ...types import Response
11
11
 
12
12
 
@@ -34,9 +34,11 @@ def _get_kwargs(
34
34
  return _kwargs
35
35
 
36
36
 
37
- def _parse_response(*, client: Client, response: httpx.Response) -> Union[Any, JobExecution] | None:
37
+ def _parse_response(
38
+ *, client: Client, response: httpx.Response
39
+ ) -> Union[Any, CreateJobExecutionResponse] | None:
38
40
  if response.status_code == 200:
39
- response_200 = JobExecution.from_dict(response.json())
41
+ response_200 = CreateJobExecutionResponse.from_dict(response.json())
40
42
 
41
43
  return response_200
42
44
  if response.status_code == 400:
@@ -53,7 +55,7 @@ def _parse_response(*, client: Client, response: httpx.Response) -> Union[Any, J
53
55
 
54
56
  def _build_response(
55
57
  *, client: Client, response: httpx.Response
56
- ) -> Response[Union[Any, JobExecution]]:
58
+ ) -> Response[Union[Any, CreateJobExecutionResponse]]:
57
59
  return Response(
58
60
  status_code=HTTPStatus(response.status_code),
59
61
  content=response.content,
@@ -67,10 +69,11 @@ def sync_detailed(
67
69
  *,
68
70
  client: Client,
69
71
  body: CreateJobExecutionRequest,
70
- ) -> Response[Union[Any, JobExecution]]:
72
+ ) -> Response[Union[Any, CreateJobExecutionResponse]]:
71
73
  """Create job execution
72
74
 
73
- Creates a new execution for a job by name.
75
+ Triggers a new execution of the batch job. Each execution runs multiple tasks in parallel according
76
+ to the job's configured concurrency. Tasks can be parameterized via the request body.
74
77
 
75
78
  Args:
76
79
  job_id (str):
@@ -81,7 +84,7 @@ def sync_detailed(
81
84
  httpx.TimeoutException: If the request takes longer than Client.timeout.
82
85
 
83
86
  Returns:
84
- Response[Union[Any, JobExecution]]
87
+ Response[Union[Any, CreateJobExecutionResponse]]
85
88
  """
86
89
 
87
90
  kwargs = _get_kwargs(
@@ -101,10 +104,11 @@ def sync(
101
104
  *,
102
105
  client: Client,
103
106
  body: CreateJobExecutionRequest,
104
- ) -> Union[Any, JobExecution] | None:
107
+ ) -> Union[Any, CreateJobExecutionResponse] | None:
105
108
  """Create job execution
106
109
 
107
- Creates a new execution for a job by name.
110
+ Triggers a new execution of the batch job. Each execution runs multiple tasks in parallel according
111
+ to the job's configured concurrency. Tasks can be parameterized via the request body.
108
112
 
109
113
  Args:
110
114
  job_id (str):
@@ -115,7 +119,7 @@ def sync(
115
119
  httpx.TimeoutException: If the request takes longer than Client.timeout.
116
120
 
117
121
  Returns:
118
- Union[Any, JobExecution]
122
+ Union[Any, CreateJobExecutionResponse]
119
123
  """
120
124
 
121
125
  return sync_detailed(
@@ -130,10 +134,11 @@ async def asyncio_detailed(
130
134
  *,
131
135
  client: Client,
132
136
  body: CreateJobExecutionRequest,
133
- ) -> Response[Union[Any, JobExecution]]:
137
+ ) -> Response[Union[Any, CreateJobExecutionResponse]]:
134
138
  """Create job execution
135
139
 
136
- Creates a new execution for a job by name.
140
+ Triggers a new execution of the batch job. Each execution runs multiple tasks in parallel according
141
+ to the job's configured concurrency. Tasks can be parameterized via the request body.
137
142
 
138
143
  Args:
139
144
  job_id (str):
@@ -144,7 +149,7 @@ async def asyncio_detailed(
144
149
  httpx.TimeoutException: If the request takes longer than Client.timeout.
145
150
 
146
151
  Returns:
147
- Response[Union[Any, JobExecution]]
152
+ Response[Union[Any, CreateJobExecutionResponse]]
148
153
  """
149
154
 
150
155
  kwargs = _get_kwargs(
@@ -162,10 +167,11 @@ async def asyncio(
162
167
  *,
163
168
  client: Client,
164
169
  body: CreateJobExecutionRequest,
165
- ) -> Union[Any, JobExecution] | None:
170
+ ) -> Union[Any, CreateJobExecutionResponse] | None:
166
171
  """Create job execution
167
172
 
168
- Creates a new execution for a job by name.
173
+ Triggers a new execution of the batch job. Each execution runs multiple tasks in parallel according
174
+ to the job's configured concurrency. Tasks can be parameterized via the request body.
169
175
 
170
176
  Args:
171
177
  job_id (str):
@@ -176,7 +182,7 @@ async def asyncio(
176
182
  httpx.TimeoutException: If the request takes longer than Client.timeout.
177
183
 
178
184
  Returns:
179
- Union[Any, JobExecution]
185
+ Union[Any, CreateJobExecutionResponse]
180
186
  """
181
187
 
182
188
  return (