@blaxel/core 0.2.79 → 0.2.80-preview.134

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 (37) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/client/sdk.gen.js +79 -3
  3. package/dist/cjs/common/settings.js +2 -2
  4. package/dist/cjs/sandbox/client/sdk.gen.js +56 -1
  5. package/dist/cjs/sandbox/drive/drive.js +22 -51
  6. package/dist/cjs/sandbox/index.js +5 -1
  7. package/dist/cjs/types/client/sdk.gen.d.ts +26 -1
  8. package/dist/cjs/types/client/types.gen.d.ts +225 -6
  9. package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +16 -1
  10. package/dist/cjs/types/sandbox/client/types.gen.d.ts +104 -0
  11. package/dist/cjs/types/sandbox/drive/drive.d.ts +2 -25
  12. package/dist/cjs/types/sandbox/index.d.ts +3 -0
  13. package/dist/cjs-browser/.tsbuildinfo +1 -1
  14. package/dist/cjs-browser/client/sdk.gen.js +79 -3
  15. package/dist/cjs-browser/common/settings.js +2 -2
  16. package/dist/cjs-browser/sandbox/client/sdk.gen.js +56 -1
  17. package/dist/cjs-browser/sandbox/drive/drive.js +22 -51
  18. package/dist/cjs-browser/sandbox/index.js +5 -1
  19. package/dist/cjs-browser/types/client/sdk.gen.d.ts +26 -1
  20. package/dist/cjs-browser/types/client/types.gen.d.ts +225 -6
  21. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +16 -1
  22. package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +104 -0
  23. package/dist/cjs-browser/types/sandbox/drive/drive.d.ts +2 -25
  24. package/dist/cjs-browser/types/sandbox/index.d.ts +3 -0
  25. package/dist/esm/.tsbuildinfo +1 -1
  26. package/dist/esm/client/sdk.gen.js +72 -0
  27. package/dist/esm/common/settings.js +2 -2
  28. package/dist/esm/sandbox/client/sdk.gen.js +52 -0
  29. package/dist/esm/sandbox/drive/drive.js +22 -51
  30. package/dist/esm/sandbox/index.js +3 -0
  31. package/dist/esm-browser/.tsbuildinfo +1 -1
  32. package/dist/esm-browser/client/sdk.gen.js +72 -0
  33. package/dist/esm-browser/common/settings.js +2 -2
  34. package/dist/esm-browser/sandbox/client/sdk.gen.js +52 -0
  35. package/dist/esm-browser/sandbox/drive/drive.js +22 -51
  36. package/dist/esm-browser/sandbox/index.js +3 -0
  37. package/package.json +1 -1
@@ -1,9 +1,9 @@
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.listJobExecutions = exports.updateJob = exports.getJob = exports.deleteJob = 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.getImage = exports.deleteImage = 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.updateVolumeTemplate = exports.getVolumeTemplate = exports.deleteVolumeTemplate = exports.createVolumeTemplate = exports.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser = 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.listModelRevisions = exports.updateModel = exports.getModel = exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.getJobExecution = exports.deleteJobExecution = exports.createJobExecution = 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 = void 0;
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.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser = 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.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 = void 0;
7
7
  const client_gen_1 = require("./client.gen");
