unified-ble-manager 4.0.0-alpha.0

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.
Files changed (1774) hide show
  1. package/LICENSE +202 -0
  2. package/MIGRATION_4.0.md +46 -0
  3. package/README.md +885 -0
  4. package/ROADMAP.4.0.md +87 -0
  5. package/ROADMAP.md +712 -0
  6. package/android/build.gradle +116 -0
  7. package/android/gradle.properties +5 -0
  8. package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/BleModule.java +1666 -0
  9. package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/DisposableMap.java +39 -0
  10. package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/RefreshGattCustomOperation.java +53 -0
  11. package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/mapper/RxBleDeviceToDeviceMapper.java +19 -0
  12. package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/mapper/RxScanResultToScanResultMapper.java +22 -0
  13. package/android/src/main/AndroidManifest.xml +41 -0
  14. package/android/src/main/AndroidManifestNew.xml +44 -0
  15. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxForegroundService.java +398 -0
  16. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxModule.java +1237 -0
  17. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxPackage.java +60 -0
  18. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/Event.java +18 -0
  19. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/AdvertisementData.java +251 -0
  20. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapter.java +269 -0
  21. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapterCreator.java +7 -0
  22. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapterFactory.java +22 -0
  23. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Characteristic.java +169 -0
  24. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ConnectionOptions.java +72 -0
  25. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ConnectionState.java +12 -0
  26. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Descriptor.java +113 -0
  27. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Device.java +95 -0
  28. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnErrorCallback.java +8 -0
  29. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnEventCallback.java +6 -0
  30. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnSuccessCallback.java +6 -0
  31. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/RefreshGattMoment.java +20 -0
  32. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ScanResult.java +184 -0
  33. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Service.java +58 -0
  34. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleError.java +32 -0
  35. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleErrorCode.java +61 -0
  36. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleErrorUtils.java +86 -0
  37. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/ErrorConverter.java +34 -0
  38. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/exceptions/CannotMonitorCharacteristicException.java +15 -0
  39. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/Base64Converter.java +34 -0
  40. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/ByteUtils.java +15 -0
  41. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/Constants.java +66 -0
  42. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/IdGenerator.java +22 -0
  43. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/IdGeneratorKey.java +37 -0
  44. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/LogLevel.java +51 -0
  45. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/SafeExecutor.java +33 -0
  46. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/ServiceFactory.java +16 -0
  47. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/UUIDConverter.java +51 -0
  48. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/BleErrorToJsObjectConverter.java +65 -0
  49. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/CharacteristicToJsObjectConverter.java +52 -0
  50. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/DescriptorToJsObjectConverter.java +38 -0
  51. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/DeviceToJsObjectConverter.java +64 -0
  52. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/JSObjectConverter.java +17 -0
  53. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/ScanResultToJsObjectConverter.java +118 -0
  54. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/ServiceToJsObjectConverter.java +26 -0
  55. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/ProtocolCommandDecoder.kt +221 -0
  56. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/ProtocolWireEncoder.kt +129 -0
  57. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolAndroidDispatcher.kt +685 -0
  58. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolControlModule.java +367 -0
  59. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolJsiBinding.java +130 -0
  60. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/generated/NativeProtocolV1Schema.kt +302 -0
  61. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAdapterLifecycleCoordinator.kt +107 -0
  62. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAndroidGattRadio.kt +1599 -0
  63. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAndroidLog.kt +23 -0
  64. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedBleAdapter.kt +1689 -0
  65. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedBondedDevicesOperation.kt +32 -0
  66. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/Base64Converter.java +30 -0
  67. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/BlePlxDebugLogging.java +47 -0
  68. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/ErrorDefaults.java +9 -0
  69. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/ReadableArrayConverter.java +28 -0
  70. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/SafePromise.java +54 -0
  71. package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/UUIDConverter.java +70 -0
  72. package/android/src/main/jni/CMakeLists.txt +50 -0
  73. package/android/src/main/jni/UnifiedBleProtocolControlJni.cpp +253 -0
  74. package/android/src/main/jni/UnifiedBleProtocolJsiBinding.cpp +1400 -0
  75. package/android/src/main/jni/UnifiedBleProtocolRuntimeHandle.hpp +12 -0
  76. package/android/src/test/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolAndroidDispatcherLifecycleTest.kt +51 -0
  77. package/android/src/test/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAdapterLifecycleCoordinatorTest.kt +110 -0
  78. package/app.plugin.js +1 -0
  79. package/bin/ubm.js +18 -0
  80. package/docs/ADR/2026-07-4.0-backend-contract.md +133 -0
  81. package/docs/ADR/2026-07-4.0-boundary.md +128 -0
  82. package/docs/ADR/2026-07-4.0-capability-registry.md +116 -0
  83. package/docs/ADR/2026-07-4.0-open-source-governance.md +105 -0
  84. package/docs/ADR/2026-07-4.0-packaging.md +114 -0
  85. package/docs/ADR/2026-07-4.0-public-api.md +129 -0
  86. package/docs/ADR/2026-07-4.0-rn-restoration-bootstrap.md +122 -0
  87. package/docs/BACKEND_AUTHORING.md +13 -0
  88. package/docs/BACKGROUND.md +19 -0
  89. package/docs/BONDING.md +66 -0
  90. package/docs/CLI.md +18 -0
  91. package/docs/CONNECTION_MANAGER.md +188 -0
  92. package/docs/DISCOVERY_AND_PROFILES.md +143 -0
  93. package/docs/ELECTRON.md +29 -0
  94. package/docs/EXPO_PLUGIN.md +19 -0
  95. package/docs/FIX_TRACKER.4.0-round2.md +170 -0
  96. package/docs/FIX_TRACKER.4.0-round3.md +96 -0
  97. package/docs/FIX_TRACKER.4.0.md +168 -0
  98. package/docs/FORK.md +89 -0
  99. package/docs/GAPS.4.0.md +87 -0
  100. package/docs/GETTING_STARTED.md +37 -0
  101. package/docs/HELPERS.md +140 -0
  102. package/docs/MIGRATION_V1.md +6 -0
  103. package/docs/NODE.md +19 -0
  104. package/docs/PERFORMANCE.md +20 -0
  105. package/docs/PLATFORMS.md +51 -0
  106. package/docs/PROFILES_AND_COMMANDS.md +139 -0
  107. package/docs/README_V1.md +173 -0
  108. package/docs/TCK.md +21 -0
  109. package/docs/TUTORIALS.md +108 -0
  110. package/docs/TVOS.md +16 -0
  111. package/docs/UNIFIED_BLE_4.0_IMPLEMENTATION_PLAN.md +3053 -0
  112. package/docs/UNIFIED_SEMANTICS.md +965 -0
  113. package/docs/WEB.md +19 -0
  114. package/docs/generated/BACKEND_SDK_REFERENCE.md +52 -0
  115. package/docs/logo.png +0 -0
  116. package/docs/platforms/META_QUEST_4.1_SCOPE.md +21 -0
  117. package/docs/security/UNIFIED_BLE_4.0_THREAT_MODEL.md +126 -0
  118. package/ios/BlePlx-Bridging-Header.h +4 -0
  119. package/ios/BlePlx.h +21 -0
  120. package/ios/BlePlx.mm +885 -0
  121. package/ios/BlePlx.xcodeproj/project.pbxproj +288 -0
  122. package/ios/BlePlxDebugLogging.h +6 -0
  123. package/ios/BlePlxDebugLogging.m +33 -0
  124. package/ios/BlePlxRuntimeDispatch.h +8 -0
  125. package/ios/BlePlxTurboModule.mm +39 -0
  126. package/ios/Generated/NativeProtocolV1Schema.swift +302 -0
  127. package/ios/NativeProtocol/UnifiedBleProtocolAppleBinaryDelivery.hpp +25 -0
  128. package/ios/NativeProtocol/UnifiedBleProtocolAppleBinaryDelivery.mm +63 -0
  129. package/ios/NativeProtocol/UnifiedBleProtocolAppleExecution.hpp +46 -0
  130. package/ios/NativeProtocol/UnifiedBleProtocolAppleExecution.mm +883 -0
  131. package/ios/Owned/BlePlxRadioQueue.swift +23 -0
  132. package/ios/Owned/OwnedCoreBluetoothAdapter.swift +1704 -0
  133. package/ios/Owned/OwnedCoreBluetoothProtocolRadio.swift +870 -0
  134. package/ios/PrivacyInfo.xcprivacy +14 -0
  135. package/ios/Restoration/BlePlxDebugLogging.swift +26 -0
  136. package/ios/Restoration/BlePlxRestorationAdapter.swift +231 -0
  137. package/ios/Restoration/BlePlxRestorationState.swift +44 -0
  138. package/ios/Restoration/BleRestorationRegistry.swift +219 -0
  139. package/ios/UnifiedBleProtocolControl.mm +392 -0
  140. package/ios/vendor/MultiplatformBleAdapter/LICENSE +201 -0
  141. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/AdvertisementData.swift +62 -0
  142. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Array+Utils.swift +11 -0
  143. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothError.swift +195 -0
  144. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothManager.swift +357 -0
  145. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothState.swift +12 -0
  146. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Boxes.swift +63 -0
  147. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBCentral+Uuid.swift +9 -0
  148. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBCentralManagerDelegateWrapper.swift +75 -0
  149. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBPeripheralDelegateWrapper.swift +163 -0
  150. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Characteristic.swift +121 -0
  151. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Descriptor.swift +74 -0
  152. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/DeviceIdentifiers.swift +51 -0
  153. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Logging.swift +218 -0
  154. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ManagerType.swift +41 -0
  155. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Observable+Absorb.swift +25 -0
  156. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Observable+QueueSubscribeOn.swift +125 -0
  157. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Peripheral+Convenience.swift +213 -0
  158. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Peripheral.swift +516 -0
  159. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RestoredState.swift +59 -0
  160. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBCentralManager.swift +149 -0
  161. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBCharacteristic.swift +51 -0
  162. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBDescriptor.swift +32 -0
  163. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBPeripheral.swift +394 -0
  164. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBService.swift +42 -0
  165. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCentralManagerType.swift +23 -0
  166. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCharacteristicType.swift +24 -0
  167. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxDescriptorType.swift +21 -0
  168. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxPeripheralType.swift +76 -0
  169. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxServiceType.swift +21 -0
  170. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ScanOperation.swift +30 -0
  171. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ScannedPeripheral.swift +22 -0
  172. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Service.swift +75 -0
  173. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/UUIDIdentifiable.swift +25 -0
  174. package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Unimplemented.swift +13 -0
  175. package/ios/vendor/MultiplatformBleAdapter/RxSwift/AnyObserver.swift +69 -0
  176. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Binder.swift +59 -0
  177. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Cancelable.swift +13 -0
  178. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/AsyncLock.swift +100 -0
  179. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/Lock.swift +23 -0
  180. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/LockOwnerType.swift +16 -0
  181. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedDisposeType.swift +18 -0
  182. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedOnType.swift +18 -0
  183. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift +13 -0
  184. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ConnectableObservableType.swift +19 -0
  185. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Date+Dispatch.swift +64 -0
  186. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposable.swift +13 -0
  187. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/AnonymousDisposable.swift +59 -0
  188. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/BinaryDisposable.swift +53 -0
  189. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/BooleanDisposable.swift +34 -0
  190. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/CompositeDisposable.swift +147 -0
  191. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/Disposables.swift +13 -0
  192. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/DisposeBag.swift +144 -0
  193. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/DisposeBase.swift +22 -0
  194. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/NopDisposable.swift +30 -0
  195. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/RefCountDisposable.swift +112 -0
  196. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/ScheduledDisposable.swift +50 -0
  197. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SerialDisposable.swift +73 -0
  198. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SingleAssignmentDisposable.swift +72 -0
  199. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SubscriptionDisposable.swift +21 -0
  200. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Errors.swift +52 -0
  201. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Event.swift +104 -0
  202. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Extensions/Bag+Rx.swift +50 -0
  203. package/ios/vendor/MultiplatformBleAdapter/RxSwift/GroupedObservable.swift +35 -0
  204. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ImmediateSchedulerType.swift +36 -0
  205. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observable+Concurrency.swift +79 -0
  206. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observable.swift +31 -0
  207. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableConvertibleType.swift +18 -0
  208. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableType+Extensions.swift +174 -0
  209. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableType.swift +45 -0
  210. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AddRef.swift +44 -0
  211. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Amb.swift +157 -0
  212. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AsMaybe.swift +48 -0
  213. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AsSingle.swift +51 -0
  214. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Buffer.swift +138 -0
  215. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Catch.swift +275 -0
  216. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest+Collection.swift +165 -0
  217. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest+arity.swift +843 -0
  218. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest.swift +131 -0
  219. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CompactMap.swift +76 -0
  220. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Concat.swift +131 -0
  221. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Create.swift +78 -0
  222. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Debounce.swift +119 -0
  223. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Debug.swift +102 -0
  224. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Decode.swift +34 -0
  225. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DefaultIfEmpty.swift +66 -0
  226. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Deferred.swift +75 -0
  227. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Delay.swift +174 -0
  228. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DelaySubscription.swift +58 -0
  229. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Dematerialize.swift +51 -0
  230. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DistinctUntilChanged.swift +137 -0
  231. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Do.swift +112 -0
  232. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ElementAt.swift +105 -0
  233. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Empty.swift +27 -0
  234. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Enumerated.swift +61 -0
  235. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Error.swift +33 -0
  236. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Filter.swift +86 -0
  237. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/First.swift +41 -0
  238. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Generate.swift +87 -0
  239. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/GroupBy.swift +133 -0
  240. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Just.swift +87 -0
  241. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Map.swift +76 -0
  242. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Materialize.swift +44 -0
  243. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Merge.swift +600 -0
  244. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Multicast.swift +405 -0
  245. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Never.swift +27 -0
  246. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ObserveOn.swift +243 -0
  247. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Optional.swift +95 -0
  248. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Producer.swift +92 -0
  249. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Range.swift +73 -0
  250. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Reduce.swift +109 -0
  251. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Repeat.swift +57 -0
  252. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/RetryWhen.swift +211 -0
  253. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sample.swift +139 -0
  254. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Scan.swift +100 -0
  255. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sequence.swift +89 -0
  256. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ShareReplayScope.swift +443 -0
  257. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SingleAsync.swift +104 -0
  258. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sink.swift +75 -0
  259. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Skip.swift +158 -0
  260. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SkipUntil.swift +152 -0
  261. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SkipWhile.swift +87 -0
  262. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/StartWith.swift +42 -0
  263. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SubscribeOn.swift +103 -0
  264. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Switch.swift +251 -0
  265. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SwitchIfEmpty.swift +104 -0
  266. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Take.swift +193 -0
  267. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/TakeLast.swift +78 -0
  268. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/TakeWithPredicate.swift +285 -0
  269. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Throttle.swift +160 -0
  270. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Timeout.swift +151 -0
  271. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Timer.swift +117 -0
  272. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ToArray.swift +64 -0
  273. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Using.swift +90 -0
  274. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Window.swift +168 -0
  275. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/WithLatestFrom.swift +151 -0
  276. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/WithUnretained.swift +58 -0
  277. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip+Collection.swift +168 -0
  278. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip+arity.swift +934 -0
  279. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip.swift +135 -0
  280. package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObserverType.swift +40 -0
  281. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/AnonymousObserver.swift +30 -0
  282. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/ObserverBase.swift +32 -0
  283. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/TailRecursiveSink.swift +151 -0
  284. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/AtomicInt.swift +72 -0
  285. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/Bag.swift +181 -0
  286. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/InfiniteSequence.swift +23 -0
  287. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/PriorityQueue.swift +111 -0
  288. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/Queue.swift +148 -0
  289. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DispatchQueue+Extensions.swift +21 -0
  290. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/Platform.Darwin.swift +35 -0
  291. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/Platform.Linux.swift +32 -0
  292. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/RecursiveLock.swift +34 -0
  293. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Reactive.swift +80 -0
  294. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Rx.swift +142 -0
  295. package/ios/vendor/MultiplatformBleAdapter/RxSwift/RxMutableBox.swift +53 -0
  296. package/ios/vendor/MultiplatformBleAdapter/RxSwift/SchedulerType.swift +71 -0
  297. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift +82 -0
  298. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/ConcurrentMainScheduler.swift +87 -0
  299. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/CurrentThreadScheduler.swift +131 -0
  300. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/HistoricalScheduler.swift +22 -0
  301. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift +67 -0
  302. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift +97 -0
  303. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift +22 -0
  304. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/InvocableType.swift +17 -0
  305. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/ScheduledItem.swift +35 -0
  306. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/ScheduledItemType.swift +13 -0
  307. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/MainScheduler.swift +80 -0
  308. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/OperationQueueScheduler.swift +54 -0
  309. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/RecursiveScheduler.swift +220 -0
  310. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/SchedulerServices+Emulation.swift +61 -0
  311. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift +131 -0
  312. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/VirtualTimeConverterType.swift +97 -0
  313. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/VirtualTimeScheduler.swift +267 -0
  314. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/AsyncSubject.swift +154 -0
  315. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/BehaviorSubject.swift +157 -0
  316. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/PublishSubject.swift +140 -0
  317. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/ReplaySubject.swift +271 -0
  318. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/SubjectType.swift +21 -0
  319. package/ios/vendor/MultiplatformBleAdapter/RxSwift/SwiftSupport/SwiftSupport.swift +18 -0
  320. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+CombineLatest+Collection.swift +36 -0
  321. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+CombineLatest+arity.swift +276 -0
  322. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Concurrency.swift +37 -0
  323. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Create.swift +55 -0
  324. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Debug.swift +26 -0
  325. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Operators.swift +711 -0
  326. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Zip+arity.swift +138 -0
  327. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible.swift +102 -0
  328. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/ObservableConvertibleType+Infallible.swift +35 -0
  329. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Completable+AndThen.swift +132 -0
  330. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Completable.swift +320 -0
  331. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Maybe.swift +387 -0
  332. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/ObservableType+PrimitiveSequence.swift +55 -0
  333. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence+Concurrency.swift +164 -0
  334. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence+Zip+arity.swift +521 -0
  335. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence.swift +342 -0
  336. package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Single.swift +403 -0
  337. package/ios/vendor/MultiplatformBleAdapter/classes/BleAdapter.swift +236 -0
  338. package/ios/vendor/MultiplatformBleAdapter/classes/BleAdapterFactory.swift +25 -0
  339. package/ios/vendor/MultiplatformBleAdapter/classes/BleError.swift +309 -0
  340. package/ios/vendor/MultiplatformBleAdapter/classes/BleEvent.swift +48 -0
  341. package/ios/vendor/MultiplatformBleAdapter/classes/BleExtensions.swift +239 -0
  342. package/ios/vendor/MultiplatformBleAdapter/classes/BleModule.swift +1373 -0
  343. package/ios/vendor/MultiplatformBleAdapter/classes/BleUtils.swift +110 -0
  344. package/ios/vendor/MultiplatformBleAdapter/classes/Utils/DisposableMap.swift +32 -0
  345. package/ios/vendor/MultiplatformBleAdapter/classes/Utils/SafePromise.swift +37 -0
  346. package/lib/commonjs/backend-contract/advertisement.js +6 -0
  347. package/lib/commonjs/backend-contract/advertisement.js.map +1 -0
  348. package/lib/commonjs/backend-contract/backend-sdk.js +6 -0
  349. package/lib/commonjs/backend-contract/backend-sdk.js.map +1 -0
  350. package/lib/commonjs/backend-contract/backend.js +138 -0
  351. package/lib/commonjs/backend-contract/backend.js.map +1 -0
  352. package/lib/commonjs/backend-contract/capabilities.js +124 -0
  353. package/lib/commonjs/backend-contract/capabilities.js.map +1 -0
  354. package/lib/commonjs/backend-contract/connection-controls.js +13 -0
  355. package/lib/commonjs/backend-contract/connection-controls.js.map +1 -0
  356. package/lib/commonjs/backend-contract/electron.js +323 -0
  357. package/lib/commonjs/backend-contract/electron.js.map +1 -0
  358. package/lib/commonjs/backend-contract/errors.js +30 -0
  359. package/lib/commonjs/backend-contract/errors.js.map +1 -0
  360. package/lib/commonjs/backend-contract/gatt.js +22 -0
  361. package/lib/commonjs/backend-contract/gatt.js.map +1 -0
  362. package/lib/commonjs/backend-contract/host/electron-main.js +13 -0
  363. package/lib/commonjs/backend-contract/host/electron-main.js.map +1 -0
  364. package/lib/commonjs/backend-contract/host/electron-renderer.js +6 -0
  365. package/lib/commonjs/backend-contract/host/electron-renderer.js.map +1 -0
  366. package/lib/commonjs/backend-contract/host/node.js +6 -0
  367. package/lib/commonjs/backend-contract/host/node.js.map +1 -0
  368. package/lib/commonjs/backend-contract/host/web.js +6 -0
  369. package/lib/commonjs/backend-contract/host/web.js.map +1 -0
  370. package/lib/commonjs/backend-contract/identity.js +13 -0
  371. package/lib/commonjs/backend-contract/identity.js.map +1 -0
  372. package/lib/commonjs/backend-contract/index.js +181 -0
  373. package/lib/commonjs/backend-contract/index.js.map +1 -0
  374. package/lib/commonjs/backend-contract/operations.js +44 -0
  375. package/lib/commonjs/backend-contract/operations.js.map +1 -0
  376. package/lib/commonjs/backend-contract/primitives.js +244 -0
  377. package/lib/commonjs/backend-contract/primitives.js.map +1 -0
  378. package/lib/commonjs/backend-contract/restoration.js +6 -0
  379. package/lib/commonjs/backend-contract/restoration.js.map +1 -0
  380. package/lib/commonjs/backend-contract/serializable.js +173 -0
  381. package/lib/commonjs/backend-contract/serializable.js.map +1 -0
  382. package/lib/commonjs/backend-contract/streams.js +6 -0
  383. package/lib/commonjs/backend-contract/streams.js.map +1 -0
  384. package/lib/commonjs/backend-sdk-authoring.js +104 -0
  385. package/lib/commonjs/backend-sdk-authoring.js.map +1 -0
  386. package/lib/commonjs/backend-sdk.js +80 -0
  387. package/lib/commonjs/backend-sdk.js.map +1 -0
  388. package/lib/commonjs/backends/bluez/bluez-backend-handles.js +216 -0
  389. package/lib/commonjs/backends/bluez/bluez-backend-handles.js.map +1 -0
  390. package/lib/commonjs/backends/bluez/bluez-backend-provider.js +107 -0
  391. package/lib/commonjs/backends/bluez/bluez-backend-provider.js.map +1 -0
  392. package/lib/commonjs/backends/bluez/bluez-backend-runtime.js +615 -0
  393. package/lib/commonjs/backends/bluez/bluez-backend-runtime.js.map +1 -0
  394. package/lib/commonjs/backends/bluez/bluez-backend.js +77 -0
  395. package/lib/commonjs/backends/bluez/bluez-backend.js.map +1 -0
  396. package/lib/commonjs/backends/bluez/bluez-dbus-contract.js +25 -0
  397. package/lib/commonjs/backends/bluez/bluez-dbus-contract.js.map +1 -0
  398. package/lib/commonjs/backends/bluez/bluez-dbus-next-boundary.js +408 -0
  399. package/lib/commonjs/backends/bluez/bluez-dbus-next-boundary.js.map +1 -0
  400. package/lib/commonjs/backends/bluez/bluez-gatt-operations.js +100 -0
  401. package/lib/commonjs/backends/bluez/bluez-gatt-operations.js.map +1 -0
  402. package/lib/commonjs/backends/bluez/bluez-object-store.js +383 -0
  403. package/lib/commonjs/backends/bluez/bluez-object-store.js.map +1 -0
  404. package/lib/commonjs/backends/bluez/bluez-operation-dispatcher.js +163 -0
  405. package/lib/commonjs/backends/bluez/bluez-operation-dispatcher.js.map +1 -0
  406. package/lib/commonjs/backends/bluez/bluez-property-waiters.js +153 -0
  407. package/lib/commonjs/backends/bluez/bluez-property-waiters.js.map +1 -0
  408. package/lib/commonjs/backends/bluez/bluez-runtime-models.js +240 -0
  409. package/lib/commonjs/backends/bluez/bluez-runtime-models.js.map +1 -0
  410. package/lib/commonjs/backends/bluez/bluez-runtime-types.js +20 -0
  411. package/lib/commonjs/backends/bluez/bluez-runtime-types.js.map +1 -0
  412. package/lib/commonjs/backends/bluez/bluez-scan-runtime.js +242 -0
  413. package/lib/commonjs/backends/bluez/bluez-scan-runtime.js.map +1 -0
  414. package/lib/commonjs/backends/bluez/bluez-subscription-runtime.js +131 -0
  415. package/lib/commonjs/backends/bluez/bluez-subscription-runtime.js.map +1 -0
  416. package/lib/commonjs/backends/corebluetooth/corebluetooth-backend.js +696 -0
  417. package/lib/commonjs/backends/corebluetooth/corebluetooth-backend.js.map +1 -0
  418. package/lib/commonjs/backends/corebluetooth/corebluetooth-boundary.js +2 -0
  419. package/lib/commonjs/backends/corebluetooth/corebluetooth-boundary.js.map +1 -0
  420. package/lib/commonjs/backends/corebluetooth/corebluetooth-connection-controls.js +59 -0
  421. package/lib/commonjs/backends/corebluetooth/corebluetooth-connection-controls.js.map +1 -0
  422. package/lib/commonjs/backends/corebluetooth/corebluetooth-gatt-operations.js +215 -0
  423. package/lib/commonjs/backends/corebluetooth/corebluetooth-gatt-operations.js.map +1 -0
  424. package/lib/commonjs/backends/corebluetooth/corebluetooth-handles.js +280 -0
  425. package/lib/commonjs/backends/corebluetooth/corebluetooth-handles.js.map +1 -0
  426. package/lib/commonjs/backends/corebluetooth/corebluetooth-identity.js +22 -0
  427. package/lib/commonjs/backends/corebluetooth/corebluetooth-identity.js.map +1 -0
  428. package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-dispatcher.js +79 -0
  429. package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-dispatcher.js.map +1 -0
  430. package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-lifecycle.js +93 -0
  431. package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-lifecycle.js.map +1 -0
  432. package/lib/commonjs/backends/corebluetooth/corebluetooth-provider.js +65 -0
  433. package/lib/commonjs/backends/corebluetooth/corebluetooth-provider.js.map +1 -0
  434. package/lib/commonjs/backends/corebluetooth/corebluetooth-stream-limits.js +20 -0
  435. package/lib/commonjs/backends/corebluetooth/corebluetooth-stream-limits.js.map +1 -0
  436. package/lib/commonjs/backends/reactnative/react-native-android-provider.js +155 -0
  437. package/lib/commonjs/backends/reactnative/react-native-android-provider.js.map +1 -0
  438. package/lib/commonjs/backends/reactnative/react-native-apple-provider.js +152 -0
  439. package/lib/commonjs/backends/reactnative/react-native-apple-provider.js.map +1 -0
  440. package/lib/commonjs/backends/winrt/winrt-adapter-state.js +49 -0
  441. package/lib/commonjs/backends/winrt/winrt-adapter-state.js.map +1 -0
  442. package/lib/commonjs/backends/winrt/winrt-backend-helpers.js +84 -0
  443. package/lib/commonjs/backends/winrt/winrt-backend-helpers.js.map +1 -0
  444. package/lib/commonjs/backends/winrt/winrt-backend.js +683 -0
  445. package/lib/commonjs/backends/winrt/winrt-backend.js.map +1 -0
  446. package/lib/commonjs/backends/winrt/winrt-boundary.js +2 -0
  447. package/lib/commonjs/backends/winrt/winrt-boundary.js.map +1 -0
  448. package/lib/commonjs/backends/winrt/winrt-gatt-operations.js +244 -0
  449. package/lib/commonjs/backends/winrt/winrt-gatt-operations.js.map +1 -0
  450. package/lib/commonjs/backends/winrt/winrt-handles.js +297 -0
  451. package/lib/commonjs/backends/winrt/winrt-handles.js.map +1 -0
  452. package/lib/commonjs/backends/winrt/winrt-operation-dispatcher.js +159 -0
  453. package/lib/commonjs/backends/winrt/winrt-operation-dispatcher.js.map +1 -0
  454. package/lib/commonjs/backends/winrt/winrt-provider.js +83 -0
  455. package/lib/commonjs/backends/winrt/winrt-provider.js.map +1 -0
  456. package/lib/commonjs/backends/winrt/winrt-subscription-runtime.js +76 -0
  457. package/lib/commonjs/backends/winrt/winrt-subscription-runtime.js.map +1 -0
  458. package/lib/commonjs/cli-json.js +199 -0
  459. package/lib/commonjs/cli-json.js.map +1 -0
  460. package/lib/commonjs/cli.js +485 -0
  461. package/lib/commonjs/cli.js.map +1 -0
  462. package/lib/commonjs/codecs-primitives.js +19 -0
  463. package/lib/commonjs/codecs-primitives.js.map +1 -0
  464. package/lib/commonjs/codecs.js +51 -0
  465. package/lib/commonjs/codecs.js.map +1 -0
  466. package/lib/commonjs/core/aggregate-stream-quota.js +58 -0
  467. package/lib/commonjs/core/aggregate-stream-quota.js.map +1 -0
  468. package/lib/commonjs/core/bounded-stream.js +390 -0
  469. package/lib/commonjs/core/bounded-stream.js.map +1 -0
  470. package/lib/commonjs/core/core-adapter-state.js +21 -0
  471. package/lib/commonjs/core/core-adapter-state.js.map +1 -0
  472. package/lib/commonjs/core/core-characteristic-operations.js +55 -0
  473. package/lib/commonjs/core/core-characteristic-operations.js.map +1 -0
  474. package/lib/commonjs/core/core-connection-controls.js +76 -0
  475. package/lib/commonjs/core/core-connection-controls.js.map +1 -0
  476. package/lib/commonjs/core/core-descriptor-operations.js +55 -0
  477. package/lib/commonjs/core/core-descriptor-operations.js.map +1 -0
  478. package/lib/commonjs/core/core-discovery.js +38 -0
  479. package/lib/commonjs/core/core-discovery.js.map +1 -0
  480. package/lib/commonjs/core/core-gatt-handles.js +198 -0
  481. package/lib/commonjs/core/core-gatt-handles.js.map +1 -0
  482. package/lib/commonjs/core/core-lifecycle-observer.js +55 -0
  483. package/lib/commonjs/core/core-lifecycle-observer.js.map +1 -0
  484. package/lib/commonjs/core/gatt-path-equality.js +29 -0
  485. package/lib/commonjs/core/gatt-path-equality.js.map +1 -0
  486. package/lib/commonjs/core/index.js +67 -0
  487. package/lib/commonjs/core/index.js.map +1 -0
  488. package/lib/commonjs/core/operation-coordinator.js +374 -0
  489. package/lib/commonjs/core/operation-coordinator.js.map +1 -0
  490. package/lib/commonjs/core/resource-ledger.js +108 -0
  491. package/lib/commonjs/core/resource-ledger.js.map +1 -0
  492. package/lib/commonjs/core/subscription-registry.js +610 -0
  493. package/lib/commonjs/core/subscription-registry.js.map +1 -0
  494. package/lib/commonjs/core/trace-recorder.js +93 -0
  495. package/lib/commonjs/core/trace-recorder.js.map +1 -0
  496. package/lib/commonjs/core/unified-ble-core-helpers.js +214 -0
  497. package/lib/commonjs/core/unified-ble-core-helpers.js.map +1 -0
  498. package/lib/commonjs/core/unified-ble-core.js +640 -0
  499. package/lib/commonjs/core/unified-ble-core.js.map +1 -0
  500. package/lib/commonjs/diagnostics/trace-format.js +203 -0
  501. package/lib/commonjs/diagnostics/trace-format.js.map +1 -0
  502. package/lib/commonjs/electron/main-binding.js +251 -0
  503. package/lib/commonjs/electron/main-binding.js.map +1 -0
  504. package/lib/commonjs/electron/main-router.js +591 -0
  505. package/lib/commonjs/electron/main-router.js.map +1 -0
  506. package/lib/commonjs/electron/main.js +28 -0
  507. package/lib/commonjs/electron/main.js.map +1 -0
  508. package/lib/commonjs/electron/protocol.js +22 -0
  509. package/lib/commonjs/electron/protocol.js.map +1 -0
  510. package/lib/commonjs/electron/renderer-stream-registry.js +260 -0
  511. package/lib/commonjs/electron/renderer-stream-registry.js.map +1 -0
  512. package/lib/commonjs/electron/renderer.js +192 -0
  513. package/lib/commonjs/electron/renderer.js.map +1 -0
  514. package/lib/commonjs/electron-main.js +74 -0
  515. package/lib/commonjs/electron-main.js.map +1 -0
  516. package/lib/commonjs/electron-renderer.js +28 -0
  517. package/lib/commonjs/electron-renderer.js.map +1 -0
  518. package/lib/commonjs/index.js +112 -0
  519. package/lib/commonjs/index.js.map +1 -0
  520. package/lib/commonjs/manager/ble-manager.js +369 -0
  521. package/lib/commonjs/manager/ble-manager.js.map +1 -0
  522. package/lib/commonjs/manager/index.js +74 -0
  523. package/lib/commonjs/manager/index.js.map +1 -0
  524. package/lib/commonjs/manager/manager-ownership-authority.js +269 -0
  525. package/lib/commonjs/manager/manager-ownership-authority.js.map +1 -0
  526. package/lib/commonjs/native-protocol/generated/native-protocol-v1-schema.js +69 -0
  527. package/lib/commonjs/native-protocol/generated/native-protocol-v1-schema.js.map +1 -0
  528. package/lib/commonjs/native-protocol/rn-android-boundary.js +539 -0
  529. package/lib/commonjs/native-protocol/rn-android-boundary.js.map +1 -0
  530. package/lib/commonjs/native-protocol/rn-android-protocol-records.js +229 -0
  531. package/lib/commonjs/native-protocol/rn-android-protocol-records.js.map +1 -0
  532. package/lib/commonjs/native-protocol/rn-apple-boundary.js +13 -0
  533. package/lib/commonjs/native-protocol/rn-apple-boundary.js.map +1 -0
  534. package/lib/commonjs/native-protocol/rn-jsi-binary-runtime.js +54 -0
  535. package/lib/commonjs/native-protocol/rn-jsi-binary-runtime.js.map +1 -0
  536. package/lib/commonjs/native-protocol/v1-codec.js +439 -0
  537. package/lib/commonjs/native-protocol/v1-codec.js.map +1 -0
  538. package/lib/commonjs/node-bluez.js +56 -0
  539. package/lib/commonjs/node-bluez.js.map +1 -0
  540. package/lib/commonjs/node-corebluetooth.js +65 -0
  541. package/lib/commonjs/node-corebluetooth.js.map +1 -0
  542. package/lib/commonjs/node-winrt.js +73 -0
  543. package/lib/commonjs/node-winrt.js.map +1 -0
  544. package/lib/commonjs/package.json +1 -0
  545. package/lib/commonjs/profiles/battery-service.js +47 -0
  546. package/lib/commonjs/profiles/battery-service.js.map +1 -0
  547. package/lib/commonjs/profiles/blood-pressure.js +102 -0
  548. package/lib/commonjs/profiles/blood-pressure.js.map +1 -0
  549. package/lib/commonjs/profiles/bytes.js +61 -0
  550. package/lib/commonjs/profiles/bytes.js.map +1 -0
  551. package/lib/commonjs/profiles/commands.js +64 -0
  552. package/lib/commonjs/profiles/commands.js.map +1 -0
  553. package/lib/commonjs/profiles/date-time.js +36 -0
  554. package/lib/commonjs/profiles/date-time.js.map +1 -0
  555. package/lib/commonjs/profiles/device-information.js +131 -0
  556. package/lib/commonjs/profiles/device-information.js.map +1 -0
  557. package/lib/commonjs/profiles/errors.js +25 -0
  558. package/lib/commonjs/profiles/errors.js.map +1 -0
  559. package/lib/commonjs/profiles/health-thermometer.js +84 -0
  560. package/lib/commonjs/profiles/health-thermometer.js.map +1 -0
  561. package/lib/commonjs/profiles/heart-rate.js +108 -0
  562. package/lib/commonjs/profiles/heart-rate.js.map +1 -0
  563. package/lib/commonjs/profiles/identifiers.js +42 -0
  564. package/lib/commonjs/profiles/identifiers.js.map +1 -0
  565. package/lib/commonjs/profiles/ieee-11073.js +149 -0
  566. package/lib/commonjs/profiles/ieee-11073.js.map +1 -0
  567. package/lib/commonjs/profiles/standard-commands.js +62 -0
  568. package/lib/commonjs/profiles/standard-commands.js.map +1 -0
  569. package/lib/commonjs/react-native-manager.js +77 -0
  570. package/lib/commonjs/react-native-manager.js.map +1 -0
  571. package/lib/commonjs/react-native.js +113 -0
  572. package/lib/commonjs/react-native.js.map +1 -0
  573. package/lib/commonjs/tck/contracts.js +39 -0
  574. package/lib/commonjs/tck/contracts.js.map +1 -0
  575. package/lib/commonjs/tck/deterministic/deterministic-tck-factory.js +182 -0
  576. package/lib/commonjs/tck/deterministic/deterministic-tck-factory.js.map +1 -0
  577. package/lib/commonjs/tck/deterministic/deterministic-tck-identity.js +149 -0
  578. package/lib/commonjs/tck/deterministic/deterministic-tck-identity.js.map +1 -0
  579. package/lib/commonjs/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js +172 -0
  580. package/lib/commonjs/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js.map +1 -0
  581. package/lib/commonjs/tck/deterministic/deterministic-tck-manager-ownership.js +166 -0
  582. package/lib/commonjs/tck/deterministic/deterministic-tck-manager-ownership.js.map +1 -0
  583. package/lib/commonjs/tck/deterministic/deterministic-tck-scenario-helpers.js +173 -0
  584. package/lib/commonjs/tck/deterministic/deterministic-tck-scenario-helpers.js.map +1 -0
  585. package/lib/commonjs/tck/deterministic/deterministic-tck-scenarios.js +617 -0
  586. package/lib/commonjs/tck/deterministic/deterministic-tck-scenarios.js.map +1 -0
  587. package/lib/commonjs/tck/deterministic/deterministic-tck-subscription-overflow.js +102 -0
  588. package/lib/commonjs/tck/deterministic/deterministic-tck-subscription-overflow.js.map +1 -0
  589. package/lib/commonjs/tck/index.js +33 -0
  590. package/lib/commonjs/tck/index.js.map +1 -0
  591. package/lib/commonjs/tck/runner.js +432 -0
  592. package/lib/commonjs/tck/runner.js.map +1 -0
  593. package/lib/commonjs/tck/scenario-adapter.js +49 -0
  594. package/lib/commonjs/tck/scenario-adapter.js.map +1 -0
  595. package/lib/commonjs/tck/scenarios.js +114 -0
  596. package/lib/commonjs/tck/scenarios.js.map +1 -0
  597. package/lib/commonjs/testing/deterministic/deterministic-backend-base.js +562 -0
  598. package/lib/commonjs/testing/deterministic/deterministic-backend-base.js.map +1 -0
  599. package/lib/commonjs/testing/deterministic/deterministic-operation-admission.js +61 -0
  600. package/lib/commonjs/testing/deterministic/deterministic-operation-admission.js.map +1 -0
  601. package/lib/commonjs/testing/deterministic/deterministic-operation-runtime.js +315 -0
  602. package/lib/commonjs/testing/deterministic/deterministic-operation-runtime.js.map +1 -0
  603. package/lib/commonjs/testing/deterministic/deterministic-stream.js +466 -0
  604. package/lib/commonjs/testing/deterministic/deterministic-stream.js.map +1 -0
  605. package/lib/commonjs/testing/deterministic/deterministic-subscription-lifecycle.js +62 -0
  606. package/lib/commonjs/testing/deterministic/deterministic-subscription-lifecycle.js.map +1 -0
  607. package/lib/commonjs/testing/deterministic/deterministic-test-backend-controller.js +6 -0
  608. package/lib/commonjs/testing/deterministic/deterministic-test-backend-controller.js.map +1 -0
  609. package/lib/commonjs/testing/deterministic/deterministic-test-backend-gatt.js +33 -0
  610. package/lib/commonjs/testing/deterministic/deterministic-test-backend-gatt.js.map +1 -0
  611. package/lib/commonjs/testing/deterministic/deterministic-test-backend-handles.js +278 -0
  612. package/lib/commonjs/testing/deterministic/deterministic-test-backend-handles.js.map +1 -0
  613. package/lib/commonjs/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js +207 -0
  614. package/lib/commonjs/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js.map +1 -0
  615. package/lib/commonjs/testing/deterministic/deterministic-test-backend.js +576 -0
  616. package/lib/commonjs/testing/deterministic/deterministic-test-backend.js.map +1 -0
  617. package/lib/commonjs/testing/deterministic/virtual-clock.js +98 -0
  618. package/lib/commonjs/testing/deterministic/virtual-clock.js.map +1 -0
  619. package/lib/commonjs/testing/deterministic/virtual-peripheral.js +298 -0
  620. package/lib/commonjs/testing/deterministic/virtual-peripheral.js.map +1 -0
  621. package/lib/commonjs/testing/scenarios/deterministic-manager-scenario-factory.js +132 -0
  622. package/lib/commonjs/testing/scenarios/deterministic-manager-scenario-factory.js.map +1 -0
  623. package/lib/commonjs/testing/scenarios/manager-scenario-executor.js +325 -0
  624. package/lib/commonjs/testing/scenarios/manager-scenario-executor.js.map +1 -0
  625. package/lib/commonjs/testing/scenarios/manager-scenario-fixture.js +41 -0
  626. package/lib/commonjs/testing/scenarios/manager-scenario-fixture.js.map +1 -0
  627. package/lib/commonjs/testing/scenarios/manager-scenarios.js +136 -0
  628. package/lib/commonjs/testing/scenarios/manager-scenarios.js.map +1 -0
  629. package/lib/commonjs/testing.js +119 -0
  630. package/lib/commonjs/testing.js.map +1 -0
  631. package/lib/commonjs/web/navigator-web-bluetooth-boundary.js +207 -0
  632. package/lib/commonjs/web/navigator-web-bluetooth-boundary.js.map +1 -0
  633. package/lib/commonjs/web/web-bluetooth-backend.js +672 -0
  634. package/lib/commonjs/web/web-bluetooth-backend.js.map +1 -0
  635. package/lib/commonjs/web/web-bluetooth-boundary.js +6 -0
  636. package/lib/commonjs/web/web-bluetooth-boundary.js.map +1 -0
  637. package/lib/commonjs/web/web-bluetooth-errors.js +69 -0
  638. package/lib/commonjs/web/web-bluetooth-errors.js.map +1 -0
  639. package/lib/commonjs/web/web-bluetooth-gatt.js +498 -0
  640. package/lib/commonjs/web/web-bluetooth-gatt.js.map +1 -0
  641. package/lib/commonjs/web/web-bluetooth-handles.js +144 -0
  642. package/lib/commonjs/web/web-bluetooth-handles.js.map +1 -0
  643. package/lib/commonjs/web/web-bluetooth-tck.js +75 -0
  644. package/lib/commonjs/web/web-bluetooth-tck.js.map +1 -0
  645. package/lib/commonjs/web/web-feature-registry.js +57 -0
  646. package/lib/commonjs/web/web-feature-registry.js.map +1 -0
  647. package/lib/commonjs/web.js +58 -0
  648. package/lib/commonjs/web.js.map +1 -0
  649. package/lib/module/backend-contract/advertisement.js +4 -0
  650. package/lib/module/backend-contract/advertisement.js.map +1 -0
  651. package/lib/module/backend-contract/backend-sdk.js +4 -0
  652. package/lib/module/backend-contract/backend-sdk.js.map +1 -0
  653. package/lib/module/backend-contract/backend.js +131 -0
  654. package/lib/module/backend-contract/backend.js.map +1 -0
  655. package/lib/module/backend-contract/capabilities.js +119 -0
  656. package/lib/module/backend-contract/capabilities.js.map +1 -0
  657. package/lib/module/backend-contract/connection-controls.js +9 -0
  658. package/lib/module/backend-contract/connection-controls.js.map +1 -0
  659. package/lib/module/backend-contract/electron.js +319 -0
  660. package/lib/module/backend-contract/electron.js.map +1 -0
  661. package/lib/module/backend-contract/errors.js +24 -0
  662. package/lib/module/backend-contract/errors.js.map +1 -0
  663. package/lib/module/backend-contract/gatt.js +17 -0
  664. package/lib/module/backend-contract/gatt.js.map +1 -0
  665. package/lib/module/backend-contract/host/electron-main.js +6 -0
  666. package/lib/module/backend-contract/host/electron-main.js.map +1 -0
  667. package/lib/module/backend-contract/host/electron-renderer.js +4 -0
  668. package/lib/module/backend-contract/host/electron-renderer.js.map +1 -0
  669. package/lib/module/backend-contract/host/node.js +4 -0
  670. package/lib/module/backend-contract/host/node.js.map +1 -0
  671. package/lib/module/backend-contract/host/web.js +4 -0
  672. package/lib/module/backend-contract/host/web.js.map +1 -0
  673. package/lib/module/backend-contract/identity.js +9 -0
  674. package/lib/module/backend-contract/identity.js.map +1 -0
  675. package/lib/module/backend-contract/index.js +12 -0
  676. package/lib/module/backend-contract/index.js.map +1 -0
  677. package/lib/module/backend-contract/operations.js +39 -0
  678. package/lib/module/backend-contract/operations.js.map +1 -0
  679. package/lib/module/backend-contract/primitives.js +223 -0
  680. package/lib/module/backend-contract/primitives.js.map +1 -0
  681. package/lib/module/backend-contract/restoration.js +4 -0
  682. package/lib/module/backend-contract/restoration.js.map +1 -0
  683. package/lib/module/backend-contract/serializable.js +167 -0
  684. package/lib/module/backend-contract/serializable.js.map +1 -0
  685. package/lib/module/backend-contract/streams.js +4 -0
  686. package/lib/module/backend-contract/streams.js.map +1 -0
  687. package/lib/module/backend-sdk-authoring.js +98 -0
  688. package/lib/module/backend-sdk-authoring.js.map +1 -0
  689. package/lib/module/backend-sdk.js +14 -0
  690. package/lib/module/backend-sdk.js.map +1 -0
  691. package/lib/module/backends/bluez/bluez-backend-handles.js +207 -0
  692. package/lib/module/backends/bluez/bluez-backend-handles.js.map +1 -0
  693. package/lib/module/backends/bluez/bluez-backend-provider.js +102 -0
  694. package/lib/module/backends/bluez/bluez-backend-provider.js.map +1 -0
  695. package/lib/module/backends/bluez/bluez-backend-runtime.js +610 -0
  696. package/lib/module/backends/bluez/bluez-backend-runtime.js.map +1 -0
  697. package/lib/module/backends/bluez/bluez-backend.js +72 -0
  698. package/lib/module/backends/bluez/bluez-backend.js.map +1 -0
  699. package/lib/module/backends/bluez/bluez-dbus-contract.js +20 -0
  700. package/lib/module/backends/bluez/bluez-dbus-contract.js.map +1 -0
  701. package/lib/module/backends/bluez/bluez-dbus-next-boundary.js +402 -0
  702. package/lib/module/backends/bluez/bluez-dbus-next-boundary.js.map +1 -0
  703. package/lib/module/backends/bluez/bluez-gatt-operations.js +91 -0
  704. package/lib/module/backends/bluez/bluez-gatt-operations.js.map +1 -0
  705. package/lib/module/backends/bluez/bluez-object-store.js +378 -0
  706. package/lib/module/backends/bluez/bluez-object-store.js.map +1 -0
  707. package/lib/module/backends/bluez/bluez-operation-dispatcher.js +158 -0
  708. package/lib/module/backends/bluez/bluez-operation-dispatcher.js.map +1 -0
  709. package/lib/module/backends/bluez/bluez-property-waiters.js +143 -0
  710. package/lib/module/backends/bluez/bluez-property-waiters.js.map +1 -0
  711. package/lib/module/backends/bluez/bluez-runtime-models.js +225 -0
  712. package/lib/module/backends/bluez/bluez-runtime-models.js.map +1 -0
  713. package/lib/module/backends/bluez/bluez-runtime-types.js +16 -0
  714. package/lib/module/backends/bluez/bluez-runtime-types.js.map +1 -0
  715. package/lib/module/backends/bluez/bluez-scan-runtime.js +235 -0
  716. package/lib/module/backends/bluez/bluez-scan-runtime.js.map +1 -0
  717. package/lib/module/backends/bluez/bluez-subscription-runtime.js +125 -0
  718. package/lib/module/backends/bluez/bluez-subscription-runtime.js.map +1 -0
  719. package/lib/module/backends/corebluetooth/corebluetooth-backend.js +691 -0
  720. package/lib/module/backends/corebluetooth/corebluetooth-backend.js.map +1 -0
  721. package/lib/module/backends/corebluetooth/corebluetooth-boundary.js +2 -0
  722. package/lib/module/backends/corebluetooth/corebluetooth-boundary.js.map +1 -0
  723. package/lib/module/backends/corebluetooth/corebluetooth-connection-controls.js +54 -0
  724. package/lib/module/backends/corebluetooth/corebluetooth-connection-controls.js.map +1 -0
  725. package/lib/module/backends/corebluetooth/corebluetooth-gatt-operations.js +210 -0
  726. package/lib/module/backends/corebluetooth/corebluetooth-gatt-operations.js.map +1 -0
  727. package/lib/module/backends/corebluetooth/corebluetooth-handles.js +263 -0
  728. package/lib/module/backends/corebluetooth/corebluetooth-handles.js.map +1 -0
  729. package/lib/module/backends/corebluetooth/corebluetooth-identity.js +19 -0
  730. package/lib/module/backends/corebluetooth/corebluetooth-identity.js.map +1 -0
  731. package/lib/module/backends/corebluetooth/corebluetooth-operation-dispatcher.js +74 -0
  732. package/lib/module/backends/corebluetooth/corebluetooth-operation-dispatcher.js.map +1 -0
  733. package/lib/module/backends/corebluetooth/corebluetooth-operation-lifecycle.js +88 -0
  734. package/lib/module/backends/corebluetooth/corebluetooth-operation-lifecycle.js.map +1 -0
  735. package/lib/module/backends/corebluetooth/corebluetooth-provider.js +60 -0
  736. package/lib/module/backends/corebluetooth/corebluetooth-provider.js.map +1 -0
  737. package/lib/module/backends/corebluetooth/corebluetooth-stream-limits.js +16 -0
  738. package/lib/module/backends/corebluetooth/corebluetooth-stream-limits.js.map +1 -0
  739. package/lib/module/backends/reactnative/react-native-android-provider.js +148 -0
  740. package/lib/module/backends/reactnative/react-native-android-provider.js.map +1 -0
  741. package/lib/module/backends/reactnative/react-native-apple-provider.js +145 -0
  742. package/lib/module/backends/reactnative/react-native-apple-provider.js.map +1 -0
  743. package/lib/module/backends/winrt/winrt-adapter-state.js +43 -0
  744. package/lib/module/backends/winrt/winrt-adapter-state.js.map +1 -0
  745. package/lib/module/backends/winrt/winrt-backend-helpers.js +76 -0
  746. package/lib/module/backends/winrt/winrt-backend-helpers.js.map +1 -0
  747. package/lib/module/backends/winrt/winrt-backend.js +678 -0
  748. package/lib/module/backends/winrt/winrt-backend.js.map +1 -0
  749. package/lib/module/backends/winrt/winrt-boundary.js +2 -0
  750. package/lib/module/backends/winrt/winrt-boundary.js.map +1 -0
  751. package/lib/module/backends/winrt/winrt-gatt-operations.js +239 -0
  752. package/lib/module/backends/winrt/winrt-gatt-operations.js.map +1 -0
  753. package/lib/module/backends/winrt/winrt-handles.js +282 -0
  754. package/lib/module/backends/winrt/winrt-handles.js.map +1 -0
  755. package/lib/module/backends/winrt/winrt-operation-dispatcher.js +154 -0
  756. package/lib/module/backends/winrt/winrt-operation-dispatcher.js.map +1 -0
  757. package/lib/module/backends/winrt/winrt-provider.js +75 -0
  758. package/lib/module/backends/winrt/winrt-provider.js.map +1 -0
  759. package/lib/module/backends/winrt/winrt-subscription-runtime.js +68 -0
  760. package/lib/module/backends/winrt/winrt-subscription-runtime.js.map +1 -0
  761. package/lib/module/cli-json.js +193 -0
  762. package/lib/module/cli-json.js.map +1 -0
  763. package/lib/module/cli.js +468 -0
  764. package/lib/module/cli.js.map +1 -0
  765. package/lib/module/codecs-primitives.js +14 -0
  766. package/lib/module/codecs-primitives.js.map +1 -0
  767. package/lib/module/codecs.js +9 -0
  768. package/lib/module/codecs.js.map +1 -0
  769. package/lib/module/core/aggregate-stream-quota.js +53 -0
  770. package/lib/module/core/aggregate-stream-quota.js.map +1 -0
  771. package/lib/module/core/bounded-stream.js +385 -0
  772. package/lib/module/core/bounded-stream.js.map +1 -0
  773. package/lib/module/core/core-adapter-state.js +17 -0
  774. package/lib/module/core/core-adapter-state.js.map +1 -0
  775. package/lib/module/core/core-characteristic-operations.js +50 -0
  776. package/lib/module/core/core-characteristic-operations.js.map +1 -0
  777. package/lib/module/core/core-connection-controls.js +70 -0
  778. package/lib/module/core/core-connection-controls.js.map +1 -0
  779. package/lib/module/core/core-descriptor-operations.js +50 -0
  780. package/lib/module/core/core-descriptor-operations.js.map +1 -0
  781. package/lib/module/core/core-discovery.js +34 -0
  782. package/lib/module/core/core-discovery.js.map +1 -0
  783. package/lib/module/core/core-gatt-handles.js +192 -0
  784. package/lib/module/core/core-gatt-handles.js.map +1 -0
  785. package/lib/module/core/core-lifecycle-observer.js +50 -0
  786. package/lib/module/core/core-lifecycle-observer.js.map +1 -0
  787. package/lib/module/core/gatt-path-equality.js +21 -0
  788. package/lib/module/core/gatt-path-equality.js.map +1 -0
  789. package/lib/module/core/index.js +12 -0
  790. package/lib/module/core/index.js.map +1 -0
  791. package/lib/module/core/operation-coordinator.js +369 -0
  792. package/lib/module/core/operation-coordinator.js.map +1 -0
  793. package/lib/module/core/resource-ledger.js +103 -0
  794. package/lib/module/core/resource-ledger.js.map +1 -0
  795. package/lib/module/core/subscription-registry.js +604 -0
  796. package/lib/module/core/subscription-registry.js.map +1 -0
  797. package/lib/module/core/trace-recorder.js +88 -0
  798. package/lib/module/core/trace-recorder.js.map +1 -0
  799. package/lib/module/core/unified-ble-core-helpers.js +198 -0
  800. package/lib/module/core/unified-ble-core-helpers.js.map +1 -0
  801. package/lib/module/core/unified-ble-core.js +629 -0
  802. package/lib/module/core/unified-ble-core.js.map +1 -0
  803. package/lib/module/diagnostics/trace-format.js +197 -0
  804. package/lib/module/diagnostics/trace-format.js.map +1 -0
  805. package/lib/module/electron/main-binding.js +246 -0
  806. package/lib/module/electron/main-binding.js.map +1 -0
  807. package/lib/module/electron/main-router.js +585 -0
  808. package/lib/module/electron/main-router.js.map +1 -0
  809. package/lib/module/electron/main.js +7 -0
  810. package/lib/module/electron/main.js.map +1 -0
  811. package/lib/module/electron/protocol.js +18 -0
  812. package/lib/module/electron/protocol.js.map +1 -0
  813. package/lib/module/electron/renderer-stream-registry.js +255 -0
  814. package/lib/module/electron/renderer-stream-registry.js.map +1 -0
  815. package/lib/module/electron/renderer.js +187 -0
  816. package/lib/module/electron/renderer.js.map +1 -0
  817. package/lib/module/electron-main.js +35 -0
  818. package/lib/module/electron-main.js.map +1 -0
  819. package/lib/module/electron-renderer.js +7 -0
  820. package/lib/module/electron-renderer.js.map +1 -0
  821. package/lib/module/index.js +16 -0
  822. package/lib/module/index.js.map +1 -0
  823. package/lib/module/manager/ble-manager.js +355 -0
  824. package/lib/module/manager/ble-manager.js.map +1 -0
  825. package/lib/module/manager/index.js +7 -0
  826. package/lib/module/manager/index.js.map +1 -0
  827. package/lib/module/manager/manager-ownership-authority.js +261 -0
  828. package/lib/module/manager/manager-ownership-authority.js.map +1 -0
  829. package/lib/module/native-protocol/generated/native-protocol-v1-schema.js +65 -0
  830. package/lib/module/native-protocol/generated/native-protocol-v1-schema.js.map +1 -0
  831. package/lib/module/native-protocol/rn-android-boundary.js +534 -0
  832. package/lib/module/native-protocol/rn-android-boundary.js.map +1 -0
  833. package/lib/module/native-protocol/rn-android-protocol-records.js +206 -0
  834. package/lib/module/native-protocol/rn-android-protocol-records.js.map +1 -0
  835. package/lib/module/native-protocol/rn-apple-boundary.js +11 -0
  836. package/lib/module/native-protocol/rn-apple-boundary.js.map +1 -0
  837. package/lib/module/native-protocol/rn-jsi-binary-runtime.js +45 -0
  838. package/lib/module/native-protocol/rn-jsi-binary-runtime.js.map +1 -0
  839. package/lib/module/native-protocol/v1-codec.js +434 -0
  840. package/lib/module/native-protocol/v1-codec.js.map +1 -0
  841. package/lib/module/node-bluez.js +18 -0
  842. package/lib/module/node-bluez.js.map +1 -0
  843. package/lib/module/node-corebluetooth.js +31 -0
  844. package/lib/module/node-corebluetooth.js.map +1 -0
  845. package/lib/module/node-winrt.js +39 -0
  846. package/lib/module/node-winrt.js.map +1 -0
  847. package/lib/module/package.json +1 -0
  848. package/lib/module/profiles/battery-service.js +30 -0
  849. package/lib/module/profiles/battery-service.js.map +1 -0
  850. package/lib/module/profiles/blood-pressure.js +73 -0
  851. package/lib/module/profiles/blood-pressure.js.map +1 -0
  852. package/lib/module/profiles/bytes.js +49 -0
  853. package/lib/module/profiles/bytes.js.map +1 -0
  854. package/lib/module/profiles/commands.js +56 -0
  855. package/lib/module/profiles/commands.js.map +1 -0
  856. package/lib/module/profiles/date-time.js +32 -0
  857. package/lib/module/profiles/date-time.js.map +1 -0
  858. package/lib/module/profiles/device-information.js +69 -0
  859. package/lib/module/profiles/device-information.js.map +1 -0
  860. package/lib/module/profiles/errors.js +19 -0
  861. package/lib/module/profiles/errors.js.map +1 -0
  862. package/lib/module/profiles/health-thermometer.js +61 -0
  863. package/lib/module/profiles/health-thermometer.js.map +1 -0
  864. package/lib/module/profiles/heart-rate.js +76 -0
  865. package/lib/module/profiles/heart-rate.js.map +1 -0
  866. package/lib/module/profiles/identifiers.js +37 -0
  867. package/lib/module/profiles/identifiers.js.map +1 -0
  868. package/lib/module/profiles/ieee-11073.js +142 -0
  869. package/lib/module/profiles/ieee-11073.js.map +1 -0
  870. package/lib/module/profiles/standard-commands.js +47 -0
  871. package/lib/module/profiles/standard-commands.js.map +1 -0
  872. package/lib/module/react-native-manager.js +74 -0
  873. package/lib/module/react-native-manager.js.map +1 -0
  874. package/lib/module/react-native.js +18 -0
  875. package/lib/module/react-native.js.map +1 -0
  876. package/lib/module/tck/contracts.js +34 -0
  877. package/lib/module/tck/contracts.js.map +1 -0
  878. package/lib/module/tck/deterministic/deterministic-tck-factory.js +178 -0
  879. package/lib/module/tck/deterministic/deterministic-tck-factory.js.map +1 -0
  880. package/lib/module/tck/deterministic/deterministic-tck-identity.js +141 -0
  881. package/lib/module/tck/deterministic/deterministic-tck-identity.js.map +1 -0
  882. package/lib/module/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js +168 -0
  883. package/lib/module/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js.map +1 -0
  884. package/lib/module/tck/deterministic/deterministic-tck-manager-ownership.js +162 -0
  885. package/lib/module/tck/deterministic/deterministic-tck-manager-ownership.js.map +1 -0
  886. package/lib/module/tck/deterministic/deterministic-tck-scenario-helpers.js +152 -0
  887. package/lib/module/tck/deterministic/deterministic-tck-scenario-helpers.js.map +1 -0
  888. package/lib/module/tck/deterministic/deterministic-tck-scenarios.js +611 -0
  889. package/lib/module/tck/deterministic/deterministic-tck-scenarios.js.map +1 -0
  890. package/lib/module/tck/deterministic/deterministic-tck-subscription-overflow.js +99 -0
  891. package/lib/module/tck/deterministic/deterministic-tck-subscription-overflow.js.map +1 -0
  892. package/lib/module/tck/index.js +8 -0
  893. package/lib/module/tck/index.js.map +1 -0
  894. package/lib/module/tck/runner.js +429 -0
  895. package/lib/module/tck/runner.js.map +1 -0
  896. package/lib/module/tck/scenario-adapter.js +42 -0
  897. package/lib/module/tck/scenario-adapter.js.map +1 -0
  898. package/lib/module/tck/scenarios.js +109 -0
  899. package/lib/module/tck/scenarios.js.map +1 -0
  900. package/lib/module/testing/deterministic/deterministic-backend-base.js +557 -0
  901. package/lib/module/testing/deterministic/deterministic-backend-base.js.map +1 -0
  902. package/lib/module/testing/deterministic/deterministic-operation-admission.js +56 -0
  903. package/lib/module/testing/deterministic/deterministic-operation-admission.js.map +1 -0
  904. package/lib/module/testing/deterministic/deterministic-operation-runtime.js +309 -0
  905. package/lib/module/testing/deterministic/deterministic-operation-runtime.js.map +1 -0
  906. package/lib/module/testing/deterministic/deterministic-stream.js +460 -0
  907. package/lib/module/testing/deterministic/deterministic-stream.js.map +1 -0
  908. package/lib/module/testing/deterministic/deterministic-subscription-lifecycle.js +57 -0
  909. package/lib/module/testing/deterministic/deterministic-subscription-lifecycle.js.map +1 -0
  910. package/lib/module/testing/deterministic/deterministic-test-backend-controller.js +4 -0
  911. package/lib/module/testing/deterministic/deterministic-test-backend-controller.js.map +1 -0
  912. package/lib/module/testing/deterministic/deterministic-test-backend-gatt.js +29 -0
  913. package/lib/module/testing/deterministic/deterministic-test-backend-gatt.js.map +1 -0
  914. package/lib/module/testing/deterministic/deterministic-test-backend-handles.js +261 -0
  915. package/lib/module/testing/deterministic/deterministic-test-backend-handles.js.map +1 -0
  916. package/lib/module/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js +191 -0
  917. package/lib/module/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js.map +1 -0
  918. package/lib/module/testing/deterministic/deterministic-test-backend.js +570 -0
  919. package/lib/module/testing/deterministic/deterministic-test-backend.js.map +1 -0
  920. package/lib/module/testing/deterministic/virtual-clock.js +93 -0
  921. package/lib/module/testing/deterministic/virtual-clock.js.map +1 -0
  922. package/lib/module/testing/deterministic/virtual-peripheral.js +291 -0
  923. package/lib/module/testing/deterministic/virtual-peripheral.js.map +1 -0
  924. package/lib/module/testing/scenarios/deterministic-manager-scenario-factory.js +128 -0
  925. package/lib/module/testing/scenarios/deterministic-manager-scenario-factory.js.map +1 -0
  926. package/lib/module/testing/scenarios/manager-scenario-executor.js +319 -0
  927. package/lib/module/testing/scenarios/manager-scenario-executor.js.map +1 -0
  928. package/lib/module/testing/scenarios/manager-scenario-fixture.js +37 -0
  929. package/lib/module/testing/scenarios/manager-scenario-fixture.js.map +1 -0
  930. package/lib/module/testing/scenarios/manager-scenarios.js +130 -0
  931. package/lib/module/testing/scenarios/manager-scenarios.js.map +1 -0
  932. package/lib/module/testing.js +20 -0
  933. package/lib/module/testing.js.map +1 -0
  934. package/lib/module/web/navigator-web-bluetooth-boundary.js +202 -0
  935. package/lib/module/web/navigator-web-bluetooth-boundary.js.map +1 -0
  936. package/lib/module/web/web-bluetooth-backend.js +665 -0
  937. package/lib/module/web/web-bluetooth-backend.js.map +1 -0
  938. package/lib/module/web/web-bluetooth-boundary.js +4 -0
  939. package/lib/module/web/web-bluetooth-boundary.js.map +1 -0
  940. package/lib/module/web/web-bluetooth-errors.js +62 -0
  941. package/lib/module/web/web-bluetooth-errors.js.map +1 -0
  942. package/lib/module/web/web-bluetooth-gatt.js +494 -0
  943. package/lib/module/web/web-bluetooth-gatt.js.map +1 -0
  944. package/lib/module/web/web-bluetooth-handles.js +133 -0
  945. package/lib/module/web/web-bluetooth-handles.js.map +1 -0
  946. package/lib/module/web/web-bluetooth-tck.js +70 -0
  947. package/lib/module/web/web-bluetooth-tck.js.map +1 -0
  948. package/lib/module/web/web-feature-registry.js +53 -0
  949. package/lib/module/web/web-feature-registry.js.map +1 -0
  950. package/lib/module/web.js +14 -0
  951. package/lib/module/web.js.map +1 -0
  952. package/lib/typescript/commonjs/package.json +1 -0
  953. package/lib/typescript/commonjs/src/BleError.d.ts +448 -0
  954. package/lib/typescript/commonjs/src/BleError.d.ts.map +1 -0
  955. package/lib/typescript/commonjs/src/BleManager.d.ts +844 -0
  956. package/lib/typescript/commonjs/src/BleManager.d.ts.map +1 -0
  957. package/lib/typescript/commonjs/src/BleModule.d.ts +723 -0
  958. package/lib/typescript/commonjs/src/BleModule.d.ts.map +1 -0
  959. package/lib/typescript/commonjs/src/Characteristic.d.ts +154 -0
  960. package/lib/typescript/commonjs/src/Characteristic.d.ts.map +1 -0
  961. package/lib/typescript/commonjs/src/ConnectionManager.d.ts +209 -0
  962. package/lib/typescript/commonjs/src/ConnectionManager.d.ts.map +1 -0
  963. package/lib/typescript/commonjs/src/Descriptor.d.ts +79 -0
  964. package/lib/typescript/commonjs/src/Descriptor.d.ts.map +1 -0
  965. package/lib/typescript/commonjs/src/Device.d.ts +249 -0
  966. package/lib/typescript/commonjs/src/Device.d.ts.map +1 -0
  967. package/lib/typescript/commonjs/src/DeviceOperationQueue.d.ts +81 -0
  968. package/lib/typescript/commonjs/src/DeviceOperationQueue.d.ts.map +1 -0
  969. package/lib/typescript/commonjs/src/NativeBlePlx.d.ts +147 -0
  970. package/lib/typescript/commonjs/src/NativeBlePlx.d.ts.map +1 -0
  971. package/lib/typescript/commonjs/src/NativeUnifiedBleProtocolControl.d.ts +71 -0
  972. package/lib/typescript/commonjs/src/NativeUnifiedBleProtocolControl.d.ts.map +1 -0
  973. package/lib/typescript/commonjs/src/Service.d.ts +134 -0
  974. package/lib/typescript/commonjs/src/Service.d.ts.map +1 -0
  975. package/lib/typescript/commonjs/src/TypeDefinition.d.ts +339 -0
  976. package/lib/typescript/commonjs/src/TypeDefinition.d.ts.map +1 -0
  977. package/lib/typescript/commonjs/src/Utils.d.ts +17 -0
  978. package/lib/typescript/commonjs/src/Utils.d.ts.map +1 -0
  979. package/lib/typescript/commonjs/src/backend-contract/advertisement.d.ts +75 -0
  980. package/lib/typescript/commonjs/src/backend-contract/advertisement.d.ts.map +1 -0
  981. package/lib/typescript/commonjs/src/backend-contract/backend-sdk.d.ts +25 -0
  982. package/lib/typescript/commonjs/src/backend-contract/backend-sdk.d.ts.map +1 -0
  983. package/lib/typescript/commonjs/src/backend-contract/backend.d.ts +139 -0
  984. package/lib/typescript/commonjs/src/backend-contract/backend.d.ts.map +1 -0
  985. package/lib/typescript/commonjs/src/backend-contract/capabilities.d.ts +41 -0
  986. package/lib/typescript/commonjs/src/backend-contract/capabilities.d.ts.map +1 -0
  987. package/lib/typescript/commonjs/src/backend-contract/connection-controls.d.ts +22 -0
  988. package/lib/typescript/commonjs/src/backend-contract/connection-controls.d.ts.map +1 -0
  989. package/lib/typescript/commonjs/src/backend-contract/electron.d.ts +100 -0
  990. package/lib/typescript/commonjs/src/backend-contract/electron.d.ts.map +1 -0
  991. package/lib/typescript/commonjs/src/backend-contract/errors.d.ts +30 -0
  992. package/lib/typescript/commonjs/src/backend-contract/errors.d.ts.map +1 -0
  993. package/lib/typescript/commonjs/src/backend-contract/gatt.d.ts +70 -0
  994. package/lib/typescript/commonjs/src/backend-contract/gatt.d.ts.map +1 -0
  995. package/lib/typescript/commonjs/src/backend-contract/host/electron-main.d.ts +8 -0
  996. package/lib/typescript/commonjs/src/backend-contract/host/electron-main.d.ts.map +1 -0
  997. package/lib/typescript/commonjs/src/backend-contract/host/electron-renderer.d.ts +5 -0
  998. package/lib/typescript/commonjs/src/backend-contract/host/electron-renderer.d.ts.map +1 -0
  999. package/lib/typescript/commonjs/src/backend-contract/host/node.d.ts +5 -0
  1000. package/lib/typescript/commonjs/src/backend-contract/host/node.d.ts.map +1 -0
  1001. package/lib/typescript/commonjs/src/backend-contract/host/web.d.ts +20 -0
  1002. package/lib/typescript/commonjs/src/backend-contract/host/web.d.ts.map +1 -0
  1003. package/lib/typescript/commonjs/src/backend-contract/identity.d.ts +64 -0
  1004. package/lib/typescript/commonjs/src/backend-contract/identity.d.ts.map +1 -0
  1005. package/lib/typescript/commonjs/src/backend-contract/index.d.ts +18 -0
  1006. package/lib/typescript/commonjs/src/backend-contract/index.d.ts.map +1 -0
  1007. package/lib/typescript/commonjs/src/backend-contract/operations.d.ts +64 -0
  1008. package/lib/typescript/commonjs/src/backend-contract/operations.d.ts.map +1 -0
  1009. package/lib/typescript/commonjs/src/backend-contract/primitives.d.ts +142 -0
  1010. package/lib/typescript/commonjs/src/backend-contract/primitives.d.ts.map +1 -0
  1011. package/lib/typescript/commonjs/src/backend-contract/restoration.d.ts +47 -0
  1012. package/lib/typescript/commonjs/src/backend-contract/restoration.d.ts.map +1 -0
  1013. package/lib/typescript/commonjs/src/backend-contract/serializable.d.ts +11 -0
  1014. package/lib/typescript/commonjs/src/backend-contract/serializable.d.ts.map +1 -0
  1015. package/lib/typescript/commonjs/src/backend-contract/streams.d.ts +33 -0
  1016. package/lib/typescript/commonjs/src/backend-contract/streams.d.ts.map +1 -0
  1017. package/lib/typescript/commonjs/src/backend-sdk-authoring.d.ts +52 -0
  1018. package/lib/typescript/commonjs/src/backend-sdk-authoring.d.ts.map +1 -0
  1019. package/lib/typescript/commonjs/src/backend-sdk.d.ts +14 -0
  1020. package/lib/typescript/commonjs/src/backend-sdk.d.ts.map +1 -0
  1021. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-handles.d.ts +74 -0
  1022. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-handles.d.ts.map +1 -0
  1023. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-provider.d.ts +14 -0
  1024. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-provider.d.ts.map +1 -0
  1025. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-runtime.d.ts +100 -0
  1026. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-runtime.d.ts.map +1 -0
  1027. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend.d.ts +30 -0
  1028. package/lib/typescript/commonjs/src/backends/bluez/bluez-backend.d.ts.map +1 -0
  1029. package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-contract.d.ts +92 -0
  1030. package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-contract.d.ts.map +1 -0
  1031. package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-next-boundary.d.ts +6 -0
  1032. package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-next-boundary.d.ts.map +1 -0
  1033. package/lib/typescript/commonjs/src/backends/bluez/bluez-gatt-operations.d.ts +12 -0
  1034. package/lib/typescript/commonjs/src/backends/bluez/bluez-gatt-operations.d.ts.map +1 -0
  1035. package/lib/typescript/commonjs/src/backends/bluez/bluez-object-store.d.ts +45 -0
  1036. package/lib/typescript/commonjs/src/backends/bluez/bluez-object-store.d.ts.map +1 -0
  1037. package/lib/typescript/commonjs/src/backends/bluez/bluez-operation-dispatcher.d.ts +13 -0
  1038. package/lib/typescript/commonjs/src/backends/bluez/bluez-operation-dispatcher.d.ts.map +1 -0
  1039. package/lib/typescript/commonjs/src/backends/bluez/bluez-property-waiters.d.ts +11 -0
  1040. package/lib/typescript/commonjs/src/backends/bluez/bluez-property-waiters.d.ts.map +1 -0
  1041. package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-models.d.ts +22 -0
  1042. package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-models.d.ts.map +1 -0
  1043. package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-types.d.ts +100 -0
  1044. package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-types.d.ts.map +1 -0
  1045. package/lib/typescript/commonjs/src/backends/bluez/bluez-scan-runtime.d.ts +11 -0
  1046. package/lib/typescript/commonjs/src/backends/bluez/bluez-scan-runtime.d.ts.map +1 -0
  1047. package/lib/typescript/commonjs/src/backends/bluez/bluez-subscription-runtime.d.ts +11 -0
  1048. package/lib/typescript/commonjs/src/backends/bluez/bluez-subscription-runtime.d.ts.map +1 -0
  1049. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-backend.d.ts +121 -0
  1050. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-backend.d.ts.map +1 -0
  1051. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-boundary.d.ts +61 -0
  1052. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-boundary.d.ts.map +1 -0
  1053. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts +13 -0
  1054. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts.map +1 -0
  1055. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts +27 -0
  1056. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts.map +1 -0
  1057. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-handles.d.ts +91 -0
  1058. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-handles.d.ts.map +1 -0
  1059. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-identity.d.ts +13 -0
  1060. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-identity.d.ts.map +1 -0
  1061. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts +15 -0
  1062. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts.map +1 -0
  1063. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts +10 -0
  1064. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts.map +1 -0
  1065. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-provider.d.ts +15 -0
  1066. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-provider.d.ts.map +1 -0
  1067. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts +11 -0
  1068. package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts.map +1 -0
  1069. package/lib/typescript/commonjs/src/backends/reactnative/react-native-android-provider.d.ts +23 -0
  1070. package/lib/typescript/commonjs/src/backends/reactnative/react-native-android-provider.d.ts.map +1 -0
  1071. package/lib/typescript/commonjs/src/backends/reactnative/react-native-apple-provider.d.ts +20 -0
  1072. package/lib/typescript/commonjs/src/backends/reactnative/react-native-apple-provider.d.ts.map +1 -0
  1073. package/lib/typescript/commonjs/src/backends/winrt/winrt-adapter-state.d.ts +6 -0
  1074. package/lib/typescript/commonjs/src/backends/winrt/winrt-adapter-state.d.ts.map +1 -0
  1075. package/lib/typescript/commonjs/src/backends/winrt/winrt-backend-helpers.d.ts +24 -0
  1076. package/lib/typescript/commonjs/src/backends/winrt/winrt-backend-helpers.d.ts.map +1 -0
  1077. package/lib/typescript/commonjs/src/backends/winrt/winrt-backend.d.ts +114 -0
  1078. package/lib/typescript/commonjs/src/backends/winrt/winrt-backend.d.ts.map +1 -0
  1079. package/lib/typescript/commonjs/src/backends/winrt/winrt-boundary.d.ts +96 -0
  1080. package/lib/typescript/commonjs/src/backends/winrt/winrt-boundary.d.ts.map +1 -0
  1081. package/lib/typescript/commonjs/src/backends/winrt/winrt-gatt-operations.d.ts +36 -0
  1082. package/lib/typescript/commonjs/src/backends/winrt/winrt-gatt-operations.d.ts.map +1 -0
  1083. package/lib/typescript/commonjs/src/backends/winrt/winrt-handles.d.ts +84 -0
  1084. package/lib/typescript/commonjs/src/backends/winrt/winrt-handles.d.ts.map +1 -0
  1085. package/lib/typescript/commonjs/src/backends/winrt/winrt-operation-dispatcher.d.ts +26 -0
  1086. package/lib/typescript/commonjs/src/backends/winrt/winrt-operation-dispatcher.d.ts.map +1 -0
  1087. package/lib/typescript/commonjs/src/backends/winrt/winrt-provider.d.ts +17 -0
  1088. package/lib/typescript/commonjs/src/backends/winrt/winrt-provider.d.ts.map +1 -0
  1089. package/lib/typescript/commonjs/src/backends/winrt/winrt-subscription-runtime.d.ts +14 -0
  1090. package/lib/typescript/commonjs/src/backends/winrt/winrt-subscription-runtime.d.ts.map +1 -0
  1091. package/lib/typescript/commonjs/src/cli-json.d.ts +8 -0
  1092. package/lib/typescript/commonjs/src/cli-json.d.ts.map +1 -0
  1093. package/lib/typescript/commonjs/src/cli.d.ts +31 -0
  1094. package/lib/typescript/commonjs/src/cli.d.ts.map +1 -0
  1095. package/lib/typescript/commonjs/src/codecs-primitives.d.ts +5 -0
  1096. package/lib/typescript/commonjs/src/codecs-primitives.d.ts.map +1 -0
  1097. package/lib/typescript/commonjs/src/codecs.d.ts +7 -0
  1098. package/lib/typescript/commonjs/src/codecs.d.ts.map +1 -0
  1099. package/lib/typescript/commonjs/src/core/aggregate-stream-quota.d.ts +17 -0
  1100. package/lib/typescript/commonjs/src/core/aggregate-stream-quota.d.ts.map +1 -0
  1101. package/lib/typescript/commonjs/src/core/bounded-stream.d.ts +69 -0
  1102. package/lib/typescript/commonjs/src/core/bounded-stream.d.ts.map +1 -0
  1103. package/lib/typescript/commonjs/src/core/core-adapter-state.d.ts +5 -0
  1104. package/lib/typescript/commonjs/src/core/core-adapter-state.d.ts.map +1 -0
  1105. package/lib/typescript/commonjs/src/core/core-characteristic-operations.d.ts +12 -0
  1106. package/lib/typescript/commonjs/src/core/core-characteristic-operations.d.ts.map +1 -0
  1107. package/lib/typescript/commonjs/src/core/core-connection-controls.d.ts +14 -0
  1108. package/lib/typescript/commonjs/src/core/core-connection-controls.d.ts.map +1 -0
  1109. package/lib/typescript/commonjs/src/core/core-descriptor-operations.d.ts +12 -0
  1110. package/lib/typescript/commonjs/src/core/core-descriptor-operations.d.ts.map +1 -0
  1111. package/lib/typescript/commonjs/src/core/core-discovery.d.ts +9 -0
  1112. package/lib/typescript/commonjs/src/core/core-discovery.d.ts.map +1 -0
  1113. package/lib/typescript/commonjs/src/core/core-gatt-handles.d.ts +67 -0
  1114. package/lib/typescript/commonjs/src/core/core-gatt-handles.d.ts.map +1 -0
  1115. package/lib/typescript/commonjs/src/core/core-lifecycle-observer.d.ts +14 -0
  1116. package/lib/typescript/commonjs/src/core/core-lifecycle-observer.d.ts.map +1 -0
  1117. package/lib/typescript/commonjs/src/core/gatt-path-equality.d.ts +7 -0
  1118. package/lib/typescript/commonjs/src/core/gatt-path-equality.d.ts.map +1 -0
  1119. package/lib/typescript/commonjs/src/core/index.d.ts +11 -0
  1120. package/lib/typescript/commonjs/src/core/index.d.ts.map +1 -0
  1121. package/lib/typescript/commonjs/src/core/operation-coordinator.d.ts +87 -0
  1122. package/lib/typescript/commonjs/src/core/operation-coordinator.d.ts.map +1 -0
  1123. package/lib/typescript/commonjs/src/core/resource-ledger.d.ts +26 -0
  1124. package/lib/typescript/commonjs/src/core/resource-ledger.d.ts.map +1 -0
  1125. package/lib/typescript/commonjs/src/core/subscription-registry.d.ts +77 -0
  1126. package/lib/typescript/commonjs/src/core/subscription-registry.d.ts.map +1 -0
  1127. package/lib/typescript/commonjs/src/core/trace-recorder.d.ts +39 -0
  1128. package/lib/typescript/commonjs/src/core/trace-recorder.d.ts.map +1 -0
  1129. package/lib/typescript/commonjs/src/core/unified-ble-core-helpers.d.ts +32 -0
  1130. package/lib/typescript/commonjs/src/core/unified-ble-core-helpers.d.ts.map +1 -0
  1131. package/lib/typescript/commonjs/src/core/unified-ble-core.d.ts +101 -0
  1132. package/lib/typescript/commonjs/src/core/unified-ble-core.d.ts.map +1 -0
  1133. package/lib/typescript/commonjs/src/diagnostics/trace-format.d.ts +39 -0
  1134. package/lib/typescript/commonjs/src/diagnostics/trace-format.d.ts.map +1 -0
  1135. package/lib/typescript/commonjs/src/discovery/deviceSort.d.ts +23 -0
  1136. package/lib/typescript/commonjs/src/discovery/deviceSort.d.ts.map +1 -0
  1137. package/lib/typescript/commonjs/src/discovery/filters.d.ts +97 -0
  1138. package/lib/typescript/commonjs/src/discovery/filters.d.ts.map +1 -0
  1139. package/lib/typescript/commonjs/src/discovery/index.d.ts +6 -0
  1140. package/lib/typescript/commonjs/src/discovery/index.d.ts.map +1 -0
  1141. package/lib/typescript/commonjs/src/discovery/uuidMatch.d.ts +29 -0
  1142. package/lib/typescript/commonjs/src/discovery/uuidMatch.d.ts.map +1 -0
  1143. package/lib/typescript/commonjs/src/electron/main-binding.d.ts +48 -0
  1144. package/lib/typescript/commonjs/src/electron/main-binding.d.ts.map +1 -0
  1145. package/lib/typescript/commonjs/src/electron/main-router.d.ts +69 -0
  1146. package/lib/typescript/commonjs/src/electron/main-router.d.ts.map +1 -0
  1147. package/lib/typescript/commonjs/src/electron/main.d.ts +3 -0
  1148. package/lib/typescript/commonjs/src/electron/main.d.ts.map +1 -0
  1149. package/lib/typescript/commonjs/src/electron/protocol.d.ts +73 -0
  1150. package/lib/typescript/commonjs/src/electron/protocol.d.ts.map +1 -0
  1151. package/lib/typescript/commonjs/src/electron/renderer-stream-registry.d.ts +46 -0
  1152. package/lib/typescript/commonjs/src/electron/renderer-stream-registry.d.ts.map +1 -0
  1153. package/lib/typescript/commonjs/src/electron/renderer.d.ts +29 -0
  1154. package/lib/typescript/commonjs/src/electron/renderer.d.ts.map +1 -0
  1155. package/lib/typescript/commonjs/src/electron-main.d.ts +14 -0
  1156. package/lib/typescript/commonjs/src/electron-main.d.ts.map +1 -0
  1157. package/lib/typescript/commonjs/src/electron-renderer.d.ts +3 -0
  1158. package/lib/typescript/commonjs/src/electron-renderer.d.ts.map +1 -0
  1159. package/lib/typescript/commonjs/src/encoding.d.ts +13 -0
  1160. package/lib/typescript/commonjs/src/encoding.d.ts.map +1 -0
  1161. package/lib/typescript/commonjs/src/helpers/central.d.ts +66 -0
  1162. package/lib/typescript/commonjs/src/helpers/central.d.ts.map +1 -0
  1163. package/lib/typescript/commonjs/src/helpers/errors.d.ts +12 -0
  1164. package/lib/typescript/commonjs/src/helpers/errors.d.ts.map +1 -0
  1165. package/lib/typescript/commonjs/src/helpers/index.d.ts +9 -0
  1166. package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -0
  1167. package/lib/typescript/commonjs/src/helpers/types.d.ts +122 -0
  1168. package/lib/typescript/commonjs/src/helpers/types.d.ts.map +1 -0
  1169. package/lib/typescript/commonjs/src/hosts/electron.d.ts +78 -0
  1170. package/lib/typescript/commonjs/src/hosts/electron.d.ts.map +1 -0
  1171. package/lib/typescript/commonjs/src/hosts/native/bluez/BluezBlePort.d.ts +79 -0
  1172. package/lib/typescript/commonjs/src/hosts/native/bluez/BluezBlePort.d.ts.map +1 -0
  1173. package/lib/typescript/commonjs/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts +20 -0
  1174. package/lib/typescript/commonjs/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts.map +1 -0
  1175. package/lib/typescript/commonjs/src/hosts/native/winrt/WinRtBlePort.d.ts +18 -0
  1176. package/lib/typescript/commonjs/src/hosts/native/winrt/WinRtBlePort.d.ts.map +1 -0
  1177. package/lib/typescript/commonjs/src/hosts/node.d.ts +20 -0
  1178. package/lib/typescript/commonjs/src/hosts/node.d.ts.map +1 -0
  1179. package/lib/typescript/commonjs/src/hosts/web.d.ts +258 -0
  1180. package/lib/typescript/commonjs/src/hosts/web.d.ts.map +1 -0
  1181. package/lib/typescript/commonjs/src/index.d.ts +23 -0
  1182. package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
  1183. package/lib/typescript/commonjs/src/longWrite.d.ts +25 -0
  1184. package/lib/typescript/commonjs/src/longWrite.d.ts.map +1 -0
  1185. package/lib/typescript/commonjs/src/manager/ble-manager.d.ts +121 -0
  1186. package/lib/typescript/commonjs/src/manager/ble-manager.d.ts.map +1 -0
  1187. package/lib/typescript/commonjs/src/manager/index.d.ts +5 -0
  1188. package/lib/typescript/commonjs/src/manager/index.d.ts.map +1 -0
  1189. package/lib/typescript/commonjs/src/manager/manager-ownership-authority.d.ts +64 -0
  1190. package/lib/typescript/commonjs/src/manager/manager-ownership-authority.d.ts.map +1 -0
  1191. package/lib/typescript/commonjs/src/native-protocol/generated/native-protocol-v1-schema.d.ts +41 -0
  1192. package/lib/typescript/commonjs/src/native-protocol/generated/native-protocol-v1-schema.d.ts.map +1 -0
  1193. package/lib/typescript/commonjs/src/native-protocol/rn-android-boundary.d.ts +66 -0
  1194. package/lib/typescript/commonjs/src/native-protocol/rn-android-boundary.d.ts.map +1 -0
  1195. package/lib/typescript/commonjs/src/native-protocol/rn-android-protocol-records.d.ts +31 -0
  1196. package/lib/typescript/commonjs/src/native-protocol/rn-android-protocol-records.d.ts.map +1 -0
  1197. package/lib/typescript/commonjs/src/native-protocol/rn-apple-boundary.d.ts +7 -0
  1198. package/lib/typescript/commonjs/src/native-protocol/rn-apple-boundary.d.ts.map +1 -0
  1199. package/lib/typescript/commonjs/src/native-protocol/rn-jsi-binary-runtime.d.ts +33 -0
  1200. package/lib/typescript/commonjs/src/native-protocol/rn-jsi-binary-runtime.d.ts.map +1 -0
  1201. package/lib/typescript/commonjs/src/native-protocol/v1-codec.d.ts +15 -0
  1202. package/lib/typescript/commonjs/src/native-protocol/v1-codec.d.ts.map +1 -0
  1203. package/lib/typescript/commonjs/src/node-bluez.d.ts +13 -0
  1204. package/lib/typescript/commonjs/src/node-bluez.d.ts.map +1 -0
  1205. package/lib/typescript/commonjs/src/node-corebluetooth.d.ts +13 -0
  1206. package/lib/typescript/commonjs/src/node-corebluetooth.d.ts.map +1 -0
  1207. package/lib/typescript/commonjs/src/node-winrt.d.ts +13 -0
  1208. package/lib/typescript/commonjs/src/node-winrt.d.ts.map +1 -0
  1209. package/lib/typescript/commonjs/src/permissions.d.ts +43 -0
  1210. package/lib/typescript/commonjs/src/permissions.d.ts.map +1 -0
  1211. package/lib/typescript/commonjs/src/port/BlePort.d.ts +161 -0
  1212. package/lib/typescript/commonjs/src/port/BlePort.d.ts.map +1 -0
  1213. package/lib/typescript/commonjs/src/port/PortBleManager.d.ts +156 -0
  1214. package/lib/typescript/commonjs/src/port/PortBleManager.d.ts.map +1 -0
  1215. package/lib/typescript/commonjs/src/profiles/battery-service.d.ts +8 -0
  1216. package/lib/typescript/commonjs/src/profiles/battery-service.d.ts.map +1 -0
  1217. package/lib/typescript/commonjs/src/profiles/battery.d.ts +34 -0
  1218. package/lib/typescript/commonjs/src/profiles/battery.d.ts.map +1 -0
  1219. package/lib/typescript/commonjs/src/profiles/blood-pressure.d.ts +21 -0
  1220. package/lib/typescript/commonjs/src/profiles/blood-pressure.d.ts.map +1 -0
  1221. package/lib/typescript/commonjs/src/profiles/bloodPressure.d.ts +74 -0
  1222. package/lib/typescript/commonjs/src/profiles/bloodPressure.d.ts.map +1 -0
  1223. package/lib/typescript/commonjs/src/profiles/bytes.d.ts +10 -0
  1224. package/lib/typescript/commonjs/src/profiles/bytes.d.ts.map +1 -0
  1225. package/lib/typescript/commonjs/src/profiles/commands.d.ts +30 -0
  1226. package/lib/typescript/commonjs/src/profiles/commands.d.ts.map +1 -0
  1227. package/lib/typescript/commonjs/src/profiles/date-time.d.ts +10 -0
  1228. package/lib/typescript/commonjs/src/profiles/date-time.d.ts.map +1 -0
  1229. package/lib/typescript/commonjs/src/profiles/device-information.d.ts +24 -0
  1230. package/lib/typescript/commonjs/src/profiles/device-information.d.ts.map +1 -0
  1231. package/lib/typescript/commonjs/src/profiles/deviceInformation.d.ts +109 -0
  1232. package/lib/typescript/commonjs/src/profiles/deviceInformation.d.ts.map +1 -0
  1233. package/lib/typescript/commonjs/src/profiles/errors.d.ts +11 -0
  1234. package/lib/typescript/commonjs/src/profiles/errors.d.ts.map +1 -0
  1235. package/lib/typescript/commonjs/src/profiles/health-thermometer.d.ts +17 -0
  1236. package/lib/typescript/commonjs/src/profiles/health-thermometer.d.ts.map +1 -0
  1237. package/lib/typescript/commonjs/src/profiles/healthThermometer.d.ts +73 -0
  1238. package/lib/typescript/commonjs/src/profiles/healthThermometer.d.ts.map +1 -0
  1239. package/lib/typescript/commonjs/src/profiles/heart-rate.d.ts +20 -0
  1240. package/lib/typescript/commonjs/src/profiles/heart-rate.d.ts.map +1 -0
  1241. package/lib/typescript/commonjs/src/profiles/heartRate.d.ts +129 -0
  1242. package/lib/typescript/commonjs/src/profiles/heartRate.d.ts.map +1 -0
  1243. package/lib/typescript/commonjs/src/profiles/identifiers.d.ts +26 -0
  1244. package/lib/typescript/commonjs/src/profiles/identifiers.d.ts.map +1 -0
  1245. package/lib/typescript/commonjs/src/profiles/ieee-11073.d.ts +15 -0
  1246. package/lib/typescript/commonjs/src/profiles/ieee-11073.d.ts.map +1 -0
  1247. package/lib/typescript/commonjs/src/profiles/ieee11073.d.ts +80 -0
  1248. package/lib/typescript/commonjs/src/profiles/ieee11073.d.ts.map +1 -0
  1249. package/lib/typescript/commonjs/src/profiles/index.d.ts +21 -0
  1250. package/lib/typescript/commonjs/src/profiles/index.d.ts.map +1 -0
  1251. package/lib/typescript/commonjs/src/profiles/serviceHelpers.d.ts +48 -0
  1252. package/lib/typescript/commonjs/src/profiles/serviceHelpers.d.ts.map +1 -0
  1253. package/lib/typescript/commonjs/src/profiles/standard-commands.d.ts +21 -0
  1254. package/lib/typescript/commonjs/src/profiles/standard-commands.d.ts.map +1 -0
  1255. package/lib/typescript/commonjs/src/profiles/types.d.ts +32 -0
  1256. package/lib/typescript/commonjs/src/profiles/types.d.ts.map +1 -0
  1257. package/lib/typescript/commonjs/src/react-native-manager.d.ts +19 -0
  1258. package/lib/typescript/commonjs/src/react-native-manager.d.ts.map +1 -0
  1259. package/lib/typescript/commonjs/src/react-native.d.ts +15 -0
  1260. package/lib/typescript/commonjs/src/react-native.d.ts.map +1 -0
  1261. package/lib/typescript/commonjs/src/stringUtils.d.ts +8 -0
  1262. package/lib/typescript/commonjs/src/stringUtils.d.ts.map +1 -0
  1263. package/lib/typescript/commonjs/src/supports.d.ts +13 -0
  1264. package/lib/typescript/commonjs/src/supports.d.ts.map +1 -0
  1265. package/lib/typescript/commonjs/src/tck/contracts.d.ts +132 -0
  1266. package/lib/typescript/commonjs/src/tck/contracts.d.ts.map +1 -0
  1267. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-factory.d.ts +9 -0
  1268. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-factory.d.ts.map +1 -0
  1269. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-identity.d.ts +9 -0
  1270. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-identity.d.ts.map +1 -0
  1271. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts +8 -0
  1272. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts.map +1 -0
  1273. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts +4 -0
  1274. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts.map +1 -0
  1275. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts +56 -0
  1276. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts.map +1 -0
  1277. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenarios.d.ts +14 -0
  1278. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenarios.d.ts.map +1 -0
  1279. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts +5 -0
  1280. package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts.map +1 -0
  1281. package/lib/typescript/commonjs/src/tck/index.d.ts +6 -0
  1282. package/lib/typescript/commonjs/src/tck/index.d.ts.map +1 -0
  1283. package/lib/typescript/commonjs/src/tck/runner.d.ts +10 -0
  1284. package/lib/typescript/commonjs/src/tck/runner.d.ts.map +1 -0
  1285. package/lib/typescript/commonjs/src/tck/scenario-adapter.d.ts +19 -0
  1286. package/lib/typescript/commonjs/src/tck/scenario-adapter.d.ts.map +1 -0
  1287. package/lib/typescript/commonjs/src/tck/scenarios.d.ts +4 -0
  1288. package/lib/typescript/commonjs/src/tck/scenarios.d.ts.map +1 -0
  1289. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-backend-base.d.ts +118 -0
  1290. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-backend-base.d.ts.map +1 -0
  1291. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-admission.d.ts +5 -0
  1292. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-admission.d.ts.map +1 -0
  1293. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-runtime.d.ts +52 -0
  1294. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-runtime.d.ts.map +1 -0
  1295. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-stream.d.ts +65 -0
  1296. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-stream.d.ts.map +1 -0
  1297. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts +22 -0
  1298. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts.map +1 -0
  1299. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-controller.d.ts +25 -0
  1300. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-controller.d.ts.map +1 -0
  1301. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-gatt.d.ts +15 -0
  1302. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-gatt.d.ts.map +1 -0
  1303. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-handles.d.ts +109 -0
  1304. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-handles.d.ts.map +1 -0
  1305. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts +48 -0
  1306. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts.map +1 -0
  1307. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend.d.ts +71 -0
  1308. package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend.d.ts.map +1 -0
  1309. package/lib/typescript/commonjs/src/testing/deterministic/virtual-clock.d.ts +22 -0
  1310. package/lib/typescript/commonjs/src/testing/deterministic/virtual-clock.d.ts.map +1 -0
  1311. package/lib/typescript/commonjs/src/testing/deterministic/virtual-peripheral.d.ts +76 -0
  1312. package/lib/typescript/commonjs/src/testing/deterministic/virtual-peripheral.d.ts.map +1 -0
  1313. package/lib/typescript/commonjs/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts +4 -0
  1314. package/lib/typescript/commonjs/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts.map +1 -0
  1315. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-executor.d.ts +33 -0
  1316. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-executor.d.ts.map +1 -0
  1317. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-fixture.d.ts +19 -0
  1318. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-fixture.d.ts.map +1 -0
  1319. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenarios.d.ts +60 -0
  1320. package/lib/typescript/commonjs/src/testing/scenarios/manager-scenarios.d.ts.map +1 -0
  1321. package/lib/typescript/commonjs/src/testing.d.ts +22 -0
  1322. package/lib/typescript/commonjs/src/testing.d.ts.map +1 -0
  1323. package/lib/typescript/commonjs/src/unsupported.d.ts +12 -0
  1324. package/lib/typescript/commonjs/src/unsupported.d.ts.map +1 -0
  1325. package/lib/typescript/commonjs/src/web/navigator-web-bluetooth-boundary.d.ts +95 -0
  1326. package/lib/typescript/commonjs/src/web/navigator-web-bluetooth-boundary.d.ts.map +1 -0
  1327. package/lib/typescript/commonjs/src/web/web-bluetooth-backend.d.ts +99 -0
  1328. package/lib/typescript/commonjs/src/web/web-bluetooth-backend.d.ts.map +1 -0
  1329. package/lib/typescript/commonjs/src/web/web-bluetooth-boundary.d.ts +78 -0
  1330. package/lib/typescript/commonjs/src/web/web-bluetooth-boundary.d.ts.map +1 -0
  1331. package/lib/typescript/commonjs/src/web/web-bluetooth-errors.d.ts +13 -0
  1332. package/lib/typescript/commonjs/src/web/web-bluetooth-errors.d.ts.map +1 -0
  1333. package/lib/typescript/commonjs/src/web/web-bluetooth-gatt.d.ts +62 -0
  1334. package/lib/typescript/commonjs/src/web/web-bluetooth-gatt.d.ts.map +1 -0
  1335. package/lib/typescript/commonjs/src/web/web-bluetooth-handles.d.ts +124 -0
  1336. package/lib/typescript/commonjs/src/web/web-bluetooth-handles.d.ts.map +1 -0
  1337. package/lib/typescript/commonjs/src/web/web-bluetooth-tck.d.ts +33 -0
  1338. package/lib/typescript/commonjs/src/web/web-bluetooth-tck.d.ts.map +1 -0
  1339. package/lib/typescript/commonjs/src/web/web-feature-registry.d.ts +3 -0
  1340. package/lib/typescript/commonjs/src/web/web-feature-registry.d.ts.map +1 -0
  1341. package/lib/typescript/commonjs/src/web.d.ts +10 -0
  1342. package/lib/typescript/commonjs/src/web.d.ts.map +1 -0
  1343. package/lib/typescript/module/package.json +1 -0
  1344. package/lib/typescript/module/src/BleError.d.ts +448 -0
  1345. package/lib/typescript/module/src/BleError.d.ts.map +1 -0
  1346. package/lib/typescript/module/src/BleManager.d.ts +844 -0
  1347. package/lib/typescript/module/src/BleManager.d.ts.map +1 -0
  1348. package/lib/typescript/module/src/BleModule.d.ts +723 -0
  1349. package/lib/typescript/module/src/BleModule.d.ts.map +1 -0
  1350. package/lib/typescript/module/src/Characteristic.d.ts +154 -0
  1351. package/lib/typescript/module/src/Characteristic.d.ts.map +1 -0
  1352. package/lib/typescript/module/src/ConnectionManager.d.ts +209 -0
  1353. package/lib/typescript/module/src/ConnectionManager.d.ts.map +1 -0
  1354. package/lib/typescript/module/src/Descriptor.d.ts +79 -0
  1355. package/lib/typescript/module/src/Descriptor.d.ts.map +1 -0
  1356. package/lib/typescript/module/src/Device.d.ts +249 -0
  1357. package/lib/typescript/module/src/Device.d.ts.map +1 -0
  1358. package/lib/typescript/module/src/DeviceOperationQueue.d.ts +81 -0
  1359. package/lib/typescript/module/src/DeviceOperationQueue.d.ts.map +1 -0
  1360. package/lib/typescript/module/src/NativeBlePlx.d.ts +147 -0
  1361. package/lib/typescript/module/src/NativeBlePlx.d.ts.map +1 -0
  1362. package/lib/typescript/module/src/NativeUnifiedBleProtocolControl.d.ts +71 -0
  1363. package/lib/typescript/module/src/NativeUnifiedBleProtocolControl.d.ts.map +1 -0
  1364. package/lib/typescript/module/src/Service.d.ts +134 -0
  1365. package/lib/typescript/module/src/Service.d.ts.map +1 -0
  1366. package/lib/typescript/module/src/TypeDefinition.d.ts +339 -0
  1367. package/lib/typescript/module/src/TypeDefinition.d.ts.map +1 -0
  1368. package/lib/typescript/module/src/Utils.d.ts +17 -0
  1369. package/lib/typescript/module/src/Utils.d.ts.map +1 -0
  1370. package/lib/typescript/module/src/backend-contract/advertisement.d.ts +75 -0
  1371. package/lib/typescript/module/src/backend-contract/advertisement.d.ts.map +1 -0
  1372. package/lib/typescript/module/src/backend-contract/backend-sdk.d.ts +25 -0
  1373. package/lib/typescript/module/src/backend-contract/backend-sdk.d.ts.map +1 -0
  1374. package/lib/typescript/module/src/backend-contract/backend.d.ts +139 -0
  1375. package/lib/typescript/module/src/backend-contract/backend.d.ts.map +1 -0
  1376. package/lib/typescript/module/src/backend-contract/capabilities.d.ts +41 -0
  1377. package/lib/typescript/module/src/backend-contract/capabilities.d.ts.map +1 -0
  1378. package/lib/typescript/module/src/backend-contract/connection-controls.d.ts +22 -0
  1379. package/lib/typescript/module/src/backend-contract/connection-controls.d.ts.map +1 -0
  1380. package/lib/typescript/module/src/backend-contract/electron.d.ts +100 -0
  1381. package/lib/typescript/module/src/backend-contract/electron.d.ts.map +1 -0
  1382. package/lib/typescript/module/src/backend-contract/errors.d.ts +30 -0
  1383. package/lib/typescript/module/src/backend-contract/errors.d.ts.map +1 -0
  1384. package/lib/typescript/module/src/backend-contract/gatt.d.ts +70 -0
  1385. package/lib/typescript/module/src/backend-contract/gatt.d.ts.map +1 -0
  1386. package/lib/typescript/module/src/backend-contract/host/electron-main.d.ts +8 -0
  1387. package/lib/typescript/module/src/backend-contract/host/electron-main.d.ts.map +1 -0
  1388. package/lib/typescript/module/src/backend-contract/host/electron-renderer.d.ts +5 -0
  1389. package/lib/typescript/module/src/backend-contract/host/electron-renderer.d.ts.map +1 -0
  1390. package/lib/typescript/module/src/backend-contract/host/node.d.ts +5 -0
  1391. package/lib/typescript/module/src/backend-contract/host/node.d.ts.map +1 -0
  1392. package/lib/typescript/module/src/backend-contract/host/web.d.ts +20 -0
  1393. package/lib/typescript/module/src/backend-contract/host/web.d.ts.map +1 -0
  1394. package/lib/typescript/module/src/backend-contract/identity.d.ts +64 -0
  1395. package/lib/typescript/module/src/backend-contract/identity.d.ts.map +1 -0
  1396. package/lib/typescript/module/src/backend-contract/index.d.ts +18 -0
  1397. package/lib/typescript/module/src/backend-contract/index.d.ts.map +1 -0
  1398. package/lib/typescript/module/src/backend-contract/operations.d.ts +64 -0
  1399. package/lib/typescript/module/src/backend-contract/operations.d.ts.map +1 -0
  1400. package/lib/typescript/module/src/backend-contract/primitives.d.ts +142 -0
  1401. package/lib/typescript/module/src/backend-contract/primitives.d.ts.map +1 -0
  1402. package/lib/typescript/module/src/backend-contract/restoration.d.ts +47 -0
  1403. package/lib/typescript/module/src/backend-contract/restoration.d.ts.map +1 -0
  1404. package/lib/typescript/module/src/backend-contract/serializable.d.ts +11 -0
  1405. package/lib/typescript/module/src/backend-contract/serializable.d.ts.map +1 -0
  1406. package/lib/typescript/module/src/backend-contract/streams.d.ts +33 -0
  1407. package/lib/typescript/module/src/backend-contract/streams.d.ts.map +1 -0
  1408. package/lib/typescript/module/src/backend-sdk-authoring.d.ts +52 -0
  1409. package/lib/typescript/module/src/backend-sdk-authoring.d.ts.map +1 -0
  1410. package/lib/typescript/module/src/backend-sdk.d.ts +14 -0
  1411. package/lib/typescript/module/src/backend-sdk.d.ts.map +1 -0
  1412. package/lib/typescript/module/src/backends/bluez/bluez-backend-handles.d.ts +74 -0
  1413. package/lib/typescript/module/src/backends/bluez/bluez-backend-handles.d.ts.map +1 -0
  1414. package/lib/typescript/module/src/backends/bluez/bluez-backend-provider.d.ts +14 -0
  1415. package/lib/typescript/module/src/backends/bluez/bluez-backend-provider.d.ts.map +1 -0
  1416. package/lib/typescript/module/src/backends/bluez/bluez-backend-runtime.d.ts +100 -0
  1417. package/lib/typescript/module/src/backends/bluez/bluez-backend-runtime.d.ts.map +1 -0
  1418. package/lib/typescript/module/src/backends/bluez/bluez-backend.d.ts +30 -0
  1419. package/lib/typescript/module/src/backends/bluez/bluez-backend.d.ts.map +1 -0
  1420. package/lib/typescript/module/src/backends/bluez/bluez-dbus-contract.d.ts +92 -0
  1421. package/lib/typescript/module/src/backends/bluez/bluez-dbus-contract.d.ts.map +1 -0
  1422. package/lib/typescript/module/src/backends/bluez/bluez-dbus-next-boundary.d.ts +6 -0
  1423. package/lib/typescript/module/src/backends/bluez/bluez-dbus-next-boundary.d.ts.map +1 -0
  1424. package/lib/typescript/module/src/backends/bluez/bluez-gatt-operations.d.ts +12 -0
  1425. package/lib/typescript/module/src/backends/bluez/bluez-gatt-operations.d.ts.map +1 -0
  1426. package/lib/typescript/module/src/backends/bluez/bluez-object-store.d.ts +45 -0
  1427. package/lib/typescript/module/src/backends/bluez/bluez-object-store.d.ts.map +1 -0
  1428. package/lib/typescript/module/src/backends/bluez/bluez-operation-dispatcher.d.ts +13 -0
  1429. package/lib/typescript/module/src/backends/bluez/bluez-operation-dispatcher.d.ts.map +1 -0
  1430. package/lib/typescript/module/src/backends/bluez/bluez-property-waiters.d.ts +11 -0
  1431. package/lib/typescript/module/src/backends/bluez/bluez-property-waiters.d.ts.map +1 -0
  1432. package/lib/typescript/module/src/backends/bluez/bluez-runtime-models.d.ts +22 -0
  1433. package/lib/typescript/module/src/backends/bluez/bluez-runtime-models.d.ts.map +1 -0
  1434. package/lib/typescript/module/src/backends/bluez/bluez-runtime-types.d.ts +100 -0
  1435. package/lib/typescript/module/src/backends/bluez/bluez-runtime-types.d.ts.map +1 -0
  1436. package/lib/typescript/module/src/backends/bluez/bluez-scan-runtime.d.ts +11 -0
  1437. package/lib/typescript/module/src/backends/bluez/bluez-scan-runtime.d.ts.map +1 -0
  1438. package/lib/typescript/module/src/backends/bluez/bluez-subscription-runtime.d.ts +11 -0
  1439. package/lib/typescript/module/src/backends/bluez/bluez-subscription-runtime.d.ts.map +1 -0
  1440. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-backend.d.ts +121 -0
  1441. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-backend.d.ts.map +1 -0
  1442. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-boundary.d.ts +61 -0
  1443. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-boundary.d.ts.map +1 -0
  1444. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts +13 -0
  1445. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts.map +1 -0
  1446. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts +27 -0
  1447. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts.map +1 -0
  1448. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-handles.d.ts +91 -0
  1449. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-handles.d.ts.map +1 -0
  1450. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-identity.d.ts +13 -0
  1451. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-identity.d.ts.map +1 -0
  1452. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts +15 -0
  1453. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts.map +1 -0
  1454. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts +10 -0
  1455. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts.map +1 -0
  1456. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-provider.d.ts +15 -0
  1457. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-provider.d.ts.map +1 -0
  1458. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts +11 -0
  1459. package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts.map +1 -0
  1460. package/lib/typescript/module/src/backends/reactnative/react-native-android-provider.d.ts +23 -0
  1461. package/lib/typescript/module/src/backends/reactnative/react-native-android-provider.d.ts.map +1 -0
  1462. package/lib/typescript/module/src/backends/reactnative/react-native-apple-provider.d.ts +20 -0
  1463. package/lib/typescript/module/src/backends/reactnative/react-native-apple-provider.d.ts.map +1 -0
  1464. package/lib/typescript/module/src/backends/winrt/winrt-adapter-state.d.ts +6 -0
  1465. package/lib/typescript/module/src/backends/winrt/winrt-adapter-state.d.ts.map +1 -0
  1466. package/lib/typescript/module/src/backends/winrt/winrt-backend-helpers.d.ts +24 -0
  1467. package/lib/typescript/module/src/backends/winrt/winrt-backend-helpers.d.ts.map +1 -0
  1468. package/lib/typescript/module/src/backends/winrt/winrt-backend.d.ts +114 -0
  1469. package/lib/typescript/module/src/backends/winrt/winrt-backend.d.ts.map +1 -0
  1470. package/lib/typescript/module/src/backends/winrt/winrt-boundary.d.ts +96 -0
  1471. package/lib/typescript/module/src/backends/winrt/winrt-boundary.d.ts.map +1 -0
  1472. package/lib/typescript/module/src/backends/winrt/winrt-gatt-operations.d.ts +36 -0
  1473. package/lib/typescript/module/src/backends/winrt/winrt-gatt-operations.d.ts.map +1 -0
  1474. package/lib/typescript/module/src/backends/winrt/winrt-handles.d.ts +84 -0
  1475. package/lib/typescript/module/src/backends/winrt/winrt-handles.d.ts.map +1 -0
  1476. package/lib/typescript/module/src/backends/winrt/winrt-operation-dispatcher.d.ts +26 -0
  1477. package/lib/typescript/module/src/backends/winrt/winrt-operation-dispatcher.d.ts.map +1 -0
  1478. package/lib/typescript/module/src/backends/winrt/winrt-provider.d.ts +17 -0
  1479. package/lib/typescript/module/src/backends/winrt/winrt-provider.d.ts.map +1 -0
  1480. package/lib/typescript/module/src/backends/winrt/winrt-subscription-runtime.d.ts +14 -0
  1481. package/lib/typescript/module/src/backends/winrt/winrt-subscription-runtime.d.ts.map +1 -0
  1482. package/lib/typescript/module/src/cli-json.d.ts +8 -0
  1483. package/lib/typescript/module/src/cli-json.d.ts.map +1 -0
  1484. package/lib/typescript/module/src/cli.d.ts +31 -0
  1485. package/lib/typescript/module/src/cli.d.ts.map +1 -0
  1486. package/lib/typescript/module/src/codecs-primitives.d.ts +5 -0
  1487. package/lib/typescript/module/src/codecs-primitives.d.ts.map +1 -0
  1488. package/lib/typescript/module/src/codecs.d.ts +7 -0
  1489. package/lib/typescript/module/src/codecs.d.ts.map +1 -0
  1490. package/lib/typescript/module/src/core/aggregate-stream-quota.d.ts +17 -0
  1491. package/lib/typescript/module/src/core/aggregate-stream-quota.d.ts.map +1 -0
  1492. package/lib/typescript/module/src/core/bounded-stream.d.ts +69 -0
  1493. package/lib/typescript/module/src/core/bounded-stream.d.ts.map +1 -0
  1494. package/lib/typescript/module/src/core/core-adapter-state.d.ts +5 -0
  1495. package/lib/typescript/module/src/core/core-adapter-state.d.ts.map +1 -0
  1496. package/lib/typescript/module/src/core/core-characteristic-operations.d.ts +12 -0
  1497. package/lib/typescript/module/src/core/core-characteristic-operations.d.ts.map +1 -0
  1498. package/lib/typescript/module/src/core/core-connection-controls.d.ts +14 -0
  1499. package/lib/typescript/module/src/core/core-connection-controls.d.ts.map +1 -0
  1500. package/lib/typescript/module/src/core/core-descriptor-operations.d.ts +12 -0
  1501. package/lib/typescript/module/src/core/core-descriptor-operations.d.ts.map +1 -0
  1502. package/lib/typescript/module/src/core/core-discovery.d.ts +9 -0
  1503. package/lib/typescript/module/src/core/core-discovery.d.ts.map +1 -0
  1504. package/lib/typescript/module/src/core/core-gatt-handles.d.ts +67 -0
  1505. package/lib/typescript/module/src/core/core-gatt-handles.d.ts.map +1 -0
  1506. package/lib/typescript/module/src/core/core-lifecycle-observer.d.ts +14 -0
  1507. package/lib/typescript/module/src/core/core-lifecycle-observer.d.ts.map +1 -0
  1508. package/lib/typescript/module/src/core/gatt-path-equality.d.ts +7 -0
  1509. package/lib/typescript/module/src/core/gatt-path-equality.d.ts.map +1 -0
  1510. package/lib/typescript/module/src/core/index.d.ts +11 -0
  1511. package/lib/typescript/module/src/core/index.d.ts.map +1 -0
  1512. package/lib/typescript/module/src/core/operation-coordinator.d.ts +87 -0
  1513. package/lib/typescript/module/src/core/operation-coordinator.d.ts.map +1 -0
  1514. package/lib/typescript/module/src/core/resource-ledger.d.ts +26 -0
  1515. package/lib/typescript/module/src/core/resource-ledger.d.ts.map +1 -0
  1516. package/lib/typescript/module/src/core/subscription-registry.d.ts +77 -0
  1517. package/lib/typescript/module/src/core/subscription-registry.d.ts.map +1 -0
  1518. package/lib/typescript/module/src/core/trace-recorder.d.ts +39 -0
  1519. package/lib/typescript/module/src/core/trace-recorder.d.ts.map +1 -0
  1520. package/lib/typescript/module/src/core/unified-ble-core-helpers.d.ts +32 -0
  1521. package/lib/typescript/module/src/core/unified-ble-core-helpers.d.ts.map +1 -0
  1522. package/lib/typescript/module/src/core/unified-ble-core.d.ts +101 -0
  1523. package/lib/typescript/module/src/core/unified-ble-core.d.ts.map +1 -0
  1524. package/lib/typescript/module/src/diagnostics/trace-format.d.ts +39 -0
  1525. package/lib/typescript/module/src/diagnostics/trace-format.d.ts.map +1 -0
  1526. package/lib/typescript/module/src/discovery/deviceSort.d.ts +23 -0
  1527. package/lib/typescript/module/src/discovery/deviceSort.d.ts.map +1 -0
  1528. package/lib/typescript/module/src/discovery/filters.d.ts +97 -0
  1529. package/lib/typescript/module/src/discovery/filters.d.ts.map +1 -0
  1530. package/lib/typescript/module/src/discovery/index.d.ts +6 -0
  1531. package/lib/typescript/module/src/discovery/index.d.ts.map +1 -0
  1532. package/lib/typescript/module/src/discovery/uuidMatch.d.ts +29 -0
  1533. package/lib/typescript/module/src/discovery/uuidMatch.d.ts.map +1 -0
  1534. package/lib/typescript/module/src/electron/main-binding.d.ts +48 -0
  1535. package/lib/typescript/module/src/electron/main-binding.d.ts.map +1 -0
  1536. package/lib/typescript/module/src/electron/main-router.d.ts +69 -0
  1537. package/lib/typescript/module/src/electron/main-router.d.ts.map +1 -0
  1538. package/lib/typescript/module/src/electron/main.d.ts +3 -0
  1539. package/lib/typescript/module/src/electron/main.d.ts.map +1 -0
  1540. package/lib/typescript/module/src/electron/protocol.d.ts +73 -0
  1541. package/lib/typescript/module/src/electron/protocol.d.ts.map +1 -0
  1542. package/lib/typescript/module/src/electron/renderer-stream-registry.d.ts +46 -0
  1543. package/lib/typescript/module/src/electron/renderer-stream-registry.d.ts.map +1 -0
  1544. package/lib/typescript/module/src/electron/renderer.d.ts +29 -0
  1545. package/lib/typescript/module/src/electron/renderer.d.ts.map +1 -0
  1546. package/lib/typescript/module/src/electron-main.d.ts +14 -0
  1547. package/lib/typescript/module/src/electron-main.d.ts.map +1 -0
  1548. package/lib/typescript/module/src/electron-renderer.d.ts +3 -0
  1549. package/lib/typescript/module/src/electron-renderer.d.ts.map +1 -0
  1550. package/lib/typescript/module/src/encoding.d.ts +13 -0
  1551. package/lib/typescript/module/src/encoding.d.ts.map +1 -0
  1552. package/lib/typescript/module/src/helpers/central.d.ts +66 -0
  1553. package/lib/typescript/module/src/helpers/central.d.ts.map +1 -0
  1554. package/lib/typescript/module/src/helpers/errors.d.ts +12 -0
  1555. package/lib/typescript/module/src/helpers/errors.d.ts.map +1 -0
  1556. package/lib/typescript/module/src/helpers/index.d.ts +9 -0
  1557. package/lib/typescript/module/src/helpers/index.d.ts.map +1 -0
  1558. package/lib/typescript/module/src/helpers/types.d.ts +122 -0
  1559. package/lib/typescript/module/src/helpers/types.d.ts.map +1 -0
  1560. package/lib/typescript/module/src/hosts/electron.d.ts +78 -0
  1561. package/lib/typescript/module/src/hosts/electron.d.ts.map +1 -0
  1562. package/lib/typescript/module/src/hosts/native/bluez/BluezBlePort.d.ts +79 -0
  1563. package/lib/typescript/module/src/hosts/native/bluez/BluezBlePort.d.ts.map +1 -0
  1564. package/lib/typescript/module/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts +20 -0
  1565. package/lib/typescript/module/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts.map +1 -0
  1566. package/lib/typescript/module/src/hosts/native/winrt/WinRtBlePort.d.ts +18 -0
  1567. package/lib/typescript/module/src/hosts/native/winrt/WinRtBlePort.d.ts.map +1 -0
  1568. package/lib/typescript/module/src/hosts/node.d.ts +20 -0
  1569. package/lib/typescript/module/src/hosts/node.d.ts.map +1 -0
  1570. package/lib/typescript/module/src/hosts/web.d.ts +258 -0
  1571. package/lib/typescript/module/src/hosts/web.d.ts.map +1 -0
  1572. package/lib/typescript/module/src/index.d.ts +23 -0
  1573. package/lib/typescript/module/src/index.d.ts.map +1 -0
  1574. package/lib/typescript/module/src/longWrite.d.ts +25 -0
  1575. package/lib/typescript/module/src/longWrite.d.ts.map +1 -0
  1576. package/lib/typescript/module/src/manager/ble-manager.d.ts +121 -0
  1577. package/lib/typescript/module/src/manager/ble-manager.d.ts.map +1 -0
  1578. package/lib/typescript/module/src/manager/index.d.ts +5 -0
  1579. package/lib/typescript/module/src/manager/index.d.ts.map +1 -0
  1580. package/lib/typescript/module/src/manager/manager-ownership-authority.d.ts +64 -0
  1581. package/lib/typescript/module/src/manager/manager-ownership-authority.d.ts.map +1 -0
  1582. package/lib/typescript/module/src/native-protocol/generated/native-protocol-v1-schema.d.ts +41 -0
  1583. package/lib/typescript/module/src/native-protocol/generated/native-protocol-v1-schema.d.ts.map +1 -0
  1584. package/lib/typescript/module/src/native-protocol/rn-android-boundary.d.ts +66 -0
  1585. package/lib/typescript/module/src/native-protocol/rn-android-boundary.d.ts.map +1 -0
  1586. package/lib/typescript/module/src/native-protocol/rn-android-protocol-records.d.ts +31 -0
  1587. package/lib/typescript/module/src/native-protocol/rn-android-protocol-records.d.ts.map +1 -0
  1588. package/lib/typescript/module/src/native-protocol/rn-apple-boundary.d.ts +7 -0
  1589. package/lib/typescript/module/src/native-protocol/rn-apple-boundary.d.ts.map +1 -0
  1590. package/lib/typescript/module/src/native-protocol/rn-jsi-binary-runtime.d.ts +33 -0
  1591. package/lib/typescript/module/src/native-protocol/rn-jsi-binary-runtime.d.ts.map +1 -0
  1592. package/lib/typescript/module/src/native-protocol/v1-codec.d.ts +15 -0
  1593. package/lib/typescript/module/src/native-protocol/v1-codec.d.ts.map +1 -0
  1594. package/lib/typescript/module/src/node-bluez.d.ts +13 -0
  1595. package/lib/typescript/module/src/node-bluez.d.ts.map +1 -0
  1596. package/lib/typescript/module/src/node-corebluetooth.d.ts +13 -0
  1597. package/lib/typescript/module/src/node-corebluetooth.d.ts.map +1 -0
  1598. package/lib/typescript/module/src/node-winrt.d.ts +13 -0
  1599. package/lib/typescript/module/src/node-winrt.d.ts.map +1 -0
  1600. package/lib/typescript/module/src/permissions.d.ts +43 -0
  1601. package/lib/typescript/module/src/permissions.d.ts.map +1 -0
  1602. package/lib/typescript/module/src/port/BlePort.d.ts +161 -0
  1603. package/lib/typescript/module/src/port/BlePort.d.ts.map +1 -0
  1604. package/lib/typescript/module/src/port/PortBleManager.d.ts +156 -0
  1605. package/lib/typescript/module/src/port/PortBleManager.d.ts.map +1 -0
  1606. package/lib/typescript/module/src/profiles/battery-service.d.ts +8 -0
  1607. package/lib/typescript/module/src/profiles/battery-service.d.ts.map +1 -0
  1608. package/lib/typescript/module/src/profiles/battery.d.ts +34 -0
  1609. package/lib/typescript/module/src/profiles/battery.d.ts.map +1 -0
  1610. package/lib/typescript/module/src/profiles/blood-pressure.d.ts +21 -0
  1611. package/lib/typescript/module/src/profiles/blood-pressure.d.ts.map +1 -0
  1612. package/lib/typescript/module/src/profiles/bloodPressure.d.ts +74 -0
  1613. package/lib/typescript/module/src/profiles/bloodPressure.d.ts.map +1 -0
  1614. package/lib/typescript/module/src/profiles/bytes.d.ts +10 -0
  1615. package/lib/typescript/module/src/profiles/bytes.d.ts.map +1 -0
  1616. package/lib/typescript/module/src/profiles/commands.d.ts +30 -0
  1617. package/lib/typescript/module/src/profiles/commands.d.ts.map +1 -0
  1618. package/lib/typescript/module/src/profiles/date-time.d.ts +10 -0
  1619. package/lib/typescript/module/src/profiles/date-time.d.ts.map +1 -0
  1620. package/lib/typescript/module/src/profiles/device-information.d.ts +24 -0
  1621. package/lib/typescript/module/src/profiles/device-information.d.ts.map +1 -0
  1622. package/lib/typescript/module/src/profiles/deviceInformation.d.ts +109 -0
  1623. package/lib/typescript/module/src/profiles/deviceInformation.d.ts.map +1 -0
  1624. package/lib/typescript/module/src/profiles/errors.d.ts +11 -0
  1625. package/lib/typescript/module/src/profiles/errors.d.ts.map +1 -0
  1626. package/lib/typescript/module/src/profiles/health-thermometer.d.ts +17 -0
  1627. package/lib/typescript/module/src/profiles/health-thermometer.d.ts.map +1 -0
  1628. package/lib/typescript/module/src/profiles/healthThermometer.d.ts +73 -0
  1629. package/lib/typescript/module/src/profiles/healthThermometer.d.ts.map +1 -0
  1630. package/lib/typescript/module/src/profiles/heart-rate.d.ts +20 -0
  1631. package/lib/typescript/module/src/profiles/heart-rate.d.ts.map +1 -0
  1632. package/lib/typescript/module/src/profiles/heartRate.d.ts +129 -0
  1633. package/lib/typescript/module/src/profiles/heartRate.d.ts.map +1 -0
  1634. package/lib/typescript/module/src/profiles/identifiers.d.ts +26 -0
  1635. package/lib/typescript/module/src/profiles/identifiers.d.ts.map +1 -0
  1636. package/lib/typescript/module/src/profiles/ieee-11073.d.ts +15 -0
  1637. package/lib/typescript/module/src/profiles/ieee-11073.d.ts.map +1 -0
  1638. package/lib/typescript/module/src/profiles/ieee11073.d.ts +80 -0
  1639. package/lib/typescript/module/src/profiles/ieee11073.d.ts.map +1 -0
  1640. package/lib/typescript/module/src/profiles/index.d.ts +21 -0
  1641. package/lib/typescript/module/src/profiles/index.d.ts.map +1 -0
  1642. package/lib/typescript/module/src/profiles/serviceHelpers.d.ts +48 -0
  1643. package/lib/typescript/module/src/profiles/serviceHelpers.d.ts.map +1 -0
  1644. package/lib/typescript/module/src/profiles/standard-commands.d.ts +21 -0
  1645. package/lib/typescript/module/src/profiles/standard-commands.d.ts.map +1 -0
  1646. package/lib/typescript/module/src/profiles/types.d.ts +32 -0
  1647. package/lib/typescript/module/src/profiles/types.d.ts.map +1 -0
  1648. package/lib/typescript/module/src/react-native-manager.d.ts +19 -0
  1649. package/lib/typescript/module/src/react-native-manager.d.ts.map +1 -0
  1650. package/lib/typescript/module/src/react-native.d.ts +15 -0
  1651. package/lib/typescript/module/src/react-native.d.ts.map +1 -0
  1652. package/lib/typescript/module/src/stringUtils.d.ts +8 -0
  1653. package/lib/typescript/module/src/stringUtils.d.ts.map +1 -0
  1654. package/lib/typescript/module/src/supports.d.ts +13 -0
  1655. package/lib/typescript/module/src/supports.d.ts.map +1 -0
  1656. package/lib/typescript/module/src/tck/contracts.d.ts +132 -0
  1657. package/lib/typescript/module/src/tck/contracts.d.ts.map +1 -0
  1658. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-factory.d.ts +9 -0
  1659. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-factory.d.ts.map +1 -0
  1660. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-identity.d.ts +9 -0
  1661. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-identity.d.ts.map +1 -0
  1662. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts +8 -0
  1663. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts.map +1 -0
  1664. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts +4 -0
  1665. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts.map +1 -0
  1666. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts +56 -0
  1667. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts.map +1 -0
  1668. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenarios.d.ts +14 -0
  1669. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenarios.d.ts.map +1 -0
  1670. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts +5 -0
  1671. package/lib/typescript/module/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts.map +1 -0
  1672. package/lib/typescript/module/src/tck/index.d.ts +6 -0
  1673. package/lib/typescript/module/src/tck/index.d.ts.map +1 -0
  1674. package/lib/typescript/module/src/tck/runner.d.ts +10 -0
  1675. package/lib/typescript/module/src/tck/runner.d.ts.map +1 -0
  1676. package/lib/typescript/module/src/tck/scenario-adapter.d.ts +19 -0
  1677. package/lib/typescript/module/src/tck/scenario-adapter.d.ts.map +1 -0
  1678. package/lib/typescript/module/src/tck/scenarios.d.ts +4 -0
  1679. package/lib/typescript/module/src/tck/scenarios.d.ts.map +1 -0
  1680. package/lib/typescript/module/src/testing/deterministic/deterministic-backend-base.d.ts +118 -0
  1681. package/lib/typescript/module/src/testing/deterministic/deterministic-backend-base.d.ts.map +1 -0
  1682. package/lib/typescript/module/src/testing/deterministic/deterministic-operation-admission.d.ts +5 -0
  1683. package/lib/typescript/module/src/testing/deterministic/deterministic-operation-admission.d.ts.map +1 -0
  1684. package/lib/typescript/module/src/testing/deterministic/deterministic-operation-runtime.d.ts +52 -0
  1685. package/lib/typescript/module/src/testing/deterministic/deterministic-operation-runtime.d.ts.map +1 -0
  1686. package/lib/typescript/module/src/testing/deterministic/deterministic-stream.d.ts +65 -0
  1687. package/lib/typescript/module/src/testing/deterministic/deterministic-stream.d.ts.map +1 -0
  1688. package/lib/typescript/module/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts +22 -0
  1689. package/lib/typescript/module/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts.map +1 -0
  1690. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-controller.d.ts +25 -0
  1691. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-controller.d.ts.map +1 -0
  1692. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-gatt.d.ts +15 -0
  1693. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-gatt.d.ts.map +1 -0
  1694. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-handles.d.ts +109 -0
  1695. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-handles.d.ts.map +1 -0
  1696. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts +48 -0
  1697. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts.map +1 -0
  1698. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend.d.ts +71 -0
  1699. package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend.d.ts.map +1 -0
  1700. package/lib/typescript/module/src/testing/deterministic/virtual-clock.d.ts +22 -0
  1701. package/lib/typescript/module/src/testing/deterministic/virtual-clock.d.ts.map +1 -0
  1702. package/lib/typescript/module/src/testing/deterministic/virtual-peripheral.d.ts +76 -0
  1703. package/lib/typescript/module/src/testing/deterministic/virtual-peripheral.d.ts.map +1 -0
  1704. package/lib/typescript/module/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts +4 -0
  1705. package/lib/typescript/module/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts.map +1 -0
  1706. package/lib/typescript/module/src/testing/scenarios/manager-scenario-executor.d.ts +33 -0
  1707. package/lib/typescript/module/src/testing/scenarios/manager-scenario-executor.d.ts.map +1 -0
  1708. package/lib/typescript/module/src/testing/scenarios/manager-scenario-fixture.d.ts +19 -0
  1709. package/lib/typescript/module/src/testing/scenarios/manager-scenario-fixture.d.ts.map +1 -0
  1710. package/lib/typescript/module/src/testing/scenarios/manager-scenarios.d.ts +60 -0
  1711. package/lib/typescript/module/src/testing/scenarios/manager-scenarios.d.ts.map +1 -0
  1712. package/lib/typescript/module/src/testing.d.ts +22 -0
  1713. package/lib/typescript/module/src/testing.d.ts.map +1 -0
  1714. package/lib/typescript/module/src/unsupported.d.ts +12 -0
  1715. package/lib/typescript/module/src/unsupported.d.ts.map +1 -0
  1716. package/lib/typescript/module/src/web/navigator-web-bluetooth-boundary.d.ts +95 -0
  1717. package/lib/typescript/module/src/web/navigator-web-bluetooth-boundary.d.ts.map +1 -0
  1718. package/lib/typescript/module/src/web/web-bluetooth-backend.d.ts +99 -0
  1719. package/lib/typescript/module/src/web/web-bluetooth-backend.d.ts.map +1 -0
  1720. package/lib/typescript/module/src/web/web-bluetooth-boundary.d.ts +78 -0
  1721. package/lib/typescript/module/src/web/web-bluetooth-boundary.d.ts.map +1 -0
  1722. package/lib/typescript/module/src/web/web-bluetooth-errors.d.ts +13 -0
  1723. package/lib/typescript/module/src/web/web-bluetooth-errors.d.ts.map +1 -0
  1724. package/lib/typescript/module/src/web/web-bluetooth-gatt.d.ts +62 -0
  1725. package/lib/typescript/module/src/web/web-bluetooth-gatt.d.ts.map +1 -0
  1726. package/lib/typescript/module/src/web/web-bluetooth-handles.d.ts +124 -0
  1727. package/lib/typescript/module/src/web/web-bluetooth-handles.d.ts.map +1 -0
  1728. package/lib/typescript/module/src/web/web-bluetooth-tck.d.ts +33 -0
  1729. package/lib/typescript/module/src/web/web-bluetooth-tck.d.ts.map +1 -0
  1730. package/lib/typescript/module/src/web/web-feature-registry.d.ts +3 -0
  1731. package/lib/typescript/module/src/web/web-feature-registry.d.ts.map +1 -0
  1732. package/lib/typescript/module/src/web.d.ts +10 -0
  1733. package/lib/typescript/module/src/web.d.ts.map +1 -0
  1734. package/native/electron/bluez/index.js +9 -0
  1735. package/native/electron/corebluetooth/binding.gyp +42 -0
  1736. package/native/electron/corebluetooth/index.js +517 -0
  1737. package/native/electron/corebluetooth/src/addon.mm +1768 -0
  1738. package/native/electron/corebluetooth/src/addon_stub.cc +19 -0
  1739. package/native/electron/winrt/binding.gyp +22 -0
  1740. package/native/electron/winrt/index.js +17 -0
  1741. package/native/electron/winrt/src/addon.cpp +865 -0
  1742. package/native/electron/winrt/src/winrt-boundary.inc +491 -0
  1743. package/native/protocol/CMakeLists.txt +85 -0
  1744. package/native/protocol/generated/NativeProtocolV1Schema.hpp +419 -0
  1745. package/native/protocol/include/NativeProtocolControlRuntime.hpp +83 -0
  1746. package/native/protocol/include/NativeProtocolV1Codec.hpp +99 -0
  1747. package/native/protocol/include/NativeProtocolV1Registry.hpp +153 -0
  1748. package/native/protocol/include/OwnedBinaryPayloadStore.hpp +56 -0
  1749. package/native/protocol/include/OwnedJsiBinaryTransport.hpp +45 -0
  1750. package/native/protocol/schema/native-protocol-v1-abi.json +68 -0
  1751. package/native/protocol/schema/native-protocol-v1.json +359 -0
  1752. package/native/protocol/src/NativeProtocolControlRuntime.cpp +567 -0
  1753. package/native/protocol/src/NativeProtocolV1Codec.cpp +760 -0
  1754. package/native/protocol/src/NativeProtocolV1Registry.cpp +331 -0
  1755. package/native/protocol/src/OwnedBinaryPayloadStore.cpp +140 -0
  1756. package/native/protocol/src/OwnedJsiBinaryTransport.cpp +112 -0
  1757. package/package.json +488 -0
  1758. package/plugin/build/debugLog.d.ts +2 -0
  1759. package/plugin/build/debugLog.js +18 -0
  1760. package/plugin/build/withBLE.d.ts +18 -0
  1761. package/plugin/build/withBLE.js +75 -0
  1762. package/plugin/build/withBLEAndroidForegroundService.d.ts +40 -0
  1763. package/plugin/build/withBLEAndroidForegroundService.js +233 -0
  1764. package/plugin/build/withBLEAndroidManifest.d.ts +44 -0
  1765. package/plugin/build/withBLEAndroidManifest.js +89 -0
  1766. package/plugin/build/withBLEBackgroundModes.d.ts +9 -0
  1767. package/plugin/build/withBLEBackgroundModes.js +37 -0
  1768. package/plugin/build/withBLEDebugLogging.d.ts +19 -0
  1769. package/plugin/build/withBLEDebugLogging.js +54 -0
  1770. package/plugin/build/withBLERestorationPodfile.d.ts +27 -0
  1771. package/plugin/build/withBLERestorationPodfile.js +214 -0
  1772. package/plugin/build/withBluetoothPermissions.d.ts +4 -0
  1773. package/plugin/build/withBluetoothPermissions.js +13 -0
  1774. package/unified-ble-manager.podspec +87 -0
