@zgeoff/imp-client 0.15.0 → 0.16.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
@@ -119,6 +119,11 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
119
119
  netTxBytes: z.ZodInt;
120
120
  }, z.core.$strip>>;
121
121
  }, z.core.$strip>>;
122
+ move: z.ZodOptional<z.ZodEnum<{
123
+ moved: "moved";
124
+ receiving: "receiving";
125
+ sending: "sending";
126
+ }>>;
122
127
  }, z.core.$strip>;
123
128
  }, z.core.$strip>, z.ZodObject<{
124
129
  v: z.ZodLiteral<1>;
@@ -217,6 +222,11 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
217
222
  netTxBytes: z.ZodInt;
218
223
  }, z.core.$strip>>;
219
224
  }, z.core.$strip>>;
225
+ move: z.ZodOptional<z.ZodEnum<{
226
+ moved: "moved";
227
+ receiving: "receiving";
228
+ sending: "sending";
229
+ }>>;
220
230
  }, z.core.$strip>;
221
231
  detail: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
222
232
  durationMs: z.ZodOptional<z.ZodInt>;
@@ -307,6 +317,11 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
307
317
  netTxBytes: z.ZodInt;
308
318
  }, z.core.$strip>>;
309
319
  }, z.core.$strip>>;
320
+ move: z.ZodOptional<z.ZodEnum<{
321
+ moved: "moved";
322
+ receiving: "receiving";
323
+ sending: "sending";
324
+ }>>;
310
325
  }, z.core.$strip>;
311
326
  }, z.core.$strip>, z.ZodObject<{
312
327
  v: z.ZodLiteral<1>;
@@ -465,6 +480,11 @@ declare const impContract: {
465
480
  netTxBytes: z.ZodInt;
466
481
  }, z.core.$strip>>;
467
482
  }, z.core.$strip>>;
483
+ move: z.ZodOptional<z.ZodEnum<{
484
+ moved: "moved";
485
+ receiving: "receiving";
486
+ sending: "sending";
487
+ }>>;
468
488
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
469
489
  NOT_FOUND: {
470
490
  readonly message: "Not found";
@@ -583,6 +603,13 @@ declare const impContract: {
583
603
  readonly message: "The imp's agent is too old for this";
584
604
  readonly status: 409;
585
605
  };
606
+ MOVING: {
607
+ readonly message: "The imp is moving between hosts";
608
+ readonly status: 409;
609
+ readonly data: z.ZodObject<{
610
+ retryAfterS: z.ZodInt;
611
+ }, z.core.$strip>;
612
+ };
586
613
  }>, Record<never, never>>;
587
614
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
588
615
  id: z.ZodString;
@@ -662,6 +689,11 @@ declare const impContract: {
662
689
  netTxBytes: z.ZodInt;
663
690
  }, z.core.$strip>>;
664
691
  }, z.core.$strip>>;
692
+ move: z.ZodOptional<z.ZodEnum<{
693
+ moved: "moved";
694
+ receiving: "receiving";
695
+ sending: "sending";
696
+ }>>;
665
697
  }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
666
698
  NOT_FOUND: {
667
699
  readonly message: "Not found";
@@ -780,6 +812,13 @@ declare const impContract: {
780
812
  readonly message: "The imp's agent is too old for this";
781
813
  readonly status: 409;
782
814
  };
815
+ MOVING: {
816
+ readonly message: "The imp is moving between hosts";
817
+ readonly status: 409;
818
+ readonly data: z.ZodObject<{
819
+ retryAfterS: z.ZodInt;
820
+ }, z.core.$strip>;
821
+ };
783
822
  }>, Record<never, never>>;
784
823
  get: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
785
824
  name: z.ZodString;
@@ -861,6 +900,11 @@ declare const impContract: {
861
900
  netTxBytes: z.ZodInt;
862
901
  }, z.core.$strip>>;
863
902
  }, z.core.$strip>>;
903
+ move: z.ZodOptional<z.ZodEnum<{
904
+ moved: "moved";
905
+ receiving: "receiving";
906
+ sending: "sending";
907
+ }>>;
864
908
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
865
909
  NOT_FOUND: {
866
910
  readonly message: "Not found";
@@ -979,6 +1023,13 @@ declare const impContract: {
979
1023
  readonly message: "The imp's agent is too old for this";
980
1024
  readonly status: 409;
981
1025
  };
1026
+ MOVING: {
1027
+ readonly message: "The imp is moving between hosts";
1028
+ readonly status: 409;
1029
+ readonly data: z.ZodObject<{
1030
+ retryAfterS: z.ZodInt;
1031
+ }, z.core.$strip>;
1032
+ };
982
1033
  }>, Record<never, never>>;
983
1034
  destroy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
984
1035
  name: z.ZodString;
@@ -1100,6 +1151,13 @@ declare const impContract: {
1100
1151
  readonly message: "The imp's agent is too old for this";
1101
1152
  readonly status: 409;
1102
1153
  };
1154
+ MOVING: {
1155
+ readonly message: "The imp is moving between hosts";
1156
+ readonly status: 409;
1157
+ readonly data: z.ZodObject<{
1158
+ retryAfterS: z.ZodInt;
1159
+ }, z.core.$strip>;
1160
+ };
1103
1161
  }>, Record<never, never>>;
1104
1162
  start: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1105
1163
  name: z.ZodString;
@@ -1181,6 +1239,11 @@ declare const impContract: {
1181
1239
  netTxBytes: z.ZodInt;
1182
1240
  }, z.core.$strip>>;
1183
1241
  }, z.core.$strip>>;
1242
+ move: z.ZodOptional<z.ZodEnum<{
1243
+ moved: "moved";
1244
+ receiving: "receiving";
1245
+ sending: "sending";
1246
+ }>>;
1184
1247
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1185
1248
  NOT_FOUND: {
1186
1249
  readonly message: "Not found";
@@ -1299,6 +1362,13 @@ declare const impContract: {
1299
1362
  readonly message: "The imp's agent is too old for this";
1300
1363
  readonly status: 409;
1301
1364
  };
1365
+ MOVING: {
1366
+ readonly message: "The imp is moving between hosts";
1367
+ readonly status: 409;
1368
+ readonly data: z.ZodObject<{
1369
+ retryAfterS: z.ZodInt;
1370
+ }, z.core.$strip>;
1371
+ };
1302
1372
  }>, Record<never, never>>;
1303
1373
  stop: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1304
1374
  name: z.ZodString;
@@ -1381,6 +1451,11 @@ declare const impContract: {
1381
1451
  netTxBytes: z.ZodInt;
1382
1452
  }, z.core.$strip>>;
1383
1453
  }, z.core.$strip>>;
1454
+ move: z.ZodOptional<z.ZodEnum<{
1455
+ moved: "moved";
1456
+ receiving: "receiving";
1457
+ sending: "sending";
1458
+ }>>;
1384
1459
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1385
1460
  NOT_FOUND: {
1386
1461
  readonly message: "Not found";
@@ -1499,6 +1574,13 @@ declare const impContract: {
1499
1574
  readonly message: "The imp's agent is too old for this";
1500
1575
  readonly status: 409;
1501
1576
  };
1577
+ MOVING: {
1578
+ readonly message: "The imp is moving between hosts";
1579
+ readonly status: 409;
1580
+ readonly data: z.ZodObject<{
1581
+ retryAfterS: z.ZodInt;
1582
+ }, z.core.$strip>;
1583
+ };
1502
1584
  }>, Record<never, never>>;
1503
1585
  sleep: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1504
1586
  name: z.ZodString;
@@ -1581,6 +1663,11 @@ declare const impContract: {
1581
1663
  netTxBytes: z.ZodInt;
1582
1664
  }, z.core.$strip>>;
1583
1665
  }, z.core.$strip>>;
1666
+ move: z.ZodOptional<z.ZodEnum<{
1667
+ moved: "moved";
1668
+ receiving: "receiving";
1669
+ sending: "sending";
1670
+ }>>;
1584
1671
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1585
1672
  NOT_FOUND: {
1586
1673
  readonly message: "Not found";
@@ -1699,6 +1786,13 @@ declare const impContract: {
1699
1786
  readonly message: "The imp's agent is too old for this";
1700
1787
  readonly status: 409;
1701
1788
  };
1789
+ MOVING: {
1790
+ readonly message: "The imp is moving between hosts";
1791
+ readonly status: 409;
1792
+ readonly data: z.ZodObject<{
1793
+ retryAfterS: z.ZodInt;
1794
+ }, z.core.$strip>;
1795
+ };
1702
1796
  }>, Record<never, never>>;
1703
1797
  wake: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1704
1798
  name: z.ZodString;
@@ -1781,6 +1875,11 @@ declare const impContract: {
1781
1875
  netTxBytes: z.ZodInt;
1782
1876
  }, z.core.$strip>>;
1783
1877
  }, z.core.$strip>>;
1878
+ move: z.ZodOptional<z.ZodEnum<{
1879
+ moved: "moved";
1880
+ receiving: "receiving";
1881
+ sending: "sending";
1882
+ }>>;
1784
1883
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1785
1884
  NOT_FOUND: {
1786
1885
  readonly message: "Not found";
@@ -1899,6 +1998,13 @@ declare const impContract: {
1899
1998
  readonly message: "The imp's agent is too old for this";
1900
1999
  readonly status: 409;
1901
2000
  };
2001
+ MOVING: {
2002
+ readonly message: "The imp is moving between hosts";
2003
+ readonly status: 409;
2004
+ readonly data: z.ZodObject<{
2005
+ retryAfterS: z.ZodInt;
2006
+ }, z.core.$strip>;
2007
+ };
1902
2008
  }>, Record<never, never>>;
1903
2009
  hold: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
1904
2010
  name: z.ZodString;
@@ -1981,6 +2087,11 @@ declare const impContract: {
1981
2087
  netTxBytes: z.ZodInt;
1982
2088
  }, z.core.$strip>>;
1983
2089
  }, z.core.$strip>>;
2090
+ move: z.ZodOptional<z.ZodEnum<{
2091
+ moved: "moved";
2092
+ receiving: "receiving";
2093
+ sending: "sending";
2094
+ }>>;
1984
2095
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
1985
2096
  NOT_FOUND: {
1986
2097
  readonly message: "Not found";
@@ -2099,6 +2210,13 @@ declare const impContract: {
2099
2210
  readonly message: "The imp's agent is too old for this";
2100
2211
  readonly status: 409;
2101
2212
  };
2213
+ MOVING: {
2214
+ readonly message: "The imp is moving between hosts";
2215
+ readonly status: 409;
2216
+ readonly data: z.ZodObject<{
2217
+ retryAfterS: z.ZodInt;
2218
+ }, z.core.$strip>;
2219
+ };
2102
2220
  }>, Record<never, never>>;
2103
2221
  resizeDisk: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2104
2222
  name: z.ZodString;
@@ -2181,6 +2299,11 @@ declare const impContract: {
2181
2299
  netTxBytes: z.ZodInt;
2182
2300
  }, z.core.$strip>>;
2183
2301
  }, z.core.$strip>>;
