@impz/client 2.8.3 → 2.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +388 -0
- package/dist/index.js +5 -3
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -511,6 +511,7 @@ declare const ImageSchema: z.ZodObject<{
|
|
|
511
511
|
}>;
|
|
512
512
|
createdAt: z.ZodDate;
|
|
513
513
|
sizeBytes: z.ZodInt;
|
|
514
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
514
515
|
}, z.core.$strip>;
|
|
515
516
|
type Image = z.infer<typeof ImageSchema>;
|
|
516
517
|
//#endregion
|
|
@@ -8695,6 +8696,7 @@ declare const impContract: {
|
|
|
8695
8696
|
}>;
|
|
8696
8697
|
createdAt: z.ZodDate;
|
|
8697
8698
|
sizeBytes: z.ZodInt;
|
|
8699
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
8698
8700
|
}, z.core.$strip>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
8699
8701
|
NOT_FOUND: {
|
|
8700
8702
|
readonly message: "Not found";
|
|
@@ -8886,6 +8888,7 @@ declare const impContract: {
|
|
|
8886
8888
|
}>;
|
|
8887
8889
|
createdAt: z.ZodDate;
|
|
8888
8890
|
sizeBytes: z.ZodInt;
|
|
8891
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
8889
8892
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
8890
8893
|
NOT_FOUND: {
|
|
8891
8894
|
readonly message: "Not found";
|
|
@@ -9076,6 +9079,7 @@ declare const impContract: {
|
|
|
9076
9079
|
}>;
|
|
9077
9080
|
createdAt: z.ZodDate;
|
|
9078
9081
|
sizeBytes: z.ZodInt;
|
|
9082
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
9079
9083
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9080
9084
|
NOT_FOUND: {
|
|
9081
9085
|
readonly message: "Not found";
|
|
@@ -9274,6 +9278,7 @@ declare const impContract: {
|
|
|
9274
9278
|
source: "imp" | "oci";
|
|
9275
9279
|
createdAt: Date;
|
|
9276
9280
|
sizeBytes: number;
|
|
9281
|
+
pinned?: boolean | undefined;
|
|
9277
9282
|
};
|
|
9278
9283
|
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
9279
9284
|
type: "progress";
|
|
@@ -9293,6 +9298,7 @@ declare const impContract: {
|
|
|
9293
9298
|
source: "imp" | "oci";
|
|
9294
9299
|
createdAt: Date;
|
|
9295
9300
|
sizeBytes: number;
|
|
9301
|
+
pinned: boolean;
|
|
9296
9302
|
};
|
|
9297
9303
|
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9298
9304
|
NOT_FOUND: {
|
|
@@ -9491,6 +9497,7 @@ declare const impContract: {
|
|
|
9491
9497
|
source: "imp" | "oci";
|
|
9492
9498
|
createdAt: Date;
|
|
9493
9499
|
sizeBytes: number;
|
|
9500
|
+
pinned?: boolean | undefined;
|
|
9494
9501
|
};
|
|
9495
9502
|
}, unknown, void>, import("@orpc/client").AsyncIteratorClass<{
|
|
9496
9503
|
type: "progress";
|
|
@@ -9510,6 +9517,7 @@ declare const impContract: {
|
|
|
9510
9517
|
source: "imp" | "oci";
|
|
9511
9518
|
createdAt: Date;
|
|
9512
9519
|
sizeBytes: number;
|
|
9520
|
+
pinned: boolean;
|
|
9513
9521
|
};
|
|
9514
9522
|
}, unknown, void>>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
9515
9523
|
NOT_FOUND: {
|
|
@@ -10052,6 +10060,382 @@ declare const impContract: {
|
|
|
10052
10060
|
}, z.core.$strip>;
|
|
10053
10061
|
};
|
|
10054
10062
|
}>, Record<never, never>>;
|
|
10063
|
+
pin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
10064
|
+
name: z.ZodString;
|
|
10065
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10066
|
+
id: z.ZodString;
|
|
10067
|
+
name: z.ZodString;
|
|
10068
|
+
ref: z.ZodString;
|
|
10069
|
+
digest: z.ZodString;
|
|
10070
|
+
source: z.ZodEnum<{
|
|
10071
|
+
imp: "imp";
|
|
10072
|
+
oci: "oci";
|
|
10073
|
+
}>;
|
|
10074
|
+
createdAt: z.ZodDate;
|
|
10075
|
+
sizeBytes: z.ZodInt;
|
|
10076
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
10077
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10078
|
+
NOT_FOUND: {
|
|
10079
|
+
readonly message: "Not found";
|
|
10080
|
+
readonly data: z.ZodObject<{
|
|
10081
|
+
kind: z.ZodEnum<{
|
|
10082
|
+
backup: "backup";
|
|
10083
|
+
checkpoint: "checkpoint";
|
|
10084
|
+
"database-copy": "database-copy";
|
|
10085
|
+
grant: "grant";
|
|
10086
|
+
image: "image";
|
|
10087
|
+
imp: "imp";
|
|
10088
|
+
network: "network";
|
|
10089
|
+
"oauth-approval": "oauth-approval";
|
|
10090
|
+
"oauth-client": "oauth-client";
|
|
10091
|
+
"oauth-grant": "oauth-grant";
|
|
10092
|
+
secret: "secret";
|
|
10093
|
+
service: "service";
|
|
10094
|
+
session: "session";
|
|
10095
|
+
"ssh-key": "ssh-key";
|
|
10096
|
+
token: "token";
|
|
10097
|
+
}>;
|
|
10098
|
+
name: z.ZodString;
|
|
10099
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
10100
|
+
binding_changed: "binding_changed";
|
|
10101
|
+
}>>;
|
|
10102
|
+
}, z.core.$strip>;
|
|
10103
|
+
};
|
|
10104
|
+
CONFLICT: {
|
|
10105
|
+
readonly message: "Already exists";
|
|
10106
|
+
readonly data: z.ZodObject<{
|
|
10107
|
+
kind: z.ZodEnum<{
|
|
10108
|
+
backup: "backup";
|
|
10109
|
+
checkpoint: "checkpoint";
|
|
10110
|
+
"database-copy": "database-copy";
|
|
10111
|
+
grant: "grant";
|
|
10112
|
+
image: "image";
|
|
10113
|
+
imp: "imp";
|
|
10114
|
+
network: "network";
|
|
10115
|
+
"oauth-approval": "oauth-approval";
|
|
10116
|
+
"oauth-client": "oauth-client";
|
|
10117
|
+
"oauth-grant": "oauth-grant";
|
|
10118
|
+
secret: "secret";
|
|
10119
|
+
service: "service";
|
|
10120
|
+
session: "session";
|
|
10121
|
+
"ssh-key": "ssh-key";
|
|
10122
|
+
token: "token";
|
|
10123
|
+
}>;
|
|
10124
|
+
name: z.ZodString;
|
|
10125
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
10126
|
+
binding_changed: "binding_changed";
|
|
10127
|
+
}>>;
|
|
10128
|
+
}, z.core.$strip>;
|
|
10129
|
+
};
|
|
10130
|
+
FORBIDDEN: {
|
|
10131
|
+
readonly message: "Not allowed";
|
|
10132
|
+
readonly data: z.ZodOptional<z.ZodObject<{
|
|
10133
|
+
reason: z.ZodEnum<{
|
|
10134
|
+
imp_out_of_scope: "imp_out_of_scope";
|
|
10135
|
+
not_grantable: "not_grantable";
|
|
10136
|
+
scope: "scope";
|
|
10137
|
+
}>;
|
|
10138
|
+
}, z.core.$strip>>;
|
|
10139
|
+
};
|
|
10140
|
+
PRECONDITION_FAILED: {
|
|
10141
|
+
readonly message: "Not possible on this host";
|
|
10142
|
+
readonly data: z.ZodOptional<z.ZodObject<{
|
|
10143
|
+
reason: z.ZodEnum<{
|
|
10144
|
+
broker_not_ready: "broker_not_ready";
|
|
10145
|
+
impd_outdated: "impd_outdated";
|
|
10146
|
+
}>;
|
|
10147
|
+
detail: z.ZodString;
|
|
10148
|
+
}, z.core.$strip>>;
|
|
10149
|
+
};
|
|
10150
|
+
RAM_BUDGET_EXCEEDED: {
|
|
10151
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
10152
|
+
readonly status: 503;
|
|
10153
|
+
readonly data: z.ZodObject<{
|
|
10154
|
+
budgetMib: z.ZodInt;
|
|
10155
|
+
usedMib: z.ZodInt;
|
|
10156
|
+
requestedMib: z.ZodInt;
|
|
10157
|
+
neededMib: z.ZodOptional<z.ZodInt>;
|
|
10158
|
+
protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
10159
|
+
name: z.ZodString;
|
|
10160
|
+
ramMib: z.ZodInt;
|
|
10161
|
+
leased: z.ZodBoolean;
|
|
10162
|
+
busy: z.ZodBoolean;
|
|
10163
|
+
}, z.core.$strip>>>>;
|
|
10164
|
+
protectedHidden: z.ZodOptional<z.ZodInt>;
|
|
10165
|
+
}, z.core.$strip>;
|
|
10166
|
+
};
|
|
10167
|
+
SERVICE_UNAVAILABLE: {
|
|
10168
|
+
readonly message: "impd is stopping";
|
|
10169
|
+
};
|
|
10170
|
+
INVALID_STATE: {
|
|
10171
|
+
readonly message: "The imp is not in a state that allows this";
|
|
10172
|
+
readonly status: 409;
|
|
10173
|
+
readonly data: z.ZodObject<{
|
|
10174
|
+
state: z.ZodEnum<{
|
|
10175
|
+
creating: "creating";
|
|
10176
|
+
error: "error";
|
|
10177
|
+
running: "running";
|
|
10178
|
+
sleeping: "sleeping";
|
|
10179
|
+
stopped: "stopped";
|
|
10180
|
+
}>;
|
|
10181
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
10182
|
+
creating: "creating";
|
|
10183
|
+
error: "error";
|
|
10184
|
+
running: "running";
|
|
10185
|
+
sleeping: "sleeping";
|
|
10186
|
+
stopped: "stopped";
|
|
10187
|
+
}>>;
|
|
10188
|
+
coldBoots: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
10189
|
+
bootId: z.ZodString;
|
|
10190
|
+
cause: z.ZodEnum<{
|
|
10191
|
+
recovery: "recovery";
|
|
10192
|
+
restore: "restore";
|
|
10193
|
+
start: "start";
|
|
10194
|
+
unknown: "unknown";
|
|
10195
|
+
wake_fallback: "wake_fallback";
|
|
10196
|
+
watchdog: "watchdog";
|
|
10197
|
+
}>;
|
|
10198
|
+
at: z.ZodISODateTime;
|
|
10199
|
+
}, z.core.$strip>>>>>;
|
|
10200
|
+
}, z.core.$strip>;
|
|
10201
|
+
};
|
|
10202
|
+
INVALID_RESUME: {
|
|
10203
|
+
readonly message: "The resume offset is past the end of the output";
|
|
10204
|
+
readonly status: 409;
|
|
10205
|
+
readonly data: z.ZodReadonly<z.ZodObject<{
|
|
10206
|
+
end: z.ZodInt;
|
|
10207
|
+
bufferStart: z.ZodInt;
|
|
10208
|
+
}, z.core.$strip>>;
|
|
10209
|
+
};
|
|
10210
|
+
DISK_FULL: {
|
|
10211
|
+
readonly message: "Not enough free disk on the host";
|
|
10212
|
+
readonly status: 507;
|
|
10213
|
+
readonly data: z.ZodObject<{
|
|
10214
|
+
availableBytes: z.ZodInt;
|
|
10215
|
+
reserveBytes: z.ZodInt;
|
|
10216
|
+
requestedBytes: z.ZodInt;
|
|
10217
|
+
}, z.core.$strip>;
|
|
10218
|
+
};
|
|
10219
|
+
LEASED: {
|
|
10220
|
+
readonly message: "The imp is leased";
|
|
10221
|
+
readonly status: 409;
|
|
10222
|
+
readonly data: z.ZodObject<{
|
|
10223
|
+
leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
10224
|
+
name: z.ZodString;
|
|
10225
|
+
owner: z.ZodObject<{
|
|
10226
|
+
principal: z.ZodString;
|
|
10227
|
+
display: z.ZodString;
|
|
10228
|
+
label: z.ZodString;
|
|
10229
|
+
}, z.core.$strip>;
|
|
10230
|
+
until: z.ZodNullable<z.ZodDate>;
|
|
10231
|
+
}, z.core.$strip>>>;
|
|
10232
|
+
otherCount: z.ZodInt;
|
|
10233
|
+
}, z.core.$strip>;
|
|
10234
|
+
};
|
|
10235
|
+
LEASE_NOT_HELD: {
|
|
10236
|
+
readonly message: "The caller holds no such lease";
|
|
10237
|
+
readonly status: 409;
|
|
10238
|
+
};
|
|
10239
|
+
AGENT_OUTDATED: {
|
|
10240
|
+
readonly message: "The imp's agent is too old for this";
|
|
10241
|
+
readonly status: 409;
|
|
10242
|
+
};
|
|
10243
|
+
MOVING: {
|
|
10244
|
+
readonly message: "The imp is moving between hosts";
|
|
10245
|
+
readonly status: 409;
|
|
10246
|
+
readonly data: z.ZodObject<{
|
|
10247
|
+
retryAfterS: z.ZodInt;
|
|
10248
|
+
}, z.core.$strip>;
|
|
10249
|
+
};
|
|
10250
|
+
}>, Record<never, never>>;
|
|
10251
|
+
unpin: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
10252
|
+
name: z.ZodString;
|
|
10253
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
10254
|
+
id: z.ZodString;
|
|
10255
|
+
name: z.ZodString;
|
|
10256
|
+
ref: z.ZodString;
|
|
10257
|
+
digest: z.ZodString;
|
|
10258
|
+
source: z.ZodEnum<{
|
|
10259
|
+
imp: "imp";
|
|
10260
|
+
oci: "oci";
|
|
10261
|
+
}>;
|
|
10262
|
+
createdAt: z.ZodDate;
|
|
10263
|
+
sizeBytes: z.ZodInt;
|
|
10264
|
+
pinned: z.ZodDefault<z.ZodBoolean>;
|
|
10265
|
+
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
10266
|
+
NOT_FOUND: {
|
|
10267
|
+
readonly message: "Not found";
|
|
10268
|
+
readonly data: z.ZodObject<{
|
|
10269
|
+
kind: z.ZodEnum<{
|
|
10270
|
+
backup: "backup";
|
|
10271
|
+
checkpoint: "checkpoint";
|
|
10272
|
+
"database-copy": "database-copy";
|
|
10273
|
+
grant: "grant";
|
|
10274
|
+
image: "image";
|
|
10275
|
+
imp: "imp";
|
|
10276
|
+
network: "network";
|
|
10277
|
+
"oauth-approval": "oauth-approval";
|
|
10278
|
+
"oauth-client": "oauth-client";
|
|
10279
|
+
"oauth-grant": "oauth-grant";
|
|
10280
|
+
secret: "secret";
|
|
10281
|
+
service: "service";
|
|
10282
|
+
session: "session";
|
|
10283
|
+
"ssh-key": "ssh-key";
|
|
10284
|
+
token: "token";
|
|
10285
|
+
}>;
|
|
10286
|
+
name: z.ZodString;
|
|
10287
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
10288
|
+
binding_changed: "binding_changed";
|
|
10289
|
+
}>>;
|
|
10290
|
+
}, z.core.$strip>;
|
|
10291
|
+
};
|
|
10292
|
+
CONFLICT: {
|
|
10293
|
+
readonly message: "Already exists";
|
|
10294
|
+
readonly data: z.ZodObject<{
|
|
10295
|
+
kind: z.ZodEnum<{
|
|
10296
|
+
backup: "backup";
|
|
10297
|
+
checkpoint: "checkpoint";
|
|
10298
|
+
"database-copy": "database-copy";
|
|
10299
|
+
grant: "grant";
|
|
10300
|
+
image: "image";
|
|
10301
|
+
imp: "imp";
|
|
10302
|
+
network: "network";
|
|
10303
|
+
"oauth-approval": "oauth-approval";
|
|
10304
|
+
"oauth-client": "oauth-client";
|
|
10305
|
+
"oauth-grant": "oauth-grant";
|
|
10306
|
+
secret: "secret";
|
|
10307
|
+
service: "service";
|
|
10308
|
+
session: "session";
|
|
10309
|
+
"ssh-key": "ssh-key";
|
|
10310
|
+
token: "token";
|
|
10311
|
+
}>;
|
|
10312
|
+
name: z.ZodString;
|
|
10313
|
+
reason: z.ZodOptional<z.ZodEnum<{
|
|
10314
|
+
binding_changed: "binding_changed";
|
|
10315
|
+
}>>;
|
|
10316
|
+
}, z.core.$strip>;
|
|
10317
|
+
};
|
|
10318
|
+
FORBIDDEN: {
|
|
10319
|
+
readonly message: "Not allowed";
|
|
10320
|
+
readonly data: z.ZodOptional<z.ZodObject<{
|
|
10321
|
+
reason: z.ZodEnum<{
|
|
10322
|
+
imp_out_of_scope: "imp_out_of_scope";
|
|
10323
|
+
not_grantable: "not_grantable";
|
|
10324
|
+
scope: "scope";
|
|
10325
|
+
}>;
|
|
10326
|
+
}, z.core.$strip>>;
|
|
10327
|
+
};
|
|
10328
|
+
PRECONDITION_FAILED: {
|
|
10329
|
+
readonly message: "Not possible on this host";
|
|
10330
|
+
readonly data: z.ZodOptional<z.ZodObject<{
|
|
10331
|
+
reason: z.ZodEnum<{
|
|
10332
|
+
broker_not_ready: "broker_not_ready";
|
|
10333
|
+
impd_outdated: "impd_outdated";
|
|
10334
|
+
}>;
|
|
10335
|
+
detail: z.ZodString;
|
|
10336
|
+
}, z.core.$strip>>;
|
|
10337
|
+
};
|
|
10338
|
+
RAM_BUDGET_EXCEEDED: {
|
|
10339
|
+
readonly message: "Not enough RAM budget, even after sleeping idle imps";
|
|
10340
|
+
readonly status: 503;
|
|
10341
|
+
readonly data: z.ZodObject<{
|
|
10342
|
+
budgetMib: z.ZodInt;
|
|
10343
|
+
usedMib: z.ZodInt;
|
|
10344
|
+
requestedMib: z.ZodInt;
|
|
10345
|
+
neededMib: z.ZodOptional<z.ZodInt>;
|
|
10346
|
+
protected: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
10347
|
+
name: z.ZodString;
|
|
10348
|
+
ramMib: z.ZodInt;
|
|
10349
|
+
leased: z.ZodBoolean;
|
|
10350
|
+
busy: z.ZodBoolean;
|
|
10351
|
+
}, z.core.$strip>>>>;
|
|
10352
|
+
protectedHidden: z.ZodOptional<z.ZodInt>;
|
|
10353
|
+
}, z.core.$strip>;
|
|
10354
|
+
};
|
|
10355
|
+
SERVICE_UNAVAILABLE: {
|
|
10356
|
+
readonly message: "impd is stopping";
|
|
10357
|
+
};
|
|
10358
|
+
INVALID_STATE: {
|
|
10359
|
+
readonly message: "The imp is not in a state that allows this";
|
|
10360
|
+
readonly status: 409;
|
|
10361
|
+
readonly data: z.ZodObject<{
|
|
10362
|
+
state: z.ZodEnum<{
|
|
10363
|
+
creating: "creating";
|
|
10364
|
+
error: "error";
|
|
10365
|
+
running: "running";
|
|
10366
|
+
sleeping: "sleeping";
|
|
10367
|
+
stopped: "stopped";
|
|
10368
|
+
}>;
|
|
10369
|
+
allowed: z.ZodArray<z.ZodEnum<{
|
|
10370
|
+
creating: "creating";
|
|
10371
|
+
error: "error";
|
|
10372
|
+
running: "running";
|
|
10373
|
+
sleeping: "sleeping";
|
|
10374
|
+
stopped: "stopped";
|
|
10375
|
+
}>>;
|
|
10376
|
+
coldBoots: z.ZodOptional<z.ZodReadonly<z.ZodArray<z.ZodReadonly<z.ZodObject<{
|
|
10377
|
+
bootId: z.ZodString;
|
|
10378
|
+
cause: z.ZodEnum<{
|
|
10379
|
+
recovery: "recovery";
|
|
10380
|
+
restore: "restore";
|
|
10381
|
+
start: "start";
|
|
10382
|
+
unknown: "unknown";
|
|
10383
|
+
wake_fallback: "wake_fallback";
|
|
10384
|
+
watchdog: "watchdog";
|
|
10385
|
+
}>;
|
|
10386
|
+
at: z.ZodISODateTime;
|
|
10387
|
+
}, z.core.$strip>>>>>;
|
|
10388
|
+
}, z.core.$strip>;
|
|
10389
|
+
};
|
|
10390
|
+
INVALID_RESUME: {
|
|
10391
|
+
readonly message: "The resume offset is past the end of the output";
|
|
10392
|
+
readonly status: 409;
|
|
10393
|
+
readonly data: z.ZodReadonly<z.ZodObject<{
|
|
10394
|
+
end: z.ZodInt;
|
|
10395
|
+
bufferStart: z.ZodInt;
|
|
10396
|
+
}, z.core.$strip>>;
|
|
10397
|
+
};
|
|
10398
|
+
DISK_FULL: {
|
|
10399
|
+
readonly message: "Not enough free disk on the host";
|
|
10400
|
+
readonly status: 507;
|
|
10401
|
+
readonly data: z.ZodObject<{
|
|
10402
|
+
availableBytes: z.ZodInt;
|
|
10403
|
+
reserveBytes: z.ZodInt;
|
|
10404
|
+
requestedBytes: z.ZodInt;
|
|
10405
|
+
}, z.core.$strip>;
|
|
10406
|
+
};
|
|
10407
|
+
LEASED: {
|
|
10408
|
+
readonly message: "The imp is leased";
|
|
10409
|
+
readonly status: 409;
|
|
10410
|
+
readonly data: z.ZodObject<{
|
|
10411
|
+
leases: z.ZodReadonly<z.ZodArray<z.ZodObject<{
|
|
10412
|
+
name: z.ZodString;
|
|
10413
|
+
owner: z.ZodObject<{
|
|
10414
|
+
principal: z.ZodString;
|
|
10415
|
+
display: z.ZodString;
|
|
10416
|
+
label: z.ZodString;
|
|
10417
|
+
}, z.core.$strip>;
|
|
10418
|
+
until: z.ZodNullable<z.ZodDate>;
|
|
10419
|
+
}, z.core.$strip>>>;
|
|
10420
|
+
otherCount: z.ZodInt;
|
|
10421
|
+
}, z.core.$strip>;
|
|
10422
|
+
};
|
|
10423
|
+
LEASE_NOT_HELD: {
|
|
10424
|
+
readonly message: "The caller holds no such lease";
|
|
10425
|
+
readonly status: 409;
|
|
10426
|
+
};
|
|
10427
|
+
AGENT_OUTDATED: {
|
|
10428
|
+
readonly message: "The imp's agent is too old for this";
|
|
10429
|
+
readonly status: 409;
|
|
10430
|
+
};
|
|
10431
|
+
MOVING: {
|
|
10432
|
+
readonly message: "The imp is moving between hosts";
|
|
10433
|
+
readonly status: 409;
|
|
10434
|
+
readonly data: z.ZodObject<{
|
|
10435
|
+
retryAfterS: z.ZodInt;
|
|
10436
|
+
}, z.core.$strip>;
|
|
10437
|
+
};
|
|
10438
|
+
}>, Record<never, never>>;
|
|
10055
10439
|
};
|
|
10056
10440
|
exec: {
|
|
10057
10441
|
ticket: import("@orpc/contract").ContractProcedureBuilderWithInputOutput<z.ZodObject<{
|
|
@@ -16603,6 +16987,7 @@ declare const impContract: {
|
|
|
16603
16987
|
readOnlyFiles: z.ZodOptional<z.ZodBoolean>;
|
|
16604
16988
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
16605
16989
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
16990
|
+
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
16606
16991
|
}, z.core.$strip>>;
|
|
16607
16992
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
16608
16993
|
NOT_FOUND: {
|
|
@@ -16804,6 +17189,7 @@ declare const impContract: {
|
|
|
16804
17189
|
readOnlyFiles: z.ZodOptional<z.ZodBoolean>;
|
|
16805
17190
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
16806
17191
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
17192
|
+
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
16807
17193
|
}, z.core.$strip>;
|
|
16808
17194
|
}, z.core.$strip>, import("@orpc/contract").MergedErrorMap<Record<never, never>, {
|
|
16809
17195
|
NOT_FOUND: {
|
|
@@ -20748,6 +21134,7 @@ declare const SystemInfoSchema: z.ZodObject<{
|
|
|
20748
21134
|
readOnlyFiles: z.ZodOptional<z.ZodBoolean>;
|
|
20749
21135
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
20750
21136
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
21137
|
+
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
20751
21138
|
}, z.core.$strip>>;
|
|
20752
21139
|
}, z.core.$strip>;
|
|
20753
21140
|
type SystemInfo = z.infer<typeof SystemInfoSchema>;
|
|
@@ -20777,6 +21164,7 @@ declare const SystemFeaturesInfoSchema: z.ZodObject<{
|
|
|
20777
21164
|
readOnlyFiles: z.ZodOptional<z.ZodBoolean>;
|
|
20778
21165
|
execDropSysAdmin: z.ZodOptional<z.ZodBoolean>;
|
|
20779
21166
|
guestScratch: z.ZodOptional<z.ZodBoolean>;
|
|
21167
|
+
imagePins: z.ZodOptional<z.ZodBoolean>;
|
|
20780
21168
|
}, z.core.$strip>;
|
|
20781
21169
|
}, z.core.$strip>;
|
|
20782
21170
|
type SystemFeaturesInfo = z.infer<typeof SystemFeaturesInfoSchema>;
|
package/dist/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import { P, match } from "ts-pattern";
|
|
|
5
5
|
import pRetry, { AbortError } from "p-retry";
|
|
6
6
|
//#endregion
|
|
7
7
|
//#region src/check-server.ts
|
|
8
|
-
const CLIENT_VERSION = "2.
|
|
8
|
+
const CLIENT_VERSION = "2.10.0";
|
|
9
9
|
async function checkServer(rpc, options = {}) {
|
|
10
10
|
const signal = options.signal;
|
|
11
11
|
const callOptions = signal === void 0 ? {} : { signal };
|
|
@@ -59,7 +59,8 @@ const ImageSchema = z.object({
|
|
|
59
59
|
digest: z.string(),
|
|
60
60
|
source: ImageSourceSchema,
|
|
61
61
|
createdAt: z.date(),
|
|
62
|
-
sizeBytes: z.int().nonnegative()
|
|
62
|
+
sizeBytes: z.int().nonnegative(),
|
|
63
|
+
pinned: z.boolean().default(false)
|
|
63
64
|
});
|
|
64
65
|
//#endregion
|
|
65
66
|
//#region ../api/src/protocols/image-build-protocol.ts
|
|
@@ -899,7 +900,8 @@ const FEATURE_GAPS = {
|
|
|
899
900
|
grantFilters: "has no grant filters",
|
|
900
901
|
readOnlyFiles: "has no read-only files",
|
|
901
902
|
execDropSysAdmin: "cannot drop CAP_SYS_ADMIN from a command",
|
|
902
|
-
guestScratch: "does not name the guest scratch folder"
|
|
903
|
+
guestScratch: "does not name the guest scratch folder",
|
|
904
|
+
imagePins: "has no image pins"
|
|
903
905
|
};
|
|
904
906
|
var MissingFeatureError = class extends Error {
|
|
905
907
|
name = "MissingFeatureError";
|