@onekeyfe/hd-transport 1.2.0-alpha.3 → 1.2.0-alpha.30
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/README.md +1 -1
- package/__tests__/messages.test.js +142 -0
- package/__tests__/protocol-v2-ble-frame-writer.test.js +119 -0
- package/__tests__/protocol-v2-link-manager.test.js +389 -0
- package/__tests__/protocol-v2-usb-transport-base.test.js +330 -0
- package/__tests__/protocol-v2.test.js +555 -119
- package/dist/constants.d.ts +6 -3
- package/dist/constants.d.ts.map +1 -1
- package/dist/index.d.ts +981 -278
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +759 -247
- package/dist/protocols/index.d.ts +14 -5
- package/dist/protocols/index.d.ts.map +1 -1
- package/dist/protocols/v2/ble-frame-writer.d.ts +15 -0
- package/dist/protocols/v2/ble-frame-writer.d.ts.map +1 -0
- package/dist/protocols/v2/constants.d.ts +1 -0
- package/dist/protocols/v2/constants.d.ts.map +1 -1
- package/dist/protocols/v2/decode.d.ts +13 -2
- package/dist/protocols/v2/decode.d.ts.map +1 -1
- package/dist/protocols/v2/encode.d.ts +2 -3
- package/dist/protocols/v2/encode.d.ts.map +1 -1
- package/dist/protocols/v2/errors.d.ts +8 -0
- package/dist/protocols/v2/errors.d.ts.map +1 -0
- package/dist/protocols/v2/frame-assembler.d.ts.map +1 -1
- package/dist/protocols/v2/index.d.ts +2 -1
- package/dist/protocols/v2/index.d.ts.map +1 -1
- package/dist/protocols/v2/link-manager.d.ts +38 -0
- package/dist/protocols/v2/link-manager.d.ts.map +1 -0
- package/dist/protocols/v2/sequence-cursor.d.ts +5 -0
- package/dist/protocols/v2/sequence-cursor.d.ts.map +1 -0
- package/dist/protocols/v2/session.d.ts +19 -5
- package/dist/protocols/v2/session.d.ts.map +1 -1
- package/dist/protocols/v2/usb-transport-base.d.ts +32 -0
- package/dist/protocols/v2/usb-transport-base.d.ts.map +1 -0
- package/dist/serialization/protobuf/decode.d.ts.map +1 -1
- package/dist/types/messages.d.ts +523 -158
- package/dist/types/messages.d.ts.map +1 -1
- package/dist/types/transport.d.ts +13 -3
- package/dist/types/transport.d.ts.map +1 -1
- package/messages-protocol-v2.json +796 -620
- package/package.json +3 -3
- package/scripts/protobuf-build.sh +96 -310
- package/scripts/protobuf-patches/index.js +1 -0
- package/scripts/protobuf-types.js +19 -1
- package/src/constants.ts +29 -15
- package/src/index.ts +11 -1
- package/src/protocols/index.ts +39 -40
- package/src/protocols/v2/ble-frame-writer.ts +77 -0
- package/src/protocols/v2/constants.ts +1 -0
- package/src/protocols/v2/crc8.ts +1 -1
- package/src/protocols/v2/decode.ts +71 -37
- package/src/protocols/v2/encode.ts +2 -28
- package/src/protocols/v2/errors.ts +25 -0
- package/src/protocols/v2/frame-assembler.ts +6 -4
- package/src/protocols/v2/index.ts +2 -1
- package/src/protocols/v2/link-manager.ts +186 -0
- package/src/protocols/v2/sequence-cursor.ts +10 -0
- package/src/protocols/v2/session.ts +157 -201
- package/src/protocols/v2/usb-transport-base.ts +213 -0
- package/src/serialization/protobuf/decode.ts +4 -1
- package/src/types/messages.ts +623 -181
- package/src/types/transport.ts +13 -3
- package/dist/protocols/v2/debug.d.ts +0 -13
- package/dist/protocols/v2/debug.d.ts.map +0 -1
- package/src/protocols/v2/debug.ts +0 -26
|
@@ -100,7 +100,6 @@
|
|
|
100
100
|
"MessageType_GetFeatures": 55,
|
|
101
101
|
"MessageType_SdProtect": 79,
|
|
102
102
|
"MessageType_ChangeWipeCode": 82,
|
|
103
|
-
"MessageType_EndSession": 83,
|
|
104
103
|
"MessageType_DoPreauthorized": 84,
|
|
105
104
|
"MessageType_PreauthorizedRequest": 85,
|
|
106
105
|
"MessageType_CancelAuthorization": 86,
|
|
@@ -196,6 +195,7 @@
|
|
|
196
195
|
"MessageType_EthereumGnosisSafeTxAck": 20118,
|
|
197
196
|
"MessageType_EthereumGnosisSafeTxRequest": 20119,
|
|
198
197
|
"MessageType_EthereumSignTxEIP7702OneKey": 20120,
|
|
198
|
+
"MessageType_EthereumSignTypedDataQR": 20121,
|
|
199
199
|
"MessageType_NEMGetAddress": 67,
|
|
200
200
|
"MessageType_NEMAddress": 68,
|
|
201
201
|
"MessageType_NEMSignTx": 69,
|
|
@@ -419,8 +419,6 @@
|
|
|
419
419
|
"MessageType_TonSignProof": 11905,
|
|
420
420
|
"MessageType_TonSignedProof": 11906,
|
|
421
421
|
"MessageType_TonTxAck": 11907,
|
|
422
|
-
"MessageType_TonSignData": 11908,
|
|
423
|
-
"MessageType_TonSignedData": 11909,
|
|
424
422
|
"MessageType_ScdoGetAddress": 12001,
|
|
425
423
|
"MessageType_ScdoAddress": 12002,
|
|
426
424
|
"MessageType_ScdoSignTx": 12003,
|
|
@@ -450,46 +448,45 @@
|
|
|
450
448
|
"MessageType_NeoAddress": 12302,
|
|
451
449
|
"MessageType_NeoSignTx": 12303,
|
|
452
450
|
"MessageType_NeoSignedTx": 12304,
|
|
453
|
-
"
|
|
454
|
-
"
|
|
455
|
-
"
|
|
456
|
-
"
|
|
457
|
-
"
|
|
458
|
-
"
|
|
459
|
-
"
|
|
460
|
-
"
|
|
461
|
-
"
|
|
462
|
-
"
|
|
463
|
-
"
|
|
464
|
-
"
|
|
465
|
-
"MessageType_Wallpaper": 10035,
|
|
466
|
-
"MessageType_ResourceRequest": 10020,
|
|
467
|
-
"MessageType_ResourceAck": 10021,
|
|
468
|
-
"MessageType_ResourceUpdate": 10022,
|
|
469
|
-
"MessageType_ListResDir": 10023,
|
|
470
|
-
"MessageType_FileInfoList": 10024,
|
|
471
|
-
"MessageType_OnekeyGetFeatures": 10025,
|
|
472
|
-
"MessageType_OnekeyFeatures": 10026,
|
|
473
|
-
"MessageType_WriteSEPrivateKey": 10027,
|
|
474
|
-
"MessageType_GetPassphraseState": 10028,
|
|
475
|
-
"MessageType_PassphraseState": 10029,
|
|
476
|
-
"MessageType_UnLockDevice": 10030,
|
|
477
|
-
"MessageType_UnLockDeviceResponse": 10031,
|
|
478
|
-
"MessageType_FactoryDeviceInfoSettings": 60000,
|
|
479
|
-
"MessageType_FactoryGetDeviceInfo": 60001,
|
|
480
|
-
"MessageType_FactoryDeviceInfo": 60002,
|
|
481
|
-
"MessageType_GetProtoVersion": 60200,
|
|
482
|
-
"MessageType_ProtoVersion": 60201,
|
|
483
|
-
"MessageType_StartSession": 60205,
|
|
451
|
+
"MessageType_UiviewShowAddressRequest": 30200,
|
|
452
|
+
"MessageType_UiviewShowPublicKeyRequest": 30201,
|
|
453
|
+
"MessageType_UiviewConfirmTxRequest": 30202,
|
|
454
|
+
"MessageType_UiviewConfirmSignMessageRequest": 30203,
|
|
455
|
+
"MessageType_UiviewResponse": 30204,
|
|
456
|
+
"MessageType_DeviceFactoryInfoSet": 60000,
|
|
457
|
+
"MessageType_DeviceFactoryInfoGet": 60001,
|
|
458
|
+
"MessageType_DeviceFactoryInfo": 60002,
|
|
459
|
+
"MessageType_DeviceFactoryPermanentLock": 60003,
|
|
460
|
+
"MessageType_DeviceFactoryTest": 60004,
|
|
461
|
+
"MessageType_ProtocolInfoRequest": 60200,
|
|
462
|
+
"MessageType_ProtocolInfo": 60201,
|
|
484
463
|
"MessageType_Ping": 60206,
|
|
485
464
|
"MessageType_Success": 60207,
|
|
486
465
|
"MessageType_Failure": 60208,
|
|
487
|
-
"
|
|
488
|
-
"
|
|
466
|
+
"MessageType_DeviceReboot": 60400,
|
|
467
|
+
"MessageType_DeviceSettings": 60410,
|
|
468
|
+
"MessageType_DeviceSettingsGet": 60411,
|
|
469
|
+
"MessageType_DeviceSettingsSet": 60412,
|
|
470
|
+
"MessageType_DeviceSettingsPageShow": 60413,
|
|
471
|
+
"MessageType_DeviceCertificate": 60420,
|
|
472
|
+
"MessageType_DeviceCertificateWrite": 60421,
|
|
473
|
+
"MessageType_DeviceCertificateRead": 60422,
|
|
474
|
+
"MessageType_DeviceCertificateSignature": 60423,
|
|
475
|
+
"MessageType_DeviceCertificateSign": 60424,
|
|
476
|
+
"MessageType_SetWallpaper": 60430,
|
|
477
|
+
"MessageType_GetWallpaper": 60431,
|
|
478
|
+
"MessageType_Wallpaper": 60432,
|
|
479
|
+
"MessageType_DeviceInfoGet": 60600,
|
|
489
480
|
"MessageType_DeviceInfo": 60601,
|
|
490
|
-
"
|
|
491
|
-
"
|
|
492
|
-
"
|
|
481
|
+
"MessageType_DeviceStatusGet": 60602,
|
|
482
|
+
"MessageType_DeviceStatus": 60603,
|
|
483
|
+
"MessageType_DevGetOnboardingStatus": 60604,
|
|
484
|
+
"MessageType_DevOnboardingStatus": 60605,
|
|
485
|
+
"MessageType_DeviceSessionGet": 60606,
|
|
486
|
+
"MessageType_DeviceSession": 60607,
|
|
487
|
+
"MessageType_DeviceSessionAskPin": 60608,
|
|
488
|
+
"MessageType_DeviceSessionAskPassphrase": 60609,
|
|
489
|
+
"MessageType_FilesystemPermissionFix": 60800,
|
|
493
490
|
"MessageType_FilesystemPathInfo": 60801,
|
|
494
491
|
"MessageType_FilesystemPathInfoQuery": 60802,
|
|
495
492
|
"MessageType_FilesystemFile": 60803,
|
|
@@ -501,11 +498,17 @@
|
|
|
501
498
|
"MessageType_FilesystemDirMake": 60809,
|
|
502
499
|
"MessageType_FilesystemDirRemove": 60810,
|
|
503
500
|
"MessageType_FilesystemFormat": 60811,
|
|
504
|
-
"
|
|
505
|
-
"
|
|
506
|
-
"
|
|
507
|
-
"
|
|
508
|
-
}
|
|
501
|
+
"MessageType_DeviceFirmwareUpdateRequest": 61000,
|
|
502
|
+
"MessageType_DeviceFirmwareUpdateStatusGet": 61001,
|
|
503
|
+
"MessageType_DeviceFirmwareUpdateStatus": 61002,
|
|
504
|
+
"MessageType_PortfolioUpdate": 61200
|
|
505
|
+
},
|
|
506
|
+
"reserved": [
|
|
507
|
+
[90, 92],
|
|
508
|
+
[114, 122],
|
|
509
|
+
[300, 304],
|
|
510
|
+
[309, 312]
|
|
511
|
+
]
|
|
509
512
|
},
|
|
510
513
|
"AlephiumGetAddress": {
|
|
511
514
|
"fields": {
|
|
@@ -4094,207 +4097,6 @@
|
|
|
4094
4097
|
}
|
|
4095
4098
|
}
|
|
4096
4099
|
},
|
|
4097
|
-
"DebugLinkInput": {
|
|
4098
|
-
"fields": {
|
|
4099
|
-
"x": {
|
|
4100
|
-
"type": "uint32",
|
|
4101
|
-
"id": 1
|
|
4102
|
-
},
|
|
4103
|
-
"y": {
|
|
4104
|
-
"type": "uint32",
|
|
4105
|
-
"id": 2
|
|
4106
|
-
},
|
|
4107
|
-
"duration_ms": {
|
|
4108
|
-
"type": "uint32",
|
|
4109
|
-
"id": 3
|
|
4110
|
-
},
|
|
4111
|
-
"x_end": {
|
|
4112
|
-
"type": "uint32",
|
|
4113
|
-
"id": 4
|
|
4114
|
-
},
|
|
4115
|
-
"y_end": {
|
|
4116
|
-
"type": "uint32",
|
|
4117
|
-
"id": 5
|
|
4118
|
-
}
|
|
4119
|
-
}
|
|
4120
|
-
},
|
|
4121
|
-
"DebugLinkLayout": {
|
|
4122
|
-
"fields": {
|
|
4123
|
-
"lines": {
|
|
4124
|
-
"rule": "repeated",
|
|
4125
|
-
"type": "string",
|
|
4126
|
-
"id": 1
|
|
4127
|
-
}
|
|
4128
|
-
}
|
|
4129
|
-
},
|
|
4130
|
-
"DebugLinkReseedRandom": {
|
|
4131
|
-
"fields": {
|
|
4132
|
-
"value": {
|
|
4133
|
-
"type": "uint32",
|
|
4134
|
-
"id": 1
|
|
4135
|
-
}
|
|
4136
|
-
}
|
|
4137
|
-
},
|
|
4138
|
-
"DebugLinkRecordScreen": {
|
|
4139
|
-
"fields": {
|
|
4140
|
-
"target_directory": {
|
|
4141
|
-
"type": "string",
|
|
4142
|
-
"id": 1
|
|
4143
|
-
}
|
|
4144
|
-
}
|
|
4145
|
-
},
|
|
4146
|
-
"DebugLinkGetState": {
|
|
4147
|
-
"fields": {
|
|
4148
|
-
"wait_word_list": {
|
|
4149
|
-
"type": "bool",
|
|
4150
|
-
"id": 1
|
|
4151
|
-
},
|
|
4152
|
-
"wait_word_pos": {
|
|
4153
|
-
"type": "bool",
|
|
4154
|
-
"id": 2
|
|
4155
|
-
},
|
|
4156
|
-
"wait_layout": {
|
|
4157
|
-
"type": "bool",
|
|
4158
|
-
"id": 3
|
|
4159
|
-
}
|
|
4160
|
-
}
|
|
4161
|
-
},
|
|
4162
|
-
"DebugLinkState": {
|
|
4163
|
-
"fields": {
|
|
4164
|
-
"layout": {
|
|
4165
|
-
"type": "bytes",
|
|
4166
|
-
"id": 1
|
|
4167
|
-
},
|
|
4168
|
-
"pin": {
|
|
4169
|
-
"type": "string",
|
|
4170
|
-
"id": 2
|
|
4171
|
-
},
|
|
4172
|
-
"matrix": {
|
|
4173
|
-
"type": "string",
|
|
4174
|
-
"id": 3
|
|
4175
|
-
},
|
|
4176
|
-
"mnemonic_secret": {
|
|
4177
|
-
"type": "bytes",
|
|
4178
|
-
"id": 4
|
|
4179
|
-
},
|
|
4180
|
-
"node": {
|
|
4181
|
-
"type": "HDNodeType",
|
|
4182
|
-
"id": 5
|
|
4183
|
-
},
|
|
4184
|
-
"passphrase_protection": {
|
|
4185
|
-
"type": "bool",
|
|
4186
|
-
"id": 6
|
|
4187
|
-
},
|
|
4188
|
-
"reset_word": {
|
|
4189
|
-
"type": "string",
|
|
4190
|
-
"id": 7
|
|
4191
|
-
},
|
|
4192
|
-
"reset_entropy": {
|
|
4193
|
-
"type": "bytes",
|
|
4194
|
-
"id": 8
|
|
4195
|
-
},
|
|
4196
|
-
"recovery_fake_word": {
|
|
4197
|
-
"type": "string",
|
|
4198
|
-
"id": 9
|
|
4199
|
-
},
|
|
4200
|
-
"recovery_word_pos": {
|
|
4201
|
-
"type": "uint32",
|
|
4202
|
-
"id": 10
|
|
4203
|
-
},
|
|
4204
|
-
"reset_word_pos": {
|
|
4205
|
-
"type": "uint32",
|
|
4206
|
-
"id": 11
|
|
4207
|
-
},
|
|
4208
|
-
"mnemonic_type": {
|
|
4209
|
-
"type": "BackupType",
|
|
4210
|
-
"id": 12
|
|
4211
|
-
},
|
|
4212
|
-
"layout_lines": {
|
|
4213
|
-
"rule": "repeated",
|
|
4214
|
-
"type": "string",
|
|
4215
|
-
"id": 13
|
|
4216
|
-
}
|
|
4217
|
-
}
|
|
4218
|
-
},
|
|
4219
|
-
"DebugLinkStop": {
|
|
4220
|
-
"fields": {}
|
|
4221
|
-
},
|
|
4222
|
-
"DebugLinkLog": {
|
|
4223
|
-
"fields": {
|
|
4224
|
-
"level": {
|
|
4225
|
-
"type": "uint32",
|
|
4226
|
-
"id": 1
|
|
4227
|
-
},
|
|
4228
|
-
"bucket": {
|
|
4229
|
-
"type": "string",
|
|
4230
|
-
"id": 2
|
|
4231
|
-
},
|
|
4232
|
-
"text": {
|
|
4233
|
-
"type": "string",
|
|
4234
|
-
"id": 3
|
|
4235
|
-
}
|
|
4236
|
-
}
|
|
4237
|
-
},
|
|
4238
|
-
"DebugLinkMemoryRead": {
|
|
4239
|
-
"fields": {
|
|
4240
|
-
"address": {
|
|
4241
|
-
"type": "uint32",
|
|
4242
|
-
"id": 1
|
|
4243
|
-
},
|
|
4244
|
-
"length": {
|
|
4245
|
-
"type": "uint32",
|
|
4246
|
-
"id": 2
|
|
4247
|
-
}
|
|
4248
|
-
}
|
|
4249
|
-
},
|
|
4250
|
-
"DebugLinkMemory": {
|
|
4251
|
-
"fields": {
|
|
4252
|
-
"memory": {
|
|
4253
|
-
"type": "bytes",
|
|
4254
|
-
"id": 1
|
|
4255
|
-
}
|
|
4256
|
-
}
|
|
4257
|
-
},
|
|
4258
|
-
"DebugLinkMemoryWrite": {
|
|
4259
|
-
"fields": {
|
|
4260
|
-
"address": {
|
|
4261
|
-
"type": "uint32",
|
|
4262
|
-
"id": 1
|
|
4263
|
-
},
|
|
4264
|
-
"memory": {
|
|
4265
|
-
"type": "bytes",
|
|
4266
|
-
"id": 2
|
|
4267
|
-
},
|
|
4268
|
-
"flash": {
|
|
4269
|
-
"type": "bool",
|
|
4270
|
-
"id": 3
|
|
4271
|
-
}
|
|
4272
|
-
}
|
|
4273
|
-
},
|
|
4274
|
-
"DebugLinkFlashErase": {
|
|
4275
|
-
"fields": {
|
|
4276
|
-
"sector": {
|
|
4277
|
-
"type": "uint32",
|
|
4278
|
-
"id": 1
|
|
4279
|
-
}
|
|
4280
|
-
}
|
|
4281
|
-
},
|
|
4282
|
-
"DebugLinkEraseSdCard": {
|
|
4283
|
-
"fields": {
|
|
4284
|
-
"format": {
|
|
4285
|
-
"type": "bool",
|
|
4286
|
-
"id": 1
|
|
4287
|
-
}
|
|
4288
|
-
}
|
|
4289
|
-
},
|
|
4290
|
-
"DebugLinkWatchLayout": {
|
|
4291
|
-
"fields": {
|
|
4292
|
-
"watch": {
|
|
4293
|
-
"type": "bool",
|
|
4294
|
-
"id": 1
|
|
4295
|
-
}
|
|
4296
|
-
}
|
|
4297
|
-
},
|
|
4298
4100
|
"EosGetPublicKey": {
|
|
4299
4101
|
"fields": {
|
|
4300
4102
|
"address_n": {
|
|
@@ -5602,6 +5404,37 @@
|
|
|
5602
5404
|
}
|
|
5603
5405
|
}
|
|
5604
5406
|
},
|
|
5407
|
+
"EthereumSignTypedDataQR": {
|
|
5408
|
+
"fields": {
|
|
5409
|
+
"address_n": {
|
|
5410
|
+
"rule": "repeated",
|
|
5411
|
+
"type": "uint32",
|
|
5412
|
+
"id": 1,
|
|
5413
|
+
"options": {
|
|
5414
|
+
"packed": false
|
|
5415
|
+
}
|
|
5416
|
+
},
|
|
5417
|
+
"json_data": {
|
|
5418
|
+
"type": "bytes",
|
|
5419
|
+
"id": 2
|
|
5420
|
+
},
|
|
5421
|
+
"chain_id": {
|
|
5422
|
+
"type": "uint64",
|
|
5423
|
+
"id": 3
|
|
5424
|
+
},
|
|
5425
|
+
"metamask_v4_compat": {
|
|
5426
|
+
"type": "bool",
|
|
5427
|
+
"id": 4,
|
|
5428
|
+
"options": {
|
|
5429
|
+
"default": true
|
|
5430
|
+
}
|
|
5431
|
+
},
|
|
5432
|
+
"request_id": {
|
|
5433
|
+
"type": "bytes",
|
|
5434
|
+
"id": 5
|
|
5435
|
+
}
|
|
5436
|
+
}
|
|
5437
|
+
},
|
|
5605
5438
|
"EthereumGetPublicKeyOneKey": {
|
|
5606
5439
|
"fields": {
|
|
5607
5440
|
"address_n": {
|
|
@@ -6355,6 +6188,28 @@
|
|
|
6355
6188
|
}
|
|
6356
6189
|
}
|
|
6357
6190
|
},
|
|
6191
|
+
"StartSession": {
|
|
6192
|
+
"fields": {
|
|
6193
|
+
"session_id": {
|
|
6194
|
+
"type": "bytes",
|
|
6195
|
+
"id": 1
|
|
6196
|
+
},
|
|
6197
|
+
"_skip_passphrase": {
|
|
6198
|
+
"type": "bool",
|
|
6199
|
+
"id": 2,
|
|
6200
|
+
"options": {
|
|
6201
|
+
"deprecated": true
|
|
6202
|
+
}
|
|
6203
|
+
},
|
|
6204
|
+
"derive_cardano": {
|
|
6205
|
+
"type": "bool",
|
|
6206
|
+
"id": 3
|
|
6207
|
+
}
|
|
6208
|
+
}
|
|
6209
|
+
},
|
|
6210
|
+
"EndSession": {
|
|
6211
|
+
"fields": {}
|
|
6212
|
+
},
|
|
6358
6213
|
"GetFeatures": {
|
|
6359
6214
|
"fields": {}
|
|
6360
6215
|
},
|
|
@@ -6550,15 +6405,15 @@
|
|
|
6550
6405
|
"type": "uint32",
|
|
6551
6406
|
"id": 500
|
|
6552
6407
|
},
|
|
6553
|
-
"
|
|
6408
|
+
"coprocessor_bt_name": {
|
|
6554
6409
|
"type": "string",
|
|
6555
6410
|
"id": 501
|
|
6556
6411
|
},
|
|
6557
|
-
"
|
|
6412
|
+
"coprocessor_version": {
|
|
6558
6413
|
"type": "string",
|
|
6559
6414
|
"id": 502
|
|
6560
6415
|
},
|
|
6561
|
-
"
|
|
6416
|
+
"coprocessor_bt_enable": {
|
|
6562
6417
|
"type": "bool",
|
|
6563
6418
|
"id": 503
|
|
6564
6419
|
},
|
|
@@ -6618,7 +6473,7 @@
|
|
|
6618
6473
|
"type": "bytes",
|
|
6619
6474
|
"id": 518
|
|
6620
6475
|
},
|
|
6621
|
-
"
|
|
6476
|
+
"romloader_version": {
|
|
6622
6477
|
"type": "string",
|
|
6623
6478
|
"id": 519
|
|
6624
6479
|
},
|
|
@@ -6634,19 +6489,19 @@
|
|
|
6634
6489
|
"type": "OneKeySeType",
|
|
6635
6490
|
"id": 601
|
|
6636
6491
|
},
|
|
6637
|
-
"
|
|
6492
|
+
"onekey_romloader_version": {
|
|
6638
6493
|
"type": "string",
|
|
6639
6494
|
"id": 602
|
|
6640
6495
|
},
|
|
6641
|
-
"
|
|
6496
|
+
"onekey_romloader_hash": {
|
|
6642
6497
|
"type": "bytes",
|
|
6643
6498
|
"id": 603
|
|
6644
6499
|
},
|
|
6645
|
-
"
|
|
6500
|
+
"onekey_bootloader_version": {
|
|
6646
6501
|
"type": "string",
|
|
6647
6502
|
"id": 604
|
|
6648
6503
|
},
|
|
6649
|
-
"
|
|
6504
|
+
"onekey_bootloader_hash": {
|
|
6650
6505
|
"type": "bytes",
|
|
6651
6506
|
"id": 605
|
|
6652
6507
|
},
|
|
@@ -6678,23 +6533,23 @@
|
|
|
6678
6533
|
"type": "string",
|
|
6679
6534
|
"id": 612
|
|
6680
6535
|
},
|
|
6681
|
-
"
|
|
6536
|
+
"onekey_bootloader_build_id": {
|
|
6682
6537
|
"type": "string",
|
|
6683
6538
|
"id": 613
|
|
6684
6539
|
},
|
|
6685
|
-
"
|
|
6540
|
+
"onekey_coprocessor_bt_name": {
|
|
6686
6541
|
"type": "string",
|
|
6687
6542
|
"id": 614
|
|
6688
6543
|
},
|
|
6689
|
-
"
|
|
6544
|
+
"onekey_coprocessor_version": {
|
|
6690
6545
|
"type": "string",
|
|
6691
6546
|
"id": 615
|
|
6692
6547
|
},
|
|
6693
|
-
"
|
|
6548
|
+
"onekey_coprocessor_build_id": {
|
|
6694
6549
|
"type": "string",
|
|
6695
6550
|
"id": 616
|
|
6696
6551
|
},
|
|
6697
|
-
"
|
|
6552
|
+
"onekey_coprocessor_hash": {
|
|
6698
6553
|
"type": "bytes",
|
|
6699
6554
|
"id": 617
|
|
6700
6555
|
},
|
|
@@ -6770,11 +6625,11 @@
|
|
|
6770
6625
|
"type": "OneKeyDeviceType",
|
|
6771
6626
|
"id": 1
|
|
6772
6627
|
},
|
|
6773
|
-
"
|
|
6628
|
+
"onekey_romloader_version": {
|
|
6774
6629
|
"type": "string",
|
|
6775
6630
|
"id": 2
|
|
6776
6631
|
},
|
|
6777
|
-
"
|
|
6632
|
+
"onekey_bootloader_version": {
|
|
6778
6633
|
"type": "string",
|
|
6779
6634
|
"id": 3
|
|
6780
6635
|
},
|
|
@@ -6782,11 +6637,11 @@
|
|
|
6782
6637
|
"type": "string",
|
|
6783
6638
|
"id": 4
|
|
6784
6639
|
},
|
|
6785
|
-
"
|
|
6640
|
+
"onekey_romloader_hash": {
|
|
6786
6641
|
"type": "bytes",
|
|
6787
6642
|
"id": 5
|
|
6788
6643
|
},
|
|
6789
|
-
"
|
|
6644
|
+
"onekey_bootloader_hash": {
|
|
6790
6645
|
"type": "bytes",
|
|
6791
6646
|
"id": 6
|
|
6792
6647
|
},
|
|
@@ -6794,11 +6649,11 @@
|
|
|
6794
6649
|
"type": "bytes",
|
|
6795
6650
|
"id": 7
|
|
6796
6651
|
},
|
|
6797
|
-
"
|
|
6652
|
+
"onekey_romloader_build_id": {
|
|
6798
6653
|
"type": "string",
|
|
6799
6654
|
"id": 8
|
|
6800
6655
|
},
|
|
6801
|
-
"
|
|
6656
|
+
"onekey_bootloader_build_id": {
|
|
6802
6657
|
"type": "string",
|
|
6803
6658
|
"id": 9
|
|
6804
6659
|
},
|
|
@@ -6810,19 +6665,19 @@
|
|
|
6810
6665
|
"type": "string",
|
|
6811
6666
|
"id": 11
|
|
6812
6667
|
},
|
|
6813
|
-
"
|
|
6668
|
+
"onekey_coprocessor_bt_name": {
|
|
6814
6669
|
"type": "string",
|
|
6815
6670
|
"id": 12
|
|
6816
6671
|
},
|
|
6817
|
-
"
|
|
6672
|
+
"onekey_coprocessor_version": {
|
|
6818
6673
|
"type": "string",
|
|
6819
6674
|
"id": 13
|
|
6820
6675
|
},
|
|
6821
|
-
"
|
|
6676
|
+
"onekey_coprocessor_build_id": {
|
|
6822
6677
|
"type": "string",
|
|
6823
6678
|
"id": 14
|
|
6824
6679
|
},
|
|
6825
|
-
"
|
|
6680
|
+
"onekey_coprocessor_hash": {
|
|
6826
6681
|
"type": "bytes",
|
|
6827
6682
|
"id": 15
|
|
6828
6683
|
},
|
|
@@ -6894,51 +6749,51 @@
|
|
|
6894
6749
|
"type": "string",
|
|
6895
6750
|
"id": 32
|
|
6896
6751
|
},
|
|
6897
|
-
"
|
|
6752
|
+
"onekey_se01_bootloader_version": {
|
|
6898
6753
|
"type": "string",
|
|
6899
6754
|
"id": 33
|
|
6900
6755
|
},
|
|
6901
|
-
"
|
|
6756
|
+
"onekey_se02_bootloader_version": {
|
|
6902
6757
|
"type": "string",
|
|
6903
6758
|
"id": 34
|
|
6904
6759
|
},
|
|
6905
|
-
"
|
|
6760
|
+
"onekey_se03_bootloader_version": {
|
|
6906
6761
|
"type": "string",
|
|
6907
6762
|
"id": 35
|
|
6908
6763
|
},
|
|
6909
|
-
"
|
|
6764
|
+
"onekey_se04_bootloader_version": {
|
|
6910
6765
|
"type": "string",
|
|
6911
6766
|
"id": 36
|
|
6912
6767
|
},
|
|
6913
|
-
"
|
|
6768
|
+
"onekey_se01_bootloader_hash": {
|
|
6914
6769
|
"type": "bytes",
|
|
6915
6770
|
"id": 37
|
|
6916
6771
|
},
|
|
6917
|
-
"
|
|
6772
|
+
"onekey_se02_bootloader_hash": {
|
|
6918
6773
|
"type": "bytes",
|
|
6919
6774
|
"id": 38
|
|
6920
6775
|
},
|
|
6921
|
-
"
|
|
6776
|
+
"onekey_se03_bootloader_hash": {
|
|
6922
6777
|
"type": "bytes",
|
|
6923
6778
|
"id": 39
|
|
6924
6779
|
},
|
|
6925
|
-
"
|
|
6780
|
+
"onekey_se04_bootloader_hash": {
|
|
6926
6781
|
"type": "bytes",
|
|
6927
6782
|
"id": 40
|
|
6928
6783
|
},
|
|
6929
|
-
"
|
|
6784
|
+
"onekey_se01_bootloader_build_id": {
|
|
6930
6785
|
"type": "string",
|
|
6931
6786
|
"id": 41
|
|
6932
6787
|
},
|
|
6933
|
-
"
|
|
6788
|
+
"onekey_se02_bootloader_build_id": {
|
|
6934
6789
|
"type": "string",
|
|
6935
6790
|
"id": 42
|
|
6936
6791
|
},
|
|
6937
|
-
"
|
|
6792
|
+
"onekey_se03_bootloader_build_id": {
|
|
6938
6793
|
"type": "string",
|
|
6939
6794
|
"id": 43
|
|
6940
6795
|
},
|
|
6941
|
-
"
|
|
6796
|
+
"onekey_se04_bootloader_build_id": {
|
|
6942
6797
|
"type": "string",
|
|
6943
6798
|
"id": 44
|
|
6944
6799
|
}
|
|
@@ -6955,9 +6810,6 @@
|
|
|
6955
6810
|
}
|
|
6956
6811
|
}
|
|
6957
6812
|
},
|
|
6958
|
-
"EndSession": {
|
|
6959
|
-
"fields": {}
|
|
6960
|
-
},
|
|
6961
6813
|
"ApplySettings": {
|
|
6962
6814
|
"fields": {
|
|
6963
6815
|
"language": {
|
|
@@ -7609,14 +7461,6 @@
|
|
|
7609
7461
|
"passphrase_state": {
|
|
7610
7462
|
"type": "string",
|
|
7611
7463
|
"id": 1
|
|
7612
|
-
},
|
|
7613
|
-
"_only_main_pin": {
|
|
7614
|
-
"type": "bool",
|
|
7615
|
-
"id": 2
|
|
7616
|
-
},
|
|
7617
|
-
"allow_create_attach_pin": {
|
|
7618
|
-
"type": "bool",
|
|
7619
|
-
"id": 3
|
|
7620
7464
|
}
|
|
7621
7465
|
}
|
|
7622
7466
|
},
|
|
@@ -11662,6 +11506,33 @@
|
|
|
11662
11506
|
}
|
|
11663
11507
|
}
|
|
11664
11508
|
},
|
|
11509
|
+
"UiAnimationType": {
|
|
11510
|
+
"values": {
|
|
11511
|
+
"Unknown": 0,
|
|
11512
|
+
"Signing": 1
|
|
11513
|
+
}
|
|
11514
|
+
},
|
|
11515
|
+
"UiAnimationCommand": {
|
|
11516
|
+
"values": {
|
|
11517
|
+
"CommandUnknown": 0,
|
|
11518
|
+
"Start": 1,
|
|
11519
|
+
"Stop": 2,
|
|
11520
|
+
"Refresh": 3
|
|
11521
|
+
}
|
|
11522
|
+
},
|
|
11523
|
+
"UiAnimationRequest": {
|
|
11524
|
+
"fields": {
|
|
11525
|
+
"command": {
|
|
11526
|
+
"rule": "required",
|
|
11527
|
+
"type": "UiAnimationCommand",
|
|
11528
|
+
"id": 1
|
|
11529
|
+
},
|
|
11530
|
+
"type": {
|
|
11531
|
+
"type": "UiAnimationType",
|
|
11532
|
+
"id": 2
|
|
11533
|
+
}
|
|
11534
|
+
}
|
|
11535
|
+
},
|
|
11665
11536
|
"ViewAmount": {
|
|
11666
11537
|
"fields": {
|
|
11667
11538
|
"is_unlimited": {
|
|
@@ -11723,6 +11594,30 @@
|
|
|
11723
11594
|
}
|
|
11724
11595
|
}
|
|
11725
11596
|
},
|
|
11597
|
+
"ViewRawData": {
|
|
11598
|
+
"fields": {
|
|
11599
|
+
"initial_data": {
|
|
11600
|
+
"rule": "required",
|
|
11601
|
+
"type": "string",
|
|
11602
|
+
"id": 1
|
|
11603
|
+
},
|
|
11604
|
+
"placeholder": {
|
|
11605
|
+
"rule": "required",
|
|
11606
|
+
"type": "uint32",
|
|
11607
|
+
"id": 2
|
|
11608
|
+
}
|
|
11609
|
+
}
|
|
11610
|
+
},
|
|
11611
|
+
"ViewSignLayout": {
|
|
11612
|
+
"values": {
|
|
11613
|
+
"LayoutDefault": 0,
|
|
11614
|
+
"LayoutSafeTxCreate": 1,
|
|
11615
|
+
"LayoutFinalConfirm": 2,
|
|
11616
|
+
"Layout7702": 3,
|
|
11617
|
+
"LayoutFlat": 4,
|
|
11618
|
+
"LayoutEthApprove": 5
|
|
11619
|
+
}
|
|
11620
|
+
},
|
|
11726
11621
|
"ViewSignPage": {
|
|
11727
11622
|
"fields": {
|
|
11728
11623
|
"title": {
|
|
@@ -11742,13 +11637,31 @@
|
|
|
11742
11637
|
"tip": {
|
|
11743
11638
|
"type": "ViewTip",
|
|
11744
11639
|
"id": 4
|
|
11745
|
-
}
|
|
11746
|
-
|
|
11747
|
-
|
|
11748
|
-
|
|
11749
|
-
|
|
11750
|
-
"
|
|
11751
|
-
"
|
|
11640
|
+
},
|
|
11641
|
+
"raw_data": {
|
|
11642
|
+
"type": "ViewRawData",
|
|
11643
|
+
"id": 5
|
|
11644
|
+
},
|
|
11645
|
+
"slide_to_confirm": {
|
|
11646
|
+
"type": "bool",
|
|
11647
|
+
"id": 6,
|
|
11648
|
+
"options": {
|
|
11649
|
+
"default": true
|
|
11650
|
+
}
|
|
11651
|
+
},
|
|
11652
|
+
"layout": {
|
|
11653
|
+
"type": "ViewSignLayout",
|
|
11654
|
+
"id": 7,
|
|
11655
|
+
"options": {
|
|
11656
|
+
"default": "LayoutDefault"
|
|
11657
|
+
}
|
|
11658
|
+
}
|
|
11659
|
+
}
|
|
11660
|
+
},
|
|
11661
|
+
"ViewVerifyPage": {
|
|
11662
|
+
"fields": {
|
|
11663
|
+
"title": {
|
|
11664
|
+
"rule": "required",
|
|
11752
11665
|
"type": "string",
|
|
11753
11666
|
"id": 1
|
|
11754
11667
|
},
|
|
@@ -11761,6 +11674,18 @@
|
|
|
11761
11674
|
"rule": "required",
|
|
11762
11675
|
"type": "string",
|
|
11763
11676
|
"id": 3
|
|
11677
|
+
},
|
|
11678
|
+
"network": {
|
|
11679
|
+
"type": "string",
|
|
11680
|
+
"id": 4
|
|
11681
|
+
},
|
|
11682
|
+
"derive_type": {
|
|
11683
|
+
"type": "string",
|
|
11684
|
+
"id": 5
|
|
11685
|
+
},
|
|
11686
|
+
"value_key": {
|
|
11687
|
+
"type": "uint32",
|
|
11688
|
+
"id": 6
|
|
11764
11689
|
}
|
|
11765
11690
|
}
|
|
11766
11691
|
},
|
|
@@ -11846,181 +11771,464 @@
|
|
|
11846
11771
|
}
|
|
11847
11772
|
}
|
|
11848
11773
|
},
|
|
11849
|
-
"
|
|
11774
|
+
"ProtocolInfoRequest": {
|
|
11850
11775
|
"fields": {
|
|
11851
|
-
"
|
|
11776
|
+
"eventless_wallet_session": {
|
|
11777
|
+
"type": "bool",
|
|
11778
|
+
"id": 1,
|
|
11779
|
+
"options": {
|
|
11780
|
+
"default": false
|
|
11781
|
+
}
|
|
11782
|
+
}
|
|
11783
|
+
}
|
|
11784
|
+
},
|
|
11785
|
+
"ProtocolInfo": {
|
|
11786
|
+
"fields": {
|
|
11787
|
+
"version": {
|
|
11788
|
+
"rule": "required",
|
|
11789
|
+
"type": "uint32",
|
|
11790
|
+
"id": 1
|
|
11791
|
+
},
|
|
11792
|
+
"supported_messages": {
|
|
11852
11793
|
"rule": "repeated",
|
|
11853
11794
|
"type": "uint32",
|
|
11854
|
-
"id":
|
|
11795
|
+
"id": 2,
|
|
11855
11796
|
"options": {
|
|
11856
11797
|
"packed": false
|
|
11857
11798
|
}
|
|
11858
11799
|
},
|
|
11859
|
-
"
|
|
11800
|
+
"protobuf_definition": {
|
|
11801
|
+
"type": "string",
|
|
11802
|
+
"id": 3
|
|
11803
|
+
}
|
|
11804
|
+
}
|
|
11805
|
+
},
|
|
11806
|
+
"Ping": {
|
|
11807
|
+
"fields": {
|
|
11808
|
+
"message": {
|
|
11809
|
+
"type": "string",
|
|
11810
|
+
"id": 1,
|
|
11811
|
+
"options": {
|
|
11812
|
+
"default": ""
|
|
11813
|
+
}
|
|
11814
|
+
}
|
|
11815
|
+
}
|
|
11816
|
+
},
|
|
11817
|
+
"Success": {
|
|
11818
|
+
"fields": {
|
|
11819
|
+
"message": {
|
|
11820
|
+
"type": "string",
|
|
11821
|
+
"id": 1,
|
|
11822
|
+
"options": {
|
|
11823
|
+
"default": ""
|
|
11824
|
+
}
|
|
11825
|
+
}
|
|
11826
|
+
}
|
|
11827
|
+
},
|
|
11828
|
+
"Failure": {
|
|
11829
|
+
"fields": {
|
|
11830
|
+
"code": {
|
|
11860
11831
|
"rule": "required",
|
|
11861
|
-
"type": "
|
|
11832
|
+
"type": "FailureType",
|
|
11833
|
+
"id": 1
|
|
11834
|
+
},
|
|
11835
|
+
"subcode": {
|
|
11836
|
+
"type": "uint32",
|
|
11862
11837
|
"id": 2
|
|
11863
11838
|
},
|
|
11864
|
-
"
|
|
11865
|
-
"
|
|
11866
|
-
"type": "bytes",
|
|
11839
|
+
"message": {
|
|
11840
|
+
"type": "string",
|
|
11867
11841
|
"id": 3
|
|
11842
|
+
}
|
|
11843
|
+
},
|
|
11844
|
+
"nested": {
|
|
11845
|
+
"FailureType": {
|
|
11846
|
+
"values": {
|
|
11847
|
+
"Failure_InvalidMessage": 1,
|
|
11848
|
+
"Failure_UndefinedError": 2,
|
|
11849
|
+
"Failure_UsageError": 3,
|
|
11850
|
+
"Failure_DataError": 4,
|
|
11851
|
+
"Failure_ProcessError": 5
|
|
11852
|
+
}
|
|
11853
|
+
}
|
|
11854
|
+
}
|
|
11855
|
+
},
|
|
11856
|
+
"DeviceErrorCode": {
|
|
11857
|
+
"values": {
|
|
11858
|
+
"DeviceError_None": 0,
|
|
11859
|
+
"DeviceError_Busy": 1,
|
|
11860
|
+
"DeviceError_NotInitialized": 2,
|
|
11861
|
+
"DeviceError_ActionCancelled": 3,
|
|
11862
|
+
"DeviceError_PinAlreadyUsed": 4,
|
|
11863
|
+
"DeviceError_PersistFailed": 5,
|
|
11864
|
+
"DeviceError_SeError": 6,
|
|
11865
|
+
"DeviceError_InvalidLanguage": 7,
|
|
11866
|
+
"DeviceError_WallpaperNotUsable": 8,
|
|
11867
|
+
"DeviceError_DeviceLocked": 9
|
|
11868
|
+
}
|
|
11869
|
+
},
|
|
11870
|
+
"DeviceRebootType": {
|
|
11871
|
+
"values": {
|
|
11872
|
+
"Normal": 0,
|
|
11873
|
+
"Romloader": 1,
|
|
11874
|
+
"Bootloader": 2
|
|
11875
|
+
}
|
|
11876
|
+
},
|
|
11877
|
+
"DeviceReboot": {
|
|
11878
|
+
"fields": {
|
|
11879
|
+
"reboot_type": {
|
|
11880
|
+
"rule": "required",
|
|
11881
|
+
"type": "DeviceRebootType",
|
|
11882
|
+
"id": 1
|
|
11883
|
+
}
|
|
11884
|
+
}
|
|
11885
|
+
},
|
|
11886
|
+
"DeviceSettings": {
|
|
11887
|
+
"fields": {
|
|
11888
|
+
"bt_enable": {
|
|
11889
|
+
"type": "bool",
|
|
11890
|
+
"id": 1
|
|
11868
11891
|
},
|
|
11869
|
-
"
|
|
11892
|
+
"language": {
|
|
11870
11893
|
"type": "string",
|
|
11871
|
-
"id":
|
|
11894
|
+
"id": 2
|
|
11872
11895
|
},
|
|
11873
|
-
"
|
|
11874
|
-
"rule": "required",
|
|
11896
|
+
"wallpaper_path": {
|
|
11875
11897
|
"type": "string",
|
|
11898
|
+
"id": 3
|
|
11899
|
+
},
|
|
11900
|
+
"brightness": {
|
|
11901
|
+
"type": "uint32",
|
|
11902
|
+
"id": 4
|
|
11903
|
+
},
|
|
11904
|
+
"animation_enable": {
|
|
11905
|
+
"type": "bool",
|
|
11876
11906
|
"id": 5
|
|
11877
11907
|
},
|
|
11878
|
-
"
|
|
11879
|
-
"
|
|
11880
|
-
"type": "uint64",
|
|
11908
|
+
"tap_to_wake": {
|
|
11909
|
+
"type": "bool",
|
|
11881
11910
|
"id": 6
|
|
11882
11911
|
},
|
|
11883
|
-
"
|
|
11884
|
-
"type": "
|
|
11912
|
+
"haptic_feedback": {
|
|
11913
|
+
"type": "bool",
|
|
11885
11914
|
"id": 7
|
|
11886
11915
|
},
|
|
11887
|
-
"
|
|
11888
|
-
"type": "
|
|
11889
|
-
"id": 8
|
|
11890
|
-
"options": {
|
|
11891
|
-
"default": "V4R2"
|
|
11892
|
-
}
|
|
11916
|
+
"device_name_display_enabled": {
|
|
11917
|
+
"type": "bool",
|
|
11918
|
+
"id": 8
|
|
11893
11919
|
},
|
|
11894
|
-
"
|
|
11895
|
-
"type": "
|
|
11896
|
-
"id": 9
|
|
11897
|
-
"options": {
|
|
11898
|
-
"default": 698983191
|
|
11899
|
-
}
|
|
11920
|
+
"airgap_mode": {
|
|
11921
|
+
"type": "bool",
|
|
11922
|
+
"id": 9
|
|
11900
11923
|
},
|
|
11901
|
-
"
|
|
11902
|
-
"type": "
|
|
11903
|
-
"id": 10
|
|
11904
|
-
"options": {
|
|
11905
|
-
"default": "BASECHAIN"
|
|
11906
|
-
}
|
|
11924
|
+
"usb_lock_enable": {
|
|
11925
|
+
"type": "bool",
|
|
11926
|
+
"id": 10
|
|
11907
11927
|
},
|
|
11908
|
-
"
|
|
11928
|
+
"random_keypad": {
|
|
11909
11929
|
"type": "bool",
|
|
11910
|
-
"id": 11
|
|
11911
|
-
"options": {
|
|
11912
|
-
"default": false
|
|
11913
|
-
}
|
|
11930
|
+
"id": 11
|
|
11914
11931
|
},
|
|
11915
|
-
"
|
|
11932
|
+
"passphrase_enable": {
|
|
11916
11933
|
"type": "bool",
|
|
11917
|
-
"id":
|
|
11918
|
-
|
|
11919
|
-
|
|
11920
|
-
|
|
11934
|
+
"id": 100
|
|
11935
|
+
},
|
|
11936
|
+
"fido_enabled": {
|
|
11937
|
+
"type": "bool",
|
|
11938
|
+
"id": 101
|
|
11939
|
+
},
|
|
11940
|
+
"autolock_delay_ms": {
|
|
11941
|
+
"type": "uint32",
|
|
11942
|
+
"id": 102
|
|
11943
|
+
},
|
|
11944
|
+
"autoshutdown_delay_ms": {
|
|
11945
|
+
"type": "uint32",
|
|
11946
|
+
"id": 103
|
|
11947
|
+
},
|
|
11948
|
+
"label": {
|
|
11949
|
+
"type": "string",
|
|
11950
|
+
"id": 104
|
|
11921
11951
|
}
|
|
11922
|
-
}
|
|
11923
|
-
|
|
11924
|
-
|
|
11925
|
-
|
|
11926
|
-
|
|
11927
|
-
|
|
11928
|
-
|
|
11929
|
-
|
|
11952
|
+
}
|
|
11953
|
+
},
|
|
11954
|
+
"DeviceSettingsGet": {
|
|
11955
|
+
"fields": {}
|
|
11956
|
+
},
|
|
11957
|
+
"DeviceSettingsSet": {
|
|
11958
|
+
"fields": {
|
|
11959
|
+
"settings": {
|
|
11960
|
+
"rule": "required",
|
|
11961
|
+
"type": "DeviceSettings",
|
|
11962
|
+
"id": 1
|
|
11930
11963
|
}
|
|
11931
11964
|
}
|
|
11932
11965
|
},
|
|
11933
|
-
"
|
|
11966
|
+
"DeviceSettingsPage": {
|
|
11967
|
+
"values": {
|
|
11968
|
+
"DeviceReset": 0,
|
|
11969
|
+
"DevicePinChange": 1,
|
|
11970
|
+
"DevicePassphrase": 2,
|
|
11971
|
+
"DeviceAirgap": 3
|
|
11972
|
+
}
|
|
11973
|
+
},
|
|
11974
|
+
"DeviceSettingsPageShow": {
|
|
11934
11975
|
"fields": {
|
|
11935
|
-
"
|
|
11976
|
+
"page": {
|
|
11977
|
+
"rule": "required",
|
|
11978
|
+
"type": "DeviceSettingsPage",
|
|
11979
|
+
"id": 1
|
|
11980
|
+
},
|
|
11981
|
+
"field_name": {
|
|
11982
|
+
"type": "string",
|
|
11983
|
+
"id": 2
|
|
11984
|
+
}
|
|
11985
|
+
}
|
|
11986
|
+
},
|
|
11987
|
+
"DeviceCertificate": {
|
|
11988
|
+
"fields": {
|
|
11989
|
+
"cert_and_pubkey": {
|
|
11990
|
+
"rule": "required",
|
|
11936
11991
|
"type": "bytes",
|
|
11937
11992
|
"id": 1
|
|
11938
11993
|
},
|
|
11939
|
-
"
|
|
11994
|
+
"private_key": {
|
|
11995
|
+
"type": "bytes",
|
|
11996
|
+
"id": 2
|
|
11997
|
+
}
|
|
11998
|
+
}
|
|
11999
|
+
},
|
|
12000
|
+
"DeviceCertificateWrite": {
|
|
12001
|
+
"fields": {
|
|
12002
|
+
"cert": {
|
|
12003
|
+
"rule": "required",
|
|
12004
|
+
"type": "DeviceCertificate",
|
|
12005
|
+
"id": 1
|
|
12006
|
+
}
|
|
12007
|
+
}
|
|
12008
|
+
},
|
|
12009
|
+
"DeviceCertificateRead": {
|
|
12010
|
+
"fields": {}
|
|
12011
|
+
},
|
|
12012
|
+
"DeviceCertificateSignature": {
|
|
12013
|
+
"fields": {
|
|
12014
|
+
"data": {
|
|
12015
|
+
"rule": "required",
|
|
12016
|
+
"type": "bytes",
|
|
12017
|
+
"id": 1
|
|
12018
|
+
}
|
|
12019
|
+
}
|
|
12020
|
+
},
|
|
12021
|
+
"DeviceCertificateSign": {
|
|
12022
|
+
"fields": {
|
|
12023
|
+
"data": {
|
|
12024
|
+
"rule": "required",
|
|
11940
12025
|
"type": "bytes",
|
|
12026
|
+
"id": 1
|
|
12027
|
+
}
|
|
12028
|
+
}
|
|
12029
|
+
},
|
|
12030
|
+
"DeviceFirmwareTargetType": {
|
|
12031
|
+
"values": {
|
|
12032
|
+
"FW_MGMT_TARGET_INVALID": 0,
|
|
12033
|
+
"FW_MGMT_TARGET_CRATE": 1,
|
|
12034
|
+
"FW_MGMT_TARGET_ROMLOADER": 2,
|
|
12035
|
+
"FW_MGMT_TARGET_BOOTLOADER": 3,
|
|
12036
|
+
"FW_MGMT_TARGET_APPLICATION_P1": 4,
|
|
12037
|
+
"FW_MGMT_TARGET_APPLICATION_P2": 5,
|
|
12038
|
+
"FW_MGMT_TARGET_COPROCESSOR": 6,
|
|
12039
|
+
"FW_MGMT_TARGET_SE01": 7,
|
|
12040
|
+
"FW_MGMT_TARGET_SE02": 8,
|
|
12041
|
+
"FW_MGMT_TARGET_SE03": 9,
|
|
12042
|
+
"FW_MGMT_TARGET_SE04": 10
|
|
12043
|
+
}
|
|
12044
|
+
},
|
|
12045
|
+
"DeviceFirmwareUpdateTaskStatus": {
|
|
12046
|
+
"values": {
|
|
12047
|
+
"FW_MGMT_UPDATER_TASK_STATUS_PENDING": 0,
|
|
12048
|
+
"FW_MGMT_UPDATER_TASK_STATUS_IN_PROGRESS": 1,
|
|
12049
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FINISHED": 2,
|
|
12050
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_NOT_FOUND": 3,
|
|
12051
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_READ": 4,
|
|
12052
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_FILE_WRITE": 5,
|
|
12053
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_VERIFY": 6,
|
|
12054
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_INSTALL": 7,
|
|
12055
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_ABORT": 8,
|
|
12056
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_BUSY": 9,
|
|
12057
|
+
"FW_MGMT_UPDATER_TASK_STATUS_FAILED_ENTRY_OUT_OF_BOUNDS": 10
|
|
12058
|
+
}
|
|
12059
|
+
},
|
|
12060
|
+
"DeviceFirmwareTarget": {
|
|
12061
|
+
"fields": {
|
|
12062
|
+
"target_id": {
|
|
12063
|
+
"rule": "required",
|
|
12064
|
+
"type": "DeviceFirmwareTargetType",
|
|
12065
|
+
"id": 1
|
|
12066
|
+
},
|
|
12067
|
+
"path": {
|
|
12068
|
+
"rule": "required",
|
|
12069
|
+
"type": "string",
|
|
11941
12070
|
"id": 2
|
|
11942
12071
|
}
|
|
11943
12072
|
}
|
|
11944
12073
|
},
|
|
11945
|
-
"
|
|
11946
|
-
"fields": {
|
|
11947
|
-
|
|
11948
|
-
|
|
12074
|
+
"DeviceFirmwareUpdateRequest": {
|
|
12075
|
+
"fields": {
|
|
12076
|
+
"targets": {
|
|
12077
|
+
"rule": "repeated",
|
|
12078
|
+
"type": "DeviceFirmwareTarget",
|
|
12079
|
+
"id": 1
|
|
12080
|
+
}
|
|
12081
|
+
}
|
|
12082
|
+
},
|
|
12083
|
+
"DeviceFirmwareUpdateRecord": {
|
|
12084
|
+
"fields": {
|
|
12085
|
+
"target_id": {
|
|
12086
|
+
"rule": "required",
|
|
12087
|
+
"type": "DeviceFirmwareTargetType",
|
|
12088
|
+
"id": 1
|
|
12089
|
+
},
|
|
12090
|
+
"status": {
|
|
12091
|
+
"type": "DeviceFirmwareUpdateTaskStatus",
|
|
12092
|
+
"id": 10
|
|
12093
|
+
},
|
|
12094
|
+
"payload_version": {
|
|
12095
|
+
"type": "uint32",
|
|
12096
|
+
"id": 20
|
|
12097
|
+
},
|
|
12098
|
+
"path": {
|
|
12099
|
+
"type": "string",
|
|
12100
|
+
"id": 30
|
|
12101
|
+
}
|
|
12102
|
+
}
|
|
12103
|
+
},
|
|
12104
|
+
"DeviceFirmwareUpdateRecordFields": {
|
|
12105
|
+
"fields": {
|
|
12106
|
+
"status": {
|
|
12107
|
+
"type": "bool",
|
|
12108
|
+
"id": 10
|
|
12109
|
+
},
|
|
12110
|
+
"payload_version": {
|
|
12111
|
+
"type": "bool",
|
|
12112
|
+
"id": 20
|
|
12113
|
+
},
|
|
12114
|
+
"path": {
|
|
12115
|
+
"type": "bool",
|
|
12116
|
+
"id": 30
|
|
12117
|
+
}
|
|
12118
|
+
}
|
|
12119
|
+
},
|
|
12120
|
+
"DeviceFirmwareUpdateStatusGet": {
|
|
12121
|
+
"fields": {
|
|
12122
|
+
"fields": {
|
|
12123
|
+
"type": "DeviceFirmwareUpdateRecordFields",
|
|
12124
|
+
"id": 1
|
|
12125
|
+
}
|
|
12126
|
+
}
|
|
12127
|
+
},
|
|
12128
|
+
"DeviceFirmwareUpdateStatus": {
|
|
12129
|
+
"fields": {
|
|
12130
|
+
"records": {
|
|
12131
|
+
"rule": "repeated",
|
|
12132
|
+
"type": "DeviceFirmwareUpdateRecord",
|
|
12133
|
+
"id": 1
|
|
12134
|
+
}
|
|
12135
|
+
}
|
|
12136
|
+
},
|
|
12137
|
+
"DeviceFactoryAck": {
|
|
12138
|
+
"values": {
|
|
12139
|
+
"FACTORY_ACK_SUCCESS": 0,
|
|
12140
|
+
"FACTORY_ACK_FAIL": 1
|
|
12141
|
+
}
|
|
12142
|
+
},
|
|
12143
|
+
"DeviceFactoryInfoManufactureTime": {
|
|
11949
12144
|
"fields": {
|
|
11950
|
-
"
|
|
12145
|
+
"year": {
|
|
11951
12146
|
"rule": "required",
|
|
11952
12147
|
"type": "uint32",
|
|
11953
12148
|
"id": 1
|
|
12149
|
+
},
|
|
12150
|
+
"month": {
|
|
12151
|
+
"rule": "required",
|
|
12152
|
+
"type": "uint32",
|
|
12153
|
+
"id": 2
|
|
12154
|
+
},
|
|
12155
|
+
"day": {
|
|
12156
|
+
"rule": "required",
|
|
12157
|
+
"type": "uint32",
|
|
12158
|
+
"id": 3
|
|
12159
|
+
},
|
|
12160
|
+
"hour": {
|
|
12161
|
+
"rule": "required",
|
|
12162
|
+
"type": "uint32",
|
|
12163
|
+
"id": 4
|
|
12164
|
+
},
|
|
12165
|
+
"minute": {
|
|
12166
|
+
"rule": "required",
|
|
12167
|
+
"type": "uint32",
|
|
12168
|
+
"id": 5
|
|
12169
|
+
},
|
|
12170
|
+
"second": {
|
|
12171
|
+
"rule": "required",
|
|
12172
|
+
"type": "uint32",
|
|
12173
|
+
"id": 6
|
|
11954
12174
|
}
|
|
11955
12175
|
}
|
|
11956
12176
|
},
|
|
11957
|
-
"
|
|
12177
|
+
"DeviceFactoryInfo": {
|
|
11958
12178
|
"fields": {
|
|
11959
|
-
"
|
|
12179
|
+
"version": {
|
|
12180
|
+
"type": "uint32",
|
|
12181
|
+
"id": 1
|
|
12182
|
+
},
|
|
12183
|
+
"serial_number": {
|
|
11960
12184
|
"type": "string",
|
|
11961
|
-
"id":
|
|
11962
|
-
|
|
11963
|
-
|
|
11964
|
-
|
|
12185
|
+
"id": 2
|
|
12186
|
+
},
|
|
12187
|
+
"burn_in_completed": {
|
|
12188
|
+
"type": "bool",
|
|
12189
|
+
"id": 3
|
|
12190
|
+
},
|
|
12191
|
+
"factory_test_completed": {
|
|
12192
|
+
"type": "bool",
|
|
12193
|
+
"id": 4
|
|
12194
|
+
},
|
|
12195
|
+
"manufacture_time": {
|
|
12196
|
+
"type": "DeviceFactoryInfoManufactureTime",
|
|
12197
|
+
"id": 5
|
|
11965
12198
|
}
|
|
11966
12199
|
}
|
|
11967
12200
|
},
|
|
11968
|
-
"
|
|
12201
|
+
"DeviceFactoryInfoSet": {
|
|
11969
12202
|
"fields": {
|
|
11970
|
-
"
|
|
11971
|
-
"
|
|
11972
|
-
"
|
|
11973
|
-
"
|
|
11974
|
-
"default": ""
|
|
11975
|
-
}
|
|
12203
|
+
"info": {
|
|
12204
|
+
"rule": "required",
|
|
12205
|
+
"type": "DeviceFactoryInfo",
|
|
12206
|
+
"id": 1
|
|
11976
12207
|
}
|
|
11977
12208
|
}
|
|
11978
12209
|
},
|
|
11979
|
-
"
|
|
12210
|
+
"DeviceFactoryInfoGet": {
|
|
12211
|
+
"fields": {}
|
|
12212
|
+
},
|
|
12213
|
+
"DeviceFactoryPermanentLock": {
|
|
11980
12214
|
"fields": {
|
|
11981
|
-
"
|
|
11982
|
-
"
|
|
12215
|
+
"check_a": {
|
|
12216
|
+
"rule": "required",
|
|
12217
|
+
"type": "bytes",
|
|
11983
12218
|
"id": 1
|
|
11984
12219
|
},
|
|
11985
|
-
"
|
|
11986
|
-
"
|
|
12220
|
+
"check_b": {
|
|
12221
|
+
"rule": "required",
|
|
12222
|
+
"type": "bytes",
|
|
11987
12223
|
"id": 2
|
|
11988
12224
|
}
|
|
11989
|
-
},
|
|
11990
|
-
"nested": {
|
|
11991
|
-
"FailureType": {
|
|
11992
|
-
"values": {
|
|
11993
|
-
"Failure_UnexpectedMessage": 1,
|
|
11994
|
-
"Failure_ButtonExpected": 2,
|
|
11995
|
-
"Failure_DataError": 3,
|
|
11996
|
-
"Failure_ActionCancelled": 4,
|
|
11997
|
-
"Failure_PinExpected": 5,
|
|
11998
|
-
"Failure_PinCancelled": 6,
|
|
11999
|
-
"Failure_PinInvalid": 7,
|
|
12000
|
-
"Failure_InvalidSignature": 8,
|
|
12001
|
-
"Failure_ProcessError": 9,
|
|
12002
|
-
"Failure_NotEnoughFunds": 10,
|
|
12003
|
-
"Failure_NotInitialized": 11,
|
|
12004
|
-
"Failure_PinMismatch": 12,
|
|
12005
|
-
"Failure_WipeCodeMismatch": 13,
|
|
12006
|
-
"Failure_InvalidSession": 14,
|
|
12007
|
-
"Failure_FirmwareError": 99
|
|
12008
|
-
}
|
|
12009
|
-
}
|
|
12010
|
-
}
|
|
12011
|
-
},
|
|
12012
|
-
"DevRebootType": {
|
|
12013
|
-
"values": {
|
|
12014
|
-
"Normal": 0,
|
|
12015
|
-
"Boardloader": 1,
|
|
12016
|
-
"Bootloader": 2
|
|
12017
12225
|
}
|
|
12018
12226
|
},
|
|
12019
|
-
"
|
|
12227
|
+
"DeviceFactoryTest": {
|
|
12020
12228
|
"fields": {
|
|
12021
|
-
"
|
|
12229
|
+
"burn_in_test": {
|
|
12022
12230
|
"rule": "required",
|
|
12023
|
-
"type": "
|
|
12231
|
+
"type": "bool",
|
|
12024
12232
|
"id": 1
|
|
12025
12233
|
}
|
|
12026
12234
|
}
|
|
@@ -12032,23 +12240,25 @@
|
|
|
12032
12240
|
"MINI": 2,
|
|
12033
12241
|
"TOUCH": 3,
|
|
12034
12242
|
"PRO": 5,
|
|
12035
|
-
"CLASSIC1S_PURE": 6
|
|
12243
|
+
"CLASSIC1S_PURE": 6,
|
|
12244
|
+
"PRO2": 7,
|
|
12245
|
+
"NEO": 8
|
|
12036
12246
|
}
|
|
12037
12247
|
},
|
|
12038
|
-
"
|
|
12248
|
+
"DeviceSeType": {
|
|
12039
12249
|
"values": {
|
|
12040
12250
|
"THD89": 0,
|
|
12041
12251
|
"SE608A": 1
|
|
12042
12252
|
}
|
|
12043
12253
|
},
|
|
12044
|
-
"
|
|
12254
|
+
"DeviceSEState": {
|
|
12045
12255
|
"values": {
|
|
12046
12256
|
"BOOT": 0,
|
|
12047
12257
|
"APP_FACTORY": 51,
|
|
12048
12258
|
"APP": 85
|
|
12049
12259
|
}
|
|
12050
12260
|
},
|
|
12051
|
-
"
|
|
12261
|
+
"DeviceFirmwareImageInfo": {
|
|
12052
12262
|
"fields": {
|
|
12053
12263
|
"version": {
|
|
12054
12264
|
"type": "string",
|
|
@@ -12064,19 +12274,15 @@
|
|
|
12064
12274
|
}
|
|
12065
12275
|
}
|
|
12066
12276
|
},
|
|
12067
|
-
"
|
|
12277
|
+
"DeviceHardwareInfo": {
|
|
12068
12278
|
"fields": {
|
|
12069
|
-
"
|
|
12279
|
+
"Device_type": {
|
|
12070
12280
|
"type": "DeviceType",
|
|
12071
12281
|
"id": 10
|
|
12072
12282
|
},
|
|
12073
12283
|
"serial_no": {
|
|
12074
12284
|
"type": "string",
|
|
12075
|
-
"id":
|
|
12076
|
-
},
|
|
12077
|
-
"device_id": {
|
|
12078
|
-
"type": "string",
|
|
12079
|
-
"id": 12
|
|
12285
|
+
"id": 20
|
|
12080
12286
|
},
|
|
12081
12287
|
"hardware_version": {
|
|
12082
12288
|
"type": "string",
|
|
@@ -12084,67 +12290,71 @@
|
|
|
12084
12290
|
},
|
|
12085
12291
|
"hardware_version_raw_adc": {
|
|
12086
12292
|
"type": "uint32",
|
|
12087
|
-
"id":
|
|
12293
|
+
"id": 110
|
|
12088
12294
|
}
|
|
12089
12295
|
}
|
|
12090
12296
|
},
|
|
12091
|
-
"
|
|
12297
|
+
"DeviceMainMcuInfo": {
|
|
12092
12298
|
"fields": {
|
|
12093
|
-
"
|
|
12094
|
-
"type": "
|
|
12299
|
+
"romloader": {
|
|
12300
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12095
12301
|
"id": 10
|
|
12096
12302
|
},
|
|
12097
|
-
"
|
|
12098
|
-
"type": "
|
|
12303
|
+
"bootloader": {
|
|
12304
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12099
12305
|
"id": 20
|
|
12100
12306
|
},
|
|
12101
|
-
"
|
|
12102
|
-
"type": "
|
|
12307
|
+
"application": {
|
|
12308
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12103
12309
|
"id": 30
|
|
12310
|
+
},
|
|
12311
|
+
"application_data": {
|
|
12312
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12313
|
+
"id": 40
|
|
12104
12314
|
}
|
|
12105
12315
|
}
|
|
12106
12316
|
},
|
|
12107
|
-
"
|
|
12317
|
+
"DeviceCoprocessorInfo": {
|
|
12108
12318
|
"fields": {
|
|
12109
|
-
"
|
|
12110
|
-
"type": "
|
|
12319
|
+
"bootloader": {
|
|
12320
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12111
12321
|
"id": 20
|
|
12112
12322
|
},
|
|
12113
|
-
"
|
|
12114
|
-
"type": "
|
|
12323
|
+
"application": {
|
|
12324
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12115
12325
|
"id": 30
|
|
12116
12326
|
},
|
|
12117
|
-
"
|
|
12327
|
+
"bt_adv_name": {
|
|
12118
12328
|
"type": "string",
|
|
12119
12329
|
"id": 100
|
|
12120
12330
|
},
|
|
12121
|
-
"
|
|
12331
|
+
"bt_mac": {
|
|
12122
12332
|
"type": "bytes",
|
|
12123
12333
|
"id": 110
|
|
12124
12334
|
}
|
|
12125
12335
|
}
|
|
12126
12336
|
},
|
|
12127
|
-
"
|
|
12337
|
+
"DeviceSEInfo": {
|
|
12128
12338
|
"fields": {
|
|
12129
|
-
"
|
|
12130
|
-
"type": "
|
|
12339
|
+
"bootloader": {
|
|
12340
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12131
12341
|
"id": 20
|
|
12132
12342
|
},
|
|
12133
|
-
"
|
|
12134
|
-
"type": "
|
|
12343
|
+
"application": {
|
|
12344
|
+
"type": "DeviceFirmwareImageInfo",
|
|
12135
12345
|
"id": 30
|
|
12136
12346
|
},
|
|
12137
12347
|
"type": {
|
|
12138
|
-
"type": "
|
|
12348
|
+
"type": "DeviceSeType",
|
|
12139
12349
|
"id": 100
|
|
12140
12350
|
},
|
|
12141
12351
|
"state": {
|
|
12142
|
-
"type": "
|
|
12352
|
+
"type": "DeviceSEState",
|
|
12143
12353
|
"id": 110
|
|
12144
12354
|
}
|
|
12145
12355
|
}
|
|
12146
12356
|
},
|
|
12147
|
-
"
|
|
12357
|
+
"DeviceInfoTargets": {
|
|
12148
12358
|
"fields": {
|
|
12149
12359
|
"hw": {
|
|
12150
12360
|
"type": "bool",
|
|
@@ -12154,7 +12364,7 @@
|
|
|
12154
12364
|
"type": "bool",
|
|
12155
12365
|
"id": 200
|
|
12156
12366
|
},
|
|
12157
|
-
"
|
|
12367
|
+
"coprocessor": {
|
|
12158
12368
|
"type": "bool",
|
|
12159
12369
|
"id": 300
|
|
12160
12370
|
},
|
|
@@ -12180,7 +12390,7 @@
|
|
|
12180
12390
|
}
|
|
12181
12391
|
}
|
|
12182
12392
|
},
|
|
12183
|
-
"
|
|
12393
|
+
"DeviceInfoTypes": {
|
|
12184
12394
|
"fields": {
|
|
12185
12395
|
"version": {
|
|
12186
12396
|
"type": "bool",
|
|
@@ -12200,42 +12410,14 @@
|
|
|
12200
12410
|
}
|
|
12201
12411
|
}
|
|
12202
12412
|
},
|
|
12203
|
-
"
|
|
12204
|
-
"fields": {
|
|
12205
|
-
"language": {
|
|
12206
|
-
"type": "string",
|
|
12207
|
-
"id": 100
|
|
12208
|
-
},
|
|
12209
|
-
"bt_enable": {
|
|
12210
|
-
"type": "bool",
|
|
12211
|
-
"id": 101
|
|
12212
|
-
},
|
|
12213
|
-
"init_states": {
|
|
12214
|
-
"type": "bool",
|
|
12215
|
-
"id": 102
|
|
12216
|
-
},
|
|
12217
|
-
"backup_required": {
|
|
12218
|
-
"type": "bool",
|
|
12219
|
-
"id": 200
|
|
12220
|
-
},
|
|
12221
|
-
"passphrase_protection": {
|
|
12222
|
-
"type": "bool",
|
|
12223
|
-
"id": 201
|
|
12224
|
-
},
|
|
12225
|
-
"label": {
|
|
12226
|
-
"type": "string",
|
|
12227
|
-
"id": 300
|
|
12228
|
-
}
|
|
12229
|
-
}
|
|
12230
|
-
},
|
|
12231
|
-
"DevGetDeviceInfo": {
|
|
12413
|
+
"DeviceInfoGet": {
|
|
12232
12414
|
"fields": {
|
|
12233
12415
|
"targets": {
|
|
12234
|
-
"type": "
|
|
12416
|
+
"type": "DeviceInfoTargets",
|
|
12235
12417
|
"id": 1
|
|
12236
12418
|
},
|
|
12237
12419
|
"types": {
|
|
12238
|
-
"type": "
|
|
12420
|
+
"type": "DeviceInfoTypes",
|
|
12239
12421
|
"id": 2
|
|
12240
12422
|
}
|
|
12241
12423
|
}
|
|
@@ -12248,166 +12430,215 @@
|
|
|
12248
12430
|
"id": 1
|
|
12249
12431
|
},
|
|
12250
12432
|
"hw": {
|
|
12251
|
-
"type": "
|
|
12433
|
+
"type": "DeviceHardwareInfo",
|
|
12252
12434
|
"id": 100
|
|
12253
12435
|
},
|
|
12254
12436
|
"fw": {
|
|
12255
|
-
"type": "
|
|
12437
|
+
"type": "DeviceMainMcuInfo",
|
|
12256
12438
|
"id": 200
|
|
12257
12439
|
},
|
|
12258
|
-
"
|
|
12259
|
-
"type": "
|
|
12440
|
+
"coprocessor": {
|
|
12441
|
+
"type": "DeviceCoprocessorInfo",
|
|
12260
12442
|
"id": 300
|
|
12261
12443
|
},
|
|
12262
12444
|
"se1": {
|
|
12263
|
-
"type": "
|
|
12445
|
+
"type": "DeviceSEInfo",
|
|
12264
12446
|
"id": 400
|
|
12265
12447
|
},
|
|
12266
12448
|
"se2": {
|
|
12267
|
-
"type": "
|
|
12449
|
+
"type": "DeviceSEInfo",
|
|
12268
12450
|
"id": 410
|
|
12269
12451
|
},
|
|
12270
12452
|
"se3": {
|
|
12271
|
-
"type": "
|
|
12453
|
+
"type": "DeviceSEInfo",
|
|
12272
12454
|
"id": 420
|
|
12273
12455
|
},
|
|
12274
12456
|
"se4": {
|
|
12275
|
-
"type": "
|
|
12457
|
+
"type": "DeviceSEInfo",
|
|
12276
12458
|
"id": 430
|
|
12277
12459
|
},
|
|
12278
12460
|
"status": {
|
|
12279
|
-
"type": "
|
|
12461
|
+
"type": "DeviceStatus",
|
|
12280
12462
|
"id": 10000
|
|
12281
12463
|
}
|
|
12282
12464
|
}
|
|
12283
12465
|
},
|
|
12284
|
-
"
|
|
12466
|
+
"DeviceSessionErrorCode": {
|
|
12285
12467
|
"values": {
|
|
12286
|
-
"
|
|
12287
|
-
"
|
|
12288
|
-
"
|
|
12289
|
-
"
|
|
12290
|
-
"
|
|
12291
|
-
"
|
|
12292
|
-
"TARGET_SE4": 6,
|
|
12293
|
-
"TARGET_RESOURCE": 10
|
|
12468
|
+
"DeviceSessionError_None": 0,
|
|
12469
|
+
"DeviceSessionError_UserCancelled": 1,
|
|
12470
|
+
"DeviceSessionError_InvalidSession": 2,
|
|
12471
|
+
"DeviceSessionError_AttachPinUnavailable": 3,
|
|
12472
|
+
"DeviceSessionError_PassphraseDisabled": 4,
|
|
12473
|
+
"DeviceSessionError_Busy": 5
|
|
12294
12474
|
}
|
|
12295
12475
|
},
|
|
12296
|
-
"
|
|
12476
|
+
"DeviceSessionGet": {
|
|
12297
12477
|
"fields": {
|
|
12298
|
-
"
|
|
12299
|
-
"
|
|
12300
|
-
"
|
|
12478
|
+
"session_id": {
|
|
12479
|
+
"type": "bytes",
|
|
12480
|
+
"id": 1
|
|
12481
|
+
}
|
|
12482
|
+
}
|
|
12483
|
+
},
|
|
12484
|
+
"DeviceSession": {
|
|
12485
|
+
"fields": {
|
|
12486
|
+
"session_id": {
|
|
12487
|
+
"type": "bytes",
|
|
12301
12488
|
"id": 1
|
|
12302
12489
|
},
|
|
12303
|
-
"
|
|
12304
|
-
"rule": "required",
|
|
12490
|
+
"btc_test_address": {
|
|
12305
12491
|
"type": "string",
|
|
12306
12492
|
"id": 2
|
|
12307
12493
|
}
|
|
12308
12494
|
}
|
|
12309
12495
|
},
|
|
12310
|
-
"
|
|
12496
|
+
"DeviceSessionPinType": {
|
|
12497
|
+
"values": {
|
|
12498
|
+
"Any": 1,
|
|
12499
|
+
"Main": 2,
|
|
12500
|
+
"AttachToPin": 3
|
|
12501
|
+
}
|
|
12502
|
+
},
|
|
12503
|
+
"DeviceSessionAskPin": {
|
|
12311
12504
|
"fields": {
|
|
12312
|
-
"
|
|
12313
|
-
"
|
|
12314
|
-
"type": "DevFirmwareTarget",
|
|
12505
|
+
"type": {
|
|
12506
|
+
"type": "DeviceSessionPinType",
|
|
12315
12507
|
"id": 1
|
|
12316
12508
|
}
|
|
12317
12509
|
}
|
|
12318
12510
|
},
|
|
12319
|
-
"
|
|
12511
|
+
"DeviceSessionAskPassphrase": {
|
|
12320
12512
|
"fields": {
|
|
12321
|
-
"
|
|
12322
|
-
"rule": "required",
|
|
12323
|
-
"type": "DevFirmwareTargetType",
|
|
12324
|
-
"id": 1
|
|
12325
|
-
},
|
|
12326
|
-
"progress": {
|
|
12327
|
-
"rule": "required",
|
|
12328
|
-
"type": "uint32",
|
|
12329
|
-
"id": 2
|
|
12330
|
-
},
|
|
12331
|
-
"stage": {
|
|
12513
|
+
"passphrase": {
|
|
12332
12514
|
"type": "string",
|
|
12333
|
-
"id":
|
|
12515
|
+
"id": 1
|
|
12334
12516
|
}
|
|
12335
12517
|
}
|
|
12336
12518
|
},
|
|
12337
|
-
"
|
|
12519
|
+
"DeviceSessionAskPin_FailureSubCodes": {
|
|
12520
|
+
"values": {
|
|
12521
|
+
"UserCancel": 1
|
|
12522
|
+
}
|
|
12523
|
+
},
|
|
12524
|
+
"DeviceStatus": {
|
|
12338
12525
|
"fields": {
|
|
12339
|
-
"
|
|
12340
|
-
"
|
|
12341
|
-
"type": "DevFirmwareTargetType",
|
|
12526
|
+
"device_id": {
|
|
12527
|
+
"type": "string",
|
|
12342
12528
|
"id": 1
|
|
12343
12529
|
},
|
|
12344
|
-
"
|
|
12345
|
-
"
|
|
12346
|
-
"type": "uint32",
|
|
12530
|
+
"unlocked": {
|
|
12531
|
+
"type": "bool",
|
|
12347
12532
|
"id": 2
|
|
12533
|
+
},
|
|
12534
|
+
"init_states": {
|
|
12535
|
+
"type": "bool",
|
|
12536
|
+
"id": 3
|
|
12537
|
+
},
|
|
12538
|
+
"backup_required": {
|
|
12539
|
+
"type": "bool",
|
|
12540
|
+
"id": 4
|
|
12541
|
+
},
|
|
12542
|
+
"passphrase_enabled": {
|
|
12543
|
+
"type": "bool",
|
|
12544
|
+
"id": 10
|
|
12545
|
+
},
|
|
12546
|
+
"attach_to_pin_enabled": {
|
|
12547
|
+
"type": "bool",
|
|
12548
|
+
"id": 11
|
|
12549
|
+
},
|
|
12550
|
+
"unlocked_by_attach_to_pin": {
|
|
12551
|
+
"type": "bool",
|
|
12552
|
+
"id": 12
|
|
12348
12553
|
}
|
|
12349
12554
|
}
|
|
12350
12555
|
},
|
|
12351
|
-
"
|
|
12556
|
+
"DeviceStatusGet": {
|
|
12352
12557
|
"fields": {}
|
|
12353
12558
|
},
|
|
12354
|
-
"
|
|
12355
|
-
"
|
|
12356
|
-
"
|
|
12357
|
-
|
|
12358
|
-
|
|
12359
|
-
|
|
12360
|
-
|
|
12559
|
+
"DevOnboardingStep": {
|
|
12560
|
+
"values": {
|
|
12561
|
+
"DEV_ONBOARDING_STEP_UNKNOWN": 0,
|
|
12562
|
+
"DEV_ONBOARDING_STEP_CHECKING": 1,
|
|
12563
|
+
"DEV_ONBOARDING_STEP_PERSONALIZATION": 2,
|
|
12564
|
+
"DEV_ONBOARDING_STEP_PIN": 3,
|
|
12565
|
+
"DEV_ONBOARDING_STEP_SETUP": 4,
|
|
12566
|
+
"DEV_ONBOARDING_STEP_DONE": 5
|
|
12567
|
+
}
|
|
12568
|
+
},
|
|
12569
|
+
"DevOnboardingPhase": {
|
|
12570
|
+
"values": {
|
|
12571
|
+
"DEV_ONBOARDING_PHASE_UNKNOWN": 0,
|
|
12572
|
+
"DEV_ONBOARDING_PHASE_SAFETY_CHECK": 1,
|
|
12573
|
+
"DEV_ONBOARDING_PHASE_PIN_SETUP": 2,
|
|
12574
|
+
"DEV_ONBOARDING_PHASE_FINGERPRINT_SETUP": 3,
|
|
12575
|
+
"DEV_ONBOARDING_PHASE_SETUP_CHOICE": 4,
|
|
12576
|
+
"DEV_ONBOARDING_PHASE_WALLET_CREATE_START": 5,
|
|
12577
|
+
"DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_VIEW": 6,
|
|
12578
|
+
"DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_CONFIRM": 7,
|
|
12579
|
+
"DEV_ONBOARDING_PHASE_RESTORE_METHOD_CHOICE": 8,
|
|
12580
|
+
"DEV_ONBOARDING_PHASE_RECOVERY_PHRASE_RESTORE": 9,
|
|
12581
|
+
"DEV_ONBOARDING_PHASE_SEEDCARD_RESTORE": 10,
|
|
12582
|
+
"DEV_ONBOARDING_PHASE_WALLET_READY": 11,
|
|
12583
|
+
"DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP_PROMPT": 12,
|
|
12584
|
+
"DEV_ONBOARDING_PHASE_SEEDCARD_BACKUP": 13
|
|
12585
|
+
}
|
|
12586
|
+
},
|
|
12587
|
+
"DevOnboardingSetupKind": {
|
|
12588
|
+
"values": {
|
|
12589
|
+
"DEV_ONBOARDING_SETUP_KIND_UNKNOWN": 0,
|
|
12590
|
+
"DEV_ONBOARDING_SETUP_KIND_CHOICE": 1,
|
|
12591
|
+
"DEV_ONBOARDING_SETUP_KIND_CREATE": 2,
|
|
12592
|
+
"DEV_ONBOARDING_SETUP_KIND_RESTORE": 3
|
|
12593
|
+
}
|
|
12594
|
+
},
|
|
12595
|
+
"DevOnboardingSetupMethod": {
|
|
12596
|
+
"values": {
|
|
12597
|
+
"DEV_ONBOARDING_SETUP_METHOD_UNKNOWN": 0,
|
|
12598
|
+
"DEV_ONBOARDING_SETUP_METHOD_RECOVERY_PHRASE": 1,
|
|
12599
|
+
"DEV_ONBOARDING_SETUP_METHOD_SEEDCARD": 2
|
|
12361
12600
|
}
|
|
12362
12601
|
},
|
|
12363
|
-
"
|
|
12602
|
+
"DevOnboardingSetupStatus": {
|
|
12364
12603
|
"fields": {
|
|
12365
|
-
"
|
|
12366
|
-
"type": "
|
|
12604
|
+
"kind": {
|
|
12605
|
+
"type": "DevOnboardingSetupKind",
|
|
12367
12606
|
"id": 1
|
|
12368
12607
|
},
|
|
12369
|
-
"
|
|
12370
|
-
"type": "
|
|
12608
|
+
"method": {
|
|
12609
|
+
"type": "DevOnboardingSetupMethod",
|
|
12371
12610
|
"id": 2
|
|
12372
|
-
},
|
|
12373
|
-
"pre_firmware": {
|
|
12374
|
-
"type": "string",
|
|
12375
|
-
"id": 3
|
|
12376
12611
|
}
|
|
12377
12612
|
}
|
|
12378
12613
|
},
|
|
12379
|
-
"
|
|
12614
|
+
"DevGetOnboardingStatus": {
|
|
12380
12615
|
"fields": {}
|
|
12381
12616
|
},
|
|
12382
|
-
"
|
|
12617
|
+
"DevOnboardingStatus": {
|
|
12383
12618
|
"fields": {
|
|
12384
|
-
"
|
|
12385
|
-
"type": "
|
|
12619
|
+
"step": {
|
|
12620
|
+
"type": "DevOnboardingStep",
|
|
12386
12621
|
"id": 1
|
|
12387
12622
|
},
|
|
12388
|
-
"
|
|
12389
|
-
"type": "
|
|
12623
|
+
"phase": {
|
|
12624
|
+
"type": "DevOnboardingPhase",
|
|
12390
12625
|
"id": 2
|
|
12391
12626
|
},
|
|
12392
|
-
"
|
|
12393
|
-
"type": "
|
|
12627
|
+
"setup": {
|
|
12628
|
+
"type": "DevOnboardingSetupStatus",
|
|
12394
12629
|
"id": 3
|
|
12395
12630
|
},
|
|
12396
|
-
"
|
|
12397
|
-
"type": "
|
|
12631
|
+
"pin_set": {
|
|
12632
|
+
"type": "bool",
|
|
12398
12633
|
"id": 4
|
|
12399
12634
|
},
|
|
12400
|
-
"
|
|
12401
|
-
"type": "
|
|
12635
|
+
"wallet_initialized": {
|
|
12636
|
+
"type": "bool",
|
|
12402
12637
|
"id": 5
|
|
12403
|
-
},
|
|
12404
|
-
"pre_firmware": {
|
|
12405
|
-
"type": "string",
|
|
12406
|
-
"id": 6
|
|
12407
12638
|
}
|
|
12408
12639
|
}
|
|
12409
12640
|
},
|
|
12410
|
-
"
|
|
12641
|
+
"FilesystemPermissionFix": {
|
|
12411
12642
|
"fields": {}
|
|
12412
12643
|
},
|
|
12413
12644
|
"FilesystemPathInfo": {
|
|
@@ -12620,77 +12851,22 @@
|
|
|
12620
12851
|
}
|
|
12621
12852
|
},
|
|
12622
12853
|
"FilesystemFormat": {
|
|
12623
|
-
"fields": {}
|
|
12624
|
-
},
|
|
12625
|
-
"OnboardingStep": {
|
|
12626
|
-
"values": {
|
|
12627
|
-
"ONBOARDING_STEP_UNKNOWN": 0,
|
|
12628
|
-
"ONBOARDING_STEP_DEVICE_VERIFICATION": 1,
|
|
12629
|
-
"ONBOARDING_STEP_PERSONALIZATION": 2,
|
|
12630
|
-
"ONBOARDING_STEP_SETUP": 3,
|
|
12631
|
-
"ONBOARDING_STEP_FIRMWARE": 4
|
|
12632
|
-
}
|
|
12633
|
-
},
|
|
12634
|
-
"GetOnboardingStatus": {
|
|
12635
|
-
"fields": {}
|
|
12636
|
-
},
|
|
12637
|
-
"OnboardingStatus": {
|
|
12638
12854
|
"fields": {
|
|
12639
|
-
"
|
|
12855
|
+
"data": {
|
|
12640
12856
|
"rule": "required",
|
|
12641
|
-
"type": "
|
|
12857
|
+
"type": "bool",
|
|
12642
12858
|
"id": 1
|
|
12643
12859
|
},
|
|
12644
|
-
"
|
|
12645
|
-
"
|
|
12860
|
+
"user": {
|
|
12861
|
+
"rule": "required",
|
|
12862
|
+
"type": "bool",
|
|
12646
12863
|
"id": 2
|
|
12647
|
-
},
|
|
12648
|
-
"detail_code": {
|
|
12649
|
-
"type": "uint32",
|
|
12650
|
-
"id": 3
|
|
12651
|
-
},
|
|
12652
|
-
"detail_str": {
|
|
12653
|
-
"type": "string",
|
|
12654
|
-
"id": 4
|
|
12655
|
-
}
|
|
12656
|
-
},
|
|
12657
|
-
"nested": {
|
|
12658
|
-
"Setup": {
|
|
12659
|
-
"fields": {
|
|
12660
|
-
"new_device": {
|
|
12661
|
-
"type": "NewDevice",
|
|
12662
|
-
"id": 1
|
|
12663
|
-
},
|
|
12664
|
-
"restore": {
|
|
12665
|
-
"type": "Restore",
|
|
12666
|
-
"id": 2
|
|
12667
|
-
}
|
|
12668
|
-
},
|
|
12669
|
-
"nested": {
|
|
12670
|
-
"NewDevice": {
|
|
12671
|
-
"fields": {
|
|
12672
|
-
"seedcard_backup": {
|
|
12673
|
-
"type": "bool",
|
|
12674
|
-
"id": 1
|
|
12675
|
-
}
|
|
12676
|
-
}
|
|
12677
|
-
},
|
|
12678
|
-
"Restore": {
|
|
12679
|
-
"fields": {
|
|
12680
|
-
"mnemonic": {
|
|
12681
|
-
"type": "bool",
|
|
12682
|
-
"id": 1
|
|
12683
|
-
},
|
|
12684
|
-
"seedcard": {
|
|
12685
|
-
"type": "bool",
|
|
12686
|
-
"id": 2
|
|
12687
|
-
}
|
|
12688
|
-
}
|
|
12689
|
-
}
|
|
12690
|
-
}
|
|
12691
12864
|
}
|
|
12692
12865
|
}
|
|
12693
12866
|
},
|
|
12867
|
+
"PortfolioUpdate": {
|
|
12868
|
+
"fields": {}
|
|
12869
|
+
},
|
|
12694
12870
|
"google": {
|
|
12695
12871
|
"nested": {
|
|
12696
12872
|
"protobuf": {
|