2302
+ move: z.ZodOptional<z.ZodEnum<{
2303
+ moved: "moved";
2304
+ receiving: "receiving";
2305
+ sending: "sending";
2306
+ }>>;
2184
2307
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2185
2308
  NOT_FOUND: {
2186
2309
  readonly message: "Not found";
@@ -2299,6 +2422,13 @@ declare const impContract: {
2299
2422
  readonly message: "The imp's agent is too old for this";
2300
2423
  readonly status: 409;
2301
2424
  };
2425
+ MOVING: {
2426
+ readonly message: "The imp is moving between hosts";
2427
+ readonly status: 409;
2428
+ readonly data: z.ZodObject<{
2429
+ retryAfterS: z.ZodInt;
2430
+ }, z.core.$strip>;
2431
+ };
2302
2432
  }>, Record<never, never>>;
2303
2433
  url: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2304
2434
  name: z.ZodString;
@@ -2426,6 +2556,13 @@ declare const impContract: {
2426
2556
  readonly message: "The imp's agent is too old for this";
2427
2557
  readonly status: 409;
2428
2558
  };
2559
+ MOVING: {
2560
+ readonly message: "The imp is moving between hosts";
2561
+ readonly status: 409;
2562
+ readonly data: z.ZodObject<{
2563
+ retryAfterS: z.ZodInt;
2564
+ }, z.core.$strip>;
2565
+ };
2429
2566
  }>, Record<never, never>>;
2430
2567
  policy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2431
2568
  name: z.ZodString;
@@ -2554,6 +2691,13 @@ declare const impContract: {
2554
2691
  readonly message: "The imp's agent is too old for this";
2555
2692
  readonly status: 409;
2556
2693
  };
2694
+ MOVING: {
2695
+ readonly message: "The imp is moving between hosts";
2696
+ readonly status: 409;
2697
+ readonly data: z.ZodObject<{
2698
+ retryAfterS: z.ZodInt;
2699
+ }, z.core.$strip>;
2700
+ };
2557
2701
  }>, Record<never, never>>;
2558
2702
  setPolicy: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2559
2703
  name: z.ZodString;
@@ -2690,6 +2834,13 @@ declare const impContract: {
2690
2834
  readonly message: "The imp's agent is too old for this";
2691
2835
  readonly status: 409;
2692
2836
  };
2837
+ MOVING: {
2838
+ readonly message: "The imp is moving between hosts";
2839
+ readonly status: 409;
2840
+ readonly data: z.ZodObject<{
2841
+ retryAfterS: z.ZodInt;
2842
+ }, z.core.$strip>;
2843
+ };
2693
2844
  }>, Record<never, never>>;
2694
2845
  expose: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2695
2846
  name: z.ZodString;
@@ -2827,6 +2978,13 @@ declare const impContract: {
2827
2978
  readonly message: "The imp's agent is too old for this";
2828
2979
  readonly status: 409;
2829
2980
  };
2981
+ MOVING: {
2982
+ readonly message: "The imp is moving between hosts";
2983
+ readonly status: 409;
2984
+ readonly data: z.ZodObject<{
2985
+ retryAfterS: z.ZodInt;
2986
+ }, z.core.$strip>;
2987
+ };
2830
2988
  }>, Record<never, never>>;
2831
2989
  unexpose: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
2832
2990
  name: z.ZodString;
@@ -2908,6 +3066,11 @@ declare const impContract: {
2908
3066
  netTxBytes: z.ZodInt;
2909
3067
  }, z.core.$strip>>;
2910
3068
  }, z.core.$strip>>;
3069
+ move: z.ZodOptional<z.ZodEnum<{
3070
+ moved: "moved";
3071
+ receiving: "receiving";
3072
+ sending: "sending";
3073
+ }>>;
2911
3074
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
2912
3075
  NOT_FOUND: {
2913
3076
  readonly message: "Not found";
@@ -3026,6 +3189,13 @@ declare const impContract: {
3026
3189
  readonly message: "The imp's agent is too old for this";
3027
3190
  readonly status: 409;
3028
3191
  };
3192
+ MOVING: {
3193
+ readonly message: "The imp is moving between hosts";
3194
+ readonly status: 409;
3195
+ readonly data: z.ZodObject<{
3196
+ retryAfterS: z.ZodInt;
3197
+ }, z.core.$strip>;
3198
+ };
3029
3199
  }>, Record<never, never>>;
3030
3200
  fork: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3031
3201
  source: z.ZodString;
@@ -3109,6 +3279,11 @@ declare const impContract: {
3109
3279
  netTxBytes: z.ZodInt;
3110
3280
  }, z.core.$strip>>;
3111
3281
  }, z.core.$strip>>;
3282
+ move: z.ZodOptional<z.ZodEnum<{
3283
+ moved: "moved";
3284
+ receiving: "receiving";
3285
+ sending: "sending";
3286
+ }>>;
3112
3287
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3113
3288
  NOT_FOUND: {
3114
3289
  readonly message: "Not found";
@@ -3227,6 +3402,13 @@ declare const impContract: {
3227
3402
  readonly message: "The imp's agent is too old for this";
3228
3403
  readonly status: 409;
3229
3404
  };
3405
+ MOVING: {
3406
+ readonly message: "The imp is moving between hosts";
3407
+ readonly status: 409;
3408
+ readonly data: z.ZodObject<{
3409
+ retryAfterS: z.ZodInt;
3410
+ }, z.core.$strip>;
3411
+ };
3230
3412
  }>, Record<never, never>>;
3231
3413
  update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3232
3414
  name: z.ZodString;
@@ -3312,6 +3494,969 @@ declare const impContract: {
3312
3494
  netTxBytes: z.ZodInt;
3313
3495
  }, z.core.$strip>>;
3314
3496
  }, z.core.$strip>>;
