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

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