@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.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.
|
|
6
|
+
const CLIENT_VERSION = "0.12.0";
|
|
7
7
|
async function checkServer(rpc) {
|
|
8
8
|
const info = await rpc.system.info();
|
|
9
9
|
return {
|
|
@@ -30,11 +30,13 @@ function parseVersion(version) {
|
|
|
30
30
|
const NameSchema = z.string().regex(/^[a-z][a-z0-9-]{0,30}$/, "must be a lowercase letter followed by up to 30 lowercase letters, digits or hyphens");
|
|
31
31
|
//#endregion
|
|
32
32
|
//#region ../api/src/image-schema.ts
|
|
33
|
+
const ImageSourceSchema = z.enum(["oci", "imp"]);
|
|
33
34
|
const ImageSchema = z.object({
|
|
34
35
|
id: z.string(),
|
|
35
36
|
name: NameSchema,
|
|
36
37
|
ref: z.string(),
|
|
37
38
|
digest: z.string(),
|
|
39
|
+
source: ImageSourceSchema,
|
|
38
40
|
createdAt: z.date(),
|
|
39
41
|
sizeBytes: z.int().nonnegative()
|
|
40
42
|
});
|
|
@@ -808,6 +810,7 @@ function createImpClient(options) {
|
|
|
808
810
|
images: rpc.images,
|
|
809
811
|
exec: rpc.exec,
|
|
810
812
|
sessions: rpc.sessions,
|
|
813
|
+
services: rpc.services,
|
|
811
814
|
secrets: rpc.secrets,
|
|
812
815
|
grants: rpc.grants,
|
|
813
816
|
audit: rpc.audit,
|