3497
+ move: z.ZodOptional<z.ZodEnum<{
3498
+ moved: "moved";
3499
+ receiving: "receiving";
3500
+ sending: "sending";
3501
+ }>>;
3502
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3503
+ NOT_FOUND: {
3504
+ readonly message: "Not found";
3505
+ readonly data: z.ZodObject<{
3506
+ kind: z.ZodEnum<{
3507
+ backup: "backup";
3508
+ checkpoint: "checkpoint";
3509
+ grant: "grant";
3510
+ image: "image";
3511
+ imp: "imp";
3512
+ network: "network";
3513
+ secret: "secret";
3514
+ service: "service";
3515
+ session: "session";
3516
+ "ssh-key": "ssh-key";
3517
+ token: "token";
3518
+ }>;
3519
+ name: z.ZodString;
3520
+ }, z.core.$strip>;
3521
+ };
3522
+ CONFLICT: {
3523
+ readonly message: "Already exists";
3524
+ readonly data: z.ZodObject<{
3525
+ kind: z.ZodEnum<{
3526
+ backup: "backup";
3527
+ checkpoint: "checkpoint";
3528
+ grant: "grant";
3529
+ image: "image";
3530
+ imp: "imp";
3531
+ network: "network";
3532
+ secret: "secret";
3533
+ service: "service";
3534
+ session: "session";
3535
+ "ssh-key": "ssh-key";
3536
+ token: "token";
3537
+ }>;
3538
+ name: z.ZodString;
3539
+ }, z.core.$strip>;
3540
+ };
3541
+ FORBIDDEN: {
3542
+ readonly message: "Not allowed";
3543
+ };
3544
+ PRECONDITION_FAILED: {
3545
+ readonly message: "Not possible on this host";
3546
+ };
3547
+ RAM_BUDGET_EXCEEDED: {
3548
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
3549
+ readonly status: 503;
3550
+ readonly data: z.ZodObject<{
3551
+ budgetMib: z.ZodInt;
3552
+ usedMib: z.ZodInt;
3553
+ requestedMib: z.ZodInt;
3554
+ neededMib: z.ZodOptional<z.ZodInt>;
3555
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3556
+ name: z.ZodString;
3557
+ ramMib: z.ZodInt;
3558
+ leased: z.ZodBoolean;
3559
+ busy: z.ZodBoolean;
3560
+ }, z.core.$strip>>>>;
3561
+ protectedHidden: z.ZodOptional<z.ZodInt>;
3562
+ }, z.core.$strip>;
3563
+ };
3564
+ SERVICE_UNAVAILABLE: {
3565
+ readonly message: "impd is stopping";
3566
+ };
3567
+ INVALID_STATE: {
3568
+ readonly message: "The imp is not in a state that allows this";
3569
+ readonly status: 409;
3570
+ readonly data: z.ZodObject<{
3571
+ state: z.ZodEnum<{
3572
+ creating: "creating";
3573
+ error: "error";
3574
+ running: "running";
3575
+ sleeping: "sleeping";
3576
+ stopped: "stopped";
3577
+ }>;
3578
+ allowed: z.ZodArray<z.ZodEnum<{
3579
+ creating: "creating";
3580
+ error: "error";
3581
+ running: "running";
3582
+ sleeping: "sleeping";
3583
+ stopped: "stopped";
3584
+ }>>;
3585
+ }, z.core.$strip>;
3586
+ };
3587
+ DISK_FULL: {
3588
+ readonly message: "Not enough free disk on the host";
3589
+ readonly status: 507;
3590
+ readonly data: z.ZodObject<{
3591
+ availableBytes: z.ZodInt;
3592
+ reserveBytes: z.ZodInt;
3593
+ requestedBytes: z.ZodInt;
3594
+ }, z.core.$strip>;
3595
+ };
3596
+ LEASED: {
3597
+ readonly message: "The imp is leased";
3598
+ readonly status: 409;
3599
+ readonly data: z.ZodObject<{
3600
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3601
+ name: z.ZodString;
3602
+ owner: z.ZodObject<{
3603
+ principal: z.ZodString;
3604
+ display: z.ZodString;
3605
+ label: z.ZodString;
3606
+ }, z.core.$strip>;
3607
+ until: z.ZodNullable<z.ZodDate>;
3608
+ }, z.core.$strip>>>;
3609
+ otherCount: z.ZodInt;
3610
+ }, z.core.$strip>;
3611
+ };
3612
+ LEASE_NOT_HELD: {
3613
+ readonly message: "The caller holds no such lease";
3614
+ readonly status: 409;
3615
+ };
3616
+ AGENT_OUTDATED: {
3617
+ readonly message: "The imp's agent is too old for this";
3618
+ readonly status: 409;
3619
+ };
3620
+ MOVING: {
3621
+ readonly message: "The imp is moving between hosts";
3622
+ readonly status: 409;
3623
+ readonly data: z.ZodObject<{
3624
+ retryAfterS: z.ZodInt;
3625
+ }, z.core.$strip>;
3626
+ };
3627
+ }>, Record<never, never>>;
3628
+ };
3629
+ leases: {
3630
+ acquire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3631
+ name: z.ZodString;
3632
+ label: z.ZodString;
3633
+ ttlSeconds: z.ZodInt;
3634
+ }, z.core.$strip>, z.ZodObject<{
3635
+ name: z.ZodString;
3636
+ owner: z.ZodObject<{
3637
+ principal: z.ZodString;
3638
+ display: z.ZodString;
3639
+ label: z.ZodString;
3640
+ }, z.core.$strip>;
3641
+ until: z.ZodNullable<z.ZodDate>;
3642
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3643
+ NOT_FOUND: {
3644
+ readonly message: "Not found";
3645
+ readonly data: z.ZodObject<{
3646
+ kind: z.ZodEnum<{
3647
+ backup: "backup";
3648
+ checkpoint: "checkpoint";
3649
+ grant: "grant";
3650
+ image: "image";
3651
+ imp: "imp";
3652
+ network: "network";
3653
+ secret: "secret";
3654
+ service: "service";
3655
+ session: "session";
3656
+ "ssh-key": "ssh-key";
3657
+ token: "token";
3658
+ }>;
3659
+ name: z.ZodString;
3660
+ }, z.core.$strip>;
3661
+ };
3662
+ CONFLICT: {
3663
+ readonly message: "Already exists";
3664
+ readonly data: z.ZodObject<{
3665
+ kind: z.ZodEnum<{
3666
+ backup: "backup";
3667
+ checkpoint: "checkpoint";
3668
+ grant: "grant";
3669
+ image: "image";
3670
+ imp: "imp";
3671
+ network: "network";
3672
+ secret: "secret";
3673
+ service: "service";
3674
+ session: "session";
3675
+ "ssh-key": "ssh-key";
3676
+ token: "token";
3677
+ }>;
3678
+ name: z.ZodString;
3679
+ }, z.core.$strip>;
3680
+ };
3681
+ FORBIDDEN: {
3682
+ readonly message: "Not allowed";
3683
+ };
3684
+ PRECONDITION_FAILED: {
3685
+ readonly message: "Not possible on this host";
3686
+ };
3687
+ RAM_BUDGET_EXCEEDED: {
3688
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
3689
+ readonly status: 503;
3690
+ readonly data: z.ZodObject<{
3691
+ budgetMib: z.ZodInt;
3692
+ usedMib: z.ZodInt;
3693
+ requestedMib: z.ZodInt;
3694
+ neededMib: z.ZodOptional<z.ZodInt>;
3695
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3696
+ name: z.ZodString;
3697
+ ramMib: z.ZodInt;
3698
+ leased: z.ZodBoolean;
3699
+ busy: z.ZodBoolean;
3700
+ }, z.core.$strip>>>>;
3701
+ protectedHidden: z.ZodOptional<z.ZodInt>;
3702
+ }, z.core.$strip>;
3703
+ };
3704
+ SERVICE_UNAVAILABLE: {
3705
+ readonly message: "impd is stopping";
3706
+ };
3707
+ INVALID_STATE: {
3708
+ readonly message: "The imp is not in a state that allows this";
3709
+ readonly status: 409;
3710
+ readonly data: z.ZodObject<{
3711
+ state: z.ZodEnum<{
3712
+ creating: "creating";
3713
+ error: "error";
3714
+ running: "running";
3715
+ sleeping: "sleeping";
3716
+ stopped: "stopped";
3717
+ }>;
3718
+ allowed: z.ZodArray<z.ZodEnum<{
3719
+ creating: "creating";
3720
+ error: "error";
3721
+ running: "running";
3722
+ sleeping: "sleeping";
3723
+ stopped: "stopped";
3724
+ }>>;
3725
+ }, z.core.$strip>;
3726
+ };
3727
+ DISK_FULL: {
3728
+ readonly message: "Not enough free disk on the host";
3729
+ readonly status: 507;
3730
+ readonly data: z.ZodObject<{
3731
+ availableBytes: z.ZodInt;
3732
+ reserveBytes: z.ZodInt;
3733
+ requestedBytes: z.ZodInt;
3734
+ }, z.core.$strip>;
3735
+ };
3736
+ LEASED: {
3737
+ readonly message: "The imp is leased";
3738
+ readonly status: 409;
3739
+ readonly data: z.ZodObject<{
3740
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3741
+ name: z.ZodString;
3742
+ owner: z.ZodObject<{
3743
+ principal: z.ZodString;
3744
+ display: z.ZodString;
3745
+ label: z.ZodString;
3746
+ }, z.core.$strip>;
3747
+ until: z.ZodNullable<z.ZodDate>;
3748
+ }, z.core.$strip>>>;
3749
+ otherCount: z.ZodInt;
3750
+ }, z.core.$strip>;
3751
+ };
3752
+ LEASE_NOT_HELD: {
3753
+ readonly message: "The caller holds no such lease";
3754
+ readonly status: 409;
3755
+ };
3756
+ AGENT_OUTDATED: {
3757
+ readonly message: "The imp's agent is too old for this";
3758
+ readonly status: 409;
3759
+ };
3760
+ MOVING: {
3761
+ readonly message: "The imp is moving between hosts";
3762
+ readonly status: 409;
3763
+ readonly data: z.ZodObject<{
3764
+ retryAfterS: z.ZodInt;
3765
+ }, z.core.$strip>;
3766
+ };
3767
+ }>, Record<never, never>>;
3768
+ renew: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3769
+ name: z.ZodString;
3770
+ label: z.ZodString;
3771
+ ttlSeconds: z.ZodInt;
3772
+ }, z.core.$strip>, z.ZodObject<{
3773
+ name: z.ZodString;
3774
+ owner: z.ZodObject<{
3775
+ principal: z.ZodString;
3776
+ display: z.ZodString;
3777
+ label: z.ZodString;
3778
+ }, z.core.$strip>;
3779
+ until: z.ZodNullable<z.ZodDate>;
3780
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3781
+ NOT_FOUND: {
3782
+ readonly message: "Not found";
3783
+ readonly data: z.ZodObject<{
3784
+ kind: z.ZodEnum<{
3785
+ backup: "backup";
3786
+ checkpoint: "checkpoint";
3787
+ grant: "grant";
3788
+ image: "image";
3789
+ imp: "imp";
3790
+ network: "network";
3791
+ secret: "secret";
3792
+ service: "service";
3793
+ session: "session";
3794
+ "ssh-key": "ssh-key";
3795
+ token: "token";
3796
+ }>;
3797
+ name: z.ZodString;
3798
+ }, z.core.$strip>;
3799
+ };
3800
+ CONFLICT: {
3801
+ readonly message: "Already exists";
3802
+ readonly data: z.ZodObject<{
3803
+ kind: z.ZodEnum<{
3804
+ backup: "backup";
3805
+ checkpoint: "checkpoint";
3806
+ grant: "grant";
3807
+ image: "image";
3808
+ imp: "imp";
3809
+ network: "network";
3810
+ secret: "secret";
3811
+ service: "service";
3812
+ session: "session";
3813
+ "ssh-key": "ssh-key";
3814
+ token: "token";
3815
+ }>;
3816
+ name: z.ZodString;
3817
+ }, z.core.$strip>;
3818
+ };
3819
+ FORBIDDEN: {
3820
+ readonly message: "Not allowed";
3821
+ };
3822
+ PRECONDITION_FAILED: {
3823
+ readonly message: "Not possible on this host";
3824
+ };
3825
+ RAM_BUDGET_EXCEEDED: {
3826
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
3827
+ readonly status: 503;
3828
+ readonly data: z.ZodObject<{
3829
+ budgetMib: z.ZodInt;
3830
+ usedMib: z.ZodInt;
3831
+ requestedMib: z.ZodInt;
3832
+ neededMib: z.ZodOptional<z.ZodInt>;
3833
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3834
+ name: z.ZodString;
3835
+ ramMib: z.ZodInt;
3836
+ leased: z.ZodBoolean;
3837
+ busy: z.ZodBoolean;
3838
+ }, z.core.$strip>>>>;
3839
+ protectedHidden: z.ZodOptional<z.ZodInt>;
3840
+ }, z.core.$strip>;
3841
+ };
3842
+ SERVICE_UNAVAILABLE: {
3843
+ readonly message: "impd is stopping";
3844
+ };
3845
+ INVALID_STATE: {
3846
+ readonly message: "The imp is not in a state that allows this";
3847
+ readonly status: 409;
3848
+ readonly data: z.ZodObject<{
3849
+ state: z.ZodEnum<{
3850
+ creating: "creating";
3851
+ error: "error";
3852
+ running: "running";
3853
+ sleeping: "sleeping";
3854
+ stopped: "stopped";
3855
+ }>;
3856
+ allowed: z.ZodArray<z.ZodEnum<{
3857
+ creating: "creating";
3858
+ error: "error";
3859
+ running: "running";
3860
+ sleeping: "sleeping";
3861
+ stopped: "stopped";
3862
+ }>>;
3863
+ }, z.core.$strip>;
3864
+ };
3865
+ DISK_FULL: {
3866
+ readonly message: "Not enough free disk on the host";
3867
+ readonly status: 507;
3868
+ readonly data: z.ZodObject<{
3869
+ availableBytes: z.ZodInt;
3870
+ reserveBytes: z.ZodInt;
3871
+ requestedBytes: z.ZodInt;
3872
+ }, z.core.$strip>;
3873
+ };
3874
+ LEASED: {
3875
+ readonly message: "The imp is leased";
3876
+ readonly status: 409;
3877
+ readonly data: z.ZodObject<{
3878
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
3879
+ name: z.ZodString;
3880
+ owner: z.ZodObject<{
3881
+ principal: z.ZodString;
3882
+ display: z.ZodString;
3883
+ label: z.ZodString;
3884
+ }, z.core.$strip>;
3885
+ until: z.ZodNullable<z.ZodDate>;
3886
+ }, z.core.$strip>>>;
3887
+ otherCount: z.ZodInt;
3888
+ }, z.core.$strip>;
3889
+ };
3890
+ LEASE_NOT_HELD: {
3891
+ readonly message: "The caller holds no such lease";
3892
+ readonly status: 409;
3893
+ };
3894
+ AGENT_OUTDATED: {
3895
+ readonly message: "The imp's agent is too old for this";
3896
+ readonly status: 409;
3897
+ };
3898
+ MOVING: {
3899
+ readonly message: "The imp is moving between hosts";
3900
+ readonly status: 409;
3901
+ readonly data: z.ZodObject<{
3902
+ retryAfterS: z.ZodInt;
3903
+ }, z.core.$strip>;
3904
+ };
3905
+ }>, Record<never, never>>;
3906
+ release: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3907
+ name: z.ZodString;
3908
+ label: z.ZodString;
3909
+ }, z.core.$strip>, z.ZodObject<{
3910
+ released: z.ZodBoolean;
3911
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3912
+ NOT_FOUND: {
3913
+ readonly message: "Not found";
3914
+ readonly data: z.ZodObject<{
3915
+ kind: z.ZodEnum<{
3916
+ backup: "backup";
3917
+ checkpoint: "checkpoint";
3918
+ grant: "grant";
3919
+ image: "image";
3920
+ imp: "imp";
3921
+ network: "network";
3922
+ secret: "secret";
3923
+ service: "service";
3924
+ session: "session";
3925
+ "ssh-key": "ssh-key";
3926
+ token: "token";
3927
+ }>;
3928
+ name: z.ZodString;
3929
+ }, z.core.$strip>;
3930
+ };
3931
+ CONFLICT: {
3932
+ readonly message: "Already exists";
3933
+ readonly data: z.ZodObject<{
3934
+ kind: z.ZodEnum<{
3935
+ backup: "backup";
3936
+ checkpoint: "checkpoint";
3937
+ grant: "grant";
3938
+ image: "image";
3939
+ imp: "imp";
3940
+ network: "network";
3941
+ secret: "secret";
3942
+ service: "service";
3943
+ session: "session";
3944
+ "ssh-key": "ssh-key";
3945
+ token: "token";
3946
+ }>;
3947
+ name: z.ZodString;
3948
+ }, z.core.$strip>;
3949
+ };
3950
+ FORBIDDEN: {
3951
+ readonly message: "Not allowed";
3952
+ };
3953
+ PRECONDITION_FAILED: {
3954
+ readonly message: "Not possible on this host";
3955
+ };
3956
+ RAM_BUDGET_EXCEEDED: {
3957
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
3958
+ readonly status: 503;
3959
+ readonly data: z.ZodObject<{
3960
+ budgetMib: z.ZodInt;
3961
+ usedMib: z.ZodInt;
3962
+ requestedMib: z.ZodInt;
3963
+ neededMib: z.ZodOptional<z.ZodInt>;
3964
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
3965
+ name: z.ZodString;
3966
+ ramMib: z.ZodInt;
3967
+ leased: z.ZodBoolean;
3968
+ busy: z.ZodBoolean;
3969
+ }, z.core.$strip>>>>;
3970
+ protectedHidden: z.ZodOptional<z.ZodInt>;
3971
+ }, z.core.$strip>;
3972
+ };
3973
+ SERVICE_UNAVAILABLE: {
3974
+ readonly message: "impd is stopping";
3975
+ };
3976
+ INVALID_STATE: {
3977
+ readonly message: "The imp is not in a state that allows this";
3978
+ readonly status: 409;
3979
+ readonly data: z.ZodObject<{
3980
+ state: z.ZodEnum<{
3981
+ creating: "creating";
3982
+ error: "error";
3983
+ running: "running";
3984
+ sleeping: "sleeping";
3985
+ stopped: "stopped";
3986
+ }>;
3987
+ allowed: z.ZodArray<z.ZodEnum<{
3988
+ creating: "creating";
3989
+ error: "error";
3990
+ running: "running";
3991
+ sleeping: "sleeping";
3992
+ stopped: "stopped";
3993
+ }>>;
3994
+ }, z.core.$strip>;
3995
+ };
3996
+ DISK_FULL: {
3997
+ readonly message: "Not enough free disk on the host";
3998
+ readonly status: 507;
3999
+ readonly data: z.ZodObject<{
4000
+ availableBytes: z.ZodInt;
4001
+ reserveBytes: z.ZodInt;
4002
+ requestedBytes: z.ZodInt;
4003
+ }, z.core.$strip>;
4004
+ };
4005
+ LEASED: {
4006
+ readonly message: "The imp is leased";
4007
+ readonly status: 409;
4008
+ readonly data: z.ZodObject<{
4009
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4010
+ name: z.ZodString;
4011
+ owner: z.ZodObject<{
4012
+ principal: z.ZodString;
4013
+ display: z.ZodString;
4014
+ label: z.ZodString;
4015
+ }, z.core.$strip>;
4016
+ until: z.ZodNullable<z.ZodDate>;
4017
+ }, z.core.$strip>>>;
4018
+ otherCount: z.ZodInt;
4019
+ }, z.core.$strip>;
4020
+ };
4021
+ LEASE_NOT_HELD: {
4022
+ readonly message: "The caller holds no such lease";
4023
+ readonly status: 409;
4024
+ };
4025
+ AGENT_OUTDATED: {
4026
+ readonly message: "The imp's agent is too old for this";
4027
+ readonly status: 409;
4028
+ };
4029
+ MOVING: {
4030
+ readonly message: "The imp is moving between hosts";
4031
+ readonly status: 409;
4032
+ readonly data: z.ZodObject<{
4033
+ retryAfterS: z.ZodInt;
4034
+ }, z.core.$strip>;
4035
+ };
4036
+ }>, Record<never, never>>;
4037
+ list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4038
+ name: z.ZodOptional<z.ZodString>;
4039
+ label: z.ZodOptional<z.ZodString>;
4040
+ }, z.core.$strip>, z.ZodArray<z.ZodObject<{
4041
+ name: z.ZodString;
4042
+ owner: z.ZodObject<{
4043
+ principal: z.ZodString;
4044
+ display: z.ZodString;
4045
+ label: z.ZodString;
4046
+ }, z.core.$strip>;
4047
+ until: z.ZodNullable<z.ZodDate>;
4048
+ }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4049
+ NOT_FOUND: {
4050
+ readonly message: "Not found";
4051
+ readonly data: z.ZodObject<{
4052
+ kind: z.ZodEnum<{
4053
+ backup: "backup";
4054
+ checkpoint: "checkpoint";
4055
+ grant: "grant";
4056
+ image: "image";
4057
+ imp: "imp";
4058
+ network: "network";
4059
+ secret: "secret";
4060
+ service: "service";
4061
+ session: "session";
4062
+ "ssh-key": "ssh-key";
4063
+ token: "token";
4064
+ }>;
4065
+ name: z.ZodString;
4066
+ }, z.core.$strip>;
4067
+ };
4068
+ CONFLICT: {
4069
+ readonly message: "Already exists";
4070
+ readonly data: z.ZodObject<{
4071
+ kind: z.ZodEnum<{
4072
+ backup: "backup";
4073
+ checkpoint: "checkpoint";
4074
+ grant: "grant";
4075
+ image: "image";
4076
+ imp: "imp";
4077
+ network: "network";
4078
+ secret: "secret";
4079
+ service: "service";
4080
+ session: "session";
4081
+ "ssh-key": "ssh-key";
4082
+ token: "token";
4083
+ }>;
4084
+ name: z.ZodString;
4085
+ }, z.core.$strip>;
4086
+ };
4087
+ FORBIDDEN: {
4088
+ readonly message: "Not allowed";
4089
+ };
4090
+ PRECONDITION_FAILED: {
4091
+ readonly message: "Not possible on this host";
4092
+ };
4093
+ RAM_BUDGET_EXCEEDED: {
4094
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
4095
+ readonly status: 503;
4096
+ readonly data: z.ZodObject<{
4097
+ budgetMib: z.ZodInt;
4098
+ usedMib: z.ZodInt;
4099
+ requestedMib: z.ZodInt;
4100
+ neededMib: z.ZodOptional<z.ZodInt>;
4101
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
4102
+ name: z.ZodString;
4103
+ ramMib: z.ZodInt;
4104
+ leased: z.ZodBoolean;
4105
+ busy: z.ZodBoolean;
4106
+ }, z.core.$strip>>>>;
4107
+ protectedHidden: z.ZodOptional<z.ZodInt>;
4108
+ }, z.core.$strip>;
4109
+ };
4110
+ SERVICE_UNAVAILABLE: {
4111
+ readonly message: "impd is stopping";
4112
+ };
4113
+ INVALID_STATE: {
4114
+ readonly message: "The imp is not in a state that allows this";
4115
+ readonly status: 409;
4116
+ readonly data: z.ZodObject<{
4117
+ state: z.ZodEnum<{
4118
+ creating: "creating";
4119
+ error: "error";
4120
+ running: "running";
4121
+ sleeping: "sleeping";
4122
+ stopped: "stopped";
4123
+ }>;
4124
+ allowed: z.ZodArray<z.ZodEnum<{
4125
+ creating: "creating";
4126
+ error: "error";
4127
+ running: "running";
4128
+ sleeping: "sleeping";
4129
+ stopped: "stopped";
4130
+ }>>;
4131
+ }, z.core.$strip>;
4132
+ };
4133
+ DISK_FULL: {
4134
+ readonly message: "Not enough free disk on the host";
4135
+ readonly status: 507;
4136
+ readonly data: z.ZodObject<{
4137
+ availableBytes: z.ZodInt;
4138
+ reserveBytes: z.ZodInt;
4139
+ requestedBytes: z.ZodInt;
4140
+ }, z.core.$strip>;
4141
+ };
4142
+ LEASED: {
4143
+ readonly message: "The imp is leased";
4144
+ readonly status: 409;
4145
+ readonly data: z.ZodObject<{
4146
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4147
+ name: z.ZodString;
4148
+ owner: z.ZodObject<{
4149
+ principal: z.ZodString;
4150
+ display: z.ZodString;
4151
+ label: z.ZodString;
4152
+ }, z.core.$strip>;
4153
+ until: z.ZodNullable<z.ZodDate>;
4154
+ }, z.core.$strip>>>;
4155
+ otherCount: z.ZodInt;
4156
+ }, z.core.$strip>;
4157
+ };
4158
+ LEASE_NOT_HELD: {
4159
+ readonly message: "The caller holds no such lease";
4160
+ readonly status: 409;
4161
+ };
4162
+ AGENT_OUTDATED: {
4163
+ readonly message: "The imp's agent is too old for this";
4164
+ readonly status: 409;
4165
+ };
4166
+ MOVING: {
4167
+ readonly message: "The imp is moving between hosts";
4168
+ readonly status: 409;
4169
+ readonly data: z.ZodObject<{
4170
+ retryAfterS: z.ZodInt;
4171
+ }, z.core.$strip>;
4172
+ };
4173
+ }>, Record<never, never>>;
4174
+ };
4175
+ moves: {
4176
+ prepare: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4177
+ name: z.ZodString;
4178
+ stop: z.ZodOptional<z.ZodBoolean>;
4179
+ targetStorage: z.ZodOptional<z.ZodEnum<{
4180
+ xfs: "xfs";
4181
+ zfs: "zfs";
4182
+ }>>;
4183
+ }, z.core.$strip>, z.ZodObject<{
4184
+ bytes: z.ZodInt;
4185
+ checkpoints: z.ZodInt;
4186
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4187
+ NOT_FOUND: {
4188
+ readonly message: "Not found";
4189
+ readonly data: z.ZodObject<{
4190
+ kind: z.ZodEnum<{
4191
+ backup: "backup";
4192
+ checkpoint: "checkpoint";
4193
+ grant: "grant";
4194
+ image: "image";
4195
+ imp: "imp";
4196
+ network: "network";
4197
+ secret: "secret";
4198
+ service: "service";
4199
+ session: "session";
4200
+ "ssh-key": "ssh-key";
4201
+ token: "token";
4202
+ }>;
4203
+ name: z.ZodString;
4204
+ }, z.core.$strip>;
4205
+ };
4206
+ CONFLICT: {
4207
+ readonly message: "Already exists";
4208
+ readonly data: z.ZodObject<{
4209
+ kind: z.ZodEnum<{
4210
+ backup: "backup";
4211
+ checkpoint: "checkpoint";
4212
+ grant: "grant";
4213
+ image: "image";
4214
+ imp: "imp";
4215
+ network: "network";
4216
+ secret: "secret";
4217
+ service: "service";
4218
+ session: "session";
4219
+ "ssh-key": "ssh-key";
4220
+ token: "token";
4221
+ }>;
4222
+ name: z.ZodString;
4223
+ }, z.core.$strip>;
4224
+ };
4225
+ FORBIDDEN: {
4226
+ readonly message: "Not allowed";
4227
+ };
4228
+ PRECONDITION_FAILED: {
4229
+ readonly message: "Not possible on this host";
4230
+ };
4231
+ RAM_BUDGET_EXCEEDED: {
4232
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
4233
+ readonly status: 503;
4234
+ readonly data: z.ZodObject<{
4235
+ budgetMib: z.ZodInt;
4236
+ usedMib: z.ZodInt;
4237
+ requestedMib: z.ZodInt;
4238
+ neededMib: z.ZodOptional<z.ZodInt>;
4239
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
4240
+ name: z.ZodString;
4241
+ ramMib: z.ZodInt;
4242
+ leased: z.ZodBoolean;
4243
+ busy: z.ZodBoolean;
4244
+ }, z.core.$strip>>>>;
4245
+ protectedHidden: z.ZodOptional<z.ZodInt>;
4246
+ }, z.core.$strip>;
4247
+ };
4248
+ SERVICE_UNAVAILABLE: {
4249
+ readonly message: "impd is stopping";
4250
+ };
4251
+ INVALID_STATE: {
4252
+ readonly message: "The imp is not in a state that allows this";
4253
+ readonly status: 409;
4254
+ readonly data: z.ZodObject<{
4255
+ state: z.ZodEnum<{
4256
+ creating: "creating";
4257
+ error: "error";
4258
+ running: "running";
4259
+ sleeping: "sleeping";
4260
+ stopped: "stopped";
4261
+ }>;
4262
+ allowed: z.ZodArray<z.ZodEnum<{
4263
+ creating: "creating";
4264
+ error: "error";
4265
+ running: "running";
4266
+ sleeping: "sleeping";
4267
+ stopped: "stopped";
4268
+ }>>;
4269
+ }, z.core.$strip>;
4270
+ };
4271
+ DISK_FULL: {
4272
+ readonly message: "Not enough free disk on the host";
4273
+ readonly status: 507;
4274
+ readonly data: z.ZodObject<{
4275
+ availableBytes: z.ZodInt;
4276
+ reserveBytes: z.ZodInt;
4277
+ requestedBytes: z.ZodInt;
4278
+ }, z.core.$strip>;
4279
+ };
4280
+ LEASED: {
4281
+ readonly message: "The imp is leased";
4282
+ readonly status: 409;
4283
+ readonly data: z.ZodObject<{
4284
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4285
+ name: z.ZodString;
4286
+ owner: z.ZodObject<{
4287
+ principal: z.ZodString;
4288
+ display: z.ZodString;
4289
+ label: z.ZodString;
4290
+ }, z.core.$strip>;
4291
+ until: z.ZodNullable<z.ZodDate>;
4292
+ }, z.core.$strip>>>;
4293
+ otherCount: z.ZodInt;
4294
+ }, z.core.$strip>;
4295
+ };
4296
+ LEASE_NOT_HELD: {
4297
+ readonly message: "The caller holds no such lease";
4298
+ readonly status: 409;
4299
+ };
4300
+ AGENT_OUTDATED: {
4301
+ readonly message: "The imp's agent is too old for this";
4302
+ readonly status: 409;
4303
+ };
4304
+ MOVING: {
4305
+ readonly message: "The imp is moving between hosts";
4306
+ readonly status: 409;
4307
+ readonly data: z.ZodObject<{
4308
+ retryAfterS: z.ZodInt;
4309
+ }, z.core.$strip>;
4310
+ };
4311
+ }>, Record<never, never>>;
4312
+ receive: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4313
+ name: z.ZodString;
4314
+ bytes: z.ZodInt;
4315
+ }, z.core.$strip>, z.ZodObject<{
4316
+ ticket: z.ZodString;
4317
+ expiresAt: z.ZodDate;
4318
+ peerUrl: z.ZodURL;
4319
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4320
+ NOT_FOUND: {
4321
+ readonly message: "Not found";
4322
+ readonly data: z.ZodObject<{
4323
+ kind: z.ZodEnum<{
4324
+ backup: "backup";
4325
+ checkpoint: "checkpoint";
4326
+ grant: "grant";
4327
+ image: "image";
4328
+ imp: "imp";
4329
+ network: "network";
4330
+ secret: "secret";
4331
+ service: "service";
4332
+ session: "session";
4333
+ "ssh-key": "ssh-key";
4334
+ token: "token";
4335
+ }>;
4336
+ name: z.ZodString;
4337
+ }, z.core.$strip>;
4338
+ };
4339
+ CONFLICT: {
4340
+ readonly message: "Already exists";
4341
+ readonly data: z.ZodObject<{
4342
+ kind: z.ZodEnum<{
4343
+ backup: "backup";
4344
+ checkpoint: "checkpoint";
4345
+ grant: "grant";
4346
+ image: "image";
4347
+ imp: "imp";
4348
+ network: "network";
4349
+ secret: "secret";
4350
+ service: "service";
4351
+ session: "session";
4352
+ "ssh-key": "ssh-key";
4353
+ token: "token";
4354
+ }>;
4355
+ name: z.ZodString;
4356
+ }, z.core.$strip>;
4357
+ };
4358
+ FORBIDDEN: {
4359
+ readonly message: "Not allowed";
4360
+ };
4361
+ PRECONDITION_FAILED: {
4362
+ readonly message: "Not possible on this host";
4363
+ };
4364
+ RAM_BUDGET_EXCEEDED: {
4365
+ readonly message: "Not enough RAM budget, even after sleeping idle imps";
4366
+ readonly status: 503;
4367
+ readonly data: z.ZodObject<{
4368
+ budgetMib: z.ZodInt;
4369
+ usedMib: z.ZodInt;
4370
+ requestedMib: z.ZodInt;
4371
+ neededMib: z.ZodOptional<z.ZodInt>;
4372
+ protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
4373
+ name: z.ZodString;
4374
+ ramMib: z.ZodInt;
4375
+ leased: z.ZodBoolean;
4376
+ busy: z.ZodBoolean;
4377
+ }, z.core.$strip>>>>;
4378
+ protectedHidden: z.ZodOptional<z.ZodInt>;
4379
+ }, z.core.$strip>;
4380
+ };
4381
+ SERVICE_UNAVAILABLE: {
4382
+ readonly message: "impd is stopping";
4383
+ };
4384
+ INVALID_STATE: {
4385
+ readonly message: "The imp is not in a state that allows this";
4386
+ readonly status: 409;
4387
+ readonly data: z.ZodObject<{
4388
+ state: z.ZodEnum<{
4389
+ creating: "creating";
4390
+ error: "error";
4391
+ running: "running";
4392
+ sleeping: "sleeping";
4393
+ stopped: "stopped";
4394
+ }>;
4395
+ allowed: z.ZodArray<z.ZodEnum<{
4396
+ creating: "creating";
4397
+ error: "error";
4398
+ running: "running";
4399
+ sleeping: "sleeping";
4400
+ stopped: "stopped";
4401
+ }>>;
4402
+ }, z.core.$strip>;
4403
+ };
4404
+ DISK_FULL: {
4405
+ readonly message: "Not enough free disk on the host";
4406
+ readonly status: 507;
4407
+ readonly data: z.ZodObject<{
4408
+ availableBytes: z.ZodInt;
4409
+ reserveBytes: z.ZodInt;
4410
+ requestedBytes: z.ZodInt;
4411
+ }, z.core.$strip>;
4412
+ };
4413
+ LEASED: {
4414
+ readonly message: "The imp is leased";
4415
+ readonly status: 409;
4416
+ readonly data: z.ZodObject<{
4417
+ leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4418
+ name: z.ZodString;
4419
+ owner: z.ZodObject<{
4420
+ principal: z.ZodString;
4421
+ display: z.ZodString;
4422
+ label: z.ZodString;
4423
+ }, z.core.$strip>;
4424
+ until: z.ZodNullable<z.ZodDate>;
4425
+ }, z.core.$strip>>>;
4426
+ otherCount: z.ZodInt;
4427
+ }, z.core.$strip>;
4428
+ };
4429
+ LEASE_NOT_HELD: {
4430
+ readonly message: "The caller holds no such lease";
4431
+ readonly status: 409;
4432
+ };
4433
+ AGENT_OUTDATED: {
4434
+ readonly message: "The imp's agent is too old for this";
4435
+ readonly status: 409;
4436
+ };
4437
+ MOVING: {
4438
+ readonly message: "The imp is moving between hosts";
4439
+ readonly status: 409;
4440
+ readonly data: z.ZodObject<{
4441
+ retryAfterS: z.ZodInt;
4442
+ }, z.core.$strip>;
4443
+ };
4444
+ }>, Record<never, never>>;
4445
+ send: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4446
+ name: z.ZodString;
4447
+ to: z.ZodURL;
4448
+ ticket: z.ZodString;
4449
+ }, z.core.$strip>, z.ZodObject<{
4450
+ state: z.ZodNullable<z.ZodEnum<{
4451
+ moved: "moved";
4452
+ receiving: "receiving";
4453
+ sending: "sending";
4454
+ }>>;
4455
+ peer: z.ZodNullable<z.ZodString>;
4456
+ sentBytes: z.ZodInt;
4457
+ totalBytes: z.ZodInt;
4458
+ isDone: z.ZodBoolean;
4459
+ error: z.ZodNullable<z.ZodString>;
3315
4460
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3316
4461
  NOT_FOUND: {
3317
4462
  readonly message: "Not found";
@@ -3430,21 +4575,27 @@ declare const impContract: {
3430
4575
  readonly message: "The imp's agent is too old for this";
3431
4576
  readonly status: 409;
3432
4577
  };
4578
+ MOVING: {
4579
+ readonly message: "The imp is moving between hosts";
4580
+ readonly status: 409;
4581
+ readonly data: z.ZodObject<{
4582
+ retryAfterS: z.ZodInt;
4583
+ }, z.core.$strip>;
4584
+ };
3433
4585
  }>, Record<never, never>>;
3434
- };
3435
- leases: {
3436
- acquire: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4586
+ status: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3437
4587
  name: z.ZodString;
3438
- label: z.ZodString;
3439
- ttlSeconds: z.ZodInt;
3440
4588
  }, z.core.$strip>, z.ZodObject<{
3441
- name: z.ZodString;
3442
- owner: z.ZodObject<{
3443
- principal: z.ZodString;
3444
- display: z.ZodString;
3445
- label: z.ZodString;
3446
- }, z.core.$strip>;
3447
- until: z.ZodNullable<z.ZodDate>;
4589
+ state: z.ZodNullable<z.ZodEnum<{
4590
+ moved: "moved";
4591
+ receiving: "receiving";
4592
+ sending: "sending";
4593
+ }>>;
4594
+ peer: z.ZodNullable<z.ZodString>;
4595
+ sentBytes: z.ZodInt;
4596
+ totalBytes: z.ZodInt;
4597
+ isDone: z.ZodBoolean;
4598
+ error: z.ZodNullable<z.ZodString>;
3448
4599
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3449
4600
  NOT_FOUND: {
3450
4601
  readonly message: "Not found";
@@ -3563,19 +4714,20 @@ declare const impContract: {
3563
4714
  readonly message: "The imp's agent is too old for this";
3564
4715
  readonly status: 409;
3565
4716
  };
4717
+ MOVING: {
4718
+ readonly message: "The imp is moving between hosts";
4719
+ readonly status: 409;
4720
+ readonly data: z.ZodObject<{
4721
+ retryAfterS: z.ZodInt;
4722
+ }, z.core.$strip>;
4723
+ };
3566
4724
  }>, Record<never, never>>;
3567
- renew: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4725
+ reissue: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3568
4726
  name: z.ZodString;
3569
- label: z.ZodString;
3570
- ttlSeconds: z.ZodInt;
3571
4727
  }, z.core.$strip>, z.ZodObject<{
3572
- name: z.ZodString;
3573
- owner: z.ZodObject<{
3574
- principal: z.ZodString;
3575
- display: z.ZodString;
3576
- label: z.ZodString;
3577
- }, z.core.$strip>;
3578
- until: z.ZodNullable<z.ZodDate>;
4728
+ ticket: z.ZodString;
4729
+ expiresAt: z.ZodDate;
4730
+ peerUrl: z.ZodURL;
3579
4731
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3580
4732
  NOT_FOUND: {
3581
4733
  readonly message: "Not found";
@@ -3694,12 +4846,28 @@ declare const impContract: {
3694
4846
  readonly message: "The imp's agent is too old for this";
3695
4847
  readonly status: 409;
3696
4848
  };
4849
+ MOVING: {
4850
+ readonly message: "The imp is moving between hosts";
4851
+ readonly status: 409;
4852
+ readonly data: z.ZodObject<{
4853
+ retryAfterS: z.ZodInt;
4854
+ }, z.core.$strip>;
4855
+ };
3697
4856
  }>, Record<never, never>>;
3698
- release: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4857
+ resume: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3699
4858
  name: z.ZodString;
3700
- label: z.ZodString;
4859
+ ticket: z.ZodOptional<z.ZodString>;
3701
4860
  }, z.core.$strip>, z.ZodObject<{
3702
- released: z.ZodBoolean;
4861
+ state: z.ZodNullable<z.ZodEnum<{
4862
+ moved: "moved";
4863
+ receiving: "receiving";
4864
+ sending: "sending";
4865
+ }>>;
4866
+ peer: z.ZodNullable<z.ZodString>;
4867
+ sentBytes: z.ZodInt;
4868
+ totalBytes: z.ZodInt;
4869
+ isDone: z.ZodBoolean;
4870
+ error: z.ZodNullable<z.ZodString>;
3703
4871
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3704
4872
  NOT_FOUND: {
3705
4873
  readonly message: "Not found";
@@ -3818,19 +4986,28 @@ declare const impContract: {
3818
4986
  readonly message: "The imp's agent is too old for this";
3819
4987
  readonly status: 409;
3820
4988
  };
4989
+ MOVING: {
4990
+ readonly message: "The imp is moving between hosts";
4991
+ readonly status: 409;
4992
+ readonly data: z.ZodObject<{
4993
+ retryAfterS: z.ZodInt;
4994
+ }, z.core.$strip>;
4995
+ };
3821
4996
  }>, Record<never, never>>;
3822
- list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3823
- name: z.ZodOptional<z.ZodString>;
3824
- label: z.ZodOptional<z.ZodString>;
3825
- }, z.core.$strip>, z.ZodArray<z.ZodObject<{
4997
+ abort: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
3826
4998
  name: z.ZodString;
3827
- owner: z.ZodObject<{
3828
- principal: z.ZodString;
3829
- display: z.ZodString;
3830
- label: z.ZodString;
3831
- }, z.core.$strip>;
3832
- until: z.ZodNullable<z.ZodDate>;
3833
- }, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4999
+ }, z.core.$strip>, z.ZodObject<{
5000
+ state: z.ZodNullable<z.ZodEnum<{
5001
+ moved: "moved";
5002
+ receiving: "receiving";
5003
+ sending: "sending";
5004
+ }>>;
5005
+ peer: z.ZodNullable<z.ZodString>;
5006
+ sentBytes: z.ZodInt;
5007
+ totalBytes: z.ZodInt;
5008
+ isDone: z.ZodBoolean;
5009
+ error: z.ZodNullable<z.ZodString>;
5010
+ }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
3834
5011
  NOT_FOUND: {
3835
5012
  readonly message: "Not found";
3836
5013
  readonly data: z.ZodObject<{
@@ -3948,6 +5125,13 @@ declare const impContract: {
3948
5125
  readonly message: "The imp's agent is too old for this";
3949
5126
  readonly status: 409;
3950
5127
  };
5128
+ MOVING: {
5129
+ readonly message: "The imp is moving between hosts";
5130
+ readonly status: 409;
5131
+ readonly data: z.ZodObject<{
5132
+ retryAfterS: z.ZodInt;
5133
+ }, z.core.$strip>;
5134
+ };
3951
5135
  }>, Record<never, never>>;
3952
5136
  };
