@blaxel/core 0.3.3-preview.219 → 0.3.4-preview.221

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.
@@ -1,10 +1,10 @@
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.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.getEgressGatewayUsage = 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.listApplicationRevisions = exports.createApplicationCustomDomain = exports.updateApplication = exports.getApplication = exports.deleteApplication = exports.createApplication = exports.listApplications = exports.listAgentRevisions = exports.updateAgent = exports.getAgent = exports.deleteAgent = exports.createAgent = exports.listAgents = void 0;
5
- exports.listSandboxScheduleExecutions = 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.getPolicyUsages = 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.listJobExecutionTasks = 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 = void 0;
6
- 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 = exports.inviteWorkspaceUser = exports.listWorkspaceUsers = exports.getTemplate = exports.listTemplates = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.getSandboxByExternalId = exports.updateSandboxSchedule = exports.getSandboxSchedule = exports.deleteSandboxSchedule = exports.createSandboxSchedule = exports.listSandboxSchedules = void 0;
7
- exports.checkWorkspaceAvailability = void 0;
4
+ 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.getEgressGatewayUsage = exports.listAllEgressGateways = exports.getDriveJwks = exports.getDriveByExternalId = exports.createDriveAccessToken = exports.updateDrive = exports.getDrive = exports.deleteDrive = exports.createDrive = exports.listDrives = exports.verifyCustomDomain = exports.unshareCustomDomain = exports.shareCustomDomain = exports.listCustomDomainShares = exports.updateCustomDomain = exports.getCustomDomain = exports.deleteCustomDomain = exports.createCustomDomain = exports.listCustomDomains = exports.getConfiguration = exports.getChangelog = exports.listApplicationRevisions = exports.createApplicationCustomDomain = exports.updateApplication = exports.getApplication = exports.deleteApplication = exports.createApplication = exports.listApplications = exports.listAgentRevisions = exports.updateAgent = exports.getAgent = exports.deleteAgent = exports.createAgent = exports.listAgents = void 0;
5
+ exports.deleteSandboxPreview = exports.createSandboxPreview = exports.listSandboxPreviews = exports.forkSandbox = exports.updateSandbox = exports.getSandbox = exports.deleteSandbox = exports.createSandbox = exports.listSandboxes = exports.listSandboxHubDefinitions = exports.listPublicIps = exports.getPolicyUsages = 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.listJobExecutionTasks = 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.unshareImage = void 0;
6
+ exports.createEgressIp = exports.listEgressIps = exports.getEgressGateway = exports.deleteEgressGateway = exports.createEgressGateway = exports.listEgressGateways = exports.getVpc = exports.deleteVpc = exports.createVpc = exports.listVpcs = exports.getVolumeByExternalId = 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.getSandboxByExternalId = exports.deleteSandboxSnapshot = exports.createSandboxSnapshot = exports.listSandboxSnapshots = exports.updateSandboxSchedule = exports.getSandboxSchedule = exports.deleteSandboxSchedule = exports.createSandboxSchedule = exports.listSandboxSchedules = exports.listSandboxScheduleExecutions = exports.deleteSandboxPreviewToken = exports.createSandboxPreviewToken = exports.listSandboxPreviewTokens = exports.updateSandboxPreview = exports.getSandboxPreview = void 0;
7
+ exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.getEgressIp = exports.deleteEgressIp = void 0;
8
8
  const client_gen_1 = require("./client.gen");
