@impz/client 7.7.0 → 7.8.1
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/identity.d.ts
CHANGED
|
@@ -534,6 +534,7 @@ declare const ImageSchema: z.ZodObject<{
|
|
|
534
534
|
createdAt: z.ZodDate;
|
|
535
535
|
sizeBytes: z.ZodInt;
|
|
536
536
|
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
537
|
+
aliases: z.ZodDefault<z.ZodArray<z.ZodString>>;
|
|
537
538
|
}, z.core.$strip>;
|
|
538
539
|
type Image = z.infer<typeof ImageSchema>;
|
|
539
540
|
declare const ProcedureAccessSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
|
|
@@ -8858,6 +8859,7 @@ declare const impContract: {
|
|
|
8858
8859
|
createdAt: import("zod").ZodDate;
|
|
8859
8860
|
sizeBytes: import("zod").ZodInt;
|
|
8860
8861
|
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
8862
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
8861
8863
|
}, import("zod/v4/core").$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
8862
8864
|
NOT_FOUND: {
|
|
8863
8865
|
readonly message: "Not found";
|
|
@@ -9052,6 +9054,7 @@ declare const impContract: {
|
|
|
9052
9054
|
createdAt: import("zod").ZodDate;
|
|
9053
9055
|
sizeBytes: import("zod").ZodInt;
|
|
9054
9056
|
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
9057
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9055
9058
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9056
9059
|
NOT_FOUND: {
|
|
9057
9060
|
readonly message: "Not found";
|
|
@@ -9245,6 +9248,7 @@ declare const impContract: {
|
|
|
9245
9248
|
createdAt: import("zod").ZodDate;
|
|
9246
9249
|
sizeBytes: import("zod").ZodInt;
|
|
9247
9250
|
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
9251
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
9248
9252
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9249
9253
|
NOT_FOUND: {
|
|
9250
9254
|
readonly message: "Not found";
|
|
@@ -9446,6 +9450,7 @@ declare const impContract: {
|
|
|
9446
9450
|
createdAt: Date;
|
|
9447
9451
|
sizeBytes: number;
|
|
9448
9452
|
pinned?: boolean | undefined;
|
|
9453
|
+
aliases?: string[] | undefined;
|
|
9449
9454
|
};
|
|
9450
9455
|
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
9451
9456
|
type: "progress";
|
|
@@ -9466,6 +9471,7 @@ declare const impContract: {
|
|
|
9466
9471
|
createdAt: Date;
|
|
9467
9472
|
sizeBytes: number;
|
|
9468
9473
|
pinned: boolean;
|
|
9474
|
+
aliases: string[];
|
|
9469
9475
|
};
|
|
9470
9476
|
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9471
9477
|
NOT_FOUND: {
|
|
@@ -9670,6 +9676,7 @@ declare const impContract: {
|
|
|
9670
9676
|
createdAt: Date;
|
|
9671
9677
|
sizeBytes: number;
|
|
9672
9678
|
pinned?: boolean | undefined;
|
|
9679
|
+
aliases?: string[] | undefined;
|
|
9673
9680
|
};
|
|
9674
9681
|
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
9675
9682
|
type: "progress";
|
|
@@ -9690,6 +9697,7 @@ declare const impContract: {
|
|
|
9690
9697
|
createdAt: Date;
|
|
9691
9698
|
sizeBytes: number;
|
|
9692
9699
|
pinned: boolean;
|
|
9700
|
+
aliases: string[];
|
|
9693
9701
|
};
|
|
9694
9702
|
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9695
9703
|
NOT_FOUND: {
|
|
@@ -10252,6 +10260,7 @@ declare const impContract: {
|
|
|
10252
10260
|
createdAt: import("zod").ZodDate;
|
|
10253
10261
|
sizeBytes: import("zod").ZodInt;
|
|
10254
10262
|
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
10263
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
10255
10264
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10256
10265
|
NOT_FOUND: {
|
|
10257
10266
|
readonly message: "Not found";
|
|
@@ -10442,6 +10451,7 @@ declare const impContract: {
|
|
|
10442
10451
|
createdAt: import("zod").ZodDate;
|
|
10443
10452
|
sizeBytes: import("zod").ZodInt;
|
|
10444
10453
|
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
10454
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
10445
10455
|
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10446
10456
|
NOT_FOUND: {
|
|
10447
10457
|
readonly message: "Not found";
|
|
@@ -10618,6 +10628,376 @@ declare const impContract: {
|
|
|
10618
10628
|
}, import("zod/v4/core").$strip>;
|
|
10619
10629
|
};
|
|
10620
10630
|
}>, ProcedureMeta & Record<never, never>>;
|
|
10631
|
+
alias: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10632
|
+
alias: import("zod").ZodString;
|
|
10633
|
+
image: import("zod").ZodString;
|
|
10634
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{
|
|
10635
|
+
id: import("zod").ZodString;
|
|
10636
|
+
name: import("zod").ZodString;
|
|
10637
|
+
ref: import("zod").ZodString;
|
|
10638
|
+
digest: import("zod").ZodString;
|
|
10639
|
+
source: import("zod").ZodEnum<{
|
|
10640
|
+
imp: "imp";
|
|
10641
|
+
oci: "oci";
|
|
10642
|
+
}>;
|
|
10643
|
+
createdAt: import("zod").ZodDate;
|
|
10644
|
+
sizeBytes: import("zod").ZodInt;
|
|
10645
|
+
pinned: import("zod").ZodDefault<import("zod").ZodBoolean>;
|
|
10646
|
+
aliases: import("zod").ZodDefault<import("zod").ZodArray<import("zod").ZodString>>;
|
|
10647
|
+
}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10648
|
+
NOT_FOUND: {
|
|
10649
|
+
readonly message: "Not found";
|
|
10650
|
+
readonly data: import("zod").ZodObject<{
|
|
10651
|
+
kind: import("zod").ZodEnum<{
|
|
10652
|
+
backup: "backup";
|
|
10653
|
+
checkpoint: "checkpoint";
|
|
10654
|
+
"database-copy": "database-copy";
|
|
10655
|
+
grant: "grant";
|
|
10656
|
+
image: "image";
|
|
10657
|
+
imp: "imp";
|
|
10658
|
+
network: "network";
|
|
10659
|
+
"oauth-client": "oauth-client";
|
|
10660
|
+
"oauth-grant": "oauth-grant";
|
|
10661
|
+
"oauth-passkey": "oauth-passkey";
|
|
10662
|
+
secret: "secret";
|
|
10663
|
+
service: "service";
|
|
10664
|
+
session: "session";
|
|
10665
|
+
"ssh-key": "ssh-key";
|
|
10666
|
+
token: "token";
|
|
10667
|
+
}>;
|
|
10668
|
+
name: import("zod").ZodString;
|
|
10669
|
+
reason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10670
|
+
binding_changed: "binding_changed";
|
|
10671
|
+
id_changed: "id_changed";
|
|
10672
|
+
}>>;
|
|
10673
|
+
}, import("zod/v4/core").$strip>;
|
|
10674
|
+
};
|
|
10675
|
+
CONFLICT: {
|
|
10676
|
+
readonly message: "Already exists";
|
|
10677
|
+
readonly data: import("zod").ZodObject<{
|
|
10678
|
+
kind: import("zod").ZodEnum<{
|
|
10679
|
+
backup: "backup";
|
|
10680
|
+
checkpoint: "checkpoint";
|
|
10681
|
+
"database-copy": "database-copy";
|
|
10682
|
+
grant: "grant";
|
|
10683
|
+
image: "image";
|
|
10684
|
+
imp: "imp";
|
|
10685
|
+
network: "network";
|
|
10686
|
+
"oauth-client": "oauth-client";
|
|
10687
|
+
"oauth-grant": "oauth-grant";
|
|
10688
|
+
"oauth-passkey": "oauth-passkey";
|
|
10689
|
+
secret: "secret";
|
|
10690
|
+
service: "service";
|
|
10691
|
+
session: "session";
|
|
10692
|
+
"ssh-key": "ssh-key";
|
|
10693
|
+
token: "token";
|
|
10694
|
+
}>;
|
|
10695
|
+
name: import("zod").ZodString;
|
|
10696
|
+
reason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10697
|
+
binding_changed: "binding_changed";
|
|
10698
|
+
id_changed: "id_changed";
|
|
10699
|
+
}>>;
|
|
10700
|
+
}, import("zod/v4/core").$strip>;
|
|
10701
|
+
};
|
|
10702
|
+
FORBIDDEN: {
|
|
10703
|
+
readonly message: "Not allowed";
|
|
10704
|
+
readonly data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10705
|
+
reason: import("zod").ZodEnum<{
|
|
10706
|
+
imp_out_of_scope: "imp_out_of_scope";
|
|
10707
|
+
not_grantable: "not_grantable";
|
|
10708
|
+
scope: "scope";
|
|
10709
|
+
}>;
|
|
10710
|
+
}, import("zod/v4/core").$strip>>;
|
|
10711
|
+
};
|
|
10712
|
+
PRECONDITION_FAILED: {
|
|
10713
|
+
readonly message: "Not possible on this host";
|
|
10714
|
+
readonly data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10715
|
+
reason: import("zod").ZodEnum<{
|
|
10716
|
+
broker_not_ready: "broker_not_ready";
|
|
10717
|
+
impd_outdated: "impd_outdated";
|
|
10718
|
+
}>;
|
|
10719
|
+
detail: import("zod").ZodString;
|
|
10720
|
+
}, import("zod/v4/core").$strip>>;
|
|
10721
|
+
};
|
|
10722
|
+
RAM_BUDGET_EXCEEDED: {
|
|
10723
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
10724
|
+
readonly status: 503;
|
|
10725
|
+
readonly data: import("zod").ZodObject<{
|
|
10726
|
+
budgetMib: import("zod").ZodInt;
|
|
10727
|
+
usedMib: import("zod").ZodInt;
|
|
10728
|
+
requestedMib: import("zod").ZodInt;
|
|
10729
|
+
neededMib: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
10730
|
+
protected: import("zod").ZodOptional<import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodObject<{
|
|
10731
|
+
name: import("zod").ZodString;
|
|
10732
|
+
ramMib: import("zod").ZodInt;
|
|
10733
|
+
leased: import("zod").ZodBoolean;
|
|
10734
|
+
busy: import("zod").ZodBoolean;
|
|
10735
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
10736
|
+
protectedHidden: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
10737
|
+
}, import("zod/v4/core").$strip>;
|
|
10738
|
+
};
|
|
10739
|
+
SERVICE_UNAVAILABLE: {
|
|
10740
|
+
readonly message: "impd is stopping";
|
|
10741
|
+
};
|
|
10742
|
+
INVALID_STATE: {
|
|
10743
|
+
readonly message: "The imp is not in a state that allows this";
|
|
10744
|
+
readonly status: 409;
|
|
10745
|
+
readonly data: import("zod").ZodObject<{
|
|
10746
|
+
state: import("zod").ZodEnum<{
|
|
10747
|
+
creating: "creating";
|
|
10748
|
+
error: "error";
|
|
10749
|
+
running: "running";
|
|
10750
|
+
sleeping: "sleeping";
|
|
10751
|
+
stopped: "stopped";
|
|
10752
|
+
}>;
|
|
10753
|
+
allowed: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
10754
|
+
creating: "creating";
|
|
10755
|
+
error: "error";
|
|
10756
|
+
running: "running";
|
|
10757
|
+
sleeping: "sleeping";
|
|
10758
|
+
stopped: "stopped";
|
|
10759
|
+
}>>;
|
|
10760
|
+
coldBoots: import("zod").ZodOptional<import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodReadonly<import("zod").ZodObject<{
|
|
10761
|
+
bootId: import("zod").ZodString;
|
|
10762
|
+
cause: import("zod").ZodEnum<{
|
|
10763
|
+
recovery: "recovery";
|
|
10764
|
+
restore: "restore";
|
|
10765
|
+
start: "start";
|
|
10766
|
+
unknown: "unknown";
|
|
10767
|
+
wake_fallback: "wake_fallback";
|
|
10768
|
+
watchdog: "watchdog";
|
|
10769
|
+
}>;
|
|
10770
|
+
at: import("zod").ZodISODateTime;
|
|
10771
|
+
}, import("zod/v4/core").$strip>>>>>;
|
|
10772
|
+
}, import("zod/v4/core").$strip>;
|
|
10773
|
+
};
|
|
10774
|
+
INVALID_RESUME: {
|
|
10775
|
+
readonly message: "The resume offset is past the end of the output";
|
|
10776
|
+
readonly status: 409;
|
|
10777
|
+
readonly data: import("zod").ZodReadonly<import("zod").ZodObject<{
|
|
10778
|
+
end: import("zod").ZodInt;
|
|
10779
|
+
bufferStart: import("zod").ZodInt;
|
|
10780
|
+
}, import("zod/v4/core").$strip>>;
|
|
10781
|
+
};
|
|
10782
|
+
DISK_FULL: {
|
|
10783
|
+
readonly message: "Not enough free disk on the host";
|
|
10784
|
+
readonly status: 507;
|
|
10785
|
+
readonly data: import("zod").ZodObject<{
|
|
10786
|
+
availableBytes: import("zod").ZodInt;
|
|
10787
|
+
reserveBytes: import("zod").ZodInt;
|
|
10788
|
+
requestedBytes: import("zod").ZodInt;
|
|
10789
|
+
}, import("zod/v4/core").$strip>;
|
|
10790
|
+
};
|
|
10791
|
+
LEASED: {
|
|
10792
|
+
readonly message: "The imp is leased";
|
|
10793
|
+
readonly status: 409;
|
|
10794
|
+
readonly data: import("zod").ZodObject<{
|
|
10795
|
+
leases: import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodObject<{
|
|
10796
|
+
name: import("zod").ZodString;
|
|
10797
|
+
owner: import("zod").ZodObject<{
|
|
10798
|
+
principal: import("zod").ZodString;
|
|
10799
|
+
display: import("zod").ZodString;
|
|
10800
|
+
label: import("zod").ZodString;
|
|
10801
|
+
}, import("zod/v4/core").$strip>;
|
|
10802
|
+
until: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
10803
|
+
}, import("zod/v4/core").$strip>>>;
|
|
10804
|
+
otherCount: import("zod").ZodInt;
|
|
10805
|
+
}, import("zod/v4/core").$strip>;
|
|
10806
|
+
};
|
|
10807
|
+
LEASE_NOT_HELD: {
|
|
10808
|
+
readonly message: "The caller holds no such lease";
|
|
10809
|
+
readonly status: 409;
|
|
10810
|
+
};
|
|
10811
|
+
AGENT_OUTDATED: {
|
|
10812
|
+
readonly message: "The imp's agent is too old for this";
|
|
10813
|
+
readonly status: 409;
|
|
10814
|
+
};
|
|
10815
|
+
MOVING: {
|
|
10816
|
+
readonly message: "The imp is moving between hosts";
|
|
10817
|
+
readonly status: 409;
|
|
10818
|
+
readonly data: import("zod").ZodObject<{
|
|
10819
|
+
retryAfterS: import("zod").ZodInt;
|
|
10820
|
+
}, import("zod/v4/core").$strip>;
|
|
10821
|
+
};
|
|
10822
|
+
}>, ProcedureMeta & Record<never, never>>;
|
|
10823
|
+
unalias: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
10824
|
+
alias: import("zod").ZodString;
|
|
10825
|
+
}, import("zod/v4/core").$strip>, import("zod").ZodObject<{}, import("zod/v4/core").$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10826
|
+
NOT_FOUND: {
|
|
10827
|
+
readonly message: "Not found";
|
|
10828
|
+
readonly data: import("zod").ZodObject<{
|
|
10829
|
+
kind: import("zod").ZodEnum<{
|
|
10830
|
+
backup: "backup";
|
|
10831
|
+
checkpoint: "checkpoint";
|
|
10832
|
+
"database-copy": "database-copy";
|
|
10833
|
+
grant: "grant";
|
|
10834
|
+
image: "image";
|
|
10835
|
+
imp: "imp";
|
|
10836
|
+
network: "network";
|
|
10837
|
+
"oauth-client": "oauth-client";
|
|
10838
|
+
"oauth-grant": "oauth-grant";
|
|
10839
|
+
"oauth-passkey": "oauth-passkey";
|
|
10840
|
+
secret: "secret";
|
|
10841
|
+
service: "service";
|
|
10842
|
+
session: "session";
|
|
10843
|
+
"ssh-key": "ssh-key";
|
|
10844
|
+
token: "token";
|
|
10845
|
+
}>;
|
|
10846
|
+
name: import("zod").ZodString;
|
|
10847
|
+
reason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10848
|
+
binding_changed: "binding_changed";
|
|
10849
|
+
id_changed: "id_changed";
|
|
10850
|
+
}>>;
|
|
10851
|
+
}, import("zod/v4/core").$strip>;
|
|
10852
|
+
};
|
|
10853
|
+
CONFLICT: {
|
|
10854
|
+
readonly message: "Already exists";
|
|
10855
|
+
readonly data: import("zod").ZodObject<{
|
|
10856
|
+
kind: import("zod").ZodEnum<{
|
|
10857
|
+
backup: "backup";
|
|
10858
|
+
checkpoint: "checkpoint";
|
|
10859
|
+
"database-copy": "database-copy";
|
|
10860
|
+
grant: "grant";
|
|
10861
|
+
image: "image";
|
|
10862
|
+
imp: "imp";
|
|
10863
|
+
network: "network";
|
|
10864
|
+
"oauth-client": "oauth-client";
|
|
10865
|
+
"oauth-grant": "oauth-grant";
|
|
10866
|
+
"oauth-passkey": "oauth-passkey";
|
|
10867
|
+
secret: "secret";
|
|
10868
|
+
service: "service";
|
|
10869
|
+
session: "session";
|
|
10870
|
+
"ssh-key": "ssh-key";
|
|
10871
|
+
token: "token";
|
|
10872
|
+
}>;
|
|
10873
|
+
name: import("zod").ZodString;
|
|
10874
|
+
reason: import("zod").ZodOptional<import("zod").ZodEnum<{
|
|
10875
|
+
binding_changed: "binding_changed";
|
|
10876
|
+
id_changed: "id_changed";
|
|
10877
|
+
}>>;
|
|
10878
|
+
}, import("zod/v4/core").$strip>;
|
|
10879
|
+
};
|
|
10880
|
+
FORBIDDEN: {
|
|
10881
|
+
readonly message: "Not allowed";
|
|
10882
|
+
readonly data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10883
|
+
reason: import("zod").ZodEnum<{
|
|
10884
|
+
imp_out_of_scope: "imp_out_of_scope";
|
|
10885
|
+
not_grantable: "not_grantable";
|
|
10886
|
+
scope: "scope";
|
|
10887
|
+
}>;
|
|
10888
|
+
}, import("zod/v4/core").$strip>>;
|
|
10889
|
+
};
|
|
10890
|
+
PRECONDITION_FAILED: {
|
|
10891
|
+
readonly message: "Not possible on this host";
|
|
10892
|
+
readonly data: import("zod").ZodOptional<import("zod").ZodObject<{
|
|
10893
|
+
reason: import("zod").ZodEnum<{
|
|
10894
|
+
broker_not_ready: "broker_not_ready";
|
|
10895
|
+
impd_outdated: "impd_outdated";
|
|
10896
|
+
}>;
|
|
10897
|
+
detail: import("zod").ZodString;
|
|
10898
|
+
}, import("zod/v4/core").$strip>>;
|
|
10899
|
+
};
|
|
10900
|
+
RAM_BUDGET_EXCEEDED: {
|
|
10901
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
10902
|
+
readonly status: 503;
|
|
10903
|
+
readonly data: import("zod").ZodObject<{
|
|
10904
|
+
budgetMib: import("zod").ZodInt;
|
|
10905
|
+
usedMib: import("zod").ZodInt;
|
|
10906
|
+
requestedMib: import("zod").ZodInt;
|
|
10907
|
+
neededMib: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
10908
|
+
protected: import("zod").ZodOptional<import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodObject<{
|
|
10909
|
+
name: import("zod").ZodString;
|
|
10910
|
+
ramMib: import("zod").ZodInt;
|
|
10911
|
+
leased: import("zod").ZodBoolean;
|
|
10912
|
+
busy: import("zod").ZodBoolean;
|
|
10913
|
+
}, import("zod/v4/core").$strip>>>>;
|
|
10914
|
+
protectedHidden: import("zod").ZodOptional<import("zod").ZodInt>;
|
|
10915
|
+
}, import("zod/v4/core").$strip>;
|
|
10916
|
+
};
|
|
10917
|
+
SERVICE_UNAVAILABLE: {
|
|
10918
|
+
readonly message: "impd is stopping";
|
|
10919
|
+
};
|
|
10920
|
+
INVALID_STATE: {
|
|
10921
|
+
readonly message: "The imp is not in a state that allows this";
|
|
10922
|
+
readonly status: 409;
|
|
10923
|
+
readonly data: import("zod").ZodObject<{
|
|
10924
|
+
state: import("zod").ZodEnum<{
|
|
10925
|
+
creating: "creating";
|
|
10926
|
+
error: "error";
|
|
10927
|
+
running: "running";
|
|
10928
|
+
sleeping: "sleeping";
|
|
10929
|
+
stopped: "stopped";
|
|
10930
|
+
}>;
|
|
10931
|
+
allowed: import("zod").ZodArray<import("zod").ZodEnum<{
|
|
10932
|
+
creating: "creating";
|
|
10933
|
+
error: "error";
|
|
10934
|
+
running: "running";
|
|
10935
|
+
sleeping: "sleeping";
|
|
10936
|
+
stopped: "stopped";
|
|
10937
|
+
}>>;
|
|
10938
|
+
coldBoots: import("zod").ZodOptional<import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodReadonly<import("zod").ZodObject<{
|
|
10939
|
+
bootId: import("zod").ZodString;
|
|
10940
|
+
cause: import("zod").ZodEnum<{
|
|
10941
|
+
recovery: "recovery";
|
|
10942
|
+
restore: "restore";
|
|
10943
|
+
start: "start";
|
|
10944
|
+
unknown: "unknown";
|
|
10945
|
+
wake_fallback: "wake_fallback";
|
|
10946
|
+
watchdog: "watchdog";
|
|
10947
|
+
}>;
|
|
10948
|
+
at: import("zod").ZodISODateTime;
|
|
10949
|
+
}, import("zod/v4/core").$strip>>>>>;
|
|
10950
|
+
}, import("zod/v4/core").$strip>;
|
|
10951
|
+
};
|
|
10952
|
+
INVALID_RESUME: {
|
|
10953
|
+
readonly message: "The resume offset is past the end of the output";
|
|
10954
|
+
readonly status: 409;
|
|
10955
|
+
readonly data: import("zod").ZodReadonly<import("zod").ZodObject<{
|
|
10956
|
+
end: import("zod").ZodInt;
|
|
10957
|
+
bufferStart: import("zod").ZodInt;
|
|
10958
|
+
}, import("zod/v4/core").$strip>>;
|
|
10959
|
+
};
|
|
10960
|
+
DISK_FULL: {
|
|
10961
|
+
readonly message: "Not enough free disk on the host";
|
|
10962
|
+
readonly status: 507;
|
|
10963
|
+
readonly data: import("zod").ZodObject<{
|
|
10964
|
+
availableBytes: import("zod").ZodInt;
|
|
10965
|
+
reserveBytes: import("zod").ZodInt;
|
|
10966
|
+
requestedBytes: import("zod").ZodInt;
|
|
10967
|
+
}, import("zod/v4/core").$strip>;
|
|
10968
|
+
};
|
|
10969
|
+
LEASED: {
|
|
10970
|
+
readonly message: "The imp is leased";
|
|
10971
|
+
readonly status: 409;
|
|
10972
|
+
readonly data: import("zod").ZodObject<{
|
|
10973
|
+
leases: import("zod").ZodReadonly<import("zod").ZodArray<import("zod").ZodObject<{
|
|
10974
|
+
name: import("zod").ZodString;
|
|
10975
|
+
owner: import("zod").ZodObject<{
|
|
10976
|
+
principal: import("zod").ZodString;
|
|
10977
|
+
display: import("zod").ZodString;
|
|
10978
|
+
label: import("zod").ZodString;
|
|
10979
|
+
}, import("zod/v4/core").$strip>;
|
|
10980
|
+
until: import("zod").ZodNullable<import("zod").ZodDate>;
|
|
10981
|
+
}, import("zod/v4/core").$strip>>>;
|
|
10982
|
+
otherCount: import("zod").ZodInt;
|
|
10983
|
+
}, import("zod/v4/core").$strip>;
|
|
10984
|
+
};
|
|
10985
|
+
LEASE_NOT_HELD: {
|
|
10986
|
+
readonly message: "The caller holds no such lease";
|
|
10987
|
+
readonly status: 409;
|
|
10988
|
+
};
|
|
10989
|
+
AGENT_OUTDATED: {
|
|
10990
|
+
readonly message: "The imp's agent is too old for this";
|
|
10991
|
+
readonly status: 409;
|
|
10992
|
+
};
|
|
10993
|
+
MOVING: {
|
|
10994
|
+
readonly message: "The imp is moving between hosts";
|
|
10995
|
+
readonly status: 409;
|
|
10996
|
+
readonly data: import("zod").ZodObject<{
|
|
10997
|
+
retryAfterS: import("zod").ZodInt;
|
|
10998
|
+
}, import("zod/v4/core").$strip>;
|
|
10999
|
+
};
|
|
11000
|
+
}>, ProcedureMeta & Record<never, never>>;
|
|
10621
11001
|
};
|
|
10622
11002
|
exec: {
|
|
10623
11003
|
ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<import("zod").ZodObject<{
|
|
@@ -17947,6 +18327,7 @@ declare const impContract: {
|
|
|
17947
18327
|
execDropSysAdmin: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17948
18328
|
guestScratch: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17949
18329
|
imagePins: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18330
|
+
imageAliases: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17950
18331
|
buildContextUpload: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17951
18332
|
destroyIdCheck: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
17952
18333
|
secretIdentity: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -18172,6 +18553,7 @@ declare const impContract: {
|
|
|
18172
18553
|
execDropSysAdmin: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18173
18554
|
guestScratch: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18174
18555
|
imagePins: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18556
|
+
imageAliases: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18175
18557
|
buildContextUpload: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18176
18558
|
destroyIdCheck: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
18177
18559
|
secretIdentity: import("zod").ZodOptional<import("zod").ZodBoolean>;
|
|
@@ -23251,6 +23633,7 @@ declare const SystemInfoSchema: z.ZodObject<{
|
|
|
23251
23633
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
23252
23634
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
23253
23635
|
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
23636
|
+
imageAliases: z.ZodOptional<z.ZodBoolean>;
|
|
23254
23637
|
buildContextUpload: z.ZodOptional<z.ZodBoolean>;
|
|
23255
23638
|
destroyIdCheck: z.ZodOptional<z.ZodBoolean>;
|
|
23256
23639
|
secretIdentity: z.ZodOptional<z.ZodBoolean>;
|
|
@@ -23302,6 +23685,7 @@ declare const SystemFeaturesInfoSchema: z.ZodObject<{
|
|
|
23302
23685
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
23303
23686
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
23304
23687
|
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
23688
|
+
imageAliases: z.ZodOptional<z.ZodBoolean>;
|
|
23305
23689
|
buildContextUpload: z.ZodOptional<z.ZodBoolean>;
|
|
23306
23690
|
destroyIdCheck: z.ZodOptional<z.ZodBoolean>;
|
|
23307
23691
|
secretIdentity: z.ZodOptional<z.ZodBoolean>;
|
package/dist/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { A as ExecRequirement, C as Image, D as DetachReason, E as ImpEvent, F as Checkpoint, I as ApiCall, M as ExecTool, N as ImageBuildPhase, O as EXEC_REQUIREMENTS, P as ImageBuildProgress, S as ImpContract, T as EventCursor, _ as Session, a as SystemFeaturesInfo, b as ImpState, c as SessionLogRead, d as InvalidResumeData, f as NoSessionData, g as SessionOutput, h as ResumeResult, i as Token, j as ExecStartMessageSchema, k as ExecAttachMessageSchema, l as ColdBoot, m as ResumeFrom, n as Scope, o as SystemInfo, p as PreviousGeneration, r as SshKey, s as SessionLog, t as Identity, u as ColdBootCause, w as TunnelListen, x as IMP_ERRORS, y as Imp } from "./index-
|
|
1
|
+
import { A as ExecRequirement, C as Image, D as DetachReason, E as ImpEvent, F as Checkpoint, I as ApiCall, M as ExecTool, N as ImageBuildPhase, O as EXEC_REQUIREMENTS, P as ImageBuildProgress, S as ImpContract, T as EventCursor, _ as Session, a as SystemFeaturesInfo, b as ImpState, c as SessionLogRead, d as InvalidResumeData, f as NoSessionData, g as SessionOutput, h as ResumeResult, i as Token, j as ExecStartMessageSchema, k as ExecAttachMessageSchema, l as ColdBoot, m as ResumeFrom, n as Scope, o as SystemInfo, p as PreviousGeneration, r as SshKey, s as SessionLog, t as Identity, u as ColdBootCause, w as TunnelListen, x as IMP_ERRORS, y as Imp } from "./index-Cj31-pVa.js";
|
|
2
2
|
import { ORPCError, isDefinedError, safe } from "@orpc/client";
|
|
3
3
|
import * as z from "zod";
|
|
4
4
|
import { ContractRouterClient } from "@orpc/contract";
|
package/dist/index.js
CHANGED
|
@@ -4,7 +4,7 @@ import * as z from "zod";
|
|
|
4
4
|
import { P, match } from "ts-pattern";
|
|
5
5
|
import pRetry, { AbortError } from "p-retry";
|
|
6
6
|
// src/features/check-server.ts
|
|
7
|
-
const CLIENT_VERSION = "7.
|
|
7
|
+
const CLIENT_VERSION = "7.8.1";
|
|
8
8
|
async function checkServer(rpc, options = {}) {
|
|
9
9
|
const signal = options.signal;
|
|
10
10
|
const callOptions = signal === void 0 ? {} : { signal };
|
|
@@ -908,6 +908,7 @@ const FEATURE_GAPS = {
|
|
|
908
908
|
execDropSysAdmin: "cannot drop CAP_SYS_ADMIN from a command",
|
|
909
909
|
guestScratch: "does not name the guest scratch folder",
|
|
910
910
|
imagePins: "has no image pins",
|
|
911
|
+
imageAliases: "has no image aliases",
|
|
911
912
|
buildContextUpload: "has no build context upload",
|
|
912
913
|
destroyIdCheck: "has no id check on destroy",
|
|
913
914
|
eventCursor: "has no event cursor",
|