3953
5137
  checkpoints: {
@@ -4078,6 +5262,13 @@ declare const impContract: {
4078
5262
  readonly message: "The imp's agent is too old for this";
4079
5263
  readonly status: 409;
4080
5264
  };
5265
+ MOVING: {
5266
+ readonly message: "The imp is moving between hosts";
5267
+ readonly status: 409;
5268
+ readonly data: z.ZodObject<{
5269
+ retryAfterS: z.ZodInt;
5270
+ }, z.core.$strip>;
5271
+ };
4081
5272
  }>, Record<never, never>>;
4082
5273
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4083
5274
  name: z.ZodString;
@@ -4205,6 +5396,13 @@ declare const impContract: {
4205
5396
  readonly message: "The imp's agent is too old for this";
4206
5397
  readonly status: 409;
4207
5398
  };
5399
+ MOVING: {
5400
+ readonly message: "The imp is moving between hosts";
5401
+ readonly status: 409;
5402
+ readonly data: z.ZodObject<{
5403
+ retryAfterS: z.ZodInt;
5404
+ }, z.core.$strip>;
5405
+ };
4208
5406
  }>, Record<never, never>>;
4209
5407
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4210
5408
  name: z.ZodString;
@@ -4287,6 +5485,11 @@ declare const impContract: {
4287
5485
  netTxBytes: z.ZodInt;
4288
5486
  }, z.core.$strip>>;
