From b4a27be783327c73dd186d6c69fb071c134dad58 Mon Sep 17 00:00:00 2001 From: Marcus Puchalla Date: Tue, 14 Nov 2023 16:41:00 +0100 Subject: [PATCH] feat: Add more info on wallet platform With this new information it will be possible to tell that DApp on which device the wallet is running and in which mode. --- src/types.ts | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/types.ts b/src/types.ts index 7bd156f..03a6d26 100644 --- a/src/types.ts +++ b/src/types.ts @@ -33,6 +33,17 @@ export type Cip30DataSignature = { signature: CoseSign1CborHex; }; +export type deviceType = 'mobile' | 'desktop' +export type mobileOsType = 'ios' | 'android' +export type appType = 'browser' | 'pwa' | 'native' + +export type osInfo = { + deviceType: deviceType, + mobileOsType?: mobileOsType, + mobileType?: appType, + url?: String +} + export type PeerConnectApi = { apiVersion: string; name: string; @@ -75,6 +86,7 @@ export interface IWalletInfo { version: string; icon: string; requestAutoconnect?: boolean; + osInfo?: osInfo } export interface DAppPeerConnectParameters {