9
9
  /**
10
10
  * List all agents
@@ -245,6 +245,17 @@ const listApplicationRevisions = (options) => {
245
245
  });
246
246
  };
247
247
  exports.listApplicationRevisions = listApplicationRevisions;
248
+ /**
249
+ * Get latest changelog entries
250
+ * Returns the latest public changelog entries for the controlplane UI. The origin response is intentionally not cached in memory; CloudFront caches this endpoint according to the Cache-Control header.
251
+ */
252
+ const getChangelog = (options) => {
253
+ return (options?.client ?? client_gen_1.client).get({
254
+ url: '/changelog',
255
+ ...options
256
+ });
257
+ };
258
+ exports.getChangelog = getChangelog;
248
259
  /**
249
260
  * Get platform configuration
250
261
  * Returns global platform configuration including available regions, countries, continents, and private locations for deployment policies.
@@ -352,6 +363,61 @@ const updateCustomDomain = (options) => {
352
363
  });
353
364
  };
354
365
  exports.updateCustomDomain = updateCustomDomain;
366
+ /**
367
+ * List custom domain shares
368
+ * Returns the list of workspaces (and/or the account) that a custom domain is currently shared with.
369
+ */
370
+ const listCustomDomainShares = (options) => {
371
+ return (options.client ?? client_gen_1.client).get({
372
+ security: [
373
+ {
374
+ scheme: 'bearer',
375
+ type: 'http'
376
+ }
377
+ ],
378
+ url: '/customdomains/{domainName}/share',
379
+ ...options
380
+ });
381
+ };
382
+ exports.listCustomDomainShares = listCustomDomainShares;
383
+ /**
384
+ * Share a custom domain
385
+ * Shares a verified custom domain with another workspace of the same account by copying the domain record; the ACM certificate and CloudFront tenant stay with the owner and are reused (not re-provisioned). Use targetWorkspace "account" to make the domain usable by every workspace of the account. Cross-account sharing is not supported.
386
+ */
387
+ const shareCustomDomain = (options) => {
388
+ return (options.client ?? client_gen_1.client).post({
389
+ security: [
390
+ {
391
+ scheme: 'bearer',
392
+ type: 'http'
393
+ }
394
+ ],
395
+ url: '/customdomains/{domainName}/share',
396
+ ...options,
397
+ headers: {
398
+ 'Content-Type': 'application/json',
399
+ ...options?.headers
400
+ }
401
+ });
402
+ };
403
+ exports.shareCustomDomain = shareCustomDomain;
404
+ /**
405
+ * Unshare a custom domain
406
+ * Revokes sharing of a custom domain with a target workspace (or the account when targetWorkspace is "account"). Removes the shared copy / clears the account-global marker; the owner's domain is not affected.
407
+ */
408
+ const unshareCustomDomain = (options) => {
409
+ return (options.client ?? client_gen_1.client).delete({
410
+ security: [
411
+ {
412
+ scheme: 'bearer',
413
+ type: 'http'
414
+ }
415
+ ],
416
+ url: '/customdomains/{domainName}/share/{targetWorkspace}',
417
+ ...options
418
+ });
419
+ };
420
+ exports.unshareCustomDomain = unshareCustomDomain;
355
421
  /**
356
422
  * Verify custom domain
357
423
  */
@@ -478,6 +544,23 @@ const createDriveAccessToken = (options) => {
478
544
  });
479
545
  };
480
546
  exports.createDriveAccessToken = createDriveAccessToken;
