@blaxel/core 0.2.89-preview.179 → 0.2.90-dev.181

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 (80) hide show
  1. package/README.md +37 -2
  2. package/dist/cjs/.tsbuildinfo +1 -1
  3. package/dist/cjs/client/sdk.gen.js +63 -12
  4. package/dist/cjs/common/h2fetch.js +1 -1
  5. package/dist/cjs/common/pagination.js +87 -0
  6. package/dist/cjs/common/pagination.test.js +62 -0
  7. package/dist/cjs/common/settings.js +3 -3
  8. package/dist/cjs/common/settings.test.js +3 -3
  9. package/dist/cjs/drive/index.js +39 -3
  10. package/dist/cjs/index.js +1 -0
  11. package/dist/cjs/jobs/jobs.js +42 -9
  12. package/dist/cjs/sandbox/client/sdk.gen.js +1 -1
  13. package/dist/cjs/sandbox/preview.js +8 -3
  14. package/dist/cjs/sandbox/sandbox.js +41 -4
  15. package/dist/cjs/types/client/sdk.gen.d.ts +34 -19
  16. package/dist/cjs/types/client/types.gen.d.ts +704 -22
  17. package/dist/cjs/types/common/pagination.d.ts +35 -0
  18. package/dist/cjs/types/common/pagination.test.d.ts +1 -0
  19. package/dist/cjs/types/drive/index.d.ts +35 -4
  20. package/dist/cjs/types/index.d.ts +1 -0
  21. package/dist/cjs/types/jobs/jobs.d.ts +33 -3
  22. package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +1 -1
  23. package/dist/cjs/types/sandbox/client/types.gen.d.ts +24 -0
  24. package/dist/cjs/types/sandbox/preview.d.ts +2 -2
  25. package/dist/cjs/types/sandbox/sandbox.d.ts +36 -2
  26. package/dist/cjs/types/volume/index.d.ts +37 -4
  27. package/dist/cjs/volume/index.js +41 -3
  28. package/dist/cjs-browser/.tsbuildinfo +1 -1
  29. package/dist/cjs-browser/client/sdk.gen.js +63 -12
  30. package/dist/cjs-browser/common/pagination.js +87 -0
  31. package/dist/cjs-browser/common/pagination.test.js +62 -0
  32. package/dist/cjs-browser/common/settings.js +3 -3
  33. package/dist/cjs-browser/common/settings.test.js +3 -3
  34. package/dist/cjs-browser/drive/index.js +39 -3
  35. package/dist/cjs-browser/index.js +1 -0
  36. package/dist/cjs-browser/jobs/jobs.js +42 -9
  37. package/dist/cjs-browser/sandbox/client/sdk.gen.js +1 -1
  38. package/dist/cjs-browser/sandbox/preview.js +8 -3
  39. package/dist/cjs-browser/sandbox/sandbox.js +41 -4
  40. package/dist/cjs-browser/types/client/sdk.gen.d.ts +34 -19
  41. package/dist/cjs-browser/types/client/types.gen.d.ts +704 -22
  42. package/dist/cjs-browser/types/common/pagination.d.ts +35 -0
  43. package/dist/cjs-browser/types/common/pagination.test.d.ts +1 -0
  44. package/dist/cjs-browser/types/drive/index.d.ts +35 -4
  45. package/dist/cjs-browser/types/index.d.ts +1 -0
  46. package/dist/cjs-browser/types/jobs/jobs.d.ts +33 -3
  47. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +1 -1
  48. package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +24 -0
  49. package/dist/cjs-browser/types/sandbox/preview.d.ts +2 -2
  50. package/dist/cjs-browser/types/sandbox/sandbox.d.ts +36 -2
  51. package/dist/cjs-browser/types/volume/index.d.ts +37 -4
  52. package/dist/cjs-browser/volume/index.js +41 -3
  53. package/dist/esm/.tsbuildinfo +1 -1
  54. package/dist/esm/client/sdk.gen.js +57 -9
  55. package/dist/esm/common/h2fetch.js +1 -1
  56. package/dist/esm/common/pagination.js +83 -0
  57. package/dist/esm/common/pagination.test.js +60 -0
  58. package/dist/esm/common/settings.js +3 -3
  59. package/dist/esm/common/settings.test.js +3 -3
  60. package/dist/esm/drive/index.js +39 -3
  61. package/dist/esm/index.js +1 -0
  62. package/dist/esm/jobs/jobs.js +42 -9
  63. package/dist/esm/sandbox/client/sdk.gen.js +1 -1
  64. package/dist/esm/sandbox/preview.js +8 -3
  65. package/dist/esm/sandbox/sandbox.js +41 -4
  66. package/dist/esm/volume/index.js +41 -3
  67. package/dist/esm-browser/.tsbuildinfo +1 -1
  68. package/dist/esm-browser/client/sdk.gen.js +57 -9
  69. package/dist/esm-browser/common/pagination.js +83 -0
  70. package/dist/esm-browser/common/pagination.test.js +60 -0
  71. package/dist/esm-browser/common/settings.js +3 -3
  72. package/dist/esm-browser/common/settings.test.js +3 -3
  73. package/dist/esm-browser/drive/index.js +39 -3
  74. package/dist/esm-browser/index.js +1 -0
  75. package/dist/esm-browser/jobs/jobs.js +42 -9
  76. package/dist/esm-browser/sandbox/client/sdk.gen.js +1 -1
  77. package/dist/esm-browser/sandbox/preview.js +8 -3
  78. package/dist/esm-browser/sandbox/sandbox.js +41 -4
  79. package/dist/esm-browser/volume/index.js +41 -3
  80. package/package.json +1 -1