4289
5487
  }, z.core.$strip>>;
5488
+ move: z.ZodOptional<z.ZodEnum<{
5489
+ moved: "moved";
5490
+ receiving: "receiving";
5491
+ sending: "sending";
5492
+ }>>;
4290
5493
  }, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
4291
5494
  NOT_FOUND: {
4292
5495
  readonly message: "Not found";
@@ -4405,6 +5608,13 @@ declare const impContract: {
4405
5608
  readonly message: "The imp's agent is too old for this";
4406
5609
  readonly status: 409;
4407
5610
  };
5611
+ MOVING: {
5612
+ readonly message: "The imp is moving between hosts";
5613
+ readonly status: 409;
5614
+ readonly data: z.ZodObject<{
5615
+ retryAfterS: z.ZodInt;
5616
+ }, z.core.$strip>;
5617
+ };
4408
5618
  }>, Record<never, never>>;
4409
5619
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4410
5620
  name: z.ZodString;
@@ -4527,6 +5737,13 @@ declare const impContract: {
4527
5737
  readonly message: "The imp's agent is too old for this";
4528
5738
  readonly status: 409;
4529
5739
  };
5740
+ MOVING: {
5741
+ readonly message: "The imp is moving between hosts";
5742
+ readonly status: 409;
5743
+ readonly data: z.ZodObject<{
5744
+ retryAfterS: z.ZodInt;
5745
+ }, z.core.$strip>;
5746
+ };
4530
5747
  }>, Record<never, never>>;
