@blaxel/core 0.2.33 → 0.2.34
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 +55 -31
- package/dist/client/sdk.gen.js +216 -112
- package/dist/client/types.gen.d.ts +367 -213
- package/dist/common/settings.d.ts +2 -0
- package/dist/common/settings.js +74 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/mcp/client.d.ts +8 -1
- package/dist/mcp/client.js +35 -13
- package/dist/sandbox/action.js +4 -2
- package/dist/sandbox/client/types.gen.js +0 -1
- package/dist/sandbox/process/process.js +5 -5
- package/dist/sandbox/sandbox.d.ts +6 -3
- package/dist/sandbox/sandbox.js +50 -50
- package/dist/sandbox/session.js +4 -1
- package/dist/sandbox/types.d.ts +14 -1
- package/dist/sandbox/types.js +29 -0
- package/dist/tools/mcpTool.js +19 -4
- package/dist/volume/index.d.ts +23 -0
- package/dist/volume/index.js +113 -0
- package/package.json +6 -2
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, ListFunctionsData, CreateFunctionData, DeleteFunctionData, GetFunctionData, UpdateFunctionData, ListFunctionRevisionsData, GetIntegrationData, ListIntegrationConnectionsData, CreateIntegrationConnectionData, DeleteIntegrationConnectionData, GetIntegrationConnectionData, UpdateIntegrationConnectionData, GetIntegrationConnectionModelEndpointConfigurationsData, ListIntegrationConnectionModelsData, GetIntegrationConnectionModelData, ListJobsData, CreateJobData, DeleteJobData, GetJobData, UpdateJobData, ListJobRevisionsData,
|
|
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, UpdateVolumeData, 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
|
|
@@ -41,6 +41,30 @@ export declare const listAgentRevisions: <ThrowOnError extends boolean = false>(
|
|
|
41
41
|
* List all configurations
|
|
42
42
|
*/
|
|
43
43
|
export declare const getConfiguration: <ThrowOnError extends boolean = false>(options?: Options<GetConfigurationData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Configuration, unknown, ThrowOnError>;
|
|
44
|
+
/**
|
|
45
|
+
* List all custom domains
|
|
46
|
+
*/
|
|
47
|
+
export declare const listCustomDomains: <ThrowOnError extends boolean = false>(options?: Options<ListCustomDomainsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain[], unknown, ThrowOnError>;
|
|
48
|
+
/**
|
|
49
|
+
* Create custom domain
|
|
50
|
+
*/
|
|
51
|
+
export declare const createCustomDomain: <ThrowOnError extends boolean = false>(options: Options<CreateCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
52
|
+
/**
|
|
53
|
+
* Delete custom domain
|
|
54
|
+
*/
|
|
55
|
+
export declare const deleteCustomDomain: <ThrowOnError extends boolean = false>(options: Options<DeleteCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
56
|
+
/**
|
|
57
|
+
* Get custom domain
|
|
58
|
+
*/
|
|
59
|
+
export declare const getCustomDomain: <ThrowOnError extends boolean = false>(options: Options<GetCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
60
|
+
/**
|
|
61
|
+
* Update custom domain
|
|
62
|
+
*/
|
|
63
|
+
export declare const updateCustomDomain: <ThrowOnError extends boolean = false>(options: Options<UpdateCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
64
|
+
/**
|
|
65
|
+
* Verify custom domain
|
|
66
|
+
*/
|
|
67
|
+
export declare const verifyCustomDomain: <ThrowOnError extends boolean = false>(options: Options<VerifyCustomDomainData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").CustomDomain, unknown, ThrowOnError>;
|
|
44
68
|
/**
|
|
45
69
|
* List all functions
|
|
46
70
|
*/
|
|
@@ -141,36 +165,6 @@ export declare const updateJob: <ThrowOnError extends boolean = false>(options:
|
|
|
141
165
|
* Returns revisions for a job by name.
|
|
142
166
|
*/
|
|
143
167
|
export declare const listJobRevisions: <ThrowOnError extends boolean = false>(options: Options<ListJobRevisionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").RevisionMetadata[], unknown, ThrowOnError>;
|
|
144
|
-
/**
|
|
145
|
-
* List knowledgebases
|
|
146
|
-
* Returns a list of all knowledgebases in the workspace.
|
|
147
|
-
*/
|
|
148
|
-
export declare const listKnowledgebases: <ThrowOnError extends boolean = false>(options?: Options<ListKnowledgebasesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Knowledgebase[], unknown, ThrowOnError>;
|
|
149
|
-
/**
|
|
150
|
-
* Create knowledgebase
|
|
151
|
-
* Creates an knowledgebase.
|
|
152
|
-
*/
|
|
153
|
-
export declare const createKnowledgebase: <ThrowOnError extends boolean = false>(options: Options<CreateKnowledgebaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Knowledgebase, unknown, ThrowOnError>;
|
|
154
|
-
/**
|
|
155
|
-
* Delete knowledgebase
|
|
156
|
-
* Deletes an knowledgebase by Name.
|
|
157
|
-
*/
|
|
158
|
-
export declare const deleteKnowledgebase: <ThrowOnError extends boolean = false>(options: Options<DeleteKnowledgebaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Knowledgebase, unknown, ThrowOnError>;
|
|
159
|
-
/**
|
|
160
|
-
* Get knowledgebase
|
|
161
|
-
* Returns an knowledgebase by Name.
|
|
162
|
-
*/
|
|
163
|
-
export declare const getKnowledgebase: <ThrowOnError extends boolean = false>(options: Options<GetKnowledgebaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Knowledgebase, unknown, ThrowOnError>;
|
|
164
|
-
/**
|
|
165
|
-
* Update knowledgebase
|
|
166
|
-
* Updates an knowledgebase.
|
|
167
|
-
*/
|
|
168
|
-
export declare const updateKnowledgebase: <ThrowOnError extends boolean = false>(options: Options<UpdateKnowledgebaseData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Knowledgebase, unknown, ThrowOnError>;
|
|
169
|
-
/**
|
|
170
|
-
* List knowledgebase revisions
|
|
171
|
-
* Returns revisions for a knowledgebase by name.
|
|
172
|
-
*/
|
|
173
|
-
export declare const listKnowledgebaseRevisions: <ThrowOnError extends boolean = false>(options: Options<ListKnowledgebaseRevisionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").RevisionMetadata[], unknown, ThrowOnError>;
|
|
174
168
|
/**
|
|
175
169
|
* List locations
|
|
176
170
|
* Returns a list of all locations available with status.
|
|
@@ -265,6 +259,11 @@ export declare const updatePrivateClusterHealth: <ThrowOnError extends boolean =
|
|
|
265
259
|
* Returns a list of all pending invitations in the workspace.
|
|
266
260
|
*/
|
|
267
261
|
export declare const listAllPendingInvitations: <ThrowOnError extends boolean = false>(options?: Options<ListAllPendingInvitationsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PendingInvitationRender[], unknown, ThrowOnError>;
|
|
262
|
+
/**
|
|
263
|
+
* List public ips
|
|
264
|
+
* Returns a list of all public ips used in Blaxel..
|
|
265
|
+
*/
|
|
266
|
+
export declare const listPublicIps: <ThrowOnError extends boolean = false>(options?: Options<ListPublicIpsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").PublicIps, unknown, ThrowOnError>;
|
|
268
267
|
export declare const listSandboxHubDefinitions: <ThrowOnError extends boolean = false>(options?: Options<ListSandboxHubDefinitionsData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").SandboxDefinition[], unknown, ThrowOnError>;
|
|
269
268
|
/**
|
|
270
269
|
* List Sandboxes
|
|
@@ -433,6 +432,31 @@ export declare const removeWorkspaceUser: <ThrowOnError extends boolean = false>
|
|
|
433
432
|
* Updates the role of a user in the workspace.
|
|
434
433
|
*/
|
|
435
434
|
export declare const updateWorkspaceUserRole: <ThrowOnError extends boolean = false>(options: Options<UpdateWorkspaceUserRoleData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").WorkspaceUser, unknown, ThrowOnError>;
|
|
435
|
+
/**
|
|
436
|
+
* List volumes
|
|
437
|
+
* Returns a list of all volumes in the workspace.
|
|
438
|
+
*/
|
|
439
|
+
export declare const listVolumes: <ThrowOnError extends boolean = false>(options?: Options<ListVolumesData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume[], unknown, ThrowOnError>;
|
|
440
|
+
/**
|
|
441
|
+
* Create volume
|
|
442
|
+
* Creates a volume.
|
|
443
|
+
*/
|
|
444
|
+
export declare const createVolume: <ThrowOnError extends boolean = false>(options: Options<CreateVolumeData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, unknown, ThrowOnError>;
|
|
445
|
+
/**
|
|
446
|
+
* Delete volume
|
|
447
|
+
* Deletes a volume by name.
|
|
448
|
+
*/
|
|
449
|
+
export declare const deleteVolume: <ThrowOnError extends boolean = false>(options: Options<DeleteVolumeData, ThrowOnError>) => import("@hey-api/client-fetch").RequestResult<import("./types.gen.js").Volume, unknown, ThrowOnError>;
|
|
450
|
+
/**
|
|
451
|
+
* Get volume
|
|
452
|
+
* Returns a volume by name.
|
|
453
|
+
*/
|
|
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>;
|
|
436
460
|
/**
|
|
437
461
|
* List workspaces
|
|
438
462
|
* Returns a list of all workspaces.
|
package/dist/client/sdk.gen.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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.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.
|
|
5
|
-
exports.checkWorkspaceAvailability = exports.leaveWorkspace = exports.acceptWorkspaceInvitation = exports.declineWorkspaceInvitation = exports.updateWorkspace = exports.getWorkspace = exports.deleteWorkspace = exports.createWorspace = exports.listWorkspaces = 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.listAllPendingInvitations = exports.updatePrivateClusterHealth = exports.getPrivateClusterHealth = exports.updatePrivateCluster = exports.getPrivateCluster = void 0;
|
|
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.updateVolume = 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
|
|
@@ -124,6 +124,110 @@ const getConfiguration = (options) => {
|
|
|
124
124
|
});
|
|
125
125
|
};
|
|
126
126
|
exports.getConfiguration = getConfiguration;
|
|
127
|
+
/**
|
|
128
|
+
* List all custom domains
|
|
129
|
+
*/
|
|
130
|
+
const listCustomDomains = (options) => {
|
|
131
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
132
|
+
security: [
|
|
133
|
+
{
|
|
134
|
+
scheme: 'bearer',
|
|
135
|
+
type: 'http'
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
url: '/customdomains',
|
|
139
|
+
...options
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
exports.listCustomDomains = listCustomDomains;
|
|
143
|
+
/**
|
|
144
|
+
* Create custom domain
|
|
145
|
+
*/
|
|
146
|
+
const createCustomDomain = (options) => {
|
|
147
|
+
return (options.client ?? client_gen_1.client).post({
|
|
148
|
+
security: [
|
|
149
|
+
{
|
|
150
|
+
scheme: 'bearer',
|
|
151
|
+
type: 'http'
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
url: '/customdomains',
|
|
155
|
+
...options,
|
|
156
|
+
headers: {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
...options?.headers
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
exports.createCustomDomain = createCustomDomain;
|
|
163
|
+
/**
|
|
164
|
+
* Delete custom domain
|
|
165
|
+
*/
|
|
166
|
+
const deleteCustomDomain = (options) => {
|
|
167
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
168
|
+
security: [
|
|
169
|
+
{
|
|
170
|
+
scheme: 'bearer',
|
|
171
|
+
type: 'http'
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
url: '/customdomains/{domainName}',
|
|
175
|
+
...options
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.deleteCustomDomain = deleteCustomDomain;
|
|
179
|
+
/**
|
|
180
|
+
* Get custom domain
|
|
181
|
+
*/
|
|
182
|
+
const getCustomDomain = (options) => {
|
|
183
|
+
return (options.client ?? client_gen_1.client).get({
|
|
184
|
+
security: [
|
|
185
|
+
{
|
|
186
|
+
scheme: 'bearer',
|
|
187
|
+
type: 'http'
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
url: '/customdomains/{domainName}',
|
|
191
|
+
...options
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
exports.getCustomDomain = getCustomDomain;
|
|
195
|
+
/**
|
|
196
|
+
* Update custom domain
|
|
197
|
+
*/
|
|
198
|
+
const updateCustomDomain = (options) => {
|
|
199
|
+
return (options.client ?? client_gen_1.client).put({
|
|
200
|
+
security: [
|
|
201
|
+
{
|
|
202
|
+
scheme: 'bearer',
|
|
203
|
+
type: 'http'
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
url: '/customdomains/{domainName}',
|
|
207
|
+
...options,
|
|
208
|
+
headers: {
|
|
209
|
+
'Content-Type': 'application/json',
|
|
210
|
+
...options?.headers
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
exports.updateCustomDomain = updateCustomDomain;
|
|
215
|
+
/**
|
|
216
|
+
* Verify custom domain
|
|
217
|
+
*/
|
|
218
|
+
const verifyCustomDomain = (options) => {
|
|
219
|
+
return (options.client ?? client_gen_1.client).post({
|
|
220
|
+
security: [
|
|
221
|
+
{
|
|
222
|
+
scheme: 'bearer',
|
|
223
|
+
type: 'http'
|
|
224
|
+
}
|
|
225
|
+
],
|
|
226
|
+
url: '/customdomains/{domainName}/verify',
|
|
227
|
+
...options
|
|
228
|
+
});
|
|
229
|
+
};
|
|
230
|
+
exports.verifyCustomDomain = verifyCustomDomain;
|
|
127
231
|
/**
|
|
128
232
|
* List all functions
|
|
129
233
|
*/
|
|
@@ -500,116 +604,6 @@ const listJobRevisions = (options) => {
|
|
|
500
604
|
});
|
|
501
605
|
};
|
|
502
606
|
exports.listJobRevisions = listJobRevisions;
|
|
503
|
-
/**
|
|
504
|
-
* List knowledgebases
|
|
505
|
-
* Returns a list of all knowledgebases in the workspace.
|
|
506
|
-
*/
|
|
507
|
-
const listKnowledgebases = (options) => {
|
|
508
|
-
return (options?.client ?? client_gen_1.client).get({
|
|
509
|
-
security: [
|
|
510
|
-
{
|
|
511
|
-
scheme: 'bearer',
|
|
512
|
-
type: 'http'
|
|
513
|
-
}
|
|
514
|
-
],
|
|
515
|
-
url: '/knowledgebases',
|
|
516
|
-
...options
|
|
517
|
-
});
|
|
518
|
-
};
|
|
519
|
-
exports.listKnowledgebases = listKnowledgebases;
|
|
520
|
-
/**
|
|
521
|
-
* Create knowledgebase
|
|
522
|
-
* Creates an knowledgebase.
|
|
523
|
-
*/
|
|
524
|
-
const createKnowledgebase = (options) => {
|
|
525
|
-
return (options.client ?? client_gen_1.client).post({
|
|
526
|
-
security: [
|
|
527
|
-
{
|
|
528
|
-
scheme: 'bearer',
|
|
529
|
-
type: 'http'
|
|
530
|
-
}
|
|
531
|
-
],
|
|
532
|
-
url: '/knowledgebases',
|
|
533
|
-
...options,
|
|
534
|
-
headers: {
|
|
535
|
-
'Content-Type': 'application/json',
|
|
536
|
-
...options?.headers
|
|
537
|
-
}
|
|
538
|
-
});
|
|
539
|
-
};
|
|
540
|
-
exports.createKnowledgebase = createKnowledgebase;
|
|
541
|
-
/**
|
|
542
|
-
* Delete knowledgebase
|
|
543
|
-
* Deletes an knowledgebase by Name.
|
|
544
|
-
*/
|
|
545
|
-
const deleteKnowledgebase = (options) => {
|
|
546
|
-
return (options.client ?? client_gen_1.client).delete({
|
|
547
|
-
security: [
|
|
548
|
-
{
|
|
549
|
-
scheme: 'bearer',
|
|
550
|
-
type: 'http'
|
|
551
|
-
}
|
|
552
|
-
],
|
|
553
|
-
url: '/knowledgebases/{knowledgebaseName}',
|
|
554
|
-
...options
|
|
555
|
-
});
|
|
556
|
-
};
|
|
557
|
-
exports.deleteKnowledgebase = deleteKnowledgebase;
|
|
558
|
-
/**
|
|
559
|
-
* Get knowledgebase
|
|
560
|
-
* Returns an knowledgebase by Name.
|
|
561
|
-
*/
|
|
562
|
-
const getKnowledgebase = (options) => {
|
|
563
|
-
return (options.client ?? client_gen_1.client).get({
|
|
564
|
-
security: [
|
|
565
|
-
{
|
|
566
|
-
scheme: 'bearer',
|
|
567
|
-
type: 'http'
|
|
568
|
-
}
|
|
569
|
-
],
|
|
570
|
-
url: '/knowledgebases/{knowledgebaseName}',
|
|
571
|
-
...options
|
|
572
|
-
});
|
|
573
|
-
};
|
|
574
|
-
exports.getKnowledgebase = getKnowledgebase;
|
|
575
|
-
/**
|
|
576
|
-
* Update knowledgebase
|
|
577
|
-
* Updates an knowledgebase.
|
|
578
|
-
*/
|
|
579
|
-
const updateKnowledgebase = (options) => {
|
|
580
|
-
return (options.client ?? client_gen_1.client).put({
|
|
581
|
-
security: [
|
|
582
|
-
{
|
|
583
|
-
scheme: 'bearer',
|
|
584
|
-
type: 'http'
|
|
585
|
-
}
|
|
586
|
-
],
|
|
587
|
-
url: '/knowledgebases/{knowledgebaseName}',
|
|
588
|
-
...options,
|
|
589
|
-
headers: {
|
|
590
|
-
'Content-Type': 'application/json',
|
|
591
|
-
...options?.headers
|
|
592
|
-
}
|
|
593
|
-
});
|
|
594
|
-
};
|
|
595
|
-
exports.updateKnowledgebase = updateKnowledgebase;
|
|
596
|
-
/**
|
|
597
|
-
* List knowledgebase revisions
|
|
598
|
-
* Returns revisions for a knowledgebase by name.
|
|
599
|
-
*/
|
|
600
|
-
const listKnowledgebaseRevisions = (options) => {
|
|
601
|
-
return (options.client ?? client_gen_1.client).get({
|
|
602
|
-
security: [
|
|
603
|
-
{
|
|
604
|
-
scheme: 'bearer',
|
|
605
|
-
type: 'http'
|
|
606
|
-
}
|
|
607
|
-
],
|
|
608
|
-
url: '/knowledgebases/{knowledgebaseName}/revisions',
|
|
609
|
-
...options
|
|
610
|
-
});
|
|
611
|
-
};
|
|
612
|
-
exports.listKnowledgebaseRevisions = listKnowledgebaseRevisions;
|
|
613
607
|
/**
|
|
614
608
|
* List locations
|
|
615
609
|
* Returns a list of all locations available with status.
|
|
@@ -972,6 +966,23 @@ const listAllPendingInvitations = (options) => {
|
|
|
972
966
|
});
|
|
973
967
|
};
|
|
974
968
|
exports.listAllPendingInvitations = listAllPendingInvitations;
|
|
969
|
+
/**
|
|
970
|
+
* List public ips
|
|
971
|
+
* Returns a list of all public ips used in Blaxel..
|
|
972
|
+
*/
|
|
973
|
+
const listPublicIps = (options) => {
|
|
974
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
975
|
+
security: [
|
|
976
|
+
{
|
|
977
|
+
scheme: 'bearer',
|
|
978
|
+
type: 'http'
|
|
979
|
+
}
|
|
980
|
+
],
|
|
981
|
+
url: '/publicIps',
|
|
982
|
+
...options
|
|
983
|
+
});
|
|
984
|
+
};
|
|
985
|
+
exports.listPublicIps = listPublicIps;
|
|
975
986
|
const listSandboxHubDefinitions = (options) => {
|
|
976
987
|
return (options?.client ?? client_gen_1.client).get({
|
|
977
988
|
security: [
|
|
@@ -1501,6 +1512,99 @@ const updateWorkspaceUserRole = (options) => {
|
|
|
1501
1512
|
});
|
|
1502
1513
|
};
|
|
1503
1514
|
exports.updateWorkspaceUserRole = updateWorkspaceUserRole;
|
|
1515
|
+
/**
|
|
1516
|
+
* List volumes
|
|
1517
|
+
* Returns a list of all volumes in the workspace.
|
|
1518
|
+
*/
|
|
1519
|
+
const listVolumes = (options) => {
|
|
1520
|
+
return (options?.client ?? client_gen_1.client).get({
|
|
1521
|
+
security: [
|
|
1522
|
+
{
|
|
1523
|
+
scheme: 'bearer',
|
|
1524
|
+
type: 'http'
|
|
1525
|
+
}
|
|
1526
|
+
],
|
|
1527
|
+
url: '/volumes',
|
|
1528
|
+
...options
|
|
1529
|
+
});
|
|
1530
|
+
};
|
|
1531
|
+
exports.listVolumes = listVolumes;
|
|
1532
|
+
/**
|
|
1533
|
+
* Create volume
|
|
1534
|
+
* Creates a volume.
|
|
1535
|
+
*/
|
|
1536
|
+
const createVolume = (options) => {
|
|
1537
|
+
return (options.client ?? client_gen_1.client).post({
|
|
1538
|
+
security: [
|
|
1539
|
+
{
|
|
1540
|
+
scheme: 'bearer',
|
|
1541
|
+
type: 'http'
|
|
1542
|
+
}
|
|
1543
|
+
],
|
|
1544
|
+
url: '/volumes',
|
|
1545
|
+
...options,
|
|
1546
|
+
headers: {
|
|
1547
|
+
'Content-Type': 'application/json',
|
|
1548
|
+
...options?.headers
|
|
1549
|
+
}
|
|
1550
|
+
});
|
|
1551
|
+
};
|
|
1552
|
+
exports.createVolume = createVolume;
|
|
1553
|
+
/**
|
|
1554
|
+
* Delete volume
|
|
1555
|
+
* Deletes a volume by name.
|
|
1556
|
+
*/
|
|
1557
|
+
const deleteVolume = (options) => {
|
|
1558
|
+
return (options.client ?? client_gen_1.client).delete({
|
|
1559
|
+
security: [
|
|
1560
|
+
{
|
|
1561
|
+
scheme: 'bearer',
|
|
1562
|
+
type: 'http'
|
|
1563
|
+
}
|
|
1564
|
+
],
|
|
1565
|
+
url: '/volumes/{volumeName}',
|
|
1566
|
+
...options
|
|
1567
|
+
});
|
|
1568
|
+
};
|
|
1569
|
+
exports.deleteVolume = deleteVolume;
|
|
1570
|
+
/**
|
|
1571
|
+
* Get volume
|
|
1572
|
+
* Returns a volume by name.
|
|
1573
|
+
*/
|
|
1574
|
+
const getVolume = (options) => {
|
|
1575
|
+
return (options.client ?? client_gen_1.client).get({
|
|
1576
|
+
security: [
|
|
1577
|
+
{
|
|
1578
|
+
scheme: 'bearer',
|
|
1579
|
+
type: 'http'
|
|
1580
|
+
}
|
|
1581
|
+
],
|
|
1582
|
+
url: '/volumes/{volumeName}',
|
|
1583
|
+
...options
|
|
1584
|
+
});
|
|
1585
|
+
};
|
|
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;
|
|
1504
1608
|
/**
|
|
1505
1609
|
* List workspaces
|
|
1506
1610
|
* Returns a list of all workspaces.
|