@blaxel/core 0.2.49-preview.110 → 0.2.49-preview.111
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 +143 -3
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs/types/client/types.gen.d.ts +599 -16
- package/dist/cjs-browser/.tsbuildinfo +1 -1
- package/dist/cjs-browser/client/sdk.gen.js +143 -3
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/types/client/sdk.gen.d.ts +41 -1
- package/dist/cjs-browser/types/client/types.gen.d.ts +599 -16
- package/dist/esm/.tsbuildinfo +1 -1
- package/dist/esm/client/sdk.gen.js +132 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/sdk.gen.js +132 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/package.json +2 -2
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
-
exports.
|
|
5
|
-
exports.
|
|
6
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = void 0;
|
|
4
|
+
exports.listModelRevisions = exports.updateModel = exports.getModel = exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listJobRevisions = exports.getJobExecution = exports.deleteJobExecution = exports.createJobExecution = exports.listJobExecutions = exports.updateJob = exports.getJob = exports.deleteJob = exports.createJob = exports.listJobs = exports.getIntegrationConnectionModel = exports.listIntegrationConnectionModels = exports.getIntegrationConnectionModelEndpointConfigurations = exports.updateIntegrationConnection = exports.getIntegrationConnection = exports.deleteIntegrationConnection = exports.createIntegrationConnection = exports.listIntegrationConnections = exports.getIntegration = exports.deleteImageTag = exports.getImage = exports.deleteImage = exports.listImages = exports.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.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.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 = exports.deletePrivateCluster = exports.createPrivateCluster = exports.listPrivateClusters = exports.updatePolicy = exports.getPolicy = exports.deletePolicy = exports.createPolicy = exports.listPolicies = void 0;
|
|
6
|
+
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorkspace = exports.listWorkspaces = exports.getVolume = exports.deleteVolume = exports.createVolume = void 0;
|
|
7
7
|
const client_gen_1 = require("./client.gen");
|
|
8
8
|
/**
|
|
9
9
|
* List all agents
|
|
@@ -334,6 +334,74 @@ const listFunctionRevisions = (options) => {
|
|
|
334
334
|
});
|
|
335
335
|
};
|
|
336
336
|
exports.listFunctionRevisions = listFunctionRevisions;
|
|
337
|
+
/**
|
|
338
|
+
* List images
|
|
339
|
+
* Returns a list of all images in the workspace grouped by repository with tags.
|
|
340
|
+
*/
|
|
341
|
+
const listImages = (options) => {
|
|
342
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
343
|
+
security: [
|
|
344
|
+
{
|
|
345
|
+
scheme: 'bearer',
|
|
346
|
+
type: 'http'
|
|
347
|
+
}
|
|
348
|
+
],
|
|
349
|
+
url: '/images',
|
|
350
|
+
...options
|
|
351
|
+
});
|
|
352
|
+
};
|
|
353
|
+
exports.listImages = listImages;
|
|
354
|
+
/**
|
|
355
|
+
* Delete image by name
|
|
356
|
+
* Deletes an image by name.
|
|
357
|
+
*/
|
|
358
|
+
const deleteImage = (options) => {
|
|
359
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
360
|
+
security: [
|
|
361
|
+
{
|
|
362
|
+
scheme: 'bearer',
|
|
363
|
+
type: 'http'
|
|
364
|
+
}
|
|
365
|
+
],
|
|
366
|
+
url: '/images/{resourceType}/{imageName}',
|
|
367
|
+
...options
|
|
368
|
+
});
|
|
369
|
+
};
|
|
370
|
+
exports.deleteImage = deleteImage;
|
|
371
|
+
/**
|
|
372
|
+
* Get image by name
|
|
373
|
+
* Returns an image by name.
|
|
374
|
+
*/
|
|
375
|
+
const getImage = (options) => {
|
|
376
|
+
return (options.client ?? client_gen_1.client).get({
|
|
377
|
+
security: [
|
|
378
|
+
{
|
|
379
|
+
scheme: 'bearer',
|
|
380
|
+
type: 'http'
|
|
381
|
+
}
|
|
382
|
+
],
|
|
383
|
+
url: '/images/{resourceType}/{imageName}',
|
|
384
|
+
...options
|
|
385
|
+
});
|
|
386
|
+
};
|
|
387
|
+
exports.getImage = getImage;
|
|
388
|
+
/**
|
|
389
|
+
* Delete image tag
|
|
390
|
+
* Deletes a specific tag from an image.
|
|
391
|
+
*/
|
|
392
|
+
const deleteImageTag = (options) => {
|
|
393
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
394
|
+
security: [
|
|
395
|
+
{
|
|
396
|
+
scheme: 'bearer',
|
|
397
|
+
type: 'http'
|
|
398
|
+
}
|
|
399
|
+
],
|
|
400
|
+
url: '/images/{resourceType}/{imageName}/tags/{tagName}',
|
|
401
|
+
...options
|
|
402
|
+
});
|
|
403
|
+
};
|
|
404
|
+
exports.deleteImageTag = deleteImageTag;
|
|
337
405
|
/**
|
|
338
406
|
* List integrations connections
|
|
339
407
|
* Returns integration information by name.
|
|
@@ -588,6 +656,78 @@ const updateJob = (options) => {
|
|
|
588
656
|
});
|
|
589
657
|
};
|
|
590
658
|
exports.updateJob = updateJob;
|
|
659
|
+
/**
|
|
660
|
+
* List job executions
|
|
661
|
+
* Returns a list of all executions for a job by name.
|
|
662
|
+
*/
|
|
663
|
+
const listJobExecutions = (options) => {
|
|
664
|
+
return (options.client ?? client_gen_1.client).get({
|
|
665
|
+
security: [
|
|
666
|
+
{
|
|
667
|
+
scheme: 'bearer',
|
|
668
|
+
type: 'http'
|
|
669
|
+
}
|
|
670
|
+
],
|
|
671
|
+
url: '/jobs/{jobId}/executions',
|
|
672
|
+
...options
|
|
673
|
+
});
|
|
674
|
+
};
|
|
675
|
+
exports.listJobExecutions = listJobExecutions;
|
|
676
|
+
/**
|
|
677
|
+
* Create job execution
|
|
678
|
+
* Creates a new execution for a job by name.
|
|
679
|
+
*/
|
|
680
|
+
const createJobExecution = (options) => {
|
|
681
|
+
return (options.client ?? client_gen_1.client).post({
|
|
682
|
+
security: [
|
|
683
|
+
{
|
|
684
|
+
scheme: 'bearer',
|
|
685
|
+
type: 'http'
|
|
686
|
+
}
|
|
687
|
+
],
|
|
688
|
+
url: '/jobs/{jobId}/executions',
|
|
689
|
+
...options,
|
|
690
|
+
headers: {
|
|
691
|
+
'Content-Type': 'application/json',
|
|
692
|
+
...options?.headers
|
|
693
|
+
}
|
|
694
|
+
});
|
|
695
|
+
};
|
|
696
|
+
exports.createJobExecution = createJobExecution;
|
|
697
|
+
/**
|
|
698
|
+
* Delete job execution
|
|
699
|
+
* Stop an execution for a job by name.
|
|
700
|
+
*/
|
|
701
|
+
const deleteJobExecution = (options) => {
|
|
702
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
703
|
+
security: [
|
|
704
|
+
{
|
|
705
|
+
scheme: 'bearer',
|
|
706
|
+
type: 'http'
|
|
707
|
+
}
|
|
708
|
+
],
|
|
709
|
+
url: '/jobs/{jobId}/executions/{executionId}',
|
|
710
|
+
...options
|
|
711
|
+
});
|
|
712
|
+
};
|
|
713
|
+
exports.deleteJobExecution = deleteJobExecution;
|
|
714
|
+
/**
|
|
715
|
+
* Get job execution
|
|
716
|
+
* Returns an execution for a job by name.
|
|
717
|
+
*/
|
|
718
|
+
const getJobExecution = (options) => {
|
|
719
|
+
return (options.client ?? client_gen_1.client).get({
|
|
720
|
+
security: [
|
|
721
|
+
{
|
|
722
|
+
scheme: 'bearer',
|
|
723
|
+
type: 'http'
|
|
724
|
+
}
|
|
725
|
+
],
|
|
726
|
+
url: '/jobs/{jobId}/executions/{executionId}',
|
|
727
|
+
...options
|
|
728
|
+
});
|
|
729
|
+
};
|
|
730
|
+
exports.getJobExecution = getJobExecution;
|
|
591
731
|
/**
|
|
592
732
|
* List job revisions
|
|
593
733
|
* Returns revisions for a job by name.
|
|
@@ -10,7 +10,7 @@ function getPackageVersion() {
|
|
|
10
10
|
if (typeof require !== "undefined") {
|
|
11
11
|
// Try to require package.json (Node.js only, gracefully fails in browser)
|
|
12
12
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
13
|
-
const packageJson = {"version":"0.2.49-preview.
|
|
13
|
+
const packageJson = {"version":"0.2.49-preview.111","commit":"26ddeed4df5d6c810926b377dfe1a52bbea62022"};
|
|
14
14
|
return packageJson.version || "unknown";
|
|
15
15
|
}
|
|
16
16
|
else {
|
|
@@ -62,7 +62,7 @@ function getCommitHash() {
|
|
|
62
62
|
if (typeof require !== "undefined") {
|
|
63
63
|
// Try to require package.json and look for commit field (set during build)
|
|
64
64
|
// eslint-disable-next-line @typescript-eslint/no-require-imports
|
|
65
|
-
const packageJson = {"version":"0.2.49-preview.
|
|
65
|
+
const packageJson = {"version":"0.2.49-preview.111","commit":"26ddeed4df5d6c810926b377dfe1a52bbea62022"};
|
|
66
66
|
// Check for commit in various possible locations
|
|
67
67
|
const commit = packageJson.commit || packageJson.buildInfo?.commit;
|
|
68
68
|
if (commit) {
|
|
@@ -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, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, ListWorkspacesData, CreateWorkspaceData, DeleteWorkspaceData, GetWorkspaceData, UpdateWorkspaceData, DeclineWorkspaceInvitationData, AcceptWorkspaceInvitationData, LeaveWorkspaceData, CheckWorkspaceAvailabilityData } from './types.gen.js';
|
|
2
|
+
import type { ListAgentsData, CreateAgentData, DeleteAgentData, GetAgentData, UpdateAgentData, ListAgentRevisionsData, GetConfigurationData, ListCustomDomainsData, CreateCustomDomainData, DeleteCustomDomainData, GetCustomDomainData, UpdateCustomDomainData, VerifyCustomDomainData, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, ListImagesData, DeleteImageData, GetImageData, DeleteImageTagData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobExecutionsData, CreateJobExecutionData, DeleteJobExecutionData, GetJobExecutionData, ListJobRevisionsData, ListLocationsData, ListMcpHubDefinitionsData, ListModelsData, CreateModelData, DeleteModelData, GetModelData, UpdateModelData, ListModelRevisionsData, ListPoliciesData, CreatePolicyData, DeletePolicyData, GetPolicyData, UpdatePolicyData, 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, ListVolumeTemplatesData, CreateVolumeTemplateData, DeleteVolumeTemplateData, GetVolumeTemplateData, UpdateVolumeTemplateData, DeleteVolumeTemplateVersionData, ListVolumesData, CreateVolumeData, DeleteVolumeData, GetVolumeData, 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
|
|
@@ -90,6 +90,26 @@ export declare const updateFunction: <ThrowOnError extends boolean = false>(opti
|
|
|
90
90
|
* Returns revisions for a function by name.
|
|
91
91
|
*/
|
|
92
92
|
export declare const listFunctionRevisions: <ThrowOnError extends boolean = false>(options: Options<ListFunctionRevisionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").RevisionMetadata[], unknown, ThrowOnError>;
|
|
93
|
+
/**
|
|
94
|
+
* List images
|
|
95
|
+
* Returns a list of all images in the workspace grouped by repository with tags.
|
|
96
|
+
*/
|
|
97
|
+
export declare const listImages: <ThrowOnError extends boolean = false>(options?: Options<ListImagesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image[], unknown, ThrowOnError>;
|
|
98
|
+
/**
|
|
99
|
+
* Delete image by name
|
|
100
|
+
* Deletes an image by name.
|
|
101
|
+
*/
|
|
102
|
+
export declare const deleteImage: <ThrowOnError extends boolean = false>(options: Options<DeleteImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
|
|
103
|
+
/**
|
|
104
|
+
* Get image by name
|
|
105
|
+
* Returns an image by name.
|
|
106
|
+
*/
|
|
107
|
+
export declare const getImage: <ThrowOnError extends boolean = false>(options: Options<GetImageData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
|
|
108
|
+
/**
|
|
109
|
+
* Delete image tag
|
|
110
|
+
* Deletes a specific tag from an image.
|
|
111
|
+
*/
|
|
112
|
+
export declare const deleteImageTag: <ThrowOnError extends boolean = false>(options: Options<DeleteImageTagData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Image, unknown, ThrowOnError>;
|
|
93
113
|
/**
|
|
94
114
|
* List integrations connections
|
|
95
115
|
* Returns integration information by name.
|
|
@@ -160,6 +180,26 @@ export declare const getJob: <ThrowOnError extends boolean = false>(options: Opt
|
|
|
160
180
|
* Update a job by name.
|
|
161
181
|
*/
|
|
162
182
|
export declare const updateJob: <ThrowOnError extends boolean = false>(options: Options<UpdateJobData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Job, unknown, ThrowOnError>;
|
|
183
|
+
/**
|
|
184
|
+
* List job executions
|
|
185
|
+
* Returns a list of all executions for a job by name.
|
|
186
|
+
*/
|
|
187
|
+
export declare const listJobExecutions: <ThrowOnError extends boolean = false>(options: Options<ListJobExecutionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution[], unknown, ThrowOnError>;
|
|
188
|
+
/**
|
|
189
|
+
* Create job execution
|
|
190
|
+
* Creates a new execution for a job by name.
|
|
191
|
+
*/
|
|
192
|
+
export declare const createJobExecution: <ThrowOnError extends boolean = false>(options: Options<CreateJobExecutionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution, unknown, ThrowOnError>;
|
|
193
|
+
/**
|
|
194
|
+
* Delete job execution
|
|
195
|
+
* Stop an execution for a job by name.
|
|
196
|
+
*/
|
|
197
|
+
export declare const deleteJobExecution: <ThrowOnError extends boolean = false>(options: Options<DeleteJobExecutionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution, unknown, ThrowOnError>;
|
|
198
|
+
/**
|
|
199
|
+
* Get job execution
|
|
200
|
+
* Returns an execution for a job by name.
|
|
201
|
+
*/
|
|
202
|
+
export declare const getJobExecution: <ThrowOnError extends boolean = false>(options: Options<GetJobExecutionData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").JobExecution, unknown, ThrowOnError>;
|
|
163
203
|
/**
|
|
164
204
|
* List job revisions
|
|
165
205
|
* Returns revisions for a job by name.
|