4531
5748
  };
4532
5749
  backups: {
@@ -4657,6 +5874,13 @@ declare const impContract: {
4657
5874
  readonly message: "The imp's agent is too old for this";
4658
5875
  readonly status: 409;
4659
5876
  };
5877
+ MOVING: {
5878
+ readonly message: "The imp is moving between hosts";
5879
+ readonly status: 409;
5880
+ readonly data: z.ZodObject<{
5881
+ retryAfterS: z.ZodInt;
5882
+ }, z.core.$strip>;
5883
+ };
4660
5884
  }>, Record<never, never>>;
4661
5885
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
4662
5886
  points: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
@@ -4788,6 +6012,13 @@ declare const impContract: {
4788
6012
  readonly message: "The imp's agent is too old for this";
4789
6013
  readonly status: 409;
4790
6014
  };
6015
+ MOVING: {
6016
+ readonly message: "The imp is moving between hosts";
6017
+ readonly status: 409;
6018
+ readonly data: z.ZodObject<{
6019
+ retryAfterS: z.ZodInt;
6020
+ }, z.core.$strip>;
6021
+ };
4791
6022
  }>, Record<never, never>>;
4792
6023
  restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
4793
6024
  name: z.ZodOptional<z.ZodString>;
@@ -4874,6 +6105,11 @@ declare const impContract: {
4874
6105
  netTxBytes: z.ZodInt;
4875
6106
  }, z.core.$strip>>;
4876
6107
  }, z.core.$strip>>;
6108
+ move: z.ZodOptional<z.ZodEnum<{
6109
+ moved: "moved";
6110
+ receiving: "receiving";
6111
+ sending: "sending";
6112
+ }>>;
4877
6113
  }, z.core.$strip>>>;
4878
6114
  skippedGrants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
4879
6115
  imp: z.ZodString;
@@ -4998,6 +6234,13 @@ declare const impContract: {
4998
6234
  readonly message: "The imp's agent is too old for this";
4999
6235
  readonly status: 409;
5000
6236
  };
6237
+ MOVING: {
6238
+ readonly message: "The imp is moving between hosts";
6239
+ readonly status: 409;
6240
+ readonly data: z.ZodObject<{
6241
+ retryAfterS: z.ZodInt;
6242
+ }, z.core.$strip>;
6243
+ };
5001
6244
  }>, Record<never, never>>;
5002
6245
  check: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5003
6246
  subset: z.ZodOptional<z.ZodString>;
@@ -5119,6 +6362,13 @@ declare const impContract: {
5119
6362
  readonly message: "The imp's agent is too old for this";
5120
6363
  readonly status: 409;
5121
6364
  };
6365
+ MOVING: {
6366
+ readonly message: "The imp is moving between hosts";
6367
+ readonly status: 409;
6368
+ readonly data: z.ZodObject<{
6369
+ retryAfterS: z.ZodInt;
6370
+ }, z.core.$strip>;
6371
+ };
5122
6372
  }>, Record<never, never>>;
5123
6373
  };
5124
6374
  images: {
@@ -5251,6 +6501,13 @@ declare const impContract: {
5251
6501
  readonly message: "The imp's agent is too old for this";
5252
6502
  readonly status: 409;
5253
6503
  };
6504
+ MOVING: {
6505
+ readonly message: "The imp is moving between hosts";
6506
+ readonly status: 409;
6507
+ readonly data: z.ZodObject<{
6508
+ retryAfterS: z.ZodInt;
6509
+ }, z.core.$strip>;
6510
+ };
5254
6511
  }>, Record<never, never>>;
5255
6512
  add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
5256
6513
  ref: z.ZodString;
@@ -5387,6 +6644,13 @@ declare const impContract: {
5387
6644
  readonly message: "The imp's agent is too old for this";
5388
6645
  readonly status: 409;
5389
6646
  };
