@blaxel/core 0.2.66 → 0.2.67-preview.86
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/dist/cjs/.tsbuildinfo +1 -1
- package/dist/cjs/client/sdk.gen.js +35 -3
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/client/sdk.gen.js +39 -1
- package/dist/cjs/sandbox/sandbox.js +3 -0
- package/dist/cjs/types/client/sdk.gen.d.ts +9 -1
- package/dist/cjs/types/client/types.gen.d.ts +39 -1
- package/dist/cjs/types/sandbox/client/sdk.gen.d.ts +11 -1
- package/dist/cjs/types/sandbox/client/types.gen.d.ts +61 -0
- package/dist/cjs/types/sandbox/types.d.ts +2 -1
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +35 -3
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/client/sdk.gen.js +39 -1
- package/dist/cjs-browser/sandbox/sandbox.js +3 -0
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +9 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +39 -1
- package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +11 -1
- package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +61 -0
- package/dist/cjs-browser/types/sandbox/types.d.ts +2 -1
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +30 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/client/sdk.gen.js +36 -0
- package/dist/esm/sandbox/sandbox.js +3 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +30 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/client/sdk.gen.js +36 -0
- package/dist/esm-browser/sandbox/sandbox.js +3 -0
- 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.
|
|
5
|
-
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 = void 0;
|
|
4
|
+
exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.getJobExecution = exports.deleteJobExecution = exports.createJobExecution = 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.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.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 = 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 = 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 = void 0;
|
|
7
7
|
const client_gen_1 = require("./client.gen");
|
|
8
8
|
/**
|
|
9
9
|
* List all agents
|
|
@@ -237,6 +237,38 @@ const verifyCustomDomain = (options) => {
|
|
|
237
237
|
});
|
|
238
238
|
};
|
|
239
239
|
exports.verifyCustomDomain = verifyCustomDomain;
|
|
240
|
+
/**
|
|
241
|
+
* List all egress gateways across all VPCs in the workspace
|
|
242
|
+
*/
|
|
243
|
+
const listAllEgressGateways = (options) => {
|
|
244
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
245
|
+
security: [
|
|
246
|
+
{
|
|
247
|
+
scheme: 'bearer',
|
|
248
|
+
type: 'http'
|
|
249
|
+
}
|
|
250
|
+
],
|
|
251
|
+
url: '/egressgateways',
|
|
252
|
+
...options
|
|
253
|
+
});
|
|
254
|
+
};
|
|
255
|
+
exports.listAllEgressGateways = listAllEgressGateways;
|
|
256
|
+
/**
|
|
257
|
+
* List all egress IPs across all VPCs and gateways in the workspace
|
|
258
|
+
*/
|
|
259
|
+
const listAllEgressIps = (options) => {
|
|
260
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
261
|
+
security: [
|
|
262
|
+
{
|
|
263
|
+
scheme: 'bearer',
|
|
264
|
+
type: 'http'
|
|
265
|
+
}
|
|
266
|
+
],
|
|
267
|
+
url: '/egressips',
|
|
268
|
+
...options
|
|
269
|
+
});
|
|
270
|
+
};
|
|
271
|
+
exports.listAllEgressIps = listAllEgressIps;
|
|
240
272
|
/**
|
|
241
273
|
* Get enabled features for workspace
|
|
242
274
|
* Returns only the feature flags that are currently enabled for the specified workspace. Disabled features are not included to prevent information leakage.
|
|
@@ -9,8 +9,8 @@ const index_js_1 = require("../authentication/index.js");
|
|
|
9
9
|
const env_js_1 = require("../common/env.js");
|
|
10
10
|
const node_js_1 = require("../common/node.js");
|
|
11
11
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
12
|
-
const BUILD_VERSION = "0.2.
|
|
13
|
-
const BUILD_COMMIT = "
|
|
12
|
+
const BUILD_VERSION = "0.2.67-preview.86";
|
|
13
|
+
const BUILD_COMMIT = "6481867264ce786d817ad4ad11a30da64ec28cf7";
|
|
14
14
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
15
15
|
// Cache for config.yaml tracking value
|
|
16
16
|
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.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.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
|
/**
|
|
@@ -422,6 +422,44 @@ const getNetworkProcessByPidPorts = (options) => {
|
|
|
422
422
|
});
|
|
423
423
|
};
|
|
424
424
|
exports.getNetworkProcessByPidPorts = getNetworkProcessByPidPorts;
|
|
425
|
+
/**
|
|
426
|
+
* Disconnect tunnel
|
|
427
|
+
* Stop the network tunnel and restore the original network configuration. WARNING: After disconnecting, the sandbox will lose all outbound internet connectivity (no egress). Inbound connections to the sandbox will still work. Use PUT /network/tunnel/config to re-establish the tunnel.
|
|
428
|
+
*/
|
|
429
|
+
const deleteNetworkTunnel = (options) => {
|
|
430
|
+
return (options?.client ?? client_gen_1.client).delete({
|
|
431
|
+
security: [
|
|
432
|
+
{
|
|
433
|
+
scheme: 'bearer',
|
|
434
|
+
type: 'http'
|
|
435
|
+
}
|
|
436
|
+
],
|
|
437
|
+
url: '/network/tunnel',
|
|
438
|
+
...options
|
|
439
|
+
});
|
|
440
|
+
};
|
|
441
|
+
exports.deleteNetworkTunnel = deleteNetworkTunnel;
|
|
442
|
+
/**
|
|
443
|
+
* Update tunnel configuration
|
|
444
|
+
* Apply a new tunnel configuration on the fly. The existing tunnel is torn down and a new one is established. This endpoint is write-only; there is no corresponding GET to read the config back.
|
|
445
|
+
*/
|
|
446
|
+
const putNetworkTunnelConfig = (options) => {
|
|
447
|
+
return (options.client ?? client_gen_1.client).put({
|
|
448
|
+
security: [
|
|
449
|
+
{
|
|
450
|
+
scheme: 'bearer',
|
|
451
|
+
type: 'http'
|
|
452
|
+
}
|
|
453
|
+
],
|
|
454
|
+
url: '/network/tunnel/config',
|
|
455
|
+
...options,
|
|
456
|
+
headers: {
|
|
457
|
+
'Content-Type': 'application/json',
|
|
458
|
+
...options?.headers
|
|
459
|
+
}
|
|
460
|
+
});
|
|
461
|
+
};
|
|
462
|
+
exports.putNetworkTunnelConfig = putNetworkTunnelConfig;
|
|
425
463
|
/**
|
|
426
464
|
* List all processes
|
|
427
465
|
* Get a list of all running and completed processes
|
|
@@ -68,6 +68,7 @@ class SandboxInstance {
|
|
|
68
68
|
'envs' in sandbox ||
|
|
69
69
|
'volumes' in sandbox ||
|
|
70
70
|
'lifecycle' in sandbox ||
|
|
71
|
+
'network' in sandbox ||
|
|
71
72
|
'snapshotEnabled' in sandbox ||
|
|
72
73
|
'labels' in sandbox) {
|
|
73
74
|
if (!sandbox)
|
|
@@ -89,6 +90,7 @@ class SandboxInstance {
|
|
|
89
90
|
"Please specify a region (e.g. 'us-pdx-1', 'eu-lon-1', 'us-was-1') in the sandbox configuration or set the BL_REGION environment variable.");
|
|
90
91
|
}
|
|
91
92
|
const lifecycle = sandbox.lifecycle;
|
|
93
|
+
const network = sandbox.network;
|
|
92
94
|
const snapshotEnabled = sandbox.snapshotEnabled;
|
|
93
95
|
sandbox = {
|
|
94
96
|
metadata: { name: sandbox.name, labels: sandbox.labels },
|
|
@@ -104,6 +106,7 @@ class SandboxInstance {
|
|
|
104
106
|
},
|
|
105
107
|
volumes: volumes,
|
|
106
108
|
lifecycle: lifecycle,
|
|
109
|
+
network: network,
|
|
107
110
|
}
|
|
108
111
|
};
|
|
109
112
|
if (ttl) {
|
|
@@ -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, 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, 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';
|
|
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
|
|
@@ -73,6 +73,14 @@ export declare const updateCustomDomain: <ThrowOnError extends boolean = false>(
|
|
|
73
73
|
* Verify custom domain
|
|
74
74
|
*/
|
|
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
|
+
/**
|
|
77
|
+
* List all egress gateways across all VPCs in the workspace
|
|
78
|
+
*/
|
|
79
|
+
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>;
|
|
80
|
+
/**
|
|
81
|
+
* List all egress IPs across all VPCs and gateways in the workspace
|
|
82
|
+
*/
|
|
83
|
+
export declare const listAllEgressIps: <ThrowOnError extends boolean = false>(options?: Options<ListAllEgressIpsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").EgressIp[], unknown, ThrowOnError>;
|
|
76
84
|
/**
|
|
77
85
|
* Get enabled features for workspace
|
|
78
86
|
* Returns only the feature flags that are currently enabled for the specified workspace. Disabled features are not included to prevent information leakage.
|
|
@@ -731,6 +731,10 @@ export type FunctionSpec = {
|
|
|
731
731
|
* When true, the function is publicly accessible without authentication. Only available for mk3 generation.
|
|
732
732
|
*/
|
|
733
733
|
public?: boolean;
|
|
734
|
+
/**
|
|
735
|
+
* Base64-encoded API reference for MCP code mode
|
|
736
|
+
*/
|
|
737
|
+
reference?: string;
|
|
734
738
|
revision?: RevisionConfiguration;
|
|
735
739
|
runtime?: FunctionRuntime;
|
|
736
740
|
triggers?: Triggers;
|
|
@@ -749,6 +753,10 @@ export type FunctionSpecWritable = {
|
|
|
749
753
|
* When true, the function is publicly accessible without authentication. Only available for mk3 generation.
|
|
750
754
|
*/
|
|
751
755
|
public?: boolean;
|
|
756
|
+
/**
|
|
757
|
+
* Base64-encoded API reference for MCP code mode
|
|
758
|
+
*/
|
|
759
|
+
reference?: string;
|
|
752
760
|
revision?: RevisionConfiguration;
|
|
753
761
|
runtime?: FunctionRuntime;
|
|
754
762
|
triggers?: TriggersWritable;
|
|
@@ -1683,7 +1691,7 @@ export type ModelRuntime = {
|
|
|
1683
1691
|
/**
|
|
1684
1692
|
* Infrastructure generation. Empty (default) uses the classic deployment path. mk3 deploys through the model-gateway on microVM clusters.
|
|
1685
1693
|
*/
|
|
1686
|
-
generation?: 'mk3';
|
|
1694
|
+
generation?: 'mk3' | 'mk2';
|
|
1687
1695
|
/**
|
|
1688
1696
|
* Model identifier at the provider (e.g., gpt-4.1, claude-sonnet-4-20250514, mistral-large-latest)
|
|
1689
1697
|
*/
|
|
@@ -2245,6 +2253,10 @@ export type Region = {
|
|
|
2245
2253
|
* Region display name
|
|
2246
2254
|
*/
|
|
2247
2255
|
country?: string;
|
|
2256
|
+
/**
|
|
2257
|
+
* Egress availability status - indicates if network plane URL is configured for the region
|
|
2258
|
+
*/
|
|
2259
|
+
egressAvailable?: boolean;
|
|
2248
2260
|
/**
|
|
2249
2261
|
* Region display name
|
|
2250
2262
|
*/
|
|
@@ -3421,6 +3433,32 @@ export type VerifyCustomDomainResponses = {
|
|
|
3421
3433
|
200: CustomDomain;
|
|
3422
3434
|
};
|
|
3423
3435
|
export type VerifyCustomDomainResponse = VerifyCustomDomainResponses[keyof VerifyCustomDomainResponses];
|
|
3436
|
+
export type ListAllEgressGatewaysData = {
|
|
3437
|
+
body?: never;
|
|
3438
|
+
path?: never;
|
|
3439
|
+
query?: never;
|
|
3440
|
+
url: '/egressgateways';
|
|
3441
|
+
};
|
|
3442
|
+
export type ListAllEgressGatewaysResponses = {
|
|
3443
|
+
/**
|
|
3444
|
+
* successful operation
|
|
3445
|
+
*/
|
|
3446
|
+
200: Array<EgressGateway>;
|
|
3447
|
+
};
|
|
3448
|
+
export type ListAllEgressGatewaysResponse = ListAllEgressGatewaysResponses[keyof ListAllEgressGatewaysResponses];
|
|
3449
|
+
export type ListAllEgressIpsData = {
|
|
3450
|
+
body?: never;
|
|
3451
|
+
path?: never;
|
|
3452
|
+
query?: never;
|
|
3453
|
+
url: '/egressips';
|
|
3454
|
+
};
|
|
3455
|
+
export type ListAllEgressIpsResponses = {
|
|
3456
|
+
/**
|
|
3457
|
+
* successful operation
|
|
3458
|
+
*/
|
|
3459
|
+
200: Array<EgressIp>;
|
|
3460
|
+
};
|
|
3461
|
+
export type ListAllEgressIpsResponse = ListAllEgressIpsResponses[keyof ListAllEgressIpsResponses];
|
|
3424
3462
|
export type GetWorkspaceFeaturesData = {
|
|
3425
3463
|
body?: never;
|
|
3426
3464
|
path?: never;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { type Options as ClientOptions, type TDataShape, type Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type { PutCodegenFastapplyByPathData, GetCodegenRerankingByPathData, GetFilesystemContentSearchByPathData, GetFilesystemFindByPathData, GetFilesystemMultipartData, DeleteFilesystemMultipartByUploadIdAbortData, PostFilesystemMultipartByUploadIdCompleteData, PutFilesystemMultipartByUploadIdPartData, GetFilesystemMultipartByUploadIdPartsData, PostFilesystemMultipartInitiateByPathData, GetFilesystemSearchByPathData, DeleteFilesystemByPathData, GetFilesystemByPathData, PutFilesystemByPathData, DeleteFilesystemTreeByPathData, GetFilesystemTreeByPathData, PutFilesystemTreeByPathData, GetHealthData, DeleteNetworkProcessByPidMonitorData, PostNetworkProcessByPidMonitorData, GetNetworkProcessByPidPortsData, GetProcessData, PostProcessData, DeleteProcessByIdentifierData, GetProcessByIdentifierData, DeleteProcessByIdentifierKillData, GetProcessByIdentifierLogsData, GetProcessByIdentifierLogsStreamData, PostUpgradeData, GetWatchFilesystemByPathData } from './types.gen';
|
|
2
|
+
import type { PutCodegenFastapplyByPathData, GetCodegenRerankingByPathData, GetFilesystemContentSearchByPathData, GetFilesystemFindByPathData, GetFilesystemMultipartData, DeleteFilesystemMultipartByUploadIdAbortData, PostFilesystemMultipartByUploadIdCompleteData, PutFilesystemMultipartByUploadIdPartData, GetFilesystemMultipartByUploadIdPartsData, PostFilesystemMultipartInitiateByPathData, GetFilesystemSearchByPathData, DeleteFilesystemByPathData, GetFilesystemByPathData, PutFilesystemByPathData, DeleteFilesystemTreeByPathData, GetFilesystemTreeByPathData, PutFilesystemTreeByPathData, GetHealthData, DeleteNetworkProcessByPidMonitorData, PostNetworkProcessByPidMonitorData, GetNetworkProcessByPidPortsData, DeleteNetworkTunnelData, PutNetworkTunnelConfigData, GetProcessData, PostProcessData, DeleteProcessByIdentifierData, GetProcessByIdentifierData, DeleteProcessByIdentifierKillData, GetProcessByIdentifierLogsData, GetProcessByIdentifierLogsStreamData, PostUpgradeData, GetWatchFilesystemByPathData } from './types.gen';
|
|
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
|
|
@@ -156,6 +156,16 @@ export declare const postNetworkProcessByPidMonitor: <ThrowOnError extends boole
|
|
|
156
156
|
export declare const getNetworkProcessByPidPorts: <ThrowOnError extends boolean = false>(options: Options<GetNetworkProcessByPidPortsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
157
157
|
[key: string]: unknown;
|
|
158
158
|
}, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
159
|
+
/**
|
|
160
|
+
* Disconnect tunnel
|
|
161
|
+
* Stop the network tunnel and restore the original network configuration. WARNING: After disconnecting, the sandbox will lose all outbound internet connectivity (no egress). Inbound connections to the sandbox will still work. Use PUT /network/tunnel/config to re-establish the tunnel.
|
|
162
|
+
*/
|
|
163
|
+
export declare const deleteNetworkTunnel: <ThrowOnError extends boolean = false>(options?: Options<DeleteNetworkTunnelData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
164
|
+
/**
|
|
165
|
+
* Update tunnel configuration
|
|
166
|
+
* Apply a new tunnel configuration on the fly. The existing tunnel is torn down and a new one is established. This endpoint is write-only; there is no corresponding GET to read the config back.
|
|
167
|
+
*/
|
|
168
|
+
export declare const putNetworkTunnelConfig: <ThrowOnError extends boolean = false>(options: Options<PutNetworkTunnelConfigData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen").SuccessResponse, import("./types.gen").ErrorResponse, ThrowOnError>;
|
|
159
169
|
/**
|
|
160
170
|
* List all processes
|
|
161
171
|
* Get a list of all running and completed processes
|
|
@@ -184,6 +184,12 @@ export type TreeRequest = {
|
|
|
184
184
|
[key: string]: string;
|
|
185
185
|
};
|
|
186
186
|
};
|
|
187
|
+
export type TunnelConfigRequest = {
|
|
188
|
+
/**
|
|
189
|
+
* Base64-encoded tunnel config JSON
|
|
190
|
+
*/
|
|
191
|
+
config: string;
|
|
192
|
+
};
|
|
187
193
|
export type UpgradeRequest = {
|
|
188
194
|
/**
|
|
189
195
|
* Base URL for releases (useful for forks)
|
|
@@ -1025,6 +1031,61 @@ export type GetNetworkProcessByPidPortsResponses = {
|
|
|
1025
1031
|
};
|
|
1026
1032
|
};
|
|
1027
1033
|
export type GetNetworkProcessByPidPortsResponse = GetNetworkProcessByPidPortsResponses[keyof GetNetworkProcessByPidPortsResponses];
|
|
1034
|
+
export type DeleteNetworkTunnelData = {
|
|
1035
|
+
body?: never;
|
|
1036
|
+
path?: never;
|
|
1037
|
+
query?: never;
|
|
1038
|
+
url: '/network/tunnel';
|
|
1039
|
+
};
|
|
1040
|
+
export type DeleteNetworkTunnelErrors = {
|
|
1041
|
+
/**
|
|
1042
|
+
* No tunnel is running
|
|
1043
|
+
*/
|
|
1044
|
+
400: ErrorResponse;
|
|
1045
|
+
/**
|
|
1046
|
+
* Failed to stop tunnel
|
|
1047
|
+
*/
|
|
1048
|
+
500: ErrorResponse;
|
|
1049
|
+
};
|
|
1050
|
+
export type DeleteNetworkTunnelError = DeleteNetworkTunnelErrors[keyof DeleteNetworkTunnelErrors];
|
|
1051
|
+
export type DeleteNetworkTunnelResponses = {
|
|
1052
|
+
/**
|
|
1053
|
+
* Tunnel disconnected
|
|
1054
|
+
*/
|
|
1055
|
+
200: SuccessResponse;
|
|
1056
|
+
};
|
|
1057
|
+
export type DeleteNetworkTunnelResponse = DeleteNetworkTunnelResponses[keyof DeleteNetworkTunnelResponses];
|
|
1058
|
+
export type PutNetworkTunnelConfigData = {
|
|
1059
|
+
/**
|
|
1060
|
+
* Base64-encoded tunnel configuration
|
|
1061
|
+
*/
|
|
1062
|
+
body: TunnelConfigRequest;
|
|
1063
|
+
path?: never;
|
|
1064
|
+
query?: never;
|
|
1065
|
+
url: '/network/tunnel/config';
|
|
1066
|
+
};
|
|
1067
|
+
export type PutNetworkTunnelConfigErrors = {
|
|
1068
|
+
/**
|
|
1069
|
+
* Invalid request body
|
|
1070
|
+
*/
|
|
1071
|
+
400: ErrorResponse;
|
|
1072
|
+
/**
|
|
1073
|
+
* Invalid tunnel configuration
|
|
1074
|
+
*/
|
|
1075
|
+
422: ErrorResponse;
|
|
1076
|
+
/**
|
|
1077
|
+
* Failed to apply configuration
|
|
1078
|
+
*/
|
|
1079
|
+
500: ErrorResponse;
|
|
1080
|
+
};
|
|
1081
|
+
export type PutNetworkTunnelConfigError = PutNetworkTunnelConfigErrors[keyof PutNetworkTunnelConfigErrors];
|
|
1082
|
+
export type PutNetworkTunnelConfigResponses = {
|
|
1083
|
+
/**
|
|
1084
|
+
* Configuration applied
|
|
1085
|
+
*/
|
|
1086
|
+
200: SuccessResponse;
|
|
1087
|
+
};
|
|
1088
|
+
export type PutNetworkTunnelConfigResponse = PutNetworkTunnelConfigResponses[keyof PutNetworkTunnelConfigResponses];
|
|
1028
1089
|
export type GetProcessData = {
|
|
1029
1090
|
body?: never;
|
|
1030
1091
|
path?: never;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Port, Sandbox, SandboxLifecycle, VolumeAttachment } from "../client/types.gen";
|
|
1
|
+
import { Port, Sandbox, SandboxLifecycle, VolumeAttachment, SandboxNetwork } from "../client/types.gen";
|
|
2
2
|
import { PostProcessResponse, ProcessRequest } from "./client";
|
|
3
3
|
export interface SessionCreateOptions {
|
|
4
4
|
expiresAt?: Date;
|
|
@@ -40,6 +40,7 @@ export type SandboxCreateConfiguration = {
|
|
|
40
40
|
expires?: Date;
|
|
41
41
|
region?: string;
|
|
42
42
|
lifecycle?: SandboxLifecycle;
|
|
43
|
+
network?: SandboxNetwork;
|
|
43
44
|
snapshotEnabled?: boolean;
|
|
44
45
|
labels?: Record<string, string>;
|
|
45
46
|
};
|