@blaxel/core 0.2.96-preview.202 → 0.2.96-preview.204
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 +113 -2
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/sandbox/index.js +1 -0
- package/dist/cjs/sandbox/sandbox.js +3 -0
- package/dist/cjs/sandbox/schedule.js +91 -0
- package/dist/cjs/types/client/sdk.gen.d.ts +31 -1
- package/dist/cjs/types/client/types.gen.d.ts +347 -0
- package/dist/cjs/types/sandbox/index.d.ts +1 -0
- package/dist/cjs/types/sandbox/sandbox.d.ts +2 -0
- package/dist/cjs/types/sandbox/schedule.d.ts +16 -0
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +113 -2
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/sandbox/index.js +1 -0
- package/dist/cjs-browser/sandbox/sandbox.js +3 -0
- package/dist/cjs-browser/sandbox/schedule.js +91 -0
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +31 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +347 -0
- package/dist/cjs-browser/types/sandbox/index.d.ts +1 -0
- package/dist/cjs-browser/types/sandbox/sandbox.d.ts +2 -0
- package/dist/cjs-browser/types/sandbox/schedule.d.ts +16 -0
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +104 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm/sandbox/index.js +1 -0
- package/dist/esm/sandbox/sandbox.js +3 -0
- package/dist/esm/sandbox/schedule.js +87 -0
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +104 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/dist/esm-browser/sandbox/index.js +1 -0
- package/dist/esm-browser/sandbox/sandbox.js +3 -0
- package/dist/esm-browser/sandbox/schedule.js +87 -0
- package/package.json +1 -1
|
@@ -2,8 +2,9 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
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.
|
|
6
|
-
exports.
|
|
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;
|
|
7
8
|
const client_gen_1 = require("./client.gen");
|
|
8
9
|
/**
|
|
9
10
|
* List all agents
|
|
@@ -1782,6 +1783,116 @@ const deleteSandboxPreviewToken = (options) => {
|
|
|
1782
1783
|
});
|
|
1783
1784
|
};
|
|
1784
1785
|
exports.deleteSandboxPreviewToken = deleteSandboxPreviewToken;
|
|
1786
|
+
/**
|
|
1787
|
+
* List Sandbox Schedule Executions
|
|
1788
|
+
* Returns the execution history of a Sandbox's schedules (across all schedules of the sandbox), newest first. Cursor-paginated via the `cursor` and `limit` query parameters. Each item records the HTTP status of submitting the scheduled command and the process name for log lookup.
|
|
1789
|
+
*/
|
|
1790
|
+
const listSandboxScheduleExecutions = (options) => {
|
|
1791
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1792
|
+
security: [
|
|
1793
|
+
{
|
|
1794
|
+
scheme: 'bearer',
|
|
1795
|
+
type: 'http'
|
|
1796
|
+
}
|
|
1797
|
+
],
|
|
1798
|
+
url: '/sandboxes/{sandboxName}/schedule-executions',
|
|
1799
|
+
...options
|
|
1800
|
+
});
|
|
1801
|
+
};
|
|
1802
|
+
exports.listSandboxScheduleExecutions = listSandboxScheduleExecutions;
|
|
1803
|
+
/**
|
|
1804
|
+
* List Sandbox Schedules
|
|
1805
|
+
* Returns the schedules configured on a Sandbox. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions return a bare array.
|
|
1806
|
+
*/
|
|
1807
|
+
const listSandboxSchedules = (options) => {
|
|
1808
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1809
|
+
security: [
|
|
1810
|
+
{
|
|
1811
|
+
scheme: 'bearer',
|
|
1812
|
+
type: 'http'
|
|
1813
|
+
}
|
|
1814
|
+
],
|
|
1815
|
+
url: '/sandboxes/{sandboxName}/schedules',
|
|
1816
|
+
...options
|
|
1817
|
+
});
|
|
1818
|
+
};
|
|
1819
|
+
exports.listSandboxSchedules = listSandboxSchedules;
|
|
1820
|
+
/**
|
|
1821
|
+
* Create Sandbox Schedule
|
|
1822
|
+
* Adds a schedule to a Sandbox.
|
|
1823
|
+
*/
|
|
1824
|
+
const createSandboxSchedule = (options) => {
|
|
1825
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1826
|
+
security: [
|
|
1827
|
+
{
|
|
1828
|
+
scheme: 'bearer',
|
|
1829
|
+
type: 'http'
|
|
1830
|
+
}
|
|
1831
|
+
],
|
|
1832
|
+
url: '/sandboxes/{sandboxName}/schedules',
|
|
1833
|
+
...options,
|
|
1834
|
+
headers: {
|
|
1835
|
+
'Content-Type': 'application/json',
|
|
1836
|
+
...options?.headers
|
|
1837
|
+
}
|
|
1838
|
+
});
|
|
1839
|
+
};
|
|
1840
|
+
exports.createSandboxSchedule = createSandboxSchedule;
|
|
1841
|
+
/**
|
|
1842
|
+
* Delete Sandbox Schedule
|
|
1843
|
+
* Deletes a Sandbox Schedule by id.
|
|
1844
|
+
*/
|
|
1845
|
+
const deleteSandboxSchedule = (options) => {
|
|
1846
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1847
|
+
security: [
|
|
1848
|
+
{
|
|
1849
|
+
scheme: 'bearer',
|
|
1850
|
+
type: 'http'
|
|
1851
|
+
}
|
|
1852
|
+
],
|
|
1853
|
+
url: '/sandboxes/{sandboxName}/schedules/{scheduleId}',
|
|
1854
|
+
...options
|
|
1855
|
+
});
|
|
1856
|
+
};
|
|
1857
|
+
exports.deleteSandboxSchedule = deleteSandboxSchedule;
|
|
1858
|
+
/**
|
|
1859
|
+
* Get Sandbox Schedule
|
|
1860
|
+
* Returns a Sandbox Schedule by id.
|
|
1861
|
+
*/
|
|
1862
|
+
const getSandboxSchedule = (options) => {
|
|
1863
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1864
|
+
security: [
|
|
1865
|
+
{
|
|
1866
|
+
scheme: 'bearer',
|
|
1867
|
+
type: 'http'
|
|
1868
|
+
}
|
|
1869
|
+
],
|
|
1870
|
+
url: '/sandboxes/{sandboxName}/schedules/{scheduleId}',
|
|
1871
|
+
...options
|
|
1872
|
+
});
|
|
1873
|
+
};
|
|
1874
|
+
exports.getSandboxSchedule = getSandboxSchedule;
|
|
1875
|
+
/**
|
|
1876
|
+
* Update Sandbox Schedule
|
|
1877
|
+
* Updates a Sandbox Schedule by id.
|
|
1878
|
+
*/
|
|
1879
|
+
const updateSandboxSchedule = (options) => {
|
|
1880
|
+
return (options.client ?? client_gen_1.client).put({
|
|
1881
|
+
security: [
|
|
1882
|
+
{
|
|
1883
|
+
scheme: 'bearer',
|
|
1884
|
+
type: 'http'
|
|
1885
|
+
}
|
|
1886
|
+
],
|
|
1887
|
+
url: '/sandboxes/{sandboxName}/schedules/{scheduleId}',
|
|
1888
|
+
...options,
|
|
1889
|
+
headers: {
|
|
1890
|
+
'Content-Type': 'application/json',
|
|
1891
|
+
...options?.headers
|
|
1892
|
+
}
|
|
1893
|
+
});
|
|
1894
|
+
};
|
|
1895
|
+
exports.updateSandboxSchedule = updateSandboxSchedule;
|
|
1785
1896
|
/**
|
|
1786
1897
|
* Get sandbox by external ID
|
|
1787
1898
|
* Returns the most recent non-terminated sandbox matching the given external ID. If no active sandbox is found, returns 404.
|
|
@@ -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.2.96-preview.
|
|
32
|
-
const BUILD_COMMIT = "
|
|
31
|
+
const BUILD_VERSION = "0.2.96-preview.204";
|
|
32
|
+
const BUILD_COMMIT = "05c335edad327feae5ecd407b96b385a7662a701";
|
|
33
33
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
34
34
|
const BLAXEL_API_VERSION = "2026-04-16";
|
|
35
35
|
// Cache for config.yaml tracking value
|
|
@@ -37,6 +37,7 @@ __exportStar(require("./codegen/index.js"), exports);
|
|
|
37
37
|
var index_js_2 = require("./drive/index.js");
|
|
38
38
|
Object.defineProperty(exports, "SandboxDrive", { enumerable: true, get: function () { return index_js_2.SandboxDrive; } });
|
|
39
39
|
__exportStar(require("./preview.js"), exports);
|
|
40
|
+
__exportStar(require("./schedule.js"), exports);
|
|
40
41
|
__exportStar(require("./session.js"), exports);
|
|
41
42
|
__exportStar(require("./sandbox.js"), exports);
|
|
42
43
|
__exportStar(require("./system.js"), exports);
|
|
@@ -44,6 +44,7 @@ const index_js_4 = require("./filesystem/index.js");
|
|
|
44
44
|
const index_js_5 = require("./network/index.js");
|
|
45
45
|
const preview_js_1 = require("./preview.js");
|
|
46
46
|
const index_js_6 = require("./process/index.js");
|
|
47
|
+
const schedule_js_1 = require("./schedule.js");
|
|
47
48
|
const session_js_1 = require("./session.js");
|
|
48
49
|
const system_js_1 = require("./system.js");
|
|
49
50
|
const types_js_1 = require("./types.js");
|
|
@@ -77,6 +78,7 @@ class SandboxInstance {
|
|
|
77
78
|
network;
|
|
78
79
|
process;
|
|
79
80
|
previews;
|
|
81
|
+
schedules;
|
|
80
82
|
sessions;
|
|
81
83
|
codegen;
|
|
82
84
|
system;
|
|
@@ -88,6 +90,7 @@ class SandboxInstance {
|
|
|
88
90
|
this.fs = new index_js_4.SandboxFileSystem(sandbox, this.process);
|
|
89
91
|
this.network = new index_js_5.SandboxNetwork(sandbox);
|
|
90
92
|
this.previews = new preview_js_1.SandboxPreviews(sandbox);
|
|
93
|
+
this.schedules = new schedule_js_1.SandboxSchedules(sandbox);
|
|
91
94
|
this.sessions = new session_js_1.SandboxSessions(sandbox);
|
|
92
95
|
this.codegen = new index_js_2.SandboxCodegen(sandbox);
|
|
93
96
|
this.system = new system_js_1.SandboxSystem(sandbox);
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SandboxSchedules = void 0;
|
|
4
|
+
const index_js_1 = require("../client/index.js");
|
|
5
|
+
// Schedule list endpoints return a bare array on older API versions and a
|
|
6
|
+
// cursor-paginated `{ data, meta }` envelope starting on Blaxel-Version
|
|
7
|
+
// 2026-04-28. Handle both so the wrapper works regardless of the SDK's default
|
|
8
|
+
// version.
|
|
9
|
+
function unwrapPage(data) {
|
|
10
|
+
if (Array.isArray(data))
|
|
11
|
+
return data;
|
|
12
|
+
return data?.data ?? [];
|
|
13
|
+
}
|
|
14
|
+
// SandboxSchedules manages a sandbox's schedules. A schedule entry is a flat
|
|
15
|
+
// record (id/type/value/input) with no sub-resource of its own, so methods
|
|
16
|
+
// return the raw SandboxScheduleEntry rather than a wrapper class (the generated
|
|
17
|
+
// `SandboxSchedule` type is the array form `SandboxScheduleEntry[]`).
|
|
18
|
+
class SandboxSchedules {
|
|
19
|
+
sandbox;
|
|
20
|
+
constructor(sandbox) {
|
|
21
|
+
this.sandbox = sandbox;
|
|
22
|
+
}
|
|
23
|
+
get sandboxName() {
|
|
24
|
+
return this.sandbox.metadata.name;
|
|
25
|
+
}
|
|
26
|
+
async list(options = {}) {
|
|
27
|
+
const { data } = await (0, index_js_1.listSandboxSchedules)({
|
|
28
|
+
path: {
|
|
29
|
+
sandboxName: this.sandboxName,
|
|
30
|
+
},
|
|
31
|
+
query: options,
|
|
32
|
+
throwOnError: true,
|
|
33
|
+
});
|
|
34
|
+
return unwrapPage(data);
|
|
35
|
+
}
|
|
36
|
+
async create(schedule) {
|
|
37
|
+
const { data } = await (0, index_js_1.createSandboxSchedule)({
|
|
38
|
+
path: {
|
|
39
|
+
sandboxName: this.sandboxName,
|
|
40
|
+
},
|
|
41
|
+
body: schedule,
|
|
42
|
+
throwOnError: true,
|
|
43
|
+
});
|
|
44
|
+
return data;
|
|
45
|
+
}
|
|
46
|
+
async get(scheduleId) {
|
|
47
|
+
const { data } = await (0, index_js_1.getSandboxSchedule)({
|
|
48
|
+
path: {
|
|
49
|
+
sandboxName: this.sandboxName,
|
|
50
|
+
scheduleId,
|
|
51
|
+
},
|
|
52
|
+
throwOnError: true,
|
|
53
|
+
});
|
|
54
|
+
return data;
|
|
55
|
+
}
|
|
56
|
+
async update(scheduleId, schedule) {
|
|
57
|
+
const { data } = await (0, index_js_1.updateSandboxSchedule)({
|
|
58
|
+
path: {
|
|
59
|
+
sandboxName: this.sandboxName,
|
|
60
|
+
scheduleId,
|
|
61
|
+
},
|
|
62
|
+
body: schedule,
|
|
63
|
+
throwOnError: true,
|
|
64
|
+
});
|
|
65
|
+
return data;
|
|
66
|
+
}
|
|
67
|
+
async delete(scheduleId) {
|
|
68
|
+
const { data } = await (0, index_js_1.deleteSandboxSchedule)({
|
|
69
|
+
path: {
|
|
70
|
+
sandboxName: this.sandboxName,
|
|
71
|
+
scheduleId,
|
|
72
|
+
},
|
|
73
|
+
throwOnError: true,
|
|
74
|
+
});
|
|
75
|
+
return data;
|
|
76
|
+
}
|
|
77
|
+
// List the execution history of every schedule on the sandbox, newest first.
|
|
78
|
+
// Executions are sandbox-scoped, not per-schedule; filter by `scheduleId` on
|
|
79
|
+
// the returned records to isolate a single schedule's runs.
|
|
80
|
+
async executions(options = {}) {
|
|
81
|
+
const { data } = await (0, index_js_1.listSandboxScheduleExecutions)({
|
|
82
|
+
path: {
|
|
83
|
+
sandboxName: this.sandboxName,
|
|
84
|
+
},
|
|
85
|
+
query: options,
|
|
86
|
+
throwOnError: true,
|
|
87
|
+
});
|
|
88
|
+
return unwrapPage(data);
|
|
89
|
+
}
|
|
90
|
+
}
|
|
91
|
+
exports.SandboxSchedules = SandboxSchedules;
|
|
@@ -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, 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, 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';
|
|
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
|
|
@@ -533,6 +533,36 @@ export declare const createSandboxPreviewToken: <ThrowOnError extends boolean =
|
|
|
533
533
|
export declare const deleteSandboxPreviewToken: <ThrowOnError extends boolean = false>(options: Options<DeleteSandboxPreviewTokenData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<{
|
|
534
534
|
message?: string;
|
|
535
535
|
}, unknown, ThrowOnError>;
|
|
536
|
+
/**
|
|
537
|
+
* List Sandbox Schedule Executions
|
|
538
|
+
* Returns the execution history of a Sandbox's schedules (across all schedules of the sandbox), newest first. Cursor-paginated via the `cursor` and `limit` query parameters. Each item records the HTTP status of submitting the scheduled command and the process name for log lookup.
|
|
539
|
+
*/
|
|
540
|
+
export declare const listSandboxScheduleExecutions: <ThrowOnError extends boolean = false>(options: Options<ListSandboxScheduleExecutionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleExecutionList, unknown, ThrowOnError>;
|
|
541
|
+
/**
|
|
542
|
+
* List Sandbox Schedules
|
|
543
|
+
* Returns the schedules configured on a Sandbox. Starting with API version 2026-04-28 the response is wrapped in `{data, meta}` and supports cursor pagination via the `cursor` and `limit` query parameters; older versions return a bare array.
|
|
544
|
+
*/
|
|
545
|
+
export declare const listSandboxSchedules: <ThrowOnError extends boolean = false>(options: Options<ListSandboxSchedulesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleEntryList, unknown, ThrowOnError>;
|
|
546
|
+
/**
|
|
547
|
+
* Create Sandbox Schedule
|
|
548
|
+
* Adds a schedule to a Sandbox.
|
|
549
|
+
*/
|
|
550
|
+
export declare const createSandboxSchedule: <ThrowOnError extends boolean = false>(options: Options<CreateSandboxScheduleData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleEntry, unknown, ThrowOnError>;
|
|
551
|
+
/**
|
|
552
|
+
* Delete Sandbox Schedule
|
|
553
|
+
* Deletes a Sandbox Schedule by id.
|
|
554
|
+
*/
|
|
555
|
+
export declare const deleteSandboxSchedule: <ThrowOnError extends boolean = false>(options: Options<DeleteSandboxScheduleData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleEntry, unknown, ThrowOnError>;
|
|
556
|
+
/**
|
|
557
|
+
* Get Sandbox Schedule
|
|
558
|
+
* Returns a Sandbox Schedule by id.
|
|
559
|
+
*/
|
|
560
|
+
export declare const getSandboxSchedule: <ThrowOnError extends boolean = false>(options: Options<GetSandboxScheduleData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleEntry, unknown, ThrowOnError>;
|
|
561
|
+
/**
|
|
562
|
+
* Update Sandbox Schedule
|
|
563
|
+
* Updates a Sandbox Schedule by id.
|
|
564
|
+
*/
|
|
565
|
+
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>;
|
|
536
566
|
/**
|
|
537
567
|
* Get sandbox by external ID
|
|
538
568
|
* Returns the most recent non-terminated sandbox matching the given external ID. If no active sandbox is found, returns 404.
|