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