547
+ /**
548
+ * Get drive by external ID
549
+ * Returns a drive matching the given external ID. If no drive is found, returns 404.
550
+ */
551
+ const getDriveByExternalId = (options) => {
552
+ return (options.client ?? client_gen_1.client).get({
553
+ security: [
554
+ {
555
+ scheme: 'bearer',
556
+ type: 'http'
557
+ }
558
+ ],
559
+ url: '/drives/by-external-id/{externalId}',
560
+ ...options
561
+ });
562
+ };
563
+ exports.getDriveByExternalId = getDriveByExternalId;
481
564
  /**
482
565
  * Get drive token JWKS
483
566
  * Returns the JSON Web Key Set containing the Ed25519 public key used to verify drive access tokens. Other S3-compatible storage can use this endpoint to validate Bearer tokens.
@@ -1635,6 +1718,27 @@ const updateSandbox = (options) => {
1635
1718
  });
1636
1719
  };
1637
1720
  exports.updateSandbox = updateSandbox;
1721
+ /**
1722
+ * Fork sandbox
1723
+ * Forks a sandbox into a new sandbox or application. When forking to a sandbox, the target must not already exist (409 if it does). When forking to an application, a new revision is added if the app already exists, or a new application is created. This is a WIP endpoint — the full implementation depends on the execution plane.
1724
+ */
1725
+ const forkSandbox = (options) => {
1726
+ return (options.client ?? client_gen_1.client).post({
1727
+ security: [
1728
+ {
1729
+ scheme: 'bearer',
1730
+ type: 'http'
1731
+ }
1732
+ ],
1733
+ url: '/sandboxes/{sandboxName}/fork',
1734
+ ...options,
1735
+ headers: {
1736
+ 'Content-Type': 'application/json',
1737
+ ...options?.headers
1738
+ }
1739
+ });
1740
+ };
1741
+ exports.forkSandbox = forkSandbox;
1638
1742
  /**
1639
1743
  * List Sandbox Previews
1640
1744
  * Returns a list of Sandbox Previews in the workspace.
@@ -1893,6 +1997,61 @@ const updateSandboxSchedule = (options) => {
1893
1997
  });
1894
1998
  };
1895
1999
  exports.updateSandboxSchedule = updateSandboxSchedule;
2000
+ /**
2001
+ * List sandbox snapshots
2002
+ * Returns a list of snapshots for the specified sandbox.
2003
+ */
2004
+ const listSandboxSnapshots = (options) => {
2005
+ return (options.client ?? client_gen_1.client).get({
2006
+ security: [
2007
+ {
2008
+ scheme: 'bearer',
2009
+ type: 'http'
2010
+ }
2011
+ ],
2012
+ url: '/sandboxes/{sandboxName}/snapshots',
2013
+ ...options
2014
+ });
2015
+ };
2016
+ exports.listSandboxSnapshots = listSandboxSnapshots;
2017
+ /**
2018
+ * Create sandbox snapshot
2019
+ * Creates a point-in-time snapshot of a sandbox. Snapshots capture the sandbox state and can be used for forking into new sandboxes or applications. This is a WIP endpoint — the full implementation depends on the execution plane.
2020
+ */
2021
+ const createSandboxSnapshot = (options) => {
2022
+ return (options.client ?? client_gen_1.client).post({
2023
+ security: [
2024
+ {
2025
+ scheme: 'bearer',
2026
+ type: 'http'
2027
+ }
2028
+ ],
2029
+ url: '/sandboxes/{sandboxName}/snapshots',
2030
+ ...options,
2031
+ headers: {
2032
+ 'Content-Type': 'application/json',
2033
+ ...options?.headers
2034
+ }
2035
+ });
2036
+ };
2037
+ exports.createSandboxSnapshot = createSandboxSnapshot;
2038
+ /**
2039
+ * Delete sandbox snapshot
2040
+ * Deletes a snapshot of a sandbox by its ID.
2041
+ */
2042
+ const deleteSandboxSnapshot = (options) => {
2043
+ return (options.client ?? client_gen_1.client).delete({
2044
+ security: [
2045
+ {
2046
+ scheme: 'bearer',
2047
+ type: 'http'
2048
+ }
2049
+ ],
2050
+ url: '/sandboxes/{sandboxName}/snapshots/{snapshotId}',
2051
+ ...options
2052
+ });
2053
+ };
2054
+ exports.deleteSandboxSnapshot = deleteSandboxSnapshot;
1896
2055
  /**
1897
2056
  * Get sandbox by external ID
1898
2057
  * Returns the most recent non-terminated sandbox matching the given external ID. If no active sandbox is found, returns 404.
@@ -2354,6 +2513,23 @@ const updateVolume = (options) => {
2354
2513
  });
2355
2514
  };
2356
2515
  exports.updateVolume = updateVolume;
2516
+ /**
2517
+ * Get volume by external ID
2518
+ * Returns an active volume matching the given external ID. If no active volume is found, returns 404.
2519
+ */
2520
+ const getVolumeByExternalId = (options) => {
2521
+ return (options.client ?? client_gen_1.client).get({
2522
+ security: [
2523
+ {
2524
+ scheme: 'bearer',
2525
+ type: 'http'
2526
+ }
2527
+ ],
2528
+ url: '/volumes/by-external-id/{externalId}',
2529
+ ...options
2530
+ });
2531
+ };
2532
+ exports.getVolumeByExternalId = getVolumeByExternalId;
2357
2533
  /**
2358
2534
  * List all VPCs in the workspace
2359
2535
  */
@@ -2651,40 +2827,6 @@ const updateWorkspace = (options) => {
2651
2827
  });
2652
2828
  };
2653
2829
  exports.updateWorkspace = updateWorkspace;
