@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,4546 @@
1
+ /**
2
+ * ACL
3
+ */
4
+ export type Acl = TimeFields & {
5
+ /**
6
+ * ACL id
7
+ */
8
+ id?: string;
9
+ /**
10
+ * Resource ID
11
+ */
12
+ resource_id?: string;
13
+ /**
14
+ * Resource type
15
+ */
16
+ resource_type?: string;
17
+ /**
18
+ * Role
19
+ */
20
+ role?: string;
21
+ /**
22
+ * Subject ID
23
+ */
24
+ subject_id?: string;
25
+ /**
26
+ * Subject type
27
+ */
28
+ subject_type?: string;
29
+ /**
30
+ * Workspace name
31
+ */
32
+ workspace?: string;
33
+ };
34
+ /**
35
+ * Agent
36
+ */
37
+ export type Agent = {
38
+ events?: CoreEvents;
39
+ metadata?: Metadata;
40
+ spec?: AgentSpec;
41
+ /**
42
+ * Agent status
43
+ */
44
+ status?: string;
45
+ };
46
+ /**
47
+ * Agent specification
48
+ */
49
+ export type AgentSpec = CoreSpec & {
50
+ /**
51
+ * Description, small description computed from the prompt
52
+ */
53
+ description?: string;
54
+ repository?: Repository;
55
+ triggers?: Triggers;
56
+ };
57
+ /**
58
+ * Long-lived API key for accessing Blaxel
59
+ */
60
+ export type ApiKey = TimeFields & OwnerFields & {
61
+ /**
62
+ * Api key
63
+ */
64
+ apiKey?: string;
65
+ /**
66
+ * Duration until expiration (in seconds)
67
+ */
68
+ expires_in?: string;
69
+ /**
70
+ * Api key id, to retrieve it from the API
71
+ */
72
+ id?: string;
73
+ /**
74
+ * Name for the API key
75
+ */
76
+ name?: string;
77
+ /**
78
+ * User subject identifier
79
+ */
80
+ sub?: string;
81
+ /**
82
+ * Subject type
83
+ */
84
+ sub_type?: string;
85
+ };
86
+ /**
87
+ * Array of metrics
88
+ */
89
+ export type ArrayMetric = Array<Metric>;
90
+ /**
91
+ * Billable time metric
92
+ */
93
+ export type BillableTimeMetric = {
94
+ /**
95
+ * Billable time
96
+ */
97
+ billableTime?: number;
98
+ /**
99
+ * Total memory allocation in GB-seconds
100
+ */
101
+ totalAllocation?: number;
102
+ };
103
+ /**
104
+ * Configuration
105
+ */
106
+ export type Configuration = {
107
+ /**
108
+ * Continents
109
+ */
110
+ continents?: Array<unknown>;
111
+ /**
112
+ * Countries
113
+ */
114
+ countries?: Array<unknown>;
115
+ /**
116
+ * Private locations managed with blaxel operator
117
+ */
118
+ privateLocations?: Array<unknown>;
119
+ };
120
+ /**
121
+ * Continent
122
+ */
123
+ export type Continent = {
124
+ /**
125
+ * Continent display name
126
+ */
127
+ displayName?: string;
128
+ /**
129
+ * Continent code
130
+ */
131
+ name?: string;
132
+ };
133
+ /**
134
+ * Core event
135
+ */
136
+ export type CoreEvent = {
137
+ /**
138
+ * Event message
139
+ */
140
+ message?: string;
141
+ /**
142
+ * RevisionID link to the event
143
+ */
144
+ revision?: string;
145
+ /**
146
+ * Event status
147
+ */
148
+ status?: string;
149
+ /**
150
+ * Event time
151
+ */
152
+ time?: string;
153
+ /**
154
+ * Event type
155
+ */
156
+ type?: string;
157
+ };
158
+ /**
159
+ * Core events
160
+ */
161
+ export type CoreEvents = Array<CoreEvent>;
162
+ /**
163
+ * Core specification
164
+ */
165
+ export type CoreSpec = {
166
+ /**
167
+ * Optional configurations for the object
168
+ */
169
+ configurations?: {
170
+ key?: SpecConfiguration;
171
+ };
172
+ /**
173
+ * Enable or disable the resource
174
+ */
175
+ enabled?: boolean;
176
+ flavors?: Flavors;
177
+ integrationConnections?: IntegrationConnectionsList;
178
+ policies?: PoliciesList;
179
+ privateClusters?: ModelPrivateCluster;
180
+ revision?: RevisionConfiguration;
181
+ runtime?: Runtime;
182
+ /**
183
+ * Sandbox mode
184
+ */
185
+ sandbox?: boolean;
186
+ };
187
+ /**
188
+ * Configuration
189
+ */
190
+ export type Country = {
191
+ /**
192
+ * Country display name
193
+ */
194
+ displayName?: string;
195
+ /**
196
+ * Country code
197
+ */
198
+ name?: string;
199
+ };
200
+ /**
201
+ * Custom domain for preview deployments
202
+ * The custom domain represents a base domain (e.g., example.com) that will be used
203
+ * to serve preview deployments. Each preview will be accessible at a subdomain:
204
+ * <preview-id>.preview.<base-domain> (e.g., abc123.preview.example.com)
205
+ */
206
+ export type CustomDomain = {
207
+ metadata?: CustomDomainMetadata;
208
+ spec?: CustomDomainSpec;
209
+ };
210
+ /**
211
+ * Custom domain metadata
212
+ */
213
+ export type CustomDomainMetadata = TimeFields & OwnerFields & {
214
+ /**
215
+ * Display name for the custom domain
216
+ */
217
+ displayName?: string;
218
+ labels?: MetadataLabels;
219
+ /**
220
+ * Domain name (e.g., "example.com")
221
+ */
222
+ name?: string;
223
+ /**
224
+ * Workspace name
225
+ */
226
+ workspace?: string;
227
+ };
228
+ /**
229
+ * Custom domain specification
230
+ */
231
+ export type CustomDomainSpec = {
232
+ /**
233
+ * CNAME target for the domain
234
+ */
235
+ cnameRecords?: string;
236
+ /**
237
+ * Last verification attempt timestamp
238
+ */
239
+ lastVerifiedAt?: string;
240
+ /**
241
+ * Region that the custom domain is associated with
242
+ */
243
+ region?: string;
244
+ /**
245
+ * Current status of the domain (pending, verified, failed)
246
+ */
247
+ status?: string;
248
+ /**
249
+ * Map of TXT record names to values for domain verification
250
+ */
251
+ txtRecords?: {
252
+ [key: string]: string;
253
+ };
254
+ /**
255
+ * Error message if verification failed
256
+ */
257
+ verificationError?: string;
258
+ };
259
+ /**
260
+ * Entrypoint of the artifact
261
+ */
262
+ export type Entrypoint = {
263
+ /**
264
+ * Args of the entrypoint
265
+ */
266
+ args?: Array<unknown>;
267
+ /**
268
+ * Command of the entrypoint
269
+ */
270
+ command?: string;
271
+ /**
272
+ * Env of the entrypoint
273
+ */
274
+ env?: {
275
+ [key: string]: unknown;
276
+ };
277
+ /**
278
+ * Super Gateway args of the entrypoint
279
+ */
280
+ superGatewayArgs?: Array<unknown>;
281
+ };
282
+ /**
283
+ * A type of hardware available for deployments
284
+ */
285
+ export type Flavor = {
286
+ /**
287
+ * Flavor name (e.g. t4)
288
+ */
289
+ name?: string;
290
+ /**
291
+ * Flavor type (e.g. cpu, gpu)
292
+ */
293
+ type?: string;
294
+ };
295
+ /**
296
+ * Types of hardware available for deployments
297
+ */
298
+ export type Flavors = Array<Flavor>;
299
+ /**
300
+ * Form of the artifact
301
+ */
302
+ export type Form = {
303
+ /**
304
+ * Config of the artifact
305
+ */
306
+ config?: {
307
+ [key: string]: unknown;
308
+ };
309
+ /**
310
+ * OAuth of the artifact
311
+ */
312
+ oauth?: {
313
+ [key: string]: unknown;
314
+ };
315
+ /**
316
+ * Secrets of the artifact
317
+ */
318
+ secrets?: {
319
+ [key: string]: unknown;
320
+ };
321
+ };
322
+ /**
323
+ * Function
324
+ */
325
+ export type _Function = {
326
+ events?: CoreEvents;
327
+ metadata?: Metadata;
328
+ spec?: FunctionSpec;
329
+ /**
330
+ * Function status
331
+ */
332
+ status?: string;
333
+ };
334
+ /**
335
+ * Function kit
336
+ */
337
+ export type FunctionKit = {
338
+ /**
339
+ * Description of the function kit, very important for the agent to work with your kit
340
+ */
341
+ description?: string;
342
+ /**
343
+ * The kit name, very important for the agent to work with your kit
344
+ */
345
+ name?: string;
346
+ schema?: FunctionSchema;
347
+ };
348
+ /**
349
+ * Function schema
350
+ */
351
+ export type FunctionSchema = {
352
+ /**
353
+ * List of schemas that this schema extends
354
+ */
355
+ allOf?: Array<unknown>;
356
+ /**
357
+ * List of possible schemas, any of which this schema could be
358
+ */
359
+ anyOf?: Array<unknown>;
360
+ /**
361
+ * Description of the schema
362
+ */
363
+ description?: string;
364
+ /**
365
+ * Enum values
366
+ */
367
+ enum?: Array<string>;
368
+ /**
369
+ * Format of the schema
370
+ */
371
+ format?: string;
372
+ items?: FunctionSchema;
373
+ /**
374
+ * Maximum length for string types
375
+ */
376
+ maxLength?: number;
377
+ /**
378
+ * Maximum value for number types
379
+ */
380
+ maximum?: number;
381
+ /**
382
+ * Minimum length for string types
383
+ */
384
+ minLength?: number;
385
+ /**
386
+ * Minimum value for number types
387
+ */
388
+ minimum?: number;
389
+ /**
390
+ * Schema that this schema must not be
391
+ */
392
+ not?: {
393
+ [key: string]: unknown;
394
+ };
395
+ /**
396
+ * List of schemas, one of which this schema must be
397
+ */
398
+ oneOf?: Array<unknown>;
399
+ /**
400
+ * Pattern for string types
401
+ */
402
+ pattern?: string;
403
+ /**
404
+ * Properties of the schema
405
+ */
406
+ properties?: {
407
+ [key: string]: FunctionSchema;
408
+ };
409
+ /**
410
+ * Required properties of the schema
411
+ */
412
+ required?: Array<string>;
413
+ /**
414
+ * Title of the schema
415
+ */
416
+ title?: string;
417
+ /**
418
+ * Type of the schema
419
+ */
420
+ type?: string;
421
+ };
422
+ /**
423
+ * Helper type for AdditionalProperties which can be either a boolean or a schema
424
+ */
425
+ export type FunctionSchemaOrBool = {
426
+ [key: string]: unknown;
427
+ };
428
+ /**
429
+ * Function specification
430
+ */
431
+ export type FunctionSpec = CoreSpec & {
432
+ /**
433
+ * Function description, very important for the agent function to work with an LLM
434
+ */
435
+ description?: string;
436
+ schema?: FunctionSchema;
437
+ triggers?: Triggers;
438
+ };
439
+ /**
440
+ * Histogram bucket
441
+ */
442
+ export type HistogramBucket = {
443
+ /**
444
+ * Count
445
+ */
446
+ count?: number;
447
+ /**
448
+ * End
449
+ */
450
+ end?: number;
451
+ /**
452
+ * Start
453
+ */
454
+ start?: number;
455
+ };
456
+ /**
457
+ * Histogram stats
458
+ */
459
+ export type HistogramStats = {
460
+ /**
461
+ * Average request duration
462
+ */
463
+ average?: number;
464
+ /**
465
+ * P50 request duration
466
+ */
467
+ p50?: number;
468
+ /**
469
+ * P90 request duration
470
+ */
471
+ p90?: number;
472
+ /**
473
+ * P99 request duration
474
+ */
475
+ p99?: number;
476
+ };
477
+ /**
478
+ * Integration
479
+ */
480
+ export type Integration = {
481
+ /**
482
+ * Integration additional infos
483
+ */
484
+ additionalInfos?: {
485
+ [key: string]: string;
486
+ };
487
+ endpoints?: IntegrationEndpoints;
488
+ headers?: IntegrationHeaders;
489
+ /**
490
+ * Integration name
491
+ */
492
+ name?: string;
493
+ /**
494
+ * Integration organizations
495
+ */
496
+ organizations?: Array<IntegrationOrganization>;
497
+ params?: IntegrationQueryParams;
498
+ /**
499
+ * Integration repositories
500
+ */
501
+ repositories?: Array<IntegrationRepository>;
502
+ };
503
+ /**
504
+ * Integration Connection
505
+ */
506
+ export type IntegrationConnection = {
507
+ metadata?: Metadata;
508
+ spec?: IntegrationConnectionSpec;
509
+ };
510
+ /**
511
+ * Integration connection specification
512
+ */
513
+ export type IntegrationConnectionSpec = {
514
+ /**
515
+ * Additional configuration for the integration
516
+ */
517
+ config?: {
518
+ [key: string]: string;
519
+ };
520
+ /**
521
+ * Integration type
522
+ */
523
+ integration?: string;
524
+ /**
525
+ * Sandbox mode
526
+ */
527
+ sandbox?: boolean;
528
+ /**
529
+ * Integration secret
530
+ */
531
+ secret?: {
532
+ [key: string]: string;
533
+ };
534
+ };
535
+ export type IntegrationConnectionsList = Array<string>;
536
+ /**
537
+ * Integration endpoint
538
+ */
539
+ export type IntegrationEndpoint = {
540
+ /**
541
+ * Integration endpoint body
542
+ */
543
+ body?: string;
544
+ /**
545
+ * Integration endpoint ignore models
546
+ */
547
+ ignoreModels?: Array<unknown>;
548
+ /**
549
+ * Integration endpoint method
550
+ */
551
+ method?: string;
552
+ /**
553
+ * Integration endpoint models
554
+ */
555
+ models?: Array<unknown>;
556
+ /**
557
+ * Integration endpoint stream key
558
+ */
559
+ streamKey?: string;
560
+ streamToken?: IntegrationEndpointToken;
561
+ token?: IntegrationEndpointToken;
562
+ };
563
+ /**
564
+ * Integration endpoint token
565
+ */
566
+ export type IntegrationEndpointToken = {
567
+ /**
568
+ * Integration endpoint token received
569
+ */
570
+ received?: string;
571
+ /**
572
+ * Integration endpoint token sent
573
+ */
574
+ sent?: string;
575
+ /**
576
+ * Integration endpoint token total
577
+ */
578
+ total?: string;
579
+ };
580
+ /**
581
+ * Integration endpoints
582
+ */
583
+ export type IntegrationEndpoints = {
584
+ [key: string]: IntegrationEndpoint;
585
+ };
586
+ /**
587
+ * Integration headers
588
+ */
589
+ export type IntegrationHeaders = {
590
+ [key: string]: string;
591
+ };
592
+ /**
593
+ * Model obtained from an external authentication provider, such as HuggingFace, OpenAI, etc...
594
+ */
595
+ export type IntegrationModel = {
596
+ /**
597
+ * Provider model author
598
+ */
599
+ author?: string;
600
+ /**
601
+ * Provider model created at
602
+ */
603
+ created_at?: string;
604
+ /**
605
+ * Provider model downloads
606
+ */
607
+ downloads?: number;
608
+ /**
609
+ * Model endpoint URL
610
+ */
611
+ endpoint?: string;
612
+ /**
613
+ * Provider model ID
614
+ */
615
+ id?: string;
616
+ /**
617
+ * Provider model library name
618
+ */
619
+ library_name?: string;
620
+ /**
621
+ * Provider model likes
622
+ */
623
+ likes?: number;
624
+ /**
625
+ * Is the model private
626
+ */
627
+ model_private?: string;
628
+ /**
629
+ * Provider model name
630
+ */
631
+ name?: string;
632
+ /**
633
+ * Provider model pipeline tag
634
+ */
635
+ pipeline_tag?: string;
636
+ /**
637
+ * Provider model tags
638
+ */
639
+ tags?: Array<string>;
640
+ /**
641
+ * Provider model trending score
642
+ */
643
+ trending_score?: number;
644
+ };
645
+ /**
646
+ * Integration organization
647
+ */
648
+ export type IntegrationOrganization = {
649
+ /**
650
+ * Provider organization avatar URL
651
+ */
652
+ avatar_url?: string;
653
+ /**
654
+ * Provider organization display name
655
+ */
656
+ displayName?: string;
657
+ /**
658
+ * Provider organization ID
659
+ */
660
+ id?: string;
661
+ /**
662
+ * Provider organization name
663
+ */
664
+ name?: string;
665
+ };
666
+ /**
667
+ * Integration query params
668
+ */
669
+ export type IntegrationQueryParams = {
670
+ [key: string]: string;
671
+ };
672
+ /**
673
+ * Integration repository
674
+ */
675
+ export type IntegrationRepository = {
676
+ /**
677
+ * Repository ID
678
+ */
679
+ id?: string;
680
+ /**
681
+ * Whether the repository has Blaxel imports
682
+ */
683
+ isBl?: boolean;
684
+ /**
685
+ * Repository name
686
+ */
687
+ name?: string;
688
+ /**
689
+ * Repository owner
690
+ */
691
+ organization?: string;
692
+ /**
693
+ * Repository URL
694
+ */
695
+ url?: string;
696
+ };
697
+ /**
698
+ * Job
699
+ */
700
+ export type Job = {
701
+ events?: CoreEvents;
702
+ metadata?: Metadata;
703
+ spec?: JobSpec;
704
+ /**
705
+ * Job status
706
+ */
707
+ status?: string;
708
+ };
709
+ /**
710
+ * Configuration for a job execution
711
+ */
712
+ export type JobExecutionConfig = {
713
+ /**
714
+ * The maximum number of concurrent tasks for an execution
715
+ */
716
+ maxConcurrentTasks?: number;
717
+ /**
718
+ * The maximum number of retries for the job execution
719
+ */
720
+ maxRetries?: number;
721
+ /**
722
+ * The timeout for the job execution in seconds
723
+ */
724
+ timeout?: number;
725
+ };
726
+ /**
727
+ * Metrics for job
728
+ */
729
+ export type JobMetrics = {
730
+ /**
731
+ * Billable time
732
+ */
733
+ billableTime?: Array<unknown>;
734
+ /**
735
+ * CPU usage
736
+ */
737
+ cpuUsage?: Array<unknown>;
738
+ /**
739
+ * Executions chart
740
+ */
741
+ executionsChart?: {
742
+ [key: string]: unknown;
743
+ };
744
+ /**
745
+ * Executions running
746
+ */
747
+ executionsRunning?: Array<unknown>;
748
+ /**
749
+ * Total executions
750
+ */
751
+ executionsTotal?: {
752
+ [key: string]: unknown;
753
+ };
754
+ /**
755
+ * RAM usage
756
+ */
757
+ ramUsage?: Array<unknown>;
758
+ /**
759
+ * Tasks chart
760
+ */
761
+ tasksChart?: {
762
+ [key: string]: unknown;
763
+ };
764
+ /**
765
+ * Tasks running
766
+ */
767
+ tasksRunning?: Array<unknown>;
768
+ /**
769
+ * Total tasks
770
+ */
771
+ tasksTotal?: {
772
+ [key: string]: unknown;
773
+ };
774
+ };
775
+ /**
776
+ * Job specification
777
+ */
778
+ export type JobSpec = CoreSpec & {
779
+ triggers?: Triggers;
780
+ };
781
+ /**
782
+ * Jobs CPU usage
783
+ */
784
+ export type JobsChartValue = {
785
+ /**
786
+ * Metric timestamp
787
+ */
788
+ timestamp?: string;
789
+ /**
790
+ * Metric value
791
+ */
792
+ value?: number;
793
+ };
794
+ /**
795
+ * Jobs chart
796
+ */
797
+ export type JobsNetworkChart = {
798
+ received?: JobsChartValue;
799
+ sent?: JobsChartValue;
800
+ };
801
+ /**
802
+ * Jobs chart
803
+ */
804
+ export type JobsSuccessFailedChart = {
805
+ failed?: JobsChartValue;
806
+ retried?: JobsChartValue;
807
+ success?: JobsChartValue;
808
+ /**
809
+ * Metric timestamp
810
+ */
811
+ timestamp?: string;
812
+ total?: JobsChartValue;
813
+ };
814
+ /**
815
+ * Jobs executions
816
+ */
817
+ export type JobsTotal = {
818
+ /**
819
+ * Failed executions
820
+ */
821
+ failed?: number;
822
+ /**
823
+ * Retried executions
824
+ */
825
+ retried?: number;
826
+ /**
827
+ * Running executions
828
+ */
829
+ running?: number;
830
+ /**
831
+ * Success executions
832
+ */
833
+ success?: number;
834
+ /**
835
+ * Total executions
836
+ */
837
+ total?: number;
838
+ };
839
+ /**
840
+ * Last N requests
841
+ */
842
+ export type LastNRequestsMetric = {
843
+ /**
844
+ * Timestamp
845
+ */
846
+ date?: string;
847
+ /**
848
+ * Status code
849
+ */
850
+ statusCode?: string;
851
+ /**
852
+ * Workload ID
853
+ */
854
+ workloadId?: string;
855
+ /**
856
+ * Workload type
857
+ */
858
+ workloadType?: string;
859
+ /**
860
+ * Workspace
861
+ */
862
+ workspace?: string;
863
+ };
864
+ /**
865
+ * Latency metrics
866
+ */
867
+ export type LatencyMetric = {
868
+ globalHistogram?: HistogramBucket;
869
+ globalStats?: HistogramStats;
870
+ histogramPerCode?: HistogramBucket;
871
+ statsPerCode?: HistogramStats;
872
+ };
873
+ /**
874
+ * Location availability for policies
875
+ */
876
+ export type LocationResponse = {
877
+ /**
878
+ * Continent of the location
879
+ */
880
+ continent?: string;
881
+ /**
882
+ * Country of the location
883
+ */
884
+ country?: string;
885
+ /**
886
+ * Hardware flavors available in the location
887
+ */
888
+ flavors?: Array<Flavor>;
889
+ /**
890
+ * Name of the location
891
+ */
892
+ location?: string;
893
+ /**
894
+ * Status of the location
895
+ */
896
+ status?: string;
897
+ };
898
+ /**
899
+ * Response for logs
900
+ */
901
+ export type LogsResponse = {
902
+ /**
903
+ * Data
904
+ */
905
+ data?: Array<unknown>;
906
+ };
907
+ /**
908
+ * Response data for logs
909
+ */
910
+ export type LogsResponseData = {
911
+ /**
912
+ * Body of the log
913
+ */
914
+ body?: string;
915
+ /**
916
+ * Log attributes
917
+ */
918
+ logAttributes?: Array<unknown>;
919
+ /**
920
+ * Severity number of the log
921
+ */
922
+ severityNumber?: number;
923
+ /**
924
+ * Timestamp of the log
925
+ */
926
+ timestamp?: string;
927
+ /**
928
+ * Trace ID of the log
929
+ */
930
+ traceId?: string;
931
+ };
932
+ /**
933
+ * Definition of an MCP from the MCP Hub
934
+ */
935
+ export type McpDefinition = TimeFields & {
936
+ /**
937
+ * Categories of the artifact
938
+ */
939
+ categories?: Array<unknown>;
940
+ /**
941
+ * If the artifact is coming soon
942
+ */
943
+ coming_soon?: boolean;
944
+ /**
945
+ * Description of the artifact
946
+ */
947
+ description?: string;
948
+ /**
949
+ * Display name of the artifact
950
+ */
951
+ displayName?: string;
952
+ /**
953
+ * If the artifact is enterprise
954
+ */
955
+ enterprise?: boolean;
956
+ /**
957
+ * Entrypoint of the artifact
958
+ */
959
+ entrypoint?: {
960
+ [key: string]: unknown;
961
+ };
962
+ /**
963
+ * Form of the artifact
964
+ */
965
+ form?: {
966
+ [key: string]: unknown;
967
+ };
968
+ /**
969
+ * Hidden secrets of the artifact
970
+ */
971
+ hiddenSecrets?: Array<string>;
972
+ /**
973
+ * Icon of the artifact
974
+ */
975
+ icon?: string;
976
+ /**
977
+ * Image of the artifact
978
+ */
979
+ image?: string;
980
+ /**
981
+ * Integration of the artifact
982
+ */
983
+ integration?: string;
984
+ /**
985
+ * Long description of the artifact
986
+ */
987
+ longDescription?: string;
988
+ /**
989
+ * Name of the artifact
990
+ */
991
+ name?: string;
992
+ /**
993
+ * URL of the artifact
994
+ */
995
+ url?: string;
996
+ };
997
+ /**
998
+ * Memory allocation by service name
999
+ */
1000
+ export type MemoryAllocationByName = {
1001
+ /**
1002
+ * Memory allocation value
1003
+ */
1004
+ allocation?: number;
1005
+ /**
1006
+ * Name
1007
+ */
1008
+ name?: string;
1009
+ };
1010
+ /**
1011
+ * Metrics for memory allocation
1012
+ */
1013
+ export type MemoryAllocationMetric = {
1014
+ /**
1015
+ * Total memory allocation in GB-seconds
1016
+ */
1017
+ totalAllocation?: number;
1018
+ };
1019
+ /**
1020
+ * Metadata
1021
+ */
1022
+ export type Metadata = TimeFields & OwnerFields & {
1023
+ /**
1024
+ * Model display name
1025
+ */
1026
+ displayName?: string;
1027
+ labels?: MetadataLabels;
1028
+ /**
1029
+ * Model name
1030
+ */
1031
+ name?: string;
1032
+ /**
1033
+ * Plan
1034
+ */
1035
+ plan?: unknown;
1036
+ /**
1037
+ * Workspace name
1038
+ */
1039
+ workspace?: string;
1040
+ };
1041
+ /**
1042
+ * Labels
1043
+ */
1044
+ export type MetadataLabels = {
1045
+ [key: string]: string;
1046
+ };
1047
+ /**
1048
+ * Metric
1049
+ */
1050
+ export type Metric = {
1051
+ /**
1052
+ * Metric value
1053
+ */
1054
+ rate?: number;
1055
+ /**
1056
+ * Metric value
1057
+ */
1058
+ requestTotal?: number;
1059
+ /**
1060
+ * Metric timestamp
1061
+ */
1062
+ timestamp?: string;
1063
+ };
1064
+ /**
1065
+ * Metrics for resources
1066
+ */
1067
+ export type Metrics = {
1068
+ /**
1069
+ * Metrics for agents
1070
+ */
1071
+ agents?: unknown;
1072
+ /**
1073
+ * Metrics for functions
1074
+ */
1075
+ functions?: unknown;
1076
+ /**
1077
+ * Historical requests for all resources globally
1078
+ */
1079
+ inferenceGlobal?: Array<unknown>;
1080
+ /**
1081
+ * Historical requests for all resources globally
1082
+ */
1083
+ items?: Array<unknown>;
1084
+ /**
1085
+ * Metric value
1086
+ */
1087
+ lastNRequests?: number;
1088
+ /**
1089
+ * Metrics for models
1090
+ */
1091
+ models?: {
1092
+ [key: string]: unknown;
1093
+ };
1094
+ /**
1095
+ * Number of requests for all resources globally
1096
+ */
1097
+ requestTotal?: number;
1098
+ /**
1099
+ * Number of requests for all resources globally per code
1100
+ */
1101
+ requestTotalPerCode?: {
1102
+ [key: string]: unknown;
1103
+ };
1104
+ /**
1105
+ * Number of requests per second for all resources globally
1106
+ */
1107
+ rps?: number;
1108
+ /**
1109
+ * Number of requests per second for all resources globally per code
1110
+ */
1111
+ rpsPerCode?: {
1112
+ [key: string]: unknown;
1113
+ };
1114
+ /**
1115
+ * Metrics for sandboxes
1116
+ */
1117
+ sandboxes?: unknown;
1118
+ };
1119
+ /**
1120
+ * Logical object representing a model
1121
+ */
1122
+ export type Model = {
1123
+ events?: CoreEvents;
1124
+ metadata?: Metadata;
1125
+ spec?: ModelSpec;
1126
+ /**
1127
+ * Model status
1128
+ */
1129
+ status?: string;
1130
+ };
1131
+ /**
1132
+ * Private cluster where the model deployment is deployed
1133
+ */
1134
+ export type ModelPrivateCluster = {
1135
+ /**
1136
+ * The base url of the model in the private cluster
1137
+ */
1138
+ baseUrl?: string;
1139
+ /**
1140
+ * If true, the private cluster is available
1141
+ */
1142
+ enabled?: boolean;
1143
+ /**
1144
+ * The name of the private cluster
1145
+ */
1146
+ name?: string;
1147
+ };
1148
+ /**
1149
+ * Model specification
1150
+ */
1151
+ export type ModelSpec = CoreSpec & unknown;
1152
+ /**
1153
+ * OAuth of the artifact
1154
+ */
1155
+ export type OAuth = {
1156
+ /**
1157
+ * Scope of the OAuth
1158
+ */
1159
+ scope?: Array<unknown>;
1160
+ /**
1161
+ * Type of the OAuth
1162
+ */
1163
+ type?: string;
1164
+ };
1165
+ /**
1166
+ * Owner fields for Persistance
1167
+ */
1168
+ export type OwnerFields = {
1169
+ /**
1170
+ * The user or service account who created the resource
1171
+ */
1172
+ createdBy?: string;
1173
+ /**
1174
+ * The user or service account who updated the resource
1175
+ */
1176
+ updatedBy?: string;
1177
+ };
1178
+ /**
1179
+ * Pending invitation in workspace
1180
+ */
1181
+ export type PendingInvitation = TimeFields & OwnerFields & {
1182
+ /**
1183
+ * User email
1184
+ */
1185
+ email?: string;
1186
+ /**
1187
+ * User sub
1188
+ */
1189
+ invitedBy?: string;
1190
+ /**
1191
+ * ACL role
1192
+ */
1193
+ role?: string;
1194
+ /**
1195
+ * Workspace name
1196
+ */
1197
+ workspace?: string;
1198
+ };
1199
+ /**
1200
+ * Pending invitation accept
1201
+ */
1202
+ export type PendingInvitationAccept = {
1203
+ /**
1204
+ * User email
1205
+ */
1206
+ email?: string;
1207
+ workspace?: Workspace;
1208
+ };
1209
+ /**
1210
+ * Pending invitation in workspace
1211
+ */
1212
+ export type PendingInvitationRender = {
1213
+ /**
1214
+ * User email
1215
+ */
1216
+ email?: string;
1217
+ /**
1218
+ * Invitation date
1219
+ */
1220
+ invitedAt?: string;
1221
+ invitedBy?: PendingInvitationRenderInvitedBy;
1222
+ /**
1223
+ * ACL role
1224
+ */
1225
+ role?: string;
1226
+ workspace?: PendingInvitationRenderWorkspace;
1227
+ workspaceDetails?: PendingInvitationWorkspaceDetails;
1228
+ };
1229
+ /**
1230
+ * Invited by
1231
+ */
1232
+ export type PendingInvitationRenderInvitedBy = {
1233
+ /**
1234
+ * User email
1235
+ */
1236
+ email?: string;
1237
+ /**
1238
+ * User family name
1239
+ */
1240
+ family_name?: string;
1241
+ /**
1242
+ * User given name
1243
+ */
1244
+ given_name?: string;
1245
+ /**
1246
+ * User sub
1247
+ */
1248
+ sub?: string;
1249
+ };
1250
+ /**
1251
+ * Workspace
1252
+ */
1253
+ export type PendingInvitationRenderWorkspace = {
1254
+ /**
1255
+ * Workspace display name
1256
+ */
1257
+ displayName?: string;
1258
+ /**
1259
+ * Workspace name
1260
+ */
1261
+ name?: string;
1262
+ };
1263
+ /**
1264
+ * Workspace details
1265
+ */
1266
+ export type PendingInvitationWorkspaceDetails = {
1267
+ /**
1268
+ * List of user emails in the workspace
1269
+ */
1270
+ emails?: Array<unknown>;
1271
+ /**
1272
+ * Number of users in the workspace
1273
+ */
1274
+ user_number?: number;
1275
+ };
1276
+ /**
1277
+ * Pod template specification
1278
+ */
1279
+ export type PodTemplateSpec = {
1280
+ [key: string]: unknown;
1281
+ };
1282
+ export type PoliciesList = Array<string>;
1283
+ /**
1284
+ * Rule that controls how a deployment is made and served (e.g. location restrictions)
1285
+ */
1286
+ export type Policy = {
1287
+ metadata?: Metadata;
1288
+ spec?: PolicySpec;
1289
+ };
1290
+ /**
1291
+ * Policy location
1292
+ */
1293
+ export type PolicyLocation = {
1294
+ /**
1295
+ * Policy location name
1296
+ */
1297
+ name?: string;
1298
+ /**
1299
+ * Policy location type
1300
+ */
1301
+ type?: string;
1302
+ };
1303
+ /**
1304
+ * PolicyLocations is a local type that wraps a slice of Location
1305
+ */
1306
+ export type PolicyLocations = Array<PolicyLocation>;
1307
+ /**
1308
+ * PolicyMaxTokens is a local type that wraps a slice of PolicyMaxTokens
1309
+ */
1310
+ export type PolicyMaxTokens = {
1311
+ /**
1312
+ * Granularity
1313
+ */
1314
+ granularity?: string;
1315
+ /**
1316
+ * Input
1317
+ */
1318
+ input?: number;
1319
+ /**
1320
+ * Output
1321
+ */
1322
+ output?: number;
1323
+ /**
1324
+ * RatioInputOverOutput
1325
+ */
1326
+ ratioInputOverOutput?: number;
1327
+ /**
1328
+ * Step
1329
+ */
1330
+ step?: number;
1331
+ /**
1332
+ * Total
1333
+ */
1334
+ total?: number;
1335
+ };
1336
+ /**
1337
+ * PolicyResourceType is a type of resource, e.g. model, function, etc.
1338
+ */
1339
+ export type PolicyResourceType = string;
1340
+ /**
1341
+ * PolicyResourceTypes is a local type that wraps a slice of PolicyResourceType
1342
+ */
1343
+ export type PolicyResourceTypes = Array<PolicyResourceType>;
1344
+ /**
1345
+ * Policy specification
1346
+ */
1347
+ export type PolicySpec = {
1348
+ flavors?: Flavors;
1349
+ locations?: PolicyLocations;
1350
+ maxTokens?: PolicyMaxTokens;
1351
+ resourceTypes?: PolicyResourceTypes;
1352
+ /**
1353
+ * Sandbox mode
1354
+ */
1355
+ sandbox?: boolean;
1356
+ /**
1357
+ * Policy type, can be location or flavor
1358
+ */
1359
+ type?: string;
1360
+ };
1361
+ /**
1362
+ * A port for a resource
1363
+ */
1364
+ export type Port = {
1365
+ /**
1366
+ * The name of the port
1367
+ */
1368
+ name?: string;
1369
+ /**
1370
+ * The protocol of the port
1371
+ */
1372
+ protocol?: string;
1373
+ /**
1374
+ * The target port of the port
1375
+ */
1376
+ target?: number;
1377
+ };
1378
+ /**
1379
+ * Set of ports for a resource
1380
+ */
1381
+ export type Ports = Array<Port>;
1382
+ /**
1383
+ * Preview of a Resource
1384
+ */
1385
+ export type Preview = {
1386
+ metadata?: PreviewMetadata;
1387
+ spec?: PreviewSpec;
1388
+ };
1389
+ /**
1390
+ * PreviewMetadata
1391
+ */
1392
+ export type PreviewMetadata = TimeFields & OwnerFields & {
1393
+ /**
1394
+ * Model display name
1395
+ */
1396
+ displayName?: string;
1397
+ /**
1398
+ * Preview name
1399
+ */
1400
+ name?: string;
1401
+ /**
1402
+ * Resource name
1403
+ */
1404
+ resourceName?: string;
1405
+ /**
1406
+ * Resource type
1407
+ */
1408
+ resourceType?: string;
1409
+ /**
1410
+ * Workspace name
1411
+ */
1412
+ workspace?: string;
1413
+ };
1414
+ /**
1415
+ * Preview of a Resource
1416
+ */
1417
+ export type PreviewSpec = {
1418
+ /**
1419
+ * Custom domain bound to this preview
1420
+ */
1421
+ customDomain?: string;
1422
+ /**
1423
+ * The expiration date for the preview in ISO 8601 format - 2024-12-31T23:59:59Z
1424
+ */
1425
+ expires?: string;
1426
+ /**
1427
+ * Port of the preview
1428
+ */
1429
+ port?: number;
1430
+ /**
1431
+ * Prefix URL
1432
+ */
1433
+ prefixUrl?: string;
1434
+ /**
1435
+ * Whether the preview is public
1436
+ */
1437
+ public?: boolean;
1438
+ /**
1439
+ * Region where the preview is deployed, this is readonly
1440
+ */
1441
+ region?: string;
1442
+ /**
1443
+ * Those headers will be set in all requests to your preview. This is especially useful to set the Authorization header.
1444
+ */
1445
+ requestHeaders?: {
1446
+ [key: string]: string;
1447
+ };
1448
+ /**
1449
+ * Those headers will be set in all responses of your preview. This is especially useful to set the CORS headers.
1450
+ */
1451
+ responseHeaders?: {
1452
+ [key: string]: string;
1453
+ };
1454
+ /**
1455
+ * Time to live for the preview (e.g., "1h", "24h", "7d"). After this duration, the preview will be automatically deleted.
1456
+ */
1457
+ ttl?: string;
1458
+ /**
1459
+ * URL of the preview
1460
+ */
1461
+ url?: string;
1462
+ };
1463
+ /**
1464
+ * Token for a Preview
1465
+ */
1466
+ export type PreviewToken = {
1467
+ metadata?: PreviewTokenMetadata;
1468
+ spec?: PreviewTokenSpec;
1469
+ };
1470
+ /**
1471
+ * PreviewTokenMetadata
1472
+ */
1473
+ export type PreviewTokenMetadata = {
1474
+ /**
1475
+ * Token name
1476
+ */
1477
+ name?: string;
1478
+ /**
1479
+ * Preview name
1480
+ */
1481
+ previewName?: string;
1482
+ /**
1483
+ * Resource name
1484
+ */
1485
+ resourceName?: string;
1486
+ /**
1487
+ * Resource type
1488
+ */
1489
+ resourceType?: string;
1490
+ /**
1491
+ * Workspace name
1492
+ */
1493
+ workspace?: string;
1494
+ };
1495
+ /**
1496
+ * Spec for a Preview Token
1497
+ */
1498
+ export type PreviewTokenSpec = {
1499
+ /**
1500
+ * Whether the token is expired
1501
+ */
1502
+ expired?: boolean;
1503
+ /**
1504
+ * Expiration time of the token
1505
+ */
1506
+ expiresAt?: string;
1507
+ /**
1508
+ * Token
1509
+ */
1510
+ token?: string;
1511
+ };
1512
+ /**
1513
+ * A private cluster where models can be located on.
1514
+ */
1515
+ export type PrivateCluster = TimeFields & OwnerFields & {
1516
+ /**
1517
+ * The private cluster's continent, used to determine the closest private cluster to serve inference requests based on the user's location
1518
+ */
1519
+ continent?: string;
1520
+ /**
1521
+ * The country where the private cluster is located, used to determine the closest private cluster to serve inference requests based on the user's location
1522
+ */
1523
+ country?: string;
1524
+ /**
1525
+ * The private cluster's display Name
1526
+ */
1527
+ displayName?: string;
1528
+ /**
1529
+ * Whether the private cluster is healthy or not, used to determine if the private cluster is ready to run inference
1530
+ */
1531
+ healthy?: boolean;
1532
+ /**
1533
+ * The private cluster's unique name
1534
+ */
1535
+ lastHealthCheckTime?: string;
1536
+ /**
1537
+ * The private cluster's latitude, used to determine the closest private cluster to serve inference requests based on the user's location
1538
+ */
1539
+ latitude?: string;
1540
+ /**
1541
+ * The private cluster's longitude, used to determine the closest private cluster to serve inference requests based on the user's location
1542
+ */
1543
+ longitude?: string;
1544
+ /**
1545
+ * The name of the private cluster, it must be unique
1546
+ */
1547
+ name?: string;
1548
+ /**
1549
+ * The service account (operator) that owns the cluster
1550
+ */
1551
+ ownedBy?: string;
1552
+ /**
1553
+ * The workspace the private cluster belongs to
1554
+ */
1555
+ workspace?: string;
1556
+ };
1557
+ /**
1558
+ * Private location available for policies
1559
+ */
1560
+ export type PrivateLocation = {
1561
+ /**
1562
+ * Location name
1563
+ */
1564
+ name?: string;
1565
+ };
1566
+ export type PublicIp = {
1567
+ /**
1568
+ * Description of the region/location
1569
+ */
1570
+ description?: string;
1571
+ /**
1572
+ * List of public ipv4 addresses
1573
+ */
1574
+ ipv4Cidrs?: Array<string>;
1575
+ /**
1576
+ * List of public ipv6 addresses
1577
+ */
1578
+ ipv6Cidrs?: Array<string>;
1579
+ };
1580
+ export type PublicIps = {
1581
+ [key: string]: PublicIp;
1582
+ };
1583
+ /**
1584
+ * Repository
1585
+ */
1586
+ export type Repository = {
1587
+ /**
1588
+ * Repository type
1589
+ */
1590
+ type?: string;
1591
+ /**
1592
+ * Repository URL
1593
+ */
1594
+ url?: string;
1595
+ };
1596
+ /**
1597
+ * Request duration over time metric
1598
+ */
1599
+ export type RequestDurationOverTimeMetric = {
1600
+ /**
1601
+ * Average request duration
1602
+ */
1603
+ average?: number;
1604
+ /**
1605
+ * P50 request duration
1606
+ */
1607
+ p50?: number;
1608
+ /**
1609
+ * P90 request duration
1610
+ */
1611
+ p90?: number;
1612
+ /**
1613
+ * P99 request duration
1614
+ */
1615
+ p99?: number;
1616
+ /**
1617
+ * Timestamp
1618
+ */
1619
+ timestamp?: string;
1620
+ };
1621
+ /**
1622
+ * Request duration over time metrics
1623
+ */
1624
+ export type RequestDurationOverTimeMetrics = {
1625
+ requestDurationOverTime?: RequestDurationOverTimeMetric;
1626
+ };
1627
+ /**
1628
+ * Request total by origin metric
1629
+ */
1630
+ export type RequestTotalByOriginMetric = {
1631
+ /**
1632
+ * Request total by origin
1633
+ */
1634
+ requestTotalByOrigin?: {
1635
+ [key: string]: unknown;
1636
+ };
1637
+ /**
1638
+ * Request total by origin and code
1639
+ */
1640
+ requestTotalByOriginAndCode?: {
1641
+ [key: string]: unknown;
1642
+ };
1643
+ };
1644
+ /**
1645
+ * Metrics for request total
1646
+ */
1647
+ export type RequestTotalMetric = {
1648
+ /**
1649
+ * Historical requests for all resources globally
1650
+ */
1651
+ items?: Array<unknown>;
1652
+ /**
1653
+ * Number of requests for all resources globally
1654
+ */
1655
+ requestTotal?: number;
1656
+ /**
1657
+ * Number of requests for all resources globally per code
1658
+ */
1659
+ requestTotalPerCode?: {
1660
+ [key: string]: unknown;
1661
+ };
1662
+ /**
1663
+ * Number of requests per second for all resources globally
1664
+ */
1665
+ rps?: number;
1666
+ /**
1667
+ * Number of requests for all resources globally
1668
+ */
1669
+ rpsPerCode?: {
1670
+ [key: string]: unknown;
1671
+ };
1672
+ };
1673
+ /**
1674
+ * Request total response data
1675
+ */
1676
+ export type RequestTotalResponseData = {
1677
+ /**
1678
+ * Request total
1679
+ */
1680
+ requestTotal?: number;
1681
+ /**
1682
+ * Status code
1683
+ */
1684
+ statusCode?: string;
1685
+ /**
1686
+ * Workload ID
1687
+ */
1688
+ workloadId?: string;
1689
+ /**
1690
+ * Workload type
1691
+ */
1692
+ workloadType?: string;
1693
+ /**
1694
+ * Workspace
1695
+ */
1696
+ workspace?: string;
1697
+ };
1698
+ /**
1699
+ * Resource
1700
+ */
1701
+ export type Resource = {
1702
+ /**
1703
+ * Name of the resource
1704
+ */
1705
+ name?: string;
1706
+ /**
1707
+ * Type of the resource
1708
+ */
1709
+ type?: string;
1710
+ /**
1711
+ * Workspace of the resource
1712
+ */
1713
+ workspace?: string;
1714
+ };
1715
+ /**
1716
+ * Log for a resource deployment (eg. model deployment, function deployment)
1717
+ */
1718
+ export type ResourceLog = {
1719
+ /**
1720
+ * Content of the log
1721
+ */
1722
+ message?: string;
1723
+ /**
1724
+ * Severity of the log
1725
+ */
1726
+ severity?: number;
1727
+ /**
1728
+ * The timestamp of the log
1729
+ */
1730
+ timestamp?: string;
1731
+ /**
1732
+ * Trace ID of the log
1733
+ */
1734
+ trace_id?: string;
1735
+ };
1736
+ /**
1737
+ * Chart for a resource log
1738
+ */
1739
+ export type ResourceLogChart = {
1740
+ /**
1741
+ * Count of the log
1742
+ */
1743
+ count?: number;
1744
+ /**
1745
+ * Debug count of the log
1746
+ */
1747
+ debug?: number;
1748
+ /**
1749
+ * Error count of the log
1750
+ */
1751
+ error?: number;
1752
+ /**
1753
+ * Fatal count of the log
1754
+ */
1755
+ fatal?: number;
1756
+ /**
1757
+ * Info count of the log
1758
+ */
1759
+ info?: number;
1760
+ /**
1761
+ * Timestamp of the log
1762
+ */
1763
+ timestamp?: string;
1764
+ /**
1765
+ * Trace count of the log
1766
+ */
1767
+ trace?: number;
1768
+ /**
1769
+ * Unknown count of the log
1770
+ */
1771
+ unknown?: number;
1772
+ /**
1773
+ * Warning count of the log
1774
+ */
1775
+ warning?: number;
1776
+ };
1777
+ /**
1778
+ * Response for a resource log
1779
+ */
1780
+ export type ResourceLogResponse = {
1781
+ /**
1782
+ * Chart
1783
+ */
1784
+ chart?: Array<unknown>;
1785
+ /**
1786
+ * Logs
1787
+ */
1788
+ logs?: Array<unknown>;
1789
+ /**
1790
+ * Total count of logs
1791
+ */
1792
+ totalCount?: number;
1793
+ };
1794
+ /**
1795
+ * Metrics for a single resource deployment (eg. model deployment, function deployment)
1796
+ */
1797
+ export type ResourceMetrics = {
1798
+ billableTime?: BillableTimeMetric;
1799
+ inferenceErrorsGlobal?: ArrayMetric;
1800
+ inferenceGlobal?: ArrayMetric;
1801
+ lastNRequests?: ArrayMetric;
1802
+ latency?: LatencyMetric;
1803
+ latencyPrevious?: LatencyMetric;
1804
+ memoryAllocation?: MemoryAllocationMetric;
1805
+ modelTtft?: LatencyMetric;
1806
+ modelTtftOverTime?: TimeToFirstTokenOverTimeMetrics;
1807
+ requestDurationOverTime?: RequestDurationOverTimeMetrics;
1808
+ /**
1809
+ * Number of requests for the resource globally
1810
+ */
1811
+ requestTotal?: number;
1812
+ requestTotalByOrigin?: RequestTotalByOriginMetric;
1813
+ requestTotalByOriginPrevious?: RequestTotalByOriginMetric;
1814
+ /**
1815
+ * Number of requests for the resource globally per code
1816
+ */
1817
+ requestTotalPerCode?: {
1818
+ [key: string]: unknown;
1819
+ };
1820
+ /**
1821
+ * Number of requests for the resource globally per code for the previous period
1822
+ */
1823
+ requestTotalPerCodePrevious?: {
1824
+ [key: string]: unknown;
1825
+ };
1826
+ /**
1827
+ * Number of requests for the resource globally for the previous period
1828
+ */
1829
+ requestTotalPrevious?: number;
1830
+ /**
1831
+ * Number of requests per second for the resource globally
1832
+ */
1833
+ rps?: number;
1834
+ /**
1835
+ * Number of requests per second for the resource globally per code
1836
+ */
1837
+ rpsPerCode?: {
1838
+ [key: string]: unknown;
1839
+ };
1840
+ /**
1841
+ * Number of requests per second for the resource globally per code for the previous period
1842
+ */
1843
+ rpsPerCodePrevious?: {
1844
+ [key: string]: unknown;
1845
+ };
1846
+ /**
1847
+ * Number of requests per second for the resource globally for the previous period
1848
+ */
1849
+ rpsPrevious?: number;
1850
+ tokenRate?: TokenRateMetrics;
1851
+ tokenTotal?: TokenTotalMetric;
1852
+ };
1853
+ /**
1854
+ * Log for a resource deployment (eg. model deployment, function deployment)
1855
+ */
1856
+ export type ResourceTrace = {
1857
+ /**
1858
+ * Duration in nanoseconds
1859
+ */
1860
+ duration?: number;
1861
+ /**
1862
+ * Has error
1863
+ */
1864
+ hasError?: boolean;
1865
+ /**
1866
+ * The timestamp of the log
1867
+ */
1868
+ startTime?: string;
1869
+ /**
1870
+ * Status code
1871
+ */
1872
+ statusCode?: number;
1873
+ /**
1874
+ * Trace ID of the log
1875
+ */
1876
+ traceID?: string;
1877
+ };
1878
+ /**
1879
+ * Revision configuration
1880
+ */
1881
+ export type RevisionConfiguration = {
1882
+ /**
1883
+ * Active revision id
1884
+ */
1885
+ active?: string;
1886
+ /**
1887
+ * Canary revision id
1888
+ */
1889
+ canary?: string;
1890
+ /**
1891
+ * Canary revision percent
1892
+ */
1893
+ canaryPercent?: number;
1894
+ /**
1895
+ * Traffic percentage
1896
+ */
1897
+ traffic?: number;
1898
+ };
1899
+ /**
1900
+ * Revision metadata
1901
+ */
1902
+ export type RevisionMetadata = {
1903
+ /**
1904
+ * Is the revision active
1905
+ */
1906
+ active?: boolean;
1907
+ /**
1908
+ * Is the revision canary
1909
+ */
1910
+ canary?: boolean;
1911
+ /**
1912
+ * Revision created at
1913
+ */
1914
+ createdAt?: string;
1915
+ /**
1916
+ * Revision created by
1917
+ */
1918
+ createdBy?: string;
1919
+ /**
1920
+ * Revision ID
1921
+ */
1922
+ id?: string;
1923
+ /**
1924
+ * Is the revision previous active
1925
+ */
1926
+ previousActive?: boolean;
1927
+ /**
1928
+ * Status of the revision
1929
+ */
1930
+ status?: string;
1931
+ /**
1932
+ * Percent of traffic to the revision
1933
+ */
1934
+ trafficPercent?: number;
1935
+ };
1936
+ /**
1937
+ * Set of configurations for a deployment
1938
+ */
1939
+ export type Runtime = {
1940
+ /**
1941
+ * The arguments to pass to the deployment runtime
1942
+ */
1943
+ args?: Array<unknown>;
1944
+ /**
1945
+ * The command to run the deployment
1946
+ */
1947
+ command?: Array<unknown>;
1948
+ /**
1949
+ * The configuration for the deployment
1950
+ */
1951
+ configuration?: {
1952
+ [key: string]: unknown;
1953
+ };
1954
+ /**
1955
+ * The CPU for the deployment in cores, only available for private cluster
1956
+ */
1957
+ cpu?: number;
1958
+ /**
1959
+ * Endpoint Name of the model. In case of hf_private_endpoint, it is the endpoint name. In case of hf_public_endpoint, it is not used.
1960
+ */
1961
+ endpointName?: string;
1962
+ /**
1963
+ * The env variables to set in the deployment. Should be a list of Kubernetes EnvVar types
1964
+ */
1965
+ envs?: Array<unknown>;
1966
+ /**
1967
+ * The expiration date for the deployment in ISO 8601 format - 2024-12-31T23:59:59Z
1968
+ */
1969
+ expires?: string;
1970
+ /**
1971
+ * The generation of the deployment
1972
+ */
1973
+ generation?: string;
1974
+ /**
1975
+ * The Docker image for the deployment
1976
+ */
1977
+ image?: string;
1978
+ /**
1979
+ * The maximum number of concurrent task for an execution
1980
+ */
1981
+ maxConcurrentTasks?: number;
1982
+ /**
1983
+ * The maximum number of retries for the deployment
1984
+ */
1985
+ maxRetries?: number;
1986
+ /**
1987
+ * The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
1988
+ */
1989
+ maxScale?: number;
1990
+ /**
1991
+ * The memory for the deployment in MB
1992
+ */
1993
+ memory?: number;
1994
+ /**
1995
+ * The port to serve the metrics on
1996
+ */
1997
+ metricPort?: number;
1998
+ /**
1999
+ * The maximum number of replicas for the deployment.
2000
+ */
2001
+ minScale?: number;
2002
+ /**
2003
+ * The slug name of the origin model at HuggingFace.
2004
+ */
2005
+ model?: string;
2006
+ /**
2007
+ * The organization of the model
2008
+ */
2009
+ organization?: string;
2010
+ ports?: Ports;
2011
+ /**
2012
+ * The readiness probe. Should be a Kubernetes Probe type
2013
+ */
2014
+ startupProbe?: {
2015
+ [key: string]: unknown;
2016
+ };
2017
+ /**
2018
+ * The timeout for the deployment in seconds
2019
+ */
2020
+ timeout?: number;
2021
+ /**
2022
+ * The TTL for the deployment in seconds - 30m, 24h, 7d
2023
+ */
2024
+ ttl?: string;
2025
+ /**
2026
+ * The type of origin for the deployment (hf_private_endpoint, hf_public_endpoint)
2027
+ */
2028
+ type?: string;
2029
+ };
2030
+ /**
2031
+ * Micro VM for running agentic tasks
2032
+ */
2033
+ export type Sandbox = {
2034
+ events?: CoreEvents;
2035
+ /**
2036
+ * Last time the sandbox was used (read-only, managed by the system)
2037
+ */
2038
+ lastUsedAt?: string;
2039
+ metadata?: Metadata;
2040
+ spec?: SandboxSpec;
2041
+ /**
2042
+ * Sandbox status
2043
+ */
2044
+ status?: string;
2045
+ /**
2046
+ * TTL timestamp for automatic deletion (optional, nil means no auto-deletion)
2047
+ */
2048
+ ttl?: number;
2049
+ };
2050
+ /**
2051
+ * Sandbox definition for admin store operations
2052
+ */
2053
+ export type SandboxDefinition = {
2054
+ /**
2055
+ * Categories of the defintion
2056
+ */
2057
+ categories?: Array<unknown>;
2058
+ /**
2059
+ * If the definition is coming soon
2060
+ */
2061
+ coming_soon?: boolean;
2062
+ /**
2063
+ * Description of the defintion
2064
+ */
2065
+ description?: string;
2066
+ /**
2067
+ * Display name of the definition
2068
+ */
2069
+ displayName?: string;
2070
+ /**
2071
+ * If the definition is enterprise
2072
+ */
2073
+ enterprise?: boolean;
2074
+ /**
2075
+ * Icon of the definition
2076
+ */
2077
+ icon?: string;
2078
+ /**
2079
+ * Image of the Sandbox definition
2080
+ */
2081
+ image?: string;
2082
+ /**
2083
+ * Long description of the defintion
2084
+ */
2085
+ longDescription?: string;
2086
+ /**
2087
+ * Memory of the Sandbox definition in MB
2088
+ */
2089
+ memory?: number;
2090
+ /**
2091
+ * Name of the artifact
2092
+ */
2093
+ name?: string;
2094
+ ports?: Ports;
2095
+ /**
2096
+ * URL of the definition
2097
+ */
2098
+ url?: string;
2099
+ };
2100
+ /**
2101
+ * Sandbox specification
2102
+ */
2103
+ export type SandboxSpec = CoreSpec & {
2104
+ /**
2105
+ * AWS region where the sandbox should be created (e.g. us-west-2, eu-west-1)
2106
+ */
2107
+ region?: string;
2108
+ volumes?: VolumeAttachments;
2109
+ };
2110
+ /**
2111
+ * Name of a Sandbox definition
2112
+ */
2113
+ export type SandboxStoreDefinitionName = unknown;
2114
+ /**
2115
+ * Configuration for a serverless deployment
2116
+ */
2117
+ export type ServerlessConfig = {
2118
+ /**
2119
+ * The configuration for the deployment
2120
+ */
2121
+ configuration?: {
2122
+ [key: string]: unknown;
2123
+ };
2124
+ /**
2125
+ * The maximum number of retries for the deployment
2126
+ */
2127
+ maxRetries?: number;
2128
+ /**
2129
+ * The minimum number of replicas for the deployment. Can be 0 or 1 (in which case the deployment is always running in at least one location).
2130
+ */
2131
+ maxScale?: number;
2132
+ /**
2133
+ * The maximum number of replicas for the deployment.
2134
+ */
2135
+ minScale?: number;
2136
+ /**
2137
+ * The timeout for the deployment in seconds
2138
+ */
2139
+ timeout?: number;
2140
+ };
2141
+ /**
2142
+ * Configuration, this is a key value storage. In your object you can retrieve the value with config[key]
2143
+ */
2144
+ export type SpecConfiguration = {
2145
+ /**
2146
+ * ACconfiguration secret
2147
+ */
2148
+ secret?: boolean;
2149
+ /**
2150
+ * Configuration value
2151
+ */
2152
+ value?: string;
2153
+ };
2154
+ /**
2155
+ * Response when starting a Sandbox
2156
+ */
2157
+ export type StartSandbox = {
2158
+ /**
2159
+ * Human readable message about the start operation
2160
+ */
2161
+ message?: string;
2162
+ metadata?: Metadata;
2163
+ /**
2164
+ * Status of the Sandbox start operation
2165
+ */
2166
+ status?: string;
2167
+ };
2168
+ /**
2169
+ * Response when stopping a Sandbox
2170
+ */
2171
+ export type StopSandbox = {
2172
+ /**
2173
+ * Human readable message about the stop operation
2174
+ */
2175
+ message?: string;
2176
+ metadata?: Metadata;
2177
+ /**
2178
+ * Status of the Sandbox stop operation
2179
+ */
2180
+ status?: string;
2181
+ };
2182
+ /**
2183
+ * Store agent
2184
+ */
2185
+ export type StoreAgent = TimeFields & OwnerFields & {
2186
+ /**
2187
+ * Store agent configuration
2188
+ */
2189
+ configuration?: Array<StoreConfiguration>;
2190
+ /**
2191
+ * Store agent description
2192
+ */
2193
+ description?: string;
2194
+ /**
2195
+ * Store agent display name
2196
+ */
2197
+ displayName?: string;
2198
+ /**
2199
+ * Store agent image
2200
+ */
2201
+ image?: string;
2202
+ /**
2203
+ * Store agent labels
2204
+ */
2205
+ labels?: {
2206
+ [key: string]: unknown;
2207
+ };
2208
+ /**
2209
+ * Store agent name
2210
+ */
2211
+ name?: string;
2212
+ /**
2213
+ * Store agent prompt, this is to define what the agent does
2214
+ */
2215
+ prompt?: string;
2216
+ };
2217
+ /**
2218
+ * Store configuration for resources (eg: agent, function, etc)
2219
+ */
2220
+ export type StoreConfiguration = {
2221
+ /**
2222
+ * Available models for the configuration
2223
+ */
2224
+ availableModels?: Array<string>;
2225
+ /**
2226
+ * Store configuration description
2227
+ */
2228
+ description?: string;
2229
+ /**
2230
+ * Store configuration display name
2231
+ */
2232
+ displayName?: string;
2233
+ /**
2234
+ * Conditional rendering for the configuration, example: provider === 'openai'
2235
+ */
2236
+ if?: string;
2237
+ /**
2238
+ * Store configuration name
2239
+ */
2240
+ name?: string;
2241
+ options?: Array<StoreConfigurationOption>;
2242
+ /**
2243
+ * Store configuration required
2244
+ */
2245
+ required?: boolean;
2246
+ /**
2247
+ * Store configuration secret
2248
+ */
2249
+ secret?: boolean;
2250
+ /**
2251
+ * Store configuration type
2252
+ */
2253
+ type?: string;
2254
+ };
2255
+ /**
2256
+ * Store configuration options for a select type configuration
2257
+ */
2258
+ export type StoreConfigurationOption = {
2259
+ /**
2260
+ * Conditional rendering for the configuration option, example: provider === 'openai'
2261
+ */
2262
+ if?: string;
2263
+ /**
2264
+ * Store configuration option label
2265
+ */
2266
+ label?: string;
2267
+ /**
2268
+ * Store configuration option value
2269
+ */
2270
+ value?: string;
2271
+ };
2272
+ /**
2273
+ * Blaxel template
2274
+ */
2275
+ export type Template = {
2276
+ /**
2277
+ * Default branch of the template
2278
+ */
2279
+ defaultBranch?: string;
2280
+ /**
2281
+ * Description of the template
2282
+ */
2283
+ description?: string;
2284
+ /**
2285
+ * Number of downloads/clones of the repository
2286
+ */
2287
+ downloadCount?: number;
2288
+ /**
2289
+ * Number of forks the repository has
2290
+ */
2291
+ forksCount?: number;
2292
+ /**
2293
+ * URL to the template's icon
2294
+ */
2295
+ icon?: string;
2296
+ /**
2297
+ * URL to the template's icon in dark mode
2298
+ */
2299
+ iconDark?: string;
2300
+ /**
2301
+ * Name of the template
2302
+ */
2303
+ name?: string;
2304
+ /**
2305
+ * SHA of the variable
2306
+ */
2307
+ sha?: string;
2308
+ /**
2309
+ * Number of stars the repository has
2310
+ */
2311
+ starCount?: number;
2312
+ /**
2313
+ * Topic of the template
2314
+ */
2315
+ topics?: Array<string>;
2316
+ /**
2317
+ * URL of the template
2318
+ */
2319
+ url?: string;
2320
+ /**
2321
+ * Variables of the template
2322
+ */
2323
+ variables?: Array<TemplateVariable>;
2324
+ };
2325
+ /**
2326
+ * Blaxel template variable
2327
+ */
2328
+ export type TemplateVariable = {
2329
+ /**
2330
+ * Description of the variable
2331
+ */
2332
+ description?: string;
2333
+ /**
2334
+ * Integration of the variable
2335
+ */
2336
+ integration?: string;
2337
+ /**
2338
+ * Name of the variable
2339
+ */
2340
+ name?: string;
2341
+ /**
2342
+ * Path of the variable
2343
+ */
2344
+ path?: string;
2345
+ /**
2346
+ * Whether the variable is secret
2347
+ */
2348
+ secret?: boolean;
2349
+ };
2350
+ /**
2351
+ * Time fields for Persistance
2352
+ */
2353
+ export type TimeFields = {
2354
+ /**
2355
+ * The date and time when the resource was created
2356
+ */
2357
+ createdAt?: string;
2358
+ /**
2359
+ * The date and time when the resource was updated
2360
+ */
2361
+ updatedAt?: string;
2362
+ };
2363
+ /**
2364
+ * Time to first token over time metrics
2365
+ */
2366
+ export type TimeToFirstTokenOverTimeMetrics = {
2367
+ timeToFirstTokenOverTime?: RequestDurationOverTimeMetric;
2368
+ };
2369
+ /**
2370
+ * Token rate metric
2371
+ */
2372
+ export type TokenRateMetric = {
2373
+ /**
2374
+ * Model ID
2375
+ */
2376
+ model?: string;
2377
+ /**
2378
+ * Provider name
2379
+ */
2380
+ provider?: string;
2381
+ /**
2382
+ * Provider integration name
2383
+ */
2384
+ providerName?: string;
2385
+ /**
2386
+ * Timestamp
2387
+ */
2388
+ timestamp?: string;
2389
+ /**
2390
+ * Total tokens
2391
+ */
2392
+ tokenTotal?: number;
2393
+ /**
2394
+ * Trend
2395
+ */
2396
+ trend?: number;
2397
+ };
2398
+ /**
2399
+ * Token rate metrics
2400
+ */
2401
+ export type TokenRateMetrics = {
2402
+ tokenRate?: TokenRateMetric;
2403
+ tokenRateInput?: TokenRateMetric;
2404
+ tokenRateOutput?: TokenRateMetric;
2405
+ };
2406
+ /**
2407
+ * Token total metric
2408
+ */
2409
+ export type TokenTotalMetric = {
2410
+ /**
2411
+ * Average input token per request
2412
+ */
2413
+ averageTokenInputPerRequest?: number;
2414
+ /**
2415
+ * Average output token per request
2416
+ */
2417
+ averageTokenOutputPerRequest?: number;
2418
+ /**
2419
+ * Average token per request
2420
+ */
2421
+ averageTokenPerRequest?: number;
2422
+ /**
2423
+ * Total input tokens
2424
+ */
2425
+ tokenInput?: number;
2426
+ /**
2427
+ * Total output tokens
2428
+ */
2429
+ tokenOutput?: number;
2430
+ /**
2431
+ * Total tokens
2432
+ */
2433
+ tokenTotal?: number;
2434
+ };
2435
+ /**
2436
+ * Trace IDs response
2437
+ */
2438
+ export type TraceIdsResponse = {
2439
+ [key: string]: unknown;
2440
+ };
2441
+ /**
2442
+ * Trigger configuration
2443
+ */
2444
+ export type Trigger = {
2445
+ configuration?: TriggerConfiguration;
2446
+ /**
2447
+ * The id of the trigger
2448
+ */
2449
+ id?: string;
2450
+ /**
2451
+ * The type of trigger, can be http or http-async
2452
+ */
2453
+ type?: string;
2454
+ };
2455
+ /**
2456
+ * Trigger configuration
2457
+ */
2458
+ export type TriggerConfiguration = {
2459
+ /**
2460
+ * The authentication type of the trigger
2461
+ */
2462
+ authenticationType?: string;
2463
+ /**
2464
+ * The path of the trigger
2465
+ */
2466
+ path?: string;
2467
+ /**
2468
+ * The retry of the trigger
2469
+ */
2470
+ retry?: number;
2471
+ /**
2472
+ * The schedule of the trigger, cron expression * * * * *
2473
+ */
2474
+ schedule?: string;
2475
+ /**
2476
+ * The tasks configuration of the cronjob
2477
+ */
2478
+ tasks?: Array<TriggerConfigurationTask>;
2479
+ };
2480
+ /**
2481
+ * The tasks configuration of the cronjob
2482
+ */
2483
+ export type TriggerConfigurationTask = {
2484
+ [key: string]: unknown;
2485
+ };
2486
+ /**
2487
+ * Triggers to use your agent
2488
+ */
2489
+ export type Triggers = Array<Trigger>;
2490
+ /**
2491
+ * Volume resource for persistent storage
2492
+ */
2493
+ export type Volume = {
2494
+ events?: CoreEvents;
2495
+ metadata?: Metadata;
2496
+ spec?: VolumeSpec;
2497
+ state?: VolumeState;
2498
+ /**
2499
+ * Volume status computed from events
2500
+ */
2501
+ status?: string;
2502
+ /**
2503
+ * Timestamp when the volume was marked for termination
2504
+ */
2505
+ terminatedAt?: string;
2506
+ };
2507
+ /**
2508
+ * Volume attachment configuration for sandbox
2509
+ */
2510
+ export type VolumeAttachment = {
2511
+ /**
2512
+ * Mount path in the container
2513
+ */
2514
+ mountPath?: string;
2515
+ /**
2516
+ * Name of the volume to attach
2517
+ */
2518
+ name?: string;
2519
+ /**
2520
+ * Whether the volume is mounted as read-only
2521
+ */
2522
+ readOnly?: boolean;
2523
+ };
2524
+ export type VolumeAttachments = Array<VolumeAttachment>;
2525
+ /**
2526
+ * Volume specification - immutable configuration
2527
+ */
2528
+ export type VolumeSpec = {
2529
+ /**
2530
+ * AWS region where the volume should be created (e.g. us-west-2, eu-west-1)
2531
+ */
2532
+ region?: string;
2533
+ /**
2534
+ * Size of the volume in MB
2535
+ */
2536
+ size?: number;
2537
+ };
2538
+ /**
2539
+ * Volume state - mutable runtime state
2540
+ */
2541
+ export type VolumeState = {
2542
+ /**
2543
+ * Resource this volume is attached to (e.g. "sandbox:my-sandbox", "model:my-model")
2544
+ */
2545
+ attachedTo?: string;
2546
+ };
2547
+ /**
2548
+ * WebSocket connection details
2549
+ */
2550
+ export type WebsocketChannel = TimeFields & {
2551
+ /**
2552
+ * Unique connection ID
2553
+ */
2554
+ connection_id?: string;
2555
+ /**
2556
+ * Workspace the connection belongs to
2557
+ */
2558
+ workspace?: string;
2559
+ };
2560
+ /**
2561
+ * WebSocket connection details
2562
+ */
2563
+ export type WebsocketMessage = TimeFields & {
2564
+ /**
2565
+ * Unique message ID
2566
+ */
2567
+ id?: string;
2568
+ /**
2569
+ * Message
2570
+ */
2571
+ message?: string;
2572
+ /**
2573
+ * TTL timestamp for automatic deletion
2574
+ */
2575
+ ttl?: number;
2576
+ /**
2577
+ * Workspace the connection belongs to
2578
+ */
2579
+ workspace?: string;
2580
+ };
2581
+ /**
2582
+ * Workspace
2583
+ */
2584
+ export type Workspace = TimeFields & OwnerFields & {
2585
+ /**
2586
+ * Workspace account id
2587
+ */
2588
+ accountId?: string;
2589
+ /**
2590
+ * Workspace display name
2591
+ */
2592
+ displayName?: string;
2593
+ /**
2594
+ * Autogenerated unique workspace id
2595
+ */
2596
+ id?: string;
2597
+ /**
2598
+ * Workspace labels
2599
+ */
2600
+ labels?: {
2601
+ [key: string]: unknown;
2602
+ };
2603
+ /**
2604
+ * Workspace name
2605
+ */
2606
+ name?: string;
2607
+ /**
2608
+ * Workspace write region
2609
+ */
2610
+ region?: string;
2611
+ runtime?: WorkspaceRuntime;
2612
+ };
2613
+ /**
2614
+ * Workspace runtime
2615
+ */
2616
+ export type WorkspaceRuntime = {
2617
+ /**
2618
+ * Workspace generation
2619
+ */
2620
+ generation?: string;
2621
+ };
2622
+ /**
2623
+ * Workspace user
2624
+ */
2625
+ export type WorkspaceUser = {
2626
+ /**
2627
+ * Whether the user has accepted the workspace invitation
2628
+ */
2629
+ accepted?: boolean;
2630
+ /**
2631
+ * Workspace user email
2632
+ */
2633
+ email?: string;
2634
+ /**
2635
+ * Whether the user's email has been verified
2636
+ */
2637
+ email_verified?: boolean;
2638
+ /**
2639
+ * Workspace user family name
2640
+ */
2641
+ family_name?: string;
2642
+ /**
2643
+ * Workspace user given name
2644
+ */
2645
+ given_name?: string;
2646
+ /**
2647
+ * Workspace user role
2648
+ */
2649
+ role?: string;
2650
+ /**
2651
+ * Workspace user identifier
2652
+ */
2653
+ sub?: string;
2654
+ };
2655
+ export type ListAgentsData = {
2656
+ body?: never;
2657
+ path?: never;
2658
+ query?: never;
2659
+ url: '/agents';
2660
+ };
2661
+ export type ListAgentsResponses = {
2662
+ /**
2663
+ * successful operation
2664
+ */
2665
+ 200: Array<Agent>;
2666
+ };
2667
+ export type ListAgentsResponse = ListAgentsResponses[keyof ListAgentsResponses];
2668
+ export type CreateAgentData = {
2669
+ body: Agent;
2670
+ path?: never;
2671
+ query?: never;
2672
+ url: '/agents';
2673
+ };
2674
+ export type CreateAgentResponses = {
2675
+ /**
2676
+ * successful operation
2677
+ */
2678
+ 200: Agent;
2679
+ };
2680
+ export type CreateAgentResponse = CreateAgentResponses[keyof CreateAgentResponses];
2681
+ export type DeleteAgentData = {
2682
+ body?: never;
2683
+ path: {
2684
+ /**
2685
+ * Name of the agent
2686
+ */
2687
+ agentName: string;
2688
+ };
2689
+ query?: never;
2690
+ url: '/agents/{agentName}';
2691
+ };
2692
+ export type DeleteAgentResponses = {
2693
+ /**
2694
+ * successful operation
2695
+ */
2696
+ 200: Agent;
2697
+ };
2698
+ export type DeleteAgentResponse = DeleteAgentResponses[keyof DeleteAgentResponses];
2699
+ export type GetAgentData = {
2700
+ body?: never;
2701
+ path: {
2702
+ /**
2703
+ * Name of the agent
2704
+ */
2705
+ agentName: string;
2706
+ };
2707
+ query?: never;
2708
+ url: '/agents/{agentName}';
2709
+ };
2710
+ export type GetAgentResponses = {
2711
+ /**
2712
+ * successful operation
2713
+ */
2714
+ 200: Agent;
2715
+ };
2716
+ export type GetAgentResponse = GetAgentResponses[keyof GetAgentResponses];
2717
+ export type UpdateAgentData = {
2718
+ body: Agent;
2719
+ path: {
2720
+ /**
2721
+ * Name of the agent
2722
+ */
2723
+ agentName: string;
2724
+ };
2725
+ query?: never;
2726
+ url: '/agents/{agentName}';
2727
+ };
2728
+ export type UpdateAgentResponses = {
2729
+ /**
2730
+ * successful operation
2731
+ */
2732
+ 200: Agent;
2733
+ };
2734
+ export type UpdateAgentResponse = UpdateAgentResponses[keyof UpdateAgentResponses];
2735
+ export type ListAgentRevisionsData = {
2736
+ body?: never;
2737
+ path: {
2738
+ /**
2739
+ * Name of the agent
2740
+ */
2741
+ agentName: string;
2742
+ };
2743
+ query?: never;
2744
+ url: '/agents/{agentName}/revisions';
2745
+ };
2746
+ export type ListAgentRevisionsResponses = {
2747
+ /**
2748
+ * successful operation
2749
+ */
2750
+ 200: Array<RevisionMetadata>;
2751
+ };
2752
+ export type ListAgentRevisionsResponse = ListAgentRevisionsResponses[keyof ListAgentRevisionsResponses];
2753
+ export type GetConfigurationData = {
2754
+ body?: never;
2755
+ path?: never;
2756
+ query?: never;
2757
+ url: '/configuration';
2758
+ };
2759
+ export type GetConfigurationResponses = {
2760
+ /**
2761
+ * Configuration of the control plane
2762
+ */
2763
+ 200: Configuration;
2764
+ };
2765
+ export type GetConfigurationResponse = GetConfigurationResponses[keyof GetConfigurationResponses];
2766
+ export type ListCustomDomainsData = {
2767
+ body?: never;
2768
+ path?: never;
2769
+ query?: never;
2770
+ url: '/customdomains';
2771
+ };
2772
+ export type ListCustomDomainsResponses = {
2773
+ /**
2774
+ * successful operation
2775
+ */
2776
+ 200: Array<CustomDomain>;
2777
+ };
2778
+ export type ListCustomDomainsResponse = ListCustomDomainsResponses[keyof ListCustomDomainsResponses];
2779
+ export type CreateCustomDomainData = {
2780
+ body: CustomDomain;
2781
+ path?: never;
2782
+ query?: never;
2783
+ url: '/customdomains';
2784
+ };
2785
+ export type CreateCustomDomainResponses = {
2786
+ /**
2787
+ * successful operation
2788
+ */
2789
+ 200: CustomDomain;
2790
+ };
2791
+ export type CreateCustomDomainResponse = CreateCustomDomainResponses[keyof CreateCustomDomainResponses];
2792
+ export type DeleteCustomDomainData = {
2793
+ body?: never;
2794
+ path: {
2795
+ /**
2796
+ * Name of the custom domain
2797
+ */
2798
+ domainName: string;
2799
+ };
2800
+ query?: never;
2801
+ url: '/customdomains/{domainName}';
2802
+ };
2803
+ export type DeleteCustomDomainResponses = {
2804
+ /**
2805
+ * successful operation
2806
+ */
2807
+ 200: CustomDomain;
2808
+ };
2809
+ export type DeleteCustomDomainResponse = DeleteCustomDomainResponses[keyof DeleteCustomDomainResponses];
2810
+ export type GetCustomDomainData = {
2811
+ body?: never;
2812
+ path: {
2813
+ /**
2814
+ * Name of the custom domain
2815
+ */
2816
+ domainName: string;
2817
+ };
2818
+ query?: never;
2819
+ url: '/customdomains/{domainName}';
2820
+ };
2821
+ export type GetCustomDomainResponses = {
2822
+ /**
2823
+ * successful operation
2824
+ */
2825
+ 200: CustomDomain;
2826
+ };
2827
+ export type GetCustomDomainResponse = GetCustomDomainResponses[keyof GetCustomDomainResponses];
2828
+ export type UpdateCustomDomainData = {
2829
+ body: CustomDomain;
2830
+ path: {
2831
+ /**
2832
+ * Name of the custom domain
2833
+ */
2834
+ domainName: string;
2835
+ };
2836
+ query?: never;
2837
+ url: '/customdomains/{domainName}';
2838
+ };
2839
+ export type UpdateCustomDomainResponses = {
2840
+ /**
2841
+ * successful operation
2842
+ */
2843
+ 200: CustomDomain;
2844
+ };
2845
+ export type UpdateCustomDomainResponse = UpdateCustomDomainResponses[keyof UpdateCustomDomainResponses];
2846
+ export type VerifyCustomDomainData = {
2847
+ body?: never;
2848
+ path: {
2849
+ /**
2850
+ * Name of the custom domain
2851
+ */
2852
+ domainName: string;
2853
+ };
2854
+ query?: never;
2855
+ url: '/customdomains/{domainName}/verify';
2856
+ };
2857
+ export type VerifyCustomDomainResponses = {
2858
+ /**
2859
+ * successful operation
2860
+ */
2861
+ 200: CustomDomain;
2862
+ };
2863
+ export type VerifyCustomDomainResponse = VerifyCustomDomainResponses[keyof VerifyCustomDomainResponses];
2864
+ export type ListFunctionsData = {
2865
+ body?: never;
2866
+ path?: never;
2867
+ query?: never;
2868
+ url: '/functions';
2869
+ };
2870
+ export type ListFunctionsResponses = {
2871
+ /**
2872
+ * successful operation
2873
+ */
2874
+ 200: Array<_Function>;
2875
+ };
2876
+ export type ListFunctionsResponse = ListFunctionsResponses[keyof ListFunctionsResponses];
2877
+ export type CreateFunctionData = {
2878
+ body: _Function;
2879
+ path?: never;
2880
+ query?: never;
2881
+ url: '/functions';
2882
+ };
2883
+ export type CreateFunctionResponses = {
2884
+ /**
2885
+ * successful operation
2886
+ */
2887
+ 200: _Function;
2888
+ };
2889
+ export type CreateFunctionResponse = CreateFunctionResponses[keyof CreateFunctionResponses];
2890
+ export type DeleteFunctionData = {
2891
+ body?: never;
2892
+ path: {
2893
+ /**
2894
+ * Name of the function
2895
+ */
2896
+ functionName: string;
2897
+ };
2898
+ query?: never;
2899
+ url: '/functions/{functionName}';
2900
+ };
2901
+ export type DeleteFunctionResponses = {
2902
+ /**
2903
+ * successful operation
2904
+ */
2905
+ 200: _Function;
2906
+ };
2907
+ export type DeleteFunctionResponse = DeleteFunctionResponses[keyof DeleteFunctionResponses];
2908
+ export type GetFunctionData = {
2909
+ body?: never;
2910
+ path: {
2911
+ /**
2912
+ * Name of the function
2913
+ */
2914
+ functionName: string;
2915
+ };
2916
+ query?: never;
2917
+ url: '/functions/{functionName}';
2918
+ };
2919
+ export type GetFunctionResponses = {
2920
+ /**
2921
+ * successful operation
2922
+ */
2923
+ 200: _Function;
2924
+ };
2925
+ export type GetFunctionResponse = GetFunctionResponses[keyof GetFunctionResponses];
2926
+ export type UpdateFunctionData = {
2927
+ body: _Function;
2928
+ path: {
2929
+ /**
2930
+ * Name of the function
2931
+ */
2932
+ functionName: string;
2933
+ };
2934
+ query?: never;
2935
+ url: '/functions/{functionName}';
2936
+ };
2937
+ export type UpdateFunctionResponses = {
2938
+ /**
2939
+ * successful operation
2940
+ */
2941
+ 200: _Function;
2942
+ };
2943
+ export type UpdateFunctionResponse = UpdateFunctionResponses[keyof UpdateFunctionResponses];
2944
+ export type ListFunctionRevisionsData = {
2945
+ body?: never;
2946
+ path: {
2947
+ /**
2948
+ * Name of the function
2949
+ */
2950
+ functionName: string;
2951
+ };
2952
+ query?: never;
2953
+ url: '/functions/{functionName}/revisions';
2954
+ };
2955
+ export type ListFunctionRevisionsResponses = {
2956
+ /**
2957
+ * successful operation
2958
+ */
2959
+ 200: Array<RevisionMetadata>;
2960
+ };
2961
+ export type ListFunctionRevisionsResponse = ListFunctionRevisionsResponses[keyof ListFunctionRevisionsResponses];
2962
+ export type GetIntegrationData = {
2963
+ body?: never;
2964
+ path: {
2965
+ /**
2966
+ * Name of the integration
2967
+ */
2968
+ integrationName: string;
2969
+ };
2970
+ query?: never;
2971
+ url: '/integrations/{integrationName}';
2972
+ };
2973
+ export type GetIntegrationResponses = {
2974
+ /**
2975
+ * successful operation
2976
+ */
2977
+ 200: Integration;
2978
+ };
2979
+ export type GetIntegrationResponse = GetIntegrationResponses[keyof GetIntegrationResponses];
2980
+ export type ListIntegrationConnectionsData = {
2981
+ body?: never;
2982
+ path?: never;
2983
+ query?: never;
2984
+ url: '/integrations/connections';
2985
+ };
2986
+ export type ListIntegrationConnectionsResponses = {
2987
+ /**
2988
+ * successful operation
2989
+ */
2990
+ 200: Array<IntegrationConnection>;
2991
+ };
2992
+ export type ListIntegrationConnectionsResponse = ListIntegrationConnectionsResponses[keyof ListIntegrationConnectionsResponses];
2993
+ export type CreateIntegrationConnectionData = {
2994
+ body: IntegrationConnection;
2995
+ path?: never;
2996
+ query?: never;
2997
+ url: '/integrations/connections';
2998
+ };
2999
+ export type CreateIntegrationConnectionResponses = {
3000
+ /**
3001
+ * successful operation
3002
+ */
3003
+ 200: IntegrationConnection;
3004
+ };
3005
+ export type CreateIntegrationConnectionResponse = CreateIntegrationConnectionResponses[keyof CreateIntegrationConnectionResponses];
3006
+ export type DeleteIntegrationConnectionData = {
3007
+ body?: never;
3008
+ path: {
3009
+ /**
3010
+ * Name of the integrationconnection
3011
+ */
3012
+ connectionName: string;
3013
+ };
3014
+ query?: never;
3015
+ url: '/integrations/connections/{connectionName}';
3016
+ };
3017
+ export type DeleteIntegrationConnectionResponses = {
3018
+ /**
3019
+ * successful operation
3020
+ */
3021
+ 200: IntegrationConnection;
3022
+ };
3023
+ export type DeleteIntegrationConnectionResponse = DeleteIntegrationConnectionResponses[keyof DeleteIntegrationConnectionResponses];
3024
+ export type GetIntegrationConnectionData = {
3025
+ body?: never;
3026
+ path: {
3027
+ /**
3028
+ * Name of the integrationconnection
3029
+ */
3030
+ connectionName: string;
3031
+ };
3032
+ query?: never;
3033
+ url: '/integrations/connections/{connectionName}';
3034
+ };
3035
+ export type GetIntegrationConnectionResponses = {
3036
+ /**
3037
+ * successful operation
3038
+ */
3039
+ 200: IntegrationConnection;
3040
+ };
3041
+ export type GetIntegrationConnectionResponse = GetIntegrationConnectionResponses[keyof GetIntegrationConnectionResponses];
3042
+ export type UpdateIntegrationConnectionData = {
3043
+ body: IntegrationConnection;
3044
+ path: {
3045
+ /**
3046
+ * Name of the integrationconnection
3047
+ */
3048
+ connectionName: string;
3049
+ };
3050
+ query?: never;
3051
+ url: '/integrations/connections/{connectionName}';
3052
+ };
3053
+ export type UpdateIntegrationConnectionResponses = {
3054
+ /**
3055
+ * successful operation
3056
+ */
3057
+ 200: IntegrationConnection;
3058
+ };
3059
+ export type UpdateIntegrationConnectionResponse = UpdateIntegrationConnectionResponses[keyof UpdateIntegrationConnectionResponses];
3060
+ export type GetIntegrationConnectionModelEndpointConfigurationsData = {
3061
+ body?: never;
3062
+ path: {
3063
+ /**
3064
+ * Name of the connection
3065
+ */
3066
+ connectionName: string;
3067
+ };
3068
+ query?: never;
3069
+ url: '/integrations/connections/{connectionName}/endpointConfigurations';
3070
+ };
3071
+ export type GetIntegrationConnectionModelEndpointConfigurationsResponses = {
3072
+ /**
3073
+ * successful operation
3074
+ */
3075
+ 200: unknown;
3076
+ };
3077
+ export type ListIntegrationConnectionModelsData = {
3078
+ body?: never;
3079
+ path: {
3080
+ /**
3081
+ * Name of the connection
3082
+ */
3083
+ connectionName: string;
3084
+ };
3085
+ query?: never;
3086
+ url: '/integrations/connections/{connectionName}/models';
3087
+ };
3088
+ export type ListIntegrationConnectionModelsResponses = {
3089
+ /**
3090
+ * successful operation
3091
+ */
3092
+ 200: unknown;
3093
+ };
3094
+ export type GetIntegrationConnectionModelData = {
3095
+ body?: never;
3096
+ path: {
3097
+ /**
3098
+ * Name of the connection
3099
+ */
3100
+ connectionName: string;
3101
+ /**
3102
+ * Model ID
3103
+ */
3104
+ modelId: string;
3105
+ };
3106
+ query?: never;
3107
+ url: '/integrations/connections/{connectionName}/models/{modelId}';
3108
+ };
3109
+ export type GetIntegrationConnectionModelResponses = {
3110
+ /**
3111
+ * successful operation
3112
+ */
3113
+ 200: unknown;
3114
+ };
3115
+ export type ListJobsData = {
3116
+ body?: never;
3117
+ path?: never;
3118
+ query?: never;
3119
+ url: '/jobs';
3120
+ };
3121
+ export type ListJobsResponses = {
3122
+ /**
3123
+ * successful operation
3124
+ */
3125
+ 200: Array<Job>;
3126
+ };
3127
+ export type ListJobsResponse = ListJobsResponses[keyof ListJobsResponses];
3128
+ export type CreateJobData = {
3129
+ body: Job;
3130
+ path?: never;
3131
+ query?: never;
3132
+ url: '/jobs';
3133
+ };
3134
+ export type CreateJobResponses = {
3135
+ /**
3136
+ * successful operation
3137
+ */
3138
+ 200: Job;
3139
+ };
3140
+ export type CreateJobResponse = CreateJobResponses[keyof CreateJobResponses];
3141
+ export type DeleteJobData = {
3142
+ body?: never;
3143
+ path: {
3144
+ /**
3145
+ * Name of the job
3146
+ */
3147
+ jobId: string;
3148
+ };
3149
+ query?: never;
3150
+ url: '/jobs/{jobId}';
3151
+ };
3152
+ export type DeleteJobResponses = {
3153
+ /**
3154
+ * successful operation
3155
+ */
3156
+ 200: Job;
3157
+ };
3158
+ export type DeleteJobResponse = DeleteJobResponses[keyof DeleteJobResponses];
3159
+ export type GetJobData = {
3160
+ body?: never;
3161
+ path: {
3162
+ /**
3163
+ * Name of the job
3164
+ */
3165
+ jobId: string;
3166
+ };
3167
+ query?: never;
3168
+ url: '/jobs/{jobId}';
3169
+ };
3170
+ export type GetJobResponses = {
3171
+ /**
3172
+ * successful operation
3173
+ */
3174
+ 200: Model;
3175
+ };
3176
+ export type GetJobResponse = GetJobResponses[keyof GetJobResponses];
3177
+ export type UpdateJobData = {
3178
+ body: Job;
3179
+ path: {
3180
+ /**
3181
+ * Name of the job
3182
+ */
3183
+ jobId: string;
3184
+ };
3185
+ query?: never;
3186
+ url: '/jobs/{jobId}';
3187
+ };
3188
+ export type UpdateJobResponses = {
3189
+ /**
3190
+ * successful operation
3191
+ */
3192
+ 200: Job;
3193
+ };
3194
+ export type UpdateJobResponse = UpdateJobResponses[keyof UpdateJobResponses];
3195
+ export type ListJobRevisionsData = {
3196
+ body?: never;
3197
+ path: {
3198
+ /**
3199
+ * Name of the job
3200
+ */
3201
+ jobId: string;
3202
+ };
3203
+ query?: never;
3204
+ url: '/jobs/{jobId}/revisions';
3205
+ };
3206
+ export type ListJobRevisionsResponses = {
3207
+ /**
3208
+ * successful operation
3209
+ */
3210
+ 200: Array<RevisionMetadata>;
3211
+ };
3212
+ export type ListJobRevisionsResponse = ListJobRevisionsResponses[keyof ListJobRevisionsResponses];
3213
+ export type ListLocationsData = {
3214
+ body?: never;
3215
+ path?: never;
3216
+ query?: never;
3217
+ url: '/locations';
3218
+ };
3219
+ export type ListLocationsResponses = {
3220
+ /**
3221
+ * successful operation
3222
+ */
3223
+ 200: Array<LocationResponse>;
3224
+ };
3225
+ export type ListLocationsResponse = ListLocationsResponses[keyof ListLocationsResponses];
3226
+ export type ListMcpHubDefinitionsData = {
3227
+ body?: never;
3228
+ path?: never;
3229
+ query?: never;
3230
+ url: '/mcp/hub';
3231
+ };
3232
+ export type ListMcpHubDefinitionsResponses = {
3233
+ /**
3234
+ * successful operation
3235
+ */
3236
+ 200: Array<McpDefinition>;
3237
+ };
3238
+ export type ListMcpHubDefinitionsResponse = ListMcpHubDefinitionsResponses[keyof ListMcpHubDefinitionsResponses];
3239
+ export type ListModelsData = {
3240
+ body?: never;
3241
+ path?: never;
3242
+ query?: never;
3243
+ url: '/models';
3244
+ };
3245
+ export type ListModelsResponses = {
3246
+ /**
3247
+ * successful operation
3248
+ */
3249
+ 200: Array<Model>;
3250
+ };
3251
+ export type ListModelsResponse = ListModelsResponses[keyof ListModelsResponses];
3252
+ export type CreateModelData = {
3253
+ body: Model;
3254
+ path?: never;
3255
+ query?: never;
3256
+ url: '/models';
3257
+ };
3258
+ export type CreateModelResponses = {
3259
+ /**
3260
+ * successful operation
3261
+ */
3262
+ 200: Model;
3263
+ };
3264
+ export type CreateModelResponse = CreateModelResponses[keyof CreateModelResponses];
3265
+ export type DeleteModelData = {
3266
+ body?: never;
3267
+ path: {
3268
+ /**
3269
+ * Name of the model
3270
+ */
3271
+ modelName: string;
3272
+ };
3273
+ query?: never;
3274
+ url: '/models/{modelName}';
3275
+ };
3276
+ export type DeleteModelResponses = {
3277
+ /**
3278
+ * successful operation
3279
+ */
3280
+ 200: Model;
3281
+ };
3282
+ export type DeleteModelResponse = DeleteModelResponses[keyof DeleteModelResponses];
3283
+ export type GetModelData = {
3284
+ body?: never;
3285
+ path: {
3286
+ /**
3287
+ * Name of the model
3288
+ */
3289
+ modelName: string;
3290
+ };
3291
+ query?: never;
3292
+ url: '/models/{modelName}';
3293
+ };
3294
+ export type GetModelResponses = {
3295
+ /**
3296
+ * successful operation
3297
+ */
3298
+ 200: Model;
3299
+ };
3300
+ export type GetModelResponse = GetModelResponses[keyof GetModelResponses];
3301
+ export type UpdateModelData = {
3302
+ body: Model;
3303
+ path: {
3304
+ /**
3305
+ * Name of the model
3306
+ */
3307
+ modelName: string;
3308
+ };
3309
+ query?: never;
3310
+ url: '/models/{modelName}';
3311
+ };
3312
+ export type UpdateModelResponses = {
3313
+ /**
3314
+ * successful operation
3315
+ */
3316
+ 200: Model;
3317
+ };
3318
+ export type UpdateModelResponse = UpdateModelResponses[keyof UpdateModelResponses];
3319
+ export type ListModelRevisionsData = {
3320
+ body?: never;
3321
+ path: {
3322
+ /**
3323
+ * Name of the model
3324
+ */
3325
+ modelName: string;
3326
+ };
3327
+ query?: never;
3328
+ url: '/models/{modelName}/revisions';
3329
+ };
3330
+ export type ListModelRevisionsResponses = {
3331
+ /**
3332
+ * successful operation
3333
+ */
3334
+ 200: Array<RevisionMetadata>;
3335
+ };
3336
+ export type ListModelRevisionsResponse = ListModelRevisionsResponses[keyof ListModelRevisionsResponses];
3337
+ export type ListPoliciesData = {
3338
+ body?: never;
3339
+ path?: never;
3340
+ query?: never;
3341
+ url: '/policies';
3342
+ };
3343
+ export type ListPoliciesResponses = {
3344
+ /**
3345
+ * successful operation
3346
+ */
3347
+ 200: Array<Policy>;
3348
+ };
3349
+ export type ListPoliciesResponse = ListPoliciesResponses[keyof ListPoliciesResponses];
3350
+ export type CreatePolicyData = {
3351
+ body: Policy;
3352
+ path?: never;
3353
+ query?: never;
3354
+ url: '/policies';
3355
+ };
3356
+ export type CreatePolicyResponses = {
3357
+ /**
3358
+ * successful operation
3359
+ */
3360
+ 200: Policy;
3361
+ };
3362
+ export type CreatePolicyResponse = CreatePolicyResponses[keyof CreatePolicyResponses];
3363
+ export type DeletePolicyData = {
3364
+ body?: never;
3365
+ path: {
3366
+ /**
3367
+ * Name of the policy
3368
+ */
3369
+ policyName: string;
3370
+ };
3371
+ query?: never;
3372
+ url: '/policies/{policyName}';
3373
+ };
3374
+ export type DeletePolicyResponses = {
3375
+ /**
3376
+ * successful operation
3377
+ */
3378
+ 200: Policy;
3379
+ };
3380
+ export type DeletePolicyResponse = DeletePolicyResponses[keyof DeletePolicyResponses];
3381
+ export type GetPolicyData = {
3382
+ body?: never;
3383
+ path: {
3384
+ /**
3385
+ * Name of the policy
3386
+ */
3387
+ policyName: string;
3388
+ };
3389
+ query?: never;
3390
+ url: '/policies/{policyName}';
3391
+ };
3392
+ export type GetPolicyResponses = {
3393
+ /**
3394
+ * successful operation
3395
+ */
3396
+ 200: Policy;
3397
+ };
3398
+ export type GetPolicyResponse = GetPolicyResponses[keyof GetPolicyResponses];
3399
+ export type UpdatePolicyData = {
3400
+ body: Policy;
3401
+ path: {
3402
+ /**
3403
+ * Name of the policy
3404
+ */
3405
+ policyName: string;
3406
+ };
3407
+ query?: never;
3408
+ url: '/policies/{policyName}';
3409
+ };
3410
+ export type UpdatePolicyResponses = {
3411
+ /**
3412
+ * successful operation
3413
+ */
3414
+ 200: Policy;
3415
+ };
3416
+ export type UpdatePolicyResponse = UpdatePolicyResponses[keyof UpdatePolicyResponses];
3417
+ export type ListPrivateClustersData = {
3418
+ body?: never;
3419
+ path?: never;
3420
+ query?: never;
3421
+ url: '/privateclusters';
3422
+ };
3423
+ export type ListPrivateClustersErrors = {
3424
+ /**
3425
+ * unauthorized
3426
+ */
3427
+ 401: unknown;
3428
+ /**
3429
+ * Forbidden
3430
+ */
3431
+ 403: unknown;
3432
+ /**
3433
+ * workspace not found
3434
+ */
3435
+ 404: unknown;
3436
+ };
3437
+ export type ListPrivateClustersResponses = {
3438
+ /**
3439
+ * successful operation
3440
+ */
3441
+ 200: Array<PrivateCluster>;
3442
+ };
3443
+ export type ListPrivateClustersResponse = ListPrivateClustersResponses[keyof ListPrivateClustersResponses];
3444
+ export type CreatePrivateClusterData = {
3445
+ body?: never;
3446
+ path?: never;
3447
+ query?: never;
3448
+ url: '/privateclusters';
3449
+ };
3450
+ export type CreatePrivateClusterErrors = {
3451
+ /**
3452
+ * unauthorized
3453
+ */
3454
+ 401: unknown;
3455
+ /**
3456
+ * Forbidden
3457
+ */
3458
+ 403: unknown;
3459
+ };
3460
+ export type CreatePrivateClusterResponses = {
3461
+ /**
3462
+ * successful operation
3463
+ */
3464
+ 200: PrivateCluster;
3465
+ };
3466
+ export type CreatePrivateClusterResponse = CreatePrivateClusterResponses[keyof CreatePrivateClusterResponses];
3467
+ export type DeletePrivateClusterData = {
3468
+ body?: never;
3469
+ path: {
3470
+ /**
3471
+ * Name of the private cluster
3472
+ */
3473
+ privateClusterName: string;
3474
+ };
3475
+ query?: never;
3476
+ url: '/privateclusters/{privateClusterName}';
3477
+ };
3478
+ export type DeletePrivateClusterErrors = {
3479
+ /**
3480
+ * unauthorized
3481
+ */
3482
+ 401: unknown;
3483
+ /**
3484
+ * Forbidden
3485
+ */
3486
+ 403: unknown;
3487
+ };
3488
+ export type DeletePrivateClusterResponses = {
3489
+ /**
3490
+ * successful operation
3491
+ */
3492
+ 200: PrivateCluster;
3493
+ };
3494
+ export type DeletePrivateClusterResponse = DeletePrivateClusterResponses[keyof DeletePrivateClusterResponses];
3495
+ export type GetPrivateClusterData = {
3496
+ body?: never;
3497
+ path: {
3498
+ /**
3499
+ * Name of the private cluster
3500
+ */
3501
+ privateClusterName: string;
3502
+ };
3503
+ query?: never;
3504
+ url: '/privateclusters/{privateClusterName}';
3505
+ };
3506
+ export type GetPrivateClusterErrors = {
3507
+ /**
3508
+ * unauthorized
3509
+ */
3510
+ 401: unknown;
3511
+ /**
3512
+ * Forbidden
3513
+ */
3514
+ 403: unknown;
3515
+ /**
3516
+ * private cluster not found
3517
+ */
3518
+ 404: unknown;
3519
+ };
3520
+ export type GetPrivateClusterResponses = {
3521
+ /**
3522
+ * successful operation
3523
+ */
3524
+ 200: PrivateCluster;
3525
+ };
3526
+ export type GetPrivateClusterResponse = GetPrivateClusterResponses[keyof GetPrivateClusterResponses];
3527
+ export type UpdatePrivateClusterData = {
3528
+ body?: never;
3529
+ path: {
3530
+ /**
3531
+ * Name of the private cluster
3532
+ */
3533
+ privateClusterName: string;
3534
+ };
3535
+ query?: never;
3536
+ url: '/privateclusters/{privateClusterName}';
3537
+ };
3538
+ export type UpdatePrivateClusterErrors = {
3539
+ /**
3540
+ * unauthorized
3541
+ */
3542
+ 401: unknown;
3543
+ /**
3544
+ * Forbidden
3545
+ */
3546
+ 403: unknown;
3547
+ };
3548
+ export type UpdatePrivateClusterResponses = {
3549
+ /**
3550
+ * successful operation
3551
+ */
3552
+ 200: PrivateCluster;
3553
+ };
3554
+ export type UpdatePrivateClusterResponse = UpdatePrivateClusterResponses[keyof UpdatePrivateClusterResponses];
3555
+ export type GetPrivateClusterHealthData = {
3556
+ body?: never;
3557
+ path: {
3558
+ /**
3559
+ * Name of the private cluster
3560
+ */
3561
+ privateClusterName: string;
3562
+ };
3563
+ query?: never;
3564
+ url: '/privateclusters/{privateClusterName}/health';
3565
+ };
3566
+ export type GetPrivateClusterHealthErrors = {
3567
+ /**
3568
+ * unauthorized
3569
+ */
3570
+ 401: unknown;
3571
+ /**
3572
+ * Forbidden
3573
+ */
3574
+ 403: unknown;
3575
+ };
3576
+ export type GetPrivateClusterHealthResponses = {
3577
+ /**
3578
+ * successful operation
3579
+ */
3580
+ 200: unknown;
3581
+ };
3582
+ export type UpdatePrivateClusterHealthData = {
3583
+ body?: never;
3584
+ path: {
3585
+ /**
3586
+ * Name of the private cluster
3587
+ */
3588
+ privateClusterName: string;
3589
+ };
3590
+ query?: never;
3591
+ url: '/privateclusters/{privateClusterName}/health';
3592
+ };
3593
+ export type UpdatePrivateClusterHealthErrors = {
3594
+ /**
3595
+ * unauthorized
3596
+ */
3597
+ 401: unknown;
3598
+ /**
3599
+ * Forbidden
3600
+ */
3601
+ 403: unknown;
3602
+ };
3603
+ export type UpdatePrivateClusterHealthResponses = {
3604
+ /**
3605
+ * successful operation
3606
+ */
3607
+ 200: unknown;
3608
+ };
3609
+ export type ListAllPendingInvitationsData = {
3610
+ body?: never;
3611
+ path?: never;
3612
+ query?: never;
3613
+ url: '/profile/invitations';
3614
+ };
3615
+ export type ListAllPendingInvitationsErrors = {
3616
+ /**
3617
+ * no pending invitations
3618
+ */
3619
+ 404: unknown;
3620
+ };
3621
+ export type ListAllPendingInvitationsResponses = {
3622
+ /**
3623
+ * successful operation
3624
+ */
3625
+ 200: Array<PendingInvitationRender>;
3626
+ };
3627
+ export type ListAllPendingInvitationsResponse = ListAllPendingInvitationsResponses[keyof ListAllPendingInvitationsResponses];
3628
+ export type ListPublicIpsData = {
3629
+ body?: never;
3630
+ path?: never;
3631
+ query?: never;
3632
+ url: '/publicIps';
3633
+ };
3634
+ export type ListPublicIpsResponses = {
3635
+ /**
3636
+ * successful operation
3637
+ */
3638
+ 200: PublicIps;
3639
+ };
3640
+ export type ListPublicIpsResponse = ListPublicIpsResponses[keyof ListPublicIpsResponses];
3641
+ export type ListSandboxHubDefinitionsData = {
3642
+ body?: never;
3643
+ path?: never;
3644
+ query?: never;
3645
+ url: '/sandbox/hub';
3646
+ };
3647
+ export type ListSandboxHubDefinitionsResponses = {
3648
+ /**
3649
+ * successful operation
3650
+ */
3651
+ 200: Array<SandboxDefinition>;
3652
+ };
3653
+ export type ListSandboxHubDefinitionsResponse = ListSandboxHubDefinitionsResponses[keyof ListSandboxHubDefinitionsResponses];
3654
+ export type ListSandboxesData = {
3655
+ body?: never;
3656
+ path?: never;
3657
+ query?: never;
3658
+ url: '/sandboxes';
3659
+ };
3660
+ export type ListSandboxesResponses = {
3661
+ /**
3662
+ * successful operation
3663
+ */
3664
+ 200: Array<Sandbox>;
3665
+ };
3666
+ export type ListSandboxesResponse = ListSandboxesResponses[keyof ListSandboxesResponses];
3667
+ export type CreateSandboxData = {
3668
+ body: Sandbox;
3669
+ path?: never;
3670
+ query?: never;
3671
+ url: '/sandboxes';
3672
+ };
3673
+ export type CreateSandboxResponses = {
3674
+ /**
3675
+ * successful operation
3676
+ */
3677
+ 200: Sandbox;
3678
+ };
3679
+ export type CreateSandboxResponse = CreateSandboxResponses[keyof CreateSandboxResponses];
3680
+ export type DeleteSandboxData = {
3681
+ body?: never;
3682
+ path: {
3683
+ /**
3684
+ * Name of the Sandbox
3685
+ */
3686
+ sandboxName: string;
3687
+ };
3688
+ query?: never;
3689
+ url: '/sandboxes/{sandboxName}';
3690
+ };
3691
+ export type DeleteSandboxResponses = {
3692
+ /**
3693
+ * successful operation
3694
+ */
3695
+ 200: Sandbox;
3696
+ };
3697
+ export type DeleteSandboxResponse = DeleteSandboxResponses[keyof DeleteSandboxResponses];
3698
+ export type GetSandboxData = {
3699
+ body?: never;
3700
+ path: {
3701
+ /**
3702
+ * Name of the Sandbox
3703
+ */
3704
+ sandboxName: string;
3705
+ };
3706
+ query?: never;
3707
+ url: '/sandboxes/{sandboxName}';
3708
+ };
3709
+ export type GetSandboxResponses = {
3710
+ /**
3711
+ * successful operation
3712
+ */
3713
+ 200: Sandbox;
3714
+ };
3715
+ export type GetSandboxResponse = GetSandboxResponses[keyof GetSandboxResponses];
3716
+ export type UpdateSandboxData = {
3717
+ body: Sandbox;
3718
+ path: {
3719
+ /**
3720
+ * Name of the Sandbox
3721
+ */
3722
+ sandboxName: string;
3723
+ };
3724
+ query?: never;
3725
+ url: '/sandboxes/{sandboxName}';
3726
+ };
3727
+ export type UpdateSandboxResponses = {
3728
+ /**
3729
+ * successful operation
3730
+ */
3731
+ 200: Sandbox;
3732
+ };
3733
+ export type UpdateSandboxResponse = UpdateSandboxResponses[keyof UpdateSandboxResponses];
3734
+ export type ListSandboxPreviewsData = {
3735
+ body?: never;
3736
+ path: {
3737
+ /**
3738
+ * Name of the Sandbox
3739
+ */
3740
+ sandboxName: string;
3741
+ };
3742
+ query?: never;
3743
+ url: '/sandboxes/{sandboxName}/previews';
3744
+ };
3745
+ export type ListSandboxPreviewsResponses = {
3746
+ /**
3747
+ * successful operation
3748
+ */
3749
+ 200: Array<Preview>;
3750
+ };
3751
+ export type ListSandboxPreviewsResponse = ListSandboxPreviewsResponses[keyof ListSandboxPreviewsResponses];
3752
+ export type CreateSandboxPreviewData = {
3753
+ body: Preview;
3754
+ path: {
3755
+ /**
3756
+ * Name of the Sandbox
3757
+ */
3758
+ sandboxName: string;
3759
+ };
3760
+ query?: never;
3761
+ url: '/sandboxes/{sandboxName}/previews';
3762
+ };
3763
+ export type CreateSandboxPreviewResponses = {
3764
+ /**
3765
+ * successful operation
3766
+ */
3767
+ 200: Preview;
3768
+ };
3769
+ export type CreateSandboxPreviewResponse = CreateSandboxPreviewResponses[keyof CreateSandboxPreviewResponses];
3770
+ export type DeleteSandboxPreviewData = {
3771
+ body?: never;
3772
+ path: {
3773
+ /**
3774
+ * Name of the Sandbox
3775
+ */
3776
+ sandboxName: string;
3777
+ /**
3778
+ * Name of the Preview
3779
+ */
3780
+ previewName: string;
3781
+ };
3782
+ query?: never;
3783
+ url: '/sandboxes/{sandboxName}/previews/{previewName}';
3784
+ };
3785
+ export type DeleteSandboxPreviewResponses = {
3786
+ /**
3787
+ * successful operation
3788
+ */
3789
+ 200: Preview;
3790
+ };
3791
+ export type DeleteSandboxPreviewResponse = DeleteSandboxPreviewResponses[keyof DeleteSandboxPreviewResponses];
3792
+ export type GetSandboxPreviewData = {
3793
+ body?: never;
3794
+ path: {
3795
+ /**
3796
+ * Name of the Sandbox
3797
+ */
3798
+ sandboxName: string;
3799
+ /**
3800
+ * Name of the Preview
3801
+ */
3802
+ previewName: string;
3803
+ };
3804
+ query?: never;
3805
+ url: '/sandboxes/{sandboxName}/previews/{previewName}';
3806
+ };
3807
+ export type GetSandboxPreviewResponses = {
3808
+ /**
3809
+ * successful operation
3810
+ */
3811
+ 200: Preview;
3812
+ };
3813
+ export type GetSandboxPreviewResponse = GetSandboxPreviewResponses[keyof GetSandboxPreviewResponses];
3814
+ export type UpdateSandboxPreviewData = {
3815
+ body: Preview;
3816
+ path: {
3817
+ /**
3818
+ * Name of the Sandbox
3819
+ */
3820
+ sandboxName: string;
3821
+ /**
3822
+ * Name of the Preview
3823
+ */
3824
+ previewName: string;
3825
+ };
3826
+ query?: never;
3827
+ url: '/sandboxes/{sandboxName}/previews/{previewName}';
3828
+ };
3829
+ export type UpdateSandboxPreviewResponses = {
3830
+ /**
3831
+ * successful operation
3832
+ */
3833
+ 200: Preview;
3834
+ };
3835
+ export type UpdateSandboxPreviewResponse = UpdateSandboxPreviewResponses[keyof UpdateSandboxPreviewResponses];
3836
+ export type ListSandboxPreviewTokensData = {
3837
+ body?: never;
3838
+ path: {
3839
+ /**
3840
+ * Name of the Sandbox
3841
+ */
3842
+ sandboxName: string;
3843
+ /**
3844
+ * Name of the Preview
3845
+ */
3846
+ previewName: string;
3847
+ };
3848
+ query?: never;
3849
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens';
3850
+ };
3851
+ export type ListSandboxPreviewTokensResponses = {
3852
+ /**
3853
+ * successful operation
3854
+ */
3855
+ 200: Array<PreviewToken>;
3856
+ };
3857
+ export type ListSandboxPreviewTokensResponse = ListSandboxPreviewTokensResponses[keyof ListSandboxPreviewTokensResponses];
3858
+ export type CreateSandboxPreviewTokenData = {
3859
+ body: PreviewToken;
3860
+ path: {
3861
+ /**
3862
+ * Name of the Sandbox
3863
+ */
3864
+ sandboxName: string;
3865
+ /**
3866
+ * Name of the Preview
3867
+ */
3868
+ previewName: string;
3869
+ };
3870
+ query?: never;
3871
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens';
3872
+ };
3873
+ export type CreateSandboxPreviewTokenResponses = {
3874
+ /**
3875
+ * successful operation
3876
+ */
3877
+ 200: PreviewToken;
3878
+ };
3879
+ export type CreateSandboxPreviewTokenResponse = CreateSandboxPreviewTokenResponses[keyof CreateSandboxPreviewTokenResponses];
3880
+ export type DeleteSandboxPreviewTokenData = {
3881
+ body?: never;
3882
+ path: {
3883
+ /**
3884
+ * Name of the Sandbox
3885
+ */
3886
+ sandboxName: string;
3887
+ /**
3888
+ * Name of the Preview
3889
+ */
3890
+ previewName: string;
3891
+ /**
3892
+ * Name of the Token
3893
+ */
3894
+ tokenName: string;
3895
+ };
3896
+ query?: never;
3897
+ url: '/sandboxes/{sandboxName}/previews/{previewName}/tokens/{tokenName}';
3898
+ };
3899
+ export type DeleteSandboxPreviewTokenResponses = {
3900
+ /**
3901
+ * successful operation
3902
+ */
3903
+ 200: {
3904
+ /**
3905
+ * Success message
3906
+ */
3907
+ message?: string;
3908
+ };
3909
+ };
3910
+ export type DeleteSandboxPreviewTokenResponse = DeleteSandboxPreviewTokenResponses[keyof DeleteSandboxPreviewTokenResponses];
3911
+ export type StartSandboxData = {
3912
+ body?: never;
3913
+ path: {
3914
+ /**
3915
+ * Name of the Sandbox
3916
+ */
3917
+ sandboxName: string;
3918
+ };
3919
+ query?: never;
3920
+ url: '/sandboxes/{sandboxName}/start';
3921
+ };
3922
+ export type StartSandboxErrors = {
3923
+ /**
3924
+ * Sandbox is already running
3925
+ */
3926
+ 409: unknown;
3927
+ };
3928
+ export type StartSandboxResponses = {
3929
+ /**
3930
+ * successful operation
3931
+ */
3932
+ 200: StartSandbox;
3933
+ };
3934
+ export type StartSandboxResponse = StartSandboxResponses[keyof StartSandboxResponses];
3935
+ export type StopSandboxData = {
3936
+ body?: never;
3937
+ path: {
3938
+ /**
3939
+ * Name of the Sandbox
3940
+ */
3941
+ sandboxName: string;
3942
+ };
3943
+ query?: never;
3944
+ url: '/sandboxes/{sandboxName}/stop';
3945
+ };
3946
+ export type StopSandboxErrors = {
3947
+ /**
3948
+ * Sandbox is not running
3949
+ */
3950
+ 409: unknown;
3951
+ };
3952
+ export type StopSandboxResponses = {
3953
+ /**
3954
+ * successful operation
3955
+ */
3956
+ 200: StopSandbox;
3957
+ };
3958
+ export type StopSandboxResponse = StopSandboxResponses[keyof StopSandboxResponses];
3959
+ export type GetWorkspaceServiceAccountsData = {
3960
+ body?: never;
3961
+ path?: never;
3962
+ query?: never;
3963
+ url: '/service_accounts';
3964
+ };
3965
+ export type GetWorkspaceServiceAccountsResponses = {
3966
+ /**
3967
+ * successful operation
3968
+ */
3969
+ 200: Array<{
3970
+ /**
3971
+ * Service account client ID
3972
+ */
3973
+ client_id?: string;
3974
+ /**
3975
+ * Creation timestamp
3976
+ */
3977
+ created_at?: string;
3978
+ /**
3979
+ * Service account description
3980
+ */
3981
+ description?: string;
3982
+ /**
3983
+ * Service account name
3984
+ */
3985
+ name?: string;
3986
+ /**
3987
+ * Last update timestamp
3988
+ */
3989
+ updated_at?: string;
3990
+ }>;
3991
+ };
3992
+ export type GetWorkspaceServiceAccountsResponse = GetWorkspaceServiceAccountsResponses[keyof GetWorkspaceServiceAccountsResponses];
3993
+ export type CreateWorkspaceServiceAccountData = {
3994
+ body: {
3995
+ /**
3996
+ * Service account description
3997
+ */
3998
+ description?: string;
3999
+ /**
4000
+ * Service account name
4001
+ */
4002
+ name: string;
4003
+ };
4004
+ path?: never;
4005
+ query?: never;
4006
+ url: '/service_accounts';
4007
+ };
4008
+ export type CreateWorkspaceServiceAccountResponses = {
4009
+ /**
4010
+ * successful operation
4011
+ */
4012
+ 200: {
4013
+ /**
4014
+ * Service account client ID
4015
+ */
4016
+ client_id?: string;
4017
+ /**
4018
+ * Service account client secret (only returned on creation)
4019
+ */
4020
+ client_secret?: string;
4021
+ /**
4022
+ * Creation timestamp
4023
+ */
4024
+ created_at?: string;
4025
+ /**
4026
+ * Service account description
4027
+ */
4028
+ description?: string;
4029
+ /**
4030
+ * Service account name
4031
+ */
4032
+ name?: string;
4033
+ /**
4034
+ * Last update timestamp
4035
+ */
4036
+ updated_at?: string;
4037
+ };
4038
+ };
4039
+ export type CreateWorkspaceServiceAccountResponse = CreateWorkspaceServiceAccountResponses[keyof CreateWorkspaceServiceAccountResponses];
4040
+ export type DeleteWorkspaceServiceAccountData = {
4041
+ body?: never;
4042
+ path: {
4043
+ /**
4044
+ * Client ID
4045
+ */
4046
+ clientId: string;
4047
+ };
4048
+ query?: never;
4049
+ url: '/service_accounts/{clientId}';
4050
+ };
4051
+ export type DeleteWorkspaceServiceAccountResponses = {
4052
+ /**
4053
+ * successful operation
4054
+ */
4055
+ 200: {
4056
+ /**
4057
+ * Service account client ID
4058
+ */
4059
+ client_id?: string;
4060
+ /**
4061
+ * Creation timestamp
4062
+ */
4063
+ created_at?: string;
4064
+ /**
4065
+ * Service account description
4066
+ */
4067
+ description?: string;
4068
+ /**
4069
+ * Service account name
4070
+ */
4071
+ name?: string;
4072
+ /**
4073
+ * Last update timestamp
4074
+ */
4075
+ updated_at?: string;
4076
+ };
4077
+ };
4078
+ export type DeleteWorkspaceServiceAccountResponse = DeleteWorkspaceServiceAccountResponses[keyof DeleteWorkspaceServiceAccountResponses];
4079
+ export type UpdateWorkspaceServiceAccountData = {
4080
+ body: {
4081
+ /**
4082
+ * Service account description
4083
+ */
4084
+ description?: string;
4085
+ /**
4086
+ * Service account name
4087
+ */
4088
+ name?: string;
4089
+ };
4090
+ path: {
4091
+ /**
4092
+ * Client ID
4093
+ */
4094
+ clientId: string;
4095
+ };
4096
+ query?: never;
4097
+ url: '/service_accounts/{clientId}';
4098
+ };
4099
+ export type UpdateWorkspaceServiceAccountResponses = {
4100
+ /**
4101
+ * successful operation
4102
+ */
4103
+ 200: {
4104
+ /**
4105
+ * Service account client ID
4106
+ */
4107
+ client_id?: string;
4108
+ /**
4109
+ * Creation timestamp
4110
+ */
4111
+ created_at?: string;
4112
+ /**
4113
+ * Service account description
4114
+ */
4115
+ description?: string;
4116
+ /**
4117
+ * Service account name
4118
+ */
4119
+ name?: string;
4120
+ /**
4121
+ * Last update timestamp
4122
+ */
4123
+ updated_at?: string;
4124
+ };
4125
+ };
4126
+ export type UpdateWorkspaceServiceAccountResponse = UpdateWorkspaceServiceAccountResponses[keyof UpdateWorkspaceServiceAccountResponses];
4127
+ export type ListApiKeysForServiceAccountData = {
4128
+ body?: never;
4129
+ path: {
4130
+ /**
4131
+ * Client ID
4132
+ */
4133
+ clientId: string;
4134
+ };
4135
+ query?: never;
4136
+ url: '/service_accounts/{clientId}/api_keys';
4137
+ };
4138
+ export type ListApiKeysForServiceAccountResponses = {
4139
+ /**
4140
+ * successful operation
4141
+ */
4142
+ 200: Array<ApiKey>;
4143
+ };
4144
+ export type ListApiKeysForServiceAccountResponse = ListApiKeysForServiceAccountResponses[keyof ListApiKeysForServiceAccountResponses];
4145
+ export type CreateApiKeyForServiceAccountData = {
4146
+ body: {
4147
+ /**
4148
+ * Expiration period for the API key
4149
+ */
4150
+ expires_in?: string;
4151
+ /**
4152
+ * Name for the API key
4153
+ */
4154
+ name?: string;
4155
+ };
4156
+ path: {
4157
+ /**
4158
+ * Client ID
4159
+ */
4160
+ clientId: string;
4161
+ };
4162
+ query?: never;
4163
+ url: '/service_accounts/{clientId}/api_keys';
4164
+ };
4165
+ export type CreateApiKeyForServiceAccountResponses = {
4166
+ /**
4167
+ * successful operation
4168
+ */
4169
+ 200: ApiKey;
4170
+ };
4171
+ export type CreateApiKeyForServiceAccountResponse = CreateApiKeyForServiceAccountResponses[keyof CreateApiKeyForServiceAccountResponses];
4172
+ export type DeleteApiKeyForServiceAccountData = {
4173
+ body?: never;
4174
+ path: {
4175
+ /**
4176
+ * Client ID
4177
+ */
4178
+ clientId: string;
4179
+ /**
4180
+ * Api key id
4181
+ */
4182
+ apiKeyId: string;
4183
+ };
4184
+ query?: never;
4185
+ url: '/service_accounts/{clientId}/api_keys/{apiKeyId}';
4186
+ };
4187
+ export type DeleteApiKeyForServiceAccountResponses = {
4188
+ /**
4189
+ * successful operation
4190
+ */
4191
+ 200: unknown;
4192
+ };
4193
+ export type ListTemplatesData = {
4194
+ body?: never;
4195
+ path?: never;
4196
+ query?: never;
4197
+ url: '/templates';
4198
+ };
4199
+ export type ListTemplatesResponses = {
4200
+ /**
4201
+ * successful operation
4202
+ */
4203
+ 200: Array<Template>;
4204
+ };
4205
+ export type ListTemplatesResponse = ListTemplatesResponses[keyof ListTemplatesResponses];
4206
+ export type GetTemplateData = {
4207
+ body?: never;
4208
+ path: {
4209
+ /**
4210
+ * Name of the template
4211
+ */
4212
+ templateName: string;
4213
+ };
4214
+ query?: never;
4215
+ url: '/templates/{templateName}';
4216
+ };
4217
+ export type GetTemplateResponses = {
4218
+ /**
4219
+ * successful operation
4220
+ */
4221
+ 200: Template;
4222
+ };
4223
+ export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
4224
+ export type ListWorkspaceUsersData = {
4225
+ body?: never;
4226
+ path?: never;
4227
+ query?: never;
4228
+ url: '/users';
4229
+ };
4230
+ export type ListWorkspaceUsersResponses = {
4231
+ /**
4232
+ * successful operation
4233
+ */
4234
+ 200: Array<WorkspaceUser>;
4235
+ };
4236
+ export type ListWorkspaceUsersResponse = ListWorkspaceUsersResponses[keyof ListWorkspaceUsersResponses];
4237
+ export type InviteWorkspaceUserData = {
4238
+ /**
4239
+ * Email of the user to invite
4240
+ */
4241
+ body: {
4242
+ email?: string;
4243
+ };
4244
+ path?: never;
4245
+ query?: never;
4246
+ url: '/users';
4247
+ };
4248
+ export type InviteWorkspaceUserErrors = {
4249
+ /**
4250
+ * invalid email format
4251
+ */
4252
+ 400: unknown;
4253
+ /**
4254
+ * workspace not found
4255
+ */
4256
+ 404: unknown;
4257
+ };
4258
+ export type InviteWorkspaceUserResponses = {
4259
+ /**
4260
+ * successful operation
4261
+ */
4262
+ 200: PendingInvitation;
4263
+ };
4264
+ export type InviteWorkspaceUserResponse = InviteWorkspaceUserResponses[keyof InviteWorkspaceUserResponses];
4265
+ export type RemoveWorkspaceUserData = {
4266
+ body?: never;
4267
+ path: {
4268
+ /**
4269
+ * Sub or email of the user
4270
+ */
4271
+ subOrEmail: string;
4272
+ };
4273
+ query?: never;
4274
+ url: '/users/{subOrEmail}';
4275
+ };
4276
+ export type RemoveWorkspaceUserErrors = {
4277
+ /**
4278
+ * Workspace or user not found
4279
+ */
4280
+ 404: unknown;
4281
+ };
4282
+ export type RemoveWorkspaceUserResponses = {
4283
+ /**
4284
+ * User successfully removed or invitation revoked
4285
+ */
4286
+ 200: unknown;
4287
+ };
4288
+ export type UpdateWorkspaceUserRoleData = {
4289
+ body: {
4290
+ /**
4291
+ * The new role to assign to the user
4292
+ */
4293
+ role: string;
4294
+ };
4295
+ path: {
4296
+ /**
4297
+ * Sub or email of the user
4298
+ */
4299
+ subOrEmail: string;
4300
+ };
4301
+ query?: never;
4302
+ url: '/users/{subOrEmail}';
4303
+ };
4304
+ export type UpdateWorkspaceUserRoleErrors = {
4305
+ /**
4306
+ * Invalid role provided
4307
+ */
4308
+ 400: unknown;
4309
+ /**
4310
+ * Workspace or user not found
4311
+ */
4312
+ 404: unknown;
4313
+ };
4314
+ export type UpdateWorkspaceUserRoleResponses = {
4315
+ /**
4316
+ * User role updated successfully
4317
+ */
4318
+ 200: WorkspaceUser;
4319
+ };
4320
+ export type UpdateWorkspaceUserRoleResponse = UpdateWorkspaceUserRoleResponses[keyof UpdateWorkspaceUserRoleResponses];
4321
+ export type ListVolumesData = {
4322
+ body?: never;
4323
+ path?: never;
4324
+ query?: never;
4325
+ url: '/volumes';
4326
+ };
4327
+ export type ListVolumesResponses = {
4328
+ /**
4329
+ * successful operation
4330
+ */
4331
+ 200: Array<Volume>;
4332
+ };
4333
+ export type ListVolumesResponse = ListVolumesResponses[keyof ListVolumesResponses];
4334
+ export type CreateVolumeData = {
4335
+ body: Volume;
4336
+ path?: never;
4337
+ query?: never;
4338
+ url: '/volumes';
4339
+ };
4340
+ export type CreateVolumeResponses = {
4341
+ /**
4342
+ * successful operation
4343
+ */
4344
+ 200: Volume;
4345
+ };
4346
+ export type CreateVolumeResponse = CreateVolumeResponses[keyof CreateVolumeResponses];
4347
+ export type DeleteVolumeData = {
4348
+ body?: never;
4349
+ path: {
4350
+ /**
4351
+ * Name of the volume
4352
+ */
4353
+ volumeName: string;
4354
+ };
4355
+ query?: never;
4356
+ url: '/volumes/{volumeName}';
4357
+ };
4358
+ export type DeleteVolumeResponses = {
4359
+ /**
4360
+ * successful operation
4361
+ */
4362
+ 200: Volume;
4363
+ };
4364
+ export type DeleteVolumeResponse = DeleteVolumeResponses[keyof DeleteVolumeResponses];
4365
+ export type GetVolumeData = {
4366
+ body?: never;
4367
+ path: {
4368
+ /**
4369
+ * Name of the volume
4370
+ */
4371
+ volumeName: string;
4372
+ };
4373
+ query?: never;
4374
+ url: '/volumes/{volumeName}';
4375
+ };
4376
+ export type GetVolumeResponses = {
4377
+ /**
4378
+ * successful operation
4379
+ */
4380
+ 200: Volume;
4381
+ };
4382
+ export type GetVolumeResponse = GetVolumeResponses[keyof GetVolumeResponses];
4383
+ export type ListWorkspacesData = {
4384
+ body?: never;
4385
+ path?: never;
4386
+ query?: never;
4387
+ url: '/workspaces';
4388
+ };
4389
+ export type ListWorkspacesResponses = {
4390
+ /**
4391
+ * successful operation
4392
+ */
4393
+ 200: Array<Workspace>;
4394
+ };
4395
+ export type ListWorkspacesResponse = ListWorkspacesResponses[keyof ListWorkspacesResponses];
4396
+ export type CreateWorspaceData = {
4397
+ body: Workspace;
4398
+ path?: never;
4399
+ query?: never;
4400
+ url: '/workspaces';
4401
+ };
4402
+ export type CreateWorspaceResponses = {
4403
+ /**
4404
+ * successful operation
4405
+ */
4406
+ 200: Workspace;
4407
+ };
4408
+ export type CreateWorspaceResponse = CreateWorspaceResponses[keyof CreateWorspaceResponses];
4409
+ export type DeleteWorkspaceData = {
4410
+ body?: never;
4411
+ path: {
4412
+ /**
4413
+ * Name of the workspace
4414
+ */
4415
+ workspaceName: string;
4416
+ };
4417
+ query?: never;
4418
+ url: '/workspaces/{workspaceName}';
4419
+ };
4420
+ export type DeleteWorkspaceResponses = {
4421
+ /**
4422
+ * successful operation
4423
+ */
4424
+ 200: Workspace;
4425
+ };
4426
+ export type DeleteWorkspaceResponse = DeleteWorkspaceResponses[keyof DeleteWorkspaceResponses];
4427
+ export type GetWorkspaceData = {
4428
+ body?: never;
4429
+ path: {
4430
+ /**
4431
+ * Name of the workspace
4432
+ */
4433
+ workspaceName: string;
4434
+ };
4435
+ query?: never;
4436
+ url: '/workspaces/{workspaceName}';
4437
+ };
4438
+ export type GetWorkspaceResponses = {
4439
+ /**
4440
+ * successful operation
4441
+ */
4442
+ 200: Workspace;
4443
+ };
4444
+ export type GetWorkspaceResponse = GetWorkspaceResponses[keyof GetWorkspaceResponses];
4445
+ export type UpdateWorkspaceData = {
4446
+ body: Workspace;
4447
+ path: {
4448
+ /**
4449
+ * name of the workspace
4450
+ */
4451
+ workspaceName: string;
4452
+ };
4453
+ query?: never;
4454
+ url: '/workspaces/{workspaceName}';
4455
+ };
4456
+ export type UpdateWorkspaceResponses = {
4457
+ /**
4458
+ * successful operation
4459
+ */
4460
+ 200: Workspace;
4461
+ };
4462
+ export type UpdateWorkspaceResponse = UpdateWorkspaceResponses[keyof UpdateWorkspaceResponses];
4463
+ export type DeclineWorkspaceInvitationData = {
4464
+ body?: never;
4465
+ path: {
4466
+ /**
4467
+ * Name of the workspace
4468
+ */
4469
+ workspaceName: string;
4470
+ };
4471
+ query?: never;
4472
+ url: '/workspaces/{workspaceName}/decline';
4473
+ };
4474
+ export type DeclineWorkspaceInvitationResponses = {
4475
+ /**
4476
+ * Invitation successfully declined
4477
+ */
4478
+ 200: PendingInvitation;
4479
+ };
4480
+ export type DeclineWorkspaceInvitationResponse = DeclineWorkspaceInvitationResponses[keyof DeclineWorkspaceInvitationResponses];
4481
+ export type AcceptWorkspaceInvitationData = {
4482
+ body?: never;
4483
+ path: {
4484
+ /**
4485
+ * Name of the workspace
4486
+ */
4487
+ workspaceName: string;
4488
+ };
4489
+ query?: never;
4490
+ url: '/workspaces/{workspaceName}/join';
4491
+ };
4492
+ export type AcceptWorkspaceInvitationErrors = {
4493
+ /**
4494
+ * Workspace or invitation not found
4495
+ */
4496
+ 404: unknown;
4497
+ };
4498
+ export type AcceptWorkspaceInvitationResponses = {
4499
+ /**
4500
+ * Invitation successfully accepted
4501
+ */
4502
+ 200: PendingInvitationAccept;
4503
+ };
4504
+ export type AcceptWorkspaceInvitationResponse = AcceptWorkspaceInvitationResponses[keyof AcceptWorkspaceInvitationResponses];
4505
+ export type LeaveWorkspaceData = {
4506
+ body?: never;
4507
+ path: {
4508
+ /**
4509
+ * Name of the workspace
4510
+ */
4511
+ workspaceName: string;
4512
+ };
4513
+ query?: never;
4514
+ url: '/workspaces/{workspaceName}/leave';
4515
+ };
4516
+ export type LeaveWorkspaceErrors = {
4517
+ /**
4518
+ * Workspace not found
4519
+ */
4520
+ 404: unknown;
4521
+ };
4522
+ export type LeaveWorkspaceResponses = {
4523
+ /**
4524
+ * Workspace successfully left
4525
+ */
4526
+ 200: Workspace;
4527
+ };
4528
+ export type LeaveWorkspaceResponse = LeaveWorkspaceResponses[keyof LeaveWorkspaceResponses];
4529
+ export type CheckWorkspaceAvailabilityData = {
4530
+ body: {
4531
+ name: string;
4532
+ };
4533
+ path?: never;
4534
+ query?: never;
4535
+ url: '/workspaces/availability';
4536
+ };
4537
+ export type CheckWorkspaceAvailabilityResponses = {
4538
+ /**
4539
+ * successful operation
4540
+ */
4541
+ 200: boolean;
4542
+ };
4543
+ export type CheckWorkspaceAvailabilityResponse = CheckWorkspaceAvailabilityResponses[keyof CheckWorkspaceAvailabilityResponses];
4544
+ export type ClientOptions = {
4545
+ baseUrl: 'https://api.blaxel.ai/v0' | 'https://run.blaxel.ai' | (string & {});
4546
+ };