@blaxel/core 0.2.59-preview.42 → 0.2.59-preview.43

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 (63) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/client/sdk.gen.js +142 -155
  3. package/dist/cjs/common/settings.js +2 -2
  4. package/dist/cjs/sandbox/action.js +2 -2
  5. package/dist/cjs/sandbox/client/sdk.gen.js +1 -103
  6. package/dist/cjs/sandbox/interpreter.js +7 -4
  7. package/dist/cjs/sandbox/preview.js +11 -8
  8. package/dist/cjs/sandbox/sandbox.js +3 -3
  9. package/dist/cjs/sandbox/session.js +11 -11
  10. package/dist/cjs/sandbox/types.js +4 -1
  11. package/dist/cjs/tools/index.js +1 -3
  12. package/dist/cjs/types/client/sdk.gen.d.ts +177 -166
  13. package/dist/cjs/types/client/types.gen.d.ts +1805 -1375
  14. package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +1 -31
  15. package/dist/cjs/types/sandbox/client/types.gen.d.ts +0 -83
  16. package/dist/cjs/types/sandbox/preview.d.ts +2 -2
  17. package/dist/cjs/types/sandbox/sandbox.d.ts +3 -3
  18. package/dist/cjs/types/volume/index.d.ts +3 -3
  19. package/dist/cjs/volume/index.js +12 -14
  20. package/dist/cjs-browser/.tsbuildinfo +1 -1
  21. package/dist/cjs-browser/client/sdk.gen.js +142 -155
  22. package/dist/cjs-browser/common/settings.js +2 -2
  23. package/dist/cjs-browser/sandbox/action.js +2 -2
  24. package/dist/cjs-browser/sandbox/client/sdk.gen.js +1 -103
  25. package/dist/cjs-browser/sandbox/interpreter.js +7 -4
  26. package/dist/cjs-browser/sandbox/preview.js +11 -8
  27. package/dist/cjs-browser/sandbox/sandbox.js +3 -3
  28. package/dist/cjs-browser/sandbox/session.js +11 -11
  29. package/dist/cjs-browser/sandbox/types.js +4 -1
  30. package/dist/cjs-browser/tools/index.js +1 -3
  31. package/dist/cjs-browser/types/client/sdk.gen.d.ts +177 -166
  32. package/dist/cjs-browser/types/client/types.gen.d.ts +1805 -1375
  33. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +1 -31
  34. package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +0 -83
  35. package/dist/cjs-browser/types/sandbox/preview.d.ts +2 -2
  36. package/dist/cjs-browser/types/sandbox/sandbox.d.ts +3 -3
  37. package/dist/cjs-browser/types/volume/index.d.ts +3 -3
  38. package/dist/cjs-browser/volume/index.js +12 -14
  39. package/dist/esm/.tsbuildinfo +1 -1
  40. package/dist/esm/client/sdk.gen.js +140 -151
  41. package/dist/esm/common/settings.js +2 -2
  42. package/dist/esm/sandbox/action.js +2 -2
  43. package/dist/esm/sandbox/client/sdk.gen.js +0 -96
  44. package/dist/esm/sandbox/interpreter.js +7 -4
  45. package/dist/esm/sandbox/preview.js +11 -8
  46. package/dist/esm/sandbox/sandbox.js +3 -3
  47. package/dist/esm/sandbox/session.js +11 -11
  48. package/dist/esm/sandbox/types.js +4 -1
  49. package/dist/esm/tools/index.js +1 -3
  50. package/dist/esm/volume/index.js +12 -14
  51. package/dist/esm-browser/.tsbuildinfo +1 -1
  52. package/dist/esm-browser/client/sdk.gen.js +140 -151
  53. package/dist/esm-browser/common/settings.js +2 -2
  54. package/dist/esm-browser/sandbox/action.js +2 -2
  55. package/dist/esm-browser/sandbox/client/sdk.gen.js +0 -96
  56. package/dist/esm-browser/sandbox/interpreter.js +7 -4
  57. package/dist/esm-browser/sandbox/preview.js +11 -8
  58. package/dist/esm-browser/sandbox/sandbox.js +3 -3
  59. package/dist/esm-browser/sandbox/session.js +11 -11
  60. package/dist/esm-browser/sandbox/types.js +4 -1
  61. package/dist/esm-browser/tools/index.js +1 -3
  62. package/dist/esm-browser/volume/index.js +12 -14
  63. package/package.json +1 -1
@@ -2,6 +2,7 @@
2
2
  import { client as _heyApiClient } from "./client.gen.js";
3
3
  /**
4
4
  * List all agents
5
+ * Returns all AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
5
6
  */