2654
- /**
2655
- * Decline invitation to workspace
2656
- * Declines an invitation to a workspace.
2657
- */
2658
- const declineWorkspaceInvitation = (options) => {
2659
- return (options.client ?? client_gen_1.client).post({
2660
- security: [
2661
- {
2662
- scheme: 'bearer',
2663
- type: 'http'
2664
- }
2665
- ],
2666
- url: '/workspaces/{workspaceName}/decline',
2667
- ...options
2668
- });
2669
- };
2670
- exports.declineWorkspaceInvitation = declineWorkspaceInvitation;
2671
- /**
2672
- * Accept invitation to workspace
2673
- * Accepts an invitation to a workspace.
2674
- */
2675
- const acceptWorkspaceInvitation = (options) => {
2676
- return (options.client ?? client_gen_1.client).post({
2677
- security: [
2678
- {
2679
- scheme: 'bearer',
2680
- type: 'http'
2681
- }
2682
- ],
2683
- url: '/workspaces/{workspaceName}/join',
2684
- ...options
2685
- });
2686
- };
2687
- exports.acceptWorkspaceInvitation = acceptWorkspaceInvitation;
2688
2830
  /**
2689
2831
  * Leave workspace
2690
2832
  * Leaves a workspace.
@@ -28,8 +28,8 @@ function missingCredentialsMessage() {
28
28
  return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
29
29
  }
30
30
  // Build info - these placeholders are replaced at build time by build:replace-imports
31
- const BUILD_VERSION = "0.3.3-preview.219";
32
- const BUILD_COMMIT = "5bb620b84748d321cde1d41e252eb5681cca991d";
31
+ const BUILD_VERSION = "0.3.4-preview.221";
32
+ const BUILD_COMMIT = "9d266f265a8c16a6786df32a1f37a8c19e3933d6";
33
33
  const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
34
34
  const BLAXEL_API_VERSION = "2026-04-28";
35
35
  // Cache for config.yaml tracking value
@@ -74,6 +74,19 @@ function normalizeVolumes(volumes) {
74
74
  mountPath: volume.mountPath,
75
75
  readOnly: 'readOnly' in volume ? volume.readOnly : false
76
76
  };
77
+ // Ephemeral volumes carry a type and a required size (in MB)
78
+ if ('type' in volume && volume.type) {
79
+ volumeAttachment.type = volume.type;
80
+ }
81
+ if (volumeAttachment.type === 'ephemeral') {
82
+ if (typeof volume.sizeMb !== 'number' || !(volume.sizeMb > 0)) {
83
+ throw new Error(`Ephemeral volume '${volume.name}' must have a positive 'sizeMb': ${JSON.stringify(volume)}`);
84
+ }
85
+ volumeAttachment.sizeMb = volume.sizeMb;
86
+ }
87
+ else if ('sizeMb' in volume && typeof volume.sizeMb === 'number') {
88
+ volumeAttachment.sizeMb = volume.sizeMb;
89
+ }
77
90
  volumeObjects.push(volumeAttachment);
78
91
  }
79
92
  else {
@@ -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, ListApplicationsData, CreateApplicationData, DeleteApplicationData, GetApplicationData, UpdateApplicationData, CreateApplicationCustomDomainData, ListApplicationRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListDrivesData, CreateDriveData, DeleteDriveData, GetDriveData, UpdateDriveData, CreateDriveAccessTokenData, GetDriveJwksData, ListAllEgressGatewaysData, GetEgressGatewayUsageData, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, ShareImageResponse, UnshareImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobExecutionTasksData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPendingImageSharesData, AcceptImageShareData, DeclineImageShareData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, GetPolicyUsagesData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, ListSandboxScheduleExecutionsData, ListSandboxSchedulesData, CreateSandboxScheduleData, DeleteSandboxScheduleData, GetSandboxScheduleData, UpdateSandboxScheduleData, GetSandboxByExternalIdData, 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, ListApplicationsData, CreateApplicationData, DeleteApplicationData, GetApplicationData, UpdateApplicationData, CreateApplicationCustomDomainData, ListApplicationRevisionsData, GetChangelogData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, ListCustomDomainSharesData, ShareCustomDomainData, UnshareCustomDomainData, VerifyCustomDomainData, ListDrivesData, CreateDriveData, DeleteDriveData, GetDriveData, UpdateDriveData, CreateDriveAccessTokenData, GetDriveByExternalIdData, GetDriveJwksData, ListAllEgressGatewaysData, GetEgressGatewayUsageData, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, ShareImageResponse, UnshareImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobExecutionTasksData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPendingImageSharesData, AcceptImageShareData, DeclineImageShareData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, GetPolicyUsagesData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ForkSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, ListSandboxScheduleExecutionsData, ListSandboxSchedulesData, CreateSandboxScheduleData, DeleteSandboxScheduleData, GetSandboxScheduleData, UpdateSandboxScheduleData, ListSandboxSnapshotsData, CreateSandboxSnapshotData, DeleteSandboxSnapshotData, GetSandboxByExternalIdData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, UpdateVolumeData, GetVolumeByExternalIdData, ListVpcsData, CreateVpcData, DeleteVpcData, GetVpcData, ListEgressGatewaysData, CreateEgressGatewayData, DeleteEgressGatewayData, GetEgressGatewayData, ListEgressIpsData, CreateEgressIpData, DeleteEgressIpData, GetEgressIpData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, 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
@@ -75,7 +75,12 @@ export declare const createApplicationCustomDomain: <ThrowOnError extends boolea
75
75
  /**
76
76
  * List all application revisions
77
77
  */
