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":["createFeatureRegistry","contractError","attachmentRecordsEqual","capacity","canonicalUuid","createAttachmentBoundIdFactory","monotonicTimestamp","negotiateCoreVersions","opaqueId","CoreBoundedStream","WinRtConnection","WinRtConnectionLease","WinRtScanLease","advertisementByteLength","cleanupFailure","matchesScan","releasedCleanup","WinRtGattOperations","assertWinRtOperationAdmission","broadcastWinRtEvent","combineWinRtCleanup","winRtPlatformError","winRtResourceCounters","assertWinRtAdapterReady","winRtAdapterIsReady","winRtAdapterState","WinRtOperationDispatcher","WINRT_BACKEND_ID","WINRT_IMPLEMENTATION_VERSION","WINRT_PLATFORM_ID","adapterDescriptor","winRtCompatibility","stopWinRtPhysicalSubscription","eventLimits","Object","freeze","itemCapacity","byteCapacity","reservedControlCapacity","adapterStateLimits","nextBackendInstance","allocateBackendInstance","allocated","WinRtBackend","features","subscriptions","Map","eventStreams","Set","stateStreams","peerIdsByNativeId","nativeIdsByPeerId","connectionsByNativeId","attached","admissionClosed","destroyed","destroyResult","scanGroup","backendGeneration","adapterGeneration","nextPeer","nextScan","nextConnection","nextLease","nextDatabase","nextSubscription","nextIngressOrdinal","constructor","boundary","selectedAdapter","now","hostKind","backendInstanceId","adapterStateSnapshot","adapterSnapshot","dispatcher","onLateSuccess","operation","console","info","onLateFailure","error","onCancellationFailure","gattOperations","adapter","currentState","watchState","watchAdapterState","scanner","start","startScan","bind","join","joinScan","connections","connect","gatt","discover","read","write","readDescriptor","writeDescriptor","subscribe","unsubscribe","removeConnectionListener","onConnectionLost","nativePeerId","safeReason","handleConnectionLoss","removeDatabaseListener","onDatabaseChanged","handleDatabaseChanged","removeAdapterStateListener","onAdapterState","state","handleAdapterState","identity","attachment","registeredBackendId","registeredPlatformId","versions","runtime","implementationVersion","diagnostics","deployment","packagedCapability","attach","request","assertUsable","coreCompatibility","events","stream","add","resourceCounters","consumers","size","values","activeCount","destroy","destroyInternal","then","result","descriptor","String","attachmentId","identifiers","adapterId","requireConnection","connection","record","get","peerId","undefined","connectionId","connectionGeneration","databaseForPath","path","database","matchesPath","assertCurrent","descriptorDatabaseForPath","disconnect","invalidation","invalidateConnectionChildren","native","completion","lease","markReleased","delete","releaseConnectionLease","stopScanConsumer","consumer","group","has","leaseId","releaseScanAdmission","closeWithReason","released","remaining","some","candidate","stopResult","stop","stopScan","clear","initial","transitions","options","_clientId","ids","ordinal","scanSessionId","shareToken","sharing","allowSharing","scanShareToken","delivery","overflowPolicy","abort","deadlineTimer","ownerLeaseId","closeForAbort","failures","signal","addEventListener","once","deadline","setTimeout","Math","max","dispatch","filter","serviceUuids","advertisement","handleAdvertisement","token","owner","set","clientId","ownerClientId","peerIdForNativeId","absent","reason","provenance","observation","observedAt","source","ingressOrdinal","localName","value","rssi","txPower","connectable","appearance","map","solicitedServiceUuids","overflowServiceUuids","serviceData","manufacturerData","rawRecord","scanResponseRecord","emit","existing","connectionPath","kind","invalidate","cleanup","wasReady","invalidateForAdapterLoss","catch","snapshot","unreachableScanConsumer","push","length","physical","samePeer","address","removed","removeEventListener","clearTimeout","cancelAll","firstConsumer","Error","nonZeroCounters","entries","Number","name"],"sourceRoot":"../../../../src","sources":["backends/winrt/winrt-backend.ts"],"mappings":";;AAAA;;AAiBA,SAASA,qBAAqB,QAAQ,wCAAqC;AAC3E,SAASC,aAAa,QAAiD,kCAA+B;AAEtG,SAASC,sBAAsB,QAAQ,oCAAiC;AAQxE,SACEC,QAAQ,EACRC,aAAa,EACbC,8BAA8B,EAC9BC,kBAAkB,EAClBC,qBAAqB,EACrBC,QAAQ,QASH,sCAAmC;AAE1C,SAASC,iBAAiB,QAAQ,8BAA2B;AAC7D,SACEC,eAAe,EACfC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+1 @@
|
|
|
1
|
+
{"version":3,"names":[],"sourceRoot":"../../../../src","sources":["backends/winrt/winrt-boundary.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -0,0 +1,239 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// src/backends/winrt/winrt-gatt-operations.ts
|
|
4
|
+
|
|
5
|
+
import { contractError } from "../../backend-contract/errors.js";
|
|
6
|
+
import { byteLimit, opaqueId, ownBytes } from "../../backend-contract/primitives.js";
|
|
7
|
+
import { CoreBoundedStream } from "../../core/bounded-stream.js";
|
|
8
|
+
import { WinRtBackendSubscription, WinRtGattDatabase, characteristicAddressKey, releasedCleanup, successfulTerminal } from "./winrt-handles.js";
|
|
9
|
+
import { createWinRtPhysicalSubscription, createWinRtSubscription, emitWinRtNotification, removeWinRtSubscription, stopWinRtPhysicalSubscription } from "./winrt-subscription-runtime.js";
|
|
10
|
+
import { winRtPlatformError } from "./winrt-backend-helpers.js";
|
|
11
|
+
const maximumValueBytes = byteLimit(512 * 1024);
|
|
12
|
+
|
|
13
|
+
/** Implements every complete GATT path against the strict WinRT boundary. */
|
|
14
|
+
export class WinRtGattOperations {
|
|
15
|
+
constructor(backend) {
|
|
16
|
+
this.backend = backend;
|
|
17
|
+
}
|
|
18
|
+
async discover(connection, options) {
|
|
19
|
+
this.backend.assertUsable('winrt.gatt.discover');
|
|
20
|
+
const record = this.backend.requireConnection(connection, 'winrt.gatt.discover');
|
|
21
|
+
const dispatch = this.backend.dispatcher.dispatch(options, 'winrt.gatt.discover', () => this.backend.boundary.discover(record.nativePeerId));
|
|
22
|
+
try {
|
|
23
|
+
return this.createDatabase(record, await dispatch.completion);
|
|
24
|
+
} catch (error) {
|
|
25
|
+
throw winRtPlatformError('gatt.read-failed', 'gatt', 'winrt.gatt.discover', error);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
read(path, request) {
|
|
29
|
+
const address = this.backend.databaseForPath(path, 'winrt.gatt.read').addressFor(path, 'winrt.gatt.read');
|
|
30
|
+
return this.backend.dispatcher.dispatch(request.operation, 'winrt.gatt.read', () => {
|
|
31
|
+
const native = this.backend.boundary.read(address);
|
|
32
|
+
return {
|
|
33
|
+
completion: native.completion.then(value => Object.freeze({
|
|
34
|
+
value: ownBytes(value, maximumValueBytes),
|
|
35
|
+
terminal: successfulTerminal(request.operation)
|
|
36
|
+
})),
|
|
37
|
+
cancel: () => native.cancel()
|
|
38
|
+
};
|
|
39
|
+
});
|
|
40
|
+
}
|
|
41
|
+
write(path, request) {
|
|
42
|
+
const address = this.backend.databaseForPath(path, 'winrt.gatt.write').addressFor(path, 'winrt.gatt.write');
|
|
43
|
+
const copied = ownBytes(request.bytes, maximumValueBytes);
|
|
44
|
+
const result = Object.freeze({
|
|
45
|
+
terminal: successfulTerminal(request.operation),
|
|
46
|
+
commitState: 'confirmed'
|
|
47
|
+
});
|
|
48
|
+
return this.backend.dispatcher.dispatch(request.operation, 'winrt.gatt.write', () => {
|
|
49
|
+
const native = this.backend.boundary.write(address, new Uint8Array(copied), request.mode);
|
|
50
|
+
return {
|
|
51
|
+
completion: native.completion.then(() => result),
|
|
52
|
+
cancel: () => native.cancel()
|
|
53
|
+
};
|
|
54
|
+
});
|
|
55
|
+
}
|
|
56
|
+
readDescriptor(path, request) {
|
|
57
|
+
const address = this.backend.descriptorDatabaseForPath(path, 'winrt.gatt.read-descriptor').descriptorAddressFor(path, 'winrt.gatt.read-descriptor');
|
|
58
|
+
return this.backend.dispatcher.dispatch(request.operation, 'winrt.gatt.read-descriptor', () => {
|
|
59
|
+
const native = this.backend.boundary.readDescriptor(address);
|
|
60
|
+
const result = Object.freeze({
|
|
61
|
+
value: ownBytes(new Uint8Array(), maximumValueBytes),
|
|
62
|
+
terminal: successfulTerminal(request.operation)
|
|
63
|
+
});
|
|
64
|
+
return {
|
|
65
|
+
completion: native.completion.then(value => Object.freeze({
|
|
66
|
+
...result,
|
|
67
|
+
value: ownBytes(value, maximumValueBytes)
|
|
68
|
+
})),
|
|
69
|
+
cancel: () => native.cancel()
|
|
70
|
+
};
|
|
71
|
+
});
|
|
72
|
+
}
|
|
73
|
+
writeDescriptor(path, request) {
|
|
74
|
+
const address = this.backend.descriptorDatabaseForPath(path, 'winrt.gatt.write-descriptor').descriptorAddressFor(path, 'winrt.gatt.write-descriptor');
|
|
75
|
+
const copied = ownBytes(request.bytes, maximumValueBytes);
|
|
76
|
+
const result = Object.freeze({
|
|
77
|
+
terminal: successfulTerminal(request.operation),
|
|
78
|
+
commitState: 'confirmed'
|
|
79
|
+
});
|
|
80
|
+
return this.backend.dispatcher.dispatch(request.operation, 'winrt.gatt.write-descriptor', () => {
|
|
81
|
+
const native = this.backend.boundary.writeDescriptor(address, new Uint8Array(copied), request.mode);
|
|
82
|
+
return {
|
|
83
|
+
completion: native.completion.then(() => result),
|
|
84
|
+
cancel: () => native.cancel()
|
|
85
|
+
};
|
|
86
|
+
});
|
|
87
|
+
}
|
|
88
|
+
subscribe(path, request) {
|
|
89
|
+
const address = this.backend.databaseForPath(path, 'winrt.gatt.subscribe').addressFor(path, 'winrt.gatt.subscribe');
|
|
90
|
+
return this.backend.dispatcher.dispatch(request.operation, 'winrt.gatt.subscribe', () => ({
|
|
91
|
+
completion: this.enableSubscription(address, path, request),
|
|
92
|
+
cancel: async () => 'not-cancellable'
|
|
93
|
+
}), subscription => subscription.remove().then(cleanup => {
|
|
94
|
+
if (cleanup.state === 'release-failed') {
|
|
95
|
+
throw contractError('platform.failure', 'cleanup', 'winrt.gatt.subscribe.late-cleanup');
|
|
96
|
+
}
|
|
97
|
+
}));
|
|
98
|
+
}
|
|
99
|
+
unsubscribe(subscription, operation) {
|
|
100
|
+
if (!(subscription instanceof WinRtBackendSubscription)) {
|
|
101
|
+
throw contractError('ownership.denied', 'gatt', 'winrt.gatt.unsubscribe.subscription');
|
|
102
|
+
}
|
|
103
|
+
return this.backend.dispatcher.dispatch(operation, 'winrt.gatt.unsubscribe', () => ({
|
|
104
|
+
completion: this.removeSubscription(subscription).then(cleanup => {
|
|
105
|
+
if (cleanup.state === 'release-failed') {
|
|
106
|
+
throw contractError('platform.failure', 'cleanup', 'winrt.gatt.unsubscribe.cleanup');
|
|
107
|
+
}
|
|
108
|
+
return successfulTerminal(operation);
|
|
109
|
+
}),
|
|
110
|
+
cancel: async () => 'not-cancellable'
|
|
111
|
+
}));
|
|
112
|
+
}
|
|
113
|
+
removeSubscription(subscription) {
|
|
114
|
+
return removeWinRtSubscription(this.backend, subscription);
|
|
115
|
+
}
|
|
116
|
+
async readFromDatabase(address, options) {
|
|
117
|
+
const dispatch = this.backend.dispatcher.dispatch(options, 'winrt.gatt.database-read', () => this.backend.boundary.read(address));
|
|
118
|
+
return ownBytes(await dispatch.completion, maximumValueBytes);
|
|
119
|
+
}
|
|
120
|
+
async writeFromDatabase(address, value, options) {
|
|
121
|
+
const copied = ownBytes(value, maximumValueBytes);
|
|
122
|
+
const dispatch = this.backend.dispatcher.dispatch(options, 'winrt.gatt.database-write', () => this.backend.boundary.write(address, new Uint8Array(copied), options.mode));
|
|
123
|
+
await dispatch.completion;
|
|
124
|
+
return this.databaseWriteReceipt('winrt-database-write');
|
|
125
|
+
}
|
|
126
|
+
async readDescriptorFromDatabase(address, options) {
|
|
127
|
+
const dispatch = this.backend.dispatcher.dispatch(options, 'winrt.gatt.database-read-descriptor', () => this.backend.boundary.readDescriptor(address));
|
|
128
|
+
return ownBytes(await dispatch.completion, maximumValueBytes);
|
|
129
|
+
}
|
|
130
|
+
async writeDescriptorFromDatabase(address, value, options) {
|
|
131
|
+
const copied = ownBytes(value, maximumValueBytes);
|
|
132
|
+
const dispatch = this.backend.dispatcher.dispatch(options, 'winrt.gatt.database-write-descriptor', () => this.backend.boundary.writeDescriptor(address, new Uint8Array(copied), options.mode));
|
|
133
|
+
await dispatch.completion;
|
|
134
|
+
return this.databaseWriteReceipt('winrt-database-write-descriptor');
|
|
135
|
+
}
|
|
136
|
+
async subscribeFromDatabase(path, options) {
|
|
137
|
+
const correlation = this.backend.identifiers().operationCorrelation('winrt-database-subscribe');
|
|
138
|
+
return this.subscribe(path, {
|
|
139
|
+
operation: {
|
|
140
|
+
...options,
|
|
141
|
+
correlation
|
|
142
|
+
},
|
|
143
|
+
options
|
|
144
|
+
}).completion;
|
|
145
|
+
}
|
|
146
|
+
async enableSubscription(address, path, request) {
|
|
147
|
+
const key = characteristicAddressKey(address);
|
|
148
|
+
let physical = this.backend.subscriptions.get(key);
|
|
149
|
+
if (physical?.state === 'removing') {
|
|
150
|
+
const cleanup = physical.removal === null ? releasedCleanup : await physical.removal;
|
|
151
|
+
if (cleanup.state === 'release-failed') {
|
|
152
|
+
throw contractError('platform.failure', 'cleanup', 'winrt.gatt.subscribe.cleanup-pending');
|
|
153
|
+
}
|
|
154
|
+
physical = this.backend.subscriptions.get(key);
|
|
155
|
+
}
|
|
156
|
+
if (physical === undefined) {
|
|
157
|
+
const mode = this.backend.databaseForPath(path, 'winrt.gatt.subscribe.mode').notificationModeForPath(path);
|
|
158
|
+
physical = createWinRtPhysicalSubscription(this.backend, address, mode);
|
|
159
|
+
const enabling = physical;
|
|
160
|
+
try {
|
|
161
|
+
await this.backend.boundary.startNotify(address, mode, value => emitWinRtNotification(enabling, value)).completion;
|
|
162
|
+
} catch (error) {
|
|
163
|
+
if (this.backend.subscriptions.get(key) === enabling) {
|
|
164
|
+
this.backend.subscriptions.delete(key);
|
|
165
|
+
}
|
|
166
|
+
console.error('[WinRtGattOperations.enableSubscription] WinRT CCCD enable failed:', error);
|
|
167
|
+
throw error;
|
|
168
|
+
}
|
|
169
|
+
if (this.backend.subscriptions.get(key) !== enabling) {
|
|
170
|
+
const cleanup = await stopWinRtPhysicalSubscription(this.backend, enabling);
|
|
171
|
+
if (cleanup.state === 'release-failed') {
|
|
172
|
+
throw contractError('platform.failure', 'cleanup', 'winrt.gatt.subscribe.destroyed-cleanup');
|
|
173
|
+
}
|
|
174
|
+
throw contractError('operation.cancelled-by-destroy', 'gatt', 'winrt.gatt.subscribe.destroyed');
|
|
175
|
+
}
|
|
176
|
+
enabling.state = 'ready';
|
|
177
|
+
}
|
|
178
|
+
return createWinRtSubscription(this.backend, physical, path, successfulTerminal(request.operation), new CoreBoundedStream(request.options.delivery, request.options.delivery.overflowPolicy));
|
|
179
|
+
}
|
|
180
|
+
createDatabase(record, snapshot) {
|
|
181
|
+
assertWinRtGattSnapshot(snapshot);
|
|
182
|
+
record.database?.invalidate();
|
|
183
|
+
const identifiers = this.backend.identifiers();
|
|
184
|
+
const attachment = this.backend.attachment();
|
|
185
|
+
const ordinal = this.backend.nextDatabase;
|
|
186
|
+
this.backend.nextDatabase += 1;
|
|
187
|
+
const path = Object.freeze({
|
|
188
|
+
attachment,
|
|
189
|
+
attachmentId: attachment.attachmentId,
|
|
190
|
+
peerId: record.peerId,
|
|
191
|
+
connectionId: record.connectionId,
|
|
192
|
+
ownerLeaseId: record.ownerLeaseId,
|
|
193
|
+
connectionGeneration: record.connectionGeneration,
|
|
194
|
+
databaseId: identifiers.databaseId(`winrt-database-${ordinal}`),
|
|
195
|
+
databaseGeneration: opaqueId(`winrt-database-generation-${ordinal}`, 'database-generation', 'winrt')
|
|
196
|
+
});
|
|
197
|
+
const database = new WinRtGattDatabase(this.backend, record, path, snapshot);
|
|
198
|
+
record.database = database;
|
|
199
|
+
return database;
|
|
200
|
+
}
|
|
201
|
+
databaseWriteReceipt(label) {
|
|
202
|
+
return Object.freeze({
|
|
203
|
+
terminal: Object.freeze({
|
|
204
|
+
correlation: this.backend.identifiers().operationCorrelation(label),
|
|
205
|
+
outcome: 'succeeded',
|
|
206
|
+
cause: null
|
|
207
|
+
}),
|
|
208
|
+
commitState: 'confirmed'
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
function assertWinRtGattSnapshot(snapshot) {
|
|
213
|
+
if (snapshot.cacheMode !== 'cached' && snapshot.cacheMode !== 'uncached') {
|
|
214
|
+
throw contractError('protocol.malformed', 'gatt', 'winrt.gatt.snapshot.cache-mode');
|
|
215
|
+
}
|
|
216
|
+
for (const service of snapshot.services) {
|
|
217
|
+
assertNativeOccurrence(service.occurrence, 'service');
|
|
218
|
+
assertCanonicalUuid(service.uuid, 'service');
|
|
219
|
+
for (const characteristic of service.characteristics) {
|
|
220
|
+
assertNativeOccurrence(characteristic.occurrence, 'characteristic');
|
|
221
|
+
assertCanonicalUuid(characteristic.uuid, 'characteristic');
|
|
222
|
+
for (const descriptor of characteristic.descriptors) {
|
|
223
|
+
assertNativeOccurrence(descriptor.occurrence, 'descriptor');
|
|
224
|
+
assertCanonicalUuid(descriptor.uuid, 'descriptor');
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
function assertNativeOccurrence(value, resource) {
|
|
230
|
+
if (!Number.isSafeInteger(value) || value < 0) {
|
|
231
|
+
throw contractError('protocol.malformed', 'gatt', `winrt.gatt.snapshot.${resource}-occurrence`);
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
function assertCanonicalUuid(value, resource) {
|
|
235
|
+
if (!/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/.test(value)) {
|
|
236
|
+
throw contractError('protocol.malformed', 'gatt', `winrt.gatt.snapshot.${resource}-uuid`);
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
//# sourceMappingURL=winrt-gatt-operations.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"names":["contractError","byteLimit","opaqueId","ownBytes","CoreBoundedStream","WinRtBackendSubscription","WinRtGattDatabase","characteristicAddressKey","releasedCleanup","successfulTerminal","createWinRtPhysicalSubscription","createWinRtSubscription","emitWinRtNotification","removeWinRtSubscription","stopWinRtPhysicalSubscription","winRtPlatformError","maximumValueBytes","WinRtGattOperations","constructor","backend","discover","connection","options","assertUsable","record","requireConnection","dispatch","dispatcher","boundary","nativePeerId","createDatabase","completion","error","read","path","request","address","databaseForPath","addressFor","operation","native","then","value","Object","freeze","terminal","cancel","write","copied","bytes","result","commitState","Uint8Array","mode","readDescriptor","descriptorDatabaseForPath","descriptorAddressFor","writeDescriptor","subscribe","enableSubscription","subscription","remove","cleanup","state","unsubscribe","removeSubscription","readFromDatabase","writeFromDatabase","databaseWriteReceipt","readDescriptorFromDatabase","writeDescriptorFromDatabase","subscribeFromDatabase","correlation","identifiers","operationCorrelation","key","physical","subscriptions","get","removal","undefined","notificationModeForPath","enabling","startNotify","delete","console","delivery","overflowPolicy","snapshot","assertWinRtGattSnapshot","database","invalidate","attachment","ordinal","nextDatabase","attachmentId","peerId","connectionId","ownerLeaseId","connectionGeneration","databaseId","databaseGeneration","label","outcome","cause","cacheMode","service","services","assertNativeOccurrence","occurrence","assertCanonicalUuid","uuid","characteristic","characteristics","descriptor","descriptors","resource","Number","isSafeInteger","test"],"sourceRoot":"../../../../src","sources":["backends/winrt/winrt-gatt-operations.ts"],"mappings":";;AAAA;;AAGA,SAASA,aAAa,QAA4B,kCAA+B;AAYjF,SAASC,SAAS,EAAEC,QAAQ,EAAEC,QAAQ,QAAyB,sCAAmC;AAClG,SAASC,iBAAiB,QAAQ,8BAA2B;AAC7D,SACEC,wBAAwB,EACxBC,iBAAiB,EACjBC,wBAAwB,EACxBC,eAAe,EACfC,kBAAkB,QACb,oBAAiB;AAGxB,SACEC,+BAA+B,EAC/BC,uBAAuB,EACvBC,qBAAqB,EACrBC,uBAAuB,EACvBC,6BAA6B,QACxB,iCAA8B;AACrC,SAASC,kBAAkB,QAAQ,4BAAyB;AAE5D,MAAMC,iBAAiB,GAAGf,SAAS,CAAC,GAAG,GAAG,IAAI,CAAC;;AAE/C;AACA,OAAO,MAAMgB,mBAAmB,CAAC;EAC/BC,WAAWA,CAAkBC,OAAqB,EAAE;IAAA,KAAvBA,OAAqB,GAArBA,OAAqB;EAAG;EAErD,MAAMC,QAAQA,CACZC,UAA6C,EAC7CC,OAA+B,EACgB;IAC/C,IAAI,CAACH,OAAO,CAAC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C5C,KAAK,MAAMC,cAAc,IAAIN,OAAO,CAACO,eAAe,EAAE;MACpDL,sBAAsB,CAACI,cAAc,CAACH,UAAU,EAAE,gBAAgB,CAAC;MACnEC,mBAAmB,CAACE,cAAc,CAACD,IAAI,EAAE,gBAAgB,CAAC;MAC1D,KAAK,MAAMG,UAAU,IAAIF,cAAc,CAACG,WAAW,EAAE;QACnDP,sBAAsB,CAACM,UAAU,CAACL,UAAU,EAAE,YAAY,CAAC;QAC3DC,mBAAmB,CAACI,UAAU,CAACH,IAAI,EAAE,YAAY,CAAC;MACpD;IACF;EACF;AACF;AAEA,SAASH,sBAAsBA,CAAClE,KAAa,EAAE0E,QAAgB,EAAQ;EACrE,IAAI,CAACC,MAAM,CAACC,aAAa,CAAC5E,KAAK,CAAC,IAAIA,KAAK,GAAG,CAAC,EAAE;IAC7C,MAAM1C,aAAa,CAAC,oBAAoB,EAAE,MAAM,EAAE,uBAAuBoH,QAAQ,aAAa,CAAC;EACjG;AACF;AAEA,SAASN,mBAAmBA,CAACpE,KAAa,EAAE0E,QAAgB,EAAQ;EAClE,IAAI,CAAC,gEAAgE,CAACG,IAAI,CAAC7E,KAAK,CAAC,EAAE;IACjF,MAAM1C,aAAa,CAAC,oBAAoB,EAAE,MAAM,EAAE,uBAAuBoH,QAAQ,OAAO,CAAC;EAC3F;AACF","ignoreList":[]}
|
|
@@ -0,0 +1,282 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
// src/backends/winrt/winrt-handles.ts
|
|
4
|
+
|
|
5
|
+
import { contractError } from "../../backend-contract/errors.js";
|
|
6
|
+
import { attachmentRecordsEqual } from "../../backend-contract/identity.js";
|
|
7
|
+
import { canonicalUuid, opaqueId } from "../../backend-contract/primitives.js";
|
|
8
|
+
export const releasedCleanup = Object.freeze({
|
|
9
|
+
state: 'released',
|
|
10
|
+
failures: Object.freeze([])
|
|
11
|
+
});
|
|
12
|
+
export class WinRtScanLease {
|
|
13
|
+
constructor(backend, consumer) {
|
|
14
|
+
this.backend = backend;
|
|
15
|
+
this.consumer = consumer;
|
|
16
|
+
this.scanSessionId = consumer.scanSessionId;
|
|
17
|
+
this.leaseId = consumer.leaseId;
|
|
18
|
+
this.shareToken = consumer.shareToken;
|
|
19
|
+
this.observations = consumer.stream;
|
|
20
|
+
}
|
|
21
|
+
stop() {
|
|
22
|
+
return this.backend.stopScanConsumer(this.consumer);
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
export class WinRtConnection {
|
|
26
|
+
constructor(backend, record) {
|
|
27
|
+
this.backend = backend;
|
|
28
|
+
this.record = record;
|
|
29
|
+
}
|
|
30
|
+
get attachment() {
|
|
31
|
+
return this.backend.attachment();
|
|
32
|
+
}
|
|
33
|
+
get attachmentId() {
|
|
34
|
+
return this.attachment.attachmentId;
|
|
35
|
+
}
|
|
36
|
+
get peerId() {
|
|
37
|
+
return this.record.peerId;
|
|
38
|
+
}
|
|
39
|
+
get connectionId() {
|
|
40
|
+
return this.record.connectionId;
|
|
41
|
+
}
|
|
42
|
+
get connectionGeneration() {
|
|
43
|
+
return this.record.connectionGeneration;
|
|
44
|
+
}
|
|
45
|
+
get state() {
|
|
46
|
+
return this.record.state;
|
|
47
|
+
}
|
|
48
|
+
disconnect() {
|
|
49
|
+
return this.backend.disconnect(this.record, 'winrt.connection.disconnect');
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export class WinRtConnectionLease {
|
|
53
|
+
released = false;
|
|
54
|
+
releaseResult = null;
|
|
55
|
+
constructor(backend, record, connection) {
|
|
56
|
+
this.backend = backend;
|
|
57
|
+
this.record = record;
|
|
58
|
+
this.connection = connection;
|
|
59
|
+
}
|
|
60
|
+
get leaseId() {
|
|
61
|
+
return this.record.ownerLeaseId;
|
|
62
|
+
}
|
|
63
|
+
release() {
|
|
64
|
+
if (this.released) {
|
|
65
|
+
return Promise.resolve(releasedCleanup);
|
|
66
|
+
}
|
|
67
|
+
if (this.releaseResult === null) {
|
|
68
|
+
this.releaseResult = this.backend.releaseConnectionLease(this).then(result => {
|
|
69
|
+
if (result.state === 'released') {
|
|
70
|
+
this.released = true;
|
|
71
|
+
} else {
|
|
72
|
+
this.releaseResult = null;
|
|
73
|
+
}
|
|
74
|
+
return result;
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
return this.releaseResult;
|
|
78
|
+
}
|
|
79
|
+
markReleased() {
|
|
80
|
+
this.released = true;
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
export class WinRtGattDatabase {
|
|
84
|
+
valid = true;
|
|
85
|
+
constructor(backend, record, path, snapshotRecord) {
|
|
86
|
+
this.backend = backend;
|
|
87
|
+
this.record = record;
|
|
88
|
+
this.path = path;
|
|
89
|
+
this.snapshotRecord = snapshotRecord;
|
|
90
|
+
}
|
|
91
|
+
async snapshot() {
|
|
92
|
+
this.assertCurrent('winrt.gatt.snapshot');
|
|
93
|
+
const services = [];
|
|
94
|
+
const characteristics = [];
|
|
95
|
+
const descriptors = [];
|
|
96
|
+
for (const service of this.snapshotRecord.services) {
|
|
97
|
+
const servicePath = Object.freeze({
|
|
98
|
+
...this.path,
|
|
99
|
+
serviceUuid: canonicalUuid(service.uuid),
|
|
100
|
+
serviceOccurrence: opaqueId(String(service.occurrence), 'service-occurrence', String(this.path.databaseId))
|
|
101
|
+
});
|
|
102
|
+
services.push(Object.freeze({
|
|
103
|
+
path: servicePath
|
|
104
|
+
}));
|
|
105
|
+
for (const characteristic of service.characteristics) {
|
|
106
|
+
const characteristicPath = Object.freeze({
|
|
107
|
+
...servicePath,
|
|
108
|
+
characteristicUuid: canonicalUuid(characteristic.uuid),
|
|
109
|
+
characteristicOccurrence: opaqueId(String(characteristic.occurrence), 'characteristic-occurrence', String(servicePath.serviceOccurrence)),
|
|
110
|
+
validity: 'current'
|
|
111
|
+
});
|
|
112
|
+
characteristics.push(Object.freeze({
|
|
113
|
+
path: characteristicPath
|
|
114
|
+
}));
|
|
115
|
+
for (const descriptor of characteristic.descriptors) {
|
|
116
|
+
const descriptorPath = Object.freeze({
|
|
117
|
+
...characteristicPath,
|
|
118
|
+
descriptorUuid: canonicalUuid(descriptor.uuid),
|
|
119
|
+
descriptorOccurrence: opaqueId(String(descriptor.occurrence), 'descriptor-occurrence', String(characteristicPath.characteristicOccurrence))
|
|
120
|
+
});
|
|
121
|
+
descriptors.push(Object.freeze({
|
|
122
|
+
path: descriptorPath
|
|
123
|
+
}));
|
|
124
|
+
}
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
return Object.freeze({
|
|
128
|
+
path: this.path,
|
|
129
|
+
services: Object.freeze(services),
|
|
130
|
+
characteristics: Object.freeze(characteristics),
|
|
131
|
+
descriptors: Object.freeze(descriptors)
|
|
132
|
+
});
|
|
133
|
+
}
|
|
134
|
+
async read(path, options) {
|
|
135
|
+
this.assertCurrent('winrt.gatt.database-read');
|
|
136
|
+
return this.backend.gattOperations.readFromDatabase(this.addressFor(path, 'winrt.gatt.database-read'), options);
|
|
137
|
+
}
|
|
138
|
+
async write(path, value, options) {
|
|
139
|
+
this.assertCurrent('winrt.gatt.database-write');
|
|
140
|
+
return this.backend.gattOperations.writeFromDatabase(this.addressFor(path, 'winrt.gatt.database-write'), value, options);
|
|
141
|
+
}
|
|
142
|
+
async readDescriptor(path, options) {
|
|
143
|
+
this.assertCurrent('winrt.gatt.database-read-descriptor');
|
|
144
|
+
return this.backend.gattOperations.readDescriptorFromDatabase(this.descriptorAddressFor(path, 'winrt.gatt.database-read-descriptor'), options);
|
|
145
|
+
}
|
|
146
|
+
async writeDescriptor(path, value, options) {
|
|
147
|
+
this.assertCurrent('winrt.gatt.database-write-descriptor');
|
|
148
|
+
return this.backend.gattOperations.writeDescriptorFromDatabase(this.descriptorAddressFor(path, 'winrt.gatt.database-write-descriptor'), value, options);
|
|
149
|
+
}
|
|
150
|
+
async subscribe(path, options) {
|
|
151
|
+
this.assertCurrent('winrt.gatt.database-subscribe');
|
|
152
|
+
return this.backend.gattOperations.subscribeFromDatabase(path, options);
|
|
153
|
+
}
|
|
154
|
+
invalidate() {
|
|
155
|
+
this.valid = false;
|
|
156
|
+
}
|
|
157
|
+
assertCurrent(operation) {
|
|
158
|
+
if (!this.valid || this.record.database !== this || this.record.state !== 'connected') {
|
|
159
|
+
throw contractError('gatt.stale-handle', 'gatt', operation);
|
|
160
|
+
}
|
|
161
|
+
}
|
|
162
|
+
matchesPath(path) {
|
|
163
|
+
return 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';
|
|
164
|
+
}
|
|
165
|
+
addressFor(path, operation) {
|
|
166
|
+
this.assertCurrent(operation);
|
|
167
|
+
if (!this.matchesPath(path)) {
|
|
168
|
+
throw contractError('gatt.stale-handle', 'gatt', operation);
|
|
169
|
+
}
|
|
170
|
+
const service = this.snapshotRecord.services.find(candidate => candidate.uuid === path.serviceUuid && candidate.occurrence === Number(path.serviceOccurrence));
|
|
171
|
+
const characteristic = service?.characteristics.find(candidate => candidate.uuid === path.characteristicUuid && candidate.occurrence === Number(path.characteristicOccurrence));
|
|
172
|
+
if (service === undefined || characteristic === undefined) {
|
|
173
|
+
throw contractError('gatt.not-found', 'gatt', operation);
|
|
174
|
+
}
|
|
175
|
+
return Object.freeze({
|
|
176
|
+
nativePeerId: this.record.nativePeerId,
|
|
177
|
+
serviceUuid: service.uuid,
|
|
178
|
+
serviceOccurrence: service.occurrence,
|
|
179
|
+
characteristicUuid: characteristic.uuid,
|
|
180
|
+
characteristicOccurrence: characteristic.occurrence
|
|
181
|
+
});
|
|
182
|
+
}
|
|
183
|
+
descriptorAddressFor(path, operation) {
|
|
184
|
+
const characteristic = this.addressFor(path, operation);
|
|
185
|
+
const service = this.snapshotRecord.services.find(candidate => candidate.uuid === path.serviceUuid && candidate.occurrence === Number(path.serviceOccurrence));
|
|
186
|
+
const characteristicRecord = service?.characteristics.find(candidate => candidate.uuid === path.characteristicUuid && candidate.occurrence === Number(path.characteristicOccurrence));
|
|
187
|
+
const descriptor = characteristicRecord?.descriptors.find(candidate => candidate.uuid === path.descriptorUuid && candidate.occurrence === Number(path.descriptorOccurrence));
|
|
188
|
+
if (descriptor === undefined) {
|
|
189
|
+
throw contractError('gatt.not-found', 'gatt', operation);
|
|
190
|
+
}
|
|
191
|
+
return Object.freeze({
|
|
192
|
+
...characteristic,
|
|
193
|
+
descriptorUuid: descriptor.uuid,
|
|
194
|
+
descriptorOccurrence: descriptor.occurrence
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
notificationModeForPath(path) {
|
|
198
|
+
const address = this.addressFor(path, 'winrt.gatt.subscribe.mode');
|
|
199
|
+
const service = this.snapshotRecord.services.find(candidate => candidate.uuid === address.serviceUuid && candidate.occurrence === address.serviceOccurrence);
|
|
200
|
+
const characteristic = service?.characteristics.find(candidate => candidate.uuid === address.characteristicUuid && candidate.occurrence === address.characteristicOccurrence);
|
|
201
|
+
if (characteristic === undefined) {
|
|
202
|
+
throw contractError('gatt.not-found', 'gatt', 'winrt.gatt.subscribe.mode');
|
|
203
|
+
}
|
|
204
|
+
if (characteristic.notifiable) {
|
|
205
|
+
return 'notify';
|
|
206
|
+
}
|
|
207
|
+
if (characteristic.indicatable) {
|
|
208
|
+
return 'indicate';
|
|
209
|
+
}
|
|
210
|
+
throw contractError('gatt.property-not-supported', 'gatt', 'winrt.gatt.subscribe.mode');
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
export class WinRtBackendSubscription {
|
|
214
|
+
removed = false;
|
|
215
|
+
constructor(backend, physical, path, subscriptionId, terminal, stream) {
|
|
216
|
+
this.backend = backend;
|
|
217
|
+
this.physical = physical;
|
|
218
|
+
this.path = path;
|
|
219
|
+
this.subscriptionId = subscriptionId;
|
|
220
|
+
this.terminal = terminal;
|
|
221
|
+
this.stream = stream;
|
|
222
|
+
}
|
|
223
|
+
get notifications() {
|
|
224
|
+
return this.stream;
|
|
225
|
+
}
|
|
226
|
+
get values() {
|
|
227
|
+
return this.stream;
|
|
228
|
+
}
|
|
229
|
+
remove() {
|
|
230
|
+
return this.backend.gattOperations.removeSubscription(this);
|
|
231
|
+
}
|
|
232
|
+
}
|
|
233
|
+
export function successfulTerminal(operation) {
|
|
234
|
+
return Object.freeze({
|
|
235
|
+
correlation: operation.correlation,
|
|
236
|
+
outcome: 'succeeded',
|
|
237
|
+
cause: null
|
|
238
|
+
});
|
|
239
|
+
}
|
|
240
|
+
export function characteristicAddressKey(address) {
|
|
241
|
+
return [address.nativePeerId, address.serviceUuid, String(address.serviceOccurrence), address.characteristicUuid, String(address.characteristicOccurrence)].join('\u0000');
|
|
242
|
+
}
|
|
243
|
+
export function matchesScan(options, observation) {
|
|
244
|
+
if (options.filter.localNamePrefix !== null && (observation.localName.state !== 'present' || !observation.localName.value.startsWith(options.filter.localNamePrefix))) {
|
|
245
|
+
return false;
|
|
246
|
+
}
|
|
247
|
+
if (options.filter.serviceUuids.length === 0) {
|
|
248
|
+
return true;
|
|
249
|
+
}
|
|
250
|
+
if (observation.serviceUuids.state !== 'present') {
|
|
251
|
+
return false;
|
|
252
|
+
}
|
|
253
|
+
const observedServiceUuids = observation.serviceUuids.value;
|
|
254
|
+
return options.filter.serviceUuids.every(uuid => observedServiceUuids.includes(uuid));
|
|
255
|
+
}
|
|
256
|
+
export function advertisementByteLength(observation) {
|
|
257
|
+
let size = 64;
|
|
258
|
+
if (observation.localName.state === 'present') {
|
|
259
|
+
size += observation.localName.value.length;
|
|
260
|
+
}
|
|
261
|
+
if (observation.serviceUuids.state === 'present') {
|
|
262
|
+
size += observation.serviceUuids.value.length * 36;
|
|
263
|
+
}
|
|
264
|
+
return size;
|
|
265
|
+
}
|
|
266
|
+
export function cleanupFailure(resourceKind, operation, error) {
|
|
267
|
+
const safeMessage = error instanceof Error ? error.message : 'WinRT cleanup rejected with a non-Error value';
|
|
268
|
+
const failure = Object.freeze({
|
|
269
|
+
resourceKind,
|
|
270
|
+
error: contractError('platform.failure', 'cleanup', operation, {
|
|
271
|
+
domain: 'winrt',
|
|
272
|
+
code: 'native-cleanup-failed',
|
|
273
|
+
safeMessage,
|
|
274
|
+
metadata: Object.freeze({})
|
|
275
|
+
}).normalized
|
|
276
|
+
});
|
|
277
|
+
return Object.freeze({
|
|
278
|
+
state: 'release-failed',
|
|
279
|
+
failures: Object.freeze([failure])
|
|
280
|
+
});
|
|
281
|
+
}
|
|
282
|
+
//# sourceMappingURL=winrt-handles.js.map
|