From da383b4b7b00e89fc464ecbef39e2b8181cea007 Mon Sep 17 00:00:00 2001 From: Dawid Urbas Date: Wed, 24 Apr 2024 18:54:15 +0200 Subject: [PATCH] Fix required properties for client --- holo-key-manager-extension/static/manifest.json | 2 +- holo-key-manager-js-client/package.json | 2 +- holo-key-manager-js-client/src/types.ts | 4 ++-- shared/types/message.ts | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/holo-key-manager-extension/static/manifest.json b/holo-key-manager-extension/static/manifest.json index 8589457..f53ecc0 100644 --- a/holo-key-manager-extension/static/manifest.json +++ b/holo-key-manager-extension/static/manifest.json @@ -1,7 +1,7 @@ { "name": "Holo key manager", "description": "A browser extension to manage holo keys", - "version": "0.0.50", + "version": "0.0.51", "manifest_version": 3, "action": { "default_title": "Holo key manager", diff --git a/holo-key-manager-js-client/package.json b/holo-key-manager-js-client/package.json index 3290fbb..4fe9aa3 100644 --- a/holo-key-manager-js-client/package.json +++ b/holo-key-manager-js-client/package.json @@ -1,6 +1,6 @@ { "name": "@holo-host/holo-key-manager-js-client", - "version": "0.0.3", + "version": "0.0.4", "description": "A JavaScript client API for managing Holo keys", "main": "lib/index.js", "types": "lib/holo-key-manager-js-client/src/index.d.ts", diff --git a/holo-key-manager-js-client/src/types.ts b/holo-key-manager-js-client/src/types.ts index feb02ca..a774e49 100644 --- a/holo-key-manager-js-client/src/types.ts +++ b/holo-key-manager-js-client/src/types.ts @@ -1,8 +1,8 @@ type HoloKeyManagerConfig = { happId: string; happName: string; - happLogo: string; - happUiUrl: string; + happLogo?: string; + happUiUrl?: string; requireRegistrationCode: boolean; requireEmail: boolean; }; diff --git a/shared/types/message.ts b/shared/types/message.ts index 14b590e..46c46db 100644 --- a/shared/types/message.ts +++ b/shared/types/message.ts @@ -45,8 +45,8 @@ export type PubKey = z.infer; const HoloKeyManagerConfigSchema = HappIdSchema.extend({ happName: z.string(), - happLogo: z.string(), - happUiUrl: z.string(), + happLogo: z.string().optional(), + happUiUrl: z.string().optional(), requireRegistrationCode: z.boolean(), requireEmail: z.boolean() });