@blaxel/core 0.2.34 → 0.2.35-preview.78
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/client/sdk.gen.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Options as ClientOptions, TDataShape, Client } from '@hey-api/client-fetch';
|
|
2
|
-
import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, ListPrivateClustersData, CreatePrivateClusterData, DeletePrivateClusterData, GetPrivateClusterData, UpdatePrivateClusterData, GetPrivateClusterHealthData, UpdatePrivateClusterHealthData, ListAllPendingInvitationsData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, StartSandboxData, StopSandboxData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData,
|
|
2
|
+
import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, ListPrivateClustersData, CreatePrivateClusterData, DeletePrivateClusterData, GetPrivateClusterData, UpdatePrivateClusterData, GetPrivateClusterHealthData, UpdatePrivateClusterHealthData, ListAllPendingInvitationsData, ListPublicIpsData, ListSandboxHubDefinitionsData, ListSandboxesData, CreateSandboxData, DeleteSandboxData, GetSandboxData, UpdateSandboxData, ListSandboxPreviewsData, CreateSandboxPreviewData, DeleteSandboxPreviewData, GetSandboxPreviewData, UpdateSandboxPreviewData, ListSandboxPreviewTokensData, CreateSandboxPreviewTokenData, DeleteSandboxPreviewTokenData, StartSandboxData, StopSandboxData, GetWorkspaceServiceAccountsData, CreateWorkspaceServiceAccountData, DeleteWorkspaceServiceAccountData, UpdateWorkspaceServiceAccountData, ListApiKeysForServiceAccountData, CreateApiKeyForServiceAccountData, DeleteApiKeyForServiceAccountData, ListTemplatesData, GetTemplateData, ListWorkspaceUsersData, InviteWorkspaceUserData, RemoveWorkspaceUserData, UpdateWorkspaceUserRoleData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, ListWorkspacesData, CreateWorspaceData, 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
|
|
@@ -452,11 +452,6 @@ export declare const deleteVolume: <ThrowOnError extends boolean = false>(option
|
|
|
452
452
|
* Returns a volume by name.
|
|
453
453
|
*/
|
|
454
454
|
export declare const getVolume: <ThrowOnError extends boolean = false>(options: Options<GetVolumeData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, unknown, ThrowOnError>;
|
|
455
|
-
/**
|
|
456
|
-
* Update volume (Not Implemented)
|
|
457
|
-
* Update a volume by name.
|
|
458
|
-
*/
|
|
459
|
-
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>;
|
|
460
455
|
/**
|
|
461
456
|
* List workspaces
|
|
462
457
|
* Returns a list of all workspaces.
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.deletePrivateCluster = exports.createPrivateCluster = exports.listPrivateClusters = exports.updatePolicy = exports.getPolicy = exports.deletePolicy = exports.createPolicy = exports.listPolicies = exports.listModelRevisions = exports.updateModel = exports.getModel = exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.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.listFunctionRevisions = exports.updateFunction = exports.getFunction = exports.deleteFunction = exports.createFunction = exports.listFunctions = exports.verifyCustomDomain = exports.updateCustomDomain = exports.getCustomDomain = exports.deleteCustomDomain = exports.createCustomDomain = exports.listCustomDomains = exports.getConfiguration = exports.listAgentRevisions = exports.updateAgent = exports.getAgent = exports.deleteAgent = exports.createAgent = exports.listAgents = void 0;
|
|
5
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorspace = exports.listWorkspaces = exports.
|
|
5
|
+
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorspace = exports.listWorkspaces = exports.getVolume = exports.deleteVolume = exports.createVolume = exports.listVolumes = 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.stopSandbox = exports.startSandbox = 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.listAllPendingInvitations = exports.updatePrivateClusterHealth = exports.getPrivateClusterHealth = exports.updatePrivateCluster = exports.getPrivateCluster = void 0;
|
|
6
6
|
const client_gen_1 = require("./client.gen");
|
|
7
7
|
/**
|
|
8
8
|
* List all agents
|
|
@@ -1584,27 +1584,6 @@ const getVolume = (options) => {
|
|
|
1584
1584
|
});
|
|
1585
1585
|
};
|
|
1586
1586
|
exports.getVolume = getVolume;
|
|
1587
|
-
/**
|
|
1588
|
-
* Update volume (Not Implemented)
|
|
1589
|
-
* Update a volume by name.
|
|
1590
|
-
*/
|
|
1591
|
-
const updateVolume = (options) => {
|
|
1592
|
-
return (options.client ?? client_gen_1.client).put({
|
|
1593
|
-
security: [
|
|
1594
|
-
{
|
|
1595
|
-
scheme: 'bearer',
|
|
1596
|
-
type: 'http'
|
|
1597
|
-
}
|
|
1598
|
-
],
|
|
1599
|
-
url: '/volumes/{volumeName}',
|
|
1600
|
-
...options,
|
|
1601
|
-
headers: {
|
|
1602
|
-
'Content-Type': 'application/json',
|
|
1603
|
-
...options?.headers
|
|
1604
|
-
}
|
|
1605
|
-
});
|
|
1606
|
-
};
|
|
1607
|
-
exports.updateVolume = updateVolume;
|
|
1608
1587
|
/**
|
|
1609
1588
|
* List workspaces
|
|
1610
1589
|
* Returns a list of all workspaces.
|
|
@@ -237,6 +237,10 @@ export type CustomDomainSpec = {
|
|
|
237
237
|
* Last verification attempt timestamp
|
|
238
238
|
*/
|
|
239
239
|
lastVerifiedAt?: string;
|
|
240
|
+
/**
|
|
241
|
+
* Region that the custom domain is associated with
|
|
242
|
+
*/
|
|
243
|
+
region?: string;
|
|
240
244
|
/**
|
|
241
245
|
* Current status of the domain (pending, verified, failed)
|
|
242
246
|
*/
|
|
@@ -270,6 +274,10 @@ export type Entrypoint = {
|
|
|
270
274
|
env?: {
|
|
271
275
|
[key: string]: unknown;
|
|
272
276
|
};
|
|
277
|
+
/**
|
|
278
|
+
* Super Gateway args of the entrypoint
|
|
279
|
+
*/
|
|
280
|
+
superGatewayArgs?: Array<unknown>;
|
|
273
281
|
};
|
|
274
282
|
/**
|
|
275
283
|
* A type of hardware available for deployments
|
|
@@ -425,11 +433,8 @@ export type FunctionSpec = CoreSpec & {
|
|
|
425
433
|
* Function description, very important for the agent function to work with an LLM
|
|
426
434
|
*/
|
|
427
435
|
description?: string;
|
|
428
|
-
/**
|
|
429
|
-
* Function kits
|
|
430
|
-
*/
|
|
431
|
-
kit?: Array<FunctionKit>;
|
|
432
436
|
schema?: FunctionSchema;
|
|
437
|
+
triggers?: Triggers;
|
|
433
438
|
};
|
|
434
439
|
/**
|
|
435
440
|
* Histogram bucket
|
|
@@ -1430,6 +1435,10 @@ export type PreviewSpec = {
|
|
|
1430
1435
|
* Whether the preview is public
|
|
1431
1436
|
*/
|
|
1432
1437
|
public?: boolean;
|
|
1438
|
+
/**
|
|
1439
|
+
* Region where the preview is deployed, this is readonly
|
|
1440
|
+
*/
|
|
1441
|
+
region?: string;
|
|
1433
1442
|
/**
|
|
1434
1443
|
* Those headers will be set in all requests to your preview. This is especially useful to set the Authorization header.
|
|
1435
1444
|
*/
|
|
@@ -2023,6 +2032,10 @@ export type Runtime = {
|
|
|
2023
2032
|
*/
|
|
2024
2033
|
export type Sandbox = {
|
|
2025
2034
|
events?: CoreEvents;
|
|
2035
|
+
/**
|
|
2036
|
+
* Last time the sandbox was used (read-only, managed by the system)
|
|
2037
|
+
*/
|
|
2038
|
+
lastUsedAt?: string;
|
|
2026
2039
|
metadata?: Metadata;
|
|
2027
2040
|
spec?: SandboxSpec;
|
|
2028
2041
|
/**
|
|
@@ -2088,6 +2101,10 @@ export type SandboxDefinition = {
|
|
|
2088
2101
|
* Sandbox specification
|
|
2089
2102
|
*/
|
|
2090
2103
|
export type SandboxSpec = CoreSpec & {
|
|
2104
|
+
/**
|
|
2105
|
+
* AWS region where the sandbox should be created (e.g. us-west-2, eu-west-1)
|
|
2106
|
+
*/
|
|
2107
|
+
region?: string;
|
|
2091
2108
|
volumes?: VolumeAttachments;
|
|
2092
2109
|
};
|
|
2093
2110
|
/**
|
|
@@ -4363,30 +4380,6 @@ export type GetVolumeResponses = {
|
|
|
4363
4380
|
200: Volume;
|
|
4364
4381
|
};
|
|
4365
4382
|
export type GetVolumeResponse = GetVolumeResponses[keyof GetVolumeResponses];
|
|
4366
|
-
export type UpdateVolumeData = {
|
|
4367
|
-
body: Volume;
|
|
4368
|
-
path: {
|
|
4369
|
-
/**
|
|
4370
|
-
* Name of the volume
|
|
4371
|
-
*/
|
|
4372
|
-
volumeName: string;
|
|
4373
|
-
};
|
|
4374
|
-
query?: never;
|
|
4375
|
-
url: '/volumes/{volumeName}';
|
|
4376
|
-
};
|
|
4377
|
-
export type UpdateVolumeErrors = {
|
|
4378
|
-
/**
|
|
4379
|
-
* Method not allowed - volume updates are not supported
|
|
4380
|
-
*/
|
|
4381
|
-
405: unknown;
|
|
4382
|
-
};
|
|
4383
|
-
export type UpdateVolumeResponses = {
|
|
4384
|
-
/**
|
|
4385
|
-
* successful operation
|
|
4386
|
-
*/
|
|
4387
|
-
200: Volume;
|
|
4388
|
-
};
|
|
4389
|
-
export type UpdateVolumeResponse = UpdateVolumeResponses[keyof UpdateVolumeResponses];
|
|
4390
4383
|
export type ListWorkspacesData = {
|
|
4391
4384
|
body?: never;
|
|
4392
4385
|
path?: never;
|
package/dist/common/settings.js
CHANGED
|
@@ -8,7 +8,7 @@ function getPackageVersion() {
|
|
|
8
8
|
try {
|
|
9
9
|
// Try to require package.json (Node.js only, gracefully fails in browser)
|
|
10
10
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
11
|
-
const packageJson = {"version":"0.2.
|
|
11
|
+
const packageJson = {"version":"0.2.35-preview.78","commit":"cb365d439aca12c16cca6b102c2a800d351e6f0c"};
|
|
12
12
|
return packageJson.version || "unknown";
|
|
13
13
|
}
|
|
14
14
|
catch {
|
|
@@ -55,7 +55,7 @@ function getCommitHash() {
|
|
|
55
55
|
try {
|
|
56
56
|
// Try to require package.json and look for commit field (set during build)
|
|
57
57
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
58
|
-
const packageJson = {"version":"0.2.
|
|
58
|
+
const packageJson = {"version":"0.2.35-preview.78","commit":"cb365d439aca12c16cca6b102c2a800d351e6f0c"};
|
|
59
59
|
// Check for commit in various possible locations
|
|
60
60
|
const commit = packageJson.commit || packageJson.buildInfo?.commit;
|
|
61
61
|
if (commit) {
|
package/dist/sandbox/sandbox.js
CHANGED
|
@@ -63,9 +63,11 @@ class SandboxInstance {
|
|
|
63
63
|
const volumes = (0, types_js_1.normalizeVolumes)(sandbox.volumes);
|
|
64
64
|
const ttl = sandbox.ttl;
|
|
65
65
|
const expires = sandbox.expires;
|
|
66
|
+
const region = sandbox.region;
|
|
66
67
|
sandbox = {
|
|
67
68
|
metadata: { name: sandbox.name },
|
|
68
69
|
spec: {
|
|
70
|
+
region: region,
|
|
69
71
|
runtime: {
|
|
70
72
|
image: sandbox.image,
|
|
71
73
|
memory: sandbox.memory,
|
package/dist/sandbox/types.d.ts
CHANGED
|
@@ -38,6 +38,7 @@ export type SandboxCreateConfiguration = {
|
|
|
38
38
|
volumes?: (VolumeBinding | VolumeAttachment)[];
|
|
39
39
|
ttl?: string;
|
|
40
40
|
expires?: Date;
|
|
41
|
+
region?: string;
|
|
41
42
|
};
|
|
42
43
|
export declare function normalizePorts(ports?: (Port | Record<string, any>)[]): Port[] | undefined;
|
|
43
44
|
export declare function normalizeEnvs(envs?: EnvVar[]): EnvVar[] | undefined;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@blaxel/core",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.35-preview.78",
|
|
4
4
|
"description": "Blaxel Core SDK for TypeScript",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Blaxel, INC (https://blaxel.ai)",
|
|
@@ -76,7 +76,7 @@
|
|
|
76
76
|
"vite": "^5.2.0",
|
|
77
77
|
"vitest": "^1.5.0"
|
|
78
78
|
},
|
|
79
|
-
"commit": "
|
|
79
|
+
"commit": "cb365d439aca12c16cca6b102c2a800d351e6f0c",
|
|
80
80
|
"scripts": {
|
|
81
81
|
"lint": "eslint src/",
|
|
82
82
|
"dev": "tsc --watch",
|