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