@finalai/sandbox-router-final 0.0.0-stage → 0.2.1

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 (67) hide show
  1. package/LICENSE +202 -0
  2. package/NOTICE +4 -0
  3. package/README.md +38 -2
  4. package/dist/modules/frames.d.mts +18 -0
  5. package/dist/modules/frames.mjs +98 -0
  6. package/dist/modules/frames.mjs.map +7 -0
  7. package/dist/modules/images.d.mts +15 -0
  8. package/dist/modules/images.mjs +116 -0
  9. package/dist/modules/images.mjs.map +7 -0
  10. package/dist/modules/index.d.mts +4 -0
  11. package/dist/modules/index.mjs +16 -0
  12. package/dist/modules/index.mjs.map +7 -0
  13. package/dist/modules/limits.d.mts +6 -0
  14. package/dist/modules/limits.mjs +37 -0
  15. package/dist/modules/limits.mjs.map +7 -0
  16. package/dist/modules/options.d.mts +24 -0
  17. package/dist/modules/options.mjs +19 -0
  18. package/dist/modules/options.mjs.map +7 -0
  19. package/dist/modules/provider.d.mts +5 -0
  20. package/dist/modules/provider.mjs +654 -0
  21. package/dist/modules/provider.mjs.map +7 -0
  22. package/dist/modules/vm/api.d.mts +28 -0
  23. package/dist/modules/vm/api.mjs +94 -0
  24. package/dist/modules/vm/api.mjs.map +7 -0
  25. package/dist/modules/vm/client.d.mts +104 -0
  26. package/dist/modules/vm/client.mjs +186 -0
  27. package/dist/modules/vm/client.mjs.map +7 -0
  28. package/dist/modules/vm/clock.d.mts +5 -0
  29. package/dist/modules/vm/clock.mjs +11 -0
  30. package/dist/modules/vm/clock.mjs.map +7 -0
  31. package/dist/modules/vm/errors.d.mts +23 -0
  32. package/dist/modules/vm/errors.mjs +30 -0
  33. package/dist/modules/vm/errors.mjs.map +7 -0
  34. package/dist/modules/vm/exec.d.mts +47 -0
  35. package/dist/modules/vm/exec.mjs +292 -0
  36. package/dist/modules/vm/exec.mjs.map +7 -0
  37. package/dist/modules/vm/files.d.mts +18 -0
  38. package/dist/modules/vm/files.mjs +160 -0
  39. package/dist/modules/vm/files.mjs.map +7 -0
  40. package/dist/modules/vm/grants.d.mts +35 -0
  41. package/dist/modules/vm/grants.mjs +106 -0
  42. package/dist/modules/vm/grants.mjs.map +7 -0
  43. package/dist/modules/vm/ids.d.mts +3 -0
  44. package/dist/modules/vm/ids.mjs +35 -0
  45. package/dist/modules/vm/ids.mjs.map +7 -0
  46. package/dist/modules/vm/ingress.d.mts +99 -0
  47. package/dist/modules/vm/ingress.mjs +263 -0
  48. package/dist/modules/vm/ingress.mjs.map +7 -0
  49. package/dist/modules/vm/machines.d.mts +82 -0
  50. package/dist/modules/vm/machines.mjs +62 -0
  51. package/dist/modules/vm/machines.mjs.map +7 -0
  52. package/dist/modules/vm/network.d.mts +17 -0
  53. package/dist/modules/vm/network.mjs +44 -0
  54. package/dist/modules/vm/network.mjs.map +7 -0
  55. package/dist/modules/vm/sandbox.d.mts +75 -0
  56. package/dist/modules/vm/sandbox.mjs +175 -0
  57. package/dist/modules/vm/sandbox.mjs.map +7 -0
  58. package/dist/modules/vm/schemas.d.mts +1209 -0
  59. package/dist/modules/vm/schemas.mjs +289 -0
  60. package/dist/modules/vm/schemas.mjs.map +7 -0
  61. package/dist/modules/vm/wire.d.mts +3 -0
  62. package/dist/modules/vm/wire.mjs +9 -0
  63. package/dist/modules/vm/wire.mjs.map +7 -0
  64. package/dist/modules/vm/workload.d.mts +14 -0
  65. package/dist/modules/vm/workload.mjs +11 -0
  66. package/dist/modules/vm/workload.mjs.map +7 -0
  67. package/package.json +38 -4