8
8
  /**
9
9
  * List all agents
@@ -568,6 +568,27 @@ const listImages = (options) => {
568
568
  });
569
569
  };
570
570
  exports.listImages = listImages;
571
+ /**
572
+ * Build a container image
573
+ * Builds a container image without creating a deployment. Returns a presigned URL for uploading source code. After upload, the image will be built and stored in the registry, but no agent, function, sandbox, or job will be created or updated.
574
+ */
575
+ const createImage = (options) => {
576
+ return (options.client ?? client_gen_1.client).post({
577
+ security: [
578
+ {
579
+ scheme: 'bearer',
580
+ type: 'http'
581
+ }
582
+ ],
583
+ url: '/images',
584
+ ...options,
585
+ headers: {
586
+ 'Content-Type': 'application/json',
587
+ ...options?.headers
588
+ }
589
+ });
590
+ };
591
+ exports.createImage = createImage;
571
592
  /**
572
593
  * Delete container image
573
594
  * 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.
@@ -602,6 +623,61 @@ const getImage = (options) => {
602
623
  });
603
624
  };
604
625
  exports.getImage = getImage;
626
+ /**
627
+ * List image shares
628
+ * Returns the list of workspaces that a container image is currently shared with.
629
+ */
630
+ const listImageShares = (options) => {
631
+ return (options.client ?? client_gen_1.client).get({
632
+ security: [
633
+ {
634
+ scheme: 'bearer',
635
+ type: 'http'
636
+ }
637
+ ],
638
+ url: '/images/{resourceType}/{imageName}/share',
639
+ ...options
640
+ });
641
+ };
642
+ exports.listImageShares = listImageShares;
643
+ /**
644
+ * Share a container image
645
+ * Shares a container image with another workspace by copying the metadata record. The underlying storage (S3) data is not duplicated. The target workspace must belong to the same account.
646
+ */
647
+ const shareImage = (options) => {
648
+ return (options.client ?? client_gen_1.client).post({
649
+ security: [
650
+ {
651
+ scheme: 'bearer',
652
+ type: 'http'
653
+ }
654
+ ],
655
+ url: '/images/{resourceType}/{imageName}/share',
656
+ ...options,
657
+ headers: {
658
+ 'Content-Type': 'application/json',
659
+ ...options?.headers
660
+ }
661
+ });
662
+ };
663
+ exports.shareImage = shareImage;
664
+ /**
665
+ * Unshare a container image
666
+ * Revokes sharing of a container image with a target workspace. Removes the metadata copy from the target workspace. The source image is not affected.
667
+ */
668
+ const unshareImage = (options) => {
669
+ return (options.client ?? client_gen_1.client).delete({
670
+ security: [
671
+ {
672
+ scheme: 'bearer',
673
+ type: 'http'
674
+ }
675
+ ],
676
+ url: '/images/{resourceType}/{imageName}/share/{targetWorkspace}',
677
+ ...options
678
+ });
679
+ };
680
+ exports.unshareImage = unshareImage;
605
681
  /**
606
682
  * Delete container image tag
607
683
  * 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.
@@ -11,8 +11,8 @@ 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.79";
15
- const BUILD_COMMIT = "5fb1f8667d2d0bc7b45ca640257677c647eb5e59";
14
+ const BUILD_VERSION = "0.2.80-preview.134";
15
+ const BUILD_COMMIT = "3a135aba4afab0f1a15591716d4d4e40b6385457";
16
16
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
17
17
  // Cache for config.yaml tracking value
18
18
  let configTrackingValue = null;
@@ -1,7 +1,7 @@
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.getWatchFilesystemByPath = exports.postUpgrade = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.putNetworkTunnelConfig = exports.deleteNetworkTunnel = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.getHealth = exports.putFilesystemTreeByPath = exports.getFilesystemTreeByPath = exports.deleteFilesystemTreeByPath = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = exports.getFilesystemSearchByPath = exports.postFilesystemMultipartInitiateByPath = exports.getFilesystemMultipartByUploadIdParts = exports.putFilesystemMultipartByUploadIdPart = exports.postFilesystemMultipartByUploadIdComplete = exports.deleteFilesystemMultipartByUploadIdAbort = exports.getFilesystemMultipart = exports.getFilesystemFindByPath = exports.getFilesystemContentSearchByPath = exports.getCodegenRerankingByPath = exports.putCodegenFastapplyByPath = void 0;
4
+ exports.getWatchFilesystemByPath = exports.postUpgrade = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.deleteProcessByIdentifierKill = exports.getProcessByIdentifier = exports.deleteProcessByIdentifier = exports.postProcess = exports.getProcess = exports.putNetworkTunnelConfig = exports.deleteNetworkTunnel = exports.getNetworkProcessByPidPorts = exports.postNetworkProcessByPidMonitor = exports.deleteNetworkProcessByPidMonitor = exports.getHealth = exports.putFilesystemTreeByPath = exports.getFilesystemTreeByPath = exports.deleteFilesystemTreeByPath = exports.putFilesystemByPath = exports.getFilesystemByPath = exports.deleteFilesystemByPath = exports.getFilesystemSearchByPath = exports.postFilesystemMultipartInitiateByPath = exports.getFilesystemMultipartByUploadIdParts = exports.putFilesystemMultipartByUploadIdPart = exports.postFilesystemMultipartByUploadIdComplete = exports.deleteFilesystemMultipartByUploadIdAbort = exports.getFilesystemMultipart = exports.getFilesystemFindByPath = exports.getFilesystemContentSearchByPath = exports.deleteDrivesMountByMountPath = exports.postDrivesMount = exports.getDrivesMount = exports.getCodegenRerankingByPath = exports.putCodegenFastapplyByPath = void 0;
5
5
  const client_fetch_1 = require("@hey-api/client-fetch");
6
6
  const client_gen_1 = require("./client.gen");
7
7
  /**
@@ -73,6 +73,61 @@ const getCodegenRerankingByPath = (options) => {
73
73
  });
74
74
  };
75
75
  exports.getCodegenRerankingByPath = getCodegenRerankingByPath;
76
+ /**
77
+ * List currently mounted drives
78
+ * Returns a list of all currently mounted drives managed by blfs
79
+ */
80
+ const getDrivesMount = (options) => {
81
+ return (options?.client ?? client_gen_1.client).get({
82
+ security: [
83
+ {
84
+ scheme: 'bearer',
85
+ type: 'http'
86
+ }
87
+ ],
88
+ url: '/drives/mount',
89
+ ...options
90
+ });
91
+ };
92
+ exports.getDrivesMount = getDrivesMount;
93
+ /**
94
+ * Attach a drive to a local path
95
+ * Mounts an agent drive using the blfs binary to a local path, optionally mounting a subpath within the drive
96
+ */
97
+ const postDrivesMount = (options) => {
98
+ return (options.client ?? client_gen_1.client).post({
99
+ security: [
100
+ {
101
+ scheme: 'bearer',
102
+ type: 'http'
103
+ }
104
+ ],
105
+ url: '/drives/mount',
106
+ ...options,
107
+ headers: {
108
+ 'Content-Type': 'application/json',
109
+ ...options?.headers
110
+ }
111
+ });
112
+ };
113
+ exports.postDrivesMount = postDrivesMount;
114
+ /**
115
+ * Detach a drive from a local path
116
+ * Unmounts a previously mounted drive from the specified local path
117
+ */
118
+ const deleteDrivesMountByMountPath = (options) => {
119
+ return (options.client ?? client_gen_1.client).delete({
120
+ security: [
121
+ {
122
+ scheme: 'bearer',
123
+ type: 'http'
124
+ }
125
+ ],
126
+ url: '/drives/mount/{mountPath}',
127
+ ...options
128
+ });
129
+ };
130
+ exports.deleteDrivesMountByMountPath = deleteDrivesMountByMountPath;
76
131
  /**
77
132
  * Search for text content in files
78
133
  * Searches for text content inside files using ripgrep. Returns matching lines with context.
@@ -1,8 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.SandboxDrive = void 0;
4
- const settings_js_1 = require("../../common/settings.js");
5
4
  const action_js_1 = require("../action.js");
5
+ const index_js_1 = require("../client/index.js");
6
6
  class SandboxDrive extends action_js_1.SandboxAction {
7
7
  constructor(sandbox) {
8
8
  super(sandbox);
@@ -11,69 +11,40 @@ class SandboxDrive extends action_js_1.SandboxAction {
11
11
  * Mount a drive to the sandbox at a specific mount path
12
12
  */
