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.
- package/LICENSE +202 -0
- package/MIGRATION_4.0.md +46 -0
- package/README.md +885 -0
- package/ROADMAP.4.0.md +87 -0
- package/ROADMAP.md +712 -0
- package/android/build.gradle +116 -0
- package/android/gradle.properties +5 -0
- package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/BleModule.java +1666 -0
- package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/DisposableMap.java +39 -0
- package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/RefreshGattCustomOperation.java +53 -0
- package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/mapper/RxBleDeviceToDeviceMapper.java +19 -0
- package/android/src/legacy/java/com/sfourdrinier/unifiedblemanager/adapter/utils/mapper/RxScanResultToScanResultMapper.java +22 -0
- package/android/src/main/AndroidManifest.xml +41 -0
- package/android/src/main/AndroidManifestNew.xml +44 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxForegroundService.java +398 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxModule.java +1237 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/BlePlxPackage.java +60 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/Event.java +18 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/AdvertisementData.java +251 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapter.java +269 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapterCreator.java +7 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/BleAdapterFactory.java +22 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Characteristic.java +169 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ConnectionOptions.java +72 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ConnectionState.java +12 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Descriptor.java +113 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Device.java +95 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnErrorCallback.java +8 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnEventCallback.java +6 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/OnSuccessCallback.java +6 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/RefreshGattMoment.java +20 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/ScanResult.java +184 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/Service.java +58 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleError.java +32 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleErrorCode.java +61 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/BleErrorUtils.java +86 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/errors/ErrorConverter.java +34 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/exceptions/CannotMonitorCharacteristicException.java +15 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/Base64Converter.java +34 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/ByteUtils.java +15 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/Constants.java +66 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/IdGenerator.java +22 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/IdGeneratorKey.java +37 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/LogLevel.java +51 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/SafeExecutor.java +33 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/ServiceFactory.java +16 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/adapter/utils/UUIDConverter.java +51 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/BleErrorToJsObjectConverter.java +65 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/CharacteristicToJsObjectConverter.java +52 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/DescriptorToJsObjectConverter.java +38 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/DeviceToJsObjectConverter.java +64 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/JSObjectConverter.java +17 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/ScanResultToJsObjectConverter.java +118 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/converter/ServiceToJsObjectConverter.java +26 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/ProtocolCommandDecoder.kt +221 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/ProtocolWireEncoder.kt +129 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolAndroidDispatcher.kt +685 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolControlModule.java +367 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolJsiBinding.java +130 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/protocol/generated/NativeProtocolV1Schema.kt +302 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAdapterLifecycleCoordinator.kt +107 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAndroidGattRadio.kt +1599 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAndroidLog.kt +23 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedBleAdapter.kt +1689 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/radio/OwnedBondedDevicesOperation.kt +32 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/Base64Converter.java +30 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/BlePlxDebugLogging.java +47 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/ErrorDefaults.java +9 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/ReadableArrayConverter.java +28 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/SafePromise.java +54 -0
- package/android/src/main/java/com/sfourdrinier/unifiedblemanager/utils/UUIDConverter.java +70 -0
- package/android/src/main/jni/CMakeLists.txt +50 -0
- package/android/src/main/jni/UnifiedBleProtocolControlJni.cpp +253 -0
- package/android/src/main/jni/UnifiedBleProtocolJsiBinding.cpp +1400 -0
- package/android/src/main/jni/UnifiedBleProtocolRuntimeHandle.hpp +12 -0
- package/android/src/test/java/com/sfourdrinier/unifiedblemanager/protocol/UnifiedBleProtocolAndroidDispatcherLifecycleTest.kt +51 -0
- package/android/src/test/java/com/sfourdrinier/unifiedblemanager/radio/OwnedAdapterLifecycleCoordinatorTest.kt +110 -0
- package/app.plugin.js +1 -0
- package/bin/ubm.js +18 -0
- package/docs/ADR/2026-07-4.0-backend-contract.md +133 -0
- package/docs/ADR/2026-07-4.0-boundary.md +128 -0
- package/docs/ADR/2026-07-4.0-capability-registry.md +116 -0
- package/docs/ADR/2026-07-4.0-open-source-governance.md +105 -0
- package/docs/ADR/2026-07-4.0-packaging.md +114 -0
- package/docs/ADR/2026-07-4.0-public-api.md +129 -0
- package/docs/ADR/2026-07-4.0-rn-restoration-bootstrap.md +122 -0
- package/docs/BACKEND_AUTHORING.md +13 -0
- package/docs/BACKGROUND.md +19 -0
- package/docs/BONDING.md +66 -0
- package/docs/CLI.md +18 -0
- package/docs/CONNECTION_MANAGER.md +188 -0
- package/docs/DISCOVERY_AND_PROFILES.md +143 -0
- package/docs/ELECTRON.md +29 -0
- package/docs/EXPO_PLUGIN.md +19 -0
- package/docs/FIX_TRACKER.4.0-round2.md +170 -0
- package/docs/FIX_TRACKER.4.0-round3.md +96 -0
- package/docs/FIX_TRACKER.4.0.md +168 -0
- package/docs/FORK.md +89 -0
- package/docs/GAPS.4.0.md +87 -0
- package/docs/GETTING_STARTED.md +37 -0
- package/docs/HELPERS.md +140 -0
- package/docs/MIGRATION_V1.md +6 -0
- package/docs/NODE.md +19 -0
- package/docs/PERFORMANCE.md +20 -0
- package/docs/PLATFORMS.md +51 -0
- package/docs/PROFILES_AND_COMMANDS.md +139 -0
- package/docs/README_V1.md +173 -0
- package/docs/TCK.md +21 -0
- package/docs/TUTORIALS.md +108 -0
- package/docs/TVOS.md +16 -0
- package/docs/UNIFIED_BLE_4.0_IMPLEMENTATION_PLAN.md +3053 -0
- package/docs/UNIFIED_SEMANTICS.md +965 -0
- package/docs/WEB.md +19 -0
- package/docs/generated/BACKEND_SDK_REFERENCE.md +52 -0
- package/docs/logo.png +0 -0
- package/docs/platforms/META_QUEST_4.1_SCOPE.md +21 -0
- package/docs/security/UNIFIED_BLE_4.0_THREAT_MODEL.md +126 -0
- package/ios/BlePlx-Bridging-Header.h +4 -0
- package/ios/BlePlx.h +21 -0
- package/ios/BlePlx.mm +885 -0
- package/ios/BlePlx.xcodeproj/project.pbxproj +288 -0
- package/ios/BlePlxDebugLogging.h +6 -0
- package/ios/BlePlxDebugLogging.m +33 -0
- package/ios/BlePlxRuntimeDispatch.h +8 -0
- package/ios/BlePlxTurboModule.mm +39 -0
- package/ios/Generated/NativeProtocolV1Schema.swift +302 -0
- package/ios/NativeProtocol/UnifiedBleProtocolAppleBinaryDelivery.hpp +25 -0
- package/ios/NativeProtocol/UnifiedBleProtocolAppleBinaryDelivery.mm +63 -0
- package/ios/NativeProtocol/UnifiedBleProtocolAppleExecution.hpp +46 -0
- package/ios/NativeProtocol/UnifiedBleProtocolAppleExecution.mm +883 -0
- package/ios/Owned/BlePlxRadioQueue.swift +23 -0
- package/ios/Owned/OwnedCoreBluetoothAdapter.swift +1704 -0
- package/ios/Owned/OwnedCoreBluetoothProtocolRadio.swift +870 -0
- package/ios/PrivacyInfo.xcprivacy +14 -0
- package/ios/Restoration/BlePlxDebugLogging.swift +26 -0
- package/ios/Restoration/BlePlxRestorationAdapter.swift +231 -0
- package/ios/Restoration/BlePlxRestorationState.swift +44 -0
- package/ios/Restoration/BleRestorationRegistry.swift +219 -0
- package/ios/UnifiedBleProtocolControl.mm +392 -0
- package/ios/vendor/MultiplatformBleAdapter/LICENSE +201 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/AdvertisementData.swift +62 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Array+Utils.swift +11 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothError.swift +195 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothManager.swift +357 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/BluetoothState.swift +12 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Boxes.swift +63 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBCentral+Uuid.swift +9 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBCentralManagerDelegateWrapper.swift +75 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/CBPeripheralDelegateWrapper.swift +163 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Characteristic.swift +121 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Descriptor.swift +74 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/DeviceIdentifiers.swift +51 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Logging.swift +218 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ManagerType.swift +41 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Observable+Absorb.swift +25 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Observable+QueueSubscribeOn.swift +125 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Peripheral+Convenience.swift +213 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Peripheral.swift +516 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RestoredState.swift +59 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBCentralManager.swift +149 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBCharacteristic.swift +51 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBDescriptor.swift +32 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBPeripheral.swift +394 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCBService.swift +42 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCentralManagerType.swift +23 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxCharacteristicType.swift +24 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxDescriptorType.swift +21 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxPeripheralType.swift +76 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/RxServiceType.swift +21 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ScanOperation.swift +30 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/ScannedPeripheral.swift +22 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Service.swift +75 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/UUIDIdentifiable.swift +25 -0
- package/ios/vendor/MultiplatformBleAdapter/RxBluetoothKit/Unimplemented.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/AnyObserver.swift +69 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Binder.swift +59 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Cancelable.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/AsyncLock.swift +100 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/Lock.swift +23 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/LockOwnerType.swift +16 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedDisposeType.swift +18 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedOnType.swift +18 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ConnectableObservableType.swift +19 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Date+Dispatch.swift +64 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposable.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/AnonymousDisposable.swift +59 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/BinaryDisposable.swift +53 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/BooleanDisposable.swift +34 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/CompositeDisposable.swift +147 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/Disposables.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/DisposeBag.swift +144 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/DisposeBase.swift +22 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/NopDisposable.swift +30 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/RefCountDisposable.swift +112 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/ScheduledDisposable.swift +50 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SerialDisposable.swift +73 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SingleAssignmentDisposable.swift +72 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Disposables/SubscriptionDisposable.swift +21 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Errors.swift +52 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Event.swift +104 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Extensions/Bag+Rx.swift +50 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/GroupedObservable.swift +35 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ImmediateSchedulerType.swift +36 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observable+Concurrency.swift +79 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observable.swift +31 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableConvertibleType.swift +18 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableType+Extensions.swift +174 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObservableType.swift +45 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AddRef.swift +44 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Amb.swift +157 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AsMaybe.swift +48 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/AsSingle.swift +51 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Buffer.swift +138 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Catch.swift +275 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest+Collection.swift +165 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest+arity.swift +843 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CombineLatest.swift +131 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/CompactMap.swift +76 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Concat.swift +131 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Create.swift +78 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Debounce.swift +119 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Debug.swift +102 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Decode.swift +34 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DefaultIfEmpty.swift +66 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Deferred.swift +75 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Delay.swift +174 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DelaySubscription.swift +58 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Dematerialize.swift +51 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/DistinctUntilChanged.swift +137 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Do.swift +112 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ElementAt.swift +105 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Empty.swift +27 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Enumerated.swift +61 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Error.swift +33 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Filter.swift +86 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/First.swift +41 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Generate.swift +87 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/GroupBy.swift +133 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Just.swift +87 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Map.swift +76 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Materialize.swift +44 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Merge.swift +600 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Multicast.swift +405 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Never.swift +27 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ObserveOn.swift +243 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Optional.swift +95 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Producer.swift +92 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Range.swift +73 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Reduce.swift +109 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Repeat.swift +57 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/RetryWhen.swift +211 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sample.swift +139 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Scan.swift +100 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sequence.swift +89 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ShareReplayScope.swift +443 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SingleAsync.swift +104 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Sink.swift +75 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Skip.swift +158 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SkipUntil.swift +152 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SkipWhile.swift +87 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/StartWith.swift +42 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SubscribeOn.swift +103 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Switch.swift +251 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/SwitchIfEmpty.swift +104 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Take.swift +193 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/TakeLast.swift +78 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/TakeWithPredicate.swift +285 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Throttle.swift +160 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Timeout.swift +151 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Timer.swift +117 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/ToArray.swift +64 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Using.swift +90 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Window.swift +168 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/WithLatestFrom.swift +151 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/WithUnretained.swift +58 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip+Collection.swift +168 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip+arity.swift +934 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observables/Zip.swift +135 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/ObserverType.swift +40 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/AnonymousObserver.swift +30 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/ObserverBase.swift +32 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Observers/TailRecursiveSink.swift +151 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/AtomicInt.swift +72 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/Bag.swift +181 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/InfiniteSequence.swift +23 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/PriorityQueue.swift +111 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DataStructures/Queue.swift +148 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/DispatchQueue+Extensions.swift +21 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/Platform.Darwin.swift +35 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/Platform.Linux.swift +32 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Platform/RecursiveLock.swift +34 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Reactive.swift +80 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Rx.swift +142 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/RxMutableBox.swift +53 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/SchedulerType.swift +71 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift +82 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/ConcurrentMainScheduler.swift +87 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/CurrentThreadScheduler.swift +131 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/HistoricalScheduler.swift +22 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift +67 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/DispatchQueueConfiguration.swift +97 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift +22 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/InvocableType.swift +17 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/ScheduledItem.swift +35 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/Internal/ScheduledItemType.swift +13 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/MainScheduler.swift +80 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/OperationQueueScheduler.swift +54 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/RecursiveScheduler.swift +220 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/SchedulerServices+Emulation.swift +61 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/SerialDispatchQueueScheduler.swift +131 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/VirtualTimeConverterType.swift +97 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Schedulers/VirtualTimeScheduler.swift +267 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/AsyncSubject.swift +154 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/BehaviorSubject.swift +157 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/PublishSubject.swift +140 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/ReplaySubject.swift +271 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Subjects/SubjectType.swift +21 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/SwiftSupport/SwiftSupport.swift +18 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+CombineLatest+Collection.swift +36 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+CombineLatest+arity.swift +276 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Concurrency.swift +37 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Create.swift +55 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Debug.swift +26 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Operators.swift +711 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible+Zip+arity.swift +138 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/Infallible.swift +102 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/Infallible/ObservableConvertibleType+Infallible.swift +35 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Completable+AndThen.swift +132 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Completable.swift +320 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Maybe.swift +387 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/ObservableType+PrimitiveSequence.swift +55 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence+Concurrency.swift +164 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence+Zip+arity.swift +521 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/PrimitiveSequence.swift +342 -0
- package/ios/vendor/MultiplatformBleAdapter/RxSwift/Traits/PrimitiveSequence/Single.swift +403 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleAdapter.swift +236 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleAdapterFactory.swift +25 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleError.swift +309 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleEvent.swift +48 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleExtensions.swift +239 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleModule.swift +1373 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/BleUtils.swift +110 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/Utils/DisposableMap.swift +32 -0
- package/ios/vendor/MultiplatformBleAdapter/classes/Utils/SafePromise.swift +37 -0
- package/lib/commonjs/backend-contract/advertisement.js +6 -0
- package/lib/commonjs/backend-contract/advertisement.js.map +1 -0
- package/lib/commonjs/backend-contract/backend-sdk.js +6 -0
- package/lib/commonjs/backend-contract/backend-sdk.js.map +1 -0
- package/lib/commonjs/backend-contract/backend.js +138 -0
- package/lib/commonjs/backend-contract/backend.js.map +1 -0
- package/lib/commonjs/backend-contract/capabilities.js +124 -0
- package/lib/commonjs/backend-contract/capabilities.js.map +1 -0
- package/lib/commonjs/backend-contract/connection-controls.js +13 -0
- package/lib/commonjs/backend-contract/connection-controls.js.map +1 -0
- package/lib/commonjs/backend-contract/electron.js +323 -0
- package/lib/commonjs/backend-contract/electron.js.map +1 -0
- package/lib/commonjs/backend-contract/errors.js +30 -0
- package/lib/commonjs/backend-contract/errors.js.map +1 -0
- package/lib/commonjs/backend-contract/gatt.js +22 -0
- package/lib/commonjs/backend-contract/gatt.js.map +1 -0
- package/lib/commonjs/backend-contract/host/electron-main.js +13 -0
- package/lib/commonjs/backend-contract/host/electron-main.js.map +1 -0
- package/lib/commonjs/backend-contract/host/electron-renderer.js +6 -0
- package/lib/commonjs/backend-contract/host/electron-renderer.js.map +1 -0
- package/lib/commonjs/backend-contract/host/node.js +6 -0
- package/lib/commonjs/backend-contract/host/node.js.map +1 -0
- package/lib/commonjs/backend-contract/host/web.js +6 -0
- package/lib/commonjs/backend-contract/host/web.js.map +1 -0
- package/lib/commonjs/backend-contract/identity.js +13 -0
- package/lib/commonjs/backend-contract/identity.js.map +1 -0
- package/lib/commonjs/backend-contract/index.js +181 -0
- package/lib/commonjs/backend-contract/index.js.map +1 -0
- package/lib/commonjs/backend-contract/operations.js +44 -0
- package/lib/commonjs/backend-contract/operations.js.map +1 -0
- package/lib/commonjs/backend-contract/primitives.js +244 -0
- package/lib/commonjs/backend-contract/primitives.js.map +1 -0
- package/lib/commonjs/backend-contract/restoration.js +6 -0
- package/lib/commonjs/backend-contract/restoration.js.map +1 -0
- package/lib/commonjs/backend-contract/serializable.js +173 -0
- package/lib/commonjs/backend-contract/serializable.js.map +1 -0
- package/lib/commonjs/backend-contract/streams.js +6 -0
- package/lib/commonjs/backend-contract/streams.js.map +1 -0
- package/lib/commonjs/backend-sdk-authoring.js +104 -0
- package/lib/commonjs/backend-sdk-authoring.js.map +1 -0
- package/lib/commonjs/backend-sdk.js +80 -0
- package/lib/commonjs/backend-sdk.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-backend-handles.js +216 -0
- package/lib/commonjs/backends/bluez/bluez-backend-handles.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-backend-provider.js +107 -0
- package/lib/commonjs/backends/bluez/bluez-backend-provider.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-backend-runtime.js +615 -0
- package/lib/commonjs/backends/bluez/bluez-backend-runtime.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-backend.js +77 -0
- package/lib/commonjs/backends/bluez/bluez-backend.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-dbus-contract.js +25 -0
- package/lib/commonjs/backends/bluez/bluez-dbus-contract.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-dbus-next-boundary.js +408 -0
- package/lib/commonjs/backends/bluez/bluez-dbus-next-boundary.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-gatt-operations.js +100 -0
- package/lib/commonjs/backends/bluez/bluez-gatt-operations.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-object-store.js +383 -0
- package/lib/commonjs/backends/bluez/bluez-object-store.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-operation-dispatcher.js +163 -0
- package/lib/commonjs/backends/bluez/bluez-operation-dispatcher.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-property-waiters.js +153 -0
- package/lib/commonjs/backends/bluez/bluez-property-waiters.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-runtime-models.js +240 -0
- package/lib/commonjs/backends/bluez/bluez-runtime-models.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-runtime-types.js +20 -0
- package/lib/commonjs/backends/bluez/bluez-runtime-types.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-scan-runtime.js +242 -0
- package/lib/commonjs/backends/bluez/bluez-scan-runtime.js.map +1 -0
- package/lib/commonjs/backends/bluez/bluez-subscription-runtime.js +131 -0
- package/lib/commonjs/backends/bluez/bluez-subscription-runtime.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-backend.js +696 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-backend.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-boundary.js +2 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-boundary.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-connection-controls.js +59 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-connection-controls.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-gatt-operations.js +215 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-gatt-operations.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-handles.js +280 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-handles.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-identity.js +22 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-identity.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-dispatcher.js +79 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-dispatcher.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-lifecycle.js +93 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-operation-lifecycle.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-provider.js +65 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-provider.js.map +1 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-stream-limits.js +20 -0
- package/lib/commonjs/backends/corebluetooth/corebluetooth-stream-limits.js.map +1 -0
- package/lib/commonjs/backends/reactnative/react-native-android-provider.js +155 -0
- package/lib/commonjs/backends/reactnative/react-native-android-provider.js.map +1 -0
- package/lib/commonjs/backends/reactnative/react-native-apple-provider.js +152 -0
- package/lib/commonjs/backends/reactnative/react-native-apple-provider.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-adapter-state.js +49 -0
- package/lib/commonjs/backends/winrt/winrt-adapter-state.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-backend-helpers.js +84 -0
- package/lib/commonjs/backends/winrt/winrt-backend-helpers.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-backend.js +683 -0
- package/lib/commonjs/backends/winrt/winrt-backend.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-boundary.js +2 -0
- package/lib/commonjs/backends/winrt/winrt-boundary.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-gatt-operations.js +244 -0
- package/lib/commonjs/backends/winrt/winrt-gatt-operations.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-handles.js +297 -0
- package/lib/commonjs/backends/winrt/winrt-handles.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-operation-dispatcher.js +159 -0
- package/lib/commonjs/backends/winrt/winrt-operation-dispatcher.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-provider.js +83 -0
- package/lib/commonjs/backends/winrt/winrt-provider.js.map +1 -0
- package/lib/commonjs/backends/winrt/winrt-subscription-runtime.js +76 -0
- package/lib/commonjs/backends/winrt/winrt-subscription-runtime.js.map +1 -0
- package/lib/commonjs/cli-json.js +199 -0
- package/lib/commonjs/cli-json.js.map +1 -0
- package/lib/commonjs/cli.js +485 -0
- package/lib/commonjs/cli.js.map +1 -0
- package/lib/commonjs/codecs-primitives.js +19 -0
- package/lib/commonjs/codecs-primitives.js.map +1 -0
- package/lib/commonjs/codecs.js +51 -0
- package/lib/commonjs/codecs.js.map +1 -0
- package/lib/commonjs/core/aggregate-stream-quota.js +58 -0
- package/lib/commonjs/core/aggregate-stream-quota.js.map +1 -0
- package/lib/commonjs/core/bounded-stream.js +390 -0
- package/lib/commonjs/core/bounded-stream.js.map +1 -0
- package/lib/commonjs/core/core-adapter-state.js +21 -0
- package/lib/commonjs/core/core-adapter-state.js.map +1 -0
- package/lib/commonjs/core/core-characteristic-operations.js +55 -0
- package/lib/commonjs/core/core-characteristic-operations.js.map +1 -0
- package/lib/commonjs/core/core-connection-controls.js +76 -0
- package/lib/commonjs/core/core-connection-controls.js.map +1 -0
- package/lib/commonjs/core/core-descriptor-operations.js +55 -0
- package/lib/commonjs/core/core-descriptor-operations.js.map +1 -0
- package/lib/commonjs/core/core-discovery.js +38 -0
- package/lib/commonjs/core/core-discovery.js.map +1 -0
- package/lib/commonjs/core/core-gatt-handles.js +198 -0
- package/lib/commonjs/core/core-gatt-handles.js.map +1 -0
- package/lib/commonjs/core/core-lifecycle-observer.js +55 -0
- package/lib/commonjs/core/core-lifecycle-observer.js.map +1 -0
- package/lib/commonjs/core/gatt-path-equality.js +29 -0
- package/lib/commonjs/core/gatt-path-equality.js.map +1 -0
- package/lib/commonjs/core/index.js +67 -0
- package/lib/commonjs/core/index.js.map +1 -0
- package/lib/commonjs/core/operation-coordinator.js +374 -0
- package/lib/commonjs/core/operation-coordinator.js.map +1 -0
- package/lib/commonjs/core/resource-ledger.js +108 -0
- package/lib/commonjs/core/resource-ledger.js.map +1 -0
- package/lib/commonjs/core/subscription-registry.js +610 -0
- package/lib/commonjs/core/subscription-registry.js.map +1 -0
- package/lib/commonjs/core/trace-recorder.js +93 -0
- package/lib/commonjs/core/trace-recorder.js.map +1 -0
- package/lib/commonjs/core/unified-ble-core-helpers.js +214 -0
- package/lib/commonjs/core/unified-ble-core-helpers.js.map +1 -0
- package/lib/commonjs/core/unified-ble-core.js +640 -0
- package/lib/commonjs/core/unified-ble-core.js.map +1 -0
- package/lib/commonjs/diagnostics/trace-format.js +203 -0
- package/lib/commonjs/diagnostics/trace-format.js.map +1 -0
- package/lib/commonjs/electron/main-binding.js +251 -0
- package/lib/commonjs/electron/main-binding.js.map +1 -0
- package/lib/commonjs/electron/main-router.js +591 -0
- package/lib/commonjs/electron/main-router.js.map +1 -0
- package/lib/commonjs/electron/main.js +28 -0
- package/lib/commonjs/electron/main.js.map +1 -0
- package/lib/commonjs/electron/protocol.js +22 -0
- package/lib/commonjs/electron/protocol.js.map +1 -0
- package/lib/commonjs/electron/renderer-stream-registry.js +260 -0
- package/lib/commonjs/electron/renderer-stream-registry.js.map +1 -0
- package/lib/commonjs/electron/renderer.js +192 -0
- package/lib/commonjs/electron/renderer.js.map +1 -0
- package/lib/commonjs/electron-main.js +74 -0
- package/lib/commonjs/electron-main.js.map +1 -0
- package/lib/commonjs/electron-renderer.js +28 -0
- package/lib/commonjs/electron-renderer.js.map +1 -0
- package/lib/commonjs/index.js +112 -0
- package/lib/commonjs/index.js.map +1 -0
- package/lib/commonjs/manager/ble-manager.js +369 -0
- package/lib/commonjs/manager/ble-manager.js.map +1 -0
- package/lib/commonjs/manager/index.js +74 -0
- package/lib/commonjs/manager/index.js.map +1 -0
- package/lib/commonjs/manager/manager-ownership-authority.js +269 -0
- package/lib/commonjs/manager/manager-ownership-authority.js.map +1 -0
- package/lib/commonjs/native-protocol/generated/native-protocol-v1-schema.js +69 -0
- package/lib/commonjs/native-protocol/generated/native-protocol-v1-schema.js.map +1 -0
- package/lib/commonjs/native-protocol/rn-android-boundary.js +539 -0
- package/lib/commonjs/native-protocol/rn-android-boundary.js.map +1 -0
- package/lib/commonjs/native-protocol/rn-android-protocol-records.js +229 -0
- package/lib/commonjs/native-protocol/rn-android-protocol-records.js.map +1 -0
- package/lib/commonjs/native-protocol/rn-apple-boundary.js +13 -0
- package/lib/commonjs/native-protocol/rn-apple-boundary.js.map +1 -0
- package/lib/commonjs/native-protocol/rn-jsi-binary-runtime.js +54 -0
- package/lib/commonjs/native-protocol/rn-jsi-binary-runtime.js.map +1 -0
- package/lib/commonjs/native-protocol/v1-codec.js +439 -0
- package/lib/commonjs/native-protocol/v1-codec.js.map +1 -0
- package/lib/commonjs/node-bluez.js +56 -0
- package/lib/commonjs/node-bluez.js.map +1 -0
- package/lib/commonjs/node-corebluetooth.js +65 -0
- package/lib/commonjs/node-corebluetooth.js.map +1 -0
- package/lib/commonjs/node-winrt.js +73 -0
- package/lib/commonjs/node-winrt.js.map +1 -0
- package/lib/commonjs/package.json +1 -0
- package/lib/commonjs/profiles/battery-service.js +47 -0
- package/lib/commonjs/profiles/battery-service.js.map +1 -0
- package/lib/commonjs/profiles/blood-pressure.js +102 -0
- package/lib/commonjs/profiles/blood-pressure.js.map +1 -0
- package/lib/commonjs/profiles/bytes.js +61 -0
- package/lib/commonjs/profiles/bytes.js.map +1 -0
- package/lib/commonjs/profiles/commands.js +64 -0
- package/lib/commonjs/profiles/commands.js.map +1 -0
- package/lib/commonjs/profiles/date-time.js +36 -0
- package/lib/commonjs/profiles/date-time.js.map +1 -0
- package/lib/commonjs/profiles/device-information.js +131 -0
- package/lib/commonjs/profiles/device-information.js.map +1 -0
- package/lib/commonjs/profiles/errors.js +25 -0
- package/lib/commonjs/profiles/errors.js.map +1 -0
- package/lib/commonjs/profiles/health-thermometer.js +84 -0
- package/lib/commonjs/profiles/health-thermometer.js.map +1 -0
- package/lib/commonjs/profiles/heart-rate.js +108 -0
- package/lib/commonjs/profiles/heart-rate.js.map +1 -0
- package/lib/commonjs/profiles/identifiers.js +42 -0
- package/lib/commonjs/profiles/identifiers.js.map +1 -0
- package/lib/commonjs/profiles/ieee-11073.js +149 -0
- package/lib/commonjs/profiles/ieee-11073.js.map +1 -0
- package/lib/commonjs/profiles/standard-commands.js +62 -0
- package/lib/commonjs/profiles/standard-commands.js.map +1 -0
- package/lib/commonjs/react-native-manager.js +77 -0
- package/lib/commonjs/react-native-manager.js.map +1 -0
- package/lib/commonjs/react-native.js +113 -0
- package/lib/commonjs/react-native.js.map +1 -0
- package/lib/commonjs/tck/contracts.js +39 -0
- package/lib/commonjs/tck/contracts.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-factory.js +182 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-factory.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-identity.js +149 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-identity.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js +172 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-manager-ownership.js +166 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-manager-ownership.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-scenario-helpers.js +173 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-scenario-helpers.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-scenarios.js +617 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-scenarios.js.map +1 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-subscription-overflow.js +102 -0
- package/lib/commonjs/tck/deterministic/deterministic-tck-subscription-overflow.js.map +1 -0
- package/lib/commonjs/tck/index.js +33 -0
- package/lib/commonjs/tck/index.js.map +1 -0
- package/lib/commonjs/tck/runner.js +432 -0
- package/lib/commonjs/tck/runner.js.map +1 -0
- package/lib/commonjs/tck/scenario-adapter.js +49 -0
- package/lib/commonjs/tck/scenario-adapter.js.map +1 -0
- package/lib/commonjs/tck/scenarios.js +114 -0
- package/lib/commonjs/tck/scenarios.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-backend-base.js +562 -0
- package/lib/commonjs/testing/deterministic/deterministic-backend-base.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-operation-admission.js +61 -0
- package/lib/commonjs/testing/deterministic/deterministic-operation-admission.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-operation-runtime.js +315 -0
- package/lib/commonjs/testing/deterministic/deterministic-operation-runtime.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-stream.js +466 -0
- package/lib/commonjs/testing/deterministic/deterministic-stream.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-subscription-lifecycle.js +62 -0
- package/lib/commonjs/testing/deterministic/deterministic-subscription-lifecycle.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-controller.js +6 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-controller.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-gatt.js +33 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-gatt.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-handles.js +278 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-handles.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js +207 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js.map +1 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend.js +576 -0
- package/lib/commonjs/testing/deterministic/deterministic-test-backend.js.map +1 -0
- package/lib/commonjs/testing/deterministic/virtual-clock.js +98 -0
- package/lib/commonjs/testing/deterministic/virtual-clock.js.map +1 -0
- package/lib/commonjs/testing/deterministic/virtual-peripheral.js +298 -0
- package/lib/commonjs/testing/deterministic/virtual-peripheral.js.map +1 -0
- package/lib/commonjs/testing/scenarios/deterministic-manager-scenario-factory.js +132 -0
- package/lib/commonjs/testing/scenarios/deterministic-manager-scenario-factory.js.map +1 -0
- package/lib/commonjs/testing/scenarios/manager-scenario-executor.js +325 -0
- package/lib/commonjs/testing/scenarios/manager-scenario-executor.js.map +1 -0
- package/lib/commonjs/testing/scenarios/manager-scenario-fixture.js +41 -0
- package/lib/commonjs/testing/scenarios/manager-scenario-fixture.js.map +1 -0
- package/lib/commonjs/testing/scenarios/manager-scenarios.js +136 -0
- package/lib/commonjs/testing/scenarios/manager-scenarios.js.map +1 -0
- package/lib/commonjs/testing.js +119 -0
- package/lib/commonjs/testing.js.map +1 -0
- package/lib/commonjs/web/navigator-web-bluetooth-boundary.js +207 -0
- package/lib/commonjs/web/navigator-web-bluetooth-boundary.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-backend.js +672 -0
- package/lib/commonjs/web/web-bluetooth-backend.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-boundary.js +6 -0
- package/lib/commonjs/web/web-bluetooth-boundary.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-errors.js +69 -0
- package/lib/commonjs/web/web-bluetooth-errors.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-gatt.js +498 -0
- package/lib/commonjs/web/web-bluetooth-gatt.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-handles.js +144 -0
- package/lib/commonjs/web/web-bluetooth-handles.js.map +1 -0
- package/lib/commonjs/web/web-bluetooth-tck.js +75 -0
- package/lib/commonjs/web/web-bluetooth-tck.js.map +1 -0
- package/lib/commonjs/web/web-feature-registry.js +57 -0
- package/lib/commonjs/web/web-feature-registry.js.map +1 -0
- package/lib/commonjs/web.js +58 -0
- package/lib/commonjs/web.js.map +1 -0
- package/lib/module/backend-contract/advertisement.js +4 -0
- package/lib/module/backend-contract/advertisement.js.map +1 -0
- package/lib/module/backend-contract/backend-sdk.js +4 -0
- package/lib/module/backend-contract/backend-sdk.js.map +1 -0
- package/lib/module/backend-contract/backend.js +131 -0
- package/lib/module/backend-contract/backend.js.map +1 -0
- package/lib/module/backend-contract/capabilities.js +119 -0
- package/lib/module/backend-contract/capabilities.js.map +1 -0
- package/lib/module/backend-contract/connection-controls.js +9 -0
- package/lib/module/backend-contract/connection-controls.js.map +1 -0
- package/lib/module/backend-contract/electron.js +319 -0
- package/lib/module/backend-contract/electron.js.map +1 -0
- package/lib/module/backend-contract/errors.js +24 -0
- package/lib/module/backend-contract/errors.js.map +1 -0
- package/lib/module/backend-contract/gatt.js +17 -0
- package/lib/module/backend-contract/gatt.js.map +1 -0
- package/lib/module/backend-contract/host/electron-main.js +6 -0
- package/lib/module/backend-contract/host/electron-main.js.map +1 -0
- package/lib/module/backend-contract/host/electron-renderer.js +4 -0
- package/lib/module/backend-contract/host/electron-renderer.js.map +1 -0
- package/lib/module/backend-contract/host/node.js +4 -0
- package/lib/module/backend-contract/host/node.js.map +1 -0
- package/lib/module/backend-contract/host/web.js +4 -0
- package/lib/module/backend-contract/host/web.js.map +1 -0
- package/lib/module/backend-contract/identity.js +9 -0
- package/lib/module/backend-contract/identity.js.map +1 -0
- package/lib/module/backend-contract/index.js +12 -0
- package/lib/module/backend-contract/index.js.map +1 -0
- package/lib/module/backend-contract/operations.js +39 -0
- package/lib/module/backend-contract/operations.js.map +1 -0
- package/lib/module/backend-contract/primitives.js +223 -0
- package/lib/module/backend-contract/primitives.js.map +1 -0
- package/lib/module/backend-contract/restoration.js +4 -0
- package/lib/module/backend-contract/restoration.js.map +1 -0
- package/lib/module/backend-contract/serializable.js +167 -0
- package/lib/module/backend-contract/serializable.js.map +1 -0
- package/lib/module/backend-contract/streams.js +4 -0
- package/lib/module/backend-contract/streams.js.map +1 -0
- package/lib/module/backend-sdk-authoring.js +98 -0
- package/lib/module/backend-sdk-authoring.js.map +1 -0
- package/lib/module/backend-sdk.js +14 -0
- package/lib/module/backend-sdk.js.map +1 -0
- package/lib/module/backends/bluez/bluez-backend-handles.js +207 -0
- package/lib/module/backends/bluez/bluez-backend-handles.js.map +1 -0
- package/lib/module/backends/bluez/bluez-backend-provider.js +102 -0
- package/lib/module/backends/bluez/bluez-backend-provider.js.map +1 -0
- package/lib/module/backends/bluez/bluez-backend-runtime.js +610 -0
- package/lib/module/backends/bluez/bluez-backend-runtime.js.map +1 -0
- package/lib/module/backends/bluez/bluez-backend.js +72 -0
- package/lib/module/backends/bluez/bluez-backend.js.map +1 -0
- package/lib/module/backends/bluez/bluez-dbus-contract.js +20 -0
- package/lib/module/backends/bluez/bluez-dbus-contract.js.map +1 -0
- package/lib/module/backends/bluez/bluez-dbus-next-boundary.js +402 -0
- package/lib/module/backends/bluez/bluez-dbus-next-boundary.js.map +1 -0
- package/lib/module/backends/bluez/bluez-gatt-operations.js +91 -0
- package/lib/module/backends/bluez/bluez-gatt-operations.js.map +1 -0
- package/lib/module/backends/bluez/bluez-object-store.js +378 -0
- package/lib/module/backends/bluez/bluez-object-store.js.map +1 -0
- package/lib/module/backends/bluez/bluez-operation-dispatcher.js +158 -0
- package/lib/module/backends/bluez/bluez-operation-dispatcher.js.map +1 -0
- package/lib/module/backends/bluez/bluez-property-waiters.js +143 -0
- package/lib/module/backends/bluez/bluez-property-waiters.js.map +1 -0
- package/lib/module/backends/bluez/bluez-runtime-models.js +225 -0
- package/lib/module/backends/bluez/bluez-runtime-models.js.map +1 -0
- package/lib/module/backends/bluez/bluez-runtime-types.js +16 -0
- package/lib/module/backends/bluez/bluez-runtime-types.js.map +1 -0
- package/lib/module/backends/bluez/bluez-scan-runtime.js +235 -0
- package/lib/module/backends/bluez/bluez-scan-runtime.js.map +1 -0
- package/lib/module/backends/bluez/bluez-subscription-runtime.js +125 -0
- package/lib/module/backends/bluez/bluez-subscription-runtime.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-backend.js +691 -0
- package/lib/module/backends/corebluetooth/corebluetooth-backend.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-boundary.js +2 -0
- package/lib/module/backends/corebluetooth/corebluetooth-boundary.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-connection-controls.js +54 -0
- package/lib/module/backends/corebluetooth/corebluetooth-connection-controls.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-gatt-operations.js +210 -0
- package/lib/module/backends/corebluetooth/corebluetooth-gatt-operations.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-handles.js +263 -0
- package/lib/module/backends/corebluetooth/corebluetooth-handles.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-identity.js +19 -0
- package/lib/module/backends/corebluetooth/corebluetooth-identity.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-operation-dispatcher.js +74 -0
- package/lib/module/backends/corebluetooth/corebluetooth-operation-dispatcher.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-operation-lifecycle.js +88 -0
- package/lib/module/backends/corebluetooth/corebluetooth-operation-lifecycle.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-provider.js +60 -0
- package/lib/module/backends/corebluetooth/corebluetooth-provider.js.map +1 -0
- package/lib/module/backends/corebluetooth/corebluetooth-stream-limits.js +16 -0
- package/lib/module/backends/corebluetooth/corebluetooth-stream-limits.js.map +1 -0
- package/lib/module/backends/reactnative/react-native-android-provider.js +148 -0
- package/lib/module/backends/reactnative/react-native-android-provider.js.map +1 -0
- package/lib/module/backends/reactnative/react-native-apple-provider.js +145 -0
- package/lib/module/backends/reactnative/react-native-apple-provider.js.map +1 -0
- package/lib/module/backends/winrt/winrt-adapter-state.js +43 -0
- package/lib/module/backends/winrt/winrt-adapter-state.js.map +1 -0
- package/lib/module/backends/winrt/winrt-backend-helpers.js +76 -0
- package/lib/module/backends/winrt/winrt-backend-helpers.js.map +1 -0
- package/lib/module/backends/winrt/winrt-backend.js +678 -0
- package/lib/module/backends/winrt/winrt-backend.js.map +1 -0
- package/lib/module/backends/winrt/winrt-boundary.js +2 -0
- package/lib/module/backends/winrt/winrt-boundary.js.map +1 -0
- package/lib/module/backends/winrt/winrt-gatt-operations.js +239 -0
- package/lib/module/backends/winrt/winrt-gatt-operations.js.map +1 -0
- package/lib/module/backends/winrt/winrt-handles.js +282 -0
- package/lib/module/backends/winrt/winrt-handles.js.map +1 -0
- package/lib/module/backends/winrt/winrt-operation-dispatcher.js +154 -0
- package/lib/module/backends/winrt/winrt-operation-dispatcher.js.map +1 -0
- package/lib/module/backends/winrt/winrt-provider.js +75 -0
- package/lib/module/backends/winrt/winrt-provider.js.map +1 -0
- package/lib/module/backends/winrt/winrt-subscription-runtime.js +68 -0
- package/lib/module/backends/winrt/winrt-subscription-runtime.js.map +1 -0
- package/lib/module/cli-json.js +193 -0
- package/lib/module/cli-json.js.map +1 -0
- package/lib/module/cli.js +468 -0
- package/lib/module/cli.js.map +1 -0
- package/lib/module/codecs-primitives.js +14 -0
- package/lib/module/codecs-primitives.js.map +1 -0
- package/lib/module/codecs.js +9 -0
- package/lib/module/codecs.js.map +1 -0
- package/lib/module/core/aggregate-stream-quota.js +53 -0
- package/lib/module/core/aggregate-stream-quota.js.map +1 -0
- package/lib/module/core/bounded-stream.js +385 -0
- package/lib/module/core/bounded-stream.js.map +1 -0
- package/lib/module/core/core-adapter-state.js +17 -0
- package/lib/module/core/core-adapter-state.js.map +1 -0
- package/lib/module/core/core-characteristic-operations.js +50 -0
- package/lib/module/core/core-characteristic-operations.js.map +1 -0
- package/lib/module/core/core-connection-controls.js +70 -0
- package/lib/module/core/core-connection-controls.js.map +1 -0
- package/lib/module/core/core-descriptor-operations.js +50 -0
- package/lib/module/core/core-descriptor-operations.js.map +1 -0
- package/lib/module/core/core-discovery.js +34 -0
- package/lib/module/core/core-discovery.js.map +1 -0
- package/lib/module/core/core-gatt-handles.js +192 -0
- package/lib/module/core/core-gatt-handles.js.map +1 -0
- package/lib/module/core/core-lifecycle-observer.js +50 -0
- package/lib/module/core/core-lifecycle-observer.js.map +1 -0
- package/lib/module/core/gatt-path-equality.js +21 -0
- package/lib/module/core/gatt-path-equality.js.map +1 -0
- package/lib/module/core/index.js +12 -0
- package/lib/module/core/index.js.map +1 -0
- package/lib/module/core/operation-coordinator.js +369 -0
- package/lib/module/core/operation-coordinator.js.map +1 -0
- package/lib/module/core/resource-ledger.js +103 -0
- package/lib/module/core/resource-ledger.js.map +1 -0
- package/lib/module/core/subscription-registry.js +604 -0
- package/lib/module/core/subscription-registry.js.map +1 -0
- package/lib/module/core/trace-recorder.js +88 -0
- package/lib/module/core/trace-recorder.js.map +1 -0
- package/lib/module/core/unified-ble-core-helpers.js +198 -0
- package/lib/module/core/unified-ble-core-helpers.js.map +1 -0
- package/lib/module/core/unified-ble-core.js +629 -0
- package/lib/module/core/unified-ble-core.js.map +1 -0
- package/lib/module/diagnostics/trace-format.js +197 -0
- package/lib/module/diagnostics/trace-format.js.map +1 -0
- package/lib/module/electron/main-binding.js +246 -0
- package/lib/module/electron/main-binding.js.map +1 -0
- package/lib/module/electron/main-router.js +585 -0
- package/lib/module/electron/main-router.js.map +1 -0
- package/lib/module/electron/main.js +7 -0
- package/lib/module/electron/main.js.map +1 -0
- package/lib/module/electron/protocol.js +18 -0
- package/lib/module/electron/protocol.js.map +1 -0
- package/lib/module/electron/renderer-stream-registry.js +255 -0
- package/lib/module/electron/renderer-stream-registry.js.map +1 -0
- package/lib/module/electron/renderer.js +187 -0
- package/lib/module/electron/renderer.js.map +1 -0
- package/lib/module/electron-main.js +35 -0
- package/lib/module/electron-main.js.map +1 -0
- package/lib/module/electron-renderer.js +7 -0
- package/lib/module/electron-renderer.js.map +1 -0
- package/lib/module/index.js +16 -0
- package/lib/module/index.js.map +1 -0
- package/lib/module/manager/ble-manager.js +355 -0
- package/lib/module/manager/ble-manager.js.map +1 -0
- package/lib/module/manager/index.js +7 -0
- package/lib/module/manager/index.js.map +1 -0
- package/lib/module/manager/manager-ownership-authority.js +261 -0
- package/lib/module/manager/manager-ownership-authority.js.map +1 -0
- package/lib/module/native-protocol/generated/native-protocol-v1-schema.js +65 -0
- package/lib/module/native-protocol/generated/native-protocol-v1-schema.js.map +1 -0
- package/lib/module/native-protocol/rn-android-boundary.js +534 -0
- package/lib/module/native-protocol/rn-android-boundary.js.map +1 -0
- package/lib/module/native-protocol/rn-android-protocol-records.js +206 -0
- package/lib/module/native-protocol/rn-android-protocol-records.js.map +1 -0
- package/lib/module/native-protocol/rn-apple-boundary.js +11 -0
- package/lib/module/native-protocol/rn-apple-boundary.js.map +1 -0
- package/lib/module/native-protocol/rn-jsi-binary-runtime.js +45 -0
- package/lib/module/native-protocol/rn-jsi-binary-runtime.js.map +1 -0
- package/lib/module/native-protocol/v1-codec.js +434 -0
- package/lib/module/native-protocol/v1-codec.js.map +1 -0
- package/lib/module/node-bluez.js +18 -0
- package/lib/module/node-bluez.js.map +1 -0
- package/lib/module/node-corebluetooth.js +31 -0
- package/lib/module/node-corebluetooth.js.map +1 -0
- package/lib/module/node-winrt.js +39 -0
- package/lib/module/node-winrt.js.map +1 -0
- package/lib/module/package.json +1 -0
- package/lib/module/profiles/battery-service.js +30 -0
- package/lib/module/profiles/battery-service.js.map +1 -0
- package/lib/module/profiles/blood-pressure.js +73 -0
- package/lib/module/profiles/blood-pressure.js.map +1 -0
- package/lib/module/profiles/bytes.js +49 -0
- package/lib/module/profiles/bytes.js.map +1 -0
- package/lib/module/profiles/commands.js +56 -0
- package/lib/module/profiles/commands.js.map +1 -0
- package/lib/module/profiles/date-time.js +32 -0
- package/lib/module/profiles/date-time.js.map +1 -0
- package/lib/module/profiles/device-information.js +69 -0
- package/lib/module/profiles/device-information.js.map +1 -0
- package/lib/module/profiles/errors.js +19 -0
- package/lib/module/profiles/errors.js.map +1 -0
- package/lib/module/profiles/health-thermometer.js +61 -0
- package/lib/module/profiles/health-thermometer.js.map +1 -0
- package/lib/module/profiles/heart-rate.js +76 -0
- package/lib/module/profiles/heart-rate.js.map +1 -0
- package/lib/module/profiles/identifiers.js +37 -0
- package/lib/module/profiles/identifiers.js.map +1 -0
- package/lib/module/profiles/ieee-11073.js +142 -0
- package/lib/module/profiles/ieee-11073.js.map +1 -0
- package/lib/module/profiles/standard-commands.js +47 -0
- package/lib/module/profiles/standard-commands.js.map +1 -0
- package/lib/module/react-native-manager.js +74 -0
- package/lib/module/react-native-manager.js.map +1 -0
- package/lib/module/react-native.js +18 -0
- package/lib/module/react-native.js.map +1 -0
- package/lib/module/tck/contracts.js +34 -0
- package/lib/module/tck/contracts.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-factory.js +178 -0
- package/lib/module/tck/deterministic/deterministic-tck-factory.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-identity.js +141 -0
- package/lib/module/tck/deterministic/deterministic-tck-identity.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js +168 -0
- package/lib/module/tck/deterministic/deterministic-tck-lifecycle-diagnostics.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-manager-ownership.js +162 -0
- package/lib/module/tck/deterministic/deterministic-tck-manager-ownership.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-scenario-helpers.js +152 -0
- package/lib/module/tck/deterministic/deterministic-tck-scenario-helpers.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-scenarios.js +611 -0
- package/lib/module/tck/deterministic/deterministic-tck-scenarios.js.map +1 -0
- package/lib/module/tck/deterministic/deterministic-tck-subscription-overflow.js +99 -0
- package/lib/module/tck/deterministic/deterministic-tck-subscription-overflow.js.map +1 -0
- package/lib/module/tck/index.js +8 -0
- package/lib/module/tck/index.js.map +1 -0
- package/lib/module/tck/runner.js +429 -0
- package/lib/module/tck/runner.js.map +1 -0
- package/lib/module/tck/scenario-adapter.js +42 -0
- package/lib/module/tck/scenario-adapter.js.map +1 -0
- package/lib/module/tck/scenarios.js +109 -0
- package/lib/module/tck/scenarios.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-backend-base.js +557 -0
- package/lib/module/testing/deterministic/deterministic-backend-base.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-operation-admission.js +56 -0
- package/lib/module/testing/deterministic/deterministic-operation-admission.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-operation-runtime.js +309 -0
- package/lib/module/testing/deterministic/deterministic-operation-runtime.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-stream.js +460 -0
- package/lib/module/testing/deterministic/deterministic-stream.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-subscription-lifecycle.js +57 -0
- package/lib/module/testing/deterministic/deterministic-subscription-lifecycle.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-controller.js +4 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-controller.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-gatt.js +29 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-gatt.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-handles.js +261 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-handles.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js +191 -0
- package/lib/module/testing/deterministic/deterministic-test-backend-lifecycle-helpers.js.map +1 -0
- package/lib/module/testing/deterministic/deterministic-test-backend.js +570 -0
- package/lib/module/testing/deterministic/deterministic-test-backend.js.map +1 -0
- package/lib/module/testing/deterministic/virtual-clock.js +93 -0
- package/lib/module/testing/deterministic/virtual-clock.js.map +1 -0
- package/lib/module/testing/deterministic/virtual-peripheral.js +291 -0
- package/lib/module/testing/deterministic/virtual-peripheral.js.map +1 -0
- package/lib/module/testing/scenarios/deterministic-manager-scenario-factory.js +128 -0
- package/lib/module/testing/scenarios/deterministic-manager-scenario-factory.js.map +1 -0
- package/lib/module/testing/scenarios/manager-scenario-executor.js +319 -0
- package/lib/module/testing/scenarios/manager-scenario-executor.js.map +1 -0
- package/lib/module/testing/scenarios/manager-scenario-fixture.js +37 -0
- package/lib/module/testing/scenarios/manager-scenario-fixture.js.map +1 -0
- package/lib/module/testing/scenarios/manager-scenarios.js +130 -0
- package/lib/module/testing/scenarios/manager-scenarios.js.map +1 -0
- package/lib/module/testing.js +20 -0
- package/lib/module/testing.js.map +1 -0
- package/lib/module/web/navigator-web-bluetooth-boundary.js +202 -0
- package/lib/module/web/navigator-web-bluetooth-boundary.js.map +1 -0
- package/lib/module/web/web-bluetooth-backend.js +665 -0
- package/lib/module/web/web-bluetooth-backend.js.map +1 -0
- package/lib/module/web/web-bluetooth-boundary.js +4 -0
- package/lib/module/web/web-bluetooth-boundary.js.map +1 -0
- package/lib/module/web/web-bluetooth-errors.js +62 -0
- package/lib/module/web/web-bluetooth-errors.js.map +1 -0
- package/lib/module/web/web-bluetooth-gatt.js +494 -0
- package/lib/module/web/web-bluetooth-gatt.js.map +1 -0
- package/lib/module/web/web-bluetooth-handles.js +133 -0
- package/lib/module/web/web-bluetooth-handles.js.map +1 -0
- package/lib/module/web/web-bluetooth-tck.js +70 -0
- package/lib/module/web/web-bluetooth-tck.js.map +1 -0
- package/lib/module/web/web-feature-registry.js +53 -0
- package/lib/module/web/web-feature-registry.js.map +1 -0
- package/lib/module/web.js +14 -0
- package/lib/module/web.js.map +1 -0
- package/lib/typescript/commonjs/package.json +1 -0
- package/lib/typescript/commonjs/src/BleError.d.ts +448 -0
- package/lib/typescript/commonjs/src/BleError.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/BleManager.d.ts +844 -0
- package/lib/typescript/commonjs/src/BleManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/BleModule.d.ts +723 -0
- package/lib/typescript/commonjs/src/BleModule.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Characteristic.d.ts +154 -0
- package/lib/typescript/commonjs/src/Characteristic.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/ConnectionManager.d.ts +209 -0
- package/lib/typescript/commonjs/src/ConnectionManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Descriptor.d.ts +79 -0
- package/lib/typescript/commonjs/src/Descriptor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Device.d.ts +249 -0
- package/lib/typescript/commonjs/src/Device.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/DeviceOperationQueue.d.ts +81 -0
- package/lib/typescript/commonjs/src/DeviceOperationQueue.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeBlePlx.d.ts +147 -0
- package/lib/typescript/commonjs/src/NativeBlePlx.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/NativeUnifiedBleProtocolControl.d.ts +71 -0
- package/lib/typescript/commonjs/src/NativeUnifiedBleProtocolControl.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Service.d.ts +134 -0
- package/lib/typescript/commonjs/src/Service.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/TypeDefinition.d.ts +339 -0
- package/lib/typescript/commonjs/src/TypeDefinition.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/Utils.d.ts +17 -0
- package/lib/typescript/commonjs/src/Utils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/advertisement.d.ts +75 -0
- package/lib/typescript/commonjs/src/backend-contract/advertisement.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/backend-sdk.d.ts +25 -0
- package/lib/typescript/commonjs/src/backend-contract/backend-sdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/backend.d.ts +139 -0
- package/lib/typescript/commonjs/src/backend-contract/backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/capabilities.d.ts +41 -0
- package/lib/typescript/commonjs/src/backend-contract/capabilities.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/connection-controls.d.ts +22 -0
- package/lib/typescript/commonjs/src/backend-contract/connection-controls.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/electron.d.ts +100 -0
- package/lib/typescript/commonjs/src/backend-contract/electron.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/errors.d.ts +30 -0
- package/lib/typescript/commonjs/src/backend-contract/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/gatt.d.ts +70 -0
- package/lib/typescript/commonjs/src/backend-contract/gatt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/host/electron-main.d.ts +8 -0
- package/lib/typescript/commonjs/src/backend-contract/host/electron-main.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/host/electron-renderer.d.ts +5 -0
- package/lib/typescript/commonjs/src/backend-contract/host/electron-renderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/host/node.d.ts +5 -0
- package/lib/typescript/commonjs/src/backend-contract/host/node.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/host/web.d.ts +20 -0
- package/lib/typescript/commonjs/src/backend-contract/host/web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/identity.d.ts +64 -0
- package/lib/typescript/commonjs/src/backend-contract/identity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/index.d.ts +18 -0
- package/lib/typescript/commonjs/src/backend-contract/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/operations.d.ts +64 -0
- package/lib/typescript/commonjs/src/backend-contract/operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/primitives.d.ts +142 -0
- package/lib/typescript/commonjs/src/backend-contract/primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/restoration.d.ts +47 -0
- package/lib/typescript/commonjs/src/backend-contract/restoration.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/serializable.d.ts +11 -0
- package/lib/typescript/commonjs/src/backend-contract/serializable.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-contract/streams.d.ts +33 -0
- package/lib/typescript/commonjs/src/backend-contract/streams.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-sdk-authoring.d.ts +52 -0
- package/lib/typescript/commonjs/src/backend-sdk-authoring.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backend-sdk.d.ts +14 -0
- package/lib/typescript/commonjs/src/backend-sdk.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-handles.d.ts +74 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-provider.d.ts +14 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-runtime.d.ts +100 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend.d.ts +30 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-contract.d.ts +92 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-contract.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-next-boundary.d.ts +6 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-dbus-next-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-gatt-operations.d.ts +12 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-object-store.d.ts +45 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-object-store.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-operation-dispatcher.d.ts +13 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-property-waiters.d.ts +11 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-property-waiters.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-models.d.ts +22 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-models.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-types.d.ts +100 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-runtime-types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-scan-runtime.d.ts +11 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-scan-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-subscription-runtime.d.ts +11 -0
- package/lib/typescript/commonjs/src/backends/bluez/bluez-subscription-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-backend.d.ts +121 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-boundary.d.ts +61 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts +13 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts +27 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-handles.d.ts +91 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-identity.d.ts +13 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-identity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts +15 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts +10 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-provider.d.ts +15 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts +11 -0
- package/lib/typescript/commonjs/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/reactnative/react-native-android-provider.d.ts +23 -0
- package/lib/typescript/commonjs/src/backends/reactnative/react-native-android-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/reactnative/react-native-apple-provider.d.ts +20 -0
- package/lib/typescript/commonjs/src/backends/reactnative/react-native-apple-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-adapter-state.d.ts +6 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-adapter-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-backend-helpers.d.ts +24 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-backend-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-backend.d.ts +114 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-boundary.d.ts +96 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-gatt-operations.d.ts +36 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-handles.d.ts +84 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-operation-dispatcher.d.ts +26 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-provider.d.ts +17 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-provider.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-subscription-runtime.d.ts +14 -0
- package/lib/typescript/commonjs/src/backends/winrt/winrt-subscription-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/cli-json.d.ts +8 -0
- package/lib/typescript/commonjs/src/cli-json.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/cli.d.ts +31 -0
- package/lib/typescript/commonjs/src/cli.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/codecs-primitives.d.ts +5 -0
- package/lib/typescript/commonjs/src/codecs-primitives.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/codecs.d.ts +7 -0
- package/lib/typescript/commonjs/src/codecs.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/aggregate-stream-quota.d.ts +17 -0
- package/lib/typescript/commonjs/src/core/aggregate-stream-quota.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/bounded-stream.d.ts +69 -0
- package/lib/typescript/commonjs/src/core/bounded-stream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-adapter-state.d.ts +5 -0
- package/lib/typescript/commonjs/src/core/core-adapter-state.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-characteristic-operations.d.ts +12 -0
- package/lib/typescript/commonjs/src/core/core-characteristic-operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-connection-controls.d.ts +14 -0
- package/lib/typescript/commonjs/src/core/core-connection-controls.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-descriptor-operations.d.ts +12 -0
- package/lib/typescript/commonjs/src/core/core-descriptor-operations.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-discovery.d.ts +9 -0
- package/lib/typescript/commonjs/src/core/core-discovery.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-gatt-handles.d.ts +67 -0
- package/lib/typescript/commonjs/src/core/core-gatt-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/core-lifecycle-observer.d.ts +14 -0
- package/lib/typescript/commonjs/src/core/core-lifecycle-observer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/gatt-path-equality.d.ts +7 -0
- package/lib/typescript/commonjs/src/core/gatt-path-equality.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/index.d.ts +11 -0
- package/lib/typescript/commonjs/src/core/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/operation-coordinator.d.ts +87 -0
- package/lib/typescript/commonjs/src/core/operation-coordinator.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/resource-ledger.d.ts +26 -0
- package/lib/typescript/commonjs/src/core/resource-ledger.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/subscription-registry.d.ts +77 -0
- package/lib/typescript/commonjs/src/core/subscription-registry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/trace-recorder.d.ts +39 -0
- package/lib/typescript/commonjs/src/core/trace-recorder.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/unified-ble-core-helpers.d.ts +32 -0
- package/lib/typescript/commonjs/src/core/unified-ble-core-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/core/unified-ble-core.d.ts +101 -0
- package/lib/typescript/commonjs/src/core/unified-ble-core.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/diagnostics/trace-format.d.ts +39 -0
- package/lib/typescript/commonjs/src/diagnostics/trace-format.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/discovery/deviceSort.d.ts +23 -0
- package/lib/typescript/commonjs/src/discovery/deviceSort.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/discovery/filters.d.ts +97 -0
- package/lib/typescript/commonjs/src/discovery/filters.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/discovery/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/discovery/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/discovery/uuidMatch.d.ts +29 -0
- package/lib/typescript/commonjs/src/discovery/uuidMatch.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/main-binding.d.ts +48 -0
- package/lib/typescript/commonjs/src/electron/main-binding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/main-router.d.ts +69 -0
- package/lib/typescript/commonjs/src/electron/main-router.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/main.d.ts +3 -0
- package/lib/typescript/commonjs/src/electron/main.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/protocol.d.ts +73 -0
- package/lib/typescript/commonjs/src/electron/protocol.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/renderer-stream-registry.d.ts +46 -0
- package/lib/typescript/commonjs/src/electron/renderer-stream-registry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron/renderer.d.ts +29 -0
- package/lib/typescript/commonjs/src/electron/renderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron-main.d.ts +14 -0
- package/lib/typescript/commonjs/src/electron-main.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/electron-renderer.d.ts +3 -0
- package/lib/typescript/commonjs/src/electron-renderer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/encoding.d.ts +13 -0
- package/lib/typescript/commonjs/src/encoding.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/central.d.ts +66 -0
- package/lib/typescript/commonjs/src/helpers/central.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/errors.d.ts +12 -0
- package/lib/typescript/commonjs/src/helpers/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts +9 -0
- package/lib/typescript/commonjs/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/helpers/types.d.ts +122 -0
- package/lib/typescript/commonjs/src/helpers/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/electron.d.ts +78 -0
- package/lib/typescript/commonjs/src/hosts/electron.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/native/bluez/BluezBlePort.d.ts +79 -0
- package/lib/typescript/commonjs/src/hosts/native/bluez/BluezBlePort.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts +20 -0
- package/lib/typescript/commonjs/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/native/winrt/WinRtBlePort.d.ts +18 -0
- package/lib/typescript/commonjs/src/hosts/native/winrt/WinRtBlePort.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/node.d.ts +20 -0
- package/lib/typescript/commonjs/src/hosts/node.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/hosts/web.d.ts +258 -0
- package/lib/typescript/commonjs/src/hosts/web.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/index.d.ts +23 -0
- package/lib/typescript/commonjs/src/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/longWrite.d.ts +25 -0
- package/lib/typescript/commonjs/src/longWrite.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/manager/ble-manager.d.ts +121 -0
- package/lib/typescript/commonjs/src/manager/ble-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/manager/index.d.ts +5 -0
- package/lib/typescript/commonjs/src/manager/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/manager/manager-ownership-authority.d.ts +64 -0
- package/lib/typescript/commonjs/src/manager/manager-ownership-authority.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/generated/native-protocol-v1-schema.d.ts +41 -0
- package/lib/typescript/commonjs/src/native-protocol/generated/native-protocol-v1-schema.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-android-boundary.d.ts +66 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-android-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-android-protocol-records.d.ts +31 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-android-protocol-records.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-apple-boundary.d.ts +7 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-apple-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-jsi-binary-runtime.d.ts +33 -0
- package/lib/typescript/commonjs/src/native-protocol/rn-jsi-binary-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/native-protocol/v1-codec.d.ts +15 -0
- package/lib/typescript/commonjs/src/native-protocol/v1-codec.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/node-bluez.d.ts +13 -0
- package/lib/typescript/commonjs/src/node-bluez.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/node-corebluetooth.d.ts +13 -0
- package/lib/typescript/commonjs/src/node-corebluetooth.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/node-winrt.d.ts +13 -0
- package/lib/typescript/commonjs/src/node-winrt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/permissions.d.ts +43 -0
- package/lib/typescript/commonjs/src/permissions.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/port/BlePort.d.ts +161 -0
- package/lib/typescript/commonjs/src/port/BlePort.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/port/PortBleManager.d.ts +156 -0
- package/lib/typescript/commonjs/src/port/PortBleManager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/battery-service.d.ts +8 -0
- package/lib/typescript/commonjs/src/profiles/battery-service.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/battery.d.ts +34 -0
- package/lib/typescript/commonjs/src/profiles/battery.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/blood-pressure.d.ts +21 -0
- package/lib/typescript/commonjs/src/profiles/blood-pressure.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/bloodPressure.d.ts +74 -0
- package/lib/typescript/commonjs/src/profiles/bloodPressure.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/bytes.d.ts +10 -0
- package/lib/typescript/commonjs/src/profiles/bytes.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/commands.d.ts +30 -0
- package/lib/typescript/commonjs/src/profiles/commands.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/date-time.d.ts +10 -0
- package/lib/typescript/commonjs/src/profiles/date-time.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/device-information.d.ts +24 -0
- package/lib/typescript/commonjs/src/profiles/device-information.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/deviceInformation.d.ts +109 -0
- package/lib/typescript/commonjs/src/profiles/deviceInformation.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/errors.d.ts +11 -0
- package/lib/typescript/commonjs/src/profiles/errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/health-thermometer.d.ts +17 -0
- package/lib/typescript/commonjs/src/profiles/health-thermometer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/healthThermometer.d.ts +73 -0
- package/lib/typescript/commonjs/src/profiles/healthThermometer.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/heart-rate.d.ts +20 -0
- package/lib/typescript/commonjs/src/profiles/heart-rate.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/heartRate.d.ts +129 -0
- package/lib/typescript/commonjs/src/profiles/heartRate.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/identifiers.d.ts +26 -0
- package/lib/typescript/commonjs/src/profiles/identifiers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/ieee-11073.d.ts +15 -0
- package/lib/typescript/commonjs/src/profiles/ieee-11073.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/ieee11073.d.ts +80 -0
- package/lib/typescript/commonjs/src/profiles/ieee11073.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/index.d.ts +21 -0
- package/lib/typescript/commonjs/src/profiles/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/serviceHelpers.d.ts +48 -0
- package/lib/typescript/commonjs/src/profiles/serviceHelpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/standard-commands.d.ts +21 -0
- package/lib/typescript/commonjs/src/profiles/standard-commands.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/profiles/types.d.ts +32 -0
- package/lib/typescript/commonjs/src/profiles/types.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/react-native-manager.d.ts +19 -0
- package/lib/typescript/commonjs/src/react-native-manager.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/react-native.d.ts +15 -0
- package/lib/typescript/commonjs/src/react-native.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/stringUtils.d.ts +8 -0
- package/lib/typescript/commonjs/src/stringUtils.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/supports.d.ts +13 -0
- package/lib/typescript/commonjs/src/supports.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/contracts.d.ts +132 -0
- package/lib/typescript/commonjs/src/tck/contracts.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-factory.d.ts +9 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-factory.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-identity.d.ts +9 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-identity.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts +8 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts +4 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts +56 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenarios.d.ts +14 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-scenarios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts +5 -0
- package/lib/typescript/commonjs/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/index.d.ts +6 -0
- package/lib/typescript/commonjs/src/tck/index.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/runner.d.ts +10 -0
- package/lib/typescript/commonjs/src/tck/runner.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/scenario-adapter.d.ts +19 -0
- package/lib/typescript/commonjs/src/tck/scenario-adapter.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/tck/scenarios.d.ts +4 -0
- package/lib/typescript/commonjs/src/tck/scenarios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-backend-base.d.ts +118 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-backend-base.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-admission.d.ts +5 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-admission.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-runtime.d.ts +52 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-operation-runtime.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-stream.d.ts +65 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-stream.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts +22 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-controller.d.ts +25 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-controller.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-gatt.d.ts +15 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-gatt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-handles.d.ts +109 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts +48 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend.d.ts +71 -0
- package/lib/typescript/commonjs/src/testing/deterministic/deterministic-test-backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/virtual-clock.d.ts +22 -0
- package/lib/typescript/commonjs/src/testing/deterministic/virtual-clock.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/deterministic/virtual-peripheral.d.ts +76 -0
- package/lib/typescript/commonjs/src/testing/deterministic/virtual-peripheral.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts +4 -0
- package/lib/typescript/commonjs/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-executor.d.ts +33 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-executor.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-fixture.d.ts +19 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenario-fixture.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenarios.d.ts +60 -0
- package/lib/typescript/commonjs/src/testing/scenarios/manager-scenarios.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/testing.d.ts +22 -0
- package/lib/typescript/commonjs/src/testing.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/unsupported.d.ts +12 -0
- package/lib/typescript/commonjs/src/unsupported.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/navigator-web-bluetooth-boundary.d.ts +95 -0
- package/lib/typescript/commonjs/src/web/navigator-web-bluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-backend.d.ts +99 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-backend.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-boundary.d.ts +78 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-errors.d.ts +13 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-errors.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-gatt.d.ts +62 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-gatt.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-handles.d.ts +124 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-handles.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-tck.d.ts +33 -0
- package/lib/typescript/commonjs/src/web/web-bluetooth-tck.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web/web-feature-registry.d.ts +3 -0
- package/lib/typescript/commonjs/src/web/web-feature-registry.d.ts.map +1 -0
- package/lib/typescript/commonjs/src/web.d.ts +10 -0
- package/lib/typescript/commonjs/src/web.d.ts.map +1 -0
- package/lib/typescript/module/package.json +1 -0
- package/lib/typescript/module/src/BleError.d.ts +448 -0
- package/lib/typescript/module/src/BleError.d.ts.map +1 -0
- package/lib/typescript/module/src/BleManager.d.ts +844 -0
- package/lib/typescript/module/src/BleManager.d.ts.map +1 -0
- package/lib/typescript/module/src/BleModule.d.ts +723 -0
- package/lib/typescript/module/src/BleModule.d.ts.map +1 -0
- package/lib/typescript/module/src/Characteristic.d.ts +154 -0
- package/lib/typescript/module/src/Characteristic.d.ts.map +1 -0
- package/lib/typescript/module/src/ConnectionManager.d.ts +209 -0
- package/lib/typescript/module/src/ConnectionManager.d.ts.map +1 -0
- package/lib/typescript/module/src/Descriptor.d.ts +79 -0
- package/lib/typescript/module/src/Descriptor.d.ts.map +1 -0
- package/lib/typescript/module/src/Device.d.ts +249 -0
- package/lib/typescript/module/src/Device.d.ts.map +1 -0
- package/lib/typescript/module/src/DeviceOperationQueue.d.ts +81 -0
- package/lib/typescript/module/src/DeviceOperationQueue.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeBlePlx.d.ts +147 -0
- package/lib/typescript/module/src/NativeBlePlx.d.ts.map +1 -0
- package/lib/typescript/module/src/NativeUnifiedBleProtocolControl.d.ts +71 -0
- package/lib/typescript/module/src/NativeUnifiedBleProtocolControl.d.ts.map +1 -0
- package/lib/typescript/module/src/Service.d.ts +134 -0
- package/lib/typescript/module/src/Service.d.ts.map +1 -0
- package/lib/typescript/module/src/TypeDefinition.d.ts +339 -0
- package/lib/typescript/module/src/TypeDefinition.d.ts.map +1 -0
- package/lib/typescript/module/src/Utils.d.ts +17 -0
- package/lib/typescript/module/src/Utils.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/advertisement.d.ts +75 -0
- package/lib/typescript/module/src/backend-contract/advertisement.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/backend-sdk.d.ts +25 -0
- package/lib/typescript/module/src/backend-contract/backend-sdk.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/backend.d.ts +139 -0
- package/lib/typescript/module/src/backend-contract/backend.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/capabilities.d.ts +41 -0
- package/lib/typescript/module/src/backend-contract/capabilities.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/connection-controls.d.ts +22 -0
- package/lib/typescript/module/src/backend-contract/connection-controls.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/electron.d.ts +100 -0
- package/lib/typescript/module/src/backend-contract/electron.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/errors.d.ts +30 -0
- package/lib/typescript/module/src/backend-contract/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/gatt.d.ts +70 -0
- package/lib/typescript/module/src/backend-contract/gatt.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/host/electron-main.d.ts +8 -0
- package/lib/typescript/module/src/backend-contract/host/electron-main.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/host/electron-renderer.d.ts +5 -0
- package/lib/typescript/module/src/backend-contract/host/electron-renderer.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/host/node.d.ts +5 -0
- package/lib/typescript/module/src/backend-contract/host/node.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/host/web.d.ts +20 -0
- package/lib/typescript/module/src/backend-contract/host/web.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/identity.d.ts +64 -0
- package/lib/typescript/module/src/backend-contract/identity.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/index.d.ts +18 -0
- package/lib/typescript/module/src/backend-contract/index.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/operations.d.ts +64 -0
- package/lib/typescript/module/src/backend-contract/operations.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/primitives.d.ts +142 -0
- package/lib/typescript/module/src/backend-contract/primitives.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/restoration.d.ts +47 -0
- package/lib/typescript/module/src/backend-contract/restoration.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/serializable.d.ts +11 -0
- package/lib/typescript/module/src/backend-contract/serializable.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-contract/streams.d.ts +33 -0
- package/lib/typescript/module/src/backend-contract/streams.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-sdk-authoring.d.ts +52 -0
- package/lib/typescript/module/src/backend-sdk-authoring.d.ts.map +1 -0
- package/lib/typescript/module/src/backend-sdk.d.ts +14 -0
- package/lib/typescript/module/src/backend-sdk.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-handles.d.ts +74 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-provider.d.ts +14 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-runtime.d.ts +100 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend.d.ts +30 -0
- package/lib/typescript/module/src/backends/bluez/bluez-backend.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-dbus-contract.d.ts +92 -0
- package/lib/typescript/module/src/backends/bluez/bluez-dbus-contract.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-dbus-next-boundary.d.ts +6 -0
- package/lib/typescript/module/src/backends/bluez/bluez-dbus-next-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-gatt-operations.d.ts +12 -0
- package/lib/typescript/module/src/backends/bluez/bluez-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-object-store.d.ts +45 -0
- package/lib/typescript/module/src/backends/bluez/bluez-object-store.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-operation-dispatcher.d.ts +13 -0
- package/lib/typescript/module/src/backends/bluez/bluez-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-property-waiters.d.ts +11 -0
- package/lib/typescript/module/src/backends/bluez/bluez-property-waiters.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-runtime-models.d.ts +22 -0
- package/lib/typescript/module/src/backends/bluez/bluez-runtime-models.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-runtime-types.d.ts +100 -0
- package/lib/typescript/module/src/backends/bluez/bluez-runtime-types.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-scan-runtime.d.ts +11 -0
- package/lib/typescript/module/src/backends/bluez/bluez-scan-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/bluez/bluez-subscription-runtime.d.ts +11 -0
- package/lib/typescript/module/src/backends/bluez/bluez-subscription-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-backend.d.ts +121 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-backend.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-boundary.d.ts +61 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts +13 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-connection-controls.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts +27 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-handles.d.ts +91 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-identity.d.ts +13 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-identity.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts +15 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts +10 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-operation-lifecycle.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-provider.d.ts +15 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts +11 -0
- package/lib/typescript/module/src/backends/corebluetooth/corebluetooth-stream-limits.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/reactnative/react-native-android-provider.d.ts +23 -0
- package/lib/typescript/module/src/backends/reactnative/react-native-android-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/reactnative/react-native-apple-provider.d.ts +20 -0
- package/lib/typescript/module/src/backends/reactnative/react-native-apple-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-adapter-state.d.ts +6 -0
- package/lib/typescript/module/src/backends/winrt/winrt-adapter-state.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-backend-helpers.d.ts +24 -0
- package/lib/typescript/module/src/backends/winrt/winrt-backend-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-backend.d.ts +114 -0
- package/lib/typescript/module/src/backends/winrt/winrt-backend.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-boundary.d.ts +96 -0
- package/lib/typescript/module/src/backends/winrt/winrt-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-gatt-operations.d.ts +36 -0
- package/lib/typescript/module/src/backends/winrt/winrt-gatt-operations.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-handles.d.ts +84 -0
- package/lib/typescript/module/src/backends/winrt/winrt-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-operation-dispatcher.d.ts +26 -0
- package/lib/typescript/module/src/backends/winrt/winrt-operation-dispatcher.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-provider.d.ts +17 -0
- package/lib/typescript/module/src/backends/winrt/winrt-provider.d.ts.map +1 -0
- package/lib/typescript/module/src/backends/winrt/winrt-subscription-runtime.d.ts +14 -0
- package/lib/typescript/module/src/backends/winrt/winrt-subscription-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/cli-json.d.ts +8 -0
- package/lib/typescript/module/src/cli-json.d.ts.map +1 -0
- package/lib/typescript/module/src/cli.d.ts +31 -0
- package/lib/typescript/module/src/cli.d.ts.map +1 -0
- package/lib/typescript/module/src/codecs-primitives.d.ts +5 -0
- package/lib/typescript/module/src/codecs-primitives.d.ts.map +1 -0
- package/lib/typescript/module/src/codecs.d.ts +7 -0
- package/lib/typescript/module/src/codecs.d.ts.map +1 -0
- package/lib/typescript/module/src/core/aggregate-stream-quota.d.ts +17 -0
- package/lib/typescript/module/src/core/aggregate-stream-quota.d.ts.map +1 -0
- package/lib/typescript/module/src/core/bounded-stream.d.ts +69 -0
- package/lib/typescript/module/src/core/bounded-stream.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-adapter-state.d.ts +5 -0
- package/lib/typescript/module/src/core/core-adapter-state.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-characteristic-operations.d.ts +12 -0
- package/lib/typescript/module/src/core/core-characteristic-operations.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-connection-controls.d.ts +14 -0
- package/lib/typescript/module/src/core/core-connection-controls.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-descriptor-operations.d.ts +12 -0
- package/lib/typescript/module/src/core/core-descriptor-operations.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-discovery.d.ts +9 -0
- package/lib/typescript/module/src/core/core-discovery.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-gatt-handles.d.ts +67 -0
- package/lib/typescript/module/src/core/core-gatt-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/core/core-lifecycle-observer.d.ts +14 -0
- package/lib/typescript/module/src/core/core-lifecycle-observer.d.ts.map +1 -0
- package/lib/typescript/module/src/core/gatt-path-equality.d.ts +7 -0
- package/lib/typescript/module/src/core/gatt-path-equality.d.ts.map +1 -0
- package/lib/typescript/module/src/core/index.d.ts +11 -0
- package/lib/typescript/module/src/core/index.d.ts.map +1 -0
- package/lib/typescript/module/src/core/operation-coordinator.d.ts +87 -0
- package/lib/typescript/module/src/core/operation-coordinator.d.ts.map +1 -0
- package/lib/typescript/module/src/core/resource-ledger.d.ts +26 -0
- package/lib/typescript/module/src/core/resource-ledger.d.ts.map +1 -0
- package/lib/typescript/module/src/core/subscription-registry.d.ts +77 -0
- package/lib/typescript/module/src/core/subscription-registry.d.ts.map +1 -0
- package/lib/typescript/module/src/core/trace-recorder.d.ts +39 -0
- package/lib/typescript/module/src/core/trace-recorder.d.ts.map +1 -0
- package/lib/typescript/module/src/core/unified-ble-core-helpers.d.ts +32 -0
- package/lib/typescript/module/src/core/unified-ble-core-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/core/unified-ble-core.d.ts +101 -0
- package/lib/typescript/module/src/core/unified-ble-core.d.ts.map +1 -0
- package/lib/typescript/module/src/diagnostics/trace-format.d.ts +39 -0
- package/lib/typescript/module/src/diagnostics/trace-format.d.ts.map +1 -0
- package/lib/typescript/module/src/discovery/deviceSort.d.ts +23 -0
- package/lib/typescript/module/src/discovery/deviceSort.d.ts.map +1 -0
- package/lib/typescript/module/src/discovery/filters.d.ts +97 -0
- package/lib/typescript/module/src/discovery/filters.d.ts.map +1 -0
- package/lib/typescript/module/src/discovery/index.d.ts +6 -0
- package/lib/typescript/module/src/discovery/index.d.ts.map +1 -0
- package/lib/typescript/module/src/discovery/uuidMatch.d.ts +29 -0
- package/lib/typescript/module/src/discovery/uuidMatch.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/main-binding.d.ts +48 -0
- package/lib/typescript/module/src/electron/main-binding.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/main-router.d.ts +69 -0
- package/lib/typescript/module/src/electron/main-router.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/main.d.ts +3 -0
- package/lib/typescript/module/src/electron/main.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/protocol.d.ts +73 -0
- package/lib/typescript/module/src/electron/protocol.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/renderer-stream-registry.d.ts +46 -0
- package/lib/typescript/module/src/electron/renderer-stream-registry.d.ts.map +1 -0
- package/lib/typescript/module/src/electron/renderer.d.ts +29 -0
- package/lib/typescript/module/src/electron/renderer.d.ts.map +1 -0
- package/lib/typescript/module/src/electron-main.d.ts +14 -0
- package/lib/typescript/module/src/electron-main.d.ts.map +1 -0
- package/lib/typescript/module/src/electron-renderer.d.ts +3 -0
- package/lib/typescript/module/src/electron-renderer.d.ts.map +1 -0
- package/lib/typescript/module/src/encoding.d.ts +13 -0
- package/lib/typescript/module/src/encoding.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/central.d.ts +66 -0
- package/lib/typescript/module/src/helpers/central.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/errors.d.ts +12 -0
- package/lib/typescript/module/src/helpers/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/index.d.ts +9 -0
- package/lib/typescript/module/src/helpers/index.d.ts.map +1 -0
- package/lib/typescript/module/src/helpers/types.d.ts +122 -0
- package/lib/typescript/module/src/helpers/types.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/electron.d.ts +78 -0
- package/lib/typescript/module/src/hosts/electron.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/native/bluez/BluezBlePort.d.ts +79 -0
- package/lib/typescript/module/src/hosts/native/bluez/BluezBlePort.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts +20 -0
- package/lib/typescript/module/src/hosts/native/corebluetooth/CoreBluetoothBlePort.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/native/winrt/WinRtBlePort.d.ts +18 -0
- package/lib/typescript/module/src/hosts/native/winrt/WinRtBlePort.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/node.d.ts +20 -0
- package/lib/typescript/module/src/hosts/node.d.ts.map +1 -0
- package/lib/typescript/module/src/hosts/web.d.ts +258 -0
- package/lib/typescript/module/src/hosts/web.d.ts.map +1 -0
- package/lib/typescript/module/src/index.d.ts +23 -0
- package/lib/typescript/module/src/index.d.ts.map +1 -0
- package/lib/typescript/module/src/longWrite.d.ts +25 -0
- package/lib/typescript/module/src/longWrite.d.ts.map +1 -0
- package/lib/typescript/module/src/manager/ble-manager.d.ts +121 -0
- package/lib/typescript/module/src/manager/ble-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/manager/index.d.ts +5 -0
- package/lib/typescript/module/src/manager/index.d.ts.map +1 -0
- package/lib/typescript/module/src/manager/manager-ownership-authority.d.ts +64 -0
- package/lib/typescript/module/src/manager/manager-ownership-authority.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/generated/native-protocol-v1-schema.d.ts +41 -0
- package/lib/typescript/module/src/native-protocol/generated/native-protocol-v1-schema.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/rn-android-boundary.d.ts +66 -0
- package/lib/typescript/module/src/native-protocol/rn-android-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/rn-android-protocol-records.d.ts +31 -0
- package/lib/typescript/module/src/native-protocol/rn-android-protocol-records.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/rn-apple-boundary.d.ts +7 -0
- package/lib/typescript/module/src/native-protocol/rn-apple-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/rn-jsi-binary-runtime.d.ts +33 -0
- package/lib/typescript/module/src/native-protocol/rn-jsi-binary-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/native-protocol/v1-codec.d.ts +15 -0
- package/lib/typescript/module/src/native-protocol/v1-codec.d.ts.map +1 -0
- package/lib/typescript/module/src/node-bluez.d.ts +13 -0
- package/lib/typescript/module/src/node-bluez.d.ts.map +1 -0
- package/lib/typescript/module/src/node-corebluetooth.d.ts +13 -0
- package/lib/typescript/module/src/node-corebluetooth.d.ts.map +1 -0
- package/lib/typescript/module/src/node-winrt.d.ts +13 -0
- package/lib/typescript/module/src/node-winrt.d.ts.map +1 -0
- package/lib/typescript/module/src/permissions.d.ts +43 -0
- package/lib/typescript/module/src/permissions.d.ts.map +1 -0
- package/lib/typescript/module/src/port/BlePort.d.ts +161 -0
- package/lib/typescript/module/src/port/BlePort.d.ts.map +1 -0
- package/lib/typescript/module/src/port/PortBleManager.d.ts +156 -0
- package/lib/typescript/module/src/port/PortBleManager.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/battery-service.d.ts +8 -0
- package/lib/typescript/module/src/profiles/battery-service.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/battery.d.ts +34 -0
- package/lib/typescript/module/src/profiles/battery.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/blood-pressure.d.ts +21 -0
- package/lib/typescript/module/src/profiles/blood-pressure.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/bloodPressure.d.ts +74 -0
- package/lib/typescript/module/src/profiles/bloodPressure.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/bytes.d.ts +10 -0
- package/lib/typescript/module/src/profiles/bytes.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/commands.d.ts +30 -0
- package/lib/typescript/module/src/profiles/commands.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/date-time.d.ts +10 -0
- package/lib/typescript/module/src/profiles/date-time.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/device-information.d.ts +24 -0
- package/lib/typescript/module/src/profiles/device-information.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/deviceInformation.d.ts +109 -0
- package/lib/typescript/module/src/profiles/deviceInformation.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/errors.d.ts +11 -0
- package/lib/typescript/module/src/profiles/errors.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/health-thermometer.d.ts +17 -0
- package/lib/typescript/module/src/profiles/health-thermometer.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/healthThermometer.d.ts +73 -0
- package/lib/typescript/module/src/profiles/healthThermometer.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/heart-rate.d.ts +20 -0
- package/lib/typescript/module/src/profiles/heart-rate.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/heartRate.d.ts +129 -0
- package/lib/typescript/module/src/profiles/heartRate.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/identifiers.d.ts +26 -0
- package/lib/typescript/module/src/profiles/identifiers.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/ieee-11073.d.ts +15 -0
- package/lib/typescript/module/src/profiles/ieee-11073.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/ieee11073.d.ts +80 -0
- package/lib/typescript/module/src/profiles/ieee11073.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/index.d.ts +21 -0
- package/lib/typescript/module/src/profiles/index.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/serviceHelpers.d.ts +48 -0
- package/lib/typescript/module/src/profiles/serviceHelpers.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/standard-commands.d.ts +21 -0
- package/lib/typescript/module/src/profiles/standard-commands.d.ts.map +1 -0
- package/lib/typescript/module/src/profiles/types.d.ts +32 -0
- package/lib/typescript/module/src/profiles/types.d.ts.map +1 -0
- package/lib/typescript/module/src/react-native-manager.d.ts +19 -0
- package/lib/typescript/module/src/react-native-manager.d.ts.map +1 -0
- package/lib/typescript/module/src/react-native.d.ts +15 -0
- package/lib/typescript/module/src/react-native.d.ts.map +1 -0
- package/lib/typescript/module/src/stringUtils.d.ts +8 -0
- package/lib/typescript/module/src/stringUtils.d.ts.map +1 -0
- package/lib/typescript/module/src/supports.d.ts +13 -0
- package/lib/typescript/module/src/supports.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/contracts.d.ts +132 -0
- package/lib/typescript/module/src/tck/contracts.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-factory.d.ts +9 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-factory.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-identity.d.ts +9 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-identity.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts +8 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-lifecycle-diagnostics.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts +4 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-manager-ownership.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts +56 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenario-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenarios.d.ts +14 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-scenarios.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts +5 -0
- package/lib/typescript/module/src/tck/deterministic/deterministic-tck-subscription-overflow.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/index.d.ts +6 -0
- package/lib/typescript/module/src/tck/index.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/runner.d.ts +10 -0
- package/lib/typescript/module/src/tck/runner.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/scenario-adapter.d.ts +19 -0
- package/lib/typescript/module/src/tck/scenario-adapter.d.ts.map +1 -0
- package/lib/typescript/module/src/tck/scenarios.d.ts +4 -0
- package/lib/typescript/module/src/tck/scenarios.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-backend-base.d.ts +118 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-backend-base.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-operation-admission.d.ts +5 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-operation-admission.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-operation-runtime.d.ts +52 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-operation-runtime.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-stream.d.ts +65 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-stream.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts +22 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-subscription-lifecycle.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-controller.d.ts +25 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-controller.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-gatt.d.ts +15 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-gatt.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-handles.d.ts +109 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts +48 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend-lifecycle-helpers.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend.d.ts +71 -0
- package/lib/typescript/module/src/testing/deterministic/deterministic-test-backend.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/virtual-clock.d.ts +22 -0
- package/lib/typescript/module/src/testing/deterministic/virtual-clock.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/deterministic/virtual-peripheral.d.ts +76 -0
- package/lib/typescript/module/src/testing/deterministic/virtual-peripheral.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts +4 -0
- package/lib/typescript/module/src/testing/scenarios/deterministic-manager-scenario-factory.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenario-executor.d.ts +33 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenario-executor.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenario-fixture.d.ts +19 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenario-fixture.d.ts.map +1 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenarios.d.ts +60 -0
- package/lib/typescript/module/src/testing/scenarios/manager-scenarios.d.ts.map +1 -0
- package/lib/typescript/module/src/testing.d.ts +22 -0
- package/lib/typescript/module/src/testing.d.ts.map +1 -0
- package/lib/typescript/module/src/unsupported.d.ts +12 -0
- package/lib/typescript/module/src/unsupported.d.ts.map +1 -0
- package/lib/typescript/module/src/web/navigator-web-bluetooth-boundary.d.ts +95 -0
- package/lib/typescript/module/src/web/navigator-web-bluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-backend.d.ts +99 -0
- package/lib/typescript/module/src/web/web-bluetooth-backend.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-boundary.d.ts +78 -0
- package/lib/typescript/module/src/web/web-bluetooth-boundary.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-errors.d.ts +13 -0
- package/lib/typescript/module/src/web/web-bluetooth-errors.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-gatt.d.ts +62 -0
- package/lib/typescript/module/src/web/web-bluetooth-gatt.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-handles.d.ts +124 -0
- package/lib/typescript/module/src/web/web-bluetooth-handles.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-bluetooth-tck.d.ts +33 -0
- package/lib/typescript/module/src/web/web-bluetooth-tck.d.ts.map +1 -0
- package/lib/typescript/module/src/web/web-feature-registry.d.ts +3 -0
- package/lib/typescript/module/src/web/web-feature-registry.d.ts.map +1 -0
- package/lib/typescript/module/src/web.d.ts +10 -0
- package/lib/typescript/module/src/web.d.ts.map +1 -0
- package/native/electron/bluez/index.js +9 -0
- package/native/electron/corebluetooth/binding.gyp +42 -0
- package/native/electron/corebluetooth/index.js +517 -0
- package/native/electron/corebluetooth/src/addon.mm +1768 -0
- package/native/electron/corebluetooth/src/addon_stub.cc +19 -0
- package/native/electron/winrt/binding.gyp +22 -0
- package/native/electron/winrt/index.js +17 -0
- package/native/electron/winrt/src/addon.cpp +865 -0
- package/native/electron/winrt/src/winrt-boundary.inc +491 -0
- package/native/protocol/CMakeLists.txt +85 -0
- package/native/protocol/generated/NativeProtocolV1Schema.hpp +419 -0
- package/native/protocol/include/NativeProtocolControlRuntime.hpp +83 -0
- package/native/protocol/include/NativeProtocolV1Codec.hpp +99 -0
- package/native/protocol/include/NativeProtocolV1Registry.hpp +153 -0
- package/native/protocol/include/OwnedBinaryPayloadStore.hpp +56 -0
- package/native/protocol/include/OwnedJsiBinaryTransport.hpp +45 -0
- package/native/protocol/schema/native-protocol-v1-abi.json +68 -0
- package/native/protocol/schema/native-protocol-v1.json +359 -0
- package/native/protocol/src/NativeProtocolControlRuntime.cpp +567 -0
- package/native/protocol/src/NativeProtocolV1Codec.cpp +760 -0
- package/native/protocol/src/NativeProtocolV1Registry.cpp +331 -0
- package/native/protocol/src/OwnedBinaryPayloadStore.cpp +140 -0
- package/native/protocol/src/OwnedJsiBinaryTransport.cpp +112 -0
- package/package.json +488 -0
- package/plugin/build/debugLog.d.ts +2 -0
- package/plugin/build/debugLog.js +18 -0
- package/plugin/build/withBLE.d.ts +18 -0
- package/plugin/build/withBLE.js +75 -0
- package/plugin/build/withBLEAndroidForegroundService.d.ts +40 -0
- package/plugin/build/withBLEAndroidForegroundService.js +233 -0
- package/plugin/build/withBLEAndroidManifest.d.ts +44 -0
- package/plugin/build/withBLEAndroidManifest.js +89 -0
- package/plugin/build/withBLEBackgroundModes.d.ts +9 -0
- package/plugin/build/withBLEBackgroundModes.js +37 -0
- package/plugin/build/withBLEDebugLogging.d.ts +19 -0
- package/plugin/build/withBLEDebugLogging.js +54 -0
- package/plugin/build/withBLERestorationPodfile.d.ts +27 -0
- package/plugin/build/withBLERestorationPodfile.js +214 -0
- package/plugin/build/withBluetoothPermissions.d.ts +4 -0
- package/plugin/build/withBluetoothPermissions.js +13 -0
- package/unified-ble-manager.podspec +87 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_errors","require","_primitives","textEncoder","TextEncoder","snapshotSerializableRecord","record","activeObjects","WeakSet","snapshot","snapshotRecord","value","byteLength","utf8ByteLength","encode","serializableRecordsEqual","left","right","leftEntries","Object","entries","rightKeys","keys","length","key","leftValue","rightValue","prototype","hasOwnProperty","call","undefined","serializableValuesEqual","snapshotValue","Number","isFinite","contractError","String","quotedStringByteLength","Uint8Array","copied","ownBytes","byteLimit","isSerializableArray","has","add","items","item","itemSnapshot","push","freeze","delete","Array","isArray","index","result","entryCount","valueSnapshot","serialized","JSON","stringify"],"sourceRoot":"../../../src","sources":["backend-contract/serializable.ts"],"mappings":";;;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AACA,IAAAC,WAAA,GAAAD,OAAA;AAHA;;AAgBA,MAAME,WAAW,GAAG,IAAIC,WAAW,CAAC,CAAC;;AAErC;AACO,SAASC,0BAA0BA,CAACC,MAA0B,EAAwB;EAC3F,MAAMC,aAAa,GAAG,IAAIC,OAAO,CAAS,CAAC;EAC3C,MAAMC,QAAQ,GAAGC,cAAc,CAACJ,MAAM,EAAEC,aAAa,CAAC;EACtD,OAAO;IAAEI,KAAK,EAAEF,QAAQ,CAACE,KAAK;IAAEC,UAAU,EAAEH,QAAQ,CAACG;EAAW,CAAC;AACnE;AAEO,SAASC,cAAcA,CAACF,KAAa,EAAU;EACpD,OAAOR,WAAW,CAACW,MAAM,CAACH,KAAK,CAAC,CAACC,UAAU;AAC7C;;AAEA;AACO,SAASG,wBAAwBA,CAACC,IAAwB,EAAEC,KAAyB,EAAW;EACrG,MAAMC,WAAW,GAAGC,MAAM,CAACC,OAAO,CAAC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,EAAE,8BAA8B,CAAC;EACvF;EACA,OAAOtB,cAAc,CAAC4C,UAAU,CAAC;AACnC","ignoreList":[]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../src","sources":["backend-contract/streams.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.createBackendAuthorDefinition = createBackendAuthorDefinition;
|
|
7
|
+
exports.featureRegistryOf = featureRegistryOf;
|
|
8
|
+
exports.inspectBackendCapabilities = inspectBackendCapabilities;
|
|
9
|
+
exports.runBackendAuthorTck = runBackendAuthorTck;
|
|
10
|
+
var _capabilities = require("./backend-contract/capabilities.js");
|
|
11
|
+
var _errors = require("./backend-contract/errors.js");
|
|
12
|
+
var _serializable = require("./backend-contract/serializable.js");
|
|
13
|
+
var _runner = require("./tck/runner.js");
|
|
14
|
+
// src/backend-sdk-authoring.ts
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* A complete external backend declaration. The factory and feature suites are
|
|
18
|
+
* runner-controlled adapter selects executable TCK behavior; capability
|
|
19
|
+
* details remain in the runtime feature registry rather than being duplicated
|
|
20
|
+
* in this descriptor.
|
|
21
|
+
*/
|
|
22
|
+
|
|
23
|
+
/** Validates immutable author metadata before a backend reaches an SDK runner. */
|
|
24
|
+
function createBackendAuthorDefinition(definition) {
|
|
25
|
+
assertNonEmptyMetadata(definition.metadata);
|
|
26
|
+
if (definition.factory.backendId !== definition.metadata.backendId) {
|
|
27
|
+
throw (0, _errors.contractError)('protocol.violation', 'core', 'backend-sdk.author-definition.backend-id');
|
|
28
|
+
}
|
|
29
|
+
if (definition.factory.provider.descriptor.providerId.length === 0) {
|
|
30
|
+
throw (0, _errors.contractError)('protocol.malformed', 'core', 'backend-sdk.author-definition.provider-id');
|
|
31
|
+
}
|
|
32
|
+
const suiteIds = new Set();
|
|
33
|
+
for (const suite of definition.featureSuites) {
|
|
34
|
+
if (suite.suiteId.length === 0 || suiteIds.has(suite.suiteId)) {
|
|
35
|
+
throw (0, _errors.contractError)('protocol.malformed', 'core', 'backend-sdk.author-definition.feature-suites');
|
|
36
|
+
}
|
|
37
|
+
suiteIds.add(suite.suiteId);
|
|
38
|
+
}
|
|
39
|
+
return Object.freeze({
|
|
40
|
+
metadata: Object.freeze({
|
|
41
|
+
...definition.metadata
|
|
42
|
+
}),
|
|
43
|
+
factory: definition.factory,
|
|
44
|
+
featureSuites: Object.freeze([...definition.featureSuites])
|
|
45
|
+
});
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
/** Runs the complete base and declared feature TCK for one external backend. */
|
|
49
|
+
async function runBackendAuthorTck(definition) {
|
|
50
|
+
const verified = createBackendAuthorDefinition(definition);
|
|
51
|
+
const report = await (0, _runner.runBackendTck)(verified.factory, verified.featureSuites);
|
|
52
|
+
if (report.backendId !== verified.metadata.backendId || report.identity.registeredPlatformId !== verified.metadata.platformId) {
|
|
53
|
+
throw (0, _errors.contractError)('protocol.violation', 'core', 'backend-sdk.author-definition.runtime-identity');
|
|
54
|
+
}
|
|
55
|
+
return report;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** Projects only public evidence/capability data from the canonical registry. */
|
|
59
|
+
function inspectBackendCapabilities(backend) {
|
|
60
|
+
const capabilities = [];
|
|
61
|
+
for (const registration of backend.features.registrations) {
|
|
62
|
+
(0, _capabilities.validateFeatureRegistration)(registration);
|
|
63
|
+
capabilities.push(Object.freeze({
|
|
64
|
+
id: registration.id,
|
|
65
|
+
state: registration.state,
|
|
66
|
+
implementationOrigin: registration.implementationOrigin,
|
|
67
|
+
tck: Object.freeze({
|
|
68
|
+
suiteId: registration.tck.suiteId,
|
|
69
|
+
requiredScenarioIds: Object.freeze([...registration.tck.requiredScenarioIds]),
|
|
70
|
+
contractMinimum: registration.tck.contractRange.minimum.value,
|
|
71
|
+
contractMaximum: registration.tck.contractRange.maximum.value
|
|
72
|
+
}),
|
|
73
|
+
evidence: Object.freeze({
|
|
74
|
+
verification: 'author-declared',
|
|
75
|
+
receiptId: registration.evidence.receiptId,
|
|
76
|
+
evidenceLevel: registration.evidence.evidenceLevel,
|
|
77
|
+
implementationVersion: registration.evidence.implementationVersion,
|
|
78
|
+
sourceDigest: registration.evidence.sourceDigest,
|
|
79
|
+
scenarioIds: Object.freeze([...registration.evidence.scenarioIds])
|
|
80
|
+
}),
|
|
81
|
+
limitations: Object.freeze(registration.limitations.map(limitation => Object.freeze({
|
|
82
|
+
code: limitation.code,
|
|
83
|
+
explanation: limitation.explanation,
|
|
84
|
+
affectedGuarantee: limitation.affectedGuarantee
|
|
85
|
+
}))),
|
|
86
|
+
limits: (0, _serializable.snapshotSerializableRecord)(registration.limits).value
|
|
87
|
+
}));
|
|
88
|
+
}
|
|
89
|
+
return Object.freeze({
|
|
90
|
+
backendId: backend.identity.registeredBackendId,
|
|
91
|
+
platformId: backend.identity.registeredPlatformId,
|
|
92
|
+
capabilities: Object.freeze(capabilities)
|
|
93
|
+
});
|
|
94
|
+
}
|
|
95
|
+
function featureRegistryOf(backend) {
|
|
96
|
+
return backend.features;
|
|
97
|
+
}
|
|
98
|
+
function assertNonEmptyMetadata(metadata) {
|
|
99
|
+
const values = [metadata.packageName, metadata.authorNamespace, metadata.backendId, metadata.platformId];
|
|
100
|
+
if (values.some(value => value.length === 0)) {
|
|
101
|
+
throw (0, _errors.contractError)('protocol.malformed', 'core', 'backend-sdk.author-definition.metadata');
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
//# sourceMappingURL=backend-sdk-authoring.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_capabilities","require","_errors","_serializable","_runner","createBackendAuthorDefinition","definition","assertNonEmptyMetadata","metadata","factory","backendId","contractError","provider","descriptor","providerId","length","suiteIds","Set","suite","featureSuites","suiteId","has","add","Object","freeze","runBackendAuthorTck","verified","report","runBackendTck","identity","registeredPlatformId","platformId","inspectBackendCapabilities","backend","capabilities","registration","features","registrations","validateFeatureRegistration","push","id","state","implementationOrigin","tck","requiredScenarioIds","contractMinimum","contractRange","minimum","value","contractMaximum","maximum","evidence","verification","receiptId","evidenceLevel","implementationVersion","sourceDigest","scenarioIds","limitations","map","limitation","code","explanation","affectedGuarantee","limits","snapshotSerializableRecord","registeredBackendId","featureRegistryOf","values","packageName","authorNamespace","some"],"sourceRoot":"../../src","sources":["backend-sdk-authoring.ts"],"mappings":";;;;;;;;;AAEA,IAAAA,aAAA,GAAAC,OAAA;AAEA,IAAAC,OAAA,GAAAD,OAAA;AAEA,IAAAE,aAAA,GAAAF,OAAA;AAEA,IAAAG,OAAA,GAAAH,OAAA;AARA;;AAWA;AACA;AACA;AACA;AACA;AACA;;AAwCA;AACO,SAASI,6BAA6BA,CAK3CC,UAAqE,EACV;EAC3DC,sBAAsB,CAACD,UAAU,CAACE,QAAQ,CAAC;EAC3C,IAAIF,UAAU,CAACG,OAAO,CAACC,SAAS,KAAKJ,UAAU,CAACE,QAAQ,CAACE,SAAS,EAAE;IAClE,MAAM,IAAAC,qBAAa,EAAC,oBAAoB,EAAE,MAAM,EAAE,0CAA0C,CAAC;EAC/F;EACA,IAAIL,UAAU,CAACG,OAAO,CAACG,QAAQ,CAACC,UAAU,CAACC,UAAU,CAACC,MAAM,KAAK,CAAC,EAAE;IAClE,MAAM,IAAAJ,qBAAa,EAAC,oBAAoB,EAAE,MAAM,EAAE,2CAA2C,CAAC;EAChG;EACA,MAAMK,QAAQ,GAAG,IAAIC,GAAG,CAAS,CAAC;EAClC,KAAK,MAAMC,KAAK,IAAIZ,UAAU,CAACa,aAAa,EAAE;IAC5C,IAAID,KAAK,CAACE,OAAO,CAACL,MAAM,KAAK,CAAC,IAAIC,QAAQ,CAACK,GAAG,CAACH,KAAK,CAACE,OAAO,CAAC,EAAE;MAC7D,MAAM,IAAAT,qBAAa,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ACJ,QAAQ,CAACqC,mBAAmB;IAC/CnC,UAAU,EAAEE,OAAO,CAACJ,QAAQ,CAACC,oBAAoB;IACjDI,YAAY,EAAEX,MAAM,CAACC,MAAM,CAACU,YAAY;EAC1C,CAAC,CAAC;AACJ;AAEO,SAASiC,iBAAiBA,CAC/BlC,OAAgD,EAC/B;EACjB,OAAOA,OAAO,CAACG,QAAQ;AACzB;AAEA,SAAS7B,sBAAsBA,CAACC,QAA+B,EAAQ;EACrE,MAAM4D,MAAM,GAAG,CAAC5D,QAAQ,CAAC6D,WAAW,EAAE7D,QAAQ,CAAC8D,eAAe,EAAE9D,QAAQ,CAACE,SAAS,EAAEF,QAAQ,CAACuB,UAAU,CAAC;EACxG,IAAIqC,MAAM,CAACG,IAAI,CAACvB,KAAK,IAAIA,KAAK,CAACjC,MAAM,KAAK,CAAC,CAAC,EAAE;IAC5C,MAAM,IAAAJ,qBAAa,EAAC,oBAAoB,EAAE,MAAM,EAAE,wCAAwC,CAAC;EAC7F;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
createBackendAuthorDefinition: true,
|
|
8
|
+
featureRegistryOf: true,
|
|
9
|
+
inspectBackendCapabilities: true,
|
|
10
|
+
runBackendAuthorTck: true,
|
|
11
|
+
runBackendTck: true,
|
|
12
|
+
baseTckScenarios: true,
|
|
13
|
+
findTckScenario: true,
|
|
14
|
+
TckAssertionError: true
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "TckAssertionError", {
|
|
17
|
+
enumerable: true,
|
|
18
|
+
get: function () {
|
|
19
|
+
return _contracts.TckAssertionError;
|
|
20
|
+
}
|
|
21
|
+
});
|
|
22
|
+
Object.defineProperty(exports, "baseTckScenarios", {
|
|
23
|
+
enumerable: true,
|
|
24
|
+
get: function () {
|
|
25
|
+
return _scenarios.baseTckScenarios;
|
|
26
|
+
}
|
|
27
|
+
});
|
|
28
|
+
Object.defineProperty(exports, "createBackendAuthorDefinition", {
|
|
29
|
+
enumerable: true,
|
|
30
|
+
get: function () {
|
|
31
|
+
return _backendSdkAuthoring.createBackendAuthorDefinition;
|
|
32
|
+
}
|
|
33
|
+
});
|
|
34
|
+
Object.defineProperty(exports, "featureRegistryOf", {
|
|
35
|
+
enumerable: true,
|
|
36
|
+
get: function () {
|
|
37
|
+
return _backendSdkAuthoring.featureRegistryOf;
|
|
38
|
+
}
|
|
39
|
+
});
|
|
40
|
+
Object.defineProperty(exports, "findTckScenario", {
|
|
41
|
+
enumerable: true,
|
|
42
|
+
get: function () {
|
|
43
|
+
return _scenarios.findTckScenario;
|
|
44
|
+
}
|
|
45
|
+
});
|
|
46
|
+
Object.defineProperty(exports, "inspectBackendCapabilities", {
|
|
47
|
+
enumerable: true,
|
|
48
|
+
get: function () {
|
|
49
|
+
return _backendSdkAuthoring.inspectBackendCapabilities;
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
Object.defineProperty(exports, "runBackendAuthorTck", {
|
|
53
|
+
enumerable: true,
|
|
54
|
+
get: function () {
|
|
55
|
+
return _backendSdkAuthoring.runBackendAuthorTck;
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
Object.defineProperty(exports, "runBackendTck", {
|
|
59
|
+
enumerable: true,
|
|
60
|
+
get: function () {
|
|
61
|
+
return _runner.runBackendTck;
|
|
62
|
+
}
|
|
63
|
+
});
|
|
64
|
+
var _index = require("./backend-contract/index.js");
|
|
65
|
+
Object.keys(_index).forEach(function (key) {
|
|
66
|
+
if (key === "default" || key === "__esModule") return;
|
|
67
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
68
|
+
if (key in exports && exports[key] === _index[key]) return;
|
|
69
|
+
Object.defineProperty(exports, key, {
|
|
70
|
+
enumerable: true,
|
|
71
|
+
get: function () {
|
|
72
|
+
return _index[key];
|
|
73
|
+
}
|
|
74
|
+
});
|
|
75
|
+
});
|
|
76
|
+
var _backendSdkAuthoring = require("./backend-sdk-authoring.js");
|
|
77
|
+
var _runner = require("./tck/runner.js");
|
|
78
|
+
var _scenarios = require("./tck/scenarios.js");
|
|
79
|
+
var _contracts = require("./tck/contracts.js");
|
|
80
|
+
//# sourceMappingURL=backend-sdk.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_index","require","Object","keys","forEach","key","prototype","hasOwnProperty","call","_exportNames","exports","defineProperty","enumerable","get","_backendSdkAuthoring","_runner","_scenarios","_contracts"],"sourceRoot":"../../src","sources":["backend-sdk.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAMA,IAAAA,MAAA,GAAAC,OAAA;AAAAC,MAAA,CAAAC,IAAA,CAAAH,MAAA,EAAAI,OAAA,WAAAC,GAAA;EAAA,IAAAA,GAAA,kBAAAA,GAAA;EAAA,IAAAH,MAAA,CAAAI,SAAA,CAAAC,cAAA,CAAAC,IAAA,CAAAC,YAAA,EAAAJ,GAAA;EAAA,IAAAA,GAAA,IAAAK,OAAA,IAAAA,OAAA,CAAAL,GAAA,MAAAL,MAAA,CAAAK,GAAA;EAAAH,MAAA,CAAAS,cAAA,CAAAD,OAAA,EAAAL,GAAA;IAAAO,UAAA;IAAAC,GAAA,WAAAA,CAAA;MAAA,OAAAb,MAAA,CAAAK,GAAA;IAAA;EAAA;AAAA;AACA,IAAAS,oBAAA,GAAAb,OAAA;AAgBA,IAAAc,OAAA,GAAAd,OAAA;AACA,IAAAe,UAAA,GAAAf,OAAA;AACA,IAAAgB,UAAA,GAAAhB,OAAA","ignoreList":[]}
|
|
@@ -0,0 +1,216 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.releasedBluezCleanup = exports.BluezScanLease = exports.BluezGattDatabase = exports.BluezConnectionLease = exports.BluezConnection = exports.BluezBackendSubscription = void 0;
|
|
7
|
+
var _identity = require("../../backend-contract/identity.js");
|
|
8
|
+
var _primitives = require("../../backend-contract/primitives.js");
|
|
9
|
+
var _bluezDbusContract = require("./bluez-dbus-contract.js");
|
|
10
|
+
// src/backends/bluez/bluez-backend-handles.ts
|
|
11
|
+
|
|
12
|
+
const releasedBluezCleanup = exports.releasedBluezCleanup = Object.freeze({
|
|
13
|
+
state: 'released',
|
|
14
|
+
failures: Object.freeze([])
|
|
15
|
+
});
|
|
16
|
+
class BluezScanLease {
|
|
17
|
+
constructor(runtime, consumer) {
|
|
18
|
+
this.runtime = runtime;
|
|
19
|
+
this.consumer = consumer;
|
|
20
|
+
this.scanSessionId = consumer.scanSessionId;
|
|
21
|
+
this.leaseId = consumer.leaseId;
|
|
22
|
+
this.shareToken = consumer.shareToken;
|
|
23
|
+
this.observations = consumer.stream;
|
|
24
|
+
}
|
|
25
|
+
stop() {
|
|
26
|
+
return this.runtime.stopScan(this.consumer);
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
exports.BluezScanLease = BluezScanLease;
|
|
30
|
+
class BluezConnection {
|
|
31
|
+
constructor(runtime, record, peerId, connectionId, connectionGeneration) {
|
|
32
|
+
this.runtime = runtime;
|
|
33
|
+
this.record = record;
|
|
34
|
+
this.peerId = peerId;
|
|
35
|
+
this.connectionId = connectionId;
|
|
36
|
+
this.connectionGeneration = connectionGeneration;
|
|
37
|
+
}
|
|
38
|
+
get attachment() {
|
|
39
|
+
return this.runtime.attachment();
|
|
40
|
+
}
|
|
41
|
+
get attachmentId() {
|
|
42
|
+
return this.attachment.attachmentId;
|
|
43
|
+
}
|
|
44
|
+
get state() {
|
|
45
|
+
return this.record.state;
|
|
46
|
+
}
|
|
47
|
+
disconnect() {
|
|
48
|
+
return this.runtime.disconnect(this.record);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
exports.BluezConnection = BluezConnection;
|
|
52
|
+
class BluezConnectionLease {
|
|
53
|
+
released = false;
|
|
54
|
+
releaseInFlight = null;
|
|
55
|
+
constructor(runtime, record, leaseId, connection) {
|
|
56
|
+
this.runtime = runtime;
|
|
57
|
+
this.record = record;
|
|
58
|
+
this.leaseId = leaseId;
|
|
59
|
+
this.connection = connection;
|
|
60
|
+
}
|
|
61
|
+
release() {
|
|
62
|
+
if (this.released) {
|
|
63
|
+
return Promise.resolve(releasedBluezCleanup);
|
|
64
|
+
}
|
|
65
|
+
if (this.releaseInFlight !== null) {
|
|
66
|
+
return this.releaseInFlight;
|
|
67
|
+
}
|
|
68
|
+
const release = this.runtime.releaseConnectionLease(this);
|
|
69
|
+
this.releaseInFlight = release;
|
|
70
|
+
release.then(cleanup => {
|
|
71
|
+
this.releaseInFlight = null;
|
|
72
|
+
if (cleanup.state === 'released') {
|
|
73
|
+
this.released = true;
|
|
74
|
+
}
|
|
75
|
+
}, () => {
|
|
76
|
+
this.releaseInFlight = null;
|
|
77
|
+
});
|
|
78
|
+
return release;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
exports.BluezConnectionLease = BluezConnectionLease;
|
|
82
|
+
class BluezGattDatabase {
|
|
83
|
+
valid = true;
|
|
84
|
+
constructor(runtime, record, path, snapshotRecord) {
|
|
85
|
+
this.runtime = runtime;
|
|
86
|
+
this.record = record;
|
|
87
|
+
this.path = path;
|
|
88
|
+
this.snapshotRecord = snapshotRecord;
|
|
89
|
+
}
|
|
90
|
+
async snapshot() {
|
|
91
|
+
this.assertCurrent('bluez.gatt.snapshot');
|
|
92
|
+
const services = [];
|
|
93
|
+
const characteristics = [];
|
|
94
|
+
const descriptors = [];
|
|
95
|
+
for (const service of this.snapshotRecord.services) {
|
|
96
|
+
const servicePath = {
|
|
97
|
+
...this.path,
|
|
98
|
+
serviceUuid: service.uuid,
|
|
99
|
+
serviceOccurrence: (0, _primitives.opaqueId)(service.objectPath, 'service-occurrence', String(this.path.databaseId))
|
|
100
|
+
};
|
|
101
|
+
services.push(Object.freeze({
|
|
102
|
+
path: Object.freeze(servicePath)
|
|
103
|
+
}));
|
|
104
|
+
for (const characteristic of service.characteristics) {
|
|
105
|
+
const characteristicPath = {
|
|
106
|
+
...servicePath,
|
|
107
|
+
characteristicUuid: characteristic.uuid,
|
|
108
|
+
characteristicOccurrence: (0, _primitives.opaqueId)(characteristic.objectPath, 'characteristic-occurrence', String(servicePath.serviceOccurrence)),
|
|
109
|
+
validity: 'current'
|
|
110
|
+
};
|
|
111
|
+
characteristics.push(Object.freeze({
|
|
112
|
+
path: Object.freeze(characteristicPath)
|
|
113
|
+
}));
|
|
114
|
+
for (const descriptor of characteristic.descriptors) {
|
|
115
|
+
const descriptorPath = {
|
|
116
|
+
...characteristicPath,
|
|
117
|
+
descriptorUuid: descriptor.uuid,
|
|
118
|
+
descriptorOccurrence: (0, _primitives.opaqueId)(descriptor.objectPath, 'descriptor-occurrence', String(characteristicPath.characteristicOccurrence))
|
|
119
|
+
};
|
|
120
|
+
descriptors.push(Object.freeze({
|
|
121
|
+
path: Object.freeze(descriptorPath)
|
|
122
|
+
}));
|
|
123
|
+
}
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
return Object.freeze({
|
|
127
|
+
path: this.path,
|
|
128
|
+
services: Object.freeze(services),
|
|
129
|
+
characteristics: Object.freeze(characteristics),
|
|
130
|
+
descriptors: Object.freeze(descriptors)
|
|
131
|
+
});
|
|
132
|
+
}
|
|
133
|
+
async read(path, options) {
|
|
134
|
+
this.assertCurrent('bluez.gatt.read');
|
|
135
|
+
return this.runtime.readCharacteristic(this, path, options);
|
|
136
|
+
}
|
|
137
|
+
async write(path, value, options) {
|
|
138
|
+
this.assertCurrent('bluez.gatt.write');
|
|
139
|
+
return this.runtime.writeCharacteristic(this, path, value, options);
|
|
140
|
+
}
|
|
141
|
+
async readDescriptor(path, options) {
|
|
142
|
+
this.assertCurrent('bluez.gatt.read-descriptor');
|
|
143
|
+
return this.runtime.readDescriptor(this, path, options);
|
|
144
|
+
}
|
|
145
|
+
async writeDescriptor(path, value, options) {
|
|
146
|
+
this.assertCurrent('bluez.gatt.write-descriptor');
|
|
147
|
+
return this.runtime.writeDescriptor(this, path, value, options);
|
|
148
|
+
}
|
|
149
|
+
async subscribe(path, options) {
|
|
150
|
+
this.assertCurrent('bluez.gatt.subscribe');
|
|
151
|
+
return this.runtime.subscribe(this, path, options);
|
|
152
|
+
}
|
|
153
|
+
invalidate() {
|
|
154
|
+
this.valid = false;
|
|
155
|
+
}
|
|
156
|
+
assertCurrent(operation) {
|
|
157
|
+
this.runtime.assertDatabaseCurrent(this, operation);
|
|
158
|
+
if (!this.valid) {
|
|
159
|
+
this.runtime.throwStale(operation);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
resolveCharacteristicPath(path, operation) {
|
|
163
|
+
this.assertPathBase(path, operation);
|
|
164
|
+
for (const service of this.snapshotRecord.services) {
|
|
165
|
+
if (service.objectPath !== String(path.serviceOccurrence) || service.uuid !== path.serviceUuid) {
|
|
166
|
+
continue;
|
|
167
|
+
}
|
|
168
|
+
const characteristic = service.characteristics.find(candidate => candidate.objectPath === String(path.characteristicOccurrence) && candidate.uuid === path.characteristicUuid);
|
|
169
|
+
if (characteristic !== undefined && this.runtime.store.hasInterface(characteristic.objectPath, _bluezDbusContract.BLUEZ_GATT_CHARACTERISTIC_INTERFACE)) {
|
|
170
|
+
return characteristic.objectPath;
|
|
171
|
+
}
|
|
172
|
+
}
|
|
173
|
+
this.runtime.throwStale(operation);
|
|
174
|
+
}
|
|
175
|
+
resolveDescriptorPath(path, operation) {
|
|
176
|
+
this.assertPathBase(path, operation);
|
|
177
|
+
for (const service of this.snapshotRecord.services) {
|
|
178
|
+
if (service.objectPath !== String(path.serviceOccurrence) || service.uuid !== path.serviceUuid) {
|
|
179
|
+
continue;
|
|
180
|
+
}
|
|
181
|
+
for (const characteristic of service.characteristics) {
|
|
182
|
+
if (characteristic.objectPath !== String(path.characteristicOccurrence) || characteristic.uuid !== path.characteristicUuid) {
|
|
183
|
+
continue;
|
|
184
|
+
}
|
|
185
|
+
const descriptor = characteristic.descriptors.find(candidate => candidate.objectPath === String(path.descriptorOccurrence) && candidate.uuid === path.descriptorUuid);
|
|
186
|
+
if (descriptor !== undefined && this.runtime.store.hasInterface(descriptor.objectPath, _bluezDbusContract.BLUEZ_GATT_DESCRIPTOR_INTERFACE)) {
|
|
187
|
+
return descriptor.objectPath;
|
|
188
|
+
}
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
this.runtime.throwStale(operation);
|
|
192
|
+
}
|
|
193
|
+
assertPathBase(path, operation) {
|
|
194
|
+
this.assertCurrent(operation);
|
|
195
|
+
if (!(0, _identity.attachmentRecordsEqual)(path.attachment, this.path.attachment) || path.attachmentId !== this.path.attachmentId || path.peerId !== this.path.peerId || path.connectionId !== this.path.connectionId || path.ownerLeaseId !== this.path.ownerLeaseId || path.connectionGeneration !== this.path.connectionGeneration || path.databaseId !== this.path.databaseId || path.databaseGeneration !== this.path.databaseGeneration || path.validity !== 'current') {
|
|
196
|
+
this.runtime.throwStale(operation);
|
|
197
|
+
}
|
|
198
|
+
}
|
|
199
|
+
}
|
|
200
|
+
exports.BluezGattDatabase = BluezGattDatabase;
|
|
201
|
+
class BluezBackendSubscription {
|
|
202
|
+
constructor(runtime, record, path) {
|
|
203
|
+
this.runtime = runtime;
|
|
204
|
+
this.record = record;
|
|
205
|
+
this.path = path;
|
|
206
|
+
this.subscriptionId = record.subscriptionId;
|
|
207
|
+
this.terminal = record.terminal;
|
|
208
|
+
this.notifications = record.stream;
|
|
209
|
+
this.values = record.stream;
|
|
210
|
+
}
|
|
211
|
+
remove() {
|
|
212
|
+
return this.runtime.removeSubscription(this.record);
|
|
213
|
+
}
|
|
214
|
+
}
|
|
215
|
+
exports.BluezBackendSubscription = BluezBackendSubscription;
|
|
216
|
+
//# sourceMappingURL=bluez-backend-handles.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_identity","require","_primitives","_bluezDbusContract","releasedBluezCleanup","exports","Object","freeze","state","failures","BluezScanLease","constructor","runtime","consumer","scanSessionId","leaseId","shareToken","observations","stream","stop","stopScan","BluezConnection","record","peerId","connectionId","connectionGeneration","attachment","attachmentId","disconnect","BluezConnectionLease","released","releaseInFlight","connection","release","Promise","resolve","releaseConnectionLease","then","cleanup","BluezGattDatabase","valid","path","snapshotRecord","snapshot","assertCurrent","services","characteristics","descriptors","service","servicePath","serviceUuid","uuid","serviceOccurrence","opaqueId","objectPath","String","databaseId","push","characteristic","characteristicPath","characteristicUuid","characteristicOccurrence","validity","descriptor","descriptorPath","descriptorUuid","descriptorOccurrence","read","options","readCharacteristic","write","value","writeCharacteristic","readDescriptor","writeDescriptor","subscribe","invalidate","operation","assertDatabaseCurrent","throwStale","resolveCharacteristicPath","assertPathBase","find","candidate","undefined","store","hasInterface","BLUEZ_GATT_CHARACTERISTIC_INTERFACE","resolveDescriptorPath","BLUEZ_GATT_DESCRIPTOR_INTERFACE","attachmentRecordsEqual","ownerLeaseId","databaseGeneration","BluezBackendSubscription","subscriptionId","terminal","notifications","values","remove","removeSubscription"],"sourceRoot":"../../../../src","sources":["backends/bluez/bluez-backend-handles.ts"],"mappings":";;;;;;AAiBA,IAAAA,SAAA,GAAAC,OAAA;AAQA,IAAAC,WAAA,GAAAD,OAAA;AAoBA,IAAAE,kBAAA,GAAAF,OAAA;AA7CA;;AA+CO,MAAMG,oBAAmC,GAAAC,OAAA,CAAAD,oBAAA,GAAGE,MAAM,CAACC,MAAM,CAAC;EAAEC,KAAK,EAAE,UAAU;EAAEC,QAAQ,EAAEH,MAAM,CAACC,MAAM,CAAC,EAAE;AAAE,CAAC,CAAC;AAE7G,MAAMG,cAAc,CAAsC;EAM/DC,WAAWA,CACQC,OAA4B,EACpCC,QAA2B,EACpC;IAAA,KAFiBD,OAA4B,GAA5BA,OAA4B;IAAA,KACpCC,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AM,CAAC;EACrD;AACF;AAACjB,OAAA,CAAAwF,wBAAA,GAAAA,wBAAA","ignoreList":[]}
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.bluezCompatibility = exports.BLUEZ_PLATFORM_ID = exports.BLUEZ_IMPLEMENTATION_VERSION = exports.BLUEZ_BACKEND_ID = void 0;
|
|
7
|
+
exports.createBluezBackendProvider = createBluezBackendProvider;
|
|
8
|
+
var _errors = require("../../backend-contract/errors.js");
|
|
9
|
+
var _primitives = require("../../backend-contract/primitives.js");
|
|
10
|
+
var _bluezBackend = require("./bluez-backend.js");
|
|
11
|
+
var _bluezDbusContract = require("./bluez-dbus-contract.js");
|
|
12
|
+
var _bluezObjectStore = require("./bluez-object-store.js");
|
|
13
|
+
// src/backends/bluez/bluez-backend-provider.ts
|
|
14
|
+
|
|
15
|
+
const BLUEZ_BACKEND_ID = exports.BLUEZ_BACKEND_ID = 'unified-ble:bluez-dbus';
|
|
16
|
+
const BLUEZ_PLATFORM_ID = exports.BLUEZ_PLATFORM_ID = 'unified-ble:linux-bluez';
|
|
17
|
+
const BLUEZ_IMPLEMENTATION_VERSION = exports.BLUEZ_IMPLEMENTATION_VERSION = '4.0.0-alpha.0';
|
|
18
|
+
const bluezCompatibility = exports.bluezCompatibility = Object.freeze({
|
|
19
|
+
backendContract: (0, _primitives.versionRange)((0, _primitives.version)('backend-contract', 1), (0, _primitives.version)('backend-contract', 1)),
|
|
20
|
+
capabilitySchema: (0, _primitives.versionRange)((0, _primitives.version)('capability-schema', 1), (0, _primitives.version)('capability-schema', 1)),
|
|
21
|
+
eventSchema: (0, _primitives.versionRange)((0, _primitives.version)('event-schema', 1), (0, _primitives.version)('event-schema', 1)),
|
|
22
|
+
traceFormat: (0, _primitives.versionRange)((0, _primitives.version)('trace-format', 1), (0, _primitives.version)('trace-format', 1))
|
|
23
|
+
});
|
|
24
|
+
function createBluezBackendProvider(options) {
|
|
25
|
+
return {
|
|
26
|
+
descriptor: Object.freeze({
|
|
27
|
+
providerId: 'unified-ble:bluez-dbus-provider',
|
|
28
|
+
hostKind: 'node',
|
|
29
|
+
loadability: 'loadable',
|
|
30
|
+
compatibility: bluezCompatibility
|
|
31
|
+
}),
|
|
32
|
+
listAdapters: async () => withBluezProbe(options, store => adapterDescriptors(store, options.now)),
|
|
33
|
+
create: async selection => {
|
|
34
|
+
const boundary = await options.boundaryFactory.open(options.busKind);
|
|
35
|
+
let store;
|
|
36
|
+
try {
|
|
37
|
+
store = await _bluezObjectStore.BluezObjectStore.open(boundary.objectManager);
|
|
38
|
+
const adapters = adapterDescriptors(store, options.now);
|
|
39
|
+
const selected = adapters.filter(adapter => String(adapter.adapterId) === String(selection.selectedAdapterId));
|
|
40
|
+
if (selected.length !== 1) {
|
|
41
|
+
throw (0, _errors.contractError)('adapter.unavailable', 'adapter', 'bluez.provider.select-adapter');
|
|
42
|
+
}
|
|
43
|
+
const descriptor = selected[0];
|
|
44
|
+
if (descriptor === undefined) {
|
|
45
|
+
throw (0, _errors.contractError)('adapter.unavailable', 'adapter', 'bluez.provider.select-adapter');
|
|
46
|
+
}
|
|
47
|
+
return new _bluezBackend.BluezBackend({
|
|
48
|
+
boundary,
|
|
49
|
+
store,
|
|
50
|
+
adapter: descriptor,
|
|
51
|
+
now: options.now,
|
|
52
|
+
busKind: options.busKind
|
|
53
|
+
});
|
|
54
|
+
} catch (error) {
|
|
55
|
+
return closeBoundaryAfterFailure(boundary, error);
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
};
|
|
59
|
+
}
|
|
60
|
+
async function withBluezProbe(options, operation) {
|
|
61
|
+
const boundary = await options.boundaryFactory.open(options.busKind);
|
|
62
|
+
let store = null;
|
|
63
|
+
let result;
|
|
64
|
+
try {
|
|
65
|
+
store = await _bluezObjectStore.BluezObjectStore.open(boundary.objectManager);
|
|
66
|
+
result = operation(store);
|
|
67
|
+
} catch (primaryError) {
|
|
68
|
+
if (store !== null) {
|
|
69
|
+
store.close();
|
|
70
|
+
}
|
|
71
|
+
return closeBoundaryAfterFailure(boundary, primaryError);
|
|
72
|
+
}
|
|
73
|
+
if (store === null) {
|
|
74
|
+
return closeBoundaryAfterFailure(boundary, new Error('BlueZ probe did not initialize its object store'));
|
|
75
|
+
}
|
|
76
|
+
store.close();
|
|
77
|
+
await boundary.close();
|
|
78
|
+
return result;
|
|
79
|
+
}
|
|
80
|
+
async function closeBoundaryAfterFailure(boundary, primaryError) {
|
|
81
|
+
try {
|
|
82
|
+
await boundary.close();
|
|
83
|
+
} catch (cleanupError) {
|
|
84
|
+
throw new AggregateError([primaryError, cleanupError], 'BlueZ operation and boundary cleanup both failed');
|
|
85
|
+
}
|
|
86
|
+
throw primaryError;
|
|
87
|
+
}
|
|
88
|
+
function adapterDescriptors(store, now) {
|
|
89
|
+
return Object.freeze(store.objectsWithInterface(_bluezDbusContract.BLUEZ_ADAPTER_INTERFACE).map(path => {
|
|
90
|
+
const powered = store.optionalBooleanProperty(path, _bluezDbusContract.BLUEZ_ADAPTER_INTERFACE, 'Powered');
|
|
91
|
+
return Object.freeze({
|
|
92
|
+
adapterId: (0, _primitives.opaqueId)(path, 'adapter', 'bluez'),
|
|
93
|
+
displayName: store.optionalStringProperty(path, _bluezDbusContract.BLUEZ_ADAPTER_INTERFACE, 'Alias'),
|
|
94
|
+
state: Object.freeze({
|
|
95
|
+
availability: 'available',
|
|
96
|
+
authorization: 'granted',
|
|
97
|
+
power: powered === true ? 'on' : powered === false ? 'off' : 'unknown',
|
|
98
|
+
backendGeneration: (0, _primitives.opaqueId)('1', 'backend-generation', 'bluez'),
|
|
99
|
+
updatedAt: (0, _primitives.monotonicTimestamp)(now()),
|
|
100
|
+
safeReason: powered === false ? 'BlueZ adapter is powered off' : null
|
|
101
|
+
}),
|
|
102
|
+
adapterGeneration: (0, _primitives.opaqueId)('1', 'adapter-generation', `bluez:${path}`),
|
|
103
|
+
limitations: Object.freeze(['AcquireWrite and AcquireNotify are unavailable until separately proven', 'Pairing and Agent1 behavior are unavailable until separately proven'])
|
|
104
|
+
});
|
|
105
|
+
}));
|
|
106
|
+
}
|
|
107
|
+
//# sourceMappingURL=bluez-backend-provider.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["_errors","require","_primitives","_bluezBackend","_bluezDbusContract","_bluezObjectStore","BLUEZ_BACKEND_ID","exports","BLUEZ_PLATFORM_ID","BLUEZ_IMPLEMENTATION_VERSION","bluezCompatibility","Object","freeze","backendContract","versionRange","version","capabilitySchema","eventSchema","traceFormat","createBluezBackendProvider","options","descriptor","providerId","hostKind","loadability","compatibility","listAdapters","withBluezProbe","store","adapterDescriptors","now","create","selection","boundary","boundaryFactory","open","busKind","BluezObjectStore","objectManager","adapters","selected","filter","adapter","String","adapterId","selectedAdapterId","length","contractError","undefined","BluezBackend","error","closeBoundaryAfterFailure","operation","result","primaryError","close","Error","cleanupError","AggregateError","objectsWithInterface","BLUEZ_ADAPTER_INTERFACE","map","path","powered","optionalBooleanProperty","opaqueId","displayName","optionalStringProperty","state","availability","authorization","power","backendGeneration","updatedAt","monotonicTimestamp","safeReason","adapterGeneration","limitations"],"sourceRoot":"../../../../src","sources":["backends/bluez/bluez-backend-provider.ts"],"mappings":";;;;;;;AAEA,IAAAA,OAAA,GAAAC,OAAA;AAEA,IAAAC,WAAA,GAAAD,OAAA;AAOA,IAAAE,aAAA,GAAAF,OAAA;AACA,IAAAG,kBAAA,GAAAH,OAAA;AAMA,IAAAI,iBAAA,GAAAJ,OAAA;AAlBA;;AAoBO,MAAMK,gBAAgB,GAAAC,OAAA,CAAAD,gBAAA,GAAG,wBAAwB;AACjD,MAAME,iBAAiB,GAAAD,OAAA,CAAAC,iBAAA,GAAG,yBAAyB;AACnD,MAAMC,4BAA4B,GAAAF,OAAA,CAAAE,4BAAA,GAAG,eAAe;AAEpD,MAAMC,kBAA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