@@ -0,0 +1,1209 @@
1
+ import * as z from 'zod';
2
+ export declare enum SandboxState {
3
+ Creating = "creating",
4
+ Running = "running",
5
+ Pausing = "pausing",
6
+ Paused = "paused",
7
+ Resuming = "resuming",
8
+ Stopping = "stopping",
9
+ Stopped = "stopped",
10
+ Starting = "starting",
11
+ Deleting = "deleting",
12
+ Deleted = "deleted",
13
+ Failed = "failed"
14
+ }
15
+ export declare const sandboxInfoSchema: z.ZodPipe<z.ZodObject<{
16
+ id: z.ZodString;
17
+ organization_id: z.ZodString;
18
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
19
+ state: z.ZodString;
20
+ generation: z.ZodNumber;
21
+ host_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ size: z.ZodObject<{
23
+ vcpu: z.ZodNumber;
24
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
25
+ request: z.ZodNumber;
26
+ limit: z.ZodNumber;
27
+ }, z.core.$strip>>>;
28
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
29
+ request: z.ZodNumber;
30
+ limit: z.ZodNumber;
31
+ }, z.core.$strip>>>;
32
+ memory_mb: z.ZodNumber;
33
+ disk_gb: z.ZodNumber;
34
+ }, z.core.$strip>;
35
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
36
+ image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
37
+ template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
38
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
39
+ timers: z.ZodDefault<z.ZodObject<{
40
+ idle_timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
41
+ wall_clock_limit_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
42
+ }, z.core.$strip>>;
43
+ wall_clock_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
44
+ paused_until: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
45
+ deletes_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
46
+ warn_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
47
+ hard_ttl_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
48
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
49
+ created_at: z.ZodNumber;
50
+ next_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
51
+ recovery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
52
+ reason: z.ZodString;
53
+ at: z.ZodNumber;
54
+ recovery_point: z.ZodOptional<z.ZodNullable<z.ZodObject<{
55
+ at: z.ZodNumber;
56
+ kind: z.ZodString;
57
+ }, z.core.$strip>>>;
58
+ memory_kept: z.ZodBoolean;
59
+ }, z.core.$strip>>>;
60
+ interruption: z.ZodOptional<z.ZodNullable<z.ZodObject<{
61
+ reason: z.ZodString;
62
+ at: z.ZodNumber;
63
+ }, z.core.$strip>>>;
64
+ }, z.core.$strip>, z.ZodTransform<{
65
+ id: string;
66
+ organizationId: string;
67
+ projectId: string | null;
68
+ state: string;
69
+ generation: number;
70
+ hostId: string | null;
71
+ vcpu: number;
72
+ cpu: {
73
+ request: number;
74
+ limit: number;
75
+ } | null;
76
+ memory: {
77
+ request: number;
78
+ limit: number;
79
+ } | null;
80
+ memoryMb: number;
81
+ diskGb: number;
82
+ cpuPool: string | null;
83
+ imageId: string | null;
84
+ templateId: string | null;
85
+ labels: Record<string, string>;
86
+ idleTimeoutS: number | null;
87
+ wallClockLimitS: number | null;
88
+ wallClockDeadlineAt: Date | null;
89
+ pausedUntil: Date | null;
90
+ deletesAt: Date | null;
91
+ warnAt: Date | null;
92
+ hardTtlAt: Date | null;
93
+ deletedAt: Date | null;
94
+ createdAt: Date;
95
+ nextDeadlineAt: Date | null;
96
+ recovery: {
97
+ reason: string;
98
+ at: Date;
99
+ recoveryPoint: {
100
+ at: Date;
101
+ kind: string;
102
+ } | null;
103
+ memoryKept: boolean;
104
+ } | null;
105
+ interruption: {
106
+ reason: string;
107
+ at: Date;
108
+ } | null;
109
+ }, {
110
+ id: string;
111
+ organization_id: string;
112
+ state: string;
113
+ generation: number;
114
+ size: {
115
+ vcpu: number;
116
+ memory_mb: number;
117
+ disk_gb: number;
118
+ cpu?: {
119
+ request: number;
120
+ limit: number;
121
+ } | null | undefined;
122
+ memory?: {
123
+ request: number;
124
+ limit: number;
125
+ } | null | undefined;
126
+ };
127
+ labels: Record<string, string>;
128
+ timers: {
129
+ idle_timeout_s?: number | null | undefined;
130
+ wall_clock_limit_s?: number | null | undefined;
131
+ };
132
+ created_at: number;
133
+ project_id?: string | null | undefined;
134
+ host_id?: string | null | undefined;
135
+ cpu_pool?: string | null | undefined;
136
+ image_id?: string | null | undefined;
137
+ template_id?: string | null | undefined;
138
+ wall_clock_deadline_at?: number | null | undefined;
139
+ paused_until?: number | null | undefined;
140
+ deletes_at?: number | null | undefined;
141
+ warn_at?: number | null | undefined;
142
+ hard_ttl_at?: number | null | undefined;
143
+ deleted_at?: number | null | undefined;
144
+ next_deadline_at?: number | null | undefined;
145
+ recovery?: {
146
+ reason: string;
147
+ at: number;
148
+ memory_kept: boolean;
149
+ recovery_point?: {
150
+ at: number;
151
+ kind: string;
152
+ } | null | undefined;
153
+ } | null | undefined;
154
+ interruption?: {
155
+ reason: string;
156
+ at: number;
157
+ } | null | undefined;
158
+ }>>;
159
+ export type SandboxInfoIface = z.output<typeof sandboxInfoSchema>;
160
+ export declare const resumedSchema: z.ZodObject<{
161
+ mode: z.ZodString;
162
+ reason: z.ZodString;
163
+ }, z.core.$strip>;
164
+ export type ResumedIface = z.output<typeof resumedSchema>;
165
+ export declare const connectGrantSchema: z.ZodPipe<z.ZodObject<{
166
+ endpoint: z.ZodString;
167
+ token: z.ZodString;
168
+ expires_at: z.ZodNumber;
169
+ generation: z.ZodNumber;
170
+ resumed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
171
+ mode: z.ZodString;
172
+ reason: z.ZodString;
173
+ }, z.core.$strip>>>;
174
+ }, z.core.$strip>, z.ZodTransform<{
175
+ endpoint: string;
176
+ token: string;
177
+ expiresAt: number;
178
+ generation: number;
179
+ resumed: {
180
+ mode: string;
181
+ reason: string;
182
+ } | null;
183
+ }, {
184
+ endpoint: string;
185
+ token: string;
186
+ expires_at: number;
187
+ generation: number;
188
+ resumed?: {
189
+ mode: string;
190
+ reason: string;
191
+ } | null | undefined;
192
+ }>>;
193
+ export type ConnectGrantIface = z.output<typeof connectGrantSchema>;
194
+ export declare const sandboxOpSchema: z.ZodPipe<z.ZodObject<{
195
+ sandbox: z.ZodPipe<z.ZodObject<{
196
+ id: z.ZodString;
197
+ organization_id: z.ZodString;
198
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
199
+ state: z.ZodString;
200
+ generation: z.ZodNumber;
201
+ host_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
202
+ size: z.ZodObject<{
203
+ vcpu: z.ZodNumber;
204
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
205
+ request: z.ZodNumber;
206
+ limit: z.ZodNumber;
207
+ }, z.core.$strip>>>;
208
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
209
+ request: z.ZodNumber;
210
+ limit: z.ZodNumber;
211
+ }, z.core.$strip>>>;
212
+ memory_mb: z.ZodNumber;
213
+ disk_gb: z.ZodNumber;
214
+ }, z.core.$strip>;
215
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
216
+ image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
217
+ template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
218
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
219
+ timers: z.ZodDefault<z.ZodObject<{
220
+ idle_timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
221
+ wall_clock_limit_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
222
+ }, z.core.$strip>>;
223
+ wall_clock_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
224
+ paused_until: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
225
+ deletes_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
226
+ warn_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
227
+ hard_ttl_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
228
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
229
+ created_at: z.ZodNumber;
230
+ next_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
231
+ recovery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
232
+ reason: z.ZodString;
233
+ at: z.ZodNumber;
234
+ recovery_point: z.ZodOptional<z.ZodNullable<z.ZodObject<{
235
+ at: z.ZodNumber;
236
+ kind: z.ZodString;
237
+ }, z.core.$strip>>>;
238
+ memory_kept: z.ZodBoolean;
239
+ }, z.core.$strip>>>;
240
+ interruption: z.ZodOptional<z.ZodNullable<z.ZodObject<{
241
+ reason: z.ZodString;
242
+ at: z.ZodNumber;
243
+ }, z.core.$strip>>>;
244
+ }, z.core.$strip>, z.ZodTransform<{
245
+ id: string;
246
+ organizationId: string;
247
+ projectId: string | null;
248
+ state: string;
249
+ generation: number;
250
+ hostId: string | null;
251
+ vcpu: number;
252
+ cpu: {
253
+ request: number;
254
+ limit: number;
255
+ } | null;
256
+ memory: {
257
+ request: number;
258
+ limit: number;
259
+ } | null;
260
+ memoryMb: number;
261
+ diskGb: number;
262
+ cpuPool: string | null;
263
+ imageId: string | null;
264
+ templateId: string | null;
265
+ labels: Record<string, string>;
266
+ idleTimeoutS: number | null;
267
+ wallClockLimitS: number | null;
268
+ wallClockDeadlineAt: Date | null;
269
+ pausedUntil: Date | null;
270
+ deletesAt: Date | null;
271
+ warnAt: Date | null;
272
+ hardTtlAt: Date | null;
273
+ deletedAt: Date | null;
274
+ createdAt: Date;
275
+ nextDeadlineAt: Date | null;
276
+ recovery: {
277
+ reason: string;
278
+ at: Date;
279
+ recoveryPoint: {
280
+ at: Date;
281
+ kind: string;
282
+ } | null;
283
+ memoryKept: boolean;
284
+ } | null;
285
+ interruption: {
286
+ reason: string;
287
+ at: Date;
288
+ } | null;
289
+ }, {
290
+ id: string;
291
+ organization_id: string;
292
+ state: string;
293
+ generation: number;
294
+ size: {
295
+ vcpu: number;
296
+ memory_mb: number;
297
+ disk_gb: number;
298
+ cpu?: {
299
+ request: number;
300
+ limit: number;
301
+ } | null | undefined;
302
+ memory?: {
303
+ request: number;
304
+ limit: number;
305
+ } | null | undefined;
306
+ };
307
+ labels: Record<string, string>;
308
+ timers: {
309
+ idle_timeout_s?: number | null | undefined;
310
+ wall_clock_limit_s?: number | null | undefined;
311
+ };
312
+ created_at: number;
313
+ project_id?: string | null | undefined;
314
+ host_id?: string | null | undefined;
315
+ cpu_pool?: string | null | undefined;
316
+ image_id?: string | null | undefined;
317
+ template_id?: string | null | undefined;
318
+ wall_clock_deadline_at?: number | null | undefined;
319
+ paused_until?: number | null | undefined;
320
+ deletes_at?: number | null | undefined;
321
+ warn_at?: number | null | undefined;
322
+ hard_ttl_at?: number | null | undefined;
323
+ deleted_at?: number | null | undefined;
324
+ next_deadline_at?: number | null | undefined;
325
+ recovery?: {
326
+ reason: string;
327
+ at: number;
328
+ memory_kept: boolean;
329
+ recovery_point?: {
330
+ at: number;
331
+ kind: string;
332
+ } | null | undefined;
333
+ } | null | undefined;
334
+ interruption?: {
335
+ reason: string;
336
+ at: number;
337
+ } | null | undefined;
338
+ }>>;
339
+ resumed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
340
+ mode: z.ZodString;
341
+ reason: z.ZodString;
342
+ }, z.core.$strip>>>;
343
+ connect: z.ZodOptional<z.ZodPipe<z.ZodObject<{
344
+ endpoint: z.ZodString;
345
+ token: z.ZodString;
346
+ expires_at: z.ZodNumber;
347
+ generation: z.ZodNumber;
348
+ resumed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
349
+ mode: z.ZodString;
350
+ reason: z.ZodString;
351
+ }, z.core.$strip>>>;
352
+ }, z.core.$strip>, z.ZodTransform<{
353
+ endpoint: string;
354
+ token: string;
355
+ expiresAt: number;
356
+ generation: number;
357
+ resumed: {
358
+ mode: string;
359
+ reason: string;
360
+ } | null;
361
+ }, {
362
+ endpoint: string;
363
+ token: string;
364
+ expires_at: number;
365
+ generation: number;
366
+ resumed?: {
367
+ mode: string;
368
+ reason: string;
369
+ } | null | undefined;
370
+ }>>>;
371
+ }, z.core.$strip>, z.ZodTransform<{
372
+ sandbox: {
373
+ id: string;
374
+ organizationId: string;
375
+ projectId: string | null;
376
+ state: string;
377
+ generation: number;
378
+ hostId: string | null;
379
+ vcpu: number;
380
+ cpu: {
381
+ request: number;
382
+ limit: number;
383
+ } | null;
384
+ memory: {
385
+ request: number;
386
+ limit: number;
387
+ } | null;
388
+ memoryMb: number;
389
+ diskGb: number;
390
+ cpuPool: string | null;
391
+ imageId: string | null;
392
+ templateId: string | null;
393
+ labels: Record<string, string>;
394
+ idleTimeoutS: number | null;
395
+ wallClockLimitS: number | null;
396
+ wallClockDeadlineAt: Date | null;
397
+ pausedUntil: Date | null;
398
+ deletesAt: Date | null;
399
+ warnAt: Date | null;
400
+ hardTtlAt: Date | null;
401
+ deletedAt: Date | null;
402
+ createdAt: Date;
403
+ nextDeadlineAt: Date | null;
404
+ recovery: {
405
+ reason: string;
406
+ at: Date;
407
+ recoveryPoint: {
408
+ at: Date;
409
+ kind: string;
410
+ } | null;
411
+ memoryKept: boolean;
412
+ } | null;
413
+ interruption: {
414
+ reason: string;
415
+ at: Date;
416
+ } | null;
417
+ };
418
+ resumed: {
419
+ mode: string;
420
+ reason: string;
421
+ } | null;
422
+ connect: {
423
+ endpoint: string;
424
+ token: string;
425
+ expiresAt: number;
426
+ generation: number;
427
+ resumed: {
428
+ mode: string;
429
+ reason: string;
430
+ } | null;
431
+ } | null;
432
+ }, {
433
+ sandbox: {
434
+ id: string;
435
+ organizationId: string;
436
+ projectId: string | null;
437
+ state: string;
438
+ generation: number;
439
+ hostId: string | null;
440
+ vcpu: number;
441
+ cpu: {
442
+ request: number;
443
+ limit: number;
444
+ } | null;
445
+ memory: {
446
+ request: number;
447
+ limit: number;
448
+ } | null;
449
+ memoryMb: number;
450
+ diskGb: number;
451
+ cpuPool: string | null;
452
+ imageId: string | null;
453
+ templateId: string | null;
454
+ labels: Record<string, string>;
455
+ idleTimeoutS: number | null;
456
+ wallClockLimitS: number | null;
457
+ wallClockDeadlineAt: Date | null;
458
+ pausedUntil: Date | null;
459
+ deletesAt: Date | null;
460
+ warnAt: Date | null;
461
+ hardTtlAt: Date | null;
462
+ deletedAt: Date | null;
463
+ createdAt: Date;
464
+ nextDeadlineAt: Date | null;
465
+ recovery: {
466
+ reason: string;
467
+ at: Date;
468
+ recoveryPoint: {
469
+ at: Date;
470
+ kind: string;
471
+ } | null;
472
+ memoryKept: boolean;
473
+ } | null;
474
+ interruption: {
475
+ reason: string;
476
+ at: Date;
477
+ } | null;
478
+ };
479
+ resumed?: {
480
+ mode: string;
481
+ reason: string;
482
+ } | null | undefined;
483
+ connect?: {
484
+ endpoint: string;
485
+ token: string;
486
+ expiresAt: number;
487
+ generation: number;
488
+ resumed: {
489
+ mode: string;
490
+ reason: string;
491
+ } | null;
492
+ } | undefined;
493
+ }>>;
494
+ export type SandboxOpResultIface = z.output<typeof sandboxOpSchema>;
495
+ export declare const sandboxListSchema: z.ZodObject<{
496
+ sandboxes: z.ZodArray<z.ZodPipe<z.ZodObject<{
497
+ id: z.ZodString;
498
+ organization_id: z.ZodString;
499
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
500
+ state: z.ZodString;
501
+ generation: z.ZodNumber;
502
+ host_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
503
+ size: z.ZodObject<{
504
+ vcpu: z.ZodNumber;
505
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
506
+ request: z.ZodNumber;
507
+ limit: z.ZodNumber;
508
+ }, z.core.$strip>>>;
509
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
510
+ request: z.ZodNumber;
511
+ limit: z.ZodNumber;
512
+ }, z.core.$strip>>>;
513
+ memory_mb: z.ZodNumber;
514
+ disk_gb: z.ZodNumber;
515
+ }, z.core.$strip>;
516
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
517
+ image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
518
+ template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
519
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
520
+ timers: z.ZodDefault<z.ZodObject<{
521
+ idle_timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
522
+ wall_clock_limit_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
523
+ }, z.core.$strip>>;
524
+ wall_clock_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
525
+ paused_until: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
526
+ deletes_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
527
+ warn_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
528
+ hard_ttl_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
529
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
530
+ created_at: z.ZodNumber;
531
+ next_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
532
+ recovery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
533
+ reason: z.ZodString;
534
+ at: z.ZodNumber;
535
+ recovery_point: z.ZodOptional<z.ZodNullable<z.ZodObject<{
536
+ at: z.ZodNumber;
537
+ kind: z.ZodString;
538
+ }, z.core.$strip>>>;
539
+ memory_kept: z.ZodBoolean;
540
+ }, z.core.$strip>>>;
541
+ interruption: z.ZodOptional<z.ZodNullable<z.ZodObject<{
542
+ reason: z.ZodString;
543
+ at: z.ZodNumber;
544
+ }, z.core.$strip>>>;
545
+ }, z.core.$strip>, z.ZodTransform<{
546
+ id: string;
547
+ organizationId: string;
548
+ projectId: string | null;
549
+ state: string;
550
+ generation: number;
551
+ hostId: string | null;
552
+ vcpu: number;
553
+ cpu: {
554
+ request: number;
555
+ limit: number;
556
+ } | null;
557
+ memory: {
558
+ request: number;
559
+ limit: number;
560
+ } | null;
561
+ memoryMb: number;
562
+ diskGb: number;
563
+ cpuPool: string | null;
564
+ imageId: string | null;
565
+ templateId: string | null;
566
+ labels: Record<string, string>;
567
+ idleTimeoutS: number | null;
568
+ wallClockLimitS: number | null;
569
+ wallClockDeadlineAt: Date | null;
570
+ pausedUntil: Date | null;
571
+ deletesAt: Date | null;
572
+ warnAt: Date | null;
573
+ hardTtlAt: Date | null;
574
+ deletedAt: Date | null;
575
+ createdAt: Date;
576
+ nextDeadlineAt: Date | null;
577
+ recovery: {
578
+ reason: string;
579
+ at: Date;
580
+ recoveryPoint: {
581
+ at: Date;
582
+ kind: string;
583
+ } | null;
584
+ memoryKept: boolean;
585
+ } | null;
586
+ interruption: {
587
+ reason: string;
588
+ at: Date;
589
+ } | null;
590
+ }, {
591
+ id: string;
592
+ organization_id: string;
593
+ state: string;
594
+ generation: number;
595
+ size: {
596
+ vcpu: number;
597
+ memory_mb: number;
598
+ disk_gb: number;
599
+ cpu?: {
600
+ request: number;
601
+ limit: number;
602
+ } | null | undefined;
603
+ memory?: {
604
+ request: number;
605
+ limit: number;
606
+ } | null | undefined;
607
+ };
608
+ labels: Record<string, string>;
609
+ timers: {
610
+ idle_timeout_s?: number | null | undefined;
611
+ wall_clock_limit_s?: number | null | undefined;
612
+ };
613
+ created_at: number;
614
+ project_id?: string | null | undefined;
615
+ host_id?: string | null | undefined;
616
+ cpu_pool?: string | null | undefined;
617
+ image_id?: string | null | undefined;
618
+ template_id?: string | null | undefined;
619
+ wall_clock_deadline_at?: number | null | undefined;
620
+ paused_until?: number | null | undefined;
621
+ deletes_at?: number | null | undefined;
622
+ warn_at?: number | null | undefined;
623
+ hard_ttl_at?: number | null | undefined;
624
+ deleted_at?: number | null | undefined;
625
+ next_deadline_at?: number | null | undefined;
626
+ recovery?: {
627
+ reason: string;
628
+ at: number;
629
+ memory_kept: boolean;
630
+ recovery_point?: {
631
+ at: number;
632
+ kind: string;
633
+ } | null | undefined;
634
+ } | null | undefined;
635
+ interruption?: {
636
+ reason: string;
637
+ at: number;
638
+ } | null | undefined;
639
+ }>>>;
640
+ }, z.core.$strip>;
641
+ export declare const labelsAnswerSchema: z.ZodObject<{
642
+ labels: z.ZodRecord<z.ZodString, z.ZodString>;
643
+ }, z.core.$strip>;
644
+ export declare const checkpointSchema: z.ZodPipe<z.ZodObject<{
645
+ snapshot_id: z.ZodString;
646
+ }, z.core.$strip>, z.ZodTransform<{
647
+ snapshotId: string;
648
+ }, {
649
+ snapshot_id: string;
650
+ }>>;
651
+ export declare const forkSchema: z.ZodPipe<z.ZodObject<{
652
+ snapshot_id: z.ZodString;
653
+ children: z.ZodArray<z.ZodIntersection<z.ZodPipe<z.ZodObject<{
654
+ id: z.ZodString;
655
+ organization_id: z.ZodString;
656
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
657
+ state: z.ZodString;
658
+ generation: z.ZodNumber;
659
+ host_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
660
+ size: z.ZodObject<{
661
+ vcpu: z.ZodNumber;
662
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
663
+ request: z.ZodNumber;
664
+ limit: z.ZodNumber;
665
+ }, z.core.$strip>>>;
666
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
667
+ request: z.ZodNumber;
668
+ limit: z.ZodNumber;
669
+ }, z.core.$strip>>>;
670
+ memory_mb: z.ZodNumber;
671
+ disk_gb: z.ZodNumber;
672
+ }, z.core.$strip>;
673
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
674
+ image_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
675
+ template_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
676
+ labels: z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodString>>;
677
+ timers: z.ZodDefault<z.ZodObject<{
678
+ idle_timeout_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
679
+ wall_clock_limit_s: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
680
+ }, z.core.$strip>>;
681
+ wall_clock_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
682
+ paused_until: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
683
+ deletes_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
684
+ warn_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
685
+ hard_ttl_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
686
+ deleted_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
687
+ created_at: z.ZodNumber;
688
+ next_deadline_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
689
+ recovery: z.ZodOptional<z.ZodNullable<z.ZodObject<{
690
+ reason: z.ZodString;
691
+ at: z.ZodNumber;
692
+ recovery_point: z.ZodOptional<z.ZodNullable<z.ZodObject<{
693
+ at: z.ZodNumber;
694
+ kind: z.ZodString;
695
+ }, z.core.$strip>>>;
696
+ memory_kept: z.ZodBoolean;
697
+ }, z.core.$strip>>>;
698
+ interruption: z.ZodOptional<z.ZodNullable<z.ZodObject<{
699
+ reason: z.ZodString;
700
+ at: z.ZodNumber;
701
+ }, z.core.$strip>>>;
702
+ }, z.core.$strip>, z.ZodTransform<{
703
+ id: string;
704
+ organizationId: string;
705
+ projectId: string | null;
706
+ state: string;
707
+ generation: number;
708
+ hostId: string | null;
709
+ vcpu: number;
710
+ cpu: {
711
+ request: number;
712
+ limit: number;
713
+ } | null;
714
+ memory: {
715
+ request: number;
716
+ limit: number;
717
+ } | null;
718
+ memoryMb: number;
719
+ diskGb: number;
720
+ cpuPool: string | null;
721
+ imageId: string | null;
722
+ templateId: string | null;
723
+ labels: Record<string, string>;
724
+ idleTimeoutS: number | null;
725
+ wallClockLimitS: number | null;
726
+ wallClockDeadlineAt: Date | null;
727
+ pausedUntil: Date | null;
728
+ deletesAt: Date | null;
729
+ warnAt: Date | null;
730
+ hardTtlAt: Date | null;
731
+ deletedAt: Date | null;
732
+ createdAt: Date;
733
+ nextDeadlineAt: Date | null;
734
+ recovery: {
735
+ reason: string;
736
+ at: Date;
737
+ recoveryPoint: {
738
+ at: Date;
739
+ kind: string;
740
+ } | null;
741
+ memoryKept: boolean;
742
+ } | null;
743
+ interruption: {
744
+ reason: string;
745
+ at: Date;
746
+ } | null;
747
+ }, {
748
+ id: string;
749
+ organization_id: string;
750
+ state: string;
751
+ generation: number;
752
+ size: {
753
+ vcpu: number;
754
+ memory_mb: number;
755
+ disk_gb: number;
756
+ cpu?: {
757
+ request: number;
758
+ limit: number;
759
+ } | null | undefined;
760
+ memory?: {
761
+ request: number;
762
+ limit: number;
763
+ } | null | undefined;
764
+ };
765
+ labels: Record<string, string>;
766
+ timers: {
767
+ idle_timeout_s?: number | null | undefined;
768
+ wall_clock_limit_s?: number | null | undefined;
769
+ };
770
+ created_at: number;
771
+ project_id?: string | null | undefined;
772
+ host_id?: string | null | undefined;
773
+ cpu_pool?: string | null | undefined;
774
+ image_id?: string | null | undefined;
775
+ template_id?: string | null | undefined;
776
+ wall_clock_deadline_at?: number | null | undefined;
777
+ paused_until?: number | null | undefined;
778
+ deletes_at?: number | null | undefined;
779
+ warn_at?: number | null | undefined;
780
+ hard_ttl_at?: number | null | undefined;
781
+ deleted_at?: number | null | undefined;
782
+ next_deadline_at?: number | null | undefined;
783
+ recovery?: {
784
+ reason: string;
785
+ at: number;
786
+ memory_kept: boolean;
787
+ recovery_point?: {
788
+ at: number;
789
+ kind: string;
790
+ } | null | undefined;
791
+ } | null | undefined;
792
+ interruption?: {
793
+ reason: string;
794
+ at: number;
795
+ } | null | undefined;
796
+ }>>, z.ZodPipe<z.ZodObject<{
797
+ connect: z.ZodOptional<z.ZodPipe<z.ZodObject<{
798
+ endpoint: z.ZodString;
799
+ token: z.ZodString;
800
+ expires_at: z.ZodNumber;
801
+ generation: z.ZodNumber;
802
+ resumed: z.ZodOptional<z.ZodNullable<z.ZodObject<{
803
+ mode: z.ZodString;
804
+ reason: z.ZodString;
805
+ }, z.core.$strip>>>;
806
+ }, z.core.$strip>, z.ZodTransform<{
807
+ endpoint: string;
808
+ token: string;
809
+ expiresAt: number;
810
+ generation: number;
811
+ resumed: {
812
+ mode: string;
813
+ reason: string;
814
+ } | null;
815
+ }, {
816
+ endpoint: string;
817
+ token: string;
818
+ expires_at: number;
819
+ generation: number;
820
+ resumed?: {
821
+ mode: string;
822
+ reason: string;
823
+ } | null | undefined;
824
+ }>>>;
825
+ }, z.core.$strip>, z.ZodTransform<{
826
+ connect: {
827
+ endpoint: string;
828
+ token: string;
829
+ expiresAt: number;
830
+ generation: number;
831
+ resumed: {
832
+ mode: string;
833
+ reason: string;
834
+ } | null;
835
+ } | null;
836
+ }, {
837
+ connect?: {
838
+ endpoint: string;
839
+ token: string;
840
+ expiresAt: number;
841
+ generation: number;
842
+ resumed: {
843
+ mode: string;
844
+ reason: string;
845
+ } | null;
846
+ } | undefined;
847
+ }>>>>;
848
+ }, z.core.$strip>, z.ZodTransform<{
849
+ snapshotId: string;
850
+ children: ({
851
+ id: string;
852
+ organizationId: string;
853
+ projectId: string | null;
854
+ state: string;
855
+ generation: number;
856
+ hostId: string | null;
857
+ vcpu: number;
858
+ cpu: {
859
+ request: number;
860
+ limit: number;
861
+ } | null;
862
+ memory: {
863
+ request: number;
864
+ limit: number;
865
+ } | null;
866
+ memoryMb: number;
867
+ diskGb: number;
868
+ cpuPool: string | null;
869
+ imageId: string | null;
870
+ templateId: string | null;
871
+ labels: Record<string, string>;
872
+ idleTimeoutS: number | null;
873
+ wallClockLimitS: number | null;
874
+ wallClockDeadlineAt: Date | null;
875
+ pausedUntil: Date | null;
876
+ deletesAt: Date | null;
877
+ warnAt: Date | null;
878
+ hardTtlAt: Date | null;
879
+ deletedAt: Date | null;
880
+ createdAt: Date;
881
+ nextDeadlineAt: Date | null;
882
+ recovery: {
883
+ reason: string;
884
+ at: Date;
885
+ recoveryPoint: {
886
+ at: Date;
887
+ kind: string;
888
+ } | null;
889
+ memoryKept: boolean;
890
+ } | null;
891
+ interruption: {
892
+ reason: string;
893
+ at: Date;
894
+ } | null;
895
+ } & {
896
+ connect: {
897
+ endpoint: string;
898
+ token: string;
899
+ expiresAt: number;
900
+ generation: number;
901
+ resumed: {
902
+ mode: string;
903
+ reason: string;
904
+ } | null;
905
+ } | null;
906
+ })[];
907
+ }, {
908
+ snapshot_id: string;
909
+ children: ({
910
+ id: string;
911
+ organizationId: string;
912
+ projectId: string | null;
913
+ state: string;
914
+ generation: number;
915
+ hostId: string | null;
916
+ vcpu: number;
917
+ cpu: {
918
+ request: number;
919
+ limit: number;
920
+ } | null;
921
+ memory: {
922
+ request: number;
923
+ limit: number;
924
+ } | null;
925
+ memoryMb: number;
926
+ diskGb: number;
927
+ cpuPool: string | null;
928
+ imageId: string | null;
929
+ templateId: string | null;
930
+ labels: Record<string, string>;
931
+ idleTimeoutS: number | null;
932
+ wallClockLimitS: number | null;
933
+ wallClockDeadlineAt: Date | null;
934
+ pausedUntil: Date | null;
935
+ deletesAt: Date | null;
936
+ warnAt: Date | null;
937
+ hardTtlAt: Date | null;
938
+ deletedAt: Date | null;
939
+ createdAt: Date;
940
+ nextDeadlineAt: Date | null;
941
+ recovery: {
942
+ reason: string;
943
+ at: Date;
944
+ recoveryPoint: {
945
+ at: Date;
946
+ kind: string;
947
+ } | null;
948
+ memoryKept: boolean;
949
+ } | null;
950
+ interruption: {
951
+ reason: string;
952
+ at: Date;
953
+ } | null;
954
+ } & {
955
+ connect: {
956
+ endpoint: string;
957
+ token: string;
958
+ expiresAt: number;
959
+ generation: number;
960
+ resumed: {
961
+ mode: string;
962
+ reason: string;
963
+ } | null;
964
+ } | null;
965
+ })[];
966
+ }>>;
967
+ export declare const previewTokenSchema: z.ZodPipe<z.ZodObject<{
968
+ token: z.ZodString;
969
+ expires_at: z.ZodNumber;
970
+ }, z.core.$strip>, z.ZodTransform<{
971
+ token: string;
972
+ expiresAt: Date;
973
+ }, {
974
+ token: string;
975
+ expires_at: number;
976
+ }>>;
977
+ export declare const portSchema: z.ZodPipe<z.ZodObject<{
978
+ port: z.ZodNumber;
979
+ public: z.ZodBoolean;
980
+ }, z.core.$strip>, z.ZodTransform<{
981
+ port: number;
982
+ public: boolean;
983
+ }, {
984
+ port: number;
985
+ public: boolean;
986
+ }>>;
987
+ export declare const imageSchema: z.ZodPipe<z.ZodObject<{
988
+ id: z.ZodString;
989
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
990
+ platform: z.ZodOptional<z.ZodBoolean>;
991
+ lineage: z.ZodOptional<z.ZodNullable<z.ZodString>>;
992
+ reference: z.ZodString;
993
+ digest: z.ZodOptional<z.ZodNullable<z.ZodString>>;
994
+ converter_version: z.ZodOptional<z.ZodNullable<z.ZodString>>;
995
+ state: z.ZodString;
996
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
997
+ error_class: z.ZodOptional<z.ZodNullable<z.ZodString>>;
998
+ size_bytes: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
999
+ has_shell: z.ZodOptional<z.ZodNullable<z.ZodBoolean>>;
1000
+ exposed_ports: z.ZodOptional<z.ZodNullable<z.ZodArray<z.ZodNumber>>>;
1001
+ default_user: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1002
+ created_at: z.ZodNumber;
1003
+ }, z.core.$strip>, z.ZodTransform<{
1004
+ id: string;
1005
+ projectId: string | null;
1006
+ platform: boolean;
1007
+ lineage: string | null;
1008
+ reference: string;
1009
+ digest: string | null;
1010
+ converterVersion: string | null;
1011
+ state: string;
1012
+ errorCode: string | null;
1013
+ errorClass: string | null;
1014
+ sizeBytes: number | null;
1015
+ hasShell: boolean | null;
1016
+ exposedPorts: number[];
1017
+ defaultUser: string | null;
1018
+ createdAt: Date;
1019
+ }, {
1020
+ id: string;
1021
+ reference: string;
1022
+ state: string;
1023
+ created_at: number;
1024
+ project_id?: string | null | undefined;
1025
+ platform?: boolean | undefined;
1026
+ lineage?: string | null | undefined;
1027
+ digest?: string | null | undefined;
1028
+ converter_version?: string | null | undefined;
1029
+ error_code?: string | null | undefined;
1030
+ error_class?: string | null | undefined;
1031
+ size_bytes?: number | null | undefined;
1032
+ has_shell?: boolean | null | undefined;
1033
+ exposed_ports?: number[] | null | undefined;
1034
+ default_user?: string | null | undefined;
1035
+ }>>;
1036
+ export type ImageIface = z.output<typeof imageSchema>;
1037
+ export declare enum ImageState {
1038
+ Pending = "pending",
1039
+ Converting = "converting",
1040
+ Ready = "ready",
1041
+ Failed = "failed"
1042
+ }
1043
+ export declare const templateSchema: z.ZodPipe<z.ZodObject<{
1044
+ id: z.ZodString;
1045
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1046
+ name: z.ZodString;
1047
+ image_id: z.ZodString;
1048
+ start_cmd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1049
+ ready_cmd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1050
+ warmup_cmd: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1051
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1052
+ vcpu: z.ZodNumber;
1053
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1054
+ request: z.ZodNumber;
1055
+ limit: z.ZodNumber;
1056
+ }, z.core.$strip>>>;
1057
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1058
+ request: z.ZodNumber;
1059
+ limit: z.ZodNumber;
1060
+ }, z.core.$strip>>>;
1061
+ memory_mb: z.ZodNumber;
1062
+ snapshot_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1063
+ state: z.ZodString;
1064
+ tools: z.ZodOptional<z.ZodArray<z.ZodString>>;
1065
+ created_at: z.ZodNumber;
1066
+ }, z.core.$strip>, z.ZodTransform<{
1067
+ id: string;
1068
+ projectId: string | null;
1069
+ name: string;
1070
+ imageId: string;
1071
+ startCmd: string | null;
1072
+ readyCmd: string | null;
1073
+ warmupCmd: string | null;
1074
+ cpuPool: string | null;
1075
+ vcpu: number;
1076
+ cpu: {
1077
+ request: number;
1078
+ limit: number;
1079
+ } | null;
1080
+ memory: {
1081
+ request: number;
1082
+ limit: number;
1083
+ } | null;
1084
+ memoryMb: number;
1085
+ snapshotId: string | null;
1086
+ state: string;
1087
+ tools: string[];
1088
+ createdAt: Date;
1089
+ }, {
1090
+ id: string;
1091
+ name: string;
1092
+ image_id: string;
1093
+ vcpu: number;
1094
+ memory_mb: number;
1095
+ state: string;
1096
+ created_at: number;
1097
+ project_id?: string | null | undefined;
1098
+ start_cmd?: string | null | undefined;
1099
+ ready_cmd?: string | null | undefined;
1100
+ warmup_cmd?: string | null | undefined;
1101
+ cpu_pool?: string | null | undefined;
1102
+ cpu?: {
1103
+ request: number;
1104
+ limit: number;
1105
+ } | null | undefined;
1106
+ memory?: {
1107
+ request: number;
1108
+ limit: number;
1109
+ } | null | undefined;
1110
+ snapshot_id?: string | null | undefined;
1111
+ tools?: string[] | undefined;
1112
+ }>>;
1113
+ export type TemplateIface = z.output<typeof templateSchema>;
1114
+ export declare enum TemplateState {
1115
+ Pending = "pending",
1116
+ Building = "building",
1117
+ Ready = "ready",
1118
+ Failed = "failed"
1119
+ }
1120
+ export declare const templateBuildSchema: z.ZodPipe<z.ZodObject<{
1121
+ id: z.ZodString;
1122
+ template_id: z.ZodString;
1123
+ state: z.ZodString;
1124
+ error_code: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1125
+ started_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1126
+ finished_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1127
+ }, z.core.$strip>, z.ZodTransform<{
1128
+ id: string;
1129
+ templateId: string;
1130
+ state: string;
1131
+ errorCode: string | null;
1132
+ startedAt: Date | null;
1133
+ finishedAt: Date | null;
1134
+ }, {
1135
+ id: string;
1136
+ template_id: string;
1137
+ state: string;
1138
+ error_code?: string | null | undefined;
1139
+ started_at?: number | null | undefined;
1140
+ finished_at?: number | null | undefined;
1141
+ }>>;
1142
+ export type TemplateBuildIface = z.output<typeof templateBuildSchema>;
1143
+ export declare const snapshotSchema: z.ZodPipe<z.ZodObject<{
1144
+ id: z.ZodString;
1145
+ project_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1146
+ sandbox_id: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1147
+ name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1148
+ kind: z.ZodString;
1149
+ cpu_pool: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1150
+ vcpu: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1151
+ cpu: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1152
+ request: z.ZodNumber;
1153
+ limit: z.ZodNumber;
1154
+ }, z.core.$strip>>>;
1155
+ memory: z.ZodOptional<z.ZodNullable<z.ZodObject<{
1156
+ request: z.ZodNumber;
1157
+ limit: z.ZodNumber;
1158
+ }, z.core.$strip>>>;
1159
+ memory_mb: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1160
+ durable_at: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
1161
+ created_at: z.ZodNumber;
1162
+ }, z.core.$strip>, z.ZodTransform<{
1163
+ id: string;
1164
+ projectId: string | null;
1165
+ sandboxId: string | null;
1166
+ name: string | null;
1167
+ kind: string;
1168
+ cpuPool: string | null;
1169
+ vcpu: number | null;
1170
+ cpu: {
1171
+ request: number;
1172
+ limit: number;
1173
+ } | null;
1174
+ memory: {
1175
+ request: number;
1176
+ limit: number;
1177
+ } | null;
1178
+ memoryMb: number | null;
1179
+ durableAt: Date | null;
1180
+ createdAt: Date;
1181
+ }, {
1182
+ id: string;
1183
+ kind: string;
1184
+ created_at: number;
1185
+ project_id?: string | null | undefined;
1186
+ sandbox_id?: string | null | undefined;
1187
+ name?: string | null | undefined;
1188
+ cpu_pool?: string | null | undefined;
1189
+ vcpu?: number | null | undefined;
1190
+ cpu?: {
1191
+ request: number;
1192
+ limit: number;
1193
+ } | null | undefined;
1194
+ memory?: {
1195
+ request: number;
1196
+ limit: number;
1197
+ } | null | undefined;
1198
+ memory_mb?: number | null | undefined;
1199
+ durable_at?: number | null | undefined;
1200
+ }>>;
1201
+ export type SnapshotIface = z.output<typeof snapshotSchema>;
1202
+ export declare const deletedSchema: z.ZodObject<{
1203
+ id: z.ZodString;
1204
+ deleted: z.ZodBoolean;
1205
+ }, z.core.$strip>;
1206
+ export declare const apiErrorBodySchema: z.ZodObject<{
1207
+ error: z.ZodString;
1208
+ message: z.ZodOptional<z.ZodNullable<z.ZodString>>;
1209
+ }, z.core.$strip>;