@zgeoff/imp-client 0.9.0 → 0.10.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 +1185 -53
- package/dist/index.js +2 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -82,6 +82,22 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
82
82
|
impd: "impd";
|
|
83
83
|
kernel: "kernel";
|
|
84
84
|
}>>>>;
|
|
85
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
86
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
87
|
+
weight: z.ZodInt;
|
|
88
|
+
}, z.core.$strip>>;
|
|
89
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
90
|
+
wakeCount: z.ZodInt;
|
|
91
|
+
awakeMs: z.ZodInt;
|
|
92
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
93
|
+
measuredAt: z.ZodDate;
|
|
94
|
+
since: z.ZodDate;
|
|
95
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
96
|
+
cpuThrottledMs: z.ZodInt;
|
|
97
|
+
netRxBytes: z.ZodInt;
|
|
98
|
+
netTxBytes: z.ZodInt;
|
|
99
|
+
}, z.core.$strip>>;
|
|
100
|
+
}, z.core.$strip>>;
|
|
85
101
|
}, z.core.$strip>;
|
|
86
102
|
}, z.core.$strip>, z.ZodObject<{
|
|
87
103
|
v: z.ZodLiteral<1>;
|
|
@@ -97,6 +113,7 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
97
113
|
restored: "restored";
|
|
98
114
|
slept: "slept";
|
|
99
115
|
stopped: "stopped";
|
|
116
|
+
updated: "updated";
|
|
100
117
|
woke: "woke";
|
|
101
118
|
}>;
|
|
102
119
|
imp: z.ZodObject<{
|
|
@@ -140,6 +157,22 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
140
157
|
impd: "impd";
|
|
141
158
|
kernel: "kernel";
|
|
142
159
|
}>>>>;
|
|
160
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
161
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
162
|
+
weight: z.ZodInt;
|
|
163
|
+
}, z.core.$strip>>;
|
|
164
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
165
|
+
wakeCount: z.ZodInt;
|
|
166
|
+
awakeMs: z.ZodInt;
|
|
167
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
168
|
+
measuredAt: z.ZodDate;
|
|
169
|
+
since: z.ZodDate;
|
|
170
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
171
|
+
cpuThrottledMs: z.ZodInt;
|
|
172
|
+
netRxBytes: z.ZodInt;
|
|
173
|
+
netTxBytes: z.ZodInt;
|
|
174
|
+
}, z.core.$strip>>;
|
|
175
|
+
}, z.core.$strip>>;
|
|
143
176
|
}, z.core.$strip>;
|
|
144
177
|
detail: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
145
178
|
durationMs: z.ZodOptional<z.ZodInt>;
|
|
@@ -192,6 +225,22 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
192
225
|
impd: "impd";
|
|
193
226
|
kernel: "kernel";
|
|
194
227
|
}>>>>;
|
|
228
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
229
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
230
|
+
weight: z.ZodInt;
|
|
231
|
+
}, z.core.$strip>>;
|
|
232
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
wakeCount: z.ZodInt;
|
|
234
|
+
awakeMs: z.ZodInt;
|
|
235
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
236
|
+
measuredAt: z.ZodDate;
|
|
237
|
+
since: z.ZodDate;
|
|
238
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
239
|
+
cpuThrottledMs: z.ZodInt;
|
|
240
|
+
netRxBytes: z.ZodInt;
|
|
241
|
+
netTxBytes: z.ZodInt;
|
|
242
|
+
}, z.core.$strip>>;
|
|
243
|
+
}, z.core.$strip>>;
|
|
195
244
|
}, z.core.$strip>;
|
|
196
245
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
246
|
v: z.ZodLiteral<1>;
|
|
@@ -263,6 +312,8 @@ declare const impContract: {
|
|
|
263
312
|
}>;
|
|
264
313
|
allow: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
265
314
|
}, z.core.$strip>>;
|
|
315
|
+
cpuLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
316
|
+
cpuWeight: z.ZodOptional<z.ZodInt>;
|
|
266
317
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
318
|
id: z.ZodString;
|
|
268
319
|
name: z.ZodString;
|
|
@@ -304,6 +355,22 @@ declare const impContract: {
|
|
|
304
355
|
impd: "impd";
|
|
305
356
|
kernel: "kernel";
|
|
306
357
|
}>>>>;
|
|
358
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
359
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
360
|
+
weight: z.ZodInt;
|
|
361
|
+
}, z.core.$strip>>;
|
|
362
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
363
|
+
wakeCount: z.ZodInt;
|
|
364
|
+
awakeMs: z.ZodInt;
|
|
365
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
366
|
+
measuredAt: z.ZodDate;
|
|
367
|
+
since: z.ZodDate;
|
|
368
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
369
|
+
cpuThrottledMs: z.ZodInt;
|
|
370
|
+
netRxBytes: z.ZodInt;
|
|
371
|
+
netTxBytes: z.ZodInt;
|
|
372
|
+
}, z.core.$strip>>;
|
|
373
|
+
}, z.core.$strip>>;
|
|
307
374
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
308
375
|
NOT_FOUND: {
|
|
309
376
|
readonly message: "Not found";
|
|
@@ -315,6 +382,7 @@ declare const impContract: {
|
|
|
315
382
|
image: "image";
|
|
316
383
|
imp: "imp";
|
|
317
384
|
secret: "secret";
|
|
385
|
+
service: "service";
|
|
318
386
|
session: "session";
|
|
319
387
|
"ssh-key": "ssh-key";
|
|
320
388
|
token: "token";
|
|
@@ -332,6 +400,7 @@ declare const impContract: {
|
|
|
332
400
|
image: "image";
|
|
333
401
|
imp: "imp";
|
|
334
402
|
secret: "secret";
|
|
403
|
+
service: "service";
|
|
335
404
|
session: "session";
|
|
336
405
|
"ssh-key": "ssh-key";
|
|
337
406
|
token: "token";
|
|
@@ -432,6 +501,22 @@ declare const impContract: {
|
|
|
432
501
|
impd: "impd";
|
|
433
502
|
kernel: "kernel";
|
|
434
503
|
}>>>>;
|
|
504
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
505
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
506
|
+
weight: z.ZodInt;
|
|
507
|
+
}, z.core.$strip>>;
|
|
508
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
509
|
+
wakeCount: z.ZodInt;
|
|
510
|
+
awakeMs: z.ZodInt;
|
|
511
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
512
|
+
measuredAt: z.ZodDate;
|
|
513
|
+
since: z.ZodDate;
|
|
514
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
515
|
+
cpuThrottledMs: z.ZodInt;
|
|
516
|
+
netRxBytes: z.ZodInt;
|
|
517
|
+
netTxBytes: z.ZodInt;
|
|
518
|
+
}, z.core.$strip>>;
|
|
519
|
+
}, z.core.$strip>>;
|
|
435
520
|
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
436
521
|
NOT_FOUND: {
|
|
437
522
|
readonly message: "Not found";
|
|
@@ -443,6 +528,7 @@ declare const impContract: {
|
|
|
443
528
|
image: "image";
|
|
444
529
|
imp: "imp";
|
|
445
530
|
secret: "secret";
|
|
531
|
+
service: "service";
|
|
446
532
|
session: "session";
|
|
447
533
|
"ssh-key": "ssh-key";
|
|
448
534
|
token: "token";
|
|
@@ -460,6 +546,7 @@ declare const impContract: {
|
|
|
460
546
|
image: "image";
|
|
461
547
|
imp: "imp";
|
|
462
548
|
secret: "secret";
|
|
549
|
+
service: "service";
|
|
463
550
|
session: "session";
|
|
464
551
|
"ssh-key": "ssh-key";
|
|
465
552
|
token: "token";
|
|
@@ -562,6 +649,22 @@ declare const impContract: {
|
|
|
562
649
|
impd: "impd";
|
|
563
650
|
kernel: "kernel";
|
|
564
651
|
}>>>>;
|
|
652
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
653
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
654
|
+
weight: z.ZodInt;
|
|
655
|
+
}, z.core.$strip>>;
|
|
656
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
657
|
+
wakeCount: z.ZodInt;
|
|
658
|
+
awakeMs: z.ZodInt;
|
|
659
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
660
|
+
measuredAt: z.ZodDate;
|
|
661
|
+
since: z.ZodDate;
|
|
662
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
663
|
+
cpuThrottledMs: z.ZodInt;
|
|
664
|
+
netRxBytes: z.ZodInt;
|
|
665
|
+
netTxBytes: z.ZodInt;
|
|
666
|
+
}, z.core.$strip>>;
|
|
667
|
+
}, z.core.$strip>>;
|
|
565
668
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
566
669
|
NOT_FOUND: {
|
|
567
670
|
readonly message: "Not found";
|
|
@@ -573,6 +676,7 @@ declare const impContract: {
|
|
|
573
676
|
image: "image";
|
|
574
677
|
imp: "imp";
|
|
575
678
|
secret: "secret";
|
|
679
|
+
service: "service";
|
|
576
680
|
session: "session";
|
|
577
681
|
"ssh-key": "ssh-key";
|
|
578
682
|
token: "token";
|
|
@@ -590,6 +694,7 @@ declare const impContract: {
|
|
|
590
694
|
image: "image";
|
|
591
695
|
imp: "imp";
|
|
592
696
|
secret: "secret";
|
|
697
|
+
service: "service";
|
|
593
698
|
session: "session";
|
|
594
699
|
"ssh-key": "ssh-key";
|
|
595
700
|
token: "token";
|
|
@@ -662,6 +767,7 @@ declare const impContract: {
|
|
|
662
767
|
image: "image";
|
|
663
768
|
imp: "imp";
|
|
664
769
|
secret: "secret";
|
|
770
|
+
service: "service";
|
|
665
771
|
session: "session";
|
|
666
772
|
"ssh-key": "ssh-key";
|
|
667
773
|
token: "token";
|
|
@@ -679,6 +785,7 @@ declare const impContract: {
|
|
|
679
785
|
image: "image";
|
|
680
786
|
imp: "imp";
|
|
681
787
|
secret: "secret";
|
|
788
|
+
service: "service";
|
|
682
789
|
session: "session";
|
|
683
790
|
"ssh-key": "ssh-key";
|
|
684
791
|
token: "token";
|
|
@@ -781,6 +888,22 @@ declare const impContract: {
|
|
|
781
888
|
impd: "impd";
|
|
782
889
|
kernel: "kernel";
|
|
783
890
|
}>>>>;
|
|
891
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
892
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
893
|
+
weight: z.ZodInt;
|
|
894
|
+
}, z.core.$strip>>;
|
|
895
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
896
|
+
wakeCount: z.ZodInt;
|
|
897
|
+
awakeMs: z.ZodInt;
|
|
898
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
899
|
+
measuredAt: z.ZodDate;
|
|
900
|
+
since: z.ZodDate;
|
|
901
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
902
|
+
cpuThrottledMs: z.ZodInt;
|
|
903
|
+
netRxBytes: z.ZodInt;
|
|
904
|
+
netTxBytes: z.ZodInt;
|
|
905
|
+
}, z.core.$strip>>;
|
|
906
|
+
}, z.core.$strip>>;
|
|
784
907
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
785
908
|
NOT_FOUND: {
|
|
786
909
|
readonly message: "Not found";
|
|
@@ -792,6 +915,7 @@ declare const impContract: {
|
|
|
792
915
|
image: "image";
|
|
793
916
|
imp: "imp";
|
|
794
917
|
secret: "secret";
|
|
918
|
+
service: "service";
|
|
795
919
|
session: "session";
|
|
796
920
|
"ssh-key": "ssh-key";
|
|
797
921
|
token: "token";
|
|
@@ -809,6 +933,7 @@ declare const impContract: {
|
|
|
809
933
|
image: "image";
|
|
810
934
|
imp: "imp";
|
|
811
935
|
secret: "secret";
|
|
936
|
+
service: "service";
|
|
812
937
|
session: "session";
|
|
813
938
|
"ssh-key": "ssh-key";
|
|
814
939
|
token: "token";
|
|
@@ -911,6 +1036,22 @@ declare const impContract: {
|
|
|
911
1036
|
impd: "impd";
|
|
912
1037
|
kernel: "kernel";
|
|
913
1038
|
}>>>>;
|
|
1039
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1040
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1041
|
+
weight: z.ZodInt;
|
|
1042
|
+
}, z.core.$strip>>;
|
|
1043
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1044
|
+
wakeCount: z.ZodInt;
|
|
1045
|
+
awakeMs: z.ZodInt;
|
|
1046
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1047
|
+
measuredAt: z.ZodDate;
|
|
1048
|
+
since: z.ZodDate;
|
|
1049
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1050
|
+
cpuThrottledMs: z.ZodInt;
|
|
1051
|
+
netRxBytes: z.ZodInt;
|
|
1052
|
+
netTxBytes: z.ZodInt;
|
|
1053
|
+
}, z.core.$strip>>;
|
|
1054
|
+
}, z.core.$strip>>;
|
|
914
1055
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
915
1056
|
NOT_FOUND: {
|
|
916
1057
|
readonly message: "Not found";
|
|
@@ -922,6 +1063,7 @@ declare const impContract: {
|
|
|
922
1063
|
image: "image";
|
|
923
1064
|
imp: "imp";
|
|
924
1065
|
secret: "secret";
|
|
1066
|
+
service: "service";
|
|
925
1067
|
session: "session";
|
|
926
1068
|
"ssh-key": "ssh-key";
|
|
927
1069
|
token: "token";
|
|
@@ -939,6 +1081,7 @@ declare const impContract: {
|
|
|
939
1081
|
image: "image";
|
|
940
1082
|
imp: "imp";
|
|
941
1083
|
secret: "secret";
|
|
1084
|
+
service: "service";
|
|
942
1085
|
session: "session";
|
|
943
1086
|
"ssh-key": "ssh-key";
|
|
944
1087
|
token: "token";
|
|
@@ -1041,6 +1184,22 @@ declare const impContract: {
|
|
|
1041
1184
|
impd: "impd";
|
|
1042
1185
|
kernel: "kernel";
|
|
1043
1186
|
}>>>>;
|
|
1187
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1188
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1189
|
+
weight: z.ZodInt;
|
|
1190
|
+
}, z.core.$strip>>;
|
|
1191
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1192
|
+
wakeCount: z.ZodInt;
|
|
1193
|
+
awakeMs: z.ZodInt;
|
|
1194
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1195
|
+
measuredAt: z.ZodDate;
|
|
1196
|
+
since: z.ZodDate;
|
|
1197
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1198
|
+
cpuThrottledMs: z.ZodInt;
|
|
1199
|
+
netRxBytes: z.ZodInt;
|
|
1200
|
+
netTxBytes: z.ZodInt;
|
|
1201
|
+
}, z.core.$strip>>;
|
|
1202
|
+
}, z.core.$strip>>;
|
|
1044
1203
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1045
1204
|
NOT_FOUND: {
|
|
1046
1205
|
readonly message: "Not found";
|
|
@@ -1052,6 +1211,7 @@ declare const impContract: {
|
|
|
1052
1211
|
image: "image";
|
|
1053
1212
|
imp: "imp";
|
|
1054
1213
|
secret: "secret";
|
|
1214
|
+
service: "service";
|
|
1055
1215
|
session: "session";
|
|
1056
1216
|
"ssh-key": "ssh-key";
|
|
1057
1217
|
token: "token";
|
|
@@ -1069,6 +1229,7 @@ declare const impContract: {
|
|
|
1069
1229
|
image: "image";
|
|
1070
1230
|
imp: "imp";
|
|
1071
1231
|
secret: "secret";
|
|
1232
|
+
service: "service";
|
|
1072
1233
|
session: "session";
|
|
1073
1234
|
"ssh-key": "ssh-key";
|
|
1074
1235
|
token: "token";
|
|
@@ -1172,6 +1333,22 @@ declare const impContract: {
|
|
|
1172
1333
|
impd: "impd";
|
|
1173
1334
|
kernel: "kernel";
|
|
1174
1335
|
}>>>>;
|
|
1336
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1337
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1338
|
+
weight: z.ZodInt;
|
|
1339
|
+
}, z.core.$strip>>;
|
|
1340
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1341
|
+
wakeCount: z.ZodInt;
|
|
1342
|
+
awakeMs: z.ZodInt;
|
|
1343
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1344
|
+
measuredAt: z.ZodDate;
|
|
1345
|
+
since: z.ZodDate;
|
|
1346
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1347
|
+
cpuThrottledMs: z.ZodInt;
|
|
1348
|
+
netRxBytes: z.ZodInt;
|
|
1349
|
+
netTxBytes: z.ZodInt;
|
|
1350
|
+
}, z.core.$strip>>;
|
|
1351
|
+
}, z.core.$strip>>;
|
|
1175
1352
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1176
1353
|
NOT_FOUND: {
|
|
1177
1354
|
readonly message: "Not found";
|
|
@@ -1183,6 +1360,7 @@ declare const impContract: {
|
|
|
1183
1360
|
image: "image";
|
|
1184
1361
|
imp: "imp";
|
|
1185
1362
|
secret: "secret";
|
|
1363
|
+
service: "service";
|
|
1186
1364
|
session: "session";
|
|
1187
1365
|
"ssh-key": "ssh-key";
|
|
1188
1366
|
token: "token";
|
|
@@ -1200,6 +1378,7 @@ declare const impContract: {
|
|
|
1200
1378
|
image: "image";
|
|
1201
1379
|
imp: "imp";
|
|
1202
1380
|
secret: "secret";
|
|
1381
|
+
service: "service";
|
|
1203
1382
|
session: "session";
|
|
1204
1383
|
"ssh-key": "ssh-key";
|
|
1205
1384
|
token: "token";
|
|
@@ -1303,6 +1482,22 @@ declare const impContract: {
|
|
|
1303
1482
|
impd: "impd";
|
|
1304
1483
|
kernel: "kernel";
|
|
1305
1484
|
}>>>>;
|
|
1485
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1486
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1487
|
+
weight: z.ZodInt;
|
|
1488
|
+
}, z.core.$strip>>;
|
|
1489
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1490
|
+
wakeCount: z.ZodInt;
|
|
1491
|
+
awakeMs: z.ZodInt;
|
|
1492
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1493
|
+
measuredAt: z.ZodDate;
|
|
1494
|
+
since: z.ZodDate;
|
|
1495
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1496
|
+
cpuThrottledMs: z.ZodInt;
|
|
1497
|
+
netRxBytes: z.ZodInt;
|
|
1498
|
+
netTxBytes: z.ZodInt;
|
|
1499
|
+
}, z.core.$strip>>;
|
|
1500
|
+
}, z.core.$strip>>;
|
|
1306
1501
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1307
1502
|
NOT_FOUND: {
|
|
1308
1503
|
readonly message: "Not found";
|
|
@@ -1314,6 +1509,7 @@ declare const impContract: {
|
|
|
1314
1509
|
image: "image";
|
|
1315
1510
|
imp: "imp";
|
|
1316
1511
|
secret: "secret";
|
|
1512
|
+
service: "service";
|
|
1317
1513
|
session: "session";
|
|
1318
1514
|
"ssh-key": "ssh-key";
|
|
1319
1515
|
token: "token";
|
|
@@ -1331,6 +1527,7 @@ declare const impContract: {
|
|
|
1331
1527
|
image: "image";
|
|
1332
1528
|
imp: "imp";
|
|
1333
1529
|
secret: "secret";
|
|
1530
|
+
service: "service";
|
|
1334
1531
|
session: "session";
|
|
1335
1532
|
"ssh-key": "ssh-key";
|
|
1336
1533
|
token: "token";
|
|
@@ -1434,6 +1631,22 @@ declare const impContract: {
|
|
|
1434
1631
|
impd: "impd";
|
|
1435
1632
|
kernel: "kernel";
|
|
1436
1633
|
}>>>>;
|
|
1634
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1635
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1636
|
+
weight: z.ZodInt;
|
|
1637
|
+
}, z.core.$strip>>;
|
|
1638
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1639
|
+
wakeCount: z.ZodInt;
|
|
1640
|
+
awakeMs: z.ZodInt;
|
|
1641
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1642
|
+
measuredAt: z.ZodDate;
|
|
1643
|
+
since: z.ZodDate;
|
|
1644
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1645
|
+
cpuThrottledMs: z.ZodInt;
|
|
1646
|
+
netRxBytes: z.ZodInt;
|
|
1647
|
+
netTxBytes: z.ZodInt;
|
|
1648
|
+
}, z.core.$strip>>;
|
|
1649
|
+
}, z.core.$strip>>;
|
|
1437
1650
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1438
1651
|
NOT_FOUND: {
|
|
1439
1652
|
readonly message: "Not found";
|
|
@@ -1445,6 +1658,7 @@ declare const impContract: {
|
|
|
1445
1658
|
image: "image";
|
|
1446
1659
|
imp: "imp";
|
|
1447
1660
|
secret: "secret";
|
|
1661
|
+
service: "service";
|
|
1448
1662
|
session: "session";
|
|
1449
1663
|
"ssh-key": "ssh-key";
|
|
1450
1664
|
token: "token";
|
|
@@ -1462,6 +1676,7 @@ declare const impContract: {
|
|
|
1462
1676
|
image: "image";
|
|
1463
1677
|
imp: "imp";
|
|
1464
1678
|
secret: "secret";
|
|
1679
|
+
service: "service";
|
|
1465
1680
|
session: "session";
|
|
1466
1681
|
"ssh-key": "ssh-key";
|
|
1467
1682
|
token: "token";
|
|
@@ -1539,6 +1754,7 @@ declare const impContract: {
|
|
|
1539
1754
|
image: "image";
|
|
1540
1755
|
imp: "imp";
|
|
1541
1756
|
secret: "secret";
|
|
1757
|
+
service: "service";
|
|
1542
1758
|
session: "session";
|
|
1543
1759
|
"ssh-key": "ssh-key";
|
|
1544
1760
|
token: "token";
|
|
@@ -1556,6 +1772,7 @@ declare const impContract: {
|
|
|
1556
1772
|
image: "image";
|
|
1557
1773
|
imp: "imp";
|
|
1558
1774
|
secret: "secret";
|
|
1775
|
+
service: "service";
|
|
1559
1776
|
session: "session";
|
|
1560
1777
|
"ssh-key": "ssh-key";
|
|
1561
1778
|
token: "token";
|
|
@@ -1635,6 +1852,7 @@ declare const impContract: {
|
|
|
1635
1852
|
image: "image";
|
|
1636
1853
|
imp: "imp";
|
|
1637
1854
|
secret: "secret";
|
|
1855
|
+
service: "service";
|
|
1638
1856
|
session: "session";
|
|
1639
1857
|
"ssh-key": "ssh-key";
|
|
1640
1858
|
token: "token";
|
|
@@ -1652,6 +1870,7 @@ declare const impContract: {
|
|
|
1652
1870
|
image: "image";
|
|
1653
1871
|
imp: "imp";
|
|
1654
1872
|
secret: "secret";
|
|
1873
|
+
service: "service";
|
|
1655
1874
|
session: "session";
|
|
1656
1875
|
"ssh-key": "ssh-key";
|
|
1657
1876
|
token: "token";
|
|
@@ -1739,6 +1958,7 @@ declare const impContract: {
|
|
|
1739
1958
|
image: "image";
|
|
1740
1959
|
imp: "imp";
|
|
1741
1960
|
secret: "secret";
|
|
1961
|
+
service: "service";
|
|
1742
1962
|
session: "session";
|
|
1743
1963
|
"ssh-key": "ssh-key";
|
|
1744
1964
|
token: "token";
|
|
@@ -1756,6 +1976,7 @@ declare const impContract: {
|
|
|
1756
1976
|
image: "image";
|
|
1757
1977
|
imp: "imp";
|
|
1758
1978
|
secret: "secret";
|
|
1979
|
+
service: "service";
|
|
1759
1980
|
session: "session";
|
|
1760
1981
|
"ssh-key": "ssh-key";
|
|
1761
1982
|
token: "token";
|
|
@@ -1860,6 +2081,173 @@ declare const impContract: {
|
|
|
1860
2081
|
impd: "impd";
|
|
1861
2082
|
kernel: "kernel";
|
|
1862
2083
|
}>>>>;
|
|
2084
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2085
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2086
|
+
weight: z.ZodInt;
|
|
2087
|
+
}, z.core.$strip>>;
|
|
2088
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2089
|
+
wakeCount: z.ZodInt;
|
|
2090
|
+
awakeMs: z.ZodInt;
|
|
2091
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2092
|
+
measuredAt: z.ZodDate;
|
|
2093
|
+
since: z.ZodDate;
|
|
2094
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2095
|
+
cpuThrottledMs: z.ZodInt;
|
|
2096
|
+
netRxBytes: z.ZodInt;
|
|
2097
|
+
netTxBytes: z.ZodInt;
|
|
2098
|
+
}, z.core.$strip>>;
|
|
2099
|
+
}, z.core.$strip>>;
|
|
2100
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2101
|
+
NOT_FOUND: {
|
|
2102
|
+
readonly message: "Not found";
|
|
2103
|
+
readonly data: z.ZodObject<{
|
|
2104
|
+
kind: z.ZodEnum<{
|
|
2105
|
+
backup: "backup";
|
|
2106
|
+
checkpoint: "checkpoint";
|
|
2107
|
+
grant: "grant";
|
|
2108
|
+
image: "image";
|
|
2109
|
+
imp: "imp";
|
|
2110
|
+
secret: "secret";
|
|
2111
|
+
service: "service";
|
|
2112
|
+
session: "session";
|
|
2113
|
+
"ssh-key": "ssh-key";
|
|
2114
|
+
token: "token";
|
|
2115
|
+
}>;
|
|
2116
|
+
name: z.ZodString;
|
|
2117
|
+
}, z.core.$strip>;
|
|
2118
|
+
};
|
|
2119
|
+
CONFLICT: {
|
|
2120
|
+
readonly message: "Already exists";
|
|
2121
|
+
readonly data: z.ZodObject<{
|
|
2122
|
+
kind: z.ZodEnum<{
|
|
2123
|
+
backup: "backup";
|
|
2124
|
+
checkpoint: "checkpoint";
|
|
2125
|
+
grant: "grant";
|
|
2126
|
+
image: "image";
|
|
2127
|
+
imp: "imp";
|
|
2128
|
+
secret: "secret";
|
|
2129
|
+
service: "service";
|
|
2130
|
+
session: "session";
|
|
2131
|
+
"ssh-key": "ssh-key";
|
|
2132
|
+
token: "token";
|
|
2133
|
+
}>;
|
|
2134
|
+
name: z.ZodString;
|
|
2135
|
+
}, z.core.$strip>;
|
|
2136
|
+
};
|
|
2137
|
+
FORBIDDEN: {
|
|
2138
|
+
readonly message: "Not allowed";
|
|
2139
|
+
};
|
|
2140
|
+
PRECONDITION_FAILED: {
|
|
2141
|
+
readonly message: "Not possible on this host";
|
|
2142
|
+
};
|
|
2143
|
+
RAM_BUDGET_EXCEEDED: {
|
|
2144
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
2145
|
+
readonly status: 503;
|
|
2146
|
+
readonly data: z.ZodObject<{
|
|
2147
|
+
budgetMib: z.ZodInt;
|
|
2148
|
+
usedMib: z.ZodInt;
|
|
2149
|
+
requestedMib: z.ZodInt;
|
|
2150
|
+
}, z.core.$strip>;
|
|
2151
|
+
};
|
|
2152
|
+
SERVICE_UNAVAILABLE: {
|
|
2153
|
+
readonly message: "impd is stopping";
|
|
2154
|
+
};
|
|
2155
|
+
INVALID_STATE: {
|
|
2156
|
+
readonly message: "The imp is not in a state that allows this";
|
|
2157
|
+
readonly status: 409;
|
|
2158
|
+
readonly data: z.ZodObject<{
|
|
2159
|
+
state: z.ZodEnum<{
|
|
2160
|
+
creating: "creating";
|
|
2161
|
+
error: "error";
|
|
2162
|
+
running: "running";
|
|
2163
|
+
sleeping: "sleeping";
|
|
2164
|
+
stopped: "stopped";
|
|
2165
|
+
}>;
|
|
2166
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
2167
|
+
creating: "creating";
|
|
2168
|
+
error: "error";
|
|
2169
|
+
running: "running";
|
|
2170
|
+
sleeping: "sleeping";
|
|
2171
|
+
stopped: "stopped";
|
|
2172
|
+
}>>;
|
|
2173
|
+
}, z.core.$strip>;
|
|
2174
|
+
};
|
|
2175
|
+
DISK_FULL: {
|
|
2176
|
+
readonly message: "Not enough free disk on the host";
|
|
2177
|
+
readonly status: 507;
|
|
2178
|
+
readonly data: z.ZodObject<{
|
|
2179
|
+
availableBytes: z.ZodInt;
|
|
2180
|
+
reserveBytes: z.ZodInt;
|
|
2181
|
+
requestedBytes: z.ZodInt;
|
|
2182
|
+
}, z.core.$strip>;
|
|
2183
|
+
};
|
|
2184
|
+
AGENT_OUTDATED: {
|
|
2185
|
+
readonly message: "The imp's agent is too old for this";
|
|
2186
|
+
readonly status: 409;
|
|
2187
|
+
};
|
|
2188
|
+
}>, Record<never, never>>;
|
|
2189
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2190
|
+
name: z.ZodString;
|
|
2191
|
+
cpuLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2192
|
+
cpuWeight: z.ZodOptional<z.ZodInt>;
|
|
2193
|
+
vcpus: z.ZodOptional<z.ZodInt>;
|
|
2194
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2195
|
+
id: z.ZodString;
|
|
2196
|
+
name: z.ZodString;
|
|
2197
|
+
image: z.ZodString;
|
|
2198
|
+
state: z.ZodEnum<{
|
|
2199
|
+
creating: "creating";
|
|
2200
|
+
error: "error";
|
|
2201
|
+
running: "running";
|
|
2202
|
+
sleeping: "sleeping";
|
|
2203
|
+
stopped: "stopped";
|
|
2204
|
+
}>;
|
|
2205
|
+
vcpus: z.ZodInt;
|
|
2206
|
+
memoryMib: z.ZodInt;
|
|
2207
|
+
diskMib: z.ZodInt;
|
|
2208
|
+
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
2209
|
+
exclusiveBytes: z.ZodInt;
|
|
2210
|
+
sharedBytes: z.ZodInt;
|
|
2211
|
+
measuredAt: z.ZodDate;
|
|
2212
|
+
isPartial: z.ZodBoolean;
|
|
2213
|
+
isUpperBound: z.ZodBoolean;
|
|
2214
|
+
}, z.core.$strip>>;
|
|
2215
|
+
ip: z.ZodIPv4;
|
|
2216
|
+
slot: z.ZodInt;
|
|
2217
|
+
port: z.ZodInt;
|
|
2218
|
+
httpPort: z.ZodInt;
|
|
2219
|
+
url: z.ZodURL;
|
|
2220
|
+
createdAt: z.ZodDate;
|
|
2221
|
+
lastActiveAt: z.ZodDate;
|
|
2222
|
+
ramMib: z.ZodOptional<z.ZodInt>;
|
|
2223
|
+
rssMib: z.ZodOptional<z.ZodInt>;
|
|
2224
|
+
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
2225
|
+
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
2226
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2227
|
+
sessions: z.ZodOptional<z.ZodInt>;
|
|
2228
|
+
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2229
|
+
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2230
|
+
agent: "agent";
|
|
2231
|
+
firecracker: "firecracker";
|
|
2232
|
+
impd: "impd";
|
|
2233
|
+
kernel: "kernel";
|
|
2234
|
+
}>>>>;
|
|
2235
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2236
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2237
|
+
weight: z.ZodInt;
|
|
2238
|
+
}, z.core.$strip>>;
|
|
2239
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2240
|
+
wakeCount: z.ZodInt;
|
|
2241
|
+
awakeMs: z.ZodInt;
|
|
2242
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2243
|
+
measuredAt: z.ZodDate;
|
|
2244
|
+
since: z.ZodDate;
|
|
2245
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2246
|
+
cpuThrottledMs: z.ZodInt;
|
|
2247
|
+
netRxBytes: z.ZodInt;
|
|
2248
|
+
netTxBytes: z.ZodInt;
|
|
2249
|
+
}, z.core.$strip>>;
|
|
2250
|
+
}, z.core.$strip>>;
|
|
1863
2251
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1864
2252
|
NOT_FOUND: {
|
|
1865
2253
|
readonly message: "Not found";
|
|
@@ -1871,6 +2259,7 @@ declare const impContract: {
|
|
|
1871
2259
|
image: "image";
|
|
1872
2260
|
imp: "imp";
|
|
1873
2261
|
secret: "secret";
|
|
2262
|
+
service: "service";
|
|
1874
2263
|
session: "session";
|
|
1875
2264
|
"ssh-key": "ssh-key";
|
|
1876
2265
|
token: "token";
|
|
@@ -1888,6 +2277,7 @@ declare const impContract: {
|
|
|
1888
2277
|
image: "image";
|
|
1889
2278
|
imp: "imp";
|
|
1890
2279
|
secret: "secret";
|
|
2280
|
+
service: "service";
|
|
1891
2281
|
session: "session";
|
|
1892
2282
|
"ssh-key": "ssh-key";
|
|
1893
2283
|
token: "token";
|
|
@@ -1969,6 +2359,7 @@ declare const impContract: {
|
|
|
1969
2359
|
image: "image";
|
|
1970
2360
|
imp: "imp";
|
|
1971
2361
|
secret: "secret";
|
|
2362
|
+
service: "service";
|
|
1972
2363
|
session: "session";
|
|
1973
2364
|
"ssh-key": "ssh-key";
|
|
1974
2365
|
token: "token";
|
|
@@ -1986,6 +2377,7 @@ declare const impContract: {
|
|
|
1986
2377
|
image: "image";
|
|
1987
2378
|
imp: "imp";
|
|
1988
2379
|
secret: "secret";
|
|
2380
|
+
service: "service";
|
|
1989
2381
|
session: "session";
|
|
1990
2382
|
"ssh-key": "ssh-key";
|
|
1991
2383
|
token: "token";
|
|
@@ -2064,6 +2456,7 @@ declare const impContract: {
|
|
|
2064
2456
|
image: "image";
|
|
2065
2457
|
imp: "imp";
|
|
2066
2458
|
secret: "secret";
|
|
2459
|
+
service: "service";
|
|
2067
2460
|
session: "session";
|
|
2068
2461
|
"ssh-key": "ssh-key";
|
|
2069
2462
|
token: "token";
|
|
@@ -2081,6 +2474,7 @@ declare const impContract: {
|
|
|
2081
2474
|
image: "image";
|
|
2082
2475
|
imp: "imp";
|
|
2083
2476
|
secret: "secret";
|
|
2477
|
+
service: "service";
|
|
2084
2478
|
session: "session";
|
|
2085
2479
|
"ssh-key": "ssh-key";
|
|
2086
2480
|
token: "token";
|
|
@@ -2184,6 +2578,22 @@ declare const impContract: {
|
|
|
2184
2578
|
impd: "impd";
|
|
2185
2579
|
kernel: "kernel";
|
|
2186
2580
|
}>>>>;
|
|
2581
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2582
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2583
|
+
weight: z.ZodInt;
|
|
2584
|
+
}, z.core.$strip>>;
|
|
2585
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2586
|
+
wakeCount: z.ZodInt;
|
|
2587
|
+
awakeMs: z.ZodInt;
|
|
2588
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2589
|
+
measuredAt: z.ZodDate;
|
|
2590
|
+
since: z.ZodDate;
|
|
2591
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2592
|
+
cpuThrottledMs: z.ZodInt;
|
|
2593
|
+
netRxBytes: z.ZodInt;
|
|
2594
|
+
netTxBytes: z.ZodInt;
|
|
2595
|
+
}, z.core.$strip>>;
|
|
2596
|
+
}, z.core.$strip>>;
|
|
2187
2597
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2188
2598
|
NOT_FOUND: {
|
|
2189
2599
|
readonly message: "Not found";
|
|
@@ -2195,6 +2605,7 @@ declare const impContract: {
|
|
|
2195
2605
|
image: "image";
|
|
2196
2606
|
imp: "imp";
|
|
2197
2607
|
secret: "secret";
|
|
2608
|
+
service: "service";
|
|
2198
2609
|
session: "session";
|
|
2199
2610
|
"ssh-key": "ssh-key";
|
|
2200
2611
|
token: "token";
|
|
@@ -2212,6 +2623,7 @@ declare const impContract: {
|
|
|
2212
2623
|
image: "image";
|
|
2213
2624
|
imp: "imp";
|
|
2214
2625
|
secret: "secret";
|
|
2626
|
+
service: "service";
|
|
2215
2627
|
session: "session";
|
|
2216
2628
|
"ssh-key": "ssh-key";
|
|
2217
2629
|
token: "token";
|
|
@@ -2285,6 +2697,7 @@ declare const impContract: {
|
|
|
2285
2697
|
image: "image";
|
|
2286
2698
|
imp: "imp";
|
|
2287
2699
|
secret: "secret";
|
|
2700
|
+
service: "service";
|
|
2288
2701
|
session: "session";
|
|
2289
2702
|
"ssh-key": "ssh-key";
|
|
2290
2703
|
token: "token";
|
|
@@ -2302,6 +2715,7 @@ declare const impContract: {
|
|
|
2302
2715
|
image: "image";
|
|
2303
2716
|
imp: "imp";
|
|
2304
2717
|
secret: "secret";
|
|
2718
|
+
service: "service";
|
|
2305
2719
|
session: "session";
|
|
2306
2720
|
"ssh-key": "ssh-key";
|
|
2307
2721
|
token: "token";
|
|
@@ -2383,6 +2797,7 @@ declare const impContract: {
|
|
|
2383
2797
|
image: "image";
|
|
2384
2798
|
imp: "imp";
|
|
2385
2799
|
secret: "secret";
|
|
2800
|
+
service: "service";
|
|
2386
2801
|
session: "session";
|
|
2387
2802
|
"ssh-key": "ssh-key";
|
|
2388
2803
|
token: "token";
|
|
@@ -2400,6 +2815,7 @@ declare const impContract: {
|
|
|
2400
2815
|
image: "image";
|
|
2401
2816
|
imp: "imp";
|
|
2402
2817
|
secret: "secret";
|
|
2818
|
+
service: "service";
|
|
2403
2819
|
session: "session";
|
|
2404
2820
|
"ssh-key": "ssh-key";
|
|
2405
2821
|
token: "token";
|
|
@@ -2482,6 +2898,7 @@ declare const impContract: {
|
|
|
2482
2898
|
image: "image";
|
|
2483
2899
|
imp: "imp";
|
|
2484
2900
|
secret: "secret";
|
|
2901
|
+
service: "service";
|
|
2485
2902
|
session: "session";
|
|
2486
2903
|
"ssh-key": "ssh-key";
|
|
2487
2904
|
token: "token";
|
|
@@ -2499,6 +2916,7 @@ declare const impContract: {
|
|
|
2499
2916
|
image: "image";
|
|
2500
2917
|
imp: "imp";
|
|
2501
2918
|
secret: "secret";
|
|
2919
|
+
service: "service";
|
|
2502
2920
|
session: "session";
|
|
2503
2921
|
"ssh-key": "ssh-key";
|
|
2504
2922
|
token: "token";
|
|
@@ -2606,6 +3024,22 @@ declare const impContract: {
|
|
|
2606
3024
|
impd: "impd";
|
|
2607
3025
|
kernel: "kernel";
|
|
2608
3026
|
}>>>>;
|
|
3027
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
3028
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
3029
|
+
weight: z.ZodInt;
|
|
3030
|
+
}, z.core.$strip>>;
|
|
3031
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
3032
|
+
wakeCount: z.ZodInt;
|
|
3033
|
+
awakeMs: z.ZodInt;
|
|
3034
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
3035
|
+
measuredAt: z.ZodDate;
|
|
3036
|
+
since: z.ZodDate;
|
|
3037
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
3038
|
+
cpuThrottledMs: z.ZodInt;
|
|
3039
|
+
netRxBytes: z.ZodInt;
|
|
3040
|
+
netTxBytes: z.ZodInt;
|
|
3041
|
+
}, z.core.$strip>>;
|
|
3042
|
+
}, z.core.$strip>>;
|
|
2609
3043
|
}, z.core.$strip>>>;
|
|
2610
3044
|
skippedGrants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2611
3045
|
imp: z.ZodString;
|
|
@@ -2623,6 +3057,7 @@ declare const impContract: {
|
|
|
2623
3057
|
image: "image";
|
|
2624
3058
|
imp: "imp";
|
|
2625
3059
|
secret: "secret";
|
|
3060
|
+
service: "service";
|
|
2626
3061
|
session: "session";
|
|
2627
3062
|
"ssh-key": "ssh-key";
|
|
2628
3063
|
token: "token";
|
|
@@ -2640,6 +3075,7 @@ declare const impContract: {
|
|
|
2640
3075
|
image: "image";
|
|
2641
3076
|
imp: "imp";
|
|
2642
3077
|
secret: "secret";
|
|
3078
|
+
service: "service";
|
|
2643
3079
|
session: "session";
|
|
2644
3080
|
"ssh-key": "ssh-key";
|
|
2645
3081
|
token: "token";
|
|
@@ -2712,6 +3148,7 @@ declare const impContract: {
|
|
|
2712
3148
|
image: "image";
|
|
2713
3149
|
imp: "imp";
|
|
2714
3150
|
secret: "secret";
|
|
3151
|
+
service: "service";
|
|
2715
3152
|
session: "session";
|
|
2716
3153
|
"ssh-key": "ssh-key";
|
|
2717
3154
|
token: "token";
|
|
@@ -2729,6 +3166,7 @@ declare const impContract: {
|
|
|
2729
3166
|
image: "image";
|
|
2730
3167
|
imp: "imp";
|
|
2731
3168
|
secret: "secret";
|
|
3169
|
+
service: "service";
|
|
2732
3170
|
session: "session";
|
|
2733
3171
|
"ssh-key": "ssh-key";
|
|
2734
3172
|
token: "token";
|
|
@@ -2808,6 +3246,7 @@ declare const impContract: {
|
|
|
2808
3246
|
image: "image";
|
|
2809
3247
|
imp: "imp";
|
|
2810
3248
|
secret: "secret";
|
|
3249
|
+
service: "service";
|
|
2811
3250
|
session: "session";
|
|
2812
3251
|
"ssh-key": "ssh-key";
|
|
2813
3252
|
token: "token";
|
|
@@ -2825,6 +3264,7 @@ declare const impContract: {
|
|
|
2825
3264
|
image: "image";
|
|
2826
3265
|
imp: "imp";
|
|
2827
3266
|
secret: "secret";
|
|
3267
|
+
service: "service";
|
|
2828
3268
|
session: "session";
|
|
2829
3269
|
"ssh-key": "ssh-key";
|
|
2830
3270
|
token: "token";
|
|
@@ -2905,6 +3345,7 @@ declare const impContract: {
|
|
|
2905
3345
|
image: "image";
|
|
2906
3346
|
imp: "imp";
|
|
2907
3347
|
secret: "secret";
|
|
3348
|
+
service: "service";
|
|
2908
3349
|
session: "session";
|
|
2909
3350
|
"ssh-key": "ssh-key";
|
|
2910
3351
|
token: "token";
|
|
@@ -2922,6 +3363,7 @@ declare const impContract: {
|
|
|
2922
3363
|
image: "image";
|
|
2923
3364
|
imp: "imp";
|
|
2924
3365
|
secret: "secret";
|
|
3366
|
+
service: "service";
|
|
2925
3367
|
session: "session";
|
|
2926
3368
|
"ssh-key": "ssh-key";
|
|
2927
3369
|
token: "token";
|
|
@@ -3003,6 +3445,7 @@ declare const impContract: {
|
|
|
3003
3445
|
image: "image";
|
|
3004
3446
|
imp: "imp";
|
|
3005
3447
|
secret: "secret";
|
|
3448
|
+
service: "service";
|
|
3006
3449
|
session: "session";
|
|
3007
3450
|
"ssh-key": "ssh-key";
|
|
3008
3451
|
token: "token";
|
|
@@ -3020,6 +3463,7 @@ declare const impContract: {
|
|
|
3020
3463
|
image: "image";
|
|
3021
3464
|
imp: "imp";
|
|
3022
3465
|
secret: "secret";
|
|
3466
|
+
service: "service";
|
|
3023
3467
|
session: "session";
|
|
3024
3468
|
"ssh-key": "ssh-key";
|
|
3025
3469
|
token: "token";
|
|
@@ -3092,6 +3536,7 @@ declare const impContract: {
|
|
|
3092
3536
|
image: "image";
|
|
3093
3537
|
imp: "imp";
|
|
3094
3538
|
secret: "secret";
|
|
3539
|
+
service: "service";
|
|
3095
3540
|
session: "session";
|
|
3096
3541
|
"ssh-key": "ssh-key";
|
|
3097
3542
|
token: "token";
|
|
@@ -3109,6 +3554,7 @@ declare const impContract: {
|
|
|
3109
3554
|
image: "image";
|
|
3110
3555
|
imp: "imp";
|
|
3111
3556
|
secret: "secret";
|
|
3557
|
+
service: "service";
|
|
3112
3558
|
session: "session";
|
|
3113
3559
|
"ssh-key": "ssh-key";
|
|
3114
3560
|
token: "token";
|
|
@@ -3186,6 +3632,7 @@ declare const impContract: {
|
|
|
3186
3632
|
image: "image";
|
|
3187
3633
|
imp: "imp";
|
|
3188
3634
|
secret: "secret";
|
|
3635
|
+
service: "service";
|
|
3189
3636
|
session: "session";
|
|
3190
3637
|
"ssh-key": "ssh-key";
|
|
3191
3638
|
token: "token";
|
|
@@ -3203,6 +3650,7 @@ declare const impContract: {
|
|
|
3203
3650
|
image: "image";
|
|
3204
3651
|
imp: "imp";
|
|
3205
3652
|
secret: "secret";
|
|
3653
|
+
service: "service";
|
|
3206
3654
|
session: "session";
|
|
3207
3655
|
"ssh-key": "ssh-key";
|
|
3208
3656
|
token: "token";
|
|
@@ -3293,6 +3741,7 @@ declare const impContract: {
|
|
|
3293
3741
|
image: "image";
|
|
3294
3742
|
imp: "imp";
|
|
3295
3743
|
secret: "secret";
|
|
3744
|
+
service: "service";
|
|
3296
3745
|
session: "session";
|
|
3297
3746
|
"ssh-key": "ssh-key";
|
|
3298
3747
|
token: "token";
|
|
@@ -3310,6 +3759,7 @@ declare const impContract: {
|
|
|
3310
3759
|
image: "image";
|
|
3311
3760
|
imp: "imp";
|
|
3312
3761
|
secret: "secret";
|
|
3762
|
+
service: "service";
|
|
3313
3763
|
session: "session";
|
|
3314
3764
|
"ssh-key": "ssh-key";
|
|
3315
3765
|
token: "token";
|
|
@@ -3383,6 +3833,7 @@ declare const impContract: {
|
|
|
3383
3833
|
image: "image";
|
|
3384
3834
|
imp: "imp";
|
|
3385
3835
|
secret: "secret";
|
|
3836
|
+
service: "service";
|
|
3386
3837
|
session: "session";
|
|
3387
3838
|
"ssh-key": "ssh-key";
|
|
3388
3839
|
token: "token";
|
|
@@ -3400,6 +3851,7 @@ declare const impContract: {
|
|
|
3400
3851
|
image: "image";
|
|
3401
3852
|
imp: "imp";
|
|
3402
3853
|
secret: "secret";
|
|
3854
|
+
service: "service";
|
|
3403
3855
|
session: "session";
|
|
3404
3856
|
"ssh-key": "ssh-key";
|
|
3405
3857
|
token: "token";
|
|
@@ -3460,48 +3912,39 @@ declare const impContract: {
|
|
|
3460
3912
|
};
|
|
3461
3913
|
}>, Record<never, never>>;
|
|
3462
3914
|
};
|
|
3463
|
-
|
|
3464
|
-
|
|
3915
|
+
services: {
|
|
3916
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3465
3917
|
name: z.ZodString;
|
|
3466
|
-
|
|
3467
|
-
anthropic: "anthropic";
|
|
3468
|
-
custom: "custom";
|
|
3469
|
-
github: "github";
|
|
3470
|
-
npm: "npm";
|
|
3471
|
-
}>;
|
|
3472
|
-
value: z.ZodString;
|
|
3473
|
-
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
3474
|
-
host: z.ZodString;
|
|
3475
|
-
header: z.ZodString;
|
|
3476
|
-
scheme: z.ZodEnum<{
|
|
3477
|
-
basic: "basic";
|
|
3478
|
-
bearer: "bearer";
|
|
3479
|
-
raw: "raw";
|
|
3480
|
-
}>;
|
|
3481
|
-
user: z.ZodOptional<z.ZodString>;
|
|
3482
|
-
}, z.core.$strip>>>;
|
|
3483
|
-
replace: z.ZodOptional<z.ZodBoolean>;
|
|
3484
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
3918
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
3485
3919
|
name: z.ZodString;
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3490
|
-
|
|
3920
|
+
state: z.ZodEnum<{
|
|
3921
|
+
backoff: "backoff";
|
|
3922
|
+
exited: "exited";
|
|
3923
|
+
running: "running";
|
|
3924
|
+
starting: "starting";
|
|
3925
|
+
stopped: "stopped";
|
|
3491
3926
|
}>;
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
|
|
3497
|
-
|
|
3498
|
-
|
|
3499
|
-
|
|
3500
|
-
|
|
3501
|
-
|
|
3502
|
-
|
|
3503
|
-
|
|
3504
|
-
|
|
3927
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
3928
|
+
restarts: z.ZodInt;
|
|
3929
|
+
lastExit: z.ZodNullable<z.ZodObject<{
|
|
3930
|
+
code: z.ZodInt;
|
|
3931
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
3932
|
+
}, z.core.$strip>>;
|
|
3933
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
3934
|
+
envKeys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
3935
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
3936
|
+
user: z.ZodNullable<z.ZodString>;
|
|
3937
|
+
restart: z.ZodEnum<{
|
|
3938
|
+
always: "always";
|
|
3939
|
+
never: "never";
|
|
3940
|
+
"on-failure": "on-failure";
|
|
3941
|
+
}>;
|
|
3942
|
+
source: z.ZodEnum<{
|
|
3943
|
+
api: "api";
|
|
3944
|
+
image: "image";
|
|
3945
|
+
}>;
|
|
3946
|
+
root: z.ZodBoolean;
|
|
3947
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3505
3948
|
NOT_FOUND: {
|
|
3506
3949
|
readonly message: "Not found";
|
|
3507
3950
|
readonly data: z.ZodObject<{
|
|
@@ -3512,6 +3955,7 @@ declare const impContract: {
|
|
|
3512
3955
|
image: "image";
|
|
3513
3956
|
imp: "imp";
|
|
3514
3957
|
secret: "secret";
|
|
3958
|
+
service: "service";
|
|
3515
3959
|
session: "session";
|
|
3516
3960
|
"ssh-key": "ssh-key";
|
|
3517
3961
|
token: "token";
|
|
@@ -3529,6 +3973,7 @@ declare const impContract: {
|
|
|
3529
3973
|
image: "image";
|
|
3530
3974
|
imp: "imp";
|
|
3531
3975
|
secret: "secret";
|
|
3976
|
+
service: "service";
|
|
3532
3977
|
session: "session";
|
|
3533
3978
|
"ssh-key": "ssh-key";
|
|
3534
3979
|
token: "token";
|
|
@@ -3588,19 +4033,554 @@ declare const impContract: {
|
|
|
3588
4033
|
readonly status: 409;
|
|
3589
4034
|
};
|
|
3590
4035
|
}>, Record<never, never>>;
|
|
3591
|
-
|
|
4036
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3592
4037
|
name: z.ZodString;
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
|
|
3603
|
-
|
|
4038
|
+
service: z.ZodObject<{
|
|
4039
|
+
name: z.ZodString;
|
|
4040
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4041
|
+
env: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
4042
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
4043
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4044
|
+
restart: z.ZodOptional<z.ZodEnum<{
|
|
4045
|
+
always: "always";
|
|
4046
|
+
never: "never";
|
|
4047
|
+
"on-failure": "on-failure";
|
|
4048
|
+
}>>;
|
|
4049
|
+
}, z.core.$strip>;
|
|
4050
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
4051
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4052
|
+
NOT_FOUND: {
|
|
4053
|
+
readonly message: "Not found";
|
|
4054
|
+
readonly data: z.ZodObject<{
|
|
4055
|
+
kind: z.ZodEnum<{
|
|
4056
|
+
backup: "backup";
|
|
4057
|
+
checkpoint: "checkpoint";
|
|
4058
|
+
grant: "grant";
|
|
4059
|
+
image: "image";
|
|
4060
|
+
imp: "imp";
|
|
4061
|
+
secret: "secret";
|
|
4062
|
+
service: "service";
|
|
4063
|
+
session: "session";
|
|
4064
|
+
"ssh-key": "ssh-key";
|
|
4065
|
+
token: "token";
|
|
4066
|
+
}>;
|
|
4067
|
+
name: z.ZodString;
|
|
4068
|
+
}, z.core.$strip>;
|
|
4069
|
+
};
|
|
4070
|
+
CONFLICT: {
|
|
4071
|
+
readonly message: "Already exists";
|
|
4072
|
+
readonly data: z.ZodObject<{
|
|
4073
|
+
kind: z.ZodEnum<{
|
|
4074
|
+
backup: "backup";
|
|
4075
|
+
checkpoint: "checkpoint";
|
|
4076
|
+
grant: "grant";
|
|
4077
|
+
image: "image";
|
|
4078
|
+
imp: "imp";
|
|
4079
|
+
secret: "secret";
|
|
4080
|
+
service: "service";
|
|
4081
|
+
session: "session";
|
|
4082
|
+
"ssh-key": "ssh-key";
|
|
4083
|
+
token: "token";
|
|
4084
|
+
}>;
|
|
4085
|
+
name: z.ZodString;
|
|
4086
|
+
}, z.core.$strip>;
|
|
4087
|
+
};
|
|
4088
|
+
FORBIDDEN: {
|
|
4089
|
+
readonly message: "Not allowed";
|
|
4090
|
+
};
|
|
4091
|
+
PRECONDITION_FAILED: {
|
|
4092
|
+
readonly message: "Not possible on this host";
|
|
4093
|
+
};
|
|
4094
|
+
RAM_BUDGET_EXCEEDED: {
|
|
4095
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
4096
|
+
readonly status: 503;
|
|
4097
|
+
readonly data: z.ZodObject<{
|
|
4098
|
+
budgetMib: z.ZodInt;
|
|
4099
|
+
usedMib: z.ZodInt;
|
|
4100
|
+
requestedMib: z.ZodInt;
|
|
4101
|
+
}, z.core.$strip>;
|
|
4102
|
+
};
|
|
4103
|
+
SERVICE_UNAVAILABLE: {
|
|
4104
|
+
readonly message: "impd is stopping";
|
|
4105
|
+
};
|
|
4106
|
+
INVALID_STATE: {
|
|
4107
|
+
readonly message: "The imp is not in a state that allows this";
|
|
4108
|
+
readonly status: 409;
|
|
4109
|
+
readonly data: z.ZodObject<{
|
|
4110
|
+
state: z.ZodEnum<{
|
|
4111
|
+
creating: "creating";
|
|
4112
|
+
error: "error";
|
|
4113
|
+
running: "running";
|
|
4114
|
+
sleeping: "sleeping";
|
|
4115
|
+
stopped: "stopped";
|
|
4116
|
+
}>;
|
|
4117
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
4118
|
+
creating: "creating";
|
|
4119
|
+
error: "error";
|
|
4120
|
+
running: "running";
|
|
4121
|
+
sleeping: "sleeping";
|
|
4122
|
+
stopped: "stopped";
|
|
4123
|
+
}>>;
|
|
4124
|
+
}, z.core.$strip>;
|
|
4125
|
+
};
|
|
4126
|
+
DISK_FULL: {
|
|
4127
|
+
readonly message: "Not enough free disk on the host";
|
|
4128
|
+
readonly status: 507;
|
|
4129
|
+
readonly data: z.ZodObject<{
|
|
4130
|
+
availableBytes: z.ZodInt;
|
|
4131
|
+
reserveBytes: z.ZodInt;
|
|
4132
|
+
requestedBytes: z.ZodInt;
|
|
4133
|
+
}, z.core.$strip>;
|
|
4134
|
+
};
|
|
4135
|
+
AGENT_OUTDATED: {
|
|
4136
|
+
readonly message: "The imp's agent is too old for this";
|
|
4137
|
+
readonly status: 409;
|
|
4138
|
+
};
|
|
4139
|
+
}>, Record<never, never>>;
|
|
4140
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4141
|
+
name: z.ZodString;
|
|
4142
|
+
service: z.ZodString;
|
|
4143
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4144
|
+
NOT_FOUND: {
|
|
4145
|
+
readonly message: "Not found";
|
|
4146
|
+
readonly data: z.ZodObject<{
|
|
4147
|
+
kind: z.ZodEnum<{
|
|
4148
|
+
backup: "backup";
|
|
4149
|
+
checkpoint: "checkpoint";
|
|
4150
|
+
grant: "grant";
|
|
4151
|
+
image: "image";
|
|
4152
|
+
imp: "imp";
|
|
4153
|
+
secret: "secret";
|
|
4154
|
+
service: "service";
|
|
4155
|
+
session: "session";
|
|
4156
|
+
"ssh-key": "ssh-key";
|
|
4157
|
+
token: "token";
|
|
4158
|
+
}>;
|
|
4159
|
+
name: z.ZodString;
|
|
4160
|
+
}, z.core.$strip>;
|
|
4161
|
+
};
|
|
4162
|
+
CONFLICT: {
|
|
4163
|
+
readonly message: "Already exists";
|
|
4164
|
+
readonly data: z.ZodObject<{
|
|
4165
|
+
kind: z.ZodEnum<{
|
|
4166
|
+
backup: "backup";
|
|
4167
|
+
checkpoint: "checkpoint";
|
|
4168
|
+
grant: "grant";
|
|
4169
|
+
image: "image";
|
|
4170
|
+
imp: "imp";
|
|
4171
|
+
secret: "secret";
|
|
4172
|
+
service: "service";
|
|
4173
|
+
session: "session";
|
|
4174
|
+
"ssh-key": "ssh-key";
|
|
4175
|
+
token: "token";
|
|
4176
|
+
}>;
|
|
4177
|
+
name: z.ZodString;
|
|
4178
|
+
}, z.core.$strip>;
|
|
4179
|
+
};
|
|
4180
|
+
FORBIDDEN: {
|
|
4181
|
+
readonly message: "Not allowed";
|
|
4182
|
+
};
|
|
4183
|
+
PRECONDITION_FAILED: {
|
|
4184
|
+
readonly message: "Not possible on this host";
|
|
4185
|
+
};
|
|
4186
|
+
RAM_BUDGET_EXCEEDED: {
|
|
4187
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
4188
|
+
readonly status: 503;
|
|
4189
|
+
readonly data: z.ZodObject<{
|
|
4190
|
+
budgetMib: z.ZodInt;
|
|
4191
|
+
usedMib: z.ZodInt;
|
|
4192
|
+
requestedMib: z.ZodInt;
|
|
4193
|
+
}, z.core.$strip>;
|
|
4194
|
+
};
|
|
4195
|
+
SERVICE_UNAVAILABLE: {
|
|
4196
|
+
readonly message: "impd is stopping";
|
|
4197
|
+
};
|
|
4198
|
+
INVALID_STATE: {
|
|
4199
|
+
readonly message: "The imp is not in a state that allows this";
|
|
4200
|
+
readonly status: 409;
|
|
4201
|
+
readonly data: z.ZodObject<{
|
|
4202
|
+
state: z.ZodEnum<{
|
|
4203
|
+
creating: "creating";
|
|
4204
|
+
error: "error";
|
|
4205
|
+
running: "running";
|
|
4206
|
+
sleeping: "sleeping";
|
|
4207
|
+
stopped: "stopped";
|
|
4208
|
+
}>;
|
|
4209
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
4210
|
+
creating: "creating";
|
|
4211
|
+
error: "error";
|
|
4212
|
+
running: "running";
|
|
4213
|
+
sleeping: "sleeping";
|
|
4214
|
+
stopped: "stopped";
|
|
4215
|
+
}>>;
|
|
4216
|
+
}, z.core.$strip>;
|
|
4217
|
+
};
|
|
4218
|
+
DISK_FULL: {
|
|
4219
|
+
readonly message: "Not enough free disk on the host";
|
|
4220
|
+
readonly status: 507;
|
|
4221
|
+
readonly data: z.ZodObject<{
|
|
4222
|
+
availableBytes: z.ZodInt;
|
|
4223
|
+
reserveBytes: z.ZodInt;
|
|
4224
|
+
requestedBytes: z.ZodInt;
|
|
4225
|
+
}, z.core.$strip>;
|
|
4226
|
+
};
|
|
4227
|
+
AGENT_OUTDATED: {
|
|
4228
|
+
readonly message: "The imp's agent is too old for this";
|
|
4229
|
+
readonly status: 409;
|
|
4230
|
+
};
|
|
4231
|
+
}>, Record<never, never>>;
|
|
4232
|
+
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4233
|
+
name: z.ZodString;
|
|
4234
|
+
service: z.ZodString;
|
|
4235
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4236
|
+
NOT_FOUND: {
|
|
4237
|
+
readonly message: "Not found";
|
|
4238
|
+
readonly data: z.ZodObject<{
|
|
4239
|
+
kind: z.ZodEnum<{
|
|
4240
|
+
backup: "backup";
|
|
4241
|
+
checkpoint: "checkpoint";
|
|
4242
|
+
grant: "grant";
|
|
4243
|
+
image: "image";
|
|
4244
|
+
imp: "imp";
|
|
4245
|
+
secret: "secret";
|
|
4246
|
+
service: "service";
|
|
4247
|
+
session: "session";
|
|
4248
|
+
"ssh-key": "ssh-key";
|
|
4249
|
+
token: "token";
|
|
4250
|
+
}>;
|
|
4251
|
+
name: z.ZodString;
|
|
4252
|
+
}, z.core.$strip>;
|
|
4253
|
+
};
|
|
4254
|
+
CONFLICT: {
|
|
4255
|
+
readonly message: "Already exists";
|
|
4256
|
+
readonly data: z.ZodObject<{
|
|
4257
|
+
kind: z.ZodEnum<{
|
|
4258
|
+
backup: "backup";
|
|
4259
|
+
checkpoint: "checkpoint";
|
|
4260
|
+
grant: "grant";
|
|
4261
|
+
image: "image";
|
|
4262
|
+
imp: "imp";
|
|
4263
|
+
secret: "secret";
|
|
4264
|
+
service: "service";
|
|
4265
|
+
session: "session";
|
|
4266
|
+
"ssh-key": "ssh-key";
|
|
4267
|
+
token: "token";
|
|
4268
|
+
}>;
|
|
4269
|
+
name: z.ZodString;
|
|
4270
|
+
}, z.core.$strip>;
|
|
4271
|
+
};
|
|
4272
|
+
FORBIDDEN: {
|
|
4273
|
+
readonly message: "Not allowed";
|
|
4274
|
+
};
|
|
4275
|
+
PRECONDITION_FAILED: {
|
|
4276
|
+
readonly message: "Not possible on this host";
|
|
4277
|
+
};
|
|
4278
|
+
RAM_BUDGET_EXCEEDED: {
|
|
4279
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
4280
|
+
readonly status: 503;
|
|
4281
|
+
readonly data: z.ZodObject<{
|
|
4282
|
+
budgetMib: z.ZodInt;
|
|
4283
|
+
usedMib: z.ZodInt;
|
|
4284
|
+
requestedMib: z.ZodInt;
|
|
4285
|
+
}, z.core.$strip>;
|
|
4286
|
+
};
|
|
4287
|
+
SERVICE_UNAVAILABLE: {
|
|
4288
|
+
readonly message: "impd is stopping";
|
|
4289
|
+
};
|
|
4290
|
+
INVALID_STATE: {
|
|
4291
|
+
readonly message: "The imp is not in a state that allows this";
|
|
4292
|
+
readonly status: 409;
|
|
4293
|
+
readonly data: z.ZodObject<{
|
|
4294
|
+
state: z.ZodEnum<{
|
|
4295
|
+
creating: "creating";
|
|
4296
|
+
error: "error";
|
|
4297
|
+
running: "running";
|
|
4298
|
+
sleeping: "sleeping";
|
|
4299
|
+
stopped: "stopped";
|
|
4300
|
+
}>;
|
|
4301
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
4302
|
+
creating: "creating";
|
|
4303
|
+
error: "error";
|
|
4304
|
+
running: "running";
|
|
4305
|
+
sleeping: "sleeping";
|
|
4306
|
+
stopped: "stopped";
|
|
4307
|
+
}>>;
|
|
4308
|
+
}, z.core.$strip>;
|
|
4309
|
+
};
|
|
4310
|
+
DISK_FULL: {
|
|
4311
|
+
readonly message: "Not enough free disk on the host";
|
|
4312
|
+
readonly status: 507;
|
|
4313
|
+
readonly data: z.ZodObject<{
|
|
4314
|
+
availableBytes: z.ZodInt;
|
|
4315
|
+
reserveBytes: z.ZodInt;
|
|
4316
|
+
requestedBytes: z.ZodInt;
|
|
4317
|
+
}, z.core.$strip>;
|
|
4318
|
+
};
|
|
4319
|
+
AGENT_OUTDATED: {
|
|
4320
|
+
readonly message: "The imp's agent is too old for this";
|
|
4321
|
+
readonly status: 409;
|
|
4322
|
+
};
|
|
4323
|
+
}>, Record<never, never>>;
|
|
4324
|
+
logs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4325
|
+
name: z.ZodString;
|
|
4326
|
+
service: z.ZodOptional<z.ZodString>;
|
|
4327
|
+
lines: z.ZodOptional<z.ZodInt>;
|
|
4328
|
+
follow: z.ZodOptional<z.ZodBoolean>;
|
|
4329
|
+
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
4330
|
+
type: "log";
|
|
4331
|
+
service: string;
|
|
4332
|
+
text: string;
|
|
4333
|
+
} | {
|
|
4334
|
+
type: "sleeping";
|
|
4335
|
+
state: "creating" | "error" | "running" | "sleeping" | "stopped";
|
|
4336
|
+
} | {
|
|
4337
|
+
type: "awake";
|
|
4338
|
+
} | {
|
|
4339
|
+
type: "restarting";
|
|
4340
|
+
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
4341
|
+
type: "log";
|
|
4342
|
+
service: string;
|
|
4343
|
+
text: string;
|
|
4344
|
+
} | {
|
|
4345
|
+
type: "sleeping";
|
|
4346
|
+
state: "creating" | "error" | "running" | "sleeping" | "stopped";
|
|
4347
|
+
} | {
|
|
4348
|
+
type: "awake";
|
|
4349
|
+
} | {
|
|
4350
|
+
type: "restarting";
|
|
4351
|
+
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4352
|
+
NOT_FOUND: {
|
|
4353
|
+
readonly message: "Not found";
|
|
4354
|
+
readonly data: z.ZodObject<{
|
|
4355
|
+
kind: z.ZodEnum<{
|
|
4356
|
+
backup: "backup";
|
|
4357
|
+
checkpoint: "checkpoint";
|
|
4358
|
+
grant: "grant";
|
|
4359
|
+
image: "image";
|
|
4360
|
+
imp: "imp";
|
|
4361
|
+
secret: "secret";
|
|
4362
|
+
service: "service";
|
|
4363
|
+
session: "session";
|
|
4364
|
+
"ssh-key": "ssh-key";
|
|
4365
|
+
token: "token";
|
|
4366
|
+
}>;
|
|
4367
|
+
name: z.ZodString;
|
|
4368
|
+
}, z.core.$strip>;
|
|
4369
|
+
};
|
|
4370
|
+
CONFLICT: {
|
|
4371
|
+
readonly message: "Already exists";
|
|
4372
|
+
readonly data: z.ZodObject<{
|
|
4373
|
+
kind: z.ZodEnum<{
|
|
4374
|
+
backup: "backup";
|
|
4375
|
+
checkpoint: "checkpoint";
|
|
4376
|
+
grant: "grant";
|
|
4377
|
+
image: "image";
|
|
4378
|
+
imp: "imp";
|
|
4379
|
+
secret: "secret";
|
|
4380
|
+
service: "service";
|
|
4381
|
+
session: "session";
|
|
4382
|
+
"ssh-key": "ssh-key";
|
|
4383
|
+
token: "token";
|
|
4384
|
+
}>;
|
|
4385
|
+
name: z.ZodString;
|
|
4386
|
+
}, z.core.$strip>;
|
|
4387
|
+
};
|
|
4388
|
+
FORBIDDEN: {
|
|
4389
|
+
readonly message: "Not allowed";
|
|
4390
|
+
};
|
|
4391
|
+
PRECONDITION_FAILED: {
|
|
4392
|
+
readonly message: "Not possible on this host";
|
|
4393
|
+
};
|
|
4394
|
+
RAM_BUDGET_EXCEEDED: {
|
|
4395
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
4396
|
+
readonly status: 503;
|
|
4397
|
+
readonly data: z.ZodObject<{
|
|
4398
|
+
budgetMib: z.ZodInt;
|
|
4399
|
+
usedMib: z.ZodInt;
|
|
4400
|
+
requestedMib: z.ZodInt;
|
|
4401
|
+
}, z.core.$strip>;
|
|
4402
|
+
};
|
|
4403
|
+
SERVICE_UNAVAILABLE: {
|
|
4404
|
+
readonly message: "impd is stopping";
|
|
4405
|
+
};
|
|
4406
|
+
INVALID_STATE: {
|
|
4407
|
+
readonly message: "The imp is not in a state that allows this";
|
|
4408
|
+
readonly status: 409;
|
|
4409
|
+
readonly data: z.ZodObject<{
|
|
4410
|
+
state: z.ZodEnum<{
|
|
4411
|
+
creating: "creating";
|
|
4412
|
+
error: "error";
|
|
4413
|
+
running: "running";
|
|
4414
|
+
sleeping: "sleeping";
|
|
4415
|
+
stopped: "stopped";
|
|
4416
|
+
}>;
|
|
4417
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
4418
|
+
creating: "creating";
|
|
4419
|
+
error: "error";
|
|
4420
|
+
running: "running";
|
|
4421
|
+
sleeping: "sleeping";
|
|
4422
|
+
stopped: "stopped";
|
|
4423
|
+
}>>;
|
|
4424
|
+
}, z.core.$strip>;
|
|
4425
|
+
};
|
|
4426
|
+
DISK_FULL: {
|
|
4427
|
+
readonly message: "Not enough free disk on the host";
|
|
4428
|
+
readonly status: 507;
|
|
4429
|
+
readonly data: z.ZodObject<{
|
|
4430
|
+
availableBytes: z.ZodInt;
|
|
4431
|
+
reserveBytes: z.ZodInt;
|
|
4432
|
+
requestedBytes: z.ZodInt;
|
|
4433
|
+
}, z.core.$strip>;
|
|
4434
|
+
};
|
|
4435
|
+
AGENT_OUTDATED: {
|
|
4436
|
+
readonly message: "The imp's agent is too old for this";
|
|
4437
|
+
readonly status: 409;
|
|
4438
|
+
};
|
|
4439
|
+
}>, Record<never, never>>;
|
|
4440
|
+
};
|
|
4441
|
+
secrets: {
|
|
4442
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4443
|
+
name: z.ZodString;
|
|
4444
|
+
kind: z.ZodEnum<{
|
|
4445
|
+
anthropic: "anthropic";
|
|
4446
|
+
custom: "custom";
|
|
4447
|
+
github: "github";
|
|
4448
|
+
npm: "npm";
|
|
4449
|
+
}>;
|
|
4450
|
+
value: z.ZodString;
|
|
4451
|
+
rules: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
4452
|
+
host: z.ZodString;
|
|
4453
|
+
header: z.ZodString;
|
|
4454
|
+
scheme: z.ZodEnum<{
|
|
4455
|
+
basic: "basic";
|
|
4456
|
+
bearer: "bearer";
|
|
4457
|
+
raw: "raw";
|
|
4458
|
+
}>;
|
|
4459
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4460
|
+
}, z.core.$strip>>>;
|
|
4461
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
4462
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4463
|
+
name: z.ZodString;
|
|
4464
|
+
kind: z.ZodEnum<{
|
|
4465
|
+
anthropic: "anthropic";
|
|
4466
|
+
custom: "custom";
|
|
4467
|
+
github: "github";
|
|
4468
|
+
npm: "npm";
|
|
4469
|
+
}>;
|
|
4470
|
+
rules: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4471
|
+
host: z.ZodString;
|
|
4472
|
+
header: z.ZodString;
|
|
4473
|
+
scheme: z.ZodEnum<{
|
|
4474
|
+
basic: "basic";
|
|
4475
|
+
bearer: "bearer";
|
|
4476
|
+
raw: "raw";
|
|
4477
|
+
}>;
|
|
4478
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4479
|
+
}, z.core.$strip>>>;
|
|
4480
|
+
imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4481
|
+
createdAt: z.ZodDate;
|
|
4482
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4483
|
+
NOT_FOUND: {
|
|
4484
|
+
readonly message: "Not found";
|
|
4485
|
+
readonly data: z.ZodObject<{
|
|
4486
|
+
kind: z.ZodEnum<{
|
|
4487
|
+
backup: "backup";
|
|
4488
|
+
checkpoint: "checkpoint";
|
|
4489
|
+
grant: "grant";
|
|
4490
|
+
image: "image";
|
|
4491
|
+
imp: "imp";
|
|
4492
|
+
secret: "secret";
|
|
4493
|
+
service: "service";
|
|
4494
|
+
session: "session";
|
|
4495
|
+
"ssh-key": "ssh-key";
|
|
4496
|
+
token: "token";
|
|
4497
|
+
}>;
|
|
4498
|
+
name: z.ZodString;
|
|
4499
|
+
}, z.core.$strip>;
|
|
4500
|
+
};
|
|
4501
|
+
CONFLICT: {
|
|
4502
|
+
readonly message: "Already exists";
|
|
4503
|
+
readonly data: z.ZodObject<{
|
|
4504
|
+
kind: z.ZodEnum<{
|
|
4505
|
+
backup: "backup";
|
|
4506
|
+
checkpoint: "checkpoint";
|
|
4507
|
+
grant: "grant";
|
|
4508
|
+
image: "image";
|
|
4509
|
+
imp: "imp";
|
|
4510
|
+
secret: "secret";
|
|
4511
|
+
service: "service";
|
|
4512
|
+
session: "session";
|
|
4513
|
+
"ssh-key": "ssh-key";
|
|
4514
|
+
token: "token";
|
|
4515
|
+
}>;
|
|
4516
|
+
name: z.ZodString;
|
|
4517
|
+
}, z.core.$strip>;
|
|
4518
|
+
};
|
|
4519
|
+
FORBIDDEN: {
|
|
4520
|
+
readonly message: "Not allowed";
|
|
4521
|
+
};
|
|
4522
|
+
PRECONDITION_FAILED: {
|
|
4523
|
+
readonly message: "Not possible on this host";
|
|
4524
|
+
};
|
|
4525
|
+
RAM_BUDGET_EXCEEDED: {
|
|
4526
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
4527
|
+
readonly status: 503;
|
|
4528
|
+
readonly data: z.ZodObject<{
|
|
4529
|
+
budgetMib: z.ZodInt;
|
|
4530
|
+
usedMib: z.ZodInt;
|
|
4531
|
+
requestedMib: z.ZodInt;
|
|
4532
|
+
}, z.core.$strip>;
|
|
4533
|
+
};
|
|
4534
|
+
SERVICE_UNAVAILABLE: {
|
|
4535
|
+
readonly message: "impd is stopping";
|
|
4536
|
+
};
|
|
4537
|
+
INVALID_STATE: {
|
|
4538
|
+
readonly message: "The imp is not in a state that allows this";
|
|
4539
|
+
readonly status: 409;
|
|
4540
|
+
readonly data: z.ZodObject<{
|
|
4541
|
+
state: z.ZodEnum<{
|
|
4542
|
+
creating: "creating";
|
|
4543
|
+
error: "error";
|
|
4544
|
+
running: "running";
|
|
4545
|
+
sleeping: "sleeping";
|
|
4546
|
+
stopped: "stopped";
|
|
4547
|
+
}>;
|
|
4548
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
4549
|
+
creating: "creating";
|
|
4550
|
+
error: "error";
|
|
4551
|
+
running: "running";
|
|
4552
|
+
sleeping: "sleeping";
|
|
4553
|
+
stopped: "stopped";
|
|
4554
|
+
}>>;
|
|
4555
|
+
}, z.core.$strip>;
|
|
4556
|
+
};
|
|
4557
|
+
DISK_FULL: {
|
|
4558
|
+
readonly message: "Not enough free disk on the host";
|
|
4559
|
+
readonly status: 507;
|
|
4560
|
+
readonly data: z.ZodObject<{
|
|
4561
|
+
availableBytes: z.ZodInt;
|
|
4562
|
+
reserveBytes: z.ZodInt;
|
|
4563
|
+
requestedBytes: z.ZodInt;
|
|
4564
|
+
}, z.core.$strip>;
|
|
4565
|
+
};
|
|
4566
|
+
AGENT_OUTDATED: {
|
|
4567
|
+
readonly message: "The imp's agent is too old for this";
|
|
4568
|
+
readonly status: 409;
|
|
4569
|
+
};
|
|
4570
|
+
}>, Record<never, never>>;
|
|
4571
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
4572
|
+
name: z.ZodString;
|
|
4573
|
+
kind: z.ZodEnum<{
|
|
4574
|
+
anthropic: "anthropic";
|
|
4575
|
+
custom: "custom";
|
|
4576
|
+
github: "github";
|
|
4577
|
+
npm: "npm";
|
|
4578
|
+
}>;
|
|
4579
|
+
rules: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4580
|
+
host: z.ZodString;
|
|
4581
|
+
header: z.ZodString;
|
|
4582
|
+
scheme: z.ZodEnum<{
|
|
4583
|
+
basic: "basic";
|
|
3604
4584
|
bearer: "bearer";
|
|
3605
4585
|
raw: "raw";
|
|
3606
4586
|
}>;
|
|
@@ -3619,6 +4599,7 @@ declare const impContract: {
|
|
|
3619
4599
|
image: "image";
|
|
3620
4600
|
imp: "imp";
|
|
3621
4601
|
secret: "secret";
|
|
4602
|
+
service: "service";
|
|
3622
4603
|
session: "session";
|
|
3623
4604
|
"ssh-key": "ssh-key";
|
|
3624
4605
|
token: "token";
|
|
@@ -3636,6 +4617,7 @@ declare const impContract: {
|
|
|
3636
4617
|
image: "image";
|
|
3637
4618
|
imp: "imp";
|
|
3638
4619
|
secret: "secret";
|
|
4620
|
+
service: "service";
|
|
3639
4621
|
session: "session";
|
|
3640
4622
|
"ssh-key": "ssh-key";
|
|
3641
4623
|
token: "token";
|
|
@@ -3708,6 +4690,7 @@ declare const impContract: {
|
|
|
3708
4690
|
image: "image";
|
|
3709
4691
|
imp: "imp";
|
|
3710
4692
|
secret: "secret";
|
|
4693
|
+
service: "service";
|
|
3711
4694
|
session: "session";
|
|
3712
4695
|
"ssh-key": "ssh-key";
|
|
3713
4696
|
token: "token";
|
|
@@ -3725,6 +4708,7 @@ declare const impContract: {
|
|
|
3725
4708
|
image: "image";
|
|
3726
4709
|
imp: "imp";
|
|
3727
4710
|
secret: "secret";
|
|
4711
|
+
service: "service";
|
|
3728
4712
|
session: "session";
|
|
3729
4713
|
"ssh-key": "ssh-key";
|
|
3730
4714
|
token: "token";
|
|
@@ -3800,6 +4784,7 @@ declare const impContract: {
|
|
|
3800
4784
|
image: "image";
|
|
3801
4785
|
imp: "imp";
|
|
3802
4786
|
secret: "secret";
|
|
4787
|
+
service: "service";
|
|
3803
4788
|
session: "session";
|
|
3804
4789
|
"ssh-key": "ssh-key";
|
|
3805
4790
|
token: "token";
|
|
@@ -3817,6 +4802,7 @@ declare const impContract: {
|
|
|
3817
4802
|
image: "image";
|
|
3818
4803
|
imp: "imp";
|
|
3819
4804
|
secret: "secret";
|
|
4805
|
+
service: "service";
|
|
3820
4806
|
session: "session";
|
|
3821
4807
|
"ssh-key": "ssh-key";
|
|
3822
4808
|
token: "token";
|
|
@@ -3890,6 +4876,7 @@ declare const impContract: {
|
|
|
3890
4876
|
image: "image";
|
|
3891
4877
|
imp: "imp";
|
|
3892
4878
|
secret: "secret";
|
|
4879
|
+
service: "service";
|
|
3893
4880
|
session: "session";
|
|
3894
4881
|
"ssh-key": "ssh-key";
|
|
3895
4882
|
token: "token";
|
|
@@ -3907,6 +4894,7 @@ declare const impContract: {
|
|
|
3907
4894
|
image: "image";
|
|
3908
4895
|
imp: "imp";
|
|
3909
4896
|
secret: "secret";
|
|
4897
|
+
service: "service";
|
|
3910
4898
|
session: "session";
|
|
3911
4899
|
"ssh-key": "ssh-key";
|
|
3912
4900
|
token: "token";
|
|
@@ -3979,6 +4967,7 @@ declare const impContract: {
|
|
|
3979
4967
|
image: "image";
|
|
3980
4968
|
imp: "imp";
|
|
3981
4969
|
secret: "secret";
|
|
4970
|
+
service: "service";
|
|
3982
4971
|
session: "session";
|
|
3983
4972
|
"ssh-key": "ssh-key";
|
|
3984
4973
|
token: "token";
|
|
@@ -3996,6 +4985,7 @@ declare const impContract: {
|
|
|
3996
4985
|
image: "image";
|
|
3997
4986
|
imp: "imp";
|
|
3998
4987
|
secret: "secret";
|
|
4988
|
+
service: "service";
|
|
3999
4989
|
session: "session";
|
|
4000
4990
|
"ssh-key": "ssh-key";
|
|
4001
4991
|
token: "token";
|
|
@@ -4082,6 +5072,7 @@ declare const impContract: {
|
|
|
4082
5072
|
image: "image";
|
|
4083
5073
|
imp: "imp";
|
|
4084
5074
|
secret: "secret";
|
|
5075
|
+
service: "service";
|
|
4085
5076
|
session: "session";
|
|
4086
5077
|
"ssh-key": "ssh-key";
|
|
4087
5078
|
token: "token";
|
|
@@ -4099,6 +5090,7 @@ declare const impContract: {
|
|
|
4099
5090
|
image: "image";
|
|
4100
5091
|
imp: "imp";
|
|
4101
5092
|
secret: "secret";
|
|
5093
|
+
service: "service";
|
|
4102
5094
|
session: "session";
|
|
4103
5095
|
"ssh-key": "ssh-key";
|
|
4104
5096
|
token: "token";
|
|
@@ -4185,6 +5177,7 @@ declare const impContract: {
|
|
|
4185
5177
|
image: "image";
|
|
4186
5178
|
imp: "imp";
|
|
4187
5179
|
secret: "secret";
|
|
5180
|
+
service: "service";
|
|
4188
5181
|
session: "session";
|
|
4189
5182
|
"ssh-key": "ssh-key";
|
|
4190
5183
|
token: "token";
|
|
@@ -4202,6 +5195,7 @@ declare const impContract: {
|
|
|
4202
5195
|
image: "image";
|
|
4203
5196
|
imp: "imp";
|
|
4204
5197
|
secret: "secret";
|
|
5198
|
+
service: "service";
|
|
4205
5199
|
session: "session";
|
|
4206
5200
|
"ssh-key": "ssh-key";
|
|
4207
5201
|
token: "token";
|
|
@@ -4298,12 +5292,28 @@ declare const impContract: {
|
|
|
4298
5292
|
sessions?: number | undefined;
|
|
4299
5293
|
coldBootReason?: string | undefined;
|
|
4300
5294
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5295
|
+
cpu?: {
|
|
5296
|
+
limit: number | null;
|
|
5297
|
+
weight: number;
|
|
5298
|
+
} | undefined;
|
|
5299
|
+
resources?: {
|
|
5300
|
+
wakeCount: number;
|
|
5301
|
+
awakeMs: number;
|
|
5302
|
+
sample?: {
|
|
5303
|
+
measuredAt: Date;
|
|
5304
|
+
since: Date;
|
|
5305
|
+
cpuPercent?: number | undefined;
|
|
5306
|
+
cpuThrottledMs: number;
|
|
5307
|
+
netRxBytes: number;
|
|
5308
|
+
netTxBytes: number;
|
|
5309
|
+
} | undefined;
|
|
5310
|
+
} | undefined;
|
|
4301
5311
|
};
|
|
4302
5312
|
} | {
|
|
4303
5313
|
v: 1;
|
|
4304
5314
|
at: Date;
|
|
4305
5315
|
ev: "ImpChanged";
|
|
4306
|
-
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "woke";
|
|
5316
|
+
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "updated" | "woke";
|
|
4307
5317
|
imp: {
|
|
4308
5318
|
id: string;
|
|
4309
5319
|
name: string;
|
|
@@ -4334,6 +5344,22 @@ declare const impContract: {
|
|
|
4334
5344
|
sessions?: number | undefined;
|
|
4335
5345
|
coldBootReason?: string | undefined;
|
|
4336
5346
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5347
|
+
cpu?: {
|
|
5348
|
+
limit: number | null;
|
|
5349
|
+
weight: number;
|
|
5350
|
+
} | undefined;
|
|
5351
|
+
resources?: {
|
|
5352
|
+
wakeCount: number;
|
|
5353
|
+
awakeMs: number;
|
|
5354
|
+
sample?: {
|
|
5355
|
+
measuredAt: Date;
|
|
5356
|
+
since: Date;
|
|
5357
|
+
cpuPercent?: number | undefined;
|
|
5358
|
+
cpuThrottledMs: number;
|
|
5359
|
+
netRxBytes: number;
|
|
5360
|
+
netTxBytes: number;
|
|
5361
|
+
} | undefined;
|
|
5362
|
+
} | undefined;
|
|
4337
5363
|
};
|
|
4338
5364
|
detail?: Readonly<{
|
|
4339
5365
|
durationMs?: number | undefined;
|
|
@@ -4375,6 +5401,22 @@ declare const impContract: {
|
|
|
4375
5401
|
sessions?: number | undefined;
|
|
4376
5402
|
coldBootReason?: string | undefined;
|
|
4377
5403
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5404
|
+
cpu?: {
|
|
5405
|
+
limit: number | null;
|
|
5406
|
+
weight: number;
|
|
5407
|
+
} | undefined;
|
|
5408
|
+
resources?: {
|
|
5409
|
+
wakeCount: number;
|
|
5410
|
+
awakeMs: number;
|
|
5411
|
+
sample?: {
|
|
5412
|
+
measuredAt: Date;
|
|
5413
|
+
since: Date;
|
|
5414
|
+
cpuPercent?: number | undefined;
|
|
5415
|
+
cpuThrottledMs: number;
|
|
5416
|
+
netRxBytes: number;
|
|
5417
|
+
netTxBytes: number;
|
|
5418
|
+
} | undefined;
|
|
5419
|
+
} | undefined;
|
|
4378
5420
|
};
|
|
4379
5421
|
} | {
|
|
4380
5422
|
v: 1;
|
|
@@ -4445,12 +5487,28 @@ declare const impContract: {
|
|
|
4445
5487
|
sessions?: number | undefined;
|
|
4446
5488
|
coldBootReason?: string | undefined;
|
|
4447
5489
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5490
|
+
cpu?: {
|
|
5491
|
+
limit: number | null;
|
|
5492
|
+
weight: number;
|
|
5493
|
+
} | undefined;
|
|
5494
|
+
resources?: {
|
|
5495
|
+
wakeCount: number;
|
|
5496
|
+
awakeMs: number;
|
|
5497
|
+
sample?: {
|
|
5498
|
+
measuredAt: Date;
|
|
5499
|
+
since: Date;
|
|
5500
|
+
cpuPercent?: number | undefined;
|
|
5501
|
+
cpuThrottledMs: number;
|
|
5502
|
+
netRxBytes: number;
|
|
5503
|
+
netTxBytes: number;
|
|
5504
|
+
} | undefined;
|
|
5505
|
+
} | undefined;
|
|
4448
5506
|
};
|
|
4449
5507
|
} | {
|
|
4450
5508
|
v: 1;
|
|
4451
5509
|
at: Date;
|
|
4452
5510
|
ev: "ImpChanged";
|
|
4453
|
-
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "woke";
|
|
5511
|
+
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "updated" | "woke";
|
|
4454
5512
|
imp: {
|
|
4455
5513
|
id: string;
|
|
4456
5514
|
name: string;
|
|
@@ -4481,6 +5539,22 @@ declare const impContract: {
|
|
|
4481
5539
|
sessions?: number | undefined;
|
|
4482
5540
|
coldBootReason?: string | undefined;
|
|
4483
5541
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5542
|
+
cpu?: {
|
|
5543
|
+
limit: number | null;
|
|
5544
|
+
weight: number;
|
|
5545
|
+
} | undefined;
|
|
5546
|
+
resources?: {
|
|
5547
|
+
wakeCount: number;
|
|
5548
|
+
awakeMs: number;
|
|
5549
|
+
sample?: {
|
|
5550
|
+
measuredAt: Date;
|
|
5551
|
+
since: Date;
|
|
5552
|
+
cpuPercent?: number | undefined;
|
|
5553
|
+
cpuThrottledMs: number;
|
|
5554
|
+
netRxBytes: number;
|
|
5555
|
+
netTxBytes: number;
|
|
5556
|
+
} | undefined;
|
|
5557
|
+
} | undefined;
|
|
4484
5558
|
};
|
|
4485
5559
|
detail?: Readonly<{
|
|
4486
5560
|
durationMs?: number | undefined;
|
|
@@ -4522,6 +5596,22 @@ declare const impContract: {
|
|
|
4522
5596
|
sessions?: number | undefined;
|
|
4523
5597
|
coldBootReason?: string | undefined;
|
|
4524
5598
|
outdated?: readonly ("agent" | "firecracker" | "impd" | "kernel")[] | undefined;
|
|
5599
|
+
cpu?: {
|
|
5600
|
+
limit: number | null;
|
|
5601
|
+
weight: number;
|
|
5602
|
+
} | undefined;
|
|
5603
|
+
resources?: {
|
|
5604
|
+
wakeCount: number;
|
|
5605
|
+
awakeMs: number;
|
|
5606
|
+
sample?: {
|
|
5607
|
+
measuredAt: Date;
|
|
5608
|
+
since: Date;
|
|
5609
|
+
cpuPercent?: number | undefined;
|
|
5610
|
+
cpuThrottledMs: number;
|
|
5611
|
+
netRxBytes: number;
|
|
5612
|
+
netTxBytes: number;
|
|
5613
|
+
} | undefined;
|
|
5614
|
+
} | undefined;
|
|
4525
5615
|
};
|
|
4526
5616
|
} | {
|
|
4527
5617
|
v: 1;
|
|
@@ -4568,6 +5658,7 @@ declare const impContract: {
|
|
|
4568
5658
|
image: "image";
|
|
4569
5659
|
imp: "imp";
|
|
4570
5660
|
secret: "secret";
|
|
5661
|
+
service: "service";
|
|
4571
5662
|
session: "session";
|
|
4572
5663
|
"ssh-key": "ssh-key";
|
|
4573
5664
|
token: "token";
|
|
@@ -4585,6 +5676,7 @@ declare const impContract: {
|
|
|
4585
5676
|
image: "image";
|
|
4586
5677
|
imp: "imp";
|
|
4587
5678
|
secret: "secret";
|
|
5679
|
+
service: "service";
|
|
4588
5680
|
session: "session";
|
|
4589
5681
|
"ssh-key": "ssh-key";
|
|
4590
5682
|
token: "token";
|
|
@@ -4696,6 +5788,10 @@ declare const impContract: {
|
|
|
4696
5788
|
}, z.core.$strip>>>;
|
|
4697
5789
|
}, z.core.$strip>>;
|
|
4698
5790
|
}, z.core.$strip>;
|
|
5791
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
5792
|
+
hostCpus: z.ZodInt;
|
|
5793
|
+
limitsEnforced: z.ZodBoolean;
|
|
5794
|
+
}, z.core.$strip>>;
|
|
4699
5795
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4700
5796
|
NOT_FOUND: {
|
|
4701
5797
|
readonly message: "Not found";
|
|
@@ -4707,6 +5803,7 @@ declare const impContract: {
|
|
|
4707
5803
|
image: "image";
|
|
4708
5804
|
imp: "imp";
|
|
4709
5805
|
secret: "secret";
|
|
5806
|
+
service: "service";
|
|
4710
5807
|
session: "session";
|
|
4711
5808
|
"ssh-key": "ssh-key";
|
|
4712
5809
|
token: "token";
|
|
@@ -4724,6 +5821,7 @@ declare const impContract: {
|
|
|
4724
5821
|
image: "image";
|
|
4725
5822
|
imp: "imp";
|
|
4726
5823
|
secret: "secret";
|
|
5824
|
+
service: "service";
|
|
4727
5825
|
session: "session";
|
|
4728
5826
|
"ssh-key": "ssh-key";
|
|
4729
5827
|
token: "token";
|
|
@@ -4808,6 +5906,7 @@ declare const impContract: {
|
|
|
4808
5906
|
image: "image";
|
|
4809
5907
|
imp: "imp";
|
|
4810
5908
|
secret: "secret";
|
|
5909
|
+
service: "service";
|
|
4811
5910
|
session: "session";
|
|
4812
5911
|
"ssh-key": "ssh-key";
|
|
4813
5912
|
token: "token";
|
|
@@ -4825,6 +5924,7 @@ declare const impContract: {
|
|
|
4825
5924
|
image: "image";
|
|
4826
5925
|
imp: "imp";
|
|
4827
5926
|
secret: "secret";
|
|
5927
|
+
service: "service";
|
|
4828
5928
|
session: "session";
|
|
4829
5929
|
"ssh-key": "ssh-key";
|
|
4830
5930
|
token: "token";
|
|
@@ -4911,6 +6011,7 @@ declare const impContract: {
|
|
|
4911
6011
|
image: "image";
|
|
4912
6012
|
imp: "imp";
|
|
4913
6013
|
secret: "secret";
|
|
6014
|
+
service: "service";
|
|
4914
6015
|
session: "session";
|
|
4915
6016
|
"ssh-key": "ssh-key";
|
|
4916
6017
|
token: "token";
|
|
@@ -4928,6 +6029,7 @@ declare const impContract: {
|
|
|
4928
6029
|
image: "image";
|
|
4929
6030
|
imp: "imp";
|
|
4930
6031
|
secret: "secret";
|
|
6032
|
+
service: "service";
|
|
4931
6033
|
session: "session";
|
|
4932
6034
|
"ssh-key": "ssh-key";
|
|
4933
6035
|
token: "token";
|
|
@@ -5024,6 +6126,7 @@ declare const impContract: {
|
|
|
5024
6126
|
image: "image";
|
|
5025
6127
|
imp: "imp";
|
|
5026
6128
|
secret: "secret";
|
|
6129
|
+
service: "service";
|
|
5027
6130
|
session: "session";
|
|
5028
6131
|
"ssh-key": "ssh-key";
|
|
5029
6132
|
token: "token";
|
|
@@ -5041,6 +6144,7 @@ declare const impContract: {
|
|
|
5041
6144
|
image: "image";
|
|
5042
6145
|
imp: "imp";
|
|
5043
6146
|
secret: "secret";
|
|
6147
|
+
service: "service";
|
|
5044
6148
|
session: "session";
|
|
5045
6149
|
"ssh-key": "ssh-key";
|
|
5046
6150
|
token: "token";
|
|
@@ -5113,6 +6217,7 @@ declare const impContract: {
|
|
|
5113
6217
|
image: "image";
|
|
5114
6218
|
imp: "imp";
|
|
5115
6219
|
secret: "secret";
|
|
6220
|
+
service: "service";
|
|
5116
6221
|
session: "session";
|
|
5117
6222
|
"ssh-key": "ssh-key";
|
|
5118
6223
|
token: "token";
|
|
@@ -5130,6 +6235,7 @@ declare const impContract: {
|
|
|
5130
6235
|
image: "image";
|
|
5131
6236
|
imp: "imp";
|
|
5132
6237
|
secret: "secret";
|
|
6238
|
+
service: "service";
|
|
5133
6239
|
session: "session";
|
|
5134
6240
|
"ssh-key": "ssh-key";
|
|
5135
6241
|
token: "token";
|
|
@@ -5207,6 +6313,7 @@ declare const impContract: {
|
|
|
5207
6313
|
image: "image";
|
|
5208
6314
|
imp: "imp";
|
|
5209
6315
|
secret: "secret";
|
|
6316
|
+
service: "service";
|
|
5210
6317
|
session: "session";
|
|
5211
6318
|
"ssh-key": "ssh-key";
|
|
5212
6319
|
token: "token";
|
|
@@ -5224,6 +6331,7 @@ declare const impContract: {
|
|
|
5224
6331
|
image: "image";
|
|
5225
6332
|
imp: "imp";
|
|
5226
6333
|
secret: "secret";
|
|
6334
|
+
service: "service";
|
|
5227
6335
|
session: "session";
|
|
5228
6336
|
"ssh-key": "ssh-key";
|
|
5229
6337
|
token: "token";
|
|
@@ -5297,6 +6405,7 @@ declare const impContract: {
|
|
|
5297
6405
|
image: "image";
|
|
5298
6406
|
imp: "imp";
|
|
5299
6407
|
secret: "secret";
|
|
6408
|
+
service: "service";
|
|
5300
6409
|
session: "session";
|
|
5301
6410
|
"ssh-key": "ssh-key";
|
|
5302
6411
|
token: "token";
|
|
@@ -5314,6 +6423,7 @@ declare const impContract: {
|
|
|
5314
6423
|
image: "image";
|
|
5315
6424
|
imp: "imp";
|
|
5316
6425
|
secret: "secret";
|
|
6426
|
+
service: "service";
|
|
5317
6427
|
session: "session";
|
|
5318
6428
|
"ssh-key": "ssh-key";
|
|
5319
6429
|
token: "token";
|
|
@@ -5398,6 +6508,7 @@ declare const impContract: {
|
|
|
5398
6508
|
image: "image";
|
|
5399
6509
|
imp: "imp";
|
|
5400
6510
|
secret: "secret";
|
|
6511
|
+
service: "service";
|
|
5401
6512
|
session: "session";
|
|
5402
6513
|
"ssh-key": "ssh-key";
|
|
5403
6514
|
token: "token";
|
|
@@ -5415,6 +6526,7 @@ declare const impContract: {
|
|
|
5415
6526
|
image: "image";
|
|
5416
6527
|
imp: "imp";
|
|
5417
6528
|
secret: "secret";
|
|
6529
|
+
service: "service";
|
|
5418
6530
|
session: "session";
|
|
5419
6531
|
"ssh-key": "ssh-key";
|
|
5420
6532
|
token: "token";
|
|
@@ -5528,6 +6640,22 @@ declare const ImpSchema: z.ZodObject<{
|
|
|
5528
6640
|
impd: "impd";
|
|
5529
6641
|
kernel: "kernel";
|
|
5530
6642
|
}>>>>;
|
|
6643
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
6644
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
6645
|
+
weight: z.ZodInt;
|
|
6646
|
+
}, z.core.$strip>>;
|
|
6647
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
6648
|
+
wakeCount: z.ZodInt;
|
|
6649
|
+
awakeMs: z.ZodInt;
|
|
6650
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
6651
|
+
measuredAt: z.ZodDate;
|
|
6652
|
+
since: z.ZodDate;
|
|
6653
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
6654
|
+
cpuThrottledMs: z.ZodInt;
|
|
6655
|
+
netRxBytes: z.ZodInt;
|
|
6656
|
+
netTxBytes: z.ZodInt;
|
|
6657
|
+
}, z.core.$strip>>;
|
|
6658
|
+
}, z.core.$strip>>;
|
|
5531
6659
|
}, z.core.$strip>;
|
|
5532
6660
|
type Imp = z.infer<typeof ImpSchema>;
|
|
5533
6661
|
//#endregion
|
|
@@ -5605,6 +6733,10 @@ declare const SystemInfoSchema: z.ZodObject<{
|
|
|
5605
6733
|
}, z.core.$strip>>>;
|
|
5606
6734
|
}, z.core.$strip>>;
|
|
5607
6735
|
}, z.core.$strip>;
|
|
6736
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
6737
|
+
hostCpus: z.ZodInt;
|
|
6738
|
+
limitsEnforced: z.ZodBoolean;
|
|
6739
|
+
}, z.core.$strip>>;
|
|
5608
6740
|
}, z.core.$strip>;
|
|
5609
6741
|
type SystemInfo = z.infer<typeof SystemInfoSchema>;
|
|
5610
6742
|
//#endregion
|