@zgeoff/imp-client 0.9.0 → 0.12.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 +1823 -205
- package/dist/index.js +4 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -67,6 +67,13 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
67
67
|
port: z.ZodInt;
|
|
68
68
|
httpPort: z.ZodInt;
|
|
69
69
|
url: z.ZodURL;
|
|
70
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
auth: z.ZodEnum<{
|
|
72
|
+
basic: "basic";
|
|
73
|
+
none: "none";
|
|
74
|
+
token: "token";
|
|
75
|
+
}>;
|
|
76
|
+
}, z.core.$strip>>;
|
|
70
77
|
createdAt: z.ZodDate;
|
|
71
78
|
lastActiveAt: z.ZodDate;
|
|
72
79
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -76,12 +83,30 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
76
83
|
error: z.ZodOptional<z.ZodString>;
|
|
77
84
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
78
85
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
86
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
79
87
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
80
88
|
agent: "agent";
|
|
81
89
|
firecracker: "firecracker";
|
|
82
90
|
impd: "impd";
|
|
91
|
+
ipv6: "ipv6";
|
|
83
92
|
kernel: "kernel";
|
|
84
93
|
}>>>>;
|
|
94
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
95
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
96
|
+
weight: z.ZodInt;
|
|
97
|
+
}, z.core.$strip>>;
|
|
98
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
99
|
+
wakeCount: z.ZodInt;
|
|
100
|
+
awakeMs: z.ZodInt;
|
|
101
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
102
|
+
measuredAt: z.ZodDate;
|
|
103
|
+
since: z.ZodDate;
|
|
104
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
cpuThrottledMs: z.ZodInt;
|
|
106
|
+
netRxBytes: z.ZodInt;
|
|
107
|
+
netTxBytes: z.ZodInt;
|
|
108
|
+
}, z.core.$strip>>;
|
|
109
|
+
}, z.core.$strip>>;
|
|
85
110
|
}, z.core.$strip>;
|
|
86
111
|
}, z.core.$strip>, z.ZodObject<{
|
|
87
112
|
v: z.ZodLiteral<1>;
|
|
@@ -90,6 +115,7 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
90
115
|
reason: z.ZodEnum<{
|
|
91
116
|
adopted: "adopted";
|
|
92
117
|
booted: "booted";
|
|
118
|
+
exposed: "exposed";
|
|
93
119
|
failed: "failed";
|
|
94
120
|
held: "held";
|
|
95
121
|
repaired: "repaired";
|
|
@@ -97,6 +123,7 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
97
123
|
restored: "restored";
|
|
98
124
|
slept: "slept";
|
|
99
125
|
stopped: "stopped";
|
|
126
|
+
updated: "updated";
|
|
100
127
|
woke: "woke";
|
|
101
128
|
}>;
|
|
102
129
|
imp: z.ZodObject<{
|
|
@@ -125,6 +152,13 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
125
152
|
port: z.ZodInt;
|
|
126
153
|
httpPort: z.ZodInt;
|
|
127
154
|
url: z.ZodURL;
|
|
155
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
156
|
+
auth: z.ZodEnum<{
|
|
157
|
+
basic: "basic";
|
|
158
|
+
none: "none";
|
|
159
|
+
token: "token";
|
|
160
|
+
}>;
|
|
161
|
+
}, z.core.$strip>>;
|
|
128
162
|
createdAt: z.ZodDate;
|
|
129
163
|
lastActiveAt: z.ZodDate;
|
|
130
164
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -134,12 +168,30 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
134
168
|
error: z.ZodOptional<z.ZodString>;
|
|
135
169
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
136
170
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
171
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
137
172
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
138
173
|
agent: "agent";
|
|
139
174
|
firecracker: "firecracker";
|
|
140
175
|
impd: "impd";
|
|
176
|
+
ipv6: "ipv6";
|
|
141
177
|
kernel: "kernel";
|
|
142
178
|
}>>>>;
|
|
179
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
180
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
181
|
+
weight: z.ZodInt;
|
|
182
|
+
}, z.core.$strip>>;
|
|
183
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
184
|
+
wakeCount: z.ZodInt;
|
|
185
|
+
awakeMs: z.ZodInt;
|
|
186
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
187
|
+
measuredAt: z.ZodDate;
|
|
188
|
+
since: z.ZodDate;
|
|
189
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
190
|
+
cpuThrottledMs: z.ZodInt;
|
|
191
|
+
netRxBytes: z.ZodInt;
|
|
192
|
+
netTxBytes: z.ZodInt;
|
|
193
|
+
}, z.core.$strip>>;
|
|
194
|
+
}, z.core.$strip>>;
|
|
143
195
|
}, z.core.$strip>;
|
|
144
196
|
detail: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
145
197
|
durationMs: z.ZodOptional<z.ZodInt>;
|
|
@@ -177,6 +229,13 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
177
229
|
port: z.ZodInt;
|
|
178
230
|
httpPort: z.ZodInt;
|
|
179
231
|
url: z.ZodURL;
|
|
232
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
233
|
+
auth: z.ZodEnum<{
|
|
234
|
+
basic: "basic";
|
|
235
|
+
none: "none";
|
|
236
|
+
token: "token";
|
|
237
|
+
}>;
|
|
238
|
+
}, z.core.$strip>>;
|
|
180
239
|
createdAt: z.ZodDate;
|
|
181
240
|
lastActiveAt: z.ZodDate;
|
|
182
241
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -186,12 +245,30 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
|
186
245
|
error: z.ZodOptional<z.ZodString>;
|
|
187
246
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
188
247
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
248
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
189
249
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
190
250
|
agent: "agent";
|
|
191
251
|
firecracker: "firecracker";
|
|
192
252
|
impd: "impd";
|
|
253
|
+
ipv6: "ipv6";
|
|
193
254
|
kernel: "kernel";
|
|
194
255
|
}>>>>;
|
|
256
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
257
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
258
|
+
weight: z.ZodInt;
|
|
259
|
+
}, z.core.$strip>>;
|
|
260
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
261
|
+
wakeCount: z.ZodInt;
|
|
262
|
+
awakeMs: z.ZodInt;
|
|
263
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
264
|
+
measuredAt: z.ZodDate;
|
|
265
|
+
since: z.ZodDate;
|
|
266
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
267
|
+
cpuThrottledMs: z.ZodInt;
|
|
268
|
+
netRxBytes: z.ZodInt;
|
|
269
|
+
netTxBytes: z.ZodInt;
|
|
270
|
+
}, z.core.$strip>>;
|
|
271
|
+
}, z.core.$strip>>;
|
|
195
272
|
}, z.core.$strip>;
|
|
196
273
|
}, z.core.$strip>, z.ZodObject<{
|
|
197
274
|
v: z.ZodLiteral<1>;
|
|
@@ -240,6 +317,10 @@ declare const ImageSchema: z.ZodObject<{
|
|
|
240
317
|
name: z.ZodString;
|
|
241
318
|
ref: z.ZodString;
|
|
242
319
|
digest: z.ZodString;
|
|
320
|
+
source: z.ZodEnum<{
|
|
321
|
+
imp: "imp";
|
|
322
|
+
oci: "oci";
|
|
323
|
+
}>;
|
|
243
324
|
createdAt: z.ZodDate;
|
|
244
325
|
sizeBytes: z.ZodInt;
|
|
245
326
|
}, z.core.$strip>;
|
|
@@ -263,6 +344,8 @@ declare const impContract: {
|
|
|
263
344
|
}>;
|
|
264
345
|
allow: z.ZodDefault<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
265
346
|
}, z.core.$strip>>;
|
|
347
|
+
cpuLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
348
|
+
cpuWeight: z.ZodOptional<z.ZodInt>;
|
|
266
349
|
}, z.core.$strip>, z.ZodObject<{
|
|
267
350
|
id: z.ZodString;
|
|
268
351
|
name: z.ZodString;
|
|
@@ -289,6 +372,13 @@ declare const impContract: {
|
|
|
289
372
|
port: z.ZodInt;
|
|
290
373
|
httpPort: z.ZodInt;
|
|
291
374
|
url: z.ZodURL;
|
|
375
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
376
|
+
auth: z.ZodEnum<{
|
|
377
|
+
basic: "basic";
|
|
378
|
+
none: "none";
|
|
379
|
+
token: "token";
|
|
380
|
+
}>;
|
|
381
|
+
}, z.core.$strip>>;
|
|
292
382
|
createdAt: z.ZodDate;
|
|
293
383
|
lastActiveAt: z.ZodDate;
|
|
294
384
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -298,12 +388,30 @@ declare const impContract: {
|
|
|
298
388
|
error: z.ZodOptional<z.ZodString>;
|
|
299
389
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
300
390
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
391
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
301
392
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
302
393
|
agent: "agent";
|
|
303
394
|
firecracker: "firecracker";
|
|
304
395
|
impd: "impd";
|
|
396
|
+
ipv6: "ipv6";
|
|
305
397
|
kernel: "kernel";
|
|
306
398
|
}>>>>;
|
|
399
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
400
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
401
|
+
weight: z.ZodInt;
|
|
402
|
+
}, z.core.$strip>>;
|
|
403
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
404
|
+
wakeCount: z.ZodInt;
|
|
405
|
+
awakeMs: z.ZodInt;
|
|
406
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
407
|
+
measuredAt: z.ZodDate;
|
|
408
|
+
since: z.ZodDate;
|
|
409
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
410
|
+
cpuThrottledMs: z.ZodInt;
|
|
411
|
+
netRxBytes: z.ZodInt;
|
|
412
|
+
netTxBytes: z.ZodInt;
|
|
413
|
+
}, z.core.$strip>>;
|
|
414
|
+
}, z.core.$strip>>;
|
|
307
415
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
308
416
|
NOT_FOUND: {
|
|
309
417
|
readonly message: "Not found";
|
|
@@ -315,6 +423,7 @@ declare const impContract: {
|
|
|
315
423
|
image: "image";
|
|
316
424
|
imp: "imp";
|
|
317
425
|
secret: "secret";
|
|
426
|
+
service: "service";
|
|
318
427
|
session: "session";
|
|
319
428
|
"ssh-key": "ssh-key";
|
|
320
429
|
token: "token";
|
|
@@ -332,6 +441,7 @@ declare const impContract: {
|
|
|
332
441
|
image: "image";
|
|
333
442
|
imp: "imp";
|
|
334
443
|
secret: "secret";
|
|
444
|
+
service: "service";
|
|
335
445
|
session: "session";
|
|
336
446
|
"ssh-key": "ssh-key";
|
|
337
447
|
token: "token";
|
|
@@ -417,6 +527,13 @@ declare const impContract: {
|
|
|
417
527
|
port: z.ZodInt;
|
|
418
528
|
httpPort: z.ZodInt;
|
|
419
529
|
url: z.ZodURL;
|
|
530
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
531
|
+
auth: z.ZodEnum<{
|
|
532
|
+
basic: "basic";
|
|
533
|
+
none: "none";
|
|
534
|
+
token: "token";
|
|
535
|
+
}>;
|
|
536
|
+
}, z.core.$strip>>;
|
|
420
537
|
createdAt: z.ZodDate;
|
|
421
538
|
lastActiveAt: z.ZodDate;
|
|
422
539
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -426,12 +543,30 @@ declare const impContract: {
|
|
|
426
543
|
error: z.ZodOptional<z.ZodString>;
|
|
427
544
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
428
545
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
546
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
429
547
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
430
548
|
agent: "agent";
|
|
431
549
|
firecracker: "firecracker";
|
|
432
550
|
impd: "impd";
|
|
551
|
+
ipv6: "ipv6";
|
|
433
552
|
kernel: "kernel";
|
|
434
553
|
}>>>>;
|
|
554
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
555
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
556
|
+
weight: z.ZodInt;
|
|
557
|
+
}, z.core.$strip>>;
|
|
558
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
559
|
+
wakeCount: z.ZodInt;
|
|
560
|
+
awakeMs: z.ZodInt;
|
|
561
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
562
|
+
measuredAt: z.ZodDate;
|
|
563
|
+
since: z.ZodDate;
|
|
564
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
565
|
+
cpuThrottledMs: z.ZodInt;
|
|
566
|
+
netRxBytes: z.ZodInt;
|
|
567
|
+
netTxBytes: z.ZodInt;
|
|
568
|
+
}, z.core.$strip>>;
|
|
569
|
+
}, z.core.$strip>>;
|
|
435
570
|
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
436
571
|
NOT_FOUND: {
|
|
437
572
|
readonly message: "Not found";
|
|
@@ -443,6 +578,7 @@ declare const impContract: {
|
|
|
443
578
|
image: "image";
|
|
444
579
|
imp: "imp";
|
|
445
580
|
secret: "secret";
|
|
581
|
+
service: "service";
|
|
446
582
|
session: "session";
|
|
447
583
|
"ssh-key": "ssh-key";
|
|
448
584
|
token: "token";
|
|
@@ -460,6 +596,7 @@ declare const impContract: {
|
|
|
460
596
|
image: "image";
|
|
461
597
|
imp: "imp";
|
|
462
598
|
secret: "secret";
|
|
599
|
+
service: "service";
|
|
463
600
|
session: "session";
|
|
464
601
|
"ssh-key": "ssh-key";
|
|
465
602
|
token: "token";
|
|
@@ -547,6 +684,13 @@ declare const impContract: {
|
|
|
547
684
|
port: z.ZodInt;
|
|
548
685
|
httpPort: z.ZodInt;
|
|
549
686
|
url: z.ZodURL;
|
|
687
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
688
|
+
auth: z.ZodEnum<{
|
|
689
|
+
basic: "basic";
|
|
690
|
+
none: "none";
|
|
691
|
+
token: "token";
|
|
692
|
+
}>;
|
|
693
|
+
}, z.core.$strip>>;
|
|
550
694
|
createdAt: z.ZodDate;
|
|
551
695
|
lastActiveAt: z.ZodDate;
|
|
552
696
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -556,12 +700,30 @@ declare const impContract: {
|
|
|
556
700
|
error: z.ZodOptional<z.ZodString>;
|
|
557
701
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
558
702
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
703
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
559
704
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
560
705
|
agent: "agent";
|
|
561
706
|
firecracker: "firecracker";
|
|
562
707
|
impd: "impd";
|
|
708
|
+
ipv6: "ipv6";
|
|
563
709
|
kernel: "kernel";
|
|
564
710
|
}>>>>;
|
|
711
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
712
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
713
|
+
weight: z.ZodInt;
|
|
714
|
+
}, z.core.$strip>>;
|
|
715
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
716
|
+
wakeCount: z.ZodInt;
|
|
717
|
+
awakeMs: z.ZodInt;
|
|
718
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
719
|
+
measuredAt: z.ZodDate;
|
|
720
|
+
since: z.ZodDate;
|
|
721
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
722
|
+
cpuThrottledMs: z.ZodInt;
|
|
723
|
+
netRxBytes: z.ZodInt;
|
|
724
|
+
netTxBytes: z.ZodInt;
|
|
725
|
+
}, z.core.$strip>>;
|
|
726
|
+
}, z.core.$strip>>;
|
|
565
727
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
566
728
|
NOT_FOUND: {
|
|
567
729
|
readonly message: "Not found";
|
|
@@ -573,6 +735,7 @@ declare const impContract: {
|
|
|
573
735
|
image: "image";
|
|
574
736
|
imp: "imp";
|
|
575
737
|
secret: "secret";
|
|
738
|
+
service: "service";
|
|
576
739
|
session: "session";
|
|
577
740
|
"ssh-key": "ssh-key";
|
|
578
741
|
token: "token";
|
|
@@ -590,6 +753,7 @@ declare const impContract: {
|
|
|
590
753
|
image: "image";
|
|
591
754
|
imp: "imp";
|
|
592
755
|
secret: "secret";
|
|
756
|
+
service: "service";
|
|
593
757
|
session: "session";
|
|
594
758
|
"ssh-key": "ssh-key";
|
|
595
759
|
token: "token";
|
|
@@ -662,6 +826,7 @@ declare const impContract: {
|
|
|
662
826
|
image: "image";
|
|
663
827
|
imp: "imp";
|
|
664
828
|
secret: "secret";
|
|
829
|
+
service: "service";
|
|
665
830
|
session: "session";
|
|
666
831
|
"ssh-key": "ssh-key";
|
|
667
832
|
token: "token";
|
|
@@ -679,6 +844,7 @@ declare const impContract: {
|
|
|
679
844
|
image: "image";
|
|
680
845
|
imp: "imp";
|
|
681
846
|
secret: "secret";
|
|
847
|
+
service: "service";
|
|
682
848
|
session: "session";
|
|
683
849
|
"ssh-key": "ssh-key";
|
|
684
850
|
token: "token";
|
|
@@ -766,6 +932,13 @@ declare const impContract: {
|
|
|
766
932
|
port: z.ZodInt;
|
|
767
933
|
httpPort: z.ZodInt;
|
|
768
934
|
url: z.ZodURL;
|
|
935
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
936
|
+
auth: z.ZodEnum<{
|
|
937
|
+
basic: "basic";
|
|
938
|
+
none: "none";
|
|
939
|
+
token: "token";
|
|
940
|
+
}>;
|
|
941
|
+
}, z.core.$strip>>;
|
|
769
942
|
createdAt: z.ZodDate;
|
|
770
943
|
lastActiveAt: z.ZodDate;
|
|
771
944
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -775,12 +948,30 @@ declare const impContract: {
|
|
|
775
948
|
error: z.ZodOptional<z.ZodString>;
|
|
776
949
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
777
950
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
951
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
778
952
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
779
953
|
agent: "agent";
|
|
780
954
|
firecracker: "firecracker";
|
|
781
955
|
impd: "impd";
|
|
956
|
+
ipv6: "ipv6";
|
|
782
957
|
kernel: "kernel";
|
|
783
958
|
}>>>>;
|
|
959
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
960
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
961
|
+
weight: z.ZodInt;
|
|
962
|
+
}, z.core.$strip>>;
|
|
963
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
964
|
+
wakeCount: z.ZodInt;
|
|
965
|
+
awakeMs: z.ZodInt;
|
|
966
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
967
|
+
measuredAt: z.ZodDate;
|
|
968
|
+
since: z.ZodDate;
|
|
969
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
970
|
+
cpuThrottledMs: z.ZodInt;
|
|
971
|
+
netRxBytes: z.ZodInt;
|
|
972
|
+
netTxBytes: z.ZodInt;
|
|
973
|
+
}, z.core.$strip>>;
|
|
974
|
+
}, z.core.$strip>>;
|
|
784
975
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
785
976
|
NOT_FOUND: {
|
|
786
977
|
readonly message: "Not found";
|
|
@@ -792,6 +983,7 @@ declare const impContract: {
|
|
|
792
983
|
image: "image";
|
|
793
984
|
imp: "imp";
|
|
794
985
|
secret: "secret";
|
|
986
|
+
service: "service";
|
|
795
987
|
session: "session";
|
|
796
988
|
"ssh-key": "ssh-key";
|
|
797
989
|
token: "token";
|
|
@@ -809,6 +1001,7 @@ declare const impContract: {
|
|
|
809
1001
|
image: "image";
|
|
810
1002
|
imp: "imp";
|
|
811
1003
|
secret: "secret";
|
|
1004
|
+
service: "service";
|
|
812
1005
|
session: "session";
|
|
813
1006
|
"ssh-key": "ssh-key";
|
|
814
1007
|
token: "token";
|
|
@@ -896,6 +1089,13 @@ declare const impContract: {
|
|
|
896
1089
|
port: z.ZodInt;
|
|
897
1090
|
httpPort: z.ZodInt;
|
|
898
1091
|
url: z.ZodURL;
|
|
1092
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
1093
|
+
auth: z.ZodEnum<{
|
|
1094
|
+
basic: "basic";
|
|
1095
|
+
none: "none";
|
|
1096
|
+
token: "token";
|
|
1097
|
+
}>;
|
|
1098
|
+
}, z.core.$strip>>;
|
|
899
1099
|
createdAt: z.ZodDate;
|
|
900
1100
|
lastActiveAt: z.ZodDate;
|
|
901
1101
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -905,12 +1105,30 @@ declare const impContract: {
|
|
|
905
1105
|
error: z.ZodOptional<z.ZodString>;
|
|
906
1106
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
907
1107
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1108
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
908
1109
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
909
1110
|
agent: "agent";
|
|
910
1111
|
firecracker: "firecracker";
|
|
911
1112
|
impd: "impd";
|
|
1113
|
+
ipv6: "ipv6";
|
|
912
1114
|
kernel: "kernel";
|
|
913
1115
|
}>>>>;
|
|
1116
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1117
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1118
|
+
weight: z.ZodInt;
|
|
1119
|
+
}, z.core.$strip>>;
|
|
1120
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1121
|
+
wakeCount: z.ZodInt;
|
|
1122
|
+
awakeMs: z.ZodInt;
|
|
1123
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1124
|
+
measuredAt: z.ZodDate;
|
|
1125
|
+
since: z.ZodDate;
|
|
1126
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1127
|
+
cpuThrottledMs: z.ZodInt;
|
|
1128
|
+
netRxBytes: z.ZodInt;
|
|
1129
|
+
netTxBytes: z.ZodInt;
|
|
1130
|
+
}, z.core.$strip>>;
|
|
1131
|
+
}, z.core.$strip>>;
|
|
914
1132
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
915
1133
|
NOT_FOUND: {
|
|
916
1134
|
readonly message: "Not found";
|
|
@@ -922,6 +1140,7 @@ declare const impContract: {
|
|
|
922
1140
|
image: "image";
|
|
923
1141
|
imp: "imp";
|
|
924
1142
|
secret: "secret";
|
|
1143
|
+
service: "service";
|
|
925
1144
|
session: "session";
|
|
926
1145
|
"ssh-key": "ssh-key";
|
|
927
1146
|
token: "token";
|
|
@@ -939,6 +1158,7 @@ declare const impContract: {
|
|
|
939
1158
|
image: "image";
|
|
940
1159
|
imp: "imp";
|
|
941
1160
|
secret: "secret";
|
|
1161
|
+
service: "service";
|
|
942
1162
|
session: "session";
|
|
943
1163
|
"ssh-key": "ssh-key";
|
|
944
1164
|
token: "token";
|
|
@@ -1026,6 +1246,13 @@ declare const impContract: {
|
|
|
1026
1246
|
port: z.ZodInt;
|
|
1027
1247
|
httpPort: z.ZodInt;
|
|
1028
1248
|
url: z.ZodURL;
|
|
1249
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
1250
|
+
auth: z.ZodEnum<{
|
|
1251
|
+
basic: "basic";
|
|
1252
|
+
none: "none";
|
|
1253
|
+
token: "token";
|
|
1254
|
+
}>;
|
|
1255
|
+
}, z.core.$strip>>;
|
|
1029
1256
|
createdAt: z.ZodDate;
|
|
1030
1257
|
lastActiveAt: z.ZodDate;
|
|
1031
1258
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -1035,12 +1262,30 @@ declare const impContract: {
|
|
|
1035
1262
|
error: z.ZodOptional<z.ZodString>;
|
|
1036
1263
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
1037
1264
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1265
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
1038
1266
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
1039
1267
|
agent: "agent";
|
|
1040
1268
|
firecracker: "firecracker";
|
|
1041
1269
|
impd: "impd";
|
|
1270
|
+
ipv6: "ipv6";
|
|
1042
1271
|
kernel: "kernel";
|
|
1043
1272
|
}>>>>;
|
|
1273
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1274
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1275
|
+
weight: z.ZodInt;
|
|
1276
|
+
}, z.core.$strip>>;
|
|
1277
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1278
|
+
wakeCount: z.ZodInt;
|
|
1279
|
+
awakeMs: z.ZodInt;
|
|
1280
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1281
|
+
measuredAt: z.ZodDate;
|
|
1282
|
+
since: z.ZodDate;
|
|
1283
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1284
|
+
cpuThrottledMs: z.ZodInt;
|
|
1285
|
+
netRxBytes: z.ZodInt;
|
|
1286
|
+
netTxBytes: z.ZodInt;
|
|
1287
|
+
}, z.core.$strip>>;
|
|
1288
|
+
}, z.core.$strip>>;
|
|
1044
1289
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1045
1290
|
NOT_FOUND: {
|
|
1046
1291
|
readonly message: "Not found";
|
|
@@ -1052,6 +1297,7 @@ declare const impContract: {
|
|
|
1052
1297
|
image: "image";
|
|
1053
1298
|
imp: "imp";
|
|
1054
1299
|
secret: "secret";
|
|
1300
|
+
service: "service";
|
|
1055
1301
|
session: "session";
|
|
1056
1302
|
"ssh-key": "ssh-key";
|
|
1057
1303
|
token: "token";
|
|
@@ -1069,6 +1315,7 @@ declare const impContract: {
|
|
|
1069
1315
|
image: "image";
|
|
1070
1316
|
imp: "imp";
|
|
1071
1317
|
secret: "secret";
|
|
1318
|
+
service: "service";
|
|
1072
1319
|
session: "session";
|
|
1073
1320
|
"ssh-key": "ssh-key";
|
|
1074
1321
|
token: "token";
|
|
@@ -1157,6 +1404,13 @@ declare const impContract: {
|
|
|
1157
1404
|
port: z.ZodInt;
|
|
1158
1405
|
httpPort: z.ZodInt;
|
|
1159
1406
|
url: z.ZodURL;
|
|
1407
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
1408
|
+
auth: z.ZodEnum<{
|
|
1409
|
+
basic: "basic";
|
|
1410
|
+
none: "none";
|
|
1411
|
+
token: "token";
|
|
1412
|
+
}>;
|
|
1413
|
+
}, z.core.$strip>>;
|
|
1160
1414
|
createdAt: z.ZodDate;
|
|
1161
1415
|
lastActiveAt: z.ZodDate;
|
|
1162
1416
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -1166,12 +1420,30 @@ declare const impContract: {
|
|
|
1166
1420
|
error: z.ZodOptional<z.ZodString>;
|
|
1167
1421
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
1168
1422
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1423
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
1169
1424
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
1170
1425
|
agent: "agent";
|
|
1171
1426
|
firecracker: "firecracker";
|
|
1172
1427
|
impd: "impd";
|
|
1428
|
+
ipv6: "ipv6";
|
|
1173
1429
|
kernel: "kernel";
|
|
1174
1430
|
}>>>>;
|
|
1431
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1432
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1433
|
+
weight: z.ZodInt;
|
|
1434
|
+
}, z.core.$strip>>;
|
|
1435
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1436
|
+
wakeCount: z.ZodInt;
|
|
1437
|
+
awakeMs: z.ZodInt;
|
|
1438
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1439
|
+
measuredAt: z.ZodDate;
|
|
1440
|
+
since: z.ZodDate;
|
|
1441
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1442
|
+
cpuThrottledMs: z.ZodInt;
|
|
1443
|
+
netRxBytes: z.ZodInt;
|
|
1444
|
+
netTxBytes: z.ZodInt;
|
|
1445
|
+
}, z.core.$strip>>;
|
|
1446
|
+
}, z.core.$strip>>;
|
|
1175
1447
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1176
1448
|
NOT_FOUND: {
|
|
1177
1449
|
readonly message: "Not found";
|
|
@@ -1183,6 +1455,7 @@ declare const impContract: {
|
|
|
1183
1455
|
image: "image";
|
|
1184
1456
|
imp: "imp";
|
|
1185
1457
|
secret: "secret";
|
|
1458
|
+
service: "service";
|
|
1186
1459
|
session: "session";
|
|
1187
1460
|
"ssh-key": "ssh-key";
|
|
1188
1461
|
token: "token";
|
|
@@ -1200,6 +1473,7 @@ declare const impContract: {
|
|
|
1200
1473
|
image: "image";
|
|
1201
1474
|
imp: "imp";
|
|
1202
1475
|
secret: "secret";
|
|
1476
|
+
service: "service";
|
|
1203
1477
|
session: "session";
|
|
1204
1478
|
"ssh-key": "ssh-key";
|
|
1205
1479
|
token: "token";
|
|
@@ -1288,6 +1562,13 @@ declare const impContract: {
|
|
|
1288
1562
|
port: z.ZodInt;
|
|
1289
1563
|
httpPort: z.ZodInt;
|
|
1290
1564
|
url: z.ZodURL;
|
|
1565
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
1566
|
+
auth: z.ZodEnum<{
|
|
1567
|
+
basic: "basic";
|
|
1568
|
+
none: "none";
|
|
1569
|
+
token: "token";
|
|
1570
|
+
}>;
|
|
1571
|
+
}, z.core.$strip>>;
|
|
1291
1572
|
createdAt: z.ZodDate;
|
|
1292
1573
|
lastActiveAt: z.ZodDate;
|
|
1293
1574
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -1297,12 +1578,30 @@ declare const impContract: {
|
|
|
1297
1578
|
error: z.ZodOptional<z.ZodString>;
|
|
1298
1579
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
1299
1580
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1581
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
1300
1582
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
1301
1583
|
agent: "agent";
|
|
1302
1584
|
firecracker: "firecracker";
|
|
1303
1585
|
impd: "impd";
|
|
1586
|
+
ipv6: "ipv6";
|
|
1304
1587
|
kernel: "kernel";
|
|
1305
1588
|
}>>>>;
|
|
1589
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1590
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1591
|
+
weight: z.ZodInt;
|
|
1592
|
+
}, z.core.$strip>>;
|
|
1593
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1594
|
+
wakeCount: z.ZodInt;
|
|
1595
|
+
awakeMs: z.ZodInt;
|
|
1596
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1597
|
+
measuredAt: z.ZodDate;
|
|
1598
|
+
since: z.ZodDate;
|
|
1599
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1600
|
+
cpuThrottledMs: z.ZodInt;
|
|
1601
|
+
netRxBytes: z.ZodInt;
|
|
1602
|
+
netTxBytes: z.ZodInt;
|
|
1603
|
+
}, z.core.$strip>>;
|
|
1604
|
+
}, z.core.$strip>>;
|
|
1306
1605
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1307
1606
|
NOT_FOUND: {
|
|
1308
1607
|
readonly message: "Not found";
|
|
@@ -1314,6 +1613,7 @@ declare const impContract: {
|
|
|
1314
1613
|
image: "image";
|
|
1315
1614
|
imp: "imp";
|
|
1316
1615
|
secret: "secret";
|
|
1616
|
+
service: "service";
|
|
1317
1617
|
session: "session";
|
|
1318
1618
|
"ssh-key": "ssh-key";
|
|
1319
1619
|
token: "token";
|
|
@@ -1331,6 +1631,7 @@ declare const impContract: {
|
|
|
1331
1631
|
image: "image";
|
|
1332
1632
|
imp: "imp";
|
|
1333
1633
|
secret: "secret";
|
|
1634
|
+
service: "service";
|
|
1334
1635
|
session: "session";
|
|
1335
1636
|
"ssh-key": "ssh-key";
|
|
1336
1637
|
token: "token";
|
|
@@ -1419,6 +1720,13 @@ declare const impContract: {
|
|
|
1419
1720
|
port: z.ZodInt;
|
|
1420
1721
|
httpPort: z.ZodInt;
|
|
1421
1722
|
url: z.ZodURL;
|
|
1723
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
1724
|
+
auth: z.ZodEnum<{
|
|
1725
|
+
basic: "basic";
|
|
1726
|
+
none: "none";
|
|
1727
|
+
token: "token";
|
|
1728
|
+
}>;
|
|
1729
|
+
}, z.core.$strip>>;
|
|
1422
1730
|
createdAt: z.ZodDate;
|
|
1423
1731
|
lastActiveAt: z.ZodDate;
|
|
1424
1732
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -1428,12 +1736,30 @@ declare const impContract: {
|
|
|
1428
1736
|
error: z.ZodOptional<z.ZodString>;
|
|
1429
1737
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
1430
1738
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1739
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
1431
1740
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
1432
1741
|
agent: "agent";
|
|
1433
1742
|
firecracker: "firecracker";
|
|
1434
1743
|
impd: "impd";
|
|
1744
|
+
ipv6: "ipv6";
|
|
1435
1745
|
kernel: "kernel";
|
|
1436
1746
|
}>>>>;
|
|
1747
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
1748
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
1749
|
+
weight: z.ZodInt;
|
|
1750
|
+
}, z.core.$strip>>;
|
|
1751
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
1752
|
+
wakeCount: z.ZodInt;
|
|
1753
|
+
awakeMs: z.ZodInt;
|
|
1754
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
1755
|
+
measuredAt: z.ZodDate;
|
|
1756
|
+
since: z.ZodDate;
|
|
1757
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
1758
|
+
cpuThrottledMs: z.ZodInt;
|
|
1759
|
+
netRxBytes: z.ZodInt;
|
|
1760
|
+
netTxBytes: z.ZodInt;
|
|
1761
|
+
}, z.core.$strip>>;
|
|
1762
|
+
}, z.core.$strip>>;
|
|
1437
1763
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1438
1764
|
NOT_FOUND: {
|
|
1439
1765
|
readonly message: "Not found";
|
|
@@ -1445,6 +1771,7 @@ declare const impContract: {
|
|
|
1445
1771
|
image: "image";
|
|
1446
1772
|
imp: "imp";
|
|
1447
1773
|
secret: "secret";
|
|
1774
|
+
service: "service";
|
|
1448
1775
|
session: "session";
|
|
1449
1776
|
"ssh-key": "ssh-key";
|
|
1450
1777
|
token: "token";
|
|
@@ -1462,6 +1789,7 @@ declare const impContract: {
|
|
|
1462
1789
|
image: "image";
|
|
1463
1790
|
imp: "imp";
|
|
1464
1791
|
secret: "secret";
|
|
1792
|
+
service: "service";
|
|
1465
1793
|
session: "session";
|
|
1466
1794
|
"ssh-key": "ssh-key";
|
|
1467
1795
|
token: "token";
|
|
@@ -1526,6 +1854,7 @@ declare const impContract: {
|
|
|
1526
1854
|
}, z.core.$strip>, z.ZodObject<{
|
|
1527
1855
|
local: z.ZodURL;
|
|
1528
1856
|
https: z.ZodNullable<z.ZodURL>;
|
|
1857
|
+
public: z.ZodNullable<z.ZodURL>;
|
|
1529
1858
|
service: z.ZodNullable<z.ZodURL>;
|
|
1530
1859
|
tailnet: z.ZodNullable<z.ZodURL>;
|
|
1531
1860
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
@@ -1539,6 +1868,7 @@ declare const impContract: {
|
|
|
1539
1868
|
image: "image";
|
|
1540
1869
|
imp: "imp";
|
|
1541
1870
|
secret: "secret";
|
|
1871
|
+
service: "service";
|
|
1542
1872
|
session: "session";
|
|
1543
1873
|
"ssh-key": "ssh-key";
|
|
1544
1874
|
token: "token";
|
|
@@ -1556,6 +1886,7 @@ declare const impContract: {
|
|
|
1556
1886
|
image: "image";
|
|
1557
1887
|
imp: "imp";
|
|
1558
1888
|
secret: "secret";
|
|
1889
|
+
service: "service";
|
|
1559
1890
|
session: "session";
|
|
1560
1891
|
"ssh-key": "ssh-key";
|
|
1561
1892
|
token: "token";
|
|
@@ -1635,6 +1966,7 @@ declare const impContract: {
|
|
|
1635
1966
|
image: "image";
|
|
1636
1967
|
imp: "imp";
|
|
1637
1968
|
secret: "secret";
|
|
1969
|
+
service: "service";
|
|
1638
1970
|
session: "session";
|
|
1639
1971
|
"ssh-key": "ssh-key";
|
|
1640
1972
|
token: "token";
|
|
@@ -1652,6 +1984,7 @@ declare const impContract: {
|
|
|
1652
1984
|
image: "image";
|
|
1653
1985
|
imp: "imp";
|
|
1654
1986
|
secret: "secret";
|
|
1987
|
+
service: "service";
|
|
1655
1988
|
session: "session";
|
|
1656
1989
|
"ssh-key": "ssh-key";
|
|
1657
1990
|
token: "token";
|
|
@@ -1739,6 +2072,7 @@ declare const impContract: {
|
|
|
1739
2072
|
image: "image";
|
|
1740
2073
|
imp: "imp";
|
|
1741
2074
|
secret: "secret";
|
|
2075
|
+
service: "service";
|
|
1742
2076
|
session: "session";
|
|
1743
2077
|
"ssh-key": "ssh-key";
|
|
1744
2078
|
token: "token";
|
|
@@ -1756,6 +2090,7 @@ declare const impContract: {
|
|
|
1756
2090
|
image: "image";
|
|
1757
2091
|
imp: "imp";
|
|
1758
2092
|
secret: "secret";
|
|
2093
|
+
service: "service";
|
|
1759
2094
|
session: "session";
|
|
1760
2095
|
"ssh-key": "ssh-key";
|
|
1761
2096
|
token: "token";
|
|
@@ -1815,51 +2150,24 @@ declare const impContract: {
|
|
|
1815
2150
|
readonly status: 409;
|
|
1816
2151
|
};
|
|
1817
2152
|
}>, Record<never, never>>;
|
|
1818
|
-
|
|
1819
|
-
source: z.ZodString;
|
|
2153
|
+
expose: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1820
2154
|
name: z.ZodString;
|
|
1821
|
-
|
|
2155
|
+
auth: z.ZodDefault<z.ZodEnum<{
|
|
2156
|
+
basic: "basic";
|
|
2157
|
+
none: "none";
|
|
2158
|
+
token: "token";
|
|
2159
|
+
}>>;
|
|
2160
|
+
user: z.ZodOptional<z.ZodString>;
|
|
1822
2161
|
}, z.core.$strip>, z.ZodObject<{
|
|
1823
|
-
id: z.ZodString;
|
|
1824
|
-
name: z.ZodString;
|
|
1825
|
-
image: z.ZodString;
|
|
1826
|
-
state: z.ZodEnum<{
|
|
1827
|
-
creating: "creating";
|
|
1828
|
-
error: "error";
|
|
1829
|
-
running: "running";
|
|
1830
|
-
sleeping: "sleeping";
|
|
1831
|
-
stopped: "stopped";
|
|
1832
|
-
}>;
|
|
1833
|
-
vcpus: z.ZodInt;
|
|
1834
|
-
memoryMib: z.ZodInt;
|
|
1835
|
-
diskMib: z.ZodInt;
|
|
1836
|
-
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
1837
|
-
exclusiveBytes: z.ZodInt;
|
|
1838
|
-
sharedBytes: z.ZodInt;
|
|
1839
|
-
measuredAt: z.ZodDate;
|
|
1840
|
-
isPartial: z.ZodBoolean;
|
|
1841
|
-
isUpperBound: z.ZodBoolean;
|
|
1842
|
-
}, z.core.$strip>>;
|
|
1843
|
-
ip: z.ZodIPv4;
|
|
1844
|
-
slot: z.ZodInt;
|
|
1845
|
-
port: z.ZodInt;
|
|
1846
|
-
httpPort: z.ZodInt;
|
|
1847
2162
|
url: z.ZodURL;
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1851
|
-
|
|
1852
|
-
|
|
1853
|
-
|
|
1854
|
-
|
|
1855
|
-
|
|
1856
|
-
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
1857
|
-
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
1858
|
-
agent: "agent";
|
|
1859
|
-
firecracker: "firecracker";
|
|
1860
|
-
impd: "impd";
|
|
1861
|
-
kernel: "kernel";
|
|
1862
|
-
}>>>>;
|
|
2163
|
+
auth: z.ZodEnum<{
|
|
2164
|
+
basic: "basic";
|
|
2165
|
+
none: "none";
|
|
2166
|
+
token: "token";
|
|
2167
|
+
}>;
|
|
2168
|
+
user: z.ZodNullable<z.ZodString>;
|
|
2169
|
+
credential: z.ZodNullable<z.ZodString>;
|
|
2170
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
1863
2171
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1864
2172
|
NOT_FOUND: {
|
|
1865
2173
|
readonly message: "Not found";
|
|
@@ -1871,6 +2179,7 @@ declare const impContract: {
|
|
|
1871
2179
|
image: "image";
|
|
1872
2180
|
imp: "imp";
|
|
1873
2181
|
secret: "secret";
|
|
2182
|
+
service: "service";
|
|
1874
2183
|
session: "session";
|
|
1875
2184
|
"ssh-key": "ssh-key";
|
|
1876
2185
|
token: "token";
|
|
@@ -1888,6 +2197,7 @@ declare const impContract: {
|
|
|
1888
2197
|
image: "image";
|
|
1889
2198
|
imp: "imp";
|
|
1890
2199
|
secret: "secret";
|
|
2200
|
+
service: "service";
|
|
1891
2201
|
session: "session";
|
|
1892
2202
|
"ssh-key": "ssh-key";
|
|
1893
2203
|
token: "token";
|
|
@@ -1947,17 +2257,74 @@ declare const impContract: {
|
|
|
1947
2257
|
readonly status: 409;
|
|
1948
2258
|
};
|
|
1949
2259
|
}>, Record<never, never>>;
|
|
1950
|
-
|
|
1951
|
-
checkpoints: {
|
|
1952
|
-
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2260
|
+
unexpose: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
1953
2261
|
name: z.ZodString;
|
|
1954
|
-
label: z.ZodOptional<z.ZodString>;
|
|
1955
2262
|
}, z.core.$strip>, z.ZodObject<{
|
|
1956
2263
|
id: z.ZodString;
|
|
1957
|
-
|
|
1958
|
-
|
|
1959
|
-
|
|
2264
|
+
name: z.ZodString;
|
|
2265
|
+
image: z.ZodString;
|
|
2266
|
+
state: z.ZodEnum<{
|
|
2267
|
+
creating: "creating";
|
|
2268
|
+
error: "error";
|
|
2269
|
+
running: "running";
|
|
2270
|
+
sleeping: "sleeping";
|
|
2271
|
+
stopped: "stopped";
|
|
2272
|
+
}>;
|
|
2273
|
+
vcpus: z.ZodInt;
|
|
2274
|
+
memoryMib: z.ZodInt;
|
|
1960
2275
|
diskMib: z.ZodInt;
|
|
2276
|
+
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
2277
|
+
exclusiveBytes: z.ZodInt;
|
|
2278
|
+
sharedBytes: z.ZodInt;
|
|
2279
|
+
measuredAt: z.ZodDate;
|
|
2280
|
+
isPartial: z.ZodBoolean;
|
|
2281
|
+
isUpperBound: z.ZodBoolean;
|
|
2282
|
+
}, z.core.$strip>>;
|
|
2283
|
+
ip: z.ZodIPv4;
|
|
2284
|
+
slot: z.ZodInt;
|
|
2285
|
+
port: z.ZodInt;
|
|
2286
|
+
httpPort: z.ZodInt;
|
|
2287
|
+
url: z.ZodURL;
|
|
2288
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
2289
|
+
auth: z.ZodEnum<{
|
|
2290
|
+
basic: "basic";
|
|
2291
|
+
none: "none";
|
|
2292
|
+
token: "token";
|
|
2293
|
+
}>;
|
|
2294
|
+
}, z.core.$strip>>;
|
|
2295
|
+
createdAt: z.ZodDate;
|
|
2296
|
+
lastActiveAt: z.ZodDate;
|
|
2297
|
+
ramMib: z.ZodOptional<z.ZodInt>;
|
|
2298
|
+
rssMib: z.ZodOptional<z.ZodInt>;
|
|
2299
|
+
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
2300
|
+
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
2301
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2302
|
+
sessions: z.ZodOptional<z.ZodInt>;
|
|
2303
|
+
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2304
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
2305
|
+
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2306
|
+
agent: "agent";
|
|
2307
|
+
firecracker: "firecracker";
|
|
2308
|
+
impd: "impd";
|
|
2309
|
+
ipv6: "ipv6";
|
|
2310
|
+
kernel: "kernel";
|
|
2311
|
+
}>>>>;
|
|
2312
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2313
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2314
|
+
weight: z.ZodInt;
|
|
2315
|
+
}, z.core.$strip>>;
|
|
2316
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2317
|
+
wakeCount: z.ZodInt;
|
|
2318
|
+
awakeMs: z.ZodInt;
|
|
2319
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2320
|
+
measuredAt: z.ZodDate;
|
|
2321
|
+
since: z.ZodDate;
|
|
2322
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2323
|
+
cpuThrottledMs: z.ZodInt;
|
|
2324
|
+
netRxBytes: z.ZodInt;
|
|
2325
|
+
netTxBytes: z.ZodInt;
|
|
2326
|
+
}, z.core.$strip>>;
|
|
2327
|
+
}, z.core.$strip>>;
|
|
1961
2328
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
1962
2329
|
NOT_FOUND: {
|
|
1963
2330
|
readonly message: "Not found";
|
|
@@ -1969,6 +2336,7 @@ declare const impContract: {
|
|
|
1969
2336
|
image: "image";
|
|
1970
2337
|
imp: "imp";
|
|
1971
2338
|
secret: "secret";
|
|
2339
|
+
service: "service";
|
|
1972
2340
|
session: "session";
|
|
1973
2341
|
"ssh-key": "ssh-key";
|
|
1974
2342
|
token: "token";
|
|
@@ -1986,6 +2354,7 @@ declare const impContract: {
|
|
|
1986
2354
|
image: "image";
|
|
1987
2355
|
imp: "imp";
|
|
1988
2356
|
secret: "secret";
|
|
2357
|
+
service: "service";
|
|
1989
2358
|
session: "session";
|
|
1990
2359
|
"ssh-key": "ssh-key";
|
|
1991
2360
|
token: "token";
|
|
@@ -2045,15 +2414,77 @@ declare const impContract: {
|
|
|
2045
2414
|
readonly status: 409;
|
|
2046
2415
|
};
|
|
2047
2416
|
}>, Record<never, never>>;
|
|
2048
|
-
|
|
2417
|
+
fork: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2418
|
+
source: z.ZodString;
|
|
2049
2419
|
name: z.ZodString;
|
|
2050
|
-
|
|
2420
|
+
checkpoint: z.ZodOptional<z.ZodString>;
|
|
2421
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2051
2422
|
id: z.ZodString;
|
|
2052
|
-
|
|
2053
|
-
|
|
2054
|
-
|
|
2423
|
+
name: z.ZodString;
|
|
2424
|
+
image: z.ZodString;
|
|
2425
|
+
state: z.ZodEnum<{
|
|
2426
|
+
creating: "creating";
|
|
2427
|
+
error: "error";
|
|
2428
|
+
running: "running";
|
|
2429
|
+
sleeping: "sleeping";
|
|
2430
|
+
stopped: "stopped";
|
|
2431
|
+
}>;
|
|
2432
|
+
vcpus: z.ZodInt;
|
|
2433
|
+
memoryMib: z.ZodInt;
|
|
2055
2434
|
diskMib: z.ZodInt;
|
|
2056
|
-
|
|
2435
|
+
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
2436
|
+
exclusiveBytes: z.ZodInt;
|
|
2437
|
+
sharedBytes: z.ZodInt;
|
|
2438
|
+
measuredAt: z.ZodDate;
|
|
2439
|
+
isPartial: z.ZodBoolean;
|
|
2440
|
+
isUpperBound: z.ZodBoolean;
|
|
2441
|
+
}, z.core.$strip>>;
|
|
2442
|
+
ip: z.ZodIPv4;
|
|
2443
|
+
slot: z.ZodInt;
|
|
2444
|
+
port: z.ZodInt;
|
|
2445
|
+
httpPort: z.ZodInt;
|
|
2446
|
+
url: z.ZodURL;
|
|
2447
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
2448
|
+
auth: z.ZodEnum<{
|
|
2449
|
+
basic: "basic";
|
|
2450
|
+
none: "none";
|
|
2451
|
+
token: "token";
|
|
2452
|
+
}>;
|
|
2453
|
+
}, z.core.$strip>>;
|
|
2454
|
+
createdAt: z.ZodDate;
|
|
2455
|
+
lastActiveAt: z.ZodDate;
|
|
2456
|
+
ramMib: z.ZodOptional<z.ZodInt>;
|
|
2457
|
+
rssMib: z.ZodOptional<z.ZodInt>;
|
|
2458
|
+
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
2459
|
+
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
2460
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2461
|
+
sessions: z.ZodOptional<z.ZodInt>;
|
|
2462
|
+
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2463
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
2464
|
+
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2465
|
+
agent: "agent";
|
|
2466
|
+
firecracker: "firecracker";
|
|
2467
|
+
impd: "impd";
|
|
2468
|
+
ipv6: "ipv6";
|
|
2469
|
+
kernel: "kernel";
|
|
2470
|
+
}>>>>;
|
|
2471
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2472
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2473
|
+
weight: z.ZodInt;
|
|
2474
|
+
}, z.core.$strip>>;
|
|
2475
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2476
|
+
wakeCount: z.ZodInt;
|
|
2477
|
+
awakeMs: z.ZodInt;
|
|
2478
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2479
|
+
measuredAt: z.ZodDate;
|
|
2480
|
+
since: z.ZodDate;
|
|
2481
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2482
|
+
cpuThrottledMs: z.ZodInt;
|
|
2483
|
+
netRxBytes: z.ZodInt;
|
|
2484
|
+
netTxBytes: z.ZodInt;
|
|
2485
|
+
}, z.core.$strip>>;
|
|
2486
|
+
}, z.core.$strip>>;
|
|
2487
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2057
2488
|
NOT_FOUND: {
|
|
2058
2489
|
readonly message: "Not found";
|
|
2059
2490
|
readonly data: z.ZodObject<{
|
|
@@ -2064,6 +2495,7 @@ declare const impContract: {
|
|
|
2064
2495
|
image: "image";
|
|
2065
2496
|
imp: "imp";
|
|
2066
2497
|
secret: "secret";
|
|
2498
|
+
service: "service";
|
|
2067
2499
|
session: "session";
|
|
2068
2500
|
"ssh-key": "ssh-key";
|
|
2069
2501
|
token: "token";
|
|
@@ -2081,6 +2513,7 @@ declare const impContract: {
|
|
|
2081
2513
|
image: "image";
|
|
2082
2514
|
imp: "imp";
|
|
2083
2515
|
secret: "secret";
|
|
2516
|
+
service: "service";
|
|
2084
2517
|
session: "session";
|
|
2085
2518
|
"ssh-key": "ssh-key";
|
|
2086
2519
|
token: "token";
|
|
@@ -2140,9 +2573,12 @@ declare const impContract: {
|
|
|
2140
2573
|
readonly status: 409;
|
|
2141
2574
|
};
|
|
2142
2575
|
}>, Record<never, never>>;
|
|
2143
|
-
|
|
2576
|
+
update: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2144
2577
|
name: z.ZodString;
|
|
2145
|
-
|
|
2578
|
+
cpuLimit: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
2579
|
+
cpuWeight: z.ZodOptional<z.ZodInt>;
|
|
2580
|
+
vcpus: z.ZodOptional<z.ZodInt>;
|
|
2581
|
+
httpPort: z.ZodOptional<z.ZodInt>;
|
|
2146
2582
|
}, z.core.$strip>, z.ZodObject<{
|
|
2147
2583
|
id: z.ZodString;
|
|
2148
2584
|
name: z.ZodString;
|
|
@@ -2169,6 +2605,13 @@ declare const impContract: {
|
|
|
2169
2605
|
port: z.ZodInt;
|
|
2170
2606
|
httpPort: z.ZodInt;
|
|
2171
2607
|
url: z.ZodURL;
|
|
2608
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
2609
|
+
auth: z.ZodEnum<{
|
|
2610
|
+
basic: "basic";
|
|
2611
|
+
none: "none";
|
|
2612
|
+
token: "token";
|
|
2613
|
+
}>;
|
|
2614
|
+
}, z.core.$strip>>;
|
|
2172
2615
|
createdAt: z.ZodDate;
|
|
2173
2616
|
lastActiveAt: z.ZodDate;
|
|
2174
2617
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -2178,12 +2621,30 @@ declare const impContract: {
|
|
|
2178
2621
|
error: z.ZodOptional<z.ZodString>;
|
|
2179
2622
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
2180
2623
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2624
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
2181
2625
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2182
2626
|
agent: "agent";
|
|
2183
2627
|
firecracker: "firecracker";
|
|
2184
2628
|
impd: "impd";
|
|
2629
|
+
ipv6: "ipv6";
|
|
2185
2630
|
kernel: "kernel";
|
|
2186
2631
|
}>>>>;
|
|
2632
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2633
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2634
|
+
weight: z.ZodInt;
|
|
2635
|
+
}, z.core.$strip>>;
|
|
2636
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2637
|
+
wakeCount: z.ZodInt;
|
|
2638
|
+
awakeMs: z.ZodInt;
|
|
2639
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2640
|
+
measuredAt: z.ZodDate;
|
|
2641
|
+
since: z.ZodDate;
|
|
2642
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2643
|
+
cpuThrottledMs: z.ZodInt;
|
|
2644
|
+
netRxBytes: z.ZodInt;
|
|
2645
|
+
netTxBytes: z.ZodInt;
|
|
2646
|
+
}, z.core.$strip>>;
|
|
2647
|
+
}, z.core.$strip>>;
|
|
2187
2648
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2188
2649
|
NOT_FOUND: {
|
|
2189
2650
|
readonly message: "Not found";
|
|
@@ -2195,6 +2656,7 @@ declare const impContract: {
|
|
|
2195
2656
|
image: "image";
|
|
2196
2657
|
imp: "imp";
|
|
2197
2658
|
secret: "secret";
|
|
2659
|
+
service: "service";
|
|
2198
2660
|
session: "session";
|
|
2199
2661
|
"ssh-key": "ssh-key";
|
|
2200
2662
|
token: "token";
|
|
@@ -2212,6 +2674,7 @@ declare const impContract: {
|
|
|
2212
2674
|
image: "image";
|
|
2213
2675
|
imp: "imp";
|
|
2214
2676
|
secret: "secret";
|
|
2677
|
+
service: "service";
|
|
2215
2678
|
session: "session";
|
|
2216
2679
|
"ssh-key": "ssh-key";
|
|
2217
2680
|
token: "token";
|
|
@@ -2271,10 +2734,927 @@ declare const impContract: {
|
|
|
2271
2734
|
readonly status: 409;
|
|
2272
2735
|
};
|
|
2273
2736
|
}>, Record<never, never>>;
|
|
2274
|
-
|
|
2737
|
+
};
|
|
2738
|
+
checkpoints: {
|
|
2739
|
+
create: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2740
|
+
name: z.ZodString;
|
|
2741
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2742
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2743
|
+
id: z.ZodString;
|
|
2744
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2745
|
+
createdAt: z.ZodDate;
|
|
2746
|
+
sizeBytes: z.ZodOptional<z.ZodInt>;
|
|
2747
|
+
diskMib: z.ZodInt;
|
|
2748
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2749
|
+
NOT_FOUND: {
|
|
2750
|
+
readonly message: "Not found";
|
|
2751
|
+
readonly data: z.ZodObject<{
|
|
2752
|
+
kind: z.ZodEnum<{
|
|
2753
|
+
backup: "backup";
|
|
2754
|
+
checkpoint: "checkpoint";
|
|
2755
|
+
grant: "grant";
|
|
2756
|
+
image: "image";
|
|
2757
|
+
imp: "imp";
|
|
2758
|
+
secret: "secret";
|
|
2759
|
+
service: "service";
|
|
2760
|
+
session: "session";
|
|
2761
|
+
"ssh-key": "ssh-key";
|
|
2762
|
+
token: "token";
|
|
2763
|
+
}>;
|
|
2764
|
+
name: z.ZodString;
|
|
2765
|
+
}, z.core.$strip>;
|
|
2766
|
+
};
|
|
2767
|
+
CONFLICT: {
|
|
2768
|
+
readonly message: "Already exists";
|
|
2769
|
+
readonly data: z.ZodObject<{
|
|
2770
|
+
kind: z.ZodEnum<{
|
|
2771
|
+
backup: "backup";
|
|
2772
|
+
checkpoint: "checkpoint";
|
|
2773
|
+
grant: "grant";
|
|
2774
|
+
image: "image";
|
|
2775
|
+
imp: "imp";
|
|
2776
|
+
secret: "secret";
|
|
2777
|
+
service: "service";
|
|
2778
|
+
session: "session";
|
|
2779
|
+
"ssh-key": "ssh-key";
|
|
2780
|
+
token: "token";
|
|
2781
|
+
}>;
|
|
2782
|
+
name: z.ZodString;
|
|
2783
|
+
}, z.core.$strip>;
|
|
2784
|
+
};
|
|
2785
|
+
FORBIDDEN: {
|
|
2786
|
+
readonly message: "Not allowed";
|
|
2787
|
+
};
|
|
2788
|
+
PRECONDITION_FAILED: {
|
|
2789
|
+
readonly message: "Not possible on this host";
|
|
2790
|
+
};
|
|
2791
|
+
RAM_BUDGET_EXCEEDED: {
|
|
2792
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
2793
|
+
readonly status: 503;
|
|
2794
|
+
readonly data: z.ZodObject<{
|
|
2795
|
+
budgetMib: z.ZodInt;
|
|
2796
|
+
usedMib: z.ZodInt;
|
|
2797
|
+
requestedMib: z.ZodInt;
|
|
2798
|
+
}, z.core.$strip>;
|
|
2799
|
+
};
|
|
2800
|
+
SERVICE_UNAVAILABLE: {
|
|
2801
|
+
readonly message: "impd is stopping";
|
|
2802
|
+
};
|
|
2803
|
+
INVALID_STATE: {
|
|
2804
|
+
readonly message: "The imp is not in a state that allows this";
|
|
2805
|
+
readonly status: 409;
|
|
2806
|
+
readonly data: z.ZodObject<{
|
|
2807
|
+
state: z.ZodEnum<{
|
|
2808
|
+
creating: "creating";
|
|
2809
|
+
error: "error";
|
|
2810
|
+
running: "running";
|
|
2811
|
+
sleeping: "sleeping";
|
|
2812
|
+
stopped: "stopped";
|
|
2813
|
+
}>;
|
|
2814
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
2815
|
+
creating: "creating";
|
|
2816
|
+
error: "error";
|
|
2817
|
+
running: "running";
|
|
2818
|
+
sleeping: "sleeping";
|
|
2819
|
+
stopped: "stopped";
|
|
2820
|
+
}>>;
|
|
2821
|
+
}, z.core.$strip>;
|
|
2822
|
+
};
|
|
2823
|
+
DISK_FULL: {
|
|
2824
|
+
readonly message: "Not enough free disk on the host";
|
|
2825
|
+
readonly status: 507;
|
|
2826
|
+
readonly data: z.ZodObject<{
|
|
2827
|
+
availableBytes: z.ZodInt;
|
|
2828
|
+
reserveBytes: z.ZodInt;
|
|
2829
|
+
requestedBytes: z.ZodInt;
|
|
2830
|
+
}, z.core.$strip>;
|
|
2831
|
+
};
|
|
2832
|
+
AGENT_OUTDATED: {
|
|
2833
|
+
readonly message: "The imp's agent is too old for this";
|
|
2834
|
+
readonly status: 409;
|
|
2835
|
+
};
|
|
2836
|
+
}>, Record<never, never>>;
|
|
2837
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2838
|
+
name: z.ZodString;
|
|
2839
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
2840
|
+
id: z.ZodString;
|
|
2841
|
+
label: z.ZodOptional<z.ZodString>;
|
|
2842
|
+
createdAt: z.ZodDate;
|
|
2843
|
+
sizeBytes: z.ZodOptional<z.ZodInt>;
|
|
2844
|
+
diskMib: z.ZodInt;
|
|
2845
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2846
|
+
NOT_FOUND: {
|
|
2847
|
+
readonly message: "Not found";
|
|
2848
|
+
readonly data: z.ZodObject<{
|
|
2849
|
+
kind: z.ZodEnum<{
|
|
2850
|
+
backup: "backup";
|
|
2851
|
+
checkpoint: "checkpoint";
|
|
2852
|
+
grant: "grant";
|
|
2853
|
+
image: "image";
|
|
2854
|
+
imp: "imp";
|
|
2855
|
+
secret: "secret";
|
|
2856
|
+
service: "service";
|
|
2857
|
+
session: "session";
|
|
2858
|
+
"ssh-key": "ssh-key";
|
|
2859
|
+
token: "token";
|
|
2860
|
+
}>;
|
|
2861
|
+
name: z.ZodString;
|
|
2862
|
+
}, z.core.$strip>;
|
|
2863
|
+
};
|
|
2864
|
+
CONFLICT: {
|
|
2865
|
+
readonly message: "Already exists";
|
|
2866
|
+
readonly data: z.ZodObject<{
|
|
2867
|
+
kind: z.ZodEnum<{
|
|
2868
|
+
backup: "backup";
|
|
2869
|
+
checkpoint: "checkpoint";
|
|
2870
|
+
grant: "grant";
|
|
2871
|
+
image: "image";
|
|
2872
|
+
imp: "imp";
|
|
2873
|
+
secret: "secret";
|
|
2874
|
+
service: "service";
|
|
2875
|
+
session: "session";
|
|
2876
|
+
"ssh-key": "ssh-key";
|
|
2877
|
+
token: "token";
|
|
2878
|
+
}>;
|
|
2879
|
+
name: z.ZodString;
|
|
2880
|
+
}, z.core.$strip>;
|
|
2881
|
+
};
|
|
2882
|
+
FORBIDDEN: {
|
|
2883
|
+
readonly message: "Not allowed";
|
|
2884
|
+
};
|
|
2885
|
+
PRECONDITION_FAILED: {
|
|
2886
|
+
readonly message: "Not possible on this host";
|
|
2887
|
+
};
|
|
2888
|
+
RAM_BUDGET_EXCEEDED: {
|
|
2889
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
2890
|
+
readonly status: 503;
|
|
2891
|
+
readonly data: z.ZodObject<{
|
|
2892
|
+
budgetMib: z.ZodInt;
|
|
2893
|
+
usedMib: z.ZodInt;
|
|
2894
|
+
requestedMib: z.ZodInt;
|
|
2895
|
+
}, z.core.$strip>;
|
|
2896
|
+
};
|
|
2897
|
+
SERVICE_UNAVAILABLE: {
|
|
2898
|
+
readonly message: "impd is stopping";
|
|
2899
|
+
};
|
|
2900
|
+
INVALID_STATE: {
|
|
2901
|
+
readonly message: "The imp is not in a state that allows this";
|
|
2902
|
+
readonly status: 409;
|
|
2903
|
+
readonly data: z.ZodObject<{
|
|
2904
|
+
state: z.ZodEnum<{
|
|
2905
|
+
creating: "creating";
|
|
2906
|
+
error: "error";
|
|
2907
|
+
running: "running";
|
|
2908
|
+
sleeping: "sleeping";
|
|
2909
|
+
stopped: "stopped";
|
|
2910
|
+
}>;
|
|
2911
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
2912
|
+
creating: "creating";
|
|
2913
|
+
error: "error";
|
|
2914
|
+
running: "running";
|
|
2915
|
+
sleeping: "sleeping";
|
|
2916
|
+
stopped: "stopped";
|
|
2917
|
+
}>>;
|
|
2918
|
+
}, z.core.$strip>;
|
|
2919
|
+
};
|
|
2920
|
+
DISK_FULL: {
|
|
2921
|
+
readonly message: "Not enough free disk on the host";
|
|
2922
|
+
readonly status: 507;
|
|
2923
|
+
readonly data: z.ZodObject<{
|
|
2924
|
+
availableBytes: z.ZodInt;
|
|
2925
|
+
reserveBytes: z.ZodInt;
|
|
2926
|
+
requestedBytes: z.ZodInt;
|
|
2927
|
+
}, z.core.$strip>;
|
|
2928
|
+
};
|
|
2929
|
+
AGENT_OUTDATED: {
|
|
2930
|
+
readonly message: "The imp's agent is too old for this";
|
|
2931
|
+
readonly status: 409;
|
|
2932
|
+
};
|
|
2933
|
+
}>, Record<never, never>>;
|
|
2934
|
+
restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2275
2935
|
name: z.ZodString;
|
|
2276
2936
|
checkpoint: z.ZodString;
|
|
2277
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2937
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
2938
|
+
id: z.ZodString;
|
|
2939
|
+
name: z.ZodString;
|
|
2940
|
+
image: z.ZodString;
|
|
2941
|
+
state: z.ZodEnum<{
|
|
2942
|
+
creating: "creating";
|
|
2943
|
+
error: "error";
|
|
2944
|
+
running: "running";
|
|
2945
|
+
sleeping: "sleeping";
|
|
2946
|
+
stopped: "stopped";
|
|
2947
|
+
}>;
|
|
2948
|
+
vcpus: z.ZodInt;
|
|
2949
|
+
memoryMib: z.ZodInt;
|
|
2950
|
+
diskMib: z.ZodInt;
|
|
2951
|
+
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
2952
|
+
exclusiveBytes: z.ZodInt;
|
|
2953
|
+
sharedBytes: z.ZodInt;
|
|
2954
|
+
measuredAt: z.ZodDate;
|
|
2955
|
+
isPartial: z.ZodBoolean;
|
|
2956
|
+
isUpperBound: z.ZodBoolean;
|
|
2957
|
+
}, z.core.$strip>>;
|
|
2958
|
+
ip: z.ZodIPv4;
|
|
2959
|
+
slot: z.ZodInt;
|
|
2960
|
+
port: z.ZodInt;
|
|
2961
|
+
httpPort: z.ZodInt;
|
|
2962
|
+
url: z.ZodURL;
|
|
2963
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
2964
|
+
auth: z.ZodEnum<{
|
|
2965
|
+
basic: "basic";
|
|
2966
|
+
none: "none";
|
|
2967
|
+
token: "token";
|
|
2968
|
+
}>;
|
|
2969
|
+
}, z.core.$strip>>;
|
|
2970
|
+
createdAt: z.ZodDate;
|
|
2971
|
+
lastActiveAt: z.ZodDate;
|
|
2972
|
+
ramMib: z.ZodOptional<z.ZodInt>;
|
|
2973
|
+
rssMib: z.ZodOptional<z.ZodInt>;
|
|
2974
|
+
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
2975
|
+
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
2976
|
+
error: z.ZodOptional<z.ZodString>;
|
|
2977
|
+
sessions: z.ZodOptional<z.ZodInt>;
|
|
2978
|
+
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2979
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
2980
|
+
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2981
|
+
agent: "agent";
|
|
2982
|
+
firecracker: "firecracker";
|
|
2983
|
+
impd: "impd";
|
|
2984
|
+
ipv6: "ipv6";
|
|
2985
|
+
kernel: "kernel";
|
|
2986
|
+
}>>>>;
|
|
2987
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
2988
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
2989
|
+
weight: z.ZodInt;
|
|
2990
|
+
}, z.core.$strip>>;
|
|
2991
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
2992
|
+
wakeCount: z.ZodInt;
|
|
2993
|
+
awakeMs: z.ZodInt;
|
|
2994
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
2995
|
+
measuredAt: z.ZodDate;
|
|
2996
|
+
since: z.ZodDate;
|
|
2997
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
2998
|
+
cpuThrottledMs: z.ZodInt;
|
|
2999
|
+
netRxBytes: z.ZodInt;
|
|
3000
|
+
netTxBytes: z.ZodInt;
|
|
3001
|
+
}, z.core.$strip>>;
|
|
3002
|
+
}, z.core.$strip>>;
|
|
3003
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3004
|
+
NOT_FOUND: {
|
|
3005
|
+
readonly message: "Not found";
|
|
3006
|
+
readonly data: z.ZodObject<{
|
|
3007
|
+
kind: z.ZodEnum<{
|
|
3008
|
+
backup: "backup";
|
|
3009
|
+
checkpoint: "checkpoint";
|
|
3010
|
+
grant: "grant";
|
|
3011
|
+
image: "image";
|
|
3012
|
+
imp: "imp";
|
|
3013
|
+
secret: "secret";
|
|
3014
|
+
service: "service";
|
|
3015
|
+
session: "session";
|
|
3016
|
+
"ssh-key": "ssh-key";
|
|
3017
|
+
token: "token";
|
|
3018
|
+
}>;
|
|
3019
|
+
name: z.ZodString;
|
|
3020
|
+
}, z.core.$strip>;
|
|
3021
|
+
};
|
|
3022
|
+
CONFLICT: {
|
|
3023
|
+
readonly message: "Already exists";
|
|
3024
|
+
readonly data: z.ZodObject<{
|
|
3025
|
+
kind: z.ZodEnum<{
|
|
3026
|
+
backup: "backup";
|
|
3027
|
+
checkpoint: "checkpoint";
|
|
3028
|
+
grant: "grant";
|
|
3029
|
+
image: "image";
|
|
3030
|
+
imp: "imp";
|
|
3031
|
+
secret: "secret";
|
|
3032
|
+
service: "service";
|
|
3033
|
+
session: "session";
|
|
3034
|
+
"ssh-key": "ssh-key";
|
|
3035
|
+
token: "token";
|
|
3036
|
+
}>;
|
|
3037
|
+
name: z.ZodString;
|
|
3038
|
+
}, z.core.$strip>;
|
|
3039
|
+
};
|
|
3040
|
+
FORBIDDEN: {
|
|
3041
|
+
readonly message: "Not allowed";
|
|
3042
|
+
};
|
|
3043
|
+
PRECONDITION_FAILED: {
|
|
3044
|
+
readonly message: "Not possible on this host";
|
|
3045
|
+
};
|
|
3046
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3047
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3048
|
+
readonly status: 503;
|
|
3049
|
+
readonly data: z.ZodObject<{
|
|
3050
|
+
budgetMib: z.ZodInt;
|
|
3051
|
+
usedMib: z.ZodInt;
|
|
3052
|
+
requestedMib: z.ZodInt;
|
|
3053
|
+
}, z.core.$strip>;
|
|
3054
|
+
};
|
|
3055
|
+
SERVICE_UNAVAILABLE: {
|
|
3056
|
+
readonly message: "impd is stopping";
|
|
3057
|
+
};
|
|
3058
|
+
INVALID_STATE: {
|
|
3059
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3060
|
+
readonly status: 409;
|
|
3061
|
+
readonly data: z.ZodObject<{
|
|
3062
|
+
state: z.ZodEnum<{
|
|
3063
|
+
creating: "creating";
|
|
3064
|
+
error: "error";
|
|
3065
|
+
running: "running";
|
|
3066
|
+
sleeping: "sleeping";
|
|
3067
|
+
stopped: "stopped";
|
|
3068
|
+
}>;
|
|
3069
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3070
|
+
creating: "creating";
|
|
3071
|
+
error: "error";
|
|
3072
|
+
running: "running";
|
|
3073
|
+
sleeping: "sleeping";
|
|
3074
|
+
stopped: "stopped";
|
|
3075
|
+
}>>;
|
|
3076
|
+
}, z.core.$strip>;
|
|
3077
|
+
};
|
|
3078
|
+
DISK_FULL: {
|
|
3079
|
+
readonly message: "Not enough free disk on the host";
|
|
3080
|
+
readonly status: 507;
|
|
3081
|
+
readonly data: z.ZodObject<{
|
|
3082
|
+
availableBytes: z.ZodInt;
|
|
3083
|
+
reserveBytes: z.ZodInt;
|
|
3084
|
+
requestedBytes: z.ZodInt;
|
|
3085
|
+
}, z.core.$strip>;
|
|
3086
|
+
};
|
|
3087
|
+
AGENT_OUTDATED: {
|
|
3088
|
+
readonly message: "The imp's agent is too old for this";
|
|
3089
|
+
readonly status: 409;
|
|
3090
|
+
};
|
|
3091
|
+
}>, Record<never, never>>;
|
|
3092
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3093
|
+
name: z.ZodString;
|
|
3094
|
+
checkpoint: z.ZodString;
|
|
3095
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3096
|
+
NOT_FOUND: {
|
|
3097
|
+
readonly message: "Not found";
|
|
3098
|
+
readonly data: z.ZodObject<{
|
|
3099
|
+
kind: z.ZodEnum<{
|
|
3100
|
+
backup: "backup";
|
|
3101
|
+
checkpoint: "checkpoint";
|
|
3102
|
+
grant: "grant";
|
|
3103
|
+
image: "image";
|
|
3104
|
+
imp: "imp";
|
|
3105
|
+
secret: "secret";
|
|
3106
|
+
service: "service";
|
|
3107
|
+
session: "session";
|
|
3108
|
+
"ssh-key": "ssh-key";
|
|
3109
|
+
token: "token";
|
|
3110
|
+
}>;
|
|
3111
|
+
name: z.ZodString;
|
|
3112
|
+
}, z.core.$strip>;
|
|
3113
|
+
};
|
|
3114
|
+
CONFLICT: {
|
|
3115
|
+
readonly message: "Already exists";
|
|
3116
|
+
readonly data: z.ZodObject<{
|
|
3117
|
+
kind: z.ZodEnum<{
|
|
3118
|
+
backup: "backup";
|
|
3119
|
+
checkpoint: "checkpoint";
|
|
3120
|
+
grant: "grant";
|
|
3121
|
+
image: "image";
|
|
3122
|
+
imp: "imp";
|
|
3123
|
+
secret: "secret";
|
|
3124
|
+
service: "service";
|
|
3125
|
+
session: "session";
|
|
3126
|
+
"ssh-key": "ssh-key";
|
|
3127
|
+
token: "token";
|
|
3128
|
+
}>;
|
|
3129
|
+
name: z.ZodString;
|
|
3130
|
+
}, z.core.$strip>;
|
|
3131
|
+
};
|
|
3132
|
+
FORBIDDEN: {
|
|
3133
|
+
readonly message: "Not allowed";
|
|
3134
|
+
};
|
|
3135
|
+
PRECONDITION_FAILED: {
|
|
3136
|
+
readonly message: "Not possible on this host";
|
|
3137
|
+
};
|
|
3138
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3139
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3140
|
+
readonly status: 503;
|
|
3141
|
+
readonly data: z.ZodObject<{
|
|
3142
|
+
budgetMib: z.ZodInt;
|
|
3143
|
+
usedMib: z.ZodInt;
|
|
3144
|
+
requestedMib: z.ZodInt;
|
|
3145
|
+
}, z.core.$strip>;
|
|
3146
|
+
};
|
|
3147
|
+
SERVICE_UNAVAILABLE: {
|
|
3148
|
+
readonly message: "impd is stopping";
|
|
3149
|
+
};
|
|
3150
|
+
INVALID_STATE: {
|
|
3151
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3152
|
+
readonly status: 409;
|
|
3153
|
+
readonly data: z.ZodObject<{
|
|
3154
|
+
state: z.ZodEnum<{
|
|
3155
|
+
creating: "creating";
|
|
3156
|
+
error: "error";
|
|
3157
|
+
running: "running";
|
|
3158
|
+
sleeping: "sleeping";
|
|
3159
|
+
stopped: "stopped";
|
|
3160
|
+
}>;
|
|
3161
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3162
|
+
creating: "creating";
|
|
3163
|
+
error: "error";
|
|
3164
|
+
running: "running";
|
|
3165
|
+
sleeping: "sleeping";
|
|
3166
|
+
stopped: "stopped";
|
|
3167
|
+
}>>;
|
|
3168
|
+
}, z.core.$strip>;
|
|
3169
|
+
};
|
|
3170
|
+
DISK_FULL: {
|
|
3171
|
+
readonly message: "Not enough free disk on the host";
|
|
3172
|
+
readonly status: 507;
|
|
3173
|
+
readonly data: z.ZodObject<{
|
|
3174
|
+
availableBytes: z.ZodInt;
|
|
3175
|
+
reserveBytes: z.ZodInt;
|
|
3176
|
+
requestedBytes: z.ZodInt;
|
|
3177
|
+
}, z.core.$strip>;
|
|
3178
|
+
};
|
|
3179
|
+
AGENT_OUTDATED: {
|
|
3180
|
+
readonly message: "The imp's agent is too old for this";
|
|
3181
|
+
readonly status: 409;
|
|
3182
|
+
};
|
|
3183
|
+
}>, Record<never, never>>;
|
|
3184
|
+
};
|
|
3185
|
+
backups: {
|
|
3186
|
+
run: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
3187
|
+
snapshotId: z.ZodString;
|
|
3188
|
+
imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
3189
|
+
skipped: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3190
|
+
name: z.ZodString;
|
|
3191
|
+
reason: z.ZodString;
|
|
3192
|
+
}, z.core.$strip>>>;
|
|
3193
|
+
dataAddedBytes: z.ZodInt;
|
|
3194
|
+
durationMs: z.ZodInt;
|
|
3195
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3196
|
+
NOT_FOUND: {
|
|
3197
|
+
readonly message: "Not found";
|
|
3198
|
+
readonly data: z.ZodObject<{
|
|
3199
|
+
kind: z.ZodEnum<{
|
|
3200
|
+
backup: "backup";
|
|
3201
|
+
checkpoint: "checkpoint";
|
|
3202
|
+
grant: "grant";
|
|
3203
|
+
image: "image";
|
|
3204
|
+
imp: "imp";
|
|
3205
|
+
secret: "secret";
|
|
3206
|
+
service: "service";
|
|
3207
|
+
session: "session";
|
|
3208
|
+
"ssh-key": "ssh-key";
|
|
3209
|
+
token: "token";
|
|
3210
|
+
}>;
|
|
3211
|
+
name: z.ZodString;
|
|
3212
|
+
}, z.core.$strip>;
|
|
3213
|
+
};
|
|
3214
|
+
CONFLICT: {
|
|
3215
|
+
readonly message: "Already exists";
|
|
3216
|
+
readonly data: z.ZodObject<{
|
|
3217
|
+
kind: z.ZodEnum<{
|
|
3218
|
+
backup: "backup";
|
|
3219
|
+
checkpoint: "checkpoint";
|
|
3220
|
+
grant: "grant";
|
|
3221
|
+
image: "image";
|
|
3222
|
+
imp: "imp";
|
|
3223
|
+
secret: "secret";
|
|
3224
|
+
service: "service";
|
|
3225
|
+
session: "session";
|
|
3226
|
+
"ssh-key": "ssh-key";
|
|
3227
|
+
token: "token";
|
|
3228
|
+
}>;
|
|
3229
|
+
name: z.ZodString;
|
|
3230
|
+
}, z.core.$strip>;
|
|
3231
|
+
};
|
|
3232
|
+
FORBIDDEN: {
|
|
3233
|
+
readonly message: "Not allowed";
|
|
3234
|
+
};
|
|
3235
|
+
PRECONDITION_FAILED: {
|
|
3236
|
+
readonly message: "Not possible on this host";
|
|
3237
|
+
};
|
|
3238
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3239
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3240
|
+
readonly status: 503;
|
|
3241
|
+
readonly data: z.ZodObject<{
|
|
3242
|
+
budgetMib: z.ZodInt;
|
|
3243
|
+
usedMib: z.ZodInt;
|
|
3244
|
+
requestedMib: z.ZodInt;
|
|
3245
|
+
}, z.core.$strip>;
|
|
3246
|
+
};
|
|
3247
|
+
SERVICE_UNAVAILABLE: {
|
|
3248
|
+
readonly message: "impd is stopping";
|
|
3249
|
+
};
|
|
3250
|
+
INVALID_STATE: {
|
|
3251
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3252
|
+
readonly status: 409;
|
|
3253
|
+
readonly data: z.ZodObject<{
|
|
3254
|
+
state: z.ZodEnum<{
|
|
3255
|
+
creating: "creating";
|
|
3256
|
+
error: "error";
|
|
3257
|
+
running: "running";
|
|
3258
|
+
sleeping: "sleeping";
|
|
3259
|
+
stopped: "stopped";
|
|
3260
|
+
}>;
|
|
3261
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3262
|
+
creating: "creating";
|
|
3263
|
+
error: "error";
|
|
3264
|
+
running: "running";
|
|
3265
|
+
sleeping: "sleeping";
|
|
3266
|
+
stopped: "stopped";
|
|
3267
|
+
}>>;
|
|
3268
|
+
}, z.core.$strip>;
|
|
3269
|
+
};
|
|
3270
|
+
DISK_FULL: {
|
|
3271
|
+
readonly message: "Not enough free disk on the host";
|
|
3272
|
+
readonly status: 507;
|
|
3273
|
+
readonly data: z.ZodObject<{
|
|
3274
|
+
availableBytes: z.ZodInt;
|
|
3275
|
+
reserveBytes: z.ZodInt;
|
|
3276
|
+
requestedBytes: z.ZodInt;
|
|
3277
|
+
}, z.core.$strip>;
|
|
3278
|
+
};
|
|
3279
|
+
AGENT_OUTDATED: {
|
|
3280
|
+
readonly message: "The imp's agent is too old for this";
|
|
3281
|
+
readonly status: 409;
|
|
3282
|
+
};
|
|
3283
|
+
}>, Record<never, never>>;
|
|
3284
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodObject<{
|
|
3285
|
+
points: z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
3286
|
+
id: z.ZodString;
|
|
3287
|
+
time: z.ZodDate;
|
|
3288
|
+
imps: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
3289
|
+
}, z.core.$strip>>>>;
|
|
3290
|
+
lastRunAt: z.ZodNullable<z.ZodDate>;
|
|
3291
|
+
lastPruneAt: z.ZodNullable<z.ZodDate>;
|
|
3292
|
+
lastCheck: z.ZodNullable<z.ZodObject<{
|
|
3293
|
+
at: z.ZodDate;
|
|
3294
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3295
|
+
}, z.core.$strip>>;
|
|
3296
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3297
|
+
NOT_FOUND: {
|
|
3298
|
+
readonly message: "Not found";
|
|
3299
|
+
readonly data: z.ZodObject<{
|
|
3300
|
+
kind: z.ZodEnum<{
|
|
3301
|
+
backup: "backup";
|
|
3302
|
+
checkpoint: "checkpoint";
|
|
3303
|
+
grant: "grant";
|
|
3304
|
+
image: "image";
|
|
3305
|
+
imp: "imp";
|
|
3306
|
+
secret: "secret";
|
|
3307
|
+
service: "service";
|
|
3308
|
+
session: "session";
|
|
3309
|
+
"ssh-key": "ssh-key";
|
|
3310
|
+
token: "token";
|
|
3311
|
+
}>;
|
|
3312
|
+
name: z.ZodString;
|
|
3313
|
+
}, z.core.$strip>;
|
|
3314
|
+
};
|
|
3315
|
+
CONFLICT: {
|
|
3316
|
+
readonly message: "Already exists";
|
|
3317
|
+
readonly data: z.ZodObject<{
|
|
3318
|
+
kind: z.ZodEnum<{
|
|
3319
|
+
backup: "backup";
|
|
3320
|
+
checkpoint: "checkpoint";
|
|
3321
|
+
grant: "grant";
|
|
3322
|
+
image: "image";
|
|
3323
|
+
imp: "imp";
|
|
3324
|
+
secret: "secret";
|
|
3325
|
+
service: "service";
|
|
3326
|
+
session: "session";
|
|
3327
|
+
"ssh-key": "ssh-key";
|
|
3328
|
+
token: "token";
|
|
3329
|
+
}>;
|
|
3330
|
+
name: z.ZodString;
|
|
3331
|
+
}, z.core.$strip>;
|
|
3332
|
+
};
|
|
3333
|
+
FORBIDDEN: {
|
|
3334
|
+
readonly message: "Not allowed";
|
|
3335
|
+
};
|
|
3336
|
+
PRECONDITION_FAILED: {
|
|
3337
|
+
readonly message: "Not possible on this host";
|
|
3338
|
+
};
|
|
3339
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3340
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3341
|
+
readonly status: 503;
|
|
3342
|
+
readonly data: z.ZodObject<{
|
|
3343
|
+
budgetMib: z.ZodInt;
|
|
3344
|
+
usedMib: z.ZodInt;
|
|
3345
|
+
requestedMib: z.ZodInt;
|
|
3346
|
+
}, z.core.$strip>;
|
|
3347
|
+
};
|
|
3348
|
+
SERVICE_UNAVAILABLE: {
|
|
3349
|
+
readonly message: "impd is stopping";
|
|
3350
|
+
};
|
|
3351
|
+
INVALID_STATE: {
|
|
3352
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3353
|
+
readonly status: 409;
|
|
3354
|
+
readonly data: z.ZodObject<{
|
|
3355
|
+
state: z.ZodEnum<{
|
|
3356
|
+
creating: "creating";
|
|
3357
|
+
error: "error";
|
|
3358
|
+
running: "running";
|
|
3359
|
+
sleeping: "sleeping";
|
|
3360
|
+
stopped: "stopped";
|
|
3361
|
+
}>;
|
|
3362
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3363
|
+
creating: "creating";
|
|
3364
|
+
error: "error";
|
|
3365
|
+
running: "running";
|
|
3366
|
+
sleeping: "sleeping";
|
|
3367
|
+
stopped: "stopped";
|
|
3368
|
+
}>>;
|
|
3369
|
+
}, z.core.$strip>;
|
|
3370
|
+
};
|
|
3371
|
+
DISK_FULL: {
|
|
3372
|
+
readonly message: "Not enough free disk on the host";
|
|
3373
|
+
readonly status: 507;
|
|
3374
|
+
readonly data: z.ZodObject<{
|
|
3375
|
+
availableBytes: z.ZodInt;
|
|
3376
|
+
reserveBytes: z.ZodInt;
|
|
3377
|
+
requestedBytes: z.ZodInt;
|
|
3378
|
+
}, z.core.$strip>;
|
|
3379
|
+
};
|
|
3380
|
+
AGENT_OUTDATED: {
|
|
3381
|
+
readonly message: "The imp's agent is too old for this";
|
|
3382
|
+
readonly status: 409;
|
|
3383
|
+
};
|
|
3384
|
+
}>, Record<never, never>>;
|
|
3385
|
+
restore: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3386
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3387
|
+
all: z.ZodOptional<z.ZodBoolean>;
|
|
3388
|
+
at: z.ZodOptional<z.ZodDate>;
|
|
3389
|
+
as: z.ZodOptional<z.ZodString>;
|
|
3390
|
+
merge: z.ZodOptional<z.ZodBoolean>;
|
|
3391
|
+
}, z.core.$strip>, z.ZodReadonly<z.ZodObject<{
|
|
3392
|
+
imps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3393
|
+
id: z.ZodString;
|
|
3394
|
+
name: z.ZodString;
|
|
3395
|
+
image: z.ZodString;
|
|
3396
|
+
state: z.ZodEnum<{
|
|
3397
|
+
creating: "creating";
|
|
3398
|
+
error: "error";
|
|
3399
|
+
running: "running";
|
|
3400
|
+
sleeping: "sleeping";
|
|
3401
|
+
stopped: "stopped";
|
|
3402
|
+
}>;
|
|
3403
|
+
vcpus: z.ZodInt;
|
|
3404
|
+
memoryMib: z.ZodInt;
|
|
3405
|
+
diskMib: z.ZodInt;
|
|
3406
|
+
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
3407
|
+
exclusiveBytes: z.ZodInt;
|
|
3408
|
+
sharedBytes: z.ZodInt;
|
|
3409
|
+
measuredAt: z.ZodDate;
|
|
3410
|
+
isPartial: z.ZodBoolean;
|
|
3411
|
+
isUpperBound: z.ZodBoolean;
|
|
3412
|
+
}, z.core.$strip>>;
|
|
3413
|
+
ip: z.ZodIPv4;
|
|
3414
|
+
slot: z.ZodInt;
|
|
3415
|
+
port: z.ZodInt;
|
|
3416
|
+
httpPort: z.ZodInt;
|
|
3417
|
+
url: z.ZodURL;
|
|
3418
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
3419
|
+
auth: z.ZodEnum<{
|
|
3420
|
+
basic: "basic";
|
|
3421
|
+
none: "none";
|
|
3422
|
+
token: "token";
|
|
3423
|
+
}>;
|
|
3424
|
+
}, z.core.$strip>>;
|
|
3425
|
+
createdAt: z.ZodDate;
|
|
3426
|
+
lastActiveAt: z.ZodDate;
|
|
3427
|
+
ramMib: z.ZodOptional<z.ZodInt>;
|
|
3428
|
+
rssMib: z.ZodOptional<z.ZodInt>;
|
|
3429
|
+
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
3430
|
+
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
3431
|
+
error: z.ZodOptional<z.ZodString>;
|
|
3432
|
+
sessions: z.ZodOptional<z.ZodInt>;
|
|
3433
|
+
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
3434
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
3435
|
+
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
3436
|
+
agent: "agent";
|
|
3437
|
+
firecracker: "firecracker";
|
|
3438
|
+
impd: "impd";
|
|
3439
|
+
ipv6: "ipv6";
|
|
3440
|
+
kernel: "kernel";
|
|
3441
|
+
}>>>>;
|
|
3442
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
3443
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
3444
|
+
weight: z.ZodInt;
|
|
3445
|
+
}, z.core.$strip>>;
|
|
3446
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
3447
|
+
wakeCount: z.ZodInt;
|
|
3448
|
+
awakeMs: z.ZodInt;
|
|
3449
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
3450
|
+
measuredAt: z.ZodDate;
|
|
3451
|
+
since: z.ZodDate;
|
|
3452
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
3453
|
+
cpuThrottledMs: z.ZodInt;
|
|
3454
|
+
netRxBytes: z.ZodInt;
|
|
3455
|
+
netTxBytes: z.ZodInt;
|
|
3456
|
+
}, z.core.$strip>>;
|
|
3457
|
+
}, z.core.$strip>>;
|
|
3458
|
+
}, z.core.$strip>>>;
|
|
3459
|
+
skippedGrants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
3460
|
+
imp: z.ZodString;
|
|
3461
|
+
secret: z.ZodString;
|
|
3462
|
+
reason: z.ZodString;
|
|
3463
|
+
}, z.core.$strip>>>;
|
|
3464
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3465
|
+
NOT_FOUND: {
|
|
3466
|
+
readonly message: "Not found";
|
|
3467
|
+
readonly data: z.ZodObject<{
|
|
3468
|
+
kind: z.ZodEnum<{
|
|
3469
|
+
backup: "backup";
|
|
3470
|
+
checkpoint: "checkpoint";
|
|
3471
|
+
grant: "grant";
|
|
3472
|
+
image: "image";
|
|
3473
|
+
imp: "imp";
|
|
3474
|
+
secret: "secret";
|
|
3475
|
+
service: "service";
|
|
3476
|
+
session: "session";
|
|
3477
|
+
"ssh-key": "ssh-key";
|
|
3478
|
+
token: "token";
|
|
3479
|
+
}>;
|
|
3480
|
+
name: z.ZodString;
|
|
3481
|
+
}, z.core.$strip>;
|
|
3482
|
+
};
|
|
3483
|
+
CONFLICT: {
|
|
3484
|
+
readonly message: "Already exists";
|
|
3485
|
+
readonly data: z.ZodObject<{
|
|
3486
|
+
kind: z.ZodEnum<{
|
|
3487
|
+
backup: "backup";
|
|
3488
|
+
checkpoint: "checkpoint";
|
|
3489
|
+
grant: "grant";
|
|
3490
|
+
image: "image";
|
|
3491
|
+
imp: "imp";
|
|
3492
|
+
secret: "secret";
|
|
3493
|
+
service: "service";
|
|
3494
|
+
session: "session";
|
|
3495
|
+
"ssh-key": "ssh-key";
|
|
3496
|
+
token: "token";
|
|
3497
|
+
}>;
|
|
3498
|
+
name: z.ZodString;
|
|
3499
|
+
}, z.core.$strip>;
|
|
3500
|
+
};
|
|
3501
|
+
FORBIDDEN: {
|
|
3502
|
+
readonly message: "Not allowed";
|
|
3503
|
+
};
|
|
3504
|
+
PRECONDITION_FAILED: {
|
|
3505
|
+
readonly message: "Not possible on this host";
|
|
3506
|
+
};
|
|
3507
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3508
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3509
|
+
readonly status: 503;
|
|
3510
|
+
readonly data: z.ZodObject<{
|
|
3511
|
+
budgetMib: z.ZodInt;
|
|
3512
|
+
usedMib: z.ZodInt;
|
|
3513
|
+
requestedMib: z.ZodInt;
|
|
3514
|
+
}, z.core.$strip>;
|
|
3515
|
+
};
|
|
3516
|
+
SERVICE_UNAVAILABLE: {
|
|
3517
|
+
readonly message: "impd is stopping";
|
|
3518
|
+
};
|
|
3519
|
+
INVALID_STATE: {
|
|
3520
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3521
|
+
readonly status: 409;
|
|
3522
|
+
readonly data: z.ZodObject<{
|
|
3523
|
+
state: z.ZodEnum<{
|
|
3524
|
+
creating: "creating";
|
|
3525
|
+
error: "error";
|
|
3526
|
+
running: "running";
|
|
3527
|
+
sleeping: "sleeping";
|
|
3528
|
+
stopped: "stopped";
|
|
3529
|
+
}>;
|
|
3530
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3531
|
+
creating: "creating";
|
|
3532
|
+
error: "error";
|
|
3533
|
+
running: "running";
|
|
3534
|
+
sleeping: "sleeping";
|
|
3535
|
+
stopped: "stopped";
|
|
3536
|
+
}>>;
|
|
3537
|
+
}, z.core.$strip>;
|
|
3538
|
+
};
|
|
3539
|
+
DISK_FULL: {
|
|
3540
|
+
readonly message: "Not enough free disk on the host";
|
|
3541
|
+
readonly status: 507;
|
|
3542
|
+
readonly data: z.ZodObject<{
|
|
3543
|
+
availableBytes: z.ZodInt;
|
|
3544
|
+
reserveBytes: z.ZodInt;
|
|
3545
|
+
requestedBytes: z.ZodInt;
|
|
3546
|
+
}, z.core.$strip>;
|
|
3547
|
+
};
|
|
3548
|
+
AGENT_OUTDATED: {
|
|
3549
|
+
readonly message: "The imp's agent is too old for this";
|
|
3550
|
+
readonly status: 409;
|
|
3551
|
+
};
|
|
3552
|
+
}>, Record<never, never>>;
|
|
3553
|
+
check: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3554
|
+
subset: z.ZodOptional<z.ZodString>;
|
|
3555
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3556
|
+
NOT_FOUND: {
|
|
3557
|
+
readonly message: "Not found";
|
|
3558
|
+
readonly data: z.ZodObject<{
|
|
3559
|
+
kind: z.ZodEnum<{
|
|
3560
|
+
backup: "backup";
|
|
3561
|
+
checkpoint: "checkpoint";
|
|
3562
|
+
grant: "grant";
|
|
3563
|
+
image: "image";
|
|
3564
|
+
imp: "imp";
|
|
3565
|
+
secret: "secret";
|
|
3566
|
+
service: "service";
|
|
3567
|
+
session: "session";
|
|
3568
|
+
"ssh-key": "ssh-key";
|
|
3569
|
+
token: "token";
|
|
3570
|
+
}>;
|
|
3571
|
+
name: z.ZodString;
|
|
3572
|
+
}, z.core.$strip>;
|
|
3573
|
+
};
|
|
3574
|
+
CONFLICT: {
|
|
3575
|
+
readonly message: "Already exists";
|
|
3576
|
+
readonly data: z.ZodObject<{
|
|
3577
|
+
kind: z.ZodEnum<{
|
|
3578
|
+
backup: "backup";
|
|
3579
|
+
checkpoint: "checkpoint";
|
|
3580
|
+
grant: "grant";
|
|
3581
|
+
image: "image";
|
|
3582
|
+
imp: "imp";
|
|
3583
|
+
secret: "secret";
|
|
3584
|
+
service: "service";
|
|
3585
|
+
session: "session";
|
|
3586
|
+
"ssh-key": "ssh-key";
|
|
3587
|
+
token: "token";
|
|
3588
|
+
}>;
|
|
3589
|
+
name: z.ZodString;
|
|
3590
|
+
}, z.core.$strip>;
|
|
3591
|
+
};
|
|
3592
|
+
FORBIDDEN: {
|
|
3593
|
+
readonly message: "Not allowed";
|
|
3594
|
+
};
|
|
3595
|
+
PRECONDITION_FAILED: {
|
|
3596
|
+
readonly message: "Not possible on this host";
|
|
3597
|
+
};
|
|
3598
|
+
RAM_BUDGET_EXCEEDED: {
|
|
3599
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
3600
|
+
readonly status: 503;
|
|
3601
|
+
readonly data: z.ZodObject<{
|
|
3602
|
+
budgetMib: z.ZodInt;
|
|
3603
|
+
usedMib: z.ZodInt;
|
|
3604
|
+
requestedMib: z.ZodInt;
|
|
3605
|
+
}, z.core.$strip>;
|
|
3606
|
+
};
|
|
3607
|
+
SERVICE_UNAVAILABLE: {
|
|
3608
|
+
readonly message: "impd is stopping";
|
|
3609
|
+
};
|
|
3610
|
+
INVALID_STATE: {
|
|
3611
|
+
readonly message: "The imp is not in a state that allows this";
|
|
3612
|
+
readonly status: 409;
|
|
3613
|
+
readonly data: z.ZodObject<{
|
|
3614
|
+
state: z.ZodEnum<{
|
|
3615
|
+
creating: "creating";
|
|
3616
|
+
error: "error";
|
|
3617
|
+
running: "running";
|
|
3618
|
+
sleeping: "sleeping";
|
|
3619
|
+
stopped: "stopped";
|
|
3620
|
+
}>;
|
|
3621
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
3622
|
+
creating: "creating";
|
|
3623
|
+
error: "error";
|
|
3624
|
+
running: "running";
|
|
3625
|
+
sleeping: "sleeping";
|
|
3626
|
+
stopped: "stopped";
|
|
3627
|
+
}>>;
|
|
3628
|
+
}, z.core.$strip>;
|
|
3629
|
+
};
|
|
3630
|
+
DISK_FULL: {
|
|
3631
|
+
readonly message: "Not enough free disk on the host";
|
|
3632
|
+
readonly status: 507;
|
|
3633
|
+
readonly data: z.ZodObject<{
|
|
3634
|
+
availableBytes: z.ZodInt;
|
|
3635
|
+
reserveBytes: z.ZodInt;
|
|
3636
|
+
requestedBytes: z.ZodInt;
|
|
3637
|
+
}, z.core.$strip>;
|
|
3638
|
+
};
|
|
3639
|
+
AGENT_OUTDATED: {
|
|
3640
|
+
readonly message: "The imp's agent is too old for this";
|
|
3641
|
+
readonly status: 409;
|
|
3642
|
+
};
|
|
3643
|
+
}>, Record<never, never>>;
|
|
3644
|
+
};
|
|
3645
|
+
images: {
|
|
3646
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithOutput<import("@orpc/contract").Schema<unknown, unknown>, z.ZodArray<z.ZodObject<{
|
|
3647
|
+
id: z.ZodString;
|
|
3648
|
+
name: z.ZodString;
|
|
3649
|
+
ref: z.ZodString;
|
|
3650
|
+
digest: z.ZodString;
|
|
3651
|
+
source: z.ZodEnum<{
|
|
3652
|
+
imp: "imp";
|
|
3653
|
+
oci: "oci";
|
|
3654
|
+
}>;
|
|
3655
|
+
createdAt: z.ZodDate;
|
|
3656
|
+
sizeBytes: z.ZodInt;
|
|
3657
|
+
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2278
3658
|
NOT_FOUND: {
|
|
2279
3659
|
readonly message: "Not found";
|
|
2280
3660
|
readonly data: z.ZodObject<{
|
|
@@ -2285,6 +3665,7 @@ declare const impContract: {
|
|
|
2285
3665
|
image: "image";
|
|
2286
3666
|
imp: "imp";
|
|
2287
3667
|
secret: "secret";
|
|
3668
|
+
service: "service";
|
|
2288
3669
|
session: "session";
|
|
2289
3670
|
"ssh-key": "ssh-key";
|
|
2290
3671
|
token: "token";
|
|
@@ -2302,6 +3683,7 @@ declare const impContract: {
|
|
|
2302
3683
|
image: "image";
|
|
2303
3684
|
imp: "imp";
|
|
2304
3685
|
secret: "secret";
|
|
3686
|
+
service: "service";
|
|
2305
3687
|
session: "session";
|
|
2306
3688
|
"ssh-key": "ssh-key";
|
|
2307
3689
|
token: "token";
|
|
@@ -2361,17 +3743,23 @@ declare const impContract: {
|
|
|
2361
3743
|
readonly status: 409;
|
|
2362
3744
|
};
|
|
2363
3745
|
}>, Record<never, never>>;
|
|
2364
|
-
|
|
2365
|
-
|
|
2366
|
-
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
3746
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodUnion<readonly [z.ZodObject<{
|
|
3747
|
+
ref: z.ZodString;
|
|
3748
|
+
name: z.ZodOptional<z.ZodString>;
|
|
3749
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3750
|
+
imp: z.ZodString;
|
|
3751
|
+
name: z.ZodString;
|
|
3752
|
+
}, z.core.$strip>]>, z.ZodObject<{
|
|
3753
|
+
id: z.ZodString;
|
|
3754
|
+
name: z.ZodString;
|
|
3755
|
+
ref: z.ZodString;
|
|
3756
|
+
digest: z.ZodString;
|
|
3757
|
+
source: z.ZodEnum<{
|
|
3758
|
+
imp: "imp";
|
|
3759
|
+
oci: "oci";
|
|
3760
|
+
}>;
|
|
3761
|
+
createdAt: z.ZodDate;
|
|
3762
|
+
sizeBytes: z.ZodInt;
|
|
2375
3763
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2376
3764
|
NOT_FOUND: {
|
|
2377
3765
|
readonly message: "Not found";
|
|
@@ -2383,6 +3771,7 @@ declare const impContract: {
|
|
|
2383
3771
|
image: "image";
|
|
2384
3772
|
imp: "imp";
|
|
2385
3773
|
secret: "secret";
|
|
3774
|
+
service: "service";
|
|
2386
3775
|
session: "session";
|
|
2387
3776
|
"ssh-key": "ssh-key";
|
|
2388
3777
|
token: "token";
|
|
@@ -2400,6 +3789,7 @@ declare const impContract: {
|
|
|
2400
3789
|
image: "image";
|
|
2401
3790
|
imp: "imp";
|
|
2402
3791
|
secret: "secret";
|
|
3792
|
+
service: "service";
|
|
2403
3793
|
session: "session";
|
|
2404
3794
|
"ssh-key": "ssh-key";
|
|
2405
3795
|
token: "token";
|
|
@@ -2459,18 +3849,21 @@ declare const impContract: {
|
|
|
2459
3849
|
readonly status: 409;
|
|
2460
3850
|
};
|
|
2461
3851
|
}>, Record<never, never>>;
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
|
|
2469
|
-
|
|
2470
|
-
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
3852
|
+
build: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3853
|
+
contextDir: z.ZodString;
|
|
3854
|
+
name: z.ZodString;
|
|
3855
|
+
dockerfile: z.ZodOptional<z.ZodString>;
|
|
3856
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
3857
|
+
id: z.ZodString;
|
|
3858
|
+
name: z.ZodString;
|
|
3859
|
+
ref: z.ZodString;
|
|
3860
|
+
digest: z.ZodString;
|
|
3861
|
+
source: z.ZodEnum<{
|
|
3862
|
+
imp: "imp";
|
|
3863
|
+
oci: "oci";
|
|
3864
|
+
}>;
|
|
3865
|
+
createdAt: z.ZodDate;
|
|
3866
|
+
sizeBytes: z.ZodInt;
|
|
2474
3867
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2475
3868
|
NOT_FOUND: {
|
|
2476
3869
|
readonly message: "Not found";
|
|
@@ -2482,6 +3875,7 @@ declare const impContract: {
|
|
|
2482
3875
|
image: "image";
|
|
2483
3876
|
imp: "imp";
|
|
2484
3877
|
secret: "secret";
|
|
3878
|
+
service: "service";
|
|
2485
3879
|
session: "session";
|
|
2486
3880
|
"ssh-key": "ssh-key";
|
|
2487
3881
|
token: "token";
|
|
@@ -2499,6 +3893,7 @@ declare const impContract: {
|
|
|
2499
3893
|
image: "image";
|
|
2500
3894
|
imp: "imp";
|
|
2501
3895
|
secret: "secret";
|
|
3896
|
+
service: "service";
|
|
2502
3897
|
session: "session";
|
|
2503
3898
|
"ssh-key": "ssh-key";
|
|
2504
3899
|
token: "token";
|
|
@@ -2558,61 +3953,9 @@ declare const impContract: {
|
|
|
2558
3953
|
readonly status: 409;
|
|
2559
3954
|
};
|
|
2560
3955
|
}>, Record<never, never>>;
|
|
2561
|
-
|
|
2562
|
-
name: z.
|
|
2563
|
-
|
|
2564
|
-
at: z.ZodOptional<z.ZodDate>;
|
|
2565
|
-
as: z.ZodOptional<z.ZodString>;
|
|
2566
|
-
merge: z.ZodOptional<z.ZodBoolean>;
|
|
2567
|
-
}, z.core.$strip>, z.ZodReadonly<z.ZodObject<{
|
|
2568
|
-
imps: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2569
|
-
id: z.ZodString;
|
|
2570
|
-
name: z.ZodString;
|
|
2571
|
-
image: z.ZodString;
|
|
2572
|
-
state: z.ZodEnum<{
|
|
2573
|
-
creating: "creating";
|
|
2574
|
-
error: "error";
|
|
2575
|
-
running: "running";
|
|
2576
|
-
sleeping: "sleeping";
|
|
2577
|
-
stopped: "stopped";
|
|
2578
|
-
}>;
|
|
2579
|
-
vcpus: z.ZodInt;
|
|
2580
|
-
memoryMib: z.ZodInt;
|
|
2581
|
-
diskMib: z.ZodInt;
|
|
2582
|
-
diskUsage: z.ZodOptional<z.ZodObject<{
|
|
2583
|
-
exclusiveBytes: z.ZodInt;
|
|
2584
|
-
sharedBytes: z.ZodInt;
|
|
2585
|
-
measuredAt: z.ZodDate;
|
|
2586
|
-
isPartial: z.ZodBoolean;
|
|
2587
|
-
isUpperBound: z.ZodBoolean;
|
|
2588
|
-
}, z.core.$strip>>;
|
|
2589
|
-
ip: z.ZodIPv4;
|
|
2590
|
-
slot: z.ZodInt;
|
|
2591
|
-
port: z.ZodInt;
|
|
2592
|
-
httpPort: z.ZodInt;
|
|
2593
|
-
url: z.ZodURL;
|
|
2594
|
-
createdAt: z.ZodDate;
|
|
2595
|
-
lastActiveAt: z.ZodDate;
|
|
2596
|
-
ramMib: z.ZodOptional<z.ZodInt>;
|
|
2597
|
-
rssMib: z.ZodOptional<z.ZodInt>;
|
|
2598
|
-
sleptAt: z.ZodOptional<z.ZodDate>;
|
|
2599
|
-
holdUntil: z.ZodOptional<z.ZodDate>;
|
|
2600
|
-
error: z.ZodOptional<z.ZodString>;
|
|
2601
|
-
sessions: z.ZodOptional<z.ZodInt>;
|
|
2602
|
-
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
2603
|
-
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
2604
|
-
agent: "agent";
|
|
2605
|
-
firecracker: "firecracker";
|
|
2606
|
-
impd: "impd";
|
|
2607
|
-
kernel: "kernel";
|
|
2608
|
-
}>>>>;
|
|
2609
|
-
}, z.core.$strip>>>;
|
|
2610
|
-
skippedGrants: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
2611
|
-
imp: z.ZodString;
|
|
2612
|
-
secret: z.ZodString;
|
|
2613
|
-
reason: z.ZodString;
|
|
2614
|
-
}, z.core.$strip>>>;
|
|
2615
|
-
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3956
|
+
delete: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3957
|
+
name: z.ZodString;
|
|
3958
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2616
3959
|
NOT_FOUND: {
|
|
2617
3960
|
readonly message: "Not found";
|
|
2618
3961
|
readonly data: z.ZodObject<{
|
|
@@ -2623,6 +3966,7 @@ declare const impContract: {
|
|
|
2623
3966
|
image: "image";
|
|
2624
3967
|
imp: "imp";
|
|
2625
3968
|
secret: "secret";
|
|
3969
|
+
service: "service";
|
|
2626
3970
|
session: "session";
|
|
2627
3971
|
"ssh-key": "ssh-key";
|
|
2628
3972
|
token: "token";
|
|
@@ -2640,6 +3984,7 @@ declare const impContract: {
|
|
|
2640
3984
|
image: "image";
|
|
2641
3985
|
imp: "imp";
|
|
2642
3986
|
secret: "secret";
|
|
3987
|
+
service: "service";
|
|
2643
3988
|
session: "session";
|
|
2644
3989
|
"ssh-key": "ssh-key";
|
|
2645
3990
|
token: "token";
|
|
@@ -2699,9 +4044,14 @@ declare const impContract: {
|
|
|
2699
4044
|
readonly status: 409;
|
|
2700
4045
|
};
|
|
2701
4046
|
}>, Record<never, never>>;
|
|
2702
|
-
|
|
2703
|
-
|
|
2704
|
-
|
|
4047
|
+
};
|
|
4048
|
+
exec: {
|
|
4049
|
+
ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4050
|
+
name: z.ZodString;
|
|
4051
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
4052
|
+
ticket: z.ZodString;
|
|
4053
|
+
expiresAt: z.ZodDate;
|
|
4054
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2705
4055
|
NOT_FOUND: {
|
|
2706
4056
|
readonly message: "Not found";
|
|
2707
4057
|
readonly data: z.ZodObject<{
|
|
@@ -2712,6 +4062,7 @@ declare const impContract: {
|
|
|
2712
4062
|
image: "image";
|
|
2713
4063
|
imp: "imp";
|
|
2714
4064
|
secret: "secret";
|
|
4065
|
+
service: "service";
|
|
2715
4066
|
session: "session";
|
|
2716
4067
|
"ssh-key": "ssh-key";
|
|
2717
4068
|
token: "token";
|
|
@@ -2729,6 +4080,7 @@ declare const impContract: {
|
|
|
2729
4080
|
image: "image";
|
|
2730
4081
|
imp: "imp";
|
|
2731
4082
|
secret: "secret";
|
|
4083
|
+
service: "service";
|
|
2732
4084
|
session: "session";
|
|
2733
4085
|
"ssh-key": "ssh-key";
|
|
2734
4086
|
token: "token";
|
|
@@ -2789,14 +4141,25 @@ declare const impContract: {
|
|
|
2789
4141
|
};
|
|
2790
4142
|
}>, Record<never, never>>;
|
|
2791
4143
|
};
|
|
2792
|
-
|
|
2793
|
-
list: import("@orpc/contract").
|
|
2794
|
-
id: z.ZodString;
|
|
4144
|
+
sessions: {
|
|
4145
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2795
4146
|
name: z.ZodString;
|
|
2796
|
-
|
|
2797
|
-
|
|
2798
|
-
|
|
2799
|
-
|
|
4147
|
+
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4148
|
+
name: z.ZodString;
|
|
4149
|
+
pid: z.ZodInt;
|
|
4150
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4151
|
+
state: z.ZodEnum<{
|
|
4152
|
+
exited: "exited";
|
|
4153
|
+
running: "running";
|
|
4154
|
+
}>;
|
|
4155
|
+
attached: z.ZodBoolean;
|
|
4156
|
+
cols: z.ZodInt;
|
|
4157
|
+
rows: z.ZodInt;
|
|
4158
|
+
startedAt: z.ZodDate;
|
|
4159
|
+
exit: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
4160
|
+
code: z.ZodNullable<z.ZodInt>;
|
|
4161
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
4162
|
+
}, z.core.$strip>>>;
|
|
2800
4163
|
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2801
4164
|
NOT_FOUND: {
|
|
2802
4165
|
readonly message: "Not found";
|
|
@@ -2808,6 +4171,7 @@ declare const impContract: {
|
|
|
2808
4171
|
image: "image";
|
|
2809
4172
|
imp: "imp";
|
|
2810
4173
|
secret: "secret";
|
|
4174
|
+
service: "service";
|
|
2811
4175
|
session: "session";
|
|
2812
4176
|
"ssh-key": "ssh-key";
|
|
2813
4177
|
token: "token";
|
|
@@ -2825,6 +4189,7 @@ declare const impContract: {
|
|
|
2825
4189
|
image: "image";
|
|
2826
4190
|
imp: "imp";
|
|
2827
4191
|
secret: "secret";
|
|
4192
|
+
service: "service";
|
|
2828
4193
|
session: "session";
|
|
2829
4194
|
"ssh-key": "ssh-key";
|
|
2830
4195
|
token: "token";
|
|
@@ -2884,17 +4249,10 @@ declare const impContract: {
|
|
|
2884
4249
|
readonly status: 409;
|
|
2885
4250
|
};
|
|
2886
4251
|
}>, Record<never, never>>;
|
|
2887
|
-
|
|
2888
|
-
ref: z.ZodString;
|
|
2889
|
-
name: z.ZodOptional<z.ZodString>;
|
|
2890
|
-
}, z.core.$strip>, z.ZodObject<{
|
|
2891
|
-
id: z.ZodString;
|
|
4252
|
+
kill: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2892
4253
|
name: z.ZodString;
|
|
2893
|
-
|
|
2894
|
-
|
|
2895
|
-
createdAt: z.ZodDate;
|
|
2896
|
-
sizeBytes: z.ZodInt;
|
|
2897
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4254
|
+
session: z.ZodString;
|
|
4255
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2898
4256
|
NOT_FOUND: {
|
|
2899
4257
|
readonly message: "Not found";
|
|
2900
4258
|
readonly data: z.ZodObject<{
|
|
@@ -2905,6 +4263,7 @@ declare const impContract: {
|
|
|
2905
4263
|
image: "image";
|
|
2906
4264
|
imp: "imp";
|
|
2907
4265
|
secret: "secret";
|
|
4266
|
+
service: "service";
|
|
2908
4267
|
session: "session";
|
|
2909
4268
|
"ssh-key": "ssh-key";
|
|
2910
4269
|
token: "token";
|
|
@@ -2922,6 +4281,7 @@ declare const impContract: {
|
|
|
2922
4281
|
image: "image";
|
|
2923
4282
|
imp: "imp";
|
|
2924
4283
|
secret: "secret";
|
|
4284
|
+
service: "service";
|
|
2925
4285
|
session: "session";
|
|
2926
4286
|
"ssh-key": "ssh-key";
|
|
2927
4287
|
token: "token";
|
|
@@ -2981,17 +4341,42 @@ declare const impContract: {
|
|
|
2981
4341
|
readonly status: 409;
|
|
2982
4342
|
};
|
|
2983
4343
|
}>, Record<never, never>>;
|
|
2984
|
-
|
|
2985
|
-
|
|
4344
|
+
};
|
|
4345
|
+
services: {
|
|
4346
|
+
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
2986
4347
|
name: z.ZodString;
|
|
2987
|
-
dockerfile: z.ZodOptional<z.ZodString>;
|
|
2988
4348
|
}, z.core.$strip>, z.ZodObject<{
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
4349
|
+
services: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
4350
|
+
name: z.ZodString;
|
|
4351
|
+
state: z.ZodEnum<{
|
|
4352
|
+
backoff: "backoff";
|
|
4353
|
+
exited: "exited";
|
|
4354
|
+
running: "running";
|
|
4355
|
+
starting: "starting";
|
|
4356
|
+
stopped: "stopped";
|
|
4357
|
+
}>;
|
|
4358
|
+
pid: z.ZodNullable<z.ZodInt>;
|
|
4359
|
+
restarts: z.ZodInt;
|
|
4360
|
+
lastExit: z.ZodNullable<z.ZodObject<{
|
|
4361
|
+
code: z.ZodInt;
|
|
4362
|
+
signal: z.ZodNullable<z.ZodString>;
|
|
4363
|
+
}, z.core.$strip>>;
|
|
4364
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4365
|
+
envKeys: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4366
|
+
cwd: z.ZodNullable<z.ZodString>;
|
|
4367
|
+
user: z.ZodNullable<z.ZodString>;
|
|
4368
|
+
restart: z.ZodEnum<{
|
|
4369
|
+
always: "always";
|
|
4370
|
+
never: "never";
|
|
4371
|
+
"on-failure": "on-failure";
|
|
4372
|
+
}>;
|
|
4373
|
+
source: z.ZodEnum<{
|
|
4374
|
+
api: "api";
|
|
4375
|
+
image: "image";
|
|
4376
|
+
}>;
|
|
4377
|
+
root: z.ZodBoolean;
|
|
4378
|
+
}, z.core.$strip>>>;
|
|
4379
|
+
recorded: z.ZodBoolean;
|
|
2995
4380
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
2996
4381
|
NOT_FOUND: {
|
|
2997
4382
|
readonly message: "Not found";
|
|
@@ -3003,6 +4388,7 @@ declare const impContract: {
|
|
|
3003
4388
|
image: "image";
|
|
3004
4389
|
imp: "imp";
|
|
3005
4390
|
secret: "secret";
|
|
4391
|
+
service: "service";
|
|
3006
4392
|
session: "session";
|
|
3007
4393
|
"ssh-key": "ssh-key";
|
|
3008
4394
|
token: "token";
|
|
@@ -3020,6 +4406,7 @@ declare const impContract: {
|
|
|
3020
4406
|
image: "image";
|
|
3021
4407
|
imp: "imp";
|
|
3022
4408
|
secret: "secret";
|
|
4409
|
+
service: "service";
|
|
3023
4410
|
session: "session";
|
|
3024
4411
|
"ssh-key": "ssh-key";
|
|
3025
4412
|
token: "token";
|
|
@@ -3079,8 +4466,21 @@ declare const impContract: {
|
|
|
3079
4466
|
readonly status: 409;
|
|
3080
4467
|
};
|
|
3081
4468
|
}>, Record<never, never>>;
|
|
3082
|
-
|
|
4469
|
+
add: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3083
4470
|
name: z.ZodString;
|
|
4471
|
+
service: z.ZodObject<{
|
|
4472
|
+
name: z.ZodString;
|
|
4473
|
+
argv: z.ZodReadonly<z.ZodArray<z.ZodString>>;
|
|
4474
|
+
env: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodString>>>;
|
|
4475
|
+
cwd: z.ZodOptional<z.ZodString>;
|
|
4476
|
+
user: z.ZodOptional<z.ZodString>;
|
|
4477
|
+
restart: z.ZodOptional<z.ZodEnum<{
|
|
4478
|
+
always: "always";
|
|
4479
|
+
never: "never";
|
|
4480
|
+
"on-failure": "on-failure";
|
|
4481
|
+
}>>;
|
|
4482
|
+
}, z.core.$strip>;
|
|
4483
|
+
replace: z.ZodOptional<z.ZodBoolean>;
|
|
3084
4484
|
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3085
4485
|
NOT_FOUND: {
|
|
3086
4486
|
readonly message: "Not found";
|
|
@@ -3092,6 +4492,7 @@ declare const impContract: {
|
|
|
3092
4492
|
image: "image";
|
|
3093
4493
|
imp: "imp";
|
|
3094
4494
|
secret: "secret";
|
|
4495
|
+
service: "service";
|
|
3095
4496
|
session: "session";
|
|
3096
4497
|
"ssh-key": "ssh-key";
|
|
3097
4498
|
token: "token";
|
|
@@ -3109,6 +4510,7 @@ declare const impContract: {
|
|
|
3109
4510
|
image: "image";
|
|
3110
4511
|
imp: "imp";
|
|
3111
4512
|
secret: "secret";
|
|
4513
|
+
service: "service";
|
|
3112
4514
|
session: "session";
|
|
3113
4515
|
"ssh-key": "ssh-key";
|
|
3114
4516
|
token: "token";
|
|
@@ -3168,14 +4570,10 @@ declare const impContract: {
|
|
|
3168
4570
|
readonly status: 409;
|
|
3169
4571
|
};
|
|
3170
4572
|
}>, Record<never, never>>;
|
|
3171
|
-
|
|
3172
|
-
exec: {
|
|
3173
|
-
ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
4573
|
+
remove: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3174
4574
|
name: z.ZodString;
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
expiresAt: z.ZodDate;
|
|
3178
|
-
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4575
|
+
service: z.ZodString;
|
|
4576
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3179
4577
|
NOT_FOUND: {
|
|
3180
4578
|
readonly message: "Not found";
|
|
3181
4579
|
readonly data: z.ZodObject<{
|
|
@@ -3186,6 +4584,7 @@ declare const impContract: {
|
|
|
3186
4584
|
image: "image";
|
|
3187
4585
|
imp: "imp";
|
|
3188
4586
|
secret: "secret";
|
|
4587
|
+
service: "service";
|
|
3189
4588
|
session: "session";
|
|
3190
4589
|
"ssh-key": "ssh-key";
|
|
3191
4590
|
token: "token";
|
|
@@ -3203,6 +4602,7 @@ declare const impContract: {
|
|
|
3203
4602
|
image: "image";
|
|
3204
4603
|
imp: "imp";
|
|
3205
4604
|
secret: "secret";
|
|
4605
|
+
service: "service";
|
|
3206
4606
|
session: "session";
|
|
3207
4607
|
"ssh-key": "ssh-key";
|
|
3208
4608
|
token: "token";
|
|
@@ -3262,27 +4662,10 @@ declare const impContract: {
|
|
|
3262
4662
|
readonly status: 409;
|
|
3263
4663
|
};
|
|
3264
4664
|
}>, Record<never, never>>;
|
|
3265
|
-
|
|
3266
|
-
sessions: {
|
|
3267
|
-
list: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3268
|
-
name: z.ZodString;
|
|
3269
|
-
}, z.core.$strip>, z.ZodArray<z.ZodObject<{
|
|
4665
|
+
restart: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3270
4666
|
name: z.ZodString;
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
state: z.ZodEnum<{
|
|
3274
|
-
exited: "exited";
|
|
3275
|
-
running: "running";
|
|
3276
|
-
}>;
|
|
3277
|
-
attached: z.ZodBoolean;
|
|
3278
|
-
cols: z.ZodInt;
|
|
3279
|
-
rows: z.ZodInt;
|
|
3280
|
-
startedAt: z.ZodDate;
|
|
3281
|
-
exit: z.ZodOptional<z.ZodReadonly<z.ZodObject<{
|
|
3282
|
-
code: z.ZodNullable<z.ZodInt>;
|
|
3283
|
-
signal: z.ZodNullable<z.ZodString>;
|
|
3284
|
-
}, z.core.$strip>>>;
|
|
3285
|
-
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4667
|
+
service: z.ZodString;
|
|
4668
|
+
}, z.core.$strip>, z.ZodObject<{}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3286
4669
|
NOT_FOUND: {
|
|
3287
4670
|
readonly message: "Not found";
|
|
3288
4671
|
readonly data: z.ZodObject<{
|
|
@@ -3293,6 +4676,7 @@ declare const impContract: {
|
|
|
3293
4676
|
image: "image";
|
|
3294
4677
|
imp: "imp";
|
|
3295
4678
|
secret: "secret";
|
|
4679
|
+
service: "service";
|
|
3296
4680
|
session: "session";
|
|
3297
4681
|
"ssh-key": "ssh-key";
|
|
3298
4682
|
token: "token";
|
|
@@ -3310,6 +4694,7 @@ declare const impContract: {
|
|
|
3310
4694
|
image: "image";
|
|
3311
4695
|
imp: "imp";
|
|
3312
4696
|
secret: "secret";
|
|
4697
|
+
service: "service";
|
|
3313
4698
|
session: "session";
|
|
3314
4699
|
"ssh-key": "ssh-key";
|
|
3315
4700
|
token: "token";
|
|
@@ -3369,10 +4754,34 @@ declare const impContract: {
|
|
|
3369
4754
|
readonly status: 409;
|
|
3370
4755
|
};
|
|
3371
4756
|
}>, Record<never, never>>;
|
|
3372
|
-
|
|
4757
|
+
logs: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
3373
4758
|
name: z.ZodString;
|
|
3374
|
-
|
|
3375
|
-
|
|
4759
|
+
service: z.ZodOptional<z.ZodString>;
|
|
4760
|
+
lines: z.ZodOptional<z.ZodInt>;
|
|
4761
|
+
follow: z.ZodOptional<z.ZodBoolean>;
|
|
4762
|
+
}, z.core.$strip>, import("@orpc/contract").Schema<AsyncIteratorObject<{
|
|
4763
|
+
type: "log";
|
|
4764
|
+
service: string;
|
|
4765
|
+
text: string;
|
|
4766
|
+
} | {
|
|
4767
|
+
type: "sleeping";
|
|
4768
|
+
state: "creating" | "error" | "running" | "sleeping" | "stopped";
|
|
4769
|
+
} | {
|
|
4770
|
+
type: "awake";
|
|
4771
|
+
} | {
|
|
4772
|
+
type: "restarting";
|
|
4773
|
+
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
4774
|
+
type: "log";
|
|
4775
|
+
service: string;
|
|
4776
|
+
text: string;
|
|
4777
|
+
} | {
|
|
4778
|
+
type: "sleeping";
|
|
4779
|
+
state: "creating" | "error" | "running" | "sleeping" | "stopped";
|
|
4780
|
+
} | {
|
|
4781
|
+
type: "awake";
|
|
4782
|
+
} | {
|
|
4783
|
+
type: "restarting";
|
|
4784
|
+
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
3376
4785
|
NOT_FOUND: {
|
|
3377
4786
|
readonly message: "Not found";
|
|
3378
4787
|
readonly data: z.ZodObject<{
|
|
@@ -3383,6 +4792,7 @@ declare const impContract: {
|
|
|
3383
4792
|
image: "image";
|
|
3384
4793
|
imp: "imp";
|
|
3385
4794
|
secret: "secret";
|
|
4795
|
+
service: "service";
|
|
3386
4796
|
session: "session";
|
|
3387
4797
|
"ssh-key": "ssh-key";
|
|
3388
4798
|
token: "token";
|
|
@@ -3400,6 +4810,7 @@ declare const impContract: {
|
|
|
3400
4810
|
image: "image";
|
|
3401
4811
|
imp: "imp";
|
|
3402
4812
|
secret: "secret";
|
|
4813
|
+
service: "service";
|
|
3403
4814
|
session: "session";
|
|
3404
4815
|
"ssh-key": "ssh-key";
|
|
3405
4816
|
token: "token";
|
|
@@ -3512,6 +4923,7 @@ declare const impContract: {
|
|
|
3512
4923
|
image: "image";
|
|
3513
4924
|
imp: "imp";
|
|
3514
4925
|
secret: "secret";
|
|
4926
|
+
service: "service";
|
|
3515
4927
|
session: "session";
|
|
3516
4928
|
"ssh-key": "ssh-key";
|
|
3517
4929
|
token: "token";
|
|
@@ -3529,6 +4941,7 @@ declare const impContract: {
|
|
|
3529
4941
|
image: "image";
|
|
3530
4942
|
imp: "imp";
|
|
3531
4943
|
secret: "secret";
|
|
4944
|
+
service: "service";
|
|
3532
4945
|
session: "session";
|
|
3533
4946
|
"ssh-key": "ssh-key";
|
|
3534
4947
|
token: "token";
|
|
@@ -3619,6 +5032,7 @@ declare const impContract: {
|
|
|
3619
5032
|
image: "image";
|
|
3620
5033
|
imp: "imp";
|
|
3621
5034
|
secret: "secret";
|
|
5035
|
+
service: "service";
|
|
3622
5036
|
session: "session";
|
|
3623
5037
|
"ssh-key": "ssh-key";
|
|
3624
5038
|
token: "token";
|
|
@@ -3636,6 +5050,7 @@ declare const impContract: {
|
|
|
3636
5050
|
image: "image";
|
|
3637
5051
|
imp: "imp";
|
|
3638
5052
|
secret: "secret";
|
|
5053
|
+
service: "service";
|
|
3639
5054
|
session: "session";
|
|
3640
5055
|
"ssh-key": "ssh-key";
|
|
3641
5056
|
token: "token";
|
|
@@ -3708,6 +5123,7 @@ declare const impContract: {
|
|
|
3708
5123
|
image: "image";
|
|
3709
5124
|
imp: "imp";
|
|
3710
5125
|
secret: "secret";
|
|
5126
|
+
service: "service";
|
|
3711
5127
|
session: "session";
|
|
3712
5128
|
"ssh-key": "ssh-key";
|
|
3713
5129
|
token: "token";
|
|
@@ -3725,6 +5141,7 @@ declare const impContract: {
|
|
|
3725
5141
|
image: "image";
|
|
3726
5142
|
imp: "imp";
|
|
3727
5143
|
secret: "secret";
|
|
5144
|
+
service: "service";
|
|
3728
5145
|
session: "session";
|
|
3729
5146
|
"ssh-key": "ssh-key";
|
|
3730
5147
|
token: "token";
|
|
@@ -3800,6 +5217,7 @@ declare const impContract: {
|
|
|
3800
5217
|
image: "image";
|
|
3801
5218
|
imp: "imp";
|
|
3802
5219
|
secret: "secret";
|
|
5220
|
+
service: "service";
|
|
3803
5221
|
session: "session";
|
|
3804
5222
|
"ssh-key": "ssh-key";
|
|
3805
5223
|
token: "token";
|
|
@@ -3817,6 +5235,7 @@ declare const impContract: {
|
|
|
3817
5235
|
image: "image";
|
|
3818
5236
|
imp: "imp";
|
|
3819
5237
|
secret: "secret";
|
|
5238
|
+
service: "service";
|
|
3820
5239
|
session: "session";
|
|
3821
5240
|
"ssh-key": "ssh-key";
|
|
3822
5241
|
token: "token";
|
|
@@ -3890,6 +5309,7 @@ declare const impContract: {
|
|
|
3890
5309
|
image: "image";
|
|
3891
5310
|
imp: "imp";
|
|
3892
5311
|
secret: "secret";
|
|
5312
|
+
service: "service";
|
|
3893
5313
|
session: "session";
|
|
3894
5314
|
"ssh-key": "ssh-key";
|
|
3895
5315
|
token: "token";
|
|
@@ -3907,6 +5327,7 @@ declare const impContract: {
|
|
|
3907
5327
|
image: "image";
|
|
3908
5328
|
imp: "imp";
|
|
3909
5329
|
secret: "secret";
|
|
5330
|
+
service: "service";
|
|
3910
5331
|
session: "session";
|
|
3911
5332
|
"ssh-key": "ssh-key";
|
|
3912
5333
|
token: "token";
|
|
@@ -3979,6 +5400,7 @@ declare const impContract: {
|
|
|
3979
5400
|
image: "image";
|
|
3980
5401
|
imp: "imp";
|
|
3981
5402
|
secret: "secret";
|
|
5403
|
+
service: "service";
|
|
3982
5404
|
session: "session";
|
|
3983
5405
|
"ssh-key": "ssh-key";
|
|
3984
5406
|
token: "token";
|
|
@@ -3996,6 +5418,7 @@ declare const impContract: {
|
|
|
3996
5418
|
image: "image";
|
|
3997
5419
|
imp: "imp";
|
|
3998
5420
|
secret: "secret";
|
|
5421
|
+
service: "service";
|
|
3999
5422
|
session: "session";
|
|
4000
5423
|
"ssh-key": "ssh-key";
|
|
4001
5424
|
token: "token";
|
|
@@ -4082,6 +5505,7 @@ declare const impContract: {
|
|
|
4082
5505
|
image: "image";
|
|
4083
5506
|
imp: "imp";
|
|
4084
5507
|
secret: "secret";
|
|
5508
|
+
service: "service";
|
|
4085
5509
|
session: "session";
|
|
4086
5510
|
"ssh-key": "ssh-key";
|
|
4087
5511
|
token: "token";
|
|
@@ -4099,6 +5523,7 @@ declare const impContract: {
|
|
|
4099
5523
|
image: "image";
|
|
4100
5524
|
imp: "imp";
|
|
4101
5525
|
secret: "secret";
|
|
5526
|
+
service: "service";
|
|
4102
5527
|
session: "session";
|
|
4103
5528
|
"ssh-key": "ssh-key";
|
|
4104
5529
|
token: "token";
|
|
@@ -4185,6 +5610,7 @@ declare const impContract: {
|
|
|
4185
5610
|
image: "image";
|
|
4186
5611
|
imp: "imp";
|
|
4187
5612
|
secret: "secret";
|
|
5613
|
+
service: "service";
|
|
4188
5614
|
session: "session";
|
|
4189
5615
|
"ssh-key": "ssh-key";
|
|
4190
5616
|
token: "token";
|
|
@@ -4202,6 +5628,7 @@ declare const impContract: {
|
|
|
4202
5628
|
image: "image";
|
|
4203
5629
|
imp: "imp";
|
|
4204
5630
|
secret: "secret";
|
|
5631
|
+
service: "service";
|
|
4205
5632
|
session: "session";
|
|
4206
5633
|
"ssh-key": "ssh-key";
|
|
4207
5634
|
token: "token";
|
|
@@ -4288,6 +5715,9 @@ declare const impContract: {
|
|
|
4288
5715
|
port: number;
|
|
4289
5716
|
httpPort: number;
|
|
4290
5717
|
url: string;
|
|
5718
|
+
public?: {
|
|
5719
|
+
auth: "basic" | "none" | "token";
|
|
5720
|
+
} | undefined;
|
|
4291
5721
|
createdAt: Date;
|
|
4292
5722
|
lastActiveAt: Date;
|
|
4293
5723
|
ramMib?: number | undefined;
|
|
@@ -4297,13 +5727,30 @@ declare const impContract: {
|
|
|
4297
5727
|
error?: string | undefined;
|
|
4298
5728
|
sessions?: number | undefined;
|
|
4299
5729
|
coldBootReason?: string | undefined;
|
|
4300
|
-
|
|
5730
|
+
agentSilentSince?: Date | undefined;
|
|
5731
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
5732
|
+
cpu?: {
|
|
5733
|
+
limit: number | null;
|
|
5734
|
+
weight: number;
|
|
5735
|
+
} | undefined;
|
|
5736
|
+
resources?: {
|
|
5737
|
+
wakeCount: number;
|
|
5738
|
+
awakeMs: number;
|
|
5739
|
+
sample?: {
|
|
5740
|
+
measuredAt: Date;
|
|
5741
|
+
since: Date;
|
|
5742
|
+
cpuPercent?: number | undefined;
|
|
5743
|
+
cpuThrottledMs: number;
|
|
5744
|
+
netRxBytes: number;
|
|
5745
|
+
netTxBytes: number;
|
|
5746
|
+
} | undefined;
|
|
5747
|
+
} | undefined;
|
|
4301
5748
|
};
|
|
4302
5749
|
} | {
|
|
4303
5750
|
v: 1;
|
|
4304
5751
|
at: Date;
|
|
4305
5752
|
ev: "ImpChanged";
|
|
4306
|
-
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "woke";
|
|
5753
|
+
reason: "adopted" | "booted" | "exposed" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "updated" | "woke";
|
|
4307
5754
|
imp: {
|
|
4308
5755
|
id: string;
|
|
4309
5756
|
name: string;
|
|
@@ -4324,6 +5771,9 @@ declare const impContract: {
|
|
|
4324
5771
|
port: number;
|
|
4325
5772
|
httpPort: number;
|
|
4326
5773
|
url: string;
|
|
5774
|
+
public?: {
|
|
5775
|
+
auth: "basic" | "none" | "token";
|
|
5776
|
+
} | undefined;
|
|
4327
5777
|
createdAt: Date;
|
|
4328
5778
|
lastActiveAt: Date;
|
|
4329
5779
|
ramMib?: number | undefined;
|
|
@@ -4333,7 +5783,24 @@ declare const impContract: {
|
|
|
4333
5783
|
error?: string | undefined;
|
|
4334
5784
|
sessions?: number | undefined;
|
|
4335
5785
|
coldBootReason?: string | undefined;
|
|
4336
|
-
|
|
5786
|
+
agentSilentSince?: Date | undefined;
|
|
5787
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
5788
|
+
cpu?: {
|
|
5789
|
+
limit: number | null;
|
|
5790
|
+
weight: number;
|
|
5791
|
+
} | undefined;
|
|
5792
|
+
resources?: {
|
|
5793
|
+
wakeCount: number;
|
|
5794
|
+
awakeMs: number;
|
|
5795
|
+
sample?: {
|
|
5796
|
+
measuredAt: Date;
|
|
5797
|
+
since: Date;
|
|
5798
|
+
cpuPercent?: number | undefined;
|
|
5799
|
+
cpuThrottledMs: number;
|
|
5800
|
+
netRxBytes: number;
|
|
5801
|
+
netTxBytes: number;
|
|
5802
|
+
} | undefined;
|
|
5803
|
+
} | undefined;
|
|
4337
5804
|
};
|
|
4338
5805
|
detail?: Readonly<{
|
|
4339
5806
|
durationMs?: number | undefined;
|
|
@@ -4365,6 +5832,9 @@ declare const impContract: {
|
|
|
4365
5832
|
port: number;
|
|
4366
5833
|
httpPort: number;
|
|
4367
5834
|
url: string;
|
|
5835
|
+
public?: {
|
|
5836
|
+
auth: "basic" | "none" | "token";
|
|
5837
|
+
} | undefined;
|
|
4368
5838
|
createdAt: Date;
|
|
4369
5839
|
lastActiveAt: Date;
|
|
4370
5840
|
ramMib?: number | undefined;
|
|
@@ -4374,7 +5844,24 @@ declare const impContract: {
|
|
|
4374
5844
|
error?: string | undefined;
|
|
4375
5845
|
sessions?: number | undefined;
|
|
4376
5846
|
coldBootReason?: string | undefined;
|
|
4377
|
-
|
|
5847
|
+
agentSilentSince?: Date | undefined;
|
|
5848
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
5849
|
+
cpu?: {
|
|
5850
|
+
limit: number | null;
|
|
5851
|
+
weight: number;
|
|
5852
|
+
} | undefined;
|
|
5853
|
+
resources?: {
|
|
5854
|
+
wakeCount: number;
|
|
5855
|
+
awakeMs: number;
|
|
5856
|
+
sample?: {
|
|
5857
|
+
measuredAt: Date;
|
|
5858
|
+
since: Date;
|
|
5859
|
+
cpuPercent?: number | undefined;
|
|
5860
|
+
cpuThrottledMs: number;
|
|
5861
|
+
netRxBytes: number;
|
|
5862
|
+
netTxBytes: number;
|
|
5863
|
+
} | undefined;
|
|
5864
|
+
} | undefined;
|
|
4378
5865
|
};
|
|
4379
5866
|
} | {
|
|
4380
5867
|
v: 1;
|
|
@@ -4435,6 +5922,9 @@ declare const impContract: {
|
|
|
4435
5922
|
port: number;
|
|
4436
5923
|
httpPort: number;
|
|
4437
5924
|
url: string;
|
|
5925
|
+
public?: {
|
|
5926
|
+
auth: "basic" | "none" | "token";
|
|
5927
|
+
} | undefined;
|
|
4438
5928
|
createdAt: Date;
|
|
4439
5929
|
lastActiveAt: Date;
|
|
4440
5930
|
ramMib?: number | undefined;
|
|
@@ -4444,13 +5934,30 @@ declare const impContract: {
|
|
|
4444
5934
|
error?: string | undefined;
|
|
4445
5935
|
sessions?: number | undefined;
|
|
4446
5936
|
coldBootReason?: string | undefined;
|
|
4447
|
-
|
|
5937
|
+
agentSilentSince?: Date | undefined;
|
|
5938
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
5939
|
+
cpu?: {
|
|
5940
|
+
limit: number | null;
|
|
5941
|
+
weight: number;
|
|
5942
|
+
} | undefined;
|
|
5943
|
+
resources?: {
|
|
5944
|
+
wakeCount: number;
|
|
5945
|
+
awakeMs: number;
|
|
5946
|
+
sample?: {
|
|
5947
|
+
measuredAt: Date;
|
|
5948
|
+
since: Date;
|
|
5949
|
+
cpuPercent?: number | undefined;
|
|
5950
|
+
cpuThrottledMs: number;
|
|
5951
|
+
netRxBytes: number;
|
|
5952
|
+
netTxBytes: number;
|
|
5953
|
+
} | undefined;
|
|
5954
|
+
} | undefined;
|
|
4448
5955
|
};
|
|
4449
5956
|
} | {
|
|
4450
5957
|
v: 1;
|
|
4451
5958
|
at: Date;
|
|
4452
5959
|
ev: "ImpChanged";
|
|
4453
|
-
reason: "adopted" | "booted" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "woke";
|
|
5960
|
+
reason: "adopted" | "booted" | "exposed" | "failed" | "held" | "repaired" | "resized" | "restored" | "slept" | "stopped" | "updated" | "woke";
|
|
4454
5961
|
imp: {
|
|
4455
5962
|
id: string;
|
|
4456
5963
|
name: string;
|
|
@@ -4471,6 +5978,9 @@ declare const impContract: {
|
|
|
4471
5978
|
port: number;
|
|
4472
5979
|
httpPort: number;
|
|
4473
5980
|
url: string;
|
|
5981
|
+
public?: {
|
|
5982
|
+
auth: "basic" | "none" | "token";
|
|
5983
|
+
} | undefined;
|
|
4474
5984
|
createdAt: Date;
|
|
4475
5985
|
lastActiveAt: Date;
|
|
4476
5986
|
ramMib?: number | undefined;
|
|
@@ -4480,7 +5990,24 @@ declare const impContract: {
|
|
|
4480
5990
|
error?: string | undefined;
|
|
4481
5991
|
sessions?: number | undefined;
|
|
4482
5992
|
coldBootReason?: string | undefined;
|
|
4483
|
-
|
|
5993
|
+
agentSilentSince?: Date | undefined;
|
|
5994
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
5995
|
+
cpu?: {
|
|
5996
|
+
limit: number | null;
|
|
5997
|
+
weight: number;
|
|
5998
|
+
} | undefined;
|
|
5999
|
+
resources?: {
|
|
6000
|
+
wakeCount: number;
|
|
6001
|
+
awakeMs: number;
|
|
6002
|
+
sample?: {
|
|
6003
|
+
measuredAt: Date;
|
|
6004
|
+
since: Date;
|
|
6005
|
+
cpuPercent?: number | undefined;
|
|
6006
|
+
cpuThrottledMs: number;
|
|
6007
|
+
netRxBytes: number;
|
|
6008
|
+
netTxBytes: number;
|
|
6009
|
+
} | undefined;
|
|
6010
|
+
} | undefined;
|
|
4484
6011
|
};
|
|
4485
6012
|
detail?: Readonly<{
|
|
4486
6013
|
durationMs?: number | undefined;
|
|
@@ -4512,6 +6039,9 @@ declare const impContract: {
|
|
|
4512
6039
|
port: number;
|
|
4513
6040
|
httpPort: number;
|
|
4514
6041
|
url: string;
|
|
6042
|
+
public?: {
|
|
6043
|
+
auth: "basic" | "none" | "token";
|
|
6044
|
+
} | undefined;
|
|
4515
6045
|
createdAt: Date;
|
|
4516
6046
|
lastActiveAt: Date;
|
|
4517
6047
|
ramMib?: number | undefined;
|
|
@@ -4521,7 +6051,24 @@ declare const impContract: {
|
|
|
4521
6051
|
error?: string | undefined;
|
|
4522
6052
|
sessions?: number | undefined;
|
|
4523
6053
|
coldBootReason?: string | undefined;
|
|
4524
|
-
|
|
6054
|
+
agentSilentSince?: Date | undefined;
|
|
6055
|
+
outdated?: readonly ("agent" | "firecracker" | "impd" | "ipv6" | "kernel")[] | undefined;
|
|
6056
|
+
cpu?: {
|
|
6057
|
+
limit: number | null;
|
|
6058
|
+
weight: number;
|
|
6059
|
+
} | undefined;
|
|
6060
|
+
resources?: {
|
|
6061
|
+
wakeCount: number;
|
|
6062
|
+
awakeMs: number;
|
|
6063
|
+
sample?: {
|
|
6064
|
+
measuredAt: Date;
|
|
6065
|
+
since: Date;
|
|
6066
|
+
cpuPercent?: number | undefined;
|
|
6067
|
+
cpuThrottledMs: number;
|
|
6068
|
+
netRxBytes: number;
|
|
6069
|
+
netTxBytes: number;
|
|
6070
|
+
} | undefined;
|
|
6071
|
+
} | undefined;
|
|
4525
6072
|
};
|
|
4526
6073
|
} | {
|
|
4527
6074
|
v: 1;
|
|
@@ -4568,6 +6115,7 @@ declare const impContract: {
|
|
|
4568
6115
|
image: "image";
|
|
4569
6116
|
imp: "imp";
|
|
4570
6117
|
secret: "secret";
|
|
6118
|
+
service: "service";
|
|
4571
6119
|
session: "session";
|
|
4572
6120
|
"ssh-key": "ssh-key";
|
|
4573
6121
|
token: "token";
|
|
@@ -4585,6 +6133,7 @@ declare const impContract: {
|
|
|
4585
6133
|
image: "image";
|
|
4586
6134
|
imp: "imp";
|
|
4587
6135
|
secret: "secret";
|
|
6136
|
+
service: "service";
|
|
4588
6137
|
session: "session";
|
|
4589
6138
|
"ssh-key": "ssh-key";
|
|
4590
6139
|
token: "token";
|
|
@@ -4661,6 +6210,7 @@ declare const impContract: {
|
|
|
4661
6210
|
firecracker: z.ZodInt;
|
|
4662
6211
|
kernel: z.ZodInt;
|
|
4663
6212
|
agent: z.ZodInt;
|
|
6213
|
+
ipv6: z.ZodOptional<z.ZodInt>;
|
|
4664
6214
|
}, z.core.$strip>;
|
|
4665
6215
|
}, z.core.$strip>;
|
|
4666
6216
|
firecrackerVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -4696,6 +6246,19 @@ declare const impContract: {
|
|
|
4696
6246
|
}, z.core.$strip>>>;
|
|
4697
6247
|
}, z.core.$strip>>;
|
|
4698
6248
|
}, z.core.$strip>;
|
|
6249
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
6250
|
+
hostCpus: z.ZodInt;
|
|
6251
|
+
limitsEnforced: z.ZodBoolean;
|
|
6252
|
+
}, z.core.$strip>>;
|
|
6253
|
+
public: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
6254
|
+
ip: z.ZodIPv4;
|
|
6255
|
+
imps: z.ZodInt;
|
|
6256
|
+
records: z.ZodNullable<z.ZodObject<{
|
|
6257
|
+
isOk: z.ZodBoolean;
|
|
6258
|
+
error: z.ZodNullable<z.ZodString>;
|
|
6259
|
+
at: z.ZodDate;
|
|
6260
|
+
}, z.core.$strip>>;
|
|
6261
|
+
}, z.core.$strip>>>;
|
|
4699
6262
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
4700
6263
|
NOT_FOUND: {
|
|
4701
6264
|
readonly message: "Not found";
|
|
@@ -4707,6 +6270,7 @@ declare const impContract: {
|
|
|
4707
6270
|
image: "image";
|
|
4708
6271
|
imp: "imp";
|
|
4709
6272
|
secret: "secret";
|
|
6273
|
+
service: "service";
|
|
4710
6274
|
session: "session";
|
|
4711
6275
|
"ssh-key": "ssh-key";
|
|
4712
6276
|
token: "token";
|
|
@@ -4724,6 +6288,7 @@ declare const impContract: {
|
|
|
4724
6288
|
image: "image";
|
|
4725
6289
|
imp: "imp";
|
|
4726
6290
|
secret: "secret";
|
|
6291
|
+
service: "service";
|
|
4727
6292
|
session: "session";
|
|
4728
6293
|
"ssh-key": "ssh-key";
|
|
4729
6294
|
token: "token";
|
|
@@ -4808,6 +6373,7 @@ declare const impContract: {
|
|
|
4808
6373
|
image: "image";
|
|
4809
6374
|
imp: "imp";
|
|
4810
6375
|
secret: "secret";
|
|
6376
|
+
service: "service";
|
|
4811
6377
|
session: "session";
|
|
4812
6378
|
"ssh-key": "ssh-key";
|
|
4813
6379
|
token: "token";
|
|
@@ -4825,6 +6391,7 @@ declare const impContract: {
|
|
|
4825
6391
|
image: "image";
|
|
4826
6392
|
imp: "imp";
|
|
4827
6393
|
secret: "secret";
|
|
6394
|
+
service: "service";
|
|
4828
6395
|
session: "session";
|
|
4829
6396
|
"ssh-key": "ssh-key";
|
|
4830
6397
|
token: "token";
|
|
@@ -4911,6 +6478,7 @@ declare const impContract: {
|
|
|
4911
6478
|
image: "image";
|
|
4912
6479
|
imp: "imp";
|
|
4913
6480
|
secret: "secret";
|
|
6481
|
+
service: "service";
|
|
4914
6482
|
session: "session";
|
|
4915
6483
|
"ssh-key": "ssh-key";
|
|
4916
6484
|
token: "token";
|
|
@@ -4928,6 +6496,7 @@ declare const impContract: {
|
|
|
4928
6496
|
image: "image";
|
|
4929
6497
|
imp: "imp";
|
|
4930
6498
|
secret: "secret";
|
|
6499
|
+
service: "service";
|
|
4931
6500
|
session: "session";
|
|
4932
6501
|
"ssh-key": "ssh-key";
|
|
4933
6502
|
token: "token";
|
|
@@ -5024,6 +6593,7 @@ declare const impContract: {
|
|
|
5024
6593
|
image: "image";
|
|
5025
6594
|
imp: "imp";
|
|
5026
6595
|
secret: "secret";
|
|
6596
|
+
service: "service";
|
|
5027
6597
|
session: "session";
|
|
5028
6598
|
"ssh-key": "ssh-key";
|
|
5029
6599
|
token: "token";
|
|
@@ -5041,6 +6611,7 @@ declare const impContract: {
|
|
|
5041
6611
|
image: "image";
|
|
5042
6612
|
imp: "imp";
|
|
5043
6613
|
secret: "secret";
|
|
6614
|
+
service: "service";
|
|
5044
6615
|
session: "session";
|
|
5045
6616
|
"ssh-key": "ssh-key";
|
|
5046
6617
|
token: "token";
|
|
@@ -5113,6 +6684,7 @@ declare const impContract: {
|
|
|
5113
6684
|
image: "image";
|
|
5114
6685
|
imp: "imp";
|
|
5115
6686
|
secret: "secret";
|
|
6687
|
+
service: "service";
|
|
5116
6688
|
session: "session";
|
|
5117
6689
|
"ssh-key": "ssh-key";
|
|
5118
6690
|
token: "token";
|
|
@@ -5130,6 +6702,7 @@ declare const impContract: {
|
|
|
5130
6702
|
image: "image";
|
|
5131
6703
|
imp: "imp";
|
|
5132
6704
|
secret: "secret";
|
|
6705
|
+
service: "service";
|
|
5133
6706
|
session: "session";
|
|
5134
6707
|
"ssh-key": "ssh-key";
|
|
5135
6708
|
token: "token";
|
|
@@ -5207,6 +6780,7 @@ declare const impContract: {
|
|
|
5207
6780
|
image: "image";
|
|
5208
6781
|
imp: "imp";
|
|
5209
6782
|
secret: "secret";
|
|
6783
|
+
service: "service";
|
|
5210
6784
|
session: "session";
|
|
5211
6785
|
"ssh-key": "ssh-key";
|
|
5212
6786
|
token: "token";
|
|
@@ -5224,6 +6798,7 @@ declare const impContract: {
|
|
|
5224
6798
|
image: "image";
|
|
5225
6799
|
imp: "imp";
|
|
5226
6800
|
secret: "secret";
|
|
6801
|
+
service: "service";
|
|
5227
6802
|
session: "session";
|
|
5228
6803
|
"ssh-key": "ssh-key";
|
|
5229
6804
|
token: "token";
|
|
@@ -5297,6 +6872,7 @@ declare const impContract: {
|
|
|
5297
6872
|
image: "image";
|
|
5298
6873
|
imp: "imp";
|
|
5299
6874
|
secret: "secret";
|
|
6875
|
+
service: "service";
|
|
5300
6876
|
session: "session";
|
|
5301
6877
|
"ssh-key": "ssh-key";
|
|
5302
6878
|
token: "token";
|
|
@@ -5314,6 +6890,7 @@ declare const impContract: {
|
|
|
5314
6890
|
image: "image";
|
|
5315
6891
|
imp: "imp";
|
|
5316
6892
|
secret: "secret";
|
|
6893
|
+
service: "service";
|
|
5317
6894
|
session: "session";
|
|
5318
6895
|
"ssh-key": "ssh-key";
|
|
5319
6896
|
token: "token";
|
|
@@ -5398,6 +6975,7 @@ declare const impContract: {
|
|
|
5398
6975
|
image: "image";
|
|
5399
6976
|
imp: "imp";
|
|
5400
6977
|
secret: "secret";
|
|
6978
|
+
service: "service";
|
|
5401
6979
|
session: "session";
|
|
5402
6980
|
"ssh-key": "ssh-key";
|
|
5403
6981
|
token: "token";
|
|
@@ -5415,6 +6993,7 @@ declare const impContract: {
|
|
|
5415
6993
|
image: "image";
|
|
5416
6994
|
imp: "imp";
|
|
5417
6995
|
secret: "secret";
|
|
6996
|
+
service: "service";
|
|
5418
6997
|
session: "session";
|
|
5419
6998
|
"ssh-key": "ssh-key";
|
|
5420
6999
|
token: "token";
|
|
@@ -5513,6 +7092,13 @@ declare const ImpSchema: z.ZodObject<{
|
|
|
5513
7092
|
port: z.ZodInt;
|
|
5514
7093
|
httpPort: z.ZodInt;
|
|
5515
7094
|
url: z.ZodURL;
|
|
7095
|
+
public: z.ZodOptional<z.ZodObject<{
|
|
7096
|
+
auth: z.ZodEnum<{
|
|
7097
|
+
basic: "basic";
|
|
7098
|
+
none: "none";
|
|
7099
|
+
token: "token";
|
|
7100
|
+
}>;
|
|
7101
|
+
}, z.core.$strip>>;
|
|
5516
7102
|
createdAt: z.ZodDate;
|
|
5517
7103
|
lastActiveAt: z.ZodDate;
|
|
5518
7104
|
ramMib: z.ZodOptional<z.ZodInt>;
|
|
@@ -5522,12 +7108,30 @@ declare const ImpSchema: z.ZodObject<{
|
|
|
5522
7108
|
error: z.ZodOptional<z.ZodString>;
|
|
5523
7109
|
sessions: z.ZodOptional<z.ZodInt>;
|
|
5524
7110
|
coldBootReason: z.ZodOptional<z.ZodString>;
|
|
7111
|
+
agentSilentSince: z.ZodOptional<z.ZodDate>;
|
|
5525
7112
|
outdated: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodEnum<{
|
|
5526
7113
|
agent: "agent";
|
|
5527
7114
|
firecracker: "firecracker";
|
|
5528
7115
|
impd: "impd";
|
|
7116
|
+
ipv6: "ipv6";
|
|
5529
7117
|
kernel: "kernel";
|
|
5530
7118
|
}>>>>;
|
|
7119
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
7120
|
+
limit: z.ZodNullable<z.ZodNumber>;
|
|
7121
|
+
weight: z.ZodInt;
|
|
7122
|
+
}, z.core.$strip>>;
|
|
7123
|
+
resources: z.ZodOptional<z.ZodObject<{
|
|
7124
|
+
wakeCount: z.ZodInt;
|
|
7125
|
+
awakeMs: z.ZodInt;
|
|
7126
|
+
sample: z.ZodOptional<z.ZodObject<{
|
|
7127
|
+
measuredAt: z.ZodDate;
|
|
7128
|
+
since: z.ZodDate;
|
|
7129
|
+
cpuPercent: z.ZodOptional<z.ZodNumber>;
|
|
7130
|
+
cpuThrottledMs: z.ZodInt;
|
|
7131
|
+
netRxBytes: z.ZodInt;
|
|
7132
|
+
netTxBytes: z.ZodInt;
|
|
7133
|
+
}, z.core.$strip>>;
|
|
7134
|
+
}, z.core.$strip>>;
|
|
5531
7135
|
}, z.core.$strip>;
|
|
5532
7136
|
type Imp = z.infer<typeof ImpSchema>;
|
|
5533
7137
|
//#endregion
|
|
@@ -5570,6 +7174,7 @@ declare const SystemInfoSchema: z.ZodObject<{
|
|
|
5570
7174
|
firecracker: z.ZodInt;
|
|
5571
7175
|
kernel: z.ZodInt;
|
|
5572
7176
|
agent: z.ZodInt;
|
|
7177
|
+
ipv6: z.ZodOptional<z.ZodInt>;
|
|
5573
7178
|
}, z.core.$strip>;
|
|
5574
7179
|
}, z.core.$strip>;
|
|
5575
7180
|
firecrackerVersion: z.ZodNullable<z.ZodString>;
|
|
@@ -5605,6 +7210,19 @@ declare const SystemInfoSchema: z.ZodObject<{
|
|
|
5605
7210
|
}, z.core.$strip>>>;
|
|
5606
7211
|
}, z.core.$strip>>;
|
|
5607
7212
|
}, z.core.$strip>;
|
|
7213
|
+
cpu: z.ZodOptional<z.ZodObject<{
|
|
7214
|
+
hostCpus: z.ZodInt;
|
|
7215
|
+
limitsEnforced: z.ZodBoolean;
|
|
7216
|
+
}, z.core.$strip>>;
|
|
7217
|
+
public: z.ZodOptional<z.ZodNullable<z.ZodObject<{
|
|
7218
|
+
ip: z.ZodIPv4;
|
|
7219
|
+
imps: z.ZodInt;
|
|
7220
|
+
records: z.ZodNullable<z.ZodObject<{
|
|
7221
|
+
isOk: z.ZodBoolean;
|
|
7222
|
+
error: z.ZodNullable<z.ZodString>;
|
|
7223
|
+
at: z.ZodDate;
|
|
7224
|
+
}, z.core.$strip>>;
|
|
7225
|
+
}, z.core.$strip>>>;
|
|
5608
7226
|
}, z.core.$strip>;
|
|
5609
7227
|
type SystemInfo = z.infer<typeof SystemInfoSchema>;
|
|
5610
7228
|
//#endregion
|