13
13
  async mount(request) {
14
- const headers = this.sandbox.forceUrl ? this.sandbox.headers : settings_js_1.settings.headers;
15
- const body = {
16
- driveName: request.driveName,
17
- mountPath: request.mountPath,
18
- drivePath: request.drivePath || "/",
19
- };
20
- const response = await this.h2Fetch(`${this.url}/drives/mount`, {
21
- method: 'POST',
22
- headers: {
23
- ...headers,
24
- 'Content-Type': 'application/json',
25
- },
26
- body: JSON.stringify(body),
14
+ const { response, data, error } = await (0, index_js_1.postDrivesMount)({
15
+ baseUrl: this.url,
16
+ client: this.client,
17
+ body: request,
27
18
  });
28
- if (!response.ok) {
29
- const errorText = await response.text();
30
- throw new Error(`Failed to mount drive: ${errorText}`);
31
- }
32
- return await response.json();
19
+ this.handleResponseError(response, data, error);
20
+ return data;
33
21
  }
34
22
  /**
35
23
  * Unmount a drive from the sandbox by mount path
36
24
  */
37
25
  async unmount(mountPath) {
38
- const headers = this.sandbox.forceUrl ? this.sandbox.headers : settings_js_1.settings.headers;
39
- // Ensure mountPath starts with /
40
- const normalizedPath = mountPath.startsWith('/') ? mountPath : `/${mountPath}`;
41
- // Remove leading slash for URL (DELETE /drives/mnt/test not /drives//mnt/test)
42
- const urlPath = normalizedPath.substring(1);
43
- const response = await this.h2Fetch(`${this.url}/drives/mount/${urlPath}`, {
44
- method: 'DELETE',
45
- headers,
26
+ // Strip leading slash for the path parameter since the URL template
27
+ // already includes the slash: /drives/mount/{mountPath}
28
+ const paramPath = mountPath.startsWith("/") ? mountPath.substring(1) : mountPath;
29
+ const { response, data, error } = await (0, index_js_1.deleteDrivesMountByMountPath)({
30
+ baseUrl: this.url,
31
+ client: this.client,
32
+ path: { mountPath: paramPath },
46
33
  });
47
- if (!response.ok) {
48
- const errorText = await response.text();
49
- throw new Error(`Failed to unmount drive: ${errorText}`);
50
- }
51
- return await response.json();
34
+ this.handleResponseError(response, data, error);
35
+ return data;
52
36
  }
53
37
  /**
54
38
  * List all mounted drives in the sandbox
55
39
  */
56
40
  async list() {
57
- const headers = this.sandbox.forceUrl ? this.sandbox.headers : settings_js_1.settings.headers;
58
- const response = await this.h2Fetch(`${this.url}/drives/mount`, {
59
- method: 'GET',
60
- headers,
41
+ const { response, data, error } = await (0, index_js_1.getDrivesMount)({
42
+ baseUrl: this.url,
43
+ client: this.client,
61
44
  });
62
- if (!response.ok) {
63
- const errorText = await response.text();
64
- throw new Error(`Failed to list drives: ${errorText}`);
65
- }
66
- const data = await response.json();
67
- console.log("[drives.list] raw response:", JSON.stringify(data));
68
- // Normalise whichever shape the API returns
69
- const raw = Array.isArray(data)
70
- ? data
71
- : (data?.mounts ?? data?.drives ?? data?.data ?? []);
72
- return raw.map((m) => ({
73
- driveName: m.driveName ?? m.drive_name ?? m.name ?? "",
74
- mountPath: m.mountPath ?? m.mount_path ?? "",
75
- drivePath: m.drivePath ?? m.drive_path ?? "/",
76
- }));
45
+ this.handleResponseError(response, data, error);
46
+ const result = data;
47
+ return result.mounts ?? [];
77
48
  }
78
49
  }
79
50
  exports.SandboxDrive = SandboxDrive;
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.putFilesystemByPath = exports.postProcess = exports.postNetworkProcessByPidMonitor = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.getProcessByIdentifier = exports.getProcess = exports.getCodegenRerankingByPath = exports.putCodegenFastapplyByPath = exports.getNetworkProcessByPidPorts = exports.getFilesystemByPath = exports.deleteProcessByIdentifierKill = exports.deleteProcessByIdentifier = exports.deleteNetworkProcessByPidMonitor = exports.deleteFilesystemByPath = void 0;
17
+ exports.SandboxDrive = exports.putFilesystemByPath = exports.postProcess = exports.postNetworkProcessByPidMonitor = exports.getProcessByIdentifierLogsStream = exports.getProcessByIdentifierLogs = exports.getProcessByIdentifier = exports.getProcess = exports.getCodegenRerankingByPath = exports.putCodegenFastapplyByPath = exports.getNetworkProcessByPidPorts = exports.getFilesystemByPath = exports.deleteProcessByIdentifierKill = exports.deleteProcessByIdentifier = exports.deleteNetworkProcessByPidMonitor = exports.deleteFilesystemByPath = void 0;
18
18
  var index_js_1 = require("./client/index.js");
19
19
  /* Export SDK functions */
20
20
  Object.defineProperty(exports, "deleteFilesystemByPath", { enumerable: true, get: function () { return index_js_1.deleteFilesystemByPath; } });
@@ -34,6 +34,10 @@ Object.defineProperty(exports, "postProcess", { enumerable: true, get: function
34
34
  Object.defineProperty(exports, "putFilesystemByPath", { enumerable: true, get: function () { return index_js_1.putFilesystemByPath; } });
35
35
  __exportStar(require("./filesystem/index.js"), exports);
36
36
  __exportStar(require("./codegen/index.js"), exports);
37
+ var index_js_2 = require("./drive/index.js");
38
+ Object.defineProperty(exports, "SandboxDrive", { enumerable: true, get: function () { return index_js_2.SandboxDrive; } });
39
+ __exportStar(require("./preview.js"), exports);
40
+ __exportStar(require("./session.js"), exports);
37
41
  __exportStar(require("./sandbox.js"), exports);
38
42
  __exportStar(require("./system.js"), exports);
39
43
  __exportStar(require("./types.js"), exports);
@@ -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, DeleteImageData, GetImageData, 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, 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, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, 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, 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
@@ -192,6 +192,16 @@ export declare const cleanupImages: <ThrowOnError extends boolean = false>(optio
192
192
  * 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.
193
193
  */
194
194
  export declare const listImages: <ThrowOnError extends boolean = false>(options?: Options<ListImagesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image[], unknown, ThrowOnError>;
195
+ /**
196
+ * Build a container image
197
+ * Builds a container image without creating a deployment. Returns a presigned URL for uploading source code. After upload, the image will be built and stored in the registry, but no agent, function, sandbox, or job will be created or updated.
198
+ */
199
+ export declare const createImage: <ThrowOnError extends boolean = false>(options: Options<CreateImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
200
+ image?: string;
201
+ message?: string;
202
+ name?: string;
203
+ resourceType?: string;
204
+ }, unknown, ThrowOnError>;
195
205
  /**
196
206
  * Delete container image
197
207
  * 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.
@@ -202,6 +212,21 @@ export declare const deleteImage: <ThrowOnError extends boolean = false>(options
202
212
  * Returns detailed information about a container image including all available tags, creation dates, and size information.
203
213
  */
204
214
  export declare const getImage: <ThrowOnError extends boolean = false>(options: Options<GetImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
215
+ /**
216
+ * List image shares
217
+ * Returns the list of workspaces that a container image is currently shared with.
218
+ */
219
+ export declare const listImageShares: <ThrowOnError extends boolean = false>(options: Options<ListImageSharesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<string[], unknown, ThrowOnError>;
220
+ /**
221
+ * Share a container image
222
+ * Shares a container image with another workspace by copying the metadata record. The underlying storage (S3) data is not duplicated. The target workspace must belong to the same account.
223
+ */
224
+ export declare const shareImage: <ThrowOnError extends boolean = false>(options: Options<ShareImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
225
+ /**
226
+ * Unshare a container image
227
+ * Revokes sharing of a container image with a target workspace. Removes the metadata copy from the target workspace. The source image is not affected.
228
+ */
229
+ export declare const unshareImage: <ThrowOnError extends boolean = false>(options: Options<UnshareImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
205
230
  /**
206
231
  * Delete container image tag
207
232
  * 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.