@blaxel/core 0.2.86-dev.162 → 0.2.86-preview.163
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.
- package/README.md +2 -37
- package/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/client/sdk.gen.js +12 -63
- package/dist/cjs/common/settings.js +3 -3
- package/dist/cjs/common/settings.test.js +3 -3
- package/dist/cjs/drive/index.js +3 -39
- package/dist/cjs/index.js +0 -1
- package/dist/cjs/jobs/jobs.js +9 -42
- package/dist/cjs/sandbox/sandbox.js +15 -41
- package/dist/cjs/types/client/sdk.gen.d.ts +19 -34
- package/dist/cjs/types/client/types.gen.d.ts +21 -614
- package/dist/cjs/types/drive/index.d.ts +4 -34
- package/dist/cjs/types/index.d.ts +0 -1
- package/dist/cjs/types/jobs/jobs.d.ts +3 -33
- package/dist/cjs/types/sandbox/sandbox.d.ts +4 -36
- package/dist/cjs/types/sandbox/types.d.ts +3 -0
- package/dist/cjs/types/volume/index.d.ts +4 -36
- package/dist/cjs/volume/index.js +3 -41
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +12 -63
- package/dist/cjs-browser/common/settings.js +3 -3
- package/dist/cjs-browser/common/settings.test.js +3 -3
- package/dist/cjs-browser/drive/index.js +3 -39
- package/dist/cjs-browser/index.js +0 -1
- package/dist/cjs-browser/jobs/jobs.js +9 -42
- package/dist/cjs-browser/sandbox/sandbox.js +15 -41
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +19 -34
- package/dist/cjs-browser/types/client/types.gen.d.ts +21 -614
- package/dist/cjs-browser/types/drive/index.d.ts +4 -34
- package/dist/cjs-browser/types/index.d.ts +0 -1
- package/dist/cjs-browser/types/jobs/jobs.d.ts +3 -33
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +4 -36
- package/dist/cjs-browser/types/sandbox/types.d.ts +3 -0
- package/dist/cjs-browser/types/volume/index.d.ts +4 -36
- package/dist/cjs-browser/volume/index.js +3 -41
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +9 -57
- package/dist/esm/common/settings.js +3 -3
- package/dist/esm/common/settings.test.js +3 -3
- package/dist/esm/drive/index.js +3 -39
- package/dist/esm/index.js +0 -1
- package/dist/esm/jobs/jobs.js +9 -42
- package/dist/esm/sandbox/sandbox.js +15 -41
- package/dist/esm/volume/index.js +3 -41
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +9 -57
- package/dist/esm-browser/common/settings.js +3 -3
- package/dist/esm-browser/common/settings.test.js +3 -3
- package/dist/esm-browser/drive/index.js +3 -39
- package/dist/esm-browser/index.js +0 -1
- package/dist/esm-browser/jobs/jobs.js +9 -42
- package/dist/esm-browser/sandbox/sandbox.js +15 -41
- package/dist/esm-browser/volume/index.js +3 -41
- package/package.json +1 -1
- package/dist/cjs/common/pagination.js +0 -87
- package/dist/cjs/common/pagination.test.js +0 -62
- package/dist/cjs/types/common/pagination.d.ts +0 -35
- package/dist/cjs/types/common/pagination.test.d.ts +0 -1
- package/dist/cjs-browser/common/pagination.js +0 -87
- package/dist/cjs-browser/common/pagination.test.js +0 -62
- package/dist/cjs-browser/types/common/pagination.d.ts +0 -35
- package/dist/cjs-browser/types/common/pagination.test.d.ts +0 -1
- package/dist/esm/common/pagination.js +0 -83
- package/dist/esm/common/pagination.test.js +0 -60
- package/dist/esm-browser/common/pagination.js +0 -83
- package/dist/esm-browser/common/pagination.test.js +0 -60
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.listJobs = exports.getIntegrationConnectionModel = exports.listIntegrationConnectionModels = exports.getIntegrationConnectionModelEndpointConfigurations = exports.updateIntegrationConnection = exports.getIntegrationConnection = exports.deleteIntegrationConnection = exports.createIntegrationConnection = exports.listIntegrationConnections = exports.getIntegration = exports.deleteImageTag = exports.unshareImage = exports.shareImage = exports.listImageShares = exports.getImage = exports.deleteImage = exports.createImage = exports.listImages = exports.cleanupImages = exports.listFunctionRevisions = exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.testFeatureFlag = exports.getWorkspaceFeatures = exports.listAllEgressIps = exports.
|
|
5
|
-
exports.listTemplates = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.deleteSandboxPreviewToken = exports.createSandboxPreviewToken = exports.listSandboxPreviewTokens = exports.updateSandboxPreview = exports.getSandboxPreview = exports.deleteSandboxPreview = exports.createSandboxPreview = exports.listSandboxPreviews = exports.updateSandbox = exports.getSandbox = exports.deleteSandbox = exports.createSandbox = exports.listSandboxes = exports.listSandboxHubDefinitions = exports.listPublicIps = exports.
|
|
6
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.getEgressIp = exports.deleteEgressIp = exports.createEgressIp = exports.listEgressIps = exports.getEgressGateway = exports.deleteEgressGateway = exports.createEgressGateway = exports.listEgressGateways = exports.getVpc = exports.deleteVpc = exports.createVpc = exports.listVpcs = exports.updateVolume = exports.getVolume = exports.deleteVolume = exports.createVolume = exports.listVolumes = exports.deleteVolumeTemplateVersion = exports.updateVolumeTemplate = exports.getVolumeTemplate = exports.deleteVolumeTemplate = exports.createVolumeTemplate = exports.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser =
|
|
4
|
+
exports.createJob = exports.listJobs = exports.getIntegrationConnectionModel = exports.listIntegrationConnectionModels = exports.getIntegrationConnectionModelEndpointConfigurations = exports.updateIntegrationConnection = exports.getIntegrationConnection = exports.deleteIntegrationConnection = exports.createIntegrationConnection = exports.listIntegrationConnections = exports.getIntegration = exports.deleteImageTag = exports.unshareImage = exports.shareImage = exports.listImageShares = exports.getImage = exports.deleteImage = exports.createImage = exports.listImages = exports.cleanupImages = exports.listFunctionRevisions = exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.testFeatureFlag = exports.getWorkspaceFeatures = exports.listAllEgressIps = exports.listAllEgressGateways = exports.getDriveJwks = exports.createDriveAccessToken = exports.updateDrive = exports.getDrive = exports.deleteDrive = exports.createDrive = exports.listDrives = exports.verifyCustomDomain = exports.updateCustomDomain = exports.getCustomDomain = exports.deleteCustomDomain = exports.createCustomDomain = exports.listCustomDomains = exports.getConfiguration = exports.listAgentRevisions = exports.updateAgent = exports.getAgent = exports.deleteAgent = exports.createAgent = exports.listAgents = void 0;
|
|
5
|
+
exports.inviteWorkspaceUser = exports.listWorkspaceUsers = exports.getTemplate = exports.listTemplates = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.deleteSandboxPreviewToken = exports.createSandboxPreviewToken = exports.listSandboxPreviewTokens = exports.updateSandboxPreview = exports.getSandboxPreview = exports.deleteSandboxPreview = exports.createSandboxPreview = exports.listSandboxPreviews = exports.updateSandbox = exports.getSandbox = exports.deleteSandbox = exports.createSandbox = exports.listSandboxes = exports.listSandboxHubDefinitions = exports.listPublicIps = exports.updatePolicy = exports.getPolicy = exports.deletePolicy = exports.createPolicy = exports.listPolicies = exports.declineImageShare = exports.acceptImageShare = exports.listPendingImageShares = exports.listModelRevisions = exports.updateModel = exports.getModel = exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.getJobExecution = exports.deleteJobExecution = exports.createJobExecution = exports.listJobExecutions = exports.updateJob = exports.getJob = exports.deleteJob = void 0;
|
|
6
|
+
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.getEgressIp = exports.deleteEgressIp = exports.createEgressIp = exports.listEgressIps = exports.getEgressGateway = exports.deleteEgressGateway = exports.createEgressGateway = exports.listEgressGateways = exports.getVpc = exports.deleteVpc = exports.createVpc = exports.listVpcs = exports.updateVolume = exports.getVolume = exports.deleteVolume = exports.createVolume = exports.listVolumes = exports.deleteVolumeTemplateVersion = exports.updateVolumeTemplate = exports.getVolumeTemplate = exports.deleteVolumeTemplate = exports.createVolumeTemplate = exports.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser = void 0;
|
|
7
7
|
const client_gen_1 = require("./client.gen");
|
|
8
8
|
/**
|
|
9
9
|
* List all agents
|
|
10
|
-
* Returns AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
|
|
10
|
+
* Returns all AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
|
|
11
11
|
*/
|
|
12
12
|
const listAgents = (options) => {
|
|
13
13
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -239,7 +239,7 @@ const verifyCustomDomain = (options) => {
|
|
|
239
239
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
240
240
|
/**
|
|
241
241
|
* List drives
|
|
242
|
-
* Returns all drives in the workspace. Drives provide persistent storage that can be attached to agents, functions, and sandboxes.
|
|
242
|
+
* Returns all drives in the workspace. Drives provide persistent storage that can be attached to agents, functions, and sandboxes.
|
|
243
243
|
*/
|
|
244
244
|
const listDrives = (options) => {
|
|
245
245
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -374,23 +374,6 @@ const listAllEgressGateways = (options) => {
|
|
|
374
374
|
});
|
|
375
375
|
};
|
|
376
376
|
exports.listAllEgressGateways = listAllEgressGateways;
|
|
377
|
-
/**
|
|
378
|
-
* Egress gateway sandbox attachments
|
|
379
|
-
* 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.
|
|
380
|
-
*/
|
|
381
|
-
const getEgressGatewayUsage = (options) => {
|
|
382
|
-
return (options?.client ?? client_gen_1.client).get({
|
|
383
|
-
security: [
|
|
384
|
-
{
|
|
385
|
-
scheme: 'bearer',
|
|
386
|
-
type: 'http'
|
|
387
|
-
}
|
|
388
|
-
],
|
|
389
|
-
url: '/egressgateways/usage',
|
|
390
|
-
...options
|
|
391
|
-
});
|
|
392
|
-
};
|
|
393
|
-
exports.getEgressGatewayUsage = getEgressGatewayUsage;
|
|
394
377
|
/**
|
|
395
378
|
* List all egress IPs across all VPCs and gateways in the workspace
|
|
396
379
|
*/
|
|
@@ -443,7 +426,7 @@ const testFeatureFlag = (options) => {
|
|
|
443
426
|
exports.testFeatureFlag = testFeatureFlag;
|
|
444
427
|
/**
|
|
445
428
|
* List all MCP servers
|
|
446
|
-
* Returns MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
|
|
429
|
+
* Returns all MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
|
|
447
430
|
*/
|
|
448
431
|
const listFunctions = (options) => {
|
|
449
432
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -875,7 +858,7 @@ const getIntegrationConnectionModel = (options) => {
|
|
|
875
858
|
exports.getIntegrationConnectionModel = getIntegrationConnectionModel;
|
|
876
859
|
/**
|
|
877
860
|
* List batch jobs
|
|
878
|
-
* Returns batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings.
|
|
861
|
+
* Returns all batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings.
|
|
879
862
|
*/
|
|
880
863
|
const listJobs = (options) => {
|
|
881
864
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -968,7 +951,7 @@ const updateJob = (options) => {
|
|
|
968
951
|
exports.updateJob = updateJob;
|
|
969
952
|
/**
|
|
970
953
|
* List job executions
|
|
971
|
-
* Returns executions for a batch job
|
|
954
|
+
* Returns paginated list of executions for a batch job, sorted by creation time. Each execution contains status, task counts, and timing information.
|
|
972
955
|
*/
|
|
973
956
|
const listJobExecutions = (options) => {
|
|
974
957
|
return (options.client ?? client_gen_1.client).get({
|
|
@@ -1038,23 +1021,6 @@ const getJobExecution = (options) => {
|
|
|
1038
1021
|
});
|
|
1039
1022
|
};
|
|
1040
1023
|
exports.getJobExecution = getJobExecution;
|
|
1041
|
-
/**
|
|
1042
|
-
* List execution tasks
|
|
1043
|
-
* 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.
|
|
1044
|
-
*/
|
|
1045
|
-
const listJobExecutionTasks = (options) => {
|
|
1046
|
-
return (options.client ?? client_gen_1.client).get({
|
|
1047
|
-
security: [
|
|
1048
|
-
{
|
|
1049
|
-
scheme: 'bearer',
|
|
1050
|
-
type: 'http'
|
|
1051
|
-
}
|
|
1052
|
-
],
|
|
1053
|
-
url: '/jobs/{jobId}/executions/{executionId}/tasks',
|
|
1054
|
-
...options
|
|
1055
|
-
});
|
|
1056
|
-
};
|
|
1057
|
-
exports.listJobExecutionTasks = listJobExecutionTasks;
|
|
1058
1024
|
/**
|
|
1059
1025
|
* List job revisions
|
|
1060
1026
|
* Returns revisions for a job by name.
|
|
@@ -1108,7 +1074,7 @@ const listMcpHubDefinitions = (options) => {
|
|
|
1108
1074
|
exports.listMcpHubDefinitions = listMcpHubDefinitions;
|
|
1109
1075
|
/**
|
|
1110
1076
|
* List model endpoints
|
|
1111
|
-
* 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.
|
|
1077
|
+
* 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.
|
|
1112
1078
|
*/
|
|
1113
1079
|
const listModels = (options) => {
|
|
1114
1080
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -1269,7 +1235,7 @@ const declineImageShare = (options) => {
|
|
|
1269
1235
|
exports.declineImageShare = declineImageShare;
|
|
1270
1236
|
/**
|
|
1271
1237
|
* List governance policies
|
|
1272
|
-
* Returns governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
|
|
1238
|
+
* Returns all governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
|
|
1273
1239
|
*/
|
|
1274
1240
|
const listPolicies = (options) => {
|
|
1275
1241
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -1360,23 +1326,6 @@ const updatePolicy = (options) => {
|
|
|
1360
1326
|
});
|
|
1361
1327
|
};
|
|
1362
1328
|
exports.updatePolicy = updatePolicy;
|
|
1363
|
-
/**
|
|
1364
|
-
* List resources using a policy
|
|
1365
|
-
* 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.
|
|
1366
|
-
*/
|
|
1367
|
-
const getPolicyUsages = (options) => {
|
|
1368
|
-
return (options.client ?? client_gen_1.client).get({
|
|
1369
|
-
security: [
|
|
1370
|
-
{
|
|
1371
|
-
scheme: 'bearer',
|
|
1372
|
-
type: 'http'
|
|
1373
|
-
}
|
|
1374
|
-
],
|
|
1375
|
-
url: '/policies/{policyName}/usages',
|
|
1376
|
-
...options
|
|
1377
|
-
});
|
|
1378
|
-
};
|
|
1379
|
-
exports.getPolicyUsages = getPolicyUsages;
|
|
1380
1329
|
/**
|
|
1381
1330
|
* List public ips
|
|
1382
1331
|
* Returns a list of all public ips used in Blaxel..
|
|
@@ -1413,7 +1362,7 @@ const listSandboxHubDefinitions = (options) => {
|
|
|
1413
1362
|
exports.listSandboxHubDefinitions = listSandboxHubDefinitions;
|
|
1414
1363
|
/**
|
|
1415
1364
|
* List sandboxes
|
|
1416
|
-
* Returns sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
|
|
1365
|
+
* Returns all sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
|
|
1417
1366
|
*/
|
|
1418
1367
|
const listSandboxes = (options) => {
|
|
1419
1368
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -2005,7 +1954,7 @@ const deleteVolumeTemplateVersion = (options) => {
|
|
|
2005
1954
|
exports.deleteVolumeTemplateVersion = deleteVolumeTemplateVersion;
|
|
2006
1955
|
/**
|
|
2007
1956
|
* List persistent volumes
|
|
2008
|
-
* Returns persistent storage volumes in the workspace. Volumes can be attached to sandboxes for durable file storage that persists across sessions and sandbox deletions.
|
|
1957
|
+
* 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.
|
|
2009
1958
|
*/
|
|
2010
1959
|
const listVolumes = (options) => {
|
|
2011
1960
|
return (options?.client ?? client_gen_1.client).get({
|
|
@@ -11,10 +11,10 @@ const index_js_1 = require("../authentication/index.js");
|
|
|
11
11
|
const env_js_1 = require("../common/env.js");
|
|
12
12
|
const node_js_1 = require("../common/node.js");
|
|
13
13
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
14
|
-
const BUILD_VERSION = "0.2.86-
|
|
15
|
-
const BUILD_COMMIT = "
|
|
14
|
+
const BUILD_VERSION = "0.2.86-preview.163";
|
|
15
|
+
const BUILD_COMMIT = "e78918cc0a9d6da05b5a83895f6d4d2c08e51b5b";
|
|
16
16
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
17
|
-
const BLAXEL_API_VERSION = "2026-04-
|
|
17
|
+
const BLAXEL_API_VERSION = "2026-04-16";
|
|
18
18
|
// Cache for config.yaml tracking value
|
|
19
19
|
let configTrackingValue = null;
|
|
20
20
|
let configTrackingLoaded = false;
|
|
@@ -42,14 +42,14 @@ const env_js_1 = require("./env.js");
|
|
|
42
42
|
(0, vitest_1.afterEach)(() => {
|
|
43
43
|
delete env_js_1.env.BL_API_VERSION;
|
|
44
44
|
});
|
|
45
|
-
(0, vitest_1.it)('defaults to 2026-04-
|
|
45
|
+
(0, vitest_1.it)('defaults to 2026-04-16 when BL_API_VERSION is not set', async () => {
|
|
46
46
|
delete env_js_1.env.BL_API_VERSION;
|
|
47
47
|
const { settings } = await Promise.resolve().then(() => __importStar(require('./settings.js')));
|
|
48
|
-
(0, vitest_1.expect)(settings.apiVersion).toBe('2026-04-
|
|
48
|
+
(0, vitest_1.expect)(settings.apiVersion).toBe('2026-04-16');
|
|
49
49
|
});
|
|
50
50
|
(0, vitest_1.it)('headers include Blaxel-Version set to the default', async () => {
|
|
51
51
|
delete env_js_1.env.BL_API_VERSION;
|
|
52
52
|
const { settings } = await Promise.resolve().then(() => __importStar(require('./settings.js')));
|
|
53
|
-
(0, vitest_1.expect)(settings.headers['Blaxel-Version']).toBe('2026-04-
|
|
53
|
+
(0, vitest_1.expect)(settings.headers['Blaxel-Version']).toBe('2026-04-16');
|
|
54
54
|
});
|
|
55
55
|
});
|
package/dist/cjs/drive/index.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.DriveInstance = void 0;
|
|
4
4
|
const uuid_1 = require("uuid");
|
|
5
5
|
const index_js_1 = require("../client/index.js");
|
|
6
|
-
const pagination_js_1 = require("../common/pagination.js");
|
|
7
6
|
const settings_js_1 = require("../common/settings.js");
|
|
8
7
|
class DriveInstance {
|
|
9
8
|
drive;
|
|
@@ -87,44 +86,9 @@ class DriveInstance {
|
|
|
87
86
|
});
|
|
88
87
|
return new DriveInstance(data);
|
|
89
88
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
* The returned page exposes `data` for the current page, `meta` for cursor
|
|
94
|
-
* metadata, and helpers to fetch more pages only when you need them.
|
|
95
|
-
*
|
|
96
|
-
* @example
|
|
97
|
-
* ```ts
|
|
98
|
-
* const page = await DriveInstance.list({ limit: 50 });
|
|
99
|
-
*
|
|
100
|
-
* for (const drive of page.data) {
|
|
101
|
-
* console.log(drive.name);
|
|
102
|
-
* }
|
|
103
|
-
*
|
|
104
|
-
* const nextPage = await page.nextPage();
|
|
105
|
-
* ```
|
|
106
|
-
*
|
|
107
|
-
* @example
|
|
108
|
-
* ```ts
|
|
109
|
-
* const allDrives = await (await DriveInstance.list()).autoPagingToArray({
|
|
110
|
-
* limit: 1000,
|
|
111
|
-
* });
|
|
112
|
-
* ```
|
|
113
|
-
*/
|
|
114
|
-
static async list(query) {
|
|
115
|
-
const fetchPage = async (pageQuery) => {
|
|
116
|
-
const { data } = await (0, index_js_1.listDrives)({
|
|
117
|
-
query: pageQuery,
|
|
118
|
-
throwOnError: true,
|
|
119
|
-
});
|
|
120
|
-
return data;
|
|
121
|
-
};
|
|
122
|
-
return (0, pagination_js_1.createPaginatedList)({
|
|
123
|
-
response: await fetchPage(query),
|
|
124
|
-
fetchPage,
|
|
125
|
-
mapItem: (drive) => new DriveInstance(drive),
|
|
126
|
-
query,
|
|
127
|
-
});
|
|
89
|
+
static async list() {
|
|
90
|
+
const { data } = await (0, index_js_1.listDrives)({ throwOnError: true });
|
|
91
|
+
return data.map((drive) => new DriveInstance(drive));
|
|
128
92
|
}
|
|
129
93
|
static async delete(driveName) {
|
|
130
94
|
const { data } = await (0, index_js_1.deleteDrive)({
|
package/dist/cjs/index.js
CHANGED
|
@@ -23,7 +23,6 @@ __exportStar(require("./common/node.js"), exports);
|
|
|
23
23
|
__exportStar(require("./common/errors.js"), exports);
|
|
24
24
|
__exportStar(require("./common/internal.js"), exports);
|
|
25
25
|
__exportStar(require("./common/logger.js"), exports);
|
|
26
|
-
__exportStar(require("./common/pagination.js"), exports);
|
|
27
26
|
__exportStar(require("./common/settings.js"), exports);
|
|
28
27
|
__exportStar(require("./common/webhook.js"), exports);
|
|
29
28
|
__exportStar(require("./drive/index.js"), exports);
|
package/dist/cjs/jobs/jobs.js
CHANGED
|
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.blJob = void 0;
|
|
4
4
|
const index_js_1 = require("../client/index.js");
|
|
5
5
|
const logger_js_1 = require("../common/logger.js");
|
|
6
|
-
const pagination_js_1 = require("../common/pagination.js");
|
|
7
6
|
const settings_js_1 = require("../common/settings.js");
|
|
8
7
|
const telemetry_js_1 = require("../telemetry/telemetry.js");
|
|
9
8
|
class BlJob {
|
|
@@ -79,50 +78,18 @@ class BlJob {
|
|
|
79
78
|
return data;
|
|
80
79
|
}
|
|
81
80
|
/**
|
|
82
|
-
* List
|
|
83
|
-
*
|
|
84
|
-
* The returned page exposes `data` for the current page, `meta` for cursor
|
|
85
|
-
* metadata, and helpers to fetch more pages only when you need them.
|
|
86
|
-
*
|
|
87
|
-
* @example
|
|
88
|
-
* ```ts
|
|
89
|
-
* const job = blJob("daily-import");
|
|
90
|
-
* const page = await job.listExecutions({ limit: 50 });
|
|
91
|
-
*
|
|
92
|
-
* for (const execution of page.data) {
|
|
93
|
-
* console.log(execution.status);
|
|
94
|
-
* }
|
|
95
|
-
*
|
|
96
|
-
* const nextPage = await page.nextPage();
|
|
97
|
-
* ```
|
|
98
|
-
*
|
|
99
|
-
* @example
|
|
100
|
-
* ```ts
|
|
101
|
-
* const job = blJob("daily-import");
|
|
102
|
-
* const executions = await (await job.listExecutions()).autoPagingToArray({
|
|
103
|
-
* limit: 1000,
|
|
104
|
-
* });
|
|
105
|
-
* ```
|
|
81
|
+
* List all executions for this job
|
|
106
82
|
*/
|
|
107
|
-
async listExecutions(
|
|
83
|
+
async listExecutions() {
|
|
108
84
|
logger_js_1.logger.debug(`Listing executions for job: ${this.jobName}`);
|
|
109
|
-
const
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
headers: settings_js_1.settings.headers,
|
|
116
|
-
throwOnError: true,
|
|
117
|
-
});
|
|
118
|
-
return data;
|
|
119
|
-
};
|
|
120
|
-
return (0, pagination_js_1.createPaginatedList)({
|
|
121
|
-
response: await fetchPage(query),
|
|
122
|
-
fetchPage,
|
|
123
|
-
mapItem: (execution) => execution,
|
|
124
|
-
query,
|
|
85
|
+
const { data } = await (0, index_js_1.listJobExecutions)({
|
|
86
|
+
path: {
|
|
87
|
+
jobId: this.jobName,
|
|
88
|
+
},
|
|
89
|
+
headers: settings_js_1.settings.headers,
|
|
90
|
+
throwOnError: true,
|
|
125
91
|
});
|
|
92
|
+
return data ?? [];
|
|
126
93
|
}
|
|
127
94
|
/**
|
|
128
95
|
* Get the status of a specific execution
|
|
@@ -37,7 +37,6 @@ exports.SandboxInstance = void 0;
|
|
|
37
37
|
const uuid_1 = require("uuid");
|
|
38
38
|
const index_js_1 = require("../client/index.js");
|
|
39
39
|
const logger_js_1 = require("../common/logger.js");
|
|
40
|
-
const pagination_js_1 = require("../common/pagination.js");
|
|
41
40
|
const settings_js_1 = require("../common/settings.js");
|
|
42
41
|
const index_js_2 = require("./codegen/index.js");
|
|
43
42
|
const index_js_3 = require("./drive/index.js");
|
|
@@ -256,46 +255,10 @@ class SandboxInstance {
|
|
|
256
255
|
const instance = new SandboxInstance(data);
|
|
257
256
|
return SandboxInstance.attachH2Session(instance);
|
|
258
257
|
}
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
* metadata, and helpers to fetch more pages only when you need them.
|
|
264
|
-
*
|
|
265
|
-
* @example
|
|
266
|
-
* ```ts
|
|
267
|
-
* const page = await SandboxInstance.list({ limit: 50 });
|
|
268
|
-
*
|
|
269
|
-
* for (const sandbox of page.data) {
|
|
270
|
-
* console.log(sandbox.metadata.name);
|
|
271
|
-
* }
|
|
272
|
-
*
|
|
273
|
-
* const nextPage = await page.nextPage();
|
|
274
|
-
* ```
|
|
275
|
-
*
|
|
276
|
-
* @example
|
|
277
|
-
* ```ts
|
|
278
|
-
* const page = await SandboxInstance.list({ limit: 100 });
|
|
279
|
-
*
|
|
280
|
-
* for await (const sandbox of page) {
|
|
281
|
-
* console.log(sandbox.metadata.name);
|
|
282
|
-
* }
|
|
283
|
-
* ```
|
|
284
|
-
*/
|
|
285
|
-
static async list(query) {
|
|
286
|
-
const fetchPage = async (pageQuery) => {
|
|
287
|
-
const { data } = await (0, index_js_1.listSandboxes)({
|
|
288
|
-
query: pageQuery,
|
|
289
|
-
throwOnError: true,
|
|
290
|
-
});
|
|
291
|
-
return data;
|
|
292
|
-
};
|
|
293
|
-
return (0, pagination_js_1.createPaginatedList)({
|
|
294
|
-
response: await fetchPage(query),
|
|
295
|
-
fetchPage,
|
|
296
|
-
mapItem: (sandbox) => SandboxInstance.attachH2Session(new SandboxInstance(sandbox)),
|
|
297
|
-
query,
|
|
298
|
-
});
|
|
258
|
+
static async list() {
|
|
259
|
+
const { data } = await (0, index_js_1.listSandboxes)({ throwOnError: true });
|
|
260
|
+
const instances = data.map((sandbox) => new SandboxInstance(sandbox));
|
|
261
|
+
return Promise.all(instances.map((instance) => SandboxInstance.attachH2Session(instance)));
|
|
299
262
|
}
|
|
300
263
|
static async delete(sandboxName) {
|
|
301
264
|
const { data } = await (0, index_js_1.deleteSandbox)({
|
|
@@ -346,6 +309,17 @@ class SandboxInstance {
|
|
|
346
309
|
const instance = new SandboxInstance(data);
|
|
347
310
|
return SandboxInstance.attachH2Session(instance);
|
|
348
311
|
}
|
|
312
|
+
static async updateNetwork(sandboxName, network) {
|
|
313
|
+
const sandbox = await SandboxInstance.get(sandboxName);
|
|
314
|
+
const body = { ...sandbox.sandbox, spec: { ...sandbox.spec, network: network.network } };
|
|
315
|
+
const { data } = await (0, index_js_1.updateSandbox)({
|
|
316
|
+
path: { sandboxName },
|
|
317
|
+
body,
|
|
318
|
+
throwOnError: true,
|
|
319
|
+
});
|
|
320
|
+
const instance = new SandboxInstance(data);
|
|
321
|
+
return SandboxInstance.attachH2Session(instance);
|
|
322
|
+
}
|
|
349
323
|
static async createIfNotExists(sandbox) {
|
|
350
324
|
const ATTEMPTS = 3;
|
|
351
325
|
for (let i = 0; i < ATTEMPTS; ++i) {
|
|
@@ -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,
|
|
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';
|
|
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 AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
|
|
18
|
+
* Returns all AI agents deployed in the workspace. Each agent includes its deployment status, runtime configuration, and global inference endpoint URL.
|
|
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").
|
|
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>;
|
|
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.
|
|
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").
|
|
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>;
|
|
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,11 +123,6 @@ 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<unknown, unknown, ThrowOnError>;
|
|
131
126
|
/**
|
|
132
127
|
* List all egress IPs across all VPCs and gateways in the workspace
|
|
133
128
|
*/
|
|
@@ -156,9 +151,9 @@ export declare const testFeatureFlag: <ThrowOnError extends boolean = false>(opt
|
|
|
156
151
|
}, import("./types.gen.js")._Error, ThrowOnError>;
|
|
157
152
|
/**
|
|
158
153
|
* List all MCP servers
|
|
159
|
-
* Returns MCP server functions deployed in the workspace. Each function includes its deployment status, transport protocol (websocket or http-stream), and endpoint URL.
|
|
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.
|
|
160
155
|
*/
|
|
161
|
-
export declare const listFunctions: <ThrowOnError extends boolean = false>(options?: Options<ListFunctionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
162
157
|
/**
|
|
163
158
|
* Create MCP server
|
|
164
159
|
* 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.
|
|
@@ -284,9 +279,9 @@ export declare const listIntegrationConnectionModels: <ThrowOnError extends bool
|
|
|
284
279
|
export declare const getIntegrationConnectionModel: <ThrowOnError extends boolean = false>(options: Options<GetIntegrationConnectionModelData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<unknown, unknown, ThrowOnError>;
|
|
285
280
|
/**
|
|
286
281
|
* List batch jobs
|
|
287
|
-
* Returns batch job definitions in the workspace. Each job can be triggered to run multiple parallel tasks with configurable concurrency and retry settings.
|
|
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.
|
|
288
283
|
*/
|
|
289
|
-
export declare const listJobs: <ThrowOnError extends boolean = false>(options?: Options<ListJobsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
290
285
|
/**
|
|
291
286
|
* Create batch job
|
|
292
287
|
* 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.
|
|
@@ -309,9 +304,9 @@ export declare const getJob: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
309
304
|
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>;
|
|
310
305
|
/**
|
|
311
306
|
* List job executions
|
|
312
|
-
* Returns executions for a batch job
|
|
307
|
+
* Returns paginated list of executions for a batch job, sorted by creation time. Each execution contains status, task counts, and timing information.
|
|
313
308
|
*/
|
|
314
|
-
export declare const listJobExecutions: <ThrowOnError extends boolean = false>(options: Options<ListJobExecutionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
315
310
|
/**
|
|
316
311
|
* Create job execution
|
|
317
312
|
* 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.
|
|
@@ -327,11 +322,6 @@ export declare const deleteJobExecution: <ThrowOnError extends boolean = false>(
|
|
|
327
322
|
* Returns detailed information about a specific job execution including status, task statistics (success/failure/running counts), and timing information.
|
|
328
323
|
*/
|
|
329
324
|
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>;
|
|
335
325
|
/**
|
|
336
326
|
* List job revisions
|
|
337
327
|
* Returns revisions for a job by name.
|
|
@@ -349,9 +339,9 @@ export declare const listLocations: <ThrowOnError extends boolean = false>(optio
|
|
|
349
339
|
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>;
|
|
350
340
|
/**
|
|
351
341
|
* List model endpoints
|
|
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.
|
|
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.
|
|
353
343
|
*/
|
|
354
|
-
export declare const listModels: <ThrowOnError extends boolean = false>(options?: Options<ListModelsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
355
345
|
/**
|
|
356
346
|
* Create model endpoint
|
|
357
347
|
* 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.
|
|
@@ -394,9 +384,9 @@ export declare const acceptImageShare: <ThrowOnError extends boolean = false>(op
|
|
|
394
384
|
export declare const declineImageShare: <ThrowOnError extends boolean = false>(options: Options<DeclineImageShareData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
395
385
|
/**
|
|
396
386
|
* List governance policies
|
|
397
|
-
* Returns governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
|
|
387
|
+
* Returns all governance policies in the workspace. Policies control deployment locations, hardware flavors, and token limits for agents, functions, and models.
|
|
398
388
|
*/
|
|
399
|
-
export declare const listPolicies: <ThrowOnError extends boolean = false>(options?: Options<ListPoliciesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
400
390
|
/**
|
|
401
391
|
* Create governance policy
|
|
402
392
|
* 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.
|
|
@@ -417,11 +407,6 @@ export declare const getPolicy: <ThrowOnError extends boolean = false>(options:
|
|
|
417
407
|
* Updates a governance policy's restrictions. Changes take effect on the next deployment of resources using this policy.
|
|
418
408
|
*/
|
|
419
409
|
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>;
|
|
425
410
|
/**
|
|
426
411
|
* List public ips
|
|
427
412
|
* Returns a list of all public ips used in Blaxel..
|
|
@@ -434,9 +419,9 @@ export declare const listPublicIps: <ThrowOnError extends boolean = false>(optio
|
|
|
434
419
|
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>;
|
|
435
420
|
/**
|
|
436
421
|
* List sandboxes
|
|
437
|
-
* Returns sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
|
|
422
|
+
* Returns all sandboxes in the workspace. Each sandbox includes its configuration, status, and endpoint URL.
|
|
438
423
|
*/
|
|
439
|
-
export declare const listSandboxes: <ThrowOnError extends boolean = false>(options?: Options<ListSandboxesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
440
425
|
/**
|
|
441
426
|
* Create sandbox
|
|
442
427
|
* 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.
|
|
@@ -624,9 +609,9 @@ export declare const deleteVolumeTemplateVersion: <ThrowOnError extends boolean
|
|
|
624
609
|
}, unknown, ThrowOnError>;
|
|
625
610
|
/**
|
|
626
611
|
* List persistent volumes
|
|
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.
|
|
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.
|
|
628
613
|
*/
|
|
629
|
-
export declare const listVolumes: <ThrowOnError extends boolean = false>(options?: Options<ListVolumesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").
|
|
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>;
|
|
630
615
|
/**
|
|
631
616
|
* Create persistent volume
|
|
632
617
|
* 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.
|