@blaxel/core 0.3.29-preview.321 → 0.3.30-preview.323
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 +93 -4
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/types/client/sdk.gen.d.ts +26 -1
- package/dist/cjs/types/client/types.gen.d.ts +156 -2
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +93 -4
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +26 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +156 -2
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +84 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +84 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/package.json +1 -1
|
@@ -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.
|
|
5
|
-
exports.
|
|
6
|
-
exports.
|
|
7
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = 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.getVolumeByExternalId = exports.updateVolume = void 0;
|
|
4
|
+
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.deleteDriveFolder = 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.forkSandbox = exports.archiveSandbox = 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.listImageTags = exports.unshareImage = exports.shareImage = void 0;
|
|
6
|
+
exports.updateVolumeTemplate = exports.getVolumeTemplate = exports.deleteVolumeTemplate = exports.createVolumeTemplate = exports.listVolumeTemplates = exports.updateWorkspaceUserRole = exports.removeWorkspaceUser = exports.inviteWorkspaceUser = exports.listWorkspaceUsers = exports.getTemplate = exports.listTemplates = exports.forkSnapshot = exports.getSnapshot = exports.deleteSnapshot = exports.createSnapshot = exports.listSnapshots = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.deleteSecret = exports.upsertSecret = exports.listSecrets = exports.deleteSecretByQuery = exports.getSandboxScheduleMetrics = exports.listSchedules = exports.listScheduleExecutions = exports.getSandboxByExternalId = exports.unarchiveSandbox = exports.restoreSandboxSnapshot = 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 = exports.deleteSandboxPreview = exports.createSandboxPreview = exports.listSandboxPreviews = void 0;
|
|
7
|
+
exports.checkWorkspaceAvailability = exports.leaveWorkspace = 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.getVolumeByExternalId = exports.updateVolume = exports.getVolume = exports.deleteVolume = exports.createVolume = exports.listVolumes = exports.deleteVolumeTemplateVersion = void 0;
|
|
8
8
|
const client_gen_1 = require("./client.gen");
|
|
9
9
|
/**
|
|
10
10
|
* List all agents
|
|
@@ -544,6 +544,23 @@ const createDriveAccessToken = (options) => {
|
|
|
544
544
|
});
|
|
545
545
|
};
|
|
546
546
|
exports.createDriveAccessToken = createDriveAccessToken;
|
|
547
|
+
/**
|
|
548
|
+
* Delete a folder and its contents
|
|
549
|
+
* Deletes a folder and all its contents directly in drive storage. This is synchronous and non-atomic. If it times out or fails, some contents may have been deleted; retry the same path to finish cleanup. An absent folder succeeds. The drive root and internal metadata cannot be deleted.
|
|
550
|
+
*/
|
|
551
|
+
const deleteDriveFolder = (options) => {
|
|
552
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
553
|
+
security: [
|
|
554
|
+
{
|
|
555
|
+
scheme: 'bearer',
|
|
556
|
+
type: 'http'
|
|
557
|
+
}
|
|
558
|
+
],
|
|
559
|
+
url: '/drives/{driveName}/folders',
|
|
560
|
+
...options
|
|
561
|
+
});
|
|
562
|
+
};
|
|
563
|
+
exports.deleteDriveFolder = deleteDriveFolder;
|
|
547
564
|
/**
|
|
548
565
|
* Get drive by external ID
|
|
549
566
|
* Returns a drive matching the given external ID. If no drive is found, returns 404.
|
|
@@ -2188,6 +2205,78 @@ const getSandboxScheduleMetrics = (options) => {
|
|
|
2188
2205
|
});
|
|
2189
2206
|
};
|
|
2190
2207
|
exports.getSandboxScheduleMetrics = getSandboxScheduleMetrics;
|
|
2208
|
+
/**
|
|
2209
|
+
* Delete secret by query
|
|
2210
|
+
* Deletes a secret by name (query parameter) from the workspace.
|
|
2211
|
+
*/
|
|
2212
|
+
const deleteSecretByQuery = (options) => {
|
|
2213
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
2214
|
+
security: [
|
|
2215
|
+
{
|
|
2216
|
+
scheme: 'bearer',
|
|
2217
|
+
type: 'http'
|
|
2218
|
+
}
|
|
2219
|
+
],
|
|
2220
|
+
url: '/secrets',
|
|
2221
|
+
...options
|
|
2222
|
+
});
|
|
2223
|
+
};
|
|
2224
|
+
exports.deleteSecretByQuery = deleteSecretByQuery;
|
|
2225
|
+
/**
|
|
2226
|
+
* List secrets
|
|
2227
|
+
* Lists the secrets of the workspace. Values are write-only and never returned.
|
|
2228
|
+
*/
|
|
2229
|
+
const listSecrets = (options) => {
|
|
2230
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
2231
|
+
security: [
|
|
2232
|
+
{
|
|
2233
|
+
scheme: 'bearer',
|
|
2234
|
+
type: 'http'
|
|
2235
|
+
}
|
|
2236
|
+
],
|
|
2237
|
+
url: '/secrets',
|
|
2238
|
+
...options
|
|
2239
|
+
});
|
|
2240
|
+
};
|
|
2241
|
+
exports.listSecrets = listSecrets;
|
|
2242
|
+
/**
|
|
2243
|
+
* Upsert secret
|
|
2244
|
+
* Creates or updates a secret by name. Each call stores a new immutable version; the latest version is the one resolved by the proxy.
|
|
2245
|
+
*/
|
|
2246
|
+
const upsertSecret = (options) => {
|
|
2247
|
+
return (options.client ?? client_gen_1.client).post({
|
|
2248
|
+
security: [
|
|
2249
|
+
{
|
|
2250
|
+
scheme: 'bearer',
|
|
2251
|
+
type: 'http'
|
|
2252
|
+
}
|
|
2253
|
+
],
|
|
2254
|
+
url: '/secrets',
|
|
2255
|
+
...options,
|
|
2256
|
+
headers: {
|
|
2257
|
+
'Content-Type': 'application/json',
|
|
2258
|
+
...options?.headers
|
|
2259
|
+
}
|
|
2260
|
+
});
|
|
2261
|
+
};
|
|
2262
|
+
exports.upsertSecret = upsertSecret;
|
|
2263
|
+
/**
|
|
2264
|
+
* Delete secret
|
|
2265
|
+
* Deletes a secret and all its versions from the workspace.
|
|
2266
|
+
*/
|
|
2267
|
+
const deleteSecret = (options) => {
|
|
2268
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
2269
|
+
security: [
|
|
2270
|
+
{
|
|
2271
|
+
scheme: 'bearer',
|
|
2272
|
+
type: 'http'
|
|
2273
|
+
}
|
|
2274
|
+
],
|
|
2275
|
+
url: '/secrets/{secretName}',
|
|
2276
|
+
...options
|
|
2277
|
+
});
|
|
2278
|
+
};
|
|
2279
|
+
exports.deleteSecret = deleteSecret;
|
|
2191
2280
|
/**
|
|
2192
2281
|
* List service accounts
|
|
2193
2282
|
* Returns all service accounts in the workspace. Service accounts are machine identities for external systems to authenticate with Blaxel via OAuth or API keys.
|
|
@@ -30,8 +30,8 @@ function missingCredentialsMessage() {
|
|
|
30
30
|
return "No Blaxel credentials found. Set the BL_API_KEY and BL_WORKSPACE environment variables, or run `bl login`.";
|
|
31
31
|
}
|
|
32
32
|
// Build info - these placeholders are replaced at build time by build:replace-imports
|
|
33
|
-
const BUILD_VERSION = "0.3.
|
|
34
|
-
const BUILD_COMMIT = "
|
|
33
|
+
const BUILD_VERSION = "0.3.30-preview.323";
|
|
34
|
+
const BUILD_COMMIT = "999bd1ab9bdf3a42c60a8d62a89f5cb21a520c30";
|
|
35
35
|
const BUILD_SENTRY_DSN = "https://fd5e60e1c9820e1eef5ccebb84a07127@o4508714045276160.ingest.us.sentry.io/4510465864564736";
|
|
36
36
|
const BLAXEL_API_VERSION = "2026-09-22";
|
|
37
37
|
// Bun < 1.3.11 never sends connection-level WINDOW_UPDATE: the pooled h2
|
|
@@ -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, 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, ListImageTagsData, DeleteImageTagData, DeleteImageTagResponse, 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, ArchiveSandboxData, ForkSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, ListSandboxScheduleExecutionsData, ListSandboxSchedulesData, CreateSandboxScheduleData, DeleteSandboxScheduleData, GetSandboxScheduleData, UpdateSandboxScheduleData, ListSandboxSnapshotsData, CreateSandboxSnapshotData, DeleteSandboxSnapshotData, RestoreSandboxSnapshotData, UnarchiveSandboxData, GetSandboxByExternalIdData, ListScheduleExecutionsData, ListSchedulesData, GetSandboxScheduleMetricsData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListSnapshotsData, CreateSnapshotData, DeleteSnapshotData, GetSnapshotData, ForkSnapshotData, 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';
|
|
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, DeleteDriveFolderData, GetDriveByExternalIdData, GetDriveJwksData, ListAllEgressGatewaysData, GetEgressGatewayUsageData, ListAllEgressIpsData, GetWorkspaceFeaturesData, TestFeatureFlagData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, CleanupImagesData, ListImagesData, CreateImageData, DeleteImageData, GetImageData, ListImageSharesData, ShareImageData, ShareImageResponse, UnshareImageData, ListImageTagsData, DeleteImageTagData, DeleteImageTagResponse, 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, ArchiveSandboxData, ForkSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, ListSandboxScheduleExecutionsData, ListSandboxSchedulesData, CreateSandboxScheduleData, DeleteSandboxScheduleData, GetSandboxScheduleData, UpdateSandboxScheduleData, ListSandboxSnapshotsData, CreateSandboxSnapshotData, DeleteSandboxSnapshotData, RestoreSandboxSnapshotData, UnarchiveSandboxData, GetSandboxByExternalIdData, ListScheduleExecutionsData, ListSchedulesData, GetSandboxScheduleMetricsData, DeleteSecretByQueryData, ListSecretsData, UpsertSecretData, DeleteSecretData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListSnapshotsData, CreateSnapshotData, DeleteSnapshotData, GetSnapshotData, ForkSnapshotData, 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
|
|
@@ -165,6 +165,11 @@ export declare const createDriveAccessToken: <ThrowOnError extends boolean = fal
|
|
|
165
165
|
expires_in?: number;
|
|
166
166
|
token_type?: string;
|
|
167
167
|
}, unknown, ThrowOnError>;
|
|
168
|
+
/**
|
|
169
|
+
* Delete a folder and its contents
|
|
170
|
+
* Deletes a folder and all its contents directly in drive storage. This is synchronous and non-atomic. If it times out or fails, some contents may have been deleted; retry the same path to finish cleanup. An absent folder succeeds. The drive root and internal metadata cannot be deleted.
|
|
171
|
+
*/
|
|
172
|
+
export declare const deleteDriveFolder: <ThrowOnError extends boolean = false>(options: Options<DeleteDriveFolderData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<void, unknown, ThrowOnError>;
|
|
168
173
|
/**
|
|
169
174
|
* Get drive by external ID
|
|
170
175
|
* Returns a drive matching the given external ID. If no drive is found, returns 404.
|
|
@@ -655,6 +660,26 @@ export declare const listSchedules: <ThrowOnError extends boolean = false>(optio
|
|
|
655
660
|
* Returns active sandbox and scheduling metrics for a UTC minute window. since is inclusive and until is exclusive. The default window is the last 24 hours and the maximum is 7 days. Execution status describes submission acceptance, not process completion. Execution totals begin accumulating when metrics collection is enabled and can lag recent firings briefly.
|
|
656
661
|
*/
|
|
657
662
|
export declare const getSandboxScheduleMetrics: <ThrowOnError extends boolean = false>(options?: Options<GetSandboxScheduleMetricsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxScheduleMetrics, unknown, ThrowOnError>;
|
|
663
|
+
/**
|
|
664
|
+
* Delete secret by query
|
|
665
|
+
* Deletes a secret by name (query parameter) from the workspace.
|
|
666
|
+
*/
|
|
667
|
+
export declare const deleteSecretByQuery: <ThrowOnError extends boolean = false>(options: Options<DeleteSecretByQueryData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Secret, unknown, ThrowOnError>;
|
|
668
|
+
/**
|
|
669
|
+
* List secrets
|
|
670
|
+
* Lists the secrets of the workspace. Values are write-only and never returned.
|
|
671
|
+
*/
|
|
672
|
+
export declare const listSecrets: <ThrowOnError extends boolean = false>(options?: Options<ListSecretsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Secret[], unknown, ThrowOnError>;
|
|
673
|
+
/**
|
|
674
|
+
* Upsert secret
|
|
675
|
+
* Creates or updates a secret by name. Each call stores a new immutable version; the latest version is the one resolved by the proxy.
|
|
676
|
+
*/
|
|
677
|
+
export declare const upsertSecret: <ThrowOnError extends boolean = false>(options: Options<UpsertSecretData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Secret, unknown, ThrowOnError>;
|
|
678
|
+
/**
|
|
679
|
+
* Delete secret
|
|
680
|
+
* Deletes a secret and all its versions from the workspace.
|
|
681
|
+
*/
|
|
682
|
+
export declare const deleteSecret: <ThrowOnError extends boolean = false>(options: Options<DeleteSecretData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Secret, unknown, ThrowOnError>;
|
|
658
683
|
/**
|
|
659
684
|
* List service accounts
|
|
660
685
|
* Returns all service accounts in the workspace. Service accounts are machine identities for external systems to authenticate with Blaxel via OAuth or API keys.
|
|
@@ -663,6 +663,10 @@ export type CustomDomainSpec = {
|
|
|
663
663
|
txtRecords?: {
|
|
664
664
|
[key: string]: string;
|
|
665
665
|
};
|
|
666
|
+
/**
|
|
667
|
+
* How the TLS certificate is validated. "dns" (default) requires the certificate validation CNAME records to be published; "http" validates over HTTP once the domain points to Blaxel and requires no validation record. HTTP validation is not available for wildcard domains (previews or "*." names) and cannot be changed after creation.
|
|
668
|
+
*/
|
|
669
|
+
validationMethod?: 'dns' | 'http';
|
|
666
670
|
/**
|
|
667
671
|
* Error message if verification failed
|
|
668
672
|
*/
|
|
@@ -704,6 +708,10 @@ export type CustomDomainSpecWritable = {
|
|
|
704
708
|
txtRecords?: {
|
|
705
709
|
[key: string]: string;
|
|
706
710
|
};
|
|
711
|
+
/**
|
|
712
|
+
* How the TLS certificate is validated. "dns" (default) requires the certificate validation CNAME records to be published; "http" validates over HTTP once the domain points to Blaxel and requires no validation record. HTTP validation is not available for wildcard domains (previews or "*." names) and cannot be changed after creation.
|
|
713
|
+
*/
|
|
714
|
+
validationMethod?: 'dns' | 'http';
|
|
707
715
|
};
|
|
708
716
|
/**
|
|
709
717
|
* Drive providing persistent storage that can be attached to agents, functions, and sandboxes. Drives can be mounted at runtime via the sbx API.
|
|
@@ -1041,7 +1049,7 @@ export type ExpirationPolicy = {
|
|
|
1041
1049
|
*/
|
|
1042
1050
|
type?: 'ttl-idle' | 'ttl-max-age' | 'date';
|
|
1043
1051
|
/**
|
|
1044
|
-
* Duration value for TTL policies (e.g., '30m', '24h', '7d'
|
|
1052
|
+
* Duration value for TTL policies (e.g., '30m', '24h', '7d'; minimum '60s' for ttl-idle, '5m' for ttl-max-age) or ISO 8601 date for date policies
|
|
1045
1053
|
*/
|
|
1046
1054
|
value?: string;
|
|
1047
1055
|
};
|
|
@@ -3910,7 +3918,7 @@ export type SandboxRuntime = {
|
|
|
3910
3918
|
*/
|
|
3911
3919
|
expires?: string;
|
|
3912
3920
|
/**
|
|
3913
|
-
* Extra arguments for kernel selection. Supported keys: 'iptables', 'nfs' (mk3.0), 'tun', 'android' and 'landlock' (mk3.1). The android variant includes tun and iptables and cannot be combined with nfs. The landlock variant enables the Landlock LSM, includes tun and iptables, and cannot be combined with android or nfs. Android and landlock requests are rejected if routing selects mk3.0. Values: 'enabled' or 'disabled'. Determines which kernel variant the workload runs on. Immutable after creation.
|
|
3921
|
+
* Extra arguments for kernel selection. Supported keys: 'iptables', 'nfs' (mk3.0), 'tun', 'android' and 'landlock' (mk3.1). The android variant includes tun and iptables and cannot be combined with nfs. The landlock variant enables the Landlock LSM, includes tun and iptables, and cannot be combined with android or nfs. Android and landlock requests are rejected if routing selects mk3.0. 'kernelExtensions' (mk3.1, android only for now) switches on the selected kernel's loadable modules and kernel tracing (eBPF, kprobes, perf); without it they are disabled, even for root. Values: 'enabled' or 'disabled'. Determines which kernel variant the workload runs on. Immutable after creation.
|
|
3914
3922
|
*/
|
|
3915
3923
|
extraArgs?: {
|
|
3916
3924
|
[key: string]: string;
|
|
@@ -4359,6 +4367,40 @@ export type SandboxSpec = {
|
|
|
4359
4367
|
*/
|
|
4360
4368
|
vpc?: string;
|
|
4361
4369
|
};
|
|
4370
|
+
/**
|
|
4371
|
+
* Workspace secret, referenced from proxy routing as {{SECRET:name}}. Values are write-only and can never be read back. Every upsert stores a new immutable version and the latest one is resolved at runtime.
|
|
4372
|
+
*/
|
|
4373
|
+
export type Secret = {
|
|
4374
|
+
/**
|
|
4375
|
+
* The date and time when the secret was first created
|
|
4376
|
+
*/
|
|
4377
|
+
readonly createdAt?: string;
|
|
4378
|
+
/**
|
|
4379
|
+
* Case-sensitive secret name
|
|
4380
|
+
*/
|
|
4381
|
+
name: string;
|
|
4382
|
+
/**
|
|
4383
|
+
* The date and time of the latest version
|
|
4384
|
+
*/
|
|
4385
|
+
readonly updatedAt?: string;
|
|
4386
|
+
/**
|
|
4387
|
+
* Secret value. Write-only, never returned by the API
|
|
4388
|
+
*/
|
|
4389
|
+
value?: string;
|
|
4390
|
+
};
|
|
4391
|
+
/**
|
|
4392
|
+
* Workspace secret, referenced from proxy routing as {{SECRET:name}}. Values are write-only and can never be read back. Every upsert stores a new immutable version and the latest one is resolved at runtime.
|
|
4393
|
+
*/
|
|
4394
|
+
export type SecretWritable = {
|
|
4395
|
+
/**
|
|
4396
|
+
* Case-sensitive secret name
|
|
4397
|
+
*/
|
|
4398
|
+
name: string;
|
|
4399
|
+
/**
|
|
4400
|
+
* Secret value. Write-only, never returned by the API
|
|
4401
|
+
*/
|
|
4402
|
+
value?: string;
|
|
4403
|
+
};
|
|
4362
4404
|
/**
|
|
4363
4405
|
* Deployment status of a resource deployed on Blaxel
|
|
4364
4406
|
*/
|
|
@@ -5934,6 +5976,56 @@ export type CreateDriveAccessTokenResponses = {
|
|
|
5934
5976
|
};
|
|
5935
5977
|
};
|
|
5936
5978
|
export type CreateDriveAccessTokenResponse = CreateDriveAccessTokenResponses[keyof CreateDriveAccessTokenResponses];
|
|
5979
|
+
export type DeleteDriveFolderData = {
|
|
5980
|
+
body?: never;
|
|
5981
|
+
path: {
|
|
5982
|
+
driveName: string;
|
|
5983
|
+
};
|
|
5984
|
+
query: {
|
|
5985
|
+
/**
|
|
5986
|
+
* Relative folder path ending in a slash, for example documents/reports/.
|
|
5987
|
+
*/
|
|
5988
|
+
path: string;
|
|
5989
|
+
};
|
|
5990
|
+
url: '/drives/{driveName}/folders';
|
|
5991
|
+
};
|
|
5992
|
+
export type DeleteDriveFolderErrors = {
|
|
5993
|
+
/**
|
|
5994
|
+
* Invalid folder path
|
|
5995
|
+
*/
|
|
5996
|
+
400: unknown;
|
|
5997
|
+
/**
|
|
5998
|
+
* Unauthorized
|
|
5999
|
+
*/
|
|
6000
|
+
401: unknown;
|
|
6001
|
+
/**
|
|
6002
|
+
* Insufficient permissions, protected path, or drives feature disabled
|
|
6003
|
+
*/
|
|
6004
|
+
403: unknown;
|
|
6005
|
+
/**
|
|
6006
|
+
* Drive not found
|
|
6007
|
+
*/
|
|
6008
|
+
404: unknown;
|
|
6009
|
+
/**
|
|
6010
|
+
* Drive unavailable or requested path is not a folder
|
|
6011
|
+
*/
|
|
6012
|
+
409: unknown;
|
|
6013
|
+
/**
|
|
6014
|
+
* Storage unavailable or deletion incomplete; retry to finish cleanup
|
|
6015
|
+
*/
|
|
6016
|
+
502: unknown;
|
|
6017
|
+
/**
|
|
6018
|
+
* Deletion timed out and may be partially complete; retry to finish cleanup
|
|
6019
|
+
*/
|
|
6020
|
+
504: unknown;
|
|
6021
|
+
};
|
|
6022
|
+
export type DeleteDriveFolderResponses = {
|
|
6023
|
+
/**
|
|
6024
|
+
* Folder and its contents deleted, or folder already absent
|
|
6025
|
+
*/
|
|
6026
|
+
204: void;
|
|
6027
|
+
};
|
|
6028
|
+
export type DeleteDriveFolderResponse = DeleteDriveFolderResponses[keyof DeleteDriveFolderResponses];
|
|
5937
6029
|
export type GetDriveByExternalIdData = {
|
|
5938
6030
|
body?: never;
|
|
5939
6031
|
path: {
|
|
@@ -8739,6 +8831,68 @@ export type GetSandboxScheduleMetricsResponses = {
|
|
|
8739
8831
|
200: SandboxScheduleMetrics;
|
|
8740
8832
|
};
|
|
8741
8833
|
export type GetSandboxScheduleMetricsResponse = GetSandboxScheduleMetricsResponses[keyof GetSandboxScheduleMetricsResponses];
|
|
8834
|
+
export type DeleteSecretByQueryData = {
|
|
8835
|
+
body?: never;
|
|
8836
|
+
path?: never;
|
|
8837
|
+
query: {
|
|
8838
|
+
/**
|
|
8839
|
+
* Name of the secret
|
|
8840
|
+
*/
|
|
8841
|
+
name: string;
|
|
8842
|
+
};
|
|
8843
|
+
url: '/secrets';
|
|
8844
|
+
};
|
|
8845
|
+
export type DeleteSecretByQueryResponses = {
|
|
8846
|
+
/**
|
|
8847
|
+
* successful operation
|
|
8848
|
+
*/
|
|
8849
|
+
200: Secret;
|
|
8850
|
+
};
|
|
8851
|
+
export type DeleteSecretByQueryResponse = DeleteSecretByQueryResponses[keyof DeleteSecretByQueryResponses];
|
|
8852
|
+
export type ListSecretsData = {
|
|
8853
|
+
body?: never;
|
|
8854
|
+
path?: never;
|
|
8855
|
+
query?: never;
|
|
8856
|
+
url: '/secrets';
|
|
8857
|
+
};
|
|
8858
|
+
export type ListSecretsResponses = {
|
|
8859
|
+
/**
|
|
8860
|
+
* successful operation
|
|
8861
|
+
*/
|
|
8862
|
+
200: Array<Secret>;
|
|
8863
|
+
};
|
|
8864
|
+
export type ListSecretsResponse = ListSecretsResponses[keyof ListSecretsResponses];
|
|
8865
|
+
export type UpsertSecretData = {
|
|
8866
|
+
body: SecretWritable;
|
|
8867
|
+
path?: never;
|
|
8868
|
+
query?: never;
|
|
8869
|
+
url: '/secrets';
|
|
8870
|
+
};
|
|
8871
|
+
export type UpsertSecretResponses = {
|
|
8872
|
+
/**
|
|
8873
|
+
* successful operation
|
|
8874
|
+
*/
|
|
8875
|
+
200: Secret;
|
|
8876
|
+
};
|
|
8877
|
+
export type UpsertSecretResponse = UpsertSecretResponses[keyof UpsertSecretResponses];
|
|
8878
|
+
export type DeleteSecretData = {
|
|
8879
|
+
body?: never;
|
|
8880
|
+
path: {
|
|
8881
|
+
/**
|
|
8882
|
+
* Name of the secret
|
|
8883
|
+
*/
|
|
8884
|
+
secretName: string;
|
|
8885
|
+
};
|
|
8886
|
+
query?: never;
|
|
8887
|
+
url: '/secrets/{secretName}';
|
|
8888
|
+
};
|
|
8889
|
+
export type DeleteSecretResponses = {
|
|
8890
|
+
/**
|
|
8891
|
+
* successful operation
|
|
8892
|
+
*/
|
|
8893
|
+
200: Secret;
|
|
8894
|
+
};
|
|
8895
|
+
export type DeleteSecretResponse = DeleteSecretResponses[keyof DeleteSecretResponses];
|
|
8742
8896
|
export type GetWorkspaceServiceAccountsData = {
|
|
8743
8897
|
body?: never;
|
|
8744
8898
|
path?: never;
|