@zgeoff/imp-client 0.0.0 → 0.1.0

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.
package/dist/index.d.ts CHANGED
@@ -72,9 +72,12 @@ declare const impContract: {
72
72
  readonly message: "Not found";
73
73
  readonly data: z.ZodObject<{
74
74
  kind: z.ZodEnum<{
75
+ backup: "backup";
75
76
  checkpoint: "checkpoint";
77
+ grant: "grant";
76
78
  image: "image";
77
79
  imp: "imp";
80
+ secret: "secret";
78
81
  session: "session";
79
82
  }>;
80
83
  name: z.ZodString;
@@ -84,9 +87,12 @@ declare const impContract: {
84
87
  readonly message: "Already exists";
85
88
  readonly data: z.ZodObject<{
86
89
  kind: z.ZodEnum<{
90
+ backup: "backup";
87
91
  checkpoint: "checkpoint";
92
+ grant: "grant";
88
93
  image: "image";
89
94
  imp: "imp";
95
+ secret: "secret";
90
96
  session: "session";
91
97
  }>;
92
98
  name: z.ZodString;
@@ -95,6 +101,9 @@ declare const impContract: {
95
101
  FORBIDDEN: {
96
102
  readonly message: "Not allowed";
97
103
  };
104
+ PRECONDITION_FAILED: {
105
+ readonly message: "Not possible on this host";
106
+ };
98
107
  RAM_BUDGET_EXCEEDED: {
99
108
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
100
109
  readonly status: 503;
@@ -170,9 +179,12 @@ declare const impContract: {
170
179
  readonly message: "Not found";
171
180
  readonly data: z.ZodObject<{
172
181
  kind: z.ZodEnum<{
182
+ backup: "backup";
173
183
  checkpoint: "checkpoint";
184
+ grant: "grant";
174
185
  image: "image";
175
186
  imp: "imp";
187
+ secret: "secret";
176
188
  session: "session";
177
189
  }>;
178
190
  name: z.ZodString;
@@ -182,9 +194,12 @@ declare const impContract: {
182
194
  readonly message: "Already exists";
183
195
  readonly data: z.ZodObject<{
184
196
  kind: z.ZodEnum<{
197
+ backup: "backup";
185
198
  checkpoint: "checkpoint";
199
+ grant: "grant";
186
200
  image: "image";
187
201
  imp: "imp";
202
+ secret: "secret";
188
203
  session: "session";
189
204
  }>;
190
205
  name: z.ZodString;
@@ -193,6 +208,9 @@ declare const impContract: {
193
208
  FORBIDDEN: {
194
209
  readonly message: "Not allowed";
195
210
  };
211
+ PRECONDITION_FAILED: {
212
+ readonly message: "Not possible on this host";
213
+ };
196
214
  RAM_BUDGET_EXCEEDED: {
197
215
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
198
216
  readonly status: 503;
@@ -270,9 +288,12 @@ declare const impContract: {
270
288
  readonly message: "Not found";
271
289
  readonly data: z.ZodObject<{
272
290
  kind: z.ZodEnum<{
291
+ backup: "backup";
273
292
  checkpoint: "checkpoint";
293
+ grant: "grant";
274
294
  image: "image";
275
295
  imp: "imp";
296
+ secret: "secret";
276
297
  session: "session";
277
298
  }>;
278
299
  name: z.ZodString;
@@ -282,9 +303,12 @@ declare const impContract: {
282
303
  readonly message: "Already exists";
283
304
  readonly data: z.ZodObject<{
284
305
  kind: z.ZodEnum<{
306
+ backup: "backup";
285
307
  checkpoint: "checkpoint";
308
+ grant: "grant";
286
309
  image: "image";
287
310
  imp: "imp";
311
+ secret: "secret";
288
312
  session: "session";
289
313
  }>;
290
314
  name: z.ZodString;
@@ -293,6 +317,9 @@ declare const impContract: {
293
317
  FORBIDDEN: {
294
318
  readonly message: "Not allowed";
295
319
  };
320
+ PRECONDITION_FAILED: {
321
+ readonly message: "Not possible on this host";
322
+ };
296
323
  RAM_BUDGET_EXCEEDED: {
297
324
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
298
325
  readonly status: 503;
@@ -337,9 +364,12 @@ declare const impContract: {
337
364
  readonly message: "Not found";
338
365
  readonly data: z.ZodObject<{
339
366
  kind: z.ZodEnum<{
367
+ backup: "backup";
340
368
  checkpoint: "checkpoint";
369
+ grant: "grant";
341
370
  image: "image";
342
371
  imp: "imp";
372
+ secret: "secret";
343
373
  session: "session";
344
374
  }>;
345
375
  name: z.ZodString;
@@ -349,9 +379,12 @@ declare const impContract: {
349
379
  readonly message: "Already exists";
350
380
  readonly data: z.ZodObject<{
351
381
  kind: z.ZodEnum<{
382
+ backup: "backup";
352
383
  checkpoint: "checkpoint";
384
+ grant: "grant";
353
385
  image: "image";
354
386
  imp: "imp";
387
+ secret: "secret";
355
388
  session: "session";
356
389
  }>;
357
390
  name: z.ZodString;
@@ -360,6 +393,9 @@ declare const impContract: {
360
393
  FORBIDDEN: {
361
394
  readonly message: "Not allowed";
362
395
  };
396
+ PRECONDITION_FAILED: {
397
+ readonly message: "Not possible on this host";
398
+ };
363
399
  RAM_BUDGET_EXCEEDED: {
364
400
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
365
401
  readonly status: 503;
@@ -437,9 +473,12 @@ declare const impContract: {
437
473
  readonly message: "Not found";
438
474
  readonly data: z.ZodObject<{
439
475
  kind: z.ZodEnum<{
476
+ backup: "backup";
440
477
  checkpoint: "checkpoint";
478
+ grant: "grant";
441
479
  image: "image";
442
480
  imp: "imp";
481
+ secret: "secret";
443
482
  session: "session";
444
483
  }>;
445
484
  name: z.ZodString;
@@ -449,9 +488,12 @@ declare const impContract: {
449
488
  readonly message: "Already exists";
450
489
  readonly data: z.ZodObject<{
451
490
  kind: z.ZodEnum<{
491
+ backup: "backup";
452
492
  checkpoint: "checkpoint";
493
+ grant: "grant";
453
494
  image: "image";
454
495
  imp: "imp";
496
+ secret: "secret";
455
497
  session: "session";
456
498
  }>;
457
499
  name: z.ZodString;
@@ -460,6 +502,9 @@ declare const impContract: {
460
502
  FORBIDDEN: {
461
503
  readonly message: "Not allowed";
462
504
  };
505
+ PRECONDITION_FAILED: {
506
+ readonly message: "Not possible on this host";
507
+ };
463
508
  RAM_BUDGET_EXCEEDED: {
464
509
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
465
510
  readonly status: 503;
@@ -537,9 +582,12 @@ declare const impContract: {
537
582
  readonly message: "Not found";
538
583
  readonly data: z.ZodObject<{
539
584
  kind: z.ZodEnum<{
585
+ backup: "backup";
540
586
  checkpoint: "checkpoint";
587
+ grant: "grant";
541
588
  image: "image";
542
589
  imp: "imp";
590
+ secret: "secret";
543
591
  session: "session";
544
592
  }>;
545
593
  name: z.ZodString;
@@ -549,9 +597,12 @@ declare const impContract: {
549
597
  readonly message: "Already exists";
550
598
  readonly data: z.ZodObject<{
551
599
  kind: z.ZodEnum<{
600
+ backup: "backup";
552
601
  checkpoint: "checkpoint";
602
+ grant: "grant";
553
603
  image: "image";
554
604
  imp: "imp";
605
+ secret: "secret";
555
606
  session: "session";
556
607
  }>;
557
608
  name: z.ZodString;
@@ -560,6 +611,9 @@ declare const impContract: {
560
611
  FORBIDDEN: {
561
612
  readonly message: "Not allowed";
562
613
  };
614
+ PRECONDITION_FAILED: {
615
+ readonly message: "Not possible on this host";
616
+ };
563
617
  RAM_BUDGET_EXCEEDED: {
564
618
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
565
619
  readonly status: 503;
@@ -637,9 +691,12 @@ declare const impContract: {
637
691
  readonly message: "Not found";
638
692
  readonly data: z.ZodObject<{
639
693
  kind: z.ZodEnum<{
694
+ backup: "backup";
640
695
  checkpoint: "checkpoint";
696
+ grant: "grant";
641
697
  image: "image";
642
698
  imp: "imp";
699
+ secret: "secret";
643
700
  session: "session";
644
701
  }>;
645
702
  name: z.ZodString;
@@ -649,9 +706,12 @@ declare const impContract: {
649
706
  readonly message: "Already exists";
650
707
  readonly data: z.ZodObject<{
651
708
  kind: z.ZodEnum<{
709
+ backup: "backup";
652
710
  checkpoint: "checkpoint";
711
+ grant: "grant";
653
712
  image: "image";
654
713
  imp: "imp";
714
+ secret: "secret";
655
715
  session: "session";
656
716
  }>;
657
717
  name: z.ZodString;
@@ -660,6 +720,9 @@ declare const impContract: {
660
720
  FORBIDDEN: {
661
721
  readonly message: "Not allowed";
662
722
  };
723
+ PRECONDITION_FAILED: {
724
+ readonly message: "Not possible on this host";
725
+ };
663
726
  RAM_BUDGET_EXCEEDED: {
664
727
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
665
728
  readonly status: 503;
@@ -738,9 +801,12 @@ declare const impContract: {
738
801
  readonly message: "Not found";
739
802
  readonly data: z.ZodObject<{
740
803
  kind: z.ZodEnum<{
804
+ backup: "backup";
741
805
  checkpoint: "checkpoint";
806
+ grant: "grant";
742
807
  image: "image";
743
808
  imp: "imp";
809
+ secret: "secret";
744
810
  session: "session";
745
811
  }>;
746
812
  name: z.ZodString;
@@ -750,9 +816,12 @@ declare const impContract: {
750
816
  readonly message: "Already exists";
751
817
  readonly data: z.ZodObject<{
752
818
  kind: z.ZodEnum<{
819
+ backup: "backup";
753
820
  checkpoint: "checkpoint";
821
+ grant: "grant";
754
822
  image: "image";
755
823
  imp: "imp";
824
+ secret: "secret";
756
825
  session: "session";
757
826
  }>;
758
827
  name: z.ZodString;
@@ -761,6 +830,9 @@ declare const impContract: {
761
830
  FORBIDDEN: {
762
831
  readonly message: "Not allowed";
763
832
  };
833
+ PRECONDITION_FAILED: {
834
+ readonly message: "Not possible on this host";
835
+ };
764
836
  RAM_BUDGET_EXCEEDED: {
765
837
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
766
838
  readonly status: 503;
@@ -839,9 +911,12 @@ declare const impContract: {
839
911
  readonly message: "Not found";
840
912
  readonly data: z.ZodObject<{
841
913
  kind: z.ZodEnum<{
914
+ backup: "backup";
842
915
  checkpoint: "checkpoint";
916
+ grant: "grant";
843
917
  image: "image";
844
918
  imp: "imp";
919
+ secret: "secret";
845
920
  session: "session";
846
921
  }>;
847
922
  name: z.ZodString;
@@ -851,9 +926,12 @@ declare const impContract: {
851
926
  readonly message: "Already exists";
852
927
  readonly data: z.ZodObject<{
853
928
  kind: z.ZodEnum<{
929
+ backup: "backup";
854
930
  checkpoint: "checkpoint";
931
+ grant: "grant";
855
932
  image: "image";
856
933
  imp: "imp";
934
+ secret: "secret";
857
935
  session: "session";
858
936
  }>;
859
937
  name: z.ZodString;
@@ -862,6 +940,9 @@ declare const impContract: {
862
940
  FORBIDDEN: {
863
941
  readonly message: "Not allowed";
864
942
  };
943
+ PRECONDITION_FAILED: {
944
+ readonly message: "Not possible on this host";
945
+ };
865
946
  RAM_BUDGET_EXCEEDED: {
866
947
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
867
948
  readonly status: 503;
@@ -903,15 +984,19 @@ declare const impContract: {
903
984
  name: z.ZodString;
904
985
  }, z.core.$strip>, z.ZodObject<{
905
986
  local: z.ZodURL;
987
+ https: z.ZodNullable<z.ZodURL>;
906
988
  tailnet: z.ZodNullable<z.ZodURL>;
907
989
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
908
990
  NOT_FOUND: {
909
991
  readonly message: "Not found";
910
992
  readonly data: z.ZodObject<{
911
993
  kind: z.ZodEnum<{
994
+ backup: "backup";
912
995
  checkpoint: "checkpoint";
996
+ grant: "grant";
913
997
  image: "image";
914
998
  imp: "imp";
999
+ secret: "secret";
915
1000
  session: "session";
916
1001
  }>;
917
1002
  name: z.ZodString;
@@ -921,9 +1006,12 @@ declare const impContract: {
921
1006
  readonly message: "Already exists";
922
1007
  readonly data: z.ZodObject<{
923
1008
  kind: z.ZodEnum<{
1009
+ backup: "backup";
924
1010
  checkpoint: "checkpoint";
1011
+ grant: "grant";
925
1012
  image: "image";
926
1013
  imp: "imp";
1014
+ secret: "secret";
927
1015
  session: "session";
928
1016
  }>;
929
1017
  name: z.ZodString;
@@ -932,6 +1020,9 @@ declare const impContract: {
932
1020
  FORBIDDEN: {
933
1021
  readonly message: "Not allowed";
934
1022
  };
1023
+ PRECONDITION_FAILED: {
1024
+ readonly message: "Not possible on this host";
1025
+ };
935
1026
  RAM_BUDGET_EXCEEDED: {
936
1027
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
937
1028
  readonly status: 503;
@@ -1011,9 +1102,12 @@ declare const impContract: {
1011
1102
  readonly message: "Not found";
1012
1103
  readonly data: z.ZodObject<{
1013
1104
  kind: z.ZodEnum<{
1105
+ backup: "backup";
1014
1106
  checkpoint: "checkpoint";
1107
+ grant: "grant";
1015
1108
  image: "image";
1016
1109
  imp: "imp";
1110
+ secret: "secret";
1017
1111
  session: "session";
1018
1112
  }>;
1019
1113
  name: z.ZodString;
@@ -1023,9 +1117,12 @@ declare const impContract: {
1023
1117
  readonly message: "Already exists";
1024
1118
  readonly data: z.ZodObject<{
1025
1119
  kind: z.ZodEnum<{
1120
+ backup: "backup";
1026
1121
  checkpoint: "checkpoint";
1122
+ grant: "grant";
1027
1123
  image: "image";
1028
1124
  imp: "imp";
1125
+ secret: "secret";
1029
1126
  session: "session";
1030
1127
  }>;
1031
1128
  name: z.ZodString;
@@ -1034,6 +1131,9 @@ declare const impContract: {
1034
1131
  FORBIDDEN: {
1035
1132
  readonly message: "Not allowed";
1036
1133
  };
1134
+ PRECONDITION_FAILED: {
1135
+ readonly message: "Not possible on this host";
1136
+ };
1037
1137
  RAM_BUDGET_EXCEEDED: {
1038
1138
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1039
1139
  readonly status: 503;
@@ -1086,9 +1186,12 @@ declare const impContract: {
1086
1186
  readonly message: "Not found";
1087
1187
  readonly data: z.ZodObject<{
1088
1188
  kind: z.ZodEnum<{
1189
+ backup: "backup";
1089
1190
  checkpoint: "checkpoint";
1191
+ grant: "grant";
1090
1192
  image: "image";
1091
1193
  imp: "imp";
1194
+ secret: "secret";
1092
1195
  session: "session";
1093
1196
  }>;
1094
1197
  name: z.ZodString;
@@ -1098,9 +1201,12 @@ declare const impContract: {
1098
1201
  readonly message: "Already exists";
1099
1202
  readonly data: z.ZodObject<{
1100
1203
  kind: z.ZodEnum<{
1204
+ backup: "backup";
1101
1205
  checkpoint: "checkpoint";
1206
+ grant: "grant";
1102
1207
  image: "image";
1103
1208
  imp: "imp";
1209
+ secret: "secret";
1104
1210
  session: "session";
1105
1211
  }>;
1106
1212
  name: z.ZodString;
@@ -1109,6 +1215,9 @@ declare const impContract: {
1109
1215
  FORBIDDEN: {
1110
1216
  readonly message: "Not allowed";
1111
1217
  };
1218
+ PRECONDITION_FAILED: {
1219
+ readonly message: "Not possible on this host";
1220
+ };
1112
1221
  RAM_BUDGET_EXCEEDED: {
1113
1222
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1114
1223
  readonly status: 503;
@@ -1158,9 +1267,12 @@ declare const impContract: {
1158
1267
  readonly message: "Not found";
1159
1268
  readonly data: z.ZodObject<{
1160
1269
  kind: z.ZodEnum<{
1270
+ backup: "backup";
1161
1271
  checkpoint: "checkpoint";
1272
+ grant: "grant";
1162
1273
  image: "image";
1163
1274
  imp: "imp";
1275
+ secret: "secret";
1164
1276
  session: "session";
1165
1277
  }>;
1166
1278
  name: z.ZodString;
@@ -1170,9 +1282,12 @@ declare const impContract: {
1170
1282
  readonly message: "Already exists";
1171
1283
  readonly data: z.ZodObject<{
1172
1284
  kind: z.ZodEnum<{
1285
+ backup: "backup";
1173
1286
  checkpoint: "checkpoint";
1287
+ grant: "grant";
1174
1288
  image: "image";
1175
1289
  imp: "imp";
1290
+ secret: "secret";
1176
1291
  session: "session";
1177
1292
  }>;
1178
1293
  name: z.ZodString;
@@ -1181,6 +1296,9 @@ declare const impContract: {
1181
1296
  FORBIDDEN: {
1182
1297
  readonly message: "Not allowed";
1183
1298
  };
1299
+ PRECONDITION_FAILED: {
1300
+ readonly message: "Not possible on this host";
1301
+ };
1184
1302
  RAM_BUDGET_EXCEEDED: {
1185
1303
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1186
1304
  readonly status: 503;
@@ -1259,9 +1377,12 @@ declare const impContract: {
1259
1377
  readonly message: "Not found";
1260
1378
  readonly data: z.ZodObject<{
1261
1379
  kind: z.ZodEnum<{
1380
+ backup: "backup";
1262
1381
  checkpoint: "checkpoint";
1382
+ grant: "grant";
1263
1383
  image: "image";
1264
1384
  imp: "imp";
1385
+ secret: "secret";
1265
1386
  session: "session";
1266
1387
  }>;
1267
1388
  name: z.ZodString;
@@ -1271,9 +1392,12 @@ declare const impContract: {
1271
1392
  readonly message: "Already exists";
1272
1393
  readonly data: z.ZodObject<{
1273
1394
  kind: z.ZodEnum<{
1395
+ backup: "backup";
1274
1396
  checkpoint: "checkpoint";
1397
+ grant: "grant";
1275
1398
  image: "image";
1276
1399
  imp: "imp";
1400
+ secret: "secret";
1277
1401
  session: "session";
1278
1402
  }>;
1279
1403
  name: z.ZodString;
@@ -1282,6 +1406,9 @@ declare const impContract: {
1282
1406
  FORBIDDEN: {
1283
1407
  readonly message: "Not allowed";
1284
1408
  };
1409
+ PRECONDITION_FAILED: {
1410
+ readonly message: "Not possible on this host";
1411
+ };
1285
1412
  RAM_BUDGET_EXCEEDED: {
1286
1413
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1287
1414
  readonly status: 503;
@@ -1327,9 +1454,12 @@ declare const impContract: {
1327
1454
  readonly message: "Not found";
1328
1455
  readonly data: z.ZodObject<{
1329
1456
  kind: z.ZodEnum<{
1457
+ backup: "backup";
1330
1458
  checkpoint: "checkpoint";
1459
+ grant: "grant";
1331
1460
  image: "image";
1332
1461
  imp: "imp";
1462
+ secret: "secret";
1333
1463
  session: "session";
1334
1464
  }>;
1335
1465
  name: z.ZodString;
@@ -1339,9 +1469,12 @@ declare const impContract: {
1339
1469
  readonly message: "Already exists";
1340
1470
  readonly data: z.ZodObject<{
1341
1471
  kind: z.ZodEnum<{
1472
+ backup: "backup";
1342
1473
  checkpoint: "checkpoint";
1474
+ grant: "grant";
1343
1475
  image: "image";
1344
1476
  imp: "imp";
1477
+ secret: "secret";
1345
1478
  session: "session";
1346
1479
  }>;
1347
1480
  name: z.ZodString;
@@ -1350,6 +1483,9 @@ declare const impContract: {
1350
1483
  FORBIDDEN: {
1351
1484
  readonly message: "Not allowed";
1352
1485
  };
1486
+ PRECONDITION_FAILED: {
1487
+ readonly message: "Not possible on this host";
1488
+ };
1353
1489
  RAM_BUDGET_EXCEEDED: {
1354
1490
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1355
1491
  readonly status: 503;
@@ -1388,22 +1524,27 @@ declare const impContract: {
1388
1524
  };
1389
1525
  }>, Record<never, never>>;
1390
1526
  };
1391
- images: {
1392
- list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1393
- id: z.ZodString;
1394
- name: z.ZodString;
1395
- ref: z.ZodString;
1396
- digest: z.ZodString;
1397
- createdAt: z.ZodDate;
1398
- sizeBytes: z.ZodInt;
1399
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1527
+ backups: {
1528
+ run: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1529
+ snapshotId: z.ZodString;
1530
+ imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1531
+ skipped: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1532
+ name: z.ZodString;
1533
+ reason: z.ZodString;
1534
+ }, z.core.$strip>>>;
1535
+ dataAddedBytes: z.ZodInt;
1536
+ durationMs: z.ZodInt;
1537
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1400
1538
  NOT_FOUND: {
1401
1539
  readonly message: "Not found";
1402
1540
  readonly data: z.ZodObject<{
1403
1541
  kind: z.ZodEnum<{
1542
+ backup: "backup";
1404
1543
  checkpoint: "checkpoint";
1544
+ grant: "grant";
1405
1545
  image: "image";
1406
1546
  imp: "imp";
1547
+ secret: "secret";
1407
1548
  session: "session";
1408
1549
  }>;
1409
1550
  name: z.ZodString;
@@ -1413,9 +1554,12 @@ declare const impContract: {
1413
1554
  readonly message: "Already exists";
1414
1555
  readonly data: z.ZodObject<{
1415
1556
  kind: z.ZodEnum<{
1557
+ backup: "backup";
1416
1558
  checkpoint: "checkpoint";
1559
+ grant: "grant";
1417
1560
  image: "image";
1418
1561
  imp: "imp";
1562
+ secret: "secret";
1419
1563
  session: "session";
1420
1564
  }>;
1421
1565
  name: z.ZodString;
@@ -1424,6 +1568,9 @@ declare const impContract: {
1424
1568
  FORBIDDEN: {
1425
1569
  readonly message: "Not allowed";
1426
1570
  };
1571
+ PRECONDITION_FAILED: {
1572
+ readonly message: "Not possible on this host";
1573
+ };
1427
1574
  RAM_BUDGET_EXCEEDED: {
1428
1575
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1429
1576
  readonly status: 503;
@@ -1461,24 +1608,29 @@ declare const impContract: {
1461
1608
  readonly status: 409;
1462
1609
  };
1463
1610
  }>, Record<never, never>>;
1464
- add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1465
- ref: z.ZodString;
1466
- name: z.ZodOptional<z.ZodString>;
1467
- }, z.core.$strip>, z.ZodObject<{
1468
- id: z.ZodString;
1469
- name: z.ZodString;
1470
- ref: z.ZodString;
1471
- digest: z.ZodString;
1472
- createdAt: z.ZodDate;
1473
- sizeBytes: z.ZodInt;
1611
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1612
+ points: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
1613
+ id: z.ZodString;
1614
+ time: z.ZodDate;
1615
+ imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1616
+ }, z.core.$strip>>>>;
1617
+ lastRunAt: z.ZodNullable<z.ZodDate>;
1618
+ lastPruneAt: z.ZodNullable<z.ZodDate>;
1619
+ lastCheck: z.ZodNullable<z.ZodObject<{
1620
+ at: z.ZodDate;
1621
+ error: z.ZodOptional<z.ZodString>;
1622
+ }, z.core.$strip>>;
1474
1623
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1475
1624
  NOT_FOUND: {
1476
1625
  readonly message: "Not found";
1477
1626
  readonly data: z.ZodObject<{
1478
1627
  kind: z.ZodEnum<{
1628
+ backup: "backup";
1479
1629
  checkpoint: "checkpoint";
1630
+ grant: "grant";
1480
1631
  image: "image";
1481
1632
  imp: "imp";
1633
+ secret: "secret";
1482
1634
  session: "session";
1483
1635
  }>;
1484
1636
  name: z.ZodString;
@@ -1488,9 +1640,12 @@ declare const impContract: {
1488
1640
  readonly message: "Already exists";
1489
1641
  readonly data: z.ZodObject<{
1490
1642
  kind: z.ZodEnum<{
1643
+ backup: "backup";
1491
1644
  checkpoint: "checkpoint";
1645
+ grant: "grant";
1492
1646
  image: "image";
1493
1647
  imp: "imp";
1648
+ secret: "secret";
1494
1649
  session: "session";
1495
1650
  }>;
1496
1651
  name: z.ZodString;
@@ -1499,6 +1654,9 @@ declare const impContract: {
1499
1654
  FORBIDDEN: {
1500
1655
  readonly message: "Not allowed";
1501
1656
  };
1657
+ PRECONDITION_FAILED: {
1658
+ readonly message: "Not possible on this host";
1659
+ };
1502
1660
  RAM_BUDGET_EXCEEDED: {
1503
1661
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1504
1662
  readonly status: 503;
@@ -1536,25 +1694,63 @@ declare const impContract: {
1536
1694
  readonly status: 409;
1537
1695
  };
1538
1696
  }>, Record<never, never>>;
1539
- build: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1540
- contextDir: z.ZodString;
1541
- name: z.ZodString;
1542
- dockerfile: z.ZodOptional<z.ZodString>;
1543
- }, z.core.$strip>, z.ZodObject<{
1544
- id: z.ZodString;
1545
- name: z.ZodString;
1546
- ref: z.ZodString;
1547
- digest: z.ZodString;
1548
- createdAt: z.ZodDate;
1549
- sizeBytes: z.ZodInt;
1550
- }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1697
+ restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1698
+ name: z.ZodOptional<z.ZodString>;
1699
+ all: z.ZodOptional<z.ZodBoolean>;
1700
+ at: z.ZodOptional<z.ZodDate>;
1701
+ as: z.ZodOptional<z.ZodString>;
1702
+ merge: z.ZodOptional<z.ZodBoolean>;
1703
+ }, z.core.$strip>, z.ZodReadonly<z.ZodObject<{
1704
+ imps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1705
+ id: z.ZodString;
1706
+ name: z.ZodString;
1707
+ image: z.ZodString;
1708
+ state: z.ZodEnum<{
1709
+ creating: "creating";
1710
+ error: "error";
1711
+ running: "running";
1712
+ sleeping: "sleeping";
1713
+ stopped: "stopped";
1714
+ }>;
1715
+ vcpus: z.ZodInt;
1716
+ memoryMib: z.ZodInt;
1717
+ ip: z.ZodIPv4;
1718
+ slot: z.ZodInt;
1719
+ port: z.ZodInt;
1720
+ httpPort: z.ZodInt;
1721
+ url: z.ZodURL;
1722
+ createdAt: z.ZodDate;
1723
+ lastActiveAt: z.ZodDate;
1724
+ ramMib: z.ZodOptional<z.ZodInt>;
1725
+ rssMib: z.ZodOptional<z.ZodInt>;
1726
+ sleptAt: z.ZodOptional<z.ZodDate>;
1727
+ holdUntil: z.ZodOptional<z.ZodDate>;
1728
+ error: z.ZodOptional<z.ZodString>;
1729
+ sessions: z.ZodOptional<z.ZodInt>;
1730
+ coldBootReason: z.ZodOptional<z.ZodString>;
1731
+ outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
1732
+ agent: "agent";
1733
+ firecracker: "firecracker";
1734
+ impd: "impd";
1735
+ kernel: "kernel";
1736
+ }>>>>;
1737
+ }, z.core.$strip>>>;
1738
+ skippedGrants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
1739
+ imp: z.ZodString;
1740
+ secret: z.ZodString;
1741
+ reason: z.ZodString;
1742
+ }, z.core.$strip>>>;
1743
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1551
1744
  NOT_FOUND: {
1552
1745
  readonly message: "Not found";
1553
1746
  readonly data: z.ZodObject<{
1554
1747
  kind: z.ZodEnum<{
1748
+ backup: "backup";
1555
1749
  checkpoint: "checkpoint";
1750
+ grant: "grant";
1556
1751
  image: "image";
1557
1752
  imp: "imp";
1753
+ secret: "secret";
1558
1754
  session: "session";
1559
1755
  }>;
1560
1756
  name: z.ZodString;
@@ -1564,9 +1760,12 @@ declare const impContract: {
1564
1760
  readonly message: "Already exists";
1565
1761
  readonly data: z.ZodObject<{
1566
1762
  kind: z.ZodEnum<{
1763
+ backup: "backup";
1567
1764
  checkpoint: "checkpoint";
1765
+ grant: "grant";
1568
1766
  image: "image";
1569
1767
  imp: "imp";
1768
+ secret: "secret";
1570
1769
  session: "session";
1571
1770
  }>;
1572
1771
  name: z.ZodString;
@@ -1575,6 +1774,9 @@ declare const impContract: {
1575
1774
  FORBIDDEN: {
1576
1775
  readonly message: "Not allowed";
1577
1776
  };
1777
+ PRECONDITION_FAILED: {
1778
+ readonly message: "Not possible on this host";
1779
+ };
1578
1780
  RAM_BUDGET_EXCEEDED: {
1579
1781
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1580
1782
  readonly status: 503;
@@ -1612,16 +1814,19 @@ declare const impContract: {
1612
1814
  readonly status: 409;
1613
1815
  };
1614
1816
  }>, Record<never, never>>;
1615
- delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1616
- name: z.ZodString;
1817
+ check: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1818
+ subset: z.ZodOptional<z.ZodString>;
1617
1819
  }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1618
1820
  NOT_FOUND: {
1619
1821
  readonly message: "Not found";
1620
1822
  readonly data: z.ZodObject<{
1621
1823
  kind: z.ZodEnum<{
1824
+ backup: "backup";
1622
1825
  checkpoint: "checkpoint";
1826
+ grant: "grant";
1623
1827
  image: "image";
1624
1828
  imp: "imp";
1829
+ secret: "secret";
1625
1830
  session: "session";
1626
1831
  }>;
1627
1832
  name: z.ZodString;
@@ -1631,9 +1836,12 @@ declare const impContract: {
1631
1836
  readonly message: "Already exists";
1632
1837
  readonly data: z.ZodObject<{
1633
1838
  kind: z.ZodEnum<{
1839
+ backup: "backup";
1634
1840
  checkpoint: "checkpoint";
1841
+ grant: "grant";
1635
1842
  image: "image";
1636
1843
  imp: "imp";
1844
+ secret: "secret";
1637
1845
  session: "session";
1638
1846
  }>;
1639
1847
  name: z.ZodString;
@@ -1642,6 +1850,9 @@ declare const impContract: {
1642
1850
  FORBIDDEN: {
1643
1851
  readonly message: "Not allowed";
1644
1852
  };
1853
+ PRECONDITION_FAILED: {
1854
+ readonly message: "Not possible on this host";
1855
+ };
1645
1856
  RAM_BUDGET_EXCEEDED: {
1646
1857
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1647
1858
  readonly status: 503;
@@ -1680,20 +1891,109 @@ declare const impContract: {
1680
1891
  };
1681
1892
  }>, Record<never, never>>;
1682
1893
  };
1683
- exec: {
1684
- ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1894
+ images: {
1895
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
1896
+ id: z.ZodString;
1685
1897
  name: z.ZodString;
1898
+ ref: z.ZodString;
1899
+ digest: z.ZodString;
1900
+ createdAt: z.ZodDate;
1901
+ sizeBytes: z.ZodInt;
1902
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1903
+ NOT_FOUND: {
1904
+ readonly message: "Not found";
1905
+ readonly data: z.ZodObject<{
1906
+ kind: z.ZodEnum<{
1907
+ backup: "backup";
1908
+ checkpoint: "checkpoint";
1909
+ grant: "grant";
1910
+ image: "image";
1911
+ imp: "imp";
1912
+ secret: "secret";
1913
+ session: "session";
1914
+ }>;
1915
+ name: z.ZodString;
1916
+ }, z.core.$strip>;
1917
+ };
1918
+ CONFLICT: {
1919
+ readonly message: "Already exists";
1920
+ readonly data: z.ZodObject<{
1921
+ kind: z.ZodEnum<{
1922
+ backup: "backup";
1923
+ checkpoint: "checkpoint";
1924
+ grant: "grant";
1925
+ image: "image";
1926
+ imp: "imp";
1927
+ secret: "secret";
1928
+ session: "session";
1929
+ }>;
1930
+ name: z.ZodString;
1931
+ }, z.core.$strip>;
1932
+ };
1933
+ FORBIDDEN: {
1934
+ readonly message: "Not allowed";
1935
+ };
1936
+ PRECONDITION_FAILED: {
1937
+ readonly message: "Not possible on this host";
1938
+ };
1939
+ RAM_BUDGET_EXCEEDED: {
1940
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
1941
+ readonly status: 503;
1942
+ readonly data: z.ZodObject<{
1943
+ budgetMib: z.ZodInt;
1944
+ usedMib: z.ZodInt;
1945
+ requestedMib: z.ZodInt;
1946
+ }, z.core.$strip>;
1947
+ };
1948
+ SERVICE_UNAVAILABLE: {
1949
+ readonly message: "impd is stopping";
1950
+ };
1951
+ INVALID_STATE: {
1952
+ readonly message: "The imp is not in a state that allows this";
1953
+ readonly status: 409;
1954
+ readonly data: z.ZodObject<{
1955
+ state: z.ZodEnum<{
1956
+ creating: "creating";
1957
+ error: "error";
1958
+ running: "running";
1959
+ sleeping: "sleeping";
1960
+ stopped: "stopped";
1961
+ }>;
1962
+ allowed: z.ZodArray<z.ZodEnum<{
1963
+ creating: "creating";
1964
+ error: "error";
1965
+ running: "running";
1966
+ sleeping: "sleeping";
1967
+ stopped: "stopped";
1968
+ }>>;
1969
+ }, z.core.$strip>;
1970
+ };
1971
+ AGENT_OUTDATED: {
1972
+ readonly message: "The imp's agent is too old for this";
1973
+ readonly status: 409;
1974
+ };
1975
+ }>, Record<never, never>>;
1976
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1977
+ ref: z.ZodString;
1978
+ name: z.ZodOptional<z.ZodString>;
1686
1979
  }, z.core.$strip>, z.ZodObject<{
1687
- ticket: z.ZodString;
1688
- expiresAt: z.ZodDate;
1980
+ id: z.ZodString;
1981
+ name: z.ZodString;
1982
+ ref: z.ZodString;
1983
+ digest: z.ZodString;
1984
+ createdAt: z.ZodDate;
1985
+ sizeBytes: z.ZodInt;
1689
1986
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1690
1987
  NOT_FOUND: {
1691
1988
  readonly message: "Not found";
1692
1989
  readonly data: z.ZodObject<{
1693
1990
  kind: z.ZodEnum<{
1991
+ backup: "backup";
1694
1992
  checkpoint: "checkpoint";
1993
+ grant: "grant";
1695
1994
  image: "image";
1696
1995
  imp: "imp";
1996
+ secret: "secret";
1697
1997
  session: "session";
1698
1998
  }>;
1699
1999
  name: z.ZodString;
@@ -1703,9 +2003,12 @@ declare const impContract: {
1703
2003
  readonly message: "Already exists";
1704
2004
  readonly data: z.ZodObject<{
1705
2005
  kind: z.ZodEnum<{
2006
+ backup: "backup";
1706
2007
  checkpoint: "checkpoint";
2008
+ grant: "grant";
1707
2009
  image: "image";
1708
2010
  imp: "imp";
2011
+ secret: "secret";
1709
2012
  session: "session";
1710
2013
  }>;
1711
2014
  name: z.ZodString;
@@ -1714,6 +2017,9 @@ declare const impContract: {
1714
2017
  FORBIDDEN: {
1715
2018
  readonly message: "Not allowed";
1716
2019
  };
2020
+ PRECONDITION_FAILED: {
2021
+ readonly message: "Not possible on this host";
2022
+ };
1717
2023
  RAM_BUDGET_EXCEEDED: {
1718
2024
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1719
2025
  readonly status: 503;
@@ -1751,34 +2057,28 @@ declare const impContract: {
1751
2057
  readonly status: 409;
1752
2058
  };
1753
2059
  }>, Record<never, never>>;
1754
- };
1755
- sessions: {
1756
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2060
+ build: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2061
+ contextDir: z.ZodString;
1757
2062
  name: z.ZodString;
1758
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2063
+ dockerfile: z.ZodOptional<z.ZodString>;
2064
+ }, z.core.$strip>, z.ZodObject<{
2065
+ id: z.ZodString;
1759
2066
  name: z.ZodString;
1760
- pid: z.ZodInt;
1761
- argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
1762
- state: z.ZodEnum<{
1763
- exited: "exited";
1764
- running: "running";
1765
- }>;
1766
- attached: z.ZodBoolean;
1767
- cols: z.ZodInt;
1768
- rows: z.ZodInt;
1769
- startedAt: z.ZodDate;
1770
- exit: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
1771
- code: z.ZodNullable<z.ZodInt>;
1772
- signal: z.ZodNullable<z.ZodString>;
1773
- }, z.core.$strip>>>;
1774
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2067
+ ref: z.ZodString;
2068
+ digest: z.ZodString;
2069
+ createdAt: z.ZodDate;
2070
+ sizeBytes: z.ZodInt;
2071
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1775
2072
  NOT_FOUND: {
1776
2073
  readonly message: "Not found";
1777
2074
  readonly data: z.ZodObject<{
1778
2075
  kind: z.ZodEnum<{
2076
+ backup: "backup";
1779
2077
  checkpoint: "checkpoint";
2078
+ grant: "grant";
1780
2079
  image: "image";
1781
2080
  imp: "imp";
2081
+ secret: "secret";
1782
2082
  session: "session";
1783
2083
  }>;
1784
2084
  name: z.ZodString;
@@ -1788,9 +2088,12 @@ declare const impContract: {
1788
2088
  readonly message: "Already exists";
1789
2089
  readonly data: z.ZodObject<{
1790
2090
  kind: z.ZodEnum<{
2091
+ backup: "backup";
1791
2092
  checkpoint: "checkpoint";
2093
+ grant: "grant";
1792
2094
  image: "image";
1793
2095
  imp: "imp";
2096
+ secret: "secret";
1794
2097
  session: "session";
1795
2098
  }>;
1796
2099
  name: z.ZodString;
@@ -1799,6 +2102,9 @@ declare const impContract: {
1799
2102
  FORBIDDEN: {
1800
2103
  readonly message: "Not allowed";
1801
2104
  };
2105
+ PRECONDITION_FAILED: {
2106
+ readonly message: "Not possible on this host";
2107
+ };
1802
2108
  RAM_BUDGET_EXCEEDED: {
1803
2109
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1804
2110
  readonly status: 503;
@@ -1836,17 +2142,19 @@ declare const impContract: {
1836
2142
  readonly status: 409;
1837
2143
  };
1838
2144
  }>, Record<never, never>>;
1839
- kill: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2145
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1840
2146
  name: z.ZodString;
1841
- session: z.ZodString;
1842
2147
  }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1843
2148
  NOT_FOUND: {
1844
2149
  readonly message: "Not found";
1845
2150
  readonly data: z.ZodObject<{
1846
2151
  kind: z.ZodEnum<{
2152
+ backup: "backup";
1847
2153
  checkpoint: "checkpoint";
2154
+ grant: "grant";
1848
2155
  image: "image";
1849
2156
  imp: "imp";
2157
+ secret: "secret";
1850
2158
  session: "session";
1851
2159
  }>;
1852
2160
  name: z.ZodString;
@@ -1856,9 +2164,12 @@ declare const impContract: {
1856
2164
  readonly message: "Already exists";
1857
2165
  readonly data: z.ZodObject<{
1858
2166
  kind: z.ZodEnum<{
2167
+ backup: "backup";
1859
2168
  checkpoint: "checkpoint";
2169
+ grant: "grant";
1860
2170
  image: "image";
1861
2171
  imp: "imp";
2172
+ secret: "secret";
1862
2173
  session: "session";
1863
2174
  }>;
1864
2175
  name: z.ZodString;
@@ -1867,6 +2178,9 @@ declare const impContract: {
1867
2178
  FORBIDDEN: {
1868
2179
  readonly message: "Not allowed";
1869
2180
  };
2181
+ PRECONDITION_FAILED: {
2182
+ readonly message: "Not possible on this host";
2183
+ };
1870
2184
  RAM_BUDGET_EXCEEDED: {
1871
2185
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1872
2186
  readonly status: 503;
@@ -1905,46 +2219,23 @@ declare const impContract: {
1905
2219
  };
1906
2220
  }>, Record<never, never>>;
1907
2221
  };
1908
- system: {
1909
- info: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
1910
- version: z.ZodString;
1911
- ramBudgetMib: z.ZodInt;
1912
- ramUsedMib: z.ZodInt;
1913
- ramReservedMib: z.ZodInt;
1914
- ramCommittedMib: z.ZodInt;
1915
- awakeCount: z.ZodInt;
1916
- impCount: z.ZodInt;
1917
- sessionCount: z.ZodInt;
1918
- firecrackerVersion: z.ZodNullable<z.ZodString>;
1919
- guestKernel: z.ZodObject<{
1920
- version: z.ZodNullable<z.ZodString>;
1921
- sha256: z.ZodString;
1922
- }, z.core.$strip>;
1923
- systemDrive: z.ZodObject<{
1924
- sha256: z.ZodString;
1925
- }, z.core.$strip>;
1926
- storage: z.ZodObject<{
1927
- backend: z.ZodEnum<{
1928
- xfs: "xfs";
1929
- zfs: "zfs";
1930
- }>;
1931
- usedBytes: z.ZodInt;
1932
- availableBytes: z.ZodInt;
1933
- }, z.core.$strip>;
1934
- tailscale: z.ZodObject<{
1935
- enabled: z.ZodBoolean;
1936
- state: z.ZodNullable<z.ZodString>;
1937
- hostname: z.ZodNullable<z.ZodString>;
1938
- ip: z.ZodNullable<z.ZodString>;
1939
- }, z.core.$strip>;
2222
+ exec: {
2223
+ ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2224
+ name: z.ZodString;
2225
+ }, z.core.$strip>, z.ZodObject<{
2226
+ ticket: z.ZodString;
2227
+ expiresAt: z.ZodDate;
1940
2228
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1941
2229
  NOT_FOUND: {
1942
2230
  readonly message: "Not found";
1943
2231
  readonly data: z.ZodObject<{
1944
2232
  kind: z.ZodEnum<{
2233
+ backup: "backup";
1945
2234
  checkpoint: "checkpoint";
2235
+ grant: "grant";
1946
2236
  image: "image";
1947
2237
  imp: "imp";
2238
+ secret: "secret";
1948
2239
  session: "session";
1949
2240
  }>;
1950
2241
  name: z.ZodString;
@@ -1954,9 +2245,12 @@ declare const impContract: {
1954
2245
  readonly message: "Already exists";
1955
2246
  readonly data: z.ZodObject<{
1956
2247
  kind: z.ZodEnum<{
2248
+ backup: "backup";
1957
2249
  checkpoint: "checkpoint";
2250
+ grant: "grant";
1958
2251
  image: "image";
1959
2252
  imp: "imp";
2253
+ secret: "secret";
1960
2254
  session: "session";
1961
2255
  }>;
1962
2256
  name: z.ZodString;
@@ -1965,6 +2259,895 @@ declare const impContract: {
1965
2259
  FORBIDDEN: {
1966
2260
  readonly message: "Not allowed";
1967
2261
  };
2262
+ PRECONDITION_FAILED: {
2263
+ readonly message: "Not possible on this host";
2264
+ };
2265
+ RAM_BUDGET_EXCEEDED: {
2266
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2267
+ readonly status: 503;
2268
+ readonly data: z.ZodObject<{
2269
+ budgetMib: z.ZodInt;
2270
+ usedMib: z.ZodInt;
2271
+ requestedMib: z.ZodInt;
2272
+ }, z.core.$strip>;
2273
+ };
2274
+ SERVICE_UNAVAILABLE: {
2275
+ readonly message: "impd is stopping";
2276
+ };
2277
+ INVALID_STATE: {
2278
+ readonly message: "The imp is not in a state that allows this";
2279
+ readonly status: 409;
2280
+ readonly data: z.ZodObject<{
2281
+ state: z.ZodEnum<{
2282
+ creating: "creating";
2283
+ error: "error";
2284
+ running: "running";
2285
+ sleeping: "sleeping";
2286
+ stopped: "stopped";
2287
+ }>;
2288
+ allowed: z.ZodArray<z.ZodEnum<{
2289
+ creating: "creating";
2290
+ error: "error";
2291
+ running: "running";
2292
+ sleeping: "sleeping";
2293
+ stopped: "stopped";
2294
+ }>>;
2295
+ }, z.core.$strip>;
2296
+ };
2297
+ AGENT_OUTDATED: {
2298
+ readonly message: "The imp's agent is too old for this";
2299
+ readonly status: 409;
2300
+ };
2301
+ }>, Record<never, never>>;
2302
+ };
2303
+ sessions: {
2304
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2305
+ name: z.ZodString;
2306
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2307
+ name: z.ZodString;
2308
+ pid: z.ZodInt;
2309
+ argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2310
+ state: z.ZodEnum<{
2311
+ exited: "exited";
2312
+ running: "running";
2313
+ }>;
2314
+ attached: z.ZodBoolean;
2315
+ cols: z.ZodInt;
2316
+ rows: z.ZodInt;
2317
+ startedAt: z.ZodDate;
2318
+ exit: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
2319
+ code: z.ZodNullable<z.ZodInt>;
2320
+ signal: z.ZodNullable<z.ZodString>;
2321
+ }, z.core.$strip>>>;
2322
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2323
+ NOT_FOUND: {
2324
+ readonly message: "Not found";
2325
+ readonly data: z.ZodObject<{
2326
+ kind: z.ZodEnum<{
2327
+ backup: "backup";
2328
+ checkpoint: "checkpoint";
2329
+ grant: "grant";
2330
+ image: "image";
2331
+ imp: "imp";
2332
+ secret: "secret";
2333
+ session: "session";
2334
+ }>;
2335
+ name: z.ZodString;
2336
+ }, z.core.$strip>;
2337
+ };
2338
+ CONFLICT: {
2339
+ readonly message: "Already exists";
2340
+ readonly data: z.ZodObject<{
2341
+ kind: z.ZodEnum<{
2342
+ backup: "backup";
2343
+ checkpoint: "checkpoint";
2344
+ grant: "grant";
2345
+ image: "image";
2346
+ imp: "imp";
2347
+ secret: "secret";
2348
+ session: "session";
2349
+ }>;
2350
+ name: z.ZodString;
2351
+ }, z.core.$strip>;
2352
+ };
2353
+ FORBIDDEN: {
2354
+ readonly message: "Not allowed";
2355
+ };
2356
+ PRECONDITION_FAILED: {
2357
+ readonly message: "Not possible on this host";
2358
+ };
2359
+ RAM_BUDGET_EXCEEDED: {
2360
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2361
+ readonly status: 503;
2362
+ readonly data: z.ZodObject<{
2363
+ budgetMib: z.ZodInt;
2364
+ usedMib: z.ZodInt;
2365
+ requestedMib: z.ZodInt;
2366
+ }, z.core.$strip>;
2367
+ };
2368
+ SERVICE_UNAVAILABLE: {
2369
+ readonly message: "impd is stopping";
2370
+ };
2371
+ INVALID_STATE: {
2372
+ readonly message: "The imp is not in a state that allows this";
2373
+ readonly status: 409;
2374
+ readonly data: z.ZodObject<{
2375
+ state: z.ZodEnum<{
2376
+ creating: "creating";
2377
+ error: "error";
2378
+ running: "running";
2379
+ sleeping: "sleeping";
2380
+ stopped: "stopped";
2381
+ }>;
2382
+ allowed: z.ZodArray<z.ZodEnum<{
2383
+ creating: "creating";
2384
+ error: "error";
2385
+ running: "running";
2386
+ sleeping: "sleeping";
2387
+ stopped: "stopped";
2388
+ }>>;
2389
+ }, z.core.$strip>;
2390
+ };
2391
+ AGENT_OUTDATED: {
2392
+ readonly message: "The imp's agent is too old for this";
2393
+ readonly status: 409;
2394
+ };
2395
+ }>, Record<never, never>>;
2396
+ kill: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2397
+ name: z.ZodString;
2398
+ session: z.ZodString;
2399
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2400
+ NOT_FOUND: {
2401
+ readonly message: "Not found";
2402
+ readonly data: z.ZodObject<{
2403
+ kind: z.ZodEnum<{
2404
+ backup: "backup";
2405
+ checkpoint: "checkpoint";
2406
+ grant: "grant";
2407
+ image: "image";
2408
+ imp: "imp";
2409
+ secret: "secret";
2410
+ session: "session";
2411
+ }>;
2412
+ name: z.ZodString;
2413
+ }, z.core.$strip>;
2414
+ };
2415
+ CONFLICT: {
2416
+ readonly message: "Already exists";
2417
+ readonly data: z.ZodObject<{
2418
+ kind: z.ZodEnum<{
2419
+ backup: "backup";
2420
+ checkpoint: "checkpoint";
2421
+ grant: "grant";
2422
+ image: "image";
2423
+ imp: "imp";
2424
+ secret: "secret";
2425
+ session: "session";
2426
+ }>;
2427
+ name: z.ZodString;
2428
+ }, z.core.$strip>;
2429
+ };
2430
+ FORBIDDEN: {
2431
+ readonly message: "Not allowed";
2432
+ };
2433
+ PRECONDITION_FAILED: {
2434
+ readonly message: "Not possible on this host";
2435
+ };
2436
+ RAM_BUDGET_EXCEEDED: {
2437
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2438
+ readonly status: 503;
2439
+ readonly data: z.ZodObject<{
2440
+ budgetMib: z.ZodInt;
2441
+ usedMib: z.ZodInt;
2442
+ requestedMib: z.ZodInt;
2443
+ }, z.core.$strip>;
2444
+ };
2445
+ SERVICE_UNAVAILABLE: {
2446
+ readonly message: "impd is stopping";
2447
+ };
2448
+ INVALID_STATE: {
2449
+ readonly message: "The imp is not in a state that allows this";
2450
+ readonly status: 409;
2451
+ readonly data: z.ZodObject<{
2452
+ state: z.ZodEnum<{
2453
+ creating: "creating";
2454
+ error: "error";
2455
+ running: "running";
2456
+ sleeping: "sleeping";
2457
+ stopped: "stopped";
2458
+ }>;
2459
+ allowed: z.ZodArray<z.ZodEnum<{
2460
+ creating: "creating";
2461
+ error: "error";
2462
+ running: "running";
2463
+ sleeping: "sleeping";
2464
+ stopped: "stopped";
2465
+ }>>;
2466
+ }, z.core.$strip>;
2467
+ };
2468
+ AGENT_OUTDATED: {
2469
+ readonly message: "The imp's agent is too old for this";
2470
+ readonly status: 409;
2471
+ };
2472
+ }>, Record<never, never>>;
2473
+ };
2474
+ secrets: {
2475
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2476
+ name: z.ZodString;
2477
+ kind: z.ZodEnum<{
2478
+ anthropic: "anthropic";
2479
+ custom: "custom";
2480
+ github: "github";
2481
+ npm: "npm";
2482
+ }>;
2483
+ value: z.ZodString;
2484
+ rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
2485
+ host: z.ZodString;
2486
+ header: z.ZodString;
2487
+ scheme: z.ZodEnum<{
2488
+ basic: "basic";
2489
+ bearer: "bearer";
2490
+ raw: "raw";
2491
+ }>;
2492
+ user: z.ZodOptional<z.ZodString>;
2493
+ }, z.core.$strip>>>;
2494
+ replace: z.ZodOptional<z.ZodBoolean>;
2495
+ }, z.core.$strip>, z.ZodObject<{
2496
+ name: z.ZodString;
2497
+ kind: z.ZodEnum<{
2498
+ anthropic: "anthropic";
2499
+ custom: "custom";
2500
+ github: "github";
2501
+ npm: "npm";
2502
+ }>;
2503
+ rules: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2504
+ host: z.ZodString;
2505
+ header: z.ZodString;
2506
+ scheme: z.ZodEnum<{
2507
+ basic: "basic";
2508
+ bearer: "bearer";
2509
+ raw: "raw";
2510
+ }>;
2511
+ user: z.ZodOptional<z.ZodString>;
2512
+ }, z.core.$strip>>>;
2513
+ imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2514
+ createdAt: z.ZodDate;
2515
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2516
+ NOT_FOUND: {
2517
+ readonly message: "Not found";
2518
+ readonly data: z.ZodObject<{
2519
+ kind: z.ZodEnum<{
2520
+ backup: "backup";
2521
+ checkpoint: "checkpoint";
2522
+ grant: "grant";
2523
+ image: "image";
2524
+ imp: "imp";
2525
+ secret: "secret";
2526
+ session: "session";
2527
+ }>;
2528
+ name: z.ZodString;
2529
+ }, z.core.$strip>;
2530
+ };
2531
+ CONFLICT: {
2532
+ readonly message: "Already exists";
2533
+ readonly data: z.ZodObject<{
2534
+ kind: z.ZodEnum<{
2535
+ backup: "backup";
2536
+ checkpoint: "checkpoint";
2537
+ grant: "grant";
2538
+ image: "image";
2539
+ imp: "imp";
2540
+ secret: "secret";
2541
+ session: "session";
2542
+ }>;
2543
+ name: z.ZodString;
2544
+ }, z.core.$strip>;
2545
+ };
2546
+ FORBIDDEN: {
2547
+ readonly message: "Not allowed";
2548
+ };
2549
+ PRECONDITION_FAILED: {
2550
+ readonly message: "Not possible on this host";
2551
+ };
2552
+ RAM_BUDGET_EXCEEDED: {
2553
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2554
+ readonly status: 503;
2555
+ readonly data: z.ZodObject<{
2556
+ budgetMib: z.ZodInt;
2557
+ usedMib: z.ZodInt;
2558
+ requestedMib: z.ZodInt;
2559
+ }, z.core.$strip>;
2560
+ };
2561
+ SERVICE_UNAVAILABLE: {
2562
+ readonly message: "impd is stopping";
2563
+ };
2564
+ INVALID_STATE: {
2565
+ readonly message: "The imp is not in a state that allows this";
2566
+ readonly status: 409;
2567
+ readonly data: z.ZodObject<{
2568
+ state: z.ZodEnum<{
2569
+ creating: "creating";
2570
+ error: "error";
2571
+ running: "running";
2572
+ sleeping: "sleeping";
2573
+ stopped: "stopped";
2574
+ }>;
2575
+ allowed: z.ZodArray<z.ZodEnum<{
2576
+ creating: "creating";
2577
+ error: "error";
2578
+ running: "running";
2579
+ sleeping: "sleeping";
2580
+ stopped: "stopped";
2581
+ }>>;
2582
+ }, z.core.$strip>;
2583
+ };
2584
+ AGENT_OUTDATED: {
2585
+ readonly message: "The imp's agent is too old for this";
2586
+ readonly status: 409;
2587
+ };
2588
+ }>, Record<never, never>>;
2589
+ list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
2590
+ name: z.ZodString;
2591
+ kind: z.ZodEnum<{
2592
+ anthropic: "anthropic";
2593
+ custom: "custom";
2594
+ github: "github";
2595
+ npm: "npm";
2596
+ }>;
2597
+ rules: z.ZodReadonly<z.ZodArray<z.ZodObject<{
2598
+ host: z.ZodString;
2599
+ header: z.ZodString;
2600
+ scheme: z.ZodEnum<{
2601
+ basic: "basic";
2602
+ bearer: "bearer";
2603
+ raw: "raw";
2604
+ }>;
2605
+ user: z.ZodOptional<z.ZodString>;
2606
+ }, z.core.$strip>>>;
2607
+ imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
2608
+ createdAt: z.ZodDate;
2609
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2610
+ NOT_FOUND: {
2611
+ readonly message: "Not found";
2612
+ readonly data: z.ZodObject<{
2613
+ kind: z.ZodEnum<{
2614
+ backup: "backup";
2615
+ checkpoint: "checkpoint";
2616
+ grant: "grant";
2617
+ image: "image";
2618
+ imp: "imp";
2619
+ secret: "secret";
2620
+ session: "session";
2621
+ }>;
2622
+ name: z.ZodString;
2623
+ }, z.core.$strip>;
2624
+ };
2625
+ CONFLICT: {
2626
+ readonly message: "Already exists";
2627
+ readonly data: z.ZodObject<{
2628
+ kind: z.ZodEnum<{
2629
+ backup: "backup";
2630
+ checkpoint: "checkpoint";
2631
+ grant: "grant";
2632
+ image: "image";
2633
+ imp: "imp";
2634
+ secret: "secret";
2635
+ session: "session";
2636
+ }>;
2637
+ name: z.ZodString;
2638
+ }, z.core.$strip>;
2639
+ };
2640
+ FORBIDDEN: {
2641
+ readonly message: "Not allowed";
2642
+ };
2643
+ PRECONDITION_FAILED: {
2644
+ readonly message: "Not possible on this host";
2645
+ };
2646
+ RAM_BUDGET_EXCEEDED: {
2647
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2648
+ readonly status: 503;
2649
+ readonly data: z.ZodObject<{
2650
+ budgetMib: z.ZodInt;
2651
+ usedMib: z.ZodInt;
2652
+ requestedMib: z.ZodInt;
2653
+ }, z.core.$strip>;
2654
+ };
2655
+ SERVICE_UNAVAILABLE: {
2656
+ readonly message: "impd is stopping";
2657
+ };
2658
+ INVALID_STATE: {
2659
+ readonly message: "The imp is not in a state that allows this";
2660
+ readonly status: 409;
2661
+ readonly data: z.ZodObject<{
2662
+ state: z.ZodEnum<{
2663
+ creating: "creating";
2664
+ error: "error";
2665
+ running: "running";
2666
+ sleeping: "sleeping";
2667
+ stopped: "stopped";
2668
+ }>;
2669
+ allowed: z.ZodArray<z.ZodEnum<{
2670
+ creating: "creating";
2671
+ error: "error";
2672
+ running: "running";
2673
+ sleeping: "sleeping";
2674
+ stopped: "stopped";
2675
+ }>>;
2676
+ }, z.core.$strip>;
2677
+ };
2678
+ AGENT_OUTDATED: {
2679
+ readonly message: "The imp's agent is too old for this";
2680
+ readonly status: 409;
2681
+ };
2682
+ }>, Record<never, never>>;
2683
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2684
+ name: z.ZodString;
2685
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2686
+ NOT_FOUND: {
2687
+ readonly message: "Not found";
2688
+ readonly data: z.ZodObject<{
2689
+ kind: z.ZodEnum<{
2690
+ backup: "backup";
2691
+ checkpoint: "checkpoint";
2692
+ grant: "grant";
2693
+ image: "image";
2694
+ imp: "imp";
2695
+ secret: "secret";
2696
+ session: "session";
2697
+ }>;
2698
+ name: z.ZodString;
2699
+ }, z.core.$strip>;
2700
+ };
2701
+ CONFLICT: {
2702
+ readonly message: "Already exists";
2703
+ readonly data: z.ZodObject<{
2704
+ kind: z.ZodEnum<{
2705
+ backup: "backup";
2706
+ checkpoint: "checkpoint";
2707
+ grant: "grant";
2708
+ image: "image";
2709
+ imp: "imp";
2710
+ secret: "secret";
2711
+ session: "session";
2712
+ }>;
2713
+ name: z.ZodString;
2714
+ }, z.core.$strip>;
2715
+ };
2716
+ FORBIDDEN: {
2717
+ readonly message: "Not allowed";
2718
+ };
2719
+ PRECONDITION_FAILED: {
2720
+ readonly message: "Not possible on this host";
2721
+ };
2722
+ RAM_BUDGET_EXCEEDED: {
2723
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2724
+ readonly status: 503;
2725
+ readonly data: z.ZodObject<{
2726
+ budgetMib: z.ZodInt;
2727
+ usedMib: z.ZodInt;
2728
+ requestedMib: z.ZodInt;
2729
+ }, z.core.$strip>;
2730
+ };
2731
+ SERVICE_UNAVAILABLE: {
2732
+ readonly message: "impd is stopping";
2733
+ };
2734
+ INVALID_STATE: {
2735
+ readonly message: "The imp is not in a state that allows this";
2736
+ readonly status: 409;
2737
+ readonly data: z.ZodObject<{
2738
+ state: z.ZodEnum<{
2739
+ creating: "creating";
2740
+ error: "error";
2741
+ running: "running";
2742
+ sleeping: "sleeping";
2743
+ stopped: "stopped";
2744
+ }>;
2745
+ allowed: z.ZodArray<z.ZodEnum<{
2746
+ creating: "creating";
2747
+ error: "error";
2748
+ running: "running";
2749
+ sleeping: "sleeping";
2750
+ stopped: "stopped";
2751
+ }>>;
2752
+ }, z.core.$strip>;
2753
+ };
2754
+ AGENT_OUTDATED: {
2755
+ readonly message: "The imp's agent is too old for this";
2756
+ readonly status: 409;
2757
+ };
2758
+ }>, Record<never, never>>;
2759
+ };
2760
+ grants: {
2761
+ add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2762
+ name: z.ZodString;
2763
+ secret: z.ZodString;
2764
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2765
+ NOT_FOUND: {
2766
+ readonly message: "Not found";
2767
+ readonly data: z.ZodObject<{
2768
+ kind: z.ZodEnum<{
2769
+ backup: "backup";
2770
+ checkpoint: "checkpoint";
2771
+ grant: "grant";
2772
+ image: "image";
2773
+ imp: "imp";
2774
+ secret: "secret";
2775
+ session: "session";
2776
+ }>;
2777
+ name: z.ZodString;
2778
+ }, z.core.$strip>;
2779
+ };
2780
+ CONFLICT: {
2781
+ readonly message: "Already exists";
2782
+ readonly data: z.ZodObject<{
2783
+ kind: z.ZodEnum<{
2784
+ backup: "backup";
2785
+ checkpoint: "checkpoint";
2786
+ grant: "grant";
2787
+ image: "image";
2788
+ imp: "imp";
2789
+ secret: "secret";
2790
+ session: "session";
2791
+ }>;
2792
+ name: z.ZodString;
2793
+ }, z.core.$strip>;
2794
+ };
2795
+ FORBIDDEN: {
2796
+ readonly message: "Not allowed";
2797
+ };
2798
+ PRECONDITION_FAILED: {
2799
+ readonly message: "Not possible on this host";
2800
+ };
2801
+ RAM_BUDGET_EXCEEDED: {
2802
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2803
+ readonly status: 503;
2804
+ readonly data: z.ZodObject<{
2805
+ budgetMib: z.ZodInt;
2806
+ usedMib: z.ZodInt;
2807
+ requestedMib: z.ZodInt;
2808
+ }, z.core.$strip>;
2809
+ };
2810
+ SERVICE_UNAVAILABLE: {
2811
+ readonly message: "impd is stopping";
2812
+ };
2813
+ INVALID_STATE: {
2814
+ readonly message: "The imp is not in a state that allows this";
2815
+ readonly status: 409;
2816
+ readonly data: z.ZodObject<{
2817
+ state: z.ZodEnum<{
2818
+ creating: "creating";
2819
+ error: "error";
2820
+ running: "running";
2821
+ sleeping: "sleeping";
2822
+ stopped: "stopped";
2823
+ }>;
2824
+ allowed: z.ZodArray<z.ZodEnum<{
2825
+ creating: "creating";
2826
+ error: "error";
2827
+ running: "running";
2828
+ sleeping: "sleeping";
2829
+ stopped: "stopped";
2830
+ }>>;
2831
+ }, z.core.$strip>;
2832
+ };
2833
+ AGENT_OUTDATED: {
2834
+ readonly message: "The imp's agent is too old for this";
2835
+ readonly status: 409;
2836
+ };
2837
+ }>, Record<never, never>>;
2838
+ delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2839
+ name: z.ZodString;
2840
+ secret: z.ZodString;
2841
+ }, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2842
+ NOT_FOUND: {
2843
+ readonly message: "Not found";
2844
+ readonly data: z.ZodObject<{
2845
+ kind: z.ZodEnum<{
2846
+ backup: "backup";
2847
+ checkpoint: "checkpoint";
2848
+ grant: "grant";
2849
+ image: "image";
2850
+ imp: "imp";
2851
+ secret: "secret";
2852
+ session: "session";
2853
+ }>;
2854
+ name: z.ZodString;
2855
+ }, z.core.$strip>;
2856
+ };
2857
+ CONFLICT: {
2858
+ readonly message: "Already exists";
2859
+ readonly data: z.ZodObject<{
2860
+ kind: z.ZodEnum<{
2861
+ backup: "backup";
2862
+ checkpoint: "checkpoint";
2863
+ grant: "grant";
2864
+ image: "image";
2865
+ imp: "imp";
2866
+ secret: "secret";
2867
+ session: "session";
2868
+ }>;
2869
+ name: z.ZodString;
2870
+ }, z.core.$strip>;
2871
+ };
2872
+ FORBIDDEN: {
2873
+ readonly message: "Not allowed";
2874
+ };
2875
+ PRECONDITION_FAILED: {
2876
+ readonly message: "Not possible on this host";
2877
+ };
2878
+ RAM_BUDGET_EXCEEDED: {
2879
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2880
+ readonly status: 503;
2881
+ readonly data: z.ZodObject<{
2882
+ budgetMib: z.ZodInt;
2883
+ usedMib: z.ZodInt;
2884
+ requestedMib: z.ZodInt;
2885
+ }, z.core.$strip>;
2886
+ };
2887
+ SERVICE_UNAVAILABLE: {
2888
+ readonly message: "impd is stopping";
2889
+ };
2890
+ INVALID_STATE: {
2891
+ readonly message: "The imp is not in a state that allows this";
2892
+ readonly status: 409;
2893
+ readonly data: z.ZodObject<{
2894
+ state: z.ZodEnum<{
2895
+ creating: "creating";
2896
+ error: "error";
2897
+ running: "running";
2898
+ sleeping: "sleeping";
2899
+ stopped: "stopped";
2900
+ }>;
2901
+ allowed: z.ZodArray<z.ZodEnum<{
2902
+ creating: "creating";
2903
+ error: "error";
2904
+ running: "running";
2905
+ sleeping: "sleeping";
2906
+ stopped: "stopped";
2907
+ }>>;
2908
+ }, z.core.$strip>;
2909
+ };
2910
+ AGENT_OUTDATED: {
2911
+ readonly message: "The imp's agent is too old for this";
2912
+ readonly status: 409;
2913
+ };
2914
+ }>, Record<never, never>>;
2915
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2916
+ name: z.ZodString;
2917
+ }, z.core.$strip>, z.ZodArray<z.ZodString>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2918
+ NOT_FOUND: {
2919
+ readonly message: "Not found";
2920
+ readonly data: z.ZodObject<{
2921
+ kind: z.ZodEnum<{
2922
+ backup: "backup";
2923
+ checkpoint: "checkpoint";
2924
+ grant: "grant";
2925
+ image: "image";
2926
+ imp: "imp";
2927
+ secret: "secret";
2928
+ session: "session";
2929
+ }>;
2930
+ name: z.ZodString;
2931
+ }, z.core.$strip>;
2932
+ };
2933
+ CONFLICT: {
2934
+ readonly message: "Already exists";
2935
+ readonly data: z.ZodObject<{
2936
+ kind: z.ZodEnum<{
2937
+ backup: "backup";
2938
+ checkpoint: "checkpoint";
2939
+ grant: "grant";
2940
+ image: "image";
2941
+ imp: "imp";
2942
+ secret: "secret";
2943
+ session: "session";
2944
+ }>;
2945
+ name: z.ZodString;
2946
+ }, z.core.$strip>;
2947
+ };
2948
+ FORBIDDEN: {
2949
+ readonly message: "Not allowed";
2950
+ };
2951
+ PRECONDITION_FAILED: {
2952
+ readonly message: "Not possible on this host";
2953
+ };
2954
+ RAM_BUDGET_EXCEEDED: {
2955
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
2956
+ readonly status: 503;
2957
+ readonly data: z.ZodObject<{
2958
+ budgetMib: z.ZodInt;
2959
+ usedMib: z.ZodInt;
2960
+ requestedMib: z.ZodInt;
2961
+ }, z.core.$strip>;
2962
+ };
2963
+ SERVICE_UNAVAILABLE: {
2964
+ readonly message: "impd is stopping";
2965
+ };
2966
+ INVALID_STATE: {
2967
+ readonly message: "The imp is not in a state that allows this";
2968
+ readonly status: 409;
2969
+ readonly data: z.ZodObject<{
2970
+ state: z.ZodEnum<{
2971
+ creating: "creating";
2972
+ error: "error";
2973
+ running: "running";
2974
+ sleeping: "sleeping";
2975
+ stopped: "stopped";
2976
+ }>;
2977
+ allowed: z.ZodArray<z.ZodEnum<{
2978
+ creating: "creating";
2979
+ error: "error";
2980
+ running: "running";
2981
+ sleeping: "sleeping";
2982
+ stopped: "stopped";
2983
+ }>>;
2984
+ }, z.core.$strip>;
2985
+ };
2986
+ AGENT_OUTDATED: {
2987
+ readonly message: "The imp's agent is too old for this";
2988
+ readonly status: 409;
2989
+ };
2990
+ }>, Record<never, never>>;
2991
+ };
2992
+ audit: {
2993
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2994
+ name: z.ZodOptional<z.ZodString>;
2995
+ limit: z.ZodOptional<z.ZodInt>;
2996
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
2997
+ at: z.ZodDate;
2998
+ imp: z.ZodString;
2999
+ secret: z.ZodString;
3000
+ method: z.ZodString;
3001
+ host: z.ZodString;
3002
+ path: z.ZodString;
3003
+ status: z.ZodInt;
3004
+ requestBytes: z.ZodInt;
3005
+ responseBytes: z.ZodInt;
3006
+ durationMs: z.ZodInt;
3007
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3008
+ NOT_FOUND: {
3009
+ readonly message: "Not found";
3010
+ readonly data: z.ZodObject<{
3011
+ kind: z.ZodEnum<{
3012
+ backup: "backup";
3013
+ checkpoint: "checkpoint";
3014
+ grant: "grant";
3015
+ image: "image";
3016
+ imp: "imp";
3017
+ secret: "secret";
3018
+ session: "session";
3019
+ }>;
3020
+ name: z.ZodString;
3021
+ }, z.core.$strip>;
3022
+ };
3023
+ CONFLICT: {
3024
+ readonly message: "Already exists";
3025
+ readonly data: z.ZodObject<{
3026
+ kind: z.ZodEnum<{
3027
+ backup: "backup";
3028
+ checkpoint: "checkpoint";
3029
+ grant: "grant";
3030
+ image: "image";
3031
+ imp: "imp";
3032
+ secret: "secret";
3033
+ session: "session";
3034
+ }>;
3035
+ name: z.ZodString;
3036
+ }, z.core.$strip>;
3037
+ };
3038
+ FORBIDDEN: {
3039
+ readonly message: "Not allowed";
3040
+ };
3041
+ PRECONDITION_FAILED: {
3042
+ readonly message: "Not possible on this host";
3043
+ };
3044
+ RAM_BUDGET_EXCEEDED: {
3045
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
3046
+ readonly status: 503;
3047
+ readonly data: z.ZodObject<{
3048
+ budgetMib: z.ZodInt;
3049
+ usedMib: z.ZodInt;
3050
+ requestedMib: z.ZodInt;
3051
+ }, z.core.$strip>;
3052
+ };
3053
+ SERVICE_UNAVAILABLE: {
3054
+ readonly message: "impd is stopping";
3055
+ };
3056
+ INVALID_STATE: {
3057
+ readonly message: "The imp is not in a state that allows this";
3058
+ readonly status: 409;
3059
+ readonly data: z.ZodObject<{
3060
+ state: z.ZodEnum<{
3061
+ creating: "creating";
3062
+ error: "error";
3063
+ running: "running";
3064
+ sleeping: "sleeping";
3065
+ stopped: "stopped";
3066
+ }>;
3067
+ allowed: z.ZodArray<z.ZodEnum<{
3068
+ creating: "creating";
3069
+ error: "error";
3070
+ running: "running";
3071
+ sleeping: "sleeping";
3072
+ stopped: "stopped";
3073
+ }>>;
3074
+ }, z.core.$strip>;
3075
+ };
3076
+ AGENT_OUTDATED: {
3077
+ readonly message: "The imp's agent is too old for this";
3078
+ readonly status: 409;
3079
+ };
3080
+ }>, Record<never, never>>;
3081
+ };
3082
+ system: {
3083
+ info: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
3084
+ version: z.ZodString;
3085
+ ramBudgetMib: z.ZodInt;
3086
+ ramUsedMib: z.ZodInt;
3087
+ ramReservedMib: z.ZodInt;
3088
+ ramCommittedMib: z.ZodInt;
3089
+ awakeCount: z.ZodInt;
3090
+ impCount: z.ZodInt;
3091
+ sessionCount: z.ZodInt;
3092
+ firecrackerVersion: z.ZodNullable<z.ZodString>;
3093
+ guestKernel: z.ZodObject<{
3094
+ version: z.ZodNullable<z.ZodString>;
3095
+ sha256: z.ZodString;
3096
+ }, z.core.$strip>;
3097
+ systemDrive: z.ZodObject<{
3098
+ sha256: z.ZodString;
3099
+ }, z.core.$strip>;
3100
+ storage: z.ZodObject<{
3101
+ backend: z.ZodEnum<{
3102
+ xfs: "xfs";
3103
+ zfs: "zfs";
3104
+ }>;
3105
+ usedBytes: z.ZodInt;
3106
+ availableBytes: z.ZodInt;
3107
+ }, z.core.$strip>;
3108
+ tailscale: z.ZodObject<{
3109
+ enabled: z.ZodBoolean;
3110
+ state: z.ZodNullable<z.ZodString>;
3111
+ hostname: z.ZodNullable<z.ZodString>;
3112
+ ip: z.ZodNullable<z.ZodString>;
3113
+ }, z.core.$strip>;
3114
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3115
+ NOT_FOUND: {
3116
+ readonly message: "Not found";
3117
+ readonly data: z.ZodObject<{
3118
+ kind: z.ZodEnum<{
3119
+ backup: "backup";
3120
+ checkpoint: "checkpoint";
3121
+ grant: "grant";
3122
+ image: "image";
3123
+ imp: "imp";
3124
+ secret: "secret";
3125
+ session: "session";
3126
+ }>;
3127
+ name: z.ZodString;
3128
+ }, z.core.$strip>;
3129
+ };
3130
+ CONFLICT: {
3131
+ readonly message: "Already exists";
3132
+ readonly data: z.ZodObject<{
3133
+ kind: z.ZodEnum<{
3134
+ backup: "backup";
3135
+ checkpoint: "checkpoint";
3136
+ grant: "grant";
3137
+ image: "image";
3138
+ imp: "imp";
3139
+ secret: "secret";
3140
+ session: "session";
3141
+ }>;
3142
+ name: z.ZodString;
3143
+ }, z.core.$strip>;
3144
+ };
3145
+ FORBIDDEN: {
3146
+ readonly message: "Not allowed";
3147
+ };
3148
+ PRECONDITION_FAILED: {
3149
+ readonly message: "Not possible on this host";
3150
+ };
1968
3151
  RAM_BUDGET_EXCEEDED: {
1969
3152
  readonly message: "Not enough RAM budget, even after sleeping idle imps";
1970
3153
  readonly status: 503;