78
- export declare const listApplicationRevisions: <ThrowOnError extends boolean = false>(options: Options<ListApplicationRevisionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").RevisionMetadata[], unknown, ThrowOnError>;
78
+ export declare const listApplicationRevisions: <ThrowOnError extends boolean = false>(options: Options<ListApplicationRevisionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").AppRevision[], unknown, ThrowOnError>;
79
+ /**
80
+ * Get latest changelog entries
81
+ * Returns the latest public changelog entries for the controlplane UI. The origin response is intentionally not cached in memory; CloudFront caches this endpoint according to the Cache-Control header.
82
+ */
83
+ export declare const getChangelog: <ThrowOnError extends boolean = false>(options?: Options<GetChangelogData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").ChangelogResponse, unknown, ThrowOnError>;
79
84
  /**
80
85
  * Get platform configuration
81
86
  * Returns global platform configuration including available regions, countries, continents, and private locations for deployment policies.
@@ -103,6 +108,21 @@ export declare const getCustomDomain: <ThrowOnError extends boolean = false>(opt
103
108
  * Update custom domain
104
109
  */
105
110
  export declare const updateCustomDomain: <ThrowOnError extends boolean = false>(options: Options<UpdateCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
111
+ /**
112
+ * List custom domain shares
113
+ * Returns the list of workspaces (and/or the account) that a custom domain is currently shared with.
114
+ */
115
+ export declare const listCustomDomainShares: <ThrowOnError extends boolean = false>(options: Options<ListCustomDomainSharesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomainShareTarget[], unknown, ThrowOnError>;
116
+ /**
117
+ * Share a custom domain
118
+ * Shares a verified custom domain with another workspace of the same account by copying the domain record; the ACM certificate and CloudFront tenant stay with the owner and are reused (not re-provisioned). Use targetWorkspace "account" to make the domain usable by every workspace of the account. Cross-account sharing is not supported.
119
+ */
120
+ export declare const shareCustomDomain: <ThrowOnError extends boolean = false>(options: Options<ShareCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
121
+ /**
122
+ * Unshare a custom domain
123
+ * Revokes sharing of a custom domain with a target workspace (or the account when targetWorkspace is "account"). Removes the shared copy / clears the account-global marker; the owner's domain is not affected.
124
+ */
125
+ export declare const unshareCustomDomain: <ThrowOnError extends boolean = false>(options: Options<UnshareCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
106
126
  /**
107
127
  * Verify custom domain
108
128
  */
@@ -144,6 +164,11 @@ export declare const createDriveAccessToken: <ThrowOnError extends boolean = fal
144
164
  expires_in?: number;
145
165
  token_type?: string;
146
166
  }, unknown, ThrowOnError>;
167
+ /**
168
+ * Get drive by external ID
169
+ * Returns a drive matching the given external ID. If no drive is found, returns 404.
170
+ */
171
+ export declare const getDriveByExternalId: <ThrowOnError extends boolean = false>(options: Options<GetDriveByExternalIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Drive, unknown, ThrowOnError>;
147
172
  /**
148
173
  * Get drive token JWKS
149
174
  * Returns the JSON Web Key Set containing the Ed25519 public key used to verify drive access tokens. Other S3-compatible storage can use this endpoint to validate Bearer tokens.
@@ -491,6 +516,11 @@ export declare const getSandbox: <ThrowOnError extends boolean = false>(options:
491
516
  * Updates a sandbox's configuration. Note that certain changes (like image or memory) may reset the sandbox state. Use lifecycle policies to control automatic cleanup.
492
517
  */
493
518
  export declare const updateSandbox: <ThrowOnError extends boolean = false>(options: Options<UpdateSandboxData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Sandbox, import("./types.gen.js")._Error, ThrowOnError>;
519
+ /**
520
+ * Fork sandbox
521
+ * Forks a sandbox into a new sandbox or application. When forking to a sandbox, the target must not already exist (409 if it does). When forking to an application, a new revision is added if the app already exists, or a new application is created. This is a WIP endpoint — the full implementation depends on the execution plane.
522
+ */
523
+ export declare const forkSandbox: <ThrowOnError extends boolean = false>(options: Options<ForkSandboxData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxForkResponse, import("./types.gen.js")._Error, ThrowOnError>;
494
524
  /**
495
525
  * List Sandbox Previews
496
526
  * Returns a list of Sandbox Previews in the workspace.
@@ -563,6 +593,21 @@ export declare const getSandboxSchedule: <ThrowOnError extends boolean = false>(
563
593
  * Updates a Sandbox Schedule by id.
564
594
  */
565
595
  export declare const updateSandboxSchedule: <ThrowOnError extends boolean = false>(options: Options<UpdateSandboxScheduleData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleEntry, unknown, ThrowOnError>;
596
+ /**
597
+ * List sandbox snapshots
598
+ * Returns a list of snapshots for the specified sandbox.
599
+ */
600
+ export declare const listSandboxSnapshots: <ThrowOnError extends boolean = false>(options: Options<ListSandboxSnapshotsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxSnapshots, import("./types.gen.js")._Error, ThrowOnError>;
601
+ /**
602
+ * Create sandbox snapshot
603
+ * Creates a point-in-time snapshot of a sandbox. Snapshots capture the sandbox state and can be used for forking into new sandboxes or applications. This is a WIP endpoint — the full implementation depends on the execution plane.
604
+ */
605
+ export declare const createSandboxSnapshot: <ThrowOnError extends boolean = false>(options: Options<CreateSandboxSnapshotData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxSnapshot, import("./types.gen.js")._Error, ThrowOnError>;
606
+ /**
607
+ * Delete sandbox snapshot
608
+ * Deletes a snapshot of a sandbox by its ID.
609
+ */
610
+ export declare const deleteSandboxSnapshot: <ThrowOnError extends boolean = false>(options: Options<DeleteSandboxSnapshotData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, import("./types.gen.js")._Error, ThrowOnError>;
566
611
  /**
567
612
  * Get sandbox by external ID
568
613
  * Returns the most recent non-terminated sandbox matching the given external ID. If no active sandbox is found, returns 404.
@@ -716,6 +761,11 @@ export declare const getVolume: <ThrowOnError extends boolean = false>(options:
716
761
  * Updates a volume.
717
762
  */
718
763
  export declare const updateVolume: <ThrowOnError extends boolean = false>(options: Options<UpdateVolumeData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, unknown, ThrowOnError>;
764
+ /**
765
+ * Get volume by external ID
766
+ * Returns an active volume matching the given external ID. If no active volume is found, returns 404.
767
+ */
768
+ export declare const getVolumeByExternalId: <ThrowOnError extends boolean = false>(options: Options<GetVolumeByExternalIdData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, import("./types.gen.js")._Error, ThrowOnError>;
719
769
  /**
720
770
  * List all VPCs in the workspace
721
771
  */
@@ -789,16 +839,6 @@ export declare const getWorkspace: <ThrowOnError extends boolean = false>(option
789
839
  * Updates a workspace's settings such as display name and labels. The workspace name cannot be changed after creation.
790
840
  */
791
841
  export declare const updateWorkspace: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Workspace, import("./types.gen.js")._Error, ThrowOnError>;
792
- /**
793
- * Decline invitation to workspace
794
- * Declines an invitation to a workspace.
795
- */
796
- export declare const declineWorkspaceInvitation: <ThrowOnError extends boolean = false>(options: Options<DeclineWorkspaceInvitationData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PendingInvitation, unknown, ThrowOnError>;
797
- /**
798
- * Accept invitation to workspace
799
- * Accepts an invitation to a workspace.
800
- */
801
- export declare const acceptWorkspaceInvitation: <ThrowOnError extends boolean = false>(options: Options<AcceptWorkspaceInvitationData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PendingInvitationAccept, unknown, ThrowOnError>;
802
842
  /**
803
843
  * Leave workspace
804
844
  * Leaves a workspace.