@@ -1,5 +1,5 @@
1
1
  import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
2
- import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListDrivesData, CreateDriveData, DeleteDriveData, GetDriveData, UpdateDriveData, CreateDriveAccessTokenData, GetDriveJwksData, ListAllEgressGatewaysData, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, ShareImageResponse, UnshareImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPendingImageSharesData, AcceptImageShareData, DeclineImageShareData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, UpdateVolumeData, ListVpcsData, CreateVpcData, DeleteVpcData, GetVpcData, ListEgressGatewaysData, CreateEgressGatewayData, DeleteEgressGatewayData, GetEgressGatewayData, ListEgressIpsData, CreateEgressIpData, DeleteEgressIpData, GetEgressIpData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeclineWorkspaceInvitationData, AcceptWorkspaceInvitationData, LeaveWorkspaceData, CheckWorkspaceAvailabilityData } from './types.gen.js';
2
+ import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListDrivesData, CreateDriveData, DeleteDriveData, GetDriveData, UpdateDriveData, CreateDriveAccessTokenData, GetDriveJwksData, ListAllEgressGatewaysData, GetEgressGatewayUsageData, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, ShareImageResponse, UnshareImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobExecutionTasksData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPendingImageSharesData, AcceptImageShareData, DeclineImageShareData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, GetPolicyUsagesData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, UpdateVolumeData, ListVpcsData, CreateVpcData, DeleteVpcData, GetVpcData, ListEgressGatewaysData, CreateEgressGatewayData, DeleteEgressGatewayData, GetEgressGatewayData, ListEgressIpsData, CreateEgressIpData, DeleteEgressIpData, GetEgressIpData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeclineWorkspaceInvitationData, AcceptWorkspaceInvitationData, LeaveWorkspaceData, CheckWorkspaceAvailabilityData } from './types.gen.js';
3
3
  export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = ClientOptions<TData, ThrowOnError> & {
4
4
  /**
5
5
  * You can provide a client instance returned by `createClient()` instead of
@@ -15,9 +15,9 @@ export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends
15
15
  };
16
16
  /**
17
17
  * List all agents
18
- * Returns all AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
18
+ * Returns AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all agents.
19
19
  */
20
- export declare const listAgents: <ThrowOnError extends boolean = false>(options?: Options<ListAgentsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Agent[], import("./types.gen.js")._Error, ThrowOnError>;
20
+ export declare const listAgents: <ThrowOnError extends boolean = false>(options?: Options<ListAgentsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").AgentList, import("./types.gen.js")._Error, ThrowOnError>;
21
21
  /**
22
22
  * Create agent
23
23
  * 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.
@@ -75,9 +75,9 @@ export declare const updateCustomDomain: <ThrowOnError extends boolean = false>(
75
75
  export declare const verifyCustomDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
76
76
  /**
77
77
  * List drives
78
- * Returns all drives in the workspace. Drives provide persistent storage that can be attached to agents, functions, and sandboxes.
78
+ * Returns all drives in the workspace. Drives provide persistent storage that can be attached to agents, functions, and sandboxes. Starting with API version 2026-04-28, the response wraps items in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all drives.
79
79
  */
80
- export declare const listDrives: <ThrowOnError extends boolean = false>(options?: Options<ListDrivesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Drive[], unknown, ThrowOnError>;
80
+ export declare const listDrives: <ThrowOnError extends boolean = false>(options?: Options<ListDrivesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").DriveList, unknown, ThrowOnError>;
81
81
  /**
82
82
  * Create a drive
83
83
  * Creates a new drive in the workspace. Drives can be buckets and can be mounted at runtime to sandboxes.
@@ -123,6 +123,11 @@ export declare const getDriveJwks: <ThrowOnError extends boolean = false>(option
123
123
  * List all egress gateways across all VPCs in the workspace
124
124
  */
125
125
  export declare const listAllEgressGateways: <ThrowOnError extends boolean = false>(options?: Options<ListAllEgressGatewaysData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGateway[], unknown, ThrowOnError>;
126
+ /**
127
+ * Egress gateway sandbox attachments
128
+ * Returns the inverse map (gateway → sandbox names) for the workspace. Used by the egress-IPs UI to render attachment counts without fetching the sandboxes listing full client-side.
129
+ */
130
+ export declare const getEgressGatewayUsage: <ThrowOnError extends boolean = false>(options?: Options<GetEgressGatewayUsageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressGatewayUsage, unknown, ThrowOnError>;
126
131
  /**
127
132
  * List all egress IPs across all VPCs and gateways in the workspace
128
133
  */
@@ -151,9 +156,9 @@ export declare const testFeatureFlag: <ThrowOnError extends boolean = false>(opt
151
156
  }, import("./types.gen.js")._Error, ThrowOnError>;
152
157
  /**
153
158
  * List all MCP servers
154
- * Returns all MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
159
+ * Returns MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all functions.
155
160
  */
156
- export declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Options<ListFunctionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js")._Function[], import("./types.gen.js")._Error, ThrowOnError>;
161
+ export declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Options<ListFunctionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").FunctionList, import("./types.gen.js")._Error, ThrowOnError>;
157
162
  /**
158
163
  * Create MCP server
159
164
  * 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.
@@ -279,9 +284,9 @@ export declare const listIntegrationConnectionModels: <ThrowOnError extends bool
279
284
  export declare const getIntegrationConnectionModel: <ThrowOnError extends boolean = false>(options: Options<GetIntegrationConnectionModelData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
280
285
  /**
281
286
  * List batch jobs
282
- * Returns all batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings.
287
+ * Returns batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all jobs.
283
288
  */
284
- export declare const listJobs: <ThrowOnError extends boolean = false>(options?: Options<ListJobsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Job[], unknown, ThrowOnError>;
289
+ export declare const listJobs: <ThrowOnError extends boolean = false>(options?: Options<ListJobsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobList, unknown, ThrowOnError>;
285
290
  /**
286
291
  * Create batch job
287
292
  * 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.
@@ -304,9 +309,9 @@ export declare const getJob: <ThrowOnError extends boolean = false>(options: Opt
304
309
  export declare const updateJob: <ThrowOnError extends boolean = false>(options: Options<UpdateJobData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Job, unknown, ThrowOnError>;
305
310
  /**
306
311
  * List job executions
307
- * Returns paginated list of executions for a batch job, sorted by creation time. Each execution contains status, task counts, and timing information.
312
+ * Returns executions for a batch job. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep the legacy offset/limit contract and return a bare array.
308
313
  */
309
- export declare const listJobExecutions: <ThrowOnError extends boolean = false>(options: Options<ListJobExecutionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution[], unknown, ThrowOnError>;
314
+ export declare const listJobExecutions: <ThrowOnError extends boolean = false>(options: Options<ListJobExecutionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecutionList, unknown, ThrowOnError>;
310
315
  /**
311
316
  * Create job execution
312
317
  * 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.
@@ -322,6 +327,11 @@ export declare const deleteJobExecution: <ThrowOnError extends boolean = false>(
322
327
  * Returns detailed information about a specific job execution including status, task statistics (success/failure/running counts), and timing information.
323
328
  */
324
329
  export declare const getJobExecution: <ThrowOnError extends boolean = false>(options: Options<GetJobExecutionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution, unknown, ThrowOnError>;
330
+ /**
331
+ * List execution tasks
332
+ * Returns one cursor-paginated page of an execution's tasks. Tasks are derived from event history each request; only the in-memory slicing is paginated, the events scan still fetches the whole event log behind the scenes. Available starting with API version 2026-04-28.
333
+ */
334
+ export declare const listJobExecutionTasks: <ThrowOnError extends boolean = false>(options: Options<ListJobExecutionTasksData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecutionTaskList, unknown, ThrowOnError>;
325
335
  /**
326
336
  * List job revisions
327
337
  * Returns revisions for a job by name.
@@ -339,9 +349,9 @@ export declare const listLocations: <ThrowOnError extends boolean = false>(optio
339
349
  export declare const listMcpHubDefinitions: <ThrowOnError extends boolean = false>(options?: Options<ListMcpHubDefinitionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").McpDefinition[], unknown, ThrowOnError>;
340
350
  /**
341
351
  * List model endpoints
342
- * 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.
352
+ * Returns model gateway endpoints configured in the workspace. Each model represents a proxy to an external LLM provider (OpenAI, Anthropic, etc.) with unified access control. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all models.
343
353
  */
344
- export declare const listModels: <ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Model[], import("./types.gen.js")._Error, ThrowOnError>;
354
+ export declare const listModels: <ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").ModelList, import("./types.gen.js")._Error, ThrowOnError>;
345
355
  /**
346
356
  * Create model endpoint
347
357
  * 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.
@@ -384,9 +394,9 @@ export declare const acceptImageShare: <ThrowOnError extends boolean = false>(op
384
394
  export declare const declineImageShare: <ThrowOnError extends boolean = false>(options: Options<DeclineImageShareData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
385
395
  /**
386
396
  * List governance policies
387
- * Returns all governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
397
+ * Returns governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array with all policies.
388
398
  */
389
- export declare const listPolicies: <ThrowOnError extends boolean = false>(options?: Options<ListPoliciesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Policy[], unknown, ThrowOnError>;
399
+ export declare const listPolicies: <ThrowOnError extends boolean = false>(options?: Options<ListPoliciesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PolicyList, unknown, ThrowOnError>;
390
400
  /**
391
401
  * Create governance policy
392
402
  * 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.
@@ -407,6 +417,11 @@ export declare const getPolicy: <ThrowOnError extends boolean = false>(options:
407
417
  * Updates a governance policy's restrictions. Changes take effect on the next deployment of resources using this policy.
408
418
  */
409
419
  export declare const updatePolicy: <ThrowOnError extends boolean = false>(options: Options<UpdatePolicyData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Policy, unknown, ThrowOnError>;
420
+ /**
421
+ * List resources using a policy
422
+ * Returns the names of every resource (agent, function, model, sandbox, job) currently referencing the given policy. Replaces the client-side fan-out the policies UI used to do over the listings.
423
+ */
424
+ export declare const getPolicyUsages: <ThrowOnError extends boolean = false>(options: Options<GetPolicyUsagesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PolicyUsages, unknown, ThrowOnError>;
410
425
  /**
411
426
  * List public ips
412
427
  * Returns a list of all public ips used in Blaxel..
@@ -419,9 +434,9 @@ export declare const listPublicIps: <ThrowOnError extends boolean = false>(optio
419
434
  export declare const listSandboxHubDefinitions: <ThrowOnError extends boolean = false>(options?: Options<ListSandboxHubDefinitionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxDefinition[], unknown, ThrowOnError>;
420
435
  /**
421
436
  * List sandboxes
422
- * Returns all sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
437
+ * Returns sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL. Terminated sandboxes are hidden by default; pass `showTerminated=true` to include them. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array of all sandboxes.
423
438
  */
424
- export declare const listSandboxes: <ThrowOnError extends boolean = false>(options?: Options<ListSandboxesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Sandbox[], import("./types.gen.js")._Error, ThrowOnError>;
439
+ export declare const listSandboxes: <ThrowOnError extends boolean = false>(options?: Options<ListSandboxesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxList, import("./types.gen.js")._Error, ThrowOnError>;
425
440
  /**
426
441
  * Create sandbox
427
442
  * 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.
@@ -609,9 +624,9 @@ export declare const deleteVolumeTemplateVersion: <ThrowOnError extends boolean
609
624
  }, unknown, ThrowOnError>;
610
625
  /**
611
626
  * List persistent volumes
612
- * 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.
627
+ * Returns persistent storage volumes in the workspace. Volumes can be attached to sandboxes for durable file storage that persists across sessions and sandbox deletions. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions keep returning a bare array of volumes.
613
628
  */
614
- export declare const listVolumes: <ThrowOnError extends boolean = false>(options?: Options<ListVolumesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume[], import("./types.gen.js")._Error, ThrowOnError>;
629
+ export declare const listVolumes: <ThrowOnError extends boolean = false>(options?: Options<ListVolumesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").VolumeList, import("./types.gen.js")._Error, ThrowOnError>;
615
630
  /**
616
631
  * Create persistent volume
617
632
  * 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.