@blaxel/core 0.2.49-dev.213 → 0.2.49-dev1

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