@trezor/connect 9.3.1-beta.3 → 9.4.1-beta.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/CHANGELOG.md +158 -102
- package/README.md +1 -1
- package/lib/api/binance/api/index.js +4 -6
- package/lib/api/bitcoin/Fees.d.ts +2 -2
- package/lib/api/bitcoin/outputs.d.ts +1 -1
- package/lib/api/bitcoin/refTx.d.ts +2 -2
- package/lib/api/cardano/api/index.js +6 -8
- package/lib/api/cardano/cardanoInputs.d.ts +10 -10
- package/lib/api/cardano/cardanoOutputs.d.ts +23 -23
- package/lib/api/cardano/cardanoTokenBundle.d.ts +6 -6
- package/lib/api/common/Discovery.d.ts +0 -1
- package/lib/api/common/paramsValidator.js +2 -2
- package/lib/api/composeTransaction.js +3 -0
- package/lib/api/eos/api/index.js +3 -5
- package/lib/api/eos/eosSignTx.d.ts +4 -4
- package/lib/api/eos/eosSignTx.js +2 -2
- package/lib/api/ethereum/api/ethereumSignTypedData.d.ts +68 -68
- package/lib/api/ethereum/api/index.js +7 -9
- package/lib/api/ethereum/ethereumDefinitions.d.ts +23 -23
- package/lib/api/ethereum/ethereumSignTypedData.js +3 -4
- package/lib/api/firmware/calculateFirmwareHash.d.ts +0 -1
- package/lib/api/firmware/parseFirmwareHeaders.d.ts +0 -1
- package/lib/api/firmware/uploadFirmware.d.ts +6 -1
- package/lib/api/firmware/verifyAuthenticityProof.d.ts +0 -1
- package/lib/api/getAccountInfo.d.ts +38 -38
- package/lib/api/getCoinInfo.d.ts +3 -3
- package/lib/api/getDeviceState.d.ts +2 -1
- package/lib/api/getDeviceState.js +6 -3
- package/lib/api/getFeatures.d.ts +10 -10
- package/lib/api/index.js +49 -51
- package/lib/api/nem/api/index.js +3 -5
- package/lib/api/pushTransaction.js +1 -1
- package/lib/api/ripple/api/index.js +3 -5
- package/lib/api/signTransaction.js +3 -0
- package/lib/api/solana/api/index.js +4 -6
- package/lib/api/stellar/api/index.js +3 -5
- package/lib/api/tezos/api/index.js +4 -6
- package/lib/api/tezos/tezosSignTx.js +2 -2
- package/lib/backend/Blockchain.d.ts +2 -2
- package/lib/backend/BlockchainLink.d.ts +2 -2
- package/lib/constants/nem.d.ts +3 -3
- package/lib/core/AbstractMethod.d.ts +8 -6
- package/lib/core/AbstractMethod.js +26 -3
- package/lib/core/index.d.ts +0 -1
- package/lib/core/index.js +45 -54
- package/lib/core/onCallFirmwareUpdate.js +7 -2
- package/lib/data/DataManager.d.ts +5 -31
- package/lib/data/coinInfo.d.ts +15 -21
- package/lib/data/config.d.ts +5 -31
- package/lib/data/config.js +8 -5
- package/lib/data/deviceAuthenticityConfig.js +32 -14
- package/lib/data/deviceAuthenticityConfigTypes.d.ts +28 -28
- package/lib/data/firmwareInfo.d.ts +2 -2
- package/lib/data/firmwareInfo.js +8 -7
- package/lib/data/models.js +3 -3
- package/lib/data/version.d.ts +1 -1
- package/lib/data/version.js +1 -1
- package/lib/device/Device.d.ts +52 -19
- package/lib/device/Device.js +87 -73
- package/lib/device/DeviceCommands.d.ts +9 -9
- package/lib/device/DeviceCommands.js +10 -10
- package/lib/device/DeviceList.js +60 -83
- package/lib/device/StateStorage.d.ts +15 -0
- package/lib/device/StateStorage.js +40 -0
- package/lib/device/checkFirmwareRevision.js +0 -4
- package/lib/events/device.d.ts +0 -1
- package/lib/events/device.js +0 -1
- package/lib/events/ui-request.d.ts +2 -1
- package/lib/factory.d.ts +0 -1
- package/lib/index.d.ts +0 -1
- package/lib/types/api/applySettings.d.ts +14 -14
- package/lib/types/api/authenticateDevice.d.ts +30 -30
- package/lib/types/api/authorizeCoinjoin.d.ts +10 -10
- package/lib/types/api/binance/index.d.ts +152 -152
- package/lib/types/api/bitcoin/index.d.ts +12 -12
- package/lib/types/api/cancelCoinjoinAuthorization.d.ts +2 -2
- package/lib/types/api/cardano/index.d.ts +556 -556
- package/lib/types/api/changeLanguage.d.ts +7 -7
- package/lib/types/api/cipherKeyValue.d.ts +8 -8
- package/lib/types/api/eos/index.d.ts +633 -633
- package/lib/types/api/ethereum/index.d.ts +124 -124
- package/lib/types/api/firmwareUpdate.d.ts +6 -6
- package/lib/types/api/getAccountDescriptor.d.ts +5 -5
- package/lib/types/api/getAddress.d.ts +33 -33
- package/lib/types/api/getDeviceState.d.ts +3 -1
- package/lib/types/api/getOwnershipId.d.ts +25 -25
- package/lib/types/api/getOwnershipProof.d.ts +29 -29
- package/lib/types/api/getPublicKey.d.ts +25 -25
- package/lib/types/api/nem/index.d.ts +707 -707
- package/lib/types/api/nemGetAddress.d.ts +7 -7
- package/lib/types/api/pushTransaction.d.ts +4 -4
- package/lib/types/api/recoveryDevice.d.ts +10 -10
- package/lib/types/api/requestLogin.d.ts +28 -28
- package/lib/types/api/ripple/index.d.ts +28 -28
- package/lib/types/api/solana/index.d.ts +28 -28
- package/lib/types/api/stellar/index.d.ts +745 -745
- package/lib/types/api/tezos/index.d.ts +129 -129
- package/lib/types/api/unlockPath.d.ts +3 -3
- package/lib/types/coinInfo.d.ts +246 -246
- package/lib/types/device.d.ts +9 -1
- package/lib/types/fees.d.ts +22 -22
- package/lib/types/firmware.d.ts +1 -1
- package/lib/types/params.d.ts +20 -19
- package/lib/utils/assetUtils.js +1 -1
- package/lib/utils/assets-browser.d.ts +1 -1
- package/lib/utils/assets.js +1 -2
- package/lib/utils/debug.d.ts +2 -2
- package/lib/utils/deviceFeaturesUtils.d.ts +1 -1
- package/lib/utils/hdnodeUtils.d.ts +1 -191
- package/lib/utils/hdnodeUtils.js +2 -2
- package/lib/utils/pathUtils.d.ts +1 -191
- package/lib/utils/promiseUtils.d.ts +1 -1
- package/lib/utils/uiPromiseManager.d.ts +2 -2
- package/package.json +17 -15
|
@@ -7,86 +7,86 @@ type Params = (Omit<EthereumSignTypedDataParams<EthereumSignTypedDataTypes>, 'pa
|
|
|
7
7
|
network?: EthereumNetworkInfo;
|
|
8
8
|
definitions?: MessagesSchema.EthereumDefinitions;
|
|
9
9
|
};
|
|
10
|
-
declare const Params: import("@sinclair/typebox").TIntersect<[import("@sinclair/typebox").TUnion<[import("@
|
|
11
|
-
data: import("@
|
|
12
|
-
types: import("@
|
|
13
|
-
EIP712Domain: import("@sinclair/typebox").TArray<import("@
|
|
14
|
-
name: import("@sinclair/typebox").TString;
|
|
15
|
-
type: import("@sinclair/typebox").TString;
|
|
10
|
+
declare const Params: import("@sinclair/typebox/build/esm/index.mjs").TIntersect<[import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@trezor/schema-utils").TObject<{
|
|
11
|
+
data: import("@trezor/schema-utils").TObject<{
|
|
12
|
+
types: import("@trezor/schema-utils").TObject<{
|
|
13
|
+
EIP712Domain: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@trezor/schema-utils").TObject<{
|
|
14
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
15
|
+
type: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
16
16
|
}>>;
|
|
17
17
|
}>;
|
|
18
|
-
primaryType: import("@sinclair/typebox").TString;
|
|
19
|
-
domain: import("@
|
|
20
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
21
|
-
version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
22
|
-
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>>;
|
|
23
|
-
verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
24
|
-
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
|
|
18
|
+
primaryType: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
19
|
+
domain: import("@trezor/schema-utils").TObject<{
|
|
20
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
21
|
+
version: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
22
|
+
chainId: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TNumber, import("@sinclair/typebox/build/esm/index.mjs").TBigInt, import("@sinclair/typebox/build/esm/index.mjs").TString]>>;
|
|
23
|
+
verifyingContract: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
24
|
+
salt: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox/build/esm/index.mjs").TString]>>;
|
|
25
25
|
}>;
|
|
26
|
-
message: import("@
|
|
26
|
+
message: import("@trezor/schema-utils").TObject<{}>;
|
|
27
27
|
}>;
|
|
28
|
-
metamask_v4_compat: import("@sinclair/typebox").TBoolean;
|
|
29
|
-
domain_separator_hash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
30
|
-
message_hash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
31
|
-
}>, import("@
|
|
32
|
-
data: import("@
|
|
33
|
-
types: import("@
|
|
34
|
-
EIP712Domain: import("@sinclair/typebox").TArray<import("@
|
|
35
|
-
name: import("@sinclair/typebox").TString;
|
|
36
|
-
type: import("@sinclair/typebox").TString;
|
|
28
|
+
metamask_v4_compat: import("@sinclair/typebox/build/esm/index.mjs").TBoolean;
|
|
29
|
+
domain_separator_hash: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUndefined>;
|
|
30
|
+
message_hash: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUndefined>;
|
|
31
|
+
}>, import("@trezor/schema-utils").TObject<{
|
|
32
|
+
data: import("@trezor/schema-utils").TObject<{
|
|
33
|
+
types: import("@trezor/schema-utils").TObject<{
|
|
34
|
+
EIP712Domain: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@trezor/schema-utils").TObject<{
|
|
35
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
36
|
+
type: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
37
37
|
}>>;
|
|
38
38
|
}>;
|
|
39
|
-
primaryType: import("@sinclair/typebox").TString;
|
|
40
|
-
domain: import("@
|
|
41
|
-
name: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
42
|
-
version: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
43
|
-
chainId: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TNumber, import("@sinclair/typebox").TBigInt, import("@sinclair/typebox").TString]>>;
|
|
44
|
-
verifyingContract: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
45
|
-
salt: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox").TString]>>;
|
|
39
|
+
primaryType: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
40
|
+
domain: import("@trezor/schema-utils").TObject<{
|
|
41
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
42
|
+
version: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
43
|
+
chainId: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TNumber, import("@sinclair/typebox/build/esm/index.mjs").TBigInt, import("@sinclair/typebox/build/esm/index.mjs").TString]>>;
|
|
44
|
+
verifyingContract: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
45
|
+
salt: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer, import("@sinclair/typebox/build/esm/index.mjs").TString]>>;
|
|
46
46
|
}>;
|
|
47
|
-
message: import("@
|
|
47
|
+
message: import("@trezor/schema-utils").TObject<{}>;
|
|
48
48
|
}>;
|
|
49
|
-
metamask_v4_compat: import("@sinclair/typebox").TBoolean;
|
|
50
|
-
domain_separator_hash: import("@sinclair/typebox").TString;
|
|
51
|
-
message_hash: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
52
|
-
}>]>, import("@
|
|
53
|
-
address_n: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TNumber>;
|
|
54
|
-
network: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TIntersect<[import("@
|
|
55
|
-
label: import("@sinclair/typebox").TString;
|
|
56
|
-
name: import("@sinclair/typebox").TString;
|
|
57
|
-
shortcut: import("@sinclair/typebox").TString;
|
|
58
|
-
slip44: import("@sinclair/typebox").TNumber;
|
|
59
|
-
support: import("@
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
49
|
+
metamask_v4_compat: import("@sinclair/typebox/build/esm/index.mjs").TBoolean;
|
|
50
|
+
domain_separator_hash: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
51
|
+
message_hash: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
52
|
+
}>]>, import("@trezor/schema-utils").TObject<{
|
|
53
|
+
address_n: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TNumber>;
|
|
54
|
+
network: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TIntersect<[import("@trezor/schema-utils").TObject<{
|
|
55
|
+
label: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
56
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
57
|
+
shortcut: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
58
|
+
slip44: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
59
|
+
support: import("@trezor/schema-utils").TObject<{
|
|
60
|
+
connect: import("@sinclair/typebox/build/esm/index.mjs").TBoolean;
|
|
61
|
+
T1B1: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<false>]>;
|
|
62
|
+
T2T1: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<false>]>;
|
|
63
|
+
T2B1: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<false>]>;
|
|
64
|
+
T3B1: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<false>]>;
|
|
65
|
+
T3T1: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TString, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<false>]>;
|
|
66
66
|
}>;
|
|
67
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
68
|
-
blockchainLink: import("@sinclair/typebox").TOptional<import("@
|
|
69
|
-
type: import("@sinclair/typebox").TString;
|
|
70
|
-
url: import("@sinclair/typebox").TArray<import("@sinclair/typebox").TString>;
|
|
67
|
+
decimals: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
68
|
+
blockchainLink: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
69
|
+
type: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
70
|
+
url: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
71
71
|
}>>;
|
|
72
|
-
blockTime: import("@sinclair/typebox").TNumber;
|
|
73
|
-
minFee: import("@sinclair/typebox").TNumber;
|
|
74
|
-
maxFee: import("@sinclair/typebox").TNumber;
|
|
75
|
-
defaultFees: import("@sinclair/typebox").TArray<import("@
|
|
76
|
-
label: import("@sinclair/typebox").TUnion<[import("@sinclair/typebox").TLiteral<"high">, import("@sinclair/typebox").TLiteral<"normal">, import("@sinclair/typebox").TLiteral<"economy">, import("@sinclair/typebox").TLiteral<"low">, import("@sinclair/typebox").TLiteral<"custom">]>;
|
|
77
|
-
feePerUnit: import("@sinclair/typebox").TString;
|
|
78
|
-
blocks: import("@sinclair/typebox").TNumber;
|
|
79
|
-
feeLimit: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
80
|
-
feePerTx: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TString>;
|
|
72
|
+
blockTime: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
73
|
+
minFee: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
74
|
+
maxFee: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
75
|
+
defaultFees: import("@sinclair/typebox/build/esm/index.mjs").TArray<import("@trezor/schema-utils").TObject<{
|
|
76
|
+
label: import("@sinclair/typebox/build/esm/index.mjs").TUnion<[import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"high">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"normal">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"economy">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"low">, import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"custom">]>;
|
|
77
|
+
feePerUnit: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
78
|
+
blocks: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
79
|
+
feeLimit: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
80
|
+
feePerTx: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TString>;
|
|
81
81
|
}>>;
|
|
82
|
-
}>, import("@
|
|
83
|
-
type: import("@sinclair/typebox").TLiteral<"ethereum">;
|
|
84
|
-
chainId: import("@sinclair/typebox").TNumber;
|
|
85
|
-
network: import("@sinclair/typebox").TOptional<import("@sinclair/typebox").TUndefined>;
|
|
82
|
+
}>, import("@trezor/schema-utils").TObject<{
|
|
83
|
+
type: import("@sinclair/typebox/build/esm/index.mjs").TLiteral<"ethereum">;
|
|
84
|
+
chainId: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
85
|
+
network: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@sinclair/typebox/build/esm/index.mjs").TUndefined>;
|
|
86
86
|
}>]>>;
|
|
87
|
-
definitions: import("@sinclair/typebox").TOptional<import("@
|
|
88
|
-
encoded_network: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
89
|
-
encoded_token: import("@sinclair/typebox").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
87
|
+
definitions: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
88
|
+
encoded_network: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
89
|
+
encoded_token: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils/lib/custom-types/array-buffer").TArrayBuffer>;
|
|
90
90
|
}>>;
|
|
91
91
|
}>]>;
|
|
92
92
|
export default class EthereumSignTypedData extends AbstractMethod<'ethereumSignTypedData', Params> {
|
|
@@ -1,19 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.ethereumVerifyMessage = exports.ethereumSignTypedData = exports.ethereumSignTransaction = exports.ethereumSignMessage = exports.ethereumGetPublicKey = exports.ethereumGetAddress = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
7
5
|
var ethereumGetAddress_1 = require("./ethereumGetAddress");
|
|
8
|
-
Object.defineProperty(exports, "ethereumGetAddress", { enumerable: true, get: function () { return __importDefault(ethereumGetAddress_1).default; } });
|
|
6
|
+
Object.defineProperty(exports, "ethereumGetAddress", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumGetAddress_1).default; } });
|
|
9
7
|
var ethereumGetPublicKey_1 = require("./ethereumGetPublicKey");
|
|
10
|
-
Object.defineProperty(exports, "ethereumGetPublicKey", { enumerable: true, get: function () { return __importDefault(ethereumGetPublicKey_1).default; } });
|
|
8
|
+
Object.defineProperty(exports, "ethereumGetPublicKey", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumGetPublicKey_1).default; } });
|
|
11
9
|
var ethereumSignMessage_1 = require("./ethereumSignMessage");
|
|
12
|
-
Object.defineProperty(exports, "ethereumSignMessage", { enumerable: true, get: function () { return __importDefault(ethereumSignMessage_1).default; } });
|
|
10
|
+
Object.defineProperty(exports, "ethereumSignMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignMessage_1).default; } });
|
|
13
11
|
var ethereumSignTransaction_1 = require("./ethereumSignTransaction");
|
|
14
|
-
Object.defineProperty(exports, "ethereumSignTransaction", { enumerable: true, get: function () { return __importDefault(ethereumSignTransaction_1).default; } });
|
|
12
|
+
Object.defineProperty(exports, "ethereumSignTransaction", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignTransaction_1).default; } });
|
|
15
13
|
var ethereumSignTypedData_1 = require("./ethereumSignTypedData");
|
|
16
|
-
Object.defineProperty(exports, "ethereumSignTypedData", { enumerable: true, get: function () { return __importDefault(ethereumSignTypedData_1).default; } });
|
|
14
|
+
Object.defineProperty(exports, "ethereumSignTypedData", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumSignTypedData_1).default; } });
|
|
17
15
|
var ethereumVerifyMessage_1 = require("./ethereumVerifyMessage");
|
|
18
|
-
Object.defineProperty(exports, "ethereumVerifyMessage", { enumerable: true, get: function () { return __importDefault(ethereumVerifyMessage_1).default; } });
|
|
16
|
+
Object.defineProperty(exports, "ethereumVerifyMessage", { enumerable: true, get: function () { return tslib_1.__importDefault(ethereumVerifyMessage_1).default; } });
|
|
19
17
|
//# sourceMappingURL=index.js.map
|
|
@@ -11,34 +11,34 @@ export declare const getEthereumDefinitions: ({ chainId, slip44, contractAddress
|
|
|
11
11
|
encoded_token?: ArrayBuffer | undefined;
|
|
12
12
|
}>;
|
|
13
13
|
export type EthereumNetworkDefinitionDecoded = Static<typeof EthereumNetworkDefinitionDecoded>;
|
|
14
|
-
export declare const EthereumNetworkDefinitionDecoded: import("@
|
|
15
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
16
|
-
name: import("@sinclair/typebox").TString;
|
|
17
|
-
slip44: import("@sinclair/typebox").TNumber;
|
|
18
|
-
symbol: import("@sinclair/typebox").TString;
|
|
14
|
+
export declare const EthereumNetworkDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
15
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
16
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
17
|
+
slip44: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
18
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
19
19
|
}>;
|
|
20
20
|
export type EthereumTokenDefinitionDecoded = Static<typeof EthereumTokenDefinitionDecoded>;
|
|
21
|
-
export declare const EthereumTokenDefinitionDecoded: import("@
|
|
22
|
-
address: import("@sinclair/typebox").TString;
|
|
23
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
24
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
25
|
-
name: import("@sinclair/typebox").TString;
|
|
26
|
-
symbol: import("@sinclair/typebox").TString;
|
|
21
|
+
export declare const EthereumTokenDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
22
|
+
address: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
23
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
24
|
+
decimals: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
25
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
26
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
27
27
|
}>;
|
|
28
28
|
export type EthereumDefinitionDecoded = Static<typeof EthereumDefinitionDecoded>;
|
|
29
|
-
export declare const EthereumDefinitionDecoded: import("@
|
|
30
|
-
network: import("@sinclair/typebox").TOptional<import("@
|
|
31
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
32
|
-
name: import("@sinclair/typebox").TString;
|
|
33
|
-
slip44: import("@sinclair/typebox").TNumber;
|
|
34
|
-
symbol: import("@sinclair/typebox").TString;
|
|
29
|
+
export declare const EthereumDefinitionDecoded: import("@trezor/schema-utils").TObject<{
|
|
30
|
+
network: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
31
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
32
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
33
|
+
slip44: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
34
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
35
35
|
}>>;
|
|
36
|
-
token: import("@sinclair/typebox").TOptional<import("@
|
|
37
|
-
address: import("@sinclair/typebox").TString;
|
|
38
|
-
chain_id: import("@sinclair/typebox").TNumber;
|
|
39
|
-
decimals: import("@sinclair/typebox").TNumber;
|
|
40
|
-
name: import("@sinclair/typebox").TString;
|
|
41
|
-
symbol: import("@sinclair/typebox").TString;
|
|
36
|
+
token: import("@sinclair/typebox/build/esm/index.mjs").TOptional<import("@trezor/schema-utils").TObject<{
|
|
37
|
+
address: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
38
|
+
chain_id: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
39
|
+
decimals: import("@sinclair/typebox/build/esm/index.mjs").TNumber;
|
|
40
|
+
name: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
41
|
+
symbol: import("@sinclair/typebox/build/esm/index.mjs").TString;
|
|
42
42
|
}>>;
|
|
43
43
|
}>;
|
|
44
44
|
export declare const decodeEthereumDefinition: (encodedDefinition: MessagesSchema.EthereumDefinitions) => EthereumDefinitionDecoded;
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.parseArrayType = parseArrayType;
|
|
4
|
+
exports.encodeData = encodeData;
|
|
5
|
+
exports.getFieldType = getFieldType;
|
|
4
6
|
const bigNumber_1 = require("@trezor/utils/lib/bigNumber");
|
|
5
7
|
const constants_1 = require("../../constants");
|
|
6
8
|
const formatUtils_1 = require("../../utils/formatUtils");
|
|
@@ -18,7 +20,6 @@ function parseArrayType(arrayTypeName) {
|
|
|
18
20
|
arraySize: parseInt(arraySize, 10) || null,
|
|
19
21
|
};
|
|
20
22
|
}
|
|
21
|
-
exports.parseArrayType = parseArrayType;
|
|
22
23
|
function twosComplement(number, bytes) {
|
|
23
24
|
if (bytes < 1 || bytes > 32) {
|
|
24
25
|
throw constants_1.ERRORS.TypedError('Runtime', 'Int byte size must be between 1 and 32 (8 and 256 bits)');
|
|
@@ -67,7 +68,6 @@ function encodeData(typeName, data) {
|
|
|
67
68
|
}
|
|
68
69
|
throw constants_1.ERRORS.TypedError('Runtime', `Unsupported data type for direct field encoding: ${typeName}`);
|
|
69
70
|
}
|
|
70
|
-
exports.encodeData = encodeData;
|
|
71
71
|
const paramTypesMap = {
|
|
72
72
|
string: constants_1.PROTO.EthereumDataType.STRING,
|
|
73
73
|
bool: constants_1.PROTO.EthereumDataType.BOOL,
|
|
@@ -115,5 +115,4 @@ function getFieldType(typeName, types) {
|
|
|
115
115
|
}
|
|
116
116
|
throw constants_1.ERRORS.TypedError('Runtime', `No type definition specified: ${typeName}`);
|
|
117
117
|
}
|
|
118
|
-
exports.getFieldType = getFieldType;
|
|
119
118
|
//# sourceMappingURL=ethereumSignTypedData.js.map
|
|
@@ -2,7 +2,12 @@ import { CoreEventMessage } from '../../events';
|
|
|
2
2
|
import { PROTO } from '../../constants';
|
|
3
3
|
import type { Device } from '../../device/Device';
|
|
4
4
|
import type { TypedCall } from '../../device/DeviceCommands';
|
|
5
|
-
export declare const uploadFirmware: (typedCall: TypedCall, postMessage: (message: CoreEventMessage) => void, device: Device, { payload }: PROTO.FirmwareUpload) => Promise<
|
|
5
|
+
export declare const uploadFirmware: (typedCall: TypedCall, postMessage: (message: CoreEventMessage) => void, device: Device, { payload }: PROTO.FirmwareUpload) => Promise<{
|
|
6
|
+
type: "Success";
|
|
7
|
+
message: {
|
|
8
|
+
message: string;
|
|
9
|
+
};
|
|
10
|
+
} | {
|
|
6
11
|
message: string;
|
|
7
12
|
}>;
|
|
8
13
|
//# sourceMappingURL=uploadFirmware.d.ts.map
|
|
@@ -31,44 +31,44 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
31
31
|
balance: string;
|
|
32
32
|
availableBalance: string;
|
|
33
33
|
empty: boolean;
|
|
34
|
-
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[]
|
|
35
|
-
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses
|
|
34
|
+
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[];
|
|
35
|
+
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses;
|
|
36
36
|
history: {
|
|
37
37
|
total: number;
|
|
38
|
-
tokens?: number
|
|
38
|
+
tokens?: number;
|
|
39
39
|
unconfirmed: number;
|
|
40
|
-
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[]
|
|
41
|
-
txids?: string[]
|
|
42
|
-
addrTxCount?: number
|
|
40
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
41
|
+
txids?: string[];
|
|
42
|
+
addrTxCount?: number;
|
|
43
43
|
};
|
|
44
44
|
misc?: {
|
|
45
|
-
nonce?: string
|
|
46
|
-
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo
|
|
47
|
-
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[]
|
|
45
|
+
nonce?: string;
|
|
46
|
+
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo;
|
|
47
|
+
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[];
|
|
48
48
|
addressAliases?: {
|
|
49
49
|
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
50
|
-
}
|
|
51
|
-
sequence?: number
|
|
52
|
-
reserve?: string
|
|
53
|
-
rewards?: string
|
|
50
|
+
};
|
|
51
|
+
sequence?: number;
|
|
52
|
+
reserve?: string;
|
|
53
|
+
rewards?: string;
|
|
54
54
|
staking?: {
|
|
55
55
|
address: string;
|
|
56
56
|
isActive: boolean;
|
|
57
57
|
rewards: string;
|
|
58
58
|
poolId: string | null;
|
|
59
|
-
}
|
|
60
|
-
owner?: string
|
|
61
|
-
rent?: number
|
|
62
|
-
}
|
|
59
|
+
};
|
|
60
|
+
owner?: string;
|
|
61
|
+
rent?: number;
|
|
62
|
+
};
|
|
63
63
|
page?: {
|
|
64
64
|
index: number;
|
|
65
65
|
size: number;
|
|
66
66
|
total: number;
|
|
67
|
-
}
|
|
67
|
+
};
|
|
68
68
|
marker?: {
|
|
69
69
|
ledger: number;
|
|
70
70
|
seq: number;
|
|
71
|
-
}
|
|
71
|
+
};
|
|
72
72
|
path: string;
|
|
73
73
|
}>;
|
|
74
74
|
discover(request: Request): Promise<{
|
|
@@ -77,44 +77,44 @@ export default class GetAccountInfo extends AbstractMethod<'getAccountInfo', Req
|
|
|
77
77
|
balance: string;
|
|
78
78
|
availableBalance: string;
|
|
79
79
|
empty: boolean;
|
|
80
|
-
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[]
|
|
81
|
-
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses
|
|
80
|
+
tokens?: import("@trezor/blockchain-link-types/lib/common").TokenInfo[];
|
|
81
|
+
addresses?: import("@trezor/blockchain-link-types/lib/common").AccountAddresses;
|
|
82
82
|
history: {
|
|
83
83
|
total: number;
|
|
84
|
-
tokens?: number
|
|
84
|
+
tokens?: number;
|
|
85
85
|
unconfirmed: number;
|
|
86
|
-
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[]
|
|
87
|
-
txids?: string[]
|
|
88
|
-
addrTxCount?: number
|
|
86
|
+
transactions?: import("@trezor/blockchain-link-types/lib/common").Transaction[];
|
|
87
|
+
txids?: string[];
|
|
88
|
+
addrTxCount?: number;
|
|
89
89
|
};
|
|
90
90
|
misc?: {
|
|
91
|
-
nonce?: string
|
|
92
|
-
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo
|
|
93
|
-
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[]
|
|
91
|
+
nonce?: string;
|
|
92
|
+
contractInfo?: import("@trezor/blockchain-link-types/lib/blockbook-api").ContractInfo;
|
|
93
|
+
stakingPools?: import("@trezor/blockchain-link-types/lib/blockbook-api").StakingPool[];
|
|
94
94
|
addressAliases?: {
|
|
95
95
|
[key: string]: import("@trezor/blockchain-link-types/lib/blockbook-api").AddressAlias;
|
|
96
|
-
}
|
|
97
|
-
sequence?: number
|
|
98
|
-
reserve?: string
|
|
99
|
-
rewards?: string
|
|
96
|
+
};
|
|
97
|
+
sequence?: number;
|
|
98
|
+
reserve?: string;
|
|
99
|
+
rewards?: string;
|
|
100
100
|
staking?: {
|
|
101
101
|
address: string;
|
|
102
102
|
isActive: boolean;
|
|
103
103
|
rewards: string;
|
|
104
104
|
poolId: string | null;
|
|
105
|
-
}
|
|
106
|
-
owner?: string
|
|
107
|
-
rent?: number
|
|
108
|
-
}
|
|
105
|
+
};
|
|
106
|
+
owner?: string;
|
|
107
|
+
rent?: number;
|
|
108
|
+
};
|
|
109
109
|
page?: {
|
|
110
110
|
index: number;
|
|
111
111
|
size: number;
|
|
112
112
|
total: number;
|
|
113
|
-
}
|
|
113
|
+
};
|
|
114
114
|
marker?: {
|
|
115
115
|
ledger: number;
|
|
116
116
|
seq: number;
|
|
117
|
-
}
|
|
117
|
+
};
|
|
118
118
|
path: string;
|
|
119
119
|
}>;
|
|
120
120
|
dispose(): void;
|
package/lib/api/getCoinInfo.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
29
29
|
defaultFees: {
|
|
30
30
|
feeLimit?: string | undefined;
|
|
31
31
|
feePerTx?: string | undefined;
|
|
32
|
-
label: "
|
|
32
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
33
33
|
feePerUnit: string;
|
|
34
34
|
blocks: number;
|
|
35
35
|
}[];
|
|
@@ -86,7 +86,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
86
86
|
defaultFees: {
|
|
87
87
|
feeLimit?: string | undefined;
|
|
88
88
|
feePerTx?: string | undefined;
|
|
89
|
-
label: "
|
|
89
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
90
90
|
feePerUnit: string;
|
|
91
91
|
blocks: number;
|
|
92
92
|
}[];
|
|
@@ -118,7 +118,7 @@ export default class GetCoinInfo extends AbstractMethod<'getCoinInfo', Params> {
|
|
|
118
118
|
defaultFees: {
|
|
119
119
|
feeLimit?: string | undefined;
|
|
120
120
|
feePerTx?: string | undefined;
|
|
121
|
-
label: "
|
|
121
|
+
label: "normal" | "custom" | "high" | "economy" | "low";
|
|
122
122
|
feePerUnit: string;
|
|
123
123
|
blocks: number;
|
|
124
124
|
}[];
|
|
@@ -2,7 +2,8 @@ import { AbstractMethod } from '../core/AbstractMethod';
|
|
|
2
2
|
export default class GetDeviceState extends AbstractMethod<'getDeviceState'> {
|
|
3
3
|
init(): void;
|
|
4
4
|
run(): Promise<{
|
|
5
|
-
state: string
|
|
5
|
+
state: `${string}@${string}:${number}`;
|
|
6
|
+
_state: import("..").DeviceState;
|
|
6
7
|
}>;
|
|
7
8
|
}
|
|
8
9
|
//# sourceMappingURL=getDeviceState.d.ts.map
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const AbstractMethod_1 = require("../core/AbstractMethod");
|
|
4
|
+
const constants_1 = require("../constants");
|
|
4
5
|
class GetDeviceState extends AbstractMethod_1.AbstractMethod {
|
|
5
6
|
init() {
|
|
6
7
|
this.requiredPermissions = [];
|
|
7
8
|
}
|
|
8
9
|
run() {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
10
|
+
const state = this.device.getState();
|
|
11
|
+
if (!(state === null || state === void 0 ? void 0 : state.staticSessionId)) {
|
|
12
|
+
throw constants_1.ERRORS.TypedError('Runtime', 'Device state not set');
|
|
13
|
+
}
|
|
14
|
+
return Promise.resolve({ state: state.staticSessionId, _state: state });
|
|
12
15
|
}
|
|
13
16
|
}
|
|
14
17
|
exports.default = GetDeviceState;
|
package/lib/api/getFeatures.d.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { AbstractMethod } from '../core/AbstractMethod';
|
|
|
2
2
|
export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
3
3
|
init(): void;
|
|
4
4
|
run(): Promise<{
|
|
5
|
-
hide_passphrase_from_host?: boolean | undefined;
|
|
6
|
-
haptic_feedback?: boolean | undefined;
|
|
7
5
|
_passphrase_cached?: boolean | undefined;
|
|
8
6
|
busy?: boolean | undefined;
|
|
9
7
|
homescreen_format?: "Toif" | "Jpeg" | "ToiG" | undefined;
|
|
8
|
+
hide_passphrase_from_host?: boolean | undefined;
|
|
10
9
|
unit_color?: number | undefined;
|
|
11
10
|
unit_btconly?: boolean | undefined;
|
|
12
11
|
homescreen_width?: number | undefined;
|
|
@@ -14,16 +13,9 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
14
13
|
bootloader_locked?: boolean | undefined;
|
|
15
14
|
language_version_matches?: boolean | undefined;
|
|
16
15
|
unit_packaging?: number | undefined;
|
|
16
|
+
haptic_feedback?: boolean | undefined;
|
|
17
17
|
recovery_type?: "NormalRecovery" | "DryRun" | "UnlockRepeatedBackup" | undefined;
|
|
18
18
|
optiga_sec?: number | undefined;
|
|
19
|
-
flags: number | null;
|
|
20
|
-
language: string | null;
|
|
21
|
-
label: string | null;
|
|
22
|
-
auto_lock_delay_ms: number | null;
|
|
23
|
-
display_rotation: number | null;
|
|
24
|
-
passphrase_always_on_device: boolean | null;
|
|
25
|
-
safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
|
|
26
|
-
experimental_features: boolean | null;
|
|
27
19
|
vendor: string;
|
|
28
20
|
major_version: number;
|
|
29
21
|
minor_version: number;
|
|
@@ -32,6 +24,8 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
32
24
|
device_id: string | null;
|
|
33
25
|
pin_protection: boolean | null;
|
|
34
26
|
passphrase_protection: boolean | null;
|
|
27
|
+
language: string | null;
|
|
28
|
+
label: string | null;
|
|
35
29
|
initialized: boolean | null;
|
|
36
30
|
revision: string | null;
|
|
37
31
|
bootloader_hash: string | null;
|
|
@@ -39,6 +33,7 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
39
33
|
unlocked: boolean | null;
|
|
40
34
|
firmware_present: boolean | null;
|
|
41
35
|
backup_availability: "NotAvailable" | "Required" | "Available" | null;
|
|
36
|
+
flags: number | null;
|
|
42
37
|
model: string;
|
|
43
38
|
fw_major: number | null;
|
|
44
39
|
fw_minor: number | null;
|
|
@@ -53,6 +48,11 @@ export default class GetFeatures extends AbstractMethod<'getFeatures'> {
|
|
|
53
48
|
sd_protection: boolean | null;
|
|
54
49
|
wipe_code_protection: boolean | null;
|
|
55
50
|
session_id: string | null;
|
|
51
|
+
passphrase_always_on_device: boolean | null;
|
|
52
|
+
safety_checks: "Strict" | "PromptAlways" | "PromptTemporarily" | null;
|
|
53
|
+
auto_lock_delay_ms: number | null;
|
|
54
|
+
display_rotation: number | null;
|
|
55
|
+
experimental_features: boolean | null;
|
|
56
56
|
internal_model: import("@trezor/protobuf").DeviceModelInternal;
|
|
57
57
|
}>;
|
|
58
58
|
}
|