@onekeyfe/hd-transport 1.2.2-alpha.1 → 1.2.2-alpha.2

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onekeyfe/hd-transport",
3
- "version": "1.2.2-alpha.1",
3
+ "version": "1.2.2-alpha.2",
4
4
  "description": "Transport layer abstractions and utilities for OneKey hardware SDK.",
5
5
  "author": "OneKey",
6
6
  "homepage": "https://github.com/OneKeyHQ/hardware-js-sdk#readme",
@@ -28,5 +28,5 @@
28
28
  "long": "^4.0.0",
29
29
  "protobufjs": "^6.11.2"
30
30
  },
31
- "gitHead": "66f45610d36e06a46ac82cd49a4b0e1a128f19d4"
31
+ "gitHead": "fc914d0361028f1012ca764e53f996b9893b40f9"
32
32
  }
@@ -4558,12 +4558,6 @@ export enum CommandFlags {
4558
4558
  Factory_Only = 1,
4559
4559
  }
4560
4560
 
4561
- // experimental_message
4562
- export type experimental_message = {};
4563
-
4564
- // experimental_field
4565
- export type experimental_field = {};
4566
-
4567
4561
  export type TextMemo = {
4568
4562
  text: string;
4569
4563
  };
@@ -4669,6 +4663,12 @@ export type UiAnimationRequest = {
4669
4663
  type?: UiAnimationType;
4670
4664
  };
4671
4665
 
4666
+ // experimental_message
4667
+ export type experimental_message = {};
4668
+
4669
+ // experimental_field
4670
+ export type experimental_field = {};
4671
+
4672
4672
  // ProtocolInfoRequest
4673
4673
  export type ProtocolInfoRequest = {
4674
4674
  eventless_wallet_session?: boolean;
@@ -5032,7 +5032,6 @@ export enum DeviceSessionSeedDomain {
5032
5032
  export type DeviceSessionGet = {
5033
5033
  session_id?: string;
5034
5034
  btc_test_address?: string;
5035
- seed_domains: DeviceSessionSeedDomain[];
5036
5035
  };
5037
5036
 
5038
5037
  // DeviceSession
@@ -5056,6 +5055,7 @@ export type DeviceSessionAskPin = {
5056
5055
  export type DeviceSessionAskPassphrase = {
5057
5056
  passphrase?: string;
5058
5057
  on_device: boolean;
5058
+ seed_domains: DeviceSessionSeedDomain[];
5059
5059
  };
5060
5060
 
5061
5061
  export enum DeviceSessionAskPin_FailureSubCodes {
@@ -5247,6 +5247,12 @@ export type ViewDetail = {
5247
5247
  has_icon: boolean;
5248
5248
  };
5249
5249
 
5250
+ // ViewCustomField
5251
+ export type ViewCustomField = {
5252
+ key: string;
5253
+ value: string;
5254
+ };
5255
+
5250
5256
  export enum ViewTipType {
5251
5257
  Default = 0,
5252
5258
  Highlight = 1,
@@ -5263,10 +5269,30 @@ export type ViewTip = {
5263
5269
  text_arg?: string;
5264
5270
  };
5265
5271
 
5266
- // ViewRawData
5267
- export type ViewRawData = {
5272
+ // ViewActionCard
5273
+ export type ViewActionCard = {
5268
5274
  initial_data: string;
5269
- placeholder: number;
5275
+ };
5276
+
5277
+ // ViewContentPreview
5278
+ export type ViewContentPreview = {
5279
+ content_key: number;
5280
+ preview: string;
5281
+ total_bytes?: number;
5282
+ };
5283
+
5284
+ // ViewContentEntry
5285
+ export type ViewContentEntry = {
5286
+ entry_key: number;
5287
+ value: string;
5288
+ };
5289
+
5290
+ // ViewContentPage
5291
+ export type ViewContentPage = {
5292
+ page_index: number;
5293
+ page_count: number;
5294
+ chunk?: string;
5295
+ entry?: ViewContentEntry;
5270
5296
  };
5271
5297
 
5272
5298
  export enum ViewSignLayout {
@@ -5284,11 +5310,21 @@ export type ViewSignPage = {
5284
5310
  amount?: UintType;
5285
5311
  general: ViewDetail[];
5286
5312
  tip?: ViewTip;
5287
- raw_data?: ViewRawData;
5313
+ action_card?: ViewActionCard;
5288
5314
  slide_to_confirm?: boolean;
5289
5315
  layout?: ViewSignLayout;
5290
5316
  title_id?: number;
5291
5317
  title_arg?: string;
5318
+ content?: ViewContentPreview;
5319
+ custom_field?: ViewCustomField;
5320
+ };
5321
+
5322
+ // ViewWarningPage
5323
+ export type ViewWarningPage = {
5324
+ title_id: number;
5325
+ text_id: number;
5326
+ text_arg?: string;
5327
+ cancellable?: boolean;
5292
5328
  };
5293
5329
 
5294
5330
  // ViewVerifyPage
@@ -5301,6 +5337,7 @@ export type ViewVerifyPage = {
5301
5337
  value_key?: number;
5302
5338
  title_id?: number;
5303
5339
  chain_id?: number;
5340
+ content?: ViewContentPreview;
5304
5341
  };
5305
5342
 
5306
5343
  export enum ProtocolV2FailureType {
@@ -5900,8 +5937,6 @@ export type MessageType = {
5900
5937
  TronSignMessage: TronSignMessage;
5901
5938
  TronMessageSignature: TronMessageSignature;
5902
5939
  facotry: facotry;
5903
- experimental_message: experimental_message;
5904
- experimental_field: experimental_field;
5905
5940
  TextMemo: TextMemo;
5906
5941
  RefundMemo: RefundMemo;
5907
5942
  CoinPurchaseMemo: CoinPurchaseMemo;
@@ -5917,6 +5952,8 @@ export type MessageType = {
5917
5952
  UnlockPath: UnlockPath;
5918
5953
  UnlockedPathRequest: UnlockedPathRequest;
5919
5954
  UiAnimationRequest: UiAnimationRequest;
5955
+ experimental_message: experimental_message;
5956
+ experimental_field: experimental_field;
5920
5957
  ProtocolInfoRequest: ProtocolInfoRequest;
5921
5958
  ProtocolInfo: ProtocolInfo;
5922
5959
  DeviceReboot: DeviceReboot;
@@ -5981,9 +6018,14 @@ export type MessageType = {
5981
6018
  PortfolioUpdate: PortfolioUpdate;
5982
6019
  ViewAmount: ViewAmount;
5983
6020
  ViewDetail: ViewDetail;
6021
+ ViewCustomField: ViewCustomField;
5984
6022
  ViewTip: ViewTip;
5985
- ViewRawData: ViewRawData;
6023
+ ViewActionCard: ViewActionCard;
6024
+ ViewContentPreview: ViewContentPreview;
6025
+ ViewContentEntry: ViewContentEntry;
6026
+ ViewContentPage: ViewContentPage;
5986
6027
  ViewSignPage: ViewSignPage;
6028
+ ViewWarningPage: ViewWarningPage;
5987
6029
  ViewVerifyPage: ViewVerifyPage;
5988
6030
  };
5989
6031