@blaxel/core 0.2.43-dev.196 → 0.2.43-dev.199

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.
Files changed (194) hide show
  1. package/dist/cjs/.tsbuildinfo +1 -1
  2. package/dist/cjs/authentication/index.js +4 -30
  3. package/dist/cjs/cache/index.js +3 -16
  4. package/dist/cjs/common/browser.js +22 -0
  5. package/dist/cjs/common/env.js +12 -24
  6. package/dist/cjs/common/node.js +13 -25
  7. package/dist/cjs/common/settings.js +2 -2
  8. package/dist/cjs/sandbox/filesystem/filesystem.js +12 -13
  9. package/dist/cjs/sandbox/sandbox.js +2 -2
  10. package/dist/cjs/types/common/browser.d.ts +5 -0
  11. package/dist/cjs/types/common/node.d.ts +1 -2
  12. package/dist/cjs/types/sandbox/filesystem/filesystem.d.ts +6 -2
  13. package/dist/cjs-browser/.tsbuildinfo +1 -0
  14. package/dist/cjs-browser/agents/index.js +109 -0
  15. package/dist/cjs-browser/authentication/apikey.js +24 -0
  16. package/dist/cjs-browser/authentication/clientcredentials.js +85 -0
  17. package/dist/cjs-browser/authentication/credentials.js +17 -0
  18. package/dist/cjs-browser/authentication/deviceMode.js +70 -0
  19. package/dist/cjs-browser/authentication/index.js +62 -0
  20. package/dist/cjs-browser/authentication/types.js +2 -0
  21. package/dist/cjs-browser/cache/index.js +26 -0
  22. package/dist/cjs-browser/client/authentication.js +15 -0
  23. package/dist/cjs-browser/client/client.gen.js +8 -0
  24. package/dist/cjs-browser/client/client.js +17 -0
  25. package/dist/cjs-browser/client/index.js +19 -0
  26. package/dist/cjs-browser/client/interceptors.js +17 -0
  27. package/dist/cjs-browser/client/sdk.gen.js +1824 -0
  28. package/dist/cjs-browser/client/types.gen.js +4 -0
  29. package/dist/cjs-browser/common/autoload.js +27 -0
  30. package/dist/cjs-browser/common/env.js +57 -0
  31. package/dist/cjs-browser/common/errors.js +17 -0
  32. package/dist/cjs-browser/common/internal.js +228 -0
  33. package/dist/cjs-browser/common/internal.test.js +39 -0
  34. package/dist/cjs-browser/common/logger.js +69 -0
  35. package/dist/cjs-browser/common/node.js +22 -0
  36. package/dist/cjs-browser/common/settings.js +181 -0
  37. package/dist/cjs-browser/index.browser.test.js +45 -0
  38. package/dist/cjs-browser/index.js +34 -0
  39. package/dist/cjs-browser/jobs/index.js +19 -0
  40. package/dist/cjs-browser/jobs/jobs.js +90 -0
  41. package/dist/cjs-browser/jobs/start.js +66 -0
  42. package/dist/cjs-browser/jobs/types.js +2 -0
  43. package/dist/cjs-browser/mcp/client.js +235 -0
  44. package/dist/cjs-browser/mcp/index.js +18 -0
  45. package/dist/cjs-browser/mcp/server.js +213 -0
  46. package/dist/cjs-browser/models/index.js +31 -0
  47. package/dist/cjs-browser/sandbox/action.js +83 -0
  48. package/dist/cjs-browser/sandbox/client/client.gen.js +6 -0
  49. package/dist/cjs-browser/sandbox/client/index.js +19 -0
  50. package/dist/cjs-browser/sandbox/client/sdk.gen.js +289 -0
  51. package/dist/cjs-browser/sandbox/client/types.gen.js +3 -0
  52. package/dist/cjs-browser/sandbox/filesystem/filesystem.js +240 -0
  53. package/dist/cjs-browser/sandbox/filesystem/index.js +18 -0
  54. package/dist/cjs-browser/sandbox/filesystem/types.js +2 -0
  55. package/dist/cjs-browser/sandbox/index.js +36 -0
  56. package/dist/cjs-browser/sandbox/network/index.js +17 -0
  57. package/dist/cjs-browser/sandbox/network/network.js +10 -0
  58. package/dist/cjs-browser/sandbox/preview.js +148 -0
  59. package/dist/cjs-browser/sandbox/process/index.js +17 -0
  60. package/dist/cjs-browser/sandbox/process/process.js +189 -0
  61. package/dist/cjs-browser/sandbox/sandbox.js +180 -0
  62. package/dist/cjs-browser/sandbox/session.js +123 -0
  63. package/dist/cjs-browser/sandbox/types.js +81 -0
  64. package/dist/cjs-browser/telemetry/telemetry.js +80 -0
  65. package/dist/cjs-browser/tools/index.js +52 -0
  66. package/dist/cjs-browser/tools/mcpTool.js +254 -0
  67. package/dist/cjs-browser/tools/types.js +2 -0
  68. package/dist/cjs-browser/tools/zodSchema.js +50 -0
  69. package/dist/cjs-browser/types/agents/index.d.ts +15 -0
  70. package/dist/cjs-browser/types/authentication/apikey.d.ts +10 -0
  71. package/dist/cjs-browser/types/authentication/clientcredentials.d.ts +17 -0
  72. package/dist/cjs-browser/types/authentication/credentials.d.ts +6 -0
  73. package/dist/cjs-browser/types/authentication/deviceMode.d.ts +15 -0
  74. package/dist/cjs-browser/types/authentication/index.d.ts +3 -0
  75. package/dist/cjs-browser/types/authentication/types.d.ts +9 -0
  76. package/dist/cjs-browser/types/cache/index.d.ts +1 -0
  77. package/dist/cjs-browser/types/client/authentication.d.ts +25 -0
  78. package/dist/cjs-browser/types/client/client.d.ts +2 -0
  79. package/dist/cjs-browser/types/client/client.gen.d.ts +12 -0
  80. package/dist/cjs-browser/types/client/index.d.ts +2 -0
  81. package/dist/cjs-browser/types/client/interceptors.d.ts +3 -0
  82. package/dist/cjs-browser/types/client/sdk.gen.d.ts +519 -0
  83. package/dist/cjs-browser/types/client/types.gen.d.ts +4950 -0
  84. package/dist/cjs-browser/types/common/autoload.d.ts +3 -0
  85. package/dist/cjs-browser/types/common/browser.d.ts +5 -0
  86. package/dist/cjs-browser/types/common/env.d.ts +5 -0
  87. package/dist/cjs-browser/types/common/errors.d.ts +1 -0
  88. package/dist/cjs-browser/types/common/internal.d.ts +6 -0
  89. package/dist/cjs-browser/types/common/internal.test.d.ts +1 -0
  90. package/dist/cjs-browser/types/common/logger.d.ts +25 -0
  91. package/dist/cjs-browser/types/common/node.d.ts +6 -0
  92. package/dist/cjs-browser/types/common/settings.d.ts +32 -0
  93. package/dist/cjs-browser/types/index.browser.test.d.ts +1 -0
  94. package/dist/cjs-browser/types/index.d.ts +18 -0
  95. package/dist/cjs-browser/types/jobs/index.d.ts +3 -0
  96. package/dist/cjs-browser/types/jobs/jobs.d.ts +13 -0
  97. package/dist/cjs-browser/types/jobs/start.d.ts +1 -0
  98. package/dist/cjs-browser/types/jobs/types.d.ts +3 -0
  99. package/dist/cjs-browser/types/mcp/client.d.ts +28 -0
  100. package/dist/cjs-browser/types/mcp/index.d.ts +2 -0
  101. package/dist/cjs-browser/types/mcp/server.d.ts +24 -0
  102. package/dist/cjs-browser/types/models/index.d.ts +8 -0
  103. package/dist/cjs-browser/types/sandbox/action.d.ts +19 -0
  104. package/dist/cjs-browser/types/sandbox/client/client.gen.d.ts +12 -0
  105. package/dist/cjs-browser/types/sandbox/client/index.d.ts +2 -0
  106. package/dist/cjs-browser/types/sandbox/client/sdk.gen.d.ts +101 -0
  107. package/dist/cjs-browser/types/sandbox/client/types.gen.d.ts +578 -0
  108. package/dist/cjs-browser/types/sandbox/filesystem/filesystem.d.ts +27 -0
  109. package/dist/cjs-browser/types/sandbox/filesystem/index.d.ts +2 -0
  110. package/dist/cjs-browser/types/sandbox/filesystem/types.d.ts +15 -0
  111. package/dist/cjs-browser/types/sandbox/index.d.ts +4 -0
  112. package/dist/cjs-browser/types/sandbox/network/index.d.ts +1 -0
  113. package/dist/cjs-browser/types/sandbox/network/network.d.ts +5 -0
  114. package/dist/cjs-browser/types/sandbox/preview.d.ts +37 -0
  115. package/dist/cjs-browser/types/sandbox/process/index.d.ts +1 -0
  116. package/dist/cjs-browser/types/sandbox/process/process.d.ts +24 -0
  117. package/dist/cjs-browser/types/sandbox/sandbox.d.ts +33 -0
  118. package/dist/cjs-browser/types/sandbox/session.d.ts +27 -0
  119. package/dist/cjs-browser/types/sandbox/types.d.ts +52 -0
  120. package/dist/cjs-browser/types/telemetry/telemetry.d.ts +62 -0
  121. package/dist/cjs-browser/types/tools/index.d.ts +12 -0
  122. package/dist/cjs-browser/types/tools/mcpTool.d.ts +33 -0
  123. package/dist/cjs-browser/types/tools/types.d.ts +8 -0
  124. package/dist/cjs-browser/types/tools/zodSchema.d.ts +82 -0
  125. package/dist/cjs-browser/types/volume/index.d.ts +23 -0
  126. package/dist/cjs-browser/volume/index.js +113 -0
  127. package/dist/esm/.tsbuildinfo +1 -1
  128. package/dist/esm/authentication/index.js +1 -27
  129. package/dist/esm/cache/index.js +2 -15
  130. package/dist/esm/common/browser.js +18 -0
  131. package/dist/esm/common/env.js +7 -19
  132. package/dist/esm/common/node.js +10 -21
  133. package/dist/esm/common/settings.js +2 -2
  134. package/dist/esm/sandbox/filesystem/filesystem.js +13 -14
  135. package/dist/esm/sandbox/sandbox.js +2 -2
  136. package/dist/esm-browser/.tsbuildinfo +1 -0
  137. package/dist/esm-browser/agents/index.js +104 -0
  138. package/dist/esm-browser/authentication/apikey.js +20 -0
  139. package/dist/esm-browser/authentication/clientcredentials.js +81 -0
  140. package/dist/esm-browser/authentication/credentials.js +13 -0
  141. package/dist/esm-browser/authentication/deviceMode.js +66 -0
  142. package/dist/esm-browser/authentication/index.js +56 -0
  143. package/dist/esm-browser/authentication/types.js +1 -0
  144. package/dist/esm-browser/cache/index.js +20 -0
  145. package/dist/esm-browser/client/authentication.js +11 -0
  146. package/dist/esm-browser/client/client.gen.js +5 -0
  147. package/dist/esm-browser/client/client.js +1 -0
  148. package/dist/esm-browser/client/index.js +3 -0
  149. package/dist/esm-browser/client/interceptors.js +14 -0
  150. package/dist/esm-browser/client/sdk.gen.js +1717 -0
  151. package/dist/esm-browser/client/types.gen.js +3 -0
  152. package/dist/esm-browser/common/autoload.js +23 -0
  153. package/dist/esm-browser/common/env.js +51 -0
  154. package/dist/esm-browser/common/errors.js +14 -0
  155. package/dist/esm-browser/common/internal.js +220 -0
  156. package/dist/esm-browser/common/internal.test.js +37 -0
  157. package/dist/esm-browser/common/logger.js +65 -0
  158. package/dist/esm-browser/common/node.js +18 -0
  159. package/dist/esm-browser/common/settings.js +178 -0
  160. package/dist/esm-browser/index.browser.test.js +10 -0
  161. package/dist/esm-browser/index.js +18 -0
  162. package/dist/esm-browser/jobs/index.js +3 -0
  163. package/dist/esm-browser/jobs/jobs.js +86 -0
  164. package/dist/esm-browser/jobs/start.js +62 -0
  165. package/dist/esm-browser/jobs/types.js +1 -0
  166. package/dist/esm-browser/mcp/client.js +231 -0
  167. package/dist/esm-browser/mcp/index.js +2 -0
  168. package/dist/esm-browser/mcp/server.js +176 -0
  169. package/dist/esm-browser/models/index.js +25 -0
  170. package/dist/esm-browser/package.json +1 -0
  171. package/dist/esm-browser/sandbox/action.js +78 -0
  172. package/dist/esm-browser/sandbox/client/client.gen.js +3 -0
  173. package/dist/esm-browser/sandbox/client/index.js +3 -0
  174. package/dist/esm-browser/sandbox/client/sdk.gen.js +270 -0
  175. package/dist/esm-browser/sandbox/client/types.gen.js +2 -0
  176. package/dist/esm-browser/sandbox/filesystem/filesystem.js +236 -0
  177. package/dist/esm-browser/sandbox/filesystem/index.js +2 -0
  178. package/dist/esm-browser/sandbox/filesystem/types.js +1 -0
  179. package/dist/esm-browser/sandbox/index.js +7 -0
  180. package/dist/esm-browser/sandbox/network/index.js +1 -0
  181. package/dist/esm-browser/sandbox/network/network.js +6 -0
  182. package/dist/esm-browser/sandbox/preview.js +141 -0
  183. package/dist/esm-browser/sandbox/process/index.js +1 -0
  184. package/dist/esm-browser/sandbox/process/process.js +185 -0
  185. package/dist/esm-browser/sandbox/sandbox.js +176 -0
  186. package/dist/esm-browser/sandbox/session.js +119 -0
  187. package/dist/esm-browser/sandbox/types.js +76 -0
  188. package/dist/esm-browser/telemetry/telemetry.js +74 -0
  189. package/dist/esm-browser/tools/index.js +44 -0
  190. package/dist/esm-browser/tools/mcpTool.js +249 -0
  191. package/dist/esm-browser/tools/types.js +1 -0
  192. package/dist/esm-browser/tools/zodSchema.js +43 -0
  193. package/dist/esm-browser/volume/index.js +109 -0
  194. package/package.json +16 -4
