@embarkai/ui-kit 0.3.5 → 0.4.1

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.cts CHANGED
@@ -842,6 +842,18 @@ declare class IframeManager {
842
842
  * Returns encrypted data that parent can upload/download
843
843
  */
844
844
  encryptBackupData(userId: string, password?: string): Promise<any>;
845
+ /**
846
+ * Encrypt current keyshare as EnvelopeEncryptedShare (for Guardian backup)
847
+ */
848
+ encryptEnvelopeData(userId: string, password: string): Promise<string>;
849
+ /**
850
+ * Decrypt EnvelopeEncryptedShare and restore keyshare (for Guardian restore)
851
+ */
852
+ decryptAndRestoreEnvelope(userId: string, envelopeJson: string, password: string): Promise<{
853
+ success: boolean;
854
+ timestamp: number;
855
+ error?: string;
856
+ }>;
845
857
  /**
846
858
  * Restore keyshare from local file backup
847
859
  */
@@ -1023,7 +1035,11 @@ declare enum PageKey {
1023
1035
  KEYSHARE_RESTORE = "keyshare-restore",
1024
1036
  CHAIN = "chain",
1025
1037
  CHAIN_SWITCH_REQUEST = "chain-switch-request",
1026
- NICKNAME_SETTINGS = "nickname-settings"
1038
+ NICKNAME_SETTINGS = "nickname-settings",
1039
+ DEVICES = "devices",
1040
+ DEVICE_LINK = "device-link",
1041
+ DEVICE_MANAGE = "device-manage",
1042
+ DEVICE_RESTORE = "device-restore"
1027
1043
  }
1028
1044
  /** WIP: need to develop page options typeset, i.e options: AuthOpenOptions | BuyOpenOption etc */
1029
1045
  interface PageOpenParams {
package/dist/index.d.ts CHANGED
@@ -842,6 +842,18 @@ declare class IframeManager {
842
842
  * Returns encrypted data that parent can upload/download
843
843
  */
844
844
  encryptBackupData(userId: string, password?: string): Promise<any>;
845
+ /**
846
+ * Encrypt current keyshare as EnvelopeEncryptedShare (for Guardian backup)
847
+ */
848
+ encryptEnvelopeData(userId: string, password: string): Promise<string>;
849
+ /**
850
+ * Decrypt EnvelopeEncryptedShare and restore keyshare (for Guardian restore)
851
+ */
852
+ decryptAndRestoreEnvelope(userId: string, envelopeJson: string, password: string): Promise<{
853
+ success: boolean;
854
+ timestamp: number;
855
+ error?: string;
856
+ }>;
845
857
  /**
846
858
  * Restore keyshare from local file backup
847
859
  */
@@ -1023,7 +1035,11 @@ declare enum PageKey {
1023
1035
  KEYSHARE_RESTORE = "keyshare-restore",
1024
1036
  CHAIN = "chain",
1025
1037
  CHAIN_SWITCH_REQUEST = "chain-switch-request",
1026
- NICKNAME_SETTINGS = "nickname-settings"
1038
+ NICKNAME_SETTINGS = "nickname-settings",
1039
+ DEVICES = "devices",
1040
+ DEVICE_LINK = "device-link",
1041
+ DEVICE_MANAGE = "device-manage",
1042
+ DEVICE_RESTORE = "device-restore"
1027
1043
  }
1028
1044
  /** WIP: need to develop page options typeset, i.e options: AuthOpenOptions | BuyOpenOption etc */
1029
1045
  interface PageOpenParams {