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

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.
@@ -101,15 +101,23 @@ describe('messages', () => {
101
101
  expect(v2Messages.nested.MessageType.values).toMatchObject({
102
102
  MessageType_DeviceStatusGet: 60602,
103
103
  MessageType_DeviceStatus: 60603,
104
- MessageType_DeviceSessionGet: 60606,
104
+ MessageType_DeviceSessionOpen: 60606,
105
105
  MessageType_DeviceSession: 60607,
106
106
  MessageType_DeviceSessionAskPin: 60608,
107
107
  });
108
108
  expect(v2Messages.nested.DeviceStatusGet).toEqual({ fields: {} });
109
- expect(v2Messages.nested.DeviceSessionGet.fields.session_id).toMatchObject({
109
+ expect(v2Messages.nested.DeviceSessionResume.fields.session_id).toMatchObject({
110
110
  id: 1,
111
111
  type: 'bytes',
112
112
  });
113
+ expect(v2Messages.nested.DeviceWalletSelect.oneofs.access.oneof).toEqual([
114
+ 'host_passphrase',
115
+ 'passphrase_on_device',
116
+ 'attach_pin_on_device',
117
+ ]);
118
+ expect(v2Messages.nested.DeviceSessionOpen.oneofs.mode.oneof).toEqual(['resume', 'select']);
119
+ expect(v2Messages.nested).not.toHaveProperty('DeviceWalletType');
120
+ expect(v2Messages.nested).not.toHaveProperty('DeviceHiddenWalletSelect');
113
121
  expect(v2Messages.nested.DeviceSession.fields).toMatchObject({
114
122
  session_id: { id: 1, type: 'bytes' },
115
123
  btc_test_address: { id: 2, type: 'string' },
@@ -121,6 +129,33 @@ describe('messages', () => {
121
129
  expect(v2Messages.nested.MessageType.values).not.toHaveProperty(
122
130
  'MessageType_DeviceSessionPinResult'
123
131
  );
132
+ expect(v2Messages.nested.MessageType.values).not.toHaveProperty('MessageType_DeviceSessionGet');
133
+ });
134
+
135
+ test('Protocol V2 onboarding status matches the current firmware-pro2 schema', () => {
136
+ expect(v2Messages.nested.DevOnboardingStep.values).toMatchObject({
137
+ DEV_ONBOARDING_STEP_UNKNOWN: 0,
138
+ DEV_ONBOARDING_STEP_CHECKING: 1,
139
+ DEV_ONBOARDING_STEP_PERSONALIZATION: 2,
140
+ DEV_ONBOARDING_STEP_PIN: 3,
141
+ DEV_ONBOARDING_STEP_SETUP: 4,
142
+ DEV_ONBOARDING_STEP_DONE: 5,
143
+ });
144
+ expect(v2Messages.nested.DevOnboardingPhase.values).toBeDefined();
145
+ expect(v2Messages.nested.DevOnboardingSetupKind.values).toBeDefined();
146
+ expect(v2Messages.nested.DevOnboardingSetupMethod.values).toBeDefined();
147
+ expect(v2Messages.nested.DevOnboardingSetupStatus.fields).toMatchObject({
148
+ kind: { id: 1, type: 'DevOnboardingSetupKind' },
149
+ method: { id: 2, type: 'DevOnboardingSetupMethod' },
150
+ });
151
+ expect(v2Messages.nested.DevOnboardingStatus.fields).toMatchObject({
152
+ step: { id: 1, type: 'DevOnboardingStep' },
153
+ phase: { id: 2, type: 'DevOnboardingPhase' },
154
+ setup: { id: 3, type: 'DevOnboardingSetupStatus' },
155
+ pin_set: { id: 4, type: 'bool' },
156
+ wallet_initialized: { id: 5, type: 'bool' },
157
+ });
158
+ expect(v2Messages.nested).not.toHaveProperty('DevOnboardingStage');
124
159
  });
125
160
 
126
161
  test('Protocol V2 does not restore retired unlock or passphrase ids', () => {
@@ -335,7 +335,7 @@ describe('Protocol V2 framing and session', () => {
335
335
  });
336
336
  });
337
337
 
338
- test('session logs Protocol V2 TX and RX frame metadata without payloads', async () => {
338
+ test('session does not log Protocol V2 TX and RX frames', async () => {
339
339
  const written = [];
340
340
  const logger = { debug: jest.fn() };
341
341
  const response = ProtocolV2.encodeFrame(schemas, 'ProtocolInfo', {
@@ -358,27 +358,10 @@ describe('Protocol V2 framing and session', () => {
358
358
 
359
359
  await session.call('ProtocolInfoRequest', {});
360
360
 
361
- const tx = protocolV2.decodeFrame(written[0]);
362
- const rx = protocolV2.decodeFrame(rewriteSeq(response, tx.seq));
363
- expect(logger.debug).toHaveBeenCalledWith('[ProtocolV2 Test] TX', {
364
- method: 'ProtocolInfoRequest',
365
- type: 'ProtocolInfoRequest',
366
- typeId: tx.messageTypeId,
367
- seq: tx.seq,
368
- bytes: written[0].length,
369
- });
370
- expect(logger.debug).toHaveBeenCalledWith('[ProtocolV2 Test] RX', {
371
- method: 'ProtocolInfoRequest',
372
- type: 'ProtocolInfo',
373
- typeId: rx.messageTypeId,
374
- seq: rx.seq,
375
- bytes: response.length,
376
- });
377
- expect(JSON.stringify(logger.debug.mock.calls)).not.toContain('sensitive-schema');
378
- expect(JSON.stringify(logger.debug.mock.calls)).not.toContain('supported_messages');
361
+ expect(logger.debug).not.toHaveBeenCalled();
379
362
  });
380
363
 
381
- test('session logs RX frame metadata before protobuf payload decoding fails', async () => {
364
+ test('session does not log RX frame metadata when protobuf payload decoding fails', async () => {
382
365
  const logger = { debug: jest.fn() };
383
366
  const response = protocolV2.encodeProtobufFrame(
384
367
  60208,
@@ -395,14 +378,7 @@ describe('Protocol V2 framing and session', () => {
395
378
 
396
379
  await expect(session.call('Ping', { message: 'hello' })).rejects.toThrow();
397
380
 
398
- const rx = protocolV2.decodeFrame(response);
399
- expect(logger.debug).toHaveBeenCalledWith('[ProtocolV2 Test] RX', {
400
- method: 'Ping',
401
- type: 'Failure',
402
- typeId: rx.messageTypeId,
403
- seq: rx.seq,
404
- bytes: response.length,
405
- });
381
+ expect(logger.debug).not.toHaveBeenCalled();
406
382
  });
407
383
 
408
384
  test('session skips Proto Link ACK frames before decoding the protobuf response', async () => {
@@ -503,13 +479,7 @@ describe('Protocol V2 framing and session', () => {
503
479
  protobuf_definition: null,
504
480
  },
505
481
  });
506
- expect(logger.debug).toHaveBeenCalledWith('[ProtocolV2] RX', {
507
- method: 'ProtocolInfoRequest',
508
- type: 'ProtocolInfo',
509
- typeId: 60201,
510
- seq: 200,
511
- bytes: response.length,
512
- });
482
+ expect(logger.debug).not.toHaveBeenCalled();
513
483
  });
514
484
 
515
485
  test('session does not log transmit or receive payload details', async () => {
@@ -535,10 +505,7 @@ describe('Protocol V2 framing and session', () => {
535
505
  },
536
506
  });
537
507
 
538
- expect(logger.debug).toHaveBeenCalledTimes(2);
539
- const logs = JSON.stringify(logger.debug.mock.calls);
540
- expect(logs).not.toContain('hello');
541
- expect(logs).not.toContain('accepted');
508
+ expect(logger.debug).not.toHaveBeenCalled();
542
509
  });
543
510
 
544
511
  test('session suppresses debug logs for file transfer calls', async () => {
package/dist/index.d.ts CHANGED
@@ -238,7 +238,9 @@ type LowLevelDevice = OneKeyDeviceInfoBase & {
238
238
  };
239
239
  type LowlevelTransportSharedPlugin = {
240
240
  enumerate: () => Promise<LowLevelDevice[]>;
241
- send: (uuid: string, data: string) => Promise<void>;
241
+ send: (uuid: string, data: string, options?: {
242
+ withoutResponse?: boolean;
243
+ }) => Promise<void>;
242
244
  receive: (uuid?: string) => Promise<string>;
243
245
  connect: (uuid: string) => Promise<void>;
244
246
  disconnect: (uuid: string) => Promise<void>;
@@ -1895,11 +1897,17 @@ type KaspaAddress = {
1895
1897
  };
1896
1898
  type KaspaSignTx = {
1897
1899
  address_n: number[];
1898
- raw_message: string;
1900
+ raw_message?: string;
1899
1901
  scheme?: string;
1900
1902
  prefix?: string;
1901
1903
  input_count?: number;
1902
1904
  use_tweak?: boolean;
1905
+ output_count?: number;
1906
+ version?: number;
1907
+ lock_time?: number;
1908
+ subnetwork_id?: string;
1909
+ gas?: number;
1910
+ payload_length?: number;
1903
1911
  };
1904
1912
  type KaspaTxInputRequest = {
1905
1913
  request_index: number;
@@ -1909,6 +1917,77 @@ type KaspaTxInputAck = {
1909
1917
  address_n: number[];
1910
1918
  raw_message: string;
1911
1919
  };
1920
+ type KaspaOutpoint = {
1921
+ tx_id: string;
1922
+ index: number;
1923
+ };
1924
+ declare enum Enum_KaspaInputScriptType {
1925
+ KASPA_SPEND_P2PK_SCHNORR = 0,
1926
+ KASPA_SPEND_P2PK_ECDSA = 1
1927
+ }
1928
+ type KaspaInputScriptType = keyof typeof Enum_KaspaInputScriptType;
1929
+ declare enum Enum_KaspaOutputScriptType {
1930
+ KASPA_PAYTOADDRESS = 0,
1931
+ KASPA_PAYTOCHANGE = 1
1932
+ }
1933
+ type KaspaOutputScriptType = keyof typeof Enum_KaspaOutputScriptType;
1934
+ declare enum Enum_KaspaRequestType {
1935
+ KASPA_TX_INPUT = 0,
1936
+ KASPA_TX_OUTPUT = 1,
1937
+ KASPA_TX_PAYLOAD = 2,
1938
+ KASPA_TX_FINISHED = 3,
1939
+ KASPA_TX_PREV_META = 4
1940
+ }
1941
+ type KaspaRequestType = keyof typeof Enum_KaspaRequestType;
1942
+ type KaspaTxRequestSignature = {
1943
+ signature_index: number;
1944
+ signature: string;
1945
+ };
1946
+ type KaspaTxRequest = {
1947
+ request_type: KaspaRequestType;
1948
+ request_index?: number;
1949
+ signature?: KaspaTxRequestSignature;
1950
+ request_payload_length?: number;
1951
+ prev_tx_id?: string;
1952
+ };
1953
+ type KaspaTxAckInput = {
1954
+ address_n: number[];
1955
+ previous_outpoint: KaspaOutpoint;
1956
+ amount: UintType;
1957
+ sequence: number;
1958
+ sig_op_count: number;
1959
+ script_type?: KaspaInputScriptType;
1960
+ use_tweak?: boolean;
1961
+ };
1962
+ type KaspaTxAckOutput = {
1963
+ script_type?: KaspaOutputScriptType;
1964
+ amount: UintType;
1965
+ address_n: number[];
1966
+ address?: string;
1967
+ scheme?: string;
1968
+ use_tweak?: boolean;
1969
+ };
1970
+ type KaspaTxAckPayloadChunk = {
1971
+ payload_chunk: string;
1972
+ };
1973
+ type KaspaTxAckPrevMeta = {
1974
+ version: number;
1975
+ input_count: number;
1976
+ output_count: number;
1977
+ lock_time: number;
1978
+ subnetwork_id: string;
1979
+ gas: number;
1980
+ payload_length: number;
1981
+ };
1982
+ type KaspaTxAckPrevInput = {
1983
+ previous_outpoint: KaspaOutpoint;
1984
+ sequence: number;
1985
+ };
1986
+ type KaspaTxAckPrevOutput = {
1987
+ amount: UintType;
1988
+ script_version: number;
1989
+ script_public_key: string;
1990
+ };
1912
1991
  type KaspaSignedTx = {
1913
1992
  signature: string;
1914
1993
  };
@@ -2438,8 +2517,6 @@ type UnLockDeviceResponse = {
2438
2517
  };
2439
2518
  type GetPassphraseState = {
2440
2519
  passphrase_state?: string;
2441
- _only_main_pin?: boolean;
2442
- allow_create_attach_pin?: boolean;
2443
2520
  };
2444
2521
  type PassphraseState = {
2445
2522
  passphrase_state?: string;
@@ -3951,8 +4028,22 @@ type ProtocolV2DeviceInfo = {
3951
4028
  se4?: DeviceSEInfo;
3952
4029
  status?: DeviceStatus;
3953
4030
  };
3954
- type DeviceSessionGet = {
3955
- session_id?: string;
4031
+ type DeviceSessionResume = {
4032
+ session_id: string;
4033
+ };
4034
+ type DeviceHostPassphrase = {
4035
+ passphrase: string;
4036
+ };
4037
+ type DevicePassphraseOnDevice = {};
4038
+ type DeviceAttachPinOnDevice = {};
4039
+ type DeviceWalletSelect = {
4040
+ host_passphrase?: DeviceHostPassphrase;
4041
+ passphrase_on_device?: DevicePassphraseOnDevice;
4042
+ attach_pin_on_device?: DeviceAttachPinOnDevice;
4043
+ };
4044
+ type DeviceSessionOpen = {
4045
+ resume?: DeviceSessionResume;
4046
+ select?: DeviceWalletSelect;
3956
4047
  };
3957
4048
  type DeviceSession = {
3958
4049
  session_id?: string;
@@ -3972,26 +4063,52 @@ type DeviceStatus = {
3972
4063
  unlocked_by_attach_to_pin?: boolean;
3973
4064
  };
3974
4065
  type DeviceStatusGet = {};
3975
- declare enum DevOnboardingStage {
3976
- DEV_ONBOARDING_STAGE_UNKNOWN = 0,
3977
- DEV_ONBOARDING_STAGE_SAFETY_CHECK = 1,
3978
- DEV_ONBOARDING_STAGE_PERSONALIZATION = 2,
3979
- DEV_ONBOARDING_STAGE_SELECT_SETUP_METHOD = 3,
3980
- DEV_ONBOARDING_STAGE_NEW_DEVICE = 4,
3981
- DEV_ONBOARDING_STAGE_SELECT_RESTORE_METHOD = 5,
3982
- DEV_ONBOARDING_STAGE_RESTORE_MNEMONIC = 6,
3983
- DEV_ONBOARDING_STAGE_RESTORE_SEEDCARD = 7,
3984
- DEV_ONBOARDING_STAGE_WALLET_READY = 8,
3985
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP_PROMPT = 9,
3986
- DEV_ONBOARDING_STAGE_SELECT_SEEDCARD_BACKUP_METHOD = 10,
3987
- DEV_ONBOARDING_STAGE_SEEDCARD_BACKUP = 11,
3988
- DEV_ONBOARDING_STAGE_DONE = 12
4066
+ declare enum DevOnboardingStep {
4067
+ DEV_ONBOARDING_STEP_UNKNOWN = 0,
4068
+ DEV_ONBOARDING_STEP_CHECKING = 1,
4069
+ DEV_ONBOARDING_STEP_PERSONALIZATION = 2,
4070
+ DEV_ONBOARDING_STEP_PIN = 3,
4071
+ DEV_ONBOARDING_STEP_SETUP = 4,
4072
+ DEV_ONBOARDING_STEP_DONE = 5
3989
4073
  }
4074
+ declare enum DevOnboardingPhase {
4075
+ DEV_ONBOARDING_PHASE_UNKNOWN = 0,
4076
+ DEV_ONBOARDING_PHASE_SAFETY_CHECK = 1,
4077
+ DEV_ONBOARDING_PHASE_PIN_SETUP = 2,
4078
+ DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP = 3,
4079
+ DEV_ONBOARDING_PHASE_SETUP_CHOICE = 4,
4080
+ DEV_ONBOARDING_PHASE_WALLET_CREATE_START = 5,
4081
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW = 6,
4082
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM = 7,
4083
+ DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE = 8,
4084
+ DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE = 9,
4085
+ DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE = 10,
4086
+ DEV_ONBOARDING_PHASE_WALLET_READY = 11,
4087
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT = 12,
4088
+ DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP = 13
4089
+ }
4090
+ declare enum DevOnboardingSetupKind {
4091
+ DEV_ONBOARDING_SETUP_KIND_UNKNOWN = 0,
4092
+ DEV_ONBOARDING_SETUP_KIND_CHOICE = 1,
4093
+ DEV_ONBOARDING_SETUP_KIND_CREATE = 2,
4094
+ DEV_ONBOARDING_SETUP_KIND_RESTORE = 3
4095
+ }
4096
+ declare enum DevOnboardingSetupMethod {
4097
+ DEV_ONBOARDING_SETUP_METHOD_UNKNOWN = 0,
4098
+ DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE = 1,
4099
+ DEV_ONBOARDING_SETUP_METHOD_SEEDCARD = 2
4100
+ }
4101
+ type DevOnboardingSetupStatus = {
4102
+ kind?: DevOnboardingSetupKind;
4103
+ method?: DevOnboardingSetupMethod;
4104
+ };
3990
4105
  type DevGetOnboardingStatus = {};
3991
4106
  type DevOnboardingStatus = {
3992
- stage: DevOnboardingStage;
3993
- status_code?: number;
3994
- detail_code?: number;
4107
+ step?: DevOnboardingStep;
4108
+ phase?: DevOnboardingPhase;
4109
+ setup?: DevOnboardingSetupStatus;
4110
+ pin_set?: boolean;
4111
+ wallet_initialized?: boolean;
3995
4112
  };
3996
4113
  type FilesystemPermissionFix = {};
3997
4114
  type FilesystemPathInfo = {
@@ -4357,6 +4474,15 @@ type MessageType = {
4357
4474
  KaspaSignTx: KaspaSignTx;
4358
4475
  KaspaTxInputRequest: KaspaTxInputRequest;
4359
4476
  KaspaTxInputAck: KaspaTxInputAck;
4477
+ KaspaOutpoint: KaspaOutpoint;
4478
+ KaspaTxRequestSignature: KaspaTxRequestSignature;
4479
+ KaspaTxRequest: KaspaTxRequest;
4480
+ KaspaTxAckInput: KaspaTxAckInput;
4481
+ KaspaTxAckOutput: KaspaTxAckOutput;
4482
+ KaspaTxAckPayloadChunk: KaspaTxAckPayloadChunk;
4483
+ KaspaTxAckPrevMeta: KaspaTxAckPrevMeta;
4484
+ KaspaTxAckPrevInput: KaspaTxAckPrevInput;
4485
+ KaspaTxAckPrevOutput: KaspaTxAckPrevOutput;
4360
4486
  KaspaSignedTx: KaspaSignedTx;
4361
4487
  LnurlAuth: LnurlAuth;
4362
4488
  LnurlAuthResp: LnurlAuthResp;
@@ -4698,11 +4824,17 @@ type MessageType = {
4698
4824
  DeviceInfoTargets: DeviceInfoTargets;
4699
4825
  DeviceInfoTypes: DeviceInfoTypes;
4700
4826
  DeviceInfoGet: DeviceInfoGet;
4701
- DeviceSessionGet: DeviceSessionGet;
4827
+ DeviceSessionResume: DeviceSessionResume;
4828
+ DeviceHostPassphrase: DeviceHostPassphrase;
4829
+ DevicePassphraseOnDevice: DevicePassphraseOnDevice;
4830
+ DeviceAttachPinOnDevice: DeviceAttachPinOnDevice;
4831
+ DeviceWalletSelect: DeviceWalletSelect;
4832
+ DeviceSessionOpen: DeviceSessionOpen;
4702
4833
  DeviceSession: DeviceSession;
4703
4834
  DeviceSessionAskPin: DeviceSessionAskPin;
4704
4835
  DeviceStatus: DeviceStatus;
4705
4836
  DeviceStatusGet: DeviceStatusGet;
4837
+ DevOnboardingSetupStatus: DevOnboardingSetupStatus;
4706
4838
  DevGetOnboardingStatus: DevGetOnboardingStatus;
4707
4839
  DevOnboardingStatus: DevOnboardingStatus;
4708
4840
  FilesystemPermissionFix: FilesystemPermissionFix;
@@ -5074,6 +5206,24 @@ type messages_KaspaAddress = KaspaAddress;
5074
5206
  type messages_KaspaSignTx = KaspaSignTx;
5075
5207
  type messages_KaspaTxInputRequest = KaspaTxInputRequest;
5076
5208
  type messages_KaspaTxInputAck = KaspaTxInputAck;
5209
+ type messages_KaspaOutpoint = KaspaOutpoint;
5210
+ type messages_Enum_KaspaInputScriptType = Enum_KaspaInputScriptType;
5211
+ declare const messages_Enum_KaspaInputScriptType: typeof Enum_KaspaInputScriptType;
5212
+ type messages_KaspaInputScriptType = KaspaInputScriptType;
5213
+ type messages_Enum_KaspaOutputScriptType = Enum_KaspaOutputScriptType;
5214
+ declare const messages_Enum_KaspaOutputScriptType: typeof Enum_KaspaOutputScriptType;
5215
+ type messages_KaspaOutputScriptType = KaspaOutputScriptType;
5216
+ type messages_Enum_KaspaRequestType = Enum_KaspaRequestType;
5217
+ declare const messages_Enum_KaspaRequestType: typeof Enum_KaspaRequestType;
5218
+ type messages_KaspaRequestType = KaspaRequestType;
5219
+ type messages_KaspaTxRequestSignature = KaspaTxRequestSignature;
5220
+ type messages_KaspaTxRequest = KaspaTxRequest;
5221
+ type messages_KaspaTxAckInput = KaspaTxAckInput;
5222
+ type messages_KaspaTxAckOutput = KaspaTxAckOutput;
5223
+ type messages_KaspaTxAckPayloadChunk = KaspaTxAckPayloadChunk;
5224
+ type messages_KaspaTxAckPrevMeta = KaspaTxAckPrevMeta;
5225
+ type messages_KaspaTxAckPrevInput = KaspaTxAckPrevInput;
5226
+ type messages_KaspaTxAckPrevOutput = KaspaTxAckPrevOutput;
5077
5227
  type messages_KaspaSignedTx = KaspaSignedTx;
5078
5228
  type messages_LnurlAuth = LnurlAuth;
5079
5229
  type messages_LnurlAuthResp = LnurlAuthResp;
@@ -5508,15 +5658,27 @@ type messages_DeviceInfoTargets = DeviceInfoTargets;
5508
5658
  type messages_DeviceInfoTypes = DeviceInfoTypes;
5509
5659
  type messages_DeviceInfoGet = DeviceInfoGet;
5510
5660
  type messages_ProtocolV2DeviceInfo = ProtocolV2DeviceInfo;
5511
- type messages_DeviceSessionGet = DeviceSessionGet;
5661
+ type messages_DeviceSessionResume = DeviceSessionResume;
5662
+ type messages_DeviceHostPassphrase = DeviceHostPassphrase;
5663
+ type messages_DevicePassphraseOnDevice = DevicePassphraseOnDevice;
5664
+ type messages_DeviceAttachPinOnDevice = DeviceAttachPinOnDevice;
5665
+ type messages_DeviceWalletSelect = DeviceWalletSelect;
5666
+ type messages_DeviceSessionOpen = DeviceSessionOpen;
5512
5667
  type messages_DeviceSession = DeviceSession;
5513
5668
  type messages_DeviceSessionAskPin = DeviceSessionAskPin;
5514
5669
  type messages_DeviceSessionAskPin_FailureSubCodes = DeviceSessionAskPin_FailureSubCodes;
5515
5670
  declare const messages_DeviceSessionAskPin_FailureSubCodes: typeof DeviceSessionAskPin_FailureSubCodes;
5516
5671
  type messages_DeviceStatus = DeviceStatus;
5517
5672
  type messages_DeviceStatusGet = DeviceStatusGet;
5518
- type messages_DevOnboardingStage = DevOnboardingStage;
5519
- declare const messages_DevOnboardingStage: typeof DevOnboardingStage;
5673
+ type messages_DevOnboardingStep = DevOnboardingStep;
5674
+ declare const messages_DevOnboardingStep: typeof DevOnboardingStep;
5675
+ type messages_DevOnboardingPhase = DevOnboardingPhase;
5676
+ declare const messages_DevOnboardingPhase: typeof DevOnboardingPhase;
5677
+ type messages_DevOnboardingSetupKind = DevOnboardingSetupKind;
5678
+ declare const messages_DevOnboardingSetupKind: typeof DevOnboardingSetupKind;
5679
+ type messages_DevOnboardingSetupMethod = DevOnboardingSetupMethod;
5680
+ declare const messages_DevOnboardingSetupMethod: typeof DevOnboardingSetupMethod;
5681
+ type messages_DevOnboardingSetupStatus = DevOnboardingSetupStatus;
5520
5682
  type messages_DevGetOnboardingStatus = DevGetOnboardingStatus;
5521
5683
  type messages_DevOnboardingStatus = DevOnboardingStatus;
5522
5684
  type messages_FilesystemPermissionFix = FilesystemPermissionFix;
@@ -5857,6 +6019,21 @@ declare namespace messages {
5857
6019
  messages_KaspaSignTx as KaspaSignTx,
5858
6020
  messages_KaspaTxInputRequest as KaspaTxInputRequest,
5859
6021
  messages_KaspaTxInputAck as KaspaTxInputAck,
6022
+ messages_KaspaOutpoint as KaspaOutpoint,
6023
+ messages_Enum_KaspaInputScriptType as Enum_KaspaInputScriptType,
6024
+ messages_KaspaInputScriptType as KaspaInputScriptType,
6025
+ messages_Enum_KaspaOutputScriptType as Enum_KaspaOutputScriptType,
6026
+ messages_KaspaOutputScriptType as KaspaOutputScriptType,
6027
+ messages_Enum_KaspaRequestType as Enum_KaspaRequestType,
6028
+ messages_KaspaRequestType as KaspaRequestType,
6029
+ messages_KaspaTxRequestSignature as KaspaTxRequestSignature,
6030
+ messages_KaspaTxRequest as KaspaTxRequest,
6031
+ messages_KaspaTxAckInput as KaspaTxAckInput,
6032
+ messages_KaspaTxAckOutput as KaspaTxAckOutput,
6033
+ messages_KaspaTxAckPayloadChunk as KaspaTxAckPayloadChunk,
6034
+ messages_KaspaTxAckPrevMeta as KaspaTxAckPrevMeta,
6035
+ messages_KaspaTxAckPrevInput as KaspaTxAckPrevInput,
6036
+ messages_KaspaTxAckPrevOutput as KaspaTxAckPrevOutput,
5860
6037
  messages_KaspaSignedTx as KaspaSignedTx,
5861
6038
  messages_LnurlAuth as LnurlAuth,
5862
6039
  messages_LnurlAuthResp as LnurlAuthResp,
@@ -6247,13 +6424,22 @@ declare namespace messages {
6247
6424
  messages_DeviceInfoTypes as DeviceInfoTypes,
6248
6425
  messages_DeviceInfoGet as DeviceInfoGet,
6249
6426
  messages_ProtocolV2DeviceInfo as ProtocolV2DeviceInfo,
6250
- messages_DeviceSessionGet as DeviceSessionGet,
6427
+ messages_DeviceSessionResume as DeviceSessionResume,
6428
+ messages_DeviceHostPassphrase as DeviceHostPassphrase,
6429
+ messages_DevicePassphraseOnDevice as DevicePassphraseOnDevice,
6430
+ messages_DeviceAttachPinOnDevice as DeviceAttachPinOnDevice,
6431
+ messages_DeviceWalletSelect as DeviceWalletSelect,
6432
+ messages_DeviceSessionOpen as DeviceSessionOpen,
6251
6433
  messages_DeviceSession as DeviceSession,
6252
6434
  messages_DeviceSessionAskPin as DeviceSessionAskPin,
6253
6435
  messages_DeviceSessionAskPin_FailureSubCodes as DeviceSessionAskPin_FailureSubCodes,
6254
6436
  messages_DeviceStatus as DeviceStatus,
6255
6437
  messages_DeviceStatusGet as DeviceStatusGet,
6256
- messages_DevOnboardingStage as DevOnboardingStage,
6438
+ messages_DevOnboardingStep as DevOnboardingStep,
6439
+ messages_DevOnboardingPhase as DevOnboardingPhase,
6440
+ messages_DevOnboardingSetupKind as DevOnboardingSetupKind,
6441
+ messages_DevOnboardingSetupMethod as DevOnboardingSetupMethod,
6442
+ messages_DevOnboardingSetupStatus as DevOnboardingSetupStatus,
6257
6443
  messages_DevGetOnboardingStatus as DevGetOnboardingStatus,
6258
6444
  messages_DevOnboardingStatus as DevOnboardingStatus,
6259
6445
  messages_FilesystemPermissionFix as FilesystemPermissionFix,
@@ -6522,4 +6708,4 @@ declare const _default: {
6522
6708
  withProtocolTimeout: typeof withProtocolTimeout;
6523
6709
  };
6524
6710
 
6525
- export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingStage, DevOnboardingStatus, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionGet, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaSignTx, KaspaSignedTx, KaspaTxInputAck, KaspaTxInputRequest, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };
6711
+ export { AcquireInput, Address, AlephiumAddress, AlephiumBytecodeAck, AlephiumBytecodeRequest, AlephiumGetAddress, AlephiumMessageSignature, AlephiumSignMessage, AlephiumSignTx, AlephiumSignedTx, AlephiumTxAck, AlephiumTxRequest, AlgorandAddress, AlgorandGetAddress, AlgorandSignTx, AlgorandSignedTx, AmountUnit, ApplyFlags, ApplySettings, AptosAddress, AptosGetAddress, AptosMessagePayload, AptosMessageSignature, AptosSignMessage, AptosSignSIWAMessage, AptosSignTx, AptosSignedTx, AptosTransactionType, AuthorizeCoinJoin, BIP32Address, BackupDevice, BackupType, BatchGetPublickeys, BenfenAddress, BenfenGetAddress, BenfenMessageSignature, BenfenSignMessage, BenfenSignTx, BenfenSignedTx, BenfenTxAck, BenfenTxRequest, BinanceAddress, BinanceCancelMsg, BinanceCoin, BinanceGetAddress, BinanceGetPublicKey, BinanceInputOutput, BinanceOrderMsg, BinanceOrderSide, BinanceOrderType, BinancePublicKey, BinanceSignTx, BinanceSignedTx, BinanceTimeInForce, BinanceTransferMsg, BinanceTxRequest, BixinBackupAck, BixinBackupDevice, BixinBackupDeviceAck, BixinBackupRequest, BixinLoadDevice, BixinMessageSE, BixinOutMessageSE, BixinPinInputOnDevice, BixinRestoreAck, BixinRestoreRequest, BixinSeedOperate, BixinVerifyDeviceAck, BixinVerifyDeviceRequest, BixinWhiteListAck, BixinWhiteListRequest, BlurRequest, ButtonAck, ButtonRequest, ButtonRequestType, Cancel, CancelAuthorization, Capability, CardanoAddress, CardanoAddressParametersType, CardanoAddressType, CardanoAssetGroup, CardanoBlockchainPointerType, CardanoCVoteRegistrationDelegation, CardanoCVoteRegistrationFormat, CardanoCVoteRegistrationParametersType, CardanoCertificateType, CardanoDRep, CardanoDRepType, CardanoDerivationType, CardanoGetAddress, CardanoGetNativeScriptHash, CardanoGetPublicKey, CardanoMessageSignature, CardanoNativeScript, CardanoNativeScriptHash, CardanoNativeScriptHashDisplayFormat, CardanoNativeScriptType, CardanoPoolMetadataType, CardanoPoolOwner, CardanoPoolParametersType, CardanoPoolRelayParameters, CardanoPoolRelayType, CardanoPublicKey, CardanoSignMessage, CardanoSignTxFinished, CardanoSignTxInit, CardanoToken, CardanoTxAuxiliaryData, CardanoTxAuxiliaryDataSupplement, CardanoTxAuxiliaryDataSupplementType, CardanoTxBodyHash, CardanoTxCertificate, CardanoTxCollateralInput, CardanoTxHostAck, CardanoTxInlineDatumChunk, CardanoTxInput, CardanoTxItemAck, CardanoTxMint, CardanoTxOutput, CardanoTxOutputSerializationFormat, CardanoTxReferenceInput, CardanoTxReferenceScriptChunk, CardanoTxRequiredSigner, CardanoTxSigningMode, CardanoTxWithdrawal, CardanoTxWitnessRequest, CardanoTxWitnessResponse, CardanoTxWitnessType, ChangeOutputScriptType, ChangePin, ChangeWipeCode, CipherKeyValue, CipheredKeyValue, CoinJoinRequest, CoinPurchaseMemo, CommandFlags, ConfluxAddress, ConfluxGetAddress, ConfluxMessageSignature, ConfluxSignMessage, ConfluxSignMessageCIP23, ConfluxSignTx, ConfluxTxAck, ConfluxTxRequest, CosmosAddress, CosmosGetAddress, CosmosSignTx, CosmosSignedTx, DecredStakingSpendType, Deprecated_PassphraseStateAck, Deprecated_PassphraseStateRequest, DevGetOnboardingStatus, DevOnboardingPhase, DevOnboardingSetupKind, DevOnboardingSetupMethod, DevOnboardingSetupStatus, DevOnboardingStatus, DevOnboardingStep, DeviceAttachPinOnDevice, DeviceBackToBoot, DeviceCertificate, DeviceCertificateRead, DeviceCertificateSign, DeviceCertificateSignature, DeviceCertificateWrite, DeviceCoprocessorInfo, DeviceEraseSector, DeviceErrorCode, DeviceFactoryAck, DeviceFactoryInfo, DeviceFactoryInfoGet, DeviceFactoryInfoManufactureTime, DeviceFactoryInfoSet, DeviceFactoryPermanentLock, DeviceFactoryTest, DeviceFirmwareImageInfo, DeviceFirmwareTarget, DeviceFirmwareTargetType, DeviceFirmwareUpdateRecord, DeviceFirmwareUpdateRecordFields, DeviceFirmwareUpdateRequest, DeviceFirmwareUpdateStatus, DeviceFirmwareUpdateStatusGet, DeviceFirmwareUpdateTaskStatus, DeviceHardwareInfo, DeviceHostPassphrase, DeviceInfo, DeviceInfoGet, DeviceInfoSettings, DeviceInfoTargets, DeviceInfoTypes, DeviceMainMcuInfo, DevicePassphraseOnDevice, DeviceReboot, DeviceRebootType, DeviceSEInfo, DeviceSEState, DeviceSeType, DeviceSession, DeviceSessionAskPin, DeviceSessionAskPin_FailureSubCodes, DeviceSessionOpen, DeviceSessionResume, DeviceSettings, DeviceSettingsGet, DeviceSettingsPage, DeviceSettingsPageShow, DeviceSettingsSet, DeviceStatus, DeviceStatusGet, DeviceType, DeviceWalletSelect, DnxAddress, DnxComputedKeyImage, DnxGetAddress, DnxInputAck, DnxInputRequest, DnxRTSigsRequest, DnxSignTx, DnxSignedTx, DnxTxKey, DoPreauthorized, ECDHSessionKey, EcdsaPublicKeys, EmmcDir, EmmcDirList, EmmcDirMake, EmmcDirRemove, EmmcFile, EmmcFileDelete, EmmcFileRead, EmmcFileWrite, EmmcFixPermission, EmmcPath, EmmcPathInfo, EndSession, Entropy, EntropyAck, EntropyRequest, Enum_BackupType, Enum_ButtonRequestType, Enum_Capability, Enum_InputScriptType, Enum_KaspaInputScriptType, Enum_KaspaOutputScriptType, Enum_KaspaRequestType, Enum_OutputScriptType, Enum_PinMatrixRequestType, Enum_ProtocolV2Capability, Enum_RequestType, Enum_SafetyCheckLevel, Enum_WordRequestType, EosActionBuyRam, EosActionBuyRamBytes, EosActionCommon, EosActionDelegate, EosActionDeleteAuth, EosActionLinkAuth, EosActionNewAccount, EosActionRefund, EosActionSellRam, EosActionTransfer, EosActionUndelegate, EosActionUnknown, EosActionUnlinkAuth, EosActionUpdateAuth, EosActionVoteProducer, EosAsset, EosAuthorization, EosAuthorizationAccount, EosAuthorizationKey, EosAuthorizationWait, EosGetPublicKey, EosPermissionLevel, EosPublicKey, EosSignTx, EosSignedTx, EosTxActionAck, EosTxActionRequest, EosTxHeader, EthereumAccessList, EthereumAccessListOneKey, EthereumAddress, EthereumAddressOneKey, EthereumAuthorizationOneKey, EthereumAuthorizationSignature, EthereumDataType, EthereumDataTypeOneKey, EthereumDefinitionType, EthereumDefinitions, EthereumFieldType, EthereumFieldTypeOneKey, EthereumGetAddress, EthereumGetAddressOneKey, EthereumGetPublicKey, EthereumGetPublicKeyOneKey, EthereumGnosisSafeTxAck, EthereumGnosisSafeTxOperation, EthereumGnosisSafeTxRequest, EthereumMessageSignature, EthereumMessageSignatureOneKey, EthereumNetworkInfo, EthereumPublicKey, EthereumPublicKeyOneKey, EthereumSignMessage, EthereumSignMessageEIP712, EthereumSignMessageOneKey, EthereumSignTx, EthereumSignTxEIP1559, EthereumSignTxEIP1559OneKey, EthereumSignTxEIP7702OneKey, EthereumSignTxOneKey, EthereumSignTypedData, EthereumSignTypedDataOneKey, EthereumSignTypedDataQR, EthereumSignTypedHash, EthereumSignTypedHashOneKey, EthereumStructMember, EthereumStructMemberOneKey, EthereumTokenInfo, EthereumTxAck, EthereumTxAckOneKey, EthereumTxRequest, EthereumTxRequestOneKey, EthereumTypedDataSignature, EthereumTypedDataSignatureOneKey, EthereumTypedDataStructAck, EthereumTypedDataStructAckOneKey, EthereumTypedDataStructRequest, EthereumTypedDataStructRequestOneKey, EthereumTypedDataValueAck, EthereumTypedDataValueAckOneKey, EthereumTypedDataValueRequest, EthereumTypedDataValueRequestOneKey, EthereumVerifyMessage, EthereumVerifyMessageOneKey, ExportType, Failure, FailureType, Features, FileInfo, FileInfoList, FilecoinAddress, FilecoinGetAddress, FilecoinSignTx, FilecoinSignedTx, FilesystemDir, FilesystemDirList, FilesystemDirMake, FilesystemDirRemove, FilesystemFile, FilesystemFileDelete, FilesystemFileRead, FilesystemFileWrite, FilesystemFormat, FilesystemPathInfo, FilesystemPathInfoQuery, FilesystemPermissionFix, FirmwareErase, FirmwareErase_ex, FirmwareHash, FirmwareRequest, FirmwareUpdateEmmc, FirmwareUpload, GetAddress, GetDeviceInfo, GetECDHSessionKey, GetEntropy, GetFeatures, GetFirmwareHash, GetNextU2FCounter, GetNonce, GetOwnershipId, GetOwnershipProof, GetPassphraseState, GetPublicKey, GetPublicKeyMultiple, GetWallpaper, HDNodePathType, HDNodeType, IdentityType, Initialize, InputScriptType, InternalInputScriptType, InternalMyAddressRequest, KaspaAddress, KaspaGetAddress, KaspaInputScriptType, KaspaOutpoint, KaspaOutputScriptType, KaspaRequestType, KaspaSignTx, KaspaSignedTx, KaspaTxAckInput, KaspaTxAckOutput, KaspaTxAckPayloadChunk, KaspaTxAckPrevInput, KaspaTxAckPrevMeta, KaspaTxAckPrevOutput, KaspaTxInputAck, KaspaTxInputRequest, KaspaTxRequest, KaspaTxRequestSignature, ListResDir, LnurlAuth, LnurlAuthResp, LockDevice, LogBlockCommand, LowLevelDevice, LowlevelTransportSharedPlugin, MessageFromOneKey, MessageKey, MessageResponse, MessageResponseMap, MessageSignature, MessageType, messages as Messages, MoneroAccountPublicAddress, MoneroAddress, MoneroExportedKeyImage, MoneroGetAddress, MoneroGetTxKeyAck, MoneroGetTxKeyRequest, MoneroGetWatchKey, MoneroKeyImageExportInitAck, MoneroKeyImageExportInitRequest, MoneroKeyImageSyncFinalAck, MoneroKeyImageSyncFinalRequest, MoneroKeyImageSyncStepAck, MoneroKeyImageSyncStepRequest, MoneroLiveRefreshFinalAck, MoneroLiveRefreshFinalRequest, MoneroLiveRefreshStartAck, MoneroLiveRefreshStartRequest, MoneroLiveRefreshStepAck, MoneroLiveRefreshStepRequest, MoneroMultisigKLRki, MoneroNetworkType, MoneroOutputEntry, MoneroRctKeyPublic, MoneroRingCtSig, MoneroSubAddressIndicesList, MoneroTransactionAllInputsSetAck, MoneroTransactionAllInputsSetRequest, MoneroTransactionAllOutSetAck, MoneroTransactionAllOutSetRequest, MoneroTransactionData, MoneroTransactionDestinationEntry, MoneroTransactionFinalAck, MoneroTransactionFinalRequest, MoneroTransactionInitAck, MoneroTransactionInitRequest, MoneroTransactionInputViniAck, MoneroTransactionInputViniRequest, MoneroTransactionInputsPermutationAck, MoneroTransactionInputsPermutationRequest, MoneroTransactionRsigData, MoneroTransactionSetInputAck, MoneroTransactionSetInputRequest, MoneroTransactionSetOutputAck, MoneroTransactionSetOutputRequest, MoneroTransactionSignInputAck, MoneroTransactionSignInputRequest, MoneroTransactionSourceEntry, MoneroTransferDetails, MoneroWatchKey, MultisigRedeemScriptType, NEMAddress, NEMAggregateModification, NEMCosignatoryModification, NEMDecryptMessage, NEMDecryptedMessage, NEMGetAddress, NEMImportanceTransfer, NEMImportanceTransferMode, NEMModificationType, NEMMosaic, NEMMosaicCreation, NEMMosaicDefinition, NEMMosaicLevy, NEMMosaicSupplyChange, NEMProvisionNamespace, NEMSignTx, NEMSignedTx, NEMSupplyChangeType, NEMTransactionCommon, NEMTransfer, NFTWriteData, NFTWriteInfo, NearAddress, NearGetAddress, NearSignTx, NearSignedTx, NeoAddress, NeoGetAddress, NeoSignTx, NeoSignedTx, NervosAddress, NervosGetAddress, NervosSignTx, NervosSignedTx, NervosTxAck, NervosTxRequest, NexaAddress, NexaGetAddress, NexaSignTx, NexaSignedTx, NexaTxInputAck, NexaTxInputRequest, NextU2FCounter, Nonce, NostrDecryptMessage, NostrDecryptedMessage, NostrEncryptMessage, NostrEncryptedMessage, NostrGetPublicKey, NostrPublicKey, NostrSignEvent, NostrSignSchnorr, NostrSignedEvent, NostrSignedSchnorr, OneKeyDeviceCommType, OneKeyDeviceInfo, OneKeyDeviceInfoBase, OneKeyDeviceInfoWithSession, OneKeyDeviceType, OneKeyMobileDeviceInfo, OneKeySEState, OneKeySeType, OnekeyFeatures, OnekeyGetFeatures, OutputScriptType, OwnershipId, OwnershipProof, PROTOCOL_V1_CHUNK_PAYLOAD_SIZE, PROTOCOL_V1_ENVELOPE_HEADER_SIZE, PROTOCOL_V1_HEADER_BYTE, PROTOCOL_V1_MESSAGE_HEADER_SIZE, PROTOCOL_V1_REPORT_ID, PROTOCOL_V1_USB_PACKET_SIZE, PROTOCOL_V2_BLE_FILE_CHUNK_SIZE, PROTOCOL_V2_BLE_FILE_READ_CHUNK_SIZE, PROTOCOL_V2_BLE_FRAME_MAX_BYTES, PROTOCOL_V2_CHANNEL_BLE_UART, PROTOCOL_V2_CHANNEL_SOCKET, PROTOCOL_V2_CHANNEL_USB, PROTOCOL_V2_FILE_CHUNK_SIZE, PROTOCOL_V2_FRAME_MAX_BYTES, PROTOCOL_V2_PACKET_SRC_COMMAND, PROTOCOL_V2_SYS_MESSAGE_THRESHOLD, PROTOCOL_V2_WEBUSB_FILE_CHUNK_SIZE, PROTOCOL_V2_WRITE_WATCHDOG_TIMEOUT_MS, PassphraseAck, PassphraseRequest, PassphraseState, Path, PaymentRequestMemo, PinMatrixAck, PinMatrixRequest, PinMatrixRequestType, Ping, PolkadotAddress, PolkadotGetAddress, PolkadotSignTx, PolkadotSignedTx, PortfolioUpdate, PreauthorizedRequest, PrevInput, PrevOutput, PrevTx, ProtocolInfo, ProtocolInfoRequest, ProtocolType, ProtocolV1, ProtocolV2, ProtocolV2CallContext, ProtocolV2CallOptions, ProtocolV2Capability, ProtocolV2DeviceInfo, ProtocolV2FailureType, ProtocolV2FrameAssembler, ProtocolV2LinkAdapter, ProtocolV2LinkErrorClassification, ProtocolV2LinkManager, ProtocolV2LinkManagerOptions, ProtocolV2Schemas, ProtocolV2SequenceCursor, ProtocolV2Session, ProtocolV2SessionOptions, ProtocolV2UsbTransportBase, ProtocolV2UsbTransportBaseOptions, PublicKey, PublicKeyMultiple, ReadSEPublicCert, ReadSEPublicKey, Reboot, RebootToBoardloader, RebootToBootloader, RebootType, RecoveryDevice, RecoveryDeviceType, RefundMemo, RequestType, ResetDevice, ResourceAck, ResourceRequest, ResourceType, ResourceUpdate, ResourceUpload, RippleAddress, RippleGetAddress, RipplePayment, RippleSignTx, RippleSignedTx, SEMessageSignature, SEPublicCert, SEPublicKey, SESignMessage, SafetyCheckLevel, ScdoAddress, ScdoGetAddress, ScdoSignMessage, ScdoSignTx, ScdoSignedMessage, ScdoSignedTx, ScdoTxAck, SdProtect, SdProtectOperationType, SeedRequestType, SelfTest, SetBusy, SetU2FCounter, SetWallpaper, SignIdentity, SignMessage, SignPsbt, SignTx, SignedIdentity, SignedPsbt, SolanaAddress, SolanaGetAddress, SolanaMessageSignature, SolanaOffChainMessageFormat, SolanaOffChainMessageVersion, SolanaSignOffChainMessage, SolanaSignTx, SolanaSignUnsafeMessage, SolanaSignedTx, SolanaTxATADetails, SolanaTxExtraInfo, SpiFlashData, SpiFlashRead, SpiFlashWrite, StarcoinAddress, StarcoinGetAddress, StarcoinGetPublicKey, StarcoinMessageSignature, StarcoinPublicKey, StarcoinSignMessage, StarcoinSignTx, StarcoinSignedTx, StarcoinVerifyMessage, StartSession, StellarAccountMergeOp, StellarAddress, StellarAllowTrustOp, StellarAsset, StellarAssetType, StellarBumpSequenceOp, StellarChangeTrustOp, StellarCreateAccountOp, StellarCreatePassiveSellOfferOp, StellarGetAddress, StellarInvokeHostFunctionOp, StellarManageBuyOfferOp, StellarManageDataOp, StellarManageSellOfferOp, StellarMemoType, StellarPathPaymentStrictReceiveOp, StellarPathPaymentStrictSendOp, StellarPaymentOp, StellarRequestType, StellarSetOptionsOp, StellarSignTx, StellarSignedTx, StellarSignerType, StellarSorobanDataAck, StellarSorobanDataRequest, StellarTxOpRequest, Success, SuiAddress, SuiGetAddress, SuiMessageSignature, SuiSignMessage, SuiSignTx, SuiSignedTx, SuiTxAck, SuiTxRequest, TextMemo, TezosAddress, TezosBallotOp, TezosBallotType, TezosContractID, TezosContractType, TezosDelegationOp, TezosGetAddress, TezosGetPublicKey, TezosManagerTransfer, TezosOriginationOp, TezosParametersManager, TezosProposalOp, TezosPublicKey, TezosRevealOp, TezosSignTx, TezosSignedTx, TezosTransactionOp, TonAddress, TonGetAddress, TonSignData, TonSignDataType, TonSignMessage, TonSignProof, TonSignedData, TonSignedMessage, TonSignedProof, TonTxAck, TonWalletVersion, TonWorkChain, Transport, TransportCallOptions, TronAddress, TronCancelAllUnfreezeV2Contract, TronContract, TronDelegateResourceContract, TronFreezeBalanceContract, TronFreezeBalanceV2Contract, TronGetAddress, TronMessageSignature, TronMessageType, TronResourceCode, TronSignMessage, TronSignTx, TronSignedTx, TronTransferContract, TronTriggerSmartContract, TronUnDelegateResourceContract, TronUnfreezeBalanceContract, TronUnfreezeBalanceV2Contract, TronVoteWitnessContract, TronWithdrawBalanceContract, TronWithdrawExpireUnfreezeContract, TxAck, TxAckInput, TxAckInputWrapper, TxAckOutput, TxAckOutputWrapper, TxAckPaymentRequest, TxAckPrevExtraData, TxAckPrevExtraDataWrapper, TxAckPrevInput, TxAckPrevInputWrapper, TxAckPrevMeta, TxAckPrevOutput, TxAckPrevOutputWrapper, TxAckResponse, TxInput, TxInputType, TxOutput, TxOutputBinType, TxOutputType, TxRequest, TxRequestDetailsType, TxRequestSerializedType, TypedCall, UintType, UnLockDevice, UnLockDeviceResponse, UnlockPath, UnlockedPathRequest, UpgradeFileHeader, VerifyMessage, ViewAmount, ViewDetail, ViewRawData, ViewSignLayout, ViewSignPage, ViewTip, ViewTipType, ViewVerifyPage, Vote, WL_OperationType, Wallpaper, WallpaperTarget, WipeDevice, WordAck, WordRequest, WordRequestType, WriteSEPrivateKey, WriteSEPublicCert, ZoomRequest, bytesToHex, concatUint8Arrays, _default as default, experimental_field, experimental_message, facotry, getErrorMessage, hexToBytes, probeProtocolV2, index as protocolV1, protocolV2Codec as protocolV2, withProtocolTimeout };