@@ -0,0 +1,1717 @@
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 executions
555
+ * Returns a list of all executions for a job by name.
556
+ */
557
+ export const listJobExecutions = (options) => {
558
+ return (options.client ?? _heyApiClient).get({
559
+ security: [
560
+ {
561
+ scheme: 'bearer',
562
+ type: 'http'
563
+ }
564
+ ],
565
+ url: '/jobs/{jobId}/executions',
566
+ ...options
567
+ });
568
+ };
569
+ /**
570
+ * Create job execution
571
+ * Creates a new execution for a job by name.
572
+ */
573
+ export const createJobExecution = (options) => {
574
+ return (options.client ?? _heyApiClient).post({
575
+ security: [
576
+ {
577
+ scheme: 'bearer',
578
+ type: 'http'
579
+ }
580
+ ],
581
+ url: '/jobs/{jobId}/executions',
582
+ ...options,
583
+ headers: {
584
+ 'Content-Type': 'application/json',
585
+ ...options?.headers
586
+ }
587
+ });
588
+ };
589
+ /**
590
+ * Delete job execution
591
+ * Stop an execution for a job by name.
592
+ */
593
+ export const deleteJobExecution = (options) => {
594
+ return (options.client ?? _heyApiClient).delete({
595
+ security: [
596
+ {
597
+ scheme: 'bearer',
598
+ type: 'http'
599
+ }
600
+ ],
601
+ url: '/jobs/{jobId}/executions/{executionId}',
602
+ ...options
603
+ });
604
+ };
605
+ /**
606
+ * Get job execution
607
+ * Returns an execution for a job by name.
608
+ */
609
+ export const getJobExecution = (options) => {
610
+ return (options.client ?? _heyApiClient).get({
611
+ security: [
612
+ {
613
+ scheme: 'bearer',
614
+ type: 'http'
615
+ }
616
+ ],
617
+ url: '/jobs/{jobId}/executions/{executionId}',
618
+ ...options
619
+ });
620
+ };
621
+ /**
622
+ * List job revisions
623
+ * Returns revisions for a job by name.
624
+ */
625
+ export const listJobRevisions = (options) => {
626
+ return (options.client ?? _heyApiClient).get({
627
+ security: [
628
+ {
629
+ scheme: 'bearer',
630
+ type: 'http'
631
+ }
632
+ ],
633
+ url: '/jobs/{jobId}/revisions',
634
+ ...options
635
+ });
636
+ };
637
+ /**
638
+ * List locations
639
+ * Returns a list of all locations available with status.
640
+ */
641
+ export const listLocations = (options) => {
642
+ return (options?.client ?? _heyApiClient).get({
643
+ security: [
644
+ {
645
+ scheme: 'bearer',
646
+ type: 'http'
647
+ }
648
+ ],
649
+ url: '/locations',
650
+ ...options
651
+ });
652
+ };
653
+ export const listMcpHubDefinitions = (options) => {
654
+ return (options?.client ?? _heyApiClient).get({
655
+ security: [
656
+ {
657
+ scheme: 'bearer',
658
+ type: 'http'
659
+ }
660
+ ],
661
+ url: '/mcp/hub',
662
+ ...options
663
+ });
664
+ };
665
+ /**
666
+ * List models
667
+ * Returns a list of all models in the workspace.
668
+ */
669
+ export const listModels = (options) => {
670
+ return (options?.client ?? _heyApiClient).get({
671
+ security: [
672
+ {
673
+ scheme: 'bearer',
674
+ type: 'http'
675
+ }
676
+ ],
677
+ url: '/models',
678
+ ...options
679
+ });
680
+ };
681
+ /**
682
+ * Create model
683
+ * Creates a model.
684
+ */
685
+ export const createModel = (options) => {
686
+ return (options.client ?? _heyApiClient).post({
687
+ security: [
688
+ {
689
+ scheme: 'bearer',
690
+ type: 'http'
691
+ }
692
+ ],
693
+ url: '/models',
694
+ ...options,
695
+ headers: {
696
+ 'Content-Type': 'application/json',
697
+ ...options?.headers
698
+ }
699
+ });
700
+ };
701
+ /**
702
+ * Delete model
703
+ * Deletes a model by name.
704
+ */
705
+ export const deleteModel = (options) => {
706
+ return (options.client ?? _heyApiClient).delete({
707
+ security: [
708
+ {
709
+ scheme: 'bearer',
710
+ type: 'http'
711
+ }
712
+ ],
713
+ url: '/models/{modelName}',
714
+ ...options
715
+ });
716
+ };
717
+ /**
718
+ * Get model
719
+ * Returns a model by name.
720
+ */
721
+ export const getModel = (options) => {
722
+ return (options.client ?? _heyApiClient).get({
723
+ security: [
724
+ {
725
+ scheme: 'bearer',
726
+ type: 'http'
727
+ }
728
+ ],
729
+ url: '/models/{modelName}',
730
+ ...options
731
+ });
732
+ };
733
+ /**
734
+ * Create or update model
735
+ * Update a model by name.
736
+ */
737
+ export const updateModel = (options) => {
738
+ return (options.client ?? _heyApiClient).put({
739
+ security: [
740
+ {
741
+ scheme: 'bearer',
742
+ type: 'http'
743
+ }
744
+ ],
745
+ url: '/models/{modelName}',
746
+ ...options,
747
+ headers: {
748
+ 'Content-Type': 'application/json',
749
+ ...options?.headers
750
+ }
751
+ });
752
+ };
753
+ /**
754
+ * List model revisions
755
+ * Returns revisions for a model by name.
756
+ */
757
+ export const listModelRevisions = (options) => {
758
+ return (options.client ?? _heyApiClient).get({
759
+ security: [
760
+ {
761
+ scheme: 'bearer',
762
+ type: 'http'
763
+ }
764
+ ],
765
+ url: '/models/{modelName}/revisions',
766
+ ...options
767
+ });
768
+ };
769
+ /**
770
+ * List policies
771
+ * Returns a list of all policies in the workspace.
772
+ */
773
+ export const listPolicies = (options) => {
774
+ return (options?.client ?? _heyApiClient).get({
775
+ security: [
776
+ {
777
+ scheme: 'bearer',
778
+ type: 'http'
779
+ }
780
+ ],
781
+ url: '/policies',
782
+ ...options
783
+ });
784
+ };
785
+ /**
786
+ * Create policy
787
+ * Creates a policy.
788
+ */
789
+ export const createPolicy = (options) => {
790
+ return (options.client ?? _heyApiClient).post({
791
+ security: [
792
+ {
793
+ scheme: 'bearer',
794
+ type: 'http'
795
+ }
796
+ ],
797
+ url: '/policies',
798
+ ...options,
799
+ headers: {
800
+ 'Content-Type': 'application/json',
801
+ ...options?.headers
802
+ }
803
+ });
804
+ };
805
+ /**
806
+ * Delete policy
807
+ * Deletes a policy by name.
808
+ */
809
+ export const deletePolicy = (options) => {
810
+ return (options.client ?? _heyApiClient).delete({
811
+ security: [
812
+ {
813
+ scheme: 'bearer',
814
+ type: 'http'
815
+ }
816
+ ],
817
+ url: '/policies/{policyName}',
818
+ ...options
819
+ });
820
+ };
821
+ /**
822
+ * Get policy
823
+ * Returns a policy by name.
824
+ */
825
+ export const getPolicy = (options) => {
826
+ return (options.client ?? _heyApiClient).get({
827
+ security: [
828
+ {
829
+ scheme: 'bearer',
830
+ type: 'http'
831
+ }
832
+ ],
833
+ url: '/policies/{policyName}',
834
+ ...options
835
+ });
836
+ };
837
+ /**
838
+ * Update policy
839
+ * Updates a policy.
840
+ */
841
+ export const updatePolicy = (options) => {
842
+ return (options.client ?? _heyApiClient).put({
843
+ security: [
844
+ {
845
+ scheme: 'bearer',
846
+ type: 'http'
847
+ }
848
+ ],
849
+ url: '/policies/{policyName}',
850
+ ...options,
851
+ headers: {
852
+ 'Content-Type': 'application/json',
853
+ ...options?.headers
854
+ }
855
+ });
856
+ };
857
+ /**
858
+ * List all private clusters
859
+ */
860
+ export const listPrivateClusters = (options) => {
861
+ return (options?.client ?? _heyApiClient).get({
862
+ security: [
863
+ {
864
+ scheme: 'bearer',
865
+ type: 'http'
866
+ }
867
+ ],
868
+ url: '/privateclusters',
869
+ ...options
870
+ });
871
+ };
872
+ /**
873
+ * Create private cluster
874
+ */
875
+ export const createPrivateCluster = (options) => {
876
+ return (options?.client ?? _heyApiClient).post({
877
+ security: [
878
+ {
879
+ scheme: 'bearer',
880
+ type: 'http'
881
+ }
882
+ ],
883
+ url: '/privateclusters',
884
+ ...options
885
+ });
886
+ };
887
+ /**
888
+ * Delete private cluster
889
+ */
890
+ export const deletePrivateCluster = (options) => {
891
+ return (options.client ?? _heyApiClient).delete({
892
+ security: [
893
+ {
894
+ scheme: 'bearer',
895
+ type: 'http'
896
+ }
897
+ ],
898
+ url: '/privateclusters/{privateClusterName}',
899
+ ...options
900
+ });
901
+ };
902
+ /**
903
+ * Get private cluster by name
904
+ */
905
+ export const getPrivateCluster = (options) => {
906
+ return (options.client ?? _heyApiClient).get({
907
+ security: [
908
+ {
909
+ scheme: 'bearer',
910
+ type: 'http'
911
+ }
912
+ ],
913
+ url: '/privateclusters/{privateClusterName}',
914
+ ...options
915
+ });
916
+ };
917
+ /**
918
+ * Update private cluster
919
+ */
920
+ export const updatePrivateCluster = (options) => {
921
+ return (options.client ?? _heyApiClient).put({
922
+ security: [
923
+ {
924
+ scheme: 'bearer',
925
+ type: 'http'
926
+ }
927
+ ],
928
+ url: '/privateclusters/{privateClusterName}',
929
+ ...options
930
+ });
931
+ };
932
+ /**
933
+ * Get private cluster health
934
+ */
935
+ export const getPrivateClusterHealth = (options) => {
936
+ return (options.client ?? _heyApiClient).get({
937
+ security: [
938
+ {
939
+ scheme: 'bearer',
940
+ type: 'http'
941
+ }
942
+ ],
943
+ url: '/privateclusters/{privateClusterName}/health',
944
+ ...options
945
+ });
946
+ };
947
+ /**
948
+ * Update private cluster health
949
+ */
950
+ export const updatePrivateClusterHealth = (options) => {
951
+ return (options.client ?? _heyApiClient).post({
952
+ security: [
953
+ {
954
+ scheme: 'bearer',
955
+ type: 'http'
956
+ }
957
+ ],
958
+ url: '/privateclusters/{privateClusterName}/health',
959
+ ...options
960
+ });
961
+ };
962
+ /**
963
+ * List pending invitations
964
+ * Returns a list of all pending invitations in the workspace.
965
+ */
966
+ export const listAllPendingInvitations = (options) => {
967
+ return (options?.client ?? _heyApiClient).get({
968
+ security: [
969
+ {
970
+ scheme: 'bearer',
971
+ type: 'http'
972
+ }
973
+ ],
974
+ url: '/profile/invitations',
975
+ ...options
976
+ });
977
+ };
978
+ /**
979
+ * List public ips
980
+ * Returns a list of all public ips used in Blaxel..
981
+ */
982
+ export const listPublicIps = (options) => {
983
+ return (options?.client ?? _heyApiClient).get({
984
+ security: [
985
+ {
986
+ scheme: 'bearer',
987
+ type: 'http'
988
+ }
989
+ ],
990
+ url: '/publicIps',
991
+ ...options
992
+ });
993
+ };
994
+ export const listSandboxHubDefinitions = (options) => {
995
+ return (options?.client ?? _heyApiClient).get({
996
+ security: [
997
+ {
998
+ scheme: 'bearer',
999
+ type: 'http'
1000
+ }
1001
+ ],
1002
+ url: '/sandbox/hub',
1003
+ ...options
1004
+ });
1005
+ };
1006
+ /**
1007
+ * List Sandboxes
1008
+ * Returns a list of all Sandboxes in the workspace.
1009
+ */
1010
+ export const listSandboxes = (options) => {
1011
+ return (options?.client ?? _heyApiClient).get({
1012
+ security: [
1013
+ {
1014
+ scheme: 'bearer',
1015
+ type: 'http'
1016
+ }
1017
+ ],
1018
+ url: '/sandboxes',
1019
+ ...options
1020
+ });
1021
+ };
1022
+ /**
1023
+ * Create Sandbox
1024
+ * Creates a Sandbox.
1025
+ */
1026
+ export const createSandbox = (options) => {
1027
+ return (options.client ?? _heyApiClient).post({
1028
+ security: [
1029
+ {
1030
+ scheme: 'bearer',
1031
+ type: 'http'
1032
+ }
1033
+ ],
1034
+ url: '/sandboxes',
1035
+ ...options,
1036
+ headers: {
1037
+ 'Content-Type': 'application/json',
1038
+ ...options?.headers
1039
+ }
1040
+ });
1041
+ };
1042
+ /**
1043
+ * Delete Sandbox
1044
+ * Deletes a Sandbox by name.
1045
+ */
1046
+ export const deleteSandbox = (options) => {
1047
+ return (options.client ?? _heyApiClient).delete({
1048
+ security: [
1049
+ {
1050
+ scheme: 'bearer',
1051
+ type: 'http'
1052
+ }
1053
+ ],
1054
+ url: '/sandboxes/{sandboxName}',
1055
+ ...options
1056
+ });
1057
+ };
1058
+ /**
1059
+ * Get Sandbox
1060
+ * Returns a Sandbox by name.
1061
+ */
1062
+ export const getSandbox = (options) => {
1063
+ return (options.client ?? _heyApiClient).get({
1064
+ security: [
1065
+ {
1066
+ scheme: 'bearer',
1067
+ type: 'http'
1068
+ }
1069
+ ],
1070
+ url: '/sandboxes/{sandboxName}',
1071
+ ...options
1072
+ });
1073
+ };
1074
+ /**
1075
+ * Update Sandbox
1076
+ * Update a Sandbox by name.
1077
+ */
1078
+ export const updateSandbox = (options) => {
1079
+ return (options.client ?? _heyApiClient).put({
1080
+ security: [
1081
+ {
1082
+ scheme: 'bearer',
1083
+ type: 'http'
1084
+ }
1085
+ ],
1086
+ url: '/sandboxes/{sandboxName}',
1087
+ ...options,
1088
+ headers: {
1089
+ 'Content-Type': 'application/json',
1090
+ ...options?.headers
1091
+ }
1092
+ });
1093
+ };
1094
+ /**
1095
+ * List Sandboxes
1096
+ * Returns a list of Sandbox Previews in the workspace.
1097
+ */
1098
+ export const listSandboxPreviews = (options) => {
1099
+ return (options.client ?? _heyApiClient).get({
1100
+ security: [
1101
+ {
1102
+ scheme: 'bearer',
1103
+ type: 'http'
1104
+ }
1105
+ ],
1106
+ url: '/sandboxes/{sandboxName}/previews',
1107
+ ...options
1108
+ });
1109
+ };
1110
+ /**
1111
+ * Create Sandbox Preview
1112
+ * Create a preview
1113
+ */
1114
+ export const createSandboxPreview = (options) => {
1115
+ return (options.client ?? _heyApiClient).post({
1116
+ security: [
1117
+ {
1118
+ scheme: 'bearer',
1119
+ type: 'http'
1120
+ }
1121
+ ],
1122
+ url: '/sandboxes/{sandboxName}/previews',
1123
+ ...options,
1124
+ headers: {
1125
+ 'Content-Type': 'application/json',
1126
+ ...options?.headers
1127
+ }
1128
+ });
1129
+ };
1130
+ /**
1131
+ * Delete Sandbox Preview
1132
+ * Deletes a Sandbox Preview by name.
1133
+ */
1134
+ export const deleteSandboxPreview = (options) => {
1135
+ return (options.client ?? _heyApiClient).delete({
1136
+ security: [
1137
+ {
1138
+ scheme: 'bearer',
1139
+ type: 'http'
1140
+ }
1141
+ ],
1142
+ url: '/sandboxes/{sandboxName}/previews/{previewName}',
1143
+ ...options
1144
+ });
1145
+ };
1146
+ /**
1147
+ * Get Sandbox Preview
1148
+ * Returns a Sandbox Preview by name.
1149
+ */
1150
+ export const getSandboxPreview = (options) => {
1151
+ return (options.client ?? _heyApiClient).get({
1152
+ security: [
1153
+ {
1154
+ scheme: 'bearer',
1155
+ type: 'http'
1156
+ }
1157
+ ],
1158
+ url: '/sandboxes/{sandboxName}/previews/{previewName}',
1159
+ ...options
1160
+ });
1161
+ };
1162
+ /**
1163
+ * Update Sandbox Preview
1164
+ * Updates a Sandbox Preview by name.
1165
+ */
1166
+ export const updateSandboxPreview = (options) => {
1167
+ return (options.client ?? _heyApiClient).put({
1168
+ security: [
1169
+ {
1170
+ scheme: 'bearer',
1171
+ type: 'http'
1172
+ }
1173
+ ],
1174
+ url: '/sandboxes/{sandboxName}/previews/{previewName}',
1175
+ ...options,
1176
+ headers: {
1177
+ 'Content-Type': 'application/json',
1178
+ ...options?.headers
1179
+ }
1180
+ });
1181
+ };
1182
+ /**
1183
+ * Get tokens for Sandbox Preview
1184
+ * Gets tokens for a Sandbox Preview.
1185
+ */
1186
+ export const listSandboxPreviewTokens = (options) => {
1187
+ return (options.client ?? _heyApiClient).get({
1188
+ security: [
1189
+ {
1190
+ scheme: 'bearer',
1191
+ type: 'http'
1192
+ }
1193
+ ],
1194
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens',
1195
+ ...options
1196
+ });
1197
+ };
1198
+ /**
1199
+ * Create token for Sandbox Preview
1200
+ * Creates a token for a Sandbox Preview.
1201
+ */
1202
+ export const createSandboxPreviewToken = (options) => {
1203
+ return (options.client ?? _heyApiClient).post({
1204
+ security: [
1205
+ {
1206
+ scheme: 'bearer',
1207
+ type: 'http'
1208
+ }
1209
+ ],
1210
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens',
1211
+ ...options,
1212
+ headers: {
1213
+ 'Content-Type': 'application/json',
1214
+ ...options?.headers
1215
+ }
1216
+ });
1217
+ };
1218
+ /**
1219
+ * Delete token for Sandbox Preview
1220
+ * Deletes a token for a Sandbox Preview by name.
1221
+ */
1222
+ export const deleteSandboxPreviewToken = (options) => {
1223
+ return (options.client ?? _heyApiClient).delete({
1224
+ security: [
1225
+ {
1226
+ scheme: 'bearer',
1227
+ type: 'http'
1228
+ }
1229
+ ],
1230
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens/{tokenName}',
1231
+ ...options
1232
+ });
1233
+ };
1234
+ /**
1235
+ * Start Sandbox
1236
+ * Starts a Sandbox by name.
1237
+ */
1238
+ export const startSandbox = (options) => {
1239
+ return (options.client ?? _heyApiClient).put({
1240
+ security: [
1241
+ {
1242
+ scheme: 'bearer',
1243
+ type: 'http'
1244
+ }
1245
+ ],
1246
+ url: '/sandboxes/{sandboxName}/start',
1247
+ ...options
1248
+ });
1249
+ };
1250
+ /**
1251
+ * Stop Sandbox
1252
+ * Stops a Sandbox by name.
1253
+ */
1254
+ export const stopSandbox = (options) => {
1255
+ return (options.client ?? _heyApiClient).put({
1256
+ security: [
1257
+ {
1258
+ scheme: 'bearer',
1259
+ type: 'http'
1260
+ }
1261
+ ],
1262
+ url: '/sandboxes/{sandboxName}/stop',
1263
+ ...options
1264
+ });
1265
+ };
1266
+ /**
1267
+ * Get workspace service accounts
1268
+ * Returns a list of all service accounts in the workspace.
1269
+ */
1270
+ export const getWorkspaceServiceAccounts = (options) => {
1271
+ return (options?.client ?? _heyApiClient).get({
1272
+ security: [
1273
+ {
1274
+ scheme: 'bearer',
1275
+ type: 'http'
1276
+ }
1277
+ ],
1278
+ url: '/service_accounts',
1279
+ ...options
1280
+ });
1281
+ };
1282
+ /**
1283
+ * Create workspace service account
1284
+ * Creates a service account in the workspace.
1285
+ */
1286
+ export const createWorkspaceServiceAccount = (options) => {
1287
+ return (options.client ?? _heyApiClient).post({
1288
+ security: [
1289
+ {
1290
+ scheme: 'bearer',
1291
+ type: 'http'
1292
+ }
1293
+ ],
1294
+ url: '/service_accounts',
1295
+ ...options,
1296
+ headers: {
1297
+ 'Content-Type': 'application/json',
1298
+ ...options?.headers
1299
+ }
1300
+ });
1301
+ };
1302
+ /**
1303
+ * Delete workspace service account
1304
+ * Deletes a service account.
1305
+ */
1306
+ export const deleteWorkspaceServiceAccount = (options) => {
1307
+ return (options.client ?? _heyApiClient).delete({
1308
+ security: [
1309
+ {
1310
+ scheme: 'bearer',
1311
+ type: 'http'
1312
+ }
1313
+ ],
1314
+ url: '/service_accounts/{clientId}',
1315
+ ...options
1316
+ });
1317
+ };
1318
+ /**
1319
+ * Update workspace service account
1320
+ * Updates a service account.
1321
+ */
1322
+ export const updateWorkspaceServiceAccount = (options) => {
1323
+ return (options.client ?? _heyApiClient).put({
1324
+ security: [
1325
+ {
1326
+ scheme: 'bearer',
1327
+ type: 'http'
1328
+ }
1329
+ ],
1330
+ url: '/service_accounts/{clientId}',
1331
+ ...options,
1332
+ headers: {
1333
+ 'Content-Type': 'application/json',
1334
+ ...options?.headers
1335
+ }
1336
+ });
1337
+ };
1338
+ /**
1339
+ * List API keys for service account
1340
+ * Returns a list of all API keys for a service account.
1341
+ */
1342
+ export const listApiKeysForServiceAccount = (options) => {
1343
+ return (options.client ?? _heyApiClient).get({
1344
+ security: [
1345
+ {
1346
+ scheme: 'bearer',
1347
+ type: 'http'
1348
+ }
1349
+ ],
1350
+ url: '/service_accounts/{clientId}/api_keys',
1351
+ ...options
1352
+ });
1353
+ };
1354
+ /**
1355
+ * Create API key for service account
1356
+ * Creates an API key for a service account.
1357
+ */
1358
+ export const createApiKeyForServiceAccount = (options) => {
1359
+ return (options.client ?? _heyApiClient).post({
1360
+ security: [
1361
+ {
1362
+ scheme: 'bearer',
1363
+ type: 'http'
1364
+ }
1365
+ ],
1366
+ url: '/service_accounts/{clientId}/api_keys',
1367
+ ...options,
1368
+ headers: {
1369
+ 'Content-Type': 'application/json',
1370
+ ...options?.headers
1371
+ }
1372
+ });
1373
+ };
1374
+ /**
1375
+ * Delete API key for service account
1376
+ * Deletes an API key for a service account.
1377
+ */
1378
+ export const deleteApiKeyForServiceAccount = (options) => {
1379
+ return (options.client ?? _heyApiClient).delete({
1380
+ security: [
1381
+ {
1382
+ scheme: 'bearer',
1383
+ type: 'http'
1384
+ }
1385
+ ],
1386
+ url: '/service_accounts/{clientId}/api_keys/{apiKeyId}',
1387
+ ...options
1388
+ });
1389
+ };
1390
+ /**
1391
+ * List templates
1392
+ * Returns a list of all templates.
1393
+ */
1394
+ export const listTemplates = (options) => {
1395
+ return (options?.client ?? _heyApiClient).get({
1396
+ security: [
1397
+ {
1398
+ scheme: 'bearer',
1399
+ type: 'http'
1400
+ }
1401
+ ],
1402
+ url: '/templates',
1403
+ ...options
1404
+ });
1405
+ };
1406
+ /**
1407
+ * Get template
1408
+ * Returns a template by name.
1409
+ */
1410
+ export const getTemplate = (options) => {
1411
+ return (options.client ?? _heyApiClient).get({
1412
+ security: [
1413
+ {
1414
+ scheme: 'bearer',
1415
+ type: 'http'
1416
+ }
1417
+ ],
1418
+ url: '/templates/{templateName}',
1419
+ ...options
1420
+ });
1421
+ };
1422
+ /**
1423
+ * List users in workspace
1424
+ * Returns a list of all users in the workspace.
1425
+ */
1426
+ export const listWorkspaceUsers = (options) => {
1427
+ return (options?.client ?? _heyApiClient).get({
1428
+ security: [
1429
+ {
1430
+ scheme: 'bearer',
1431
+ type: 'http'
1432
+ }
1433
+ ],
1434
+ url: '/users',
1435
+ ...options
1436
+ });
1437
+ };
1438
+ /**
1439
+ * Invite user to workspace
1440
+ * Invites a user to the workspace by email.
1441
+ */
1442
+ export const inviteWorkspaceUser = (options) => {
1443
+ return (options.client ?? _heyApiClient).post({
1444
+ security: [
1445
+ {
1446
+ scheme: 'bearer',
1447
+ type: 'http'
1448
+ }
1449
+ ],
1450
+ url: '/users',
1451
+ ...options,
1452
+ headers: {
1453
+ 'Content-Type': 'application/json',
1454
+ ...options?.headers
1455
+ }
1456
+ });
1457
+ };
1458
+ /**
1459
+ * Remove user from workspace or revoke invitation
1460
+ * Removes a user from the workspace (or revokes an invitation if the user has not accepted the invitation yet).
1461
+ */
1462
+ export const removeWorkspaceUser = (options) => {
1463
+ return (options.client ?? _heyApiClient).delete({
1464
+ security: [
1465
+ {
1466
+ scheme: 'bearer',
1467
+ type: 'http'
1468
+ }
1469
+ ],
1470
+ url: '/users/{subOrEmail}',
1471
+ ...options
1472
+ });
1473
+ };
1474
+ /**
1475
+ * Update user role in workspace
1476
+ * Updates the role of a user in the workspace.
1477
+ */
1478
+ export const updateWorkspaceUserRole = (options) => {
1479
+ return (options.client ?? _heyApiClient).put({
1480
+ security: [
1481
+ {
1482
+ scheme: 'bearer',
1483
+ type: 'http'
1484
+ }
1485
+ ],
1486
+ url: '/users/{subOrEmail}',
1487
+ ...options,
1488
+ headers: {
1489
+ 'Content-Type': 'application/json',
1490
+ ...options?.headers
1491
+ }
1492
+ });
1493
+ };
1494
+ /**
1495
+ * List volumes
1496
+ * Returns a list of all volumes in the workspace.
1497
+ */
1498
+ export const listVolumes = (options) => {
1499
+ return (options?.client ?? _heyApiClient).get({
1500
+ security: [
1501
+ {
1502
+ scheme: 'bearer',
1503
+ type: 'http'
1504
+ }
1505
+ ],
1506
+ url: '/volumes',
1507
+ ...options
1508
+ });
1509
+ };
1510
+ /**
1511
+ * Create volume
1512
+ * Creates a volume.
1513
+ */
1514
+ export const createVolume = (options) => {
1515
+ return (options.client ?? _heyApiClient).post({
1516
+ security: [
1517
+ {
1518
+ scheme: 'bearer',
1519
+ type: 'http'
1520
+ }
1521
+ ],
1522
+ url: '/volumes',
1523
+ ...options,
1524
+ headers: {
1525
+ 'Content-Type': 'application/json',
1526
+ ...options?.headers
1527
+ }
1528
+ });
1529
+ };
1530
+ /**
1531
+ * Delete volume
1532
+ * Deletes a volume by name.
1533
+ */
1534
+ export const deleteVolume = (options) => {
1535
+ return (options.client ?? _heyApiClient).delete({
1536
+ security: [
1537
+ {
1538
+ scheme: 'bearer',
1539
+ type: 'http'
1540
+ }
1541
+ ],
1542
+ url: '/volumes/{volumeName}',
1543
+ ...options
1544
+ });
1545
+ };
1546
+ /**
1547
+ * Get volume
1548
+ * Returns a volume by name.
1549
+ */
1550
+ export const getVolume = (options) => {
1551
+ return (options.client ?? _heyApiClient).get({
1552
+ security: [
1553
+ {
1554
+ scheme: 'bearer',
1555
+ type: 'http'
1556
+ }
1557
+ ],
1558
+ url: '/volumes/{volumeName}',
1559
+ ...options
1560
+ });
1561
+ };
1562
+ /**
1563
+ * List workspaces
1564
+ * Returns a list of all workspaces.
1565
+ */
1566
+ export const listWorkspaces = (options) => {
1567
+ return (options?.client ?? _heyApiClient).get({
1568
+ security: [
1569
+ {
1570
+ scheme: 'bearer',
1571
+ type: 'http'
1572
+ }
1573
+ ],
1574
+ url: '/workspaces',
1575
+ ...options
1576
+ });
1577
+ };
1578
+ /**
1579
+ * Create worspace
1580
+ * Creates a workspace.
1581
+ */
1582
+ export const createWorspace = (options) => {
1583
+ return (options.client ?? _heyApiClient).post({
1584
+ security: [
1585
+ {
1586
+ scheme: 'bearer',
1587
+ type: 'http'
1588
+ }
1589
+ ],
1590
+ url: '/workspaces',
1591
+ ...options,
1592
+ headers: {
1593
+ 'Content-Type': 'application/json',
1594
+ ...options?.headers
1595
+ }
1596
+ });
1597
+ };
1598
+ /**
1599
+ * Delete workspace
1600
+ * Deletes a workspace by name.
1601
+ */
1602
+ export const deleteWorkspace = (options) => {
1603
+ return (options.client ?? _heyApiClient).delete({
1604
+ security: [
1605
+ {
1606
+ scheme: 'bearer',
1607
+ type: 'http'
1608
+ }
1609
+ ],
1610
+ url: '/workspaces/{workspaceName}',
1611
+ ...options
1612
+ });
1613
+ };
1614
+ /**
1615
+ * Get workspace
1616
+ * Returns a workspace by name.
1617
+ */
1618
+ export const getWorkspace = (options) => {
1619
+ return (options.client ?? _heyApiClient).get({
1620
+ security: [
1621
+ {
1622
+ scheme: 'bearer',
1623
+ type: 'http'
1624
+ }
1625
+ ],
1626
+ url: '/workspaces/{workspaceName}',
1627
+ ...options
1628
+ });
1629
+ };
1630
+ /**
1631
+ * Update workspace
1632
+ * Updates a workspace by name.
1633
+ */
1634
+ export const updateWorkspace = (options) => {
1635
+ return (options.client ?? _heyApiClient).put({
1636
+ security: [
1637
+ {
1638
+ scheme: 'bearer',
1639
+ type: 'http'
1640
+ }
1641
+ ],
1642
+ url: '/workspaces/{workspaceName}',
1643
+ ...options,
1644
+ headers: {
1645
+ 'Content-Type': 'application/json',
1646
+ ...options?.headers
1647
+ }
1648
+ });
1649
+ };
1650
+ /**
1651
+ * Decline invitation to workspace
1652
+ * Declines an invitation to a workspace.
1653
+ */
1654
+ export const declineWorkspaceInvitation = (options) => {
1655
+ return (options.client ?? _heyApiClient).post({
1656
+ security: [
1657
+ {
1658
+ scheme: 'bearer',
1659
+ type: 'http'
1660
+ }
1661
+ ],
1662
+ url: '/workspaces/{workspaceName}/decline',
1663
+ ...options
1664
+ });
1665
+ };
1666
+ /**
1667
+ * Accept invitation to workspace
1668
+ * Accepts an invitation to a workspace.
1669
+ */
1670
+ export const acceptWorkspaceInvitation = (options) => {
1671
+ return (options.client ?? _heyApiClient).post({
1672
+ security: [
1673
+ {
1674
+ scheme: 'bearer',
1675
+ type: 'http'
1676
+ }
1677
+ ],
1678
+ url: '/workspaces/{workspaceName}/join',
1679
+ ...options
1680
+ });
1681
+ };
1682
+ /**
1683
+ * Leave workspace
1684
+ * Leaves a workspace.
1685
+ */
1686
+ export const leaveWorkspace = (options) => {
1687
+ return (options.client ?? _heyApiClient).delete({
1688
+ security: [
1689
+ {
1690
+ scheme: 'bearer',
1691
+ type: 'http'
1692
+ }
1693
+ ],
1694
+ url: '/workspaces/{workspaceName}/leave',
1695
+ ...options
1696
+ });
1697
+ };
1698
+ /**
1699
+ * Check workspace availability
1700
+ * Check if a workspace is available.
1701
+ */
1702
+ export const checkWorkspaceAvailability = (options) => {
1703
+ return (options.client ?? _heyApiClient).post({
1704
+ security: [
1705
+ {
1706
+ scheme: 'bearer',
1707
+ type: 'http'
1708
+ }
1709
+ ],
1710
+ url: '/workspaces/availability',
1711
+ ...options,
1712
+ headers: {
1713
+ 'Content-Type': 'application/json',
1714
+ ...options?.headers
1715
+ }
1716
+ });
1717
+ };