@onekeyfe/hd-transport 1.2.0-alpha.16 → 1.2.0-alpha.17

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.
@@ -2191,8 +2191,6 @@ export type UnLockDeviceResponse = {
2191
2191
  };
2192
2192
  export type GetPassphraseState = {
2193
2193
  passphrase_state?: string;
2194
- _only_main_pin?: boolean;
2195
- allow_create_attach_pin?: boolean;
2196
2194
  };
2197
2195
  export type PassphraseState = {
2198
2196
  passphrase_state?: string;
@@ -3704,8 +3702,22 @@ export type ProtocolV2DeviceInfo = {
3704
3702
  se4?: DeviceSEInfo;
3705
3703
  status?: DeviceStatus;
3706
3704
  };
3707
- export type DeviceSessionGet = {
3708
- session_id?: string;
3705
+ export type DeviceSessionResume = {
3706
+ session_id: string;
3707
+ };
3708
+ export type DeviceHostPassphrase = {
3709
+ passphrase: string;
3710
+ };
3711
+ export type DevicePassphraseOnDevice = {};
3712
+ export type DeviceAttachPinOnDevice = {};
3713
+ export type DeviceWalletSelect = {
3714
+ host_passphrase?: DeviceHostPassphrase;
3715
+ passphrase_on_device?: DevicePassphraseOnDevice;
3716
+ attach_pin_on_device?: DeviceAttachPinOnDevice;
3717
+ };
3718
+ export type DeviceSessionOpen = {
3719
+ resume?: DeviceSessionResume;
3720
+ select?: DeviceWalletSelect;
3709
3721
  };
3710
3722
  export type DeviceSession = {
3711
3723
  session_id?: string;
@@ -3725,26 +3737,52 @@ export type DeviceStatus = {
3725
3737
  unlocked_by_attach_to_pin?: boolean;
3726
3738
  };
3727
3739
  export type DeviceStatusGet = {};
3728
- export declare enum DevOnboardingStage {
3729
- DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3730
- DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3731
- DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3732
- DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3733
- DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3734
- DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3735
- DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3736
- DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3737
- DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3738
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3739
- DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3740
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3741
- DEV_ONBOARDING_STAGE_DONE = 12
3740
+ export declare enum DevOnboardingStep {
3741
+ DEV_ONBOARDING_STEP_UNKNOWN = 0,
3742
+ DEV_ONBOARDING_STEP_CHECKING = 1,
3743
+ DEV_ONBOARDING_STEP_PERSONALIZATION = 2,
3744
+ DEV_ONBOARDING_STEP_PIN = 3,
3745
+ DEV_ONBOARDING_STEP_SETUP = 4,
3746
+ DEV_ONBOARDING_STEP_DONE = 5
3742
3747
  }
3748
+ export declare enum DevOnboardingPhase {
3749
+ DEV_ONBOARDING_PHASE_UNKNOWN = 0,
3750
+ DEV_ONBOARDING_PHASE_SAFETY_CHECK = 1,
3751
+ DEV_ONBOARDING_PHASE_PIN_SETUP = 2,
3752
+ DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
3753
+ DEV_ONBOARDING_PHASE_SETUP_CHOICE = 4,
3754
+ DEV_ONBOARDING_PHASE_WALLET_CREATE_START = 5,
3755
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
3756
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
3757
+ DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
3758
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
3759
+ DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
3760
+ DEV_ONBOARDING_PHASE_WALLET_READY = 11,
3761
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
3762
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
3763
+ }
3764
+ export declare enum DevOnboardingSetupKind {
3765
+ DEV_ONBOARDING_SETUP_KIND_UNKNOWN = 0,
3766
+ DEV_ONBOARDING_SETUP_KIND_CHOICE = 1,
3767
+ DEV_ONBOARDING_SETUP_KIND_CREATE = 2,
3768
+ DEV_ONBOARDING_SETUP_KIND_RESTORE = 3
3769
+ }
3770
+ export declare enum DevOnboardingSetupMethod {
3771
+ DEV_ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
3772
+ DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
3773
+ DEV_ONBOARDING_SETUP_METHOD_SEEDCARD = 2
3774
+ }
3775
+ export type DevOnboardingSetupStatus = {
3776
+ kind?: DevOnboardingSetupKind;
3777
+ method?: DevOnboardingSetupMethod;
3778
+ };
3743
3779
  export type DevGetOnboardingStatus = {};
3744
3780
  export type DevOnboardingStatus = {
3745
- stage: DevOnboardingStage;
3746
- status_code?: number;
3747
- detail_code?: number;
3781
+ step?: DevOnboardingStep;
3782
+ phase?: DevOnboardingPhase;
3783
+ setup?: DevOnboardingSetupStatus;
3784
+ pin_set?: boolean;
3785
+ wallet_initialized?: boolean;
3748
3786
  };
3749
3787
  export type FilesystemPermissionFix = {};
3750
3788
  export type FilesystemPathInfo = {
@@ -4451,11 +4489,17 @@ export type MessageType = {
4451
4489
  DeviceInfoTargets: DeviceInfoTargets;
4452
4490
  DeviceInfoTypes: DeviceInfoTypes;
4453
4491
  DeviceInfoGet: DeviceInfoGet;
4454
- DeviceSessionGet: DeviceSessionGet;
4492
+ DeviceSessionResume: DeviceSessionResume;
4493
+ DeviceHostPassphrase: DeviceHostPassphrase;
4494
+ DevicePassphraseOnDevice: DevicePassphraseOnDevice;
4495
+ DeviceAttachPinOnDevice: DeviceAttachPinOnDevice;
4496
+ DeviceWalletSelect: DeviceWalletSelect;
4497
+ DeviceSessionOpen: DeviceSessionOpen;
4455
4498
  DeviceSession: DeviceSession;
4456
4499
  DeviceSessionAskPin: DeviceSessionAskPin;
4457
4500
  DeviceStatus: DeviceStatus;
4458
4501
  DeviceStatusGet: DeviceStatusGet;
4502
+ DevOnboardingSetupStatus: DevOnboardingSetupStatus;
4459
4503
  DevGetOnboardingStatus: DevGetOnboardingStatus;
4460
4504
  DevOnboardingStatus: DevOnboardingStatus;
4461
4505
  FilesystemPermissionFix: FilesystemPermissionFix;