package/README.md ADDED
@@ -0,0 +1,885 @@
1
+ <!-- README.md -->
2
+
3
+ > **4.0 status:** `unified-ble-manager@4.0.0` is a new clean-baseline package with zero consumers, not a released compatibility upgrade. [`docs/UNIFIED_BLE_4.0_IMPLEMENTATION_PLAN.md`](docs/UNIFIED_BLE_4.0_IMPLEMENTATION_PLAN.md) is the only architecture and sequencing authority. The APIs and host material below characterize the inherited 3.x-style source tree; they are not 4.0 installation instructions or promises. See [`ROADMAP.4.0.md`](ROADMAP.4.0.md), [`MIGRATION_4.0.md`](MIGRATION_4.0.md), and [`docs/GAPS.4.0.md`](docs/GAPS.4.0.md).
4
+
5
+ <h1 align="center">
6
+ <img
7
+ alt="react-native-ble-plx library logo"
8
+ src="docs/logo.png"
9
+ height="300"
10
+ style="margin-top: 20px; margin-bottom: 20px;"
11
+ />
12
+ </h1>
13
+
14
+ > **Fork Notice**: This library is forked from [dotintent/react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx) for Expo SDK 57+ and React Native 0.86+. It is TypeScript-first, uses the RN 0.86 TurboModule/Fabric runtime, and is built for Expo CNG/dev-client apps.
15
+ >
16
+ > **Looking for maintainers!** We're looking for volunteers to help maintain this fork. If you're interested, please open an issue or submit a PR.
17
+
18
+ > **Maintainers note**: This repo is managed with `pnpm` (not yarn/npm).
19
+
20
+ ## About this library
21
+
22
+ **Current source record:** the implementation below is inherited 3.x-style material under audit. It must not be read as the 4.0 package identity, API, native protocol, or compatibility promise. The released 4.0 artifact will use the contract and package topology accepted through the controlling plan.
23
+
24
+ It supports:
25
+
26
+ - Observing the device Bluetooth adapter state
27
+ - Scanning BLE peripherals
28
+ - Connecting to peripherals and discovering services/characteristics
29
+ - Reading, writing, and monitoring characteristics (notifications/indications)
30
+ - Current branch only: legacy Base64 APIs and byte convenience methods under audit for removal/replacement
31
+ - Reading RSSI and negotiating MTU (iOS reports MTU; Android can request — see [PLATFORMS.md](docs/PLATFORMS.md))
32
+ - Background mode on iOS (including optional state restoration)
33
+ - Android background mode via foreground service
34
+ - **Android bonding** via `createBond` / `removeBond` / `bondedDevices` (see [BONDING.md](docs/BONDING.md)); iOS bonding remains OS-driven when a characteristic requires encryption
35
+ - Multi-host entries: React Native, [`/web`](docs/WEB.md), [`/electron`](docs/ELECTRON.md), `/node` — capability matrix in [PLATFORMS.md](docs/PLATFORMS.md)
36
+ - [`ConnectionManager`](docs/CONNECTION_MANAGER.md) retry, timeout, auto-reconnect, and **`attemptConnectOnce`** (host-owned single attempt)
37
+ - [`getRestoredState()`](docs/BACKGROUND.md) late iOS restore handoff plus constructor `restoreStateFunction`
38
+ - Apple TV / tvOS as a BLE central (see [tvOS notes](docs/TVOS.md))
39
+
40
+ It does NOT support:
41
+
42
+ - Bluetooth Classic devices
43
+ - Phone-as-peripheral (advertising / GATT server so other phones connect *to* this phone)
44
+ - Programmatic enable/disable of the Android Bluetooth adapter (blocked for normal apps on Android 13+ / target SDK 33+; observe state and prompt the user in system UI)
45
+ - Programmatic iOS bond create/remove (pairing is OS-managed; Android APIs above are the explicit surface)
46
+ - Beacon ranging / iBeacon / Eddystone SDKs (you may still see advertising packets during a normal scan)
47
+
48
+ ## Table of Contents
49
+
50
+ 1. [Compatibility](#compatibility)
51
+ 2. [Current Branch Status](#current-branch-status)
52
+ 3. [Version History](#version-history)
53
+ 4. [Documentation & Support](#documentation--support)
54
+ 5. [Configuration & Installation](#configuration--installation)
55
+ 6. [iOS BLE State Restoration](#ios-ble-state-restoration-optional)
56
+ 7. [Android Background Mode](#android-background-mode)
57
+ 8. [Reliability Features](#reliability-features)
58
+ 9. [Troubleshooting](#troubleshooting)
59
+ 10. [Releasing](#releasing)
60
+ 11. [Grok workflows](#grok-workflows-roadmap-40-review)
61
+ 12. [Contributions](#contributions)
62
+
63
+ ## Compatibility
64
+
65
+ > **Note**: This is a fork of `dotintent/react-native-ble-plx`. Any scoped-package or shim material in this repository is transitional source characterization only and is not a 4.0 compatibility commitment.
66
+
67
+ **Minimum Requirements (4.0 / Expo SDK 57 floor):**
68
+ - React Native **0.86.0+**
69
+ - Expo SDK **57+**
70
+ - Node.js **20.19.4+** (see `package.json` engines)
71
+ - Xcode **16.1+** for plain RN iOS builds (RN 0.86 floor)
72
+ - Xcode **26.4+** when using **Expo SDK 57** / `expo-modules-jsi` (Swift tools 6.2; CI uses **26.6**)
73
+ - Android min SDK **24**, compile/target SDK **36**
74
+ - iOS deployment target **16.4**
75
+ - RN 0.86 TurboModules/Fabric runtime
76
+
77
+ | React Native | Expo SDK | This Fork |
78
+ | ------------ | -------- | --------- |
79
+ | 0.86.0+ | 57+ | :white_check_mark: |
80
+ | < 0.86 | < 57 | :x: Not supported |
81
+
82
+ For older React Native versions, use the upstream [dotintent/react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx) library.
83
+
84
+ ## Current Branch Status
85
+
86
+ - **3.9.2** stable line: gated `ConnectionManager.attemptConnectOnce`, `BleManager.getRestoredState()`, reporting-only iOS restore (D5), **true opt-in** Restoration subspec (`iosEnableRestoration`, [#32](https://github.com/sfourdrinier/react-native-ble-plx/issues/32)), Apple CI composites; iOS podspec no longer uses `-fmodules`/`-fcxx-modules` (fmt link fix, [#31](https://github.com/sfourdrinier/react-native-ble-plx/issues/31)).
87
+ - Requires RN 0.86 / Expo SDK 57 and uses the generated TurboModule spec (`NativeBlePlxSpec`).
88
+ - Android registers through `BaseReactPackage` and depends on `react-android`.
89
+ - The Expo example is CNG-first: `example-expo/android` and `example-expo/ios` are generated, not checked in.
90
+ - The Expo config plugin handles BLE permissions, iOS background modes/restoration, Android foreground service metadata, and native debug flags.
91
+ - Public reliability APIs are consolidated on `ConnectionManager`. Legacy `ConnectionQueue` and `ReconnectionManager` modules are removed (use `ConnectionManager` only).
92
+ - Documentation and support are owned in this repository (`docs/` + GitHub Issues). Full restore recipes: [docs/BACKGROUND.md](docs/BACKGROUND.md).
93
+ - Programmatic Android Bluetooth adapter toggling was removed because it is blocked for normal apps targeting Android 13+.
94
+
95
+ ## Version History
96
+
97
+ **3.9.2 (This Fork)**
98
+
99
+ - Fixes iOS link failures when React Native is built from source: removes `-fmodules` / `-fcxx-modules` from the podspec so clang no longer embeds strong `fmt` symbols into `BlePlx.o` ([#31](https://github.com/sfourdrinier/react-native-ble-plx/issues/31)).
100
+
101
+ **3.9.1 (This Fork)**
102
+
103
+ - Fixes iOS restoration **true opt-in**: CocoaPods no longer default-links the Restoration subspec; `iosEnableRestoration: false` leaves Restoration out of the binary, and the Expo plugin strips sticky Podfile/plist artifacts on disable ([#32](https://github.com/sfourdrinier/react-native-ble-plx/issues/32)).
104
+
105
+ **3.9.0 (This Fork)**
106
+
107
+ - Adds `ConnectionManager.attemptConnectOnce` for host-owned reconnect policy (single attempt; mutually exclusive with auto-reconnect).
108
+ - Adds `BleManager.getRestoredState()` for late iOS restore handoff (buffered first payload alongside `restoreStateFunction`).
109
+ - **Breaking for apps that relied on silent adapter reconnect:** iOS Restoration adapter reports restore only (D5) — no `connectToDevice` inside the adapter. Hosts reconnect via `getRestoredState` + gated/auto recipes in `docs/BACKGROUND.md`.
110
+
111
+ **3.8.4 (This Fork)**
112
+
113
+ - Publishes from GitHub Actions with npm Trusted Publishing (OIDC) and provenance attestations (tag `vX.Y.Z` triggers CI publish).
114
+
115
+ **3.8.3 (This Fork)**
116
+
117
+ - Publishes the roadmap referenced by the README and fork documentation.
118
+ - Aligns the CocoaPods source tag with the `v3.8.3` GitHub release tag.
119
+
120
+ **3.8.2 (This Fork)**
121
+
122
+ - Fixes the React Native 0.86 TurboModule bridge so non-enumerable native BLE methods, including `createClient`, remain callable at runtime.
123
+
124
+ **3.8.0 (This Fork)**
125
+
126
+ - Modernized for Expo SDK 57 and React Native 0.86.
127
+ - Uses the generated RN 0.86 TurboModule spec.
128
+ - Moves the Expo example to CNG: generated native projects are not checked in.
129
+ - Updates Android defaults to min SDK 24 and compile/target SDK 36.
130
+ - Updates iOS deployment target to 16.4.
131
+ - Removes obsolete programmatic Android Bluetooth adapter toggle APIs.
132
+ - Removes legacy `ConnectionQueue` and `ReconnectionManager` package exports; use `ConnectionManager`.
133
+
134
+ **3.7.7 (This Fork)**
135
+
136
+ - Added the unified `ConnectionManager` with retry logic, timeout support, and automatic reconnection.
137
+ - Fixed promise coalescing when multiple callers connect to the same device.
138
+ - Fixed auto-reconnect cleanup, repeated disconnect storms, and cancel/retry races.
139
+ - Fixed Android foreground service null-intent restart handling.
140
+ - Added production-grade error normalization and connection cleanup improvements.
141
+
142
+ **3.7.6 (This Fork)**
143
+
144
+ - Refactored iOS BLE restoration to work standalone without external dependencies.
145
+ - Removed the external BleRestoration pod dependency and added a bundled fallback registry.
146
+ - Improved the Expo config plugin to use autolinking config.
147
+
148
+ **3.7.0 (This Fork)**
149
+
150
+ - Added Android foreground service support for background BLE operations.
151
+ - Added early reliability helpers for retry and automatic reconnection.
152
+ - Added `BackgroundModeOptions` and `ReconnectionOptions` types.
153
+ - Added the Expo config plugin `androidEnableForegroundService` option.
154
+
155
+ **3.5.x (This Fork)**
156
+
157
+ - Converted the fork from Flow to TypeScript.
158
+ - Updated the fork for React Native 0.81.4 and Expo SDK 54.
159
+ - Added optional iOS BLE state restoration support.
160
+ - Fixed TypeScript errors from the Flow-to-TypeScript conversion.
161
+ - Dropped support for React Native versions older than 0.81 and Expo SDK versions older than 54.
162
+
163
+ **3.2.0 (Upstream)**
164
+
165
+ - Added Android instance checks before native method calls.
166
+ - Added Android 14 documentation.
167
+ - Changed selected native calls to promises so errors can be reported to JS.
168
+ - Fixed cleanup behavior after the BLE instance is destroyed.
169
+
170
+ See [CHANGELOG.md](CHANGELOG.md) and [CHANGELOG-pre-3.0.0.md](CHANGELOG-pre-3.0.0.md) for full release history.
171
+
172
+ ## Documentation & Support
173
+
174
+ This fork is independently maintained. **Documentation and support live in this repository.**
175
+
176
+ | Doc | Description |
177
+ | --- | ----------- |
178
+ | [Getting started](docs/GETTING_STARTED.md) | BLE basics with this library |
179
+ | [Helpers](docs/HELPERS.md) | Cross-host recipes: wait / find / connect+discover / first notify / try-read |
180
+ | [Fork notes](docs/FORK.md) | What changed vs upstream, floors, and roadmap posture |
181
+ | [Roadmap](ROADMAP.md) | Long-term strategy: reliability, features, native ownership, multiplatform |
182
+ | [Roadmap 4.0](ROADMAP.4.0.md) | Ambitious 4.x charter (alpha, Electron, Web, desktop backends) |
183
+ | [Grok workflows](#grok-workflows-roadmap-40-review) | In-repo multi-agent E2E review (bugs, edge cases, tests, DRY) |
184
+ | [ConnectionManager](docs/CONNECTION_MANAGER.md) | Retry, timeout, auto-reconnect, `attemptConnectOnce` |
185
+ | [Background / iOS restore](docs/BACKGROUND.md) | `getRestoredState`, D5 host reconnect recipes |
186
+ | [Expo config plugin](docs/EXPO_PLUGIN.md) | Plugin options and CNG notes |
187
+ | [tvOS / Apple TV](docs/TVOS.md) | Apple TV support and limits |
188
+ | [Tutorials](docs/TUTORIALS.md) | Extra usage patterns |
189
+ | [Release process](RELEASE.md) | How releases are verified and published |
190
+ | [Changelog](CHANGELOG.md) | Release notes (3.9.x migration and history) |
191
+
192
+ **Support:** open an issue on [sfourdrinier/react-native-ble-plx](https://github.com/sfourdrinier/react-native-ble-plx/issues).
193
+
194
+ Historical upstream origin (API concepts may lag this fork): [dotintent/react-native-ble-plx](https://github.com/dotintent/react-native-ble-plx).
195
+
196
+ ## Configuration & Installation
197
+
198
+ ### Path A — canonical `unified-ble-manager` (recommended)
199
+
200
+ ```bash
201
+ pnpm add unified-ble-manager
202
+ # or
203
+ npm install unified-ble-manager
204
+ # or
205
+ npx expo install unified-ble-manager
206
+ ```
207
+
208
+ ### Path B — compatibility shim (optional)
209
+
210
+ If you must keep the old package name during a migration:
211
+
212
+ ```bash
213
+ pnpm add @sfourdrinier/react-native-ble-plx
214
+ ```
215
+
216
+ The shim re-exports `unified-ble-manager`. Prefer Path A for new apps. Full notes: [MIGRATION_4.0.md](MIGRATION_4.0.md).
217
+
218
+ ### Expo SDK 57+
219
+
220
+ > This package cannot be used in the "Expo Go" app because [it requires custom native code](https://docs.expo.io/workflow/customizing/).
221
+ > First install the package (Path A above), then add the [config plugin](https://docs.expo.io/guides/config-plugins/) to the [`plugins`](https://docs.expo.io/versions/latest/config/app/#plugins) array of your `app.json` or `app.config.js`:
222
+
223
+ ```json
224
+ {
225
+ "expo": {
226
+ "plugins": ["unified-ble-manager"]
227
+ }
228
+ }
229
+ ```
230
+
231
+ Then build with native modules (e.g. `npx expo prebuild`) and install on a device with `npx expo run:android` / `npx expo run:ios`.
232
+
233
+ You can find more details in the ["Adding custom native code"](https://docs.expo.io/workflow/customizing/) guide and [docs/EXPO_PLUGIN.md](docs/EXPO_PLUGIN.md).
234
+
235
+ The `example-expo` app uses Expo Continuous Native Generation (CNG): its `android/` and `ios/` projects are intentionally not checked in. Regenerate native projects from `app.json` with `npx expo prebuild --clean` or use `npx expo run:android` / `npx expo run:ios`, which prebuild as needed.
236
+
237
+ ## API
238
+
239
+ The plugin provides props for extra customization. Every time you change the props or plugins, you'll need to rebuild (and `prebuild`) the native app. If no extra properties are added, defaults will be used.
240
+
241
+ - `debug` (_boolean_): Enable debug logging for the Expo config plugin. You can also set `BLEPLX_PLUGIN_DEBUG=1` (or `true`/`yes`) in your environment to enable logs without changing config. Default `false`.
242
+ - When enabled, this also stamps a runtime-native flag (`BlePlxDebugLogging`) into iOS `Info.plist` and Android `AndroidManifest.xml` metadata so native debug logs can be gated consistently across platforms.
243
+ - `isBackgroundEnabled` (_boolean_): Enable background BLE support on Android. Adds `<uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>` to the `AndroidManifest.xml`. Default `false`.
244
+ - `neverForLocation` (_boolean_): Set to true only if you can strongly assert that your app never derives physical location from Bluetooth scan results. The location permission will be still required on older Android devices. Note, that some BLE beacons are filtered from the scan results. Android SDK 31+. Default `false`. _WARNING: This parameter is experimental and BLE might not work. Make sure to test before releasing to production._
245
+ - `modes` (_string[]_): Adds iOS `UIBackgroundModes` to the `Info.plist`. Options are: `peripheral`, and `central`. Defaults to undefined.
246
+ - `bluetoothAlwaysPermission` (_string | false_): Sets the iOS `NSBluetoothAlwaysUsageDescription` permission message to the `Info.plist`. Setting `false` will skip adding the permission. Defaults to `Allow $(PRODUCT_NAME) to connect to bluetooth devices`.
247
+ - `iosEnableRestoration` (_boolean_): **True opt-in** for the iOS BLE state restoration subspec (disabled by default; root CocoaPods pod does not default-link subspecs — [#32](https://github.com/sfourdrinier/react-native-ble-plx/issues/32)). When true, injects `unified-ble-manager/Restoration` and writes `BlePlxRestoreIdentifier`. When false, removes those artifacts.
248
+ - `iosRestorationIdentifier` (_string_): Custom CBCentralManager restoration identifier. Written to `Info.plist` as `BlePlxRestoreIdentifier` and passed to `BleManager` for state restoration. Defaults to `com.reactnativebleplx.restore`.
249
+ - `androidEnableForegroundService` (_boolean_): Enable Android foreground service for background BLE operations. Adds necessary permissions (`FOREGROUND_SERVICE`, `FOREGROUND_SERVICE_CONNECTED_DEVICE`) and service declaration to `AndroidManifest.xml`. Default `false`.
250
+
251
+ Expo SDK 57 targets modern iOS versions. The plugin writes `NSBluetoothAlwaysUsageDescription` and does not add the removed `NSBluetoothPeripheralUsageDescription` key.
252
+
253
+ #### Example
254
+
255
+ ```json
256
+ {
257
+ "expo": {
258
+ "plugins": [
259
+ [
260
+ "unified-ble-manager",
261
+ {
262
+ "isBackgroundEnabled": true,
263
+ "modes": ["peripheral", "central"],
264
+ "bluetoothAlwaysPermission": "Allow $(PRODUCT_NAME) to connect to bluetooth devices",
265
+ "iosEnableRestoration": true,
266
+ "iosRestorationIdentifier": "com.example.myapp.bleplx",
267
+ "androidEnableForegroundService": true
268
+ }
269
+ ]
270
+ ]
271
+ }
272
+ }
273
+ ```
274
+
275
+ ### iOS (Manual Setup)
276
+
277
+ 1. Install the package: `pnpm add unified-ble-manager` (or `npm install --save unified-ble-manager`)
278
+ 1. Enter `ios` folder and run `pod update`
279
+ 1. Add `NSBluetoothAlwaysUsageDescription` in `info.plist` file. (it is a requirement since iOS 13)
280
+ 1. If you want to support background mode:
281
+ - In your application target go to `Capabilities` tab and enable `Uses Bluetooth LE Accessories` in
282
+ `Background Modes` section.
283
+ - Pass `restoreStateIdentifier` (and optionally `restoreStateFunction`) to `BleManager`. Prefer **`await manager.getRestoredState()`** for session layers that start after construction — see [docs/BACKGROUND.md](docs/BACKGROUND.md).
284
+
285
+ #### Optional: iOS BLE State Restoration (Restoration subspec)
286
+
287
+ - Opt-in via the config plugin: set `iosEnableRestoration: true` and optionally `iosRestorationIdentifier` to a stable string.
288
+ - The plugin writes `BlePlxRestoreIdentifier` into `Info.plist` and injects the `unified-ble-manager/Restoration` subspec into your Podfile.
289
+ - In JS, pass the same identifier to `BleManager`. The adapter **reports** restore only; your app reconnects:
290
+
291
+ ```ts
292
+ const manager = new BleManager({
293
+ restoreStateIdentifier: 'com.example.myapp.bleplx',
294
+ // optional constructor callback (can race app boot):
295
+ restoreStateFunction: (restoredState) => {
296
+ console.log('restore callback', restoredState?.connectedPeripherals?.length ?? null)
297
+ },
298
+ })
299
+
300
+ // Later (session / hub init) — preferred handoff:
301
+ const restored = await manager.getRestoredState()
302
+ // then attemptConnectOnce or enableAutoReconnect — docs/BACKGROUND.md
303
+ ```
304
+
305
+ - The Restoration subspec exposes a Swift adapter (`BlePlxRestorationAdapter`) that registers with a host restoration registry when present. It does **not** call `connectToDevice` (D5).
306
+
307
+ ### Android (Manual Setup)
308
+
309
+ 1. Install the package: `pnpm add unified-ble-manager` (or `npm install --save unified-ble-manager`)
310
+ 1. In top level `build.gradle` make sure that min SDK version is at least 24:
311
+
312
+ ```groovy
313
+ buildscript {
314
+ ext {
315
+ ...
316
+ minSdkVersion = 24
317
+ ...
318
+ ```
319
+
320
+ 1. In `build.gradle` make sure to add jitpack repository to known repositories:
321
+
322
+ ```groovy
323
+ allprojects {
324
+ repositories {
325
+ ...
326
+ maven { url 'https://www.jitpack.io' }
327
+ }
328
+ }
329
+ ```
330
+
331
+ 1. In `AndroidManifest.xml`, add Bluetooth permissions and update `<uses-sdk/>`:
332
+
333
+ ```xml
334
+ <manifest xmlns:android="http://schemas.android.com/apk/res/android">
335
+
336
+ ...
337
+
338
+ <!-- Android >= 12 -->
339
+ <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
340
+ <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
341
+ <!-- Android < 12 -->
342
+ <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
343
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
344
+ <!-- common -->
345
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
346
+
347
+ <!-- Add this line if your application always requires BLE. More info can be found on:
348
+ https://developer.android.com/guide/topics/connectivity/bluetooth-le.html#permissions
349
+ -->
350
+ <uses-feature android:name="android.hardware.bluetooth_le" android:required="true"/>
351
+
352
+ ...
353
+ ```
354
+
355
+ 1. (Optional) In SDK 31+ You can remove `ACCESS_FINE_LOCATION` (or mark it as `android:maxSdkVersion="30"` ) from `AndroidManifest.xml` and add `neverForLocation` flag into `BLUETOOTH_SCAN` permissions which says that you will not use location based on scanning eg:
356
+
357
+ ```xml
358
+ <uses-permission android:name="android.permission.INTERNET" />
359
+ <!-- Android >= 12 -->
360
+ <uses-permission android:name="android.permission.BLUETOOTH_SCAN" android:usesPermissionFlags="neverForLocation" />
361
+ <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
362
+ <!-- Android < 12 -->
363
+ <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
364
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
365
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" android:maxSdkVersion="30" />
366
+
367
+ ...
368
+ ```
369
+
370
+ With `neverForLocation` flag active, you no longer need to ask for `ACCESS_FINE_LOCATION` in your app
371
+
372
+ ## iOS BLE State Restoration (Optional)
373
+
374
+ This fork includes **optional** support for iOS BLE state restoration so the OS can wake your app and **report** which peripherals were restored after a background termination. **Reconnect policy is host-owned** (3.9+ / D5): the Restoration adapter does **not** call `connectToDevice`.
375
+
376
+ Full lifecycle, semantics matrix, and recipes: **[docs/BACKGROUND.md](./docs/BACKGROUND.md)**.
377
+
378
+ ### Why Use State Restoration?
379
+
380
+ | Scenario | Without Restoration | With Restoration (3.9+) |
381
+ |----------|---------------------|-------------------------|
382
+ | App killed by iOS while connected | Connection lost | OS reports restored peripheral ids; **your app** reconnects if needed |
383
+ | Phone rebooted while wearing sensor | Must open app and reconnect | Same: handoff via `getRestoredState()` / restore callback |
384
+ | Long recording session (hours) | Risk of silent death | Session layer can resume streams after handoff |
385
+
386
+ ### How It Works
387
+
388
+ 1. User connects to a BLE device and starts streaming data
389
+ 2. User switches to another app or locks the phone
390
+ 3. iOS terminates your app to free memory (not a crash)
391
+ 4. Later, the BLE device or system wakes the app with restoration state
392
+ 5. Native adapter stores the manager + restore payload (reporting only)
393
+ 6. JS: `restoreStateFunction` and/or **`await manager.getRestoredState()`**
394
+ 7. **Your code** reconnects if needed (`ConnectionManager.attemptConnectOnce` or explicit auto — see BACKGROUND.md)
395
+
396
+ Restored ids ≠ ready for GATT: always check `isDeviceConnected` (or reconnect) before discover/monitor.
397
+
398
+ ### Enabling Restoration (Expo)
399
+
400
+ ```json
401
+ {
402
+ "expo": {
403
+ "plugins": [
404
+ [
405
+ "unified-ble-manager",
406
+ {
407
+ "isBackgroundEnabled": true,
408
+ "modes": ["central"],
409
+ "iosEnableRestoration": true,
410
+ "iosRestorationIdentifier": "com.yourapp.bleplx"
411
+ }
412
+ ]
413
+ ]
414
+ }
415
+ }
416
+ ```
417
+
418
+ Then in JavaScript (identifier must match the plugin):
419
+
420
+ ```typescript
421
+ import { BleManager } from 'unified-ble-manager'
422
+
423
+ const manager = new BleManager({
424
+ restoreStateIdentifier: 'com.yourapp.bleplx',
425
+ restoreStateFunction: restoredState => {
426
+ // Optional constructor-time callback — may fire before your session layer exists
427
+ console.log('restore callback', restoredState?.connectedPeripherals?.map(d => d.id))
428
+ }
429
+ })
430
+
431
+ // Prefer late handoff for session/hub init:
432
+ const restored = await manager.getRestoredState()
433
+ // then host policy: attemptConnectOnce / enableAutoReconnect — see docs/BACKGROUND.md
434
+ ```
435
+
436
+ ### Enabling Restoration (Manual / Non-Expo)
437
+
438
+ 1. Add the Restoration subspec to your Podfile:
439
+ ```ruby
440
+ pod 'unified-ble-manager/Restoration', :path => '../node_modules/unified-ble-manager'
441
+ ```
442
+
443
+ 2. Add to your `Info.plist`:
444
+ ```xml
445
+ <key>BlePlxRestoreIdentifier</key>
446
+ <string>com.yourapp.bleplx</string>
447
+ ```
448
+
449
+ 3. Enable background modes in Xcode: `Capabilities` → `Background Modes` → `Uses Bluetooth LE accessories`
450
+
451
+ ### Not Using Restoration?
452
+
453
+ **No action needed on 3.9.1+** if you leave `iosEnableRestoration` false (default) and do not add a manual `…/Restoration` pod:
454
+
455
+ - The `Restoration` subspec is **not** linked by default (`default_subspecs = :none` — fixed in [#32](https://github.com/sfourdrinier/react-native-ble-plx/issues/32) / 3.9.1)
456
+ - Native code uses runtime reflection — if restoration classes aren't present, registration is a no-op
457
+ - Without a restore identifier, `getRestoredState()` resolves `null` immediately
458
+
459
+ **Upgrading from 3.9.0:** if you depended on Restoration without setting the flag (it was accidentally always linked), set `iosEnableRestoration: true` + matching `restoreStateIdentifier` and rebuild native iOS — see CHANGELOG Migration 3.9.0 → 3.9.1.
460
+
461
+ ### Multi-Adapter Support (Advanced)
462
+
463
+ For apps using multiple BLE SDKs (e.g., Polar SDK + generic BLE-PLX), you can provide your own `BleRestorationRegistry` implementation with device-to-adapter routing. The optional **Restoration subspec** uses reflection to find registries when opted in (`iosEnableRestoration: true` / `unified-ble-manager/Restoration`):
464
+
465
+ 1. **Bundled early-wake**: With Restoration subspec + `BlePlxRestoreIdentifier` in Info.plist, `BlePlxBundledRestorationRegistry` creates a `CBCentralManager` early and forwards `willRestoreState` → `dispatchRestoration` → `handleRestored` (standalone D5 report path). Without that plist key, early central is not created — use Owned `createClient` restore + synthetic cold-start `RestoreStateEvent` null (see [docs/BACKGROUND.md](docs/BACKGROUND.md)).
466
+ 2. **Custom registry**: If you provide a class named `BleRestorationRegistry`, it takes priority when the subspec is present
467
+
468
+ ```swift
469
+ // Your custom BleRestorationRegistry implementation
470
+ @objc(BleRestorationRegistry)
471
+ public final class BleRestorationRegistry: NSObject {
472
+ @objc public static let shared = BleRestorationRegistry()
473
+
474
+ @objc(registerAdapter:)
475
+ public func registerAdapter(_ cls: AnyClass) { /* ... */ }
476
+
477
+ @objc(registerDevice:forAdapter:)
478
+ public func registerDevice(_ deviceId: String, for cls: AnyClass) { /* ... */ }
479
+ }
480
+ ```
481
+
482
+ When iOS restores the app, each device can be **routed** to the appropriate SDK registry. **Reconnect still belongs to each SDK’s host policy** (this library does not reconnect under you).
483
+
484
+ ## Android Background Mode
485
+
486
+ ### ⚠️ Android 12+ Requirements (CRITICAL)
487
+
488
+ **If you're targeting Android 12 (API 31) or higher, you MUST follow these requirements:**
489
+
490
+ #### 1. Required Permissions in `AndroidManifest.xml`
491
+
492
+ ```xml
493
+ <!-- Android 14+ (API 34+) - Required for foreground service type -->
494
+ <uses-permission android:name="android.permission.FOREGROUND_SERVICE" />
495
+ <uses-permission
496
+ android:name="android.permission.FOREGROUND_SERVICE_CONNECTED_DEVICE"
497
+ tools:targetApi="upside_down_cake" />
498
+
499
+ <!-- Android 12+ (API 31+) - Required for BLE -->
500
+ <uses-permission android:name="android.permission.BLUETOOTH_SCAN" />
501
+ <uses-permission android:name="android.permission.BLUETOOTH_CONNECT" />
502
+
503
+ <!-- Android < 12 -->
504
+ <uses-permission android:name="android.permission.BLUETOOTH" android:maxSdkVersion="30" />
505
+ <uses-permission android:name="android.permission.BLUETOOTH_ADMIN" android:maxSdkVersion="30" />
506
+
507
+ <!-- Location (required for BLE scanning on all versions) -->
508
+ <uses-permission android:name="android.permission.ACCESS_FINE_LOCATION" />
509
+ ```
510
+
511
+ #### 2. Call `enableBackgroundMode()` While App is in Foreground
512
+
513
+ **Android 12+ restricts starting foreground services from background.** You must call `enableBackgroundMode()` while your app is visible to the user:
514
+
515
+ ```typescript
516
+ // ✅ CORRECT: Call while app is in foreground
517
+ const handleStartRecording = async () => {
518
+ // User just tapped "Start Recording" button - app is in foreground
519
+ await bleManager.enableBackgroundMode({
520
+ notificationTitle: 'Recording Session Active',
521
+ notificationText: 'Syncing sensor data...'
522
+ });
523
+
524
+ // Now you can safely background the app and BLE will continue
525
+ await connectAndStartRecording();
526
+ };
527
+
528
+ // ❌ WRONG: Calling from background task/timer
529
+ setTimeout(async () => {
530
+ // App may be backgrounded - this will throw on Android 12+
531
+ await bleManager.enableBackgroundMode({ /* ... */ });
532
+ }, 60000);
533
+ ```
534
+
535
+ **Error if violated:** `IllegalStateException: Cannot start foreground service from background on Android 12+`
536
+
537
+ #### 3. Service Type Declaration (Expo Plugin Handles This)
538
+
539
+ If using the Expo config plugin with `androidEnableForegroundService: true`, the service type is configured automatically. For manual setup, ensure your service has:
540
+
541
+ ```xml
542
+ <service
543
+ android:name="com.sfourdrinier.unifiedblemanager.BlePlxForegroundService"
544
+ android:enabled="true"
545
+ android:exported="false"
546
+ android:foregroundServiceType="connectedDevice"
547
+ tools:targetApi="q" />
548
+ ```
549
+
550
+ ### Platform Compatibility
551
+
552
+ | Android Version | Min SDK | Target SDK | Requirements |
553
+ |----------------|---------|------------|--------------|
554
+ | Android 14+ (API 34+) | 24 | 36 | `FOREGROUND_SERVICE_CONNECTED_DEVICE` permission + service type |
555
+ | Android 12-13 (API 31-33) | 24 | 31+ | Foreground state check required |
556
+ | Android 8-11 (API 26-30) | 24 | 26+ | Standard foreground service |
557
+ | Android < 8 (API < 26) | 24 | - | No foreground service needed |
558
+
559
+ ---
560
+
561
+ ### Basic Usage
562
+
563
+ Android requires a foreground service to keep BLE operations alive when the app is in the background. This fork adds built-in support for this.
564
+
565
+ ### Enabling via Expo Config Plugin
566
+
567
+ ```json
568
+ {
569
+ "expo": {
570
+ "plugins": [
571
+ [
572
+ "unified-ble-manager",
573
+ {
574
+ "isBackgroundEnabled": true,
575
+ "androidEnableForegroundService": true
576
+ }
577
+ ]
578
+ ]
579
+ }
580
+ }
581
+ ```
582
+
583
+ ### Using in JavaScript
584
+
585
+ ```typescript
586
+ import { BleManager } from 'unified-ble-manager';
587
+
588
+ const manager = new BleManager();
589
+
590
+ // Enable background mode before starting BLE operations
591
+ await manager.enableBackgroundMode({
592
+ notificationTitle: 'Connected to Heart Rate Monitor',
593
+ notificationText: 'Syncing health data...'
594
+ });
595
+
596
+ // ... perform BLE operations ...
597
+
598
+ // Update the notification while running
599
+ await manager.updateBackgroundNotification({
600
+ notificationTitle: 'Syncing Data',
601
+ notificationText: 'Progress: 75%'
602
+ });
603
+
604
+ // Check if background mode is active
605
+ const isEnabled = await manager.isBackgroundModeEnabled();
606
+
607
+ // Disable when done
608
+ await manager.disableBackgroundMode();
609
+ ```
610
+
611
+ ### Platform Behavior & iOS/Android Parity
612
+
613
+ | Feature | iOS | Android | Notes |
614
+ |---------|-----|---------|-------|
615
+ | **Background BLE Operations** | ✅ Built-in via UIBackgroundModes | ✅ Foreground Service | Both platforms fully supported |
616
+ | **Configuration** | Info.plist + Expo plugin | Manifest permissions + Expo plugin | Platform-specific setup |
617
+ | **`enableBackgroundMode()` API** | ✅ No-op (graceful) | ✅ Required | Same API, platform-appropriate behavior |
618
+ | **`disableBackgroundMode()` API** | ✅ No-op (graceful) | ✅ Stops service | Same API, platform-appropriate behavior |
619
+ | **`updateBackgroundNotification()` API** | ✅ No-op (graceful) | ✅ Updates notification | iOS doesn't show notification |
620
+ | **`isBackgroundModeEnabled()` API** | ✅ Reads `UIBackgroundModes` for `bluetooth-central` | ✅ Returns true/false | Honest plist check on iOS (R2-F110) |
621
+ | **Connection Management** | ✅ ConnectionManager | ✅ ConnectionManager | **100% API parity** |
622
+ | **Auto-reconnection** | ✅ Full support | ✅ Full support | **100% feature parity** |
623
+ | **Retry Logic** | ✅ Full support | ✅ Full support | **100% feature parity** |
624
+ | **Timeout Support** | ✅ Full support | ✅ Full support | **100% feature parity** |
625
+
626
+ **Cross-Platform Code Example:**
627
+ ```typescript
628
+ // This exact code works on BOTH iOS and Android
629
+ await bleManager.enableBackgroundMode({
630
+ notificationTitle: 'Recording Active', // Shown on Android, ignored on iOS
631
+ notificationText: 'Syncing sensor data' // Shown on Android, ignored on iOS
632
+ });
633
+
634
+ // ConnectionManager has 100% API parity between platforms
635
+ const connectionManager = new ConnectionManager(bleManager);
636
+ await connectionManager.connect(deviceId, {
637
+ maxRetries: 5,
638
+ timeoutMs: 15000
639
+ });
640
+ ```
641
+
642
+ > **✅ Platform Parity Guarantee**: All ConnectionManager features, retry logic, auto-reconnection, and timeout support work identically on iOS and Android. Only background mode setup differs due to platform requirements.
643
+
644
+ ## Reliability Features
645
+
646
+ ### ConnectionManager (Recommended)
647
+
648
+ **Unified connection management** with retry logic, timeout support, automatic reconnection, and host-owned gated attempts — all in one manager. Full guide: [docs/CONNECTION_MANAGER.md](docs/CONNECTION_MANAGER.md).
649
+
650
+ ```typescript
651
+ import { BleManager, ConnectionManager } from 'unified-ble-manager';
652
+
653
+ const bleManager = new BleManager();
654
+ const connectionManager = new ConnectionManager(bleManager);
655
+
656
+ // Connect with retry logic and timeout
657
+ const device = await connectionManager.connect('AA:BB:CC:DD:EE:FF', {
658
+ maxRetries: 5,
659
+ initialDelayMs: 1000,
660
+ timeoutMs: 15000, // Connection timeout
661
+ backoffMultiplier: 2
662
+ });
663
+
664
+ // Host-owned single attempt (3.9+): no multi-retry / no auto re-arm for this call
665
+ // await connectionManager.attemptConnectOnce(deviceId, { timeoutMs: 15000 });
666
+
667
+ // Enable auto-reconnect for a device
668
+ connectionManager.enableAutoReconnect('AA:BB:CC:DD:EE:FF', {
669
+ maxRetries: 10,
670
+ initialDelayMs: 2000,
671
+ timeoutMs: 15000
672
+ }, {
673
+ onConnect: (device) => console.log('Connected!', device.id),
674
+ onDisconnect: (deviceId, error) => console.log('Disconnected', deviceId),
675
+ onConnectFailed: (deviceId, error) => console.log('Failed', deviceId, error)
676
+ });
677
+
678
+ // Set global callbacks for all devices
679
+ connectionManager.setGlobalCallbacks({
680
+ onConnect: (device) => console.log('Any device connected:', device.id),
681
+ onDisconnect: (deviceId) => console.log('Any device disconnected:', deviceId),
682
+ onConnecting: (deviceId, attempt, max) => {
683
+ console.log(`Connecting ${deviceId}: attempt ${attempt}/${max}`);
684
+ }
685
+ });
686
+
687
+ // Check status
688
+ console.log('Is connecting:', connectionManager.isConnecting('AA:BB:CC:DD:EE:FF'));
689
+ console.log('Auto-reconnect enabled:', connectionManager.isAutoReconnectEnabled('AA:BB:CC:DD:EE:FF'));
690
+ console.log('Active connections:', connectionManager.activeCount);
691
+
692
+ // Cancel a connection
693
+ connectionManager.cancel('AA:BB:CC:DD:EE:FF');
694
+
695
+ // Disable auto-reconnect
696
+ connectionManager.disableAutoReconnect('AA:BB:CC:DD:EE:FF');
697
+ ```
698
+
699
+ **Key Features:**
700
+ - ✅ Single state machine per device (no competing retry engines)
701
+ - ✅ Concurrent connections to different devices
702
+ - ✅ Configurable connection timeout (prevents hangs)
703
+ - ✅ Exponential backoff retry logic
704
+ - ✅ Automatic reconnection on unexpected disconnects (after a successful link)
705
+ - ✅ **`attemptConnectOnce`** for host-owned reconnect policy (3.9+)
706
+ - ✅ Comprehensive event callbacks (onConnect, onDisconnect, onConnecting, onConnectFailed)
707
+ - ✅ Clean cancellation and lifecycle management
708
+
709
+ ---
710
+
711
+ ### Migration Guide: Use ConnectionManager
712
+
713
+ Older versions exposed separate queue and reconnection helpers. Modern versions expose one supported reliability API: `ConnectionManager`.
714
+
715
+ ```typescript
716
+ import { BleManager, ConnectionManager } from 'unified-ble-manager';
717
+
718
+ const bleManager = new BleManager();
719
+ const connectionManager = new ConnectionManager(bleManager);
720
+
721
+ // Connect with retry AND enable auto-reconnect in one step
722
+ connectionManager.enableAutoReconnect(deviceId, {
723
+ maxRetries: 10,
724
+ initialDelayMs: 2000,
725
+ timeoutMs: 15000
726
+ }, {
727
+ onConnect: (device) => console.log('Connected'), // Fires on initial connect AND reconnects
728
+ onDisconnect: (deviceId, error) => console.log('Disconnected'),
729
+ onConnectFailed: (deviceId, error) => console.log('Failed')
730
+ });
731
+
732
+ // Initial connection (auto-reconnect handles future disconnects)
733
+ const device = await connectionManager.connect(deviceId, {
734
+ maxRetries: 5,
735
+ timeoutMs: 15000
736
+ });
737
+ ```
738
+
739
+ ### Combining Features for Reliable Background Sync
740
+
741
+ Use `ConnectionManager` with background mode for reliable, long-running connections:
742
+
743
+ ```typescript
744
+ import {
745
+ BleManager,
746
+ ConnectionManager
747
+ } from 'unified-ble-manager';
748
+
749
+ const bleManager = new BleManager();
750
+ const connectionManager = new ConnectionManager(bleManager);
751
+
752
+ async function startReliableSync(deviceId: string) {
753
+ // 1. Enable background mode (Android)
754
+ await bleManager.enableBackgroundMode({
755
+ notificationTitle: 'Syncing Data',
756
+ notificationText: 'Connected to device'
757
+ });
758
+
759
+ // 2. Connect with retry logic and auto-reconnect
760
+ connectionManager.enableAutoReconnect(deviceId, {
761
+ maxRetries: 10,
762
+ initialDelayMs: 2000,
763
+ timeoutMs: 15000
764
+ }, {
765
+ onConnect: async (device) => {
766
+ // Start or resume data sync when connected
767
+ await startDataSync(device);
768
+ },
769
+ onDisconnect: (deviceId, error) => {
770
+ console.log('Device disconnected, will auto-reconnect:', deviceId);
771
+ },
772
+ onConnectFailed: (deviceId, error) => {
773
+ console.error('Failed to reconnect after all retries:', deviceId, error);
774
+ }
775
+ });
776
+
777
+ // 3. Initial connection
778
+ const device = await connectionManager.connect(deviceId, {
779
+ maxRetries: 5,
780
+ initialDelayMs: 1000,
781
+ timeoutMs: 15000
782
+ });
783
+
784
+ // Auto-reconnect is now active and will handle disconnects automatically
785
+ }
786
+
787
+ ```
788
+
789
+ ## Troubleshooting
790
+
791
+ ## Releasing
792
+
793
+ Read [RELEASE.md](RELEASE.md) before preparing or publishing a release. It is the authoritative procedure for this fork: shared release gate, preferred CI publish (OIDC + provenance + GitHub Release), and optional laptop npm/`gh release` path.
794
+
795
+ Keep `RELEASE.md` updated whenever the release gate, package contents, or publishing process changes.
796
+
797
+ ## Grok workflows (ROADMAP 4.0 review)
798
+
799
+ This repo ships **project Grok Build workflows** under [`.grok/workflows/`](.grok/workflows/) so maintainers can run the same multi-agent reviews from any checkout (not only personal `~/.grok/workflows/`).
800
+
801
+ ### `roadmap-4-e2e-review`
802
+
803
+ End-to-end review grounded in **[ROADMAP.4.0.md](ROADMAP.4.0.md)** and **[docs/GAPS.4.0.md](docs/GAPS.4.0.md)**. It hunts **bugs, edge cases, test gaps, DRY opportunities, compat risks, docs drift, security/perf nits**, across:
804
+
805
+ | Surface lanes (parallel) | Also covered |
806
+ | ------------------------ | ------------ |
807
+ | TS core (`BleManager`, ports, queues, `supports`) | Dual Base64 / bytes path |
808
+ | Discovery + SIG profiles | Examples: shared UI, web, Electron, Expo |
809
+ | Android + iOS owned native | Electron CoreBluetooth N-API + main-process rule |
810
+ | Web host | CI / package / plugin floors |
811
+ | Tests + docs/GAPS honesty | Security / performance |
812
+
813
+ **Findings are real only — not a quota.** Each of 12 lanes may report **at most 10** issues (anti-flood **ceiling**). Agents must **not pad** to 10; `[]` means the lane looked clean. If many lanes hit 10, that can mean **under-reporting** (overflow) — re-run those lanes after fixes.
814
+
815
+ **Default `max_verify` is 120** so *every* filed finding (critical → nit) can get an adversarial skeptic when budget allows — not “only the top 8 highs.” Fail-closed.
816
+ **Budget for full pass:** ~**160** agents (1 ground + 12 lanes + up to 120 verifyifiers + 1 report).
817
+
818
+ #### How to run (Grok Build / TUI)
819
+
820
+ ```text
821
+ # Full tree — skeptic-verify every filed finding (recommended)
822
+ /workflow roadmap-4-e2e-review {"focus":"all","max_verify":120}
823
+
824
+ # Focus one surface (after a cap-full lane warning)
825
+ /workflow roadmap-4-e2e-review {"focus":"android","max_verify":40}
826
+ ```
827
+
828
+ Pass **`agent_budget: 160`** for full verify-all. Watch **`/workflows`**. Report: `roadmap-4-e2e-review.md`.
829
+
830
+ **Loop:** fix confirmed findings → re-run review until raw count drops and few/no lanes hit the 10-cap.
831
+
832
+ #### Args
833
+
834
+ | Arg | Default | Meaning |
835
+ | --- | ------- | ------- |
836
+ | `focus` | `"all"` | `"all"`, a lane id, or a path fragment |
837
+ | `max_verify` | `120` | Max findings to skeptic-verify (1–120). Default = verify **all filed** findings when ≤120 |
838
+ | `since` | _(omit)_ | Git ref/commit for optional `git_diff_since` context |
839
+
840
+ #### When to use
841
+
842
+ - Before a **4.0** milestone or large multi-host / native / profile change
843
+ - After merging parallel workstreams that may leave DRY or test holes
844
+ - Anytime you want a structured, charter-aligned bug hunt with proposed fixes
845
+
846
+ Script source of truth: [`.grok/workflows/roadmap-4-e2e-review.rhai`](.grok/workflows/roadmap-4-e2e-review.rhai).
847
+
848
+ ### `roadmap-4-fix-findings`
849
+
850
+ Applies and **verifies** open items from the E2E review backlog ([`docs/review/findings-4.0.json`](docs/review/findings-4.0.json), tracker [`docs/FIX_TRACKER.4.0.md`](docs/FIX_TRACKER.4.0.md)).
851
+
852
+ | Phase | Agents | Mode |
853
+ | ----- | ------ | ---- |
854
+ | Ingest / plan | 1 | read-only — cluster by non-overlapping path areas |
855
+ | Fix | ≤10 parallel | **read-write** — one fixer per area (android, ios, src-core, …) |
856
+ | Verify | ≤10 parallel | **execute** — inspect diffs + narrow `pnpm`/jest; **fail-closed** |
857
+ | Track | 1 | read-write — update tracker + run report |
858
+
859
+ **Design budget: 64 agents** (full backlog ≈ 1 plan + ≤12 fix + ≤12 verify + 1 track ≈ **26**). Always launch with **`agent_budget: 64`**.
860
+
861
+ ```text
862
+ # Fix ALL open findings (default)
863
+ /workflow roadmap-4-fix-findings {"severities":"all","max_batches":12,"max_findings":120}
864
+
865
+ # Specific IDs after a partial run
866
+ /workflow roadmap-4-fix-findings {"only_ids":"F001,F002,F005","max_batches":3}
867
+ ```
868
+
869
+ Watch **`/workflows`**. Report: scratch `roadmap-4-fix-findings.md`. Re-run until the tracker is green.
870
+
871
+ #### Args
872
+
873
+ | Arg | Default | Meaning |
874
+ | --- | ------- | ------- |
875
+ | `findings_path` | `docs/review/findings-4.0.json` | Backlog JSON (`id`, `severity`, `file`, `issue`, `proposed_fix`, `status`) |
876
+ | `severities` | `"all"` | `"all"` or comma list: `critical,high,medium,low,nit` |
877
+ | `max_batches` | `12` | Parallel fix areas (1–12) |
878
+ | `max_findings` | `120` | Cap findings attempted this run (1–120; full backlog) |
879
+ | `only_ids` | _(omit)_ | Comma list e.g. `F001,F019` |
880
+
881
+ Script: [`.grok/workflows/roadmap-4-fix-findings.rhai`](.grok/workflows/roadmap-4-fix-findings.rhai).
882
+
883
+ ## Contributions
884
+
885
+ - Special thanks to @EvanBacon for supporting the expo config plugin.