6647
+ MOVING: {
6648
+ readonly message: "The imp is moving between hosts";
6649
+ readonly status: 409;
6650
+ readonly data: z.ZodObject<{
6651
+ retryAfterS: z.ZodInt;
6652
+ }, z.core.$strip>;
6653
+ };
5390
6654
  }>, Record<never, never>>;
5391
6655
  build: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5392
6656
  contextDir: z.ZodString;
@@ -5521,6 +6785,13 @@ declare const impContract: {
5521
6785
  readonly message: "The imp's agent is too old for this";
5522
6786
  readonly status: 409;
5523
6787
  };
6788
+ MOVING: {
6789
+ readonly message: "The imp is moving between hosts";
6790
+ readonly status: 409;
6791
+ readonly data: z.ZodObject<{
6792
+ retryAfterS: z.ZodInt;
6793
+ }, z.core.$strip>;
6794
+ };
5524
6795
  }>, Record<never, never>>;
5525
6796
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5526
6797
  name: z.ZodString;
@@ -5642,6 +6913,13 @@ declare const impContract: {
5642
6913
  readonly message: "The imp's agent is too old for this";
5643
6914
  readonly status: 409;
5644
6915
  };
6916
+ MOVING: {
6917
+ readonly message: "The imp is moving between hosts";
6918
+ readonly status: 409;
6919
+ readonly data: z.ZodObject<{
6920
+ retryAfterS: z.ZodInt;
6921
+ }, z.core.$strip>;
6922
+ };
5645
6923
  }>, Record<never, never>>;
5646
6924
  };
5647
6925
  exec: {
@@ -5768,6 +7046,13 @@ declare const impContract: {
5768
7046
  readonly message: "The imp's agent is too old for this";
5769
7047
  readonly status: 409;
5770
7048
  };
7049
+ MOVING: {
7050
+ readonly message: "The imp is moving between hosts";
7051
+ readonly status: 409;
7052
+ readonly data: z.ZodObject<{
7053
+ retryAfterS: z.ZodInt;
7054
+ }, z.core.$strip>;
7055
+ };
5771
7056
  }>, Record<never, never>>;
5772
7057
  };
5773
7058
  sessions: {
@@ -5907,6 +7192,13 @@ declare const impContract: {
5907
7192
  readonly message: "The imp's agent is too old for this";
5908
7193
  readonly status: 409;
5909
7194
  };
7195
+ MOVING: {
7196
+ readonly message: "The imp is moving between hosts";
7197
+ readonly status: 409;
7198
+ readonly data: z.ZodObject<{
7199
+ retryAfterS: z.ZodInt;
7200
+ }, z.core.$strip>;
7201
+ };
5910
7202
  }>, Record<never, never>>;
5911
7203
  kill: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
5912
7204
  name: z.ZodString;
@@ -6029,6 +7321,13 @@ declare const impContract: {
6029
7321
  readonly message: "The imp's agent is too old for this";
6030
7322
  readonly status: 409;
6031
7323
  };
7324
+ MOVING: {
7325
+ readonly message: "The imp is moving between hosts";
7326
+ readonly status: 409;
7327
+ readonly data: z.ZodObject<{
7328
+ retryAfterS: z.ZodInt;
7329
+ }, z.core.$strip>;
7330
+ };
6032
7331
  }>, Record<never, never>>;
6033
7332
  };
6034
7333
  services: {
@@ -6184,6 +7483,13 @@ declare const impContract: {
6184
7483
  readonly message: "The imp's agent is too old for this";
6185
7484
  readonly status: 409;
6186
7485
  };
7486
+ MOVING: {
7487
+ readonly message: "The imp is moving between hosts";
7488
+ readonly status: 409;
7489
+ readonly data: z.ZodObject<{
7490
+ retryAfterS: z.ZodInt;
7491
+ }, z.core.$strip>;
7492
+ };
6187
7493
  }>, Record<never, never>>;
6188
7494
  add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6189
7495
  name: z.ZodString;
@@ -6318,6 +7624,13 @@ declare const impContract: {
6318
7624
  readonly message: "The imp's agent is too old for this";
6319
7625
  readonly status: 409;
6320
7626
  };
7627
+ MOVING: {
7628
+ readonly message: "The imp is moving between hosts";
7629
+ readonly status: 409;
7630
+ readonly data: z.ZodObject<{
7631
+ retryAfterS: z.ZodInt;
7632
+ }, z.core.$strip>;
7633
+ };
6321
7634
  }>, Record<never, never>>;
6322
7635
  remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6323
7636
  name: z.ZodString;
@@ -6440,6 +7753,13 @@ declare const impContract: {
6440
7753
  readonly message: "The imp's agent is too old for this";
6441
7754
  readonly status: 409;
6442
7755
  };
7756
+ MOVING: {
7757
+ readonly message: "The imp is moving between hosts";
7758
+ readonly status: 409;
7759
+ readonly data: z.ZodObject<{
7760
+ retryAfterS: z.ZodInt;
7761
+ }, z.core.$strip>;
7762
+ };
6443
7763
  }>, Record<never, never>>;
6444
7764
  restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6445
7765
  name: z.ZodString;
@@ -6562,6 +7882,13 @@ declare const impContract: {
6562
7882
  readonly message: "The imp's agent is too old for this";
6563
7883
  readonly status: 409;
6564
7884
  };
7885
+ MOVING: {
7886
+ readonly message: "The imp is moving between hosts";
7887
+ readonly status: 409;
7888
+ readonly data: z.ZodObject<{
7889
+ retryAfterS: z.ZodInt;
7890
+ }, z.core.$strip>;
7891
+ };
6565
7892
  }>, Record<never, never>>;
6566
7893
  logs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
6567
7894
  name: z.ZodString;
@@ -6708,6 +8035,13 @@ declare const impContract: {
6708
8035
  readonly message: "The imp's agent is too old for this";
6709
8036
  readonly status: 409;
6710
8037
  };
8038
+ MOVING: {
8039
+ readonly message: "The imp is moving between hosts";
8040
+ readonly status: 409;
8041
+ readonly data: z.ZodObject<{
8042
+ retryAfterS: z.ZodInt;
8043
+ }, z.core.$strip>;
8044
+ };
6711
8045
  }>, Record<never, never>>;
6712
8046
  };
6713
8047
  secrets: {
@@ -6869,6 +8203,13 @@ declare const impContract: {
6869
8203
  readonly message: "The imp's agent is too old for this";
6870
8204
  readonly status: 409;
6871
8205
  };
8206
+ MOVING: {
8207
+ readonly message: "The imp is moving between hosts";
8208
+ readonly status: 409;
8209
+ readonly data: z.ZodObject<{
8210
+ retryAfterS: z.ZodInt;
8211
+ }, z.core.$strip>;
8212
+ };
6872
8213
  }>, Record<never, never>>;
6873
8214
  list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
6874
8215
  name: z.ZodString;
@@ -7008,6 +8349,13 @@ declare const impContract: {
7008
8349
  readonly message: "The imp's agent is too old for this";
7009
8350
  readonly status: 409;
7010
8351
  };
8352
+ MOVING: {
8353
+ readonly message: "The imp is moving between hosts";
8354
+ readonly status: 409;
8355
+ readonly data: z.ZodObject<{
8356
+ retryAfterS: z.ZodInt;
8357
+ }, z.core.$strip>;
8358
+ };
7011
8359
  }>, Record<never, never>>;
7012
8360
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7013
8361
  name: z.ZodString;
@@ -7129,6 +8477,13 @@ declare const impContract: {
7129
8477
  readonly message: "The imp's agent is too old for this";
7130
8478
  readonly status: 409;
7131
8479
  };
8480
+ MOVING: {
8481
+ readonly message: "The imp is moving between hosts";
8482
+ readonly status: 409;
8483
+ readonly data: z.ZodObject<{
8484
+ retryAfterS: z.ZodInt;
8485
+ }, z.core.$strip>;
8486
+ };
7132
8487
  }>, Record<never, never>>;
7133
8488
  };
7134
8489
  networks: {
@@ -7254,6 +8609,13 @@ declare const impContract: {
7254
8609
  readonly message: "The imp's agent is too old for this";
7255
8610
  readonly status: 409;
7256
8611
  };
8612
+ MOVING: {
8613
+ readonly message: "The imp is moving between hosts";
8614
+ readonly status: 409;
8615
+ readonly data: z.ZodObject<{
8616
+ retryAfterS: z.ZodInt;
8617
+ }, z.core.$strip>;
8618
+ };
7257
8619
  }>, Record<never, never>>;
7258
8620
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7259
8621
  name: z.ZodString;
@@ -7379,6 +8741,13 @@ declare const impContract: {
7379
8741
  readonly message: "The imp's agent is too old for this";
7380
8742
  readonly status: 409;
7381
8743
  };
8744
+ MOVING: {
8745
+ readonly message: "The imp is moving between hosts";
8746
+ readonly status: 409;
8747
+ readonly data: z.ZodObject<{
8748
+ retryAfterS: z.ZodInt;
8749
+ }, z.core.$strip>;
8750
+ };
7382
8751
  }>, Record<never, never>>;
7383
8752
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7384
8753
  name: z.ZodString;
@@ -7500,6 +8869,13 @@ declare const impContract: {
7500
8869
  readonly message: "The imp's agent is too old for this";
7501
8870
  readonly status: 409;
7502
8871
  };
8872
+ MOVING: {
8873
+ readonly message: "The imp is moving between hosts";
8874
+ readonly status: 409;
8875
+ readonly data: z.ZodObject<{
8876
+ retryAfterS: z.ZodInt;
8877
+ }, z.core.$strip>;
8878
+ };
7503
8879
  }>, Record<never, never>>;
7504
8880
  join: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7505
8881
  network: z.ZodString;
@@ -7627,6 +9003,13 @@ declare const impContract: {
7627
9003
  readonly message: "The imp's agent is too old for this";
7628
9004
  readonly status: 409;
7629
9005
  };
9006
+ MOVING: {
9007
+ readonly message: "The imp is moving between hosts";
9008
+ readonly status: 409;
9009
+ readonly data: z.ZodObject<{
9010
+ retryAfterS: z.ZodInt;
9011
+ }, z.core.$strip>;
9012
+ };
7630
9013
  }>, Record<never, never>>;
7631
9014
  warnings: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7632
9015
  name: z.ZodString;
@@ -7748,6 +9131,13 @@ declare const impContract: {
7748
9131
  readonly message: "The imp's agent is too old for this";
7749
9132
  readonly status: 409;
7750
9133
  };
9134
+ MOVING: {
9135
+ readonly message: "The imp is moving between hosts";
9136
+ readonly status: 409;
9137
+ readonly data: z.ZodObject<{
9138
+ retryAfterS: z.ZodInt;
9139
+ }, z.core.$strip>;
9140
+ };
7751
9141
  }>, Record<never, never>>;
7752
9142
  leave: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
7753
9143
  network: z.ZodString;
@@ -7874,6 +9264,13 @@ declare const impContract: {
7874
9264
  readonly message: "The imp's agent is too old for this";
7875
9265
  readonly status: 409;
7876
9266
  };