6
7
  export const listAgents = (options) => {
7
8
  return (options?.client ?? _heyApiClient).get({
@@ -16,7 +17,8 @@ export const listAgents = (options) => {
16
17
  });
17
18
  };
18
19
  /**
19
- * Create agent by name
20
+ * Create agent
21
+ * Creates a new AI agent deployment from your code. The agent will be built and deployed as a serverless auto-scaling endpoint. Use the Blaxel CLI 'bl deploy' for a simpler deployment experience.
20
22
  */
21
23
  export const createAgent = (options) => {
22
24
  return (options.client ?? _heyApiClient).post({
@@ -35,7 +37,8 @@ export const createAgent = (options) => {
35
37
  });
36
38
  };
37
39
  /**
38
- * Delete agent by name
40
+ * Delete agent
41
+ * Permanently deletes an agent and all its deployment history. The agent's inference endpoint will immediately stop responding. This action cannot be undone.
39
42
  */
40
43
  export const deleteAgent = (options) => {
41
44
  return (options.client ?? _heyApiClient).delete({
@@ -50,7 +53,8 @@ export const deleteAgent = (options) => {
50
53
  });
51
54
  };
52
55
  /**
53
- * Get agent by name
56
+ * Get agent
57
+ * Returns detailed information about an agent including its current deployment status, configuration, events history, and inference endpoint URL.
54
58
  */
55
59
  export const getAgent = (options) => {
56
60
  return (options.client ?? _heyApiClient).get({
@@ -65,7 +69,8 @@ export const getAgent = (options) => {
65
69
  });
66
70
  };
67
71
  /**
68
- * Update agent by name
72
+ * Update agent
73
+ * Updates an agent's configuration and triggers a new deployment. Changes to runtime settings, environment variables, or scaling parameters will be applied on the next deployment.
69
74
  */
70
75
  export const updateAgent = (options) => {
71
76
  return (options.client ?? _heyApiClient).put({
@@ -99,7 +104,8 @@ export const listAgentRevisions = (options) => {
99
104
  });
100
105
  };
101
106
  /**
102
- * List all configurations
107
+ * Get platform configuration
108
+ * Returns global platform configuration including available regions, countries, continents, and private locations for deployment policies.
103
109
  */
104
110
  export const getConfiguration = (options) => {
105
111
  return (options?.client ?? _heyApiClient).get({
@@ -114,7 +120,8 @@ export const getConfiguration = (options) => {
114
120
  });
115
121
  };
116
122
  /**
117
- * List all custom domains
123
+ * List custom domains
124
+ * Returns all custom domains configured in the workspace. Custom domains allow serving preview deployments under your own domain (e.g., preview.yourdomain.com).
118
125
  */
119
126
  export const listCustomDomains = (options) => {
120
127
  return (options?.client ?? _heyApiClient).get({
@@ -130,6 +137,7 @@ export const listCustomDomains = (options) => {
130
137
  };
131
138
  /**
132
139
  * Create custom domain
140
+ * Creates a new custom domain for preview deployments. After creation, you must configure DNS records and verify domain ownership before it becomes active.
133
141
  */
134
142
  export const createCustomDomain = (options) => {
135
143
  return (options.client ?? _heyApiClient).post({
@@ -212,7 +220,8 @@ export const verifyCustomDomain = (options) => {
212
220
  });
213
221
  };
214
222
  /**
215
- * List all functions
223
+ * List all MCP servers
224
+ * Returns all MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
216
225
  */
217
226
  export const listFunctions = (options) => {
218
227
  return (options?.client ?? _heyApiClient).get({
@@ -227,7 +236,8 @@ export const listFunctions = (options) => {
227
236
  });
228
237
  };
229
238
  /**
230
- * Create function
239
+ * Create MCP server
240
+ * Creates a new MCP server function deployment. The function will expose tools via the Model Context Protocol that can be used by AI agents. Supports streamable HTTP transport.
231
241
  */
232
242
  export const createFunction = (options) => {
233
243
  return (options.client ?? _heyApiClient).post({
@@ -246,7 +256,8 @@ export const createFunction = (options) => {
246
256
  });
247
257
  };
248
258
  /**
249
- * Delete function by name
259
+ * Delete MCP server
260
+ * Permanently deletes an MCP server function and all its deployment history. Any agents using this function's tools will no longer be able to invoke them.
250
261
  */
251
262
  export const deleteFunction = (options) => {
252
263
  return (options.client ?? _heyApiClient).delete({
@@ -261,7 +272,8 @@ export const deleteFunction = (options) => {
261
272
  });
262
273
  };
263
274
  /**
264
- * Get function by name
275
+ * Get MCP server
276
+ * Returns detailed information about an MCP server function including its deployment status, available tools, transport configuration, and endpoint URL.
265
277
  */
266
278
  export const getFunction = (options) => {
267
279
  return (options.client ?? _heyApiClient).get({
@@ -276,7 +288,8 @@ export const getFunction = (options) => {
276
288
  });
277
289
  };
278
290
  /**
279
- * Update function by name
291
+ * Update MCP server
292
+ * Updates an MCP server function's configuration and triggers a new deployment. Changes to runtime settings, integrations, or transport protocol will be applied on the next deployment.
280
293
  */
281
294
  export const updateFunction = (options) => {
282
295
  return (options.client ?? _heyApiClient).put({
@@ -311,8 +324,8 @@ export const listFunctionRevisions = (options) => {
311
324
  });
312
325
  };
313
326
  /**
314
- * Cleanup unused images
315
- * Deletes all unused images in the workspace. Only removes images that are not currently being used by any agents, functions, sandboxes, or jobs.
327
+ * Cleanup unused container images
328
+ * Cleans up unused container images in the workspace registry. Only removes images that are not currently referenced by any active agent, function, sandbox, or job deployment.
316
329
  */
317
330
  export const cleanupImages = (options) => {
318
331
  return (options?.client ?? _heyApiClient).delete({
@@ -327,8 +340,8 @@ export const cleanupImages = (options) => {
327
340
  });
328
341
  };
329
342
  /**
330
- * List images
331
- * Returns a list of all images in the workspace grouped by repository with tags.
343
+ * List container images
344
+ * Returns all container images stored in the workspace registry, grouped by repository with their available tags. Images are created during deployments of agents, functions, sandboxes, and jobs.
332
345
  */
333
346
  export const listImages = (options) => {
334
347
  return (options?.client ?? _heyApiClient).get({
@@ -343,8 +356,8 @@ export const listImages = (options) => {
343
356
  });
344
357
  };
345
358
  /**
346
- * Delete image by name
347
- * Deletes an image by name.
359
+ * Delete container image
360
+ * Deletes a container image and all its tags from the workspace registry. Will fail if the image is currently in use by an active deployment.
348
361
  */
349
362
  export const deleteImage = (options) => {
350
363
  return (options.client ?? _heyApiClient).delete({
@@ -359,8 +372,8 @@ export const deleteImage = (options) => {
359
372
  });
360
373
  };
361
374
  /**
362
- * Get image by name
363
- * Returns an image by name.
375
+ * Get container image
376
+ * Returns detailed information about a container image including all available tags, creation dates, and size information.
364
377
  */
365
378
  export const getImage = (options) => {
366
379
  return (options.client ?? _heyApiClient).get({
@@ -375,8 +388,8 @@ export const getImage = (options) => {
375
388
  });
376
389
  };
377
390
  /**
378
- * Delete image tag
379
- * Deletes a specific tag from an image.
391
+ * Delete container image tag
392
+ * Deletes a specific tag from a container image. The underlying image layers are kept if other tags reference them. Will fail if the tag is currently in use.
380
393
  */
381
394
  export const deleteImageTag = (options) => {
382
395
  return (options.client ?? _heyApiClient).delete({
@@ -391,8 +404,8 @@ export const deleteImageTag = (options) => {
391
404
  });
392
405
  };
393
406
  /**
394
- * List integrations connections
395
- * Returns integration information by name.
407
+ * Get integration provider info
408
+ * Returns metadata about an integration provider including available endpoints, authentication methods, and supported models or features.
396
409
  */
397
410
  export const getIntegration = (options) => {
398
411
  return (options.client ?? _heyApiClient).get({
@@ -407,8 +420,8 @@ export const getIntegration = (options) => {
407
420
  });
408
421
  };
409
422
  /**
410
- * List integrations connections
411
- * Returns a list of all connections integrations in the workspace.
423
+ * List integration connections
424
+ * Returns all configured integration connections in the workspace. Each connection stores credentials and settings for an external service (LLM provider, API, database).
412
425
  */
413
426
  export const listIntegrationConnections = (options) => {
414
427
  return (options?.client ?? _heyApiClient).get({
@@ -423,8 +436,8 @@ export const listIntegrationConnections = (options) => {
423
436
  });
424
437
  };
425
438
  /**
426
- * Create integration
427
- * Create a connection for an integration.
439
+ * Create integration connection
440
+ * Creates a new integration connection with credentials for an external service. The connection can then be used by models, functions, and other resources to authenticate with the service.
428
441
  */
429
442
  export const createIntegrationConnection = (options) => {
430
443
  return (options.client ?? _heyApiClient).post({
@@ -443,8 +456,8 @@ export const createIntegrationConnection = (options) => {
443
456
  });
444
457
  };
445
458
  /**
446
- * Delete integration
447
- * Deletes an integration connection by integration name and connection name.
459
+ * Delete integration connection
460
+ * Permanently deletes an integration connection. Any resources using this connection will lose access to the external service.
448
461
  */
449
462
  export const deleteIntegrationConnection = (options) => {
450
463
  return (options.client ?? _heyApiClient).delete({
@@ -459,8 +472,8 @@ export const deleteIntegrationConnection = (options) => {
459
472
  });
460
473
  };
461
474
  /**
462
- * Get integration
463
- * Returns an integration connection by integration name and connection name.
475
+ * Get integration connection
476
+ * Returns detailed information about an integration connection including its provider type, configuration (secrets are masked), and usage status.
464
477
  */
465
478
  export const getIntegrationConnection = (options) => {
466
479
  return (options.client ?? _heyApiClient).get({
@@ -476,7 +489,7 @@ export const getIntegrationConnection = (options) => {
476
489
  };
477
490
  /**
478
491
  * Update integration connection
479
- * Update an integration connection by integration name and connection name.
492
+ * Updates an integration connection's configuration or credentials. Changes take effect immediately for all resources using this connection.
480
493
  */
481
494
  export const updateIntegrationConnection = (options) => {
482
495
  return (options.client ?? _heyApiClient).put({
@@ -527,7 +540,7 @@ export const listIntegrationConnectionModels = (options) => {
527
540
  });
528
541
  };
529
542
  /**
530
- * Get integration model endpoint configurations
543
+ * Get integration connection model
531
544
  * Returns a model for an integration connection by ID.
532
545
  */
533
546
  export const getIntegrationConnectionModel = (options) => {
@@ -543,8 +556,8 @@ export const getIntegrationConnectionModel = (options) => {
543
556
  });
544
557
  };
545
558
  /**
546
- * List jobs
547
- * Returns a list of all jobs in the workspace.
559
+ * List batch jobs
560
+ * Returns all batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings.
548
561
  */
549
562
  export const listJobs = (options) => {
550
563
  return (options?.client ?? _heyApiClient).get({
@@ -559,8 +572,8 @@ export const listJobs = (options) => {
559
572
  });
560
573
  };
561
574
  /**
562
- * Create job
563
- * Creates a job.
575
+ * Create batch job
576
+ * Creates a new batch job definition for parallel AI task processing. Jobs can be triggered via API or scheduled, and support configurable parallelism, timeouts, and retry logic.
564
577
  */
565
578
  export const createJob = (options) => {
566
579
  return (options.client ?? _heyApiClient).post({
@@ -579,8 +592,8 @@ export const createJob = (options) => {
579
592
  });
580
593
  };
581
594
  /**
582
- * Delete job
583
- * Deletes a job by name.
595
+ * Delete batch job
596
+ * Permanently deletes a batch job definition and cancels any running executions. Historical execution data will be retained for a limited time.
584
597
  */
585
598
  export const deleteJob = (options) => {
586
599
  return (options.client ?? _heyApiClient).delete({
@@ -595,8 +608,8 @@ export const deleteJob = (options) => {
595
608
  });
596
609
  };
597
610
  /**
598
- * Get job
599
- * Returns a job by name.
611
+ * Get batch job
612
+ * Returns detailed information about a batch job including its runtime configuration, execution history, and deployment status.
600
613
  */
601
614
  export const getJob = (options) => {
602
615
  return (options.client ?? _heyApiClient).get({
@@ -611,8 +624,8 @@ export const getJob = (options) => {
611
624
  });
612
625
  };
613
626
  /**
614
- * Create or update job
615
- * Update a job by name.
627
+ * Update batch job
628
+ * Updates a batch job's configuration. Changes affect new executions; running executions continue with their original configuration.
616
629
  */
617
630
  export const updateJob = (options) => {
618
631
  return (options.client ?? _heyApiClient).put({
@@ -632,7 +645,7 @@ export const updateJob = (options) => {
632
645
  };
633
646
  /**
634
647
  * List job executions
635
- * Returns a list of all executions for a job by name.
648
+ * Returns paginated list of executions for a batch job, sorted by creation time. Each execution contains status, task counts, and timing information.
636
649
  */
637
650
  export const listJobExecutions = (options) => {
638
651
  return (options.client ?? _heyApiClient).get({
@@ -648,7 +661,7 @@ export const listJobExecutions = (options) => {
648
661
  };
649
662
  /**
650
663
  * Create job execution
651
- * Creates a new execution for a job by name.
664
+ * Triggers a new execution of the batch job. Each execution runs multiple tasks in parallel according to the job's configured concurrency. Tasks can be parameterized via the request body.
652
665
  */
653
666
  export const createJobExecution = (options) => {
654
667
  return (options.client ?? _heyApiClient).post({
@@ -667,8 +680,8 @@ export const createJobExecution = (options) => {
667
680
  });
668
681
  };
669
682
  /**
670
- * Delete job execution
671
- * Stop an execution for a job by name.
683
+ * Cancel job execution
684
+ * Cancels a running job execution. Tasks already in progress will complete, but no new tasks will be started. The execution status changes to 'cancelling' then 'cancelled'.
672
685
  */
673
686
  export const deleteJobExecution = (options) => {
674
687
  return (options.client ?? _heyApiClient).delete({
@@ -684,7 +697,7 @@ export const deleteJobExecution = (options) => {
684
697
  };
685
698
  /**
686
699
  * Get job execution
687
- * Returns an execution for a job by name.
700
+ * Returns detailed information about a specific job execution including status, task statistics (success/failure/running counts), and timing information.
688
701
  */
689
702
  export const getJobExecution = (options) => {
690
703
  return (options.client ?? _heyApiClient).get({
@@ -715,8 +728,8 @@ export const listJobRevisions = (options) => {
715
728
  });
716
729
  };
717
730
  /**
718
- * List locations
719
- * Returns a list of all locations available with status.
731
+ * List deployment regions
732
+ * Returns all deployment regions with their current availability status and supported hardware flavors. Use this to discover where resources can be deployed.
720
733
  */
721
734
  export const listLocations = (options) => {
722
735
  return (options?.client ?? _heyApiClient).get({
@@ -730,6 +743,10 @@ export const listLocations = (options) => {
730
743
  ...options
731
744
  });
732
745
  };
746
+ /**
747
+ * List MCP Hub servers
748
+ * Returns all pre-built MCP server definitions available in the Blaxel Hub. These can be deployed directly to your workspace with pre-configured tools and integrations.
749
+ */
733
750
  export const listMcpHubDefinitions = (options) => {
734
751
  return (options?.client ?? _heyApiClient).get({
735
752
  security: [
@@ -743,8 +760,8 @@ export const listMcpHubDefinitions = (options) => {
743
760
  });
744
761
  };
745
762
  /**
746
- * List models
747
- * Returns a list of all models in the workspace.
763
+ * List model endpoints
764
+ * Returns all model gateway endpoints configured in the workspace. Each model represents a proxy to an external LLM provider (OpenAI, Anthropic, etc.) with unified access control.
748
765
  */
749
766
  export const listModels = (options) => {
750
767
  return (options?.client ?? _heyApiClient).get({
@@ -759,8 +776,8 @@ export const listModels = (options) => {
759
776
  });
760
777
  };
761
778
  /**
762
- * Create model
763
- * Creates a model.
779
+ * Create model endpoint
780
+ * Creates a new model gateway endpoint that proxies requests to an external LLM provider. Requires an integration connection with valid API credentials for the target provider.
764
781
  */
765
782
  export const createModel = (options) => {
766
783
  return (options.client ?? _heyApiClient).post({
@@ -779,8 +796,8 @@ export const createModel = (options) => {
779
796
  });
780
797
  };
781
798
  /**
782
- * Delete model
783
- * Deletes a model by name.
799
+ * Delete model endpoint
800
+ * Permanently deletes a model gateway endpoint. Any agents or applications using this endpoint will need to be updated to use a different model.
784
801
  */
785
802
  export const deleteModel = (options) => {
786
803
  return (options.client ?? _heyApiClient).delete({
@@ -795,8 +812,8 @@ export const deleteModel = (options) => {
795
812
  });
796
813
  };
797
814
  /**
798
- * Get model
799
- * Returns a model by name.
815
+ * Get model endpoint
816
+ * Returns detailed information about a model gateway endpoint including its provider configuration, integration connection, and usage status.
800
817
  */
801
818
  export const getModel = (options) => {
802
819
  return (options.client ?? _heyApiClient).get({
@@ -811,8 +828,8 @@ export const getModel = (options) => {
811
828
  });
812
829
  };
813
830
  /**
814
- * Create or update model
815
- * Update a model by name.
831
+ * Update model endpoint
832
+ * Updates a model gateway endpoint's configuration. Changes to provider settings or integration connection take effect immediately.
816
833
  */
817
834
  export const updateModel = (options) => {
818
835
  return (options.client ?? _heyApiClient).put({
@@ -847,8 +864,8 @@ export const listModelRevisions = (options) => {
847
864
  });
848
865
  };
849
866
  /**
850
- * List policies
851
- * Returns a list of all policies in the workspace.
867
+ * List governance policies
868
+ * Returns all governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
852
869
  */
853
870
  export const listPolicies = (options) => {
854
871
  return (options?.client ?? _heyApiClient).get({
@@ -863,8 +880,8 @@ export const listPolicies = (options) => {
863
880
  });
864
881
  };
865
882
  /**
866
- * Create policy
867
- * Creates a policy.
883
+ * Create governance policy
884
+ * Creates a new governance policy to control where and how resources are deployed. Policies can restrict deployment to specific regions, countries, or continents for compliance.
868
885
  */
869
886
  export const createPolicy = (options) => {
870
887
  return (options.client ?? _heyApiClient).post({
@@ -883,8 +900,8 @@ export const createPolicy = (options) => {
883
900
  });
884
901
  };
885
902
  /**
886
- * Delete policy
887
- * Deletes a policy by name.
903
+ * Delete governance policy
904
+ * Permanently deletes a governance policy. Resources using this policy will need to be updated to use a different policy.
888
905
  */
889
906
  export const deletePolicy = (options) => {
890
907
  return (options.client ?? _heyApiClient).delete({
@@ -899,8 +916,8 @@ export const deletePolicy = (options) => {
899
916
  });
900
917
  };
901
918
  /**
902
- * Get policy
903
- * Returns a policy by name.
919
+ * Get governance policy
920
+ * Returns detailed information about a governance policy including its type (location, flavor, or maxToken), restrictions, and which resource types it applies to.
904
921
  */
905
922
  export const getPolicy = (options) => {
906
923
  return (options.client ?? _heyApiClient).get({
@@ -915,8 +932,8 @@ export const getPolicy = (options) => {
915
932
  });
916
933
  };
917
934
  /**
918
- * Update policy
919
- * Updates a policy.
935
+ * Update governance policy
936
+ * Updates a governance policy's restrictions. Changes take effect on the next deployment of resources using this policy.
920
937
  */
921
938
  export const updatePolicy = (options) => {
922
939
  return (options.client ?? _heyApiClient).put({
@@ -966,6 +983,10 @@ export const listPublicIps = (options) => {
966
983
  ...options
967
984
  });
968
985
  };
986
+ /**
987
+ * List Sandbox Hub templates
988
+ * Returns all pre-built sandbox templates available in the Blaxel Hub. These include popular development environments with pre-installed tools and frameworks.
989
+ */
969
990
  export const listSandboxHubDefinitions = (options) => {
970
991
  return (options?.client ?? _heyApiClient).get({
971
992
  security: [
@@ -979,8 +1000,8 @@ export const listSandboxHubDefinitions = (options) => {
979
1000
  });
980
1001
  };
981
1002
  /**
982
- * List Sandboxes
983
- * Returns a list of all Sandboxes in the workspace.
1003
+ * List sandboxes
1004
+ * Returns all sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
984
1005
  */
985
1006
  export const listSandboxes = (options) => {
986
1007
  return (options?.client ?? _heyApiClient).get({
@@ -995,8 +1016,8 @@ export const listSandboxes = (options) => {
995
1016
  });
996
1017
  };
997
1018
  /**
998
- * Create Sandbox
999
- * Creates a Sandbox.
1019
+ * Create sandbox
1020
+ * Creates a new sandbox VM for secure AI code execution. Sandboxes automatically scale to zero when idle and resume instantly, preserving memory state including running processes and filesystem.
1000
1021
  */
1001
1022
  export const createSandbox = (options) => {
1002
1023
  return (options.client ?? _heyApiClient).post({
@@ -1015,8 +1036,8 @@ export const createSandbox = (options) => {
1015
1036
  });
1016
1037
  };
1017
1038
  /**
1018
- * Delete Sandbox
1019
- * Deletes a Sandbox by name.
1039
+ * Delete sandbox
1040
+ * Permanently deletes a sandbox and all its data. If no volumes are attached, this guarantees zero data retention (ZDR). This action cannot be undone.
1020
1041
  */
1021
1042
  export const deleteSandbox = (options) => {
1022
1043
  return (options.client ?? _heyApiClient).delete({
@@ -1031,8 +1052,8 @@ export const deleteSandbox = (options) => {
1031
1052
  });
1032
1053
  };
1033
1054
  /**
1034
- * Get Sandbox
1035
- * Returns a Sandbox by name.
1055
+ * Get sandbox
1056
+ * Returns detailed information about a sandbox including its configuration, attached volumes, lifecycle policies, and API endpoint URL.
1036
1057
  */
1037
1058
  export const getSandbox = (options) => {
1038
1059
  return (options.client ?? _heyApiClient).get({
@@ -1047,8 +1068,8 @@ export const getSandbox = (options) => {
1047
1068
  });
1048
1069
  };
1049
1070
  /**
1050
- * Update Sandbox
1051
- * Update a Sandbox by name.
1071
+ * Update sandbox
1072
+ * Updates a sandbox's configuration. Note that certain changes (like image or memory) may reset the sandbox state. Use lifecycle policies to control automatic cleanup.
1052
1073
  */
1053
1074
  export const updateSandbox = (options) => {
1054
1075
  return (options.client ?? _heyApiClient).put({
@@ -1207,40 +1228,8 @@ export const deleteSandboxPreviewToken = (options) => {
1207
1228
  });
1208
1229
  };
1209
1230
  /**
1210
- * Start Sandbox
1211
- * Starts a Sandbox by name.
1212
- */
1213
- export const startSandbox = (options) => {
1214
- return (options.client ?? _heyApiClient).put({
1215
- security: [
1216
- {
1217
- scheme: 'bearer',
1218
- type: 'http'
1219
- }
1220
- ],
1221
- url: '/sandboxes/{sandboxName}/start',
1222
- ...options
1223
- });
1224
- };
1225
- /**
1226
- * Stop Sandbox
1227
- * Stops a Sandbox by name.
1228
- */
1229
- export const stopSandbox = (options) => {
1230
- return (options.client ?? _heyApiClient).put({
1231
- security: [
1232
- {
1233
- scheme: 'bearer',
1234
- type: 'http'
1235
- }
1236
- ],
1237
- url: '/sandboxes/{sandboxName}/stop',
1238
- ...options
1239
- });
1240
- };
1241
- /**
1242
- * Get workspace service accounts
1243
- * Returns a list of all service accounts in the workspace.
1231
+ * List service accounts
1232
+ * Returns all service accounts in the workspace. Service accounts are machine identities for external systems to authenticate with Blaxel via OAuth or API keys.
1244
1233
  */
1245
1234
  export const getWorkspaceServiceAccounts = (options) => {
1246
1235
  return (options?.client ?? _heyApiClient).get({
@@ -1255,8 +1244,8 @@ export const getWorkspaceServiceAccounts = (options) => {
1255
1244
  });
1256
1245
  };
1257
1246
  /**
1258
- * Create workspace service account
1259
- * Creates a service account in the workspace.
1247
+ * Create service account
1248
+ * Creates a new service account for machine-to-machine authentication. Returns client ID and secret (secret is only shown once at creation). Use these credentials for OAuth client_credentials flow.
1260
1249
  */
1261
1250
  export const createWorkspaceServiceAccount = (options) => {
1262
1251
  return (options.client ?? _heyApiClient).post({
@@ -1275,8 +1264,8 @@ export const createWorkspaceServiceAccount = (options) => {
1275
1264
  });
1276
1265
  };
1277
1266
  /**
1278
- * Delete workspace service account
1279
- * Deletes a service account.
1267
+ * Delete service account
1268
+ * Permanently deletes a service account and invalidates all its credentials. Any systems using this service account will lose access immediately.
1280
1269
  */
1281
1270
  export const deleteWorkspaceServiceAccount = (options) => {
1282
1271
  return (options.client ?? _heyApiClient).delete({
@@ -1291,8 +1280,8 @@ export const deleteWorkspaceServiceAccount = (options) => {
1291
1280
  });
1292
1281
  };
1293
1282
  /**
1294
- * Update workspace service account
1295
- * Updates a service account.
1283
+ * Update service account
1284
+ * Updates a service account's name or description. Credentials (client ID/secret) cannot be changed.
1296
1285
  */
1297
1286
  export const updateWorkspaceServiceAccount = (options) => {
1298
1287
  return (options.client ?? _heyApiClient).put({
@@ -1311,8 +1300,8 @@ export const updateWorkspaceServiceAccount = (options) => {
1311
1300
  });
1312
1301
  };
1313
1302
  /**
1314
- * List API keys for service account
1315
- * Returns a list of all API keys for a service account.
1303
+ * List service account API keys
1304
+ * Returns all long-lived API keys created for a service account. API keys provide an alternative to OAuth for simpler authentication scenarios.
1316
1305
  */
1317
1306
  export const listApiKeysForServiceAccount = (options) => {
1318
1307
  return (options.client ?? _heyApiClient).get({
@@ -1327,8 +1316,8 @@ export const listApiKeysForServiceAccount = (options) => {
1327
1316
  });
1328
1317
  };
1329
1318
  /**
1330
- * Create API key for service account
1331
- * Creates an API key for a service account.
1319
+ * Create service account API key
1320
+ * Creates a new long-lived API key for a service account. The full key value is only returned once at creation. API keys can have optional expiration dates.
1332
1321
  */
1333
1322
  export const createApiKeyForServiceAccount = (options) => {
1334
1323
  return (options.client ?? _heyApiClient).post({
@@ -1347,8 +1336,8 @@ export const createApiKeyForServiceAccount = (options) => {
1347
1336
  });
1348
1337
  };
1349
1338
  /**
1350
- * Delete API key for service account
1351
- * Deletes an API key for a service account.
1339
+ * Revoke service account API key
1340
+ * Revokes an API key for a service account. The key becomes invalid immediately and any requests using it will fail authentication.
1352
1341
  */
1353
1342
  export const deleteApiKeyForServiceAccount = (options) => {
1354
1343
  return (options.client ?? _heyApiClient).delete({
@@ -1363,8 +1352,8 @@ export const deleteApiKeyForServiceAccount = (options) => {
1363
1352
  });
1364
1353
  };
1365
1354
  /**
1366
- * List templates
1367
- * Returns a list of all templates.
1355
+ * List deployment templates
1356
+ * Returns all deployment templates available for creating agents, functions, and other resources with pre-configured settings and code.
1368
1357
  */
1369
1358
  export const listTemplates = (options) => {
1370
1359
  return (options?.client ?? _heyApiClient).get({
@@ -1380,7 +1369,7 @@ export const listTemplates = (options) => {
1380
1369
  };
1381
1370
  /**
1382
1371
  * Get template
1383
- * Returns a template by name.
1372
+ * Returns detailed information about a deployment template including its configuration, source code reference, and available parameters.
1384
1373
  */
1385
1374
  export const getTemplate = (options) => {
1386
1375
  return (options.client ?? _heyApiClient).get({
@@ -1395,8 +1384,8 @@ export const getTemplate = (options) => {
1395
1384
  });
1396
1385
  };
1397
1386
  /**
1398
- * List users in workspace
1399
- * Returns a list of all users in the workspace.
1387
+ * List workspace team members
1388
+ * Returns all team members in the workspace including their roles (admin or member) and invitation status.
1400
1389
  */
1401
1390
  export const listWorkspaceUsers = (options) => {
1402
1391
  return (options?.client ?? _heyApiClient).get({
@@ -1412,7 +1401,7 @@ export const listWorkspaceUsers = (options) => {
1412
1401
  };
1413
1402
  /**
1414
1403
  * Invite user to workspace
1415
- * Invites a user to the workspace by email.
1404
+ * Invites a new team member to the workspace by email. The invitee will receive an email to accept the invitation before gaining access to workspace resources.
1416
1405
  */
1417
1406
  export const inviteWorkspaceUser = (options) => {
1418
1407
  return (options.client ?? _heyApiClient).post({
@@ -1468,7 +1457,7 @@ export const updateWorkspaceUserRole = (options) => {
1468
1457
  };
1469
1458
  /**
1470
1459
  * List volume templates
1471
- * Returns a list of all volume templates.
1460
+ * Returns all volume templates in the workspace. Volume templates contain pre-configured filesystem snapshots that can be used to initialize new volumes.
1472
1461
  */
1473
1462
  export const listVolumeTemplates = (options) => {
1474
1463
  return (options?.client ?? _heyApiClient).get({
@@ -1484,7 +1473,7 @@ export const listVolumeTemplates = (options) => {
1484
1473
  };
1485
1474
  /**
1486
1475
  * Create volume template
1487
- * Creates a volume template.
1476
+ * Creates a new volume template for initializing volumes with pre-configured filesystem contents. Optionally returns a presigned URL for uploading the template archive.
1488
1477
  */
1489
1478
  export const createVolumeTemplate = (options) => {
1490
1479
  return (options.client ?? _heyApiClient).post({
@@ -1571,8 +1560,8 @@ export const deleteVolumeTemplateVersion = (options) => {
1571
1560
  });
1572
1561
  };
1573
1562
  /**
1574
- * List volumes
1575
- * Returns a list of all volumes in the workspace.
1563
+ * List persistent volumes
1564
+ * Returns all persistent storage volumes in the workspace. Volumes can be attached to sandboxes for durable file storage that persists across sessions and sandbox deletions.
1576
1565
  */
1577
1566
  export const listVolumes = (options) => {
1578
1567
  return (options?.client ?? _heyApiClient).get({
@@ -1587,8 +1576,8 @@ export const listVolumes = (options) => {
1587
1576
  });
1588
1577
  };
1589
1578
  /**
1590
- * Create volume
1591
- * Creates a volume.
1579
+ * Create persistent volume
1580
+ * Creates a new persistent storage volume that can be attached to sandboxes. Volumes must be created in a specific region and can only attach to sandboxes in the same region.
1592
1581
  */
1593
1582
  export const createVolume = (options) => {
1594
1583
  return (options.client ?? _heyApiClient).post({
@@ -1607,8 +1596,8 @@ export const createVolume = (options) => {
1607
1596
  });
1608
1597
  };
1609
1598
  /**
1610
- * Delete volume
1611
- * Deletes a volume by name.
1599
+ * Delete persistent volume
1600
+ * Permanently deletes a volume and all its data. The volume must not be attached to any sandbox. This action cannot be undone.
1612
1601
  */
1613
1602
  export const deleteVolume = (options) => {
1614
1603
  return (options.client ?? _heyApiClient).delete({
@@ -1623,8 +1612,8 @@ export const deleteVolume = (options) => {
1623
1612
  });
1624
1613
  };
1625
1614
  /**
1626
- * Get volume
1627
- * Returns a volume by name.
1615
+ * Get persistent volume
1616
+ * Returns detailed information about a volume including its size, region, attachment status, and any events history.
1628
1617
  */
1629
1618
  export const getVolume = (options) => {
1630
1619
  return (options.client ?? _heyApiClient).get({
@@ -1639,8 +1628,8 @@ export const getVolume = (options) => {
1639
1628
  });
1640
1629
  };
1641
1630
  /**
1642
- * List workspaces
1643
- * Returns a list of all workspaces.
1631
+ * List accessible workspaces
1632
+ * Returns all workspaces the authenticated user has access to. Each workspace is a separate tenant with its own resources, team members, and billing.
1644
1633
  */
1645
1634
  export const listWorkspaces = (options) => {
1646
1635
  return (options?.client ?? _heyApiClient).get({
@@ -1655,8 +1644,8 @@ export const listWorkspaces = (options) => {
1655
1644
  });
1656
1645
  };
1657
1646
  /**
1658
- * Create worspace
1659
- * Creates a workspace.
1647
+ * Create workspace tenant
1648
+ * Creates a new workspace tenant. The authenticated user becomes the workspace admin. Requires a linked billing account.
1660
1649
  */
1661
1650
  export const createWorkspace = (options) => {
1662
1651
  return (options.client ?? _heyApiClient).post({
@@ -1675,8 +1664,8 @@ export const createWorkspace = (options) => {
1675
1664
  });
1676
1665
  };
1677
1666
  /**
1678
- * Delete workspace
1679
- * Deletes a workspace by name.
1667
+ * Delete workspace tenant
1668
+ * Permanently deletes a workspace and ALL its resources (agents, functions, sandboxes, volumes, etc.). This action cannot be undone. Only workspace admins can delete a workspace.
1680
1669
  */
1681
1670
  export const deleteWorkspace = (options) => {
1682
1671
  return (options.client ?? _heyApiClient).delete({
@@ -1691,8 +1680,8 @@ export const deleteWorkspace = (options) => {
1691
1680
  });
1692
1681
  };
1693
1682
  /**
1694
- * Get workspace
1695
- * Returns a workspace by name.
1683
+ * Get workspace details
1684
+ * Returns detailed information about a workspace including its display name, account ID, status, and runtime configuration.
1696
1685
  */
1697
1686
  export const getWorkspace = (options) => {
1698
1687
  return (options.client ?? _heyApiClient).get({
@@ -1708,7 +1697,7 @@ export const getWorkspace = (options) => {
1708
1697
  };
1709
1698
  /**
1710
1699
  * Update workspace
1711
- * Updates a workspace by name.
1700
+ * Updates a workspace's settings such as display name and labels. The workspace name cannot be changed after creation.
1712
1701
  */
1713
1702
  export const updateWorkspace = (options) => {
1714
1703
  return (options.client ?? _heyApiClient).put({