@blaxel/core 0.2.0-dev1
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/LICENSE +21 -0
- package/dist/agents/index.d.ts +15 -0
- package/dist/agents/index.js +114 -0
- package/dist/authentication/apikey.d.ts +10 -0
- package/dist/authentication/apikey.js +24 -0
- package/dist/authentication/clientcredentials.d.ts +15 -0
- package/dist/authentication/clientcredentials.js +70 -0
- package/dist/authentication/credentials.d.ts +6 -0
- package/dist/authentication/credentials.js +17 -0
- package/dist/authentication/deviceMode.d.ts +15 -0
- package/dist/authentication/deviceMode.js +70 -0
- package/dist/authentication/index.d.ts +3 -0
- package/dist/authentication/index.js +63 -0
- package/dist/authentication/types.d.ts +9 -0
- package/dist/authentication/types.js +2 -0
- package/dist/cache/index.d.ts +1 -0
- package/dist/cache/index.js +26 -0
- package/dist/client/authentication.d.ts +25 -0
- package/dist/client/authentication.js +15 -0
- package/dist/client/client.d.ts +2 -0
- package/dist/client/client.gen.d.ts +12 -0
- package/dist/client/client.gen.js +8 -0
- package/dist/client/client.js +17 -0
- package/dist/client/index.d.ts +2 -0
- package/dist/client/index.js +19 -0
- package/dist/client/interceptors.d.ts +3 -0
- package/dist/client/interceptors.js +17 -0
- package/dist/client/sdk.gen.d.ts +410 -0
- package/dist/client/sdk.gen.js +1436 -0
- package/dist/client/types.gen.d.ts +3534 -0
- package/dist/client/types.gen.js +4 -0
- package/dist/common/autoload.d.ts +3 -0
- package/dist/common/autoload.js +27 -0
- package/dist/common/env.d.ts +5 -0
- package/dist/common/env.js +43 -0
- package/dist/common/errors.d.ts +1 -0
- package/dist/common/errors.js +17 -0
- package/dist/common/internal.d.ts +2 -0
- package/dist/common/internal.js +19 -0
- package/dist/common/logger.d.ts +1 -0
- package/dist/common/logger.js +4 -0
- package/dist/common/node.d.ts +3 -0
- package/dist/common/node.js +14 -0
- package/dist/common/settings.d.ts +26 -0
- package/dist/common/settings.js +84 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +30 -0
- package/dist/mcp/client.d.ts +19 -0
- package/dist/mcp/client.js +151 -0
- package/dist/mcp/index.d.ts +2 -0
- package/dist/mcp/index.js +18 -0
- package/dist/mcp/server.d.ts +24 -0
- package/dist/mcp/server.js +213 -0
- package/dist/models/index.d.ts +8 -0
- package/dist/models/index.js +31 -0
- package/dist/sandbox/action.d.ts +18 -0
- package/dist/sandbox/action.js +74 -0
- package/dist/sandbox/client/client.gen.d.ts +12 -0
- package/dist/sandbox/client/client.gen.js +6 -0
- package/dist/sandbox/client/index.d.ts +2 -0
- package/dist/sandbox/client/index.js +19 -0
- package/dist/sandbox/client/sdk.gen.d.ts +83 -0
- package/dist/sandbox/client/sdk.gen.js +153 -0
- package/dist/sandbox/client/types.gen.d.ts +410 -0
- package/dist/sandbox/client/types.gen.js +4 -0
- package/dist/sandbox/filesystem.d.ts +18 -0
- package/dist/sandbox/filesystem.js +121 -0
- package/dist/sandbox/index.d.ts +1 -0
- package/dist/sandbox/index.js +17 -0
- package/dist/sandbox/network.d.ts +5 -0
- package/dist/sandbox/network.js +10 -0
- package/dist/sandbox/process.d.ts +12 -0
- package/dist/sandbox/process.js +61 -0
- package/dist/sandbox/sandbox.d.ts +23 -0
- package/dist/sandbox/sandbox.js +92 -0
- package/dist/telemetry/telemetry.d.ts +58 -0
- package/dist/telemetry/telemetry.js +59 -0
- package/dist/tools/index.d.ts +10 -0
- package/dist/tools/index.js +52 -0
- package/dist/tools/mcpTool.d.ts +21 -0
- package/dist/tools/mcpTool.js +193 -0
- package/dist/tools/types.d.ts +8 -0
- package/dist/tools/types.js +2 -0
- package/dist/tools/zodSchema.d.ts +9 -0
- package/dist/tools/zodSchema.js +46 -0
- package/package.json +76 -0
|
@@ -0,0 +1,1436 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// This file is auto-generated by @hey-api/openapi-ts
|
|
3
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
|
+
exports.listSandboxHubDefinitions = 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 = exports.listModelRevisions = exports.updateModel = exports.getModel = exports.deleteModel = exports.createModel = exports.listModels = exports.listMcpHubDefinitions = exports.listLocations = exports.listKnowledgebaseRevisions = exports.updateKnowledgebase = exports.getKnowledgebase = exports.deleteKnowledgebase = exports.createKnowledgebase = exports.listKnowledgebases = 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.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.updateWorkspaceUserRole = exports.removeWorkspaceUser = exports.inviteWorkspaceUser = exports.listWorkspaceUsers = exports.getTemplateFileContents = exports.getTemplateContents = exports.getTemplate = exports.listTemplates = exports.deleteApiKeyForServiceAccount = exports.createApiKeyForServiceAccount = exports.listApiKeysForServiceAccount = exports.updateWorkspaceServiceAccount = exports.deleteWorkspaceServiceAccount = exports.createWorkspaceServiceAccount = exports.getWorkspaceServiceAccounts = exports.stopSandbox = exports.startSandbox = exports.updateSandbox = exports.getSandbox = exports.deleteSandbox = exports.createSandbox = exports.listSandboxes = void 0;
|
|
6
|
+
const client_gen_js_1 = require("./client.gen.js");
|
|
7
|
+
/**
|
|
8
|
+
* List all agents
|
|
9
|
+
*/
|
|
10
|
+
const listAgents = (options) => {
|
|
11
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
12
|
+
security: [
|
|
13
|
+
{
|
|
14
|
+
scheme: 'bearer',
|
|
15
|
+
type: 'http'
|
|
16
|
+
}
|
|
17
|
+
],
|
|
18
|
+
url: '/agents',
|
|
19
|
+
...options
|
|
20
|
+
});
|
|
21
|
+
};
|
|
22
|
+
exports.listAgents = listAgents;
|
|
23
|
+
/**
|
|
24
|
+
* Create agent by name
|
|
25
|
+
*/
|
|
26
|
+
const createAgent = (options) => {
|
|
27
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
28
|
+
security: [
|
|
29
|
+
{
|
|
30
|
+
scheme: 'bearer',
|
|
31
|
+
type: 'http'
|
|
32
|
+
}
|
|
33
|
+
],
|
|
34
|
+
url: '/agents',
|
|
35
|
+
...options,
|
|
36
|
+
headers: {
|
|
37
|
+
'Content-Type': 'application/json',
|
|
38
|
+
...options?.headers
|
|
39
|
+
}
|
|
40
|
+
});
|
|
41
|
+
};
|
|
42
|
+
exports.createAgent = createAgent;
|
|
43
|
+
/**
|
|
44
|
+
* Delete agent by name
|
|
45
|
+
*/
|
|
46
|
+
const deleteAgent = (options) => {
|
|
47
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
48
|
+
security: [
|
|
49
|
+
{
|
|
50
|
+
scheme: 'bearer',
|
|
51
|
+
type: 'http'
|
|
52
|
+
}
|
|
53
|
+
],
|
|
54
|
+
url: '/agents/{agentName}',
|
|
55
|
+
...options
|
|
56
|
+
});
|
|
57
|
+
};
|
|
58
|
+
exports.deleteAgent = deleteAgent;
|
|
59
|
+
/**
|
|
60
|
+
* Get agent by name
|
|
61
|
+
*/
|
|
62
|
+
const getAgent = (options) => {
|
|
63
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
64
|
+
security: [
|
|
65
|
+
{
|
|
66
|
+
scheme: 'bearer',
|
|
67
|
+
type: 'http'
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
url: '/agents/{agentName}',
|
|
71
|
+
...options
|
|
72
|
+
});
|
|
73
|
+
};
|
|
74
|
+
exports.getAgent = getAgent;
|
|
75
|
+
/**
|
|
76
|
+
* Update agent by name
|
|
77
|
+
*/
|
|
78
|
+
const updateAgent = (options) => {
|
|
79
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
80
|
+
security: [
|
|
81
|
+
{
|
|
82
|
+
scheme: 'bearer',
|
|
83
|
+
type: 'http'
|
|
84
|
+
}
|
|
85
|
+
],
|
|
86
|
+
url: '/agents/{agentName}',
|
|
87
|
+
...options,
|
|
88
|
+
headers: {
|
|
89
|
+
'Content-Type': 'application/json',
|
|
90
|
+
...options?.headers
|
|
91
|
+
}
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
exports.updateAgent = updateAgent;
|
|
95
|
+
/**
|
|
96
|
+
* List all agent revisions
|
|
97
|
+
*/
|
|
98
|
+
const listAgentRevisions = (options) => {
|
|
99
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
100
|
+
security: [
|
|
101
|
+
{
|
|
102
|
+
scheme: 'bearer',
|
|
103
|
+
type: 'http'
|
|
104
|
+
}
|
|
105
|
+
],
|
|
106
|
+
url: '/agents/{agentName}/revisions',
|
|
107
|
+
...options
|
|
108
|
+
});
|
|
109
|
+
};
|
|
110
|
+
exports.listAgentRevisions = listAgentRevisions;
|
|
111
|
+
/**
|
|
112
|
+
* List all configurations
|
|
113
|
+
*/
|
|
114
|
+
const getConfiguration = (options) => {
|
|
115
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
116
|
+
security: [
|
|
117
|
+
{
|
|
118
|
+
scheme: 'bearer',
|
|
119
|
+
type: 'http'
|
|
120
|
+
}
|
|
121
|
+
],
|
|
122
|
+
url: '/configuration',
|
|
123
|
+
...options
|
|
124
|
+
});
|
|
125
|
+
};
|
|
126
|
+
exports.getConfiguration = getConfiguration;
|
|
127
|
+
/**
|
|
128
|
+
* List all functions
|
|
129
|
+
*/
|
|
130
|
+
const listFunctions = (options) => {
|
|
131
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
132
|
+
security: [
|
|
133
|
+
{
|
|
134
|
+
scheme: 'bearer',
|
|
135
|
+
type: 'http'
|
|
136
|
+
}
|
|
137
|
+
],
|
|
138
|
+
url: '/functions',
|
|
139
|
+
...options
|
|
140
|
+
});
|
|
141
|
+
};
|
|
142
|
+
exports.listFunctions = listFunctions;
|
|
143
|
+
/**
|
|
144
|
+
* Create function
|
|
145
|
+
*/
|
|
146
|
+
const createFunction = (options) => {
|
|
147
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
148
|
+
security: [
|
|
149
|
+
{
|
|
150
|
+
scheme: 'bearer',
|
|
151
|
+
type: 'http'
|
|
152
|
+
}
|
|
153
|
+
],
|
|
154
|
+
url: '/functions',
|
|
155
|
+
...options,
|
|
156
|
+
headers: {
|
|
157
|
+
'Content-Type': 'application/json',
|
|
158
|
+
...options?.headers
|
|
159
|
+
}
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
exports.createFunction = createFunction;
|
|
163
|
+
/**
|
|
164
|
+
* Delete function by name
|
|
165
|
+
*/
|
|
166
|
+
const deleteFunction = (options) => {
|
|
167
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
168
|
+
security: [
|
|
169
|
+
{
|
|
170
|
+
scheme: 'bearer',
|
|
171
|
+
type: 'http'
|
|
172
|
+
}
|
|
173
|
+
],
|
|
174
|
+
url: '/functions/{functionName}',
|
|
175
|
+
...options
|
|
176
|
+
});
|
|
177
|
+
};
|
|
178
|
+
exports.deleteFunction = deleteFunction;
|
|
179
|
+
/**
|
|
180
|
+
* Get function by name
|
|
181
|
+
*/
|
|
182
|
+
const getFunction = (options) => {
|
|
183
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
184
|
+
security: [
|
|
185
|
+
{
|
|
186
|
+
scheme: 'bearer',
|
|
187
|
+
type: 'http'
|
|
188
|
+
}
|
|
189
|
+
],
|
|
190
|
+
url: '/functions/{functionName}',
|
|
191
|
+
...options
|
|
192
|
+
});
|
|
193
|
+
};
|
|
194
|
+
exports.getFunction = getFunction;
|
|
195
|
+
/**
|
|
196
|
+
* Update function by name
|
|
197
|
+
*/
|
|
198
|
+
const updateFunction = (options) => {
|
|
199
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
200
|
+
security: [
|
|
201
|
+
{
|
|
202
|
+
scheme: 'bearer',
|
|
203
|
+
type: 'http'
|
|
204
|
+
}
|
|
205
|
+
],
|
|
206
|
+
url: '/functions/{functionName}',
|
|
207
|
+
...options,
|
|
208
|
+
headers: {
|
|
209
|
+
'Content-Type': 'application/json',
|
|
210
|
+
...options?.headers
|
|
211
|
+
}
|
|
212
|
+
});
|
|
213
|
+
};
|
|
214
|
+
exports.updateFunction = updateFunction;
|
|
215
|
+
/**
|
|
216
|
+
* List function revisions
|
|
217
|
+
* Returns revisions for a function by name.
|
|
218
|
+
*/
|
|
219
|
+
const listFunctionRevisions = (options) => {
|
|
220
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
221
|
+
security: [
|
|
222
|
+
{
|
|
223
|
+
scheme: 'bearer',
|
|
224
|
+
type: 'http'
|
|
225
|
+
}
|
|
226
|
+
],
|
|
227
|
+
url: '/functions/{functionName}/revisions',
|
|
228
|
+
...options
|
|
229
|
+
});
|
|
230
|
+
};
|
|
231
|
+
exports.listFunctionRevisions = listFunctionRevisions;
|
|
232
|
+
/**
|
|
233
|
+
* List integrations connections
|
|
234
|
+
* Returns integration information by name.
|
|
235
|
+
*/
|
|
236
|
+
const getIntegration = (options) => {
|
|
237
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
238
|
+
security: [
|
|
239
|
+
{
|
|
240
|
+
scheme: 'bearer',
|
|
241
|
+
type: 'http'
|
|
242
|
+
}
|
|
243
|
+
],
|
|
244
|
+
url: '/integrations/{integrationName}',
|
|
245
|
+
...options
|
|
246
|
+
});
|
|
247
|
+
};
|
|
248
|
+
exports.getIntegration = getIntegration;
|
|
249
|
+
/**
|
|
250
|
+
* List integrations connections
|
|
251
|
+
* Returns a list of all connections integrations in the workspace.
|
|
252
|
+
*/
|
|
253
|
+
const listIntegrationConnections = (options) => {
|
|
254
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
255
|
+
security: [
|
|
256
|
+
{
|
|
257
|
+
scheme: 'bearer',
|
|
258
|
+
type: 'http'
|
|
259
|
+
}
|
|
260
|
+
],
|
|
261
|
+
url: '/integrations/connections',
|
|
262
|
+
...options
|
|
263
|
+
});
|
|
264
|
+
};
|
|
265
|
+
exports.listIntegrationConnections = listIntegrationConnections;
|
|
266
|
+
/**
|
|
267
|
+
* Create integration
|
|
268
|
+
* Create a connection for an integration.
|
|
269
|
+
*/
|
|
270
|
+
const createIntegrationConnection = (options) => {
|
|
271
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
272
|
+
security: [
|
|
273
|
+
{
|
|
274
|
+
scheme: 'bearer',
|
|
275
|
+
type: 'http'
|
|
276
|
+
}
|
|
277
|
+
],
|
|
278
|
+
url: '/integrations/connections',
|
|
279
|
+
...options,
|
|
280
|
+
headers: {
|
|
281
|
+
'Content-Type': 'application/json',
|
|
282
|
+
...options?.headers
|
|
283
|
+
}
|
|
284
|
+
});
|
|
285
|
+
};
|
|
286
|
+
exports.createIntegrationConnection = createIntegrationConnection;
|
|
287
|
+
/**
|
|
288
|
+
* Delete integration
|
|
289
|
+
* Deletes an integration connection by integration name and connection name.
|
|
290
|
+
*/
|
|
291
|
+
const deleteIntegrationConnection = (options) => {
|
|
292
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
293
|
+
security: [
|
|
294
|
+
{
|
|
295
|
+
scheme: 'bearer',
|
|
296
|
+
type: 'http'
|
|
297
|
+
}
|
|
298
|
+
],
|
|
299
|
+
url: '/integrations/connections/{connectionName}',
|
|
300
|
+
...options
|
|
301
|
+
});
|
|
302
|
+
};
|
|
303
|
+
exports.deleteIntegrationConnection = deleteIntegrationConnection;
|
|
304
|
+
/**
|
|
305
|
+
* Get integration
|
|
306
|
+
* Returns an integration connection by integration name and connection name.
|
|
307
|
+
*/
|
|
308
|
+
const getIntegrationConnection = (options) => {
|
|
309
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
310
|
+
security: [
|
|
311
|
+
{
|
|
312
|
+
scheme: 'bearer',
|
|
313
|
+
type: 'http'
|
|
314
|
+
}
|
|
315
|
+
],
|
|
316
|
+
url: '/integrations/connections/{connectionName}',
|
|
317
|
+
...options
|
|
318
|
+
});
|
|
319
|
+
};
|
|
320
|
+
exports.getIntegrationConnection = getIntegrationConnection;
|
|
321
|
+
/**
|
|
322
|
+
* Update integration connection
|
|
323
|
+
* Update an integration connection by integration name and connection name.
|
|
324
|
+
*/
|
|
325
|
+
const updateIntegrationConnection = (options) => {
|
|
326
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
327
|
+
security: [
|
|
328
|
+
{
|
|
329
|
+
scheme: 'bearer',
|
|
330
|
+
type: 'http'
|
|
331
|
+
}
|
|
332
|
+
],
|
|
333
|
+
url: '/integrations/connections/{connectionName}',
|
|
334
|
+
...options,
|
|
335
|
+
headers: {
|
|
336
|
+
'Content-Type': 'application/json',
|
|
337
|
+
...options?.headers
|
|
338
|
+
}
|
|
339
|
+
});
|
|
340
|
+
};
|
|
341
|
+
exports.updateIntegrationConnection = updateIntegrationConnection;
|
|
342
|
+
/**
|
|
343
|
+
* Get integration connection model endpoint configurations
|
|
344
|
+
* Returns a list of all endpoint configurations for a model.
|
|
345
|
+
*/
|
|
346
|
+
const getIntegrationConnectionModelEndpointConfigurations = (options) => {
|
|
347
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
348
|
+
security: [
|
|
349
|
+
{
|
|
350
|
+
scheme: 'bearer',
|
|
351
|
+
type: 'http'
|
|
352
|
+
}
|
|
353
|
+
],
|
|
354
|
+
url: '/integrations/connections/{connectionName}/endpointConfigurations',
|
|
355
|
+
...options
|
|
356
|
+
});
|
|
357
|
+
};
|
|
358
|
+
exports.getIntegrationConnectionModelEndpointConfigurations = getIntegrationConnectionModelEndpointConfigurations;
|
|
359
|
+
/**
|
|
360
|
+
* List integration connection models
|
|
361
|
+
* Returns a list of all models for an integration connection.
|
|
362
|
+
*/
|
|
363
|
+
const listIntegrationConnectionModels = (options) => {
|
|
364
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
365
|
+
security: [
|
|
366
|
+
{
|
|
367
|
+
scheme: 'bearer',
|
|
368
|
+
type: 'http'
|
|
369
|
+
}
|
|
370
|
+
],
|
|
371
|
+
url: '/integrations/connections/{connectionName}/models',
|
|
372
|
+
...options
|
|
373
|
+
});
|
|
374
|
+
};
|
|
375
|
+
exports.listIntegrationConnectionModels = listIntegrationConnectionModels;
|
|
376
|
+
/**
|
|
377
|
+
* Get integration model endpoint configurations
|
|
378
|
+
* Returns a model for an integration connection by ID.
|
|
379
|
+
*/
|
|
380
|
+
const getIntegrationConnectionModel = (options) => {
|
|
381
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
382
|
+
security: [
|
|
383
|
+
{
|
|
384
|
+
scheme: 'bearer',
|
|
385
|
+
type: 'http'
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
url: '/integrations/connections/{connectionName}/models/{modelId}',
|
|
389
|
+
...options
|
|
390
|
+
});
|
|
391
|
+
};
|
|
392
|
+
exports.getIntegrationConnectionModel = getIntegrationConnectionModel;
|
|
393
|
+
/**
|
|
394
|
+
* List knowledgebases
|
|
395
|
+
* Returns a list of all knowledgebases in the workspace.
|
|
396
|
+
*/
|
|
397
|
+
const listKnowledgebases = (options) => {
|
|
398
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
399
|
+
security: [
|
|
400
|
+
{
|
|
401
|
+
scheme: 'bearer',
|
|
402
|
+
type: 'http'
|
|
403
|
+
}
|
|
404
|
+
],
|
|
405
|
+
url: '/knowledgebases',
|
|
406
|
+
...options
|
|
407
|
+
});
|
|
408
|
+
};
|
|
409
|
+
exports.listKnowledgebases = listKnowledgebases;
|
|
410
|
+
/**
|
|
411
|
+
* Create knowledgebase
|
|
412
|
+
* Creates an knowledgebase.
|
|
413
|
+
*/
|
|
414
|
+
const createKnowledgebase = (options) => {
|
|
415
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
416
|
+
security: [
|
|
417
|
+
{
|
|
418
|
+
scheme: 'bearer',
|
|
419
|
+
type: 'http'
|
|
420
|
+
}
|
|
421
|
+
],
|
|
422
|
+
url: '/knowledgebases',
|
|
423
|
+
...options,
|
|
424
|
+
headers: {
|
|
425
|
+
'Content-Type': 'application/json',
|
|
426
|
+
...options?.headers
|
|
427
|
+
}
|
|
428
|
+
});
|
|
429
|
+
};
|
|
430
|
+
exports.createKnowledgebase = createKnowledgebase;
|
|
431
|
+
/**
|
|
432
|
+
* Delete knowledgebase
|
|
433
|
+
* Deletes an knowledgebase by Name.
|
|
434
|
+
*/
|
|
435
|
+
const deleteKnowledgebase = (options) => {
|
|
436
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
437
|
+
security: [
|
|
438
|
+
{
|
|
439
|
+
scheme: 'bearer',
|
|
440
|
+
type: 'http'
|
|
441
|
+
}
|
|
442
|
+
],
|
|
443
|
+
url: '/knowledgebases/{knowledgebaseName}',
|
|
444
|
+
...options
|
|
445
|
+
});
|
|
446
|
+
};
|
|
447
|
+
exports.deleteKnowledgebase = deleteKnowledgebase;
|
|
448
|
+
/**
|
|
449
|
+
* Get knowledgebase
|
|
450
|
+
* Returns an knowledgebase by Name.
|
|
451
|
+
*/
|
|
452
|
+
const getKnowledgebase = (options) => {
|
|
453
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
454
|
+
security: [
|
|
455
|
+
{
|
|
456
|
+
scheme: 'bearer',
|
|
457
|
+
type: 'http'
|
|
458
|
+
}
|
|
459
|
+
],
|
|
460
|
+
url: '/knowledgebases/{knowledgebaseName}',
|
|
461
|
+
...options
|
|
462
|
+
});
|
|
463
|
+
};
|
|
464
|
+
exports.getKnowledgebase = getKnowledgebase;
|
|
465
|
+
/**
|
|
466
|
+
* Update knowledgebase
|
|
467
|
+
* Updates an knowledgebase.
|
|
468
|
+
*/
|
|
469
|
+
const updateKnowledgebase = (options) => {
|
|
470
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
471
|
+
security: [
|
|
472
|
+
{
|
|
473
|
+
scheme: 'bearer',
|
|
474
|
+
type: 'http'
|
|
475
|
+
}
|
|
476
|
+
],
|
|
477
|
+
url: '/knowledgebases/{knowledgebaseName}',
|
|
478
|
+
...options,
|
|
479
|
+
headers: {
|
|
480
|
+
'Content-Type': 'application/json',
|
|
481
|
+
...options?.headers
|
|
482
|
+
}
|
|
483
|
+
});
|
|
484
|
+
};
|
|
485
|
+
exports.updateKnowledgebase = updateKnowledgebase;
|
|
486
|
+
/**
|
|
487
|
+
* List knowledgebase revisions
|
|
488
|
+
* Returns revisions for a knowledgebase by name.
|
|
489
|
+
*/
|
|
490
|
+
const listKnowledgebaseRevisions = (options) => {
|
|
491
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
492
|
+
security: [
|
|
493
|
+
{
|
|
494
|
+
scheme: 'bearer',
|
|
495
|
+
type: 'http'
|
|
496
|
+
}
|
|
497
|
+
],
|
|
498
|
+
url: '/knowledgebases/{knowledgebaseName}/revisions',
|
|
499
|
+
...options
|
|
500
|
+
});
|
|
501
|
+
};
|
|
502
|
+
exports.listKnowledgebaseRevisions = listKnowledgebaseRevisions;
|
|
503
|
+
/**
|
|
504
|
+
* List locations
|
|
505
|
+
* Returns a list of all locations available with status.
|
|
506
|
+
*/
|
|
507
|
+
const listLocations = (options) => {
|
|
508
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
509
|
+
security: [
|
|
510
|
+
{
|
|
511
|
+
scheme: 'bearer',
|
|
512
|
+
type: 'http'
|
|
513
|
+
}
|
|
514
|
+
],
|
|
515
|
+
url: '/locations',
|
|
516
|
+
...options
|
|
517
|
+
});
|
|
518
|
+
};
|
|
519
|
+
exports.listLocations = listLocations;
|
|
520
|
+
const listMcpHubDefinitions = (options) => {
|
|
521
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
522
|
+
security: [
|
|
523
|
+
{
|
|
524
|
+
scheme: 'bearer',
|
|
525
|
+
type: 'http'
|
|
526
|
+
}
|
|
527
|
+
],
|
|
528
|
+
url: '/mcp/hub',
|
|
529
|
+
...options
|
|
530
|
+
});
|
|
531
|
+
};
|
|
532
|
+
exports.listMcpHubDefinitions = listMcpHubDefinitions;
|
|
533
|
+
/**
|
|
534
|
+
* List models
|
|
535
|
+
* Returns a list of all models in the workspace.
|
|
536
|
+
*/
|
|
537
|
+
const listModels = (options) => {
|
|
538
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
539
|
+
security: [
|
|
540
|
+
{
|
|
541
|
+
scheme: 'bearer',
|
|
542
|
+
type: 'http'
|
|
543
|
+
}
|
|
544
|
+
],
|
|
545
|
+
url: '/models',
|
|
546
|
+
...options
|
|
547
|
+
});
|
|
548
|
+
};
|
|
549
|
+
exports.listModels = listModels;
|
|
550
|
+
/**
|
|
551
|
+
* Create model
|
|
552
|
+
* Creates a model.
|
|
553
|
+
*/
|
|
554
|
+
const createModel = (options) => {
|
|
555
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
556
|
+
security: [
|
|
557
|
+
{
|
|
558
|
+
scheme: 'bearer',
|
|
559
|
+
type: 'http'
|
|
560
|
+
}
|
|
561
|
+
],
|
|
562
|
+
url: '/models',
|
|
563
|
+
...options,
|
|
564
|
+
headers: {
|
|
565
|
+
'Content-Type': 'application/json',
|
|
566
|
+
...options?.headers
|
|
567
|
+
}
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
exports.createModel = createModel;
|
|
571
|
+
/**
|
|
572
|
+
* Delete model
|
|
573
|
+
* Deletes a model by name.
|
|
574
|
+
*/
|
|
575
|
+
const deleteModel = (options) => {
|
|
576
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
577
|
+
security: [
|
|
578
|
+
{
|
|
579
|
+
scheme: 'bearer',
|
|
580
|
+
type: 'http'
|
|
581
|
+
}
|
|
582
|
+
],
|
|
583
|
+
url: '/models/{modelName}',
|
|
584
|
+
...options
|
|
585
|
+
});
|
|
586
|
+
};
|
|
587
|
+
exports.deleteModel = deleteModel;
|
|
588
|
+
/**
|
|
589
|
+
* Get model
|
|
590
|
+
* Returns a model by name.
|
|
591
|
+
*/
|
|
592
|
+
const getModel = (options) => {
|
|
593
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
594
|
+
security: [
|
|
595
|
+
{
|
|
596
|
+
scheme: 'bearer',
|
|
597
|
+
type: 'http'
|
|
598
|
+
}
|
|
599
|
+
],
|
|
600
|
+
url: '/models/{modelName}',
|
|
601
|
+
...options
|
|
602
|
+
});
|
|
603
|
+
};
|
|
604
|
+
exports.getModel = getModel;
|
|
605
|
+
/**
|
|
606
|
+
* Create or update model
|
|
607
|
+
* Update a model by name.
|
|
608
|
+
*/
|
|
609
|
+
const updateModel = (options) => {
|
|
610
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
611
|
+
security: [
|
|
612
|
+
{
|
|
613
|
+
scheme: 'bearer',
|
|
614
|
+
type: 'http'
|
|
615
|
+
}
|
|
616
|
+
],
|
|
617
|
+
url: '/models/{modelName}',
|
|
618
|
+
...options,
|
|
619
|
+
headers: {
|
|
620
|
+
'Content-Type': 'application/json',
|
|
621
|
+
...options?.headers
|
|
622
|
+
}
|
|
623
|
+
});
|
|
624
|
+
};
|
|
625
|
+
exports.updateModel = updateModel;
|
|
626
|
+
/**
|
|
627
|
+
* List model revisions
|
|
628
|
+
* Returns revisions for a model by name.
|
|
629
|
+
*/
|
|
630
|
+
const listModelRevisions = (options) => {
|
|
631
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
632
|
+
security: [
|
|
633
|
+
{
|
|
634
|
+
scheme: 'bearer',
|
|
635
|
+
type: 'http'
|
|
636
|
+
}
|
|
637
|
+
],
|
|
638
|
+
url: '/models/{modelName}/revisions',
|
|
639
|
+
...options
|
|
640
|
+
});
|
|
641
|
+
};
|
|
642
|
+
exports.listModelRevisions = listModelRevisions;
|
|
643
|
+
/**
|
|
644
|
+
* List policies
|
|
645
|
+
* Returns a list of all policies in the workspace.
|
|
646
|
+
*/
|
|
647
|
+
const listPolicies = (options) => {
|
|
648
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
649
|
+
security: [
|
|
650
|
+
{
|
|
651
|
+
scheme: 'bearer',
|
|
652
|
+
type: 'http'
|
|
653
|
+
}
|
|
654
|
+
],
|
|
655
|
+
url: '/policies',
|
|
656
|
+
...options
|
|
657
|
+
});
|
|
658
|
+
};
|
|
659
|
+
exports.listPolicies = listPolicies;
|
|
660
|
+
/**
|
|
661
|
+
* Create policy
|
|
662
|
+
* Creates a policy.
|
|
663
|
+
*/
|
|
664
|
+
const createPolicy = (options) => {
|
|
665
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
666
|
+
security: [
|
|
667
|
+
{
|
|
668
|
+
scheme: 'bearer',
|
|
669
|
+
type: 'http'
|
|
670
|
+
}
|
|
671
|
+
],
|
|
672
|
+
url: '/policies',
|
|
673
|
+
...options,
|
|
674
|
+
headers: {
|
|
675
|
+
'Content-Type': 'application/json',
|
|
676
|
+
...options?.headers
|
|
677
|
+
}
|
|
678
|
+
});
|
|
679
|
+
};
|
|
680
|
+
exports.createPolicy = createPolicy;
|
|
681
|
+
/**
|
|
682
|
+
* Delete policy
|
|
683
|
+
* Deletes a policy by name.
|
|
684
|
+
*/
|
|
685
|
+
const deletePolicy = (options) => {
|
|
686
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
687
|
+
security: [
|
|
688
|
+
{
|
|
689
|
+
scheme: 'bearer',
|
|
690
|
+
type: 'http'
|
|
691
|
+
}
|
|
692
|
+
],
|
|
693
|
+
url: '/policies/{policyName}',
|
|
694
|
+
...options
|
|
695
|
+
});
|
|
696
|
+
};
|
|
697
|
+
exports.deletePolicy = deletePolicy;
|
|
698
|
+
/**
|
|
699
|
+
* Get policy
|
|
700
|
+
* Returns a policy by name.
|
|
701
|
+
*/
|
|
702
|
+
const getPolicy = (options) => {
|
|
703
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
704
|
+
security: [
|
|
705
|
+
{
|
|
706
|
+
scheme: 'bearer',
|
|
707
|
+
type: 'http'
|
|
708
|
+
}
|
|
709
|
+
],
|
|
710
|
+
url: '/policies/{policyName}',
|
|
711
|
+
...options
|
|
712
|
+
});
|
|
713
|
+
};
|
|
714
|
+
exports.getPolicy = getPolicy;
|
|
715
|
+
/**
|
|
716
|
+
* Update policy
|
|
717
|
+
* Updates a policy.
|
|
718
|
+
*/
|
|
719
|
+
const updatePolicy = (options) => {
|
|
720
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
721
|
+
security: [
|
|
722
|
+
{
|
|
723
|
+
scheme: 'bearer',
|
|
724
|
+
type: 'http'
|
|
725
|
+
}
|
|
726
|
+
],
|
|
727
|
+
url: '/policies/{policyName}',
|
|
728
|
+
...options,
|
|
729
|
+
headers: {
|
|
730
|
+
'Content-Type': 'application/json',
|
|
731
|
+
...options?.headers
|
|
732
|
+
}
|
|
733
|
+
});
|
|
734
|
+
};
|
|
735
|
+
exports.updatePolicy = updatePolicy;
|
|
736
|
+
/**
|
|
737
|
+
* List all private clusters
|
|
738
|
+
*/
|
|
739
|
+
const listPrivateClusters = (options) => {
|
|
740
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
741
|
+
security: [
|
|
742
|
+
{
|
|
743
|
+
scheme: 'bearer',
|
|
744
|
+
type: 'http'
|
|
745
|
+
}
|
|
746
|
+
],
|
|
747
|
+
url: '/privateclusters',
|
|
748
|
+
...options
|
|
749
|
+
});
|
|
750
|
+
};
|
|
751
|
+
exports.listPrivateClusters = listPrivateClusters;
|
|
752
|
+
/**
|
|
753
|
+
* Create private cluster
|
|
754
|
+
*/
|
|
755
|
+
const createPrivateCluster = (options) => {
|
|
756
|
+
return (options?.client ?? client_gen_js_1.client).post({
|
|
757
|
+
security: [
|
|
758
|
+
{
|
|
759
|
+
scheme: 'bearer',
|
|
760
|
+
type: 'http'
|
|
761
|
+
}
|
|
762
|
+
],
|
|
763
|
+
url: '/privateclusters',
|
|
764
|
+
...options
|
|
765
|
+
});
|
|
766
|
+
};
|
|
767
|
+
exports.createPrivateCluster = createPrivateCluster;
|
|
768
|
+
/**
|
|
769
|
+
* Delete private cluster
|
|
770
|
+
*/
|
|
771
|
+
const deletePrivateCluster = (options) => {
|
|
772
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
773
|
+
security: [
|
|
774
|
+
{
|
|
775
|
+
scheme: 'bearer',
|
|
776
|
+
type: 'http'
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
url: '/privateclusters/{privateClusterName}',
|
|
780
|
+
...options
|
|
781
|
+
});
|
|
782
|
+
};
|
|
783
|
+
exports.deletePrivateCluster = deletePrivateCluster;
|
|
784
|
+
/**
|
|
785
|
+
* Get private cluster by name
|
|
786
|
+
*/
|
|
787
|
+
const getPrivateCluster = (options) => {
|
|
788
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
789
|
+
security: [
|
|
790
|
+
{
|
|
791
|
+
scheme: 'bearer',
|
|
792
|
+
type: 'http'
|
|
793
|
+
}
|
|
794
|
+
],
|
|
795
|
+
url: '/privateclusters/{privateClusterName}',
|
|
796
|
+
...options
|
|
797
|
+
});
|
|
798
|
+
};
|
|
799
|
+
exports.getPrivateCluster = getPrivateCluster;
|
|
800
|
+
/**
|
|
801
|
+
* Update private cluster
|
|
802
|
+
*/
|
|
803
|
+
const updatePrivateCluster = (options) => {
|
|
804
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
805
|
+
security: [
|
|
806
|
+
{
|
|
807
|
+
scheme: 'bearer',
|
|
808
|
+
type: 'http'
|
|
809
|
+
}
|
|
810
|
+
],
|
|
811
|
+
url: '/privateclusters/{privateClusterName}',
|
|
812
|
+
...options
|
|
813
|
+
});
|
|
814
|
+
};
|
|
815
|
+
exports.updatePrivateCluster = updatePrivateCluster;
|
|
816
|
+
/**
|
|
817
|
+
* Get private cluster health
|
|
818
|
+
*/
|
|
819
|
+
const getPrivateClusterHealth = (options) => {
|
|
820
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
821
|
+
security: [
|
|
822
|
+
{
|
|
823
|
+
scheme: 'bearer',
|
|
824
|
+
type: 'http'
|
|
825
|
+
}
|
|
826
|
+
],
|
|
827
|
+
url: '/privateclusters/{privateClusterName}/health',
|
|
828
|
+
...options
|
|
829
|
+
});
|
|
830
|
+
};
|
|
831
|
+
exports.getPrivateClusterHealth = getPrivateClusterHealth;
|
|
832
|
+
/**
|
|
833
|
+
* Update private cluster health
|
|
834
|
+
*/
|
|
835
|
+
const updatePrivateClusterHealth = (options) => {
|
|
836
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
837
|
+
security: [
|
|
838
|
+
{
|
|
839
|
+
scheme: 'bearer',
|
|
840
|
+
type: 'http'
|
|
841
|
+
}
|
|
842
|
+
],
|
|
843
|
+
url: '/privateclusters/{privateClusterName}/health',
|
|
844
|
+
...options
|
|
845
|
+
});
|
|
846
|
+
};
|
|
847
|
+
exports.updatePrivateClusterHealth = updatePrivateClusterHealth;
|
|
848
|
+
/**
|
|
849
|
+
* List pending invitations
|
|
850
|
+
* Returns a list of all pending invitations in the workspace.
|
|
851
|
+
*/
|
|
852
|
+
const listAllPendingInvitations = (options) => {
|
|
853
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
854
|
+
security: [
|
|
855
|
+
{
|
|
856
|
+
scheme: 'bearer',
|
|
857
|
+
type: 'http'
|
|
858
|
+
}
|
|
859
|
+
],
|
|
860
|
+
url: '/profile/invitations',
|
|
861
|
+
...options
|
|
862
|
+
});
|
|
863
|
+
};
|
|
864
|
+
exports.listAllPendingInvitations = listAllPendingInvitations;
|
|
865
|
+
const listSandboxHubDefinitions = (options) => {
|
|
866
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
867
|
+
security: [
|
|
868
|
+
{
|
|
869
|
+
scheme: 'bearer',
|
|
870
|
+
type: 'http'
|
|
871
|
+
}
|
|
872
|
+
],
|
|
873
|
+
url: '/sandbox/hub',
|
|
874
|
+
...options
|
|
875
|
+
});
|
|
876
|
+
};
|
|
877
|
+
exports.listSandboxHubDefinitions = listSandboxHubDefinitions;
|
|
878
|
+
/**
|
|
879
|
+
* List Sandboxes
|
|
880
|
+
* Returns a list of all Sandboxes in the workspace.
|
|
881
|
+
*/
|
|
882
|
+
const listSandboxes = (options) => {
|
|
883
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
884
|
+
security: [
|
|
885
|
+
{
|
|
886
|
+
scheme: 'bearer',
|
|
887
|
+
type: 'http'
|
|
888
|
+
}
|
|
889
|
+
],
|
|
890
|
+
url: '/sandboxes',
|
|
891
|
+
...options
|
|
892
|
+
});
|
|
893
|
+
};
|
|
894
|
+
exports.listSandboxes = listSandboxes;
|
|
895
|
+
/**
|
|
896
|
+
* Create Sandbox
|
|
897
|
+
* Creates a Sandbox.
|
|
898
|
+
*/
|
|
899
|
+
const createSandbox = (options) => {
|
|
900
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
901
|
+
security: [
|
|
902
|
+
{
|
|
903
|
+
scheme: 'bearer',
|
|
904
|
+
type: 'http'
|
|
905
|
+
}
|
|
906
|
+
],
|
|
907
|
+
url: '/sandboxes',
|
|
908
|
+
...options,
|
|
909
|
+
headers: {
|
|
910
|
+
'Content-Type': 'application/json',
|
|
911
|
+
...options?.headers
|
|
912
|
+
}
|
|
913
|
+
});
|
|
914
|
+
};
|
|
915
|
+
exports.createSandbox = createSandbox;
|
|
916
|
+
/**
|
|
917
|
+
* Delete Sandbox
|
|
918
|
+
* Deletes a Sandbox by name.
|
|
919
|
+
*/
|
|
920
|
+
const deleteSandbox = (options) => {
|
|
921
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
922
|
+
security: [
|
|
923
|
+
{
|
|
924
|
+
scheme: 'bearer',
|
|
925
|
+
type: 'http'
|
|
926
|
+
}
|
|
927
|
+
],
|
|
928
|
+
url: '/sandboxes/{sandboxName}',
|
|
929
|
+
...options
|
|
930
|
+
});
|
|
931
|
+
};
|
|
932
|
+
exports.deleteSandbox = deleteSandbox;
|
|
933
|
+
/**
|
|
934
|
+
* Get Sandbox
|
|
935
|
+
* Returns a Sandbox by name.
|
|
936
|
+
*/
|
|
937
|
+
const getSandbox = (options) => {
|
|
938
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
939
|
+
security: [
|
|
940
|
+
{
|
|
941
|
+
scheme: 'bearer',
|
|
942
|
+
type: 'http'
|
|
943
|
+
}
|
|
944
|
+
],
|
|
945
|
+
url: '/sandboxes/{sandboxName}',
|
|
946
|
+
...options
|
|
947
|
+
});
|
|
948
|
+
};
|
|
949
|
+
exports.getSandbox = getSandbox;
|
|
950
|
+
/**
|
|
951
|
+
* Update Sandbox
|
|
952
|
+
* Update a Sandbox by name.
|
|
953
|
+
*/
|
|
954
|
+
const updateSandbox = (options) => {
|
|
955
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
956
|
+
security: [
|
|
957
|
+
{
|
|
958
|
+
scheme: 'bearer',
|
|
959
|
+
type: 'http'
|
|
960
|
+
}
|
|
961
|
+
],
|
|
962
|
+
url: '/sandboxes/{sandboxName}',
|
|
963
|
+
...options,
|
|
964
|
+
headers: {
|
|
965
|
+
'Content-Type': 'application/json',
|
|
966
|
+
...options?.headers
|
|
967
|
+
}
|
|
968
|
+
});
|
|
969
|
+
};
|
|
970
|
+
exports.updateSandbox = updateSandbox;
|
|
971
|
+
/**
|
|
972
|
+
* Start Sandbox
|
|
973
|
+
* Starts a Sandbox by name.
|
|
974
|
+
*/
|
|
975
|
+
const startSandbox = (options) => {
|
|
976
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
977
|
+
security: [
|
|
978
|
+
{
|
|
979
|
+
scheme: 'bearer',
|
|
980
|
+
type: 'http'
|
|
981
|
+
}
|
|
982
|
+
],
|
|
983
|
+
url: '/sandboxes/{sandboxName}/start',
|
|
984
|
+
...options
|
|
985
|
+
});
|
|
986
|
+
};
|
|
987
|
+
exports.startSandbox = startSandbox;
|
|
988
|
+
/**
|
|
989
|
+
* Stop Sandbox
|
|
990
|
+
* Stops a Sandbox by name.
|
|
991
|
+
*/
|
|
992
|
+
const stopSandbox = (options) => {
|
|
993
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
994
|
+
security: [
|
|
995
|
+
{
|
|
996
|
+
scheme: 'bearer',
|
|
997
|
+
type: 'http'
|
|
998
|
+
}
|
|
999
|
+
],
|
|
1000
|
+
url: '/sandboxes/{sandboxName}/stop',
|
|
1001
|
+
...options
|
|
1002
|
+
});
|
|
1003
|
+
};
|
|
1004
|
+
exports.stopSandbox = stopSandbox;
|
|
1005
|
+
/**
|
|
1006
|
+
* Get workspace service accounts
|
|
1007
|
+
* Returns a list of all service accounts in the workspace.
|
|
1008
|
+
*/
|
|
1009
|
+
const getWorkspaceServiceAccounts = (options) => {
|
|
1010
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
1011
|
+
security: [
|
|
1012
|
+
{
|
|
1013
|
+
scheme: 'bearer',
|
|
1014
|
+
type: 'http'
|
|
1015
|
+
}
|
|
1016
|
+
],
|
|
1017
|
+
url: '/service_accounts',
|
|
1018
|
+
...options
|
|
1019
|
+
});
|
|
1020
|
+
};
|
|
1021
|
+
exports.getWorkspaceServiceAccounts = getWorkspaceServiceAccounts;
|
|
1022
|
+
/**
|
|
1023
|
+
* Create workspace service account
|
|
1024
|
+
* Creates a service account in the workspace.
|
|
1025
|
+
*/
|
|
1026
|
+
const createWorkspaceServiceAccount = (options) => {
|
|
1027
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1028
|
+
security: [
|
|
1029
|
+
{
|
|
1030
|
+
scheme: 'bearer',
|
|
1031
|
+
type: 'http'
|
|
1032
|
+
}
|
|
1033
|
+
],
|
|
1034
|
+
url: '/service_accounts',
|
|
1035
|
+
...options,
|
|
1036
|
+
headers: {
|
|
1037
|
+
'Content-Type': 'application/json',
|
|
1038
|
+
...options?.headers
|
|
1039
|
+
}
|
|
1040
|
+
});
|
|
1041
|
+
};
|
|
1042
|
+
exports.createWorkspaceServiceAccount = createWorkspaceServiceAccount;
|
|
1043
|
+
/**
|
|
1044
|
+
* Delete workspace service account
|
|
1045
|
+
* Deletes a service account.
|
|
1046
|
+
*/
|
|
1047
|
+
const deleteWorkspaceServiceAccount = (options) => {
|
|
1048
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
1049
|
+
security: [
|
|
1050
|
+
{
|
|
1051
|
+
scheme: 'bearer',
|
|
1052
|
+
type: 'http'
|
|
1053
|
+
}
|
|
1054
|
+
],
|
|
1055
|
+
url: '/service_accounts/{clientId}',
|
|
1056
|
+
...options
|
|
1057
|
+
});
|
|
1058
|
+
};
|
|
1059
|
+
exports.deleteWorkspaceServiceAccount = deleteWorkspaceServiceAccount;
|
|
1060
|
+
/**
|
|
1061
|
+
* Update workspace service account
|
|
1062
|
+
* Updates a service account.
|
|
1063
|
+
*/
|
|
1064
|
+
const updateWorkspaceServiceAccount = (options) => {
|
|
1065
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
1066
|
+
security: [
|
|
1067
|
+
{
|
|
1068
|
+
scheme: 'bearer',
|
|
1069
|
+
type: 'http'
|
|
1070
|
+
}
|
|
1071
|
+
],
|
|
1072
|
+
url: '/service_accounts/{clientId}',
|
|
1073
|
+
...options,
|
|
1074
|
+
headers: {
|
|
1075
|
+
'Content-Type': 'application/json',
|
|
1076
|
+
...options?.headers
|
|
1077
|
+
}
|
|
1078
|
+
});
|
|
1079
|
+
};
|
|
1080
|
+
exports.updateWorkspaceServiceAccount = updateWorkspaceServiceAccount;
|
|
1081
|
+
/**
|
|
1082
|
+
* List API keys for service account
|
|
1083
|
+
* Returns a list of all API keys for a service account.
|
|
1084
|
+
*/
|
|
1085
|
+
const listApiKeysForServiceAccount = (options) => {
|
|
1086
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
1087
|
+
security: [
|
|
1088
|
+
{
|
|
1089
|
+
scheme: 'bearer',
|
|
1090
|
+
type: 'http'
|
|
1091
|
+
}
|
|
1092
|
+
],
|
|
1093
|
+
url: '/service_accounts/{clientId}/api_keys',
|
|
1094
|
+
...options
|
|
1095
|
+
});
|
|
1096
|
+
};
|
|
1097
|
+
exports.listApiKeysForServiceAccount = listApiKeysForServiceAccount;
|
|
1098
|
+
/**
|
|
1099
|
+
* Create API key for service account
|
|
1100
|
+
* Creates an API key for a service account.
|
|
1101
|
+
*/
|
|
1102
|
+
const createApiKeyForServiceAccount = (options) => {
|
|
1103
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1104
|
+
security: [
|
|
1105
|
+
{
|
|
1106
|
+
scheme: 'bearer',
|
|
1107
|
+
type: 'http'
|
|
1108
|
+
}
|
|
1109
|
+
],
|
|
1110
|
+
url: '/service_accounts/{clientId}/api_keys',
|
|
1111
|
+
...options,
|
|
1112
|
+
headers: {
|
|
1113
|
+
'Content-Type': 'application/json',
|
|
1114
|
+
...options?.headers
|
|
1115
|
+
}
|
|
1116
|
+
});
|
|
1117
|
+
};
|
|
1118
|
+
exports.createApiKeyForServiceAccount = createApiKeyForServiceAccount;
|
|
1119
|
+
/**
|
|
1120
|
+
* Delete API key for service account
|
|
1121
|
+
* Deletes an API key for a service account.
|
|
1122
|
+
*/
|
|
1123
|
+
const deleteApiKeyForServiceAccount = (options) => {
|
|
1124
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
1125
|
+
security: [
|
|
1126
|
+
{
|
|
1127
|
+
scheme: 'bearer',
|
|
1128
|
+
type: 'http'
|
|
1129
|
+
}
|
|
1130
|
+
],
|
|
1131
|
+
url: '/service_accounts/{clientId}/api_keys/{apiKeyId}',
|
|
1132
|
+
...options
|
|
1133
|
+
});
|
|
1134
|
+
};
|
|
1135
|
+
exports.deleteApiKeyForServiceAccount = deleteApiKeyForServiceAccount;
|
|
1136
|
+
/**
|
|
1137
|
+
* List templates
|
|
1138
|
+
* Returns a list of all templates.
|
|
1139
|
+
*/
|
|
1140
|
+
const listTemplates = (options) => {
|
|
1141
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
1142
|
+
security: [
|
|
1143
|
+
{
|
|
1144
|
+
scheme: 'bearer',
|
|
1145
|
+
type: 'http'
|
|
1146
|
+
}
|
|
1147
|
+
],
|
|
1148
|
+
url: '/templates',
|
|
1149
|
+
...options
|
|
1150
|
+
});
|
|
1151
|
+
};
|
|
1152
|
+
exports.listTemplates = listTemplates;
|
|
1153
|
+
/**
|
|
1154
|
+
* Get template
|
|
1155
|
+
* Returns a template by name.
|
|
1156
|
+
*/
|
|
1157
|
+
const getTemplate = (options) => {
|
|
1158
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
1159
|
+
security: [
|
|
1160
|
+
{
|
|
1161
|
+
scheme: 'bearer',
|
|
1162
|
+
type: 'http'
|
|
1163
|
+
}
|
|
1164
|
+
],
|
|
1165
|
+
url: '/templates/{templateName}',
|
|
1166
|
+
...options
|
|
1167
|
+
});
|
|
1168
|
+
};
|
|
1169
|
+
exports.getTemplate = getTemplate;
|
|
1170
|
+
const getTemplateContents = (options) => {
|
|
1171
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
1172
|
+
security: [
|
|
1173
|
+
{
|
|
1174
|
+
scheme: 'bearer',
|
|
1175
|
+
type: 'http'
|
|
1176
|
+
}
|
|
1177
|
+
],
|
|
1178
|
+
url: '/templates/{templateName}/contents',
|
|
1179
|
+
...options
|
|
1180
|
+
});
|
|
1181
|
+
};
|
|
1182
|
+
exports.getTemplateContents = getTemplateContents;
|
|
1183
|
+
const getTemplateFileContents = (options) => {
|
|
1184
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
1185
|
+
security: [
|
|
1186
|
+
{
|
|
1187
|
+
scheme: 'bearer',
|
|
1188
|
+
type: 'http'
|
|
1189
|
+
}
|
|
1190
|
+
],
|
|
1191
|
+
url: '/templates/{templateName}/contents/{fileName}',
|
|
1192
|
+
...options
|
|
1193
|
+
});
|
|
1194
|
+
};
|
|
1195
|
+
exports.getTemplateFileContents = getTemplateFileContents;
|
|
1196
|
+
/**
|
|
1197
|
+
* List users in workspace
|
|
1198
|
+
* Returns a list of all users in the workspace.
|
|
1199
|
+
*/
|
|
1200
|
+
const listWorkspaceUsers = (options) => {
|
|
1201
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
1202
|
+
security: [
|
|
1203
|
+
{
|
|
1204
|
+
scheme: 'bearer',
|
|
1205
|
+
type: 'http'
|
|
1206
|
+
}
|
|
1207
|
+
],
|
|
1208
|
+
url: '/users',
|
|
1209
|
+
...options
|
|
1210
|
+
});
|
|
1211
|
+
};
|
|
1212
|
+
exports.listWorkspaceUsers = listWorkspaceUsers;
|
|
1213
|
+
/**
|
|
1214
|
+
* Invite user to workspace
|
|
1215
|
+
* Invites a user to the workspace by email.
|
|
1216
|
+
*/
|
|
1217
|
+
const inviteWorkspaceUser = (options) => {
|
|
1218
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1219
|
+
security: [
|
|
1220
|
+
{
|
|
1221
|
+
scheme: 'bearer',
|
|
1222
|
+
type: 'http'
|
|
1223
|
+
}
|
|
1224
|
+
],
|
|
1225
|
+
url: '/users',
|
|
1226
|
+
...options,
|
|
1227
|
+
headers: {
|
|
1228
|
+
'Content-Type': 'application/json',
|
|
1229
|
+
...options?.headers
|
|
1230
|
+
}
|
|
1231
|
+
});
|
|
1232
|
+
};
|
|
1233
|
+
exports.inviteWorkspaceUser = inviteWorkspaceUser;
|
|
1234
|
+
/**
|
|
1235
|
+
* Remove user from workspace or revoke invitation
|
|
1236
|
+
* Removes a user from the workspace (or revokes an invitation if the user has not accepted the invitation yet).
|
|
1237
|
+
*/
|
|
1238
|
+
const removeWorkspaceUser = (options) => {
|
|
1239
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
1240
|
+
security: [
|
|
1241
|
+
{
|
|
1242
|
+
scheme: 'bearer',
|
|
1243
|
+
type: 'http'
|
|
1244
|
+
}
|
|
1245
|
+
],
|
|
1246
|
+
url: '/users/{subOrEmail}',
|
|
1247
|
+
...options
|
|
1248
|
+
});
|
|
1249
|
+
};
|
|
1250
|
+
exports.removeWorkspaceUser = removeWorkspaceUser;
|
|
1251
|
+
/**
|
|
1252
|
+
* Update user role in workspace
|
|
1253
|
+
* Updates the role of a user in the workspace.
|
|
1254
|
+
*/
|
|
1255
|
+
const updateWorkspaceUserRole = (options) => {
|
|
1256
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
1257
|
+
security: [
|
|
1258
|
+
{
|
|
1259
|
+
scheme: 'bearer',
|
|
1260
|
+
type: 'http'
|
|
1261
|
+
}
|
|
1262
|
+
],
|
|
1263
|
+
url: '/users/{subOrEmail}',
|
|
1264
|
+
...options,
|
|
1265
|
+
headers: {
|
|
1266
|
+
'Content-Type': 'application/json',
|
|
1267
|
+
...options?.headers
|
|
1268
|
+
}
|
|
1269
|
+
});
|
|
1270
|
+
};
|
|
1271
|
+
exports.updateWorkspaceUserRole = updateWorkspaceUserRole;
|
|
1272
|
+
/**
|
|
1273
|
+
* List workspaces
|
|
1274
|
+
* Returns a list of all workspaces.
|
|
1275
|
+
*/
|
|
1276
|
+
const listWorkspaces = (options) => {
|
|
1277
|
+
return (options?.client ?? client_gen_js_1.client).get({
|
|
1278
|
+
security: [
|
|
1279
|
+
{
|
|
1280
|
+
scheme: 'bearer',
|
|
1281
|
+
type: 'http'
|
|
1282
|
+
}
|
|
1283
|
+
],
|
|
1284
|
+
url: '/workspaces',
|
|
1285
|
+
...options
|
|
1286
|
+
});
|
|
1287
|
+
};
|
|
1288
|
+
exports.listWorkspaces = listWorkspaces;
|
|
1289
|
+
/**
|
|
1290
|
+
* Create worspace
|
|
1291
|
+
* Creates a workspace.
|
|
1292
|
+
*/
|
|
1293
|
+
const createWorspace = (options) => {
|
|
1294
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1295
|
+
security: [
|
|
1296
|
+
{
|
|
1297
|
+
scheme: 'bearer',
|
|
1298
|
+
type: 'http'
|
|
1299
|
+
}
|
|
1300
|
+
],
|
|
1301
|
+
url: '/workspaces',
|
|
1302
|
+
...options,
|
|
1303
|
+
headers: {
|
|
1304
|
+
'Content-Type': 'application/json',
|
|
1305
|
+
...options?.headers
|
|
1306
|
+
}
|
|
1307
|
+
});
|
|
1308
|
+
};
|
|
1309
|
+
exports.createWorspace = createWorspace;
|
|
1310
|
+
/**
|
|
1311
|
+
* Delete workspace
|
|
1312
|
+
* Deletes a workspace by name.
|
|
1313
|
+
*/
|
|
1314
|
+
const deleteWorkspace = (options) => {
|
|
1315
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
1316
|
+
security: [
|
|
1317
|
+
{
|
|
1318
|
+
scheme: 'bearer',
|
|
1319
|
+
type: 'http'
|
|
1320
|
+
}
|
|
1321
|
+
],
|
|
1322
|
+
url: '/workspaces/{workspaceName}',
|
|
1323
|
+
...options
|
|
1324
|
+
});
|
|
1325
|
+
};
|
|
1326
|
+
exports.deleteWorkspace = deleteWorkspace;
|
|
1327
|
+
/**
|
|
1328
|
+
* Get workspace
|
|
1329
|
+
* Returns a workspace by name.
|
|
1330
|
+
*/
|
|
1331
|
+
const getWorkspace = (options) => {
|
|
1332
|
+
return (options.client ?? client_gen_js_1.client).get({
|
|
1333
|
+
security: [
|
|
1334
|
+
{
|
|
1335
|
+
scheme: 'bearer',
|
|
1336
|
+
type: 'http'
|
|
1337
|
+
}
|
|
1338
|
+
],
|
|
1339
|
+
url: '/workspaces/{workspaceName}',
|
|
1340
|
+
...options
|
|
1341
|
+
});
|
|
1342
|
+
};
|
|
1343
|
+
exports.getWorkspace = getWorkspace;
|
|
1344
|
+
/**
|
|
1345
|
+
* Update workspace
|
|
1346
|
+
* Updates a workspace by name.
|
|
1347
|
+
*/
|
|
1348
|
+
const updateWorkspace = (options) => {
|
|
1349
|
+
return (options.client ?? client_gen_js_1.client).put({
|
|
1350
|
+
security: [
|
|
1351
|
+
{
|
|
1352
|
+
scheme: 'bearer',
|
|
1353
|
+
type: 'http'
|
|
1354
|
+
}
|
|
1355
|
+
],
|
|
1356
|
+
url: '/workspaces/{workspaceName}',
|
|
1357
|
+
...options,
|
|
1358
|
+
headers: {
|
|
1359
|
+
'Content-Type': 'application/json',
|
|
1360
|
+
...options?.headers
|
|
1361
|
+
}
|
|
1362
|
+
});
|
|
1363
|
+
};
|
|
1364
|
+
exports.updateWorkspace = updateWorkspace;
|
|
1365
|
+
/**
|
|
1366
|
+
* Decline invitation to workspace
|
|
1367
|
+
* Declines an invitation to a workspace.
|
|
1368
|
+
*/
|
|
1369
|
+
const declineWorkspaceInvitation = (options) => {
|
|
1370
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1371
|
+
security: [
|
|
1372
|
+
{
|
|
1373
|
+
scheme: 'bearer',
|
|
1374
|
+
type: 'http'
|
|
1375
|
+
}
|
|
1376
|
+
],
|
|
1377
|
+
url: '/workspaces/{workspaceName}/decline',
|
|
1378
|
+
...options
|
|
1379
|
+
});
|
|
1380
|
+
};
|
|
1381
|
+
exports.declineWorkspaceInvitation = declineWorkspaceInvitation;
|
|
1382
|
+
/**
|
|
1383
|
+
* Accept invitation to workspace
|
|
1384
|
+
* Accepts an invitation to a workspace.
|
|
1385
|
+
*/
|
|
1386
|
+
const acceptWorkspaceInvitation = (options) => {
|
|
1387
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1388
|
+
security: [
|
|
1389
|
+
{
|
|
1390
|
+
scheme: 'bearer',
|
|
1391
|
+
type: 'http'
|
|
1392
|
+
}
|
|
1393
|
+
],
|
|
1394
|
+
url: '/workspaces/{workspaceName}/join',
|
|
1395
|
+
...options
|
|
1396
|
+
});
|
|
1397
|
+
};
|
|
1398
|
+
exports.acceptWorkspaceInvitation = acceptWorkspaceInvitation;
|
|
1399
|
+
/**
|
|
1400
|
+
* Leave workspace
|
|
1401
|
+
* Leaves a workspace.
|
|
1402
|
+
*/
|
|
1403
|
+
const leaveWorkspace = (options) => {
|
|
1404
|
+
return (options.client ?? client_gen_js_1.client).delete({
|
|
1405
|
+
security: [
|
|
1406
|
+
{
|
|
1407
|
+
scheme: 'bearer',
|
|
1408
|
+
type: 'http'
|
|
1409
|
+
}
|
|
1410
|
+
],
|
|
1411
|
+
url: '/workspaces/{workspaceName}/leave',
|
|
1412
|
+
...options
|
|
1413
|
+
});
|
|
1414
|
+
};
|
|
1415
|
+
exports.leaveWorkspace = leaveWorkspace;
|
|
1416
|
+
/**
|
|
1417
|
+
* Check workspace availability
|
|
1418
|
+
* Check if a workspace is available.
|
|
1419
|
+
*/
|
|
1420
|
+
const checkWorkspaceAvailability = (options) => {
|
|
1421
|
+
return (options.client ?? client_gen_js_1.client).post({
|
|
1422
|
+
security: [
|
|
1423
|
+
{
|
|
1424
|
+
scheme: 'bearer',
|
|
1425
|
+
type: 'http'
|
|
1426
|
+
}
|
|
1427
|
+
],
|
|
1428
|
+
url: '/workspaces/availability',
|
|
1429
|
+
...options,
|
|
1430
|
+
headers: {
|
|
1431
|
+
'Content-Type': 'application/json',
|
|
1432
|
+
...options?.headers
|
|
1433
|
+
}
|
|
1434
|
+
});
|
|
1435
|
+
};
|
|
1436
|
+
exports.checkWorkspaceAvailability = checkWorkspaceAvailability;
|