9267
+ MOVING: {
9268
+ readonly message: "The imp is moving between hosts";
9269
+ readonly status: 409;
9270
+ readonly data: z.ZodObject<{
9271
+ retryAfterS: z.ZodInt;
9272
+ }, z.core.$strip>;
9273
+ };
7877
9274
  }>, Record<never, never>>;
7878
9275
  };
7879
9276
  grants: {
@@ -7998,6 +9395,13 @@ declare const impContract: {
7998
9395
  readonly message: "The imp's agent is too old for this";
7999
9396
  readonly status: 409;
8000
9397
  };
9398
+ MOVING: {
9399
+ readonly message: "The imp is moving between hosts";
9400
+ readonly status: 409;
9401
+ readonly data: z.ZodObject<{
9402
+ retryAfterS: z.ZodInt;
9403
+ }, z.core.$strip>;
9404
+ };
8001
9405
  }>, Record<never, never>>;
8002
9406
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
8003
9407
  name: z.ZodString;
@@ -8120,6 +9524,13 @@ declare const impContract: {
8120
9524
  readonly message: "The imp's agent is too old for this";
8121
9525
  readonly status: 409;
8122
9526
  };
9527
+ MOVING: {
9528
+ readonly message: "The imp is moving between hosts";
9529
+ readonly status: 409;
9530
+ readonly data: z.ZodObject<{
9531
+ retryAfterS: z.ZodInt;
9532
+ }, z.core.$strip>;
9533
+ };
8123
9534
  }>, Record<never, never>>;
8124
9535
  list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
8125
9536
  name: z.ZodString;
@@ -8241,6 +9652,13 @@ declare const impContract: {
8241
9652
  readonly message: "The imp's agent is too old for this";
8242
9653
  readonly status: 409;
8243
9654
  };
9655
+ MOVING: {
9656
+ readonly message: "The imp is moving between hosts";
9657
+ readonly status: 409;
9658
+ readonly data: z.ZodObject<{
9659
+ retryAfterS: z.ZodInt;
9660
+ }, z.core.$strip>;
9661
+ };
8244
9662
  }>, Record<never, never>>;
8245
9663
  };
8246
9664
  audit: {
@@ -8376,6 +9794,13 @@ declare const impContract: {
8376
9794
  readonly message: "The imp's agent is too old for this";
8377
9795
  readonly status: 409;
8378
9796
  };
9797
+ MOVING: {
9798
+ readonly message: "The imp is moving between hosts";
9799
+ readonly status: 409;
9800
+ readonly data: z.ZodObject<{
9801
+ retryAfterS: z.ZodInt;
9802
+ }, z.core.$strip>;
9803
+ };
8379
9804
  }>, Record<never, never>>;
8380
9805
  calls: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
8381
9806
  name: z.ZodOptional<z.ZodString>;
@@ -8511,6 +9936,13 @@ declare const impContract: {
8511
9936
  readonly message: "The imp's agent is too old for this";
8512
9937
  readonly status: 409;
8513
9938
  };
9939
+ MOVING: {
9940
+ readonly message: "The imp is moving between hosts";
9941
+ readonly status: 409;
9942
+ readonly data: z.ZodObject<{
9943
+ retryAfterS: z.ZodInt;
9944
+ }, z.core.$strip>;
9945
+ };
8514
9946
  }>, Record<never, never>>;
8515
9947
  };
8516
9948
  events: {
@@ -8581,6 +10013,7 @@ declare const impContract: {
8581
10013
  netTxBytes: number;
8582
10014
  } | undefined;
8583
10015
  } | undefined;
10016
+ move?: "moved" | "receiving" | "sending" | undefined;
8584
10017
  };
8585
10018
  } | {
8586
10019
  v: 1;
@@ -8649,6 +10082,7 @@ declare const impContract: {
8649
10082
  netTxBytes: number;
8650
10083
  } | undefined;
8651
10084
  } | undefined;
10085
+ move?: "moved" | "receiving" | "sending" | undefined;
8652
10086
  };
8653
10087
  detail?: Readonly<{
8654
10088
  durationMs?: number | undefined;
@@ -8723,6 +10157,7 @@ declare const impContract: {
8723
10157
  netTxBytes: number;
8724
10158
  } | undefined;
8725
10159
  } | undefined;
10160
+ move?: "moved" | "receiving" | "sending" | undefined;
8726
10161
  };
8727
10162
  } | {
8728
10163
  v: 1;
@@ -8827,6 +10262,7 @@ declare const impContract: {
8827
10262
  netTxBytes: number;
8828
10263
  } | undefined;
8829
10264
  } | undefined;
10265
+ move?: "moved" | "receiving" | "sending" | undefined;
8830
10266
  };
8831
10267
  } | {
8832
10268
  v: 1;
@@ -8895,6 +10331,7 @@ declare const impContract: {
8895
10331
  netTxBytes: number;
8896
10332
  } | undefined;
8897
10333
  } | undefined;
10334
+ move?: "moved" | "receiving" | "sending" | undefined;
8898
10335
  };
8899
10336
  detail?: Readonly<{
8900
10337
  durationMs?: number | undefined;
@@ -8969,6 +10406,7 @@ declare const impContract: {
8969
10406
  netTxBytes: number;
8970
10407
  } | undefined;
8971
10408
  } | undefined;
10409
+ move?: "moved" | "receiving" | "sending" | undefined;
8972
10410
  };
8973
10411
  } | {
8974
10412
  v: 1;
@@ -9124,6 +10562,13 @@ declare const impContract: {
9124
10562
  readonly message: "The imp's agent is too old for this";
9125
10563
  readonly status: 409;
9126
10564
  };
10565
+ MOVING: {
10566
+ readonly message: "The imp is moving between hosts";
10567
+ readonly status: 409;
10568
+ readonly data: z.ZodObject<{
10569
+ retryAfterS: z.ZodInt;
10570
+ }, z.core.$strip>;
10571
+ };
9127
10572
  }>, Record<never, never>>;
9128
10573
  };
9129
10574
  system: {
@@ -9313,6 +10758,13 @@ declare const impContract: {
9313
10758
  readonly message: "The imp's agent is too old for this";
9314
10759
  readonly status: 409;
9315
10760
  };
10761
+ MOVING: {
10762
+ readonly message: "The imp is moving between hosts";
10763
+ readonly status: 409;
10764
+ readonly data: z.ZodObject<{
10765
+ retryAfterS: z.ZodInt;
10766
+ }, z.core.$strip>;
10767
+ };
9316
10768
  }>, Record<never, never>>;
9317
10769
  gc: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9318
10770
  dryRun: z.ZodOptional<z.ZodBoolean>;
@@ -9460,6 +10912,13 @@ declare const impContract: {
9460
10912
  readonly message: "The imp's agent is too old for this";
9461
10913
  readonly status: 409;
9462
10914
  };
10915
+ MOVING: {
10916
+ readonly message: "The imp is moving between hosts";
10917
+ readonly status: 409;
10918
+ readonly data: z.ZodObject<{
10919
+ retryAfterS: z.ZodInt;
10920
+ }, z.core.$strip>;
10921
+ };
9463
10922
  }>, Record<never, never>>;
9464
10923
  };
9465
10924
  tokens: {
@@ -9595,6 +11054,13 @@ declare const impContract: {
9595
11054
  readonly message: "The imp's agent is too old for this";
9596
11055
  readonly status: 409;
9597
11056
  };
11057
+ MOVING: {
11058
+ readonly message: "The imp is moving between hosts";
11059
+ readonly status: 409;
11060
+ readonly data: z.ZodObject<{
11061
+ retryAfterS: z.ZodInt;
11062
+ }, z.core.$strip>;
11063
+ };
9598
11064
  }>, Record<never, never>>;
9599
11065
  create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9600
11066
  name: z.ZodString;
@@ -9740,6 +11206,13 @@ declare const impContract: {
9740
11206
  readonly message: "The imp's agent is too old for this";
9741
11207
  readonly status: 409;
9742
11208
  };
11209
+ MOVING: {
11210
+ readonly message: "The imp is moving between hosts";
11211
+ readonly status: 409;
11212
+ readonly data: z.ZodObject<{
11213
+ retryAfterS: z.ZodInt;
11214
+ }, z.core.$strip>;
11215
+ };
9743
11216
  }>, Record<never, never>>;
9744
11217
  delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9745
11218
  name: z.ZodString;
@@ -9861,6 +11334,13 @@ declare const impContract: {
9861
11334
  readonly message: "The imp's agent is too old for this";
9862
11335
  readonly status: 409;
9863
11336
  };
11337
+ MOVING: {
11338
+ readonly message: "The imp is moving between hosts";
11339
+ readonly status: 409;
11340
+ readonly data: z.ZodObject<{
11341
+ retryAfterS: z.ZodInt;
11342
+ }, z.core.$strip>;
11343
+ };
9864
11344
  }>, Record<never, never>>;
9865
11345
  addKey: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9866
11346
  name: z.ZodString;
@@ -9987,6 +11467,13 @@ declare const impContract: {
9987
11467
  readonly message: "The imp's agent is too old for this";
9988
11468
  readonly status: 409;
9989
11469
  };
11470
+ MOVING: {
11471
+ readonly message: "The imp is moving between hosts";
11472
+ readonly status: 409;
11473
+ readonly data: z.ZodObject<{
11474
+ retryAfterS: z.ZodInt;
11475
+ }, z.core.$strip>;
11476
+ };
9990
11477
  }>, Record<never, never>>;
9991
11478
  removeKey: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
9992
11479
  name: z.ZodString;
@@ -10109,6 +11596,13 @@ declare const impContract: {
10109
11596
  readonly message: "The imp's agent is too old for this";
10110
11597
  readonly status: 409;
10111
11598
  };
11599
+ MOVING: {
11600
+ readonly message: "The imp is moving between hosts";
11601
+ readonly status: 409;
11602
+ readonly data: z.ZodObject<{
11603
+ retryAfterS: z.ZodInt;
11604
+ }, z.core.$strip>;
11605
+ };
10112
11606
  }>, Record<never, never>>;
10113
11607
  whoami: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
10114
11608
  kind: z.ZodEnum<{
@@ -10242,6 +11736,13 @@ declare const impContract: {
10242
11736
  readonly message: "The imp's agent is too old for this";
10243
11737
  readonly status: 409;
10244
11738
  };
11739
+ MOVING: {
11740
+ readonly message: "The imp is moving between hosts";
11741
+ readonly status: 409;
11742
+ readonly data: z.ZodObject<{
11743
+ retryAfterS: z.ZodInt;
11744
+ }, z.core.$strip>;
11745
+ };
10245
11746
  }>, Record<never, never>>;
10246
11747
  };
10247
11748
  };
@@ -10334,6 +11835,11 @@ declare const ImpSchema: z.ZodObject<{
10334
11835
  netTxBytes: z.ZodInt;
10335
11836
  }, z.core.$strip>>;
10336
11837
  }, z.core.$strip>>;
11838
+ move: z.ZodOptional<z.ZodEnum<{
11839
+ moved: "moved";
11840
+ receiving: "receiving";
11841
+ sending: "sending";
11842
+ }>>;
10337
11843
  }, z.core.$strip>;
10338
11844
  type Imp = z.infer<typeof ImpSchema>;
10339
11845
  //#endregion