@zgeoff/imp-client 0.21.0 → 0.23.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -54,6 +54,8 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
54
54
  }>;
55
55
  vcpus: z.ZodInt;
56
56
  memoryMib: z.ZodInt;
57
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
58
+ pluggedMib: z.ZodOptional<z.ZodInt>;
57
59
  diskMib: z.ZodInt;
58
60
  diskUsage: z.ZodOptional<z.ZodObject<{
59
61
  exclusiveBytes: z.ZodInt;
@@ -157,6 +159,8 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
157
159
  }>;
158
160
  vcpus: z.ZodInt;
159
161
  memoryMib: z.ZodInt;
162
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
163
+ pluggedMib: z.ZodOptional<z.ZodInt>;
160
164
  diskMib: z.ZodInt;
161
165
  diskUsage: z.ZodOptional<z.ZodObject<{
162
166
  exclusiveBytes: z.ZodInt;
@@ -252,6 +256,8 @@ declare const ImpEventSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
252
256
  }>;
253
257
  vcpus: z.ZodInt;
254
258
  memoryMib: z.ZodInt;
259
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
260
+ pluggedMib: z.ZodOptional<z.ZodInt>;
255
261
  diskMib: z.ZodInt;
256
262
  diskUsage: z.ZodOptional<z.ZodObject<{
257
263
  exclusiveBytes: z.ZodInt;
@@ -403,6 +409,7 @@ declare const impContract: {
403
409
  image: z.ZodOptional<z.ZodString>;
404
410
  vcpus: z.ZodOptional<z.ZodInt>;
405
411
  memoryMib: z.ZodOptional<z.ZodInt>;
412
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
406
413
  diskMib: z.ZodOptional<z.ZodInt>;
407
414
  httpPort: z.ZodOptional<z.ZodInt>;
408
415
  policy: z.ZodOptional<z.ZodObject<{
@@ -429,6 +436,8 @@ declare const impContract: {
429
436
  }>;
430
437
  vcpus: z.ZodInt;
431
438
  memoryMib: z.ZodInt;
439
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
440
+ pluggedMib: z.ZodOptional<z.ZodInt>;
432
441
  diskMib: z.ZodInt;
433
442
  diskUsage: z.ZodOptional<z.ZodObject<{
434
443
  exclusiveBytes: z.ZodInt;
@@ -658,6 +667,8 @@ declare const impContract: {
658
667
  }>;
659
668
  vcpus: z.ZodInt;
660
669
  memoryMib: z.ZodInt;
670
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
671
+ pluggedMib: z.ZodOptional<z.ZodInt>;
661
672
  diskMib: z.ZodInt;
662
673
  diskUsage: z.ZodOptional<z.ZodObject<{
663
674
  exclusiveBytes: z.ZodInt;
@@ -889,6 +900,8 @@ declare const impContract: {
889
900
  }>;
890
901
  vcpus: z.ZodInt;
891
902
  memoryMib: z.ZodInt;
903
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
904
+ pluggedMib: z.ZodOptional<z.ZodInt>;
892
905
  diskMib: z.ZodInt;
893
906
  diskUsage: z.ZodOptional<z.ZodObject<{
894
907
  exclusiveBytes: z.ZodInt;
@@ -1268,6 +1281,8 @@ declare const impContract: {
1268
1281
  }>;
1269
1282
  vcpus: z.ZodInt;
1270
1283
  memoryMib: z.ZodInt;
1284
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
1285
+ pluggedMib: z.ZodOptional<z.ZodInt>;
1271
1286
  diskMib: z.ZodInt;
1272
1287
  diskUsage: z.ZodOptional<z.ZodObject<{
1273
1288
  exclusiveBytes: z.ZodInt;
@@ -1500,6 +1515,8 @@ declare const impContract: {
1500
1515
  }>;
1501
1516
  vcpus: z.ZodInt;
1502
1517
  memoryMib: z.ZodInt;
1518
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
1519
+ pluggedMib: z.ZodOptional<z.ZodInt>;
1503
1520
  diskMib: z.ZodInt;
1504
1521
  diskUsage: z.ZodOptional<z.ZodObject<{
1505
1522
  exclusiveBytes: z.ZodInt;
@@ -1732,6 +1749,8 @@ declare const impContract: {
1732
1749
  }>;
1733
1750
  vcpus: z.ZodInt;
1734
1751
  memoryMib: z.ZodInt;
1752
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
1753
+ pluggedMib: z.ZodOptional<z.ZodInt>;
1735
1754
  diskMib: z.ZodInt;
1736
1755
  diskUsage: z.ZodOptional<z.ZodObject<{
1737
1756
  exclusiveBytes: z.ZodInt;
@@ -1964,6 +1983,8 @@ declare const impContract: {
1964
1983
  }>;
1965
1984
  vcpus: z.ZodInt;
1966
1985
  memoryMib: z.ZodInt;
1986
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
1987
+ pluggedMib: z.ZodOptional<z.ZodInt>;
1967
1988
  diskMib: z.ZodInt;
1968
1989
  diskUsage: z.ZodOptional<z.ZodObject<{
1969
1990
  exclusiveBytes: z.ZodInt;
@@ -2196,6 +2217,8 @@ declare const impContract: {
2196
2217
  }>;
2197
2218
  vcpus: z.ZodInt;
2198
2219
  memoryMib: z.ZodInt;
2220
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
2221
+ pluggedMib: z.ZodOptional<z.ZodInt>;
2199
2222
  diskMib: z.ZodInt;
2200
2223
  diskUsage: z.ZodOptional<z.ZodObject<{
2201
2224
  exclusiveBytes: z.ZodInt;
@@ -2428,6 +2451,8 @@ declare const impContract: {
2428
2451
  }>;
2429
2452
  vcpus: z.ZodInt;
2430
2453
  memoryMib: z.ZodInt;
2454
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
2455
+ pluggedMib: z.ZodOptional<z.ZodInt>;
2431
2456
  diskMib: z.ZodInt;
2432
2457
  diskUsage: z.ZodOptional<z.ZodObject<{
2433
2458
  exclusiveBytes: z.ZodInt;
@@ -3295,6 +3320,8 @@ declare const impContract: {
3295
3320
  }>;
3296
3321
  vcpus: z.ZodInt;
3297
3322
  memoryMib: z.ZodInt;
3323
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
3324
+ pluggedMib: z.ZodOptional<z.ZodInt>;
3298
3325
  diskMib: z.ZodInt;
3299
3326
  diskUsage: z.ZodOptional<z.ZodObject<{
3300
3327
  exclusiveBytes: z.ZodInt;
@@ -3528,6 +3555,8 @@ declare const impContract: {
3528
3555
  }>;
3529
3556
  vcpus: z.ZodInt;
3530
3557
  memoryMib: z.ZodInt;
3558
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
3559
+ pluggedMib: z.ZodOptional<z.ZodInt>;
3531
3560
  diskMib: z.ZodInt;
3532
3561
  diskUsage: z.ZodOptional<z.ZodObject<{
3533
3562
  exclusiveBytes: z.ZodInt;
@@ -3763,6 +3792,8 @@ declare const impContract: {
3763
3792
  }>;
3764
3793
  vcpus: z.ZodInt;
3765
3794
  memoryMib: z.ZodInt;
3795
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
3796
+ pluggedMib: z.ZodOptional<z.ZodInt>;
3766
3797
  diskMib: z.ZodInt;
3767
3798
  diskUsage: z.ZodOptional<z.ZodObject<{
3768
3799
  exclusiveBytes: z.ZodInt;
@@ -6255,6 +6286,8 @@ declare const impContract: {
6255
6286
  }>;
6256
6287
  vcpus: z.ZodInt;
6257
6288
  memoryMib: z.ZodInt;
6289
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
6290
+ pluggedMib: z.ZodOptional<z.ZodInt>;
6258
6291
  diskMib: z.ZodInt;
6259
6292
  diskUsage: z.ZodOptional<z.ZodObject<{
6260
6293
  exclusiveBytes: z.ZodInt;
@@ -6955,6 +6988,8 @@ declare const impContract: {
6955
6988
  }>;
6956
6989
  vcpus: z.ZodInt;
6957
6990
  memoryMib: z.ZodInt;
6991
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
6992
+ pluggedMib: z.ZodOptional<z.ZodInt>;
6958
6993
  diskMib: z.ZodInt;
6959
6994
  diskUsage: z.ZodOptional<z.ZodObject<{
6960
6995
  exclusiveBytes: z.ZodInt;
@@ -11441,6 +11476,8 @@ declare const impContract: {
11441
11476
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11442
11477
  vcpus: number;
11443
11478
  memoryMib: number;
11479
+ maxMemoryMib?: number | undefined;
11480
+ pluggedMib?: number | undefined;
11444
11481
  diskMib: number;
11445
11482
  diskUsage?: {
11446
11483
  exclusiveBytes: number;
@@ -11510,6 +11547,8 @@ declare const impContract: {
11510
11547
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11511
11548
  vcpus: number;
11512
11549
  memoryMib: number;
11550
+ maxMemoryMib?: number | undefined;
11551
+ pluggedMib?: number | undefined;
11513
11552
  diskMib: number;
11514
11553
  diskUsage?: {
11515
11554
  exclusiveBytes: number;
@@ -11585,6 +11624,8 @@ declare const impContract: {
11585
11624
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11586
11625
  vcpus: number;
11587
11626
  memoryMib: number;
11627
+ maxMemoryMib?: number | undefined;
11628
+ pluggedMib?: number | undefined;
11588
11629
  diskMib: number;
11589
11630
  diskUsage?: {
11590
11631
  exclusiveBytes: number;
@@ -11699,6 +11740,8 @@ declare const impContract: {
11699
11740
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11700
11741
  vcpus: number;
11701
11742
  memoryMib: number;
11743
+ maxMemoryMib?: number | undefined;
11744
+ pluggedMib?: number | undefined;
11702
11745
  diskMib: number;
11703
11746
  diskUsage?: {
11704
11747
  exclusiveBytes: number;
@@ -11768,6 +11811,8 @@ declare const impContract: {
11768
11811
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11769
11812
  vcpus: number;
11770
11813
  memoryMib: number;
11814
+ maxMemoryMib?: number | undefined;
11815
+ pluggedMib?: number | undefined;
11771
11816
  diskMib: number;
11772
11817
  diskUsage?: {
11773
11818
  exclusiveBytes: number;
@@ -11843,6 +11888,8 @@ declare const impContract: {
11843
11888
  state: "creating" | "error" | "running" | "sleeping" | "stopped";
11844
11889
  vcpus: number;
11845
11890
  memoryMib: number;
11891
+ maxMemoryMib?: number | undefined;
11892
+ pluggedMib?: number | undefined;
11846
11893
  diskMib: number;
11847
11894
  diskUsage?: {
11848
11895
  exclusiveBytes: number;
@@ -13467,6 +13514,8 @@ declare const ImpSchema: z.ZodObject<{
13467
13514
  }>;
13468
13515
  vcpus: z.ZodInt;
13469
13516
  memoryMib: z.ZodInt;
13517
+ maxMemoryMib: z.ZodOptional<z.ZodInt>;
13518
+ pluggedMib: z.ZodOptional<z.ZodInt>;
13470
13519
  diskMib: z.ZodInt;
13471
13520
  diskUsage: z.ZodOptional<z.ZodObject<{
13472
13521
  exclusiveBytes: z.ZodInt;
package/dist/index.js CHANGED
@@ -3,7 +3,7 @@ import { RPCLink } from "@orpc/client/fetch";
3
3
  import * as z from "zod";
4
4
  //#endregion
5
5
  //#region src/check-server.ts
6
- const CLIENT_VERSION = "0.21.0";
6
+ const CLIENT_VERSION = "0.23.0";
7
7
  async function checkServer(rpc) {
8
8
  const info = await rpc.system.info();
9
9
  return {
@@ -159,6 +159,8 @@ z.object({
159
159
  state: ImpStateSchema,
160
160
  vcpus: z.int().positive(),
161
161
  memoryMib: z.int().positive(),
162
+ maxMemoryMib: z.int().positive().optional(),
163
+ pluggedMib: z.int().nonnegative().optional(),
162
164
  diskMib: z.int().positive(),
163
165
  diskUsage: z.object({
164
166
  exclusiveBytes: z.int().nonnegative(),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgeoff/imp-client",
3
- "version": "0.21.0",
3
+ "version": "0.23.0",
4
4
  "description": "Typed client for impd, the imp host daemon: imps, checkpoints, images and exec",
5
5
  "license": "MIT",
6
6
  "repository": {