@onekeyfe/hd-web-sdk 0.1.10 → 0.1.11

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.
@@ -4086,6 +4086,9 @@ const inject = ({
4086
4086
  checkTransportRelease: () => call({
4087
4087
  method: 'checkTransportRelease'
4088
4088
  }),
4089
+ checkBridgeStatus: () => call({
4090
+ method: 'checkBridgeStatus'
4091
+ }),
4089
4092
  cipherKeyValue: (connectId, params) => call(Object.assign(Object.assign({}, params), {
4090
4093
  connectId,
4091
4094
  method: 'cipherKeyValue'
@@ -16345,6 +16348,25 @@ class CheckTransportRelease extends BaseMethod {
16345
16348
 
16346
16349
  }
16347
16350
 
16351
+ class CheckBridgeStatus extends BaseMethod {
16352
+ init() {
16353
+ this.useDevice = false;
16354
+ }
16355
+
16356
+ run() {
16357
+ return __awaiter(this, void 0, void 0, function* () {
16358
+ return new Promise(resolve => {
16359
+ axios__default["default"].request({
16360
+ url: 'http://localhost:21320',
16361
+ method: 'POST',
16362
+ withCredentials: false
16363
+ }).then(() => resolve(true)).catch(() => resolve(false));
16364
+ });
16365
+ });
16366
+ }
16367
+
16368
+ }
16369
+
16348
16370
  class DeviceBackup extends BaseMethod {
16349
16371
  init() {}
16350
16372
 
@@ -18584,6 +18606,7 @@ var ApiMethods = /*#__PURE__*/Object.freeze({
18584
18606
  checkFirmwareRelease: CheckFirmwareRelease,
18585
18607
  checkBLEFirmwareRelease: CheckBLEFirmwareRelease,
18586
18608
  checkTransportRelease: CheckTransportRelease,
18609
+ checkBridgeStatus: CheckBridgeStatus,
18587
18610
  deviceBackup: DeviceBackup,
18588
18611
  deviceChangePin: DeviceChangePin,
18589
18612
  deviceFlags: DeviceFlags,