@blaxel/core 0.2.49-preview.109 → 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/responseInterceptor.js +53 -0
- package/dist/cjs/client/sdk.gen.js +143 -3
- package/dist/cjs/common/autoload.js +7 -0
- package/dist/cjs/common/settings.js +2 -2
- package/dist/cjs/types/client/responseInterceptor.d.ts +12 -0
- 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/responseInterceptor.js +53 -0
- package/dist/cjs-browser/client/sdk.gen.js +143 -3
- package/dist/cjs-browser/common/autoload.js +7 -0
- package/dist/cjs-browser/common/settings.js +2 -2
- package/dist/cjs-browser/types/client/responseInterceptor.d.ts +12 -0
- 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/responseInterceptor.js +49 -0
- package/dist/esm/client/sdk.gen.js +132 -0
- package/dist/esm/common/autoload.js +7 -0
- package/dist/esm/common/settings.js +2 -2
- package/dist/esm-browser/.tsbuildinfo +1 -1
- package/dist/esm-browser/client/responseInterceptor.js +49 -0
- package/dist/esm-browser/client/sdk.gen.js +132 -0
- package/dist/esm-browser/common/autoload.js +7 -0
- package/dist/esm-browser/common/settings.js +2 -2
- package/package.json +2 -2
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Response interceptor that enhances authentication error messages (401/403)
|
|
4
|
+
* with a link to the authentication documentation.
|
|
5
|
+
*/
|
|
6
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
7
|
+
exports.responseInterceptors = exports.authenticationErrorInterceptor = void 0;
|
|
8
|
+
/**
|
|
9
|
+
* Intercepts HTTP responses and adds authentication documentation
|
|
10
|
+
* to 401/403 error responses
|
|
11
|
+
*/
|
|
12
|
+
const authenticationErrorInterceptor = async (response) => {
|
|
13
|
+
// Only process authentication errors (401/403)
|
|
14
|
+
if (response.status !== 401 && response.status !== 403) {
|
|
15
|
+
return response;
|
|
16
|
+
}
|
|
17
|
+
// Clone the response so we can modify it
|
|
18
|
+
const clonedResponse = response.clone();
|
|
19
|
+
try {
|
|
20
|
+
// Read the original response body
|
|
21
|
+
const bodyText = await clonedResponse.text();
|
|
22
|
+
// Try to parse as JSON
|
|
23
|
+
let enhancedBody;
|
|
24
|
+
try {
|
|
25
|
+
const originalError = JSON.parse(bodyText);
|
|
26
|
+
// Create enhanced error with authentication documentation
|
|
27
|
+
const authError = {
|
|
28
|
+
...originalError,
|
|
29
|
+
documentation: "For more information on authentication, visit: https://docs.blaxel.ai/sdk-reference/introduction#how-authentication-works",
|
|
30
|
+
};
|
|
31
|
+
enhancedBody = JSON.stringify(authError);
|
|
32
|
+
}
|
|
33
|
+
catch {
|
|
34
|
+
// If not JSON, just append the documentation as text
|
|
35
|
+
enhancedBody = `${bodyText}\nFor more information on authentication, visit: https://docs.blaxel.ai/sdk-reference/introduction#how-authentication-works`;
|
|
36
|
+
}
|
|
37
|
+
// Create a new response with the enhanced body
|
|
38
|
+
return new Response(enhancedBody, {
|
|
39
|
+
status: response.status,
|
|
40
|
+
statusText: response.statusText,
|
|
41
|
+
headers: response.headers,
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
catch (error) {
|
|
45
|
+
// If anything fails, return the original response
|
|
46
|
+
console.error("Error processing authentication error response:", error);
|
|
47
|
+
return response;
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
exports.authenticationErrorInterceptor = authenticationErrorInterceptor;
|
|
51
|
+
exports.responseInterceptors = [
|
|
52
|
+
exports.authenticationErrorInterceptor,
|
|
53
|
+
];
|
|
@@ -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.
|
|
@@ -4,17 +4,24 @@ exports.initialize = initialize;
|
|
|
4
4
|
exports.authenticate = authenticate;
|
|
5
5
|
const client_gen_js_1 = require("../client/client.gen.js");
|
|
6
6
|
const interceptors_js_1 = require("../client/interceptors.js");
|
|
7
|
+
const responseInterceptor_js_1 = require("../client/responseInterceptor.js");
|
|
7
8
|
const client_gen_js_2 = require("../sandbox/client/client.gen.js");
|
|
8
9
|
const settings_js_1 = require("./settings.js");
|
|
9
10
|
client_gen_js_1.client.setConfig({
|
|
10
11
|
baseUrl: settings_js_1.settings.baseUrl,
|
|
11
12
|
});
|
|
13
|
+
// Register request interceptors
|
|
12
14
|
for (const interceptor of interceptors_js_1.interceptors) {
|
|
13
15
|
// @ts-expect-error - Interceptor is not typed
|
|
14
16
|
client_gen_js_1.client.interceptors.request.use(interceptor);
|
|
15
17
|
// @ts-expect-error - Interceptor is not typed
|
|
16
18
|
client_gen_js_2.client.interceptors.request.use(interceptor);
|
|
17
19
|
}
|
|
20
|
+
// Register response interceptors for authentication error handling
|
|
21
|
+
for (const interceptor of responseInterceptor_js_1.responseInterceptors) {
|
|
22
|
+
client_gen_js_1.client.interceptors.response.use(interceptor);
|
|
23
|
+
client_gen_js_2.client.interceptors.response.use(interceptor);
|
|
24
|
+
}
|
|
18
25
|
// Allow to set custom configuration for browser environment
|
|
19
26
|
function initialize(config) {
|
|
20
27
|
settings_js_1.settings.setConfig(config);
|
|
@@ -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) {
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Response interceptor that enhances authentication error messages (401/403)
|
|
3
|
+
* with a link to the authentication documentation.
|
|
4
|
+
*/
|
|
5
|
+
type ResponseInterceptor = (response: Response) => Promise<Response>;
|
|
6
|
+
/**
|
|
7
|
+
* Intercepts HTTP responses and adds authentication documentation
|
|
8
|
+
* to 401/403 error responses
|
|
9
|
+
*/
|
|
10
|
+
export declare const authenticationErrorInterceptor: ResponseInterceptor;
|
|
11
|
+
export declare const responseInterceptors: ResponseInterceptor[];
|
|
12
|
+
export {};
|
|
@@ -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.
|