@zgeoff/imp-client 0.10.0 → 0.13.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 +1348 -176
- 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.13.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
|
});
|
|
@@ -810,6 +812,7 @@ function createImpClient(options) {
|
|
|
810
812
|
sessions: rpc.sessions,
|
|
811
813
|
services: rpc.services,
|
|
812
814
|
secrets: rpc.secrets,
|
|
815
|
+
networks: rpc.networks,
|
|
813
816
|
grants: rpc.grants,
|
|
814
817
|
audit: rpc.audit,
|
|
815
818
|
events: rpc.events,
|